@saasquatch/mint-components 1.5.0-0 → 1.5.0-101
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/CHANGELOG.md +156 -24
- package/dist/cjs/GenericTableView-28642daf.js +115 -0
- package/dist/cjs/{jss-preset-default.esm-6304d24f.js → JSS-c65a40f1.js} +5 -3
- package/dist/cjs/ShadowViewAddon-e23d7213.js +2630 -0
- package/dist/cjs/extends-08099afd.js +21 -0
- package/dist/cjs/{global-6223fe8f.js → global-4c495d76.js} +80 -140
- package/dist/cjs/{index.module-7dd4b981.js → index.module-54724339.js} +58 -57
- package/dist/cjs/loader.cjs.js +6 -5
- package/dist/cjs/luxon-59ca7d19.js +8348 -0
- package/dist/cjs/mint-components.cjs.js +6 -5
- package/dist/cjs/{re-render-6111d4bd.js → re-render-2f8d0f37.js} +5 -5
- package/dist/cjs/{sqm-asset-card-view-07f86880.js → sqm-asset-card-view-d9ac6a95.js} +2 -3
- package/dist/cjs/sqm-asset-card.cjs.entry.js +8 -7
- package/dist/cjs/sqm-big-stat-view-e5dc0877.js +40 -0
- package/dist/cjs/sqm-big-stat.cjs.entry.js +10 -8
- package/dist/cjs/sqm-brand_30.cjs.entry.js +7321 -0
- package/dist/cjs/sqm-form-message.cjs.entry.js +31 -0
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +10 -9
- package/dist/cjs/{sqm-hero-view-bb3d00a1.js → sqm-hero-view-a13795c0.js} +6 -7
- package/dist/cjs/sqm-hero.cjs.entry.js +7 -6
- package/dist/cjs/sqm-image_4.cjs.entry.js +196 -0
- package/dist/cjs/sqm-leaderboard-rank-view-35015d30.js +10 -0
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +12 -14
- package/dist/cjs/{sqm-name-fields-view-24614ac7.js → sqm-name-fields-view-c95e4768.js} +2 -3
- package/dist/cjs/sqm-name-fields.cjs.entry.js +9 -8
- package/dist/cjs/{sqm-navigation-sidebar-item-view-6c7f78e6.js → sqm-navigation-sidebar-item-view-da648fbc.js} +7 -6
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +10 -9
- package/dist/cjs/{sqm-navigation-sidebar-view-d06e1885.js → sqm-navigation-sidebar-view-36632c96.js} +2 -3
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +5 -4
- package/dist/cjs/sqm-password-field.cjs.entry.js +581 -0
- package/dist/cjs/sqm-popup-container.cjs.entry.js +6 -5
- package/dist/cjs/{sqm-portal-container-view-d144735a.js → sqm-portal-container-view-fdfb3656.js} +9 -5
- package/dist/cjs/{sqm-portal-email-verification-view-08d1848c.js → sqm-portal-email-verification-view-1552442a.js} +5 -6
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +24 -16
- package/dist/cjs/{sqm-portal-footer-view-69c73802.js → sqm-portal-footer-view-15ce261b.js} +3 -4
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +9 -8
- package/dist/cjs/{sqm-portal-forgot-password-view-1704d285.js → sqm-portal-forgot-password-view-10c0b54f.js} +3 -4
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +30 -17
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +8 -7
- package/dist/cjs/{sqm-portal-profile-view-14b41436.js → sqm-portal-profile-view-659635e9.js} +5 -6
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +21 -20
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +11 -10
- package/dist/cjs/{sqm-portal-reset-password-view-4d78fd6d.js → sqm-portal-reset-password-view-1fdc957e.js} +3 -4
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +27 -18
- package/dist/cjs/{sqm-portal-section-view-3b008930.js → sqm-portal-section-view-186a5f7e.js} +4 -6
- package/dist/cjs/{sqm-portal-verify-email-view-b595e302.js → sqm-portal-verify-email-view-4c78e231.js} +3 -4
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +30 -21
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1006 -0
- package/dist/cjs/sqm-refresh-button.cjs.entry.js +54 -0
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +26 -0
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +38 -0
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1147 -0
- package/dist/cjs/{sqm-stat-container-view-ee7b00ff.js → sqm-stat-container-view-5b2db929.js} +3 -4
- package/dist/cjs/sqm-stat-container.cjs.entry.js +6 -5
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +14590 -0
- package/dist/cjs/sqm-tab.cjs.entry.js +20 -0
- package/dist/cjs/sqm-tabs.cjs.entry.js +89 -0
- package/dist/cjs/{sqm-text-span-view-b5ae787b.js → sqm-text-span-view-f101dedf.js} +2 -3
- package/dist/cjs/sqm-text-span.cjs.entry.js +5 -4
- package/dist/cjs/{extends-0302d27d.js → stencil-hooks.module-87a1f4f7.js} +0 -19
- package/dist/cjs/use-callback-e754042f.js +7 -0
- package/dist/cjs/useChildElements-a68699b4.js +21 -0
- package/dist/cjs/{useDemoBigStat-2786227e.js → useDemoBigStat-426e3319.js} +23 -49
- package/dist/cjs/useReferralTable-273bb515.js +355 -0
- package/dist/cjs/{utils-95e5317c.js → utils-01dbfd4a.js} +9 -0
- package/dist/collection/collection-manifest.json +58 -6
- package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +2 -4
- package/dist/collection/components/sqm-big-stat/BigStat.stories.js +12 -1
- package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +2 -4
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +21 -1
- package/dist/collection/components/sqm-big-stat/useBigStat.js +14 -4
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +2 -0
- package/dist/collection/components/sqm-brand/SqmBrand.stories.js +112 -0
- package/dist/collection/components/sqm-brand/sqm-brand.js +127 -0
- package/dist/collection/components/sqm-card-feed/CardFeed.stories.js +232 -0
- package/dist/collection/components/sqm-card-feed/sqm-card-feed-view.js +27 -0
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +79 -0
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +2 -4
- package/dist/collection/components/sqm-empty/sqm-empty-view.js +10 -0
- package/dist/collection/components/sqm-empty/sqm-empty.js +78 -0
- package/dist/collection/components/sqm-hero/sqm-hero-view.js +2 -4
- package/dist/collection/components/sqm-hero-image/HeroImage.stories.js +56 -0
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +132 -0
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +453 -0
- package/dist/collection/components/sqm-image/Image.stories.js +26 -0
- package/dist/collection/components/sqm-image/sqm-image-view.js +32 -0
- package/dist/collection/components/sqm-image/sqm-image.js +116 -0
- package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +521 -9
- package/dist/collection/components/sqm-leaderboard/UseLeaderboard.stories.js +73 -11
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +96 -9
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +121 -23
- package/dist/collection/components/sqm-leaderboard/useLeaderboard.js +31 -3
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.js +1 -4
- package/dist/collection/components/sqm-leaderboard-rank/useLeaderboardRank.js +1 -1
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +2 -4
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +2 -4
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +5 -5
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +1 -1
- package/dist/collection/components/sqm-password-field/passwordValidation.js +2 -4
- package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +2 -4
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +2 -4
- package/dist/collection/components/sqm-portal-container/PortalContainer.stories.js +47 -0
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +9 -6
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +78 -0
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification-view.js +4 -6
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +27 -0
- package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +2 -1
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +2 -4
- package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +4 -0
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +2 -4
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +55 -3
- package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +4 -2
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +2 -4
- package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +6 -0
- package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +3 -5
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +59 -4
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +4 -2
- package/dist/collection/components/sqm-portal-profile/PortalProfile.stories.js +1 -7
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +2 -4
- package/dist/collection/components/sqm-portal-register/PortalRegister.stories.js +12 -0
- package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +3 -4
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +56 -2
- package/dist/collection/components/sqm-portal-register/usePortalRegister.js +3 -0
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password-view.js +3 -5
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +30 -1
- package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +1 -1
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email-view.js +2 -4
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +30 -1
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +2 -2
- package/dist/collection/components/sqm-program-explainer/ProgramExplainer.stories.js +41 -0
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +44 -0
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +91 -0
- package/dist/collection/components/sqm-program-explainer-step/ProgramExplainerStep.stories.js +14 -0
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +71 -0
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +146 -0
- package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +81 -0
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +54 -0
- package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +62 -0
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +2 -4
- package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +135 -70
- package/dist/collection/components/sqm-referral-table/ReferralTableCell.stories.js +11 -1
- package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +35 -25
- package/dist/collection/components/sqm-referral-table/UseReferralTable.stories.js +149 -0
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-date-cell.js +23 -5
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +197 -26
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +14 -1
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-user-cell.js +2 -3
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +35 -5
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +182 -3
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +29 -0
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +45 -4
- package/dist/collection/components/sqm-referral-table/mockReferralData.js +437 -0
- package/dist/collection/components/sqm-referral-table/sqm-referral-table-view.js +3 -7
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +148 -25
- package/dist/collection/components/sqm-referral-table/useReferralTable.js +50 -22
- package/dist/collection/components/sqm-refresh-button/RefreshButtonView.js +8 -0
- package/dist/collection/components/sqm-refresh-button/sqm-refresh-button.js +66 -0
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +16 -7
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +199 -43
- package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +3 -0
- package/dist/collection/components/sqm-reward-exchange-list/assets/Reward-image.png +0 -0
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +399 -241
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +595 -5
- package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +47 -16
- package/dist/collection/components/sqm-rewards-table/RewardsTable.stories.js +122 -0
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +249 -0
- package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +98 -2
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-customer-note-cell.js +58 -0
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-date-cell.js +62 -0
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +246 -0
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +193 -0
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +237 -0
- package/dist/collection/components/sqm-rewards-table/columns/RewardTableColumn.js +1 -0
- package/dist/collection/components/sqm-rewards-table/{sqm-rewards-table-column.js → columns/sqm-customer-note-column.js} +19 -41
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +134 -0
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +169 -0
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +225 -0
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +145 -0
- package/dist/collection/components/sqm-rewards-table/mockRewardData.js +326 -0
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +122 -24
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +59 -22
- package/dist/collection/components/sqm-scroll/Scroll.stories.js +50 -0
- package/dist/collection/components/sqm-scroll/sqm-scroll.js +111 -0
- package/dist/collection/components/sqm-scroll/useScroll.js +18 -0
- package/dist/collection/components/sqm-share-button/ShareButton.stories.js +63 -6
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +67 -11
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +71 -13
- package/dist/collection/components/sqm-share-button/useShareButton.js +1 -1
- package/dist/collection/components/sqm-share-code/ShareCode.stories.js +17 -0
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -1
- package/dist/collection/components/sqm-share-code/useShareCode.js +20 -1
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +4 -0
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +2 -4
- package/dist/collection/components/sqm-share-link/useShareLink.js +20 -1
- package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +3 -5
- package/dist/collection/components/sqm-stencilbook/AutoColor.js +47 -24
- package/dist/collection/components/sqm-stencilbook/Resizer.js +1 -0
- package/dist/collection/components/sqm-stencilbook/Themes.js +7 -1
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +32 -0
- package/dist/collection/components/sqm-tab/sqm-tab-view.js +4 -0
- package/dist/collection/components/sqm-tab/sqm-tab.js +28 -0
- package/dist/collection/{tables → components/sqm-table-cell}/sqm-table-cell.js +0 -0
- package/dist/collection/{tables → components/sqm-table-row}/sqm-table-row.js +0 -0
- package/dist/collection/components/sqm-tabs/Tabs.stories.js +150 -0
- package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +27 -0
- package/dist/collection/components/sqm-tabs/sqm-tabs.js +50 -0
- package/dist/collection/components/sqm-tabs/useTabs.js +39 -0
- package/dist/collection/components/sqm-task-card/DetailsView.js +53 -0
- package/dist/collection/components/sqm-task-card/TaskCard.stories.js +183 -170
- package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +28 -2
- package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +1 -1
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +350 -283
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +246 -202
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +232 -31
- package/dist/collection/components/sqm-task-card/useTaskCard.js +43 -0
- package/dist/collection/components/sqm-text/sqm-text.js +30 -29
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +2 -4
- package/dist/collection/components/sqm-timeline/SVGs.js +10 -0
- package/dist/collection/components/sqm-timeline/Timeline.stories.js +70 -0
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +203 -0
- package/dist/collection/components/sqm-timeline/sqm-timeline.js +118 -0
- package/dist/collection/components/sqm-titled-section/TitledSection.stories.js +237 -0
- package/dist/collection/components/sqm-titled-section/sqm-portal-section-view.js +4 -7
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +39 -3
- package/dist/collection/components/sqm-user-name/sqm-user-name.js +1 -1
- package/dist/collection/components/sqm-user-name/useUserName.js +1 -1
- package/dist/collection/fonts/GoogleFonts.js +12 -0
- package/dist/collection/global/global.js +1 -1
- package/dist/collection/global/styles.js +14 -72
- package/dist/collection/global/styles.ts +14 -72
- package/dist/collection/stories/NewPortal.stories.js +17 -19
- package/dist/collection/styling/JSS.js +9 -0
- package/dist/collection/tables/GenericTableView.js +96 -37
- package/dist/collection/tables/TableSlots.js +9 -1
- package/dist/collection/utils/RequiredPropsError.js +2 -4
- package/dist/collection/utils/utils.js +8 -0
- package/dist/esm/GenericTableView-6e103d56.js +113 -0
- package/dist/esm/{jss-preset-default.esm-71fae192.js → JSS-96eeab98.js} +5 -2
- package/dist/esm/ShadowViewAddon-72b97747.js +2594 -0
- package/dist/esm/extends-c31f1eff.js +19 -0
- package/dist/esm/{global-90da933f.js → global-a8e9f822.js} +18 -76
- package/dist/esm/{index.module-90d2c3ad.js → index.module-2821f17d.js} +11 -10
- package/dist/esm/loader.js +6 -5
- package/dist/esm/luxon-f44215d9.js +8346 -0
- package/dist/esm/mint-components.js +6 -5
- package/dist/esm/{re-render-e06f2f7f.js → re-render-07721d1b.js} +3 -3
- package/dist/esm/{sqm-asset-card-view-6f360937.js → sqm-asset-card-view-f9ca5345.js} +2 -3
- package/dist/esm/sqm-asset-card.entry.js +7 -6
- package/dist/esm/sqm-big-stat-view-309f7c1f.js +38 -0
- package/dist/esm/sqm-big-stat.entry.js +8 -6
- package/dist/esm/sqm-brand_30.entry.js +7288 -0
- package/dist/esm/sqm-form-message.entry.js +27 -0
- package/dist/esm/sqm-graphql-client-provider.entry.js +8 -7
- package/dist/esm/{sqm-hero-view-bfd8abd1.js → sqm-hero-view-5ea17052.js} +4 -5
- package/dist/esm/sqm-hero.entry.js +6 -5
- package/dist/esm/sqm-image_4.entry.js +189 -0
- package/dist/esm/sqm-leaderboard-rank-view-da91f5f3.js +8 -0
- package/dist/esm/sqm-leaderboard-rank.entry.js +10 -12
- package/dist/esm/{sqm-name-fields-view-4162fb7b.js → sqm-name-fields-view-69b1583f.js} +2 -3
- package/dist/esm/sqm-name-fields.entry.js +7 -6
- package/dist/esm/{sqm-navigation-sidebar-item-view-f2304ad9.js → sqm-navigation-sidebar-item-view-9380a346.js} +7 -6
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +9 -8
- package/dist/esm/{sqm-navigation-sidebar-view-2242502c.js → sqm-navigation-sidebar-view-816558e3.js} +2 -3
- package/dist/esm/sqm-navigation-sidebar.entry.js +4 -3
- package/dist/esm/sqm-password-field.entry.js +577 -0
- package/dist/esm/sqm-popup-container.entry.js +5 -4
- package/dist/esm/{sqm-portal-container-view-73757ca5.js → sqm-portal-container-view-f74db584.js} +9 -5
- package/dist/esm/{sqm-portal-email-verification-view-8cefe480.js → sqm-portal-email-verification-view-cf3a4840.js} +5 -6
- package/dist/esm/sqm-portal-email-verification.entry.js +19 -11
- package/dist/esm/{sqm-portal-footer-view-d9fe0bf8.js → sqm-portal-footer-view-ba9892f9.js} +4 -5
- package/dist/esm/sqm-portal-footer.entry.js +8 -7
- package/dist/esm/{sqm-portal-forgot-password-view-e3a6a716.js → sqm-portal-forgot-password-view-fa088f83.js} +3 -4
- package/dist/esm/sqm-portal-forgot-password.entry.js +25 -12
- package/dist/esm/sqm-portal-logout.entry.js +7 -6
- package/dist/esm/{sqm-portal-profile-view-b67467b4.js → sqm-portal-profile-view-f795d0cd.js} +5 -6
- package/dist/esm/sqm-portal-profile.entry.js +14 -13
- package/dist/esm/sqm-portal-protected-route.entry.js +9 -8
- package/dist/esm/{sqm-portal-reset-password-view-a4e50da2.js → sqm-portal-reset-password-view-73e14282.js} +3 -4
- package/dist/esm/sqm-portal-reset-password.entry.js +21 -12
- package/dist/esm/{sqm-portal-section-view-f0876545.js → sqm-portal-section-view-88a80af9.js} +4 -6
- package/dist/esm/{sqm-portal-verify-email-view-6f18bac2.js → sqm-portal-verify-email-view-cbf1cfdc.js} +3 -4
- package/dist/esm/sqm-portal-verify-email.entry.js +22 -13
- package/dist/esm/sqm-referral-table_11.entry.js +992 -0
- package/dist/esm/sqm-refresh-button.entry.js +50 -0
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +22 -0
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +34 -0
- package/dist/esm/sqm-rewards-table_9.entry.js +1135 -0
- package/dist/esm/{sqm-stat-container-view-4133feb6.js → sqm-stat-container-view-8a565c5a.js} +3 -4
- package/dist/esm/sqm-stat-container.entry.js +5 -4
- package/dist/esm/sqm-stencilbook.entry.js +14586 -0
- package/dist/esm/sqm-tab.entry.js +16 -0
- package/dist/esm/sqm-tabs.entry.js +85 -0
- package/dist/esm/{sqm-text-span-view-1781df94.js → sqm-text-span-view-7e61c95c.js} +2 -3
- package/dist/esm/sqm-text-span.entry.js +4 -3
- package/dist/esm/{extends-3a3f9fe2.js → stencil-hooks.module-acc8a613.js} +2 -20
- package/dist/esm/{use-callback-b38a1523.js → use-callback-7e0bfd3b.js} +1 -1
- package/dist/esm/useChildElements-62af7349.js +19 -0
- package/dist/esm/{useDemoBigStat-c3b955b7.js → useDemoBigStat-b5a22d26.js} +21 -46
- package/dist/esm/useReferralTable-43a3a215.js +351 -0
- package/dist/esm/{utils-454405f5.js → utils-1d345130.js} +9 -1
- package/dist/esm-es5/GenericTableView-6e103d56.js +1 -0
- package/dist/esm-es5/{jss-preset-default.esm-71fae192.js → JSS-96eeab98.js} +2 -2
- package/dist/esm-es5/ShadowViewAddon-72b97747.js +1 -0
- package/dist/esm-es5/extends-c31f1eff.js +1 -0
- package/dist/esm-es5/{global-90da933f.js → global-a8e9f822.js} +2 -2
- package/dist/esm-es5/index.module-2821f17d.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/luxon-f44215d9.js +1 -0
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/re-render-07721d1b.js +1 -0
- package/dist/esm-es5/sqm-asset-card-view-f9ca5345.js +1 -0
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat-view-309f7c1f.js +1 -0
- package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
- package/dist/esm-es5/sqm-brand_30.entry.js +1 -0
- package/dist/esm-es5/sqm-form-message.entry.js +1 -0
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-hero-view-5ea17052.js +1 -0
- package/dist/esm-es5/sqm-hero.entry.js +1 -1
- package/dist/esm-es5/sqm-image_4.entry.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank-view-da91f5f3.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-name-fields-view-69b1583f.js +1 -0
- package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-9380a346.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-816558e3.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -0
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-container-view-f74db584.js +1 -0
- package/dist/esm-es5/sqm-portal-email-verification-view-cf3a4840.js +1 -0
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-footer-view-ba9892f9.js +1 -0
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-fa088f83.js +1 -0
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-profile-view-f795d0cd.js +1 -0
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password-view-73e14282.js +1 -0
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-section-view-88a80af9.js +1 -0
- package/dist/esm-es5/sqm-portal-verify-email-view-cbf1cfdc.js +1 -0
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -0
- package/dist/esm-es5/sqm-refresh-button.entry.js +1 -0
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -0
- package/dist/esm-es5/{sqm-referral-table-column.entry.js → sqm-rewards-table-customer-note-column.entry.js} +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -0
- package/dist/esm-es5/sqm-stat-container-view-8a565c5a.js +1 -0
- package/dist/esm-es5/sqm-stat-container.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -0
- package/dist/esm-es5/sqm-tab.entry.js +1 -0
- package/dist/esm-es5/sqm-tabs.entry.js +1 -0
- package/dist/esm-es5/sqm-text-span-view-7e61c95c.js +1 -0
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{extends-3a3f9fe2.js → stencil-hooks.module-acc8a613.js} +2 -2
- package/dist/esm-es5/use-callback-7e0bfd3b.js +1 -0
- package/dist/esm-es5/useChildElements-62af7349.js +1 -0
- package/dist/esm-es5/useDemoBigStat-b5a22d26.js +1 -0
- package/dist/esm-es5/useReferralTable-43a3a215.js +1 -0
- package/dist/esm-es5/utils-1d345130.js +1 -0
- package/dist/mint-components/assets/Reward-image.png +0 -0
- package/dist/mint-components/global/styles.ts +14 -72
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-030f89b3.entry.js +1 -0
- package/dist/mint-components/p-09fbcba5.js +1 -0
- package/dist/mint-components/p-1122f7df.system.js +1 -0
- package/dist/mint-components/p-147440c3.js +1 -0
- package/dist/mint-components/p-1703d3c0.system.entry.js +1 -0
- package/dist/mint-components/p-179988b5.js +1 -0
- package/dist/mint-components/p-192f4931.system.entry.js +1 -0
- package/dist/mint-components/p-1959da16.system.js +1 -0
- package/dist/mint-components/p-19822c1b.entry.js +1 -0
- package/dist/mint-components/p-198409c1.entry.js +1 -0
- package/dist/mint-components/p-1af65647.js +239 -0
- package/dist/mint-components/p-1c17892a.system.js +1 -0
- package/dist/mint-components/p-1d1e9197.js +1 -0
- package/dist/mint-components/p-1ffa9d4b.js +1 -0
- package/dist/mint-components/p-204fd08c.js +1 -0
- package/dist/mint-components/p-21129bee.system.js +1 -0
- package/dist/mint-components/p-250d40f6.system.entry.js +1 -0
- package/dist/mint-components/p-266268d2.system.js +1 -0
- package/dist/mint-components/{p-44578b22.js → p-27455c4c.js} +2 -2
- package/dist/mint-components/p-2a42ac80.js +30 -0
- package/dist/mint-components/p-2af04f82.system.entry.js +1 -0
- package/dist/mint-components/p-373fa002.js +1 -0
- package/dist/mint-components/p-3a0e33b9.entry.js +13 -0
- package/dist/mint-components/p-3a5d7f3a.entry.js +150 -0
- package/dist/mint-components/{p-1b7d89a7.system.js → p-3bbb90a9.system.js} +2 -2
- package/dist/mint-components/p-3e556042.js +1 -0
- package/dist/mint-components/p-3e65453b.system.js +1 -0
- package/dist/mint-components/p-403e84cc.system.entry.js +1 -0
- package/dist/mint-components/p-4063dca2.js +1 -0
- package/dist/mint-components/p-40dd0af3.entry.js +1 -0
- package/dist/mint-components/p-41a87a92.entry.js +1 -0
- package/dist/mint-components/p-4279da4b.system.js +1 -0
- package/dist/mint-components/p-48b4104d.entry.js +1 -0
- package/dist/mint-components/{p-015b683f.system.js → p-48ec6605.system.js} +2 -2
- package/dist/mint-components/p-4a1b7d35.js +1 -0
- package/dist/mint-components/p-4b60eb5d.entry.js +1 -0
- package/dist/mint-components/{p-b608f7a4.system.js → p-4ceaa514.system.js} +11 -11
- package/dist/mint-components/p-4e05c65a.js +1 -0
- package/dist/mint-components/p-4e4b69c2.system.entry.js +1 -0
- package/dist/mint-components/p-4f4bdfad.system.entry.js +1 -0
- package/dist/mint-components/p-505d8965.system.entry.js +1 -0
- package/dist/mint-components/p-53af4433.system.js +1 -0
- package/dist/mint-components/p-59afa159.entry.js +1 -0
- package/dist/mint-components/p-59e4405d.system.js +1 -0
- package/dist/mint-components/p-5c75acad.js +1 -0
- package/dist/mint-components/p-5da31edf.system.entry.js +1 -0
- package/dist/mint-components/p-5ec4939c.system.entry.js +1 -0
- package/dist/mint-components/p-62dd50b3.js +167 -0
- package/dist/mint-components/p-66fc28d0.js +1 -0
- package/dist/mint-components/p-67749aab.system.entry.js +1 -0
- package/dist/mint-components/p-68bafbde.entry.js +1 -0
- package/dist/mint-components/p-6b43e4cc.system.js +1 -0
- package/dist/mint-components/p-6cb25b8b.entry.js +1 -0
- package/dist/mint-components/p-71ecbb3b.system.js +1 -0
- package/dist/mint-components/p-73d5306f.js +1 -0
- package/dist/mint-components/p-75a78c16.system.entry.js +1 -0
- package/dist/mint-components/p-7794c289.js +1 -0
- package/dist/mint-components/p-77c4071b.entry.js +1 -0
- package/dist/mint-components/p-7b854fc1.system.entry.js +1 -0
- package/dist/mint-components/p-81f34787.js +1 -0
- package/dist/mint-components/p-838242f3.system.js +1 -0
- package/dist/mint-components/p-8a8d0514.system.js +1 -0
- package/dist/mint-components/p-8bcaafaf.system.js +1 -0
- package/dist/mint-components/p-91d119ad.system.js +1 -0
- package/dist/mint-components/p-95a89867.js +1 -0
- package/dist/mint-components/p-975d4358.js +1 -0
- package/dist/mint-components/p-982ad256.js +1 -0
- package/dist/mint-components/p-996e20c4.entry.js +1 -0
- package/dist/mint-components/p-999a46af.entry.js +1 -0
- package/dist/mint-components/p-9a41655e.entry.js +1 -0
- package/dist/mint-components/p-9b48d01e.js +1 -0
- package/dist/mint-components/p-9d467470.system.js +1 -0
- package/dist/mint-components/p-9e2168f7.system.entry.js +1 -0
- package/dist/mint-components/p-a09e3176.system.js +1 -0
- package/dist/mint-components/p-a13b5757.system.js +1 -0
- package/dist/mint-components/p-a27f07cd.system.entry.js +1 -0
- package/dist/mint-components/p-a62a0cf6.system.entry.js +1 -0
- package/dist/mint-components/p-a6d4cffd.system.entry.js +1 -0
- package/dist/mint-components/p-aa09f12b.system.js +1 -0
- package/dist/mint-components/p-b0f4c0a7.entry.js +9 -0
- package/dist/mint-components/p-b3af1c6f.js +1 -0
- package/dist/mint-components/p-b5c6ff52.system.entry.js +1 -0
- package/dist/mint-components/p-b6fbd9cd.system.entry.js +1 -0
- package/dist/mint-components/p-b7e5ba0d.system.entry.js +1 -0
- package/dist/mint-components/p-b8434fc0.system.js +1 -0
- package/dist/mint-components/p-bbf96ff3.system.js +1 -0
- package/dist/mint-components/p-bc19e1c2.system.js +1 -0
- package/dist/mint-components/p-bc77fb14.system.js +1 -0
- package/dist/mint-components/p-bca007f0.entry.js +1 -0
- package/dist/mint-components/p-be02b2a2.system.entry.js +1 -0
- package/dist/mint-components/p-bf055b6c.system.js +1 -0
- package/dist/mint-components/p-c00fd233.system.entry.js +1 -0
- package/dist/mint-components/p-c0693ddc.entry.js +1 -0
- package/dist/mint-components/p-c29c5491.entry.js +93 -0
- package/dist/mint-components/p-c3f300e8.system.js +1 -0
- package/dist/mint-components/p-c5037c05.system.entry.js +1 -0
- package/dist/mint-components/p-c5a656af.system.entry.js +1 -0
- package/dist/mint-components/p-c7f81b0e.system.entry.js +1 -0
- package/dist/mint-components/{p-723ebe45.entry.js → p-cd69d4f6.entry.js} +2 -2
- package/dist/mint-components/p-cdebf9f7.system.entry.js +1 -0
- package/dist/mint-components/p-ce0ec1c4.system.js +1 -0
- package/dist/mint-components/{p-3ce2fb83.system.js → p-cf9c3022.system.js} +1 -1
- package/dist/mint-components/p-cf9cfac0.entry.js +1 -0
- package/dist/mint-components/p-d0c09868.js +1 -0
- package/dist/mint-components/p-d13b1d06.entry.js +1 -0
- package/dist/mint-components/p-d1ffec5b.entry.js +1 -0
- package/dist/mint-components/p-d33eb961.js +1 -0
- package/dist/mint-components/p-d6e7f685.system.entry.js +1 -0
- package/dist/mint-components/p-d98083fb.entry.js +1 -0
- package/dist/mint-components/p-da1eb628.system.entry.js +1 -0
- package/dist/mint-components/p-db9e20a0.entry.js +1 -0
- package/dist/mint-components/p-dd4f754e.system.entry.js +1 -0
- package/dist/mint-components/p-de2e871a.js +1 -0
- package/dist/mint-components/p-dec7a657.entry.js +1 -0
- package/dist/mint-components/p-e08f5f8e.js +1 -0
- package/dist/mint-components/{p-224504ad.js → p-e15e8e89.js} +1 -1
- package/dist/mint-components/p-e4320d52.entry.js +1 -0
- package/dist/mint-components/p-e6fac878.entry.js +1 -0
- package/dist/mint-components/p-e89b298a.system.entry.js +1 -0
- package/dist/mint-components/p-e9d8c4d3.system.entry.js +1 -0
- package/dist/mint-components/p-ea110693.system.js +1 -0
- package/dist/mint-components/{p-46a4269a.js → p-ef030fdf.js} +153 -153
- package/dist/mint-components/p-f94c4847.entry.js +1 -0
- package/dist/mint-components/p-f983083d.system.js +1 -0
- package/dist/mint-components/p-fe0d7472.entry.js +1 -0
- package/dist/mint-components/sqm-rewards-table-reward-column.entry.js +41 -0
- package/dist/types/components/sqm-big-stat/BigStat.stories.d.ts +3 -0
- package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +1 -0
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +6 -0
- package/dist/types/components/sqm-big-stat/useBigStat.d.ts +1 -0
- package/dist/types/components/sqm-brand/SqmBrand.stories.d.ts +11 -0
- package/dist/types/components/sqm-brand/sqm-brand.d.ts +31 -0
- package/dist/types/components/sqm-card-feed/CardFeed.stories.d.ts +13 -0
- package/dist/types/components/sqm-card-feed/sqm-card-feed-view.d.ts +6 -0
- package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +18 -0
- package/dist/types/components/sqm-empty/sqm-empty-view.d.ts +6 -0
- package/dist/types/components/sqm-empty/sqm-empty.d.ts +14 -0
- package/dist/types/components/sqm-hero-image/HeroImage.stories.d.ts +23 -0
- package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +21 -0
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +88 -0
- package/dist/types/components/sqm-image/Image.stories.d.ts +13 -0
- package/dist/types/components/sqm-image/sqm-image-view.d.ts +10 -0
- package/dist/types/components/sqm-image/sqm-image.d.ts +27 -0
- package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +7 -1
- package/dist/types/components/sqm-leaderboard/UseLeaderboard.stories.d.ts +18 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +10 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +12 -2
- package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +3 -0
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +2 -0
- package/dist/types/components/sqm-portal-container/PortalContainer.stories.d.ts +15 -0
- package/dist/types/components/sqm-portal-container/sqm-portal-container-view.d.ts +3 -0
- package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +14 -0
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +6 -0
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +10 -0
- package/dist/types/components/sqm-portal-forgot-password/usePortalForgotPassword.d.ts +3 -1
- package/dist/types/components/sqm-portal-login/sqm-portal-login-view.d.ts +2 -0
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +8 -0
- package/dist/types/components/sqm-portal-login/usePortalLogin.d.ts +3 -3
- package/dist/types/components/sqm-portal-register/PortalRegister.stories.d.ts +1 -0
- package/dist/types/components/sqm-portal-register/sqm-portal-register-view.d.ts +6 -3
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +10 -0
- package/dist/types/components/sqm-portal-register/usePortalRegister.d.ts +1 -0
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +8 -0
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +8 -0
- package/dist/types/components/sqm-portal-verify-email/usePortalVerifyEmail.d.ts +2 -1
- package/dist/types/components/sqm-program-explainer/ProgramExplainer.stories.d.ts +10 -0
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer-view.d.ts +7 -0
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +23 -0
- package/dist/types/components/sqm-program-explainer-step/ProgramExplainerStep.stories.d.ts +9 -0
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +9 -0
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +38 -0
- package/dist/types/components/sqm-referral-card/ReferralCard.stories.d.ts +16 -0
- package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +9 -0
- package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +15 -0
- package/dist/types/components/sqm-referral-table/ReferralTable.stories.d.ts +5 -0
- package/dist/types/components/sqm-referral-table/ReferralTableCell.stories.d.ts +3 -0
- package/dist/types/components/sqm-referral-table/ReferralTableRewardsCell.stories.d.ts +3 -0
- package/dist/types/components/sqm-referral-table/UseReferralTable.stories.d.ts +40 -0
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-date-cell.d.ts +2 -1
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +7 -0
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-user-cell.d.ts +1 -1
- package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +1 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +2 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +26 -1
- 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/mockReferralData.d.ts +83 -0
- package/dist/types/components/sqm-referral-table/sqm-referral-table-view.d.ts +1 -1
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +8 -2
- package/dist/types/components/sqm-referral-table/useReferralTable.d.ts +5 -2
- package/dist/types/components/sqm-refresh-button/RefreshButtonView.d.ts +15 -0
- package/dist/types/components/sqm-refresh-button/sqm-refresh-button.d.ts +12 -0
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +13 -3
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +650 -0
- package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +1 -0
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +6 -0
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +100 -0
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +17 -1
- package/dist/types/components/sqm-rewards-table/RewardsTable.stories.d.ts +14 -0
- package/dist/types/components/sqm-rewards-table/RewardsTableCell.stories.d.ts +36 -0
- package/dist/types/components/sqm-rewards-table/UseRewardsTable.stories.d.ts +24 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-customer-note-cell.d.ts +8 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-date-cell.d.ts +8 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +8 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +10 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +11 -0
- package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +5 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-customer-note-column.d.ts +15 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +25 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +27 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +37 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +23 -0
- package/dist/types/components/sqm-rewards-table/mockRewardData.d.ts +45 -0
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +6 -2
- package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +1 -33
- package/dist/types/components/sqm-scroll/Scroll.stories.d.ts +7 -0
- package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +11 -0
- package/dist/types/components/sqm-scroll/useScroll.d.ts +6 -0
- package/dist/types/components/sqm-share-button/ShareButton.stories.d.ts +8 -1
- package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +3 -0
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +18 -2
- package/dist/types/components/sqm-share-code/ShareCode.stories.d.ts +10 -0
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +3 -0
- package/dist/types/components/sqm-stencilbook/AutoColor.d.ts +7 -0
- package/dist/types/components/sqm-stencilbook/Resizer.d.ts +1 -1
- package/dist/types/components/sqm-stencilbook/Themes.d.ts +1 -0
- package/dist/types/components/sqm-tab/sqm-tab-view.d.ts +4 -0
- package/dist/types/components/sqm-tab/sqm-tab.d.ts +4 -0
- package/dist/types/{tables → components/sqm-table-cell}/sqm-table-cell.d.ts +0 -0
- package/dist/types/{tables → components/sqm-table-row}/sqm-table-row.d.ts +0 -0
- package/dist/types/components/sqm-tabs/Tabs.stories.d.ts +15 -0
- package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +9 -0
- package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +16 -0
- package/dist/types/components/sqm-tabs/useTabs.d.ts +9 -0
- package/dist/types/components/sqm-task-card/DetailsView.d.ts +41 -0
- package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +1 -0
- package/dist/types/components/sqm-task-card/UseTaskCard.stories.d.ts +6 -0
- package/dist/types/components/sqm-task-card/progress-bar/SVGs.d.ts +1 -1
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +32 -15
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +50 -6
- package/dist/types/components/sqm-task-card/useTaskCard.d.ts +11 -0
- package/dist/types/components/sqm-timeline/SVGs.d.ts +3 -0
- package/dist/types/components/sqm-timeline/Timeline.stories.d.ts +11 -0
- package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +31 -0
- package/dist/types/components/sqm-timeline/sqm-timeline.d.ts +15 -0
- package/dist/types/components/sqm-titled-section/TitledSection.stories.d.ts +12 -0
- package/dist/types/components/sqm-titled-section/sqm-portal-section-view.d.ts +1 -0
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +12 -1
- package/dist/types/components/sqm-user-name/sqm-user-name.d.ts +1 -1
- package/dist/types/components.d.ts +1546 -46
- package/dist/types/fonts/GoogleFonts.d.ts +9 -0
- package/dist/types/global/styles.d.ts +1 -1
- package/dist/types/saasquatch.d.ts +40 -0
- package/dist/types/styling/JSS.d.ts +7 -0
- package/dist/types/tables/GenericTableView.d.ts +4 -1
- package/dist/types/tables/TableSlots.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +11 -13
- package/dist/cjs/ShadowViewAddon-a85b8c8d.js +0 -127
- package/dist/cjs/sqm-divided-layout_30.cjs.entry.js +0 -32306
- package/dist/cjs/sqm-leaderboard-rank-view-7dd44d62.js +0 -131
- package/dist/cjs/sqm-leaderboard.cjs.entry.js +0 -69
- package/dist/cjs/sqm-portal-container.cjs.entry.js +0 -35
- package/dist/cjs/sqm-referral-table-column.cjs.entry.js +0 -30
- package/dist/cjs/sqm-referral-table-date-column.cjs.entry.js +0 -47
- package/dist/cjs/sqm-referral-table-rewards-column.cjs.entry.js +0 -38
- package/dist/cjs/sqm-referral-table-status-column.cjs.entry.js +0 -45
- package/dist/cjs/sqm-referral-table-user-column.cjs.entry.js +0 -57
- package/dist/cjs/sqm-share-code.cjs.entry.js +0 -87
- package/dist/cjs/sqm-share-link-view-a935d07e.js +0 -24
- package/dist/cjs/sqm-titled-section.cjs.entry.js +0 -36
- package/dist/cjs/use-callback-fadb2643.js +0 -7
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.css +0 -37
- package/dist/collection/components/sqm-reward-exchange-list/assets/placeholder.png +0 -0
- package/dist/esm/ShadowViewAddon-a3f510db.js +0 -122
- package/dist/esm/sqm-divided-layout_30.entry.js +0 -32273
- package/dist/esm/sqm-leaderboard-rank-view-47844836.js +0 -128
- package/dist/esm/sqm-leaderboard.entry.js +0 -65
- package/dist/esm/sqm-portal-container.entry.js +0 -31
- package/dist/esm/sqm-referral-table-column.entry.js +0 -26
- package/dist/esm/sqm-referral-table-date-column.entry.js +0 -43
- package/dist/esm/sqm-referral-table-rewards-column.entry.js +0 -34
- package/dist/esm/sqm-referral-table-status-column.entry.js +0 -41
- package/dist/esm/sqm-referral-table-user-column.entry.js +0 -53
- package/dist/esm/sqm-share-code.entry.js +0 -83
- package/dist/esm/sqm-share-link-view-9282b8e8.js +0 -22
- package/dist/esm/sqm-titled-section.entry.js +0 -32
- package/dist/esm-es5/ShadowViewAddon-a3f510db.js +0 -1
- package/dist/esm-es5/index.module-90d2c3ad.js +0 -1
- package/dist/esm-es5/re-render-e06f2f7f.js +0 -1
- package/dist/esm-es5/sqm-asset-card-view-6f360937.js +0 -1
- package/dist/esm-es5/sqm-divided-layout_30.entry.js +0 -58
- package/dist/esm-es5/sqm-hero-view-bfd8abd1.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-47844836.js +0 -1
- package/dist/esm-es5/sqm-leaderboard.entry.js +0 -1
- package/dist/esm-es5/sqm-name-fields-view-4162fb7b.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-f2304ad9.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-2242502c.js +0 -1
- package/dist/esm-es5/sqm-portal-container-view-73757ca5.js +0 -1
- package/dist/esm-es5/sqm-portal-container.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-email-verification-view-8cefe480.js +0 -1
- package/dist/esm-es5/sqm-portal-footer-view-d9fe0bf8.js +0 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-e3a6a716.js +0 -1
- package/dist/esm-es5/sqm-portal-profile-view-b67467b4.js +0 -1
- package/dist/esm-es5/sqm-portal-reset-password-view-a4e50da2.js +0 -1
- package/dist/esm-es5/sqm-portal-section-view-f0876545.js +0 -1
- package/dist/esm-es5/sqm-portal-verify-email-view-6f18bac2.js +0 -1
- package/dist/esm-es5/sqm-referral-table-date-column.entry.js +0 -1
- package/dist/esm-es5/sqm-referral-table-rewards-column.entry.js +0 -1
- package/dist/esm-es5/sqm-referral-table-status-column.entry.js +0 -1
- package/dist/esm-es5/sqm-referral-table-user-column.entry.js +0 -1
- package/dist/esm-es5/sqm-share-code.entry.js +0 -1
- package/dist/esm-es5/sqm-share-link-view-9282b8e8.js +0 -1
- package/dist/esm-es5/sqm-stat-container-view-4133feb6.js +0 -1
- package/dist/esm-es5/sqm-text-span-view-1781df94.js +0 -1
- package/dist/esm-es5/sqm-titled-section.entry.js +0 -1
- package/dist/esm-es5/use-callback-b38a1523.js +0 -1
- package/dist/esm-es5/useDemoBigStat-c3b955b7.js +0 -1
- package/dist/esm-es5/utils-454405f5.js +0 -1
- package/dist/mint-components/assets/placeholder.png +0 -0
- package/dist/mint-components/p-07c924fa.system.js +0 -1
- package/dist/mint-components/p-0a39b23c.system.entry.js +0 -1
- package/dist/mint-components/p-0bcefa93.entry.js +0 -1
- package/dist/mint-components/p-0eb3e89c.js +0 -1
- package/dist/mint-components/p-1575e8a3.system.js +0 -1
- package/dist/mint-components/p-160bd62f.entry.js +0 -1
- package/dist/mint-components/p-16f5a7cb.system.js +0 -1
- package/dist/mint-components/p-1a09e4e1.system.entry.js +0 -1
- package/dist/mint-components/p-1c8b0290.entry.js +0 -1
- package/dist/mint-components/p-1dcdca58.system.entry.js +0 -1
- package/dist/mint-components/p-1e182e88.system.js +0 -1
- package/dist/mint-components/p-20d41ab1.entry.js +0 -1
- package/dist/mint-components/p-221a4097.entry.js +0 -1
- package/dist/mint-components/p-223b42bd.system.entry.js +0 -1
- package/dist/mint-components/p-24b3c6f0.system.entry.js +0 -1
- package/dist/mint-components/p-24c9a599.system.entry.js +0 -1
- package/dist/mint-components/p-282ed862.js +0 -1
- package/dist/mint-components/p-29fab29b.entry.js +0 -1
- package/dist/mint-components/p-304e6c82.system.entry.js +0 -1
- package/dist/mint-components/p-3397167c.entry.js +0 -1
- package/dist/mint-components/p-33c5ffb7.entry.js +0 -1
- package/dist/mint-components/p-34696973.system.js +0 -1
- package/dist/mint-components/p-35476f7e.system.js +0 -1
- package/dist/mint-components/p-396bf448.system.entry.js +0 -1
- package/dist/mint-components/p-3b97aed8.system.js +0 -1
- package/dist/mint-components/p-3d856985.entry.js +0 -1
- package/dist/mint-components/p-4052b948.system.entry.js +0 -1
- package/dist/mint-components/p-412a9226.system.entry.js +0 -1
- package/dist/mint-components/p-412d31b1.js +0 -1
- package/dist/mint-components/p-44d0fc80.system.entry.js +0 -1
- package/dist/mint-components/p-45c752a0.entry.js +0 -1
- package/dist/mint-components/p-509dda90.js +0 -1
- package/dist/mint-components/p-52802c88.entry.js +0 -13
- package/dist/mint-components/p-53b0c355.system.js +0 -1
- package/dist/mint-components/p-53ec4863.entry.js +0 -1
- package/dist/mint-components/p-547a0354.system.js +0 -1
- package/dist/mint-components/p-5480e4ee.entry.js +0 -1
- package/dist/mint-components/p-55508395.system.entry.js +0 -1
- package/dist/mint-components/p-55f8387d.system.js +0 -1
- package/dist/mint-components/p-562199e3.system.js +0 -1
- package/dist/mint-components/p-563253e8.js +0 -17
- package/dist/mint-components/p-60855d33.system.js +0 -1
- package/dist/mint-components/p-60ae1ec5.system.js +0 -1
- package/dist/mint-components/p-67ae18d1.system.entry.js +0 -1
- package/dist/mint-components/p-6882070c.js +0 -1
- package/dist/mint-components/p-69bcf4fa.system.entry.js +0 -1
- package/dist/mint-components/p-69f28472.system.js +0 -1
- package/dist/mint-components/p-6bf0a4d9.system.entry.js +0 -1
- package/dist/mint-components/p-6d27cd05.system.entry.js +0 -1
- package/dist/mint-components/p-6e245fa3.system.entry.js +0 -1
- package/dist/mint-components/p-73148868.system.entry.js +0 -1
- package/dist/mint-components/p-739b3032.js +0 -1
- package/dist/mint-components/p-8435a22d.entry.js +0 -1
- package/dist/mint-components/p-883a32e7.entry.js +0 -1
- package/dist/mint-components/p-925ccb31.system.entry.js +0 -58
- package/dist/mint-components/p-952ed169.js +0 -1
- package/dist/mint-components/p-99f1208f.js +0 -1
- package/dist/mint-components/p-9b4f2af6.js +0 -1
- package/dist/mint-components/p-9c554ca0.system.js +0 -1
- package/dist/mint-components/p-9c79643f.system.js +0 -1
- package/dist/mint-components/p-9d6dbb2d.entry.js +0 -1
- package/dist/mint-components/p-9e4fee30.system.entry.js +0 -1
- package/dist/mint-components/p-a2c3cff3.js +0 -1
- package/dist/mint-components/p-a4c2c7ed.entry.js +0 -1
- package/dist/mint-components/p-a565e753.entry.js +0 -1
- package/dist/mint-components/p-a6094ff9.system.js +0 -1
- package/dist/mint-components/p-a8b913a8.js +0 -1
- package/dist/mint-components/p-aaf68d9d.system.js +0 -1
- package/dist/mint-components/p-ade44a4e.entry.js +0 -1
- package/dist/mint-components/p-b1bb07db.entry.js +0 -1
- package/dist/mint-components/p-b8bd2607.entry.js +0 -1
- package/dist/mint-components/p-ba505a8c.js +0 -1
- package/dist/mint-components/p-bb76c6f3.system.js +0 -1
- package/dist/mint-components/p-bd903567.js +0 -1
- package/dist/mint-components/p-be2738b0.system.entry.js +0 -1
- package/dist/mint-components/p-c3bf9440.entry.js +0 -1
- package/dist/mint-components/p-c6114bfe.system.js +0 -1
- package/dist/mint-components/p-c79c608d.system.entry.js +0 -1
- package/dist/mint-components/p-cca9026f.system.entry.js +0 -1
- package/dist/mint-components/p-cd410a05.entry.js +0 -9
- package/dist/mint-components/p-cdeae699.system.js +0 -1
- package/dist/mint-components/p-d174d0bc.system.entry.js +0 -1
- package/dist/mint-components/p-d21e0dbd.js +0 -1
- package/dist/mint-components/p-d35b0366.js +0 -1
- package/dist/mint-components/p-d7d6bf44.system.js +0 -1
- package/dist/mint-components/p-db2e4c42.js +0 -1
- package/dist/mint-components/p-db5a1e78.js +0 -1
- package/dist/mint-components/p-dc603d08.system.entry.js +0 -1
- package/dist/mint-components/p-e069bc2d.entry.js +0 -1
- package/dist/mint-components/p-e14c15ca.system.entry.js +0 -1
- package/dist/mint-components/p-e426715b.js +0 -1
- package/dist/mint-components/p-e43cc1f8.system.entry.js +0 -1
- package/dist/mint-components/p-e7f633b9.system.js +0 -1
- package/dist/mint-components/p-ebcd8a59.js +0 -1
- package/dist/mint-components/p-f17050de.entry.js +0 -1
- package/dist/mint-components/p-f85f36c6.system.entry.js +0 -1
- package/dist/mint-components/p-f90486ca.js +0 -235
- package/dist/mint-components/p-f9cb55dc.entry.js +0 -1
- package/dist/mint-components/p-fb1b6fdf.js +0 -1
- package/dist/mint-components/p-fce1dbf6.entry.js +0 -1
- package/dist/mint-components/p-fdb484a0.entry.js +0 -392
- package/dist/mint-components/p-fee468b7.system.entry.js +0 -1
- package/dist/mint-components/p-fee6801c.js +0 -1
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table-column.d.ts +0 -20
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as t,
|
|
1
|
+
import{g as t,a as e,f as n}from"./p-64c3217a.js";var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function s(t,e,n){return t(n={path:e,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -39,4 +39,4 @@ import{g as t,f as e,a as n}from"./p-64c3217a.js";var r="undefined"!=typeof glob
|
|
|
39
39
|
* subject to an additional IP rights grant found at
|
|
40
40
|
* http://polymer.github.io/PATENTS.txt
|
|
41
41
|
*/
|
|
42
|
-
"undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1");let u=0;function a(t){c=t}function f(){c=null,u=0}const h=Symbol("haunted.hook"),C=Symbol("haunted.effects"),d=Symbol("haunted.layoutEffects");class l{update;host;virtual;[h];[C];[d];constructor(t,e){this.update=t,this.host=e,this[h]=new Map,this[C]=[],this[d]=[]}run(t){a(this);let e=t();return f(),e}_runEffects(t){let e=this[t];a(this);for(let t of e)t.call(this);f()}runEffects(){this._runEffects(C)}runLayoutEffects(){this._runEffects(d)}teardown(){this[h].forEach((t=>{"function"==typeof t.teardown&&t.teardown()}))}}Promise.resolve().then.bind(Promise.resolve());class F{id;state;constructor(t,e){this.id=t,this.state=e}}function v(t,...e){let n=u++,r=c[h],i=r.get(n);return i||(i=new t(n,c,...e),r.set(n,i)),i.update(...e)}function m(t){return v.bind(null,t)}function p(t){return m(class extends F{callback;lastValues;values;_teardown;constructor(e,n,r,i){super(e,n),t(n,this)}update(t,e){this.callback=t,this.values=e}call(){this.values&&!this.hasChanged()||this.run(),this.lastValues=this.values}run(){this.teardown(),this._teardown=this.callback.call(this.state)}teardown(){"function"==typeof this._teardown&&this._teardown()}hasChanged(){return!this.lastValues||this.values.some(((t,e)=>this.lastValues[e]!==t))}})}function w(t,e){t[C].push(e)}const g=p(w),y=(m(class extends F{Context;value;_ranEffect;_unsubscribe;constructor(t,e,n){super(t,e),this._updater=this._updater.bind(this),this._ranEffect=!1,this._unsubscribe=null,w(e,this)}update(t){if(this.state.virtual)throw new Error("can't be used with virtual components");return this.Context!==t&&(this._subscribe(t),this.Context=t),this.value}call(){this._ranEffect||(this._ranEffect=!0,this._unsubscribe&&this._unsubscribe(),this._subscribe(this.Context),this.state.update())}_updater(t){this.value=t,this.state.update()}_subscribe(t){const e={Context:t,callback:this._updater};this.state.host.dispatchEvent(new CustomEvent("haunted.context",{detail:e,bubbles:!0,cancelable:!0,composed:!0}));const{unsubscribe:n=null,value:r}=e;this.value=n?r:t.defaultValue,this._unsubscribe=n}teardown(){this._unsubscribe&&this._unsubscribe()}}),m(class extends F{value;values;constructor(t,e,n,r){super(t,e),this.value=n(),this.values=r}update(t,e){return this.hasChanged(e)&&(this.values=e,this.value=t()),this.value}hasChanged(t=[]){return t.some(((t,e)=>this.values[e]!==t))}}));p((function(t,e){t[d].push(e)}));const b=m(class extends F{args;constructor(t,e,n){super(t,e),this.updater=this.updater.bind(this),"function"==typeof n&&(n=n()),this.makeArgs(n)}update(){return this.args}updater(t){if("function"==typeof t){const e=t,[n]=this.args;t=e(n)}this.makeArgs(t),this.state.update()}makeArgs(t){this.args=Object.freeze([t,this.updater])}}),x=m(class extends F{reducer;currentState;constructor(t,e,n,r,i){super(t,e),this.dispatch=this.dispatch.bind(this),this.currentState=void 0!==i?i(r):r}update(t){return this.reducer=t,[this.currentState,this.dispatch]}dispatch(t){this.currentState=this.reducer(this.currentState,t),this.state.update()}}),O=t=>y((()=>({current:t})),[]);var j=1e3,E=60*j,k=60*E,M=24*k,S=function(t,e){e=e||{};var n=typeof t;if("string"===n&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"weeks":case"week":case"w":return 6048e5*n;case"days":case"day":case"d":return n*M;case"hours":case"hour":case"hrs":case"hr":case"h":return n*k;case"minutes":case"minute":case"mins":case"min":case"m":return n*E;case"seconds":case"second":case"secs":case"sec":case"s":return n*j;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(t);if("number"===n&&isFinite(t))return e.long?function(t){var e=Math.abs(t);return e>=M?I(t,e,M,"day"):e>=k?I(t,e,k,"hour"):e>=E?I(t,e,E,"minute"):e>=j?I(t,e,j,"second"):t+" ms"}(t):function(t){var e=Math.abs(t);return e>=M?Math.round(t/M)+"d":e>=k?Math.round(t/k)+"h":e>=E?Math.round(t/E)+"m":e>=j?Math.round(t/j)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function I(t,e,n,r){var i=e>=1.5*n;return Math.round(t/n)+" "+r+(i?"s":"")}var P=s((function(t,e){e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(r++,"%c"===t&&(i=r))})),e.splice(i,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(t){}return!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG),t},e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=function(t){function e(t){let r,i,s,o=null;function c(...t){if(!c.enabled)return;const n=c,i=Number(new Date);n.diff=i-(r||i),n.prev=r,n.curr=i,r=i,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let s=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";s++;const o=e.formatters[i];return"function"==typeof o&&(r=o.call(n,t[s]),t.splice(s,1),s--),r})),e.formatArgs.call(n,t),(n.log||e.log).apply(n,t)}return c.namespace=t,c.useColors=e.useColors(),c.color=e.selectColor(t),c.extend=n,c.destroy=e.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(i!==e.namespaces&&(i=e.namespaces,s=e.enabled(t)),s),set:t=>{o=t}}),"function"==typeof e.init&&e.init(c),c}function n(t,n){const r=e(this.namespace+(void 0===n?":":n)+t);return r.log=this.log,r}function r(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){const t=[...e.names.map(r),...e.skips.map(r).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let n;e.save(t),e.namespaces=t,e.names=[],e.skips=[];const r=("string"==typeof t?t:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(t=r[n].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;let n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=S,e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((n=>{e[n]=t[n]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return e.colors[Math.abs(n)%e.colors.length]},e.enable(e.load()),e}(e);const{formatters:n}=t.exports;n.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}));function N(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _(t,e,n){return e&&N(t.prototype,e),n&&N(t,n),t}var $=function(){function t(t){var e=this,n=this;this._status="Initial",this.onChange=function(t){n.options.onChange&&n.options.onChange(t)},this.onConnect=function(t){try{return e.status="Connected",e.options.onChange&&e.options.onChange(t),Promise.resolve(new Promise((function(t){e.resolvePromise=t})))}catch(t){return Promise.reject(t)}},this.onDisconnect=function(){n.status="Connecting",n.start()},this.options=t}var e=t.prototype;return e.start=function(){var t=this,e=0;this.status="Connecting";var n=function(){return t.status},r=J(this.options.attempts)||10,i=function(){if("Connected"!==n()){var i=new CustomEvent(t.options.contextName,{bubbles:!0,cancelable:!0,composed:!0,detail:{onConnect:t.onConnect,onChange:t.onChange,onDisconnect:t.onDisconnect}});J(t.options.element).dispatchEvent(i),"Connected"!==n()?++e>=r&&(t._interval&&clearInterval(t._interval),t.status="Timeout"):"Connected"===n()&&t._interval&&clearInterval(t._interval)}};return(J(this.options.pollingMs)||100)>0&&r>1&&(this._interval=setInterval(i,J(this.options.pollingMs)||100)),i(),this},e.stop=function(){return this._interval&&clearInterval(this._interval),this.resolvePromise&&this.resolvePromise(),this.status="Initial",this},_(t,[{key:"status",set:function(t){this._status=t,this.options.onStatus&&this.options.onStatus(t)},get:function(){return this._status}}]),t}(),z=function(){function t(t){var e=this;this.__listeners=[],this.connectListener=function(t){try{t.stopPropagation(),e.__listeners=[].concat(e.__listeners,[t.detail]);var n=function(n,r){try{var i=Promise.resolve(t.detail.onConnect(e.__current)).then((function(){}))}catch(t){return r(!0,t)}return i&&i.then?i.then(r.bind(null,!1),r.bind(null,!0)):r(!1,i)}(0,(function(n,r){var i,s;if(e.__listeners=(s=(i=e.__listeners).indexOf(t.detail),i.slice(0,s).concat(i.slice(s+1,i.length))),n)throw r;return r}));return Promise.resolve(n&&n.then?n.then((function(){})):void 0)}catch(t){return Promise.reject(t)}},this.options=t,this.__current=J(t.initialState)}var e=t.prototype;return e.start=function(){return J(this.options.element).addEventListener(this.options.contextName,this.connectListener),this},e.stop=function(){return J(this.options.element).removeEventListener(this.options.contextName,this.connectListener),this.__listeners.map((function(t){t.onDisconnect()})),this.__listeners=[],this},_(t,[{key:"context",set:function(t){this.__current=t,this.__listeners.forEach((function(e){return e.onChange(t)}))},get:function(){return J(this.__current)}},{key:"listeners",get:function(){return Object.freeze([].concat(this.__listeners))}}]),t}();function J(t){return"function"==typeof typeof t?t():t}function R(){return(R=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var T=1e3,A=60*T,D=60*A,L=24*D,Z=function(t,e){e=e||{};var n=typeof t;if("string"===n&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"weeks":case"week":case"w":return 6048e5*n;case"days":case"day":case"d":return n*L;case"hours":case"hour":case"hrs":case"hr":case"h":return n*D;case"minutes":case"minute":case"mins":case"min":case"m":return n*A;case"seconds":case"second":case"secs":case"sec":case"s":return n*T;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(t);if("number"===n&&isFinite(t))return e.long?function(t){var e=Math.abs(t);return e>=L?q(t,e,L,"day"):e>=D?q(t,e,D,"hour"):e>=A?q(t,e,A,"minute"):e>=T?q(t,e,T,"second"):t+" ms"}(t):function(t){var e=Math.abs(t);return e>=L?Math.round(t/L)+"d":e>=D?Math.round(t/D)+"h":e>=A?Math.round(t/A)+"m":e>=T?Math.round(t/T)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function q(t,e,n,r){var i=e>=1.5*n;return Math.round(t/n)+" "+r+(i?"s":"")}var U,H=(function(t,e){e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(r++,"%c"===t&&(i=r))})),e.splice(i,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(t){}return!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG),t},e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=function(t){function e(t){let r,i=null;function s(...t){if(!s.enabled)return;const n=s,i=Number(new Date);n.diff=i-(r||i),n.prev=r,n.curr=i,r=i,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let o=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";o++;const s=e.formatters[i];return"function"==typeof s&&(r=s.call(n,t[o]),t.splice(o,1),o--),r})),e.formatArgs.call(n,t),(n.log||e.log).apply(n,t)}return s.namespace=t,s.useColors=e.useColors(),s.color=e.selectColor(t),s.extend=n,s.destroy=e.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null===i?e.enabled(t):i,set:t=>{i=t}}),"function"==typeof e.init&&e.init(s),s}function n(t,n){const r=e(this.namespace+(void 0===n?":":n)+t);return r.log=this.log,r}function r(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){const t=[...e.names.map(r),...e.skips.map(r).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let n;e.save(t),e.names=[],e.skips=[];const r=("string"==typeof t?t:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(t=r[n].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;let n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=Z,e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((n=>{e[n]=t[n]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return e.colors[Math.abs(n)%e.colors.length]},e.enable(e.load()),e}(e);const{formatters:n}=t.exports;n.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}(U={exports:{}},U.exports),U.exports)("useDomContext");function Q(t,e,n){void 0===n&&(n={});var r=O(void 0),i=b(void 0),s=i[0],o=i[1],c=y((function(){var i=new $(R({contextName:e,element:t,onChange:function(t){r.current=t,o(t)}},n));return i.start(),H("Listener initialized",i),{listener:i}}),[e,r]).listener;return g((function(){return H("Listener starting (or restarting)",c),c.start(),function(){H("Listener stopping (or restopping)",c),c.stop()}}),[c,t.isConnected]),s||r.current}function V(t,e,n){var r=y((function(){var r=new z({contextName:e,element:t,initialState:n});return r.start(),H("Provider initialized",r),r}),[e,t]);g((function(){return H("Provider starting (or restarting)",r),r.start(),function(){H("Provider stopping (or re-stopping)",r),r.stop()}}),[r,t.isConnected]);var i=x((function(t,e){var n;return H("New context value",e),n="function"==typeof e?e(r.context):e,r.context=n,r.context}),r.context);return[i[0],i[1],r]}function B(){var e=n();return t(e)}function G(t,e){return void 0===e&&(e={}),Q(B(),t,e)}function K(t,e){return V(B(),t,e)}var W=P("stencil-hook");function X(n){var r,i=t(n),s=(r=!1,new l((function(){W("Queue update on element",i),r||(r=!0,Promise.resolve().then((function(){W("Forced update on element",i),r=!1,e(i)})))}),i)),o=n.disconnectedCallback;if(!o)throw new Error("Stencil hooks requires `disconnectedCallback` to be defined (even if it's empty). This is because of how the Stencil compiler works internally");n.disconnectedCallback=function(){s.teardown(),Y(o)};var c=n.connectedCallback;n.connectedCallback=function(){s.update(),Y(c)};var u=n.render.bind(n);n.render=function(){var t=s.run(u);return s.runEffects(),t}}function Y(t){"function"==typeof t&&t()}function tt(){return(tt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}export{tt as _,r as a,P as b,s as c,i as d,g as e,O as f,o as g,Q as h,z as i,b as j,y as k,B as l,X as m,G as n,K as o,x as u,V as y}
|
|
42
|
+
"undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1");let u=0;function a(t){c=t}function f(){c=null,u=0}const h=Symbol("haunted.hook"),C=Symbol("haunted.effects"),d=Symbol("haunted.layoutEffects");class l{update;host;virtual;[h];[C];[d];constructor(t,e){this.update=t,this.host=e,this[h]=new Map,this[C]=[],this[d]=[]}run(t){a(this);let e=t();return f(),e}_runEffects(t){let e=this[t];a(this);for(let t of e)t.call(this);f()}runEffects(){this._runEffects(C)}runLayoutEffects(){this._runEffects(d)}teardown(){this[h].forEach((t=>{"function"==typeof t.teardown&&t.teardown()}))}}Promise.resolve().then.bind(Promise.resolve());class F{id;state;constructor(t,e){this.id=t,this.state=e}}function m(t,...e){let n=u++,r=c[h],i=r.get(n);return i||(i=new t(n,c,...e),r.set(n,i)),i.update(...e)}function v(t){return m.bind(null,t)}function p(t){return v(class extends F{callback;lastValues;values;_teardown;constructor(e,n,r,i){super(e,n),t(n,this)}update(t,e){this.callback=t,this.values=e}call(){this.values&&!this.hasChanged()||this.run(),this.lastValues=this.values}run(){this.teardown(),this._teardown=this.callback.call(this.state)}teardown(){"function"==typeof this._teardown&&this._teardown()}hasChanged(){return!this.lastValues||this.values.some(((t,e)=>this.lastValues[e]!==t))}})}function w(t,e){t[C].push(e)}const g=p(w),y=(v(class extends F{Context;value;_ranEffect;_unsubscribe;constructor(t,e,n){super(t,e),this._updater=this._updater.bind(this),this._ranEffect=!1,this._unsubscribe=null,w(e,this)}update(t){if(this.state.virtual)throw new Error("can't be used with virtual components");return this.Context!==t&&(this._subscribe(t),this.Context=t),this.value}call(){this._ranEffect||(this._ranEffect=!0,this._unsubscribe&&this._unsubscribe(),this._subscribe(this.Context),this.state.update())}_updater(t){this.value=t,this.state.update()}_subscribe(t){const e={Context:t,callback:this._updater};this.state.host.dispatchEvent(new CustomEvent("haunted.context",{detail:e,bubbles:!0,cancelable:!0,composed:!0}));const{unsubscribe:n=null,value:r}=e;this.value=n?r:t.defaultValue,this._unsubscribe=n}teardown(){this._unsubscribe&&this._unsubscribe()}}),v(class extends F{value;values;constructor(t,e,n,r){super(t,e),this.value=n(),this.values=r}update(t,e){return this.hasChanged(e)&&(this.values=e,this.value=t()),this.value}hasChanged(t=[]){return t.some(((t,e)=>this.values[e]!==t))}}));p((function(t,e){t[d].push(e)}));const b=v(class extends F{args;constructor(t,e,n){super(t,e),this.updater=this.updater.bind(this),"function"==typeof n&&(n=n()),this.makeArgs(n)}update(){return this.args}updater(t){if("function"==typeof t){const e=t,[n]=this.args;t=e(n)}this.makeArgs(t),this.state.update()}makeArgs(t){this.args=Object.freeze([t,this.updater])}}),x=v(class extends F{reducer;currentState;constructor(t,e,n,r,i){super(t,e),this.dispatch=this.dispatch.bind(this),this.currentState=void 0!==i?i(r):r}update(t){return this.reducer=t,[this.currentState,this.dispatch]}dispatch(t){this.currentState=this.reducer(this.currentState,t),this.state.update()}}),E=t=>y((()=>({current:t})),[]);var O=1e3,j=60*O,k=60*j,M=24*k,S=function(t,e){e=e||{};var n=typeof t;if("string"===n&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"weeks":case"week":case"w":return 6048e5*n;case"days":case"day":case"d":return n*M;case"hours":case"hour":case"hrs":case"hr":case"h":return n*k;case"minutes":case"minute":case"mins":case"min":case"m":return n*j;case"seconds":case"second":case"secs":case"sec":case"s":return n*O;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(t);if("number"===n&&isFinite(t))return e.long?function(t){var e=Math.abs(t);return e>=M?I(t,e,M,"day"):e>=k?I(t,e,k,"hour"):e>=j?I(t,e,j,"minute"):e>=O?I(t,e,O,"second"):t+" ms"}(t):function(t){var e=Math.abs(t);return e>=M?Math.round(t/M)+"d":e>=k?Math.round(t/k)+"h":e>=j?Math.round(t/j)+"m":e>=O?Math.round(t/O)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function I(t,e,n,r){var i=e>=1.5*n;return Math.round(t/n)+" "+r+(i?"s":"")}var P=s((function(t,e){e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(r++,"%c"===t&&(i=r))})),e.splice(i,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(t){}return!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG),t},e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=function(t){function e(t){let r,i,s,o=null;function c(...t){if(!c.enabled)return;const n=c,i=Number(new Date);n.diff=i-(r||i),n.prev=r,n.curr=i,r=i,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let s=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";s++;const o=e.formatters[i];return"function"==typeof o&&(r=o.call(n,t[s]),t.splice(s,1),s--),r})),e.formatArgs.call(n,t),(n.log||e.log).apply(n,t)}return c.namespace=t,c.useColors=e.useColors(),c.color=e.selectColor(t),c.extend=n,c.destroy=e.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(i!==e.namespaces&&(i=e.namespaces,s=e.enabled(t)),s),set:t=>{o=t}}),"function"==typeof e.init&&e.init(c),c}function n(t,n){const r=e(this.namespace+(void 0===n?":":n)+t);return r.log=this.log,r}function r(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){const t=[...e.names.map(r),...e.skips.map(r).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let n;e.save(t),e.namespaces=t,e.names=[],e.skips=[];const r=("string"==typeof t?t:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(t=r[n].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;let n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=S,e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((n=>{e[n]=t[n]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return e.colors[Math.abs(n)%e.colors.length]},e.enable(e.load()),e}(e);const{formatters:n}=t.exports;n.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}));function N(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function $(t,e,n){return e&&N(t.prototype,e),n&&N(t,n),t}var _=function(){function t(t){var e=this,n=this;this._status="Initial",this.onChange=function(t){n.options.onChange&&n.options.onChange(t)},this.onConnect=function(t){try{return e.status="Connected",e.options.onChange&&e.options.onChange(t),Promise.resolve(new Promise((function(t){e.resolvePromise=t})))}catch(t){return Promise.reject(t)}},this.onDisconnect=function(){n.status="Connecting",n.start()},this.options=t}var e=t.prototype;return e.start=function(){var t=this,e=0;this.status="Connecting";var n=function(){return t.status},r=J(this.options.attempts)||10,i=function(){if("Connected"!==n()){var i=new CustomEvent(t.options.contextName,{bubbles:!0,cancelable:!0,composed:!0,detail:{onConnect:t.onConnect,onChange:t.onChange,onDisconnect:t.onDisconnect}});J(t.options.element).dispatchEvent(i),"Connected"!==n()?++e>=r&&(t._interval&&clearInterval(t._interval),t.status="Timeout"):"Connected"===n()&&t._interval&&clearInterval(t._interval)}};return(J(this.options.pollingMs)||100)>0&&r>1&&(this._interval=setInterval(i,J(this.options.pollingMs)||100)),i(),this},e.stop=function(){return this._interval&&clearInterval(this._interval),this.resolvePromise&&this.resolvePromise(),this.status="Initial",this},$(t,[{key:"status",set:function(t){this._status=t,this.options.onStatus&&this.options.onStatus(t)},get:function(){return this._status}}]),t}(),z=function(){function t(t){var e=this;this.__listeners=[],this.connectListener=function(t){try{t.stopPropagation(),e.__listeners=[].concat(e.__listeners,[t.detail]);var n=function(n,r){try{var i=Promise.resolve(t.detail.onConnect(e.__current)).then((function(){}))}catch(t){return r(!0,t)}return i&&i.then?i.then(r.bind(null,!1),r.bind(null,!0)):r(!1,i)}(0,(function(n,r){var i,s;if(e.__listeners=(s=(i=e.__listeners).indexOf(t.detail),i.slice(0,s).concat(i.slice(s+1,i.length))),n)throw r;return r}));return Promise.resolve(n&&n.then?n.then((function(){})):void 0)}catch(t){return Promise.reject(t)}},this.options=t,this.__current=J(t.initialState)}var e=t.prototype;return e.start=function(){return J(this.options.element).addEventListener(this.options.contextName,this.connectListener),this},e.stop=function(){return J(this.options.element).removeEventListener(this.options.contextName,this.connectListener),this.__listeners.map((function(t){t.onDisconnect()})),this.__listeners=[],this},$(t,[{key:"context",set:function(t){this.__current=t,this.__listeners.forEach((function(e){return e.onChange(t)}))},get:function(){return J(this.__current)}},{key:"listeners",get:function(){return Object.freeze([].concat(this.__listeners))}}]),t}();function J(t){return"function"==typeof typeof t?t():t}function R(){return(R=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var T=1e3,A=60*T,D=60*A,L=24*D,Z=function(t,e){e=e||{};var n=typeof t;if("string"===n&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"weeks":case"week":case"w":return 6048e5*n;case"days":case"day":case"d":return n*L;case"hours":case"hour":case"hrs":case"hr":case"h":return n*D;case"minutes":case"minute":case"mins":case"min":case"m":return n*A;case"seconds":case"second":case"secs":case"sec":case"s":return n*T;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(t);if("number"===n&&isFinite(t))return e.long?function(t){var e=Math.abs(t);return e>=L?q(t,e,L,"day"):e>=D?q(t,e,D,"hour"):e>=A?q(t,e,A,"minute"):e>=T?q(t,e,T,"second"):t+" ms"}(t):function(t){var e=Math.abs(t);return e>=L?Math.round(t/L)+"d":e>=D?Math.round(t/D)+"h":e>=A?Math.round(t/A)+"m":e>=T?Math.round(t/T)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function q(t,e,n,r){var i=e>=1.5*n;return Math.round(t/n)+" "+r+(i?"s":"")}var U,H=(function(t,e){e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(r++,"%c"===t&&(i=r))})),e.splice(i,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(t){}return!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG),t},e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=function(t){function e(t){let r,i=null;function s(...t){if(!s.enabled)return;const n=s,i=Number(new Date);n.diff=i-(r||i),n.prev=r,n.curr=i,r=i,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let o=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";o++;const s=e.formatters[i];return"function"==typeof s&&(r=s.call(n,t[o]),t.splice(o,1),o--),r})),e.formatArgs.call(n,t),(n.log||e.log).apply(n,t)}return s.namespace=t,s.useColors=e.useColors(),s.color=e.selectColor(t),s.extend=n,s.destroy=e.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null===i?e.enabled(t):i,set:t=>{i=t}}),"function"==typeof e.init&&e.init(s),s}function n(t,n){const r=e(this.namespace+(void 0===n?":":n)+t);return r.log=this.log,r}function r(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){const t=[...e.names.map(r),...e.skips.map(r).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let n;e.save(t),e.names=[],e.skips=[];const r=("string"==typeof t?t:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(t=r[n].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;let n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=Z,e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((n=>{e[n]=t[n]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return e.colors[Math.abs(n)%e.colors.length]},e.enable(e.load()),e}(e);const{formatters:n}=t.exports;n.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}(U={exports:{}},U.exports),U.exports)("useDomContext");function Q(t,e,n){void 0===n&&(n={});var r=E(void 0),i=b(void 0),s=i[0],o=i[1],c=y((function(){var i=new _(R({contextName:e,element:t,onChange:function(t){r.current=t,o(t)}},n));return i.start(),H("Listener initialized",i),{listener:i}}),[e,r]).listener;return g((function(){return H("Listener starting (or restarting)",c),c.start(),function(){H("Listener stopping (or restopping)",c),c.stop()}}),[c,t.isConnected]),s||r.current}function V(t,e,n){var r=y((function(){var r=new z({contextName:e,element:t,initialState:n});return r.start(),H("Provider initialized",r),r}),[e,t]);g((function(){return H("Provider starting (or restarting)",r),r.start(),function(){H("Provider stopping (or re-stopping)",r),r.stop()}}),[r,t.isConnected]);var i=x((function(t,e){var n;return H("New context value",e),n="function"==typeof e?e(r.context):e,r.context=n,r.context}),r.context);return[i[0],i[1],r]}function B(){var n=e();return t(n)}function G(t,e){return void 0===e&&(e={}),Q(B(),t,e)}function K(t,e){return V(B(),t,e)}var W=P("stencil-hook");function X(e){var r,i=t(e),s=(r=!1,new l((function(){W("Queue update on element",i),r||(r=!0,Promise.resolve().then((function(){W("Forced update on element",i),r=!1,n(i)})))}),i)),o=e.disconnectedCallback;if(!o)throw new Error("Stencil hooks requires `disconnectedCallback` to be defined (even if it's empty). This is because of how the Stencil compiler works internally");e.disconnectedCallback=function(){s.teardown(),Y(o)};var c=e.connectedCallback;e.connectedCallback=function(){s.update(),Y(c)};var u=e.render.bind(e);e.render=function(){var t=s.run(u);return s.runEffects(),t}}function Y(t){"function"==typeof t&&t()}export{r as a,P as b,s as c,i as d,g as e,E as f,o as g,Q as h,y as i,z as j,b as k,B as l,X as m,K as n,G as o,x as u,V as y}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import{h as e,c as a,d as t,g as s}from"./p-64c3217a.js";import{k as l}from"./p-27455c4c.js";import{i}from"./p-ef030fdf.js";import{d as r,M as o,n,x as d,b as c,D as p,f as u}from"./p-d0c09868.js";import{H as g,A as m,a as v,b as f,E as h}from"./p-26f627aa.js";import{c as x}from"./p-373fa002.js";import{l as b}from"./p-7794c289.js";import{l as y}from"./p-4e05c65a.js";import{T as w}from"./p-179988b5.js";import{P as C}from"./p-975d4358.js";import{P as S}from"./p-e08f5f8e.js";const _={facebook:{color:"#1877f2",text:"#fff",icon:"facebook"},twitter:{color:"#1da1f2",text:"#fff",icon:"twitter"},email:{color:"#666666",text:"#fff",icon:"envelope"},direct:{color:"var(--sl-color-primary-500)",text:"#fff",icon:"send"},linkedin:{color:"#0077b5",text:"#fff",icon:"linkedin"},sms:{color:"#34DA50",text:"#fff",icon:"chat"},fbmessenger:{color:"#0084ff",text:"#fff",icon:"messenger"},whatsapp:{color:"#25d366",text:"#fff",icon:"whatsapp"},linemessenger:{color:"#00B300",text:"#fff",icon:"line"},pinterest:{color:"#e60023",text:"#fff",icon:"pinterest"}};function k(t,s){const l=`\n *::part(base) {\n\t\t\t--sl-focus-ring-color-primary: ${t.backgroundcolor?t.backgroundcolor:t.medium?_[t.medium].color:""}80!important;\n\n background: ${t.backgroundcolor?t.backgroundcolor:t.medium?_[t.medium].color:""};\n color: ${t.textcolor?t.textcolor:t.medium?_[t.medium].text:""};\n border-radius: ${t.borderradius?t.borderradius+"px":""};\n }\n\n\t*::part(base):hover {\n\t\tborder-color: ${t.backgroundcolor?t.backgroundcolor:t.medium?_[t.medium].color:""}D1!important;\n\t}\n\t\n\t*::part(base):focus {\n\t\tborder-color: ${t.backgroundcolor?t.backgroundcolor:t.medium?_[t.medium].color:""}D1!important;\n\t}\n\n\t*::part(label) {\n\t\tposition: relative;\n\t\ttop: 2%;\n\t}\n `,i=x({HostBlock:g,buttonStyle:{display:"flex",alignItems:"center",justifyContent:"center",lineHeight:"0"}}),r=i.toString();return t.hide?e(a,{style:{display:"none"}}):e("div",null,e("style",{type:"text/css"},r),e("style",{type:"text/css"},l),e("sl-button",{class:i.classes.buttonStyle,loading:t.loading,disabled:t.disabled,pill:t.pill,size:t.size,type:t.type,onClick:t.onClick,exportparts:`base: ${t.type}sharebutton-base`},!t.hideicon&&e("sl-icon",{slot:t.iconslot||"prefix",name:t.icon?t.icon:_[t.medium].icon,exportparts:"icon"}),!t.hidetext&&s))}const E=x({HostBlock:g,inputStyle:{"&::part(base)":{background:"white",opacity:"1",cursor:"pointer"}}}),R=E.toString();function z(a){return e("div",null,e("style",{type:"text/css"},R),e("sl-tooltip",{trigger:"manual",content:a.tooltiptext,placement:"top-end",disabled:a.disabled,open:a.open},e("sl-input",{class:E.classes.inputStyle,exportparts:"label: input-label",value:a.shareString,readonly:!0},e("sl-icon-button",{onClick:()=>{var e;return null===(e=a.onClick)||void 0===e?void 0:e.call(a)},slot:"suffix",name:"files",disabled:a.disabled}))))}const q=x({Leaderboard:{"& table":{width:"100%",borderCollapse:"collapse"},"& th":{textAlign:"left",padding:"var(--sl-spacing-medium)",paddingTop:"0",fontSize:"var(--sl-font-size-medium)",fontWeight:"var(--sl-font-weight-semibold)"},"& tr:not(:first-child)":{borderTop:"1px solid var(--sl-color-neutral-200)"},"& td":{fontSize:"var(--sl-font-size-medium)",fontWeight:"var(--sl-font-weight-normal)"},"& .ellipses":{textAlign:"center",padding:"0",color:"var(--sl-color-neutral-500)"},"& .highlight":{background:"var(--sl-color-primary-50)"},"& td, th":{color:"var(--sl-color-gray-800)",padding:"var(--sl-spacing-medium)"},"& .User":{width:"100%"},"& .Score":{width:"auto",whiteSpace:"nowrap"}}}),A=q.toString(),M="\n\t:host{\n\t\tdisplay: block;\n\t}\n";function B(a){var t,s,l,i,r,o,n,d,c,p,u;const{states:g,data:m,elements:v}=a,{styles:f}=g;if(console.log("LEADERBOARD PROPS",a),g.loading)return e("div",{class:q.classes.Leaderboard},e("style",{type:"text/css"},A,M),v.loadingstate);let h=!1;return g.hasLeaders?e("div",{class:q.classes.Leaderboard},e("style",{type:"text/css"},A,M),e("table",null,e("tr",null,f.showRank&&e("th",{class:"Rank"},f.rankheading),e("th",{class:"User"},f.usersheading),e("th",{class:"Score"},f.statsheading)),null===(t=m.leaderboard)||void 0===t?void 0:t.map((a=>{var t,s;return a.rowNumber===(null===(t=m.userRank)||void 0===t?void 0:t.rowNumber)&&(h=!0),e("tr",{class:a.rowNumber===(null===(s=m.userRank)||void 0===s?void 0:s.rowNumber)?"highlight":""},f.showRank&&e("td",{class:"Rank"},a.rank),e("td",{class:"User"},a.firstName&&a.lastInitial?a.firstName+" "+a.lastInitial:a.firstName||a.lastInitial?a.firstName||a.lastInitial:f.anonymousUser||"Anonymous User"),e("td",{class:"Score"},a.value))})),g.hasLeaders&&!h&&m.showUser&&e("tr",null,e("td",{colSpan:100,class:"ellipses"},e("sl-icon",{name:"three-dots",style:{verticalAlign:"middle"}}))),g.hasLeaders&&!h&&m.showUser&&e("tr",{class:"highlight"},f.showRank&&e("td",{class:"Rank"},(null===(s=m.userRank)||void 0===s?void 0:s.rank)||"-"),e("td",{class:"User"},(null===(l=m.userRank)||void 0===l?void 0:l.firstName)&&(null===(i=m.userRank)||void 0===i?void 0:i.lastInitial)?(null===(r=m.userRank)||void 0===r?void 0:r.firstName)+" "+(null===(o=m.userRank)||void 0===o?void 0:o.lastInitial):(null===(n=m.userRank)||void 0===n?void 0:n.firstName)||(null===(d=m.userRank)||void 0===d?void 0:d.lastInitial)?(null===(c=m.userRank)||void 0===c?void 0:c.firstName)||(null===(p=m.userRank)||void 0===p?void 0:p.lastInitial):f.anonymousUser||"Anonymous User"),e("td",{class:"Score"},(null===(u=m.userRank)||void 0===u?void 0:u.value)||"0")),m.leaderboard.length?v.empty:"")):e("div",{class:q.classes.Leaderboard},e("style",{type:"text/css"},A,M),e("table",null,e("tr",null,f.showRank&&e("th",{class:"Rank"},f.rankheading),e("th",{class:"User"},f.usersheading),e("th",{class:"Score"},f.statsheading))),v.empty)}const P=x({HostBlock:g,":host":{"min-height":"100vh"},Frame:{"min-height":"100vh",display:"flex","flex-direction":"column","box-sizing":"border-box"},FooterWrapper:{width:"100%","max-width":"100%",padding:"var(--sl-spacing-medium) var(--sl-spacing-x-large)",background:"var(--sqm-footer-background)",display:"flex","justify-content":"flex-end","align-items":"center","box-sizing":"border-box","margin-top":"auto"},HeaderWrapper:{width:"100%","max-width":"100%","box-sizing":"border-box",display:"flex","justify-content":"space-between",padding:"var(--sl-spacing-small) var(--sl-spacing-large)","align-items":"center","background-color":"var(--sqm-header-background)","@media screen and (max-width: 499px)":{"flex-direction":"row-reverse","justify-content":"flex-end",padding:"0"}}}),T=P.toString();function I(a,t){const{data:s}=a;return e("div",{class:P.classes.Frame},e("style",{type:"text/css"},T),e("div",{class:P.classes.HeaderWrapper},s.header,e("slot",{name:"sqm-navigation-menu"})),t,e("div",{class:P.classes.FooterWrapper},s.footer))}const L=a=>{var t,s,l,i;const{states:r,callbacks:o}=a,{text:n}=r,{errors:d}=r.formState;return r.showEdit?e("div",{class:`CardWrapper ${!r.showEdit&&"ShowEdit"}`},e("h2",{style:{fontSize:"var(--sl-font-size-x-large)",margin:"0px",textAlign:"center"}},n.editprofileheader),e("form",{class:"FormWrapper",onSubmit:o.onSubmit},e("div",{class:"FormSection"},r.formState.error&&e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},r.formState.error)),e("sl-input",Object.assign({exportparts:"label: input-label",value:r.formState.firstName,onInput:o.onChange,label:n.firstnametext,disabled:r.loading},d.firstName&&"valid"!==d.firstName.status?{class:"ErrorStyles",helpText:"Cannot be empty"}:[],{id:"firstName",name:"firstName",error:d.firstName&&"valid"!==d.firstName.status?d.firstName.message:void 0})),e("sl-input",Object.assign({exportparts:"label: input-label",value:r.formState.lastName,onInput:o.onChange,label:n.lastnametext,disabled:r.loading,id:"lastName",name:"lastName"},d.lastName&&"valid"!==d.lastName.status?{class:"ErrorStyles",helpText:"Cannot be empty"}:[],{error:d.lastName&&"valid"!==d.lastName.status?d.lastName.message:void 0}))),n.showregion&&r.formState.currentRegion&&e("sl-input",{exportparts:"label: input-label",disabled:!0,value:r.formState.currentRegion,label:n.currentregiontext,id:"currentRegion",name:"currentRegion"}),e("div",{class:"ButtonWrapper"},e("sl-button",{onClick:()=>{o.setShowEdit(!1)},exportparts:"base: defaultbutton-base"},n.canceltext),e("sl-button",{type:"primary",loading:r.loading,disabled:r.submitDisabled,onClick:e=>{o.onSubmit(e)},submit:!0,exportparts:"base: primarybutton-base"},n.updatetext)))):e("div",{class:`CardWrapper FormWrapper ${!r.showEdit&&"ShowEdit"}`},e("div",{class:"FormSection"},e("h2",{style:{fontSize:"var(--sl-font-size-x-large",marginBottom:"0px",textAlign:"center"}},n.editprofileheader),e("div",null,e("p",{style:{fontSize:"var(--sl-font-size-medium)"}},null===(t=r.user)||void 0===t?void 0:t.firstName," ",null===(s=r.user)||void 0===s?void 0:s.lastName),e("p",{style:{fontSize:"var(--sl-font-size-medium)"},title:null===(l=r.user)||void 0===l?void 0:l.email},null===(i=r.user)||void 0===i?void 0:i.email))),e("sl-button",{type:"primary",loading:r.loading,onClick:()=>{o.resetForm(),o.setShowEdit(!0)},exportparts:"base: primarybutton-base"},n.editprofiletext))},D=r.gql`
|
|
2
|
+
query ($programId: ID) {
|
|
3
|
+
user: viewer {
|
|
4
|
+
... on User {
|
|
5
|
+
shareLink(programId: $programId)
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
`,$=r.gql`
|
|
10
|
+
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
11
|
+
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
12
|
+
}
|
|
13
|
+
`;function j(e){var a,t;const{programId:s=o()}=e,i=n(),r=d(),{data:u}=c(D,{programId:s},!(null==i?void 0:i.jwt)),[g]=p($),m=null!==(t=null===(a=null==u?void 0:u.user)||void 0===a?void 0:a.shareLink)&&void 0!==t?t:"...",[v,f]=l(!1);return{...e,onClick:function(){navigator.clipboard.writeText(m),f(!0),setTimeout((()=>f(!1)),e.tooltiplifespan),g({eventMeta:{programId:s,id:null==i?void 0:i.id,accountId:null==i?void 0:i.accountId,type:"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",meta:{engagementMedium:r,shareMedium:"DIRECT"}}})},open:v,shareString:m}}const V=r.gql`
|
|
14
|
+
query (
|
|
15
|
+
$programId: ID
|
|
16
|
+
$engagementMedium: UserEngagementMedium!
|
|
17
|
+
$shareMedium: ReferralShareMedium!
|
|
18
|
+
) {
|
|
19
|
+
viewer {
|
|
20
|
+
... on User {
|
|
21
|
+
messageLink(
|
|
22
|
+
programId: $programId
|
|
23
|
+
engagementMedium: $engagementMedium
|
|
24
|
+
shareMedium: $shareMedium
|
|
25
|
+
)
|
|
26
|
+
shareLink(programId: $programId, engagementMedium: $engagementMedium)
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
`;function H(e){var a,t;return(null===(t=null===(a=e.data)||void 0===a?void 0:a.viewer)||void 0===t?void 0:t.messageLink)?window.open(e.data.viewer.messageLink):alert("error: message link undefined!")}function F(e){var a,t;const{sharetitle:s,sharetext:l,medium:i}=e,r=e.programId?e.programId:o(),p=n(),g={engagementMedium:d(),programId:r,shareMedium:i.toUpperCase()},m=c(V,g,!(null==p?void 0:p.jwt)||!r),v=null===(t=null===(a=null==m?void 0:m.data)||void 0===a?void 0:a.viewer)||void 0===t?void 0:t.shareLink,f=u(),h="SMS"===i.toLocaleUpperCase()&&void 0===window.orientation||"DIRECT"===i.toLocaleUpperCase()&&!window.navigator.share;return{...e,loading:m.loading,onClick:function(){"FACEBOOK"===i.toLocaleUpperCase()&&"SquatchAndroid"===f.type?function(e,a){var t,s;"undefined"===(null===(s=null===(t=a.data)||void 0===t?void 0:t.viewer)||void 0===s?void 0:s.messageLink)||"undefined"===e?alert("error: message link undefined!"):void 0!==SquatchAndroid.shareOnFacebook?SquatchAndroid.shareOnFacebook(e,a.data.viewer.messageLink):H(a)}(v,m):"DIRECT"===i.toLocaleUpperCase()?function(e,a){const t=e.sharetitle||"Share title",s=e.sharetext||"Share text";if("undefined"===a)return alert("error: message link undefined!");window.navigator.share?window.navigator.share({title:t,text:s,url:a}).catch((e=>console.error("Error on web share",e))):alert("Not on a supported device")}({sharetitle:s,sharetext:l},v):H(m)},hide:h}}function W(a){const{states:t,callbacks:s}=a,l=x({Dialog:{padding:"0","&::part(close-button)":{"margin-top":"var(--sl-spacing-medium)"},"&::part(body)":{padding:"0 var(--sl-spacing-x-large) var(--sl-spacing-x-large) var(--sl-spacing-x-large)"}},Error:{"&::part(erroralert-base)":{"margin-bottom":"15px"}},Success:{"&::part(successalert-base)":{"margin-bottom":"15px"}},InputContainer:{"& > :not(:last-child)":{"margin-bottom":"var(--sl-spacing-x-large)"}},CancelButton:{width:"25%",margin:"var(--sl-spacing-large) auto"},PasswordField:{marginBottom:"var(--sl-spacing-large) !important",display:"block"},ChangePasswordButton:{paddingTop:"var(--sl-spacing-x-large)"}}),i=l.toString();return e("div",null,e("style",{type:"text/css"},i),e("sl-dialog",{class:l.classes.Dialog,open:t.open,"onSl-hide":()=>s.setOpen(!1)},e(S,Object.assign({},{labelMargin:"x-large",padding:"none",label:e(w,Object.assign({},{type:"h2"}),t.content.modalChangePasswordHeader),content:e(C,Object.assign({},{direction:"column",padding:"none",gap:"32px"}),t.error&&e("sqm-form-message",{class:l.classes.Error,type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},t.error)),t.success&&e("sqm-form-message",{class:l.classes.Success,type:"success",exportparts:"successalert-icon"},e("div",{part:"successalert-text"},t.content.successMessage)),e("sl-form",{"onSl-submit":s.submit},e("div",{class:l.classes.InputContainer},e("sqm-password-field",{exportparts:"input-label: input-label",class:l.classes.PasswordField,fieldLabel:t.content.passwordFieldLabel}),e("sl-input",{exportparts:"label: input-label",name:"/confirmPassword",label:t.content.confirmPasswordFieldLabel,required:!0,togglePassword:!0,disabled:t.loading,type:"password"})),e(C,Object.assign({},{direction:"row",padding:"none",gap:"20px"}),e("sl-button",{class:l.classes.ChangePasswordButton,type:"primary",submit:!0,loading:t.loading},t.content.changePasswordButtonText),e("sl-button",{class:l.classes.CancelButton,type:"text",onClick:()=>s.setOpen(!1)},t.content.cancelText))))}))),e(S,Object.assign({},{labelMargin:"x-large",padding:"xxx-large",label:e(w,Object.assign({},{type:"h2"}),t.content.portalChangePasswordHeader),content:e("sl-button",{onClick:()=>s.setOpen(!0)},t.content.portalChangePasswordButtonText)}),e("style",{type:"text/css"},i)))}const U=x({Wrapper:m,Column:v,ForgotButtonContainer:{display:"inline",cursor:"pointer","font-size":"13px","font-weight":"600",color:"#AAAAAA",margin:"0"},ButtonsContainer:f}),O=U.toString();function N(a){const{states:t,callbacks:s,content:l}=a;return e("div",{class:U.classes.Wrapper},e("style",{type:"text/css"},"\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n",O),e(w,{type:"h3"},l.pageLabel),e("sl-form",{class:U.classes.Column,"onSl-submit":s.submit},a.states.error&&e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},a.states.error)),e("sl-input",{exportparts:"label: input-label",type:"email",name:"/email",label:l.emailLabel||"Email",disabled:t.loading,required:!0}),e("div",null,e("sl-input",{exportparts:"label: input-label",type:"password",name:"/password",label:l.passwordLabel||"Password",disabled:t.loading,required:!0}),e("div",{class:U.classes.ForgotButtonContainer},l.forgotPasswordButton)),e("div",{class:U.classes.ButtonsContainer},e("sl-button",{submit:!0,loading:t.loading,exportparts:"base: primarybutton-base",type:"primary"},l.submitLabel||"Login"),l.secondaryButton)))}const Z={Wrapper:{...m,"max-width":"600px"},Column:v,HostBlock:g,":host":{margin:"0 auto",width:"100%"},ButtonsContainer:f,ErrorStyle:h},X=x(Z),G=X.toString();function Q(a){var t,s,l,i,r,o,n,d;const{states:c,refs:p,callbacks:u,content:g}=a;return c.error&&window.scrollTo({top:0,left:0,behavior:"smooth"}),e("div",{class:X.classes.Wrapper},e("style",{type:"text/css"},"\nsqm-portal-register {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n\n:host{\n display: block;\n}\n\n:host([hidden]) {\n display: none;\n}\n",G),e(w,{type:"h3"},g.pageLabel),e("sl-form",{class:X.classes.Column,"onSl-submit":u.submit,ref:e=>p.formRef.current=e,novalidate:!0},c.error&&e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},a.states.error)),g.formData,!c.hideInputs&&e("sl-input",Object.assign({exportparts:"label: input-label",type:"email",name:"/email",label:g.emailLabel||"Email",disabled:c.loading,required:!0,validationError:({value:e})=>e?e.includes("@")?void 0:"Must be a valid email address":"Cannot be empty"},(null===(s=null===(t=c.validationState)||void 0===t?void 0:t.validationErrors)||void 0===s?void 0:s.email)?{class:X.classes.ErrorStyle,helpText:(null===(i=null===(l=c.validationState)||void 0===l?void 0:l.validationErrors)||void 0===i?void 0:i.email)||"Cannot be empty"}:[])),!c.hideInputs&&e("sqm-password-field",{fieldLabel:g.passwordLabel,"enable-validation":c.enablePasswordValidation}),g.passwordField,!c.hideInputs&&c.confirmPassword&&e("sl-input",Object.assign({exportparts:"label: input-label",type:"password",name:"/confirmPassword",label:g.confirmPasswordLabel,disabled:c.loading,required:!0},(null===(o=null===(r=c.validationState)||void 0===r?void 0:r.validationErrors)||void 0===o?void 0:o.confirmPassword)?{class:X.classes.ErrorStyle,helpText:(null===(d=null===(n=c.validationState)||void 0===n?void 0:n.validationErrors)||void 0===d?void 0:d.confirmPassword)||"Cannot be empty"}:[])),g.terms,e("div",{class:X.classes.ButtonsContainer},e("sl-button",{submit:!0,loading:c.loading,exportparts:"base: primarybutton-base",type:"primary"},g.submitLabel||"Register"),g.secondaryButton)))}const K=x({Description:{"& input[type=checkbox]":{display:"none"},"& input:checked ~ .details":{transform:"rotate(-180deg)"},"& .details":{position:"absolute",top:"var(--sl-spacing-medium)",right:"var(--sl-spacing-medium)",color:"var(--sl-color-neutral-700)",fontSize:"var(--sl-font-size-large)","& :hover":{color:"var(--sl-color-primary-700)"},transformOrigin:"50% 37%",transition:"transform var(--sl-transition-medium) ease",cursor:"pointer"},"& input:checked ~ .summary":{transition:"all var(--sl-transition-medium) ease",maxHeight:"300px",marginBottom:"var(--sl-spacing-x-large)"},"& input:checked ~ .summary[progress-bar]":{marginBottom:"var(--sl-spacing-xx-large)"},"& .summary":{display:"block",overflow:"hidden",fontSize:"var(--sl-font-size-small)",maxHeight:"0px",transition:"all var(--sl-transition-fast) ease-out",marginBottom:"var(--sl-spacing-medium)"}}}),J=K.toString();function Y(a){const t=Math.random().toString(36).slice(2);return e("div",null,e("style",{type:"text/css"},J),e("span",{class:K.classes.Description},e("input",{type:"checkbox",id:"details-"+t}),e("label",{class:"details",htmlFor:"details-"+t},e("sl-icon",{name:"chevron-down"})),e("span",{class:"summary","progress-bar":a.progressBar},a.content.description)))}const ee=()=>e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M15 5H12.4508H9V16H13.5C14.0523 16 14.5 15.5523 14.5 15V9H15C15.5523 9 16 8.55228 16 8V6C16 5.44772 15.5523 5 15 5Z",fill:"#F2C94C"}),e("path",{d:"M1.5 9V15C1.5 15.5523 1.94772 16 2.5 16H7V5H4.64242H1C0.447715 5 0 5.44772 0 6V8C0 8.55228 0.447715 9 1 9H1.5Z",fill:"#F2C94C"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.5 9V10H14.5V9H1.5Z",fill:"#BE9720"}),e("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:"#EB5757"})),ae=x({ProgressBar:{"& .progress-bar":{height:"0",marginTop:"var(--sl-spacing-large)",marginBottom:"var(--sl-spacing-xxx-large)",marginRight:"var(--sl-spacing-x-small)",fontSize:"var(--sl-font-size-x-small)",display:"grid",lineHeight:"45px",userSelect:"none"},"&[data-steps]":{marginTop:"calc(-1*var(--sl-spacing-x-small))"},"&[data-steps] .progress-bar":{marginTop:"var(--sl-spacing-medium)"},"&[data-expired] .progress-bar":{filter:"grayscale(1)"},"& .progress-bar.repeatable-steps":{marginLeft:"var(--sl-spacing-x-small)"},"& .filled:after":{content:'""',display:"flex",width:"100%",height:"4px",borderRadius:"4px",backgroundColor:"var(--sl-color-primary-300)"},"& .progress":{display:"block",textAlign:"center",marginLeft:"-100px",marginRight:"-100px"},"& .progress::after":{content:'""',width:"12px",height:"12px",display:"flex",backgroundColor:"var(--sl-color-primary-300)",borderRadius:"50%",position:"relative",left:"47%",top:"-85%"},"& .progress.bg:after":{width:"0",height:"0",border:"none"},"& .progress.top":{position:"relative",top:"-40px"},"& .progress.top:after":{top:"-16%"},"& .empty":{display:"block",textAlign:"center",marginLeft:"-100px",marginRight:"-100px"},"& .empty::after":{content:'""',width:"12px",height:"12px",border:"2px solid #E0E0E0",margin:"-2px",display:"flex",backgroundColor:"white",borderRadius:"50%",position:"relative",left:"47%",top:"-85%"},"& .empty.bg:after":{width:"0",height:"0",border:"none"},"& .remain:after":{content:'""',display:"flex",width:"100%",height:"4px",borderRadius:"4px",backgroundColor:"#E0E0E0"},"& .gift.bw":{filter:"grayscale(100%)"},"& .gift.start":{transform:"scale(80%)",top:"-20px"},"& .gift":{textAlign:"center",marginLeft:"-100px",marginRight:"-100px",position:"relative",top:"-18px"}}},{classNamePrefix:"sqm-prog-bar"}),te=ae.toString();function se(a){var t;const{progress:s=0,goal:l=1,steps:i=!1,progressBarUnit:r="",repeatable:o=!1,expired:n=!1,finite:d=0}=a;let c=function(a,t,s){return a?t?function({progress:a,goal:t,finite:s}){const l=[],i=[];let r=Math.floor(a/t);if(r<2){let s=1/t;for(let r=1;r<2*t+1;r++)i.push(s+"fr"),i.push("0fr"),r>a?r==t?(i.push("0fr"),l.push(e("div",{class:"remain"})),l.push(e("div",{class:"empty bg"},t)),l.push(e("div",{class:"gift bw"},e(ee,null)))):r==2*t?(i.push("0fr"),i.push("0fr"),l.push(e("div",{class:"remain"})),l.push(e("div",{class:"empty bg"},2*t)),l.push(e("div",{class:"gift bw"},e(ee,null)))):(l.push(e("div",{class:"remain"})),l.push(e("div",{class:"empty"},r))):r==t?(i.push("0fr"),l.push(e("div",{class:"filled"})),l.push(e("div",{class:"progress bg"},r)),l.push(e("div",{class:"gift"},e(ee,null)))):(l.push(e("div",{class:"filled"})),l.push(e("div",{class:"progress"},r)))}else if(s&&r>=s){let o=1/t;r>2&&(i.push("0fr"),i.push("0fr"),l.push(e("div",{class:"progress bg"},t*(s-2))),l.push(e("div",{class:"gift start"},e(ee,null))));for(let r=1;r<2*t+1;r++)i.push(o+"fr"),i.push("0fr"),r>a?r==t&&(i.push("0fr"),l.push(e("div",{class:"remain"})),l.push(e("div",{class:"progress bg"},t*(s-1))),l.push(e("div",{class:"gift bw"},e(ee,null)))):r==t?(i.push("0fr"),l.push(e("div",{class:"filled"})),l.push(e("div",{class:"progress bg"},t*(s-1))),l.push(e("div",{class:"gift"},e(ee,null)))):r==2*t?(i.push("0fr"),i.push("0fr"),l.push(e("div",{class:"filled"})),l.push(e("div",{class:"progress bg"},t*s)),l.push(e("div",{class:"gift"},e(ee,null)))):(l.push(e("div",{class:"filled"})),l.push(e("div",{class:"progress"},r+t*(s-2))))}else{let s=a%t+t,o=1/t;i.push("0fr"),i.push("0fr"),l.push(e("div",{class:"progress bg"},t*(r-1))),l.push(e("div",{class:"gift start"},e(ee,null)));for(let a=1;a<2*t+1;a++)i.push(o+"fr"),i.push("0fr"),a<=t?a==t?(i.push("0fr"),l.push(e("div",{class:"filled"})),l.push(e("div",{class:"progress bg"},a+t*(r-1))),l.push(e("div",{class:"gift"},e(ee,null)))):(l.push(e("div",{class:"filled"})),l.push(e("div",{class:"progress"},a+t*(r-1)))):a>s?a==2*t?(i.push("0fr"),i.push("0fr"),l.push(e("div",{class:"remain"})),l.push(e("div",{class:"empty bg"},a+t*(r-1))),l.push(e("div",{class:"gift bw"},e(ee,null)))):(l.push(e("div",{class:"remain"})),l.push(e("div",{class:"empty"},a+t*(r-1)))):(l.push(e("div",{class:"filled"})),l.push(e("div",{class:"progress"},a+t*(r-1))))}return{items:l,columns:i.join(" ")}}(s):function({progress:a,goal:t,progressBarUnit:s,finite:l}){let i=Math.floor(a/t),r=a%t/t*.5;const o=[];let n="";return 0==i?(n=r+"fr 0fr "+(.5-r)+"fr 0fr 0fr 0.5fr 0fr 0fr",o.push(e("div",{class:"filled"})),o.push(e("div",{class:a==t?"progress top bg":"progress top"},s+a)),o.push(e("div",{class:"remain"})),o.push(e("div",{class:"progress bg"},s+t)),o.push(e("div",{class:a==t?"gift":"gift bw"},e(ee,null))),o.push(e("div",{class:"remain"})),o.push(e("div",{class:"progress bg"},s+2*t)),o.push(e("div",{class:"gift bw"},e(ee,null)))):1==i?(n="0.5fr 0fr 0fr "+r+"fr 0fr "+(.5-r)+"fr 0fr 0fr",o.push(e("div",{class:"filled"})),o.push(e("div",{class:"progress bg"},s+t)),o.push(e("div",{class:"gift"},e(ee,null))),o.push(e("div",{class:"filled"})),o.push(e("div",{class:a==t?"progress top bg":"progress top"},a==t?"":s+a)),o.push(e("div",{class:"remain"})),o.push(e("div",{class:"progress bg"},s+2*t)),o.push(e("div",{class:"gift bw"},e(ee,null)))):l&&i>=l?(i>2?(o.push(e("div",{class:"progress bg"},s+t*(l-2))),o.push(e("div",{class:"gift start"},e(ee,null))),n="0fr 0fr 0.5fr 0fr 0fr 0.5fr 0fr 0fr"):n="0.5fr 0fr 0fr 0.5fr 0fr 0fr",o.push(e("div",{class:"filled"})),o.push(e("div",{class:"progress bg"},s+t*(l-1))),o.push(e("div",{class:"gift"},e(ee,null))),o.push(e("div",{class:"filled"})),o.push(e("div",{class:"progress bg"},s+t*l)),o.push(e("div",{class:"gift"},e(ee,null)))):(n="0fr 0fr 0.5fr 0fr 0fr "+r+"fr 0fr "+(.5-r)+"fr 0fr 0fr",o.push(e("div",{class:"progress bg"},s+t*(i-1))),o.push(e("div",{class:"gift start"},e(ee,null))),o.push(e("div",{class:"filled"})),o.push(e("div",{class:"progress bg"},s+t*i)),o.push(e("div",{class:"gift"},e(ee,null))),o.push(e("div",{class:"filled"})),o.push(e("div",{class:a==t*i?"progress top bg":"progress top"},a==t*i?"":s+a)),o.push(e("div",{class:"remain"})),o.push(e("div",{class:"progress bg"},s+t*(i+1))),o.push(e("div",{class:"gift bw"},e(ee,null)))),{items:o,columns:n}}(s):t?function({progress:a,goal:t}){const s=[],l=[];let i=1/t;for(let r=1;r<t;r++)l.push(i+"fr"),l.push("0fr"),r>a?(s.push(e("div",{class:"remain"})),s.push(e("div",{class:"empty"},r))):(s.push(e("div",{class:"filled"})),s.push(e("div",{class:"progress"},r)));return l.push(i+"fr"),l.push("0fr"),t<=a?(l.push("0fr"),s.push(e("div",{class:"filled"})),s.push(e("div",{class:"progress bg"},t)),s.push(e("div",{class:"gift"},e(ee,null)))):(l.push("0fr"),s.push(e("div",{class:"remain"})),s.push(e("div",{class:"empty bg"},t)),s.push(e("div",{class:"gift bw"},e(ee,null)))),{items:s,columns:l.join(" ")}}(s):function({progress:a,goal:t,progressBarUnit:s}){const l=[];let i="";const r=a/t;return i=le(r,0,1)+"fr 0fr "+le(1-r,0,1)+"fr 0fr 0fr",l.push(e("div",{class:"filled"})),l.push(e("div",{class:le(a,0,t)==t?"progress top bg":"progress top"},le(a,0,t)==t?"":s+le(a,0,t))),l.push(e("div",{class:"remain"})),l.push(e("div",{class:"progress bg"},s+t)),l.push(e("div",{class:le(a,0,t)==t?"gift":"gift bw"},e(ee,null))),{items:l,columns:i}}(s)}(o,i,a);const{columns:p,items:u}=c;return console.log("PROGRESS BAR PROPS "+(null===(t=null==a?void 0:a.content)||void 0===t?void 0:t.cardTitle)),console.log({props:a}),e("div",{class:ae.classes.ProgressBar,"data-expired":n,"data-steps":i,"data-done":l<=s},e("style",{type:"text/css"},te),e("div",{class:!Boolean(d)&&s>=2*l||Boolean(d)&&s>2*l?"progress-bar repeatable-steps":"progress-bar",style:{gridTemplateColumns:p,marginLeft:0!==s||i?"":"var(--sl-spacing-x-small)"}},u))}function le(e,a,t){return Math.min(Math.max(e,a),t)}const ie=x({TaskCard:{display:"inline-block",width:"100%","& .main":{position:"relative",boxSizing:"border-box",background:"var(--sl-color-neutral-0)",border:"1px solid var(--sl-color-neutral-200)",borderRadius:"var(--sl-border-radius-medium)",boxShadow:"1px 2px 4px rgba(211, 211, 211, 0.2)",fontSize:"var(--sl-font-size-small)",lineHeight:"var(--sl-line-height-dense)",color:"var(--sl-color-neutral-600)"},"& .main.complete":{background:"var(--sl-color-primary-50)",borderColor:"var(--sl-color-primary-500)"},"& .main.expired":{color:"var(--sl-color-neutral-600)",background:"var(--sl-color-neutral-50)"},"& .title":{fontSize:"var(--sl-font-size-medium)",color:"var(--sl-color-neutral-950)"},"& .container":{margin:"var(--sl-spacing-medium)"},"& .container.subdued":{opacity:"0.45"},"& .container > div":{margin:"var(--sl-spacing-medium) 0"}},NotStarted:{fontSize:"var(--sl-font-size-small)",padding:"var(--sl-spacing-medium)",color:"var(--sl-color-primary-600)",border:"1px solid var(--sl-color-neutral-200)",borderRadius:"var(--sl-border-radius-medium) var(--sl-border-radius-medium) 0 0",borderBottom:"none",background:"var(--sl-color-primary-50)",fontWeight:"var(--sl-font-weight-semibold)",lineHeight:"var(--sl-line-height-dense)","& .icon":{position:"relative",top:"0.1em",marginRight:"var(--sl-spacing-small)",color:"var(--sl-color-primary-500)"}},Ended:{fontSize:"var(--sl-font-size-small)",padding:"var(--sl-spacing-medium)",color:"var(--sl-color-warning-600)",border:"1px solid var(--sl-color-neutral-200)",borderRadius:"var(--sl-border-radius-medium) var(--sl-border-radius-medium) 0 0",borderBottom:"none",background:"var(--sl-color-warning-50)",fontWeight:"var(--sl-font-weight-semibold)",lineHeight:"var(--sl-line-height-dense)","& .icon":{position:"relative",top:"0.1em",marginRight:"var(--sl-spacing-small)",color:"var(--sl-color-warning-500)"}},Header:{display:"flex","& .icon":{position:"relative",top:"5%",alignSelf:"center",lineHeight:"0",color:"var(--sl-color-primary-400)",fontSize:"var(--sl-font-size-large)",marginRight:"var(--sl-spacing-x-small)"},"& .value":{alignSelf:"center",fontSize:"var(--sl-font-size-x-large)",fontWeight:"var(--sl-font-weight-semibold)",color:"var(--sl-color-neutral-950)",lineHeight:"100%",marginRight:"var(--sl-spacing-xx-small)"},"& .text":{alignSelf:"end",textTransform:"uppercase",fontSize:"var(--sl-font-size-x-small)",color:"var(--sl-color-neutral-950)",lineHeight:"var(--sl-font-size-medium)",marginRight:"var(--sl-spacing-xx-small)"},"& .end":{color:"var(--sl-color-warning-500)",fontWeight:"var(--sl-font-weight-semibold)",marginBottom:"var(--sl-spacing-xx-small)"},"& .neutral":{color:"var(--sl-color-neutral-400)"}},Footer:{display:"flex","& .icon":{fontSize:"var(--sl-font-size-xx-small)",marginRight:"var(--sl-spacing-xx-small)",verticalAlign:"middle"},"& .text":{marginTop:"auto",verticalAlign:"text-bottom",fontSize:"var(--sl-font-size-x-small)",color:"var(--sl-color-neutral-400)"},"& .success":{color:"var(--sl-color-primary-500)",fontWeight:"var(--sl-font-weight-semibold)"},"& .action":{marginTop:"auto",marginLeft:"auto","&::part(base)":{color:"var(--sl-color-neutral-0)",borderRadius:"var(--sl-border-radius-medium)"},"&.disabled::part(base)":{border:"1px solid var(--sl-color-primary-400)",background:"var(--sl-color-primary-400)"},"&.neutral::part(base)":{border:"1px solid var(--sl-color-neutral-400)",background:"var(--sl-color-neutral-400)"}},"& .neutral":{color:"var(--sl-color-neutral-400)"},"& .datetime":{display:"block",marginTop:"var(--sl-spacing-xx-small)",color:"var(--sl-color-neutral-400)"}}}),re=ie.toString();function oe(a){var t,s,l;console.log("TASK CARD PROPS "+(null===(t=null==a?void 0:a.content)||void 0===t?void 0:t.cardTitle)),console.log({props:a});const{callbacks:r,states:o,content:n}=a,d=n.rewardDuration&&b.DateTime.fromISO(n.rewardDuration.split("/")[0]),c=n.rewardDuration&&b.DateTime.fromISO(n.rewardDuration.split("/")[1]),p=b.DateTime.now();if(n.displayDuration){const a=null===(s=n.displayDuration.split("/"))||void 0===s?void 0:s[0],t=null===(l=n.displayDuration.split("/"))||void 0===l?void 0:l[1],i=a?b.DateTime.fromISO(a):p,r=t?b.DateTime.fromISO(t):p;if(console.log({displayDateStart:i,dateToday:p,displayDateEnd:r}),p<i||p>r)return e("span",null)}const u=e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.81818 10C1.81818 5.48131 5.48131 1.81818 10 1.81818C14.5187 1.81818 18.1818 5.48131 18.1818 10C18.1818 14.5187 14.5187 18.1818 10 18.1818C5.48131 18.1818 1.81818 14.5187 1.81818 10ZM10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0ZM15.7692 6.96189C16.1398 6.48683 16.0551 5.80132 15.58 5.43077C15.1049 5.06022 14.4194 5.14495 14.0489 5.62001L8.72994 12.4391L5.86229 9.5715C5.43627 9.14548 4.74554 9.14548 4.31952 9.5715C3.89349 9.99752 3.89349 10.6882 4.31952 11.1143L8.05976 14.8545C8.28083 15.0756 8.58613 15.1912 8.89818 15.172C9.21023 15.1528 9.49905 15.0006 9.69133 14.7541L15.7692 6.96189Z",fill:"currentColor"})),g=e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("circle",{cx:"10",cy:"10",r:"10",fill:"currentColor"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.65 6.19231C15.0459 6.5011 15.1165 7.07236 14.8077 7.46825L9.74277 13.9617C9.58254 14.1672 9.34186 14.294 9.08182 14.31C8.82178 14.326 8.56736 14.2297 8.38314 14.0454L5.26627 10.9286C4.91124 10.5735 4.91124 9.99794 5.26627 9.64292C5.62129 9.2879 6.19689 9.2879 6.55191 9.64292L8.94162 12.0326L13.3741 6.35001C13.6828 5.95412 14.2541 5.88352 14.65 6.19231Z",fill:"white"})),m=e("svg",{width:11,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.265 2.789a.346.346 0 000-.489L8.066.101a.346.346 0 10-.489.489l1.61 1.609H2.073a.691.691 0 00-.69.691v1.728a.346.346 0 00.69 0V2.89h7.114L7.577 4.5a.346.346 0 10.49.488l2.198-2.2zM.101 9.21a.346.346 0 000 .489l2.2 2.199a.346.346 0 00.488-.489l-1.61-1.609h7.114c.382 0 .691-.31.691-.691V7.382a.346.346 0 00-.691 0V9.11H1.18L2.789 7.5a.346.346 0 10-.489-.488l-2.199 2.2z",fill:"currentColor"})),v=o.progress>=n.goal,f=n.showProgressBar?Math.floor(o.progress/n.goal):o.progress,h=v&&!1===n.repeatable||n.finite&&o.progress>=n.finite*n.goal,x=n.rewardDuration&&c<=p,w=n.rewardDuration&&p<=d,C=x||w;return e("div",{class:ie.classes.TaskCard},e("style",{type:"text/css"},re,"\n\t:host{\n\t\tdisplay: block;\n\t\tmargin-bottom: var(--sl-spacing-large);\n\t}\n "),!o.loading&&w&&e("div",{class:ie.classes.NotStarted},e("span",{class:"icon"},e("sl-icon",{name:"info-circle-fill"})),i.formatMessage({id:"startsOnMessage",defaultMessage:n.startsOnMessage},{startDate:d.setLocale(y(o.locale)).toLocaleString(b.DateTime.DATETIME_MED)})),!o.loading&&x&&e("div",{class:ie.classes.Ended},e("span",{class:"icon"},e("sl-icon",{name:"exclamation-triangle-fill"})),i.formatMessage({id:"endedMessage",defaultMessage:n.endedMessage},{endDate:c.setLocale(y(o.locale)).toLocaleString(b.DateTime.DATETIME_MED)})),e("div",{style:{borderRadius:C&&"0 0 var(--sl-border-radius-medium) var(--sl-border-radius-medium)"},class:C?"main expired":h?"main complete":"main"},e("div",{class:h||C?"container subdued":"container"},e("div",{class:ie.classes.Header},o.loading?e("sl-skeleton",{style:{width:"22%",margin:"0"}}):e("div",null,v&&e("span",{class:C?"icon neutral":"icon"},h?g:u),e("span",{class:"value"},n.rewardAmount),e("span",{class:"text"},n.rewardUnit))),o.loading?e("sl-skeleton",{style:{width:"42%",margin:"var(--sl-spacing-medium) 0"}}):e("div",{class:"title",style:{marginBottom:n.description?"":n.steps?"var(--sl-spacing-x-large)":n.showProgressBar?"var(--sl-spacing-xx-large)":""}},n.cardTitle),o.loading?e("sl-skeleton",{style:{margin:"var(--sl-spacing-medium) 0"}}):n.description&&e(Y,Object.assign({},a)),n.showProgressBar&&o.loading?e("sl-skeleton",{style:{margin:"var(--sl-spacing-medium) 0"}}):n.showProgressBar&&e(se,Object.assign({},a.content,a.states,{complete:h,expired:C})),e("div",{class:ie.classes.Footer},o.loading?e("sl-skeleton",{style:{width:"25%",marginLeft:"auto"}}):e("div",{style:{display:"contents"}},e("span",{class:"text"},n.repeatable&&e("div",null,e("span",{class:f>0?C?"icon neutral":"icon success":"icon"},m),e("span",{class:f>0?C?"neutral":"success":""},i.formatMessage({id:"completedMessage",defaultMessage:n.completedText},{finite:n.finite,count:n.finite?Math.min(f,n.finite):f}))),c&&!C&&e("span",{class:"datetime"},i.formatMessage({id:"expiryMessage",defaultMessage:n.expiryMessage},{endDate:c.setLocale(y(o.locale)).toLocaleString(b.DateTime.DATETIME_MED)}))),e("sl-button",{class:C?"action neutral":h?"action disabled":"action",type:"primary",size:"small",onClick:r.onClick,loading:o.loadingEvent,disabled:h||C},n.buttonText))))))}function ne(a){const{states:t,data:s}=a,{content:l}=t,i=x({Container:{position:"relative",width:l.iframeWidth,height:l.iframeHeight},IFrame:{position:"absolute",width:"100%",height:"100%",border:"0",top:"0",left:"0",right:"0"}}),r=i.toString();return e("div",{class:i.classes.Container},e("style",{type:"text/css"},r),e("iframe",{class:i.classes.IFrame,src:`${l.iframeSrc}?rsCode=${s.shareCode}`}))}const de=()=>e("svg",{width:12,height:10,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.58.23c.475.371.56 1.057.19 1.532L5.69 9.554a1.091 1.091 0 0 1-1.631.1L.32 5.915a1.09 1.09 0 1 1 1.542-1.542L4.73 7.239 10.049.42A1.09 1.09 0 0 1 11.58.23Z",fill:"#fff"})),ce=()=>e("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M0 9C0 4.02944 4.02944 0 9 0C13.9706 0 18 4.02944 18 9C18 13.9706 13.9706 18 9 18C4.02944 18 0 13.9706 0 9Z",fill:"currentColor"}),e("path",{d:"M5.68394 8.77046C5.28103 8.39273 4.64819 8.41315 4.27046 8.81606C3.89273 9.21897 3.91315 9.85181 4.31606 10.2295L5.68394 8.77046ZM7.66667 12L6.98273 12.7295C7.36738 13.0902 7.96595 13.0902 8.35061 12.7295L7.66667 12ZM13.6839 7.72954C14.0869 7.35181 14.1073 6.71897 13.7295 6.31606C13.3518 5.91315 12.719 5.89273 12.3161 6.27046L13.6839 7.72954ZM4.31606 10.2295L6.98273 12.7295L8.35061 11.2705L5.68394 8.77046L4.31606 10.2295ZM8.35061 12.7295L13.6839 7.72954L12.3161 6.27046L6.98273 11.2705L8.35061 12.7295Z",fill:"white"})),pe=()=>e("svg",{width:156,height:157,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M40.18 126h83.663a3 3 0 0 0 3-3V73.966a3 3 0 0 0-3-3H40.18a3 3 0 0 0-3 3V123a3 3 0 0 0 3 3Z",fill:"#FFD34F"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M37.18 73.862v7.966h89.663v-7.966H37.18Z",fill:"#E9BB30"}),e("path",{d:"M133.039 74.224a2.18 2.18 0 0 0 2.187-2.172v-19.19c0-1.2-.98-2.172-2.187-2.172H31.347a2.18 2.18 0 0 0-2.187 2.172v19.19c0 1.2.98 2.172 2.187 2.172H133.04Z",fill:"#FFC000"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M123.287 35.172c0 6.056-9.155 15.226-13.76 15.654H88.888V126H75.141V50.826H58.534c-9.462-2.038-17.803-9.258-17.803-16.944 0-7.49 3.274-13.422 9.23-15.983 5.693-2.446 12.265-1.105 17.46 2.479 6.378 4.398 9.956 12.654 13.202 20.144.284.657.567 1.308.848 1.95.274-.608.55-1.228.83-1.856 3.216-7.22 6.887-15.464 13.057-19.89 5.454-3.913 12.387-5.39 18.38-2.711 6.197 2.77 9.549 9.127 9.549 17.157Zm-23.306-8.266c3.305-2.37 7.262-2.8 10.645 0 2.946 2.44 3.103 3.588 3.482 6.351l.067.483c0 4.09-3.549 10.252-7.097 10.252-2.515 0-4.489-.022-6.34-.041-3.375-.036-6.337-.068-11.403.04.966-1.86 1.737-3.644 2.473-5.346 1.967-4.553 3.678-8.515 8.173-11.739Zm-39.034 0c-1.6-1.103-5.268-.61-6.79.043-1.257.54-3.134 2.19-3.134 6.933 0 4.61 7.511 8.59 7.511 8.59s5.962 1.52 16.607 1.52c-3.624-8.922-8.757-13.336-14.194-17.086Z",fill:"#EB5757"}),e("path",{d:"M75.086 74.224h13.85v7.604h-13.85v-7.604Z",fill:"#DD4747"}),e("g",{filter:"url(#a)"},e("ellipse",{cx:82.008,cy:141.207,rx:36.813,ry:5.793,fill:"#E0DDDD","fill-opacity":.8})),e("path",{d:"M150.446 79.134a.5.5 0 0 1 .9 0l1.133 2.336c.05.102.132.184.234.233l2.344 1.122a.5.5 0 0 1 0 .902l-2.344 1.122a.503.503 0 0 0-.234.233l-1.133 2.336a.5.5 0 0 1-.9 0l-1.134-2.336a.499.499 0 0 0-.234-.233l-2.343-1.122a.5.5 0 0 1 0-.902l2.343-1.122a.499.499 0 0 0 .234-.233l1.134-2.336Z",fill:"#FAB6B6"}),e("path",{d:"M14.86 29.168a.5.5 0 0 1 .9 0l1.133 2.336a.5.5 0 0 0 .234.233l2.344 1.122a.5.5 0 0 1 0 .902l-2.344 1.122a.5.5 0 0 0-.234.233l-1.133 2.336a.5.5 0 0 1-.9 0l-1.134-2.336a.5.5 0 0 0-.234-.233l-2.343-1.122a.5.5 0 0 1 0-.902l2.344-1.122a.5.5 0 0 0 .233-.233l1.134-2.336Z",fill:"#F4EFBC"}),e("path",{d:"m125.382 0 .712 1.466 1.475.706-1.475.707-.712 1.466-.711-1.466-1.476-.707 1.476-.706.711-1.466Z",fill:"#FDA802"}),e("path",{d:"m2.187 103.552.711 1.466 1.476.706-1.476.707-.711 1.466-.711-1.466L0 105.724l1.476-.706.71-1.466Z",fill:"#E4599C"}),e("defs",null,e("filter",{id:"a",x:35.195,y:125.414,width:93.625,height:31.586,filterUnits:"userSpaceOnUse","color-interpolation-filters":"s-rGB"},e("feFlood",{"flood-opacity":0,result:"BackgroundImageFix"}),e("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),e("feGaussianBlur",{stdDeviation:5,result:"effect1_foregroundBlur_653_17907"}))));function ue({active:a,completed:t,incomplete:s,stage:l}){return e("div",{style:{display:"flex"}},e("div",{style:{backgroundColor:t?"var(--sl-color-success-500)":s?"var(--sl-color-neutral-200)":"var(--sl-color-neutral-0)",border:a?"1px solid var(--sl-color-success-500)":s?"1px solid var(--sl-color-neutral-200)":"1px solid var(--sl-color-success-500)",borderRadius:"50%",width:"23px",height:"23px",margin:"-11px",zIndex:"1",boxSizing:"content-box"}},t?e("div",{style:{top:"-10.5%",left:"23.5%",position:"relative"}},e(de,null)):e("div",{style:{color:a?"var(--sl-color-success-500)":"var(--sl-color-neutral-50)",width:"23px",lineHeight:"24px",textAlign:"center",position:"relative"}},l+1)))}function ge({incomplete:a=!1,active:t=!1,invisible:s=!1}){return e("div",{style:{content:"''",flex:"0.5 0.5 0",height:"4px",borderRadius:"4px",background:a||t?"var(--sl-color-neutral-200)":"var(--sl-color-success-500)",position:"relative",bottom:"0",left:"0",display:"flex",justifyContent:"center",columnGap:"50px",marginRight:"-2px",boxSizing:"content-box",opacity:s?"0":"1"}})}function me({active:a,completed:t,incomplete:s,stage:l}){return[e(ge,{incomplete:s,invisible:0===l}),e(ue,{active:a,completed:t,incomplete:s,stage:l}),e(ge,{incomplete:s,active:a,invisible:2===l})]}function ve({stageCount:a,currentStage:t}){return e("div",{style:{display:"flex",columnGap:"-2px"}},Array.from(Array(a).keys()).map((a=>e(me,{active:t===a,completed:t>a,incomplete:t<a,stage:a}))))}const fe=["chooseReward","chooseAmount","confirmation","success"];function he(a){const{states:s,data:l,callbacks:r,refs:o}=a,{selectedItem:n,selectedStep:d}=s,c={chooseReward:s.content.text.chooseRewardTitle,chooseAmount:s.content.text.chooseAmountTitle,confirmation:s.content.text.confirmationTitle},p=x({HostBlock:g,Container:{minWidth:"300px",position:"relative"},FullImage:{objectFit:"contain",maxWidth:"100%",height:"250px",display:"flex",margin:"0 auto"},Select:{"&::part(label)":{color:"var(--sl-color-primary-500)"},"&::part(menu)":{maxHeight:"50vh"},"& sl-menu-item::part(checked-icon)":{top:"8px"},"& sl-menu-item::part(base)":{flexDirection:"column"},"& sl-menu-item::part(base):focus":{background:"transparent",color:"var(--sl-color-gray-700)"}},ProgressBar:{maxWidth:"350px",width:"100%",margin:"auto",marginBottom:"var(--sl-spacing-xxx-large)","& .text-area":{marginTop:"5px",display:"flex",justifyContent:"center",textAlign:"center",whiteSpace:"nowrap",marginBottom:"6px","& .text":{marginBottom:"var(--sl-spacing-x-small)",flex:"1 1 0"},"& .text.subdued":{color:"var(--sl-color-neutral-200)"}}},CardLayout:{display:"flex",width:"100%",borderRadius:"3px",background:"rgba(0, 0, 0, 0)"},Card:{display:"flex",userSelect:"none",height:"120px","&::part(base)":{boxShadow:"none",width:"100%"},"&::part(body)":{display:"flex",padding:0},"& .selected":{position:"relative",top:"-2%",left:"100%",color:"var(--sl-color-primary-500)",margin:"-9px"}},Image:{padding:"var(--sl-spacing-small)",minWidth:"96px",maxWidth:"96px","& .image":{width:"100%",height:"100%",objectFit:"contain",borderRadius:"4px"},"& .image.subdued":{filter:"brightness(0.95)",opacity:"0.5"}},Square:{width:"120px",height:"118px",borderRadius:"3px 0 0 3px","& .image":{width:"100%",height:"100%",objectFit:"contain",borderRadius:"inherit"}},TextArea:{textAlign:"left",padding:"var(--sl-spacing-small)",paddingLeft:"0","& .title":{fontSize:"var(--sl-font-size-medium)",lineHeight:"var(--sl-line-height-dense)",fontWeight:"600",color:"var(--sl-color-neutral-1000)",display:"-webkit-box","-webkit-line-clamp":"1","-webkit-box-orient":"vertical",overflow:"hidden"},"& .amount":{fontSize:"var(--sl-font-size-small)",lineHeight:"var(--sl-line-height-dense)",marginTop:"var(--sl-spacing-x-small)",color:"var(--sl-color-neutral-500)",display:"-webkit-box","-webkit-line-clamp":"1","-webkit-box-orient":"vertical",overflow:"hidden"},"& .error":{fontSize:"var(--sl-font-size-small)",lineHeight:"var(--sl-line-height-dense)",marginTop:"var(--sl-spacing-x-small)",fontWeight:"600",color:"var(--sl-color-warning-600)",display:"-webkit-box","-webkit-line-clamp":"1","-webkit-box-orient":"vertical",overflow:"hidden","& .icon":{position:"relative",top:"0.1em",marginRight:"var(--sl-spacing-xx-small)"}}},ChooseAmount:{display:"flex",alignItems:"center",justifyContent:"center",margin:"var(--sl-spacing-medium) 0","& .wrapper":{display:"flex",justifyContent:"center",alignItems:"center",gap:"var(--sl-spacing-xx-large)","@media (max-width: 799px)":{flexDirection:"column"}},"& .image":{width:"50%",objectFit:"contain",maxWidth:"100%",height:"250px",display:"flex","@media (max-width: 799px)":{width:"auto"}},"& .text":{width:"50%",maxWidth:"400px",minWidth:"330px","@media (max-width: 799px)":{width:"auto",margin:"auto"}},"& .title":{fontSize:"var(--sl-font-size-large)",fontWeight:"var(--sl-font-weight-semibold)",color:"var(--sl-color-neutral-1000)"},"& .points":{fontSize:"var(--sl-font-size-large)",fontWeight:"var(--sl-font-weight-semibold)",color:"var(--sl-color-primary-500)"},"& .description":{fontSize:"var(--sl-font-size-medium)",fontWeight:"var(--sl-font-weight-normal)",color:"var(--sl-color-neutral-500)",margin:"var(--sl-spacing-medium) 0",lineHeight:"var(--sl-line-height-dense)",marginTop:"var(--sl-spacing-xx-small)"},"& .space":{marginBottom:"var(--sl-spacing-xxx-large)"},"& sl-menu-item[disabled]::part(label)":{color:"var(--sl-color-neutral-200)"},"& sl-menu-item[disabled]":{"& .step-cost":{color:"var(--sl-color-neutral-200)"}}},SelectItem:{display:"flex",flexDirection:"column","& > .step-cost":{color:"var(--sl-color-neutral-400)",height:"0",marginBottom:"5px"},"& > .step-value":{margin:"0"}},Success:{textAlign:"center","& .title":{fontSize:"var(--sl-font-size-large)",fontWeight:"var(--sl-font-weight-semibold)",color:"var(--sl-color-neutral-1000)"},"& .description":{color:"var(--sl-color-neutral-400)",width:"100%",maxWidth:"350px",margin:"0 auto",lineHeight:"var(--sl-line-height-dense)",marginBottom:"var(--sl-spacing-xx-large)",marginTop:"var(--sl-spacing-xx-small)"}},Grid:{display:"grid",justifyContent:"center",gap:"20px",gridTemplateColumns:"repeat(auto-fill, minmax(300px, 1fr))"},Confirmation:{maxWidth:"800px",margin:"auto","& .wrapper":{display:"flex","@media (max-width: 499px)":{flexDirection:"column"}},"& .reward-item-container":{"@media (max-width: 499px)":{display:"flex",flexDirection:"row-reverse",justifyContent:"flex-end",alignItems:"center"}},"& .reward-item-container .reward-title":{paddingBottom:"var(--sl-spacing-medium)",lineHeight:"20px","@media (max-width: 499px)":{paddingBottom:"none",paddingLeft:"var(--sl-spacing-small)"}},"& .padding":{padding:"var(--sl-spacing-medium) 0","@media (max-width: 499px)":{padding:"var(--sl-spacing-small) 0"}},"& .field":{width:"30%",textTransform:"uppercase",fontSize:"var(--sl-font-size-medium)",fontWeight:"var(--sl-font-weight-normal)",color:"var(--sl-color-neutral-400)",textAlign:"left",paddingRight:"var(--sl-spacing-xxx-large)","@media (max-width: 499px)":{width:"100%",paddingRight:"0",paddingBottom:"0"}},"& .value":{fontSize:"var(--sl-font-size-large)",fontWeight:"var(--sl-font-weight-semibold)"},"& .top-border":{borderTop:"1px solid var(--sl-color-neutral-200)"},"& .image":{width:"200px","@media (max-width: 499px)":{width:"100px"}}},Button:{display:"flex",flexWrap:"wrap-reverse",margin:"var(--sl-spacing-medium) 0","& .cancel":{marginLeft:"auto",marginRight:"var(--sl-spacing-medium)","&::part(base)":{fontWeight:"var(--sl-font-weight-normal)",color:"var(--sl-color-neutral-1000)"},"@media (max-width: 499px)":{width:"100%",marginRight:"0",marginTop:"var(--sl-spacing-small)"}},"& .continue":{"&::part(base)":{background:"var(--sl-color-primary-500)",borderColor:"var(--sl-color-primary-500)",fontWeight:"var(--sl-font-weight-normal)",color:"var(--sl-color-neutral-0)"},"@media (max-width: 499px)":{width:"100%"}},"& .continue.right":{marginLeft:"auto"},"& .continue.center":{margin:"0 auto"}},Confetti:{pointerEvents:"none",position:"absolute",width:"100%",height:"100%",top:"0%",left:"0%",zIndex:"1"}}),u=p.toString();const m={chooseReward:()=>{return[e("div",null,e("h2",{style:{margin:"var(--sl-spacing-large) 0"}},s.content.text.rewardTitle),e("div",{class:p.classes.Grid},s.loading?[...Array(s.content.text.skeletonCardNum)].map((()=>e("div",null,e("sl-card",{class:p.classes.Card},e("div",{class:p.classes.CardLayout},e("div",null,e("sl-skeleton",{style:{width:"100px",height:"100px",margin:"9px","--border-radius":"4px"}})),e("div",{style:{margin:"var(--sl-spacing-small) var(--sl-spacing-small) 0 0",width:"100%"}},e("sl-skeleton",{style:{marginBottom:"var(--sl-spacing-small)"}}),e("sl-skeleton",{style:{marginBottom:"var(--sl-spacing-small)"}}),e("sl-skeleton",{style:{width:"45%"}}))))))):null===(a=l.exchangeList)||void 0===a?void 0:a.map((a=>{var l,o,d,c,u;return e("div",{key:a.key,style:{boxShadow:a.key===(null==n?void 0:n.key)?"0 0 0 2px var(--sl-color-primary-500)":"none",borderRadius:"4px"}},e("sl-card",{class:p.classes.Card,style:{cursor:a.unavailableReasonCode?"not-allowed":"pointer"},onClick:()=>a.available&&r.setExchangeState({selectedItem:a})},a.key===(null==n?void 0:n.key)&&e("div",{class:"selected"},e(ce,null)),e("div",{style:{display:"flex",width:"100%",height:"120px",borderRadius:"3px",background:a.unavailableReasonCode?"rgba(0, 0, 0, 0.05)":"rgba(0, 0, 0, 0)"}},e("div",{class:p.classes.Image,style:{opacity:a.unavailableReasonCode?"0.5":"1"}},e("img",{class:a.unavailableReasonCode?"image subdued":"image",src:(null==a?void 0:a.imageUrl)||t("./assets/Reward-image.png")})),e("div",{class:p.classes.TextArea,style:{opacity:a.unavailableReasonCode?"0.5":"1"}},e("div",{class:"title",style:{"-webkit-line-clamp":a.unavailableReasonCode?"1":"2"}},null!==(l=a.name)&&void 0!==l?l:""),e("div",{class:"amount",style:{"-webkit-line-clamp":a.unavailableReasonCode?"1":"2"}},i.formatMessage({id:"sourceAmountMessage",defaultMessage:null===(d=null===(o=s.content)||void 0===o?void 0:o.text)||void 0===d?void 0:d.sourceAmountMessage},{ruleType:a.ruleType,sourceValue:a.prettySourceValue,sourceMinValue:a.prettySourceMinValue,sourceMaxValue:a.prettySourceMaxValue})),a.unavailableReasonCode&&e("div",{class:"error"},e("sl-icon",{class:"icon",name:"exclamation-triangle-fill"}),i.formatMessage({id:"unavailableCode",defaultMessage:null===(u=null===(c=s.content)||void 0===c?void 0:c.text)||void 0===u?void 0:u.notAvailableError},{unavailableReasonCode:a.unavailableReasonCode,sourceUnit:a.sourceUnit,sourceValue:a.prettySourceValue||a.prettySourceMinValue}))))))}))),e("div",{class:p.classes.Button},e("sl-button",{class:"continue right",size:"large",onClick:()=>r.setStage("chooseAmount"),loading:s.loading,disabled:!s.selectedItem},s.content.text.continueText)))];var a},chooseAmount:()=>function(){var a,l,o,d;const c=function(){var a,t,l;const o=s.selectedItem;return o&&"FIXED_GLOBAL_REWARD"!==(null==o?void 0:o.ruleType)?(null===(a=o.steps)||void 0===a?void 0:a.length)?e("sl-select",{style:{width:"auto"},label:null===(t=null==s?void 0:s.content)||void 0===t?void 0:t.text.selectText,class:p.classes.Select,value:s.selectedStep,"onSl-select":e=>{var a,t,s,l,i;return r.setExchangeState({amount:null===(s=null===(t=null===(a=e.detail)||void 0===a?void 0:a.item)||void 0===t?void 0:t.value)||void 0===s?void 0:s.sourceValue,selectedStep:null===(i=null===(l=e.detail)||void 0===l?void 0:l.item)||void 0===i?void 0:i.value})}},null===(l=o.steps)||void 0===l?void 0:l.map((a=>{var t,l;return e("sl-menu-item",{value:a,disabled:!a.available},a.prettyDestinationValue," ",e("br",null),a.unavailableReasonCode&&e("p",{style:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-warning-500)",margin:"0"}},i.formatMessage({id:"unavailableCode",defaultMessage:null===(l=null===(t=s.content)||void 0===t?void 0:t.text)||void 0===l?void 0:l.notAvailableError},{unavailableReasonCode:a.unavailableReasonCode,sourceUnit:o.sourceUnit,sourceValue:a.prettySourceValue||o.prettySourceMinValue})),e("div",{class:"step-cost",slot:"suffix"},a.prettySourceValue))}))):e("p",null,i.formatMessage({id:"notEnoughError",defaultMessage:s.content.text.notEnoughError},{sourceUnit:o.sourceUnit})):e("span",null,null==o?void 0:o.prettySourceValue)}(),u="FIXED_GLOBAL_REWARD"!==(null===(a=s.selectedItem)||void 0===a?void 0:a.ruleType)&&c&&!s.amount;return console.log("input",c),console.log(s.amount),e("div",null,e("div",{class:p.classes.ChooseAmount},e("div",{class:"wrapper"},e("img",{class:"image",src:(null==n?void 0:n.imageUrl)||t("./assets/Reward-image.png")}),e("div",{class:"text"},e("div",{class:"title"},null!==(l=null==n?void 0:n.name)&&void 0!==l?l:""),"FIXED_GLOBAL_REWARD"===(null===(o=s.selectedItem)||void 0===o?void 0:o.ruleType)?e("div",{class:"points"},c):e("div",{class:"description"},null==n?void 0:n.description),"FIXED_GLOBAL_REWARD"===(null===(d=s.selectedItem)||void 0===d?void 0:d.ruleType)?e("div",{class:"description"},null==n?void 0:n.description):e("div",{class:"points"},c),e("div",{class:"space"}),e("div",{class:p.classes.Button},e("sl-button",{class:"cancel",size:"large",type:"text",onClick:()=>r.resetState()},s.content.text.cancelText),e("sl-button",{class:"continue",size:"large",onClick:()=>r.setStage("confirmation"),disabled:u},s.content.text.continueToConfirmationText))))))}(),confirmation:()=>function(){const a=(null==d?void 0:d.prettySourceValue)||n.prettySourceValue,l=null==d?void 0:d.prettyDestinationValue;return e("div",null,e("h2",{style:{margin:"var(--sl-spacing-large) 0",textAlign:"center"}},s.content.text.redeemTitle),e("div",{class:p.classes.Confirmation},e("div",{class:"wrapper"},e("div",{class:"field"},s.content.text.rewardNameTitle),e("div",{class:"reward-item-container"},e("div",{class:"reward-title"},n.name),e("img",{class:"image",src:(null==n?void 0:n.imageUrl)||t("./assets/Reward-image.png")}))),e("div",{class:"wrapper padding"},e("div",{class:"field"})),l&&e("div",{class:"wrapper top-border padding"},e("div",{class:"field"},s.content.text.rewardAmountTitle),e("div",null,l)),e("div",{class:"wrapper top-border padding"},e("div",{class:"field"},s.content.text.costTitle),e("div",{class:"value"},a)),e("div",{class:p.classes.Button},e("sl-button",{class:"cancel",type:"text",size:"large",onClick:()=>r.setStage("chooseAmount")},s.content.text.backText),e("sl-button",{class:"continue",size:"large",loading:s.loading,onClick:r.exchangeReward},s.content.text.redeemText))))}(),success:()=>{return e("div",{class:p.classes.Success},e(pe,null),e(v,null),e("div",{class:"title"},s.content.text.rewardRedeemedText),e("div",{class:"description"},i.formatMessage({id:"successMessage",defaultMessage:s.content.text.redemptionSuccessText},{sourceValue:null!==(a=s.selectedItem.prettySourceValue)&&void 0!==a?a:null===(t=s.selectedStep)||void 0===t?void 0:t.prettySourceValue,destinationValue:(null===(o=s.selectedStep)||void 0===o?void 0:o.prettyDestinationValue)||(null===(n=s.selectedItem)||void 0===n?void 0:n.name)||s.selectedItem.globalRewardKey})),(null==l?void 0:l.fuelTankCode)&&e("div",{style:{width:"40%",margin:"-30px auto var(--sl-spacing-xxx-large) auto",textAlign:"left",color:"var(--sl-color-neutral-700)"}},s.content.text.promoCode,e(z,{shareString:l.fuelTankCode,tooltiptext:null===(d=null==s?void 0:s.content)||void 0===d?void 0:d.text.toopTipText,open:s.open,onClick:r.copyFuelTankCode})),e("div",{class:p.classes.Button},e("sl-button",{class:"continue center",type:"primary",size:"large",onClick:()=>r.resetState(!0)},s.content.text.doneText)));var a,t,o,n,d}}[s.redeemStage];function v(){return e("canvas",{ref:e=>{(null==o?void 0:o.canvasRef)&&(o.canvasRef.current=e)},id:"my-canvas",class:p.classes.Confetti})}return e("div",{class:p.classes.Container},e("style",{type:"text/css"},u),e("div",null,function(){const a=fe.indexOf(s.redeemStage);return e("div",{class:p.classes.ProgressBar},e("div",{class:"text-area"},Object.keys(c).map((t=>fe.indexOf(t)<=a?e("span",{class:"text"},c[t]):e("span",{class:"text subdued"},c[t])))),e(ve,{stageCount:3,currentStage:a}))}(),s.exchangeError&&e("sl-alert",{type:"danger",open:!0},e("sl-icon",{slot:"icon",name:"exclamation-octagon"}),s.content.text.redemptionError),s.queryError&&e("sl-alert",{type:"danger",open:!0},e("sl-icon",{slot:"icon",name:"exclamation-octagon"}),s.content.text.queryError),m&&m(),"success"===s.redeemStage))}const xe=(e,a="chooseReward",t=null,s=null,l=!1,i=!1,r=null)=>({states:{content:{text:{buttonText:"Exchange Rewards",notAvailableError:"{unavailableReasonCode, select, NOT_CHAMPION {CUSTOM ERROR MESSAGE } US_TAX {Exceeds tax limit for this year} INSUFFICIENT_REDEEMABLE_CREDIT {{sourceValue} required} AVAILABILITY_PREDICATE {Not available} other {unavailableReasonCode} }",chooseRewardTitle:"Rewards",chooseAmountTitle:"Select",confirmationTitle:"Confirm",rewardTitle:"Choose a reward",cancelText:"Cancel",backText:"Back",continueText:"Continue",continueToConfirmationText:"Continue to confirmation",redeemText:"Redeem",redeemTitle:"Confirm and redeem",redemptionSuccessText:"Redeemed {sourceValue} for {destinationValue}",doneText:"Done",toolTipText:"Copied!",selectText:"Select amount to receive",sourceAmountMessage:"{ruleType, select, FIXED_GLOBAL_REWARD {{sourceValue}} other {{sourceMinValue} to {sourceMaxValue}}}",rewardRedeemedText:"Reward redeemed",redemptionError:"An error occured trying to redeem this reward. Please try again",promoCode:"Promo code",skeletonCardNum:8,rewardNameTitle:"Reward Name",rewardAmountTitle:"Reward Amount",costTitle:"Cost"}},redeemStage:a,amount:0,exchangeError:l,loading:i,selectedItem:t,selectedStep:s,open:!1},data:{exchangeList:e,fuelTankCode:r},callbacks:{exchangeReward:null,resetState:null,setStage:null,setExchangeState:null,copyFuelTankCode:null,refs:null},refs:null}),be={key:"",name:"",description:"Description of reward. Lorem ipsum dolor sit amet, consectetur adipiscing. Id nec semper sapien dignissim rhoncus nunc.",imageUrl:"",available:!0,unavailableReasonCode:null,ruleType:"FIXED_GLOBAL_REWARD",sourceUnit:"POINT",sourceValue:10,prettySourceValue:"10 SaaSquatch Points",sourceMinValue:null,prettySourceMinValue:null,sourceMaxValue:null,prettySourceMaxValue:null,destinationMinValue:null,prettyDestinationMinValue:null,destinationMaxValue:null,prettyDestinationMaxValue:null,globalRewardKey:"",destinationUnit:null,steps:[]},ye={available:!1,unavailableReasonCode:"INSUFFICIENT_REDEEMABLE_CREDIT"},we={key:"r1"},Ce=e=>({imageUrl:e}),Se=e=>({name:e}),_e=e=>({description:e}),ke=e=>({prettySourceValue:e}),Ee=(e,a,t)=>({ruleType:"VARIABLE_CREDIT_REWARD",sourceMinValue:e,prettySourceMinValue:e+" "+t,sourceMaxValue:a,prettySourceMaxValue:a+" "+t}),Re=[{...be,...Se("Free swag with a promo code"),...Ce("https://res.cloudinary.com/saasquatch/image/upload/v1643653103/squatch-assets/default_rewards_1.png"),...ke("40 Points")},{...be,...we,...Se("Visa® Prepaid Card USD"),...Ce("https://res.cloudinary.com/saasquatch/image/upload/v1644000268/squatch-assets/veHErQX.png"),...Ee(20,80,"Points")},{...be,...Se("$50 Store credit"),...Ce("https://res.cloudinary.com/saasquatch/image/upload/v1644000270/squatch-assets/WkCMVSE.png"),...ke("100 Points")},{...be,...Se("Variable amount of store credit"),...Ce("https://res.cloudinary.com/saasquatch/image/upload/v1644000240/squatch-assets/Jn2fE0s.png"),...Ee(20,100,"Points")}],ze=[{...be,...Se("Free swag with a promo code"),...Ce("https://res.cloudinary.com/saasquatch/image/upload/v1643653103/squatch-assets/default_rewards_1.png"),...ke("40 SaaSquatch Points")},{...be,...we,...Se("Visa® Prepaid Card USD"),...Ce("https://res.cloudinary.com/saasquatch/image/upload/v1644000268/squatch-assets/veHErQX.png"),...Ee(20,80,"Points")},{...be,...Se("A very exclusive gift box"),...Ce("https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/93BvEgH.png"),...ke("30 SaaSquatch Points")},{...be,...Se("$50 Store credit"),...Ce("https://res.cloudinary.com/saasquatch/image/upload/v1644000270/squatch-assets/WkCMVSE.png"),...ke("100 SaaSquatch Points")},{...be,...Se("Variable amount of store credit"),...Ce("https://res.cloudinary.com/saasquatch/image/upload/v1644000240/squatch-assets/Jn2fE0s.png"),...Ee(20,100,"Points")},{...be,...ye,...Se("A very rare cactus"),...Ce("https://res.cloudinary.com/saasquatch/image/upload/v1644000224/squatch-assets/hhlF2Ey.png"),...ke("2000 SaaSquatch Points")},{...be,available:!1,unavailableReasonCode:"US_TAX",...Se("$1000 Store credit with a really super long name in the front page"),...Ce("https://res.cloudinary.com/saasquatch/image/upload/v1644000273/squatch-assets/y9HSls1.png"),...ke("2000 SaaSquatch Long Points")},{...be,...ye,...Se("A holiday gift box"),...Ce("https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/dWEdB3p.png"),...ke("100 SaaSquatch Points")}],qe={...xe(ze)},Ae={...xe(Re)},Me={...xe([{...be,...ye,...Se("Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ratione a itaque non obcaecati iste, amet repudiandae at consequatur adipisci culpa nam, incidunt exercitationem aliquid."),...Ce("https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/dWEdB3p.png"),...ke("Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ratione a itaque non obcaecati iste, amet repudiandae at consequatur adipisci culpa nam, incidunt exercitationem aliquid.")},{...be,...Se("Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ratione a itaque non obcaecati iste, amet repudiandae at consequatur adipisci culpa nam, incidunt exercitationem aliquid."),...Ce("https://res.cloudinary.com/saasquatch/image/upload/v1644000273/squatch-assets/y9HSls1.png"),...ke("Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ratione a itaque non obcaecati iste, amet repudiandae at consequatur adipisci culpa nam, incidunt exercitationem aliquid.")},{...be,...Se("Suuuuuuuuper aweeeeesssssoooommme reward!!!!!!"),...Ce("https://res.cloudinary.com/saasquatch/image/upload/v1644000270/squatch-assets/WkCMVSE.png"),...ke("Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ratione a itaque non obcaecati iste, amet repudiandae at consequatur adipisci culpa nam, incidunt exercitationem aliquid.")},...ze])},Be={...xe([{...be,available:!1,unavailableReasonCode:"NOT_CHAMPION",...Se("A very rare cactus"),...Ce("https://res.cloudinary.com/saasquatch/image/upload/v1644000224/squatch-assets/hhlF2Ey.png"),...ke("2000 SaaSquatch Points")},...ze])},Pe={...xe(ze,"chooseReward",{...be,...we,...Se("Visa® Prepaid Card USD"),...Ce("https://res.cloudinary.com/saasquatch/image/upload/v1644000268/squatch-assets/veHErQX.png"),...Ee(20,80,"Points")})},Te=(e,a,t,s,l=!0,i=null)=>({destinationValue:e,prettyDestinationValue:a+e,sourceValue:t,prettySourceValue:t+" "+s,available:l,unavailableReasonCode:i}),Ie={...xe(ze,"chooseAmount",{...be,...Se("Visa® Prepaid Card USD"),...Ce("https://res.cloudinary.com/saasquatch/image/upload/v1644000268/squatch-assets/veHErQX.png"),...Ee(20,80,"Points"),steps:[Te(20,"$",40,"Points"),Te(30,"$",60,"Points"),Te(40,"$",80,"Points"),Te(50,"$",100,"Points"),Te(60,"$",120,"Points")]})},Le={...xe(ze,"chooseAmount",{...be,...Se("Visa® Prepaid Card USD"),..._e(""),...Ce("https://i.imgur.com/veHErQX.png"),...Ee(20,80,"Points"),steps:[Te(20,"$",40,"Points"),Te(30,"$",60,"Points"),Te(40,"$",80,"Points"),Te(50,"$",100,"Points"),Te(60,"$",120,"Points")]})},De={...xe(ze,"chooseAmount",{...be,...Se("Visa® Prepaid Card USD"),...Ce("https://res.cloudinary.com/saasquatch/image/upload/v1644000268/squatch-assets/veHErQX.png"),...Ee(20,80,"Points"),steps:[Te(20,"$",40,"Points"),Te(30,"$",60,"Points"),Te(40,"$",80,"Points",!1,"INSUFFICIENT_REDEEMABLE_CREDIT"),Te(50,"$",100,"Points",!1,"INSUFFICIENT_REDEEMABLE_CREDIT"),Te(60,"$",120,"Points",!1,"INSUFFICIENT_REDEEMABLE_CREDIT")]})},$e={...xe(ze,"chooseAmount",{...be,...Se("Visa® Prepaid Card USD"),...Ce("https://res.cloudinary.com/saasquatch/image/upload/v1644000268/squatch-assets/veHErQX.png"),...Ee(20,80,"Points"),steps:[Te(20,"$",40,"Points"),Te(30,"$",60,"Points"),Te(40,"$",80,"Points",!1,"US_TAX"),Te(50,"$",100,"Points",!1,"US_TAX"),Te(60,"$",120,"Points",!1,"US_TAX")]})},je={...xe(ze,"chooseAmount",{...be,...Se("Free swag with a promo code"),...Ce("https://res.cloudinary.com/saasquatch/image/upload/v1644000252/squatch-assets/n7vC4BR.png"),...ke("40 SaaSquatch Points")})},Ve={...xe(ze,"chooseAmount",{...be,..._e(""),...Se("Free swag with a promo code"),...Ce("https://i.imgur.com/n7vC4BR.png"),...ke("40 SaaSquatch Points")})},He={...xe(ze,"confirmation",{...be,...Se("Free swag with a promo code"),...Ce("https://res.cloudinary.com/saasquatch/image/upload/v1644000252/squatch-assets/n7vC4BR.png"),...ke("40 SaaSquatch Points")})},Fe={...xe(ze,"confirmation",{...be,...Se("Visa® Prepaid Card USD"),...Ce("https://res.cloudinary.com/saasquatch/image/upload/v1644000268/squatch-assets/veHErQX.png"),...Ee(20,80,"Points")},Te(20,"$",40,"Points"))},We={...xe(ze,"confirmation",{...be,...Se("Visa® Prepaid Card USD"),...Ce("https://res.cloudinary.com/saasquatch/image/upload/v1644000268/squatch-assets/veHErQX.png"),...Ee(20,80,"Points")},Te(20,"$",40,"Points"),!0)},Ue={...xe(ze,"success",{...be,...Se("Free swag with a promo code"),...Ce("https://res.cloudinary.com/saasquatch/image/upload/v1644000252/squatch-assets/n7vC4BR.png"),...ke("40 SaaSquatch Points")},void 0,void 0,void 0,"4ah2-hh46-gk7r")},Oe={...xe(ze,"success",{...be,...Se("Visa® Prepaid Card USD"),...Ce("https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/93BvEgH.png"),...Ee(20,80,"Points")},Te(20,"$",40,"Points"))},Ne={...xe(null,"chooseReward",null,null,!1,!0)};function Ze(a,t){const s=x({Container:{columnGap:a.gap+"px",columnWidth:a.width+"px","& > div":{marginBottom:"24px"}}}),l=s.toString();return console.log(a),e("div",null,e("style",{type:"text/css"},l,"\n :host{\n display: block; \n }\n\n "),e("div",{class:s.classes.Container},t))}function Xe(e,a,t){return Math.min(Math.max(e,t),a)}class Ge extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}function Qe(e){if("string"!=typeof e)throw new Ge(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let a=e.trim();a=la.test(e)?function(e){const a=e.toLowerCase().trim(),t=Je[function(e){let a=5381,t=e.length;for(;t;)a=33*a^e.charCodeAt(--t);return(a>>>0)%2341}(a)];if(!t)throw new Ge(e);return`#${t}`}(e):e;const t=ea.exec(a);if(t){const e=Array.from(t).slice(1);return[...e.slice(0,3).map((e=>parseInt(Ye(e,2),16))),parseInt(Ye(e[3]||"f",2),16)/255]}const s=aa.exec(a);if(s){const e=Array.from(s).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,16))),parseInt(e[3]||"ff",16)/255]}const l=ta.exec(a);if(l){const e=Array.from(l).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,10))),parseFloat(e[3]||"1")]}const i=sa.exec(a);if(i){const[a,t,s,l]=Array.from(i).slice(1).map(parseFloat);if(Xe(0,100,t)!==t)throw new Ge(e);if(Xe(0,100,s)!==s)throw new Ge(e);return[...ra(a,t,s),l||1]}throw new Ge(e)}const Ke=e=>parseInt(e.replace(/_/g,""),36),Je="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((e,a)=>{const t=Ke(a.substring(0,3)),s=Ke(a.substring(3)).toString(16);let l="";for(let e=0;e<6-s.length;e++)l+="0";return e[t]=`${l}${s}`,e}),{}),Ye=(e,a)=>Array.from(Array(a)).map((()=>e)).join(""),ea=new RegExp(`^#${Ye("([a-f0-9])",3)}([a-f0-9])?$`,"i"),aa=new RegExp(`^#${Ye("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),ta=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Ye(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),sa=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,la=/^[a-z]+$/i,ia=e=>Math.round(255*e),ra=(e,a,t)=>{let s=t/100;if(0===a)return[s,s,s].map(ia);const l=(e%360+360)%360/60,i=(1-Math.abs(2*s-1))*(a/100),r=i*(1-Math.abs(l%2-1));let o=0,n=0,d=0;l>=0&&l<1?(o=i,n=r):l>=1&&l<2?(o=r,n=i):l>=2&&l<3?(n=i,d=r):l>=3&&l<4?(n=r,d=i):l>=4&&l<5?(o=r,d=i):l>=5&&l<6&&(o=i,d=r);const c=s-i/2;return[o+c,n+c,d+c].map(ia)},oa=[50,100,200,300,400,500,600,700,800,900,950],na=[.95,.86,.76,.66,.56,.46,.39,.32,.25,.18,.15],da=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i;function ca(e,a="primary"){const[t,s,l,i]=function(e){const a=e.trim(),t=da.exec(a);if(t){const[a,s,l,i]=Array.from(t).slice(1).map(parseFloat);if(Xe(0,100,s)!==s)throw new Ge(e);if(Xe(0,100,l)!==l)throw new Ge(e);return[a,s/100,l,i||1]}return function(e){const[a,t,s,l]=Qe(e).map(((e,a)=>3===a?e:e/255)),i=Math.max(a,t,s),r=Math.min(a,t,s),o=(i+r)/2;if(i===r)return[0,0,o,l];const n=i-r;return[60*(a===i?(t-s)/n+(t<s?6:0):t===i?(s-a)/n+2:(a-t)/n+4),o>.5?n/(2-i-r):n/(i+r),o,l]}(e)}(e);return na.map((e=>function(e,a,t,s){return`hsla(${(e%360).toFixed()}, ${Xe(0,100,100*a).toFixed()}%, ${Xe(0,100,100*t).toFixed()}%, ${parseFloat(Xe(0,1,s).toFixed(3))})`}(t,s,e,i))).map(((e,t)=>`--sl-color-${a}-${oa[t]}: ${e};\n`))}function pa(e,a="primary"){return ca(e,a).join("\n")}const ua=new Map;function ga(e){const a=s(e);let t=e.render.bind(e);e.render=()=>{const e=a.getAttribute("stencilbook-shadow-view");if(e){const a=ua.get(e);if(a)return a}return t()}}const ma=({story:a},t)=>{var s;let l=null===(s=a.parent.parameters)||void 0===s?void 0:s.tagname;if(!l)return t;const i=Math.round(1e5*Math.random());return ua.set(i+"",t),e("stencilbook-shawdow-view-"+i,null,e(l,{"stencilbook-shadow-view":i}))};export{ga as A,Ae as B,Ze as C,L as E,B as L,I as P,ne as R,k as S,oe as T,z as a,F as b,W as c,N as d,Q as e,se as f,he as g,Me as h,Pe as i,je as j,Ve as k,Ie as l,Le as m,De as n,$e as o,He as p,Fe as q,Be as r,We as s,Ue as t,j as u,Oe as v,Ne as w,qe as x,pa as y,ma as z}
|