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