@hhgtech/hhg-components 1.29.401 → 1.29.402-beta-2
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/{InputDate-50b5a745.js → InputDate-0f4db13a.js} +3 -3
- package/build/{LastPeriod-85e52090.js → LastPeriod-9ac168f7.js} +1 -1
- package/build/{MobileBottomNavigationIcon-33bb517a.js → MobileBottomNavigationIcon-1e59fcb6.js} +3 -3
- package/build/{Spinner-3fb88ec7.js → Spinner-049ad97c.js} +1 -1
- package/build/{WhatsApp-97efd8bc.js → WhatsApp-406753f5.js} +1 -1
- package/build/adapters.js +19 -19
- package/build/atoms.js +48 -48
- package/build/babyGrowth.js +83 -83
- package/build/cache.js +2 -2
- package/build/care.js +17 -17
- package/build/careBookingSearchBar.js +14 -14
- package/build/careBookingSearchBarV2.js +15 -15
- package/build/components/molecules/impressionTrackingWrapper/index.d.ts +8 -0
- package/build/components/navigationV2/components/molecules/navigationBar/index.d.ts +3 -1
- package/build/components/navigationV2/index.d.ts +13 -1
- package/build/components/organisms/navigationProfileButton/index.d.ts +2 -1
- package/build/components.js +97 -97
- package/build/{constants-1f31008e.js → constants-95469593.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-cc343cf3.js → core-820ef7c0.js} +1 -1
- package/build/{dataTransform-4436b8e4.js → dataTransform-20f4db39.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-5b6ef21d.js → editor-2234f86a.js} +11 -11
- package/build/embeddedHeathToolCards_babyGrowth.js +23 -23
- package/build/embeddedHeathToolCards_babyPoop.js +19 -19
- package/build/embeddedHeathToolCards_babyVaccine.js +22 -22
- package/build/embeddedHeathToolCards_bmi_bmi.js +25 -25
- package/build/embeddedHeathToolCards_bmrBmr.js +25 -25
- package/build/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
- package/build/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
- package/build/embeddedHeathToolCards_pwg_pwg.js +26 -26
- package/build/embeddedHeathToolCards_targetHeartRate.js +27 -27
- package/build/esm/{InputDate-b0bd594a.js → InputDate-fcbc1a34.js} +3 -3
- package/build/esm/{LastPeriod-5d04a8f1.js → LastPeriod-6ded23a7.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-d9e26713.js → MobileBottomNavigationIcon-818be6de.js} +3 -3
- package/build/esm/{Spinner-b1633c43.js → Spinner-f6227071.js} +1 -1
- package/build/esm/{WhatsApp-d607837f.js → WhatsApp-dba3504c.js} +1 -1
- package/build/esm/adapters.js +19 -19
- package/build/esm/atoms.js +48 -48
- package/build/esm/babyGrowth.js +83 -83
- package/build/esm/cache.js +2 -2
- package/build/esm/care.js +17 -17
- package/build/esm/careBookingSearchBar.js +14 -14
- package/build/esm/careBookingSearchBarV2.js +15 -15
- package/build/esm/components/molecules/impressionTrackingWrapper/index.d.ts +8 -0
- package/build/esm/components/navigationV2/components/molecules/navigationBar/index.d.ts +3 -1
- package/build/esm/components/navigationV2/index.d.ts +13 -1
- package/build/esm/components/organisms/navigationProfileButton/index.d.ts +2 -1
- package/build/esm/components.js +97 -97
- package/build/esm/{constants-624ac70e.js → constants-e2b46567.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-87474538.js → core-7565866f.js} +1 -1
- package/build/esm/{dataTransform-5323a3be.js → dataTransform-e8323710.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-c2a8b689.js → editor-7bbb6c34.js} +11 -11
- package/build/esm/embeddedHeathToolCards_babyGrowth.js +23 -23
- package/build/esm/embeddedHeathToolCards_babyPoop.js +19 -19
- package/build/esm/embeddedHeathToolCards_babyVaccine.js +22 -22
- package/build/esm/embeddedHeathToolCards_bmi_bmi.js +25 -25
- package/build/esm/embeddedHeathToolCards_bmrBmr.js +25 -25
- package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
- package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
- package/build/esm/embeddedHeathToolCards_pwg_pwg.js +26 -26
- package/build/esm/embeddedHeathToolCards_targetHeartRate.js +27 -27
- package/build/esm/footer.js +21 -21
- package/build/esm/gAssets.js +2 -2
- package/build/esm/{healthTools-88ca8859.js → healthTools-e9c77c5b.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +18 -18
- package/build/esm/healthToolsForm.js +33 -33
- package/build/esm/hooks.js +13 -13
- package/build/esm/i18n/translationKeys.d.ts +1 -1
- package/build/esm/i18n-values/en-PH.js +7 -0
- package/build/esm/i18n-values/hi-IN.js +7 -0
- package/build/esm/i18n-values/id-ID.js +7 -0
- package/build/esm/i18n-values/km-KH.js +7 -0
- package/build/esm/i18n-values/ms-MY.js +7 -0
- package/build/esm/i18n-values/my-MM.js +7 -0
- package/build/esm/i18n-values/th-TH.js +7 -0
- package/build/esm/i18n-values/tl-PH.js +7 -0
- package/build/esm/i18n-values/vi-VN.js +7 -0
- package/build/esm/i18n-values/vi-VN_MB.js +7 -0
- package/build/esm/i18n-values/zh-CN.js +7 -0
- package/build/esm/i18n-values/zh-TW.js +7 -0
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-9e31dde1.js → index-01c117e8.js} +13 -13
- package/build/esm/{index-6a19c814.js → index-022a1bee.js} +21 -21
- package/build/esm/{index-89f73df9.js → index-0bfabcfb.js} +17 -17
- package/build/esm/{index-f6ccd61a.js → index-0c088c54.js} +48 -142
- package/build/esm/{index-34842f2c.js → index-0c2b0368.js} +1 -1
- package/build/esm/{index-905a9bb5.js → index-0dcef7b4.js} +7 -7
- package/build/esm/{index-85d11d26.js → index-1634e0e8.js} +1 -1
- package/build/esm/{index-06d72d58.js → index-1f841d85.js} +16 -16
- package/build/esm/{index-e638943e.js → index-218a69fa.js} +15 -15
- package/build/esm/{index-2b62956e.js → index-21955a1a.js} +2 -2
- package/build/esm/{index-476ac8a9.js → index-21acdfcb.js} +2 -2
- package/build/esm/{index-519d0493.js → index-222cd61c.js} +6 -6
- package/build/esm/{index-ca52ce9f.js → index-228167f1.js} +4 -4
- package/build/esm/{index-67c06e07.js → index-23b7c630.js} +13 -13
- package/build/esm/{index-2de22431.js → index-243ad9da.js} +2 -2
- package/build/esm/{index-4da49d75.js → index-2886979c.js} +2 -2
- package/build/esm/{index-c7741a7b.js → index-28d9146f.js} +5 -5
- package/build/esm/{index-2a6977e0.js → index-2bbe223e.js} +2 -2
- package/build/esm/{index-ef38443a.js → index-34210312.js} +2 -2
- package/build/esm/{index-34242fad.js → index-38e78a86.js} +2 -2
- package/build/esm/{index-3bb86a1e.js → index-3e0c90f2.js} +17 -17
- package/build/esm/{index-cf25c576.js → index-40f845e7.js} +6 -6
- package/build/esm/{index-431f07a0.js → index-431cec75.js} +6 -6
- package/build/esm/{index-38b8ba83.js → index-47fb00f8.js} +13 -13
- package/build/esm/{index-97d720fd.js → index-54c01351.js} +7 -7
- package/build/esm/{index-195dca53.js → index-572e2fc3.js} +3 -3
- package/build/esm/{index-e97d2ccd.js → index-5eb93891.js} +4 -4
- package/build/esm/{index-81c4724e.js → index-6d3c5aa0.js} +17 -17
- package/build/esm/{index-4f3d9a5a.js → index-6fcdba9b.js} +13 -13
- package/build/esm/{index-829e609d.js → index-766a0e0f.js} +31 -31
- package/build/esm/{index-a0ec897d.js → index-7ab4272e.js} +1 -1
- package/build/esm/{index-36701a5e.js → index-7abcd4bd.js} +114 -14
- package/build/esm/{index-a7d37f65.js → index-7b760a68.js} +16 -16
- package/build/esm/{index-ffd3b149.js → index-825c7595.js} +2 -2
- package/build/esm/{index-e03359f5.js → index-82885041.js} +2 -2
- package/build/esm/{index-510e07f1.js → index-84377777.js} +1 -1
- package/build/esm/{index-900222b2.js → index-89ee0668.js} +2 -2
- package/build/esm/{index-5e3dfac9.js → index-8f8d974e.js} +22 -22
- package/build/esm/{index-2cb4efdf.js → index-9224c242.js} +10 -10
- package/build/esm/{index-f0adc4e5.js → index-932f592b.js} +6 -6
- package/build/esm/{index-e6ff8a8d.js → index-95196145.js} +25 -25
- package/build/esm/{index-cf8c9130.js → index-95356278.js} +11 -11
- package/build/esm/{index-e0f38200.js → index-99e2abb2.js} +5 -5
- package/build/esm/{index-6dbe0e99.js → index-9a0fda9f.js} +16 -16
- package/build/esm/{index-624da8dc.js → index-9b4dc7d5.js} +2 -2
- package/build/esm/{index-e48db81e.js → index-aa4ddc0f.js} +17 -17
- package/build/esm/{index-85b6de71.js → index-ae06d1b2.js} +2 -2
- package/build/esm/{index-16494cf1.js → index-b016366e.js} +2 -2
- package/build/esm/{index-6baceb51.js → index-b25cfee9.js} +1 -1
- package/build/esm/{index-3f67fc36.js → index-b89b93da.js} +24 -24
- package/build/esm/{index-bbf4517d.js → index-d0b2fd33.js} +18 -18
- package/build/esm/{index-0ece596f.js → index-d83d015f.js} +1 -1
- package/build/esm/{index-ae7f5949.js → index-d85cc105.js} +3 -3
- package/build/esm/{index-c0a12eac.js → index-d9f4c00c.js} +18 -18
- package/build/esm/{index-d579d0a6.js → index-da19df57.js} +1 -1
- package/build/esm/{index-df2ef983.js → index-db1958d8.js} +1 -1
- package/build/esm/{index-4753b93c.js → index-e0b1d507.js} +3 -3
- package/build/esm/{index-dfe674ff.js → index-e1607a67.js} +16 -16
- package/build/esm/{index-acb9ec3f.js → index-e689e152.js} +2 -2
- package/build/esm/{index-180cff82.js → index-ed86b8f8.js} +3 -3
- package/build/esm/{index-6d7d9397.js → index-ef03a3c8.js} +6 -6
- package/build/esm/{index-ffac9aa6.js → index-f3d8dc71.js} +3 -3
- package/build/esm/{index-a3f9e67c.js → index-f4f4acaf.js} +1 -1
- package/build/esm/{index-40634dbb.js → index-f5317565.js} +3 -3
- package/build/esm/{index-40b74dab.js → index-f9663d21.js} +32 -32
- package/build/esm/index.js +118 -118
- package/build/esm/{labelSorting-6e130433.js → labelSorting-52248c10.js} +4 -4
- package/build/esm/lead/LeadGenSubscriptionBox/LeadGenContext.d.ts +2 -0
- package/build/esm/lead.js +232 -60
- package/build/esm/{logoIcon-b40d285c.js → logoIcon-15290840.js} +2 -2
- package/build/esm/mantine.js +25 -25
- package/build/esm/misc.js +17 -17
- package/build/esm/miscGetDynamicHealthTool.js +4 -4
- package/build/esm/miscGetSocialList.js +8 -8
- package/build/esm/miscScreenSizeContext.js +1 -1
- package/build/esm/mobileBottomNavigation.js +5 -5
- package/build/esm/mobileBottomNavigationIcon.js +5 -5
- package/build/esm/molecules.js +74 -74
- package/build/esm/moleculesArticleCard.js +6 -6
- package/build/esm/moleculesArticleCardV2.js +16 -16
- package/build/esm/navigation.js +46 -46
- package/build/esm/navigationLogoutPopup.js +9 -9
- package/build/esm/navigationProfileButton.js +30 -23
- package/build/esm/onboardingV2.js +29 -29
- package/build/esm/organisms.js +50 -50
- package/build/esm/{post-df7df0a4.js → post-ad01438d.js} +2 -2
- package/build/esm/profileNavigation.js +19 -19
- package/build/esm/progressBar.js +1 -1
- package/build/esm/pwg.js +22 -22
- package/build/esm/ssoV2/api/featureFlag.d.ts +2 -1
- package/build/esm/ssoV2.js +52 -40
- package/build/esm/{store-6705e0f3.js → store-e64c0fec.js} +3 -3
- package/build/esm/subot.js +37 -37
- package/build/esm/surveyOrPremiumBanner.js +33 -33
- package/build/esm/surveyQuestionCard.js +10 -10
- package/build/esm/{surveyThankyouCard-1767d6ac.js → surveyThankyouCard-ebe6d0cb.js} +5 -5
- package/build/esm/together.js +56 -56
- package/build/esm/togetherApiUtils.js +4 -4
- package/build/esm/togetherAtoms.js +30 -30
- package/build/esm/togetherComponentGlobalContext.js +4 -4
- package/build/esm/togetherMolecules.js +51 -51
- package/build/esm/togetherMoleculesCardAuthor.js +28 -28
- package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
- package/build/esm/togetherMoleculesProfileDetail.js +39 -39
- package/build/esm/togetherOrganisms.js +50 -50
- package/build/esm/togetherRichTextEditor.js +17 -17
- package/build/esm/togetherShareBox.js +10 -10
- package/build/esm/{translationsProvider-94b7d28f.js → translationsProvider-9da008c6.js} +1 -1
- package/build/esm/{treePopoverMenu-6e2a5a9e.js → treePopoverMenu-b1962a04.js} +19 -19
- package/build/esm/{types-ec73e5f3.js → types-70f5924b.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-497a159c.js → useCategory-61fb8f64.js} +5 -5
- package/build/esm/{useHealthToolCache-85faced6.js → useHealthToolCache-0176c5b4.js} +1 -1
- package/build/esm/{useMantineLocale-4fe5572f.js → useMantineLocale-d414da46.js} +6 -6
- package/build/esm/{usePlacesAutocomplete-ce024969.js → usePlacesAutocomplete-bcb8d5fe.js} +1 -1
- package/build/esm/{useScreenSize-e8ec74ad.js → useScreenSize-ad5b74e5.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +10 -10
- package/build/esm/{utils-2314a4f4.js → utils-55c6b45d.js} +5 -5
- package/build/esm/{utils-2f6899d6.js → utils-6b931ca6.js} +3 -3
- package/build/esm/{utils-7fe04919.js → utils-e2554287.js} +2 -2
- package/build/esm/{utils-a4a2df60.js → utils-f87b8801.js} +2 -2
- package/build/esm/vaccination.js +21 -21
- package/build/footer.js +21 -21
- package/build/gAssets.js +2 -2
- package/build/{healthTools-f5ef99df.js → healthTools-445a04ec.js} +1 -1
- package/build/healthToolsCardWrapper.js +18 -18
- package/build/healthToolsForm.js +33 -33
- package/build/hooks.js +13 -13
- package/build/i18n/translationKeys.d.ts +1 -1
- package/build/i18n-values/en-PH.js +7 -0
- package/build/i18n-values/hi-IN.js +7 -0
- package/build/i18n-values/id-ID.js +7 -0
- package/build/i18n-values/km-KH.js +7 -0
- package/build/i18n-values/ms-MY.js +7 -0
- package/build/i18n-values/my-MM.js +7 -0
- package/build/i18n-values/th-TH.js +7 -0
- package/build/i18n-values/tl-PH.js +7 -0
- package/build/i18n-values/vi-VN.js +7 -0
- package/build/i18n-values/vi-VN_MB.js +7 -0
- package/build/i18n-values/zh-CN.js +7 -0
- package/build/i18n-values/zh-TW.js +7 -0
- package/build/i18n.js +2 -2
- package/build/i18nV2.js +1 -1
- package/build/{index-463616a1.js → index-05eeb683.js} +2 -2
- package/build/{index-fa16212e.js → index-0628d2ea.js} +6 -6
- package/build/{index-0ad9e47d.js → index-07fe4c6c.js} +25 -25
- package/build/{index-66cfa53c.js → index-09869dfd.js} +10 -10
- package/build/{index-fafafce2.js → index-0a741b18.js} +13 -13
- package/build/{index-5f984dd1.js → index-0a8e7d37.js} +2 -2
- package/build/{index-6998b5bf.js → index-0f00e5b6.js} +2 -2
- package/build/{index-26614c32.js → index-0f808537.js} +11 -11
- package/build/{index-dd429469.js → index-0ffed5cf.js} +5 -5
- package/build/{index-88ccdeb4.js → index-14495570.js} +21 -21
- package/build/{index-6e157d57.js → index-14c4044c.js} +3 -3
- package/build/{index-63b6a569.js → index-1d48661b.js} +2 -2
- package/build/{index-abded276.js → index-231001c3.js} +16 -16
- package/build/{index-08638301.js → index-252f0586.js} +1 -1
- package/build/{index-9b9ae8ac.js → index-25620da9.js} +1 -1
- package/build/{index-d24ccc86.js → index-2938dbe8.js} +22 -22
- package/build/{index-b4ec6381.js → index-2e8284a9.js} +2 -2
- package/build/{index-8ee27ca3.js → index-2f6c95c0.js} +6 -6
- package/build/{index-e0cf4d6d.js → index-300e66fb.js} +7 -7
- package/build/{index-2bce444d.js → index-3ce98941.js} +3 -3
- package/build/{index-f4901327.js → index-3cf9fbf4.js} +17 -17
- package/build/{index-18a22ba4.js → index-4aa08964.js} +2 -2
- package/build/{index-a177467f.js → index-53a6e597.js} +1 -1
- package/build/{index-ec1f3ce6.js → index-59bb1b40.js} +32 -32
- package/build/{index-b3625020.js → index-5f2c96f2.js} +16 -16
- package/build/{index-aee48ea7.js → index-647af648.js} +3 -3
- package/build/{index-89a00675.js → index-6b969fd7.js} +2 -2
- package/build/{index-1d03ed03.js → index-6e8d0776.js} +2 -2
- package/build/{index-715bdccd.js → index-6ebdc8b6.js} +13 -13
- package/build/{index-cab6508e.js → index-6f7907a9.js} +5 -5
- package/build/{index-0c0c9ca1.js → index-7200d66a.js} +24 -24
- package/build/{index-7026c19b.js → index-76e816bb.js} +16 -16
- package/build/{index-84701fcc.js → index-784e70b0.js} +4 -4
- package/build/{index-116825a7.js → index-8882de29.js} +18 -18
- package/build/{index-64cf752a.js → index-8c817697.js} +143 -237
- package/build/{index-245941fd.js → index-91b95c7a.js} +17 -17
- package/build/{index-d0599fca.js → index-958565ef.js} +1 -1
- package/build/{index-0b517a5d.js → index-97b250e2.js} +6 -6
- package/build/{index-4f857d8b.js → index-9ae76386.js} +2 -2
- package/build/{index-7124e821.js → index-9b5531a2.js} +6 -6
- package/build/{index-830260be.js → index-a1762467.js} +7 -7
- package/build/{index-545344dc.js → index-a22cc3db.js} +15 -15
- package/build/{index-747aa7a3.js → index-a46d8bae.js} +1 -1
- package/build/{index-3f568ba2.js → index-aae11b5a.js} +17 -17
- package/build/{index-a4364c2d.js → index-acf2f720.js} +18 -18
- package/build/{index-5776452a.js → index-b22653c4.js} +6 -6
- package/build/{index-baff6e54.js → index-b9995e22.js} +2 -2
- package/build/{index-f3526bd2.js → index-c2455486.js} +3 -3
- package/build/{index-ed7e1a0e.js → index-c2dbad5b.js} +16 -16
- package/build/{index-fdedf7ae.js → index-c50748dc.js} +2 -2
- package/build/{index-c99d2185.js → index-c9883562.js} +17 -17
- package/build/{index-94887cc1.js → index-cbce891a.js} +3 -3
- package/build/{index-dc7d34d3.js → index-cc9aa9eb.js} +4 -4
- package/build/{index-abb18938.js → index-d0a2f32b.js} +1 -1
- package/build/{index-2ce81ae6.js → index-d20a3d96.js} +13 -13
- package/build/{index-f8cf9e42.js → index-d251f228.js} +123 -20
- package/build/{index-a1bc78bc.js → index-d2df6979.js} +1 -1
- package/build/{index-0382d63a.js → index-d431afb1.js} +2 -2
- package/build/{index-42bac98d.js → index-d805eba0.js} +31 -31
- package/build/{index-4eefbb25.js → index-e4f24955.js} +1 -1
- package/build/{index-cba3765b.js → index-ec237d16.js} +1 -1
- package/build/{index-eb031819.js → index-eecf76d3.js} +3 -3
- package/build/{index-b4bf4add.js → index-fa380cd9.js} +13 -13
- package/build/{index-9e7dab0c.js → index-fabb5fef.js} +2 -2
- package/build/{index-eb387967.js → index-feaa82fd.js} +2 -2
- package/build/index.js +118 -118
- package/build/{labelSorting-43bf7546.js → labelSorting-2b8bc1b7.js} +4 -4
- package/build/lead/LeadGenSubscriptionBox/LeadGenContext.d.ts +2 -0
- package/build/lead.js +231 -59
- package/build/{logoIcon-987ae99e.js → logoIcon-c73ced8e.js} +2 -2
- package/build/mantine.js +22 -22
- package/build/misc.js +17 -17
- package/build/miscGetDynamicHealthTool.js +4 -4
- package/build/miscGetSocialList.js +8 -8
- package/build/miscScreenSizeContext.js +1 -1
- package/build/mobileBottomNavigation.js +5 -5
- package/build/mobileBottomNavigationIcon.js +5 -5
- package/build/molecules.js +74 -74
- package/build/moleculesArticleCard.js +6 -6
- package/build/moleculesArticleCardV2.js +16 -16
- package/build/navigation.js +46 -46
- package/build/navigationLogoutPopup.js +9 -9
- package/build/navigationProfileButton.js +30 -23
- package/build/onboardingV2.js +28 -28
- package/build/organisms.js +50 -50
- package/build/{post-492e348d.js → post-a6948df8.js} +2 -2
- package/build/profileNavigation.js +19 -19
- package/build/progressBar.js +1 -1
- package/build/pwg.js +22 -22
- package/build/ssoV2/api/featureFlag.d.ts +2 -1
- package/build/ssoV2.js +50 -38
- package/build/{store-42ed9969.js → store-396d5cbd.js} +3 -3
- package/build/subot.js +36 -36
- package/build/surveyOrPremiumBanner.js +33 -33
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-99734f4f.js → surveyThankyouCard-36fa4f82.js} +5 -5
- package/build/together.js +56 -56
- package/build/togetherApiUtils.js +4 -4
- package/build/togetherAtoms.js +30 -30
- package/build/togetherComponentGlobalContext.js +4 -4
- package/build/togetherMolecules.js +51 -51
- package/build/togetherMoleculesCardAuthor.js +28 -28
- package/build/togetherMoleculesPostImagePreview.js +11 -11
- package/build/togetherMoleculesProfileDetail.js +39 -39
- package/build/togetherOrganisms.js +50 -50
- package/build/togetherRichTextEditor.js +17 -17
- package/build/togetherShareBox.js +10 -10
- package/build/{translationsProvider-53121652.js → translationsProvider-e31bc008.js} +1 -1
- package/build/{treePopoverMenu-c80ba22d.js → treePopoverMenu-e75708e7.js} +19 -19
- package/build/{types-a238b23f.js → types-6a688975.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-d9f3bd8e.js → useCategory-4ae4d91b.js} +5 -5
- package/build/{useHealthToolCache-7fbe16a5.js → useHealthToolCache-c88f8ad4.js} +1 -1
- package/build/{useMantineLocale-da63c803.js → useMantineLocale-cd39a460.js} +6 -6
- package/build/{usePlacesAutocomplete-a2ebc100.js → usePlacesAutocomplete-bb5eba05.js} +1 -1
- package/build/{useScreenSize-87d8838d.js → useScreenSize-d209de5b.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +10 -10
- package/build/{utils-4a3e1b33.js → utils-52e57624.js} +2 -2
- package/build/{utils-25c154d4.js → utils-59430eab.js} +3 -3
- package/build/{utils-75d10c83.js → utils-9eeed425.js} +5 -5
- package/build/{utils-32f2afd9.js → utils-f5efba7f.js} +2 -2
- package/build/vaccination.js +21 -21
- package/package.json +1 -1
- /package/build/{BMI_BOYS.percentile.monthly-bed63eef.js → BMI_BOYS.percentile.monthly-e1bfccf0.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-26916daa.js → BMI_BOYS.percentile.weekly-9bb43808.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-89fc5afe.js → BMI_BOYS.percentile.yearly-622f803a.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-b93a4a5b.js → BMI_BOYS.zscore.monthly-0ccd75a7.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-ad9b8087.js → BMI_BOYS.zscore.weekly-030f990f.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-5e0be2b3.js → BMI_BOYS.zscore.yearly-de02cd58.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-8bed985b.js → BMI_GIRLS.percentile.monthly-02eba0b8.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-772cea7f.js → BMI_GIRLS.percentile.weekly-c5da0aba.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-2b77d1bc.js → BMI_GIRLS.percentile.yearly-60e2d32c.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-60aba58c.js → BMI_GIRLS.zscore.monthly-e85b87d1.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-1b0b85f1.js → BMI_GIRLS.zscore.weekly-5075f16c.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-148dfa89.js → BMI_GIRLS.zscore.yearly-45fd5ea1.js} +0 -0
- /package/build/{ChevronDown-2fab29f2.js → ChevronDown-3c05e385.js} +0 -0
- /package/build/{Close-6c68d2b8.js → Close-a2a29b6f.js} +0 -0
- /package/build/{Google-917dd2d2.js → Google-98df63b1.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-3d62c2bb.js → HEAD CIRCUM_BOYS.percentile.monthly-d38b79b3.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-95333db8.js → HEAD CIRCUM_BOYS.percentile.weekly-a3b88213.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-eb75e3c8.js → HEAD CIRCUM_BOYS.percentile.yearly-b0f4233b.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-1528a116.js → HEAD CIRCUM_BOYS.zscore.monthly-468ce5bd.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-e7313a79.js → HEAD CIRCUM_BOYS.zscore.weekly-2f430e5d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-cbc2402d.js → HEAD CIRCUM_BOYS.zscore.yearly-9a9e196b.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-41d0ceca.js → HEAD CIRCUM_GIRLS.percentile.monthly-b9d03243.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-58d3fcf2.js → HEAD CIRCUM_GIRLS.percentile.weekly-873d5322.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-94011390.js → HEAD CIRCUM_GIRLS.percentile.yearly-213794f4.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-98a53e42.js → HEAD CIRCUM_GIRLS.zscore.monthly-ad66c530.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-c045ec60.js → HEAD CIRCUM_GIRLS.zscore.weekly-b1ee41c3.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-6cc721f7.js → HEAD CIRCUM_GIRLS.zscore.yearly-75ed6ef8.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-95eaab87.js → HEIGHT_BOYS.percentile.monthly-2b403b5b.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-1ee4cc50.js → HEIGHT_BOYS.percentile.weekly-8debab9e.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-819181a3.js → HEIGHT_BOYS.percentile.yearly-b73a8f22.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-a1d74980.js → HEIGHT_BOYS.zscore.monthly-ab2a7620.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-d8ccb2ed.js → HEIGHT_BOYS.zscore.weekly-d475ea99.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-c7fee28d.js → HEIGHT_BOYS.zscore.yearly-17613d0d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-5df8f505.js → HEIGHT_GIRLS.percentile.monthly-bb4d4acb.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-2e794a5e.js → HEIGHT_GIRLS.percentile.weekly-79a12467.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-f9b45a55.js → HEIGHT_GIRLS.percentile.yearly-cb357d46.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-62944450.js → HEIGHT_GIRLS.zscore.monthly-095f8a85.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-c9ecaa1b.js → HEIGHT_GIRLS.zscore.weekly-4cbc5f15.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-28e07c3b.js → HEIGHT_GIRLS.zscore.yearly-1d427b44.js} +0 -0
- /package/build/{Locale-f7ec3d50.js → Locale-23e83c99.js} +0 -0
- /package/build/{Visible-9a208364.js → Visible-f15bf7a2.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-64c29aca.js → WEIGHT_BOYS.percentile.monthly-83679c3b.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-0fc17ed9.js → WEIGHT_BOYS.percentile.weekly-e30676cf.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-3a657028.js → WEIGHT_BOYS.percentile.yearly-05e8987d.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-e5d44b9c.js → WEIGHT_BOYS.zscore.monthly-3b24475d.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-56f78d88.js → WEIGHT_BOYS.zscore.weekly-5e6d05f0.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-eb08c9bc.js → WEIGHT_BOYS.zscore.yearly-061930fe.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-0ce7e5ed.js → WEIGHT_GIRLS.percentile.monthly-3a22798f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-14af00c6.js → WEIGHT_GIRLS.percentile.weekly-fcc35b0f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-b7f646ca.js → WEIGHT_GIRLS.percentile.yearly-9e105691.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-c2111398.js → WEIGHT_GIRLS.zscore.monthly-e99c5c83.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-cd6692bc.js → WEIGHT_GIRLS.zscore.weekly-6e9318c9.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-770c5c9e.js → WEIGHT_GIRLS.zscore.yearly-7c47d16d.js} +0 -0
- /package/build/{animation-0a7e9cee.js → animation-3e9c19cf.js} +0 -0
- /package/build/{constants-40401054.js → constants-6c84584a.js} +0 -0
- /package/build/{constants-be28a5cb.js → constants-a2b7e4cc.js} +0 -0
- /package/build/{constants-1a4941a1.js → constants-a65a6f22.js} +0 -0
- /package/build/{dataTransform-c469f71a.js → dataTransform-58c8ea05.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-809178b8.js → BMI_BOYS.percentile.monthly-484bec31.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-752de4d4.js → BMI_BOYS.percentile.weekly-0064cf13.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-c93250db.js → BMI_BOYS.percentile.yearly-2ee610d1.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-f71cd014.js → BMI_BOYS.zscore.monthly-359cff4f.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-3d95dd96.js → BMI_BOYS.zscore.weekly-c05c47f7.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-d1e4e176.js → BMI_BOYS.zscore.yearly-587cd6f5.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-effe9e9f.js → BMI_GIRLS.percentile.monthly-4a5afd5e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-112fe5f0.js → BMI_GIRLS.percentile.weekly-2aa4d816.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-cf6e4bf2.js → BMI_GIRLS.percentile.yearly-92d84687.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-831c78a1.js → BMI_GIRLS.zscore.monthly-b73ae047.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-d88db413.js → BMI_GIRLS.zscore.weekly-f16d5b1d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-3f2cbc8c.js → BMI_GIRLS.zscore.yearly-5af94f45.js} +0 -0
- /package/build/esm/{ChevronDown-545b9c82.js → ChevronDown-a9e1a704.js} +0 -0
- /package/build/esm/{Close-1279cd68.js → Close-bc02a632.js} +0 -0
- /package/build/esm/{Google-d9b4645c.js → Google-04c91ad8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-3c3fd51f.js → HEAD CIRCUM_BOYS.percentile.monthly-977521f8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-947ed7f8.js → HEAD CIRCUM_BOYS.percentile.weekly-b0a72bbd.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-9b2c146f.js → HEAD CIRCUM_BOYS.percentile.yearly-8427e5f4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-d5a4a2a5.js → HEAD CIRCUM_BOYS.zscore.monthly-448a0d4c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-b06c6c89.js → HEAD CIRCUM_BOYS.zscore.weekly-f7a841cf.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-2a92fac6.js → HEAD CIRCUM_BOYS.zscore.yearly-264be00f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-1f842c14.js → HEAD CIRCUM_GIRLS.percentile.monthly-d57d9ba4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-4292f16e.js → HEAD CIRCUM_GIRLS.percentile.weekly-b8764b58.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-54587475.js → HEAD CIRCUM_GIRLS.percentile.yearly-eae1bd1a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-6d294975.js → HEAD CIRCUM_GIRLS.zscore.monthly-fdba405e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-63f2dbdc.js → HEAD CIRCUM_GIRLS.zscore.weekly-ba1442a0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-e0ed4a30.js → HEAD CIRCUM_GIRLS.zscore.yearly-22b8404c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-a16a1d6e.js → HEIGHT_BOYS.percentile.monthly-b41c690c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-0b0b679b.js → HEIGHT_BOYS.percentile.weekly-38500db6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-beadb752.js → HEIGHT_BOYS.percentile.yearly-13b55109.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-a5aafb91.js → HEIGHT_BOYS.zscore.monthly-b57b9f3b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-c136fa6a.js → HEIGHT_BOYS.zscore.weekly-76545cd8.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-3559fa63.js → HEIGHT_BOYS.zscore.yearly-a3d8aea0.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-7b1aa4fd.js → HEIGHT_GIRLS.percentile.monthly-c1b21071.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-3024dc0d.js → HEIGHT_GIRLS.percentile.weekly-b9a5f9b7.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-bacb6ee7.js → HEIGHT_GIRLS.percentile.yearly-f651e724.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-ae92a5eb.js → HEIGHT_GIRLS.zscore.monthly-85bca55c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-279f3c66.js → HEIGHT_GIRLS.zscore.weekly-540bc640.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-3901fc71.js → HEIGHT_GIRLS.zscore.yearly-a367575e.js} +0 -0
- /package/build/esm/{Locale-b49cb218.js → Locale-1064ff3c.js} +0 -0
- /package/build/esm/{Visible-812816e6.js → Visible-280f1ce0.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-c2150fad.js → WEIGHT_BOYS.percentile.monthly-32597494.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-e0fb4d2e.js → WEIGHT_BOYS.percentile.weekly-5b1564a4.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-8d3badec.js → WEIGHT_BOYS.percentile.yearly-122f6526.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-3f7e60dc.js → WEIGHT_BOYS.zscore.monthly-d9d060a6.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-58013f22.js → WEIGHT_BOYS.zscore.weekly-79471670.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-82669d05.js → WEIGHT_BOYS.zscore.yearly-f17eb2b1.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-dfd9b9c3.js → WEIGHT_GIRLS.percentile.monthly-fc6491ea.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-cec37c0d.js → WEIGHT_GIRLS.percentile.weekly-766651a5.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-05a579b3.js → WEIGHT_GIRLS.percentile.yearly-dce9783f.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-71c27891.js → WEIGHT_GIRLS.zscore.monthly-2e24a999.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-888ed3db.js → WEIGHT_GIRLS.zscore.weekly-4f922182.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-d0834cda.js → WEIGHT_GIRLS.zscore.yearly-2ccde1fd.js} +0 -0
- /package/build/esm/{animation-7074de2e.js → animation-cde9d582.js} +0 -0
- /package/build/esm/{constants-d07add0e.js → constants-76e60b46.js} +0 -0
- /package/build/esm/{constants-cf9b0868.js → constants-7ae4f5d1.js} +0 -0
- /package/build/esm/{constants-e3da1251.js → constants-96829d24.js} +0 -0
- /package/build/esm/{dataTransform-09599156.js → dataTransform-4a6328f2.js} +0 -0
- /package/build/esm/{index-0bdc3e2b.js → index-0f7e913b.js} +0 -0
- /package/build/esm/{index-a2b34563.js → index-11124dfa.js} +0 -0
- /package/build/esm/{index-63b50c7c.js → index-1e888aa3.js} +0 -0
- /package/build/esm/{index-b9680220.js → index-7f07a2fa.js} +0 -0
- /package/build/esm/{index-b41c721e.js → index-94e2aa83.js} +0 -0
- /package/build/esm/{index-8e6ca0ef.js → index-bb8be834.js} +0 -0
- /package/build/esm/{index-d5b876a2.js → index-c41a2f99.js} +0 -0
- /package/build/esm/{index-c3988444.js → index-d4947c80.js} +0 -0
- /package/build/esm/{index.styles-bba78daa.js → index.styles-1dad4509.js} +0 -0
- /package/build/esm/{localizeNumberFormat-b136c3e2.js → localizeNumberFormat-a430ab2e.js} +0 -0
- /package/build/esm/{normalizeLink-1052f131.js → normalizeLink-9966781a.js} +0 -0
- /package/build/esm/{number-9cc3f833.js → number-5b2a0102.js} +0 -0
- /package/build/esm/{other-38d42e3e.js → other-f771317b.js} +0 -0
- /package/build/esm/{paths-17dccce5.js → paths-d0f47d58.js} +0 -0
- /package/build/esm/{translationsContext-315b4fd3.js → translationsContext-4c4d30a3.js} +0 -0
- /package/build/esm/{tslib.es6-c74116d0.js → tslib.es6-1b94ff29.js} +0 -0
- /package/build/esm/{types-c2dabcca.js → types-118a378a.js} +0 -0
- /package/build/esm/{useIsInit-2f639bc2.js → useIsInit-9a03e03f.js} +0 -0
- /package/build/esm/{useOutsideClick-4f4d7302.js → useOutsideClick-5a6b991e.js} +0 -0
- /package/build/esm/{useScrollbarSize-d914f007.js → useScrollbarSize-4716ec1d.js} +0 -0
- /package/build/esm/{useUniqueId-9fe1f3f3.js → useUniqueId-d80ee3dd.js} +0 -0
- /package/build/esm/{utils-92b0b714.js → utils-d1cda983.js} +0 -0
- /package/build/{index-23b51a01.js → index-288778a5.js} +0 -0
- /package/build/{index-986ac643.js → index-384aa8f9.js} +0 -0
- /package/build/{index-aadacef3.js → index-75e5775d.js} +0 -0
- /package/build/{index-5d4a7885.js → index-a0631ca0.js} +0 -0
- /package/build/{index-8192513e.js → index-a3c05ce2.js} +0 -0
- /package/build/{index-e197a721.js → index-b4f798a1.js} +0 -0
- /package/build/{index-d05a6728.js → index-c33ce3a1.js} +0 -0
- /package/build/{index-d6bb43db.js → index-d3767c2b.js} +0 -0
- /package/build/{index.styles-ec4554a3.js → index.styles-e0a8880f.js} +0 -0
- /package/build/{localizeNumberFormat-d847d607.js → localizeNumberFormat-41122e59.js} +0 -0
- /package/build/{normalizeLink-5626bf72.js → normalizeLink-1f8449ac.js} +0 -0
- /package/build/{number-4ede4810.js → number-e5b47f38.js} +0 -0
- /package/build/{other-2010d70b.js → other-b8ca7fcf.js} +0 -0
- /package/build/{paths-373d0d41.js → paths-e4e032bc.js} +0 -0
- /package/build/{translationsContext-3134cd01.js → translationsContext-2e09f8fb.js} +0 -0
- /package/build/{tslib.es6-ff726326.js → tslib.es6-a526d011.js} +0 -0
- /package/build/{types-1f10c100.js → types-60ab04b1.js} +0 -0
- /package/build/{useIsInit-f18f09f5.js → useIsInit-04cdde41.js} +0 -0
- /package/build/{useOutsideClick-2ad26202.js → useOutsideClick-a5a20069.js} +0 -0
- /package/build/{useScrollbarSize-fc1c883f.js → useScrollbarSize-3d87479c.js} +0 -0
- /package/build/{useUniqueId-5f5f82bc.js → useUniqueId-94fce545.js} +0 -0
- /package/build/{utils-658c0e88.js → utils-53474e62.js} +0 -0
|
@@ -1,51 +1,50 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('./tslib.es6-
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-a526d011.js');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var index$
|
|
6
|
-
var index$
|
|
7
|
-
var index$
|
|
8
|
-
var normalizeLink = require('./normalizeLink-
|
|
9
|
-
var dataTransform = require('./dataTransform-
|
|
5
|
+
var index$8 = require('./index-ec237d16.js');
|
|
6
|
+
var index$5 = require('./index-09869dfd.js');
|
|
7
|
+
var index$9 = require('./index-0a8e7d37.js');
|
|
8
|
+
var normalizeLink = require('./normalizeLink-1f8449ac.js');
|
|
9
|
+
var dataTransform = require('./dataTransform-20f4db39.js');
|
|
10
10
|
var other = require('@hhgtech/icons/other');
|
|
11
11
|
var core = require('@mantine/core');
|
|
12
|
-
var index$d = require('./index-
|
|
12
|
+
var index$d = require('./index-9b5531a2.js');
|
|
13
13
|
var throttle = require('lodash/throttle');
|
|
14
|
-
var index$b = require('./index-
|
|
14
|
+
var index$b = require('./index-0f808537.js');
|
|
15
15
|
require('@mantine/dates');
|
|
16
|
-
var index$
|
|
17
|
-
require('./useMantineLocale-
|
|
18
|
-
var index = require('./index-
|
|
19
|
-
var index$a = require('./index-
|
|
20
|
-
require('./index.styles-
|
|
21
|
-
require('./translationsContext-
|
|
16
|
+
var index$1 = require('./index-75e5775d.js');
|
|
17
|
+
require('./useMantineLocale-cd39a460.js');
|
|
18
|
+
var index = require('./index-1d48661b.js');
|
|
19
|
+
var index$a = require('./index-958565ef.js');
|
|
20
|
+
require('./index.styles-e0a8880f.js');
|
|
21
|
+
require('./translationsContext-2e09f8fb.js');
|
|
22
22
|
require('@mantine/hooks');
|
|
23
|
-
var utils = require('./utils-
|
|
24
|
-
require('./other-
|
|
25
|
-
require('./index-
|
|
26
|
-
var constants = require('./constants-
|
|
23
|
+
var utils = require('./utils-53474e62.js');
|
|
24
|
+
require('./other-b8ca7fcf.js');
|
|
25
|
+
require('./index-cbce891a.js');
|
|
26
|
+
var constants = require('./constants-95469593.js');
|
|
27
27
|
var styled = require('@emotion/styled');
|
|
28
|
-
var navigationProfileButton = require('./index-
|
|
29
|
-
var store = require('./store-
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var constants$1 = require('./constants-40401054.js');
|
|
33
|
-
var index$3 = require('./index-9b9ae8ac.js');
|
|
28
|
+
var navigationProfileButton = require('./index-d251f228.js');
|
|
29
|
+
var store = require('./store-396d5cbd.js');
|
|
30
|
+
var constants$1 = require('./constants-6c84584a.js');
|
|
31
|
+
var index$2 = require('./index-25620da9.js');
|
|
34
32
|
var miscTheme = require('./miscTheme.js');
|
|
35
|
-
var index$
|
|
33
|
+
var index$4 = require('./index-feaa82fd.js');
|
|
36
34
|
var core$1 = require('@hhgtech/icons/core');
|
|
37
|
-
var index$
|
|
38
|
-
var useIsInit = require('./useIsInit-
|
|
35
|
+
var index$3 = require('./index-e4f24955.js');
|
|
36
|
+
var useIsInit = require('./useIsInit-04cdde41.js');
|
|
39
37
|
var miscDefaultClassWrapper = require('./miscDefaultClassWrapper.js');
|
|
40
|
-
var index$
|
|
38
|
+
var index$6 = require('./index-05eeb683.js');
|
|
41
39
|
var dayjs = require('dayjs');
|
|
42
40
|
var relativeTime = require('dayjs/plugin/relativeTime');
|
|
43
|
-
var index$
|
|
41
|
+
var index$7 = require('./index-0f00e5b6.js');
|
|
44
42
|
var formatString = require('string-format');
|
|
45
|
-
var
|
|
43
|
+
var constantsDomainLocales = require('./constantsDomainLocales.js');
|
|
44
|
+
var index$c = require('./index-b4f798a1.js');
|
|
46
45
|
var debounce = require('lodash/debounce');
|
|
47
|
-
var Locale = require('./Locale-
|
|
48
|
-
var core$2 = require('./core-
|
|
46
|
+
var Locale = require('./Locale-23e83c99.js');
|
|
47
|
+
var core$2 = require('./core-820ef7c0.js');
|
|
49
48
|
|
|
50
49
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
51
50
|
|
|
@@ -100,100 +99,6 @@ const DisplayWrapper = ({ forceDisplay, mediaQueryKey, children, className, styl
|
|
|
100
99
|
|
|
101
100
|
var styles$2 = {"menuContainer":"y5VJdvw","menuIcon":"oVhOSCy","menuIconWrapper":"pX8OXTM"};
|
|
102
101
|
|
|
103
|
-
const useNavConfig = ({ locale, projectType, siteType, enableBookingBtn, }) => {
|
|
104
|
-
const config = React.useMemo(() => {
|
|
105
|
-
const enableSearchBar = projectType === 'discover' ||
|
|
106
|
-
projectType === 'together' ||
|
|
107
|
-
projectType === 'marryBaby' ||
|
|
108
|
-
(projectType === 'profile' && siteType === 'marryBaby');
|
|
109
|
-
const enableNavCare = siteType !== 'marryBaby' &&
|
|
110
|
-
projectType !== 'marryBaby' &&
|
|
111
|
-
index$1.CARE_LOCALES.includes(locale);
|
|
112
|
-
const enableNavCareBooking = enableBookingBtn &&
|
|
113
|
-
projectType !== 'marryBaby' &&
|
|
114
|
-
projectType === 'discover' &&
|
|
115
|
-
siteType !== 'marryBaby' &&
|
|
116
|
-
index$1.CARE_BOOKING_LOCALES.includes(locale);
|
|
117
|
-
const enableNavTogether = projectType === 'marryBaby' || index$1.TOGETHER_LOCALES.includes(locale);
|
|
118
|
-
const enableNavDiscover = true;
|
|
119
|
-
const enableNavHealthTools = true;
|
|
120
|
-
const enableProfileMySaved = true;
|
|
121
|
-
const enableNavEcom = siteType !== 'marryBaby' && index$1.ECOM_LOCALES.includes(locale);
|
|
122
|
-
const enableProfileEcom = siteType !== 'marryBaby' && index$1.ECOM_LOCALES.includes(locale);
|
|
123
|
-
const enableProfileMyHealth = true;
|
|
124
|
-
const enableNavVideo = index$1.VIDEO_LOCALES.includes(locale);
|
|
125
|
-
const baseUrl = normalizeLink.getCurrentBaseUrl(locale, siteType === 'marryBaby');
|
|
126
|
-
let fixBaseUrl = baseUrl;
|
|
127
|
-
if (typeof window !== 'undefined') {
|
|
128
|
-
if (fixBaseUrl.includes('//id.'))
|
|
129
|
-
fixBaseUrl = fixBaseUrl.replace('id.', '');
|
|
130
|
-
if (fixBaseUrl.includes('//staging-id.'))
|
|
131
|
-
fixBaseUrl = fixBaseUrl.replace('staging-id.', 'discover.');
|
|
132
|
-
}
|
|
133
|
-
const ssoUrl = normalizeLink.getCurrentSsoUrl(locale, siteType === 'marryBaby');
|
|
134
|
-
const statics = (() => {
|
|
135
|
-
return {
|
|
136
|
-
HOME_PAGE_URL: fixBaseUrl,
|
|
137
|
-
CARE_URL_FE: `${fixBaseUrl}/care`,
|
|
138
|
-
TOGETHER_URL_FE: `${fixBaseUrl}/community`,
|
|
139
|
-
VIDEO_URL_FE: `${fixBaseUrl}/videos`,
|
|
140
|
-
SSO_URL: ssoUrl,
|
|
141
|
-
TOGETHER_API: normalizeLink.getTogetherApiDomain(),
|
|
142
|
-
DISCOVER_API: normalizeLink.getDiscoverApiDomain(locale),
|
|
143
|
-
};
|
|
144
|
-
})();
|
|
145
|
-
return {
|
|
146
|
-
enableSearchBar,
|
|
147
|
-
enableNavCare,
|
|
148
|
-
enableNavCareBooking,
|
|
149
|
-
enableNavTogether,
|
|
150
|
-
enableNavEcom,
|
|
151
|
-
enableProfileEcom,
|
|
152
|
-
enableNavVideo,
|
|
153
|
-
enableProfileMyHealth,
|
|
154
|
-
enableNavDiscover,
|
|
155
|
-
enableNavHealthTools,
|
|
156
|
-
enableProfileMySaved,
|
|
157
|
-
statics,
|
|
158
|
-
};
|
|
159
|
-
}, []);
|
|
160
|
-
return config;
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
const NavigationContext = React__default["default"].createContext({});
|
|
164
|
-
const NavigationProvider = (_a) => {
|
|
165
|
-
var { children } = _a, props = tslib_es6.__rest(_a, ["children"]);
|
|
166
|
-
const [currentUrl, setCurrentUrl] = React__default["default"].useState(() => {
|
|
167
|
-
return (props.currentUrl ||
|
|
168
|
-
`https://${props.siteType === 'marryBaby'
|
|
169
|
-
? togetherComponentGlobalContext.domainLocalesMarryBaby[props.locale || 'en-PH']
|
|
170
|
-
: constantsDomainLocales.domainLocales[props.locale || 'en-PH']}${props.projectType === 'together'
|
|
171
|
-
? '/community'
|
|
172
|
-
: props.projectType === 'ecom'
|
|
173
|
-
? '/ecom'
|
|
174
|
-
: props.projectType === 'care'
|
|
175
|
-
? '/care'
|
|
176
|
-
: ''}/`);
|
|
177
|
-
});
|
|
178
|
-
React.useEffect(() => {
|
|
179
|
-
const update = () => {
|
|
180
|
-
setCurrentUrl(window.location.href);
|
|
181
|
-
};
|
|
182
|
-
window.addEventListener('popstate', update);
|
|
183
|
-
update();
|
|
184
|
-
return () => {
|
|
185
|
-
window.removeEventListener('popstate', update);
|
|
186
|
-
};
|
|
187
|
-
}, []);
|
|
188
|
-
const configs = useNavConfig({
|
|
189
|
-
locale: props.locale,
|
|
190
|
-
projectType: props.projectType,
|
|
191
|
-
siteType: props.siteType,
|
|
192
|
-
enableBookingBtn: props.enableBookingBtn,
|
|
193
|
-
});
|
|
194
|
-
return (React__default["default"].createElement(NavigationContext.Provider, { value: Object.assign(Object.assign({}, props), { configs: Object.assign(Object.assign({}, configs), props.configs), currentUrl: props.currentUrl || currentUrl }) }, children));
|
|
195
|
-
};
|
|
196
|
-
|
|
197
102
|
function ClosePopupIcon({ className }) {
|
|
198
103
|
return (React__default["default"].createElement("div", null,
|
|
199
104
|
React__default["default"].createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", className: className },
|
|
@@ -204,8 +109,8 @@ function HamburgerIcon({ siteType, enableSearch, className, style, }) {
|
|
|
204
109
|
if (siteType === 'helloSites') {
|
|
205
110
|
return (React__default["default"].createElement("div", { className: "hamburger-container" },
|
|
206
111
|
React__default["default"].createElement("img", { "data-list-type": "Header", "data-content-type": "Navigation", "data-content-topic": "Hamburger", src: enableSearch
|
|
207
|
-
? index$
|
|
208
|
-
: index$
|
|
112
|
+
? index$1.CommonGAssets.getAssetPath('hamburgerMenuNewWithSearch.svg')
|
|
113
|
+
: index$1.CommonGAssets.getAssetPath('hamburgerMenuNew.svg'), style: Object.assign({ width: '24px', height: '24px' }, style), alt: "home", className: className, loading: "lazy" })));
|
|
209
114
|
}
|
|
210
115
|
/** Marry Baby */
|
|
211
116
|
return (React__default["default"].createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", className: className },
|
|
@@ -420,9 +325,9 @@ const ItemMenu = ({ item, menu }) => {
|
|
|
420
325
|
: null)));
|
|
421
326
|
};
|
|
422
327
|
const NewWrapper = ({ isNew, children, }) => {
|
|
423
|
-
const { t } = index$
|
|
328
|
+
const { t } = index$2.useTranslations();
|
|
424
329
|
if (isNew) {
|
|
425
|
-
return (React__default["default"].createElement(index$
|
|
330
|
+
return (React__default["default"].createElement(index$3.Indicator, { color: "green", label: t('home.navigator.menuItem.new'), size: 20, styles: {
|
|
426
331
|
root: {
|
|
427
332
|
paddingRight: 10,
|
|
428
333
|
},
|
|
@@ -432,22 +337,22 @@ const NewWrapper = ({ isNew, children, }) => {
|
|
|
432
337
|
};
|
|
433
338
|
|
|
434
339
|
const Categories = ({ hrefViewMore, titleBtnViewMore, UrlFE, onClosePopup, menuItems, headingTitle, activeItem, }) => {
|
|
435
|
-
const { siteType } = React.useContext(NavigationContext);
|
|
436
|
-
const { t } = index$
|
|
340
|
+
const { siteType } = React.useContext(navigationProfileButton.NavigationContext);
|
|
341
|
+
const { t } = index$2.useTranslations();
|
|
437
342
|
const theme = core.useMantineTheme();
|
|
438
343
|
return (React__default["default"].createElement(StyledItemGridLeft, null,
|
|
439
344
|
React__default["default"].createElement("div", null,
|
|
440
345
|
React__default["default"].createElement(StyledHeading$1, null,
|
|
441
|
-
React__default["default"].createElement(index$
|
|
442
|
-
menuItems.slice(0, 6).map((item, index$
|
|
346
|
+
React__default["default"].createElement(index$4.Heading, { tag: siteType === 'marryBaby' ? 'h5' : 'h6', as: "p", fontWeight: "semibold" }, headingTitle)), menuItems === null || menuItems === void 0 ? void 0 :
|
|
347
|
+
menuItems.slice(0, 6).map((item, index$2) => {
|
|
443
348
|
const href = (item === null || item === void 0 ? void 0 : item.link)
|
|
444
349
|
? (item === null || item === void 0 ? void 0 : item.link.startsWith('http'))
|
|
445
350
|
? item === null || item === void 0 ? void 0 : item.link
|
|
446
351
|
: `${UrlFE}/${item === null || item === void 0 ? void 0 : item.link.split('/').filter(Boolean).join('/')}/`
|
|
447
352
|
: '/';
|
|
448
|
-
return (React__default["default"].createElement(StyledItem$6, Object.assign({ className: "iconMenu", "data-event-category": "Hamburger Navigation", "data-event-action": "Click", "data-event-label": href, "data-is-heading-category": false, "data-active": item.id && item.id === activeItem, "data-is-mobile-tool": item.isMobileAppTool, href: href }, (!index$
|
|
353
|
+
return (React__default["default"].createElement(StyledItem$6, Object.assign({ className: "iconMenu", "data-event-category": "Hamburger Navigation", "data-event-action": "Click", "data-event-label": href, "data-is-heading-category": false, "data-active": item.id && item.id === activeItem, "data-is-mobile-tool": item.isMobileAppTool, href: href }, (!index$5.isInternalLink(href) && {
|
|
449
354
|
target: '_blank',
|
|
450
|
-
}), { "data-theme": siteType, key: index$
|
|
355
|
+
}), { "data-theme": siteType, key: index$2, onClick: onClosePopup }),
|
|
451
356
|
React__default["default"].createElement("div", { className: "icon" },
|
|
452
357
|
React__default["default"].createElement("img", { loading: "lazy", alt: item.name, src: item.thumbnail || '/images/avatar.jpg', style: {
|
|
453
358
|
width: 32,
|
|
@@ -466,15 +371,15 @@ const Categories = ({ hrefViewMore, titleBtnViewMore, UrlFE, onClosePopup, menuI
|
|
|
466
371
|
item.isMobileAppTool && (React__default["default"].createElement(StyledIconNav, null,
|
|
467
372
|
React__default["default"].createElement(Phone, { className: "phone-icon", size: 16 }))),
|
|
468
373
|
React__default["default"].createElement(StyledIconNav, { className: "arrow-icon" },
|
|
469
|
-
React__default["default"].createElement("img", { src: index$
|
|
374
|
+
React__default["default"].createElement("img", { src: index$1.CommonGAssets.getAssetPath('chevronRight.svg'), style: { width: '16px', height: '16px' }, loading: "lazy" }))));
|
|
470
375
|
})),
|
|
471
376
|
titleBtnViewMore && (React__default["default"].createElement(StyledViewMore$1, { "data-theme": siteType, style: { textDecoration: 'none' }, href: hrefViewMore, "data-event-category": "Hamburger Navigation", "data-event-action": "Click", "data-event-label": hrefViewMore },
|
|
472
377
|
React__default["default"].createElement(StyledItemAll, { onClick: onClosePopup, "data-theme": siteType, "data-is-heading-category": false },
|
|
473
378
|
titleBtnViewMore,
|
|
474
379
|
React__default["default"].createElement(StyledImageWrapper, null,
|
|
475
380
|
React__default["default"].createElement("img", { className: "svg", src: siteType === 'marryBaby'
|
|
476
|
-
? index$
|
|
477
|
-
: index$
|
|
381
|
+
? index$1.CommonGAssets.getAssetPath('chevronRightPink.svg')
|
|
382
|
+
: index$1.CommonGAssets.getAssetPath('chevronRightActive.svg'), style: { width: '16px', height: '16px' }, loading: "lazy" })))))));
|
|
478
383
|
};
|
|
479
384
|
|
|
480
385
|
const StyledContainerItems$5 = styled__default["default"].div `
|
|
@@ -640,13 +545,13 @@ const StyledItem$5 = styled__default["default"].a `
|
|
|
640
545
|
|
|
641
546
|
const Item$4 = ({ item, index = 0 }) => {
|
|
642
547
|
var _a;
|
|
643
|
-
const { t } = index$
|
|
644
|
-
const { locale, configs: { statics }, } = React.useContext(NavigationContext);
|
|
548
|
+
const { t } = index$2.useTranslations();
|
|
549
|
+
const { locale, configs: { statics }, } = React.useContext(navigationProfileButton.NavigationContext);
|
|
645
550
|
if (!item)
|
|
646
551
|
return null;
|
|
647
552
|
const href = `${statics.CARE_URL_FE}/${(_a = constants$1.LOCALIZED_SLUGS[locale]) === null || _a === void 0 ? void 0 : _a.HOSPITAL}/${item.slug}-${item.id}`;
|
|
648
553
|
return (React__default["default"].createElement(StyledItem$5, { key: item.id, href: href, "data-event-category": "Hamburger Navigation", "data-event-action": `Care Click ${index + 1}`, "data-event-label": href },
|
|
649
|
-
React__default["default"].createElement("img", { src: index$
|
|
554
|
+
React__default["default"].createElement("img", { src: index$1.CommonGAssets.getAssetPath('navCareCardBg.svg'), alt: "", className: "bg-svg", loading: "lazy" }),
|
|
650
555
|
React__default["default"].createElement(StyledImageCard$3, null,
|
|
651
556
|
React__default["default"].createElement(StyledImageCardInner, null,
|
|
652
557
|
React__default["default"].createElement("img", { loading: "lazy", alt: item.name, src: item.logo || '/images/avatar.jpg' }))),
|
|
@@ -655,7 +560,7 @@ const Item$4 = ({ item, index = 0 }) => {
|
|
|
655
560
|
React__default["default"].createElement(StyledDes$2, null, item.description),
|
|
656
561
|
React__default["default"].createElement(StyledBtnView$2, null,
|
|
657
562
|
t('home.seeMore'),
|
|
658
|
-
React__default["default"].createElement("img", { src: index$
|
|
563
|
+
React__default["default"].createElement("img", { src: index$1.CommonGAssets.getAssetPath('chevronRightActive.svg'), style: {
|
|
659
564
|
width: '16px',
|
|
660
565
|
height: '16px',
|
|
661
566
|
marginTop: '3px',
|
|
@@ -730,19 +635,19 @@ const StyledLeft = styled__default["default"].div `
|
|
|
730
635
|
`;
|
|
731
636
|
|
|
732
637
|
const SpotlightNoData = ({ title, link, description, cta, icon }) => {
|
|
733
|
-
const { siteType } = React.useContext(NavigationContext);
|
|
638
|
+
const { siteType } = React.useContext(navigationProfileButton.NavigationContext);
|
|
734
639
|
return (React__default["default"].createElement(StyledContainerNoPosts, { "data-theme": siteType },
|
|
735
640
|
React__default["default"].createElement(StyledLeft, null,
|
|
736
641
|
React__default["default"].createElement("img", { src: siteType === 'marryBaby'
|
|
737
|
-
? index$
|
|
738
|
-
: index$
|
|
642
|
+
? index$1.CommonGAssets.getAssetPath('navMBSpotlightBgNoData.svg')
|
|
643
|
+
: index$1.CommonGAssets.getAssetPath('navSpotlightBgNoData.svg'), alt: "", loading: "lazy", className: "bg-svg" }),
|
|
739
644
|
React__default["default"].createElement(StyledContentLeft, null, icon && React__default["default"].createElement("img", { src: icon, width: 64, height: 64, loading: "lazy" }))),
|
|
740
645
|
React__default["default"].createElement("div", null,
|
|
741
646
|
title && React__default["default"].createElement(StyledTitle$4, null, title),
|
|
742
647
|
description && React__default["default"].createElement(StyledDescription, null, description),
|
|
743
648
|
cta && (React__default["default"].createElement("div", null,
|
|
744
649
|
React__default["default"].createElement("a", { href: link },
|
|
745
|
-
React__default["default"].createElement(index$
|
|
650
|
+
React__default["default"].createElement(index$6.Button, { theme: siteType, className: "survey-contact-submit", size: "md" }, cta)))))));
|
|
746
651
|
};
|
|
747
652
|
|
|
748
653
|
const StyledItemGridRight = styled__default["default"].div `
|
|
@@ -786,21 +691,21 @@ const StyledViewMore = styled__default["default"].a `
|
|
|
786
691
|
`;
|
|
787
692
|
|
|
788
693
|
const Spotlights = ({ title, viewMore, children, link, dataEventAction = '', }) => {
|
|
789
|
-
const { siteType } = React.useContext(NavigationContext);
|
|
694
|
+
const { siteType } = React.useContext(navigationProfileButton.NavigationContext);
|
|
790
695
|
return (React__default["default"].createElement(StyledItemGridRight, null,
|
|
791
696
|
React__default["default"].createElement(StyledHeading, null,
|
|
792
|
-
React__default["default"].createElement(index$
|
|
697
|
+
React__default["default"].createElement(index$4.Heading, { tag: siteType === 'marryBaby' ? 'h5' : 'h6', as: "p", fontWeight: "semibold" }, title),
|
|
793
698
|
viewMore && (React__default["default"].createElement(StyledViewMore, { "data-event-category": "Hamburger Navigation", "data-event-action": dataEventAction, "data-event-label": link, href: link, "data-theme": siteType },
|
|
794
699
|
viewMore,
|
|
795
700
|
React__default["default"].createElement("img", { src: siteType === 'marryBaby'
|
|
796
|
-
? index$
|
|
797
|
-
: index$
|
|
701
|
+
? index$1.CommonGAssets.getAssetPath('chevronRightPink.svg')
|
|
702
|
+
: index$1.CommonGAssets.getAssetPath('chevronRightActive.svg'), style: { width: '16px', height: '16px' }, loading: "lazy" })))),
|
|
798
703
|
children));
|
|
799
704
|
};
|
|
800
705
|
|
|
801
706
|
const CareSpotlights = ({ spotlights = [], hrefViewMore }) => {
|
|
802
|
-
const { t } = index$
|
|
803
|
-
const { siteType } = React.useContext(NavigationContext);
|
|
707
|
+
const { t } = index$2.useTranslations();
|
|
708
|
+
const { siteType } = React.useContext(navigationProfileButton.NavigationContext);
|
|
804
709
|
return (React__default["default"].createElement(Spotlights, { title: t('home.navigator.menu.spotlightHospitals') }, spotlights.length !== 0 ? (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
805
710
|
React__default["default"].createElement(StyledContainerItems$5, null, spotlights === null || spotlights === void 0 ? void 0 : spotlights.slice(0, 3).map((s, index) => (React__default["default"].createElement(Item$4, { key: index, index: index, item: s })))),
|
|
806
711
|
React__default["default"].createElement("div", { style: {
|
|
@@ -809,7 +714,7 @@ const CareSpotlights = ({ spotlights = [], hrefViewMore }) => {
|
|
|
809
714
|
right: '1rem',
|
|
810
715
|
} },
|
|
811
716
|
React__default["default"].createElement("a", { href: hrefViewMore },
|
|
812
|
-
React__default["default"].createElement(index$
|
|
717
|
+
React__default["default"].createElement(index$6.Button, { theme: siteType, className: "survey-contact-submit", size: "md" }, t('home.navigator.menu.care.homeButton')))))) : (React__default["default"].createElement(SpotlightNoData, { title: t('home.navigator.menu.care.noDatas.title'), description: t('home.navigator.menu.care.noDatas.description'), link: hrefViewMore, cta: t('home.navigator.menu.care.homeButton'), icon: index$1.CommonGAssets.getAssetPath('community.svg') }))));
|
|
813
718
|
};
|
|
814
719
|
|
|
815
720
|
const StyledContainerItems$4 = styled__default["default"].div `
|
|
@@ -876,14 +781,14 @@ const Item$3 = ({ item, index = 0 }) => {
|
|
|
876
781
|
};
|
|
877
782
|
|
|
878
783
|
const CategorySpotlights = ({ spotlightsList = [], hrefViewMore }) => {
|
|
879
|
-
const { t } = index$
|
|
880
|
-
const { configs: { statics }, } = React.useContext(NavigationContext);
|
|
784
|
+
const { t } = index$2.useTranslations();
|
|
785
|
+
const { configs: { statics }, } = React.useContext(navigationProfileButton.NavigationContext);
|
|
881
786
|
return (React__default["default"].createElement(Spotlights, { title: t('home.navigator.menu.spotlights'), viewMore: t('home.navigator.menu.spotlights.seeAll'), link: hrefViewMore, dataEventAction: "Spotlight See More Click" }, spotlightsList.length !== 0 ? (React__default["default"].createElement(StyledContainerItems$4, null, spotlightsList === null || spotlightsList === void 0 ? void 0 : spotlightsList.slice(0, 4).map((spotlight, index) => (React__default["default"].createElement(Item$3, { key: index, index: index, item: {
|
|
882
787
|
id: spotlight.id,
|
|
883
788
|
link: statics.HOME_PAGE_URL + spotlight.permalink,
|
|
884
789
|
title: spotlight.name,
|
|
885
790
|
banner: spotlight.image,
|
|
886
|
-
} }))))) : (React__default["default"].createElement(SpotlightNoData, { title: t('home.navigator.menu.category.noDatas.title'), description: t('home.navigator.menu.category.noDatas.description'), link: hrefViewMore, cta: t('home.navigator.menu.category.noDatas.cta'), icon: index$
|
|
791
|
+
} }))))) : (React__default["default"].createElement(SpotlightNoData, { title: t('home.navigator.menu.category.noDatas.title'), description: t('home.navigator.menu.category.noDatas.description'), link: hrefViewMore, cta: t('home.navigator.menu.category.noDatas.cta'), icon: index$1.CommonGAssets.getAssetPath('Spotlight.svg') }))));
|
|
887
792
|
};
|
|
888
793
|
|
|
889
794
|
const StyledContainerItems$3 = styled__default["default"].div `
|
|
@@ -1006,7 +911,7 @@ const StyledWrapInfo = styled__default["default"].div `
|
|
|
1006
911
|
dayjs__default["default"].extend(relativeTime__default["default"]);
|
|
1007
912
|
const Item$2 = ({ post, index = 0 }) => {
|
|
1008
913
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1009
|
-
const { siteType, configs: { statics }, } = React.useContext(NavigationContext);
|
|
914
|
+
const { siteType, configs: { statics }, } = React.useContext(navigationProfileButton.NavigationContext);
|
|
1010
915
|
if (!post)
|
|
1011
916
|
return null;
|
|
1012
917
|
const communityUrl = [statics.TOGETHER_URL_FE, (_a = post.community) === null || _a === void 0 ? void 0 : _a.slug].join('/');
|
|
@@ -1021,7 +926,7 @@ const Item$2 = ({ post, index = 0 }) => {
|
|
|
1021
926
|
return (React__default["default"].createElement(StyledItem$3, { href: postUrl, "data-event-category": "Hamburger Navigation", "data-event-action": `Together Click ${index + 1}`, "data-event-label": postUrl },
|
|
1022
927
|
React__default["default"].createElement(StyledContent$1, null,
|
|
1023
928
|
React__default["default"].createElement(StyledInfoUser, null,
|
|
1024
|
-
React__default["default"].createElement(index$
|
|
929
|
+
React__default["default"].createElement(index$7.UserAvatar, { avatar: (_b = post.author) === null || _b === void 0 ? void 0 : _b.avatar, username: ((_c = post.author) === null || _c === void 0 ? void 0 : _c.name) || ((_d = post.author) === null || _d === void 0 ? void 0 : _d.username) }),
|
|
1025
930
|
React__default["default"].createElement(StyledWrapInfo, null,
|
|
1026
931
|
React__default["default"].createElement(StyledName, { "data-theme": siteType }, (_e = post.author) === null || _e === void 0 ? void 0 : _e.name),
|
|
1027
932
|
React__default["default"].createElement(StyledInfo, null,
|
|
@@ -1036,9 +941,9 @@ const Item$2 = ({ post, index = 0 }) => {
|
|
|
1036
941
|
};
|
|
1037
942
|
|
|
1038
943
|
const CommunitySpotlights = ({ spotlights = [] }) => {
|
|
1039
|
-
const { configs: { statics }, } = React.useContext(NavigationContext);
|
|
1040
|
-
const { t } = index$
|
|
1041
|
-
return (React__default["default"].createElement(Spotlights, { title: t('home.navigator.menu.trendingPosts'), viewMore: t('home.navigator.menu.trendingPosts.seeMore'), link: normalizeLink.normalizeLink(statics.TOGETHER_URL_FE), dataEventAction: "Together See More Click" }, spotlights.length !== 0 ? (React__default["default"].createElement(StyledContainerItems$3, null, spotlights === null || spotlights === void 0 ? void 0 : spotlights.slice(0, 4).map((p, index) => (React__default["default"].createElement(Item$2, { index: index, post: p, key: p.id }))))) : (React__default["default"].createElement(SpotlightNoData, { title: t('home.navigator.menu.together.noPosts.title'), description: t('home.navigator.menu.together.noPosts.description'), link: `${statics.HOME_PAGE_URL}/community/`, cta: t('home.navigator.menu.together.noPosts.cta'), icon: index$
|
|
944
|
+
const { configs: { statics }, } = React.useContext(navigationProfileButton.NavigationContext);
|
|
945
|
+
const { t } = index$2.useTranslations();
|
|
946
|
+
return (React__default["default"].createElement(Spotlights, { title: t('home.navigator.menu.trendingPosts'), viewMore: t('home.navigator.menu.trendingPosts.seeMore'), link: normalizeLink.normalizeLink(statics.TOGETHER_URL_FE), dataEventAction: "Together See More Click" }, spotlights.length !== 0 ? (React__default["default"].createElement(StyledContainerItems$3, null, spotlights === null || spotlights === void 0 ? void 0 : spotlights.slice(0, 4).map((p, index) => (React__default["default"].createElement(Item$2, { index: index, post: p, key: p.id }))))) : (React__default["default"].createElement(SpotlightNoData, { title: t('home.navigator.menu.together.noPosts.title'), description: t('home.navigator.menu.together.noPosts.description'), link: `${statics.HOME_PAGE_URL}/community/`, cta: t('home.navigator.menu.together.noPosts.cta'), icon: index$1.CommonGAssets.getAssetPath('community.svg') }))));
|
|
1042
947
|
};
|
|
1043
948
|
|
|
1044
949
|
const StyledContainerItems$2 = styled__default["default"].div `
|
|
@@ -1058,10 +963,10 @@ const StyledItem$2 = styled__default["default"].a `
|
|
|
1058
963
|
align-items: center;
|
|
1059
964
|
`;
|
|
1060
965
|
|
|
1061
|
-
const Item$1 = ({ item, index: index$
|
|
966
|
+
const Item$1 = ({ item, index: index$2 = 0 }) => {
|
|
1062
967
|
if (!item)
|
|
1063
968
|
return null;
|
|
1064
|
-
return (React__default["default"].createElement(StyledItem$2, { href: item.url, "data-event-category": "Hamburger Navigation", "data-event-action": `Care Click ${index$
|
|
969
|
+
return (React__default["default"].createElement(StyledItem$2, { href: item.url, "data-event-category": "Hamburger Navigation", "data-event-action": `Care Click ${index$2 + 1}`, "data-event-label": item.url },
|
|
1065
970
|
React__default["default"].createElement("img", { loading: "lazy", alt: item.name, src: item.featuredImage || '/images/avatar.jpg', style: {
|
|
1066
971
|
width: '40px',
|
|
1067
972
|
height: '40px',
|
|
@@ -1069,7 +974,7 @@ const Item$1 = ({ item, index: index$1 = 0 }) => {
|
|
|
1069
974
|
React__default["default"].createElement(index.Text, { size: "p2", weight: "regular", style: {
|
|
1070
975
|
marginLeft: 16,
|
|
1071
976
|
} }, item.name),
|
|
1072
|
-
React__default["default"].createElement("img", { src: index$
|
|
977
|
+
React__default["default"].createElement("img", { src: index$1.CommonGAssets.getAssetPath('chevronRightActive.svg'), style: {
|
|
1073
978
|
width: '20px',
|
|
1074
979
|
height: '20px',
|
|
1075
980
|
marginLeft: 'auto',
|
|
@@ -1077,7 +982,7 @@ const Item$1 = ({ item, index: index$1 = 0 }) => {
|
|
|
1077
982
|
};
|
|
1078
983
|
|
|
1079
984
|
const EcomSpotlights = ({ helpfulUrls = [], }) => {
|
|
1080
|
-
const { t } = index$
|
|
985
|
+
const { t } = index$2.useTranslations();
|
|
1081
986
|
// const { siteType } = useContext(NavigationContext)
|
|
1082
987
|
if (!helpfulUrls.length)
|
|
1083
988
|
return null;
|
|
@@ -1223,8 +1128,8 @@ const StyledContentWrapper$1 = styled__default["default"].div `
|
|
|
1223
1128
|
`;
|
|
1224
1129
|
|
|
1225
1130
|
const Item = ({ item, index = 0 }) => {
|
|
1226
|
-
const { t } = index$
|
|
1227
|
-
const { configs: { statics }, } = React.useContext(NavigationContext);
|
|
1131
|
+
const { t } = index$2.useTranslations();
|
|
1132
|
+
const { configs: { statics }, } = React.useContext(navigationProfileButton.NavigationContext);
|
|
1228
1133
|
if (!item)
|
|
1229
1134
|
return null;
|
|
1230
1135
|
const link = item.link
|
|
@@ -1234,7 +1139,7 @@ const Item = ({ item, index = 0 }) => {
|
|
|
1234
1139
|
: undefined;
|
|
1235
1140
|
return (React__default["default"].createElement(StyledItem$1, { href: link, "data-event-category": "Hamburger Navigation", "data-event-action": `Engage Click ${index + 1}`, "data-event-label": link },
|
|
1236
1141
|
item.isMobileAppTool && React__default["default"].createElement(Phone, { size: 20, className: "phone-badge" }),
|
|
1237
|
-
React__default["default"].createElement("img", { src: index$
|
|
1142
|
+
React__default["default"].createElement("img", { src: index$1.CommonGAssets.getAssetPath('navToolCardBg.svg'), alt: "", loading: "lazy", className: "bg-svg" }),
|
|
1238
1143
|
React__default["default"].createElement(StyledContentWrapper$1, null,
|
|
1239
1144
|
React__default["default"].createElement(StyledTitle$1, null, item.title),
|
|
1240
1145
|
React__default["default"].createElement(StyledDes$1, null, item.subtitle),
|
|
@@ -1455,8 +1360,8 @@ const StyledWrapName = styled__default["default"].div `
|
|
|
1455
1360
|
`;
|
|
1456
1361
|
|
|
1457
1362
|
const ItemMarryBaby = ({ item, index = 0, color }) => {
|
|
1458
|
-
const { t } = index$
|
|
1459
|
-
const { configs: { statics }, } = React.useContext(NavigationContext);
|
|
1363
|
+
const { t } = index$2.useTranslations();
|
|
1364
|
+
const { configs: { statics }, } = React.useContext(navigationProfileButton.NavigationContext);
|
|
1460
1365
|
if (!item)
|
|
1461
1366
|
return null;
|
|
1462
1367
|
const link = item.link
|
|
@@ -1472,7 +1377,7 @@ const ItemMarryBaby = ({ item, index = 0, color }) => {
|
|
|
1472
1377
|
React__default["default"].createElement(StyledDes, null, item.subtitle)),
|
|
1473
1378
|
React__default["default"].createElement(StyledBtnView, null,
|
|
1474
1379
|
React__default["default"].createElement("div", { className: "mobile-only" }, t('home.seeMore')),
|
|
1475
|
-
React__default["default"].createElement("img", { src: index$
|
|
1380
|
+
React__default["default"].createElement("img", { src: index$1.CommonGAssets.getAssetPath('arrowRightGray.svg'), style: {
|
|
1476
1381
|
width: '12px',
|
|
1477
1382
|
height: '12px',
|
|
1478
1383
|
marginTop: '2px',
|
|
@@ -1481,7 +1386,7 @@ const ItemMarryBaby = ({ item, index = 0, color }) => {
|
|
|
1481
1386
|
return (React__default["default"].createElement(StyledItem, { href: link, "data-event-category": "Hamburger Navigation", "data-event-action": `Engage Click ${index + 1}`, "data-event-label": link, "data-color": color },
|
|
1482
1387
|
React__default["default"].createElement("svg", { className: "bg-svg", width: "74", height: "121", viewBox: "0 0 74 121", fill: "none" },
|
|
1483
1388
|
React__default["default"].createElement("path", { d: "M58.5713 53.428C40.6466 70.0213 12.9929 71.0875 -7.00506 84.9856C-24.9277 97.4005 -38.3893 120.472 -60.213 120.346C-73.3615 120.271 -84.9289 110.925 -91.9303 99.8138C-101.443 84.7327 -103.994 64.0482 -93.916 49.3276C-81.8133 31.6505 -56.6933 28.1101 -41.7246 12.7895C-35.4351 6.35117 -31.2212 -1.90115 -24.8564 -8.25051C-7.17639 -25.9054 34.9604 -29.7543 56.852 -16.9562C80.9056 -2.89888 77.046 36.3304 58.5713 53.428Z", strokeWidth: "0" })),
|
|
1484
|
-
React__default["default"].createElement("img", { src: index$
|
|
1389
|
+
React__default["default"].createElement("img", { src: index$1.CommonGAssets.getAssetPath('navMBCardDotBg.svg'), className: "dot-svg", loading: "lazy", alt: "" }),
|
|
1485
1390
|
React__default["default"].createElement(StyledContentWrapper, null,
|
|
1486
1391
|
React__default["default"].createElement("div", { className: "mobile-only" }, renderIcon()),
|
|
1487
1392
|
React__default["default"].createElement("div", { className: "desktop-only" }, renderName())),
|
|
@@ -1490,12 +1395,12 @@ const ItemMarryBaby = ({ item, index = 0, color }) => {
|
|
|
1490
1395
|
};
|
|
1491
1396
|
|
|
1492
1397
|
const ToolSpotlights = ({ hrefViewMore, spotlightHealthTools = [] }) => {
|
|
1493
|
-
const { t } = index$
|
|
1398
|
+
const { t } = index$2.useTranslations();
|
|
1494
1399
|
const marryBabyCardColor = ['pink', 'orange', 'green'];
|
|
1495
|
-
const { siteType } = React.useContext(NavigationContext);
|
|
1400
|
+
const { siteType } = React.useContext(navigationProfileButton.NavigationContext);
|
|
1496
1401
|
return (React__default["default"].createElement(Spotlights, { title: t('home.navigator.menu.spotlightTools') },
|
|
1497
1402
|
spotlightHealthTools.length !== 0 && (React__default["default"].createElement(StyledContainerItems$1, null, spotlightHealthTools === null || spotlightHealthTools === void 0 ? void 0 : spotlightHealthTools.slice(0, 3).map((item, index) => siteType === 'marryBaby' ? (React__default["default"].createElement(ItemMarryBaby, { key: index, index: index, item: item, color: marryBabyCardColor[index] })) : (React__default["default"].createElement(Item, { key: index, index: index, item: item }))))),
|
|
1498
|
-
spotlightHealthTools.length === 0 && (React__default["default"].createElement(SpotlightNoData, { title: t('home.navigator.menu.healthTools.noDatas.title'), description: t('home.navigator.menu.healthTools.noDatas.description'), link: hrefViewMore, cta: t('home.navigator.menu.healthTools.noDatas.cta'), icon: index$
|
|
1403
|
+
spotlightHealthTools.length === 0 && (React__default["default"].createElement(SpotlightNoData, { title: t('home.navigator.menu.healthTools.noDatas.title'), description: t('home.navigator.menu.healthTools.noDatas.description'), link: hrefViewMore, cta: t('home.navigator.menu.healthTools.noDatas.cta'), icon: index$1.CommonGAssets.getAssetPath('community.svg') }))));
|
|
1499
1404
|
};
|
|
1500
1405
|
|
|
1501
1406
|
const StyledContainerItems = styled__default["default"].div `
|
|
@@ -1510,22 +1415,22 @@ const StyledContainerItems = styled__default["default"].div `
|
|
|
1510
1415
|
`;
|
|
1511
1416
|
|
|
1512
1417
|
const VideoSpotlights = ({ spotlightsList = [], layout = 'default', }) => {
|
|
1513
|
-
const { t } = index$
|
|
1514
|
-
const { configs: { statics }, } = React.useContext(NavigationContext);
|
|
1515
|
-
return (React__default["default"].createElement(Spotlights, { title: t('home.navigator.menu.lastestVideos') }, spotlightsList.length !== 0 ? (React__default["default"].createElement(StyledContainerItems, null, spotlightsList === null || spotlightsList === void 0 ? void 0 : spotlightsList.slice(0, 4).map((video, index) => (React__default["default"].createElement(index$
|
|
1418
|
+
const { t } = index$2.useTranslations();
|
|
1419
|
+
const { configs: { statics }, } = React.useContext(navigationProfileButton.NavigationContext);
|
|
1420
|
+
return (React__default["default"].createElement(Spotlights, { title: t('home.navigator.menu.lastestVideos') }, spotlightsList.length !== 0 ? (React__default["default"].createElement(StyledContainerItems, null, spotlightsList === null || spotlightsList === void 0 ? void 0 : spotlightsList.slice(0, 4).map((video, index) => (React__default["default"].createElement(index$5.VideoItem, { key: index, data: Object.assign(Object.assign({}, video), { type: index$8.VideoType.SHORTS }), layout: layout === 'default' ? 'overlay' : 'horizon', redirectToLandingPage: true, dataEventCategory: "Hamburger Navigation", dataEventAction: `Video Click ${index + 1}` }))))) : (React__default["default"].createElement(SpotlightNoData, { title: t('home.navigator.menu.category.noDatas.title'), description: t('home.navigator.menu.category.noDatas.description'), link: `${statics.VIDEO_URL_FE}/`, cta: t('home.navigator.menu.category.noDatas.cta'), icon: index$1.CommonGAssets.getAssetPath('Spotlight.svg') }))));
|
|
1516
1421
|
};
|
|
1517
1422
|
|
|
1518
1423
|
const MenuServiceList = ({ closePopup, menuItems = [], projectType, isHomepage = false, }) => {
|
|
1519
1424
|
var _a, _b;
|
|
1520
|
-
const { siteType, ssrMenuContent: { categories, healthTools, care, together, ecom, videos }, activeMenuService, configs: { statics }, locale, } = React.useContext(NavigationContext);
|
|
1521
|
-
const { t } = index$
|
|
1522
|
-
return (React__default["default"].createElement(StyledMasterMenuContainer, { id:
|
|
1425
|
+
const { siteType, ssrMenuContent: { categories, healthTools, care, together, ecom, videos }, activeMenuService, configs: { statics }, locale, customClasses, } = React.useContext(navigationProfileButton.NavigationContext);
|
|
1426
|
+
const { t } = index$2.useTranslations();
|
|
1427
|
+
return (React__default["default"].createElement(StyledMasterMenuContainer, { className: customClasses.categoriesMenu, id: "categories-menu" },
|
|
1523
1428
|
!isHomepage && (React__default["default"].createElement(StyleWrapperSearch, null,
|
|
1524
1429
|
React__default["default"].createElement(NavigtionSearch, { siteType: siteType, projectType: projectType, isMobile: false, isRedirectSearchPage: true }))),
|
|
1525
1430
|
React__default["default"].createElement(StyledWrapper, null,
|
|
1526
1431
|
React__default["default"].createElement(Categories, { UrlFE: statics.HOME_PAGE_URL, titleBtnViewMore: t('home.navigator.menuItem.allCategories'), menuItems: menuItems, headingTitle: t('home.navigator.menuItem.healthCategories'), onClosePopup: closePopup, activeItem: activeMenuService }),
|
|
1527
1432
|
activeMenuService === 'categories' && (React__default["default"].createElement(CategorySpotlights, { spotlightsList: (categories === null || categories === void 0 ? void 0 : categories.spotlights) || [], hrefViewMore: `${statics.HOME_PAGE_URL}${locale === 'tl-PH' ? '/fil' : ''}/spotlight/` })),
|
|
1528
|
-
activeMenuService === 'tools' && (React__default["default"].createElement(ToolSpotlights, { spotlightHealthTools: healthTools === null || healthTools === void 0 ? void 0 : healthTools.spotlights, hrefViewMore: `${statics.HOME_PAGE_URL}${locale === 'tl-PH' ? '/fil' : ''}${((_a = index$
|
|
1433
|
+
activeMenuService === 'tools' && (React__default["default"].createElement(ToolSpotlights, { spotlightHealthTools: healthTools === null || healthTools === void 0 ? void 0 : healthTools.spotlights, hrefViewMore: `${statics.HOME_PAGE_URL}${locale === 'tl-PH' ? '/fil' : ''}${((_a = index$9.STATIC_PAGES[locale]) === null || _a === void 0 ? void 0 : _a.HEALTH_TOOLS) || ''}` })),
|
|
1529
1434
|
activeMenuService === 'care' && (React__default["default"].createElement(CareSpotlights, { spotlights: care === null || care === void 0 ? void 0 : care.spotlights, hrefViewMore: `${statics.CARE_URL_FE}/${(_b = constants$1.LOCALIZED_SLUGS[locale]) === null || _b === void 0 ? void 0 : _b.SPECIALTIES}` })),
|
|
1530
1435
|
activeMenuService === 'together' && (React__default["default"].createElement(CommunitySpotlights, { spotlights: together === null || together === void 0 ? void 0 : together.spotlights })),
|
|
1531
1436
|
activeMenuService === 'ecom' && (React__default["default"].createElement(EcomSpotlights, { helpfulUrls: ecom === null || ecom === void 0 ? void 0 : ecom.helpfulUrls })),
|
|
@@ -1533,7 +1438,7 @@ const MenuServiceList = ({ closePopup, menuItems = [], projectType, isHomepage =
|
|
|
1533
1438
|
};
|
|
1534
1439
|
|
|
1535
1440
|
const HamburgerMenu = ({ menuItems, isHomepage, projectType }) => {
|
|
1536
|
-
const { siteType } = React.useContext(NavigationContext);
|
|
1441
|
+
const { siteType } = React.useContext(navigationProfileButton.NavigationContext);
|
|
1537
1442
|
const { containerRef, onContainerFocus, onContainerBlur, onButtonMouseDown, onClose, } = navigationProfileButton.useCSSFocusPopupHelper();
|
|
1538
1443
|
return (React__default["default"].createElement(DisplayWrapper, { mediaQueryKey: "mbDown" },
|
|
1539
1444
|
React__default["default"].createElement("header", { className: styles$2.menuContainer },
|
|
@@ -1802,10 +1707,10 @@ const StyleInput = styled__default["default"](index$b.Input) `
|
|
|
1802
1707
|
`;
|
|
1803
1708
|
|
|
1804
1709
|
const SearchInput = ({ id, isMobile = false, isHomepage = false, projectType, isRedirectSearchPage = false, }) => {
|
|
1805
|
-
const { locale, configs: { statics }, siteType, } = React.useContext(NavigationContext);
|
|
1710
|
+
const { locale, configs: { statics }, siteType, } = React.useContext(navigationProfileButton.NavigationContext);
|
|
1806
1711
|
const [keyword, setKeyword] = React.useState('');
|
|
1807
1712
|
const [eventCategoryTracking, setEventCategoryTracking] = React.useState('Search From Another Page');
|
|
1808
|
-
const { t } = index$
|
|
1713
|
+
const { t } = index$2.useTranslations();
|
|
1809
1714
|
const goToSearchPage = (searchValue = '') => {
|
|
1810
1715
|
let sourceParam = '';
|
|
1811
1716
|
if (projectType === 'together') {
|
|
@@ -1848,8 +1753,8 @@ const SearchInput = ({ id, isMobile = false, isHomepage = false, projectType, is
|
|
|
1848
1753
|
React__default["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.3097 9.06111C3.3097 5.88483 5.88458 3.30994 9.06087 3.30994C12.2372 3.30994 14.812 5.88483 14.812 9.06111C14.812 12.2374 12.2372 14.8123 9.06087 14.8123C5.88458 14.8123 3.3097 12.2374 3.3097 9.06111ZM9.06087 1.66675C4.97707 1.66675 1.6665 4.97732 1.6665 9.06111C1.6665 13.1449 4.97707 16.4555 9.06087 16.4555C10.8067 16.4555 12.4112 15.8505 13.6761 14.8387L16.9305 18.0931C17.2514 18.4139 17.7716 18.4139 18.0924 18.0931C18.4133 17.7722 18.4133 17.252 18.0924 16.9312L14.8381 13.6768C15.8501 12.4118 16.4552 10.8071 16.4552 9.06111C16.4552 4.97732 13.1447 1.66675 9.06087 1.66675Z", fill: "#8C8C8C" })))) : (React__default["default"].createElement(StyleInput, { className: "fake-search-input", name: 'search-input-menu-service' + id, size: "md", "data-event-category": eventCategoryTracking, "data-event-action": "Search", "data-event-label": keyword, placeholder: siteType === 'marryBaby'
|
|
1849
1754
|
? t('navigation.search.input.placeholder')
|
|
1850
1755
|
: t('home.search', {
|
|
1851
|
-
site: index$
|
|
1852
|
-
? index$
|
|
1756
|
+
site: index$9.LOCALE_SPECS[locale || 'en-PH']
|
|
1757
|
+
? index$9.LOCALE_SPECS[locale || 'en-PH'].SITE_NAME
|
|
1853
1758
|
: '',
|
|
1854
1759
|
}), onChange: setKeyword, value: keyword, onKeyDown: (e) => e.key === 'Enter' &&
|
|
1855
1760
|
goToSearchPage(e.target.value), type: "search", onFocus: (e) => {
|
|
@@ -2030,7 +1935,7 @@ const formatVideoItem = (data) => {
|
|
|
2030
1935
|
videoId: data.video_id || '',
|
|
2031
1936
|
url: data.video_url || '',
|
|
2032
1937
|
title: data.video_title || '',
|
|
2033
|
-
type: data.type || index$
|
|
1938
|
+
type: data.type || index$8.VideoType.VIDEO,
|
|
2034
1939
|
totalView: data.total_view || 0,
|
|
2035
1940
|
description: data.description || '',
|
|
2036
1941
|
createTime: data.create_time || '',
|
|
@@ -2061,8 +1966,8 @@ const PopupWrapper = ({ onClosePopup, isDisplay, children, isNavMenu, hideCloseB
|
|
|
2061
1966
|
|
|
2062
1967
|
const MenuCareList = ({ careSpecialties = [], isOpen, onClose, spotlights = [], }) => {
|
|
2063
1968
|
var _a;
|
|
2064
|
-
const { t } = index$
|
|
2065
|
-
const { locale, configs: { statics }, } = React.useContext(NavigationContext);
|
|
1969
|
+
const { t } = index$2.useTranslations();
|
|
1970
|
+
const { locale, configs: { statics }, } = React.useContext(navigationProfileButton.NavigationContext);
|
|
2066
1971
|
return (React__default["default"].createElement(PopupWrapper, { onClosePopup: onClose, isDisplay: isOpen, isNavMenu: true },
|
|
2067
1972
|
React__default["default"].createElement(Categories, { headingTitle: t('home.navigator.menuItem.specialties'), hrefViewMore: `${statics.CARE_URL_FE}/`, UrlFE: statics.CARE_URL_FE, onClosePopup: onClose, titleBtnViewMore: t('home.navigator.menuItem.allSpecialties'), menuItems: (careSpecialties === null || careSpecialties === void 0 ? void 0 : careSpecialties.map((specialty) => {
|
|
2068
1973
|
if (!specialty)
|
|
@@ -2081,8 +1986,8 @@ const MenuCareList = ({ careSpecialties = [], isOpen, onClose, spotlights = [],
|
|
|
2081
1986
|
};
|
|
2082
1987
|
|
|
2083
1988
|
const MenuCategoriesList = ({ categories = [], spotlightsList = [], onClose, isOpen, }) => {
|
|
2084
|
-
const { t } = index$
|
|
2085
|
-
const { locale, configs: { statics }, } = React.useContext(NavigationContext);
|
|
1989
|
+
const { t } = index$2.useTranslations();
|
|
1990
|
+
const { locale, configs: { statics }, } = React.useContext(navigationProfileButton.NavigationContext);
|
|
2086
1991
|
return (React__default["default"].createElement(PopupWrapper, { onClosePopup: onClose, isDisplay: isOpen, isNavMenu: true },
|
|
2087
1992
|
React__default["default"].createElement(Categories, { hrefViewMore: `${statics.HOME_PAGE_URL}${locale === 'tl-PH' ? '/fil' : ''}/categories/`, UrlFE: statics.HOME_PAGE_URL, onClosePopup: onClose, titleBtnViewMore: t('home.navigator.menuItem.allCategories'), menuItems: (categories === null || categories === void 0 ? void 0 : categories.map((cat) => {
|
|
2088
1993
|
if (!cat)
|
|
@@ -2097,8 +2002,8 @@ const MenuCategoriesList = ({ categories = [], spotlightsList = [], onClose, isO
|
|
|
2097
2002
|
};
|
|
2098
2003
|
|
|
2099
2004
|
const MenuCommunitiesList = ({ communities = [], onClose, isOpen, spotlights = [], }) => {
|
|
2100
|
-
const { t } = index$
|
|
2101
|
-
const { configs: { statics }, } = React.useContext(NavigationContext);
|
|
2005
|
+
const { t } = index$2.useTranslations();
|
|
2006
|
+
const { configs: { statics }, } = React.useContext(navigationProfileButton.NavigationContext);
|
|
2102
2007
|
return (React__default["default"].createElement(PopupWrapper, { onClosePopup: onClose, isDisplay: isOpen, isNavMenu: true },
|
|
2103
2008
|
React__default["default"].createElement(Categories, { hrefViewMore: normalizeLink.normalizeLink(statics.TOGETHER_URL_FE), UrlFE: normalizeLink.normalizeLinkSlash(statics.TOGETHER_URL_FE), onClosePopup: onClose, titleBtnViewMore: t('home.navigator.menuItem.allCommunities'), menuItems: (communities === null || communities === void 0 ? void 0 : communities.map((community) => {
|
|
2104
2009
|
if (!community)
|
|
@@ -2114,9 +2019,9 @@ const MenuCommunitiesList = ({ communities = [], onClose, isOpen, spotlights = [
|
|
|
2114
2019
|
|
|
2115
2020
|
const MenuHealthToolsList = ({ locale, onClose, isOpen, spotlightHealthTools = [], healthTools = [], }) => {
|
|
2116
2021
|
var _a;
|
|
2117
|
-
const { t } = index$
|
|
2118
|
-
const { configs: { statics }, } = React.useContext(NavigationContext);
|
|
2119
|
-
const hrefViewMore = `${statics.HOME_PAGE_URL}${locale === 'tl-PH' ? '/fil' : ''}${((_a = index$
|
|
2022
|
+
const { t } = index$2.useTranslations();
|
|
2023
|
+
const { configs: { statics }, } = React.useContext(navigationProfileButton.NavigationContext);
|
|
2024
|
+
const hrefViewMore = `${statics.HOME_PAGE_URL}${locale === 'tl-PH' ? '/fil' : ''}${((_a = index$9.STATIC_PAGES[locale]) === null || _a === void 0 ? void 0 : _a.HEALTH_TOOLS) || ''}`;
|
|
2120
2025
|
return (React__default["default"].createElement(PopupWrapper, { onClosePopup: onClose, isDisplay: isOpen, isNavMenu: true },
|
|
2121
2026
|
React__default["default"].createElement(Categories, { hrefViewMore: hrefViewMore, UrlFE: statics.HOME_PAGE_URL, onClosePopup: onClose, headingTitle: t('home.navigator.menuItem.healthToolsList'), titleBtnViewMore: t('home.navigator.menuItem.allHealthTools'), menuItems: healthTools.map((t) => ({
|
|
2122
2027
|
name: t.title,
|
|
@@ -2132,18 +2037,18 @@ const MenuHealthToolsList = ({ locale, onClose, isOpen, spotlightHealthTools = [
|
|
|
2132
2037
|
};
|
|
2133
2038
|
|
|
2134
2039
|
const MenuVideoList = ({ spotlightsList = [], onClose, isOpen }) => {
|
|
2135
|
-
const { t } = index$
|
|
2136
|
-
const { locale, configs: { statics }, } = React.useContext(NavigationContext);
|
|
2040
|
+
const { t } = index$2.useTranslations();
|
|
2041
|
+
const { locale, configs: { statics }, } = React.useContext(navigationProfileButton.NavigationContext);
|
|
2137
2042
|
const listing = React.useMemo(() => [
|
|
2138
2043
|
{
|
|
2139
2044
|
name: t('home.navigator.menu.videos'),
|
|
2140
2045
|
link: `${statics.VIDEO_URL_FE}/video/`,
|
|
2141
|
-
thumbnail: index$
|
|
2046
|
+
thumbnail: index$1.CommonGAssets.getAssetPath('nav-icons/video.svg'),
|
|
2142
2047
|
},
|
|
2143
2048
|
{
|
|
2144
2049
|
name: t('home.navigator.menu.shorts'),
|
|
2145
2050
|
link: `${statics.VIDEO_URL_FE}/short/`,
|
|
2146
|
-
thumbnail: index$
|
|
2051
|
+
thumbnail: index$1.CommonGAssets.getAssetPath('nav-icons/short.svg'),
|
|
2147
2052
|
},
|
|
2148
2053
|
// {
|
|
2149
2054
|
// name: t('home.navigator.menu.podcasts'),
|
|
@@ -2259,7 +2164,7 @@ const InitialDoctor = () => (React__default["default"].createElement("svg", { xm
|
|
|
2259
2164
|
React__default["default"].createElement("path", { fill: "#FF6F4D", d: "M389 358h-11a17 17 0 0 0-12 5 17 17 0 0 0-5 12v3l-1 3a4 4 0 0 1-3 1h-3a17 17 0 0 0-17 17v12a17 17 0 0 0 17 17h3a4 4 0 0 1 4 3v3a17 17 0 0 0 17 17h11c5 0 9-2 12-5s5-7 5-12v-3a4 4 0 0 1 4-3h3c4 0 9-2 12-5s5-8 5-12v-12c0-5-2-9-5-12a17 17 0 0 0-12-5h-3a4 4 0 0 1-4-4v-3a17 17 0 0 0-5-12 17 17 0 0 0-12-5" })))));
|
|
2260
2165
|
|
|
2261
2166
|
const MenuViewMore = ({ menuItems = [], isOpen, onClose }) => {
|
|
2262
|
-
const { locale, configs: { enableAppIntroPage }, } = React.useContext(NavigationContext);
|
|
2167
|
+
const { locale, configs: { enableAppIntroPage }, } = React.useContext(navigationProfileButton.NavigationContext);
|
|
2263
2168
|
const ecomNavItem = menuItems.find((m) => m.id === 'ecom');
|
|
2264
2169
|
const careNavItem = menuItems.find((m) => m.id === 'care');
|
|
2265
2170
|
return (React__default["default"].createElement(PopupWrapper, { onClosePopup: onClose, isDisplay: isOpen, isNavMenu: true, hideCloseBtn: true, stylesContainer: {
|
|
@@ -2273,10 +2178,10 @@ const MenuViewMore = ({ menuItems = [], isOpen, onClose }) => {
|
|
|
2273
2178
|
React__default["default"].createElement(StyleButton, { variant: "tertiary", leftIcon: React__default["default"].createElement(InitialDoctor, null) }, careNavItem.name))),
|
|
2274
2179
|
enableAppIntroPage && (React__default["default"].createElement("a", { tabIndex: 0, href: "https://applink.hellobacsi.com/o9Q88rQh7Mb", "data-event-category": "Hamburger Navigation", "data-event-action": "Click", "data-event-label": `https://applink.hellobacsi.com/o9Q88rQh7Mb` },
|
|
2275
2180
|
React__default["default"].createElement(StyleButton, { variant: "tertiary", leftIcon: React__default["default"].createElement(StyleWrapperIcon, null,
|
|
2276
|
-
React__default["default"].createElement(core$1.Logo, { width: 16, height: 15 })) }, `${index$
|
|
2181
|
+
React__default["default"].createElement(core$1.Logo, { width: 16, height: 15 })) }, `${index$9.LOCALE_SPECS[locale || 'en-PH'].SITE_NAME_FORMATTED} App`)))));
|
|
2277
2182
|
};
|
|
2278
2183
|
|
|
2279
|
-
const NavigationBar = ({ onTopBarAppears, languageMenu, menuItems, logoComponent, subHead, projectType, }) => {
|
|
2184
|
+
const NavigationBar = ({ onTopBarAppears, languageMenu, menuItems, logoComponent, subHead, projectType, customClasses, }) => {
|
|
2280
2185
|
var _a, _b;
|
|
2281
2186
|
const { siteType, isMobile = false, locale, sitewideBanner, sitewideBannerShown = true, sponsorComponent, isHomepage = false,
|
|
2282
2187
|
// onBookingClick,
|
|
@@ -2293,7 +2198,7 @@ const NavigationBar = ({ onTopBarAppears, languageMenu, menuItems, logoComponent
|
|
|
2293
2198
|
// enableProfileEcom,
|
|
2294
2199
|
}, userState: { userInfo }, onLogout,
|
|
2295
2200
|
// userProfileRouterPush,
|
|
2296
|
-
isUserLoading, } = React.useContext(NavigationContext);
|
|
2201
|
+
isUserLoading, slot, } = React.useContext(navigationProfileButton.NavigationContext);
|
|
2297
2202
|
const { triggerLogin } = store.useSSOV2Store();
|
|
2298
2203
|
const { SSO_URL, HOME_PAGE_URL } = statics;
|
|
2299
2204
|
const isSponsored = !!sponsorComponent;
|
|
@@ -2310,7 +2215,7 @@ const NavigationBar = ({ onTopBarAppears, languageMenu, menuItems, logoComponent
|
|
|
2310
2215
|
: currentLocation;
|
|
2311
2216
|
};
|
|
2312
2217
|
const logoType = siteType === 'helloSites'
|
|
2313
|
-
? (_a = index$
|
|
2218
|
+
? (_a = index$9.LOCALE_SPECS[locale]) === null || _a === void 0 ? void 0 : _a.LOGO_TYPE
|
|
2314
2219
|
: siteType;
|
|
2315
2220
|
const isBrowser = typeof window !== 'undefined';
|
|
2316
2221
|
const scrolling = React.useCallback(throttle__default["default"](() => {
|
|
@@ -2349,10 +2254,10 @@ const NavigationBar = ({ onTopBarAppears, languageMenu, menuItems, logoComponent
|
|
|
2349
2254
|
scrolling();
|
|
2350
2255
|
}, [isMobile]);
|
|
2351
2256
|
const isShowingSiteWideBanner = sitewideBannerShown && !!sitewideBanner;
|
|
2352
|
-
return (React__default["default"].createElement(StyledHeaderWrapper, { "data-site-type": siteType, "data-sponsored": isSponsored, "data-sitewide-banner-shown": isShowingSiteWideBanner, "data-header-type": "home", "data-collapsed": isCollapsed, "data-is-displayed": true, id: "site-header", ref: headerRef },
|
|
2257
|
+
return (React__default["default"].createElement(StyledHeaderWrapper, { "data-site-type": siteType, "data-sponsored": isSponsored, "data-sitewide-banner-shown": isShowingSiteWideBanner, "data-header-type": "home", "data-collapsed": isCollapsed, "data-is-displayed": true, id: "site-header", ref: headerRef, className: customClasses.wrapper },
|
|
2353
2258
|
sitewideBanner,
|
|
2354
|
-
React__default["default"].createElement(StyledHeader, { "data-site-type": siteType },
|
|
2355
|
-
React__default["default"].createElement(StyledLeftGroup, { "data-site-type": siteType },
|
|
2259
|
+
React__default["default"].createElement(StyledHeader, { className: customClasses.header, "data-site-type": siteType },
|
|
2260
|
+
React__default["default"].createElement(StyledLeftGroup, { className: customClasses.leftGroup, "data-site-type": siteType },
|
|
2356
2261
|
isMobile && (React__default["default"].createElement(HamburgerMenu, { menuItems: menuItems.filter((m) => !!m.link), isHomepage: isHomepage, projectType: projectType })),
|
|
2357
2262
|
logoComponent || (React__default["default"].createElement("a", { style: {
|
|
2358
2263
|
flexShrink: 0,
|
|
@@ -2360,19 +2265,20 @@ const NavigationBar = ({ onTopBarAppears, languageMenu, menuItems, logoComponent
|
|
|
2360
2265
|
React__default["default"].createElement("div", null,
|
|
2361
2266
|
React__default["default"].createElement(index$d.Logo, { style: {
|
|
2362
2267
|
display: 'flex',
|
|
2363
|
-
}, type: logoType, badge: locale === 'id-ID' && (React__default["default"].createElement("img", { src: index$
|
|
2364
|
-
!isMobile && (React__default["default"].createElement(React__default["default"].Fragment, null, siteType === 'marryBaby' ? (React__default["default"].createElement(NavigationMenu, { menuItems: menuItems, originalMenuItems: menuItems })) : (enableSearchBar && (React__default["default"].createElement(NavigtionSearch, { siteType: siteType, projectType: projectType, isMobile: isMobile })))))),
|
|
2365
|
-
React__default["default"].createElement(StyledRightGroup, { "data-site-type": siteType },
|
|
2366
|
-
!isMobile && siteType !== 'marryBaby' && (React__default["default"].createElement(NavigationMenu, { menuItems: menuItems.filter((m) => m.id !== 'ecom' && m.id !== 'care'), originalMenuItems: menuItems })),
|
|
2268
|
+
}, type: logoType, badge: locale === 'id-ID' && (React__default["default"].createElement("img", { src: index$1.CommonGAssets.getAssetPath('sehat-badge.png'), width: "56", height: "23", loading: "lazy" })), dateForSeasonal: new Date(), locale: locale, key: typeof window !== 'undefined' ? 'client' : 'server' })))),
|
|
2269
|
+
!isMobile && (React__default["default"].createElement(React__default["default"].Fragment, null, siteType === 'marryBaby' ? (React__default["default"].createElement(NavigationMenu, { menuItems: menuItems, originalMenuItems: menuItems, className: customClasses.navMenu })) : (enableSearchBar && (React__default["default"].createElement(NavigtionSearch, { siteType: siteType, projectType: projectType, isMobile: isMobile })))))),
|
|
2270
|
+
React__default["default"].createElement(StyledRightGroup, { className: customClasses.rightGroup, "data-site-type": siteType },
|
|
2271
|
+
!isMobile && siteType !== 'marryBaby' && (React__default["default"].createElement(NavigationMenu, { menuItems: menuItems.filter((m) => m.id !== 'ecom' && m.id !== 'care'), originalMenuItems: menuItems, className: customClasses.navMenu })),
|
|
2367
2272
|
React__default["default"].createElement(StyledProfileNavGroup, null,
|
|
2368
2273
|
languageMenu,
|
|
2369
2274
|
enableNavChatbotAi && (React__default["default"].createElement(core.Box, { component: "a", href: `${normalizeLink.getCurrentBaseUrl(locale)}/ai-doctor`, "data-event-category": "Chatbot AI", "data-event-action": "Open", "data-event-label": "Hamburger Navigation", className: "ai-doctor-nav-item" },
|
|
2370
|
-
React__default["default"].createElement(StyleButtonAiChat, { variant: "tertiary", leftIcon: React__default["default"].createElement(other.ChatAi, { size: 18, color: "#2F8AF2" }), size: "md", className: "ai-doctor-btn" }, (_b = index$
|
|
2275
|
+
React__default["default"].createElement(StyleButtonAiChat, { variant: "tertiary", leftIcon: React__default["default"].createElement(other.ChatAi, { size: 18, color: "#2F8AF2" }), size: "md", className: "ai-doctor-btn" }, (_b = index$9.LOCALE_SPECS[locale]) === null || _b === void 0 ? void 0 :
|
|
2371
2276
|
_b.SITE_NAME,
|
|
2372
2277
|
" AI"))),
|
|
2278
|
+
slot,
|
|
2373
2279
|
React__default["default"].createElement(navigationProfileButton.NavigationProfileButton, { userInfo: userInfo, siteType: siteType, onLoginClick: onLoginClick || goToLogin,
|
|
2374
2280
|
// SSO_URL={normalizeLink(statics.SSO_URL)}
|
|
2375
|
-
currentUrl: currentUrl, onLogout: onLogout, isLoading: isUserLoading, locale: locale, enableAppIntroPage: enableAppIntroPage, isMobile: isMobile }),
|
|
2281
|
+
currentUrl: currentUrl, onLogout: onLogout, isLoading: isUserLoading, locale: locale, enableAppIntroPage: enableAppIntroPage, isMobile: isMobile, className: customClasses.profileBtn }),
|
|
2376
2282
|
cartNumber !== undefined && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
2377
2283
|
!isMobile && (React__default["default"].createElement("hr", { style: {
|
|
2378
2284
|
height: 20,
|
|
@@ -2396,9 +2302,9 @@ const NavigationBar = ({ onTopBarAppears, languageMenu, menuItems, logoComponent
|
|
|
2396
2302
|
};
|
|
2397
2303
|
const NavigtionSearch = ({ siteType, projectType, isMobile = false, isHomepage = false, isRedirectSearchPage = false, }) => (React__default["default"].createElement(DisplayWrapper, { mediaQueryKey: "mbUp", className: `${siteType === 'marryBaby' ? 'marry-baby' : ''} ${isHomepage ? 'block-show' : ''}` },
|
|
2398
2304
|
React__default["default"].createElement(SearchInput, { id: "desktop", projectType: projectType, isMobile: isMobile, isHomepage: isHomepage, isRedirectSearchPage: isRedirectSearchPage })));
|
|
2399
|
-
const NavigationMenu = ({ menuItems, originalMenuItems, }) => {
|
|
2400
|
-
const { siteType, locale, ssrMenuContent: { categories, healthTools, care, together, videos }, } = React.useContext(NavigationContext);
|
|
2401
|
-
return (React__default["default"].createElement(DisplayWrapper, { mediaQueryKey: "mbUp", style: { height: '100%' } },
|
|
2305
|
+
const NavigationMenu = ({ menuItems, originalMenuItems, className, }) => {
|
|
2306
|
+
const { siteType, locale, ssrMenuContent: { categories, healthTools, care, together, videos }, } = React.useContext(navigationProfileButton.NavigationContext);
|
|
2307
|
+
return (React__default["default"].createElement(DisplayWrapper, { className: className, mediaQueryKey: "mbUp", style: { height: '100%' } },
|
|
2402
2308
|
React__default["default"].createElement(StyledWrapMenuItems, { "data-site-type": siteType }, menuItems === null || menuItems === void 0 ? void 0 : menuItems.map((menuItem, index) => (React__default["default"].createElement(ItemMenu, { key: index, item: menuItem, menu: menuItem.popupType === 'categories' ? (React__default["default"].createElement(MenuCategoriesList, { categories: categories === null || categories === void 0 ? void 0 : categories.items, spotlightsList: categories === null || categories === void 0 ? void 0 : categories.spotlights })) : menuItem.popupType === 'tools' ? (React__default["default"].createElement(MenuHealthToolsList, { locale: locale, healthTools: healthTools === null || healthTools === void 0 ? void 0 : healthTools.items, spotlightHealthTools: healthTools === null || healthTools === void 0 ? void 0 : healthTools.spotlights })) : menuItem.popupType === 'together' ? (React__default["default"].createElement(MenuCommunitiesList, { communities: together === null || together === void 0 ? void 0 : together.items, spotlights: together === null || together === void 0 ? void 0 : together.spotlights })) : menuItem.popupType === 'care' ? (React__default["default"].createElement(MenuCareList, { careSpecialties: care === null || care === void 0 ? void 0 : care.items, spotlights: care === null || care === void 0 ? void 0 : care.spotlights })) : menuItem.popupType === 'video' ? (React__default["default"].createElement(MenuVideoList, { spotlightsList: videos === null || videos === void 0 ? void 0 : videos.spotlights })) : menuItem.popupType === 'other' ? (React__default["default"].createElement(MenuViewMore, { menuItems: originalMenuItems })) : null }))))));
|
|
2403
2309
|
};
|
|
2404
2310
|
|
|
@@ -2462,7 +2368,7 @@ const useHeaderHeight = ({ hasSponsoredBanners, isSponsored, isShowingSiteWideBa
|
|
|
2462
2368
|
};
|
|
2463
2369
|
|
|
2464
2370
|
const useInsider = () => {
|
|
2465
|
-
const { isFirstLogin, userState } = React.useContext(NavigationContext);
|
|
2371
|
+
const { isFirstLogin, userState } = React.useContext(navigationProfileButton.NavigationContext);
|
|
2466
2372
|
const { userInfo } = userState;
|
|
2467
2373
|
React.useEffect(() => {
|
|
2468
2374
|
if (userInfo === null || userInfo === void 0 ? void 0 : userInfo.id) {
|
|
@@ -2499,8 +2405,8 @@ const useInsider = () => {
|
|
|
2499
2405
|
};
|
|
2500
2406
|
|
|
2501
2407
|
const useNavServices = () => {
|
|
2502
|
-
const { t } = index$
|
|
2503
|
-
const { siteType, locale, configs: { enableNavDiscover, enableNavHealthTools, enableNavCare, enableNavTogether, enableNavEcom, enableNavVideo, enableAppIntroPage, statics, }, } = React.useContext(NavigationContext);
|
|
2408
|
+
const { t } = index$2.useTranslations();
|
|
2409
|
+
const { siteType, locale, configs: { enableNavDiscover, enableNavHealthTools, enableNavCare, enableNavTogether, enableNavEcom, enableNavVideo, enableAppIntroPage, statics, }, } = React.useContext(navigationProfileButton.NavigationContext);
|
|
2504
2410
|
const isMarryBaby = siteType === 'marryBaby';
|
|
2505
2411
|
const enableNavViewMore = enableAppIntroPage || enableNavCare || enableNavEcom;
|
|
2506
2412
|
const services = React.useMemo(() => {
|
|
@@ -2513,8 +2419,8 @@ const useNavServices = () => {
|
|
|
2513
2419
|
link: `${statics.HOME_PAGE_URL}${locale === 'tl-PH' ? '/fil' : ''}/categories/`,
|
|
2514
2420
|
niceName: '',
|
|
2515
2421
|
thumbnail: isMarryBaby
|
|
2516
|
-
? index$
|
|
2517
|
-
: index$
|
|
2422
|
+
? index$1.CommonGAssets.getAssetPath('categories-mb.svg')
|
|
2423
|
+
: index$1.CommonGAssets.getAssetPath('nav-icons/discover.svg'),
|
|
2518
2424
|
popupType: 'categories',
|
|
2519
2425
|
});
|
|
2520
2426
|
enableNavVideo &&
|
|
@@ -2523,17 +2429,17 @@ const useNavServices = () => {
|
|
|
2523
2429
|
id: 'video',
|
|
2524
2430
|
link: `${statics.HOME_PAGE_URL}${locale === 'tl-PH' ? '/fil' : ''}/videos/`,
|
|
2525
2431
|
niceName: '',
|
|
2526
|
-
thumbnail: index$
|
|
2432
|
+
thumbnail: index$1.CommonGAssets.getAssetPath('nav-icons/video.svg'),
|
|
2527
2433
|
popupType: 'video',
|
|
2528
2434
|
});
|
|
2529
2435
|
enableNavHealthTools &&
|
|
2530
2436
|
_services.push({
|
|
2531
2437
|
name: t('home.navigator.menuItem.healthTools'),
|
|
2532
2438
|
id: 'tools',
|
|
2533
|
-
link: `${statics.HOME_PAGE_URL}${locale === 'tl-PH' ? '/fil' : ''}${((_a = index$
|
|
2439
|
+
link: `${statics.HOME_PAGE_URL}${locale === 'tl-PH' ? '/fil' : ''}${((_a = index$9.STATIC_PAGES[locale]) === null || _a === void 0 ? void 0 : _a.HEALTH_TOOLS) || ''}`,
|
|
2534
2440
|
thumbnail: isMarryBaby
|
|
2535
|
-
? index$
|
|
2536
|
-
: index$
|
|
2441
|
+
? index$1.CommonGAssets.getAssetPath('healthtools-mb.svg')
|
|
2442
|
+
: index$1.CommonGAssets.getAssetPath('nav-icons/health-tools.svg'),
|
|
2537
2443
|
popupType: 'tools',
|
|
2538
2444
|
});
|
|
2539
2445
|
enableNavTogether &&
|
|
@@ -2542,8 +2448,8 @@ const useNavServices = () => {
|
|
|
2542
2448
|
id: 'together',
|
|
2543
2449
|
link: normalizeLink.normalizeLinkSlash(statics.TOGETHER_URL_FE + '/'),
|
|
2544
2450
|
thumbnail: isMarryBaby
|
|
2545
|
-
? index$
|
|
2546
|
-
: index$
|
|
2451
|
+
? index$1.CommonGAssets.getAssetPath('community-mb.svg')
|
|
2452
|
+
: index$1.CommonGAssets.getAssetPath('nav-icons/community.svg'),
|
|
2547
2453
|
popupType: 'together',
|
|
2548
2454
|
});
|
|
2549
2455
|
enableNavEcom &&
|
|
@@ -2551,7 +2457,7 @@ const useNavServices = () => {
|
|
|
2551
2457
|
name: t('home.navigator.menuItem.helloEcom'),
|
|
2552
2458
|
id: 'ecom',
|
|
2553
2459
|
link: normalizeLink.normalizeLinkSlash(statics.HOME_PAGE_URL + '/shop'),
|
|
2554
|
-
thumbnail: index$
|
|
2460
|
+
thumbnail: index$1.CommonGAssets.getAssetPath('nav-icons/shop.svg'),
|
|
2555
2461
|
popupType: null,
|
|
2556
2462
|
});
|
|
2557
2463
|
enableNavCare &&
|
|
@@ -2559,7 +2465,7 @@ const useNavServices = () => {
|
|
|
2559
2465
|
name: t('home.navigator.menuItem.helloCare'),
|
|
2560
2466
|
id: 'care',
|
|
2561
2467
|
link: normalizeLink.normalizeLinkSlash(statics.HOME_PAGE_URL + '/care'),
|
|
2562
|
-
thumbnail: index$
|
|
2468
|
+
thumbnail: index$1.CommonGAssets.getAssetPath('nav-icons/care.svg'),
|
|
2563
2469
|
popupType: locale === 'id-ID' ? 'care' : null,
|
|
2564
2470
|
});
|
|
2565
2471
|
enableNavViewMore &&
|
|
@@ -2608,7 +2514,7 @@ const StyledContainer = styled__default["default"].div `
|
|
|
2608
2514
|
|
|
2609
2515
|
const _NavigationV2 = (props) => {
|
|
2610
2516
|
var _a, _b;
|
|
2611
|
-
const { isMobile, locale, onTopBarAppears, languageOptions, sponsorComponent, sitewideBanner, sitewideBannerShown, className, logoComponent, subHead, projectType, } = props;
|
|
2517
|
+
const { isMobile, locale, onTopBarAppears, languageOptions, sponsorComponent, sitewideBanner, sitewideBannerShown, className, logoComponent, subHead, projectType, customClasses = {}, } = props;
|
|
2612
2518
|
const services = useNavServices();
|
|
2613
2519
|
useInsider();
|
|
2614
2520
|
const isShowingSiteWideBanner = sitewideBannerShown && !!sitewideBanner;
|
|
@@ -2626,11 +2532,11 @@ const _NavigationV2 = (props) => {
|
|
|
2626
2532
|
'--header-bottom': headerBottom + 'px',
|
|
2627
2533
|
}, className: className },
|
|
2628
2534
|
React__default["default"].createElement("section", { ref: headerRef },
|
|
2629
|
-
React__default["default"].createElement(NavigationBar, { menuItems: services, onTopBarAppears: onTopBarAppears, logoComponent: logoComponent, subHead: subHead, projectType: projectType, languageMenu: React__default["default"].createElement(index$
|
|
2535
|
+
React__default["default"].createElement(NavigationBar, { menuItems: services, onTopBarAppears: onTopBarAppears, logoComponent: logoComponent, subHead: subHead, projectType: projectType, languageMenu: React__default["default"].createElement(index$5.LanguageSwitcher, { languageOptions: languageOptions, locale: locale }), customClasses: customClasses }))));
|
|
2630
2536
|
};
|
|
2631
2537
|
const NavigationV2 = (props) => {
|
|
2632
2538
|
const propsWithDefaultValues = Object.assign({ siteType: 'helloSites', projectType: 'discover', locale: 'vi-VN', activeMenuService: 'categories', ssrMenuContent: {} }, props);
|
|
2633
|
-
return (React__default["default"].createElement(NavigationProvider, Object.assign({}, propsWithDefaultValues),
|
|
2539
|
+
return (React__default["default"].createElement(navigationProfileButton.NavigationProvider, Object.assign({}, propsWithDefaultValues),
|
|
2634
2540
|
React__default["default"].createElement(_NavigationV2, Object.assign({}, propsWithDefaultValues))));
|
|
2635
2541
|
};
|
|
2636
2542
|
const getNavMenuContent = (locale) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -2661,7 +2567,7 @@ const getNavMenuContent = (locale) => tslib_es6.__awaiter(void 0, void 0, void 0
|
|
|
2661
2567
|
};
|
|
2662
2568
|
}
|
|
2663
2569
|
catch (_1) { }
|
|
2664
|
-
if (isMarryBaby || index$
|
|
2570
|
+
if (isMarryBaby || index$9.TOGETHER_LOCALES.includes(locale)) {
|
|
2665
2571
|
try {
|
|
2666
2572
|
const [communities, spotlightPosts] = yield Promise.all([
|
|
2667
2573
|
fetch(normalizeLink.normalizeLinkSlash(`${normalizeLink.getTogetherApiDomain()}/api/v1/community?website_url=https://${constantsDomainLocales.domainLocales[locale]}`)).then((res) => res.json()),
|
|
@@ -2674,7 +2580,7 @@ const getNavMenuContent = (locale) => tslib_es6.__awaiter(void 0, void 0, void 0
|
|
|
2674
2580
|
}
|
|
2675
2581
|
catch (_2) { }
|
|
2676
2582
|
}
|
|
2677
|
-
if (index$
|
|
2583
|
+
if (index$9.CARE_LOCALES.includes(locale)) {
|
|
2678
2584
|
try {
|
|
2679
2585
|
const [specialties, hospitals] = yield Promise.all([
|
|
2680
2586
|
fetch(normalizeLink.normalizeLinkSlash(normalizeLink.getCareApiDomain() +
|