@saasquatch/mint-components 1.15.0-3 → 1.15.0-30
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-a9f4ba75.js → GenericTableView-925a0842.js} +3 -3
- package/dist/cjs/{ShadowViewAddon-787391f7.js → ShadowViewAddon-93071495.js} +444 -411
- package/dist/cjs/{copy-text-view-c85acaaa.js → copy-text-view-f0702822.js} +54 -39
- package/dist/cjs/{email-registration-view-55b378dc.js → email-registration-view-37b44222.js} +1 -1
- package/dist/cjs/{global-e31dc4f5.js → global-e1930bce.js} +186 -28
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/{mixins-f7e0377a.js → mixins-4761d472.js} +6 -6
- package/dist/cjs/sqm-banking-info-form_17.cjs.entry.js +8 -45
- package/dist/cjs/{sqm-base-registration-form-view-8a2c8763.js → sqm-base-registration-form-view-1c5094d3.js} +2 -2
- package/dist/cjs/sqm-big-stat_41.cjs.entry.js +290 -115
- package/dist/cjs/{sqm-close-button-view-ea3fa23b.js → sqm-close-button-view-b297e933.js} +1 -1
- package/dist/cjs/sqm-close-button.cjs.entry.js +2 -2
- package/dist/cjs/sqm-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/sqm-empty_4.cjs.entry.js +50 -49
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-invoice-table-view-16ac73d0.js → sqm-invoice-table-view-2e737286.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-navigation-sidebar-item-view-6f35d2ee.js → sqm-navigation-sidebar-item-view-10b62df1.js} +18 -7
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +26 -3
- package/dist/cjs/{sqm-navigation-sidebar-view-17111896.js → sqm-navigation-sidebar-view-38a5227a.js} +16 -6
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +19 -3
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +86 -59
- package/dist/cjs/sqm-password-field.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-7ebb426a.js → sqm-portal-email-verification-view-d65ef736.js} +3 -3
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-forgot-password-view-78f19ef9.js → sqm-portal-forgot-password-view-fdd97c18.js} +24 -17
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +25 -4
- package/dist/cjs/sqm-portal-google-login.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-login-view-761a4d8e.js → sqm-portal-login-view-8cb284d2.js} +2 -2
- package/dist/cjs/{sqm-portal-profile-view-33164798.js → sqm-portal-profile-view-21a99152.js} +3 -3
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-registration-form-view-637a4bf4.js → sqm-portal-registration-form-view-399f4eaf.js} +2 -2
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-reset-password-view-fe602822.js → sqm-portal-reset-password-view-0439a9e5.js} +2 -2
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-verify-email-view-7b678f34.js → sqm-portal-verify-email-view-05f72dec.js} +2 -2
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-qr-code-view-15dfc0b6.js → sqm-qr-code-view-3da9ed28.js} +2 -7
- package/dist/cjs/sqm-qr-code.cjs.entry.js +1 -1
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +4 -6
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +5 -5
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +144 -29
- package/dist/cjs/sqm-tabs.cjs.entry.js +9 -4
- package/dist/cjs/sqm-text-span-view-ce4c0178.js +63 -0
- package/dist/cjs/sqm-text-span.cjs.entry.js +4 -4
- package/dist/collection/components/sqm-big-stat/BigStat.stories.js +13 -0
- package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +15 -8
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +162 -2
- package/dist/collection/components/sqm-big-stat/useBigStat.js +10 -0
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +13 -4
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +13 -13
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +169 -1
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +14 -6
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +58 -1
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
- package/dist/collection/components/sqm-empty/sqm-empty-view.js +1 -1
- package/dist/collection/components/sqm-form-message/FormMessage.stories.js +1 -1
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +3 -3
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +79 -0
- package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +37 -0
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +59 -54
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +197 -32
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.css +2 -2
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +1 -4
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +16 -6
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +83 -5
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +17 -6
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +233 -1
- package/dist/collection/components/sqm-navigation-sidebar-item/useNavigationSidebarItem.js +9 -1
- package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +3 -3
- package/dist/collection/components/sqm-pagination/sqm-pagination.js +43 -0
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +7 -4
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +1 -1
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +22 -15
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +95 -2
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +41 -36
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +103 -2
- package/dist/collection/components/sqm-portal-frame/usePortalFrame.js +4 -1
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +1 -1
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +1 -1
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +11 -3
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +77 -2
- package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +2 -7
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +32 -31
- package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +75 -0
- package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +3 -0
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +169 -1
- package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +6 -0
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +46 -46
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +28 -1
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +0 -2
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +2 -2
- package/dist/collection/components/sqm-share-button/ShareButton.stories.js +3 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +23 -22
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +53 -7
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +169 -1
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +12 -0
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +171 -3
- package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +20 -8
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +110 -2
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
- package/dist/collection/components/sqm-tabs/Tabs.stories.js +7 -0
- package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +7 -2
- package/dist/collection/components/sqm-tabs/sqm-tabs.js +28 -2
- package/dist/collection/components/sqm-task-card/DetailsView.js +1 -1
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +139 -155
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +146 -0
- package/dist/collection/components/sqm-task-card/useTaskCard.js +10 -0
- package/dist/collection/components/sqm-text/Text.stories.js +12 -0
- package/dist/collection/components/sqm-text/sqm-text.js +100 -48
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +44 -43
- package/dist/collection/components/sqm-text-span/sqm-text-span.js +51 -2
- package/dist/collection/components/sqm-timeline/Timeline.stories.js +8 -1
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +45 -45
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +52 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +1 -12
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +0 -15
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +1 -11
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +1 -2
- package/dist/collection/components/views/copy-text-view.js +53 -38
- package/dist/collection/global/mixins.js +8 -8
- package/dist/collection/global/styles.js +186 -28
- package/dist/collection/global/styles.ts +186 -28
- package/dist/collection/tables/GenericTableView.js +2 -2
- package/dist/esm/{GenericTableView-7b9087af.js → GenericTableView-cb1581d8.js} +3 -3
- package/dist/esm/{ShadowViewAddon-cf230f50.js → ShadowViewAddon-b6997735.js} +444 -411
- package/dist/esm/{copy-text-view-782137ba.js → copy-text-view-3f41072a.js} +54 -39
- package/dist/esm/{email-registration-view-a7818cf2.js → email-registration-view-b1c858ee.js} +1 -1
- package/dist/esm/{global-be1f9992.js → global-3c495429.js} +186 -28
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/{mixins-83f90fa1.js → mixins-f750863a.js} +6 -6
- package/dist/esm/sqm-banking-info-form_17.entry.js +8 -45
- package/dist/esm/{sqm-base-registration-form-view-593d4ac3.js → sqm-base-registration-form-view-d732a5df.js} +2 -2
- package/dist/esm/sqm-big-stat_41.entry.js +290 -115
- package/dist/esm/{sqm-close-button-view-f9819751.js → sqm-close-button-view-bc2bc10e.js} +1 -1
- package/dist/esm/sqm-close-button.entry.js +2 -2
- package/dist/esm/sqm-email-verification.entry.js +2 -2
- package/dist/esm/sqm-empty_4.entry.js +50 -49
- package/dist/esm/sqm-instant-access-registration.entry.js +2 -2
- package/dist/esm/{sqm-invoice-table-view-2c726568.js → sqm-invoice-table-view-6d5c38fe.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
- package/dist/esm/{sqm-navigation-sidebar-item-view-8f1c72bc.js → sqm-navigation-sidebar-item-view-6e046743.js} +18 -7
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +26 -3
- package/dist/esm/{sqm-navigation-sidebar-view-9d802b78.js → sqm-navigation-sidebar-view-f898265a.js} +16 -6
- package/dist/esm/sqm-navigation-sidebar.entry.js +20 -4
- package/dist/esm/sqm-pagination_3.entry.js +86 -59
- package/dist/esm/sqm-password-field.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-35b4353b.js → sqm-portal-email-verification-view-ece37a13.js} +3 -3
- package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
- package/dist/esm/{sqm-portal-forgot-password-view-3d3182f1.js → sqm-portal-forgot-password-view-55fc0873.js} +24 -17
- package/dist/esm/sqm-portal-forgot-password.entry.js +25 -4
- package/dist/esm/sqm-portal-google-login.entry.js +3 -3
- package/dist/esm/sqm-portal-google-registration-form.entry.js +4 -4
- package/dist/esm/{sqm-portal-login-view-7e49609a.js → sqm-portal-login-view-c8153720.js} +2 -2
- package/dist/esm/{sqm-portal-profile-view-93003974.js → sqm-portal-profile-view-73cfda71.js} +3 -3
- package/dist/esm/sqm-portal-profile.entry.js +3 -3
- package/dist/esm/{sqm-portal-registration-form-view-3c1f6000.js → sqm-portal-registration-form-view-5d651c04.js} +2 -2
- package/dist/esm/sqm-portal-registration-form.entry.js +3 -3
- package/dist/esm/{sqm-portal-reset-password-view-54a8651f.js → sqm-portal-reset-password-view-6903828e.js} +2 -2
- package/dist/esm/sqm-portal-reset-password.entry.js +3 -3
- package/dist/esm/{sqm-portal-verify-email-view-b12cb894.js → sqm-portal-verify-email-view-01ac711f.js} +2 -2
- package/dist/esm/sqm-portal-verify-email.entry.js +3 -3
- package/dist/esm/{sqm-qr-code-view-f1d0763b.js → sqm-qr-code-view-10b8b4cb.js} +2 -7
- package/dist/esm/sqm-qr-code.entry.js +1 -1
- package/dist/esm/sqm-referral-table_11.entry.js +4 -6
- package/dist/esm/sqm-referred-registration.entry.js +2 -2
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
- package/dist/esm/sqm-stencilbook.entry.js +144 -29
- package/dist/esm/sqm-tabs.entry.js +9 -4
- package/dist/esm/sqm-text-span-view-cd3902e5.js +61 -0
- package/dist/esm/sqm-text-span.entry.js +4 -4
- package/dist/esm-es5/{GenericTableView-7b9087af.js → GenericTableView-cb1581d8.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-b6997735.js +1 -0
- package/dist/esm-es5/copy-text-view-3f41072a.js +1 -0
- package/dist/esm-es5/{email-registration-view-a7818cf2.js → email-registration-view-b1c858ee.js} +1 -1
- package/dist/esm-es5/{global-be1f9992.js → global-3c495429.js} +4 -4
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/mixins-f750863a.js +1 -0
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -1
- package/dist/esm-es5/{sqm-base-registration-form-view-593d4ac3.js → sqm-base-registration-form-view-d732a5df.js} +1 -1
- package/dist/esm-es5/sqm-big-stat_41.entry.js +1 -1
- package/dist/esm-es5/{sqm-close-button-view-f9819751.js → sqm-close-button-view-bc2bc10e.js} +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/{sqm-invoice-table-view-2c726568.js → sqm-invoice-table-view-6d5c38fe.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-6e046743.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-f898265a.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-35b4353b.js → sqm-portal-email-verification-view-ece37a13.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-55fc0873.js +1 -0
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-login-view-7e49609a.js → sqm-portal-login-view-c8153720.js} +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-93003974.js → sqm-portal-profile-view-73cfda71.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-registration-form-view-3c1f6000.js → sqm-portal-registration-form-view-5d651c04.js} +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-54a8651f.js → sqm-portal-reset-password-view-6903828e.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-b12cb894.js → sqm-portal-verify-email-view-01ac711f.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/{sqm-qr-code-view-f1d0763b.js → sqm-qr-code-view-10b8b4cb.js} +1 -1
- package/dist/esm-es5/sqm-qr-code.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_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/sqm-text-span-view-cd3902e5.js +1 -0
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/mint-components/global/styles.ts +186 -28
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-042642d3.entry.js +1 -0
- package/dist/mint-components/{p-91ab3da1.js → p-057f5402.js} +1 -1
- package/dist/mint-components/{p-e5d0375e.system.js → p-0df294ad.system.js} +1 -1
- package/dist/mint-components/p-10586a3f.js +1 -0
- package/dist/mint-components/{p-99ad7d56.system.js → p-223dd3f7.system.js} +1 -1
- package/dist/mint-components/p-24cedc6c.system.js +1 -0
- package/dist/mint-components/p-2927748b.system.js +1 -0
- package/dist/mint-components/{p-837a0fdd.js → p-294f6682.js} +1 -1
- package/dist/mint-components/{p-aad32fb6.system.js → p-38de17fa.system.js} +1 -1
- package/dist/mint-components/p-3a21f8f9.system.entry.js +1 -0
- package/dist/mint-components/{p-19bc3406.system.entry.js → p-3e4e74a2.system.entry.js} +1 -1
- package/dist/mint-components/{p-164a9103.system.entry.js → p-41d051b1.system.entry.js} +1 -1
- package/dist/mint-components/{p-90fc6774.system.entry.js → p-457962b7.system.entry.js} +1 -1
- package/dist/mint-components/p-46a672e4.entry.js +1 -0
- package/dist/mint-components/p-49b20dae.js +1 -0
- package/dist/mint-components/{p-380bfde1.entry.js → p-4b42b756.entry.js} +1 -1
- package/dist/mint-components/{p-2dca9e1a.system.js → p-4b9789a2.system.js} +1 -1
- package/dist/mint-components/p-4e4b84bb.system.entry.js +1 -0
- package/dist/mint-components/{p-b75bb6e3.system.js → p-505951d2.system.js} +1 -1
- package/dist/mint-components/p-54b0b768.system.js +1 -0
- package/dist/mint-components/p-56f3427d.system.js +1 -0
- package/dist/mint-components/{p-10d17989.entry.js → p-576d3b4a.entry.js} +1 -1
- package/dist/mint-components/{p-5d7e308c.system.entry.js → p-5973487a.system.entry.js} +1 -1
- package/dist/mint-components/p-5c5964e0.js +1 -0
- package/dist/mint-components/p-5d407714.system.entry.js +1 -0
- package/dist/mint-components/{p-a2fde301.entry.js → p-5ef6de10.entry.js} +1 -1
- package/dist/mint-components/{p-ff8b8067.entry.js → p-61dec887.entry.js} +1 -1
- package/dist/mint-components/p-66a2b1a4.js +1 -0
- package/dist/mint-components/p-6798cad1.system.js +1 -0
- package/dist/mint-components/{p-65069b66.js → p-69d60453.js} +22 -22
- package/dist/mint-components/p-6b0fa3a2.entry.js +1 -0
- package/dist/mint-components/{p-50c902ca.system.entry.js → p-6e1acebb.system.entry.js} +1 -1
- package/dist/mint-components/{p-57eef0af.entry.js → p-708f58e8.entry.js} +6 -6
- package/dist/mint-components/p-71168e62.entry.js +258 -0
- package/dist/mint-components/{p-92816d1f.js → p-72ff8268.js} +1 -1
- package/dist/mint-components/p-74afdafb.system.js +1 -0
- package/dist/mint-components/{p-0d182dc1.system.js → p-79947589.system.js} +1 -1
- package/dist/mint-components/{p-0c78815e.system.entry.js → p-7cbec088.system.entry.js} +1 -1
- package/dist/mint-components/p-804ee38a.system.entry.js +1 -0
- package/dist/mint-components/{p-7a9290ba.js → p-82113e37.js} +1 -1
- package/dist/mint-components/p-83e1c41c.entry.js +13 -0
- package/dist/mint-components/{p-3f067fd5.js → p-850d59f3.js} +1 -1
- package/dist/mint-components/{p-0d2d0b6d.entry.js → p-865f812e.entry.js} +1 -1
- package/dist/mint-components/p-8692e7a5.entry.js +144 -0
- package/dist/mint-components/{p-42187319.system.entry.js → p-884ac29e.system.entry.js} +1 -1
- package/dist/mint-components/p-893d7ab4.js +1 -0
- package/dist/mint-components/p-8a6494c7.system.js +1 -0
- package/dist/mint-components/p-8c4992d3.js +1 -0
- package/dist/mint-components/{p-00ed4c2e.entry.js → p-8e93e590.entry.js} +1 -1
- package/dist/mint-components/p-8feb4180.entry.js +1 -0
- package/dist/mint-components/p-906e04ba.system.entry.js +1 -0
- package/dist/mint-components/{p-dbcb5359.js → p-9438e80a.js} +1 -1
- package/dist/mint-components/{p-cbbfac66.entry.js → p-97428eb3.entry.js} +2 -2
- package/dist/mint-components/p-9acf0b39.system.entry.js +1 -0
- package/dist/mint-components/p-9f2edf59.system.js +1 -0
- package/dist/mint-components/{p-6055eb4c.system.js → p-a1091368.system.js} +1 -1
- package/dist/mint-components/{p-4428294b.entry.js → p-a3e68251.entry.js} +1 -1
- package/dist/mint-components/p-a572db9b.system.entry.js +1 -0
- package/dist/mint-components/p-a5bc3f7b.system.entry.js +1 -0
- package/dist/mint-components/{p-7f80a9d7.entry.js → p-a60d5315.entry.js} +1 -1
- package/dist/mint-components/{p-53730ffe.entry.js → p-a81b507f.entry.js} +3 -3
- package/dist/mint-components/{p-21620f81.system.entry.js → p-a86f2006.system.entry.js} +1 -1
- package/dist/mint-components/{p-bbcd824a.js → p-a87b265e.js} +1 -1
- package/dist/mint-components/{p-f4a8ee29.system.entry.js → p-af516659.system.entry.js} +1 -1
- package/dist/mint-components/{p-2f101bae.entry.js → p-b6761073.entry.js} +1 -1
- package/dist/mint-components/p-b6de39a2.entry.js +1 -0
- package/dist/mint-components/p-b80891a8.entry.js +1 -0
- package/dist/mint-components/p-ba3e2d27.system.entry.js +1 -0
- package/dist/mint-components/{p-9bfd9bed.system.entry.js → p-bb6e411d.system.entry.js} +1 -1
- package/dist/mint-components/{p-b287833c.system.entry.js → p-c16dada5.system.entry.js} +1 -1
- package/dist/mint-components/{p-a7746488.system.js → p-c4d80117.system.js} +1 -1
- package/dist/mint-components/{p-91959fbe.js → p-c96a25c6.js} +1 -1
- package/dist/mint-components/{p-1a6b7d2a.entry.js → p-cd0ee247.entry.js} +1 -1
- package/dist/mint-components/{p-0ebab63e.system.js → p-ceecfa65.system.js} +1 -1
- package/dist/mint-components/{p-9386ad84.system.entry.js → p-d12e9cfd.system.entry.js} +1 -1
- package/dist/mint-components/{p-35b475bf.js → p-d1ae7a2d.js} +1 -1
- package/dist/mint-components/{p-d07f3090.entry.js → p-d1b5f5b0.entry.js} +1 -1
- package/dist/mint-components/{p-5c28406d.system.entry.js → p-d5b3397c.system.entry.js} +1 -1
- package/dist/mint-components/p-d6352d15.js +1 -0
- package/dist/mint-components/p-db45cc4c.js +394 -0
- package/dist/mint-components/{p-ef6381d4.entry.js → p-de7e83b3.entry.js} +2 -2
- package/dist/mint-components/p-e09a3d73.system.entry.js +1 -0
- package/dist/mint-components/p-e1e62d55.entry.js +1 -0
- package/dist/mint-components/{p-4794641c.system.js → p-e2705fbe.system.js} +1 -1
- package/dist/mint-components/p-e309a219.js +1 -0
- package/dist/mint-components/{p-f940190a.js → p-e518a60d.js} +1 -1
- package/dist/mint-components/{p-f2d8d3d3.system.entry.js → p-e80f9e26.system.entry.js} +1 -1
- package/dist/mint-components/{p-f0772618.system.entry.js → p-e8ed71cf.system.entry.js} +1 -1
- package/dist/mint-components/{p-775f3ded.entry.js → p-f0fdbd82.entry.js} +1 -1
- package/dist/mint-components/{p-bdb7d451.system.js → p-f6db346b.system.js} +12 -12
- package/dist/mint-components/p-f80ab10b.entry.js +13 -0
- package/dist/mint-components/p-f84d2ed0.system.entry.js +1 -0
- package/dist/mint-components/p-fdaa4dbb.system.entry.js +1 -0
- package/dist/mint-components/{p-cd569259.system.js → p-fdba347c.system.js} +1 -1
- package/dist/mint-components/{p-f7c99803.system.js → p-ffaaec76.system.js} +1 -1
- package/dist/types/components/sqm-big-stat/BigStat.stories.d.ts +2 -0
- package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +5 -0
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +41 -0
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code-view.d.ts +1 -0
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +42 -0
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout-view.d.ts +4 -1
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +13 -0
- package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +1 -0
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +19 -0
- package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +1 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +6 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +48 -7
- package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +6 -0
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.d.ts +1 -0
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +14 -0
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.d.ts +8 -0
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +57 -0
- package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +1 -0
- package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +9 -0
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password-view.d.ts +3 -0
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +7 -0
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +15 -0
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame-view.d.ts +3 -0
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +19 -0
- package/dist/types/components/sqm-portal-frame/usePortalFrame.d.ts +2 -1
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +3 -0
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +20 -2
- package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +5 -2
- package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +20 -0
- package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +1 -0
- package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +42 -0
- package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +1 -0
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +1 -0
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +6 -0
- package/dist/types/components/sqm-share-button/ShareButton.stories.d.ts +1 -1
- package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +2 -1
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +15 -3
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +42 -0
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +1 -0
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +43 -1
- package/dist/types/components/sqm-stat-container/sqm-stat-container-view.d.ts +3 -0
- package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +23 -0
- package/dist/types/components/sqm-tabs/Tabs.stories.d.ts +1 -0
- package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +1 -0
- package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +8 -0
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +5 -0
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +32 -0
- package/dist/types/components/sqm-task-card/useTaskCard.d.ts +9 -0
- package/dist/types/components/sqm-text/Text.stories.d.ts +6 -0
- package/dist/types/components/sqm-text/sqm-text.d.ts +12 -0
- package/dist/types/components/sqm-text-span/sqm-text-span-view.d.ts +4 -2
- package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +13 -1
- package/dist/types/components/sqm-timeline/Timeline.stories.d.ts +1 -0
- package/dist/types/components/sqm-timeline/sqm-timeline-entry-view.d.ts +2 -0
- package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +14 -0
- package/dist/types/components/views/copy-text-view.d.ts +5 -0
- package/dist/types/components.d.ts +1112 -15
- package/dist/types/global/mixins.d.ts +12 -12
- package/dist/types/global/styles.d.ts +1 -1
- 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/sqm-text-span-view-0aa82125.js +0 -62
- package/dist/esm/sqm-text-span-view-ca32495e.js +0 -60
- package/dist/esm-es5/ShadowViewAddon-cf230f50.js +0 -1
- package/dist/esm-es5/copy-text-view-782137ba.js +0 -1
- package/dist/esm-es5/mixins-83f90fa1.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-9d802b78.js +0 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-3d3182f1.js +0 -1
- package/dist/esm-es5/sqm-text-span-view-ca32495e.js +0 -1
- package/dist/mint-components/p-116baa69.entry.js +0 -258
- package/dist/mint-components/p-141bf5c1.system.entry.js +0 -1
- package/dist/mint-components/p-1f089c3f.system.entry.js +0 -1
- package/dist/mint-components/p-24db5c70.js +0 -1
- package/dist/mint-components/p-2da21ba4.entry.js +0 -1
- package/dist/mint-components/p-31015791.js +0 -1
- package/dist/mint-components/p-37996351.system.js +0 -1
- package/dist/mint-components/p-38e5c429.system.js +0 -1
- package/dist/mint-components/p-3b90e01b.system.js +0 -1
- package/dist/mint-components/p-3db34d68.js +0 -1
- package/dist/mint-components/p-3f6e0197.system.entry.js +0 -1
- package/dist/mint-components/p-420554af.system.entry.js +0 -1
- package/dist/mint-components/p-492b70db.system.js +0 -1
- package/dist/mint-components/p-4e773bb1.system.entry.js +0 -1
- package/dist/mint-components/p-562428ef.system.js +0 -1
- package/dist/mint-components/p-5cb7f9fc.system.entry.js +0 -1
- package/dist/mint-components/p-626e9e84.js +0 -1
- package/dist/mint-components/p-635d5ef2.system.js +0 -1
- package/dist/mint-components/p-63a75798.js +0 -1
- package/dist/mint-components/p-653f963f.entry.js +0 -13
- package/dist/mint-components/p-693942df.entry.js +0 -144
- package/dist/mint-components/p-6cc141b9.js +0 -394
- package/dist/mint-components/p-7846937e.entry.js +0 -13
- package/dist/mint-components/p-7ab21e4d.entry.js +0 -1
- package/dist/mint-components/p-85671c3d.system.entry.js +0 -1
- package/dist/mint-components/p-91521e9d.js +0 -1
- package/dist/mint-components/p-b207beeb.entry.js +0 -1
- package/dist/mint-components/p-b82e1935.system.entry.js +0 -1
- package/dist/mint-components/p-c060f770.system.entry.js +0 -1
- package/dist/mint-components/p-c9f1dde7.js +0 -1
- package/dist/mint-components/p-cb7bdbe4.entry.js +0 -1
- package/dist/mint-components/p-cd1d497f.system.js +0 -1
- package/dist/mint-components/p-daee25f9.system.entry.js +0 -1
- package/dist/mint-components/p-dcc81e90.entry.js +0 -1
- package/dist/mint-components/p-de8e9981.system.entry.js +0 -1
- package/dist/mint-components/p-e07bc6c4.system.js +0 -1
- package/dist/mint-components/p-e5a5ae7f.system.entry.js +0 -1
- package/dist/mint-components/p-e6f50ffd.entry.js +0 -1
- package/dist/mint-components/p-f56bedd5.js +0 -1
- package/dist/mint-components/p-fe2e2f4a.entry.js +0 -1
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
const index = require('./index-a29c60ef.js');
|
|
4
4
|
const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
|
|
5
|
-
const global = require('./global-
|
|
5
|
+
const global = require('./global-e1930bce.js');
|
|
6
6
|
const index_module = require('./index.module-ee84433d.js');
|
|
7
7
|
const cjs = require('./cjs-1066ec21.js');
|
|
8
8
|
const utils = require('./utils-6847bc06.js');
|
|
9
9
|
const JSS = require('./JSS-8503a151.js');
|
|
10
10
|
const useReferralCodes = require('./useReferralCodes-82e8797b.js');
|
|
11
|
-
const mixins = require('./mixins-
|
|
12
|
-
const copyTextView = require('./copy-text-view-
|
|
11
|
+
const mixins = require('./mixins-4761d472.js');
|
|
12
|
+
const copyTextView = require('./copy-text-view-f0702822.js');
|
|
13
13
|
const useChildElements = require('./useChildElements-1b35d945.js');
|
|
14
14
|
const luxon = require('./luxon-2926d85f.js');
|
|
15
|
-
const sqmTextSpanView = require('./sqm-text-span-view-
|
|
15
|
+
const sqmTextSpanView = require('./sqm-text-span-view-ce4c0178.js');
|
|
16
16
|
const index$1 = require('./index-8c6255f5.js');
|
|
17
17
|
const utilities = require('./utilities-78f5e169.js');
|
|
18
18
|
const sqmPortalContainerView = require('./sqm-portal-container-view-4f15143a.js');
|
|
@@ -40,15 +40,30 @@ const style = {
|
|
|
40
40
|
};
|
|
41
41
|
const sheet = JSS.createStyleSheet(style);
|
|
42
42
|
const styleString = sheet.toString();
|
|
43
|
+
// TODO: Figure out hover and active states
|
|
44
|
+
// *::part(base):hover {
|
|
45
|
+
// border-color: ${
|
|
46
|
+
// props.backgroundcolor
|
|
47
|
+
// ? props.backgroundcolor
|
|
48
|
+
// : props.medium
|
|
49
|
+
// ? medium[props.medium].color
|
|
50
|
+
// : ""
|
|
51
|
+
// }!important;
|
|
52
|
+
// }
|
|
53
|
+
// *::part(base):focus {
|
|
54
|
+
// border-color: ${
|
|
55
|
+
// props.backgroundcolor
|
|
56
|
+
// ? props.backgroundcolor
|
|
57
|
+
// : props.medium
|
|
58
|
+
// ? medium[props.medium].color
|
|
59
|
+
// : ""
|
|
60
|
+
// }!important;
|
|
61
|
+
// }
|
|
43
62
|
function ShareButtonView(props, children) {
|
|
44
63
|
const vanillaStyle = `
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
? props.backgroundcolor
|
|
49
|
-
: props.medium
|
|
50
|
-
? medium[props.medium].color
|
|
51
|
-
: ""}80!important;
|
|
64
|
+
sl-button::part(base) {
|
|
65
|
+
border: ${props.border || "none"};
|
|
66
|
+
|
|
52
67
|
|
|
53
68
|
background: ${props.backgroundcolor
|
|
54
69
|
? props.backgroundcolor
|
|
@@ -63,21 +78,7 @@ function ShareButtonView(props, children) {
|
|
|
63
78
|
border-radius: ${props.borderradius ? props.borderradius + "px" : ""};
|
|
64
79
|
}
|
|
65
80
|
|
|
66
|
-
*::part(base):hover {
|
|
67
|
-
border-color: ${props.backgroundcolor
|
|
68
|
-
? props.backgroundcolor
|
|
69
|
-
: props.medium
|
|
70
|
-
? medium[props.medium].color
|
|
71
|
-
: ""}D1!important;
|
|
72
|
-
}
|
|
73
81
|
|
|
74
|
-
*::part(base):focus {
|
|
75
|
-
border-color: ${props.backgroundcolor
|
|
76
|
-
? props.backgroundcolor
|
|
77
|
-
: props.medium
|
|
78
|
-
? medium[props.medium].color
|
|
79
|
-
: ""}D1!important;
|
|
80
|
-
}
|
|
81
82
|
|
|
82
83
|
*::part(label) {
|
|
83
84
|
position: relative;
|
|
@@ -87,77 +88,82 @@ function ShareButtonView(props, children) {
|
|
|
87
88
|
return props.hide ? (index.h(index.Host, { style: { display: "none" } })) : (index.h("div", null,
|
|
88
89
|
index.h("style", { type: "text/css" }, styleString),
|
|
89
90
|
index.h("style", { type: "text/css" }, vanillaStyle),
|
|
90
|
-
index.h("sl-button", { class: sheet.classes.buttonStyle, target: props.openInSameTab ? "_self" : "_blank", loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type, onClick: !props.isPlainLink ? props.onClick : undefined, href: props.isPlainLink ? props.messageLink : undefined, exportparts: `base: ${props.type}
|
|
91
|
+
index.h("sl-button", { class: sheet.classes.buttonStyle, target: props.openInSameTab ? "_self" : "_blank", loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type, onClick: !props.isPlainLink ? props.onClick : undefined, href: props.isPlainLink ? props.messageLink : undefined, exportparts: `base: ${props.type}button-base` },
|
|
91
92
|
!props.hideicon && (index.h("sl-icon", { slot: props.iconslot || "prefix", name: props.icon ? props.icon : medium[props.medium].icon, exportparts: "base: icon" })),
|
|
92
93
|
!props.hidetext && children)));
|
|
93
94
|
}
|
|
94
95
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
96
|
+
function LeaderboardView(props) {
|
|
97
|
+
var _a, _b, _c;
|
|
98
|
+
const { states, data, elements } = props;
|
|
99
|
+
const { styles } = states;
|
|
100
|
+
const style = {
|
|
101
|
+
Leaderboard: {
|
|
102
|
+
"& table": {
|
|
103
|
+
width: "100%",
|
|
104
|
+
borderCollapse: "collapse",
|
|
105
|
+
background: styles.background || "transparent",
|
|
106
|
+
borderRadius: styles.borderRadius ? `${styles.borderRadius}px` : "0",
|
|
107
|
+
},
|
|
108
|
+
"& th": {
|
|
109
|
+
textAlign: "left",
|
|
110
|
+
padding: "var(--sl-spacing-medium)",
|
|
111
|
+
paddingTop: "0",
|
|
112
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
113
|
+
fontWeight: "var(--sl-font-weight-semibold)",
|
|
114
|
+
},
|
|
115
|
+
"& tr:not(:first-child)": {
|
|
116
|
+
borderTop: `1px solid ${styles.borderColor || "var(--sl-color-neutral-200)"}`,
|
|
117
|
+
},
|
|
118
|
+
"& td": {
|
|
119
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
120
|
+
fontWeight: "var(--sl-font-weight-normal)",
|
|
121
|
+
},
|
|
122
|
+
"& .ellipses": {
|
|
123
|
+
textAlign: "left",
|
|
124
|
+
padding: "0",
|
|
125
|
+
color: styles.textColor || "var(--sqm-text)",
|
|
126
|
+
paddingLeft: "25%",
|
|
127
|
+
},
|
|
128
|
+
"& .highlight": {
|
|
129
|
+
background: styles.viewingUserHighlightColor || "var(--sl-color-primary-200)",
|
|
130
|
+
"& td, th": {
|
|
131
|
+
color: styles.viewingUserHighlightTextColor || "var(--sqm-text)",
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
"& td, th": {
|
|
135
|
+
color: styles.textColor || "var(--sqm-text)",
|
|
136
|
+
padding: "var(--sl-spacing-medium)",
|
|
137
|
+
},
|
|
138
|
+
"& .User": {
|
|
139
|
+
width: "100%",
|
|
140
|
+
},
|
|
141
|
+
"& .Score": {
|
|
142
|
+
width: "auto",
|
|
143
|
+
whiteSpace: "nowrap",
|
|
144
|
+
},
|
|
145
|
+
"& .Rank": {
|
|
146
|
+
whiteSpace: "nowrap",
|
|
147
|
+
},
|
|
148
|
+
"& .fullWidth": {
|
|
149
|
+
width: "100%",
|
|
150
|
+
},
|
|
140
151
|
},
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
const
|
|
144
|
-
const
|
|
145
|
-
const vanillaStyle = `
|
|
152
|
+
};
|
|
153
|
+
const sheet = JSS.createStyleSheet(style);
|
|
154
|
+
const styleString = sheet.toString();
|
|
155
|
+
const vanillaStyle = `
|
|
146
156
|
:host{
|
|
147
157
|
display: block;
|
|
148
158
|
}
|
|
149
159
|
`;
|
|
150
|
-
function LeaderboardView(props) {
|
|
151
|
-
var _a, _b, _c;
|
|
152
|
-
const { states, data, elements } = props;
|
|
153
|
-
const { styles } = states;
|
|
154
160
|
if (states.isEssentials) {
|
|
155
161
|
return (index.h("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1715360191/squatch-assets/Leaderboard_Not_Available.svg", "empty-state-header": "Leaderboards aren\u2019t available on your plan", "empty-state-text": "Contact {supportText} to upgrade your plan and start leveraging gamification in your program.", "support-text": "Support" }));
|
|
156
162
|
}
|
|
157
163
|
if (states.loading) {
|
|
158
|
-
return (index.h("div", { class: sheet
|
|
164
|
+
return (index.h("div", { class: sheet.classes.Leaderboard, style: { width: styles.width || "100%" } },
|
|
159
165
|
index.h("style", { type: "text/css" },
|
|
160
|
-
styleString
|
|
166
|
+
styleString,
|
|
161
167
|
vanillaStyle),
|
|
162
168
|
index.h("table", null, [...Array(10)].map(() => {
|
|
163
169
|
return (index.h("tr", null,
|
|
@@ -192,9 +198,9 @@ function LeaderboardView(props) {
|
|
|
192
198
|
}) + `${isViewingUsersRow && styles.hideNames ? viewingUserText : ""}`
|
|
193
199
|
: `${userRank} ${isViewingUsersRow && styles.hideNames ? viewingUserText : ""}`;
|
|
194
200
|
};
|
|
195
|
-
return (index.h("div", { class: sheet
|
|
201
|
+
return (index.h("div", { class: sheet.classes.Leaderboard, part: "sqm-base", style: { width: styles.width || "100%" } },
|
|
196
202
|
index.h("style", { type: "text/css" },
|
|
197
|
-
styleString
|
|
203
|
+
styleString,
|
|
198
204
|
vanillaStyle),
|
|
199
205
|
index.h("table", { part: "sqm-table" },
|
|
200
206
|
index.h("tr", null,
|
|
@@ -221,13 +227,13 @@ function LeaderboardView(props) {
|
|
|
221
227
|
}
|
|
222
228
|
|
|
223
229
|
function BigStatView(props) {
|
|
224
|
-
const { statvalue, flexReverse, alignment } = props;
|
|
225
|
-
// Dependent on props, not
|
|
230
|
+
const { statvalue, flexReverse, alignment, statTextColor, statFontSize, descriptionTextColor, descriptionFontSize, statFontWeight, } = props;
|
|
231
|
+
// Dependent on props, not feasible to move out
|
|
226
232
|
const style = {
|
|
227
233
|
Container: {
|
|
228
234
|
display: "flex",
|
|
229
|
-
height: "inherit",
|
|
230
|
-
"justify-content": "space-between",
|
|
235
|
+
// height: "inherit",
|
|
236
|
+
// "justify-content": "space-between",
|
|
231
237
|
"flex-direction": `${flexReverse ? "column-reverse" : "column"}`,
|
|
232
238
|
"align-items": `${alignment === "left"
|
|
233
239
|
? "flex-start"
|
|
@@ -236,15 +242,22 @@ function BigStatView(props) {
|
|
|
236
242
|
: "center"}`,
|
|
237
243
|
},
|
|
238
244
|
Stat: {
|
|
239
|
-
"font-size":
|
|
245
|
+
"font-size": statFontSize
|
|
246
|
+
? `${statFontSize}px`
|
|
247
|
+
: "var(--sl-font-size-xx-large)",
|
|
240
248
|
"text-align": alignment,
|
|
249
|
+
color: statTextColor || "var(--sqm-text)",
|
|
250
|
+
lineHeight: "35px",
|
|
251
|
+
fontWeight: statFontWeight || "var(--sl-font-weight-normal)",
|
|
241
252
|
},
|
|
242
253
|
Description: {
|
|
243
|
-
"font-size":
|
|
254
|
+
"font-size": descriptionFontSize
|
|
255
|
+
? `${descriptionFontSize}px`
|
|
256
|
+
: "var(--sl-font-size-small)",
|
|
244
257
|
"font-weight": "var(--sl-font-weight-normal)",
|
|
245
|
-
color: "var(--
|
|
246
|
-
"text-transform": "uppercase",
|
|
258
|
+
color: descriptionTextColor || "var(--sqm-text)",
|
|
247
259
|
"text-align": alignment,
|
|
260
|
+
lineHeight: "20px",
|
|
248
261
|
},
|
|
249
262
|
};
|
|
250
263
|
const sheet = JSS.createStyleSheet(style);
|
|
@@ -255,51 +268,56 @@ function BigStatView(props) {
|
|
|
255
268
|
index.h("div", { part: "stat-description", class: sheet.classes.Description }, props.labelSlot)));
|
|
256
269
|
}
|
|
257
270
|
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
HeaderWrapper: {
|
|
277
|
-
width: "100%",
|
|
278
|
-
"max-width": "100%",
|
|
279
|
-
"box-sizing": "border-box",
|
|
280
|
-
display: "flex",
|
|
281
|
-
"justify-content": "space-between",
|
|
282
|
-
padding: "var(--sl-spacing-small) var(--sl-spacing-large)",
|
|
283
|
-
"align-items": "center",
|
|
284
|
-
"background-color": "var(--sqm-header-background)",
|
|
285
|
-
"@media screen and (max-width: 499px)": {
|
|
286
|
-
"flex-direction": "row-reverse",
|
|
271
|
+
function PortalFrameView(props, children) {
|
|
272
|
+
const { data, notFullScreen, border } = props;
|
|
273
|
+
const style = {
|
|
274
|
+
HostBlock: mixins.HostBlock,
|
|
275
|
+
Frame: {
|
|
276
|
+
display: "flex",
|
|
277
|
+
"flex-direction": "column",
|
|
278
|
+
"box-sizing": "border-box",
|
|
279
|
+
"&:nth-child(2)": {
|
|
280
|
+
background: props.backgroundColor,
|
|
281
|
+
},
|
|
282
|
+
},
|
|
283
|
+
FooterWrapper: {
|
|
284
|
+
width: "100%",
|
|
285
|
+
"max-width": "100%",
|
|
286
|
+
padding: "var(--sl-spacing-medium) var(--sl-spacing-x-large)",
|
|
287
|
+
background: props.headerAndFooterBackgroundColor,
|
|
288
|
+
display: "flex",
|
|
287
289
|
"justify-content": "flex-end",
|
|
288
|
-
|
|
290
|
+
"align-items": "center",
|
|
291
|
+
"box-sizing": "border-box",
|
|
292
|
+
borderTop: border,
|
|
293
|
+
"margin-top": "auto",
|
|
289
294
|
},
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
295
|
+
HeaderWrapper: {
|
|
296
|
+
width: "100%",
|
|
297
|
+
"max-width": "100%",
|
|
298
|
+
"box-sizing": "border-box",
|
|
299
|
+
display: "flex",
|
|
300
|
+
"justify-content": "space-between",
|
|
301
|
+
padding: "var(--sl-spacing-small) var(--sl-spacing-large)",
|
|
302
|
+
"align-items": "center",
|
|
303
|
+
borderBottom: border,
|
|
304
|
+
background: props.headerAndFooterBackgroundColor,
|
|
305
|
+
"@media screen and (max-width: 499px)": {
|
|
306
|
+
"flex-direction": "row-reverse",
|
|
307
|
+
"justify-content": "flex-end",
|
|
308
|
+
padding: "0",
|
|
309
|
+
},
|
|
310
|
+
},
|
|
311
|
+
};
|
|
312
|
+
const sheet = JSS.createStyleSheet(style);
|
|
313
|
+
const styleString = sheet.toString();
|
|
314
|
+
return (index.h("div", { style: { minHeight: notFullScreen ? "100%" : "100vh" }, class: sheet.classes.Frame, part: "sqm-base" },
|
|
315
|
+
index.h("style", { type: "text/css" }, styleString),
|
|
316
|
+
index.h("div", { class: sheet.classes.HeaderWrapper, part: "sqm-header" },
|
|
299
317
|
data.header,
|
|
300
318
|
index.h("slot", { name: "sqm-navigation-menu" })),
|
|
301
319
|
children,
|
|
302
|
-
index.h("div", { class: sheet
|
|
320
|
+
index.h("div", { class: sheet.classes.FooterWrapper, part: "sqm-footer" }, data.footer)));
|
|
303
321
|
}
|
|
304
322
|
|
|
305
323
|
const EditProfileView = (props) => {
|
|
@@ -335,7 +353,7 @@ const EditProfileView = (props) => {
|
|
|
335
353
|
}, submit: true, exportparts: "base: primarybutton-base" }, text.updatetext),
|
|
336
354
|
index.h("sl-button", { onClick: () => {
|
|
337
355
|
callbacks.setShowEdit(false);
|
|
338
|
-
}, exportparts: "base:
|
|
356
|
+
}, exportparts: "base: secondarybutton-base" }, text.canceltext)))));
|
|
339
357
|
}
|
|
340
358
|
return (index.h("div", { class: `CardWrapper FormWrapper ${!states.showEdit && "ShowEdit"}`, part: "sqm-base" },
|
|
341
359
|
index.h("div", { class: "FormSection" },
|
|
@@ -1402,6 +1420,11 @@ function useBigStat(props) {
|
|
|
1402
1420
|
flexReverse,
|
|
1403
1421
|
alignment,
|
|
1404
1422
|
loading: false,
|
|
1423
|
+
statTextColor: props.statTextColor,
|
|
1424
|
+
statFontSize: props.statFontSize,
|
|
1425
|
+
descriptionTextColor: props.descriptionTextColor,
|
|
1426
|
+
descriptionFontSize: props.descriptionFontSize,
|
|
1427
|
+
statFontWeight: props.statFontWeight,
|
|
1405
1428
|
},
|
|
1406
1429
|
label: "BAD PROP TYPE",
|
|
1407
1430
|
};
|
|
@@ -1431,6 +1454,11 @@ function useBigStat(props) {
|
|
|
1431
1454
|
loading: stat === null || stat === void 0 ? void 0 : stat.loading,
|
|
1432
1455
|
flexReverse,
|
|
1433
1456
|
alignment,
|
|
1457
|
+
statTextColor: props.statTextColor,
|
|
1458
|
+
statFontSize: props.statFontSize,
|
|
1459
|
+
descriptionTextColor: props.descriptionTextColor,
|
|
1460
|
+
descriptionFontSize: props.descriptionFontSize,
|
|
1461
|
+
statFontWeight: props.statFontWeight,
|
|
1434
1462
|
},
|
|
1435
1463
|
label,
|
|
1436
1464
|
};
|
|
@@ -1447,8 +1475,12 @@ function useDemoBigStat(props) {
|
|
|
1447
1475
|
value: 0,
|
|
1448
1476
|
statvalue: "!!!",
|
|
1449
1477
|
loading: false,
|
|
1450
|
-
flexReverse:
|
|
1451
|
-
alignment:
|
|
1478
|
+
flexReverse: props.flexReverse,
|
|
1479
|
+
alignment: props.alignment,
|
|
1480
|
+
statTextColor: props.statTextColor,
|
|
1481
|
+
statFontSize: props.statFontSize,
|
|
1482
|
+
descriptionTextColor: props.descriptionTextColor,
|
|
1483
|
+
descriptionFontSize: props.descriptionFontSize,
|
|
1452
1484
|
},
|
|
1453
1485
|
label: "BAD PROP TYPE",
|
|
1454
1486
|
};
|
|
@@ -1460,8 +1492,13 @@ function useDemoBigStat(props) {
|
|
|
1460
1492
|
props: cjs.cjs({
|
|
1461
1493
|
statvalue: "12345",
|
|
1462
1494
|
value: 0,
|
|
1463
|
-
flexReverse:
|
|
1464
|
-
alignment:
|
|
1495
|
+
flexReverse: props.flexReverse,
|
|
1496
|
+
alignment: props.alignment,
|
|
1497
|
+
statTextColor: props.statTextColor,
|
|
1498
|
+
statFontSize: props.statFontSize,
|
|
1499
|
+
descriptionTextColor: props.descriptionTextColor,
|
|
1500
|
+
descriptionFontSize: props.descriptionFontSize,
|
|
1501
|
+
statFontWeight: props.statFontWeight,
|
|
1465
1502
|
}, props.demoData || {}, { arrayMerge: (_, a) => a }),
|
|
1466
1503
|
label: label !== null && label !== void 0 ? label : "Demo Label",
|
|
1467
1504
|
};
|
|
@@ -1472,25 +1509,37 @@ function StatContainerView(props, children) {
|
|
|
1472
1509
|
const spaceValue = getComputedStyle(document.documentElement).getPropertyValue(`--sl-spacing-${props.space}`);
|
|
1473
1510
|
return `${Math.floor(parseInt(spaceValue) / 2)}rem`;
|
|
1474
1511
|
};
|
|
1475
|
-
//
|
|
1512
|
+
// take alignment variable and convert it to CSS flexbox alignment
|
|
1513
|
+
const alignment = props.alignment === "center"
|
|
1514
|
+
? "center"
|
|
1515
|
+
: props.alignment === "right"
|
|
1516
|
+
? "flex-end"
|
|
1517
|
+
: "flex-start";
|
|
1518
|
+
// Dependent on props, not feasible to move out
|
|
1476
1519
|
const style = {
|
|
1477
1520
|
StatContainer: {
|
|
1478
1521
|
width: "100%",
|
|
1479
|
-
display:
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1522
|
+
display: "flex",
|
|
1523
|
+
flexWrap: "wrap",
|
|
1524
|
+
alignItems: "center",
|
|
1525
|
+
justifyContent: alignment,
|
|
1526
|
+
flexDirection: "row",
|
|
1527
|
+
gap: `var(--sl-spacing-${props.gap})`,
|
|
1528
|
+
// Apply border styles conditionally based on the hideBorder prop
|
|
1483
1529
|
"& > *": {
|
|
1484
|
-
"border-right":
|
|
1530
|
+
"border-right": props.hideBorder
|
|
1531
|
+
? "none"
|
|
1532
|
+
: "1px solid var(--sqm-text-subdued)",
|
|
1485
1533
|
"padding-right": divideSpace(),
|
|
1486
1534
|
},
|
|
1487
1535
|
"& > :last-child": {
|
|
1488
1536
|
"border-right": "none",
|
|
1489
1537
|
},
|
|
1490
1538
|
"& > ::slotted(*)": {
|
|
1491
|
-
"border-right":
|
|
1539
|
+
"border-right": props.hideBorder
|
|
1540
|
+
? "none"
|
|
1541
|
+
: "1px solid var(--sqm-text-subdued)",
|
|
1492
1542
|
"padding-right": divideSpace(),
|
|
1493
|
-
height: "100%",
|
|
1494
1543
|
},
|
|
1495
1544
|
"& > ::slotted(*:last-child)": {
|
|
1496
1545
|
"border-right": "none",
|
|
@@ -1524,6 +1573,10 @@ function PortalChangePasswordView(props) {
|
|
|
1524
1573
|
const style = {
|
|
1525
1574
|
Dialog: {
|
|
1526
1575
|
padding: "0",
|
|
1576
|
+
"&::part(panel)": {
|
|
1577
|
+
background: "var(--sqm-portal-background)",
|
|
1578
|
+
borderRadius: "var(--sqm-border-radius-normal, var(--sl-border-radius-medium))",
|
|
1579
|
+
},
|
|
1527
1580
|
"&::part(close-button)": {
|
|
1528
1581
|
"margin-top": "var(--sl-spacing-medium)",
|
|
1529
1582
|
},
|
|
@@ -1547,7 +1600,6 @@ function PortalChangePasswordView(props) {
|
|
|
1547
1600
|
},
|
|
1548
1601
|
},
|
|
1549
1602
|
CancelButton: {
|
|
1550
|
-
width: "25%",
|
|
1551
1603
|
margin: "var(--sl-spacing-large) auto",
|
|
1552
1604
|
},
|
|
1553
1605
|
PasswordField: {
|
|
@@ -1577,19 +1629,19 @@ function PortalChangePasswordView(props) {
|
|
|
1577
1629
|
index.h("sqm-password-field", { exportparts: "input-label: input-label", class: sheet.classes.PasswordField, fieldLabel: states.content.passwordFieldLabel, meetsRequirementsText: states.content.meetsRequirementsText, doesNotMeetRequirementsText: states.content.doesNotMeetRequirementsText, minErrorText: states.content.minErrorText, uppercaseErrorText: states.content.uppercaseErrorText, lowercaseErrorText: states.content.lowercaseErrorText, hasErrorText: states.content.hasErrorText }),
|
|
1578
1630
|
index.h("sl-input", { exportparts: "label: input-label, base: input-base", name: "/confirmPassword", label: states.content.confirmPasswordFieldLabel, required: true, togglePassword: true, disabled: states.loading, type: "password" })),
|
|
1579
1631
|
index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "row", padding: "none", gap: "20px" }),
|
|
1580
|
-
index.h("sl-button", { class: sheet.classes.ChangePasswordButton, type: "primary", submit: true, loading: states.loading }, states.content.changePasswordButtonText),
|
|
1581
|
-
index.h("sl-button", { class: sheet.classes.CancelButton, type: "text", onClick: () => callbacks.setOpen(false) }, states.content.cancelText))))),
|
|
1632
|
+
index.h("sl-button", { class: sheet.classes.ChangePasswordButton, type: "primary", exportparts: "base: primarybutton-base", submit: true, loading: states.loading }, states.content.changePasswordButtonText),
|
|
1633
|
+
index.h("sl-button", { class: sheet.classes.CancelButton, type: "text", exportparts: "base: secondarybutton-base", onClick: () => callbacks.setOpen(false) }, states.content.cancelText))))),
|
|
1582
1634
|
}))),
|
|
1583
1635
|
index.h(sqmPortalContainerView.PortalSectionView, Object.assign({}, {
|
|
1584
1636
|
labelMargin: "x-large",
|
|
1585
1637
|
padding: "xxx-large",
|
|
1586
1638
|
label: (index.h(sqmTextSpanView.TextSpanView, Object.assign({}, { type: "h2" }), states.content.portalChangePasswordHeader)),
|
|
1587
|
-
content: (index.h("sl-button", { onClick: () => callbacks.setOpen(true) }, states.content.portalChangePasswordButtonText)),
|
|
1639
|
+
content: (index.h("sl-button", { exportparts: "base: primarybutton-base", onClick: () => callbacks.setOpen(true) }, states.content.portalChangePasswordButtonText)),
|
|
1588
1640
|
}),
|
|
1589
1641
|
index.h("style", { type: "text/css" }, styleString))));
|
|
1590
1642
|
}
|
|
1591
1643
|
|
|
1592
|
-
const style$
|
|
1644
|
+
const style$1 = {
|
|
1593
1645
|
Wrapper: { ...mixins.AuthWrapper, "max-width": "600px" },
|
|
1594
1646
|
Column: mixins.AuthColumn,
|
|
1595
1647
|
HostBlock: mixins.HostBlock,
|
|
@@ -1600,7 +1652,7 @@ const style$3 = {
|
|
|
1600
1652
|
ButtonsContainer: mixins.AuthButtonsContainer,
|
|
1601
1653
|
ErrorStyle: mixins.ErrorStyles,
|
|
1602
1654
|
};
|
|
1603
|
-
const vanillaStyle
|
|
1655
|
+
const vanillaStyle = `
|
|
1604
1656
|
sqm-portal-register {
|
|
1605
1657
|
margin: 0 auto;
|
|
1606
1658
|
width: 100%;
|
|
@@ -1615,20 +1667,20 @@ sqm-portal-register {
|
|
|
1615
1667
|
display: none;
|
|
1616
1668
|
}
|
|
1617
1669
|
`;
|
|
1618
|
-
const sheet$
|
|
1619
|
-
const styleString$
|
|
1670
|
+
const sheet$1 = JSS.createStyleSheet(style$1);
|
|
1671
|
+
const styleString$1 = sheet$1.toString();
|
|
1620
1672
|
function PortalRegisterView(props) {
|
|
1621
1673
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
1622
1674
|
const { states, refs, callbacks, content } = props;
|
|
1623
1675
|
if (states.error) {
|
|
1624
1676
|
window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
|
|
1625
1677
|
}
|
|
1626
|
-
return (index.h("div", { class: sheet$
|
|
1678
|
+
return (index.h("div", { class: sheet$1.classes.Wrapper, part: "sqm-base" },
|
|
1627
1679
|
index.h("style", { type: "text/css" },
|
|
1628
|
-
vanillaStyle
|
|
1629
|
-
styleString$
|
|
1680
|
+
vanillaStyle,
|
|
1681
|
+
styleString$1),
|
|
1630
1682
|
index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.pageLabel),
|
|
1631
|
-
index.h("sl-form", { class: sheet$
|
|
1683
|
+
index.h("sl-form", { class: sheet$1.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
1632
1684
|
states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
1633
1685
|
index.h("div", { part: "erroralert-text" }, props.states.error))),
|
|
1634
1686
|
content.formData,
|
|
@@ -1641,7 +1693,7 @@ function PortalRegisterView(props) {
|
|
|
1641
1693
|
return content.invalidEmailErrorMessage;
|
|
1642
1694
|
}
|
|
1643
1695
|
} }, (((_b = (_a = states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
|
|
1644
|
-
class: sheet$
|
|
1696
|
+
class: sheet$1.classes.ErrorStyle,
|
|
1645
1697
|
helpText: ((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
|
|
1646
1698
|
content.requiredFieldErrorMessage,
|
|
1647
1699
|
}
|
|
@@ -1652,17 +1704,17 @@ function PortalRegisterView(props) {
|
|
|
1652
1704
|
value: (_j = (_h = states.registrationFormState) === null || _h === void 0 ? void 0 : _h.initialData) === null || _j === void 0 ? void 0 : _j.confirmPassword,
|
|
1653
1705
|
}
|
|
1654
1706
|
: {}), (((_l = (_k = states.registrationFormState) === null || _k === void 0 ? void 0 : _k.validationErrors) === null || _l === void 0 ? void 0 : _l.confirmPassword) ? {
|
|
1655
|
-
class: sheet$
|
|
1707
|
+
class: sheet$1.classes.ErrorStyle,
|
|
1656
1708
|
helpText: ((_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.validationErrors) === null || _o === void 0 ? void 0 : _o.confirmPassword) || content.requiredFieldErrorMessage,
|
|
1657
1709
|
}
|
|
1658
1710
|
: [])))),
|
|
1659
1711
|
content.terms,
|
|
1660
|
-
index.h("div", { class: sheet$
|
|
1712
|
+
index.h("div", { class: sheet$1.classes.ButtonsContainer },
|
|
1661
1713
|
index.h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"),
|
|
1662
1714
|
content.secondaryButton))));
|
|
1663
1715
|
}
|
|
1664
1716
|
|
|
1665
|
-
const style$
|
|
1717
|
+
const style$2 = {
|
|
1666
1718
|
ErrorStyle: {
|
|
1667
1719
|
"&::part(control)": {
|
|
1668
1720
|
background: "var(--sl-color-danger-10)",
|
|
@@ -1685,7 +1737,7 @@ const style$4 = {
|
|
|
1685
1737
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
1686
1738
|
},
|
|
1687
1739
|
};
|
|
1688
|
-
const vanillaStyle$
|
|
1740
|
+
const vanillaStyle$1 = `
|
|
1689
1741
|
:host {
|
|
1690
1742
|
margin: 0 auto;
|
|
1691
1743
|
width: 100%;
|
|
@@ -1701,15 +1753,15 @@ sl-checkbox::part(base){
|
|
|
1701
1753
|
}
|
|
1702
1754
|
`;
|
|
1703
1755
|
JSS.jss.setup(JSS.create());
|
|
1704
|
-
const sheet$
|
|
1705
|
-
const styleString$
|
|
1756
|
+
const sheet$2 = JSS.jss.createStyleSheet(style$2);
|
|
1757
|
+
const styleString$2 = sheet$2.toString();
|
|
1706
1758
|
function CheckboxFieldView(props) {
|
|
1707
1759
|
var _b, _c;
|
|
1708
1760
|
const { states, content, callbacks } = props;
|
|
1709
|
-
return (index.h("div", { class: sheet$
|
|
1761
|
+
return (index.h("div", { class: sheet$2.classes.FieldContainer, part: "sqm-base" },
|
|
1710
1762
|
index.h("style", { type: "text/css" },
|
|
1711
|
-
vanillaStyle$
|
|
1712
|
-
styleString$
|
|
1763
|
+
vanillaStyle$1,
|
|
1764
|
+
styleString$2),
|
|
1713
1765
|
index.h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
|
|
1714
1766
|
e.target.value = e.target.checked;
|
|
1715
1767
|
callbacks.setChecked(e.target.value);
|
|
@@ -1765,7 +1817,7 @@ function ChangeMarktingView(props) {
|
|
|
1765
1817
|
index.h("div", { part: "successalert-text" }, states.text.successMessage))))));
|
|
1766
1818
|
}
|
|
1767
1819
|
|
|
1768
|
-
const style$
|
|
1820
|
+
const style$3 = {
|
|
1769
1821
|
Description: {
|
|
1770
1822
|
"& input[type=checkbox]": {
|
|
1771
1823
|
display: "none",
|
|
@@ -1777,7 +1829,7 @@ const style$5 = {
|
|
|
1777
1829
|
position: "absolute",
|
|
1778
1830
|
top: "var(--sl-spacing-medium)",
|
|
1779
1831
|
right: "var(--sl-spacing-medium)",
|
|
1780
|
-
color: "var(--
|
|
1832
|
+
color: "var(--sqm-text)",
|
|
1781
1833
|
fontSize: "var(--sl-font-size-large)",
|
|
1782
1834
|
"& :hover": {
|
|
1783
1835
|
color: "var(--sl-color-primary-700)",
|
|
@@ -1804,13 +1856,13 @@ const style$5 = {
|
|
|
1804
1856
|
},
|
|
1805
1857
|
},
|
|
1806
1858
|
};
|
|
1807
|
-
const sheet$
|
|
1808
|
-
const styleString$
|
|
1859
|
+
const sheet$3 = JSS.createStyleSheet(style$3);
|
|
1860
|
+
const styleString$3 = sheet$3.toString();
|
|
1809
1861
|
function Details(props) {
|
|
1810
1862
|
const rid = Math.random().toString(36).slice(2);
|
|
1811
1863
|
return (index.h("div", { style: { opacity: props.opacity } },
|
|
1812
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1813
|
-
index.h("span", { class: sheet$
|
|
1864
|
+
index.h("style", { type: "text/css" }, styleString$3),
|
|
1865
|
+
index.h("span", { class: sheet$3.classes.Description },
|
|
1814
1866
|
index.h("input", { type: "checkbox", id: "details-" + rid }),
|
|
1815
1867
|
index.h("label", { class: "details", htmlFor: "details-" + rid },
|
|
1816
1868
|
index.h("sl-icon", { exportparts: "base: chevron-icon", name: "chevron-down" })),
|
|
@@ -1832,7 +1884,7 @@ const GreyGift = () => {
|
|
|
1832
1884
|
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" })));
|
|
1833
1885
|
};
|
|
1834
1886
|
|
|
1835
|
-
const style$
|
|
1887
|
+
const style$4 = {
|
|
1836
1888
|
ProgressBar: {
|
|
1837
1889
|
"& .progress-bar": {
|
|
1838
1890
|
height: "0",
|
|
@@ -1944,14 +1996,14 @@ const style$6 = {
|
|
|
1944
1996
|
},
|
|
1945
1997
|
},
|
|
1946
1998
|
};
|
|
1947
|
-
const sheet$
|
|
1948
|
-
const styleString$
|
|
1999
|
+
const sheet$4 = JSS.createStyleSheet(style$4, { classNamePrefix: "sqm-prog-bar" });
|
|
2000
|
+
const styleString$4 = sheet$4.toString();
|
|
1949
2001
|
function ProgressBarView(props) {
|
|
1950
2002
|
const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false, complete = false, expired = false, finite = 0, opacity = "1", } = props;
|
|
1951
2003
|
let aggregate = buildProgressBar(repeatable, steps, props);
|
|
1952
2004
|
const { columns, items } = aggregate;
|
|
1953
|
-
return (index.h("div", { class: sheet$
|
|
1954
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
2005
|
+
return (index.h("div", { class: sheet$4.classes.ProgressBar, "data-expired": expired, "data-complete": complete, "data-steps": steps, "data-done": goal <= progress, style: { opacity: opacity } },
|
|
2006
|
+
index.h("style", { type: "text/css" }, styleString$4),
|
|
1955
2007
|
index.h("div", { class: (!Boolean(finite) && progress >= 2 * goal) ||
|
|
1956
2008
|
(Boolean(finite) && progress > 2 * goal)
|
|
1957
2009
|
? "progress-bar repeatable-steps"
|
|
@@ -2242,165 +2294,151 @@ const arrow_left_right = () => {
|
|
|
2242
2294
|
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" })));
|
|
2243
2295
|
};
|
|
2244
2296
|
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
color: "var(--sl-color-primary-600)",
|
|
2286
|
-
border: "1px solid var(--sl-color-neutral-200)",
|
|
2287
|
-
borderRadius: "var(--sl-border-radius-large) var(--sl-border-radius-large) 0 0",
|
|
2288
|
-
borderBottom: "none",
|
|
2289
|
-
background: "var(--sl-color-primary-50)",
|
|
2290
|
-
fontWeight: "var(--sl-font-weight-semibold)",
|
|
2291
|
-
lineHeight: "var(--sl-line-height-dense)",
|
|
2292
|
-
"& .icon": {
|
|
2293
|
-
position: "relative",
|
|
2294
|
-
top: "0.1em",
|
|
2295
|
-
marginRight: "var(--sl-spacing-small)",
|
|
2296
|
-
color: "var(--sl-color-primary-500)",
|
|
2297
|
-
},
|
|
2298
|
-
},
|
|
2299
|
-
Ended: {
|
|
2300
|
-
fontSize: "var(--sl-font-size-small)",
|
|
2301
|
-
padding: "var(--sl-spacing-medium)",
|
|
2302
|
-
color: "var(--sl-color-warning-600)",
|
|
2303
|
-
border: "1px solid var(--sl-color-neutral-200)",
|
|
2304
|
-
borderRadius: "var(--sl-border-radius-large) var(--sl-border-radius-large) 0 0",
|
|
2305
|
-
borderBottom: "none",
|
|
2306
|
-
background: "var(--sl-color-warning-50)",
|
|
2307
|
-
fontWeight: "var(--sl-font-weight-semibold)",
|
|
2308
|
-
lineHeight: "var(--sl-line-height-dense)",
|
|
2309
|
-
"& .icon": {
|
|
2310
|
-
position: "relative",
|
|
2311
|
-
top: "0.1em",
|
|
2312
|
-
marginRight: "var(--sl-spacing-small)",
|
|
2313
|
-
color: "var(--sl-color-warning-500)",
|
|
2314
|
-
},
|
|
2315
|
-
},
|
|
2316
|
-
Header: {
|
|
2317
|
-
display: "flex",
|
|
2318
|
-
"& .icon": {
|
|
2319
|
-
position: "relative",
|
|
2320
|
-
top: "5%",
|
|
2321
|
-
alignSelf: "center",
|
|
2322
|
-
lineHeight: "0",
|
|
2323
|
-
color: "var(--sl-color-primary-400)",
|
|
2324
|
-
fontSize: "var(--sl-font-size-large)",
|
|
2325
|
-
marginRight: "var(--sl-spacing-x-small)",
|
|
2326
|
-
},
|
|
2327
|
-
"& .value": {
|
|
2328
|
-
alignSelf: "center",
|
|
2329
|
-
fontSize: "var(--sl-font-size-x-large)",
|
|
2330
|
-
fontWeight: "var(--sl-font-weight-semibold)",
|
|
2331
|
-
color: "var(--sl-color-neutral-950)",
|
|
2332
|
-
lineHeight: "100%",
|
|
2333
|
-
marginRight: "var(--sl-spacing-xx-small)",
|
|
2334
|
-
},
|
|
2335
|
-
"& .text": {
|
|
2336
|
-
alignSelf: "end",
|
|
2337
|
-
textTransform: "uppercase",
|
|
2338
|
-
fontSize: "var(--sl-font-size-x-small)",
|
|
2339
|
-
color: "var(--sl-color-neutral-950)",
|
|
2340
|
-
lineHeight: "var(--sl-font-size-medium)",
|
|
2341
|
-
marginRight: "var(--sl-spacing-xx-small)",
|
|
2297
|
+
function TaskCardView(props) {
|
|
2298
|
+
var _a, _b;
|
|
2299
|
+
const { callbacks, states, content } = props;
|
|
2300
|
+
console.log("text color from the view ", content.textColor);
|
|
2301
|
+
const style = {
|
|
2302
|
+
TaskCard: {
|
|
2303
|
+
display: "inline-block",
|
|
2304
|
+
width: "100%",
|
|
2305
|
+
"& .main": {
|
|
2306
|
+
position: "relative",
|
|
2307
|
+
boxSizing: "border-sizing",
|
|
2308
|
+
background: content.backgroundColor || "var(--sl-color-neutral-0)",
|
|
2309
|
+
border: `1px solid ${content.borderColor || "var(--sl-color-neutral-200)"}`,
|
|
2310
|
+
borderRadius: "var(--sl-border-radius-large)",
|
|
2311
|
+
boxShadow: "1px 2px 4px rgba(211, 211, 211, 0.2)",
|
|
2312
|
+
fontSize: "var(--sl-font-size-small)",
|
|
2313
|
+
lineHeight: "var(--sl-line-height-dense)",
|
|
2314
|
+
color: content.textColor || "var(--sqm-text)",
|
|
2315
|
+
},
|
|
2316
|
+
"& .main.complete": {
|
|
2317
|
+
background: content.backgroundColor || "var(--sl-color-primary-50)",
|
|
2318
|
+
borderColor: content.borderColor || "var(--sl-color-primary-500)",
|
|
2319
|
+
},
|
|
2320
|
+
"& .main.expired": {
|
|
2321
|
+
color: content.textColor || "var(--sqm-text)",
|
|
2322
|
+
background: content.backgroundColor || "var(--sl-color-neutral-50)",
|
|
2323
|
+
},
|
|
2324
|
+
"& .title": {
|
|
2325
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
2326
|
+
color: content.textColor || "var(--sqm-text)",
|
|
2327
|
+
},
|
|
2328
|
+
"& .container": {
|
|
2329
|
+
margin: "var(--sl-spacing-medium)",
|
|
2330
|
+
},
|
|
2331
|
+
"& .container.subdued": {
|
|
2332
|
+
opacity: "0.45",
|
|
2333
|
+
},
|
|
2334
|
+
"& .container > div": {
|
|
2335
|
+
margin: "var(--sl-spacing-medium) 0",
|
|
2336
|
+
},
|
|
2342
2337
|
},
|
|
2343
|
-
|
|
2344
|
-
|
|
2338
|
+
NotStarted: {
|
|
2339
|
+
fontSize: "var(--sl-font-size-small)",
|
|
2340
|
+
padding: "var(--sl-spacing-medium)",
|
|
2341
|
+
color: content.textColor || "var(--sl-color-primary-600)",
|
|
2342
|
+
border: `1px solid ${content.borderColor || "var(--sl-color-neutral-200)"}`,
|
|
2343
|
+
borderRadius: "var(--sl-border-radius-large) var(--sl-border-radius-large) 0 0",
|
|
2344
|
+
borderBottom: "none",
|
|
2345
|
+
background: content.backgroundColor || "var(--sl-color-primary-50)",
|
|
2345
2346
|
fontWeight: "var(--sl-font-weight-semibold)",
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
"&[data-subdue] .success": {
|
|
2354
|
-
color: "var(--sl-color-primary-300)",
|
|
2355
|
-
},
|
|
2356
|
-
"&[data-subdue] .neutral": {
|
|
2357
|
-
color: "var(--sl-color-neutral-300)",
|
|
2358
|
-
},
|
|
2359
|
-
display: "flex",
|
|
2360
|
-
"& .icon": {
|
|
2361
|
-
fontSize: "var(--sl-font-size-xx-small)",
|
|
2362
|
-
marginRight: "var(--sl-spacing-xx-small)",
|
|
2363
|
-
verticalAlign: "middle",
|
|
2364
|
-
},
|
|
2365
|
-
"& .text": {
|
|
2366
|
-
marginTop: "auto",
|
|
2367
|
-
verticalAlign: "text-bottom",
|
|
2368
|
-
fontSize: "var(--sl-font-size-x-small)",
|
|
2369
|
-
color: "var(--sl-color-neutral-400)",
|
|
2347
|
+
lineHeight: "var(--sl-line-height-dense)",
|
|
2348
|
+
"& .icon": {
|
|
2349
|
+
position: "relative",
|
|
2350
|
+
top: "0.1em",
|
|
2351
|
+
marginRight: "var(--sl-spacing-small)",
|
|
2352
|
+
color: content.textColor || "var(--sqm-text)",
|
|
2353
|
+
},
|
|
2370
2354
|
},
|
|
2371
|
-
|
|
2372
|
-
|
|
2355
|
+
Ended: {
|
|
2356
|
+
fontSize: "var(--sl-font-size-small)",
|
|
2357
|
+
padding: "var(--sl-spacing-medium)",
|
|
2358
|
+
color: content.textColor || "var(--sl-color-warning-600)",
|
|
2359
|
+
border: `1px solid ${content.borderColor || "var(--sl-color-neutral-200)"}`,
|
|
2360
|
+
borderRadius: "var(--sl-border-radius-large) var(--sl-border-radius-large) 0 0",
|
|
2361
|
+
borderBottom: "none",
|
|
2362
|
+
background: content.backgroundColor || "var(--sl-color-warning-50)",
|
|
2373
2363
|
fontWeight: "var(--sl-font-weight-semibold)",
|
|
2364
|
+
lineHeight: "var(--sl-line-height-dense)",
|
|
2365
|
+
"& .icon": {
|
|
2366
|
+
position: "relative",
|
|
2367
|
+
top: "0.1em",
|
|
2368
|
+
marginRight: "var(--sl-spacing-small)",
|
|
2369
|
+
color: content.textColor || "var(--sqm-text)",
|
|
2370
|
+
},
|
|
2374
2371
|
},
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2372
|
+
Header: {
|
|
2373
|
+
display: "flex",
|
|
2374
|
+
"& .icon": {
|
|
2375
|
+
position: "relative",
|
|
2376
|
+
top: "5%",
|
|
2377
|
+
alignSelf: "center",
|
|
2378
|
+
lineHeight: "0",
|
|
2379
|
+
color: content.textColor || "var(--sqm-text)",
|
|
2380
|
+
fontSize: "var(--sl-font-size-large)",
|
|
2381
|
+
marginRight: "var(--sl-spacing-x-small)",
|
|
2380
2382
|
},
|
|
2381
|
-
"
|
|
2382
|
-
|
|
2383
|
-
|
|
2383
|
+
"& .value": {
|
|
2384
|
+
alignSelf: "center",
|
|
2385
|
+
fontSize: "var(--sl-font-size-x-large)",
|
|
2386
|
+
fontWeight: "var(--sl-font-weight-semibold)",
|
|
2387
|
+
color: content.textColor || "var(--sqm-text)",
|
|
2388
|
+
lineHeight: "100%",
|
|
2389
|
+
marginRight: "var(--sl-spacing-xx-small)",
|
|
2384
2390
|
},
|
|
2385
|
-
"
|
|
2386
|
-
|
|
2387
|
-
|
|
2391
|
+
"& .text": {
|
|
2392
|
+
alignSelf: "end",
|
|
2393
|
+
textTransform: "uppercase",
|
|
2394
|
+
fontSize: "var(--sl-font-size-x-small)",
|
|
2395
|
+
color: content.textColor || "var(--sqm-text)",
|
|
2396
|
+
lineHeight: "var(--sl-font-size-medium)",
|
|
2397
|
+
marginRight: "var(--sl-spacing-xx-small)",
|
|
2398
|
+
},
|
|
2399
|
+
"& .end": {
|
|
2400
|
+
color: content.textColor || "var(--sl-color-warning-500)",
|
|
2401
|
+
fontWeight: "var(--sl-font-weight-semibold)",
|
|
2402
|
+
marginBottom: "var(--sl-spacing-xx-small)",
|
|
2403
|
+
},
|
|
2404
|
+
"& .neutral": {
|
|
2405
|
+
color: content.textColor || "var(--sl-color-neutral-400)",
|
|
2388
2406
|
},
|
|
2389
2407
|
},
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2408
|
+
Footer: {
|
|
2409
|
+
"&[data-subdue] .success": {
|
|
2410
|
+
color: content.textColor || "var(--sl-color-primary-300)",
|
|
2411
|
+
},
|
|
2412
|
+
"&[data-subdue] .neutral": {
|
|
2413
|
+
color: content.textColor || "var(--sqm-text)",
|
|
2414
|
+
},
|
|
2415
|
+
display: "flex",
|
|
2416
|
+
"& .icon": {
|
|
2417
|
+
fontSize: "var(--sl-font-size-xx-small)",
|
|
2418
|
+
marginRight: "var(--sl-spacing-xx-small)",
|
|
2419
|
+
verticalAlign: "middle",
|
|
2420
|
+
},
|
|
2421
|
+
"& .text": {
|
|
2422
|
+
marginTop: "auto",
|
|
2423
|
+
verticalAlign: "text-bottom",
|
|
2424
|
+
fontSize: "var(--sl-font-size-x-small)",
|
|
2425
|
+
color: content.textColor || "var(--sqm-text)",
|
|
2426
|
+
},
|
|
2427
|
+
"& .success": {
|
|
2428
|
+
color: content.textColor || "var(--sqm-text)",
|
|
2429
|
+
fontWeight: "var(--sl-font-weight-semibold)",
|
|
2430
|
+
},
|
|
2431
|
+
"& .neutral": {
|
|
2432
|
+
color: content.textColor || "var(--sqm-text)",
|
|
2433
|
+
},
|
|
2434
|
+
"& .datetime": {
|
|
2435
|
+
display: "block",
|
|
2436
|
+
marginTop: "var(--sl-spacing-xx-small)",
|
|
2437
|
+
},
|
|
2396
2438
|
},
|
|
2397
|
-
}
|
|
2398
|
-
|
|
2399
|
-
const
|
|
2400
|
-
const styleString$7 = sheet$7.toString();
|
|
2401
|
-
function TaskCardView(props) {
|
|
2402
|
-
var _a, _b;
|
|
2403
|
-
const { callbacks, states, content } = props;
|
|
2439
|
+
};
|
|
2440
|
+
const sheet = JSS.createStyleSheet(style);
|
|
2441
|
+
const contenttring = sheet.toString();
|
|
2404
2442
|
const dateStart = content.rewardDuration &&
|
|
2405
2443
|
luxon.luxon.DateTime.fromISO(content.rewardDuration.split("/")[0]);
|
|
2406
2444
|
const dateEnd = content.rewardDuration &&
|
|
@@ -2433,11 +2471,11 @@ function TaskCardView(props) {
|
|
|
2433
2471
|
}
|
|
2434
2472
|
|
|
2435
2473
|
`;
|
|
2436
|
-
return (index.h("div", { class: sheet
|
|
2474
|
+
return (index.h("div", { class: sheet.classes.TaskCard, part: "sqm-base" },
|
|
2437
2475
|
index.h("style", { type: "text/css" },
|
|
2438
|
-
|
|
2476
|
+
contenttring,
|
|
2439
2477
|
vanillaStyle),
|
|
2440
|
-
!states.loading && taskNotStarted && (index.h("div", { class: sheet
|
|
2478
|
+
!states.loading && taskNotStarted && (index.h("div", { class: sheet.classes.NotStarted },
|
|
2441
2479
|
index.h("span", { class: "icon" },
|
|
2442
2480
|
index.h("sl-icon", { name: "info-circle-fill" })),
|
|
2443
2481
|
global.intl.formatMessage({
|
|
@@ -2448,7 +2486,7 @@ function TaskCardView(props) {
|
|
|
2448
2486
|
.setLocale(utils.luxonLocale(states.locale))
|
|
2449
2487
|
.toLocaleString(luxon.luxon.DateTime.DATETIME_MED),
|
|
2450
2488
|
}))),
|
|
2451
|
-
!states.loading && taskEnded && (index.h("div", { class: sheet
|
|
2489
|
+
!states.loading && taskEnded && (index.h("div", { class: sheet.classes.Ended },
|
|
2452
2490
|
index.h("span", { class: "icon" },
|
|
2453
2491
|
index.h("sl-icon", { exportparts: "base: task-card-icon", name: "exclamation-triangle-fill" })),
|
|
2454
2492
|
global.intl.formatMessage({
|
|
@@ -2468,7 +2506,7 @@ function TaskCardView(props) {
|
|
|
2468
2506
|
? "main complete"
|
|
2469
2507
|
: "main" },
|
|
2470
2508
|
index.h("div", { class: "container", part: "sqm-card-container", "data-subdue": taskComplete || taskUnavailable },
|
|
2471
|
-
index.h("div", { class: sheet
|
|
2509
|
+
index.h("div", { class: sheet.classes.Header, style: { opacity: taskComplete || taskUnavailable ? "0.45" : "1" } }, states.loading ? (index.h("sl-skeleton", { style: { width: "22%", margin: "0" } })) : (index.h("div", null,
|
|
2472
2510
|
showComplete && (index.h("span", { class: taskUnavailable ? "icon neutral" : "icon" }, taskComplete ? checkmark_filled$1 : checkmark_circle$1)),
|
|
2473
2511
|
index.h("span", { part: "sqm-value", class: "value" }, content.rewardAmount),
|
|
2474
2512
|
index.h("span", { part: "sqm-unit", class: "text" }, content.rewardUnit)))),
|
|
@@ -2484,7 +2522,7 @@ function TaskCardView(props) {
|
|
|
2484
2522
|
} }, content.cardTitle)),
|
|
2485
2523
|
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" })))),
|
|
2486
2524
|
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 })))),
|
|
2487
|
-
index.h("div", { class: sheet
|
|
2525
|
+
index.h("div", { class: sheet.classes.Footer, "data-subdue": taskComplete || taskUnavailable }, states.loading ? (index.h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (index.h("div", { style: { display: "contents" } },
|
|
2488
2526
|
index.h("span", { class: "text" },
|
|
2489
2527
|
content.repeatable && (index.h("div", null,
|
|
2490
2528
|
index.h("span", { class: repetitions > 0
|
|
@@ -2513,11 +2551,9 @@ function TaskCardView(props) {
|
|
|
2513
2551
|
.setLocale(utils.luxonLocale(states.locale))
|
|
2514
2552
|
.toLocaleString(luxon.luxon.DateTime.DATETIME_MED),
|
|
2515
2553
|
})))),
|
|
2516
|
-
content.hideButton ? ("") : (index.h("sl-button", { exportparts:
|
|
2517
|
-
? "
|
|
2518
|
-
: taskComplete
|
|
2519
|
-
? "action disabled"
|
|
2520
|
-
: "action", type: "primary", size: "small", onClick: callbacks.onClick, loading: states.loadingEvent, disabled: taskComplete || taskUnavailable, style: {
|
|
2554
|
+
content.hideButton ? ("") : (index.h("sl-button", { exportparts: `base: ${content.buttonStyle === "primary"
|
|
2555
|
+
? "primary"
|
|
2556
|
+
: "secondary"}button-base`, id: "sl-button", type: content.buttonStyle === "primary" ? "primary" : "default", size: "small", onClick: callbacks.onClick, loading: states.loadingEvent, disabled: taskComplete || taskUnavailable, style: {
|
|
2521
2557
|
opacity: taskComplete || taskUnavailable ? "0.45" : "1",
|
|
2522
2558
|
} }, content.buttonText)))))))));
|
|
2523
2559
|
}
|
|
@@ -2555,7 +2591,7 @@ function PoweredByImg({ color = "#A6A6A6", width = 120, height = 16, }) {
|
|
|
2555
2591
|
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 })));
|
|
2556
2592
|
}
|
|
2557
2593
|
|
|
2558
|
-
const vanillaStyle$
|
|
2594
|
+
const vanillaStyle$2 = `
|
|
2559
2595
|
:host{
|
|
2560
2596
|
margin: 0 auto;
|
|
2561
2597
|
width: 100%;
|
|
@@ -2611,7 +2647,7 @@ function PortalFooterView(props) {
|
|
|
2611
2647
|
const styleString = sheet.toString();
|
|
2612
2648
|
return (index.h("div", { class: sheet.classes.Container, part: "sqm-base" },
|
|
2613
2649
|
index.h("style", { type: "text/css" },
|
|
2614
|
-
vanillaStyle$
|
|
2650
|
+
vanillaStyle$2,
|
|
2615
2651
|
styleString),
|
|
2616
2652
|
index.h("div", { class: sheet.classes.RowContainer },
|
|
2617
2653
|
props.faqLink && (index.h("a", { target: "_blank", href: props.faqLink }, props.faqText)),
|
|
@@ -2783,7 +2819,7 @@ function ReferralIframeView(props) {
|
|
|
2783
2819
|
index.h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?rsCode=${data.shareCode}` })));
|
|
2784
2820
|
}
|
|
2785
2821
|
|
|
2786
|
-
const style$
|
|
2822
|
+
const style$5 = {
|
|
2787
2823
|
ErrorStyle: mixins.ErrorStyles,
|
|
2788
2824
|
FieldsContainer: {
|
|
2789
2825
|
"& sl-input": {
|
|
@@ -2791,33 +2827,30 @@ const style$8 = {
|
|
|
2791
2827
|
},
|
|
2792
2828
|
},
|
|
2793
2829
|
};
|
|
2794
|
-
const vanillaStyle$
|
|
2830
|
+
const vanillaStyle$3 = `
|
|
2795
2831
|
:host {
|
|
2796
2832
|
margin: 0 auto;
|
|
2797
2833
|
width: 100%;
|
|
2798
2834
|
display: block;
|
|
2799
2835
|
}
|
|
2800
2836
|
|
|
2801
|
-
|
|
2802
|
-
font-size: var(--sl-input-label-font-size-small);
|
|
2803
|
-
font-weight: var(--sl-font-weight-semibold);
|
|
2804
|
-
}
|
|
2837
|
+
|
|
2805
2838
|
`;
|
|
2806
|
-
const sheet$
|
|
2807
|
-
const styleString$
|
|
2839
|
+
const sheet$5 = JSS.createStyleSheet(style$5);
|
|
2840
|
+
const styleString$5 = sheet$5.toString();
|
|
2808
2841
|
function NameFieldsView(props) {
|
|
2809
2842
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2810
2843
|
const { states } = props;
|
|
2811
2844
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2812
|
-
return (index.h("div", { class: sheet$
|
|
2845
|
+
return (index.h("div", { class: sheet$5.classes.FieldsContainer },
|
|
2813
2846
|
index.h("style", { type: "text/css" },
|
|
2814
|
-
vanillaStyle$
|
|
2815
|
-
styleString$
|
|
2847
|
+
vanillaStyle$3,
|
|
2848
|
+
styleString$5),
|
|
2816
2849
|
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) ? {
|
|
2817
2850
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.firstName,
|
|
2818
2851
|
}
|
|
2819
2852
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) ? {
|
|
2820
|
-
class: sheet$
|
|
2853
|
+
class: sheet$5.classes.ErrorStyle,
|
|
2821
2854
|
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) || "Cannot be empty",
|
|
2822
2855
|
}
|
|
2823
2856
|
: []))),
|
|
@@ -2825,13 +2858,13 @@ function NameFieldsView(props) {
|
|
|
2825
2858
|
value: (_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.lastName,
|
|
2826
2859
|
}
|
|
2827
2860
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) ? {
|
|
2828
|
-
class: sheet$
|
|
2861
|
+
class: sheet$5.classes.ErrorStyle,
|
|
2829
2862
|
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) || "Cannot be empty",
|
|
2830
2863
|
}
|
|
2831
2864
|
: [])))));
|
|
2832
2865
|
}
|
|
2833
2866
|
|
|
2834
|
-
const style$
|
|
2867
|
+
const style$6 = {
|
|
2835
2868
|
ErrorStyle: {
|
|
2836
2869
|
"--sl-input-border-color": "var(--sl-color-danger-500)",
|
|
2837
2870
|
"--sl-input-background-color": "var(--sl-color-danger-10)",
|
|
@@ -2847,7 +2880,7 @@ const style$9 = {
|
|
|
2847
2880
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2848
2881
|
},
|
|
2849
2882
|
};
|
|
2850
|
-
const vanillaStyle$
|
|
2883
|
+
const vanillaStyle$4 = `
|
|
2851
2884
|
:host {
|
|
2852
2885
|
margin: 0 auto;
|
|
2853
2886
|
width: 100%;
|
|
@@ -2859,36 +2892,36 @@ sl-select::part(label){
|
|
|
2859
2892
|
}
|
|
2860
2893
|
`;
|
|
2861
2894
|
JSS.jss.setup(JSS.create());
|
|
2862
|
-
const sheet$
|
|
2863
|
-
const styleString$
|
|
2895
|
+
const sheet$6 = JSS.jss.createStyleSheet(style$6);
|
|
2896
|
+
const styleString$6 = sheet$6.toString();
|
|
2864
2897
|
function DropdownFieldView(props) {
|
|
2865
2898
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2866
2899
|
const { states, content } = props;
|
|
2867
2900
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2868
|
-
return (index.h("div", { class: sheet$
|
|
2901
|
+
return (index.h("div", { class: sheet$6.classes.FieldContainer, part: "sqm-base" },
|
|
2869
2902
|
index.h("style", { type: "text/css" },
|
|
2870
|
-
vanillaStyle$
|
|
2871
|
-
styleString$
|
|
2903
|
+
vanillaStyle$4,
|
|
2904
|
+
styleString$6),
|
|
2872
2905
|
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]) ? {
|
|
2873
2906
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.dropdownName],
|
|
2874
2907
|
}
|
|
2875
2908
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) ? {
|
|
2876
|
-
class: sheet$
|
|
2909
|
+
class: sheet$6.classes.ErrorStyle,
|
|
2877
2910
|
}
|
|
2878
2911
|
: [])), content.selectOptions),
|
|
2879
|
-
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (index.h("p", { class: sheet$
|
|
2912
|
+
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (index.h("p", { class: sheet$6.classes.ErrorMessageStyle }, global.intl.formatMessage({
|
|
2880
2913
|
id: `errorMessage-${content.dropdownName}`,
|
|
2881
2914
|
defaultMessage: content.errorMessage,
|
|
2882
2915
|
})))));
|
|
2883
2916
|
}
|
|
2884
2917
|
|
|
2885
|
-
const style$
|
|
2918
|
+
const style$7 = {
|
|
2886
2919
|
ErrorStyle: mixins.ErrorStyles,
|
|
2887
2920
|
FieldContainer: {
|
|
2888
2921
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2889
2922
|
},
|
|
2890
2923
|
};
|
|
2891
|
-
const vanillaStyle$
|
|
2924
|
+
const vanillaStyle$5 = `
|
|
2892
2925
|
:host {
|
|
2893
2926
|
margin: 0 auto;
|
|
2894
2927
|
width: 100%;
|
|
@@ -2896,21 +2929,21 @@ const vanillaStyle$6 = `
|
|
|
2896
2929
|
}
|
|
2897
2930
|
`;
|
|
2898
2931
|
JSS.jss.setup(JSS.create());
|
|
2899
|
-
const sheet$
|
|
2900
|
-
const styleString$
|
|
2932
|
+
const sheet$7 = JSS.jss.createStyleSheet(style$7);
|
|
2933
|
+
const styleString$7 = sheet$7.toString();
|
|
2901
2934
|
function InputFieldView(props) {
|
|
2902
2935
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2903
2936
|
const { states, content } = props;
|
|
2904
2937
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2905
|
-
return (index.h("div", { class: sheet$
|
|
2938
|
+
return (index.h("div", { class: sheet$7.classes.FieldContainer, part: "sqm-base" },
|
|
2906
2939
|
index.h("style", { type: "text/css" },
|
|
2907
|
-
vanillaStyle$
|
|
2908
|
-
styleString$
|
|
2940
|
+
vanillaStyle$5,
|
|
2941
|
+
styleString$7),
|
|
2909
2942
|
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]) ? {
|
|
2910
2943
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.fieldName],
|
|
2911
2944
|
}
|
|
2912
2945
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]) ? {
|
|
2913
|
-
class: sheet$
|
|
2946
|
+
class: sheet$7.classes.ErrorStyle,
|
|
2914
2947
|
helpText: global.intl.formatMessage({
|
|
2915
2948
|
id: `errorMessage-${content.fieldName}`,
|
|
2916
2949
|
defaultMessage: content.errorMessage || (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]),
|
|
@@ -3005,7 +3038,7 @@ function ProgressBar({ stageCount, currentStage, }) {
|
|
|
3005
3038
|
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 })))));
|
|
3006
3039
|
}
|
|
3007
3040
|
|
|
3008
|
-
const style$
|
|
3041
|
+
const style$8 = {
|
|
3009
3042
|
HostBlock: mixins.HostBlock,
|
|
3010
3043
|
Container: {
|
|
3011
3044
|
minWidth: "300px",
|
|
@@ -3356,8 +3389,8 @@ const style$b = {
|
|
|
3356
3389
|
},
|
|
3357
3390
|
};
|
|
3358
3391
|
// JSS config
|
|
3359
|
-
const sheet$
|
|
3360
|
-
const styleString$
|
|
3392
|
+
const sheet$8 = JSS.createStyleSheet(style$8);
|
|
3393
|
+
const styleString$8 = sheet$8.toString();
|
|
3361
3394
|
const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
|
|
3362
3395
|
function RewardExchangeView(props) {
|
|
3363
3396
|
const { states, data, callbacks, refs } = props;
|
|
@@ -3380,7 +3413,7 @@ function RewardExchangeView(props) {
|
|
|
3380
3413
|
sourceUnit: item.sourceUnit,
|
|
3381
3414
|
})));
|
|
3382
3415
|
}
|
|
3383
|
-
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$
|
|
3416
|
+
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$8.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
|
|
3384
3417
|
var _a, _b, _c, _d, _e;
|
|
3385
3418
|
return callbacks.setExchangeState({
|
|
3386
3419
|
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,
|
|
@@ -3388,7 +3421,7 @@ function RewardExchangeView(props) {
|
|
|
3388
3421
|
});
|
|
3389
3422
|
} }, (_c = item.steps) === null || _c === void 0 ? void 0 : _c.map((step) => {
|
|
3390
3423
|
var _a, _b;
|
|
3391
|
-
return (index.h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$
|
|
3424
|
+
return (index.h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$8.classes.SelectItem },
|
|
3392
3425
|
step.prettyDestinationValue,
|
|
3393
3426
|
index.h("br", null),
|
|
3394
3427
|
index.h("div", { class: "step-cost", slot: "suffix" },
|
|
@@ -3407,8 +3440,8 @@ function RewardExchangeView(props) {
|
|
|
3407
3440
|
var _a;
|
|
3408
3441
|
return [
|
|
3409
3442
|
index.h("div", { part: "choose-reward-container" },
|
|
3410
|
-
index.h("div", { class: sheet$
|
|
3411
|
-
states.loading || states.queryError ? (loading()) : (index.h("div", { class: sheet$
|
|
3443
|
+
index.h("div", { class: sheet$8.classes.Title }, states.content.text.rewardTitle),
|
|
3444
|
+
states.loading || states.queryError ? (loading()) : (index.h("div", { class: sheet$8.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
|
|
3412
3445
|
var _a, _b, _c, _d, _e;
|
|
3413
3446
|
const style = {
|
|
3414
3447
|
boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
|
|
@@ -3417,7 +3450,7 @@ function RewardExchangeView(props) {
|
|
|
3417
3450
|
borderRadius: "4px",
|
|
3418
3451
|
};
|
|
3419
3452
|
return (index.h("div", { key: item.key, style: style },
|
|
3420
|
-
index.h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$
|
|
3453
|
+
index.h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$8.classes.Card, style: {
|
|
3421
3454
|
cursor: item.unavailableReasonCode
|
|
3422
3455
|
? "not-allowed"
|
|
3423
3456
|
: "pointer",
|
|
@@ -3434,14 +3467,14 @@ function RewardExchangeView(props) {
|
|
|
3434
3467
|
? "rgba(0, 0, 0, 0.05)"
|
|
3435
3468
|
: "rgba(0, 0, 0, 0)",
|
|
3436
3469
|
} },
|
|
3437
|
-
index.h("div", { class: sheet$
|
|
3470
|
+
index.h("div", { class: sheet$8.classes.Image, style: {
|
|
3438
3471
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
3439
3472
|
} },
|
|
3440
3473
|
index.h("img", { class: item.unavailableReasonCode
|
|
3441
3474
|
? "image subdued"
|
|
3442
3475
|
: "image", src: (item === null || item === void 0 ? void 0 : item.imageUrl) ||
|
|
3443
3476
|
index.getAssetPath("./assets/Reward-image.png") })),
|
|
3444
|
-
index.h("div", { class: sheet$
|
|
3477
|
+
index.h("div", { class: sheet$8.classes.TextArea, style: {
|
|
3445
3478
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
3446
3479
|
} },
|
|
3447
3480
|
index.h("div", { class: "title", style: {
|
|
@@ -3474,7 +3507,7 @@ function RewardExchangeView(props) {
|
|
|
3474
3507
|
item.prettySourceMinValue,
|
|
3475
3508
|
}))))))));
|
|
3476
3509
|
}))),
|
|
3477
|
-
index.h("div", { class: sheet$
|
|
3510
|
+
index.h("div", { class: sheet$8.classes.Button },
|
|
3478
3511
|
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))),
|
|
3479
3512
|
];
|
|
3480
3513
|
}
|
|
@@ -3485,7 +3518,7 @@ function RewardExchangeView(props) {
|
|
|
3485
3518
|
? false
|
|
3486
3519
|
: input && !states.amount;
|
|
3487
3520
|
return (index.h("div", null,
|
|
3488
|
-
index.h("div", { class: sheet$
|
|
3521
|
+
index.h("div", { class: sheet$8.classes.ChooseAmount, part: "choose-amount-container" },
|
|
3489
3522
|
index.h("div", { class: "wrapper" },
|
|
3490
3523
|
index.h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
|
|
3491
3524
|
index.getAssetPath("./assets/Reward-image.png") }),
|
|
@@ -3494,7 +3527,7 @@ function RewardExchangeView(props) {
|
|
|
3494
3527
|
((_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)),
|
|
3495
3528
|
((_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)),
|
|
3496
3529
|
index.h("div", { class: "space" }))),
|
|
3497
|
-
index.h("div", { class: sheet$
|
|
3530
|
+
index.h("div", { class: sheet$8.classes.Button },
|
|
3498
3531
|
index.h("sl-button", { exportparts: "base: secondarybutton-base", class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
|
|
3499
3532
|
index.h("sl-button", { exportparts: "base: primarybutton-base", class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText)))));
|
|
3500
3533
|
}
|
|
@@ -3502,8 +3535,8 @@ function RewardExchangeView(props) {
|
|
|
3502
3535
|
const cost = (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue) || selectedItem.prettySourceValue;
|
|
3503
3536
|
const amount = selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue;
|
|
3504
3537
|
return (index.h("div", null,
|
|
3505
|
-
index.h("div", { class: sheet$
|
|
3506
|
-
index.h("div", { class: sheet$
|
|
3538
|
+
index.h("div", { class: sheet$8.classes.Confirmation, part: "confirmation-container" },
|
|
3539
|
+
index.h("div", { class: sheet$8.classes.Title }, states.content.text.redeemTitle),
|
|
3507
3540
|
index.h("div", { class: "wrapper" },
|
|
3508
3541
|
index.h("div", { class: "field" }, states.content.text.rewardNameTitle),
|
|
3509
3542
|
index.h("div", { class: "reward-item-container" },
|
|
@@ -3518,13 +3551,13 @@ function RewardExchangeView(props) {
|
|
|
3518
3551
|
index.h("div", { class: "wrapper top-border padding" },
|
|
3519
3552
|
index.h("div", { class: "field" }, states.content.text.costTitle),
|
|
3520
3553
|
index.h("div", { class: "value" }, cost)),
|
|
3521
|
-
index.h("div", { class: sheet$
|
|
3554
|
+
index.h("div", { class: sheet$8.classes.Button },
|
|
3522
3555
|
index.h("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
|
|
3523
3556
|
index.h("sl-button", { class: "continue", size: "large", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText)))));
|
|
3524
3557
|
}
|
|
3525
3558
|
function success() {
|
|
3526
3559
|
var _a, _b, _c, _d, _e, _f;
|
|
3527
|
-
return (index.h("div", { class: sheet$
|
|
3560
|
+
return (index.h("div", { class: sheet$8.classes.Success, part: "success-container" },
|
|
3528
3561
|
index.h(Gift$1, null),
|
|
3529
3562
|
index.h(Confetti, null),
|
|
3530
3563
|
index.h("div", { class: "title" }, (_a = states.content.text) === null || _a === void 0 ? void 0 : _a.rewardRedeemedText),
|
|
@@ -3539,7 +3572,7 @@ function RewardExchangeView(props) {
|
|
|
3539
3572
|
(data === null || data === void 0 ? void 0 : data.fuelTankCode) && (index.h("div", { class: "promo" },
|
|
3540
3573
|
states.content.text.promoCode,
|
|
3541
3574
|
index.h(copyTextView.CopyTextView, { copyString: data.fuelTankCode, tooltiptext: (_f = states === null || states === void 0 ? void 0 : states.content) === null || _f === void 0 ? void 0 : _f.text.tooltipText, open: states.open, onClick: callbacks.copyFuelTankCode }))),
|
|
3542
|
-
index.h("div", { class: sheet$
|
|
3575
|
+
index.h("div", { class: sheet$8.classes.Button },
|
|
3543
3576
|
index.h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
|
|
3544
3577
|
}
|
|
3545
3578
|
const stages = {
|
|
@@ -3551,7 +3584,7 @@ function RewardExchangeView(props) {
|
|
|
3551
3584
|
const currentStage = stages[states.redeemStage];
|
|
3552
3585
|
function stageMap() {
|
|
3553
3586
|
const stageNumber = stageList.indexOf(states.redeemStage);
|
|
3554
|
-
return (index.h("div", { class: sheet$
|
|
3587
|
+
return (index.h("div", { class: sheet$8.classes.ProgressBar },
|
|
3555
3588
|
index.h("div", { class: "text-area" }, Object.keys(stageProgressList).map((stage) => {
|
|
3556
3589
|
if (stageList.indexOf(stage) <= stageNumber) {
|
|
3557
3590
|
return index.h("span", { class: "text" }, stageProgressList[stage]);
|
|
@@ -3563,10 +3596,10 @@ function RewardExchangeView(props) {
|
|
|
3563
3596
|
index.h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
|
|
3564
3597
|
}
|
|
3565
3598
|
function loading() {
|
|
3566
|
-
return (index.h("div", { class: sheet$
|
|
3599
|
+
return (index.h("div", { class: sheet$8.classes.Grid, part: "loading-container" }, [...Array(states.content.text.skeletonCardNum)].map(() => {
|
|
3567
3600
|
return (index.h("div", null,
|
|
3568
|
-
index.h("sl-card", { class: sheet$
|
|
3569
|
-
index.h("div", { class: sheet$
|
|
3601
|
+
index.h("sl-card", { class: sheet$8.classes.Card },
|
|
3602
|
+
index.h("div", { class: sheet$8.classes.CardLayout },
|
|
3570
3603
|
index.h("div", null,
|
|
3571
3604
|
index.h("sl-skeleton", { style: {
|
|
3572
3605
|
width: "100px",
|
|
@@ -3598,12 +3631,12 @@ function RewardExchangeView(props) {
|
|
|
3598
3631
|
if (!(refs === null || refs === void 0 ? void 0 : refs.canvasRef))
|
|
3599
3632
|
return;
|
|
3600
3633
|
refs.canvasRef.current = canvas;
|
|
3601
|
-
}, id: "my-canvas", class: sheet$
|
|
3634
|
+
}, id: "my-canvas", class: sheet$8.classes.Confetti }));
|
|
3602
3635
|
}
|
|
3603
3636
|
if (states.noExchangeOptions)
|
|
3604
3637
|
return states.content.text.empty;
|
|
3605
|
-
return (index.h("div", { class: sheet$
|
|
3606
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
3638
|
+
return (index.h("div", { class: sheet$8.classes.Container, part: "sqm-base" },
|
|
3639
|
+
index.h("style", { type: "text/css" }, styleString$8),
|
|
3607
3640
|
index.h("div", null,
|
|
3608
3641
|
stageMap(),
|
|
3609
3642
|
states.exchangeError && errorMessage(),
|
|
@@ -4019,29 +4052,29 @@ function CardFeedView(props, children) {
|
|
|
4019
4052
|
index.h("div", { class: sheet.classes.Container, part: "sqm-base" }, children)));
|
|
4020
4053
|
}
|
|
4021
4054
|
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4055
|
+
function CouponCodeView(props) {
|
|
4056
|
+
const error = !props.loading && props.error;
|
|
4057
|
+
const style = {
|
|
4058
|
+
HostBlock: mixins.HostBlock,
|
|
4059
|
+
couponCodeLabel: {
|
|
4060
|
+
margin: "var(--sl-spacing-x-small) 0",
|
|
4061
|
+
color: props.textColor || "var(--sqm-text-subdued)",
|
|
4062
|
+
fontSize: "var(--sl-font-size-small)",
|
|
4063
|
+
},
|
|
4064
|
+
};
|
|
4065
|
+
const vanillaStyle = `
|
|
4031
4066
|
:host{
|
|
4032
4067
|
display: block;
|
|
4033
4068
|
width: 100%;
|
|
4034
4069
|
}
|
|
4035
4070
|
`;
|
|
4036
|
-
const sheet
|
|
4037
|
-
const styleString
|
|
4038
|
-
function CouponCodeView(props) {
|
|
4039
|
-
const error = !props.loading && props.error;
|
|
4071
|
+
const sheet = JSS.createStyleSheet(style);
|
|
4072
|
+
const styleString = sheet.toString();
|
|
4040
4073
|
return (index.h("div", null,
|
|
4041
4074
|
index.h("style", { type: "text/css" },
|
|
4042
|
-
styleString
|
|
4043
|
-
vanillaStyle
|
|
4044
|
-
index.h("p", { class: sheet
|
|
4075
|
+
styleString,
|
|
4076
|
+
vanillaStyle),
|
|
4077
|
+
index.h("p", { class: sheet.classes.couponCodeLabel, style: { textAlign: props.textAlign } }, props.couponCodeLabel),
|
|
4045
4078
|
error ? (index.h("sqm-form-message", { type: props.errorType, exportparts: "erroralert-icon" },
|
|
4046
4079
|
index.h("div", { part: "erroralert-text" }, props.errorText))) : (index.h(copyTextView.CopyTextView, Object.assign({}, props)))));
|
|
4047
4080
|
}
|