@hhgtech/hhg-components 1.21.0-beta-13 → 1.21.0-beta-15
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/Locale-11b51016.js +1 -0
- package/build/babyGrowth.js +173 -1
- package/build/care/components/organisms/bookingSearchBar/index.styled.d.ts +1 -1
- package/build/care/components/organisms/bookingSearchBar/resultSection/index.styled.d.ts +1 -1
- package/build/care.js +1 -1
- package/build/components/molecules/babyGrowthChooseProfileDrawer/index.d.ts +1 -1
- package/build/components/molecules/babyGrowthChooseProfileDrawer/index.styled.d.ts +1 -1
- package/build/components/molecules/childCard/index.styled.d.ts +1 -1
- package/build/components/molecules/dropdownSearch/index.styled.d.ts +1 -1
- package/build/components/molecules/shareDrawer/index.d.ts +1 -1
- package/build/components/molecules/shareDrawer/index.styled.d.ts +1 -1
- package/build/components/molecules/sidemenu/menuLink.d.ts +1 -1
- package/build/components/molecules/tabs/index.d.ts +1 -1
- package/build/components/organisms/navigationV2/components/atoms/PopupWrapper/index.styled.d.ts +1 -1
- package/build/components/organisms/userProfileNavigation/navHeader/index.styled.d.ts +1 -1
- package/build/components.js +1 -1
- package/build/core.js +1 -1
- package/build/esm/Locale-69030fff.js +1 -0
- package/build/esm/babyGrowth.js +173 -1
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/core-d22826b4.js +1 -0
- package/build/esm/core.js +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/getDynamicHealthTool-ad018fba.js +1 -0
- package/build/esm/{getSocialList-e83ef69b.js → getSocialList-56837296.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/imgHHG.js +1 -1
- package/build/esm/index-39ac64e7.js +1 -0
- package/build/esm/index-3a6cfebe.js +1 -0
- package/build/esm/index-421f321b.js +1 -0
- package/build/esm/index-62c22dbe.js +1 -0
- package/build/esm/index-80bf7afc.js +1 -0
- package/build/esm/{index-29445b85.js → index-9048e6d1.js} +1 -1
- package/build/esm/index-9aac3372.js +1 -0
- package/build/esm/index-b1b34ed1.js +1 -0
- package/build/esm/{index-a1a27346.js → index-c5812caf.js} +1 -1
- package/build/esm/index-c959bb4b.js +1 -0
- package/build/esm/index-e0b79156.js +1 -0
- package/build/esm/index-f67ae39f.js +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/index.styled-582704f1.js +1 -0
- package/build/esm/index.styled-5edc4629.js +1 -0
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/navigationLayout_deprecated.js +1 -1
- package/build/esm/screenSizeContext-9ff212a8.js +1 -0
- package/build/esm/together.js +1 -1
- package/build/esm/togetherComponentGlobalContext-c774752b.js +1 -0
- package/build/esm/{translationsProvider-a5fc5cf8.js → translationsProvider-31f2609e.js} +1 -1
- package/build/esm/{tslib.es6-95636cf4.js → tslib.es6-5532bd7b.js} +1 -1
- package/build/esm/types-2b1dd719.js +1 -0
- package/build/esm/types-aa248dd7.js +1 -0
- package/build/esm/types.js +1 -1
- package/build/esm/{useHealthToolCache-f3494997.js → useHealthToolCache-3ed2f96b.js} +1 -1
- package/build/esm/useTranslations-54ca0c03.js +1 -0
- package/build/esm/{zalo-d903a989.js → zalo-7f0726ae.js} +1 -1
- package/build/{getDynamicHealthTool-0df314ad.js → getDynamicHealthTool-87cf062a.js} +1 -1
- package/build/{getSocialList-f228c829.js → getSocialList-2a3b759f.js} +1 -1
- package/build/hooks/useScreenSize.d.ts +1 -2
- package/build/hooks.js +1 -1
- package/build/index-11374de9.js +1 -0
- package/build/index-28a40715.js +1 -0
- package/build/index-57503957.js +1 -0
- package/build/index-6e794874.js +1 -0
- package/build/index-867280b2.js +1 -0
- package/build/index-8c41c989.js +1 -0
- package/build/index-95c1dab4.js +1 -0
- package/build/index-ab8fb291.js +1 -0
- package/build/index-c91ae65d.js +1 -0
- package/build/index-e47dbebb.js +1 -0
- package/build/index-e5c765bb.js +1 -0
- package/build/{index-fbae171b.js → index-ed80aa0f.js} +1 -1
- package/build/index.js +1 -1
- package/build/index.styled-811571ef.js +1 -0
- package/build/index.styled-953cfed3.js +1 -0
- package/build/mantine.js +1 -1
- package/build/misc/index.d.ts +1 -0
- package/build/misc/screenSizeContext.d.ts +23 -0
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/navigationLayout_deprecated.js +1 -1
- package/build/screenSizeContext-7258749a.js +1 -0
- package/build/together.js +1 -1
- package/build/togetherComponentGlobalContext-7535ca37.js +1 -0
- package/build/types-3026d1a7.js +1 -0
- package/build/types-a7e8aa6f.js +1 -0
- package/build/types.js +1 -1
- package/build/{useHealthToolCache-3e46ef8f.js → useHealthToolCache-f0e420ac.js} +1 -1
- package/build/useTranslations-6a4b4ee8.js +1 -0
- package/build/zalo-e7b9d144.js +1 -0
- package/package.json +4 -16
- package/build/BabyGrowth-67f596f1.js +0 -1
- package/build/FullScreen-924067af.js +0 -1
- package/build/Locale-a38e4154.js +0 -1
- package/build/_commonjsHelpers-2e1dcd72.js +0 -1
- package/build/animation-b53aef6e.js +0 -1
- package/build/components/alert.js +0 -1
- package/build/components/ampNextPage.js +0 -1
- package/build/components/articleCard.js +0 -1
- package/build/components/avatar.js +0 -1
- package/build/components/babyGrowthChart.js +0 -1
- package/build/components/babyGrowthChooseProfileDrawer.js +0 -1
- package/build/components/babyGrowthGender.js +0 -1
- package/build/components/babyGrowthLegend.js +0 -1
- package/build/components/babyGrowthProfileRadio.js +0 -1
- package/build/components/babyGrowthRecord.js +0 -1
- package/build/components/babyGrowthSwitch.js +0 -1
- package/build/components/babyGrowthTooltip.js +0 -1
- package/build/components/backdrop.js +0 -1
- package/build/components/badge.js +0 -1
- package/build/components/borderHeading.js +0 -1
- package/build/components/breadcrumbs.js +0 -1
- package/build/components/button.js +0 -1
- package/build/components/carousel.js +0 -1
- package/build/components/categoryCard.js +0 -1
- package/build/components/checkbox.js +0 -1
- package/build/components/checkboxGroup.js +0 -1
- package/build/components/childCard.js +0 -1
- package/build/components/container.js +0 -1
- package/build/components/cookieAcceptConfirm.js +0 -1
- package/build/components/datePicker.js +0 -1
- package/build/components/dateRangePicker.js +0 -1
- package/build/components/displayWrapper.js +0 -1
- package/build/components/divider.js +0 -1
- package/build/components/doctorInfo.js +0 -1
- package/build/components/drawer.js +0 -1
- package/build/components/dropdown.js +0 -1
- package/build/components/dropdownSearch.js +0 -1
- package/build/components/fileDropdown.js +0 -1
- package/build/components/flag.js +0 -1
- package/build/components/floatButtonGroup.js +0 -1
- package/build/components/footer.js +0 -1
- package/build/components/grid.js +0 -1
- package/build/components/heading.js +0 -1
- package/build/components/iconText.js +0 -1
- package/build/components/icons.js +0 -1
- package/build/components/input.js +0 -1
- package/build/components/label.js +0 -1
- package/build/components/languageSwitcher.js +0 -1
- package/build/components/logo.js +0 -1
- package/build/components/mantine/select.js +0 -1
- package/build/components/marryBabyText.js +0 -1
- package/build/components/menu.js +0 -1
- package/build/components/mobileBottomNavigation.js +0 -1
- package/build/components/modal.js +0 -1
- package/build/components/navigationBookingButton.js +0 -1
- package/build/components/navigationLayout_deprecated.js +0 -1
- package/build/components/navigationLogoutPopup.js +0 -1
- package/build/components/navigationProfileButton.js +0 -1
- package/build/components/navigationV2.js +0 -1
- package/build/components/newBabyProfileRadio.js +0 -1
- package/build/components/pagination.js +0 -1
- package/build/components/popup.js +0 -1
- package/build/components/progress.js +0 -1
- package/build/components/progressBar.js +0 -1
- package/build/components/pureInput.js +0 -1
- package/build/components/radio.js +0 -1
- package/build/components/radioGroup.js +0 -1
- package/build/components/radioImageGroup.js +0 -1
- package/build/components/rateStars.js +0 -1
- package/build/components/scrollList.js +0 -1
- package/build/components/seoHead.js +0 -1
- package/build/components/shadow.js +0 -1
- package/build/components/shareContainer.js +0 -1
- package/build/components/shareDrawer.js +0 -1
- package/build/components/sidemenu.js +0 -1
- package/build/components/slider.js +0 -1
- package/build/components/starsRatingBox.js +0 -1
- package/build/components/statisticCard.js +0 -1
- package/build/components/surveyQuestionCard.js +0 -1
- package/build/components/table.js +0 -1
- package/build/components/tabs.js +0 -1
- package/build/components/tag.js +0 -1
- package/build/components/text.js +0 -1
- package/build/components/textArea.js +0 -1
- package/build/components/textDivider.js +0 -1
- package/build/components/toggle.js +0 -1
- package/build/components/underlinedLink.js +0 -1
- package/build/components/uploader.js +0 -1
- package/build/components/userProfileNavigation.js +0 -1
- package/build/esm/BabyGrowth-a6bb24d9.js +0 -1
- package/build/esm/FullScreen-a24fd8fa.js +0 -1
- package/build/esm/Locale-2d9f66c1.js +0 -1
- package/build/esm/_commonjsHelpers-406f2e34.js +0 -1
- package/build/esm/animation-c611f996.js +0 -1
- package/build/esm/components/alert.js +0 -1
- package/build/esm/components/ampNextPage.js +0 -1
- package/build/esm/components/articleCard.js +0 -1
- package/build/esm/components/avatar.js +0 -1
- package/build/esm/components/babyGrowthChart.js +0 -1
- package/build/esm/components/babyGrowthChooseProfileDrawer.js +0 -1
- package/build/esm/components/babyGrowthGender.js +0 -1
- package/build/esm/components/babyGrowthLegend.js +0 -1
- package/build/esm/components/babyGrowthProfileRadio.js +0 -1
- package/build/esm/components/babyGrowthRecord.js +0 -1
- package/build/esm/components/babyGrowthSwitch.js +0 -1
- package/build/esm/components/babyGrowthTooltip.js +0 -1
- package/build/esm/components/backdrop.js +0 -1
- package/build/esm/components/badge.js +0 -1
- package/build/esm/components/borderHeading.js +0 -1
- package/build/esm/components/breadcrumbs.js +0 -1
- package/build/esm/components/button.js +0 -1
- package/build/esm/components/carousel.js +0 -1
- package/build/esm/components/categoryCard.js +0 -1
- package/build/esm/components/checkbox.js +0 -1
- package/build/esm/components/checkboxGroup.js +0 -1
- package/build/esm/components/childCard.js +0 -1
- package/build/esm/components/container.js +0 -1
- package/build/esm/components/cookieAcceptConfirm.js +0 -1
- package/build/esm/components/datePicker.js +0 -1
- package/build/esm/components/dateRangePicker.js +0 -1
- package/build/esm/components/displayWrapper.js +0 -1
- package/build/esm/components/divider.js +0 -1
- package/build/esm/components/doctorInfo.js +0 -1
- package/build/esm/components/drawer.js +0 -1
- package/build/esm/components/dropdown.js +0 -1
- package/build/esm/components/dropdownSearch.js +0 -1
- package/build/esm/components/fileDropdown.js +0 -1
- package/build/esm/components/flag.js +0 -1
- package/build/esm/components/floatButtonGroup.js +0 -1
- package/build/esm/components/footer.js +0 -1
- package/build/esm/components/grid.js +0 -1
- package/build/esm/components/heading.js +0 -1
- package/build/esm/components/iconText.js +0 -1
- package/build/esm/components/icons.js +0 -1
- package/build/esm/components/input.js +0 -1
- package/build/esm/components/label.js +0 -1
- package/build/esm/components/languageSwitcher.js +0 -1
- package/build/esm/components/logo.js +0 -1
- package/build/esm/components/mantine/select.js +0 -1
- package/build/esm/components/marryBabyText.js +0 -1
- package/build/esm/components/menu.js +0 -1
- package/build/esm/components/mobileBottomNavigation.js +0 -1
- package/build/esm/components/modal.js +0 -1
- package/build/esm/components/navigationBookingButton.js +0 -1
- package/build/esm/components/navigationLayout_deprecated.js +0 -1
- package/build/esm/components/navigationLogoutPopup.js +0 -1
- package/build/esm/components/navigationProfileButton.js +0 -1
- package/build/esm/components/navigationV2.js +0 -1
- package/build/esm/components/newBabyProfileRadio.js +0 -1
- package/build/esm/components/pagination.js +0 -1
- package/build/esm/components/popup.js +0 -1
- package/build/esm/components/progress.js +0 -1
- package/build/esm/components/progressBar.js +0 -1
- package/build/esm/components/pureInput.js +0 -1
- package/build/esm/components/radio.js +0 -1
- package/build/esm/components/radioGroup.js +0 -1
- package/build/esm/components/radioImageGroup.js +0 -1
- package/build/esm/components/rateStars.js +0 -1
- package/build/esm/components/scrollList.js +0 -1
- package/build/esm/components/seoHead.js +0 -1
- package/build/esm/components/shadow.js +0 -1
- package/build/esm/components/shareContainer.js +0 -1
- package/build/esm/components/shareDrawer.js +0 -1
- package/build/esm/components/sidemenu.js +0 -1
- package/build/esm/components/slider.js +0 -1
- package/build/esm/components/starsRatingBox.js +0 -1
- package/build/esm/components/statisticCard.js +0 -1
- package/build/esm/components/surveyQuestionCard.js +0 -1
- package/build/esm/components/table.js +0 -1
- package/build/esm/components/tabs.js +0 -1
- package/build/esm/components/tag.js +0 -1
- package/build/esm/components/text.js +0 -1
- package/build/esm/components/textArea.js +0 -1
- package/build/esm/components/textDivider.js +0 -1
- package/build/esm/components/toggle.js +0 -1
- package/build/esm/components/underlinedLink.js +0 -1
- package/build/esm/components/uploader.js +0 -1
- package/build/esm/components/userProfileNavigation.js +0 -1
- package/build/esm/core-14be5e06.js +0 -1
- package/build/esm/getDynamicHealthTool-eebb945c.js +0 -1
- package/build/esm/index-038204e6.js +0 -1
- package/build/esm/index-10d2af11.js +0 -1
- package/build/esm/index-1c61f762.js +0 -1
- package/build/esm/index-3f5821b7.js +0 -1
- package/build/esm/index-46cbc22e.js +0 -178
- package/build/esm/index-52fcdd30.js +0 -1
- package/build/esm/index-6d62c282.js +0 -1
- package/build/esm/index-a2a0f40d.js +0 -1
- package/build/esm/index-a55d3726.js +0 -1
- package/build/esm/index-b610a8a2.js +0 -1
- package/build/esm/index-ebe11fb9.js +0 -1
- package/build/esm/index.styled-3e97b3fa.js +0 -1
- package/build/esm/lazyLoad-751c35bd.js +0 -1
- package/build/esm/lock-6e10cde5.js +0 -1
- package/build/esm/surveyThankyouCard-e77b7790.js +0 -1
- package/build/esm/together-68c58fff.js +0 -1
- package/build/esm/togetherComponentGlobalContext-49d5b8e0.js +0 -1
- package/build/esm/types-35f87e1d.js +0 -1
- package/build/esm/types-87d986d8.js +0 -1
- package/build/esm/useScreenSize-fc434740.js +0 -1
- package/build/esm/useTranslations-d9bcdd4c.js +0 -1
- package/build/esm/utils-432904d8.js +0 -1
- package/build/index-0c1af36a.js +0 -1
- package/build/index-19a7a687.js +0 -173
- package/build/index-43887156.js +0 -1
- package/build/index-49ee4083.js +0 -1
- package/build/index-6b372a6e.js +0 -1
- package/build/index-7b01cc84.js +0 -1
- package/build/index-cbfaf5d2.js +0 -1
- package/build/index-cd4b0ed4.js +0 -1
- package/build/index-d12009e4.js +0 -1
- package/build/index-f454f04d.js +0 -1
- package/build/index-f4d501a4.js +0 -1
- package/build/index-fb9d2a41.js +0 -1
- package/build/index.styled-61d64e64.js +0 -1
- package/build/lazyLoad-b5986db9.js +0 -1
- package/build/lock-1950c18b.js +0 -1
- package/build/surveyThankyouCard-0a32a3a4.js +0 -1
- package/build/together-0ce4269b.js +0 -1
- package/build/togetherComponentGlobalContext-2bd33521.js +0 -1
- package/build/types-2632346d.js +0 -1
- package/build/types-d6bb7e7e.js +0 -1
- package/build/useScreenSize-1a87cd03.js +0 -1
- package/build/useTranslations-77f20604.js +0 -1
- package/build/utils-1cac3068.js +0 -1
- package/build/zalo-8f8b40ca.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./tslib.es6-f7929e76.js"),t=require("styled-components"),n=require("react"),a=require("lodash");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s,i,o,l,d,c,_,m,u,p=r(n),f=function(e){var t=Object.keys(e);return t.length?"?"+t.map((function(t){return"".concat(t,"=").concat(e[t])})).join("&"):""},E={BREAK_POINT_SMALL_MOBILE:481,BREAK_POINT_MOBILE:768,BREAK_POINT_TABLET:1024,BREAK_POINT_PC:1200},b={smbDown:"@media (max-width: ".concat(E.BREAK_POINT_SMALL_MOBILE-1,"px)"),smbUp:"@media (min-width: ".concat(E.BREAK_POINT_SMALL_MOBILE,"px)"),mbDown:"@media (max-width: ".concat(E.BREAK_POINT_MOBILE-1,"px)"),mbOnly:"@media (min-width: ".concat(E.BREAK_POINT_SMALL_MOBILE,"px) and (max-width: ").concat(E.BREAK_POINT_MOBILE-1,"px)"),mbUp:"@media (min-width: ".concat(E.BREAK_POINT_MOBILE,"px)"),tdDown:"@media (max-width: ".concat(E.BREAK_POINT_TABLET-1,"px)"),tdOnly:"@media (min-width: ".concat(E.BREAK_POINT_MOBILE,"px) and (max-width: ").concat(E.BREAK_POINT_TABLET-1,"px)"),tdUp:"@media (min-width: ".concat(E.BREAK_POINT_TABLET,"px)"),pcUp:"@media (min-width: ".concat(E.BREAK_POINT_PC,"px)"),pcOnly:"@media (min-width: ".concat(E.BREAK_POINT_TABLET,"px) and (max-width: ").concat(E.BREAK_POINT_PC-1,"px)"),pcDown:"@media (max-width: ".concat(E.BREAK_POINT_PC-1,"px)")},I=t.keyframes(s||(s=e.__makeTemplateObject(["\nfrom {\n transform: translate3d(0, 100%, 0);\n visibility: visible;\n}\n\nto {\n transform: translate3d(0, 0, 0);\n}\n"],["\nfrom {\n transform: translate3d(0, 100%, 0);\n visibility: visible;\n}\n\nto {\n transform: translate3d(0, 0, 0);\n}\n"]))),h=t.keyframes(i||(i=e.__makeTemplateObject(["\nfrom {\n transform: translate3d(0, -100%, 0);\n visibility: visible;\n }\n\n to {\n transform: translate3d(0, 0, 0);\n }\n"],["\nfrom {\n transform: translate3d(0, -100%, 0);\n visibility: visible;\n }\n\n to {\n transform: translate3d(0, 0, 0);\n }\n"]))),O=t.keyframes(o||(o=e.__makeTemplateObject(["\n from {\n transform: translate3d(-100%, 0, 0);\n visibility: visible;\n }\n\n to {\n transform: translate3d(0, 0, 0);\n }\n"],["\n from {\n transform: translate3d(-100%, 0, 0);\n visibility: visible;\n }\n\n to {\n transform: translate3d(0, 0, 0);\n }\n"]))),g=t.keyframes(l||(l=e.__makeTemplateObject(["\n from {\n transform: translate3d(100%, 0, 0);\n visibility: visible;\n }\n\n to {\n transform: translate3d(0, 0, 0);\n }\n"],["\n from {\n transform: translate3d(100%, 0, 0);\n visibility: visible;\n }\n\n to {\n transform: translate3d(0, 0, 0);\n }\n"]))),v=t.keyframes(d||(d=e.__makeTemplateObject(["\nfrom {\n transform: translate3d(0, 0, 0);\n}\n\nto {\n visibility: hidden;\n transform: translate3d(0, 100%, 0);\n}\n"],["\nfrom {\n transform: translate3d(0, 0, 0);\n}\n\nto {\n visibility: hidden;\n transform: translate3d(0, 100%, 0);\n}\n"]))),A=t.keyframes(c||(c=e.__makeTemplateObject(["\nfrom {\n transform: translate3d(0, 0, 0);\n}\n\nto {\n visibility: hidden;\n transform: translate3d(-100%, 0, 0);\n}\n"],["\nfrom {\n transform: translate3d(0, 0, 0);\n}\n\nto {\n visibility: hidden;\n transform: translate3d(-100%, 0, 0);\n}\n"]))),T=t.keyframes(_||(_=e.__makeTemplateObject(["\nfrom {\n transform: translate3d(0, 0, 0);\n}\n\nto {\n visibility: hidden;\n transform: translate3d(100%, 0, 0);\n}\n"],["\nfrom {\n transform: translate3d(0, 0, 0);\n}\n\nto {\n visibility: hidden;\n transform: translate3d(100%, 0, 0);\n}\n"]))),L=t.keyframes(m||(m=e.__makeTemplateObject(["\n from {\n transform: translate3d(0, 0, 0);\n }\n\n to {\n visibility: hidden;\n transform: translate3d(0, -100%, 0);\n }\n"],["\n from {\n transform: translate3d(0, 0, 0);\n }\n\n to {\n visibility: hidden;\n transform: translate3d(0, -100%, 0);\n }\n"]))),B=t.keyframes(u||(u=e.__makeTemplateObject(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"],["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"])));const w="undefined"!=typeof window,y=w&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),x=w&&"IntersectionObserver"in window,P=w&&"classList"in document.createElement("p"),N=w&&window.devicePixelRatio>1,R={elements_selector:".lazy",container:y||w?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_bg_hidpi:"bg-hidpi",data_bg_multi:"bg-multi",data_bg_multi_hidpi:"bg-multi-hidpi",data_poster:"poster",class_applied:"applied",class_loading:"loading",class_loaded:"loaded",class_error:"error",class_entered:"entered",class_exited:"exited",unobserve_completed:!0,unobserve_entered:!1,cancel_on_exit:!0,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1},M=e=>Object.assign({},R,e),k=function(e,t){let n;const a="LazyLoad::Initialized",r=new e(t);try{n=new CustomEvent(a,{detail:{instance:r}})}catch(e){n=document.createEvent("CustomEvent"),n.initCustomEvent(a,!1,!1,{instance:r})}window.dispatchEvent(n)},K="src",C="llOriginalAttrs",S=(e,t)=>e.getAttribute("data-"+t),z=e=>S(e,"ll-status"),D=(e,t)=>((e,t,n)=>{var a="data-"+t;null!==n?e.setAttribute(a,n):e.removeAttribute(a)})(e,"ll-status",t),U=e=>D(e,null),j=e=>null===z(e),G=e=>"native"===z(e),q=["loading","loaded","applied","error"],F=(e,t,n,a)=>{e&&(void 0===a?void 0===n?e(t):e(t,n):e(t,n,a))},V=(e,t)=>{P?e.classList.add(t):e.className+=(e.className?" ":"")+t},W=(e,t)=>{P?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\s+)"+t+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")},J=e=>e.llTempImage,$=(e,t)=>{if(!t)return;const n=t._observer;n&&n.unobserve(e)},H=(e,t)=>{e&&(e.loadingCount+=t)},Q=(e,t)=>{e&&(e.toLoadCount=t)},X=e=>{let t=[];for(let n,a=0;n=e.children[a];a+=1)"SOURCE"===n.tagName&&t.push(n);return t},Y=(e,t)=>{const n=e.parentNode;if(!n||"PICTURE"!==n.tagName)return;X(n).forEach(t)},Z=(e,t)=>{X(e).forEach(t)},ee=[K],te=[K,"poster"],ne=[K,"srcset","sizes"],ae=["data"],re=e=>!!e[C],se=e=>e[C],ie=e=>delete e[C],oe=(e,t)=>{if(re(e))return;const n={};t.forEach((t=>{n[t]=e.getAttribute(t)})),e[C]=n},le=(e,t)=>{if(!re(e))return;const n=se(e);t.forEach((t=>{((e,t,n)=>{n?e.setAttribute(t,n):e.removeAttribute(t)})(e,t,n[t])}))},de=(e,t,n)=>{V(e,t.class_loading),D(e,"loading"),n&&(H(n,1),F(t.callback_loading,e,n))},ce=(e,t,n)=>{n&&e.setAttribute(t,n)},_e=(e,t)=>{ce(e,"sizes",S(e,t.data_sizes)),ce(e,"srcset",S(e,t.data_srcset)),ce(e,K,S(e,t.data_src))},me=(e,t,n)=>{const a=S(e,t.data_bg_multi),r=S(e,t.data_bg_multi_hidpi),s=N&&r?r:a;s&&(e.style.backgroundImage=s,((e,t,n)=>{V(e,t.class_applied),D(e,"applied"),n&&(t.unobserve_completed&&$(e,t),F(t.callback_applied,e,n))})(e,t,n))},ue={IMG:(e,t)=>{Y(e,(e=>{oe(e,ne),_e(e,t)})),oe(e,ne),_e(e,t)},IFRAME:(e,t)=>{oe(e,ee),ce(e,K,S(e,t.data_src))},VIDEO:(e,t)=>{Z(e,(e=>{oe(e,ee),ce(e,K,S(e,t.data_src))})),oe(e,te),ce(e,"poster",S(e,t.data_poster)),ce(e,K,S(e,t.data_src)),e.load()},OBJECT:(e,t)=>{oe(e,ae),ce(e,"data",S(e,t.data_src))}},pe=["IMG","IFRAME","VIDEO","OBJECT"],fe=(e,t)=>{!t||(e=>e.loadingCount>0)(t)||(e=>e.toLoadCount>0)(t)||F(e.callback_finish,t)},Ee=(e,t,n)=>{e.addEventListener(t,n),e.llEvLisnrs[t]=n},be=(e,t,n)=>{e.removeEventListener(t,n)},Ie=e=>!!e.llEvLisnrs,he=e=>{if(!Ie(e))return;const t=e.llEvLisnrs;for(let n in t){const a=t[n];be(e,n,a)}delete e.llEvLisnrs},Oe=(e,t,n)=>{(e=>{delete e.llTempImage})(e),H(n,-1),(e=>{e&&(e.toLoadCount-=1)})(n),W(e,t.class_loading),t.unobserve_completed&&$(e,n)},ge=(e,t,n)=>{const a=J(e)||e;if(Ie(a))return;((e,t,n)=>{Ie(e)||(e.llEvLisnrs={});const a="VIDEO"===e.tagName?"loadeddata":"load";Ee(e,a,t),Ee(e,"error",n)})(a,(r=>{((e,t,n,a)=>{const r=G(t);Oe(t,n,a),V(t,n.class_loaded),D(t,"loaded"),F(n.callback_loaded,t,a),r||fe(n,a)})(0,e,t,n),he(a)}),(r=>{((e,t,n,a)=>{const r=G(t);Oe(t,n,a),V(t,n.class_error),D(t,"error"),F(n.callback_error,t,a),r||fe(n,a)})(0,e,t,n),he(a)}))},ve=(e,t,n)=>{(e=>{e.llTempImage=document.createElement("IMG")})(e),ge(e,t,n),(e=>{re(e)||(e[C]={backgroundImage:e.style.backgroundImage})})(e),((e,t,n)=>{const a=S(e,t.data_bg),r=S(e,t.data_bg_hidpi),s=N&&r?r:a;s&&(e.style.backgroundImage=`url("${s}")`,J(e).setAttribute(K,s),de(e,t,n))})(e,t,n),me(e,t,n)},Ae=(e,t,n)=>{ge(e,t,n),((e,t,n)=>{const a=ue[e.tagName];a&&(a(e,t),de(e,t,n))})(e,t,n)},Te=(e,t,n)=>{(e=>pe.indexOf(e.tagName)>-1)(e)?Ae(e,t,n):ve(e,t,n)},Le=(e,t,n)=>{e.setAttribute("loading","lazy"),ge(e,t,n),((e,t)=>{const n=ue[e.tagName];n&&n(e,t)})(e,t),D(e,"native")},Be=e=>{e.removeAttribute(K),e.removeAttribute("srcset"),e.removeAttribute("sizes")},we=e=>{Y(e,(e=>{le(e,ne)})),le(e,ne)},ye={IMG:we,IFRAME:e=>{le(e,ee)},VIDEO:e=>{Z(e,(e=>{le(e,ee)})),le(e,te),e.load()},OBJECT:e=>{le(e,ae)}},xe=e=>{const t=ye[e.tagName];t?t(e):(e=>{if(!re(e))return;const t=se(e);e.style.backgroundImage=t.backgroundImage})(e)},Pe=(e,t)=>{xe(e),((e,t)=>{j(e)||G(e)||(W(e,t.class_entered),W(e,t.class_exited),W(e,t.class_applied),W(e,t.class_loading),W(e,t.class_loaded),W(e,t.class_error))})(e,t),U(e),ie(e)},Ne=(e,t,n,a)=>{n.cancel_on_exit&&(e=>"loading"===z(e))(e)&&"IMG"===e.tagName&&(he(e),(e=>{Y(e,(e=>{Be(e)})),Be(e)})(e),we(e),W(e,n.class_loading),H(a,-1),U(e),F(n.callback_cancel,e,t,a))},Re=(e,t,n,a)=>{const r=(e=>q.indexOf(z(e))>=0)(e);D(e,"entered"),V(e,n.class_entered),W(e,n.class_exited),((e,t,n)=>{t.unobserve_entered&&$(e,n)})(e,n,a),F(n.callback_enter,e,t,a),r||Te(e,n,a)},Me=["IMG","IFRAME","VIDEO"],ke=e=>e.use_native&&"loading"in HTMLImageElement.prototype,Ke=(e,t,n)=>{e.forEach((e=>(e=>e.isIntersecting||e.intersectionRatio>0)(e)?Re(e.target,e,t,n):((e,t,n,a)=>{j(e)||(V(e,n.class_exited),Ne(e,t,n,a),F(n.callback_exit,e,t,a))})(e.target,e,t,n)))},Ce=(e,t)=>{x&&!ke(e)&&(t._observer=new IntersectionObserver((n=>{Ke(n,e,t)}),(e=>({root:e.container===document?null:e.container,rootMargin:e.thresholds||e.threshold+"px"}))(e)))},Se=e=>Array.prototype.slice.call(e),ze=e=>e.container.querySelectorAll(e.elements_selector),De=e=>(e=>"error"===z(e))(e),Ue=(e,t)=>(e=>Se(e).filter(j))(e||ze(t)),je=(e,t)=>{var n;(n=ze(e),Se(n).filter(De)).forEach((t=>{W(t,e.class_error),U(t)})),t.update()},Ge=function(e,t){const n=M(e);this._settings=n,this.loadingCount=0,Ce(n,this),((e,t)=>{w&&window.addEventListener("online",(()=>{je(e,t)}))})(n,this),this.update(t)};Ge.prototype={update:function(e){const t=this._settings,n=Ue(e,t);var a,r;(Q(this,n.length),!y&&x)?ke(t)?((e,t,n)=>{e.forEach((e=>{-1!==Me.indexOf(e.tagName)&&Le(e,t,n)})),Q(n,0)})(n,t,this):(a=this._observer,r=n,(e=>{e.disconnect()})(a),((e,t)=>{t.forEach((t=>{e.observe(t)}))})(a,r)):this.loadAll(n)},destroy:function(){this._observer&&this._observer.disconnect(),ze(this._settings).forEach((e=>{ie(e)})),delete this._observer,delete this._settings,delete this.loadingCount,delete this.toLoadCount},loadAll:function(e){const t=this._settings;Ue(e,t).forEach((e=>{$(e,this),Te(e,t,this)}))},restoreAll:function(){const e=this._settings;ze(e).forEach((t=>{Pe(t,e)}))}},Ge.load=(e,t)=>{const n=M(t);Te(e,n)},Ge.resetStatus=e=>{U(e)},w&&((e,t)=>{if(t)if(t.length)for(let n,a=0;n=t[a];a+=1)k(e,n);else k(e,t)})(Ge,window.lazyLoadOptions),exports.lazyLoadInstance=null,"undefined"==typeof window||exports.lazyLoadInstance||(exports.lazyLoadInstance=new Ge);var qe=n.createContext({isInit:!0}),Fe=function(e){var t=function(e){return"number"==typeof e?e:"undefined"!=typeof window&&window.innerWidth||0}(e);return{smallMobile:t<E.BREAK_POINT_SMALL_MOBILE,mobile:t>=E.BREAK_POINT_SMALL_MOBILE&&t<E.BREAK_POINT_MOBILE,tablet:t>=E.BREAK_POINT_MOBILE&&t<E.BREAK_POINT_TABLET,pc:t>=E.BREAK_POINT_TABLET&&t<E.BREAK_POINT_PC,xl:t>=E.BREAK_POINT_PC}};exports.Breakpoints=E,exports.MediaQueries=b,exports.ScreenSizeContext=qe,exports.ScreenSizeContextProvider=function(t){var r=t.children,s=n.useState((function(){return{isInit:!0}})),i=s[0],o=s[1];n.useEffect((function(){var e=a.throttle((function(){o({width:window.innerWidth,height:window.innerHeight,isInit:!1})}),200);return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]);var l=n.useMemo((function(){return Fe(i.width)}),[i.width]);return p.default.createElement(qe.Provider,{value:e.__assign(e.__assign({},i),{sizeGroups:l})},r)},exports.fadeIn=B,exports.formatUrlWithPageParam=function(e,t,n){void 0===t&&(t=1),void 0===n&&(n="page");var a=e.split("?"),r=a[0],s=a[1],i=new URLSearchParams(s||""),o={};return i.forEach((function(e,t){e&&(o[t]=e)})),Number(t)>1?o[n]=String(t):delete o[n],r+f(o)},exports.getBoundariesFromMediaQueryKey=function(e){switch(e){case"smbDown":return[0,E.BREAK_POINT_SMALL_MOBILE-1];case"smbUp":return[E.BREAK_POINT_SMALL_MOBILE,0];case"mbDown":return[0,E.BREAK_POINT_MOBILE-1];case"mbOnly":return[E.BREAK_POINT_SMALL_MOBILE,E.BREAK_POINT_MOBILE-1];case"mbUp":return[E.BREAK_POINT_MOBILE,0];case"tdDown":return[0,E.BREAK_POINT_TABLET-1];case"tdOnly":return[E.BREAK_POINT_MOBILE,E.BREAK_POINT_TABLET-1];case"tdUp":return[E.BREAK_POINT_TABLET,0];case"pcUp":return[E.BREAK_POINT_PC,0];case"pcOnly":return[E.BREAK_POINT_TABLET,E.BREAK_POINT_PC-1];case"pcDown":return[0,E.BREAK_POINT_PC-1]}},exports.getPopupWrapperDom=function(){var e="hhg-comp-popup-wrapper";if(!document.querySelector("#"+e)){var t=document.createElement("div");t.id=e,document.body.appendChild(t)}return document.querySelector("#"+e)},exports.getWindowSizeGroups=Fe,exports.makeParams=f,exports.slideInDown=h,exports.slideInLeft=O,exports.slideInRight=g,exports.slideInUp=I,exports.slideOutDown=v,exports.slideOutLeft=A,exports.slideOutRight=T,exports.slideOutUp=L,exports.startCase=function(e){return e.replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))},exports.toggleNoScroll=function(e){"undefined"!=typeof window&&(document.documentElement.style.overflow=e?"hidden":"")};
|
package/build/together.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-3026d1a7.js"),r=require("./index-867280b2.js"),o=require("./togetherComponentGlobalContext-7535ca37.js");require("react"),require("./index.styled-953cfed3.js"),require("./tslib.es6-f7929e76.js"),require("styled-components"),require("./theme-696d81a9.js"),require("./screenSizeContext-7258749a.js"),require("lodash"),require("./translationsContext-af789c7c.js"),require("./useTranslations-6a4b4ee8.js"),require("./index-c91ae65d.js"),require("./index-e5c765bb.js"),require("react-range"),require("react-dom"),require("lodash/debounce"),require("./constants-5675963f.js"),require("date-fns"),require("./Locale-11b51016.js"),require("./index-11374de9.js"),require("./index-ed80aa0f.js"),require("./cookieHelper-612b90fa.js"),require("./number-87b13133.js"),require("./index-28a40715.js"),require("date-fns/locale/en-US"),require("date-fns/locale/hi"),require("date-fns/locale/id"),require("date-fns/locale/ms"),require("date-fns/locale/th"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("react-id-generator"),exports.CardLink=e.CardLink,exports.CardPost=e.CardPost,exports.CardPostPopoverMore=e.CardPostPopoverMore,exports.CardReactions=e.CardReactions,exports.CardReply=e.CardReply,exports.CardReplyPopover=e.CardReplyPopover,exports.CreateNewPostContent=e.CreateNewPostContent,exports.CreatePostDescription=e.CreatePostDescription,exports.CreatePostTitle=e.CreatePostTitle,exports.ImagePreviewPopup=e.ImagePreviewPopup,exports.InputCommentBar=e.InputCommentBar,exports.LabelPin=e.LabelPin,exports.LabelSortPin=e.LabelSortPin,exports.LabelSorting=e.LabelSorting,exports.PopoverMenu=e.PopoverMenu,exports.PopupDanger=e.PopupDanger,exports.PopupFrame=e.PopupFrame,exports.PostContent=e.PostContent,exports.PostImagePreview=e.PostImagePreview,exports.PostSingleImageViewPopup=e.PostSingleImageViewPopup,exports.ShareBox=e.ShareBox,exports.SharePopup=e.SharePopup,exports.SubmitReportForm=e.SubmitReportForm,exports.TagTopic=e.TagTopic,exports.TogetherAuthConfigContext=e.TogetherAuthConfigContext,exports.TogetherAuthConfigContextProvider=e.TogetherAuthConfigContextProvider,exports.TogetherTypes=e.types,exports.TopicSelectList=e.TopicSelectList,exports.useTogetherAuthRequiredAction=e.useTogetherAuthRequiredAction,exports.CardAuthor=r.CardAuthor,exports.Loading=r.Loading,exports.PopupDoctor=r.PopupDoctor,exports.PopupExpert=r.PopupExpert,exports.PopupHospital=r.PopupHospital,exports.TogetherDataTransforms=r.dataTransform,exports.UserAvatar=r.UserAvatar,exports.DefaultComponentGlobalContextData=o.DefaultComponentGlobalContextData,Object.defineProperty(exports,"GlobalData",{enumerable:!0,get:function(){return o.GlobalData}}),exports.TogetherComponentGlobalContext=o.TogetherComponentGlobalContext,exports.TogetherComponentGlobalContextProvider=o.TogetherComponentGlobalContextProvider,exports.TogetherConstants=o.constants;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react"),t=require("./index.styled-953cfed3.js"),r=require("./tslib.es6-f7929e76.js"),o=require("./screenSizeContext-7258749a.js"),a=require("styled-components"),n=require("./cookieHelper-612b90fa.js"),i=require("./useTranslations-6a4b4ee8.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s,u,c=l(e),d=l(a),p={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},_=d.default.div(s||(s=r.__makeTemplateObject(["\n position: fixed;\n left: 50%;\n\n padding: 0 16px 32px;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 4px 8px ",";\n transform: translate(-50%, -50%);\n transition: all 0.5s ease-in-out;\n visibility: hidden;\n\n &[data-open='true'] {\n z-index: 200;\n top: 50%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n top: -50%;\n }\n\n &[data-type='lead'] {\n width: 332px;\n height: 460px;\n\n div {\n top: -15px;\n right: -15px;\n }\n }\n\n &[data-type='form'] {\n width: 496px;\n height: 548px;\n "," {\n width: 340px;\n }\n }\n\n &[data-type='confirm'] {\n "," {\n width: calc(100% - 32px);\n }\n "," {\n width: 100%;\n max-width: 407px;\n }\n }\n\n .popup-content {\n position: relative;\n z-index: 111;\n height: 100%;\n padding: 16px;\n }\n\n .close-button {\n position: absolute;\n top: 16px;\n right: 0;\n cursor: pointer;\n\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n"],["\n position: fixed;\n left: 50%;\n\n padding: 0 16px 32px;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 4px 8px ",";\n transform: translate(-50%, -50%);\n transition: all 0.5s ease-in-out;\n visibility: hidden;\n\n &[data-open='true'] {\n z-index: 200;\n top: 50%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n top: -50%;\n }\n\n &[data-type='lead'] {\n width: 332px;\n height: 460px;\n\n div {\n top: -15px;\n right: -15px;\n }\n }\n\n &[data-type='form'] {\n width: 496px;\n height: 548px;\n "," {\n width: 340px;\n }\n }\n\n &[data-type='confirm'] {\n "," {\n width: calc(100% - 32px);\n }\n "," {\n width: 100%;\n max-width: 407px;\n }\n }\n\n .popup-content {\n position: relative;\n z-index: 111;\n height: 100%;\n padding: 16px;\n }\n\n .close-button {\n position: absolute;\n top: 16px;\n right: 0;\n cursor: pointer;\n\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n"])),(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.gray200}),o.MediaQueries.mbDown,o.MediaQueries.mbDown,o.MediaQueries.mbUp),E=d.default.div(u||(u=r.__makeTemplateObject(["\n position: fixed;\n z-index: 110;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n background: rgba(38, 38, 38, 0.3);\n\n &[data-open='false'] {\n display: none;\n }\n"],["\n position: fixed;\n z-index: 110;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n background: rgba(38, 38, 38, 0.3);\n\n &[data-open='false'] {\n display: none;\n }\n"]))),m={BASE_API_PATH:"/",PROFILE:"profile?website_url={website_url}",SEARCH_USER:"profile/search?website_url={website_url}&name={name}",FETCH_PREVIEW:"fetch/preview?website_url={website_url}",FETCH_POST_OR_TOPIC:"fetch/{slug}?website_url={website_url}&community_slug={communitySlug}",POST:{LIST:"post?website_url={website_url}&slug={slug}&pin={pin}&page={page}&community_id={communityId}&topic_id={topicId}&sort_by={sort}&id={id}",DETAIL_BY_ID_OR_SLUG:"post/{idSlug}?website_url={website_url}",CREATE:"post/create?website_url={website_url}",LIKE:"post/{id}/like?website_url={website_url}",DELETE:"post/{id}/delete?website_url={website_url}",REPORT:"post/{id}/report?website_url={website_url}",UPDATE:"post/{id}/update?website_url={website_url}",FOLLOW:"post/{id}/follow?website_url={website_url}",CREATE_ARTICLE_COMMENT:"article-comment/create?website_url={website_url}"},COMMENT:{LIST:"comment?website_url={website_url}&post_id={postId}&page={page}&sort_by={sort}&items_per_page={perPage}&_without_reply={withoutReply}",CREATE:"comment/create?website_url={website_url}",REPLY:"comment/reply?website_url={website_url}",DELETE:"comment/{id}/delete?website_url={website_url}",LIKE:"comment/{id}/like?website_url={website_url}",UNLIKE:"comment/{id}/unlike?website_url={website_url}",IMAGE_UPLOAD:"comment/image/upload?website_url={website_url}"},COMMUNITY:{LIST:"community?website_url={website_url}&page={page}",DETAIL_BY_ID_OR_SLUG:"community/{idSlug}?website_url={website_url}",JOIN:"community/join?website_url={website_url}",LEAVE:"community/leave?website_url={website_url}"},TOPIC:{LIST:"topic?website_url={website_url}&community_slug={communitySlug}&community_id={communityId}&page={page}",DETAIL_BY_ID_OR_SLUG:"topic/{idSlug}?website_url={website_url}&community_slug={communitySlug}&community_id={communityId}",HEALTH_TOOLS:"tools?topic_id={topicId}&website_url={website_url}",SUBOTS:"subots?topic_id={topicId}&website_url={website_url}",SUGGESTED_POSTS:"suggested-posts?topic_id={topicId}&website_url={website_url}&page={page}",JOIN:"topic/join?website_url={website_url}",LEAVE:"topic/leave?website_url={website_url}"},BOOKMARK:{LIST:"bookmark?user_id={userId}&website_url={website_url}",CREATE:"bookmark/create?website_url={website_url}",DELETE:"bookmark/delete?website_url={website_url}"},UPLOAD_IMAGE:"auth/comment/image/upload?website_url={website_url}"},h=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var r={},o=(t||{}).decode||b,a=0;for(;a<e.length;){var n=e.indexOf("=",a);if(-1===n)break;var i=e.indexOf(";",a);if(-1===i)i=e.length;else if(i<n){a=e.lastIndexOf(";",n-1)+1;continue}var l=e.slice(a,n).trim();if(void 0===r[l]){var s=e.slice(n+1,i).trim();34===s.charCodeAt(0)&&(s=s.slice(1,-1)),r[l]=O(s,o)}a=i+1}return r},T=function(e,t,r){var o=r||{},a=o.encode||v;if("function"!=typeof a)throw new TypeError("option encode is invalid");if(!A.test(e))throw new TypeError("argument name is invalid");var n=a(t);if(n&&!A.test(n))throw new TypeError("argument val is invalid");var i=e+"="+n;if(null!=o.maxAge){var l=o.maxAge-0;if(isNaN(l)||!isFinite(l))throw new TypeError("option maxAge is invalid");i+="; Max-Age="+Math.floor(l)}if(o.domain){if(!A.test(o.domain))throw new TypeError("option domain is invalid");i+="; Domain="+o.domain}if(o.path){if(!A.test(o.path))throw new TypeError("option path is invalid");i+="; Path="+o.path}if(o.expires){var s=o.expires;if(!function(e){return"[object Date]"===g.call(e)||e instanceof Date}(s)||isNaN(s.valueOf()))throw new TypeError("option expires is invalid");i+="; Expires="+s.toUTCString()}o.httpOnly&&(i+="; HttpOnly");o.secure&&(i+="; Secure");if(o.priority){switch("string"==typeof o.priority?o.priority.toLowerCase():o.priority){case"low":i+="; Priority=Low";break;case"medium":i+="; Priority=Medium";break;case"high":i+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(o.sameSite){switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return i},g=Object.prototype.toString,A=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function b(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function v(e){return encodeURIComponent(e)}function O(e,t){try{return t(e)}catch(t){return e}}var f={parse:h,serialize:T},I=i.createCommonjsModule((function(e,t){var r;i.commonjsGlobal,r=function(){var e=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E\'","Ը":"Y\'","Թ":"T\'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C\'","Կ":"K","Հ":"H","Ձ":"D\'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R\'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P\'","Ք":"Q\'","Օ":"O\'\'","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"\'","’":"\'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}'),t=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function r(r,o){if("string"!=typeof r)throw new Error("slugify: string argument expected");var a=t[(o="string"==typeof o?{replacement:o}:o||{}).locale]||{},n=void 0===o.replacement?"-":o.replacement,i=void 0===o.trim||o.trim,l=r.normalize().split("").reduce((function(t,r){var i=a[r]||e[r]||r;return i===n&&(i=" "),t+i.replace(o.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")}),"");return o.strict&&(l=l.replace(/[^A-Za-z0-9\s]/g,"")),i&&(l=l.trim()),l=l.replace(/\s+/g,n),o.lower&&(l=l.toLowerCase()),l}return r.extend=function(t){Object.assign(e,t)},r},e.exports=r(),e.exports.default=r()})),L={DUE_DATE:"DUE_DATE",BMI:"BMI",BMR:"BMR",OVULATION:"OVULATION",IFRAME:"IFRAME",PWG:"PWG",THR:"THR"},w={"id-ID":{"kalkulator-bmi":L.BMI,"kebutuhan-kalori":L.BMR,"kalkulator-hari-perkiraan-lahir":L.DUE_DATE,"kalkulator-masa-subur-2":L.OVULATION,"kalkulator-kenaikan-berat-badan-ibu-hamil":L.PWG,"kalkulator-detak-jantung-saat-olahraga":L.THR},"ms-MY":{"kalkulator-bmi":L.BMI,"kalkulator-bmr":L.BMR,"kalkulator-tarikh-bersalin":L.DUE_DATE,"kalkulator-kesuburan":L.OVULATION,"kalkulator-tambah-berat-badan-hamil":L.PWG,"target-heart-rate-calculator":L.THR},"vi-VN":{"cach-tinh-chi-so-bmi":L.BMI,"tinh-chi-so-bmr":L.BMR,"cong-cu-tinh-ngay-du-sinh":L.DUE_DATE,"tinh-ngay-rung-trung":L.OVULATION,"cong-cu-tinh-can-nang-khi-mang-thai":L.PWG,"cong-cu-do-nhip-tim":L.THR},"zh-TW":{"bmi-calculator":L.BMI,"bmr-calculator":L.BMR,"due-date-calculator":L.DUE_DATE,"ovulation-calculator":L.OVULATION,"pregnancy-weight-gain-calculator":L.PWG,"target-heart-rate-calculator":L.THR},"en-PH":{"bmi-calculator":L.BMI,"bmr-calculator":L.BMR,"due-date-calculator":L.DUE_DATE,"ovulation-calculator":L.OVULATION,"pregnancy-weight-gain-calculator":L.PWG,"target-heart-rate-calculator":L.THR},"th-TH":{"เครื่องคำนวณหา-ค่าดัชนี":L.BMI,"เครื่องคำนวณอัตราการเผาผลาญพลังงาน-bmr":L.BMR,"เครื่องมือคำนวณกำหนดคลอด":L.DUE_DATE,"เครื่องคำนวณการตกไข่-ovulation-calculat":L.OVULATION,"เครื่องคำนวณน้ำหนักตัว":L.PWG,"เครื่องวัดอัตราการเต้น":L.THR},"hi-IN":{"bmi-calculator-en":L.BMI,"bmi-calculator":L.BMI,"bmr-calculator":L.BMR,"delivery-date-calculator":L.DUE_DATE,"ovulation-calculator":L.OVULATION,"pregnancy-weight-gain-calculator":L.PWG,"target-heart-rate-calculator":L.THR},"km-KH":{"គណនា-bmi":L.BMI,"គណនា-bmr":L.BMR,"គណនាថ្ងៃសម្រាលកូន":L.DUE_DATE,"គណនាថ្ងៃមេជីវិតញីទុំធ្លាក់":L.OVULATION,"គណនាទម្ងន់ស្ត្រីពពោះ":L.PWG,"គណនារកចង្វាក់បេះដូងល្អ":L.THR},"my-MM":{"bmi-calculator":L.BMI,"bmr-calculator":L.BMR,"due-date-calendar":L.DUE_DATE,"ovulation-calculator":L.OVULATION,"pregnaancy-weight-calculator":L.PWG,"target-heartrate":L.THR,"pregnancy-weight-calculator":L.PWG,"target-heart-rate":L.THR}},S={report_scam:{label:"morePopover.report.scam",reportReasonText:"morePopover.report.scam"},report_sex:{label:"morePopover.report.sex",reportReasonText:"morePopover.report.sex"},report_offensive:{label:"morePopover.report.offensive",reportReasonText:"morePopover.report.offensive"},report_violence:{label:"morePopover.report.violence",reportReasonText:"morePopover.report.violence"},report_prohibited:{label:"morePopover.report.prohibited",reportReasonText:"morePopover.report.prohibited"},report_spam:{label:"morePopover.report.spam",reportReasonText:"morePopover.report.spam"},report_falseNews:{label:"morePopover.report.falseNews",reportReasonText:"morePopover.report.falseNews"},report_other:{label:"morePopover.report.other",reportReasonText:"morePopover.report.other"}},y={"en-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"vi-VN":{ALL:"tat-ca",HOSPITAL:"benh-vien",SERVICE:"dich-vu",DOCTOR:"bac-si",SEARCH:"tim-kiem",SPECIALTIES:"chuyen-khoa",CURRENT:"vi-tri-hien-tai"},"id-ID":{ALL:"semua",HOSPITAL:"rumah-sakit",SERVICE:"layanan",DOCTOR:"dokter",SEARCH:"cari",SPECIALTIES:"spesialisasi",CURRENT:"posisi-saya-saat-ini"}},R=Object.freeze({__proto__:null,POST_DATE_FORMAT:"dd/MM/yyyy",NORMAL_DATE_FORMAT:"YYYY-MM-DD",DEFAULT_AVATAR_IMG:"/images/avatar.jpg",DEFAULT_RESULT_IMG:"/images/default.png",DEFAULT_IMG:"/images/default-image.jpg",BMI_LEVELS:["underweight","healthy","overweight","obese_level_1","obese_level_2"],BMR_LEVELS:["low","normal","high"],CORAL_TOKEN_COOKE:"coral_together_user_token",HEALTH_TOOL_TYPE:L,LOCALE_HEALTH_TOOLS:w,BEARER_TOKEN_COOKIE:"hhg_user_token",TOGETHER_DISCLAIMER_COOKIE:"hhg_together_disclaimer",BEARER_ADMIN_TOKEN_COOKIE:"together_admin_token",Z_INDEX:{adBlock:48,articleAdContainer:47,headerContainerHome:99,headerContainerPopup:200,headerContainerPopupSUbLevel:300,menuSearchInputPopup:5,menuSearchInputDisplayIcon:6,menuSearchPopup:200},BmrActiveLevels:[{value:"sedentary",icon:"bmr-sedentary",name:"bmr.activeLevel.sedentary",description:"bmr.activeLevel.sedentary.description"},{value:"lightly-active",icon:"bmr-light",name:"bmr.activeLevel.lightlyActive",description:"bmr.activeLevel.lightlyActive.description"},{value:"moderately-active",icon:"bmr-moderately",name:"bmr.activeLevel.moderatelyActive",description:"bmr.activeLevel.moderatelyActive.description"},{value:"intensely-active",icon:"bmr-intensively",name:"bmr.activeLevel.intenselyActive",description:"bmr.activeLevel.intenselyActive.description"},{value:"extremely-active",icon:"bmr-extremely",name:"bmr.activeLevel.extremelyActive",description:"bmr.activeLevel.extremelyActive.description"}],LEAD_CAMPAIGN_CODE:"lmoct7xfr5sv4fv",LEAD_TOKEN_COOKIE:"hhg-id",GA_TOKEN_COOKIE:"_ga",GOOGLE_CALENDAR_AUTH_CLIENT_ID:"1038242799566-esoq4ij201ve5qfp266nbca44scpo3c6.apps.googleusercontent.com",FIND_CARE_IFRAME_URL:"https://www.appsheet.com/start/4ba34ebe-3cb6-4c16-8dd4-d074025a5bb6#appName=DependentDropdowns-2711103&group=%5B%5D&page=card&sort=%5B%5D&table=Menu&view=Menu",REPORT_REASON_MAP:S,MB_SOCIAL_LINKS:{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/marry.baby.vn",INSTAGRAM:"https://www.instagram.com/marrybaby.vn/",TWITTER:"",YOUTUBE:"https://www.youtube.com/channel/UCeZybTkY1VzJ3N7LvPGdKbg",ZALO:"http://zalo.me/806483414530291942"},INTERNAL_ROLES:["admin","moderator","local-admin"],EXTERNAL_ROLES:["ambassador","expert","sponsor","guide","influencer"],INTERNAL_PROFILE_ROLES:["moderator","local-admin"],EXTERNAL_PROFILE_ROLES:["expert","ambassador","sponsor"],RoleDataMap:{moderator:{text:"Moderator",fid:"cardAuthor.moderator",background:"#fe921d"},admin:{text:"Admin",fid:"cardAuthor.admin",background:"#2b62cd"},"local-admin":{text:"Local admin",fid:"cardAuthor.localAdmin",background:"#2b62cd"},expert:{text:"Expert",fid:"cardAuthor.expert",background:"#ff6f4d"},sponsor:{text:"Sponsor",fid:"cardAuthor.sponsor",background:"#00c7e6"},ambassador:{text:"Ambassador",fid:"cardAuthor.ambassador",background:"#00CB8A"}},MAX_IMAGE_UPLOADS:20,LOCALISED_SLUGS:y}),x={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},D={"vi-VN":"marrybaby.vn"},P=process.env.NEXT_PUBLIC_DEPLOY_LOCALE||"vi-VN",G=function(e){var t=exports.GlobalData.env.isMarryBaby;return"https://".concat(t?D[e]:x[e])},C=function(e){var t=e.indexOf("?");return t>=0?e.slice(0,t+1)+e.slice(t+1).replace(/[^=&]+=(&|$)/g,"").replace(/&$/,""):e},k=function(e){var t=exports.GlobalData.env.isMarryBaby;if("undefined"!=typeof window)return window.location.origin;var r="staging"===process.env.NEXT_PUBLIC_DEPLOY_ENV;return"development"===process.env.NEXT_PUBLIC_DEPLOY_ENV?"http://localhost:3000":"https://".concat(r?t?"fe.":"discover.":t?"www.":"").concat(x[e])},N=function(e,t,o){var a="";o&&(a=Object.keys(o).map((function(e){return e+"="+o[e]})).join("&"));var n=((null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{}).togetherBaseApiUrl,l=void 0===n?"":n,s=i.stringFormat(e,r.__assign(r.__assign({},(null==t?void 0:t._locale)?{website_url:G(String(t._locale))}:{}),t));return s+="".concat(s.includes("?")?"&":"?").concat(a),l+"api/v1/"+C(s)},U=function(e){return(null==e?void 0:e.data)&&(e.data instanceof FormData?e.body=e.data:"object"==typeof e.data&&(e.body=JSON.stringify(e.data)),delete e.data),e},M=function(e,t,o,a){return void 0===a&&(a=!1),r.__awaiter(void 0,void 0,void 0,(function(){var n,i,l,s,u;return r.__generator(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,fetch(a?e:(d=e,encodeURI(d).replace(/%5B/g,"[").replace(/%5D/g,"]")),r.__assign({method:t},U(o))).then((function(e){return e.json()}))];case 1:return(n=c.sent())?[2,n]:[3,3];case 2:return i=c.sent(),console.log(i),console.log({url:e,status:null===(l=null==i?void 0:i.response)||void 0===l?void 0:l.status,statusText:null===(s=null==i?void 0:i.response)||void 0===s?void 0:s.statusText}),[2,(null===(u=null==i?void 0:i.response)||void 0===u?void 0:u.data)||null];case 3:return[2,null]}var d}))}))},H=function(e,t,o,a){return r.__awaiter(void 0,void 0,void 0,(function(){var i,l,s,u;return r.__generator(this,(function(c){switch(c.label){case 0:return c.trys.push([0,3,,4]),i=f.parse(a||""),l=i.hhg_user_token,(s=l||n.getCookie("hhg_user_token"))&&s.length?[4,fetch(e,r.__assign(r.__assign({method:t},U(o)),{headers:{Authorization:"Bearer "+s}})).then((function(e){return e.json()}))]:[3,2];case 1:if(u=c.sent())return[2,u];c.label=2;case 2:return[3,4];case 3:return c.sent(),[2,null];case 4:return[2,null]}}))}))};function B(e,t,r){var o=new RegExp("([?&])"+t+"=.*?(&|$)","i"),a=-1!==e.indexOf("?")?"&":"?";return e.match(o)?e.replace(o,"$1"+t+"="+r+"$2"):e+a+t+"="+r}var F=function(e,t,r,o){return r&&t?"".concat(r,"-").concat(t):"".concat(I(e||"",{lower:!0,locale:o||P}),"-").concat(t)},Y={locale:"vi-VN",env:{isMarryBaby:!1,togetherBasePath:"/community"},router:{basePath:"",asPath:"/"}},K=e.createContext({data:Y,action:{pushNotifications:function(e){return e},sanitizeFunction:function(e){return e}}});exports.GlobalData=Y;exports.ADMIN_PATHS={SEARCH_USER:"admin/profile/search?website_url={website_url}&name={name}",COMMENT:{IMAGE_UPLOAD:"admin/comment/image/upload?website_url={website_url}"}},exports.Avatar=function(r){var o=r.type,a=void 0===o?"square":o,n=r.size,i=r.avatarImg,l=r.avatarUrl,s=r.firstLetter,u=r.backgroundColor,d=r.onClick,_=r.style,E=r.className,m=r.isAmp,h=void 0!==m&&m,T=r.width,g=r.height,A=n?p[n]:void 0,b=e.useState(!1),v=b[0],O=b[1];e.useEffect((function(){if(l){var e=document.createElement("img");e.setAttribute("src",l),e.addEventListener("error",(function(){O(!0)}))}}),[l,O]);var f=(!l&&!i||v)&&s;return c.default.createElement(t.StyledAvatar,{style:_,"data-avatar-type":a,onClick:d,className:E,size:h?void 0:A,backgroundColor:u,avatarUrl:l,"data-is-amp":h,width:T,height:g},i,l&&!v&&c.default.createElement("img",{src:l}),f&&s)},exports.BEARER_TOKEN_COOKIE="hhg_user_token",exports.CARE_PATHS={GET_DOCTOR_INFO:"api/doctors/{doctorId}?site={website_url}",GET_HOSPITAL_INFO:"api/hospital/branch/{hospital_branch_id}?site={website_url}"},exports.DEFAULT_AVATAR_IMG="/images/avatar.jpg",exports.DEFAULT_IMG="/images/default-image.jpg",exports.DISCOVER_PATHS={BASE_API_PATH:"/",GET_SEARCH_ARTICLES:"search?s={keyword}&page={page}",GET_ALL_CATEGORIES:"categories?type=all",GET_HOMEPAGE_POSTS:"home/trending-post?type={type}",GET_HOMEPAGE_LATEST_POSTS:"articles?page=1&_islatest=1",GET_ARTICLE_DETAIL:"article/{slug}?skip_ids={skipIds}&_isrelated={isRelated}",GET_CATEGORY_DETAIL:"category/{slug}",GET_CATEGORY_OR_ARTICLE_DETAIL:"fetch/{fullSlug}",GET_PREVIEW_ARTICLE:"fetch/{fullSlug}?preview_nonce={nonce}&preview=true",GET_ARTICLE_OF_CATEGORY:"articles?category_id={categoryId}&page={currentPage}",GET_PAGE_STATIC:"page/{slug}",GET_ALL_HEALTH_TOOLS:"healthtools",GET_ALL_MARRYBABY_HEALTH_TOOLS:"health-tools",GET_HEALTH_TOOLS_BY_CATEGORY:"healthtools?_hasgroup=1",GET_AUTHOR:"author/{slug}",GET_ALL_EXPERTS:"experts",GET_ALL_EXPERTS_PAGING:"experts?page={page}",GET_EXPERT:"expert/{slug}",GET_EXPERT_POST:"expert/article?page={page}",POST_ARTICLE_FEEDBACK:"article/feedback/{id}",GET_AZ_DRUGS:"category/a-z/{category}",GET_HOMEPAGE_MEDICAL_REVIEWED:"home/medical-reviewed",GET_ARTICLES_BY_IDS:"articles?ids={ids}",GET_ARTICLE_OF_CATEGORY_NO_EXPLAINERS:"articles?category_id={categoryId}&page={currentPage}&skip_ids={ids}",GET_EXPERT_OF_CATEGORY:"category/expert/?id={id}",GET_DUE_DATE_INFO:"health-tools/due-date-calculator/info",GET_DUE_DATE_ALL_WEEKS:"health-tools/due-date-calculator/all",GET_DUE_DATE_SUGGESTED_ARTICLES:"health-tools/due-date-calculator/result?from_week={from}&to_week={to}",GET_PROFILE:"user/profile",GET_ADMIN_PROFILE:"GET_ADMIN_PROFILE",GET_FEATURE:"feature",POST_NEW_FEATURE:"feature/update",CREATE_BOOKMARK:"bookmark/create",DELETE_BOOKMARK:"bookmark/delete",DELETE_ALL_BOOKMARK:"bookmark/delete-all",GET_ALL_BOOKMARK:"bookmark",SSO_USER_PROFILE:"user",SSO_USER_BOOKMARKS:"user/bookmarks",SSO_USER_PASSWORD:"user/settings/password",SSO_USER_EMAIL:"user/settings/update-email",SSO_CLOSE_ACCOUNT:"user/settings/close-account",SSO_HELP:"user/settings/help",GET_HEALTH_TOOL_OVULATION_INFO:"health-tools/ovulation-calculator/info",GET_HEALTH_TOOL_OVULATION_SUGGESTED_ARTICLES:"health-tools/ovulation-calculator/result?method={method}",GET_HEALTH_TOOL_BMI_INFO:"health-tools/bmi-calculator/info",GET_HEALTH_TOOL_BMI_RESULT:"health-tools/bmi-calculator/result?gender={gender}&bmi={bmi}&age={age}",GET_HEALTH_TOOL_BMR_INFO:"health-tools/bmr-calculator/info",GET_HEALTH_TOOL_BMR_RESULT:"health-tools/bmr-calculator/result?kcals={kcals}&gender={gender}&age={age}",GET_HEALTH_TOOL_PWG_INFO:"health-tools/preweight-gain-calculator/info",GET_HEALTH_TOOL_THR_INFO:"health-tools/target-heart-rate/info",POST_UPDATE_LOCATION:"tracking/geo/",GET_SIDIS_DUE_DATE:"frontend/tools/due_date",GET_SIDIS_OVULATION:"frontend/tools/ovulation",GET_SIDIS_BMI:"frontend/tools/bmi",GET_SIDIS_BMR:"frontend/tools/bmr",POST_LOGOUT:"user/logout",OVULATION_CREATE_EVENT:"ovulation/event?method={method}&day={day}&cycle={cycle}&period={period}&token={token}&user_id={user_id}",GET_ALL_SPOTLIGHT:"spotlights?per_page={perPage}&order_by={orderBy}",SSO_UPDATE_FIRST_TIME_BOOKMARK:"bookmark/update-first-time",POST_COMMENT_NOTIFICATION:"comment/notification",GET_ABOUT_US_DATA:"about",POST_LEAD_IMPRESSION:"campaign/{campaignCode}/impression",POST_LEAD_POPUP_EXIT:"campaign/{campaignCode}/popup_exit",POST_LEAD_LEAD:"campaign/{campaignCode}/lead",POST_SSO_VERIFY_TOKEN:"verify-id-token",GET_LANDING_PAGE_FIRST_NODE:"landing_page/bot",GET_LANDING_PAGE_NEXT_NODE:"landing_page/messages",POST_LANDING_PAGE_IMPRESSION:"landing_page/impressions",POST_LANDING_PAGE_CLICK:"landing_page/clicks",FETCH_URL_DATA:"preview",GET_SPOTLIGHT_LANDING:"spotlight/{slug}",GET_FOOTER_INFO:"footer",CHECK_SSO_EMAIL:"member/check-email",GET_HOMEPAGE_SITEWIDE_BANNER:"home/sitewide-banner",GET_DYNAMIC_FOOTER:"menu/footer",GET_EXPERTS:"experts?page={page}&number={perPage}&s={search}",GET_EXPERT_BY_ID:"expert/{id}"},exports.DefaultComponentGlobalContextData=Y,exports.MAX_IMAGE_UPLOADS=20,exports.PATHS=m,exports.Popup=function(e){var t=e.type,r=void 0===t?"lead":t,o=e.closeIcon,a=e.isOpen,n=void 0===a||a,i=e.onClose,l=e.children,s=e.className,u=void 0===s?"":s,d=e.enableAnimation,p=void 0===d||d;return c.default.createElement(c.default.Fragment,null,c.default.createElement(_,{"data-open":n,"data-type":r,"data-animation":p},c.default.createElement("div",{className:"".concat(u||""," popup-content")},!!o&&c.default.createElement("div",{className:"close-button",onClick:i},o),l)),c.default.createElement(E,{"data-open":n,onClick:i}))},exports.REPORT_REASON_MAP=S,exports.TogetherComponentGlobalContext=K,exports.TogetherComponentGlobalContextProvider=function(t){var r=t.locale,o=void 0===r?"vi-VN":r,a=t.children,n=t.userInfo,i=t.router,l=t.env,s=void 0===l?{isMarryBaby:!1,togetherBasePath:"/community"}:l,u=t.sanitizeFunction,d=void 0===u?function(e){return e}:u,p=t.pushNotifications,_=void 0===p?function(){return!1}:p,E=e.useState(),h=E[0],T=E[1];return exports.GlobalData={userInfo:n,locale:o,togetherUserId:h,router:i,env:s},e.useEffect((function(){(null==n?void 0:n.id)&&H(N(m.PROFILE,{_locale:o}),"GET").then((function(e){var t;T(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.id)}))}),[null==n?void 0:n.id]),c.default.createElement(K.Provider,{value:{data:{userInfo:n,locale:o,togetherUserId:h,router:i,env:s},action:{pushNotifications:_,sanitizeFunction:d}}},a)},exports.callApi=M,exports.callApiWithAdminAuth=function(e,t,o,a){return r.__awaiter(void 0,void 0,void 0,(function(){var i,l,s,u;return r.__generator(this,(function(c){switch(c.label){case 0:return c.trys.push([0,3,,4]),i=f.parse(a||""),l=i.together_admin_token,(s=l||n.getCookie("together_admin_token"))&&s.length?[4,fetch(e,r.__assign(r.__assign({method:t},U(o)),{headers:{Authorization:"Bearer "+s}})).then((function(e){return e.json()}))]:[3,2];case 1:if(u=c.sent())return[2,u];c.label=2;case 2:return[3,4];case 3:return c.sent(),[2,null];case 4:return[2,null]}}))}))},exports.callApiWithAuth=H,exports.callApiWithOptionalAuth=function(e,t,o,a){return void 0===t&&(t="GET"),r.__awaiter(void 0,void 0,void 0,(function(){var i,l,s,u,c,d,p,_,E,m,h,T,g,A;return r.__generator(this,(function(b){switch(b.label){case 0:if(b.trys.push([0,7,,8]),i="string"==typeof e?e:e.url,l="string"==typeof e?e:e.backupUrl,s=f.parse(a||""),u=s.hhg_user_token,!(c=u||n.getCookie("hhg_user_token"))||!c.length)return[3,5];b.label=1;case 1:return b.trys.push([1,3,,4]),[4,fetch(i,r.__assign(r.__assign({method:t},U(o)),{headers:{Authorization:"Bearer "+c}})).then((function(e){return e.json()}))];case 2:return d=b.sent(),(null===(E=null==d?void 0:d.messages)||void 0===E?void 0:E.find((function(e){return"Unauthenticated"===(null==e?void 0:e.toLowerCase())})))?[2,M(l||i,t,o)]:d?[2,d]:[3,4];case 3:return p=b.sent(),console.log({status:null===(m=null==p?void 0:p.response)||void 0===m?void 0:m.status,statusText:null===(h=null==p?void 0:p.response)||void 0===h?void 0:h.statusText}),[2,M(l||i,t,o)];case 4:return[3,6];case 5:return[2,M(l||i,t,o)];case 6:return[3,8];case 7:return _=b.sent(),console.log({status:null===(T=null==_?void 0:_.response)||void 0===T?void 0:T.status,statusText:null===(g=null==_?void 0:_.response)||void 0===g?void 0:g.statusText}),[2,(null===(A=null==_?void 0:_.response)||void 0===A?void 0:A.data)||null];case 8:return[2,null]}}))}))},exports.constants=R,exports.domainLocales=x,exports.getApiPath=N,exports.getCareDoctorUrl=function(e){var t,r=e.name,o=e.id,a=e.locale;return"/care/".concat(null===(t=y[a||"vi-VN"])||void 0===t?void 0:t.DOCTOR,"/").concat(F(r,o))},exports.getCareHospitalUrl=function(e){var t,r=e.name,o=e.id,a=e.slug,n=e.locale;return"/care/".concat(null===(t=y[n||"vi-VN"])||void 0===t?void 0:t.HOSPITAL,"/").concat(F(r,o,a))},exports.getCarePath=function(e,t){var o=((null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{}).careBaseApiUrl;return((void 0===o?"":o)||"https://service-health-care.hellohealthgroup.com/")+C(i.stringFormat(e,r.__assign({},t)))},exports.getCurrentBaseUrl=k,exports.getCurrentHref=function(e,t,r){return"undefined"!=typeof window?window.location.href:"".concat(k(e)).concat(t).concat(r)},exports.getDiscoverApiPath=function(e,t){var o=((null===exports.GlobalData||void 0===exports.GlobalData?void 0:exports.GlobalData.env)||{}).discoverBaseApiUrl;return(void 0===o?"":o)+"wp-json/api/"+C(i.stringFormat(e,r.__assign({},t)))},exports.getUrlToSignUp=function(e,t,r){void 0===r&&(r="/community");var o=e||("undefined"!=typeof window?window.location.href:"/"),a="undefined"!=typeof window?window.location.origin:"";return a||e&&(e.startsWith("http://")||e.startsWith("https://"))&&(a=e.split("/").slice(0,3).join("/")),function(e,t){var r=exports.GlobalData.env.publicSSO,o=e||window.location.href;return t&&Object.keys(t).map((function(e){B(o,e,t[e])})),B(o,"source","communities"),r?"".concat(r,"?returnUrl=").concat(encodeURIComponent(o.toString())):o}("".concat(a).concat(r,"/on-boarding?return=").concat(encodeURIComponent(o)),t)};
|