@hhgtech/hhg-components 1.20.28 → 1.20.30
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/{ageGenerate-c5698bd6.js → ageGenerate-61d17ab5.js} +1 -1
- package/build/animation-c527178f.js +1 -0
- package/build/assets/svg/index.d.ts +1 -7
- package/build/babyGrowth.js +1 -1
- package/build/care.js +1 -1
- package/build/components/molecules/babyGrowthChooseProfileDrawer/index.d.ts +2 -1
- package/build/components/organisms/index.d.ts +0 -6
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/CustomFooter.d.ts +1 -1
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/ampSideBar/index.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/ampSideBar/index.styled.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/constants.d.ts +0 -0
- package/build/components/organisms/navigationLayout_deprecated/exportLegacy.d.ts +5 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/footer/index.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/footer/index.styled.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/index.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/index.styled.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/languageWrapper.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/languages/default.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/layout.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/marryBabyText/index.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/marryBabyText/index.styled.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/maryBabyFooter/index.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/maryBabyFooter/index.styled.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuCareList/categorySkeleton.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuCareList/index.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuCareList/index.styled.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuCategoriesList/categorySkeleton.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuCategoriesList/helloSites.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuCategoriesList/index.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuCategoriesList/index.styled.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuCategoriesList/marryBaby.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuCategoriesList/marryBaby.styled.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuCategoriesList/spotlightsList/index.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuCategoriesList/spotlightsList/index.styled.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuCategoriesList/spotlightsList/spotlightSkeleton.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuCommunitiesList/categorySkeleton.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuCommunitiesList/helloSites.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuCommunitiesList/index.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuCommunitiesList/index.styled.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuCommunitiesList/marryBaby.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuCommunitiesList/marryBaby.styled.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuHealthToolsList/categorySkeleton.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuHealthToolsList/helloSites.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuHealthToolsList/index.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuHealthToolsList/index.styled.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuHealthToolsList/marryBaby.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuHealthToolsList/marrybaby.styled.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuSectionCard/cardSkeleton.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuSectionCard/index.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuSectionCard/index.styled.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuServiceList/categoriesSubList.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuServiceList/communitySubList.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuServiceList/index.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuServiceList/index.styled.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/menuServiceList/marryBabyMobileMenuSection.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/navigationBar/ArrowLeftPopupIcon.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/navigationBar/ClosePopupIcon.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/navigationBar/HamburgerIcon.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/navigationBar/NavigationBar.types.d.ts +1 -1
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/navigationBar/NavigationBarMobile.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/navigationBar/SearchIcon.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/navigationBar/index.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/navigationBar/index.styled.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/navigationLogoutPopup/index.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/navigationLogoutPopup/index.styled.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/profilePopup/index.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/profilePopupWrapper/index.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/profilePopupWrapper/index.styled.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/siteWide/index.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/siteWide/index.styled.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/sponsoredBy/index.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/sponsoredBy/index.styled.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/tooltipSelection/index.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/tooltipSelection/index.styled.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/types.d.ts +0 -0
- package/build/components/organisms/{navigationLayout → navigationLayout_deprecated}/utils.d.ts +0 -0
- package/build/components/organisms/navigationV2/index.d.ts +0 -5
- package/build/components/organisms/userProfileNavigation/index.d.ts +1 -2
- package/build/components/organisms/userProfileNavigation/navHeader/index.d.ts +1 -1
- package/build/components/organisms/userProfileNavigation/navMenu/index.d.ts +1 -1
- package/build/components/organisms/userProfileNavigation/types.d.ts +1 -1
- package/build/components.js +1 -1
- package/build/constants-ca5ea110.js +1 -0
- package/build/core.js +1 -1
- package/build/{ecom → ecom_temp_excluded}/dataFormatter/index.d.ts +0 -0
- package/build/{ecom → ecom_temp_excluded}/dataFormatter/lib/apiTypes.d.ts +0 -0
- package/build/{ecom → ecom_temp_excluded}/dataFormatter/lib/dataTypes.d.ts +0 -0
- package/build/{ecom → ecom_temp_excluded}/dataFormatter/lib/utils.d.ts +0 -0
- package/build/{ecom → ecom_temp_excluded}/index.d.ts +0 -0
- package/build/{ecom → ecom_temp_excluded}/interfaces/constants.d.ts +0 -0
- package/build/{ecom → ecom_temp_excluded}/interfaces/types.d.ts +0 -0
- package/build/esm/{ageGenerate-4eacfb23.js → ageGenerate-18df8869.js} +1 -1
- package/build/esm/animation-0796d25e.js +1 -0
- package/build/esm/babyGrowth.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/constants-a0a981fa.js +1 -0
- package/build/esm/core.js +1 -1
- package/build/esm/index-136ab451.js +1 -0
- package/build/esm/index-13d8821f.js +1 -0
- package/build/esm/{index-0a840e55.js → index-70f38364.js} +1 -1
- package/build/esm/index-78e6e950.js +1 -0
- package/build/esm/index-7b032ad1.js +1 -0
- package/build/esm/index-897f7837.js +1 -0
- package/build/esm/{index-948a8378.js → index-ab4eb1b2.js} +1 -1
- package/build/esm/{index-4adb858f.js → index-beb9db0b.js} +1 -1
- package/build/esm/index-e68bd90f.js +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/index.styled-4ae7aba3.js +1 -0
- package/build/esm/index.styled-81673574.js +1 -0
- package/build/esm/navigation.js +1 -1
- package/build/esm/navigationLayout_deprecated.js +1 -0
- package/build/esm/routing-dd4412db.js +1 -0
- package/build/esm/together.js +1 -1
- package/build/esm/types-3579b4b2.js +1 -0
- package/build/esm/types-daa67348.js +1 -0
- package/build/esm/useTranslations-e4f230ed.js +1 -0
- package/build/{index-16d0d33e.js → index-08022744.js} +1 -1
- package/build/index-11032730.js +1 -0
- package/build/{index-9abd3134.js → index-235d73eb.js} +1 -1
- package/build/{index-5653c7b7.js → index-6e060556.js} +1 -1
- package/build/index-9bd68941.js +1 -0
- package/build/index-b356da51.js +1 -0
- package/build/index-c8bfca9c.js +1 -0
- package/build/index-ebaaaca7.js +1 -0
- package/build/{index-6fa4150f.js → index-f2ae348c.js} +1 -1
- package/build/index.d.ts +0 -1
- package/build/index.js +1 -1
- package/build/index.styled-7332c0fb.js +1 -0
- package/build/index.styled-d6997469.js +1 -0
- package/build/interfaces/constants.d.ts +12 -0
- package/build/navigation.js +1 -1
- package/build/navigationLayout_deprecated.js +1 -0
- package/build/routing-8dc4c79e.js +1 -0
- package/build/together/api/utils.d.ts +1 -1
- package/build/together.js +1 -1
- package/build/types-43508f23.js +1 -0
- package/build/types-dc624512.js +1 -0
- package/build/useTranslations-9f0f26bc.js +1 -0
- package/package.json +4 -1
- package/build/constants-ea7b35a2.js +0 -1
- package/build/ecom.js +0 -1
- package/build/esm/constants-dc22740c.js +0 -1
- package/build/esm/ecom.js +0 -1
- package/build/esm/index-0cd776a8.js +0 -1
- package/build/esm/index-8725745d.js +0 -1
- package/build/esm/index-980d3476.js +0 -1
- package/build/esm/index-fbb0379d.js +0 -1
- package/build/esm/index.styled-8f274d81.js +0 -1
- package/build/esm/index.styled-a947d2d3.js +0 -1
- package/build/esm/routing-f63546d5.js +0 -1
- package/build/esm/theme-82709ce4.js +0 -1
- package/build/esm/types-db1cb7ab.js +0 -1
- package/build/esm/types-ec2bbf0d.js +0 -1
- package/build/esm/types-ff110535.js +0 -1
- package/build/esm/useTranslations-e61cf3ed.js +0 -1
- package/build/index-34ab7aed.js +0 -1
- package/build/index-926bf918.js +0 -1
- package/build/index-bd2836ab.js +0 -1
- package/build/index.styled-0cb1099c.js +0 -1
- package/build/index.styled-1f307476.js +0 -1
- package/build/routing-9fbc897b.js +0 -1
- package/build/theme-fe7c279c.js +0 -1
- package/build/types-9c733237.js +0 -1
- package/build/types-a38399be.js +0 -1
- package/build/types-dc5c360a.js +0 -1
- package/build/useTranslations-9e64b19e.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var n=require("react"),e=require("./animation-c527178f.js"),t=require("react-dom"),i=require("./index.styled-7332c0fb.js"),o=require("./tslib.es6-f7929e76.js"),a=require("styled-components");function r(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var d,l,s,p=r(n),h=r(a),c=function(n){var e=n.open,t=void 0!==e&&e,o=n.onClickOutside;return p.default.createElement(i.StyledBackdrop,{open:t,onClick:o})},u=h.default.div(d||(d=o.__makeTemplateObject(["\n position: relative;\n z-index: 200;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 4px 8px ",";\n\n .hhg-modal__content {\n position: relative;\n z-index: 111;\n height: 100%;\n padding: 16px;\n }\n .hhg-modal__video {\n position: relative;\n z-index: 111;\n height: 100%;\n background-color: none;\n box-shadow: none;\n }\n"],["\n position: relative;\n z-index: 200;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 4px 8px ",";\n\n .hhg-modal__content {\n position: relative;\n z-index: 111;\n height: 100%;\n padding: 16px;\n }\n .hhg-modal__video {\n position: relative;\n z-index: 111;\n height: 100%;\n background-color: none;\n box-shadow: none;\n }\n"])),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray200})),f=h.default.div(l||(l=o.__makeTemplateObject(["\n position: fixed;\n top: 0;\n left: 0;\n z-index: 201;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n outline: 0;\n visibility: hidden;\n background-color: rgba(38, 38, 38, 0.3);\n\n .hhg-modal__close {\n position: absolute;\n top: 16px;\n right: 16px;\n cursor: pointer;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n &[data-type='video'] {\n z-index: 1001;\n }\n &[data-open='true'] {\n visibility: visible;\n }\n\n &.slideTop {\n "," {\n transform: translate(0, -100vh);\n transition: all 0.5s ease;\n }\n\n &[data-open='true'] {\n "," {\n transform: translate(0);\n }\n }\n }\n\n &.scaleUp {\n "," {\n transform: scale(0.9);\n }\n\n &[data-open='true'] {\n "," {\n transition: all 0.3s ease-out;\n transform: scale(1);\n }\n }\n }\n\n &[data-type='tail'] {\n justify-content: flex-end;\n "," {\n width: 420px;\n height: 100%;\n border-radius: 0;\n overflow: hidden auto;\n }\n }\n &[data-type='form'] {\n "," {\n width: 496px;\n height: 548px;\n max-height: 100%;\n overflow-y: auto;\n "," {\n width: 340px;\n }\n }\n }\n &[data-type='video'] {\n "," {\n height: 100%;\n max-height: 539px;\n "," {\n height: 192px;\n width: 100%;\n height: 100%;\n border-radius: 6px;\n max-height: 192px;\n }\n }\n }\n &[data-type='confirm'] {\n "," {\n width: 100%;\n max-width: 407px;\n "," {\n width: calc(100% - 32px);\n max-width: calc(100% - 32px);\n }\n }\n }\n"],["\n position: fixed;\n top: 0;\n left: 0;\n z-index: 201;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n outline: 0;\n visibility: hidden;\n background-color: rgba(38, 38, 38, 0.3);\n\n .hhg-modal__close {\n position: absolute;\n top: 16px;\n right: 16px;\n cursor: pointer;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n &[data-type='video'] {\n z-index: 1001;\n }\n &[data-open='true'] {\n visibility: visible;\n }\n\n &.slideTop {\n "," {\n transform: translate(0, -100vh);\n transition: all 0.5s ease;\n }\n\n &[data-open='true'] {\n "," {\n transform: translate(0);\n }\n }\n }\n\n &.scaleUp {\n "," {\n transform: scale(0.9);\n }\n\n &[data-open='true'] {\n "," {\n transition: all 0.3s ease-out;\n transform: scale(1);\n }\n }\n }\n\n &[data-type='tail'] {\n justify-content: flex-end;\n "," {\n width: 420px;\n height: 100%;\n border-radius: 0;\n overflow: hidden auto;\n }\n }\n &[data-type='form'] {\n "," {\n width: 496px;\n height: 548px;\n max-height: 100%;\n overflow-y: auto;\n "," {\n width: 340px;\n }\n }\n }\n &[data-type='video'] {\n "," {\n height: 100%;\n max-height: 539px;\n "," {\n height: 192px;\n width: 100%;\n height: 100%;\n border-radius: 6px;\n max-height: 192px;\n }\n }\n }\n &[data-type='confirm'] {\n "," {\n width: 100%;\n max-width: 407px;\n "," {\n width: calc(100% - 32px);\n max-width: calc(100% - 32px);\n }\n }\n }\n"])),u,u,u,u,u,u,e.MediaQueries.mbDown,u,e.MediaQueries.mbDown,u,e.MediaQueries.mbDown),x=h.default.div(s||(s=o.__makeTemplateObject(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n align-items: center;\n\n &[data-open='false'] {\n display: none;\n }\n &[data-type='video'] {\n background-color: ",";\n }\n"],["\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n align-items: center;\n\n &[data-open='false'] {\n display: none;\n }\n &[data-type='video'] {\n background-color: ",";\n }\n"])),(function(n){return n.theme.colors.secondaryDark}));exports.Drawer=function(o){var a=o.children,r=o.title,d=o.onClose,l=o.open,s=void 0!==l&&l,h=o.placement,u=void 0===h?"left":h,f=o.destroyOnClose,x=void 0!==f&&f,m=o.className,g=n.useRef();n.useEffect((function(){return e.toggleNoScroll(s),function(){return e.toggleNoScroll(!1)}}),[s]);var v=function(){g.current.classList.add("slideOut"),setTimeout((function(){d()}),800)};return!s&&x?null:t.createPortal(p.default.createElement(p.default.Fragment,null,p.default.createElement(i.StyledDrawer,{className:m,open:s},p.default.createElement(c,{open:s,onClickOutside:v}),p.default.createElement(i.StyledDrawerPanel,{open:s,placement:u,ref:g,hasTitle:Boolean(r)},p.default.createElement("div",{className:"title"},r&&p.default.createElement(i.Text,{size:"s2",type:"semiBold"},r),p.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:v},p.default.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"}))),p.default.createElement(i.StyledDrawerContent,{onClick:function(n){return n.stopPropagation()}},a&&(p.default.isValidElement(a)?a:"function"==typeof a?a({internalClose:v}):null))))),e.getPopupWrapperDom())},exports.StyledModal=u,exports.StyledModalMask=x,exports.StyledModalWrapper=f;
|
|
@@ -30,3 +30,15 @@ export declare const TOGETHER_LOCALES: string[];
|
|
|
30
30
|
export declare const CARE_LOCALES: string[];
|
|
31
31
|
export declare const CARE_BOOKING_LOCALES: string[];
|
|
32
32
|
export declare const isProduction: boolean;
|
|
33
|
+
export declare const FAVICONS: {
|
|
34
|
+
[key: string]: ({
|
|
35
|
+
type: 'link';
|
|
36
|
+
rel: string;
|
|
37
|
+
href: string;
|
|
38
|
+
sizes?: string;
|
|
39
|
+
} | {
|
|
40
|
+
type: 'meta';
|
|
41
|
+
name: string;
|
|
42
|
+
content: string;
|
|
43
|
+
})[];
|
|
44
|
+
};
|
package/build/navigation.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("./tslib.es6-f7929e76.js"),require("react"),require("./core-8fcc56eb.js"),require("./index.styled-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("./tslib.es6-f7929e76.js"),require("react"),require("./core-8fcc56eb.js"),require("./index.styled-7332c0fb.js");var e=require("./index-11032730.js");require("react-id-generator"),require("./index-b356da51.js"),require("date-fns"),require("react-day-picker/DayPickerInput"),require("lodash/debounce"),require("react-dom"),require("./index.styled-d6997469.js"),require("lodash"),require("keen-slider/react"),require("./animation-c527178f.js"),require("react-range"),require("./index-ebaaaca7.js"),require("./useTranslations-9f0f26bc.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./lazyLoad-0454885d.js"),require("./translationsContext-e97f3b58.js"),require("string-format"),require("./routing-8dc4c79e.js"),require("styled-components"),require("smoothscroll-polyfill"),require("./index-235d73eb.js"),require("./index-f2ae348c.js"),require("./constants-ca5ea110.js"),require("./index-c8bfca9c.js"),require("./cookieHelper-612b90fa.js"),require("date-fns/locale/hi"),require("date-fns/locale/ms"),require("date-fns/locale/th"),require("slugify"),require("vanilla-lazyload"),exports.NavigationV2=e.NavigationV2,exports.getNavMenuContent=e.getNavMenuContent,exports.getNavMenuContentWithCache=e.getNavMenuContentWithCache;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./tslib.es6-f7929e76.js"),n=require("react"),t=require("./index-ebaaaca7.js"),a=require("lodash"),o=require("./cookieHelper-612b90fa.js"),i=require("styled-components"),l=require("./index-c8bfca9c.js"),r=require("./index-235d73eb.js"),s=require("./index.styled-7332c0fb.js"),c=require("./animation-c527178f.js"),d=require("string-format");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("react-range"),require("react-dom");var m,u,h,g=p(n),f=p(i),y=p(d),E={"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","tl-PH":"hellodoctor.com.ph"},v={"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png",PREGNANCY_WEIGHT_GAIN:"cong-cu-tinh-can-nang-khi-mang-thai",BABY_POOP:"phan-tre-so-sinh-nhu-the-nao-la-tot",VACCINATION_TOOL:"lich-tiem-chung"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png",PREGNANCY_WEIGHT_GAIN:"เครื่องคำนวณน้ำหนักตัว",BABY_POOP:"สีอุจจาระของลูก-บอกถึงส",VACCINATION_TOOL:"vaccination-tool"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png",PREGNANCY_WEIGHT_GAIN:"រង្វាស់សុខភាព/គណនាទម្ងន់ស្ត្រីពពោះ",BABY_POOP:"រង្វាស់សុខភាព/អត្ថន័យពណ៌-និងរូបរាងលាម",VACCINATION_TOOL:"រង្វាស់សុខភាព/កាលវិភាគចាក់ថ្នាំបង្កា"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-kenaikan-berat-badan-ibu-hamil",BABY_POOP:"warna-feses-bayi-normal",VACCINATION_TOOL:"jadwal-imunisasi"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png",PREGNANCY_WEIGHT_GAIN:"garbhavastha-weight-calculator",BABY_POOP:"visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-tambah-berat-badan-hamil",BABY_POOP:"kenali-najis-bayi-anda",VACCINATION_TOOL:"alat-kesihatan-vaksin"},"tl-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/fil/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool",ABOUT_US_IMAGE:"/fil/images/aboutus/PH.png"}},x={"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/tieu-chuan-cong-dong",TOGETHER:"/community"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/គោលការណ៍ណែនាំសហគមន៍",TOGETHER:"/community"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en",COMMUNITY_GUIDELINE:"/panduan-komunitas",TOGETHER:"/community"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"tl-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"}},b={"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],marryBaby:[{type:"link",rel:"shortcut icon",href:"/favicons/favicon.ico"},{type:"link",rel:"icon",href:"/favicons/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/favicons/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/favicons/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/favicons/icon-180x180.png"}]},T=99,I=300,w=400,C=5,k=6,_=300,O="data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M10 17.5C14.1421 17.5 17.5 14.1421 17.5 10C17.5 5.85786 14.1421 2.5 10 2.5C5.85786 2.5 2.5 5.85786 2.5 10C2.5 14.1421 5.85786 17.5 10 17.5Z' stroke='%232D87F3' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M10 13.7499V9.58325' stroke='%232D87F3' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M10 6.25H10.0125' stroke='%232D87F3' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",S=f.default.div(m||(m=e.__makeTemplateObject(["\n position: relative;\n display: flex;\n overflow: hidden;\n align-items: center;\n justify-content: center;\n background-position: center;\n background-size: cover;\n transition: height 0.3s;\n background-color: ",";\n\n &[data-is-marrybaby='true'] {\n background-color: ",";\n }\n\n &[data-is-mobile='true'] {\n &[data-is-marrybaby='false'] {\n justify-content: flex-start;\n }\n }\n &[data-is-mobile='false'] {\n justify-content: center;\n }\n\n &[data-is-collapse='false'] {\n height: 64px;\n &[data-is-marrybaby='true'] {\n &[data-is-mobile='true'] {\n height: 120px;\n }\n }\n }\n &[data-is-collapse='true'] {\n height: 0;\n }\n\n .amp-close-banner * {\n pointer-events: none;\n }\n\n .content {\n display: -webkit-box;\n overflow: hidden;\n padding-right: 48px;\n -webkit-box-orient: vertical;\n color: white;\n font-size: 16px;\n font-weight: 600;\n -webkit-line-clamp: 2;\n line-height: 24px;\n text-overflow: ellipsis;\n a {\n color: white;\n }\n &[data-is-mobile='true'] {\n font-size: 14px;\n }\n }\n"],["\n position: relative;\n display: flex;\n overflow: hidden;\n align-items: center;\n justify-content: center;\n background-position: center;\n background-size: cover;\n transition: height 0.3s;\n background-color: ",";\n\n &[data-is-marrybaby='true'] {\n background-color: ",";\n }\n\n &[data-is-mobile='true'] {\n &[data-is-marrybaby='false'] {\n justify-content: flex-start;\n }\n }\n &[data-is-mobile='false'] {\n justify-content: center;\n }\n\n &[data-is-collapse='false'] {\n height: 64px;\n &[data-is-marrybaby='true'] {\n &[data-is-mobile='true'] {\n height: 120px;\n }\n }\n }\n &[data-is-collapse='true'] {\n height: 0;\n }\n\n .amp-close-banner * {\n pointer-events: none;\n }\n\n .content {\n display: -webkit-box;\n overflow: hidden;\n padding-right: 48px;\n -webkit-box-orient: vertical;\n color: white;\n font-size: 16px;\n font-weight: 600;\n -webkit-line-clamp: 2;\n line-height: 24px;\n text-overflow: ellipsis;\n a {\n color: white;\n }\n &[data-is-mobile='true'] {\n font-size: 14px;\n }\n }\n"])),(function(e){return e.theme.colors.secondaryBase}),(function(e){return e.theme.mbColors.cobalt})),A=f.default.div(u||(u=e.__makeTemplateObject(["\n max-width: 100px;\n margin-right: 16px;\n height: 100%;\n img {\n width: 64px;\n height: 64px;\n object-fit: contain;\n }\n &[data-is-marrybaby='true'] {\n height: unset;\n max-height: 100%;\n }\n &[data-is-mobile='true'] {\n img {\n width: 52px;\n height: 52px;\n }\n }\n"],["\n max-width: 100px;\n margin-right: 16px;\n height: 100%;\n img {\n width: 64px;\n height: 64px;\n object-fit: contain;\n }\n &[data-is-marrybaby='true'] {\n height: unset;\n max-height: 100%;\n }\n &[data-is-mobile='true'] {\n img {\n width: 52px;\n height: 52px;\n }\n }\n"]))),L=f.default.div(h||(h=e.__makeTemplateObject(["\n position: absolute;\n right: 20px;\n width: 24px;\n height: 24px;\n cursor: pointer;\n &[data-is-marrybaby='true'] {\n background-color: ",";\n border-radius: 50%;\n top: 12px;\n right: 32px;\n padding: 10px;\n height: 40px;\n width: 40px;\n .close-icon {\n width: 20px;\n height: 20px;\n }\n &[data-is-mobile='true'] {\n position: absolute;\n top: 8px;\n right: 8px;\n padding: 8px;\n height: 32px;\n width: 32px;\n .close-icon {\n width: 100%;\n height: 100%;\n }\n }\n }\n"],["\n position: absolute;\n right: 20px;\n width: 24px;\n height: 24px;\n cursor: pointer;\n &[data-is-marrybaby='true'] {\n background-color: ",";\n border-radius: 50%;\n top: 12px;\n right: 32px;\n padding: 10px;\n height: 40px;\n width: 40px;\n .close-icon {\n width: 20px;\n height: 20px;\n }\n &[data-is-mobile='true'] {\n position: absolute;\n top: 8px;\n right: 8px;\n padding: 8px;\n height: 32px;\n width: 32px;\n .close-icon {\n width: 100%;\n height: 100%;\n }\n }\n }\n"])),(function(e){return e.theme.colors.white})),N={"navigation.loginJoin":"Login/Join","menu.categories.title":"Choose a service to explore","home.search":"Search {site}","home.navigator.menuItem.spotlights":"All In Focus","home.navigator.menuItem.helloTogether":"Communities","home.navigator.menuItem.helloCare":"Book a doctor","home.navigator.menuItem.healthTools":"Health Tools","home.navigator.menuItem.healthCategories":"Health Categories","home.navigator.menuItem.discover":"Discover","home.navigator.menuItem.allSpotlight":"See All In Focus","home.navigator.menuItem.allSpecialties":"See All Specialties","home.navigator.menuItem.allHealthTools":"See All Health Tools","home.navigator.menuItem.allCommunities":"See All Communities","home.navigator.menuItem.allCategories":"See All Categories","footer.sitemap":"Sitemap","footer.signUp":"Sign up to get fitness and nutrition tips, health news, and more.","footer.info.email":"Email: advertiser@hellohealthgroup.com","footer.info.license":"Giấy phép kinh doanh số: 0315857817 do Sở kế hoạch và Đầu tư TP. Hồ Chí Minh cấp ngày 21-8-2019","footer.info.contentResponsibility":"Chịu trách nhiệm quản lý nội dung: Hoàng Diệu Thu","footer.info.companyName":"Công ty TNHH Xin Chào Bác Sĩ","footer.info.certificate":"Giấy xác nhận cung cấp dịch vụ mạng xã hội trực tuyến số 592/GP-BTTTT HN ngày 03/12/2019","footer.info.address":"Địa chỉ: Tầng 5, Tòa nhà Sonatus, 15 Lê Thánh Tôn, P.Bến Nghé, Quận 1, Thành phố Hồ Chí Minh","footer.followUsText":"Follow us","home.menu.category.view":"Xem {category}","menu.care.searchBySpecialties":"Tìm theo chuyên khoa","logout.popup.ask1":"Log Out of Hello Doctor?","logout.popup.ask2":"Are you sure you want to log out?","logout.popup.ask.mb":"Đăng xuất khỏi Marry Baby?","logout.popup.button.cancel":"Cancel","logout.popup.button.logout":"Log Out","profileMenu.accountSetting":"Account Setting","profileMenu.help":"Help","profileMenu.logout":"Logout","profileMenu.myProfile":"Profile","profileMenu.password":"Password","profileMenu.saved":"My Articles","home.navigator.menuItem.language":"Language","articlePage.sponsoredBy":"Sponsored By","articlePage.sponsoredContentBy":"Content sponsored by","articlePage.sponsoredContent":"Sponsored Content","articlePage.sponsoredArticle":"Sponsored Article","articlePage.sponsoredByStickyPopup.close":"Close","articlePage.sponsoredByStickyPopup.content":"This is a sponsored article, for more information on our Advertising and Sponsorship policy please read our policies.","articlePage.sponsoredByStickyPopup.policies":"Policies","login.booking":"Booking with doctor","cookiePolicies.modal.title":"Please accept our privacy policy","cookiePolicies.modal.description":"Hello Bacsi uses cookies to improve your experience and to show you personalized ads","cookiePolicies.modal.accept":"Accept","cookiePolicies.modal.ourPolicies":"Our Policies"},M=n.createContext({}),P=function(){var e=n.useContext(M);return function(n,t){var a=(e.translation||{})[n]||N[n];return a?t?y.default(a,t):a:function(){throw Error("missing translation "+n)}()}},R=f.default.header(K||(K=e.__makeTemplateObject(["\n position: absolute;\n top: 0px;\n left: 0px;\n width: 100%;\n align-items: center;\n justify-content: center;\n /* overflow-x: hidden; */\n\n border-bottom: 1px solid\n ",";\n background-color: ",";\n\n &[data-site-type='marryBaby'] {\n border-bottom: none;\n }\n\n &[data-fixed-bar='true'] {\n position: fixed;\n top: 0;\n }\n\n &[data-fixed-bar='false'] {\n position: absolute;\n }\n\n &[data-collapsed='true'] {\n top: -100%;\n transition: top 0.5s;\n }\n\n &[data-collapsed='false'] {\n top: 0px;\n transition: top 0.5s;\n }\n\n .top-bar-header {\n line-height: normal;\n }\n\n &[data-header-type='home'] {\n position: fixed;\n z-index: ",";\n }\n\n &[data-header-type='popup'] {\n position: absolute;\n z-index: ",";\n }\n\n &[data-header-type='popup-sub-level'] {\n position: absolute;\n z-index: ",";\n }\n\n &[data-is-displayed='false'] {\n //display: none;\n visibility: hidden;\n }\n\n &[data-is-amp='true'] {\n position: relative;\n }\n\n .menu-handler:focus #categories-menu {\n left: 0;\n transition: left 0.1s;\n }\n"],["\n position: absolute;\n top: 0px;\n left: 0px;\n width: 100%;\n align-items: center;\n justify-content: center;\n /* overflow-x: hidden; */\n\n border-bottom: 1px solid\n ",";\n background-color: ",";\n\n &[data-site-type='marryBaby'] {\n border-bottom: none;\n }\n\n &[data-fixed-bar='true'] {\n position: fixed;\n top: 0;\n }\n\n &[data-fixed-bar='false'] {\n position: absolute;\n }\n\n &[data-collapsed='true'] {\n top: -100%;\n transition: top 0.5s;\n }\n\n &[data-collapsed='false'] {\n top: 0px;\n transition: top 0.5s;\n }\n\n .top-bar-header {\n line-height: normal;\n }\n\n &[data-header-type='home'] {\n position: fixed;\n z-index: ",";\n }\n\n &[data-header-type='popup'] {\n position: absolute;\n z-index: ",";\n }\n\n &[data-header-type='popup-sub-level'] {\n position: absolute;\n z-index: ",";\n }\n\n &[data-is-displayed='false'] {\n //display: none;\n visibility: hidden;\n }\n\n &[data-is-amp='true'] {\n position: relative;\n }\n\n .menu-handler:focus #categories-menu {\n left: 0;\n transition: left 0.1s;\n }\n"])),(function(e){return e.theme.colors.neutral100}),(function(e){return e.theme.colors.white}),T,I,w),B=f.default.header(X||(X=e.__makeTemplateObject(["\n position: absolute;\n bottom: 20px;\n left: 16px;\n display: flex;\n align-items: center;\n"],["\n position: absolute;\n bottom: 20px;\n left: 16px;\n display: flex;\n align-items: center;\n"]))),H=f.default.div(Q||(Q=e.__makeTemplateObject(["\n margin-right: 8px;\n &[data-event-category] > * {\n pointer-events: none;\n }\n"],["\n margin-right: 8px;\n &[data-event-category] > * {\n pointer-events: none;\n }\n"]))),G=f.default.div(J||(J=e.__makeTemplateObject(["\n position: relative;\n display: flex;\n width: 100%;\n height: 64px;\n justify-content: center;\n\n padding: 8px 0;\n margin-top: 64px;\n &[data-sponsored='true'] {\n margin-top: 105px;\n }\n &[data-sitewide-banner-shown='true'] {\n margin-top: 128px;\n }\n\n background-color: ",";\n\n #search-input-home,\n #search-input-home-temp,\n #search-input-popup {\n position: relative;\n z-index: ",";\n width: 100%;\n box-shadow: 0px 0px 5px rgba(38, 38, 38, 0.08);\n }\n\n .displayIcon {\n z-index: ",";\n display: flex;\n width: 24px;\n height: 24px;\n align-items: center;\n }\n\n &[data-is-displayed='false'] {\n display: none;\n opacity: 0;\n }\n\n &[data-is-displayed='true'] {\n opacity: 1;\n transition: opacity 0.2s;\n }\n\n &[data-header-type='popup'] {\n position: fixed;\n z-index: ",";\n left: 0;\n width: 100vw;\n }\n"],["\n position: relative;\n display: flex;\n width: 100%;\n height: 64px;\n justify-content: center;\n\n padding: 8px 0;\n margin-top: 64px;\n &[data-sponsored='true'] {\n margin-top: 105px;\n }\n &[data-sitewide-banner-shown='true'] {\n margin-top: 128px;\n }\n\n background-color: ",";\n\n #search-input-home,\n #search-input-home-temp,\n #search-input-popup {\n position: relative;\n z-index: ",";\n width: 100%;\n box-shadow: 0px 0px 5px rgba(38, 38, 38, 0.08);\n }\n\n .displayIcon {\n z-index: ",";\n display: flex;\n width: 24px;\n height: 24px;\n align-items: center;\n }\n\n &[data-is-displayed='false'] {\n display: none;\n opacity: 0;\n }\n\n &[data-is-displayed='true'] {\n opacity: 1;\n transition: opacity 0.2s;\n }\n\n &[data-header-type='popup'] {\n position: fixed;\n z-index: ",";\n left: 0;\n width: 100vw;\n }\n"])),(function(e){return e.theme.colors.white}),C,k,_),D=f.default.div($||($=e.__makeTemplateObject(["\n position: fixed;\n z-index: 201;\n top: 0;\n left: 0;\n\n width: 100%;\n align-items: center;\n\n background-color: ",";\n\n transition: height 0.3s;\n\n .menu-handler-item {\n gap: 8px;\n a {\n text-decoration: none;\n }\n }\n\n &[data-site-type='helloSites'] {\n border-bottom: 1px solid\n ",";\n }\n\n &[data-marry-baby-tone='pink'] {\n background-color: ",";\n }\n\n //categories\n .menu-handler-categories:focus > .menu-handler-item {\n pointer-events: none;\n }\n .menu-handler-categories:focus-within .top-menu-categories {\n display: block;\n }\n .menu-handler-categories:focus .top-menu-health-tools {\n display: none;\n }\n\n //health tools\n .menu-handler-health-tools:focus > .menu-handler-item {\n pointer-events: none;\n }\n .menu-handler-health-tools:focus-within .top-menu-health-tools {\n display: block;\n }\n .menu-handler-health-tools:focus .top-menu-categories {\n display: none;\n }\n\n //communities\n .menu-handler-communities:focus > .menu-handler-item {\n pointer-events: none;\n }\n .menu-handler-communities:focus-within .top-menu-communities {\n display: block;\n }\n .menu-handler-communities:focus .top-menu-care-specialties {\n display: none;\n }\n\n //care\n .menu-handler-care-specialties:focus > .menu-handler-item {\n pointer-events: none;\n }\n .menu-handler-care-specialties:focus-within .top-menu-care-specialties {\n display: block;\n }\n .menu-handler-care-specialties:focus .top-menu-communities {\n display: none;\n }\n"],["\n position: fixed;\n z-index: 201;\n top: 0;\n left: 0;\n\n width: 100%;\n align-items: center;\n\n background-color: ",";\n\n transition: height 0.3s;\n\n .menu-handler-item {\n gap: 8px;\n a {\n text-decoration: none;\n }\n }\n\n &[data-site-type='helloSites'] {\n border-bottom: 1px solid\n ",";\n }\n\n &[data-marry-baby-tone='pink'] {\n background-color: ",";\n }\n\n //categories\n .menu-handler-categories:focus > .menu-handler-item {\n pointer-events: none;\n }\n .menu-handler-categories:focus-within .top-menu-categories {\n display: block;\n }\n .menu-handler-categories:focus .top-menu-health-tools {\n display: none;\n }\n\n //health tools\n .menu-handler-health-tools:focus > .menu-handler-item {\n pointer-events: none;\n }\n .menu-handler-health-tools:focus-within .top-menu-health-tools {\n display: block;\n }\n .menu-handler-health-tools:focus .top-menu-categories {\n display: none;\n }\n\n //communities\n .menu-handler-communities:focus > .menu-handler-item {\n pointer-events: none;\n }\n .menu-handler-communities:focus-within .top-menu-communities {\n display: block;\n }\n .menu-handler-communities:focus .top-menu-care-specialties {\n display: none;\n }\n\n //care\n .menu-handler-care-specialties:focus > .menu-handler-item {\n pointer-events: none;\n }\n .menu-handler-care-specialties:focus-within .top-menu-care-specialties {\n display: block;\n }\n .menu-handler-care-specialties:focus .top-menu-communities {\n display: none;\n }\n"])),(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.neutral100}),(function(e){return e.theme.mbColors.lightPink})),j=f.default.div(ee||(ee=e.__makeTemplateObject(["\n display: flex;\n height: 100%;\n align-items: center;\n\n justify-content: space-between;\n padding: 0;\n"],["\n display: flex;\n height: 100%;\n align-items: center;\n\n justify-content: space-between;\n padding: 0;\n"]))),U=f.default.div(ne||(ne=e.__makeTemplateObject(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),Y=f.default.div(te||(te=e.__makeTemplateObject(["\n padding-right: 16px;\n &[data-is-having-border='true'] {\n border-right: 1px solid\n ",";\n }\n"],["\n padding-right: 16px;\n &[data-is-having-border='true'] {\n border-right: 1px solid\n ",";\n }\n"])),(function(e){return e.theme.colors.neutral100})),V=f.default.div(ae||(ae=e.__makeTemplateObject(["\n padding: 0 16px;\n\n & > div {\n background-color: ",";\n }\n\n &[data-marry-baby-theme='white'] > div {\n background-color: ",";\n }\n\n #search-input-home,\n #search-input-home-temp {\n height: 32px;\n box-sizing: border-box;\n padding: 0 16px 0 48px;\n border: 1px solid ",";\n border-radius: 6px;\n filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.1));\n outline: none;\n }\n\n &[data-is-styled-borderless='true'] {\n #search-input-home,\n #search-input-home-temp {\n height: 40px;\n border: 1px solid ",";\n border-radius: 16px;\n filter: none;\n }\n }\n"],["\n padding: 0 16px;\n\n & > div {\n background-color: ",";\n }\n\n &[data-marry-baby-theme='white'] > div {\n background-color: ",";\n }\n\n #search-input-home,\n #search-input-home-temp {\n height: 32px;\n box-sizing: border-box;\n padding: 0 16px 0 48px;\n border: 1px solid ",";\n border-radius: 6px;\n filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.1));\n outline: none;\n }\n\n &[data-is-styled-borderless='true'] {\n #search-input-home,\n #search-input-home-temp {\n height: 40px;\n border: 1px solid ",";\n border-radius: 16px;\n filter: none;\n }\n }\n"])),(function(e){return e.theme.colors.white}),(function(e){return e.theme.mbColors.lightGray}),(function(e){return e.theme.colors.neutral100}),(function(e){return e.theme.colors.white})),z=f.default.div(oe||(oe=e.__makeTemplateObject(["\n display: flex;\n align-items: center;\n\n & > :not(:first-child) {\n margin-left: 6px;\n }\n"],["\n display: flex;\n align-items: center;\n\n & > :not(:first-child) {\n margin-left: 6px;\n }\n"]))),F=f.default.div(ie||(ie=e.__makeTemplateObject(["\n display: flex;\n align-items: center;\n\n margin-left: 8px;\n"],["\n display: flex;\n align-items: center;\n\n margin-left: 8px;\n"]))),W=f.default.div(le||(le=e.__makeTemplateObject(["\n display: flex;\n align-items: center;\n\n margin-left: 4px;\n"],["\n display: flex;\n align-items: center;\n\n margin-left: 4px;\n"]))),Z=f.default.div(re||(re=e.__makeTemplateObject(["\n margin-right: 8px;\n & > div {\n display: flex;\n align-items: center;\n\n cursor: pointer;\n font-size: ",";\n font-weight: ",";\n line-height: 22px;\n\n user-select: none;\n }\n\n &[data-is-active='true'] {\n color: ",";\n\n div[data-site-type='marryBaby'] & {\n color: ",";\n }\n }\n\n &[data-is-active='false'] {\n color: ",";\n\n div[data-site-type='marryBaby'] & {\n color: ",";\n }\n }\n .care-navigator {\n color: ",";\n font-size: 14px;\n font-weight: 700;\n }\n"],["\n margin-right: 8px;\n & > div {\n display: flex;\n align-items: center;\n\n cursor: pointer;\n font-size: ",";\n font-weight: ",";\n line-height: 22px;\n\n user-select: none;\n }\n\n &[data-is-active='true'] {\n color: ",";\n\n div[data-site-type='marryBaby'] & {\n color: ",";\n }\n }\n\n &[data-is-active='false'] {\n color: ",";\n\n div[data-site-type='marryBaby'] & {\n color: ",";\n }\n }\n .care-navigator {\n color: ",";\n font-size: 14px;\n font-weight: 700;\n }\n"])),(function(e){return e.theme.sizes.fsParagraph4}),(function(e){return e.theme.sizes.fwBold}),(function(e){return e.theme.colors.primaryBase}),(function(e){return e.theme.mbColors.pink}),(function(e){return e.theme.colors.secondaryDark}),(function(e){return e.theme.mbColors.dark}),(function(e){return e.theme.colors.secondaryDark})),q=f.default.div(se||(se=e.__makeTemplateObject(["\n flex-shrink: 0;\n & > div {\n display: flex;\n align-items: center;\n\n font-size: ",";\n font-weight: ",";\n line-height: 22px;\n\n user-select: none;\n }\n "," {\n position: absolute;\n right: 16px;\n bottom: 16px;\n height: 32px;\n display: flex;\n }\n .menu-handler-item {\n gap: 8px;\n .care-button {\n text-decoration: none;\n }\n }\n\n .login-btn-mobile[data-color='secondary'][data-size='sm'] {\n padding-right: 1rem;\n padding-left: 1rem;\n }\n"],["\n flex-shrink: 0;\n & > div {\n display: flex;\n align-items: center;\n\n font-size: ",";\n font-weight: ",";\n line-height: 22px;\n\n user-select: none;\n }\n "," {\n position: absolute;\n right: 16px;\n bottom: 16px;\n height: 32px;\n display: flex;\n }\n .menu-handler-item {\n gap: 8px;\n .care-button {\n text-decoration: none;\n }\n }\n\n .login-btn-mobile[data-color='secondary'][data-size='sm'] {\n padding-right: 1rem;\n padding-left: 1rem;\n }\n"])),(function(e){return e.theme.sizes.fsParagraph4}),(function(e){return e.theme.sizes.fwBold}),c.MediaQueries.mbDown);f.default.div(ce||(ce=e.__makeTemplateObject(["\n display: block;\n"],["\n display: block;\n"]))),f.default.div(de||(de=e.__makeTemplateObject([""],[""]))),f.default.div(pe||(pe=e.__makeTemplateObject(["\n .amp-sidebar {\n width: 100vw;\n max-width: 100vw;\n background-color: ",";\n }\n\n .nav-card {\n display: flex;\n width: 100%;\n flex-direction: column;\n align-items: center;\n padding: 16px;\n border-radius: 6px;\n color: ",";\n\n span {\n margin-top: 4px;\n font-size: 13px;\n font-weight: ",";\n }\n\n svg {\n margin-bottom: 4px;\n }\n\n &.active {\n background: ",";\n box-shadow: 0px 16px 24px rgba(0, 0, 0, 0.06),\n 0px 2px 8px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);\n color: white;\n }\n\n &:not(.active) {\n box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 0px 1px rgba(0, 0, 0, 0.04);\n color: ",";\n }\n }\n\n .categories__spotlight {\n display: grid;\n margin: 16px;\n margin-bottom: 32px;\n grid-gap: 8px;\n grid-template-columns: 1fr 1fr;\n\n a {\n text-decoration: none;\n }\n }\n\n .amp__menu-header {\n display: grid;\n grid-template-columns: 1fr 1fr 1fr;\n\n > div:first-child > amp-img {\n margin-left: 1rem;\n }\n\n svg {\n margin-left: 16px;\n }\n\n > div {\n align-self: center;\n\n &:nth-child(2) {\n justify-self: center;\n }\n }\n }\n\n .logo {\n margin: 22px 0;\n\n img {\n object-fit: contain;\n }\n }\n\n .categories {\n margin: 0 16px;\n\n li {\n position: relative;\n display: block;\n width: 100%;\n\n + li {\n border-top: 1px solid\n ",";\n }\n\n &.health-tool {\n display: flex;\n align-items: center;\n\n amp-img {\n margin-right: 1rem;\n }\n + li {\n border-top: none;\n }\n\n a {\n display: flex;\n align-items: center;\n }\n }\n\n a {\n display: block;\n margin: 16px 0;\n color: ",";\n text-decoration: none;\n }\n\n &::after {\n position: absolute;\n top: 50%;\n right: 0;\n content: url(\"data:image/svg+xml,%3Csvg width='6' height='10' viewBox='0 0 6 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 9L5 5L1 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A\");\n }\n }\n }\n"],["\n .amp-sidebar {\n width: 100vw;\n max-width: 100vw;\n background-color: ",";\n }\n\n .nav-card {\n display: flex;\n width: 100%;\n flex-direction: column;\n align-items: center;\n padding: 16px;\n border-radius: 6px;\n color: ",";\n\n span {\n margin-top: 4px;\n font-size: 13px;\n font-weight: ",";\n }\n\n svg {\n margin-bottom: 4px;\n }\n\n &.active {\n background: ",";\n box-shadow: 0px 16px 24px rgba(0, 0, 0, 0.06),\n 0px 2px 8px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);\n color: white;\n }\n\n &:not(.active) {\n box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 0px 1px rgba(0, 0, 0, 0.04);\n color: ",";\n }\n }\n\n .categories__spotlight {\n display: grid;\n margin: 16px;\n margin-bottom: 32px;\n grid-gap: 8px;\n grid-template-columns: 1fr 1fr;\n\n a {\n text-decoration: none;\n }\n }\n\n .amp__menu-header {\n display: grid;\n grid-template-columns: 1fr 1fr 1fr;\n\n > div:first-child > amp-img {\n margin-left: 1rem;\n }\n\n svg {\n margin-left: 16px;\n }\n\n > div {\n align-self: center;\n\n &:nth-child(2) {\n justify-self: center;\n }\n }\n }\n\n .logo {\n margin: 22px 0;\n\n img {\n object-fit: contain;\n }\n }\n\n .categories {\n margin: 0 16px;\n\n li {\n position: relative;\n display: block;\n width: 100%;\n\n + li {\n border-top: 1px solid\n ",";\n }\n\n &.health-tool {\n display: flex;\n align-items: center;\n\n amp-img {\n margin-right: 1rem;\n }\n + li {\n border-top: none;\n }\n\n a {\n display: flex;\n align-items: center;\n }\n }\n\n a {\n display: block;\n margin: 16px 0;\n color: ",";\n text-decoration: none;\n }\n\n &::after {\n position: absolute;\n top: 50%;\n right: 0;\n content: url(\"data:image/svg+xml,%3Csvg width='6' height='10' viewBox='0 0 6 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 9L5 5L1 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A\");\n }\n }\n }\n"])),(function(e){return e.theme.colors.neutral50}),(function(e){return e.theme.colors.primaryBase}),(function(e){return e.theme.sizes.fwBold}),(function(e){return e.theme.colors.primaryBase}),(function(e){return e.theme.colors.gray800}),(function(e){return e.theme.colors.neutral100}),(function(e){return e.theme.colors.gray800}));var K,X,Q,J,$,ee,ne,te,ae,oe,ie,le,re,se,ce,de,pe,me,ue=f.default.div(me||(me=e.__makeTemplateObject(["\n width: 40px;\n height: 40px;\n cursor: pointer;\n\n img {\n border-radius: 50%;\n }\n\n .avatar {\n width: 40px;\n height: 40px;\n object-fit: cover;\n }\n\n .avatar-default {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ",";\n border-radius: 50%;\n color: white;\n font-size: 20px;\n font-weight: bold;\n }\n"],["\n width: 40px;\n height: 40px;\n cursor: pointer;\n\n img {\n border-radius: 50%;\n }\n\n .avatar {\n width: 40px;\n height: 40px;\n object-fit: cover;\n }\n\n .avatar-default {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ",";\n border-radius: 50%;\n color: white;\n font-size: 20px;\n font-weight: bold;\n }\n"])),(function(e){return e.theme.colors.secondaryBase}));function he(){return g.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g.default.createElement("path",{d:"M14.5 17L9.5 12L14.5 7",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"}))}function ge(){return g.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g.default.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"}))}function fe(e){var n=e.siteType,t=e.type;return"helloSites"===n?g.default.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4 12H20' stroke='%23262626' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M4 6H20' stroke='%23262626' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M4 18H20' stroke='%23262626' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",style:{width:"24px",height:"24px"},alt:t}):g.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.34961 15C3.34961 14.641 3.64062 14.35 3.99961 14.35L13.9996 14.35C14.3586 14.35 14.6496 14.641 14.6496 15C14.6496 15.359 14.3586 15.65 13.9996 15.65L3.99961 15.65C3.64062 15.65 3.34961 15.359 3.34961 15ZM3.34961 8.99999C3.34961 8.64101 3.64062 8.34999 3.99961 8.34999L19.9992 8.34999C20.3582 8.34999 20.6492 8.64101 20.6492 8.99999C20.6492 9.35898 20.3582 9.64999 19.9992 9.64999L3.99961 9.64999C3.64062 9.64999 3.34961 9.35898 3.34961 8.99999Z",fill:"#3E3F58"}))}function ye(n){var a,o,i=n.type,l=n.isStatic,c=n.isAmp,d=n.isDisplayed,p=n.siteType,m=n.isCollapsed,u=n.sitewideBannerShown,h=n.sitewideBanner,f=n.sitewideBannerClosed,y=n.setSitewideBannerClosed,E=n.isMobile,v=n.onMenuClick,x=n.menu,b=n.isSearchIconDisplayed,T=n.statics,I=T.DISCOVER_URL_FE,w=T.SSO_URL,C=T.HOME_PAGE_URL,k=T.CARE_URL_FE,_=n.basePath,O=n.languageMenu,S=n.enabledExperimentalCareHeader,A=n.onCareHeaderClick,L=n.logoType,N=n.locale,M=n.isInit,D=n.title,j=n.sponsorComponent,U=n.currentUrl,Y=n.userInfo,V=n.currentPopupType,z=n.avatar,W=n.profileMenu,K=n.isLoginButtonDisplayed,X=n.goToLogin,Q=n.isSearchBarDisplay,J=n.searchPlaceholder,$=n.onSearchValueChanged,ee=n.keyPressed,ne=P(),te=!!j,ae=!!(null===(o=null===(a=null==j?void 0:j.props)||void 0===a?void 0:a.sponsoredBy)||void 0===o?void 0:o.length),oe=u&&!!h&&!f,ie=Ee({isSiteWide:!!h&&!f,isShowingSiteWideBanner:oe,isSponsored:te,hasSponsoredBanners:ae,isMobile:!0}),le=ie.headerRef,re=ie.headerHeight;return g.default.createElement(g.default.Fragment,null,g.default.createElement(R,{"data-header-type":i,"data-collapsed":!l&&m,"data-with-search-input":"popup-sub-level"!==i,"data-is-displayed":d,"data-is-amp":c,"data-sponsored":te,"data-site-type":p,"data-sitewide-banner-shown":oe,id:"site-header",ref:le},h?g.default.isValidElement(h)?g.default.cloneElement(h,{isCollapsed:m,setBannerClosed:y,isAmp:c,isMobile:E}):h:null,g.default.createElement("div",{style:e.__assign(e.__assign({position:"relative",height:64,display:"flex",alignItems:"center",justifyContent:"helloSites"===p?"center":"flex-start",background:"white"},"marryBaby"===p?{paddingLeft:66}:{}),void 0!==O||S?{paddingLeft:S?48:64,gap:24,justifyContent:"unset"}:{})},g.default.createElement(B,null,g.default.createElement(H,{on:"tap:discover-amp-sidebar",role:"button",className:"menu-handler",tabIndex:0},g.default.createElement("div",{onClick:function(){return null==v?void 0:v("categories")}},"home"===i&&g.default.createElement("a",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},g.default.createElement(fe,{siteType:p,type:i})),"popup"===i&&g.default.createElement(ge,null),"popup-sub-level"===i&&g.default.createElement(he,null)),x),b&&"helloSites"===p&&"home"===i&&g.default.createElement(H,{style:{paddingRight:16}},g.default.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click",style:{paddingRight:16,paddingTop:8,position:"relative"},href:"".concat(C,"/search?s=&page=1")},g.default.createElement("img",{src:"".concat(_,"/images/search.svg"),style:{width:"24px",height:"24px"},alt:i}),g.default.createElement("input",{style:{width:"32px",height:"32px",position:"absolute",left:"-2px",bottom:"0",opacity:0,zIndex:1e4}})))),"popup"!==i&&g.default.createElement(q,{"data-is-profile":!0,className:M?"":"menu-handler-health-tools"},g.default.createElement("div",{className:"menu-handler-item"},b&&"marryBaby"===p&&"home"===i&&g.default.createElement(H,{style:{justifySelf:"flex-end"}},g.default.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click",style:{display:"flex"},href:"".concat(I,"/search?s=&page=1")},g.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g.default.createElement("path",{d:"M3.31573 13.7811L3.94855 13.6326L3.31573 13.7811ZM3.31573 8.324L3.94855 8.47244L3.31573 8.324ZM18.7893 8.324L19.4221 8.17556L18.7893 8.324ZM18.7893 13.781L19.4221 13.9295L18.7893 13.781ZM13.781 18.7893L13.6326 18.1565L13.781 18.7893ZM8.324 18.7893L8.17556 19.4221L8.324 18.7893ZM8.324 3.31573L8.17556 2.6829L8.324 3.31573ZM13.781 3.31573L13.9295 2.6829L13.781 3.31573ZM20.5404 21.4596C20.7942 21.7135 21.2058 21.7135 21.4596 21.4596C21.7135 21.2058 21.7135 20.7942 21.4596 20.5404L20.5404 21.4596ZM3.94855 13.6326C3.55048 11.9356 3.55048 10.1695 3.94855 8.47244L2.6829 8.17556C2.23903 10.0679 2.23903 12.0372 2.68291 13.9295L3.94855 13.6326ZM18.1565 8.47244C18.5546 10.1695 18.5546 11.9356 18.1565 13.6326L19.4221 13.9295C19.866 12.0372 19.866 10.0679 19.4221 8.17556L18.1565 8.47244ZM13.6326 18.1565C11.9356 18.5546 10.1695 18.5546 8.47244 18.1565L8.17556 19.4221C10.0679 19.866 12.0372 19.866 13.9295 19.4221L13.6326 18.1565ZM8.47244 3.94855C10.1695 3.55048 11.9356 3.55048 13.6326 3.94855L13.9295 2.6829C12.0372 2.23903 10.0679 2.23903 8.17556 2.6829L8.47244 3.94855ZM8.47244 18.1565C6.22776 17.63 4.47508 15.8773 3.94855 13.6326L2.68291 13.9295C3.32219 16.6549 5.45019 18.7829 8.17556 19.4221L8.47244 18.1565ZM13.9295 19.4221C16.6549 18.7829 18.7829 16.6549 19.4221 13.9295L18.1565 13.6326C17.63 15.8773 15.8773 17.63 13.6326 18.1565L13.9295 19.4221ZM13.6326 3.94855C15.8773 4.47508 17.63 6.22775 18.1565 8.47244L19.4221 8.17556C18.7829 5.45019 16.6549 3.32219 13.9295 2.6829L13.6326 3.94855ZM8.17556 2.6829C5.45019 3.32219 3.32219 5.45018 2.6829 8.17556L3.94855 8.47244C4.47508 6.22775 6.22775 4.47508 8.47244 3.94855L8.17556 2.6829ZM16.8755 17.7948L20.5404 21.4596L21.4596 20.5404L17.7948 16.8755L16.8755 17.7948Z",fill:"#3E3F58"})),g.default.createElement("input",{style:{width:"32px",height:"32px",position:"absolute",left:"-2px",bottom:"0",opacity:0}}))),S&&g.default.createElement(g.default.Fragment,null,A?g.default.createElement(r.Button,{size:"sm",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:U,onClick:function(e){return A(e)}},ne("login.booking")):g.default.createElement("a",{href:k,className:"care-button"},g.default.createElement(r.Button,{size:"sm",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:U},ne("login.booking")))),(null==Y?void 0:Y.id)?g.default.createElement(F,{style:{position:"relative"}},g.default.createElement("div",{onClick:function(){return v&&v("profile")}},"profile"===V?g.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g.default.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})):z),W):c?g.default.createElement("a",{"data-vars-event-category":"Sign Up","data-vars-event-action":"Button Click","data-vars-event-label":U,href:"".concat(w,"?returnUrl=").concat(U.replace("?amp=1","")),style:{textDecoration:"none"}},"vi-VN"===N?g.default.createElement(ue,{onClick:X},g.default.createElement("img",{src:t.img,className:"avatar",alt:"avatar"})):g.default.createElement(r.Button,{className:"login-btn-mobile",size:"sm",color:"secondary",onClick:X},ne("navigation.loginJoin"))):K&&g.default.createElement("a",{"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":U},S?g.default.createElement(ue,{onClick:X},g.default.createElement("img",{src:t.img,className:"avatar",alt:"avatar"})):"helloSites"===p?g.default.createElement(r.Button,{className:"login-btn-mobile",size:"sm",color:"secondary",onClick:X},ne("navigation.loginJoin")):g.default.createElement("div",{className:"login-btn-mobile",onClick:X,style:{paddingLeft:16}},g.default.createElement(s.Text,{size:"p3"},ne("navigation.loginJoin")))))),("home"===i||"popup"===i)&&g.default.createElement("a",{href:C||""},g.default.createElement(s.Logo,{type:L,height:"27px",width:"121px",style:{display:"flex"},badge:"id-ID"===N?g.default.createElement("img",{src:t.img$1,style:{width:56,height:23,maxWidth:56},width:"56",height:"23"}):void 0})),void 0!==O&&g.default.createElement(Z,{"data-is-active":!0,className:M?"":"menu-handler-language",onClick:function(){v&&v("language")}},O),D&&g.default.createElement(r.Heading,{className:"top-bar-header",tag:"h5"},D)),j?g.default.isValidElement(j)?g.default.cloneElement(j,{isCollapsed:m,locale:N,isMobile:E,isAmp:c}):j:null),Q?g.default.createElement(G,{"data-header-type":i,"data-is-displayed":d,"data-sitewide-banner-shown":u&&!!h},g.default.createElement(s.PureInput,{style:{minHeight:"auto",minWidth:"100%",padding:"0 16px"},name:"search-input-"+i+(M?"":"-temp"),size:"md",placeholder:J,onChange:$,onKeyPress:ee,type:"search",autoFocus:!1,displayIcon:g.default.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},g.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g.default.createElement("path",{d:"M11 18C14.866 18 18 14.866 18 11C18 7.13401 14.866 4 11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18Z",stroke:"#8C8C8C",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),g.default.createElement("path",{d:"M20 20L16 16",stroke:"#8C8C8C",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))})):g.default.createElement(g.default.Fragment,null,!c&&g.default.createElement("div",{style:{height:re}})))}var Ee=function(e){var t=e.hasSponsoredBanners,o=e.isSiteWide,i=e.isSponsored,l=e.isShowingSiteWideBanner,r=e.isMobile,s=n.useRef(null),c=n.useState(0),d=c[0],p=c[1],m=n.useCallback(a.debounce((function(){var e,n=(null===(e=s.current)||void 0===e?void 0:e.clientHeight)||0;window.scrollY<=n+30&&p(n)}),100),[]);n.useEffect((function(){return window.addEventListener("resize",m),window.addEventListener("scroll",m),function(){window.removeEventListener("resize",m),window.removeEventListener("scroll",m)}}),[]),n.useEffect((function(){m()}),[o,l,i,t,s.current]);var u=n.useMemo((function(){var e=r?64:69;return l&&(e+=64),i&&(e+=40),e}),[r,l,i]);return{headerHeight:d||u,headerRef:s}};f.default.div(ve||(ve=e.__makeTemplateObject(["\n display: flex;\n align-items: center;\n padding: 0.5rem 0;\n\n &[data-type-mobile='true'] {\n justify-content: space-between;\n }\n\n amp-img img {\n object-fit: contain;\n object-position: right;\n }\n"],["\n display: flex;\n align-items: center;\n padding: 0.5rem 0;\n\n &[data-type-mobile='true'] {\n justify-content: space-between;\n }\n\n amp-img img {\n object-fit: contain;\n object-position: right;\n }\n"])));var ve,xe,be,Te=f.default.div(xe||(xe=e.__makeTemplateObject(["\n display: flex;\n height: 40px;\n align-items: center;\n justify-content: center;\n padding: 8px 0;\n border-top: 1px solid #e4e8ec;\n background-color: ",";\n cursor: pointer;\n text-decoration: none;\n\n &[data-align-left='true'] {\n justify-content: start;\n }\n .sticky-sponsored-info-icon {\n display: inline;\n }\n\n .sponsored-logo {\n width: auto;\n height: 24px;\n vertical-align: middle;\n }\n\n "," {\n height: 44px;\n }\n\n &[data-show-popup='true'] {\n .sticky-sponsored-info-icon {\n position: relative;\n &:before {\n position: absolute;\n z-index: 9;\n top: 100%;\n left: 9px;\n border-right: 6px transparent solid;\n border-bottom: 8px white solid;\n border-left: 6px transparent solid;\n content: ' ';\n transform: translateX(calc(-50% + 3px));\n }\n }\n }\n\n &.open .amp-sponsored-popup {\n display: block;\n }\n\n &[data-is-amp] {\n margin-top: -10px;\n > [class*='Container'] {\n display: flex;\n align-items: center;\n }\n }\n"],["\n display: flex;\n height: 40px;\n align-items: center;\n justify-content: center;\n padding: 8px 0;\n border-top: 1px solid #e4e8ec;\n background-color: ",";\n cursor: pointer;\n text-decoration: none;\n\n &[data-align-left='true'] {\n justify-content: start;\n }\n .sticky-sponsored-info-icon {\n display: inline;\n }\n\n .sponsored-logo {\n width: auto;\n height: 24px;\n vertical-align: middle;\n }\n\n "," {\n height: 44px;\n }\n\n &[data-show-popup='true'] {\n .sticky-sponsored-info-icon {\n position: relative;\n &:before {\n position: absolute;\n z-index: 9;\n top: 100%;\n left: 9px;\n border-right: 6px transparent solid;\n border-bottom: 8px white solid;\n border-left: 6px transparent solid;\n content: ' ';\n transform: translateX(calc(-50% + 3px));\n }\n }\n }\n\n &.open .amp-sponsored-popup {\n display: block;\n }\n\n &[data-is-amp] {\n margin-top: -10px;\n > [class*='Container'] {\n display: flex;\n align-items: center;\n }\n }\n"])),(function(e){return e.theme.colors.neutral50}),c.MediaQueries.mbUp),Ie=f.default.div(be||(be=e.__makeTemplateObject(["\n position: absolute;\n top: 30px;\n left: 50%;\n &[data-align-left='true'] {\n left: 190px;\n }\n width: 350px;\n padding: 1rem;\n border: 1px solid #f2f2f2;\n background: white;\n border-radius: 6px;\n transform: translateX(-50%);\n "," {\n width: calc(100% - 2rem);\n }\n\n &[data-is-amp] {\n display: none;\n position: fixed;\n z-index: 999;\n top: 100px;\n left: 50%;\n\n &.open {\n display: block;\n }\n }\n\n .button-container {\n display: flex;\n justify-content: space-between;\n button {\n flex: 1;\n }\n button:first-child {\n margin-right: 0.5rem;\n "," {\n margin-right: 1rem;\n }\n }\n }\n"],["\n position: absolute;\n top: 30px;\n left: 50%;\n &[data-align-left='true'] {\n left: 190px;\n }\n width: 350px;\n padding: 1rem;\n border: 1px solid #f2f2f2;\n background: white;\n border-radius: 6px;\n transform: translateX(-50%);\n "," {\n width: calc(100% - 2rem);\n }\n\n &[data-is-amp] {\n display: none;\n position: fixed;\n z-index: 999;\n top: 100px;\n left: 50%;\n\n &.open {\n display: block;\n }\n }\n\n .button-container {\n display: flex;\n justify-content: space-between;\n button {\n flex: 1;\n }\n button:first-child {\n margin-right: 0.5rem;\n "," {\n margin-right: 1rem;\n }\n }\n }\n"])),c.MediaQueries.mbDown,c.MediaQueries.mbUp),we=function(e){var n=e.sponsoredBy,t=e.isAmp,a=e.onClose,o=e.locale||"en-PH",i=P();return g.default.createElement(Ie,{"data-align-left":n&&!!(null==n?void 0:n.logo),"data-is-amp":t||void 0,id:"sponsored-by",className:t?"amp-sponsored-popup":void 0},g.default.createElement(s.Text,{size:"p3",style:{marginBottom:"1rem"}},i("articlePage.sponsoredByStickyPopup.content")),g.default.createElement("div",{className:"button-container",onClick:function(e){e.stopPropagation()}},g.default.createElement(r.Button,{size:"md",color:"secondary",onClick:a,isAmp:t,on:"tap:sponsored-by.toggleClass(class='open')"},i("articlePage.sponsoredByStickyPopup.close")),g.default.createElement(r.Button,{size:"md",onClick:function(){window.location.href="/static".concat(x[o].ADVERTISING_SPONSOR_POLICY)},isAmp:t,on:"tap:AMP.navigateTo(url='/static".concat(x[o].ADVERTISING_SPONSOR_POLICY,"')")},i("articlePage.sponsoredByStickyPopup.policies"))))};exports.Layout=function(n){var a,o,i,l,r,s,c,d,p,m,u,h,f,y,x,T,I,w,C,k=n.children,_=n.SEOData,O=void 0===_?{}:_,S=n.isAmp,A=void 0!==S&&S,L=n.locale,N=void 0===L?"vi-VN":L,M=n.routerPathname,P=n.routerQuery,R=n.nextHead,B=n.siteType,H=n.seoCustom,G=n.userId,D=n.forcedCanonicalUrl,j=n.usingDefaultHead,U="production"===process.env.NEXT_PUBLIC_DEPLOY_ENV,Y=O.totalPages,V=O.currentPage,z=O.SEOTitle,F=void 0===z?"":z,W=O.SEODescription,Z=void 0===W?"":W,q=O.SEOImage,K=O.seoType,X=O.SEOImageWidth,Q=O.SEOImageHeight,J=O.customMetaData,$=void 0===J?[]:J,ee=O.isIndexable,ne=void 0===ee||ee,te=O.hasNoCanonical,ae=void 0!==te&&te,oe=ne&&U?"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1":"noindex",ie=process.env.NEXT_PUBLIC_BASE_API_URL,le=O.canonicalUrl||M;Object.keys(P).forEach((function(e){var n=P[e];n&&Array.isArray(n)&&(le=le.replace("[...".concat(e,"]"),n.join("/")))}));var re,se=N||"en-PH",ce="helloSites"===B?E[se]:"www.marrybaby.vn",de=le.endsWith("/")?"":"/";if(O.apiMetaData&&"string"==typeof O.apiMetaData){var pe=null===(a=O.apiMetaData)||void 0===a?void 0:a.match(/<title.*?>(.*)<\/title>/),me=" - Page ".concat(V," of ").concat(Y),ue=V&&1!==V&&pe?O.apiMetaData.replace(pe[0],pe[0].includes("-")?pe[0].replace("-",me+" - "):"<title>".concat(pe[1].concat(me),"</title>")).replace('<link rel="canonical" href="https://'.concat(ce).concat(le).concat(de,'" />'),'<link rel="canonical" href="https://'.concat(ce).concat(le).concat(de,"?page=").concat(V,'" />')):O.apiMetaData,he=(re=t.htmlReactParser(ue,{trim:!0})).find((function(e){var n,t;return"og:image"===(null===(n=e.props)||void 0===n?void 0:n.property)||"og:image:secure_url"===(null===(t=e.props)||void 0===t?void 0:t.property)}));if(!he){var ge="https://".concat(ce,"/images/").concat(N,".png");re=e.__spreadArray(e.__spreadArray([],re,!0),[g.default.createElement("meta",{key:"og:image",property:"og:image",content:(null===(o=O.openGraph)||void 0===o?void 0:o.image)||ge||""}),g.default.createElement("meta",{key:"og:image:secure_url",property:"og:image:secure_url",content:(null===(i=O.openGraph)||void 0===i?void 0:i.image)||ge}),g.default.createElement("meta",{key:"og:image:width",property:"og:image:width",content:(null===(l=O.openGraph)||void 0===l?void 0:l.imageWidth)&&String(null===(r=O.openGraph)||void 0===r?void 0:r.imageWidth)||"1200"}),g.default.createElement("meta",{key:"og:image:height",property:"og:image:height",content:(null===(s=O.openGraph)||void 0===s?void 0:s.imageHeight)&&String(null===(c=O.openGraph)||void 0===c?void 0:c.imageHeight)||"630"})],!1)}}var fe="https://".concat(ce,"/images/").concat(N,".png");return g.default.createElement(g.default.Fragment,null,R&&j&&g.default.createElement(R,null,g.default.createElement("link",{rel:"preconnect",href:"https://fonts.gstatic.com"}),"marryBaby"===B&&g.default.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Inter&family=Krub:wght@600&display=swap",rel:"stylesheet"}),"km-KH"===N?g.default.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Battambang:wght@400;700&display=swap",rel:"stylesheet"}):"id-ID"===N||"ms-MY"===N?g.default.createElement(g.default.Fragment,null):g.default.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap",rel:"preload",as:"style"}),g.default.createElement("link",{rel:"preconnect",href:ie}),g.default.createElement("meta",{charSet:"UTF-8"}),!A&&g.default.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"}),g.default.createElement("meta",{name:"google",content:"notranslate"}),g.default.createElement("meta",{name:"robots",content:oe}),g.default.createElement("meta",{property:"fb:app_id",content:"653713035016537"}),$.map((function(n,t){return g.default.createElement("meta",e.__assign({key:t},n))})),g.default.createElement("meta",{name:"theme-color",content:"helloSites"===B?"#2c87f3":"#e85388"}),g.default.createElement("meta",{name:"page_type",content:"Home"}),g.default.createElement("meta",{name:"page_platform",content:"WEB"}),g.default.createElement("meta",{name:"page_language",content:se}),g.default.createElement("meta",{name:"ahrefs-site-verification",content:"46e7521a2b89a1013149c4685bbe02a1d36a4732fef98655142b829bc87cba4d"}),A&&g.default.createElement(g.default.Fragment,null,g.default.createElement("script",{async:!0,"custom-element":"amp-analytics",src:"https://cdn.ampproject.org/v0/amp-analytics-0.1.js"}),g.default.createElement("script",{async:!0,"custom-element":"amp-fx-collection",src:"https://cdn.ampproject.org/v0/amp-fx-collection-0.1.js"}),g.default.createElement("script",{async:!0,"custom-element":"amp-ad",src:"https://cdn.ampproject.org/v0/amp-ad-0.1.js"}),g.default.createElement("script",{async:!0,"custom-element":"amp-next-page",src:"https://cdn.ampproject.org/v0/amp-next-page-1.0.js"}),g.default.createElement("script",{async:!0,"custom-element":"amp-sticky-ad",src:"https://cdn.ampproject.org/v0/amp-sticky-ad-1.0.js"}),g.default.createElement("script",{async:!0,"custom-element":"amp-social-share",src:"https://cdn.ampproject.org/v0/amp-social-share-0.1.js"}),g.default.createElement("script",{async:!0,"custom-element":"amp-bind",src:"https://cdn.ampproject.org/v0/amp-bind-0.1.js"})),!re&&g.default.createElement(g.default.Fragment,null,"helloSites"===B?g.default.createElement("title",null,H?F:F+" - "+(null===(d=v[N])||void 0===d?void 0:d.SITE_NAME)):g.default.createElement("title",null,F),!ae&&g.default.createElement("link",{rel:"canonical",href:"https://".concat(ce).concat(le)}),g.default.createElement("meta",{name:"description",content:Z||(null===(p=O.openGraph)||void 0===p?void 0:p.description)}),O.schemaData&&g.default.createElement("script",{type:"application/ld+json",className:"yoast-schema-graph",dangerouslySetInnerHTML:{__html:O.schemaData}}),g.default.createElement("meta",{property:"og:locale",content:N}),g.default.createElement("meta",{property:"og:type",content:K||"website"}),g.default.createElement("meta",{property:"og:title",content:(null===(m=O.openGraph)||void 0===m?void 0:m.title)||F}),g.default.createElement("meta",{property:"og:description",content:(null===(u=O.openGraph)||void 0===u?void 0:u.description)||Z}),g.default.createElement("meta",{property:"og:url",content:"https://".concat(ce).concat(le)}),g.default.createElement("meta",{property:"og:site_name",content:"https://".concat(ce)}),g.default.createElement("meta",{property:"og:image",content:(null===(h=O.openGraph)||void 0===h?void 0:h.image)||q||fe||""}),g.default.createElement("meta",{property:"og:image:secure_url",content:(null===(f=O.openGraph)||void 0===f?void 0:f.image)||q||fe}),g.default.createElement("meta",{property:"og:image:width",content:(null===(y=O.openGraph)||void 0===y?void 0:y.imageWidth)&&String(null===(x=O.openGraph)||void 0===x?void 0:x.imageWidth)||X&&String(X)||"1200"}),g.default.createElement("meta",{property:"og:image:height",content:(null===(T=O.openGraph)||void 0===T?void 0:T.imageHeight)&&String(null===(I=O.openGraph)||void 0===I?void 0:I.imageHeight)||Q&&String(Q)||"630"}),g.default.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),g.default.createElement("meta",{name:"twitter:title",content:(null===(w=O.twitter)||void 0===w?void 0:w.title)||F}),g.default.createElement("meta",{name:"twitter:description",content:Z}),g.default.createElement("meta",{name:"twitter:image",content:(null===(C=O.twitter)||void 0===C?void 0:C.image)||q})),("helloSites"===B?b[se]||[]:b.marryBaby).map((function(e,n){return"link"===e.type?g.default.createElement("link",{key:"favicon-".concat(n),rel:e.rel,href:e.href,sizes:e.sizes}):"meta"===e.type?g.default.createElement("meta",{key:n,name:e.name,content:e.content}):null})),Array.isArray(re)&&D?re.filter((function(e){return"canonical"!==e.props.name&&"canonical"!==e.props.rel})):re,D&&g.default.createElement("link",{rel:"canonical",href:D}),!O.hasNoAmp&&"vi-VN"!==N&&g.default.createElement("link",{rel:"amphtml",href:"https://".concat(ce).concat(le).concat(de,"?amp=1")}),G&&"undefined"!=typeof window?g.default.createElement("script",{dangerouslySetInnerHTML:{__html:"window.dataLayer = window.dataLayer || []; window.dataLayer.push({'userID': '".concat(G,"'});")}}):null),R&&!j&&g.default.createElement(R,null),k)},exports.NavigationBar=function(e){var o,i,d,p=e.siteType,m=e.basePath,u=e.statics,h=e.currentPopupType,f=void 0===h?"none":h,y=e.isDisplayed,x=void 0===y||y,b=e.isSearchBarDisplay,T=void 0===b||b,I=e.searchPlaceholder,w=void 0===I?"":I,C=e.openPopup,k=e.onTopBarAppears,_=e.onSearchChange,O=e.onSearchKeyPress,S=e.menu,A=e.isAmp,L=e.profileMenu,N=e.isMobile,M=void 0!==N&&N,R=e.isLoginButtonDisplayed,B=e.title,H=e.type,G=void 0===H?"home":H,K=e.onMenuClick,X=e.isStatic,Q=void 0!==X&&X,J=e.routerAsPath,$=e.locale,ee=e.userInfo,ne=e.marryBaby,te=(void 0===ne?{tone:"white"}:ne).tone,ae=e.menuItems,oe=void 0===ae?[]:ae,ie=e.isInit,le=e.sitewideBanner,re=e.sitewideBannerShown,se=void 0===re||re,ce=e.sponsorComponent,de=e.languageMenu,pe=e.isSearchIconDisplayed,me=void 0!==pe&&pe,he=e.enabledExperimentalCareHeader,ge=e.onCareHeaderClick,fe=u.SSO_URL,ve=u.HOME_PAGE_URL,xe=u.CARE_URL_FE,be=P(),Te=!!ce,Ie=n.useState(!1),we=Ie[0],Ce=Ie[1],ke=n.useState(!1),_e=ke[0],Oe=ke[1],Se=n.useState(!1),Ae=Se[0],Le=Se[1],Ne=n.useState(ie||!1),Me=Ne[0],Pe=Ne[1],Re=n.useRef(47),Be=n.useRef(!1),He=n.useRef(!1),Ge="helloSites"===p?"https://".concat(E[$]).concat(J):"https://www.marrybaby.vn".concat(J),De=n.useMemo((function(){var e=(null==ee?void 0:ee.name)||(null==ee?void 0:ee.username);return g.default.createElement(l.Avatar,{type:"rounded",size:"small",avatarUrl:null==ee?void 0:ee.avatar,firstLetter:e&&e.length?e[0].toUpperCase():"A",backgroundColor:"marryBaby"===p?c.theme.mbColors.pink:c.theme.colors.secondaryBase,isAmp:A})}),[null==ee?void 0:ee.username,null==ee?void 0:ee.name,null==ee?void 0:ee.avatar]),je=function(){var e=window.location.href;window.location.href=fe?"".concat(fe,"?returnUrl=").concat(e):e},Ue="helloSites"===p?null===(o=v[$])||void 0===o?void 0:o.LOGO_TYPE:p,Ye="undefined"!=typeof window,Ve=function(e){null==_||_(e)},ze=n.useCallback(a.throttle((function(){var e;if("home"===G){var n=window,t=null===(e=document.querySelector(".sticky-container"))||void 0===e?void 0:e.clientHeight;Ye&&n&&(n.scrollY>Re.current&&n.scrollY>64&&!Be.current&&(Be.current=!0,Ce(!0)),n.scrollY<Re.current&&Be.current&&(Be.current=!1,Ce(!1),t&&n.scrollY),n.scrollY<Re.current&&t&&n.scrollY,T?(n.scrollY<64&&n.scrollY<Re.current&&He.current&&(He.current=!1),n.scrollY>8&&n.scrollY>Re.current&&!He.current&&(He.current=!0)):He.current=!0,n.scrollY>=0&&(Re.current=n.scrollY))}}),300),[]);n.useEffect((function(){null==k||k(!we)}),[we]);var Fe=function(e){var n,t;O&&O(e,null!==(t=null===(n=document.getElementById("search-input-"+G))||void 0===n?void 0:n.value)&&void 0!==t?t:"")};n.useEffect((function(){M&&ze()}),[]),n.useEffect((function(){return window.addEventListener("scroll",ze,{passive:!0}),function(){window.removeEventListener("scroll",ze)}}),[]),n.useEffect((function(){Pe(!0)}),[]),n.useEffect((function(){"undefined"!=typeof window&&Le(Boolean(Ae))}),[]);var We=g.default.createElement(g.default.Fragment,null,oe.find((function(e){return"categories"===e.id}))&&g.default.createElement(Z,{"data-is-active":"categories"===f,className:Me?"":"menu-handler-categories",tabIndex:0,onClick:function(){null==C||C("categories"),setTimeout((function(){var e,n;null===(n=null===(e=document.getElementsByClassName("top-menu-categories"))||void 0===e?void 0:e[0])||void 0===n||n.focus()}),100)}},g.default.createElement("div",{className:"menu-handler-item"},be("home.navigator.menuItem.discover"),g.default.createElement(W,null,g.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g.default.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),"categories"===f&&g.default.createElement("div",null,S)),oe.find((function(e){return"healthTools"===e.id}))&&g.default.createElement(Z,{"data-is-active":"tools"===f,className:Me?"":"menu-handler-health-tools",tabIndex:0},g.default.createElement("div",{className:"menu-handler-item",onClick:function(){C&&C("tools")}},be("home.navigator.menuItem.healthTools"),g.default.createElement(W,null,g.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g.default.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),"tools"===f&&g.default.createElement("div",null,S)),oe.find((function(e){return"care"===e.id}))&&!he&&g.default.createElement(Z,{"data-is-active":"care"===f,className:Me?"":"menu-handler-care-specialties",tabIndex:0},g.default.createElement("div",{className:"menu-handler-item",onClick:function(){C&&C("care")}},be("home.navigator.menuItem.helloCare"),g.default.createElement(W,null,g.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g.default.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),"care"===f&&g.default.createElement("div",null,S)),oe.find((function(e){return"together"===e.id}))&&g.default.createElement(Z,{"data-is-active":"communities"===f,className:Me?"":"menu-handler-communities",tabIndex:0},g.default.createElement("div",{className:"menu-handler-item",onClick:function(){C&&C("communities")}},be("home.navigator.menuItem.helloTogether"),g.default.createElement(W,null,g.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g.default.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),"communities"===f&&g.default.createElement("div",null,S))),Ze=!!(null===(d=null===(i=null==ce?void 0:ce.props)||void 0===i?void 0:i.sponsoredBy)||void 0===d?void 0:d.length),qe=se&&!!le&&!_e,Ke=Ee({isSiteWide:!!le&&!_e,isShowingSiteWideBanner:qe,isSponsored:Te,hasSponsoredBanners:Ze}),Xe=Ke.headerRef,Qe=Ke.headerHeight;return M?g.default.createElement(ye,{type:G,isStatic:Q,isAmp:A,isDisplayed:x,siteType:p,isCollapsed:we,sitewideBannerShown:se,sitewideBanner:le,sitewideBannerClosed:_e,setSitewideBannerClosed:Oe,isMobile:M,onMenuClick:K,menu:S,isSearchIconDisplayed:me,statics:u,basePath:m,languageMenu:de,enabledExperimentalCareHeader:he,logoType:Ue,locale:$,isInit:Me,title:B,sponsorComponent:ce,currentUrl:Ge,userInfo:ee,currentPopupType:f,avatar:De,profileMenu:L,isLoginButtonDisplayed:R,goToLogin:je,isSearchBarDisplay:T,searchPlaceholder:w,onSearchValueChanged:Ve,keyPressed:Fe}):g.default.createElement(g.default.Fragment,null,g.default.createElement("div",{style:{height:Qe}}),g.default.createElement(D,{ref:Xe,"data-site-type":p,"data-marry-baby-tone":"marryBaby"===p&&te,"data-sponsored":Te,"data-sitewide-banner-shown":qe},le?g.default.isValidElement(le)?g.default.cloneElement(le,{isCollapsed:we,setBannerClosed:Oe}):le:null,g.default.createElement(s.Container,{style:{height:69,padding:"0 16px"},type:p},g.default.createElement(j,null,g.default.createElement(U,null,g.default.createElement("a",{href:ve},g.default.createElement(Y,{"data-is-having-border":"helloSites"===p},g.default.createElement(s.Logo,{style:{display:"flex"},type:Ue,height:"27px",width:"121px",badge:"id-ID"===$?g.default.createElement("img",{src:t.img$1,style:{width:56,height:23,maxWidth:56},width:"56",height:"23"}):void 0}))),T&&"helloSites"===p&&g.default.createElement(V,{"data-header-type":G,"data-is-displayed":x,"data-sitewide-banner-shown":se&&!!le},g.default.createElement(s.PureInput,{style:{minHeight:"32px",maxHeight:"32px",minWidth:"100%",backgroundColor:c.theme.colors.white},name:"search-input-"+G+(Me?"":"-temp"),autoFocus:!1,size:"sm",placeholder:w,onChange:Ve,onKeyPress:Fe,displayIcon:g.default.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click",style:{width:"24px",height:"24px",transform:"scale(0.8)"}},g.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.875 11C4.875 7.61726 7.61726 4.875 11 4.875C14.3827 4.875 17.125 7.61726 17.125 11C17.125 14.3827 14.3827 17.125 11 17.125C7.61726 17.125 4.875 14.3827 4.875 11ZM11 3.125C6.65076 3.125 3.125 6.65076 3.125 11C3.125 15.3492 6.65076 18.875 11 18.875C12.8594 18.875 14.5683 18.2306 15.9155 17.1529L19.3813 20.6187C19.723 20.9604 20.277 20.9604 20.6187 20.6187C20.9604 20.277 20.9604 19.723 20.6187 19.3813L17.1529 15.9155C18.2306 14.5683 18.875 12.8594 18.875 11C18.875 6.65076 15.3492 3.125 11 3.125Z",fill:"#8C8C8C"})))})),"marryBaby"===p&&g.default.createElement("div",{style:{marginLeft:28,display:"flex"}},We)),g.default.createElement(z,null,"helloSites"===p&&We,T&&"marryBaby"===p&&g.default.createElement(V,{"data-header-type":G,"data-is-displayed":x,"data-is-styled-borderless":"marryBaby"===p,"data-marry-baby-theme":te},g.default.createElement(s.PureInput,{style:{minHeight:"40px",maxHeight:"40px",minWidth:"100%",borderRadius:16},name:"search-input-"+G+(Me?"":"-temp"),autoFocus:!1,size:"sm",placeholder:w,onChange:Ve,onKeyPress:Fe,displayIcon:g.default.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click",style:{width:"24px",height:"24px"}},g.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g.default.createElement("path",{d:"M3.31573 13.7811L3.94855 13.6326L3.31573 13.7811ZM3.31573 8.324L3.94855 8.47244L3.31573 8.324ZM18.7893 8.324L19.4221 8.17556L18.7893 8.324ZM18.7893 13.781L19.4221 13.9295L18.7893 13.781ZM13.781 18.7893L13.6326 18.1565L13.781 18.7893ZM8.324 18.7893L8.17556 19.4221L8.324 18.7893ZM8.324 3.31573L8.17556 2.6829L8.324 3.31573ZM13.781 3.31573L13.9295 2.6829L13.781 3.31573ZM20.5404 21.4596C20.7942 21.7135 21.2058 21.7135 21.4596 21.4596C21.7135 21.2058 21.7135 20.7942 21.4596 20.5404L20.5404 21.4596ZM3.94855 13.6326C3.55048 11.9356 3.55048 10.1695 3.94855 8.47244L2.6829 8.17556C2.23903 10.0679 2.23903 12.0372 2.68291 13.9295L3.94855 13.6326ZM18.1565 8.47244C18.5546 10.1695 18.5546 11.9356 18.1565 13.6326L19.4221 13.9295C19.866 12.0372 19.866 10.0679 19.4221 8.17556L18.1565 8.47244ZM13.6326 18.1565C11.9356 18.5546 10.1695 18.5546 8.47244 18.1565L8.17556 19.4221C10.0679 19.866 12.0372 19.866 13.9295 19.4221L13.6326 18.1565ZM8.47244 3.94855C10.1695 3.55048 11.9356 3.55048 13.6326 3.94855L13.9295 2.6829C12.0372 2.23903 10.0679 2.23903 8.17556 2.6829L8.47244 3.94855ZM8.47244 18.1565C6.22776 17.63 4.47508 15.8773 3.94855 13.6326L2.68291 13.9295C3.32219 16.6549 5.45019 18.7829 8.17556 19.4221L8.47244 18.1565ZM13.9295 19.4221C16.6549 18.7829 18.7829 16.6549 19.4221 13.9295L18.1565 13.6326C17.63 15.8773 15.8773 17.63 13.6326 18.1565L13.9295 19.4221ZM13.6326 3.94855C15.8773 4.47508 17.63 6.22775 18.1565 8.47244L19.4221 8.17556C18.7829 5.45019 16.6549 3.32219 13.9295 2.6829L13.6326 3.94855ZM8.17556 2.6829C5.45019 3.32219 3.32219 5.45018 2.6829 8.17556L3.94855 8.47244C4.47508 6.22775 6.22775 4.47508 8.47244 3.94855L8.17556 2.6829ZM16.8755 17.7948L20.5404 21.4596L21.4596 20.5404L17.7948 16.8755L16.8755 17.7948Z",fill:"#3E3F58"})))})),void 0!==de&&g.default.createElement(Z,{"data-is-active":!0,className:Me?"":"menu-handler-language",onClick:function(){C&&C("language")}},de),g.default.createElement(q,{"data-is-active":"profile"===f,"data-is-profile":!0,className:Me?"":"menu-handler-health-tools",tabIndex:0},g.default.createElement("div",{className:"menu-handler-item"},he&&g.default.createElement(g.default.Fragment,null,ge?g.default.createElement(r.Button,{className:"login-btn-mobile",size:"sm",color:"secondary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:Ge,onClick:function(e){return ge(e)}},be("login.booking")):g.default.createElement("a",{href:xe,className:"care-button no-replace-click"},g.default.createElement(r.Button,{className:"login-btn-mobile",size:"sm",color:"secondary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:Ge},be("login.booking")))),(null==ee?void 0:ee.id)?g.default.createElement(F,{style:{position:"relative"}},g.default.createElement("div",{onClick:function(){return C&&C("profile")}},De),L):R&&g.default.createElement("a",{"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":Ge},he?g.default.createElement(ue,{onClick:je},g.default.createElement("img",{src:t.img,className:"avatar",alt:"avatar"})):"helloSites"===p?g.default.createElement(r.Button,{size:"md",color:"secondary",onClick:je},be("navigation.loginJoin")):g.default.createElement(r.Button,{size:"md",color:"secondary",theme:"marryBaby",onClick:je},be("navigation.loginJoin")))))))),ce?g.default.isValidElement(ce)?g.default.cloneElement(ce,{isCollapsed:we,locale:$,isMobile:M,isAmp:A}):ce:null))},exports.SiteWide=function(t){var i=t.icon,l=t.content,r=t.isCollapsed,s=t.isMobile,c=t.type,d=t.onClose,p=t.setBannerClosed,m=t.dispatch,u=t.dispatchActionType,h=t.cookieName,f=t._overrideCloseHandler,y=t.isAmp,E=t.siteType,v=t.dataEventCategory,x=void 0===v?"Header Banner":v,b=t.dataEventAction,T=void 0===b?"Close Click":b,I=t.dataEventLabel,w=void 0===I?"":I,C=t.dataTracking,k=void 0===C?"true":C,_=n.useState(!1),O=_[0],N=_[1],M=n.useState(!1),P=M[0],R=M[1],B=l;y&&(B=B.replace("data-event","data-vars-event").replace('data-vars-event-category="'.concat(x,'"'),'data-vars-event-category="'.concat(x,'" data-vars-tracking="').concat(k,'"')));var H=n.useRef(64);n.useEffect((function(){var e=a.throttle((function(){window.scrollY<H.current?R(!1):window.scrollY>64&&R(!0),H.current=window.scrollY}),300);return window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e)}}),[]);var G="marryBaby"===E,D=G?"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M18 6L6 18' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6 6L18 18' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e":"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M18 6L6 18' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6 6L18 18' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";return n.useEffect((function(){p&&p(O||r||P)}),[p,O,r,P]),g.default.createElement(S,{"data-is-mobile":s,"data-is-collapse":O||r||P,"data-is-marrybaby":G},i?g.default.createElement(A,{"data-is-marrybaby":G},y?g.default.createElement("amp-img",{src:i,width:"76",height:"52"}):g.default.createElement("img",{src:i,className:"icon","data-is-mobile":s})):null,l?g.default.createElement("span",{className:"content","data-is-marrybaby":G,"data-is-mobile":s,dangerouslySetInnerHTML:{__html:B}}):null,g.default.createElement(L,e.__assign({role:"button",tabIndex:0},{on:'tap:sitewide-container.hide(),site-header.toggleClass(class="amp-closed")'},{"data-is-marrybaby":G,"data-vars-event-category":x,"data-vars-event-action":T,"data-vars-event-label":w||"","data-vars-tracking":k||"",className:"amp-close-banner",onClick:function(){N(!0),f?f():(d&&d(),h&&o.setCookie(h,"true"),c&&m&&m({type:u,payload:{type:c}}))},"data-is-mobile":s}),y?g.default.createElement("amp-img",{src:D,width:"24",height:"24"}):g.default.createElement("img",{src:D,className:"close-icon"})))},exports.StickySponsoredBy=function(e){var t=e.className,a=e.isMobile,o=e.isCollapsed,i=e.sponsoredType,l=e.sponsoredBy,r=e.isAmp,c=e.locale,d=P(),p=n.useState(!1),m=p[0],u=p[1];return g.default.createElement(Te,{className:t,onClick:function(){return u(!0)},"data-show-popup":m&&(!a||!o)&&!r,"data-align-left":l&&!!(null==l?void 0:l.logo),"data-is-amp":r||void 0},g.default.createElement(s.Container,{style:{position:"relative",padding:"0 16px"}},"content"===i?g.default.createElement(s.Text,{size:a?"p4":"p3",color:"#737373"},g.default.createElement("div",{className:"sticky-sponsored-info-icon"},r?g.default.createElement("amp-img",{height:"20",width:"20",style:{verticalAlign:"middle",marginLeft:"0.3rem",marginBottom:"0.1rem"},src:O}):g.default.createElement("img",{src:O,style:{width:20,height:20,verticalAlign:"middle",marginRight:"0.3rem",marginBottom:"0.1rem"}})),l&&(null==l?void 0:l.logo)?g.default.createElement(g.default.Fragment,null," ",d("articlePage.sponsoredContentBy")," ",g.default.createElement("img",{className:"sponsored-logo",src:(null==l?void 0:l.logo)||"",alt:"sponsored-logo"})):d("articlePage.sponsoredContent")):g.default.createElement(s.Text,{size:"p2",color:"#737373"},d("articlePage.sponsoredArticle"),g.default.createElement("div",{className:"sticky-sponsored-info-icon"},r?g.default.createElement("amp-img",{height:"20",width:"20",style:{verticalAlign:"middle",marginLeft:"0.3rem",marginBottom:"0.1rem"},src:O,on:"tap:sponsored-by.toggleClass(class='open')",tabIndex:0,role:"button"}):g.default.createElement("img",{src:O,style:{width:20,height:20,verticalAlign:"middle",marginLeft:"0.3rem",marginBottom:"0.1rem"}}))),!m||a&&o||r?null:g.default.createElement(we,{sponsoredBy:l,isAmp:r,onClose:function(){return u(!1)},locale:c})))},exports.defaultTranslation=N;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var t=require("./useTranslations-9f0f26bc.js");exports.getCareApiDomain=function(){return"https://".concat(t.isProduction?"health-care.":"service-health-care.","hellohealthgroup.com")},exports.getCurrentBaseUrl=function(o,e){var r="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,n=!r&&!t.isProduction;return r?"http://localhost:3000":"https://".concat(n?e?"fe.":"discover.":e?"www.":"").concat(t.domainLocales[e?"vi-VN_MB":o])},exports.getCurrentSsoUrl=function(o,e){return"https://".concat(t.isProduction?"id.":"staging-id.").concat(t.domainLocales[e?"vi-VN_MB":o])},exports.getDiscoverApiDomain=function(o){return"https://".concat(t.isProduction?"wp.":"staging.").concat(t.domainLocales[o])},exports.getTogetherApiDomain=function(){return"https://".concat(t.isProduction?"together.":"staging-together.","hellohealthgroup.com")};
|
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-43508f23.js"),r=require("./index-b356da51.js");require("react"),require("./index.styled-7332c0fb.js"),require("./tslib.es6-f7929e76.js"),require("styled-components"),require("./animation-c527178f.js"),require("./translationsContext-e97f3b58.js"),require("string-format"),require("./index-235d73eb.js"),require("./index-6e060556.js"),require("./useTranslations-9f0f26bc.js"),require("innertext"),require("react-range"),require("react-dom"),require("./index-f2ae348c.js"),require("lodash/debounce"),require("react-contenteditable"),require("./cookieHelper-612b90fa.js"),require("./number-87b13133.js"),require("lodash"),require("./lazyLoad-0454885d.js"),require("vanilla-lazyload"),require("date-fns"),require("./index-c8bfca9c.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("slugify"),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.DefaultComponentGlobalContextData=r.DefaultComponentGlobalContextData,Object.defineProperty(exports,"GlobalData",{enumerable:!0,get:function(){return r.GlobalData}}),exports.Loading=r.Loading,exports.PopupDoctor=r.PopupDoctor,exports.PopupExpert=r.PopupExpert,exports.PopupHospital=r.PopupHospital,exports.TogetherComponentGlobalContext=r.TogetherComponentGlobalContext,exports.TogetherComponentGlobalContextProvider=r.TogetherComponentGlobalContextProvider,exports.TogetherConstants=r.constants,exports.TogetherDataTransforms=r.dataTransform,exports.UserAvatar=r.UserAvatar;
|