@saasquatch/mint-components 1.6.8-9 → 1.6.9
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/LICENSE +1 -1
- package/dist/cjs/{ShadowViewAddon-b706b992.js → ShadowViewAddon-f670c663.js} +271 -83
- package/dist/cjs/email-registration-view-f347daa7.js +79 -0
- package/dist/cjs/{global-48c25606.js → global-40232313.js} +8 -2
- package/dist/cjs/{index.module-f6afc139.js → index.module-4314dfb1.js} +227 -237
- package/dist/cjs/loader.cjs.js +3 -4
- package/dist/cjs/mint-components.cjs.js +3 -4
- package/dist/cjs/{re-render-552514cb.js → re-render-9a4ef430.js} +3 -3
- package/dist/cjs/{sqm-asset-card-view-79099616.js → sqm-asset-card-view-a0e33f21.js} +2 -2
- package/dist/cjs/sqm-asset-card.cjs.entry.js +2 -3
- package/dist/cjs/{sqm-big-stat_37.cjs.entry.js → sqm-big-stat_39.cjs.entry.js} +594 -291
- package/dist/cjs/sqm-close-button-view-fd6e8f60.js +28 -0
- package/dist/cjs/sqm-close-button.cjs.entry.js +41 -0
- package/dist/cjs/sqm-empty_5.cjs.entry.js +14 -7
- package/dist/cjs/sqm-form-message.cjs.entry.js +4 -1
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +5 -6
- package/dist/cjs/sqm-header-logo.cjs.entry.js +3 -3
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +158 -0
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -6
- package/dist/cjs/{sqm-user-identifier-view-90b36758.js → sqm-logout-current-user-view-555c7729.js} +8 -6
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +62 -0
- package/dist/cjs/{sqm-navigation-sidebar-item-view-c39b695c.js → sqm-navigation-sidebar-item-view-f66a1735.js} +4 -4
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -4
- package/dist/cjs/{sqm-navigation-sidebar-view-b830e8d8.js → sqm-navigation-sidebar-view-dd53f947.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +3 -4
- package/dist/cjs/sqm-password-field.cjs.entry.js +5 -6
- package/dist/cjs/sqm-popup-container.cjs.entry.js +6 -7
- package/dist/cjs/{sqm-portal-container-view-6accb54a.js → sqm-portal-container-view-5fb2ad49.js} +4 -3
- package/dist/cjs/{sqm-portal-email-verification-view-2e646897.js → sqm-portal-email-verification-view-338e9288.js} +2 -2
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +16 -17
- package/dist/cjs/{sqm-portal-forgot-password-view-f73bb724.js → sqm-portal-forgot-password-view-0142350f.js} +2 -2
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +12 -13
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -4
- package/dist/cjs/{sqm-portal-profile-view-52bc73ad.js → sqm-portal-profile-view-4847f1ea.js} +3 -3
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +15 -16
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +8 -9
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +25 -26
- package/dist/cjs/{sqm-portal-reset-password-view-e182df83.js → sqm-portal-reset-password-view-d5bc7afc.js} +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +16 -17
- package/dist/cjs/{sqm-portal-verify-email-view-fd739843.js → sqm-portal-verify-email-view-f6c7287e.js} +3 -3
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +10 -11
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +37 -38
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +90 -11
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +3 -4
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +33 -34
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +548 -343
- package/dist/cjs/sqm-tab.cjs.entry.js +2 -3
- package/dist/cjs/sqm-tabs.cjs.entry.js +4 -5
- package/dist/cjs/{sqm-text-span-view-3c734dbb.js → sqm-text-span-view-e1cd9bd3.js} +1 -1
- package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
- package/dist/cjs/{useChildElements-a8f7f5ca.js → useChildElements-749f9c9c.js} +2 -2
- package/dist/cjs/useInstantAccessRegistration-1fea58e7.js +87 -0
- package/dist/cjs/{useReferralTable-f53a9a1b.js → useReferralTable-650b1957.js} +7 -7
- package/dist/cjs/{useRegistrationFormState-99160dad.js → useRegistrationFormState-67c0b5ff.js} +2 -2
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +2 -2
- package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +2 -2
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +3 -3
- package/dist/collection/components/sqm-brand/sqm-brand.js +3 -3
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +4 -4
- package/dist/collection/components/sqm-checkbox-field/CheckboxField.stories.js +6 -1
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +1 -1
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +9 -9
- package/dist/collection/components/sqm-close-button/CloseButton.stories.js +27 -0
- package/dist/collection/components/sqm-close-button/sqm-close-button-view.js +23 -0
- package/dist/collection/components/sqm-close-button/sqm-close-button.js +65 -0
- package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +41 -11
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +30 -0
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +282 -45
- package/dist/collection/components/sqm-coupon-code/useCouponCode.js +88 -11
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +1 -1
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +2 -2
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +1 -1
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +5 -5
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +4 -4
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile.js +7 -7
- package/dist/collection/components/sqm-empty/sqm-empty-view.js +1 -1
- package/dist/collection/components/sqm-form-message/FormMessage.stories.js +4 -0
- package/dist/collection/components/sqm-form-message/sqm-form-message.css +5 -0
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +8 -3
- package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +6 -6
- package/dist/collection/components/sqm-hero/Hero.stories.js +30 -0
- package/dist/collection/components/sqm-hero/sqm-hero-view.js +6 -5
- package/dist/collection/components/sqm-hero/sqm-hero.js +42 -8
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +10 -9
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +21 -21
- package/dist/collection/components/sqm-image/sqm-image-view.js +1 -1
- package/dist/collection/components/sqm-image/sqm-image.js +5 -5
- package/dist/collection/components/sqm-input-field/InputField.stories.js +6 -1
- package/dist/collection/components/sqm-input-field/sqm-input-field-view.js +1 -1
- package/dist/collection/components/sqm-input-field/sqm-input-field.js +6 -6
- package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +574 -0
- package/dist/collection/components/sqm-instant-access-registration/useInstantAccessRegistration.js +82 -0
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +2 -2
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +13 -13
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.js +6 -6
- package/dist/collection/components/sqm-link-button/LinkButton.stories.js +3 -4
- package/dist/collection/components/sqm-link-button/sqm-link-button-view.js +7 -4
- package/dist/collection/components/sqm-link-button/sqm-link-button.js +40 -6
- package/dist/collection/components/sqm-logout-current-user/LogoutCurrentUser.stories.js +17 -0
- package/dist/collection/components/{sqm-user-identifier/sqm-user-identifier-view.js → sqm-logout-current-user/sqm-logout-current-user-view.js} +7 -5
- package/dist/collection/components/{sqm-user-identifier/sqm-user-identifier.js → sqm-logout-current-user/sqm-logout-current-user.js} +31 -45
- package/dist/collection/components/sqm-logout-current-user/useLogoutCurrentUser.js +14 -0
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +4 -4
- package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu.js +2 -2
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +2 -2
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +2 -2
- 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-view.js +1 -1
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +4 -4
- package/dist/collection/components/sqm-popup-container/sqm-popup-container-view.js +2 -2
- package/dist/collection/components/sqm-popup-container/sqm-popup-container.js +5 -5
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +16 -16
- package/dist/collection/components/sqm-portal-container/PortalContainer.stories.js +12 -0
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +2 -1
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +40 -3
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +12 -12
- 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 +40 -24
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +1 -1
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +12 -12
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +3 -3
- package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +1 -1
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +18 -18
- package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +3 -2
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +1 -1
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +16 -16
- package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +6 -6
- package/dist/collection/components/sqm-portal-register/PortalRegister.stories.js +16 -2
- package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +5 -5
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +151 -25
- package/dist/collection/components/sqm-portal-register/usePortalRegister.js +5 -5
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +1 -1
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +35 -35
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +18 -18
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email-view.js +2 -2
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +4 -4
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +3 -3
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +3 -3
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +4 -4
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +3 -3
- package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +23 -0
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +27 -32
- package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +246 -3
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +5 -5
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +7 -7
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +4 -4
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +14 -14
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +6 -6
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +6 -6
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +16 -16
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +379 -18
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +1 -1
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +50 -50
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +3 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +4 -4
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +2 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +8 -8
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +12 -12
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +12 -12
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +12 -12
- package/dist/collection/components/sqm-route/sqm-route.js +1 -1
- package/dist/collection/components/sqm-scroll/sqm-scroll.js +9 -9
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +17 -17
- package/dist/collection/components/sqm-share-code/ShareCode.stories.js +4 -9
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +30 -31
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +4 -9
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +32 -33
- package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +3 -3
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +2 -2
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -2
- package/dist/collection/components/sqm-tab/sqm-tab.js +1 -1
- package/dist/collection/components/sqm-table-cell/sqm-table-cell.js +2 -2
- package/dist/collection/components/sqm-tabs/sqm-tabs.js +1 -1
- package/dist/collection/components/sqm-task-card/DetailsView.js +1 -1
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +3 -3
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +36 -36
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +1 -1
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +2 -2
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +2 -2
- package/dist/collection/components/sqm-titled-section/sqm-portal-section-view.js +2 -2
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +6 -6
- package/dist/collection/components/sqm-user-name/sqm-user-name.js +4 -4
- package/dist/collection/components/views/EmailRegistration.stories.js +38 -3
- package/dist/collection/components/views/copy-text-view.js +44 -27
- package/dist/collection/components/views/email-registration-view.js +34 -7
- package/dist/collection/global/styles.js +6 -0
- package/dist/collection/global/styles.ts +6 -0
- package/dist/collection/stories/PortalTemplates.stories.js +2 -42
- package/dist/collection/stories/Widget.stories.js +24 -26
- package/dist/collection/utils/DefaultTemplateView.js +31 -0
- package/dist/collection/utils/TemplateView.js +13 -0
- package/dist/esm/{ShadowViewAddon-8acfeb00.js → ShadowViewAddon-86f7b900.js} +272 -86
- package/dist/esm/email-registration-view-0a11e959.js +77 -0
- package/dist/esm/{global-170c4499.js → global-9992475a.js} +9 -3
- package/dist/esm/{index.module-0ba0774e.js → index.module-bbce47bd.js} +210 -221
- package/dist/esm/loader.js +4 -5
- package/dist/esm/{luxon-1e38d7f1.js → luxon-f01e85fe.js} +1 -1
- package/dist/esm/mint-components.js +4 -5
- package/dist/esm/{re-render-22de5b23.js → re-render-88ac4fa7.js} +4 -4
- package/dist/esm/{sqm-asset-card-view-b2ac5a23.js → sqm-asset-card-view-9d93fbdd.js} +2 -2
- package/dist/esm/sqm-asset-card.entry.js +3 -4
- package/dist/esm/{sqm-big-stat_37.entry.js → sqm-big-stat_39.entry.js} +596 -295
- package/dist/esm/sqm-close-button-view-dc65b4e3.js +26 -0
- package/dist/esm/sqm-close-button.entry.js +37 -0
- package/dist/esm/sqm-empty_5.entry.js +15 -8
- package/dist/esm/sqm-form-message.entry.js +5 -2
- package/dist/esm/sqm-graphql-client-provider.entry.js +6 -7
- package/dist/esm/sqm-header-logo.entry.js +4 -4
- package/dist/esm/sqm-instant-access-registration.entry.js +154 -0
- package/dist/esm/sqm-leaderboard-rank.entry.js +6 -7
- package/dist/esm/{sqm-user-identifier-view-dbf71a5e.js → sqm-logout-current-user-view-2d740794.js} +8 -6
- package/dist/esm/sqm-logout-current-user.entry.js +58 -0
- package/dist/esm/{sqm-navigation-sidebar-item-view-5a4ac267.js → sqm-navigation-sidebar-item-view-debb6dfe.js} +4 -4
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +4 -5
- package/dist/esm/{sqm-navigation-sidebar-view-feb719ce.js → sqm-navigation-sidebar-view-414bcb19.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar.entry.js +4 -5
- package/dist/esm/sqm-password-field.entry.js +6 -7
- package/dist/esm/sqm-popup-container.entry.js +7 -8
- package/dist/esm/{sqm-portal-container-view-83b417f0.js → sqm-portal-container-view-ab89c6cc.js} +4 -3
- package/dist/esm/{sqm-portal-email-verification-view-889fcc01.js → sqm-portal-email-verification-view-a93d12ca.js} +2 -2
- package/dist/esm/sqm-portal-email-verification.entry.js +16 -17
- package/dist/esm/{sqm-portal-forgot-password-view-9970dee2.js → sqm-portal-forgot-password-view-41afcace.js} +2 -2
- package/dist/esm/sqm-portal-forgot-password.entry.js +13 -14
- package/dist/esm/sqm-portal-logout.entry.js +4 -5
- package/dist/esm/{sqm-portal-profile-view-ac955752.js → sqm-portal-profile-view-1022dd7b.js} +3 -3
- package/dist/esm/sqm-portal-profile.entry.js +16 -17
- package/dist/esm/sqm-portal-protected-route.entry.js +9 -10
- package/dist/esm/sqm-portal-registration-form.entry.js +25 -26
- package/dist/esm/{sqm-portal-reset-password-view-1f0f3bf8.js → sqm-portal-reset-password-view-0df781f6.js} +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +17 -18
- package/dist/esm/{sqm-portal-verify-email-view-8d453021.js → sqm-portal-verify-email-view-1db4fae6.js} +3 -3
- package/dist/esm/sqm-portal-verify-email.entry.js +11 -12
- package/dist/esm/sqm-referral-table_11.entry.js +39 -40
- package/dist/esm/sqm-referred-registration.entry.js +91 -12
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +2 -2
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -5
- package/dist/esm/sqm-rewards-table_9.entry.js +35 -36
- package/dist/esm/sqm-stencilbook.entry.js +541 -336
- package/dist/esm/sqm-tab.entry.js +3 -4
- package/dist/esm/sqm-tabs.entry.js +5 -6
- package/dist/esm/{sqm-text-span-view-2f7d6d14.js → sqm-text-span-view-8d140661.js} +1 -1
- package/dist/esm/sqm-text-span.entry.js +2 -2
- package/dist/esm/{stencil-hooks.module-b48b45ec.js → stencil-hooks.module-14b87f98.js} +1 -1
- package/dist/esm/{useChildElements-fd458906.js → useChildElements-ae207f6d.js} +3 -3
- package/dist/esm/useInstantAccessRegistration-175820dc.js +85 -0
- package/dist/esm/{useReferralTable-a3d6051e.js → useReferralTable-3aa578fa.js} +9 -9
- package/dist/esm/{useRegistrationFormState-29e30121.js → useRegistrationFormState-7bf6c145.js} +3 -3
- package/dist/esm-es5/ShadowViewAddon-86f7b900.js +1 -0
- package/dist/esm-es5/email-registration-view-0a11e959.js +1 -0
- package/dist/esm-es5/{global-170c4499.js → global-9992475a.js} +2 -2
- package/dist/esm-es5/index.module-bbce47bd.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-1e38d7f1.js → luxon-f01e85fe.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-22de5b23.js → re-render-88ac4fa7.js} +1 -1
- package/dist/esm-es5/sqm-asset-card-view-9d93fbdd.js +1 -0
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -0
- package/dist/esm-es5/sqm-close-button-view-dc65b4e3.js +1 -0
- package/dist/esm-es5/sqm-close-button.entry.js +1 -0
- 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 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user-view-2d740794.js +1 -0
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-debb6dfe.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-view-feb719ce.js → sqm-navigation-sidebar-view-414bcb19.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-ab89c6cc.js +1 -0
- package/dist/esm-es5/{sqm-portal-email-verification-view-889fcc01.js → sqm-portal-email-verification-view-a93d12ca.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-41afcace.js +1 -0
- 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-1022dd7b.js +1 -0
- 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-1f0f3bf8.js → sqm-portal-reset-password-view-0df781f6.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email-view-1db4fae6.js +1 -0
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-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-2f7d6d14.js → sqm-text-span-view-8d140661.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-b48b45ec.js → stencil-hooks.module-14b87f98.js} +1 -1
- package/dist/esm-es5/{useChildElements-fd458906.js → useChildElements-ae207f6d.js} +1 -1
- package/dist/esm-es5/useInstantAccessRegistration-175820dc.js +1 -0
- package/dist/esm-es5/{useReferralTable-a3d6051e.js → useReferralTable-3aa578fa.js} +1 -1
- package/dist/esm-es5/useRegistrationFormState-7bf6c145.js +1 -0
- package/dist/mint-components/global/styles.ts +6 -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-0076de9e.js +1 -0
- package/dist/mint-components/{p-64242338.system.js → p-082fe308.system.js} +1 -1
- package/dist/mint-components/p-0ab63c5d.system.entry.js +1 -0
- package/dist/mint-components/p-0bf5a9b8.system.entry.js +1 -0
- package/dist/mint-components/p-0f59af44.system.entry.js +1 -0
- package/dist/mint-components/p-11ee41b2.entry.js +9 -0
- package/dist/mint-components/p-11f90784.entry.js +13 -0
- package/dist/mint-components/{p-7d31f692.js → p-128c36cb.js} +1 -1
- package/dist/mint-components/p-1437b793.system.js +1 -0
- package/dist/mint-components/p-16394ed3.system.entry.js +1 -0
- package/dist/mint-components/{p-96b05458.system.entry.js → p-16a009a5.system.entry.js} +1 -1
- package/dist/mint-components/{p-9cdf8d74.entry.js → p-192d008d.entry.js} +2 -2
- package/dist/mint-components/p-194d5ee8.system.entry.js +1 -0
- package/dist/mint-components/p-1c9d83b4.entry.js +1 -0
- package/dist/mint-components/p-1db4e037.system.entry.js +1 -0
- package/dist/mint-components/p-1fdf691b.js +1 -0
- package/dist/mint-components/{p-7d7baf55.entry.js → p-230ee2cf.entry.js} +2 -2
- package/dist/mint-components/p-25233df5.js +1 -0
- package/dist/mint-components/p-29edd49c.system.js +1 -0
- package/dist/mint-components/{p-3c189cea.system.js → p-2b6c19e0.system.js} +1 -1
- package/dist/mint-components/p-2bf86715.js +1 -0
- package/dist/mint-components/p-2de46e95.system.entry.js +1 -0
- package/dist/mint-components/p-3036cf58.system.js +1 -0
- package/dist/mint-components/p-307ef2b0.system.js +1 -0
- package/dist/mint-components/p-33f0d220.system.js +1 -0
- package/dist/mint-components/{p-d6c78b10.entry.js → p-399a1963.entry.js} +2 -2
- package/dist/mint-components/{p-b79c0e38.system.js → p-3cc28285.system.js} +1 -1
- package/dist/mint-components/p-3d34ec61.system.js +1 -0
- package/dist/mint-components/p-438599c9.entry.js +1 -0
- package/dist/mint-components/p-44dad7ec.entry.js +1 -0
- package/dist/mint-components/p-44f77c0b.system.entry.js +1 -0
- package/dist/mint-components/p-45b73581.system.js +1 -0
- package/dist/mint-components/p-46be1518.system.js +1 -0
- package/dist/mint-components/p-474aa3f6.entry.js +1 -0
- package/dist/mint-components/{p-bb6f60a6.system.js → p-4f775e84.system.js} +1 -1
- package/dist/mint-components/p-4fb813da.entry.js +1 -0
- package/dist/mint-components/p-539f8759.system.js +1 -0
- package/dist/mint-components/{p-bd63ef52.system.js → p-56525896.system.js} +1 -1
- package/dist/mint-components/p-56a7983b.js +1 -0
- package/dist/mint-components/{p-9076f688.js → p-58778ecb.js} +1 -1
- package/dist/mint-components/p-58852f54.entry.js +1 -0
- package/dist/mint-components/{p-f8dd6bac.js → p-5d0c9424.js} +1 -1
- package/dist/mint-components/p-5df5e5f9.system.entry.js +1 -0
- package/dist/mint-components/p-5e4833bf.system.js +1 -0
- package/dist/mint-components/p-608f0ed5.js +1 -0
- package/dist/mint-components/p-6147a73f.entry.js +1 -0
- package/dist/mint-components/{p-a59be693.js → p-67abcc4a.js} +4 -4
- package/dist/mint-components/p-6cdd171b.entry.js +1 -0
- package/dist/mint-components/p-6ec0be2a.entry.js +1 -0
- package/dist/mint-components/p-71584f5f.system.entry.js +1 -0
- package/dist/mint-components/p-744a6dac.system.js +1 -0
- package/dist/mint-components/p-75ddf3ca.js +1 -0
- package/dist/mint-components/p-79d72296.system.entry.js +1 -0
- package/dist/mint-components/p-79da7f18.js +1 -0
- package/dist/mint-components/p-7d3414ba.system.entry.js +1 -0
- package/dist/mint-components/p-7f8f0db3.entry.js +1 -0
- package/dist/mint-components/p-8bc630b0.system.entry.js +1 -0
- package/dist/mint-components/{p-0c7a3116.system.entry.js → p-8e649005.system.entry.js} +1 -1
- package/dist/mint-components/p-8f3486f6.entry.js +187 -0
- package/dist/mint-components/{p-ed801cb7.js → p-901f5b80.js} +1 -1
- package/dist/mint-components/p-922578e4.system.js +1 -0
- package/dist/mint-components/p-92cb27b6.entry.js +1 -0
- package/dist/mint-components/p-9907bc8a.js +1 -0
- package/dist/mint-components/p-9b2e0181.js +268 -0
- package/dist/mint-components/p-9b4eaec3.system.entry.js +1 -0
- package/dist/mint-components/{p-657acf81.system.js → p-9e2e4fbe.system.js} +1 -1
- package/dist/mint-components/p-9eae314d.entry.js +1 -0
- package/dist/mint-components/p-9fc8505c.entry.js +1 -0
- package/dist/mint-components/p-a217deee.js +1 -0
- package/dist/mint-components/p-a35aa347.entry.js +1 -0
- package/dist/mint-components/{p-9d9da716.js → p-a44dff0a.js} +1 -1
- package/dist/mint-components/p-a6c68191.entry.js +1 -0
- package/dist/mint-components/p-aaeeec70.system.entry.js +1 -0
- package/dist/mint-components/{p-8f58a603.system.js → p-ad7d5f56.system.js} +1 -1
- package/dist/mint-components/{p-3cbdb360.system.entry.js → p-b668aa0b.system.entry.js} +1 -1
- package/dist/mint-components/p-bbe7d182.system.entry.js +1 -0
- package/dist/mint-components/p-bd86123f.entry.js +1 -0
- package/dist/mint-components/{p-96e98d06.system.js → p-c06048c9.system.js} +1 -1
- package/dist/mint-components/p-c5577dd7.system.js +1 -0
- package/dist/mint-components/p-c6795c0c.entry.js +1 -0
- package/dist/mint-components/p-c80304f8.system.entry.js +1 -0
- package/dist/mint-components/p-c8d74710.entry.js +1 -0
- package/dist/mint-components/p-c9ff4821.entry.js +1 -0
- package/dist/mint-components/p-cadf178d.entry.js +1 -0
- package/dist/mint-components/p-cb900cb6.system.js +1 -0
- package/dist/mint-components/p-cbe95ae4.system.entry.js +1 -0
- package/dist/mint-components/p-cd9e6c32.system.entry.js +1 -0
- package/dist/mint-components/p-d349add6.system.entry.js +1 -0
- package/dist/mint-components/{p-25254dd1.js → p-d576140e.js} +1 -1
- package/dist/mint-components/p-d5a32584.entry.js +1 -0
- package/dist/mint-components/p-d6d40daa.system.entry.js +1 -0
- package/dist/mint-components/p-db24ac64.js +1 -0
- package/dist/mint-components/p-db27e30b.js +1 -0
- package/dist/mint-components/{p-085290c7.system.entry.js → p-e341e670.system.entry.js} +1 -1
- package/dist/mint-components/p-e4ed1803.entry.js +1 -0
- package/dist/mint-components/p-e56cabdd.system.js +1 -0
- package/dist/mint-components/p-e704842c.js +1 -0
- package/dist/mint-components/p-e753d5f0.system.entry.js +1 -0
- package/dist/mint-components/p-ee469a91.entry.js +1 -0
- package/dist/mint-components/p-ee4cbecb.entry.js +1 -0
- package/dist/mint-components/{p-a90b4c3f.js → p-efd129de.js} +1 -1
- package/dist/mint-components/{p-70263662.system.js → p-f1aed7cc.system.js} +2 -2
- package/dist/mint-components/p-f2724390.system.entry.js +1 -0
- package/dist/mint-components/p-f2944edb.system.entry.js +1 -0
- package/dist/mint-components/p-f665d57c.system.entry.js +1 -0
- package/dist/mint-components/{p-da70e75d.entry.js → p-f82bb604.entry.js} +1 -1
- package/dist/mint-components/p-fb93c962.js +1 -0
- package/dist/mint-components/p-fd5d6181.system.entry.js +1 -0
- package/dist/mint-components/{p-d9643307.system.entry.js → p-ff3b0ece.system.entry.js} +1 -1
- 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 +2 -2
- package/dist/types/components/sqm-brand/sqm-brand.d.ts +3 -3
- package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +2 -2
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +5 -5
- package/dist/types/components/sqm-close-button/CloseButton.stories.d.ts +8 -0
- package/dist/types/components/sqm-close-button/sqm-close-button-view.d.ts +5 -0
- package/dist/types/components/sqm-close-button/sqm-close-button.d.ts +14 -0
- package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +15 -4
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code-view.d.ts +6 -0
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +70 -20
- package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +9 -2
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +1 -1
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +3 -3
- package/dist/types/components/sqm-edit-profile/sqm-edit-profile.d.ts +7 -7
- package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +1 -0
- package/dist/types/components/sqm-form-message/sqm-form-message.d.ts +4 -2
- package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +3 -3
- package/dist/types/components/sqm-hero/Hero.stories.d.ts +2 -0
- package/dist/types/components/sqm-hero/sqm-hero-view.d.ts +1 -0
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +12 -5
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +13 -13
- package/dist/types/components/sqm-image/sqm-image.d.ts +4 -4
- package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +4 -4
- package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +111 -0
- package/dist/types/components/sqm-instant-access-registration/useInstantAccessRegistration.d.ts +11 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +10 -10
- package/dist/types/components/sqm-leaderboard-rank/sqm-leaderboard-rank.d.ts +5 -5
- package/dist/types/components/sqm-link-button/sqm-link-button-view.d.ts +2 -2
- package/dist/types/components/sqm-link-button/sqm-link-button.d.ts +10 -3
- package/dist/types/components/sqm-logout-current-user/sqm-logout-current-user-view.d.ts +6 -0
- package/dist/types/components/sqm-logout-current-user/sqm-logout-current-user.d.ts +28 -0
- package/dist/types/components/sqm-logout-current-user/useLogoutCurrentUser.d.ts +3 -0
- package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +2 -2
- package/dist/types/components/sqm-navigation-menu/sqm-navigation-menu.d.ts +2 -2
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +1 -1
- package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +2 -2
- package/dist/types/components/sqm-popup-container/sqm-popup-container.d.ts +5 -5
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +8 -8
- package/dist/types/components/sqm-portal-container/PortalContainer.stories.d.ts +1 -0
- package/dist/types/components/sqm-portal-container/sqm-portal-container-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +10 -3
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +6 -6
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +17 -13
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +6 -6
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +9 -9
- package/dist/types/components/sqm-portal-logout/sqm-portal-logout.d.ts +2 -1
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +8 -8
- package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +3 -3
- package/dist/types/components/sqm-portal-register/sqm-portal-register-view.d.ts +2 -0
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +40 -12
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +18 -18
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +9 -9
- 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 +3 -3
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +3 -3
- package/dist/types/components/sqm-referral-card/ReferralCard.stories.d.ts +5 -0
- package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +9 -0
- package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +45 -1
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +3 -3
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +1 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +2 -2
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +6 -6
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +3 -3
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +3 -3
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +8 -8
- package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +80 -6
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +25 -25
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +2 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +4 -4
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +6 -6
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +6 -6
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +6 -6
- package/dist/types/components/sqm-route/sqm-route.d.ts +1 -1
- package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +7 -7
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +12 -12
- package/dist/types/components/sqm-share-code/ShareCode.stories.d.ts +1 -1
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +13 -15
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +1 -1
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +13 -15
- package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +1 -1
- package/dist/types/components/sqm-tab/sqm-tab.d.ts +1 -1
- package/dist/types/components/sqm-table-cell/sqm-table-cell.d.ts +1 -1
- package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +1 -1
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +21 -21
- package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +2 -2
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +3 -3
- package/dist/types/components/sqm-user-name/sqm-user-name.d.ts +2 -2
- package/dist/types/components/views/EmailRegistration.stories.d.ts +3 -0
- package/dist/types/components/views/copy-text-view.d.ts +5 -2
- package/dist/types/components/views/email-registration-view.d.ts +10 -0
- package/dist/types/components.d.ts +1400 -846
- package/dist/types/global/styles.d.ts +1 -1
- package/dist/types/stories/PortalTemplates.stories.d.ts +0 -1
- package/dist/types/stories/Widget.stories.d.ts +16 -4
- package/dist/types/utils/DefaultTemplateView.d.ts +1 -0
- package/dist/types/utils/TemplateView.d.ts +1 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +4 -4
- package/dist/cjs/email-registration-view-a483578e.js +0 -52
- package/dist/cjs/sqm-hero-view-ddd1ef43.js +0 -149
- package/dist/cjs/sqm-hero.cjs.entry.js +0 -58
- package/dist/cjs/sqm-link-button-view-2ee270e0.js +0 -27
- package/dist/cjs/sqm-link-button.cjs.entry.js +0 -23
- package/dist/cjs/sqm-passwordless-registration.cjs.entry.js +0 -81
- package/dist/cjs/sqm-user-identifier.cjs.entry.js +0 -52
- package/dist/cjs/use-callback-86e9ac75.js +0 -7
- package/dist/cjs/usePasswordlessRegistration-983ebab7.js +0 -46
- package/dist/collection/components/sqm-passwordless-registration/sqm-passwordless-registration.js +0 -215
- package/dist/collection/components/sqm-passwordless-registration/usePasswordlessRegistration.js +0 -41
- package/dist/collection/components/sqm-user-identifier/UserIdentifier.stories.js +0 -17
- package/dist/collection/components/sqm-user-identifier/useUserIdentifer.js +0 -9
- package/dist/esm/email-registration-view-0ed79e24.js +0 -50
- package/dist/esm/sqm-hero-view-875c927d.js +0 -147
- package/dist/esm/sqm-hero.entry.js +0 -54
- package/dist/esm/sqm-link-button-view-90aeb27f.js +0 -25
- package/dist/esm/sqm-link-button.entry.js +0 -19
- package/dist/esm/sqm-passwordless-registration.entry.js +0 -77
- package/dist/esm/sqm-user-identifier.entry.js +0 -48
- package/dist/esm/use-callback-051c06c6.js +0 -5
- package/dist/esm/usePasswordlessRegistration-94f265fe.js +0 -44
- package/dist/esm-es5/ShadowViewAddon-8acfeb00.js +0 -1
- package/dist/esm-es5/email-registration-view-0ed79e24.js +0 -1
- package/dist/esm-es5/index.module-0ba0774e.js +0 -1
- package/dist/esm-es5/sqm-asset-card-view-b2ac5a23.js +0 -1
- package/dist/esm-es5/sqm-big-stat_37.entry.js +0 -1
- package/dist/esm-es5/sqm-hero-view-875c927d.js +0 -1
- package/dist/esm-es5/sqm-hero.entry.js +0 -1
- package/dist/esm-es5/sqm-link-button-view-90aeb27f.js +0 -1
- package/dist/esm-es5/sqm-link-button.entry.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-5a4ac267.js +0 -1
- package/dist/esm-es5/sqm-passwordless-registration.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-container-view-83b417f0.js +0 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-9970dee2.js +0 -1
- package/dist/esm-es5/sqm-portal-profile-view-ac955752.js +0 -1
- package/dist/esm-es5/sqm-portal-verify-email-view-8d453021.js +0 -1
- package/dist/esm-es5/sqm-user-identifier-view-dbf71a5e.js +0 -1
- package/dist/esm-es5/sqm-user-identifier.entry.js +0 -1
- package/dist/esm-es5/use-callback-051c06c6.js +0 -1
- package/dist/esm-es5/usePasswordlessRegistration-94f265fe.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-29e30121.js +0 -1
- package/dist/mint-components/p-03ad8655.js +0 -1
- package/dist/mint-components/p-045af9fb.system.entry.js +0 -1
- package/dist/mint-components/p-0597b64f.js +0 -1
- package/dist/mint-components/p-0a410d79.entry.js +0 -1
- package/dist/mint-components/p-0b6ee047.entry.js +0 -13
- package/dist/mint-components/p-0c5aadd5.system.entry.js +0 -1
- package/dist/mint-components/p-0d395b4f.system.entry.js +0 -1
- package/dist/mint-components/p-0e359e2a.entry.js +0 -9
- package/dist/mint-components/p-0eddbe09.entry.js +0 -1
- package/dist/mint-components/p-129c07fd.js +0 -268
- package/dist/mint-components/p-135c3cef.entry.js +0 -1
- package/dist/mint-components/p-16dda971.system.entry.js +0 -1
- package/dist/mint-components/p-18e7d7c6.system.entry.js +0 -1
- package/dist/mint-components/p-19244318.system.entry.js +0 -1
- package/dist/mint-components/p-19a3833c.system.entry.js +0 -1
- package/dist/mint-components/p-1b9c1909.entry.js +0 -1
- package/dist/mint-components/p-1d9cb344.entry.js +0 -1
- package/dist/mint-components/p-1f54fd38.system.js +0 -1
- package/dist/mint-components/p-221878e3.entry.js +0 -1
- package/dist/mint-components/p-26117a7d.system.js +0 -1
- package/dist/mint-components/p-2a7686a6.system.entry.js +0 -1
- package/dist/mint-components/p-2b9ae018.system.js +0 -1
- package/dist/mint-components/p-30239975.system.js +0 -1
- package/dist/mint-components/p-30689236.system.entry.js +0 -1
- package/dist/mint-components/p-30ec7d38.entry.js +0 -1
- package/dist/mint-components/p-3552b5c5.entry.js +0 -1
- package/dist/mint-components/p-35d6d322.system.js +0 -1
- package/dist/mint-components/p-3d339fa9.js +0 -1
- package/dist/mint-components/p-3f075d21.entry.js +0 -1
- package/dist/mint-components/p-3fe1485c.entry.js +0 -1
- package/dist/mint-components/p-4336876b.js +0 -1
- package/dist/mint-components/p-494829ff.js +0 -1
- package/dist/mint-components/p-4994b24c.system.js +0 -1
- package/dist/mint-components/p-4ace5def.system.entry.js +0 -1
- package/dist/mint-components/p-517a5669.system.js +0 -1
- package/dist/mint-components/p-56306cfd.system.js +0 -1
- package/dist/mint-components/p-58362d80.system.entry.js +0 -1
- package/dist/mint-components/p-58d65ecc.js +0 -1
- package/dist/mint-components/p-5a8866c0.system.entry.js +0 -1
- package/dist/mint-components/p-5de1699d.js +0 -1
- package/dist/mint-components/p-62306484.entry.js +0 -1
- package/dist/mint-components/p-689d022a.js +0 -1
- package/dist/mint-components/p-6c0409fe.system.entry.js +0 -1
- package/dist/mint-components/p-6ddc2a08.js +0 -1
- package/dist/mint-components/p-6e9cfc74.entry.js +0 -1
- package/dist/mint-components/p-71fe4061.js +0 -1
- package/dist/mint-components/p-72cb7a2e.system.entry.js +0 -1
- package/dist/mint-components/p-730db569.system.entry.js +0 -1
- package/dist/mint-components/p-76c339cd.system.js +0 -1
- package/dist/mint-components/p-7ef716a7.js +0 -1
- package/dist/mint-components/p-8322ad92.entry.js +0 -1
- package/dist/mint-components/p-83927707.js +0 -1
- package/dist/mint-components/p-8478a86e.system.entry.js +0 -1
- package/dist/mint-components/p-88ce114f.system.entry.js +0 -1
- package/dist/mint-components/p-8e0d9535.entry.js +0 -1
- package/dist/mint-components/p-8eb7dbfa.entry.js +0 -1
- package/dist/mint-components/p-919ea20a.system.entry.js +0 -1
- package/dist/mint-components/p-94607792.entry.js +0 -1
- package/dist/mint-components/p-97763c36.system.js +0 -1
- package/dist/mint-components/p-97988090.system.entry.js +0 -1
- package/dist/mint-components/p-97fa9d3e.system.entry.js +0 -1
- package/dist/mint-components/p-9cbc79f6.system.entry.js +0 -1
- package/dist/mint-components/p-a2f7a2f3.system.js +0 -1
- package/dist/mint-components/p-a7451d8c.entry.js +0 -1
- package/dist/mint-components/p-addba64e.entry.js +0 -1
- package/dist/mint-components/p-b27a0503.system.entry.js +0 -1
- package/dist/mint-components/p-ba3b21d2.system.entry.js +0 -1
- package/dist/mint-components/p-ba50a107.system.entry.js +0 -1
- package/dist/mint-components/p-bb451c6e.system.js +0 -1
- package/dist/mint-components/p-bd037777.entry.js +0 -1
- package/dist/mint-components/p-bf021a55.entry.js +0 -1
- package/dist/mint-components/p-bfd347b4.js +0 -1
- package/dist/mint-components/p-bfdbe27c.js +0 -1
- package/dist/mint-components/p-bfecc81e.system.js +0 -1
- package/dist/mint-components/p-c2c3d7fd.entry.js +0 -1
- package/dist/mint-components/p-c3765ad9.system.entry.js +0 -1
- package/dist/mint-components/p-c3777cf3.system.entry.js +0 -1
- package/dist/mint-components/p-c4b6454d.system.entry.js +0 -1
- package/dist/mint-components/p-d16b1f37.entry.js +0 -1
- package/dist/mint-components/p-d6fe7dee.entry.js +0 -171
- package/dist/mint-components/p-de055c6b.system.js +0 -1
- package/dist/mint-components/p-e633ae08.entry.js +0 -1
- package/dist/mint-components/p-eb25d055.system.js +0 -1
- package/dist/mint-components/p-f0a3c195.system.js +0 -1
- package/dist/mint-components/p-f27766d6.entry.js +0 -1
- package/dist/mint-components/p-f66b4b3a.js +0 -1
- package/dist/mint-components/p-f778fc9e.entry.js +0 -1
- package/dist/mint-components/p-f8bbbea1.js +0 -1
- package/dist/mint-components/p-f8d9e861.system.js +0 -1
- package/dist/types/components/sqm-passwordless-registration/sqm-passwordless-registration.d.ts +0 -37
- package/dist/types/components/sqm-passwordless-registration/usePasswordlessRegistration.d.ts +0 -9
- package/dist/types/components/sqm-user-identifier/sqm-user-identifier-view.d.ts +0 -6
- package/dist/types/components/sqm-user-identifier/sqm-user-identifier.d.ts +0 -30
- package/dist/types/components/sqm-user-identifier/useUserIdentifer.d.ts +0 -3
- /package/dist/types/components/{sqm-user-identifier/UserIdentifier.stories.d.ts → sqm-logout-current-user/LogoutCurrentUser.stories.d.ts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function o(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n["throw"](e))}catch(e){i(e)}}function l(e){e.done?r(e.value):a(e.value).then(o,s)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=o[0]&2?a["return"]:o[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;if(a=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;a=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(o[0]===6&&r.label<i[1]){r.label=i[1];i=o;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(o);break}if(i[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];a=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)n[a]=i[o];return n};import{r as registerInstance,h as h$1,c as Host}from"./index-17b4da69.js";import{m as h,u as useEffect,i as useState,o as d,j as useRef,b as browser,f as useReducer}from"./stencil-hooks.module-b48b45ec.js";import{i as intl}from"./global-170c4499.js";import{u as useCallback}from"./use-callback-051c06c6.js";import{i as isDemo,R,d as dist,O,W,f as fn,F as Fe,_,x,a as dn,g as gn,r as Ve,M as Me,D as De,t as He,c as mn}from"./index.module-0ba0774e.js";import{j as jsonpointer}from"./jsonpointer-388a7082.js";import{c as cjs}from"./cjs-bdfb4486.js";import"./mixins-f60a614c.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";import{a as useRequestRerender}from"./re-render-22de5b23.js";import{u as useChildElements}from"./useChildElements-fd458906.js";import"./luxon-1e38d7f1.js";import{g as getProps,a as getMissingProps,s as sanitizeUrlPath}from"./utils-334c1e34.js";import"./sqm-text-span-view-2f7d6d14.js";import{A as AsYouType}from"./AsYouType-46f67d0d.js";import{R as REGISTRATION_FORM_STATE_CONTEXT,u as useRegistrationFormState}from"./useRegistrationFormState-29e30121.js";import{b as useDemoBigStat,O as useBigStat,B as BigStatView,K as autoColorScaleCss,J as CardFeedView,j as CheckboxFieldView,C as CopyTextView,D as DropdownFieldView,E as EditProfileView,I as InputFieldView,Q as withShadowView,L as LeaderboardView,N as NameFieldsView,d as PortalChangePasswordView,i as PortalFooterView,P as PortalFrameView,e as PortalLoginView,f as PortalRegisterView,R as ReferralIframeView,U as demoRewardExchange,k as RewardExchangeView,V as pathToRegexp,a as useShareButton,S as ShareButtonView,u as useShareLink,c as StatContainerView,T as TaskCardView}from"./ShadowViewAddon-8acfeb00.js";import"./sqm-portal-container-view-83b417f0.js";var BigStat=function(){function e(e){registerInstance(this,e);this.flexReverse=false;this.ignored=true;h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e;var t=isDemo()?useDemoBigStat(this):useBigStat(this),r=t.props,n=t.label;var a=R();var i=!!((e=a.innerHTML)===null||e===void 0?void 0:e.trim());var o=h$1("slot",{name:"label"},i?h$1("slot",null):n);return h$1(BigStatView,Object.assign({},r,{labelSlot:o}))};return e}();function buildFontsCssUrl(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=e.map((function(e){return"family="+encodeURIComponent(e)})).join("&");return"https://fonts.googleapis.com/css2?"+r}var BrandComponent=function(){function e(e){registerInstance(this,e);h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e,t;function r(e){if(e){try{return autoColorScaleCss(e)}catch(e){}}return undefined}var n=(e=r(this.brandColor))!==null&&e!==void 0?e:"";var a=((t=this.brandFont)!==null&&t!==void 0?t:"Nunito Sans").trim()||undefined;useEffect((function(){if(!a){return}var e=document.createElement("link");e.setAttribute("href",buildFontsCssUrl(a));e.setAttribute("rel","stylesheet");document.head.appendChild(e);return function(){return document.head.removeChild(e)}}),[a]);var i=a!==null&&a!==void 0?a:"";return h$1(Host,null,h$1("style",null,'\n\n :host{\n display: contents;\n }\n /* \n Selects any element placed inside a slot\n - resets css variable inheritence for fonts\n \n */\n ::slotted(*) {\n --sl-font-sans: "'+i+'", arial;\n --sl-input-font-family: "'+i+'", arial;\n --sl-tooltip-font-family: "'+i+'", arial;\n font-family: "'+i+'", arial;\n\t\t\t\n '+n+"\n\n --sl-focus-ring-color-primary: var(--sl-color-primary-100);\n --sl-input-border-color-focus: var(--sl-color-primary-500);\n --sl-color-primary-hue: var(--sl-color-primary-500);\n }"),h$1("slot",null))};return e}();var CardFeed=function(){function e(e){registerInstance(this,e);this.ignored=true;this.width=347;this.gap=24;h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){return h$1(CardFeedView,Object.assign({},getProps(this)),h$1("slot",null))};return e}();var style={IconStyle:{display:"block",position:"absolute",top:"23px"},DivStyle:{marginLeft:"28px"},Details:{marginLeft:"28px"},Heading:{display:"inline-block"},Children:{display:"none"}};var sheet=createStyleSheet(style);var styleString=sheet.toString();function RequiredPropsError(e,t){var r=e.missingProps,n=e.heading,a=n===void 0?"There was a problem loading this section":n,i=e.subheading,o=i===void 0?"There was a technical problem that prevented this section from loading. Please contact us with the link to this page.":i,s=e.description,l=s===void 0?"Error occured while loading <{tagName}>. Values for the following attributes are missing:":s;if(!r)return false;var d=R();var u=useState(false),c=u[0],h=u[1];return h$1("sl-alert",{type:"danger",open:true},h$1("style",{type:"text/css"},styleString),h$1("div",{slot:"icon",class:sheet.classes.IconStyle},h$1("sl-icon",{name:"exclamation-octagon"})),h$1("div",{class:sheet.classes.DivStyle},h$1("h2",{class:sheet.classes.Heading},intl.formatMessage({id:"error-heading",defaultMessage:a})),h$1("p",null,intl.formatMessage({id:"error-subheading",defaultMessage:o}))),h$1("details",{class:sheet.classes.Details},h$1("summary",{onClick:function(){return h(!c)}},c?"Less":"More"," details"),h$1("p",null,intl.formatMessage({id:"error-description",defaultMessage:l},{tagName:d.tagName.toLowerCase()})),h$1("ul",null,r.map((function(e){return h$1("li",null,h$1("strong",null,e.attribute))})))),h$1("div",{class:sheet.classes.Children},t))}function useCheckboxField(e){var t;var r=d(REGISTRATION_FORM_STATE_CONTEXT);var n=useState(false),a=n[0],i=n[1];useEffect((function(){var t,n;if((t=r===null||r===void 0?void 0:r.initialData)===null||t===void 0?void 0:t[e.checkboxName]){i(!!((n=r===null||r===void 0?void 0:r.initialData)===null||n===void 0?void 0:n[e.checkboxName]))}}),[(t=r===null||r===void 0?void 0:r.initialData)===null||t===void 0?void 0:t[e.checkboxName]]);return{states:{registrationFormState:r,checked:a},callbacks:{setChecked:i}}}var CheckboxField=function(){function e(e){registerInstance(this,e);this.ignored=true;this.checkboxLabel="By signing up you agree to the {labelLink}";this.checkboxLabelLink="https://example.com";this.checkboxLabelLinkText="Terms and Conditions";this.errorMessage="Must be checked";this.checkboxOptional=false;h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=getMissingProps([{attribute:"checkbox-name",value:this.checkboxName}]);if(!isDemo()&&e){return h$1(RequiredPropsError,{missingProps:e,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:"})}var t=__assign({},getProps(this));var r=isDemo()?useCheckboxFieldDemo(this):useCheckboxField(this),n=r.states,a=r.callbacks;return h$1(CheckboxFieldView,{states:n,content:t,callbacks:a})};return e}();function useCheckboxFieldDemo(e){return cjs({states:{registrationFormState:{},checked:false},callbacks:{setChecked:function(){}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}var MessageLinkQuery=dist.gql(templateObject_1||(templateObject_1=__makeTemplateObject(["\n query ($programId: ID) {\n user: viewer {\n ... on User {\n referralCode(programId: $programId)\n }\n }\n }\n"],["\n query ($programId: ID) {\n user: viewer {\n ... on User {\n referralCode(programId: $programId)\n }\n }\n }\n"])));var WIDGET_ENGAGEMENT_EVENT=dist.gql(templateObject_2||(templateObject_2=__makeTemplateObject(["\n mutation loadEvent($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"],["\n mutation loadEvent($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));function useCouponCode(e){var t,r;var n=e.programId,a=n===void 0?O():n;var i=W();var o=_();var s=fn(MessageLinkQuery,{programId:a},!(i===null||i===void 0?void 0:i.jwt)).data;var l=Fe(WIDGET_ENGAGEMENT_EVENT)[0];var d=(r=(t=s===null||s===void 0?void 0:s.user)===null||t===void 0?void 0:t.referralCode)!==null&&r!==void 0?r:"...";var u=useState(false),c=u[0],h=u[1];function p(){navigator.clipboard.writeText(d);h(true);setTimeout((function(){return h(false)}),e.tooltiplifespan);l({eventMeta:{programId:a,id:i===null||i===void 0?void 0:i.id,accountId:i===null||i===void 0?void 0:i.accountId,type:"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",meta:{engagementMedium:o,couponMedium:"DIRECT"}}})}return __assign(__assign({},e),{onClick:p,open:c,copyString:d})}var CouponCode=function(){function e(e){registerInstance(this,e);this.tooltiptext="Copied to Clipboard";this.tooltiplifespan=1e3;this.textAlign="left";this.copyButtonLabel="Copy Coupon";this.buttonStyle="icon";this.errorText="Oops! Looks like we weren’t able to retrieve a code for you. Please try again later.";h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=getProps(this);var t=isDemo()?useDemoCouponCode(e):useCouponCode(e);return h$1(CopyTextView,Object.assign({},t))};return e}();function useDemoCouponCode(e){var t=useState(false),r=t[0],n=t[1];var a="THANKSJANE125uv125";return cjs({copyString:a,tooltiptext:e.tooltiptext,textAlign:e.textAlign,buttonStyle:e.buttonStyle,copyButtonLabel:e.copyButtonLabel,errorText:e.errorText,error:false,open:r,onClick:function(){navigator.clipboard.writeText(a);n(true);setTimeout((function(){return n(false)}),e.tooltiplifespan)}},e.demoData||{},{arrayMerge:function(e,t){return t}})}function DividedLayoutView(e,t){var r=function(){if(e.direction==="row"){return{"border-right":e.dividerStyle||"1px solid #EAEAEA"}}else{return{"border-bottom":e.dividerStyle||"1px solid #EAEAEA"}}};var n={LayoutContainer:{display:"contents","& > :not(:last-child)":__assign({},r()),"& > ::slotted(*:not(:last-child))":__assign({},r())}};var a="\n display: flex;\n flex: 1;\n box-sizing: border-box;\n flex-direction: "+e.direction+";\n background-color: var(--sqm-content-background);\n overflow-x: clip;\n "+(e.direction==="column"?"width: 100%; max-width: var(--sqm-portal-main-width);":"")+"\n ";var i="\n :host{\n "+a+"\n }\n sqm-divided-layout {\n "+a+"\n }\n ";var o=createStyleSheet(n);var s=o.toString();return h$1("div",{class:o.classes.LayoutContainer,part:"sqm-layout-container"},h$1("style",{type:"text/css"},i,s),t)}var DividedLayout=function(){function e(e){registerInstance(this,e);this.dividerStyle="1px solid #EAEAEA";h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){return h$1(DividedLayoutView,Object.assign({},getProps(this)),h$1("slot",null))};return e}();function useDropdownField(){var e=d(REGISTRATION_FORM_STATE_CONTEXT);return{states:{registrationFormState:e}}}var DropdownField=function(){function e(e){registerInstance(this,e);this.ignored=true;this.dropdownLabel="Select an option";this.errorMessage="Select an option";this.dropdownOptional=false;h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=getMissingProps([{attribute:"dropdown-name",value:this.dropdownName}]);if(!isDemo()&&e){return h$1(RequiredPropsError,{missingProps:e,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))}var t=__assign(__assign({},getProps(this)),{selectOptions:h$1("slot",null)});var r=(isDemo()?useDropdownFieldDemo(this):useDropdownField()).states;return h$1(DropdownFieldView,{states:r,content:t})};return e}();function useDropdownFieldDemo(e){return cjs({states:{registrationFormState:{}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}var GET_USER=dist.gql(templateObject_3||(templateObject_3=__makeTemplateObject(["\n query {\n viewer {\n ... on User {\n id\n accountId\n firstName\n lastName\n email\n countryCode\n }\n }\n }\n"],["\n query {\n viewer {\n ... on User {\n id\n accountId\n firstName\n lastName\n email\n countryCode\n }\n }\n }\n"])));var UPSERT_USER=dist.gql(templateObject_4||(templateObject_4=__makeTemplateObject(["\n mutation (\n $id: String!\n $accountId: String!\n $firstName: String!\n $lastName: String!\n ) {\n upsertUser(\n userInput: {\n id: $id\n accountId: $accountId\n firstName: $firstName\n lastName: $lastName\n }\n ) {\n firstName\n lastName\n }\n }\n"],["\n mutation (\n $id: String!\n $accountId: String!\n $firstName: String!\n $lastName: String!\n ) {\n upsertUser(\n userInput: {\n id: $id\n accountId: $accountId\n firstName: $firstName\n lastName: $lastName\n }\n ) {\n firstName\n lastName\n }\n }\n"])));var defaultFormState={currentRegion:"",firstName:"",lastName:"",errors:{},error:""};function useEditProfile(e){var t=W();var r=useState(false),n=r[0],a=r[1];var i=useState(""),o=i[0],s=i[1];var l=useState(undefined),d=l[0],u=l[1];var c=useState(defaultFormState),h=c[0],p=c[1];var f=fn(GET_USER,{},!(t===null||t===void 0?void 0:t.jwt));var m=Fe(UPSERT_USER),g=m[0],v=m[1];useEffect((function(){if((v===null||v===void 0?void 0:v.loading)||!n)return;if(v===null||v===void 0?void 0:v.errors){p((function(e){var t,r,n;return __assign(__assign({},e),{error:(n=(r=(t=v===null||v===void 0?void 0:v.errors)===null||t===void 0?void 0:t.response)===null||r===void 0?void 0:r.errors)===null||n===void 0?void 0:n[0].message})}))}else{u((function(e){var t;return __assign(__assign({},e),(t=v===null||v===void 0?void 0:v.data)===null||t===void 0?void 0:t.upsertUser)}));a(false)}}),[v===null||v===void 0?void 0:v.loading]);useEffect((function(){u((function(e){var t;return __assign(__assign({},e),(t=f===null||f===void 0?void 0:f.data)===null||t===void 0?void 0:t.viewer)}))}),[f===null||f===void 0?void 0:f.data]);useEffect((function(){var e;if((e=v===null||v===void 0?void 0:v.errors)===null||e===void 0?void 0:e.message){p((function(e){return __assign(__assign({},e),{error:"Network request failed."})}))}}),[v===null||v===void 0?void 0:v.errors]);return{states:{loading:(f===null||f===void 0?void 0:f.loading)||v.loading,submitDisabled:false,formState:h,user:d,showEdit:n,text:{editprofileheader:e.editprofileheader,editprofiletext:e.editprofiletext,firstnametext:e.firstnametext,lastnametext:e.lastnametext,canceltext:e.canceltext,updatetext:e.updatetext,currentregiontext:e.currentregiontext,showregion:e.showregion}},callbacks:{onSubmit:function(){if(h.firstName&&h.lastName){g({id:t===null||t===void 0?void 0:t.id,accountId:t===null||t===void 0?void 0:t.accountId,firstName:h.firstName,lastName:h.lastName});p((function(e){return __assign(__assign({},e),{errors:{}})}));return}var e={};if(!h.firstName){e["firstName"]={message:"Field can't be empty"}}if(!h.lastName){e["lastName"]={message:"Field can't be empty"}}if(e!=={}){p((function(e){return __assign(__assign({},e),{error:"Please correct the errors below to update your profile."})}))}p((function(t){return __assign(__assign({},t),{errors:e})}))},resetForm:function(){var e,t,r,n,a,i;var o=((t=(e=f===null||f===void 0?void 0:f.data)===null||e===void 0?void 0:e.viewer)===null||t===void 0?void 0:t.countryCode)?intl.formatDisplayName(f.data.viewer.countryCode,{type:"region"}):"";u(__assign(__assign({},(r=f.data)===null||r===void 0?void 0:r.viewer),(n=v.data)===null||n===void 0?void 0:n.upsertUser));p(__assign(__assign(__assign(__assign({},defaultFormState),(a=f.data)===null||a===void 0?void 0:a.viewer),(i=v.data)===null||i===void 0?void 0:i.upsertUser),{currentRegion:o}))},onChange:function(e){var t=e.target,r=t.name,n=t.value;p((function(e){var t;return __assign(__assign({},e),(t={},t[r]=n,t))}))},setShowEdit:a}}}var sqmEditProfileCss=".ErrorStyles::part(base){background:var(--sl-color-danger-10);border-color:var(--sl-color-danger-500);outline:var(--sl-color-danger-500)}.ErrorStyles:host{--something-random:red;--focus-ring:0 0 0 var(--sl-focus-ring-width) red !important}.ErrorStyles::part(input){color:var(--sl-color-danger-500)}.ErrorStyles::part(input):-webkit-autofill,.ErrorStyles::part(input):-webkit-autofill:hover,.ErrorStyles::part(input):-webkit-autofill:focus,.ErrorStyles::part(input):-webkit-autofill:active{-webkit-box-shadow:0 0 0 var(--sl-input-height-large) var(--sl-input-background-color-hover) inset !important;box-shadow:0 0 0 var(--sl-input-height-large) var(--sl-input-background-color-hover) inset !important;-webkit-text-fill-color:var(--sl-color-danger-500)}.ErrorStyles::part(help-text){color:var(--sl-color-danger-500)}:host{display:block}:host([hidden]){display:none}.FormWrapper>:not(:first-child){margin-top:54px}.FormSection{width:100%}.FormSection>:not(:first-child){margin-top:16px}.ButtonWrapper{display:-ms-flexbox;display:flex;margin-top:24px;-ms-flex-pack:end;justify-content:flex-end}.ButtonWrapper>:not(:first-child){margin-left:var(--sl-font-size-x-small)}.CardWrapper{-webkit-box-sizing:border-box;box-sizing:border-box;background:var(--sl-color-white);padding:40px 30px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between}@media screen and (max-width: 499px){.CardWrapper{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}}@media screen and (max-width: 880px){.CardWrapper.ShowEdit{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:end;align-items:flex-end}}";var EditProfile=function(){function e(e){registerInstance(this,e);this.ignored=true;h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=isDemo()?useEditProfileDemo(getProps(this)):useEditProfile(getProps(this));return h$1(EditProfileView,Object.assign({},e))};return e}();function useEditProfileDemo(e){return cjs({states:{loading:false,submitDisabled:false,formState:{currentRegion:"Canada",firstName:"Bill",lastName:"Bob",errors:{},error:"An error string"},user:{firstName:"Bill",lastName:"Bob",email:"billbob@example.com"},showEdit:false,text:{editprofileheader:e.editprofileheader?e.editprofileheader:"Edit Profile",editprofiletext:e.editprofiletext?e.editprofiletext:"Update your profile.",firstnametext:e.firstnametext?e.firstnametext:"First Name",lastnametext:e.lastnametext?e.lastnametext:"Last Name",canceltext:e.canceltext?e.canceltext:"Cancel",updatetext:e.updatetext?e.updatetext:"Update",currentregiontext:e.currentregiontext?e.currentregiontext:"Region",showregion:true}},callbacks:{onSubmit:function(e){console.log(e)},resetForm:function(){console.log("reset")},onChange:function(){console.log("change")},setShowEdit:function(e){console.log(e)}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}EditProfile.style=sqmEditProfileCss;function HeroImageView(e,t){var r=Boolean((e.header||e.description||e.buttonText)&&e.layout==="overlay");var n={Container:{position:"relative","&:before":{content:r?'""':"",width:"100%",height:"100%",position:"absolute",background:e.overlayColor||"var(--sl-color-primary-900)",opacity:e.overlayOpacity}},Image:{display:"block",width:"100%",height:"100%",maxWidth:"max-content",objectFit:"cover",margin:"auto"},Background:{backgroundImage:"url("+e.imageUrl+")",backgroundSize:"cover",backgroundPosition:e.imagePos||"center",display:"flex",justifyContent:"center",alignItems:"center"},Overlay:{zIndex:"1",padding:"calc(var(--sl-spacing-"+e.paddingText+") + var(--sl-spacing-"+e.paddingImage+"))",textAlign:"center",color:e.textColor||"var(--sl-color-neutral-0)",lineHeight:"var(--sl-line-height-dense)","@media (max-width: 599px)":{padding:"var(--sl-spacing-"+e.paddingText+")"}},Column:{display:"flex",background:e.backgroundColor||"",flexDirection:e.imagePos==="right"?"row-reverse":"row",lineHeight:"var(--sl-line-height-dense)",color:e.textColor||"var(--sl-color-neutral-900)","& .image-area":{width:e.imagePercentage?e.imagePercentage+"%":"50%",padding:"var(--sl-spacing-"+e.paddingImage+")",boxSizing:"border-box","@media (max-width: 599px)":{width:"100%"}},"& .text-area":{width:e.imagePercentage?100-e.imagePercentage+"%":"50%",padding:"var(--sl-spacing-"+e.paddingText+")",alignSelf:"center",boxSizing:"border-box","@media (max-width: 599px)":{width:"100%",textAlign:"center",padding:"calc(0.5*var(--sl-spacing-"+e.paddingText+"))"}},"@media (max-width: 599px)":{flexDirection:e.imageMobilePos==="bottom"?"column-reverse":"column"}},Header:{fontSize:"var(--sl-font-size-xxx-large)",fontWeight:"var(--sl-font-weight-bold)","@media (max-width: 599px)":{fontSize:"var(--sl-font-size-xx-large)"}},Description:{fontSize:"var(--sl-font-size-x-large)",margin:"var(--sl-spacing-small) 0","@media (max-width: 599px)":{fontSize:"var(--sl-font-size-large)"}},Button:{marginTop:"var(--sl-spacing-medium)","&::part(base)":{padding:"0 var(--sl-spacing-x-large)"},"@media (max-width: 599px)":{width:"100%"}}};var a=createStyleSheet(n);var i=a.toString();var o="\n :host{\n display: block;\n }";return h$1("div",{class:a.classes.Container,part:"sqm-hero-image-container"},h$1("style",{type:"text/css"},o,i),e.layout==="overlay"&&s(),e.layout==="columns"&&l());function s(){return h$1("div",{class:a.classes.Background},h$1("div",{class:a.classes.Overlay,part:"sqm-hero-image-overlay-container"},e.header&&h$1("div",{class:a.classes.Header},e.header),e.description&&h$1("div",{class:a.classes.Description},e.description),e.buttonText&&h$1("sl-button",{class:a.classes.Button,type:"primary",onClick:function(){return e.buttonNewTab?window.open(e.buttonLink):window.open(e.buttonLink,"_parent")}},e.buttonText),t&&t))}function l(){return h$1("div",null,h$1("div",{class:a.classes.Column},h$1("div",{class:"image-area"},h$1("img",{class:a.classes.Image,src:e.imageUrl,part:"sqm-hero-image"})),h$1("div",{class:"text-area",part:"sqm-hero-image-text-area"},e.header&&h$1("div",{class:a.classes.Header,part:"sqm-hero-image-header"},e.header),e.description&&h$1("div",{class:a.classes.Description,part:"sqm-hero-image-description"},e.description),e.buttonText&&h$1("sl-button",{exportparts:"base: sqm-hero-image-btn",class:a.classes.Button,type:"primary",onClick:function(){return e.buttonNewTab?window.open(e.buttonLink):window.open(e.buttonLink,"_parent")}},e.buttonText))))}}var HeroImage=function(){function e(e){registerInstance(this,e);this.overlayOpacity="0.75";this.layout="overlay";this.imagePercentage=50;this.imagePos="center";this.imageMobilePos="top";this.buttonNewTab=false;this.paddingText="xxxx-large";this.paddingImage="none";h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){return h$1(HeroImageView,Object.assign({},getProps(this)),h$1("slot",null))};return e}();var SqmHookStoryContainer=function(){function e(e){registerInstance(this,e);this.ignored=true;h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=this.hookStory;return h$1(e,null)};return e}();function useInputField(){var e=d(REGISTRATION_FORM_STATE_CONTEXT);return{states:{registrationFormState:e}}}var InputField=function(){function e(e){registerInstance(this,e);this.ignored=true;this.fieldType="text";this.errorMessage="Cannot be empty";this.fieldOptional=false;h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=__assign({},getProps(this));var t=getMissingProps([{attribute:"field-name",value:this.fieldName}]);if(!isDemo()&&t){return h$1(RequiredPropsError,{missingProps:t,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:"})}var r=(isDemo()?useInputFieldDemo(this):useInputField()).states;return h$1(InputFieldView,{states:r,content:e})};return e}();function useInputFieldDemo(e){return cjs({states:{registrationFormState:{}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}var GET_LEADERBOARD=dist.gql(templateObject_5||(templateObject_5=__makeTemplateObject(["\n query (\n $type: String!\n $filter: UserLeaderboardFilterInput\n $locale: RSLocale\n $limit: Int!\n ) {\n userLeaderboard(type: $type, filter: $filter) {\n dateModified\n rows(limit: $limit) {\n textValue(locale: $locale)\n firstName\n lastInitial\n rank {\n rank\n denseRank\n rowNumber\n }\n }\n }\n }\n"],["\n query (\n $type: String!\n $filter: UserLeaderboardFilterInput\n $locale: RSLocale\n $limit: Int!\n ) {\n userLeaderboard(type: $type, filter: $filter) {\n dateModified\n rows(limit: $limit) {\n textValue(locale: $locale)\n firstName\n lastInitial\n rank {\n rank\n denseRank\n rowNumber\n }\n }\n }\n }\n"])));var GET_RANK=dist.gql(templateObject_6||(templateObject_6=__makeTemplateObject(["\n query (\n $type: String!\n $filter: UserLeaderboardFilterInput\n $locale: RSLocale\n ) {\n viewer {\n ... on User {\n firstName\n lastInitial\n leaderboardRank(type: $type, filter: $filter) {\n textValue(locale: $locale)\n rank\n denseRank\n rowNumber\n }\n }\n }\n }\n"],["\n query (\n $type: String!\n $filter: UserLeaderboardFilterInput\n $locale: RSLocale\n ) {\n viewer {\n ... on User {\n firstName\n lastInitial\n leaderboardRank(type: $type, filter: $filter) {\n textValue(locale: $locale)\n rank\n denseRank\n rowNumber\n }\n }\n }\n }\n"])));function useLeaderboard(e){var t,r,n,a,i,o,s,l,d,u;var c=O();var h=(t=e.programId)!==null&&t!==void 0?t:c;var p=W();var f=x();var m=h?{type:e.leaderboardType,filter:{programId_eq:h}}:{type:e.leaderboardType,filter:{}};if(e.interval){m.filter["interval"]=e.interval}if(f){m["locale"]=f}if(e.maxRows>0){m["limit"]=e.maxRows}var g=fn(GET_LEADERBOARD,m,!(p===null||p===void 0?void 0:p.jwt)),v=g.data,b=g.loading;var y=fn(GET_RANK,m,!(p===null||p===void 0?void 0:p.jwt)).data;var w=(r=v===null||v===void 0?void 0:v.userLeaderboard)===null||r===void 0?void 0:r.rows;var _=E(w);var C=_===null||_===void 0?void 0:_.sort((function(e,t){return e.rank-t.rank}));function E(t){return t===null||t===void 0?void 0:t.flatMap((function(t){var r,n;return{textValue:t.textValue,firstName:t.firstName,lastInitial:t.lastInitial,rank:(r=t.rank)===null||r===void 0?void 0:r[e.rankType],rowNumber:(n=t.rank)===null||n===void 0?void 0:n.rowNumber}}))}var S={textValue:(a=(n=y===null||y===void 0?void 0:y.viewer)===null||n===void 0?void 0:n.leaderboardRank)===null||a===void 0?void 0:a.textValue,firstName:(i=y===null||y===void 0?void 0:y.viewer)===null||i===void 0?void 0:i.firstName,lastInitial:(o=y===null||y===void 0?void 0:y.viewer)===null||o===void 0?void 0:o.lastInitial,rank:(l=(s=y===null||y===void 0?void 0:y.viewer)===null||s===void 0?void 0:s.leaderboardRank)===null||l===void 0?void 0:l[e.rankType],rowNumber:(u=(d=y===null||y===void 0?void 0:y.viewer)===null||d===void 0?void 0:d.leaderboardRank)===null||u===void 0?void 0:u.rowNumber};return{states:{loading:b,hasLeaders:(C===null||C===void 0?void 0:C.length)>0,styles:e},data:{leaderboard:C,rankType:e.rankType,viewerRank:S},elements:{empty:e.empty,loadingstate:e.loadingstate}}}var Leaderboard=function(){function e(e){registerInstance(this,e);this.hideViewer=false;this.anonymousUser="Anonymous User";this.maxRows=10;this.ignored=true;h(this);withShadowView(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e={empty:h$1(EmptySlot,null),loadingstate:h$1(LoadingSlot,null),usersheading:this.usersheading,statsheading:this.statsheading,rankheading:this.rankheading,rankType:this.rankType,leaderboardType:this.leaderboardType,maxRows:this.maxRows,programId:this.programId,anonymousUser:this.anonymousUser,interval:this.interval,hideViewer:this.hideViewer,showRank:this.showRank};var t=__assign(__assign({},e),{demoData:this.demoData});var r=isDemo()?useLeaderboardDemo(t):useLeaderboard(e);return h$1(LeaderboardView,Object.assign({},r))};return e}();function EmptySlot(){return h$1("slot",{name:"empty"},h$1("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png","empty-state-header":"View your rank in the leaderboard","empty-state-text":"Be the first to refer a friend and reach the top of the leaderboard"}))}function LoadingSlot(){return h$1("slot",{name:"loading"},h$1("table",null,__spreadArrays(Array(10)).map((function(){return h$1("tr",null,h$1("td",null,h$1("sl-skeleton",null)))}))))}function useLeaderboardDemo(e){var t,r;var n=((r=(t=e.demoData)===null||t===void 0?void 0:t.data)===null||r===void 0?void 0:r.leaderboard)||[{firstName:"Viktor",lastInitial:"V",textValue:"82",rank:1,rowNumber:1},{firstName:"MF",lastInitial:"D",textValue:"73",rank:2,rowNumber:2},{firstName:"Freddie",lastInitial:"G",textValue:"64",rank:3,rowNumber:3},{firstName:"Benny",lastInitial:"B",textValue:"55",rank:4,rowNumber:4},{textValue:"46",rank:5,rowNumber:5}];return cjs({states:{loading:false,hasLeaders:true,styles:{usersheading:e.usersheading?e.usersheading:"Top referrers",statsheading:e.statsheading?e.statsheading:"New customers",rankheading:e.rankheading?e.rankheading:"Rank",anonymousUser:e.anonymousUser?e.anonymousUser:"Anonymous User",showRank:e.showRank,hideViewer:e.hideViewer}},data:{rankType:"rowNumber",leaderboard:n},elements:{empty:h$1(EmptySlot,null),loadingstate:h$1(LoadingSlot,null)}},e.demoData||{},{arrayMerge:function(e,t){return t}})}function useNameFields(e){var t=d(REGISTRATION_FORM_STATE_CONTEXT);return{states:{registrationFormState:t,content:{lastNameLabel:e.lastNameLabel,firstNameLabel:e.firstNameLabel}}}}var NameFields=function(){function e(e){registerInstance(this,e);this.ignored=true;this.firstNameLabel="First Name";this.lastNameLabel="Last Name";h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=(isDemo()?useNameFieldsDemo(this):useNameFields(this)).states;return h$1(NameFieldsView,{states:e})};return e}();function useNameFieldsDemo(e){return cjs({states:{validationErrors:[],content:{firstNameLabel:e.firstNameLabel,lastNameLabel:e.lastNameLabel}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}function NavigationMenuView(e){var t=e.states;var r=t.styles;return t.includeDropdown?h$1("sl-dropdown",{style:"margin-bottom: var(--sl-spacing-large)"},h$1("sl-button",{slot:"trigger",caret:true,onClick:e.callbacks.rerender,exportparts:"base: dropdownbutton-base"},r.menuLabel),h$1("sl-menu",{ref:function(t){if(e.ref.current===undefined){e.ref.current=t;e.callbacks.rerender()}}},h$1("slot",null))):""}function handleMenu(e){gn.push(e.detail.item.value)}function useNavigationMenu(e){var t=useRef();var r=dn(),n=r[1];var a=W();useEffect((function(){var e;(e=t.current)===null||e===void 0?void 0:e.addEventListener("sl-select",(function(e){return handleMenu(e)}))}),[t.current]);return{states:{includeDropdown:((a===null||a===void 0?void 0:a.id)||(a===null||a===void 0?void 0:a.accountId)||(a===null||a===void 0?void 0:a.jwt))!==undefined,styles:{menuLabel:e.menuLabel}},callbacks:{rerender:n},ref:t}}var sqmNavigationMenuCss=":host{display:block}:host([hidden]){display:none}.HeaderWrapper{width:100%;max-width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:var(--sl-spacing-small) var(--sl-spacing-large);-ms-flex-align:center;align-items:center;background-color:var(--sqm-header-background)}@media screen and (max-width: 499px){.HeaderWrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-pack:end;justify-content:flex-end;padding:0 var(--sl-spacing-x-small)}}";var NavigationMenu=function(){function e(e){registerInstance(this,e);this.ignored=true;h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=isDemo()?useNavigationMenuDemo(getProps(this)):useNavigationMenu(getProps(this));return h$1(Host,{slot:"sqm-navigation-menu"},h$1(NavigationMenuView,Object.assign({},e)))};return e}();function useNavigationMenuDemo(e){return cjs({states:{includeDropdown:true,styles:__assign(__assign({},e),{menuLabel:"Menu"})},callbacks:{rerender:function(){}},ref:{current:undefined}},e.demoData||{},{arrayMerge:function(e,t){return t}})}NavigationMenu.style=sqmNavigationMenuCss;function usePortalChangePassword(e){var t=this;var r,n,a,i,o,s,l;var d=Ve(),u=d[0],c=d[1],h=c.loading,p=c.errors,f=c.data;var m=useState(false),g=m[0],v=m[1];var b=useState(""),y=b[0],w=b[1];var x=useState(false),_=x[0],C=x[1];var E=W();var S=function(e){return __awaiter(t,void 0,void 0,(function(){var t,r,n,a,i;return __generator(this,(function(o){switch(o.label){case 0:C(false);n=(t=e.detail)===null||t===void 0?void 0:t.formData;n===null||n===void 0?void 0:n.forEach((function(e,t){jsonpointer.set(n,t,e)}));if(!(E===null||E===void 0?void 0:E.jwt)){w("Please log in again to change your password.");return[2]}if(n.password!==n.confirmPassword){w("Passwords do not match.");return[2]}w("");a={password:n.password};return[4,u(a)];case 1:i=o.sent();if(!(i instanceof Error)&&((r=i.changeManagedIdentityPassword)===null||r===void 0?void 0:r.success)){C(true)}return[2]}}))}))};return{states:{open:g,loading:h,success:_,error:y||((i=(a=(n=(r=p===null||p===void 0?void 0:p.response)===null||r===void 0?void 0:r.errors)===null||n===void 0?void 0:n[0])===null||a===void 0?void 0:a.extensions)===null||i===void 0?void 0:i.message)||((l=(s=(o=p===null||p===void 0?void 0:p.response)===null||o===void 0?void 0:o.errors)===null||s===void 0?void 0:s[0])===null||l===void 0?void 0:l.message),content:{modalChangePasswordHeader:e.modalChangePasswordHeader,cancelText:e.cancelText,changePasswordButtonText:e.changePasswordButtonText,passwordFieldLabel:e.passwordFieldLabel,confirmPasswordFieldLabel:e.confirmPasswordFieldLabel,successMessage:e.successMessage,portalChangePasswordHeader:e.portalChangePasswordHeader,portalChangePasswordButtonText:e.portalChangePasswordButtonText}},data:{},callbacks:{setOpen:v,submit:S}}}var PortalChangePassword=function(){function e(e){registerInstance(this,e);this.ignored=true;this.modalChangePasswordHeader="Change Password";this.cancelText="Cancel";this.changePasswordButtonText="Change Password";this.passwordFieldLabel="New Password";this.confirmPasswordFieldLabel="Confirm New Password";this.successMessage="Your password has been updated.";this.portalChangePasswordHeader="Password";this.portalChangePasswordButtonText="Change your password...";h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=isDemo()?usePortalChangePasswordDemo(this):usePortalChangePassword(this),t=e.states,r=e.callbacks;return h$1(PortalChangePasswordView,{states:t,callbacks:r})};return e}();function usePortalChangePasswordDemo(e){var t=useState(false),r=t[0],n=t[1];return cjs({states:{open:r,error:"",content:{modalChangePasswordHeader:e.modalChangePasswordHeader,cancelText:e.cancelText,changePasswordButtonText:e.changePasswordButtonText,passwordFieldLabel:e.passwordFieldLabel,confirmPasswordFieldLabel:e.confirmPasswordFieldLabel,successMessage:e.successMessage,portalChangePasswordHeader:e.portalChangePasswordHeader,portalChangePasswordButtonText:e.portalChangePasswordButtonText}},callbacks:{setOpen:function(e){return n(e)},submit:function(e){return console.log("Submit",e)}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}var PortalFooter=function(){function e(e){registerInstance(this,e);this.ignored=true;this.hideSupportText=false;this.supportEmail="support@example.com";this.supportText="For program support, contact {email}";this.hidePoweredBy=false;this.poweredByLink="https://saasquatch.com";this.paddingTop="large";this.paddingRight="large";this.paddingBottom="large";this.paddingLeft="large";h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){return h$1(PortalFooterView,Object.assign({},getProps(this)))};Object.defineProperty(e,"assetsDirs",{get:function(){return["../../assets"]},enumerable:false,configurable:true});return e}();function usePortalFrame(e,t){var r=dn(),n=r[1];return{data:{footer:e,header:t},callbacks:{rerender:n}}}var PortalFrame=function(){function e(e){registerInstance(this,e);this.ignored=true;this.notFullScreen=false;h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=h$1("slot",{name:"footer"});var t=h$1("slot",{name:"header"});var r=isDemo()?usePortalFrameDemo(e,t,this):usePortalFrame(e,t);return h$1(PortalFrameView,Object.assign({},r),h$1("slot",null))};return e}();function usePortalFrameDemo(e,t,r){return cjs({notFullScreen:true,data:{footer:e?e:h$1("span",null,"example@example.com"),header:t?t:h$1("div",{style:{display:"flex",flexDirection:"column"}},h$1("span",{style:{fontSize:"var(--sl-font-size-large)",fontWeight:"bold"}},"Portal Header"),h$1("span",{style:{fontSize:"var(--sl-font-size-small)"}},"A description for the portal"))},callbacks:{rerender:function(){}}},r.demoData||{},{arrayMerge:function(e,t){return t}})}function usePortalLogin(e){var t=this;var r,n,a,i,o,s,l;var d=Me(),u=d[0],c=d[1],h=c.loading,p=c.errors,f=c.data;var m=useState(""),g=m[0],v=m[1];var b=new URLSearchParams(gn.location.search);var y=b.get("nextPage");var w=function(r){return __awaiter(t,void 0,void 0,(function(){var t,n,a,i,o,s;return __generator(this,(function(l){switch(l.label){case 0:v("");a=r.detail.formData;a===null||a===void 0?void 0:a.forEach((function(e,t){jsonpointer.set(a,t,e)}));i={email:a.email,password:a.password};return[4,u(i)];case 1:o=l.sent();if(o instanceof Error){if((o===null||o===void 0?void 0:o.message)||((t=o===null||o===void 0?void 0:o["response"])===null||t===void 0?void 0:t["error"]))v("Network request failed.");return[2]}if((n=o.authenticateManagedIdentityWithEmailAndPassword)===null||n===void 0?void 0:n.token){b.delete("nextPage");s=sanitizeUrlPath(y||e.nextPage);gn.push(s.href)}return[2]}}))}))};var x=((i=(a=(n=(r=p===null||p===void 0?void 0:p.response)===null||r===void 0?void 0:r.errors)===null||n===void 0?void 0:n[0])===null||a===void 0?void 0:a.extensions)===null||i===void 0?void 0:i.message)||((l=(s=(o=p===null||p===void 0?void 0:p.response)===null||o===void 0?void 0:o.errors)===null||s===void 0?void 0:s[0])===null||l===void 0?void 0:l.message)||g;return{states:{loading:h,error:x,registerPath:e.registerPath,forgotPasswordPath:e.forgotPasswordPath},callbacks:{submit:w}}}var PortalLogin=function(){function e(e){registerInstance(this,e);this.ignored=true;this.nextPage="/";this.emailLabel="Email";this.passwordLabel="Password";this.submitLabel="Sign In";this.forgotPasswordPath="/forgotPassword";this.forgotPasswordLabel="Forgot Password?";this.registerLabel="Register";this.registerPath="/register";this.pageLabel="Sign in to your account";h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=isDemo()?useLoginDemo(this):usePortalLogin(this),t=e.states,r=e.callbacks;var n={forgotPasswordButton:h$1("slot",{name:"forgotPassword"},h$1("a",{onClick:function(){return gn.push(t.forgotPasswordPath)}},this.forgotPasswordLabel)),secondaryButton:h$1("slot",{name:"secondaryButton"},h$1("sl-button",{type:"text",disabled:t.loading,onClick:function(){return gn.push(t.registerPath)}},this.registerLabel)),emailLabel:this.emailLabel,passwordLabel:this.passwordLabel,submitLabel:this.submitLabel,pageLabel:this.pageLabel};return h$1(PortalLoginView,{states:t,callbacks:r,content:n})};return e}();function useLoginDemo(e){var t=this;return cjs({states:{error:"",loading:false,forgotPasswordPath:"/forgotPassword",registerPath:"/register"},callbacks:{submit:function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){console.log("submit");return[2]}))}))}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}function usePortalRegister(e){var t=this;var r,n,a,i,o,s,l,d,u;var c=useRef(null);var h=useRegistrationFormState({}),p=h.registrationFormState,f=h.setRegistrationFormState;var m=De(),g=m[0],v=m[1],b=v.loading,y=v.errors,w=v.data;useEffect((function(){if(!c.current)return;var e=c.current;e.addEventListener("sl-input",_);return function(){e.removeEventListener("sl-input",_)}}),[c.current]);var x=function(r){return __awaiter(t,void 0,void 0,(function(){var t,n,a,i,o,s,l,d,u,c;return __generator(this,(function(h){switch(h.label){case 0:n=r.target.getFormControls();a={};i={};n===null||n===void 0?void 0:n.forEach((function(e){if(!e.name)return;var t=e.name;var r=e.value;jsonpointer.set(a,t,r);if(e.required&&!r){jsonpointer.set(i,t,"Cannot be empty")}if(typeof e.validationError==="function"){var n=e.validationError;var o=n({control:e,key:t,value:r});if(o)jsonpointer.set(i,t,o)}}));if((e.confirmPassword||a.confirmPassword)&&a.password!==a.confirmPassword){i=__assign(__assign({},i),{confirmPassword:"Passwords do not match."})}if(Object.keys(i).length){f({loading:false,error:"",validationErrors:i});return[2]}f({loading:true,error:"",validationErrors:{}});o=a.email,s=a.password;delete a.email;delete a.password;delete a.confirmPassword;a=__assign({},a);l=e.redirectPath;d={email:o,password:s,formData:a,redirectPath:l};h.label=1;case 1:h.trys.push([1,3,,4]);return[4,g(d)];case 2:u=h.sent();if(u instanceof Error){throw u}f({loading:false,error:"",validationErrors:{}});if((t=u.registerManagedIdentityWithEmailAndPassword)===null||t===void 0?void 0:t.token){gn.push(e.nextPage)}return[3,4];case 3:c=h.sent();f({loading:false,error:"Network request failed.",validationErrors:{}});return[3,4];case 4:return[2]}}))}))};var _=useCallback((function(e){var t,r;var n=(r=(t=e.target)===null||t===void 0?void 0:t.type)===null||r===void 0?void 0:r.toLowerCase();if(n!=="tel")return;var a=new AsYouType("US");e.target.value=a.input(e.target.value)}),[]);var C="";if((r=y===null||y===void 0?void 0:y.response)===null||r===void 0?void 0:r["error"]){C="Network request failed"}else if((y===null||y===void 0?void 0:y.message)&&!((n=y===null||y===void 0?void 0:y.response)===null||n===void 0?void 0:n.errors.length)){C="Network request failed"}else{C=((s=(o=(i=(a=y===null||y===void 0?void 0:y.response)===null||a===void 0?void 0:a.errors)===null||i===void 0?void 0:i[0])===null||o===void 0?void 0:o.extensions)===null||s===void 0?void 0:s.message)||((u=(d=(l=y===null||y===void 0?void 0:y.response)===null||l===void 0?void 0:l.errors)===null||d===void 0?void 0:d[0])===null||u===void 0?void 0:u.message)||(p===null||p===void 0?void 0:p.error)}return{states:{loading:b,error:C,registrationFormState:p,confirmPassword:e.confirmPassword,hideInputs:e.hideInputs,loginPath:e.loginPath,disablePasswordValidation:e.disablePasswordValidation},callbacks:{submit:x,inputFunction:_},refs:{formRef:c}}}var PortalRegister=function(){function e(e){registerInstance(this,e);this.ignored=true;this.nextPage="/";this.redirectPath="/verifyEmail";this.emailLabel="Email";this.passwordLabel="Password";this.submitLabel="Register";this.loginLabel="Sign in";this.confirmPasswordLabel="Confirm Password";this.confirmPassword=false;this.disablePasswordValidation=false;this.hideInputs=false;this.pageLabel="Register";this.loginPath="/login";h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=isDemo()?useRegisterDemo(this):usePortalRegister(this),t=e.states,r=e.callbacks,n=e.refs;var a={formData:h$1("slot",{name:"formData"}),secondaryButton:h$1("slot",{name:"secondaryButton"},h$1("sl-button",{type:"text",disabled:t.loading,onClick:function(){return gn.push(t.loginPath)}},this.loginLabel)),terms:h$1("slot",{name:"terms"}),emailLabel:this.emailLabel,passwordLabel:this.passwordLabel,submitLabel:this.submitLabel,pageLabel:this.pageLabel,confirmPasswordLabel:this.confirmPasswordLabel};return h$1(PortalRegisterView,{states:t,callbacks:r,content:a,refs:n})};return e}();function useRegisterDemo(e){var t=this;return cjs({states:{error:"",loading:false,confirmPassword:e.confirmPassword,hideInputs:e.hideInputs||false,customPasswordField:false,loginPath:e.loginPath,disablePasswordValidation:e.disablePasswordValidation},callbacks:{submit:function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){console.log("submit");return[2]}))}))},inputFunction:function(){}},refs:{formRef:{}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}function ProgramExplainerView(e,t){var r={Container:{color:e.textColor||"var(--sl-color-neutral-900)",background:e.backgroundColor||""},Header:{fontSize:"var(--sl-font-size-x-large)",fontWeight:"var(--sl-font-weight-bold)",lineHeight:"var(--sl-line-height-dense)",marginBottom:"var(--sl-spacing-large)",textAlign:"center"},Grid:{display:"flex",flexDirection:"row",gap:"var(--sl-spacing-large)","@media (max-width: 499px)":{flexDirection:"column"}}};var n=createStyleSheet(r);var a=n.toString();var i="\n ::slotted(*){\n display: flex;\n width: 100%;\n }\n @media (max-width: 499px) {\n ::slotted(*){\n display: block;\n }\n }";return h$1("div",{class:n.classes.Container,part:"sqm-program-explainer-container"},h$1("style",{type:"text/css"},a,i),h$1("div",{class:n.classes.Header},h$1("div",{class:n.classes.Header,part:"sqm-program-explainer-header"},e.header)),h$1("div",{class:n.classes.Grid,part:"sqm-program-explainer-grid-container"},t))}var ProgramExplainer=function(){function e(e){registerInstance(this,e);this.ignored=true;h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){return h$1(ProgramExplainerView,Object.assign({},getProps(this)),h$1("slot",null))};return e}();function ProgramExplainerStepView(e){var t={Container:{display:"flex",flexDirection:"column",width:"100%",padding:"var(--sl-spacing-x-large)",lineHeight:"var(--sl-line-height-dense)",color:e.textColor||"var(--sl-color-neutral-900)",background:e.backgroundColor||"var(--sl-color-primary-50)","@media (max-width: 499px)":{flexDirection:"row",width:"auto",paddingBottom:"var(--sl-spacing-large)"}},Text:{"@media (max-width: 499px)":{marginLeft:"var(--sl-spacing-large)"}},Header:{fontSize:"var(--sl-font-size-large)",fontWeight:"var(--sl-font-weight-bold)",marginTop:"var(--sl-spacing-x-large)","@media (max-width: 499px)":{margin:"0"}},Description:{fontSize:"var(--sl-font-size-medium)",marginTop:"var(--sl-spacing-small)","@media (max-width: 499px)":{marginTop:"var(--sl-spacing-x-small)"}},Media:{width:"64px",height:"64px",borderRadius:"100%",objectFit:"cover",userSelect:"none",background:"#FFF",color:"var(--sl-color-primary-300)",fontSize:"26px",textAlign:"center",lineHeight:"72px"}};var r=createStyleSheet(t);var n=r.toString();return h$1("div",{class:r.classes.Container,part:"sqm-program-explainer-step-container"},h$1("style",{type:"text/css"},n),h$1("div",null,e.imageUrl?h$1("img",{class:r.classes.Media,src:e.imageUrl,part:"sqm-program-explainer-step-media"}):h$1("div",{class:r.classes.Media,part:"sqm-program-explainer-step-media"},h$1("sl-icon",{name:e.icon}))),h$1("div",{class:r.classes.Text},h$1("div",{class:r.classes.Header,part:"sqm-program-explainer-step-header"},e.header),h$1("div",{class:r.classes.Description,part:"sqm-program-explainer-step-description"},e.description)))}var ProgramExplainerStep=function(){function e(e){registerInstance(this,e);h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){return h$1(ProgramExplainerStepView,Object.assign({},getProps(this)))};return e}();var debug=browser("sq:useProgramMenu");var UPDATE_PROGRAM_EVENT="sq:update-program-id";function useProgramMenu(e){var t=O();var r=R();debug({programId:t,props:e});var n=useRef();var a=dn(),i=a[1];useEffect((function(){var e;(e=n.current)===null||e===void 0?void 0:e.addEventListener("sl-select",(function(e){var t=e.detail.item.value;r.dispatchEvent(new CustomEvent(UPDATE_PROGRAM_EVENT,{detail:t,bubbles:true,composed:true}))}))}),[n.current]);return{data:{programId:t},callbacks:{rerender:i},ref:n}}var ProgramMenu=function(){function e(e){registerInstance(this,e);this.ignored=true;h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=useProgramMenu(getProps(this)),t=e.data,r=e.ref;return h$1(Host,{style:{display:"contents"}},h$1("sl-select",{style:{paddingBottom:"var(--sl-spacing-large)"},value:t.programId,ref:function(e){return r.current=e}},h$1("slot",null)))};return e}();var style$1={Container:{border:"1px solid var(--sl-color-neutral-300)",borderRadius:"var(--sl-border-radius-large)",color:"var(--sl-color-neutral-900)",background:"var(--sl-color-neutral-0)"},EndContainer:{display:"flex",flexDirection:"column",alignItems:"center",padding:"0 var(--sl-spacing-large)"},ColumnContainer:{"& p":{margin:"0"},display:"flex","& .left":{boxSizing:"border-box",width:"50%",padding:"var(--sl-spacing-large)",paddingRight:"var(--sl-spacing-medium)","@media (max-width: 499px)":{width:"100%"}},"& .right":{boxSizing:"border-box",width:"50%",padding:"var(--sl-spacing-large)",paddingLeft:"var(--sl-spacing-medium)","@media (max-width: 499px)":{width:"100%"}},"@media (max-width: 499px)":{flexDirection:"column",border:"none"}}};var sheet$1=createStyleSheet(style$1);var styleString$1=sheet$1.toString();var vanillaStyle="\n :host{\n display: block; \n }\n ";function ReferralCardView(e){return h$1("div",{part:"sqm-referral-card-container",class:sheet$1.classes.Container},h$1("style",{type:"text/css"},styleString$1,vanillaStyle),h$1("div",{class:sheet$1.classes.EndContainer},e.slots.header),h$1("div",{part:"sqm-columns",class:sheet$1.classes.ColumnContainer},h$1("div",{class:"left",style:{alignSelf:e.verticalAlignment}},e.slots.left),h$1("div",{class:"right",style:{alignSelf:e.verticalAlignment}},e.slots.right)),h$1("div",{class:sheet$1.classes.EndContainer},e.slots.footer))}var ReferralCard=function(){function e(e){registerInstance(this,e);this.ignored=true;this.verticalAlignment="start";h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e={left:h$1("slot",{name:"left"}),right:h$1("slot",{name:"right"}),header:h$1("slot",{name:"header"}),footer:h$1("slot",{name:"footer"})};return h$1(ReferralCardView,Object.assign({},getProps(this),{slots:e}),h$1("slot",null))};return e}();var GET_USER_DETAILS=dist.gql(templateObject_7||(templateObject_7=__makeTemplateObject(["\n query getUser($programId: ID) {\n viewer {\n ... on User {\n referralCode(programId: $programId)\n }\n }\n }\n"],["\n query getUser($programId: ID) {\n viewer {\n ... on User {\n referralCode(programId: $programId)\n }\n }\n }\n"])));function useReferralIframe(e){var t;var r=O();var n=W();var a=fn(GET_USER_DETAILS,{programId:r},!(n===null||n===void 0?void 0:n.jwt)||!r).data;return{states:{content:e},data:{shareCode:(t=a===null||a===void 0?void 0:a.viewer)===null||t===void 0?void 0:t.referralCode}}}var SqmReferralIframe=function(){function e(e){registerInstance(this,e);this.ignored=true;this.iframeHeight="100%";this.iframeWidth="100%";h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=getMissingProps([{attribute:"iframe-src",value:this.iframeSrc}]);if(e){return h$1(RequiredPropsError,{missingProps:e,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:"})}var t=isDemo()?useReferralIframeDemo(getProps(this)):useReferralIframe(getProps(this)),r=t.states,n=t.data;return h$1(Host,{style:{display:"contents"}},h$1(ReferralIframeView,{data:n,states:r}))};return e}();function useReferralIframeDemo(e){return cjs({states:{content:__assign({iframeSrc:"https://example.com"},e)},data:{shareCode:"SHARECODE123"}},e.demoData||{},{arrayMerge:function(e,t){return t}})}var module={};(function e(t,r,n,a){var i=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL);function o(){}function s(e){var n=r.exports.Promise;var a=n!==void 0?n:t.Promise;if(typeof a==="function"){return new a(e)}e(o,o);return null}var l=function(){var e=Math.floor(1e3/60);var t,r;var n={};var a=0;if(typeof requestAnimationFrame==="function"&&typeof cancelAnimationFrame==="function"){t=function(t){var r=Math.random();n[r]=requestAnimationFrame((function i(o){if(a===o||a+e-1<o){a=o;delete n[r];t()}else{n[r]=requestAnimationFrame(i)}}));return r};r=function(e){if(n[e]){cancelAnimationFrame(n[e])}}}else{t=function(t){return setTimeout(t,e)};r=function(e){return clearTimeout(e)}}return{frame:t,cancel:r}}();var d=function(){var t;var r;var a={};function o(e){function t(t,r){e.postMessage({options:t||{},callback:r})}e.init=function t(r){var n=r.transferControlToOffscreen();e.postMessage({canvas:n},[n])};e.fire=function n(i,o,l){if(r){t(i,null);return r}var d=Math.random().toString(36).slice(2);r=s((function(n){function o(t){if(t.data.callback!==d){return}delete a[d];e.removeEventListener("message",o);r=null;l();n()}e.addEventListener("message",o);t(i,d);a[d]=o.bind(null,{data:{callback:d}})}));return r};e.reset=function t(){e.postMessage({reset:true});for(var r in a){a[r]();delete a[r]}}}return function(){if(t){return t}if(!n&&i){var r=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{t=new Worker(URL.createObjectURL(new Blob([r])))}catch(e){typeof console!==undefined&&typeof console.warn==="function"?console.warn("🎊 Could not load worker",e):null;return null}o(t)}return t}}();var u={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:false,scalar:1};function c(e,t){return t?t(e):e}function h(e){return!(e===null||e===undefined)}function p(e,t,r){return c(e&&h(e[t])?e[t]:u[t],r)}function f(e){return e<0?0:Math.floor(e)}function m(e,t){return Math.floor(Math.random()*(t-e))+e}function g(e){return parseInt(e,16)}function v(e){return e.map(b)}function b(e){var t=String(e).replace(/[^0-9a-f]/gi,"");if(t.length<6){t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]}return{r:g(t.substring(0,2)),g:g(t.substring(2,4)),b:g(t.substring(4,6))}}function y(e){var t=p(e,"origin",Object);t.x=p(t,"x",Number);t.y=p(t,"y",Number);return t}function w(e){e.width=document.documentElement.clientWidth;e.height=document.documentElement.clientHeight}function x(e){var t=e.getBoundingClientRect();e.width=t.width;e.height=t.height}function _(e){var t=document.createElement("canvas");t.style.position="fixed";t.style.top="0px";t.style.left="0px";t.style.pointerEvents="none";t.style.zIndex=e;return t}function C(e,t,r,n,a,i,o,s,l){e.save();e.translate(t,r);e.rotate(i);e.scale(n,a);e.arc(0,0,1,o,s,l);e.restore()}function E(e){var t=e.angle*(Math.PI/180);var r=e.spread*(Math.PI/180);return{x:e.x,y:e.y,wobble:Math.random()*10,velocity:e.startVelocity*.5+Math.random()*e.startVelocity,angle2D:-t+(.5*r-Math.random()*r),tiltAngle:Math.random()*Math.PI,color:e.color,shape:e.shape,tick:0,totalTicks:e.ticks,decay:e.decay,drift:e.drift,random:Math.random()+5,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:e.gravity*3,ovalScalar:.6,scalar:e.scalar}}function S(e,t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift;t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity;t.wobble+=.1;t.velocity*=t.decay;t.tiltAngle+=.1;t.tiltSin=Math.sin(t.tiltAngle);t.tiltCos=Math.cos(t.tiltAngle);t.random=Math.random()+5;t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble);t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble);var r=t.tick++/t.totalTicks;var n=t.x+t.random*t.tiltCos;var a=t.y+t.random*t.tiltSin;var i=t.wobbleX+t.random*t.tiltCos;var o=t.wobbleY+t.random*t.tiltSin;e.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-r)+")";e.beginPath();if(t.shape==="circle"){e.ellipse?e.ellipse(t.x,t.y,Math.abs(i-n)*t.ovalScalar,Math.abs(o-a)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):C(e,t.x,t.y,Math.abs(i-n)*t.ovalScalar,Math.abs(o-a)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI)}else{e.moveTo(Math.floor(t.x),Math.floor(t.y));e.lineTo(Math.floor(t.wobbleX),Math.floor(a));e.lineTo(Math.floor(i),Math.floor(o));e.lineTo(Math.floor(n),Math.floor(t.wobbleY))}e.closePath();e.fill();return t.tick<t.totalTicks}function k(e,t,r,i,o){var d=t.slice();var u=e.getContext("2d");var c;var h;var p=s((function(t){function s(){c=h=null;u.clearRect(0,0,i.width,i.height);o();t()}function p(){if(n&&!(i.width===a.width&&i.height===a.height)){i.width=e.width=a.width;i.height=e.height=a.height}if(!i.width&&!i.height){r(e);i.width=e.width;i.height=e.height}u.clearRect(0,0,i.width,i.height);d=d.filter((function(e){return S(u,e)}));if(d.length){c=l.frame(p)}else{s()}}c=l.frame(p);h=s}));return{addFettis:function(e){d=d.concat(e);return p},canvas:e,promise:p,reset:function(){if(c){l.cancel(c)}if(h){h()}}}}function $(e,r){var n=!e;var a=!!p(r||{},"resize");var o=p(r,"disableForReducedMotion",Boolean);var l=i&&!!p(r||{},"useWorker");var u=l?d():null;var c=n?w:x;var h=e&&u?!!e.__confetti_initialized:false;var g=typeof matchMedia==="function"&&matchMedia("(prefers-reduced-motion)").matches;var b;function C(t,r,n){var a=p(t,"particleCount",f);var i=p(t,"angle",Number);var o=p(t,"spread",Number);var s=p(t,"startVelocity",Number);var l=p(t,"decay",Number);var d=p(t,"gravity",Number);var u=p(t,"drift",Number);var h=p(t,"colors",v);var g=p(t,"ticks",Number);var w=p(t,"shapes");var x=p(t,"scalar");var _=y(t);var C=a;var S=[];var $=e.width*_.x;var T=e.height*_.y;while(C--){S.push(E({x:$,y:T,angle:i,spread:o,startVelocity:s,color:h[C%h.length],shape:w[m(0,w.length)],ticks:g,decay:l,gravity:d,drift:u,scalar:x}))}if(b){return b.addFettis(S)}b=k(e,S,c,r,n);return b.promise}function S(r){var i=o||p(r,"disableForReducedMotion",Boolean);var l=p(r,"zIndex",Number);if(i&&g){return s((function(e){e()}))}if(n&&b){e=b.canvas}else if(n&&!e){e=_(l);document.body.appendChild(e)}if(a&&!h){c(e)}var d={width:e.width,height:e.height};if(u&&!h){u.init(e)}h=true;if(u){e.__confetti_initialized=true}function f(){if(u){var t={getBoundingClientRect:function(){if(!n){return e.getBoundingClientRect()}}};c(t);u.postMessage({resize:{width:t.width,height:t.height}});return}d.width=d.height=null}function m(){b=null;if(a){t.removeEventListener("resize",f)}if(n&&e){document.body.removeChild(e);e=null;h=false}}if(a){t.addEventListener("resize",f,false)}if(u){return u.fire(r,d,m)}return C(r,d,m)}S.reset=function(){if(u){u.reset()}if(b){b.reset()}};return S}r.exports=$(null,{useWorker:true,resize:true});r.exports.create=$})(function(){if(typeof window!=="undefined"){return window}if(typeof self!=="undefined"){return self}return this||{}}(),module,false);var confetti=module.exports;var GET_EXCHANGE_LIST=dist.gql(templateObject_8||(templateObject_8=__makeTemplateObject(["\n query getExchangeList {\n viewer {\n ... on User {\n visibleRewardExchangeItems(limit: 20, offset: 0) {\n data {\n key\n name\n description\n imageUrl\n available\n unavailableReasonCode\n ruleType\n sourceUnit\n sourceValue\n prettySourceValue\n sourceMinValue\n prettySourceMinValue\n sourceMaxValue\n prettySourceMaxValue\n destinationMinValue\n prettyDestinationMinValue\n destinationMaxValue\n prettyDestinationMaxValue\n globalRewardKey\n destinationUnit\n steps {\n sourceValue\n prettySourceValue\n destinationValue\n prettyDestinationValue\n available\n globalRewardKey\n unavailableReasonCode\n rewardInput\n }\n }\n totalCount\n }\n }\n }\n }\n"],["\n query getExchangeList {\n viewer {\n ... on User {\n visibleRewardExchangeItems(limit: 20, offset: 0) {\n data {\n key\n name\n description\n imageUrl\n available\n unavailableReasonCode\n ruleType\n sourceUnit\n sourceValue\n prettySourceValue\n sourceMinValue\n prettySourceMinValue\n sourceMaxValue\n prettySourceMaxValue\n destinationMinValue\n prettyDestinationMinValue\n destinationMaxValue\n prettyDestinationMaxValue\n globalRewardKey\n destinationUnit\n steps {\n sourceValue\n prettySourceValue\n destinationValue\n prettyDestinationValue\n available\n globalRewardKey\n unavailableReasonCode\n rewardInput\n }\n }\n totalCount\n }\n }\n }\n }\n"])));var EXCHANGE=dist.gql(templateObject_9||(templateObject_9=__makeTemplateObject(["\n mutation exchange($exchangeRewardInput: ExchangeRewardInput!) {\n exchangeReward(exchangeRewardInput: $exchangeRewardInput) {\n reward {\n id\n fuelTankCode\n }\n }\n }\n"],["\n mutation exchange($exchangeRewardInput: ExchangeRewardInput!) {\n exchangeReward(exchangeRewardInput: $exchangeRewardInput) {\n reward {\n id\n fuelTankCode\n }\n }\n }\n"])));function useRewardExchangeList(e){var t,r,n,a,i;var o=useReducer((function(e,t){return __assign(__assign({},e),t)}),{selectedItem:undefined,selectedStep:undefined,redeemStage:"chooseReward",amount:0,exchangeError:false}),s=o[0],l=o[1];var d=useState(false),u=d[0],c=d[1];var h=s.selectedItem,p=s.selectedStep,f=s.redeemStage,m=s.amount,g=s.exchangeError;var v=W();var b=Fe(EXCHANGE),y=b[0],w=b[1],x=w.data,_=w.loading,C=w.errors;var E=fn(GET_EXCHANGE_LIST,{},!(v===null||v===void 0?void 0:v.jwt)),S=E.data,k=E.loading,$=E.refetch,T=E.errors;useEffect((function(){var e,t;if((t=(e=x===null||x===void 0?void 0:x.exchangeReward)===null||e===void 0?void 0:e.reward)===null||t===void 0?void 0:t.id){l({redeemStage:"success",exchangeError:false})}if(!!C){l({exchangeError:true})}}),[x,C]);var P=useRef();useEffect((function(){if(!P.current)return;var e=P.current;e.confetti=e.confetti||confetti.create(e,{resize:true});e.confetti()}),[P.current]);var I=He().refresh;function R(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!h)return[2];e={accountId:v===null||v===void 0?void 0:v.accountId,userId:v.id};switch(h.ruleType){case"FIXED_GLOBAL_REWARD":e=__assign(__assign({},e),{redeemCreditInput:{amount:h.sourceValue,unit:h.sourceUnit},globalRewardKey:h.globalRewardKey});break;case"STEPPED_FIXED_GLOBAL_REWARD":e=__assign(__assign({},e),{redeemCreditInput:{amount:p.sourceValue,unit:h.sourceUnit},globalRewardKey:p.globalRewardKey});break;case"VARIABLE_GLOBAL_REWARD":e=__assign(__assign({},e),{redeemCreditInput:{amount:m,unit:h.sourceUnit},globalRewardKey:h.globalRewardKey,rewardInput:p.rewardInput});break;case"VARIABLE_CREDIT_REWARD":e=__assign(__assign({},e),{redeemCreditInput:{amount:m,unit:h.sourceUnit},rewardInput:{type:"CREDIT",unit:h.destinationUnit,assignedCredit:p.destinationValue}});break;default:e=__assign(__assign({},e),p.rewardInput)}return[4,y({exchangeRewardInput:e})];case 1:t.sent();I();return[2]}}))}))}var N=function(e){e&&$();l({amount:0,selectedStep:undefined,selectedItem:undefined,exchangeError:false,redeemStage:"chooseReward"})};function L(e){l({redeemStage:e})}function M(){var e,t;navigator.clipboard.writeText((t=(e=x===null||x===void 0?void 0:x.exchangeReward)===null||e===void 0?void 0:e.reward)===null||t===void 0?void 0:t.fuelTankCode);c(true);setTimeout((function(){return c(false)}),1e3)}return{states:{content:{text:e},selectedItem:h,redeemStage:f,amount:m,selectedStep:p,exchangeError:g,queryError:!!T,loading:k||_,open:u,noExchangeOptions:((t=S===null||S===void 0?void 0:S.viewer)===null||t===void 0?void 0:t.visibleRewardExchangeItems.totalCount)===0},data:{exchangeList:(n=(r=S===null||S===void 0?void 0:S.viewer)===null||r===void 0?void 0:r.visibleRewardExchangeItems)===null||n===void 0?void 0:n.data,fuelTankCode:(i=(a=x===null||x===void 0?void 0:x.exchangeReward)===null||a===void 0?void 0:a.reward)===null||i===void 0?void 0:i.fuelTankCode},callbacks:{exchangeReward:R,setExchangeState:l,setStage:L,resetState:N,copyFuelTankCode:M},refs:{canvasRef:P}}}var SqmRewardExchangeList=function(){function e(e){registerInstance(this,e);this.ignored=true;this.notAvailableError="{unavailableReasonCode, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {{sourceValue} required} AVAILABILITY_PREDICATE {Not available} other {{unavailableReasonCode}} }";this.chooseRewardTitle="Rewards";this.chooseAmountTitle="Select";this.confirmationTitle="Confirm";this.rewardTitle="Choose a reward";this.cancelText="Cancel";this.backText="Back";this.continueText="Continue";this.continueToConfirmationText="Continue to confirmation";this.redeemText="Redeem";this.redeemTitle="Confirm and redeem";this.redemptionSuccessText="Redeemed {sourceValue} for {destinationValue}";this.sourceAmountMessage="{ruleType, select, FIXED_GLOBAL_REWARD {{sourceValue}} other {{sourceMinValue} to {sourceMaxValue}}}";this.tooltipText="Copied";this.doneText="Done";this.selectText="Select amount to receive";this.queryError="Unable to load reward exchange list. Please try again";this.redemptionError="An error occured trying to redeem this reward. Please try again";this.notEnoughError="Not enough {sourceUnit} to redeem for this reward";this.rewardRedeemedText="Reward redeemed";this.promoCode="Promo Code";this.skeletonCardNum=8;this.rewardNameTitle="Reward";this.rewardAmountTitle="Reward Amount";this.costTitle="Cost to Redeem";h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=__assign(__assign({},getProps(this)),{empty:h$1(EmptySlot$1,null)});var t=isDemo()?useRewardExchangeListDemo(e):useRewardExchangeList(e),r=t.states,n=t.data,a=t.callbacks,i=t.refs;return h$1(Host,{style:{display:"contents"}},h$1(RewardExchangeView,{states:r,data:n,callbacks:a,refs:i}))};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}();function EmptySlot$1(){return h$1("slot",{name:"empty"},h$1("sqm-empty",{emptyStateImage:"https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_exchange2.png",emptyStateHeader:"Redeem rewards",emptyStateText:"Use your points to redeem rewards once they become available"}))}function useRewardExchangeListDemo(e){return cjs({states:{content:{text:e},redeemStage:"chooseReward",amount:0,selectedStep:undefined,selectedItem:undefined,open:false,exchangeError:false,queryError:false,loading:false,noExchangeOptions:false,empty:EmptySlot$1()},data:{shareCode:"SHARECODE123",exchangeList:demoRewardExchange.data.exchangeList},callbacks:{exchangeReward:function(){},setExchangeState:function(e){},setStage:function(e){},resetState:function(){},copyFuelTankCode:function(){}},refs:{canvasRef:{}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}var debug$1=browser("sq:useRouter");function matchPath(e,t){if(!e)return;var r=pathToRegexp(e);return r.exec(t)}function useRouter(){var e=mn();var t=R();var r=useState(undefined),n=r[0],a=r[1];var i=useState(undefined),o=i[0],s=i[1];var l=e.pathname;useEffect((function(){var e=t.querySelectorAll("sqm-route");var r=Array.from(e);r.forEach((function(e){var t=document.createElement("template");t.setAttribute("path",e.path);t.innerHTML=e.innerHTML;e.parentNode.appendChild(t);e.parentNode.removeChild(e)}))}),[]);useEffect((function(){var e,t;if(!o||!n){debug$1("DOM not ready for navigation rendering on:",l);return}var r=n.querySelectorAll("template");var a=Array.from(r);var i=a.find((function(e){var t,r,n;var a=(r=(t=e.attributes)===null||t===void 0?void 0:t.path)===null||r===void 0?void 0:r.nodeValue;if((n=matchPath(a,l))===null||n===void 0?void 0:n.length)return e}));var s=(t=(e=i===null||i===void 0?void 0:i.attributes)===null||e===void 0?void 0:e.path)===null||t===void 0?void 0:t.nodeValue;debug$1({containerDatasetPage:o.dataset.page,templatePath:s,page:l});if(!i){debug$1("No matching page found for ",l,", so render nothing");o.innerHTML="";o.dataset.page=l;return}debug$1("Page updated to ",l,i);if(!!matchPath(s,o.dataset.page)){debug$1("don't rerender")}else if(i){o.innerHTML=i.innerHTML;o.dataset.page=l}}),[n,o,l]);return{callbacks:{setSlot:a,setContainer:s}}}var sqmRouterCss="sqm-router{display:contents}";var SqmRouter=function(){function e(e){registerInstance(this,e);this.ignored=true;h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=useRouter().callbacks;return h$1(Host,null,h$1("div",{ref:e.setSlot,style:{display:"none"}},h$1("slot",null)),h$1("div",{style:{display:"contents"},ref:e.setContainer}))};return e}();SqmRouter.style=sqmRouterCss;var REVEAL_EVENT="sq:reveal";function useScroll(e){var t=e.scrollTagName,r=e.scrollId;function n(){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(a){switch(a.label){case 0:n=document===null||document===void 0?void 0:document.querySelector(t||"#"+r);n.dispatchEvent(new CustomEvent(REVEAL_EVENT,{detail:t||"#"+r,bubbles:true,composed:true}));return[4,new Promise((function(e){return setTimeout(e,500)}))];case 1:a.sent();n.scrollIntoView({behavior:e.scrollAnimation});return[2]}}))}))}return{callbacks:{scroll:n}}}var Scroll=function(){function e(e){registerInstance(this,e);this.ignored=true;this.buttonType="default";this.scrollAnimation="smooth";h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e;var t=useScroll(this).callbacks;var r=(e=this.buttonType)!==null&&e!==void 0?e:"primary";var n={Button:{"& .outline":{"&::part(base)":{color:"var(--sl-color-"+r+"-500)",borderColor:"var(--sl-color-"+r+"-500)",backgroundColor:"transparent","&:hover":{color:"var(--sl-color-primary-text)",backgroundColor:"var(--sl-color-"+r+"-500)"}}},"& .neutral":{"&::part(base)":{color:"var(--sl-color-primary-text)",background:"var(--sl-color-neutral-500)","&:hover":{opacity:"0.8"}}},"& .mobile":{"@media (max-width: 499px)":{width:"100%"}}}};var a=createStyleSheet(n);var i=a.toString();var o="\n\t\t:host{\n\t\t\tdisplay: contents;\n\t\t}\n\t\t"+(this.mobile&&"\n\t\t@media only screen and (max-width: 499px) {\n\t\t\t:host {\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t ")+"\n\t";var s="";if(this.outline&&this.buttonType!="default")s+="outline ";if(this.buttonType==="neutral")s+="neutral ";if(this.mobile)s+="mobile ";return h$1("div",{class:a.classes.Button},h$1("style",{type:"text/css"},o,i),h$1("sl-button",{type:this.buttonType,onClick:t.scroll,size:this.size,pill:this.pill,circle:this.circle,class:s},(this.iconSlot||this.iconName)&&h$1("sl-icon",{slot:this.iconSlot||"prefix",name:this.iconName}),this.buttonText,h$1("slot",null)))};return e}();var sqmShareButtonCss=":host{display:block}:host([hidden]){display:none}sl-button{display:block}";var ShareButton=function(){function e(e){registerInstance(this,e);this.type="default";this.iconslot="prefix";this.hideicon=false;this.hidetext=false;h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=getProps(this);var t=isDemo()?useDemoShareButton(e):useShareButton(e);return h$1(ShareButtonView,Object.assign({},t),h$1("slot",null))};return e}();function useDemoShareButton(e){return cjs(__assign(__assign({},e),{loading:false,hide:false,onClick:function(){}}),e.demoData||{},{arrayMerge:function(e,t){return t}})}ShareButton.style=sqmShareButtonCss;var MessageLinkQuery$1=dist.gql(templateObject_10||(templateObject_10=__makeTemplateObject(["\n query ($programId: ID) {\n user: viewer {\n ... on User {\n referralCode(programId: $programId)\n }\n }\n }\n"],["\n query ($programId: ID) {\n user: viewer {\n ... on User {\n referralCode(programId: $programId)\n }\n }\n }\n"])));var WIDGET_ENGAGEMENT_EVENT$1=dist.gql(templateObject_11||(templateObject_11=__makeTemplateObject(["\n mutation loadEvent($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"],["\n mutation loadEvent($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));function useShareCode(e){var t,r;var n=e.programId,a=n===void 0?O():n;var i=W();var o=_();var s=fn(MessageLinkQuery$1,{programId:a},!(i===null||i===void 0?void 0:i.jwt)).data;var l=Fe(WIDGET_ENGAGEMENT_EVENT$1)[0];var d=(r=(t=s===null||s===void 0?void 0:s.user)===null||t===void 0?void 0:t.referralCode)!==null&&r!==void 0?r:"...";var u=useState(false),c=u[0],h=u[1];function p(){navigator.clipboard.writeText(d);h(true);setTimeout((function(){return h(false)}),e.tooltiplifespan);l({eventMeta:{programId:a,id:i===null||i===void 0?void 0:i.id,accountId:i===null||i===void 0?void 0:i.accountId,type:"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",meta:{engagementMedium:o,shareMedium:"DIRECT"}}})}return __assign(__assign({},e),{onClick:p,open:c,copyString:d})}var ShareCode=function(){function e(e){registerInstance(this,e);this.tooltiptext="Copied to Clipboard";this.tooltiplifespan=1e3;this.textAlign="left";this.copyButtonLabel="Copy Code";this.buttonStyle="icon";h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=getProps(this);var t=isDemo()?useDemoShareCode(e):useShareCode(e);return h$1(CopyTextView,Object.assign({},t))};return e}();function useDemoShareCode(e){var t=useState(false),r=t[0],n=t[1];var a="SHARECODE001";return cjs({copyString:a,tooltiptext:e.tooltiptext,textAlign:e.textAlign,copyButtonLabel:e.copyButtonLabel,buttonStyle:e.buttonStyle,open:r,onClick:function(){navigator.clipboard.writeText(a);n(true);setTimeout((function(){return n(false)}),e.tooltiplifespan)}},e.demoData||{},{arrayMerge:function(e,t){return t}})}var ShareLink=function(){function e(e){registerInstance(this,e);this.tooltiptext="Copied to Clipboard";this.tooltiplifespan=1e3;this.textAlign="left";this.copyButtonLabel="Copy Link";this.buttonStyle="icon";h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=getProps(this);var t=isDemo()?useDemoShareLink(e):useShareLink(e);return h$1(CopyTextView,Object.assign({},t))};return e}();function useDemoShareLink(e){var t=useState(false),r=t[0],n=t[1];var a="https://www.example.com/sharelink/abc";return cjs({copyString:a,tooltiptext:e.tooltiptext,textAlign:e.textAlign,buttonStyle:e.buttonStyle,copyButtonLabel:e.copyButtonLabel,open:r,onClick:function(){navigator.clipboard.writeText(a);n(true);setTimeout((function(){return n(false)}),e.tooltiplifespan)}},e.demoData||{},{arrayMerge:function(e,t){return t}})}var StatContainer=function(){function e(e){registerInstance(this,e);this.ignored=true;this.space="xxx-large";this.display="grid";h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){return h$1(StatContainerView,Object.assign({},getProps(this)),h$1("slot",null))};return e}();var TableCell=function(){function e(e){registerInstance(this,e);this.colspan=1;this.padding="15px 10px"}e.prototype.render=function(){return h$1(Host,{style:{display:"contents"}},h$1("td",{colSpan:this.colspan,style:{padding:this.padding}},h$1("slot",null)))};return e}();var TableRow=function(){function e(e){registerInstance(this,e);this.border="1px solid #EAEAEA"}e.prototype.render=function(){return h$1(Host,{style:{display:"contents"}},h$1("tr",{style:{border:this.border}},h$1("slot",null)))};return e}();var SEND_EVENT=dist.gql(templateObject_12||(templateObject_12=__makeTemplateObject(["\n mutation taskCardEvent($userEventInput: UserEventInput!) {\n logUserEvent(userEventInput: $userEventInput) {\n userId\n }\n }\n"],["\n mutation taskCardEvent($userEventInput: UserEventInput!) {\n logUserEvent(userEventInput: $userEventInput) {\n userId\n }\n }\n"])));function useTaskCard(e){var t=W();var r=x();var n=Fe(SEND_EVENT),a=n[0],i=n[1],o=i.data,s=i.loading;var l=He().refresh;useEffect((function(){if(o){l();d()}}),[o]);function d(){e.openNewTab?window.open(e.buttonLink):window.open(e.buttonLink,"_parent")}function u(e){a({userEventInput:{userId:t===null||t===void 0?void 0:t.id,accountId:t===null||t===void 0?void 0:t.accountId,events:[{key:e,fields:{}}]}})}function c(){e.eventKey?u(e.eventKey):d()}return{states:{loadingEvent:s,locale:r},callbacks:{sendEvent:u,onClick:c}}}var TaskCard=function(){function e(e){registerInstance(this,e);this.ignored=true;this.rewardAmount="0";this.rewardUnit="Points";this.cardTitle="Title Text";this.description="";this.repeatable=false;this.finite=0;this.showProgressBar=false;this.goal=1;this.steps=false;this.progressBarUnit="";this.expiryMessage="Ends {endDate}";this.startsOnMessage="Starts {startDate}";this.endedMessage="Ended {endDate}";this.completedText="Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}";this.buttonText="Complete Action";this.openNewTab=false;h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=(isDemo()?useDemoBigStat(this):useBigStat(__assign(__assign({},getProps(this)),{programId:this.programId}))).props;var t=e.value,r=e.loading;var n=isDemo()?useTaskCardDemo(this):useTaskCard(this),a=n.states,i=n.callbacks;return h$1(TaskCardView,{callbacks:i,states:{loading:r,loadingEvent:a.loadingEvent,progress:t,locale:a.locale},content:__assign({},getProps(this))})};return e}();function useTaskCardDemo(e){return cjs({states:{loadingEvent:false,locale:"en"},callbacks:{sendEvent:function(e){return console.log(e)},onClick:function(){return console.log("clicked")}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}var Timeline=function(){function e(e){registerInstance(this,e);this.ignored=true;this.icon="gift";h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=this;var t=useChildElements();t.forEach((function(t){try{t.setIcon(e.icon)}catch(e){}}));var r="\n\t\t:host{\n\t\t\tdisplay: block; \n\t\t}\n\n\t\t::slotted(*:not(:only-child):not(:last-child)) {\n\t\t\tmargin-bottom: var(--sl-spacing-xx-large);\n\t\t}\n\t";return h$1("div",null,h$1("style",{type:"text/css"},r),h$1("slot",null))};return e}();var Gift=function(){return h$1("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h$1("path",{d:"M22.5 7.5H18.6761H13.5V24H20.75C21.3023 24 21.75 23.5523 21.75 23V22.5V13.5H22.5H23C23.5523 13.5 24 13.0523 24 12.5V12V9V8.5C24 7.94772 23.5523 7.5 23 7.5H22.5Z",fill:"#F2C94C"}),h$1("path",{d:"M2.25 22.5V23C2.25 23.5523 2.69772 24 3.25 24H10.5V7.5H6.96363H1.5H1C0.447715 7.5 0 7.94772 0 8.5V9V12V12.5C0 13.0523 0.447715 13.5 1 13.5H1.5H2.25V22.5Z",fill:"#F2C94C"}),h$1("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.25 13.5V15H21.75V13.5H2.25Z",fill:"#BE9720"}),h$1("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21 4.06424C21 5.39348 19.0041 7.4062 18 7.5H13.5V24H10.5027V7.5H6.88188C4.8187 7.05273 3 5.46806 3 3.78109C3 2.1371 3.71404 0.835051 5.01276 0.273062C6.25382 -0.26398 7.68678 0.0304991 8.81964 0.817C10.2101 1.78237 10.9902 3.59446 11.6978 5.2384C11.7599 5.38268 11.8215 5.52566 11.8828 5.66667C11.9426 5.53298 12.0028 5.3969 12.0638 5.25912C12.7649 3.67422 13.5654 1.86488 14.9106 0.893444C16.0997 0.0347157 17.6114 -0.289736 18.9181 0.298417C20.2693 0.906596 21 2.3018 21 4.06424ZM15.9185 2.25C16.6392 1.72957 17.502 1.63518 18.2396 2.25C18.8819 2.78542 18.9162 3.03745 18.9987 3.64389L19.0133 3.75C19.0133 4.64776 18.2396 6 17.4659 6C16.9177 6 16.4871 5.99537 16.0836 5.99103C15.3479 5.98312 14.702 5.97618 13.5974 6C13.808 5.59179 13.9761 5.20003 14.1365 4.82641C14.5654 3.82715 14.9386 2.95763 15.9185 2.25ZM7.40792 2.25C7.05911 2.00783 6.25921 2.11591 5.92748 2.25945C5.65341 2.37805 5.24403 2.73987 5.24403 3.78109C5.24403 4.79286 6.88188 5.66667 6.88188 5.66667C6.88188 5.66667 8.18161 6 10.5027 6C9.71258 4.04177 8.59336 3.073 7.40792 2.25Z",fill:"#EB5757"}))};var Circle=function(){return h$1("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h$1("circle",{cx:"12",cy:"12",r:"9",fill:"currentColor",stroke:"currentColor","stroke-width":"2"}))};var style$2={TimelineReward:{color:"var(--sl-color-neutral-900)",lineHeight:"var(--sl-line-height-dense)","& .container":{display:"flex"},"& .line":{display:"none",color:"transparent",userSelect:"none",background:"var(--sl-color-primary-300)",width:"4px",borderRadius:"4px",margin:"-2px",position:"relative",left:"12px",top:"34px"},"& .step":{display:"flex"},"& .icon":{position:"relative",top:"4px",zIndex:"1",color:"var(--sl-color-primary-300)",marginRight:"var(--sl-spacing-large)"},"& .reward":{marginRight:"var(--sl-spacing-x-small)",fontSize:"var(--sl-font-size-x-large)",fontWeight:"var(--sl-font-weight-semibold)"},"& .unit":{textTransform:"uppercase",fontSize:"var(--sl-font-size-small)"},"& .description":{fontSize:"var(--sl-font-size-medium)"}}};var sheet$2=createStyleSheet(style$2);var styleString$2=sheet$2.toString();var vanillaStyle$1="\n\t:host{\n\t\tdisplay: block; \n\t}\n\n\t:host(:not(:last-of-type)) .line {\n\t\tdisplay: block; \n\t}\n\t";function TimelineEntryView(e){var t;var r=(t=e.icon)!==null&&t!==void 0?t:e.iconState;return h$1("div",{class:sheet$2.classes.TimelineReward,part:"sqm-timeline-container"},h$1("style",{type:"text/css"},styleString$2,vanillaStyle$1),h$1("div",{class:"container",part:"sqm-base"},h$1("div",{class:"line"},"/"),h$1("div",{class:"step"},r==="gift"&&h$1("div",{class:"icon"},h$1(Gift,null)),r==="circle"&&h$1("div",{class:"icon"},h$1(Circle,null)),h$1("div",null,h$1("div",null,h$1("span",{class:"reward",part:"sqm-reward"},e.reward),h$1("span",{class:"unit",part:"sqm-unit"},e.unit)),h$1("div",{class:"description",part:"sqm-description"},e.desc)))))}var TimelineReward=function(){function e(e){registerInstance(this,e);this.ignored=true;this.iconState="gift";h(this)}e.prototype.setIcon=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.iconState=e;return[2]}))}))};e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){useRequestRerender([this.reward]);return h$1(TimelineEntryView,Object.assign({},getProps(this)))};return e}();function UserNameView(e){return h$1(Host,null,e.loading?e.loadingText:e.username)}var GET_USER_NAME=dist.gql(templateObject_13||(templateObject_13=__makeTemplateObject(["\n query getUserName {\n viewer {\n ... on User {\n firstName\n lastName\n }\n }\n }\n"],["\n query getUserName {\n viewer {\n ... on User {\n firstName\n lastName\n }\n }\n }\n"])));function useUserName(e){var t,r,n,a,i,o,s,l;var d=W();var u=fn(GET_USER_NAME,{},!(d===null||d===void 0?void 0:d.jwt));var c=u.loading;var h=((r=(t=u.data)===null||t===void 0?void 0:t.viewer)===null||r===void 0?void 0:r.firstName)||((a=(n=u.data)===null||n===void 0?void 0:n.viewer)===null||a===void 0?void 0:a.lastName)?((o=(i=u.data)===null||i===void 0?void 0:i.viewer)===null||o===void 0?void 0:o.firstName)+" "+((l=(s=u.data)===null||s===void 0?void 0:s.viewer)===null||l===void 0?void 0:l.lastName):e.fallback;return{loadingText:e.loadingText,loading:c,username:h}}var UserName=function(){function e(e){registerInstance(this,e);this.ignored=true;this.fallback="Anonymous User";this.loadingText="...";h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=isDemo()?useUserNameDemo(this):useUserName(this);return h$1(UserNameView,Object.assign({},e))};return e}();function useUserNameDemo(e){return cjs({loading:false,loadingText:"...",username:"John Smith"},e.demoData||{},{arrayMerge:function(e,t){return t}})}export{BigStat as sqm_big_stat,BrandComponent as sqm_brand,CardFeed as sqm_card_feed,CheckboxField as sqm_checkbox_field,CouponCode as sqm_coupon_code,DividedLayout as sqm_divided_layout,DropdownField as sqm_dropdown_field,EditProfile as sqm_edit_profile,HeroImage as sqm_hero_image,SqmHookStoryContainer as sqm_hook_story_container,InputField as sqm_input_field,Leaderboard as sqm_leaderboard,NameFields as sqm_name_fields,NavigationMenu as sqm_navigation_menu,PortalChangePassword as sqm_portal_change_password,PortalFooter as sqm_portal_footer,PortalFrame as sqm_portal_frame,PortalLogin as sqm_portal_login,PortalRegister as sqm_portal_register,ProgramExplainer as sqm_program_explainer,ProgramExplainerStep as sqm_program_explainer_step,ProgramMenu as sqm_program_menu,ReferralCard as sqm_referral_card,SqmReferralIframe as sqm_referral_iframe,SqmRewardExchangeList as sqm_reward_exchange_list,SqmRouter as sqm_router,Scroll as sqm_scroll,ShareButton as sqm_share_button,ShareCode as sqm_share_code,ShareLink as sqm_share_link,StatContainer as sqm_stat_container,TableCell as sqm_table_cell,TableRow as sqm_table_row,TaskCard as sqm_task_card,Timeline as sqm_timeline,TimelineReward as sqm_timeline_entry,UserName as sqm_user_name};var templateObject_1,templateObject_2,templateObject_3,templateObject_4,templateObject_5,templateObject_6,templateObject_7,templateObject_8,templateObject_9,templateObject_10,templateObject_11,templateObject_12,templateObject_13;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h}from"./index-17b4da69.js";import{i as useState,u as useEffect}from"./stencil-hooks.module-b48b45ec.js";import{u as useCallback}from"./use-callback-051c06c6.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";function isMobile(e){var n=useState(window.innerWidth),a=n[0],r=n[1];var i=useCallback((function(){return r(window.innerWidth)}),[]);useEffect((function(){window.addEventListener("resize",i);return function(){return window.removeEventListener("resize",i)}}),[]);return a>e?false:true}function isValidColor(e){return CSS.supports("(color: "+e+")")}var paddingList=["var(--sl-spacing-xxx-small)","var(--sl-spacing-xx-small)","var(--sl-spacing-x-small)","var(--sl-spacing-small)","var(--sl-spacing-medium)","var(--sl-spacing-large)","var(--sl-spacing-x-large)","var(--sl-spacing-xx-large)","var(--sl-spacing-xxx-large)","var(--sl-spacing-xxxx-large)"];var parseBackground=function(e){if(e){if(isValidColor(e)){return e}else{return"url("+e+")"}}else{return""}};function HeroView(e){var n=e.states,a=e.content;var r=function(e,n){var a={small:7,medium:8,large:9};var r=a[e];if(isMobile(767)){r=r-2}else if(isMobile(1023)){r=r-1}return n?paddingList[r-2]:paddingList[r]};var i=function(e){if(e=="small"){return"1%"}else if(e=="medium"){return"3%"}else{return"5%"}};var s={TwoColumnContainer:{display:"flex","@media screen and (max-width: 1023px)":{flexDirection:n.wrapDirection=="wrap-reverse"?"column-reverse":"column",justfiyContent:"center"}},ColumnPadding:{paddingTop:n.paddingSize=="none"?"0px":r(n.paddingSize),paddingBottom:n.paddingSize=="none"?"0px":r(n.paddingSize),paddingLeft:n.paddingSize=="none"?"0px":i(n.paddingSize),paddingRight:n.paddingSize=="none"?"0px":i(n.paddingSize)},ColumnWrapper:{"&:first-of-type":{background:"no-repeat center/cover "+parseBackground(n.background)},"&:last-of-type":{background:"no-repeat center/cover "+parseBackground(n.secondaryBackground)},"@media screen and (min-width: 1023px)":{flex:"1 1 0"},display:"block"},SingleColumnContainer:{background:"no-repeat center/cover "+parseBackground(n.background),flex:"1 1 0"},Container:{width:"100%",maxWidth:"var(--sqm-max-width)",margin:"0 auto",flex:1,display:"flex",flexDirection:"column",minHeight:"100%"}};var o=createStyleSheet(s);var t=o.toString();var l="\n :host{ \n height: 100%;\n display: contents;\n }\n sqm-hero{ \n height: 100%;\n display: contents;\n }\n img{\n max-width: 100%;\n height: auto;\n }\n \n";return h("div",{class:o.classes.Container,part:"sqm-hero-container"},h("style",{type:"text/css"},l,t),n.columns==2?h("div",{class:o.classes.TwoColumnContainer,part:"sqm-hero-two-col-container"},h("div",{part:"sqm-hero-primary-col",class:o.classes.ColumnWrapper+" "+o.classes.ColumnPadding},a.primaryColumn),h("div",{part:"sqm-hero-secondary-col",class:o.classes.ColumnWrapper+" "+o.classes.ColumnPadding},a.secondaryColumn)):h("div",{part:"sqm-hero-primary-col",class:o.classes.SingleColumnContainer+" "+o.classes.ColumnPadding},a.primaryColumn))}export{HeroView as H};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(r){for(var s,t=1,o=arguments.length;t<o;t++){s=arguments[t];for(var e in s)if(Object.prototype.hasOwnProperty.call(s,e))r[e]=s[e]}return r};return __assign.apply(this,arguments)};import{r as registerInstance,h as h$1}from"./index-17b4da69.js";import{m as h}from"./stencil-hooks.module-b48b45ec.js";import"./use-callback-051c06c6.js";import"./JSS-67b5cff8.js";import{g as getProps}from"./utils-334c1e34.js";import{H as HeroView}from"./sqm-hero-view-875c927d.js";var Hero=function(){function r(r){registerInstance(this,r);this.columns=1;this.background="var(--sl-color-gray-50)";this.paddingSize="large";this.wrapDirection="wrap";h(this)}r.prototype.disconnectedCallback=function(){};r.prototype.render=function(){var r={states:__assign({},getProps(this)),content:{primaryColumn:h$1("slot",null),secondaryColumn:h$1("slot",{name:"secondary-column"})}};return h$1(HeroView,Object.assign({},r))};return r}();export{Hero as sqm_hero};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h}from"./index-17b4da69.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";var style={Container:{display:"contents"}};var vanillaStyle="\n:host{\n display: inline; \n}\n";var sheet=createStyleSheet(style);var styleString=sheet.toString();function LinkButtonView(t){var e=t.link,n=t.openInNewTab;return h("span",{class:sheet.classes.Container,part:"sqm-base"},h("style",{type:"text/css"},styleString,vanillaStyle),h("sl-button",{exportparts:"base: primarybutton-base"},h("a",{href:e,target:n?"_blank":"",part:"sqm-link"},h("slot",null))))}export{LinkButtonView as L};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as registerInstance,h}from"./index-17b4da69.js";import"./JSS-67b5cff8.js";import{g as getProps}from"./utils-334c1e34.js";import{L as LinkButtonView}from"./sqm-link-button-view-90aeb27f.js";var LinkButton=function(){function t(t){registerInstance(this,t);this.openInNewTab=false}t.prototype.render=function(){return h(LinkButtonView,Object.assign({},getProps(this)))};return t}();export{LinkButton as sqm_link_button};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(a){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s))a[s]=e[s]}return a};return __assign.apply(this,arguments)};import{h}from"./index-17b4da69.js";import{g as gn}from"./index.module-0ba0774e.js";import{g as gap}from"./mixins-f60a614c.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";function NavigationSidebarItemView(a){var e=a.states,r=a.data;var t={ItemContainer:__assign(__assign({display:"flex","background-color":""+(e.active?"var(--sl-color-gray-200)":"var(--sl-color-white)"),"border-radius":"8px",padding:"8px","text-decoration":"none",color:"#454444","align-items":"center"},gap({direction:"row",size:"var(--sl-font-size-small)"})),{"&:hover":{cursor:"pointer",background:e.active?"var(--sl-color-gray-300)":"var(--sl-color-gray-50)"}}),Label:{margin:"0"},Icon:{"flex-shrink":"0"}};var s=createStyleSheet(t);var i=s.toString();return h("a",{part:"sqm-navigation-item-link",href:r.path,onClick:function(a){a.preventDefault();gn.push(r.path)},class:s.classes.ItemContainer},h("style",{type:"text/css"},i),h("sl-icon",{class:s.classes.Icon,name:r.icon}),h("p",{class:s.classes.Label,part:"sqm-navigation-item-label"},r.label))}export{NavigationSidebarItemView as N};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,i,r){function a(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function n(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r["throw"](e))}catch(e){s(e)}}function l(e){e.done?i(e.value):a(e.value).then(n,o)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,a,s,n;return n={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function o(e){return function(t){return l([e,t])}}function l(n){if(r)throw new TypeError("Generator is already executing.");while(i)try{if(r=1,a&&(s=n[0]&2?a["return"]:n[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,n[1])).done)return s;if(a=0,s)n=[n[0]&2,s.value];switch(n[0]){case 0:case 1:s=n;break;case 4:i.label++;return{value:n[1],done:false};case 5:i.label++;a=n[1];n=[0];continue;case 7:n=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(n[0]===6||n[0]===2)){i=0;continue}if(n[0]===3&&(!s||n[1]>s[0]&&n[1]<s[3])){i.label=n[1];break}if(n[0]===6&&i.label<s[1]){i.label=s[1];s=n;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(n);break}if(s[2])i.ops.pop();i.trys.pop();continue}n=t.call(e,i)}catch(e){n=[6,e];a=0}finally{r=s=0}if(n[0]&5)throw n[1];return{value:n[0]?n[1]:void 0,done:true}}};import{r as registerInstance,h as h$1}from"./index-17b4da69.js";import{m as h}from"./stencil-hooks.module-b48b45ec.js";import"./use-callback-051c06c6.js";import{i as isDemo,e as setUserIdentity}from"./index.module-0ba0774e.js";import"./jsonpointer-388a7082.js";import{c as cjs}from"./cjs-bdfb4486.js";import"./mixins-f60a614c.js";import"./JSS-67b5cff8.js";import{E as EmailRegistrationView}from"./email-registration-view-0ed79e24.js";import{u as usePasswordlessRegistration}from"./usePasswordlessRegistration-94f265fe.js";var PasswordlessRegistration=function(){function e(e){registerInstance(this,e);this.ignored=true;this.emailLabel="Email";this.firstNameLabel="First Name";this.lastNameLabel="Last Name";this.registerLabel="Start Referring";this.includeName=false;h(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=isDemo()?useRegistrationDemo(this):usePasswordlessRegistration(),t=e.states,i=e.callbacks;var r={emailLabel:this.emailLabel,registerLabel:this.registerLabel,firstNameLabel:this.firstNameLabel,lastNameLabel:this.lastNameLabel,includeName:this.includeName,topSlot:h$1("slot",{name:"top-slot"}),bottomSlot:h$1("slot",{name:"bottom-slot"})};return h$1(EmailRegistrationView,{states:t,callbacks:i,content:r})};return e}();function useRegistrationDemo(e){var t=this;var i=function(){setUserIdentity({id:"referrer@example.com",accountId:"referrer@example.com",jwt:"eyJraWQiOiJlNjI2NzQxNy1jMzZlLTRlM2EtYjM5NS1lYTFmY2YyNmU3YzIiLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJjbVZtWlhKeVpYSkFaWGhoYlhCc1pTNWpiMjA9OmNtVm1aWEp5WlhKQVpYaGhiWEJzWlM1amIyMD1AdGVzdF9heGJndGF0dzF0Y2NwOnVzZXJzIiwicGFzc3dvcmRsZXNzIjp0cnVlLCJpc3MiOiJodHRwczovL3N0YWdpbmcucmVmZXJyYWxzYWFzcXVhdGNoLmNvbS8iLCJleHAiOjE2ODA4ODU5MTksImlhdCI6MTY4MDc5OTUxOX0.kjmTVVf_BTb-uMNKnadLyNLxMFwpkefsY02O3iAfBVIJJZZfeZMwunPlKsS3Vbp28aYRClBjH5Wj4pYxDn23D0CdZx8KNCqiJ8yF6149O9SPMkRseoJkliqS6LyvMOEDjGDkuLfcC8_hq1AHBXFt5BdCtWOk1gwf_5R9A0w5gXEIvprBzbNDLbuo88bVAlrmFNvfttXXryrpUeruMal7cBKuy02YblBrB4kKoyJiprU5GLEjciBA4A56u8TwQc0kbsPf2YcQaJsY_IvkC7S1u4sPyObpq6iF6Ed8UYHAo6nU5KjZXyVtoUyeIS11mf_6OtDO6LyMNHV2FtEUUDdPCg"})};return cjs({states:{loading:false,error:""},callbacks:{submit:function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){i();return[2]}))}))}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}export{PasswordlessRegistration as sqm_passwordless_registration};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h}from"./index-17b4da69.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";function PortalSectionView(a){var t={LabelContainer:{"margin-bottom":a.labelMargin==="none"?a.labelMargin:"var(--sl-spacing-"+a.labelMargin+")"},SectionContainer:{textAlign:a.textAlign||"left",padding:a.padding==="none"?"0":"var(--sl-spacing-"+a.padding+")"}};var e=createStyleSheet(t);var n=e.toString();return h("div",{class:e.classes.SectionContainer,part:"sqm-portal-section-container"},h("style",{type:"text/css"},n),h("div",{class:e.classes.LabelContainer,part:"sqm-portal-section-label"},a.label),a.content)}function PortalContainerView(a,t){var e={Container:{boxSizing:"border-box",display:a.display||"grid",flexWrap:"wrap","grid-template-columns":a.direction==="row"?"repeat(auto-fill, minmax("+a.minWidth+", auto))":"100%","grid-gap":"var(--sl-spacing-"+a.gap+")",padding:a.padding==="none"?"0":"var(--sl-spacing-"+a.padding+")",maxWidth:a.maxWidth,margin:a.center&&"auto",justifyContent:a.justifyContent}};var n="\n :host{\n width: 100%;\n display: block;\n }";var i=createStyleSheet(e);var r=i.toString();return h("div",{class:i.classes.Container,part:"sqm-base"},h("style",{type:"text/css"},n,r),t)}export{PortalContainerView as P,PortalSectionView as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var s,e=1,a=arguments.length;e<a;e++){s=arguments[e];for(var r in s)if(Object.prototype.hasOwnProperty.call(s,r))t[r]=s[r]}return t};return __assign.apply(this,arguments)};import{h}from"./index-17b4da69.js";import{A as AuthWrapper,a as AuthColumn,b as AuthButtonsContainer}from"./mixins-f60a614c.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";import{T as TextSpanView}from"./sqm-text-span-view-2f7d6d14.js";var style={Wrapper:AuthWrapper,Column:__assign({},AuthColumn),ButtonsContainer:AuthButtonsContainer,SecondaryButton:{cursor:"pointer",width:"25%"}};var vanillaStyle="\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n";var sheet=createStyleSheet(style);var styleString=sheet.toString();function PortalForgotPasswordView(t){var s=t.states,e=t.callbacks,a=t.content;return h("div",{class:sheet.classes.Wrapper,part:"sqm-forgot-password-container"},h("style",{type:"text/css"},vanillaStyle,styleString),h(TextSpanView,{type:"h3"},a.messageSlot),h("sl-form",{class:sheet.classes.Column,"onSl-submit":e.submit},t.states.error&&h("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},h("div",{part:"erroralert-text"},t.states.error)),t.states.success&&h("sqm-form-message",{type:"success",exportparts:"successalert-icon"},h("div",{part:"successalert-text"},"If an account with that email exists, a password reset email will be sent.")),h("sl-input",{exportparts:"label: input-label",type:"email",name:"/email",label:a.emailLabel||"Email",disabled:s.loading,required:true}),h("div",{class:sheet.classes.ButtonsContainer},h("sl-button",{submit:true,loading:s.loading,exportparts:"base: primarybutton-base",type:"primary"},a.submitLabel||"Reset Password"),h("div",{class:sheet.classes.SecondaryButton},a.secondaryButton))))}export{PortalForgotPasswordView as P};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h}from"./index-17b4da69.js";import{i as intl}from"./global-170c4499.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";import{T as TextSpanView}from"./sqm-text-span-view-2f7d6d14.js";function PortalProfileView(e){var a,t,s,l,i;var r=e.states,o=e.callbacks;var n=r.text,d=r.formState;var m=d.errors,u=d.error;var p={Container:{display:"flex",flexDirection:"column",gap:"var(--sl-spacing-xxx-large)",padding:"var(--sl-spacing-xxx-large)"},FormStyle:{width:"100%",minWidth:"700px","& >*:not(:last-child)":{"margin-bottom":"32px"},"@media screen and (max-width: 1100px)":{minWidth:"100%"}},Error:{"&::part(erroralert-base)":{"margin-bottom":"32px"}},Success:{"&::part(successalert-base)":{"margin-bottom":"32px"}},NameInputStyle:{width:"50%","@media screen and (max-width: 860px)":{width:"100%","margin-right":"0"}},NameInputContainer:{display:"flex",gap:"32px",width:"100%","@media screen and (max-width: 860px)":{flexDirection:"column"}}};var c=createStyleSheet(p);var v=c.toString();var x=((a=r.user)===null||a===void 0?void 0:a.countryCode)?intl.formatDisplayName((t=r.user)===null||t===void 0?void 0:t.countryCode,{type:"region"}):"";return h("div",{class:c.classes.Container,part:"sqm-portal-profile-container"},h("style",{type:"text/css"},v),h(TextSpanView,Object.assign({},{type:"h1"}),n.editProfileHeader),h(TextSpanView,Object.assign({},{type:"h2"}),n.editProfileSubHeader),h("form",{class:c.classes.FormStyle,onSubmit:o.onSubmit},r.success&&h("sqm-form-message",{class:c.classes.Success,exportparts:"success-icon"},h("div",{part:"successalert-text"},"Your profile has been successfully updated.")),u&&h("sqm-form-message",{class:c.classes.Error,type:"error",exportparts:"erroralert-icon"},h("div",{part:"erroralert-text"},u)),h("div",{class:c.classes.NameInputContainer},h("sl-input",Object.assign({class:c.classes.NameInputStyle,exportparts:"label: input-label",value:(s=r.user)===null||s===void 0?void 0:s.firstName,onInput:o.onChange,label:n.firstnametext,disabled:r.loading},(m===null||m===void 0?void 0:m.firstName)&&(m===null||m===void 0?void 0:m.firstName.status)!=="valid"?{class:"ErrorStyles",helpText:"Cannot be empty"}:[],{id:"firstName",name:"firstName",error:(m===null||m===void 0?void 0:m.firstName)&&(m===null||m===void 0?void 0:m.firstName.status)!=="valid"?m===null||m===void 0?void 0:m.firstName.message:undefined})),h("sl-input",Object.assign({class:c.classes.NameInputStyle,exportparts:"label: input-label",value:(l=r.user)===null||l===void 0?void 0:l.lastName,onInput:o.onChange,label:n.lastnametext,disabled:r.loading,id:"lastName",name:"lastName"},(m===null||m===void 0?void 0:m.lastName)&&(m===null||m===void 0?void 0:m.lastName.status)!=="valid"?{class:"ErrorStyles",helpText:"Cannot be empty"}:[],{error:(m===null||m===void 0?void 0:m.lastName)&&(m===null||m===void 0?void 0:m.lastName.status)!=="valid"?m===null||m===void 0?void 0:m.lastName.message:undefined}))),h("sl-input",{label:n.emailtext,value:(i=r.user)===null||i===void 0?void 0:i.email,exportparts:"label: input-label",disabled:true}),r.showCountry&&h("sl-input",{label:n.countrytext,value:x,exportparts:"label: input-label",disabled:true}),h("sl-button",{type:"primary",loading:r.loading,disabled:r.submitDisabled,onClick:function(e){o.onSubmit(e)},submit:true},n.submitChangeButtonText)))}export{PortalProfileView as P};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h}from"./index-17b4da69.js";import{A as AuthWrapper,a as AuthColumn}from"./mixins-f60a614c.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";import{T as TextSpanView}from"./sqm-text-span-view-2f7d6d14.js";var style={Wrapper:AuthWrapper,Column:AuthColumn,ContinueButton:{width:"100%"}};var vanillaStyle="\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n";var sheet=createStyleSheet(style);var styleString=sheet.toString();function PortalVerifyEmailView(e){var t=e.states,r=e.data,a=e.callbacks;if(t.verified){return h("div",{class:sheet.classes.Wrapper,part:"sqm-portal-verify-email-container"},h("style",{type:"text/css"},vanillaStyle,styleString),h(TextSpanView,{type:"h3"},"Verify your email"),h("sqm-form-message",{exportparts:"success-icon"},h("div",{part:"successalert-text"},"Your email has been verified and you are being redirected. If you are not redirected, please click Continue.")),h("sl-button",{class:sheet.classes.ContinueButton,onClick:a.gotoNextPage,loading:t.loading,exportparts:"base: primarybutton-base",type:"primary"},"Continue"))}if(t.error||!r.oobCode){return h("div",{class:sheet.classes.Wrapper},h("style",{type:"text/css"},styleString),h(TextSpanView,{type:"h3"},"Verify your email"),h("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},h("div",{part:"erroralert-text"},"The email verification code is invalid or has expired, please try again.")),h("sl-button",{class:sheet.classes.ContinueButton,onClick:a.failed,loading:t.loading,exportparts:"base: primarybutton-base",type:"primary"},"Continue"))}}export{PortalVerifyEmailView as P};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h}from"./index-17b4da69.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";var style={Container:{color:"var(--sl-color-neutral-600)"},Link:{textDecoration:"none",color:"var(--sl-color-primary-700)","&:hover":{color:"var(--sl-color-primary-800)"}}};var vanillaStyle="\n:host{\n display: inline; \n}\n";var sheet=createStyleSheet(style);var styleString=sheet.toString();function UserIdentifierView(e){var t=e.userIdentificationText,r=e.switchUserLink,s=e.switchUserText;return h("span",{class:sheet.classes.Container,part:"sqm-base"},h("style",{type:"text/css"},styleString,vanillaStyle),t," (",h("a",{class:sheet.classes.Link,href:r,part:"sqm-link"},s),")")}export{UserIdentifierView as U};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as registerInstance,h}from"./index-17b4da69.js";import"./stencil-hooks.module-b48b45ec.js";import"./use-callback-051c06c6.js";import{i as isDemo}from"./index.module-0ba0774e.js";import{c as cjs}from"./cjs-bdfb4486.js";import"./JSS-67b5cff8.js";import{U as UserIdentifierView}from"./sqm-user-identifier-view-dbf71a5e.js";function useUserIdentifier(e){return{switchUserLink:e.switchUserLink,userIdentificationText:"",switchUserText:""}}var UserIdentifier=function(){function e(e){registerInstance(this,e);this.userIdentificationText="{email}";this.switchUserText="not you?"}e.prototype.render=function(){var e=isDemo()?useDemoUserIdentifier(this):useUserIdentifier(this);return h(UserIdentifierView,Object.assign({},e))};return e}();function useDemoUserIdentifier(e){return cjs({switchUserLink:e.switchUserLink||"https://example.com",userIdentificationText:e.userIdentificationText,switchUserText:e.switchUserText},e.demoData||{},{arrayMerge:function(e,i){return i}})}export{UserIdentifier as sqm_user_identifier};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{k as useMemo}from"./stencil-hooks.module-b48b45ec.js";var useCallback=function(e,o){return useMemo((function(){return e}),o)};export{useCallback as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++){n=arguments[r];for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o))e[o]=n[o]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,n,r,t){function o(e){return e instanceof r?e:new r((function(n){n(e)}))}return new(r||(r=Promise))((function(r,i){function a(e){try{l(t.next(e))}catch(e){i(e)}}function s(e){try{l(t["throw"](e))}catch(e){i(e)}}function l(e){e.done?r(e.value):o(e.value).then(a,s)}l((t=t.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},t,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(n){return l([e,n])}}function l(a){if(t)throw new TypeError("Generator is already executing.");while(r)try{if(t=1,o&&(i=a[0]&2?o["return"]:a[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;if(o=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:r.label++;return{value:a[1],done:false};case 5:r.label++;o=a[1];a=[0];continue;case 7:a=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(a[0]===6&&r.label<i[1]){r.label=i[1];i=a;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(a);break}if(i[2])r.ops.pop();r.trys.pop();continue}a=n.call(e,r)}catch(e){a=[6,e];o=0}finally{t=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{i as useState}from"./stencil-hooks.module-b48b45ec.js";import{j as sn}from"./index.module-0ba0774e.js";import{j as jsonpointer}from"./jsonpointer-388a7082.js";function usePasswordlessRegistration(){var e=this;var n,r,t,o,i,a,s;var l=new URLSearchParams(window.location.search);var u=l===null||l===void 0?void 0:l.get("_saasquatch");var c=sn(),v=c[0],f=c[1],d=f.loading,h=f.errors,p=f.data;var m=useState(""),_=m[0],b=m[1];var w=function(n){return __awaiter(e,void 0,void 0,(function(){var e,r,t,o;return __generator(this,(function(i){switch(i.label){case 0:b("");r=n.detail.formData;r===null||r===void 0?void 0:r.forEach((function(e,n){jsonpointer.set(r,n,e)}));t=__assign({firstName:r.firstName,lastName:r.lastName,email:r.email},u?{cookies:u}:{});return[4,v(t)];case 1:o=i.sent();if(o instanceof Error){if((o===null||o===void 0?void 0:o.message)||((e=o===null||o===void 0?void 0:o["response"])===null||e===void 0?void 0:e["error"]))b("Network request failed.");return[2]}return[2]}}))}))};var g=((o=(t=(r=(n=h===null||h===void 0?void 0:h.response)===null||n===void 0?void 0:n.errors)===null||r===void 0?void 0:r[0])===null||t===void 0?void 0:t.extensions)===null||o===void 0?void 0:o.message)||((s=(a=(i=h===null||h===void 0?void 0:h.response)===null||i===void 0?void 0:i.errors)===null||a===void 0?void 0:a[0])===null||s===void 0?void 0:s.message)||_;return{states:{loading:d,error:g},callbacks:{submit:w}}}export{usePasswordlessRegistration as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{y}from"./stencil-hooks.module-b48b45ec.js";import{R}from"./index.module-0ba0774e.js";var REGISTRATION_FORM_STATE_CONTEXT="sq:registration-form-state";function useRegistrationFormState(t){var r=R();var e=y(r,REGISTRATION_FORM_STATE_CONTEXT,t),o=e[0],T=e[1];return{registrationFormState:o,setRegistrationFormState:T}}export{REGISTRATION_FORM_STATE_CONTEXT as R,useRegistrationFormState as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e}from"./p-64c3217a.js";import{A as t,a,b as r}from"./p-02be1a88.js";import{c as s}from"./p-cef45012.js";const n=s({Wrapper:t,Column:a,ForgotButtonContainer:{display:"inline",cursor:"pointer","font-size":"13px","font-weight":"600",color:"#AAAAAA",margin:"0"},ButtonsContainer:r}),l=n.toString();function i(t){const{states:a,callbacks:r,content:s}=t;return e("div",{class:n.classes.Wrapper},e("style",{type:"text/css"},"\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\na svg {\n margin: 0 auto;\n display: block;\n}\n",l),s.topSlot,e("sl-form",{class:n.classes.Column,"onSl-submit":r.submit},t.states.error&&e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},t.states.error)),s.includeName&&e("sl-input",{exportparts:"label: input-label",type:"name",name:"/firstName",label:s.firstNameLabel||"First Name",disabled:a.loading,required:!0}),s.includeName&&e("sl-input",{exportparts:"label: input-label",type:"name",name:"/lastName",label:s.lastNameLabel||"Last Name",disabled:a.loading,required:!0}),e("sl-input",{exportparts:"label: input-label",type:"email",name:"/email",label:s.emailLabel||"Email",disabled:a.loading,required:!0}),e("div",{class:n.classes.ButtonsContainer},e("sl-button",{submit:!0,loading:a.loading,exportparts:"base: primarybutton-base",type:"primary"},s.registerLabel||"Registration"))),s.bottomSlot)}export{i as E}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject=this&&this.__makeTemplateObject||function(r,e){if(Object.defineProperty){Object.defineProperty(r,"raw",{value:e})}else{r.raw=e}return r};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(r){for(var e,i=1,a=arguments.length;i<a;i++){e=arguments[i];for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))r[t]=e[t]}return r};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(r,e,i,a){function t(r){return r instanceof i?r:new i((function(e){e(r)}))}return new(i||(i=Promise))((function(i,s){function o(r){try{l(a.next(r))}catch(r){s(r)}}function n(r){try{l(a["throw"](r))}catch(r){s(r)}}function l(r){r.done?i(r.value):t(r.value).then(o,n)}l((a=a.apply(r,e||[])).next())}))};var __generator=this&&this.__generator||function(r,e){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},a,t,s,o;return o={next:n(0),throw:n(1),return:n(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function n(r){return function(e){return l([r,e])}}function l(o){if(a)throw new TypeError("Generator is already executing.");while(i)try{if(a=1,t&&(s=o[0]&2?t["return"]:o[0]?t["throw"]||((s=t["return"])&&s.call(t),0):t.next)&&!(s=s.call(t,o[1])).done)return s;if(t=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;t=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){i.label=o[1];break}if(o[0]===6&&i.label<s[1]){i.label=s[1];s=o;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(o);break}if(s[2])i.ops.pop();i.trys.pop();continue}o=e.call(r,i)}catch(r){o=[6,r];t=0}finally{a=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-ff17b3a4.system.js","./p-b79c0e38.system.js","./p-1f54fd38.system.js","./p-35d6d322.system.js","./p-b2295bc5.system.js","./p-4bd679a7.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-bb6f60a6.system.js","./p-9d362d44.system.js","./p-657acf81.system.js"],(function(r){"use strict";var e,i,a,t,s,o,n,l,d,u,v,c,f,m,g,p,b,h,y,w,E,_;return{setters:[function(r){e=r.h;i=r.r},function(r){a=r.j;t=r.u;s=r.m},function(r){o=r.u},function(r){n=r.d;l=r.q;d=r.f;u=r.g;v=r.i},function(r){c=r.j},function(r){f=r.c},function(r){m=r.A;g=r.a;p=r.H;b=r.b;h=r.E},function(r){y=r.c},function(r){w=r.T},function(r){E=r.A},function(r){_=r.u}],execute:function(){var P={Wrapper:__assign(__assign({},m),{"max-width":"600px"}),Column:g,HostBlock:p,":host":{margin:"0 auto",width:"100%"},ButtonsContainer:b,ErrorStyle:h};var M="\nsqm-portal-register {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n\n:host{\n display: block;\n}\n\n:host([hidden]) {\n display: none;\n}\n";var k=y(P);var F=k.toString();function S(r){var i,a,t,s,o,n,l,d,u,v,c,f,m,g,p,b,h,y,E,_;var P=r.states,S=r.refs,D=r.callbacks,L=r.content;if(P.error){window.scrollTo({top:0,left:0,behavior:"smooth"})}return e("div",{class:k.classes.Wrapper,part:"sqm-portal-registration-container"},e("style",{type:"text/css"},M,F),e(w,{type:"h3"},L.pageLabel),e("sl-form",{class:k.classes.Column,"onSl-submit":D.submit,ref:function(r){return S.formRef.current=r},novalidate:true},((i=P.registrationFormState)===null||i===void 0?void 0:i.disabled)?e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},P.registrationFormState.disabledMessage)):P.error&&e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},r.states.error)),L.formData,!P.hideInputs&&e("sl-input",Object.assign({exportparts:"label: input-label",type:"email",name:"/email",label:L.emailLabel||"Email",disabled:P.loading||((a=P.registrationFormState)===null||a===void 0?void 0:a.disabled),required:true,validationError:function(r){var e=r.value;if(!e){return L.requiredFieldErrorMessage}if(!e.includes("@")){return L.invalidEmailErrorMessage}}},((s=(t=P.registrationFormState)===null||t===void 0?void 0:t.initialData)===null||s===void 0?void 0:s.email)?{value:(n=(o=P.registrationFormState)===null||o===void 0?void 0:o.initialData)===null||n===void 0?void 0:n.email}:{},((d=(l=P.registrationFormState)===null||l===void 0?void 0:l.validationErrors)===null||d===void 0?void 0:d.email)?{class:k.classes.ErrorStyle,helpText:((v=(u=P.registrationFormState)===null||u===void 0?void 0:u.validationErrors)===null||v===void 0?void 0:v.email)||L.requiredFieldErrorMessage}:[])),!P.hideInputs&&e("sqm-password-field",{fieldLabel:L.passwordLabel,"disable-validation":!P.enablePasswordValidation}),L.passwordField,!P.hideInputs&&P.confirmPassword&&e("sl-input",Object.assign({exportparts:"label: input-label",type:"password",name:"/confirmPassword",label:L.confirmPasswordLabel,disabled:P.loading||((c=P.registrationFormState)===null||c===void 0?void 0:c.disabled),required:true},((m=(f=P.registrationFormState)===null||f===void 0?void 0:f.initialData)===null||m===void 0?void 0:m.confirmPassword)?{value:(p=(g=P.registrationFormState)===null||g===void 0?void 0:g.initialData)===null||p===void 0?void 0:p.confirmPassword}:{},((h=(b=P.registrationFormState)===null||b===void 0?void 0:b.validationErrors)===null||h===void 0?void 0:h.confirmPassword)?{class:k.classes.ErrorStyle,helpText:((E=(y=P.registrationFormState)===null||y===void 0?void 0:y.validationErrors)===null||E===void 0?void 0:E.confirmPassword)||L.requiredFieldErrorMessage}:[])),L.terms,e("div",{class:k.classes.ButtonsContainer},e("sl-button",{submit:true,loading:P.loading,disabled:(_=P.registrationFormState)===null||_===void 0?void 0:_.disabled,exportparts:"base: primarybutton-base",type:"primary"},L.submitLabel||"Register"),L.secondaryButton)))}var D=n.gql(__makeTemplateObject(["\n query RegistrationFormQuery($key: String!) {\n form(key: $key) {\n key\n type\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"],["\n query RegistrationFormQuery($key: String!) {\n form(key: $key) {\n key\n type\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"]));function L(r){var e=this;var i,s,n,v,f,m,g,p,b;var h=a(null);var y=_({}),w=y.registrationFormState,P=y.setRegistrationFormState;var M=l(),k=M[0],F=M[1],S=F.loading,L=F.errors,j=F.data,q=F.formError;var x=d(D,{key:r.formKey});var O=S||x.loading;t((function(){var e,i,a;var t=(e=x===null||x===void 0?void 0:x.data)===null||e===void 0?void 0:e.form.initialData.initialData;var s=((i=x===null||x===void 0?void 0:x.data)===null||i===void 0?void 0:i.form.initialData.isEnabled)===false;var o=((a=x===null||x===void 0?void 0:x.data)===null||a===void 0?void 0:a.form.initialData.isEnabledErrorMessage)||r.formDisabledErrorMessage;var n={loading:O,disabled:s,disabledMessage:o,initialData:t};P(n)}),[(i=x===null||x===void 0?void 0:x.data)===null||i===void 0?void 0:i.form.initialData]);t((function(){if(!h.current)return;var r=h.current;r.addEventListener("sl-input",R);return function(){r.removeEventListener("sl-input",R)}}),[h.current]);var C=function(i){return __awaiter(e,void 0,void 0,(function(){var e,a,t,s,o,n,l,d,v,f,m,g,p,b,h,y,E,_,M,F,S,D,L,j,q,x,O,C;return __generator(this,(function(R){switch(R.label){case 0:M=i.target.getFormControls();F={};S={};M===null||M===void 0?void 0:M.forEach((function(e){if(!e.name)return;var i=e.name;var a=e.value;c.set(F,i,a);if(e.required&&!a){c.set(S,i,r.requiredFieldErrorMessage)}if(typeof e.validationError==="function"){var t=e.validationError;var s=t({control:e,key:i,value:a});if(s)c.set(S,i,s)}}));if((r.confirmPassword||F.confirmPassword)&&F.password!==F.confirmPassword){S=__assign(__assign({},S),{confirmPassword:r.passwordMismatchErrorMessage})}if(Object.keys(S).length){P(__assign(__assign({},w),{loading:false,error:"",validationErrors:S}));return[2]}P(__assign(__assign({},w),{loading:true,error:"",validationErrors:{}}));D=F.email,L=F.password;delete F.email;delete F.password;delete F.confirmPassword;j=r.redirectPath;q={key:r.formKey,formData:__assign({email:D,password:L,redirectPath:j},F)};R.label=1;case 1:R.trys.push([1,3,,4]);return[4,k(q)];case 2:x=R.sent();if(x instanceof Error){throw x}P(__assign(__assign({},w),{loading:false,error:"",validationErrors:{}}));O=(e=x.submitForm)===null||e===void 0?void 0:e.results.find((function(r){var e;return((e=r===null||r===void 0?void 0:r.formHandler)===null||e===void 0?void 0:e.namespace)==="identity"}));if(O&&O.result.results.length&&O.result.results[0].success&&O.result.results[0].data.token){u.push(r.nextPage)}else if(((a=x.submitForm)===null||a===void 0?void 0:a.results.length)===1&&((n=(o=(s=(t=x.submitForm)===null||t===void 0?void 0:t.results[0])===null||s===void 0?void 0:s.result)===null||o===void 0?void 0:o.results)===null||n===void 0?void 0:n.length)===1&&((m=(f=(v=(d=(l=x.submitForm)===null||l===void 0?void 0:l.results[0])===null||d===void 0?void 0:d.result)===null||v===void 0?void 0:v.results)===null||f===void 0?void 0:f[0])===null||m===void 0?void 0:m.success)===false&&((E=(y=(h=(b=(p=(g=x.submitForm)===null||g===void 0?void 0:g.results[0])===null||p===void 0?void 0:p.result)===null||b===void 0?void 0:b.results)===null||h===void 0?void 0:h[0])===null||y===void 0?void 0:y.message)===null||E===void 0?void 0:E.startsWith("Blocked email"))){P(__assign(__assign({},w),{loading:false,error:"",validationErrors:{email:r.invalidEmailErrorMessage}}))}return[3,4];case 3:C=R.sent();if((_=C===null||C===void 0?void 0:C.message)===null||_===void 0?void 0:_.includes("is not a valid email address")){P(__assign(__assign({},w),{loading:false,error:"",validationErrors:{email:r.invalidEmailErrorMessage}}))}else{P(__assign(__assign({},w),{loading:false,error:r.networkErrorMessage,validationErrors:{}}))}return[3,4];case 4:return[2]}}))}))};var R=o((function(r){var e,i;var a=(i=(e=r.target)===null||e===void 0?void 0:e.type)===null||i===void 0?void 0:i.toLowerCase();if(a!=="tel")return;var t=new E("US");r.target.value=t.input(r.target.value)}),[]);var T="";if(((s=x===null||x===void 0?void 0:x.data)===null||s===void 0?void 0:s.form.initialData.isEnabled)===false){T=((n=x===null||x===void 0?void 0:x.data)===null||n===void 0?void 0:n.form.initialData.isEnabledErrorMessage)||r.formDisabledErrorMessage}else if((v=L===null||L===void 0?void 0:L.response)===null||v===void 0?void 0:v["error"]){T=r.networkErrorMessage}else if((L===null||L===void 0?void 0:L.message)&&!((f=L===null||L===void 0?void 0:L.response)===null||f===void 0?void 0:f.errors.length)){T=r.networkErrorMessage}else{T=q||((b=(p=(g=(m=x===null||x===void 0?void 0:x.errors)===null||m===void 0?void 0:m.response)===null||g===void 0?void 0:g.errors)===null||p===void 0?void 0:p[0])===null||b===void 0?void 0:b.message)||(w===null||w===void 0?void 0:w.error)}return{states:{loading:S||x.loading,error:T,registrationFormState:w,confirmPassword:r.confirmPassword,hideInputs:r.hideInputs,loginPath:r.loginPath,enablePasswordValidation:!r.disablePasswordValidation},callbacks:{submit:C,inputFunction:R},refs:{formRef:h}}}var j=r("sqm_portal_registration_form",function(){function r(r){i(this,r);this.ignored=true;this.nextPage="/";this.redirectPath="/verifyEmail";this.emailLabel="Email";this.passwordLabel="Password";this.submitLabel="Register";this.loginLabel="Sign in";this.confirmPasswordLabel="Confirm Password";this.confirmPassword=false;this.disablePasswordValidation=false;this.hideInputs=false;this.pageLabel="Register";this.loginPath="/login";this.requiredFieldErrorMessage="Cannot be empty";this.networkErrorMessage="Network request failed.";this.passwordMismatchErrorMessage="Passwords do not match.";this.invalidEmailErrorMessage="Must be a valid email address";this.formDisabledErrorMessage="The registration form is currently disabled.";s(this)}r.prototype.disconnectedCallback=function(){};r.prototype.render=function(){var r=v()?q(this):L(this),i=r.states,a=r.callbacks,t=r.refs;var s={formData:e("slot",{name:"formData"}),secondaryButton:e("slot",{name:"secondaryButton"},e("sl-button",{type:"text",disabled:i.loading,onClick:function(){return u.push(i.loginPath)}},this.loginLabel)),terms:e("slot",{name:"terms"}),emailLabel:this.emailLabel,passwordLabel:this.passwordLabel,submitLabel:this.submitLabel,pageLabel:this.pageLabel,confirmPasswordLabel:this.confirmPasswordLabel,networkErrorMessage:this.networkErrorMessage,passwordMismatchErrorMessage:this.passwordMismatchErrorMessage,invalidEmailErrorMessage:this.invalidEmailErrorMessage,formDisabledErrorMessage:this.formDisabledErrorMessage,requiredFieldErrorMessage:this.requiredFieldErrorMessage};return e(S,{states:i,callbacks:a,content:s,refs:t})};return r}());function q(r){var e=this;return f({states:{error:"",loading:false,confirmPassword:r.confirmPassword,hideInputs:r.hideInputs||false,customPasswordField:false,loginPath:"/login"},callbacks:{submit:function(r){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(r){console.log("submit");return[2]}))}))},inputFunction:function(){}},refs:{formRef:{}}},r.demoData||{},{arrayMerge:function(r,e){return e}})}}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as r,k as t}from"./p-ed801cb7.js";import{R as o}from"./p-bfd347b4.js";function s(){const s=o(),e=s.children.length?Array.from(s.children):[],[i,n]=r(e);let a;return t((()=>{a=new MutationObserver((()=>{const r=Array.from(s.children);n([...r])}))}),[]),t((()=>{if(a)return a.observe(s,{childList:!0}),()=>{a.disconnect()}}),[s]),i}export{s as u}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as s,c as r,r as t}from"./p-64c3217a.js";import{m as o}from"./p-ed801cb7.js";import"./p-f66b4b3a.js";import"./p-bfd347b4.js";import{a}from"./p-9d9da716.js";const p=({},t)=>s(r,null,t),c=class{constructor(s){t(this,s),o(this)}disconnectedCallback(){}render(){return a([this.header]),s(p,null,s("slot",null))}};export{c as sqm_tab}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import{h as i,r as o}from"./p-64c3217a.js";import{j as l,u as r,m as t}from"./p-ed801cb7.js";import{u as s}from"./p-f66b4b3a.js";import{d as a,q as e,f as d,g as n,i as v}from"./p-bfd347b4.js";import{j as u}from"./p-e7e129ac.js";import{c as m}from"./p-c1086930.js";import{A as c,a as p,H as f,b,E as h}from"./p-02be1a88.js";import{c as g}from"./p-cef45012.js";import{T as y}from"./p-f8dd6bac.js";import{A as w}from"./p-121cdc60.js";import{u as E}from"./p-6ddc2a08.js";const k=g({Wrapper:{...c,"max-width":"600px"},Column:p,HostBlock:f,":host":{margin:"0 auto",width:"100%"},ButtonsContainer:b,ErrorStyle:h}),j=k.toString();function x(o){var l,r,t,s,a,e,d,n,v,u,m,c,p,f,b,h,g,w,E,x;const{states:P,refs:q,callbacks:M,content:F}=o;return P.error&&window.scrollTo({top:0,left:0,behavior:"smooth"}),i("div",{class:k.classes.Wrapper,part:"sqm-portal-registration-container"},i("style",{type:"text/css"},"\nsqm-portal-register {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n\n:host{\n display: block;\n}\n\n:host([hidden]) {\n display: none;\n}\n",j),i(y,{type:"h3"},F.pageLabel),i("sl-form",{class:k.classes.Column,"onSl-submit":M.submit,ref:i=>q.formRef.current=i,novalidate:!0},(null===(l=P.registrationFormState)||void 0===l?void 0:l.disabled)?i("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},i("div",{part:"erroralert-text"},P.registrationFormState.disabledMessage)):P.error&&i("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},i("div",{part:"erroralert-text"},o.states.error)),F.formData,!P.hideInputs&&i("sl-input",Object.assign({exportparts:"label: input-label",type:"email",name:"/email",label:F.emailLabel||"Email",disabled:P.loading||(null===(r=P.registrationFormState)||void 0===r?void 0:r.disabled),required:!0,validationError:({value:i})=>i?i.includes("@")?void 0:F.invalidEmailErrorMessage:F.requiredFieldErrorMessage},(null===(s=null===(t=P.registrationFormState)||void 0===t?void 0:t.initialData)||void 0===s?void 0:s.email)?{value:null===(e=null===(a=P.registrationFormState)||void 0===a?void 0:a.initialData)||void 0===e?void 0:e.email}:{},(null===(n=null===(d=P.registrationFormState)||void 0===d?void 0:d.validationErrors)||void 0===n?void 0:n.email)?{class:k.classes.ErrorStyle,helpText:(null===(u=null===(v=P.registrationFormState)||void 0===v?void 0:v.validationErrors)||void 0===u?void 0:u.email)||F.requiredFieldErrorMessage}:[])),!P.hideInputs&&i("sqm-password-field",{fieldLabel:F.passwordLabel,"disable-validation":!P.enablePasswordValidation}),F.passwordField,!P.hideInputs&&P.confirmPassword&&i("sl-input",Object.assign({exportparts:"label: input-label",type:"password",name:"/confirmPassword",label:F.confirmPasswordLabel,disabled:P.loading||(null===(m=P.registrationFormState)||void 0===m?void 0:m.disabled),required:!0},(null===(p=null===(c=P.registrationFormState)||void 0===c?void 0:c.initialData)||void 0===p?void 0:p.confirmPassword)?{value:null===(b=null===(f=P.registrationFormState)||void 0===f?void 0:f.initialData)||void 0===b?void 0:b.confirmPassword}:{},(null===(g=null===(h=P.registrationFormState)||void 0===h?void 0:h.validationErrors)||void 0===g?void 0:g.confirmPassword)?{class:k.classes.ErrorStyle,helpText:(null===(E=null===(w=P.registrationFormState)||void 0===w?void 0:w.validationErrors)||void 0===E?void 0:E.confirmPassword)||F.requiredFieldErrorMessage}:[])),F.terms,i("div",{class:k.classes.ButtonsContainer},i("sl-button",{submit:!0,loading:P.loading,disabled:null===(x=P.registrationFormState)||void 0===x?void 0:x.disabled,exportparts:"base: primarybutton-base",type:"primary"},F.submitLabel||"Register"),F.secondaryButton)))}const P=a.gql`
|
|
2
|
-
query RegistrationFormQuery($key: String!) {
|
|
3
|
-
form(key: $key) {
|
|
4
|
-
key
|
|
5
|
-
type
|
|
6
|
-
initialData {
|
|
7
|
-
initialData
|
|
8
|
-
isEnabled
|
|
9
|
-
isEnabledErrorMessage
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
`,q=class{constructor(i){o(this,i),this.ignored=!0,this.nextPage="/",this.redirectPath="/verifyEmail",this.emailLabel="Email",this.passwordLabel="Password",this.submitLabel="Register",this.loginLabel="Sign in",this.confirmPasswordLabel="Confirm Password",this.confirmPassword=!1,this.disablePasswordValidation=!1,this.hideInputs=!1,this.pageLabel="Register",this.loginPath="/login",this.requiredFieldErrorMessage="Cannot be empty",this.networkErrorMessage="Network request failed.",this.passwordMismatchErrorMessage="Passwords do not match.",this.invalidEmailErrorMessage="Must be a valid email address",this.formDisabledErrorMessage="The registration form is currently disabled.",t(this)}disconnectedCallback(){}render(){const{states:o,callbacks:t,refs:a}=v()?m({states:{error:"",loading:!1,confirmPassword:this.confirmPassword,hideInputs:this.hideInputs||!1,customPasswordField:!1,loginPath:"/login"},callbacks:{submit:async()=>{console.log("submit")},inputFunction:()=>{}},refs:{formRef:{}}},this.demoData||{},{arrayMerge:(i,o)=>o}):function(i){var o,t,a,v,m,c,p,f,b;const h=l(null),{registrationFormState:g,setRegistrationFormState:y}=E({}),[k,{loading:j,errors:x,formError:q}]=e(),M=d(P,{key:i.formKey}),F=j||M.loading;r((()=>{var o,l,r;const t=null===(o=null==M?void 0:M.data)||void 0===o?void 0:o.form.initialData.initialData,s=!1===(null===(l=null==M?void 0:M.data)||void 0===l?void 0:l.form.initialData.isEnabled),a=(null===(r=null==M?void 0:M.data)||void 0===r?void 0:r.form.initialData.isEnabledErrorMessage)||i.formDisabledErrorMessage;y({loading:F,disabled:s,disabledMessage:a,initialData:t})}),[null===(o=null==M?void 0:M.data)||void 0===o?void 0:o.form.initialData]),r((()=>{if(!h.current)return;const i=h.current;return i.addEventListener("sl-input",S),()=>{i.removeEventListener("sl-input",S)}}),[h.current]);const S=s((i=>{var o,l;if("tel"!==(null===(l=null===(o=i.target)||void 0===o?void 0:o.type)||void 0===l?void 0:l.toLowerCase()))return;const r=new w("US");i.target.value=r.input(i.target.value)}),[]);let D="";return D=!1===(null===(t=null==M?void 0:M.data)||void 0===t?void 0:t.form.initialData.isEnabled)?(null===(a=null==M?void 0:M.data)||void 0===a?void 0:a.form.initialData.isEnabledErrorMessage)||i.formDisabledErrorMessage:(null===(v=null==x?void 0:x.response)||void 0===v?void 0:v.error)||(null==x?void 0:x.message)&&!(null===(m=null==x?void 0:x.response)||void 0===m?void 0:m.errors.length)?i.networkErrorMessage:q||(null===(b=null===(f=null===(p=null===(c=null==M?void 0:M.errors)||void 0===c?void 0:c.response)||void 0===p?void 0:p.errors)||void 0===f?void 0:f[0])||void 0===b?void 0:b.message)||(null==g?void 0:g.error),{states:{loading:j||M.loading,error:D,registrationFormState:g,confirmPassword:i.confirmPassword,hideInputs:i.hideInputs,loginPath:i.loginPath,enablePasswordValidation:!i.disablePasswordValidation},callbacks:{submit:async o=>{var l,r,t,s,a,e,d,v,m,c,p,f,b,h,w,E,j,x;let P=o.target.getFormControls(),q={},M={};if(null==P||P.forEach((o=>{if(!o.name)return;const l=o.name,r=o.value;if(u.set(q,l,r),o.required&&!r&&u.set(M,l,i.requiredFieldErrorMessage),"function"==typeof o.validationError){const i=(0,o.validationError)({control:o,key:l,value:r});i&&u.set(M,l,i)}})),(i.confirmPassword||q.confirmPassword)&&q.password!==q.confirmPassword&&(M={...M,confirmPassword:i.passwordMismatchErrorMessage}),Object.keys(M).length)return void y({...g,loading:!1,error:"",validationErrors:M});y({...g,loading:!0,error:"",validationErrors:{}});const{email:F,password:S}=q;delete q.email,delete q.password,delete q.confirmPassword;const D={key:i.formKey,formData:{email:F,password:S,redirectPath:i.redirectPath,...q}};try{const o=await k(D);if(o instanceof Error)throw o;y({...g,loading:!1,error:"",validationErrors:{}});const u=null===(l=o.submitForm)||void 0===l?void 0:l.results.find((i=>{var o;return"identity"===(null===(o=null==i?void 0:i.formHandler)||void 0===o?void 0:o.namespace)}));u&&u.result.results.length&&u.result.results[0].success&&u.result.results[0].data.token?n.push(i.nextPage):1===(null===(r=o.submitForm)||void 0===r?void 0:r.results.length)&&1===(null===(e=null===(a=null===(s=null===(t=o.submitForm)||void 0===t?void 0:t.results[0])||void 0===s?void 0:s.result)||void 0===a?void 0:a.results)||void 0===e?void 0:e.length)&&!1===(null===(p=null===(c=null===(m=null===(v=null===(d=o.submitForm)||void 0===d?void 0:d.results[0])||void 0===v?void 0:v.result)||void 0===m?void 0:m.results)||void 0===c?void 0:c[0])||void 0===p?void 0:p.success)&&(null===(j=null===(E=null===(w=null===(h=null===(b=null===(f=o.submitForm)||void 0===f?void 0:f.results[0])||void 0===b?void 0:b.result)||void 0===h?void 0:h.results)||void 0===w?void 0:w[0])||void 0===E?void 0:E.message)||void 0===j?void 0:j.startsWith("Blocked email"))&&y({...g,loading:!1,error:"",validationErrors:{email:i.invalidEmailErrorMessage}})}catch(o){(null===(x=null==o?void 0:o.message)||void 0===x?void 0:x.includes("is not a valid email address"))?y({...g,loading:!1,error:"",validationErrors:{email:i.invalidEmailErrorMessage}}):y({...g,loading:!1,error:i.networkErrorMessage,validationErrors:{}})}},inputFunction:S},refs:{formRef:h}}}(this);const c={formData:i("slot",{name:"formData"}),secondaryButton:i("slot",{name:"secondaryButton"},i("sl-button",{type:"text",disabled:o.loading,onClick:()=>n.push(o.loginPath)},this.loginLabel)),terms:i("slot",{name:"terms"}),emailLabel:this.emailLabel,passwordLabel:this.passwordLabel,submitLabel:this.submitLabel,pageLabel:this.pageLabel,confirmPasswordLabel:this.confirmPasswordLabel,networkErrorMessage:this.networkErrorMessage,passwordMismatchErrorMessage:this.passwordMismatchErrorMessage,invalidEmailErrorMessage:this.invalidEmailErrorMessage,formDisabledErrorMessage:this.formDisabledErrorMessage,requiredFieldErrorMessage:this.requiredFieldErrorMessage};return i(x,{states:o,callbacks:t,content:c,refs:a})}};export{q as sqm_portal_registration_form}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,r){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:r})}else{e.raw=r}return e};System.register(["./p-ff17b3a4.system.js","./p-b79c0e38.system.js","./p-70263662.system.js","./p-1f54fd38.system.js","./p-35d6d322.system.js","./p-4bd679a7.system.js","./p-6b5e355c.system.js"],(function(e){"use strict";var r,n,t,a,i,o,s,l,d,u,f;return{setters:[function(e){r=e.r;n=e.h},function(e){t=e.m},function(e){a=e.i},function(){},function(e){i=e.d;o=e.O;s=e.W;l=e.f;d=e.i},function(e){u=e.c},function(e){f=e.L}],execute:function(){var c=i.gql(__makeTemplateObject(["\n query ($type: String!, $filter: UserLeaderboardFilterInput) {\n viewer {\n ... on User {\n leaderboardRank(type: $type, filter: $filter) {\n rowNumber\n rank\n denseRank\n }\n }\n }\n }\n"],["\n query ($type: String!, $filter: UserLeaderboardFilterInput) {\n viewer {\n ... on User {\n leaderboardRank(type: $type, filter: $filter) {\n rowNumber\n rank\n denseRank\n }\n }\n }\n }\n"]));function v(e){var r,n,t,i;var d=o();var u=(r=e.programId)!==null&&r!==void 0?r:d;var f=s();var v=u?{type:e.leaderboardType,filter:{programId_eq:u}}:{type:e.leaderboardType,filter:{}};if(e.interval){v.filter["interval"]=e.interval}var p=l(c,v,!(f===null||f===void 0?void 0:f.jwt)).data;var y=((n=p===null||p===void 0?void 0:p.viewer)===null||n===void 0?void 0:n.leaderboardRank)?a.formatMessage({id:"rankText",defaultMessage:e.rankText},{rank:(i=(t=p===null||p===void 0?void 0:p.viewer)===null||t===void 0?void 0:t.leaderboardRank)===null||i===void 0?void 0:i[e.rankType]}):e.unrankedText||"unranked";return{data:{rank:y}}}var p="p,.P{font-size:var(--sl-font-size-small);color:var(--sl-color-gray-800);margin-top:0px}p.Subtitle,.P.Subtitle{color:var(--sl-color-gray-500);margin:0px}";var y=e("sqm_leaderboard_rank",function(){function e(e){r(this,e);this.rankText="You are currently in {rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th} } place!";t(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=d()?k(this):v(this);return n(f,Object.assign({},e))};return e}());function k(e){var r=a.formatMessage({id:"rankText",defaultMessage:e.rankText},{rank:1})||"1st";return u({data:{rank:r}},e.demoData||{},{arrayMerge:function(e,r){return r}})}y.style=p}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function s(e){try{o(n.next(e))}catch(e){i(e)}}function l(e){try{o(n["throw"](e))}catch(e){i(e)}}function o(e){e.done?r(e.value):a(e.value).then(s,l)}o((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(t){return o([e,t])}}function o(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];a=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],s=0,l=i.length;s<l;s++,a++)n[a]=i[s];return n};System.register(["./p-ff17b3a4.system.js","./p-b79c0e38.system.js","./p-70263662.system.js","./p-1f54fd38.system.js","./p-35d6d322.system.js","./p-4bd679a7.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-9165844e.system.js","./p-517a5669.system.js","./p-f8d9e861.system.js","./p-3c189cea.system.js","./p-64242338.system.js","./p-6333265f.system.js","./p-bb6f60a6.system.js"],(function(e){"use strict";var t,r,n,a,i,s,l,o,d,u,c,f,p,v,h,m,g,_,y,b,T,x;return{setters:[function(e){t=e.r;r=e.h;n=e.g;a=e.c},function(e){i=e.m;s=e.f;l=e.k;o=e.u},function(e){d=e.i},function(){},function(e){u=e.i},function(e){c=e.c},function(){},function(e){f=e.c},function(e){p=e.G},function(e){v=e.a;h=e.u},function(e){m=e.u},function(e){g=e.l},function(e){_=e.a;y=e.u;b=e.t},function(e){T=e.l},function(e){x=e.T}],execute:function(){var w=function(e){if(e===void 0){e=4}var t=__spreadArrays(Array(e)).map((function(){return L()}));return{totalCount:6,count:e,referredByReferral:{dateConverted:null,dateReferralStarted:1643912659850,referrerUser:{firstName:"John",lastName:"Snow",rewards:[]}},data:t}};var E=[["AVAILABLE"],["PENDING"],["CANCELLED"],["EXPIRED"],["REDEEMED"]];var D=["Rajesh","Pierre","Ji-Ho","Chinua","Charleston","Sally","Gael","Jill","Jane","Khadija"];var C=["Smith","Parker","Kent","Chew","Stark","Banner","Jones","Odinson","Pym","Rogers"];var L=function(){return{id:"5cae6b0fcc540e209db45b53",referredUser:{id:"5cae6b0ce4b0d81c67b78e82",accountId:"SPX1MZBIPTFL3E1H",firstName:D[Math.floor(Math.random()*D.length)],lastName:C[Math.floor(Math.random()*C.length)],email:"example.uexwltgh@mailosaur.io",programGoals:[]},shareLinkUsed:null,referralCodeUsed:"JIMBONEUTRON2",moderationStatus:"PENDING",dateConverted:Math.floor(Math.random()*10)>=5?g.DateTime.now().minus({days:6}).toMillis():null,dateFraudChecksCompleted:null,dateModerated:1558730033306,dateModified:1554934543447,dateReferralEnded:null,dateReferralPaid:null,dateReferralStarted:g.DateTime.now().minus({days:8}).toMillis(),dateUserModified:null,programId:"sam-partner-test-2",program:{id:"sam-partner-test-2",name:"Partner Program 2.0"},rewards:Math.floor(Math.random()*10)>=5?[{id:"5cae6b16cc540e209db45cfa",type:"CREDIT",value:1,unit:"POINT",name:"Partner Reward",dateGiven:1554934550726,dateExpires:null,dateCancelled:null,dateRedeemed:1637004373582,dateScheduledFor:null,fuelTankCode:null,fuelTankType:null,currency:null,prettyValue:"1 Point",statuses:E[Math.floor(Math.random()*E.length)],globalRewardKey:null,programRewardKey:"partnerReward",meta:__assign({},_()),rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"CAD10.00 Visa* Prepaid Card CAD",type:"INTEGRATION",fuelTankCode:null,globalRewardKey:"gc1"}]}}]}}]:[],childNodes:{data:[{data:{id:"5cae6b16cc540e209db45cb3",statuses:E[Math.floor(Math.random()*E.length)],type:"PCT_DISCOUNT",value:50},depth:1},{data:{id:"5cae6b16cc540e209db45cfa",statuses:E[Math.floor(Math.random()*E.length)],type:"CREDIT",value:1},depth:1}]}}};var R=e("sqm_referral_table",function(){function e(e){t(this,e);this.perPage=4;this.hideLabels=false;this.prevLabel="Prev";this.moreLabel="Next";this.showReferrer=false;this.hiddenColumns="0";this.smBreakpoint=599;this.mdBreakpoint=799;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=r(N,null);var t=r(P,null);var n=u()?M(this,e,t):y(this,e,t),a=n.states,i=n.data,s=n.callbacks,l=n.elements;v([this.showReferrer,this.perPage]);return r(p,{states:a,data:i,callbacks:s,elements:l})};return e}());function N(){return r("slot",{name:"empty"},r("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png","empty-state-header":"View your referral details","empty-state-text":"Refer a friend to view the status of your referrals and rewards earned"}))}function P(){return r("slot",{name:"loading"},r(A,null),r(A,null),r(A,null),r(A,null))}function A(){return r("sqm-table-row",null,r("sqm-table-cell",{colspan:5},r("sl-skeleton",null)))}function M(e,t,r){var n=s((function(e,t){return __assign(__assign({},e),t)}),{columns:[],rows:[],loading:false,page:0}),a=n[0],i=n[1];var d=h();var u=l((function(){var t;return((t=e.demoData)===null||t===void 0?void 0:t.mockData)||w(e.perPage)}),[e.perPage]);var f=m();function p(t){return __awaiter(this,void 0,void 0,(function(){var r,n,a,s,l,o,d,c,f,p,v,h,m,g;var _=this;return __generator(this,(function(y){switch(y.label){case 0:a=u===null||u===void 0?void 0:u.referredByReferral;s=e.showReferrer&&!!((r=u===null||u===void 0?void 0:u.referredByReferral)===null||r===void 0?void 0:r.dateReferralStarted);if(s){n=u.data.slice(0,e.perPage-1)}else{n=u.data.slice(0,e.perPage)}l=t.filter((function(e){var t,r;return e.slot!=="loading"&&e.slot!=="empty"&&((t=e===null||e===void 0?void 0:e.firstElementChild)===null||t===void 0?void 0:t.getAttribute("slot"))!=="loading"&&((r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot"))!=="empty"}));o=l===null||l===void 0?void 0:l.map((function(e,t){return __awaiter(_,void 0,void 0,(function(){var r,n,a;return __generator(this,(function(i){n=(r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot");if(e.tagName==="RAISINS-PLOP-TARGET"&&n!=="loading"&&n!=="empty"){e.setAttribute("slot","column-"+t);e.style.position="absolute";a=e.firstElementChild.childNodes[1];a.innerHTML="+";a.style.lineHeight="20px";return[2,b(e,(function(){return e.renderLabel(t)}))]}return[2,b(e,(function(){return e.renderLabel()}))]}))}))}));if(!s)return[3,2];c=l===null||l===void 0?void 0:l.map((function(e){return __awaiter(_,void 0,void 0,(function(){return __generator(this,(function(t){return[2,b(e,(function t(){return e.renderCell(a,e)}))]}))}))}));return[4,Promise.all(c)];case 1:d=y.sent();y.label=2;case 2:f=n===null||n===void 0?void 0:n.map((function(e){return __awaiter(_,void 0,void 0,(function(){var t,r;var n=this;return __generator(this,(function(a){switch(a.label){case 0:t=l===null||l===void 0?void 0:l.map((function(t){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(r){return[2,b(t,(function(){return t.renderCell(e,undefined)}))]}))}))}));return[4,Promise.all(t)];case 1:r=a.sent();return[2,r]}}))}))}));v=f;if(!v)return[3,4];h=[[d]];return[4,Promise.all(f)];case 3:v=__spreadArrays.apply(void 0,h.concat([y.sent()])).filter((function(e){return e}));y.label=4;case 4:p=v;i({rows:p});g=o;if(!g)return[3,6];return[4,Promise.all(o)];case 5:g=y.sent();y.label=6;case 6:m=g;i({columns:m,loading:false,page:0});return[2]}}))}))}o((function(){i({loading:true});(u===null||u===void 0?void 0:u.data)&&p(f)}),[u===null||u===void 0?void 0:u.data,f,d]);var v=c({states:{hasPrev:false,hasNext:false,loading:false,show:"rows"},callbacks:{prevPage:function(){return console.log("Prev")},nextPage:function(){return console.log("Next")}},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},hiddenColumns:e.hiddenColumns,referralData:[],mdBreakpoint:799,smBreakpoint:599},elements:{columns:a.columns,rows:a.rows,emptyElement:t,loadingElement:r}},e.demoData||{},{arrayMerge:function(e,t){return t}});return v}var S=e("sqm_referral_table_cell",function(){function e(e){t(this,e);this.ignored=true;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){return r("div",{innerHTML:this.innerTemplate})};return e}());var k=e("sqm_referral_table_column",function(){function e(e){t(this,e);i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,r("sqm-referral-table-cell",{"inner-template":n(this).innerHTML})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,Promise.resolve(this.columnTitle)]}))}))};e.prototype.render=function(){v([this.columnTitle]);return r(a,{style:{display:"none"}},r("slot",null))};return e}());var B=e("sqm_referral_table_date_cell",function(){function e(e){t(this,e);this.ignored=true;this.locale="en";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e;var t=!this.date?"-":(e=g.DateTime.fromMillis(this.date))===null||e===void 0?void 0:e.setLocale(T(this.locale)).toLocaleString(g.DateTime.DATE_MED);return t};return e}());var I=e("sqm_referral_table_date_column",function(){function e(e){t(this,e);this.columnTitle="Date converted";this.dateShown="dateConverted";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,r("sqm-referral-table-date-cell",{date:e[this.dateShown],locale:t})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,r("sqm-referral-table-date-cell",{date:e[this.dateShown]})]}))}))};e.prototype.render=function(){v([this.dateShown,this.columnTitle]);return r(a,{style:{display:"none"}})};return e}());var q=e("sqm_referral_table_rewards_cell",function(){function e(e){t(this,e);this.locale="en"}e.prototype.render=function(){var e=this;var t;d.locale=this.locale;var n={"@keyframes slideRight":{from:{opacity:0},to:{opacity:1}},DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"padding-bottom":"var(--sl-spacing-small)","max-width":"500px","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:""+(this.hideDetails?"default":"pointer")},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{opacity:"1"},"&::part(summary-icon)":{display:""+(this.hideDetails?"none":"flex")},"&::part(summary-icon[open])":{transform:"rotate(-90deg)",background:"red"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},StatusBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line"}},RedeemBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{background:"var(--sl-color-blue-600)"}}};var a=f(n);var i=a.toString();var s=function(e){var t=["REDEEMED","CANCELLED","EXPIRED","PENDING","AVAILABLE"];if(e.length===1)return e[0];return t.find((function(t){return e.includes(t)&&t}))};var l=function(e){switch(e){case"REDEEMED":return"primary";case"EXPIRED":return"danger";case"CANCELLED":return"danger";case"PENDING":return"warning";case"AVAILABLE":return"success"}};var o=function(t){return g.DateTime.fromMillis(t).setLocale(T(e.locale)).toRelative().replace("in","").trim()};return(t=this.rewards)===null||t===void 0?void 0:t.map((function(t){var n=s(t.statuses);var u=l(n);var c=d.formatMessage({id:"statusShortMessage",defaultMessage:e.statusText},{status:n});var f=d.formatMessage({id:"statusLongMessage",defaultMessage:e.statusLongText},{status:n});return r("sl-details",{class:a.classes.Details,disabled:e.hideDetails},r("style",{type:"text/css"},i),r("div",{slot:"summary",class:a.classes.DetailsContainer},r(x,{type:"p"},r("span",{part:"sqm-reward-cell-bold-text",class:a.classes.BoldText},t.prettyValue)),r("div",{class:a.classes.BadgeContainer},n==="PENDING"&&t.dateScheduledFor?r("sl-badge",{class:u==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:u,pill:true},d.formatMessage({id:"pendingForText",defaultMessage:e.pendingForText},{status:c,date:o(t.dateScheduledFor)})):r("sl-badge",{class:u==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:u,pill:true},c),t.dateExpires&&n==="AVAILABLE"&&r("sl-badge",{class:u==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:"info",pill:true},e.expiringText," "+o(t.dateExpires)))),r("div",null,t.dateGiven&&r("div",null,r(x,{type:"p"},e.rewardReceivedText," ",r("span",{class:a.classes.BoldText,part:"sqm-reward-cell-bold-text"},g.DateTime.fromMillis(t.dateGiven).setLocale(T(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),n==="EXPIRED"&&t.dateExpires&&r("div",null,r(x,{type:"p"},f," ",r("span",{class:a.classes.BoldText,part:"sqm-reward-cell-bold-text"},g.DateTime.fromMillis(t.dateExpires).setLocale(T(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),n==="CANCELLED"&&t.dateCancelled&&r("div",null,r(x,{type:"p"},f," ",r("span",{class:a.classes.BoldText,part:"sqm-reward-cell-bold-text"},g.DateTime.fromMillis(t.dateCancelled).setLocale(T(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),n==="PENDING"&&t.dateScheduledFor&&r("div",null,r(x,{type:"p"},f," ",r("span",{class:a.classes.BoldText,part:"sqm-reward-cell-bold-text"},g.DateTime.fromMillis(t.dateScheduledFor).setLocale(T(e.locale)).toLocaleString(g.DateTime.DATE_MED))))," ",n==="AVAILABLE"&&t.dateExpires&&r("div",null,r(x,{type:"p"},f," ",r("span",{class:a.classes.BoldText,part:"sqm-reward-cell-bold-text"},g.DateTime.fromMillis(t.dateExpires).setLocale(T(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),t.fuelTankCode&&r("div",null,e.fuelTankText," ",r("span",{class:a.classes.BoldText,part:"sqm-reward-cell-bold-text"},t.fuelTankCode))))}))};return e}());var U=e("sqm_referral_table_rewards_column",function(){function e(e){t(this,e);this.columnTitle="Rewards";this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }";this.statusLongText="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} other {Not available} }";this.fuelTankText="Your code is";this.rewardReceivedText="Reward received on";this.expiringText="Expiring in";this.pendingForText="{status} for {date}";this.hideDetails=false;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,r("sqm-referral-table-rewards-cell",{rewards:e.rewards,statusText:this.statusText,statusLongText:this.statusLongText,fuelTankText:this.fuelTankText,rewardReceivedText:this.rewardReceivedText,expiringText:this.expiringText,pendingForText:this.pendingForText,hideDetails:this.hideDetails,locale:t})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,r("sqm-referral-table-rewards-cell",{rewards:e.rewards})]}))}))};e.prototype.render=function(){v([this.columnTitle,this.statusText,this.statusLongText,this.fuelTankText,this.rewardReceivedText,this.expiringText,this.pendingForText,this.hideDetails]);return r(a,{style:{display:"none"}})};return e}());var j={Badge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",whiteSpace:"pre-line"}}};var G=f(j);var F=G.toString();var V=e("sqm_referral_table_status_cell",function(){function e(e){t(this,e)}e.prototype.render=function(){return r("div",null,r("style",{type:"text/css"},F),r("sl-badge",{pill:true,type:this.converted?"success":"warning",class:G.classes.Badge},this.statusText))};return e}());var O=e("sqm_referral_table_status_column",function(){function e(e){t(this,e);this.columnTitle="Status";this.convertedStatusText="Converted";this.inProgressStatusText="In Progress";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){t=e.dateConverted?this.convertedStatusText:this.inProgressStatusText;return[2,r("sqm-referral-table-status-cell",{"status-text":t,converted:e.dateConverted?true:false})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){t=e.dateConverted?this.convertedStatusText:this.inProgressStatusText;return[2,r("sqm-referral-table-status-cell",{"status-text":t,converted:e.dateConverted?true:false})]}))}))};e.prototype.render=function(){v([this.columnTitle,this.convertedStatusText,this.inProgressStatusText]);return r(a,{style:{display:"none"}})};return e}());var X=e("sqm_referral_table_user_cell",function(){function e(e){t(this,e)}e.prototype.render=function(){return this.name};return e}());var H=e("sqm_referral_table_user_column",function(){function e(e){t(this,e);this.columnTitle="Customer";this.anonymousUser="Anonymous User";this.deletedUser="Deleted User";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i,s,l,o,d,u;return __generator(this,(function(c){if(!(e===null||e===void 0?void 0:e.referredUser)&&!(e===null||e===void 0?void 0:e.referrerUser)){u=this.deletedUser}else if(!((t=e===null||e===void 0?void 0:e.referredUser)===null||t===void 0?void 0:t.firstName)&&!((n=e===null||e===void 0?void 0:e.referredUser)===null||n===void 0?void 0:n.lastName)&&!((a=e===null||e===void 0?void 0:e.referrerUser)===null||a===void 0?void 0:a.firstName)&&!((i=e===null||e===void 0?void 0:e.referrerUser)===null||i===void 0?void 0:i.lastName)){u=this.anonymousUser}else if(e===null||e===void 0?void 0:e.referrerUser){u=((s=e===null||e===void 0?void 0:e.referrerUser)===null||s===void 0?void 0:s.firstName)+" "+((l=e===null||e===void 0?void 0:e.referrerUser)===null||l===void 0?void 0:l.lastName)}else{u=((o=e===null||e===void 0?void 0:e.referredUser)===null||o===void 0?void 0:o.firstName)+" "+((d=e===null||e===void 0?void 0:e.referredUser)===null||d===void 0?void 0:d.lastName)}return[2,r("sqm-referral-table-user-cell",{name:u})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i,s;return __generator(this,(function(l){if(!e){s=this.deletedUser}else if(!((t=e===null||e===void 0?void 0:e.referrerUser)===null||t===void 0?void 0:t.firstName)&&!((n=e.referrerUser)===null||n===void 0?void 0:n.lastName)){s=this.anonymousUser}else{s=((a=e===null||e===void 0?void 0:e.referrerUser)===null||a===void 0?void 0:a.firstName)+" "+((i=e===null||e===void 0?void 0:e.referrerUser)===null||i===void 0?void 0:i.lastName)}return[2,r("sqm-referral-table-user-cell",{name:s})]}))}))};e.prototype.render=function(){v([this.deletedUser,this.anonymousUser,this.columnTitle]);return r(a,{style:{display:"none"}})};return e}())}}}));
|