@saasquatch/mint-components 1.5.6-4 → 1.6.0-0
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/{ShadowViewAddon-1bbdf477.js → ShadowViewAddon-67ab6be4.js} +16 -16
- package/dist/cjs/{global-22fb2ec7.js → global-aaa3f929.js} +2 -2
- package/dist/cjs/{index.module-fb61a163.js → index.module-b9e4136f.js} +21 -21
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/{re-render-7248fc06.js → re-render-90da06a2.js} +4 -4
- package/dist/cjs/sqm-asset-card.cjs.entry.js +2 -2
- package/dist/cjs/sqm-big-stat_35.cjs.entry.js +151 -216
- package/dist/cjs/sqm-empty_5.cjs.entry.js +2 -2
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +5 -5
- package/dist/cjs/sqm-hero.cjs.entry.js +7 -15
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-navigation-sidebar-item-view-52ab014f.js → sqm-navigation-sidebar-item-view-919190ec.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +4 -4
- package/dist/cjs/sqm-password-field.cjs.entry.js +4 -7
- package/dist/cjs/sqm-popup-container.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-email-verification-view-fc30fd1a.js → sqm-portal-email-verification-view-83e44767.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +13 -12
- package/dist/cjs/{sqm-portal-footer-view-78528c31.js → sqm-portal-footer-view-b2dc31a2.js} +1 -1
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +11 -10
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-portal-profile-view-64e85659.js → sqm-portal-profile-view-3b7650df.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +15 -25
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +7 -7
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +20 -21
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +11 -10
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +14 -27
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +14 -18
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +162 -91
- package/dist/cjs/sqm-tabs.cjs.entry.js +3 -3
- package/dist/cjs/{useChildElements-24538fc5.js → useChildElements-315320bd.js} +2 -2
- package/dist/cjs/{useReferralTable-1e71d2dc.js → useReferralTable-32fed069.js} +8 -8
- package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +2 -2
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +8 -14
- package/dist/collection/components/sqm-brand/sqm-brand.js +2 -2
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +0 -2
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +10 -11
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +4 -4
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +5 -5
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile.js +9 -9
- package/dist/collection/components/sqm-empty/sqm-empty.js +0 -1
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +3 -3
- package/dist/collection/components/sqm-hero/sqm-hero.js +15 -23
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +3 -8
- package/dist/collection/components/sqm-hook-story-container/sqm-hook-story-container.js +0 -3
- package/dist/collection/components/sqm-image/sqm-image.js +0 -1
- package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +74 -2
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +8 -12
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.js +4 -8
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +4 -4
- package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu.js +3 -3
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +1 -1
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +1 -1
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +6 -9
- package/dist/collection/components/sqm-popup-container/sqm-popup-container.js +11 -11
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +22 -34
- package/dist/collection/components/sqm-portal-change-password/usePortalChangePassword.js +2 -2
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +4 -6
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +8 -8
- package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +3 -2
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +8 -8
- package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +3 -2
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +26 -42
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +3 -2
- package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +2 -2
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +21 -31
- package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +2 -2
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +28 -36
- package/dist/collection/components/sqm-portal-register/usePortalRegister.js +2 -2
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +21 -23
- package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +4 -3
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +4 -4
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +3 -2
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +0 -3
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +0 -3
- package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +0 -3
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +9 -11
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +0 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +0 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +0 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +0 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +6 -12
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +14 -25
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +13 -23
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +0 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +0 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +2 -4
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +8 -14
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +0 -2
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +0 -2
- package/dist/collection/components/sqm-route/sqm-route.js +1 -1
- package/dist/collection/components/sqm-scroll/sqm-scroll.js +0 -2
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +15 -27
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +7 -7
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +7 -7
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +2 -5
- package/dist/collection/components/sqm-tab/sqm-tab.js +0 -4
- package/dist/collection/components/sqm-tabs/Tabs.stories.js +1 -2
- package/dist/collection/components/sqm-tabs/sqm-tabs.js +0 -5
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +8 -96
- package/dist/collection/components/sqm-text-span/sqm-text-span.js +1 -1
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +0 -3
- package/dist/collection/components/sqm-timeline/sqm-timeline.js +2 -5
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +4 -6
- package/dist/collection/components/sqm-user-name/sqm-user-name.js +5 -7
- package/dist/esm/{ShadowViewAddon-e2996624.js → ShadowViewAddon-2b1e68bd.js} +18 -18
- package/dist/esm/{global-5c84f57f.js → global-3b481fc7.js} +3 -3
- package/dist/esm/{index.module-f5e17a4e.js → index.module-23da8fa0.js} +4 -4
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{luxon-f44215d9.js → luxon-578505e2.js} +1 -1
- package/dist/esm/mint-components.js +4 -4
- package/dist/esm/{re-render-69774e13.js → re-render-3368de52.js} +5 -5
- package/dist/esm/sqm-asset-card.entry.js +4 -4
- package/dist/esm/sqm-big-stat_35.entry.js +154 -219
- package/dist/esm/sqm-empty_5.entry.js +3 -3
- package/dist/esm/sqm-form-message.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +7 -7
- package/dist/esm/{sqm-hero-view-71d1202f.js → sqm-hero-view-b54265df.js} +2 -2
- package/dist/esm/sqm-hero.entry.js +10 -18
- package/dist/esm/sqm-leaderboard-rank.entry.js +8 -8
- package/dist/esm/{sqm-navigation-sidebar-item-view-51714c31.js → sqm-navigation-sidebar-item-view-fbbc41b5.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +6 -6
- package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm/sqm-password-field.entry.js +6 -9
- package/dist/esm/sqm-popup-container.entry.js +6 -6
- package/dist/esm/{sqm-portal-email-verification-view-ac38b167.js → sqm-portal-email-verification-view-825ee492.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +15 -14
- package/dist/esm/{sqm-portal-footer-view-a6d09022.js → sqm-portal-footer-view-fd0225f4.js} +1 -1
- package/dist/esm/sqm-portal-footer.entry.js +5 -5
- package/dist/esm/sqm-portal-forgot-password.entry.js +13 -12
- package/dist/esm/sqm-portal-logout.entry.js +7 -7
- package/dist/esm/{sqm-portal-profile-view-419d1eb9.js → sqm-portal-profile-view-61c2c482.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +17 -27
- package/dist/esm/sqm-portal-protected-route.entry.js +9 -9
- package/dist/esm/sqm-portal-reset-password.entry.js +22 -23
- package/dist/esm/sqm-portal-verify-email.entry.js +13 -12
- package/dist/esm/sqm-referral-table_11.entry.js +17 -30
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
- package/dist/esm/sqm-rewards-table_9.entry.js +17 -21
- package/dist/esm/sqm-stencilbook.entry.js +166 -95
- package/dist/esm/sqm-tabs.entry.js +5 -5
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/{stencil-hooks.module-acc8a613.js → stencil-hooks.module-e39af977.js} +1 -1
- package/dist/esm/{use-callback-7e0bfd3b.js → use-callback-697e2ff0.js} +1 -1
- package/dist/esm/{useChildElements-a8347aea.js → useChildElements-ad0746fa.js} +3 -3
- package/dist/esm/{useReferralTable-5cac5b13.js → useReferralTable-8fe4bd12.js} +9 -9
- package/dist/esm-es5/ShadowViewAddon-2b1e68bd.js +1 -0
- package/dist/esm-es5/{global-5c84f57f.js → global-3b481fc7.js} +2 -2
- package/dist/esm-es5/{index.module-f5e17a4e.js → index.module-23da8fa0.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-f44215d9.js → luxon-578505e2.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-69774e13.js → re-render-3368de52.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_35.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_5.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/{sqm-hero-view-71d1202f.js → sqm-hero-view-b54265df.js} +1 -1
- package/dist/esm-es5/sqm-hero.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-fbbc41b5.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-ac38b167.js → sqm-portal-email-verification-view-825ee492.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-a6d09022.js → sqm-portal-footer-view-fd0225f4.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-419d1eb9.js → sqm-portal-profile-view-61c2c482.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-acc8a613.js → stencil-hooks.module-e39af977.js} +1 -1
- package/dist/esm-es5/use-callback-697e2ff0.js +1 -0
- package/dist/esm-es5/{useChildElements-a8347aea.js → useChildElements-ad0746fa.js} +1 -1
- package/dist/esm-es5/useReferralTable-8fe4bd12.js +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-0568ccb2.system.entry.js +1 -0
- package/dist/mint-components/{p-f92e3e87.system.js → p-0732a954.system.js} +1 -1
- package/dist/mint-components/p-076a5ca5.entry.js +1 -0
- package/dist/mint-components/{p-f6d3a2d4.system.js → p-092c73b2.system.js} +1 -1
- package/dist/mint-components/p-09d29174.entry.js +1 -0
- package/dist/mint-components/{p-48f9babc.system.entry.js → p-0accfb5c.system.entry.js} +1 -1
- package/dist/mint-components/p-0b115074.system.entry.js +1 -0
- package/dist/mint-components/{p-bd7b8620.system.entry.js → p-1706b667.system.entry.js} +1 -1
- package/dist/mint-components/{p-3970de96.js → p-1f1ea7b5.js} +1 -1
- package/dist/mint-components/p-2617d103.system.entry.js +1 -0
- package/dist/mint-components/{p-78640db1.system.entry.js → p-2620c909.system.entry.js} +1 -1
- package/dist/mint-components/{p-63136070.system.entry.js → p-2b7af7c4.system.entry.js} +1 -1
- package/dist/mint-components/{p-4b0e876f.js → p-2d37c91f.js} +2 -2
- package/dist/mint-components/{p-27455c4c.js → p-30b3592f.js} +1 -1
- package/dist/mint-components/p-37232f63.system.js +1 -0
- package/dist/mint-components/{p-0494f792.js → p-37f18cb2.js} +1 -1
- package/dist/mint-components/{p-e1d01511.system.js → p-3d6b2357.system.js} +1 -1
- package/dist/mint-components/p-3dd20384.entry.js +1 -0
- package/dist/mint-components/{p-82ecbcd1.js → p-40104334.js} +1 -1
- package/dist/mint-components/p-408f983a.system.js +1 -0
- package/dist/mint-components/{p-6738565c.entry.js → p-41633759.entry.js} +1 -1
- package/dist/mint-components/p-4502a264.entry.js +1 -0
- package/dist/mint-components/{p-bbf96ff3.system.js → p-4519c6d9.system.js} +1 -1
- package/dist/mint-components/{p-e707831a.entry.js → p-46aabfb7.entry.js} +1 -1
- package/dist/mint-components/{p-ee26e870.entry.js → p-48476882.entry.js} +2 -2
- package/dist/mint-components/{p-cf9cfac0.entry.js → p-48a1e759.entry.js} +1 -1
- package/dist/mint-components/{p-e0d5d38e.system.entry.js → p-5eec9992.system.entry.js} +1 -1
- package/dist/mint-components/{p-60de562c.entry.js → p-6237c202.entry.js} +1 -1
- package/dist/mint-components/{p-12a9ade0.entry.js → p-692db6d6.entry.js} +2 -2
- package/dist/mint-components/{p-37ea62c3.entry.js → p-69ebe7e3.entry.js} +2 -2
- package/dist/mint-components/{p-4ebe044d.entry.js → p-69f10938.entry.js} +1 -1
- package/dist/mint-components/p-69fbe6a4.entry.js +1 -0
- package/dist/mint-components/{p-5cdcff11.system.entry.js → p-6ae460a6.system.entry.js} +1 -1
- package/dist/mint-components/{p-6549ad6a.system.js → p-6b5830c0.system.js} +1 -1
- package/dist/mint-components/{p-596902cd.system.entry.js → p-6badb7b8.system.entry.js} +1 -1
- package/dist/mint-components/{p-3facf714.js → p-6cb7ca36.js} +1 -1
- package/dist/mint-components/{p-38d6112f.entry.js → p-6e33fcfe.entry.js} +1 -1
- package/dist/mint-components/{p-eb314fed.js → p-72ebbd38.js} +1 -1
- package/dist/mint-components/{p-13086b8d.js → p-75b9bdf1.js} +1 -1
- package/dist/mint-components/{p-4ac2d13b.system.entry.js → p-7607d5b8.system.entry.js} +1 -1
- package/dist/mint-components/{p-232672a2.entry.js → p-7669b806.entry.js} +2 -2
- package/dist/mint-components/{p-c0d24b76.system.entry.js → p-79db0843.system.entry.js} +1 -1
- package/dist/mint-components/{p-3c96bae3.entry.js → p-7cec4e63.entry.js} +1 -1
- package/dist/mint-components/{p-95398ce2.js → p-85087b21.js} +1 -1
- package/dist/mint-components/{p-dcdbf128.system.js → p-8a0aa2c2.system.js} +1 -1
- package/dist/mint-components/{p-6ee04453.entry.js → p-8f09f202.entry.js} +1 -1
- package/dist/mint-components/p-90efeeb4.entry.js +1 -0
- package/dist/mint-components/{p-7794c289.js → p-916a8f50.js} +1 -1
- package/dist/mint-components/{p-e01d8fdc.system.js → p-98164439.system.js} +1 -1
- package/dist/mint-components/{p-4f8830b7.entry.js → p-9a03d2d8.entry.js} +1 -1
- package/dist/mint-components/p-a2c865c1.system.entry.js +1 -0
- package/dist/mint-components/{p-94096609.system.js → p-a7fe3715.system.js} +1 -1
- package/dist/mint-components/{p-fd4d90b9.system.js → p-a96702e2.system.js} +1 -1
- package/dist/mint-components/p-ab2f103f.system.entry.js +1 -0
- package/dist/mint-components/p-b0edbe25.system.entry.js +1 -0
- package/dist/mint-components/{p-e2f8b782.system.entry.js → p-b1918aeb.system.entry.js} +1 -1
- package/dist/mint-components/p-b46d6eb0.entry.js +1 -0
- package/dist/mint-components/{p-5ab46a89.entry.js → p-bc72afd4.entry.js} +1 -1
- package/dist/mint-components/{p-819298a8.system.js → p-bef21e92.system.js} +1 -1
- package/dist/mint-components/p-bfcd61f9.entry.js +1 -0
- package/dist/mint-components/p-c34200f5.entry.js +159 -0
- package/dist/mint-components/{p-c0a8476e.system.entry.js → p-c4b55529.system.entry.js} +1 -1
- package/dist/mint-components/p-c564c4bf.entry.js +1 -0
- package/dist/mint-components/{p-7548e059.system.entry.js → p-c6c911a5.system.entry.js} +1 -1
- package/dist/mint-components/{p-d3cc0d60.system.js → p-c750d5c5.system.js} +1 -1
- package/dist/mint-components/{p-a6d4cffd.system.entry.js → p-c8c83a9e.system.entry.js} +1 -1
- package/dist/mint-components/{p-ba99d04e.system.entry.js → p-c922af25.system.entry.js} +1 -1
- package/dist/mint-components/p-c9afecee.system.entry.js +1 -0
- package/dist/mint-components/{p-f7fba9e4.system.entry.js → p-c9f239c4.system.entry.js} +1 -1
- package/dist/mint-components/{p-19042a54.system.entry.js → p-cdf31925.system.entry.js} +1 -1
- package/dist/mint-components/{p-f298a1bc.system.entry.js → p-ce86e36f.system.entry.js} +1 -1
- package/dist/mint-components/{p-c7d34b6a.system.entry.js → p-db3637b4.system.entry.js} +1 -1
- package/dist/mint-components/{p-48ec6605.system.js → p-dc7b06ef.system.js} +1 -1
- package/dist/mint-components/{p-e4e5168b.entry.js → p-e9a11c35.entry.js} +1 -1
- package/dist/mint-components/p-ea63fd6f.entry.js +1 -0
- package/dist/mint-components/p-ee461c80.js +1 -0
- package/dist/mint-components/{p-28d44352.js → p-f4008f63.js} +1 -1
- package/dist/mint-components/{p-047a840f.system.entry.js → p-f86ba72a.system.entry.js} +1 -1
- package/dist/mint-components/{p-97650e34.js → p-f97cf424.js} +1 -1
- package/dist/mint-components/{p-0ee797b8.system.js → p-fb7288a2.system.js} +1 -1
- package/dist/mint-components/p-fc789a00.js +1 -0
- package/dist/types/components/sqm-asset-card/sqm-asset-card.d.ts +2 -2
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +5 -13
- package/dist/types/components/sqm-brand/sqm-brand.d.ts +2 -2
- package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +0 -2
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +5 -6
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +2 -2
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +3 -3
- package/dist/types/components/sqm-edit-profile/sqm-edit-profile.d.ts +7 -10
- package/dist/types/components/sqm-empty/sqm-empty.d.ts +0 -1
- package/dist/types/components/sqm-form-message/sqm-form-message.d.ts +2 -8
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +8 -20
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +1 -6
- package/dist/types/components/sqm-hook-story-container/sqm-hook-story-container.d.ts +0 -3
- package/dist/types/components/sqm-image/sqm-image.d.ts +0 -1
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +7 -9
- package/dist/types/components/sqm-leaderboard-rank/sqm-leaderboard-rank.d.ts +4 -8
- package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +2 -2
- package/dist/types/components/sqm-navigation-menu/sqm-navigation-menu.d.ts +2 -4
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +1 -1
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +1 -1
- package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +2 -5
- package/dist/types/components/sqm-popup-container/sqm-popup-container.d.ts +6 -21
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +8 -20
- package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +3 -7
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +4 -4
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +4 -4
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +9 -25
- package/dist/types/components/sqm-portal-logout/sqm-portal-logout.d.ts +1 -1
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +8 -18
- package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +1 -1
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +12 -20
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +10 -12
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +2 -2
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +0 -3
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +0 -3
- package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +0 -3
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +4 -7
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +0 -2
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +0 -2
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +0 -2
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +0 -2
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +2 -8
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +6 -17
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +9 -19
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +0 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +0 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +1 -3
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +3 -9
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +0 -2
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +0 -2
- package/dist/types/components/sqm-route/sqm-route.d.ts +1 -1
- package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +0 -2
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +9 -26
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +2 -3
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +2 -3
- package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +1 -4
- package/dist/types/components/sqm-tab/sqm-tab.d.ts +0 -4
- package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +0 -5
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +8 -35
- package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +1 -1
- package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +0 -3
- package/dist/types/components/sqm-timeline/sqm-timeline.d.ts +2 -5
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +2 -4
- package/dist/types/components/sqm-user-name/sqm-user-name.d.ts +2 -4
- package/dist/types/components.d.ts +318 -478
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +5 -12
- package/dist/esm-es5/ShadowViewAddon-e2996624.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-51714c31.js +0 -1
- package/dist/esm-es5/use-callback-7e0bfd3b.js +0 -1
- package/dist/esm-es5/useReferralTable-5cac5b13.js +0 -1
- package/dist/mint-components/p-25ac7c14.system.entry.js +0 -1
- package/dist/mint-components/p-4a1f24ef.entry.js +0 -1
- package/dist/mint-components/p-4a2782fd.system.entry.js +0 -1
- package/dist/mint-components/p-4fe59c93.system.entry.js +0 -1
- package/dist/mint-components/p-60b01103.js +0 -1
- package/dist/mint-components/p-6e1ed926.system.entry.js +0 -1
- package/dist/mint-components/p-71969ce5.system.entry.js +0 -1
- package/dist/mint-components/p-71ecbb3b.system.js +0 -1
- package/dist/mint-components/p-83e4168e.system.entry.js +0 -1
- package/dist/mint-components/p-91acec3d.entry.js +0 -159
- package/dist/mint-components/p-95bbe8a7.entry.js +0 -1
- package/dist/mint-components/p-982ad256.js +0 -1
- package/dist/mint-components/p-9eb6d960.entry.js +0 -1
- package/dist/mint-components/p-a57057c4.system.entry.js +0 -1
- package/dist/mint-components/p-ac6c93ee.entry.js +0 -1
- package/dist/mint-components/p-cc6d91bd.entry.js +0 -1
- package/dist/mint-components/p-cccba50e.entry.js +0 -1
- package/dist/mint-components/p-d7bc7e50.entry.js +0 -1
- package/dist/mint-components/p-d815567f.system.js +0 -1
- package/dist/mint-components/p-ef3f3523.entry.js +0 -1
- package/dist/mint-components/p-fd2852a7.entry.js +0 -1
- package/dist/mint-components/p-ff932bfa.entry.js +0 -1
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +0 -1
|
@@ -4,30 +4,28 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-87a1f4f7.js');
|
|
7
|
-
const global = require('./global-
|
|
7
|
+
const global = require('./global-aaa3f929.js');
|
|
8
8
|
const useCallback = require('./use-callback-e754042f.js');
|
|
9
|
-
const index_module = require('./index.module-
|
|
9
|
+
const index_module = require('./index.module-b9e4136f.js');
|
|
10
10
|
require('./extends-08099afd.js');
|
|
11
11
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
12
12
|
const cjs = require('./cjs-1066ec21.js');
|
|
13
13
|
require('./mixins-fe9d4112.js');
|
|
14
14
|
const JSS = require('./JSS-97fd087e.js');
|
|
15
|
-
const reRender = require('./re-render-
|
|
16
|
-
const useChildElements = require('./useChildElements-
|
|
15
|
+
const reRender = require('./re-render-90da06a2.js');
|
|
16
|
+
const useChildElements = require('./useChildElements-315320bd.js');
|
|
17
17
|
require('./luxon-59ca7d19.js');
|
|
18
18
|
const utils = require('./utils-6847bc06.js');
|
|
19
19
|
require('./sqm-text-span-view-2c7d94b5.js');
|
|
20
20
|
require('./sqm-portal-container-view-840db620.js');
|
|
21
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
21
|
+
const ShadowViewAddon = require('./ShadowViewAddon-67ab6be4.js');
|
|
22
22
|
require('./sqm-portal-section-view-854a3e9c.js');
|
|
23
23
|
|
|
24
24
|
const BigStat = class {
|
|
25
25
|
constructor(hostRef) {
|
|
26
26
|
index.registerInstance(this, hostRef);
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* @uiName Flex Reverse
|
|
28
|
+
* @uiName Flex Reverse - controls the order of the stat value & description column
|
|
31
29
|
*/
|
|
32
30
|
this.flexReverse = false;
|
|
33
31
|
this.ignored = true;
|
|
@@ -36,8 +34,8 @@ const BigStat = class {
|
|
|
36
34
|
disconnectedCallback() { }
|
|
37
35
|
render() {
|
|
38
36
|
var _a;
|
|
39
|
-
const { props, label } = index_module.
|
|
40
|
-
const host = index_module.
|
|
37
|
+
const { props, label } = index_module.L() ? ShadowViewAddon.useDemoBigStat(this) : ShadowViewAddon.useBigStat(this);
|
|
38
|
+
const host = index_module.S();
|
|
41
39
|
const hasLabel = !!((_a = host.innerHTML) === null || _a === void 0 ? void 0 : _a.trim());
|
|
42
40
|
const labelSlot = index.h("slot", { name: "label" }, hasLabel ? index.h("slot", null) : label);
|
|
43
41
|
return index.h(ShadowViewAddon.BigStatView, Object.assign({}, props, { labelSlot: labelSlot }));
|
|
@@ -149,7 +147,7 @@ const styleString = sheet.toString();
|
|
|
149
147
|
function RequiredPropsError({ missingProps, heading = "There was a problem loading this section", subheading = "There was a technical problem that prevented this section from loading. Please contact us with the link to this page.", description = "Error occured while loading <{tagName}>. Values for the following attributes are missing:", }, children) {
|
|
150
148
|
if (!missingProps)
|
|
151
149
|
return false;
|
|
152
|
-
const host = index_module.
|
|
150
|
+
const host = index_module.S();
|
|
153
151
|
const [detailsOpen, setDetailsOpen] = stencilHooks_module.useState(false);
|
|
154
152
|
return (index.h("sl-alert", { type: "danger", open: true },
|
|
155
153
|
index.h("style", { type: "text/css" }, styleString),
|
|
@@ -179,7 +177,7 @@ function RequiredPropsError({ missingProps, heading = "There was a problem loadi
|
|
|
179
177
|
|
|
180
178
|
const FORM_VALIDATION_CONTEXT = "sq:validation-state";
|
|
181
179
|
function useValidationState(formState) {
|
|
182
|
-
const host = index_module.
|
|
180
|
+
const host = index_module.S();
|
|
183
181
|
const [validationState, setValidationState] = stencilHooks_module.y(host, FORM_VALIDATION_CONTEXT, formState);
|
|
184
182
|
return { validationState, setValidationState };
|
|
185
183
|
}
|
|
@@ -203,21 +201,20 @@ const CheckboxField = class {
|
|
|
203
201
|
index.registerInstance(this, hostRef);
|
|
204
202
|
this.ignored = true;
|
|
205
203
|
/**
|
|
206
|
-
* @uiName Checkbox
|
|
204
|
+
* @uiName Checkbox label
|
|
207
205
|
*/
|
|
208
206
|
this.checkboxLabel = "By signing up you agree to the {labelLink}";
|
|
209
207
|
/**
|
|
208
|
+
* @uiName Checkbox label link
|
|
210
209
|
* Used with link text if the checkbox label contains {labelLink}
|
|
211
|
-
*
|
|
212
|
-
* @uiName Checkbox Label Link
|
|
213
210
|
*/
|
|
214
211
|
this.checkboxLabelLink = "https://example.com";
|
|
215
212
|
/**
|
|
216
|
-
* @uiName Checkbox
|
|
213
|
+
* @uiName Checkbox label link text
|
|
217
214
|
*/
|
|
218
215
|
this.checkboxLabelLinkText = "Terms and Conditions";
|
|
219
216
|
/**
|
|
220
|
-
* @uiName Unchecked
|
|
217
|
+
* @uiName Unchecked error message
|
|
221
218
|
*/
|
|
222
219
|
this.errorMessage = "Must be checked";
|
|
223
220
|
/**
|
|
@@ -234,13 +231,13 @@ const CheckboxField = class {
|
|
|
234
231
|
value: this.checkboxName,
|
|
235
232
|
},
|
|
236
233
|
]);
|
|
237
|
-
if (!index_module.
|
|
234
|
+
if (!index_module.L() && missingProps) {
|
|
238
235
|
return (index.h(RequiredPropsError, { missingProps: missingProps, heading: "An error occured while loading this form", subheading: "A technical problem prevented this checkbox field from loading. Please contact us with the link to this page.", description: "Values for the following attributes are missing:" }));
|
|
239
236
|
}
|
|
240
237
|
const content = {
|
|
241
238
|
...utils.getProps(this),
|
|
242
239
|
};
|
|
243
|
-
const { states, callbacks } = index_module.
|
|
240
|
+
const { states, callbacks } = index_module.L()
|
|
244
241
|
? useCheckboxFieldDemo(this)
|
|
245
242
|
: useCheckboxField();
|
|
246
243
|
return (index.h(ShadowViewAddon.CheckboxFieldView, { states: states, content: content, callbacks: callbacks }));
|
|
@@ -313,8 +310,8 @@ const DividedLayout = class {
|
|
|
313
310
|
constructor(hostRef) {
|
|
314
311
|
index.registerInstance(this, hostRef);
|
|
315
312
|
/**
|
|
316
|
-
* Uses
|
|
317
|
-
* @uiName Border
|
|
313
|
+
* Uses CSS border style syntax
|
|
314
|
+
* @uiName Border style
|
|
318
315
|
*/
|
|
319
316
|
this.dividerStyle = "1px solid #EAEAEA";
|
|
320
317
|
stencilHooks_module.h$1(this);
|
|
@@ -339,11 +336,11 @@ const DropdownField = class {
|
|
|
339
336
|
index.registerInstance(this, hostRef);
|
|
340
337
|
this.ignored = true;
|
|
341
338
|
/**
|
|
342
|
-
* @uiName Dropdown
|
|
339
|
+
* @uiName Dropdown label
|
|
343
340
|
*/
|
|
344
341
|
this.dropdownLabel = "Select an option";
|
|
345
342
|
/**
|
|
346
|
-
* @uiName Unselected
|
|
343
|
+
* @uiName Unselected error message
|
|
347
344
|
*/
|
|
348
345
|
this.errorMessage = "Select an option";
|
|
349
346
|
/**
|
|
@@ -360,14 +357,14 @@ const DropdownField = class {
|
|
|
360
357
|
value: this.dropdownName,
|
|
361
358
|
},
|
|
362
359
|
]);
|
|
363
|
-
if (!index_module.
|
|
360
|
+
if (!index_module.L() && missingProps) {
|
|
364
361
|
return (index.h(RequiredPropsError, { missingProps: missingProps, heading: "An error occured while loading this form", subheading: "A technical problem prevented this drop down field from loading. Please contact us with the link to this page.", description: "Values for the following attributes are missing:" }, index.h("slot", null)));
|
|
365
362
|
}
|
|
366
363
|
const content = {
|
|
367
364
|
...utils.getProps(this),
|
|
368
365
|
selectOptions: index.h("slot", null),
|
|
369
366
|
};
|
|
370
|
-
const { states } = index_module.
|
|
367
|
+
const { states } = index_module.L()
|
|
371
368
|
? useDropdownFieldDemo(this)
|
|
372
369
|
: useDropdownField();
|
|
373
370
|
return (index.h(ShadowViewAddon.DropdownFieldView, { states: states, content: content }));
|
|
@@ -424,13 +421,13 @@ const defaultFormState = {
|
|
|
424
421
|
error: "",
|
|
425
422
|
};
|
|
426
423
|
function useEditProfile(props) {
|
|
427
|
-
const userIdent = index_module.
|
|
424
|
+
const userIdent = index_module.ae();
|
|
428
425
|
const [showEdit, setShowEdit] = stencilHooks_module.useState(false);
|
|
429
426
|
const [error, setError] = stencilHooks_module.useState("");
|
|
430
427
|
const [userData, setUserData] = stencilHooks_module.useState(undefined);
|
|
431
428
|
const [formState, setFormState] = stencilHooks_module.useState(defaultFormState);
|
|
432
|
-
const userDataResponse = index_module.
|
|
433
|
-
const [upsertUser, upsertUserResponse] = index_module
|
|
429
|
+
const userDataResponse = index_module.pn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
430
|
+
const [upsertUser, upsertUserResponse] = index_module.$e(UPSERT_USER);
|
|
434
431
|
stencilHooks_module.useEffect(() => {
|
|
435
432
|
if ((upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading) || !showEdit)
|
|
436
433
|
return;
|
|
@@ -544,7 +541,7 @@ const EditProfile = class {
|
|
|
544
541
|
}
|
|
545
542
|
disconnectedCallback() { }
|
|
546
543
|
render() {
|
|
547
|
-
const props = index_module.
|
|
544
|
+
const props = index_module.L()
|
|
548
545
|
? useEditProfileDemo(utils.getProps(this))
|
|
549
546
|
: useEditProfile(utils.getProps(this));
|
|
550
547
|
return index.h(ShadowViewAddon.EditProfileView, Object.assign({}, props));
|
|
@@ -776,9 +773,7 @@ const HeroImage = class {
|
|
|
776
773
|
*/
|
|
777
774
|
this.imageMobilePos = "top";
|
|
778
775
|
/**
|
|
779
|
-
* CTA Button
|
|
780
|
-
*
|
|
781
|
-
* @uiName Button New Tab
|
|
776
|
+
* @uiName CTA Button Link Open in New Tab
|
|
782
777
|
*/
|
|
783
778
|
this.buttonNewTab = false;
|
|
784
779
|
/**
|
|
@@ -857,10 +852,10 @@ const InputField = class {
|
|
|
857
852
|
value: this.fieldName,
|
|
858
853
|
},
|
|
859
854
|
]);
|
|
860
|
-
if (!index_module.
|
|
855
|
+
if (!index_module.L() && missingProps) {
|
|
861
856
|
return (index.h(RequiredPropsError, { missingProps: missingProps, heading: "An error occured while loading this form", subheading: "A technical problem prevented this input field from loading. Please contact us with the link to this page.", description: "Values for the following attributes are missing:" }));
|
|
862
857
|
}
|
|
863
|
-
const { states } = index_module.
|
|
858
|
+
const { states } = index_module.L() ? useInputFieldDemo(this) : useInputField();
|
|
864
859
|
return index.h(ShadowViewAddon.InputFieldView, { states: states, content: content });
|
|
865
860
|
}
|
|
866
861
|
};
|
|
@@ -916,11 +911,11 @@ const GET_RANK = index_module.dist.gql `
|
|
|
916
911
|
`;
|
|
917
912
|
function useLeaderboard(props) {
|
|
918
913
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
919
|
-
const programIdContext = index_module.
|
|
914
|
+
const programIdContext = index_module.A();
|
|
920
915
|
// Default to context, overriden by props
|
|
921
916
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
922
|
-
const user = index_module.
|
|
923
|
-
const locale = index_module.
|
|
917
|
+
const user = index_module.ae();
|
|
918
|
+
const locale = index_module.O();
|
|
924
919
|
const variables = programId
|
|
925
920
|
? {
|
|
926
921
|
type: props.leaderboardType,
|
|
@@ -939,8 +934,8 @@ function useLeaderboard(props) {
|
|
|
939
934
|
if (props.maxRows > 0) {
|
|
940
935
|
variables["limit"] = props.maxRows;
|
|
941
936
|
}
|
|
942
|
-
const { data: leaderboardData, loading: loadingLeaderboard } = index_module.
|
|
943
|
-
const { data: rankData } = index_module.
|
|
937
|
+
const { data: leaderboardData, loading: loadingLeaderboard } = index_module.pn(GET_LEADERBOARD, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
938
|
+
const { data: rankData } = index_module.pn(GET_RANK, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
944
939
|
const leaderboardRows = (_b = leaderboardData === null || leaderboardData === void 0 ? void 0 : leaderboardData.userLeaderboard) === null || _b === void 0 ? void 0 : _b.rows;
|
|
945
940
|
const flattenedLeaderboard = getFlattenedLeaderboard(leaderboardRows);
|
|
946
941
|
const sortedLeaderboard = flattenedLeaderboard === null || flattenedLeaderboard === void 0 ? void 0 : flattenedLeaderboard.sort(function (a, b) {
|
|
@@ -993,8 +988,9 @@ const Leaderboard = class {
|
|
|
993
988
|
*/
|
|
994
989
|
this.hideViewer = false;
|
|
995
990
|
/**
|
|
996
|
-
*
|
|
997
|
-
*
|
|
991
|
+
* Text displayed for users without names in the leaderboard
|
|
992
|
+
*
|
|
993
|
+
* @uiName Anonymous User Name
|
|
998
994
|
*/
|
|
999
995
|
this.anonymousUser = "Anonymous User";
|
|
1000
996
|
/**
|
|
@@ -1025,7 +1021,7 @@ const Leaderboard = class {
|
|
|
1025
1021
|
showRank: this.showRank,
|
|
1026
1022
|
};
|
|
1027
1023
|
const demoProps = { ...props, demoData: this.demoData };
|
|
1028
|
-
const viewprops = index_module.
|
|
1024
|
+
const viewprops = index_module.L()
|
|
1029
1025
|
? useLeaderboardDemo(demoProps)
|
|
1030
1026
|
: useLeaderboard(props);
|
|
1031
1027
|
return index.h(ShadowViewAddon.LeaderboardView, Object.assign({}, viewprops));
|
|
@@ -1124,18 +1120,18 @@ const NameFields = class {
|
|
|
1124
1120
|
index.registerInstance(this, hostRef);
|
|
1125
1121
|
this.ignored = true;
|
|
1126
1122
|
/**
|
|
1127
|
-
* @uiName First
|
|
1123
|
+
* @uiName First name field label
|
|
1128
1124
|
*/
|
|
1129
1125
|
this.firstNameLabel = "First Name";
|
|
1130
1126
|
/**
|
|
1131
|
-
* @uiName Last
|
|
1127
|
+
* @uiName Last name field label
|
|
1132
1128
|
*/
|
|
1133
1129
|
this.lastNameLabel = "Last Name";
|
|
1134
1130
|
stencilHooks_module.h$1(this);
|
|
1135
1131
|
}
|
|
1136
1132
|
disconnectedCallback() { }
|
|
1137
1133
|
render() {
|
|
1138
|
-
const { states } = index_module.
|
|
1134
|
+
const { states } = index_module.L() ? useNameFieldsDemo(this) : useNameFields(this);
|
|
1139
1135
|
return index.h(ShadowViewAddon.NameFieldsView, { states: states });
|
|
1140
1136
|
}
|
|
1141
1137
|
};
|
|
@@ -1166,12 +1162,12 @@ function NavigationMenuView(props) {
|
|
|
1166
1162
|
}
|
|
1167
1163
|
|
|
1168
1164
|
function handleMenu(e) {
|
|
1169
|
-
index_module.
|
|
1165
|
+
index_module.wn.push(e.detail.item.value);
|
|
1170
1166
|
}
|
|
1171
1167
|
function useNavigationMenu(props) {
|
|
1172
1168
|
const ref = stencilHooks_module.useRef();
|
|
1173
|
-
const [, rerender] = index_module.
|
|
1174
|
-
const user = index_module.
|
|
1169
|
+
const [, rerender] = index_module.mn();
|
|
1170
|
+
const user = index_module.ae();
|
|
1175
1171
|
stencilHooks_module.useEffect(() => {
|
|
1176
1172
|
var _a;
|
|
1177
1173
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => handleMenu(e));
|
|
@@ -1200,7 +1196,7 @@ const NavigationMenu = class {
|
|
|
1200
1196
|
}
|
|
1201
1197
|
disconnectedCallback() { }
|
|
1202
1198
|
render() {
|
|
1203
|
-
const props = index_module.
|
|
1199
|
+
const props = index_module.L()
|
|
1204
1200
|
? useNavigationMenuDemo(utils.getProps(this))
|
|
1205
1201
|
: useNavigationMenu(utils.getProps(this));
|
|
1206
1202
|
return (index.h(index.Host, { slot: "sqm-navigation-menu" }, index.h(NavigationMenuView, Object.assign({}, props))));
|
|
@@ -1224,12 +1220,12 @@ function useNavigationMenuDemo(props) {
|
|
|
1224
1220
|
NavigationMenu.style = sqmNavigationMenuCss;
|
|
1225
1221
|
|
|
1226
1222
|
function usePortalChangePassword(props) {
|
|
1227
|
-
var _a, _b, _c, _d;
|
|
1228
|
-
const [request, { loading, errors, data }] = index_module
|
|
1223
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1224
|
+
const [request, { loading, errors, data }] = index_module.Ue();
|
|
1229
1225
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
1230
1226
|
const [error, setError] = stencilHooks_module.useState("");
|
|
1231
1227
|
const [success, setSuccess] = stencilHooks_module.useState(false);
|
|
1232
|
-
const user = index_module.
|
|
1228
|
+
const user = index_module.ae();
|
|
1233
1229
|
const submit = async (event) => {
|
|
1234
1230
|
var _a;
|
|
1235
1231
|
setSuccess(false);
|
|
@@ -1262,7 +1258,7 @@ function usePortalChangePassword(props) {
|
|
|
1262
1258
|
open,
|
|
1263
1259
|
loading,
|
|
1264
1260
|
success,
|
|
1265
|
-
error: error || ((_d = (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.response) === null || _b === void 0 ? void 0 : _b.errors) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.message),
|
|
1261
|
+
error: error || ((_e = (_d = (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.response) === null || _b === void 0 ? void 0 : _b.errors) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.extensions) === null || _e === void 0 ? void 0 : _e.message) || ((_h = (_g = (_f = errors === null || errors === void 0 ? void 0 : errors.response) === null || _f === void 0 ? void 0 : _f.errors) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.message),
|
|
1266
1262
|
content: {
|
|
1267
1263
|
modalChangePasswordHeader: props.modalChangePasswordHeader,
|
|
1268
1264
|
cancelText: props.cancelText,
|
|
@@ -1287,54 +1283,42 @@ const PortalChangePassword = class {
|
|
|
1287
1283
|
index.registerInstance(this, hostRef);
|
|
1288
1284
|
this.ignored = true;
|
|
1289
1285
|
/**
|
|
1290
|
-
* @uiName Change
|
|
1286
|
+
* @uiName Change password modal header
|
|
1291
1287
|
*/
|
|
1292
1288
|
this.modalChangePasswordHeader = "Change Password";
|
|
1293
1289
|
/**
|
|
1294
|
-
* Modal cancel button text
|
|
1295
|
-
*
|
|
1296
|
-
* @uiName Cancel Button Text
|
|
1290
|
+
* @uiName Modal cancel password change button text
|
|
1297
1291
|
*/
|
|
1298
1292
|
this.cancelText = "Cancel";
|
|
1299
1293
|
/**
|
|
1300
|
-
* Modal change password button text
|
|
1301
|
-
*
|
|
1302
|
-
* @uiName Change Password Button Text
|
|
1294
|
+
* @uiName Modal change password button text
|
|
1303
1295
|
*/
|
|
1304
1296
|
this.changePasswordButtonText = "Change Password";
|
|
1305
1297
|
/**
|
|
1306
|
-
* Password input field label
|
|
1307
|
-
*
|
|
1308
|
-
* @uiName Password Label
|
|
1298
|
+
* @uiName Password input field label
|
|
1309
1299
|
*/
|
|
1310
1300
|
this.passwordFieldLabel = "New Password";
|
|
1311
1301
|
/**
|
|
1312
|
-
* Password confirmation input field label
|
|
1313
|
-
*
|
|
1314
|
-
* @uiName Confirm Password Label
|
|
1302
|
+
* @uiName Password confirmation input field label
|
|
1315
1303
|
*/
|
|
1316
1304
|
this.confirmPasswordFieldLabel = "Confirm New Password";
|
|
1317
1305
|
/**
|
|
1318
|
-
* Successful password change message
|
|
1319
|
-
*
|
|
1320
|
-
* @uiName Successful Message
|
|
1306
|
+
* @uiName Successful password change message
|
|
1321
1307
|
*/
|
|
1322
1308
|
this.successMessage = "Your password has been updated.";
|
|
1323
1309
|
/**
|
|
1324
|
-
* Portal change password section header
|
|
1325
|
-
*
|
|
1326
|
-
* @uiName Change Password Header
|
|
1310
|
+
* @uiName Portal change password section header
|
|
1327
1311
|
*/
|
|
1328
1312
|
this.portalChangePasswordHeader = "Password";
|
|
1329
1313
|
/**
|
|
1330
|
-
* @uiName
|
|
1314
|
+
* @uiName Portal change password button text
|
|
1331
1315
|
*/
|
|
1332
1316
|
this.portalChangePasswordButtonText = "Change your password...";
|
|
1333
1317
|
stencilHooks_module.h$1(this);
|
|
1334
1318
|
}
|
|
1335
1319
|
disconnectedCallback() { }
|
|
1336
1320
|
render() {
|
|
1337
|
-
const { states, callbacks } = index_module.
|
|
1321
|
+
const { states, callbacks } = index_module.L()
|
|
1338
1322
|
? usePortalChangePasswordDemo(this)
|
|
1339
1323
|
: usePortalChangePassword(this);
|
|
1340
1324
|
return index.h(ShadowViewAddon.PortalChangePasswordView, { states: states, callbacks: callbacks });
|
|
@@ -1364,7 +1348,7 @@ function usePortalChangePasswordDemo(props) {
|
|
|
1364
1348
|
}
|
|
1365
1349
|
|
|
1366
1350
|
function usePortalFrame(footerContent, headerContent) {
|
|
1367
|
-
const [, rerender] = index_module.
|
|
1351
|
+
const [, rerender] = index_module.mn();
|
|
1368
1352
|
return {
|
|
1369
1353
|
data: {
|
|
1370
1354
|
footer: footerContent,
|
|
@@ -1386,7 +1370,7 @@ const PortalFrame = class {
|
|
|
1386
1370
|
render() {
|
|
1387
1371
|
const footerContent = index.h("slot", { name: "footer" });
|
|
1388
1372
|
const headerContent = index.h("slot", { name: "header" });
|
|
1389
|
-
const props = index_module.
|
|
1373
|
+
const props = index_module.L()
|
|
1390
1374
|
? usePortalFrameDemo(footerContent, headerContent, this)
|
|
1391
1375
|
: usePortalFrame(footerContent, headerContent);
|
|
1392
1376
|
return (index.h(ShadowViewAddon.PortalFrameView, Object.assign({}, props), index.h("slot", null)));
|
|
@@ -1408,8 +1392,8 @@ function usePortalFrameDemo(footerContent, headerContent, props) {
|
|
|
1408
1392
|
}
|
|
1409
1393
|
|
|
1410
1394
|
function usePortalLogin(props) {
|
|
1411
|
-
var _a, _b, _c, _d;
|
|
1412
|
-
const [request, { loading, errors, data }] = index_module.
|
|
1395
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1396
|
+
const [request, { loading, errors, data }] = index_module.Ve();
|
|
1413
1397
|
const [error, setError] = stencilHooks_module.useState("");
|
|
1414
1398
|
const urlParams = new URLSearchParams(window.location.search);
|
|
1415
1399
|
const nextPageOverride = urlParams.get("nextPage");
|
|
@@ -1427,7 +1411,7 @@ function usePortalLogin(props) {
|
|
|
1427
1411
|
if ((_a = data === null || data === void 0 ? void 0 : data.authenticateManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
1428
1412
|
urlParams.delete("nextPage");
|
|
1429
1413
|
const url = utils.sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
1430
|
-
index_module.
|
|
1414
|
+
index_module.wn.push(url.href);
|
|
1431
1415
|
}
|
|
1432
1416
|
}, [(_a = data === null || data === void 0 ? void 0 : data.authenticateManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token]);
|
|
1433
1417
|
stencilHooks_module.useEffect(() => {
|
|
@@ -1436,7 +1420,8 @@ function usePortalLogin(props) {
|
|
|
1436
1420
|
setError("Network request failed.");
|
|
1437
1421
|
}
|
|
1438
1422
|
}, [errors]);
|
|
1439
|
-
const errorMessage = ((_d = (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.response) === null || _b === void 0 ? void 0 : _b.errors) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.message) ||
|
|
1423
|
+
const errorMessage = ((_e = (_d = (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.response) === null || _b === void 0 ? void 0 : _b.errors) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.extensions) === null || _e === void 0 ? void 0 : _e.message) || ((_h = (_g = (_f = errors === null || errors === void 0 ? void 0 : errors.response) === null || _f === void 0 ? void 0 : _f.errors) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.message) ||
|
|
1424
|
+
error;
|
|
1440
1425
|
return {
|
|
1441
1426
|
states: {
|
|
1442
1427
|
loading,
|
|
@@ -1455,67 +1440,51 @@ const PortalLogin = class {
|
|
|
1455
1440
|
index.registerInstance(this, hostRef);
|
|
1456
1441
|
this.ignored = true;
|
|
1457
1442
|
/**
|
|
1458
|
-
* Page navigated to after sign-in
|
|
1459
|
-
*
|
|
1460
|
-
* @uiName Next Page Path
|
|
1443
|
+
* @uiName Page navigated to after sign-in
|
|
1461
1444
|
*/
|
|
1462
1445
|
this.nextPage = "/";
|
|
1463
1446
|
/**
|
|
1464
|
-
* Label for email field
|
|
1465
|
-
*
|
|
1466
|
-
* @uiName Email Label
|
|
1447
|
+
* @uiName Label for email field
|
|
1467
1448
|
*/
|
|
1468
1449
|
this.emailLabel = "Email";
|
|
1469
1450
|
/**
|
|
1470
|
-
* Label for password field
|
|
1471
|
-
*
|
|
1472
|
-
* @uiName Password Label
|
|
1451
|
+
* @uiName Label for password field
|
|
1473
1452
|
*/
|
|
1474
1453
|
this.passwordLabel = "Password";
|
|
1475
1454
|
/**
|
|
1476
|
-
* Label for submit button
|
|
1477
|
-
*
|
|
1478
|
-
* @uiName Submit Button Text
|
|
1455
|
+
* @uiName Label for submit button
|
|
1479
1456
|
*/
|
|
1480
1457
|
this.submitLabel = "Sign In";
|
|
1481
1458
|
/**
|
|
1482
|
-
* Label for forgotten password button
|
|
1483
|
-
*
|
|
1484
|
-
* @uiName Forgot Password Text
|
|
1459
|
+
* @uiName Label for forgotten password button
|
|
1485
1460
|
*/
|
|
1486
1461
|
this.forgotPasswordLabel = "Forgot Password?";
|
|
1487
1462
|
/**
|
|
1488
|
-
* Label for register button
|
|
1489
|
-
*
|
|
1490
|
-
* @uiName Register Button Text
|
|
1463
|
+
* @uiName Label for register navigation button
|
|
1491
1464
|
*/
|
|
1492
1465
|
this.registerLabel = "Register";
|
|
1493
1466
|
/**
|
|
1494
|
-
* @uiName Heading
|
|
1467
|
+
* @uiName Heading label
|
|
1495
1468
|
*/
|
|
1496
1469
|
this.pageLabel = "Sign in to your account";
|
|
1497
1470
|
/**
|
|
1498
|
-
* Register
|
|
1499
|
-
*
|
|
1500
|
-
* @uiName Register Path
|
|
1471
|
+
* @uiName Register button redirection path
|
|
1501
1472
|
*/
|
|
1502
1473
|
this.registerPath = "/register";
|
|
1503
1474
|
/**
|
|
1504
|
-
* Forgot password redirect path
|
|
1505
|
-
*
|
|
1506
|
-
* @uiName Forgot Password Path
|
|
1475
|
+
* @uiName Forgot password button redirect path
|
|
1507
1476
|
*/
|
|
1508
1477
|
this.forgotPasswordPath = "/forgotPassword";
|
|
1509
1478
|
stencilHooks_module.h$1(this);
|
|
1510
1479
|
}
|
|
1511
1480
|
disconnectedCallback() { }
|
|
1512
1481
|
render() {
|
|
1513
|
-
const { states, callbacks } = index_module.
|
|
1482
|
+
const { states, callbacks } = index_module.L()
|
|
1514
1483
|
? useLoginDemo(this)
|
|
1515
1484
|
: usePortalLogin(this);
|
|
1516
1485
|
const content = {
|
|
1517
|
-
forgotPasswordButton: (index.h("slot", { name: "forgotPassword" }, index.h("a", { onClick: () => index_module.
|
|
1518
|
-
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.
|
|
1486
|
+
forgotPasswordButton: (index.h("slot", { name: "forgotPassword" }, index.h("a", { onClick: () => index_module.wn.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
1487
|
+
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.wn.push(states.registerPath) }, this.registerLabel))),
|
|
1519
1488
|
emailLabel: this.emailLabel,
|
|
1520
1489
|
passwordLabel: this.passwordLabel,
|
|
1521
1490
|
submitLabel: this.submitLabel,
|
|
@@ -5412,10 +5381,10 @@ AsYouType$1.prototype = Object.create(AsYouType.prototype, {});
|
|
|
5412
5381
|
AsYouType$1.prototype.constructor = AsYouType$1;
|
|
5413
5382
|
|
|
5414
5383
|
function usePortalRegister(props) {
|
|
5415
|
-
var _a, _b, _c, _d, _e, _f;
|
|
5384
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
5416
5385
|
const formRef = stencilHooks_module.useRef(null);
|
|
5417
5386
|
const { validationState, setValidationState } = useValidationState({});
|
|
5418
|
-
const [request, { loading, errors, data }] = index_module.
|
|
5387
|
+
const [request, { loading, errors, data }] = index_module.He();
|
|
5419
5388
|
const submit = async (event) => {
|
|
5420
5389
|
let formControls = event.target.getFormControls();
|
|
5421
5390
|
let formData = {};
|
|
@@ -5480,7 +5449,7 @@ function usePortalRegister(props) {
|
|
|
5480
5449
|
stencilHooks_module.useEffect(() => {
|
|
5481
5450
|
var _a;
|
|
5482
5451
|
if ((_a = data === null || data === void 0 ? void 0 : data.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
5483
|
-
index_module.
|
|
5452
|
+
index_module.wn.push(props.nextPage);
|
|
5484
5453
|
}
|
|
5485
5454
|
}, [(_a = data === null || data === void 0 ? void 0 : data.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token]);
|
|
5486
5455
|
stencilHooks_module.useEffect(() => {
|
|
@@ -5501,7 +5470,7 @@ function usePortalRegister(props) {
|
|
|
5501
5470
|
}
|
|
5502
5471
|
else {
|
|
5503
5472
|
errorMessage =
|
|
5504
|
-
((_f = (_e = (_d = errors === null || errors === void 0 ? void 0 : errors.response) === null || _d === void 0 ? void 0 : _d.errors) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.message) || (validationState === null || validationState === void 0 ? void 0 : validationState.error);
|
|
5473
|
+
((_g = (_f = (_e = (_d = errors === null || errors === void 0 ? void 0 : errors.response) === null || _d === void 0 ? void 0 : _d.errors) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.extensions) === null || _g === void 0 ? void 0 : _g.message) || ((_k = (_j = (_h = errors === null || errors === void 0 ? void 0 : errors.response) === null || _h === void 0 ? void 0 : _h.errors) === null || _j === void 0 ? void 0 : _j[0]) === null || _k === void 0 ? void 0 : _k.message) || (validationState === null || validationState === void 0 ? void 0 : validationState.error);
|
|
5505
5474
|
}
|
|
5506
5475
|
return {
|
|
5507
5476
|
states: {
|
|
@@ -5527,73 +5496,65 @@ const PortalRegister = class {
|
|
|
5527
5496
|
index.registerInstance(this, hostRef);
|
|
5528
5497
|
this.ignored = true;
|
|
5529
5498
|
/**
|
|
5530
|
-
* Page navigated to after registration
|
|
5531
|
-
*
|
|
5532
|
-
* @uiName Next Page
|
|
5499
|
+
* @uiName Page navigated to after registration
|
|
5533
5500
|
*/
|
|
5534
5501
|
this.nextPage = "/";
|
|
5535
5502
|
/**
|
|
5536
5503
|
* The page that users are redirected to from the verification email.
|
|
5537
5504
|
*
|
|
5538
|
-
* @uiName Email
|
|
5505
|
+
* @uiName Email redirection base path
|
|
5539
5506
|
*/
|
|
5540
5507
|
this.redirectPath = "/verifyEmail";
|
|
5541
5508
|
/**
|
|
5542
|
-
* @uiName
|
|
5509
|
+
* @uiName Label for email field
|
|
5543
5510
|
*/
|
|
5544
5511
|
this.emailLabel = "Email";
|
|
5545
5512
|
/**
|
|
5546
|
-
* @uiName
|
|
5513
|
+
* @uiName Label for password field
|
|
5547
5514
|
*/
|
|
5548
5515
|
this.passwordLabel = "Password";
|
|
5549
5516
|
/**
|
|
5550
|
-
* @uiName
|
|
5517
|
+
* @uiName Label for submit button
|
|
5551
5518
|
*/
|
|
5552
5519
|
this.submitLabel = "Register";
|
|
5553
5520
|
/**
|
|
5554
|
-
* @uiName
|
|
5521
|
+
* @uiName Label for login navigation button
|
|
5555
5522
|
*/
|
|
5556
5523
|
this.loginLabel = "Sign in";
|
|
5557
5524
|
/**
|
|
5558
|
-
* @uiName
|
|
5525
|
+
* @uiName Label for confirm password field
|
|
5559
5526
|
*/
|
|
5560
5527
|
this.confirmPasswordLabel = "Confirm Password";
|
|
5561
5528
|
/**
|
|
5562
|
-
* Show
|
|
5563
|
-
*
|
|
5564
|
-
* @uiName Show Confirm Password Field
|
|
5529
|
+
* @uiName Show confirm password field
|
|
5565
5530
|
*/
|
|
5566
5531
|
this.confirmPassword = false;
|
|
5567
5532
|
/**
|
|
5568
|
-
* @uiName
|
|
5533
|
+
* @uiName Use password field with live validation
|
|
5569
5534
|
*/
|
|
5570
5535
|
this.enablePasswordValidation = true;
|
|
5571
5536
|
/**
|
|
5572
|
-
* Hide default input fields to use custom fields
|
|
5573
|
-
*
|
|
5574
|
-
* @uiName Hide Default Inputs
|
|
5537
|
+
* @uiName Hide default input fields to use custom fields
|
|
5575
5538
|
*/
|
|
5576
5539
|
this.hideInputs = false;
|
|
5577
5540
|
/**
|
|
5578
|
-
* @uiName Heading
|
|
5541
|
+
* @uiName Heading label
|
|
5579
5542
|
*/
|
|
5580
5543
|
this.pageLabel = "Register";
|
|
5581
5544
|
/**
|
|
5582
|
-
*
|
|
5583
|
-
*
|
|
5584
|
-
* @uiName Login Path
|
|
5545
|
+
* @uiName Sign in button redirection path
|
|
5585
5546
|
*/
|
|
5586
5547
|
this.loginPath = "/login";
|
|
5587
5548
|
stencilHooks_module.h$1(this);
|
|
5588
5549
|
}
|
|
5589
5550
|
disconnectedCallback() { }
|
|
5590
5551
|
render() {
|
|
5591
|
-
const { states, callbacks, refs } = index_module.
|
|
5552
|
+
const { states, callbacks, refs } = index_module.L()
|
|
5592
5553
|
? useRegisterDemo(this)
|
|
5593
5554
|
: usePortalRegister(this);
|
|
5594
5555
|
const content = {
|
|
5595
5556
|
formData: index.h("slot", { name: "formData" }),
|
|
5596
|
-
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.
|
|
5557
|
+
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.wn.push(states.loginPath) }, this.loginLabel))),
|
|
5597
5558
|
terms: index.h("slot", { name: "terms" }),
|
|
5598
5559
|
emailLabel: this.emailLabel,
|
|
5599
5560
|
passwordLabel: this.passwordLabel,
|
|
@@ -5755,11 +5716,11 @@ const ProgramExplainerStep = class {
|
|
|
5755
5716
|
const debug = stencilHooks_module.browser('sq:useProgramMenu');
|
|
5756
5717
|
const UPDATE_PROGRAM_EVENT = 'sq:update-program-id';
|
|
5757
5718
|
function useProgramMenu(props) {
|
|
5758
|
-
const programId = index_module.
|
|
5759
|
-
const host = index_module.
|
|
5719
|
+
const programId = index_module.A();
|
|
5720
|
+
const host = index_module.S();
|
|
5760
5721
|
debug({ programId, props });
|
|
5761
5722
|
const ref = stencilHooks_module.useRef();
|
|
5762
|
-
const [, rerender] = index_module.
|
|
5723
|
+
const [, rerender] = index_module.mn();
|
|
5763
5724
|
stencilHooks_module.useEffect(() => {
|
|
5764
5725
|
var _a;
|
|
5765
5726
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener('sl-select', (e) => {
|
|
@@ -5885,9 +5846,9 @@ const GET_USER_DETAILS = index_module.dist.gql `
|
|
|
5885
5846
|
`;
|
|
5886
5847
|
function useReferralIframe(props) {
|
|
5887
5848
|
var _a;
|
|
5888
|
-
const programId = index_module.
|
|
5889
|
-
const user = index_module.
|
|
5890
|
-
const { data } = index_module.
|
|
5849
|
+
const programId = index_module.A();
|
|
5850
|
+
const user = index_module.ae();
|
|
5851
|
+
const { data } = index_module.pn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
5891
5852
|
return {
|
|
5892
5853
|
states: {
|
|
5893
5854
|
content: props,
|
|
@@ -5903,13 +5864,11 @@ const SqmReferralIframe = class {
|
|
|
5903
5864
|
index.registerInstance(this, hostRef);
|
|
5904
5865
|
this.ignored = true;
|
|
5905
5866
|
/**
|
|
5906
|
-
* Height of the iframe container
|
|
5907
|
-
* @uiName Iframe Height
|
|
5867
|
+
* @uiName Height of the iframe container
|
|
5908
5868
|
*/
|
|
5909
5869
|
this.iframeHeight = "100%";
|
|
5910
5870
|
/**
|
|
5911
|
-
* Width of the iframe container
|
|
5912
|
-
* @uiName Iframe Width
|
|
5871
|
+
* @uiName Width of the iframe container
|
|
5913
5872
|
*/
|
|
5914
5873
|
this.iframeWidth = "100%";
|
|
5915
5874
|
stencilHooks_module.h$1(this);
|
|
@@ -5925,7 +5884,7 @@ const SqmReferralIframe = class {
|
|
|
5925
5884
|
if (missingProps) {
|
|
5926
5885
|
return (index.h(RequiredPropsError, { missingProps: missingProps, heading: "An error occured while loading this page", subheading: "A technical problem prevented this iframe from loading. Please contact us with the link to this page.", description: "Values for the following attributes are missing:" }));
|
|
5927
5886
|
}
|
|
5928
|
-
const { states, data } = index_module.
|
|
5887
|
+
const { states, data } = index_module.L()
|
|
5929
5888
|
? useReferralIframeDemo(utils.getProps(this))
|
|
5930
5889
|
: useReferralIframe(utils.getProps(this));
|
|
5931
5890
|
return (index.h(index.Host, { style: { display: "contents" } }, index.h(ShadowViewAddon.ReferralIframeView, { data: data, states: states })));
|
|
@@ -6612,9 +6571,9 @@ function useRewardExchangeList(props) {
|
|
|
6612
6571
|
});
|
|
6613
6572
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
6614
6573
|
const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
|
|
6615
|
-
const user = index_module.
|
|
6616
|
-
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = index_module
|
|
6617
|
-
const { data, loading, refetch, errors: queryError, } = index_module.
|
|
6574
|
+
const user = index_module.ae();
|
|
6575
|
+
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = index_module.$e(EXCHANGE);
|
|
6576
|
+
const { data, loading, refetch, errors: queryError, } = index_module.pn(GET_EXCHANGE_LIST, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
6618
6577
|
stencilHooks_module.useEffect(() => {
|
|
6619
6578
|
var _a, _b;
|
|
6620
6579
|
if ((_b = (_a = exchangeResponse === null || exchangeResponse === void 0 ? void 0 : exchangeResponse.exchangeReward) === null || _a === void 0 ? void 0 : _a.reward) === null || _b === void 0 ? void 0 : _b.id) {
|
|
@@ -6633,7 +6592,7 @@ function useRewardExchangeList(props) {
|
|
|
6633
6592
|
canvas.confetti || confetti.create(canvas, { resize: true });
|
|
6634
6593
|
canvas.confetti();
|
|
6635
6594
|
}, [canvasRef.current]);
|
|
6636
|
-
const { refresh } = index_module.
|
|
6595
|
+
const { refresh } = index_module.Ge();
|
|
6637
6596
|
async function exchangeReward() {
|
|
6638
6597
|
if (!selectedItem)
|
|
6639
6598
|
return;
|
|
@@ -6752,9 +6711,7 @@ const SqmRewardExchangeList = class {
|
|
|
6752
6711
|
index.registerInstance(this, hostRef);
|
|
6753
6712
|
this.ignored = true;
|
|
6754
6713
|
/**
|
|
6755
|
-
*
|
|
6756
|
-
*
|
|
6757
|
-
* @uiName Not Available Error
|
|
6714
|
+
* @uiName Exchange button text
|
|
6758
6715
|
*/
|
|
6759
6716
|
this.notAvailableError = "{unavailableReasonCode, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {{sourceValue} required} AVAILABILITY_PREDICATE {Not available} other {{unavailableReasonCode}} }";
|
|
6760
6717
|
/**
|
|
@@ -6786,7 +6743,7 @@ const SqmRewardExchangeList = class {
|
|
|
6786
6743
|
*/
|
|
6787
6744
|
this.continueText = "Continue";
|
|
6788
6745
|
/**
|
|
6789
|
-
|
|
6746
|
+
* Displayed on the reward selection page.
|
|
6790
6747
|
* @uiName Continue to Confirmation Button Text
|
|
6791
6748
|
*/
|
|
6792
6749
|
this.continueToConfirmationText = "Continue to confirmation";
|
|
@@ -6795,20 +6752,17 @@ const SqmRewardExchangeList = class {
|
|
|
6795
6752
|
*/
|
|
6796
6753
|
this.redeemText = "Redeem";
|
|
6797
6754
|
/**
|
|
6798
|
-
|
|
6799
|
-
*
|
|
6755
|
+
* Displayed as the header for the confirmation page.
|
|
6800
6756
|
* @uiName Confirmation Title Text
|
|
6801
6757
|
*/
|
|
6802
6758
|
this.redeemTitle = "Confirm and redeem";
|
|
6803
6759
|
/**
|
|
6804
|
-
|
|
6805
|
-
*
|
|
6760
|
+
* Displayed on the success screen when a user successfully exchanges for a reward.
|
|
6806
6761
|
* @uiName Redemption Success Message
|
|
6807
6762
|
*/
|
|
6808
6763
|
this.redemptionSuccessText = "Redeemed {sourceValue} for {destinationValue}";
|
|
6809
6764
|
/**
|
|
6810
|
-
|
|
6811
|
-
*
|
|
6765
|
+
* Displayed on the reward exchange cards.
|
|
6812
6766
|
* @uiName Reward Exchange Amount Text
|
|
6813
6767
|
*/
|
|
6814
6768
|
this.sourceAmountMessage = "{ruleType, select, FIXED_GLOBAL_REWARD {{sourceValue}} other {{sourceMinValue} to {sourceMaxValue}}}";
|
|
@@ -6827,19 +6781,17 @@ const SqmRewardExchangeList = class {
|
|
|
6827
6781
|
*/
|
|
6828
6782
|
this.selectText = "Select amount to receive";
|
|
6829
6783
|
/**
|
|
6830
|
-
|
|
6831
|
-
*
|
|
6784
|
+
* Shown if an error occurs when loading the reward exchange.
|
|
6832
6785
|
* @uiName Reward List Error Message
|
|
6833
6786
|
*/
|
|
6834
6787
|
this.queryError = "Unable to load reward exchange list. Please try again";
|
|
6835
6788
|
/**
|
|
6836
|
-
|
|
6837
|
-
*
|
|
6789
|
+
* Shown if an error occurs during the reward exchange.
|
|
6838
6790
|
* @uiName Redemption Error Message
|
|
6839
6791
|
*/
|
|
6840
6792
|
this.redemptionError = "An error occured trying to redeem this reward. Please try again";
|
|
6841
6793
|
/**
|
|
6842
|
-
* @uiName Not Enough Error Message
|
|
6794
|
+
* @uiName Not Enough Available Error Message
|
|
6843
6795
|
*/
|
|
6844
6796
|
this.notEnoughError = "Not enough {sourceUnit} to redeem for this reward";
|
|
6845
6797
|
/**
|
|
@@ -6853,7 +6805,7 @@ const SqmRewardExchangeList = class {
|
|
|
6853
6805
|
/**
|
|
6854
6806
|
* Set the number of placeholder cards to be shown in loading state.
|
|
6855
6807
|
*
|
|
6856
|
-
* @
|
|
6808
|
+
* @undocumented Loading Cards
|
|
6857
6809
|
*/
|
|
6858
6810
|
this.skeletonCardNum = 8;
|
|
6859
6811
|
/**
|
|
@@ -6882,7 +6834,7 @@ const SqmRewardExchangeList = class {
|
|
|
6882
6834
|
...utils.getProps(this),
|
|
6883
6835
|
empty: index.h(EmptySlot$1, null),
|
|
6884
6836
|
};
|
|
6885
|
-
const { states, data, callbacks, refs } = index_module.
|
|
6837
|
+
const { states, data, callbacks, refs } = index_module.L()
|
|
6886
6838
|
? useRewardExchangeListDemo(props)
|
|
6887
6839
|
: useRewardExchangeList(props);
|
|
6888
6840
|
return (index.h(index.Host, { style: { display: "contents" } }, index.h(ShadowViewAddon.RewardExchangeView, { states: states, data: data, callbacks: callbacks, refs: refs })));
|
|
@@ -6934,8 +6886,8 @@ function matchPath(pattern, page) {
|
|
|
6934
6886
|
return regexp.exec(page);
|
|
6935
6887
|
}
|
|
6936
6888
|
function useRouter() {
|
|
6937
|
-
const location = index_module.
|
|
6938
|
-
const host = index_module.
|
|
6889
|
+
const location = index_module.bn();
|
|
6890
|
+
const host = index_module.S();
|
|
6939
6891
|
const [slot, setSlot] = stencilHooks_module.useState(undefined);
|
|
6940
6892
|
const [container, setContainer] = stencilHooks_module.useState(undefined);
|
|
6941
6893
|
const page = location.pathname;
|
|
@@ -7138,11 +7090,11 @@ const ShareButton = class {
|
|
|
7138
7090
|
*/
|
|
7139
7091
|
this.iconslot = "prefix";
|
|
7140
7092
|
/**
|
|
7141
|
-
* @uiName Hide
|
|
7093
|
+
* @uiName Hide the icon
|
|
7142
7094
|
*/
|
|
7143
7095
|
this.hideicon = false;
|
|
7144
7096
|
/**
|
|
7145
|
-
* @uiName Hide
|
|
7097
|
+
* @uiName Hide the text
|
|
7146
7098
|
*/
|
|
7147
7099
|
this.hidetext = false;
|
|
7148
7100
|
stencilHooks_module.h$1(this);
|
|
@@ -7150,7 +7102,7 @@ const ShareButton = class {
|
|
|
7150
7102
|
disconnectedCallback() { }
|
|
7151
7103
|
render() {
|
|
7152
7104
|
const thisProps = utils.getProps(this);
|
|
7153
|
-
const props = index_module.
|
|
7105
|
+
const props = index_module.L()
|
|
7154
7106
|
? useDemoShareButton(thisProps)
|
|
7155
7107
|
: ShadowViewAddon.useShareButton(thisProps);
|
|
7156
7108
|
return (index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), index.h("slot", null)));
|
|
@@ -7184,11 +7136,11 @@ const WIDGET_ENGAGEMENT_EVENT = index_module.dist.gql `
|
|
|
7184
7136
|
`;
|
|
7185
7137
|
function useShareCode(props) {
|
|
7186
7138
|
var _a, _b;
|
|
7187
|
-
const programId = index_module.
|
|
7188
|
-
const user = index_module.
|
|
7189
|
-
const engagementMedium = index_module.
|
|
7190
|
-
const { data } = index_module.
|
|
7191
|
-
const [sendLoadEvent] = index_module
|
|
7139
|
+
const programId = index_module.A();
|
|
7140
|
+
const user = index_module.ae();
|
|
7141
|
+
const engagementMedium = index_module.J();
|
|
7142
|
+
const { data } = index_module.pn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
7143
|
+
const [sendLoadEvent] = index_module.$e(WIDGET_ENGAGEMENT_EVENT);
|
|
7192
7144
|
const shareString = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.referralCode) !== null && _b !== void 0 ? _b :
|
|
7193
7145
|
// Shown during loading
|
|
7194
7146
|
"...";
|
|
@@ -7215,13 +7167,14 @@ function useShareCode(props) {
|
|
|
7215
7167
|
return { ...props, onClick, open, shareString };
|
|
7216
7168
|
}
|
|
7217
7169
|
|
|
7170
|
+
const DEFAULT_TOOLTIP_LIFESPAN = 1000;
|
|
7218
7171
|
const ShareCode = class {
|
|
7219
7172
|
constructor(hostRef) {
|
|
7220
7173
|
index.registerInstance(this, hostRef);
|
|
7221
7174
|
/**
|
|
7222
|
-
* This is shown after someone has successfully copied the
|
|
7175
|
+
* This is shown after someone has successfully copied the cpde to the clipboard.
|
|
7223
7176
|
*
|
|
7224
|
-
* @uiName Tooltip
|
|
7177
|
+
* @uiName Tooltip text
|
|
7225
7178
|
*/
|
|
7226
7179
|
this.tooltiptext = "Copied to Clipboard";
|
|
7227
7180
|
/**
|
|
@@ -7229,13 +7182,13 @@ const ShareCode = class {
|
|
|
7229
7182
|
*
|
|
7230
7183
|
* @uiName Tooltip lifespan
|
|
7231
7184
|
*/
|
|
7232
|
-
this.tooltiplifespan =
|
|
7185
|
+
this.tooltiplifespan = DEFAULT_TOOLTIP_LIFESPAN;
|
|
7233
7186
|
stencilHooks_module.h$1(this);
|
|
7234
7187
|
}
|
|
7235
7188
|
disconnectedCallback() { }
|
|
7236
7189
|
render() {
|
|
7237
7190
|
const thisProps = utils.getProps(this);
|
|
7238
|
-
const props = index_module.
|
|
7191
|
+
const props = index_module.L()
|
|
7239
7192
|
? useDemoShareCode(thisProps)
|
|
7240
7193
|
: useShareCode(thisProps);
|
|
7241
7194
|
return index.h(ShadowViewAddon.ShareLinkView, Object.assign({}, props));
|
|
@@ -7258,27 +7211,28 @@ function useDemoShareCode(props) {
|
|
|
7258
7211
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
7259
7212
|
}
|
|
7260
7213
|
|
|
7214
|
+
const DEFAULT_TOOLTIP_LIFESPAN$1 = 1000;
|
|
7261
7215
|
const ShareLink = class {
|
|
7262
7216
|
constructor(hostRef) {
|
|
7263
7217
|
index.registerInstance(this, hostRef);
|
|
7264
7218
|
/**
|
|
7265
7219
|
* This is shown after someone has successfully copied the link to the clipboard.
|
|
7266
7220
|
*
|
|
7267
|
-
* @uiName Tooltip
|
|
7221
|
+
* @uiName Tooltip text
|
|
7268
7222
|
*/
|
|
7269
7223
|
this.tooltiptext = "Copied to Clipboard";
|
|
7270
7224
|
/**
|
|
7271
7225
|
* The number of milliseconds that the tooltip will appear for
|
|
7272
7226
|
*
|
|
7273
|
-
* @uiName Tooltip
|
|
7227
|
+
* @uiName Tooltip lifespan
|
|
7274
7228
|
*/
|
|
7275
|
-
this.tooltiplifespan =
|
|
7229
|
+
this.tooltiplifespan = DEFAULT_TOOLTIP_LIFESPAN$1;
|
|
7276
7230
|
stencilHooks_module.h$1(this);
|
|
7277
7231
|
}
|
|
7278
7232
|
disconnectedCallback() { }
|
|
7279
7233
|
render() {
|
|
7280
7234
|
const thisProps = utils.getProps(this);
|
|
7281
|
-
const props = index_module.
|
|
7235
|
+
const props = index_module.L()
|
|
7282
7236
|
? useDemoShareLink(thisProps)
|
|
7283
7237
|
: ShadowViewAddon.useShareLink(thisProps);
|
|
7284
7238
|
return index.h(ShadowViewAddon.ShareLinkView, Object.assign({}, props));
|
|
@@ -7306,7 +7260,7 @@ const StatContainer = class {
|
|
|
7306
7260
|
index.registerInstance(this, hostRef);
|
|
7307
7261
|
this.ignored = true;
|
|
7308
7262
|
/**
|
|
7309
|
-
* @uiName Space
|
|
7263
|
+
* @uiName Space between stats
|
|
7310
7264
|
* @uiType string
|
|
7311
7265
|
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
7312
7266
|
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
@@ -7356,10 +7310,10 @@ const SEND_EVENT = index_module.dist.gql `
|
|
|
7356
7310
|
}
|
|
7357
7311
|
`;
|
|
7358
7312
|
function useTaskCard(props) {
|
|
7359
|
-
const user = index_module.
|
|
7360
|
-
const locale = index_module.
|
|
7361
|
-
const [sendUserEvent, { data, loading: loadingEvent }] = index_module
|
|
7362
|
-
const { refresh } = index_module.
|
|
7313
|
+
const user = index_module.ae();
|
|
7314
|
+
const locale = index_module.O();
|
|
7315
|
+
const [sendUserEvent, { data, loading: loadingEvent }] = index_module.$e(SEND_EVENT);
|
|
7316
|
+
const { refresh } = index_module.Ge();
|
|
7363
7317
|
stencilHooks_module.useEffect(() => {
|
|
7364
7318
|
if (data) {
|
|
7365
7319
|
refresh();
|
|
@@ -7395,105 +7349,87 @@ const TaskCard = class {
|
|
|
7395
7349
|
this.ignored = true;
|
|
7396
7350
|
/**
|
|
7397
7351
|
* @uiName Reward Amount
|
|
7398
|
-
* @uiGroup Reward
|
|
7399
7352
|
*/
|
|
7400
7353
|
this.rewardAmount = "0";
|
|
7401
7354
|
/**
|
|
7402
7355
|
* @uiName Reward Unit
|
|
7403
|
-
* @uiGroup Reward
|
|
7404
7356
|
*/
|
|
7405
7357
|
this.rewardUnit = "Points";
|
|
7406
7358
|
/**
|
|
7407
7359
|
* @uiName Title Text
|
|
7408
|
-
* @uiGroup Task
|
|
7409
7360
|
*/
|
|
7410
7361
|
this.cardTitle = "Title Text";
|
|
7411
7362
|
/**
|
|
7412
7363
|
* @uiName Description Text
|
|
7413
|
-
* @uiGroup Task
|
|
7414
7364
|
*/
|
|
7415
7365
|
this.description = "";
|
|
7416
7366
|
/**
|
|
7417
7367
|
* @uiName Goal Repeatable
|
|
7418
|
-
* @uiGroup Goal
|
|
7419
7368
|
*/
|
|
7420
7369
|
this.repeatable = false;
|
|
7421
7370
|
/**
|
|
7422
7371
|
* The number of times a reward can be earned. Use zero for no limit (the default).
|
|
7423
7372
|
*
|
|
7424
7373
|
* @uiName Repeat Amount
|
|
7425
|
-
* @uiGroup Reward
|
|
7426
7374
|
*/
|
|
7427
7375
|
this.finite = 0;
|
|
7428
7376
|
/**
|
|
7429
7377
|
* @uiName Show Progress Bar
|
|
7430
|
-
* @uiGroup Goal
|
|
7431
7378
|
*/
|
|
7432
7379
|
this.showProgressBar = false;
|
|
7433
7380
|
/**
|
|
7434
7381
|
* Sets the goal for users progress to know when a task has been completed. If repeatable is checked, repeatable goals is an increment of this.
|
|
7435
7382
|
*
|
|
7436
7383
|
* @uiName Goal Completion Number
|
|
7437
|
-
* @uiGroup Goal
|
|
7438
7384
|
*/
|
|
7439
7385
|
this.goal = 1;
|
|
7440
7386
|
/**
|
|
7441
7387
|
* @uiName Progress Bar Steps
|
|
7442
|
-
* @uiGroup Goal
|
|
7443
7388
|
*/
|
|
7444
7389
|
this.steps = false;
|
|
7445
7390
|
/**
|
|
7446
7391
|
* @uiName Progress Bar Unit
|
|
7447
|
-
* @uiGroup Goal
|
|
7448
7392
|
*/
|
|
7449
7393
|
this.progressBarUnit = "";
|
|
7450
7394
|
/**
|
|
7451
7395
|
* @uiName Expiry Date Message
|
|
7452
|
-
* @uiGroup Task
|
|
7453
7396
|
*/
|
|
7454
7397
|
this.expiryMessage = "Ends {endDate}";
|
|
7455
7398
|
/**
|
|
7456
7399
|
* Shown to users before the start of the task duration.
|
|
7457
7400
|
*
|
|
7458
7401
|
* @uiName Start Date Message
|
|
7459
|
-
* @uiGroup Task
|
|
7460
7402
|
*/
|
|
7461
7403
|
this.startsOnMessage = "Starts {startDate}";
|
|
7462
7404
|
/**
|
|
7463
7405
|
* Shown to users after the end of the task duration.
|
|
7464
7406
|
*
|
|
7465
7407
|
* @uiName Ended Date Message
|
|
7466
|
-
* @uiGroup Task
|
|
7467
7408
|
*/
|
|
7468
7409
|
this.endedMessage = "Ended {endDate}";
|
|
7469
7410
|
/**
|
|
7470
7411
|
* Displays the amount of times that a user has completed a repeatable task.
|
|
7471
7412
|
*
|
|
7472
7413
|
* @uiName Completed Count Text
|
|
7473
|
-
* @uiGroup Task
|
|
7474
7414
|
*/
|
|
7475
7415
|
this.completedText = "Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}";
|
|
7476
7416
|
/**
|
|
7477
7417
|
* @uiName CTA Button Text
|
|
7478
|
-
* @uiGroup CTA Button
|
|
7479
7418
|
*/
|
|
7480
7419
|
this.buttonText = "Complete Action";
|
|
7481
7420
|
/**
|
|
7482
|
-
* CTA Button Link
|
|
7483
|
-
* @uiName Open In New Tab
|
|
7484
|
-
* @uiGroup CTA Button
|
|
7485
|
-
* @default undefined
|
|
7421
|
+
* @uiName CTA Button Link Open in New Tab
|
|
7486
7422
|
*/
|
|
7487
7423
|
this.openNewTab = false;
|
|
7488
7424
|
stencilHooks_module.h$1(this);
|
|
7489
7425
|
}
|
|
7490
7426
|
disconnectedCallback() { }
|
|
7491
7427
|
render() {
|
|
7492
|
-
const { props } = index_module.
|
|
7428
|
+
const { props } = index_module.L()
|
|
7493
7429
|
? ShadowViewAddon.useDemoBigStat(this)
|
|
7494
7430
|
: ShadowViewAddon.useBigStat({ ...utils.getProps(this), programId: this.programId });
|
|
7495
7431
|
const { value, loading } = props;
|
|
7496
|
-
const { states, callbacks } = index_module.
|
|
7432
|
+
const { states, callbacks } = index_module.L()
|
|
7497
7433
|
? useTaskCardDemo(this)
|
|
7498
7434
|
: useTaskCard(this);
|
|
7499
7435
|
return (index.h(ShadowViewAddon.TaskCardView, { callbacks: callbacks, states: {
|
|
@@ -7667,8 +7603,8 @@ const GET_USER_NAME = index_module.dist.gql `
|
|
|
7667
7603
|
`;
|
|
7668
7604
|
function useUserName(props) {
|
|
7669
7605
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
7670
|
-
const user = index_module.
|
|
7671
|
-
const res = index_module.
|
|
7606
|
+
const user = index_module.ae();
|
|
7607
|
+
const res = index_module.pn(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
7672
7608
|
const loading = res.loading;
|
|
7673
7609
|
const username = ((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.firstName) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.lastName)
|
|
7674
7610
|
? `${(_f = (_e = res.data) === null || _e === void 0 ? void 0 : _e.viewer) === null || _f === void 0 ? void 0 : _f.firstName} ${(_h = (_g = res.data) === null || _g === void 0 ? void 0 : _g.viewer) === null || _h === void 0 ? void 0 : _h.lastName}`
|
|
@@ -7685,19 +7621,18 @@ const UserName = class {
|
|
|
7685
7621
|
index.registerInstance(this, hostRef);
|
|
7686
7622
|
this._ignored = true;
|
|
7687
7623
|
/**
|
|
7688
|
-
* Fallback name for
|
|
7689
|
-
* @uiName Fallback Name
|
|
7624
|
+
* @uiName Fallback name for nameless users
|
|
7690
7625
|
*/
|
|
7691
7626
|
this.fallback = "Anonymous User";
|
|
7692
7627
|
/**
|
|
7693
|
-
* @uiName Loading
|
|
7628
|
+
* @uiName Loading text
|
|
7694
7629
|
*/
|
|
7695
7630
|
this.loadingText = "...";
|
|
7696
7631
|
stencilHooks_module.h$1(this);
|
|
7697
7632
|
}
|
|
7698
7633
|
disconnectedCallback() { }
|
|
7699
7634
|
render() {
|
|
7700
|
-
const props = index_module.
|
|
7635
|
+
const props = index_module.L() ? useUserNameDemo(this) : useUserName(this);
|
|
7701
7636
|
return index.h(UserNameView, Object.assign({}, props));
|
|
7702
7637
|
}
|
|
7703
7638
|
};
|