@saasquatch/mint-components 1.6.2-9 → 1.6.3-1
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 +21 -21
- package/dist/cjs/{GenericTableView-47869553.js → GenericTableView-9271483b.js} +1 -1
- package/dist/cjs/{JSS-97fd087e.js → JSS-8503a151.js} +35 -19
- package/dist/cjs/{ShadowViewAddon-0ce4871c.js → ShadowViewAddon-25a9cece.js} +410 -406
- package/dist/cjs/{global-4e52f274.js → global-a320ad05.js} +655 -655
- package/dist/cjs/{index.module-7972acac.js → index.module-0b9b8891.js} +228 -535
- package/dist/cjs/loader.cjs.js +3 -4
- package/dist/cjs/mint-components.cjs.js +3 -4
- package/dist/cjs/{re-render-99b2655c.js → re-render-172958b1.js} +4 -4
- package/dist/cjs/{sqm-asset-card-view-3da8cac1.js → sqm-asset-card-view-59c39ed2.js} +1 -1
- package/dist/cjs/sqm-asset-card.cjs.entry.js +3 -4
- package/dist/cjs/sqm-big-stat_35.cjs.entry.js +424 -388
- package/dist/cjs/sqm-empty_5.cjs.entry.js +53 -54
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +5 -6
- package/dist/cjs/sqm-header-logo.cjs.entry.js +30 -0
- package/dist/cjs/{sqm-hero-view-bc763ed2.js → sqm-hero-view-7bb2383c.js} +15 -15
- package/dist/cjs/sqm-hero.cjs.entry.js +2 -3
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +16 -17
- package/dist/cjs/{sqm-navigation-sidebar-item-view-b3ca14b4.js → sqm-navigation-sidebar-item-view-bf62d5e2.js} +3 -3
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +4 -5
- package/dist/cjs/{sqm-navigation-sidebar-view-969adcdc.js → sqm-navigation-sidebar-view-87756d23.js} +7 -7
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +2 -3
- package/dist/cjs/sqm-password-field.cjs.entry.js +23 -26
- package/dist/cjs/sqm-popup-container.cjs.entry.js +4 -5
- package/dist/cjs/{sqm-portal-container-view-840db620.js → sqm-portal-container-view-b336f655.js} +5 -5
- package/dist/cjs/{sqm-portal-email-verification-view-f2a35e7c.js → sqm-portal-email-verification-view-4419779f.js} +16 -12
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +74 -23
- package/dist/cjs/{sqm-portal-footer-view-8eadb31d.js → sqm-portal-footer-view-edb2fbe3.js} +13 -13
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +6 -7
- package/dist/cjs/{sqm-portal-forgot-password-view-fed1f563.js → sqm-portal-forgot-password-view-f5c9b4b3.js} +9 -9
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +22 -23
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-portal-profile-view-730252e8.js → sqm-portal-profile-view-b7ceb690.js} +4 -4
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +51 -54
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +9 -10
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +177 -96
- package/dist/cjs/{sqm-portal-reset-password-view-f8dc0b79.js → sqm-portal-reset-password-view-92236225.js} +9 -9
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +47 -54
- package/dist/cjs/{sqm-portal-section-view-854a3e9c.js → sqm-portal-section-view-1e5bbcb1.js} +1 -1
- package/dist/cjs/{sqm-portal-verify-email-view-cc59877c.js → sqm-portal-verify-email-view-74b01b5f.js} +9 -9
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +15 -15
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +8 -9
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +2 -3
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -3
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +109 -110
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +844 -812
- package/dist/cjs/sqm-tab.cjs.entry.js +2 -3
- package/dist/cjs/sqm-tabs.cjs.entry.js +8 -9
- package/dist/cjs/{sqm-text-span-view-2c7d94b5.js → sqm-text-span-view-aea267ba.js} +5 -5
- package/dist/cjs/sqm-text-span.cjs.entry.js +2 -3
- package/dist/cjs/{useChildElements-42a97f2a.js → useChildElements-6993ec39.js} +2 -2
- package/dist/cjs/{useReferralTable-a985ce58.js → useReferralTable-812f7288.js} +173 -173
- package/dist/cjs/{useRegistrationFormState-b7598d69.js → useRegistrationFormState-8f2caf7f.js} +2 -11
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/sqm-big-stat/useBigStat.js +238 -238
- package/dist/collection/components/sqm-brand/sqm-brand.js +31 -22
- package/dist/collection/components/sqm-card-feed/sqm-card-feed-view.js +5 -5
- package/dist/collection/components/sqm-checkbox-field/CheckboxField.stories.js +12 -5
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +17 -16
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +8 -5
- package/dist/collection/components/sqm-checkbox-field/useCheckboxField.js +12 -5
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +13 -13
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +2 -2
- package/dist/collection/components/sqm-dropdown-field/DropdownField.stories.js +13 -6
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +16 -12
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +7 -4
- package/dist/collection/components/sqm-dropdown-field/useDropdownField.js +3 -3
- package/dist/collection/components/sqm-edit-profile/useEditProfile.js +32 -32
- package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +102 -0
- package/dist/collection/components/sqm-hero/sqm-hero-view.js +14 -14
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +3 -3
- package/dist/collection/components/sqm-image/sqm-image-view.js +4 -4
- package/dist/collection/components/sqm-input-field/InputField.stories.js +12 -5
- package/dist/collection/components/sqm-input-field/sqm-input-field-view.js +12 -8
- package/dist/collection/components/sqm-input-field/sqm-input-field.js +7 -4
- package/dist/collection/components/sqm-input-field/useInputField.js +3 -3
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +4 -4
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +2 -2
- package/dist/collection/components/sqm-leaderboard/useLeaderboard.js +40 -40
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.js +2 -2
- package/dist/collection/components/sqm-leaderboard-rank/useLeaderboardRank.js +12 -12
- package/dist/collection/components/sqm-name-fields/NameFields.stories.js +8 -4
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +17 -17
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +3 -3
- package/dist/collection/components/sqm-name-fields/useNameFields.js +0 -3
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +6 -6
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +1 -1
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +3 -0
- package/dist/collection/components/sqm-password-field/PasswordField.stories.js +9 -6
- package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +13 -12
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +12 -13
- package/dist/collection/components/sqm-password-field/usePasswordField.js +1 -4
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +22 -20
- package/dist/collection/components/sqm-portal-change-password/usePortalChangePassword.js +7 -10
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +4 -4
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +1 -1
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification-view.js +13 -9
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +71 -7
- package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +52 -13
- package/dist/collection/components/sqm-portal-footer/PortalFooter.stories.js +2 -2
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +11 -11
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +6 -6
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +7 -7
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +12 -4
- package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +14 -16
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +2 -6
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +27 -1
- package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +7 -7
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +24 -10
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +13 -16
- package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +7 -3
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +15 -17
- package/dist/collection/components/sqm-portal-profile/usePortalProfile.js +33 -33
- package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +8 -8
- package/dist/collection/components/sqm-portal-register/PortalRegister.stories.js +5 -0
- package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +19 -20
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +39 -28
- package/dist/collection/components/sqm-portal-register/usePortalRegister.js +41 -25
- package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +1 -0
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +26 -27
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +201 -35
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +93 -46
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password-view.js +7 -7
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +30 -24
- package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +23 -29
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email-view.js +7 -7
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +16 -8
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +2 -3
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +9 -9
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +9 -9
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +4 -4
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +4 -4
- package/dist/collection/components/sqm-referral-iframe/useReferralIframe.js +8 -8
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +2 -2
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +1 -1
- package/dist/collection/components/sqm-referral-table/useReferralTable.js +166 -166
- package/dist/collection/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.js +8 -8
- package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +51 -51
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +1 -1
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +1 -1
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +98 -98
- package/dist/collection/components/sqm-route/sqm-route.js +1 -1
- package/dist/collection/components/sqm-router/Router.stories.js +71 -71
- package/dist/collection/components/sqm-router/sqm-router.css +7 -7
- package/dist/collection/components/sqm-scroll/Scroll.stories.js +50 -50
- package/dist/collection/components/sqm-scroll/sqm-scroll.js +13 -13
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +22 -22
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +4 -4
- package/dist/collection/components/sqm-share-button/useShareButton.js +17 -17
- package/dist/collection/components/sqm-share-code/useShareCode.js +13 -13
- package/dist/collection/components/sqm-share-link/useShareLink.js +12 -12
- package/dist/collection/components/sqm-stencilbook/Resizer.js +24 -24
- package/dist/collection/components/sqm-stencilbook/Themes.js +25 -25
- package/dist/collection/components/sqm-tabs/Tabs.stories.js +475 -475
- package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +4 -4
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +5 -5
- package/dist/collection/components/sqm-task-card/useTaskCard.js +6 -6
- package/dist/collection/components/sqm-text/sqm-text.js +46 -46
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +4 -4
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +8 -8
- package/dist/collection/components/sqm-timeline/sqm-timeline.js +8 -8
- package/dist/collection/components/sqm-user-name/sqm-user-name.js +7 -7
- package/dist/collection/components/sqm-user-name/useUserName.js +9 -9
- package/dist/collection/global/styles.js +653 -653
- package/dist/collection/global/styles.ts +729 -729
- package/dist/esm/{GenericTableView-10cac7d6.js → GenericTableView-ce26115f.js} +1 -1
- package/dist/esm/{JSS-f00f9536.js → JSS-67b5cff8.js} +17 -1
- package/dist/esm/{ShadowViewAddon-846aecda.js → ShadowViewAddon-d4705dae.js} +410 -406
- package/dist/esm/{global-44835899.js → global-126fa55c.js} +655 -655
- package/dist/esm/{index.module-132e274f.js → index.module-14794b69.js} +211 -519
- package/dist/esm/loader.js +3 -4
- package/dist/esm/mint-components.js +3 -4
- package/dist/esm/{re-render-81cd3caa.js → re-render-f48b74b9.js} +4 -4
- package/dist/esm/{sqm-asset-card-view-08e68656.js → sqm-asset-card-view-b0f8ef8e.js} +1 -1
- package/dist/esm/sqm-asset-card.entry.js +3 -4
- package/dist/esm/sqm-big-stat_35.entry.js +424 -388
- package/dist/esm/sqm-empty_5.entry.js +53 -54
- package/dist/esm/sqm-graphql-client-provider.entry.js +5 -6
- package/dist/esm/sqm-header-logo.entry.js +26 -0
- package/dist/esm/{sqm-hero-view-9fb2be89.js → sqm-hero-view-1904c178.js} +15 -15
- package/dist/esm/sqm-hero.entry.js +2 -3
- package/dist/esm/sqm-leaderboard-rank.entry.js +16 -17
- package/dist/esm/{sqm-navigation-sidebar-item-view-364af025.js → sqm-navigation-sidebar-item-view-d6b9f5d0.js} +3 -3
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +4 -5
- package/dist/esm/{sqm-navigation-sidebar-view-06d444ca.js → sqm-navigation-sidebar-view-a5b72846.js} +7 -7
- package/dist/esm/sqm-navigation-sidebar.entry.js +2 -3
- package/dist/esm/sqm-password-field.entry.js +23 -26
- package/dist/esm/sqm-popup-container.entry.js +4 -5
- package/dist/esm/{sqm-portal-container-view-ca454627.js → sqm-portal-container-view-21bd84e0.js} +5 -5
- package/dist/esm/{sqm-portal-email-verification-view-5ac21bb4.js → sqm-portal-email-verification-view-c181c9ff.js} +16 -12
- package/dist/esm/sqm-portal-email-verification.entry.js +75 -24
- package/dist/esm/{sqm-portal-footer-view-f3a6eaed.js → sqm-portal-footer-view-360cfd92.js} +13 -13
- package/dist/esm/sqm-portal-footer.entry.js +6 -7
- package/dist/esm/{sqm-portal-forgot-password-view-86d13eef.js → sqm-portal-forgot-password-view-b69c81b1.js} +9 -9
- package/dist/esm/sqm-portal-forgot-password.entry.js +23 -24
- package/dist/esm/sqm-portal-logout.entry.js +5 -5
- package/dist/esm/{sqm-portal-profile-view-630f05c8.js → sqm-portal-profile-view-93b584ab.js} +4 -4
- package/dist/esm/sqm-portal-profile.entry.js +51 -54
- package/dist/esm/sqm-portal-protected-route.entry.js +9 -10
- package/dist/esm/sqm-portal-registration-form.entry.js +177 -96
- package/dist/esm/{sqm-portal-reset-password-view-213b3af6.js → sqm-portal-reset-password-view-4afbbd6a.js} +9 -9
- package/dist/esm/sqm-portal-reset-password.entry.js +47 -54
- package/dist/esm/{sqm-portal-section-view-6c249c74.js → sqm-portal-section-view-a991e019.js} +1 -1
- package/dist/esm/{sqm-portal-verify-email-view-c32dfd7e.js → sqm-portal-verify-email-view-cd01a420.js} +9 -9
- package/dist/esm/sqm-portal-verify-email.entry.js +15 -15
- package/dist/esm/sqm-referral-table_11.entry.js +8 -9
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +2 -3
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -3
- package/dist/esm/sqm-rewards-table_9.entry.js +109 -110
- package/dist/esm/sqm-stencilbook.entry.js +844 -812
- package/dist/esm/sqm-tab.entry.js +2 -3
- package/dist/esm/sqm-tabs.entry.js +8 -9
- package/dist/esm/{sqm-text-span-view-0ba1484d.js → sqm-text-span-view-2567b6c0.js} +5 -5
- package/dist/esm/sqm-text-span.entry.js +2 -3
- package/dist/esm/{useChildElements-9431f3e2.js → useChildElements-d574b0ce.js} +2 -2
- package/dist/esm/{useReferralTable-0516b6d5.js → useReferralTable-4f070134.js} +173 -173
- package/dist/esm/useRegistrationFormState-abed2c1e.js +11 -0
- package/dist/esm-es5/{GenericTableView-10cac7d6.js → GenericTableView-ce26115f.js} +1 -1
- package/dist/esm-es5/{JSS-f00f9536.js → JSS-67b5cff8.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-d4705dae.js +1 -0
- package/dist/esm-es5/{global-44835899.js → global-126fa55c.js} +2 -2
- package/dist/esm-es5/index.module-14794b69.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-81cd3caa.js → re-render-f48b74b9.js} +1 -1
- package/dist/esm-es5/{sqm-asset-card-view-08e68656.js → sqm-asset-card-view-b0f8ef8e.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_35.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_5.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -0
- package/dist/esm-es5/{sqm-hero-view-9fb2be89.js → sqm-hero-view-1904c178.js} +1 -1
- package/dist/esm-es5/sqm-hero.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-d6b9f5d0.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-view-06d444ca.js → sqm-navigation-sidebar-view-a5b72846.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-container-view-ca454627.js → sqm-portal-container-view-21bd84e0.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification-view-c181c9ff.js +1 -0
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-f3a6eaed.js → sqm-portal-footer-view-360cfd92.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-86d13eef.js → sqm-portal-forgot-password-view-b69c81b1.js} +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-630f05c8.js → sqm-portal-profile-view-93b584ab.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-213b3af6.js → sqm-portal-reset-password-view-4afbbd6a.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-section-view-6c249c74.js → sqm-portal-section-view-a991e019.js} +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-c32dfd7e.js → sqm-portal-verify-email-view-cd01a420.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/{sqm-text-span-view-0ba1484d.js → sqm-text-span-view-2567b6c0.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{useChildElements-9431f3e2.js → useChildElements-d574b0ce.js} +1 -1
- package/dist/esm-es5/{useReferralTable-0516b6d5.js → useReferralTable-4f070134.js} +1 -1
- package/dist/esm-es5/useRegistrationFormState-abed2c1e.js +1 -0
- package/dist/mint-components/global/styles.ts +729 -729
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-192617e7.system.js → p-052945ae.system.js} +1 -1
- package/dist/mint-components/p-05371d85.system.js +1 -0
- package/dist/mint-components/p-063d2251.entry.js +1 -0
- package/dist/mint-components/p-06c386c7.system.js +1 -0
- package/dist/mint-components/p-09e2ad91.entry.js +1 -0
- package/dist/mint-components/{p-436779be.js → p-1077f3f6.js} +1 -1
- package/dist/mint-components/p-10d73c6f.entry.js +1 -0
- package/dist/mint-components/p-1138df57.system.entry.js +1 -0
- package/dist/mint-components/{p-0e441a14.system.js → p-13fc7d5e.system.js} +1 -1
- package/dist/mint-components/{p-1c21b5d1.js → p-15ff38a8.js} +1 -1
- package/dist/mint-components/{p-519dc03b.system.js → p-19b6f55d.system.js} +1 -1
- package/dist/mint-components/p-1a673057.system.js +8 -0
- package/dist/mint-components/p-1b572110.system.entry.js +1 -0
- package/dist/mint-components/{p-53aef3ba.system.js → p-1fcd03ba.system.js} +2 -2
- package/dist/mint-components/p-212663a2.system.entry.js +1 -0
- package/dist/mint-components/p-2723c5cd.system.entry.js +1 -0
- package/dist/mint-components/p-28dcad3f.entry.js +33 -0
- package/dist/mint-components/p-29542a79.system.entry.js +1 -0
- package/dist/mint-components/p-2db22fc6.system.js +1 -0
- package/dist/mint-components/p-2e308c1b.system.js +1 -0
- package/dist/mint-components/p-34213ad0.js +1 -0
- package/dist/mint-components/p-3aace795.system.entry.js +1 -0
- package/dist/mint-components/p-3c27a64d.entry.js +1 -0
- package/dist/mint-components/{p-b0668789.system.js → p-3ea8021b.system.js} +1 -1
- package/dist/mint-components/p-40b4e40c.entry.js +1 -0
- package/dist/mint-components/p-4199cece.entry.js +1 -0
- package/dist/mint-components/p-445412d7.system.entry.js +1 -0
- package/dist/mint-components/p-459c3a9c.js +1 -0
- package/dist/mint-components/p-46ad2836.entry.js +1 -0
- package/dist/mint-components/{p-275cf42f.js → p-49395850.js} +1 -1
- package/dist/mint-components/p-4a93ab6a.entry.js +9 -0
- package/dist/mint-components/p-4b83d7ea.js +1 -0
- package/dist/mint-components/p-4cb94566.entry.js +1 -0
- package/dist/mint-components/{p-b7e6ce3c.system.js → p-501a0037.system.js} +1 -1
- package/dist/mint-components/p-5145c06d.system.entry.js +1 -0
- package/dist/mint-components/p-538ed60d.entry.js +1 -0
- package/dist/mint-components/p-54eae1a4.system.entry.js +1 -0
- package/dist/mint-components/{p-0d49d56d.js → p-5709f64a.js} +1 -1
- package/dist/mint-components/{p-afcf252c.js → p-57e38374.js} +2 -2
- package/dist/mint-components/p-5d21c616.entry.js +1 -0
- package/dist/mint-components/{p-a53d815e.system.js → p-5d4d81bf.system.js} +1 -1
- package/dist/mint-components/p-5d8343f5.system.entry.js +1 -0
- package/dist/mint-components/p-5ec62e5e.system.entry.js +1 -0
- package/dist/mint-components/p-67e0737e.entry.js +1 -0
- package/dist/mint-components/{p-986f10d2.system.js → p-6b8b7dc0.system.js} +1 -1
- package/dist/mint-components/{p-0148c516.js → p-6dd27a5e.js} +1 -1
- package/dist/mint-components/{p-210cd41b.js → p-6fd23a24.js} +1 -1
- package/dist/mint-components/p-6fe30760.entry.js +1 -0
- package/dist/mint-components/{p-6b5fbbdb.js → p-72444d0d.js} +1 -1
- package/dist/mint-components/p-7333c706.system.entry.js +1 -0
- package/dist/mint-components/p-7682724f.system.js +1 -0
- package/dist/mint-components/p-7768ba6a.system.entry.js +1 -0
- package/dist/mint-components/p-77fa96a0.system.entry.js +1 -0
- package/dist/mint-components/p-7b18ed47.system.entry.js +1 -0
- package/dist/mint-components/p-7c482d9c.entry.js +1 -0
- package/dist/mint-components/{p-c627c865.js → p-7cd232f3.js} +2 -2
- package/dist/mint-components/p-7de79b21.system.entry.js +1 -0
- package/dist/mint-components/p-7fd5b59a.system.entry.js +1 -0
- package/dist/mint-components/p-808f2155.entry.js +1 -0
- package/dist/mint-components/{p-703f4552.entry.js → p-84130e9c.entry.js} +12 -12
- package/dist/mint-components/p-86adbf81.js +1 -0
- package/dist/mint-components/p-89ca304c.system.entry.js +1 -0
- package/dist/mint-components/{p-2cac212f.system.js → p-8f99a2dd.system.js} +1 -1
- package/dist/mint-components/{p-7dea8d9a.js → p-91f576aa.js} +1 -1
- package/dist/mint-components/p-98dd1229.entry.js +1 -0
- package/dist/mint-components/p-9d2d4a46.system.entry.js +1 -0
- package/dist/mint-components/p-a05940ed.entry.js +1 -0
- package/dist/mint-components/p-a27bbf25.system.entry.js +1 -0
- package/dist/mint-components/{p-3c8becd3.js → p-a46c0d32.js} +1 -1
- package/dist/mint-components/p-adde467d.entry.js +1 -0
- package/dist/mint-components/{p-1f6fdeda.system.entry.js → p-bb241e21.system.entry.js} +1 -1
- package/dist/mint-components/{p-d08b59df.entry.js → p-bdba5fa0.entry.js} +2 -2
- package/dist/mint-components/p-bea71a98.system.entry.js +1 -0
- package/dist/mint-components/{p-446a0805.system.js → p-bef0a1f4.system.js} +1 -1
- package/dist/mint-components/p-c183a463.system.entry.js +1 -0
- package/dist/mint-components/p-c683c96d.entry.js +1 -0
- package/dist/mint-components/{p-3abbc5b3.system.js → p-c72e4a4c.system.js} +1 -1
- package/dist/mint-components/p-ca97933a.system.js +1 -0
- package/dist/mint-components/{p-ec689579.js → p-ceb1a772.js} +1 -1
- package/dist/mint-components/p-cef45012.js +1 -0
- package/dist/mint-components/{p-4778fb68.js → p-d047d6a1.js} +1 -1
- package/dist/mint-components/p-d1341773.entry.js +1 -0
- package/dist/mint-components/{p-1c24a18c.js → p-d4f42f8b.js} +1 -1
- package/dist/mint-components/p-d71278d3.system.js +1 -0
- package/dist/mint-components/{p-83d4885d.entry.js → p-d90834f7.entry.js} +2 -2
- package/dist/mint-components/p-df139412.entry.js +1 -0
- package/dist/mint-components/p-df5cb47b.entry.js +13 -0
- package/dist/mint-components/p-dfde7664.entry.js +1 -0
- package/dist/mint-components/{p-d64a0bc1.js → p-e2440408.js} +1 -1
- package/dist/mint-components/p-e8956db1.entry.js +1 -0
- package/dist/mint-components/{p-19b0e2b5.system.js → p-e8a2e2fd.system.js} +1 -1
- package/dist/mint-components/{p-89fc4544.system.js → p-e9e00618.system.js} +1 -1
- package/dist/mint-components/{p-4935076f.system.js → p-ec690422.system.js} +1 -1
- package/dist/mint-components/p-ec7a5d7c.system.entry.js +1 -0
- package/dist/mint-components/{p-5d292177.system.js → p-eec4ddab.system.js} +1 -1
- package/dist/mint-components/p-eecce333.system.entry.js +1 -0
- package/dist/mint-components/{p-52a2beaf.js → p-f1a2b660.js} +1 -1
- package/dist/mint-components/p-fa48fff3.system.entry.js +1 -0
- package/dist/mint-components/p-fcab0950.system.entry.js +1 -0
- package/dist/mint-components/p-fd207df1.js +268 -0
- package/dist/mint-components/p-fe74b75b.system.entry.js +1 -0
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field-view.d.ts +2 -2
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +3 -1
- package/dist/types/components/sqm-checkbox-field/useCheckboxField.d.ts +4 -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-view.d.ts +2 -2
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +3 -1
- package/dist/types/components/sqm-dropdown-field/useDropdownField.d.ts +2 -1
- package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +25 -0
- package/dist/types/components/sqm-input-field/sqm-input-field-view.d.ts +2 -2
- package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +3 -2
- package/dist/types/components/sqm-input-field/useInputField.d.ts +2 -1
- package/dist/types/components/sqm-name-fields/sqm-name-fields-view.d.ts +0 -2
- package/dist/types/components/sqm-name-fields/useNameFields.d.ts +0 -1
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +1 -1
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +1 -0
- package/dist/types/components/sqm-password-field/sqm-password-field-view.d.ts +0 -1
- package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +4 -5
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +5 -5
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification-view.d.ts +5 -0
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +13 -2
- package/dist/types/components/sqm-portal-email-verification/usePortalEmailVerification.d.ts +5 -0
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer-view.d.ts +1 -1
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +2 -2
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +4 -2
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +4 -0
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +9 -4
- package/dist/types/components/sqm-portal-logout/sqm-portal-logout.d.ts +3 -2
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +2 -4
- package/dist/types/components/sqm-portal-profile/usePortalProfile.d.ts +1 -1
- package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +4 -4
- package/dist/types/components/sqm-portal-register/sqm-portal-register-view.d.ts +3 -3
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +13 -12
- package/dist/types/components/sqm-portal-register/usePortalRegister.d.ts +2 -1
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +6 -3
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +51 -14
- package/dist/types/components/sqm-portal-registration-form/usePortalRegistrationForm.d.ts +1 -1
- package/dist/types/components/sqm-portal-registration-form/useRegistrationFormState.d.ts +2 -0
- 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 +6 -4
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +2 -2
- package/dist/types/components/sqm-route/sqm-route.d.ts +1 -0
- package/dist/types/components/sqm-user-name/sqm-user-name.d.ts +3 -3
- package/dist/types/components.d.ts +391 -212
- package/dist/types/global/android.d.ts +7 -7
- package/dist/types/global/styles.d.ts +1 -1
- package/dist/types/saasquatch.d.ts +132 -132
- package/dist/types/stories/features.d.ts +4 -4
- package/dist/types/stories/templates.d.ts +4 -4
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +102 -102
- package/readme.md +13 -13
- package/dist/cjs/extends-08099afd.js +0 -21
- package/dist/collection/components/sqm-portal-register/useValidationState.js +0 -8
- package/dist/esm/extends-c31f1eff.js +0 -19
- package/dist/esm/useRegistrationFormState-ebb08075.js +0 -18
- package/dist/esm-es5/ShadowViewAddon-846aecda.js +0 -1
- package/dist/esm-es5/extends-c31f1eff.js +0 -1
- package/dist/esm-es5/index.module-132e274f.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-364af025.js +0 -1
- package/dist/esm-es5/sqm-portal-email-verification-view-5ac21bb4.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-ebb08075.js +0 -1
- package/dist/mint-components/p-00d4636f.system.entry.js +0 -1
- package/dist/mint-components/p-06f56536.js +0 -1
- package/dist/mint-components/p-07d424a2.system.entry.js +0 -1
- package/dist/mint-components/p-088d3b4a.system.entry.js +0 -1
- package/dist/mint-components/p-0b1d703d.entry.js +0 -1
- package/dist/mint-components/p-0d482ad4.js +0 -1
- package/dist/mint-components/p-0f4c1e0e.entry.js +0 -33
- package/dist/mint-components/p-1191cada.entry.js +0 -1
- package/dist/mint-components/p-136325c0.system.js +0 -1
- package/dist/mint-components/p-162fca19.js +0 -1
- package/dist/mint-components/p-1c17892a.system.js +0 -1
- package/dist/mint-components/p-1c40d459.js +0 -268
- package/dist/mint-components/p-1cc3dfe5.system.js +0 -1
- package/dist/mint-components/p-222e5418.entry.js +0 -1
- package/dist/mint-components/p-2383eadd.system.entry.js +0 -1
- package/dist/mint-components/p-242bd74b.entry.js +0 -9
- package/dist/mint-components/p-292857fd.system.js +0 -1
- package/dist/mint-components/p-2dce26fa.system.entry.js +0 -1
- package/dist/mint-components/p-3d0dc005.system.entry.js +0 -1
- package/dist/mint-components/p-4ce8e325.system.entry.js +0 -1
- package/dist/mint-components/p-50553269.system.entry.js +0 -1
- package/dist/mint-components/p-50afa774.entry.js +0 -1
- package/dist/mint-components/p-51102b8f.entry.js +0 -13
- package/dist/mint-components/p-574ba520.system.js +0 -1
- package/dist/mint-components/p-5928afc0.js +0 -1
- package/dist/mint-components/p-63101d0c.entry.js +0 -1
- package/dist/mint-components/p-7c3e3cb4.entry.js +0 -1
- package/dist/mint-components/p-7f4b0ba0.system.entry.js +0 -1
- package/dist/mint-components/p-81f34787.js +0 -1
- package/dist/mint-components/p-8b7a19d3.system.entry.js +0 -1
- package/dist/mint-components/p-8c4bcbc6.entry.js +0 -1
- package/dist/mint-components/p-8d6a2a61.system.entry.js +0 -1
- package/dist/mint-components/p-90dfce36.entry.js +0 -1
- package/dist/mint-components/p-9f596d8d.system.entry.js +0 -1
- package/dist/mint-components/p-a1acdbb4.entry.js +0 -1
- package/dist/mint-components/p-a395bae0.entry.js +0 -1
- package/dist/mint-components/p-a4335cb5.system.entry.js +0 -1
- package/dist/mint-components/p-af3b56d3.system.entry.js +0 -1
- package/dist/mint-components/p-b2e7ca31.system.entry.js +0 -1
- package/dist/mint-components/p-b3d7d353.entry.js +0 -1
- package/dist/mint-components/p-b52109dd.entry.js +0 -1
- package/dist/mint-components/p-b593a42e.system.entry.js +0 -1
- package/dist/mint-components/p-bb9dadd3.system.entry.js +0 -1
- package/dist/mint-components/p-bc2cf095.entry.js +0 -1
- package/dist/mint-components/p-bed78bee.system.entry.js +0 -1
- package/dist/mint-components/p-c01e754d.system.entry.js +0 -1
- package/dist/mint-components/p-c4e22786.system.js +0 -1
- package/dist/mint-components/p-ca08cf71.entry.js +0 -1
- package/dist/mint-components/p-cac0e237.entry.js +0 -1
- package/dist/mint-components/p-ce6f7e0e.entry.js +0 -1
- package/dist/mint-components/p-ceeeb344.entry.js +0 -1
- package/dist/mint-components/p-ceefa54a.system.entry.js +0 -1
- package/dist/mint-components/p-d21ccfa1.entry.js +0 -1
- package/dist/mint-components/p-d307abaa.entry.js +0 -1
- package/dist/mint-components/p-d4b1fcbc.system.entry.js +0 -1
- package/dist/mint-components/p-d5c94703.entry.js +0 -1
- package/dist/mint-components/p-d5d32d0d.system.js +0 -8
- package/dist/mint-components/p-d8876d3f.js +0 -1
- package/dist/mint-components/p-dc37fe51.system.js +0 -1
- package/dist/mint-components/p-df2b4e11.system.entry.js +0 -1
- package/dist/mint-components/p-e0fa9595.system.js +0 -1
- package/dist/mint-components/p-e8d07dfa.system.entry.js +0 -1
- package/dist/mint-components/p-f3eaabf8.system.entry.js +0 -1
- package/dist/mint-components/p-f54b436e.entry.js +0 -1
- package/dist/mint-components/p-f5e601b0.system.entry.js +0 -1
- package/dist/mint-components/p-f8863064.system.entry.js +0 -1
- package/dist/types/components/sqm-portal-register/useValidationState.d.ts +0 -18
- package/docs/grapesjs.js +0 -54
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { h, c as Host, d as getAssetPath, g as getElement } from './index-17b4da69.js';
|
|
2
2
|
import { i as useState, b as browser, k as useMemo } from './stencil-hooks.module-eefa3570.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { d as dist,
|
|
3
|
+
import { i as intl } from './global-126fa55c.js';
|
|
4
|
+
import { d as dist, O, N, a as dn, P as Pe, U, g as getEnvironmentSDK, x } from './index.module-14794b69.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { H as HostBlock, A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-f60a614c.js';
|
|
7
|
-
import { c as createStyleSheet, j as jss, a as create } from './JSS-
|
|
8
|
-
import { u as useChildElements } from './useChildElements-
|
|
7
|
+
import { c as createStyleSheet, j as jss, a as create } from './JSS-67b5cff8.js';
|
|
8
|
+
import { u as useChildElements } from './useChildElements-d574b0ce.js';
|
|
9
9
|
import { l as luxon } from './luxon-5a398612.js';
|
|
10
10
|
import { l as luxonLocale } from './utils-334c1e34.js';
|
|
11
|
-
import { T as TextSpanView } from './sqm-text-span-view-
|
|
12
|
-
import { P as PortalContainerView } from './sqm-portal-container-view-
|
|
13
|
-
import { P as PortalSectionView } from './sqm-portal-section-view-
|
|
11
|
+
import { T as TextSpanView } from './sqm-text-span-view-2567b6c0.js';
|
|
12
|
+
import { P as PortalContainerView } from './sqm-portal-container-view-21bd84e0.js';
|
|
13
|
+
import { P as PortalSectionView } from './sqm-portal-section-view-a991e019.js';
|
|
14
14
|
|
|
15
15
|
const medium = {
|
|
16
16
|
facebook: { color: "#1877f2", text: "#fff", icon: "facebook" },
|
|
@@ -36,48 +36,48 @@ const style = {
|
|
|
36
36
|
const sheet = createStyleSheet(style);
|
|
37
37
|
const styleString = sheet.toString();
|
|
38
38
|
function ShareButtonView(props, children) {
|
|
39
|
-
const vanillaStyle = `
|
|
40
|
-
*::part(base) {
|
|
41
|
-
border: none;
|
|
39
|
+
const vanillaStyle = `
|
|
40
|
+
*::part(base) {
|
|
41
|
+
border: none;
|
|
42
42
|
--sl-focus-ring-color-primary: ${props.backgroundcolor
|
|
43
43
|
? props.backgroundcolor
|
|
44
44
|
: props.medium
|
|
45
45
|
? medium[props.medium].color
|
|
46
|
-
: ""}80!important;
|
|
47
|
-
|
|
46
|
+
: ""}80!important;
|
|
47
|
+
|
|
48
48
|
background: ${props.backgroundcolor
|
|
49
49
|
? props.backgroundcolor
|
|
50
50
|
: props.medium
|
|
51
51
|
? medium[props.medium].color
|
|
52
|
-
: ""};
|
|
52
|
+
: ""};
|
|
53
53
|
color: ${props.textcolor
|
|
54
54
|
? props.textcolor
|
|
55
55
|
: props.medium
|
|
56
56
|
? medium[props.medium].text
|
|
57
|
-
: ""};
|
|
58
|
-
border-radius: ${props.borderradius ? props.borderradius + "px" : ""};
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
*::part(base):hover {
|
|
57
|
+
: ""};
|
|
58
|
+
border-radius: ${props.borderradius ? props.borderradius + "px" : ""};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
*::part(base):hover {
|
|
62
62
|
border-color: ${props.backgroundcolor
|
|
63
63
|
? props.backgroundcolor
|
|
64
64
|
: props.medium
|
|
65
65
|
? medium[props.medium].color
|
|
66
|
-
: ""}D1!important;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
*::part(base):focus {
|
|
66
|
+
: ""}D1!important;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
*::part(base):focus {
|
|
70
70
|
border-color: ${props.backgroundcolor
|
|
71
71
|
? props.backgroundcolor
|
|
72
72
|
: props.medium
|
|
73
73
|
? medium[props.medium].color
|
|
74
|
-
: ""}D1!important;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
*::part(label) {
|
|
78
|
-
position: relative;
|
|
79
|
-
top: 2%;
|
|
80
|
-
}
|
|
74
|
+
: ""}D1!important;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
*::part(label) {
|
|
78
|
+
position: relative;
|
|
79
|
+
top: 2%;
|
|
80
|
+
}
|
|
81
81
|
`;
|
|
82
82
|
return props.hide ? (h(Host, { style: { display: "none" } })) : (h("div", null,
|
|
83
83
|
h("style", { type: "text/css" }, styleString),
|
|
@@ -130,10 +130,10 @@ const style$1 = {
|
|
|
130
130
|
};
|
|
131
131
|
const sheet$1 = createStyleSheet(style$1);
|
|
132
132
|
const styleString$1 = sheet$1.toString();
|
|
133
|
-
const vanillaStyle = `
|
|
134
|
-
:host{
|
|
135
|
-
display: block;
|
|
136
|
-
}
|
|
133
|
+
const vanillaStyle = `
|
|
134
|
+
:host{
|
|
135
|
+
display: block;
|
|
136
|
+
}
|
|
137
137
|
`;
|
|
138
138
|
function LeaderboardView(props) {
|
|
139
139
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
@@ -240,11 +240,7 @@ function BigStatView(props) {
|
|
|
240
240
|
|
|
241
241
|
const style$3 = {
|
|
242
242
|
HostBlock: HostBlock,
|
|
243
|
-
":host": {
|
|
244
|
-
"min-height": "100vh",
|
|
245
|
-
},
|
|
246
243
|
Frame: {
|
|
247
|
-
"min-height": "100vh",
|
|
248
244
|
display: "flex",
|
|
249
245
|
"flex-direction": "column",
|
|
250
246
|
"box-sizing": "border-box",
|
|
@@ -279,8 +275,8 @@ const style$3 = {
|
|
|
279
275
|
const sheet$3 = createStyleSheet(style$3);
|
|
280
276
|
const styleString$3 = sheet$3.toString();
|
|
281
277
|
function PortalFrameView(props, children) {
|
|
282
|
-
const { data } = props;
|
|
283
|
-
return (h("div", { class: sheet$3.classes.Frame },
|
|
278
|
+
const { data, notFullScreen } = props;
|
|
279
|
+
return (h("div", { style: { minHeight: notFullScreen ? "100%" : "100vh" }, class: sheet$3.classes.Frame },
|
|
284
280
|
h("style", { type: "text/css" }, styleString$3),
|
|
285
281
|
h("div", { class: sheet$3.classes.HeaderWrapper },
|
|
286
282
|
data.header,
|
|
@@ -343,27 +339,27 @@ const EditProfileView = (props) => {
|
|
|
343
339
|
}, exportparts: "base: primarybutton-base" }, text.editprofiletext)));
|
|
344
340
|
};
|
|
345
341
|
|
|
346
|
-
const MessageLinkQuery = dist.gql `
|
|
347
|
-
query ($programId: ID) {
|
|
348
|
-
user: viewer {
|
|
349
|
-
... on User {
|
|
350
|
-
shareLink(programId: $programId)
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
}
|
|
342
|
+
const MessageLinkQuery = dist.gql `
|
|
343
|
+
query ($programId: ID) {
|
|
344
|
+
user: viewer {
|
|
345
|
+
... on User {
|
|
346
|
+
shareLink(programId: $programId)
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
354
350
|
`;
|
|
355
|
-
const WIDGET_ENGAGEMENT_EVENT = dist.gql `
|
|
356
|
-
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
357
|
-
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
358
|
-
}
|
|
351
|
+
const WIDGET_ENGAGEMENT_EVENT = dist.gql `
|
|
352
|
+
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
353
|
+
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
354
|
+
}
|
|
359
355
|
`;
|
|
360
356
|
function useShareLink(props) {
|
|
361
357
|
var _a, _b;
|
|
362
|
-
const { programId =
|
|
363
|
-
const user =
|
|
364
|
-
const engagementMedium =
|
|
358
|
+
const { programId = O() } = props;
|
|
359
|
+
const user = N();
|
|
360
|
+
const engagementMedium = U();
|
|
365
361
|
const { data } = dn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
366
|
-
const [sendLoadEvent] =
|
|
362
|
+
const [sendLoadEvent] = Pe(WIDGET_ENGAGEMENT_EVENT);
|
|
367
363
|
const shareString = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink) !== null && _b !== void 0 ? _b :
|
|
368
364
|
// Shown during loading
|
|
369
365
|
"...";
|
|
@@ -390,23 +386,23 @@ function useShareLink(props) {
|
|
|
390
386
|
return { ...props, onClick, open, shareString };
|
|
391
387
|
}
|
|
392
388
|
|
|
393
|
-
const MessageLinkQuery$1 = dist.gql `
|
|
394
|
-
query (
|
|
395
|
-
$programId: ID
|
|
396
|
-
$engagementMedium: UserEngagementMedium!
|
|
397
|
-
$shareMedium: ReferralShareMedium!
|
|
398
|
-
) {
|
|
399
|
-
viewer {
|
|
400
|
-
... on User {
|
|
401
|
-
messageLink(
|
|
402
|
-
programId: $programId
|
|
403
|
-
engagementMedium: $engagementMedium
|
|
404
|
-
shareMedium: $shareMedium
|
|
405
|
-
)
|
|
406
|
-
shareLink(programId: $programId, engagementMedium: $engagementMedium)
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
}
|
|
389
|
+
const MessageLinkQuery$1 = dist.gql `
|
|
390
|
+
query (
|
|
391
|
+
$programId: ID
|
|
392
|
+
$engagementMedium: UserEngagementMedium!
|
|
393
|
+
$shareMedium: ReferralShareMedium!
|
|
394
|
+
) {
|
|
395
|
+
viewer {
|
|
396
|
+
... on User {
|
|
397
|
+
messageLink(
|
|
398
|
+
programId: $programId
|
|
399
|
+
engagementMedium: $engagementMedium
|
|
400
|
+
shareMedium: $shareMedium
|
|
401
|
+
)
|
|
402
|
+
shareLink(programId: $programId, engagementMedium: $engagementMedium)
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
}
|
|
410
406
|
`;
|
|
411
407
|
function NativeShare(props, directLink) {
|
|
412
408
|
const title = props.sharetitle || "Share title";
|
|
@@ -448,10 +444,10 @@ function GenericShare(res) {
|
|
|
448
444
|
function useShareButton(props) {
|
|
449
445
|
var _a, _b;
|
|
450
446
|
const { sharetitle, sharetext, medium } = props;
|
|
451
|
-
const programId = props.programId ? props.programId :
|
|
452
|
-
const user =
|
|
447
|
+
const programId = props.programId ? props.programId : O();
|
|
448
|
+
const user = N();
|
|
453
449
|
const variables = {
|
|
454
|
-
engagementMedium:
|
|
450
|
+
engagementMedium: U(),
|
|
455
451
|
programId: programId,
|
|
456
452
|
shareMedium: medium.toUpperCase(),
|
|
457
453
|
};
|
|
@@ -793,16 +789,16 @@ _, status) => {
|
|
|
793
789
|
? { dateConverted_exists: false }
|
|
794
790
|
: {};
|
|
795
791
|
const queryFilter = { ...programFilter, ...convertedFilter };
|
|
796
|
-
return debugQuery(dist.gql `
|
|
797
|
-
query ($queryFilter: ReferralFilterInput) {
|
|
798
|
-
viewer {
|
|
799
|
-
... on User {
|
|
800
|
-
referrals(filter: $queryFilter) {
|
|
801
|
-
totalCount
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
}
|
|
792
|
+
return debugQuery(dist.gql `
|
|
793
|
+
query ($queryFilter: ReferralFilterInput) {
|
|
794
|
+
viewer {
|
|
795
|
+
... on User {
|
|
796
|
+
referrals(filter: $queryFilter) {
|
|
797
|
+
totalCount
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
}
|
|
806
802
|
`, { queryFilter }, (res) => {
|
|
807
803
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
808
804
|
return ({
|
|
@@ -815,19 +811,19 @@ const programGoalsQuery = (programId, locale, metricType, goalId) => {
|
|
|
815
811
|
// Confirm this behaviour
|
|
816
812
|
if (programId === "classic")
|
|
817
813
|
return null;
|
|
818
|
-
return debugQuery(dist.gql `
|
|
819
|
-
query {
|
|
820
|
-
viewer {
|
|
821
|
-
... on User {
|
|
822
|
-
programGoals {
|
|
823
|
-
goalId
|
|
824
|
-
programId
|
|
825
|
-
count
|
|
826
|
-
conversionCount
|
|
827
|
-
}
|
|
828
|
-
}
|
|
829
|
-
}
|
|
830
|
-
}
|
|
814
|
+
return debugQuery(dist.gql `
|
|
815
|
+
query {
|
|
816
|
+
viewer {
|
|
817
|
+
... on User {
|
|
818
|
+
programGoals {
|
|
819
|
+
goalId
|
|
820
|
+
programId
|
|
821
|
+
count
|
|
822
|
+
conversionCount
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
}
|
|
831
827
|
`, { programId, metricType, goalId, locale }, (res) => {
|
|
832
828
|
var _a, _b, _c, _d, _e, _f;
|
|
833
829
|
const goal = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.programGoals) === null || _c === void 0 ? void 0 : _c.filter((goal) => goal.goalId === goalId && goal.programId === programId);
|
|
@@ -838,14 +834,14 @@ const programGoalsQuery = (programId, locale, metricType, goalId) => {
|
|
|
838
834
|
});
|
|
839
835
|
};
|
|
840
836
|
const customFieldsQuery = (_programId, locale, fieldName, goalId) => {
|
|
841
|
-
return debugQuery(dist.gql `
|
|
842
|
-
query {
|
|
843
|
-
viewer {
|
|
844
|
-
... on User {
|
|
845
|
-
customFields
|
|
846
|
-
}
|
|
847
|
-
}
|
|
848
|
-
}
|
|
837
|
+
return debugQuery(dist.gql `
|
|
838
|
+
query {
|
|
839
|
+
viewer {
|
|
840
|
+
... on User {
|
|
841
|
+
customFields
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
}
|
|
849
845
|
`, { fieldName, goalId, locale }, (res) => {
|
|
850
846
|
var _a, _b, _c;
|
|
851
847
|
const customField = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.customFields) === null || _c === void 0 ? void 0 : _c[fieldName];
|
|
@@ -863,16 +859,16 @@ const referralsMonthQuery = (programId) => {
|
|
|
863
859
|
...programFilter,
|
|
864
860
|
dateReferralStarted_timeframe: "this_month",
|
|
865
861
|
};
|
|
866
|
-
return debugQuery(dist.gql `
|
|
867
|
-
query ($filter: ReferralFilterInput) {
|
|
868
|
-
viewer {
|
|
869
|
-
... on User {
|
|
870
|
-
referrals(filter: $filter) {
|
|
871
|
-
totalCount
|
|
872
|
-
}
|
|
873
|
-
}
|
|
874
|
-
}
|
|
875
|
-
}
|
|
862
|
+
return debugQuery(dist.gql `
|
|
863
|
+
query ($filter: ReferralFilterInput) {
|
|
864
|
+
viewer {
|
|
865
|
+
... on User {
|
|
866
|
+
referrals(filter: $filter) {
|
|
867
|
+
totalCount
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
}
|
|
876
872
|
`, { filter }, (res) => {
|
|
877
873
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
878
874
|
return ({
|
|
@@ -889,16 +885,16 @@ const referralsWeekQuery = (programId) => {
|
|
|
889
885
|
...programFilter,
|
|
890
886
|
dateReferralStarted_timeframe: "this_month",
|
|
891
887
|
};
|
|
892
|
-
return debugQuery(dist.gql `
|
|
893
|
-
query ($filter: ReferralFilterInput) {
|
|
894
|
-
viewer {
|
|
895
|
-
... on User {
|
|
896
|
-
referrals(filter: $filter) {
|
|
897
|
-
totalCount
|
|
898
|
-
}
|
|
899
|
-
}
|
|
900
|
-
}
|
|
901
|
-
}
|
|
888
|
+
return debugQuery(dist.gql `
|
|
889
|
+
query ($filter: ReferralFilterInput) {
|
|
890
|
+
viewer {
|
|
891
|
+
... on User {
|
|
892
|
+
referrals(filter: $filter) {
|
|
893
|
+
totalCount
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
}
|
|
902
898
|
`, { filter }, (res) => {
|
|
903
899
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
904
900
|
return ({
|
|
@@ -910,16 +906,16 @@ const referralsWeekQuery = (programId) => {
|
|
|
910
906
|
const rewardsCountQuery = (programId,
|
|
911
907
|
// locale
|
|
912
908
|
_, global = "") => {
|
|
913
|
-
return debugQuery(dist.gql `
|
|
914
|
-
query ($programId: ID) {
|
|
915
|
-
viewer {
|
|
916
|
-
... on User {
|
|
917
|
-
rewards(filter: { programId_eq: $programId }) {
|
|
918
|
-
totalCount
|
|
919
|
-
}
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
}
|
|
909
|
+
return debugQuery(dist.gql `
|
|
910
|
+
query ($programId: ID) {
|
|
911
|
+
viewer {
|
|
912
|
+
... on User {
|
|
913
|
+
rewards(filter: { programId_eq: $programId }) {
|
|
914
|
+
totalCount
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
}
|
|
923
919
|
`, {
|
|
924
920
|
programId: !global && programId !== "classic" ? programId : null,
|
|
925
921
|
}, (res) => {
|
|
@@ -934,28 +930,28 @@ const rewardsCountFilteredQuery = (programId,
|
|
|
934
930
|
// locale
|
|
935
931
|
_, type, unit, status, global = "") => {
|
|
936
932
|
const statusFilter = status ? { status } : null;
|
|
937
|
-
return debugQuery(dist.gql `
|
|
938
|
-
query (
|
|
939
|
-
$programId: ID
|
|
940
|
-
$unit: String
|
|
941
|
-
$type: RewardType
|
|
942
|
-
$statusFilter: RewardStatusFilterInput
|
|
943
|
-
) {
|
|
944
|
-
viewer {
|
|
945
|
-
... on User {
|
|
946
|
-
rewards(
|
|
947
|
-
filter: {
|
|
948
|
-
programId_eq: $programId
|
|
949
|
-
type_eq: $type
|
|
950
|
-
unit_eq: $unit
|
|
951
|
-
statuses_eq: $statusFilter
|
|
952
|
-
}
|
|
953
|
-
) {
|
|
954
|
-
totalCount
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
}
|
|
958
|
-
}
|
|
933
|
+
return debugQuery(dist.gql `
|
|
934
|
+
query (
|
|
935
|
+
$programId: ID
|
|
936
|
+
$unit: String
|
|
937
|
+
$type: RewardType
|
|
938
|
+
$statusFilter: RewardStatusFilterInput
|
|
939
|
+
) {
|
|
940
|
+
viewer {
|
|
941
|
+
... on User {
|
|
942
|
+
rewards(
|
|
943
|
+
filter: {
|
|
944
|
+
programId_eq: $programId
|
|
945
|
+
type_eq: $type
|
|
946
|
+
unit_eq: $unit
|
|
947
|
+
statuses_eq: $statusFilter
|
|
948
|
+
}
|
|
949
|
+
) {
|
|
950
|
+
totalCount
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
}
|
|
959
955
|
`, {
|
|
960
956
|
programId: !global && programId !== "classic" ? programId : null,
|
|
961
957
|
unit,
|
|
@@ -973,22 +969,22 @@ const integrationRewardsCountFilteredQuery = (programId,
|
|
|
973
969
|
// locale
|
|
974
970
|
_, status, global = "") => {
|
|
975
971
|
const statusFilter = status ? { status } : null;
|
|
976
|
-
return debugQuery(dist.gql `
|
|
977
|
-
query ($programId: ID, $statusFilter: RewardStatusFilterInput) {
|
|
978
|
-
viewer {
|
|
979
|
-
... on User {
|
|
980
|
-
rewards(
|
|
981
|
-
filter: {
|
|
982
|
-
programId_eq: $programId
|
|
983
|
-
type_eq: INTEGRATION
|
|
984
|
-
statuses_eq: $statusFilter
|
|
985
|
-
}
|
|
986
|
-
) {
|
|
987
|
-
totalCount
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
}
|
|
991
|
-
}
|
|
972
|
+
return debugQuery(dist.gql `
|
|
973
|
+
query ($programId: ID, $statusFilter: RewardStatusFilterInput) {
|
|
974
|
+
viewer {
|
|
975
|
+
... on User {
|
|
976
|
+
rewards(
|
|
977
|
+
filter: {
|
|
978
|
+
programId_eq: $programId
|
|
979
|
+
type_eq: INTEGRATION
|
|
980
|
+
statuses_eq: $statusFilter
|
|
981
|
+
}
|
|
982
|
+
) {
|
|
983
|
+
totalCount
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
}
|
|
992
988
|
`, {
|
|
993
989
|
programId: !global && programId !== "classic" ? programId : null,
|
|
994
990
|
statusFilter,
|
|
@@ -1003,21 +999,21 @@ _, status, global = "") => {
|
|
|
1003
999
|
const rewardsMonthQuery = (programId,
|
|
1004
1000
|
// locale
|
|
1005
1001
|
_, global = "") => {
|
|
1006
|
-
return debugQuery(dist.gql `
|
|
1007
|
-
query ($programId: ID) {
|
|
1008
|
-
viewer {
|
|
1009
|
-
... on User {
|
|
1010
|
-
rewards(
|
|
1011
|
-
filter: {
|
|
1012
|
-
programId_eq: $programId
|
|
1013
|
-
dateGiven_timeframe: "this_month"
|
|
1014
|
-
}
|
|
1015
|
-
) {
|
|
1016
|
-
totalCount
|
|
1017
|
-
}
|
|
1018
|
-
}
|
|
1019
|
-
}
|
|
1020
|
-
}
|
|
1002
|
+
return debugQuery(dist.gql `
|
|
1003
|
+
query ($programId: ID) {
|
|
1004
|
+
viewer {
|
|
1005
|
+
... on User {
|
|
1006
|
+
rewards(
|
|
1007
|
+
filter: {
|
|
1008
|
+
programId_eq: $programId
|
|
1009
|
+
dateGiven_timeframe: "this_month"
|
|
1010
|
+
}
|
|
1011
|
+
) {
|
|
1012
|
+
totalCount
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1021
1017
|
`, {
|
|
1022
1018
|
programId: !global && programId !== "classic" ? programId : null,
|
|
1023
1019
|
}, (res) => {
|
|
@@ -1031,21 +1027,21 @@ _, global = "") => {
|
|
|
1031
1027
|
const rewardsWeekQuery = (programId,
|
|
1032
1028
|
// locale
|
|
1033
1029
|
_, global = "") => {
|
|
1034
|
-
return debugQuery(dist.gql `
|
|
1035
|
-
query ($programId: ID) {
|
|
1036
|
-
viewer {
|
|
1037
|
-
... on User {
|
|
1038
|
-
rewards(
|
|
1039
|
-
filter: {
|
|
1040
|
-
programId_eq: $programId
|
|
1041
|
-
dateGiven_timeframe: "this_week"
|
|
1042
|
-
}
|
|
1043
|
-
) {
|
|
1044
|
-
totalCount
|
|
1045
|
-
}
|
|
1046
|
-
}
|
|
1047
|
-
}
|
|
1048
|
-
}
|
|
1030
|
+
return debugQuery(dist.gql `
|
|
1031
|
+
query ($programId: ID) {
|
|
1032
|
+
viewer {
|
|
1033
|
+
... on User {
|
|
1034
|
+
rewards(
|
|
1035
|
+
filter: {
|
|
1036
|
+
programId_eq: $programId
|
|
1037
|
+
dateGiven_timeframe: "this_week"
|
|
1038
|
+
}
|
|
1039
|
+
) {
|
|
1040
|
+
totalCount
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1049
1045
|
`, {
|
|
1050
1046
|
programId: !global && programId !== "classic" ? programId : null,
|
|
1051
1047
|
}, (res) => {
|
|
@@ -1057,33 +1053,33 @@ _, global = "") => {
|
|
|
1057
1053
|
});
|
|
1058
1054
|
};
|
|
1059
1055
|
const rewardsRedeemedQuery = (programId, locale, type, unit, global = "") => {
|
|
1060
|
-
return debugQuery(dist.gql `
|
|
1061
|
-
query (
|
|
1062
|
-
$programId: ID
|
|
1063
|
-
$type: RewardType
|
|
1064
|
-
$unit: String!
|
|
1065
|
-
$locale: RSLocale
|
|
1066
|
-
) {
|
|
1067
|
-
fallback: formatRewardPrettyValue(
|
|
1068
|
-
value: 0
|
|
1069
|
-
unit: $unit
|
|
1070
|
-
locale: $locale
|
|
1071
|
-
formatType: UNIT_FORMATTED
|
|
1072
|
-
)
|
|
1073
|
-
viewer: viewer {
|
|
1074
|
-
... on User {
|
|
1075
|
-
rewardBalanceDetails(
|
|
1076
|
-
programId: $programId
|
|
1077
|
-
filter: { type_eq: $type, unit_eq: $unit }
|
|
1078
|
-
locale: $locale
|
|
1079
|
-
) {
|
|
1080
|
-
... on CreditRewardBalance {
|
|
1081
|
-
prettyRedeemedCredit
|
|
1082
|
-
}
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1056
|
+
return debugQuery(dist.gql `
|
|
1057
|
+
query (
|
|
1058
|
+
$programId: ID
|
|
1059
|
+
$type: RewardType
|
|
1060
|
+
$unit: String!
|
|
1061
|
+
$locale: RSLocale
|
|
1062
|
+
) {
|
|
1063
|
+
fallback: formatRewardPrettyValue(
|
|
1064
|
+
value: 0
|
|
1065
|
+
unit: $unit
|
|
1066
|
+
locale: $locale
|
|
1067
|
+
formatType: UNIT_FORMATTED
|
|
1068
|
+
)
|
|
1069
|
+
viewer: viewer {
|
|
1070
|
+
... on User {
|
|
1071
|
+
rewardBalanceDetails(
|
|
1072
|
+
programId: $programId
|
|
1073
|
+
filter: { type_eq: $type, unit_eq: $unit }
|
|
1074
|
+
locale: $locale
|
|
1075
|
+
) {
|
|
1076
|
+
... on CreditRewardBalance {
|
|
1077
|
+
prettyRedeemedCredit
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1087
1083
|
`, {
|
|
1088
1084
|
programId: !global && programId !== "classic" ? programId : null,
|
|
1089
1085
|
type,
|
|
@@ -1100,33 +1096,33 @@ const rewardsRedeemedQuery = (programId, locale, type, unit, global = "") => {
|
|
|
1100
1096
|
});
|
|
1101
1097
|
};
|
|
1102
1098
|
const rewardsAssignedQuery = (programId, locale, type, unit, global = "") => {
|
|
1103
|
-
return debugQuery(dist.gql `
|
|
1104
|
-
query (
|
|
1105
|
-
$programId: ID
|
|
1106
|
-
$type: RewardType
|
|
1107
|
-
$unit: String!
|
|
1108
|
-
$locale: RSLocale
|
|
1109
|
-
) {
|
|
1110
|
-
fallback: formatRewardPrettyValue(
|
|
1111
|
-
value: 0
|
|
1112
|
-
unit: $unit
|
|
1113
|
-
locale: $locale
|
|
1114
|
-
formatType: UNIT_FORMATTED
|
|
1115
|
-
)
|
|
1116
|
-
viewer: viewer {
|
|
1117
|
-
... on User {
|
|
1118
|
-
rewardBalanceDetails(
|
|
1119
|
-
programId: $programId
|
|
1120
|
-
filter: { type_eq: $type, unit_eq: $unit }
|
|
1121
|
-
locale: $locale
|
|
1122
|
-
) {
|
|
1123
|
-
... on CreditRewardBalance {
|
|
1124
|
-
prettyAssignedCredit
|
|
1125
|
-
}
|
|
1126
|
-
}
|
|
1127
|
-
}
|
|
1128
|
-
}
|
|
1129
|
-
}
|
|
1099
|
+
return debugQuery(dist.gql `
|
|
1100
|
+
query (
|
|
1101
|
+
$programId: ID
|
|
1102
|
+
$type: RewardType
|
|
1103
|
+
$unit: String!
|
|
1104
|
+
$locale: RSLocale
|
|
1105
|
+
) {
|
|
1106
|
+
fallback: formatRewardPrettyValue(
|
|
1107
|
+
value: 0
|
|
1108
|
+
unit: $unit
|
|
1109
|
+
locale: $locale
|
|
1110
|
+
formatType: UNIT_FORMATTED
|
|
1111
|
+
)
|
|
1112
|
+
viewer: viewer {
|
|
1113
|
+
... on User {
|
|
1114
|
+
rewardBalanceDetails(
|
|
1115
|
+
programId: $programId
|
|
1116
|
+
filter: { type_eq: $type, unit_eq: $unit }
|
|
1117
|
+
locale: $locale
|
|
1118
|
+
) {
|
|
1119
|
+
... on CreditRewardBalance {
|
|
1120
|
+
prettyAssignedCredit
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1130
1126
|
`, {
|
|
1131
1127
|
programId: !global && programId !== "classic" ? programId : null,
|
|
1132
1128
|
type,
|
|
@@ -1143,33 +1139,33 @@ const rewardsAssignedQuery = (programId, locale, type, unit, global = "") => {
|
|
|
1143
1139
|
});
|
|
1144
1140
|
};
|
|
1145
1141
|
const rewardsAvailableQuery = (programId, locale, type, unit, global = "") => {
|
|
1146
|
-
return debugQuery(dist.gql `
|
|
1147
|
-
query (
|
|
1148
|
-
$programId: ID
|
|
1149
|
-
$type: RewardType
|
|
1150
|
-
$unit: String!
|
|
1151
|
-
$locale: RSLocale
|
|
1152
|
-
) {
|
|
1153
|
-
fallback: formatRewardPrettyValue(
|
|
1154
|
-
value: 0
|
|
1155
|
-
unit: $unit
|
|
1156
|
-
locale: $locale
|
|
1157
|
-
formatType: UNIT_FORMATTED
|
|
1158
|
-
)
|
|
1159
|
-
viewer: viewer {
|
|
1160
|
-
... on User {
|
|
1161
|
-
rewardBalanceDetails(
|
|
1162
|
-
programId: $programId
|
|
1163
|
-
filter: { type_eq: $type, unit_eq: $unit }
|
|
1164
|
-
locale: $locale
|
|
1165
|
-
) {
|
|
1166
|
-
... on CreditRewardBalance {
|
|
1167
|
-
prettyAvailableValue
|
|
1168
|
-
}
|
|
1169
|
-
}
|
|
1170
|
-
}
|
|
1171
|
-
}
|
|
1172
|
-
}
|
|
1142
|
+
return debugQuery(dist.gql `
|
|
1143
|
+
query (
|
|
1144
|
+
$programId: ID
|
|
1145
|
+
$type: RewardType
|
|
1146
|
+
$unit: String!
|
|
1147
|
+
$locale: RSLocale
|
|
1148
|
+
) {
|
|
1149
|
+
fallback: formatRewardPrettyValue(
|
|
1150
|
+
value: 0
|
|
1151
|
+
unit: $unit
|
|
1152
|
+
locale: $locale
|
|
1153
|
+
formatType: UNIT_FORMATTED
|
|
1154
|
+
)
|
|
1155
|
+
viewer: viewer {
|
|
1156
|
+
... on User {
|
|
1157
|
+
rewardBalanceDetails(
|
|
1158
|
+
programId: $programId
|
|
1159
|
+
filter: { type_eq: $type, unit_eq: $unit }
|
|
1160
|
+
locale: $locale
|
|
1161
|
+
) {
|
|
1162
|
+
... on CreditRewardBalance {
|
|
1163
|
+
prettyAvailableValue
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1173
1169
|
`, {
|
|
1174
1170
|
programId: !global && programId !== "classic" ? programId : null,
|
|
1175
1171
|
type,
|
|
@@ -1191,34 +1187,34 @@ const parseRewardValueFormat = {
|
|
|
1191
1187
|
};
|
|
1192
1188
|
const rewardsBalanceQuery = (programId, locale, type, unit, format = "prettyValue", global = "") => {
|
|
1193
1189
|
var _a;
|
|
1194
|
-
return debugQuery(dist.gql `
|
|
1195
|
-
query (
|
|
1196
|
-
$programId: ID
|
|
1197
|
-
$type: RewardType!
|
|
1198
|
-
$unit: String!
|
|
1199
|
-
$format: RewardValueFormatType!
|
|
1200
|
-
$locale: RSLocale
|
|
1201
|
-
) {
|
|
1202
|
-
fallback: formatRewardPrettyValue(
|
|
1203
|
-
value: 0
|
|
1204
|
-
unit: $unit
|
|
1205
|
-
locale: $locale
|
|
1206
|
-
formatType: $format
|
|
1207
|
-
)
|
|
1208
|
-
viewer: viewer {
|
|
1209
|
-
... on User {
|
|
1210
|
-
rewardBalanceDetails(
|
|
1211
|
-
programId: $programId
|
|
1212
|
-
filter: { type_eq: $type, unit_eq: $unit }
|
|
1213
|
-
locale: $locale
|
|
1214
|
-
) {
|
|
1215
|
-
... on CreditRewardBalance {
|
|
1216
|
-
prettyAvailableValue(formatType: $format)
|
|
1217
|
-
}
|
|
1218
|
-
}
|
|
1219
|
-
}
|
|
1220
|
-
}
|
|
1221
|
-
}
|
|
1190
|
+
return debugQuery(dist.gql `
|
|
1191
|
+
query (
|
|
1192
|
+
$programId: ID
|
|
1193
|
+
$type: RewardType!
|
|
1194
|
+
$unit: String!
|
|
1195
|
+
$format: RewardValueFormatType!
|
|
1196
|
+
$locale: RSLocale
|
|
1197
|
+
) {
|
|
1198
|
+
fallback: formatRewardPrettyValue(
|
|
1199
|
+
value: 0
|
|
1200
|
+
unit: $unit
|
|
1201
|
+
locale: $locale
|
|
1202
|
+
formatType: $format
|
|
1203
|
+
)
|
|
1204
|
+
viewer: viewer {
|
|
1205
|
+
... on User {
|
|
1206
|
+
rewardBalanceDetails(
|
|
1207
|
+
programId: $programId
|
|
1208
|
+
filter: { type_eq: $type, unit_eq: $unit }
|
|
1209
|
+
locale: $locale
|
|
1210
|
+
) {
|
|
1211
|
+
... on CreditRewardBalance {
|
|
1212
|
+
prettyAvailableValue(formatType: $format)
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1222
1218
|
`, {
|
|
1223
1219
|
programId: !global && programId !== "classic" ? programId : null,
|
|
1224
1220
|
type,
|
|
@@ -1332,11 +1328,11 @@ const StatPaths = [
|
|
|
1332
1328
|
const StatPatterns = StatPaths.map((pattern) => pathToRegexp(pattern.route));
|
|
1333
1329
|
function useBigStat(props) {
|
|
1334
1330
|
var _a;
|
|
1335
|
-
const { statType, flexReverse, alignment, programId =
|
|
1331
|
+
const { statType, flexReverse, alignment, programId = O(), } = props;
|
|
1336
1332
|
// triggers a re-render if the label is manually changed
|
|
1337
1333
|
useChildElements();
|
|
1338
|
-
const locale =
|
|
1339
|
-
const userIdent =
|
|
1334
|
+
const locale = x();
|
|
1335
|
+
const userIdent = N();
|
|
1340
1336
|
const re = useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
|
|
1341
1337
|
if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
|
|
1342
1338
|
return {
|
|
@@ -1541,13 +1537,13 @@ const style$4 = {
|
|
|
1541
1537
|
},
|
|
1542
1538
|
ButtonsContainer: AuthButtonsContainer,
|
|
1543
1539
|
};
|
|
1544
|
-
const vanillaStyle$1 = `
|
|
1545
|
-
:host {
|
|
1546
|
-
display: block;
|
|
1547
|
-
}
|
|
1548
|
-
:host([hidden]): {
|
|
1549
|
-
display: none;
|
|
1550
|
-
}
|
|
1540
|
+
const vanillaStyle$1 = `
|
|
1541
|
+
:host {
|
|
1542
|
+
display: block;
|
|
1543
|
+
}
|
|
1544
|
+
:host([hidden]): {
|
|
1545
|
+
display: none;
|
|
1546
|
+
}
|
|
1551
1547
|
`;
|
|
1552
1548
|
const sheet$4 = createStyleSheet(style$4);
|
|
1553
1549
|
const styleString$4 = sheet$4.toString();
|
|
@@ -1581,20 +1577,20 @@ const style$5 = {
|
|
|
1581
1577
|
ButtonsContainer: AuthButtonsContainer,
|
|
1582
1578
|
ErrorStyle: ErrorStyles,
|
|
1583
1579
|
};
|
|
1584
|
-
const vanillaStyle$2 = `
|
|
1585
|
-
sqm-portal-register {
|
|
1586
|
-
margin: 0 auto;
|
|
1587
|
-
width: 100%;
|
|
1588
|
-
display: block;
|
|
1589
|
-
}
|
|
1590
|
-
|
|
1591
|
-
:host{
|
|
1592
|
-
display: block;
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
:host([hidden]) {
|
|
1596
|
-
display: none;
|
|
1597
|
-
}
|
|
1580
|
+
const vanillaStyle$2 = `
|
|
1581
|
+
sqm-portal-register {
|
|
1582
|
+
margin: 0 auto;
|
|
1583
|
+
width: 100%;
|
|
1584
|
+
display: block;
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
:host{
|
|
1588
|
+
display: block;
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
:host([hidden]) {
|
|
1592
|
+
display: none;
|
|
1593
|
+
}
|
|
1598
1594
|
`;
|
|
1599
1595
|
const sheet$5 = createStyleSheet(style$5);
|
|
1600
1596
|
const styleString$5 = sheet$5.toString();
|
|
@@ -1621,18 +1617,17 @@ function PortalRegisterView(props) {
|
|
|
1621
1617
|
if (!value.includes("@")) {
|
|
1622
1618
|
return "Must be a valid email address";
|
|
1623
1619
|
}
|
|
1624
|
-
} }, (((_b = (_a = states.
|
|
1620
|
+
} }, (((_b = (_a = states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
|
|
1625
1621
|
class: sheet$5.classes.ErrorStyle,
|
|
1626
|
-
helpText: ((_d = (_c = states.
|
|
1622
|
+
helpText: ((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
|
|
1627
1623
|
"Cannot be empty",
|
|
1628
1624
|
}
|
|
1629
1625
|
: [])))),
|
|
1630
|
-
!states.hideInputs && (h("sqm-password-field", { fieldLabel: content.passwordLabel, "
|
|
1626
|
+
!states.hideInputs && (h("sqm-password-field", { fieldLabel: content.passwordLabel, "disable-validation": states.disablePasswordValidation })),
|
|
1631
1627
|
content.passwordField,
|
|
1632
|
-
!states.hideInputs && states.confirmPassword && (h("sl-input", Object.assign({ exportparts: "label: input-label", type: "password", name: "/confirmPassword", label: content.confirmPasswordLabel, disabled: states.loading, required: true }, (((_f = (_e = states.
|
|
1628
|
+
!states.hideInputs && states.confirmPassword && (h("sl-input", Object.assign({ exportparts: "label: input-label", type: "password", name: "/confirmPassword", label: content.confirmPasswordLabel, disabled: states.loading, required: true }, (((_f = (_e = states.registrationFormState) === null || _e === void 0 ? void 0 : _e.validationErrors) === null || _f === void 0 ? void 0 : _f.confirmPassword) ? {
|
|
1633
1629
|
class: sheet$5.classes.ErrorStyle,
|
|
1634
|
-
helpText: ((_h = (_g = states.
|
|
1635
|
-
"Cannot be empty",
|
|
1630
|
+
helpText: ((_h = (_g = states.registrationFormState) === null || _g === void 0 ? void 0 : _g.validationErrors) === null || _h === void 0 ? void 0 : _h.confirmPassword) || "Cannot be empty",
|
|
1636
1631
|
}
|
|
1637
1632
|
: [])))),
|
|
1638
1633
|
content.terms,
|
|
@@ -2302,11 +2297,11 @@ function TaskCardView(props) {
|
|
|
2302
2297
|
const taskEnded = content.rewardDuration && dateEnd <= dateToday;
|
|
2303
2298
|
const taskNotStarted = content.rewardDuration && dateToday <= dateStart;
|
|
2304
2299
|
const taskUnavailable = taskEnded || taskNotStarted;
|
|
2305
|
-
const vanillaStyle = `
|
|
2306
|
-
:host{
|
|
2307
|
-
display: block;
|
|
2308
|
-
margin-bottom: var(--sl-spacing-large);
|
|
2309
|
-
}
|
|
2300
|
+
const vanillaStyle = `
|
|
2301
|
+
:host{
|
|
2302
|
+
display: block;
|
|
2303
|
+
margin-bottom: var(--sl-spacing-large);
|
|
2304
|
+
}
|
|
2310
2305
|
`;
|
|
2311
2306
|
return (h("div", { class: sheet$8.classes.TaskCard },
|
|
2312
2307
|
h("style", { type: "text/css" },
|
|
@@ -2433,38 +2428,38 @@ const style$9 = {
|
|
|
2433
2428
|
},
|
|
2434
2429
|
},
|
|
2435
2430
|
};
|
|
2436
|
-
const vanillaStyle$3 = `
|
|
2437
|
-
:host {
|
|
2438
|
-
margin: 0 auto;
|
|
2439
|
-
width: 100%;
|
|
2440
|
-
display: block;
|
|
2441
|
-
}
|
|
2442
|
-
|
|
2443
|
-
sl-input::part(label){
|
|
2444
|
-
font-size: var(--sl-input-label-font-size-small);
|
|
2445
|
-
font-weight: var(--sl-font-weight-semibold);
|
|
2446
|
-
}
|
|
2431
|
+
const vanillaStyle$3 = `
|
|
2432
|
+
:host {
|
|
2433
|
+
margin: 0 auto;
|
|
2434
|
+
width: 100%;
|
|
2435
|
+
display: block;
|
|
2436
|
+
}
|
|
2437
|
+
|
|
2438
|
+
sl-input::part(label){
|
|
2439
|
+
font-size: var(--sl-input-label-font-size-small);
|
|
2440
|
+
font-weight: var(--sl-font-weight-semibold);
|
|
2441
|
+
}
|
|
2447
2442
|
`;
|
|
2448
2443
|
const sheet$9 = createStyleSheet(style$9);
|
|
2449
2444
|
const styleString$9 = sheet$9.toString();
|
|
2450
2445
|
function NameFieldsView(props) {
|
|
2451
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
2446
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2452
2447
|
const { states } = props;
|
|
2453
|
-
const validationErrors = states === null || states === void 0 ? void 0 : states.validationErrors;
|
|
2448
|
+
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2454
2449
|
return (h("div", { class: sheet$9.classes.FieldsContainer },
|
|
2455
2450
|
h("style", { type: "text/css" },
|
|
2456
2451
|
vanillaStyle$3,
|
|
2457
2452
|
styleString$9),
|
|
2458
|
-
h("sl-input", Object.assign({ exportparts: "label: input-label", name: "/firstName", type: "text", label: states.content.firstNameLabel, required: true, disabled: ((
|
|
2459
|
-
value: (
|
|
2453
|
+
h("sl-input", Object.assign({ exportparts: "label: input-label", name: "/firstName", type: "text", label: states.content.firstNameLabel, required: true, disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e.firstName) ? {
|
|
2454
|
+
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.firstName,
|
|
2460
2455
|
}
|
|
2461
2456
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) ? {
|
|
2462
2457
|
class: sheet$9.classes.ErrorStyle,
|
|
2463
2458
|
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) || "Cannot be empty",
|
|
2464
2459
|
}
|
|
2465
2460
|
: []))),
|
|
2466
|
-
h("sl-input", Object.assign({ exportparts: "label: input-label", name: "/lastName", type: "text", label: states.content.lastNameLabel, required: true, disabled: ((
|
|
2467
|
-
value: (
|
|
2461
|
+
h("sl-input", Object.assign({ exportparts: "label: input-label", name: "/lastName", type: "text", label: states.content.lastNameLabel, required: true, disabled: ((_h = states.registrationFormState) === null || _h === void 0 ? void 0 : _h.loading) || ((_j = states.registrationFormState) === null || _j === void 0 ? void 0 : _j.disabled) }, (((_l = (_k = states.registrationFormState) === null || _k === void 0 ? void 0 : _k.initialData) === null || _l === void 0 ? void 0 : _l.lastName) ? {
|
|
2462
|
+
value: (_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.lastName,
|
|
2468
2463
|
}
|
|
2469
2464
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) ? {
|
|
2470
2465
|
class: sheet$9.classes.ErrorStyle,
|
|
@@ -2496,27 +2491,28 @@ const style$a = {
|
|
|
2496
2491
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2497
2492
|
},
|
|
2498
2493
|
};
|
|
2499
|
-
const vanillaStyle$4 = `
|
|
2500
|
-
:host {
|
|
2501
|
-
margin: 0 auto;
|
|
2502
|
-
width: 100%;
|
|
2503
|
-
display: block;
|
|
2504
|
-
}
|
|
2505
|
-
sl-checkbox::part(label){
|
|
2506
|
-
font-size: var(--sl-input-label-font-size-small);
|
|
2507
|
-
font-weight: var(--sl-font-weight-normal);
|
|
2508
|
-
line-height: 20px;
|
|
2509
|
-
}
|
|
2510
|
-
sl-checkbox::part(base){
|
|
2511
|
-
align-items: start;
|
|
2512
|
-
}
|
|
2494
|
+
const vanillaStyle$4 = `
|
|
2495
|
+
:host {
|
|
2496
|
+
margin: 0 auto;
|
|
2497
|
+
width: 100%;
|
|
2498
|
+
display: block;
|
|
2499
|
+
}
|
|
2500
|
+
sl-checkbox::part(label){
|
|
2501
|
+
font-size: var(--sl-input-label-font-size-small);
|
|
2502
|
+
font-weight: var(--sl-font-weight-normal);
|
|
2503
|
+
line-height: 20px;
|
|
2504
|
+
}
|
|
2505
|
+
sl-checkbox::part(base){
|
|
2506
|
+
align-items: start;
|
|
2507
|
+
}
|
|
2513
2508
|
`;
|
|
2514
2509
|
jss.setup(create());
|
|
2515
2510
|
const sheet$a = jss.createStyleSheet(style$a);
|
|
2516
2511
|
const styleString$a = sheet$a.toString();
|
|
2517
2512
|
function CheckboxFieldView(props) {
|
|
2513
|
+
var _a, _b, _c;
|
|
2518
2514
|
const { states, content, callbacks } = props;
|
|
2519
|
-
const validationErrors = states === null || states === void 0 ? void 0 : states.validationErrors;
|
|
2515
|
+
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2520
2516
|
return (h("div", { class: sheet$a.classes.FieldContainer },
|
|
2521
2517
|
h("style", { type: "text/css" },
|
|
2522
2518
|
vanillaStyle$4,
|
|
@@ -2524,7 +2520,7 @@ function CheckboxFieldView(props) {
|
|
|
2524
2520
|
h("sl-checkbox", Object.assign({ exportparts: "label: input-label", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
|
|
2525
2521
|
e.target.value = e.target.checked;
|
|
2526
2522
|
callbacks.setChecked(e.target.value);
|
|
2527
|
-
} }, (!content.checkboxOptional ? { required: true } : []), (!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName])
|
|
2523
|
+
} }, (!content.checkboxOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName])
|
|
2528
2524
|
? {
|
|
2529
2525
|
class: sheet$a.classes.ErrorStyle,
|
|
2530
2526
|
}
|
|
@@ -2557,28 +2553,32 @@ const style$b = {
|
|
|
2557
2553
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2558
2554
|
},
|
|
2559
2555
|
};
|
|
2560
|
-
const vanillaStyle$5 = `
|
|
2561
|
-
:host {
|
|
2562
|
-
margin: 0 auto;
|
|
2563
|
-
width: 100%;
|
|
2564
|
-
display: block;
|
|
2565
|
-
}
|
|
2566
|
-
sl-select::part(label){
|
|
2567
|
-
font-size: var(--sl-input-label-font-size-small);
|
|
2568
|
-
font-weight: var(--sl-font-weight-semibold);
|
|
2569
|
-
}
|
|
2556
|
+
const vanillaStyle$5 = `
|
|
2557
|
+
:host {
|
|
2558
|
+
margin: 0 auto;
|
|
2559
|
+
width: 100%;
|
|
2560
|
+
display: block;
|
|
2561
|
+
}
|
|
2562
|
+
sl-select::part(label){
|
|
2563
|
+
font-size: var(--sl-input-label-font-size-small);
|
|
2564
|
+
font-weight: var(--sl-font-weight-semibold);
|
|
2565
|
+
}
|
|
2570
2566
|
`;
|
|
2571
2567
|
jss.setup(create());
|
|
2572
2568
|
const sheet$b = jss.createStyleSheet(style$b);
|
|
2573
2569
|
const styleString$b = sheet$b.toString();
|
|
2574
2570
|
function DropdownFieldView(props) {
|
|
2571
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
2575
2572
|
const { states, content } = props;
|
|
2576
|
-
const validationErrors = states === null || states === void 0 ? void 0 : states.validationErrors;
|
|
2573
|
+
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2577
2574
|
return (h("div", { class: sheet$b.classes.FieldContainer },
|
|
2578
2575
|
h("style", { type: "text/css" },
|
|
2579
2576
|
vanillaStyle$5,
|
|
2580
2577
|
styleString$b),
|
|
2581
|
-
h("sl-select", Object.assign({ exportparts: "label: input-label", label: content.dropdownLabel, name: `/${content.dropdownName}` }, (!content.dropdownOptional ? { required: true } : []), ((
|
|
2578
|
+
h("sl-select", Object.assign({ exportparts: "label: input-label", label: content.dropdownLabel, name: `/${content.dropdownName}` }, (!content.dropdownOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.dropdownName]) ? {
|
|
2579
|
+
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.dropdownName],
|
|
2580
|
+
}
|
|
2581
|
+
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) ? {
|
|
2582
2582
|
class: sheet$b.classes.ErrorStyle,
|
|
2583
2583
|
}
|
|
2584
2584
|
: [])), content.selectOptions),
|
|
@@ -2594,24 +2594,28 @@ const style$c = {
|
|
|
2594
2594
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2595
2595
|
},
|
|
2596
2596
|
};
|
|
2597
|
-
const vanillaStyle$6 = `
|
|
2598
|
-
:host {
|
|
2599
|
-
margin: 0 auto;
|
|
2600
|
-
width: 100%;
|
|
2601
|
-
display: block;
|
|
2602
|
-
}
|
|
2597
|
+
const vanillaStyle$6 = `
|
|
2598
|
+
:host {
|
|
2599
|
+
margin: 0 auto;
|
|
2600
|
+
width: 100%;
|
|
2601
|
+
display: block;
|
|
2602
|
+
}
|
|
2603
2603
|
`;
|
|
2604
2604
|
jss.setup(create());
|
|
2605
2605
|
const sheet$c = jss.createStyleSheet(style$c);
|
|
2606
2606
|
const styleString$c = sheet$c.toString();
|
|
2607
2607
|
function InputFieldView(props) {
|
|
2608
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
2608
2609
|
const { states, content } = props;
|
|
2609
|
-
const validationErrors = states === null || states === void 0 ? void 0 : states.validationErrors;
|
|
2610
|
+
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2610
2611
|
return (h("div", { class: sheet$c.classes.FieldContainer },
|
|
2611
2612
|
h("style", { type: "text/css" },
|
|
2612
2613
|
vanillaStyle$6,
|
|
2613
2614
|
styleString$c),
|
|
2614
|
-
h("sl-input", Object.assign({ exportparts: "label: input-label", name: `/${content.fieldName}`, type: content.fieldType, label: content.fieldLabel }, (!content.fieldOptional ? { required: true } : []), ((
|
|
2615
|
+
h("sl-input", Object.assign({ exportparts: "label: input-label", name: `/${content.fieldName}`, type: content.fieldType, label: content.fieldLabel }, (!content.fieldOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.fieldName]) ? {
|
|
2616
|
+
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.fieldName],
|
|
2617
|
+
}
|
|
2618
|
+
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]) ? {
|
|
2615
2619
|
class: sheet$c.classes.ErrorStyle,
|
|
2616
2620
|
helpText: intl.formatMessage({
|
|
2617
2621
|
id: `errorMessage-${content.fieldName}`,
|
|
@@ -3708,11 +3712,11 @@ function CardFeedView(props, children) {
|
|
|
3708
3712
|
};
|
|
3709
3713
|
const sheet = createStyleSheet(style);
|
|
3710
3714
|
const styleString = sheet.toString();
|
|
3711
|
-
const vanillaStyle = `
|
|
3712
|
-
:host{
|
|
3713
|
-
display: block;
|
|
3714
|
-
}
|
|
3715
|
-
|
|
3715
|
+
const vanillaStyle = `
|
|
3716
|
+
:host{
|
|
3717
|
+
display: block;
|
|
3718
|
+
}
|
|
3719
|
+
|
|
3716
3720
|
`;
|
|
3717
3721
|
return (h("div", null,
|
|
3718
3722
|
h("style", { type: "text/css" },
|