@hhgtech/hhg-components 1.29.536 → 1.29.537-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-ff78f6e6.js → InputDate-e2c42c9c.js} +5 -5
- package/build/{LastPeriod-ceca4869.js → LastPeriod-9cc3ce1c.js} +1 -1
- package/build/{MobileBottomNavigationIcon-5e334b1e.js → MobileBottomNavigationIcon-7f7f9e8c.js} +3 -3
- package/build/{SiteWideBanner-428b0eed.js → SiteWideBanner-c2efb851.js} +11 -11
- package/build/{Spinner-29eba46b.js → Spinner-a75096f7.js} +1 -1
- package/build/{WhatsApp-fedf6866.js → WhatsApp-3913a0cf.js} +1 -1
- package/build/adapters.js +20 -20
- package/build/atoms.js +54 -54
- package/build/babyGrowth.js +86 -86
- package/build/cache.js +2 -2
- package/build/care.js +22 -22
- package/build/careBookingSearchBar.js +14 -14
- package/build/careBookingSearchBarV2.js +19 -19
- package/build/components/atoms/drawerBottom/index.d.ts +6 -3
- package/build/components/mantine/modal/index.d.ts +3 -3
- package/build/components/molecules/healthTools/form/bmiForm/UnitPicker.d.ts +4 -5
- package/build/components/molecules/healthTools/form/bmiForm/index.d.ts +2 -1
- package/build/components/molecules/index.d.ts +5 -1
- package/build/components/molecules/popupBoostArticleCard/boostCardArticleAuthorName.d.ts +10 -0
- package/build/components/molecules/popupBoostArticleCard/getAuthorForBoostCard.d.ts +19 -0
- package/build/components/molecules/popupBoostArticleCard/index.d.ts +11 -0
- package/build/components/molecules/popupBoostArticleCard/index.styled.d.ts +16 -0
- package/build/components/molecules/popupBoostArticleCard/renderBoostUploadTime.d.ts +2 -0
- package/build/components/molecules/popupBoostPageView/index.d.ts +33 -0
- package/build/components/molecules/popupBoostPageView/tracking.d.ts +13 -0
- package/build/components/organisms/collectPhoneNumber/index.styled.d.ts +1 -0
- package/build/components/organisms/popupRequestConsultation/index.styled.d.ts +1 -0
- package/build/components.js +157 -154
- package/build/{constants-86dae49a.js → constants-3df257a3.js} +3 -2
- package/build/{constants-c079fc09.js → constants-a1d5ba45.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-ca9ba9aa.js → core-96382e05.js} +1 -1
- package/build/{dataTransform-c5b4c003.js → dataTransform-d87ab186.js} +1 -1
- package/build/ecom.js +5 -5
- package/build/{editor-eebb3c84.js → editor-bd09f69f.js} +11 -11
- package/build/embeddedHeathToolCards_babyGrowth.js +25 -25
- package/build/embeddedHeathToolCards_babyPoop.js +22 -22
- package/build/embeddedHeathToolCards_babyVaccine.js +24 -24
- package/build/embeddedHeathToolCards_bmi_bmi.js +28 -28
- package/build/embeddedHeathToolCards_bmrBmr.js +29 -29
- package/build/embeddedHeathToolCards_dueDate_dueDate.js +24 -24
- package/build/embeddedHeathToolCards_ovulation_ovulation.js +24 -24
- package/build/embeddedHeathToolCards_pwg_pwg.js +28 -28
- package/build/embeddedHeathToolCards_targetHeartRate.js +29 -29
- package/build/esm/{InputDate-31a84d45.js → InputDate-b6343322.js} +5 -5
- package/build/esm/{LastPeriod-6aa9ea42.js → LastPeriod-36e7e59f.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-904969d8.js → MobileBottomNavigationIcon-31a3e071.js} +3 -3
- package/build/esm/{SiteWideBanner-e16cd363.js → SiteWideBanner-0de7821d.js} +11 -11
- package/build/esm/{Spinner-c968c269.js → Spinner-ec08ef5a.js} +1 -1
- package/build/esm/{WhatsApp-9f8600f9.js → WhatsApp-e2ef0ca4.js} +1 -1
- package/build/esm/adapters.js +20 -20
- package/build/esm/atoms.js +53 -53
- package/build/esm/babyGrowth.js +86 -86
- package/build/esm/cache.js +2 -2
- package/build/esm/care.js +22 -22
- package/build/esm/careBookingSearchBar.js +14 -14
- package/build/esm/careBookingSearchBarV2.js +19 -19
- package/build/esm/components/atoms/drawerBottom/index.d.ts +6 -3
- package/build/esm/components/mantine/modal/index.d.ts +3 -3
- package/build/esm/components/molecules/healthTools/form/bmiForm/UnitPicker.d.ts +4 -5
- package/build/esm/components/molecules/healthTools/form/bmiForm/index.d.ts +2 -1
- package/build/esm/components/molecules/index.d.ts +5 -1
- package/build/esm/components/molecules/popupBoostArticleCard/boostCardArticleAuthorName.d.ts +10 -0
- package/build/esm/components/molecules/popupBoostArticleCard/getAuthorForBoostCard.d.ts +19 -0
- package/build/esm/components/molecules/popupBoostArticleCard/index.d.ts +11 -0
- package/build/esm/components/molecules/popupBoostArticleCard/index.styled.d.ts +16 -0
- package/build/esm/components/molecules/popupBoostArticleCard/renderBoostUploadTime.d.ts +2 -0
- package/build/esm/components/molecules/popupBoostPageView/index.d.ts +33 -0
- package/build/esm/components/molecules/popupBoostPageView/tracking.d.ts +13 -0
- package/build/esm/components/organisms/collectPhoneNumber/index.styled.d.ts +1 -0
- package/build/esm/components/organisms/popupRequestConsultation/index.styled.d.ts +1 -0
- package/build/esm/components.js +110 -110
- package/build/esm/{constants-0d72efc9.js → constants-031a5fce.js} +3 -3
- package/build/esm/{constants-659b2ff5.js → constants-2694967a.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-324380b2.js → core-731398c2.js} +1 -1
- package/build/esm/{dataTransform-985adbed.js → dataTransform-a0d9bc34.js} +2 -2
- package/build/esm/ecom.js +5 -5
- package/build/esm/{editor-5f5caaca.js → editor-1123b17b.js} +11 -11
- package/build/esm/embeddedHeathToolCards_babyGrowth.js +25 -25
- package/build/esm/embeddedHeathToolCards_babyPoop.js +22 -22
- package/build/esm/embeddedHeathToolCards_babyVaccine.js +24 -24
- package/build/esm/embeddedHeathToolCards_bmi_bmi.js +28 -28
- package/build/esm/embeddedHeathToolCards_bmrBmr.js +29 -29
- package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +24 -24
- package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +24 -24
- package/build/esm/embeddedHeathToolCards_pwg_pwg.js +28 -28
- package/build/esm/embeddedHeathToolCards_targetHeartRate.js +29 -29
- package/build/esm/footer.js +22 -22
- package/build/esm/gAssets.js +2 -2
- package/build/esm/{healthTools-e6cef33b.js → healthTools-ec75fc73.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +20 -20
- package/build/esm/healthToolsForm.js +36 -36
- package/build/esm/hooks.js +14 -14
- package/build/esm/i18n/translationKeys.d.ts +1 -1
- package/build/esm/i18n-values/en-PH.js +12 -0
- package/build/esm/i18n-values/hi-IN.js +12 -0
- package/build/esm/i18n-values/id-ID.js +12 -0
- package/build/esm/i18n-values/km-KH.js +12 -0
- package/build/esm/i18n-values/ms-MY.js +12 -0
- package/build/esm/i18n-values/my-MM.js +12 -0
- package/build/esm/i18n-values/th-TH.js +12 -0
- package/build/esm/i18n-values/tl-PH.js +12 -0
- package/build/esm/i18n-values/vi-VN.js +12 -0
- package/build/esm/i18n-values/vi-VN_MB.js +12 -0
- package/build/esm/i18n-values/zh-SG.js +12 -0
- package/build/esm/i18n-values/zh-TW.js +12 -0
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-73be6e73.js → index-051159aa.js} +2 -2
- package/build/esm/{index-4d145ba4.js → index-09d2cb67.js} +13 -13
- package/build/esm/{index-1ebe862c.js → index-0c11d8cb.js} +2 -2
- package/build/esm/{index-93da3200.js → index-0ef87b09.js} +3 -3
- package/build/esm/{index-2bb7f510.js → index-15173239.js} +18 -18
- package/build/esm/{index-c4d8e6ce.js → index-15ae2f64.js} +32 -32
- package/build/esm/{index-2906635b.js → index-1847d78f.js} +34 -34
- package/build/esm/{index-41966ff9.js → index-18aa0ee5.js} +3 -3
- package/build/esm/{index-c30c776e.js → index-20204619.js} +3 -3
- package/build/esm/{index-0302841d.js → index-22970d29.js} +3 -3
- package/build/esm/{index-673921f2.js → index-22f2b6db.js} +3 -3
- package/build/esm/{index-ab64efc3.js → index-2398f766.js} +6 -6
- package/build/esm/{index-7a670e71.js → index-2438891a.js} +11 -11
- package/build/esm/{index-f8eaa404.js → index-2cb583eb.js} +3 -3
- package/build/esm/{index-5ffa3f78.js → index-2ecc213c.js} +1 -1
- package/build/esm/{index-6aa38f4a.js → index-3140e763.js} +1 -1
- package/build/esm/{index-fdc2d81a.js → index-3712855a.js} +7 -7
- package/build/esm/{index-444c89db.js → index-38e12cea.js} +6 -6
- package/build/esm/{index-b0b33b44.js → index-3d22c8e3.js} +15 -15
- package/build/esm/{index-755eb9c0.js → index-43000554.js} +17 -17
- package/build/esm/{index-5e9efd56.js → index-45b39f54.js} +1 -1
- package/build/esm/{index-30d3ee51.js → index-47bd2594.js} +14 -14
- package/build/esm/{index-58da05c9.js → index-48d9d63c.js} +3 -3
- package/build/esm/{index-04f5a769.js → index-4ab448d4.js} +2 -2
- package/build/esm/{index-31d66653.js → index-4bd90da1.js} +2 -2
- package/build/esm/{index-1d613728.js → index-552314fa.js} +7 -7
- package/build/esm/{index-520f502d.js → index-5a6b957c.js} +2 -2
- package/build/esm/{index-ef45163b.js → index-5ee09ce8.js} +3 -3
- package/build/esm/{index-641bb70d.js → index-6422e4dc.js} +1 -1
- package/build/esm/{index-b716f178.js → index-651c11e5.js} +9 -9
- package/build/esm/{index-52242cb7.js → index-65d88e81.js} +16 -16
- package/build/esm/{index-444c42db.js → index-6603869c.js} +2 -2
- package/build/esm/{index-abcabf7a.js → index-667667b9.js} +14 -14
- package/build/esm/{index-231d2515.js → index-69b28b13.js} +25 -25
- package/build/esm/{index-2a13ecc2.js → index-6b76c17c.js} +2 -2
- package/build/esm/{index-d1af90ef.js → index-72f0ab61.js} +25 -24
- package/build/esm/{index-b362ec75.js → index-78dbe5f7.js} +26 -26
- package/build/esm/{index-d5731299.js → index-7d866ffb.js} +22 -22
- package/build/esm/{index-c6bbfde7.js → index-8155cc1c.js} +3 -3
- package/build/esm/{index-37ee534c.js → index-81626c09.js} +2 -2
- package/build/esm/{index-e5c6c334.js → index-820660ea.js} +1 -1
- package/build/esm/{index-044f1b3d.js → index-8299221b.js} +32 -32
- package/build/esm/{index-afdb4057.js → index-86d9ced0.js} +6 -6
- package/build/esm/{index-555fbbe4.js → index-92a47e45.js} +2 -2
- package/build/esm/{index-88c8037d.js → index-9884adb4.js} +2 -2
- package/build/esm/{index-1cb466b1.js → index-9f1b26b6.js} +6 -6
- package/build/esm/{index-6a32d067.js → index-a47baab1.js} +8 -3
- package/build/esm/{index-a2b26a52.js → index-b4fc5d36.js} +2 -2
- package/build/esm/{index-a4516e6f.js → index-b679a450.js} +4 -4
- package/build/esm/{index-27a453db.js → index-b93c507d.js} +2 -2
- package/build/esm/{index-dcaa0ec5.js → index-c191c53d.js} +15 -15
- package/build/esm/{index-305ea4ff.js → index-c5633877.js} +9 -9
- package/build/esm/{index-fadefee8.js → index-c60ed871.js} +13 -13
- package/build/esm/{index-b123cb26.js → index-cacef511.js} +2 -2
- package/build/esm/{index-1f70e65e.js → index-cb68c4eb.js} +5 -5
- package/build/esm/{index-acb0e372.js → index-cbb07c08.js} +29 -6
- package/build/esm/{index-aba99a3c.js → index-d0d54d04.js} +2 -2
- package/build/esm/{index-c008607a.js → index-d29c6b84.js} +16 -16
- package/build/esm/{index-5563937f.js → index-d40707da.js} +16 -16
- package/build/esm/{index-18596a50.js → index-d8c16b27.js} +15 -15
- package/build/esm/{index-da0a7092.js → index-d9e11dde.js} +2 -2
- package/build/esm/{index-148eaa77.js → index-da18ffd2.js} +8 -8
- package/build/esm/{index-d1a07321.js → index-db45c5bd.js} +18 -18
- package/build/esm/{index-ad262028.js → index-dc30f610.js} +12 -12
- package/build/esm/{index-7b30efdc.js → index-ddd41534.js} +14 -14
- package/build/esm/{index-b13d372a.js → index-e9673c04.js} +16 -16
- package/build/esm/{index-dbecf86b.js → index-ee248c9c.js} +1 -1
- package/build/esm/{index-b86f481e.js → index-efbbd379.js} +3 -3
- package/build/esm/{index-8a984a01.js → index-f08e609b.js} +3 -111
- package/build/esm/{index-291d0e7b.js → index-f5bacace.js} +2 -2
- package/build/esm/{index-86ba39ab.js → index-f8f1107b.js} +21 -21
- package/build/esm/index-fa32c87a.js +120 -0
- package/build/esm/index.js +131 -131
- package/build/esm/{labelSorting-7a5d39a6.js → labelSorting-92f94ef2.js} +4 -4
- package/build/esm/lead.js +37 -38
- package/build/esm/{logoIcon-4af03905.js → logoIcon-0b554ed9.js} +2 -2
- package/build/esm/mantine.js +27 -27
- package/build/esm/misc.js +19 -19
- 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 +88 -85
- package/build/esm/moleculesArticleCard.js +6 -6
- package/build/esm/moleculesArticleCardV2.js +17 -17
- package/build/esm/navigation.js +51 -50
- package/build/esm/navigationLogoutPopup.js +11 -11
- package/build/esm/navigationProfileButton.js +27 -27
- package/build/esm/onboardingV2.js +30 -30
- package/build/esm/organisms.js +65 -65
- package/build/esm/{post-3773713e.js → post-b1e83fa8.js} +2 -2
- package/build/esm/profileNavigation.js +20 -20
- package/build/esm/progressBar.js +1 -1
- package/build/esm/pwg.js +23 -23
- package/build/esm/ssoV2/api/index.d.ts +2 -0
- package/build/esm/ssoV2/api/paths.d.ts +1 -0
- package/build/esm/ssoV2/api/whatsapp.d.ts +5 -1
- package/build/esm/ssoV2/screens/components/progressBar.utils.d.ts +1 -0
- package/build/esm/ssoV2/screens/whatsAppOTP.d.ts +13 -0
- package/build/esm/ssoV2/screens/whatsAppPhoneVerify.d.ts +9 -0
- package/build/esm/ssoV2/ssoStateManager/store.d.ts +16 -0
- package/build/esm/ssoV2/stepsManager/index.d.ts +2 -0
- package/build/esm/ssoV2.js +312 -47
- package/build/esm/{store-39a0405a.js → store-fec8c367.js} +66 -4
- package/build/esm/subot.js +40 -40
- package/build/esm/surveyOrPremiumBanner.js +35 -34
- package/build/esm/surveyQuestionCard.js +11 -11
- package/build/esm/{surveyThankyouCard-553a0536.js → surveyThankyouCard-5da3d4a7.js} +5 -5
- package/build/esm/together/api/paths.d.ts +1 -0
- package/build/esm/together.js +58 -57
- package/build/esm/togetherApiPaths.js +1 -0
- package/build/esm/togetherApiUtils.js +6 -6
- package/build/esm/togetherAtoms.js +31 -31
- package/build/esm/togetherComponentGlobalContext.js +6 -6
- package/build/esm/togetherMolecules.js +53 -52
- package/build/esm/togetherMoleculesCardAuthor.js +29 -29
- package/build/esm/togetherMoleculesPostImagePreview.js +13 -13
- package/build/esm/togetherMoleculesProfileDetail.js +41 -40
- package/build/esm/togetherOrganisms.js +52 -51
- package/build/esm/togetherRichTextEditor.js +20 -20
- package/build/esm/togetherShareBox.js +12 -12
- package/build/esm/{transform-0eb7203a.js → transform-e3599601.js} +667 -32
- package/build/esm/{translationsProvider-f9118eb7.js → translationsProvider-27a4cfb9.js} +1 -1
- package/build/esm/{treePopoverMenu-cca053c7.js → treePopoverMenu-c5de0a77.js} +19 -19
- package/build/esm/types.js +2 -2
- package/build/esm/{useCartCareService-0d93f1a2.js → useCartCareService-a7395073.js} +1 -1
- package/build/esm/{useHealthToolCache-34a8ea40.js → useHealthToolCache-567aba36.js} +1 -1
- package/build/esm/{usePhoneValidator-b0d4c43f.js → usePhoneValidator-753b0d6a.js} +5 -5
- package/build/esm/{usePlacesAutocomplete-f44ebed0.js → usePlacesAutocomplete-48d5a661.js} +1 -1
- package/build/esm/useTogetherAuthRequiredAction.js +11 -10
- package/build/esm/{utils-bb8ef83e.js → utils-18a15f6e.js} +2 -2
- package/build/esm/{utils-82ce3bea.js → utils-1e513a19.js} +4 -4
- package/build/esm/{utils-29a6e3dc.js → utils-a2748de0.js} +5 -5
- package/build/esm/{utils-17cfbfab.js → utils-e1059f7f.js} +2 -2
- package/build/esm/{utils-e6a554db.js → utils-e929db0f.js} +4 -4
- package/build/esm/vaccination.js +22 -22
- package/build/footer.js +22 -22
- package/build/gAssets.js +2 -2
- package/build/{healthTools-d10cb2b9.js → healthTools-36cc7dd9.js} +1 -1
- package/build/healthToolsCardWrapper.js +20 -20
- package/build/healthToolsForm.js +36 -36
- package/build/hooks.js +14 -14
- package/build/i18n/translationKeys.d.ts +1 -1
- package/build/i18n-values/en-PH.js +12 -0
- package/build/i18n-values/hi-IN.js +12 -0
- package/build/i18n-values/id-ID.js +12 -0
- package/build/i18n-values/km-KH.js +12 -0
- package/build/i18n-values/ms-MY.js +12 -0
- package/build/i18n-values/my-MM.js +12 -0
- package/build/i18n-values/th-TH.js +12 -0
- package/build/i18n-values/tl-PH.js +12 -0
- package/build/i18n-values/vi-VN.js +12 -0
- package/build/i18n-values/vi-VN_MB.js +12 -0
- package/build/i18n-values/zh-SG.js +12 -0
- package/build/i18n-values/zh-TW.js +12 -0
- package/build/i18n.js +2 -2
- package/build/i18nV2.js +1 -1
- package/build/{index-afa3dc6b.js → index-04affef4.js} +2 -2
- package/build/{index-f854ed7a.js → index-04d4c670.js} +26 -25
- package/build/{index-44806890.js → index-09f44f08.js} +16 -16
- package/build/{index-e629093f.js → index-0be2492c.js} +1 -1
- package/build/{index-85411e49.js → index-0c81750f.js} +13 -13
- package/build/{index-f32c6987.js → index-0eff5a6f.js} +7 -7
- package/build/{index-6984b858.js → index-168f7df4.js} +6 -6
- package/build/{index-6c3c397c.js → index-17e5e057.js} +1 -1
- package/build/{index-f62272d2.js → index-1bcb5aec.js} +3 -3
- package/build/{index-c1df2b6b.js → index-1ea0bae2.js} +16 -16
- package/build/{index-4a64c7b3.js → index-25287a1c.js} +9 -9
- package/build/{index-4598f96f.js → index-26fc24d2.js} +34 -34
- package/build/{index-9426f1c1.js → index-2f5534a8.js} +14 -14
- package/build/{index-1f23a7d3.js → index-320d3bb6.js} +29 -5
- package/build/{index-065924ed.js → index-335a0782.js} +2 -2
- package/build/{index-2fbeef9c.js → index-34cde802.js} +8 -8
- package/build/{index-4c42cad6.js → index-3694431f.js} +2 -2
- package/build/{index-c3808ec2.js → index-38e6c96b.js} +2 -2
- package/build/{index-d611cedd.js → index-39bc295b.js} +14 -14
- package/build/{index-d9b4c880.js → index-4332dead.js} +32 -32
- package/build/{index-6495b599.js → index-46dc4cbd.js} +4 -4
- package/build/{index-5b366f07.js → index-48737b83.js} +1 -1
- package/build/{index-42d32482.js → index-4b7f4c43.js} +25 -25
- package/build/{index-6ecd062d.js → index-4ea7a7ec.js} +21 -21
- package/build/{index-83e3614e.js → index-4f564b94.js} +2 -1
- package/build/{index-e7b06dcf.js → index-54d30f34.js} +5 -5
- package/build/{index-ef81931a.js → index-59a0edf4.js} +16 -16
- package/build/{index-0cdb86a8.js → index-5a5426d4.js} +2 -2
- package/build/{index-0a45b1d0.js → index-5a5918e5.js} +2 -2
- package/build/{index-4a95b05a.js → index-61107ee3.js} +2 -2
- package/build/{index-27e5d692.js → index-676127d3.js} +3 -3
- package/build/index-69cd1541.js +127 -0
- package/build/{index-1ecbe263.js → index-69f99658.js} +3 -3
- package/build/{index-9c82989e.js → index-6a35d7d9.js} +13 -13
- package/build/{index-2fe3ceeb.js → index-6d717860.js} +15 -15
- package/build/{index-e44909ab.js → index-76c0f6e2.js} +7 -7
- package/build/{index-e403675e.js → index-7a46a13f.js} +16 -16
- package/build/{index-ff3b41f4.js → index-7fa1eee6.js} +3 -3
- package/build/{index-e13f79db.js → index-84ee150f.js} +3 -3
- package/build/{index-fbff8bae.js → index-85016476.js} +15 -15
- package/build/{index-cb5894a3.js → index-85f8c16f.js} +3 -3
- package/build/{index-2c7c637b.js → index-879b7605.js} +32 -32
- package/build/{index-a58bb756.js → index-89fb7f7b.js} +3 -3
- package/build/{index-9fbde625.js → index-8a2423b1.js} +3 -3
- package/build/{index-3b227ca6.js → index-8f0ff936.js} +2 -2
- package/build/{index-e98d920e.js → index-9271408c.js} +10 -10
- package/build/{index-2d4c8ad4.js → index-954df995.js} +2 -2
- package/build/{index-1cd33c7a.js → index-9629973f.js} +18 -18
- package/build/{index-c28a4099.js → index-972c2b95.js} +6 -6
- package/build/{index-6907df53.js → index-9f194061.js} +2 -2
- package/build/{index-75a0f3a2.js → index-a70cc5ce.js} +32 -9
- package/build/{index-01436280.js → index-a7a66423.js} +2 -2
- package/build/{index-9e57d5ce.js → index-aaa2ca75.js} +12 -12
- package/build/{index-710ccdb6.js → index-ac291db1.js} +14 -14
- package/build/{index-09fade11.js → index-ad7a568a.js} +1 -1
- package/build/{index-83ef722f.js → index-b4e2545c.js} +6 -6
- package/build/{index-a9ed52dc.js → index-b4ef7e6f.js} +3 -3
- package/build/{index-c3b20299.js → index-b6569a5b.js} +2 -2
- package/build/{index-d8e68056.js → index-bf8c6212.js} +17 -17
- package/build/{index-2c26fd5f.js → index-c05c444f.js} +1 -1
- package/build/{index-7bea8be0.js → index-c6e76d62.js} +1 -1
- package/build/{index-f5173b2f.js → index-c8ec2039.js} +16 -16
- package/build/{index-4110a485.js → index-d07cdaad.js} +22 -22
- package/build/{index-338c0144.js → index-d1fde65f.js} +3 -3
- package/build/{index-f6aaac2a.js → index-d3b82c86.js} +2 -2
- package/build/{index-582b6b2b.js → index-d4a0af50.js} +68 -67
- package/build/{index-cbfbd43e.js → index-d52b947d.js} +11 -11
- package/build/{index-178383f6.js → index-e1842c0d.js} +18 -18
- package/build/{index-4319f797.js → index-e28b9963.js} +2 -111
- package/build/{index-e662cbe0.js → index-e6752d3c.js} +2 -2
- package/build/{index-1e4f90c4.js → index-efc8b1ae.js} +6 -6
- package/build/{index-2085a085.js → index-f8f9ccc2.js} +2 -2
- package/build/index.js +219 -216
- package/build/{labelSorting-4b2787a1.js → labelSorting-dc247081.js} +4 -4
- package/build/lead.js +38 -39
- package/build/{logoIcon-ddbd1a9f.js → logoIcon-740dc179.js} +2 -2
- package/build/mantine.js +25 -25
- package/build/misc.js +19 -19
- 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 +91 -85
- package/build/moleculesArticleCard.js +6 -6
- package/build/moleculesArticleCardV2.js +17 -17
- package/build/navigation.js +51 -50
- package/build/navigationLogoutPopup.js +11 -11
- package/build/navigationProfileButton.js +27 -27
- package/build/onboardingV2.js +29 -29
- package/build/organisms.js +65 -65
- package/build/{post-56987069.js → post-ce4760f3.js} +2 -2
- package/build/profileNavigation.js +20 -20
- package/build/progressBar.js +1 -1
- package/build/pwg.js +23 -23
- package/build/ssoV2/api/index.d.ts +2 -0
- package/build/ssoV2/api/paths.d.ts +1 -0
- package/build/ssoV2/api/whatsapp.d.ts +5 -1
- package/build/ssoV2/screens/components/progressBar.utils.d.ts +1 -0
- package/build/ssoV2/screens/whatsAppOTP.d.ts +13 -0
- package/build/ssoV2/screens/whatsAppPhoneVerify.d.ts +9 -0
- package/build/ssoV2/ssoStateManager/store.d.ts +16 -0
- package/build/ssoV2/stepsManager/index.d.ts +2 -0
- package/build/ssoV2.js +325 -60
- package/build/{store-2ad5a77f.js → store-1ee2b1ab.js} +66 -3
- package/build/subot.js +39 -39
- package/build/surveyOrPremiumBanner.js +35 -34
- package/build/surveyQuestionCard.js +11 -11
- package/build/{surveyThankyouCard-855b87ad.js → surveyThankyouCard-74dfd92c.js} +5 -5
- package/build/together/api/paths.d.ts +1 -0
- package/build/together.js +58 -57
- package/build/togetherApiPaths.js +1 -0
- package/build/togetherApiUtils.js +6 -6
- package/build/togetherAtoms.js +31 -31
- package/build/togetherComponentGlobalContext.js +6 -6
- package/build/togetherMolecules.js +53 -52
- package/build/togetherMoleculesCardAuthor.js +29 -29
- package/build/togetherMoleculesPostImagePreview.js +13 -13
- package/build/togetherMoleculesProfileDetail.js +41 -40
- package/build/togetherOrganisms.js +52 -51
- package/build/togetherRichTextEditor.js +20 -20
- package/build/togetherShareBox.js +12 -12
- package/build/{transform-c7e91b90.js → transform-76a2f453.js} +673 -34
- package/build/{translationsProvider-0febe0f5.js → translationsProvider-6fc3ac5f.js} +1 -1
- package/build/{treePopoverMenu-242a293c.js → treePopoverMenu-d9a8ece0.js} +19 -19
- package/build/types.js +2 -2
- package/build/{useCartCareService-f252d3af.js → useCartCareService-b349c242.js} +1 -1
- package/build/{useHealthToolCache-bd9bc44d.js → useHealthToolCache-696a89c0.js} +1 -1
- package/build/{usePhoneValidator-4756d790.js → usePhoneValidator-4631f6c2.js} +5 -5
- package/build/{usePlacesAutocomplete-8795d0b4.js → usePlacesAutocomplete-3ceaa68d.js} +1 -1
- package/build/useTogetherAuthRequiredAction.js +11 -10
- package/build/{utils-6eab4fd9.js → utils-1caf8748.js} +4 -4
- package/build/{utils-f2ce9983.js → utils-26b25522.js} +2 -2
- package/build/{utils-21b9c7f7.js → utils-859022da.js} +5 -5
- package/build/{utils-451cd6ba.js → utils-cc6c5d8e.js} +2 -2
- package/build/{utils-9dea4291.js → utils-d1b6f85e.js} +3 -3
- package/build/vaccination.js +22 -22
- package/package.json +1 -1
- package/build/Close-f4d517c5.js +0 -29
- package/build/esm/Close-8cf9c873.js +0 -7
- /package/build/{BMI_BOYS.percentile.monthly-69bf876b.js → BMI_BOYS.percentile.monthly-d37f3e10.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-3ac49c7a.js → BMI_BOYS.percentile.weekly-b8a676bd.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-5ea9d097.js → BMI_BOYS.percentile.yearly-ec8106d1.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-359d39d8.js → BMI_BOYS.zscore.monthly-c9eca637.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-13df0249.js → BMI_BOYS.zscore.weekly-b1d7a6b6.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-8d948c8b.js → BMI_BOYS.zscore.yearly-c34a34f9.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-11fdd1ef.js → BMI_GIRLS.percentile.monthly-02d6a90d.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-4970055a.js → BMI_GIRLS.percentile.weekly-8f01c0dd.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-d782096c.js → BMI_GIRLS.percentile.yearly-6fb477f7.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-dc321533.js → BMI_GIRLS.zscore.monthly-53b80b7e.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-8182a6eb.js → BMI_GIRLS.zscore.weekly-10e18c70.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-e96e3439.js → BMI_GIRLS.zscore.yearly-9b22c3e6.js} +0 -0
- /package/build/{ChevronDown-545b8473.js → ChevronDown-76fb4c60.js} +0 -0
- /package/build/{Google-cca7c01f.js → Google-4279f6ec.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-6a1cb6e2.js → HEAD CIRCUM_BOYS.percentile.monthly-25250a8c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-b73b9610.js → HEAD CIRCUM_BOYS.percentile.weekly-7f6a6b37.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-485737cd.js → HEAD CIRCUM_BOYS.percentile.yearly-70803015.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-078d56a4.js → HEAD CIRCUM_BOYS.zscore.monthly-34147fb9.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-2d849cd1.js → HEAD CIRCUM_BOYS.zscore.weekly-de5882df.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-372caa38.js → HEAD CIRCUM_BOYS.zscore.yearly-64ced005.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-d67d579d.js → HEAD CIRCUM_GIRLS.percentile.monthly-6a60b569.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-a6d1f646.js → HEAD CIRCUM_GIRLS.percentile.weekly-ade37899.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-a8995799.js → HEAD CIRCUM_GIRLS.percentile.yearly-a64cdc84.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-302bcd43.js → HEAD CIRCUM_GIRLS.zscore.monthly-34c87123.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-fa34692c.js → HEAD CIRCUM_GIRLS.zscore.weekly-5e7dbe2d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-0c18703f.js → HEAD CIRCUM_GIRLS.zscore.yearly-fb3907ca.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-1a361a9f.js → HEIGHT_BOYS.percentile.monthly-97649d71.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-cbe7a93c.js → HEIGHT_BOYS.percentile.weekly-6d109ed1.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-3fd15d6c.js → HEIGHT_BOYS.percentile.yearly-291d6232.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-0b965ba9.js → HEIGHT_BOYS.zscore.monthly-fca1bd50.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-6ba35639.js → HEIGHT_BOYS.zscore.weekly-0d87e2dc.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-cff176a5.js → HEIGHT_BOYS.zscore.yearly-7f6e6c5d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-c0abdd1f.js → HEIGHT_GIRLS.percentile.monthly-d786d04e.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-f4f67b1d.js → HEIGHT_GIRLS.percentile.weekly-3f6638a6.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-6e815f67.js → HEIGHT_GIRLS.percentile.yearly-57c504a7.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-a8cc5ad6.js → HEIGHT_GIRLS.zscore.monthly-f5ce2f55.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-d2cb4797.js → HEIGHT_GIRLS.zscore.weekly-ecaca520.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-24bf6854.js → HEIGHT_GIRLS.zscore.yearly-f6d616d2.js} +0 -0
- /package/build/{Locale-47d85db4.js → Locale-e9952fa3.js} +0 -0
- /package/build/{Visible-f39875d1.js → Visible-76a50e29.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-c0f06a01.js → WEIGHT_BOYS.percentile.monthly-2051ae1d.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-4fbc6e53.js → WEIGHT_BOYS.percentile.weekly-eaf11a68.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-339d1303.js → WEIGHT_BOYS.percentile.yearly-551ccc72.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-ac267c91.js → WEIGHT_BOYS.zscore.monthly-52da218e.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-9e4300f8.js → WEIGHT_BOYS.zscore.weekly-5e354f4e.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-8a04ef52.js → WEIGHT_BOYS.zscore.yearly-6700bfbe.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-9ebc5d87.js → WEIGHT_GIRLS.percentile.monthly-fa43a784.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-f9a7395c.js → WEIGHT_GIRLS.percentile.weekly-c38d3ace.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-2330e611.js → WEIGHT_GIRLS.percentile.yearly-67a13a53.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-40396578.js → WEIGHT_GIRLS.zscore.monthly-794a5a50.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-067c38c2.js → WEIGHT_GIRLS.zscore.weekly-bf437943.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-0676d453.js → WEIGHT_GIRLS.zscore.yearly-6bbacef5.js} +0 -0
- /package/build/{ageGenerate-9fcfcda1.js → ageGenerate-0cf30664.js} +0 -0
- /package/build/{animation-3c2812c0.js → animation-67aaee72.js} +0 -0
- /package/build/{constants-1aec8bc7.js → constants-446ae81f.js} +0 -0
- /package/build/{constants-11dc2a07.js → constants-950dd742.js} +0 -0
- /package/build/{constants-02ea44fa.js → constants-a4483cae.js} +0 -0
- /package/build/{context-61312655.js → context-01bc148e.js} +0 -0
- /package/build/{dataTransform-6bf989b6.js → dataTransform-7e6aa877.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-b995bfb3.js → BMI_BOYS.percentile.monthly-2f7d0b32.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-342909c8.js → BMI_BOYS.percentile.weekly-22cdf75c.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-8a955b98.js → BMI_BOYS.percentile.yearly-9588dbbf.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-76071a45.js → BMI_BOYS.zscore.monthly-b7a82e6c.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-053c635a.js → BMI_BOYS.zscore.weekly-4605c9b1.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-281ce475.js → BMI_BOYS.zscore.yearly-bc056510.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-cf67cf57.js → BMI_GIRLS.percentile.monthly-8a38bf61.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-ce116da0.js → BMI_GIRLS.percentile.weekly-dbda7481.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-ad101dee.js → BMI_GIRLS.percentile.yearly-9460486f.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-4549842a.js → BMI_GIRLS.zscore.monthly-a4e4c7ef.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-b096009b.js → BMI_GIRLS.zscore.weekly-0549636b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-0ff601dc.js → BMI_GIRLS.zscore.yearly-bc11468c.js} +0 -0
- /package/build/esm/{ChevronDown-ac5e1dc6.js → ChevronDown-23f1b2be.js} +0 -0
- /package/build/esm/{Google-5c126384.js → Google-94bdc850.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-8ef04afe.js → HEAD CIRCUM_BOYS.percentile.monthly-8f12c99d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-7dd16690.js → HEAD CIRCUM_BOYS.percentile.weekly-970698b2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-56191657.js → HEAD CIRCUM_BOYS.percentile.yearly-82f59942.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-9dd5bfff.js → HEAD CIRCUM_BOYS.zscore.monthly-2af5dde7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-901e3d1d.js → HEAD CIRCUM_BOYS.zscore.weekly-4609fb3d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-3046ee08.js → HEAD CIRCUM_BOYS.zscore.yearly-4db4d5fa.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-0a08de45.js → HEAD CIRCUM_GIRLS.percentile.monthly-c7c0f8e4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-ff04624d.js → HEAD CIRCUM_GIRLS.percentile.weekly-f3054a52.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-cf7b5944.js → HEAD CIRCUM_GIRLS.percentile.yearly-37f7d068.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-50183176.js → HEAD CIRCUM_GIRLS.zscore.monthly-6760fdd9.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-549a6076.js → HEAD CIRCUM_GIRLS.zscore.weekly-a361df7b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-e2234a35.js → HEAD CIRCUM_GIRLS.zscore.yearly-579668a3.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-ccfb9446.js → HEIGHT_BOYS.percentile.monthly-f954029a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-f02c25e6.js → HEIGHT_BOYS.percentile.weekly-5efc930b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-83ef8057.js → HEIGHT_BOYS.percentile.yearly-ac2446bb.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-9f12e4f3.js → HEIGHT_BOYS.zscore.monthly-1dd76059.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-48f902b3.js → HEIGHT_BOYS.zscore.weekly-8f83a3fc.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-16a5b04b.js → HEIGHT_BOYS.zscore.yearly-71ba715d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-ee185769.js → HEIGHT_GIRLS.percentile.monthly-43feffaa.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-e49b05c9.js → HEIGHT_GIRLS.percentile.weekly-15fc47f6.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-5cee409a.js → HEIGHT_GIRLS.percentile.yearly-0c0ca07e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-9d455a92.js → HEIGHT_GIRLS.zscore.monthly-95406de1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-76b4910f.js → HEIGHT_GIRLS.zscore.weekly-929d6758.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-f27d1290.js → HEIGHT_GIRLS.zscore.yearly-f128ae23.js} +0 -0
- /package/build/esm/{Locale-bde3683e.js → Locale-9da7d42f.js} +0 -0
- /package/build/esm/{Visible-e180df92.js → Visible-9831574e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-3a5f8b8b.js → WEIGHT_BOYS.percentile.monthly-2c90aa4b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-acf17709.js → WEIGHT_BOYS.percentile.weekly-5fadf2e6.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-da65ed7f.js → WEIGHT_BOYS.percentile.yearly-61761068.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-06dd42b4.js → WEIGHT_BOYS.zscore.monthly-bbd444e3.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-a96caedd.js → WEIGHT_BOYS.zscore.weekly-94ee529e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-daabf2cd.js → WEIGHT_BOYS.zscore.yearly-68a653bc.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-549ffee0.js → WEIGHT_GIRLS.percentile.monthly-752bc2c8.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-f6082b18.js → WEIGHT_GIRLS.percentile.weekly-792e79d9.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-cb451f40.js → WEIGHT_GIRLS.percentile.yearly-3141debd.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-cc11ec88.js → WEIGHT_GIRLS.zscore.monthly-861aee3d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-df39dd41.js → WEIGHT_GIRLS.zscore.weekly-203fcb54.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-ad5c6098.js → WEIGHT_GIRLS.zscore.yearly-d6597e25.js} +0 -0
- /package/build/esm/{ageGenerate-05be0918.js → ageGenerate-473a5e33.js} +0 -0
- /package/build/esm/{animation-2d2f6e93.js → animation-96892764.js} +0 -0
- /package/build/esm/{constants-edf29533.js → constants-c907bdd9.js} +0 -0
- /package/build/esm/{constants-53aa519c.js → constants-d345eb5c.js} +0 -0
- /package/build/esm/{constants-0f0c4f14.js → constants-ec1742e9.js} +0 -0
- /package/build/esm/{context-18f22e3e.js → context-a021e22a.js} +0 -0
- /package/build/esm/{dataTransform-657dffc8.js → dataTransform-438eb312.js} +0 -0
- /package/build/esm/{index-0e289cc5.js → index-055a7647.js} +0 -0
- /package/build/esm/{index-2a8fb87d.js → index-2ae856e1.js} +0 -0
- /package/build/esm/{index-73bc6f9a.js → index-386833db.js} +0 -0
- /package/build/esm/{index-e5bf4cd6.js → index-49187074.js} +0 -0
- /package/build/esm/{index-881bfc89.js → index-9a738fe7.js} +0 -0
- /package/build/esm/{index-b4757bbf.js → index-aeea68fd.js} +0 -0
- /package/build/esm/{index-dbc8c87d.js → index-cfb6bb24.js} +0 -0
- /package/build/esm/{index-4fca4ac5.js → index-d860ed77.js} +0 -0
- /package/build/esm/{index-cab45190.js → index-d9bbcb8c.js} +0 -0
- /package/build/esm/{index.styles-5b593573.js → index.styles-e7a5cac8.js} +0 -0
- /package/build/esm/{localizeNumberFormat-6d8bf345.js → localizeNumberFormat-e9ea3d92.js} +0 -0
- /package/build/esm/{normalizeLink-ca423f45.js → normalizeLink-17cf924f.js} +0 -0
- /package/build/esm/{number-8de99c9d.js → number-ea8ed400.js} +0 -0
- /package/build/esm/{paths-e041802a.js → paths-f8a4e71c.js} +0 -0
- /package/build/esm/{shared-8bf3d323.js → shared-79188512.js} +0 -0
- /package/build/esm/{translationsContext-17fbb119.js → translationsContext-498d83bb.js} +0 -0
- /package/build/esm/{tslib.es6-fe9009b6.js → tslib.es6-49579c8e.js} +0 -0
- /package/build/esm/{types-34b9d775.js → types-94dbadfa.js} +0 -0
- /package/build/esm/{types-7ab9f26b.js → types-dad8a654.js} +0 -0
- /package/build/esm/{useOutsideClick-b8be9ada.js → useOutsideClick-a8f577a1.js} +0 -0
- /package/build/esm/{useScrollbarSize-9c2d2a59.js → useScrollbarSize-7c8e2b0d.js} +0 -0
- /package/build/esm/{useUniqueId-43fd3cbc.js → useUniqueId-d9fbd2cd.js} +0 -0
- /package/build/esm/{utils-47932302.js → utils-0a729022.js} +0 -0
- /package/build/esm/{utils-5695d65c.js → utils-37c32e5f.js} +0 -0
- /package/build/{index-ab4df761.js → index-012b3be7.js} +0 -0
- /package/build/{index-e02f058c.js → index-0980e6b7.js} +0 -0
- /package/build/{index-68defcd2.js → index-13080d9f.js} +0 -0
- /package/build/{index-61e646b3.js → index-427da1a9.js} +0 -0
- /package/build/{index-d52a168f.js → index-73041da3.js} +0 -0
- /package/build/{index-1bdcb35d.js → index-98abae20.js} +0 -0
- /package/build/{index-c082533c.js → index-a9098118.js} +0 -0
- /package/build/{index-906eb2f0.js → index-bba10dc0.js} +0 -0
- /package/build/{index-697a6dd5.js → index-c6bf4230.js} +0 -0
- /package/build/{index.styles-3032593e.js → index.styles-4a5164c0.js} +0 -0
- /package/build/{localizeNumberFormat-a521a72e.js → localizeNumberFormat-7e3e7cd3.js} +0 -0
- /package/build/{normalizeLink-e08fe260.js → normalizeLink-289b74db.js} +0 -0
- /package/build/{number-e3c2e1b7.js → number-0e5c0fcd.js} +0 -0
- /package/build/{paths-ba7c88c4.js → paths-23276737.js} +0 -0
- /package/build/{shared-141f69d5.js → shared-f552d561.js} +0 -0
- /package/build/{translationsContext-35de9e89.js → translationsContext-48cdfafd.js} +0 -0
- /package/build/{tslib.es6-7283d678.js → tslib.es6-c527a00f.js} +0 -0
- /package/build/{types-8f5be5d3.js → types-56326624.js} +0 -0
- /package/build/{types-e6f0f177.js → types-673e2f95.js} +0 -0
- /package/build/{useOutsideClick-663f3a21.js → useOutsideClick-21107609.js} +0 -0
- /package/build/{useScrollbarSize-3c8fc3b9.js → useScrollbarSize-1a9ad118.js} +0 -0
- /package/build/{useUniqueId-54ff2d44.js → useUniqueId-09283742.js} +0 -0
- /package/build/{utils-9be5732f.js → utils-20dbae0b.js} +0 -0
- /package/build/{utils-ea9873c8.js → utils-ab7957c1.js} +0 -0
|
@@ -1,57 +1,67 @@
|
|
|
1
|
-
import { _ as __rest, a as __awaiter } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-49579c8e.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { useRef, useState, useEffect, useImperativeHandle, useMemo, Fragment, useCallback, forwardRef, memo, createContext, useContext } from 'react';
|
|
4
|
-
import { R as Radio, a as Carousel } from './index-
|
|
5
|
-
import { Stack, Group, createStyles, getStylesRef, Box, Badge, rem, Divider, clsx, Button as Button$2, AspectRatio, Modal, Grid } from '@mantine/core';
|
|
4
|
+
import { R as Radio, a as Carousel } from './index-c5633877.js';
|
|
5
|
+
import { Stack, Group, createStyles, getStylesRef, useMantineTheme, Box, Badge, rem, Divider, clsx, Button as Button$2, AspectRatio, Modal as Modal$1, Grid } from '@mantine/core';
|
|
6
6
|
import '@mantine/dates';
|
|
7
|
-
import { L as LOCALE_SPECS, F as FAVICONS, Z as ZINDEX_SSO } from './index-
|
|
8
|
-
import './index-
|
|
9
|
-
import { C as CommonGAssets } from './index-
|
|
10
|
-
import './index-
|
|
11
|
-
import { T as Text } from './index-
|
|
12
|
-
import { B as Button$1 } from './index-
|
|
13
|
-
import './index-
|
|
14
|
-
import './index.styles-
|
|
15
|
-
import './translationsContext-
|
|
16
|
-
import '@mantine/hooks';
|
|
17
|
-
import { M as MediaQueries } from './utils-
|
|
18
|
-
import './index-
|
|
19
|
-
import { i as isInternalLink } from './SiteWideBanner-
|
|
7
|
+
import { L as LOCALE_SPECS, F as FAVICONS, I as ISO_FORMAT, Z as ZINDEX_SSO } from './index-d0d54d04.js';
|
|
8
|
+
import './index-3140e763.js';
|
|
9
|
+
import { C as CommonGAssets } from './index-d860ed77.js';
|
|
10
|
+
import './index-da18ffd2.js';
|
|
11
|
+
import { T as Text } from './index-b93c507d.js';
|
|
12
|
+
import { B as Button$1 } from './index-8155cc1c.js';
|
|
13
|
+
import { F as FontWeight } from './index-055a7647.js';
|
|
14
|
+
import './index.styles-e7a5cac8.js';
|
|
15
|
+
import './translationsContext-498d83bb.js';
|
|
16
|
+
import { useDisclosure } from '@mantine/hooks';
|
|
17
|
+
import { M as MediaQueries } from './utils-37c32e5f.js';
|
|
18
|
+
import './index-22970d29.js';
|
|
19
|
+
import { i as isInternalLink } from './SiteWideBanner-0de7821d.js';
|
|
20
20
|
import styled from '@emotion/styled';
|
|
21
21
|
import { theme } from './miscTheme.js';
|
|
22
|
-
import { C as Checkbox, a as PureInput, P as Pagination$1, b as SearchInput, I as ImageWrapV2 } from './index-
|
|
22
|
+
import { C as Checkbox, a as PureInput, P as Pagination$1, b as SearchInput, I as ImageWrapV2 } from './index-d8c16b27.js';
|
|
23
23
|
import { format, isBefore, startOfMonth, addMonths, subMonths, getDaysInMonth, isToday, isSameDay, isWithinInterval, isAfter, isPast } from 'date-fns';
|
|
24
24
|
import DayPickerInput from 'react-day-picker/DayPickerInput';
|
|
25
|
-
import { L as Logo } from './index-
|
|
25
|
+
import { L as Logo } from './index-86d9ced0.js';
|
|
26
26
|
import throttle from 'lodash/throttle';
|
|
27
27
|
import parse from 'html-react-parser';
|
|
28
28
|
import { domainLocales } from './constantsDomainLocales.js';
|
|
29
29
|
import { isProduction } from './constantsIsProduction.js';
|
|
30
|
-
import { a as useOutsideClick } from './useOutsideClick-
|
|
30
|
+
import { a as useOutsideClick } from './useOutsideClick-a8f577a1.js';
|
|
31
31
|
import enUS from 'date-fns/locale/en-US';
|
|
32
32
|
import id from 'date-fns/locale/id';
|
|
33
33
|
import vi from 'date-fns/locale/vi';
|
|
34
34
|
import zhTW from 'date-fns/locale/zh-TW';
|
|
35
|
-
import { B as Button } from './index-
|
|
36
|
-
import { u as useScreenSize, I as ImageWrap } from './index-
|
|
37
|
-
import { u as useTranslations } from './index-
|
|
35
|
+
import { B as Button } from './index-0c11d8cb.js';
|
|
36
|
+
import { u as useScreenSize, I as ImageWrap } from './index-f5bacace.js';
|
|
37
|
+
import { u as useTranslations, f as format$1 } from './index-4ab448d4.js';
|
|
38
38
|
import classNames from 'classnames';
|
|
39
|
-
import { D as Dropdown } from './index-
|
|
39
|
+
import { D as Dropdown } from './index-d9bbcb8c.js';
|
|
40
40
|
import { getSocialList } from './miscGetSocialList.js';
|
|
41
|
-
import { I as Input } from './index-
|
|
42
|
-
import { D as Drawer } from './index-
|
|
41
|
+
import { I as Input } from './index-5a6b957c.js';
|
|
42
|
+
import { D as Drawer } from './index-48d9d63c.js';
|
|
43
|
+
import { D as DrawerBottom } from './index-fa32c87a.js';
|
|
44
|
+
import { M as Modal } from './index-9884adb4.js';
|
|
45
|
+
import { b as formatArticle } from './dataTransform-a0d9bc34.js';
|
|
46
|
+
import { DISCOVER_PATHS } from './togetherApiPaths.js';
|
|
47
|
+
import { c as callApi, g as getDiscoverApiPath } from './utils-1e513a19.js';
|
|
48
|
+
import innertext from 'innertext';
|
|
49
|
+
import { L as LOCALE } from './Locale-9da7d42f.js';
|
|
50
|
+
import { g as getHelloSitesUrl } from './index-efbbd379.js';
|
|
51
|
+
import { P as POST_DATE_FORMAT, D as DEFAULT_AVATAR_IMG, a as DEFAULT_IMG } from './constants-031a5fce.js';
|
|
52
|
+
import dayjs from 'dayjs';
|
|
53
|
+
import { ArticleCard } from './moleculesArticleCard.js';
|
|
43
54
|
import { v4 } from 'uuid';
|
|
44
|
-
import { L as LOCALE } from './Locale-bde3683e.js';
|
|
45
55
|
import { ArrowRight } from '@hhgtech/icons/arrow';
|
|
46
56
|
import { MultiStar, Question } from '@hhgtech/icons/other';
|
|
47
57
|
import Lottie from 'lottie-light-react';
|
|
48
|
-
import { A as ArrowRightBlue } from './index-
|
|
49
|
-
import { L as Loading } from './index-
|
|
58
|
+
import { A as ArrowRightBlue } from './index-22f2b6db.js';
|
|
59
|
+
import { L as Loading } from './index-6b76c17c.js';
|
|
50
60
|
import get from 'lodash/get';
|
|
51
61
|
import debounce from 'lodash/debounce';
|
|
52
|
-
import { C as Close } from './
|
|
62
|
+
import { C as Close } from './index-a47baab1.js';
|
|
53
63
|
import { useAnimationOffsetEffect } from '@mantine/carousel';
|
|
54
|
-
import { D as DEFAULT_HEADER_HEIGHT_MOBILE } from './constants-
|
|
64
|
+
import { D as DEFAULT_HEADER_HEIGHT_MOBILE } from './constants-ec1742e9.js';
|
|
55
65
|
|
|
56
66
|
const StarFull = (_a) => {
|
|
57
67
|
var { color, stroke } = _a, props = __rest(_a, ["color", "stroke"]);
|
|
@@ -2790,6 +2800,631 @@ const ShareDrawer = (_a) => {
|
|
|
2790
2800
|
}
|
|
2791
2801
|
};
|
|
2792
2802
|
|
|
2803
|
+
const BoostCardArticleAuthorName = (props) => {
|
|
2804
|
+
const { intlKey, formatOptions, formatOptionsProps } = props;
|
|
2805
|
+
const { author_name, expert_display_name, fact_check_display_name, specialty, organisation, post_modified, } = formatOptions || {};
|
|
2806
|
+
const { author_name: formatOptionsPropsAuthorName, expert_display_name: formatOptionsPropsExpertDisplayName, fact_check_display_name: formatOptionsPropsFactCheckDisplayName, specialty: formatOptionsPropsSpecialty, organisation: formatOptionsPropsOrganisation, post_modified: formatOptionsPropsPostModified, } = formatOptionsProps || {};
|
|
2807
|
+
const { t } = useTranslations();
|
|
2808
|
+
const theme = useMantineTheme();
|
|
2809
|
+
const formatOptionsComp = useCallback((p = {}) => {
|
|
2810
|
+
const href = p.href;
|
|
2811
|
+
const Comp = href ? 'a' : 'span';
|
|
2812
|
+
const propsComp = Object.assign({}, p);
|
|
2813
|
+
if (!href) {
|
|
2814
|
+
delete propsComp.href;
|
|
2815
|
+
delete propsComp['data-event-category'];
|
|
2816
|
+
delete propsComp['data-event-action'];
|
|
2817
|
+
delete propsComp['data-event-label'];
|
|
2818
|
+
}
|
|
2819
|
+
return React__default.createElement(Comp, Object.assign({}, propsComp));
|
|
2820
|
+
}, []);
|
|
2821
|
+
return (React__default.createElement(React__default.Fragment, null, format$1(t(intlKey), {
|
|
2822
|
+
author_name: (React__default.createElement("span", { style: {
|
|
2823
|
+
fontWeight: FontWeight.halfBold,
|
|
2824
|
+
color: theme.colors.gray[8],
|
|
2825
|
+
} }, formatOptionsComp(Object.assign(Object.assign({}, author_name), formatOptionsPropsAuthorName)))),
|
|
2826
|
+
expert_display_name: (React__default.createElement("span", { style: {
|
|
2827
|
+
fontWeight: FontWeight.halfBold,
|
|
2828
|
+
color: theme.colors.gray[8],
|
|
2829
|
+
} }, formatOptionsComp(Object.assign(Object.assign({}, expert_display_name), formatOptionsPropsExpertDisplayName)))),
|
|
2830
|
+
fact_check_display_name: (React__default.createElement("span", { style: {
|
|
2831
|
+
fontWeight: FontWeight.halfBold,
|
|
2832
|
+
color: theme.colors.gray[8],
|
|
2833
|
+
} }, formatOptionsComp(Object.assign(Object.assign({}, fact_check_display_name), formatOptionsPropsFactCheckDisplayName)))),
|
|
2834
|
+
specialty: formatOptionsComp(Object.assign(Object.assign({}, specialty), formatOptionsPropsSpecialty)),
|
|
2835
|
+
organisation: formatOptionsComp(Object.assign(Object.assign({}, organisation), formatOptionsPropsOrganisation)),
|
|
2836
|
+
post_modified: formatOptionsComp(Object.assign(Object.assign({}, post_modified), formatOptionsPropsPostModified)),
|
|
2837
|
+
})));
|
|
2838
|
+
};
|
|
2839
|
+
|
|
2840
|
+
const getAuthorFormatOptionsProps = (reviewedUser) => {
|
|
2841
|
+
if (!reviewedUser) {
|
|
2842
|
+
return { children: '' };
|
|
2843
|
+
}
|
|
2844
|
+
if ((reviewedUser === null || reviewedUser === void 0 ? void 0 : reviewedUser.profile_url) && (reviewedUser === null || reviewedUser === void 0 ? void 0 : reviewedUser.turn_off_profile)) {
|
|
2845
|
+
return { children: (reviewedUser === null || reviewedUser === void 0 ? void 0 : reviewedUser.display_name) || (reviewedUser === null || reviewedUser === void 0 ? void 0 : reviewedUser.name) || '' };
|
|
2846
|
+
}
|
|
2847
|
+
return {
|
|
2848
|
+
href: reviewedUser.profile_url || '',
|
|
2849
|
+
children: reviewedUser.display_name || reviewedUser.name || '',
|
|
2850
|
+
};
|
|
2851
|
+
};
|
|
2852
|
+
const authorConfigForAssetBase = (assetImageBase) => {
|
|
2853
|
+
const base = assetImageBase.replace(/\/$/, '');
|
|
2854
|
+
return {
|
|
2855
|
+
medical: {
|
|
2856
|
+
intlKey: {
|
|
2857
|
+
long: 'articlePage.reviewed_by.expert.medical',
|
|
2858
|
+
short: 'articlePage.reviewed_by.expert.medical.short',
|
|
2859
|
+
},
|
|
2860
|
+
indicator: `${base}/reviewer-medical.svg`,
|
|
2861
|
+
},
|
|
2862
|
+
expert: {
|
|
2863
|
+
intlKey: {
|
|
2864
|
+
long: 'articlePage.reviewed_by.expert',
|
|
2865
|
+
short: 'articlePage.reviewed_by.expert.short',
|
|
2866
|
+
},
|
|
2867
|
+
indicator: `${base}/reviewer-expert.svg`,
|
|
2868
|
+
},
|
|
2869
|
+
written_by: {
|
|
2870
|
+
intlKey: {
|
|
2871
|
+
long: 'articlePage.written_by.author',
|
|
2872
|
+
short: 'articlePage.written_by.author.short',
|
|
2873
|
+
},
|
|
2874
|
+
indicator: `${base}/reviewer-editor.svg`,
|
|
2875
|
+
},
|
|
2876
|
+
fact_checked_by: {
|
|
2877
|
+
intlKey: {
|
|
2878
|
+
long: 'articlePage.fact_checked_by.author',
|
|
2879
|
+
short: 'articlePage.fact_checked_by.author.short',
|
|
2880
|
+
},
|
|
2881
|
+
indicator: `${base}/reviewer-fact-check.svg`,
|
|
2882
|
+
},
|
|
2883
|
+
};
|
|
2884
|
+
};
|
|
2885
|
+
function getAuthorForBoostCard({ article, locale, assetImageBase, version = 'short', }) {
|
|
2886
|
+
const AUTHOR_CONFIG = authorConfigForAssetBase(assetImageBase);
|
|
2887
|
+
const { expert, author, fact_check, is_author } = article.articleReviewed || {};
|
|
2888
|
+
const articlePostModified = article.postModified || article.modifiedTime;
|
|
2889
|
+
const { avatar: fcAvatar = '', avatar_thumbnail: fcAvatarThumb = '', display_name: fcDisplayName = '', name: fcName = '', profile_url: fcProfileUrl = '', turn_off_profile: fcTurnOffProfile, } = fact_check || {};
|
|
2890
|
+
const modifiedDate = dayjs(articlePostModified);
|
|
2891
|
+
let authorConfig = AUTHOR_CONFIG.fact_checked_by;
|
|
2892
|
+
let avatar = fcAvatarThumb || fcAvatar;
|
|
2893
|
+
let avatar_alt = fcDisplayName || fcName;
|
|
2894
|
+
let avatar_permalink = !fcTurnOffProfile ? fcProfileUrl : '';
|
|
2895
|
+
const post_modified = modifiedDate.isValid()
|
|
2896
|
+
? modifiedDate.format(ISO_FORMAT[locale].dateFormat)
|
|
2897
|
+
: '';
|
|
2898
|
+
const formatOptions = {
|
|
2899
|
+
expert_display_name: getAuthorFormatOptionsProps(expert),
|
|
2900
|
+
author_name: getAuthorFormatOptionsProps(author),
|
|
2901
|
+
fact_check_display_name: getAuthorFormatOptionsProps(fact_check),
|
|
2902
|
+
post_modified: { children: post_modified },
|
|
2903
|
+
};
|
|
2904
|
+
if (expert) {
|
|
2905
|
+
const ex = expert;
|
|
2906
|
+
const { avatar: exAvatar = '', avatar_thumbnail: exAvatarThumb = '', display_name: exDisplayName = '', name: exName = '', profile_url: exProfileUrl = '', specialty = '', organisation = '', turn_off_profile: exTurnOffProfile, } = ex;
|
|
2907
|
+
formatOptions.specialty = { children: specialty };
|
|
2908
|
+
formatOptions.organisation = { children: organisation };
|
|
2909
|
+
avatar = exAvatarThumb || exAvatar || avatar;
|
|
2910
|
+
avatar_alt = exDisplayName || exName || avatar_alt;
|
|
2911
|
+
avatar_permalink = !exTurnOffProfile ? exProfileUrl || avatar_permalink : '';
|
|
2912
|
+
if (is_author) {
|
|
2913
|
+
authorConfig = AUTHOR_CONFIG.written_by;
|
|
2914
|
+
}
|
|
2915
|
+
else {
|
|
2916
|
+
authorConfig = AUTHOR_CONFIG.expert;
|
|
2917
|
+
}
|
|
2918
|
+
}
|
|
2919
|
+
return {
|
|
2920
|
+
intlKey: authorConfig.intlKey[version],
|
|
2921
|
+
indicator: authorConfig.indicator,
|
|
2922
|
+
avatar,
|
|
2923
|
+
avatar_alt,
|
|
2924
|
+
avatar_permalink,
|
|
2925
|
+
formatOptions,
|
|
2926
|
+
};
|
|
2927
|
+
}
|
|
2928
|
+
|
|
2929
|
+
const StyledAvatarReviewer = styled.div `
|
|
2930
|
+
position: relative;
|
|
2931
|
+
width: 100%;
|
|
2932
|
+
height: 100%;
|
|
2933
|
+
img {
|
|
2934
|
+
border-radius: 50%;
|
|
2935
|
+
object-fit: cover;
|
|
2936
|
+
}
|
|
2937
|
+
.badge {
|
|
2938
|
+
position: absolute;
|
|
2939
|
+
right: 0;
|
|
2940
|
+
bottom: 0;
|
|
2941
|
+
display: flex;
|
|
2942
|
+
}
|
|
2943
|
+
`;
|
|
2944
|
+
styled.div `
|
|
2945
|
+
width: 12px;
|
|
2946
|
+
height: 12px;
|
|
2947
|
+
`;
|
|
2948
|
+
const StyledArticleCard = styled(ArticleCard) `
|
|
2949
|
+
.author .poster p span:not(.author-name) {
|
|
2950
|
+
font-weight: 400;
|
|
2951
|
+
}
|
|
2952
|
+
|
|
2953
|
+
.author .poster p span:not(.name) {
|
|
2954
|
+
color: ${theme.colors.gray800};
|
|
2955
|
+
}
|
|
2956
|
+
|
|
2957
|
+
.author-name {
|
|
2958
|
+
font-weight: 600;
|
|
2959
|
+
}
|
|
2960
|
+
`;
|
|
2961
|
+
const StyledItemImageContain = styled.div `
|
|
2962
|
+
width: 100%;
|
|
2963
|
+
height: 100%;
|
|
2964
|
+
position: relative;
|
|
2965
|
+
`;
|
|
2966
|
+
|
|
2967
|
+
function renderBoostUploadTime(locale, date) {
|
|
2968
|
+
if (!date)
|
|
2969
|
+
return '';
|
|
2970
|
+
if (dayjs(date, POST_DATE_FORMAT).isValid()) {
|
|
2971
|
+
return dayjs(date, POST_DATE_FORMAT).format(ISO_FORMAT[locale].dateFormat);
|
|
2972
|
+
}
|
|
2973
|
+
return date;
|
|
2974
|
+
}
|
|
2975
|
+
|
|
2976
|
+
function PopupBoostArticleCard({ article, isMobile, className = 'article-card', hideBookmark = true, assetImageBase = '/images', }) {
|
|
2977
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2978
|
+
const { locale: translationsLocale } = useTranslations();
|
|
2979
|
+
const locale = translationsLocale === 'vi-VN_MB'
|
|
2980
|
+
? LOCALE.Vietnam
|
|
2981
|
+
: translationsLocale;
|
|
2982
|
+
const authorV2 = getAuthorForBoostCard({
|
|
2983
|
+
article,
|
|
2984
|
+
locale,
|
|
2985
|
+
assetImageBase,
|
|
2986
|
+
version: 'short',
|
|
2987
|
+
});
|
|
2988
|
+
const authorUrlDomain = authorV2.avatar_permalink
|
|
2989
|
+
? `${getHelloSitesUrl(translationsLocale, true)}${authorV2.avatar_permalink}`
|
|
2990
|
+
: '';
|
|
2991
|
+
const domain = domainLocales[translationsLocale];
|
|
2992
|
+
const articleUrlLabel = domain && article.permalink
|
|
2993
|
+
? `https://${domain}${article.permalink}`
|
|
2994
|
+
: article.permalink || '';
|
|
2995
|
+
const uploadRendered = renderBoostUploadTime(locale, article.modifiedTime);
|
|
2996
|
+
const loc = translationsLocale;
|
|
2997
|
+
const isPremiumUi = loc !== 'vi-VN' && loc !== 'vi-VN_MB' && article.isPremium;
|
|
2998
|
+
const avatarInner = (React__default.createElement(StyledAvatarReviewer, null,
|
|
2999
|
+
React__default.createElement(StyledItemImageContain, null,
|
|
3000
|
+
React__default.createElement("img", { className: "avatar", src: authorV2.avatar || DEFAULT_AVATAR_IMG, alt: authorV2.avatar_alt, width: 24, height: 24, style: {
|
|
3001
|
+
borderRadius: '50%',
|
|
3002
|
+
objectFit: 'cover',
|
|
3003
|
+
display: 'block',
|
|
3004
|
+
} }))));
|
|
3005
|
+
return (React__default.createElement(StyledArticleCard, { isPremium: isPremiumUi, isMobile: isMobile, className: className, dataEventCategoryForBookmark: "Bookmark", dataEventActionForBookmark: "Click", dataEventLabelForBookmark: articleUrlLabel, dataEventLabelForTitle: articleUrlLabel, dataEventLabelForCategory: ((_a = article.category) === null || _a === void 0 ? void 0 : _a.permalink) && domain
|
|
3006
|
+
? `https://${domain}${article.category.permalink}`
|
|
3007
|
+
: ((_b = article.category) === null || _b === void 0 ? void 0 : _b.permalink) || '', dataEventLabelForBanner: articleUrlLabel, hasAffiliate: article.hasAffiliate, articleLink: article.permalink, categoryLink: ((_c = article.category) === null || _c === void 0 ? void 0 : _c.permalink) || '#', categoryName: ((_d = article.category) === null || _d === void 0 ? void 0 : _d.displayName) ||
|
|
3008
|
+
((_e = article.category) === null || _e === void 0 ? void 0 : _e.name) ||
|
|
3009
|
+
((_g = (_f = article.categories) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.displayName) ||
|
|
3010
|
+
((_j = (_h = article.categories) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.name) ||
|
|
3011
|
+
'', banner: React__default.createElement("img", { src: (isMobile ? article.featureImageMobile : article.featureImage) ||
|
|
3012
|
+
article.featureImage ||
|
|
3013
|
+
DEFAULT_IMG, alt: article.postName, loading: "lazy", style: {
|
|
3014
|
+
width: '100%',
|
|
3015
|
+
height: '100%',
|
|
3016
|
+
objectFit: 'cover',
|
|
3017
|
+
display: 'block',
|
|
3018
|
+
} }), specialty: ((_k = article.expert) === null || _k === void 0 ? void 0 : _k.specialty) || ((_l = article.author) === null || _l === void 0 ? void 0 : _l.specialty) || '', type: "author", size: "md", direction: isMobile ? 'vertical' : 'horizontal', uploadTime: uploadRendered || article.modifiedTime || article.postModified || '', title: innertext(article.postTitle || article.postName || '') || '', text: article.excerpt || article.description || article.postContent
|
|
3019
|
+
? innertext(article.excerpt ||
|
|
3020
|
+
article.description ||
|
|
3021
|
+
((_m = article.postContent) === null || _m === void 0 ? void 0 : _m.split('\r\n')[0]) ||
|
|
3022
|
+
'')
|
|
3023
|
+
: '', avatarImg: authorV2.avatar_permalink ? (React__default.createElement("a", { href: authorV2.avatar_permalink, className: "pointer-event-child-none", "data-event-label": authorUrlDomain }, avatarInner)) : (React__default.createElement("span", { className: "pointer-event-child-none" }, avatarInner)), authorName: React__default.createElement("span", { "data-event-label": authorUrlDomain, className: "pointer-event-child-none" },
|
|
3024
|
+
React__default.createElement(BoostCardArticleAuthorName, Object.assign({}, authorV2, { formatOptionsProps: {
|
|
3025
|
+
expert_display_name: {
|
|
3026
|
+
href: '',
|
|
3027
|
+
},
|
|
3028
|
+
} })),
|
|
3029
|
+
"\u00A0"), authorLink: authorV2.avatar_permalink, isBookmarkDisplayed: !hideBookmark, isBookmark: false, onBookmark: hideBookmark ? undefined : () => undefined, styleLabel: {
|
|
3030
|
+
color: ((_o = article.category) === null || _o === void 0 ? void 0 : _o.textColor) || '#008C50',
|
|
3031
|
+
} }));
|
|
3032
|
+
}
|
|
3033
|
+
|
|
3034
|
+
const BOOST_POPUP_TRACKING_CATEGORY = 'Popup Suggest Article';
|
|
3035
|
+
const BOOST_POPUP_GTAG_EVENTS = {
|
|
3036
|
+
swipeToClose: 'swipe_to_close',
|
|
3037
|
+
};
|
|
3038
|
+
const BOOST_POPUP_TRACKING_ACTION = {
|
|
3039
|
+
closeCard: 'Close card',
|
|
3040
|
+
viewDetail: 'View detail',
|
|
3041
|
+
};
|
|
3042
|
+
/** Prefer prop/ref URL; if missing (stale parent, first paint), use live location at send time. */
|
|
3043
|
+
function resolveBoostPopupEventLabel(propUrl) {
|
|
3044
|
+
var _a;
|
|
3045
|
+
const trimmed = typeof propUrl === 'string' ? propUrl.trim() : '';
|
|
3046
|
+
if (trimmed)
|
|
3047
|
+
return trimmed;
|
|
3048
|
+
if (typeof window !== 'undefined' && ((_a = window.location) === null || _a === void 0 ? void 0 : _a.href)) {
|
|
3049
|
+
return window.location.href;
|
|
3050
|
+
}
|
|
3051
|
+
return '';
|
|
3052
|
+
}
|
|
3053
|
+
function pushBoostPopupDataLayerEvent(eventName, eventAction, eventLabel) {
|
|
3054
|
+
if (typeof window === 'undefined')
|
|
3055
|
+
return;
|
|
3056
|
+
const w = window;
|
|
3057
|
+
const event_label = resolveBoostPopupEventLabel(eventLabel);
|
|
3058
|
+
if (!event_label)
|
|
3059
|
+
return;
|
|
3060
|
+
if (Array.isArray(w.dataLayer)) {
|
|
3061
|
+
w.dataLayer.push({
|
|
3062
|
+
event: eventName,
|
|
3063
|
+
event_category: BOOST_POPUP_TRACKING_CATEGORY,
|
|
3064
|
+
event_label,
|
|
3065
|
+
event_action: eventAction,
|
|
3066
|
+
});
|
|
3067
|
+
}
|
|
3068
|
+
}
|
|
3069
|
+
function boostPopupTrackingData(action, label) {
|
|
3070
|
+
return {
|
|
3071
|
+
'data-event-category': BOOST_POPUP_TRACKING_CATEGORY,
|
|
3072
|
+
'data-event-action': action,
|
|
3073
|
+
'data-event-label': (label === null || label === void 0 ? void 0 : label.trim()) || '',
|
|
3074
|
+
};
|
|
3075
|
+
}
|
|
3076
|
+
|
|
3077
|
+
function PopupBoostPageView({ source, articleId, primaryCategoryId, postId, community, isMobile, basePath, currentUrl, getSpotlightTitle, getSpotlightImage, getSpotlightPermalink, getSpotlightContent, }) {
|
|
3078
|
+
const { t, locale } = useTranslations();
|
|
3079
|
+
const modalHeading = t('popupBoostPageView.modalHeading');
|
|
3080
|
+
const viewDetailText = t('popupBoostPageView.viewDetail');
|
|
3081
|
+
const [requestState, setRequestState] = useState('idle');
|
|
3082
|
+
const [boostType, setBoostType] = useState(null);
|
|
3083
|
+
const [boostArticle, setBoostArticle] = useState(null);
|
|
3084
|
+
const [boostCarePath, setBoostCarePath] = useState(null);
|
|
3085
|
+
const [boostCustom, setBoostCustom] = useState(null);
|
|
3086
|
+
const [delaySeconds, setDelaySeconds] = useState(0);
|
|
3087
|
+
const [sessionPopupShown, setSessionPopupShown] = useState(false);
|
|
3088
|
+
const [opened, { open, close }] = useDisclosure(false);
|
|
3089
|
+
const pendingOpenDeadlineRef = useRef(null);
|
|
3090
|
+
const suppressNextOpenRef = useRef(false);
|
|
3091
|
+
const getSpotlightTitleRef = useRef(getSpotlightTitle);
|
|
3092
|
+
const getSpotlightImageRef = useRef(getSpotlightImage);
|
|
3093
|
+
const getSpotlightPermalinkRef = useRef(getSpotlightPermalink);
|
|
3094
|
+
const getSpotlightContentRef = useRef(getSpotlightContent);
|
|
3095
|
+
getSpotlightTitleRef.current = getSpotlightTitle;
|
|
3096
|
+
getSpotlightImageRef.current = getSpotlightImage;
|
|
3097
|
+
getSpotlightPermalinkRef.current = getSpotlightPermalink;
|
|
3098
|
+
getSpotlightContentRef.current = getSpotlightContent;
|
|
3099
|
+
const currentUrlRef = useRef(currentUrl);
|
|
3100
|
+
currentUrlRef.current = currentUrl;
|
|
3101
|
+
const hasSourceId = source === 'article' ? !!articleId : !!postId;
|
|
3102
|
+
useEffect(() => {
|
|
3103
|
+
if (!hasSourceId) {
|
|
3104
|
+
close();
|
|
3105
|
+
pendingOpenDeadlineRef.current = null;
|
|
3106
|
+
setSessionPopupShown(false);
|
|
3107
|
+
setRequestState('idle');
|
|
3108
|
+
setBoostType(null);
|
|
3109
|
+
setBoostArticle(null);
|
|
3110
|
+
setBoostCarePath(null);
|
|
3111
|
+
setBoostCustom(null);
|
|
3112
|
+
setDelaySeconds(0);
|
|
3113
|
+
return;
|
|
3114
|
+
}
|
|
3115
|
+
if (sessionPopupShown) {
|
|
3116
|
+
return;
|
|
3117
|
+
}
|
|
3118
|
+
close();
|
|
3119
|
+
setBoostType(null);
|
|
3120
|
+
setBoostArticle(null);
|
|
3121
|
+
setBoostCarePath(null);
|
|
3122
|
+
setBoostCustom(null);
|
|
3123
|
+
setDelaySeconds(0);
|
|
3124
|
+
const requestedSourceId = source === 'article' ? articleId : postId;
|
|
3125
|
+
let isActive = true;
|
|
3126
|
+
setRequestState('loading');
|
|
3127
|
+
(() => __awaiter(this, void 0, void 0, function* () {
|
|
3128
|
+
var _a, _b, _c;
|
|
3129
|
+
const res = yield callApi(getDiscoverApiPath(DISCOVER_PATHS.GET_BOOST_POPUP_CARD, {
|
|
3130
|
+
type: source,
|
|
3131
|
+
articleId: source === 'article' ? requestedSourceId !== null && requestedSourceId !== void 0 ? requestedSourceId : '' : '',
|
|
3132
|
+
primaryCategoryId: source === 'article' ? primaryCategoryId !== null && primaryCategoryId !== void 0 ? primaryCategoryId : '' : '',
|
|
3133
|
+
community: source === 'community' ? community !== null && community !== void 0 ? community : '' : '',
|
|
3134
|
+
postId: source === 'community' ? requestedSourceId !== null && requestedSourceId !== void 0 ? requestedSourceId : '' : '',
|
|
3135
|
+
}), 'get');
|
|
3136
|
+
if (!isActive)
|
|
3137
|
+
return;
|
|
3138
|
+
const boostPayload = res === null || res === void 0 ? void 0 : res.data;
|
|
3139
|
+
const nextType = (boostPayload === null || boostPayload === void 0 ? void 0 : boostPayload.type) === 'article' ||
|
|
3140
|
+
(boostPayload === null || boostPayload === void 0 ? void 0 : boostPayload.type) === 'carepath' ||
|
|
3141
|
+
(boostPayload === null || boostPayload === void 0 ? void 0 : boostPayload.type) === 'custom'
|
|
3142
|
+
? boostPayload.type
|
|
3143
|
+
: null;
|
|
3144
|
+
const nextDelaySeconds = typeof (boostPayload === null || boostPayload === void 0 ? void 0 : boostPayload.delay_time) === 'number' &&
|
|
3145
|
+
boostPayload.delay_time > 0
|
|
3146
|
+
? boostPayload.delay_time
|
|
3147
|
+
: 0;
|
|
3148
|
+
setBoostType(nextType);
|
|
3149
|
+
setDelaySeconds(nextDelaySeconds);
|
|
3150
|
+
if (nextType === 'article' && (boostPayload === null || boostPayload === void 0 ? void 0 : boostPayload.boost_data)) {
|
|
3151
|
+
setBoostArticle(formatArticle(boostPayload.boost_data));
|
|
3152
|
+
setBoostCarePath(null);
|
|
3153
|
+
setBoostCustom(null);
|
|
3154
|
+
}
|
|
3155
|
+
else if (nextType === 'carepath' && (boostPayload === null || boostPayload === void 0 ? void 0 : boostPayload.boost_data)) {
|
|
3156
|
+
const raw = boostPayload.boost_data;
|
|
3157
|
+
const title = getSpotlightTitleRef.current(raw) || '';
|
|
3158
|
+
const image = getSpotlightImageRef.current(raw) || '';
|
|
3159
|
+
const permalink = ((_a = getSpotlightPermalinkRef.current) === null || _a === void 0 ? void 0 : _a.call(getSpotlightPermalinkRef, raw)) ||
|
|
3160
|
+
String((raw === null || raw === void 0 ? void 0 : raw.permalink) || '');
|
|
3161
|
+
const content = ((_b = getSpotlightContentRef.current) === null || _b === void 0 ? void 0 : _b.call(getSpotlightContentRef, raw)) || String((raw === null || raw === void 0 ? void 0 : raw.content) || '');
|
|
3162
|
+
setBoostCarePath({ permalink, title, image, content });
|
|
3163
|
+
setBoostArticle(null);
|
|
3164
|
+
setBoostCustom(null);
|
|
3165
|
+
}
|
|
3166
|
+
else if (nextType === 'custom' && (boostPayload === null || boostPayload === void 0 ? void 0 : boostPayload.boost_data)) {
|
|
3167
|
+
const raw = boostPayload.boost_data;
|
|
3168
|
+
setBoostCustom({
|
|
3169
|
+
link: raw.link || '',
|
|
3170
|
+
title: raw.title || '',
|
|
3171
|
+
description: raw.description || '',
|
|
3172
|
+
image: typeof raw.image === 'string' && raw.image ? raw.image : null,
|
|
3173
|
+
});
|
|
3174
|
+
setBoostArticle(null);
|
|
3175
|
+
setBoostCarePath(null);
|
|
3176
|
+
}
|
|
3177
|
+
else {
|
|
3178
|
+
setBoostArticle(null);
|
|
3179
|
+
setBoostCarePath(null);
|
|
3180
|
+
setBoostCustom(null);
|
|
3181
|
+
}
|
|
3182
|
+
const hasPayloadBoost = (nextType === 'article' && !!(boostPayload === null || boostPayload === void 0 ? void 0 : boostPayload.boost_data)) ||
|
|
3183
|
+
(nextType === 'carepath' && !!(boostPayload === null || boostPayload === void 0 ? void 0 : boostPayload.boost_data)) ||
|
|
3184
|
+
(nextType === 'custom' &&
|
|
3185
|
+
!!((_c = boostPayload === null || boostPayload === void 0 ? void 0 : boostPayload.boost_data) === null || _c === void 0 ? void 0 : _c.link));
|
|
3186
|
+
if (!hasPayloadBoost) {
|
|
3187
|
+
pendingOpenDeadlineRef.current = null;
|
|
3188
|
+
}
|
|
3189
|
+
setRequestState('ready');
|
|
3190
|
+
}))();
|
|
3191
|
+
return () => {
|
|
3192
|
+
isActive = false;
|
|
3193
|
+
};
|
|
3194
|
+
}, [
|
|
3195
|
+
source,
|
|
3196
|
+
articleId,
|
|
3197
|
+
primaryCategoryId,
|
|
3198
|
+
postId,
|
|
3199
|
+
community,
|
|
3200
|
+
close,
|
|
3201
|
+
sessionPopupShown,
|
|
3202
|
+
]);
|
|
3203
|
+
useEffect(() => {
|
|
3204
|
+
const hasBoostData = (boostType === 'article' && !!boostArticle) ||
|
|
3205
|
+
(boostType === 'carepath' && !!boostCarePath) ||
|
|
3206
|
+
(boostType === 'custom' && !!(boostCustom === null || boostCustom === void 0 ? void 0 : boostCustom.link));
|
|
3207
|
+
if (!hasSourceId ||
|
|
3208
|
+
sessionPopupShown ||
|
|
3209
|
+
requestState !== 'ready' ||
|
|
3210
|
+
!hasBoostData) {
|
|
3211
|
+
return;
|
|
3212
|
+
}
|
|
3213
|
+
if (pendingOpenDeadlineRef.current === null) {
|
|
3214
|
+
pendingOpenDeadlineRef.current = Date.now() + delaySeconds * 1000;
|
|
3215
|
+
}
|
|
3216
|
+
const remainingMs = Math.max(0, pendingOpenDeadlineRef.current - Date.now());
|
|
3217
|
+
const timer = window.setTimeout(() => {
|
|
3218
|
+
pendingOpenDeadlineRef.current = null;
|
|
3219
|
+
setSessionPopupShown(true);
|
|
3220
|
+
open();
|
|
3221
|
+
}, remainingMs);
|
|
3222
|
+
return () => {
|
|
3223
|
+
window.clearTimeout(timer);
|
|
3224
|
+
};
|
|
3225
|
+
}, [
|
|
3226
|
+
articleId,
|
|
3227
|
+
sessionPopupShown,
|
|
3228
|
+
requestState,
|
|
3229
|
+
boostType,
|
|
3230
|
+
boostArticle,
|
|
3231
|
+
boostCarePath,
|
|
3232
|
+
boostCustom,
|
|
3233
|
+
delaySeconds,
|
|
3234
|
+
open,
|
|
3235
|
+
]);
|
|
3236
|
+
const handleBoostDrawerRelease = useCallback((_event, openAfterRelease) => {
|
|
3237
|
+
if (openAfterRelease)
|
|
3238
|
+
return;
|
|
3239
|
+
pushBoostPopupDataLayerEvent(BOOST_POPUP_GTAG_EVENTS.swipeToClose, BOOST_POPUP_TRACKING_ACTION.closeCard, currentUrlRef.current);
|
|
3240
|
+
}, []);
|
|
3241
|
+
const targetUrl = boostType === 'article'
|
|
3242
|
+
? boostArticle === null || boostArticle === void 0 ? void 0 : boostArticle.permalink
|
|
3243
|
+
: boostType === 'carepath'
|
|
3244
|
+
? boostCarePath === null || boostCarePath === void 0 ? void 0 : boostCarePath.permalink
|
|
3245
|
+
: boostType === 'custom'
|
|
3246
|
+
? boostCustom === null || boostCustom === void 0 ? void 0 : boostCustom.link
|
|
3247
|
+
: null;
|
|
3248
|
+
const boostingUrl = targetUrl
|
|
3249
|
+
? targetUrl.startsWith('http')
|
|
3250
|
+
? targetUrl
|
|
3251
|
+
: `${window.location.origin}${basePath}${targetUrl.startsWith('/') ? targetUrl : `/${targetUrl}`}`
|
|
3252
|
+
: null;
|
|
3253
|
+
const hasBoostData = (boostType === 'article' && !!boostArticle) ||
|
|
3254
|
+
(boostType === 'carepath' && !!boostCarePath) ||
|
|
3255
|
+
(boostType === 'custom' && !!(boostCustom === null || boostCustom === void 0 ? void 0 : boostCustom.link));
|
|
3256
|
+
if (!hasSourceId ||
|
|
3257
|
+
requestState !== 'ready' ||
|
|
3258
|
+
!hasBoostData ||
|
|
3259
|
+
!boostingUrl) {
|
|
3260
|
+
return null;
|
|
3261
|
+
}
|
|
3262
|
+
const trimmedBase = basePath.replace(/\/$/, '');
|
|
3263
|
+
const assetImageBasePath = trimmedBase ? `${trimmedBase}/images` : '/images';
|
|
3264
|
+
const handleDismiss = () => {
|
|
3265
|
+
// Drag-close/overlay-close can emit a trailing click; ignore it once.
|
|
3266
|
+
suppressNextOpenRef.current = true;
|
|
3267
|
+
pendingOpenDeadlineRef.current = null;
|
|
3268
|
+
setSessionPopupShown(true);
|
|
3269
|
+
if (!isMobile) {
|
|
3270
|
+
window.open(boostingUrl, '_blank', 'noopener,noreferrer');
|
|
3271
|
+
close();
|
|
3272
|
+
return;
|
|
3273
|
+
}
|
|
3274
|
+
close();
|
|
3275
|
+
};
|
|
3276
|
+
const handleBoostOverlayClick = (event) => {
|
|
3277
|
+
if (suppressNextOpenRef.current) {
|
|
3278
|
+
event.preventDefault();
|
|
3279
|
+
suppressNextOpenRef.current = false;
|
|
3280
|
+
return;
|
|
3281
|
+
}
|
|
3282
|
+
pendingOpenDeadlineRef.current = null;
|
|
3283
|
+
setSessionPopupShown(true);
|
|
3284
|
+
close();
|
|
3285
|
+
};
|
|
3286
|
+
const contentEle = (React__default.createElement(Box, { sx: { position: 'relative' } },
|
|
3287
|
+
React__default.createElement(Stack, { "data-boost-type": boostType, sx: (theme) => ({
|
|
3288
|
+
gap: 12,
|
|
3289
|
+
[theme.fn.largerThan('sm')]: { gap: 16 },
|
|
3290
|
+
'.article-card': {
|
|
3291
|
+
// Clicks go to the boost overlay `<a>`; keep ArticleCard markup unchanged.
|
|
3292
|
+
a: {
|
|
3293
|
+
pointerEvents: 'none',
|
|
3294
|
+
},
|
|
3295
|
+
'&[data-size=md][data-direction=horizontal]': {
|
|
3296
|
+
padding: 0,
|
|
3297
|
+
'.footer': {
|
|
3298
|
+
marginTop: 0,
|
|
3299
|
+
'& > div': {
|
|
3300
|
+
marginTop: 16,
|
|
3301
|
+
},
|
|
3302
|
+
},
|
|
3303
|
+
},
|
|
3304
|
+
'&[data-direction=vertical] .banner': {
|
|
3305
|
+
height: 192,
|
|
3306
|
+
},
|
|
3307
|
+
'.author .poster': {
|
|
3308
|
+
p: {
|
|
3309
|
+
fontSize: '12px',
|
|
3310
|
+
lineHeight: '16px',
|
|
3311
|
+
'span:not(.name)': {
|
|
3312
|
+
color: '#8c8c8c',
|
|
3313
|
+
},
|
|
3314
|
+
},
|
|
3315
|
+
a: {
|
|
3316
|
+
color: '#8c8c8c',
|
|
3317
|
+
'span:not(:has(span))': {
|
|
3318
|
+
color: '#000 !important',
|
|
3319
|
+
},
|
|
3320
|
+
},
|
|
3321
|
+
},
|
|
3322
|
+
'h3 + a': {
|
|
3323
|
+
display: 'none',
|
|
3324
|
+
},
|
|
3325
|
+
},
|
|
3326
|
+
}) },
|
|
3327
|
+
boostType === 'article' && boostArticle ? (React__default.createElement(React__default.Fragment, null,
|
|
3328
|
+
React__default.createElement(PopupBoostArticleCard, { article: boostArticle, isMobile: isMobile, assetImageBase: assetImageBasePath }),
|
|
3329
|
+
React__default.createElement(Text, { size: "p3", as: "div", dangerouslySetInnerHTML: {
|
|
3330
|
+
__html: boostArticle.excerpt || boostArticle.postContent || '',
|
|
3331
|
+
}, lineClamp: 8 }))) : null,
|
|
3332
|
+
boostType === 'carepath' && boostCarePath ? (React__default.createElement(Box, { sx: {
|
|
3333
|
+
display: 'grid',
|
|
3334
|
+
gap: 12,
|
|
3335
|
+
} },
|
|
3336
|
+
React__default.createElement(Box, { sx: (theme) => ({
|
|
3337
|
+
marginLeft: -16,
|
|
3338
|
+
marginRight: -16,
|
|
3339
|
+
[theme.fn.largerThan('sm')]: { marginTop: -16 },
|
|
3340
|
+
width: 'calc(100% + 32px)',
|
|
3341
|
+
aspectRatio: '16 / 8',
|
|
3342
|
+
overflow: 'hidden',
|
|
3343
|
+
}) },
|
|
3344
|
+
React__default.createElement("img", { src: boostCarePath.image || '', alt: boostCarePath.title, loading: "lazy", style: {
|
|
3345
|
+
width: '100%',
|
|
3346
|
+
height: '100%',
|
|
3347
|
+
objectFit: 'cover',
|
|
3348
|
+
display: 'block',
|
|
3349
|
+
} })),
|
|
3350
|
+
React__default.createElement(Stack, { spacing: 3 },
|
|
3351
|
+
React__default.createElement(Box, { sx: {
|
|
3352
|
+
textTransform: 'uppercase',
|
|
3353
|
+
fontWeight: 'normal',
|
|
3354
|
+
fontSize: '12px',
|
|
3355
|
+
lineHeight: '15px',
|
|
3356
|
+
} }, domainLocales[locale]),
|
|
3357
|
+
React__default.createElement(Box, { sx: {
|
|
3358
|
+
fontSize: '16px',
|
|
3359
|
+
lineHeight: '19px',
|
|
3360
|
+
fontWeight: 500,
|
|
3361
|
+
} }, boostCarePath.title)),
|
|
3362
|
+
!!boostCarePath.content && (React__default.createElement(Text, { size: "p3", lineClamp: 2, sx: {
|
|
3363
|
+
fontSize: '14px',
|
|
3364
|
+
lineHeight: '19px',
|
|
3365
|
+
color: '#65676B',
|
|
3366
|
+
}, dangerouslySetInnerHTML: {
|
|
3367
|
+
__html: boostCarePath.content,
|
|
3368
|
+
} })))) : null,
|
|
3369
|
+
boostType === 'custom' && boostCustom ? (React__default.createElement(Box, { sx: {
|
|
3370
|
+
display: 'grid',
|
|
3371
|
+
gap: 12,
|
|
3372
|
+
} },
|
|
3373
|
+
boostCustom.image ? (React__default.createElement(Box, { sx: (theme) => ({
|
|
3374
|
+
marginLeft: -16,
|
|
3375
|
+
marginRight: -16,
|
|
3376
|
+
[theme.fn.largerThan('sm')]: { marginTop: -16 },
|
|
3377
|
+
width: 'calc(100% + 32px)',
|
|
3378
|
+
aspectRatio: '16 / 8',
|
|
3379
|
+
overflow: 'hidden',
|
|
3380
|
+
}) },
|
|
3381
|
+
React__default.createElement("img", { src: boostCustom.image, alt: boostCustom.title, loading: "lazy", style: {
|
|
3382
|
+
width: '100%',
|
|
3383
|
+
height: '100%',
|
|
3384
|
+
objectFit: 'cover',
|
|
3385
|
+
display: 'block',
|
|
3386
|
+
} }))) : null,
|
|
3387
|
+
React__default.createElement(Stack, { spacing: 5 },
|
|
3388
|
+
React__default.createElement(Stack, { spacing: 3 },
|
|
3389
|
+
React__default.createElement(Box, { sx: {
|
|
3390
|
+
textTransform: 'uppercase',
|
|
3391
|
+
fontWeight: 'normal',
|
|
3392
|
+
fontSize: '12px',
|
|
3393
|
+
lineHeight: '15px',
|
|
3394
|
+
color: '#65676B',
|
|
3395
|
+
} }, domainLocales[locale]),
|
|
3396
|
+
React__default.createElement(Box, { sx: {
|
|
3397
|
+
fontSize: '16px',
|
|
3398
|
+
lineHeight: '19px',
|
|
3399
|
+
fontWeight: 500,
|
|
3400
|
+
} }, boostCustom.title)),
|
|
3401
|
+
!!boostCustom.description && (React__default.createElement(Text, { size: "p3", lineClamp: 2, sx: {
|
|
3402
|
+
fontSize: '14px',
|
|
3403
|
+
lineHeight: '19px',
|
|
3404
|
+
color: '#65676B',
|
|
3405
|
+
}, dangerouslySetInnerHTML: {
|
|
3406
|
+
__html: boostCustom.description,
|
|
3407
|
+
} }))))) : null,
|
|
3408
|
+
React__default.createElement(Button$1, { variant: "primary", fullWidth: true }, viewDetailText)),
|
|
3409
|
+
React__default.createElement(Box, Object.assign({ component: "a", href: boostingUrl }, boostPopupTrackingData(BOOST_POPUP_TRACKING_ACTION.viewDetail, currentUrl), { target: "_blank", rel: "noopener noreferrer", "aria-label": viewDetailText, onClick: handleBoostOverlayClick, sx: {
|
|
3410
|
+
position: 'absolute',
|
|
3411
|
+
inset: 0,
|
|
3412
|
+
zIndex: 2,
|
|
3413
|
+
cursor: 'pointer',
|
|
3414
|
+
backgroundColor: 'transparent',
|
|
3415
|
+
} }))));
|
|
3416
|
+
return isMobile ? (React__default.createElement(DrawerBottom, { isMobile: true, isOpen: opened, onClose: handleDismiss, onRelease: handleBoostDrawerRelease, drawerOverlayProps: boostPopupTrackingData(BOOST_POPUP_TRACKING_ACTION.closeCard, currentUrl) },
|
|
3417
|
+
React__default.createElement(Stack, { spacing: 16, sx: { padding: 16, paddingTop: 0 } },
|
|
3418
|
+
React__default.createElement(Text, { size: "s2" }, modalHeading),
|
|
3419
|
+
contentEle))) : (React__default.createElement(Modal, { title: React__default.createElement(Text, { size: "s2" }, modalHeading), size: 568, opened: opened, onClose: handleDismiss, closeButtonProps: boostPopupTrackingData(BOOST_POPUP_TRACKING_ACTION.closeCard, currentUrl), overlayProps: boostPopupTrackingData(BOOST_POPUP_TRACKING_ACTION.closeCard, currentUrl), zIndex: 500, styles: {
|
|
3420
|
+
body: {
|
|
3421
|
+
'&:not(:only-child)': {
|
|
3422
|
+
paddingTop: 16,
|
|
3423
|
+
},
|
|
3424
|
+
},
|
|
3425
|
+
} }, contentEle));
|
|
3426
|
+
}
|
|
3427
|
+
|
|
2793
3428
|
const StyledFixedAdBlock = styled.div `
|
|
2794
3429
|
position: fixed;
|
|
2795
3430
|
z-index: 48;
|
|
@@ -5783,7 +6418,7 @@ const EmptyState = styled.div `
|
|
|
5783
6418
|
min-height: 240px;
|
|
5784
6419
|
text-align: center;
|
|
5785
6420
|
`;
|
|
5786
|
-
const StyledModal = styled(Modal) `
|
|
6421
|
+
const StyledModal = styled(Modal$1) `
|
|
5787
6422
|
.mantine-Modal-header {
|
|
5788
6423
|
padding: 12px 16px;
|
|
5789
6424
|
border-bottom: 1px solid #0000001a;
|
|
@@ -6260,4 +6895,4 @@ const formatSiteWideBanner = (sitewideBanner, type = 'home') => {
|
|
|
6260
6895
|
};
|
|
6261
6896
|
};
|
|
6262
6897
|
|
|
6263
|
-
export { AdBlock as A, Breadcrumbs as B, CategoryCard as C, DatePicker as D,
|
|
6898
|
+
export { AdBlock as A, Breadcrumbs as B, CategoryCard as C, DatePicker as D, StarFull as E, FloatButtonGroup as F, GeneralInfo as G, HPVScreener as H, IconText as I, StarHalf as J, StarUpgrade as K, List as L, ModalGallery as M, PopupBoostArticleCard as P, QuickFilter as Q, RadioGroup as R, ScrollList as S, Tabs as T, VoucherItem as V, WidgetChatbotAi as W, CheckboxGroup as a, StatisticCard as b, index as c, DoctorInfo as d, CookieAcceptConfirm as e, SeoHead as f, DateRangePicker as g, ShareContainer as h, index$1 as i, ShareDrawer as j, PopupBoostPageView as k, FixedBottomAdBlock as l, SummaryInfo as m, ListContext as n, useList as o, QuickFilterWrapLine as p, CardListItem as q, useModalGalleryContext as r, ModalGalleryProvider as s, CertificateItem as t, useListContext as u, RatingStars as v, RatingStarsInput as w, MAX_RATING as x, AnsweredByDoctor as y, formatSiteWideBanner as z };
|