@hhgtech/hhg-components 1.29.88 → 1.29.90
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-235fc10e.js → LastPeriod-5e6d2274.js} +1 -1
- package/build/MobileBottomNavigationIcon-3103ca02.js +193 -0
- package/build/{WhatsApp-e6406d8d.js → WhatsApp-21d7b616.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/molecules/popup/index.d.ts +2 -1
- package/build/components.js +125 -115
- package/build/{constants-2d046b25.js → constants-8abd9991.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-ab09e68b.js → core-e12ff855.js} +1 -1
- package/build/{dataTransform-945e5f4f.js → dataTransform-27a22c74.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/editor-e761dc49.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-fcd2b5ec.js → LastPeriod-cd2e1a56.js} +1 -1
- package/build/esm/MobileBottomNavigationIcon-cfcb7894.js +185 -0
- package/build/esm/{WhatsApp-2f54ed26.js → WhatsApp-6e473416.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/molecules/popup/index.d.ts +2 -1
- package/build/esm/components.js +93 -83
- package/build/esm/{constants-b68073ea.js → constants-6409f351.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-bcdf3422.js → core-f2306660.js} +1 -1
- package/build/esm/{dataTransform-c3905a10.js → dataTransform-7074431d.js} +2 -2
- package/build/esm/ecom.js +4 -4
- package/build/esm/editor-f1c53093.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-bb1a3c50.js → fixedBottomAdBlock-3d6bb6ed.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-2b20b8ce.js → index-00949e45.js} +2 -2
- package/build/esm/{index-7ab1ac4c.js → index-011e1a41.js} +2 -2
- package/build/esm/{index-e84f16f3.js → index-050b8644.js} +3 -142
- package/build/esm/{index-a7bfcfbd.js → index-0ad45a17.js} +6 -6
- package/build/esm/{index-48fdf51c.js → index-1065c7d0.js} +16 -15
- package/build/esm/{index-b927d85a.js → index-1778704d.js} +12 -11
- package/build/esm/{index-c0790cdc.js → index-1ba53d6c.js} +20 -17
- package/build/esm/{index-a2704991.js → index-21c80677.js} +16 -88
- package/build/esm/{index-8570e132.js → index-296a1099.js} +2 -2
- package/build/esm/index-2f30d1dd.js +860 -0
- package/build/esm/index-3367898a.js +1264 -0
- package/build/esm/{index-11bc6557.js → index-391aad5b.js} +3 -3
- package/build/esm/{index-63d30402.js → index-405b11d3.js} +16 -15
- package/build/esm/{index-d3c3615e.js → index-42286f3e.js} +2 -2
- package/build/esm/{index-1f944c2d.js → index-44ced5ce.js} +5 -5
- package/build/esm/{index-140ea208.js → index-4d512cd9.js} +17 -16
- package/build/esm/{index-2f06b1d8.js → index-51179764.js} +1 -1
- package/build/esm/{index-fcf9a2ce.js → index-52f07e54.js} +14 -13
- package/build/esm/{index-b4cab951.js → index-54d714a2.js} +16 -15
- package/build/esm/index-5bd382e3.js +281 -0
- package/build/esm/{index-7d97103f.js → index-5d2f2783.js} +2 -2
- package/build/esm/{index-d10d5d1f.js → index-5f04e701.js} +4 -4
- package/build/esm/{index-04146795.js → index-670afcce.js} +5 -3
- package/build/esm/{index-17115a3b.js → index-6ce0d042.js} +15 -14
- package/build/esm/{index-e5797070.js → index-6ebc4e40.js} +3 -3
- package/build/esm/{index-fbe76c43.js → index-714d2892.js} +7 -6
- package/build/esm/{index-efdc151c.js → index-75811f98.js} +12 -11
- package/build/esm/{index-321f0612.js → index-78cb9c0e.js} +1 -1
- package/build/esm/{index-19a9a60d.js → index-7a3ac1f6.js} +1 -1
- package/build/esm/{index-29676661.js → index-8002ffd2.js} +6 -6
- package/build/esm/index-82b481bf.js +468 -0
- package/build/esm/{index-83ab0594.js → index-83dba9e4.js} +35 -800
- package/build/esm/{index-f42f0c66.js → index-918a026b.js} +2 -2
- package/build/esm/{index-67603e6c.js → index-9197f143.js} +15 -14
- package/build/esm/{index-69c631bf.js → index-9c7493b6.js} +12 -11
- package/build/esm/{index-2292c1f3.js → index-a0d47b03.js} +2 -2
- package/build/esm/{index-0cf91429.js → index-a134d156.js} +1 -1
- package/build/esm/index-a8b7284e.js +144 -0
- package/build/esm/{index-05075062.js → index-b013dd09.js} +1 -1
- package/build/esm/{index-9a0b3bcd.js → index-b266ccec.js} +7 -7
- package/build/esm/{index-4e92aaf2.js → index-b4efb261.js} +3 -3
- package/build/esm/{index-ef2b1e44.js → index-b87e6e0b.js} +6 -6
- package/build/esm/{index-0e0f3ac6.js → index-ba8e6508.js} +1 -1
- package/build/esm/{index-5303fcd9.js → index-bda0913e.js} +2 -2
- package/build/esm/{index-58ed669e.js → index-c2e1fb70.js} +23 -19
- package/build/esm/{index-b23b0c82.js → index-c8368a30.js} +14 -13
- package/build/esm/{index-877a46df.js → index-cb4b219f.js} +2 -2
- package/build/esm/index-d034201a.js +22 -0
- package/build/esm/{index-69ca7b6a.js → index-d5543323.js} +2 -2
- package/build/esm/index-d66bd239.js +1030 -0
- package/build/esm/{index-155daac5.js → index-da92eee1.js} +2 -2
- package/build/esm/{index-a715b700.js → index-e63aadb3.js} +15 -14
- package/build/esm/{index-5a81cbdd.js → index-e7128232.js} +1 -1
- package/build/esm/{index-58982ea1.js → index-ec003775.js} +3 -3
- package/build/esm/{index-cde1edae.js → index-f0dc90df.js} +21 -19
- package/build/esm/{index-478546e8.js → index-f8cc91fb.js} +12 -11
- package/build/esm/index.js +118 -98
- package/build/esm/index.styles-793c0b30.js +62 -0
- package/build/esm/interfaces/types/Subot.d.ts +3 -3
- package/build/esm/{labelSorting-db27bdad.js → labelSorting-feaa24fb.js} +4 -4
- package/build/esm/lead.js +22 -20
- package/build/esm/{logoIcon-6ed45e55.js → logoIcon-fbc8e7a1.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 +8 -8
- 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-fcd22117.js → normalizeLink-136a636d.js} +1 -1
- package/build/esm/onboardingV2.js +27 -25
- package/build/esm/organisms.js +46 -41
- package/build/esm/post-203760fe.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-ed745cc6.js → routing-e57320c2.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-6fc9a327.js → surveyThankyouCard-5a060837.js} +5 -5
- package/build/esm/together/components/molecules/popupFrame/index.d.ts +2 -1
- 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-937ef815.js → treePopoverMenu-7845b5c1.js} +18 -17
- package/build/esm/types-5f680f53.js +44 -0
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-d239339f.js → useCategory-c847c3ee.js} +5 -5
- package/build/esm/{useHealthToolCache-e6e0e96c.js → useHealthToolCache-41375a2b.js} +1 -1
- package/build/esm/{useMantineLocale-2ece6eac.js → useMantineLocale-bef42461.js} +5 -5
- package/build/esm/{usePlacesAutocomplete-ecf31643.js → usePlacesAutocomplete-44a9e05c.js} +1 -1
- package/build/esm/useTogetherAuthRequiredAction.js +4 -4
- package/build/esm/{useTranslations-160e66cc.js → useTranslations-9767b0ea.js} +1 -1
- package/build/esm/utils-7871047f.js +206 -0
- package/build/esm/{utils-3d9043fb.js → utils-8a1ccf09.js} +4 -4
- package/build/esm/{utils-d78e02e6.js → utils-c1678a05.js} +2 -2
- package/build/esm/vaccination.js +20 -18
- package/build/{fixedBottomAdBlock-87988744.js → fixedBottomAdBlock-bfdbc0df.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-c016b1bb.js → index-133544cd.js} +14 -13
- package/build/index-137b351f.js +1045 -0
- package/build/{index-92815934.js → index-190832cb.js} +5 -5
- package/build/{index-0772398f.js → index-1b1ac8fe.js} +1 -1
- package/build/{index-a6acde43.js → index-2089929b.js} +38 -34
- package/build/{index-f8a51099.js → index-2c23680e.js} +2 -2
- package/build/index-2d391b09.js +151 -0
- package/build/{index-b040447b.js → index-2f31063d.js} +2 -2
- package/build/{index-d9559ac1.js → index-31045247.js} +2 -2
- package/build/{index-e4004288.js → index-330e16a8.js} +2 -2
- package/build/{index-b8620e16.js → index-3c6a1bfc.js} +2 -2
- package/build/{index-e7b871b4.js → index-3f49c41e.js} +3 -143
- package/build/index-4b1b3672.js +478 -0
- package/build/{index-4a6c95fe.js → index-5209298d.js} +12 -11
- package/build/index-5cc887da.js +870 -0
- package/build/{index-a97a7a53.js → index-5e1337b4.js} +31 -29
- package/build/{index-2de1a14d.js → index-6266a5df.js} +2 -2
- package/build/{index-f3553904.js → index-62f912e0.js} +9 -8
- package/build/{index-84e8b355.js → index-63f2aaa5.js} +15 -14
- package/build/{index-9f995309.js → index-65eb73e7.js} +34 -31
- package/build/{index-6c2d2f25.js → index-67fa5818.js} +24 -99
- package/build/index-69cd0b40.js +1307 -0
- package/build/{index-d39f2445.js → index-6cda2bed.js} +4 -4
- package/build/{index-9add51eb.js → index-74869e06.js} +3 -3
- package/build/{index-227e17fd.js → index-7b74a414.js} +2 -2
- package/build/{index-6ce119f5.js → index-7b8badf9.js} +2 -2
- package/build/{index-bac0bd08.js → index-7dfa541c.js} +3 -3
- package/build/{index-519a6287.js → index-81dcaeb1.js} +12 -11
- package/build/{index-5ddda8f4.js → index-82577dcf.js} +16 -15
- package/build/{index-f05721a0.js → index-870325c1.js} +7 -7
- package/build/{index-a136cba7.js → index-87d6e499.js} +6 -6
- package/build/{index-554ad68c.js → index-8ce24abd.js} +1 -1
- package/build/{index-03834ac7.js → index-8e2a718b.js} +3 -3
- package/build/{index-347a91f6.js → index-930f87f9.js} +1 -1
- package/build/{index-ae03f378.js → index-96e9edfa.js} +16 -15
- package/build/{index-196d4981.js → index-9ca1658b.js} +1 -1
- package/build/{index-8b8263ed.js → index-a0dd7ee6.js} +34 -33
- package/build/{index-c294ccc2.js → index-a94d3a6e.js} +3 -3
- package/build/{index-a688f865.js → index-ae4a2ce9.js} +12 -11
- package/build/{index-1489f027.js → index-b1181a62.js} +3 -3
- package/build/{index-1245ea43.js → index-b74f6d6c.js} +12 -11
- package/build/{index-7ca746d3.js → index-bee8ec72.js} +15 -14
- package/build/index-c0960783.js +289 -0
- package/build/{index-6313ec6f.js → index-c7bc83de.js} +6 -6
- package/build/{index-4dc41ef1.js → index-d414e4f7.js} +5 -3
- package/build/{index-1ebaa446.js → index-e23391ca.js} +16 -15
- package/build/{index-fcf16e35.js → index-e48cde73.js} +2 -2
- package/build/{index-9cc21262.js → index-f00131bf.js} +1 -1
- package/build/{index-7e8732ae.js → index-f0c0316f.js} +1 -1
- package/build/index-f373b62b.js +29 -0
- package/build/{index-66b34bd9.js → index-f477fee8.js} +96 -864
- package/build/{index-5006f129.js → index-f4bd7dd9.js} +6 -6
- package/build/{index-f3f648e1.js → index-f4c71c79.js} +17 -16
- package/build/{index-7024d536.js → index-f7918c25.js} +15 -14
- package/build/{index-9e92431c.js → index-f9aee5dd.js} +2 -2
- package/build/{index-92e82d0d.js → index-fa8957ac.js} +1 -1
- package/build/index.js +182 -162
- package/build/index.styles-07f26519.js +65 -0
- package/build/interfaces/types/Subot.d.ts +3 -3
- package/build/{labelSorting-60b0f16a.js → labelSorting-2d65cd86.js} +4 -4
- package/build/lead.js +22 -20
- package/build/{logoIcon-8e1ff0aa.js → logoIcon-026665b4.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 +8 -8
- 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-0759bdca.js +303 -0
- package/build/profileNavigation.js +450 -0
- package/build/progressBar.js +260 -0
- package/build/pwg.js +21 -19
- package/build/{routing-d764168d.js → routing-7ba14d2a.js} +1 -1
- package/build/subot.js +28 -26
- package/build/surveyOrPremiumBanner.js +30 -28
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-944ab001.js → surveyThankyouCard-6a2454d1.js} +5 -5
- package/build/together/components/molecules/popupFrame/index.d.ts +2 -1
- 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-0cbe3fd0.js → treePopoverMenu-86c7db6d.js} +18 -17
- package/build/types-20cc07c9.js +52 -0
- package/build/types.js +2 -2
- package/build/{useCategory-32558796.js → useCategory-0f8c9201.js} +5 -5
- package/build/{useHealthToolCache-cbe4b1b4.js → useHealthToolCache-c0468424.js} +1 -1
- package/build/{useMantineLocale-992ae094.js → useMantineLocale-b8eca90b.js} +5 -5
- package/build/{usePlacesAutocomplete-c19d396b.js → usePlacesAutocomplete-1d139be6.js} +1 -1
- package/build/useTogetherAuthRequiredAction.js +4 -4
- package/build/{useTranslations-5d28e8df.js → useTranslations-4fb7a5ac.js} +1 -1
- package/build/{utils-d3353e9c.js → utils-14192273.js} +2 -2
- package/build/{utils-1a876a51.js → utils-1b9bc7e0.js} +3 -3
- package/build/utils-a4f75f1f.js +229 -0
- package/build/vaccination.js +24 -22
- package/package.json +1 -1
- package/build/esm/index-c7b92115.js +0 -5060
- package/build/esm/types-f387cdcf.js +0 -3433
- package/build/index-2ce324cf.js +0 -5123
- package/build/types-d798cef3.js +0 -3447
- /package/build/{BMI_BOYS.percentile.monthly-2fdec618.js → BMI_BOYS.percentile.monthly-b372ea44.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-4b1616c4.js → BMI_BOYS.percentile.weekly-74d9aa42.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-f7761749.js → BMI_BOYS.percentile.yearly-8983c077.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-6767b0d4.js → BMI_BOYS.zscore.monthly-87a6a1a1.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-5c57342b.js → BMI_BOYS.zscore.weekly-943afdf9.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-d970734e.js → BMI_BOYS.zscore.yearly-b60dee5d.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-ba4d972d.js → BMI_GIRLS.percentile.monthly-a92a2367.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-f73dacf3.js → BMI_GIRLS.percentile.weekly-81e2a447.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-a5b59a8c.js → BMI_GIRLS.percentile.yearly-aec7fe9d.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-110d6823.js → BMI_GIRLS.zscore.monthly-a6183959.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-cfe97ba9.js → BMI_GIRLS.zscore.weekly-0bc8803a.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-ab4ae640.js → BMI_GIRLS.zscore.yearly-a3098165.js} +0 -0
- /package/build/{ChevronDown-d37704eb.js → ChevronDown-c29d0fb5.js} +0 -0
- /package/build/{Close-1514c815.js → Close-b7d67405.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-6c797045.js → HEAD CIRCUM_BOYS.percentile.monthly-d4fabdf2.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-7ac501c0.js → HEAD CIRCUM_BOYS.percentile.weekly-32cbc60f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-2999cdb8.js → HEAD CIRCUM_BOYS.percentile.yearly-a37b8f8a.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-7e3a78aa.js → HEAD CIRCUM_BOYS.zscore.monthly-c3f7634f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-2ea72789.js → HEAD CIRCUM_BOYS.zscore.weekly-71ccd3df.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-826ab425.js → HEAD CIRCUM_BOYS.zscore.yearly-a49605c2.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-0f1636c1.js → HEAD CIRCUM_GIRLS.percentile.monthly-68c5f17b.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-b32da590.js → HEAD CIRCUM_GIRLS.percentile.weekly-09ab91dc.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-850c4e29.js → HEAD CIRCUM_GIRLS.percentile.yearly-f33be7ba.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-f942b53a.js → HEAD CIRCUM_GIRLS.zscore.monthly-283c0ef7.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-26daad32.js → HEAD CIRCUM_GIRLS.zscore.weekly-1feda657.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-0f331108.js → HEAD CIRCUM_GIRLS.zscore.yearly-bcba4238.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-6bfc3799.js → HEIGHT_BOYS.percentile.monthly-977b0b64.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-0ed4b053.js → HEIGHT_BOYS.percentile.weekly-ff1b517f.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-cc4c343d.js → HEIGHT_BOYS.percentile.yearly-e0ed022d.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-b2d384dc.js → HEIGHT_BOYS.zscore.monthly-397f6aa4.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-b65aa792.js → HEIGHT_BOYS.zscore.weekly-dccfdd52.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-0bae3840.js → HEIGHT_BOYS.zscore.yearly-76500a0f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-34960fd2.js → HEIGHT_GIRLS.percentile.monthly-3a7aef92.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-949ca5b1.js → HEIGHT_GIRLS.percentile.weekly-99e3c1c3.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-4c40b714.js → HEIGHT_GIRLS.percentile.yearly-9f01d7d1.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-a3856728.js → HEIGHT_GIRLS.zscore.monthly-973ae30d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-b39f321f.js → HEIGHT_GIRLS.zscore.weekly-18ae768b.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-f50c6d58.js → HEIGHT_GIRLS.zscore.yearly-dc42b61a.js} +0 -0
- /package/build/{Locale-e3b7ae56.js → Locale-e697d040.js} +0 -0
- /package/build/{Visible-c6736a66.js → Visible-8c2b5ab1.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-685aabfc.js → WEIGHT_BOYS.percentile.monthly-3f17ac1f.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-3c1a6d2f.js → WEIGHT_BOYS.percentile.weekly-8f2ebf77.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-2bd65c8f.js → WEIGHT_BOYS.percentile.yearly-a9eff519.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-bba8cd92.js → WEIGHT_BOYS.zscore.monthly-a108db0c.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-7bdc0673.js → WEIGHT_BOYS.zscore.weekly-e21f46c5.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-32f635e0.js → WEIGHT_BOYS.zscore.yearly-1309493f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-ad305e84.js → WEIGHT_GIRLS.percentile.monthly-e6ad9d1e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-92e552b6.js → WEIGHT_GIRLS.percentile.weekly-15e2f043.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-df0dd71c.js → WEIGHT_GIRLS.percentile.yearly-788c6b1a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-8820671b.js → WEIGHT_GIRLS.zscore.monthly-ad9bc118.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-31d29b05.js → WEIGHT_GIRLS.zscore.weekly-027d92d0.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-f731d1e2.js → WEIGHT_GIRLS.zscore.yearly-2f942e3c.js} +0 -0
- /package/build/{animation-b224626d.js → animation-e179e2c5.js} +0 -0
- /package/build/{cart-149e990d.js → cart-bf783c3f.js} +0 -0
- /package/build/{constants-9c314450.js → constants-0f0f1c47.js} +0 -0
- /package/build/{constants-f9eca9ad.js → constants-7d64d5de.js} +0 -0
- /package/build/{constants-42eed92d.js → constants-f4bb9873.js} +0 -0
- /package/build/{dataTransform-104761fc.js → dataTransform-e07ba759.js} +0 -0
- /package/build/{doctor-d8f36158.js → doctor-40ef3864.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-df1b3770.js → BMI_BOYS.percentile.monthly-bc6b17e9.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-1d9595b1.js → BMI_BOYS.percentile.weekly-8daca1b6.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-6bd2bb46.js → BMI_BOYS.percentile.yearly-391e1be2.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-658792d1.js → BMI_BOYS.zscore.monthly-aec29c0d.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-d3c4d378.js → BMI_BOYS.zscore.weekly-1ab0449c.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-8ad375e2.js → BMI_BOYS.zscore.yearly-01a796dd.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-25f98c64.js → BMI_GIRLS.percentile.monthly-259b596a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-d60b034d.js → BMI_GIRLS.percentile.weekly-c383c66f.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-0560df43.js → BMI_GIRLS.percentile.yearly-d62c0a28.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-2104651f.js → BMI_GIRLS.zscore.monthly-7625134f.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-37757497.js → BMI_GIRLS.zscore.weekly-0e939010.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-56872c59.js → BMI_GIRLS.zscore.yearly-a63cf9c5.js} +0 -0
- /package/build/esm/{ChevronDown-5633c5e8.js → ChevronDown-47009d66.js} +0 -0
- /package/build/esm/{Close-f541a904.js → Close-7ace7512.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-47e6539d.js → HEAD CIRCUM_BOYS.percentile.monthly-3a2beeac.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-594e065d.js → HEAD CIRCUM_BOYS.percentile.weekly-74d61bf1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-d24f1cc6.js → HEAD CIRCUM_BOYS.percentile.yearly-f13c493e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-94d82cb5.js → HEAD CIRCUM_BOYS.zscore.monthly-205ba143.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-cb0109d0.js → HEAD CIRCUM_BOYS.zscore.weekly-1e22609d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-79a794c9.js → HEAD CIRCUM_BOYS.zscore.yearly-07a6cd70.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-89615b43.js → HEAD CIRCUM_GIRLS.percentile.monthly-6843b424.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-29d9184f.js → HEAD CIRCUM_GIRLS.percentile.weekly-0602fcca.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-140da49d.js → HEAD CIRCUM_GIRLS.percentile.yearly-c47a7e80.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-fe41d0e8.js → HEAD CIRCUM_GIRLS.zscore.monthly-35359b2d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-c6193e75.js → HEAD CIRCUM_GIRLS.zscore.weekly-e60d4541.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-7018fed4.js → HEAD CIRCUM_GIRLS.zscore.yearly-776abe04.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-fae5e6a0.js → HEIGHT_BOYS.percentile.monthly-72427471.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-ddc33aee.js → HEIGHT_BOYS.percentile.weekly-9002aef8.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-9e3064f0.js → HEIGHT_BOYS.percentile.yearly-57e7b44e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-7c9e0bb8.js → HEIGHT_BOYS.zscore.monthly-e38229ab.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-50b0a6a0.js → HEIGHT_BOYS.zscore.weekly-0de1c25b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-afb6c4a2.js → HEIGHT_BOYS.zscore.yearly-79fd59a0.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-5c7487f0.js → HEIGHT_GIRLS.percentile.monthly-4b85547a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-33465e14.js → HEIGHT_GIRLS.percentile.weekly-c56f6c67.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-ae62b279.js → HEIGHT_GIRLS.percentile.yearly-0ab407d8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-fd13c492.js → HEIGHT_GIRLS.zscore.monthly-bc1b72b1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-f509ffbe.js → HEIGHT_GIRLS.zscore.weekly-ad1be5c9.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-bf3a867b.js → HEIGHT_GIRLS.zscore.yearly-f66a912e.js} +0 -0
- /package/build/esm/{Locale-81beb37e.js → Locale-ecfc005f.js} +0 -0
- /package/build/esm/{Visible-3d8c22f1.js → Visible-6cf48849.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-4db4c32c.js → WEIGHT_BOYS.percentile.monthly-c6ff1c19.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-5321689a.js → WEIGHT_BOYS.percentile.weekly-4da177a7.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-0c2aee80.js → WEIGHT_BOYS.percentile.yearly-9dd4d8d7.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-ddf307e5.js → WEIGHT_BOYS.zscore.monthly-824c2f6d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-be1d57ac.js → WEIGHT_BOYS.zscore.weekly-d20f3e4a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-6dab88ff.js → WEIGHT_BOYS.zscore.yearly-727beeda.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-a666fe8a.js → WEIGHT_GIRLS.percentile.monthly-a2813cfb.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-cd85042c.js → WEIGHT_GIRLS.percentile.weekly-5f11b917.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-f22705ec.js → WEIGHT_GIRLS.percentile.yearly-50e69a87.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-9f3f1083.js → WEIGHT_GIRLS.zscore.monthly-401c7b03.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-7dcf0ba5.js → WEIGHT_GIRLS.zscore.weekly-c8c05886.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-c658040c.js → WEIGHT_GIRLS.zscore.yearly-95f19286.js} +0 -0
- /package/build/esm/{animation-db89f033.js → animation-e6680d35.js} +0 -0
- /package/build/esm/{cart-47013af9.js → cart-bf2cc2ab.js} +0 -0
- /package/build/esm/{constants-f9614464.js → constants-7628355c.js} +0 -0
- /package/build/esm/{constants-247d5eb0.js → constants-785ee28c.js} +0 -0
- /package/build/esm/{constants-410be40f.js → constants-ce2232f9.js} +0 -0
- /package/build/esm/{dataTransform-f9e5b4ec.js → dataTransform-65f0e010.js} +0 -0
- /package/build/esm/{doctor-88e78d2c.js → doctor-e9dc9ff4.js} +0 -0
- /package/build/esm/{index-fcd9b927.js → index-0b230567.js} +0 -0
- /package/build/esm/{index-5f214b71.js → index-46c00291.js} +0 -0
- /package/build/esm/{index-6dd5a329.js → index-92017dfa.js} +0 -0
- /package/build/esm/{index-907fffe6.js → index-c1527254.js} +0 -0
- /package/build/esm/{index-24f2f569.js → index-d4eef69b.js} +0 -0
- /package/build/esm/{index-c3d6b2ed.js → index-d531588f.js} +0 -0
- /package/build/esm/{index-0ca51fbb.js → index-efcf28a7.js} +0 -0
- /package/build/esm/{index-6f44d928.js → index-fedbbf85.js} +0 -0
- /package/build/esm/{localizeNumberFormat-be70a31e.js → localizeNumberFormat-636f4afc.js} +0 -0
- /package/build/esm/{number-7e3f376a.js → number-4add588d.js} +0 -0
- /package/build/esm/{other-811b7d93.js → other-f8b0155f.js} +0 -0
- /package/build/esm/{paths-650d5eee.js → paths-8c6b2942.js} +0 -0
- /package/build/esm/{translationsContext-0cbb21e6.js → translationsContext-982b80f4.js} +0 -0
- /package/build/esm/{tslib.es6-3970c414.js → tslib.es6-fd8cab49.js} +0 -0
- /package/build/esm/{types-78bfaf40.js → types-795b39db.js} +0 -0
- /package/build/esm/{useIsInit-3f7af1fd.js → useIsInit-b060587e.js} +0 -0
- /package/build/esm/{useOutsideClick-2fae5fb5.js → useOutsideClick-9dd24b21.js} +0 -0
- /package/build/esm/{useScrollbarSize-2a7e6dd2.js → useScrollbarSize-63b3d369.js} +0 -0
- /package/build/esm/{useUniqueId-d714426d.js → useUniqueId-d61a7b61.js} +0 -0
- /package/build/esm/{utils-cee25689.js → utils-1dbd61fa.js} +0 -0
- /package/build/{index-1d528960.js → index-0e1519d2.js} +0 -0
- /package/build/{index-9f501aac.js → index-3a582f5d.js} +0 -0
- /package/build/{index-20a5cee0.js → index-7a8c6b41.js} +0 -0
- /package/build/{index-41a348a2.js → index-86f9afd6.js} +0 -0
- /package/build/{index-e327613c.js → index-96be5ce0.js} +0 -0
- /package/build/{index-32917720.js → index-b8a5acbb.js} +0 -0
- /package/build/{index-186f9324.js → index-db2b38f4.js} +0 -0
- /package/build/{index-27f25094.js → index-f8017859.js} +0 -0
- /package/build/{localizeNumberFormat-a5804ea2.js → localizeNumberFormat-9697460d.js} +0 -0
- /package/build/{normalizeLink-2878a2ce.js → normalizeLink-3ec047d7.js} +0 -0
- /package/build/{number-35662113.js → number-3ffc7553.js} +0 -0
- /package/build/{other-a7f01b3d.js → other-5c1524b3.js} +0 -0
- /package/build/{paths-488dafd4.js → paths-f15bee7b.js} +0 -0
- /package/build/{translationsContext-951038ad.js → translationsContext-9b528bb0.js} +0 -0
- /package/build/{tslib.es6-145af9ce.js → tslib.es6-5d65f18f.js} +0 -0
- /package/build/{types-aeea2cc2.js → types-4b87fdbb.js} +0 -0
- /package/build/{useIsInit-0c37752a.js → useIsInit-d6139b45.js} +0 -0
- /package/build/{useOutsideClick-aa477d22.js → useOutsideClick-b5ae0665.js} +0 -0
- /package/build/{useScrollbarSize-01b12b72.js → useScrollbarSize-ad6c0522.js} +0 -0
- /package/build/{useUniqueId-17c2097b.js → useUniqueId-5fc9f536.js} +0 -0
- /package/build/{utils-a1cfbdac.js → utils-97ffdcb1.js} +0 -0
|
@@ -0,0 +1,1030 @@
|
|
|
1
|
+
import React__default, { createContext, useContext, useState, useEffect, useMemo } from 'react';
|
|
2
|
+
import { CrossLogo, ShieldCheck } from '@hhgtech/icons/other';
|
|
3
|
+
import { createStyles, Box, Flex, rem } from '@mantine/core';
|
|
4
|
+
import dayjs from 'dayjs';
|
|
5
|
+
import relativeTime from 'dayjs/plugin/relativeTime';
|
|
6
|
+
import { u as useTranslations } from './useTranslations-9767b0ea.js';
|
|
7
|
+
import { M as MediaQueries, t as toggleNoScroll } from './utils-1dbd61fa.js';
|
|
8
|
+
import { A as AuthorBadge, B as BookingBtn } from './index-b266ccec.js';
|
|
9
|
+
import { _ as __rest } from './tslib.es6-fd8cab49.js';
|
|
10
|
+
import { U as UserAvatar } from './index-a0d47b03.js';
|
|
11
|
+
import { u as useScreenSize } from './index.styles-793c0b30.js';
|
|
12
|
+
import './index-d5543323.js';
|
|
13
|
+
import { C as CommonGAssets } from './index-d4eef69b.js';
|
|
14
|
+
import { c as callApi, g as getCarePath, l as domainLocales, m as getCareHospitalUrl, n as getCareDoctorUrl, k as getCurrentBaseUrl, o as getDiscoverApiPath, T as TogetherComponentGlobalContext } from './utils-8a1ccf09.js';
|
|
15
|
+
import { B as Button } from './index-42286f3e.js';
|
|
16
|
+
import { T as Text } from './index-5d2f2783.js';
|
|
17
|
+
import { theme } from './miscTheme.js';
|
|
18
|
+
import { I as ImageWrap } from './index-d034201a.js';
|
|
19
|
+
import styled from '@emotion/styled';
|
|
20
|
+
import { CARE_PATHS, DISCOVER_PATHS } from './togetherApiPaths.js';
|
|
21
|
+
import { keyframes } from '@emotion/react';
|
|
22
|
+
import { H as Heading } from './index-296a1099.js';
|
|
23
|
+
import { M as Modal } from './index-011e1a41.js';
|
|
24
|
+
import { domainLocales as domainLocales$1 } from './constantsDomainLocales.js';
|
|
25
|
+
|
|
26
|
+
var styles$2 = {"row":"dZWeHns","flex":"_8z2nszB","mainTxt":"tMiOKib","subTxt":"uDcqD-2","subTxtRow":"pDlsows","subDivider":"m-HVXw1"};
|
|
27
|
+
|
|
28
|
+
const MainText = ({ children, className = '' }) => {
|
|
29
|
+
return React__default.createElement("div", { className: `${styles$2.mainTxt} ${className}` }, children);
|
|
30
|
+
};
|
|
31
|
+
const SubText = ({ children, className = '' }) => {
|
|
32
|
+
return React__default.createElement("div", { className: `${styles$2.subTxt} ${className}` }, children);
|
|
33
|
+
};
|
|
34
|
+
const SubTextRow = (_a) => {
|
|
35
|
+
var { children, className = '' } = _a, rest = __rest(_a, ["children", "className"]);
|
|
36
|
+
return (React__default.createElement("div", Object.assign({ className: `${styles$2.subTxtRow} ${className}` }, rest), children));
|
|
37
|
+
};
|
|
38
|
+
const SubDivider = ({ className = '' }) => {
|
|
39
|
+
return React__default.createElement("span", { className: `${styles$2.subDivider} ${className}` });
|
|
40
|
+
};
|
|
41
|
+
const Row = ({ children, className = '' }) => {
|
|
42
|
+
return React__default.createElement("div", { className: `${styles$2.row} ${className} row` }, children);
|
|
43
|
+
};
|
|
44
|
+
const ColLeft = ({ children, className = '' }) => {
|
|
45
|
+
return React__default.createElement("div", { className: `${className} col-left` }, children);
|
|
46
|
+
};
|
|
47
|
+
const ColRight = ({ children, className = '' }) => {
|
|
48
|
+
return React__default.createElement("div", { className: `${className} col-right` }, children);
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
var styles$1 = {"container":"sTU4T4I","info":"tCql9Je","avatarWrapper":"_3j7uYhH","avatarIcon":"PHABgoT"};
|
|
52
|
+
|
|
53
|
+
const CardAuthor$1 = ({ avatarProps, title, subTitle, children, className = '', style, onAvatarClick, avatarIcon, dataEventCategory, dataEventAction, dataEventLabel, }) => {
|
|
54
|
+
return (React__default.createElement("div", { className: `${styles$1.container} ${className}`, style: style },
|
|
55
|
+
React__default.createElement("div", { className: styles$1.avatarWrapper, onClick: onAvatarClick, "data-event-category": dataEventCategory, "data-event-action": dataEventAction, "data-event-label": dataEventLabel },
|
|
56
|
+
React__default.createElement(UserAvatar, Object.assign({}, avatarProps)),
|
|
57
|
+
avatarIcon && React__default.createElement("div", { className: styles$1.avatarIcon }, avatarIcon)),
|
|
58
|
+
React__default.createElement("div", { className: `${styles$1.info} ${className}`, style: { minHeight: `${(avatarProps === null || avatarProps === void 0 ? void 0 : avatarProps.size) || 40}px` } }, children || (React__default.createElement(React__default.Fragment, null,
|
|
59
|
+
title && React__default.createElement(MainText, null, title),
|
|
60
|
+
subTitle && React__default.createElement(SubText, null, subTitle))))));
|
|
61
|
+
};
|
|
62
|
+
CardAuthor$1.MainText = MainText;
|
|
63
|
+
CardAuthor$1.SubText = SubText;
|
|
64
|
+
CardAuthor$1.SubDivider = SubDivider;
|
|
65
|
+
CardAuthor$1.Row = Row;
|
|
66
|
+
CardAuthor$1.ColLeft = ColLeft;
|
|
67
|
+
CardAuthor$1.ColRight = ColRight;
|
|
68
|
+
CardAuthor$1.SubTextRow = SubTextRow;
|
|
69
|
+
|
|
70
|
+
var useStyles$1 = createStyles(() => {
|
|
71
|
+
return {
|
|
72
|
+
root: {
|
|
73
|
+
verticalAlign: 'bottom',
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
const CardAuthorContext = createContext({});
|
|
79
|
+
|
|
80
|
+
const AuthorBadgeItem = ({ styles, className, classNames, }) => {
|
|
81
|
+
const { role, siteType, title } = useContext(CardAuthorContext);
|
|
82
|
+
const { cx, classes } = useStyles$1(undefined, {
|
|
83
|
+
name: 'AuthorBadgeItem',
|
|
84
|
+
styles,
|
|
85
|
+
classNames,
|
|
86
|
+
});
|
|
87
|
+
return role ? (React__default.createElement(AuthorBadge, { className: cx(classes.root, className), siteType: siteType, role: role, title: title })) : null;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const DisplayName = () => {
|
|
91
|
+
const { displayName } = useContext(CardAuthorContext);
|
|
92
|
+
return React__default.createElement(Box, null, displayName);
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
var useStyles = createStyles(() => {
|
|
96
|
+
return {
|
|
97
|
+
root: {},
|
|
98
|
+
};
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
const StyledPopup$2 = styled.div `
|
|
102
|
+
position: fixed;
|
|
103
|
+
left: 50%;
|
|
104
|
+
width: 343px;
|
|
105
|
+
background-color: ${theme.colors.white};
|
|
106
|
+
border-radius: ${theme.borderRadius};
|
|
107
|
+
box-shadow: 0px 0px 4px ${theme.colors.gray200};
|
|
108
|
+
transform: translate(-50%, -50%);
|
|
109
|
+
transition: all 0.5s ease-in-out;
|
|
110
|
+
|
|
111
|
+
${MediaQueries.tdUp} {
|
|
112
|
+
width: 750px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&[data-animation='true'] {
|
|
116
|
+
transition: all 0.5s ease-in-out;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&[data-open='true'] {
|
|
120
|
+
z-index: 400;
|
|
121
|
+
top: 50%;
|
|
122
|
+
opacity: 1;
|
|
123
|
+
visibility: visible;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&[data-open='false'] {
|
|
127
|
+
top: -50%;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.popup-content {
|
|
131
|
+
${MediaQueries.mbDown} {
|
|
132
|
+
display: block;
|
|
133
|
+
}
|
|
134
|
+
display: flex;
|
|
135
|
+
position: relative;
|
|
136
|
+
z-index: 111;
|
|
137
|
+
height: 100%;
|
|
138
|
+
.button-see-more {
|
|
139
|
+
margin: 32px 0;
|
|
140
|
+
padding: 0;
|
|
141
|
+
> * {
|
|
142
|
+
display: inline-block;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
.close-button {
|
|
146
|
+
position: absolute;
|
|
147
|
+
z-index: 100;
|
|
148
|
+
top: 10px;
|
|
149
|
+
right: 10px;
|
|
150
|
+
cursor: pointer;
|
|
151
|
+
width: unset;
|
|
152
|
+
height: unset;
|
|
153
|
+
img {
|
|
154
|
+
width: 100%;
|
|
155
|
+
height: 100%;
|
|
156
|
+
border-radius: 50%;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.main-info {
|
|
162
|
+
padding-bottom: 32px;
|
|
163
|
+
background-color: ${theme.colors.primary50};
|
|
164
|
+
border-radius: ${theme.borderRadius};
|
|
165
|
+
.btn-booking {
|
|
166
|
+
display: flex;
|
|
167
|
+
margin: 12px auto;
|
|
168
|
+
}
|
|
169
|
+
.avatar-title {
|
|
170
|
+
position: relative;
|
|
171
|
+
width: 100%;
|
|
172
|
+
padding-top: 46px;
|
|
173
|
+
text-align: center;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
`;
|
|
177
|
+
const StyledPopupWrapper$2 = styled.div `
|
|
178
|
+
position: fixed;
|
|
179
|
+
z-index: 110;
|
|
180
|
+
top: 0;
|
|
181
|
+
left: 0;
|
|
182
|
+
width: 100%;
|
|
183
|
+
height: 100%;
|
|
184
|
+
align-items: center;
|
|
185
|
+
background: rgba(38, 38, 38, 0.3);
|
|
186
|
+
|
|
187
|
+
&[data-open='false'] {
|
|
188
|
+
display: none;
|
|
189
|
+
}
|
|
190
|
+
`;
|
|
191
|
+
const StyledProfileImage$2 = styled.div `
|
|
192
|
+
.image-container {
|
|
193
|
+
.badge-avatar {
|
|
194
|
+
position: absolute;
|
|
195
|
+
right: 0;
|
|
196
|
+
bottom: 0;
|
|
197
|
+
top: 0;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
display: flex;
|
|
201
|
+
justify-content: center;
|
|
202
|
+
padding-bottom: 15px;
|
|
203
|
+
text-align: center;
|
|
204
|
+
.profile-image {
|
|
205
|
+
width: 100px;
|
|
206
|
+
min-width: 100px;
|
|
207
|
+
height: 100px;
|
|
208
|
+
min-height: 100px;
|
|
209
|
+
border-radius: 50%;
|
|
210
|
+
object-fit: cover;
|
|
211
|
+
}
|
|
212
|
+
.badge-avatar {
|
|
213
|
+
width: 24px;
|
|
214
|
+
height: 24px;
|
|
215
|
+
}
|
|
216
|
+
`;
|
|
217
|
+
const StyledTitleContainer$2 = styled.div `
|
|
218
|
+
position: relative;
|
|
219
|
+
z-index: 9;
|
|
220
|
+
.specialty {
|
|
221
|
+
display: flex;
|
|
222
|
+
flex-wrap: wrap;
|
|
223
|
+
justify-content: center;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
padding: 0px 16px;
|
|
227
|
+
text-align: center;
|
|
228
|
+
.specialty {
|
|
229
|
+
justify-content: center;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.experience {
|
|
233
|
+
padding: 16px 0px 32px;
|
|
234
|
+
text-align: left;
|
|
235
|
+
.btn-wrapper {
|
|
236
|
+
margin-top: 24px;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
p {
|
|
240
|
+
max-width: 100%;
|
|
241
|
+
-webkit-line-clamp: 4;
|
|
242
|
+
-webkit-box-orient: vertical;
|
|
243
|
+
text-overflow: ellipsis;
|
|
244
|
+
overflow: hidden;
|
|
245
|
+
}
|
|
246
|
+
`;
|
|
247
|
+
const StyledExperienceList = styled.ul `
|
|
248
|
+
padding-left: 18px;
|
|
249
|
+
li {
|
|
250
|
+
list-style-type: disc;
|
|
251
|
+
}
|
|
252
|
+
`;
|
|
253
|
+
|
|
254
|
+
var img$5 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath stroke='%23262626' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M18 6 6 18M6 6l12 12'/%3e%3c/svg%3e";
|
|
255
|
+
var CloseLight = img$5;
|
|
256
|
+
|
|
257
|
+
var img$4 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none'%3e%3cpath fill='white' stroke='%23E4E8EC' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='M9 17A8 8 0 1 0 9 1a8 8 0 0 0 0 16'/%3e%3cpath fill='%23FF5331' d='M10.333 7.667V5H7.667v2.667H5v2.667h2.667V13h2.666v-2.666H13V7.667z'/%3e%3c/svg%3e";
|
|
258
|
+
var ReviewerMedical = img$4;
|
|
259
|
+
|
|
260
|
+
const StyledLoading = styled.div `
|
|
261
|
+
display: flex;
|
|
262
|
+
align-items: center;
|
|
263
|
+
justify-content: center;
|
|
264
|
+
padding: 1em;
|
|
265
|
+
button {
|
|
266
|
+
position: relative;
|
|
267
|
+
}
|
|
268
|
+
`;
|
|
269
|
+
const circle = keyframes `
|
|
270
|
+
0% {
|
|
271
|
+
transform: rotate(0deg);
|
|
272
|
+
}
|
|
273
|
+
100% {
|
|
274
|
+
transform: rotate(360deg);
|
|
275
|
+
}
|
|
276
|
+
`;
|
|
277
|
+
styled.div `
|
|
278
|
+
display: flex;
|
|
279
|
+
width: fit-content;
|
|
280
|
+
width: -moz-fit-content;
|
|
281
|
+
flex-direction: column;
|
|
282
|
+
align-items: center;
|
|
283
|
+
justify-content: center;
|
|
284
|
+
padding: 1rem 2rem;
|
|
285
|
+
background: white;
|
|
286
|
+
border-radius: ${theme.borderRadius};
|
|
287
|
+
box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),
|
|
288
|
+
-2px 2px 5px rgba(67, 86, 100, 0.123689);
|
|
289
|
+
.loading-spinner {
|
|
290
|
+
width: 24px;
|
|
291
|
+
height: 24px;
|
|
292
|
+
margin-bottom: 0.5rem;
|
|
293
|
+
animation: ${circle} 1.2s linear infinite;
|
|
294
|
+
}
|
|
295
|
+
&[data-is-marrybaby='true'] {
|
|
296
|
+
box-shadow: none;
|
|
297
|
+
}
|
|
298
|
+
`;
|
|
299
|
+
|
|
300
|
+
const Loading = ({ className, size = 'md' }) => {
|
|
301
|
+
const { t } = useTranslations();
|
|
302
|
+
return (React__default.createElement(StyledLoading, { className: className },
|
|
303
|
+
React__default.createElement(Button, { size: size, color: "transparent", isLoading: true }, t('loading'))));
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
const PopupDoctor = ({ isOpen = true, onClose, enableAnimation = true, doctorId, locale, isMobile, overwriteProfileProps, avatarFallback = CommonGAssets.getAssetPath('avatar.jpg'), trackingCategory = 'Together', }) => {
|
|
307
|
+
var _a, _b, _c;
|
|
308
|
+
const { t } = useTranslations();
|
|
309
|
+
const [doctorInfo, setDoctorInfo] = useState(null);
|
|
310
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
311
|
+
useEffect(() => {
|
|
312
|
+
if (isOpen && doctorId && String(doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.id) !== String(doctorId)) {
|
|
313
|
+
setIsLoading(true);
|
|
314
|
+
try {
|
|
315
|
+
setDoctorInfo(null);
|
|
316
|
+
callApi(getCarePath(CARE_PATHS.GET_DOCTOR_INFO, {
|
|
317
|
+
doctorId: doctorId,
|
|
318
|
+
website_url: domainLocales[locale],
|
|
319
|
+
}), 'get').then((res) => {
|
|
320
|
+
setDoctorInfo(Object.assign(Object.assign({}, res === null || res === void 0 ? void 0 : res._data.doctor), overwriteProfileProps));
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
catch (error) {
|
|
324
|
+
console.error(error);
|
|
325
|
+
}
|
|
326
|
+
setIsLoading(false);
|
|
327
|
+
}
|
|
328
|
+
}, [isOpen, doctorId, doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.id]);
|
|
329
|
+
const experiences = (doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.experiences) || [];
|
|
330
|
+
const specialty = (doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.specialties) || [];
|
|
331
|
+
const specialtiesList = specialty
|
|
332
|
+
.map((specialty) => (specialty === null || specialty === void 0 ? void 0 : specialty.name) || specialty)
|
|
333
|
+
.join(' • ');
|
|
334
|
+
const formattedExperiences = experiences
|
|
335
|
+
.map((experience) => {
|
|
336
|
+
try {
|
|
337
|
+
return JSON.parse(experience.description);
|
|
338
|
+
}
|
|
339
|
+
catch (e) {
|
|
340
|
+
return experience.description;
|
|
341
|
+
}
|
|
342
|
+
})
|
|
343
|
+
.filter((e) => e.content);
|
|
344
|
+
const renderExperienceText = (experience) => {
|
|
345
|
+
if (experience === null || experience === void 0 ? void 0 : experience.year)
|
|
346
|
+
return `${experience.year} ${experience === null || experience === void 0 ? void 0 : experience.content}`;
|
|
347
|
+
if (experience === null || experience === void 0 ? void 0 : experience.content)
|
|
348
|
+
return experience.content;
|
|
349
|
+
if (typeof experience === 'string')
|
|
350
|
+
return experience;
|
|
351
|
+
return '';
|
|
352
|
+
};
|
|
353
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
354
|
+
React__default.createElement(StyledPopup$2, { "data-open": isOpen, "data-animation": enableAnimation, onClick: (e) => e.stopPropagation() }, isLoading || !doctorInfo ? (React__default.createElement(Loading, null)) : (React__default.createElement("div", { className: "popup-content" },
|
|
355
|
+
React__default.createElement("div", { className: "close-button", onClick: onClose },
|
|
356
|
+
React__default.createElement("img", { src: CloseLight, style: { width: 20, height: 20 }, alt: "close-icon", loading: "lazy" })),
|
|
357
|
+
React__default.createElement("div", { className: "main-info" },
|
|
358
|
+
React__default.createElement("div", { className: "border-banner" }),
|
|
359
|
+
React__default.createElement("div", { className: "avatar-title" },
|
|
360
|
+
React__default.createElement(StyledProfileImage$2, null,
|
|
361
|
+
React__default.createElement("div", { className: "image-container" },
|
|
362
|
+
React__default.createElement("div", { style: { position: 'relative' } },
|
|
363
|
+
React__default.createElement(ImageWrap, { src: doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.avatar, backupSrc: avatarFallback, className: "profile-image", alt: "avatar" }),
|
|
364
|
+
React__default.createElement("img", { className: "badge-avatar", src: ReviewerMedical, alt: "badge", loading: "lazy" })))),
|
|
365
|
+
React__default.createElement(StyledTitleContainer$2, null,
|
|
366
|
+
React__default.createElement(Text, { size: "s3", weight: "semiBold", className: "full-name" }, doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.name),
|
|
367
|
+
React__default.createElement("div", { className: "specialty" },
|
|
368
|
+
specialtiesList && (React__default.createElement(React__default.Fragment, null,
|
|
369
|
+
React__default.createElement(Text, { size: "p4", color: theme.colors.gray800 },
|
|
370
|
+
specialtiesList,
|
|
371
|
+
' • '))),
|
|
372
|
+
React__default.createElement("a", { href: getCareHospitalUrl({
|
|
373
|
+
id: (_a = doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.organization) === null || _a === void 0 ? void 0 : _a.id,
|
|
374
|
+
name: (_b = doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.organization) === null || _b === void 0 ? void 0 : _b.name,
|
|
375
|
+
slug: (_c = doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.organization) === null || _c === void 0 ? void 0 : _c.slug,
|
|
376
|
+
locale,
|
|
377
|
+
}), className: "organisation", target: "_blank", rel: "noreferrer" },
|
|
378
|
+
React__default.createElement(Text, { size: "p4", className: "organisation", color: theme.colors.gray800, style: { textDecoration: 'underline' } }, doctorInfo === null || doctorInfo === void 0 ? void 0 : doctorInfo.organization.name))))),
|
|
379
|
+
!isMobile && (React__default.createElement("div", { className: "btn-wrapper" },
|
|
380
|
+
React__default.createElement("a", { href: getCareDoctorUrl({
|
|
381
|
+
name: doctorInfo.name,
|
|
382
|
+
id: doctorInfo.id,
|
|
383
|
+
locale: locale,
|
|
384
|
+
}) },
|
|
385
|
+
React__default.createElement(Button, { color: "primary", size: "md", className: "btn-booking" }, t('careBooking.bookAnAppointment')))))),
|
|
386
|
+
formattedExperiences && (React__default.createElement(StyledTitleContainer$2, null,
|
|
387
|
+
React__default.createElement("div", { className: "experience" },
|
|
388
|
+
React__default.createElement(Text, { weight: "bold", size: "s3", color: theme.colors.gray800, style: { paddingBottom: 16 } }, t('expert.content.description').toUpperCase()),
|
|
389
|
+
React__default.createElement(StyledExperienceList, null, formattedExperiences.map((experience, i) => (React__default.createElement("li", { key: i },
|
|
390
|
+
React__default.createElement(Text, { size: "p2" }, renderExperienceText(experience)))))),
|
|
391
|
+
isMobile ? (React__default.createElement("div", { className: "btn-wrapper" },
|
|
392
|
+
React__default.createElement("a", { href: getCareDoctorUrl({
|
|
393
|
+
name: doctorInfo.name,
|
|
394
|
+
id: doctorInfo.id,
|
|
395
|
+
locale: locale,
|
|
396
|
+
}) },
|
|
397
|
+
React__default.createElement(Button, { color: "primary", size: "md", className: "btn-booking" }, t('careBooking.bookAnAppointment'))))) : (React__default.createElement("a", { href: getCareDoctorUrl({
|
|
398
|
+
name: doctorInfo.name,
|
|
399
|
+
id: doctorInfo.id,
|
|
400
|
+
locale: locale,
|
|
401
|
+
}) },
|
|
402
|
+
React__default.createElement(Text, { size: "s4", color: "#2D87F3", style: { paddingTop: 24 }, "data-event-category": trackingCategory, "data-event-action": "See Full Doctor Profile", "data-event-label": getCurrentBaseUrl(locale) +
|
|
403
|
+
getCareDoctorUrl({
|
|
404
|
+
name: doctorInfo.name,
|
|
405
|
+
id: doctorInfo.id,
|
|
406
|
+
locale: locale,
|
|
407
|
+
}) }, t('home.seeExpert')))))))))),
|
|
408
|
+
React__default.createElement(StyledPopupWrapper$2, { "data-open": isOpen, onClick: (e) => {
|
|
409
|
+
e.stopPropagation();
|
|
410
|
+
onClose();
|
|
411
|
+
} })));
|
|
412
|
+
};
|
|
413
|
+
|
|
414
|
+
const StyledPopup$1 = styled.div `
|
|
415
|
+
position: fixed;
|
|
416
|
+
left: 50%;
|
|
417
|
+
width: 343px;
|
|
418
|
+
background-color: ${theme.colors.white};
|
|
419
|
+
border-radius: ${theme.borderRadius};
|
|
420
|
+
box-shadow: 0px 0px 4px ${theme.colors.gray200};
|
|
421
|
+
transform: translate(-50%, -50%);
|
|
422
|
+
transition: all 0.5s ease-in-out;
|
|
423
|
+
|
|
424
|
+
${MediaQueries.tdUp} {
|
|
425
|
+
width: 750px;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
&[data-animation='true'] {
|
|
429
|
+
transition: all 0.5s ease-in-out;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
&[data-open='true'] {
|
|
433
|
+
z-index: 400;
|
|
434
|
+
top: 50%;
|
|
435
|
+
opacity: 1;
|
|
436
|
+
visibility: visible;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
&[data-open='false'] {
|
|
440
|
+
top: -50%;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
.popup-content {
|
|
444
|
+
${MediaQueries.mbDown} {
|
|
445
|
+
display: block;
|
|
446
|
+
}
|
|
447
|
+
display: flex;
|
|
448
|
+
position: relative;
|
|
449
|
+
z-index: 111;
|
|
450
|
+
height: 100%;
|
|
451
|
+
.button-see-more {
|
|
452
|
+
margin: 32px 0;
|
|
453
|
+
padding: 0;
|
|
454
|
+
> * {
|
|
455
|
+
display: inline-block;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
.close-button {
|
|
459
|
+
position: absolute;
|
|
460
|
+
z-index: 100;
|
|
461
|
+
top: 10px;
|
|
462
|
+
right: 10px;
|
|
463
|
+
cursor: pointer;
|
|
464
|
+
width: unset;
|
|
465
|
+
height: unset;
|
|
466
|
+
img {
|
|
467
|
+
width: 100%;
|
|
468
|
+
height: 100%;
|
|
469
|
+
border-radius: 50%;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.main-info {
|
|
475
|
+
padding-bottom: 32px;
|
|
476
|
+
background-color: ${theme.colors.primary50};
|
|
477
|
+
border-radius: ${theme.borderRadius};
|
|
478
|
+
|
|
479
|
+
.avatar-title {
|
|
480
|
+
position: relative;
|
|
481
|
+
width: 100%;
|
|
482
|
+
padding-top: 46px;
|
|
483
|
+
text-align: center;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
`;
|
|
487
|
+
const StyledPopupWrapper$1 = styled.div `
|
|
488
|
+
position: fixed;
|
|
489
|
+
z-index: 110;
|
|
490
|
+
top: 0;
|
|
491
|
+
left: 0;
|
|
492
|
+
width: 100%;
|
|
493
|
+
height: 100%;
|
|
494
|
+
align-items: center;
|
|
495
|
+
background: rgba(38, 38, 38, 0.3);
|
|
496
|
+
|
|
497
|
+
&[data-open='false'] {
|
|
498
|
+
display: none;
|
|
499
|
+
}
|
|
500
|
+
`;
|
|
501
|
+
const StyledProfileImage$1 = styled.div `
|
|
502
|
+
.image-container {
|
|
503
|
+
.badge-avatar {
|
|
504
|
+
position: absolute;
|
|
505
|
+
right: 0;
|
|
506
|
+
bottom: 0;
|
|
507
|
+
top: 0;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
display: flex;
|
|
511
|
+
justify-content: center;
|
|
512
|
+
padding-bottom: 15px;
|
|
513
|
+
text-align: center;
|
|
514
|
+
.profile-image {
|
|
515
|
+
width: 100px;
|
|
516
|
+
min-width: 100px;
|
|
517
|
+
height: 100px;
|
|
518
|
+
min-height: 100px;
|
|
519
|
+
border-radius: 50%;
|
|
520
|
+
object-fit: cover;
|
|
521
|
+
}
|
|
522
|
+
.badge-avatar {
|
|
523
|
+
width: 24px;
|
|
524
|
+
height: 24px;
|
|
525
|
+
}
|
|
526
|
+
`;
|
|
527
|
+
const StyledTitleContainer$1 = styled.div `
|
|
528
|
+
position: relative;
|
|
529
|
+
z-index: 9;
|
|
530
|
+
.specialty {
|
|
531
|
+
display: flex;
|
|
532
|
+
flex-wrap: wrap;
|
|
533
|
+
justify-content: center;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
padding: 0px 16px;
|
|
537
|
+
text-align: center;
|
|
538
|
+
.specialty {
|
|
539
|
+
justify-content: center;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.experience {
|
|
543
|
+
padding: 16px 0px 32px;
|
|
544
|
+
text-align: left;
|
|
545
|
+
.btn-wrapper {
|
|
546
|
+
margin-top: 24px;
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
p {
|
|
550
|
+
max-width: 100%;
|
|
551
|
+
-webkit-line-clamp: 4;
|
|
552
|
+
-webkit-box-orient: vertical;
|
|
553
|
+
text-overflow: ellipsis;
|
|
554
|
+
overflow: hidden;
|
|
555
|
+
}
|
|
556
|
+
`;
|
|
557
|
+
const StyledItem = styled.div `
|
|
558
|
+
display: flex;
|
|
559
|
+
margin-top: 8px;
|
|
560
|
+
|
|
561
|
+
.bullet-point {
|
|
562
|
+
width: 24px;
|
|
563
|
+
height: 24px;
|
|
564
|
+
}
|
|
565
|
+
`;
|
|
566
|
+
|
|
567
|
+
var img$3 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3ccircle cx='12' cy='12' r='2' fill='%232D87F3'/%3e%3c/svg%3e";
|
|
568
|
+
var BulletPoint = img$3;
|
|
569
|
+
|
|
570
|
+
var img$2 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath fill='%2345A4FF' d='M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12'/%3e%3cpath fill='%232D87F3' d='M24 12a12 12 0 0 0-.128-1.758l-5.077-5.077L5.041 18.958l4.858 4.858c.682.12 1.384.184 2.1.184 6.628 0 12-5.373 12-12Z'/%3e%3cpath fill='white' d='M9.014 17.824 5.04 18.959l1.135-3.973 2.368.47z'/%3e%3cpath fill='%23F7F9FC' d='M8.544 15.456 5.041 18.96l3.972-1.135z'/%3e%3cpath fill='%23E4E8EC' d='M6.467 18.552 5.45 17.533l-.41 1.427 1.426-.407Z'/%3e%3cpath fill='%23D2D6DC' d='m5.957 18.043-.916.916 1.426-.407z'/%3e%3cpath fill='%23FFD658' d='m15.828 5.331 2.837 2.837-9.651 9.652-2.838-2.837z'/%3e%3cpath fill='%23FFC326' d='m7.594 16.404 9.651-9.651 1.419 1.418-9.652 9.652z'/%3e%3cpath fill='%23FF5331' d='m18.312 8.525-2.837-2.838 1.123-1.123c.44-.44 1.154-.44 1.595 0l1.243 1.243c.44.44.44 1.154 0 1.594z'/%3e%3cpath fill='%23F44D2C' d='m18.816 5.186-1.921 1.92 1.418 1.419 1.124-1.124c.44-.44.44-1.154 0-1.594l-.622-.621Z'/%3e%3c/svg%3e";
|
|
571
|
+
var ReviewerAuthor = img$2;
|
|
572
|
+
|
|
573
|
+
var img$1 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3ccircle cx='12' cy='12' r='12' fill='%23FFCB37'/%3e%3ccircle cx='12' cy='12' r='10.5' fill='%23FE921D'/%3e%3cpath fill='white' d='M11.443 5.137a.6.6 0 0 1 1.114 0l1.436 3.577a.6.6 0 0 0 .516.375l3.846.26a.6.6 0 0 1 .344 1.06l-2.958 2.471a.6.6 0 0 0-.197.607l.94 3.738a.6.6 0 0 1-.9.655l-3.265-2.05a.6.6 0 0 0-.638 0l-3.265 2.05a.6.6 0 0 1-.9-.655l.94-3.738a.6.6 0 0 0-.198-.607L5.3 10.41a.6.6 0 0 1 .344-1.06l3.846-.26a.6.6 0 0 0 .517-.375z'/%3e%3c/svg%3e";
|
|
574
|
+
var ReviewerExpert = img$1;
|
|
575
|
+
|
|
576
|
+
var img = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3e%3cpath fill='%2300C076' d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16'/%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='m11.946 5.466-5.28 4.8-2.4-2.182'/%3e%3c/svg%3e";
|
|
577
|
+
var ReviewerFactCheck = img;
|
|
578
|
+
|
|
579
|
+
const ReviewerIconMap = {
|
|
580
|
+
author: ReviewerAuthor,
|
|
581
|
+
edtior: ReviewerAuthor,
|
|
582
|
+
expert: ReviewerExpert,
|
|
583
|
+
'fact-check': ReviewerFactCheck,
|
|
584
|
+
medical: ReviewerMedical,
|
|
585
|
+
};
|
|
586
|
+
const PopupExpert = ({ trackingCategory = 'Together', locale, isOpen = true, onClose, enableAnimation = true, expertId, overwriteProfileProps, avatarFallback = CommonGAssets.getAssetPath('avatar.jpg'), }) => {
|
|
587
|
+
const { t } = useTranslations();
|
|
588
|
+
const [expertInfo, setExpertInfo] = useState(null);
|
|
589
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
590
|
+
useEffect(() => {
|
|
591
|
+
if (isOpen &&
|
|
592
|
+
expertId &&
|
|
593
|
+
String(expertInfo === null || expertInfo === void 0 ? void 0 : expertInfo.user_id) !== String(expertId)) {
|
|
594
|
+
setIsLoading(true);
|
|
595
|
+
try {
|
|
596
|
+
setExpertInfo(null);
|
|
597
|
+
callApi(getDiscoverApiPath(DISCOVER_PATHS.GET_EXPERT_BY_ID, {
|
|
598
|
+
id: expertId,
|
|
599
|
+
}), 'get').then((res) => {
|
|
600
|
+
setExpertInfo(Object.assign(Object.assign({}, res === null || res === void 0 ? void 0 : res.data), overwriteProfileProps));
|
|
601
|
+
});
|
|
602
|
+
}
|
|
603
|
+
catch (error) {
|
|
604
|
+
console.error(error);
|
|
605
|
+
}
|
|
606
|
+
setIsLoading(false);
|
|
607
|
+
}
|
|
608
|
+
}, [isOpen, expertId, expertInfo === null || expertInfo === void 0 ? void 0 : expertInfo.user_id]);
|
|
609
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
610
|
+
React__default.createElement(StyledPopup$1, { "data-open": isOpen, "data-animation": enableAnimation, onClick: (e) => e.stopPropagation() }, isLoading || !expertInfo ? (React__default.createElement(Loading, null)) : (React__default.createElement("div", { className: "popup-content" },
|
|
611
|
+
React__default.createElement("div", { className: "close-button", onClick: onClose },
|
|
612
|
+
React__default.createElement("img", { src: CloseLight, style: { width: 20, height: 20 }, alt: "close-icon", loading: "lazy" })),
|
|
613
|
+
React__default.createElement("div", { className: "main-info" },
|
|
614
|
+
React__default.createElement("div", { className: "border-banner" }),
|
|
615
|
+
React__default.createElement("div", { className: "avatar-title" },
|
|
616
|
+
React__default.createElement(StyledProfileImage$1, null,
|
|
617
|
+
React__default.createElement("div", { className: "image-container" },
|
|
618
|
+
React__default.createElement("div", { style: { position: 'relative' } },
|
|
619
|
+
React__default.createElement(ImageWrap, { src: expertInfo === null || expertInfo === void 0 ? void 0 : expertInfo.avatar, className: "profile-image", alt: "avatar", backupSrc: avatarFallback }),
|
|
620
|
+
React__default.createElement("img", { className: "badge-avatar", src: ReviewerIconMap[expertInfo === null || expertInfo === void 0 ? void 0 : expertInfo.role], alt: "badge", loading: "lazy" })))),
|
|
621
|
+
React__default.createElement(StyledTitleContainer$1, null,
|
|
622
|
+
React__default.createElement(Text, { size: "s3", className: "full-name", weight: "semiBold" }, expertInfo === null || expertInfo === void 0 ? void 0 : expertInfo.display_name),
|
|
623
|
+
React__default.createElement("div", null,
|
|
624
|
+
React__default.createElement(Text, { size: "p4", color: theme.colors.gray800 }, expertInfo === null || expertInfo === void 0 ? void 0 :
|
|
625
|
+
expertInfo.specialty,
|
|
626
|
+
' • '),
|
|
627
|
+
React__default.createElement("a", { href: expertInfo === null || expertInfo === void 0 ? void 0 : expertInfo.organisation_url, className: "organisation", target: "_blank", rel: "noreferrer" },
|
|
628
|
+
React__default.createElement(Text, { size: "p4", className: "organisation", color: theme.colors.gray800, style: { textDecoration: 'underline' } }, expertInfo === null || expertInfo === void 0 ? void 0 : expertInfo.organisation)))))),
|
|
629
|
+
React__default.createElement(StyledTitleContainer$1, null,
|
|
630
|
+
React__default.createElement("div", { className: "experience" },
|
|
631
|
+
React__default.createElement(Text, { weight: "bold", size: "p4", color: theme.colors.gray800, style: { paddingBottom: 16 } }, t('expert.content.description').toUpperCase()),
|
|
632
|
+
React__default.createElement("div", { className: "list-items" }, (expertInfo === null || expertInfo === void 0 ? void 0 : expertInfo.experiences)
|
|
633
|
+
? expertInfo.experiences
|
|
634
|
+
.filter((e) => !!(e && (e.title || e.organization)))
|
|
635
|
+
.slice(0, 3)
|
|
636
|
+
.map((experience, index) => (React__default.createElement(StyledItem, { key: index },
|
|
637
|
+
React__default.createElement("img", { className: "bullet-point", src: BulletPoint, alt: "point", loading: "lazy" }),
|
|
638
|
+
React__default.createElement("div", { className: "text-contain" },
|
|
639
|
+
React__default.createElement(Heading, { tag: "h6", color: theme.colors.gray800 }, experience === null || experience === void 0 ? void 0 : experience.title),
|
|
640
|
+
React__default.createElement(Text, { size: "p2", color: theme.colors.gray500 }, experience === null || experience === void 0 ? void 0 : experience.organization)))))
|
|
641
|
+
: false),
|
|
642
|
+
React__default.createElement("a", { href: expertInfo === null || expertInfo === void 0 ? void 0 : expertInfo.profile_url, style: { display: 'inline-block', paddingTop: 24 } },
|
|
643
|
+
React__default.createElement(Text, { as: "span", size: "s4", color: "#2D87F3", "data-event-category": trackingCategory, "data-event-action": "See Full Doctor Profile", "data-event-label": getCurrentBaseUrl(locale) + (expertInfo === null || expertInfo === void 0 ? void 0 : expertInfo.profile_url) }, t('home.seeExpert')))))))),
|
|
644
|
+
React__default.createElement(StyledPopupWrapper$1, { "data-open": isOpen, onClick: (e) => {
|
|
645
|
+
e.stopPropagation();
|
|
646
|
+
onClose();
|
|
647
|
+
} })));
|
|
648
|
+
};
|
|
649
|
+
|
|
650
|
+
const StyledPopup = styled.div `
|
|
651
|
+
position: fixed;
|
|
652
|
+
left: 50%;
|
|
653
|
+
width: 343px;
|
|
654
|
+
background-color: ${theme.colors.white};
|
|
655
|
+
border-radius: ${theme.borderRadius};
|
|
656
|
+
box-shadow: 0px 0px 4px ${theme.colors.gray200};
|
|
657
|
+
transform: translate(-50%, -50%);
|
|
658
|
+
transition: all 0.5s ease-in-out;
|
|
659
|
+
|
|
660
|
+
${MediaQueries.tdUp} {
|
|
661
|
+
width: 750px;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
&[data-animation='true'] {
|
|
665
|
+
transition: all 0.5s ease-in-out;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
&[data-open='true'] {
|
|
669
|
+
z-index: 400;
|
|
670
|
+
top: 50%;
|
|
671
|
+
opacity: 1;
|
|
672
|
+
visibility: visible;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
&[data-open='false'] {
|
|
676
|
+
top: -50%;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
.popup-content {
|
|
680
|
+
${MediaQueries.mbDown} {
|
|
681
|
+
display: block;
|
|
682
|
+
}
|
|
683
|
+
display: flex;
|
|
684
|
+
position: relative;
|
|
685
|
+
z-index: 111;
|
|
686
|
+
height: 100%;
|
|
687
|
+
.button-see-more {
|
|
688
|
+
margin: 32px 0;
|
|
689
|
+
padding: 0;
|
|
690
|
+
> * {
|
|
691
|
+
display: inline-block;
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
.close-button {
|
|
695
|
+
position: absolute;
|
|
696
|
+
z-index: 100;
|
|
697
|
+
top: 10px;
|
|
698
|
+
right: 10px;
|
|
699
|
+
cursor: pointer;
|
|
700
|
+
width: unset;
|
|
701
|
+
height: unset;
|
|
702
|
+
img {
|
|
703
|
+
width: 100%;
|
|
704
|
+
height: 100%;
|
|
705
|
+
border-radius: 50%;
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
.main-info {
|
|
711
|
+
padding-bottom: 32px;
|
|
712
|
+
background-color: ${theme.colors.primary50};
|
|
713
|
+
border-radius: ${theme.borderRadius};
|
|
714
|
+
.btn-booking {
|
|
715
|
+
display: flex;
|
|
716
|
+
margin: 12px auto;
|
|
717
|
+
}
|
|
718
|
+
.avatar-title {
|
|
719
|
+
position: relative;
|
|
720
|
+
width: 100%;
|
|
721
|
+
padding-top: 46px;
|
|
722
|
+
text-align: center;
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
`;
|
|
726
|
+
const StyledPopupWrapper = styled.div `
|
|
727
|
+
position: fixed;
|
|
728
|
+
z-index: 110;
|
|
729
|
+
top: 0;
|
|
730
|
+
left: 0;
|
|
731
|
+
width: 100%;
|
|
732
|
+
height: 100%;
|
|
733
|
+
align-items: center;
|
|
734
|
+
background: rgba(38, 38, 38, 0.3);
|
|
735
|
+
|
|
736
|
+
&[data-open='false'] {
|
|
737
|
+
display: none;
|
|
738
|
+
}
|
|
739
|
+
`;
|
|
740
|
+
const StyledProfileImage = styled.div `
|
|
741
|
+
.image-container {
|
|
742
|
+
.badge-avatar {
|
|
743
|
+
position: absolute;
|
|
744
|
+
right: 0;
|
|
745
|
+
bottom: 0;
|
|
746
|
+
top: 0;
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
display: flex;
|
|
750
|
+
justify-content: center;
|
|
751
|
+
padding-bottom: 15px;
|
|
752
|
+
text-align: center;
|
|
753
|
+
.profile-image {
|
|
754
|
+
width: 100px;
|
|
755
|
+
min-width: 100px;
|
|
756
|
+
height: 100px;
|
|
757
|
+
min-height: 100px;
|
|
758
|
+
border-radius: 50%;
|
|
759
|
+
object-fit: cover;
|
|
760
|
+
}
|
|
761
|
+
.badge-avatar {
|
|
762
|
+
width: 24px;
|
|
763
|
+
height: 24px;
|
|
764
|
+
}
|
|
765
|
+
`;
|
|
766
|
+
const StyledTitleContainer = styled.div `
|
|
767
|
+
position: relative;
|
|
768
|
+
z-index: 9;
|
|
769
|
+
.specialty {
|
|
770
|
+
display: block;
|
|
771
|
+
min-width: 240px;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
padding: 0px 16px;
|
|
775
|
+
text-align: center;
|
|
776
|
+
.specialty {
|
|
777
|
+
justify-content: center;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
.experience {
|
|
781
|
+
padding: 16px 0px 32px;
|
|
782
|
+
text-align: left;
|
|
783
|
+
.btn-wrapper {
|
|
784
|
+
margin-top: 24px;
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
p {
|
|
788
|
+
max-width: 100%;
|
|
789
|
+
}
|
|
790
|
+
`;
|
|
791
|
+
|
|
792
|
+
const PopupHospital = ({ isOpen = true, onClose, enableAnimation = true, hospitalId, locale, isMobile, overwriteProfileProps, avatarFallback = CommonGAssets.getAssetPath('avatar.jpg'), trackingCategory = 'Together', }) => {
|
|
793
|
+
const { t } = useTranslations();
|
|
794
|
+
const [hospitalInfo, setHospitalInfo] = useState(null);
|
|
795
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
796
|
+
useEffect(() => {
|
|
797
|
+
if (isOpen &&
|
|
798
|
+
hospitalId &&
|
|
799
|
+
String(hospitalInfo === null || hospitalInfo === void 0 ? void 0 : hospitalInfo.id) !== String(hospitalId)) {
|
|
800
|
+
setIsLoading(true);
|
|
801
|
+
try {
|
|
802
|
+
setHospitalInfo(null);
|
|
803
|
+
callApi(getCarePath(CARE_PATHS.GET_HOSPITAL_INFO, {
|
|
804
|
+
hospital_branch_id: hospitalId,
|
|
805
|
+
website_url: domainLocales[locale],
|
|
806
|
+
}), 'get').then((res) => {
|
|
807
|
+
setHospitalInfo(Object.assign(Object.assign({}, res === null || res === void 0 ? void 0 : res._data.branch), overwriteProfileProps));
|
|
808
|
+
});
|
|
809
|
+
}
|
|
810
|
+
catch (error) {
|
|
811
|
+
console.error(error);
|
|
812
|
+
}
|
|
813
|
+
setIsLoading(false);
|
|
814
|
+
}
|
|
815
|
+
}, [isOpen, hospitalId, hospitalInfo === null || hospitalInfo === void 0 ? void 0 : hospitalInfo.id]);
|
|
816
|
+
const specialties = (hospitalInfo === null || hospitalInfo === void 0 ? void 0 : hospitalInfo.specialties) || [];
|
|
817
|
+
const formatSpecialties = useMemo(() => specialties.map((specialty) => specialty.name), [specialties]);
|
|
818
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
819
|
+
React__default.createElement(StyledPopup, { "data-open": isOpen, "data-animation": enableAnimation, onClick: (e) => e.stopPropagation() }, isLoading || !hospitalInfo ? (React__default.createElement(Loading, null)) : (React__default.createElement("div", { className: "popup-content" },
|
|
820
|
+
React__default.createElement("div", { className: "close-button", onClick: onClose },
|
|
821
|
+
React__default.createElement("img", { src: CloseLight, style: { width: 20, height: 20 }, alt: "close-icon", loading: "lazy" })),
|
|
822
|
+
React__default.createElement("div", { className: "main-info" },
|
|
823
|
+
React__default.createElement("div", { className: "border-banner" }),
|
|
824
|
+
React__default.createElement("div", { className: "avatar-title" },
|
|
825
|
+
React__default.createElement(StyledProfileImage, null,
|
|
826
|
+
React__default.createElement("div", { className: "image-container" },
|
|
827
|
+
React__default.createElement("div", { style: { position: 'relative' } },
|
|
828
|
+
React__default.createElement(ImageWrap, { src: hospitalInfo === null || hospitalInfo === void 0 ? void 0 : hospitalInfo.logo, className: "profile-image", alt: "avatar", backupSrc: avatarFallback }),
|
|
829
|
+
React__default.createElement("img", { className: "badge-avatar", src: ReviewerMedical, alt: "badge", loading: "lazy" })))),
|
|
830
|
+
React__default.createElement(StyledTitleContainer, null,
|
|
831
|
+
React__default.createElement(Text, { size: "s3", weight: "semiBold", className: "full-name" }, hospitalInfo === null || hospitalInfo === void 0 ? void 0 : hospitalInfo.name),
|
|
832
|
+
React__default.createElement("div", { className: "specialty" },
|
|
833
|
+
specialties && (React__default.createElement(Text, { size: "p4", color: theme.colors.gray800 },
|
|
834
|
+
formatSpecialties.join(' • '),
|
|
835
|
+
'•')),
|
|
836
|
+
React__default.createElement("a", { href: getCareHospitalUrl({
|
|
837
|
+
id: hospitalInfo.id,
|
|
838
|
+
name: hospitalInfo.name,
|
|
839
|
+
slug: hospitalInfo.slug,
|
|
840
|
+
locale,
|
|
841
|
+
}), className: "organisation", target: "_blank", rel: "noreferrer" },
|
|
842
|
+
React__default.createElement(Text, { size: "p4", className: "organisation", color: theme.colors.gray800, style: { textDecoration: 'underline' } }, hospitalInfo === null || hospitalInfo === void 0 ? void 0 : hospitalInfo.name))))),
|
|
843
|
+
!isMobile && (React__default.createElement("a", { href: getCareHospitalUrl({
|
|
844
|
+
id: hospitalInfo.id,
|
|
845
|
+
name: hospitalInfo.name,
|
|
846
|
+
slug: hospitalInfo.slug,
|
|
847
|
+
locale,
|
|
848
|
+
}) },
|
|
849
|
+
React__default.createElement("div", { className: "btn-wrapper" },
|
|
850
|
+
React__default.createElement(Button, { color: "primary", size: "md", className: "btn-booking" }, t('careBooking.bookAnAppointment')))))),
|
|
851
|
+
React__default.createElement(StyledTitleContainer, null,
|
|
852
|
+
React__default.createElement("div", { className: "experience" },
|
|
853
|
+
React__default.createElement(Text, { weight: "bold", size: "s3", color: theme.colors.gray800, style: { paddingBottom: 16 } }, t('hospital.content.description').toUpperCase()),
|
|
854
|
+
React__default.createElement(Text, { size: "p2", color: theme.colors.gray500 }, hospitalInfo.about),
|
|
855
|
+
isMobile ? (React__default.createElement("a", { href: getCareHospitalUrl({
|
|
856
|
+
id: hospitalInfo.id,
|
|
857
|
+
name: hospitalInfo.name,
|
|
858
|
+
slug: hospitalInfo.slug,
|
|
859
|
+
locale,
|
|
860
|
+
}) },
|
|
861
|
+
React__default.createElement("div", { className: "btn-wrapper" },
|
|
862
|
+
React__default.createElement(Button, { color: "primary", size: "md", className: "btn-booking" }, t('careBooking.bookAnAppointment'))))) : (React__default.createElement("a", { href: getCareHospitalUrl({
|
|
863
|
+
id: hospitalInfo.id,
|
|
864
|
+
name: hospitalInfo.name,
|
|
865
|
+
slug: hospitalInfo.slug,
|
|
866
|
+
locale,
|
|
867
|
+
}) },
|
|
868
|
+
React__default.createElement(Text, { size: "s4", color: "#2D87F3", as: "span", "data-event-category": trackingCategory, "data-event-action": "See Full Hospital Profile", "data-event-label": getCurrentBaseUrl(locale) +
|
|
869
|
+
getCareHospitalUrl({
|
|
870
|
+
id: hospitalInfo.id,
|
|
871
|
+
name: hospitalInfo.name,
|
|
872
|
+
slug: hospitalInfo.slug,
|
|
873
|
+
locale,
|
|
874
|
+
}) }, t('home.seeHospital'))))))))),
|
|
875
|
+
React__default.createElement(StyledPopupWrapper, { "data-open": isOpen, onClick: (e) => {
|
|
876
|
+
e.stopPropagation();
|
|
877
|
+
onClose();
|
|
878
|
+
} })));
|
|
879
|
+
};
|
|
880
|
+
|
|
881
|
+
var styles = {"modal":"_2UKyiK1","header":"E5ga-tI","heading":"_8Y2nWXX","close":"d0T7kSP"};
|
|
882
|
+
|
|
883
|
+
const ProfileDetailModal = ({ open, onClose, children, profileModalProps, }) => {
|
|
884
|
+
const { t } = useTranslations();
|
|
885
|
+
return (React__default.createElement(Modal, Object.assign({ title: t('profilePanel.modal.heading'), titleProps: true, className: styles.modal, opened: open, onClose: onClose, overlayOpacity: 0.2, overflow: "inside", transitionProps: {
|
|
886
|
+
transition: 'slide-left',
|
|
887
|
+
}, styles: {
|
|
888
|
+
header: {
|
|
889
|
+
borderBottom: 0,
|
|
890
|
+
},
|
|
891
|
+
inner: {
|
|
892
|
+
padding: 0,
|
|
893
|
+
justifyContent: 'flex-end',
|
|
894
|
+
},
|
|
895
|
+
modal: {
|
|
896
|
+
height: '100%',
|
|
897
|
+
borderRadius: 0,
|
|
898
|
+
},
|
|
899
|
+
body: {
|
|
900
|
+
maxHeight: '100%',
|
|
901
|
+
},
|
|
902
|
+
content: {
|
|
903
|
+
maxHeight: '100%',
|
|
904
|
+
height: '100%',
|
|
905
|
+
borderRadius: 0,
|
|
906
|
+
},
|
|
907
|
+
} }, profileModalProps), children));
|
|
908
|
+
};
|
|
909
|
+
|
|
910
|
+
dayjs.extend(relativeTime);
|
|
911
|
+
const _CardAuthor = (props) => {
|
|
912
|
+
const { className = '', community, name, username, url, avatar: avatarProp, role: roleProp, title, userType = 'user', expertId, specialty, organisation, isMarryBaby: isMarryBabyProp, doctorId, hospitalId, hasQuickBooking, handleMakeAppointment, communityTrackingAttr, isAnonymous, showDetailPopup, subLine, authActionWrapper, profileProps, profileModalProps, extendEle, avatarProps, hideInfo, timeText, onCloseFromPost, avatarIcon, badgeIconSize, hideBackground, children, styles, dataEventCategory, dataEventAction, dataEventLabel, } = props;
|
|
913
|
+
const { data: { locale, router, env: { isMarryBaby: isMarryBabyContext, togetherBasePath }, }, } = useContext(TogetherComponentGlobalContext);
|
|
914
|
+
const { isMobile } = useScreenSize();
|
|
915
|
+
const { t } = useTranslations();
|
|
916
|
+
const { classes } = useStyles(undefined,
|
|
917
|
+
// Second argument is responsible for styles api integration
|
|
918
|
+
{ name: 'CardAuthor', styles });
|
|
919
|
+
const isMarryBaby = typeof isMarryBabyProp === 'boolean' ? isMarryBabyProp : isMarryBabyContext;
|
|
920
|
+
const siteType = isMarryBaby ? 'marryBaby' : 'helloSites';
|
|
921
|
+
const displayName = isAnonymous
|
|
922
|
+
? t('cardPost.anonymous')
|
|
923
|
+
: name || username || '';
|
|
924
|
+
const avatar = isAnonymous
|
|
925
|
+
? CommonGAssets.getAssetPath('avatar.jpg')
|
|
926
|
+
: avatarProp;
|
|
927
|
+
const role = isAnonymous ? undefined : roleProp;
|
|
928
|
+
const [openPopupExpert, setOpenPopupExpert] = useState(false);
|
|
929
|
+
const { asPath } = router || {};
|
|
930
|
+
const currentUrl = `https://${domainLocales$1[locale]}${asPath}`;
|
|
931
|
+
const onAuthorClick = () => {
|
|
932
|
+
if (isAnonymous || userType === 'chatbot') {
|
|
933
|
+
return false;
|
|
934
|
+
}
|
|
935
|
+
if (showDetailPopup) {
|
|
936
|
+
setOpen(true);
|
|
937
|
+
}
|
|
938
|
+
else if (url) {
|
|
939
|
+
window.location.href = url;
|
|
940
|
+
}
|
|
941
|
+
};
|
|
942
|
+
useEffect(() => {
|
|
943
|
+
toggleNoScroll(openPopupExpert);
|
|
944
|
+
}, [openPopupExpert]);
|
|
945
|
+
const [open, setOpen] = useState(false);
|
|
946
|
+
const isExpert = (props === null || props === void 0 ? void 0 : props.role) === 'expert';
|
|
947
|
+
const bookingAvai = Boolean(doctorId || hospitalId);
|
|
948
|
+
const subItemList = [
|
|
949
|
+
role === 'expert' && organisation && React__default.createElement("span", null, organisation),
|
|
950
|
+
role === 'expert' && specialty && React__default.createElement("span", null, specialty),
|
|
951
|
+
!(role === 'expert' && specialty && organisation) && (community === null || community === void 0 ? void 0 : community.name) && (React__default.createElement("a", Object.assign({ href: (community === null || community === void 0 ? void 0 : community.slug) && community.isActive && !community.isHidden
|
|
952
|
+
? `${togetherBasePath}/${community === null || community === void 0 ? void 0 : community.slug}/`
|
|
953
|
+
: undefined, className: "author-community-name" }, communityTrackingAttr), `${community === null || community === void 0 ? void 0 : community.name}`)),
|
|
954
|
+
timeText && React__default.createElement("span", null, timeText),
|
|
955
|
+
].filter(Boolean);
|
|
956
|
+
const [ProfileDetail, setProfileDetail] = useState(null);
|
|
957
|
+
useEffect(() => {
|
|
958
|
+
if (open && !ProfileDetail) {
|
|
959
|
+
import('./togetherMoleculesProfileDetail.js').then((module) => {
|
|
960
|
+
setProfileDetail(() => module.ProfileDetail);
|
|
961
|
+
});
|
|
962
|
+
}
|
|
963
|
+
}, [open]);
|
|
964
|
+
return (React__default.createElement(CardAuthorContext.Provider, { value: {
|
|
965
|
+
displayName,
|
|
966
|
+
title,
|
|
967
|
+
role,
|
|
968
|
+
siteType,
|
|
969
|
+
handleMakeAppointment,
|
|
970
|
+
doctorId,
|
|
971
|
+
hospitalId,
|
|
972
|
+
currentUrl,
|
|
973
|
+
} },
|
|
974
|
+
React__default.createElement(ProfileDetailModal, { open: open, onClose: () => setOpen(false), profileModalProps: profileModalProps }, ProfileDetail && (React__default.createElement(ProfileDetail, Object.assign({ currentPageUrl: dataEventLabel, authActionWrapper: authActionWrapper, onCloseFromPost: () => {
|
|
975
|
+
setOpen(false);
|
|
976
|
+
onCloseFromPost === null || onCloseFromPost === void 0 ? void 0 : onCloseFromPost();
|
|
977
|
+
} }, profileProps, { authorProps: Object.assign({ userId: props === null || props === void 0 ? void 0 : props.userId, avatar, name: props === null || props === void 0 ? void 0 : props.name, role: props === null || props === void 0 ? void 0 : props.role, title: props === null || props === void 0 ? void 0 : props.title, doctorId,
|
|
978
|
+
hospitalId,
|
|
979
|
+
hasQuickBooking }, profileProps === null || profileProps === void 0 ? void 0 : profileProps.authorProps) })))),
|
|
980
|
+
role === 'expert' && expertId ? (React__default.createElement(PopupExpert, { isOpen: openPopupExpert, onClose: () => setOpenPopupExpert(false), expertId: expertId })) : null,
|
|
981
|
+
role === 'expert' && doctorId ? (React__default.createElement(PopupDoctor, { isOpen: openPopupExpert, onClose: () => setOpenPopupExpert(false), doctorId: doctorId, locale: locale })) : null,
|
|
982
|
+
role === 'expert' && hospitalId ? (React__default.createElement(PopupHospital, { isOpen: openPopupExpert, onClose: () => setOpenPopupExpert(false), hospitalId: hospitalId, locale: locale })) : null,
|
|
983
|
+
React__default.createElement("div", { className: `hhg-card-author ${classes.root} ${className} ${isExpert ? 'expert-author' : ''}`, "data-background": !hideBackground && isExpert, "data-is-marrybaby": isMarryBaby },
|
|
984
|
+
React__default.createElement(CardAuthor$1, { dataEventCategory: dataEventCategory, dataEventAction: dataEventAction, dataEventLabel: dataEventLabel, onAvatarClick: onAuthorClick, avatarProps: Object.assign(Object.assign({ avatar: isAnonymous
|
|
985
|
+
? CommonGAssets.getAssetPath(isMarryBaby ? 'anomyous-avatar-1.svg' : 'anomyous-avatar.svg')
|
|
986
|
+
: avatar, username: displayName }, avatarProps), { style: {
|
|
987
|
+
cursor: !isAnonymous && (url || showDetailPopup)
|
|
988
|
+
? 'pointer'
|
|
989
|
+
: 'default',
|
|
990
|
+
} }), avatarIcon: avatarIcon || (isExpert && React__default.createElement(CrossLogo, { size: badgeIconSize || 15 })) }, children ? (React__default.createElement("div", { onClick: onAuthorClick }, children)) : (!hideInfo && (React__default.createElement(CardAuthor$1.Row, null,
|
|
991
|
+
React__default.createElement(CardAuthor$1.ColLeft, null,
|
|
992
|
+
React__default.createElement(Flex, { align: 'center', onClick: onAuthorClick },
|
|
993
|
+
React__default.createElement(CardAuthor$1.MainText, { onClick: onAuthorClick },
|
|
994
|
+
displayName,
|
|
995
|
+
userType === 'chatbot' ? (React__default.createElement(React__default.Fragment, null,
|
|
996
|
+
' ',
|
|
997
|
+
React__default.createElement(ShieldCheck, { color: theme.colors.primaryBase, size: 16, style: {
|
|
998
|
+
display: 'inline-block',
|
|
999
|
+
transform: 'translate(0, 2px)',
|
|
1000
|
+
} }))) : (React__default.createElement(AuthorBadgeItem, null)))),
|
|
1001
|
+
subLine || (React__default.createElement(CardAuthor$1.SubTextRow, { style: hasQuickBooking
|
|
1002
|
+
? {
|
|
1003
|
+
position: 'relative',
|
|
1004
|
+
}
|
|
1005
|
+
: {} },
|
|
1006
|
+
subItemList.map((i, idx) => (React__default.createElement(React__default.Fragment, null,
|
|
1007
|
+
idx !== 0 && React__default.createElement(CardAuthor$1.SubDivider, null),
|
|
1008
|
+
React__default.createElement(CardAuthor$1.SubText, null, i)))),
|
|
1009
|
+
hasQuickBooking && bookingAvai && (React__default.createElement(Box, { sx: {
|
|
1010
|
+
marginTop: rem(5),
|
|
1011
|
+
// position: 'absolute',
|
|
1012
|
+
// bottom: `${-bookingBtnSize}px`,
|
|
1013
|
+
// left: 0,
|
|
1014
|
+
} },
|
|
1015
|
+
React__default.createElement(BookingBtn, { bookingId: doctorId || hospitalId, bookingType: doctorId
|
|
1016
|
+
? 'doctor'
|
|
1017
|
+
: hospitalId
|
|
1018
|
+
? 'hospital'
|
|
1019
|
+
: undefined, size: isMobile ? 'xs' : 'sm' })))))))))),
|
|
1020
|
+
extendEle && extendEle)));
|
|
1021
|
+
};
|
|
1022
|
+
const CardAuthor = _CardAuthor;
|
|
1023
|
+
CardAuthor.MainText = CardAuthor$1.MainText;
|
|
1024
|
+
CardAuthor.SubText = CardAuthor$1.SubText;
|
|
1025
|
+
CardAuthor.SubTextRow = CardAuthor$1.SubTextRow;
|
|
1026
|
+
CardAuthor.SubDivider = CardAuthor$1.SubDivider;
|
|
1027
|
+
CardAuthor.AuthorBadge = AuthorBadgeItem;
|
|
1028
|
+
CardAuthor.DisplayName = DisplayName;
|
|
1029
|
+
|
|
1030
|
+
export { CardAuthor as C, Loading as L, PopupExpert as P, PopupDoctor as a, PopupHospital as b, ProfileDetailModal as c, CardAuthor$1 as d };
|