@saasquatch/mint-components 1.6.7 → 1.6.8-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{sqm-portal-footer-view-349373b2.js → PoweredByImg-7084ef2d.js} +0 -66
- package/dist/cjs/{ShadowViewAddon-9c42e820.js → ShadowViewAddon-2d3ef919.js} +64 -52
- package/dist/cjs/{global-67a37b3f.js → global-3ebda209.js} +161 -10
- package/dist/cjs/index-e4027f09.js +2227 -0
- package/dist/cjs/{index.module-c6626247.js → index.module-30d74cb5.js} +51 -50
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{luxon-53e983a6.js → luxon-1b6e7276.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +5 -5
- package/dist/cjs/{re-render-fce04f85.js → re-render-6963789e.js} +3 -3
- package/dist/cjs/sqm-asset-card.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-big-stat_35.cjs.entry.js → sqm-big-stat_36.cjs.entry.js} +243 -112
- package/dist/cjs/sqm-empty_5.cjs.entry.js +6 -6
- package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +6 -6
- package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-hero-view-fcc0188c.js → sqm-hero-view-201fca7e.js} +2 -2
- package/dist/cjs/sqm-hero.cjs.entry.js +4 -4
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +12 -11
- package/dist/cjs/{sqm-navigation-sidebar-item-view-8b4f304f.js → sqm-navigation-sidebar-item-view-9bba2bad.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +6 -6
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +5 -5
- package/dist/cjs/sqm-password-field.cjs.entry.js +5 -5
- package/dist/cjs/sqm-passwordless-registration-view-60f25a41.js +51 -0
- package/dist/cjs/sqm-passwordless-registration.cjs.entry.js +124 -0
- package/dist/cjs/sqm-popup-container.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-portal-container-view-3215dce9.js → sqm-portal-container-view-ec1be9eb.js} +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-6f41962b.js → sqm-portal-email-verification-view-e834e79c.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +10 -10
- package/dist/cjs/sqm-portal-footer-view-6e490bc6.js +71 -0
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +7 -6
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +7 -7
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-portal-profile-view-b8215eae.js → sqm-portal-profile-view-c143c506.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +15 -14
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +8 -8
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +11 -10
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +10 -10
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +8 -8
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +17 -16
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +5 -5
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +62 -61
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +162 -69
- package/dist/cjs/sqm-tab.cjs.entry.js +5 -5
- package/dist/cjs/sqm-tabs.cjs.entry.js +6 -6
- package/dist/cjs/sqm-text-span.cjs.entry.js +2 -2
- package/dist/cjs/sqm-user-identifier.cjs.entry.js +56 -0
- package/dist/cjs/{stencil-hooks.module-e4bf7f2d.js → stencil-hooks.module-5344b631.js} +1 -4
- package/dist/cjs/{use-callback-86e9ac75.js → use-callback-05714e23.js} +1 -1
- package/dist/cjs/{useChildElements-eaa9e49d.js → useChildElements-161457a6.js} +2 -2
- package/dist/cjs/{useReferralTable-6257eb3b.js → useReferralTable-e933351b.js} +17 -16
- package/dist/cjs/{useRegistrationFormState-a1861717.js → useRegistrationFormState-5f21a453.js} +2 -2
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/sqm-card-feed/sqm-card-feed-view.js +1 -1
- package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +22 -0
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +208 -0
- package/dist/collection/components/sqm-coupon-code/useCouponCode.js +49 -0
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +2 -3
- package/dist/collection/components/sqm-image/sqm-image-view.js +1 -1
- package/dist/collection/components/sqm-passwordless-registration/PasswordlessRegistration.stories.js +32 -0
- package/dist/collection/components/sqm-passwordless-registration/sqm-passwordless-registration-view.js +46 -0
- package/dist/collection/components/sqm-passwordless-registration/sqm-passwordless-registration.js +267 -0
- package/dist/collection/components/sqm-passwordless-registration/usePasswordlessRegistration.js +38 -0
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -1
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +2 -4
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +2 -2
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +3 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
- package/dist/collection/components/sqm-share-code/ShareCode.stories.js +7 -1
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +65 -9
- package/dist/collection/components/sqm-share-code/useShareCode.js +3 -3
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +13 -7
- package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +4 -4
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +65 -9
- package/dist/collection/components/sqm-share-link/useShareLink.js +3 -3
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -0
- package/dist/collection/components/sqm-task-card/DetailsView.js +1 -1
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +10 -9
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +4 -4
- package/dist/collection/components/sqm-user-identifier/UserIdentifier.stories.js +26 -0
- package/dist/collection/components/sqm-user-identifier/sqm-user-identifier-view.js +32 -0
- package/dist/collection/components/sqm-user-identifier/sqm-user-identifier.js +131 -0
- package/dist/collection/components/views/copy-text-view.js +28 -0
- package/dist/collection/stories/NewPortal.stories.js +5 -5
- package/dist/esm/{sqm-portal-footer-view-41fe6018.js → PoweredByImg-1114005e.js} +1 -66
- package/dist/esm/{ShadowViewAddon-9791fbe2.js → ShadowViewAddon-e57c3d40.js} +47 -35
- package/dist/esm/{global-fbe84c58.js → global-4bd89b1d.js} +161 -10
- package/dist/esm/index-4bffa04c.js +2225 -0
- package/dist/esm/{index.module-3c720e8f.js → index.module-5043fba6.js} +38 -35
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{luxon-1e38d7f1.js → luxon-dccb73bb.js} +1 -1
- package/dist/esm/mint-components.js +5 -5
- package/dist/esm/{re-render-695ddbbd.js → re-render-a3c1732f.js} +3 -3
- package/dist/esm/sqm-asset-card.entry.js +3 -3
- package/dist/esm/{sqm-big-stat_35.entry.js → sqm-big-stat_36.entry.js} +201 -71
- package/dist/esm/sqm-empty_5.entry.js +3 -3
- package/dist/esm/sqm-form-message.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +5 -5
- package/dist/esm/sqm-header-logo.entry.js +1 -1
- package/dist/esm/{sqm-hero-view-f1809063.js → sqm-hero-view-27de6b06.js} +2 -2
- package/dist/esm/sqm-hero.entry.js +3 -3
- package/dist/esm/sqm-leaderboard-rank.entry.js +7 -6
- package/dist/esm/{sqm-navigation-sidebar-item-view-6f909ba7.js → sqm-navigation-sidebar-item-view-d63373b2.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +5 -5
- package/dist/esm/sqm-navigation-sidebar.entry.js +4 -4
- package/dist/esm/sqm-password-field.entry.js +4 -4
- package/dist/esm/sqm-passwordless-registration-view-dcd145d6.js +49 -0
- package/dist/esm/sqm-passwordless-registration.entry.js +120 -0
- package/dist/esm/sqm-popup-container.entry.js +6 -6
- package/dist/esm/{sqm-portal-container-view-8e091565.js → sqm-portal-container-view-06bce80d.js} +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-381320c4.js → sqm-portal-email-verification-view-9c993283.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +9 -9
- package/dist/esm/sqm-portal-footer-view-d673e9b9.js +69 -0
- package/dist/esm/sqm-portal-footer.entry.js +6 -5
- package/dist/esm/sqm-portal-forgot-password.entry.js +6 -6
- package/dist/esm/sqm-portal-logout.entry.js +4 -4
- package/dist/esm/{sqm-portal-profile-view-510e0fac.js → sqm-portal-profile-view-0b4315c2.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +9 -8
- package/dist/esm/sqm-portal-protected-route.entry.js +7 -7
- package/dist/esm/sqm-portal-registration-form.entry.js +9 -8
- package/dist/esm/sqm-portal-reset-password.entry.js +9 -9
- package/dist/esm/sqm-portal-verify-email.entry.js +7 -7
- package/dist/esm/sqm-referral-table_11.entry.js +9 -8
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
- package/dist/esm/sqm-rewards-table_9.entry.js +13 -12
- package/dist/esm/sqm-stencilbook.entry.js +157 -64
- package/dist/esm/sqm-tab.entry.js +4 -4
- package/dist/esm/sqm-tabs.entry.js +5 -5
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/sqm-user-identifier.entry.js +52 -0
- package/dist/esm/{stencil-hooks.module-b48b45ec.js → stencil-hooks.module-6bde7453.js} +1 -1
- package/dist/esm/{use-callback-051c06c6.js → use-callback-c5579ecb.js} +1 -1
- package/dist/esm/{useChildElements-79be4145.js → useChildElements-a68649fd.js} +2 -2
- package/dist/esm/{useReferralTable-7f8db41f.js → useReferralTable-6c6c06cb.js} +9 -8
- package/dist/esm/{useRegistrationFormState-6ce2e16f.js → useRegistrationFormState-97f39def.js} +2 -2
- package/dist/esm-es5/PoweredByImg-1114005e.js +1 -0
- package/dist/esm-es5/ShadowViewAddon-e57c3d40.js +1 -0
- package/dist/esm-es5/global-4bd89b1d.js +285 -0
- package/dist/esm-es5/index-4bffa04c.js +1 -0
- package/dist/esm-es5/index.module-5043fba6.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-1e38d7f1.js → luxon-dccb73bb.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-695ddbbd.js → re-render-a3c1732f.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_36.entry.js +1 -0
- package/dist/esm-es5/sqm-empty_5.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/{sqm-hero-view-f1809063.js → sqm-hero-view-27de6b06.js} +1 -1
- package/dist/esm-es5/sqm-hero.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-d63373b2.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-passwordless-registration-view-dcd145d6.js +1 -0
- package/dist/esm-es5/sqm-passwordless-registration.entry.js +1 -0
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-container-view-8e091565.js → sqm-portal-container-view-06bce80d.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-381320c4.js → sqm-portal-email-verification-view-9c993283.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-footer-view-d673e9b9.js +1 -0
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-510e0fac.js → sqm-portal-profile-view-0b4315c2.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/sqm-user-identifier.entry.js +1 -0
- package/dist/esm-es5/{stencil-hooks.module-b48b45ec.js → stencil-hooks.module-6bde7453.js} +1 -1
- package/dist/esm-es5/use-callback-c5579ecb.js +1 -0
- package/dist/esm-es5/{useChildElements-79be4145.js → useChildElements-a68649fd.js} +1 -1
- package/dist/esm-es5/useReferralTable-6c6c06cb.js +1 -0
- package/dist/esm-es5/{useRegistrationFormState-6ce2e16f.js → useRegistrationFormState-97f39def.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-014e183e.system.js +1 -0
- package/dist/mint-components/p-040a7ac6.system.entry.js +1 -0
- package/dist/mint-components/{p-3c189cea.system.js → p-0a15b302.system.js} +1 -1
- package/dist/mint-components/{p-52ce1373.system.entry.js → p-0a4c867d.system.entry.js} +1 -1
- package/dist/mint-components/p-0afd05cc.system.entry.js +1 -0
- package/dist/mint-components/p-0b07c70b.entry.js +171 -0
- package/dist/mint-components/p-0b3af3f2.js +1 -0
- package/dist/mint-components/{p-eab70762.system.entry.js → p-0e344e4c.system.entry.js} +1 -1
- package/dist/mint-components/p-15e0bdb5.entry.js +1 -0
- package/dist/mint-components/p-18d5795d.system.js +1 -0
- package/dist/mint-components/p-1943d52e.js +1 -0
- package/dist/mint-components/p-1b0c59f0.system.entry.js +1 -0
- package/dist/mint-components/p-1e350778.system.entry.js +1 -0
- package/dist/mint-components/{p-2433b74c.js → p-218c8a32.js} +1 -1
- package/dist/mint-components/{p-e931152c.entry.js → p-21bf8abc.entry.js} +1 -1
- package/dist/mint-components/p-25d4bd6c.entry.js +1 -0
- package/dist/mint-components/{p-9bacac1a.system.entry.js → p-26131a87.system.entry.js} +1 -1
- package/dist/mint-components/{p-f4a318fa.entry.js → p-293d8305.entry.js} +2 -2
- package/dist/mint-components/p-2bc7c025.system.entry.js +1 -0
- package/dist/mint-components/{p-1ea19d11.system.entry.js → p-2c8645c6.system.entry.js} +1 -1
- package/dist/mint-components/{p-c3d4bd17.entry.js → p-2d728c9b.entry.js} +1 -1
- package/dist/mint-components/p-2dcc4495.entry.js +1 -0
- package/dist/mint-components/{p-e7548e13.system.entry.js → p-2f8ddf17.system.entry.js} +1 -1
- package/dist/mint-components/{p-07a2fa17.system.js → p-2ffe61a0.system.js} +1 -1
- package/dist/mint-components/{p-33e9fcfc.js → p-3aa51afb.js} +3 -3
- package/dist/mint-components/{p-48cc1220.system.entry.js → p-3b084b9e.system.entry.js} +1 -1
- package/dist/mint-components/p-4056a7f4.entry.js +1 -0
- package/dist/mint-components/p-41377dac.system.js +1 -0
- package/dist/mint-components/{p-707e7a2e.system.entry.js → p-4777598b.system.entry.js} +1 -1
- package/dist/mint-components/p-497c2091.system.entry.js +1 -0
- package/dist/mint-components/{p-d91a5c01.js → p-4e38410c.js} +153 -153
- package/dist/mint-components/{p-f6e8985b.system.entry.js → p-4fc59b30.system.entry.js} +1 -1
- package/dist/mint-components/p-545c6333.system.entry.js +1 -0
- package/dist/mint-components/{p-0179da5a.entry.js → p-54d0019e.entry.js} +3 -3
- package/dist/mint-components/p-561b5ade.js +268 -0
- package/dist/mint-components/{p-04950f4c.system.js → p-5bba84a6.system.js} +1 -1
- package/dist/mint-components/p-5bfe901d.js +1 -0
- package/dist/mint-components/p-5da32b79.system.entry.js +1 -0
- package/dist/mint-components/{p-d54de97b.system.entry.js → p-68454fb6.system.entry.js} +1 -1
- package/dist/mint-components/p-6b5824db.entry.js +13 -0
- package/dist/mint-components/{p-b79c0e38.system.js → p-6b9e32ca.system.js} +2 -2
- package/dist/mint-components/p-721deaaf.system.js +1 -0
- package/dist/mint-components/{p-1c80a930.entry.js → p-848a7767.entry.js} +1 -1
- package/dist/mint-components/{p-45ee4fcd.entry.js → p-850c27d0.entry.js} +1 -1
- package/dist/mint-components/{p-a421f44e.system.js → p-88bfcec2.system.js} +1 -1
- package/dist/mint-components/p-8a7b0f2c.system.entry.js +1 -0
- package/dist/mint-components/{p-c06cd3cc.system.js → p-8c0e613f.system.js} +1 -1
- package/dist/mint-components/{p-14c9767e.system.entry.js → p-8ddb2c01.system.entry.js} +1 -1
- package/dist/mint-components/p-8e84f311.system.entry.js +1 -0
- package/dist/mint-components/p-910c977e.entry.js +13 -0
- package/dist/mint-components/{p-d1a74f7e.js → p-938ff1fc.js} +1 -1
- package/dist/mint-components/{p-1866c07f.entry.js → p-94cf16d4.entry.js} +1 -1
- package/dist/mint-components/p-9c63de96.system.js +1 -0
- package/dist/mint-components/p-9ccc4b8a.system.entry.js +1 -0
- package/dist/mint-components/{p-1c2c05ea.system.entry.js → p-9dce9be7.system.entry.js} +1 -1
- package/dist/mint-components/p-9f011b61.system.entry.js +1 -0
- package/dist/mint-components/p-9f06a318.entry.js +1 -0
- package/dist/mint-components/p-a0dcecee.system.js +1 -0
- package/dist/mint-components/p-a15a06d1.entry.js +1 -0
- package/dist/mint-components/p-a208711a.js +1 -0
- package/dist/mint-components/p-a4b7f6a6.system.js +1 -0
- package/dist/mint-components/{p-5ee4e422.system.entry.js → p-a853bf1c.system.entry.js} +1 -1
- package/dist/mint-components/{p-ebdd7428.js → p-acc9e541.js} +1 -1
- package/dist/mint-components/{p-72b166c9.system.entry.js → p-ad694844.system.entry.js} +1 -1
- package/dist/mint-components/{p-03bf73ac.entry.js → p-b0601c94.entry.js} +1 -1
- package/dist/mint-components/{p-3f075d21.entry.js → p-b0f1dfad.entry.js} +1 -1
- package/dist/mint-components/p-b56a0052.system.js +1 -0
- package/dist/mint-components/{p-5a8866c0.system.entry.js → p-b6de33e5.system.entry.js} +1 -1
- package/dist/mint-components/p-b76c5252.entry.js +1 -0
- package/dist/mint-components/{p-6f9f5609.js → p-b8301966.js} +1 -1
- package/dist/mint-components/{p-6db612cd.entry.js → p-b9831b79.entry.js} +1 -1
- package/dist/mint-components/p-c3fa90e4.entry.js +1 -0
- package/dist/mint-components/{p-ed801cb7.js → p-c5966d38.js} +1 -1
- package/dist/mint-components/p-c5bd5f21.entry.js +9 -0
- package/dist/mint-components/p-c78edab5.entry.js +1 -0
- package/dist/mint-components/p-c7e36372.system.js +1 -0
- package/dist/mint-components/p-c96900ab.js +1 -0
- package/dist/mint-components/p-ce7fef38.system.js +1 -0
- package/dist/mint-components/p-ceb6a9e5.js +1 -0
- package/dist/mint-components/p-ceefa840.system.entry.js +1 -0
- package/dist/mint-components/p-d4dd44ce.js +1 -0
- package/dist/mint-components/{p-25254dd1.js → p-d566db0b.js} +1 -1
- package/dist/mint-components/{p-7e15b154.entry.js → p-d96ba635.entry.js} +1 -1
- package/dist/mint-components/{p-e6f5ccc0.entry.js → p-db01736e.entry.js} +1 -1
- package/dist/mint-components/p-dbb3533c.system.entry.js +1 -0
- package/dist/mint-components/{p-6eb41f14.system.entry.js → p-dc9f2ec3.system.entry.js} +1 -1
- package/dist/mint-components/p-dcdfc20a.entry.js +1 -0
- package/dist/mint-components/p-e36afaf4.system.entry.js +1 -0
- package/dist/mint-components/p-eae501f9.js +1 -0
- package/dist/mint-components/p-eb5e8657.entry.js +1 -0
- package/dist/mint-components/p-ece264ab.entry.js +1 -0
- package/dist/mint-components/p-ee7e5b54.system.js +1 -0
- package/dist/mint-components/p-f19e6247.entry.js +1 -0
- package/dist/mint-components/p-f4dbaf32.js +1 -0
- package/dist/mint-components/{p-c9a2502c.system.js → p-f572337b.system.js} +1 -1
- package/dist/mint-components/p-f5a0ea6c.entry.js +1 -0
- package/dist/mint-components/{p-8b422807.entry.js → p-f628a8cd.entry.js} +1 -1
- package/dist/mint-components/p-f6e9b11e.js +1 -0
- package/dist/mint-components/p-f9203fcb.system.entry.js +1 -0
- package/dist/mint-components/p-fab61d16.system.js +1 -0
- package/dist/mint-components/{p-e02ac363.system.js → p-fbc2343f.system.js} +22 -22
- package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +10 -0
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +48 -0
- package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +8 -0
- package/dist/types/components/sqm-passwordless-registration/PasswordlessRegistration.stories.d.ts +8 -0
- package/dist/types/components/sqm-passwordless-registration/sqm-passwordless-registration-view.d.ts +21 -0
- package/dist/types/components/sqm-passwordless-registration/sqm-passwordless-registration.d.ts +48 -0
- package/dist/types/components/sqm-passwordless-registration/usePasswordlessRegistration.d.ts +9 -0
- package/dist/types/components/sqm-share-code/ShareCode.stories.d.ts +2 -0
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +14 -2
- package/dist/types/components/sqm-share-code/useShareCode.d.ts +2 -2
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +2 -0
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +14 -2
- package/dist/types/components/sqm-share-link/useShareLink.d.ts +2 -2
- package/dist/types/components/sqm-user-identifier/UserIdentifier.stories.d.ts +13 -0
- package/dist/types/components/sqm-user-identifier/sqm-user-identifier-view.d.ts +9 -0
- package/dist/types/components/sqm-user-identifier/sqm-user-identifier.d.ts +33 -0
- package/dist/types/components/views/copy-text-view.d.ts +10 -0
- package/dist/types/components.d.ts +267 -5
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +0 -18
- package/dist/esm-es5/ShadowViewAddon-9791fbe2.js +0 -1
- package/dist/esm-es5/global-fbe84c58.js +0 -285
- package/dist/esm-es5/index.module-3c720e8f.js +0 -1
- package/dist/esm-es5/sqm-big-stat_35.entry.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-6f909ba7.js +0 -1
- package/dist/esm-es5/sqm-portal-footer-view-41fe6018.js +0 -1
- package/dist/esm-es5/use-callback-051c06c6.js +0 -1
- package/dist/esm-es5/useReferralTable-7f8db41f.js +0 -1
- package/dist/mint-components/p-02356211.system.entry.js +0 -1
- package/dist/mint-components/p-1303bd2f.system.entry.js +0 -1
- package/dist/mint-components/p-1696a6e2.system.entry.js +0 -1
- package/dist/mint-components/p-1d1fac2c.js +0 -1
- package/dist/mint-components/p-1f54fd38.system.js +0 -1
- package/dist/mint-components/p-21b4895e.entry.js +0 -9
- package/dist/mint-components/p-27fc534b.system.entry.js +0 -1
- package/dist/mint-components/p-2bfa2da4.js +0 -1
- package/dist/mint-components/p-2e4443d4.entry.js +0 -1
- package/dist/mint-components/p-4294a89c.entry.js +0 -1
- package/dist/mint-components/p-45bb95ba.js +0 -1
- package/dist/mint-components/p-4c3f24a7.entry.js +0 -1
- package/dist/mint-components/p-5027afd7.entry.js +0 -159
- package/dist/mint-components/p-51dd43c0.system.js +0 -1
- package/dist/mint-components/p-600c88be.system.js +0 -1
- package/dist/mint-components/p-6b627b02.system.entry.js +0 -1
- package/dist/mint-components/p-6e28498f.system.entry.js +0 -1
- package/dist/mint-components/p-7578e83f.system.entry.js +0 -1
- package/dist/mint-components/p-78651bde.entry.js +0 -1
- package/dist/mint-components/p-79be7593.system.js +0 -1
- package/dist/mint-components/p-7f156573.system.entry.js +0 -1
- package/dist/mint-components/p-84e18e6b.system.js +0 -1
- package/dist/mint-components/p-895858d0.entry.js +0 -1
- package/dist/mint-components/p-8aa61264.system.js +0 -1
- package/dist/mint-components/p-8f2e7864.js +0 -268
- package/dist/mint-components/p-8fc166eb.js +0 -1
- package/dist/mint-components/p-8ffaf231.system.entry.js +0 -1
- package/dist/mint-components/p-926e57e7.entry.js +0 -1
- package/dist/mint-components/p-93832713.js +0 -1
- package/dist/mint-components/p-9732cfef.system.js +0 -1
- package/dist/mint-components/p-9775b40a.entry.js +0 -13
- package/dist/mint-components/p-9b833cfb.system.entry.js +0 -1
- package/dist/mint-components/p-9e16b967.entry.js +0 -1
- package/dist/mint-components/p-a44bf369.entry.js +0 -1
- package/dist/mint-components/p-a7da9285.entry.js +0 -13
- package/dist/mint-components/p-a9af92ea.entry.js +0 -1
- package/dist/mint-components/p-aaa3de28.entry.js +0 -1
- package/dist/mint-components/p-ac000fc6.system.js +0 -1
- package/dist/mint-components/p-b0e85f24.entry.js +0 -1
- package/dist/mint-components/p-b2a0461f.system.entry.js +0 -1
- package/dist/mint-components/p-b76df920.entry.js +0 -1
- package/dist/mint-components/p-c7090fd1.system.js +0 -1
- package/dist/mint-components/p-cd898a3a.js +0 -1
- package/dist/mint-components/p-d1d42507.system.entry.js +0 -1
- package/dist/mint-components/p-df63ee45.system.entry.js +0 -1
- package/dist/mint-components/p-f66b4b3a.js +0 -1
- package/dist/mint-components/p-fad0a26c.system.entry.js +0 -1
- package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +0 -8
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-b0129cd6.js');
|
|
4
|
-
const global = require('./global-67a37b3f.js');
|
|
5
|
-
const JSS = require('./JSS-8503a151.js');
|
|
6
4
|
|
|
7
5
|
function PoweredByImg({ color = "#A6A6A6", width = 190, height = 29, }) {
|
|
8
6
|
return (index.h("svg", { width: width, height: height, viewBox: "0 0 132 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
@@ -15,68 +13,4 @@ function PoweredByImg({ color = "#A6A6A6", width = 190, height = 29, }) {
|
|
|
15
13
|
index.h("rect", { width: "14", height: "16", fill: "white", transform: "translate(59.5 1)" })))));
|
|
16
14
|
}
|
|
17
15
|
|
|
18
|
-
const vanillaStyle = `
|
|
19
|
-
:host{
|
|
20
|
-
margin: 0 auto;
|
|
21
|
-
width: 100%;
|
|
22
|
-
}
|
|
23
|
-
a{
|
|
24
|
-
cursor:pointer;
|
|
25
|
-
color: inherit;
|
|
26
|
-
text-decoration: none;
|
|
27
|
-
}
|
|
28
|
-
`;
|
|
29
|
-
function PortalFooterView(props) {
|
|
30
|
-
const style = {
|
|
31
|
-
RowContainer: {
|
|
32
|
-
display: "flex",
|
|
33
|
-
"& > :not(:last-child)": {
|
|
34
|
-
"margin-right": "var(--sl-spacing-large)",
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
Container: {
|
|
38
|
-
display: "flex",
|
|
39
|
-
"flex-direction": "column",
|
|
40
|
-
"align-items": "center",
|
|
41
|
-
"font-size": "var(--sl-font-size-small)",
|
|
42
|
-
color: "var(--sl-color-gray-600)",
|
|
43
|
-
"padding-top": `var(--sl-spacing-${props.paddingTop})`,
|
|
44
|
-
"padding-right": `var(--sl-spacing-${props.paddingRight})`,
|
|
45
|
-
"padding-bottom": `var(--sl-spacing-${props.paddingBottom})`,
|
|
46
|
-
"padding-left": `var(--sl-spacing-${props.paddingLeft})`,
|
|
47
|
-
"& a:hover": {
|
|
48
|
-
color: "var(--sl-color-gray-900)",
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
SupportText: {
|
|
52
|
-
textAlign: "center",
|
|
53
|
-
},
|
|
54
|
-
PoweredByLink: {
|
|
55
|
-
color: "var(--sl-color-gray-400)",
|
|
56
|
-
"font-size": "var(--sl-font-size-xx-small)",
|
|
57
|
-
"&:hover": {
|
|
58
|
-
color: "var(--sl-color-gray-900)",
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
};
|
|
62
|
-
const sheet = JSS.createStyleSheet(style);
|
|
63
|
-
const styleString = sheet.toString();
|
|
64
|
-
return (index.h("div", { class: sheet.classes.Container },
|
|
65
|
-
index.h("style", { type: "text/css" },
|
|
66
|
-
vanillaStyle,
|
|
67
|
-
styleString),
|
|
68
|
-
index.h("div", { class: sheet.classes.RowContainer },
|
|
69
|
-
props.faqLink && (index.h("a", { target: "_blank", href: props.faqLink }, props.faqText)),
|
|
70
|
-
props.termsLink && (index.h("a", { target: "_blank", href: props.termsLink }, props.termsText))),
|
|
71
|
-
index.h("p", { class: sheet.classes.SupportText }, global.intl.formatMessage({
|
|
72
|
-
id: "supportFooter",
|
|
73
|
-
defaultMessage: props.supportText,
|
|
74
|
-
}, {
|
|
75
|
-
email: (index.h("a", { target: "_blank", href: `mailto:${props.supportEmail}` }, props.supportEmail)),
|
|
76
|
-
})),
|
|
77
|
-
!props.hidePoweredBy && (index.h("a", { class: sheet.classes.PoweredByLink, target: "_blank", href: props.poweredByLink },
|
|
78
|
-
index.h(PoweredByImg, null)))));
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
exports.PortalFooterView = PortalFooterView;
|
|
82
16
|
exports.PoweredByImg = PoweredByImg;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-b0129cd6.js');
|
|
4
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
5
|
-
const global = require('./global-
|
|
6
|
-
const index_module = require('./index.module-
|
|
4
|
+
const stencilHooks_module = require('./stencil-hooks.module-5344b631.js');
|
|
5
|
+
const global = require('./global-3ebda209.js');
|
|
6
|
+
const index_module = require('./index.module-30d74cb5.js');
|
|
7
7
|
const cjs = require('./cjs-1066ec21.js');
|
|
8
8
|
const mixins = require('./mixins-fe9d4112.js');
|
|
9
9
|
const JSS = require('./JSS-8503a151.js');
|
|
10
|
-
const useChildElements = require('./useChildElements-
|
|
11
|
-
const luxon = require('./luxon-
|
|
10
|
+
const useChildElements = require('./useChildElements-161457a6.js');
|
|
11
|
+
const luxon = require('./luxon-1b6e7276.js');
|
|
12
|
+
const index$1 = require('./index-e4027f09.js');
|
|
12
13
|
const utils = require('./utils-6847bc06.js');
|
|
13
14
|
const sqmTextSpanView = require('./sqm-text-span-view-1acdf7e9.js');
|
|
14
|
-
const sqmPortalContainerView = require('./sqm-portal-container-view-
|
|
15
|
+
const sqmPortalContainerView = require('./sqm-portal-container-view-ec1be9eb.js');
|
|
15
16
|
|
|
16
17
|
const medium = {
|
|
17
18
|
facebook: { color: "#1877f2", text: "#fff", icon: "facebook" },
|
|
@@ -194,14 +195,24 @@ const style$2 = {
|
|
|
194
195
|
"&::part(base)": { background: "white", opacity: "1", cursor: "pointer" },
|
|
195
196
|
},
|
|
196
197
|
};
|
|
198
|
+
const textAlignStyle = `
|
|
199
|
+
:host{
|
|
200
|
+
display: block;
|
|
201
|
+
}
|
|
202
|
+
sl-input::part(input){
|
|
203
|
+
text-align: center;
|
|
204
|
+
}
|
|
205
|
+
`;
|
|
197
206
|
const sheet$2 = JSS.createStyleSheet(style$2);
|
|
198
207
|
const styleString$2 = sheet$2.toString();
|
|
199
|
-
function
|
|
208
|
+
function CopyTextView(props) {
|
|
209
|
+
const { isCopyIcon = true } = props;
|
|
200
210
|
return (index.h("div", null,
|
|
201
|
-
index.h("style", { type: "text/css" },
|
|
211
|
+
index.h("style", { type: "text/css" },
|
|
212
|
+
styleString$2,
|
|
213
|
+
props.textAlign === "center" && textAlignStyle),
|
|
202
214
|
index.h("sl-tooltip", { trigger: "manual", content: props.tooltiptext, placement: "top-end", disabled: props.disabled, open: props.open, skidding: -20 },
|
|
203
|
-
index.h("sl-input", { class: sheet$2.classes.inputStyle, exportparts: "label: input-label", value: props.
|
|
204
|
-
index.h("sl-icon-button", { onClick: () => { var _a; return (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props); }, slot: "suffix", name: "files", disabled: props.disabled })))));
|
|
215
|
+
index.h("sl-input", { class: sheet$2.classes.inputStyle, exportparts: "label: input-label", value: props.copyString, readonly: true }, isCopyIcon ? (index.h("sl-icon-button", { onClick: () => { var _a; return (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props); }, slot: "suffix", name: "files", disabled: props.disabled })) : (index.h("sl-button", { onClick: () => { var _a; return (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props); }, slot: "suffix", name: "files", size: "small", disabled: props.disabled }, "Copy"))))));
|
|
205
216
|
}
|
|
206
217
|
|
|
207
218
|
function BigStatView(props) {
|
|
@@ -340,7 +351,7 @@ const EditProfileView = (props) => {
|
|
|
340
351
|
}, exportparts: "base: primarybutton-base" }, text.editprofiletext)));
|
|
341
352
|
};
|
|
342
353
|
|
|
343
|
-
const MessageLinkQuery =
|
|
354
|
+
const MessageLinkQuery = index$1.dist.gql `
|
|
344
355
|
query ($programId: ID) {
|
|
345
356
|
user: viewer {
|
|
346
357
|
... on User {
|
|
@@ -349,7 +360,7 @@ const MessageLinkQuery = index_module.dist.gql `
|
|
|
349
360
|
}
|
|
350
361
|
}
|
|
351
362
|
`;
|
|
352
|
-
const WIDGET_ENGAGEMENT_EVENT =
|
|
363
|
+
const WIDGET_ENGAGEMENT_EVENT = index$1.dist.gql `
|
|
353
364
|
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
354
365
|
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
355
366
|
}
|
|
@@ -357,18 +368,18 @@ const WIDGET_ENGAGEMENT_EVENT = index_module.dist.gql `
|
|
|
357
368
|
function useShareLink(props) {
|
|
358
369
|
var _a, _b;
|
|
359
370
|
const { programId = index_module.O() } = props;
|
|
360
|
-
const user = index_module.
|
|
361
|
-
const engagementMedium = index_module.
|
|
362
|
-
const { data } = index_module.
|
|
363
|
-
const [sendLoadEvent] = index_module.
|
|
364
|
-
const
|
|
371
|
+
const user = index_module.W();
|
|
372
|
+
const engagementMedium = index_module._();
|
|
373
|
+
const { data } = index_module.fn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
374
|
+
const [sendLoadEvent] = index_module.Fe(WIDGET_ENGAGEMENT_EVENT);
|
|
375
|
+
const copyString = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink) !== null && _b !== void 0 ? _b :
|
|
365
376
|
// Shown during loading
|
|
366
377
|
"...";
|
|
367
378
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
368
379
|
function onClick() {
|
|
369
380
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
370
381
|
// Only if called from a user-initiated event
|
|
371
|
-
navigator.clipboard.writeText(
|
|
382
|
+
navigator.clipboard.writeText(copyString);
|
|
372
383
|
setOpen(true);
|
|
373
384
|
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
374
385
|
sendLoadEvent({
|
|
@@ -384,10 +395,10 @@ function useShareLink(props) {
|
|
|
384
395
|
},
|
|
385
396
|
});
|
|
386
397
|
}
|
|
387
|
-
return { ...props, onClick, open,
|
|
398
|
+
return { ...props, onClick, open, copyString: copyString };
|
|
388
399
|
}
|
|
389
400
|
|
|
390
|
-
const MessageLinkQuery$1 =
|
|
401
|
+
const MessageLinkQuery$1 = index$1.dist.gql `
|
|
391
402
|
query (
|
|
392
403
|
$programId: ID
|
|
393
404
|
$engagementMedium: UserEngagementMedium!
|
|
@@ -446,14 +457,14 @@ function useShareButton(props) {
|
|
|
446
457
|
var _a, _b;
|
|
447
458
|
const { sharetitle, sharetext, medium } = props;
|
|
448
459
|
const programId = props.programId ? props.programId : index_module.O();
|
|
449
|
-
const user = index_module.
|
|
460
|
+
const user = index_module.W();
|
|
450
461
|
const variables = {
|
|
451
|
-
engagementMedium: index_module.
|
|
462
|
+
engagementMedium: index_module._(),
|
|
452
463
|
programId: programId,
|
|
453
464
|
shareMedium: medium.toUpperCase(),
|
|
454
465
|
};
|
|
455
466
|
// only queries if a programId is available
|
|
456
|
-
const res = index_module.
|
|
467
|
+
const res = index_module.fn(MessageLinkQuery$1, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
457
468
|
const directLink = (_b = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.shareLink;
|
|
458
469
|
const environment = index_module.getEnvironmentSDK();
|
|
459
470
|
const hide = (medium.toLocaleUpperCase() === "SMS" &&
|
|
@@ -771,7 +782,7 @@ function pathToRegexp(path, keys, options) {
|
|
|
771
782
|
const debug = stencilHooks_module.browser("sq:useBigStat");
|
|
772
783
|
const LOADING = "...";
|
|
773
784
|
const debugQuery = (query, variables, getStat) => {
|
|
774
|
-
const res = index_module.
|
|
785
|
+
const res = index_module.fn(query, variables);
|
|
775
786
|
if (!(res === null || res === void 0 ? void 0 : res.data) && !res.loading) {
|
|
776
787
|
console.error("issue getting stat:", res);
|
|
777
788
|
}
|
|
@@ -790,7 +801,7 @@ _, status) => {
|
|
|
790
801
|
? { dateConverted_exists: false }
|
|
791
802
|
: {};
|
|
792
803
|
const queryFilter = { ...programFilter, ...convertedFilter };
|
|
793
|
-
return debugQuery(
|
|
804
|
+
return debugQuery(index$1.dist.gql `
|
|
794
805
|
query ($queryFilter: ReferralFilterInput) {
|
|
795
806
|
viewer {
|
|
796
807
|
... on User {
|
|
@@ -812,7 +823,7 @@ const programGoalsQuery = (programId, locale, metricType, goalId) => {
|
|
|
812
823
|
// Confirm this behaviour
|
|
813
824
|
if (programId === "classic")
|
|
814
825
|
return null;
|
|
815
|
-
return debugQuery(
|
|
826
|
+
return debugQuery(index$1.dist.gql `
|
|
816
827
|
query {
|
|
817
828
|
viewer {
|
|
818
829
|
... on User {
|
|
@@ -835,7 +846,7 @@ const programGoalsQuery = (programId, locale, metricType, goalId) => {
|
|
|
835
846
|
});
|
|
836
847
|
};
|
|
837
848
|
const customFieldsQuery = (_programId, locale, fieldName, goalId) => {
|
|
838
|
-
return debugQuery(
|
|
849
|
+
return debugQuery(index$1.dist.gql `
|
|
839
850
|
query {
|
|
840
851
|
viewer {
|
|
841
852
|
... on User {
|
|
@@ -860,7 +871,7 @@ const referralsMonthQuery = (programId) => {
|
|
|
860
871
|
...programFilter,
|
|
861
872
|
dateReferralStarted_timeframe: "this_month",
|
|
862
873
|
};
|
|
863
|
-
return debugQuery(
|
|
874
|
+
return debugQuery(index$1.dist.gql `
|
|
864
875
|
query ($filter: ReferralFilterInput) {
|
|
865
876
|
viewer {
|
|
866
877
|
... on User {
|
|
@@ -886,7 +897,7 @@ const referralsWeekQuery = (programId) => {
|
|
|
886
897
|
...programFilter,
|
|
887
898
|
dateReferralStarted_timeframe: "this_month",
|
|
888
899
|
};
|
|
889
|
-
return debugQuery(
|
|
900
|
+
return debugQuery(index$1.dist.gql `
|
|
890
901
|
query ($filter: ReferralFilterInput) {
|
|
891
902
|
viewer {
|
|
892
903
|
... on User {
|
|
@@ -907,7 +918,7 @@ const referralsWeekQuery = (programId) => {
|
|
|
907
918
|
const rewardsCountQuery = (programId,
|
|
908
919
|
// locale
|
|
909
920
|
_, global = "") => {
|
|
910
|
-
return debugQuery(
|
|
921
|
+
return debugQuery(index$1.dist.gql `
|
|
911
922
|
query ($programId: ID) {
|
|
912
923
|
viewer {
|
|
913
924
|
... on User {
|
|
@@ -931,7 +942,7 @@ const rewardsCountFilteredQuery = (programId,
|
|
|
931
942
|
// locale
|
|
932
943
|
_, type, unit, status, global = "") => {
|
|
933
944
|
const statusFilter = status ? { status } : null;
|
|
934
|
-
return debugQuery(
|
|
945
|
+
return debugQuery(index$1.dist.gql `
|
|
935
946
|
query (
|
|
936
947
|
$programId: ID
|
|
937
948
|
$unit: String
|
|
@@ -970,7 +981,7 @@ const integrationRewardsCountFilteredQuery = (programId,
|
|
|
970
981
|
// locale
|
|
971
982
|
_, status, global = "") => {
|
|
972
983
|
const statusFilter = status ? { status } : null;
|
|
973
|
-
return debugQuery(
|
|
984
|
+
return debugQuery(index$1.dist.gql `
|
|
974
985
|
query ($programId: ID, $statusFilter: RewardStatusFilterInput) {
|
|
975
986
|
viewer {
|
|
976
987
|
... on User {
|
|
@@ -1000,7 +1011,7 @@ _, status, global = "") => {
|
|
|
1000
1011
|
const rewardsMonthQuery = (programId,
|
|
1001
1012
|
// locale
|
|
1002
1013
|
_, global = "") => {
|
|
1003
|
-
return debugQuery(
|
|
1014
|
+
return debugQuery(index$1.dist.gql `
|
|
1004
1015
|
query ($programId: ID) {
|
|
1005
1016
|
viewer {
|
|
1006
1017
|
... on User {
|
|
@@ -1028,7 +1039,7 @@ _, global = "") => {
|
|
|
1028
1039
|
const rewardsWeekQuery = (programId,
|
|
1029
1040
|
// locale
|
|
1030
1041
|
_, global = "") => {
|
|
1031
|
-
return debugQuery(
|
|
1042
|
+
return debugQuery(index$1.dist.gql `
|
|
1032
1043
|
query ($programId: ID) {
|
|
1033
1044
|
viewer {
|
|
1034
1045
|
... on User {
|
|
@@ -1054,7 +1065,7 @@ _, global = "") => {
|
|
|
1054
1065
|
});
|
|
1055
1066
|
};
|
|
1056
1067
|
const rewardsRedeemedQuery = (programId, locale, type, unit, global = "") => {
|
|
1057
|
-
return debugQuery(
|
|
1068
|
+
return debugQuery(index$1.dist.gql `
|
|
1058
1069
|
query (
|
|
1059
1070
|
$programId: ID
|
|
1060
1071
|
$type: RewardType
|
|
@@ -1097,7 +1108,7 @@ const rewardsRedeemedQuery = (programId, locale, type, unit, global = "") => {
|
|
|
1097
1108
|
});
|
|
1098
1109
|
};
|
|
1099
1110
|
const rewardsAssignedQuery = (programId, locale, type, unit, global = "") => {
|
|
1100
|
-
return debugQuery(
|
|
1111
|
+
return debugQuery(index$1.dist.gql `
|
|
1101
1112
|
query (
|
|
1102
1113
|
$programId: ID
|
|
1103
1114
|
$type: RewardType
|
|
@@ -1140,7 +1151,7 @@ const rewardsAssignedQuery = (programId, locale, type, unit, global = "") => {
|
|
|
1140
1151
|
});
|
|
1141
1152
|
};
|
|
1142
1153
|
const rewardsAvailableQuery = (programId, locale, type, unit, global = "") => {
|
|
1143
|
-
return debugQuery(
|
|
1154
|
+
return debugQuery(index$1.dist.gql `
|
|
1144
1155
|
query (
|
|
1145
1156
|
$programId: ID
|
|
1146
1157
|
$type: RewardType
|
|
@@ -1188,7 +1199,7 @@ const parseRewardValueFormat = {
|
|
|
1188
1199
|
};
|
|
1189
1200
|
const rewardsBalanceQuery = (programId, locale, type, unit, format = "prettyValue", global = "") => {
|
|
1190
1201
|
var _a;
|
|
1191
|
-
return debugQuery(
|
|
1202
|
+
return debugQuery(index$1.dist.gql `
|
|
1192
1203
|
query (
|
|
1193
1204
|
$programId: ID
|
|
1194
1205
|
$type: RewardType!
|
|
@@ -1333,7 +1344,7 @@ function useBigStat(props) {
|
|
|
1333
1344
|
// triggers a re-render if the label is manually changed
|
|
1334
1345
|
useChildElements.useChildElements();
|
|
1335
1346
|
const locale = index_module.x();
|
|
1336
|
-
const userIdent = index_module.
|
|
1347
|
+
const userIdent = index_module.W();
|
|
1337
1348
|
const re = stencilHooks_module.useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
|
|
1338
1349
|
if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
|
|
1339
1350
|
return {
|
|
@@ -1690,7 +1701,7 @@ function Details(props) {
|
|
|
1690
1701
|
index.h("span", { class: sheet$6.classes.Description },
|
|
1691
1702
|
index.h("input", { type: "checkbox", id: "details-" + rid }),
|
|
1692
1703
|
index.h("label", { class: "details", htmlFor: "details-" + rid },
|
|
1693
|
-
index.h("sl-icon", { name: "chevron-down" })),
|
|
1704
|
+
index.h("sl-icon", { exportparts: "base: task-card-chevron-icon", name: "chevron-down" })),
|
|
1694
1705
|
index.h("span", { class: "summary", "progress-bar": props.progressBar }, props.content.description))));
|
|
1695
1706
|
}
|
|
1696
1707
|
|
|
@@ -2308,8 +2319,9 @@ function TaskCardView(props) {
|
|
|
2308
2319
|
display: block;
|
|
2309
2320
|
margin-bottom: var(--sl-spacing-large);
|
|
2310
2321
|
}
|
|
2322
|
+
|
|
2311
2323
|
`;
|
|
2312
|
-
return (index.h("div", { class: sheet$8.classes.TaskCard },
|
|
2324
|
+
return (index.h("div", { class: sheet$8.classes.TaskCard, part: "sqm-base" },
|
|
2313
2325
|
index.h("style", { type: "text/css" },
|
|
2314
2326
|
styleString$8,
|
|
2315
2327
|
vanillaStyle),
|
|
@@ -2325,8 +2337,8 @@ function TaskCardView(props) {
|
|
|
2325
2337
|
.toLocaleString(luxon.luxon.DateTime.DATETIME_MED),
|
|
2326
2338
|
}))),
|
|
2327
2339
|
!states.loading && taskEnded && (index.h("div", { class: sheet$8.classes.Ended },
|
|
2328
|
-
index.h("span", { class: "icon" },
|
|
2329
|
-
index.h("sl-icon", { name: "exclamation-triangle-fill" })),
|
|
2340
|
+
index.h("span", { class: "icon", part: "test" },
|
|
2341
|
+
index.h("sl-icon", { exportparts: "base: task-card-icon", name: "exclamation-triangle-fill" })),
|
|
2330
2342
|
global.intl.formatMessage({
|
|
2331
2343
|
id: "endedMessage",
|
|
2332
2344
|
defaultMessage: content.endedMessage,
|
|
@@ -2335,7 +2347,7 @@ function TaskCardView(props) {
|
|
|
2335
2347
|
.setLocale(utils.luxonLocale(states.locale))
|
|
2336
2348
|
.toLocaleString(luxon.luxon.DateTime.DATETIME_MED),
|
|
2337
2349
|
}))),
|
|
2338
|
-
index.h("div", { style: {
|
|
2350
|
+
index.h("div", { part: "sqm-card-container-inner", style: {
|
|
2339
2351
|
borderRadius: taskUnavailable &&
|
|
2340
2352
|
"0 0 var(--sl-border-radius-large) var(--sl-border-radius-large)",
|
|
2341
2353
|
}, class: taskUnavailable
|
|
@@ -2343,12 +2355,12 @@ function TaskCardView(props) {
|
|
|
2343
2355
|
: taskComplete
|
|
2344
2356
|
? "main complete"
|
|
2345
2357
|
: "main" },
|
|
2346
|
-
index.h("div", { class: "container", "data-subdue": taskComplete || taskUnavailable },
|
|
2358
|
+
index.h("div", { class: "container", part: "sqm-card-container", "data-subdue": taskComplete || taskUnavailable },
|
|
2347
2359
|
index.h("div", { class: sheet$8.classes.Header, style: { opacity: taskComplete || taskUnavailable ? "0.45" : "1" } }, states.loading ? (index.h("sl-skeleton", { style: { width: "22%", margin: "0" } })) : (index.h("div", null,
|
|
2348
2360
|
showComplete && (index.h("span", { class: taskUnavailable ? "icon neutral" : "icon" }, taskComplete ? checkmark_filled$1 : checkmark_circle$1)),
|
|
2349
|
-
index.h("span", { class: "value" }, content.rewardAmount),
|
|
2350
|
-
index.h("span", { class: "text" }, content.rewardUnit)))),
|
|
2351
|
-
states.loading ? (index.h("sl-skeleton", { style: { width: "42%", margin: "var(--sl-spacing-medium) 0" } })) : (index.h("div", { class: "title", style: {
|
|
2361
|
+
index.h("span", { part: "sqm-value", class: "value" }, content.rewardAmount),
|
|
2362
|
+
index.h("span", { part: "sqm-unit", class: "text" }, content.rewardUnit)))),
|
|
2363
|
+
states.loading ? (index.h("sl-skeleton", { style: { width: "42%", margin: "var(--sl-spacing-medium) 0" } })) : (index.h("div", { class: "title", part: "sqm-title", style: {
|
|
2352
2364
|
marginBottom: !content.description
|
|
2353
2365
|
? content.steps
|
|
2354
2366
|
? "var(--sl-spacing-x-large)"
|
|
@@ -2389,7 +2401,7 @@ function TaskCardView(props) {
|
|
|
2389
2401
|
.setLocale(utils.luxonLocale(states.locale))
|
|
2390
2402
|
.toLocaleString(luxon.luxon.DateTime.DATETIME_MED),
|
|
2391
2403
|
})))),
|
|
2392
|
-
index.h("sl-button", { class: taskUnavailable
|
|
2404
|
+
index.h("sl-button", { exportparts: "base: task-card-button", id: "sl-button", class: taskUnavailable
|
|
2393
2405
|
? "action neutral"
|
|
2394
2406
|
: taskComplete
|
|
2395
2407
|
? "action disabled"
|
|
@@ -3250,7 +3262,7 @@ function RewardExchangeView(props) {
|
|
|
3250
3262
|
})),
|
|
3251
3263
|
(data === null || data === void 0 ? void 0 : data.fuelTankCode) && (index.h("div", { class: "promo" },
|
|
3252
3264
|
states.content.text.promoCode,
|
|
3253
|
-
index.h(
|
|
3265
|
+
index.h(CopyTextView, { copyString: data.fuelTankCode, tooltiptext: (_f = states === null || states === void 0 ? void 0 : states.content) === null || _f === void 0 ? void 0 : _f.text.tooltipText, open: states.open, onClick: callbacks.copyFuelTankCode }))),
|
|
3254
3266
|
index.h("div", { class: sheet$d.classes.Button },
|
|
3255
3267
|
index.h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
|
|
3256
3268
|
}
|
|
@@ -3728,7 +3740,7 @@ function CardFeedView(props, children) {
|
|
|
3728
3740
|
index.h("style", { type: "text/css" },
|
|
3729
3741
|
styleString,
|
|
3730
3742
|
vanillaStyle),
|
|
3731
|
-
index.h("div", { class: sheet.classes.Container }, children)));
|
|
3743
|
+
index.h("div", { class: sheet.classes.Container, part: "sqm-base" }, children)));
|
|
3732
3744
|
}
|
|
3733
3745
|
|
|
3734
3746
|
function t(t,n,r){return Math.min(Math.max(t,r),n)}class n extends Error{constructor(t){super(`Failed to parse color: "${t}"`);}}function r(r){if("string"!=typeof r)throw new n(r);if("transparent"===r.trim().toLowerCase())return [0,0,0,0];let e=r.trim();e=u.test(r)?function(t){const r=t.toLowerCase().trim(),e=o[function(t){let n=5381,r=t.length;for(;r;)n=33*n^t.charCodeAt(--r);return (n>>>0)%2341}(r)];if(!e)throw new n(t);return `#${e}`}(r):r;const f=s.exec(e);if(f){const t=Array.from(f).slice(1);return [...t.slice(0,3).map(t=>parseInt(_(t,2),16)),parseInt(_(t[3]||"f",2),16)/255]}const p=i.exec(e);if(p){const t=Array.from(p).slice(1);return [...t.slice(0,3).map(t=>parseInt(t,16)),parseInt(t[3]||"ff",16)/255]}const z=a.exec(e);if(z){const t=Array.from(z).slice(1);return [...t.slice(0,3).map(t=>parseInt(t,10)),parseFloat(t[3]||"1")]}const h=c.exec(e);if(h){const[e,o,_,s]=Array.from(h).slice(1).map(parseFloat);if(t(0,100,o)!==o)throw new n(r);if(t(0,100,_)!==_)throw new n(r);return [...l(e,o,_),s||1]}throw new n(r)}const e=t=>parseInt(t.replace(/_/g,""),36),o="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((t,n)=>{const r=e(n.substring(0,3)),o=e(n.substring(3)).toString(16);let _="";for(let t=0;t<6-o.length;t++)_+="0";return t[r]=`${_}${o}`,t},{}),_=(t,n)=>Array.from(Array(n)).map(()=>t).join(""),s=new RegExp(`^#${_("([a-f0-9])",3)}([a-f0-9])?$`,"i"),i=new RegExp(`^#${_("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),a=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${_(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),c=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,u=/^[a-z]+$/i,f=t=>Math.round(255*t),l=(t,n,r)=>{let e=r/100;if(0===n)return [e,e,e].map(f);const o=(t%360+360)%360/60,_=(1-Math.abs(2*e-1))*(n/100),s=_*(1-Math.abs(o%2-1));let i=0,a=0,c=0;o>=0&&o<1?(i=_,a=s):o>=1&&o<2?(i=s,a=_):o>=2&&o<3?(a=_,c=s):o>=3&&o<4?(a=s,c=_):o>=4&&o<5?(i=s,c=_):o>=5&&o<6&&(i=_,c=s);const u=e-_/2;return [i+u,a+u,c+u].map(f)};function p(t){const[n,e,o,_]=r(t).map((t,n)=>3===n?t:t/255),s=Math.max(n,e,o),i=Math.min(n,e,o),a=(s+i)/2;if(s===i)return [0,0,a,_];const c=s-i;return [60*(n===s?(e-o)/c+(e<o?6:0):e===s?(o-n)/c+2:(n-e)/c+4),a>.5?c/(2-s-i):c/(s+i),a,_]}function z(n,r,e,o){return `hsla(${(n%360).toFixed()}, ${t(0,100,100*r).toFixed()}%, ${t(0,100,100*e).toFixed()}%, ${parseFloat(t(0,1,o).toFixed(3))})`}
|
|
@@ -3819,6 +3831,7 @@ const ShadowViewAddon = ({ story }, children) => {
|
|
|
3819
3831
|
exports.BigStatView = BigStatView;
|
|
3820
3832
|
exports.CardFeedView = CardFeedView;
|
|
3821
3833
|
exports.CheckboxFieldView = CheckboxFieldView;
|
|
3834
|
+
exports.CopyTextView = CopyTextView;
|
|
3822
3835
|
exports.DropdownFieldView = DropdownFieldView;
|
|
3823
3836
|
exports.EditProfileView = EditProfileView;
|
|
3824
3837
|
exports.InputFieldView = InputFieldView;
|
|
@@ -3833,7 +3846,6 @@ exports.ReferralIframeView = ReferralIframeView;
|
|
|
3833
3846
|
exports.RewardExchangeView = RewardExchangeView;
|
|
3834
3847
|
exports.ShadowViewAddon = ShadowViewAddon;
|
|
3835
3848
|
exports.ShareButtonView = ShareButtonView;
|
|
3836
|
-
exports.ShareLinkView = ShareLinkView;
|
|
3837
3849
|
exports.StatContainerView = StatContainerView;
|
|
3838
3850
|
exports.TaskCardView = TaskCardView;
|
|
3839
3851
|
exports.autoColorScaleCss = autoColorScaleCss;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
4
|
-
const index_module = require('./index.module-
|
|
3
|
+
const stencilHooks_module = require('./stencil-hooks.module-5344b631.js');
|
|
4
|
+
const index_module = require('./index.module-30d74cb5.js');
|
|
5
5
|
|
|
6
6
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
7
7
|
__assign = Object.assign || function(t) {
|
|
@@ -11998,6 +11998,157 @@ function parse(input, opts) {
|
|
|
11998
11998
|
return els;
|
|
11999
11999
|
}
|
|
12000
12000
|
|
|
12001
|
+
//
|
|
12002
|
+
// Main
|
|
12003
|
+
//
|
|
12004
|
+
|
|
12005
|
+
function memoize (fn, options) {
|
|
12006
|
+
var cache = options && options.cache
|
|
12007
|
+
? options.cache
|
|
12008
|
+
: cacheDefault;
|
|
12009
|
+
|
|
12010
|
+
var serializer = options && options.serializer
|
|
12011
|
+
? options.serializer
|
|
12012
|
+
: serializerDefault;
|
|
12013
|
+
|
|
12014
|
+
var strategy = options && options.strategy
|
|
12015
|
+
? options.strategy
|
|
12016
|
+
: strategyDefault;
|
|
12017
|
+
|
|
12018
|
+
return strategy(fn, {
|
|
12019
|
+
cache: cache,
|
|
12020
|
+
serializer: serializer
|
|
12021
|
+
})
|
|
12022
|
+
}
|
|
12023
|
+
|
|
12024
|
+
//
|
|
12025
|
+
// Strategy
|
|
12026
|
+
//
|
|
12027
|
+
|
|
12028
|
+
function isPrimitive (value) {
|
|
12029
|
+
return value == null || typeof value === 'number' || typeof value === 'boolean' // || typeof value === "string" 'unsafe' primitive for our needs
|
|
12030
|
+
}
|
|
12031
|
+
|
|
12032
|
+
function monadic (fn, cache, serializer, arg) {
|
|
12033
|
+
var cacheKey = isPrimitive(arg) ? arg : serializer(arg);
|
|
12034
|
+
|
|
12035
|
+
var computedValue = cache.get(cacheKey);
|
|
12036
|
+
if (typeof computedValue === 'undefined') {
|
|
12037
|
+
computedValue = fn.call(this, arg);
|
|
12038
|
+
cache.set(cacheKey, computedValue);
|
|
12039
|
+
}
|
|
12040
|
+
|
|
12041
|
+
return computedValue
|
|
12042
|
+
}
|
|
12043
|
+
|
|
12044
|
+
function variadic (fn, cache, serializer) {
|
|
12045
|
+
var args = Array.prototype.slice.call(arguments, 3);
|
|
12046
|
+
var cacheKey = serializer(args);
|
|
12047
|
+
|
|
12048
|
+
var computedValue = cache.get(cacheKey);
|
|
12049
|
+
if (typeof computedValue === 'undefined') {
|
|
12050
|
+
computedValue = fn.apply(this, args);
|
|
12051
|
+
cache.set(cacheKey, computedValue);
|
|
12052
|
+
}
|
|
12053
|
+
|
|
12054
|
+
return computedValue
|
|
12055
|
+
}
|
|
12056
|
+
|
|
12057
|
+
function assemble (fn, context, strategy, cache, serialize) {
|
|
12058
|
+
return strategy.bind(
|
|
12059
|
+
context,
|
|
12060
|
+
fn,
|
|
12061
|
+
cache,
|
|
12062
|
+
serialize
|
|
12063
|
+
)
|
|
12064
|
+
}
|
|
12065
|
+
|
|
12066
|
+
function strategyDefault (fn, options) {
|
|
12067
|
+
var strategy = fn.length === 1 ? monadic : variadic;
|
|
12068
|
+
|
|
12069
|
+
return assemble(
|
|
12070
|
+
fn,
|
|
12071
|
+
this,
|
|
12072
|
+
strategy,
|
|
12073
|
+
options.cache.create(),
|
|
12074
|
+
options.serializer
|
|
12075
|
+
)
|
|
12076
|
+
}
|
|
12077
|
+
|
|
12078
|
+
function strategyVariadic (fn, options) {
|
|
12079
|
+
var strategy = variadic;
|
|
12080
|
+
|
|
12081
|
+
return assemble(
|
|
12082
|
+
fn,
|
|
12083
|
+
this,
|
|
12084
|
+
strategy,
|
|
12085
|
+
options.cache.create(),
|
|
12086
|
+
options.serializer
|
|
12087
|
+
)
|
|
12088
|
+
}
|
|
12089
|
+
|
|
12090
|
+
function strategyMonadic (fn, options) {
|
|
12091
|
+
var strategy = monadic;
|
|
12092
|
+
|
|
12093
|
+
return assemble(
|
|
12094
|
+
fn,
|
|
12095
|
+
this,
|
|
12096
|
+
strategy,
|
|
12097
|
+
options.cache.create(),
|
|
12098
|
+
options.serializer
|
|
12099
|
+
)
|
|
12100
|
+
}
|
|
12101
|
+
|
|
12102
|
+
//
|
|
12103
|
+
// Serializer
|
|
12104
|
+
//
|
|
12105
|
+
|
|
12106
|
+
function serializerDefault () {
|
|
12107
|
+
return JSON.stringify(arguments)
|
|
12108
|
+
}
|
|
12109
|
+
|
|
12110
|
+
//
|
|
12111
|
+
// Cache
|
|
12112
|
+
//
|
|
12113
|
+
|
|
12114
|
+
function ObjectWithoutPrototypeCache () {
|
|
12115
|
+
this.cache = Object.create(null);
|
|
12116
|
+
}
|
|
12117
|
+
|
|
12118
|
+
ObjectWithoutPrototypeCache.prototype.has = function (key) {
|
|
12119
|
+
return (key in this.cache)
|
|
12120
|
+
};
|
|
12121
|
+
|
|
12122
|
+
ObjectWithoutPrototypeCache.prototype.get = function (key) {
|
|
12123
|
+
return this.cache[key]
|
|
12124
|
+
};
|
|
12125
|
+
|
|
12126
|
+
ObjectWithoutPrototypeCache.prototype.set = function (key, value) {
|
|
12127
|
+
this.cache[key] = value;
|
|
12128
|
+
};
|
|
12129
|
+
|
|
12130
|
+
var cacheDefault = {
|
|
12131
|
+
create: function create () {
|
|
12132
|
+
return new ObjectWithoutPrototypeCache()
|
|
12133
|
+
}
|
|
12134
|
+
};
|
|
12135
|
+
|
|
12136
|
+
//
|
|
12137
|
+
// API
|
|
12138
|
+
//
|
|
12139
|
+
|
|
12140
|
+
var src = memoize;
|
|
12141
|
+
var strategies = {
|
|
12142
|
+
variadic: strategyVariadic,
|
|
12143
|
+
monadic: strategyMonadic
|
|
12144
|
+
};
|
|
12145
|
+
src.strategies = strategies;
|
|
12146
|
+
|
|
12147
|
+
const memoize$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(null), src, {
|
|
12148
|
+
'default': src,
|
|
12149
|
+
strategies: strategies
|
|
12150
|
+
}));
|
|
12151
|
+
|
|
12001
12152
|
var ErrorCode;
|
|
12002
12153
|
(function (ErrorCode) {
|
|
12003
12154
|
// When we have a placeholder but no value to format
|
|
@@ -12260,7 +12411,7 @@ function createFastMemoizeCache(store) {
|
|
|
12260
12411
|
};
|
|
12261
12412
|
}
|
|
12262
12413
|
// @ts-ignore this is to deal with rollup's default import shenanigans
|
|
12263
|
-
var _memoizeIntl =
|
|
12414
|
+
var _memoizeIntl = src || memoize$1;
|
|
12264
12415
|
var memoizeIntl = _memoizeIntl;
|
|
12265
12416
|
function createDefaultFormatters(cache) {
|
|
12266
12417
|
if (cache === void 0) { cache = {
|
|
@@ -12552,7 +12703,7 @@ function createFastMemoizeCache$1(store) {
|
|
|
12552
12703
|
};
|
|
12553
12704
|
}
|
|
12554
12705
|
// @ts-ignore this is to deal with rollup's default import shenanigans
|
|
12555
|
-
var _memoizeIntl$1 =
|
|
12706
|
+
var _memoizeIntl$1 = src || memoize$1;
|
|
12556
12707
|
var memoizeIntl$1 = _memoizeIntl$1;
|
|
12557
12708
|
/**
|
|
12558
12709
|
* Create intl formatters and populate cache
|
|
@@ -13531,7 +13682,7 @@ var TemplateResult = class {
|
|
|
13531
13682
|
* subject to an additional IP rights grant found at
|
|
13532
13683
|
* http://polymer.github.io/PATENTS.txt
|
|
13533
13684
|
*/
|
|
13534
|
-
var isPrimitive = (value) => {
|
|
13685
|
+
var isPrimitive$1 = (value) => {
|
|
13535
13686
|
return value === null || !(typeof value === "object" || typeof value === "function");
|
|
13536
13687
|
};
|
|
13537
13688
|
var isIterable = (value) => {
|
|
@@ -13570,7 +13721,7 @@ var AttributeCommitter = class {
|
|
|
13570
13721
|
const part = parts2[i];
|
|
13571
13722
|
if (part !== void 0) {
|
|
13572
13723
|
const v = part.value;
|
|
13573
|
-
if (isPrimitive(v) || !isIterable(v)) {
|
|
13724
|
+
if (isPrimitive$1(v) || !isIterable(v)) {
|
|
13574
13725
|
text += typeof v === "string" ? v : String(v);
|
|
13575
13726
|
} else {
|
|
13576
13727
|
for (const t of v) {
|
|
@@ -13595,7 +13746,7 @@ var AttributePart = class {
|
|
|
13595
13746
|
this.committer = committer;
|
|
13596
13747
|
}
|
|
13597
13748
|
setValue(value) {
|
|
13598
|
-
if (value !== noChange && (!isPrimitive(value) || value !== this.value)) {
|
|
13749
|
+
if (value !== noChange && (!isPrimitive$1(value) || value !== this.value)) {
|
|
13599
13750
|
this.value = value;
|
|
13600
13751
|
if (!isDirective(value)) {
|
|
13601
13752
|
this.committer.dirty = true;
|
|
@@ -13653,7 +13804,7 @@ var NodePart = class {
|
|
|
13653
13804
|
if (value === noChange) {
|
|
13654
13805
|
return;
|
|
13655
13806
|
}
|
|
13656
|
-
if (isPrimitive(value)) {
|
|
13807
|
+
if (isPrimitive$1(value)) {
|
|
13657
13808
|
if (value !== this.value) {
|
|
13658
13809
|
this.__commitText(value);
|
|
13659
13810
|
}
|
|
@@ -18481,7 +18632,7 @@ var unsafeHTML = directive((value) => (part) => {
|
|
|
18481
18632
|
throw new Error("unsafeHTML can only be used in text bindings");
|
|
18482
18633
|
}
|
|
18483
18634
|
const previousValue = previousValues$1.get(part);
|
|
18484
|
-
if (previousValue !== void 0 && isPrimitive(value) && value === previousValue.value && part.value === previousValue.fragment) {
|
|
18635
|
+
if (previousValue !== void 0 && isPrimitive$1(value) && value === previousValue.value && part.value === previousValue.fragment) {
|
|
18485
18636
|
return;
|
|
18486
18637
|
}
|
|
18487
18638
|
const template = document.createElement("template");
|
|
@@ -20160,7 +20311,7 @@ var unsafeSVG = directive((value) => (part) => {
|
|
|
20160
20311
|
throw new Error("unsafeSVG can only be used in text bindings");
|
|
20161
20312
|
}
|
|
20162
20313
|
const previousValue = previousValues$2.get(part);
|
|
20163
|
-
if (previousValue !== void 0 && isPrimitive(value) && value === previousValue.value && part.value === previousValue.fragment) {
|
|
20314
|
+
if (previousValue !== void 0 && isPrimitive$1(value) && value === previousValue.value && part.value === previousValue.fragment) {
|
|
20164
20315
|
return;
|
|
20165
20316
|
}
|
|
20166
20317
|
const template = document.createElement("template");
|