@hhgtech/hhg-components 1.29.349-beta-2 → 1.29.350
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{LastPeriod-089bebf1.js → LastPeriod-fa62c38f.js} +1 -1
- package/build/{MobileBottomNavigationIcon-12497f73.js → MobileBottomNavigationIcon-c9a7bab2.js} +3 -3
- package/build/{Spinner-445fd763.js → Spinner-eee4bad2.js} +1 -1
- package/build/{WhatsApp-fefb1d6f.js → WhatsApp-adce873a.js} +1 -1
- package/build/adapters.js +19 -19
- package/build/atoms.js +47 -47
- 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/atoms/icons/Play.d.ts +4 -0
- package/build/components/molecules/index.d.ts +2 -0
- package/build/components/molecules/videoItem/index.d.ts +4 -0
- package/build/components/molecules/videoItem/index.styles.d.ts +14 -0
- package/build/components/molecules/videoItem/shorts/index.d.ts +4 -0
- package/build/components/molecules/videoItem/shorts/index.styles.d.ts +21 -0
- package/build/components/molecules/videoItem/types.d.ts +13 -0
- package/build/components/molecules/videoItem/utils.d.ts +1 -0
- package/build/components/molecules/videoItem/video/index.d.ts +4 -0
- package/build/components/molecules/videoItem/video/index.styles.d.ts +22 -0
- package/build/components/molecules/videoPlayerModal/index.d.ts +9 -0
- package/build/components/navigationV2/components/molecules/menuVideoList/Item/index.d.ts +15 -0
- package/build/components/navigationV2/components/molecules/menuVideoList/Item/index.styled.d.ts +13 -0
- package/build/components/navigationV2/components/molecules/menuVideoList/index.d.ts +9 -0
- package/build/components/navigationV2/components/molecules/menuVideoList/index.styled.d.ts +5 -0
- package/build/components/navigationV2/components/molecules/menuVideoList/videoSpotlights.d.ts +8 -0
- package/build/components/navigationV2/components/molecules/navigationBar/index.styled.d.ts +0 -2
- package/build/components/navigationV2/hooks/useNavConfig.d.ts +2 -1
- package/build/components/navigationV2/index.d.ts +9 -0
- package/build/components/navigationV2/types.d.ts +2 -2
- package/build/components/navigationV2/utils.d.ts +2 -0
- package/build/components.js +97 -91
- package/build/{constants-ea411d36.js → constants-68bbb45a.js} +1 -1
- package/build/constants.js +5 -3
- package/build/constantsDomainLocales.js +1 -1
- package/build/constantsRiskScreener.js +2 -2
- package/build/constantsSite.js +2 -2
- package/build/{core-a47d2c1c.js → core-493a4c1f.js} +1 -1
- package/build/dataTransform-7c8a111b.js +13 -0
- package/build/{dataTransform-2cc339d2.js → dataTransform-c05d6333.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-0508ae59.js → editor-dbfb4abe.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/{LastPeriod-acb34093.js → LastPeriod-3c4f0e35.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-4389343b.js → MobileBottomNavigationIcon-b8bde94a.js} +3 -3
- package/build/esm/{Spinner-475df4f2.js → Spinner-79a257a6.js} +1 -1
- package/build/esm/{WhatsApp-15966b61.js → WhatsApp-b0c3210b.js} +1 -1
- package/build/esm/adapters.js +19 -19
- package/build/esm/atoms.js +47 -47
- 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/atoms/icons/Play.d.ts +4 -0
- package/build/esm/components/molecules/index.d.ts +2 -0
- package/build/esm/components/molecules/videoItem/index.d.ts +4 -0
- package/build/esm/components/molecules/videoItem/index.styles.d.ts +14 -0
- package/build/esm/components/molecules/videoItem/shorts/index.d.ts +4 -0
- package/build/esm/components/molecules/videoItem/shorts/index.styles.d.ts +21 -0
- package/build/esm/components/molecules/videoItem/types.d.ts +13 -0
- package/build/esm/components/molecules/videoItem/utils.d.ts +1 -0
- package/build/esm/components/molecules/videoItem/video/index.d.ts +4 -0
- package/build/esm/components/molecules/videoItem/video/index.styles.d.ts +22 -0
- package/build/esm/components/molecules/videoPlayerModal/index.d.ts +9 -0
- package/build/esm/components/navigationV2/components/molecules/menuVideoList/Item/index.d.ts +15 -0
- package/build/esm/components/navigationV2/components/molecules/menuVideoList/Item/index.styled.d.ts +13 -0
- package/build/esm/components/navigationV2/components/molecules/menuVideoList/index.d.ts +9 -0
- package/build/esm/components/navigationV2/components/molecules/menuVideoList/index.styled.d.ts +5 -0
- package/build/esm/components/navigationV2/components/molecules/menuVideoList/videoSpotlights.d.ts +8 -0
- package/build/esm/components/navigationV2/components/molecules/navigationBar/index.styled.d.ts +0 -2
- package/build/esm/components/navigationV2/hooks/useNavConfig.d.ts +2 -1
- package/build/esm/components/navigationV2/index.d.ts +9 -0
- package/build/esm/components/navigationV2/types.d.ts +2 -2
- package/build/esm/components/navigationV2/utils.d.ts +2 -0
- package/build/esm/components.js +95 -91
- package/build/esm/{constants-a82a6e91.js → constants-08a665ac.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-6c44324b.js → core-222a8145.js} +1 -1
- package/build/esm/{dataTransform-4df32cf8.js → dataTransform-bda7b271.js} +1 -1
- package/build/esm/dataTransform-e1e08d96.js +11 -0
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-317d9124.js → editor-ab4e1225.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/healthToolsCardWrapper.js +18 -18
- package/build/esm/healthToolsForm.js +33 -33
- package/build/esm/hooks/useCSSFocusPopupHelper.d.ts +0 -1
- package/build/esm/hooks.js +13 -13
- package/build/esm/i18n/translationKeys.d.ts +1 -1
- package/build/esm/i18n-values/en-PH.js +9 -0
- package/build/esm/i18n-values/hi-IN.js +9 -0
- package/build/esm/i18n-values/id-ID.js +9 -0
- package/build/esm/i18n-values/km-KH.js +9 -0
- package/build/esm/i18n-values/ms-MY.js +9 -0
- package/build/esm/i18n-values/my-MM.js +9 -0
- package/build/esm/i18n-values/th-TH.js +9 -0
- package/build/esm/i18n-values/tl-PH.js +9 -0
- package/build/esm/i18n-values/vi-VN.js +9 -0
- package/build/esm/i18n-values/vi-VN_MB.js +9 -0
- package/build/esm/i18n-values/zh-TW.js +9 -0
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-08f499b0.js → index-0ba2e93a.js} +3 -3
- package/build/esm/{index-2c4bc44f.js → index-109b0adb.js} +6 -6
- package/build/esm/{index-91cc806f.js → index-191f79c5.js} +1 -1
- package/build/esm/{index-3473b82f.js → index-1deea983.js} +18 -18
- package/build/esm/{index-3a050552.js → index-1df79247.js} +1 -1
- package/build/esm/{index-91771376.js → index-1ff60d24.js} +11 -11
- package/build/esm/{index-0aa4d9e8.js → index-29d67804.js} +2 -2
- package/build/esm/{index-43de00be.js → index-2e886c27.js} +2 -2
- package/build/esm/{index-496d9467.js → index-2fc1d07d.js} +16 -16
- package/build/esm/index-31a5e478.js +494 -0
- package/build/esm/{index-93555fa2.js → index-3bd9b3a9.js} +31 -30
- package/build/esm/{index-aba6f2df.js → index-3e7cea05.js} +2 -2
- package/build/esm/{index-9d29074b.js → index-44b26820.js} +3 -3
- package/build/esm/{index-a9cbda6e.js → index-4829411b.js} +2 -2
- package/build/esm/{index-d0ec6d4d.js → index-4be89ef5.js} +182 -124
- package/build/esm/{index-8e2ceb9e.js → index-4d082898.js} +16 -16
- package/build/esm/{index-6e914144.js → index-5106ea4a.js} +2 -2
- package/build/esm/{index-5f383396.js → index-590fcd6a.js} +1 -1
- package/build/esm/{index-3fd084f2.js → index-5b7bbbf3.js} +2 -2
- package/build/esm/{index-ac93851c.js → index-5ce16595.js} +6 -6
- package/build/esm/{index-8d1b5cd1.js → index-5dad2bfd.js} +1 -1
- package/build/esm/{index-cf6b4c6d.js → index-5eed82b8.js} +13 -13
- package/build/esm/{index-f1f466e3.js → index-62006031.js} +5 -5
- package/build/esm/{index-7d49189c.js → index-64de7793.js} +6 -6
- package/build/esm/{index-1ee4edd2.js → index-65a88a2f.js} +3 -3
- package/build/esm/{index-302d7800.js → index-66edc002.js} +6 -6
- package/build/esm/{index-d2a1a2ef.js → index-72e7fffe.js} +2 -2
- package/build/esm/{index-3b39b8a1.js → index-749063ff.js} +1 -1
- package/build/esm/{index-8071431d.js → index-7c6f1a51.js} +11 -3
- package/build/esm/{index-0b50df23.js → index-7e95d2d7.js} +17 -17
- package/build/esm/{index-17448dae.js → index-8420b22c.js} +16 -16
- package/build/esm/{index-cde2a194.js → index-8468f319.js} +2 -2
- package/build/esm/{index-09023bd8.js → index-86529a88.js} +17 -63
- package/build/esm/{index-7222c08e.js → index-86593428.js} +2 -2
- package/build/esm/{index-3ff5fcdd.js → index-894c4097.js} +15 -15
- package/build/esm/{index-2cc0d391.js → index-8a3797fe.js} +8 -4
- package/build/esm/{index-0dd7e8ad.js → index-8e933797.js} +4 -4
- package/build/esm/{index-1f770e72.js → index-8eb6f06d.js} +24 -24
- package/build/esm/{index-c145990e.js → index-91981f41.js} +19 -233
- package/build/esm/{index-8cc56454.js → index-9de22e34.js} +7 -7
- package/build/esm/{index-53f41082.js → index-a7479d55.js} +2 -2
- package/build/esm/{index-6edaed4b.js → index-a85f8807.js} +24 -24
- package/build/esm/{index-723ff6e9.js → index-b13ff4b9.js} +1 -1
- package/build/esm/{index-d548a188.js → index-bc4e8cd1.js} +13 -13
- package/build/esm/{index-be81f9bd.js → index-c072d314.js} +22 -20
- package/build/esm/{index-ded25d29.js → index-c15c044c.js} +5 -5
- package/build/esm/{index-1129ebfe.js → index-c40798d0.js} +18 -18
- package/build/esm/index-c52fbd75.js +225 -0
- package/build/esm/{index-bd5c1be3.js → index-c82dce54.js} +16 -16
- package/build/esm/{index-ad134d53.js → index-c9d2aaa2.js} +21 -21
- package/build/esm/{index-8566e747.js → index-ccc8a486.js} +3 -3
- package/build/esm/{index-b180d462.js → index-cd9b1e18.js} +11 -18
- package/build/esm/{index-655dba99.js → index-cf54a904.js} +2 -2
- package/build/esm/{index-bbb0c029.js → index-d3b10ec3.js} +1 -1
- package/build/esm/{index-3fddfa7f.js → index-dc3faa75.js} +3 -3
- package/build/esm/{index-3bf1efd3.js → index-dcb29363.js} +2 -2
- package/build/esm/{index-d898ad6e.js → index-e4677ebe.js} +1 -1
- package/build/esm/{index-4dfa5af4.js → index-e95307ee.js} +32 -31
- package/build/esm/index-eda053dd.js +54 -0
- package/build/esm/{index-a1831827.js → index-ee3bb0fc.js} +13 -13
- package/build/esm/{index-3077bc1d.js → index-eec8b1cc.js} +3 -3
- package/build/esm/{index-3d727fa4.js → index-f58997c6.js} +17 -17
- package/build/esm/{index-e2f81320.js → index-fc65cc57.js} +13 -13
- package/build/esm/{index-a0846c1f.js → index-fd1bc715.js} +7 -7
- package/build/esm/index.js +116 -113
- package/build/esm/interfaces/constants/index.d.ts +2 -0
- package/build/esm/interfaces/healthTools.d.ts +0 -1
- package/build/esm/interfaces/types/Video.d.ts +36 -0
- package/build/esm/interfaces/types/index.d.ts +1 -0
- package/build/esm/{labelSorting-f1e71c6b.js → labelSorting-4e353373.js} +4 -4
- package/build/esm/lead/helpers.d.ts +0 -31
- package/build/esm/lead.css +1 -1
- package/build/esm/lead.js +180 -287
- package/build/esm/{logoIcon-30d5d029.js → logoIcon-3ddc78e3.js} +2 -2
- package/build/esm/mantine.js +25 -25
- package/build/esm/misc.js +17 -16
- 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 +73 -69
- package/build/esm/moleculesArticleCard.js +6 -6
- package/build/esm/moleculesArticleCardV2.js +16 -16
- package/build/esm/navigation.js +50 -45
- package/build/esm/navigationLogoutPopup.js +9 -9
- package/build/esm/navigationProfileButton.js +23 -23
- package/build/esm/{dataTransform-a5ab808a.js → number-7cd2ed1c.js} +1 -11
- package/build/esm/onboardingV2.js +29 -29
- package/build/esm/organisms.js +53 -48
- package/build/esm/{post-52b2f121.js → post-25e22605.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 +1 -2
- package/build/esm/ssoV2/index.d.ts +0 -1
- package/build/esm/ssoV2/utils.d.ts +0 -6
- package/build/esm/ssoV2.js +56 -50
- package/build/esm/{store-bbfc4f26.js → store-c0abd1a4.js} +4 -4
- package/build/esm/subot.js +42 -43
- package/build/esm/surveyOrPremiumBanner.js +31 -31
- package/build/esm/surveyQuestionCard.js +10 -10
- package/build/esm/{surveyThankyouCard-37f5fd4c.js → surveyThankyouCard-d9a3f7c8.js} +5 -5
- package/build/esm/together.js +55 -53
- 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 +50 -48
- package/build/esm/togetherMoleculesCardAuthor.js +28 -27
- package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
- package/build/esm/togetherMoleculesProfileDetail.js +38 -37
- package/build/esm/togetherOrganisms.js +56 -54
- package/build/esm/togetherRichTextEditor.js +17 -17
- package/build/esm/togetherShareBox.js +10 -10
- package/build/esm/{treePopoverMenu-74c6e0bd.js → treePopoverMenu-601f64f4.js} +19 -19
- package/build/esm/{types-a2aca465.js → types-34a4a8fc.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-a9f4c1b8.js → useCategory-3eadc946.js} +5 -5
- package/build/esm/{useHealthToolCache-79b7dfd8.js → useHealthToolCache-d0dd546a.js} +1 -1
- package/build/esm/{useMantineLocale-4f902908.js → useMantineLocale-f17968c0.js} +6 -6
- package/build/esm/{usePlacesAutocomplete-d00892cc.js → usePlacesAutocomplete-e826c24b.js} +1 -1
- package/build/esm/{useScreenSize-85657dee.js → useScreenSize-11fc92d3.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +9 -9
- package/build/esm/{utils-84250289.js → utils-1af61383.js} +3 -3
- package/build/esm/{utils-be995f45.js → utils-356b57cf.js} +2 -2
- package/build/esm/{utils-1bc35f03.js → utils-f14dd095.js} +2 -2
- package/build/esm/vaccination.js +21 -21
- package/build/footer.js +21 -21
- package/build/gAssets.js +2 -2
- package/build/healthToolsCardWrapper.js +18 -18
- package/build/healthToolsForm.js +33 -33
- package/build/hooks/useCSSFocusPopupHelper.d.ts +0 -1
- package/build/hooks.js +13 -13
- package/build/i18n/translationKeys.d.ts +1 -1
- package/build/i18n-values/en-PH.js +9 -0
- package/build/i18n-values/hi-IN.js +9 -0
- package/build/i18n-values/id-ID.js +9 -0
- package/build/i18n-values/km-KH.js +9 -0
- package/build/i18n-values/ms-MY.js +9 -0
- package/build/i18n-values/my-MM.js +9 -0
- package/build/i18n-values/th-TH.js +9 -0
- package/build/i18n-values/tl-PH.js +9 -0
- package/build/i18n-values/vi-VN.js +9 -0
- package/build/i18n-values/vi-VN_MB.js +9 -0
- package/build/i18n-values/zh-TW.js +9 -0
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-aec56057.js → index-0ae0683e.js} +1 -1
- package/build/{index-114fb2b3.js → index-0bb69a29.js} +1 -1
- package/build/{index-1a991ca9.js → index-0c39fb9a.js} +31 -30
- package/build/{index-4f8e7d82.js → index-0e3a9ce5.js} +2 -2
- package/build/{index-014ddce9.js → index-12c0405a.js} +5 -5
- package/build/{index-aeddd5e1.js → index-1a670332.js} +1 -1
- package/build/{index-a7fe505b.js → index-1e05e5e9.js} +5 -5
- package/build/{index-a00fb687.js → index-2594073e.js} +6 -6
- package/build/{index-9e6471fa.js → index-26574e0f.js} +3 -3
- package/build/{index-e5f27c0f.js → index-26e97252.js} +19 -234
- package/build/{index-f3c705d0.js → index-2b7732a8.js} +16 -16
- package/build/{index-c9f46119.js → index-2d9bcaeb.js} +18 -18
- package/build/{index-a48132cf.js → index-2dd85aab.js} +2 -2
- package/build/{index-448f6fae.js → index-3154eb57.js} +13 -13
- package/build/{index-59e72f25.js → index-32f95d0a.js} +6 -6
- package/build/{index-717e254d.js → index-347809f9.js} +1 -1
- package/build/{index-b4a480c2.js → index-36927fc3.js} +18 -18
- package/build/{index-f378fe9e.js → index-36ac7272.js} +3 -3
- package/build/{index-bbc8a07f.js → index-44bf2ce1.js} +10 -2
- package/build/{index-28bf0a58.js → index-4b2fa3e2.js} +2 -2
- package/build/{index-366d3e02.js → index-4c7a785b.js} +6 -6
- package/build/{index-b6cc9ce2.js → index-4d6e6a6f.js} +13 -13
- package/build/{index-b8d4aa12.js → index-4d8a8f2a.js} +2 -2
- package/build/{index-66d19270.js → index-4ea6199f.js} +4 -4
- package/build/{index-752ddc7e.js → index-4f002d8f.js} +11 -11
- package/build/{index-a22f8c1a.js → index-4ff1cefe.js} +189 -131
- package/build/{index-d0270b0a.js → index-50880e9a.js} +2 -2
- package/build/{index-8c578ae7.js → index-52f4d9ac.js} +3 -3
- package/build/{index-f1ea8e8c.js → index-585064ac.js} +2 -2
- package/build/{index-91201153.js → index-5c3e82a8.js} +16 -16
- package/build/{index-e8720f16.js → index-5e555a2c.js} +2 -2
- package/build/{index-151f3098.js → index-5efb2208.js} +37 -36
- package/build/{index-2f55674b.js → index-620e269f.js} +17 -17
- package/build/{index-1b2b41ad.js → index-6c1fbee0.js} +34 -32
- package/build/{index-4c10dff8.js → index-80f1173f.js} +13 -13
- package/build/{index-0a9bd5e0.js → index-82a721a9.js} +13 -13
- package/build/{index-df93237b.js → index-88bffee6.js} +2 -2
- package/build/{index-ec2c0de7.js → index-89d3b1dd.js} +1 -1
- package/build/{index-69bfd97f.js → index-8b7337b6.js} +2 -2
- package/build/index-8d6980aa.js +61 -0
- package/build/{index-aa13fadc.js → index-8ea58f0a.js} +16 -16
- package/build/{index-4c8c7a4f.js → index-9395f53e.js} +1 -1
- package/build/{index-6132d9b0.js → index-9642ac3c.js} +21 -21
- package/build/{index-1edfb3c4.js → index-9fba1db4.js} +2 -2
- package/build/{index-e3a8f461.js → index-a2146821.js} +11 -18
- package/build/{index-a9ff5150.js → index-a47352b7.js} +17 -17
- package/build/{index-48939e16.js → index-a52b0815.js} +2 -2
- package/build/{index-7440d34d.js → index-a64f9470.js} +9 -3
- package/build/index-a701bc62.js +504 -0
- package/build/{index-c030e9f8.js → index-aee0f71e.js} +1 -1
- package/build/{index-4b4894dd.js → index-af34cbca.js} +7 -7
- package/build/{index-54c82239.js → index-b0338dab.js} +7 -7
- package/build/{index-daf3f551.js → index-b039a2f5.js} +3 -3
- package/build/{index-99266313.js → index-bb0404b6.js} +3 -3
- package/build/{index-71a4bbd7.js → index-c0a1f14f.js} +3 -3
- package/build/{index-49f29546.js → index-c182ddcd.js} +6 -6
- package/build/{index-c1d68c39.js → index-c3d5b656.js} +24 -24
- package/build/{index-03574a1f.js → index-c5c8c633.js} +15 -15
- package/build/{index-d6a7d261.js → index-cc632370.js} +31 -78
- package/build/{index-8ad47f17.js → index-d68340ee.js} +1 -1
- package/build/{index-0e2bb8f0.js → index-e4b83bc5.js} +2 -2
- package/build/{index-e3f90421.js → index-f9428b8a.js} +24 -24
- package/build/{index-4b9a133d.js → index-fa38fcaf.js} +16 -16
- package/build/index-fcc65dbf.js +232 -0
- package/build/index.js +128 -123
- package/build/interfaces/constants/index.d.ts +2 -0
- package/build/interfaces/healthTools.d.ts +0 -1
- package/build/interfaces/types/Video.d.ts +36 -0
- package/build/interfaces/types/index.d.ts +1 -0
- package/build/{labelSorting-eb55018c.js → labelSorting-564e4df0.js} +4 -4
- package/build/lead/helpers.d.ts +0 -31
- package/build/lead.css +1 -1
- package/build/lead.js +181 -288
- package/build/{logoIcon-e18f5cc4.js → logoIcon-144a4c63.js} +2 -2
- package/build/mantine.js +22 -22
- package/build/misc.js +19 -18
- 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 +75 -69
- package/build/moleculesArticleCard.js +6 -6
- package/build/moleculesArticleCardV2.js +16 -16
- package/build/navigation.js +50 -45
- package/build/navigationLogoutPopup.js +9 -9
- package/build/navigationProfileButton.js +23 -23
- package/build/{dataTransform-6886fcfb.js → number-0a06f73a.js} +0 -11
- package/build/onboardingV2.js +28 -28
- package/build/organisms.js +53 -48
- package/build/{post-1b7acd8a.js → post-e81b3399.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 +1 -2
- package/build/ssoV2/index.d.ts +0 -1
- package/build/ssoV2/utils.d.ts +0 -6
- package/build/ssoV2.js +71 -65
- package/build/{store-f338d5dc.js → store-3db31396.js} +4 -4
- package/build/subot.js +41 -42
- package/build/surveyOrPremiumBanner.js +31 -31
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-3f669e41.js → surveyThankyouCard-dcfc997b.js} +5 -5
- package/build/together.js +63 -61
- package/build/togetherApiUtils.js +4 -4
- package/build/togetherAtoms.js +30 -30
- package/build/togetherComponentGlobalContext.js +4 -4
- package/build/togetherMolecules.js +51 -49
- package/build/togetherMoleculesCardAuthor.js +28 -27
- package/build/togetherMoleculesPostImagePreview.js +11 -11
- package/build/togetherMoleculesProfileDetail.js +38 -37
- package/build/togetherOrganisms.js +56 -54
- package/build/togetherRichTextEditor.js +17 -17
- package/build/togetherShareBox.js +10 -10
- package/build/{treePopoverMenu-d3fd723a.js → treePopoverMenu-49b646ab.js} +19 -19
- package/build/{types-0cd7d9fe.js → types-a7bacf6e.js} +2 -2
- package/build/types.js +6 -2
- package/build/{useCategory-871fa470.js → useCategory-993eb216.js} +5 -5
- package/build/{useHealthToolCache-8c51e63b.js → useHealthToolCache-68c4213c.js} +1 -1
- package/build/{useMantineLocale-1c9f789e.js → useMantineLocale-5e96023c.js} +6 -6
- package/build/{usePlacesAutocomplete-dd6c1d8f.js → usePlacesAutocomplete-680d7e89.js} +1 -1
- package/build/{useScreenSize-da937aaf.js → useScreenSize-58be1181.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +9 -9
- package/build/{utils-09a1a009.js → utils-130c6b01.js} +2 -2
- package/build/{utils-15c8b901.js → utils-d40974e0.js} +2 -2
- package/build/{utils-e0ea8233.js → utils-da16f93d.js} +3 -3
- package/build/vaccination.js +21 -21
- package/package.json +1 -1
- package/build/esm/index-b61f2526.js +0 -148
- package/build/esm/lead/layouts/lightbox/emptyComponent.d.ts +0 -6
- package/build/esm/lead/layouts/lightbox/formContainer.d.ts +0 -17
- package/build/esm/lead/layouts/lightbox/headerImage.d.ts +0 -11
- package/build/esm/utils-397cbdd3.js +0 -55
- package/build/index-53165e12.js +0 -156
- package/build/lead/layouts/lightbox/emptyComponent.d.ts +0 -6
- package/build/lead/layouts/lightbox/formContainer.d.ts +0 -17
- package/build/lead/layouts/lightbox/headerImage.d.ts +0 -11
- package/build/utils-0b30517e.js +0 -61
- /package/build/{BMI_BOYS.percentile.monthly-c17aac56.js → BMI_BOYS.percentile.monthly-5c94c639.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-a895bf04.js → BMI_BOYS.percentile.weekly-28e88e2e.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-19441d71.js → BMI_BOYS.percentile.yearly-1ee7fccd.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-6b11c95e.js → BMI_BOYS.zscore.monthly-b38b3ddb.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-cc38154a.js → BMI_BOYS.zscore.weekly-3d9ad8ee.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-dc4989c2.js → BMI_BOYS.zscore.yearly-679822f7.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-08fa757f.js → BMI_GIRLS.percentile.monthly-82392190.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-6a244736.js → BMI_GIRLS.percentile.weekly-700710e2.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-c7c3ccc5.js → BMI_GIRLS.percentile.yearly-9dfd637a.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-d0965294.js → BMI_GIRLS.zscore.monthly-cd692b93.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-628e7381.js → BMI_GIRLS.zscore.weekly-0a966dd2.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-6f0a8074.js → BMI_GIRLS.zscore.yearly-ef73d8ac.js} +0 -0
- /package/build/{ChevronDown-fb474f6b.js → ChevronDown-2195239e.js} +0 -0
- /package/build/{Close-b4092a2c.js → Close-dc4cd6ac.js} +0 -0
- /package/build/{Google-3b1bed90.js → Google-84f1002c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-54403ab9.js → HEAD CIRCUM_BOYS.percentile.monthly-0ba798f6.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-57b5d37f.js → HEAD CIRCUM_BOYS.percentile.weekly-04c41a40.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-e803b122.js → HEAD CIRCUM_BOYS.percentile.yearly-64684d2d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-ee739f33.js → HEAD CIRCUM_BOYS.zscore.monthly-32f63213.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-2ae5b077.js → HEAD CIRCUM_BOYS.zscore.weekly-ab53405b.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-2f226b05.js → HEAD CIRCUM_BOYS.zscore.yearly-6f79051f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-9d60aa36.js → HEAD CIRCUM_GIRLS.percentile.monthly-13232833.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-16723f2b.js → HEAD CIRCUM_GIRLS.percentile.weekly-ad125882.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-51c54e25.js → HEAD CIRCUM_GIRLS.percentile.yearly-e884a146.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-c8f657fb.js → HEAD CIRCUM_GIRLS.zscore.monthly-ec02e3a1.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-b0fe3384.js → HEAD CIRCUM_GIRLS.zscore.weekly-80c1c6ee.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-928a944f.js → HEAD CIRCUM_GIRLS.zscore.yearly-1d5ea97f.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-243c316c.js → HEIGHT_BOYS.percentile.monthly-f935d161.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-bc5d696a.js → HEIGHT_BOYS.percentile.weekly-7d761d57.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-8f78af31.js → HEIGHT_BOYS.percentile.yearly-0e546d9a.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-b76b1bec.js → HEIGHT_BOYS.zscore.monthly-c3a67ea8.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-d92a6b67.js → HEIGHT_BOYS.zscore.weekly-2a1ca99b.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-3ddfe7b7.js → HEIGHT_BOYS.zscore.yearly-97929b26.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-3b6182fa.js → HEIGHT_GIRLS.percentile.monthly-81d19228.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-d9c04d42.js → HEIGHT_GIRLS.percentile.weekly-0b638b75.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-834e580a.js → HEIGHT_GIRLS.percentile.yearly-ce047683.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-313615bb.js → HEIGHT_GIRLS.zscore.monthly-6a1972e9.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-2af22b07.js → HEIGHT_GIRLS.zscore.weekly-0d1c2e90.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-3c24bf7d.js → HEIGHT_GIRLS.zscore.yearly-38affac7.js} +0 -0
- /package/build/{Locale-f15df359.js → Locale-efeb4779.js} +0 -0
- /package/build/{Visible-0e9aa746.js → Visible-6dbbaff6.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-cdcbf67d.js → WEIGHT_BOYS.percentile.monthly-25144bea.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-10b15769.js → WEIGHT_BOYS.percentile.weekly-b3470080.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-584c1cc7.js → WEIGHT_BOYS.percentile.yearly-70f4a7fb.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-b9ea0ad4.js → WEIGHT_BOYS.zscore.monthly-b554e353.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-b12404f4.js → WEIGHT_BOYS.zscore.weekly-84d15584.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-5b7fbfd6.js → WEIGHT_BOYS.zscore.yearly-be23fa9b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-1abf7637.js → WEIGHT_GIRLS.percentile.monthly-940078af.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-888fae52.js → WEIGHT_GIRLS.percentile.weekly-f48f3860.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-44a2c319.js → WEIGHT_GIRLS.percentile.yearly-177afa98.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-da2d8dbb.js → WEIGHT_GIRLS.zscore.monthly-411af9f6.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-9323bcae.js → WEIGHT_GIRLS.zscore.weekly-0bb114d8.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-e2d9a792.js → WEIGHT_GIRLS.zscore.yearly-636f226d.js} +0 -0
- /package/build/{animation-af4faf0b.js → animation-4f0b0b74.js} +0 -0
- /package/build/{constants-f8e0dd0e.js → constants-121d4cd0.js} +0 -0
- /package/build/{constants-ce3d3b8b.js → constants-77bd9f3d.js} +0 -0
- /package/build/{constants-eb523cb6.js → constants-b45a0f52.js} +0 -0
- /package/build/{doctor-dd0d103b.js → doctor-30b5162b.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-bd832825.js → BMI_BOYS.percentile.monthly-743ccd9b.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-8e2acc11.js → BMI_BOYS.percentile.weekly-148a81d2.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-c9bf53a3.js → BMI_BOYS.percentile.yearly-12920321.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-ed6d48f4.js → BMI_BOYS.zscore.monthly-5297d265.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-0e02f5f3.js → BMI_BOYS.zscore.weekly-76892b16.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-4deae064.js → BMI_BOYS.zscore.yearly-0966fa1b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-4f191f94.js → BMI_GIRLS.percentile.monthly-c638e53a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-e6ad6d25.js → BMI_GIRLS.percentile.weekly-72717163.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-7188f959.js → BMI_GIRLS.percentile.yearly-32b08dcb.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-d0a5801b.js → BMI_GIRLS.zscore.monthly-bde76796.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-086edf15.js → BMI_GIRLS.zscore.weekly-b4a056fe.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-cd3e79ee.js → BMI_GIRLS.zscore.yearly-a92152aa.js} +0 -0
- /package/build/esm/{ChevronDown-9d25a195.js → ChevronDown-cb59d640.js} +0 -0
- /package/build/esm/{Close-7b5e9bc9.js → Close-095f247b.js} +0 -0
- /package/build/esm/{Google-c5999908.js → Google-6c595880.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-a856ff74.js → HEAD CIRCUM_BOYS.percentile.monthly-a11d918b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-cc51ab10.js → HEAD CIRCUM_BOYS.percentile.weekly-d40d3946.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-800521da.js → HEAD CIRCUM_BOYS.percentile.yearly-8012449c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-ec1534f2.js → HEAD CIRCUM_BOYS.zscore.monthly-8e5c5a31.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-885f7cf5.js → HEAD CIRCUM_BOYS.zscore.weekly-b35ad21d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-003386ce.js → HEAD CIRCUM_BOYS.zscore.yearly-6c013887.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-b0dfd90e.js → HEAD CIRCUM_GIRLS.percentile.monthly-aa3cb27d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-e2ee80c1.js → HEAD CIRCUM_GIRLS.percentile.weekly-c017508e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-712655ed.js → HEAD CIRCUM_GIRLS.percentile.yearly-ccca55e1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-55657637.js → HEAD CIRCUM_GIRLS.zscore.monthly-fc6208ba.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-609d2713.js → HEAD CIRCUM_GIRLS.zscore.weekly-150dfa94.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-9f55b53e.js → HEAD CIRCUM_GIRLS.zscore.yearly-f5d7f469.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-80f7420b.js → HEIGHT_BOYS.percentile.monthly-6876a69b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-e1dd99a1.js → HEIGHT_BOYS.percentile.weekly-864ef15a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-30131879.js → HEIGHT_BOYS.percentile.yearly-45e10964.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-e838b883.js → HEIGHT_BOYS.zscore.monthly-987d02ad.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-69c83b23.js → HEIGHT_BOYS.zscore.weekly-bdb660be.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-6b866c7f.js → HEIGHT_BOYS.zscore.yearly-1517b945.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-1db14cb0.js → HEIGHT_GIRLS.percentile.monthly-b67f99aa.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-d74ce56e.js → HEIGHT_GIRLS.percentile.weekly-712b9a31.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-5f168225.js → HEIGHT_GIRLS.percentile.yearly-55f644c9.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-20d2eb78.js → HEIGHT_GIRLS.zscore.monthly-38bd1a84.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-80ea3af1.js → HEIGHT_GIRLS.zscore.weekly-0e74d6b7.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-647732cc.js → HEIGHT_GIRLS.zscore.yearly-157cc38c.js} +0 -0
- /package/build/esm/{Locale-3abad08e.js → Locale-fee93066.js} +0 -0
- /package/build/esm/{Visible-57dae06e.js → Visible-c8ccf9f4.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-065eae23.js → WEIGHT_BOYS.percentile.monthly-8e22e1ff.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-289170df.js → WEIGHT_BOYS.percentile.weekly-c44d533c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-5e310ae7.js → WEIGHT_BOYS.percentile.yearly-9ae7822a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-e6cb4ad6.js → WEIGHT_BOYS.zscore.monthly-bdd76b6a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-268cd85c.js → WEIGHT_BOYS.zscore.weekly-95b328c5.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-d702814b.js → WEIGHT_BOYS.zscore.yearly-814536f9.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-6c3ca315.js → WEIGHT_GIRLS.percentile.monthly-bddd4f3b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-289d2a9f.js → WEIGHT_GIRLS.percentile.weekly-18a34d13.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-e8c38916.js → WEIGHT_GIRLS.percentile.yearly-9fea7e32.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-844f37e0.js → WEIGHT_GIRLS.zscore.monthly-b31d7444.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-b8266dad.js → WEIGHT_GIRLS.zscore.weekly-506c8f97.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-1245be65.js → WEIGHT_GIRLS.zscore.yearly-3af998e9.js} +0 -0
- /package/build/esm/{animation-9daf7ea1.js → animation-6a677c4c.js} +0 -0
- /package/build/esm/{constants-82aa6ead.js → constants-0c2f7d1b.js} +0 -0
- /package/build/esm/{constants-372dadc3.js → constants-7688da28.js} +0 -0
- /package/build/esm/{constants-1ef5e1e7.js → constants-e3bf1dcd.js} +0 -0
- /package/build/esm/{doctor-03f23031.js → doctor-a8bf8262.js} +0 -0
- /package/build/esm/{index-7c541c07.js → index-2469d657.js} +0 -0
- /package/build/esm/{index-76afd60a.js → index-40c8f198.js} +0 -0
- /package/build/esm/{index-86c5c2a0.js → index-76eff284.js} +0 -0
- /package/build/esm/{index-51ee83c5.js → index-77acd039.js} +0 -0
- /package/build/esm/{index-f539d727.js → index-7ad01fa4.js} +0 -0
- /package/build/esm/{index-ed0b6c0a.js → index-b7299a9c.js} +0 -0
- /package/build/esm/{index-81d8a522.js → index-c4b2f711.js} +0 -0
- /package/build/esm/{index-93f6c20b.js → index-cc333222.js} +0 -0
- /package/build/esm/{index-dfbb7a48.js → index-f7168e69.js} +0 -0
- /package/build/esm/{index.styles-d205a442.js → index.styles-61d70f9e.js} +0 -0
- /package/build/esm/{localizeNumberFormat-6fa87239.js → localizeNumberFormat-9bb2897c.js} +0 -0
- /package/build/esm/{normalizeLink-6fa9140b.js → normalizeLink-a852ea86.js} +0 -0
- /package/build/esm/{other-f3acbf3b.js → other-ff97cf3a.js} +0 -0
- /package/build/esm/{paths-14459239.js → paths-1c1c94aa.js} +0 -0
- /package/build/esm/{translationsContext-348395fa.js → translationsContext-d3dcfbcf.js} +0 -0
- /package/build/esm/{tslib.es6-3f882546.js → tslib.es6-3d0d57aa.js} +0 -0
- /package/build/esm/{types-e778085b.js → types-512c7e58.js} +0 -0
- /package/build/esm/{useIsInit-666a0622.js → useIsInit-3a60ce11.js} +0 -0
- /package/build/esm/{useOutsideClick-c1bd33d2.js → useOutsideClick-0af5e699.js} +0 -0
- /package/build/esm/{useScrollbarSize-52945f1b.js → useScrollbarSize-32e71bd5.js} +0 -0
- /package/build/esm/{useUniqueId-a4987374.js → useUniqueId-d85246b9.js} +0 -0
- /package/build/esm/{utils-751f26c2.js → utils-24a5fc0b.js} +0 -0
- /package/build/{index-b9ef6287.js → index-17123607.js} +0 -0
- /package/build/{index-5e0006ed.js → index-232df9c6.js} +0 -0
- /package/build/{index-58d8c932.js → index-2c357711.js} +0 -0
- /package/build/{index-b499805d.js → index-546256c8.js} +0 -0
- /package/build/{index-b021372e.js → index-d46c2bee.js} +0 -0
- /package/build/{index-89c3d7b8.js → index-d65d2702.js} +0 -0
- /package/build/{index-42ca0cd7.js → index-dd2622f2.js} +0 -0
- /package/build/{index-17762e76.js → index-e89d6ea8.js} +0 -0
- /package/build/{index-e811bc9e.js → index-faa8ac60.js} +0 -0
- /package/build/{index.styles-1994f67b.js → index.styles-7eb232b9.js} +0 -0
- /package/build/{localizeNumberFormat-0321c0eb.js → localizeNumberFormat-b4acc554.js} +0 -0
- /package/build/{normalizeLink-0cf91164.js → normalizeLink-ed076d28.js} +0 -0
- /package/build/{other-927d70d3.js → other-5db125e1.js} +0 -0
- /package/build/{paths-890c6157.js → paths-8c7855d4.js} +0 -0
- /package/build/{translationsContext-8c59d7af.js → translationsContext-58c99c1f.js} +0 -0
- /package/build/{tslib.es6-821c3e9d.js → tslib.es6-7610e8e4.js} +0 -0
- /package/build/{types-194b4c0d.js → types-149e0fce.js} +0 -0
- /package/build/{useIsInit-2e69dc0a.js → useIsInit-3a02c33f.js} +0 -0
- /package/build/{useOutsideClick-f3383a8a.js → useOutsideClick-59fd150e.js} +0 -0
- /package/build/{useScrollbarSize-5d5dfb69.js → useScrollbarSize-17773592.js} +0 -0
- /package/build/{useUniqueId-b1afd50f.js → useUniqueId-17e9a8d5.js} +0 -0
- /package/build/{utils-dd2ba00a.js → utils-62602343.js} +0 -0
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { _ as __rest, a as __awaiter } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-3d0d57aa.js';
|
|
2
2
|
import React__default, { useMemo, useEffect, useContext, useState, useRef, useCallback } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { a as
|
|
3
|
+
import { V as VideoType } from './index-7c6f1a51.js';
|
|
4
|
+
import { i as isInternalLink, V as VideoItem, L as LanguageSwitcher } from './index-31a5e478.js';
|
|
5
|
+
import { a as CARE_LOCALES, b as CARE_BOOKING_LOCALES, T as TOGETHER_LOCALES, E as ECOM_LOCALES, c as VIDEO_LOCALES, S as STATIC_PAGES, L as LOCALE_SPECS } from './index-8a3797fe.js';
|
|
6
|
+
import { g as getCurrentBaseUrl, a as getCurrentSsoUrl, b as getTogetherApiDomain, c as getDiscoverApiDomain, n as normalizeLink, e as normalizeLinkSlash, d as getCareApiDomain } from './normalizeLink-a852ea86.js';
|
|
7
|
+
import { a as formatCommunity, b as formatPost } from './dataTransform-bda7b271.js';
|
|
7
8
|
import { Close, Download } from '@hhgtech/icons/core';
|
|
8
9
|
import { createStyles, Box, Indicator, useMantineTheme } from '@mantine/core';
|
|
9
|
-
import { L as Logo } from './index-
|
|
10
|
-
import { u as useTranslations } from './index-
|
|
10
|
+
import { L as Logo } from './index-64de7793.js';
|
|
11
|
+
import { u as useTranslations } from './index-b13ff4b9.js';
|
|
11
12
|
import throttle from 'lodash/throttle';
|
|
12
|
-
import { I as Input } from './index-
|
|
13
|
+
import { I as Input } from './index-1ff60d24.js';
|
|
13
14
|
import '@mantine/dates';
|
|
14
|
-
import './index-
|
|
15
|
-
import
|
|
16
|
-
import './
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import './
|
|
20
|
-
import './translationsContext-348395fa.js';
|
|
15
|
+
import { C as CommonGAssets } from './index-76eff284.js';
|
|
16
|
+
import './useMantineLocale-f17968c0.js';
|
|
17
|
+
import { T as Text } from './index-2e886c27.js';
|
|
18
|
+
import { B as Button$1 } from './index-749063ff.js';
|
|
19
|
+
import './index.styles-61d70f9e.js';
|
|
20
|
+
import './translationsContext-d3dcfbcf.js';
|
|
21
21
|
import '@mantine/hooks';
|
|
22
|
-
import { g as getBoundariesFromMediaQueryKey, M as MediaQueries } from './utils-
|
|
23
|
-
import './other-
|
|
24
|
-
import './index-
|
|
25
|
-
import { L as LOCALISED_SLUGS } from './constants-
|
|
22
|
+
import { g as getBoundariesFromMediaQueryKey, M as MediaQueries } from './utils-24a5fc0b.js';
|
|
23
|
+
import './other-ff97cf3a.js';
|
|
24
|
+
import './index-eec8b1cc.js';
|
|
25
|
+
import { L as LOCALISED_SLUGS } from './constants-08a665ac.js';
|
|
26
26
|
import styled from '@emotion/styled';
|
|
27
|
-
import { u as useCSSFocusPopupHelper, N as NavigationProfileButton } from './index-
|
|
28
|
-
import { u as useSSOV2Store, I as IS_SSOV2_ENABLED } from './store-
|
|
29
|
-
import { B as Button } from './index-
|
|
30
|
-
import { i as domainLocalesMarryBaby } from './utils-
|
|
27
|
+
import { u as useCSSFocusPopupHelper, N as NavigationProfileButton } from './index-cd9b1e18.js';
|
|
28
|
+
import { u as useSSOV2Store, I as IS_SSOV2_ENABLED } from './store-c0abd1a4.js';
|
|
29
|
+
import { B as Button } from './index-29d67804.js';
|
|
30
|
+
import { i as domainLocalesMarryBaby } from './utils-1af61383.js';
|
|
31
31
|
import { domainLocales } from './constantsDomainLocales.js';
|
|
32
|
-
import { L as LOCALIZED_SLUGS } from './constants-
|
|
32
|
+
import { L as LOCALIZED_SLUGS } from './constants-7688da28.js';
|
|
33
33
|
import { theme } from './miscTheme.js';
|
|
34
|
-
import { H as Heading } from './index-
|
|
35
|
-
import { I as Indicator$1 } from './index-
|
|
36
|
-
import { u as useIsInit } from './useIsInit-
|
|
34
|
+
import { H as Heading } from './index-86593428.js';
|
|
35
|
+
import { I as Indicator$1 } from './index-5dad2bfd.js';
|
|
36
|
+
import { u as useIsInit } from './useIsInit-3a60ce11.js';
|
|
37
37
|
import { setDefaultClass } from './miscDefaultClassWrapper.js';
|
|
38
38
|
import dayjs from 'dayjs';
|
|
39
39
|
import relativeTime from 'dayjs/plugin/relativeTime';
|
|
40
|
-
import { U as UserAvatar } from './index-
|
|
40
|
+
import { U as UserAvatar } from './index-8468f319.js';
|
|
41
41
|
import { ArrowRight } from '@hhgtech/icons/other';
|
|
42
42
|
import formatString from 'string-format';
|
|
43
|
-
import { C as Container } from './index-
|
|
44
|
-
import { L as LOCALE } from './Locale-
|
|
43
|
+
import { C as Container } from './index-c4b2f711.js';
|
|
44
|
+
import { L as LOCALE } from './Locale-fee93066.js';
|
|
45
45
|
import debounce from 'lodash/debounce';
|
|
46
|
-
import { g as getDataWithCache } from './core-
|
|
46
|
+
import { g as getDataWithCache } from './core-222a8145.js';
|
|
47
47
|
|
|
48
48
|
const getEcomUrl = ({ path, locale, }) => {
|
|
49
49
|
var _a;
|
|
@@ -119,6 +119,7 @@ const useNavConfig = ({ locale, projectType, siteType, enableBookingBtn, }) => {
|
|
|
119
119
|
const enableNavEcom = siteType !== 'marryBaby' && ECOM_LOCALES.includes(locale);
|
|
120
120
|
const enableProfileEcom = siteType !== 'marryBaby' && ECOM_LOCALES.includes(locale);
|
|
121
121
|
const enableProfileMyHealth = true;
|
|
122
|
+
const enableNavVideo = VIDEO_LOCALES.includes(locale);
|
|
122
123
|
const baseUrl = getCurrentBaseUrl(locale, siteType === 'marryBaby');
|
|
123
124
|
let fixBaseUrl = baseUrl;
|
|
124
125
|
if (typeof window !== 'undefined') {
|
|
@@ -133,6 +134,7 @@ const useNavConfig = ({ locale, projectType, siteType, enableBookingBtn, }) => {
|
|
|
133
134
|
HOME_PAGE_URL: fixBaseUrl,
|
|
134
135
|
CARE_URL_FE: `${fixBaseUrl}/care`,
|
|
135
136
|
TOGETHER_URL_FE: `${fixBaseUrl}/community`,
|
|
137
|
+
VIDEO_URL_FE: `${fixBaseUrl}/videos`,
|
|
136
138
|
SSO_URL: ssoUrl,
|
|
137
139
|
TOGETHER_API: getTogetherApiDomain(),
|
|
138
140
|
DISCOVER_API: getDiscoverApiDomain(locale),
|
|
@@ -145,6 +147,7 @@ const useNavConfig = ({ locale, projectType, siteType, enableBookingBtn, }) => {
|
|
|
145
147
|
enableNavTogether,
|
|
146
148
|
enableNavEcom,
|
|
147
149
|
enableProfileEcom,
|
|
150
|
+
enableNavVideo,
|
|
148
151
|
enableProfileMyHealth,
|
|
149
152
|
enableNavDiscover,
|
|
150
153
|
enableNavHealthTools,
|
|
@@ -282,6 +285,9 @@ const StyledItemGridLeft = styled.div `
|
|
|
282
285
|
padding: 5px 15px;
|
|
283
286
|
${MediaQueries.mbUp} {
|
|
284
287
|
border-right: 1px solid #e4e8ec;
|
|
288
|
+
display: flex;
|
|
289
|
+
flex-direction: column;
|
|
290
|
+
justify-content: space-between;
|
|
285
291
|
}
|
|
286
292
|
`;
|
|
287
293
|
const StyledItem$6 = styled.a `
|
|
@@ -305,7 +311,6 @@ const StyledItem$6 = styled.a `
|
|
|
305
311
|
.name {
|
|
306
312
|
font-size: 16px;
|
|
307
313
|
font-weight: 400;
|
|
308
|
-
line-height: 24px;
|
|
309
314
|
}
|
|
310
315
|
|
|
311
316
|
&[data-theme='marryBaby']:hover,
|
|
@@ -327,17 +332,6 @@ const StyledItem$6 = styled.a `
|
|
|
327
332
|
}
|
|
328
333
|
|
|
329
334
|
&[data-theme='marryBaby'] {
|
|
330
|
-
&.tarot-menu {
|
|
331
|
-
.icon {
|
|
332
|
-
background: linear-gradient(148deg, #fc5e9a 16.04%, #fe98bf 94.24%);
|
|
333
|
-
}
|
|
334
|
-
.name {
|
|
335
|
-
background: linear-gradient(91deg, #ea4f8a 1.24%, #fe8eb8 46.02%);
|
|
336
|
-
background-clip: text;
|
|
337
|
-
-webkit-background-clip: text;
|
|
338
|
-
-webkit-text-fill-color: transparent;
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
335
|
.icon {
|
|
342
336
|
display: flex;
|
|
343
337
|
align-items: center;
|
|
@@ -450,40 +444,38 @@ const Categories = ({ hrefViewMore, titleBtnViewMore, UrlFE, onClosePopup, menuI
|
|
|
450
444
|
const { t } = useTranslations();
|
|
451
445
|
const theme = useMantineTheme();
|
|
452
446
|
return (React__default.createElement(StyledItemGridLeft, null,
|
|
453
|
-
React__default.createElement(
|
|
454
|
-
React__default.createElement(
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
? item === null || item === void 0 ? void 0 : item.link
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
React__default.createElement("img", { src: CommonGAssets.getAssetPath('chevronRight.svg'), style: { width: '16px', height: '16px' }, loading: "lazy" }))));
|
|
486
|
-
}),
|
|
447
|
+
React__default.createElement("div", null,
|
|
448
|
+
React__default.createElement(StyledHeading$1, null,
|
|
449
|
+
React__default.createElement(Heading, { tag: siteType === 'marryBaby' ? 'h5' : 'h6', as: "p", fontWeight: "semibold" }, headingTitle)), menuItems === null || menuItems === void 0 ? void 0 :
|
|
450
|
+
menuItems.slice(0, 6).map((item, index) => {
|
|
451
|
+
const href = (item === null || item === void 0 ? void 0 : item.link)
|
|
452
|
+
? (item === null || item === void 0 ? void 0 : item.link.startsWith('http'))
|
|
453
|
+
? item === null || item === void 0 ? void 0 : item.link
|
|
454
|
+
: `${UrlFE}/${item === null || item === void 0 ? void 0 : item.link.split('/').filter(Boolean).join('/')}/`
|
|
455
|
+
: '/';
|
|
456
|
+
return (React__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 }, (!isInternalLink(href) && {
|
|
457
|
+
target: '_blank',
|
|
458
|
+
}), { "data-theme": siteType, key: index, onClick: onClosePopup }),
|
|
459
|
+
React__default.createElement("div", { className: "icon" },
|
|
460
|
+
React__default.createElement("img", { loading: "lazy", alt: item.name, src: item.thumbnail || '/images/avatar.jpg', style: {
|
|
461
|
+
width: 32,
|
|
462
|
+
height: 32,
|
|
463
|
+
maxWidth: 32,
|
|
464
|
+
maxHeight: 32,
|
|
465
|
+
overflow: 'hidden',
|
|
466
|
+
} })),
|
|
467
|
+
React__default.createElement(NewWrapper, { isNew: item.isNew },
|
|
468
|
+
React__default.createElement("div", { style: {
|
|
469
|
+
padding: '0 0.4rem',
|
|
470
|
+
paddingRight: item.isNew ? 10 : 0,
|
|
471
|
+
} },
|
|
472
|
+
React__default.createElement("p", { className: "name" }, item.name),
|
|
473
|
+
item.isMobileAppTool && (React__default.createElement(Text, { size: "n1", color: theme.fn.primaryColor(), weight: "regular" }, t('home.calcWithApp'))))),
|
|
474
|
+
item.isMobileAppTool && (React__default.createElement(StyledIconNav, null,
|
|
475
|
+
React__default.createElement(Phone, { className: "phone-icon", size: 16 }))),
|
|
476
|
+
React__default.createElement(StyledIconNav, { className: "arrow-icon" },
|
|
477
|
+
React__default.createElement("img", { src: CommonGAssets.getAssetPath('chevronRight.svg'), style: { width: '16px', height: '16px' }, loading: "lazy" }))));
|
|
478
|
+
})),
|
|
487
479
|
titleBtnViewMore && (React__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 },
|
|
488
480
|
React__default.createElement(StyledItemAll, { onClick: onClosePopup, "data-theme": siteType, "data-is-heading-category": false },
|
|
489
481
|
titleBtnViewMore,
|
|
@@ -493,7 +485,7 @@ const Categories = ({ hrefViewMore, titleBtnViewMore, UrlFE, onClosePopup, menuI
|
|
|
493
485
|
: CommonGAssets.getAssetPath('chevronRightActive.svg'), style: { width: '16px', height: '16px' }, loading: "lazy" })))))));
|
|
494
486
|
};
|
|
495
487
|
|
|
496
|
-
const StyledContainerItems$
|
|
488
|
+
const StyledContainerItems$5 = styled.div `
|
|
497
489
|
display: grid;
|
|
498
490
|
|
|
499
491
|
grid-template-columns: repeat(3, 1fr);
|
|
@@ -818,7 +810,7 @@ const CareSpotlights = ({ spotlights = [], hrefViewMore }) => {
|
|
|
818
810
|
const { t } = useTranslations();
|
|
819
811
|
const { siteType } = useContext(NavigationContext);
|
|
820
812
|
return (React__default.createElement(Spotlights, { title: t('home.navigator.menu.spotlightHospitals') }, spotlights.length !== 0 ? (React__default.createElement(React__default.Fragment, null,
|
|
821
|
-
React__default.createElement(StyledContainerItems$
|
|
813
|
+
React__default.createElement(StyledContainerItems$5, null, spotlights === null || spotlights === void 0 ? void 0 : spotlights.slice(0, 3).map((s, index) => (React__default.createElement(Item$4, { key: index, index: index, item: s })))),
|
|
822
814
|
React__default.createElement("div", { style: {
|
|
823
815
|
position: 'absolute',
|
|
824
816
|
bottom: '6px',
|
|
@@ -828,7 +820,7 @@ const CareSpotlights = ({ spotlights = [], hrefViewMore }) => {
|
|
|
828
820
|
React__default.createElement(Button, { theme: siteType, className: "survey-contact-submit", size: "md" }, t('home.navigator.menu.care.homeButton')))))) : (React__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: CommonGAssets.getAssetPath('community.svg') }))));
|
|
829
821
|
};
|
|
830
822
|
|
|
831
|
-
const StyledContainerItems$
|
|
823
|
+
const StyledContainerItems$4 = styled.div `
|
|
832
824
|
display: grid;
|
|
833
825
|
|
|
834
826
|
grid-template-columns: repeat(4, 1fr);
|
|
@@ -894,7 +886,7 @@ const Item$3 = ({ item, index = 0 }) => {
|
|
|
894
886
|
const CategorySpotlights = ({ spotlightsList = [], hrefViewMore }) => {
|
|
895
887
|
const { t } = useTranslations();
|
|
896
888
|
const { configs: { statics }, } = useContext(NavigationContext);
|
|
897
|
-
return (React__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.createElement(StyledContainerItems$
|
|
889
|
+
return (React__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.createElement(StyledContainerItems$4, null, spotlightsList === null || spotlightsList === void 0 ? void 0 : spotlightsList.slice(0, 4).map((spotlight, index) => (React__default.createElement(Item$3, { key: index, index: index, item: {
|
|
898
890
|
id: spotlight.id,
|
|
899
891
|
link: statics.HOME_PAGE_URL + spotlight.permalink,
|
|
900
892
|
title: spotlight.name,
|
|
@@ -902,7 +894,7 @@ const CategorySpotlights = ({ spotlightsList = [], hrefViewMore }) => {
|
|
|
902
894
|
} }))))) : (React__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: CommonGAssets.getAssetPath('Spotlight.svg') }))));
|
|
903
895
|
};
|
|
904
896
|
|
|
905
|
-
const StyledContainerItems$
|
|
897
|
+
const StyledContainerItems$3 = styled.div `
|
|
906
898
|
display: grid;
|
|
907
899
|
grid-template-columns: repeat(2, 1fr);
|
|
908
900
|
grid-gap: 48px;
|
|
@@ -1054,10 +1046,10 @@ const Item$2 = ({ post, index = 0 }) => {
|
|
|
1054
1046
|
const CommunitySpotlights = ({ spotlights = [] }) => {
|
|
1055
1047
|
const { configs: { statics }, } = useContext(NavigationContext);
|
|
1056
1048
|
const { t } = useTranslations();
|
|
1057
|
-
return (React__default.createElement(Spotlights, { title: t('home.navigator.menu.trendingPosts'), viewMore: t('home.navigator.menu.trendingPosts.seeMore'), link: normalizeLink(statics.TOGETHER_URL_FE), dataEventAction: "Together See More Click" }, spotlights.length !== 0 ? (React__default.createElement(StyledContainerItems$
|
|
1049
|
+
return (React__default.createElement(Spotlights, { title: t('home.navigator.menu.trendingPosts'), viewMore: t('home.navigator.menu.trendingPosts.seeMore'), link: normalizeLink(statics.TOGETHER_URL_FE), dataEventAction: "Together See More Click" }, spotlights.length !== 0 ? (React__default.createElement(StyledContainerItems$3, null, spotlights === null || spotlights === void 0 ? void 0 : spotlights.slice(0, 4).map((p, index) => (React__default.createElement(Item$2, { index: index, post: p, key: p.id }))))) : (React__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: CommonGAssets.getAssetPath('community.svg') }))));
|
|
1058
1050
|
};
|
|
1059
1051
|
|
|
1060
|
-
const StyledContainerItems$
|
|
1052
|
+
const StyledContainerItems$2 = styled.div `
|
|
1061
1053
|
display: grid;
|
|
1062
1054
|
|
|
1063
1055
|
grid-template-columns: repeat(3, 1fr);
|
|
@@ -1097,7 +1089,7 @@ const EcomSpotlights = ({ helpfulUrls = [], }) => {
|
|
|
1097
1089
|
// const { siteType } = useContext(NavigationContext)
|
|
1098
1090
|
if (!helpfulUrls.length)
|
|
1099
1091
|
return null;
|
|
1100
|
-
return (React__default.createElement(Spotlights, { title: t('home.navigator.menu.spotlightEcom') }, helpfulUrls.length !== 0 ? (React__default.createElement(StyledContainerItems$
|
|
1092
|
+
return (React__default.createElement(Spotlights, { title: t('home.navigator.menu.spotlightEcom') }, helpfulUrls.length !== 0 ? (React__default.createElement(StyledContainerItems$2, null, helpfulUrls === null || helpfulUrls === void 0 ? void 0 : helpfulUrls.slice(0, 5).map((s, index) => (React__default.createElement(Item$1, { key: index, index: index, item: s }))))) : (React__default.createElement(React__default.Fragment, null)
|
|
1101
1093
|
// <SpotlightNoData
|
|
1102
1094
|
// title={t('home.navigator.menu.ecom.noDatas.title')}
|
|
1103
1095
|
// description={t('home.navigator.menu.ecom.noDatas.description')}
|
|
@@ -1108,7 +1100,7 @@ const EcomSpotlights = ({ helpfulUrls = [], }) => {
|
|
|
1108
1100
|
)));
|
|
1109
1101
|
};
|
|
1110
1102
|
|
|
1111
|
-
const StyledContainerItems = styled.div `
|
|
1103
|
+
const StyledContainerItems$1 = styled.div `
|
|
1112
1104
|
display: grid;
|
|
1113
1105
|
|
|
1114
1106
|
grid-template-columns: repeat(3, 1fr);
|
|
@@ -1510,15 +1502,32 @@ const ToolSpotlights = ({ hrefViewMore, spotlightHealthTools = [] }) => {
|
|
|
1510
1502
|
const marryBabyCardColor = ['pink', 'orange', 'green'];
|
|
1511
1503
|
const { siteType } = useContext(NavigationContext);
|
|
1512
1504
|
return (React__default.createElement(Spotlights, { title: t('home.navigator.menu.spotlightTools') },
|
|
1513
|
-
spotlightHealthTools.length !== 0 && (React__default.createElement(StyledContainerItems, null, spotlightHealthTools === null || spotlightHealthTools === void 0 ? void 0 : spotlightHealthTools.slice(0, 3).map((item, index) => siteType === 'marryBaby' ? (React__default.createElement(ItemMarryBaby, { key: index, index: index, item: item, color: marryBabyCardColor[index] })) : (React__default.createElement(Item, { key: index, index: index, item: item }))))),
|
|
1505
|
+
spotlightHealthTools.length !== 0 && (React__default.createElement(StyledContainerItems$1, null, spotlightHealthTools === null || spotlightHealthTools === void 0 ? void 0 : spotlightHealthTools.slice(0, 3).map((item, index) => siteType === 'marryBaby' ? (React__default.createElement(ItemMarryBaby, { key: index, index: index, item: item, color: marryBabyCardColor[index] })) : (React__default.createElement(Item, { key: index, index: index, item: item }))))),
|
|
1514
1506
|
spotlightHealthTools.length === 0 && (React__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: CommonGAssets.getAssetPath('community.svg') }))));
|
|
1515
1507
|
};
|
|
1516
1508
|
|
|
1509
|
+
const StyledContainerItems = styled.div `
|
|
1510
|
+
display: grid;
|
|
1511
|
+
|
|
1512
|
+
grid-template-columns: repeat(4, 1fr);
|
|
1513
|
+
gap: 24px;
|
|
1514
|
+
${MediaQueries.tdDown} {
|
|
1515
|
+
gap: 12px;
|
|
1516
|
+
grid-template-columns: 1fr;
|
|
1517
|
+
}
|
|
1518
|
+
`;
|
|
1519
|
+
|
|
1520
|
+
const VideoSpotlights = ({ spotlightsList = [], layout = 'default', }) => {
|
|
1521
|
+
const { t } = useTranslations();
|
|
1522
|
+
const { configs: { statics }, } = useContext(NavigationContext);
|
|
1523
|
+
return (React__default.createElement(Spotlights, { title: t('home.navigator.menu.lastestVideos') }, spotlightsList.length !== 0 ? (React__default.createElement(StyledContainerItems, null, spotlightsList === null || spotlightsList === void 0 ? void 0 : spotlightsList.slice(0, 4).map((video, index) => (React__default.createElement(VideoItem, { key: index, data: Object.assign(Object.assign({}, video), { type: VideoType.SHORTS }), layout: layout === 'default' ? 'overlay' : 'horizon', redirectToLandingPage: true }))))) : (React__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: CommonGAssets.getAssetPath('Spotlight.svg') }))));
|
|
1524
|
+
};
|
|
1525
|
+
|
|
1517
1526
|
const MenuServiceList = ({ closePopup, menuItems = [] }) => {
|
|
1518
1527
|
var _a, _b;
|
|
1519
1528
|
const {
|
|
1520
1529
|
// siteType,
|
|
1521
|
-
ssrMenuContent: { categories, healthTools, care, together, ecom }, activeMenuService, configs: { statics }, locale, } = useContext(NavigationContext);
|
|
1530
|
+
ssrMenuContent: { categories, healthTools, care, together, ecom, videos }, activeMenuService, configs: { statics }, locale, } = useContext(NavigationContext);
|
|
1522
1531
|
const { t } = useTranslations();
|
|
1523
1532
|
return (React__default.createElement(StyledMasterMenuContainer, { id: 'categories-menu' },
|
|
1524
1533
|
React__default.createElement(StyledWrapper, null,
|
|
@@ -1527,12 +1536,15 @@ const MenuServiceList = ({ closePopup, menuItems = [] }) => {
|
|
|
1527
1536
|
activeMenuService === 'tools' && (React__default.createElement(ToolSpotlights, { spotlightHealthTools: healthTools === null || healthTools === void 0 ? void 0 : healthTools.spotlights, hrefViewMore: `${statics.HOME_PAGE_URL}${locale === 'tl-PH' ? '/fil' : ''}${((_a = STATIC_PAGES[locale]) === null || _a === void 0 ? void 0 : _a.HEALTH_TOOLS) || ''}` })),
|
|
1528
1537
|
activeMenuService === 'care' && (React__default.createElement(CareSpotlights, { spotlights: care === null || care === void 0 ? void 0 : care.spotlights, hrefViewMore: `${statics.CARE_URL_FE}/${(_b = LOCALIZED_SLUGS[locale]) === null || _b === void 0 ? void 0 : _b.SPECIALTIES}` })),
|
|
1529
1538
|
activeMenuService === 'together' && (React__default.createElement(CommunitySpotlights, { spotlights: together === null || together === void 0 ? void 0 : together.spotlights })),
|
|
1530
|
-
activeMenuService === 'ecom' && (React__default.createElement(EcomSpotlights, { helpfulUrls: ecom === null || ecom === void 0 ? void 0 : ecom.helpfulUrls }))
|
|
1539
|
+
activeMenuService === 'ecom' && (React__default.createElement(EcomSpotlights, { helpfulUrls: ecom === null || ecom === void 0 ? void 0 : ecom.helpfulUrls })),
|
|
1540
|
+
activeMenuService === 'video' && (React__default.createElement(VideoSpotlights, { spotlightsList: videos === null || videos === void 0 ? void 0 : videos.spotlights, layout: "stack" })))));
|
|
1531
1541
|
};
|
|
1532
1542
|
|
|
1533
1543
|
const HamburgerMenu = ({ menuItems }) => {
|
|
1534
|
-
const { siteType,
|
|
1535
|
-
|
|
1544
|
+
const { siteType,
|
|
1545
|
+
// configs: { enableSearchBar },
|
|
1546
|
+
} = useContext(NavigationContext);
|
|
1547
|
+
const { containerRef, onContainerFocus, onContainerBlur, onButtonMouseDown, onClose, } = useCSSFocusPopupHelper();
|
|
1536
1548
|
return (React__default.createElement(DisplayWrapper, { mediaQueryKey: "mbDown" },
|
|
1537
1549
|
React__default.createElement("header", { className: styles$2.menuContainer },
|
|
1538
1550
|
React__default.createElement("div", { className: styles$2.menuIcon, ref: containerRef, role: "button", tabIndex: 0, onBlur: onContainerBlur, onFocus: onContainerFocus },
|
|
@@ -1651,7 +1663,7 @@ const StyledHeader = styled.div `
|
|
|
1651
1663
|
${MediaQueries.mbDown} {
|
|
1652
1664
|
position: relative;
|
|
1653
1665
|
height: 56px;
|
|
1654
|
-
background
|
|
1666
|
+
background: white;
|
|
1655
1667
|
gap: 2px;
|
|
1656
1668
|
}
|
|
1657
1669
|
|
|
@@ -1960,6 +1972,26 @@ const checkAvailableSpotlight = (spotlight) => {
|
|
|
1960
1972
|
return false;
|
|
1961
1973
|
}
|
|
1962
1974
|
return true;
|
|
1975
|
+
};
|
|
1976
|
+
const formatVideoItem = (data) => {
|
|
1977
|
+
if (typeof data === 'undefined' || !data)
|
|
1978
|
+
return null;
|
|
1979
|
+
return {
|
|
1980
|
+
id: data.ID || '',
|
|
1981
|
+
videoId: data.video_id || '',
|
|
1982
|
+
url: data.video_url || '',
|
|
1983
|
+
title: data.video_title || '',
|
|
1984
|
+
type: data.type || VideoType.VIDEO,
|
|
1985
|
+
totalView: data.total_view || 0,
|
|
1986
|
+
description: data.description || '',
|
|
1987
|
+
createTime: data.create_time || '',
|
|
1988
|
+
duration: data.duration || 0,
|
|
1989
|
+
image: data.image || '',
|
|
1990
|
+
imageMedium: data.image_medium || '',
|
|
1991
|
+
imageThumbnail: data.image_thumbnail || '',
|
|
1992
|
+
active: false,
|
|
1993
|
+
articleLink: data.article_link || '',
|
|
1994
|
+
};
|
|
1963
1995
|
};
|
|
1964
1996
|
|
|
1965
1997
|
var styles = {"gridContainer":"q3nL5cp","container":"_2DNf80G","closeWrapper":"Q-glX-n"};
|
|
@@ -2050,10 +2082,35 @@ const MenuHealthToolsList = ({ locale, onClose, isOpen, spotlightHealthTools = [
|
|
|
2050
2082
|
React__default.createElement(ToolSpotlights, { spotlightHealthTools: spotlightHealthTools, hrefViewMore: hrefViewMore })));
|
|
2051
2083
|
};
|
|
2052
2084
|
|
|
2085
|
+
const MenuVideoList = ({ spotlightsList = [], onClose, isOpen }) => {
|
|
2086
|
+
const { t } = useTranslations();
|
|
2087
|
+
const { locale, configs: { statics }, } = useContext(NavigationContext);
|
|
2088
|
+
const listing = useMemo(() => [
|
|
2089
|
+
{
|
|
2090
|
+
name: t('home.navigator.menu.videos'),
|
|
2091
|
+
link: `${statics.VIDEO_URL_FE}/video/`,
|
|
2092
|
+
thumbnail: CommonGAssets.getAssetPath('nav-icons/video.svg'),
|
|
2093
|
+
},
|
|
2094
|
+
{
|
|
2095
|
+
name: t('home.navigator.menu.shorts'),
|
|
2096
|
+
link: `${statics.VIDEO_URL_FE}/short/`,
|
|
2097
|
+
thumbnail: CommonGAssets.getAssetPath('nav-icons/short.svg'),
|
|
2098
|
+
},
|
|
2099
|
+
{
|
|
2100
|
+
name: t('home.navigator.menu.podcasts'),
|
|
2101
|
+
link: `${statics.VIDEO_URL_FE}/podcast/`,
|
|
2102
|
+
thumbnail: CommonGAssets.getAssetPath('nav-icons/podcast.svg'),
|
|
2103
|
+
},
|
|
2104
|
+
], []);
|
|
2105
|
+
return (React__default.createElement(PopupWrapper, { onClosePopup: onClose, isDisplay: isOpen, isNavMenu: true },
|
|
2106
|
+
React__default.createElement(Categories, { hrefViewMore: `${statics.HOME_PAGE_URL}${locale === 'tl-PH' ? '/fil' : ''}/videos/`, UrlFE: statics.HOME_PAGE_URL, onClosePopup: onClose, titleBtnViewMore: t('home.navigator.menuItem.allVideos'), menuItems: listing, headingTitle: t('home.navigator.menuItem.videoCategories') }),
|
|
2107
|
+
React__default.createElement(VideoSpotlights, { spotlightsList: spotlightsList })));
|
|
2108
|
+
};
|
|
2109
|
+
|
|
2053
2110
|
const ItemNavButton = ({ item, color = 'blue' }) => {
|
|
2054
2111
|
const [Lottie, setLottie] = useState();
|
|
2055
2112
|
const [iconJson, setIconJson] = useState();
|
|
2056
|
-
const { locale, ssrMenuContent: { categories, healthTools, care, together }, } = useContext(NavigationContext);
|
|
2113
|
+
const { locale, ssrMenuContent: { categories, healthTools, care, together, videos }, } = useContext(NavigationContext);
|
|
2057
2114
|
const { containerRef, onButtonMouseDown, onClose } = useCSSFocusPopupHelper({
|
|
2058
2115
|
allowBgScroll: true,
|
|
2059
2116
|
});
|
|
@@ -2066,7 +2123,7 @@ const ItemNavButton = ({ item, color = 'blue' }) => {
|
|
|
2066
2123
|
});
|
|
2067
2124
|
}
|
|
2068
2125
|
if (item.id === 'care') {
|
|
2069
|
-
import('./doctor-
|
|
2126
|
+
import('./doctor-a8bf8262.js').then((data) => {
|
|
2070
2127
|
if (data === null || data === void 0 ? void 0 : data.default)
|
|
2071
2128
|
setIconJson(() => data.default);
|
|
2072
2129
|
});
|
|
@@ -2120,7 +2177,7 @@ const ItemNavButton = ({ item, color = 'blue' }) => {
|
|
|
2120
2177
|
}, style: Object.assign(Object.assign({}, buttonStyle), { padding: '6px 8px 6px 8px', color: '#262626', height: 'unset' }), size: "sm", rightIcon: item.popupType ? (React__default.createElement("div", { className: styles$1.menuIconWrapper },
|
|
2121
2178
|
React__default.createElement("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none" },
|
|
2122
2179
|
React__default.createElement("path", { d: "M11.5 7.5L9 10L6.5 7.5", stroke: "#202135", strokeWidth: "1.33", strokeLinecap: "round", strokeLinejoin: "round" })))) : (React__default.createElement("div", null)), onMouseDown: onButtonMouseDown }, item.name),
|
|
2123
|
-
item.popupType === 'categories' ? (React__default.createElement(MenuCategoriesList, { categories: categories === null || categories === void 0 ? void 0 : categories.items, spotlightsList: categories === null || categories === void 0 ? void 0 : categories.spotlights, onClose: onClose })) : item.popupType === 'tools' ? (React__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, onClose: onClose })) : item.popupType === 'together' ? (React__default.createElement(MenuCommunitiesList, { communities: together === null || together === void 0 ? void 0 : together.items, spotlights: together === null || together === void 0 ? void 0 : together.spotlights, onClose: onClose })) : item.popupType === 'care' ? (React__default.createElement(MenuCareList, { careSpecialties: care === null || care === void 0 ? void 0 : care.items, spotlights: care === null || care === void 0 ? void 0 : care.spotlights, onClose: onClose })) : null));
|
|
2180
|
+
item.popupType === 'categories' ? (React__default.createElement(MenuCategoriesList, { categories: categories === null || categories === void 0 ? void 0 : categories.items, spotlightsList: categories === null || categories === void 0 ? void 0 : categories.spotlights, onClose: onClose })) : item.popupType === 'tools' ? (React__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, onClose: onClose })) : item.popupType === 'together' ? (React__default.createElement(MenuCommunitiesList, { communities: together === null || together === void 0 ? void 0 : together.items, spotlights: together === null || together === void 0 ? void 0 : together.spotlights, onClose: onClose })) : item.popupType === 'care' ? (React__default.createElement(MenuCareList, { careSpecialties: care === null || care === void 0 ? void 0 : care.items, spotlights: care === null || care === void 0 ? void 0 : care.spotlights, onClose: onClose })) : item.popupType === 'video' ? (React__default.createElement(MenuVideoList, { spotlightsList: videos === null || videos === void 0 ? void 0 : videos.spotlights, onClose: onClose })) : null));
|
|
2124
2181
|
};
|
|
2125
2182
|
|
|
2126
2183
|
const StyleInput = styled(Input) `
|
|
@@ -2225,6 +2282,7 @@ const NavigationBar = ({ onTopBarAppears, languageMenu, menuItems, logoComponent
|
|
|
2225
2282
|
const { siteType, isMobile = false, locale, sitewideBanner, sitewideBannerShown = true, sponsorComponent, isHomepage = false, onBookingClick, currentUrl, onLoginClick, cartNumber,
|
|
2226
2283
|
// ssrMenuContent: { categories, healthTools, care, together },
|
|
2227
2284
|
configs: { statics, enableNavCareBooking, enableSearchBar,
|
|
2285
|
+
// enableNavVideo,
|
|
2228
2286
|
// enableNavCare,
|
|
2229
2287
|
// enableProfileMyHealth,
|
|
2230
2288
|
// enableProfileMySaved,
|
|
@@ -2294,7 +2352,7 @@ const NavigationBar = ({ onTopBarAppears, languageMenu, menuItems, logoComponent
|
|
|
2294
2352
|
const careNavItem = menuItems.find((m) => m.id === 'care');
|
|
2295
2353
|
return (React__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 },
|
|
2296
2354
|
sitewideBanner,
|
|
2297
|
-
React__default.createElement(StyledHeader, { "data-site-type": siteType
|
|
2355
|
+
React__default.createElement(StyledHeader, { "data-site-type": siteType },
|
|
2298
2356
|
React__default.createElement(StyledLeftGroup, { "data-site-type": siteType },
|
|
2299
2357
|
isMobile && React__default.createElement(HamburgerMenu, { menuItems: menuItems }),
|
|
2300
2358
|
logoComponent || (React__default.createElement("a", { style: {
|
|
@@ -2364,9 +2422,9 @@ const NavigationBar = ({ onTopBarAppears, languageMenu, menuItems, logoComponent
|
|
|
2364
2422
|
const NavigtionSearch = ({ siteType, projectType, isMobile = false, isHomepage = false, }) => (React__default.createElement(DisplayWrapper, { mediaQueryKey: "mbUp", className: `${siteType === 'marryBaby' ? 'marry-baby' : ''} ${isHomepage ? 'block-show' : ''}` },
|
|
2365
2423
|
React__default.createElement(SearchInput, { id: "desktop", projectType: projectType, isMobile: isMobile, isHomepage: isHomepage })));
|
|
2366
2424
|
const NavigationMenu = ({ menuItems }) => {
|
|
2367
|
-
const { siteType, locale, ssrMenuContent: { categories, healthTools, care, together }, } = useContext(NavigationContext);
|
|
2425
|
+
const { siteType, locale, ssrMenuContent: { categories, healthTools, care, together, videos }, } = useContext(NavigationContext);
|
|
2368
2426
|
return (React__default.createElement(DisplayWrapper, { mediaQueryKey: "mbUp", style: { height: '100%' } },
|
|
2369
|
-
React__default.createElement(StyledWrapMenuItems, { "data-site-type": siteType }, menuItems === null || menuItems === void 0 ? void 0 : menuItems.map((menuItem, index) => (React__default.createElement(ItemMenu, { key: index, item: menuItem, menu: menuItem.popupType === 'categories' ? (React__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.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.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.createElement(MenuCareList, { careSpecialties: care === null || care === void 0 ? void 0 : care.items, spotlights: care === null || care === void 0 ? void 0 : care.spotlights })) : null }))))));
|
|
2427
|
+
React__default.createElement(StyledWrapMenuItems, { "data-site-type": siteType }, menuItems === null || menuItems === void 0 ? void 0 : menuItems.map((menuItem, index) => (React__default.createElement(ItemMenu, { key: index, item: menuItem, menu: menuItem.popupType === 'categories' ? (React__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.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.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.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.createElement(MenuVideoList, { spotlightsList: videos === null || videos === void 0 ? void 0 : videos.spotlights })) : null }))))));
|
|
2370
2428
|
};
|
|
2371
2429
|
|
|
2372
2430
|
const useHeaderHeight = ({ hasSponsoredBanners, isSponsored, isShowingSiteWideBanner, isMobile, }) => {
|
|
@@ -2467,7 +2525,7 @@ const useInsider = () => {
|
|
|
2467
2525
|
|
|
2468
2526
|
const useNavServices = () => {
|
|
2469
2527
|
const { t } = useTranslations();
|
|
2470
|
-
const { siteType, locale, configs: { enableNavDiscover, enableNavHealthTools, enableNavCare, enableNavTogether, enableNavEcom,
|
|
2528
|
+
const { siteType, locale, configs: { enableNavDiscover, enableNavHealthTools, enableNavCare, enableNavTogether, enableNavEcom, enableNavVideo, statics, }, } = useContext(NavigationContext);
|
|
2471
2529
|
const isMarryBaby = siteType === 'marryBaby';
|
|
2472
2530
|
const services = useMemo(() => {
|
|
2473
2531
|
var _a;
|
|
@@ -2476,13 +2534,22 @@ const useNavServices = () => {
|
|
|
2476
2534
|
_services.push({
|
|
2477
2535
|
name: t('home.navigator.menuItem.discover'),
|
|
2478
2536
|
id: 'categories',
|
|
2479
|
-
link: `${statics.HOME_PAGE_URL}${locale === 'tl-PH' ? '/fil' : ''}/categories
|
|
2537
|
+
link: `${statics.HOME_PAGE_URL}${locale === 'tl-PH' ? '/fil' : ''}/categories/`,
|
|
2480
2538
|
niceName: '',
|
|
2481
2539
|
thumbnail: isMarryBaby
|
|
2482
2540
|
? CommonGAssets.getAssetPath('categories-mb.svg')
|
|
2483
2541
|
: CommonGAssets.getAssetPath('nav-icons/discover.svg'),
|
|
2484
2542
|
popupType: 'categories',
|
|
2485
2543
|
});
|
|
2544
|
+
enableNavVideo &&
|
|
2545
|
+
_services.push({
|
|
2546
|
+
name: t('home.navigator.menuItem.video'),
|
|
2547
|
+
id: 'video',
|
|
2548
|
+
link: `${statics.HOME_PAGE_URL}${locale === 'tl-PH' ? '/fil' : ''}/videos/`,
|
|
2549
|
+
niceName: '',
|
|
2550
|
+
thumbnail: CommonGAssets.getAssetPath('nav-icons/video.svg'),
|
|
2551
|
+
popupType: 'video',
|
|
2552
|
+
});
|
|
2486
2553
|
enableNavHealthTools &&
|
|
2487
2554
|
_services.push({
|
|
2488
2555
|
name: t('home.navigator.menuItem.healthTools'),
|
|
@@ -2519,22 +2586,8 @@ const useNavServices = () => {
|
|
|
2519
2586
|
thumbnail: CommonGAssets.getAssetPath('nav-icons/care.svg'),
|
|
2520
2587
|
popupType: locale === 'id-ID' ? 'care' : null,
|
|
2521
2588
|
});
|
|
2522
|
-
enableNavTarotGame &&
|
|
2523
|
-
_services.push({
|
|
2524
|
-
name: 'MỚI - Tarot cho mẹ bầu',
|
|
2525
|
-
id: 'game',
|
|
2526
|
-
link: normalizeLinkSlash(statics.HOME_PAGE_URL + '/xem-bai-tarot-online/'),
|
|
2527
|
-
thumbnail: CommonGAssets.getAssetPath('play-card.svg'),
|
|
2528
|
-
popupType: 'none',
|
|
2529
|
-
});
|
|
2530
2589
|
return _services;
|
|
2531
|
-
}, [
|
|
2532
|
-
locale,
|
|
2533
|
-
enableNavCare,
|
|
2534
|
-
enableNavTogether,
|
|
2535
|
-
enableNavEcom,
|
|
2536
|
-
enableNavTarotGame,
|
|
2537
|
-
]);
|
|
2590
|
+
}, [locale, enableNavCare, enableNavTogether, enableNavEcom]);
|
|
2538
2591
|
return services;
|
|
2539
2592
|
};
|
|
2540
2593
|
|
|
@@ -2593,17 +2646,19 @@ const NavigationV2 = (props) => {
|
|
|
2593
2646
|
React__default.createElement(_NavigationV2, Object.assign({}, propsWithDefaultValues))));
|
|
2594
2647
|
};
|
|
2595
2648
|
const getNavMenuContent = (locale) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2596
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
2649
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
|
|
2597
2650
|
const res = {};
|
|
2598
2651
|
const isMarryBaby = locale === 'vi-VN_MB';
|
|
2599
2652
|
try {
|
|
2600
2653
|
const customLang = locale === 'tl-PH' ? 'lang=fil' : '';
|
|
2601
2654
|
try {
|
|
2602
|
-
const [categories, spotlights, healthtools, healthtoolsFavorites] = yield Promise.all([
|
|
2655
|
+
const [categories, spotlights, healthtools, healthtoolsFavorites, videos,] = yield Promise.all([
|
|
2603
2656
|
fetch(normalizeLinkSlash(`${getDiscoverApiDomain(locale)}/wp-json/api/categories${customLang ? '?' + customLang : ''}`)).then((res) => res.json()),
|
|
2604
2657
|
fetch(normalizeLinkSlash(`${getDiscoverApiDomain(locale)}/wp-json/api/spotlights?per_page=10&order_by=start_date${customLang ? '&' + customLang : ''}`)).then((res) => res.json()),
|
|
2605
2658
|
fetch(normalizeLinkSlash(`${getDiscoverApiDomain(locale)}/wp-json/api/${isMarryBaby ? 'health-tools' : 'healthtools'}${customLang ? '?' + customLang : ''}`)).then((res) => res.json()),
|
|
2606
2659
|
fetch(normalizeLinkSlash(`${getDiscoverApiDomain(locale)}/wp-json/api/${isMarryBaby ? 'health-tools' : 'healthtools'}/favorites${customLang ? '?' + customLang : ''}`)).then((res) => res.json()),
|
|
2660
|
+
locale === LOCALE.Vietnam &&
|
|
2661
|
+
fetch(normalizeLinkSlash(`${getDiscoverApiDomain(locale)}/wp-json/api/video/navigation`)).then((res) => res.json()),
|
|
2607
2662
|
]);
|
|
2608
2663
|
res.categories = {
|
|
2609
2664
|
items: ((_b = (_a = categories === null || categories === void 0 ? void 0 : categories.data) === null || _a === void 0 ? void 0 : _a.map) === null || _b === void 0 ? void 0 : _b.call(_a, formatCategory)) || [],
|
|
@@ -2613,8 +2668,11 @@ const getNavMenuContent = (locale) => __awaiter(void 0, void 0, void 0, function
|
|
|
2613
2668
|
items: ((_h = (_g = healthtools === null || healthtools === void 0 ? void 0 : healthtools.data) === null || _g === void 0 ? void 0 : _g.map) === null || _h === void 0 ? void 0 : _h.call(_g, formatHealthTool)) || [],
|
|
2614
2669
|
spotlights: ((_k = (_j = healthtoolsFavorites === null || healthtoolsFavorites === void 0 ? void 0 : healthtoolsFavorites.data) === null || _j === void 0 ? void 0 : _j.map) === null || _k === void 0 ? void 0 : _k.call(_j, formatHealthTool)) || [],
|
|
2615
2670
|
};
|
|
2671
|
+
res.videos = {
|
|
2672
|
+
spotlights: ((_m = (_l = videos === null || videos === void 0 ? void 0 : videos.data) === null || _l === void 0 ? void 0 : _l.videos) !== null && _m !== void 0 ? _m : []).map(formatVideoItem),
|
|
2673
|
+
};
|
|
2616
2674
|
}
|
|
2617
|
-
catch (
|
|
2675
|
+
catch (_1) { }
|
|
2618
2676
|
if (isMarryBaby || TOGETHER_LOCALES.includes(locale)) {
|
|
2619
2677
|
try {
|
|
2620
2678
|
const [communities, spotlightPosts] = yield Promise.all([
|
|
@@ -2622,11 +2680,11 @@ const getNavMenuContent = (locale) => __awaiter(void 0, void 0, void 0, function
|
|
|
2622
2680
|
fetch(normalizeLinkSlash(`${getTogetherApiDomain()}/api/v1/options?website_url=https://${domainLocales[locale]}&meta_key=popular_post`)).then((res) => res.json()),
|
|
2623
2681
|
]);
|
|
2624
2682
|
res.together = {
|
|
2625
|
-
items: ((
|
|
2626
|
-
spotlights: ((
|
|
2683
|
+
items: ((_q = (_p = (_o = communities === null || communities === void 0 ? void 0 : communities.data) === null || _o === void 0 ? void 0 : _o.communities) === null || _p === void 0 ? void 0 : _p.map) === null || _q === void 0 ? void 0 : _q.call(_p, formatCommunity)) || [],
|
|
2684
|
+
spotlights: ((_t = (_s = (_r = spotlightPosts === null || spotlightPosts === void 0 ? void 0 : spotlightPosts.data) === null || _r === void 0 ? void 0 : _r.posts) === null || _s === void 0 ? void 0 : _s.map) === null || _t === void 0 ? void 0 : _t.call(_s, formatPost)) || [],
|
|
2627
2685
|
};
|
|
2628
2686
|
}
|
|
2629
|
-
catch (
|
|
2687
|
+
catch (_2) { }
|
|
2630
2688
|
}
|
|
2631
2689
|
if (CARE_LOCALES.includes(locale)) {
|
|
2632
2690
|
try {
|
|
@@ -2637,11 +2695,11 @@ const getNavMenuContent = (locale) => __awaiter(void 0, void 0, void 0, function
|
|
|
2637
2695
|
`/api/options/setting_menu?site=${domainLocales[locale]}&type=1`)).then((res) => res.json()),
|
|
2638
2696
|
]);
|
|
2639
2697
|
res.care = {
|
|
2640
|
-
items: ((
|
|
2641
|
-
spotlights: ((
|
|
2698
|
+
items: ((_x = (_w = (_v = (_u = specialties === null || specialties === void 0 ? void 0 : specialties._data) === null || _u === void 0 ? void 0 : _u.setting_menu) === null || _v === void 0 ? void 0 : _v.menu_specialty) === null || _w === void 0 ? void 0 : _w.map) === null || _x === void 0 ? void 0 : _x.call(_w, formatSpecialties)) || [],
|
|
2699
|
+
spotlights: ((_0 = (_z = (_y = hospitals === null || hospitals === void 0 ? void 0 : hospitals._data.setting_menu) === null || _y === void 0 ? void 0 : _y.menu_hospital) === null || _z === void 0 ? void 0 : _z.map) === null || _0 === void 0 ? void 0 : _0.call(_z, formatHospital)) || [],
|
|
2642
2700
|
};
|
|
2643
2701
|
}
|
|
2644
|
-
catch (
|
|
2702
|
+
catch (_3) { }
|
|
2645
2703
|
}
|
|
2646
2704
|
}
|
|
2647
2705
|
catch (e) {
|