@saasquatch/mint-components 1.15.0-8 → 1.15.0-81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{GenericTableView-f0e9c531.js → GenericTableView-a9845e80.js} +6 -6
- package/dist/cjs/IndirectTaxDetailsView-b3b7bb6e.js +646 -0
- package/dist/cjs/{ShadowViewAddon-afc40c22.js → ShadowViewAddon-9bf35bfe.js} +1570 -1398
- package/dist/cjs/{copy-text-view-9d4259f4.js → copy-text-view-e5223a96.js} +19 -8
- package/dist/cjs/data-d4339c2e.js +137 -0
- package/dist/cjs/{stencil-hooks.module-3a336b0f.js → dom-context-hooks.module-7fa676ae.js} +18 -18
- package/dist/cjs/{email-registration-view-55b378dc.js → email-registration-view-ace50780.js} +5 -3
- package/dist/cjs/{global-124aec2c.js → global-16279e95.js} +12152 -11932
- package/dist/cjs/{index-a29c60ef.js → index-a43a63b4.js} +4 -0
- package/dist/cjs/{index.module-ee84433d.js → index.module-4f54e412.js} +191 -191
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{luxon-2926d85f.js → luxon-949beaf2.js} +2 -2
- package/dist/cjs/mint-components.cjs.js +5 -5
- package/dist/cjs/{mixins-f7e0377a.js → mixins-4761d472.js} +6 -6
- package/dist/cjs/{mockRewardData-272e22d6.js → mockRewardData-df37c8a3.js} +2 -2
- package/dist/cjs/parseStates-d1effc19.js +16 -0
- package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
- package/dist/cjs/{re-render-b324deab.js → re-render-d516138a.js} +4 -4
- package/dist/cjs/{sqm-banking-info-form_17.cjs.entry.js → sqm-banking-info-form_10.cjs.entry.js} +871 -2415
- package/dist/cjs/{sqm-base-registration-form-view-1b2440c3.js → sqm-base-registration-form-view-8847804c.js} +3 -3
- package/dist/cjs/{sqm-big-stat_41.cjs.entry.js → sqm-big-stat_43.cjs.entry.js} +1141 -301
- package/dist/cjs/{sqm-close-button-view-ea3fa23b.js → sqm-close-button-view-5e85ac51.js} +2 -2
- package/dist/cjs/sqm-close-button.cjs.entry.js +6 -6
- package/dist/cjs/sqm-code-verification.cjs.entry.js +352 -0
- package/dist/cjs/sqm-context-router.cjs.entry.js +11 -11
- package/dist/cjs/sqm-email-verification.cjs.entry.js +152 -28
- package/dist/cjs/sqm-empty_4.cjs.entry.js +57 -63
- package/dist/cjs/sqm-form-message.cjs.entry.js +8 -8
- package/dist/cjs/sqm-google-sign-in.cjs.entry.js +14 -14
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +6 -6
- package/dist/cjs/sqm-header-logo.cjs.entry.js +3 -3
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +9 -9
- package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +84 -0
- package/dist/cjs/sqm-leaderboard-rank-view-6a1e63de.js +10 -0
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-logout-current-user-view-11d57c12.js → sqm-logout-current-user-view-b61c8bdf.js} +1 -1
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +6 -6
- package/dist/cjs/sqm-navigation-sidebar-item-view-ec7a5c53.js +56 -0
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +31 -8
- package/dist/cjs/{sqm-navigation-sidebar-view-17111896.js → sqm-navigation-sidebar-view-de90ef03.js} +18 -8
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +25 -9
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +97 -70
- package/dist/cjs/sqm-password-field.cjs.entry.js +11 -11
- package/dist/cjs/sqm-popup-container.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-portal-container-view-4f15143a.js → sqm-portal-container-view-07e4343f.js} +2 -2
- package/dist/cjs/{sqm-portal-email-verification-view-f5ce25cc.js → sqm-portal-email-verification-view-e2590f1b.js} +4 -4
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +15 -15
- package/dist/cjs/{sqm-portal-forgot-password-view-b986086e.js → sqm-portal-forgot-password-view-0a8d3243.js} +24 -16
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +39 -10
- package/dist/cjs/sqm-portal-google-login.cjs.entry.js +9 -9
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +13 -13
- package/dist/cjs/{sqm-portal-login-view-84e99287.js → sqm-portal-login-view-bb50304c.js} +4 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-profile-view-07d13061.js → sqm-portal-profile-view-5310d41a.js} +4 -4
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +15 -15
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-portal-registration-form-view-4377d849.js → sqm-portal-registration-form-view-5a96c2f5.js} +3 -3
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-portal-reset-password-view-52fc50fe.js → sqm-portal-reset-password-view-25eb2099.js} +3 -3
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +11 -11
- package/dist/cjs/{sqm-portal-verify-email-view-4f837226.js → sqm-portal-verify-email-view-1c4e781f.js} +3 -3
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +12 -12
- package/dist/cjs/{sqm-qr-code-view-3da9ed28.js → sqm-qr-code-view-0c3b2f48.js} +9 -4
- package/dist/cjs/sqm-qr-code.cjs.entry.js +12 -13
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +133 -44
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +4 -4
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +5 -5
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +82 -35
- package/dist/cjs/sqm-route.cjs.entry.js +1 -1
- package/dist/cjs/sqm-scroll.cjs.entry.js +3 -3
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +13753 -12462
- package/dist/cjs/sqm-tab.cjs.entry.js +5 -5
- package/dist/cjs/sqm-tabs.cjs.entry.js +27 -13
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1255 -0
- package/dist/cjs/sqm-text-span-view-7a61ae4c.js +63 -0
- package/dist/cjs/sqm-text-span.cjs.entry.js +7 -7
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +19 -11
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +24 -13
- package/dist/cjs/{useChildElements-1b35d945.js → useChildElements-966c9041.js} +5 -5
- package/dist/cjs/{useInstantAccessRegistration-0537e28e.js → useInstantAccessRegistration-08bcb487.js} +4 -4
- package/dist/cjs/{usePayoutStatus-4b5894ef.js → usePayoutStatus-3b34dab1.js} +13 -10
- package/dist/cjs/{usePortalLogin-63d896d1.js → usePortalLogin-6aa864ef.js} +4 -4
- package/dist/cjs/{usePortalRegistrationForm-f25d89e7.js → usePortalRegistrationForm-75b647fe.js} +6 -6
- package/dist/cjs/{useReferralCodes-82e8797b.js → useReferralCodes-11cdf43b.js} +3 -3
- package/dist/cjs/{useReferralTable-7c3f9600.js → useReferralTable-90d4d6e9.js} +10 -10
- package/dist/cjs/{useRegistrationFormState-7b820f0c.js → useRegistrationFormState-bbee6e7b.js} +6 -6
- package/dist/cjs/{useVerificationEmail-95a82767.js → useVerificationEmail-9dd3997a.js} +6 -6
- package/dist/cjs/{utilities-78f5e169.js → utilities-9a0c5e91.js} +4 -4
- package/dist/cjs/{utils-6847bc06.js → utils-7cbd60cc.js} +5 -0
- package/dist/cjs/utils-d5821f8d.js +105 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/sqm-big-stat/BigStat.stories.js +13 -0
- package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +15 -7
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +169 -4
- package/dist/collection/components/sqm-big-stat/useBigStat.js +127 -8
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +14 -5
- package/dist/collection/components/sqm-brand/sqm-brand.js +12 -4
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +1 -0
- package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +4 -0
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +13 -13
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +169 -1
- package/dist/collection/components/sqm-coupon-code/useCouponCode.js +1 -0
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +14 -6
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +60 -3
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
- package/dist/collection/components/sqm-form-message/FormMessage.stories.js +8 -16
- package/dist/collection/components/sqm-form-message/sqm-form-message.css +50 -11
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +4 -4
- package/dist/collection/components/sqm-hero/Hero.stories.js +11 -0
- package/dist/collection/components/sqm-hero/sqm-hero-view.js +13 -6
- package/dist/collection/components/sqm-hero/sqm-hero.js +30 -5
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +2 -2
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +79 -0
- package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +3 -3
- package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-download-cell.js +2 -2
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +2 -1
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +2 -1
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +2 -1
- package/dist/collection/components/sqm-invoice-table/sqm-invoice-table-view.js +1 -1
- package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +6 -3
- package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +37 -0
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +10 -4
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +202 -61
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank-view.js +2 -2
- package/dist/collection/components/sqm-link-button/sqm-link-button.js +1 -0
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +2 -1
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +28 -3
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +1 -0
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +17 -7
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +83 -5
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +18 -7
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +233 -1
- package/dist/collection/components/sqm-navigation-sidebar-item/useNavigationSidebarItem.js +9 -1
- package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +3 -3
- package/dist/collection/components/sqm-pagination/sqm-pagination.js +43 -2
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -1
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +8 -4
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +1 -1
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -1
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +1 -8
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +6 -6
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +1 -1
- package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +4 -4
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +21 -13
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +103 -3
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +41 -36
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +102 -2
- package/dist/collection/components/sqm-portal-frame/usePortalFrame.js +4 -1
- package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +10 -5
- 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 +1 -1
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +1 -1
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +1 -2
- package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +1 -0
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +5 -3
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +4 -4
- package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +1 -1
- package/dist/collection/components/sqm-radio-card/sqm-radio-card-view.js +2 -2
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +34 -31
- package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +80 -11
- package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +3 -0
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +169 -1
- package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +6 -0
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +46 -46
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +28 -1
- package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +2 -2
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +55 -18
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +62 -7
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +2 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +4 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +6 -3
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +6 -3
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +4 -2
- package/dist/collection/components/sqm-referral-table/mockReferralData.js +1 -1
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +3 -2
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +2 -10
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +19 -19
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +31 -5
- package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +10 -10
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +39 -42
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +44 -3
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +3 -3
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +4 -3
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +5 -4
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +57 -8
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +3 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +3 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +3 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +3 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +5 -3
- package/dist/collection/components/sqm-rewards-table/mockRewardData.js +1 -1
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +3 -2
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -1
- package/dist/collection/components/sqm-share-button/ShareButton.stories.js +3 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +23 -22
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +56 -10
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +6 -5
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +10 -5
- package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +21 -9
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +110 -2
- package/dist/collection/components/sqm-stencilbook/BrandSelector.js +198 -0
- package/dist/collection/components/sqm-stencilbook/Themes.js +325 -33
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +81 -99
- package/dist/collection/components/sqm-table-row/sqm-table-row.js +2 -2
- package/dist/collection/components/sqm-tabs/Tabs.stories.js +7 -0
- package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +16 -2
- package/dist/collection/components/sqm-tabs/sqm-tabs.js +28 -2
- package/dist/collection/components/sqm-task-card/DetailsView.js +7 -1
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +3 -2
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +18 -20
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +4 -8
- package/dist/collection/components/sqm-task-card/useTaskCard.js +1 -1
- package/dist/collection/components/sqm-text/Text.stories.js +12 -0
- package/dist/collection/components/sqm-text/sqm-text.js +100 -49
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +44 -43
- package/dist/collection/components/sqm-text-span/sqm-text-span.js +51 -2
- package/dist/collection/components/sqm-timeline/Timeline.stories.js +8 -1
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +45 -45
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +52 -0
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +1 -1
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +12 -2
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +2 -2
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +138 -14
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +39 -5
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +41 -8
- package/dist/collection/components/tax-and-cash/BankingForm.stories.js +12 -0
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +30 -9
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +54 -58
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +108 -5
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +8 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +3 -3
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +59 -61
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +82 -4
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +6 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +55 -62
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +24 -27
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +26 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +18 -48
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +8 -5
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/ErrorView.js +3 -27
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +284 -30
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +96 -92
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +19 -4
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +3 -3
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/DocusignExpiredView.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +166 -52
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +10 -10
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +3 -3
- package/dist/collection/components/views/copy-text-view.js +17 -6
- package/dist/collection/components/views/email-registration-view.js +3 -1
- package/dist/collection/global/global.js +27 -12
- package/dist/collection/global/mixins.js +6 -6
- package/dist/collection/global/styles.js +307 -134
- package/dist/collection/global/styles.ts +396 -135
- package/dist/collection/insertfont.js +18 -0
- package/dist/collection/stories/PortalTemplates.stories.js +22 -30
- package/dist/collection/tables/GenericTableView.js +4 -4
- package/dist/collection/utils/parseStates.js +12 -0
- package/dist/collection/utils/utils.js +4 -0
- package/dist/esm/{GenericTableView-e7addb2b.js → GenericTableView-e43d310f.js} +6 -6
- package/dist/esm/IndirectTaxDetailsView-451cf5e2.js +639 -0
- package/dist/esm/{ShadowViewAddon-bdedf635.js → ShadowViewAddon-3c2957fe.js} +1569 -1396
- package/dist/esm/{copy-text-view-ca98ab38.js → copy-text-view-8d1713d7.js} +19 -8
- package/dist/esm/data-ee3ae298.js +121 -0
- package/dist/esm/{stencil-hooks.module-4bc38af4.js → dom-context-hooks.module-63370afd.js} +13 -13
- package/dist/esm/{email-registration-view-a7818cf2.js → email-registration-view-1f587f8b.js} +5 -3
- package/dist/esm/{global-6dc825bc.js → global-2f3b2adb.js} +11849 -11630
- package/dist/esm/{index-91e7729f.js → index-b3a06de8.js} +4 -0
- package/dist/esm/{index.module-89a79f66.js → index.module-38dad6c9.js} +153 -153
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{luxon-8d51c92b.js → luxon-bbf75a9d.js} +1 -1
- package/dist/esm/mint-components.js +5 -5
- package/dist/esm/{mixins-83f90fa1.js → mixins-f750863a.js} +6 -6
- package/dist/esm/{mockRewardData-8bd1b356.js → mockRewardData-96a2d26d.js} +2 -2
- package/dist/esm/parseStates-ed75e224.js +14 -0
- package/dist/esm/raisins-plop-target.entry.js +1 -1
- package/dist/esm/{re-render-cc945f38.js → re-render-9c90767d.js} +2 -2
- package/dist/esm/{sqm-banking-info-form_17.entry.js → sqm-banking-info-form_10.entry.js} +720 -2257
- package/dist/esm/{sqm-base-registration-form-view-31f1cb87.js → sqm-base-registration-form-view-193f1721.js} +3 -3
- package/dist/esm/{sqm-big-stat_41.entry.js → sqm-big-stat_43.entry.js} +1053 -215
- package/dist/esm/{sqm-close-button-view-f9819751.js → sqm-close-button-view-2fa57229.js} +2 -2
- package/dist/esm/sqm-close-button.entry.js +5 -5
- package/dist/esm/sqm-code-verification.entry.js +348 -0
- package/dist/esm/sqm-context-router.entry.js +4 -4
- package/dist/esm/sqm-email-verification.entry.js +145 -21
- package/dist/esm/sqm-empty_4.entry.js +54 -60
- package/dist/esm/sqm-form-message.entry.js +7 -7
- package/dist/esm/sqm-google-sign-in.entry.js +3 -3
- package/dist/esm/sqm-graphql-client-provider.entry.js +3 -3
- package/dist/esm/sqm-header-logo.entry.js +2 -2
- package/dist/esm/sqm-instant-access-registration.entry.js +8 -8
- package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +76 -0
- package/dist/esm/sqm-leaderboard-rank-view-18baae5b.js +8 -0
- package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
- package/dist/esm/{sqm-logout-current-user-view-8ef8180f.js → sqm-logout-current-user-view-f21e54e3.js} +1 -1
- package/dist/esm/sqm-logout-current-user.entry.js +5 -5
- package/dist/esm/sqm-navigation-sidebar-item-view-797601b0.js +54 -0
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +30 -7
- package/dist/esm/{sqm-navigation-sidebar-view-9d802b78.js → sqm-navigation-sidebar-view-0a2ec560.js} +18 -8
- package/dist/esm/sqm-navigation-sidebar.entry.js +22 -6
- package/dist/esm/sqm-pagination_3.entry.js +91 -64
- package/dist/esm/sqm-password-field.entry.js +6 -6
- package/dist/esm/sqm-popup-container.entry.js +4 -4
- package/dist/esm/{sqm-portal-container-view-1683ae32.js → sqm-portal-container-view-176e92e3.js} +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-d96d6c43.js → sqm-portal-email-verification-view-e68275d7.js} +4 -4
- package/dist/esm/sqm-portal-email-verification.entry.js +7 -7
- package/dist/esm/{sqm-portal-forgot-password-view-50444a7c.js → sqm-portal-forgot-password-view-0e795cdd.js} +24 -16
- package/dist/esm/sqm-portal-forgot-password.entry.js +36 -7
- package/dist/esm/sqm-portal-google-login.entry.js +8 -8
- package/dist/esm/sqm-portal-google-registration-form.entry.js +9 -9
- package/dist/esm/{sqm-portal-login-view-37c85d04.js → sqm-portal-login-view-7670cd86.js} +4 -4
- package/dist/esm/sqm-portal-logout.entry.js +3 -3
- package/dist/esm/{sqm-portal-profile-view-4ce1c7c3.js → sqm-portal-profile-view-fe781f47.js} +4 -4
- package/dist/esm/sqm-portal-profile.entry.js +8 -8
- package/dist/esm/sqm-portal-protected-route.entry.js +3 -3
- package/dist/esm/{sqm-portal-registration-form-view-21d57492.js → sqm-portal-registration-form-view-8bdc3804.js} +3 -3
- package/dist/esm/sqm-portal-registration-form.entry.js +8 -8
- package/dist/esm/{sqm-portal-reset-password-view-b000ffc5.js → sqm-portal-reset-password-view-abef7286.js} +3 -3
- package/dist/esm/sqm-portal-reset-password.entry.js +7 -7
- package/dist/esm/{sqm-portal-verify-email-view-2983ba9b.js → sqm-portal-verify-email-view-33805220.js} +3 -3
- package/dist/esm/sqm-portal-verify-email.entry.js +7 -7
- package/dist/esm/{sqm-qr-code-view-10b8b4cb.js → sqm-qr-code-view-97124a66.js} +8 -3
- package/dist/esm/sqm-qr-code.entry.js +6 -7
- package/dist/esm/sqm-referral-table_11.entry.js +122 -33
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +3 -3
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
- package/dist/esm/sqm-rewards-table_9.entry.js +70 -23
- package/dist/esm/sqm-route.entry.js +1 -1
- package/dist/esm/sqm-scroll.entry.js +2 -2
- package/dist/esm/sqm-stencilbook.entry.js +13578 -12287
- package/dist/esm/sqm-tab.entry.js +4 -4
- package/dist/esm/sqm-tabs.entry.js +24 -10
- package/dist/esm/sqm-tax-and-cash.entry.js +1251 -0
- package/dist/esm/sqm-text-span-view-4c17b8c9.js +61 -0
- package/dist/esm/sqm-text-span.entry.js +6 -6
- package/dist/esm/sqm-widget-verification-controller.entry.js +14 -6
- package/dist/esm/sqm-widget-verification.entry.js +21 -10
- package/dist/esm/{useChildElements-7945ae56.js → useChildElements-4e70ac0e.js} +2 -2
- package/dist/esm/{useInstantAccessRegistration-dc4ad9f2.js → useInstantAccessRegistration-0f04459e.js} +3 -3
- package/dist/esm/{usePayoutStatus-58aa56b4.js → usePayoutStatus-7eeec61b.js} +10 -7
- package/dist/esm/{usePortalLogin-ef647a50.js → usePortalLogin-d0720c81.js} +3 -3
- package/dist/esm/{usePortalRegistrationForm-4b35a357.js → usePortalRegistrationForm-afc0171e.js} +3 -3
- package/dist/esm/{useReferralCodes-8f75921a.js → useReferralCodes-311e6d72.js} +2 -2
- package/dist/esm/{useReferralTable-b3876ed6.js → useReferralTable-65a01a6a.js} +5 -5
- package/dist/esm/{useRegistrationFormState-d6f33135.js → useRegistrationFormState-18c2cea7.js} +2 -2
- package/dist/esm/{useVerificationEmail-edc318cb.js → useVerificationEmail-f9413de9.js} +2 -2
- package/dist/esm/{utilities-5b0ca040.js → utilities-ad9c2893.js} +2 -2
- package/dist/esm/{utils-334c1e34.js → utils-03188de2.js} +5 -1
- package/dist/esm/utils-c416c7e4.js +97 -0
- package/dist/esm-es5/GenericTableView-e43d310f.js +1 -0
- package/dist/esm-es5/IndirectTaxDetailsView-451cf5e2.js +1 -0
- package/dist/esm-es5/ShadowViewAddon-3c2957fe.js +1 -0
- package/dist/esm-es5/copy-text-view-8d1713d7.js +1 -0
- package/dist/esm-es5/data-ee3ae298.js +1 -0
- package/dist/esm-es5/dom-context-hooks.module-63370afd.js +53 -0
- package/dist/esm-es5/email-registration-view-1f587f8b.js +1 -0
- package/dist/esm-es5/{global-6dc825bc.js → global-2f3b2adb.js} +5 -5
- package/dist/esm-es5/{index-91e7729f.js → index-b3a06de8.js} +1 -1
- package/dist/esm-es5/index.module-38dad6c9.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/luxon-bbf75a9d.js +1 -0
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/mixins-f750863a.js +1 -0
- package/dist/esm-es5/{mockRewardData-8bd1b356.js → mockRewardData-96a2d26d.js} +1 -1
- package/dist/esm-es5/parseStates-ed75e224.js +1 -0
- package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
- package/dist/esm-es5/re-render-9c90767d.js +1 -0
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -0
- package/dist/esm-es5/{sqm-base-registration-form-view-31f1cb87.js → sqm-base-registration-form-view-193f1721.js} +1 -1
- package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -0
- package/dist/esm-es5/{sqm-close-button-view-f9819751.js → sqm-close-button-view-2fa57229.js} +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-google-sign-in.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 -1
- package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank-view-18baae5b.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/{sqm-logout-current-user-view-8ef8180f.js → sqm-logout-current-user-view-f21e54e3.js} +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-797601b0.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-0a2ec560.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.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-1683ae32.js → sqm-portal-container-view-176e92e3.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-d96d6c43.js → sqm-portal-email-verification-view-e68275d7.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-0e795cdd.js +1 -0
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-login-view-7670cd86.js +1 -0
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-4ce1c7c3.js → sqm-portal-profile-view-fe781f47.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-view-21d57492.js → sqm-portal-registration-form-view-8bdc3804.js} +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-b000ffc5.js → sqm-portal-reset-password-view-abef7286.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-2983ba9b.js → sqm-portal-verify-email-view-33805220.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-qr-code-view-97124a66.js +1 -0
- package/dist/esm-es5/sqm-qr-code.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-route.entry.js +1 -1
- package/dist/esm-es5/sqm-scroll.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-tax-and-cash.entry.js +1 -0
- package/dist/esm-es5/sqm-text-span-view-4c17b8c9.js +1 -0
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/useChildElements-4e70ac0e.js +1 -0
- package/dist/esm-es5/useInstantAccessRegistration-0f04459e.js +1 -0
- package/dist/esm-es5/{usePayoutStatus-58aa56b4.js → usePayoutStatus-7eeec61b.js} +2 -2
- package/dist/esm-es5/usePortalLogin-d0720c81.js +1 -0
- package/dist/esm-es5/usePortalRegistrationForm-afc0171e.js +1 -0
- package/dist/esm-es5/useReferralCodes-311e6d72.js +1 -0
- package/dist/esm-es5/useReferralTable-65a01a6a.js +1 -0
- package/dist/esm-es5/useRegistrationFormState-18c2cea7.js +1 -0
- package/dist/esm-es5/useVerificationEmail-f9413de9.js +1 -0
- package/dist/esm-es5/utilities-ad9c2893.js +1 -0
- package/dist/esm-es5/utils-03188de2.js +1 -0
- package/dist/esm-es5/utils-c416c7e4.js +1 -0
- package/dist/mint-components/global/styles.ts +396 -135
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-000c91b1.js +1 -0
- package/dist/mint-components/{p-9b6a0152.system.entry.js → p-002e6205.system.entry.js} +1 -1
- package/dist/mint-components/{p-266a8b4d.js → p-00791abc.js} +1 -1
- package/dist/mint-components/{p-e145e4f8.js → p-07dc6d68.js} +1 -1
- package/dist/mint-components/{p-5bedb58c.js → p-08700497.js} +1 -1
- package/dist/mint-components/p-0935f9b7.system.js +1 -0
- package/dist/mint-components/{p-284e4ed5.entry.js → p-0b0f49ad.entry.js} +1 -1
- package/dist/mint-components/p-0bb21f5b.system.entry.js +1 -0
- package/dist/mint-components/{p-164a9103.system.entry.js → p-0cba75e6.system.entry.js} +1 -1
- package/dist/mint-components/{p-36ffebd8.system.entry.js → p-0d22c0e5.system.entry.js} +1 -1
- package/dist/mint-components/p-0e532b53.entry.js +1 -0
- package/dist/mint-components/{p-480e08e9.js → p-0e59a91e.js} +2 -2
- package/dist/mint-components/p-0ea61502.system.js +1 -0
- package/dist/mint-components/p-100c878b.system.entry.js +1 -0
- package/dist/mint-components/p-115dfc03.system.js +1 -0
- package/dist/mint-components/p-1337f47c.entry.js +1 -0
- package/dist/mint-components/p-1363c4ab.system.js +1 -0
- package/dist/mint-components/p-13f3a647.js +1 -0
- package/dist/mint-components/p-14128c84.system.entry.js +1 -0
- package/dist/mint-components/{p-7c2b9fe4.system.js → p-15012f59.system.js} +1 -1
- package/dist/mint-components/p-153a122d.system.js +1 -0
- package/dist/mint-components/p-15bfd7e2.system.js +1 -0
- package/dist/mint-components/p-1a278658.entry.js +1 -0
- package/dist/mint-components/{p-dbc0e4f8.system.js → p-1c1f4ce7.system.js} +1 -1
- package/dist/mint-components/p-1cd0e1e9.system.js +1 -0
- package/dist/mint-components/p-204861a6.js +1 -0
- package/dist/mint-components/p-209ea185.js +1 -0
- package/dist/mint-components/p-21fab6ef.system.js +1 -0
- package/dist/mint-components/{p-3af1ec4c.entry.js → p-22c11f0e.entry.js} +1 -1
- package/dist/mint-components/{p-f4a8ee29.system.entry.js → p-22d20816.system.entry.js} +1 -1
- package/dist/mint-components/p-2403c6e1.system.js +1 -0
- package/dist/mint-components/p-240bec23.js +1 -0
- package/dist/mint-components/{p-4b6f2eca.system.entry.js → p-258f4e5e.system.entry.js} +1 -1
- package/dist/mint-components/p-2a8e2f28.system.js +1 -0
- package/dist/mint-components/p-2c310c7d.entry.js +1 -0
- package/dist/mint-components/p-3055141d.entry.js +11 -0
- package/dist/mint-components/p-33703509.system.entry.js +1 -0
- package/dist/mint-components/p-35a2332d.js +448 -0
- package/dist/mint-components/p-36b1414b.system.js +1 -0
- package/dist/mint-components/{p-c0f19490.js → p-3787a4d6.js} +1 -1
- package/dist/mint-components/p-3cb249c3.js +1 -0
- package/dist/mint-components/p-3d1b91a1.system.entry.js +1 -0
- package/dist/mint-components/p-3d99fa43.entry.js +1 -0
- package/dist/mint-components/{p-13ed8586.system.js → p-3dc34570.system.js} +1 -1
- package/dist/mint-components/{p-20245645.js → p-3eba9036.js} +1 -1
- package/dist/mint-components/p-404daf1c.entry.js +144 -0
- package/dist/mint-components/p-40c01a5a.system.js +1 -0
- package/dist/mint-components/{p-4b6dc0e5.entry.js → p-4204a6e3.entry.js} +1 -1
- package/dist/mint-components/{p-f4a72903.system.entry.js → p-4271f436.system.entry.js} +1 -1
- package/dist/mint-components/{p-6a8d9def.system.entry.js → p-42b62299.system.entry.js} +1 -1
- package/dist/mint-components/p-42da8239.system.js +1 -0
- package/dist/mint-components/{p-726a9924.js → p-460155de.js} +1 -1
- package/dist/mint-components/{p-301ddcaa.system.entry.js → p-485e2d9f.system.entry.js} +1 -1
- package/dist/mint-components/p-49b20dae.js +1 -0
- package/dist/mint-components/p-49e92a7c.js +1233 -0
- package/dist/mint-components/{p-6d2f5a1d.js → p-4d19270b.js} +2 -2
- package/dist/mint-components/p-4d741ccd.js +1 -0
- package/dist/mint-components/p-4eee6c40.entry.js +93 -0
- package/dist/mint-components/p-4f5329a2.system.js +53 -0
- package/dist/mint-components/{p-cf8677ea.js → p-577a4c97.js} +1 -1
- package/dist/mint-components/{p-59274a91.system.js → p-578a27c8.system.js} +1 -1
- package/dist/mint-components/p-5800e049.entry.js +1 -0
- package/dist/mint-components/p-587115cb.system.entry.js +1 -0
- package/dist/mint-components/p-59b028db.system.js +1 -0
- package/dist/mint-components/p-5ccee28f.system.entry.js +1 -0
- package/dist/mint-components/{p-e8ffcc68.entry.js → p-5e0af707.entry.js} +2 -2
- package/dist/mint-components/{p-4e526a94.js → p-5ed49bf2.js} +1 -1
- package/dist/mint-components/p-5fca2bd3.system.entry.js +1 -0
- package/dist/mint-components/p-5ff2da11.js +1 -0
- package/dist/mint-components/p-621575fa.system.entry.js +1 -0
- package/dist/mint-components/p-63e29387.js +42 -0
- package/dist/mint-components/{p-ad985d37.system.entry.js → p-64457acd.system.entry.js} +1 -1
- package/dist/mint-components/{p-71d7c2a0.system.js → p-64997b59.system.js} +1 -1
- package/dist/mint-components/p-64d7775b.entry.js +9 -0
- package/dist/mint-components/{p-b5fb3826.system.js → p-6578ea31.system.js} +1 -1
- package/dist/mint-components/p-672d144e.entry.js +1 -0
- package/dist/mint-components/p-67ad2252.system.js +1 -0
- package/dist/mint-components/{p-dc52c36a.js → p-68043f30.js} +1 -1
- package/dist/mint-components/p-692bacf3.js +1 -0
- package/dist/mint-components/{p-9ec99ced.js → p-6951663b.js} +1 -1
- package/dist/mint-components/p-69d64372.system.entry.js +1 -0
- package/dist/mint-components/p-6ad674c2.js +103 -0
- package/dist/mint-components/p-6b076bae.system.entry.js +1 -0
- package/dist/mint-components/p-6e069052.entry.js +1 -0
- package/dist/mint-components/{p-b7d1469d.system.entry.js → p-7059ee40.system.entry.js} +1 -1
- package/dist/mint-components/{p-2ae0e06a.entry.js → p-711bc624.entry.js} +1 -1
- package/dist/mint-components/p-71271fbd.system.js +1 -0
- package/dist/mint-components/{p-6d9e52c7.system.js → p-7159c51c.system.js} +1 -1
- package/dist/mint-components/p-7752408c.js +1 -0
- package/dist/mint-components/p-7970e73a.js +1 -0
- package/dist/mint-components/{p-fa37513e.system.entry.js → p-7af4fba0.system.entry.js} +1 -1
- package/dist/mint-components/p-7b8d29bb.entry.js +1 -0
- package/dist/mint-components/{p-527216de.system.js → p-82505f6e.system.js} +1 -1
- package/dist/mint-components/{p-95ae4ab9.system.js → p-82560b78.system.js} +1 -1
- package/dist/mint-components/{p-3f7b81b8.js → p-862845d7.js} +2 -2
- package/dist/mint-components/p-8a6494c7.system.js +1 -0
- package/dist/mint-components/p-8bcdb9a4.entry.js +13 -0
- package/dist/mint-components/p-8caef004.js +1 -0
- package/dist/mint-components/{p-aaff68dc.entry.js → p-8dc1cd0f.entry.js} +1 -1
- package/dist/mint-components/{p-8413ade9.system.js → p-8e28333b.system.js} +1 -1
- package/dist/mint-components/p-8e2bead4.js +1 -0
- package/dist/mint-components/p-9049b387.entry.js +1 -0
- package/dist/mint-components/{p-2d52e2d7.system.js → p-91014439.system.js} +1 -1
- package/dist/mint-components/{p-18425f38.system.entry.js → p-910f56ca.system.entry.js} +1 -1
- package/dist/mint-components/p-9374b5bb.system.entry.js +1 -0
- package/dist/mint-components/{p-ccf8c9aa.entry.js → p-94f9fbf7.entry.js} +1 -1
- package/dist/mint-components/{p-a9f4ddb1.js → p-9580aac3.js} +1 -1
- package/dist/mint-components/{p-87c21535.entry.js → p-9aadc253.entry.js} +1 -1
- package/dist/mint-components/{p-619c2aa3.entry.js → p-9c2d515d.entry.js} +2 -2
- package/dist/mint-components/p-9e00773c.entry.js +258 -0
- package/dist/mint-components/p-9e297104.entry.js +1 -0
- package/dist/mint-components/p-9f82e69d.entry.js +1 -0
- package/dist/mint-components/{p-5488fdd9.system.js → p-9fb8b33a.system.js} +1 -1
- package/dist/mint-components/{p-8175e85f.system.js → p-a148663a.system.js} +1 -1
- package/dist/mint-components/{p-ac9f4085.system.entry.js → p-a2533860.system.entry.js} +1 -1
- package/dist/mint-components/{p-35b475bf.js → p-a45680fe.js} +1 -1
- package/dist/mint-components/p-a5c9ce6c.entry.js +1 -0
- package/dist/mint-components/{p-127e66c2.system.js → p-a6f4fb03.system.js} +1 -1
- package/dist/mint-components/{p-faba3198.entry.js → p-a7ee19dc.entry.js} +1 -1
- package/dist/mint-components/p-abd33116.system.entry.js +1 -0
- package/dist/mint-components/{p-abefb7cc.js → p-ac11e10a.js} +1 -1
- package/dist/mint-components/{p-8362cb4c.system.entry.js → p-ac2fdad8.system.entry.js} +1 -1
- package/dist/mint-components/p-b065215a.entry.js +1 -0
- package/dist/mint-components/{p-d6831af5.js → p-b22b7891.js} +1 -1
- package/dist/mint-components/{p-a37541ae.system.entry.js → p-b3112c88.system.entry.js} +1 -1
- package/dist/mint-components/{p-345fd28e.system.entry.js → p-b3da317b.system.entry.js} +1 -1
- package/dist/mint-components/{p-571e1427.system.js → p-b6911812.system.js} +1 -1
- package/dist/mint-components/p-b710c7e0.js +1 -0
- package/dist/mint-components/p-b86f944c.entry.js +25 -0
- package/dist/mint-components/p-b8fed018.system.js +1 -0
- package/dist/mint-components/{p-1a6b7d2a.entry.js → p-b9bccc55.entry.js} +1 -1
- package/dist/mint-components/p-ba16858e.system.entry.js +1 -0
- package/dist/mint-components/p-bad50dc1.entry.js +1 -0
- package/dist/mint-components/{p-a81b507f.entry.js → p-bb627d95.entry.js} +2 -2
- package/dist/mint-components/{p-44a82cf3.system.js → p-bcb48c32.system.js} +22 -22
- package/dist/mint-components/p-bd288a80.system.js +1 -0
- package/dist/mint-components/p-be88596c.system.js +1 -0
- package/dist/mint-components/p-bfc16195.system.entry.js +1 -0
- package/dist/mint-components/{p-44891949.entry.js → p-c3884e55.entry.js} +1 -1
- package/dist/mint-components/{p-96431b4f.system.entry.js → p-c3dce602.system.entry.js} +1 -1
- package/dist/mint-components/p-c3fe8514.system.entry.js +1 -0
- package/dist/mint-components/p-c4886223.entry.js +1 -0
- package/dist/mint-components/p-c7965639.entry.js +1 -0
- package/dist/mint-components/p-c79bb1c6.entry.js +16 -0
- package/dist/mint-components/p-c7c11325.js +1 -0
- package/dist/mint-components/p-c9252c59.system.entry.js +1 -0
- package/dist/mint-components/p-cab1f502.js +1 -0
- package/dist/mint-components/{p-a71b9154.system.js → p-d399162b.system.js} +1 -1
- package/dist/mint-components/{p-0559d880.entry.js → p-d5f1df29.entry.js} +1 -1
- package/dist/mint-components/p-d785a297.system.entry.js +1 -0
- package/dist/mint-components/p-d821418e.system.js +1 -0
- package/dist/mint-components/p-d8c5b80a.system.js +1 -0
- package/dist/mint-components/{p-d3e5704c.entry.js → p-da34d4f7.entry.js} +1 -1
- package/dist/mint-components/p-da3ffd4e.system.entry.js +1 -0
- package/dist/mint-components/{p-605c2904.system.entry.js → p-da6fe95f.system.entry.js} +1 -1
- package/dist/mint-components/{p-c2fdd608.system.entry.js → p-dbe29e53.system.entry.js} +1 -1
- package/dist/mint-components/{p-69ac09d4.js → p-ddf3c05e.js} +1 -1
- package/dist/mint-components/p-e1a5f64a.entry.js +1 -0
- package/dist/mint-components/{p-da7708a7.entry.js → p-e27ff213.entry.js} +1 -1
- package/dist/mint-components/p-e539fed3.entry.js +1 -0
- package/dist/mint-components/p-e57d61af.system.js +1 -0
- package/dist/mint-components/{p-9209a016.system.entry.js → p-e8dc94cc.system.entry.js} +1 -1
- package/dist/mint-components/p-eaeddfe2.system.js +1 -0
- package/dist/mint-components/{p-e21a1cb8.system.entry.js → p-ebb487d0.system.entry.js} +1 -1
- package/dist/mint-components/{p-7dabdca6.system.entry.js → p-eea87fdc.system.entry.js} +1 -1
- package/dist/mint-components/p-f0e0d0b9.system.entry.js +1 -0
- package/dist/mint-components/p-f0ebccea.system.entry.js +1 -0
- package/dist/mint-components/p-f1dc581f.js +1 -0
- package/dist/mint-components/{p-05f29f64.js → p-f307b716.js} +1 -1
- package/dist/mint-components/p-f6665d99.system.entry.js +1 -0
- package/dist/mint-components/p-f6762bb5.entry.js +13 -0
- package/dist/mint-components/p-f6baa0c9.system.js +1 -0
- package/dist/mint-components/p-f9c7248e.js +1 -0
- package/dist/mint-components/{p-cc7af682.system.js → p-fa6fba34.system.js} +2 -2
- package/dist/mint-components/{p-2b462e4f.system.entry.js → p-fb2976fc.system.entry.js} +1 -1
- package/dist/mint-components/{p-4e451f75.js → p-fb5be0c5.js} +1 -1
- package/dist/mint-components/p-fb77f662.entry.js +1 -0
- package/dist/types/components/sqm-big-stat/BigStat.stories.d.ts +2 -0
- package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +5 -0
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +45 -1
- package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +1 -0
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code-view.d.ts +2 -0
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +42 -0
- package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +1 -0
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout-view.d.ts +4 -1
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +13 -0
- package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +0 -1
- package/dist/types/components/sqm-hero/Hero.stories.d.ts +1 -0
- package/dist/types/components/sqm-hero/sqm-hero-view.d.ts +1 -0
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +6 -2
- package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +1 -0
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +19 -0
- package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +1 -1
- package/dist/types/components/sqm-invoice-table/columns/InvoiceTableColumn.d.ts +1 -0
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.d.ts +1 -0
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +1 -0
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.d.ts +1 -0
- package/dist/types/components/sqm-invoice-table/mockInvoiceData.d.ts +1 -0
- package/dist/types/components/sqm-invoice-table/sqm-invoice-table.d.ts +3 -0
- package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +1 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +6 -1
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +53 -17
- package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +6 -0
- package/dist/types/components/sqm-link-button/sqm-link-button.d.ts +1 -0
- package/dist/types/components/sqm-logout-current-user/sqm-logout-current-user.d.ts +1 -0
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.d.ts +1 -0
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +14 -0
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.d.ts +8 -0
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +57 -0
- package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +1 -0
- package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +9 -2
- package/dist/types/components/sqm-popup-container/usePopupContainer.d.ts +2 -2
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password-view.d.ts +2 -0
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +1 -1
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +5 -1
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +15 -0
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame-view.d.ts +3 -0
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +19 -0
- package/dist/types/components/sqm-portal-frame/usePortalFrame.d.ts +2 -1
- package/dist/types/components/sqm-portal-login/PortalLogin.stories.d.ts +1 -0
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +1 -1
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +2 -1
- package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +5 -2
- package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +24 -3
- package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +1 -0
- package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +42 -0
- package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +1 -0
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +1 -0
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +6 -0
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-status-cell.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +2 -1
- package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +1 -1
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +457 -437
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +7 -0
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +2 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +2 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +2 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +2 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +2 -1
- package/dist/types/components/sqm-rewards-table/mockRewardData.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/mockTaxData.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +1 -1
- package/dist/types/components/sqm-share-button/ShareButton.stories.d.ts +1 -1
- package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +2 -1
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +18 -6
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +3 -3
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +5 -3
- package/dist/types/components/sqm-stat-container/sqm-stat-container-view.d.ts +3 -0
- package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +23 -0
- package/dist/types/components/sqm-stencilbook/BrandSelector.d.ts +9 -0
- package/dist/types/components/sqm-stencilbook/Themes.d.ts +6 -6
- package/dist/types/components/sqm-tabs/Tabs.stories.d.ts +1 -0
- package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +1 -0
- package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +8 -0
- package/dist/types/components/sqm-task-card/DetailsView.d.ts +6 -0
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +1 -1
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +1 -5
- package/dist/types/components/sqm-task-card/useTaskCard.d.ts +1 -1
- package/dist/types/components/sqm-text/Text.stories.d.ts +6 -0
- package/dist/types/components/sqm-text/sqm-text.d.ts +12 -0
- package/dist/types/components/sqm-text-span/sqm-text-span-view.d.ts +4 -2
- package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +13 -1
- package/dist/types/components/sqm-timeline/Timeline.stories.d.ts +1 -0
- package/dist/types/components/sqm-timeline/sqm-timeline-entry-view.d.ts +2 -0
- package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +14 -0
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +1 -1
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +5 -2
- package/dist/types/components/tax-and-cash/BankingForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +6 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +16 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +7 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +12 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +5 -2
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +46 -4
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
- package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
- package/dist/types/components.d.ts +1090 -100
- package/dist/types/global/android.d.ts +7 -0
- package/dist/types/global/demo.d.ts +2 -0
- package/dist/types/global/global.d.ts +2 -2
- package/dist/types/global/mixins.d.ts +12 -12
- package/dist/types/global/styles.d.ts +10 -2
- package/dist/types/insertfont.d.ts +1 -0
- package/dist/types/saasquatch.d.ts +142 -0
- package/dist/types/stories/features.d.ts +4 -0
- package/dist/types/stories/templates.d.ts +4 -0
- package/dist/types/utils/parseStates.d.ts +1 -0
- package/dist/types/utils/utils.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 +3 -2
- package/dist/cjs/ErrorView-b2fcf954.js +0 -35
- package/dist/cjs/sqm-asset-card-view-21ddf04f.js +0 -51
- package/dist/cjs/sqm-asset-card.cjs.entry.js +0 -45
- package/dist/cjs/sqm-invoice-table-view-f369b0a6.js +0 -2038
- package/dist/cjs/sqm-leaderboard-rank-view-d39a55d8.js +0 -10
- package/dist/cjs/sqm-navigation-sidebar-item-view-6f35d2ee.js +0 -45
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +0 -178
- package/dist/cjs/sqm-text-span-view-56e48a78.js +0 -62
- package/dist/collection/components/sqm-asset-card/AssetCard.stories.js +0 -29
- package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +0 -46
- package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +0 -107
- package/dist/collection/components/sqm-asset-card/useAssetCard.js +0 -9
- package/dist/esm/ErrorView-48e2b969.js +0 -33
- package/dist/esm/sqm-asset-card-view-fe5db3c0.js +0 -49
- package/dist/esm/sqm-asset-card.entry.js +0 -41
- package/dist/esm/sqm-invoice-table-view-1bd8afaa.js +0 -2022
- package/dist/esm/sqm-leaderboard-rank-view-753c8d4a.js +0 -8
- package/dist/esm/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -43
- package/dist/esm/sqm-referred-registration.entry.js +0 -174
- package/dist/esm/sqm-text-span-view-c577cc60.js +0 -60
- package/dist/esm-es5/ErrorView-48e2b969.js +0 -1
- package/dist/esm-es5/GenericTableView-e7addb2b.js +0 -1
- package/dist/esm-es5/ShadowViewAddon-bdedf635.js +0 -1
- package/dist/esm-es5/copy-text-view-ca98ab38.js +0 -1
- package/dist/esm-es5/email-registration-view-a7818cf2.js +0 -1
- package/dist/esm-es5/index.module-89a79f66.js +0 -1
- package/dist/esm-es5/luxon-8d51c92b.js +0 -1
- package/dist/esm-es5/mixins-83f90fa1.js +0 -1
- package/dist/esm-es5/re-render-cc945f38.js +0 -1
- package/dist/esm-es5/sqm-asset-card-view-fe5db3c0.js +0 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +0 -1
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +0 -1
- package/dist/esm-es5/sqm-big-stat_41.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-1bd8afaa.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-753c8d4a.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-9d802b78.js +0 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-50444a7c.js +0 -1
- package/dist/esm-es5/sqm-portal-login-view-37c85d04.js +0 -1
- package/dist/esm-es5/sqm-qr-code-view-10b8b4cb.js +0 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +0 -1
- package/dist/esm-es5/sqm-text-span-view-c577cc60.js +0 -1
- package/dist/esm-es5/stencil-hooks.module-4bc38af4.js +0 -53
- package/dist/esm-es5/useChildElements-7945ae56.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-dc4ad9f2.js +0 -1
- package/dist/esm-es5/usePortalLogin-ef647a50.js +0 -1
- package/dist/esm-es5/usePortalRegistrationForm-4b35a357.js +0 -1
- package/dist/esm-es5/useReferralCodes-8f75921a.js +0 -1
- package/dist/esm-es5/useReferralTable-b3876ed6.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-d6f33135.js +0 -1
- package/dist/esm-es5/useVerificationEmail-edc318cb.js +0 -1
- package/dist/esm-es5/utilities-5b0ca040.js +0 -1
- package/dist/esm-es5/utils-334c1e34.js +0 -1
- package/dist/mint-components/p-00ed4c2e.entry.js +0 -1
- package/dist/mint-components/p-04a6e457.entry.js +0 -1
- package/dist/mint-components/p-09a77c82.system.entry.js +0 -1
- package/dist/mint-components/p-11519322.system.js +0 -1
- package/dist/mint-components/p-11542862.system.entry.js +0 -1
- package/dist/mint-components/p-141bf5c1.system.entry.js +0 -1
- package/dist/mint-components/p-14a65f29.system.js +0 -1
- package/dist/mint-components/p-1513309d.entry.js +0 -1
- package/dist/mint-components/p-19ccb4ce.js +0 -1
- package/dist/mint-components/p-1b3ab15a.system.entry.js +0 -1
- package/dist/mint-components/p-1fa9ed0d.system.entry.js +0 -1
- package/dist/mint-components/p-208d8d75.system.entry.js +0 -1
- package/dist/mint-components/p-217514ac.system.js +0 -1
- package/dist/mint-components/p-2195c312.entry.js +0 -13
- package/dist/mint-components/p-229f797b.js +0 -1
- package/dist/mint-components/p-24db5c70.js +0 -1
- package/dist/mint-components/p-275b4767.entry.js +0 -1
- package/dist/mint-components/p-2bbff88f.entry.js +0 -1
- package/dist/mint-components/p-2c07df76.entry.js +0 -144
- package/dist/mint-components/p-2dca9e1a.system.js +0 -1
- package/dist/mint-components/p-2e110002.system.js +0 -1
- package/dist/mint-components/p-338bcfd6.system.js +0 -1
- package/dist/mint-components/p-33c96e14.entry.js +0 -16
- package/dist/mint-components/p-38de17fa.system.js +0 -1
- package/dist/mint-components/p-38e5c429.system.js +0 -1
- package/dist/mint-components/p-38fc919b.entry.js +0 -1
- package/dist/mint-components/p-3a49811c.js +0 -1
- package/dist/mint-components/p-3a62a7e2.system.js +0 -1
- package/dist/mint-components/p-3db34d68.js +0 -1
- package/dist/mint-components/p-420554af.system.entry.js +0 -1
- package/dist/mint-components/p-42187319.system.entry.js +0 -1
- package/dist/mint-components/p-4428294b.entry.js +0 -1
- package/dist/mint-components/p-469ad274.js +0 -394
- package/dist/mint-components/p-48135f99.system.js +0 -53
- package/dist/mint-components/p-484196f8.entry.js +0 -9
- package/dist/mint-components/p-49206a9c.entry.js +0 -1
- package/dist/mint-components/p-49deb225.entry.js +0 -1
- package/dist/mint-components/p-4dbe2d08.entry.js +0 -25
- package/dist/mint-components/p-4e5af50c.js +0 -1
- package/dist/mint-components/p-55c16fb9.system.js +0 -1
- package/dist/mint-components/p-5dbe8b0a.system.js +0 -1
- package/dist/mint-components/p-6055eb4c.system.js +0 -1
- package/dist/mint-components/p-6333265f.system.js +0 -1
- package/dist/mint-components/p-635d5ef2.system.js +0 -1
- package/dist/mint-components/p-6427e963.entry.js +0 -1
- package/dist/mint-components/p-642909e6.system.entry.js +0 -1
- package/dist/mint-components/p-65ba9e94.entry.js +0 -1
- package/dist/mint-components/p-6b7a595f.system.js +0 -1
- package/dist/mint-components/p-6cd4f2b1.system.js +0 -1
- package/dist/mint-components/p-6eaf9c57.entry.js +0 -1
- package/dist/mint-components/p-6f34c2c2.entry.js +0 -13
- package/dist/mint-components/p-734695a0.entry.js +0 -205
- package/dist/mint-components/p-775f3ded.entry.js +0 -1
- package/dist/mint-components/p-7ab21e4d.entry.js +0 -1
- package/dist/mint-components/p-7cbec088.system.entry.js +0 -1
- package/dist/mint-components/p-7e3a84bc.js +0 -1
- package/dist/mint-components/p-802b9f7e.entry.js +0 -1
- package/dist/mint-components/p-8053366e.system.entry.js +0 -1
- package/dist/mint-components/p-837dbf90.system.entry.js +0 -1
- package/dist/mint-components/p-893d7ab4.js +0 -1
- package/dist/mint-components/p-8abfeff8.entry.js +0 -1
- package/dist/mint-components/p-8c23d1b8.js +0 -1
- package/dist/mint-components/p-8c494bf1.js +0 -1
- package/dist/mint-components/p-8d9d04b7.system.entry.js +0 -1
- package/dist/mint-components/p-90421929.system.entry.js +0 -1
- package/dist/mint-components/p-91521e9d.js +0 -1
- package/dist/mint-components/p-92816d1f.js +0 -1
- package/dist/mint-components/p-93fed35b.system.js +0 -1
- package/dist/mint-components/p-94a876b9.js +0 -1
- package/dist/mint-components/p-97d4d651.system.js +0 -1
- package/dist/mint-components/p-98698131.js +0 -1
- package/dist/mint-components/p-9acb5038.js +0 -1
- package/dist/mint-components/p-9cf80e85.system.entry.js +0 -1
- package/dist/mint-components/p-9fe143f5.js +0 -1
- package/dist/mint-components/p-b889ec31.entry.js +0 -258
- package/dist/mint-components/p-bd2a2546.system.js +0 -1
- package/dist/mint-components/p-bfc7cfc0.system.js +0 -1
- package/dist/mint-components/p-c060f770.system.entry.js +0 -1
- package/dist/mint-components/p-c36506f6.system.entry.js +0 -1
- package/dist/mint-components/p-c39db551.system.entry.js +0 -1
- package/dist/mint-components/p-ccb5699b.js +0 -1
- package/dist/mint-components/p-cd1d497f.system.js +0 -1
- package/dist/mint-components/p-cd63a965.system.entry.js +0 -1
- package/dist/mint-components/p-cd651f81.js +0 -42
- package/dist/mint-components/p-dcc81e90.entry.js +0 -1
- package/dist/mint-components/p-df89186f.system.js +0 -1
- package/dist/mint-components/p-e01fe915.js +0 -1248
- package/dist/mint-components/p-e6f50ffd.entry.js +0 -1
- package/dist/mint-components/p-eab1c9f3.js +0 -1
- package/dist/mint-components/p-ed11966d.system.js +0 -1
- package/dist/mint-components/p-eda5e82c.entry.js +0 -1
- package/dist/mint-components/p-f2228da3.system.entry.js +0 -1
- package/dist/mint-components/p-f26aedcd.system.js +0 -1
- package/dist/mint-components/p-f2d8d3d3.system.entry.js +0 -1
- package/dist/mint-components/p-f708da7b.js +0 -1
- package/dist/mint-components/p-fd0a013f.entry.js +0 -1
- package/dist/types/components/sqm-asset-card/AssetCard.stories.d.ts +0 -7
- package/dist/types/components/sqm-asset-card/sqm-asset-card-view.d.ts +0 -8
- package/dist/types/components/sqm-asset-card/sqm-asset-card.d.ts +0 -24
- package/dist/types/components/sqm-asset-card/useAssetCard.d.ts +0 -7
- /package/dist/collection/components/tax-and-cash/{sqm-tax-and-cash/data.js → data.js} +0 -0
- /package/dist/types/components/tax-and-cash/{sqm-tax-and-cash/data.d.ts → data.d.ts} +0 -0
|
@@ -1,19 +1,61 @@
|
|
|
1
|
-
import { h, c as Host, d as getAssetPath, g as getElement } from './index-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { h, c as Host, d as getAssetPath, g as getElement } from './index-b3a06de8.js';
|
|
2
|
+
import { i as intl } from './global-2f3b2adb.js';
|
|
3
|
+
import { b as browser, u as useMemo, k as useState } from './dom-context-hooks.module-63370afd.js';
|
|
4
|
+
import { H, L, J, d as dist, w as wn, B, F as Fn, $ as $e, g as getEnvironmentSDK } from './index.module-38dad6c9.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
|
-
import { l as luxonLocale } from './utils-
|
|
6
|
+
import { l as luxonLocale } from './utils-03188de2.js';
|
|
7
7
|
import { c as createStyleSheet, j as jss, a as create } from './JSS-67b5cff8.js';
|
|
8
|
-
import { a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED } from './useReferralCodes-
|
|
9
|
-
import { H as HostBlock, A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-
|
|
10
|
-
import { C as CopyTextView } from './copy-text-view-
|
|
11
|
-
import { u as useChildElements } from './useChildElements-
|
|
12
|
-
import { l as luxon } from './luxon-
|
|
13
|
-
import { T as TextSpanView } from './sqm-text-span-view-
|
|
8
|
+
import { a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED } from './useReferralCodes-311e6d72.js';
|
|
9
|
+
import { H as HostBlock, A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-f750863a.js';
|
|
10
|
+
import { C as CopyTextView } from './copy-text-view-8d1713d7.js';
|
|
11
|
+
import { u as useChildElements } from './useChildElements-4e70ac0e.js';
|
|
12
|
+
import { l as luxon } from './luxon-bbf75a9d.js';
|
|
13
|
+
import { T as TextSpanView } from './sqm-text-span-view-4c17b8c9.js';
|
|
14
14
|
import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
15
|
-
import { a as isValidColor, b as isMobile } from './utilities-
|
|
16
|
-
import { a as PortalSectionView, P as PortalContainerView } from './sqm-portal-container-view-
|
|
15
|
+
import { a as isValidColor, b as isMobile } from './utilities-ad9c2893.js';
|
|
16
|
+
import { a as PortalSectionView, P as PortalContainerView } from './sqm-portal-container-view-176e92e3.js';
|
|
17
|
+
|
|
18
|
+
function BigStatView(props) {
|
|
19
|
+
const { statvalue, flexReverse, alignment, statTextColor, statFontSize, descriptionTextColor, descriptionFontSize, statFontWeight, } = props;
|
|
20
|
+
// Dependent on props, not feasible to move out
|
|
21
|
+
const style = {
|
|
22
|
+
Container: {
|
|
23
|
+
display: "flex",
|
|
24
|
+
// height: "inherit",
|
|
25
|
+
// "justify-content": "space-between",
|
|
26
|
+
"flex-direction": `${flexReverse ? "column-reverse" : "column"}`,
|
|
27
|
+
"align-items": `${alignment === "left"
|
|
28
|
+
? "flex-start"
|
|
29
|
+
: alignment === "right"
|
|
30
|
+
? "flex-end"
|
|
31
|
+
: "center"}`,
|
|
32
|
+
},
|
|
33
|
+
Stat: {
|
|
34
|
+
"font-size": statFontSize
|
|
35
|
+
? `${statFontSize}px`
|
|
36
|
+
: "var(--sl-font-size-xx-large)",
|
|
37
|
+
"text-align": alignment,
|
|
38
|
+
color: statTextColor || "var(--sqm-text)",
|
|
39
|
+
lineHeight: "35px",
|
|
40
|
+
fontWeight: statFontWeight || "var(--sl-font-weight-normal)",
|
|
41
|
+
},
|
|
42
|
+
Description: {
|
|
43
|
+
"font-size": descriptionFontSize
|
|
44
|
+
? `${descriptionFontSize}px`
|
|
45
|
+
: "var(--sl-font-size-small)",
|
|
46
|
+
"font-weight": "var(--sl-font-weight-normal)",
|
|
47
|
+
color: descriptionTextColor || "var(--sqm-text)",
|
|
48
|
+
"text-align": alignment,
|
|
49
|
+
lineHeight: "20px",
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
const sheet = createStyleSheet(style);
|
|
53
|
+
const styleString = sheet.toString();
|
|
54
|
+
return (h("div", { part: "stat-wrapper", class: sheet.classes.Container },
|
|
55
|
+
h("style", { type: "text/css" }, styleString),
|
|
56
|
+
h("div", { part: "stat-value", class: sheet.classes.Stat }, statvalue),
|
|
57
|
+
h("div", { part: "stat-description", class: sheet.classes.Description }, props.labelSlot)));
|
|
58
|
+
}
|
|
17
59
|
|
|
18
60
|
const medium = {
|
|
19
61
|
facebook: { color: "#1877f2", text: "#fff", icon: "facebook" },
|
|
@@ -38,15 +80,30 @@ const style = {
|
|
|
38
80
|
};
|
|
39
81
|
const sheet = createStyleSheet(style);
|
|
40
82
|
const styleString = sheet.toString();
|
|
83
|
+
// TODO: Figure out hover and active states
|
|
84
|
+
// *::part(base):hover {
|
|
85
|
+
// border-color: ${
|
|
86
|
+
// props.backgroundcolor
|
|
87
|
+
// ? props.backgroundcolor
|
|
88
|
+
// : props.medium
|
|
89
|
+
// ? medium[props.medium].color
|
|
90
|
+
// : ""
|
|
91
|
+
// }!important;
|
|
92
|
+
// }
|
|
93
|
+
// *::part(base):focus {
|
|
94
|
+
// border-color: ${
|
|
95
|
+
// props.backgroundcolor
|
|
96
|
+
// ? props.backgroundcolor
|
|
97
|
+
// : props.medium
|
|
98
|
+
// ? medium[props.medium].color
|
|
99
|
+
// : ""
|
|
100
|
+
// }!important;
|
|
101
|
+
// }
|
|
41
102
|
function ShareButtonView(props, children) {
|
|
42
103
|
const vanillaStyle = `
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
? props.backgroundcolor
|
|
47
|
-
: props.medium
|
|
48
|
-
? medium[props.medium].color
|
|
49
|
-
: ""}80!important;
|
|
104
|
+
sl-button::part(base) {
|
|
105
|
+
border: ${props.border || "none"};
|
|
106
|
+
font-family: var(--sqm-primary-font);
|
|
50
107
|
|
|
51
108
|
background: ${props.backgroundcolor
|
|
52
109
|
? props.backgroundcolor
|
|
@@ -61,21 +118,7 @@ function ShareButtonView(props, children) {
|
|
|
61
118
|
border-radius: ${props.borderradius ? props.borderradius + "px" : ""};
|
|
62
119
|
}
|
|
63
120
|
|
|
64
|
-
*::part(base):hover {
|
|
65
|
-
border-color: ${props.backgroundcolor
|
|
66
|
-
? props.backgroundcolor
|
|
67
|
-
: props.medium
|
|
68
|
-
? medium[props.medium].color
|
|
69
|
-
: ""}D1!important;
|
|
70
|
-
}
|
|
71
121
|
|
|
72
|
-
*::part(base):focus {
|
|
73
|
-
border-color: ${props.backgroundcolor
|
|
74
|
-
? props.backgroundcolor
|
|
75
|
-
: props.medium
|
|
76
|
-
? medium[props.medium].color
|
|
77
|
-
: ""}D1!important;
|
|
78
|
-
}
|
|
79
122
|
|
|
80
123
|
*::part(label) {
|
|
81
124
|
position: relative;
|
|
@@ -85,490 +128,238 @@ function ShareButtonView(props, children) {
|
|
|
85
128
|
return props.hide ? (h(Host, { style: { display: "none" } })) : (h("div", null,
|
|
86
129
|
h("style", { type: "text/css" }, styleString),
|
|
87
130
|
h("style", { type: "text/css" }, vanillaStyle),
|
|
88
|
-
h("sl-button", { class: sheet.classes.buttonStyle, target: props.openInSameTab ? "_self" : "_blank", loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type, onClick: !props.isPlainLink ? props.onClick : undefined, href: props.isPlainLink ? props.messageLink : undefined, exportparts: `base: ${props.type}
|
|
131
|
+
h("sl-button", { class: sheet.classes.buttonStyle, target: props.openInSameTab ? "_self" : "_blank", loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type, onClick: !props.isPlainLink ? props.onClick : undefined, href: props.isPlainLink ? props.messageLink : undefined, exportparts: `base: ${props.type}button-base` },
|
|
89
132
|
!props.hideicon && (h("sl-icon", { slot: props.iconslot || "prefix", name: props.icon ? props.icon : medium[props.medium].icon, exportparts: "base: icon" })),
|
|
90
133
|
!props.hidetext && children)));
|
|
91
134
|
}
|
|
92
135
|
|
|
93
|
-
function
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
136
|
+
function StatContainerView(props, children) {
|
|
137
|
+
const divideSpace = () => {
|
|
138
|
+
const spaceValue = getComputedStyle(document.documentElement).getPropertyValue(`--sl-spacing-${props.space}`);
|
|
139
|
+
return `${Math.floor(parseInt(spaceValue) / 2)}rem`;
|
|
140
|
+
};
|
|
141
|
+
// take alignment variable and convert it to CSS flexbox alignment
|
|
142
|
+
const alignment = props.alignment === "center"
|
|
143
|
+
? "center"
|
|
144
|
+
: props.alignment === "right"
|
|
145
|
+
? "flex-end"
|
|
146
|
+
: "flex-start";
|
|
147
|
+
// Dependent on props, not feasible to move out
|
|
97
148
|
const style = {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
},
|
|
113
|
-
"& td": {
|
|
114
|
-
fontSize: "var(--sl-font-size-medium)",
|
|
115
|
-
fontWeight: "var(--sl-font-weight-normal)",
|
|
116
|
-
},
|
|
117
|
-
"& .ellipses": {
|
|
118
|
-
textAlign: "left",
|
|
119
|
-
padding: "0",
|
|
120
|
-
color: "var(--sqm-text)",
|
|
121
|
-
paddingLeft: "25%",
|
|
122
|
-
},
|
|
123
|
-
"& .highlight": {
|
|
124
|
-
background: styles.viewingUserhighlightColor || "var(--sl-color-primary-100)",
|
|
125
|
-
},
|
|
126
|
-
"& td, th": {
|
|
127
|
-
color: "var(--sqm-text)",
|
|
128
|
-
padding: "var(--sl-spacing-medium)",
|
|
149
|
+
StatContainer: {
|
|
150
|
+
width: "100%",
|
|
151
|
+
display: "flex",
|
|
152
|
+
flexWrap: "wrap",
|
|
153
|
+
alignItems: "center",
|
|
154
|
+
justifyContent: alignment,
|
|
155
|
+
flexDirection: "row",
|
|
156
|
+
gap: `var(--sl-spacing-${props.gap})`,
|
|
157
|
+
// Apply border styles conditionally based on the hideBorder prop
|
|
158
|
+
"& > *": {
|
|
159
|
+
"border-right": props.hideBorder
|
|
160
|
+
? "none"
|
|
161
|
+
: "var(--sqm-border-thickness) solid var(--sqm-border-color)",
|
|
162
|
+
"padding-right": divideSpace(),
|
|
129
163
|
},
|
|
130
|
-
"&
|
|
131
|
-
|
|
164
|
+
"& > :last-child": {
|
|
165
|
+
"border-right": "none",
|
|
132
166
|
},
|
|
133
|
-
"&
|
|
134
|
-
|
|
135
|
-
|
|
167
|
+
"& > ::slotted(*)": {
|
|
168
|
+
"border-right": props.hideBorder
|
|
169
|
+
? "none"
|
|
170
|
+
: "var(--sqm-border-thickness) solid var(--sqm-border-color)",
|
|
171
|
+
"padding-right": divideSpace(),
|
|
136
172
|
},
|
|
137
|
-
"&
|
|
138
|
-
|
|
173
|
+
"& > ::slotted(*:last-child)": {
|
|
174
|
+
"border-right": "none",
|
|
139
175
|
},
|
|
140
|
-
"
|
|
141
|
-
|
|
176
|
+
"@media screen and (max-width: 430px)": {
|
|
177
|
+
"& > ::slotted(*)": {
|
|
178
|
+
borderRight: "none",
|
|
179
|
+
},
|
|
142
180
|
},
|
|
143
181
|
},
|
|
182
|
+
StatFrame: {
|
|
183
|
+
display: "flex",
|
|
184
|
+
},
|
|
185
|
+
BorderFix: {
|
|
186
|
+
"border-right": "var(--sqm-border-thickness) solid transparent",
|
|
187
|
+
width: "0px",
|
|
188
|
+
"margin-left": "-1px",
|
|
189
|
+
},
|
|
144
190
|
};
|
|
145
191
|
const sheet = createStyleSheet(style);
|
|
146
192
|
const styleString = sheet.toString();
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
if (states.isEssentials) {
|
|
153
|
-
return (h("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1715360191/squatch-assets/Leaderboard_Not_Available.svg", "empty-state-header": "Leaderboards aren\u2019t available on your plan", "empty-state-text": "Contact {supportText} to upgrade your plan and start leveraging gamification in your program.", "support-text": "Support" }));
|
|
154
|
-
}
|
|
155
|
-
if (states.loading) {
|
|
156
|
-
return (h("div", { class: sheet.classes.Leaderboard, style: { width: styles.width || "100%" } },
|
|
157
|
-
h("style", { type: "text/css" },
|
|
158
|
-
styleString,
|
|
159
|
-
vanillaStyle),
|
|
160
|
-
h("table", null, [...Array(10)].map(() => {
|
|
161
|
-
return (h("tr", null,
|
|
162
|
-
h("td", null,
|
|
163
|
-
h("sl-skeleton", null))));
|
|
164
|
-
}))));
|
|
165
|
-
}
|
|
166
|
-
if (!states.hasLeaders)
|
|
167
|
-
return elements.empty;
|
|
168
|
-
let userSeenFlag = false;
|
|
169
|
-
const getUsersName = (user) => {
|
|
170
|
-
if (!user.firstName && !user.lastInitial)
|
|
171
|
-
return styles.anonymousUser;
|
|
172
|
-
const { firstName, lastInitial } = user;
|
|
173
|
-
if (firstName && lastInitial)
|
|
174
|
-
return `${firstName} ${lastInitial}`;
|
|
175
|
-
if (firstName || lastInitial)
|
|
176
|
-
return firstName || lastInitial;
|
|
177
|
-
return styles.anonymousUser;
|
|
178
|
-
};
|
|
179
|
-
const getRankCellText = (userRank, isViewingUsersRow) => {
|
|
180
|
-
if (!userRank) {
|
|
181
|
-
return styles.hideNames ? `${styles.viewingUserText}` : "-";
|
|
182
|
-
}
|
|
183
|
-
const viewingUserText = ` - ${styles.viewingUserText}`;
|
|
184
|
-
return styles.rankSuffix
|
|
185
|
-
? intl.formatMessage({
|
|
186
|
-
id: "rank",
|
|
187
|
-
defaultMessage: styles.rankSuffix,
|
|
188
|
-
}, {
|
|
189
|
-
rank: userRank,
|
|
190
|
-
}) + `${isViewingUsersRow && styles.hideNames ? viewingUserText : ""}`
|
|
191
|
-
: `${userRank} ${isViewingUsersRow && styles.hideNames ? viewingUserText : ""}`;
|
|
192
|
-
};
|
|
193
|
-
return (h("div", { class: sheet.classes.Leaderboard, part: "sqm-base", style: { width: styles.width || "100%" } },
|
|
194
|
-
h("style", { type: "text/css" },
|
|
195
|
-
styleString,
|
|
196
|
-
vanillaStyle),
|
|
197
|
-
h("table", { part: "sqm-table" },
|
|
198
|
-
h("tr", null,
|
|
199
|
-
styles.showRank && (h("th", { class: `Rank ${styles.hideNames ? "fullWidth" : ""}` }, styles.rankheading)),
|
|
200
|
-
!styles.hideNames && h("th", { class: "User" }, styles.usersheading),
|
|
201
|
-
h("th", { class: "Score" }, styles.statsheading)), (_a = data.leaderboard) === null || _a === void 0 ? void 0 :
|
|
202
|
-
_a.map((user) => {
|
|
203
|
-
var _a, _b;
|
|
204
|
-
if (user.rowNumber === ((_a = data.viewerRank) === null || _a === void 0 ? void 0 : _a.rowNumber))
|
|
205
|
-
userSeenFlag = true;
|
|
206
|
-
const isViewingUsersRow = !styles.hideViewer && user.rowNumber === ((_b = data.viewerRank) === null || _b === void 0 ? void 0 : _b.rowNumber);
|
|
207
|
-
return (h("tr", { class: isViewingUsersRow ? "highlight" : "" },
|
|
208
|
-
styles.showRank && (h("td", { class: "Rank" }, getRankCellText(user.rank, isViewingUsersRow))),
|
|
209
|
-
!styles.hideNames && h("td", { class: "User" }, getUsersName(user)),
|
|
210
|
-
h("td", { class: "Score" }, user.textValue)));
|
|
211
|
-
}),
|
|
212
|
-
!userSeenFlag && !styles.hideViewer && (h("tr", null,
|
|
213
|
-
h("td", { colSpan: 100, class: "ellipses" },
|
|
214
|
-
h("sl-icon", { name: "three-dots", style: { verticalAlign: "middle" } })))),
|
|
215
|
-
!userSeenFlag && !styles.hideViewer && (h("tr", { class: "highlight" },
|
|
216
|
-
styles.showRank && (h("td", { class: "Rank" }, getRankCellText((_b = data.viewerRank) === null || _b === void 0 ? void 0 : _b.rank, true))),
|
|
217
|
-
!styles.hideNames && (h("td", { class: "User" }, getUsersName(data.viewerRank || {}))),
|
|
218
|
-
h("td", { class: "Score" }, ((_c = data.viewerRank) === null || _c === void 0 ? void 0 : _c.textValue) || "0"))))));
|
|
193
|
+
return (h("div", { class: sheet.classes.StatFrame, part: "sqm-base" },
|
|
194
|
+
h("div", { class: sheet.classes.StatContainer, part: "sqm-inner-container" },
|
|
195
|
+
h("style", { type: "text/css" }, styleString),
|
|
196
|
+
children),
|
|
197
|
+
h("div", { class: sheet.classes.BorderFix, part: "sqm-border" })));
|
|
219
198
|
}
|
|
220
199
|
|
|
221
|
-
function
|
|
222
|
-
const {
|
|
223
|
-
// Dependent on props, not feasiable to move out
|
|
200
|
+
function PortalChangePasswordView(props) {
|
|
201
|
+
const { states, callbacks } = props;
|
|
224
202
|
const style = {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
:
|
|
233
|
-
|
|
234
|
-
|
|
203
|
+
Dialog: {
|
|
204
|
+
padding: "0",
|
|
205
|
+
"&::part(panel)": {
|
|
206
|
+
background: "var(--sqm-portal-background)",
|
|
207
|
+
borderRadius: "var(--sqm-border-radius-normal, var(--sl-border-radius-medium))",
|
|
208
|
+
},
|
|
209
|
+
"&::part(close-button)": {
|
|
210
|
+
"margin-top": "var(--sl-spacing-medium)",
|
|
211
|
+
},
|
|
212
|
+
"&::part(body)": {
|
|
213
|
+
padding: "0 var(--sl-spacing-x-large) var(--sl-spacing-x-large) var(--sl-spacing-x-large)",
|
|
214
|
+
},
|
|
235
215
|
},
|
|
236
|
-
|
|
237
|
-
"
|
|
238
|
-
|
|
216
|
+
Error: {
|
|
217
|
+
"&::part(erroralert-base)": {
|
|
218
|
+
"margin-bottom": "15px",
|
|
219
|
+
},
|
|
239
220
|
},
|
|
240
|
-
|
|
241
|
-
"
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
221
|
+
Success: {
|
|
222
|
+
"&::part(successalert-base)": {
|
|
223
|
+
"margin-bottom": "15px",
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
InputContainer: {
|
|
227
|
+
"& > :not(:last-child)": {
|
|
228
|
+
"margin-bottom": "var(--sl-spacing-x-large)",
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
CancelButton: {
|
|
232
|
+
margin: "var(--sl-spacing-large) auto",
|
|
233
|
+
width: "100%",
|
|
234
|
+
},
|
|
235
|
+
PasswordField: {
|
|
236
|
+
marginBottom: "var(--sl-spacing-large) !important",
|
|
237
|
+
display: "block",
|
|
238
|
+
},
|
|
239
|
+
ChangePasswordButton: {
|
|
240
|
+
paddingTop: "var(--sl-spacing-x-large)",
|
|
245
241
|
},
|
|
246
242
|
};
|
|
247
243
|
const sheet = createStyleSheet(style);
|
|
248
244
|
const styleString = sheet.toString();
|
|
249
|
-
return (h("div",
|
|
245
|
+
return (h("div", null,
|
|
250
246
|
h("style", { type: "text/css" }, styleString),
|
|
251
|
-
h("
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
"box-sizing": "border-box",
|
|
277
|
-
display: "flex",
|
|
278
|
-
"justify-content": "space-between",
|
|
279
|
-
padding: "var(--sl-spacing-small) var(--sl-spacing-large)",
|
|
280
|
-
"align-items": "center",
|
|
281
|
-
"background-color": "var(--sqm-header-background)",
|
|
282
|
-
"@media screen and (max-width: 499px)": {
|
|
283
|
-
"flex-direction": "row-reverse",
|
|
284
|
-
"justify-content": "flex-end",
|
|
285
|
-
padding: "0",
|
|
286
|
-
},
|
|
287
|
-
},
|
|
288
|
-
};
|
|
289
|
-
const sheet$1 = createStyleSheet(style$1);
|
|
290
|
-
const styleString$1 = sheet$1.toString();
|
|
291
|
-
function PortalFrameView(props, children) {
|
|
292
|
-
const { data, notFullScreen } = props;
|
|
293
|
-
return (h("div", { style: { minHeight: notFullScreen ? "100%" : "100vh" }, class: sheet$1.classes.Frame, part: "sqm-base" },
|
|
294
|
-
h("style", { type: "text/css" }, styleString$1),
|
|
295
|
-
h("div", { class: sheet$1.classes.HeaderWrapper, part: "sqm-header" },
|
|
296
|
-
data.header,
|
|
297
|
-
h("slot", { name: "sqm-navigation-menu" })),
|
|
298
|
-
children,
|
|
299
|
-
h("div", { class: sheet$1.classes.FooterWrapper, part: "sqm-footer" }, data.footer)));
|
|
247
|
+
h("sl-dialog", { class: sheet.classes.Dialog, open: states.open, "onSl-hide": () => callbacks.setOpen(false) },
|
|
248
|
+
h(PortalSectionView, Object.assign({}, {
|
|
249
|
+
labelMargin: "x-large",
|
|
250
|
+
padding: "none",
|
|
251
|
+
label: (h(TextSpanView, Object.assign({}, { type: "h2" }), states.content.modalChangePasswordHeader)),
|
|
252
|
+
content: (h(PortalContainerView, Object.assign({}, { direction: "column", padding: "none", gap: "32px" }),
|
|
253
|
+
states.error && (h("sqm-form-message", { class: sheet.classes.Error, type: "error", exportparts: "erroralert-icon" },
|
|
254
|
+
h("div", { part: "erroralert-text" }, states.error))),
|
|
255
|
+
states.success && (h("sqm-form-message", { class: sheet.classes.Success, type: "success", exportparts: "successalert-icon" },
|
|
256
|
+
h("div", { part: "successalert-text" }, states.content.successMessage))),
|
|
257
|
+
h("sl-form", { "onSl-submit": callbacks.submit },
|
|
258
|
+
h("div", { class: sheet.classes.InputContainer },
|
|
259
|
+
h("sqm-password-field", { exportparts: "input-label: input-label", class: sheet.classes.PasswordField, fieldLabel: states.content.passwordFieldLabel, meetsRequirementsText: states.content.meetsRequirementsText, doesNotMeetRequirementsText: states.content.doesNotMeetRequirementsText, minErrorText: states.content.minErrorText, uppercaseErrorText: states.content.uppercaseErrorText, lowercaseErrorText: states.content.lowercaseErrorText, hasErrorText: states.content.hasErrorText }),
|
|
260
|
+
h("sl-input", { exportparts: "label: input-label, base: input-base", name: "/confirmPassword", label: states.content.confirmPasswordFieldLabel, required: true, togglePassword: true, disabled: states.loading, type: "password" })),
|
|
261
|
+
h(PortalContainerView, Object.assign({}, { direction: "row", padding: "none", gap: "20px" }),
|
|
262
|
+
h("sl-button", { class: sheet.classes.ChangePasswordButton, type: "primary", exportparts: "base: primarybutton-base", submit: true, loading: states.loading }, states.content.changePasswordButtonText),
|
|
263
|
+
h("sl-button", { class: sheet.classes.CancelButton, type: "secondary", exportparts: "base: secondarybutton-base", onClick: () => callbacks.setOpen(false) }, states.content.cancelText))))),
|
|
264
|
+
}))),
|
|
265
|
+
h(PortalSectionView, Object.assign({}, {
|
|
266
|
+
labelMargin: "x-large",
|
|
267
|
+
padding: "xxx-large",
|
|
268
|
+
label: (h(TextSpanView, Object.assign({}, { type: "h2" }), states.content.portalChangePasswordHeader)),
|
|
269
|
+
content: (h("sl-button", { type: "primary", exportparts: "base: primarybutton-base", onClick: () => callbacks.setOpen(true) }, states.content.portalChangePasswordButtonText)),
|
|
270
|
+
}),
|
|
271
|
+
h("style", { type: "text/css" }, styleString))));
|
|
300
272
|
}
|
|
301
273
|
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
274
|
+
function PoweredByImg({ color = "#A6A6A6", width = 120, height = 16, }) {
|
|
275
|
+
return (h("svg", { width: width, height: height, viewBox: "0 0 1662 254", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
276
|
+
h("path", { d: "M801.082 253.58L869.382 1.67969", stroke: color, "stroke-width": "3" }),
|
|
277
|
+
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M125.682 42.48C123.882 42.48 121.982 42.78 120.382 43.48C118.682 44.18 117.182 45.18 115.882 46.48C114.582 47.68 113.582 49.28 112.882 50.98C112.182 52.68 111.882 54.48 111.982 56.28C112.282 59.68 113.882 63.08 116.382 65.38C118.982 67.78 122.382 68.98 125.782 68.98C129.282 68.98 132.682 67.58 135.182 65.38C137.782 62.98 139.382 59.78 139.582 56.28C139.582 54.38 139.282 52.68 138.682 50.98C137.982 49.28 136.982 47.78 135.682 46.48C134.382 45.18 132.882 44.18 131.182 43.48C129.282 42.78 127.582 42.48 125.682 42.48Z", fill: color }),
|
|
278
|
+
h("path", { d: "M135.882 89.2798H115.582V187.58H135.882V89.2798Z", fill: color }),
|
|
279
|
+
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M231.481 104.18C238.781 93.4799 251.181 87.3799 266.281 87.3799C290.981 87.3799 307.581 103.28 307.381 127.08V187.48H286.781V132.38C286.781 116.38 278.281 107.18 263.381 107.18C248.481 107.18 237.981 117.68 237.981 132.68V187.48H217.281V132.38C217.281 116.38 208.781 107.18 193.881 107.18C178.981 107.18 168.481 117.68 168.481 132.68V187.48H147.981V89.3799H168.681V97.8799C178.081 88.8799 190.181 87.4799 197.081 87.4799C211.881 87.4799 224.381 93.5799 231.481 104.18Z", fill: color }),
|
|
280
|
+
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M370.781 87.48C358.581 87.48 347.981 91.38 339.981 98.38V89.28H319.481V226.08H339.981V177.78C347.881 185.08 358.581 188.78 370.781 188.78C398.781 188.78 419.881 166.88 419.881 138.08C419.981 109.28 398.781 87.48 370.781 87.48ZM368.881 169.58C351.481 169.58 338.881 156.38 338.881 138.28C338.881 120.38 351.381 106.98 368.881 106.98C386.281 106.98 398.881 120.08 398.881 138.28C398.881 156.48 386.381 169.58 368.881 169.58Z", fill: color }),
|
|
281
|
+
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M701.782 169.88C707.682 169.88 714.082 167.58 719.582 163.98L721.482 162.88L731.482 178.68L729.782 179.88C721.282 186.28 710.982 189.58 700.382 189.58C678.082 189.58 665.782 176.38 665.782 152.28V108.68H645.682V89.3799H665.782V59.8799H686.482V89.2798H725.682V108.48H686.482V151.88C686.482 163.38 691.982 169.88 701.782 169.88Z", fill: color }),
|
|
282
|
+
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M551.282 239.88C549.982 239.88 548.782 240.28 547.682 240.88C546.682 241.58 545.782 242.58 545.382 243.68C544.882 244.78 544.782 246.08 545.082 247.28C545.282 248.58 545.882 249.68 546.882 250.48C547.782 251.38 548.882 251.98 550.082 252.28C551.382 252.48 552.582 252.38 553.782 251.98C554.882 251.48 555.982 250.78 556.582 249.68C557.282 248.68 557.582 247.38 557.582 246.18C557.582 244.48 556.982 242.88 555.682 241.68C554.482 240.48 552.882 239.88 551.282 239.88Z", fill: color }),
|
|
283
|
+
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M586.182 210.78C592.282 210.78 597.582 213.08 601.082 217.18L601.482 217.68L596.282 223.08L595.782 222.58C594.482 221.18 593.082 220.18 591.382 219.48C589.682 218.78 587.882 218.38 586.082 218.48C578.882 218.48 573.682 224.08 573.682 231.58C573.682 239.18 578.882 244.78 586.082 244.78C589.782 244.68 593.282 243.18 595.882 240.58L596.382 240.08L601.382 245.68L600.982 246.08C597.182 250.18 591.982 252.18 586.082 252.18C574.082 252.18 565.382 243.58 565.382 231.58C565.582 219.48 574.182 210.78 586.182 210.78Z", fill: color }),
|
|
284
|
+
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M633.782 210.78C621.682 210.78 612.582 219.68 612.582 231.38C612.582 243.08 621.682 251.98 633.782 251.98C645.882 251.98 654.882 243.08 654.882 231.38C655.082 219.78 645.982 210.78 633.782 210.78ZM633.782 244.78C626.382 244.78 620.782 239.28 620.782 231.58C620.782 223.88 626.182 218.48 633.782 218.48C641.182 218.48 646.782 224.08 646.782 231.58C646.782 238.98 641.382 244.78 633.782 244.78Z", fill: color }),
|
|
285
|
+
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M723.982 228.78C723.982 222.18 720.382 218.28 714.082 218.28C707.682 218.28 703.382 222.78 702.982 228.98V252.18H695.082V228.68C695.082 222.08 691.482 218.18 685.182 218.18C680.082 218.18 674.482 221.48 674.482 228.88V252.08H666.582V211.38H674.482V214.78L676.682 213.28C679.582 211.38 683.082 210.48 686.582 210.48C692.082 210.48 696.782 212.48 699.882 216.08L700.882 217.28L701.882 216.08C704.782 212.48 709.582 210.48 715.182 210.48C725.082 210.48 731.982 217.08 731.982 226.38V251.88H724.082V228.68H723.982V228.78Z", fill: color }),
|
|
286
|
+
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M511.681 89.4797V98.7797C503.681 91.4797 493.181 87.6797 480.981 87.6797C452.981 87.6797 431.981 109.68 431.981 138.68C431.981 167.78 453.081 189.68 480.981 189.68C493.181 189.68 503.681 185.78 511.681 178.38V187.68H532.381V89.4797H511.681ZM482.881 169.88C465.481 169.88 452.781 156.58 452.781 138.48C452.781 120.48 465.281 106.98 482.881 106.98C500.481 106.98 512.781 120.08 512.781 138.48C512.781 156.68 500.181 169.88 482.881 169.88Z", fill: color }),
|
|
287
|
+
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M595.281 107.08C604.181 107.08 611.781 110.38 618.781 116.98L620.481 118.68L633.981 104.58L632.581 102.98C623.781 92.98 610.781 87.48 595.781 87.48C565.981 87.48 544.481 109.08 544.481 138.48C544.481 167.98 565.981 189.48 595.781 189.48C610.481 189.48 623.681 183.98 632.581 174.08L633.981 172.58L620.981 158.18L619.281 159.88C612.481 166.48 603.981 169.98 595.481 169.98C578.381 169.98 565.681 156.68 565.681 138.58C565.581 120.58 577.881 107.08 595.281 107.08Z", fill: color }),
|
|
288
|
+
h("path", { d: "M135.882 89.2798H115.582V187.58H135.882V89.2798Z", fill: color }),
|
|
289
|
+
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M231.481 104.18C238.781 93.4799 251.181 87.3799 266.281 87.3799C290.981 87.3799 307.581 103.28 307.381 127.08V187.48H286.781V132.38C286.781 116.38 278.281 107.18 263.381 107.18C248.481 107.18 237.981 117.68 237.981 132.68V187.48H217.281V132.38C217.281 116.38 208.781 107.18 193.881 107.18C178.981 107.18 168.481 117.68 168.481 132.68V187.48H147.981V89.3799H168.681V97.8799C178.081 88.8799 190.181 87.4799 197.081 87.4799C211.881 87.4799 224.381 93.5799 231.481 104.18Z", fill: color }),
|
|
290
|
+
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M370.781 87.48C358.581 87.48 347.981 91.38 339.981 98.38V89.28H319.481V226.08H339.981V177.78C347.881 185.08 358.581 188.78 370.781 188.78C398.781 188.78 419.881 166.88 419.881 138.08C419.981 109.28 398.781 87.48 370.781 87.48ZM368.881 169.58C351.481 169.58 338.881 156.38 338.881 138.28C338.881 120.38 351.381 106.98 368.881 106.98C386.281 106.98 398.881 120.08 398.881 138.28C398.881 156.48 386.381 169.58 368.881 169.58Z", fill: color }),
|
|
291
|
+
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M701.782 169.88C707.682 169.88 714.082 167.58 719.582 163.98L721.482 162.88L731.482 178.68L729.782 179.88C721.282 186.28 710.982 189.58 700.382 189.58C678.082 189.58 665.782 176.38 665.782 152.28V108.68H645.682V89.3799H665.782V59.8799H686.482V89.2798H725.682V108.48H686.482V151.88C686.482 163.38 691.982 169.88 701.782 169.88Z", fill: color }),
|
|
292
|
+
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M511.681 89.4797V98.7797C503.681 91.4797 493.181 87.6797 480.981 87.6797C452.981 87.6797 431.981 109.68 431.981 138.68C431.981 167.78 453.081 189.68 480.981 189.68C493.181 189.68 503.681 185.78 511.681 178.38V187.68H532.381V89.4797H511.681ZM482.881 169.88C465.481 169.88 452.781 156.58 452.781 138.48C452.781 120.48 465.281 106.98 482.881 106.98C500.481 106.98 512.781 120.08 512.781 138.48C512.781 156.68 500.181 169.88 482.881 169.88Z", fill: color }),
|
|
293
|
+
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M595.281 107.08C604.181 107.08 611.781 110.38 618.781 116.98L620.481 118.68L633.981 104.58L632.581 102.98C623.781 92.98 610.781 87.48 595.781 87.48C565.981 87.48 544.481 109.08 544.481 138.48C544.481 167.98 565.981 189.48 595.781 189.48C610.481 189.48 623.681 183.98 632.581 174.08L633.981 172.58L620.981 158.18L619.281 159.88C612.481 166.48 603.981 169.98 595.481 169.98C578.381 169.98 565.681 156.68 565.681 138.58C565.581 120.58 577.881 107.08 595.281 107.08Z", fill: color }),
|
|
294
|
+
h("path", { d: "M34.6815 112.78C40.6815 112.78 46.5815 114.18 51.8815 116.68C57.2815 119.18 62.0815 122.78 65.9815 127.28C67.9815 122.68 69.0815 117.78 69.0815 112.88C69.0815 108.38 68.1815 103.88 66.4815 99.8799C64.6815 95.6799 62.1815 91.9799 58.9815 88.8799C55.7815 85.7799 51.9815 83.2799 47.7815 81.4799C43.5815 79.7799 39.0815 78.8799 34.5815 78.8799C30.0815 78.8799 25.5815 79.6799 21.3815 81.4799C17.1815 83.1799 13.3815 85.7799 10.1815 88.8799C6.98154 91.9799 4.48154 95.7799 2.68154 99.8799C0.881541 104.08 0.081543 108.38 0.081543 112.88C0.181543 117.88 1.18154 122.78 3.18154 127.28C7.08154 122.68 11.8815 119.18 17.1815 116.68C22.7815 113.98 28.7815 112.68 34.6815 112.78Z", fill: color }),
|
|
295
|
+
h("path", { d: "M69.1817 153.48C69.1817 146.68 67.1817 140.18 63.2817 134.48C59.4817 128.88 54.0817 124.48 47.7817 121.88C41.4817 119.28 34.4817 118.68 27.7817 119.88C21.0817 121.28 14.8817 124.48 10.0817 129.28C5.28166 134.08 1.88166 140.08 0.681661 146.78C-0.718339 153.48 0.0816607 160.18 2.68166 166.48C5.28166 172.78 9.68166 178.08 15.4817 181.78C21.0817 185.58 27.7817 187.48 34.6817 187.48C43.7817 187.38 52.5817 183.88 59.0817 177.38C65.6817 170.98 69.1817 162.58 69.1817 153.48Z", fill: color }),
|
|
296
|
+
h("path", { d: "M69.1817 34.9799C69.1817 28.1799 67.1817 21.6799 63.2817 15.9799C59.4817 10.3799 54.1817 5.9799 47.7817 3.3799C41.4817 0.779901 34.4817 0.1799 27.7817 1.3799C21.0817 2.7799 14.8817 5.97986 10.0817 10.7799C5.28166 15.5799 1.88166 21.5799 0.681661 28.2799C-0.718339 34.9799 0.0816607 41.6799 2.68166 47.9799C5.28166 54.2799 9.68166 59.5799 15.4817 63.2799C21.0817 67.0799 27.7817 68.9799 34.6817 68.9799C43.8817 68.9799 52.6817 65.3799 59.1817 58.9799C65.5817 52.6799 69.1817 43.8799 69.1817 34.9799Z", fill: color }),
|
|
297
|
+
h("path", { d: "M962.664 203.95C953.044 203.95 945.244 201.285 939.264 195.955C933.284 190.495 930.294 183.41 930.294 174.7C930.294 165.08 933.739 157.605 940.629 152.275C947.649 146.945 957.464 144.28 970.074 144.28H993.864V138.43C993.864 129.72 991.589 123.09 987.039 118.54C982.619 113.86 976.184 111.52 967.734 111.52C962.014 111.52 956.749 112.885 951.939 115.615C947.129 118.345 943.229 122.18 940.239 127.12L933.999 120.295C937.639 114.575 942.384 110.22 948.234 107.23C954.214 104.11 960.974 102.55 968.514 102.55C979.694 102.55 988.404 105.605 994.644 111.715C1001.01 117.695 1004.2 126.015 1004.2 136.675V184.255C1004.2 188.805 1004.98 194.72 1006.54 202H997.569C996.399 199.14 995.554 194.07 995.034 186.79H994.644C990.874 192.25 986.259 196.475 980.799 199.465C975.339 202.455 969.294 203.95 962.664 203.95ZM962.664 195.175C968.124 195.175 973.259 194.07 978.069 191.86C982.879 189.52 986.714 186.465 989.574 182.695C992.434 178.795 993.864 174.7 993.864 170.41V152.665H969.489C960.389 152.665 953.239 154.615 948.039 158.515C942.969 162.415 940.434 167.81 940.434 174.7C940.434 180.68 942.514 185.62 946.674 189.52C950.834 193.29 956.164 195.175 962.664 195.175Z", fill: color }),
|
|
298
|
+
h("path", { d: "M1067.55 203.95C1055.07 203.95 1045.25 199.27 1038.1 189.91C1030.95 180.55 1027.38 167.745 1027.38 151.495C1027.38 136.415 1031.02 124.52 1038.3 115.81C1045.71 106.97 1055.72 102.55 1068.33 102.55C1074.7 102.55 1080.55 104.045 1085.88 107.035C1091.21 110.025 1095.5 114.25 1098.75 119.71H1099.14V57.3101H1109.67V178.21C1109.67 189.13 1109.86 197.06 1110.25 202H1100.89C1100.63 197.84 1100.5 192.12 1100.5 184.84H1100.11C1097.12 190.69 1092.7 195.37 1086.85 198.88C1081 202.26 1074.57 203.95 1067.55 203.95ZM1068.13 195.175C1077.23 195.175 1084.64 192.185 1090.36 186.205C1096.21 180.225 1099.14 172.49 1099.14 163V146.815C1099.14 135.895 1096.41 127.25 1090.95 120.88C1085.49 114.38 1078.08 111.13 1068.72 111.13C1059.1 111.13 1051.49 114.77 1045.9 122.05C1040.44 129.2 1037.71 139.145 1037.71 151.885C1037.71 165.275 1040.44 175.87 1045.9 183.67C1051.36 191.34 1058.77 195.175 1068.13 195.175Z", fill: color }),
|
|
299
|
+
h("path", { d: "M1208.57 104.5L1172.3 202H1161.96L1125.5 104.5H1136.61L1167.03 189.715L1197.45 104.5H1208.57Z", fill: color }),
|
|
300
|
+
h("path", { d: "M1261.51 203.95C1252.54 203.95 1244.61 201.87 1237.72 197.71C1230.96 193.55 1225.7 187.635 1221.93 179.965C1218.29 172.295 1216.47 163.39 1216.47 153.25C1216.47 143.11 1218.29 134.205 1221.93 126.535C1225.7 118.865 1230.96 112.95 1237.72 108.79C1244.61 104.63 1252.54 102.55 1261.51 102.55C1270.48 102.55 1278.35 104.63 1285.11 108.79C1292 112.95 1297.33 118.865 1301.1 126.535C1304.87 134.205 1306.75 143.11 1306.75 153.25C1306.75 163.39 1304.87 172.295 1301.1 179.965C1297.33 187.635 1292 193.55 1285.11 197.71C1278.35 201.87 1270.48 203.95 1261.51 203.95ZM1261.51 195.37C1268.4 195.37 1274.45 193.615 1279.65 190.105C1284.98 186.595 1289.07 181.655 1291.93 175.285C1294.79 168.915 1296.22 161.57 1296.22 153.25C1296.22 144.93 1294.79 137.585 1291.93 131.215C1289.07 124.845 1284.98 119.905 1279.65 116.395C1274.45 112.885 1268.4 111.13 1261.51 111.13C1254.75 111.13 1248.71 112.885 1243.38 116.395C1238.18 119.905 1234.15 124.845 1231.29 131.215C1228.43 137.585 1227 144.93 1227 153.25C1227 161.57 1228.43 168.915 1231.29 175.285C1234.15 181.655 1238.18 186.595 1243.38 190.105C1248.71 193.615 1254.75 195.37 1261.51 195.37Z", fill: color }),
|
|
301
|
+
h("path", { d: "M1366.03 203.95C1352.25 203.95 1341.52 199.53 1333.85 190.69C1326.31 181.72 1322.54 169.24 1322.54 153.25C1322.54 137.39 1326.38 124.975 1334.05 116.005C1341.72 107.035 1352.38 102.55 1366.03 102.55C1373.57 102.55 1380.26 104.11 1386.11 107.23C1391.96 110.22 1396.77 114.575 1400.54 120.295L1394.3 126.34C1391.31 121.66 1387.28 118.02 1382.21 115.42C1377.27 112.69 1371.88 111.325 1366.03 111.325C1355.76 111.325 1347.63 115.03 1341.65 122.44C1335.8 129.85 1332.88 140.12 1332.88 153.25C1332.88 166.38 1335.8 176.65 1341.65 184.06C1347.63 191.47 1355.76 195.175 1366.03 195.175C1371.88 195.175 1377.27 193.875 1382.21 191.275C1387.28 188.545 1391.31 184.84 1394.3 180.16L1400.54 186.205C1396.77 191.925 1391.96 196.345 1386.11 199.465C1380.26 202.455 1373.57 203.95 1366.03 203.95Z", fill: color }),
|
|
302
|
+
h("path", { d: "M1446.55 203.95C1436.93 203.95 1429.13 201.285 1423.15 195.955C1417.17 190.495 1414.18 183.41 1414.18 174.7C1414.18 165.08 1417.62 157.605 1424.51 152.275C1431.53 146.945 1441.35 144.28 1453.96 144.28H1477.75V138.43C1477.75 129.72 1475.47 123.09 1470.92 118.54C1466.5 113.86 1460.07 111.52 1451.62 111.52C1445.9 111.52 1440.63 112.885 1435.82 115.615C1431.01 118.345 1427.11 122.18 1424.12 127.12L1417.88 120.295C1421.52 114.575 1426.27 110.22 1432.12 107.23C1438.1 104.11 1444.86 102.55 1452.4 102.55C1463.58 102.55 1472.29 105.605 1478.53 111.715C1484.9 117.695 1488.08 126.015 1488.08 136.675V184.255C1488.08 188.805 1488.86 194.72 1490.42 202H1481.45C1480.28 199.14 1479.44 194.07 1478.92 186.79H1478.53C1474.76 192.25 1470.14 196.475 1464.68 199.465C1459.22 202.455 1453.18 203.95 1446.55 203.95ZM1446.55 195.175C1452.01 195.175 1457.14 194.07 1461.95 191.86C1466.76 189.52 1470.6 186.465 1473.46 182.695C1476.32 178.795 1477.75 174.7 1477.75 170.41V152.665H1453.37C1444.27 152.665 1437.12 154.615 1431.92 158.515C1426.85 162.415 1424.32 167.81 1424.32 174.7C1424.32 180.68 1426.4 185.62 1430.56 189.52C1434.72 193.29 1440.05 195.175 1446.55 195.175Z", fill: color }),
|
|
303
|
+
h("path", { d: "M1547.14 203.95C1539.08 203.95 1532.97 201.48 1528.81 196.54C1524.65 191.47 1522.57 184.19 1522.57 174.7V113.275H1505.02V104.5H1522.57V77.9801L1532.32 74.6651H1533.1V104.5H1560.59V113.275H1533.1V172.555C1533.1 180.355 1534.33 186.01 1536.8 189.52C1539.27 193.03 1543.17 194.785 1548.5 194.785C1553.83 194.785 1558.06 194.005 1561.18 192.445L1562.35 200.83C1558.19 202.91 1553.12 203.95 1547.14 203.95Z", fill: color }),
|
|
304
|
+
h("path", { d: "M1661.53 157.54H1589.77C1590.42 169.37 1593.54 178.535 1599.13 185.035C1604.85 191.535 1612.65 194.785 1622.53 194.785C1628.51 194.785 1633.97 193.485 1638.91 190.885C1643.98 188.285 1647.95 184.645 1650.81 179.965L1657.24 186.4C1653.34 192.12 1648.4 196.475 1642.42 199.465C1636.57 202.455 1629.94 203.95 1622.53 203.95C1609.01 203.95 1598.35 199.465 1590.55 190.495C1582.88 181.525 1579.05 169.175 1579.05 153.445C1579.05 137.585 1582.82 125.17 1590.36 116.2C1597.9 107.1 1608.23 102.55 1621.36 102.55C1633.84 102.55 1643.66 106.84 1650.81 115.42C1657.96 124 1661.53 135.895 1661.53 151.105V157.54ZM1651.39 147.4C1651.39 136.48 1648.66 127.77 1643.2 121.27C1637.74 114.77 1630.46 111.52 1621.36 111.52C1611.74 111.52 1604.2 114.77 1598.74 121.27C1593.28 127.77 1590.29 137.065 1589.77 149.155H1651.39V147.4Z", fill: color })));
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
const debug = browser("sq:useBigStat");
|
|
308
|
+
const LOADING = "...";
|
|
309
|
+
const debugQuery = (query, variables, getStat) => {
|
|
310
|
+
const res = wn(query, variables);
|
|
311
|
+
if (!(res === null || res === void 0 ? void 0 : res.data) && !res.loading) {
|
|
312
|
+
console.error("issue getting stat:", res);
|
|
336
313
|
}
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
h("h2", { part: "sqm-header", style: {
|
|
340
|
-
fontSize: "var(--sl-font-size-x-large)",
|
|
341
|
-
marginBottom: "0px",
|
|
342
|
-
textAlign: "center",
|
|
343
|
-
} }, text.editprofileheader),
|
|
344
|
-
h("div", null,
|
|
345
|
-
h("p", { style: { fontSize: "var(--sl-font-size-medium)" } }, (_a = states.user) === null || _a === void 0 ? void 0 :
|
|
346
|
-
_a.firstName,
|
|
347
|
-
" ", (_b = states.user) === null || _b === void 0 ? void 0 :
|
|
348
|
-
_b.lastName),
|
|
349
|
-
h("p", { style: { fontSize: "var(--sl-font-size-medium)" }, title: (_c = states.user) === null || _c === void 0 ? void 0 : _c.email }, (_d = states.user) === null || _d === void 0 ? void 0 : _d.email))),
|
|
350
|
-
h("sl-button", { type: "primary", loading: states.loading, onClick: () => {
|
|
351
|
-
callbacks.resetForm();
|
|
352
|
-
callbacks.setShowEdit(true);
|
|
353
|
-
}, exportparts: "base: primarybutton-base" }, text.editprofiletext)));
|
|
314
|
+
const stat = getStat(res);
|
|
315
|
+
return { ...stat, loading: res.loading };
|
|
354
316
|
};
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
317
|
+
const referralsCountQuery = (programId,
|
|
318
|
+
// locale
|
|
319
|
+
_, status) => {
|
|
320
|
+
const programFilter = programId === "classic"
|
|
321
|
+
? { programId_exists: false }
|
|
322
|
+
: { programId_eq: programId };
|
|
323
|
+
const convertedFilter = status && status == "converted"
|
|
324
|
+
? { dateConverted_exists: true }
|
|
325
|
+
: status && status == "started"
|
|
326
|
+
? { dateConverted_exists: false }
|
|
327
|
+
: {};
|
|
328
|
+
const queryFilter = { ...programFilter, ...convertedFilter };
|
|
329
|
+
return debugQuery(dist.gql `
|
|
330
|
+
query ($queryFilter: ReferralFilterInput) {
|
|
331
|
+
viewer {
|
|
332
|
+
... on User {
|
|
333
|
+
referrals(filter: $queryFilter) {
|
|
334
|
+
totalCount
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
365
338
|
}
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
372
|
-
}
|
|
373
|
-
`;
|
|
374
|
-
function useShareLink(props) {
|
|
375
|
-
var _a, _b;
|
|
376
|
-
const { programId = H() } = props;
|
|
377
|
-
const user = J();
|
|
378
|
-
const engagementMedium = B();
|
|
379
|
-
const contextData = Fn(REFERRAL_CODES_NAMESPACE);
|
|
380
|
-
const { data } = wn(MessageLinkQuery, { programId, engagementMedium }, !(user === null || user === void 0 ? void 0 : user.jwt) || !!props.linkOverride || (contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) !== undefined);
|
|
381
|
-
const [sendLoadEvent] = $e(WIDGET_ENGAGEMENT_EVENT);
|
|
382
|
-
const [setCopied, copiedRes] = $e(SET_CODE_COPIED);
|
|
383
|
-
const copyString = (_b = ((contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) || ((_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink))) !== null && _b !== void 0 ? _b :
|
|
384
|
-
// Shown during loading
|
|
385
|
-
"...";
|
|
386
|
-
const [open, setOpen] = useState(false);
|
|
387
|
-
async function onClick() {
|
|
388
|
-
if (contextData) {
|
|
389
|
-
await setCopied({ referralCode: contextData.referralCode });
|
|
390
|
-
contextData.refresh();
|
|
391
|
-
}
|
|
392
|
-
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
393
|
-
// Only if called from a user-initiated event
|
|
394
|
-
navigator.clipboard.writeText(copyString);
|
|
395
|
-
setOpen(true);
|
|
396
|
-
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
397
|
-
sendLoadEvent({
|
|
398
|
-
eventMeta: {
|
|
399
|
-
programId,
|
|
400
|
-
id: user === null || user === void 0 ? void 0 : user.id,
|
|
401
|
-
accountId: user === null || user === void 0 ? void 0 : user.accountId,
|
|
402
|
-
type: "USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",
|
|
403
|
-
meta: {
|
|
404
|
-
engagementMedium,
|
|
405
|
-
shareMedium: "DIRECT",
|
|
406
|
-
},
|
|
407
|
-
},
|
|
339
|
+
`, { queryFilter }, (res) => {
|
|
340
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
341
|
+
return ({
|
|
342
|
+
value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
|
|
343
|
+
statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.referrals) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
|
|
408
344
|
});
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
`;
|
|
431
|
-
function NativeShare(props, directLink, undefinedErrorText, unsupportedPlatformText) {
|
|
432
|
-
const title = props.sharetitle || "Share title";
|
|
433
|
-
const text = props.sharetext || "Share text";
|
|
434
|
-
if (directLink === "undefined") {
|
|
435
|
-
return alert(undefinedErrorText);
|
|
436
|
-
}
|
|
437
|
-
if (window.navigator.share) {
|
|
438
|
-
window.navigator
|
|
439
|
-
.share({
|
|
440
|
-
title,
|
|
441
|
-
text,
|
|
442
|
-
url: directLink,
|
|
443
|
-
})
|
|
444
|
-
.catch((error) => console.error("Error on web share", error));
|
|
445
|
-
}
|
|
446
|
-
else {
|
|
447
|
-
alert(unsupportedPlatformText);
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
function FacebookShare(directLink, messageLink, errorText) {
|
|
451
|
-
if (messageLink === "undefined" || directLink === "undefined") {
|
|
452
|
-
return alert(errorText);
|
|
453
|
-
}
|
|
454
|
-
if (typeof SquatchAndroid.shareOnFacebook !== "undefined") {
|
|
455
|
-
return SquatchAndroid.shareOnFacebook(directLink, messageLink);
|
|
456
|
-
}
|
|
457
|
-
else {
|
|
458
|
-
return GenericShare(messageLink, errorText);
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
function GenericShare(messageLink, errorText) {
|
|
462
|
-
return messageLink ? (window.location.href = messageLink) : alert(errorText);
|
|
463
|
-
}
|
|
464
|
-
function useShareButton(props) {
|
|
465
|
-
var _a, _b, _c, _d;
|
|
466
|
-
const { sharetitle, sharetext, medium } = props;
|
|
467
|
-
const programId = props.programId ? props.programId : H();
|
|
468
|
-
const user = J();
|
|
469
|
-
const engagementMedium = B();
|
|
470
|
-
const variables = {
|
|
471
|
-
engagementMedium,
|
|
472
|
-
programId: programId,
|
|
473
|
-
shareMedium: medium.toUpperCase(),
|
|
474
|
-
};
|
|
475
|
-
const contextData = Fn(REFERRAL_CODES_NAMESPACE);
|
|
476
|
-
const overrideData = contextData === null || contextData === void 0 ? void 0 : contextData[medium];
|
|
477
|
-
// only queries if a programId is available
|
|
478
|
-
const res = wn(MessageLinkQuery$1, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId || overrideData !== undefined);
|
|
479
|
-
const [setCopied, copiedRes] = $e(SET_CODE_COPIED);
|
|
480
|
-
const directLink = (overrideData === null || overrideData === void 0 ? void 0 : overrideData.shareLink) || ((_b = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.shareLink);
|
|
481
|
-
const environment = getEnvironmentSDK();
|
|
482
|
-
const hide = (medium.toLocaleUpperCase() === "SMS" &&
|
|
483
|
-
window.orientation === undefined) ||
|
|
484
|
-
(medium.toLocaleUpperCase() === "DIRECT" && !window.navigator.share);
|
|
485
|
-
const messageLink = (overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.messageLink);
|
|
486
|
-
async function onClick() {
|
|
487
|
-
if (overrideData) {
|
|
488
|
-
await setCopied({ referralCode: contextData.referralCode });
|
|
489
|
-
contextData.refresh();
|
|
490
|
-
}
|
|
491
|
-
if (medium.toLocaleUpperCase() === "FACEBOOK" &&
|
|
492
|
-
environment.type === "SquatchAndroid") {
|
|
493
|
-
FacebookShare(directLink, messageLink, props.errorText);
|
|
494
|
-
}
|
|
495
|
-
else if (medium.toLocaleUpperCase() === "DIRECT") {
|
|
496
|
-
NativeShare({ sharetitle, sharetext }, directLink, props.errorText, props.unsupportedPlatformText);
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
const isPlainLink = !(medium.toLocaleUpperCase() === "FACEBOOK" &&
|
|
500
|
-
environment.type === "SquatchAndroid") &&
|
|
501
|
-
medium.toLocaleUpperCase() !== "DIRECT" &&
|
|
502
|
-
messageLink;
|
|
503
|
-
const userAgent = window.navigator.userAgent.toLowerCase(), safari = /safari/.test(userAgent), ios = /iphone|ipod|ipad/.test(userAgent);
|
|
504
|
-
const openInSameTab = ios && !safari;
|
|
505
|
-
return {
|
|
506
|
-
...props,
|
|
507
|
-
loading: res.loading && !(overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink),
|
|
508
|
-
messageLink,
|
|
509
|
-
isPlainLink,
|
|
510
|
-
onClick,
|
|
511
|
-
openInSameTab,
|
|
512
|
-
hide,
|
|
513
|
-
};
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
const debug = browser("sq:useBigStat");
|
|
517
|
-
const LOADING = "...";
|
|
518
|
-
const debugQuery = (query, variables, getStat) => {
|
|
519
|
-
const res = wn(query, variables);
|
|
520
|
-
if (!(res === null || res === void 0 ? void 0 : res.data) && !res.loading) {
|
|
521
|
-
console.error("issue getting stat:", res);
|
|
522
|
-
}
|
|
523
|
-
const stat = getStat(res);
|
|
524
|
-
return { ...stat, loading: res.loading };
|
|
525
|
-
};
|
|
526
|
-
const referralsCountQuery = (programId,
|
|
527
|
-
// locale
|
|
528
|
-
_, status) => {
|
|
529
|
-
const programFilter = programId === "classic"
|
|
530
|
-
? { programId_exists: false }
|
|
531
|
-
: { programId_eq: programId };
|
|
532
|
-
const convertedFilter = status && status == "converted"
|
|
533
|
-
? { dateConverted_exists: true }
|
|
534
|
-
: status && status == "started"
|
|
535
|
-
? { dateConverted_exists: false }
|
|
536
|
-
: {};
|
|
537
|
-
const queryFilter = { ...programFilter, ...convertedFilter };
|
|
538
|
-
return debugQuery(dist.gql `
|
|
539
|
-
query ($queryFilter: ReferralFilterInput) {
|
|
540
|
-
viewer {
|
|
541
|
-
... on User {
|
|
542
|
-
referrals(filter: $queryFilter) {
|
|
543
|
-
totalCount
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
`, { queryFilter }, (res) => {
|
|
549
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
550
|
-
return ({
|
|
551
|
-
value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
|
|
552
|
-
statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.referrals) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
|
|
553
|
-
});
|
|
554
|
-
});
|
|
555
|
-
};
|
|
556
|
-
const programGoalsQuery = (programId, locale, metricType, goalId) => {
|
|
557
|
-
// Confirm this behaviour
|
|
558
|
-
if (programId === "classic")
|
|
559
|
-
return null;
|
|
560
|
-
return debugQuery(dist.gql `
|
|
561
|
-
query {
|
|
562
|
-
viewer {
|
|
563
|
-
... on User {
|
|
564
|
-
programGoals {
|
|
565
|
-
goalId
|
|
566
|
-
programId
|
|
567
|
-
count
|
|
568
|
-
conversionCount
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
}
|
|
345
|
+
});
|
|
346
|
+
};
|
|
347
|
+
const programGoalsQuery = (programId, locale, metricType, goalId) => {
|
|
348
|
+
// Confirm this behaviour
|
|
349
|
+
if (programId === "classic")
|
|
350
|
+
return null;
|
|
351
|
+
return debugQuery(dist.gql `
|
|
352
|
+
query {
|
|
353
|
+
viewer {
|
|
354
|
+
... on User {
|
|
355
|
+
programGoals {
|
|
356
|
+
goalId
|
|
357
|
+
programId
|
|
358
|
+
count
|
|
359
|
+
conversionCount
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
572
363
|
}
|
|
573
364
|
`, { programId, metricType, goalId, locale }, (res) => {
|
|
574
365
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -597,12 +388,18 @@ const customFieldsQuery = (_programId, locale, fieldName, goalId) => {
|
|
|
597
388
|
};
|
|
598
389
|
});
|
|
599
390
|
};
|
|
600
|
-
const referralsMonthQuery = (programId) => {
|
|
391
|
+
const referralsMonthQuery = (programId, status) => {
|
|
601
392
|
const programFilter = programId === "classic"
|
|
602
393
|
? { programId_exists: false }
|
|
603
394
|
: { programId_eq: programId };
|
|
395
|
+
const convertedFilter = status && status == "converted"
|
|
396
|
+
? { dateConverted_exists: true }
|
|
397
|
+
: status && status == "started"
|
|
398
|
+
? { dateConverted_exists: false }
|
|
399
|
+
: {};
|
|
604
400
|
const filter = {
|
|
605
401
|
...programFilter,
|
|
402
|
+
...convertedFilter,
|
|
606
403
|
dateReferralStarted_timeframe: "this_month",
|
|
607
404
|
};
|
|
608
405
|
return debugQuery(dist.gql `
|
|
@@ -1045,6 +842,92 @@ const rewardsAssignedQuery = (programId, locale, type, unit, global = "") => {
|
|
|
1045
842
|
};
|
|
1046
843
|
});
|
|
1047
844
|
};
|
|
845
|
+
const rewardsExpiredQuery = (programId, locale, type, unit, global = "") => {
|
|
846
|
+
return debugQuery(dist.gql `
|
|
847
|
+
query (
|
|
848
|
+
$programId: ID
|
|
849
|
+
$type: RewardType
|
|
850
|
+
$unit: String!
|
|
851
|
+
$locale: RSLocale
|
|
852
|
+
) {
|
|
853
|
+
fallback: formatRewardPrettyValue(
|
|
854
|
+
value: 0
|
|
855
|
+
unit: $unit
|
|
856
|
+
locale: $locale
|
|
857
|
+
formatType: UNIT_FORMATTED
|
|
858
|
+
)
|
|
859
|
+
viewer: viewer {
|
|
860
|
+
... on User {
|
|
861
|
+
rewardBalanceDetails(
|
|
862
|
+
programId: $programId
|
|
863
|
+
filter: { type_eq: $type, unit_eq: $unit }
|
|
864
|
+
locale: $locale
|
|
865
|
+
) {
|
|
866
|
+
... on CreditRewardBalance {
|
|
867
|
+
prettyExpiredCredit
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
`, {
|
|
874
|
+
programId: !global && programId !== "classic" ? programId : null,
|
|
875
|
+
type,
|
|
876
|
+
unit,
|
|
877
|
+
locale,
|
|
878
|
+
}, (res) => {
|
|
879
|
+
var _a, _b, _c, _d, _e;
|
|
880
|
+
const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
|
|
881
|
+
const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
|
|
882
|
+
return {
|
|
883
|
+
value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAssignedCredit) || 0,
|
|
884
|
+
statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyAssignedCredit) || fallback,
|
|
885
|
+
};
|
|
886
|
+
});
|
|
887
|
+
};
|
|
888
|
+
const rewardsCancelledQuery = (programId, locale, type, unit, global = "") => {
|
|
889
|
+
return debugQuery(dist.gql `
|
|
890
|
+
query (
|
|
891
|
+
$programId: ID
|
|
892
|
+
$type: RewardType
|
|
893
|
+
$unit: String!
|
|
894
|
+
$locale: RSLocale
|
|
895
|
+
) {
|
|
896
|
+
fallback: formatRewardPrettyValue(
|
|
897
|
+
value: 0
|
|
898
|
+
unit: $unit
|
|
899
|
+
locale: $locale
|
|
900
|
+
formatType: UNIT_FORMATTED
|
|
901
|
+
)
|
|
902
|
+
viewer: viewer {
|
|
903
|
+
... on User {
|
|
904
|
+
rewardBalanceDetails(
|
|
905
|
+
programId: $programId
|
|
906
|
+
filter: { type_eq: $type, unit_eq: $unit }
|
|
907
|
+
locale: $locale
|
|
908
|
+
) {
|
|
909
|
+
... on CreditRewardBalance {
|
|
910
|
+
prettyCancelledCredit
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
`, {
|
|
917
|
+
programId: !global && programId !== "classic" ? programId : null,
|
|
918
|
+
type,
|
|
919
|
+
unit,
|
|
920
|
+
locale,
|
|
921
|
+
}, (res) => {
|
|
922
|
+
var _a, _b, _c, _d, _e;
|
|
923
|
+
const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
|
|
924
|
+
const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
|
|
925
|
+
return {
|
|
926
|
+
value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAssignedCredit) || 0,
|
|
927
|
+
statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyAssignedCredit) || fallback,
|
|
928
|
+
};
|
|
929
|
+
});
|
|
930
|
+
};
|
|
1048
931
|
const rewardsAvailableQuery = (programId, locale, type, unit, global = "") => {
|
|
1049
932
|
return debugQuery(dist.gql `
|
|
1050
933
|
query (
|
|
@@ -1250,6 +1133,14 @@ const queries = {
|
|
|
1250
1133
|
label: "Rewards Pending",
|
|
1251
1134
|
query: rewardsPendingQuery,
|
|
1252
1135
|
},
|
|
1136
|
+
rewardsExpired: {
|
|
1137
|
+
label: "Rewards Expired",
|
|
1138
|
+
query: rewardsExpiredQuery,
|
|
1139
|
+
},
|
|
1140
|
+
rewardsCancelled: {
|
|
1141
|
+
label: "Rewards Cancelled",
|
|
1142
|
+
query: rewardsCancelledQuery,
|
|
1143
|
+
},
|
|
1253
1144
|
rewardsRedeemed: {
|
|
1254
1145
|
label: "Rewards Paid",
|
|
1255
1146
|
query: rewardsRedeemedQuery,
|
|
@@ -1275,495 +1166,257 @@ const queries = {
|
|
|
1275
1166
|
query: referralsMonthQuery,
|
|
1276
1167
|
},
|
|
1277
1168
|
referralsWeek: {
|
|
1278
|
-
label: "Referrals - This Week",
|
|
1279
|
-
query: referralsWeekQuery,
|
|
1280
|
-
},
|
|
1281
|
-
rewardsCount: {
|
|
1282
|
-
label: "Rewards",
|
|
1283
|
-
query: rewardsCountQuery,
|
|
1284
|
-
},
|
|
1285
|
-
rewardsCountFiltered: {
|
|
1286
|
-
label: "Rewards",
|
|
1287
|
-
query: rewardsCountFilteredQuery,
|
|
1288
|
-
},
|
|
1289
|
-
integrationRewardsCountFiltered: {
|
|
1290
|
-
label: "Rewards",
|
|
1291
|
-
query: integrationRewardsCountFilteredQuery,
|
|
1292
|
-
},
|
|
1293
|
-
rewardsMonth: {
|
|
1294
|
-
label: "Rewards - This Month",
|
|
1295
|
-
query: rewardsMonthQuery,
|
|
1296
|
-
},
|
|
1297
|
-
rewardsWeek: {
|
|
1298
|
-
label: "Rewards - This Week",
|
|
1299
|
-
query: rewardsWeekQuery,
|
|
1300
|
-
},
|
|
1301
|
-
rewardBalance: {
|
|
1302
|
-
label: "Balance - Credit Earned",
|
|
1303
|
-
query: rewardsBalanceQuery,
|
|
1304
|
-
},
|
|
1305
|
-
programGoals: {
|
|
1306
|
-
label: "Program Goals",
|
|
1307
|
-
query: programGoalsQuery,
|
|
1308
|
-
},
|
|
1309
|
-
customFields: {
|
|
1310
|
-
label: "Custom Fields",
|
|
1311
|
-
query: customFieldsQuery,
|
|
1312
|
-
},
|
|
1313
|
-
traffic: {
|
|
1314
|
-
label: "Traffic",
|
|
1315
|
-
query: trafficQuery,
|
|
1316
|
-
},
|
|
1317
|
-
userStats: {
|
|
1318
|
-
label: "User Stat",
|
|
1319
|
-
query: userStatsQuery,
|
|
1320
|
-
},
|
|
1321
|
-
payoutBalance: {
|
|
1322
|
-
label: "Payout Balance",
|
|
1323
|
-
query: payoutBalanceQuery,
|
|
1324
|
-
},
|
|
1325
|
-
};
|
|
1326
|
-
// this should be exposed in documentation somehow
|
|
1327
|
-
const StatPaths = [
|
|
1328
|
-
{ name: "programGoals", route: "/(programGoals)/:metricType/:goalId" },
|
|
1329
|
-
{ name: "customFields", route: "/(customFields)/:customField" },
|
|
1330
|
-
{ name: "referralsCount", route: "/(referralsCount)/:status?" },
|
|
1331
|
-
{ name: "referralsMonth", route: "/(referralsMonth)" },
|
|
1332
|
-
{ name: "referralsWeek", route: "/(referralsWeek)" },
|
|
1333
|
-
{ name: "rewardsCount", route: "/(rewardsCount)/:global?" },
|
|
1334
|
-
{ name: "rewardsMonth", route: "/(rewardsMonth)/:global?" },
|
|
1335
|
-
{ name: "rewardsWeek", route: "/(rewardsWeek)/:global?" },
|
|
1336
|
-
{
|
|
1337
|
-
name: "rewardsCountFiltered",
|
|
1338
|
-
route: "/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?",
|
|
1339
|
-
},
|
|
1340
|
-
{
|
|
1341
|
-
name: "integrationRewardsCountFiltered",
|
|
1342
|
-
route: "/(integrationRewardsCountFiltered)/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?",
|
|
1343
|
-
},
|
|
1344
|
-
{
|
|
1345
|
-
name: "rewardsAssigned",
|
|
1346
|
-
route: "/(rewardsAssigned)/:statType/:unit/:global?",
|
|
1347
|
-
},
|
|
1348
|
-
{
|
|
1349
|
-
name: "rewardsPending",
|
|
1350
|
-
route: "/(rewardsPending)/:statType/:unit/:global?",
|
|
1351
|
-
},
|
|
1352
|
-
{
|
|
1353
|
-
name: "rewardsRedeemed",
|
|
1354
|
-
route: "/(rewardsRedeemed)/:statType/:unit/:global?",
|
|
1355
|
-
},
|
|
1356
|
-
{
|
|
1357
|
-
name: "rewardsRedeemedWeek",
|
|
1358
|
-
route: "/(rewardsRedeemedWeek)/:statType/:unit/:global?",
|
|
1359
|
-
},
|
|
1360
|
-
{
|
|
1361
|
-
name: "rewardsRedeemedMonth",
|
|
1362
|
-
route: "/(rewardsRedeemedMonth)/:statType/:unit/:global?",
|
|
1363
|
-
},
|
|
1364
|
-
{
|
|
1365
|
-
name: "rewardsAvailable",
|
|
1366
|
-
route: "/(rewardsAvailable)/:statType/:unit/:global?",
|
|
1367
|
-
},
|
|
1368
|
-
{
|
|
1369
|
-
name: "rewardBalance",
|
|
1370
|
-
route: "/(rewardBalance)/:statType/:unit/:format([prettyValue|value]*)?/:global?",
|
|
1371
|
-
},
|
|
1372
|
-
{
|
|
1373
|
-
name: "traffic",
|
|
1374
|
-
route: "/(traffic)",
|
|
1375
|
-
},
|
|
1376
|
-
{
|
|
1377
|
-
name: "userStats",
|
|
1378
|
-
route: "/(userStats)/:statId",
|
|
1379
|
-
},
|
|
1380
|
-
{
|
|
1381
|
-
name: "payoutBalance",
|
|
1382
|
-
route: "/(payoutBalance)",
|
|
1383
|
-
},
|
|
1384
|
-
];
|
|
1385
|
-
const StatPatterns = StatPaths.map((pattern) => pathToRegexp(pattern.route));
|
|
1386
|
-
function useBigStat(props) {
|
|
1387
|
-
var _a;
|
|
1388
|
-
const { statType, flexReverse, alignment, programId = H(), } = props;
|
|
1389
|
-
// triggers a re-render if the label is manually changed
|
|
1390
|
-
useChildElements();
|
|
1391
|
-
const locale = L();
|
|
1392
|
-
const userIdent = J();
|
|
1393
|
-
const re = useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
|
|
1394
|
-
if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
|
|
1395
|
-
return {
|
|
1396
|
-
props: {
|
|
1397
|
-
value: 0,
|
|
1398
|
-
statvalue: "!!!",
|
|
1399
|
-
flexReverse,
|
|
1400
|
-
alignment,
|
|
1401
|
-
loading: false,
|
|
1402
|
-
},
|
|
1403
|
-
label: "BAD PROP TYPE",
|
|
1404
|
-
};
|
|
1405
|
-
}
|
|
1406
|
-
const result = re.exec(statType);
|
|
1407
|
-
const queryName = result[1];
|
|
1408
|
-
const statPath = StatPaths.find((pattern) => pattern.name === queryName);
|
|
1409
|
-
// Get a list all possible keys in path
|
|
1410
|
-
const keys = [];
|
|
1411
|
-
const regex = pathToRegexp(statPath === null || statPath === void 0 ? void 0 : statPath.route, keys, {
|
|
1412
|
-
strict: false,
|
|
1413
|
-
sensitive: false,
|
|
1414
|
-
end: true,
|
|
1415
|
-
});
|
|
1416
|
-
const allQueryArgs = regex.exec(statType);
|
|
1417
|
-
// Retrieve all key values in order including undefined
|
|
1418
|
-
const queryArgs = keys.map((_, i) => allQueryArgs[i + 1] ? decodeURIComponent(allQueryArgs[i + 1]) : undefined);
|
|
1419
|
-
// remove query name from list
|
|
1420
|
-
queryArgs.shift();
|
|
1421
|
-
const label = queries[queryName].label;
|
|
1422
|
-
const stat = (userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt) && queries[queryName].query(programId, locale, ...queryArgs);
|
|
1423
|
-
debug("stat:", stat);
|
|
1424
|
-
return {
|
|
1425
|
-
props: {
|
|
1426
|
-
value: stat === null || stat === void 0 ? void 0 : stat.value,
|
|
1427
|
-
statvalue: (_a = stat === null || stat === void 0 ? void 0 : stat.statvalue) !== null && _a !== void 0 ? _a : LOADING,
|
|
1428
|
-
loading: stat === null || stat === void 0 ? void 0 : stat.loading,
|
|
1429
|
-
flexReverse,
|
|
1430
|
-
alignment,
|
|
1431
|
-
},
|
|
1432
|
-
label,
|
|
1433
|
-
};
|
|
1434
|
-
}
|
|
1435
|
-
|
|
1436
|
-
function useDemoBigStat(props) {
|
|
1437
|
-
const { statType } = props;
|
|
1438
|
-
const re = useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
|
|
1439
|
-
// triggers a re-render if the label is manually changed
|
|
1440
|
-
useChildElements();
|
|
1441
|
-
if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
|
|
1442
|
-
return {
|
|
1443
|
-
props: {
|
|
1444
|
-
value: 0,
|
|
1445
|
-
statvalue: "!!!",
|
|
1446
|
-
loading: false,
|
|
1447
|
-
flexReverse: false,
|
|
1448
|
-
alignment: "center",
|
|
1449
|
-
},
|
|
1450
|
-
label: "BAD PROP TYPE",
|
|
1451
|
-
};
|
|
1452
|
-
}
|
|
1453
|
-
const result = re.exec(statType);
|
|
1454
|
-
const queryName = result[1];
|
|
1455
|
-
const label = queries[queryName].label;
|
|
1456
|
-
return {
|
|
1457
|
-
props: cjs({
|
|
1458
|
-
statvalue: "12345",
|
|
1459
|
-
value: 0,
|
|
1460
|
-
flexReverse: false,
|
|
1461
|
-
alignment: "center",
|
|
1462
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a }),
|
|
1463
|
-
label: label !== null && label !== void 0 ? label : "Demo Label",
|
|
1464
|
-
};
|
|
1465
|
-
}
|
|
1466
|
-
|
|
1467
|
-
function StatContainerView(props, children) {
|
|
1468
|
-
const divideSpace = () => {
|
|
1469
|
-
const spaceValue = getComputedStyle(document.documentElement).getPropertyValue(`--sl-spacing-${props.space}`);
|
|
1470
|
-
return `${Math.floor(parseInt(spaceValue) / 2)}rem`;
|
|
1471
|
-
};
|
|
1472
|
-
// Dependent on props, not feasiable to move out
|
|
1473
|
-
const style = {
|
|
1474
|
-
StatContainer: {
|
|
1475
|
-
width: "100%",
|
|
1476
|
-
display: props.display || "grid",
|
|
1477
|
-
"grid-template-columns": "repeat(auto-fill, minmax(130px, auto))",
|
|
1478
|
-
gap: divideSpace(),
|
|
1479
|
-
// First set of styles applies when shadow DOM is disabled, second set applies when shadow DOM is enabled
|
|
1480
|
-
"& > *": {
|
|
1481
|
-
"border-right": "1px solid #EAEAEA",
|
|
1482
|
-
"padding-right": divideSpace(),
|
|
1483
|
-
},
|
|
1484
|
-
"& > :last-child": {
|
|
1485
|
-
"border-right": "none",
|
|
1486
|
-
},
|
|
1487
|
-
"& > ::slotted(*)": {
|
|
1488
|
-
"border-right": "1px solid #EAEAEA",
|
|
1489
|
-
"padding-right": divideSpace(),
|
|
1490
|
-
height: "100%",
|
|
1491
|
-
},
|
|
1492
|
-
"& > ::slotted(*:last-child)": {
|
|
1493
|
-
"border-right": "none",
|
|
1494
|
-
},
|
|
1495
|
-
"@media screen and (max-width: 430px)": {
|
|
1496
|
-
"& > ::slotted(*)": {
|
|
1497
|
-
borderRight: "none",
|
|
1498
|
-
},
|
|
1499
|
-
},
|
|
1500
|
-
},
|
|
1501
|
-
StatFrame: {
|
|
1502
|
-
display: "flex",
|
|
1503
|
-
},
|
|
1504
|
-
BorderFix: {
|
|
1505
|
-
"border-right": "1px solid transparent",
|
|
1506
|
-
width: "0px",
|
|
1507
|
-
"margin-left": "-1px",
|
|
1508
|
-
},
|
|
1509
|
-
};
|
|
1510
|
-
const sheet = createStyleSheet(style);
|
|
1511
|
-
const styleString = sheet.toString();
|
|
1512
|
-
return (h("div", { class: sheet.classes.StatFrame, part: "sqm-base" },
|
|
1513
|
-
h("div", { class: sheet.classes.StatContainer, part: "sqm-inner-container" },
|
|
1514
|
-
h("style", { type: "text/css" }, styleString),
|
|
1515
|
-
children),
|
|
1516
|
-
h("div", { class: sheet.classes.BorderFix, part: "sqm-border" })));
|
|
1517
|
-
}
|
|
1518
|
-
|
|
1519
|
-
function PortalChangePasswordView(props) {
|
|
1520
|
-
const { states, callbacks } = props;
|
|
1521
|
-
const style = {
|
|
1522
|
-
Dialog: {
|
|
1523
|
-
padding: "0",
|
|
1524
|
-
"&::part(close-button)": {
|
|
1525
|
-
"margin-top": "var(--sl-spacing-medium)",
|
|
1526
|
-
},
|
|
1527
|
-
"&::part(body)": {
|
|
1528
|
-
padding: "0 var(--sl-spacing-x-large) var(--sl-spacing-x-large) var(--sl-spacing-x-large)",
|
|
1529
|
-
},
|
|
1530
|
-
},
|
|
1531
|
-
Error: {
|
|
1532
|
-
"&::part(erroralert-base)": {
|
|
1533
|
-
"margin-bottom": "15px",
|
|
1534
|
-
},
|
|
1535
|
-
},
|
|
1536
|
-
Success: {
|
|
1537
|
-
"&::part(successalert-base)": {
|
|
1538
|
-
"margin-bottom": "15px",
|
|
1539
|
-
},
|
|
1540
|
-
},
|
|
1541
|
-
InputContainer: {
|
|
1542
|
-
"& > :not(:last-child)": {
|
|
1543
|
-
"margin-bottom": "var(--sl-spacing-x-large)",
|
|
1544
|
-
},
|
|
1545
|
-
},
|
|
1546
|
-
CancelButton: {
|
|
1547
|
-
width: "25%",
|
|
1548
|
-
margin: "var(--sl-spacing-large) auto",
|
|
1549
|
-
},
|
|
1550
|
-
PasswordField: {
|
|
1551
|
-
marginBottom: "var(--sl-spacing-large) !important",
|
|
1552
|
-
display: "block",
|
|
1553
|
-
},
|
|
1554
|
-
ChangePasswordButton: {
|
|
1555
|
-
paddingTop: "var(--sl-spacing-x-large)",
|
|
1556
|
-
},
|
|
1557
|
-
};
|
|
1558
|
-
const sheet = createStyleSheet(style);
|
|
1559
|
-
const styleString = sheet.toString();
|
|
1560
|
-
return (h("div", null,
|
|
1561
|
-
h("style", { type: "text/css" }, styleString),
|
|
1562
|
-
h("sl-dialog", { class: sheet.classes.Dialog, open: states.open, "onSl-hide": () => callbacks.setOpen(false) },
|
|
1563
|
-
h(PortalSectionView, Object.assign({}, {
|
|
1564
|
-
labelMargin: "x-large",
|
|
1565
|
-
padding: "none",
|
|
1566
|
-
label: (h(TextSpanView, Object.assign({}, { type: "h2" }), states.content.modalChangePasswordHeader)),
|
|
1567
|
-
content: (h(PortalContainerView, Object.assign({}, { direction: "column", padding: "none", gap: "32px" }),
|
|
1568
|
-
states.error && (h("sqm-form-message", { class: sheet.classes.Error, type: "error", exportparts: "erroralert-icon" },
|
|
1569
|
-
h("div", { part: "erroralert-text" }, states.error))),
|
|
1570
|
-
states.success && (h("sqm-form-message", { class: sheet.classes.Success, type: "success", exportparts: "successalert-icon" },
|
|
1571
|
-
h("div", { part: "successalert-text" }, states.content.successMessage))),
|
|
1572
|
-
h("sl-form", { "onSl-submit": callbacks.submit },
|
|
1573
|
-
h("div", { class: sheet.classes.InputContainer },
|
|
1574
|
-
h("sqm-password-field", { exportparts: "input-label: input-label", class: sheet.classes.PasswordField, fieldLabel: states.content.passwordFieldLabel, meetsRequirementsText: states.content.meetsRequirementsText, doesNotMeetRequirementsText: states.content.doesNotMeetRequirementsText, minErrorText: states.content.minErrorText, uppercaseErrorText: states.content.uppercaseErrorText, lowercaseErrorText: states.content.lowercaseErrorText, hasErrorText: states.content.hasErrorText }),
|
|
1575
|
-
h("sl-input", { exportparts: "label: input-label, base: input-base", name: "/confirmPassword", label: states.content.confirmPasswordFieldLabel, required: true, togglePassword: true, disabled: states.loading, type: "password" })),
|
|
1576
|
-
h(PortalContainerView, Object.assign({}, { direction: "row", padding: "none", gap: "20px" }),
|
|
1577
|
-
h("sl-button", { class: sheet.classes.ChangePasswordButton, type: "primary", submit: true, loading: states.loading }, states.content.changePasswordButtonText),
|
|
1578
|
-
h("sl-button", { class: sheet.classes.CancelButton, type: "text", onClick: () => callbacks.setOpen(false) }, states.content.cancelText))))),
|
|
1579
|
-
}))),
|
|
1580
|
-
h(PortalSectionView, Object.assign({}, {
|
|
1581
|
-
labelMargin: "x-large",
|
|
1582
|
-
padding: "xxx-large",
|
|
1583
|
-
label: (h(TextSpanView, Object.assign({}, { type: "h2" }), states.content.portalChangePasswordHeader)),
|
|
1584
|
-
content: (h("sl-button", { onClick: () => callbacks.setOpen(true) }, states.content.portalChangePasswordButtonText)),
|
|
1585
|
-
}),
|
|
1586
|
-
h("style", { type: "text/css" }, styleString))));
|
|
1587
|
-
}
|
|
1588
|
-
|
|
1589
|
-
const style$2 = {
|
|
1590
|
-
Wrapper: { ...AuthWrapper, "max-width": "600px" },
|
|
1591
|
-
Column: AuthColumn,
|
|
1592
|
-
HostBlock: HostBlock,
|
|
1593
|
-
":host": {
|
|
1594
|
-
margin: "0 auto",
|
|
1595
|
-
width: "100%",
|
|
1596
|
-
},
|
|
1597
|
-
ButtonsContainer: AuthButtonsContainer,
|
|
1598
|
-
ErrorStyle: ErrorStyles,
|
|
1599
|
-
};
|
|
1600
|
-
const vanillaStyle = `
|
|
1601
|
-
sqm-portal-register {
|
|
1602
|
-
margin: 0 auto;
|
|
1603
|
-
width: 100%;
|
|
1604
|
-
display: block;
|
|
1605
|
-
}
|
|
1606
|
-
|
|
1607
|
-
:host{
|
|
1608
|
-
display: block;
|
|
1609
|
-
}
|
|
1610
|
-
|
|
1611
|
-
:host([hidden]) {
|
|
1612
|
-
display: none;
|
|
1613
|
-
}
|
|
1614
|
-
`;
|
|
1615
|
-
const sheet$2 = createStyleSheet(style$2);
|
|
1616
|
-
const styleString$2 = sheet$2.toString();
|
|
1617
|
-
function PortalRegisterView(props) {
|
|
1618
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
1619
|
-
const { states, refs, callbacks, content } = props;
|
|
1620
|
-
if (states.error) {
|
|
1621
|
-
window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
|
|
1622
|
-
}
|
|
1623
|
-
return (h("div", { class: sheet$2.classes.Wrapper, part: "sqm-base" },
|
|
1624
|
-
h("style", { type: "text/css" },
|
|
1625
|
-
vanillaStyle,
|
|
1626
|
-
styleString$2),
|
|
1627
|
-
h(TextSpanView, { type: "h3" }, content.pageLabel),
|
|
1628
|
-
h("sl-form", { class: sheet$2.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
1629
|
-
states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
1630
|
-
h("div", { part: "erroralert-text" }, props.states.error))),
|
|
1631
|
-
content.formData,
|
|
1632
|
-
!states.hideInputs && (h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true, validationError: ({ value }) => {
|
|
1633
|
-
if (!value) {
|
|
1634
|
-
return content.requiredFieldErrorMessage;
|
|
1635
|
-
}
|
|
1636
|
-
// this matches shoelace validation, but could be better
|
|
1637
|
-
if (!value.includes("@")) {
|
|
1638
|
-
return content.invalidEmailErrorMessage;
|
|
1639
|
-
}
|
|
1640
|
-
} }, (((_b = (_a = states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
|
|
1641
|
-
class: sheet$2.classes.ErrorStyle,
|
|
1642
|
-
helpText: ((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
|
|
1643
|
-
content.requiredFieldErrorMessage,
|
|
1644
|
-
}
|
|
1645
|
-
: [])))),
|
|
1646
|
-
!states.hideInputs && (h("sqm-password-field", { fieldLabel: content.passwordLabel, "disable-validation": states.disablePasswordValidation, meetsRequirementsText: content.meetsRequirementsText, doesNotMeetRequirementsText: content.doesNotMeetRequirementsText, minErrorText: content.minErrorText, uppercaseErrorText: content.uppercaseErrorText, lowercaseErrorText: content.lowercaseErrorText, hasErrorText: content.hasErrorText })),
|
|
1647
|
-
content.passwordField,
|
|
1648
|
-
!states.hideInputs && states.confirmPassword && (h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "password", name: "/confirmPassword", label: content.confirmPasswordLabel, disabled: states.loading || ((_e = states.registrationFormState) === null || _e === void 0 ? void 0 : _e.disabled), required: true }, (((_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.confirmPassword) ? {
|
|
1649
|
-
value: (_j = (_h = states.registrationFormState) === null || _h === void 0 ? void 0 : _h.initialData) === null || _j === void 0 ? void 0 : _j.confirmPassword,
|
|
1650
|
-
}
|
|
1651
|
-
: {}), (((_l = (_k = states.registrationFormState) === null || _k === void 0 ? void 0 : _k.validationErrors) === null || _l === void 0 ? void 0 : _l.confirmPassword) ? {
|
|
1652
|
-
class: sheet$2.classes.ErrorStyle,
|
|
1653
|
-
helpText: ((_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.validationErrors) === null || _o === void 0 ? void 0 : _o.confirmPassword) || content.requiredFieldErrorMessage,
|
|
1654
|
-
}
|
|
1655
|
-
: [])))),
|
|
1656
|
-
content.terms,
|
|
1657
|
-
h("div", { class: sheet$2.classes.ButtonsContainer },
|
|
1658
|
-
h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"),
|
|
1659
|
-
content.secondaryButton))));
|
|
1660
|
-
}
|
|
1661
|
-
|
|
1662
|
-
const style$3 = {
|
|
1663
|
-
ErrorStyle: {
|
|
1664
|
-
"&::part(control)": {
|
|
1665
|
-
background: "var(--sl-color-danger-10)",
|
|
1666
|
-
borderColor: "var(--sl-color-danger-500)",
|
|
1667
|
-
outline: "var(--sl-color-danger-500)",
|
|
1668
|
-
},
|
|
1669
|
-
"&:host": {
|
|
1670
|
-
"--focus-ring": "0 0 0 var(--sl-focus-ring-width) red !important",
|
|
1671
|
-
},
|
|
1169
|
+
label: "Referrals - This Week",
|
|
1170
|
+
query: referralsWeekQuery,
|
|
1672
1171
|
},
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
color: "var(--sl-color-danger-500)",
|
|
1677
|
-
fontSize: "var(--sl-input-help-text-font-size-medium)",
|
|
1678
|
-
fontFamily: "var(--sl-font-sans)",
|
|
1679
|
-
fontWeight: "var(--sl-font-weight-normal)",
|
|
1172
|
+
rewardsCount: {
|
|
1173
|
+
label: "Rewards",
|
|
1174
|
+
query: rewardsCountQuery,
|
|
1680
1175
|
},
|
|
1681
|
-
|
|
1682
|
-
|
|
1176
|
+
rewardsCountFiltered: {
|
|
1177
|
+
label: "Rewards",
|
|
1178
|
+
query: rewardsCountFilteredQuery,
|
|
1179
|
+
},
|
|
1180
|
+
integrationRewardsCountFiltered: {
|
|
1181
|
+
label: "Rewards",
|
|
1182
|
+
query: integrationRewardsCountFilteredQuery,
|
|
1183
|
+
},
|
|
1184
|
+
rewardsMonth: {
|
|
1185
|
+
label: "Rewards - This Month",
|
|
1186
|
+
query: rewardsMonthQuery,
|
|
1187
|
+
},
|
|
1188
|
+
rewardsWeek: {
|
|
1189
|
+
label: "Rewards - This Week",
|
|
1190
|
+
query: rewardsWeekQuery,
|
|
1191
|
+
},
|
|
1192
|
+
rewardBalance: {
|
|
1193
|
+
label: "Balance - Credit Earned",
|
|
1194
|
+
query: rewardsBalanceQuery,
|
|
1195
|
+
},
|
|
1196
|
+
programGoals: {
|
|
1197
|
+
label: "Program Goals",
|
|
1198
|
+
query: programGoalsQuery,
|
|
1199
|
+
},
|
|
1200
|
+
customFields: {
|
|
1201
|
+
label: "Custom Fields",
|
|
1202
|
+
query: customFieldsQuery,
|
|
1203
|
+
},
|
|
1204
|
+
traffic: {
|
|
1205
|
+
label: "Traffic",
|
|
1206
|
+
query: trafficQuery,
|
|
1207
|
+
},
|
|
1208
|
+
userStats: {
|
|
1209
|
+
label: "User Stat",
|
|
1210
|
+
query: userStatsQuery,
|
|
1211
|
+
},
|
|
1212
|
+
payoutBalance: {
|
|
1213
|
+
label: "Payout Balance",
|
|
1214
|
+
query: payoutBalanceQuery,
|
|
1683
1215
|
},
|
|
1684
1216
|
};
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
}
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
}
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
}
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1217
|
+
// TODO: Add rewardsExpired and rewardsCancelled
|
|
1218
|
+
// this should be exposed in documentation somehow
|
|
1219
|
+
const StatPaths = [
|
|
1220
|
+
{ name: "programGoals", route: "/(programGoals)/:metricType/:goalId" },
|
|
1221
|
+
{ name: "customFields", route: "/(customFields)/:customField" },
|
|
1222
|
+
{ name: "referralsCount", route: "/(referralsCount)/:status?" },
|
|
1223
|
+
{ name: "referralsMonth", route: "/(referralsMonth)/:status?" },
|
|
1224
|
+
{ name: "referralsWeek", route: "/(referralsWeek)/:status?" },
|
|
1225
|
+
{ name: "rewardsCount", route: "/(rewardsCount)/:global?" },
|
|
1226
|
+
{ name: "rewardsMonth", route: "/(rewardsMonth)/:global?" },
|
|
1227
|
+
{ name: "rewardsWeek", route: "/(rewardsWeek)/:global?" },
|
|
1228
|
+
{
|
|
1229
|
+
name: "rewardsCountFiltered",
|
|
1230
|
+
route: "/(rewardsCountFiltered)/:statType([FUELTANK|INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?",
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
name: "integrationRewardsCountFiltered",
|
|
1234
|
+
route: "/(integrationRewardsCountFiltered)/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?",
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
name: "rewardsAssigned",
|
|
1238
|
+
route: "/(rewardsAssigned)/:statType/:unit/:global?",
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
name: "rewardsExpired",
|
|
1242
|
+
route: "/(rewardsExpired)/:statType/:unit/:global?",
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
name: "rewardsCancelled",
|
|
1246
|
+
route: "/(rewardsCancelled)/:statType/:unit/:global?",
|
|
1247
|
+
},
|
|
1248
|
+
{
|
|
1249
|
+
name: "rewardsPending",
|
|
1250
|
+
route: "/(rewardsPending)/:statType/:unit/:global?",
|
|
1251
|
+
},
|
|
1252
|
+
{
|
|
1253
|
+
name: "rewardsRedeemed",
|
|
1254
|
+
route: "/(rewardsRedeemed)/:statType/:unit/:global?",
|
|
1255
|
+
},
|
|
1256
|
+
{
|
|
1257
|
+
name: "rewardsRedeemedWeek",
|
|
1258
|
+
route: "/(rewardsRedeemedWeek)/:statType/:unit/:global?",
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
name: "rewardsRedeemedMonth",
|
|
1262
|
+
route: "/(rewardsRedeemedMonth)/:statType/:unit/:global?",
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
name: "rewardsAvailable",
|
|
1266
|
+
route: "/(rewardsAvailable)/:statType/:unit/:global?",
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
name: "rewardBalance",
|
|
1270
|
+
route: "/(rewardBalance)/:statType/:unit/:format([prettyValue|value]*)?/:global?",
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
name: "traffic",
|
|
1274
|
+
route: "/(traffic)",
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
name: "userStats",
|
|
1278
|
+
route: "/(userStats)/:statId",
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
name: "payoutBalance",
|
|
1282
|
+
route: "/(payoutBalance)",
|
|
1283
|
+
},
|
|
1284
|
+
];
|
|
1285
|
+
const StatPatterns = StatPaths.map((pattern) => pathToRegexp(pattern.route));
|
|
1286
|
+
function useBigStat(props) {
|
|
1287
|
+
var _a;
|
|
1288
|
+
const { statType, flexReverse, alignment, programId = H(), } = props;
|
|
1289
|
+
// triggers a re-render if the label is manually changed
|
|
1290
|
+
useChildElements();
|
|
1291
|
+
const locale = L();
|
|
1292
|
+
const userIdent = J();
|
|
1293
|
+
const re = useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
|
|
1294
|
+
if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
|
|
1295
|
+
return {
|
|
1296
|
+
props: {
|
|
1297
|
+
value: 0,
|
|
1298
|
+
statvalue: "-",
|
|
1299
|
+
flexReverse,
|
|
1300
|
+
alignment,
|
|
1301
|
+
loading: false,
|
|
1302
|
+
statTextColor: props.statTextColor,
|
|
1303
|
+
statFontSize: props.statFontSize,
|
|
1304
|
+
descriptionTextColor: props.descriptionTextColor,
|
|
1305
|
+
descriptionFontSize: props.descriptionFontSize,
|
|
1306
|
+
statFontWeight: props.statFontWeight,
|
|
1736
1307
|
},
|
|
1308
|
+
label: "BAD PROP TYPE",
|
|
1309
|
+
};
|
|
1310
|
+
}
|
|
1311
|
+
const result = re.exec(statType);
|
|
1312
|
+
const queryName = result[1];
|
|
1313
|
+
const statPath = StatPaths.find((pattern) => pattern.name === queryName);
|
|
1314
|
+
// Get a list all possible keys in path
|
|
1315
|
+
const keys = [];
|
|
1316
|
+
const regex = pathToRegexp(statPath === null || statPath === void 0 ? void 0 : statPath.route, keys, {
|
|
1317
|
+
strict: false,
|
|
1318
|
+
sensitive: false,
|
|
1319
|
+
end: true,
|
|
1320
|
+
});
|
|
1321
|
+
const allQueryArgs = regex.exec(statType);
|
|
1322
|
+
// Retrieve all key values in order including undefined
|
|
1323
|
+
const queryArgs = keys.map((_, i) => allQueryArgs[i + 1] ? decodeURIComponent(allQueryArgs[i + 1]) : undefined);
|
|
1324
|
+
// remove query name from list
|
|
1325
|
+
queryArgs.shift();
|
|
1326
|
+
const label = queries[queryName].label;
|
|
1327
|
+
const stat = (userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt) && queries[queryName].query(programId, locale, ...queryArgs);
|
|
1328
|
+
debug("stat:", stat);
|
|
1329
|
+
return {
|
|
1330
|
+
props: {
|
|
1331
|
+
value: stat === null || stat === void 0 ? void 0 : stat.value,
|
|
1332
|
+
statvalue: (_a = stat === null || stat === void 0 ? void 0 : stat.statvalue) !== null && _a !== void 0 ? _a : LOADING,
|
|
1333
|
+
loading: stat === null || stat === void 0 ? void 0 : stat.loading,
|
|
1334
|
+
flexReverse,
|
|
1335
|
+
alignment,
|
|
1336
|
+
statTextColor: props.statTextColor,
|
|
1337
|
+
statFontSize: props.statFontSize,
|
|
1338
|
+
descriptionTextColor: props.descriptionTextColor,
|
|
1339
|
+
descriptionFontSize: props.descriptionFontSize,
|
|
1340
|
+
statFontWeight: props.statFontWeight,
|
|
1737
1341
|
},
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1342
|
+
label,
|
|
1343
|
+
};
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
function useDemoBigStat(props) {
|
|
1347
|
+
const { statType } = props;
|
|
1348
|
+
const re = useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
|
|
1349
|
+
// triggers a re-render if the label is manually changed
|
|
1350
|
+
useChildElements();
|
|
1351
|
+
if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
|
|
1352
|
+
return {
|
|
1353
|
+
props: {
|
|
1354
|
+
value: 0,
|
|
1355
|
+
statvalue: "-",
|
|
1356
|
+
loading: false,
|
|
1357
|
+
flexReverse: props.flexReverse,
|
|
1358
|
+
alignment: props.alignment,
|
|
1359
|
+
statTextColor: props.statTextColor,
|
|
1360
|
+
statFontSize: props.statFontSize,
|
|
1361
|
+
descriptionTextColor: props.descriptionTextColor,
|
|
1362
|
+
descriptionFontSize: props.descriptionFontSize,
|
|
1741
1363
|
},
|
|
1742
|
-
|
|
1364
|
+
label: "BAD PROP TYPE",
|
|
1365
|
+
};
|
|
1366
|
+
}
|
|
1367
|
+
const result = re.exec(statType);
|
|
1368
|
+
const queryName = result[1];
|
|
1369
|
+
const label = queries[queryName].label;
|
|
1370
|
+
return {
|
|
1371
|
+
props: cjs({
|
|
1372
|
+
statvalue: "12345",
|
|
1373
|
+
value: 0,
|
|
1374
|
+
flexReverse: props.flexReverse,
|
|
1375
|
+
alignment: props.alignment,
|
|
1376
|
+
statTextColor: props.statTextColor,
|
|
1377
|
+
statFontSize: props.statFontSize,
|
|
1378
|
+
descriptionTextColor: props.descriptionTextColor,
|
|
1379
|
+
descriptionFontSize: props.descriptionFontSize,
|
|
1380
|
+
statFontWeight: props.statFontWeight,
|
|
1381
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a }),
|
|
1382
|
+
label: label !== null && label !== void 0 ? label : "Demo Label",
|
|
1743
1383
|
};
|
|
1744
|
-
const sheet = createStyleSheet(style);
|
|
1745
|
-
const styleString = sheet.toString();
|
|
1746
|
-
return (h("div", { class: sheet.classes.Container, part: "sqm-base" },
|
|
1747
|
-
h("style", { type: "text/css" }, styleString),
|
|
1748
|
-
h(TextSpanView, Object.assign({}, { type: "h2" }), text.emailPreferencesHeader),
|
|
1749
|
-
h("sl-form", { "onSl-submit": callbacks.onSubmit },
|
|
1750
|
-
h(CheckboxFieldView, { states: {
|
|
1751
|
-
checked: states.formState.marketingEmailOptIn,
|
|
1752
|
-
}, content: {
|
|
1753
|
-
checkboxLabel: text.marketingCheckboxLabel,
|
|
1754
|
-
checkboxName: "marketingEmailOptIn",
|
|
1755
|
-
}, callbacks: {
|
|
1756
|
-
setChecked: callbacks.setChecked,
|
|
1757
|
-
} }),
|
|
1758
|
-
h("sl-button", { class: sheet.classes.SubmitButton, type: "primary", submit: true, loading: states.loading, disabled: states.submitDisabled }, text.submitChangeButtonText),
|
|
1759
|
-
error && (h("sqm-form-message", { class: sheet.classes.Error, type: "error", exportparts: "erroralert-icon" },
|
|
1760
|
-
h("div", { part: "erroralert-text" }, error))),
|
|
1761
|
-
states.success && (h("sqm-form-message", { class: sheet.classes.Success, type: "success", exportparts: "successalert-icon" },
|
|
1762
|
-
h("div", { part: "successalert-text" }, states.text.successMessage))))));
|
|
1763
1384
|
}
|
|
1764
1385
|
|
|
1765
|
-
|
|
1386
|
+
function CardFeedView(props, children) {
|
|
1387
|
+
// Dependent on props, not feasiable to move out
|
|
1388
|
+
const style = {
|
|
1389
|
+
Container: {
|
|
1390
|
+
columnGap: props.gap + "px",
|
|
1391
|
+
columnWidth: props.width + "px",
|
|
1392
|
+
"& > div": {
|
|
1393
|
+
marginBottom: "24px",
|
|
1394
|
+
},
|
|
1395
|
+
},
|
|
1396
|
+
};
|
|
1397
|
+
const sheet = createStyleSheet(style);
|
|
1398
|
+
const styleString = sheet.toString();
|
|
1399
|
+
const vanillaStyle = `
|
|
1400
|
+
:host{
|
|
1401
|
+
display: block;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
`;
|
|
1405
|
+
return (h("div", null,
|
|
1406
|
+
h("style", { type: "text/css" },
|
|
1407
|
+
styleString,
|
|
1408
|
+
vanillaStyle),
|
|
1409
|
+
h("div", { class: sheet.classes.Container, part: "sqm-base" }, children)));
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
const style$1 = {
|
|
1766
1413
|
Description: {
|
|
1414
|
+
"& .icon": {
|
|
1415
|
+
color: "var(--sqm-text)",
|
|
1416
|
+
"&:hover": {
|
|
1417
|
+
color: "var(--sqm-accent-color-icon)",
|
|
1418
|
+
},
|
|
1419
|
+
},
|
|
1767
1420
|
"& input[type=checkbox]": {
|
|
1768
1421
|
display: "none",
|
|
1769
1422
|
},
|
|
@@ -1801,16 +1454,16 @@ const style$4 = {
|
|
|
1801
1454
|
},
|
|
1802
1455
|
},
|
|
1803
1456
|
};
|
|
1804
|
-
const sheet$
|
|
1805
|
-
const styleString$
|
|
1457
|
+
const sheet$1 = createStyleSheet(style$1);
|
|
1458
|
+
const styleString$1 = sheet$1.toString();
|
|
1806
1459
|
function Details(props) {
|
|
1807
1460
|
const rid = Math.random().toString(36).slice(2);
|
|
1808
1461
|
return (h("div", { style: { opacity: props.opacity } },
|
|
1809
|
-
h("style", { type: "text/css" }, styleString$
|
|
1810
|
-
h("span", { class: sheet$
|
|
1462
|
+
h("style", { type: "text/css" }, styleString$1),
|
|
1463
|
+
h("span", { class: sheet$1.classes.Description },
|
|
1811
1464
|
h("input", { type: "checkbox", id: "details-" + rid }),
|
|
1812
1465
|
h("label", { class: "details", htmlFor: "details-" + rid },
|
|
1813
|
-
h("sl-icon", { exportparts: "base: chevron-icon", name: "chevron-down" })),
|
|
1466
|
+
h("sl-icon", { class: "icon", exportparts: "base: chevron-icon", name: "chevron-down" })),
|
|
1814
1467
|
h("span", { class: "summary", "progress-bar": props.progressBar }, props.content.description))));
|
|
1815
1468
|
}
|
|
1816
1469
|
|
|
@@ -1829,7 +1482,7 @@ const GreyGift = () => {
|
|
|
1829
1482
|
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M14 2.70949C14 3.59565 12.6694 4.93746 12 5H9V16H7.00179V5H4.58792C3.21247 4.70182 2 3.64537 2 2.52072C2 1.42474 2.47603 0.556701 3.34184 0.182041C4.16921 -0.175986 5.12452 0.0203328 5.87976 0.544666C6.80676 1.18825 7.32679 2.3963 7.79856 3.49226C7.83996 3.58845 7.88099 3.68378 7.9219 3.77778C7.96173 3.68865 8.00186 3.59793 8.0425 3.50608C8.50995 2.44948 9.04359 1.24325 9.9404 0.59563C10.7332 0.0231438 11.741 -0.193157 12.6121 0.198945C13.5129 0.604397 14 1.53453 14 2.70949ZM10.6123 1.5C11.0928 1.15305 11.668 1.09012 12.1597 1.5C12.5879 1.85694 12.6108 2.02497 12.6658 2.42926L12.6755 2.5C12.6755 3.09851 12.1597 4 11.6439 4C11.2785 4 10.9914 3.99691 10.7224 3.99402C10.2319 3.98875 9.80131 3.98412 9.06496 4C9.20533 3.72786 9.31743 3.46669 9.42434 3.21761C9.71026 2.55143 9.95907 1.97176 10.6123 1.5ZM4.93861 1.5C4.70607 1.33855 4.17281 1.4106 3.95166 1.5063C3.76894 1.58537 3.49602 1.82658 3.49602 2.52072C3.49602 3.19524 4.58792 3.77778 4.58792 3.77778C4.58792 3.77778 5.45441 4 7.00179 4C6.47506 2.69451 5.7289 2.04867 4.93861 1.5Z", fill: "#828282" })));
|
|
1830
1483
|
};
|
|
1831
1484
|
|
|
1832
|
-
const style$
|
|
1485
|
+
const style$2 = {
|
|
1833
1486
|
ProgressBar: {
|
|
1834
1487
|
"& .progress-bar": {
|
|
1835
1488
|
height: "0",
|
|
@@ -1876,7 +1529,8 @@ const style$5 = {
|
|
|
1876
1529
|
width: "100%",
|
|
1877
1530
|
height: "4px",
|
|
1878
1531
|
borderRadius: "4px",
|
|
1879
|
-
backgroundColor: "var(--
|
|
1532
|
+
backgroundColor: "var(--sqm-accent-color-icon)",
|
|
1533
|
+
background: "red",
|
|
1880
1534
|
},
|
|
1881
1535
|
"& .progress": {
|
|
1882
1536
|
display: "block",
|
|
@@ -1889,7 +1543,7 @@ const style$5 = {
|
|
|
1889
1543
|
width: "12px",
|
|
1890
1544
|
height: "12px",
|
|
1891
1545
|
display: "flex",
|
|
1892
|
-
backgroundColor: "var(--
|
|
1546
|
+
backgroundColor: "var(--sqm-accent-color-icon)",
|
|
1893
1547
|
borderRadius: "50%",
|
|
1894
1548
|
position: "relative",
|
|
1895
1549
|
left: "47%",
|
|
@@ -1941,14 +1595,14 @@ const style$5 = {
|
|
|
1941
1595
|
},
|
|
1942
1596
|
},
|
|
1943
1597
|
};
|
|
1944
|
-
const sheet$
|
|
1945
|
-
const styleString$
|
|
1598
|
+
const sheet$2 = createStyleSheet(style$2, { classNamePrefix: "sqm-prog-bar" });
|
|
1599
|
+
const styleString$2 = sheet$2.toString();
|
|
1946
1600
|
function ProgressBarView(props) {
|
|
1947
1601
|
const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false, complete = false, expired = false, finite = 0, opacity = "1", } = props;
|
|
1948
1602
|
let aggregate = buildProgressBar(repeatable, steps, props);
|
|
1949
1603
|
const { columns, items } = aggregate;
|
|
1950
|
-
return (h("div", { class: sheet$
|
|
1951
|
-
h("style", { type: "text/css" }, styleString$
|
|
1604
|
+
return (h("div", { class: sheet$2.classes.ProgressBar, "data-expired": expired, "data-complete": complete, "data-steps": steps, "data-done": goal <= progress, style: { opacity: opacity } },
|
|
1605
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1952
1606
|
h("div", { class: (!Boolean(finite) && progress >= 2 * goal) ||
|
|
1953
1607
|
(Boolean(finite) && progress > 2 * goal)
|
|
1954
1608
|
? "progress-bar repeatable-steps"
|
|
@@ -2242,29 +1896,29 @@ const arrow_left_right = () => {
|
|
|
2242
1896
|
function TaskCardView(props) {
|
|
2243
1897
|
var _a, _b;
|
|
2244
1898
|
const { callbacks, states, content } = props;
|
|
2245
|
-
console.log("
|
|
1899
|
+
console.log("buttonType ", content.buttonType);
|
|
2246
1900
|
const style = {
|
|
2247
1901
|
TaskCard: {
|
|
2248
1902
|
display: "inline-block",
|
|
2249
1903
|
width: "100%",
|
|
2250
1904
|
"& .main": {
|
|
2251
1905
|
position: "relative",
|
|
2252
|
-
boxSizing: "border-
|
|
2253
|
-
background: content.backgroundColor || "var(--
|
|
2254
|
-
border: `
|
|
2255
|
-
borderRadius: "var(--
|
|
1906
|
+
boxSizing: "border-box",
|
|
1907
|
+
background: content.backgroundColor || "var(--sqm-portal-background)",
|
|
1908
|
+
border: `var(--sqm-border-thickness) solid ${content.borderColor || "var(--sqm-border-color)"}`,
|
|
1909
|
+
borderRadius: "var(--sqm-border-radius-normal)",
|
|
2256
1910
|
boxShadow: "1px 2px 4px rgba(211, 211, 211, 0.2)",
|
|
2257
1911
|
fontSize: "var(--sl-font-size-small)",
|
|
2258
1912
|
lineHeight: "var(--sl-line-height-dense)",
|
|
2259
1913
|
color: content.textColor || "var(--sqm-text)",
|
|
2260
1914
|
},
|
|
2261
1915
|
"& .main.complete": {
|
|
2262
|
-
|
|
2263
|
-
borderColor:
|
|
1916
|
+
opacity: "0.8",
|
|
1917
|
+
borderColor: "var(--sqm-accent-color-border)",
|
|
2264
1918
|
},
|
|
2265
1919
|
"& .main.expired": {
|
|
2266
1920
|
color: content.textColor || "var(--sqm-text)",
|
|
2267
|
-
|
|
1921
|
+
opacity: "0.8",
|
|
2268
1922
|
},
|
|
2269
1923
|
"& .title": {
|
|
2270
1924
|
fontSize: "var(--sl-font-size-medium)",
|
|
@@ -2284,8 +1938,8 @@ function TaskCardView(props) {
|
|
|
2284
1938
|
fontSize: "var(--sl-font-size-small)",
|
|
2285
1939
|
padding: "var(--sl-spacing-medium)",
|
|
2286
1940
|
color: content.textColor || "var(--sl-color-primary-600)",
|
|
2287
|
-
border: `1px solid ${content.borderColor || "var(--sl-color-neutral-200)"}`,
|
|
2288
|
-
borderRadius: "var(--
|
|
1941
|
+
border: `var(--sqm-border-thickness, 1px) solid ${content.borderColor || "var(--sl-color-neutral-200)"}`,
|
|
1942
|
+
borderRadius: "var(--sqm-border-radius-normal) var(--sqm-border-radius-normal) 0 0",
|
|
2289
1943
|
borderBottom: "none",
|
|
2290
1944
|
background: content.backgroundColor || "var(--sl-color-primary-50)",
|
|
2291
1945
|
fontWeight: "var(--sl-font-weight-semibold)",
|
|
@@ -2301,8 +1955,8 @@ function TaskCardView(props) {
|
|
|
2301
1955
|
fontSize: "var(--sl-font-size-small)",
|
|
2302
1956
|
padding: "var(--sl-spacing-medium)",
|
|
2303
1957
|
color: content.textColor || "var(--sl-color-warning-600)",
|
|
2304
|
-
border: `1px solid ${content.borderColor || "var(--sl-color-neutral-200)"}`,
|
|
2305
|
-
borderRadius: "var(--
|
|
1958
|
+
border: `var(--sqm-border-thickness, 1px) solid ${content.borderColor || "var(--sl-color-neutral-200)"}`,
|
|
1959
|
+
borderRadius: "var(--sqm-border-radius-normal) var(--sqm-border-radius-normal) 0 0",
|
|
2306
1960
|
borderBottom: "none",
|
|
2307
1961
|
background: content.backgroundColor || "var(--sl-color-warning-50)",
|
|
2308
1962
|
fontWeight: "var(--sl-font-weight-semibold)",
|
|
@@ -2321,7 +1975,7 @@ function TaskCardView(props) {
|
|
|
2321
1975
|
top: "5%",
|
|
2322
1976
|
alignSelf: "center",
|
|
2323
1977
|
lineHeight: "0",
|
|
2324
|
-
color:
|
|
1978
|
+
color: "var(--sqm-accent-color-icon)",
|
|
2325
1979
|
fontSize: "var(--sl-font-size-large)",
|
|
2326
1980
|
marginRight: "var(--sl-spacing-x-small)",
|
|
2327
1981
|
},
|
|
@@ -2383,7 +2037,7 @@ function TaskCardView(props) {
|
|
|
2383
2037
|
},
|
|
2384
2038
|
};
|
|
2385
2039
|
const sheet = createStyleSheet(style);
|
|
2386
|
-
const
|
|
2040
|
+
const contentString = sheet.toString();
|
|
2387
2041
|
const dateStart = content.rewardDuration &&
|
|
2388
2042
|
luxon.DateTime.fromISO(content.rewardDuration.split("/")[0]);
|
|
2389
2043
|
const dateEnd = content.rewardDuration &&
|
|
@@ -2418,7 +2072,7 @@ function TaskCardView(props) {
|
|
|
2418
2072
|
`;
|
|
2419
2073
|
return (h("div", { class: sheet.classes.TaskCard, part: "sqm-base" },
|
|
2420
2074
|
h("style", { type: "text/css" },
|
|
2421
|
-
|
|
2075
|
+
contentString,
|
|
2422
2076
|
vanillaStyle),
|
|
2423
2077
|
!states.loading && taskNotStarted && (h("div", { class: sheet.classes.NotStarted },
|
|
2424
2078
|
h("span", { class: "icon" },
|
|
@@ -2444,7 +2098,7 @@ function TaskCardView(props) {
|
|
|
2444
2098
|
}))),
|
|
2445
2099
|
h("div", { part: "sqm-style-container", style: {
|
|
2446
2100
|
borderRadius: taskUnavailable &&
|
|
2447
|
-
"0 0 var(--
|
|
2101
|
+
"0 0 var(--sqm-border-radius-normal) var(--sqm-border-radius-normal)",
|
|
2448
2102
|
}, class: taskUnavailable
|
|
2449
2103
|
? "main expired"
|
|
2450
2104
|
: taskComplete
|
|
@@ -2466,7 +2120,7 @@ function TaskCardView(props) {
|
|
|
2466
2120
|
opacity: taskComplete || taskUnavailable ? "0.45" : "1",
|
|
2467
2121
|
} }, content.cardTitle)),
|
|
2468
2122
|
states.loading ? (h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.description && (h(Details, Object.assign({}, props, { opacity: taskComplete || taskUnavailable ? "0.45" : "1" })))),
|
|
2469
|
-
content.showProgressBar && states.loading ? (h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.showProgressBar && (h(ProgressBarView, Object.assign({}, props.content, props.states, { opacity: taskComplete || taskUnavailable ? "0.
|
|
2123
|
+
content.showProgressBar && states.loading ? (h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.showProgressBar && (h(ProgressBarView, Object.assign({}, props.content, props.states, { opacity: taskComplete || taskUnavailable ? "0.75" : "1", complete: taskComplete, expired: taskUnavailable })))),
|
|
2470
2124
|
h("div", { class: sheet.classes.Footer, "data-subdue": taskComplete || taskUnavailable }, states.loading ? (h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (h("div", { style: { display: "contents" } },
|
|
2471
2125
|
h("span", { class: "text" },
|
|
2472
2126
|
content.repeatable && (h("div", null,
|
|
@@ -2496,116 +2150,407 @@ function TaskCardView(props) {
|
|
|
2496
2150
|
.setLocale(luxonLocale(states.locale))
|
|
2497
2151
|
.toLocaleString(luxon.DateTime.DATETIME_MED),
|
|
2498
2152
|
})))),
|
|
2499
|
-
content.hideButton ? ("") : (h("sl-button", { exportparts: `base: ${content.
|
|
2500
|
-
? "primary"
|
|
2501
|
-
: "secondary"}button-base`, id: "sl-button", type: content.buttonStyle === "primary" ? "primary" : "default", size: "small", onClick: callbacks.onClick, loading: states.loadingEvent, disabled: taskComplete || taskUnavailable, style: {
|
|
2153
|
+
content.hideButton ? ("") : (h("sl-button", { exportparts: `base: ${content.buttonType || "primary"}button-base`, type: "primary", id: "sl-button", size: "small", onClick: callbacks.onClick, loading: states.loadingEvent, disabled: taskComplete || taskUnavailable, style: {
|
|
2502
2154
|
opacity: taskComplete || taskUnavailable ? "0.45" : "1",
|
|
2503
2155
|
} }, content.buttonText)))))))));
|
|
2504
2156
|
}
|
|
2505
2157
|
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M370.781 87.48C358.581 87.48 347.981 91.38 339.981 98.38V89.28H319.481V226.08H339.981V177.78C347.881 185.08 358.581 188.78 370.781 188.78C398.781 188.78 419.881 166.88 419.881 138.08C419.981 109.28 398.781 87.48 370.781 87.48ZM368.881 169.58C351.481 169.58 338.881 156.38 338.881 138.28C338.881 120.38 351.381 106.98 368.881 106.98C386.281 106.98 398.881 120.08 398.881 138.28C398.881 156.48 386.381 169.58 368.881 169.58Z", fill: color }),
|
|
2523
|
-
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M701.782 169.88C707.682 169.88 714.082 167.58 719.582 163.98L721.482 162.88L731.482 178.68L729.782 179.88C721.282 186.28 710.982 189.58 700.382 189.58C678.082 189.58 665.782 176.38 665.782 152.28V108.68H645.682V89.3799H665.782V59.8799H686.482V89.2798H725.682V108.48H686.482V151.88C686.482 163.38 691.982 169.88 701.782 169.88Z", fill: color }),
|
|
2524
|
-
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M511.681 89.4797V98.7797C503.681 91.4797 493.181 87.6797 480.981 87.6797C452.981 87.6797 431.981 109.68 431.981 138.68C431.981 167.78 453.081 189.68 480.981 189.68C493.181 189.68 503.681 185.78 511.681 178.38V187.68H532.381V89.4797H511.681ZM482.881 169.88C465.481 169.88 452.781 156.58 452.781 138.48C452.781 120.48 465.281 106.98 482.881 106.98C500.481 106.98 512.781 120.08 512.781 138.48C512.781 156.68 500.181 169.88 482.881 169.88Z", fill: color }),
|
|
2525
|
-
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M595.281 107.08C604.181 107.08 611.781 110.38 618.781 116.98L620.481 118.68L633.981 104.58L632.581 102.98C623.781 92.98 610.781 87.48 595.781 87.48C565.981 87.48 544.481 109.08 544.481 138.48C544.481 167.98 565.981 189.48 595.781 189.48C610.481 189.48 623.681 183.98 632.581 174.08L633.981 172.58L620.981 158.18L619.281 159.88C612.481 166.48 603.981 169.98 595.481 169.98C578.381 169.98 565.681 156.68 565.681 138.58C565.581 120.58 577.881 107.08 595.281 107.08Z", fill: color }),
|
|
2526
|
-
h("path", { d: "M34.6815 112.78C40.6815 112.78 46.5815 114.18 51.8815 116.68C57.2815 119.18 62.0815 122.78 65.9815 127.28C67.9815 122.68 69.0815 117.78 69.0815 112.88C69.0815 108.38 68.1815 103.88 66.4815 99.8799C64.6815 95.6799 62.1815 91.9799 58.9815 88.8799C55.7815 85.7799 51.9815 83.2799 47.7815 81.4799C43.5815 79.7799 39.0815 78.8799 34.5815 78.8799C30.0815 78.8799 25.5815 79.6799 21.3815 81.4799C17.1815 83.1799 13.3815 85.7799 10.1815 88.8799C6.98154 91.9799 4.48154 95.7799 2.68154 99.8799C0.881541 104.08 0.081543 108.38 0.081543 112.88C0.181543 117.88 1.18154 122.78 3.18154 127.28C7.08154 122.68 11.8815 119.18 17.1815 116.68C22.7815 113.98 28.7815 112.68 34.6815 112.78Z", fill: color }),
|
|
2527
|
-
h("path", { d: "M69.1817 153.48C69.1817 146.68 67.1817 140.18 63.2817 134.48C59.4817 128.88 54.0817 124.48 47.7817 121.88C41.4817 119.28 34.4817 118.68 27.7817 119.88C21.0817 121.28 14.8817 124.48 10.0817 129.28C5.28166 134.08 1.88166 140.08 0.681661 146.78C-0.718339 153.48 0.0816607 160.18 2.68166 166.48C5.28166 172.78 9.68166 178.08 15.4817 181.78C21.0817 185.58 27.7817 187.48 34.6817 187.48C43.7817 187.38 52.5817 183.88 59.0817 177.38C65.6817 170.98 69.1817 162.58 69.1817 153.48Z", fill: color }),
|
|
2528
|
-
h("path", { d: "M69.1817 34.9799C69.1817 28.1799 67.1817 21.6799 63.2817 15.9799C59.4817 10.3799 54.1817 5.9799 47.7817 3.3799C41.4817 0.779901 34.4817 0.1799 27.7817 1.3799C21.0817 2.7799 14.8817 5.97986 10.0817 10.7799C5.28166 15.5799 1.88166 21.5799 0.681661 28.2799C-0.718339 34.9799 0.0816607 41.6799 2.68166 47.9799C5.28166 54.2799 9.68166 59.5799 15.4817 63.2799C21.0817 67.0799 27.7817 68.9799 34.6817 68.9799C43.8817 68.9799 52.6817 65.3799 59.1817 58.9799C65.5817 52.6799 69.1817 43.8799 69.1817 34.9799Z", fill: color }),
|
|
2529
|
-
h("path", { d: "M962.664 203.95C953.044 203.95 945.244 201.285 939.264 195.955C933.284 190.495 930.294 183.41 930.294 174.7C930.294 165.08 933.739 157.605 940.629 152.275C947.649 146.945 957.464 144.28 970.074 144.28H993.864V138.43C993.864 129.72 991.589 123.09 987.039 118.54C982.619 113.86 976.184 111.52 967.734 111.52C962.014 111.52 956.749 112.885 951.939 115.615C947.129 118.345 943.229 122.18 940.239 127.12L933.999 120.295C937.639 114.575 942.384 110.22 948.234 107.23C954.214 104.11 960.974 102.55 968.514 102.55C979.694 102.55 988.404 105.605 994.644 111.715C1001.01 117.695 1004.2 126.015 1004.2 136.675V184.255C1004.2 188.805 1004.98 194.72 1006.54 202H997.569C996.399 199.14 995.554 194.07 995.034 186.79H994.644C990.874 192.25 986.259 196.475 980.799 199.465C975.339 202.455 969.294 203.95 962.664 203.95ZM962.664 195.175C968.124 195.175 973.259 194.07 978.069 191.86C982.879 189.52 986.714 186.465 989.574 182.695C992.434 178.795 993.864 174.7 993.864 170.41V152.665H969.489C960.389 152.665 953.239 154.615 948.039 158.515C942.969 162.415 940.434 167.81 940.434 174.7C940.434 180.68 942.514 185.62 946.674 189.52C950.834 193.29 956.164 195.175 962.664 195.175Z", fill: color }),
|
|
2530
|
-
h("path", { d: "M1067.55 203.95C1055.07 203.95 1045.25 199.27 1038.1 189.91C1030.95 180.55 1027.38 167.745 1027.38 151.495C1027.38 136.415 1031.02 124.52 1038.3 115.81C1045.71 106.97 1055.72 102.55 1068.33 102.55C1074.7 102.55 1080.55 104.045 1085.88 107.035C1091.21 110.025 1095.5 114.25 1098.75 119.71H1099.14V57.3101H1109.67V178.21C1109.67 189.13 1109.86 197.06 1110.25 202H1100.89C1100.63 197.84 1100.5 192.12 1100.5 184.84H1100.11C1097.12 190.69 1092.7 195.37 1086.85 198.88C1081 202.26 1074.57 203.95 1067.55 203.95ZM1068.13 195.175C1077.23 195.175 1084.64 192.185 1090.36 186.205C1096.21 180.225 1099.14 172.49 1099.14 163V146.815C1099.14 135.895 1096.41 127.25 1090.95 120.88C1085.49 114.38 1078.08 111.13 1068.72 111.13C1059.1 111.13 1051.49 114.77 1045.9 122.05C1040.44 129.2 1037.71 139.145 1037.71 151.885C1037.71 165.275 1040.44 175.87 1045.9 183.67C1051.36 191.34 1058.77 195.175 1068.13 195.175Z", fill: color }),
|
|
2531
|
-
h("path", { d: "M1208.57 104.5L1172.3 202H1161.96L1125.5 104.5H1136.61L1167.03 189.715L1197.45 104.5H1208.57Z", fill: color }),
|
|
2532
|
-
h("path", { d: "M1261.51 203.95C1252.54 203.95 1244.61 201.87 1237.72 197.71C1230.96 193.55 1225.7 187.635 1221.93 179.965C1218.29 172.295 1216.47 163.39 1216.47 153.25C1216.47 143.11 1218.29 134.205 1221.93 126.535C1225.7 118.865 1230.96 112.95 1237.72 108.79C1244.61 104.63 1252.54 102.55 1261.51 102.55C1270.48 102.55 1278.35 104.63 1285.11 108.79C1292 112.95 1297.33 118.865 1301.1 126.535C1304.87 134.205 1306.75 143.11 1306.75 153.25C1306.75 163.39 1304.87 172.295 1301.1 179.965C1297.33 187.635 1292 193.55 1285.11 197.71C1278.35 201.87 1270.48 203.95 1261.51 203.95ZM1261.51 195.37C1268.4 195.37 1274.45 193.615 1279.65 190.105C1284.98 186.595 1289.07 181.655 1291.93 175.285C1294.79 168.915 1296.22 161.57 1296.22 153.25C1296.22 144.93 1294.79 137.585 1291.93 131.215C1289.07 124.845 1284.98 119.905 1279.65 116.395C1274.45 112.885 1268.4 111.13 1261.51 111.13C1254.75 111.13 1248.71 112.885 1243.38 116.395C1238.18 119.905 1234.15 124.845 1231.29 131.215C1228.43 137.585 1227 144.93 1227 153.25C1227 161.57 1228.43 168.915 1231.29 175.285C1234.15 181.655 1238.18 186.595 1243.38 190.105C1248.71 193.615 1254.75 195.37 1261.51 195.37Z", fill: color }),
|
|
2533
|
-
h("path", { d: "M1366.03 203.95C1352.25 203.95 1341.52 199.53 1333.85 190.69C1326.31 181.72 1322.54 169.24 1322.54 153.25C1322.54 137.39 1326.38 124.975 1334.05 116.005C1341.72 107.035 1352.38 102.55 1366.03 102.55C1373.57 102.55 1380.26 104.11 1386.11 107.23C1391.96 110.22 1396.77 114.575 1400.54 120.295L1394.3 126.34C1391.31 121.66 1387.28 118.02 1382.21 115.42C1377.27 112.69 1371.88 111.325 1366.03 111.325C1355.76 111.325 1347.63 115.03 1341.65 122.44C1335.8 129.85 1332.88 140.12 1332.88 153.25C1332.88 166.38 1335.8 176.65 1341.65 184.06C1347.63 191.47 1355.76 195.175 1366.03 195.175C1371.88 195.175 1377.27 193.875 1382.21 191.275C1387.28 188.545 1391.31 184.84 1394.3 180.16L1400.54 186.205C1396.77 191.925 1391.96 196.345 1386.11 199.465C1380.26 202.455 1373.57 203.95 1366.03 203.95Z", fill: color }),
|
|
2534
|
-
h("path", { d: "M1446.55 203.95C1436.93 203.95 1429.13 201.285 1423.15 195.955C1417.17 190.495 1414.18 183.41 1414.18 174.7C1414.18 165.08 1417.62 157.605 1424.51 152.275C1431.53 146.945 1441.35 144.28 1453.96 144.28H1477.75V138.43C1477.75 129.72 1475.47 123.09 1470.92 118.54C1466.5 113.86 1460.07 111.52 1451.62 111.52C1445.9 111.52 1440.63 112.885 1435.82 115.615C1431.01 118.345 1427.11 122.18 1424.12 127.12L1417.88 120.295C1421.52 114.575 1426.27 110.22 1432.12 107.23C1438.1 104.11 1444.86 102.55 1452.4 102.55C1463.58 102.55 1472.29 105.605 1478.53 111.715C1484.9 117.695 1488.08 126.015 1488.08 136.675V184.255C1488.08 188.805 1488.86 194.72 1490.42 202H1481.45C1480.28 199.14 1479.44 194.07 1478.92 186.79H1478.53C1474.76 192.25 1470.14 196.475 1464.68 199.465C1459.22 202.455 1453.18 203.95 1446.55 203.95ZM1446.55 195.175C1452.01 195.175 1457.14 194.07 1461.95 191.86C1466.76 189.52 1470.6 186.465 1473.46 182.695C1476.32 178.795 1477.75 174.7 1477.75 170.41V152.665H1453.37C1444.27 152.665 1437.12 154.615 1431.92 158.515C1426.85 162.415 1424.32 167.81 1424.32 174.7C1424.32 180.68 1426.4 185.62 1430.56 189.52C1434.72 193.29 1440.05 195.175 1446.55 195.175Z", fill: color }),
|
|
2535
|
-
h("path", { d: "M1547.14 203.95C1539.08 203.95 1532.97 201.48 1528.81 196.54C1524.65 191.47 1522.57 184.19 1522.57 174.7V113.275H1505.02V104.5H1522.57V77.9801L1532.32 74.6651H1533.1V104.5H1560.59V113.275H1533.1V172.555C1533.1 180.355 1534.33 186.01 1536.8 189.52C1539.27 193.03 1543.17 194.785 1548.5 194.785C1553.83 194.785 1558.06 194.005 1561.18 192.445L1562.35 200.83C1558.19 202.91 1553.12 203.95 1547.14 203.95Z", fill: color }),
|
|
2536
|
-
h("path", { d: "M1661.53 157.54H1589.77C1590.42 169.37 1593.54 178.535 1599.13 185.035C1604.85 191.535 1612.65 194.785 1622.53 194.785C1628.51 194.785 1633.97 193.485 1638.91 190.885C1643.98 188.285 1647.95 184.645 1650.81 179.965L1657.24 186.4C1653.34 192.12 1648.4 196.475 1642.42 199.465C1636.57 202.455 1629.94 203.95 1622.53 203.95C1609.01 203.95 1598.35 199.465 1590.55 190.495C1582.88 181.525 1579.05 169.175 1579.05 153.445C1579.05 137.585 1582.82 125.17 1590.36 116.2C1597.9 107.1 1608.23 102.55 1621.36 102.55C1633.84 102.55 1643.66 106.84 1650.81 115.42C1657.96 124 1661.53 135.895 1661.53 151.105V157.54ZM1651.39 147.4C1651.39 136.48 1648.66 127.77 1643.2 121.27C1637.74 114.77 1630.46 111.52 1621.36 111.52C1611.74 111.52 1604.2 114.77 1598.74 121.27C1593.28 127.77 1590.29 137.065 1589.77 149.155H1651.39V147.4Z", fill: color })));
|
|
2158
|
+
const style$3 = {
|
|
2159
|
+
Wrapper: { ...AuthWrapper, "max-width": "600px" },
|
|
2160
|
+
Column: AuthColumn,
|
|
2161
|
+
HostBlock: HostBlock,
|
|
2162
|
+
":host": {
|
|
2163
|
+
margin: "0 auto",
|
|
2164
|
+
width: "100%",
|
|
2165
|
+
},
|
|
2166
|
+
ButtonsContainer: AuthButtonsContainer,
|
|
2167
|
+
ErrorStyle: ErrorStyles,
|
|
2168
|
+
};
|
|
2169
|
+
const vanillaStyle = `
|
|
2170
|
+
sqm-portal-register {
|
|
2171
|
+
margin: 0 auto;
|
|
2172
|
+
width: 100%;
|
|
2173
|
+
display: block;
|
|
2537
2174
|
}
|
|
2538
2175
|
|
|
2539
|
-
|
|
2176
|
+
:host{
|
|
2177
|
+
display: block;
|
|
2178
|
+
}
|
|
2179
|
+
|
|
2180
|
+
:host([hidden]) {
|
|
2181
|
+
display: none;
|
|
2182
|
+
}
|
|
2183
|
+
`;
|
|
2184
|
+
const sheet$3 = createStyleSheet(style$3);
|
|
2185
|
+
const styleString$3 = sheet$3.toString();
|
|
2186
|
+
function PortalRegisterView(props) {
|
|
2187
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2188
|
+
const { states, refs, callbacks, content } = props;
|
|
2189
|
+
if (states.error) {
|
|
2190
|
+
window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
|
|
2191
|
+
}
|
|
2192
|
+
return (h("div", { class: sheet$3.classes.Wrapper, part: "sqm-base" },
|
|
2193
|
+
h("style", { type: "text/css" },
|
|
2194
|
+
vanillaStyle,
|
|
2195
|
+
styleString$3),
|
|
2196
|
+
h(TextSpanView, { type: "h3" }, content.pageLabel),
|
|
2197
|
+
h("sl-form", { class: sheet$3.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2198
|
+
states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
2199
|
+
h("div", { part: "erroralert-text" }, props.states.error))),
|
|
2200
|
+
content.formData,
|
|
2201
|
+
!states.hideInputs && (h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true, validationError: ({ value }) => {
|
|
2202
|
+
if (!value) {
|
|
2203
|
+
return content.requiredFieldErrorMessage;
|
|
2204
|
+
}
|
|
2205
|
+
// this matches shoelace validation, but could be better
|
|
2206
|
+
if (!value.includes("@")) {
|
|
2207
|
+
return content.invalidEmailErrorMessage;
|
|
2208
|
+
}
|
|
2209
|
+
} }, (((_b = (_a = states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
|
|
2210
|
+
class: sheet$3.classes.ErrorStyle,
|
|
2211
|
+
helpText: ((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
|
|
2212
|
+
content.requiredFieldErrorMessage,
|
|
2213
|
+
}
|
|
2214
|
+
: [])))),
|
|
2215
|
+
!states.hideInputs && (h("sqm-password-field", { fieldLabel: content.passwordLabel, "disable-validation": states.disablePasswordValidation, meetsRequirementsText: content.meetsRequirementsText, doesNotMeetRequirementsText: content.doesNotMeetRequirementsText, minErrorText: content.minErrorText, uppercaseErrorText: content.uppercaseErrorText, lowercaseErrorText: content.lowercaseErrorText, hasErrorText: content.hasErrorText })),
|
|
2216
|
+
content.passwordField,
|
|
2217
|
+
!states.hideInputs && states.confirmPassword && (h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "password", name: "/confirmPassword", label: content.confirmPasswordLabel, disabled: states.loading || ((_e = states.registrationFormState) === null || _e === void 0 ? void 0 : _e.disabled), required: true }, (((_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.confirmPassword) ? {
|
|
2218
|
+
value: (_j = (_h = states.registrationFormState) === null || _h === void 0 ? void 0 : _h.initialData) === null || _j === void 0 ? void 0 : _j.confirmPassword,
|
|
2219
|
+
}
|
|
2220
|
+
: {}), (((_l = (_k = states.registrationFormState) === null || _k === void 0 ? void 0 : _k.validationErrors) === null || _l === void 0 ? void 0 : _l.confirmPassword) ? {
|
|
2221
|
+
class: sheet$3.classes.ErrorStyle,
|
|
2222
|
+
helpText: ((_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.validationErrors) === null || _o === void 0 ? void 0 : _o.confirmPassword) || content.requiredFieldErrorMessage,
|
|
2223
|
+
}
|
|
2224
|
+
: [])))),
|
|
2225
|
+
content.terms,
|
|
2226
|
+
h("div", { class: sheet$3.classes.ButtonsContainer },
|
|
2227
|
+
h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"),
|
|
2228
|
+
content.secondaryButton))));
|
|
2229
|
+
}
|
|
2230
|
+
|
|
2231
|
+
const style$4 = {
|
|
2232
|
+
ErrorStyle: {
|
|
2233
|
+
"&::part(control)": {
|
|
2234
|
+
background: "var(--sl-color-danger-10)",
|
|
2235
|
+
borderColor: "var(--sl-color-danger-500)",
|
|
2236
|
+
outline: "var(--sl-color-danger-500)",
|
|
2237
|
+
},
|
|
2238
|
+
"&:host": {
|
|
2239
|
+
"--focus-ring": "0 0 0 var(--sl-focus-ring-width) red !important",
|
|
2240
|
+
},
|
|
2241
|
+
},
|
|
2242
|
+
ErrorMessageStyle: {
|
|
2243
|
+
margin: 0,
|
|
2244
|
+
marginTop: "5px",
|
|
2245
|
+
color: "var(--sl-color-danger-500)",
|
|
2246
|
+
fontSize: "var(--sl-input-help-text-font-size-medium)",
|
|
2247
|
+
fontFamily: "var(--sl-font-sans)",
|
|
2248
|
+
fontWeight: "var(--sl-font-weight-normal)",
|
|
2249
|
+
},
|
|
2250
|
+
FieldContainer: {
|
|
2251
|
+
"margin-bottom": "var(--sl-spacing-large)",
|
|
2252
|
+
},
|
|
2253
|
+
};
|
|
2254
|
+
const vanillaStyle$1 = `
|
|
2255
|
+
:host {
|
|
2256
|
+
margin: 0 auto;
|
|
2257
|
+
width: 100%;
|
|
2258
|
+
display: block;
|
|
2259
|
+
}
|
|
2260
|
+
sl-checkbox::part(label){
|
|
2261
|
+
font-size: var(--sl-input-label-font-size-small);
|
|
2262
|
+
font-weight: var(--sl-font-weight-normal);
|
|
2263
|
+
line-height: 20px;
|
|
2264
|
+
}
|
|
2265
|
+
sl-checkbox::part(base){
|
|
2266
|
+
align-items: start;
|
|
2267
|
+
}
|
|
2268
|
+
`;
|
|
2269
|
+
jss.setup(create());
|
|
2270
|
+
const sheet$4 = jss.createStyleSheet(style$4);
|
|
2271
|
+
const styleString$4 = sheet$4.toString();
|
|
2272
|
+
function CheckboxFieldView(props) {
|
|
2273
|
+
var _b, _c;
|
|
2274
|
+
const { states, content, callbacks } = props;
|
|
2275
|
+
return (h("div", { class: sheet$4.classes.FieldContainer, part: "sqm-base" },
|
|
2276
|
+
h("style", { type: "text/css" },
|
|
2277
|
+
vanillaStyle$1,
|
|
2278
|
+
styleString$4),
|
|
2279
|
+
h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
|
|
2280
|
+
e.target.value = e.target.checked;
|
|
2281
|
+
callbacks.setChecked(e.target.value);
|
|
2282
|
+
} }, (!content.checkboxOptional ? { required: false } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled), required: false }), intl.formatMessage({
|
|
2283
|
+
id: content.checkboxName + "-message",
|
|
2284
|
+
defaultMessage: content.checkboxLabel,
|
|
2285
|
+
}, {
|
|
2286
|
+
labelLink: (h("a", { href: content.checkboxLabelLink, target: "_blank" }, content.checkboxLabelLinkText || content.checkboxLabelLink)),
|
|
2287
|
+
}))));
|
|
2288
|
+
}
|
|
2289
|
+
|
|
2290
|
+
function CouponCodeView(props) {
|
|
2291
|
+
const error = !props.loading && props.error;
|
|
2292
|
+
const style = {
|
|
2293
|
+
HostBlock: HostBlock,
|
|
2294
|
+
couponCodeLabel: {
|
|
2295
|
+
margin: "var(--sl-spacing-x-small) 0",
|
|
2296
|
+
color: props.textColor || "var(--sqm-text-subdued)",
|
|
2297
|
+
fontSize: "var(--sl-font-size-small)",
|
|
2298
|
+
},
|
|
2299
|
+
};
|
|
2300
|
+
const vanillaStyle = `
|
|
2540
2301
|
:host{
|
|
2541
|
-
|
|
2302
|
+
display: block;
|
|
2542
2303
|
width: 100%;
|
|
2543
2304
|
}
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2305
|
+
`;
|
|
2306
|
+
const sheet = createStyleSheet(style);
|
|
2307
|
+
const styleString = sheet.toString();
|
|
2308
|
+
return (h("div", null,
|
|
2309
|
+
h("style", { type: "text/css" },
|
|
2310
|
+
styleString,
|
|
2311
|
+
vanillaStyle),
|
|
2312
|
+
h("p", { class: sheet.classes.couponCodeLabel, style: { textAlign: props.textAlign } }, props.couponCodeLabel),
|
|
2313
|
+
error ? (h("sqm-form-message", { type: props.errorType, exportparts: "erroralert-icon" },
|
|
2314
|
+
h("div", { part: "erroralert-text" }, props.errorText))) : (h(CopyTextView, Object.assign({}, props)))));
|
|
2315
|
+
}
|
|
2316
|
+
|
|
2317
|
+
const style$5 = {
|
|
2318
|
+
ErrorStyle: {
|
|
2319
|
+
"--sl-input-border-color": "var(--sl-color-danger-500)",
|
|
2320
|
+
"--sl-input-background-color": "var(--sl-color-danger-10)",
|
|
2321
|
+
"--sl-input-border-color-focus": "var(--sl-color-danger-500)",
|
|
2322
|
+
"--sl-input-border-color-hover": "var(--sl-color-danger-500)",
|
|
2323
|
+
},
|
|
2324
|
+
ErrorMessageStyle: {
|
|
2325
|
+
margin: 0,
|
|
2326
|
+
color: "var(--sl-color-danger-500)",
|
|
2327
|
+
fontSize: "var(--sl-input-help-text-font-size-medium)",
|
|
2328
|
+
},
|
|
2329
|
+
FieldContainer: {
|
|
2330
|
+
"margin-bottom": "var(--sl-spacing-large)",
|
|
2331
|
+
},
|
|
2332
|
+
};
|
|
2333
|
+
const vanillaStyle$2 = `
|
|
2334
|
+
:host {
|
|
2335
|
+
margin: 0 auto;
|
|
2336
|
+
width: 100%;
|
|
2337
|
+
display: block;
|
|
2338
|
+
}
|
|
2339
|
+
sl-select::part(label){
|
|
2340
|
+
font-size: var(--sl-input-label-font-size-small);
|
|
2341
|
+
font-weight: var(--sl-font-weight-semibold);
|
|
2342
|
+
}
|
|
2343
|
+
`;
|
|
2344
|
+
jss.setup(create());
|
|
2345
|
+
const sheet$5 = jss.createStyleSheet(style$5);
|
|
2346
|
+
const styleString$5 = sheet$5.toString();
|
|
2347
|
+
function DropdownFieldView(props) {
|
|
2348
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
2349
|
+
const { states, content } = props;
|
|
2350
|
+
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2351
|
+
return (h("div", { class: sheet$5.classes.FieldContainer, part: "sqm-base" },
|
|
2352
|
+
h("style", { type: "text/css" },
|
|
2353
|
+
vanillaStyle$2,
|
|
2354
|
+
styleString$5),
|
|
2355
|
+
h("sl-select", Object.assign({ exportparts: "label: input-label, base: input-base", 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]) ? {
|
|
2356
|
+
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.dropdownName],
|
|
2357
|
+
}
|
|
2358
|
+
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) ? {
|
|
2359
|
+
class: sheet$5.classes.ErrorStyle,
|
|
2360
|
+
}
|
|
2361
|
+
: [])), content.selectOptions),
|
|
2362
|
+
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (h("p", { class: sheet$5.classes.ErrorMessageStyle }, intl.formatMessage({
|
|
2363
|
+
id: `errorMessage-${content.dropdownName}`,
|
|
2364
|
+
defaultMessage: content.errorMessage,
|
|
2365
|
+
})))));
|
|
2366
|
+
}
|
|
2367
|
+
|
|
2368
|
+
const EditProfileView = (props) => {
|
|
2369
|
+
var _a, _b, _c, _d;
|
|
2370
|
+
const { states, callbacks } = props;
|
|
2371
|
+
const { text } = states;
|
|
2372
|
+
const { errors } = states.formState;
|
|
2373
|
+
if (states.showEdit) {
|
|
2374
|
+
return (h("div", { class: `CardWrapper ${!states.showEdit && "ShowEdit"}`, part: "sqm-base" },
|
|
2375
|
+
h("h2", { part: "sqm-header", style: {
|
|
2376
|
+
fontSize: "var(--sl-font-size-x-large)",
|
|
2377
|
+
margin: "0px",
|
|
2378
|
+
textAlign: "center",
|
|
2379
|
+
} }, text.editprofileheader),
|
|
2380
|
+
h("form", { class: "FormWrapper", onSubmit: callbacks.onSubmit },
|
|
2381
|
+
h("div", { class: "FormSection" },
|
|
2382
|
+
states.formState.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
2383
|
+
h("div", { part: "erroralert-text" }, states.formState.error))),
|
|
2384
|
+
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: states.formState.firstName, onInput: callbacks.onChange, label: text.firstnametext, disabled: states.loading }, (errors.firstName && errors.firstName.status !== "valid"
|
|
2385
|
+
? { class: "ErrorStyles", helpText: text.fieldEmptyText }
|
|
2386
|
+
: []), { id: "firstName", name: "firstName", error: errors.firstName && errors.firstName.status !== "valid"
|
|
2387
|
+
? errors.firstName.message
|
|
2388
|
+
: undefined })),
|
|
2389
|
+
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: states.formState.lastName, onInput: callbacks.onChange, label: text.lastnametext, disabled: states.loading, id: "lastName", name: "lastName" }, (errors.lastName && errors.lastName.status !== "valid"
|
|
2390
|
+
? { class: "ErrorStyles", helpText: text.fieldEmptyText }
|
|
2391
|
+
: []), { error: errors.lastName && errors.lastName.status !== "valid"
|
|
2392
|
+
? errors.lastName.message
|
|
2393
|
+
: undefined }))),
|
|
2394
|
+
text.showregion && states.formState.currentRegion && (h("sl-input", { exportparts: "label: input-label, base: input-base", disabled: true, value: states.formState.currentRegion, label: text.currentregiontext, id: "currentRegion", name: "currentRegion" })),
|
|
2395
|
+
h("div", { class: "ButtonWrapper" },
|
|
2396
|
+
h("sl-button", { type: "primary", loading: states.loading, disabled: states.submitDisabled, onClick: (e) => {
|
|
2397
|
+
callbacks.onSubmit(e);
|
|
2398
|
+
}, submit: true, exportparts: "base: primarybutton-base" }, text.updatetext),
|
|
2399
|
+
h("sl-button", { onClick: () => {
|
|
2400
|
+
callbacks.setShowEdit(false);
|
|
2401
|
+
}, type: "secondary", exportparts: "base: secondarybutton-base" }, text.canceltext)))));
|
|
2548
2402
|
}
|
|
2549
|
-
|
|
2550
|
-
|
|
2403
|
+
return (h("div", { class: `CardWrapper FormWrapper ${!states.showEdit && "ShowEdit"}`, part: "sqm-base" },
|
|
2404
|
+
h("div", { class: "FormSection" },
|
|
2405
|
+
h("h2", { part: "sqm-header", style: {
|
|
2406
|
+
fontSize: "var(--sl-font-size-x-large)",
|
|
2407
|
+
marginBottom: "0px",
|
|
2408
|
+
textAlign: "center",
|
|
2409
|
+
} }, text.editprofileheader),
|
|
2410
|
+
h("div", null,
|
|
2411
|
+
h("p", { style: { fontSize: "var(--sl-font-size-medium)" } }, (_a = states.user) === null || _a === void 0 ? void 0 :
|
|
2412
|
+
_a.firstName,
|
|
2413
|
+
" ", (_b = states.user) === null || _b === void 0 ? void 0 :
|
|
2414
|
+
_b.lastName),
|
|
2415
|
+
h("p", { style: { fontSize: "var(--sl-font-size-medium)" }, title: (_c = states.user) === null || _c === void 0 ? void 0 : _c.email }, (_d = states.user) === null || _d === void 0 ? void 0 : _d.email))),
|
|
2416
|
+
h("sl-button", { type: "primary", loading: states.loading, onClick: () => {
|
|
2417
|
+
callbacks.resetForm();
|
|
2418
|
+
callbacks.setShowEdit(true);
|
|
2419
|
+
}, exportparts: "base: primarybutton-base" }, text.editprofiletext)));
|
|
2420
|
+
};
|
|
2421
|
+
|
|
2422
|
+
function LeaderboardView(props) {
|
|
2423
|
+
var _a, _b, _c;
|
|
2424
|
+
const { states, data, elements } = props;
|
|
2425
|
+
const { styles } = states;
|
|
2551
2426
|
const style = {
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2427
|
+
Leaderboard: {
|
|
2428
|
+
"& table": {
|
|
2429
|
+
width: "100%",
|
|
2430
|
+
borderCollapse: "collapse",
|
|
2431
|
+
background: styles.background || "transparent",
|
|
2432
|
+
borderRadius: styles.borderRadius ? `${styles.borderRadius}px` : "0",
|
|
2556
2433
|
},
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
color: "var(--sl-color-gray-600)",
|
|
2564
|
-
"padding-top": `var(--sl-spacing-${props.paddingTop})`,
|
|
2565
|
-
"padding-right": `var(--sl-spacing-${props.paddingRight})`,
|
|
2566
|
-
"padding-bottom": `var(--sl-spacing-${props.paddingBottom})`,
|
|
2567
|
-
"padding-left": `var(--sl-spacing-${props.paddingLeft})`,
|
|
2568
|
-
"row-gap": `var(--sl-spacing-small)`,
|
|
2569
|
-
"& a:hover": {
|
|
2570
|
-
color: "var(--sl-color-gray-900)",
|
|
2434
|
+
"& th": {
|
|
2435
|
+
textAlign: "left",
|
|
2436
|
+
padding: "var(--sl-spacing-medium)",
|
|
2437
|
+
paddingTop: "0",
|
|
2438
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
2439
|
+
fontWeight: "var(--sl-font-weight-semibold)",
|
|
2571
2440
|
},
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
textAlign: "center",
|
|
2575
|
-
margin: 0,
|
|
2576
|
-
},
|
|
2577
|
-
PoweredByLink: {
|
|
2578
|
-
color: "var(--sl-color-gray-400)",
|
|
2579
|
-
"font-size": "var(--sl-font-size-small)",
|
|
2580
|
-
display: "flex",
|
|
2581
|
-
alignItems: "center",
|
|
2582
|
-
svg: {
|
|
2583
|
-
marginTop: "2px",
|
|
2584
|
-
shapeRendering: "geometricprecision",
|
|
2441
|
+
"& tr:not(:first-child)": {
|
|
2442
|
+
borderTop: `var(--sqm-bordr-thickness) solid ${styles.borderColor || "var(--sqm-border-color)"}`,
|
|
2585
2443
|
},
|
|
2586
|
-
"
|
|
2587
|
-
|
|
2444
|
+
"& td": {
|
|
2445
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
2446
|
+
fontWeight: "var(--sl-font-weight-normal)",
|
|
2447
|
+
},
|
|
2448
|
+
"& .ellipses": {
|
|
2449
|
+
textAlign: "left",
|
|
2450
|
+
padding: "0",
|
|
2451
|
+
color: styles.textColor || "var(--sqm-text)",
|
|
2452
|
+
paddingLeft: "25%",
|
|
2453
|
+
},
|
|
2454
|
+
"& .highlight": {
|
|
2455
|
+
background: styles.viewingUserHighlightColor ||
|
|
2456
|
+
"var(--sqm-accent-color-background)",
|
|
2457
|
+
"& td, th": {
|
|
2458
|
+
color: styles.viewingUserHighlightTextColor || "var(--sqm-text)",
|
|
2459
|
+
},
|
|
2460
|
+
},
|
|
2461
|
+
"& td, th": {
|
|
2462
|
+
color: styles.textColor || "var(--sqm-text)",
|
|
2463
|
+
padding: "var(--sl-spacing-medium)",
|
|
2464
|
+
},
|
|
2465
|
+
"& .User": {
|
|
2466
|
+
width: "100%",
|
|
2467
|
+
},
|
|
2468
|
+
"& .Score": {
|
|
2469
|
+
width: "auto",
|
|
2470
|
+
whiteSpace: "nowrap",
|
|
2471
|
+
},
|
|
2472
|
+
"& .Rank": {
|
|
2473
|
+
whiteSpace: "nowrap",
|
|
2474
|
+
},
|
|
2475
|
+
"& .fullWidth": {
|
|
2476
|
+
width: "100%",
|
|
2588
2477
|
},
|
|
2589
2478
|
},
|
|
2590
2479
|
};
|
|
2591
2480
|
const sheet = createStyleSheet(style);
|
|
2592
2481
|
const styleString = sheet.toString();
|
|
2593
|
-
|
|
2482
|
+
const vanillaStyle = `
|
|
2483
|
+
:host{
|
|
2484
|
+
display: block;
|
|
2485
|
+
}
|
|
2486
|
+
`;
|
|
2487
|
+
if (states.isEssentials) {
|
|
2488
|
+
return (h("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1715360191/squatch-assets/Leaderboard_Not_Available.svg", "empty-state-header": "Leaderboards aren\u2019t available on your plan", "empty-state-text": "Contact {supportText} to upgrade your plan and start leveraging gamification in your program.", "support-text": "Support" }));
|
|
2489
|
+
}
|
|
2490
|
+
if (states.loading) {
|
|
2491
|
+
return (h("div", { class: sheet.classes.Leaderboard, style: { width: styles.width || "100%" } },
|
|
2492
|
+
h("style", { type: "text/css" },
|
|
2493
|
+
styleString,
|
|
2494
|
+
vanillaStyle),
|
|
2495
|
+
h("table", null, [...Array(10)].map(() => {
|
|
2496
|
+
return (h("tr", null,
|
|
2497
|
+
h("td", null,
|
|
2498
|
+
h("sl-skeleton", null))));
|
|
2499
|
+
}))));
|
|
2500
|
+
}
|
|
2501
|
+
if (!states.hasLeaders)
|
|
2502
|
+
return elements.empty;
|
|
2503
|
+
let userSeenFlag = false;
|
|
2504
|
+
const getUsersName = (user) => {
|
|
2505
|
+
if (!user.firstName && !user.lastInitial)
|
|
2506
|
+
return styles.anonymousUser;
|
|
2507
|
+
const { firstName, lastInitial } = user;
|
|
2508
|
+
if (firstName && lastInitial)
|
|
2509
|
+
return `${firstName} ${lastInitial}`;
|
|
2510
|
+
if (firstName || lastInitial)
|
|
2511
|
+
return firstName || lastInitial;
|
|
2512
|
+
return styles.anonymousUser;
|
|
2513
|
+
};
|
|
2514
|
+
const getRankCellText = (userRank, isViewingUsersRow) => {
|
|
2515
|
+
if (!userRank) {
|
|
2516
|
+
return styles.hideNames ? `${styles.viewingUserText}` : "-";
|
|
2517
|
+
}
|
|
2518
|
+
const viewingUserText = ` - ${styles.viewingUserText}`;
|
|
2519
|
+
return styles.rankSuffix
|
|
2520
|
+
? intl.formatMessage({
|
|
2521
|
+
id: "rank",
|
|
2522
|
+
defaultMessage: styles.rankSuffix,
|
|
2523
|
+
}, {
|
|
2524
|
+
rank: userRank,
|
|
2525
|
+
}) + `${isViewingUsersRow && styles.hideNames ? viewingUserText : ""}`
|
|
2526
|
+
: `${userRank} ${isViewingUsersRow && styles.hideNames ? viewingUserText : ""}`;
|
|
2527
|
+
};
|
|
2528
|
+
return (h("div", { class: sheet.classes.Leaderboard, part: "sqm-base", style: { width: styles.width || "100%" } },
|
|
2594
2529
|
h("style", { type: "text/css" },
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
h("
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2530
|
+
styleString,
|
|
2531
|
+
vanillaStyle),
|
|
2532
|
+
h("table", { part: "sqm-table" },
|
|
2533
|
+
h("tr", null,
|
|
2534
|
+
styles.showRank && (h("th", { class: `Rank ${styles.hideNames ? "fullWidth" : ""}` }, styles.rankheading)),
|
|
2535
|
+
!styles.hideNames && h("th", { class: "User" }, styles.usersheading),
|
|
2536
|
+
h("th", { class: "Score" }, styles.statsheading)), (_a = data.leaderboard) === null || _a === void 0 ? void 0 :
|
|
2537
|
+
_a.map((user) => {
|
|
2538
|
+
var _a, _b;
|
|
2539
|
+
if (user.rowNumber === ((_a = data.viewerRank) === null || _a === void 0 ? void 0 : _a.rowNumber))
|
|
2540
|
+
userSeenFlag = true;
|
|
2541
|
+
const isViewingUsersRow = !styles.hideViewer && user.rowNumber === ((_b = data.viewerRank) === null || _b === void 0 ? void 0 : _b.rowNumber);
|
|
2542
|
+
return (h("tr", { class: isViewingUsersRow ? "highlight" : "" },
|
|
2543
|
+
styles.showRank && (h("td", { class: "Rank" }, getRankCellText(user.rank, isViewingUsersRow))),
|
|
2544
|
+
!styles.hideNames && h("td", { class: "User" }, getUsersName(user)),
|
|
2545
|
+
h("td", { class: "Score" }, user.textValue)));
|
|
2546
|
+
}),
|
|
2547
|
+
!userSeenFlag && !styles.hideViewer && (h("tr", null,
|
|
2548
|
+
h("td", { colSpan: 100, class: "ellipses" },
|
|
2549
|
+
h("sl-icon", { name: "three-dots", style: { verticalAlign: "middle" } })))),
|
|
2550
|
+
!userSeenFlag && !styles.hideViewer && (h("tr", { class: "highlight" },
|
|
2551
|
+
styles.showRank && (h("td", { class: "Rank" }, getRankCellText((_b = data.viewerRank) === null || _b === void 0 ? void 0 : _b.rank, true))),
|
|
2552
|
+
!styles.hideNames && (h("td", { class: "User" }, getUsersName(data.viewerRank || {}))),
|
|
2553
|
+
h("td", { class: "Score" }, ((_c = data.viewerRank) === null || _c === void 0 ? void 0 : _c.textValue) || "0"))))));
|
|
2609
2554
|
}
|
|
2610
2555
|
|
|
2611
2556
|
const paddingList = [
|
|
@@ -2642,10 +2587,10 @@ function HeroView(props) {
|
|
|
2642
2587
|
large: 9,
|
|
2643
2588
|
};
|
|
2644
2589
|
var index = sizes[size];
|
|
2645
|
-
if (isMobile(
|
|
2590
|
+
if (isMobile(650)) {
|
|
2646
2591
|
index = index - 2;
|
|
2647
2592
|
}
|
|
2648
|
-
else if (isMobile(
|
|
2593
|
+
else if (isMobile(767)) {
|
|
2649
2594
|
index = index - 1;
|
|
2650
2595
|
}
|
|
2651
2596
|
return half ? paddingList[index - 2] : paddingList[index];
|
|
@@ -2665,7 +2610,7 @@ function HeroView(props) {
|
|
|
2665
2610
|
const style = {
|
|
2666
2611
|
TwoColumnContainer: {
|
|
2667
2612
|
display: "flex",
|
|
2668
|
-
"@media screen and (max-width:
|
|
2613
|
+
"@media screen and (max-width: 650px)": {
|
|
2669
2614
|
flexDirection: states.wrapDirection == "wrap-reverse" ? "column-reverse" : "column",
|
|
2670
2615
|
justfiyContent: "center",
|
|
2671
2616
|
},
|
|
@@ -2691,10 +2636,13 @@ function HeroView(props) {
|
|
|
2691
2636
|
"&:last-of-type": {
|
|
2692
2637
|
background: `no-repeat center/cover ${parseBackground(states.secondaryBackground)}`,
|
|
2693
2638
|
},
|
|
2694
|
-
"@media screen and (min-width:
|
|
2639
|
+
"@media screen and (min-width: 650px)": { flex: "1 1 0" },
|
|
2695
2640
|
minHeight: `${states.minHeight}px`,
|
|
2696
2641
|
display: "block",
|
|
2697
2642
|
},
|
|
2643
|
+
HideColumn: {
|
|
2644
|
+
"@media screen and (max-width: 650px)": { display: "none" },
|
|
2645
|
+
},
|
|
2698
2646
|
SingleColumnContainer: {
|
|
2699
2647
|
background: `no-repeat center/cover ${parseBackground(states.background)}`,
|
|
2700
2648
|
minHeight: `${states.minHeight}px`,
|
|
@@ -2720,56 +2668,30 @@ function HeroView(props) {
|
|
|
2720
2668
|
height: 100%;
|
|
2721
2669
|
display: contents;
|
|
2722
2670
|
}
|
|
2723
|
-
img{
|
|
2724
|
-
max-width: 100%;
|
|
2725
|
-
height: auto;
|
|
2726
|
-
}
|
|
2727
|
-
|
|
2728
|
-
`;
|
|
2729
|
-
// NOTE: Spacing on the columns is controlled on the slots itself. For example using inline styling
|
|
2730
|
-
return (h("div", { class: sheet.classes.Container, part: "sqm-base" },
|
|
2731
|
-
h("style", { type: "text/css" },
|
|
2732
|
-
vanillaStyle,
|
|
2733
|
-
styleString),
|
|
2734
|
-
states.columns == 2 ? (h("div", { class: sheet.classes.TwoColumnContainer, part: "sqm-two-col-container" },
|
|
2735
|
-
h("div", { part: "sqm-two-col-primary-col", class: `${sheet.classes.ColumnWrapper} ${sheet.classes.ColumnPadding}
|
|
2736
|
-
|
|
2737
|
-
}
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
const { content } = states;
|
|
2742
|
-
// dependent on props
|
|
2743
|
-
const style = {
|
|
2744
|
-
Container: {
|
|
2745
|
-
position: "relative",
|
|
2746
|
-
width: content.iframeWidth,
|
|
2747
|
-
height: content.iframeHeight,
|
|
2748
|
-
},
|
|
2749
|
-
IFrame: {
|
|
2750
|
-
position: "absolute",
|
|
2751
|
-
width: "100%",
|
|
2752
|
-
height: "100%",
|
|
2753
|
-
border: "0",
|
|
2754
|
-
top: "0",
|
|
2755
|
-
left: "0",
|
|
2756
|
-
right: "0",
|
|
2757
|
-
},
|
|
2758
|
-
};
|
|
2759
|
-
// JSS config
|
|
2760
|
-
const sheet = createStyleSheet(style);
|
|
2761
|
-
const styleString = sheet.toString();
|
|
2762
|
-
return (h("div", { class: sheet.classes.Container },
|
|
2763
|
-
h("style", { type: "text/css" }, styleString),
|
|
2764
|
-
h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?rsCode=${data.shareCode}` })));
|
|
2671
|
+
img{
|
|
2672
|
+
max-width: 100%;
|
|
2673
|
+
height: auto;
|
|
2674
|
+
}
|
|
2675
|
+
|
|
2676
|
+
`;
|
|
2677
|
+
// NOTE: Spacing on the columns is controlled on the slots itself. For example using inline styling
|
|
2678
|
+
return (h("div", { class: sheet.classes.Container, part: "sqm-base" },
|
|
2679
|
+
h("style", { type: "text/css" },
|
|
2680
|
+
vanillaStyle,
|
|
2681
|
+
styleString),
|
|
2682
|
+
states.columns == 2 ? (h("div", { class: sheet.classes.TwoColumnContainer, part: "sqm-two-col-container" },
|
|
2683
|
+
h("div", { part: "sqm-two-col-primary-col", class: `${sheet.classes.ColumnWrapper} ${sheet.classes.ColumnPadding} ${states.columnToHideInMobile === "primary"
|
|
2684
|
+
? sheet.classes.HideColumn
|
|
2685
|
+
: ""}` }, content.primaryColumn),
|
|
2686
|
+
h("div", { part: "sqm-two-col-secondary-col", class: `${sheet.classes.ColumnWrapper} ${sheet.classes.ColumnPadding} ${states.columnToHideInMobile === "secondary"
|
|
2687
|
+
? sheet.classes.HideColumn
|
|
2688
|
+
: ""}` }, content.secondaryColumn))) : (h("div", { part: "sqm-single-col", class: `${sheet.classes.SingleColumnContainer} ${sheet.classes.ColumnPadding}` }, content.primaryColumn))));
|
|
2765
2689
|
}
|
|
2766
2690
|
|
|
2767
2691
|
const style$6 = {
|
|
2768
2692
|
ErrorStyle: ErrorStyles,
|
|
2769
|
-
|
|
2770
|
-
"
|
|
2771
|
-
"margin-bottom": "var(--sl-spacing-large)",
|
|
2772
|
-
},
|
|
2693
|
+
FieldContainer: {
|
|
2694
|
+
"margin-bottom": "var(--sl-spacing-large)",
|
|
2773
2695
|
},
|
|
2774
2696
|
};
|
|
2775
2697
|
const vanillaStyle$3 = `
|
|
@@ -2778,54 +2700,37 @@ const vanillaStyle$3 = `
|
|
|
2778
2700
|
width: 100%;
|
|
2779
2701
|
display: block;
|
|
2780
2702
|
}
|
|
2781
|
-
|
|
2782
|
-
sl-input::part(label){
|
|
2783
|
-
font-size: var(--sl-input-label-font-size-small);
|
|
2784
|
-
font-weight: var(--sl-font-weight-semibold);
|
|
2785
|
-
}
|
|
2786
2703
|
`;
|
|
2787
|
-
|
|
2704
|
+
jss.setup(create());
|
|
2705
|
+
const sheet$6 = jss.createStyleSheet(style$6);
|
|
2788
2706
|
const styleString$6 = sheet$6.toString();
|
|
2789
|
-
function
|
|
2790
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
2791
|
-
const { states } = props;
|
|
2707
|
+
function InputFieldView(props) {
|
|
2708
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
2709
|
+
const { states, content } = props;
|
|
2792
2710
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2793
|
-
return (h("div", { class: sheet$6.classes.
|
|
2711
|
+
return (h("div", { class: sheet$6.classes.FieldContainer, part: "sqm-base" },
|
|
2794
2712
|
h("style", { type: "text/css" },
|
|
2795
2713
|
vanillaStyle$3,
|
|
2796
2714
|
styleString$6),
|
|
2797
|
-
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name:
|
|
2798
|
-
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.
|
|
2799
|
-
}
|
|
2800
|
-
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) ? {
|
|
2801
|
-
class: sheet$6.classes.ErrorStyle,
|
|
2802
|
-
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) || "Cannot be empty",
|
|
2803
|
-
}
|
|
2804
|
-
: []))),
|
|
2805
|
-
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", 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) ? {
|
|
2806
|
-
value: (_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.lastName,
|
|
2715
|
+
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", 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]) ? {
|
|
2716
|
+
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.fieldName],
|
|
2807
2717
|
}
|
|
2808
|
-
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.
|
|
2718
|
+
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]) ? {
|
|
2809
2719
|
class: sheet$6.classes.ErrorStyle,
|
|
2810
|
-
helpText: (
|
|
2720
|
+
helpText: intl.formatMessage({
|
|
2721
|
+
id: `errorMessage-${content.fieldName}`,
|
|
2722
|
+
defaultMessage: content.errorMessage || (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]),
|
|
2723
|
+
}),
|
|
2811
2724
|
}
|
|
2812
2725
|
: [])))));
|
|
2813
2726
|
}
|
|
2814
2727
|
|
|
2815
2728
|
const style$7 = {
|
|
2816
|
-
ErrorStyle:
|
|
2817
|
-
|
|
2818
|
-
"
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
},
|
|
2822
|
-
ErrorMessageStyle: {
|
|
2823
|
-
margin: 0,
|
|
2824
|
-
color: "var(--sl-color-danger-500)",
|
|
2825
|
-
fontSize: "var(--sl-input-help-text-font-size-medium)",
|
|
2826
|
-
},
|
|
2827
|
-
FieldContainer: {
|
|
2828
|
-
"margin-bottom": "var(--sl-spacing-large)",
|
|
2729
|
+
ErrorStyle: ErrorStyles,
|
|
2730
|
+
FieldsContainer: {
|
|
2731
|
+
"& sl-input": {
|
|
2732
|
+
"margin-bottom": "var(--sl-spacing-large)",
|
|
2733
|
+
},
|
|
2829
2734
|
},
|
|
2830
2735
|
};
|
|
2831
2736
|
const vanillaStyle$4 = `
|
|
@@ -2834,70 +2739,259 @@ const vanillaStyle$4 = `
|
|
|
2834
2739
|
width: 100%;
|
|
2835
2740
|
display: block;
|
|
2836
2741
|
}
|
|
2837
|
-
|
|
2838
|
-
|
|
2742
|
+
|
|
2743
|
+
*::part(input-label), *::part(select-label), *::part(textarea-label){
|
|
2744
|
+
font-size: var(--sqm-input-label-font-size, var(--sl-input-font-size-small));
|
|
2839
2745
|
font-weight: var(--sl-font-weight-semibold);
|
|
2746
|
+
color: var(--sqm-input-label-color, var(--sqm-text), black);
|
|
2747
|
+
}
|
|
2748
|
+
|
|
2749
|
+
*::part(input-base), *::part(select-base), *::part(textarea-base){
|
|
2750
|
+
background-color: var(--sqm-input-background, #fff);
|
|
2751
|
+
border-radius: var(--sqm-input-border-radius, var(--sl-input-border-radius-large), 0.25rem);
|
|
2752
|
+
color: var(--sqm-input-color, white);
|
|
2753
|
+
border-width: var(--sqm-border-thickness, 1px);
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2756
|
+
sl-input::part(base):focus,
|
|
2757
|
+
sl-select::part(form-control-wrapper):focus,
|
|
2758
|
+
sl-textare::part(textarea-label):focus {
|
|
2759
|
+
border-color: none;
|
|
2760
|
+
border: var(--sqm-input-focus-border, var(--sqm-border-thickness) solid var(--sl-input-border-color-focus));
|
|
2761
|
+
}
|
|
2762
|
+
|
|
2763
|
+
*::part(input-label):disabled, *::part(select-label):disabled, *::part(textarea-label):disabled{
|
|
2764
|
+
background: var(--sqm-input-disabled-background, #f5f5f5);
|
|
2765
|
+
color: var(--sqm-input-disabled-color, var(--sl-color-gray-600));
|
|
2766
|
+
}
|
|
2767
|
+
|
|
2768
|
+
sl-input {
|
|
2769
|
+
--sl-input-border-color-focus: var(--sqm-border-color-focus);
|
|
2840
2770
|
}
|
|
2771
|
+
|
|
2841
2772
|
`;
|
|
2842
|
-
|
|
2843
|
-
const sheet$7 = jss.createStyleSheet(style$7);
|
|
2773
|
+
const sheet$7 = createStyleSheet(style$7);
|
|
2844
2774
|
const styleString$7 = sheet$7.toString();
|
|
2845
|
-
function
|
|
2846
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
2847
|
-
const { states
|
|
2775
|
+
function NameFieldsView(props) {
|
|
2776
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2777
|
+
const { states } = props;
|
|
2848
2778
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2849
|
-
return (h("div", { class: sheet$7.classes.
|
|
2779
|
+
return (h("div", { class: sheet$7.classes.FieldsContainer },
|
|
2850
2780
|
h("style", { type: "text/css" },
|
|
2851
2781
|
vanillaStyle$4,
|
|
2852
2782
|
styleString$7),
|
|
2853
|
-
h("sl-
|
|
2854
|
-
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g
|
|
2783
|
+
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", 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) ? {
|
|
2784
|
+
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.firstName,
|
|
2855
2785
|
}
|
|
2856
|
-
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors
|
|
2786
|
+
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) ? {
|
|
2857
2787
|
class: sheet$7.classes.ErrorStyle,
|
|
2788
|
+
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) || "Cannot be empty",
|
|
2858
2789
|
}
|
|
2859
|
-
: []))
|
|
2860
|
-
(
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2790
|
+
: []))),
|
|
2791
|
+
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", 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) ? {
|
|
2792
|
+
value: (_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.lastName,
|
|
2793
|
+
}
|
|
2794
|
+
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) ? {
|
|
2795
|
+
class: sheet$7.classes.ErrorStyle,
|
|
2796
|
+
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) || "Cannot be empty",
|
|
2797
|
+
}
|
|
2798
|
+
: [])))));
|
|
2864
2799
|
}
|
|
2865
2800
|
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
:
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2801
|
+
function ChangeMarktingView(props) {
|
|
2802
|
+
const { states, callbacks } = props;
|
|
2803
|
+
const { text, formState } = states;
|
|
2804
|
+
const { error } = formState;
|
|
2805
|
+
const style = {
|
|
2806
|
+
Container: {
|
|
2807
|
+
display: "flex",
|
|
2808
|
+
flexDirection: "column",
|
|
2809
|
+
gap: "var(--sl-spacing-x-small)",
|
|
2810
|
+
padding: "0 var(--sl-spacing-xxx-large) var(--sl-spacing-xxx-large)",
|
|
2811
|
+
},
|
|
2812
|
+
SubmitButton: { marginBottom: "var(--sl-spacing-medium)" },
|
|
2813
|
+
Error: {
|
|
2814
|
+
"&::part(erroralert-base)": {
|
|
2815
|
+
"margin-bottom": "15px",
|
|
2816
|
+
},
|
|
2817
|
+
},
|
|
2818
|
+
Success: {
|
|
2819
|
+
"&::part(successalert-base)": {
|
|
2820
|
+
"margin-bottom": "15px",
|
|
2821
|
+
},
|
|
2822
|
+
},
|
|
2823
|
+
};
|
|
2824
|
+
const sheet = createStyleSheet(style);
|
|
2825
|
+
const styleString = sheet.toString();
|
|
2826
|
+
return (h("div", { class: sheet.classes.Container, part: "sqm-base" },
|
|
2827
|
+
h("style", { type: "text/css" }, styleString),
|
|
2828
|
+
h(TextSpanView, Object.assign({}, { type: "h2" }), text.emailPreferencesHeader),
|
|
2829
|
+
h("sl-form", { "onSl-submit": callbacks.onSubmit },
|
|
2830
|
+
h(CheckboxFieldView, { states: {
|
|
2831
|
+
checked: states.formState.marketingEmailOptIn,
|
|
2832
|
+
}, content: {
|
|
2833
|
+
checkboxLabel: text.marketingCheckboxLabel,
|
|
2834
|
+
checkboxName: "marketingEmailOptIn",
|
|
2835
|
+
}, callbacks: {
|
|
2836
|
+
setChecked: callbacks.setChecked,
|
|
2837
|
+
} }),
|
|
2838
|
+
h("sl-button", { class: sheet.classes.SubmitButton, type: "primary", submit: true, loading: states.loading, disabled: states.submitDisabled }, text.submitChangeButtonText),
|
|
2839
|
+
error && (h("sqm-form-message", { class: sheet.classes.Error, type: "error", exportparts: "erroralert-icon" },
|
|
2840
|
+
h("div", { part: "erroralert-text" }, error))),
|
|
2841
|
+
states.success && (h("sqm-form-message", { class: sheet.classes.Success, type: "success", exportparts: "successalert-icon" },
|
|
2842
|
+
h("div", { part: "successalert-text" }, states.text.successMessage))))));
|
|
2877
2843
|
}
|
|
2844
|
+
|
|
2845
|
+
const vanillaStyle$5 = `
|
|
2846
|
+
:host{
|
|
2847
|
+
margin: 0 auto;
|
|
2848
|
+
width: 100%;
|
|
2849
|
+
}
|
|
2850
|
+
a{
|
|
2851
|
+
cursor:pointer;
|
|
2852
|
+
color: var(--sqm-text-subdued);
|
|
2853
|
+
text-decoration: none ;
|
|
2854
|
+
}
|
|
2878
2855
|
`;
|
|
2879
|
-
|
|
2880
|
-
const
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2856
|
+
function PortalFooterView(props) {
|
|
2857
|
+
const style = {
|
|
2858
|
+
RowContainer: {
|
|
2859
|
+
display: "flex",
|
|
2860
|
+
"& > :not(:last-child)": {
|
|
2861
|
+
"margin-right": "var(--sl-spacing-large)",
|
|
2862
|
+
},
|
|
2863
|
+
},
|
|
2864
|
+
Container: {
|
|
2865
|
+
display: "flex",
|
|
2866
|
+
"flex-direction": "column",
|
|
2867
|
+
"align-items": "center",
|
|
2868
|
+
"font-size": "var(--sl-font-size-small)",
|
|
2869
|
+
color: "var(--sqm-text-subdued)",
|
|
2870
|
+
"padding-top": `var(--sl-spacing-${props.paddingTop})`,
|
|
2871
|
+
"padding-right": `var(--sl-spacing-${props.paddingRight})`,
|
|
2872
|
+
"padding-bottom": `var(--sl-spacing-${props.paddingBottom})`,
|
|
2873
|
+
"padding-left": `var(--sl-spacing-${props.paddingLeft})`,
|
|
2874
|
+
"row-gap": `var(--sl-spacing-small)`,
|
|
2875
|
+
"& a:hover": {
|
|
2876
|
+
color: "var(--sqm-text)",
|
|
2877
|
+
},
|
|
2878
|
+
},
|
|
2879
|
+
SupportText: {
|
|
2880
|
+
textAlign: "center",
|
|
2881
|
+
margin: 0,
|
|
2882
|
+
},
|
|
2883
|
+
PoweredByLink: {
|
|
2884
|
+
color: "var(--sqm-text-subdued)",
|
|
2885
|
+
"font-size": "var(--sl-font-size-small)",
|
|
2886
|
+
display: "flex",
|
|
2887
|
+
alignItems: "center",
|
|
2888
|
+
svg: {
|
|
2889
|
+
marginTop: "2px",
|
|
2890
|
+
shapeRendering: "geometricprecision",
|
|
2891
|
+
},
|
|
2892
|
+
"&:hover, &:hover *": {
|
|
2893
|
+
color: "var(--sqm-text)",
|
|
2894
|
+
},
|
|
2895
|
+
},
|
|
2896
|
+
};
|
|
2897
|
+
const sheet = createStyleSheet(style);
|
|
2898
|
+
const styleString = sheet.toString();
|
|
2899
|
+
return (h("div", { class: sheet.classes.Container, part: "sqm-base" },
|
|
2887
2900
|
h("style", { type: "text/css" },
|
|
2888
2901
|
vanillaStyle$5,
|
|
2889
|
-
styleString
|
|
2890
|
-
h("
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
}
|
|
2900
|
-
|
|
2902
|
+
styleString),
|
|
2903
|
+
h("div", { class: sheet.classes.RowContainer },
|
|
2904
|
+
props.faqLink && (h("a", { target: "_blank", href: props.faqLink }, props.faqText)),
|
|
2905
|
+
props.termsLink && (h("a", { target: "_blank", href: props.termsLink }, props.termsText))),
|
|
2906
|
+
!props.hideSupportText && (h("p", { class: sheet.classes.SupportText }, intl.formatMessage({
|
|
2907
|
+
id: "supportFooter",
|
|
2908
|
+
defaultMessage: props.supportText,
|
|
2909
|
+
}, {
|
|
2910
|
+
email: (h("a", { target: "_blank", href: `mailto:${props.supportEmail}` }, props.supportEmail)),
|
|
2911
|
+
}))),
|
|
2912
|
+
!props.hidePoweredBy && (h("a", { class: sheet.classes.PoweredByLink, target: "_blank", href: props.poweredByLink },
|
|
2913
|
+
"Powered by ",
|
|
2914
|
+
h(PoweredByImg, { color: "currentColor" })))));
|
|
2915
|
+
}
|
|
2916
|
+
|
|
2917
|
+
function PortalFrameView(props, children) {
|
|
2918
|
+
const { data, notFullScreen, border } = props;
|
|
2919
|
+
const style = {
|
|
2920
|
+
HostBlock: HostBlock,
|
|
2921
|
+
Frame: {
|
|
2922
|
+
display: "flex",
|
|
2923
|
+
"flex-direction": "column",
|
|
2924
|
+
"box-sizing": "border-box",
|
|
2925
|
+
"&:nth-child(2)": {
|
|
2926
|
+
background: props.backgroundColor,
|
|
2927
|
+
},
|
|
2928
|
+
},
|
|
2929
|
+
FooterWrapper: {
|
|
2930
|
+
width: "100%",
|
|
2931
|
+
"max-width": "100%",
|
|
2932
|
+
padding: "var(--sl-spacing-medium) var(--sl-spacing-x-large)",
|
|
2933
|
+
background: props.headerAndFooterBackgroundColor,
|
|
2934
|
+
display: "flex",
|
|
2935
|
+
"justify-content": "flex-end",
|
|
2936
|
+
"align-items": "center",
|
|
2937
|
+
"box-sizing": "border-box",
|
|
2938
|
+
borderTop: border,
|
|
2939
|
+
"margin-top": "auto",
|
|
2940
|
+
},
|
|
2941
|
+
HeaderWrapper: {
|
|
2942
|
+
width: "100%",
|
|
2943
|
+
"max-width": "100%",
|
|
2944
|
+
"box-sizing": "border-box",
|
|
2945
|
+
display: "flex",
|
|
2946
|
+
"justify-content": "space-between",
|
|
2947
|
+
padding: "var(--sl-spacing-small) var(--sl-spacing-large)",
|
|
2948
|
+
"align-items": "center",
|
|
2949
|
+
borderBottom: border,
|
|
2950
|
+
background: props.headerAndFooterBackgroundColor,
|
|
2951
|
+
"@media screen and (max-width: 499px)": {
|
|
2952
|
+
"flex-direction": "row-reverse",
|
|
2953
|
+
"justify-content": "flex-end",
|
|
2954
|
+
padding: "0",
|
|
2955
|
+
},
|
|
2956
|
+
},
|
|
2957
|
+
};
|
|
2958
|
+
const sheet = createStyleSheet(style);
|
|
2959
|
+
const styleString = sheet.toString();
|
|
2960
|
+
return (h("div", { style: { minHeight: notFullScreen ? "100%" : "100vh" }, class: sheet.classes.Frame, part: "sqm-base" },
|
|
2961
|
+
h("style", { type: "text/css" }, styleString),
|
|
2962
|
+
h("div", { class: sheet.classes.HeaderWrapper, part: "sqm-header" },
|
|
2963
|
+
data.header,
|
|
2964
|
+
h("slot", { name: "sqm-navigation-menu" })),
|
|
2965
|
+
children,
|
|
2966
|
+
h("div", { class: sheet.classes.FooterWrapper, part: "sqm-footer" }, data.footer)));
|
|
2967
|
+
}
|
|
2968
|
+
|
|
2969
|
+
function ReferralIframeView(props) {
|
|
2970
|
+
const { states, data } = props;
|
|
2971
|
+
const { content } = states;
|
|
2972
|
+
// dependent on props
|
|
2973
|
+
const style = {
|
|
2974
|
+
Container: {
|
|
2975
|
+
position: "relative",
|
|
2976
|
+
width: content.iframeWidth,
|
|
2977
|
+
height: content.iframeHeight,
|
|
2978
|
+
},
|
|
2979
|
+
IFrame: {
|
|
2980
|
+
position: "absolute",
|
|
2981
|
+
width: "100%",
|
|
2982
|
+
height: "100%",
|
|
2983
|
+
border: "0",
|
|
2984
|
+
top: "0",
|
|
2985
|
+
left: "0",
|
|
2986
|
+
right: "0",
|
|
2987
|
+
},
|
|
2988
|
+
};
|
|
2989
|
+
// JSS config
|
|
2990
|
+
const sheet = createStyleSheet(style);
|
|
2991
|
+
const styleString = sheet.toString();
|
|
2992
|
+
return (h("div", { class: sheet.classes.Container },
|
|
2993
|
+
h("style", { type: "text/css" }, styleString),
|
|
2994
|
+
h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?rsCode=${data.shareCode}` })));
|
|
2901
2995
|
}
|
|
2902
2996
|
|
|
2903
2997
|
const CheckMark = () => (h("svg", { width: 12, height: 10, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
@@ -2929,15 +3023,15 @@ function Dot({ active, completed, incomplete, stage, }) {
|
|
|
2929
3023
|
} },
|
|
2930
3024
|
h("div", { style: {
|
|
2931
3025
|
backgroundColor: completed
|
|
2932
|
-
? "var(--
|
|
3026
|
+
? "var(--sqm-success-color-icon)"
|
|
2933
3027
|
: incomplete
|
|
2934
|
-
? "var(--
|
|
2935
|
-
: "
|
|
3028
|
+
? "var(--sqm-border-color)"
|
|
3029
|
+
: "white",
|
|
2936
3030
|
border: active
|
|
2937
|
-
? "1px solid var(--
|
|
3031
|
+
? "1px solid var(--sqm-success-color-border)"
|
|
2938
3032
|
: incomplete
|
|
2939
|
-
? "1px solid var(--
|
|
2940
|
-
: "1px solid var(--
|
|
3033
|
+
? "1px solid var(--sqm-border-color)"
|
|
3034
|
+
: "1px solid var(--sqm-success-color-border)",
|
|
2941
3035
|
borderRadius: "50%",
|
|
2942
3036
|
width: "23px",
|
|
2943
3037
|
height: "23px",
|
|
@@ -2947,8 +3041,8 @@ function Dot({ active, completed, incomplete, stage, }) {
|
|
|
2947
3041
|
} }, completed ? (h("div", { style: { top: "-10.5%", left: "23.5%", position: "relative" } },
|
|
2948
3042
|
h(CheckMark, null))) : (h("div", { style: {
|
|
2949
3043
|
color: active
|
|
2950
|
-
? "var(--
|
|
2951
|
-
: "var(--
|
|
3044
|
+
? "var(--sqm-success-color-border)"
|
|
3045
|
+
: "var(--sqm-text-subdued)",
|
|
2952
3046
|
width: "23px",
|
|
2953
3047
|
lineHeight: "24px",
|
|
2954
3048
|
textAlign: "center",
|
|
@@ -2962,8 +3056,8 @@ function ProgressLine({ incomplete = false, active = false, invisible = false, }
|
|
|
2962
3056
|
height: "4px",
|
|
2963
3057
|
borderRadius: "4px",
|
|
2964
3058
|
background: incomplete || active
|
|
2965
|
-
? "var(--
|
|
2966
|
-
: "var(--
|
|
3059
|
+
? "var(--sqm-border-color)"
|
|
3060
|
+
: "var(--sqm-success-color-icon)",
|
|
2967
3061
|
position: "relative",
|
|
2968
3062
|
bottom: "0",
|
|
2969
3063
|
left: "0",
|
|
@@ -2986,7 +3080,7 @@ function ProgressBar({ stageCount, currentStage, }) {
|
|
|
2986
3080
|
return (h("div", { style: { display: "flex", columnGap: "-2px" } }, Array.from(Array(stageCount).keys()).map((stage) => (h(Progress, { active: currentStage === stage, completed: currentStage > stage, incomplete: currentStage < stage, stage: stage })))));
|
|
2987
3081
|
}
|
|
2988
3082
|
|
|
2989
|
-
const style$
|
|
3083
|
+
const style$8 = {
|
|
2990
3084
|
HostBlock: HostBlock,
|
|
2991
3085
|
Container: {
|
|
2992
3086
|
minWidth: "300px",
|
|
@@ -3000,21 +3094,25 @@ const style$9 = {
|
|
|
3000
3094
|
margin: "0 auto",
|
|
3001
3095
|
},
|
|
3002
3096
|
Select: {
|
|
3097
|
+
"&::part(base)": {
|
|
3098
|
+
borderRadius: "var(--sqm-input-border-radius)",
|
|
3099
|
+
},
|
|
3003
3100
|
"&::part(label)": {
|
|
3004
|
-
|
|
3101
|
+
color: "var(--sqm-input-label-color)",
|
|
3005
3102
|
},
|
|
3006
3103
|
"&::part(menu)": {
|
|
3007
3104
|
maxHeight: "450px",
|
|
3008
3105
|
},
|
|
3009
3106
|
"& sl-menu-item::part(checked-icon)": {
|
|
3010
3107
|
top: "8px",
|
|
3108
|
+
color: "var(--sqm-text)",
|
|
3011
3109
|
},
|
|
3012
3110
|
"& sl-menu-item::part(base)": {
|
|
3013
3111
|
flexDirection: "column",
|
|
3014
3112
|
},
|
|
3015
3113
|
"& sl-menu-item::part(base):focus": {
|
|
3016
|
-
background: "
|
|
3017
|
-
color: "var(--
|
|
3114
|
+
background: "var(--sqm-accent-color-background)",
|
|
3115
|
+
color: "var(--sqm-text)",
|
|
3018
3116
|
},
|
|
3019
3117
|
},
|
|
3020
3118
|
ProgressBar: {
|
|
@@ -3034,7 +3132,7 @@ const style$9 = {
|
|
|
3034
3132
|
flex: "1 1 0",
|
|
3035
3133
|
},
|
|
3036
3134
|
"& .text.subdued": {
|
|
3037
|
-
color: "var(--
|
|
3135
|
+
color: "var(--sqm-text-subdued)",
|
|
3038
3136
|
},
|
|
3039
3137
|
},
|
|
3040
3138
|
},
|
|
@@ -3049,6 +3147,9 @@ const style$9 = {
|
|
|
3049
3147
|
userSelect: "none",
|
|
3050
3148
|
height: "120px",
|
|
3051
3149
|
"&::part(base)": {
|
|
3150
|
+
background: "var(--sqm-portal-background)",
|
|
3151
|
+
border: "var(--sqm-border-thickness) solid var(--sqm-border-color)",
|
|
3152
|
+
borderRadius: "var(--sqm-border-radius-normal)",
|
|
3052
3153
|
boxShadow: "none",
|
|
3053
3154
|
width: "100%",
|
|
3054
3155
|
},
|
|
@@ -3057,10 +3158,11 @@ const style$9 = {
|
|
|
3057
3158
|
padding: 0,
|
|
3058
3159
|
},
|
|
3059
3160
|
"& .selected": {
|
|
3161
|
+
borderRadius: "var(--sqm-border-radius-normal)",
|
|
3060
3162
|
position: "relative",
|
|
3061
3163
|
top: "-2%",
|
|
3062
3164
|
left: "100%",
|
|
3063
|
-
color: "var(--
|
|
3165
|
+
color: "var(--sqm-primary-color)",
|
|
3064
3166
|
margin: "-9px",
|
|
3065
3167
|
},
|
|
3066
3168
|
},
|
|
@@ -3092,7 +3194,7 @@ const style$9 = {
|
|
|
3092
3194
|
fontSize: "var(--sl-font-size-medium)",
|
|
3093
3195
|
lineHeight: "var(--sl-line-height-dense)",
|
|
3094
3196
|
fontWeight: "600",
|
|
3095
|
-
color: "var(--
|
|
3197
|
+
color: "var(--sqm-text)",
|
|
3096
3198
|
display: "-webkit-box",
|
|
3097
3199
|
"-webkit-line-clamp": "1",
|
|
3098
3200
|
"-webkit-box-orient": "vertical",
|
|
@@ -3102,7 +3204,7 @@ const style$9 = {
|
|
|
3102
3204
|
fontSize: "var(--sl-font-size-small)",
|
|
3103
3205
|
lineHeight: "var(--sl-line-height-dense)",
|
|
3104
3206
|
marginTop: "var(--sl-spacing-x-small)",
|
|
3105
|
-
color: "var(--
|
|
3207
|
+
color: "var(--sqm-text-subdued)",
|
|
3106
3208
|
display: "-webkit-box",
|
|
3107
3209
|
"-webkit-line-clamp": "1",
|
|
3108
3210
|
"-webkit-box-orient": "vertical",
|
|
@@ -3113,7 +3215,7 @@ const style$9 = {
|
|
|
3113
3215
|
lineHeight: "var(--sl-line-height-dense)",
|
|
3114
3216
|
marginTop: "var(--sl-spacing-x-small)",
|
|
3115
3217
|
fontWeight: "600",
|
|
3116
|
-
color: "var(--
|
|
3218
|
+
color: "var(--sqm-warning-color-icon)",
|
|
3117
3219
|
display: "-webkit-box",
|
|
3118
3220
|
"-webkit-line-clamp": "1",
|
|
3119
3221
|
"-webkit-box-orient": "vertical",
|
|
@@ -3148,7 +3250,6 @@ const style$9 = {
|
|
|
3148
3250
|
"& .text": {
|
|
3149
3251
|
width: "50%",
|
|
3150
3252
|
maxWidth: "400px",
|
|
3151
|
-
// minWidth: "330px",
|
|
3152
3253
|
"@media (max-width: 799px)": {
|
|
3153
3254
|
width: "auto",
|
|
3154
3255
|
margin: "auto",
|
|
@@ -3157,17 +3258,17 @@ const style$9 = {
|
|
|
3157
3258
|
"& .title": {
|
|
3158
3259
|
fontSize: "var(--sl-font-size-large)",
|
|
3159
3260
|
fontWeight: "var(--sl-font-weight-semibold)",
|
|
3160
|
-
color: "var(--
|
|
3261
|
+
color: "var(--sqm-text)",
|
|
3161
3262
|
},
|
|
3162
3263
|
"& .points": {
|
|
3163
3264
|
fontSize: "var(--sl-font-size-large)",
|
|
3164
3265
|
fontWeight: "var(--sl-font-weight-semibold)",
|
|
3165
|
-
color: "var(--
|
|
3266
|
+
color: "var(--sqm-accent-color-text)",
|
|
3166
3267
|
},
|
|
3167
3268
|
"& .description": {
|
|
3168
3269
|
fontSize: "var(--sl-font-size-medium)",
|
|
3169
3270
|
fontWeight: "var(--sl-font-weight-normal)",
|
|
3170
|
-
color: "var(--
|
|
3271
|
+
color: "var(--sqm-text-subdued)",
|
|
3171
3272
|
margin: "var(--sl-spacing-medium) 0",
|
|
3172
3273
|
lineHeight: "var(--sl-line-height-dense)",
|
|
3173
3274
|
marginTop: "var(--sl-spacing-xx-small)",
|
|
@@ -3176,14 +3277,14 @@ const style$9 = {
|
|
|
3176
3277
|
marginBottom: "var(--sl-spacing-xxx-large)",
|
|
3177
3278
|
},
|
|
3178
3279
|
"& sl-menu-item[disabled]::part(label)": {
|
|
3179
|
-
color: "var(
|
|
3280
|
+
color: "var(sqm-text-subdued)",
|
|
3180
3281
|
},
|
|
3181
3282
|
"& sl-menu-item[disabled]": {
|
|
3182
3283
|
"& .step-cost": {
|
|
3183
|
-
color: "var(
|
|
3284
|
+
color: "var(sqm-text-subdued)",
|
|
3184
3285
|
},
|
|
3185
3286
|
"& .step-value": {
|
|
3186
|
-
color: "var(
|
|
3287
|
+
color: "var(sqm-text-subdued)",
|
|
3187
3288
|
},
|
|
3188
3289
|
},
|
|
3189
3290
|
},
|
|
@@ -3191,16 +3292,16 @@ const style$9 = {
|
|
|
3191
3292
|
display: "flex",
|
|
3192
3293
|
flexDirection: "column",
|
|
3193
3294
|
"&::part(label)": {
|
|
3194
|
-
color: "var(--
|
|
3295
|
+
color: "var(--sqm-text)",
|
|
3195
3296
|
margin: "0",
|
|
3196
3297
|
},
|
|
3197
3298
|
"& .step-cost": {
|
|
3198
|
-
color: "var(--
|
|
3299
|
+
color: "var(--sqm-text-subdued)",
|
|
3199
3300
|
marginBottom: "var(--sl-spacing-x-small)",
|
|
3200
3301
|
},
|
|
3201
3302
|
"& .step-unavailable": {
|
|
3202
3303
|
fontSize: "var(--sl-font-size-small)",
|
|
3203
|
-
color: "var(--
|
|
3304
|
+
color: "var(--sqm-warning-color-text)",
|
|
3204
3305
|
margin: "0",
|
|
3205
3306
|
},
|
|
3206
3307
|
},
|
|
@@ -3209,10 +3310,10 @@ const style$9 = {
|
|
|
3209
3310
|
"& .title": {
|
|
3210
3311
|
fontSize: "var(--sl-font-size-large)",
|
|
3211
3312
|
fontWeight: "var(--sl-font-weight-semibold)",
|
|
3212
|
-
color: "var(--
|
|
3313
|
+
color: "var(--sqm-text)",
|
|
3213
3314
|
},
|
|
3214
3315
|
"& .description": {
|
|
3215
|
-
color: "var(--
|
|
3316
|
+
color: "var(--sqm-text-subued)",
|
|
3216
3317
|
maxWidth: "350px",
|
|
3217
3318
|
margin: "0 auto",
|
|
3218
3319
|
lineHeight: "var(--sl-line-height-dense)",
|
|
@@ -3223,7 +3324,7 @@ const style$9 = {
|
|
|
3223
3324
|
maxWidth: "350px",
|
|
3224
3325
|
margin: "-30px auto var(--sl-spacing-xxx-large) auto",
|
|
3225
3326
|
textAlign: "left",
|
|
3226
|
-
color: "var(--
|
|
3327
|
+
color: "var(--sqm-text-subdued)",
|
|
3227
3328
|
},
|
|
3228
3329
|
},
|
|
3229
3330
|
Grid: {
|
|
@@ -3265,10 +3366,9 @@ const style$9 = {
|
|
|
3265
3366
|
},
|
|
3266
3367
|
"& .field": {
|
|
3267
3368
|
width: "30%",
|
|
3268
|
-
textTransform: "uppercase",
|
|
3269
3369
|
fontSize: "var(--sl-font-size-medium)",
|
|
3270
3370
|
fontWeight: "var(--sl-font-weight-normal)",
|
|
3271
|
-
color: "var(--
|
|
3371
|
+
color: "var(--sqm-text-subdued)",
|
|
3272
3372
|
textAlign: "left",
|
|
3273
3373
|
paddingRight: "var(--sl-spacing-xxx-large)",
|
|
3274
3374
|
"@media (max-width: 499px)": {
|
|
@@ -3282,7 +3382,7 @@ const style$9 = {
|
|
|
3282
3382
|
fontWeight: "var(--sl-font-weight-semibold)",
|
|
3283
3383
|
},
|
|
3284
3384
|
"& .top-border": {
|
|
3285
|
-
borderTop: "
|
|
3385
|
+
borderTop: "var(--sqm-border-thickness) solid var(--sqm-border-color)",
|
|
3286
3386
|
},
|
|
3287
3387
|
"& .image": {
|
|
3288
3388
|
width: "200px",
|
|
@@ -3298,10 +3398,6 @@ const style$9 = {
|
|
|
3298
3398
|
"& .cancel": {
|
|
3299
3399
|
marginLeft: "auto",
|
|
3300
3400
|
marginRight: "var(--sl-spacing-medium)",
|
|
3301
|
-
"&::part(base)": {
|
|
3302
|
-
fontWeight: "var(--sl-font-weight-normal)",
|
|
3303
|
-
color: "var(--sl-color-neutral-1000)",
|
|
3304
|
-
},
|
|
3305
3401
|
"@media (max-width: 499px)": {
|
|
3306
3402
|
width: "100%",
|
|
3307
3403
|
marginRight: "0",
|
|
@@ -3309,12 +3405,6 @@ const style$9 = {
|
|
|
3309
3405
|
},
|
|
3310
3406
|
},
|
|
3311
3407
|
"& .continue": {
|
|
3312
|
-
"&::part(base)": {
|
|
3313
|
-
background: "var(--sl-color-primary-500)",
|
|
3314
|
-
borderColor: "var(--sl-color-primary-500)",
|
|
3315
|
-
fontWeight: "var(--sl-font-weight-normal)",
|
|
3316
|
-
color: "var(--sl-color-neutral-0)",
|
|
3317
|
-
},
|
|
3318
3408
|
"@media (max-width: 499px)": {
|
|
3319
3409
|
width: "100%",
|
|
3320
3410
|
},
|
|
@@ -3337,8 +3427,8 @@ const style$9 = {
|
|
|
3337
3427
|
},
|
|
3338
3428
|
};
|
|
3339
3429
|
// JSS config
|
|
3340
|
-
const sheet$
|
|
3341
|
-
const styleString$
|
|
3430
|
+
const sheet$8 = createStyleSheet(style$8);
|
|
3431
|
+
const styleString$8 = sheet$8.toString();
|
|
3342
3432
|
const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
|
|
3343
3433
|
function RewardExchangeView(props) {
|
|
3344
3434
|
const { states, data, callbacks, refs } = props;
|
|
@@ -3361,7 +3451,7 @@ function RewardExchangeView(props) {
|
|
|
3361
3451
|
sourceUnit: item.sourceUnit,
|
|
3362
3452
|
})));
|
|
3363
3453
|
}
|
|
3364
|
-
return (h("sl-select", { style: { width: "auto" }, label: (_b = states === null || states === void 0 ? void 0 : states.content) === null || _b === void 0 ? void 0 : _b.text.selectText, class: sheet$
|
|
3454
|
+
return (h("sl-select", { style: { width: "auto" }, label: (_b = states === null || states === void 0 ? void 0 : states.content) === null || _b === void 0 ? void 0 : _b.text.selectText, class: sheet$8.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
|
|
3365
3455
|
var _a, _b, _c, _d, _e;
|
|
3366
3456
|
return callbacks.setExchangeState({
|
|
3367
3457
|
amount: (_c = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value) === null || _c === void 0 ? void 0 : _c.sourceValue,
|
|
@@ -3369,7 +3459,7 @@ function RewardExchangeView(props) {
|
|
|
3369
3459
|
});
|
|
3370
3460
|
} }, (_c = item.steps) === null || _c === void 0 ? void 0 : _c.map((step) => {
|
|
3371
3461
|
var _a, _b;
|
|
3372
|
-
return (h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$
|
|
3462
|
+
return (h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$8.classes.SelectItem },
|
|
3373
3463
|
step.prettyDestinationValue,
|
|
3374
3464
|
h("br", null),
|
|
3375
3465
|
h("div", { class: "step-cost", slot: "suffix" },
|
|
@@ -3388,17 +3478,18 @@ function RewardExchangeView(props) {
|
|
|
3388
3478
|
var _a;
|
|
3389
3479
|
return [
|
|
3390
3480
|
h("div", { part: "choose-reward-container" },
|
|
3391
|
-
h("div", { class: sheet$
|
|
3392
|
-
states.loading || states.queryError ? (loading()) : (h("div", { class: sheet$
|
|
3481
|
+
h("div", { class: sheet$8.classes.Title }, states.content.text.rewardTitle),
|
|
3482
|
+
states.loading || states.queryError ? (loading()) : (h("div", { class: sheet$8.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
|
|
3393
3483
|
var _a, _b, _c, _d, _e;
|
|
3394
3484
|
const style = {
|
|
3395
3485
|
boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
|
|
3396
|
-
? "0 0 0 2px var(--
|
|
3486
|
+
? "0 0 0 2px var(--sqm-primary-color)"
|
|
3397
3487
|
: "none",
|
|
3398
|
-
borderRadius: "
|
|
3488
|
+
borderRadius: "var(--sqm-border-radius-normal)",
|
|
3489
|
+
borderColor: "none",
|
|
3399
3490
|
};
|
|
3400
3491
|
return (h("div", { key: item.key, style: style },
|
|
3401
|
-
h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$
|
|
3492
|
+
h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$8.classes.Card, style: {
|
|
3402
3493
|
cursor: item.unavailableReasonCode
|
|
3403
3494
|
? "not-allowed"
|
|
3404
3495
|
: "pointer",
|
|
@@ -3415,14 +3506,14 @@ function RewardExchangeView(props) {
|
|
|
3415
3506
|
? "rgba(0, 0, 0, 0.05)"
|
|
3416
3507
|
: "rgba(0, 0, 0, 0)",
|
|
3417
3508
|
} },
|
|
3418
|
-
h("div", { class: sheet$
|
|
3509
|
+
h("div", { class: sheet$8.classes.Image, style: {
|
|
3419
3510
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
3420
3511
|
} },
|
|
3421
3512
|
h("img", { class: item.unavailableReasonCode
|
|
3422
3513
|
? "image subdued"
|
|
3423
3514
|
: "image", src: (item === null || item === void 0 ? void 0 : item.imageUrl) ||
|
|
3424
3515
|
getAssetPath("./assets/Reward-image.png") })),
|
|
3425
|
-
h("div", { class: sheet$
|
|
3516
|
+
h("div", { class: sheet$8.classes.TextArea, style: {
|
|
3426
3517
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
3427
3518
|
} },
|
|
3428
3519
|
h("div", { class: "title", style: {
|
|
@@ -3455,8 +3546,8 @@ function RewardExchangeView(props) {
|
|
|
3455
3546
|
item.prettySourceMinValue,
|
|
3456
3547
|
}))))))));
|
|
3457
3548
|
}))),
|
|
3458
|
-
h("div", { class: sheet$
|
|
3459
|
-
h("sl-button", { exportparts: "base: primarybutton-base", class: "continue right", size: "large", onClick: () => callbacks.setStage("chooseAmount"), loading: states.loading, disabled: !states.selectedItem }, states.content.text.continueText))),
|
|
3549
|
+
h("div", { class: sheet$8.classes.Button },
|
|
3550
|
+
h("sl-button", { exportparts: "base: primarybutton-base", type: "primary", class: "continue right", size: "large", onClick: () => callbacks.setStage("chooseAmount"), loading: states.loading, disabled: !states.selectedItem }, states.content.text.continueText))),
|
|
3460
3551
|
];
|
|
3461
3552
|
}
|
|
3462
3553
|
function chooseAmount() {
|
|
@@ -3466,7 +3557,7 @@ function RewardExchangeView(props) {
|
|
|
3466
3557
|
? false
|
|
3467
3558
|
: input && !states.amount;
|
|
3468
3559
|
return (h("div", null,
|
|
3469
|
-
h("div", { class: sheet$
|
|
3560
|
+
h("div", { class: sheet$8.classes.ChooseAmount, part: "choose-amount-container" },
|
|
3470
3561
|
h("div", { class: "wrapper" },
|
|
3471
3562
|
h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
|
|
3472
3563
|
getAssetPath("./assets/Reward-image.png") }),
|
|
@@ -3475,16 +3566,16 @@ function RewardExchangeView(props) {
|
|
|
3475
3566
|
((_c = states.selectedItem) === null || _c === void 0 ? void 0 : _c.ruleType) === "FIXED_GLOBAL_REWARD" ? (h("div", { class: "points" }, input)) : (h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)),
|
|
3476
3567
|
((_d = states.selectedItem) === null || _d === void 0 ? void 0 : _d.ruleType) === "FIXED_GLOBAL_REWARD" ? (h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)) : (h("div", null, input)),
|
|
3477
3568
|
h("div", { class: "space" }))),
|
|
3478
|
-
h("div", { class: sheet$
|
|
3479
|
-
h("sl-button", { exportparts: "base: secondarybutton-base", class: "cancel", size: "large", type: "
|
|
3480
|
-
h("sl-button", { exportparts: "base: primarybutton-base", class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText)))));
|
|
3569
|
+
h("div", { class: sheet$8.classes.Button },
|
|
3570
|
+
h("sl-button", { exportparts: "base: secondarybutton-base", class: "cancel", size: "large", type: "secondary", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
|
|
3571
|
+
h("sl-button", { exportparts: "base: primarybutton-base", class: "continue", size: "large", type: "primary", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText)))));
|
|
3481
3572
|
}
|
|
3482
3573
|
function confirmation() {
|
|
3483
3574
|
const cost = (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue) || selectedItem.prettySourceValue;
|
|
3484
3575
|
const amount = selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue;
|
|
3485
3576
|
return (h("div", null,
|
|
3486
|
-
h("div", { class: sheet$
|
|
3487
|
-
h("div", { class: sheet$
|
|
3577
|
+
h("div", { class: sheet$8.classes.Confirmation, part: "confirmation-container" },
|
|
3578
|
+
h("div", { class: sheet$8.classes.Title }, states.content.text.redeemTitle),
|
|
3488
3579
|
h("div", { class: "wrapper" },
|
|
3489
3580
|
h("div", { class: "field" }, states.content.text.rewardNameTitle),
|
|
3490
3581
|
h("div", { class: "reward-item-container" },
|
|
@@ -3499,13 +3590,13 @@ function RewardExchangeView(props) {
|
|
|
3499
3590
|
h("div", { class: "wrapper top-border padding" },
|
|
3500
3591
|
h("div", { class: "field" }, states.content.text.costTitle),
|
|
3501
3592
|
h("div", { class: "value" }, cost)),
|
|
3502
|
-
h("div", { class: sheet$
|
|
3503
|
-
h("sl-button", { class: "cancel", type: "
|
|
3504
|
-
h("sl-button", { class: "continue", size: "large", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText)))));
|
|
3593
|
+
h("div", { class: sheet$8.classes.Button },
|
|
3594
|
+
h("sl-button", { class: "cancel", type: "secondary", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
|
|
3595
|
+
h("sl-button", { class: "continue", size: "large", type: "primary", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText)))));
|
|
3505
3596
|
}
|
|
3506
3597
|
function success() {
|
|
3507
3598
|
var _a, _b, _c, _d, _e, _f;
|
|
3508
|
-
return (h("div", { class: sheet$
|
|
3599
|
+
return (h("div", { class: sheet$8.classes.Success, part: "success-container" },
|
|
3509
3600
|
h(Gift$1, null),
|
|
3510
3601
|
h(Confetti, null),
|
|
3511
3602
|
h("div", { class: "title" }, (_a = states.content.text) === null || _a === void 0 ? void 0 : _a.rewardRedeemedText),
|
|
@@ -3520,7 +3611,7 @@ function RewardExchangeView(props) {
|
|
|
3520
3611
|
(data === null || data === void 0 ? void 0 : data.fuelTankCode) && (h("div", { class: "promo" },
|
|
3521
3612
|
states.content.text.promoCode,
|
|
3522
3613
|
h(CopyTextView, { copyString: data.fuelTankCode, tooltiptext: (_f = states === null || states === void 0 ? void 0 : states.content) === null || _f === void 0 ? void 0 : _f.text.tooltipText, open: states.open, onClick: callbacks.copyFuelTankCode }))),
|
|
3523
|
-
h("div", { class: sheet$
|
|
3614
|
+
h("div", { class: sheet$8.classes.Button },
|
|
3524
3615
|
h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
|
|
3525
3616
|
}
|
|
3526
3617
|
const stages = {
|
|
@@ -3532,7 +3623,7 @@ function RewardExchangeView(props) {
|
|
|
3532
3623
|
const currentStage = stages[states.redeemStage];
|
|
3533
3624
|
function stageMap() {
|
|
3534
3625
|
const stageNumber = stageList.indexOf(states.redeemStage);
|
|
3535
|
-
return (h("div", { class: sheet$
|
|
3626
|
+
return (h("div", { class: sheet$8.classes.ProgressBar },
|
|
3536
3627
|
h("div", { class: "text-area" }, Object.keys(stageProgressList).map((stage) => {
|
|
3537
3628
|
if (stageList.indexOf(stage) <= stageNumber) {
|
|
3538
3629
|
return h("span", { class: "text" }, stageProgressList[stage]);
|
|
@@ -3544,16 +3635,16 @@ function RewardExchangeView(props) {
|
|
|
3544
3635
|
h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
|
|
3545
3636
|
}
|
|
3546
3637
|
function loading() {
|
|
3547
|
-
return (h("div", { class: sheet$
|
|
3638
|
+
return (h("div", { class: sheet$8.classes.Grid, part: "loading-container" }, [...Array(states.content.text.skeletonCardNum)].map(() => {
|
|
3548
3639
|
return (h("div", null,
|
|
3549
|
-
h("sl-card", { class: sheet$
|
|
3550
|
-
h("div", { class: sheet$
|
|
3640
|
+
h("sl-card", { class: sheet$8.classes.Card },
|
|
3641
|
+
h("div", { class: sheet$8.classes.CardLayout },
|
|
3551
3642
|
h("div", null,
|
|
3552
3643
|
h("sl-skeleton", { style: {
|
|
3553
3644
|
width: "100px",
|
|
3554
3645
|
height: "100px",
|
|
3555
3646
|
margin: "9px",
|
|
3556
|
-
"--border-radius": "
|
|
3647
|
+
"--border-radius": "var(--sqm-border-radius-normal)",
|
|
3557
3648
|
} })),
|
|
3558
3649
|
h("div", { style: {
|
|
3559
3650
|
margin: "var(--sl-spacing-small) var(--sl-spacing-small) 0 0",
|
|
@@ -3579,12 +3670,12 @@ function RewardExchangeView(props) {
|
|
|
3579
3670
|
if (!(refs === null || refs === void 0 ? void 0 : refs.canvasRef))
|
|
3580
3671
|
return;
|
|
3581
3672
|
refs.canvasRef.current = canvas;
|
|
3582
|
-
}, id: "my-canvas", class: sheet$
|
|
3673
|
+
}, id: "my-canvas", class: sheet$8.classes.Confetti }));
|
|
3583
3674
|
}
|
|
3584
3675
|
if (states.noExchangeOptions)
|
|
3585
3676
|
return states.content.text.empty;
|
|
3586
|
-
return (h("div", { class: sheet$
|
|
3587
|
-
h("style", { type: "text/css" }, styleString$
|
|
3677
|
+
return (h("div", { class: sheet$8.classes.Container, part: "sqm-base" },
|
|
3678
|
+
h("style", { type: "text/css" }, styleString$8),
|
|
3588
3679
|
h("div", null,
|
|
3589
3680
|
stageMap(),
|
|
3590
3681
|
states.exchangeError && errorMessage(),
|
|
@@ -3645,15 +3736,14 @@ const baseResponse = (data, stage = "chooseReward", selectedItem = null, selecte
|
|
|
3645
3736
|
setStage: null,
|
|
3646
3737
|
setExchangeState: null,
|
|
3647
3738
|
copyFuelTankCode: null,
|
|
3648
|
-
refs: null,
|
|
3649
3739
|
},
|
|
3650
3740
|
refs: null,
|
|
3651
3741
|
});
|
|
3652
3742
|
const baseReward = {
|
|
3653
|
-
key: "",
|
|
3654
|
-
name: "",
|
|
3743
|
+
key: "reward",
|
|
3744
|
+
name: "Demo Reward",
|
|
3655
3745
|
description: "Description of reward. Lorem ipsum dolor sit amet, consectetur adipiscing. Id nec semper sapien dignissim rhoncus nunc.",
|
|
3656
|
-
imageUrl: "",
|
|
3746
|
+
imageUrl: "https://res.cloudinary.com/saasquatch/image/upload/v1643653103/squatch-assets/default_rewards_1.png",
|
|
3657
3747
|
available: true,
|
|
3658
3748
|
unavailableReasonCode: null,
|
|
3659
3749
|
ruleType: "FIXED_GLOBAL_REWARD",
|
|
@@ -3670,7 +3760,34 @@ const baseReward = {
|
|
|
3670
3760
|
prettyDestinationMaxValue: null,
|
|
3671
3761
|
globalRewardKey: "",
|
|
3672
3762
|
destinationUnit: null,
|
|
3673
|
-
steps: [
|
|
3763
|
+
steps: [
|
|
3764
|
+
{
|
|
3765
|
+
prettyDestinationValue: "Reward Step 1",
|
|
3766
|
+
prettySourceValue: "50 Points",
|
|
3767
|
+
available: true,
|
|
3768
|
+
unavailableReasonCode: null,
|
|
3769
|
+
destinationValue: 10,
|
|
3770
|
+
sourceValue: 1,
|
|
3771
|
+
globalRewardKey: "reward1",
|
|
3772
|
+
rewardInput: {
|
|
3773
|
+
accountId: "zach",
|
|
3774
|
+
userId: "zach",
|
|
3775
|
+
},
|
|
3776
|
+
},
|
|
3777
|
+
{
|
|
3778
|
+
prettyDestinationValue: "Reward Step 2",
|
|
3779
|
+
prettySourceValue: "100 Points",
|
|
3780
|
+
available: false,
|
|
3781
|
+
unavailableReasonCode: "Not enough points",
|
|
3782
|
+
destinationValue: 10,
|
|
3783
|
+
sourceValue: 1,
|
|
3784
|
+
globalRewardKey: "reward1",
|
|
3785
|
+
rewardInput: {
|
|
3786
|
+
accountId: "zach",
|
|
3787
|
+
userId: "zach",
|
|
3788
|
+
},
|
|
3789
|
+
},
|
|
3790
|
+
],
|
|
3674
3791
|
};
|
|
3675
3792
|
const notEnoughPoints = {
|
|
3676
3793
|
available: false,
|
|
@@ -3974,108 +4091,164 @@ const empty = {
|
|
|
3974
4091
|
...baseResponse(null, "chooseReward", null, null, false, false, null, true),
|
|
3975
4092
|
};
|
|
3976
4093
|
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
display: block;
|
|
4094
|
+
const MessageLinkQuery = dist.gql `
|
|
4095
|
+
query (
|
|
4096
|
+
$programId: ID
|
|
4097
|
+
$engagementMedium: UserEngagementMedium!
|
|
4098
|
+
$shareMedium: ReferralShareMedium!
|
|
4099
|
+
) {
|
|
4100
|
+
viewer {
|
|
4101
|
+
... on User {
|
|
4102
|
+
messageLink(
|
|
4103
|
+
programId: $programId
|
|
4104
|
+
engagementMedium: $engagementMedium
|
|
4105
|
+
shareMedium: $shareMedium
|
|
4106
|
+
)
|
|
4107
|
+
shareLink(programId: $programId, engagementMedium: $engagementMedium)
|
|
4108
|
+
}
|
|
3993
4109
|
}
|
|
3994
|
-
|
|
3995
|
-
`;
|
|
3996
|
-
return (h("div", null,
|
|
3997
|
-
h("style", { type: "text/css" },
|
|
3998
|
-
styleString,
|
|
3999
|
-
vanillaStyle),
|
|
4000
|
-
h("div", { class: sheet.classes.Container, part: "sqm-base" }, children)));
|
|
4001
|
-
}
|
|
4002
|
-
|
|
4003
|
-
const style$a = {
|
|
4004
|
-
HostBlock: HostBlock,
|
|
4005
|
-
couponCodeLabel: {
|
|
4006
|
-
margin: "var(--sl-spacing-x-small) 0",
|
|
4007
|
-
color: "var(--sqm-text-subdued)",
|
|
4008
|
-
fontSize: "var(--sl-font-size-small)",
|
|
4009
|
-
},
|
|
4010
|
-
};
|
|
4011
|
-
const vanillaStyle$6 = `
|
|
4012
|
-
:host{
|
|
4013
|
-
display: block;
|
|
4014
|
-
width: 100%;
|
|
4015
4110
|
}
|
|
4016
4111
|
`;
|
|
4017
|
-
|
|
4018
|
-
const
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4112
|
+
function NativeShare(props, directLink, undefinedErrorText, unsupportedPlatformText) {
|
|
4113
|
+
const title = props.sharetitle || "Share title";
|
|
4114
|
+
const text = props.sharetext || "Share text";
|
|
4115
|
+
if (directLink === "undefined") {
|
|
4116
|
+
return alert(undefinedErrorText);
|
|
4117
|
+
}
|
|
4118
|
+
if (window.navigator.share) {
|
|
4119
|
+
window.navigator
|
|
4120
|
+
.share({
|
|
4121
|
+
title,
|
|
4122
|
+
text,
|
|
4123
|
+
url: directLink,
|
|
4124
|
+
})
|
|
4125
|
+
.catch((error) => console.error("Error on web share", error));
|
|
4126
|
+
}
|
|
4127
|
+
else {
|
|
4128
|
+
alert(unsupportedPlatformText);
|
|
4129
|
+
}
|
|
4028
4130
|
}
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
0.56,
|
|
4039
|
-
0.46,
|
|
4040
|
-
0.39,
|
|
4041
|
-
0.32,
|
|
4042
|
-
0.25,
|
|
4043
|
-
0.18,
|
|
4044
|
-
0.15,
|
|
4045
|
-
];
|
|
4046
|
-
// https://github.com/ricokahler/color2k/blob/main/src/parseToRgba.ts
|
|
4047
|
-
const hslaRegex = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i;
|
|
4048
|
-
function niceParseToHsla(color) {
|
|
4049
|
-
const normalizedColor = color.trim();
|
|
4050
|
-
const hslaMatch = hslaRegex.exec(normalizedColor);
|
|
4051
|
-
if (hslaMatch) {
|
|
4052
|
-
const [h, s, l, a] = Array.from(hslaMatch).slice(1).map(parseFloat);
|
|
4053
|
-
if (t(0, 100, s) !== s)
|
|
4054
|
-
throw new n(color);
|
|
4055
|
-
if (t(0, 100, l) !== l)
|
|
4056
|
-
throw new n(color);
|
|
4057
|
-
return [h, s / 100, l, a || 1];
|
|
4131
|
+
function FacebookShare(directLink, messageLink, errorText) {
|
|
4132
|
+
if (messageLink === "undefined" || directLink === "undefined") {
|
|
4133
|
+
return alert(errorText);
|
|
4134
|
+
}
|
|
4135
|
+
if (typeof SquatchAndroid.shareOnFacebook !== "undefined") {
|
|
4136
|
+
return SquatchAndroid.shareOnFacebook(directLink, messageLink);
|
|
4137
|
+
}
|
|
4138
|
+
else {
|
|
4139
|
+
return GenericShare(messageLink, errorText);
|
|
4058
4140
|
}
|
|
4059
|
-
// Warning -- converts to RGB first, so is lossy
|
|
4060
|
-
return p(color);
|
|
4061
4141
|
}
|
|
4062
|
-
function
|
|
4063
|
-
|
|
4064
|
-
return lScale
|
|
4065
|
-
.map((l) => z(h, s, l, a))
|
|
4066
|
-
.map((color, index) => {
|
|
4067
|
-
return `--sl-color-${name}-${colorScale[index]}: ${color};\n`;
|
|
4068
|
-
});
|
|
4142
|
+
function GenericShare(messageLink, errorText) {
|
|
4143
|
+
return messageLink ? (window.location.href = messageLink) : alert(errorText);
|
|
4069
4144
|
}
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4145
|
+
function useShareButton(props) {
|
|
4146
|
+
var _a, _b, _c, _d;
|
|
4147
|
+
const { sharetitle, sharetext, medium } = props;
|
|
4148
|
+
const programId = props.programId ? props.programId : H();
|
|
4149
|
+
const user = J();
|
|
4150
|
+
const engagementMedium = B();
|
|
4151
|
+
const variables = {
|
|
4152
|
+
engagementMedium,
|
|
4153
|
+
programId: programId,
|
|
4154
|
+
shareMedium: medium.toUpperCase(),
|
|
4155
|
+
};
|
|
4156
|
+
const contextData = Fn(REFERRAL_CODES_NAMESPACE);
|
|
4157
|
+
const overrideData = contextData === null || contextData === void 0 ? void 0 : contextData[medium];
|
|
4158
|
+
// only queries if a programId is available
|
|
4159
|
+
const res = wn(MessageLinkQuery, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId || overrideData !== undefined);
|
|
4160
|
+
const [setCopied, copiedRes] = $e(SET_CODE_COPIED);
|
|
4161
|
+
const directLink = (overrideData === null || overrideData === void 0 ? void 0 : overrideData.shareLink) || ((_b = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.shareLink);
|
|
4162
|
+
const environment = getEnvironmentSDK();
|
|
4163
|
+
const hide = (medium.toLocaleUpperCase() === "SMS" &&
|
|
4164
|
+
window.orientation === undefined) ||
|
|
4165
|
+
(medium.toLocaleUpperCase() === "DIRECT" && !window.navigator.share);
|
|
4166
|
+
const messageLink = (overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.messageLink);
|
|
4167
|
+
async function onClick() {
|
|
4168
|
+
if (overrideData) {
|
|
4169
|
+
await setCopied({ referralCode: contextData.referralCode });
|
|
4170
|
+
contextData.refresh();
|
|
4171
|
+
}
|
|
4172
|
+
if (medium.toLocaleUpperCase() === "FACEBOOK" &&
|
|
4173
|
+
environment.type === "SquatchAndroid") {
|
|
4174
|
+
FacebookShare(directLink, messageLink, props.errorText);
|
|
4175
|
+
}
|
|
4176
|
+
else if (medium.toLocaleUpperCase() === "DIRECT") {
|
|
4177
|
+
NativeShare({ sharetitle, sharetext }, directLink, props.errorText, props.unsupportedPlatformText);
|
|
4178
|
+
}
|
|
4179
|
+
}
|
|
4180
|
+
const isPlainLink = !(medium.toLocaleUpperCase() === "FACEBOOK" &&
|
|
4181
|
+
environment.type === "SquatchAndroid") &&
|
|
4182
|
+
medium.toLocaleUpperCase() !== "DIRECT" &&
|
|
4183
|
+
messageLink;
|
|
4184
|
+
const userAgent = window.navigator.userAgent.toLowerCase(), safari = /safari/.test(userAgent), ios = /iphone|ipod|ipad/.test(userAgent);
|
|
4185
|
+
const openInSameTab = ios && !safari;
|
|
4186
|
+
return {
|
|
4187
|
+
...props,
|
|
4188
|
+
loading: res.loading && !(overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink),
|
|
4189
|
+
messageLink,
|
|
4190
|
+
isPlainLink,
|
|
4191
|
+
onClick,
|
|
4192
|
+
openInSameTab,
|
|
4193
|
+
hide,
|
|
4194
|
+
};
|
|
4195
|
+
}
|
|
4196
|
+
|
|
4197
|
+
const MessageLinkQuery$1 = dist.gql `
|
|
4198
|
+
query ($programId: ID, $engagementMedium: UserEngagementMedium!) {
|
|
4199
|
+
user: viewer {
|
|
4200
|
+
... on User {
|
|
4201
|
+
shareLink(
|
|
4202
|
+
programId: $programId
|
|
4203
|
+
engagementMedium: $engagementMedium
|
|
4204
|
+
shareMedium: DIRECT
|
|
4205
|
+
)
|
|
4206
|
+
}
|
|
4207
|
+
}
|
|
4208
|
+
}
|
|
4209
|
+
`;
|
|
4210
|
+
const WIDGET_ENGAGEMENT_EVENT = dist.gql `
|
|
4211
|
+
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
4212
|
+
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
4213
|
+
}
|
|
4214
|
+
`;
|
|
4215
|
+
function useShareLink(props) {
|
|
4216
|
+
var _a, _b;
|
|
4217
|
+
const { programId = H() } = props;
|
|
4218
|
+
const user = J();
|
|
4219
|
+
const engagementMedium = B();
|
|
4220
|
+
const contextData = Fn(REFERRAL_CODES_NAMESPACE);
|
|
4221
|
+
const { data } = wn(MessageLinkQuery$1, { programId, engagementMedium }, !(user === null || user === void 0 ? void 0 : user.jwt) || !!props.linkOverride || (contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) !== undefined);
|
|
4222
|
+
const [sendLoadEvent] = $e(WIDGET_ENGAGEMENT_EVENT);
|
|
4223
|
+
const [setCopied, copiedRes] = $e(SET_CODE_COPIED);
|
|
4224
|
+
const copyString = (_b = ((contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) || ((_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink))) !== null && _b !== void 0 ? _b :
|
|
4225
|
+
// Shown during loading
|
|
4226
|
+
"...";
|
|
4227
|
+
const [open, setOpen] = useState(false);
|
|
4228
|
+
async function onClick() {
|
|
4229
|
+
if (contextData) {
|
|
4230
|
+
await setCopied({ referralCode: contextData.referralCode });
|
|
4231
|
+
contextData.refresh();
|
|
4232
|
+
}
|
|
4233
|
+
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
4234
|
+
// Only if called from a user-initiated event
|
|
4235
|
+
navigator.clipboard.writeText(copyString);
|
|
4236
|
+
setOpen(true);
|
|
4237
|
+
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
4238
|
+
sendLoadEvent({
|
|
4239
|
+
eventMeta: {
|
|
4240
|
+
programId,
|
|
4241
|
+
id: user === null || user === void 0 ? void 0 : user.id,
|
|
4242
|
+
accountId: user === null || user === void 0 ? void 0 : user.accountId,
|
|
4243
|
+
type: "USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",
|
|
4244
|
+
meta: {
|
|
4245
|
+
engagementMedium,
|
|
4246
|
+
shareMedium: "DIRECT",
|
|
4247
|
+
},
|
|
4248
|
+
},
|
|
4249
|
+
});
|
|
4250
|
+
}
|
|
4251
|
+
return { ...props, onClick, open, copyString: copyString };
|
|
4079
4252
|
}
|
|
4080
4253
|
|
|
4081
4254
|
const map = new Map();
|
|
@@ -4112,4 +4285,4 @@ const ShadowViewAddon = ({ story }, children) => {
|
|
|
4112
4285
|
h(TagName, { "stencilbook-shadow-view": randomInt })));
|
|
4113
4286
|
};
|
|
4114
4287
|
|
|
4115
|
-
export {
|
|
4288
|
+
export { empty as A, BigStatView as B, CardFeedView as C, DropdownFieldView as D, EditProfileView as E, rewardExchange as F, useShareButton as G, HeroView as H, InputFieldView as I, useShareLink as J, ProgressBarView as K, LeaderboardView as L, ProgressBar as M, NameFieldsView as N, ShadowViewAddon as O, PortalChangePasswordView as P, useBigStat as Q, ReferralIframeView as R, StatContainerView as S, TaskCardView as T, withShadowView as U, demoRewardExchange as V, ShareButtonView as a, PoweredByImg as b, CheckboxFieldView as c, PortalRegisterView as d, CouponCodeView as e, ChangeMarktingView as f, PortalFooterView as g, PortalFrameView as h, RewardExchangeView as i, rewardExchangeLongText as j, rewardExchangeSelected as k, chooseAmountFixed as l, chooseAmountFixedNoDescription as m, chooseAmountVariable as n, chooseAmountVariableNoDescription as o, chooseAmountVariableDisabled as p, chooseAmountVariableUnavailable as q, rewardExchangeCustomErrorMsg as r, confirmFixed as s, confirmVariable as t, useDemoBigStat as u, redemptionError as v, queryError as w, success as x, successVariable as y, loading as z };
|