@saasquatch/mint-components 1.5.0-49 → 1.5.0-52
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/{AutoColor-a489ed67.js → AutoColor-db901e98.js} +101 -105
- package/dist/cjs/{GenericTableView-f9bd3b19.js → GenericTableView-34662639.js} +5 -6
- package/dist/cjs/{JSS-24a85193.js → JSS-c65a40f1.js} +39 -39
- package/dist/cjs/{global-32bf222f.js → global-08276663.js} +589 -589
- package/dist/cjs/{index-d8fa5d8e.js → index-b0129cd6.js} +104 -181
- package/dist/cjs/{index.module-0f10a4c4.js → index.module-54724339.js} +6392 -6392
- package/dist/cjs/loader.cjs.js +7 -7
- package/dist/cjs/{luxon-751f2e1c.js → luxon-59ca7d19.js} +2 -2
- package/dist/cjs/mint-components.cjs.js +9 -9
- package/dist/cjs/{sqm-asset-card-view-0764beab.js → sqm-asset-card-view-d9ac6a95.js} +2 -2
- package/dist/cjs/sqm-asset-card.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-big-stat-view-37e341c1.js → sqm-big-stat-view-e5dc0877.js} +2 -2
- package/dist/cjs/sqm-big-stat.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-brand_26.cjs.entry.js → sqm-brand_27.cjs.entry.js} +328 -251
- package/dist/cjs/sqm-form-message.cjs.entry.js +3 -3
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +10 -10
- package/dist/cjs/{sqm-hero-view-6706134d.js → sqm-hero-view-a13795c0.js} +4 -4
- package/dist/cjs/sqm-hero.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-leaderboard-rank-view-5e2bcad9.js → sqm-leaderboard-rank-view-35015d30.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +14 -15
- package/dist/cjs/sqm-leaderboard.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-name-fields-view-c684114f.js → sqm-name-fields-view-c95e4768.js} +10 -12
- package/dist/cjs/sqm-name-fields.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-navigation-sidebar-item-view-7f69e118.js → sqm-navigation-sidebar-item-view-da648fbc.js} +4 -4
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +11 -11
- package/dist/cjs/{sqm-navigation-sidebar-view-b53fad32.js → sqm-navigation-sidebar-view-36632c96.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +5 -5
- package/dist/cjs/sqm-password-field.cjs.entry.js +26 -27
- package/dist/cjs/sqm-popup-container.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-portal-container-view-a78ab7ca.js → sqm-portal-container-view-185b4bd0.js} +2 -2
- package/dist/cjs/{sqm-portal-email-verification-view-2a783b13.js → sqm-portal-email-verification-view-991a6739.js} +4 -4
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +13 -13
- package/dist/cjs/{sqm-portal-footer-view-ff16e344.js → sqm-portal-footer-view-266e5a7d.js} +3 -3
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-portal-forgot-password-view-036e5d76.js → sqm-portal-forgot-password-view-10c0b54f.js} +3 -3
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +13 -13
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +8 -8
- package/dist/cjs/{sqm-portal-profile-view-0c31ff46.js → sqm-portal-profile-view-fda5946f.js} +10 -13
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +16 -16
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +11 -11
- package/dist/cjs/{sqm-portal-reset-password-view-c2ca03ef.js → sqm-portal-reset-password-view-1fdc957e.js} +3 -3
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +15 -15
- package/dist/cjs/{sqm-portal-section-view-073d9dda.js → sqm-portal-section-view-3b6c990e.js} +2 -2
- package/dist/cjs/{sqm-portal-verify-email-view-1fa62a17.js → sqm-portal-verify-email-view-4c78e231.js} +3 -3
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +14 -14
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +31 -31
- package/dist/cjs/sqm-refresh-button.cjs.entry.js +7 -7
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +26 -27
- package/dist/cjs/sqm-route.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-stat-container-view-fd6e8f8d.js → sqm-stat-container-view-5b2db929.js} +2 -18
- package/dist/cjs/sqm-stat-container.cjs.entry.js +6 -6
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +642 -599
- package/dist/cjs/sqm-table-cell_3.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-text-span-view-dd99633a.js → sqm-text-span-view-f101dedf.js} +2 -2
- package/dist/cjs/sqm-text-span.cjs.entry.js +5 -5
- package/dist/cjs/sqm-titled-section.cjs.entry.js +6 -6
- package/dist/{esm/stencil-hooks.module-1bcbec4f.js → cjs/stencil-hooks.module-87a1f4f7.js} +58 -40
- package/dist/cjs/{use-callback-867e51f6.js → use-callback-e754042f.js} +1 -1
- package/dist/cjs/{useChildElements-6f8aa7de.js → useChildElements-4bc9b219.js} +3 -3
- package/dist/cjs/{useDemoBigStat-1fa1ca6a.js → useDemoBigStat-42fa7a69.js} +5 -5
- package/dist/cjs/{useLeaderboard-b712d583.js → useLeaderboard-6110cd94.js} +5 -5
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/sqm-edit-profile/useEditProfile.js +3 -4
- package/dist/collection/components/sqm-image/Image.stories.js +25 -0
- package/dist/collection/components/sqm-image/sqm-image-view.js +32 -0
- package/dist/collection/components/sqm-image/sqm-image.js +137 -0
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +1 -1
- package/dist/collection/components/sqm-leaderboard-rank/useLeaderboardRank.js +3 -4
- package/dist/collection/components/sqm-media/HeroImage.stories.js +37 -0
- package/dist/collection/components/sqm-media/{sqm-media-view.js → sqm-hero-image-view.js} +26 -18
- package/dist/collection/components/sqm-media/{sqm-media.js → sqm-hero-image.js} +77 -38
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +8 -10
- package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +4 -5
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +5 -8
- package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +10 -12
- package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +1 -1
- package/dist/collection/components/sqm-referral-card/sqm-timeline-entry.js +47 -16
- package/dist/collection/components/sqm-referral-card/sqm-timeline.js +21 -16
- package/dist/collection/components/sqm-referral-table/UseReferralTable.stories.js +0 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +2 -2
- package/dist/collection/components/sqm-refresh-button/sqm-refresh-button.js +1 -3
- package/dist/collection/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.js +0 -3
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +1 -2
- package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +0 -2
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +0 -1
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table-view.js +3 -4
- package/dist/collection/components/sqm-share-button/useShareButton.js +1 -2
- package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +0 -16
- package/dist/collection/components/sqm-stencilbook/AutoColor.js +1 -1
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -2
- package/dist/collection/components/sqm-task-card/TaskCard.stories.js +2 -2
- package/dist/collection/tables/GenericTableView.js +3 -4
- package/dist/esm/{AutoColor-9281c94b.js → AutoColor-5d891803.js} +101 -105
- package/dist/esm/{GenericTableView-e4257466.js → GenericTableView-5de898c3.js} +5 -6
- package/dist/esm/{JSS-df9ea8a0.js → JSS-96eeab98.js} +39 -39
- package/dist/esm/{global-cc738e38.js → global-6bd9287e.js} +589 -589
- package/dist/esm/{index-2c5a6587.js → index-17b4da69.js} +104 -181
- package/dist/esm/{index.module-983975d9.js → index.module-ec3dcc82.js} +6374 -6374
- package/dist/esm/loader.js +7 -7
- package/dist/esm/{luxon-afa282c2.js → luxon-5fa22651.js} +2 -2
- package/dist/esm/mint-components.js +9 -9
- package/dist/esm/{sqm-asset-card-view-809b35ce.js → sqm-asset-card-view-f9ca5345.js} +2 -2
- package/dist/esm/sqm-asset-card.entry.js +9 -9
- package/dist/esm/{sqm-big-stat-view-3adf4ef2.js → sqm-big-stat-view-309f7c1f.js} +2 -2
- package/dist/esm/sqm-big-stat.entry.js +9 -9
- package/dist/esm/{sqm-brand_26.entry.js → sqm-brand_27.entry.js} +327 -251
- package/dist/esm/sqm-form-message.entry.js +3 -3
- package/dist/esm/sqm-graphql-client-provider.entry.js +10 -10
- package/dist/esm/{sqm-hero-view-b30e42f0.js → sqm-hero-view-190bc812.js} +4 -4
- package/dist/esm/sqm-hero.entry.js +7 -7
- package/dist/esm/{sqm-leaderboard-rank-view-91a35c42.js → sqm-leaderboard-rank-view-da91f5f3.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +14 -15
- package/dist/esm/sqm-leaderboard.entry.js +9 -9
- package/dist/esm/{sqm-name-fields-view-77895fa8.js → sqm-name-fields-view-69b1583f.js} +10 -12
- package/dist/esm/sqm-name-fields.entry.js +9 -9
- package/dist/esm/{sqm-navigation-sidebar-item-view-3c21b3ee.js → sqm-navigation-sidebar-item-view-a6f7f96c.js} +4 -4
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +11 -11
- package/dist/esm/{sqm-navigation-sidebar-view-1c50483e.js → sqm-navigation-sidebar-view-816558e3.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar.entry.js +5 -5
- package/dist/esm/sqm-password-field.entry.js +26 -27
- package/dist/esm/sqm-popup-container.entry.js +9 -9
- package/dist/esm/{sqm-portal-container-view-72c8b457.js → sqm-portal-container-view-cf79ed90.js} +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-7685db9c.js → sqm-portal-email-verification-view-96c1f91b.js} +4 -4
- package/dist/esm/sqm-portal-email-verification.entry.js +13 -13
- package/dist/esm/{sqm-portal-footer-view-b344a6ad.js → sqm-portal-footer-view-3a7dfbfc.js} +3 -3
- package/dist/esm/sqm-portal-footer.entry.js +9 -9
- package/dist/esm/{sqm-portal-forgot-password-view-f7f24742.js → sqm-portal-forgot-password-view-fa088f83.js} +3 -3
- package/dist/esm/sqm-portal-forgot-password.entry.js +13 -13
- package/dist/esm/sqm-portal-logout.entry.js +8 -8
- package/dist/esm/{sqm-portal-profile-view-3da23184.js → sqm-portal-profile-view-36488558.js} +10 -13
- package/dist/esm/sqm-portal-profile.entry.js +16 -16
- package/dist/esm/sqm-portal-protected-route.entry.js +11 -11
- package/dist/esm/{sqm-portal-reset-password-view-f3017d72.js → sqm-portal-reset-password-view-73e14282.js} +3 -3
- package/dist/esm/sqm-portal-reset-password.entry.js +15 -15
- package/dist/esm/{sqm-portal-section-view-5a3d3829.js → sqm-portal-section-view-d3098f7f.js} +2 -2
- package/dist/esm/{sqm-portal-verify-email-view-329fdc3b.js → sqm-portal-verify-email-view-cbf1cfdc.js} +3 -3
- package/dist/esm/sqm-portal-verify-email.entry.js +14 -14
- package/dist/esm/sqm-referral-table_11.entry.js +31 -31
- package/dist/esm/sqm-refresh-button.entry.js +7 -7
- package/dist/esm/sqm-rewards-table_9.entry.js +26 -27
- package/dist/esm/sqm-route.entry.js +2 -2
- package/dist/esm/{sqm-stat-container-view-02b82222.js → sqm-stat-container-view-8a565c5a.js} +2 -18
- package/dist/esm/sqm-stat-container.entry.js +6 -6
- package/dist/esm/sqm-stencilbook.entry.js +642 -599
- package/dist/esm/sqm-table-cell_3.entry.js +5 -5
- package/dist/esm/{sqm-text-span-view-be532a94.js → sqm-text-span-view-7e61c95c.js} +2 -2
- package/dist/esm/sqm-text-span.entry.js +5 -5
- package/dist/esm/sqm-titled-section.entry.js +6 -6
- package/dist/{cjs/stencil-hooks.module-23a5a83a.js → esm/stencil-hooks.module-2f159754.js} +40 -58
- package/dist/esm/{use-callback-cfeaefe1.js → use-callback-d8ef4b5d.js} +1 -1
- package/dist/esm/{useChildElements-9936fb9a.js → useChildElements-c11d6189.js} +3 -3
- package/dist/esm/{useDemoBigStat-5450ce4c.js → useDemoBigStat-e2295035.js} +5 -5
- package/dist/esm/{useLeaderboard-c0017437.js → useLeaderboard-5d875f53.js} +5 -5
- package/dist/esm-es5/AutoColor-5d891803.js +1 -0
- package/dist/esm-es5/{GenericTableView-e4257466.js → GenericTableView-5de898c3.js} +1 -1
- package/dist/esm-es5/JSS-96eeab98.js +8 -0
- package/dist/esm-es5/global-6bd9287e.js +285 -0
- package/dist/esm-es5/index-17b4da69.js +1 -0
- package/dist/esm-es5/index.module-ec3dcc82.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-afa282c2.js → luxon-5fa22651.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{sqm-asset-card-view-809b35ce.js → sqm-asset-card-view-f9ca5345.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/{sqm-big-stat-view-3adf4ef2.js → sqm-big-stat-view-309f7c1f.js} +1 -1
- package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
- package/dist/esm-es5/sqm-brand_27.entry.js +1 -0
- 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-hero-view-b30e42f0.js → sqm-hero-view-190bc812.js} +1 -1
- package/dist/esm-es5/sqm-hero.entry.js +1 -1
- 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-leaderboard.entry.js +1 -1
- package/dist/esm-es5/{sqm-name-fields-view-77895fa8.js → sqm-name-fields-view-69b1583f.js} +1 -1
- package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-3c21b3ee.js → sqm-navigation-sidebar-item-view-a6f7f96c.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-view-1c50483e.js → sqm-navigation-sidebar-view-816558e3.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-container-view-72c8b457.js → sqm-portal-container-view-cf79ed90.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-7685db9c.js → sqm-portal-email-verification-view-96c1f91b.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-b344a6ad.js → sqm-portal-footer-view-3a7dfbfc.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-f7f24742.js → sqm-portal-forgot-password-view-fa088f83.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-3da23184.js → sqm-portal-profile-view-36488558.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-reset-password-view-f3017d72.js → sqm-portal-reset-password-view-73e14282.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-section-view-5a3d3829.js → sqm-portal-section-view-d3098f7f.js} +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-329fdc3b.js → sqm-portal-verify-email-view-cbf1cfdc.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-refresh-button.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-route.entry.js +1 -1
- package/dist/esm-es5/{sqm-stat-container-view-02b82222.js → sqm-stat-container-view-8a565c5a.js} +1 -1
- package/dist/esm-es5/sqm-stat-container.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-table-cell_3.entry.js +1 -1
- package/dist/esm-es5/{sqm-text-span-view-be532a94.js → sqm-text-span-view-7e61c95c.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/sqm-titled-section.entry.js +1 -1
- package/dist/esm-es5/stencil-hooks.module-2f159754.js +53 -0
- package/dist/esm-es5/use-callback-d8ef4b5d.js +1 -0
- package/dist/esm-es5/useChildElements-c11d6189.js +1 -0
- package/dist/esm-es5/useDemoBigStat-e2295035.js +1 -0
- package/dist/esm-es5/useLeaderboard-5d875f53.js +1 -0
- package/dist/loader/index.d.ts +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-09357f10.system.entry.js → p-01748c80.system.entry.js} +1 -1
- package/dist/mint-components/p-023dcaee.js +1 -0
- package/dist/mint-components/{p-64d2bfb1.system.entry.js → p-067cf6da.system.entry.js} +1 -1
- package/dist/mint-components/p-0c19f830.entry.js +1 -0
- package/dist/mint-components/{p-0e97beb3.js → p-0e7e10b6.js} +1 -1
- package/dist/mint-components/p-1288be55.entry.js +1 -0
- package/dist/mint-components/{p-c4cedfef.system.entry.js → p-136e2028.system.entry.js} +1 -1
- package/dist/mint-components/{p-b138c9e4.system.js → p-16effd39.system.js} +1 -1
- package/dist/mint-components/{p-740a45df.js → p-179988b5.js} +1 -1
- package/dist/mint-components/{p-38045cb3.system.js → p-1959da16.system.js} +1 -1
- package/dist/mint-components/{p-408f48ec.system.entry.js → p-197d1027.system.entry.js} +1 -1
- package/dist/mint-components/{p-6e2e549a.js → p-1d1e9197.js} +1 -1
- package/dist/mint-components/p-204fd08c.js +1 -0
- package/dist/mint-components/p-220181cd.system.entry.js +1 -0
- package/dist/mint-components/p-232db563.system.entry.js +1 -0
- package/dist/mint-components/{p-ef4e8230.system.entry.js → p-2454f30a.system.entry.js} +1 -1
- package/dist/mint-components/p-24724b6b.entry.js +13 -0
- package/dist/mint-components/p-27e04aaf.entry.js +1 -0
- package/dist/mint-components/{p-96103ab1.system.js → p-2c49c7a8.system.js} +1 -1
- package/dist/mint-components/p-348461ec.system.entry.js +1 -0
- package/dist/mint-components/{p-747dc08d.js → p-373fa002.js} +1 -1
- package/dist/mint-components/p-3b184c32.js +1 -0
- package/dist/mint-components/{p-1ef9bc8f.system.js → p-3bbb90a9.system.js} +1 -1
- package/dist/mint-components/{p-4c5581b9.js → p-3dc2850c.js} +1 -1
- package/dist/mint-components/{p-e52d6c0f.js → p-3e556042.js} +1 -1
- package/dist/mint-components/{p-65d669e7.system.entry.js → p-4275c957.system.entry.js} +1 -1
- package/dist/mint-components/{p-c5d104d8.system.js → p-4279da4b.system.js} +1 -1
- package/dist/mint-components/{p-fc103049.system.js → p-443c133e.system.js} +1 -1
- package/dist/mint-components/p-48abcb89.entry.js +86 -0
- package/dist/mint-components/p-49c9ff69.entry.js +1 -0
- package/dist/mint-components/{p-eba0f8b5.js → p-4a1b7d35.js} +1 -1
- package/dist/mint-components/p-4c21835b.entry.js +1 -0
- package/dist/mint-components/p-4e0b9201.system.js +1 -0
- package/dist/mint-components/{p-159a0455.system.entry.js → p-4e8e99bc.system.entry.js} +1 -1
- package/dist/mint-components/{p-79b96b7c.js → p-509e6dc9.js} +4 -4
- package/dist/mint-components/p-5289072a.js +1 -0
- package/dist/mint-components/p-54986541.entry.js +1 -0
- package/dist/mint-components/{p-754c90b6.js → p-54e855a1.js} +1 -1
- package/dist/mint-components/{p-6d1fd7ef.js → p-591de129.js} +1 -1
- package/dist/mint-components/{p-2cf031e5.js → p-5c75acad.js} +1 -1
- package/dist/mint-components/{p-feb4ccf1.system.js → p-5df1d9ae.system.js} +1 -1
- package/dist/mint-components/{p-b094bf1f.system.entry.js → p-5e2b006a.system.entry.js} +1 -1
- package/dist/mint-components/{p-39ba54b0.js → p-61a542ec.js} +1 -1
- package/dist/mint-components/p-62625e22.entry.js +1 -0
- package/dist/mint-components/p-62e49806.system.entry.js +1 -0
- package/dist/mint-components/p-639d3dd3.entry.js +1 -0
- package/dist/mint-components/p-63a6475a.system.entry.js +1 -0
- package/dist/mint-components/{p-73246c5e.js → p-64c3217a.js} +1 -1
- package/dist/mint-components/{p-feea807c.system.js → p-6b43e4cc.system.js} +1 -1
- package/dist/mint-components/{p-a6940c14.system.entry.js → p-6e70be1c.system.entry.js} +1 -1
- package/dist/mint-components/p-6f88ea09.system.js +1 -0
- package/dist/mint-components/p-72a978c8.entry.js +1 -0
- package/dist/mint-components/{p-637a01d0.system.js → p-72c87c04.system.js} +1 -1
- package/dist/mint-components/{p-071fdcfa.js → p-73d5306f.js} +1 -1
- package/dist/mint-components/p-76325d9c.system.entry.js +1 -0
- package/dist/mint-components/{p-80eb9f8a.js → p-7a1ebc00.js} +15 -15
- package/dist/mint-components/{p-720d9f1a.system.entry.js → p-81681ebd.system.entry.js} +1 -1
- package/dist/mint-components/p-871536c7.entry.js +1 -0
- package/dist/mint-components/{p-9fa1fb4e.system.js → p-8bcaafaf.system.js} +1 -1
- package/dist/mint-components/{p-a6a9d6b7.system.entry.js → p-91ab2b0d.system.entry.js} +1 -1
- package/dist/mint-components/{p-efb82cfc.system.js → p-91d119ad.system.js} +1 -1
- package/dist/mint-components/p-9580888c.system.js +53 -0
- package/dist/mint-components/p-96c971fa.entry.js +1 -0
- package/dist/mint-components/p-97f843f9.system.entry.js +1 -0
- package/dist/mint-components/p-98393bf0.entry.js +1 -0
- package/dist/mint-components/{p-e46a4dc4.js → p-9b48d01e.js} +1 -1
- package/dist/mint-components/p-9f215c7f.entry.js +161 -0
- package/dist/mint-components/p-9f65904f.entry.js +1 -0
- package/dist/mint-components/{p-5cc0dc12.system.js → p-a09e3176.system.js} +1 -1
- package/dist/mint-components/p-a674c833.system.entry.js +1 -0
- package/dist/mint-components/p-ac5f63b1.entry.js +33 -0
- package/dist/mint-components/p-ac65007d.js +1 -0
- package/dist/mint-components/p-af5673c4.entry.js +1 -0
- package/dist/mint-components/p-b0c32d15.system.js +1 -0
- package/dist/mint-components/p-b0d6a380.system.js +1 -0
- package/dist/mint-components/p-b0e8c584.system.entry.js +1 -0
- package/dist/mint-components/p-b3201e4c.entry.js +1 -0
- package/dist/mint-components/p-b3735eaf.entry.js +9 -0
- package/dist/mint-components/p-b3af1c6f.js +1 -0
- package/dist/mint-components/p-b69365f5.entry.js +1 -0
- package/dist/mint-components/p-b77bb179.system.js +285 -0
- package/dist/mint-components/p-b7da9a8a.js +42 -0
- package/dist/mint-components/{p-e29935f9.system.js → p-b8434fc0.system.js} +1 -1
- package/dist/mint-components/p-b9974b87.entry.js +1 -0
- package/dist/mint-components/{p-86372145.system.entry.js → p-ba41fde8.system.entry.js} +1 -1
- package/dist/mint-components/{p-80493415.system.entry.js → p-bd0475a2.system.entry.js} +1 -1
- package/dist/mint-components/{p-0ef64931.system.js → p-bf055b6c.system.js} +1 -1
- package/dist/mint-components/{p-1b2b1ba2.js → p-c157f510.js} +3 -3
- package/dist/mint-components/{p-16db729c.system.entry.js → p-c1a47137.system.entry.js} +1 -1
- package/dist/mint-components/{p-1ca5b819.js → p-c2e84199.js} +1 -1
- package/dist/mint-components/p-cb93f2c8.entry.js +1 -0
- package/dist/mint-components/p-cd4037d1.entry.js +1 -0
- package/dist/mint-components/{p-d8e97fb7.system.js → p-ce0ec1c4.system.js} +1 -1
- package/dist/mint-components/p-d10efde1.system.js +1 -0
- package/dist/mint-components/p-d1520098.js +1 -0
- package/dist/mint-components/p-d312db42.entry.js +1 -0
- package/dist/mint-components/{p-d27c4eb5.js → p-d33eb961.js} +1 -1
- package/dist/mint-components/{p-5c4dec0c.system.entry.js → p-d6ef4765.system.entry.js} +1 -1
- package/dist/mint-components/p-dc17de12.entry.js +119 -0
- package/dist/mint-components/p-dcff1a85.entry.js +1 -0
- package/dist/mint-components/{p-6d6791b6.system.js → p-df466813.system.js} +1 -1
- package/dist/mint-components/{p-b81b4ebf.system.js → p-e00e11b1.system.js} +1 -1
- package/dist/mint-components/{p-35a8858e.system.js → p-e0be39d0.system.js} +1 -1
- package/dist/mint-components/{p-83e18382.system.entry.js → p-e1166d9b.system.entry.js} +1 -1
- package/dist/mint-components/{p-6353bf11.entry.js → p-e7b20665.entry.js} +1 -1
- package/dist/mint-components/{p-bb2bc191.system.js → p-ea110693.system.js} +1 -1
- package/dist/mint-components/p-ea197664.js +1 -0
- package/dist/mint-components/p-eb23e1b9.system.entry.js +1 -0
- package/dist/mint-components/{p-8c5bf8ee.system.js → p-eba2e455.system.js} +1 -1
- package/dist/mint-components/p-ef99c411.system.entry.js +1 -0
- package/dist/mint-components/p-f143117c.entry.js +1 -0
- package/dist/mint-components/p-f241ee8a.system.entry.js +1 -0
- package/dist/mint-components/p-f372c8d8.entry.js +1 -0
- package/dist/mint-components/p-f5cba1f7.system.entry.js +1 -0
- package/dist/mint-components/{p-82a02b17.system.js → p-f8d95abc.system.js} +1 -1
- package/dist/mint-components/{p-af859f26.js → p-f9008f86.js} +153 -153
- package/dist/mint-components/{p-4479f753.system.entry.js → p-fb8a587b.system.entry.js} +1 -1
- package/dist/mint-components/p-fe4d9531.system.js +1 -0
- package/dist/mint-components/p-ff17b3a4.system.js +1 -0
- package/dist/types/components/sqm-image/Image.stories.d.ts +11 -0
- package/dist/types/components/sqm-image/sqm-image-view.d.ts +8 -0
- package/dist/types/components/sqm-image/sqm-image.d.ts +31 -0
- package/dist/types/components/sqm-media/HeroImage.stories.d.ts +15 -0
- package/dist/types/components/sqm-media/{sqm-media-view.d.ts → sqm-hero-image-view.d.ts} +6 -3
- package/dist/types/components/sqm-media/{sqm-media.d.ts → sqm-hero-image.d.ts} +16 -9
- package/dist/types/components/sqm-referral-card/sqm-timeline-entry.d.ts +4 -0
- package/dist/types/components.d.ts +215 -138
- package/dist/types/stencil-public-runtime.d.ts +182 -190
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/collection/components/sqm-media/Media.stories.js +0 -28
- package/dist/esm-es5/AutoColor-9281c94b.js +0 -1
- package/dist/esm-es5/JSS-df9ea8a0.js +0 -8
- package/dist/esm-es5/global-cc738e38.js +0 -285
- package/dist/esm-es5/index-2c5a6587.js +0 -1
- package/dist/esm-es5/index.module-983975d9.js +0 -1
- package/dist/esm-es5/sqm-brand_26.entry.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-91a35c42.js +0 -1
- package/dist/esm-es5/stencil-hooks.module-1bcbec4f.js +0 -53
- package/dist/esm-es5/use-callback-cfeaefe1.js +0 -1
- package/dist/esm-es5/useChildElements-9936fb9a.js +0 -1
- package/dist/esm-es5/useDemoBigStat-5450ce4c.js +0 -1
- package/dist/esm-es5/useLeaderboard-c0017437.js +0 -1
- package/dist/mint-components/p-00894968.system.js +0 -1
- package/dist/mint-components/p-0449904d.system.entry.js +0 -1
- package/dist/mint-components/p-050bd4c1.entry.js +0 -1
- package/dist/mint-components/p-073c0485.system.js +0 -1
- package/dist/mint-components/p-09ae771c.system.entry.js +0 -1
- package/dist/mint-components/p-12557b30.js +0 -1
- package/dist/mint-components/p-15932a6d.entry.js +0 -1
- package/dist/mint-components/p-18e9e739.system.entry.js +0 -1
- package/dist/mint-components/p-1c0fac18.system.js +0 -1
- package/dist/mint-components/p-2012b3eb.entry.js +0 -1
- package/dist/mint-components/p-21bf87e9.system.js +0 -1
- package/dist/mint-components/p-2673d322.entry.js +0 -1
- package/dist/mint-components/p-32ec3994.entry.js +0 -161
- package/dist/mint-components/p-33bd2ff9.entry.js +0 -1
- package/dist/mint-components/p-3beda015.js +0 -1
- package/dist/mint-components/p-40849586.entry.js +0 -1
- package/dist/mint-components/p-40b91bd2.entry.js +0 -1
- package/dist/mint-components/p-40d9f8f3.entry.js +0 -1
- package/dist/mint-components/p-425ea70b.entry.js +0 -1
- package/dist/mint-components/p-46adc2cf.system.entry.js +0 -1
- package/dist/mint-components/p-4ac07db9.system.js +0 -1
- package/dist/mint-components/p-673d1d37.system.entry.js +0 -1
- package/dist/mint-components/p-6f2ab381.system.entry.js +0 -1
- package/dist/mint-components/p-71775f38.entry.js +0 -1
- package/dist/mint-components/p-746fa1fa.entry.js +0 -1
- package/dist/mint-components/p-77bf2413.entry.js +0 -1
- package/dist/mint-components/p-79339d1d.entry.js +0 -33
- package/dist/mint-components/p-7a24a7a4.system.entry.js +0 -1
- package/dist/mint-components/p-860513de.system.js +0 -53
- package/dist/mint-components/p-8873b8b0.system.entry.js +0 -1
- package/dist/mint-components/p-8b5f9502.system.entry.js +0 -1
- package/dist/mint-components/p-8f900354.system.entry.js +0 -1
- package/dist/mint-components/p-95b5aa14.system.js +0 -1
- package/dist/mint-components/p-a2c12d31.system.entry.js +0 -1
- package/dist/mint-components/p-a716fa21.entry.js +0 -1
- package/dist/mint-components/p-aa926a92.entry.js +0 -86
- package/dist/mint-components/p-adabc223.js +0 -1
- package/dist/mint-components/p-ae9a75d7.entry.js +0 -1
- package/dist/mint-components/p-aeaf1171.js +0 -1
- package/dist/mint-components/p-af8a82a5.entry.js +0 -1
- package/dist/mint-components/p-b094b800.js +0 -1
- package/dist/mint-components/p-c1509151.system.entry.js +0 -1
- package/dist/mint-components/p-c154b16e.system.entry.js +0 -1
- package/dist/mint-components/p-c164d3fe.js +0 -1
- package/dist/mint-components/p-c358211f.js +0 -1
- package/dist/mint-components/p-c824c2e5.system.js +0 -285
- package/dist/mint-components/p-ce5a08d0.entry.js +0 -119
- package/dist/mint-components/p-cfe598c1.js +0 -1
- package/dist/mint-components/p-cfe65695.entry.js +0 -1
- package/dist/mint-components/p-d2a2c424.js +0 -56
- package/dist/mint-components/p-d4c1b8e9.entry.js +0 -1
- package/dist/mint-components/p-d9bf4d77.entry.js +0 -1
- package/dist/mint-components/p-e341556f.entry.js +0 -13
- package/dist/mint-components/p-e551074e.system.js +0 -1
- package/dist/mint-components/p-e9a8a8f3.entry.js +0 -9
- package/dist/mint-components/p-eb3ce654.entry.js +0 -1
- package/dist/mint-components/p-eb4f3c85.entry.js +0 -1
- package/dist/mint-components/p-f0c38e7a.entry.js +0 -1
- package/dist/mint-components/p-f17cd500.entry.js +0 -1
- package/dist/mint-components/p-f39b5f6b.entry.js +0 -1
- package/dist/types/components/sqm-media/Media.stories.d.ts +0 -12
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const index_module = require('./index.module-0f10a4c4.js');
|
|
11
|
-
const global = require('./global-32bf222f.js');
|
|
12
|
-
const cjs = require('./cjs-1066ec21.js');
|
|
13
|
-
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
14
|
-
const sqmPortalContainerView = require('./sqm-portal-container-view-a78ab7ca.js');
|
|
15
|
-
const useCallback = require('./use-callback-867e51f6.js');
|
|
16
|
-
const useDemoBigStat = require('./useDemoBigStat-1fa1ca6a.js');
|
|
17
|
-
const useChildElements = require('./useChildElements-6f8aa7de.js');
|
|
18
|
-
require('./mixins-7b7c59fe.js');
|
|
19
|
-
require('./sqm-portal-section-view-073d9dda.js');
|
|
20
|
-
require('./sqm-text-span-view-dd99633a.js');
|
|
21
|
-
require('./luxon-751f2e1c.js');
|
|
5
|
+
const index = require('./index-b0129cd6.js');
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-87a1f4f7.js');
|
|
7
|
+
const global = require('./global-08276663.js');
|
|
8
|
+
const useCallback = require('./use-callback-e754042f.js');
|
|
9
|
+
const index_module = require('./index.module-54724339.js');
|
|
22
10
|
require('./extends-08099afd.js');
|
|
11
|
+
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
23
12
|
require('./insertcss-04580cfa.js');
|
|
13
|
+
const cjs = require('./cjs-1066ec21.js');
|
|
14
|
+
require('./mixins-7b7c59fe.js');
|
|
15
|
+
const JSS = require('./JSS-c65a40f1.js');
|
|
16
|
+
const useChildElements = require('./useChildElements-4bc9b219.js');
|
|
17
|
+
require('./luxon-59ca7d19.js');
|
|
18
|
+
const utils = require('./utils-01dbfd4a.js');
|
|
19
|
+
require('./sqm-text-span-view-f101dedf.js');
|
|
20
|
+
const useDemoBigStat = require('./useDemoBigStat-42fa7a69.js');
|
|
21
|
+
const sqmPortalContainerView = require('./sqm-portal-container-view-185b4bd0.js');
|
|
22
|
+
const AutoColor = require('./AutoColor-db901e98.js');
|
|
23
|
+
require('./sqm-portal-section-view-3b6c990e.js');
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Build a font CSS URL using the Google Fonts CSS API
|
|
@@ -35,7 +35,7 @@ function buildFontsCssUrl(...fonts) {
|
|
|
35
35
|
return `https://fonts.googleapis.com/css2?${queryString}`;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
const BrandComponent = class {
|
|
39
39
|
constructor(hostRef) {
|
|
40
40
|
index.registerInstance(this, hostRef);
|
|
41
41
|
stencilHooks_module.h$1(this);
|
|
@@ -81,7 +81,7 @@ let BrandComponent = class {
|
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
const CardFeed = class {
|
|
85
85
|
constructor(hostRef) {
|
|
86
86
|
index.registerInstance(this, hostRef);
|
|
87
87
|
this.ignored = true;
|
|
@@ -153,7 +153,7 @@ function DividedLayoutView(props, children) {
|
|
|
153
153
|
children));
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
const DividedLayout = class {
|
|
157
157
|
constructor(hostRef) {
|
|
158
158
|
index.registerInstance(this, hostRef);
|
|
159
159
|
/**
|
|
@@ -212,13 +212,13 @@ const defaultFormState = {
|
|
|
212
212
|
error: "",
|
|
213
213
|
};
|
|
214
214
|
function useEditProfile(props) {
|
|
215
|
-
const userIdent = index_module.
|
|
215
|
+
const userIdent = index_module.ne();
|
|
216
216
|
const [showEdit, setShowEdit] = stencilHooks_module.useState(false);
|
|
217
|
-
stencilHooks_module.useState("");
|
|
217
|
+
const [error, setError] = stencilHooks_module.useState("");
|
|
218
218
|
const [userData, setUserData] = stencilHooks_module.useState(undefined);
|
|
219
219
|
const [formState, setFormState] = stencilHooks_module.useState(defaultFormState);
|
|
220
|
-
const userDataResponse = index_module.
|
|
221
|
-
const [upsertUser, upsertUserResponse] = index_module.
|
|
220
|
+
const userDataResponse = index_module.mn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
221
|
+
const [upsertUser, upsertUserResponse] = index_module.De(UPSERT_USER);
|
|
222
222
|
stencilHooks_module.useEffect(() => {
|
|
223
223
|
if ((upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading) || !showEdit)
|
|
224
224
|
return;
|
|
@@ -298,10 +298,9 @@ function useEditProfile(props) {
|
|
|
298
298
|
},
|
|
299
299
|
resetForm: () => {
|
|
300
300
|
var _a, _b, _c, _d, _e, _f;
|
|
301
|
-
const currentRegion = ((_b = (_a = userDataResponse === null || userDataResponse === void 0 ? void 0 : userDataResponse.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.countryCode)
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
})
|
|
301
|
+
const currentRegion = ((_b = (_a = userDataResponse === null || userDataResponse === void 0 ? void 0 : userDataResponse.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.countryCode) ? global.intl.formatDisplayName(userDataResponse.data.viewer.countryCode, {
|
|
302
|
+
type: "region",
|
|
303
|
+
})
|
|
305
304
|
: "";
|
|
306
305
|
setUserData({
|
|
307
306
|
...(_c = userDataResponse.data) === null || _c === void 0 ? void 0 : _c.viewer,
|
|
@@ -325,7 +324,7 @@ function useEditProfile(props) {
|
|
|
325
324
|
|
|
326
325
|
const sqmEditProfileCss = ".ErrorStyles::part(base){background:var(--sl-color-danger-10);border-color:var(--sl-color-danger-500);outline:var(--sl-color-danger-500)}.ErrorStyles:host{--something-random:red;--focus-ring:0 0 0 var(--sl-focus-ring-width) red !important}.ErrorStyles::part(input){color:var(--sl-color-danger-500)}.ErrorStyles::part(input):-webkit-autofill,.ErrorStyles::part(input):-webkit-autofill:hover,.ErrorStyles::part(input):-webkit-autofill:focus,.ErrorStyles::part(input):-webkit-autofill:active{-webkit-box-shadow:0 0 0 var(--sl-input-height-large) var(--sl-input-background-color-hover) inset !important;box-shadow:0 0 0 var(--sl-input-height-large) var(--sl-input-background-color-hover) inset !important;-webkit-text-fill-color:var(--sl-color-danger-500)}.ErrorStyles::part(help-text){color:var(--sl-color-danger-500)}:host{display:block}:host([hidden]){display:none}.FormWrapper>:not(:first-child){margin-top:54px}.FormSection{width:100%}.FormSection>:not(:first-child){margin-top:16px}.ButtonWrapper{display:-ms-flexbox;display:flex;margin-top:24px;-ms-flex-pack:end;justify-content:flex-end}.ButtonWrapper>:not(:first-child){margin-left:var(--sl-font-size-x-small)}.CardWrapper{-webkit-box-sizing:border-box;box-sizing:border-box;background:var(--sl-color-white);padding:40px 30px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between}@media screen and (max-width: 499px){.CardWrapper{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}}@media screen and (max-width: 880px){.CardWrapper.ShowEdit{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:end;align-items:flex-end}}";
|
|
327
326
|
|
|
328
|
-
|
|
327
|
+
const EditProfile = class {
|
|
329
328
|
constructor(hostRef) {
|
|
330
329
|
index.registerInstance(this, hostRef);
|
|
331
330
|
this.ignored = true;
|
|
@@ -333,7 +332,7 @@ let EditProfile = class {
|
|
|
333
332
|
}
|
|
334
333
|
disconnectedCallback() { }
|
|
335
334
|
render() {
|
|
336
|
-
const props = index_module.
|
|
335
|
+
const props = index_module.k()
|
|
337
336
|
? useEditProfileDemo(utils.getProps(this))
|
|
338
337
|
: useEditProfile(utils.getProps(this));
|
|
339
338
|
return index.h(AutoColor.EditProfileView, Object.assign({}, props));
|
|
@@ -394,20 +393,7 @@ function useEditProfileDemo(props) {
|
|
|
394
393
|
}
|
|
395
394
|
EditProfile.style = sqmEditProfileCss;
|
|
396
395
|
|
|
397
|
-
|
|
398
|
-
constructor(hostRef) {
|
|
399
|
-
index.registerInstance(this, hostRef);
|
|
400
|
-
this.ignored = true;
|
|
401
|
-
stencilHooks_module.h$1(this);
|
|
402
|
-
}
|
|
403
|
-
disconnectedCallback() { }
|
|
404
|
-
render() {
|
|
405
|
-
const Story = this.hookStory;
|
|
406
|
-
return index.h(Story, null);
|
|
407
|
-
}
|
|
408
|
-
};
|
|
409
|
-
|
|
410
|
-
function MediaView(props) {
|
|
396
|
+
function HeroImageView(props, children) {
|
|
411
397
|
const overlay = Boolean((props.header || props.description || props.buttonText) &&
|
|
412
398
|
props.layout === "overlay");
|
|
413
399
|
const style = {
|
|
@@ -430,13 +416,19 @@ function MediaView(props) {
|
|
|
430
416
|
objectFit: "cover",
|
|
431
417
|
margin: "auto",
|
|
432
418
|
},
|
|
419
|
+
Background: {
|
|
420
|
+
minHeight: props.minHeight,
|
|
421
|
+
backgroundImage: `url(${props.imageUrl})`,
|
|
422
|
+
backgroundSize: "cover",
|
|
423
|
+
backgroundPosition: props.imagePos || "center",
|
|
424
|
+
display: "flex",
|
|
425
|
+
justifyContent: "center",
|
|
426
|
+
alignItems: "center",
|
|
427
|
+
},
|
|
433
428
|
Overlay: {
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
top: "50%",
|
|
437
|
-
left: "50%",
|
|
429
|
+
zIndex: "1",
|
|
430
|
+
padding: "var(--sl-spacing-" + props.padding + ")",
|
|
438
431
|
textAlign: "center",
|
|
439
|
-
transform: "translate(-50%, -50%)",
|
|
440
432
|
color: props.textColor || "var(--sl-color-neutral-0)",
|
|
441
433
|
lineHeight: "var(--sl-line-height-dense)",
|
|
442
434
|
},
|
|
@@ -448,35 +440,37 @@ function MediaView(props) {
|
|
|
448
440
|
color: props.textColor || "var(--sl-color-neutral-900)",
|
|
449
441
|
"& .image-area": {
|
|
450
442
|
width: "50%",
|
|
451
|
-
|
|
443
|
+
boxSizing: "border-box",
|
|
444
|
+
"@media (max-width: 599px)": {
|
|
452
445
|
width: "100%",
|
|
453
446
|
},
|
|
454
447
|
},
|
|
455
448
|
"& .text-area": {
|
|
456
449
|
width: "50%",
|
|
457
|
-
padding: "calc(2*var(--sl-spacing-
|
|
450
|
+
padding: "calc(2*var(--sl-spacing-" + props.padding + "))",
|
|
458
451
|
alignSelf: "center",
|
|
459
|
-
|
|
460
|
-
|
|
452
|
+
boxSizing: "border-box",
|
|
453
|
+
"@media (max-width: 599px)": {
|
|
454
|
+
width: "100%",
|
|
461
455
|
textAlign: "center",
|
|
462
|
-
padding: "var(--sl-spacing-
|
|
456
|
+
padding: "var(--sl-spacing-" + props.padding + ")",
|
|
463
457
|
},
|
|
464
458
|
},
|
|
465
|
-
"@media (max-width:
|
|
459
|
+
"@media (max-width: 599px)": {
|
|
466
460
|
flexDirection: props.imageMobilePos === "bottom" ? "column-reverse" : "column",
|
|
467
461
|
},
|
|
468
462
|
},
|
|
469
463
|
Header: {
|
|
470
464
|
fontSize: "var(--sl-font-size-xxx-large)",
|
|
471
465
|
fontWeight: "var(--sl-font-weight-bold)",
|
|
472
|
-
"@media (max-width:
|
|
466
|
+
"@media (max-width: 599px)": {
|
|
473
467
|
fontSize: "var(--sl-font-size-xx-large)",
|
|
474
468
|
},
|
|
475
469
|
},
|
|
476
470
|
Description: {
|
|
477
471
|
fontSize: "var(--sl-font-size-x-large)",
|
|
478
472
|
margin: "var(--sl-spacing-small) 0",
|
|
479
|
-
"@media (max-width:
|
|
473
|
+
"@media (max-width: 599px)": {
|
|
480
474
|
fontSize: "var(--sl-font-size-large)",
|
|
481
475
|
},
|
|
482
476
|
},
|
|
@@ -485,7 +479,7 @@ function MediaView(props) {
|
|
|
485
479
|
"&::part(base)": {
|
|
486
480
|
padding: "0 var(--sl-spacing-x-large)",
|
|
487
481
|
},
|
|
488
|
-
"@media (max-width:
|
|
482
|
+
"@media (max-width: 599px)": {
|
|
489
483
|
width: "100%",
|
|
490
484
|
},
|
|
491
485
|
},
|
|
@@ -503,14 +497,14 @@ function MediaView(props) {
|
|
|
503
497
|
props.layout === "overlay" && OverlayView(),
|
|
504
498
|
props.layout === "columns" && ColumnView()));
|
|
505
499
|
function OverlayView() {
|
|
506
|
-
return (index.h("div",
|
|
507
|
-
props.imageUrl && (index.h("img", { class: sheet.classes.Image, src: props.imageUrl })),
|
|
500
|
+
return (index.h("div", { class: sheet.classes.Background },
|
|
508
501
|
index.h("div", { class: sheet.classes.Overlay },
|
|
509
502
|
props.header && (index.h("div", { class: sheet.classes.Header }, props.header)),
|
|
510
503
|
props.description && (index.h("div", { class: sheet.classes.Description }, props.description)),
|
|
511
504
|
props.buttonText && (index.h("sl-button", { class: sheet.classes.Button, type: "primary", onClick: () => props.buttonNewTab
|
|
512
505
|
? window.open(props.buttonLink)
|
|
513
|
-
: window.open(props.buttonLink, "_parent") }, props.buttonText))
|
|
506
|
+
: window.open(props.buttonLink, "_parent") }, props.buttonText)),
|
|
507
|
+
children && children)));
|
|
514
508
|
}
|
|
515
509
|
function ColumnView() {
|
|
516
510
|
return (index.h("div", null,
|
|
@@ -526,9 +520,13 @@ function MediaView(props) {
|
|
|
526
520
|
}
|
|
527
521
|
}
|
|
528
522
|
|
|
529
|
-
|
|
523
|
+
const HeroImage = class {
|
|
530
524
|
constructor(hostRef) {
|
|
531
525
|
index.registerInstance(this, hostRef);
|
|
526
|
+
/**
|
|
527
|
+
* @uiName Minimum Image Height
|
|
528
|
+
*/
|
|
529
|
+
this.minHeight = "300px";
|
|
532
530
|
/**
|
|
533
531
|
* @uiName Overlay Color
|
|
534
532
|
*/
|
|
@@ -537,10 +535,6 @@ let Media = class {
|
|
|
537
535
|
* @uiName Overlay Opacity
|
|
538
536
|
*/
|
|
539
537
|
this.overlayOpacity = "0.75";
|
|
540
|
-
/**
|
|
541
|
-
* @uiName Minimum Image Height
|
|
542
|
-
*/
|
|
543
|
-
this.minHeight = "300px";
|
|
544
538
|
/**
|
|
545
539
|
* @uiName Image Link
|
|
546
540
|
* @uiType string
|
|
@@ -550,24 +544,92 @@ let Media = class {
|
|
|
550
544
|
/**
|
|
551
545
|
* @uiName Image Position
|
|
552
546
|
* @uiType string
|
|
553
|
-
* @uiEnum ["left", "right"]
|
|
547
|
+
* @uiEnum ["left", "center", "right"]
|
|
554
548
|
*/
|
|
555
|
-
this.imagePos = "
|
|
549
|
+
this.imagePos = "center";
|
|
556
550
|
/**
|
|
557
551
|
* @uiName Image Mobile Position
|
|
558
552
|
* @uiType string
|
|
559
|
-
* @uiEnum ["top", "bottom"
|
|
553
|
+
* @uiEnum ["top", "bottom"]
|
|
560
554
|
*/
|
|
561
555
|
this.imageMobilePos = "top";
|
|
562
556
|
/**
|
|
563
557
|
* @uiName CTA Button Link Open in New Tab
|
|
564
558
|
*/
|
|
565
559
|
this.buttonNewTab = false;
|
|
560
|
+
/**
|
|
561
|
+
* @uiName Padding
|
|
562
|
+
* @uiType string
|
|
563
|
+
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
564
|
+
*/
|
|
565
|
+
this.padding = "xx-large";
|
|
566
|
+
stencilHooks_module.h$1(this);
|
|
567
|
+
}
|
|
568
|
+
disconnectedCallback() { }
|
|
569
|
+
render() {
|
|
570
|
+
return (index.h(HeroImageView, Object.assign({}, utils.getProps(this)), index.h("slot", null)));
|
|
571
|
+
}
|
|
572
|
+
};
|
|
573
|
+
|
|
574
|
+
const SqmHookStoryContainer = class {
|
|
575
|
+
constructor(hostRef) {
|
|
576
|
+
index.registerInstance(this, hostRef);
|
|
577
|
+
this.ignored = true;
|
|
566
578
|
stencilHooks_module.h$1(this);
|
|
567
579
|
}
|
|
568
580
|
disconnectedCallback() { }
|
|
569
581
|
render() {
|
|
570
|
-
|
|
582
|
+
const Story = this.hookStory;
|
|
583
|
+
return index.h(Story, null);
|
|
584
|
+
}
|
|
585
|
+
};
|
|
586
|
+
|
|
587
|
+
function ImageView(props) {
|
|
588
|
+
const style = {
|
|
589
|
+
Container: {
|
|
590
|
+
display: "flex",
|
|
591
|
+
width: "100%",
|
|
592
|
+
justifyContent: props.align || "center",
|
|
593
|
+
background: props.backgroundColor || "",
|
|
594
|
+
},
|
|
595
|
+
Image: {
|
|
596
|
+
maxWidth: "100%",
|
|
597
|
+
objectFit: "cover",
|
|
598
|
+
marginLeft: props.left || "0",
|
|
599
|
+
marginRight: props.right || "0",
|
|
600
|
+
},
|
|
601
|
+
};
|
|
602
|
+
const sheet = JSS.createStyleSheet(style);
|
|
603
|
+
const styleString = sheet.toString();
|
|
604
|
+
console.log(props);
|
|
605
|
+
const vanillaStyle = `
|
|
606
|
+
:host{
|
|
607
|
+
display: block;
|
|
608
|
+
}
|
|
609
|
+
`;
|
|
610
|
+
return (index.h("div", null,
|
|
611
|
+
index.h("style", { type: "text/css" },
|
|
612
|
+
styleString,
|
|
613
|
+
vanillaStyle),
|
|
614
|
+
index.h("div", { class: sheet.classes.Container },
|
|
615
|
+
index.h("img", { src: props.imageUrl, class: sheet.classes.Image }))));
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
const Image = class {
|
|
619
|
+
constructor(hostRef) {
|
|
620
|
+
index.registerInstance(this, hostRef);
|
|
621
|
+
/**
|
|
622
|
+
* @uiName Position Alignment
|
|
623
|
+
* @uiType string
|
|
624
|
+
* @uiEnum ["left", "center", "right"]
|
|
625
|
+
*/
|
|
626
|
+
this.align = "center";
|
|
627
|
+
this.ignored = true;
|
|
628
|
+
stencilHooks_module.h$1(this);
|
|
629
|
+
}
|
|
630
|
+
disconnectedCallback() { }
|
|
631
|
+
render() {
|
|
632
|
+
return index.h(ImageView, Object.assign({}, utils.getProps(this)));
|
|
571
633
|
}
|
|
572
634
|
};
|
|
573
635
|
|
|
@@ -586,12 +648,12 @@ function NavigationMenuView(props) {
|
|
|
586
648
|
}
|
|
587
649
|
|
|
588
650
|
function handleMenu(e) {
|
|
589
|
-
index_module.
|
|
651
|
+
index_module.pn.push(e.detail.item.value);
|
|
590
652
|
}
|
|
591
653
|
function useNavigationMenu(props) {
|
|
592
654
|
const ref = stencilHooks_module.useRef();
|
|
593
|
-
const [, rerender] = index_module.
|
|
594
|
-
const user = index_module.
|
|
655
|
+
const [, rerender] = index_module.dn();
|
|
656
|
+
const user = index_module.ne();
|
|
595
657
|
stencilHooks_module.useEffect(() => {
|
|
596
658
|
var _a;
|
|
597
659
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => handleMenu(e));
|
|
@@ -612,7 +674,7 @@ function useNavigationMenu(props) {
|
|
|
612
674
|
|
|
613
675
|
const sqmNavigationMenuCss = ":host{display:block}:host([hidden]){display:none}.HeaderWrapper{width:100%;max-width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:var(--sl-spacing-small) var(--sl-spacing-large);-ms-flex-align:center;align-items:center;background-color:var(--sqm-header-background)}@media screen and (max-width: 499px){.HeaderWrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-pack:end;justify-content:flex-end;padding:0 var(--sl-spacing-x-small)}}";
|
|
614
676
|
|
|
615
|
-
|
|
677
|
+
const NavigationMenu = class {
|
|
616
678
|
constructor(hostRef) {
|
|
617
679
|
index.registerInstance(this, hostRef);
|
|
618
680
|
this.ignored = true;
|
|
@@ -620,7 +682,7 @@ let NavigationMenu = class {
|
|
|
620
682
|
}
|
|
621
683
|
disconnectedCallback() { }
|
|
622
684
|
render() {
|
|
623
|
-
const props = index_module.
|
|
685
|
+
const props = index_module.k()
|
|
624
686
|
? useNavigationMenuDemo(utils.getProps(this))
|
|
625
687
|
: useNavigationMenu(utils.getProps(this));
|
|
626
688
|
return (index.h(index.Host, { slot: "sqm-navigation-menu" }, index.h(NavigationMenuView, Object.assign({}, props))));
|
|
@@ -645,11 +707,11 @@ NavigationMenu.style = sqmNavigationMenuCss;
|
|
|
645
707
|
|
|
646
708
|
function usePortalChangePassword(props) {
|
|
647
709
|
var _a, _b, _c, _d;
|
|
648
|
-
const [request, { loading, errors, data }] = index_module
|
|
710
|
+
const [request, { loading, errors, data }] = index_module.He();
|
|
649
711
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
650
712
|
const [error, setError] = stencilHooks_module.useState("");
|
|
651
713
|
const [success, setSuccess] = stencilHooks_module.useState(false);
|
|
652
|
-
const user = index_module.
|
|
714
|
+
const user = index_module.ne();
|
|
653
715
|
const submit = async (event) => {
|
|
654
716
|
var _a;
|
|
655
717
|
setSuccess(false);
|
|
@@ -702,7 +764,7 @@ function usePortalChangePassword(props) {
|
|
|
702
764
|
};
|
|
703
765
|
}
|
|
704
766
|
|
|
705
|
-
|
|
767
|
+
const PortalChangePassword = class {
|
|
706
768
|
constructor(hostRef) {
|
|
707
769
|
index.registerInstance(this, hostRef);
|
|
708
770
|
this.ignored = true;
|
|
@@ -742,7 +804,7 @@ let PortalChangePassword = class {
|
|
|
742
804
|
}
|
|
743
805
|
disconnectedCallback() { }
|
|
744
806
|
render() {
|
|
745
|
-
const { states, callbacks } = index_module.
|
|
807
|
+
const { states, callbacks } = index_module.k()
|
|
746
808
|
? usePortalChangePasswordDemo(this)
|
|
747
809
|
: usePortalChangePassword(this);
|
|
748
810
|
return index.h(AutoColor.PortalChangePasswordView, { states: states, callbacks: callbacks });
|
|
@@ -771,7 +833,7 @@ function usePortalChangePasswordDemo(props) {
|
|
|
771
833
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
772
834
|
}
|
|
773
835
|
|
|
774
|
-
|
|
836
|
+
const PortalContainer = class {
|
|
775
837
|
constructor(hostRef) {
|
|
776
838
|
index.registerInstance(this, hostRef);
|
|
777
839
|
this.ignored = true;
|
|
@@ -806,7 +868,7 @@ let PortalContainer = class {
|
|
|
806
868
|
};
|
|
807
869
|
|
|
808
870
|
function usePortalFrame(footerContent, headerContent) {
|
|
809
|
-
const [, rerender] = index_module.
|
|
871
|
+
const [, rerender] = index_module.dn();
|
|
810
872
|
return {
|
|
811
873
|
data: {
|
|
812
874
|
footer: footerContent,
|
|
@@ -818,7 +880,7 @@ function usePortalFrame(footerContent, headerContent) {
|
|
|
818
880
|
};
|
|
819
881
|
}
|
|
820
882
|
|
|
821
|
-
|
|
883
|
+
const PortalFrame = class {
|
|
822
884
|
constructor(hostRef) {
|
|
823
885
|
index.registerInstance(this, hostRef);
|
|
824
886
|
this.ignored = true;
|
|
@@ -828,7 +890,7 @@ let PortalFrame = class {
|
|
|
828
890
|
render() {
|
|
829
891
|
const footerContent = index.h("slot", { name: "footer" });
|
|
830
892
|
const headerContent = index.h("slot", { name: "header" });
|
|
831
|
-
const props = index_module.
|
|
893
|
+
const props = index_module.k()
|
|
832
894
|
? usePortalFrameDemo(footerContent, headerContent, this)
|
|
833
895
|
: usePortalFrame(footerContent, headerContent);
|
|
834
896
|
return (index.h(AutoColor.PortalFrameView, Object.assign({}, props), index.h("slot", null)));
|
|
@@ -851,7 +913,7 @@ function usePortalFrameDemo(footerContent, headerContent, props) {
|
|
|
851
913
|
|
|
852
914
|
function usePortalLogin(props) {
|
|
853
915
|
var _a, _b, _c, _d;
|
|
854
|
-
const [request, { loading, errors, data }] = index_module
|
|
916
|
+
const [request, { loading, errors, data }] = index_module.$e();
|
|
855
917
|
const [error, setError] = stencilHooks_module.useState("");
|
|
856
918
|
const urlParams = new URLSearchParams(window.location.search);
|
|
857
919
|
const nextPageOverride = urlParams.get("nextPage");
|
|
@@ -868,7 +930,7 @@ function usePortalLogin(props) {
|
|
|
868
930
|
var _a;
|
|
869
931
|
if ((_a = data === null || data === void 0 ? void 0 : data.authenticateManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
870
932
|
urlParams.delete("nextPage");
|
|
871
|
-
index_module.
|
|
933
|
+
index_module.pn.push({
|
|
872
934
|
pathname: nextPageOverride || props.nextPage,
|
|
873
935
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
874
936
|
});
|
|
@@ -894,7 +956,7 @@ function usePortalLogin(props) {
|
|
|
894
956
|
};
|
|
895
957
|
}
|
|
896
958
|
|
|
897
|
-
|
|
959
|
+
const PortalLogin = class {
|
|
898
960
|
constructor(hostRef) {
|
|
899
961
|
index.registerInstance(this, hostRef);
|
|
900
962
|
this.ignored = true;
|
|
@@ -938,12 +1000,12 @@ let PortalLogin = class {
|
|
|
938
1000
|
}
|
|
939
1001
|
disconnectedCallback() { }
|
|
940
1002
|
render() {
|
|
941
|
-
const { states, callbacks } = index_module.
|
|
1003
|
+
const { states, callbacks } = index_module.k()
|
|
942
1004
|
? useLoginDemo(this)
|
|
943
1005
|
: usePortalLogin(this);
|
|
944
1006
|
const content = {
|
|
945
|
-
forgotPasswordButton: (index.h("slot", { name: "forgotPassword" }, index.h("a", { onClick: () => index_module.
|
|
946
|
-
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.
|
|
1007
|
+
forgotPasswordButton: (index.h("slot", { name: "forgotPassword" }, index.h("a", { onClick: () => index_module.pn.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
1008
|
+
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.pn.push(states.registerPath) }, this.registerLabel))),
|
|
947
1009
|
emailLabel: this.emailLabel,
|
|
948
1010
|
passwordLabel: this.passwordLabel,
|
|
949
1011
|
submitLabel: this.submitLabel,
|
|
@@ -1031,13 +1093,13 @@ function compare (a, b) {
|
|
|
1031
1093
|
return !a[1] && b[1] ? 1 : a[1] && !b[1] ? -1 : 0;
|
|
1032
1094
|
}
|
|
1033
1095
|
|
|
1034
|
-
function _typeof
|
|
1096
|
+
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
1035
1097
|
|
|
1036
|
-
function _classCallCheck
|
|
1098
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1037
1099
|
|
|
1038
|
-
function _defineProperties
|
|
1100
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1039
1101
|
|
|
1040
|
-
function _createClass
|
|
1102
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1041
1103
|
|
|
1042
1104
|
var V3 = '1.2.0'; // Moved `001` country code to "nonGeographic" section of metadata.
|
|
1043
1105
|
|
|
@@ -1052,14 +1114,14 @@ var Metadata =
|
|
|
1052
1114
|
/*#__PURE__*/
|
|
1053
1115
|
function () {
|
|
1054
1116
|
function Metadata(metadata) {
|
|
1055
|
-
_classCallCheck
|
|
1117
|
+
_classCallCheck(this, Metadata);
|
|
1056
1118
|
|
|
1057
1119
|
validateMetadata(metadata);
|
|
1058
1120
|
this.metadata = metadata;
|
|
1059
1121
|
setVersion.call(this, metadata);
|
|
1060
1122
|
}
|
|
1061
1123
|
|
|
1062
|
-
_createClass
|
|
1124
|
+
_createClass(Metadata, [{
|
|
1063
1125
|
key: "getCountries",
|
|
1064
1126
|
value: function getCountries() {
|
|
1065
1127
|
return Object.keys(this.metadata.countries).filter(function (_) {
|
|
@@ -1299,14 +1361,14 @@ var NumberingPlan =
|
|
|
1299
1361
|
/*#__PURE__*/
|
|
1300
1362
|
function () {
|
|
1301
1363
|
function NumberingPlan(metadata, globalMetadataObject) {
|
|
1302
|
-
_classCallCheck
|
|
1364
|
+
_classCallCheck(this, NumberingPlan);
|
|
1303
1365
|
|
|
1304
1366
|
this.globalMetadataObject = globalMetadataObject;
|
|
1305
1367
|
this.metadata = metadata;
|
|
1306
1368
|
setVersion.call(this, globalMetadataObject.metadata);
|
|
1307
1369
|
}
|
|
1308
1370
|
|
|
1309
|
-
_createClass
|
|
1371
|
+
_createClass(NumberingPlan, [{
|
|
1310
1372
|
key: "callingCode",
|
|
1311
1373
|
value: function callingCode() {
|
|
1312
1374
|
return this.metadata[0];
|
|
@@ -1459,13 +1521,13 @@ var Format =
|
|
|
1459
1521
|
/*#__PURE__*/
|
|
1460
1522
|
function () {
|
|
1461
1523
|
function Format(format, metadata) {
|
|
1462
|
-
_classCallCheck
|
|
1524
|
+
_classCallCheck(this, Format);
|
|
1463
1525
|
|
|
1464
1526
|
this._format = format;
|
|
1465
1527
|
this.metadata = metadata;
|
|
1466
1528
|
}
|
|
1467
1529
|
|
|
1468
|
-
_createClass
|
|
1530
|
+
_createClass(Format, [{
|
|
1469
1531
|
key: "pattern",
|
|
1470
1532
|
value: function pattern() {
|
|
1471
1533
|
return this._format[0];
|
|
@@ -1533,13 +1595,13 @@ var Type =
|
|
|
1533
1595
|
/*#__PURE__*/
|
|
1534
1596
|
function () {
|
|
1535
1597
|
function Type(type, metadata) {
|
|
1536
|
-
_classCallCheck
|
|
1598
|
+
_classCallCheck(this, Type);
|
|
1537
1599
|
|
|
1538
1600
|
this.type = type;
|
|
1539
1601
|
this.metadata = metadata;
|
|
1540
1602
|
}
|
|
1541
1603
|
|
|
1542
|
-
_createClass
|
|
1604
|
+
_createClass(Type, [{
|
|
1543
1605
|
key: "pattern",
|
|
1544
1606
|
value: function pattern() {
|
|
1545
1607
|
if (this.metadata.v1) return this.type;
|
|
@@ -1606,7 +1668,7 @@ function validateMetadata(metadata) {
|
|
|
1606
1668
|
/* istanbul ignore next */
|
|
1607
1669
|
|
|
1608
1670
|
var is_object = function is_object(_) {
|
|
1609
|
-
return _typeof
|
|
1671
|
+
return _typeof(_) === 'object';
|
|
1610
1672
|
}; // Babel transforms `typeof` into some "branches"
|
|
1611
1673
|
// so istanbul will show this as "branch not covered".
|
|
1612
1674
|
|
|
@@ -1614,7 +1676,7 @@ var is_object = function is_object(_) {
|
|
|
1614
1676
|
|
|
1615
1677
|
|
|
1616
1678
|
var type_of = function type_of(_) {
|
|
1617
|
-
return _typeof
|
|
1679
|
+
return _typeof(_);
|
|
1618
1680
|
};
|
|
1619
1681
|
/**
|
|
1620
1682
|
* Returns "country calling code" for a country.
|
|
@@ -2225,9 +2287,9 @@ function getIddPrefix(country, callingCode, metadata) {
|
|
|
2225
2287
|
}
|
|
2226
2288
|
}
|
|
2227
2289
|
|
|
2228
|
-
function _objectSpread
|
|
2290
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
|
|
2229
2291
|
|
|
2230
|
-
function _defineProperty
|
|
2292
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2231
2293
|
var DEFAULT_OPTIONS = {
|
|
2232
2294
|
formatExtension: function formatExtension(formattedNumber, extension, metadata) {
|
|
2233
2295
|
return "".concat(formattedNumber).concat(metadata.ext()).concat(extension);
|
|
@@ -2249,7 +2311,7 @@ var DEFAULT_OPTIONS = {
|
|
|
2249
2311
|
function formatNumber(input, format, options, metadata) {
|
|
2250
2312
|
// Apply default options.
|
|
2251
2313
|
if (options) {
|
|
2252
|
-
options = _objectSpread
|
|
2314
|
+
options = _objectSpread({}, DEFAULT_OPTIONS, options);
|
|
2253
2315
|
} else {
|
|
2254
2316
|
options = DEFAULT_OPTIONS;
|
|
2255
2317
|
}
|
|
@@ -2281,7 +2343,7 @@ function formatNumber(input, format, options, metadata) {
|
|
|
2281
2343
|
return '';
|
|
2282
2344
|
}
|
|
2283
2345
|
|
|
2284
|
-
number = formatNationalNumber
|
|
2346
|
+
number = formatNationalNumber(nationalNumber, input.carrierCode, 'NATIONAL', metadata, options);
|
|
2285
2347
|
return addExtension(number, input.ext, metadata, options.formatExtension);
|
|
2286
2348
|
|
|
2287
2349
|
case 'INTERNATIONAL':
|
|
@@ -2291,7 +2353,7 @@ function formatNumber(input, format, options, metadata) {
|
|
|
2291
2353
|
return "+".concat(countryCallingCode);
|
|
2292
2354
|
}
|
|
2293
2355
|
|
|
2294
|
-
number = formatNationalNumber
|
|
2356
|
+
number = formatNationalNumber(nationalNumber, null, 'INTERNATIONAL', metadata, options);
|
|
2295
2357
|
number = "+".concat(countryCallingCode, " ").concat(number);
|
|
2296
2358
|
return addExtension(number, input.ext, metadata, options.formatExtension);
|
|
2297
2359
|
|
|
@@ -2322,7 +2384,7 @@ function formatNumber(input, format, options, metadata) {
|
|
|
2322
2384
|
}
|
|
2323
2385
|
}
|
|
2324
2386
|
|
|
2325
|
-
function formatNationalNumber
|
|
2387
|
+
function formatNationalNumber(number, carrierCode, formatAs, metadata, options) {
|
|
2326
2388
|
var format = chooseFormatForNumber(metadata.formats(), number);
|
|
2327
2389
|
|
|
2328
2390
|
if (!format) {
|
|
@@ -2377,7 +2439,7 @@ function formatIDD(nationalNumber, carrierCode, countryCallingCode, fromCountry,
|
|
|
2377
2439
|
var fromCountryCallingCode = getCountryCallingCode(fromCountry, metadata.metadata); // When calling within the same country calling code.
|
|
2378
2440
|
|
|
2379
2441
|
if (fromCountryCallingCode === countryCallingCode) {
|
|
2380
|
-
var formattedNumber = formatNationalNumber
|
|
2442
|
+
var formattedNumber = formatNationalNumber(nationalNumber, carrierCode, 'NATIONAL', metadata); // For NANPA regions, return the national format for these regions
|
|
2381
2443
|
// but prefix it with the country calling code.
|
|
2382
2444
|
|
|
2383
2445
|
if (countryCallingCode === '1') {
|
|
@@ -2399,25 +2461,25 @@ function formatIDD(nationalNumber, carrierCode, countryCallingCode, fromCountry,
|
|
|
2399
2461
|
var iddPrefix = getIddPrefix(fromCountry, undefined, metadata.metadata);
|
|
2400
2462
|
|
|
2401
2463
|
if (iddPrefix) {
|
|
2402
|
-
return "".concat(iddPrefix, " ").concat(countryCallingCode, " ").concat(formatNationalNumber
|
|
2464
|
+
return "".concat(iddPrefix, " ").concat(countryCallingCode, " ").concat(formatNationalNumber(nationalNumber, null, 'INTERNATIONAL', metadata));
|
|
2403
2465
|
}
|
|
2404
2466
|
}
|
|
2405
2467
|
|
|
2406
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$
|
|
2468
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } return target; }
|
|
2407
2469
|
|
|
2408
|
-
function _defineProperty$
|
|
2470
|
+
function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2409
2471
|
|
|
2410
|
-
function _classCallCheck$
|
|
2472
|
+
function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2411
2473
|
|
|
2412
|
-
function _defineProperties$
|
|
2474
|
+
function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
2413
2475
|
|
|
2414
|
-
function _createClass$
|
|
2476
|
+
function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }
|
|
2415
2477
|
|
|
2416
2478
|
var PhoneNumber =
|
|
2417
2479
|
/*#__PURE__*/
|
|
2418
2480
|
function () {
|
|
2419
2481
|
function PhoneNumber(countryCallingCode, nationalNumber, metadata) {
|
|
2420
|
-
_classCallCheck$
|
|
2482
|
+
_classCallCheck$1(this, PhoneNumber);
|
|
2421
2483
|
|
|
2422
2484
|
if (!countryCallingCode) {
|
|
2423
2485
|
throw new TypeError('`country` or `countryCallingCode` not passed');
|
|
@@ -2449,7 +2511,7 @@ function () {
|
|
|
2449
2511
|
this.metadata = metadata;
|
|
2450
2512
|
}
|
|
2451
2513
|
|
|
2452
|
-
_createClass$
|
|
2514
|
+
_createClass$1(PhoneNumber, [{
|
|
2453
2515
|
key: "isPossible",
|
|
2454
2516
|
value: function isPossible() {
|
|
2455
2517
|
return isPossiblePhoneNumber(this, {
|
|
@@ -2489,7 +2551,7 @@ function () {
|
|
|
2489
2551
|
}, {
|
|
2490
2552
|
key: "format",
|
|
2491
2553
|
value: function format(_format, options) {
|
|
2492
|
-
return formatNumber(this, _format, options ? _objectSpread({}, options, {
|
|
2554
|
+
return formatNumber(this, _format, options ? _objectSpread$1({}, options, {
|
|
2493
2555
|
v2: true
|
|
2494
2556
|
}) : {
|
|
2495
2557
|
v2: true
|
|
@@ -2948,13 +3010,13 @@ function selectCountryFromList(possibleCountries, nationalPhoneNumber, metadata)
|
|
|
2948
3010
|
}
|
|
2949
3011
|
}
|
|
2950
3012
|
|
|
2951
|
-
function _classCallCheck$
|
|
3013
|
+
function _classCallCheck$2(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2952
3014
|
|
|
2953
|
-
function _defineProperties$
|
|
3015
|
+
function _defineProperties$2(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
2954
3016
|
|
|
2955
|
-
function _createClass$
|
|
3017
|
+
function _createClass$2(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$2(Constructor.prototype, protoProps); if (staticProps) _defineProperties$2(Constructor, staticProps); return Constructor; }
|
|
2956
3018
|
|
|
2957
|
-
function _defineProperty$
|
|
3019
|
+
function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2958
3020
|
|
|
2959
3021
|
var AsYouTypeState =
|
|
2960
3022
|
/*#__PURE__*/
|
|
@@ -2965,9 +3027,9 @@ function () {
|
|
|
2965
3027
|
var onCountryChange = _ref.onCountryChange,
|
|
2966
3028
|
onCallingCodeChange = _ref.onCallingCodeChange;
|
|
2967
3029
|
|
|
2968
|
-
_classCallCheck$
|
|
3030
|
+
_classCallCheck$2(this, AsYouTypeState);
|
|
2969
3031
|
|
|
2970
|
-
_defineProperty$
|
|
3032
|
+
_defineProperty$2(this, "update", function (properties) {
|
|
2971
3033
|
for (var _i = 0, _Object$keys = Object.keys(properties); _i < _Object$keys.length; _i++) {
|
|
2972
3034
|
var key = _Object$keys[_i];
|
|
2973
3035
|
_this[key] = properties[key];
|
|
@@ -2978,7 +3040,7 @@ function () {
|
|
|
2978
3040
|
this.onCallingCodeChange = onCallingCodeChange;
|
|
2979
3041
|
}
|
|
2980
3042
|
|
|
2981
|
-
_createClass$
|
|
3043
|
+
_createClass$2(AsYouTypeState, [{
|
|
2982
3044
|
key: "reset",
|
|
2983
3045
|
value: function reset(defaultCountry, defaultCallingCode) {
|
|
2984
3046
|
this.international = false;
|
|
@@ -3194,7 +3256,7 @@ function formatNationalNumberWithAndWithoutNationalPrefixFormattingRule(state, f
|
|
|
3194
3256
|
//
|
|
3195
3257
|
|
|
3196
3258
|
if (shouldTryNationalPrefixFormattingRule(format)) {
|
|
3197
|
-
var formattedNumber = formatNationalNumber(state, format, {
|
|
3259
|
+
var formattedNumber = formatNationalNumber$1(state, format, {
|
|
3198
3260
|
useNationalPrefixFormattingRule: true,
|
|
3199
3261
|
getSeparatorAfterNationalPrefix: getSeparatorAfterNationalPrefix,
|
|
3200
3262
|
metadata: metadata
|
|
@@ -3206,14 +3268,14 @@ function formatNationalNumberWithAndWithoutNationalPrefixFormattingRule(state, f
|
|
|
3206
3268
|
} // Format the number without using `national_prefix_formatting_rule`.
|
|
3207
3269
|
|
|
3208
3270
|
|
|
3209
|
-
return formatNationalNumber(state, format, {
|
|
3271
|
+
return formatNationalNumber$1(state, format, {
|
|
3210
3272
|
useNationalPrefixFormattingRule: false,
|
|
3211
3273
|
getSeparatorAfterNationalPrefix: getSeparatorAfterNationalPrefix,
|
|
3212
3274
|
metadata: metadata
|
|
3213
3275
|
});
|
|
3214
3276
|
}
|
|
3215
3277
|
|
|
3216
|
-
function formatNationalNumber(state, format, _ref3) {
|
|
3278
|
+
function formatNationalNumber$1(state, format, _ref3) {
|
|
3217
3279
|
var metadata = _ref3.metadata,
|
|
3218
3280
|
useNationalPrefixFormattingRule = _ref3.useNationalPrefixFormattingRule,
|
|
3219
3281
|
getSeparatorAfterNationalPrefix = _ref3.getSeparatorAfterNationalPrefix;
|
|
@@ -3272,13 +3334,13 @@ function isValidFormattedNationalNumber(formattedNationalNumber, state) {
|
|
|
3272
3334
|
return parseDigits(formattedNationalNumber) === state.getNationalDigits();
|
|
3273
3335
|
}
|
|
3274
3336
|
|
|
3275
|
-
function _classCallCheck$
|
|
3337
|
+
function _classCallCheck$3(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3276
3338
|
|
|
3277
|
-
function _defineProperties$
|
|
3339
|
+
function _defineProperties$3(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
3278
3340
|
|
|
3279
|
-
function _createClass$
|
|
3341
|
+
function _createClass$3(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$3(Constructor.prototype, protoProps); if (staticProps) _defineProperties$3(Constructor, staticProps); return Constructor; }
|
|
3280
3342
|
|
|
3281
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3343
|
+
function _defineProperty$3(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3282
3344
|
// Could be any digit, I guess.
|
|
3283
3345
|
|
|
3284
3346
|
var DUMMY_DIGIT = '9'; // I don't know why is it exactly `15`
|
|
@@ -3292,7 +3354,7 @@ var LONGEST_DUMMY_PHONE_NUMBER = repeat(DUMMY_DIGIT, LONGEST_NATIONAL_PHONE_NUMB
|
|
|
3292
3354
|
var NATIONAL_PREFIX_SEPARATORS_PATTERN = /[- ]/; // Deprecated: Google has removed some formatting pattern related code from their repo.
|
|
3293
3355
|
// An example of a character class is "[1-4]".
|
|
3294
3356
|
|
|
3295
|
-
var CREATE_CHARACTER_CLASS_PATTERN =
|
|
3357
|
+
var CREATE_CHARACTER_CLASS_PATTERN = function () {
|
|
3296
3358
|
return /\[([^\[\]])*\]/g;
|
|
3297
3359
|
}; // Any digit in a regular expression that actually denotes a digit. For
|
|
3298
3360
|
// example, in the regular expression "80[0-2]\d{6,10}", the first 2 digits
|
|
@@ -3301,7 +3363,7 @@ var CREATE_CHARACTER_CLASS_PATTERN = function () {
|
|
|
3301
3363
|
// two-digit number, since the phone number can be as long as 15 digits.
|
|
3302
3364
|
|
|
3303
3365
|
|
|
3304
|
-
var CREATE_STANDALONE_DIGIT_PATTERN =
|
|
3366
|
+
var CREATE_STANDALONE_DIGIT_PATTERN = function () {
|
|
3305
3367
|
return /\d(?=[^,}][^,}])/g;
|
|
3306
3368
|
}; // A regular expression that is used to determine if a `format` is
|
|
3307
3369
|
// suitable to be used in the "as you type formatter".
|
|
@@ -3353,9 +3415,9 @@ function () {
|
|
|
3353
3415
|
|
|
3354
3416
|
var metadata = _ref.metadata;
|
|
3355
3417
|
|
|
3356
|
-
_classCallCheck$
|
|
3418
|
+
_classCallCheck$3(this, AsYouTypeFormatter);
|
|
3357
3419
|
|
|
3358
|
-
_defineProperty(this, "getSeparatorAfterNationalPrefix", function (format) {
|
|
3420
|
+
_defineProperty$3(this, "getSeparatorAfterNationalPrefix", function (format) {
|
|
3359
3421
|
// `US` metadata doesn't have a `national_prefix_formatting_rule`,
|
|
3360
3422
|
// so the `if` condition below doesn't apply to `US`,
|
|
3361
3423
|
// but in reality there shoudl be a separator
|
|
@@ -3379,7 +3441,7 @@ function () {
|
|
|
3379
3441
|
return '';
|
|
3380
3442
|
});
|
|
3381
3443
|
|
|
3382
|
-
_defineProperty(this, "shouldTryNationalPrefixFormattingRule", function (format, _ref2) {
|
|
3444
|
+
_defineProperty$3(this, "shouldTryNationalPrefixFormattingRule", function (format, _ref2) {
|
|
3383
3445
|
var international = _ref2.international,
|
|
3384
3446
|
nationalPrefix = _ref2.nationalPrefix;
|
|
3385
3447
|
|
|
@@ -3399,7 +3461,7 @@ function () {
|
|
|
3399
3461
|
this.resetFormat();
|
|
3400
3462
|
}
|
|
3401
3463
|
|
|
3402
|
-
_createClass$
|
|
3464
|
+
_createClass$3(AsYouTypeFormatter, [{
|
|
3403
3465
|
key: "resetFormat",
|
|
3404
3466
|
value: function resetFormat() {
|
|
3405
3467
|
this.chosenFormat = undefined;
|
|
@@ -3723,7 +3785,7 @@ function () {
|
|
|
3723
3785
|
// (Though there's no such format in current metadata)
|
|
3724
3786
|
|
|
3725
3787
|
/* istanbul ignore if */
|
|
3726
|
-
if (format.pattern().indexOf('|') >= 0) {
|
|
3788
|
+
if ( format.pattern().indexOf('|') >= 0) {
|
|
3727
3789
|
return;
|
|
3728
3790
|
} // Get formatting template for this phone number format
|
|
3729
3791
|
|
|
@@ -3958,19 +4020,19 @@ function () {
|
|
|
3958
4020
|
return AsYouTypeFormatter;
|
|
3959
4021
|
}();
|
|
3960
4022
|
|
|
3961
|
-
function _slicedToArray
|
|
4023
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3962
4024
|
|
|
3963
|
-
function _nonIterableRest
|
|
4025
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3964
4026
|
|
|
3965
|
-
function _iterableToArrayLimit
|
|
4027
|
+
function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
3966
4028
|
|
|
3967
|
-
function _arrayWithHoles
|
|
4029
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3968
4030
|
|
|
3969
|
-
function _classCallCheck$
|
|
4031
|
+
function _classCallCheck$4(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3970
4032
|
|
|
3971
|
-
function _defineProperties$
|
|
4033
|
+
function _defineProperties$4(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
3972
4034
|
|
|
3973
|
-
function _createClass$
|
|
4035
|
+
function _createClass$4(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$4(Constructor.prototype, protoProps); if (staticProps) _defineProperties$4(Constructor, staticProps); return Constructor; }
|
|
3974
4036
|
var VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART = '[' + VALID_PUNCTUATION + VALID_DIGITS + ']+';
|
|
3975
4037
|
var VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART_PATTERN = new RegExp('^' + VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART + '$', 'i');
|
|
3976
4038
|
var VALID_FORMATTED_PHONE_NUMBER_PART = '(?:' + '[' + PLUS_CHARS + ']' + '[' + VALID_PUNCTUATION + VALID_DIGITS + ']*' + '|' + '[' + VALID_PUNCTUATION + VALID_DIGITS + ']+' + ')';
|
|
@@ -3989,7 +4051,7 @@ function () {
|
|
|
3989
4051
|
metadata = _ref.metadata,
|
|
3990
4052
|
onNationalSignificantNumberChange = _ref.onNationalSignificantNumberChange;
|
|
3991
4053
|
|
|
3992
|
-
_classCallCheck$
|
|
4054
|
+
_classCallCheck$4(this, AsYouTypeParser);
|
|
3993
4055
|
|
|
3994
4056
|
this.defaultCountry = defaultCountry;
|
|
3995
4057
|
this.defaultCallingCode = defaultCallingCode;
|
|
@@ -3997,11 +4059,11 @@ function () {
|
|
|
3997
4059
|
this.onNationalSignificantNumberChange = onNationalSignificantNumberChange;
|
|
3998
4060
|
}
|
|
3999
4061
|
|
|
4000
|
-
_createClass$
|
|
4062
|
+
_createClass$4(AsYouTypeParser, [{
|
|
4001
4063
|
key: "input",
|
|
4002
4064
|
value: function input(text, state) {
|
|
4003
4065
|
var _extractFormattedDigi = extractFormattedDigitsAndPlus(text),
|
|
4004
|
-
_extractFormattedDigi2 = _slicedToArray
|
|
4066
|
+
_extractFormattedDigi2 = _slicedToArray(_extractFormattedDigi, 2),
|
|
4005
4067
|
formattedDigits = _extractFormattedDigi2[0],
|
|
4006
4068
|
hasPlus = _extractFormattedDigi2[1];
|
|
4007
4069
|
|
|
@@ -4419,7 +4481,7 @@ function _extractFormattedDigitsAndPlus(text) {
|
|
|
4419
4481
|
|
|
4420
4482
|
function extractFormattedDigitsAndPlus(text) {
|
|
4421
4483
|
var _extractFormattedDigi3 = _extractFormattedDigitsAndPlus(text),
|
|
4422
|
-
_extractFormattedDigi4 = _slicedToArray
|
|
4484
|
+
_extractFormattedDigi4 = _slicedToArray(_extractFormattedDigi3, 2),
|
|
4423
4485
|
formattedDigits = _extractFormattedDigi4[0],
|
|
4424
4486
|
hasPlus = _extractFormattedDigi4[1]; // If the extracted phone number part
|
|
4425
4487
|
// can possibly be a part of some valid phone number
|
|
@@ -4433,23 +4495,23 @@ function extractFormattedDigitsAndPlus(text) {
|
|
|
4433
4495
|
return [formattedDigits, hasPlus];
|
|
4434
4496
|
}
|
|
4435
4497
|
|
|
4436
|
-
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4498
|
+
function _typeof$1(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$1 = function _typeof(obj) { return typeof obj; }; } else { _typeof$1 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$1(obj); }
|
|
4437
4499
|
|
|
4438
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
4500
|
+
function _slicedToArray$1(arr, i) { return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _nonIterableRest$1(); }
|
|
4439
4501
|
|
|
4440
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
4502
|
+
function _nonIterableRest$1() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
4441
4503
|
|
|
4442
|
-
function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
4504
|
+
function _iterableToArrayLimit$1(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
4443
4505
|
|
|
4444
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
4506
|
+
function _arrayWithHoles$1(arr) { if (Array.isArray(arr)) return arr; }
|
|
4445
4507
|
|
|
4446
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
4508
|
+
function _classCallCheck$5(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
4447
4509
|
|
|
4448
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
4510
|
+
function _defineProperties$5(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
4449
4511
|
|
|
4450
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4512
|
+
function _createClass$5(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$5(Constructor.prototype, protoProps); if (staticProps) _defineProperties$5(Constructor, staticProps); return Constructor; }
|
|
4451
4513
|
|
|
4452
|
-
var AsYouType
|
|
4514
|
+
var AsYouType =
|
|
4453
4515
|
/*#__PURE__*/
|
|
4454
4516
|
function () {
|
|
4455
4517
|
/**
|
|
@@ -4457,12 +4519,12 @@ function () {
|
|
|
4457
4519
|
* @param {Object} metadata
|
|
4458
4520
|
*/
|
|
4459
4521
|
function AsYouType(optionsOrDefaultCountry, metadata) {
|
|
4460
|
-
_classCallCheck(this, AsYouType);
|
|
4522
|
+
_classCallCheck$5(this, AsYouType);
|
|
4461
4523
|
|
|
4462
4524
|
this.metadata = new Metadata(metadata);
|
|
4463
4525
|
|
|
4464
4526
|
var _this$getCountryAndCa = this.getCountryAndCallingCode(optionsOrDefaultCountry),
|
|
4465
|
-
_this$getCountryAndCa2 = _slicedToArray(_this$getCountryAndCa, 2),
|
|
4527
|
+
_this$getCountryAndCa2 = _slicedToArray$1(_this$getCountryAndCa, 2),
|
|
4466
4528
|
defaultCountry = _this$getCountryAndCa2[0],
|
|
4467
4529
|
defaultCallingCode = _this$getCountryAndCa2[1];
|
|
4468
4530
|
|
|
@@ -4471,7 +4533,7 @@ function () {
|
|
|
4471
4533
|
this.reset();
|
|
4472
4534
|
}
|
|
4473
4535
|
|
|
4474
|
-
_createClass(AsYouType, [{
|
|
4536
|
+
_createClass$5(AsYouType, [{
|
|
4475
4537
|
key: "getCountryAndCallingCode",
|
|
4476
4538
|
value: function getCountryAndCallingCode(optionsOrDefaultCountry) {
|
|
4477
4539
|
// Set `defaultCountry` and `defaultCallingCode` options.
|
|
@@ -4479,7 +4541,7 @@ function () {
|
|
|
4479
4541
|
var defaultCallingCode; // Turns out `null` also has type "object". Weird.
|
|
4480
4542
|
|
|
4481
4543
|
if (optionsOrDefaultCountry) {
|
|
4482
|
-
if (_typeof(optionsOrDefaultCountry) === 'object') {
|
|
4544
|
+
if (_typeof$1(optionsOrDefaultCountry) === 'object') {
|
|
4483
4545
|
defaultCountry = optionsOrDefaultCountry.defaultCountry;
|
|
4484
4546
|
defaultCallingCode = optionsOrDefaultCountry.defaultCallingCode;
|
|
4485
4547
|
} else {
|
|
@@ -4839,18 +4901,18 @@ function () {
|
|
|
4839
4901
|
return AsYouType;
|
|
4840
4902
|
}();
|
|
4841
4903
|
|
|
4842
|
-
function AsYouType(country) {
|
|
4843
|
-
return AsYouType
|
|
4904
|
+
function AsYouType$1(country) {
|
|
4905
|
+
return AsYouType.call(this, country, metadata)
|
|
4844
4906
|
}
|
|
4845
4907
|
|
|
4846
|
-
AsYouType.prototype = Object.create(AsYouType
|
|
4847
|
-
AsYouType.prototype.constructor = AsYouType;
|
|
4908
|
+
AsYouType$1.prototype = Object.create(AsYouType.prototype, {});
|
|
4909
|
+
AsYouType$1.prototype.constructor = AsYouType$1;
|
|
4848
4910
|
|
|
4849
4911
|
function usePortalRegister(props) {
|
|
4850
4912
|
var _a, _b, _c, _d, _e, _f;
|
|
4851
4913
|
const formRef = stencilHooks_module.useRef(null);
|
|
4852
4914
|
const { validationState, setValidationState } = useValidationState({});
|
|
4853
|
-
const [request, { loading, errors, data }] = index_module.
|
|
4915
|
+
const [request, { loading, errors, data }] = index_module.Ve();
|
|
4854
4916
|
const submit = async (event) => {
|
|
4855
4917
|
let formControls = event.target.getFormControls();
|
|
4856
4918
|
let formData = {};
|
|
@@ -4909,13 +4971,13 @@ function usePortalRegister(props) {
|
|
|
4909
4971
|
const name = (_b = (_a = e.target) === null || _a === void 0 ? void 0 : _a.type) === null || _b === void 0 ? void 0 : _b.toLowerCase();
|
|
4910
4972
|
if (name !== "tel")
|
|
4911
4973
|
return;
|
|
4912
|
-
const asYouType = new AsYouType("US");
|
|
4974
|
+
const asYouType = new AsYouType$1("US");
|
|
4913
4975
|
e.target.value = asYouType.input(e.target.value);
|
|
4914
4976
|
}, []);
|
|
4915
4977
|
stencilHooks_module.useEffect(() => {
|
|
4916
4978
|
var _a;
|
|
4917
4979
|
if ((_a = data === null || data === void 0 ? void 0 : data.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
4918
|
-
index_module.
|
|
4980
|
+
index_module.pn.push(props.nextPage);
|
|
4919
4981
|
}
|
|
4920
4982
|
}, [(_a = data === null || data === void 0 ? void 0 : data.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token]);
|
|
4921
4983
|
stencilHooks_module.useEffect(() => {
|
|
@@ -4957,7 +5019,7 @@ function usePortalRegister(props) {
|
|
|
4957
5019
|
};
|
|
4958
5020
|
}
|
|
4959
5021
|
|
|
4960
|
-
|
|
5022
|
+
const PortalRegister = class {
|
|
4961
5023
|
constructor(hostRef) {
|
|
4962
5024
|
index.registerInstance(this, hostRef);
|
|
4963
5025
|
this.ignored = true;
|
|
@@ -5015,12 +5077,12 @@ let PortalRegister = class {
|
|
|
5015
5077
|
}
|
|
5016
5078
|
disconnectedCallback() { }
|
|
5017
5079
|
render() {
|
|
5018
|
-
const { states, callbacks, refs } = index_module.
|
|
5080
|
+
const { states, callbacks, refs } = index_module.k()
|
|
5019
5081
|
? useRegisterDemo(this)
|
|
5020
5082
|
: usePortalRegister(this);
|
|
5021
5083
|
const content = {
|
|
5022
5084
|
formData: index.h("slot", { name: "formData" }),
|
|
5023
|
-
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.
|
|
5085
|
+
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.pn.push(states.loginPath) }, this.loginLabel))),
|
|
5024
5086
|
terms: index.h("slot", { name: "terms" }),
|
|
5025
5087
|
emailLabel: this.emailLabel,
|
|
5026
5088
|
passwordLabel: this.passwordLabel,
|
|
@@ -5096,7 +5158,7 @@ function ProgramExplainerView(props, children) {
|
|
|
5096
5158
|
index.h("div", { class: sheet.classes.Grid }, children)));
|
|
5097
5159
|
}
|
|
5098
5160
|
|
|
5099
|
-
|
|
5161
|
+
const ProgramExplainer = class {
|
|
5100
5162
|
constructor(hostRef) {
|
|
5101
5163
|
index.registerInstance(this, hostRef);
|
|
5102
5164
|
this.ignored = true;
|
|
@@ -5168,7 +5230,7 @@ function ProgramExplainerStepView(props) {
|
|
|
5168
5230
|
index.h("div", { class: sheet.classes.Description }, props.description))));
|
|
5169
5231
|
}
|
|
5170
5232
|
|
|
5171
|
-
|
|
5233
|
+
const ProgramExplainerStep = class {
|
|
5172
5234
|
constructor(hostRef) {
|
|
5173
5235
|
index.registerInstance(this, hostRef);
|
|
5174
5236
|
stencilHooks_module.h$1(this);
|
|
@@ -5179,14 +5241,14 @@ let ProgramExplainerStep = class {
|
|
|
5179
5241
|
}
|
|
5180
5242
|
};
|
|
5181
5243
|
|
|
5182
|
-
const debug
|
|
5244
|
+
const debug = stencilHooks_module.browser('sq:useProgramMenu');
|
|
5183
5245
|
const UPDATE_PROGRAM_EVENT = 'sq:update-program-id';
|
|
5184
5246
|
function useProgramMenu(props) {
|
|
5185
5247
|
const programId = index_module.M();
|
|
5186
5248
|
const host = index_module.P();
|
|
5187
|
-
debug
|
|
5249
|
+
debug({ programId, props });
|
|
5188
5250
|
const ref = stencilHooks_module.useRef();
|
|
5189
|
-
const [, rerender] = index_module.
|
|
5251
|
+
const [, rerender] = index_module.dn();
|
|
5190
5252
|
stencilHooks_module.useEffect(() => {
|
|
5191
5253
|
var _a;
|
|
5192
5254
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener('sl-select', (e) => {
|
|
@@ -5210,7 +5272,7 @@ function useProgramMenu(props) {
|
|
|
5210
5272
|
};
|
|
5211
5273
|
}
|
|
5212
5274
|
|
|
5213
|
-
|
|
5275
|
+
const ProgramMenu = class {
|
|
5214
5276
|
constructor(hostRef) {
|
|
5215
5277
|
index.registerInstance(this, hostRef);
|
|
5216
5278
|
this.ignored = true;
|
|
@@ -5289,7 +5351,7 @@ function ReferralCardView(props) {
|
|
|
5289
5351
|
index.h("div", { class: "right" }, props.slots.right))));
|
|
5290
5352
|
}
|
|
5291
5353
|
|
|
5292
|
-
|
|
5354
|
+
const ReferralCard = class {
|
|
5293
5355
|
constructor(hostRef) {
|
|
5294
5356
|
index.registerInstance(this, hostRef);
|
|
5295
5357
|
this.ignored = true;
|
|
@@ -5329,8 +5391,8 @@ const GET_USER_DETAILS = index_module.dist.gql `
|
|
|
5329
5391
|
function useReferralIframe(props) {
|
|
5330
5392
|
var _a;
|
|
5331
5393
|
const programId = index_module.M();
|
|
5332
|
-
const user = index_module.
|
|
5333
|
-
const { data } = index_module.
|
|
5394
|
+
const user = index_module.ne();
|
|
5395
|
+
const { data } = index_module.mn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
5334
5396
|
return {
|
|
5335
5397
|
states: {
|
|
5336
5398
|
content: props,
|
|
@@ -5386,7 +5448,7 @@ function RequiredPropsError({ missingProps }) {
|
|
|
5386
5448
|
index.h("strong", null, prop.attribute))))))));
|
|
5387
5449
|
}
|
|
5388
5450
|
|
|
5389
|
-
|
|
5451
|
+
const SqmReferralIframe = class {
|
|
5390
5452
|
constructor(hostRef) {
|
|
5391
5453
|
index.registerInstance(this, hostRef);
|
|
5392
5454
|
this.ignored = true;
|
|
@@ -5411,7 +5473,7 @@ let SqmReferralIframe = class {
|
|
|
5411
5473
|
if (missingProps) {
|
|
5412
5474
|
return index.h(RequiredPropsError, { missingProps: missingProps });
|
|
5413
5475
|
}
|
|
5414
|
-
const { states, data } = index_module.
|
|
5476
|
+
const { states, data } = index_module.k()
|
|
5415
5477
|
? useReferralIframeDemo(utils.getProps(this))
|
|
5416
5478
|
: useReferralIframe(utils.getProps(this));
|
|
5417
5479
|
return (index.h(index.Host, { style: { display: "contents" } }, index.h(AutoColor.ReferralIframeView, { data: data, states: states })));
|
|
@@ -6098,9 +6160,9 @@ function useRewardExchangeList(props) {
|
|
|
6098
6160
|
});
|
|
6099
6161
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
6100
6162
|
const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
|
|
6101
|
-
const user = index_module.
|
|
6102
|
-
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = index_module.
|
|
6103
|
-
const { data, loading, refetch, errors: queryError, } = index_module.
|
|
6163
|
+
const user = index_module.ne();
|
|
6164
|
+
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = index_module.De(EXCHANGE);
|
|
6165
|
+
const { data, loading, refetch, errors: queryError, } = index_module.mn(GET_EXCHANGE_LIST, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
6104
6166
|
stencilHooks_module.useEffect(() => {
|
|
6105
6167
|
var _a, _b;
|
|
6106
6168
|
if ((_b = (_a = exchangeResponse === null || exchangeResponse === void 0 ? void 0 : exchangeResponse.exchangeReward) === null || _a === void 0 ? void 0 : _a.reward) === null || _b === void 0 ? void 0 : _b.id) {
|
|
@@ -6120,7 +6182,7 @@ function useRewardExchangeList(props) {
|
|
|
6120
6182
|
canvas.confetti || confetti.create(canvas, { resize: true, });
|
|
6121
6183
|
canvas.confetti();
|
|
6122
6184
|
}, [canvasRef.current]);
|
|
6123
|
-
const { refresh } = index_module.
|
|
6185
|
+
const { refresh } = index_module.Qe();
|
|
6124
6186
|
async function exchangeReward() {
|
|
6125
6187
|
if (!selectedItem)
|
|
6126
6188
|
return;
|
|
@@ -6233,7 +6295,7 @@ function useRewardExchangeList(props) {
|
|
|
6233
6295
|
};
|
|
6234
6296
|
}
|
|
6235
6297
|
|
|
6236
|
-
|
|
6298
|
+
const SqmRewardExchangeList = class {
|
|
6237
6299
|
constructor(hostRef) {
|
|
6238
6300
|
index.registerInstance(this, hostRef);
|
|
6239
6301
|
this.ignored = true;
|
|
@@ -6358,7 +6420,7 @@ let SqmRewardExchangeList = class {
|
|
|
6358
6420
|
// if (missingProps) {
|
|
6359
6421
|
// return <RequiredPropsError missingProps={missingProps} />;
|
|
6360
6422
|
// }
|
|
6361
|
-
const { states, data, callbacks, refs } = index_module.
|
|
6423
|
+
const { states, data, callbacks, refs } = index_module.k()
|
|
6362
6424
|
? useRewardExchangeListDemo(utils.getProps(this))
|
|
6363
6425
|
: useRewardExchangeList(utils.getProps(this));
|
|
6364
6426
|
return (index.h(index.Host, { style: { display: "contents" } }, index.h(AutoColor.RewardExchangeView, { states: states, data: data, callbacks: callbacks, refs: refs })));
|
|
@@ -6394,7 +6456,7 @@ function useRewardExchangeListDemo(props) {
|
|
|
6394
6456
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
6395
6457
|
}
|
|
6396
6458
|
|
|
6397
|
-
const debug = stencilHooks_module.browser("sq:useRouter");
|
|
6459
|
+
const debug$1 = stencilHooks_module.browser("sq:useRouter");
|
|
6398
6460
|
function matchPath(pattern, page) {
|
|
6399
6461
|
if (!pattern)
|
|
6400
6462
|
return;
|
|
@@ -6402,7 +6464,7 @@ function matchPath(pattern, page) {
|
|
|
6402
6464
|
return regexp.exec(page);
|
|
6403
6465
|
}
|
|
6404
6466
|
function useRouter() {
|
|
6405
|
-
const location = index_module.
|
|
6467
|
+
const location = index_module.hn();
|
|
6406
6468
|
const host = index_module.P();
|
|
6407
6469
|
const [slot, setSlot] = stencilHooks_module.useState(undefined);
|
|
6408
6470
|
const [container, setContainer] = stencilHooks_module.useState(undefined);
|
|
@@ -6422,7 +6484,7 @@ function useRouter() {
|
|
|
6422
6484
|
stencilHooks_module.useEffect(() => {
|
|
6423
6485
|
var _a, _b;
|
|
6424
6486
|
if (!container || !slot) {
|
|
6425
|
-
debug("DOM not ready for navigation rendering on:", page);
|
|
6487
|
+
debug$1("DOM not ready for navigation rendering on:", page);
|
|
6426
6488
|
return;
|
|
6427
6489
|
}
|
|
6428
6490
|
// <template>
|
|
@@ -6437,7 +6499,7 @@ function useRouter() {
|
|
|
6437
6499
|
});
|
|
6438
6500
|
//@ts-ignore - can't access template attributes directly
|
|
6439
6501
|
const templatePath = (_b = (_a = template === null || template === void 0 ? void 0 : template.attributes) === null || _a === void 0 ? void 0 : _a.path) === null || _b === void 0 ? void 0 : _b.nodeValue;
|
|
6440
|
-
debug({
|
|
6502
|
+
debug$1({
|
|
6441
6503
|
containerDatasetPage: container.dataset.page,
|
|
6442
6504
|
templatePath,
|
|
6443
6505
|
page,
|
|
@@ -6445,15 +6507,15 @@ function useRouter() {
|
|
|
6445
6507
|
// if no routes found, and the old route doesn't match the new route
|
|
6446
6508
|
if (!template) {
|
|
6447
6509
|
// No matching page, display nothing
|
|
6448
|
-
debug("No matching page found for ", page, ", so render nothing");
|
|
6510
|
+
debug$1("No matching page found for ", page, ", so render nothing");
|
|
6449
6511
|
container.innerHTML = "";
|
|
6450
6512
|
container.dataset.page = page;
|
|
6451
6513
|
return;
|
|
6452
6514
|
}
|
|
6453
|
-
debug("Page updated to ", page, template);
|
|
6515
|
+
debug$1("Page updated to ", page, template);
|
|
6454
6516
|
// if pathToRegexp results truthy or page is an exact match
|
|
6455
6517
|
if (!!matchPath(templatePath, container.dataset.page)) {
|
|
6456
|
-
debug("don't rerender");
|
|
6518
|
+
debug$1("don't rerender");
|
|
6457
6519
|
// Same page, do not re-render
|
|
6458
6520
|
// Reduces dom mutations, speeds up page speed
|
|
6459
6521
|
}
|
|
@@ -6472,7 +6534,7 @@ function useRouter() {
|
|
|
6472
6534
|
|
|
6473
6535
|
const sqmRouterCss = "sqm-router{display:contents}";
|
|
6474
6536
|
|
|
6475
|
-
|
|
6537
|
+
const SqmRouter = class {
|
|
6476
6538
|
constructor(hostRef) {
|
|
6477
6539
|
index.registerInstance(this, hostRef);
|
|
6478
6540
|
this.ignored = true;
|
|
@@ -6488,7 +6550,7 @@ SqmRouter.style = sqmRouterCss;
|
|
|
6488
6550
|
|
|
6489
6551
|
const sqmShareButtonCss = ":host{display:block}:host([hidden]){display:none}sl-button{display:block}";
|
|
6490
6552
|
|
|
6491
|
-
|
|
6553
|
+
const ShareButton = class {
|
|
6492
6554
|
constructor(hostRef) {
|
|
6493
6555
|
index.registerInstance(this, hostRef);
|
|
6494
6556
|
/**
|
|
@@ -6517,7 +6579,7 @@ let ShareButton = class {
|
|
|
6517
6579
|
disconnectedCallback() { }
|
|
6518
6580
|
render() {
|
|
6519
6581
|
const thisProps = utils.getProps(this);
|
|
6520
|
-
const props = index_module.
|
|
6582
|
+
const props = index_module.k()
|
|
6521
6583
|
? useDemoShareButton(thisProps)
|
|
6522
6584
|
: AutoColor.useShareButton(thisProps);
|
|
6523
6585
|
return (index.h(AutoColor.ShareButtonView, Object.assign({}, props), index.h("slot", null)));
|
|
@@ -6552,10 +6614,10 @@ const WIDGET_ENGAGEMENT_EVENT = index_module.dist.gql `
|
|
|
6552
6614
|
function useShareCode(props) {
|
|
6553
6615
|
var _a, _b;
|
|
6554
6616
|
const programId = index_module.M();
|
|
6555
|
-
const user = index_module.
|
|
6556
|
-
const engagementMedium = index_module.
|
|
6557
|
-
const { data } = index_module.
|
|
6558
|
-
const [sendLoadEvent] = index_module.
|
|
6617
|
+
const user = index_module.ne();
|
|
6618
|
+
const engagementMedium = index_module.x();
|
|
6619
|
+
const { data } = index_module.mn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
6620
|
+
const [sendLoadEvent] = index_module.De(WIDGET_ENGAGEMENT_EVENT);
|
|
6559
6621
|
const shareString = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.referralCode) !== null && _b !== void 0 ? _b :
|
|
6560
6622
|
// Shown during loading
|
|
6561
6623
|
"...";
|
|
@@ -6582,8 +6644,8 @@ function useShareCode(props) {
|
|
|
6582
6644
|
return { ...props, onClick, open, shareString };
|
|
6583
6645
|
}
|
|
6584
6646
|
|
|
6585
|
-
const DEFAULT_TOOLTIP_LIFESPAN
|
|
6586
|
-
|
|
6647
|
+
const DEFAULT_TOOLTIP_LIFESPAN = 1000;
|
|
6648
|
+
const ShareCode = class {
|
|
6587
6649
|
constructor(hostRef) {
|
|
6588
6650
|
index.registerInstance(this, hostRef);
|
|
6589
6651
|
/**
|
|
@@ -6597,13 +6659,13 @@ let ShareCode = class {
|
|
|
6597
6659
|
*
|
|
6598
6660
|
* @uiName Tooltip lifespan
|
|
6599
6661
|
*/
|
|
6600
|
-
this.tooltiplifespan = DEFAULT_TOOLTIP_LIFESPAN
|
|
6662
|
+
this.tooltiplifespan = DEFAULT_TOOLTIP_LIFESPAN;
|
|
6601
6663
|
stencilHooks_module.h$1(this);
|
|
6602
6664
|
}
|
|
6603
6665
|
disconnectedCallback() { }
|
|
6604
6666
|
render() {
|
|
6605
6667
|
const thisProps = utils.getProps(this);
|
|
6606
|
-
const props = index_module.
|
|
6668
|
+
const props = index_module.k()
|
|
6607
6669
|
? useDemoShareCode(thisProps)
|
|
6608
6670
|
: useShareCode(thisProps);
|
|
6609
6671
|
return index.h(AutoColor.ShareLinkView, Object.assign({}, props));
|
|
@@ -6626,8 +6688,8 @@ function useDemoShareCode(props) {
|
|
|
6626
6688
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
6627
6689
|
}
|
|
6628
6690
|
|
|
6629
|
-
const DEFAULT_TOOLTIP_LIFESPAN = 1000;
|
|
6630
|
-
|
|
6691
|
+
const DEFAULT_TOOLTIP_LIFESPAN$1 = 1000;
|
|
6692
|
+
const ShareLink = class {
|
|
6631
6693
|
constructor(hostRef) {
|
|
6632
6694
|
index.registerInstance(this, hostRef);
|
|
6633
6695
|
/**
|
|
@@ -6641,13 +6703,13 @@ let ShareLink = class {
|
|
|
6641
6703
|
*
|
|
6642
6704
|
* @uiName Tooltip lifespan
|
|
6643
6705
|
*/
|
|
6644
|
-
this.tooltiplifespan = DEFAULT_TOOLTIP_LIFESPAN;
|
|
6706
|
+
this.tooltiplifespan = DEFAULT_TOOLTIP_LIFESPAN$1;
|
|
6645
6707
|
stencilHooks_module.h$1(this);
|
|
6646
6708
|
}
|
|
6647
6709
|
disconnectedCallback() { }
|
|
6648
6710
|
render() {
|
|
6649
6711
|
const thisProps = utils.getProps(this);
|
|
6650
|
-
const props = index_module.
|
|
6712
|
+
const props = index_module.k()
|
|
6651
6713
|
? useDemoShareLink(thisProps)
|
|
6652
6714
|
: AutoColor.useShareLink(thisProps);
|
|
6653
6715
|
return index.h(AutoColor.ShareLinkView, Object.assign({}, props));
|
|
@@ -6678,10 +6740,10 @@ const SEND_EVENT = index_module.dist.gql `
|
|
|
6678
6740
|
}
|
|
6679
6741
|
`;
|
|
6680
6742
|
function useTaskCard(props) {
|
|
6681
|
-
const user = index_module.
|
|
6682
|
-
const locale = index_module.
|
|
6683
|
-
const [sendUserEvent, { data, loading: loadingEvent }] = index_module.
|
|
6684
|
-
const { refresh } = index_module.
|
|
6743
|
+
const user = index_module.ne();
|
|
6744
|
+
const locale = index_module.R();
|
|
6745
|
+
const [sendUserEvent, { data, loading: loadingEvent }] = index_module.De(SEND_EVENT);
|
|
6746
|
+
const { refresh } = index_module.Qe();
|
|
6685
6747
|
stencilHooks_module.useEffect(() => {
|
|
6686
6748
|
if (data) {
|
|
6687
6749
|
refresh();
|
|
@@ -6711,7 +6773,7 @@ function useTaskCard(props) {
|
|
|
6711
6773
|
};
|
|
6712
6774
|
}
|
|
6713
6775
|
|
|
6714
|
-
|
|
6776
|
+
const TaskCard = class {
|
|
6715
6777
|
constructor(hostRef) {
|
|
6716
6778
|
index.registerInstance(this, hostRef);
|
|
6717
6779
|
this.ignored = true;
|
|
@@ -6813,11 +6875,11 @@ let TaskCard = class {
|
|
|
6813
6875
|
}
|
|
6814
6876
|
disconnectedCallback() { }
|
|
6815
6877
|
render() {
|
|
6816
|
-
const { props } = index_module.
|
|
6878
|
+
const { props } = index_module.k()
|
|
6817
6879
|
? useDemoBigStat.useDemoBigStat(this)
|
|
6818
6880
|
: useDemoBigStat.useBigStat({ ...utils.getProps(this), programId: this.programId });
|
|
6819
6881
|
const { value, loading } = props;
|
|
6820
|
-
const { states, callbacks } = index_module.
|
|
6882
|
+
const { states, callbacks } = index_module.k()
|
|
6821
6883
|
? useTaskCardDemo(this)
|
|
6822
6884
|
: useTaskCard(this);
|
|
6823
6885
|
return (index.h(AutoColor.TaskCardView, { callbacks: callbacks, states: {
|
|
@@ -6838,7 +6900,7 @@ function useTaskCardDemo(props) {
|
|
|
6838
6900
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
6839
6901
|
}
|
|
6840
6902
|
|
|
6841
|
-
|
|
6903
|
+
const Timeline = class {
|
|
6842
6904
|
constructor(hostRef) {
|
|
6843
6905
|
index.registerInstance(this, hostRef);
|
|
6844
6906
|
this.ignored = true;
|
|
@@ -6854,7 +6916,12 @@ let Timeline = class {
|
|
|
6854
6916
|
render() {
|
|
6855
6917
|
//@ts-ignore
|
|
6856
6918
|
const rewards = useChildElements.useChildElements();
|
|
6857
|
-
rewards.forEach((reward) =>
|
|
6919
|
+
rewards.forEach((reward, idx) => {
|
|
6920
|
+
if (rewards.length > 1 && idx != rewards.length - 1) {
|
|
6921
|
+
reward.line = true;
|
|
6922
|
+
}
|
|
6923
|
+
reward.icon = this.icon;
|
|
6924
|
+
});
|
|
6858
6925
|
const vanillaStyle = `
|
|
6859
6926
|
:host{
|
|
6860
6927
|
display: block;
|
|
@@ -6863,7 +6930,7 @@ let Timeline = class {
|
|
|
6863
6930
|
// ::slotted(*:not(:only-child):not(:last-child)) {
|
|
6864
6931
|
// margin-bottom: var(--sl-spacing-xx-large);
|
|
6865
6932
|
// }
|
|
6866
|
-
|
|
6933
|
+
|
|
6867
6934
|
// ::slotted(*:not(:only-child):not(:last-child))::before {
|
|
6868
6935
|
// display: block;
|
|
6869
6936
|
// content: "";
|
|
@@ -6887,20 +6954,20 @@ let Timeline = class {
|
|
|
6887
6954
|
|
|
6888
6955
|
|
|
6889
6956
|
// ZH: Temporary Patch fix
|
|
6890
|
-
::slotted(*:not(:first-child))::before {
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6901
|
-
|
|
6902
|
-
|
|
6903
|
-
|
|
6957
|
+
// ::slotted(*:not(:first-child))::before {
|
|
6958
|
+
// display: block;
|
|
6959
|
+
// position: relative;
|
|
6960
|
+
// content: "";
|
|
6961
|
+
// background: var(--sl-color-primary-300);
|
|
6962
|
+
// min-height: 150px;
|
|
6963
|
+
// max-height: 300px;
|
|
6964
|
+
// width: 4px;
|
|
6965
|
+
// top: 12px;
|
|
6966
|
+
// left: 10px;
|
|
6967
|
+
// margin-top: -85px;
|
|
6968
|
+
// margin-bottom: 8px;
|
|
6969
|
+
// border-radius: 4px;
|
|
6970
|
+
// }
|
|
6904
6971
|
`;
|
|
6905
6972
|
return (index.h("div", null, index.h("style", { type: "text/css" }, vanillaStyle), index.h("slot", null)));
|
|
6906
6973
|
}
|
|
@@ -6914,7 +6981,7 @@ const Gift = () => (index.h("svg", { width: "24", height: "24", viewBox: "0 0 24
|
|
|
6914
6981
|
const Circle = () => (index.h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
6915
6982
|
index.h("circle", { cx: "12", cy: "12", r: "9", fill: "currentColor", stroke: "currentColor", "stroke-width": "2" })));
|
|
6916
6983
|
|
|
6917
|
-
|
|
6984
|
+
const TimelineReward = class {
|
|
6918
6985
|
constructor(hostRef) {
|
|
6919
6986
|
index.registerInstance(this, hostRef);
|
|
6920
6987
|
this.ignored = true;
|
|
@@ -6932,6 +6999,21 @@ let TimelineReward = class {
|
|
|
6932
6999
|
TimelineReward: {
|
|
6933
7000
|
color: "var(--sl-color-neutral-900)",
|
|
6934
7001
|
lineHeight: "var(--sl-line-height-dense)",
|
|
7002
|
+
"& .container": {
|
|
7003
|
+
display: "flex",
|
|
7004
|
+
},
|
|
7005
|
+
"& .line": {
|
|
7006
|
+
color: "transparent",
|
|
7007
|
+
userSelect: "none",
|
|
7008
|
+
background: "var(--sl-color-primary-300)",
|
|
7009
|
+
width: "4px",
|
|
7010
|
+
borderRadius: "4px",
|
|
7011
|
+
margin: "-2px",
|
|
7012
|
+
position: "relative",
|
|
7013
|
+
left: "12px",
|
|
7014
|
+
transform: "scaleY(0.95)",
|
|
7015
|
+
top: "16px",
|
|
7016
|
+
},
|
|
6935
7017
|
"& .step": {
|
|
6936
7018
|
display: "flex",
|
|
6937
7019
|
minHeight: "100px",
|
|
@@ -6954,13 +7036,7 @@ let TimelineReward = class {
|
|
|
6954
7036
|
},
|
|
6955
7037
|
"& .description": {
|
|
6956
7038
|
fontSize: "var(--sl-font-size-large)",
|
|
6957
|
-
|
|
6958
|
-
"& .line": {
|
|
6959
|
-
height: "50px",
|
|
6960
|
-
position: "relative",
|
|
6961
|
-
left: "10px",
|
|
6962
|
-
top: "-32px",
|
|
6963
|
-
color: "var(--sl-color-primary-300)",
|
|
7039
|
+
marginBottom: "var(--sl-spacing-xx-large)",
|
|
6964
7040
|
},
|
|
6965
7041
|
},
|
|
6966
7042
|
};
|
|
@@ -6972,7 +7048,7 @@ let TimelineReward = class {
|
|
|
6972
7048
|
}
|
|
6973
7049
|
`;
|
|
6974
7050
|
useChildElements.useRequestRerender([this.reward]);
|
|
6975
|
-
return (index.h("div", { class: sheet.classes.TimelineReward }, index.h("style", { type: "text/css" }, styleString, vanillaStyle), index.h("div", { class: "step" }, this.icon === "gift" && (index.h("div", { class: "icon" }, index.h(Gift, null))), this.icon === "circle" && (index.h("div", { class: "icon" }, index.h(Circle, null))), index.h("div", null, index.h("div", null, index.h("span", { class: "reward" }, this.reward), index.h("span", { class: "unit" }, this.unit)), index.h("div", { class: "description" }, this.desc)))));
|
|
7051
|
+
return (index.h("div", { class: sheet.classes.TimelineReward }, index.h("style", { type: "text/css" }, styleString, vanillaStyle), index.h("div", { class: "container" }, this.line && index.h("div", { class: "line" }, "."), index.h("div", { class: "step" }, this.icon === "gift" && (index.h("div", { class: "icon" }, index.h(Gift, null))), this.icon === "circle" && (index.h("div", { class: "icon" }, index.h(Circle, null))), index.h("div", null, index.h("div", null, index.h("span", { class: "reward" }, this.reward), index.h("span", { class: "unit" }, this.unit)), index.h("div", { class: "description" }, this.desc))))));
|
|
6976
7052
|
}
|
|
6977
7053
|
};
|
|
6978
7054
|
|
|
@@ -6992,8 +7068,8 @@ const GET_USER_NAME = index_module.dist.gql `
|
|
|
6992
7068
|
`;
|
|
6993
7069
|
function useUserName(props) {
|
|
6994
7070
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
6995
|
-
const user = index_module.
|
|
6996
|
-
const res = index_module.
|
|
7071
|
+
const user = index_module.ne();
|
|
7072
|
+
const res = index_module.mn(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
6997
7073
|
const loading = res.loading;
|
|
6998
7074
|
const username = ((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.firstName) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.lastName)
|
|
6999
7075
|
? `${(_f = (_e = res.data) === null || _e === void 0 ? void 0 : _e.viewer) === null || _f === void 0 ? void 0 : _f.firstName} ${(_h = (_g = res.data) === null || _g === void 0 ? void 0 : _g.viewer) === null || _h === void 0 ? void 0 : _h.lastName}`
|
|
@@ -7005,7 +7081,7 @@ function useUserName(props) {
|
|
|
7005
7081
|
};
|
|
7006
7082
|
}
|
|
7007
7083
|
|
|
7008
|
-
|
|
7084
|
+
const UserName = class {
|
|
7009
7085
|
constructor(hostRef) {
|
|
7010
7086
|
index.registerInstance(this, hostRef);
|
|
7011
7087
|
this._ignored = true;
|
|
@@ -7021,7 +7097,7 @@ let UserName = class {
|
|
|
7021
7097
|
}
|
|
7022
7098
|
disconnectedCallback() { }
|
|
7023
7099
|
render() {
|
|
7024
|
-
const props = index_module.
|
|
7100
|
+
const props = index_module.k() ? useUserNameDemo(this) : useUserName(this);
|
|
7025
7101
|
return index.h(UserNameView, Object.assign({}, props));
|
|
7026
7102
|
}
|
|
7027
7103
|
};
|
|
@@ -7037,8 +7113,9 @@ exports.sqm_brand = BrandComponent;
|
|
|
7037
7113
|
exports.sqm_card_feed = CardFeed;
|
|
7038
7114
|
exports.sqm_divided_layout = DividedLayout;
|
|
7039
7115
|
exports.sqm_edit_profile = EditProfile;
|
|
7116
|
+
exports.sqm_hero_image = HeroImage;
|
|
7040
7117
|
exports.sqm_hook_story_container = SqmHookStoryContainer;
|
|
7041
|
-
exports.
|
|
7118
|
+
exports.sqm_image = Image;
|
|
7042
7119
|
exports.sqm_navigation_menu = NavigationMenu;
|
|
7043
7120
|
exports.sqm_portal_change_password = PortalChangePassword;
|
|
7044
7121
|
exports.sqm_portal_container = PortalContainer;
|