@saasquatch/mint-components 1.6.2-2 → 1.6.2-20
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/{esm/useValidationState-adb2b066.js → cjs/AsYouType-6788393a.js} +2 -10
- package/dist/cjs/{GenericTableView-4921be4b.js → GenericTableView-9271483b.js} +3 -3
- package/dist/cjs/{JSS-97fd087e.js → JSS-8503a151.js} +35 -19
- package/dist/cjs/{ShadowViewAddon-aa14c0c4.js → ShadowViewAddon-312e517f.js} +33 -30
- package/dist/cjs/{global-5e3deef1.js → global-b645d18a.js} +5 -15
- package/dist/cjs/{index.module-ffe1aa35.js → index.module-93c78ac7.js} +6884 -6841
- package/dist/cjs/loader.cjs.js +5 -6
- package/dist/cjs/{luxon-59ca7d19.js → luxon-479fc825.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +5 -6
- package/dist/cjs/raisins-plop-target.cjs.entry.js +2 -5
- package/dist/cjs/{re-render-8fee17a9.js → re-render-afeabe91.js} +5 -5
- package/dist/cjs/{sqm-asset-card-view-3da8cac1.js → sqm-asset-card-view-59c39ed2.js} +1 -1
- package/dist/cjs/sqm-asset-card.cjs.entry.js +7 -8
- package/dist/cjs/sqm-big-stat_35.cjs.entry.js +190 -193
- package/dist/cjs/sqm-empty_5.cjs.entry.js +4 -5
- package/dist/cjs/sqm-form-message.cjs.entry.js +1 -1
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +7 -8
- package/dist/cjs/sqm-header-logo.cjs.entry.js +30 -0
- package/dist/cjs/{sqm-hero-view-46223e34.js → sqm-hero-view-ba78dcaf.js} +3 -3
- package/dist/cjs/sqm-hero.cjs.entry.js +6 -5
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +8 -9
- package/dist/cjs/{sqm-navigation-sidebar-item-view-9820193d.js → sqm-navigation-sidebar-item-view-2eda59bf.js} +3 -3
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +7 -8
- package/dist/cjs/{sqm-navigation-sidebar-view-969adcdc.js → sqm-navigation-sidebar-view-2ffde416.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +3 -4
- package/dist/cjs/sqm-password-field.cjs.entry.js +23 -18
- package/dist/cjs/sqm-popup-container.cjs.entry.js +6 -7
- package/dist/cjs/{sqm-portal-container-view-840db620.js → sqm-portal-container-view-2ddcaa12.js} +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-57fbd19b.js → sqm-portal-email-verification-view-b280d0b0.js} +3 -3
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +27 -29
- package/dist/cjs/{sqm-portal-footer-view-eb757378.js → sqm-portal-footer-view-6b0660cf.js} +3 -3
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +17 -9
- package/dist/cjs/{sqm-portal-forgot-password-view-fed1f563.js → sqm-portal-forgot-password-view-ccaf2bd4.js} +2 -2
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +38 -28
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +10 -8
- package/dist/cjs/{sqm-portal-profile-view-7cb535a8.js → sqm-portal-profile-view-e615e2b2.js} +4 -4
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +26 -37
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +13 -11
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +116 -69
- package/dist/cjs/{sqm-portal-reset-password-view-f8dc0b79.js → sqm-portal-reset-password-view-4d23de69.js} +2 -2
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +46 -53
- package/dist/cjs/{sqm-portal-section-view-854a3e9c.js → sqm-portal-section-view-1e5bbcb1.js} +1 -1
- package/dist/cjs/{sqm-portal-verify-email-view-cc59877c.js → sqm-portal-verify-email-view-96adafc0.js} +2 -2
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +37 -56
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +15 -16
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +3 -4
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -5
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +26 -21
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +117 -115
- package/dist/cjs/sqm-tab.cjs.entry.js +7 -0
- package/dist/cjs/sqm-tabs.cjs.entry.js +8 -7
- package/dist/cjs/{sqm-text-span-view-2c7d94b5.js → sqm-text-span-view-b318af73.js} +1 -1
- package/dist/cjs/sqm-text-span.cjs.entry.js +3 -4
- package/dist/cjs/{stencil-hooks.module-87a1f4f7.js → stencil-hooks.module-6fe43579.js} +1 -0
- package/dist/cjs/{use-callback-e754042f.js → use-callback-5d15897d.js} +1 -1
- package/dist/cjs/useChildElements-c0cc8f5d.js +32 -0
- package/dist/cjs/{useReferralTable-7e18f12e.js → useReferralTable-db1b33db.js} +10 -10
- package/dist/cjs/useRegistrationFormState-d0e43ca9.js +23 -0
- package/dist/collection/collection-manifest.json +2 -4
- package/dist/collection/components/{sqm-rewards-table/columns/sqm-rewards-table-plop-target.js → raisins-plop-target/raisins-plop-target.js} +1 -6
- package/dist/collection/components/sqm-asset-card/AssetCard.stories.js +2 -2
- package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +1 -1
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +1 -1
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +11 -5
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +1 -0
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +8 -1
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile.js +1 -1
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +1 -0
- package/dist/collection/components/sqm-graphql-client-provider/sqm-graphql-client-provider.js +1 -0
- package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +102 -0
- package/dist/collection/components/sqm-hero/sqm-hero.js +9 -2
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +2 -2
- package/dist/collection/components/sqm-image/sqm-image.js +1 -1
- package/dist/collection/components/sqm-input-field/sqm-input-field.js +7 -1
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +9 -2
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +7 -4
- package/dist/collection/components/sqm-name-fields/useNameFields.js +3 -0
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +2 -3
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +7 -1
- package/dist/collection/components/sqm-password-field/PasswordField.stories.js +3 -0
- package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +7 -4
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +15 -11
- package/dist/collection/components/sqm-password-field/usePasswordField.js +6 -3
- package/dist/collection/components/sqm-popup-container/sqm-popup-container.js +3 -1
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +19 -13
- package/dist/collection/components/sqm-portal-change-password/usePortalChangePassword.js +7 -10
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +2 -2
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +15 -7
- package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +14 -17
- package/dist/collection/components/sqm-portal-footer/PortalFooter.stories.js +2 -2
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +1 -1
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +43 -7
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +68 -9
- package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +16 -16
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +0 -4
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +2 -1
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +58 -54
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +13 -16
- package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +10 -4
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +26 -36
- package/dist/collection/components/sqm-portal-profile/usePortalProfile.js +1 -1
- package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +10 -9
- package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +1 -1
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +46 -42
- package/dist/collection/components/sqm-portal-register/usePortalRegister.js +22 -20
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +17 -10
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +67 -41
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +74 -31
- package/dist/collection/components/sqm-portal-registration-form/useRegistrationFormState.js +8 -0
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +32 -26
- package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +23 -29
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +17 -9
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +21 -41
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +1 -1
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +2 -2
- package/dist/collection/components/sqm-program-menu/sqm-program-menu.js +2 -1
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +8 -8
- package/dist/collection/components/sqm-referral-table/useReferralTable.js +1 -1
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +15 -9
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -1
- package/dist/collection/components/sqm-route/sqm-route.js +2 -1
- package/dist/collection/components/sqm-router/sqm-router.js +2 -1
- package/dist/collection/components/sqm-scroll/sqm-scroll.js +1 -1
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -1
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +1 -1
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +1 -1
- package/dist/collection/components/sqm-tab/sqm-tab.js +7 -0
- package/dist/collection/components/sqm-table-cell/sqm-table-cell.js +14 -2
- package/dist/collection/components/sqm-table-row/sqm-table-row.js +11 -1
- package/dist/collection/components/sqm-tabs/sqm-tabs.js +2 -3
- package/dist/collection/components/sqm-tabs/useTabs.js +3 -1
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +3 -3
- package/dist/collection/components/sqm-text/sqm-text.js +0 -7
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +1 -1
- package/dist/collection/components/sqm-user-name/sqm-user-name.js +8 -8
- package/dist/collection/global/styles.js +2 -12
- package/dist/collection/global/styles.ts +2 -12
- package/dist/collection/tables/GenericTableView.js +2 -2
- package/dist/collection/tables/useChildElements.js +13 -4
- package/dist/{cjs/useValidationState-63f00763.js → esm/AsYouType-46f67d0d.js} +1 -15
- package/dist/esm/{GenericTableView-59c5d47c.js → GenericTableView-ce26115f.js} +3 -3
- package/dist/esm/{JSS-f00f9536.js → JSS-67b5cff8.js} +17 -1
- package/dist/esm/{ShadowViewAddon-3626a92b.js → ShadowViewAddon-b7ca4ee5.js} +33 -30
- package/dist/esm/{global-0842e0e4.js → global-c2d5e2fa.js} +5 -15
- package/dist/esm/{index.module-96470dcf.js → index.module-25496635.js} +6865 -6822
- package/dist/esm/loader.js +5 -6
- package/dist/esm/{luxon-38ca2169.js → luxon-5a398612.js} +1 -1
- package/dist/esm/mint-components.js +5 -6
- package/dist/esm/raisins-plop-target.entry.js +6 -9
- package/dist/esm/{re-render-f444e556.js → re-render-8ece93cd.js} +5 -5
- package/dist/esm/{sqm-asset-card-view-08e68656.js → sqm-asset-card-view-b0f8ef8e.js} +1 -1
- package/dist/esm/sqm-asset-card.entry.js +7 -8
- package/dist/esm/sqm-big-stat_35.entry.js +184 -187
- package/dist/esm/sqm-empty_5.entry.js +4 -5
- package/dist/esm/sqm-form-message.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +7 -8
- package/dist/esm/sqm-header-logo.entry.js +26 -0
- package/dist/esm/{sqm-hero-view-93fac447.js → sqm-hero-view-b8ce1900.js} +3 -3
- package/dist/esm/sqm-hero.entry.js +6 -5
- package/dist/esm/sqm-leaderboard-rank.entry.js +8 -9
- package/dist/esm/{sqm-navigation-sidebar-item-view-fb10e0c2.js → sqm-navigation-sidebar-item-view-24d5f092.js} +3 -3
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +7 -8
- package/dist/esm/{sqm-navigation-sidebar-view-06d444ca.js → sqm-navigation-sidebar-view-aa1313e7.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar.entry.js +3 -4
- package/dist/esm/sqm-password-field.entry.js +23 -18
- package/dist/esm/sqm-popup-container.entry.js +6 -7
- package/dist/esm/{sqm-portal-container-view-ca454627.js → sqm-portal-container-view-228f2b65.js} +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-f6daf315.js → sqm-portal-email-verification-view-4fa01d0a.js} +3 -3
- package/dist/esm/sqm-portal-email-verification.entry.js +27 -29
- package/dist/esm/{sqm-portal-footer-view-42db3277.js → sqm-portal-footer-view-b68f250d.js} +3 -3
- package/dist/esm/sqm-portal-footer.entry.js +17 -9
- package/dist/esm/{sqm-portal-forgot-password-view-86d13eef.js → sqm-portal-forgot-password-view-29c2e39b.js} +2 -2
- package/dist/esm/sqm-portal-forgot-password.entry.js +38 -28
- package/dist/esm/sqm-portal-logout.entry.js +10 -8
- package/dist/esm/{sqm-portal-profile-view-dd2774b2.js → sqm-portal-profile-view-ec58906b.js} +4 -4
- package/dist/esm/sqm-portal-profile.entry.js +26 -37
- package/dist/esm/sqm-portal-protected-route.entry.js +13 -11
- package/dist/esm/sqm-portal-registration-form.entry.js +114 -67
- package/dist/esm/{sqm-portal-reset-password-view-213b3af6.js → sqm-portal-reset-password-view-06f6ffac.js} +2 -2
- package/dist/esm/sqm-portal-reset-password.entry.js +46 -53
- package/dist/esm/{sqm-portal-section-view-6c249c74.js → sqm-portal-section-view-a991e019.js} +1 -1
- package/dist/esm/{sqm-portal-verify-email-view-c32dfd7e.js → sqm-portal-verify-email-view-833644ac.js} +2 -2
- package/dist/esm/sqm-portal-verify-email.entry.js +37 -56
- package/dist/esm/sqm-referral-table_11.entry.js +15 -16
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +3 -4
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -5
- package/dist/esm/sqm-rewards-table_9.entry.js +26 -21
- package/dist/esm/sqm-stencilbook.entry.js +117 -115
- package/dist/esm/sqm-tab.entry.js +7 -0
- package/dist/esm/sqm-tabs.entry.js +8 -7
- package/dist/esm/{sqm-text-span-view-0ba1484d.js → sqm-text-span-view-8b194920.js} +1 -1
- package/dist/esm/sqm-text-span.entry.js +3 -4
- package/dist/esm/{stencil-hooks.module-66fea7dc.js → stencil-hooks.module-eefa3570.js} +1 -1
- package/dist/esm/{use-callback-69ec5c5c.js → use-callback-684c8bb7.js} +1 -1
- package/dist/esm/useChildElements-d86f03c6.js +30 -0
- package/dist/esm/{useReferralTable-0a8ee3b7.js → useReferralTable-7aeb954d.js} +10 -10
- package/dist/esm/useRegistrationFormState-e94eec81.js +18 -0
- package/dist/esm-es5/AsYouType-46f67d0d.js +1 -0
- package/dist/esm-es5/{GenericTableView-59c5d47c.js → GenericTableView-ce26115f.js} +1 -1
- package/dist/esm-es5/{JSS-f00f9536.js → JSS-67b5cff8.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-b7ca4ee5.js +1 -0
- package/dist/esm-es5/{global-0842e0e4.js → global-c2d5e2fa.js} +2 -2
- package/dist/esm-es5/index.module-25496635.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-38ca2169.js → luxon-5a398612.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
- package/dist/esm-es5/{re-render-f444e556.js → re-render-8ece93cd.js} +1 -1
- package/dist/esm-es5/{sqm-asset-card-view-08e68656.js → sqm-asset-card-view-b0f8ef8e.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-header-logo.entry.js +1 -0
- package/dist/esm-es5/{sqm-hero-view-93fac447.js → sqm-hero-view-b8ce1900.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-fb10e0c2.js → sqm-navigation-sidebar-item-view-24d5f092.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-view-06d444ca.js → sqm-navigation-sidebar-view-aa1313e7.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-container-view-ca454627.js → sqm-portal-container-view-228f2b65.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-f6daf315.js → sqm-portal-email-verification-view-4fa01d0a.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-42db3277.js → sqm-portal-footer-view-b68f250d.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-86d13eef.js → sqm-portal-forgot-password-view-29c2e39b.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-dd2774b2.js → sqm-portal-profile-view-ec58906b.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-213b3af6.js → sqm-portal-reset-password-view-06f6ffac.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-section-view-6c249c74.js → sqm-portal-section-view-a991e019.js} +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-c32dfd7e.js → sqm-portal-verify-email-view-833644ac.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-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/{sqm-text-span-view-0ba1484d.js → sqm-text-span-view-8b194920.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-66fea7dc.js → stencil-hooks.module-eefa3570.js} +1 -1
- package/dist/esm-es5/use-callback-684c8bb7.js +1 -0
- package/dist/esm-es5/useChildElements-d86f03c6.js +1 -0
- package/dist/esm-es5/useReferralTable-7aeb954d.js +1 -0
- package/dist/esm-es5/useRegistrationFormState-e94eec81.js +1 -0
- package/dist/mint-components/global/styles.ts +2 -12
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-01016d01.entry.js +1 -0
- package/dist/mint-components/p-02cc2ae0.entry.js +1 -0
- package/dist/mint-components/{p-ea1b0e1c.js → p-0425104d.js} +2 -2
- package/dist/mint-components/{p-ec689579.js → p-043501b1.js} +1 -1
- package/dist/mint-components/p-0c98df9a.system.entry.js +1 -0
- package/dist/mint-components/{p-3abbc5b3.system.js → p-0e6f1340.system.js} +1 -1
- package/dist/mint-components/{p-b7e6ce3c.system.js → p-0f20108e.system.js} +1 -1
- package/dist/mint-components/p-0f3c6e11.entry.js +1 -0
- package/dist/mint-components/p-11a4a003.system.js +1 -0
- package/dist/mint-components/p-121cdc60.js +1 -0
- package/dist/mint-components/{p-50cb9888.js → p-13cfd4bd.js} +1 -1
- package/dist/mint-components/p-175ef60c.js +1 -0
- package/dist/mint-components/{p-e907c45c.system.js → p-177f1699.system.js} +1 -1
- package/dist/mint-components/{p-958d913e.js → p-19deed13.js} +1 -1
- package/dist/mint-components/p-19f572c9.entry.js +1 -0
- package/dist/mint-components/p-1a673057.system.js +8 -0
- package/dist/mint-components/p-1cb7125b.entry.js +1 -0
- package/dist/mint-components/{p-42133e0b.entry.js → p-1f6d8c42.entry.js} +12 -12
- package/dist/mint-components/{p-f9056e14.system.js → p-20268b64.system.js} +1 -1
- package/dist/mint-components/p-233e784a.js +1 -0
- package/dist/mint-components/p-23ce9541.system.entry.js +1 -0
- package/dist/mint-components/{p-210cd41b.js → p-24d6c3fd.js} +1 -1
- package/dist/mint-components/{p-b0668789.system.js → p-27da3d2f.system.js} +1 -1
- package/dist/mint-components/{p-4778fb68.js → p-2895613d.js} +1 -1
- package/dist/mint-components/p-28b0cd34.entry.js +1 -0
- package/dist/mint-components/p-29c42c90.system.entry.js +1 -0
- package/dist/mint-components/p-3245da29.entry.js +9 -0
- package/dist/mint-components/{p-19266514.js → p-33fe169e.js} +1 -1
- package/dist/mint-components/p-3435cd60.system.entry.js +1 -0
- package/dist/mint-components/p-369d00f3.system.entry.js +1 -0
- package/dist/mint-components/{p-5d80f75a.entry.js → p-3aa067f0.entry.js} +2 -2
- package/dist/mint-components/{p-433f243c.system.entry.js → p-3c6f3be9.system.entry.js} +1 -1
- package/dist/mint-components/p-3cd4d8bb.system.entry.js +1 -0
- package/dist/mint-components/p-3f15986b.entry.js +1 -0
- package/dist/mint-components/p-40a8ea40.entry.js +1 -0
- package/dist/mint-components/p-41962e08.js +1 -0
- package/dist/mint-components/p-4352909d.js +1 -0
- package/dist/mint-components/p-4560faa8.entry.js +1 -0
- package/dist/mint-components/{p-2cac212f.system.js → p-486f5810.system.js} +1 -1
- package/dist/mint-components/p-49c7d8f5.system.entry.js +1 -0
- package/dist/mint-components/p-4a5d61fe.entry.js +99 -0
- package/dist/mint-components/p-4b83d7ea.js +1 -0
- package/dist/mint-components/p-4cc59fed.system.entry.js +1 -0
- package/dist/mint-components/{p-b1441d8e.system.entry.js → p-4d4e5ac4.system.entry.js} +1 -1
- package/dist/mint-components/p-528ce342.system.entry.js +1 -0
- package/dist/mint-components/{p-78c7b4b7.js → p-538904bd.js} +1 -1
- package/dist/mint-components/p-54db9721.js +1 -0
- package/dist/mint-components/p-58c173ff.entry.js +1 -0
- package/dist/mint-components/p-5b51f97d.system.entry.js +1 -0
- package/dist/mint-components/{p-a53d815e.system.js → p-5d4d81bf.system.js} +1 -1
- package/dist/mint-components/p-5d815633.system.entry.js +1 -0
- package/dist/mint-components/p-5d86baae.entry.js +13 -0
- package/dist/mint-components/p-5effdc5e.system.entry.js +1 -0
- package/dist/mint-components/p-61b954e7.entry.js +1 -0
- package/dist/mint-components/p-674c9b4b.system.entry.js +1 -0
- package/dist/mint-components/{p-9bac73dc.system.js → p-684aadb5.system.js} +1 -1
- package/dist/mint-components/p-6a529e0e.entry.js +1 -0
- package/dist/mint-components/{p-986f10d2.system.js → p-6b8b7dc0.system.js} +1 -1
- package/dist/mint-components/{p-b22b94ac.js → p-6dd27a5e.js} +1 -1
- package/dist/mint-components/p-76f151b2.entry.js +1 -0
- package/dist/mint-components/p-783b8440.entry.js +1 -0
- package/dist/mint-components/p-7850a5e5.system.js +1 -0
- package/dist/mint-components/{p-1c24a18c.js → p-78dcf8ff.js} +1 -1
- package/dist/mint-components/p-7aa067b0.system.entry.js +1 -0
- package/dist/mint-components/p-7ab63827.entry.js +1 -0
- package/dist/mint-components/{p-092d030a.system.js → p-7e6c6d95.system.js} +1 -1
- package/dist/mint-components/{p-d7d007fb.system.entry.js → p-88a2e66e.system.entry.js} +1 -1
- package/dist/mint-components/p-89c64db7.entry.js +1 -0
- package/dist/mint-components/{p-dd627dd0.entry.js → p-8a2c78e0.entry.js} +1 -1
- package/dist/mint-components/{p-bd32d6f4.js → p-914511f3.js} +2 -2
- package/dist/mint-components/p-92110eef.entry.js +1 -0
- package/dist/mint-components/{p-1b962e50.system.js → p-94578d79.system.js} +1 -1
- package/dist/mint-components/p-94e85aa5.system.entry.js +1 -0
- package/dist/mint-components/p-95b461dd.system.entry.js +1 -0
- package/dist/mint-components/p-976604c2.entry.js +33 -0
- package/dist/mint-components/p-99397ef5.system.js +1 -0
- package/dist/mint-components/p-9a87d5ae.system.entry.js +1 -0
- package/dist/mint-components/p-9d362d44.system.js +1 -0
- package/dist/mint-components/p-9db0c9fc.system.entry.js +1 -0
- package/dist/mint-components/p-9fa6c616.entry.js +1 -0
- package/dist/mint-components/{p-95f70cb1.js → p-a1434ef0.js} +1 -1
- package/dist/mint-components/{p-275cf42f.js → p-a4505a80.js} +1 -1
- package/dist/mint-components/{p-3c8becd3.js → p-a46c0d32.js} +1 -1
- package/dist/mint-components/p-aa893634.entry.js +1 -0
- package/dist/mint-components/p-aefc2633.system.entry.js +1 -0
- package/dist/mint-components/p-b01e28dd.system.js +1 -0
- package/dist/mint-components/p-b17ec97c.system.js +1 -0
- package/dist/mint-components/{p-6b5fbbdb.js → p-b21814ac.js} +1 -1
- package/dist/mint-components/p-b33e0421.system.js +1 -0
- package/dist/mint-components/p-bd3c2e67.system.js +1 -0
- package/dist/mint-components/{p-e2bf9132.system.js → p-bef0a1f4.system.js} +1 -1
- package/dist/mint-components/p-bf17dc65.system.js +1 -0
- package/dist/mint-components/p-c869970e.system.entry.js +1 -0
- package/dist/mint-components/p-cdec6312.system.entry.js +1 -0
- package/dist/mint-components/p-cef45012.js +1 -0
- package/dist/mint-components/p-d1341773.entry.js +1 -0
- package/dist/mint-components/{p-5a7f7362.system.js → p-d20361b8.system.js} +1 -1
- package/dist/mint-components/{p-8a0cf4be.system.js → p-d4ee07e6.system.js} +2 -2
- package/dist/mint-components/p-dbfb865e.js +1 -0
- package/dist/mint-components/p-de745531.system.entry.js +1 -0
- package/dist/mint-components/p-e0de4ac3.entry.js +1 -0
- package/dist/mint-components/p-e4d76dfb.system.entry.js +1 -0
- package/dist/mint-components/p-e5380001.system.entry.js +1 -0
- package/dist/mint-components/{p-192617e7.system.js → p-e58c257b.system.js} +1 -1
- package/dist/mint-components/p-e58df0ff.system.entry.js +1 -0
- package/dist/mint-components/p-e67fc6a5.entry.js +1 -0
- package/dist/mint-components/{p-1644c8e4.js → p-e733843b.js} +1 -1
- package/dist/mint-components/p-eaa9a926.entry.js +1 -0
- package/dist/mint-components/p-eb5835b3.js +268 -0
- package/dist/mint-components/{p-19b0e2b5.system.js → p-ef18a3bd.system.js} +1 -1
- package/dist/mint-components/p-f75f56f6.system.entry.js +1 -0
- package/dist/mint-components/{p-b02064c4.system.js → p-fdcd2b8f.system.js} +2 -2
- package/dist/mint-components/p-fe74b75b.system.entry.js +1 -0
- package/dist/types/components/raisins-plop-target/raisins-plop-target.d.ts +9 -0
- package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +1 -1
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +6 -2
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +1 -0
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +6 -1
- package/dist/types/components/sqm-edit-profile/sqm-edit-profile.d.ts +1 -1
- package/dist/types/components/sqm-form-message/sqm-form-message.d.ts +1 -0
- package/dist/types/components/sqm-graphql-client-provider/sqm-graphql-client-provider.d.ts +1 -0
- package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +25 -0
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +3 -2
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +2 -2
- package/dist/types/components/sqm-image/sqm-image.d.ts +1 -1
- package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +5 -1
- package/dist/types/components/sqm-name-fields/sqm-name-fields-view.d.ts +2 -0
- package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +4 -1
- package/dist/types/components/sqm-name-fields/useNameFields.d.ts +2 -0
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +2 -3
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +5 -1
- package/dist/types/components/sqm-password-field/sqm-password-field-view.d.ts +2 -0
- package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +9 -4
- package/dist/types/components/sqm-popup-container/sqm-popup-container.d.ts +3 -1
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +3 -2
- package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +2 -2
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +5 -3
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer-view.d.ts +1 -1
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +12 -3
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +16 -5
- package/dist/types/components/sqm-portal-forgot-password/usePortalForgotPassword.d.ts +2 -0
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +2 -1
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +18 -26
- package/dist/types/components/sqm-portal-logout/sqm-portal-logout.d.ts +5 -2
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +6 -16
- package/dist/types/components/sqm-portal-profile/usePortalProfile.d.ts +1 -1
- package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +7 -3
- package/dist/types/components/sqm-portal-register/sqm-portal-register-view.d.ts +1 -1
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +18 -18
- package/dist/types/components/sqm-portal-register/usePortalRegister.d.ts +1 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +2 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +25 -18
- package/dist/types/components/sqm-portal-registration-form/usePortalRegistrationForm.d.ts +3 -0
- package/dist/types/components/sqm-portal-registration-form/useRegistrationFormState.d.ts +17 -0
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +13 -13
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +7 -5
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +1 -1
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +2 -2
- package/dist/types/components/sqm-program-menu/sqm-program-menu.d.ts +2 -1
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +3 -3
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +3 -3
- package/dist/types/components/sqm-route/sqm-route.d.ts +2 -1
- package/dist/types/components/sqm-router/sqm-router.d.ts +2 -1
- package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +1 -1
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +1 -1
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +1 -1
- package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +1 -1
- package/dist/types/components/sqm-tab/sqm-tab.d.ts +2 -0
- package/dist/types/components/sqm-table-cell/sqm-table-cell.d.ts +6 -0
- package/dist/types/components/sqm-table-row/sqm-table-row.d.ts +7 -0
- package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +2 -3
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +2 -2
- package/dist/types/components/sqm-text/sqm-text.d.ts +0 -7
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +1 -1
- package/dist/types/components/sqm-user-name/sqm-user-name.d.ts +4 -4
- package/dist/types/components.d.ts +341 -761
- package/dist/types/global/styles.d.ts +1 -1
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +5 -4
- package/dist/cjs/extends-08099afd.js +0 -21
- package/dist/cjs/sqm-qa-referral-card.cjs.entry.js +0 -89
- package/dist/cjs/sqm-qa-tabs.cjs.entry.js +0 -100
- package/dist/cjs/sqm-qa.cjs.entry.js +0 -112
- package/dist/cjs/useChildElements-a7a7b921.js +0 -23
- package/dist/collection/assets/PoweredBySaaSquatch.png +0 -0
- package/dist/collection/assets/saasquatch-logo-wide.jpeg +0 -0
- package/dist/collection/assets/saasquatch-logo.png +0 -0
- package/dist/collection/components/sqm-qa/sqm-qa.js +0 -1038
- package/dist/collection/components/sqm-qa-referral-card/ReferralCard.stories.js +0 -79
- package/dist/collection/components/sqm-qa-referral-card/sqm-referral-card-view.js +0 -56
- package/dist/collection/components/sqm-qa-referral-card/sqm-referral-card.js +0 -70
- package/dist/collection/components/sqm-qa-tabs/Tabs.stories.js +0 -491
- package/dist/collection/components/sqm-qa-tabs/sqm-tabs-view.js +0 -31
- package/dist/collection/components/sqm-qa-tabs/sqm-tabs.js +0 -59
- package/dist/collection/components/sqm-qa-tabs/useTabs.js +0 -46
- package/dist/esm/extends-c31f1eff.js +0 -19
- package/dist/esm/sqm-qa-referral-card.entry.js +0 -85
- package/dist/esm/sqm-qa-tabs.entry.js +0 -96
- package/dist/esm/sqm-qa.entry.js +0 -108
- package/dist/esm/useChildElements-756c6a81.js +0 -21
- package/dist/esm-es5/ShadowViewAddon-3626a92b.js +0 -1
- package/dist/esm-es5/extends-c31f1eff.js +0 -1
- package/dist/esm-es5/index.module-96470dcf.js +0 -1
- package/dist/esm-es5/sqm-qa-referral-card.entry.js +0 -1
- package/dist/esm-es5/sqm-qa-tabs.entry.js +0 -1
- package/dist/esm-es5/sqm-qa.entry.js +0 -1
- package/dist/esm-es5/use-callback-69ec5c5c.js +0 -1
- package/dist/esm-es5/useChildElements-756c6a81.js +0 -1
- package/dist/esm-es5/useReferralTable-0a8ee3b7.js +0 -1
- package/dist/esm-es5/useValidationState-adb2b066.js +0 -1
- package/dist/mint-components/p-0777ac5b.entry.js +0 -9
- package/dist/mint-components/p-09551f97.entry.js +0 -1
- package/dist/mint-components/p-0b7ec490.entry.js +0 -1
- package/dist/mint-components/p-0b838d31.entry.js +0 -1
- package/dist/mint-components/p-14e28fcc.entry.js +0 -1
- package/dist/mint-components/p-16beb451.system.entry.js +0 -1
- package/dist/mint-components/p-19dfb893.system.entry.js +0 -1
- package/dist/mint-components/p-1bd5cd35.system.entry.js +0 -1
- package/dist/mint-components/p-1c17892a.system.js +0 -1
- package/dist/mint-components/p-1ff7ee8a.entry.js +0 -1
- package/dist/mint-components/p-22b45a04.system.entry.js +0 -1
- package/dist/mint-components/p-23485cfe.system.js +0 -1
- package/dist/mint-components/p-27a8ee57.system.entry.js +0 -1
- package/dist/mint-components/p-27aac88b.system.entry.js +0 -1
- package/dist/mint-components/p-27ed7b95.js +0 -1
- package/dist/mint-components/p-2809a9c7.system.entry.js +0 -1
- package/dist/mint-components/p-29f82c6d.system.entry.js +0 -1
- package/dist/mint-components/p-2b2ed97b.entry.js +0 -1
- package/dist/mint-components/p-2c4da197.entry.js +0 -1
- package/dist/mint-components/p-2ec62a9b.system.entry.js +0 -1
- package/dist/mint-components/p-3364ee29.system.entry.js +0 -1
- package/dist/mint-components/p-33a8d572.entry.js +0 -33
- package/dist/mint-components/p-380c3d58.system.entry.js +0 -1
- package/dist/mint-components/p-3c7b3831.entry.js +0 -1
- package/dist/mint-components/p-42994d5d.entry.js +0 -99
- package/dist/mint-components/p-42d3eb3e.system.js +0 -1
- package/dist/mint-components/p-46ed891a.entry.js +0 -1
- package/dist/mint-components/p-49e61dc4.entry.js +0 -1
- package/dist/mint-components/p-4a0ef2d3.entry.js +0 -1
- package/dist/mint-components/p-4c2cec5c.system.entry.js +0 -1
- package/dist/mint-components/p-4c93df52.entry.js +0 -1
- package/dist/mint-components/p-505d8965.system.entry.js +0 -1
- package/dist/mint-components/p-51dd860c.system.entry.js +0 -1
- package/dist/mint-components/p-5660e578.system.js +0 -1
- package/dist/mint-components/p-577299fe.system.entry.js +0 -1
- package/dist/mint-components/p-57b7a680.entry.js +0 -1
- package/dist/mint-components/p-5928afc0.js +0 -1
- package/dist/mint-components/p-5da081c3.entry.js +0 -1
- package/dist/mint-components/p-5e6890eb.system.entry.js +0 -1
- package/dist/mint-components/p-61eeea9e.entry.js +0 -1
- package/dist/mint-components/p-7dff3e29.entry.js +0 -1
- package/dist/mint-components/p-80981da1.entry.js +0 -1
- package/dist/mint-components/p-81f34787.js +0 -1
- package/dist/mint-components/p-8390e33e.system.entry.js +0 -1
- package/dist/mint-components/p-89d8133d.entry.js +0 -1
- package/dist/mint-components/p-8c1348dc.system.js +0 -1
- package/dist/mint-components/p-8dfe5873.system.entry.js +0 -1
- package/dist/mint-components/p-90bd03bb.entry.js +0 -1
- package/dist/mint-components/p-99830904.system.entry.js +0 -1
- package/dist/mint-components/p-9bb39058.system.entry.js +0 -1
- package/dist/mint-components/p-9ef39196.system.entry.js +0 -1
- package/dist/mint-components/p-a3f87461.entry.js +0 -1
- package/dist/mint-components/p-a4fa8ba2.system.js +0 -1
- package/dist/mint-components/p-a6291305.system.entry.js +0 -1
- package/dist/mint-components/p-a9d7eb10.js +0 -1
- package/dist/mint-components/p-b17b4a61.system.entry.js +0 -1
- package/dist/mint-components/p-b5bfb818.system.js +0 -1
- package/dist/mint-components/p-bf298e68.js +0 -1
- package/dist/mint-components/p-c2aecbd1.js +0 -268
- package/dist/mint-components/p-c2b5997d.entry.js +0 -1
- package/dist/mint-components/p-c88cb982.entry.js +0 -1
- package/dist/mint-components/p-c8e8aab7.js +0 -1
- package/dist/mint-components/p-c9977e50.system.entry.js +0 -1
- package/dist/mint-components/p-ca2819e8.system.js +0 -1
- package/dist/mint-components/p-cc6f7cb5.entry.js +0 -1
- package/dist/mint-components/p-cdabe7a8.js +0 -1
- package/dist/mint-components/p-d1aef95c.entry.js +0 -1
- package/dist/mint-components/p-d1e6d105.system.entry.js +0 -1
- package/dist/mint-components/p-d5d32d0d.system.js +0 -8
- package/dist/mint-components/p-d5e12393.system.entry.js +0 -1
- package/dist/mint-components/p-d8876d3f.js +0 -1
- package/dist/mint-components/p-daf8de5c.entry.js +0 -1
- package/dist/mint-components/p-dec7a657.entry.js +0 -1
- package/dist/mint-components/p-e0140005.system.entry.js +0 -1
- package/dist/mint-components/p-e6eedd9e.js +0 -1
- package/dist/mint-components/p-e8acccb5.system.js +0 -1
- package/dist/mint-components/p-f2bd9120.system.entry.js +0 -1
- package/dist/mint-components/p-ffe8c6ce.system.entry.js +0 -1
- package/dist/types/components/sqm-qa/sqm-qa.d.ts +0 -250
- package/dist/types/components/sqm-qa-referral-card/ReferralCard.stories.d.ts +0 -14
- package/dist/types/components/sqm-qa-referral-card/sqm-referral-card-view.d.ts +0 -9
- package/dist/types/components/sqm-qa-referral-card/sqm-referral-card.d.ts +0 -20
- package/dist/types/components/sqm-qa-tabs/Tabs.stories.d.ts +0 -15
- package/dist/types/components/sqm-qa-tabs/sqm-tabs-view.d.ts +0 -9
- package/dist/types/components/sqm-qa-tabs/sqm-tabs.d.ts +0 -23
- package/dist/types/components/sqm-qa-tabs/useTabs.d.ts +0 -9
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-plop-target.d.ts +0 -11
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -1
- package/dist/types/stories/features.d.ts +0 -4
- package/dist/types/stories/templates.d.ts +0 -4
- package/docs/grapesjs.js +0 -54
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
|
-
import { m as h,
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { u as useCallback } from './use-callback-
|
|
5
|
-
import {
|
|
6
|
-
import './extends-c31f1eff.js';
|
|
2
|
+
import { m as h, f as useEffect, i as useState, o as d, j as useRef, b as browser, u as useReducer } from './stencil-hooks.module-eefa3570.js';
|
|
3
|
+
import { i as intl } from './global-c2d5e2fa.js';
|
|
4
|
+
import { u as useCallback } from './use-callback-684c8bb7.js';
|
|
5
|
+
import { i as isDemo, R, d as dist, N, a as dn, P as Pe, O, x, o as on, f as fn, k as Ve, M as Me, l as je, p as Le, c as cn, U } from './index.module-25496635.js';
|
|
7
6
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
8
7
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
9
8
|
import './mixins-f60a614c.js';
|
|
10
|
-
import { c as createStyleSheet } from './JSS-
|
|
11
|
-
import { a as useRequestRerender } from './re-render-
|
|
12
|
-
import { u as useChildElements } from './useChildElements-
|
|
13
|
-
import './luxon-
|
|
9
|
+
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
10
|
+
import { a as useRequestRerender } from './re-render-8ece93cd.js';
|
|
11
|
+
import { u as useChildElements } from './useChildElements-d86f03c6.js';
|
|
12
|
+
import './luxon-5a398612.js';
|
|
14
13
|
import { g as getProps, a as getMissingProps, s as sanitizeUrlPath } from './utils-334c1e34.js';
|
|
15
|
-
import './sqm-text-span-view-
|
|
16
|
-
import './sqm-portal-container-view-
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import './
|
|
14
|
+
import './sqm-text-span-view-8b194920.js';
|
|
15
|
+
import './sqm-portal-container-view-228f2b65.js';
|
|
16
|
+
import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
17
|
+
import { F as FORM_VALIDATION_CONTEXT, R as REGISTRATION_FORM_STATE_CONTEXT, a as useValidationState } from './useRegistrationFormState-e94eec81.js';
|
|
18
|
+
import { c as useDemoBigStat, K as useBigStat, B as BigStatView, H as autoColorScaleCss, G as CardFeedView, C as CheckboxFieldView, D as DropdownFieldView, E as EditProfileView, I as InputFieldView, M as withShadowView, L as LeaderboardView, N as NameFieldsView, e as PortalChangePasswordView, P as PortalFrameView, f as PortalLoginView, g as PortalRegisterView, R as ReferralIframeView, O as demoRewardExchange, i as RewardExchangeView, Q as pathToRegexp, b as useShareButton, S as ShareButtonView, a as ShareLinkView, u as useShareLink, d as StatContainerView, T as TaskCardView } from './ShadowViewAddon-b7ca4ee5.js';
|
|
19
|
+
import './sqm-portal-section-view-a991e019.js';
|
|
20
20
|
|
|
21
21
|
const BigStat = class {
|
|
22
22
|
constructor(hostRef) {
|
|
@@ -34,8 +34,8 @@ const BigStat = class {
|
|
|
34
34
|
disconnectedCallback() { }
|
|
35
35
|
render() {
|
|
36
36
|
var _a;
|
|
37
|
-
const { props, label } =
|
|
38
|
-
const host =
|
|
37
|
+
const { props, label } = isDemo() ? useDemoBigStat(this) : useBigStat(this);
|
|
38
|
+
const host = R();
|
|
39
39
|
const hasLabel = !!((_a = host.innerHTML) === null || _a === void 0 ? void 0 : _a.trim());
|
|
40
40
|
const labelSlot = h$1("slot", { name: "label" }, hasLabel ? h$1("slot", null) : label);
|
|
41
41
|
return h$1(BigStatView, Object.assign({}, props, { labelSlot: labelSlot }));
|
|
@@ -147,7 +147,7 @@ const styleString = sheet.toString();
|
|
|
147
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) {
|
|
148
148
|
if (!missingProps)
|
|
149
149
|
return false;
|
|
150
|
-
const host =
|
|
150
|
+
const host = R();
|
|
151
151
|
const [detailsOpen, setDetailsOpen] = useState(false);
|
|
152
152
|
return (h$1("sl-alert", { type: "danger", open: true },
|
|
153
153
|
h$1("style", { type: "text/css" }, styleString),
|
|
@@ -195,6 +195,7 @@ const CheckboxField = class {
|
|
|
195
195
|
this.ignored = true;
|
|
196
196
|
/**
|
|
197
197
|
* @uiName Checkbox Label
|
|
198
|
+
* @uiWidget textArea
|
|
198
199
|
*/
|
|
199
200
|
this.checkboxLabel = "By signing up you agree to the {labelLink}";
|
|
200
201
|
/**
|
|
@@ -213,7 +214,6 @@ const CheckboxField = class {
|
|
|
213
214
|
this.errorMessage = "Must be checked";
|
|
214
215
|
/**
|
|
215
216
|
* @uiName Optional
|
|
216
|
-
* @default
|
|
217
217
|
*/
|
|
218
218
|
this.checkboxOptional = false;
|
|
219
219
|
h(this);
|
|
@@ -226,13 +226,13 @@ const CheckboxField = class {
|
|
|
226
226
|
value: this.checkboxName,
|
|
227
227
|
},
|
|
228
228
|
]);
|
|
229
|
-
if (!
|
|
229
|
+
if (!isDemo() && missingProps) {
|
|
230
230
|
return (h$1(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:" }));
|
|
231
231
|
}
|
|
232
232
|
const content = {
|
|
233
233
|
...getProps(this),
|
|
234
234
|
};
|
|
235
|
-
const { states, callbacks } =
|
|
235
|
+
const { states, callbacks } = isDemo()
|
|
236
236
|
? useCheckboxFieldDemo(this)
|
|
237
237
|
: useCheckboxField();
|
|
238
238
|
return (h$1(CheckboxFieldView, { states: states, content: content, callbacks: callbacks }));
|
|
@@ -353,14 +353,14 @@ const DropdownField = class {
|
|
|
353
353
|
value: this.dropdownName,
|
|
354
354
|
},
|
|
355
355
|
]);
|
|
356
|
-
if (!
|
|
356
|
+
if (!isDemo() && missingProps) {
|
|
357
357
|
return (h$1(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:" }, h$1("slot", null)));
|
|
358
358
|
}
|
|
359
359
|
const content = {
|
|
360
360
|
...getProps(this),
|
|
361
361
|
selectOptions: h$1("slot", null),
|
|
362
362
|
};
|
|
363
|
-
const { states } =
|
|
363
|
+
const { states } = isDemo()
|
|
364
364
|
? useDropdownFieldDemo(this)
|
|
365
365
|
: useDropdownField();
|
|
366
366
|
return (h$1(DropdownFieldView, { states: states, content: content }));
|
|
@@ -417,13 +417,13 @@ const defaultFormState = {
|
|
|
417
417
|
error: "",
|
|
418
418
|
};
|
|
419
419
|
function useEditProfile(props) {
|
|
420
|
-
const userIdent =
|
|
420
|
+
const userIdent = N();
|
|
421
421
|
const [showEdit, setShowEdit] = useState(false);
|
|
422
422
|
const [error, setError] = useState("");
|
|
423
423
|
const [userData, setUserData] = useState(undefined);
|
|
424
424
|
const [formState, setFormState] = useState(defaultFormState);
|
|
425
|
-
const userDataResponse =
|
|
426
|
-
const [upsertUser, upsertUserResponse] =
|
|
425
|
+
const userDataResponse = dn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
426
|
+
const [upsertUser, upsertUserResponse] = Pe(UPSERT_USER);
|
|
427
427
|
useEffect(() => {
|
|
428
428
|
if ((upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading) || !showEdit)
|
|
429
429
|
return;
|
|
@@ -537,7 +537,7 @@ const EditProfile = class {
|
|
|
537
537
|
}
|
|
538
538
|
disconnectedCallback() { }
|
|
539
539
|
render() {
|
|
540
|
-
const props =
|
|
540
|
+
const props = isDemo()
|
|
541
541
|
? useEditProfileDemo(getProps(this))
|
|
542
542
|
: useEditProfile(getProps(this));
|
|
543
543
|
return h$1(EditProfileView, Object.assign({}, props));
|
|
@@ -850,10 +850,10 @@ const InputField = class {
|
|
|
850
850
|
value: this.fieldName,
|
|
851
851
|
},
|
|
852
852
|
]);
|
|
853
|
-
if (!
|
|
853
|
+
if (!isDemo() && missingProps) {
|
|
854
854
|
return (h$1(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:" }));
|
|
855
855
|
}
|
|
856
|
-
const { states } =
|
|
856
|
+
const { states } = isDemo() ? useInputFieldDemo(this) : useInputField();
|
|
857
857
|
return h$1(InputFieldView, { states: states, content: content });
|
|
858
858
|
}
|
|
859
859
|
};
|
|
@@ -909,11 +909,11 @@ const GET_RANK = dist.gql `
|
|
|
909
909
|
`;
|
|
910
910
|
function useLeaderboard(props) {
|
|
911
911
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
912
|
-
const programIdContext =
|
|
912
|
+
const programIdContext = O();
|
|
913
913
|
// Default to context, overriden by props
|
|
914
914
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
915
|
-
const user =
|
|
916
|
-
const locale =
|
|
915
|
+
const user = N();
|
|
916
|
+
const locale = x();
|
|
917
917
|
const variables = programId
|
|
918
918
|
? {
|
|
919
919
|
type: props.leaderboardType,
|
|
@@ -932,8 +932,8 @@ function useLeaderboard(props) {
|
|
|
932
932
|
if (props.maxRows > 0) {
|
|
933
933
|
variables["limit"] = props.maxRows;
|
|
934
934
|
}
|
|
935
|
-
const { data: leaderboardData, loading: loadingLeaderboard } =
|
|
936
|
-
const { data: rankData } =
|
|
935
|
+
const { data: leaderboardData, loading: loadingLeaderboard } = dn(GET_LEADERBOARD, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
936
|
+
const { data: rankData } = dn(GET_RANK, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
937
937
|
const leaderboardRows = (_b = leaderboardData === null || leaderboardData === void 0 ? void 0 : leaderboardData.userLeaderboard) === null || _b === void 0 ? void 0 : _b.rows;
|
|
938
938
|
const flattenedLeaderboard = getFlattenedLeaderboard(leaderboardRows);
|
|
939
939
|
const sortedLeaderboard = flattenedLeaderboard === null || flattenedLeaderboard === void 0 ? void 0 : flattenedLeaderboard.sort(function (a, b) {
|
|
@@ -1019,7 +1019,7 @@ const Leaderboard = class {
|
|
|
1019
1019
|
showRank: this.showRank,
|
|
1020
1020
|
};
|
|
1021
1021
|
const demoProps = { ...props, demoData: this.demoData };
|
|
1022
|
-
const viewprops =
|
|
1022
|
+
const viewprops = isDemo()
|
|
1023
1023
|
? useLeaderboardDemo(demoProps)
|
|
1024
1024
|
: useLeaderboard(props);
|
|
1025
1025
|
return h$1(LeaderboardView, Object.assign({}, viewprops));
|
|
@@ -1101,10 +1101,12 @@ function useLeaderboardDemo(props) {
|
|
|
1101
1101
|
}
|
|
1102
1102
|
|
|
1103
1103
|
function useNameFields(props) {
|
|
1104
|
+
const registrationFormState = d(REGISTRATION_FORM_STATE_CONTEXT);
|
|
1104
1105
|
const validationState = d(FORM_VALIDATION_CONTEXT);
|
|
1105
1106
|
return {
|
|
1106
1107
|
states: {
|
|
1107
1108
|
validationErrors: validationState === null || validationState === void 0 ? void 0 : validationState.validationErrors,
|
|
1109
|
+
registrationFormState,
|
|
1108
1110
|
content: {
|
|
1109
1111
|
lastNameLabel: props.lastNameLabel,
|
|
1110
1112
|
firstNameLabel: props.firstNameLabel,
|
|
@@ -1129,7 +1131,7 @@ const NameFields = class {
|
|
|
1129
1131
|
}
|
|
1130
1132
|
disconnectedCallback() { }
|
|
1131
1133
|
render() {
|
|
1132
|
-
const { states } =
|
|
1134
|
+
const { states } = isDemo() ? useNameFieldsDemo(this) : useNameFields(this);
|
|
1133
1135
|
return h$1(NameFieldsView, { states: states });
|
|
1134
1136
|
}
|
|
1135
1137
|
};
|
|
@@ -1138,8 +1140,8 @@ function useNameFieldsDemo(props) {
|
|
|
1138
1140
|
states: {
|
|
1139
1141
|
validationErrors: [],
|
|
1140
1142
|
content: {
|
|
1141
|
-
firstNameLabel:
|
|
1142
|
-
lastNameLabel:
|
|
1143
|
+
firstNameLabel: props.firstNameLabel,
|
|
1144
|
+
lastNameLabel: props.lastNameLabel,
|
|
1143
1145
|
},
|
|
1144
1146
|
},
|
|
1145
1147
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
@@ -1160,12 +1162,12 @@ function NavigationMenuView(props) {
|
|
|
1160
1162
|
}
|
|
1161
1163
|
|
|
1162
1164
|
function handleMenu(e) {
|
|
1163
|
-
|
|
1165
|
+
fn.push(e.detail.item.value);
|
|
1164
1166
|
}
|
|
1165
1167
|
function useNavigationMenu(props) {
|
|
1166
1168
|
const ref = useRef();
|
|
1167
|
-
const [, rerender] =
|
|
1168
|
-
const user =
|
|
1169
|
+
const [, rerender] = on();
|
|
1170
|
+
const user = N();
|
|
1169
1171
|
useEffect(() => {
|
|
1170
1172
|
var _a;
|
|
1171
1173
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => handleMenu(e));
|
|
@@ -1194,7 +1196,7 @@ const NavigationMenu = class {
|
|
|
1194
1196
|
}
|
|
1195
1197
|
disconnectedCallback() { }
|
|
1196
1198
|
render() {
|
|
1197
|
-
const props =
|
|
1199
|
+
const props = isDemo()
|
|
1198
1200
|
? useNavigationMenuDemo(getProps(this))
|
|
1199
1201
|
: useNavigationMenu(getProps(this));
|
|
1200
1202
|
return (h$1(Host, { slot: "sqm-navigation-menu" }, h$1(NavigationMenuView, Object.assign({}, props))));
|
|
@@ -1218,14 +1220,14 @@ function useNavigationMenuDemo(props) {
|
|
|
1218
1220
|
NavigationMenu.style = sqmNavigationMenuCss;
|
|
1219
1221
|
|
|
1220
1222
|
function usePortalChangePassword(props) {
|
|
1221
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
1222
|
-
const [request, { loading, errors, data }] =
|
|
1223
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1224
|
+
const [request, { loading, errors, data }] = Ve();
|
|
1223
1225
|
const [open, setOpen] = useState(false);
|
|
1224
1226
|
const [error, setError] = useState("");
|
|
1225
1227
|
const [success, setSuccess] = useState(false);
|
|
1226
|
-
const user =
|
|
1228
|
+
const user = N();
|
|
1227
1229
|
const submit = async (event) => {
|
|
1228
|
-
var _a;
|
|
1230
|
+
var _a, _b;
|
|
1229
1231
|
setSuccess(false);
|
|
1230
1232
|
const formData = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.formData;
|
|
1231
1233
|
formData === null || formData === void 0 ? void 0 : formData.forEach((value, key) => {
|
|
@@ -1243,20 +1245,17 @@ function usePortalChangePassword(props) {
|
|
|
1243
1245
|
const variables = {
|
|
1244
1246
|
password: formData.password,
|
|
1245
1247
|
};
|
|
1246
|
-
await request(variables);
|
|
1247
|
-
|
|
1248
|
-
useEffect(() => {
|
|
1249
|
-
var _a;
|
|
1250
|
-
if ((_a = data === null || data === void 0 ? void 0 : data.changeManagedIdentityPassword) === null || _a === void 0 ? void 0 : _a.success) {
|
|
1248
|
+
const result = await request(variables);
|
|
1249
|
+
if (!(result instanceof Error) && ((_b = result.changeManagedIdentityPassword) === null || _b === void 0 ? void 0 : _b.success)) {
|
|
1251
1250
|
setSuccess(true);
|
|
1252
1251
|
}
|
|
1253
|
-
}
|
|
1252
|
+
};
|
|
1254
1253
|
return {
|
|
1255
1254
|
states: {
|
|
1256
1255
|
open,
|
|
1257
1256
|
loading,
|
|
1258
1257
|
success,
|
|
1259
|
-
error: error || ((
|
|
1258
|
+
error: error || ((_d = (_c = (_b = (_a = errors === null || errors === void 0 ? void 0 : errors.response) === null || _a === void 0 ? void 0 : _a.errors) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.extensions) === null || _d === void 0 ? void 0 : _d.message) || ((_g = (_f = (_e = errors === null || errors === void 0 ? void 0 : errors.response) === null || _e === void 0 ? void 0 : _e.errors) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.message),
|
|
1260
1259
|
content: {
|
|
1261
1260
|
modalChangePasswordHeader: props.modalChangePasswordHeader,
|
|
1262
1261
|
cancelText: props.cancelText,
|
|
@@ -1311,7 +1310,8 @@ const PortalChangePassword = class {
|
|
|
1311
1310
|
/**
|
|
1312
1311
|
* Successful password change message
|
|
1313
1312
|
*
|
|
1314
|
-
* @uiName Successful Message
|
|
1313
|
+
* @uiName Successful Password Change Message
|
|
1314
|
+
* @uiWidget textArea
|
|
1315
1315
|
*/
|
|
1316
1316
|
this.successMessage = "Your password has been updated.";
|
|
1317
1317
|
/**
|
|
@@ -1328,37 +1328,38 @@ const PortalChangePassword = class {
|
|
|
1328
1328
|
}
|
|
1329
1329
|
disconnectedCallback() { }
|
|
1330
1330
|
render() {
|
|
1331
|
-
const { states, callbacks } =
|
|
1331
|
+
const { states, callbacks } = isDemo()
|
|
1332
1332
|
? usePortalChangePasswordDemo(this)
|
|
1333
1333
|
: usePortalChangePassword(this);
|
|
1334
1334
|
return h$1(PortalChangePasswordView, { states: states, callbacks: callbacks });
|
|
1335
1335
|
}
|
|
1336
1336
|
};
|
|
1337
1337
|
function usePortalChangePasswordDemo(props) {
|
|
1338
|
+
const [open, setOpen] = useState(false);
|
|
1338
1339
|
return cjs({
|
|
1339
1340
|
states: {
|
|
1340
|
-
open
|
|
1341
|
+
open,
|
|
1341
1342
|
error: "",
|
|
1342
1343
|
content: {
|
|
1343
|
-
modalChangePasswordHeader:
|
|
1344
|
-
cancelText:
|
|
1345
|
-
changePasswordButtonText:
|
|
1346
|
-
passwordFieldLabel:
|
|
1347
|
-
confirmPasswordFieldLabel:
|
|
1348
|
-
successMessage:
|
|
1349
|
-
portalChangePasswordHeader:
|
|
1350
|
-
portalChangePasswordButtonText:
|
|
1344
|
+
modalChangePasswordHeader: props.modalChangePasswordHeader,
|
|
1345
|
+
cancelText: props.cancelText,
|
|
1346
|
+
changePasswordButtonText: props.changePasswordButtonText,
|
|
1347
|
+
passwordFieldLabel: props.passwordFieldLabel,
|
|
1348
|
+
confirmPasswordFieldLabel: props.confirmPasswordFieldLabel,
|
|
1349
|
+
successMessage: props.successMessage,
|
|
1350
|
+
portalChangePasswordHeader: props.portalChangePasswordHeader,
|
|
1351
|
+
portalChangePasswordButtonText: props.portalChangePasswordButtonText,
|
|
1351
1352
|
},
|
|
1352
1353
|
},
|
|
1353
1354
|
callbacks: {
|
|
1354
|
-
setOpen: (
|
|
1355
|
+
setOpen: (update) => setOpen(update),
|
|
1355
1356
|
submit: (e) => console.log("Submit", e),
|
|
1356
1357
|
},
|
|
1357
1358
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1358
1359
|
}
|
|
1359
1360
|
|
|
1360
1361
|
function usePortalFrame(footerContent, headerContent) {
|
|
1361
|
-
const [, rerender] =
|
|
1362
|
+
const [, rerender] = on();
|
|
1362
1363
|
return {
|
|
1363
1364
|
data: {
|
|
1364
1365
|
footer: footerContent,
|
|
@@ -1380,7 +1381,7 @@ const PortalFrame = class {
|
|
|
1380
1381
|
render() {
|
|
1381
1382
|
const footerContent = h$1("slot", { name: "footer" });
|
|
1382
1383
|
const headerContent = h$1("slot", { name: "header" });
|
|
1383
|
-
const props =
|
|
1384
|
+
const props = isDemo()
|
|
1384
1385
|
? usePortalFrameDemo(footerContent, headerContent, this)
|
|
1385
1386
|
: usePortalFrame(footerContent, headerContent);
|
|
1386
1387
|
return (h$1(PortalFrameView, Object.assign({}, props), h$1("slot", null)));
|
|
@@ -1402,35 +1403,32 @@ function usePortalFrameDemo(footerContent, headerContent, props) {
|
|
|
1402
1403
|
}
|
|
1403
1404
|
|
|
1404
1405
|
function usePortalLogin(props) {
|
|
1405
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
1406
|
-
const [request, { loading, errors, data }] =
|
|
1406
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1407
|
+
const [request, { loading, errors, data }] = Me();
|
|
1407
1408
|
const [error, setError] = useState("");
|
|
1408
|
-
const urlParams = new URLSearchParams(
|
|
1409
|
+
const urlParams = new URLSearchParams(fn.location.search);
|
|
1409
1410
|
const nextPageOverride = urlParams.get("nextPage");
|
|
1410
1411
|
const submit = async (event) => {
|
|
1412
|
+
var _a, _b;
|
|
1411
1413
|
setError("");
|
|
1412
1414
|
let formData = event.detail.formData;
|
|
1413
1415
|
formData === null || formData === void 0 ? void 0 : formData.forEach((value, key) => {
|
|
1414
1416
|
jsonpointer.set(formData, key, value);
|
|
1415
1417
|
});
|
|
1416
1418
|
const variables = { email: formData.email, password: formData.password };
|
|
1417
|
-
await request(variables);
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1419
|
+
const result = await request(variables);
|
|
1420
|
+
if (result instanceof Error) {
|
|
1421
|
+
if ((result === null || result === void 0 ? void 0 : result.message) || ((_a = result === null || result === void 0 ? void 0 : result["response"]) === null || _a === void 0 ? void 0 : _a["error"]))
|
|
1422
|
+
setError("Network request failed.");
|
|
1423
|
+
return;
|
|
1424
|
+
}
|
|
1425
|
+
if ((_b = result.authenticateManagedIdentityWithEmailAndPassword) === null || _b === void 0 ? void 0 : _b.token) {
|
|
1422
1426
|
urlParams.delete("nextPage");
|
|
1423
1427
|
const url = sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
1424
|
-
|
|
1425
|
-
}
|
|
1426
|
-
}, [(_a = data === null || data === void 0 ? void 0 : data.authenticateManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token]);
|
|
1427
|
-
useEffect(() => {
|
|
1428
|
-
var _a;
|
|
1429
|
-
if ((errors === null || errors === void 0 ? void 0 : errors.message) || ((_a = errors === null || errors === void 0 ? void 0 : errors.response) === null || _a === void 0 ? void 0 : _a["error"])) {
|
|
1430
|
-
setError("Network request failed.");
|
|
1428
|
+
fn.push(url.href);
|
|
1431
1429
|
}
|
|
1432
|
-
}
|
|
1433
|
-
const errorMessage = ((
|
|
1430
|
+
};
|
|
1431
|
+
const errorMessage = ((_d = (_c = (_b = (_a = errors === null || errors === void 0 ? void 0 : errors.response) === null || _a === void 0 ? void 0 : _a.errors) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.extensions) === null || _d === void 0 ? void 0 : _d.message) || ((_g = (_f = (_e = errors === null || errors === void 0 ? void 0 : errors.response) === null || _e === void 0 ? void 0 : _e.errors) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.message) ||
|
|
1434
1432
|
error;
|
|
1435
1433
|
return {
|
|
1436
1434
|
states: {
|
|
@@ -1450,67 +1448,59 @@ const PortalLogin = class {
|
|
|
1450
1448
|
registerInstance(this, hostRef);
|
|
1451
1449
|
this.ignored = true;
|
|
1452
1450
|
/**
|
|
1453
|
-
*
|
|
1451
|
+
* Redirect participants to this page after they successfully login.
|
|
1454
1452
|
*
|
|
1455
|
-
* @uiName
|
|
1453
|
+
* @uiName Login Redirect
|
|
1454
|
+
* @uiWidget pageSelect
|
|
1456
1455
|
*/
|
|
1457
1456
|
this.nextPage = "/";
|
|
1458
1457
|
/**
|
|
1459
|
-
*
|
|
1460
|
-
*
|
|
1461
|
-
* @uiName Email Label
|
|
1458
|
+
* @uiName Email Field Label
|
|
1462
1459
|
*/
|
|
1463
1460
|
this.emailLabel = "Email";
|
|
1464
1461
|
/**
|
|
1465
|
-
*
|
|
1466
|
-
*
|
|
1467
|
-
* @uiName Password Label
|
|
1462
|
+
* @uiName Password Field Label
|
|
1468
1463
|
*/
|
|
1469
1464
|
this.passwordLabel = "Password";
|
|
1470
1465
|
/**
|
|
1471
|
-
* Label for submit button
|
|
1472
|
-
*
|
|
1473
1466
|
* @uiName Submit Button Text
|
|
1474
1467
|
*/
|
|
1475
1468
|
this.submitLabel = "Sign In";
|
|
1476
1469
|
/**
|
|
1477
|
-
*
|
|
1478
|
-
*
|
|
1470
|
+
* Redirect participants to this page to reset their password
|
|
1471
|
+
* @uiName Forgot Password Redirect
|
|
1472
|
+
* @uiWidget pageSelect
|
|
1473
|
+
*/
|
|
1474
|
+
this.forgotPasswordPath = "/forgotPassword";
|
|
1475
|
+
/**
|
|
1479
1476
|
* @uiName Forgot Password Text
|
|
1480
1477
|
*/
|
|
1481
1478
|
this.forgotPasswordLabel = "Forgot Password?";
|
|
1482
1479
|
/**
|
|
1483
|
-
* Label for register button
|
|
1484
|
-
*
|
|
1485
1480
|
* @uiName Register Button Text
|
|
1486
1481
|
*/
|
|
1487
1482
|
this.registerLabel = "Register";
|
|
1488
1483
|
/**
|
|
1489
|
-
*
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
/**
|
|
1493
|
-
* Register redirect path
|
|
1494
|
-
*
|
|
1495
|
-
* @uiName Register Path
|
|
1484
|
+
* Redirect participants to this page to start registration.
|
|
1485
|
+
* @uiName Register Button Redirect
|
|
1486
|
+
* @uiWidget pageSelect
|
|
1496
1487
|
*/
|
|
1497
1488
|
this.registerPath = "/register";
|
|
1498
1489
|
/**
|
|
1499
|
-
*
|
|
1500
|
-
*
|
|
1501
|
-
* @uiName Forgot Password Path
|
|
1490
|
+
* @uiName Heading Label
|
|
1491
|
+
* @uiWidget textArea
|
|
1502
1492
|
*/
|
|
1503
|
-
this.
|
|
1493
|
+
this.pageLabel = "Sign in to your account";
|
|
1504
1494
|
h(this);
|
|
1505
1495
|
}
|
|
1506
1496
|
disconnectedCallback() { }
|
|
1507
1497
|
render() {
|
|
1508
|
-
const { states, callbacks } =
|
|
1498
|
+
const { states, callbacks } = isDemo()
|
|
1509
1499
|
? useLoginDemo(this)
|
|
1510
1500
|
: usePortalLogin(this);
|
|
1511
1501
|
const content = {
|
|
1512
|
-
forgotPasswordButton: (h$1("slot", { name: "forgotPassword" }, h$1("a", { onClick: () =>
|
|
1513
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
1502
|
+
forgotPasswordButton: (h$1("slot", { name: "forgotPassword" }, h$1("a", { onClick: () => fn.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
1503
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => fn.push(states.registerPath) }, this.registerLabel))),
|
|
1514
1504
|
emailLabel: this.emailLabel,
|
|
1515
1505
|
passwordLabel: this.passwordLabel,
|
|
1516
1506
|
submitLabel: this.submitLabel,
|
|
@@ -1536,11 +1526,21 @@ function useLoginDemo(props) {
|
|
|
1536
1526
|
}
|
|
1537
1527
|
|
|
1538
1528
|
function usePortalRegister(props) {
|
|
1539
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
|
1529
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1540
1530
|
const formRef = useRef(null);
|
|
1541
1531
|
const { validationState, setValidationState } = useValidationState({});
|
|
1542
|
-
const [request, { loading, errors, data }] =
|
|
1532
|
+
const [request, { loading, errors, data }] = je();
|
|
1533
|
+
useEffect(() => {
|
|
1534
|
+
if (!formRef.current)
|
|
1535
|
+
return;
|
|
1536
|
+
const form = formRef.current;
|
|
1537
|
+
form.addEventListener("sl-input", inputFunction);
|
|
1538
|
+
return () => {
|
|
1539
|
+
form.removeEventListener("sl-input", inputFunction);
|
|
1540
|
+
};
|
|
1541
|
+
}, [formRef.current]);
|
|
1543
1542
|
const submit = async (event) => {
|
|
1543
|
+
var _a;
|
|
1544
1544
|
let formControls = event.target.getFormControls();
|
|
1545
1545
|
let formData = {};
|
|
1546
1546
|
let validationErrors = {};
|
|
@@ -1587,7 +1587,13 @@ function usePortalRegister(props) {
|
|
|
1587
1587
|
redirectPath,
|
|
1588
1588
|
};
|
|
1589
1589
|
try {
|
|
1590
|
-
await request(variables);
|
|
1590
|
+
const result = await request(variables);
|
|
1591
|
+
if (result instanceof Error) {
|
|
1592
|
+
throw result;
|
|
1593
|
+
}
|
|
1594
|
+
if ((_a = result.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
1595
|
+
fn.push(props.nextPage);
|
|
1596
|
+
}
|
|
1591
1597
|
}
|
|
1592
1598
|
catch (error) {
|
|
1593
1599
|
setValidationState({ error: "Network request failed." });
|
|
@@ -1601,31 +1607,16 @@ function usePortalRegister(props) {
|
|
|
1601
1607
|
const asYouType = new AsYouType("US");
|
|
1602
1608
|
e.target.value = asYouType.input(e.target.value);
|
|
1603
1609
|
}, []);
|
|
1604
|
-
useEffect(() => {
|
|
1605
|
-
var _a;
|
|
1606
|
-
if ((_a = data === null || data === void 0 ? void 0 : data.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
1607
|
-
In.push(props.nextPage);
|
|
1608
|
-
}
|
|
1609
|
-
}, [(_a = data === null || data === void 0 ? void 0 : data.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token]);
|
|
1610
|
-
useEffect(() => {
|
|
1611
|
-
if (!formRef.current)
|
|
1612
|
-
return;
|
|
1613
|
-
const form = formRef.current;
|
|
1614
|
-
form.addEventListener("sl-input", inputFunction);
|
|
1615
|
-
return () => {
|
|
1616
|
-
form.removeEventListener("sl-input", inputFunction);
|
|
1617
|
-
};
|
|
1618
|
-
}, [formRef.current]);
|
|
1619
1610
|
let errorMessage = "";
|
|
1620
|
-
if ((
|
|
1611
|
+
if ((_a = errors === null || errors === void 0 ? void 0 : errors.response) === null || _a === void 0 ? void 0 : _a["error"]) {
|
|
1621
1612
|
errorMessage = "Network request failed";
|
|
1622
1613
|
}
|
|
1623
|
-
else if ((errors === null || errors === void 0 ? void 0 : errors.message) && !((
|
|
1614
|
+
else if ((errors === null || errors === void 0 ? void 0 : errors.message) && !((_b = errors === null || errors === void 0 ? void 0 : errors.response) === null || _b === void 0 ? void 0 : _b.errors.length)) {
|
|
1624
1615
|
errorMessage = "Network request failed";
|
|
1625
1616
|
}
|
|
1626
1617
|
else {
|
|
1627
1618
|
errorMessage =
|
|
1628
|
-
((
|
|
1619
|
+
((_f = (_e = (_d = (_c = errors === null || errors === void 0 ? void 0 : errors.response) === null || _c === void 0 ? void 0 : _c.errors) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.extensions) === null || _f === void 0 ? void 0 : _f.message) || ((_j = (_h = (_g = errors === null || errors === void 0 ? void 0 : errors.response) === null || _g === void 0 ? void 0 : _g.errors) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.message) || (validationState === null || validationState === void 0 ? void 0 : validationState.error);
|
|
1629
1620
|
}
|
|
1630
1621
|
return {
|
|
1631
1622
|
states: {
|
|
@@ -1635,6 +1626,7 @@ function usePortalRegister(props) {
|
|
|
1635
1626
|
confirmPassword: props.confirmPassword,
|
|
1636
1627
|
hideInputs: props.hideInputs,
|
|
1637
1628
|
loginPath: props.loginPath,
|
|
1629
|
+
disablePasswordValidation: !props.disablePasswordValidation,
|
|
1638
1630
|
},
|
|
1639
1631
|
callbacks: {
|
|
1640
1632
|
submit,
|
|
@@ -1651,23 +1643,25 @@ const PortalRegister = class {
|
|
|
1651
1643
|
registerInstance(this, hostRef);
|
|
1652
1644
|
this.ignored = true;
|
|
1653
1645
|
/**
|
|
1654
|
-
*
|
|
1646
|
+
* Redirect participants to this page after they successfully register.
|
|
1655
1647
|
*
|
|
1656
|
-
* @uiName
|
|
1648
|
+
* @uiName Registration Redirect
|
|
1649
|
+
* @uiWidget pageSelect
|
|
1657
1650
|
*/
|
|
1658
1651
|
this.nextPage = "/";
|
|
1659
1652
|
/**
|
|
1660
|
-
* The page that
|
|
1653
|
+
* The page that participants are redirected to from the verification email.
|
|
1661
1654
|
*
|
|
1662
|
-
* @uiName Email
|
|
1655
|
+
* @uiName Email Verification Redirect
|
|
1656
|
+
* @uiWidget pageSelect
|
|
1663
1657
|
*/
|
|
1664
1658
|
this.redirectPath = "/verifyEmail";
|
|
1665
1659
|
/**
|
|
1666
|
-
* @uiName Email Label
|
|
1660
|
+
* @uiName Email Field Label
|
|
1667
1661
|
*/
|
|
1668
1662
|
this.emailLabel = "Email";
|
|
1669
1663
|
/**
|
|
1670
|
-
* @uiName Password Label
|
|
1664
|
+
* @uiName Password Field Label
|
|
1671
1665
|
*/
|
|
1672
1666
|
this.passwordLabel = "Password";
|
|
1673
1667
|
/**
|
|
@@ -1679,47 +1673,44 @@ const PortalRegister = class {
|
|
|
1679
1673
|
*/
|
|
1680
1674
|
this.loginLabel = "Sign in";
|
|
1681
1675
|
/**
|
|
1682
|
-
* @uiName Confirm Password Label
|
|
1676
|
+
* @uiName Confirm Password Field Label
|
|
1683
1677
|
*/
|
|
1684
1678
|
this.confirmPasswordLabel = "Confirm Password";
|
|
1685
1679
|
/**
|
|
1686
|
-
* Show or hide the confirm password input
|
|
1687
|
-
*
|
|
1688
1680
|
* @uiName Show Confirm Password Field
|
|
1689
|
-
* @default
|
|
1690
1681
|
*/
|
|
1691
1682
|
this.confirmPassword = false;
|
|
1692
1683
|
/**
|
|
1693
|
-
* @uiName
|
|
1684
|
+
* @uiName Disable Password Validation
|
|
1694
1685
|
*/
|
|
1695
|
-
this.
|
|
1686
|
+
this.disablePasswordValidation = false;
|
|
1696
1687
|
/**
|
|
1697
|
-
* Hide default input fields to use custom fields
|
|
1688
|
+
* Hide default input fields to use custom fields.
|
|
1698
1689
|
*
|
|
1699
1690
|
* @uiName Hide Default Inputs
|
|
1700
|
-
* @default
|
|
1701
1691
|
*/
|
|
1702
1692
|
this.hideInputs = false;
|
|
1703
1693
|
/**
|
|
1704
|
-
* @uiName
|
|
1694
|
+
* @uiName Header Text
|
|
1705
1695
|
*/
|
|
1706
1696
|
this.pageLabel = "Register";
|
|
1707
1697
|
/**
|
|
1708
|
-
*
|
|
1698
|
+
* Redirect participants to this page after clicking the login button.
|
|
1709
1699
|
*
|
|
1710
|
-
* @uiName Login
|
|
1700
|
+
* @uiName Login Redirect
|
|
1701
|
+
* @uiWidget pageSelect
|
|
1711
1702
|
*/
|
|
1712
1703
|
this.loginPath = "/login";
|
|
1713
1704
|
h(this);
|
|
1714
1705
|
}
|
|
1715
1706
|
disconnectedCallback() { }
|
|
1716
1707
|
render() {
|
|
1717
|
-
const { states, callbacks, refs } =
|
|
1708
|
+
const { states, callbacks, refs } = isDemo()
|
|
1718
1709
|
? useRegisterDemo(this)
|
|
1719
1710
|
: usePortalRegister(this);
|
|
1720
1711
|
const content = {
|
|
1721
1712
|
formData: h$1("slot", { name: "formData" }),
|
|
1722
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
1713
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => fn.push(states.loginPath) }, this.loginLabel))),
|
|
1723
1714
|
terms: h$1("slot", { name: "terms" }),
|
|
1724
1715
|
emailLabel: this.emailLabel,
|
|
1725
1716
|
passwordLabel: this.passwordLabel,
|
|
@@ -1738,7 +1729,8 @@ function useRegisterDemo(props) {
|
|
|
1738
1729
|
confirmPassword: true,
|
|
1739
1730
|
hideInputs: props.hideInputs || false,
|
|
1740
1731
|
customPasswordField: false,
|
|
1741
|
-
loginPath:
|
|
1732
|
+
loginPath: props.loginPath,
|
|
1733
|
+
disablePasswordValidation: props.disablePasswordValidation,
|
|
1742
1734
|
},
|
|
1743
1735
|
callbacks: {
|
|
1744
1736
|
submit: async (_event) => {
|
|
@@ -1881,11 +1873,11 @@ const ProgramExplainerStep = class {
|
|
|
1881
1873
|
const debug = browser('sq:useProgramMenu');
|
|
1882
1874
|
const UPDATE_PROGRAM_EVENT = 'sq:update-program-id';
|
|
1883
1875
|
function useProgramMenu(props) {
|
|
1884
|
-
const programId =
|
|
1885
|
-
const host =
|
|
1876
|
+
const programId = O();
|
|
1877
|
+
const host = R();
|
|
1886
1878
|
debug({ programId, props });
|
|
1887
1879
|
const ref = useRef();
|
|
1888
|
-
const [, rerender] =
|
|
1880
|
+
const [, rerender] = on();
|
|
1889
1881
|
useEffect(() => {
|
|
1890
1882
|
var _a;
|
|
1891
1883
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener('sl-select', (e) => {
|
|
@@ -2011,9 +2003,9 @@ const GET_USER_DETAILS = dist.gql `
|
|
|
2011
2003
|
`;
|
|
2012
2004
|
function useReferralIframe(props) {
|
|
2013
2005
|
var _a;
|
|
2014
|
-
const programId =
|
|
2015
|
-
const user =
|
|
2016
|
-
const { data } =
|
|
2006
|
+
const programId = O();
|
|
2007
|
+
const user = N();
|
|
2008
|
+
const { data } = dn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
2017
2009
|
return {
|
|
2018
2010
|
states: {
|
|
2019
2011
|
content: props,
|
|
@@ -2051,7 +2043,7 @@ const SqmReferralIframe = class {
|
|
|
2051
2043
|
if (missingProps) {
|
|
2052
2044
|
return (h$1(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:" }));
|
|
2053
2045
|
}
|
|
2054
|
-
const { states, data } =
|
|
2046
|
+
const { states, data } = isDemo()
|
|
2055
2047
|
? useReferralIframeDemo(getProps(this))
|
|
2056
2048
|
: useReferralIframe(getProps(this));
|
|
2057
2049
|
return (h$1(Host, { style: { display: "contents" } }, h$1(ReferralIframeView, { data: data, states: states })));
|
|
@@ -2738,9 +2730,9 @@ function useRewardExchangeList(props) {
|
|
|
2738
2730
|
});
|
|
2739
2731
|
const [open, setOpen] = useState(false);
|
|
2740
2732
|
const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
|
|
2741
|
-
const user =
|
|
2742
|
-
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] =
|
|
2743
|
-
const { data, loading, refetch, errors: queryError, } =
|
|
2733
|
+
const user = N();
|
|
2734
|
+
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = Pe(EXCHANGE);
|
|
2735
|
+
const { data, loading, refetch, errors: queryError, } = dn(GET_EXCHANGE_LIST, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
2744
2736
|
useEffect(() => {
|
|
2745
2737
|
var _a, _b;
|
|
2746
2738
|
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) {
|
|
@@ -2759,7 +2751,7 @@ function useRewardExchangeList(props) {
|
|
|
2759
2751
|
canvas.confetti || confetti.create(canvas, { resize: true });
|
|
2760
2752
|
canvas.confetti();
|
|
2761
2753
|
}, [canvasRef.current]);
|
|
2762
|
-
const { refresh } =
|
|
2754
|
+
const { refresh } = Le();
|
|
2763
2755
|
async function exchangeReward() {
|
|
2764
2756
|
if (!selectedItem)
|
|
2765
2757
|
return;
|
|
@@ -3015,7 +3007,7 @@ const SqmRewardExchangeList = class {
|
|
|
3015
3007
|
...getProps(this),
|
|
3016
3008
|
empty: h$1(EmptySlot$1, null),
|
|
3017
3009
|
};
|
|
3018
|
-
const { states, data, callbacks, refs } =
|
|
3010
|
+
const { states, data, callbacks, refs } = isDemo()
|
|
3019
3011
|
? useRewardExchangeListDemo(props)
|
|
3020
3012
|
: useRewardExchangeList(props);
|
|
3021
3013
|
return (h$1(Host, { style: { display: "contents" } }, h$1(RewardExchangeView, { states: states, data: data, callbacks: callbacks, refs: refs })));
|
|
@@ -3067,8 +3059,8 @@ function matchPath(pattern, page) {
|
|
|
3067
3059
|
return regexp.exec(page);
|
|
3068
3060
|
}
|
|
3069
3061
|
function useRouter() {
|
|
3070
|
-
const location =
|
|
3071
|
-
const host =
|
|
3062
|
+
const location = cn();
|
|
3063
|
+
const host = R();
|
|
3072
3064
|
const [slot, setSlot] = useState(undefined);
|
|
3073
3065
|
const [container, setContainer] = useState(undefined);
|
|
3074
3066
|
const page = location.pathname;
|
|
@@ -3285,7 +3277,7 @@ const ShareButton = class {
|
|
|
3285
3277
|
disconnectedCallback() { }
|
|
3286
3278
|
render() {
|
|
3287
3279
|
const thisProps = getProps(this);
|
|
3288
|
-
const props =
|
|
3280
|
+
const props = isDemo()
|
|
3289
3281
|
? useDemoShareButton(thisProps)
|
|
3290
3282
|
: useShareButton(thisProps);
|
|
3291
3283
|
return (h$1(ShareButtonView, Object.assign({}, props), h$1("slot", null)));
|
|
@@ -3319,11 +3311,11 @@ const WIDGET_ENGAGEMENT_EVENT = dist.gql `
|
|
|
3319
3311
|
`;
|
|
3320
3312
|
function useShareCode(props) {
|
|
3321
3313
|
var _a, _b;
|
|
3322
|
-
const programId =
|
|
3323
|
-
const user =
|
|
3324
|
-
const engagementMedium =
|
|
3325
|
-
const { data } =
|
|
3326
|
-
const [sendLoadEvent] =
|
|
3314
|
+
const programId = O();
|
|
3315
|
+
const user = N();
|
|
3316
|
+
const engagementMedium = U();
|
|
3317
|
+
const { data } = dn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
3318
|
+
const [sendLoadEvent] = Pe(WIDGET_ENGAGEMENT_EVENT);
|
|
3327
3319
|
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 :
|
|
3328
3320
|
// Shown during loading
|
|
3329
3321
|
"...";
|
|
@@ -3370,7 +3362,7 @@ const ShareCode = class {
|
|
|
3370
3362
|
disconnectedCallback() { }
|
|
3371
3363
|
render() {
|
|
3372
3364
|
const thisProps = getProps(this);
|
|
3373
|
-
const props =
|
|
3365
|
+
const props = isDemo()
|
|
3374
3366
|
? useDemoShareCode(thisProps)
|
|
3375
3367
|
: useShareCode(thisProps);
|
|
3376
3368
|
return h$1(ShareLinkView, Object.assign({}, props));
|
|
@@ -3413,7 +3405,7 @@ const ShareLink = class {
|
|
|
3413
3405
|
disconnectedCallback() { }
|
|
3414
3406
|
render() {
|
|
3415
3407
|
const thisProps = getProps(this);
|
|
3416
|
-
const props =
|
|
3408
|
+
const props = isDemo()
|
|
3417
3409
|
? useDemoShareLink(thisProps)
|
|
3418
3410
|
: useShareLink(thisProps);
|
|
3419
3411
|
return h$1(ShareLinkView, Object.assign({}, props));
|
|
@@ -3465,7 +3457,9 @@ const StatContainer = class {
|
|
|
3465
3457
|
const TableCell = class {
|
|
3466
3458
|
constructor(hostRef) {
|
|
3467
3459
|
registerInstance(this, hostRef);
|
|
3460
|
+
/** @uiName Column Span */
|
|
3468
3461
|
this.colspan = 1;
|
|
3462
|
+
/** @uiName Padding */
|
|
3469
3463
|
this.padding = "15px 10px";
|
|
3470
3464
|
}
|
|
3471
3465
|
render() {
|
|
@@ -3476,6 +3470,9 @@ const TableCell = class {
|
|
|
3476
3470
|
const TableRow = class {
|
|
3477
3471
|
constructor(hostRef) {
|
|
3478
3472
|
registerInstance(this, hostRef);
|
|
3473
|
+
/**
|
|
3474
|
+
* @uiName Border
|
|
3475
|
+
*/
|
|
3479
3476
|
this.border = "1px solid #EAEAEA";
|
|
3480
3477
|
}
|
|
3481
3478
|
render() {
|
|
@@ -3491,10 +3488,10 @@ const SEND_EVENT = dist.gql `
|
|
|
3491
3488
|
}
|
|
3492
3489
|
`;
|
|
3493
3490
|
function useTaskCard(props) {
|
|
3494
|
-
const user =
|
|
3495
|
-
const locale =
|
|
3496
|
-
const [sendUserEvent, { data, loading: loadingEvent }] =
|
|
3497
|
-
const { refresh } =
|
|
3491
|
+
const user = N();
|
|
3492
|
+
const locale = x();
|
|
3493
|
+
const [sendUserEvent, { data, loading: loadingEvent }] = Pe(SEND_EVENT);
|
|
3494
|
+
const { refresh } = Le();
|
|
3498
3495
|
useEffect(() => {
|
|
3499
3496
|
if (data) {
|
|
3500
3497
|
refresh();
|
|
@@ -3555,7 +3552,7 @@ const TaskCard = class {
|
|
|
3555
3552
|
*/
|
|
3556
3553
|
this.repeatable = false;
|
|
3557
3554
|
/**
|
|
3558
|
-
* The number of times a
|
|
3555
|
+
* The number of times a task can be completed when repeatable. Use zero for no limit (the default).
|
|
3559
3556
|
*
|
|
3560
3557
|
* @uiName Repeat Amount
|
|
3561
3558
|
* @uiGroup Reward
|
|
@@ -3632,11 +3629,11 @@ const TaskCard = class {
|
|
|
3632
3629
|
}
|
|
3633
3630
|
disconnectedCallback() { }
|
|
3634
3631
|
render() {
|
|
3635
|
-
const { props } =
|
|
3632
|
+
const { props } = isDemo()
|
|
3636
3633
|
? useDemoBigStat(this)
|
|
3637
3634
|
: useBigStat({ ...getProps(this), programId: this.programId });
|
|
3638
3635
|
const { value, loading } = props;
|
|
3639
|
-
const { states, callbacks } =
|
|
3636
|
+
const { states, callbacks } = isDemo()
|
|
3640
3637
|
? useTaskCardDemo(this)
|
|
3641
3638
|
: useTaskCard(this);
|
|
3642
3639
|
return (h$1(TaskCardView, { callbacks: callbacks, states: {
|
|
@@ -3810,8 +3807,8 @@ const GET_USER_NAME = dist.gql `
|
|
|
3810
3807
|
`;
|
|
3811
3808
|
function useUserName(props) {
|
|
3812
3809
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3813
|
-
const user =
|
|
3814
|
-
const res =
|
|
3810
|
+
const user = N();
|
|
3811
|
+
const res = dn(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
3815
3812
|
const loading = res.loading;
|
|
3816
3813
|
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)
|
|
3817
3814
|
? `${(_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}`
|
|
@@ -3826,13 +3823,13 @@ function useUserName(props) {
|
|
|
3826
3823
|
const UserName = class {
|
|
3827
3824
|
constructor(hostRef) {
|
|
3828
3825
|
registerInstance(this, hostRef);
|
|
3829
|
-
this.
|
|
3826
|
+
this.ignored = true;
|
|
3830
3827
|
/**
|
|
3831
|
-
*
|
|
3832
|
-
* @uiName Fallback Name
|
|
3828
|
+
* @uiName Unknown User Name
|
|
3833
3829
|
*/
|
|
3834
3830
|
this.fallback = "Anonymous User";
|
|
3835
3831
|
/**
|
|
3832
|
+
* Text displayed while the participant’s name is loading.
|
|
3836
3833
|
* @uiName Loading Text
|
|
3837
3834
|
*/
|
|
3838
3835
|
this.loadingText = "...";
|
|
@@ -3840,7 +3837,7 @@ const UserName = class {
|
|
|
3840
3837
|
}
|
|
3841
3838
|
disconnectedCallback() { }
|
|
3842
3839
|
render() {
|
|
3843
|
-
const props =
|
|
3840
|
+
const props = isDemo() ? useUserNameDemo(this) : useUserName(this);
|
|
3844
3841
|
return h$1(UserNameView, Object.assign({}, props));
|
|
3845
3842
|
}
|
|
3846
3843
|
};
|