@hhgtech/hhg-components 1.29.87 → 1.29.89
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/build/{LastPeriod-671d5143.js → LastPeriod-c8c46da3.js} +1 -1
- package/build/MobileBottomNavigationIcon-efacfc0c.js +193 -0
- package/build/{WhatsApp-07eb4e4a.js → WhatsApp-8a1d6d0c.js} +1 -1
- package/build/adapters.js +18 -16
- package/build/atoms.js +47 -45
- package/build/babyGrowth.js +82 -80
- package/build/cache.js +2 -2
- package/build/care.js +28 -25
- package/build/careBookingSearchBar.js +1594 -0
- package/build/careBookingSearchBarV2.js +1665 -0
- package/build/components.js +125 -115
- package/build/{constants-970e6cf6.js → constants-f5c5e2ae.js} +1 -1
- package/build/constants.js +3 -3
- package/build/constantsDomainLocales.js +1 -1
- package/build/constantsRiskScreener.js +2 -2
- package/build/constantsSite.js +2 -2
- package/build/{core-bcde5ba8.js → core-58a245c5.js} +1 -1
- package/build/{dataTransform-567bc0c2.js → dataTransform-9ec385e3.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/editor-40386fe7.js +986 -0
- package/build/embeddedHeathToolCards_babyGrowth.js +22 -20
- package/build/embeddedHeathToolCards_babyPoop.js +18 -16
- package/build/embeddedHeathToolCards_babyVaccine.js +21 -19
- package/build/embeddedHeathToolCards_bmi_bmi.js +25 -23
- package/build/embeddedHeathToolCards_bmrBmr.js +25 -23
- package/build/embeddedHeathToolCards_dueDate_dueDate.js +21 -19
- package/build/embeddedHeathToolCards_ovulation_ovulation.js +21 -19
- package/build/embeddedHeathToolCards_pwg_pwg.js +26 -24
- package/build/embeddedHeathToolCards_targetHeartRate.js +27 -25
- package/build/esm/{LastPeriod-ebfcf053.js → LastPeriod-46d6c03f.js} +1 -1
- package/build/esm/MobileBottomNavigationIcon-ae6490d7.js +185 -0
- package/build/esm/{WhatsApp-c6c8eded.js → WhatsApp-ed8ce0f2.js} +1 -1
- package/build/esm/adapters.js +18 -16
- package/build/esm/atoms.js +44 -42
- package/build/esm/babyGrowth.js +82 -80
- package/build/esm/cache.js +2 -2
- package/build/esm/care.js +26 -23
- package/build/esm/careBookingSearchBar.js +1582 -0
- package/build/esm/careBookingSearchBarV2.js +1655 -0
- package/build/esm/components.js +93 -83
- package/build/esm/{constants-bdf5e358.js → constants-e9ebe043.js} +1 -1
- package/build/esm/constants.js +3 -3
- package/build/esm/constantsDomainLocales.js +1 -1
- package/build/esm/constantsRiskScreener.js +2 -2
- package/build/esm/constantsSite.js +2 -2
- package/build/esm/{core-b4f1131e.js → core-6d8629c2.js} +1 -1
- package/build/esm/{dataTransform-ad9d785b.js → dataTransform-2023858d.js} +2 -2
- package/build/esm/ecom.js +4 -4
- package/build/esm/editor-82c3d476.js +959 -0
- package/build/esm/embeddedHeathToolCards_babyGrowth.js +22 -20
- package/build/esm/embeddedHeathToolCards_babyPoop.js +18 -16
- package/build/esm/embeddedHeathToolCards_babyVaccine.js +21 -19
- package/build/esm/embeddedHeathToolCards_bmi_bmi.js +25 -23
- package/build/esm/embeddedHeathToolCards_bmrBmr.js +25 -23
- package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +21 -19
- package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +21 -19
- package/build/esm/embeddedHeathToolCards_pwg_pwg.js +26 -24
- package/build/esm/embeddedHeathToolCards_targetHeartRate.js +27 -25
- package/build/esm/{fixedBottomAdBlock-e5747eb3.js → fixedBottomAdBlock-2af1606f.js} +26 -662
- package/build/esm/footer.js +20 -18
- package/build/esm/gAssets.js +2 -2
- package/build/esm/healthToolsCardWrapper.js +17 -15
- package/build/esm/healthToolsForm.js +33 -31
- package/build/esm/hooks.js +15 -15
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-9d2cc0b2.js → index-04ba5caa.js} +1 -1
- package/build/esm/{index-8f953b02.js → index-082a24ae.js} +12 -11
- package/build/esm/{index-46a2a5d7.js → index-1313a7ac.js} +12 -11
- package/build/esm/{index-1322446c.js → index-13783871.js} +2 -2
- package/build/esm/{index-3685677f.js → index-16a4f1c7.js} +16 -15
- package/build/esm/{index-cc650c45.js → index-19f27bd3.js} +2 -2
- package/build/esm/{index-7c6e33e0.js → index-1a2bc551.js} +2 -2
- package/build/esm/{index-029c478e.js → index-275c8526.js} +14 -13
- package/build/esm/{index-e7c62f10.js → index-277566f7.js} +1 -1
- package/build/esm/{index-240e2930.js → index-2ac50d8f.js} +15 -14
- package/build/esm/{index-0f6906bb.js → index-2c4a2d31.js} +1 -1
- package/build/esm/{index-69dd7596.js → index-32a968a1.js} +6 -6
- package/build/esm/{index-0025652b.js → index-346fd194.js} +21 -19
- package/build/esm/{index-d4941998.js → index-38b87b21.js} +12 -11
- package/build/esm/{index-27a9a555.js → index-46c22744.js} +6 -6
- package/build/esm/index-4cf37916.js +22 -0
- package/build/esm/{index-5407e81e.js → index-4d27d02e.js} +15 -14
- package/build/esm/{index-dbb0b265.js → index-52d04cc5.js} +7 -7
- package/build/esm/index-538ca8aa.js +860 -0
- package/build/esm/{index-691f32bb.js → index-57da0f13.js} +16 -88
- package/build/esm/{index-2449d246.js → index-5e17f985.js} +16 -15
- package/build/esm/{index-ffd3c918.js → index-605eed95.js} +35 -800
- package/build/esm/{index-b1022535.js → index-628c5e84.js} +2 -2
- package/build/esm/{index-0cc19c33.js → index-64b1cd5c.js} +1 -1
- package/build/esm/index-673fd5bd.js +1264 -0
- package/build/esm/{index-804dcc5a.js → index-70883b48.js} +17 -16
- package/build/esm/{index-32114d1a.js → index-71c8b83f.js} +3 -142
- package/build/esm/{index-1f077f71.js → index-72c269cf.js} +3 -3
- package/build/esm/index-7ad9db02.js +1030 -0
- package/build/esm/{index-394c352b.js → index-7ca4ec53.js} +15 -14
- package/build/esm/{index-f56ad865.js → index-7decdf27.js} +1 -1
- package/build/esm/index-7e95ba03.js +144 -0
- package/build/esm/{index-0dd98ba5.js → index-84b3ef3d.js} +3 -3
- package/build/esm/{index-4e0ef954.js → index-8b9c7b45.js} +3 -3
- package/build/esm/{index-b97f14ca.js → index-930b0a77.js} +16 -15
- package/build/esm/{index-79b8f3a0.js → index-93c8863d.js} +2 -2
- package/build/esm/{index-16ed17c9.js → index-949f771c.js} +6 -6
- package/build/esm/{index-22dbd9d2.js → index-99551970.js} +2 -2
- package/build/esm/{index-bf7b2785.js → index-9c268a93.js} +2 -2
- package/build/esm/{index-8801ddf9.js → index-9d7d3a53.js} +4 -4
- package/build/esm/{index-02019218.js → index-9e220aaa.js} +2 -2
- package/build/esm/{index-f4468b77.js → index-a424a33d.js} +3 -3
- package/build/esm/{index-b4866578.js → index-a54b6536.js} +14 -13
- package/build/esm/{index-53ca94ab.js → index-b09ced58.js} +1 -1
- package/build/esm/{index-b13c7add.js → index-b5ed732f.js} +5 -5
- package/build/esm/{index-68f3752c.js → index-b867d267.js} +1 -1
- package/build/esm/{index-d72f98d1.js → index-c4b04b5f.js} +1 -1
- package/build/esm/{index-7aa8728c.js → index-c5286b89.js} +12 -11
- package/build/esm/{index-151b9162.js → index-cbb45a5d.js} +2 -2
- package/build/esm/{index-2e4a2f44.js → index-d4dcfb68.js} +2 -2
- package/build/esm/{index-d7019532.js → index-dec46974.js} +20 -17
- package/build/esm/index-e19da15e.js +468 -0
- package/build/esm/{index-63825539.js → index-e1d35fec.js} +7 -6
- package/build/esm/{index-5eda6b48.js → index-e477c2a3.js} +23 -19
- package/build/esm/{index-d0d73bc9.js → index-ed292946.js} +2 -2
- package/build/esm/index-f3f06437.js +281 -0
- package/build/esm/index.js +118 -98
- package/build/esm/index.styles-25454e9c.js +62 -0
- package/build/esm/interfaces/types/Subot.d.ts +3 -3
- package/build/esm/{labelSorting-eaf1959d.js → labelSorting-27ecf45e.js} +4 -4
- package/build/esm/lead.js +22 -20
- package/build/esm/{logoIcon-cb9c1f10.js → logoIcon-ef6d9e4c.js} +2 -2
- package/build/esm/mantine.js +24 -22
- package/build/esm/misc.js +18 -18
- package/build/esm/miscGetDynamicHealthTool.js +7 -7
- package/build/esm/miscGetSocialList.js +12 -12
- package/build/esm/miscScreenSizeContext.js +1 -1
- package/build/esm/mobileBottomNavigation.js +19 -0
- package/build/esm/mobileBottomNavigationIcon.js +10 -0
- package/build/esm/molecules.js +71 -64
- package/build/esm/moleculesArticleCard.js +85 -0
- package/build/esm/moleculesArticleCardV2.js +171 -0
- package/build/esm/navigation.js +40 -35
- package/build/esm/navigationLogoutPopup.js +116 -0
- package/build/esm/navigationProfileButton.js +43 -0
- package/build/esm/{normalizeLink-c66d19ce.js → normalizeLink-d756e5e6.js} +1 -1
- package/build/esm/onboardingV2.js +27 -25
- package/build/esm/organisms.js +46 -41
- package/build/esm/post-86117110.js +267 -0
- package/build/esm/profileNavigation.js +441 -0
- package/build/esm/progressBar.js +250 -0
- package/build/esm/pwg.js +21 -19
- package/build/esm/{routing-f3629b7f.js → routing-b81b8f17.js} +1 -1
- package/build/esm/subot.js +29 -27
- package/build/esm/surveyOrPremiumBanner.js +30 -28
- package/build/esm/surveyQuestionCard.js +10 -10
- package/build/esm/{surveyThankyouCard-169d4956.js → surveyThankyouCard-1b30aa0b.js} +5 -5
- package/build/esm/together.js +53 -44
- package/build/esm/togetherApiUtils.js +4 -4
- package/build/esm/togetherAtoms.js +29 -26
- package/build/esm/togetherComponentGlobalContext.js +4 -4
- package/build/esm/togetherMolecules.js +56 -47
- package/build/esm/togetherMoleculesCardAuthor.js +41 -0
- package/build/esm/togetherMoleculesPostImagePreview.js +21 -0
- package/build/esm/togetherMoleculesProfileDetail.js +53 -0
- package/build/esm/togetherOrganisms.js +53 -44
- package/build/esm/togetherRichTextEditor.js +27 -0
- package/build/esm/togetherShareBox.js +305 -0
- package/build/esm/{treePopoverMenu-32a26245.js → treePopoverMenu-04ded0ef.js} +18 -17
- package/build/esm/types-3eb97d85.js +44 -0
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-0995f0b4.js → useCategory-391ffab0.js} +5 -5
- package/build/esm/{useHealthToolCache-7387a56d.js → useHealthToolCache-931ab3ca.js} +1 -1
- package/build/esm/{useMantineLocale-7d4ef853.js → useMantineLocale-b29ca68b.js} +5 -5
- package/build/esm/{usePlacesAutocomplete-7f23b876.js → usePlacesAutocomplete-91226a4d.js} +1 -1
- package/build/esm/useTogetherAuthRequiredAction.js +4 -4
- package/build/esm/{useTranslations-12762455.js → useTranslations-b66d9f2b.js} +1 -1
- package/build/esm/utils-92e2bc22.js +206 -0
- package/build/esm/{utils-24afe0f1.js → utils-f4b925d7.js} +2 -2
- package/build/esm/{utils-aa5734af.js → utils-f873578b.js} +4 -4
- package/build/esm/vaccination.js +20 -18
- package/build/{fixedBottomAdBlock-4db856c1.js → fixedBottomAdBlock-605a8692.js} +49 -691
- package/build/footer.js +20 -18
- package/build/gAssets.js +2 -2
- package/build/healthToolsCardWrapper.js +17 -15
- package/build/healthToolsForm.js +33 -31
- package/build/hooks.js +15 -15
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-a91bff81.js → index-0afde39e.js} +2 -2
- package/build/{index-5d3563a4.js → index-0cb2de9d.js} +3 -3
- package/build/{index-922333dc.js → index-188e2316.js} +15 -14
- package/build/index-1b06e81f.js +151 -0
- package/build/{index-46a71da2.js → index-1cdccd4e.js} +2 -2
- package/build/index-27e50de1.js +478 -0
- package/build/{index-ad9d0b0a.js → index-32abfb15.js} +12 -11
- package/build/{index-82a0b931.js → index-36723718.js} +6 -6
- package/build/{index-ce1b7f76.js → index-36ba9947.js} +2 -2
- package/build/{index-c09c64b7.js → index-3c593ede.js} +6 -6
- package/build/{index-0450bf33.js → index-4bf6b5da.js} +24 -99
- package/build/{index-281daa83.js → index-4fd69136.js} +16 -15
- package/build/{index-4c15723a.js → index-526cee72.js} +6 -6
- package/build/{index-b64c981f.js → index-549b9e8c.js} +1 -1
- package/build/{index-5e984f33.js → index-5b52b076.js} +38 -34
- package/build/{index-776f2478.js → index-5dbd317c.js} +34 -33
- package/build/index-5dcd87b7.js +289 -0
- package/build/{index-169bae02.js → index-648aac83.js} +2 -2
- package/build/{index-34ca22f2.js → index-6b7b4292.js} +3 -3
- package/build/{index-743255db.js → index-6b95442c.js} +2 -2
- package/build/{index-a5526d77.js → index-6b9e8dda.js} +3 -3
- package/build/{index-e256aef8.js → index-767f9ac6.js} +2 -2
- package/build/{index-deec7e58.js → index-7ce45455.js} +16 -15
- package/build/{index-6223ea5f.js → index-81ff6094.js} +7 -7
- package/build/{index-0236dd90.js → index-86ecfc48.js} +3 -3
- package/build/{index-ddc36398.js → index-8a19ce1b.js} +96 -864
- package/build/{index-e3bbbf6e.js → index-8d9663db.js} +9 -8
- package/build/{index-ffc38f11.js → index-9151d357.js} +2 -2
- package/build/index-922020ed.js +1045 -0
- package/build/{index-ac40492f.js → index-a76596ef.js} +1 -1
- package/build/{index-0485f54b.js → index-a839c6ca.js} +3 -3
- package/build/{index-477ad803.js → index-a8705384.js} +1 -1
- package/build/{index-418220e9.js → index-aad249ab.js} +2 -2
- package/build/{index-d4801d2c.js → index-af48fea3.js} +5 -5
- package/build/{index-41b74c44.js → index-b04c5212.js} +16 -15
- package/build/{index-7072811b.js → index-b4fd3100.js} +1 -1
- package/build/{index-d903234f.js → index-be0a9d63.js} +17 -16
- package/build/{index-b502b7a7.js → index-be262a50.js} +2 -2
- package/build/index-becfec7a.js +1307 -0
- package/build/index-bf3796aa.js +870 -0
- package/build/{index-8a509409.js → index-cc4ce0c4.js} +1 -1
- package/build/{index-e6f93e28.js → index-cd0db938.js} +34 -31
- package/build/{index-e2ca51d6.js → index-d0610b0f.js} +14 -13
- package/build/{index-28f47f15.js → index-d393d57e.js} +1 -1
- package/build/{index-538200cd.js → index-d471ff2d.js} +1 -1
- package/build/{index-4e5179a2.js → index-d5d9ceb9.js} +15 -14
- package/build/{index-cd94cd77.js → index-de26b5d1.js} +12 -11
- package/build/{index-3efdbdaf.js → index-dec3abcf.js} +15 -14
- package/build/{index-b2757afe.js → index-e018af91.js} +31 -29
- package/build/index-e8dc7fdb.js +29 -0
- package/build/{index-a0ee5e9f.js → index-f30e56f1.js} +12 -11
- package/build/{index-b7e7f5d7.js → index-f6b32484.js} +12 -11
- package/build/{index-8e183dab.js → index-f91ed3be.js} +4 -4
- package/build/{index-38d090ba.js → index-faa2908c.js} +3 -143
- package/build/{index-212720b1.js → index-fbb369ff.js} +1 -1
- package/build/{index-3c06bcfd.js → index-fde11604.js} +2 -2
- package/build/index.js +182 -162
- package/build/index.styles-9031f6d6.js +65 -0
- package/build/interfaces/types/Subot.d.ts +3 -3
- package/build/{labelSorting-8542da52.js → labelSorting-11165c8e.js} +4 -4
- package/build/lead.js +22 -20
- package/build/{logoIcon-bd143b65.js → logoIcon-f3283bfd.js} +2 -2
- package/build/mantine.js +20 -18
- package/build/misc.js +18 -18
- package/build/miscGetDynamicHealthTool.js +7 -7
- package/build/miscGetSocialList.js +12 -12
- package/build/miscScreenSizeContext.js +1 -1
- package/build/mobileBottomNavigation.js +27 -0
- package/build/mobileBottomNavigationIcon.js +18 -0
- package/build/molecules.js +76 -69
- package/build/moleculesArticleCard.js +93 -0
- package/build/moleculesArticleCardV2.js +180 -0
- package/build/navigation.js +40 -35
- package/build/navigationLogoutPopup.js +125 -0
- package/build/navigationProfileButton.js +51 -0
- package/build/onboardingV2.js +29 -27
- package/build/organisms.js +49 -44
- package/build/post-0fec66f4.js +303 -0
- package/build/profileNavigation.js +450 -0
- package/build/progressBar.js +260 -0
- package/build/pwg.js +21 -19
- package/build/{routing-90dba95d.js → routing-7a9c8608.js} +1 -1
- package/build/subot.js +28 -26
- package/build/surveyOrPremiumBanner.js +30 -28
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-9aad36f8.js → surveyThankyouCard-db73c893.js} +5 -5
- package/build/together.js +77 -68
- package/build/togetherApiUtils.js +4 -4
- package/build/togetherAtoms.js +29 -26
- package/build/togetherComponentGlobalContext.js +4 -4
- package/build/togetherMolecules.js +79 -70
- package/build/togetherMoleculesCardAuthor.js +49 -0
- package/build/togetherMoleculesPostImagePreview.js +29 -0
- package/build/togetherMoleculesProfileDetail.js +70 -0
- package/build/togetherOrganisms.js +53 -44
- package/build/togetherRichTextEditor.js +36 -0
- package/build/togetherShareBox.js +314 -0
- package/build/{treePopoverMenu-3f7e6767.js → treePopoverMenu-61ebd05c.js} +18 -17
- package/build/types-57052089.js +52 -0
- package/build/types.js +2 -2
- package/build/{useCategory-a808e6a6.js → useCategory-d9f73b82.js} +5 -5
- package/build/{useHealthToolCache-42222cc2.js → useHealthToolCache-4b5bfb11.js} +1 -1
- package/build/{useMantineLocale-8df90961.js → useMantineLocale-cc272195.js} +5 -5
- package/build/{usePlacesAutocomplete-4e21e680.js → usePlacesAutocomplete-a0156f14.js} +1 -1
- package/build/useTogetherAuthRequiredAction.js +4 -4
- package/build/{useTranslations-6363932f.js → useTranslations-8a9fa84d.js} +1 -1
- package/build/{utils-87deb74b.js → utils-251b2841.js} +3 -3
- package/build/{utils-4058dee5.js → utils-c29214c6.js} +2 -2
- package/build/utils-f47b2d2d.js +229 -0
- package/build/vaccination.js +24 -22
- package/package.json +1 -1
- package/build/esm/index-43aaedbb.js +0 -5060
- package/build/esm/types-996bf08e.js +0 -3433
- package/build/index-05199dd8.js +0 -5123
- package/build/types-89c90eb3.js +0 -3447
- /package/build/{BMI_BOYS.percentile.monthly-00dc2939.js → BMI_BOYS.percentile.monthly-5f29289b.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-eebf395b.js → BMI_BOYS.percentile.weekly-53584232.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-fa98b4c9.js → BMI_BOYS.percentile.yearly-84aaf8fb.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-cc66463f.js → BMI_BOYS.zscore.monthly-76d7fd0e.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-e1c85879.js → BMI_BOYS.zscore.weekly-ed3d66f2.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-88d58724.js → BMI_BOYS.zscore.yearly-7e74f0e8.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-82aff448.js → BMI_GIRLS.percentile.monthly-6973d8b0.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-c5767e28.js → BMI_GIRLS.percentile.weekly-a873a4e6.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-e45d9106.js → BMI_GIRLS.percentile.yearly-e86761bb.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-120aa581.js → BMI_GIRLS.zscore.monthly-9a12fa84.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-2f64347e.js → BMI_GIRLS.zscore.weekly-5936ed5b.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-ed842624.js → BMI_GIRLS.zscore.yearly-d40d8356.js} +0 -0
- /package/build/{ChevronDown-89002c32.js → ChevronDown-a6775d48.js} +0 -0
- /package/build/{Close-5e8e15ce.js → Close-9fa735bc.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-b1965149.js → HEAD CIRCUM_BOYS.percentile.monthly-873a839f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-7c8df376.js → HEAD CIRCUM_BOYS.percentile.weekly-bbe3965d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-ebafd6df.js → HEAD CIRCUM_BOYS.percentile.yearly-645dfc78.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-b5a0cdd1.js → HEAD CIRCUM_BOYS.zscore.monthly-9fe137bf.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-4c32261f.js → HEAD CIRCUM_BOYS.zscore.weekly-2ccb15fb.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-7642a6b6.js → HEAD CIRCUM_BOYS.zscore.yearly-48aed724.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-37a5b7b2.js → HEAD CIRCUM_GIRLS.percentile.monthly-d99d6d30.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-909278a6.js → HEAD CIRCUM_GIRLS.percentile.weekly-8a49b504.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-bd7732f5.js → HEAD CIRCUM_GIRLS.percentile.yearly-d747b0cd.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-5a1dc106.js → HEAD CIRCUM_GIRLS.zscore.monthly-8ef18721.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-19531ac2.js → HEAD CIRCUM_GIRLS.zscore.weekly-853cca20.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-3e9b57e2.js → HEAD CIRCUM_GIRLS.zscore.yearly-4d5b2175.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-75d3928f.js → HEIGHT_BOYS.percentile.monthly-070590b8.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-49d0eac1.js → HEIGHT_BOYS.percentile.weekly-56741428.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-ca043db8.js → HEIGHT_BOYS.percentile.yearly-9c81f767.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-0ef5a0b0.js → HEIGHT_BOYS.zscore.monthly-729982c3.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-897641f9.js → HEIGHT_BOYS.zscore.weekly-ddb206fb.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-2f57ee05.js → HEIGHT_BOYS.zscore.yearly-5fc7ea6a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-35a2bd2b.js → HEIGHT_GIRLS.percentile.monthly-8cbc8d18.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-6682008a.js → HEIGHT_GIRLS.percentile.weekly-7145e94f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-1490cd28.js → HEIGHT_GIRLS.percentile.yearly-ab0e4f4e.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-ab0ba051.js → HEIGHT_GIRLS.zscore.monthly-b851b1d7.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-8cd489df.js → HEIGHT_GIRLS.zscore.weekly-98aef3cf.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-547aa680.js → HEIGHT_GIRLS.zscore.yearly-65d990f7.js} +0 -0
- /package/build/{Locale-126bf6bd.js → Locale-07aceee9.js} +0 -0
- /package/build/{Visible-7090d851.js → Visible-ddeaf4cc.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-2c6444a6.js → WEIGHT_BOYS.percentile.monthly-0ce96694.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-d43234b7.js → WEIGHT_BOYS.percentile.weekly-b5397f20.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-361c6438.js → WEIGHT_BOYS.percentile.yearly-80cccd42.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-1a56d8b2.js → WEIGHT_BOYS.zscore.monthly-12907f1f.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-b1548cdf.js → WEIGHT_BOYS.zscore.weekly-a1af17eb.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-17b0334c.js → WEIGHT_BOYS.zscore.yearly-2649ff58.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-64e137c6.js → WEIGHT_GIRLS.percentile.monthly-222d7201.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-98c2fb5d.js → WEIGHT_GIRLS.percentile.weekly-2997b740.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-533341f7.js → WEIGHT_GIRLS.percentile.yearly-3dc5928a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-d17a0d64.js → WEIGHT_GIRLS.zscore.monthly-742b7617.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-36a412aa.js → WEIGHT_GIRLS.zscore.weekly-5ee1ca40.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-68f9f66b.js → WEIGHT_GIRLS.zscore.yearly-d6ca7d60.js} +0 -0
- /package/build/{animation-fce92928.js → animation-a1ed71d8.js} +0 -0
- /package/build/{cart-d32faa71.js → cart-7bc1b943.js} +0 -0
- /package/build/{constants-83e17a08.js → constants-4cad9f4d.js} +0 -0
- /package/build/{constants-ef1d9e50.js → constants-81b95117.js} +0 -0
- /package/build/{constants-6b5e2780.js → constants-c3b9c9a9.js} +0 -0
- /package/build/{dataTransform-64f3ba4c.js → dataTransform-867c472c.js} +0 -0
- /package/build/{doctor-2a2b78b0.js → doctor-dca6d1b2.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-71f6615e.js → BMI_BOYS.percentile.monthly-2388d98f.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-8729108b.js → BMI_BOYS.percentile.weekly-8ebe6955.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-fe8dc27c.js → BMI_BOYS.percentile.yearly-3a97e95b.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-aa14f52a.js → BMI_BOYS.zscore.monthly-f7572dcd.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-6857bca0.js → BMI_BOYS.zscore.weekly-d6281906.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-05894e8d.js → BMI_BOYS.zscore.yearly-fbebaaca.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-99639eee.js → BMI_GIRLS.percentile.monthly-a75c8880.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-241a8c86.js → BMI_GIRLS.percentile.weekly-652bc9af.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-a7d673ad.js → BMI_GIRLS.percentile.yearly-8bcb5a6e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-ac552c64.js → BMI_GIRLS.zscore.monthly-ecbe2982.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-d3bd5cf8.js → BMI_GIRLS.zscore.weekly-3abed735.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-68c40e02.js → BMI_GIRLS.zscore.yearly-d88a34a0.js} +0 -0
- /package/build/esm/{ChevronDown-1c6ac70a.js → ChevronDown-dfd91883.js} +0 -0
- /package/build/esm/{Close-9dbbc4f5.js → Close-b8fc27b1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-e844f279.js → HEAD CIRCUM_BOYS.percentile.monthly-ff980a90.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-c0ea6fc4.js → HEAD CIRCUM_BOYS.percentile.weekly-eb86eac9.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-58273474.js → HEAD CIRCUM_BOYS.percentile.yearly-27ed6504.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-867569e0.js → HEAD CIRCUM_BOYS.zscore.monthly-0d345597.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-1c2e6c46.js → HEAD CIRCUM_BOYS.zscore.weekly-c182ab46.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-4d2f300f.js → HEAD CIRCUM_BOYS.zscore.yearly-d45dbce1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-5d75244f.js → HEAD CIRCUM_GIRLS.percentile.monthly-61919e45.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-73bd9176.js → HEAD CIRCUM_GIRLS.percentile.weekly-51fa8f98.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-d1a55615.js → HEAD CIRCUM_GIRLS.percentile.yearly-c1fa6006.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-4d365a9f.js → HEAD CIRCUM_GIRLS.zscore.monthly-4dfc55d8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-41370dfb.js → HEAD CIRCUM_GIRLS.zscore.weekly-b21b5bf1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-06ac6807.js → HEAD CIRCUM_GIRLS.zscore.yearly-c42836fa.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-3b18440a.js → HEIGHT_BOYS.percentile.monthly-24ff8afa.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-01a65af3.js → HEIGHT_BOYS.percentile.weekly-2be7b66e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-c8203619.js → HEIGHT_BOYS.percentile.yearly-ac02aa2d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-a3319613.js → HEIGHT_BOYS.zscore.monthly-b43667dc.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-981efa8b.js → HEIGHT_BOYS.zscore.weekly-abcfcf3a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-a98e3bc6.js → HEIGHT_BOYS.zscore.yearly-71598c16.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-6959773b.js → HEIGHT_GIRLS.percentile.monthly-7f9d679c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-128bb11e.js → HEIGHT_GIRLS.percentile.weekly-6ce1d4e7.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-29a94e1c.js → HEIGHT_GIRLS.percentile.yearly-c398fd6b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-dd466c09.js → HEIGHT_GIRLS.zscore.monthly-8d33bc28.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-b602fae7.js → HEIGHT_GIRLS.zscore.weekly-eb44c302.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-358063df.js → HEIGHT_GIRLS.zscore.yearly-10b4d1fe.js} +0 -0
- /package/build/esm/{Locale-f781df87.js → Locale-b86a7a92.js} +0 -0
- /package/build/esm/{Visible-46717d08.js → Visible-69da852f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-00996ab0.js → WEIGHT_BOYS.percentile.monthly-fd349fe7.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-c3c6f755.js → WEIGHT_BOYS.percentile.weekly-d5e52d60.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-c4571ef6.js → WEIGHT_BOYS.percentile.yearly-929119b3.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-b5eaafd1.js → WEIGHT_BOYS.zscore.monthly-3f0f08cd.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-b058aef3.js → WEIGHT_BOYS.zscore.weekly-b9fd3298.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-4557bb07.js → WEIGHT_BOYS.zscore.yearly-9945948d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-094c8315.js → WEIGHT_GIRLS.percentile.monthly-1e83ae51.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-59bd62f7.js → WEIGHT_GIRLS.percentile.weekly-c3531852.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-7064def2.js → WEIGHT_GIRLS.percentile.yearly-3c0040b0.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-3e264c0b.js → WEIGHT_GIRLS.zscore.monthly-3baeda15.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-8402d0e1.js → WEIGHT_GIRLS.zscore.weekly-2d8e6618.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-58908f5c.js → WEIGHT_GIRLS.zscore.yearly-826f5bdd.js} +0 -0
- /package/build/esm/{animation-12f6a99a.js → animation-7207941a.js} +0 -0
- /package/build/esm/{cart-5cbf8fde.js → cart-4f482601.js} +0 -0
- /package/build/esm/{constants-c65d5e73.js → constants-0497b893.js} +0 -0
- /package/build/esm/{constants-7447b364.js → constants-af02be2a.js} +0 -0
- /package/build/esm/{constants-28f21bf7.js → constants-f7943ab2.js} +0 -0
- /package/build/esm/{dataTransform-4564c01a.js → dataTransform-610e61bf.js} +0 -0
- /package/build/esm/{doctor-a6dcb5b0.js → doctor-63e09ada.js} +0 -0
- /package/build/esm/{index-d1c6a5eb.js → index-20192854.js} +0 -0
- /package/build/esm/{index-3dfef0e2.js → index-20199246.js} +0 -0
- /package/build/esm/{index-7149c324.js → index-5364f2db.js} +0 -0
- /package/build/esm/{index-9d1a8bc8.js → index-56d0ac47.js} +0 -0
- /package/build/esm/{index-e2a19de9.js → index-9f076f64.js} +0 -0
- /package/build/esm/{index-31ca33d1.js → index-a2506e52.js} +0 -0
- /package/build/esm/{index-b503d8ca.js → index-c130afdc.js} +0 -0
- /package/build/esm/{index-5bd25778.js → index-c9467e39.js} +0 -0
- /package/build/esm/{localizeNumberFormat-fe248dc9.js → localizeNumberFormat-3bf28240.js} +0 -0
- /package/build/esm/{number-59fe2c76.js → number-d26abebe.js} +0 -0
- /package/build/esm/{other-8082eeb8.js → other-08d0b30e.js} +0 -0
- /package/build/esm/{paths-a31c249e.js → paths-ce59b252.js} +0 -0
- /package/build/esm/{translationsContext-f05845a3.js → translationsContext-8afb0ce3.js} +0 -0
- /package/build/esm/{tslib.es6-2813a841.js → tslib.es6-e0840efa.js} +0 -0
- /package/build/esm/{types-e1b0b130.js → types-41242882.js} +0 -0
- /package/build/esm/{useIsInit-6417c32d.js → useIsInit-f59c6bd2.js} +0 -0
- /package/build/esm/{useOutsideClick-cabe5b52.js → useOutsideClick-12815e56.js} +0 -0
- /package/build/esm/{useScrollbarSize-93f9665c.js → useScrollbarSize-431cf33c.js} +0 -0
- /package/build/esm/{useUniqueId-0c237f04.js → useUniqueId-8f710187.js} +0 -0
- /package/build/esm/{utils-5ac430a2.js → utils-8a1f05c9.js} +0 -0
- /package/build/{index-9a3d05f1.js → index-017f99b2.js} +0 -0
- /package/build/{index-ddd1ae54.js → index-1a6a94cd.js} +0 -0
- /package/build/{index-126368b4.js → index-668f591b.js} +0 -0
- /package/build/{index-eae45243.js → index-70abc2ac.js} +0 -0
- /package/build/{index-1fab78b5.js → index-c6b0831a.js} +0 -0
- /package/build/{index-d0ba8956.js → index-ce2d2850.js} +0 -0
- /package/build/{index-31ba7c80.js → index-e3e72aed.js} +0 -0
- /package/build/{index-b895e598.js → index-f70c0edf.js} +0 -0
- /package/build/{localizeNumberFormat-52a8a959.js → localizeNumberFormat-30e7f015.js} +0 -0
- /package/build/{normalizeLink-8a458cb4.js → normalizeLink-c1b2b407.js} +0 -0
- /package/build/{number-8f639a87.js → number-20d56f69.js} +0 -0
- /package/build/{other-fcf0cbba.js → other-eedaf6ca.js} +0 -0
- /package/build/{paths-822d5ab1.js → paths-4c182009.js} +0 -0
- /package/build/{translationsContext-1fe0412c.js → translationsContext-cd046df4.js} +0 -0
- /package/build/{tslib.es6-d6f7eba3.js → tslib.es6-f3c387c0.js} +0 -0
- /package/build/{types-7b239cb4.js → types-2614ec58.js} +0 -0
- /package/build/{useIsInit-3c23a980.js → useIsInit-e56642e4.js} +0 -0
- /package/build/{useOutsideClick-dcf05d21.js → useOutsideClick-f18dfe3f.js} +0 -0
- /package/build/{useScrollbarSize-e144fad0.js → useScrollbarSize-4aaa4dd1.js} +0 -0
- /package/build/{useUniqueId-47d33d64.js → useUniqueId-621ec272.js} +0 -0
- /package/build/{utils-03c7b063.js → utils-ae9740c0.js} +0 -0
|
@@ -1,49 +1,46 @@
|
|
|
1
|
-
import { _ as __rest, a as __awaiter } from './tslib.es6-
|
|
2
|
-
import React__default, { useMemo,
|
|
3
|
-
import { i as isInternalLink, L as LanguageSwitcher } from './index-
|
|
4
|
-
import { a as CARE_LOCALES,
|
|
5
|
-
import { n as
|
|
6
|
-
import {
|
|
7
|
-
import { a as formatCommunity, b as formatPost } from './dataTransform-
|
|
8
|
-
import { L as Logo } from './index-
|
|
9
|
-
import { u as useTranslations } from './useTranslations-
|
|
1
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-e0840efa.js';
|
|
2
|
+
import React__default, { useMemo, useEffect, useContext, useState, useRef, useCallback } from 'react';
|
|
3
|
+
import { i as isInternalLink, L as LanguageSwitcher } from './index-84b3ef3d.js';
|
|
4
|
+
import { a as CARE_LOCALES, b as CARE_BOOKING_LOCALES, T as TOGETHER_LOCALES, E as ECOM_LOCALES, L as LOCALE_SPECS, S as STATIC_PAGES } from './index-9e220aaa.js';
|
|
5
|
+
import { n as normalizeLink, a as normalizeLinkSlash } from './normalizeLink-d756e5e6.js';
|
|
6
|
+
import { g as getCurrentBaseUrl, a as getCurrentSsoUrl, b as getTogetherApiDomain, c as getDiscoverApiDomain, d as getCareApiDomain } from './routing-b81b8f17.js';
|
|
7
|
+
import { a as formatCommunity, b as formatPost } from './dataTransform-2023858d.js';
|
|
8
|
+
import { L as Logo } from './index-949f771c.js';
|
|
9
|
+
import { u as useTranslations } from './useTranslations-b66d9f2b.js';
|
|
10
10
|
import throttle from 'lodash/throttle';
|
|
11
|
-
import { createStyles, Box, Indicator,
|
|
12
|
-
import {
|
|
11
|
+
import { createStyles, Box, Indicator, useMantineTheme } from '@mantine/core';
|
|
12
|
+
import { I as Input } from './index-57da0f13.js';
|
|
13
13
|
import '@mantine/dates';
|
|
14
|
-
import './index-
|
|
15
|
-
import { C as CommonGAssets } from './index-
|
|
16
|
-
import './useMantineLocale-
|
|
17
|
-
import { T as Text } from './index-
|
|
18
|
-
import { B as Button$1 } from './index-
|
|
19
|
-
import './
|
|
14
|
+
import './index-7decdf27.js';
|
|
15
|
+
import { C as CommonGAssets } from './index-9f076f64.js';
|
|
16
|
+
import './useMantineLocale-b29ca68b.js';
|
|
17
|
+
import { T as Text } from './index-99551970.js';
|
|
18
|
+
import { B as Button$1 } from './index-c4b04b5f.js';
|
|
19
|
+
import './index.styles-25454e9c.js';
|
|
20
|
+
import './translationsContext-8afb0ce3.js';
|
|
20
21
|
import formatString from 'string-format';
|
|
21
22
|
import '@mantine/hooks';
|
|
22
|
-
import { g as getBoundariesFromMediaQueryKey, M as MediaQueries } from './utils-
|
|
23
|
-
import './other-
|
|
24
|
-
import { L as LOCALISED_SLUGS } from './constants-
|
|
23
|
+
import { g as getBoundariesFromMediaQueryKey, M as MediaQueries } from './utils-8a1f05c9.js';
|
|
24
|
+
import './other-08d0b30e.js';
|
|
25
|
+
import { L as LOCALISED_SLUGS } from './constants-e9ebe043.js';
|
|
25
26
|
import styled from '@emotion/styled';
|
|
26
|
-
import {
|
|
27
|
+
import { u as useCSSFocusPopupHelper, N as NavigationProfileButton } from './index-f3f06437.js';
|
|
28
|
+
import { B as Button } from './index-9c268a93.js';
|
|
29
|
+
import { i as domainLocalesMarryBaby } from './utils-f873578b.js';
|
|
30
|
+
import { domainLocales } from './constantsDomainLocales.js';
|
|
31
|
+
import { L as LOCALIZED_SLUGS } from './constants-f7943ab2.js';
|
|
27
32
|
import { theme } from './miscTheme.js';
|
|
33
|
+
import { H as Heading } from './index-1a2bc551.js';
|
|
34
|
+
import { I as Indicator$1 } from './index-277566f7.js';
|
|
35
|
+
import { u as useIsInit } from './useIsInit-f59c6bd2.js';
|
|
28
36
|
import { setDefaultClass } from './miscDefaultClassWrapper.js';
|
|
29
|
-
import { C as ChevronDown } from './ChevronDown-1c6ac70a.js';
|
|
30
|
-
import { css } from '@emotion/react';
|
|
31
|
-
import { B as Button } from './index-bf7b2785.js';
|
|
32
|
-
import { P as Popup } from './index-9d2cc0b2.js';
|
|
33
|
-
import { L as LOCALE } from './Locale-f781df87.js';
|
|
34
|
-
import { i as domainLocalesMarryBaby } from './utils-aa5734af.js';
|
|
35
|
-
import { domainLocales } from './constantsDomainLocales.js';
|
|
36
|
-
import { L as LOCALIZED_SLUGS } from './constants-28f21bf7.js';
|
|
37
|
-
import { H as Heading } from './index-7c6e33e0.js';
|
|
38
|
-
import { I as Indicator$1 } from './index-e7c62f10.js';
|
|
39
|
-
import { u as useIsInit } from './useIsInit-6417c32d.js';
|
|
40
37
|
import dayjs from 'dayjs';
|
|
41
38
|
import relativeTime from 'dayjs/plugin/relativeTime';
|
|
42
|
-
import { U as UserAvatar } from './index-
|
|
39
|
+
import { U as UserAvatar } from './index-93c8863d.js';
|
|
43
40
|
import { ArrowRight } from '@hhgtech/icons/other';
|
|
44
|
-
import { C as Container } from './index-
|
|
41
|
+
import { C as Container } from './index-c9467e39.js';
|
|
45
42
|
import debounce from 'lodash/debounce';
|
|
46
|
-
import { g as getDataWithCache } from './core-
|
|
43
|
+
import { g as getDataWithCache } from './core-6d8629c2.js';
|
|
47
44
|
|
|
48
45
|
const getEcomUrl = ({ path, locale, }) => {
|
|
49
46
|
var _a;
|
|
@@ -91,768 +88,6 @@ const DisplayWrapper = ({ forceDisplay, mediaQueryKey, children, className, styl
|
|
|
91
88
|
return (React__default.createElement(StyledDisplayWrapper, { lowerBound: forceDisplay ? 0 : lowerBoundValue, upperBound: forceDisplay ? 0 : upperBoundValue, className: className, style: style }, children));
|
|
92
89
|
};
|
|
93
90
|
|
|
94
|
-
const useCSSFocusPopupHelper = (configs) => {
|
|
95
|
-
const { allowBgScroll } = configs || {};
|
|
96
|
-
const ref = useRef();
|
|
97
|
-
return {
|
|
98
|
-
containerRef: ref,
|
|
99
|
-
onContainerFocus: () => {
|
|
100
|
-
if (!allowBgScroll)
|
|
101
|
-
document.documentElement.style.overflow = 'hidden';
|
|
102
|
-
},
|
|
103
|
-
onContainerBlur: () => {
|
|
104
|
-
if (!allowBgScroll)
|
|
105
|
-
document.documentElement.style.overflow = '';
|
|
106
|
-
},
|
|
107
|
-
onButtonMouseDown: (e) => {
|
|
108
|
-
// this close popup when click, run after REact init
|
|
109
|
-
if (ref.current &&
|
|
110
|
-
(document.activeElement === ref.current ||
|
|
111
|
-
ref.current.contains(document.activeElement))) {
|
|
112
|
-
ref.current.blur();
|
|
113
|
-
document.activeElement.blur();
|
|
114
|
-
e.preventDefault();
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
onClose: () => {
|
|
118
|
-
if (ref.current &&
|
|
119
|
-
(document.activeElement === ref.current ||
|
|
120
|
-
ref.current.contains(document.activeElement))) {
|
|
121
|
-
ref.current.blur();
|
|
122
|
-
document.activeElement.blur();
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
const StyledPopup$1 = setDefaultClass(styled.div `
|
|
129
|
-
position: absolute;
|
|
130
|
-
right: 0;
|
|
131
|
-
transition: all 0.5s ease-in-out;
|
|
132
|
-
overflow-y: auto;
|
|
133
|
-
|
|
134
|
-
&[data-open='true'] {
|
|
135
|
-
z-index: 200;
|
|
136
|
-
top: 120%;
|
|
137
|
-
opacity: 1;
|
|
138
|
-
visibility: visible;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
&[data-open='false'] {
|
|
142
|
-
display: none;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.popup-content {
|
|
146
|
-
z-index: 111;
|
|
147
|
-
height: 100%;
|
|
148
|
-
border: 1px solid #0000001a;
|
|
149
|
-
border-radius: 16px;
|
|
150
|
-
border-top-left-radius: 0;
|
|
151
|
-
border-top-right-radius: 0;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
/* min-height: 415px; */
|
|
155
|
-
${MediaQueries.mbUp} {
|
|
156
|
-
width: 320px;
|
|
157
|
-
}
|
|
158
|
-
${MediaQueries.mbDown} {
|
|
159
|
-
position: fixed;
|
|
160
|
-
left: 0;
|
|
161
|
-
width: 100%;
|
|
162
|
-
padding-bottom: 70px;
|
|
163
|
-
}
|
|
164
|
-
`, 'hhgcomp-navprofilebutton-popup');
|
|
165
|
-
const StyledPopupWrapper = setDefaultClass(styled.div `
|
|
166
|
-
position: fixed;
|
|
167
|
-
z-index: 150;
|
|
168
|
-
top: var(--header-bottom, 56px);
|
|
169
|
-
left: 0;
|
|
170
|
-
width: 100%;
|
|
171
|
-
height: 100%;
|
|
172
|
-
align-items: center;
|
|
173
|
-
|
|
174
|
-
${MediaQueries.mbUp} {
|
|
175
|
-
background-color: transparent;
|
|
176
|
-
&[data-type='welcome'] {
|
|
177
|
-
background: rgba(38, 38, 38, 0.3);
|
|
178
|
-
}
|
|
179
|
-
&[data-type='due-date'] {
|
|
180
|
-
background: rgba(38, 38, 38, 0.3);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
${MediaQueries.mbDown} {
|
|
185
|
-
background: rgba(38, 38, 38, 0.3);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
&[data-type='welcome'] {
|
|
189
|
-
top: 0;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
&[data-open='false'] {
|
|
193
|
-
display: none;
|
|
194
|
-
}
|
|
195
|
-
`, 'hhgcomp-navprofilebutton-popupwrapper');
|
|
196
|
-
const StyledAvatar = styled.div `
|
|
197
|
-
width: 36px;
|
|
198
|
-
height: 36px;
|
|
199
|
-
cursor: pointer;
|
|
200
|
-
|
|
201
|
-
img {
|
|
202
|
-
border-radius: 50%;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.avatar {
|
|
206
|
-
width: 36px;
|
|
207
|
-
height: 36px;
|
|
208
|
-
object-fit: cover;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.avatar-default {
|
|
212
|
-
display: flex;
|
|
213
|
-
align-items: center;
|
|
214
|
-
justify-content: center;
|
|
215
|
-
background-color: ${theme.colors.secondaryBase};
|
|
216
|
-
border-radius: 50%;
|
|
217
|
-
color: white;
|
|
218
|
-
font-size: 20px;
|
|
219
|
-
font-weight: bold;
|
|
220
|
-
}
|
|
221
|
-
`;
|
|
222
|
-
const StyledImageWrapper$1 = styled.div `
|
|
223
|
-
display: inline-flex;
|
|
224
|
-
position: relative;
|
|
225
|
-
width: 36px;
|
|
226
|
-
height: 36px;
|
|
227
|
-
display: flex;
|
|
228
|
-
align-items: center;
|
|
229
|
-
justify-content: center;
|
|
230
|
-
text-decoration: none;
|
|
231
|
-
flex-shrink: 0;
|
|
232
|
-
cursor: pointer;
|
|
233
|
-
|
|
234
|
-
.user-close-icon {
|
|
235
|
-
display: none;
|
|
236
|
-
}
|
|
237
|
-
&:focus-within {
|
|
238
|
-
.user-close-icon {
|
|
239
|
-
display: block;
|
|
240
|
-
}
|
|
241
|
-
.user-avatar {
|
|
242
|
-
display: none;
|
|
243
|
-
}
|
|
244
|
-
${StyledPopup$1.classSelector} {
|
|
245
|
-
z-index: 200;
|
|
246
|
-
top: 120%;
|
|
247
|
-
opacity: 1;
|
|
248
|
-
visibility: visible;
|
|
249
|
-
display: initial;
|
|
250
|
-
${MediaQueries.mbDown} {
|
|
251
|
-
top: 100%;
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
${StyledPopupWrapper.classSelector} {
|
|
255
|
-
display: initial;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
`;
|
|
259
|
-
const StyledLoggedOutAnchor = styled.a `
|
|
260
|
-
display: inline-flex;
|
|
261
|
-
.login-btn[data-color='tertiary'][data-size='md'] {
|
|
262
|
-
padding-left: 12px;
|
|
263
|
-
padding-right: 12px;
|
|
264
|
-
}
|
|
265
|
-
.mobile-only {
|
|
266
|
-
${MediaQueries.mbUp} {
|
|
267
|
-
display: none;
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
.login-btn {
|
|
271
|
-
display: none;
|
|
272
|
-
${MediaQueries.mbUp} {
|
|
273
|
-
display: block;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
`;
|
|
277
|
-
|
|
278
|
-
const NavBookingIcon = (props) => (React__default.createElement("svg", Object.assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, props),
|
|
279
|
-
React__default.createElement("path", { d: "M2.5 6.5a3.2 3.2 0 0 1 3.2-3.2h7.9a3.2 3.2 0 0 1 3.19 3.2v4.72a3.2 3.2 0 0 1-3.2 3.2H5.7a3.2 3.2 0 0 1-3.19-3.2V6.49Z", fill: "#E3F2FF" }),
|
|
280
|
-
React__default.createElement("path", { d: "M2.5 5.68A2.38 2.38 0 0 1 4.88 3.3h9.52a2.38 2.38 0 0 1 2.39 2.38z", fill: "#2D87F3" }),
|
|
281
|
-
React__default.createElement("path", { d: "M13.6 2.5h-.03c-.36 0-.65.3-.65.65V4.2c0 .36.3.65.65.65h.03c.36 0 .65-.3.65-.65V3.15a.65.65 0 0 0-.65-.65M5.27 4.86h.03c.36 0 .65-.3.65-.65V3.15a.65.65 0 0 0-.65-.65h-.03c-.36 0-.65.3-.65.65V4.2c0 .36.3.65.65.65Z", fill: "#2743AD" }),
|
|
282
|
-
React__default.createElement("path", { d: "M5.56 8.17h-.5a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41m2.7 0h-.5a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41m2.7 0h-.5a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41m2.87 0h-.49a.4.4 0 0 0-.4.4v.59c0 .22.18.4.4.4h.49a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.41m-8.3 2.52h-.5a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4m2.7 0h-.5a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4m2.7 0h-.49a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Zm2.87 0h-.49a.4.4 0 0 0-.4.4v.58c0 .23.18.4.4.4h.5a.4.4 0 0 0 .4-.4v-.58a.4.4 0 0 0-.4-.4Z", fill: "#2D87F3" }),
|
|
283
|
-
React__default.createElement("path", { d: "M16 16.8a3.17 3.17 0 1 0 0-6.36 3.17 3.17 0 0 0 0 6.35Z", fill: "#FE921D" }),
|
|
284
|
-
React__default.createElement("path", { d: "M15.78 13.62v-1.36a.21.21 0 0 1 .42 0v1.26l.48.4a.21.21 0 0 1-.01.33.21.21 0 0 1-.26-.01l-.55-.46-.02-.01a.2.2 0 0 1-.06-.15", fill: "#fff" })));
|
|
285
|
-
|
|
286
|
-
const NavCommunityIcon = (props) => (React__default.createElement("svg", Object.assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, props),
|
|
287
|
-
React__default.createElement("path", { d: "M7.06 4.97h-2.3a3.12 3.12 0 0 0-3.1 3.1v.43a3.12 3.12 0 0 0 3.1 3.1h1.39s1.47 1.11 1.5.97c.03-.22-.23-.99-.23-.99a3.13 3.13 0 0 0 2.72-3.09v-.41a3.12 3.12 0 0 0-3.08-3.11m-2.7 3.55a.23.23 0 1 1 0-.46.23.23 0 0 1 0 .46m1.35.4a.33.33 0 1 1 0-.66.33.33 0 0 1 0 .65Zm1.57-.05", fill: "#2D87F3" }),
|
|
288
|
-
React__default.createElement("path", { d: "M12.88 9.52a3.53 3.53 0 0 0-1.35 6.8s-.23 1.03-.2 1.25c.03.14 1.55-.99 1.55-.99a3.53 3.53 0 0 0 0-7.06m-1.33 4.24a.48.48 0 1 1 0-.97.48.48 0 0 1 0 .97m1.58.04a.33.33 0 1 1 0-.66.33.33 0 0 1 0 .66m1.34-.39a.23.23 0 1 1 0-.46.23.23 0 0 1 0 .46", fill: "#FFB521" }),
|
|
289
|
-
React__default.createElement("path", { d: "M16.45 1.67h-3.87a1.88 1.88 0 0 0-1.88 2.06l.22 2.29a1.88 1.88 0 0 0 1.73 1.7s-.17.94-.14 1.16c.02.14 1.66-1.13 1.66-1.13l1.92-.03a1.88 1.88 0 0 0 1.86-1.59l.36-2.29a1.88 1.88 0 0 0-1.86-2.17M13.1 5.23a.48.48 0 1 1 .34-.14c-.1.1-.22.14-.34.14m1.57.05a.33.33 0 1 1 .23-.1.33.33 0 0 1-.23.1m1.34-.4a.23.23 0 1 1 .1-.01.2.2 0 0 1-.1.02Z", fill: "#91CAFF" })));
|
|
290
|
-
|
|
291
|
-
const NavDotIcon = (props) => (React__default.createElement("svg", Object.assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, props),
|
|
292
|
-
React__default.createElement("rect", { x: "8.333", y: "8.333", width: "3.333", height: "3.333", rx: "1.667", fill: "#2D87F3" })));
|
|
293
|
-
|
|
294
|
-
const NavEshopIcon = (props) => (React__default.createElement("svg", Object.assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, props),
|
|
295
|
-
React__default.createElement("path", { d: "m3.18 7.06 1.6 1.6 4.33-4.69a.72.72 0 0 0-.03-.99l-.22-.22a.72.72 0 0 0-.99-.02zm13.64 0-1.6 1.6-4.33-4.69a.72.72 0 0 1 .02-.99l.23-.22a.72.72 0 0 1 .99-.02z", fill: "#2743AD" }),
|
|
296
|
-
React__default.createElement("path", { d: "M15.04 16.7H4.9a.78.78 0 0 1-.77-.7l-.7-6.67h13.09l-.7 6.67a.78.78 0 0 1-.78.7", fill: "#2D87F3" }),
|
|
297
|
-
React__default.createElement("path", { d: "M6.23 15.7a.23.23 0 0 1-.23-.22l-.3-4.46a.23.23 0 1 1 .47-.04l.3 4.47a.23.23 0 0 1-.22.25zm2.39 0a.23.23 0 0 1-.23-.23L8.3 11a.23.23 0 1 1 .47 0l.07 4.46a.23.23 0 0 1-.22.24h-.01Zm5.15 0h-.02a.23.23 0 0 1-.2-.16.2.2 0 0 1-.02-.09l.3-4.47a.24.24 0 0 1 .25-.22.23.23 0 0 1 .22.26l-.3 4.46a.23.23 0 0 1-.23.22m-2.39 0a.23.23 0 0 1-.23-.23l.07-4.47a.24.24 0 0 1 .24-.23.23.23 0 0 1 .23.23l-.08 4.47a.23.23 0 0 1-.23.23", fill: "#2743AD" }),
|
|
298
|
-
React__default.createElement("path", { d: "M16.04 18.12a2.01 2.01 0 1 0 0-4.03 2.01 2.01 0 0 0 0 4.03", fill: "#FE921D" }),
|
|
299
|
-
React__default.createElement("path", { d: "M16.97 15.87h-.7v-.7a.23.23 0 0 0-.46 0v.7h-.7a.23.23 0 1 0 0 .47h.7v.69a.23.23 0 1 0 .47 0v-.7h.69a.23.23 0 1 0 0-.46", fill: "#fff" }),
|
|
300
|
-
React__default.createElement("path", { d: "M16.58 9.48H3.42a.8.8 0 0 1-.78-.7l-.13-1.1a.8.8 0 0 1 .78-.88h13.42a.8.8 0 0 1 .78.88l-.13 1.1a.8.8 0 0 1-.78.7", fill: "#BCDEFF" })));
|
|
301
|
-
|
|
302
|
-
const NavHelpIcon = (props) => (React__default.createElement("svg", Object.assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, props),
|
|
303
|
-
React__default.createElement("path", { d: "M10 1.667c-4.595 0-8.333 3.738-8.333 8.333 0 4.595 3.738 8.333 8.333 8.333 4.595 0 8.333-3.738 8.333-8.333 0-4.595-3.738-8.333-8.333-8.333Zm0 13.194a.695.695 0 1 1 0-1.39.695.695 0 0 1 0 1.39Zm1.1-4.415a.698.698 0 0 0-.405.631v.312a.694.694 0 1 1-1.39 0v-.312c0-.81.477-1.553 1.213-1.893.707-.326 1.218-1.19 1.218-1.615 0-.956-.778-1.736-1.736-1.736s-1.736.78-1.736 1.736a.694.694 0 1 1-1.389 0A3.129 3.129 0 0 1 10 4.444a3.129 3.129 0 0 1 3.125 3.125c0 .939-.814 2.318-2.026 2.877Z", fill: "#FF6F4D" })));
|
|
304
|
-
|
|
305
|
-
const NavLogOutIcon = (props) => (React__default.createElement("svg", Object.assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, props),
|
|
306
|
-
React__default.createElement("path", { d: "M11.116 1.72 5.488.85a1.898 1.898 0 0 0-2.155 1.856v14.588a1.898 1.898 0 0 0 2.158 1.855l5.625-.869a1.865 1.865 0 0 0 1.592-1.855V3.575a1.87 1.87 0 0 0-1.592-1.855", fill: "#2D87F3" }),
|
|
307
|
-
React__default.createElement("path", { d: "M17.642 9.584a.6.6 0 0 1-.232.472l-1.964 1.518a.446.446 0 0 1-.719-.353v-.51l-2.118-.01a.225.225 0 0 1-.223-.225v-1.8a.225.225 0 0 1 .224-.225l2.12.002-.004-.506a.446.446 0 0 1 .719-.354l1.965 1.52a.6.6 0 0 1 .232.471", fill: "#FF6F4D" }),
|
|
308
|
-
React__default.createElement("path", { d: "M17.642 9.584a.6.6 0 0 1-.232.472l-1.964 1.518a.446.446 0 0 1-.719-.353v-.51l-2.118-.01a.225.225 0 0 1-.223-.225v-1.8a.225.225 0 0 1 .224-.225l2.12.002-.004-.506a.446.446 0 0 1 .719-.354l1.965 1.52a.6.6 0 0 1 .232.471m-7.603-.908v1.802c0 .124.1.225.224.225h1.257c.124 0 .225-.1.225-.225V8.676c0-.124-.1-.224-.225-.224h-1.257c-.124 0-.224.1-.224.224m-.673 1.809a.224.224 0 0 1-.225.225h-.407a.61.61 0 0 1-.609-.61V9.069a.61.61 0 0 1 .61-.61h.406a.224.224 0 0 1 .225.225z", fill: "#FF6F4D" })));
|
|
309
|
-
|
|
310
|
-
const NavMyHealthIcon = (props) => (React__default.createElement("svg", Object.assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, props),
|
|
311
|
-
React__default.createElement("path", { d: "M6.114 3.333a4.64 4.64 0 0 1 3.565 1.708.412.412 0 0 0 .642 0 4.64 4.64 0 0 1 3.565-1.708c2.646 0 4.447 2.302 4.447 5.142 0 1.698-.904 4.446-2.675 6.102-2.522 2.358-4.665 2.965-5.392 3.11a1.3 1.3 0 0 1-.53 0c-.728-.146-2.871-.752-5.393-3.11-1.772-1.656-2.676-4.404-2.676-6.102 0-2.84 1.801-5.142 4.447-5.142", fill: "#FF6F4D" }),
|
|
312
|
-
React__default.createElement("path", { d: "M13.298 11.226v-.829a1.205 1.205 0 0 0-1.202-1.204h-.208a.26.26 0 0 1-.261-.259v-.208a1.205 1.205 0 0 0-1.201-1.204h-.832A1.205 1.205 0 0 0 8.39 8.726v.205a.26.26 0 0 1-.259.261h-.207a1.2 1.2 0 0 0-1.202 1.202v.834a1.204 1.204 0 0 0 1.202 1.201h.207a.26.26 0 0 1 .259.262v.205A1.205 1.205 0 0 0 9.594 14.1h.832a1.204 1.204 0 0 0 1.201-1.204v-.208a.26.26 0 0 1 .261-.258h.208a1.205 1.205 0 0 0 1.202-1.204", fill: "#fff" })));
|
|
313
|
-
|
|
314
|
-
const NavSaveIcon = (props) => (React__default.createElement("svg", Object.assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, props),
|
|
315
|
-
React__default.createElement("path", { d: "M4.767 17.236a1.36 1.36 0 0 0 1.256.188l4.097-1.397a.37.37 0 0 1 .28 0l4.097 1.397q.22.071.45.075c.29.002.573-.09.807-.263a1.43 1.43 0 0 0 .6-1.171V3.935A1.417 1.417 0 0 0 14.946 2.5H5.573a1.416 1.416 0 0 0-1.406 1.434v12.13a1.43 1.43 0 0 0 .6 1.172", fill: "#00CB8A" })));
|
|
316
|
-
|
|
317
|
-
const NavSettingsIcon = (props) => (React__default.createElement("svg", Object.assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, props),
|
|
318
|
-
React__default.createElement("path", { d: "M17.339 8.075a2.177 2.177 0 0 1-1.717-2.944 1.02 1.02 0 0 0-.305-1.15 8.2 8.2 0 0 0-2.445-1.417 1.03 1.03 0 0 0-1.16.323 2.173 2.173 0 0 1-3.423 0 1.03 1.03 0 0 0-1.161-.323A8.2 8.2 0 0 0 4.85 3.842a1.03 1.03 0 0 0-.322 1.183 2.167 2.167 0 0 1-1.806 2.978 1.03 1.03 0 0 0-.9.828 8 8 0 0 0-.05 2.861 1.03 1.03 0 0 0 .906.861 2.166 2.166 0 0 1 1.767 3.061 1.01 1.01 0 0 0 .283 1.211A8.2 8.2 0 0 0 7.15 18.22q.17.059.35.061a1.02 1.02 0 0 0 .833-.433 2.15 2.15 0 0 1 1.778-.934 2.18 2.18 0 0 1 1.745.878 1.02 1.02 0 0 0 1.2.339 8.3 8.3 0 0 0 2.222-1.328 1.03 1.03 0 0 0 .3-1.172 2.167 2.167 0 0 1 1.739-2.995 1.03 1.03 0 0 0 .872-.844 8 8 0 0 0 .144-1.405q0-.749-.138-1.484a1.02 1.02 0 0 0-.856-.828m-4.561 2.312a2.778 2.778 0 1 1-5.556 0 2.778 2.778 0 0 1 5.556 0", fill: "#2D87F3" })));
|
|
319
|
-
|
|
320
|
-
const NavUserIcon = (props) => (React__default.createElement("svg", Object.assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, props),
|
|
321
|
-
React__default.createElement("path", { d: "M10 19.167A9.167 9.167 0 1 0 10 .833a9.167 9.167 0 0 0 0 18.334", fill: "#BCDEFF" }),
|
|
322
|
-
React__default.createElement("path", { d: "M17.356 15.463a9.188 9.188 0 0 0-14.716-.005 9.155 9.155 0 0 0 14.716.005", fill: "#2D87F3" }),
|
|
323
|
-
React__default.createElement("path", { d: "M10 10.591a3.548 3.548 0 1 0 0-7.096 3.548 3.548 0 0 0 0 7.096", fill: "#2D87F3" })));
|
|
324
|
-
|
|
325
|
-
const StyledNavMenu = styled.div `
|
|
326
|
-
padding: 16px;
|
|
327
|
-
border-radius: 16px;
|
|
328
|
-
background-color: white;
|
|
329
|
-
hr {
|
|
330
|
-
border-color: ${theme.colors.neutral100};
|
|
331
|
-
border-bottom-width: 0px;
|
|
332
|
-
border-style: solid;
|
|
333
|
-
}
|
|
334
|
-
.profile-nav-item-group {
|
|
335
|
-
background-color: white;
|
|
336
|
-
border-radius: 8px;
|
|
337
|
-
}
|
|
338
|
-
`;
|
|
339
|
-
const StyledNavMenuItem = styled.div `
|
|
340
|
-
display: block;
|
|
341
|
-
border: 1px solid transparent;
|
|
342
|
-
transition: all 300ms linear;
|
|
343
|
-
cursor: pointer;
|
|
344
|
-
position: relative;
|
|
345
|
-
|
|
346
|
-
${(props) => props.hasSubmenu &&
|
|
347
|
-
css `
|
|
348
|
-
cursor: pointer;
|
|
349
|
-
`}
|
|
350
|
-
|
|
351
|
-
&[data-is-open='true'] {
|
|
352
|
-
& + div {
|
|
353
|
-
margin-top: 8px;
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
border-left-width: 0;
|
|
358
|
-
border-right-width: 0;
|
|
359
|
-
&[data-is-open='true'] {
|
|
360
|
-
& + div {
|
|
361
|
-
margin-top: 0;
|
|
362
|
-
}
|
|
363
|
-
.nav-menu-item:last-child {
|
|
364
|
-
border-bottom-color: ${theme.colors.neutral100};
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
.nav-menu-item {
|
|
368
|
-
background-color: ${theme.colors.neutral50};
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
.nav-menu-item {
|
|
372
|
-
padding-left: 38px;
|
|
373
|
-
}
|
|
374
|
-
`;
|
|
375
|
-
const StyledNavMenuItemContent = styled.div `
|
|
376
|
-
display: flex;
|
|
377
|
-
align-items: center;
|
|
378
|
-
height: 48px;
|
|
379
|
-
border: 1px solid transparent;
|
|
380
|
-
transition: all 300ms;
|
|
381
|
-
border-radius: 8px;
|
|
382
|
-
|
|
383
|
-
&:hover {
|
|
384
|
-
background-color: ${theme.colors.neutral150};
|
|
385
|
-
}
|
|
386
|
-
&[data-active='true'] {
|
|
387
|
-
background-color: ${theme.colors.blue50};
|
|
388
|
-
}
|
|
389
|
-
`;
|
|
390
|
-
const StyledNavMenuItemDropdown = styled.div `
|
|
391
|
-
margin-left: auto;
|
|
392
|
-
|
|
393
|
-
svg {
|
|
394
|
-
fill: ${theme.colors.gray600};
|
|
395
|
-
transition: transform 300ms;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
&[data-is-open='true'] svg {
|
|
399
|
-
transform: rotate(180deg);
|
|
400
|
-
}
|
|
401
|
-
`;
|
|
402
|
-
const StyledNavFooterSubMenu = styled.div `
|
|
403
|
-
overflow: hidden;
|
|
404
|
-
max-height: 0;
|
|
405
|
-
transition: max-height 0.3s ease-out;
|
|
406
|
-
|
|
407
|
-
[data-is-open='true'] & {
|
|
408
|
-
max-height: 500px;
|
|
409
|
-
transition-timing-function: ease-in;
|
|
410
|
-
}
|
|
411
|
-
`;
|
|
412
|
-
|
|
413
|
-
const rankIconUrlMap = {
|
|
414
|
-
helloSites: {
|
|
415
|
-
member: () => CommonGAssets.getAssetPath('userProfileNav/helloSites/icon-rank-member.svg'),
|
|
416
|
-
ambassador: () => CommonGAssets.getAssetPath('userProfileNav/helloSites/icon-rank-ambassador.svg'),
|
|
417
|
-
doctor: () => CommonGAssets.getAssetPath('userProfileNav/helloSites/icon-rank-doctor.svg'),
|
|
418
|
-
expert: () => CommonGAssets.getAssetPath('userProfileNav/helloSites/icon-rank-expert.svg'),
|
|
419
|
-
influencer: () => CommonGAssets.getAssetPath('userProfileNav/helloSites/icon-rank-influencer.svg'),
|
|
420
|
-
},
|
|
421
|
-
marryBaby: {
|
|
422
|
-
member: () => CommonGAssets.getAssetPath('userProfileNav/marryBaby/icon-rank-member.svg'),
|
|
423
|
-
ambassador: () => CommonGAssets.getAssetPath('userProfileNav/marryBaby/icon-rank-ambassador.svg'),
|
|
424
|
-
doctor: () => CommonGAssets.getAssetPath('userProfileNav/marryBaby/icon-rank-doctor.svg'),
|
|
425
|
-
expert: () => CommonGAssets.getAssetPath('userProfileNav/marryBaby/icon-rank-expert.svg'),
|
|
426
|
-
influencer: () => CommonGAssets.getAssetPath('userProfileNav/marryBaby/icon-rank-influencer.svg'),
|
|
427
|
-
},
|
|
428
|
-
};
|
|
429
|
-
const Rank = ({ rank, siteType = 'helloSites', }) => {
|
|
430
|
-
const iconUrl = useMemo(() => {
|
|
431
|
-
var _a, _b;
|
|
432
|
-
return ((_b = (_a = rankIconUrlMap[siteType]) === null || _a === void 0 ? void 0 : _a[rank]) === null || _b === void 0 ? void 0 : _b.call(_a)) || '';
|
|
433
|
-
}, [rank, siteType]);
|
|
434
|
-
const { t } = useTranslations();
|
|
435
|
-
return (React__default.createElement("div", { style: {
|
|
436
|
-
display: 'inline-flex',
|
|
437
|
-
height: 'fit-content',
|
|
438
|
-
alignItems: 'center',
|
|
439
|
-
padding: '5px 12px',
|
|
440
|
-
gap: '4px',
|
|
441
|
-
borderRadius: 16,
|
|
442
|
-
border: `1px solid ${siteType === 'helloSites' ? theme.colors.blue100 : theme.colors.mb100}`,
|
|
443
|
-
} },
|
|
444
|
-
React__default.createElement("img", { src: iconUrl, alt: rank, style: {
|
|
445
|
-
height: 16,
|
|
446
|
-
width: 16,
|
|
447
|
-
} }),
|
|
448
|
-
React__default.createElement(Text, { size: "s5", color: "gray.8", weight: "semiBold" }, t(`userProfile.userRank.${rank}`))));
|
|
449
|
-
};
|
|
450
|
-
|
|
451
|
-
const UserInfoSection = ({ siteType = 'helloSites', userInfo, }) => {
|
|
452
|
-
return (userInfo === null || userInfo === void 0 ? void 0 : userInfo.id) ? (React__default.createElement(React__default.Fragment, null,
|
|
453
|
-
React__default.createElement("div", { style: {
|
|
454
|
-
display: 'flex',
|
|
455
|
-
width: '100%',
|
|
456
|
-
justifyContent: 'space-between',
|
|
457
|
-
} },
|
|
458
|
-
React__default.createElement(Avatar, { src: userInfo.avatar, alt: userInfo.name, size: 48, style: { marginBottom: 8 } }),
|
|
459
|
-
React__default.createElement(Rank, { rank: "member", siteType: siteType })),
|
|
460
|
-
React__default.createElement(Text, { size: "s3", weight: "semiBold", color: "gray.8", style: { marginBottom: 4 } }, userInfo.name),
|
|
461
|
-
React__default.createElement(Text, { size: "n1", weight: "regular", color: siteType === 'helloSites' ? 'hb.6' : 'mb.6' },
|
|
462
|
-
"@",
|
|
463
|
-
userInfo.username),
|
|
464
|
-
React__default.createElement("hr", null))) : null;
|
|
465
|
-
};
|
|
466
|
-
|
|
467
|
-
const ProfileNavigation = ({ className, activeItem: forceActiveItem, navMenuItems: navMenuItemsProp, style, onLogout, siteType = 'helloSites', userInfo, }) => {
|
|
468
|
-
const { locale } = useTranslations();
|
|
469
|
-
const [localActiveItem, setLocalActiveItem] = useState();
|
|
470
|
-
const activeItem = typeof forceActiveItem === 'string' ? forceActiveItem : localActiveItem;
|
|
471
|
-
const SSO_URL = normalizeLinkSlash(getCurrentSsoUrl(locale, siteType === 'marryBaby') + '/');
|
|
472
|
-
const BASE_URL = normalizeLinkSlash(getCurrentBaseUrl(locale, siteType === 'marryBaby') + '/');
|
|
473
|
-
const navMenuItems = navMenuItemsProp || [
|
|
474
|
-
[
|
|
475
|
-
{
|
|
476
|
-
key: 'userProfile.nav.header.viewProfile',
|
|
477
|
-
icon: React__default.createElement(NavUserIcon, { width: "24", height: "24" }),
|
|
478
|
-
value: 'profile',
|
|
479
|
-
tracking: {
|
|
480
|
-
action: 'Profile Click',
|
|
481
|
-
},
|
|
482
|
-
link: `${SSO_URL}user/profile/`,
|
|
483
|
-
},
|
|
484
|
-
{
|
|
485
|
-
key: 'userProfile.nav.card.myHealth',
|
|
486
|
-
icon: React__default.createElement(NavMyHealthIcon, { width: "24", height: "24" }),
|
|
487
|
-
value: 'myHealth',
|
|
488
|
-
tracking: {
|
|
489
|
-
action: 'My Health Click',
|
|
490
|
-
},
|
|
491
|
-
link: `${SSO_URL}user/health/`,
|
|
492
|
-
},
|
|
493
|
-
{
|
|
494
|
-
key: 'userProfile.nav.card.mySaved',
|
|
495
|
-
icon: React__default.createElement(NavSaveIcon, { width: "24", height: "24" }),
|
|
496
|
-
iconColor: 'green_300',
|
|
497
|
-
value: 'saved',
|
|
498
|
-
tracking: {
|
|
499
|
-
action: 'Bookmarks Click',
|
|
500
|
-
},
|
|
501
|
-
link: `${SSO_URL}user/saved/`,
|
|
502
|
-
},
|
|
503
|
-
{
|
|
504
|
-
key: 'userProfile.nav.card.myBooking',
|
|
505
|
-
icon: React__default.createElement(NavBookingIcon, { width: "24", height: "24" }),
|
|
506
|
-
value: 'booking',
|
|
507
|
-
disabled: !CARE_LOCALES.includes(locale),
|
|
508
|
-
tracking: {
|
|
509
|
-
action: 'Manage Booking Click',
|
|
510
|
-
},
|
|
511
|
-
link: `${SSO_URL}user/booking/`,
|
|
512
|
-
},
|
|
513
|
-
{
|
|
514
|
-
key: 'userProfile.nav.card.myCommunity',
|
|
515
|
-
icon: React__default.createElement(NavCommunityIcon, { width: "24", height: "24" }),
|
|
516
|
-
value: 'myCommunities',
|
|
517
|
-
disabled: !TOGETHER_LOCALES.includes(locale),
|
|
518
|
-
tracking: {
|
|
519
|
-
action: 'Community Click',
|
|
520
|
-
},
|
|
521
|
-
link: `${SSO_URL}user/my-communities/`,
|
|
522
|
-
},
|
|
523
|
-
],
|
|
524
|
-
...(ECOM_LOCALES.includes(locale)
|
|
525
|
-
? [
|
|
526
|
-
[
|
|
527
|
-
{
|
|
528
|
-
key: 'userProfile.nav.card.eCom',
|
|
529
|
-
icon: React__default.createElement(NavEshopIcon, { width: "24", height: "24" }),
|
|
530
|
-
value: 'eCom',
|
|
531
|
-
disabled: !ECOM_LOCALES.includes(locale),
|
|
532
|
-
subMenu: [
|
|
533
|
-
{
|
|
534
|
-
key: 'userProfile.nav.card.ecom.manageOrders',
|
|
535
|
-
value: 'eCom-manageOrders',
|
|
536
|
-
icon: React__default.createElement(NavDotIcon, { width: "24", height: "24" }),
|
|
537
|
-
link: `${BASE_URL}shop/ho-so/quan-li-don-hang/`,
|
|
538
|
-
tracking: {
|
|
539
|
-
action: 'Order Management Click',
|
|
540
|
-
},
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
key: 'userProfile.nav.card.ecom.DeliveryAddress',
|
|
544
|
-
value: 'eCom-manageAddress',
|
|
545
|
-
icon: React__default.createElement(NavDotIcon, { width: "24", height: "24" }),
|
|
546
|
-
link: `${BASE_URL}shop/ho-so/dia-chi-giao-hang/`,
|
|
547
|
-
tracking: {
|
|
548
|
-
action: 'Address Management Click',
|
|
549
|
-
},
|
|
550
|
-
},
|
|
551
|
-
{
|
|
552
|
-
key: 'userProfile.nav.card.ecom.voucher',
|
|
553
|
-
value: 'eCom-voucher',
|
|
554
|
-
icon: React__default.createElement(NavDotIcon, { width: "24", height: "24" }),
|
|
555
|
-
link: `${BASE_URL}shop/ho-so/khuyen-mai/`,
|
|
556
|
-
tracking: {
|
|
557
|
-
action: 'Voucher Click',
|
|
558
|
-
},
|
|
559
|
-
},
|
|
560
|
-
// {
|
|
561
|
-
// key: 'nav.card.memberCard',
|
|
562
|
-
// value: 'eCom-memberCard',
|
|
563
|
-
// icon: <NavDotIcon width="24"
|
|
564
|
-
// height="24"/>,
|
|
565
|
-
// link: routingHandler
|
|
566
|
-
// .getLocalisedUrl('', 'PROFILE_MEMBER_CARD')
|
|
567
|
-
// .toString(),
|
|
568
|
-
// tracking: {
|
|
569
|
-
// action: 'Member Card Click',
|
|
570
|
-
// },
|
|
571
|
-
// },
|
|
572
|
-
],
|
|
573
|
-
},
|
|
574
|
-
],
|
|
575
|
-
]
|
|
576
|
-
: []),
|
|
577
|
-
[
|
|
578
|
-
{
|
|
579
|
-
key: 'userProfile.nav.menu.accountSettings',
|
|
580
|
-
icon: React__default.createElement(NavSettingsIcon, { width: "24", height: "24" }),
|
|
581
|
-
subMenu: [
|
|
582
|
-
// {
|
|
583
|
-
// key: 'common.profileNavigator.newsletterSubscription',
|
|
584
|
-
// value: 'subscription',
|
|
585
|
-
// icon: <NavDotIcon width="24" height="24" />,
|
|
586
|
-
// tracking: { action: 'Subscription Click' },
|
|
587
|
-
// link: `${SSO_URL}user/subscriptions/`,
|
|
588
|
-
// disabled: locale !== 'vi-VN',
|
|
589
|
-
// },
|
|
590
|
-
{
|
|
591
|
-
key: 'userProfile.nav.menu.password',
|
|
592
|
-
value: 'password',
|
|
593
|
-
icon: React__default.createElement(NavDotIcon, { width: "24", height: "24" }),
|
|
594
|
-
tracking: { action: 'Set Password Click' },
|
|
595
|
-
link: `${SSO_URL}user/password/`,
|
|
596
|
-
},
|
|
597
|
-
{
|
|
598
|
-
key: 'userProfile.nav.menu.disableAccount',
|
|
599
|
-
value: 'disable-account',
|
|
600
|
-
icon: React__default.createElement(NavDotIcon, { width: "24", height: "24" }),
|
|
601
|
-
tracking: { action: 'Disable Account Click' },
|
|
602
|
-
link: `${SSO_URL}user/disable-account/`,
|
|
603
|
-
},
|
|
604
|
-
],
|
|
605
|
-
},
|
|
606
|
-
],
|
|
607
|
-
[
|
|
608
|
-
{
|
|
609
|
-
key: 'userProfile.nav.menu.help',
|
|
610
|
-
icon: React__default.createElement(NavHelpIcon, { width: "24", height: "24" }),
|
|
611
|
-
value: 'help',
|
|
612
|
-
link: `${SSO_URL}user/help`,
|
|
613
|
-
tracking: {
|
|
614
|
-
action: 'Support Click',
|
|
615
|
-
},
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
key: 'userProfile.nav.menu.logout',
|
|
619
|
-
icon: React__default.createElement(NavLogOutIcon, { width: "24", height: "24" }),
|
|
620
|
-
value: 'logout',
|
|
621
|
-
tracking: {
|
|
622
|
-
action: 'Sign Out Click',
|
|
623
|
-
},
|
|
624
|
-
},
|
|
625
|
-
],
|
|
626
|
-
];
|
|
627
|
-
return (React__default.createElement(StyledNavMenu, { className: className, style: style },
|
|
628
|
-
React__default.createElement(UserInfoSection, { userInfo: userInfo, siteType: siteType }),
|
|
629
|
-
navMenuItems.map((items, index) => (React__default.createElement(Fragment, { key: index },
|
|
630
|
-
React__default.createElement("div", { className: "profile-nav-item-group", key: index }, items.map((item) => (React__default.createElement(NavMenuItem, { key: item.key, item: item, activeKey: activeItem || '', onLogout: onLogout, onClick: () => setLocalActiveItem((k) => k === item.key ? undefined : item.key), siteType: siteType })))),
|
|
631
|
-
index !== navMenuItems.length - 1 && React__default.createElement("hr", null))))));
|
|
632
|
-
};
|
|
633
|
-
const NavMenuItem = ({ item, activeKey, forceOpen, onLogout, onClick, siteType = 'helloSites', }) => {
|
|
634
|
-
var _a, _b;
|
|
635
|
-
const [localOpen, setLocalOpen] = useState(false);
|
|
636
|
-
const currentUrl = useMemo(() => {
|
|
637
|
-
if (typeof window !== 'undefined') {
|
|
638
|
-
return window.location.href;
|
|
639
|
-
}
|
|
640
|
-
else
|
|
641
|
-
return '';
|
|
642
|
-
}, []);
|
|
643
|
-
if (item.disabled) {
|
|
644
|
-
return null;
|
|
645
|
-
}
|
|
646
|
-
const { t } = useTranslations();
|
|
647
|
-
const hasChildActive = (_a = item.subMenu) === null || _a === void 0 ? void 0 : _a.some((subItem) => subItem.key === activeKey);
|
|
648
|
-
const isActive = activeKey === item.key;
|
|
649
|
-
useEffect(() => {
|
|
650
|
-
if (hasChildActive || isActive) {
|
|
651
|
-
setLocalOpen(true);
|
|
652
|
-
}
|
|
653
|
-
}, [hasChildActive, isActive]);
|
|
654
|
-
const isOpen = typeof forceOpen === 'boolean' ? forceOpen : localOpen;
|
|
655
|
-
return (React__default.createElement(StyledNavMenuItem, { as: !item.subMenu ? 'a' : undefined, "data-is-open": isOpen, key: item.key, hasSubmenu: !!item.subMenu, onClick: () => {
|
|
656
|
-
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
657
|
-
if (item.subMenu && !forceOpen) {
|
|
658
|
-
setLocalOpen((k) => !k);
|
|
659
|
-
}
|
|
660
|
-
else {
|
|
661
|
-
if (item.value === 'logout') {
|
|
662
|
-
onLogout === null || onLogout === void 0 ? void 0 : onLogout();
|
|
663
|
-
}
|
|
664
|
-
else if (item.link) {
|
|
665
|
-
window.location.href = item.link;
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
}, "data-event-category": "Ecommerce", "data-event-action": ((_b = item === null || item === void 0 ? void 0 : item.tracking) === null || _b === void 0 ? void 0 : _b.action) || '', "data-event-label": currentUrl },
|
|
669
|
-
React__default.createElement(StyledNavMenuItemContent, { "data-active": isActive },
|
|
670
|
-
item.icon,
|
|
671
|
-
React__default.createElement(Text, { size: "p3", style: {
|
|
672
|
-
marginLeft: item.icon ? 24 : 48,
|
|
673
|
-
transition: `color 300ms`,
|
|
674
|
-
}, color: isActive ? (siteType === 'helloSites' ? 'hb.6' : 'mb.6') : 'gray.8' }, t(item.key)),
|
|
675
|
-
item.subMenu && (React__default.createElement(StyledNavMenuItemDropdown, { "data-is-open": isOpen },
|
|
676
|
-
React__default.createElement(ChevronDown, { width: 14 })))),
|
|
677
|
-
item.subMenu && (React__default.createElement(StyledNavFooterSubMenu, null, item.subMenu.map((subItem) => (React__default.createElement(NavMenuItem, { key: subItem.key, item: subItem, activeKey: activeKey, onLogout: onLogout, siteType: siteType })))))));
|
|
678
|
-
};
|
|
679
|
-
|
|
680
|
-
const ProfilePopup = ({ isOpen, userInfo, closePopup, siteType = 'helloSites', dispatchLogout, }) => {
|
|
681
|
-
const handleClickLogout = () => {
|
|
682
|
-
if (dispatchLogout) {
|
|
683
|
-
dispatchLogout();
|
|
684
|
-
closePopup();
|
|
685
|
-
}
|
|
686
|
-
};
|
|
687
|
-
return (React__default.createElement(StyledPopup$1, { "data-open": isOpen },
|
|
688
|
-
React__default.createElement("div", { className: "popup-content" },
|
|
689
|
-
React__default.createElement(ProfileNavigation, { siteType: siteType, onLogout: handleClickLogout, userInfo: userInfo }))));
|
|
690
|
-
};
|
|
691
|
-
|
|
692
|
-
const StyledPopup = styled.div `
|
|
693
|
-
background-color: white;
|
|
694
|
-
text-align: center;
|
|
695
|
-
.cancle-img {
|
|
696
|
-
margin-top: 24px;
|
|
697
|
-
${MediaQueries.mbDown} {
|
|
698
|
-
width: 80px;
|
|
699
|
-
height: 80px;
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
${MediaQueries.mbUp} {
|
|
703
|
-
width: 100px;
|
|
704
|
-
height: 100px;
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
h2 {
|
|
709
|
-
margin-top: 32px;
|
|
710
|
-
color: ${theme.colors.gray800};
|
|
711
|
-
font-style: normal;
|
|
712
|
-
font-weight: bold;
|
|
713
|
-
${MediaQueries.mbDown} {
|
|
714
|
-
font-size: 24px;
|
|
715
|
-
line-height: 32px;
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
${MediaQueries.mbUp} {
|
|
719
|
-
font-size: 32px;
|
|
720
|
-
line-height: 42px;
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
p {
|
|
725
|
-
margin-top: 8px;
|
|
726
|
-
color: ${theme.colors.gray600};
|
|
727
|
-
font-style: normal;
|
|
728
|
-
font-weight: normal;
|
|
729
|
-
${MediaQueries.mbDown} {
|
|
730
|
-
font-size: 16px;
|
|
731
|
-
line-height: 24px;
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
${MediaQueries.mbUp} {
|
|
735
|
-
font-size: 16px;
|
|
736
|
-
line-height: 24px;
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
`;
|
|
740
|
-
const StyledButtonGroup = styled.div `
|
|
741
|
-
display: flex;
|
|
742
|
-
|
|
743
|
-
${MediaQueries.mbDown} {
|
|
744
|
-
margin-top: 24px;
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
${MediaQueries.mbUp} {
|
|
748
|
-
margin-top: 32px;
|
|
749
|
-
}
|
|
750
|
-
justify-content: space-around;
|
|
751
|
-
button {
|
|
752
|
-
flex: 1;
|
|
753
|
-
margin: 4px;
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
${(props) => props.siteType === 'marryBaby'
|
|
757
|
-
? `
|
|
758
|
-
.cancel-button {
|
|
759
|
-
background-color: #E55C8A;
|
|
760
|
-
}
|
|
761
|
-
.cancel-button:hover {
|
|
762
|
-
background-color: #E55C8A !important;
|
|
763
|
-
}
|
|
764
|
-
.logout-button {
|
|
765
|
-
border-color: #E55C8A;
|
|
766
|
-
color: #E55C8A;
|
|
767
|
-
}
|
|
768
|
-
`
|
|
769
|
-
: ''}
|
|
770
|
-
`;
|
|
771
|
-
|
|
772
|
-
const NavigationLogoutPopup = ({ openLogoutPopup, onCloseHandler, onLogoutHandler, siteType = 'helloSites', }) => {
|
|
773
|
-
const { t } = useTranslations();
|
|
774
|
-
useEffect(() => {
|
|
775
|
-
document.body.classList.toggle('noscroll', openLogoutPopup);
|
|
776
|
-
}, [openLogoutPopup]);
|
|
777
|
-
return (React__default.createElement(Portal, null,
|
|
778
|
-
React__default.createElement(Popup, { type: "confirm", isOpen: openLogoutPopup, closeIcon: React__default.createElement("img", { src: CommonGAssets.getAssetPath('closeLight.svg'), style: { width: 24, height: 24 }, alt: "close-icon", loading: "lazy" }), onClose: onCloseHandler },
|
|
779
|
-
React__default.createElement(StyledPopup, null,
|
|
780
|
-
siteType === 'helloSites' && (React__default.createElement("img", { src: CommonGAssets.getAssetPath('arrowDoor.svg'), className: "cancle-img", alt: "close-account", loading: "lazy" })),
|
|
781
|
-
React__default.createElement("h2", null, t(siteType === 'helloSites'
|
|
782
|
-
? 'logout.popup.ask1'
|
|
783
|
-
: 'logout.popup.ask.mb')),
|
|
784
|
-
React__default.createElement("p", null, t('logout.popup.ask2')),
|
|
785
|
-
React__default.createElement(StyledButtonGroup, { siteType: siteType },
|
|
786
|
-
React__default.createElement(Button, { className: "logout-button", color: "tertiary", size: "lg", onClick: onLogoutHandler }, t('logout.popup.button.logout')),
|
|
787
|
-
React__default.createElement(Button, { className: "cancel-button", color: "primary", size: "lg", onClick: onCloseHandler }, t('logout.popup.button.cancel')))))));
|
|
788
|
-
};
|
|
789
|
-
|
|
790
|
-
const NavigationProfileButton = ({ userInfo, siteType, onLoginClick, SSO_URL, currentUrl, isMinifyLogin, onLogout, style, isLoading, locale, }) => {
|
|
791
|
-
const { t } = useTranslations();
|
|
792
|
-
const [isLogoutConfirmOpen, setIsLogoutConfirmOpen] = useState(false);
|
|
793
|
-
const name = (userInfo === null || userInfo === void 0 ? void 0 : userInfo.name) || (userInfo === null || userInfo === void 0 ? void 0 : userInfo.username);
|
|
794
|
-
const [init, setInit] = useState(false);
|
|
795
|
-
useEffect(() => {
|
|
796
|
-
setInit(true);
|
|
797
|
-
}, []);
|
|
798
|
-
const { containerRef, onContainerFocus, onContainerBlur, onButtonMouseDown, onClose, } = useCSSFocusPopupHelper();
|
|
799
|
-
if (isLoading)
|
|
800
|
-
return React__default.createElement(Button$1, { size: "sm", color: "transparent", loading: true });
|
|
801
|
-
return (userInfo === null || userInfo === void 0 ? void 0 : userInfo.id) ? (React__default.createElement(React__default.Fragment, null,
|
|
802
|
-
React__default.createElement(StyledImageWrapper$1, { ref: containerRef, style: style, tabIndex: 0, onBlur: onContainerBlur, onFocus: () => {
|
|
803
|
-
var _a;
|
|
804
|
-
onContainerFocus();
|
|
805
|
-
const popup = (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.querySelector('#desktop-sticky-header .hhgcomp-navprofilebutton-popup');
|
|
806
|
-
if (popup) {
|
|
807
|
-
const bound = popup.getBoundingClientRect();
|
|
808
|
-
const top = bound.top;
|
|
809
|
-
const maxHeight = `calc(100vh - ${top}px)`;
|
|
810
|
-
popup.setAttribute('style', `max-height: ${maxHeight};`);
|
|
811
|
-
}
|
|
812
|
-
} },
|
|
813
|
-
React__default.createElement("div", { onMouseDown: onButtonMouseDown },
|
|
814
|
-
React__default.createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", className: "user-close-icon" },
|
|
815
|
-
React__default.createElement("path", { d: "M18 6L6 18M18 18L6 6", stroke: "#3E3F58", strokeWidth: "1.3", strokeLinecap: "round" })),
|
|
816
|
-
React__default.createElement(Avatar, { size: 36, className: "user-avatar", src: userInfo === null || userInfo === void 0 ? void 0 : userInfo.avatar, color: siteType === 'marryBaby'
|
|
817
|
-
? theme.mbColors.pink
|
|
818
|
-
: theme.colors.secondaryBase, placeholderText: name && name.length ? name[0].toUpperCase() : 'A' })),
|
|
819
|
-
React__default.createElement(ProfilePopup, { dispatchLogout: () => {
|
|
820
|
-
onClose();
|
|
821
|
-
setIsLogoutConfirmOpen(true);
|
|
822
|
-
}, isOpen: false, closePopup: onClose, siteType: siteType, userInfo: userInfo })),
|
|
823
|
-
React__default.createElement(NavigationLogoutPopup, { openLogoutPopup: isLogoutConfirmOpen, onCloseHandler: () => {
|
|
824
|
-
document.body.classList.toggle('noscroll', false);
|
|
825
|
-
setIsLogoutConfirmOpen(false);
|
|
826
|
-
}, siteType: siteType, onLogoutHandler: () => __awaiter(void 0, void 0, void 0, function* () {
|
|
827
|
-
setIsLogoutConfirmOpen(false);
|
|
828
|
-
document.body.classList.toggle('noscroll', false);
|
|
829
|
-
yield onLogout();
|
|
830
|
-
}) }))) : (React__default.createElement(StyledLoggedOutAnchor, { style: Object.assign({ textDecoration: 'none' }, style), "data-event-category": "Sign Up", "data-event-action": "Button Click", "data-event-label": currentUrl, href: !init
|
|
831
|
-
? normalizeLinkSlash(`${SSO_URL}?returnUrl=${currentUrl}`)
|
|
832
|
-
: undefined, "data-site-type": siteType, onClick: onLoginClick }, isMinifyLogin ? (React__default.createElement(StyledAvatar, null,
|
|
833
|
-
React__default.createElement("img", { src: CommonGAssets.getAssetPath('lock.png'), className: "avatar", loading: "lazy", alt: "avatar" }))) : (
|
|
834
|
-
// LOGIC:
|
|
835
|
-
// - DEsktop: always show button
|
|
836
|
-
// - Mobile: show button only for helloSites, show text for MarryBaby
|
|
837
|
-
React__default.createElement(React__default.Fragment, null,
|
|
838
|
-
siteType === 'helloSites' &&
|
|
839
|
-
(locale === LOCALE.Indonesia ||
|
|
840
|
-
locale === LOCALE.PhilippinesTagalog ||
|
|
841
|
-
locale === LOCALE.PhilippinesEnglish ? (React__default.createElement("img", { className: "mobile-only", src: CommonGAssets.getAssetPath('login.svg'), style: {
|
|
842
|
-
cursor: 'pointer',
|
|
843
|
-
height: 24,
|
|
844
|
-
width: 24,
|
|
845
|
-
} })) : (React__default.createElement(Button$1, { className: "mobile-only", size: "sm", leftIcon: React__default.createElement(User, { color: "currentColor", isSolid: true, size: 22 }), sx: {
|
|
846
|
-
paddingLeft: '8px',
|
|
847
|
-
paddingRight: '12px',
|
|
848
|
-
} }, t('navigation.loginJoin')))),
|
|
849
|
-
siteType === 'marryBaby' && (React__default.createElement("div", { className: "mobile-only", style: {
|
|
850
|
-
paddingLeft: 16,
|
|
851
|
-
} },
|
|
852
|
-
React__default.createElement(Text, { size: "p3", color: theme.mbColors.pink }, t('navigation.loginJoin')))),
|
|
853
|
-
siteType === 'marryBaby' ? (React__default.createElement(Button$1, { className: "login-btn", size: "md", leftIcon: React__default.createElement(User, { color: "currentColor", isSolid: true, size: 22 }) }, t('navigation.loginJoin'))) : (React__default.createElement(Button$1, { className: "login-btn", size: "md", leftIcon: React__default.createElement(User, { color: "#595959", isSolid: true, size: 22 }), variant: "ghost", color: "#262626" }, t('navigation.loginJoin')))))));
|
|
854
|
-
};
|
|
855
|
-
|
|
856
91
|
var styles$3 = {"bookingButton":"spdlGfq","bookingButtonAnchor":"vgS16jX"};
|
|
857
92
|
|
|
858
93
|
const BookingButton = ({ onCareHeaderClick, currentUrl, careUrlFe, btnName, }) => {
|
|
@@ -2837,13 +2072,13 @@ const ItemNavButton = ({ item, color = 'blue' }) => {
|
|
|
2837
2072
|
});
|
|
2838
2073
|
}
|
|
2839
2074
|
if (item.id === 'care') {
|
|
2840
|
-
import('./doctor-
|
|
2075
|
+
import('./doctor-63e09ada.js').then((data) => {
|
|
2841
2076
|
if (data === null || data === void 0 ? void 0 : data.default)
|
|
2842
2077
|
setIconJson(() => data.default);
|
|
2843
2078
|
});
|
|
2844
2079
|
}
|
|
2845
2080
|
else if (item.id === 'ecom') {
|
|
2846
|
-
import('./cart-
|
|
2081
|
+
import('./cart-4f482601.js').then((data) => {
|
|
2847
2082
|
if (data === null || data === void 0 ? void 0 : data.default)
|
|
2848
2083
|
setIconJson(() => data.default);
|
|
2849
2084
|
});
|
|
@@ -3278,4 +2513,4 @@ const getNavMenuContentWithCache = (locale) => __awaiter(void 0, void 0, void 0,
|
|
|
3278
2513
|
return (yield getDataWithCache('nav-menu-content', () => getNavMenuContent(locale || 'en-PH'), (data) => { var _a, _b; return !!((_b = (_a = data === null || data === void 0 ? void 0 : data.categories) === null || _a === void 0 ? void 0 : _a.items) === null || _b === void 0 ? void 0 : _b.length); })) || {};
|
|
3279
2514
|
});
|
|
3280
2515
|
|
|
3281
|
-
export { NavigationV2 as N,
|
|
2516
|
+
export { NavigationV2 as N, getNavMenuContentWithCache as a, getTogetherUserPostsApiPath as b, getNavMenuContent as g };
|