@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
|
+
import n,{useRef as e,useEffect as t}from"react";import{j as i,l as o,M as a}from"./animation-0796d25e.js";import{createPortal as r}from"react-dom";import{ah as d,ai as l,aj as s,T as h,ak as p}from"./index.styled-4ae7aba3.js";import{e as c}from"./tslib.es6-6ae0d506.js";import m from"styled-components";var x,u,f,g=function(e){var t=e.open,i=void 0!==t&&t,o=e.onClickOutside;return n.createElement(d,{open:i,onClick:o})},v=function(a){var d=a.children,c=a.title,m=a.onClose,x=a.open,u=void 0!==x&&x,f=a.placement,v=void 0===f?"left":f,w=a.destroyOnClose,b=void 0!==w&&w,y=a.className,C=e();t((function(){return i(u),function(){return i(!1)}}),[u]);var k=function(){C.current.classList.add("slideOut"),setTimeout((function(){m()}),800)};return!u&&b?null:r(n.createElement(n.Fragment,null,n.createElement(l,{className:y,open:u},n.createElement(g,{open:u,onClickOutside:k}),n.createElement(s,{open:u,placement:v,ref:C,hasTitle:Boolean(c)},n.createElement("div",{className:"title"},c&&n.createElement(h,{size:"s2",type:"semiBold"},c),n.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:k},n.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"}))),n.createElement(p,{onClick:function(n){return n.stopPropagation()}},d&&(n.isValidElement(d)?d:"function"==typeof d?d({internalClose:k}):null))))),o())},w=m.div(x||(x=c(["\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})),b=m.div(u||(u=c(["\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"])),w,w,w,w,w,w,a.mbDown,w,a.mbDown,w,a.mbDown),y=m.div(f||(f=c(["\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}));export{v as D,b as S,y as a,w as b};
|
package/build/esm/navigation.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./tslib.es6-6ae0d506.js";import"react";import"./core-286f158c.js";import"./index.styled-
|
|
1
|
+
import"./tslib.es6-6ae0d506.js";import"react";import"./core-286f158c.js";import"./index.styled-4ae7aba3.js";export{N as NavigationV2,g as getNavMenuContent,d as getNavMenuContentWithCache}from"./index-136ab451.js";import"react-id-generator";import"./index-897f7837.js";import"date-fns";import"react-day-picker/DayPickerInput";import"lodash/debounce";import"react-dom";import"./index.styled-81673574.js";import"lodash";import"keen-slider/react";import"./animation-0796d25e.js";import"react-range";import"./index-7b032ad1.js";import"./useTranslations-e4f230ed.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./lazyLoad-d80d3fd1.js";import"./translationsContext-65bea19b.js";import"string-format";import"./routing-dd4412db.js";import"styled-components";import"smoothscroll-polyfill";import"./index-ab4eb1b2.js";import"./index-beb9db0b.js";import"./constants-a0a981fa.js";import"./index-13d8821f.js";import"./cookieHelper-0e8521c3.js";import"date-fns/locale/hi";import"date-fns/locale/ms";import"date-fns/locale/th";import"slugify";import"vanilla-lazyload";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,b as n,e as t}from"./tslib.es6-6ae0d506.js";import o,{useState as i,useRef as a,useEffect as l,createContext as r,useContext as s,useMemo as c,useCallback as p}from"react";import{h as d,i as m,a as h}from"./index-7b032ad1.js";import{throttle as u,debounce as g}from"lodash";import{s as y}from"./cookieHelper-0e8521c3.js";import E from"styled-components";import{A as v}from"./index-13d8821f.js";import{B as f,H as x}from"./index-ab4eb1b2.js";import{T as b,a as I,P as w,C as T}from"./index.styled-4ae7aba3.js";import{M as C,t as k}from"./animation-0796d25e.js";import O from"string-format";import"react-range";import"react-dom";var _,S,A,L={"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"},N={"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"}},M={"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"}},P={"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"}]},R=99,B=300,H=400,G=5,D=6,U=300,Y=function(t){var i,a,l,r,s,c,p,m,h,u,g,y,E,v,f,x,b,I,w,T=t.children,C=t.SEOData,k=void 0===C?{}:C,O=t.isAmp,_=void 0!==O&&O,S=t.locale,A=void 0===S?"vi-VN":S,M=t.routerPathname,R=t.routerQuery,B=t.nextHead,H=t.siteType,G=t.seoCustom,D=t.userId,U=t.forcedCanonicalUrl,Y=t.usingDefaultHead,V="production"===process.env.NEXT_PUBLIC_DEPLOY_ENV,j=k.totalPages,z=k.currentPage,F=k.SEOTitle,Z=void 0===F?"":F,W=k.SEODescription,K=void 0===W?"":W,X=k.SEOImage,Q=k.seoType,J=k.SEOImageWidth,q=k.SEOImageHeight,$=k.customMetaData,ee=void 0===$?[]:$,ne=k.isIndexable,te=void 0===ne||ne,oe=k.hasNoCanonical,ie=void 0!==oe&&oe,ae=te&&V?"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1":"noindex",le=process.env.NEXT_PUBLIC_BASE_API_URL,re=k.canonicalUrl||M;Object.keys(R).forEach((function(e){var n=R[e];n&&Array.isArray(n)&&(re=re.replace("[...".concat(e,"]"),n.join("/")))}));var se,ce=A||"en-PH",pe="helloSites"===H?L[ce]:"www.marrybaby.vn",de=re.endsWith("/")?"":"/";if(k.apiMetaData&&"string"==typeof k.apiMetaData){var me=null===(i=k.apiMetaData)||void 0===i?void 0:i.match(/<title.*?>(.*)<\/title>/),he=" - Page ".concat(z," of ").concat(j),ue=z&&1!==z&&me?k.apiMetaData.replace(me[0],me[0].includes("-")?me[0].replace("-",he+" - "):"<title>".concat(me[1].concat(he),"</title>")).replace('<link rel="canonical" href="https://'.concat(pe).concat(re).concat(de,'" />'),'<link rel="canonical" href="https://'.concat(pe).concat(re).concat(de,"?page=").concat(z,'" />')):k.apiMetaData,ge=(se=d(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(!ge){var ye="https://".concat(pe,"/images/").concat(A,".png");se=e(e([],se,!0),[o.createElement("meta",{key:"og:image",property:"og:image",content:(null===(a=k.openGraph)||void 0===a?void 0:a.image)||ye||""}),o.createElement("meta",{key:"og:image:secure_url",property:"og:image:secure_url",content:(null===(l=k.openGraph)||void 0===l?void 0:l.image)||ye}),o.createElement("meta",{key:"og:image:width",property:"og:image:width",content:(null===(r=k.openGraph)||void 0===r?void 0:r.imageWidth)&&String(null===(s=k.openGraph)||void 0===s?void 0:s.imageWidth)||"1200"}),o.createElement("meta",{key:"og:image:height",property:"og:image:height",content:(null===(c=k.openGraph)||void 0===c?void 0:c.imageHeight)&&String(null===(p=k.openGraph)||void 0===p?void 0:p.imageHeight)||"630"})],!1)}}var Ee="https://".concat(pe,"/images/").concat(A,".png");return o.createElement(o.Fragment,null,B&&Y&&o.createElement(B,null,o.createElement("link",{rel:"preconnect",href:"https://fonts.gstatic.com"}),"marryBaby"===H&&o.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Inter&family=Krub:wght@600&display=swap",rel:"stylesheet"}),"km-KH"===A?o.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Battambang:wght@400;700&display=swap",rel:"stylesheet"}):"id-ID"===A||"ms-MY"===A?o.createElement(o.Fragment,null):o.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"}),o.createElement("link",{rel:"preconnect",href:le}),o.createElement("meta",{charSet:"UTF-8"}),!_&&o.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"}),o.createElement("meta",{name:"google",content:"notranslate"}),o.createElement("meta",{name:"robots",content:ae}),o.createElement("meta",{property:"fb:app_id",content:"653713035016537"}),ee.map((function(e,t){return o.createElement("meta",n({key:t},e))})),o.createElement("meta",{name:"theme-color",content:"helloSites"===H?"#2c87f3":"#e85388"}),o.createElement("meta",{name:"page_type",content:"Home"}),o.createElement("meta",{name:"page_platform",content:"WEB"}),o.createElement("meta",{name:"page_language",content:ce}),o.createElement("meta",{name:"ahrefs-site-verification",content:"46e7521a2b89a1013149c4685bbe02a1d36a4732fef98655142b829bc87cba4d"}),_&&o.createElement(o.Fragment,null,o.createElement("script",{async:!0,"custom-element":"amp-analytics",src:"https://cdn.ampproject.org/v0/amp-analytics-0.1.js"}),o.createElement("script",{async:!0,"custom-element":"amp-fx-collection",src:"https://cdn.ampproject.org/v0/amp-fx-collection-0.1.js"}),o.createElement("script",{async:!0,"custom-element":"amp-ad",src:"https://cdn.ampproject.org/v0/amp-ad-0.1.js"}),o.createElement("script",{async:!0,"custom-element":"amp-next-page",src:"https://cdn.ampproject.org/v0/amp-next-page-1.0.js"}),o.createElement("script",{async:!0,"custom-element":"amp-sticky-ad",src:"https://cdn.ampproject.org/v0/amp-sticky-ad-1.0.js"}),o.createElement("script",{async:!0,"custom-element":"amp-social-share",src:"https://cdn.ampproject.org/v0/amp-social-share-0.1.js"}),o.createElement("script",{async:!0,"custom-element":"amp-bind",src:"https://cdn.ampproject.org/v0/amp-bind-0.1.js"})),!se&&o.createElement(o.Fragment,null,"helloSites"===H?o.createElement("title",null,G?Z:Z+" - "+(null===(m=N[A])||void 0===m?void 0:m.SITE_NAME)):o.createElement("title",null,Z),!ie&&o.createElement("link",{rel:"canonical",href:"https://".concat(pe).concat(re)}),o.createElement("meta",{name:"description",content:K||(null===(h=k.openGraph)||void 0===h?void 0:h.description)}),k.schemaData&&o.createElement("script",{type:"application/ld+json",className:"yoast-schema-graph",dangerouslySetInnerHTML:{__html:k.schemaData}}),o.createElement("meta",{property:"og:locale",content:A}),o.createElement("meta",{property:"og:type",content:Q||"website"}),o.createElement("meta",{property:"og:title",content:(null===(u=k.openGraph)||void 0===u?void 0:u.title)||Z}),o.createElement("meta",{property:"og:description",content:(null===(g=k.openGraph)||void 0===g?void 0:g.description)||K}),o.createElement("meta",{property:"og:url",content:"https://".concat(pe).concat(re)}),o.createElement("meta",{property:"og:site_name",content:"https://".concat(pe)}),o.createElement("meta",{property:"og:image",content:(null===(y=k.openGraph)||void 0===y?void 0:y.image)||X||Ee||""}),o.createElement("meta",{property:"og:image:secure_url",content:(null===(E=k.openGraph)||void 0===E?void 0:E.image)||X||Ee}),o.createElement("meta",{property:"og:image:width",content:(null===(v=k.openGraph)||void 0===v?void 0:v.imageWidth)&&String(null===(f=k.openGraph)||void 0===f?void 0:f.imageWidth)||J&&String(J)||"1200"}),o.createElement("meta",{property:"og:image:height",content:(null===(x=k.openGraph)||void 0===x?void 0:x.imageHeight)&&String(null===(b=k.openGraph)||void 0===b?void 0:b.imageHeight)||q&&String(q)||"630"}),o.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),o.createElement("meta",{name:"twitter:title",content:(null===(I=k.twitter)||void 0===I?void 0:I.title)||Z}),o.createElement("meta",{name:"twitter:description",content:K}),o.createElement("meta",{name:"twitter:image",content:(null===(w=k.twitter)||void 0===w?void 0:w.image)||X})),("helloSites"===H?P[ce]||[]:P.marryBaby).map((function(e,n){return"link"===e.type?o.createElement("link",{key:"favicon-".concat(n),rel:e.rel,href:e.href,sizes:e.sizes}):"meta"===e.type?o.createElement("meta",{key:n,name:e.name,content:e.content}):null})),Array.isArray(se)&&U?se.filter((function(e){return"canonical"!==e.props.name&&"canonical"!==e.props.rel})):se,U&&o.createElement("link",{rel:"canonical",href:U}),!k.hasNoAmp&&"vi-VN"!==A&&o.createElement("link",{rel:"amphtml",href:"https://".concat(pe).concat(re).concat(de,"?amp=1")}),D&&"undefined"!=typeof window?o.createElement("script",{dangerouslySetInnerHTML:{__html:"window.dataLayer = window.dataLayer || []; window.dataLayer.push({'userID': '".concat(D,"'});")}}):null),B&&!Y&&o.createElement(B,null),T)},V="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",j=E.div(_||(_=t(["\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})),z=E.div(S||(S=t(["\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"]))),F=E.div(A||(A=t(["\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})),Z=function(e){var t=e.icon,r=e.content,s=e.isCollapsed,c=e.isMobile,p=e.type,d=e.onClose,m=e.setBannerClosed,h=e.dispatch,g=e.dispatchActionType,E=e.cookieName,v=e._overrideCloseHandler,f=e.isAmp,x=e.siteType,b=e.dataEventCategory,I=void 0===b?"Header Banner":b,w=e.dataEventAction,T=void 0===w?"Close Click":w,C=e.dataEventLabel,k=void 0===C?"":C,O=e.dataTracking,_=void 0===O?"true":O,S=i(!1),A=S[0],L=S[1],N=i(!1),M=N[0],P=N[1],R=r;f&&(R=R.replace("data-event","data-vars-event").replace('data-vars-event-category="'.concat(I,'"'),'data-vars-event-category="'.concat(I,'" data-vars-tracking="').concat(_,'"')));var B=a(64);l((function(){var e=u((function(){window.scrollY<B.current?P(!1):window.scrollY>64&&P(!0),B.current=window.scrollY}),300);return window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e)}}),[]);var H="marryBaby"===x,G=H?"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 l((function(){m&&m(A||s||M)}),[m,A,s,M]),o.createElement(j,{"data-is-mobile":c,"data-is-collapse":A||s||M,"data-is-marrybaby":H},t?o.createElement(z,{"data-is-marrybaby":H},f?o.createElement("amp-img",{src:t,width:"76",height:"52"}):o.createElement("img",{src:t,className:"icon","data-is-mobile":c})):null,r?o.createElement("span",{className:"content","data-is-marrybaby":H,"data-is-mobile":c,dangerouslySetInnerHTML:{__html:R}}):null,o.createElement(F,n({role:"button",tabIndex:0},{on:'tap:sitewide-container.hide(),site-header.toggleClass(class="amp-closed")'},{"data-is-marrybaby":H,"data-vars-event-category":I,"data-vars-event-action":T,"data-vars-event-label":k||"","data-vars-tracking":_||"",className:"amp-close-banner",onClick:function(){L(!0),v?v():(d&&d(),E&&y(E,"true"),p&&h&&h({type:g,payload:{type:p}}))},"data-is-mobile":c}),f?o.createElement("amp-img",{src:G,width:"24",height:"24"}):o.createElement("img",{src:G,className:"close-icon"})))},W={"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"},K=r({}),X=function(){var e=s(K);return function(n,t){var o=(e.translation||{})[n]||W[n];return o?t?O(o,t):o:function(){throw Error("missing translation "+n)}()}},Q=E.header(pe||(pe=t(["\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}),R,B,H),J=E.header(de||(de=t(["\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"]))),q=E.div(me||(me=t(["\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"]))),$=E.div(he||(he=t(["\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}),G,D,U),ee=E.div(ue||(ue=t(["\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})),ne=E.div(ge||(ge=t(["\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"]))),te=E.div(ye||(ye=t(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),oe=E.div(Ee||(Ee=t(["\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})),ie=E.div(ve||(ve=t(["\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})),ae=E.div(fe||(fe=t(["\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"]))),le=E.div(xe||(xe=t(["\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"]))),re=E.div(be||(be=t(["\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"]))),se=E.div(Ie||(Ie=t(["\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})),ce=E.div(we||(we=t(["\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.mbDown);E.div(Te||(Te=t(["\n display: block;\n"],["\n display: block;\n"]))),E.div(Ce||(Ce=t([""],[""]))),E.div(ke||(ke=t(["\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 pe,de,me,he,ue,ge,ye,Ee,ve,fe,xe,be,Ie,we,Te,Ce,ke,Oe,_e=E.div(Oe||(Oe=t(["\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 Se(){return o.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M14.5 17L9.5 12L14.5 7",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"}))}function Ae(){return o.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"}))}function Le(e){var n=e.siteType,t=e.type;return"helloSites"===n?o.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}):o.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.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 Ne(e){var t,i,a=e.type,l=e.isStatic,r=e.isAmp,s=e.isDisplayed,c=e.siteType,p=e.isCollapsed,d=e.sitewideBannerShown,u=e.sitewideBanner,g=e.sitewideBannerClosed,y=e.setSitewideBannerClosed,E=e.isMobile,v=e.onMenuClick,T=e.menu,C=e.isSearchIconDisplayed,k=e.statics,O=k.DISCOVER_URL_FE,_=k.SSO_URL,S=k.HOME_PAGE_URL,A=k.CARE_URL_FE,L=e.basePath,N=e.languageMenu,M=e.enabledExperimentalCareHeader,P=e.onCareHeaderClick,R=e.logoType,B=e.locale,H=e.isInit,G=e.title,D=e.sponsorComponent,U=e.currentUrl,Y=e.userInfo,V=e.currentPopupType,j=e.avatar,z=e.profileMenu,F=e.isLoginButtonDisplayed,Z=e.goToLogin,W=e.isSearchBarDisplay,K=e.searchPlaceholder,ee=e.onSearchValueChanged,ne=e.keyPressed,te=X(),oe=!!D,ie=!!(null===(i=null===(t=null==D?void 0:D.props)||void 0===t?void 0:t.sponsoredBy)||void 0===i?void 0:i.length),ae=d&&!!u&&!g,re=Me({isSiteWide:!!u&&!g,isShowingSiteWideBanner:ae,isSponsored:oe,hasSponsoredBanners:ie,isMobile:!0}),pe=re.headerRef,de=re.headerHeight;return o.createElement(o.Fragment,null,o.createElement(Q,{"data-header-type":a,"data-collapsed":!l&&p,"data-with-search-input":"popup-sub-level"!==a,"data-is-displayed":s,"data-is-amp":r,"data-sponsored":oe,"data-site-type":c,"data-sitewide-banner-shown":ae,id:"site-header",ref:pe},u?o.isValidElement(u)?o.cloneElement(u,{isCollapsed:p,setBannerClosed:y,isAmp:r,isMobile:E}):u:null,o.createElement("div",{style:n(n({position:"relative",height:64,display:"flex",alignItems:"center",justifyContent:"helloSites"===c?"center":"flex-start",background:"white"},"marryBaby"===c?{paddingLeft:66}:{}),void 0!==N||M?{paddingLeft:M?48:64,gap:24,justifyContent:"unset"}:{})},o.createElement(J,null,o.createElement(q,{on:"tap:discover-amp-sidebar",role:"button",className:"menu-handler",tabIndex:0},o.createElement("div",{onClick:function(){return null==v?void 0:v("categories")}},"home"===a&&o.createElement("a",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},o.createElement(Le,{siteType:c,type:a})),"popup"===a&&o.createElement(Ae,null),"popup-sub-level"===a&&o.createElement(Se,null)),T),C&&"helloSites"===c&&"home"===a&&o.createElement(q,{style:{paddingRight:16}},o.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click",style:{paddingRight:16,paddingTop:8,position:"relative"},href:"".concat(S,"/search?s=&page=1")},o.createElement("img",{src:"".concat(L,"/images/search.svg"),style:{width:"24px",height:"24px"},alt:a}),o.createElement("input",{style:{width:"32px",height:"32px",position:"absolute",left:"-2px",bottom:"0",opacity:0,zIndex:1e4}})))),"popup"!==a&&o.createElement(ce,{"data-is-profile":!0,className:H?"":"menu-handler-health-tools"},o.createElement("div",{className:"menu-handler-item"},C&&"marryBaby"===c&&"home"===a&&o.createElement(q,{style:{justifySelf:"flex-end"}},o.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click",style:{display:"flex"},href:"".concat(O,"/search?s=&page=1")},o.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.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"})),o.createElement("input",{style:{width:"32px",height:"32px",position:"absolute",left:"-2px",bottom:"0",opacity:0}}))),M&&o.createElement(o.Fragment,null,P?o.createElement(f,{size:"sm",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:U,onClick:function(e){return P(e)}},te("login.booking")):o.createElement("a",{href:A,className:"care-button"},o.createElement(f,{size:"sm",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:U},te("login.booking")))),(null==Y?void 0:Y.id)?o.createElement(le,{style:{position:"relative"}},o.createElement("div",{onClick:function(){return v&&v("profile")}},"profile"===V?o.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})):j),z):r?o.createElement("a",{"data-vars-event-category":"Sign Up","data-vars-event-action":"Button Click","data-vars-event-label":U,href:"".concat(_,"?returnUrl=").concat(U.replace("?amp=1","")),style:{textDecoration:"none"}},"vi-VN"===B?o.createElement(_e,{onClick:Z},o.createElement("img",{src:m,className:"avatar",alt:"avatar"})):o.createElement(f,{className:"login-btn-mobile",size:"sm",color:"secondary",onClick:Z},te("navigation.loginJoin"))):F&&o.createElement("a",{"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":U},M?o.createElement(_e,{onClick:Z},o.createElement("img",{src:m,className:"avatar",alt:"avatar"})):"helloSites"===c?o.createElement(f,{className:"login-btn-mobile",size:"sm",color:"secondary",onClick:Z},te("navigation.loginJoin")):o.createElement("div",{className:"login-btn-mobile",onClick:Z,style:{paddingLeft:16}},o.createElement(b,{size:"p3"},te("navigation.loginJoin")))))),("home"===a||"popup"===a)&&o.createElement("a",{href:S||""},o.createElement(I,{type:R,height:"27px",width:"121px",style:{display:"flex"},badge:"id-ID"===B?o.createElement("img",{src:h,style:{width:56,height:23,maxWidth:56},width:"56",height:"23"}):void 0})),void 0!==N&&o.createElement(se,{"data-is-active":!0,className:H?"":"menu-handler-language",onClick:function(){v&&v("language")}},N),G&&o.createElement(x,{className:"top-bar-header",tag:"h5"},G)),D?o.isValidElement(D)?o.cloneElement(D,{isCollapsed:p,locale:B,isMobile:E,isAmp:r}):D:null),W?o.createElement($,{"data-header-type":a,"data-is-displayed":s,"data-sitewide-banner-shown":d&&!!u},o.createElement(w,{style:{minHeight:"auto",minWidth:"100%",padding:"0 16px"},name:"search-input-"+a+(H?"":"-temp"),size:"md",placeholder:K,onChange:ee,onKeyPress:ne,type:"search",autoFocus:!1,displayIcon:o.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},o.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.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"}),o.createElement("path",{d:"M20 20L16 16",stroke:"#8C8C8C",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))})):o.createElement(o.Fragment,null,!r&&o.createElement("div",{style:{height:de}})))}var Me=function(e){var n=e.hasSponsoredBanners,t=e.isSiteWide,o=e.isSponsored,r=e.isShowingSiteWideBanner,s=e.isMobile,d=a(null),m=i(0),h=m[0],u=m[1],y=p(g((function(){var e,n=(null===(e=d.current)||void 0===e?void 0:e.clientHeight)||0;window.scrollY<=n+30&&u(n)}),100),[]);l((function(){return window.addEventListener("resize",y),window.addEventListener("scroll",y),function(){window.removeEventListener("resize",y),window.removeEventListener("scroll",y)}}),[]),l((function(){y()}),[t,r,o,n,d.current]);var E=c((function(){var e=s?64:69;return r&&(e+=64),o&&(e+=40),e}),[s,r,o]);return{headerHeight:h||E,headerRef:d}},Pe=function(e){var n,t,r,s=e.siteType,d=e.basePath,g=e.statics,y=e.currentPopupType,E=void 0===y?"none":y,x=e.isDisplayed,b=void 0===x||x,C=e.isSearchBarDisplay,O=void 0===C||C,_=e.searchPlaceholder,S=void 0===_?"":_,A=e.openPopup,M=e.onTopBarAppears,P=e.onSearchChange,R=e.onSearchKeyPress,B=e.menu,H=e.isAmp,G=e.profileMenu,D=e.isMobile,U=void 0!==D&&D,Y=e.isLoginButtonDisplayed,V=e.title,j=e.type,z=void 0===j?"home":j,F=e.onMenuClick,Z=e.isStatic,W=void 0!==Z&&Z,K=e.routerAsPath,Q=e.locale,J=e.userInfo,q=e.marryBaby,$=(void 0===q?{tone:"white"}:q).tone,pe=e.menuItems,de=void 0===pe?[]:pe,me=e.isInit,he=e.sitewideBanner,ue=e.sitewideBannerShown,ge=void 0===ue||ue,ye=e.sponsorComponent,Ee=e.languageMenu,ve=e.isSearchIconDisplayed,fe=void 0!==ve&&ve,xe=e.enabledExperimentalCareHeader,be=e.onCareHeaderClick,Ie=g.SSO_URL,we=g.HOME_PAGE_URL,Te=g.CARE_URL_FE,Ce=X(),ke=!!ye,Oe=i(!1),Se=Oe[0],Ae=Oe[1],Le=i(!1),Pe=Le[0],Re=Le[1],Be=i(!1),He=Be[0],Ge=Be[1],De=i(me||!1),Ue=De[0],Ye=De[1],Ve=a(47),je=a(!1),ze=a(!1),Fe="helloSites"===s?"https://".concat(L[Q]).concat(K):"https://www.marrybaby.vn".concat(K),Ze=c((function(){var e=(null==J?void 0:J.name)||(null==J?void 0:J.username);return o.createElement(v,{type:"rounded",size:"small",avatarUrl:null==J?void 0:J.avatar,firstLetter:e&&e.length?e[0].toUpperCase():"A",backgroundColor:"marryBaby"===s?k.mbColors.pink:k.colors.secondaryBase,isAmp:H})}),[null==J?void 0:J.username,null==J?void 0:J.name,null==J?void 0:J.avatar]),We=function(){var e=window.location.href;window.location.href=Ie?"".concat(Ie,"?returnUrl=").concat(e):e},Ke="helloSites"===s?null===(n=N[Q])||void 0===n?void 0:n.LOGO_TYPE:s,Xe="undefined"!=typeof window,Qe=function(e){null==P||P(e)},Je=p(u((function(){var e;if("home"===z){var n=window,t=null===(e=document.querySelector(".sticky-container"))||void 0===e?void 0:e.clientHeight;Xe&&n&&(n.scrollY>Ve.current&&n.scrollY>64&&!je.current&&(je.current=!0,Ae(!0)),n.scrollY<Ve.current&&je.current&&(je.current=!1,Ae(!1),t&&n.scrollY),n.scrollY<Ve.current&&t&&n.scrollY,O?(n.scrollY<64&&n.scrollY<Ve.current&&ze.current&&(ze.current=!1),n.scrollY>8&&n.scrollY>Ve.current&&!ze.current&&(ze.current=!0)):ze.current=!0,n.scrollY>=0&&(Ve.current=n.scrollY))}}),300),[]);l((function(){null==M||M(!Se)}),[Se]);var qe=function(e){var n,t;R&&R(e,null!==(t=null===(n=document.getElementById("search-input-"+z))||void 0===n?void 0:n.value)&&void 0!==t?t:"")};l((function(){U&&Je()}),[]),l((function(){return window.addEventListener("scroll",Je,{passive:!0}),function(){window.removeEventListener("scroll",Je)}}),[]),l((function(){Ye(!0)}),[]),l((function(){"undefined"!=typeof window&&Ge(Boolean(He))}),[]);var $e=o.createElement(o.Fragment,null,de.find((function(e){return"categories"===e.id}))&&o.createElement(se,{"data-is-active":"categories"===E,className:Ue?"":"menu-handler-categories",tabIndex:0,onClick:function(){null==A||A("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)}},o.createElement("div",{className:"menu-handler-item"},Ce("home.navigator.menuItem.discover"),o.createElement(re,null,o.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),"categories"===E&&o.createElement("div",null,B)),de.find((function(e){return"healthTools"===e.id}))&&o.createElement(se,{"data-is-active":"tools"===E,className:Ue?"":"menu-handler-health-tools",tabIndex:0},o.createElement("div",{className:"menu-handler-item",onClick:function(){A&&A("tools")}},Ce("home.navigator.menuItem.healthTools"),o.createElement(re,null,o.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),"tools"===E&&o.createElement("div",null,B)),de.find((function(e){return"care"===e.id}))&&!xe&&o.createElement(se,{"data-is-active":"care"===E,className:Ue?"":"menu-handler-care-specialties",tabIndex:0},o.createElement("div",{className:"menu-handler-item",onClick:function(){A&&A("care")}},Ce("home.navigator.menuItem.helloCare"),o.createElement(re,null,o.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),"care"===E&&o.createElement("div",null,B)),de.find((function(e){return"together"===e.id}))&&o.createElement(se,{"data-is-active":"communities"===E,className:Ue?"":"menu-handler-communities",tabIndex:0},o.createElement("div",{className:"menu-handler-item",onClick:function(){A&&A("communities")}},Ce("home.navigator.menuItem.helloTogether"),o.createElement(re,null,o.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),"communities"===E&&o.createElement("div",null,B))),en=!!(null===(r=null===(t=null==ye?void 0:ye.props)||void 0===t?void 0:t.sponsoredBy)||void 0===r?void 0:r.length),nn=ge&&!!he&&!Pe,tn=Me({isSiteWide:!!he&&!Pe,isShowingSiteWideBanner:nn,isSponsored:ke,hasSponsoredBanners:en}),on=tn.headerRef,an=tn.headerHeight;return U?o.createElement(Ne,{type:z,isStatic:W,isAmp:H,isDisplayed:b,siteType:s,isCollapsed:Se,sitewideBannerShown:ge,sitewideBanner:he,sitewideBannerClosed:Pe,setSitewideBannerClosed:Re,isMobile:U,onMenuClick:F,menu:B,isSearchIconDisplayed:fe,statics:g,basePath:d,languageMenu:Ee,enabledExperimentalCareHeader:xe,logoType:Ke,locale:Q,isInit:Ue,title:V,sponsorComponent:ye,currentUrl:Fe,userInfo:J,currentPopupType:E,avatar:Ze,profileMenu:G,isLoginButtonDisplayed:Y,goToLogin:We,isSearchBarDisplay:O,searchPlaceholder:S,onSearchValueChanged:Qe,keyPressed:qe}):o.createElement(o.Fragment,null,o.createElement("div",{style:{height:an}}),o.createElement(ee,{ref:on,"data-site-type":s,"data-marry-baby-tone":"marryBaby"===s&&$,"data-sponsored":ke,"data-sitewide-banner-shown":nn},he?o.isValidElement(he)?o.cloneElement(he,{isCollapsed:Se,setBannerClosed:Re}):he:null,o.createElement(T,{style:{height:69,padding:"0 16px"},type:s},o.createElement(ne,null,o.createElement(te,null,o.createElement("a",{href:we},o.createElement(oe,{"data-is-having-border":"helloSites"===s},o.createElement(I,{style:{display:"flex"},type:Ke,height:"27px",width:"121px",badge:"id-ID"===Q?o.createElement("img",{src:h,style:{width:56,height:23,maxWidth:56},width:"56",height:"23"}):void 0}))),O&&"helloSites"===s&&o.createElement(ie,{"data-header-type":z,"data-is-displayed":b,"data-sitewide-banner-shown":ge&&!!he},o.createElement(w,{style:{minHeight:"32px",maxHeight:"32px",minWidth:"100%",backgroundColor:k.colors.white},name:"search-input-"+z+(Ue?"":"-temp"),autoFocus:!1,size:"sm",placeholder:S,onChange:Qe,onKeyPress:qe,displayIcon:o.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click",style:{width:"24px",height:"24px",transform:"scale(0.8)"}},o.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.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"===s&&o.createElement("div",{style:{marginLeft:28,display:"flex"}},$e)),o.createElement(ae,null,"helloSites"===s&&$e,O&&"marryBaby"===s&&o.createElement(ie,{"data-header-type":z,"data-is-displayed":b,"data-is-styled-borderless":"marryBaby"===s,"data-marry-baby-theme":$},o.createElement(w,{style:{minHeight:"40px",maxHeight:"40px",minWidth:"100%",borderRadius:16},name:"search-input-"+z+(Ue?"":"-temp"),autoFocus:!1,size:"sm",placeholder:S,onChange:Qe,onKeyPress:qe,displayIcon:o.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click",style:{width:"24px",height:"24px"}},o.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.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!==Ee&&o.createElement(se,{"data-is-active":!0,className:Ue?"":"menu-handler-language",onClick:function(){A&&A("language")}},Ee),o.createElement(ce,{"data-is-active":"profile"===E,"data-is-profile":!0,className:Ue?"":"menu-handler-health-tools",tabIndex:0},o.createElement("div",{className:"menu-handler-item"},xe&&o.createElement(o.Fragment,null,be?o.createElement(f,{className:"login-btn-mobile",size:"sm",color:"secondary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:Fe,onClick:function(e){return be(e)}},Ce("login.booking")):o.createElement("a",{href:Te,className:"care-button no-replace-click"},o.createElement(f,{className:"login-btn-mobile",size:"sm",color:"secondary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:Fe},Ce("login.booking")))),(null==J?void 0:J.id)?o.createElement(le,{style:{position:"relative"}},o.createElement("div",{onClick:function(){return A&&A("profile")}},Ze),G):Y&&o.createElement("a",{"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":Fe},xe?o.createElement(_e,{onClick:We},o.createElement("img",{src:m,className:"avatar",alt:"avatar"})):"helloSites"===s?o.createElement(f,{size:"md",color:"secondary",onClick:We},Ce("navigation.loginJoin")):o.createElement(f,{size:"md",color:"secondary",theme:"marryBaby",onClick:We},Ce("navigation.loginJoin")))))))),ye?o.isValidElement(ye)?o.cloneElement(ye,{isCollapsed:Se,locale:Q,isMobile:U,isAmp:H}):ye:null))};E.div(Re||(Re=t(["\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 Re,Be,He,Ge=E.div(Be||(Be=t(["\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.mbUp),De=E.div(He||(He=t(["\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.mbDown,C.mbUp),Ue=function(e){var n=e.className,t=e.isMobile,a=e.isCollapsed,l=e.sponsoredType,r=e.sponsoredBy,s=e.isAmp,c=e.locale,p=X(),d=i(!1),m=d[0],h=d[1];return o.createElement(Ge,{className:n,onClick:function(){return h(!0)},"data-show-popup":m&&(!t||!a)&&!s,"data-align-left":r&&!!(null==r?void 0:r.logo),"data-is-amp":s||void 0},o.createElement(T,{style:{position:"relative",padding:"0 16px"}},"content"===l?o.createElement(b,{size:t?"p4":"p3",color:"#737373"},o.createElement("div",{className:"sticky-sponsored-info-icon"},s?o.createElement("amp-img",{height:"20",width:"20",style:{verticalAlign:"middle",marginLeft:"0.3rem",marginBottom:"0.1rem"},src:V}):o.createElement("img",{src:V,style:{width:20,height:20,verticalAlign:"middle",marginRight:"0.3rem",marginBottom:"0.1rem"}})),r&&(null==r?void 0:r.logo)?o.createElement(o.Fragment,null," ",p("articlePage.sponsoredContentBy")," ",o.createElement("img",{className:"sponsored-logo",src:(null==r?void 0:r.logo)||"",alt:"sponsored-logo"})):p("articlePage.sponsoredContent")):o.createElement(b,{size:"p2",color:"#737373"},p("articlePage.sponsoredArticle"),o.createElement("div",{className:"sticky-sponsored-info-icon"},s?o.createElement("amp-img",{height:"20",width:"20",style:{verticalAlign:"middle",marginLeft:"0.3rem",marginBottom:"0.1rem"},src:V,on:"tap:sponsored-by.toggleClass(class='open')",tabIndex:0,role:"button"}):o.createElement("img",{src:V,style:{width:20,height:20,verticalAlign:"middle",marginLeft:"0.3rem",marginBottom:"0.1rem"}}))),!m||t&&a||s?null:o.createElement(Ye,{sponsoredBy:r,isAmp:s,onClose:function(){return h(!1)},locale:c})))},Ye=function(e){var n=e.sponsoredBy,t=e.isAmp,i=e.onClose,a=e.locale||"en-PH",l=X();return o.createElement(De,{"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},o.createElement(b,{size:"p3",style:{marginBottom:"1rem"}},l("articlePage.sponsoredByStickyPopup.content")),o.createElement("div",{className:"button-container",onClick:function(e){e.stopPropagation()}},o.createElement(f,{size:"md",color:"secondary",onClick:i,isAmp:t,on:"tap:sponsored-by.toggleClass(class='open')"},l("articlePage.sponsoredByStickyPopup.close")),o.createElement(f,{size:"md",onClick:function(){window.location.href="/static".concat(M[a].ADVERTISING_SPONSOR_POLICY)},isAmp:t,on:"tap:AMP.navigateTo(url='/static".concat(M[a].ADVERTISING_SPONSOR_POLICY,"')")},l("articlePage.sponsoredByStickyPopup.policies"))))};export{Y as Layout,Pe as NavigationBar,Z as SiteWide,Ue as StickySponsoredBy,W as defaultTranslation};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as t,i as a}from"./useTranslations-e4f230ed.js";var c=function(c,e){var n="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV;return n?"http://localhost:3000":"https://".concat(!n&&!a?e?"fe.":"discover.":e?"www.":"").concat(t[e?"vi-VN_MB":c])},e=function(c,e){return"https://".concat(a?"id.":"staging-id.").concat(t[e?"vi-VN_MB":c])},n=function(){return"https://".concat(a?"together.":"staging-together.","hellohealthgroup.com")},o=function(c){return"https://".concat(a?"wp.":"staging.").concat(t[c])},r=function(){return"https://".concat(a?"health-care.":"service-health-care.","hellohealthgroup.com")};export{e as a,n as b,o as c,r as d,c as g};
|
package/build/esm/together.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as CardLink,q as CardPost,r as CardPostPopoverMore,b as CardReactions,s as CardReply,v as CardReplyPopover,f as CreateNewPostContent,g as CreatePostDescription,h as CreatePostTitle,n as ImagePreviewPopup,I as InputCommentBar,d as LabelPin,L as LabelSortPin,e as LabelSorting,w as PopoverMenu,P as PopupDanger,j as PopupFrame,m as PostContent,p as PostImagePreview,o as PostSingleImageViewPopup,l as ShareBox,S as SharePopup,k as SubmitReportForm,c as TagTopic,T as TogetherAuthConfigContext,a as TogetherAuthConfigContextProvider,t as TogetherTypes,i as TopicSelectList,u as useTogetherAuthRequiredAction}from"./types-
|
|
1
|
+
export{C as CardLink,q as CardPost,r as CardPostPopoverMore,b as CardReactions,s as CardReply,v as CardReplyPopover,f as CreateNewPostContent,g as CreatePostDescription,h as CreatePostTitle,n as ImagePreviewPopup,I as InputCommentBar,d as LabelPin,L as LabelSortPin,e as LabelSorting,w as PopoverMenu,P as PopupDanger,j as PopupFrame,m as PostContent,p as PostImagePreview,o as PostSingleImageViewPopup,l as ShareBox,S as SharePopup,k as SubmitReportForm,c as TagTopic,T as TogetherAuthConfigContext,a as TogetherAuthConfigContextProvider,t as TogetherTypes,i as TopicSelectList,u as useTogetherAuthRequiredAction}from"./types-daa67348.js";export{C as CardAuthor,D as DefaultComponentGlobalContextData,G as GlobalData,L as Loading,b as PopupDoctor,a as PopupExpert,e as PopupHospital,T as TogetherComponentGlobalContext,f as TogetherComponentGlobalContextProvider,c as TogetherConstants,d as TogetherDataTransforms,U as UserAvatar}from"./index-897f7837.js";import"react";import"./index.styled-4ae7aba3.js";import"./tslib.es6-6ae0d506.js";import"styled-components";import"./animation-0796d25e.js";import"./translationsContext-65bea19b.js";import"string-format";import"./index-ab4eb1b2.js";import"./index-e68bd90f.js";import"./useTranslations-e4f230ed.js";import"innertext";import"react-range";import"react-dom";import"./index-beb9db0b.js";import"lodash/debounce";import"react-contenteditable";import"./cookieHelper-0e8521c3.js";import"./number-3cb24023.js";import"lodash";import"./lazyLoad-d80d3fd1.js";import"vanilla-lazyload";import"date-fns";import"./index-13d8821f.js";import"date-fns/locale/en-US";import"date-fns/locale/hi";import"date-fns/locale/id";import"date-fns/locale/ms";import"date-fns/locale/th";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"slugify";import"react-id-generator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e,c as n,b as t,_ as o,a as i}from"./tslib.es6-6ae0d506.js";import a,{useMemo as r,useState as c,useCallback as l,useEffect as s,useRef as u,useReducer as d}from"react";import{I as p,L as h}from"./constants-a0a981fa.js";import{b as g,u as m,d as f}from"./useTranslations-e4f230ed.js";import{g as C,s as v,d as x}from"./cookieHelper-0e8521c3.js";import y from"lodash/debounce";import{T as b}from"./index.styled-4ae7aba3.js";import{I as w}from"./index-beb9db0b.js";import{t as E,M as L}from"./animation-0796d25e.js";import"react-range";import"react-dom";import k,{createGlobalStyle as S}from"styled-components";import M from"react-loading-skeleton";import{useId as I}from"react-id-generator";import R from"lodash/shuffle";import{u as P}from"./useOutsideClick-6004483a.js";import F from"string-format";var z,A,T,N,B,H,V,D,O,K,Z,_,j=k.div(z||(z=e([""],[""]))),G=k.div(A||(A=e(["\n --searchbar-z-index: 305;\n &[data-is-modal='true'] {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n height: var(--mobile-care-searchbar-height, 100%);\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n background-color: white;\n z-index: var(--searchbar-z-index);\n }\n"],["\n --searchbar-z-index: 305;\n &[data-is-modal='true'] {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n height: var(--mobile-care-searchbar-height, 100%);\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n background-color: white;\n z-index: var(--searchbar-z-index);\n }\n"]))),U=k.section(T||(T=e([""],[""]))),Q=k.input(N||(N=e(["\n position: fixed;\n left: -100%;\n top: -100%;\n"],["\n position: fixed;\n left: -100%;\n top: -100%;\n"]))),q=k(w)(B||(B=e(["\n #booking-search-bar & {\n input {\n font-size: 16px;\n }\n }\n"],["\n #booking-search-bar & {\n input {\n font-size: 16px;\n }\n }\n"]))),W=S(H||(H=e(["\n .care-popup-open {\n overflow: hidden;\n position: fixed;\n &::before {\n content: '';\n inset: 0;\n position: absolute;\n background-color: white;\n min-height: 100vh;\n min-width: 100vw;\n z-index: 2;\n }\n }\n"],["\n .care-popup-open {\n overflow: hidden;\n position: fixed;\n &::before {\n content: '';\n inset: 0;\n position: absolute;\n background-color: white;\n min-height: 100vh;\n min-width: 100vw;\n z-index: 2;\n }\n }\n"]))),Y=function(e){var n=e.className,t=e.color;return a.createElement("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M18 6L6 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M6 6L18 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))},J=function(e){var n=e.className,t=e.color;return a.createElement("svg",{width:"14",height:"20",viewBox:"0 0 14 20",className:n},a.createElement("path",{d:"M7 0C3.134 0 0 3.134 0 7C0 10.966 4.404 16.82 6.226 19.071C6.626 19.565 7.374 19.565 7.774 19.071C9.596 16.82 14 10.966 14 7C14 3.134 10.866 0 7 0ZM7 9.5C5.619 9.5 4.5 8.381 4.5 7C4.5 5.619 5.619 4.5 7 4.5C8.381 4.5 9.5 5.619 9.5 7C9.5 8.381 8.381 9.5 7 9.5Z",fill:t||"currentColor"}))},X=function(e){var n=e.className,t=e.color;return a.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:n},a.createElement("path",{d:"M9.99967 6.66658C8.15801 6.66658 6.66634 8.15825 6.66634 9.99992C6.66634 11.8416 8.15801 13.3333 9.99967 13.3333C11.8413 13.3333 13.333 11.8416 13.333 9.99992C13.333 8.15825 11.8413 6.66658 9.99967 6.66658ZM17.4497 9.16658C17.0663 5.69158 14.308 2.93325 10.833 2.54992V1.66659C10.833 1.20825 10.458 0.833252 9.99967 0.833252C9.54134 0.833252 9.16634 1.20825 9.16634 1.66659V2.54992C5.69134 2.93325 2.93301 5.69158 2.54967 9.16658H1.66634C1.20801 9.16658 0.833008 9.54158 0.833008 9.99992C0.833008 10.4583 1.20801 10.8333 1.66634 10.8333H2.54967C2.93301 14.3083 5.69134 17.0666 9.16634 17.4499V18.3333C9.16634 18.7916 9.54134 19.1666 9.99967 19.1666C10.458 19.1666 10.833 18.7916 10.833 18.3333V17.4499C14.308 17.0666 17.0663 14.3083 17.4497 10.8333H18.333C18.7913 10.8333 19.1663 10.4583 19.1663 9.99992C19.1663 9.54158 18.7913 9.16658 18.333 9.16658H17.4497ZM9.99967 15.8333C6.77467 15.8333 4.16634 13.2249 4.16634 9.99992C4.16634 6.77492 6.77467 4.16658 9.99967 4.16658C13.2247 4.16658 15.833 6.77492 15.833 9.99992C15.833 13.2249 13.2247 15.8333 9.99967 15.8333Z",fill:t||"currentColor"}))},$=function(e){var n=e.className,t=e.color;return a.createElement("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.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:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M20 20L16 16",stroke:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))},ee=function(e){var n=e.width,t=e.height;return a.createElement("svg",{width:n||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}))},ne=k.li(V||(V=e(["\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 8px 16px;\n\n > :first-child {\n flex: 1;\n }\n\n > :nth-child(2) {\n flex: 6;\n }\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n"],["\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 8px 16px;\n\n > :first-child {\n flex: 1;\n }\n\n > :nth-child(2) {\n flex: 6;\n }\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n"])),E.colors.neutral100),te=k.div(D||(D=e(["\n display: flex;\n position: absolute;\n top: 48px;\n min-width: 100%;\n box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),\n 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n border-radius: 6px;\n background-color: white;\n z-index: 30;\n\n "," {\n position: relative;\n top: 0;\n box-shadow: initial;\n }\n"],["\n display: flex;\n position: absolute;\n top: 48px;\n min-width: 100%;\n box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),\n 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n border-radius: 6px;\n background-color: white;\n z-index: 30;\n\n "," {\n position: relative;\n top: 0;\n box-shadow: initial;\n }\n"])),L.mbDown),oe=k.ul(O||(O=e(["\n width: 100%;\n max-height: 600px;\n overflow-y: auto;\n"],["\n width: 100%;\n max-height: 600px;\n overflow-y: auto;\n"]))),ie=k(J)(K||(K=e(["\n width: 12px;\n height: 18px;\n"],["\n width: 12px;\n height: 18px;\n"]))),ae=k.li(Z||(Z=e(["\n position: relative;\n cursor: pointer;\n padding: 12px 18px;\n display: flex;\n align-items: center;\n gap: 14px;\n overflow: hidden;\n\n ","\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n\n &:not([data-is-denied='true']):hover {\n background-color: ",";\n }\n\n &:last-child:hover {\n border-bottom-right-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n\n &:first-child:hover {\n border-top-right-radius: 6px;\n border-top-left-radius: 6px;\n }\n\n &[data-is-denied='true'] {\n cursor: not-allowed;\n }\n"],["\n position: relative;\n cursor: pointer;\n padding: 12px 18px;\n display: flex;\n align-items: center;\n gap: 14px;\n overflow: hidden;\n\n ","\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n\n &:not([data-is-denied='true']):hover {\n background-color: ",";\n }\n\n &:last-child:hover {\n border-bottom-right-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n\n &:first-child:hover {\n border-top-right-radius: 6px;\n border-top-left-radius: 6px;\n }\n\n &[data-is-denied='true'] {\n cursor: not-allowed;\n }\n"])),(function(e){return e.isSelected&&"\n &::after {\n content: ".concat("url(\"data:image/svg+xml,%3Csvg width='19' height='14' viewBox='0 0 19 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.9803 0.990669C16.7205 0.99841 16.4739 1.10699 16.2928 1.2934L5.99984 11.5864L2.70687 8.2934C2.61473 8.19743 2.50436 8.12081 2.38223 8.06802C2.2601 8.01524 2.12867 7.98735 1.99563 7.986C1.86259 7.98464 1.73061 8.00985 1.60743 8.06014C1.48426 8.11043 1.37235 8.18479 1.27827 8.27887C1.1842 8.37295 1.10983 8.48485 1.05954 8.60803C1.00926 8.73121 0.98405 8.86318 0.985403 8.99622C0.986757 9.12926 1.01464 9.26069 1.06743 9.38282C1.12021 9.50495 1.19684 9.61532 1.29281 9.70747L5.29281 13.7075C5.48035 13.8949 5.73467 14.0002 5.99984 14.0002C6.26501 14.0002 6.51933 13.8949 6.70687 13.7075L17.7069 2.70747C17.8514 2.567 17.9501 2.38616 17.99 2.18864C18.03 1.99112 18.0093 1.78614 17.9308 1.60055C17.8523 1.41497 17.7195 1.25744 17.5499 1.14861C17.3803 1.03978 17.1817 0.984729 16.9803 0.990669Z' fill='%232685F1'/%3E%3C/svg%3E%0A\")",";\n top: 50%;\n right: 18px;\n position: absolute;\n transform: translateY(-50%);\n }\n ")}),E.colors.neutral100,E.colors.neutral50),re=k((function(e){var t=e.count,o=e.className,i=I(t);return a.createElement(a.Fragment,null,n([],Array(t),!0).map((function(e,n){return a.createElement(ne,{className:o,key:i[n]},a.createElement(M,{count:1,height:32}),a.createElement(M,{count:1,height:24}))})))}))(_||(_=e(["\n &:first-child {\n padding-top: 18px;\n }\n"],["\n &:first-child {\n padding-top: 18px;\n }\n"]))),ce=function(e){var n=e.cities,t=e.isLoading,o=e.onLocationClick,i=e.onCurrentLocationClick,r=e.geoLocationPermission,c=void 0===r?"unset":r,l=e.isLocationLoading,s=e.selectedLocation,u=m().t,d="denied"===c,p=function(){return a.createElement(ae,{role:"button",tabIndex:0,onClick:function(e){d||(e.nativeEvent.stopImmediatePropagation(),l||i())},"data-is-denied":d},d?a.createElement(b,{color:"var(--gray600)",size:"md"},"x"):l?a.createElement(M,{height:20,width:20}):a.createElement(X,{color:E.colors.primaryBase}),a.createElement("div",null,d?a.createElement(b,{color:"var(--gray600)",size:"sm",style:{lineHeight:1.5}},u("booking.searchBar.grantLocation")):l?a.createElement(M,{height:20,style:{width:"calc(100% - 16px)"}}):a.createElement(b,{size:"md"},u("booking.searchBar.useCurrentLocation"))))};return a.createElement(te,{"data-testid":"location-search-results"},a.createElement(oe,null,t?a.createElement(re,{count:5}):!n||n.length<1?a.createElement(a.Fragment,null,p(),a.createElement(ae,{"data-is-denied":"true"},a.createElement(b,{size:"sm",color:"#ccc"},u("booking.searchBar.noResults")))):a.createElement(a.Fragment,null,p(),n.map((function(e){return a.createElement(ae,{key:e.id,onClick:function(n){n.nativeEvent.stopImmediatePropagation(),o&&o(e)},role:"button",tabIndex:0,"aria-label":"Select ".concat(e.name," as location"),isSelected:(null==s?void 0:s.id)===e.id},a.createElement(ie,{color:E.colors.neutral400}),a.createElement(b,{size:"md"},e.name))})))))},le="TYPE_CHARACTER",se="REMOVE_CHARACTER",ue="REMOVE_ALL",de="REMOVE_LAST_VISIBLE_NODE",pe="PAUSE_FOR",he="CHANGE_DELETE_SPEED",ge="CHANGE_DELAY",me="PASTE_STRING",fe=function(e,n){return Math.floor(Math.random()*(n-e+1))+e},Ce="TEXT_NODE",ve=function(){function e(e){var o=this;this.state={lastFrameTime:null,pauseUntil:null,eventQueue:[],eventLoop:null,eventLoopPaused:!1,reverseCalledEvents:[],calledEvents:[],visibleNodes:[],initialOptions:null},this.options={strings:null,delay:"natural",pauseFor:1500,deleteSpeed:"natural",loop:!1,autoStart:!1,stringSplitter:null,onCreateTextNode:null,onRemoveNode:null},this.start=function(){return o.state.eventLoopPaused=!1,o.runEventLoop(),o},this.pause=function(){return o.state.eventLoopPaused=!0,o},this.stop=function(){return o.state.eventLoop&&(window.cancelAnimationFrame(o.state.eventLoop),o.state.eventLoop=null),o},this.pauseFor=function(e){return o.addEventToQueue(pe,{ms:e}),o},this.typeOutAllStrings=function(){return"string"==typeof o.options.strings?(o.typeString(o.options.strings).pauseFor(o.options.pauseFor),o):(o.options.strings.forEach((function(e){o.typeString(e).pauseFor(o.options.pauseFor).deleteAll(o.options.deleteSpeed)})),o)},this.typeString=function(e,n){if(void 0===n&&(n=null),e){var t=(o.options||{}).stringSplitter,i="function"==typeof t?t(e):e.split("");o.typeCharacters(i,n)}return o},this.pasteString=function(e,n){return void 0===n&&(n=null),e&&o.addEventToQueue(me,{character:e,node:n}),o},this.deleteAll=function(e){return void 0===e&&(e="natural"),o.addEventToQueue(ue,{speed:e}),o},this.changeDeleteSpeed=function(e){if(!e)throw new Error("Must provide new delete speed");return o.addEventToQueue(he,{speed:e}),o},this.changeDelay=function(e){if(!e)throw new Error("Must provide new delay");return o.addEventToQueue(ge,{delay:e}),o},this.deleteChars=function(e){if(!e)throw new Error("Must provide amount of characters to delete");for(var n=0;n<e;n++)o.addEventToQueue(se);return o},this.typeCharacters=function(e,n){if(void 0===n&&(n=null),!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((function(e){o.addEventToQueue(le,{character:e,node:n})})),o},this.removeCharacters=function(e){if(!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((function(){o.addEventToQueue(se)})),o},this.addEventToQueue=function(e,n,t){return void 0===t&&(t=!1),o.addEventToStateProperty(e,n,t,"eventQueue")},this.addReverseCalledEvent=function(e,n,t){return void 0===t&&(t=!1),o.options.loop?o.addEventToStateProperty(e,n,t,"reverseCalledEvents"):o},this.addEventToStateProperty=function(e,t,i,a){void 0===i&&(i=!1);var r={eventName:e,eventArgs:t||{}};return o.state[a]=i?n([r],o.state[a],!0):n(n([],o.state[a],!0),[r],!1),o},this.runEventLoop=function(){o.state.lastFrameTime||(o.state.lastFrameTime=Date.now());var e=Date.now(),i=e-o.state.lastFrameTime;if(!o.state.eventQueue.length){if(!o.options.loop)return;o.state.eventQueue=n([],o.state.calledEvents,!0),o.state.calledEvents=[],o.options=t({},o.state.initialOptions)}if(o.state.eventLoop=window.requestAnimationFrame(o.runEventLoop),!o.state.eventLoopPaused){if(o.state.pauseUntil){if(e<o.state.pauseUntil)return;o.state.pauseUntil=null}var a=n([],o.state.eventQueue,!0),r=a.shift();if(!(i<=(r.eventName===de||r.eventName===se?"natural"===o.options.deleteSpeed?fe(40,80):o.options.deleteSpeed:"natural"===o.options.delay?fe(120,160):o.options.delay))){var c=r.eventName,l=r.eventArgs;switch(c){case me:case le:var s=l.character,u=document.createTextNode(s),d=u;o.options.onCreateTextNode&&"function"==typeof o.options.onCreateTextNode&&(d=o.options.onCreateTextNode(s,u)),o.state.visibleNodes=n(n([],o.state.visibleNodes,!0),[{type:Ce,character:s,node:d}],!1);break;case se:a.unshift({eventName:de,eventArgs:{removingCharacterNode:!0}});break;case pe:var p=r.eventArgs.ms;o.state.pauseUntil=Date.now()+parseInt(p);break;case ue:var h=o.state.visibleNodes,g=l.speed,m=[];g&&m.push({eventName:he,eventArgs:{speed:g,temp:!0}});for(var f=0,C=h.length;f<C;f++)m.push({eventName:de,eventArgs:{removingCharacterNode:!1}});g&&m.push({eventName:he,eventArgs:{speed:o.options.deleteSpeed,temp:!0}}),a.unshift.apply(a,m);break;case de:if(o.state.visibleNodes.length){var v=o.state.visibleNodes.pop(),x=v.node;s=v.character;o.options.onRemoveNode&&"function"==typeof o.options.onRemoveNode&&o.options.onRemoveNode({node:x,character:s}),x&&x.parentNode.removeChild(x)}break;case he:o.options.deleteSpeed=r.eventArgs.speed;break;case ge:o.options.delay=r.eventArgs.delay}o.options.loop&&(r.eventName===de||r.eventArgs&&r.eventArgs.temp||(o.state.calledEvents=n(n([],o.state.calledEvents,!0),[r],!1))),o.state.eventQueue=a,o.state.lastFrameTime=e}}},e&&(this.options=t(t({},this.options),e)),this.state.initialOptions=t({},this.options),this.init()}return e.prototype.init=function(){this.addEventToQueue(ue,null,!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()},e}();function xe(e){var n=e.inputRef,t=e.wrapperRef,o=e.disabled,i=m(),a=i.t,c=i.locale,l=r((function(){if(o)return[];var e=["booking.searchBar.placeholder.hospital","booking.searchBar.placeholder.doctor"];return"zh-TW"!==c&&e.push("booking.searchBar.placeholder.specialty","booking.searchBar.placeholder.service"),R(e).map((function(e){return a(e)}))}),[a,c]);function u(e){var n=p();return n&&(n.placeholder=n.placeholder+e),null}function d(){var e=p();e&&(e.placeholder=e.placeholder.slice(0,-1))}function p(){return n&&n.current?n.current:t&&t.current&&t.current.querySelector("input")||null}s((function(){if(!o){var e=p();e&&(e.placeholder="",new ve({strings:l,autoStart:!0,loop:!0,delay:32,deleteSpeed:32,pauseFor:1500,onCreateTextNode:u,onRemoveNode:d}))}}),[n,t])}var ye,be=k.div(ye||(ye=e(["\n user-select: none;\n input {\n pointer-events: none;\n background-color: white;\n }\n"],["\n user-select: none;\n input {\n pointer-events: none;\n background-color: white;\n }\n"])));function we(e){var n=e.focused,o=e.value,i=void 0===o?"":o,c=e.onClick,l=e.trackingAttributes,s=e.inputSearchPlaceholder,d=m().t,p=u(null);xe({wrapperRef:p,disabled:!!s});var h=r((function(){return l?{"data-event-category":l.dataEventCategory,"data-event-action":l.dataEventAction,"data-event-label":l.dataEventLabel}:{}}),[l]);return a.createElement(be,t({onClick:function(){return c&&c()},ref:p},h),a.createElement(q,{inputClassName:"location"===n?"focused":void 0,name:"booking-search-placeholder",displayIcon:a.createElement($,{color:E.colors.gray400}),placeholder:d("booking.searchBar.searchInput.placeholder"),value:i,size:"md"}))}var Ee,Le,ke,Se,Me,Ie,Re=k.header(Ee||(Ee=e(["\n display: flex;\n height: 64px;\n align-items: center;\n justify-content: space-between;\n margin: 0 auto;\n position: sticky;\n z-index: 99;\n background-color: white;\n top: 0;\n left: 0;\n"],["\n display: flex;\n height: 64px;\n align-items: center;\n justify-content: space-between;\n margin: 0 auto;\n position: sticky;\n z-index: 99;\n background-color: white;\n top: 0;\n left: 0;\n"]))),Pe=k.div(Le||(Le=e(["\n display: inline-flex;\n flex: 1;\n justify-content: flex-end;\n cursor: pointer;\n text-decoration: underline;\n"],["\n display: inline-flex;\n flex: 1;\n justify-content: flex-end;\n cursor: pointer;\n text-decoration: underline;\n"]))),Fe=k.div(ke||(ke=e(["\n display: flex;\n align-items: center;\n margin-left: 16px;\n cursor: pointer;\n"],["\n display: flex;\n align-items: center;\n margin-left: 16px;\n cursor: pointer;\n"]))),ze=k.div(Se||(Se=e(["\n width: 100%;\n margin-left: 24px;\n"],["\n width: 100%;\n margin-left: 24px;\n"]))),Ae=k(b)(Me||(Me=e(["\n color: ",";\n text-align: start;\n"],["\n color: ",";\n text-align: start;\n"])),E.colors.secondaryDark),Te=function(e){var n=e.className,t=e.onLeftClick,o=e.headingText,i=e.onRightClick,r=e.iconLeft,c=e.textRight;return a.createElement(Re,{className:n},a.createElement(Fe,{onClick:t},r||a.createElement(Y,{color:E.colors.gray800})),a.createElement(ze,null,a.createElement(Ae,{size:"md",type:"bold"},o)),a.createElement(Pe,{onClick:i},c&&a.createElement("p",null,c)))},Ne={"en-PH":3,"tl-PH":2,"id-ID":3,"vi-VN":2,"zh-TW":0},Be={isMobile:!1,isDebug:!1,navigateTo:null,geoLocationPermission:"unset",geoLocationCoordinates:null,focused:"none",searchLocationKeywords:"",searchKeywords:"",selectedLocation:null,defaultCity:null,initialCities:[],cities:[],searchResults:[],initialSearchResults:[],isLoadingCities:!1,isLoadingSearchResults:!1,isMobileModalOpened:!1,initialSelectedCity:null,autoCompleteDisabled:!1,inputSearchPlaceholder:"",locale:"vi-VN"};function He(e){var n=e.selectedLocation,o=e.searchLocationKeywords;return n&&o!==n.name?t(t({},e),{searchLocationKeywords:n.name}):e}function Ve(e,n){var o;switch(e.isDebug&&console.log("bookingSearchBar",{action:n,state:e}),n.type){case Ie.NavigateTo:return t(t({},e),{navigateTo:n.payload,focused:"none",isMobileModalOpened:!1});case Ie.ClickOutsideInputLocation:return e.isMobile||"location"!==e.focused?e:He(t(t({},e),{focused:"none"}));case Ie.ClickOutsideInputSearch:return e.isMobile||"search"!==e.focused?e:t(t({},e),{focused:"none"});case Ie.FocusInputLocation:var i=t(t({},e),{focused:"location"});return(null===(o=e.selectedLocation)||void 0===o?void 0:o.id)===p&&(i.searchLocationKeywords=""),i;case Ie.FocusInputSearch:var a=t(t({},e),{focused:"search"});return e.isMobile?He(a):a;case Ie.ChangeInputLocation:return t(t({},e),{searchLocationKeywords:n.payload});case Ie.ChangeInputSearch:var r=n.payload;return t(t({},e),{searchKeywords:r,isLoadingSearchResults:r.trim().length>Ne[e.locale]});case Ie.SelectCurrentLocation:return t(t({},e),{focused:"none",selectedLocation:n.payload,searchLocationKeywords:n.payload.name});case Ie.ClearInputLocation:return t(t({},e),{focused:"location",cities:e.initialCities,searchLocationKeywords:""});case Ie.ClearInputSearch:return t(t({},e),{focused:"search",searchKeywords:""});case Ie.SelectLocation:return t(t({},e),{focused:"none",selectedLocation:n.payload,searchLocationKeywords:n.payload.name});case Ie.SelectSearchResult:return t(t({},e),{searchKeywords:n.payload.name,isMobileModalOpened:!1,focused:"none",navigateTo:n.payload.url});case Ie.FetchCitiesStart:return t(t({},e),{isLoadingCities:!0});case Ie.FetchCitiesFinish:return t(t({},e),{isLoadingCities:!1});case Ie.FetchSearchResultsStart:return t(t({},e),{isLoadingSearchResults:!0});case Ie.FetchSearchResultsFinish:return t(t({},e),{isLoadingSearchResults:!1});case Ie.FetchSearchResultsComplete:var c=t(t({},e),{searchResults:n.payload});return 0===e.initialSearchResults.length&&(c.initialSearchResults=n.payload),c;case Ie.FetchCitiesByGeoIpComplete:var l=n.payload.cities,s=n.payload.default;(l=l.filter((function(e){return e.id!==s.id}))).unshift(s),e.initialSelectedCity&&!l.find((function(n){return n.id===e.initialSelectedCity.id}))&&l.unshift(e.initialSelectedCity);var u=t(t({},e),{defaultCity:s,initialCities:l,cities:l});return"denied"!==e.geoLocationPermission||e.initialSelectedCity||(u.selectedLocation=s,u.searchLocationKeywords=s.name),u;case Ie.FetchCitiesByKeywordComplete:return t(t({},e),{cities:n.payload});case Ie.DisplayInitialCities:return t(t({},e),{cities:e.initialCities});case Ie.DisplayInitialSearchResults:return t(t({},e),{searchResults:e.initialSearchResults,isLoadingSearchResults:!1});case Ie.GrantGeoLocationPermission:return t(t({},e),{geoLocationPermission:"granted",geoLocationCoordinates:n.payload});case Ie.DenyGeoLocationPermission:return t(t({},e),{geoLocationPermission:"denied",geoLocationCoordinates:null});case Ie.OpenMobileModal:return t(t({},e),{isMobileModalOpened:!0});case Ie.CloseMobileModal:return t(t({},e),{isMobileModalOpened:!1});case Ie.UpdateInitialSearchValue:return t(t({},e),{searchKeywords:n.payload});case Ie.SetInputSearchPlaceholder:return t(t({},e),{inputSearchPlaceholder:n.payload});default:return e}}!function(e){e.NavigateTo="navigate to url",e.ClickOutsideInputLocation="click outside input location",e.ClickOutsideInputSearch="click outside input search",e.SelectCurrentLocation="select current location",e.FocusInputLocation="focus input location",e.FocusInputSearch="focus input search",e.ChangeInputLocation="change input location",e.ChangeInputSearch="change input search",e.ClearInputLocation="clear input location",e.ClearInputSearch="clear input search",e.SelectLocation="select location",e.FetchCitiesStart="fetch cities start",e.FetchCitiesFinish="fetch cities finish",e.FetchSearchResultsStart="fetch search results start",e.FetchSearchResultsComplete="fetch search results complete",e.FetchSearchResultsFinish="fetch search results finish",e.FetchCitiesByGeoIpComplete="fetch cities by geo IP finish",e.FetchCitiesByKeywordComplete="fetch cities by keyword finish",e.DisplayInitialCities="display initial cities",e.DisplayInitialSearchResults="display initial search results",e.GrantGeoLocationPermission="grant geolocation permission",e.DenyGeoLocationPermission="deny geolocation permission",e.OpenMobileModal="open mobile modal",e.CloseMobileModal="close mobile modal",e.UpdateInitialSearchValue="update initial search value",e.SelectSearchResult="select search result",e.SetInputSearchPlaceholder="set input search placeholder"}(Ie||(Ie={}));var De,Oe,Ke,Ze,_e,je,Ge,Ue=function(){return a.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.97887 8.15493C2.97887 5.29627 5.29627 2.97887 8.15493 2.97887C11.0136 2.97887 13.331 5.29627 13.331 8.15493C13.331 11.0136 11.0136 13.331 8.15493 13.331C5.29627 13.331 2.97887 11.0136 2.97887 8.15493ZM8.15493 1.5C4.47951 1.5 1.5 4.47951 1.5 8.15493C1.5 11.8303 4.47951 14.8099 8.15493 14.8099C9.72624 14.8099 11.1704 14.2653 12.3089 13.3546L15.2377 16.2834C15.5265 16.5722 15.9947 16.5722 16.2834 16.2834C16.5722 15.9947 16.5722 15.5265 16.2834 15.2377L13.3546 12.3089C14.2653 11.1704 14.8099 9.72624 14.8099 8.15493C14.8099 4.47951 11.8303 1.5 8.15493 1.5Z",fill:"white"}))},Qe=k.button(De||(De=e(["\n min-height: 100%;\n border-radius: 6px;\n background-color: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 11px;\n cursor: pointer;\n flex: 0.3;\n\n "," {\n --margin: 16px;\n min-height: 44px;\n margin: var(--margin);\n width: calc(100% - var(--margin) * 2);\n position: absolute;\n bottom: 0;\n }\n\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n\n &:focus-visible {\n outline: 1px solid black;\n }\n"],["\n min-height: 100%;\n border-radius: 6px;\n background-color: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 11px;\n cursor: pointer;\n flex: 0.3;\n\n "," {\n --margin: 16px;\n min-height: 44px;\n margin: var(--margin);\n width: calc(100% - var(--margin) * 2);\n position: absolute;\n bottom: 0;\n }\n\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n\n &:focus-visible {\n outline: 1px solid black;\n }\n"])),(function(e){return e.theme.colors.primaryBase}),L.mbDown,(function(e){return e.theme.colors.primaryHover}),(function(e){return e.theme.colors.primaryActive})),qe=k(b)(Oe||(Oe=e(["\n font-weight: ",";\n"],["\n font-weight: ",";\n"])),(function(e){return e.theme.sizes.fwSemiBold})),We=function(e){var n=e.onClick,t=(0,m().t)("booking.searchBar.searchButton");return a.createElement(Qe,{onClick:n,title:t},a.createElement(Ue,null),a.createElement(qe,{size:"s3",color:"white"},t))},Ye=k.div(Ke||(Ke=e(["\n display: flex;\n gap: 16px;\n "," {\n flex-direction: column;\n padding: 14px;\n background-color: ",";\n\n input {\n filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.04))\n drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.06))\n drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));\n }\n }\n\n input {\n background-color: white;\n }\n"],["\n display: flex;\n gap: 16px;\n "," {\n flex-direction: column;\n padding: 14px;\n background-color: ",";\n\n input {\n filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.04))\n drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.06))\n drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));\n }\n }\n\n input {\n background-color: white;\n }\n"])),L.mbDown,E.colors.blue50),Je=k.div(Ze||(Ze=e(["\n position: relative;\n"],["\n position: relative;\n"]))),Xe=k(Je)(_e||(_e=e(["\n flex: 1;\n"],["\n flex: 1;\n"]))),$e=k(Je)(je||(je=e(["\n flex: 2;\n"],["\n flex: 2;\n"]))),en=k((function(e){var n=e.className,t=e.color;return a.createElement("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("rect",{x:"4",y:"4",width:"16",height:"16",rx:"8",fill:"white"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM8.29289 8.29289C8.68342 7.90237 9.31658 7.90237 9.70711 8.29289L12 10.5858L14.2929 8.29289C14.6834 7.90237 15.3166 7.90237 15.7071 8.29289C16.0976 8.68342 16.0976 9.31658 15.7071 9.70711L13.4142 12L15.7071 14.2929C16.0976 14.6834 16.0976 15.3166 15.7071 15.7071C15.3166 16.0976 14.6834 16.0976 14.2929 15.7071L12 13.4142L9.70711 15.7071C9.31658 16.0976 8.68342 16.0976 8.29289 15.7071C7.90237 15.3166 7.90237 14.6834 8.29289 14.2929L10.5858 12L8.29289 9.70711C7.90237 9.31658 7.90237 8.68342 8.29289 8.29289Z",fill:t||"currentColor"}))}))(Ge||(Ge=e(["\n display: none;\n &.shown {\n display: block;\n }\n"],["\n display: none;\n &.shown {\n display: block;\n }\n"])));function nn(e){var n=e.isMobile,t=e.state,o=e.dispatch,i=e.debouncedFetchCitiesByKeyword,c=e.debouncedFetchSearchResults,s=e.focusLocationInput,d=e.focusSearchInput,h=e.renderLocationResults,g=e.renderSearchResults,f=e.locationTrackingAttributes,C=e.trackingAttributes,v=e.onSearch,x=e.initalSearchValue,y=u(null),b=u(null),w=t.focused,L=t.searchLocationKeywords,k=t.geoLocationPermission,S=t.selectedLocation,M=t.searchKeywords,I=t.inputSearchPlaceholder,R=m().t;xe({wrapperRef:b,disabled:!!I}),P(y,(function(){o({type:Ie.ClickOutsideInputLocation})})),P(b,(function(){o({type:Ie.ClickOutsideInputSearch})}));var F=r((function(){return"granted"===k&&(null==S?void 0:S.id)===p?E.colors.primaryBase:E.colors.gray400}),[k,S]),z=l((function(e){o({type:Ie.ChangeInputSearch,payload:e}),"function"!=typeof v&&(e.trim().length>Ne[t.locale]||x?c(e.trim(),t):(c.cancel(),o({type:Ie.DisplayInitialSearchResults})))}),[o,t]),A=l((function(e){o({type:Ie.ChangeInputLocation,payload:e}),e.trim().length>Ne[t.locale]?i(e.trim()):(i.cancel(),o({type:Ie.DisplayInitialCities}))}),[i,o]);return a.createElement(Ye,null,a.createElement(Xe,{ref:y},a.createElement(q,{inputClassName:"location"===w?"focused":void 0,placeholder:R("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:a.createElement(J,{className:"location-pin-icon",color:F}),actionIcon:a.createElement(en,{color:E.colors.gray300,className:""!==L?"shown":""}),onActionClick:function(){o({type:Ie.ClearInputLocation}),i.cancel(),s()},value:L,onChange:A,onFocus:function(){return o({type:Ie.FocusInputLocation})},size:"md",trackingAttributes:f}),!n&&h()),a.createElement($e,{ref:b},a.createElement(q,{placeholder:I||R("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:a.createElement(en,{color:E.colors.gray300,className:""!==M?"shown":""}),onActionClick:function(){o({type:Ie.ClearInputSearch}),c.cancel(),c("",t),d()},value:M,onChange:z,onFocus:function(){return o({type:Ie.FocusInputSearch})},inputClassName:"search"===w?"focused":void 0,size:"md",trackingAttributes:C,onKeyPress:function(e){t.autoCompleteDisabled&&"Enter"===e.key&&v&&v({cityId:t.selectedLocation.id,keyword:M})},enterKeyHint:t.autoCompleteDisabled?"search":void 0}),!n&&g()),t.autoCompleteDisabled&&!t.isMobile&&a.createElement(We,{onClick:function(){v({cityId:t.selectedLocation.id,keyword:M})}}))}var tn,on,an,rn,cn,ln,sn,un,dn,pn,hn,gn,mn,fn,Cn=k.li(tn||(tn=e(["\n display: flex;\n align-items: center;\n gap: var(--rowGap);\n cursor: pointer;\n"],["\n display: flex;\n align-items: center;\n gap: var(--rowGap);\n cursor: pointer;\n"]))),vn=k.div(on||(on=e(["\n --wrapper-size: var(--graphicSize);\n border-radius: calc(var(--wrapper-size) / 2);\n background-color: var(--neutral50);\n width: var(--wrapper-size);\n height: var(--wrapper-size);\n aspect-ratio: 1/1;\n overflow: hidden;\n\n ","\n\n img {\n width: var(--graphicSize);\n height: var(--graphicSize);\n ","\n }\n\n &:focus-visible {\n outline: 1px solid ",";\n }\n"],["\n --wrapper-size: var(--graphicSize);\n border-radius: calc(var(--wrapper-size) / 2);\n background-color: var(--neutral50);\n width: var(--wrapper-size);\n height: var(--wrapper-size);\n aspect-ratio: 1/1;\n overflow: hidden;\n\n ","\n\n img {\n width: var(--graphicSize);\n height: var(--graphicSize);\n ","\n }\n\n &:focus-visible {\n outline: 1px solid ",";\n }\n"])),(function(e){var n=e.type;return n&&"doctors"===n&&"\n border-radius: calc(var(--graphicSize) / 2);\n "}),(function(e){var n=e.type;return n&&"doctors"===n?"\n\n object-fit: cover; \n ":"\n object-fit: contain;\n "}),E.colors.gray600),xn=k(b)(an||(an=e(["\n line-height: 22px;\n letter-spacing: -0.2px;\n\n "," {\n &[data-size='p3'] {\n font-size: 14px;\n }\n }\n"],["\n line-height: 22px;\n letter-spacing: -0.2px;\n\n "," {\n &[data-size='p3'] {\n font-size: 14px;\n }\n }\n"])),L.tdUp),yn=k.figure(rn||(rn=e(["\n max-width: var(--graphicSize);\n min-width: var(--graphicSize);\n"],["\n max-width: var(--graphicSize);\n min-width: var(--graphicSize);\n"]))),bn=k.svg(cn||(cn=e(["\n margin: 0 auto;\n display: block;\n"],["\n margin: 0 auto;\n display: block;\n"]))),wn=k.div(ln||(ln=e(["\n display: grid;\n place-items: center;\n"],["\n display: grid;\n place-items: center;\n"]))),En={doctors:function(e){var n=e.width,t=e.height;return a.createElement("svg",{width:n||32,height:t||32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("g",{clipPath:"url(#clip0_14712_400114)"},a.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),a.createElement("path",{d:"M22.065 9.58305C22.1108 9.80952 22.1431 10.0396 22.1614 10.2722C22.3769 13.0522 22.5858 16.1276 22.5727 17.618C22.5306 20.5688 19.708 21.1325 19.4564 21.1769L19.4495 21.5357L19.5228 23.9014C20.8688 23.9341 22.203 24.1759 23.4772 24.6196C24.5264 24.9739 25.4827 25.5591 26.2757 26.332C27.0688 27.105 27.6783 28.0461 28.0594 29.0858L31.9886 39.2068C31.91 39.3048 30.6939 39.6356 29.4888 39.944C30.1695 42.3315 30.4582 44.8142 30.3432 47.2953C30.2991 48.2666 30.1816 49.264 29.7245 50.1211C29.4508 50.6342 29.0319 51.0912 28.5296 51.3753C28.5099 51.4347 28.4864 51.4928 28.4593 51.5495C28.4293 51.6146 28.3908 51.6756 28.3448 51.7307C28.3293 51.7772 28.3232 51.8406 28.3162 51.9135C28.3004 52.0779 28.2799 52.2909 28.1362 52.4685C28.001 52.6373 27.8519 52.7945 27.6905 52.9386C27.6905 52.9386 27.092 52.9667 26.4133 52.9845L26.458 58.4088H5.7492L6.30965 52.9523L5.66093 53.1637C5.07664 53.3528 4.45628 53.4028 3.84925 53.3099C3.24222 53.2169 2.66526 52.9835 2.1643 52.6283C1.61489 52.2388 1.17445 51.715 0.884966 51.1068C0.595484 50.4987 0.46662 49.8266 0.510669 49.1545L0.644528 47.1369L1.41503 38.3366L1.81323 38.4135L-0.914307 37.8437L-0.402886 36.5663C-0.407359 36.5645 -0.411803 36.5627 -0.416214 36.5608C-0.410804 36.56 -0.40538 36.5594 -0.399946 36.5589L2.05995 30.4146C3.00034 28.0825 4.7421 26.1624 6.97187 24.9999C8.56171 24.176 10.3028 23.6861 12.0882 23.5597L11.788 16.5865C11.1882 16.6507 10.0095 16.5266 9.96087 14.954C9.91229 13.3824 11.0457 13.3171 11.6507 13.3961L11.6445 13.2523C11.5785 12.8433 11.5088 12.439 11.4577 12.2132C11.3782 11.8628 11.2611 11.4953 11.1419 11.1207C10.8794 10.2967 10.6061 9.43855 10.697 8.65293C10.697 8.65293 10.6909 8.00438 11.4565 7.24044C11.3707 6.86644 11.3686 6.47786 11.4507 6.10258C11.5366 5.70965 11.7125 5.34199 11.9645 5.02848C12.2165 4.71497 12.5377 4.46414 12.9029 4.29569C13.2682 4.12725 13.6675 4.04577 14.0696 4.05766C14.2277 4.06393 14.3849 4.08493 14.5418 4.10589C14.7932 4.13945 15.0439 4.17294 15.2971 4.14581C15.7708 4.09409 16.177 3.83884 16.5862 3.58167C16.8357 3.42492 17.0863 3.26745 17.354 3.15494C17.9119 2.93744 18.5266 2.91281 19.1002 3.08497C19.6738 3.25713 20.1733 3.61619 20.5192 4.105C20.5943 4.21716 20.6621 4.33678 20.7298 4.45631C20.9035 4.76299 21.077 5.06915 21.373 5.24769C21.5927 5.38236 21.8482 5.42658 22.1057 5.47114C22.2633 5.49842 22.4216 5.52582 22.5728 5.57417C23.0267 5.71015 23.3999 6.0411 23.6319 6.45436C23.6327 6.40753 23.6317 6.36062 23.629 6.31374C23.6502 6.3657 23.6623 6.42092 23.6649 6.47698C23.6661 6.49165 23.667 6.50632 23.6677 6.521C23.8246 6.82609 23.9058 7.17114 23.8885 7.51347C23.8544 7.93447 23.7053 8.33801 23.4574 8.68001C23.2096 9.02201 22.8725 9.28933 22.483 9.45278C22.3469 9.50712 22.2071 9.55061 22.065 9.58305Z",fill:"white"})),a.createElement("defs",null,a.createElement("clipPath",{id:"clip0_14712_400114"},a.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"}))))},services:function(e){var n=e.width,t=e.height;return a.createElement("svg",{width:n||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),a.createElement("path",{d:"M14.9998 6.66663C12.2752 6.66663 9.85335 7.97848 8.33317 9.99996H10.5988C11.8 8.94527 13.3625 8.33329 14.9998 8.33329C16.6372 8.33329 18.1997 8.94527 19.4009 9.99996H21.6665C20.1463 7.97848 17.7244 6.66663 14.9998 6.66663ZM7.7863 10.8333C7.07666 13.0403 6.6665 15.5989 6.6665 18.3333C6.6665 20.0846 6.82601 21.7675 7.13525 23.3333H22.8644C23.1737 21.7675 23.3332 20.0846 23.3332 18.3333C23.3332 15.5989 22.923 13.0403 22.2134 10.8333H7.7863ZM14.9998 13.3333C17.3013 13.3333 19.1665 15.1985 19.1665 17.5C19.1665 19.8014 17.3013 21.6666 14.9998 21.6666C12.6984 21.6666 10.8332 19.8014 10.8332 17.5C10.8332 15.1985 12.6984 13.3333 14.9998 13.3333ZM14.1665 15V16.6666H12.4998V18.3333H14.1665V20H15.8332V18.3333H17.4998V16.6666H15.8332V15H14.1665Z",fill:"#BFC5CC"}))}},Ln=function(e){var n=e.type,t=e.item,o=e.imageUrl,i=e.onClickItem,c=r((function(){var e=En[n]||ee;return a.createElement(e,{width:32,height:"services"===n?32:24})}),[n]);return a.createElement(Cn,{onClick:function(){return i&&i(t)},onKeyDown:function(e){"Enter"!==e.key&&"Space"!==e.key||i&&i(t)},tabIndex:0,role:"button"},a.createElement(yn,null,"hospitals"===n?a.createElement(bn,{width:"12",height:"16",viewBox:"0 0 12 16"},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.75 5.94873C0.75 3.04623 3.0975 0.69873 6 0.69873C8.9025 0.69873 11.25 3.04623 11.25 5.94873C11.25 9.07623 7.935 13.3887 6.5775 15.0312C6.2775 15.3912 5.73 15.3912 5.43 15.0312C4.065 13.3887 0.75 9.07623 0.75 5.94873ZM4.125 5.94873C4.125 6.98373 4.965 7.82373 6 7.82373C7.035 7.82373 7.875 6.98373 7.875 5.94873C7.875 4.91373 7.035 4.07373 6 4.07373C4.965 4.07373 4.125 4.91373 4.125 5.94873Z",fill:"#9AA2AC"})):a.createElement(vn,{type:n},o?a.createElement("img",{src:o,width:32,height:"services"===n?32:24}):c)),a.createElement(xn,{color:E.colors.gray800,size:"p3"},t.name))},kn=function(){return a.createElement("svg",{width:"14",height:"18",viewBox:"0 0 14 18"},a.createElement("path",{d:"M7.00004 0.666992C5.29757 0.666992 3.64067 0.813476 2.52087 1.03158C1.73311 1.18457 1.16671 1.86816 1.16671 2.6722V4.83366C1.16671 5.29264 1.54106 5.66699 2.00004 5.66699H12C12.459 5.66699 12.8334 5.29264 12.8334 4.83366V2.69824C12.8334 1.89421 12.267 1.21061 11.4792 1.05762C10.3562 0.839518 8.69275 0.666992 7.00004 0.666992ZM6.16671 1.50033H7.83337V2.33366H8.66671V4.00033H7.83337V4.83366H6.16671V4.00033H5.33337V2.33366H6.16671V1.50033ZM1.42712 6.50033C1.3197 6.89421 1.24158 7.32389 1.19275 7.77637C1.14718 8.18001 1.05603 9.25423 1.06254 9.36491C0.603556 9.72624 0.333374 10.2861 0.333374 10.9014C0.333374 11.8356 0.977906 12.6364 1.84379 12.8285C2.74548 15.0192 4.55212 17.3337 7.00004 17.3337C9.44796 17.3337 11.2546 14.9964 12.1563 12.8024C13.0222 12.6136 13.6667 11.8356 13.6667 10.9014C13.6667 10.2861 13.3965 9.72624 12.9375 9.36491C12.9441 9.25423 12.8562 8.16048 12.8073 7.75033C12.7552 7.30436 12.6804 6.89095 12.573 6.50033H5.35942C6.52804 8.20606 9.27543 7.18717 11.0365 7.62012C11.5736 8.79199 11.1667 10.4326 11.1667 10.4326L11.8177 10.641C11.9121 10.6702 12 10.7549 12 10.9014C12 11.0576 11.8861 11.1943 11.6875 11.1878L11.0105 11.0837L10.7761 11.7347C9.96554 14.0492 8.4128 15.667 7.00004 15.667C5.58728 15.667 4.03455 14.0492 3.224 11.7347L2.96358 11.0837L2.26046 11.1878C2.11723 11.1878 2.00004 11.0576 2.00004 10.9014C2.00004 10.7549 2.08793 10.6702 2.18233 10.641L2.83337 10.4326C2.73246 10.5531 2.4102 8.7041 2.83337 8.03678C3.59184 7.5127 4.2266 7.87728 5.12504 6.50033H1.42712ZM5.17712 9.05241C4.57166 9.05241 4.08337 9.55371 4.08337 10.1722C4.08337 10.7907 4.57166 11.292 5.17712 11.292C5.78259 11.292 6.27087 10.7907 6.27087 10.1722C6.27087 9.55371 5.78259 9.05241 5.17712 9.05241ZM8.82296 9.05241C8.21749 9.05241 7.72921 9.55371 7.72921 10.1722C7.72921 10.7907 8.21749 11.292 8.82296 11.292C9.42843 11.292 9.91671 10.7907 9.91671 10.1722C9.91671 9.55371 9.42843 9.05241 8.82296 9.05241Z",fill:"#9AA2AC"}))},Sn=function(){return a.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},a.createElement("path",{d:"M8.99996 0.666992C6.27535 0.666992 3.85348 1.97884 2.33329 4.00033H4.59892C5.80009 2.94564 7.36259 2.33366 8.99996 2.33366C10.6373 2.33366 12.1998 2.94564 13.401 4.00033H15.6666C14.1464 1.97884 11.7246 0.666992 8.99996 0.666992ZM1.78642 4.83366C1.07678 7.04069 0.666626 9.59928 0.666626 12.3337C0.666626 14.085 0.826131 15.7679 1.13538 17.3337H16.8645C17.1738 15.7679 17.3333 14.085 17.3333 12.3337C17.3333 9.59928 16.9231 7.04069 16.2135 4.83366H1.78642ZM8.99996 7.33366C11.3014 7.33366 13.1666 9.19889 13.1666 11.5003C13.1666 13.8018 11.3014 15.667 8.99996 15.667C6.69853 15.667 4.83329 13.8018 4.83329 11.5003C4.83329 9.19889 6.69853 7.33366 8.99996 7.33366ZM8.16663 9.00033V10.667H6.49996V12.3337H8.16663V14.0003H9.83329V12.3337H11.5V10.667H9.83329V9.00033H8.16663Z",fill:"#9AA2AC"}))},Mn=function(){return a.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17"},a.createElement("path",{d:"M8 0.666992L0.5 5.63533V14.8337C0.5 15.7545 1.24583 16.5003 2.16667 16.5003H13.8333C14.7542 16.5003 15.5 15.7545 15.5 14.8337V5.63533L8 0.666992ZM11.3333 10.667H8.83333V13.167H7.16667V10.667H4.66667V9.00033H7.16667V6.50033H8.83333V9.00033H11.3333V10.667Z",fill:"#9AA2AC"}))},In=function(){return a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},a.createElement("path",{d:"M3.83333 0.5C2.94928 0.5 2.10143 0.851189 1.47631 1.47631C0.851189 2.10143 0.5 2.94928 0.5 3.83333C0.5 4.71739 0.851189 5.56523 1.47631 6.19036C2.10143 6.81548 2.94928 7.16667 3.83333 7.16667C4.71739 7.16667 5.56523 6.81548 6.19036 6.19036C6.81548 5.56523 7.16667 4.71739 7.16667 3.83333C7.16667 2.94928 6.81548 2.10143 6.19036 1.47631C5.56523 0.851189 4.71739 0.5 3.83333 0.5V0.5ZM10.5 0.5C9.57917 0.5 8.83333 1.24583 8.83333 2.16667V5.5C8.83333 6.42083 9.57917 7.16667 10.5 7.16667H13.8333C14.7542 7.16667 15.5 6.42083 15.5 5.5V2.16667C15.5 1.24583 14.7542 0.5 13.8333 0.5H10.5ZM3.83333 8.83333C2.94928 8.83333 2.10143 9.18452 1.47631 9.80964C0.851189 10.4348 0.5 11.2826 0.5 12.1667C0.5 13.0507 0.851189 13.8986 1.47631 14.5237C2.10143 15.1488 2.94928 15.5 3.83333 15.5C4.71739 15.5 5.56523 15.1488 6.19036 14.5237C6.81548 13.8986 7.16667 13.0507 7.16667 12.1667C7.16667 11.2826 6.81548 10.4348 6.19036 9.80964C5.56523 9.18452 4.71739 8.83333 3.83333 8.83333V8.83333ZM12.1667 8.83333C11.2826 8.83333 10.4348 9.18452 9.80964 9.80964C9.18452 10.4348 8.83333 11.2826 8.83333 12.1667C8.83333 13.0507 9.18452 13.8986 9.80964 14.5237C10.4348 15.1488 11.2826 15.5 12.1667 15.5C13.0507 15.5 13.8986 15.1488 14.5237 14.5237C15.1488 13.8986 15.5 13.0507 15.5 12.1667C15.5 11.2826 15.1488 10.4348 14.5237 9.80964C13.8986 9.18452 13.0507 8.83333 12.1667 8.83333V8.83333Z",fill:"#9AA2AC"}))},Rn=k.header(sn||(sn=e(["\n display: flex;\n justify-content: space-between;\n padding: 12px 24px;\n background-color: ",";\n box-shadow: inset 0px 1px 0px #e4e8ec;\n"],["\n display: flex;\n justify-content: space-between;\n padding: 12px 24px;\n background-color: ",";\n box-shadow: inset 0px 1px 0px #e4e8ec;\n"])),E.colors.neutral50),Pn=k.div(un||(un=e(["\n display: grid;\n flex: 2;\n align-items: center;\n gap: 16px;\n grid-template-columns: 16px 1fr;\n"],["\n display: grid;\n flex: 2;\n align-items: center;\n gap: 16px;\n grid-template-columns: 16px 1fr;\n"]))),Fn=k.p(dn||(dn=e(["\n color: ",";\n font-size: 14px;\n font-weight: ",";\n letter-spacing: -0.2px;\n line-height: 22px;\n"],["\n color: ",";\n font-size: 14px;\n font-weight: ",";\n letter-spacing: -0.2px;\n line-height: 22px;\n"])),E.colors.neutral800,E.sizes.fwSemiBold),zn=k.button(pn||(pn=e(["\n flex: 1;\n cursor: pointer;\n text-align: end;\n"],["\n flex: 1;\n cursor: pointer;\n text-align: end;\n"]))),An=k.section(hn||(hn=e(["\n padding: 12px 16px;\n --rowGap: 16px;\n --graphicSize: 32px;\n\n "," {\n --rowGap: 8px;\n }\n"],["\n padding: 12px 16px;\n --rowGap: 16px;\n --graphicSize: 32px;\n\n "," {\n --rowGap: 8px;\n }\n"])),L.tdUp),Tn=k.ul(gn||(gn=e(["\n --gap: 16px;\n "," {\n --gap: 8px;\n }\n\n display: grid;\n overflow: hidden;\n gap: var(--gap);\n transition: max-height 0.8s ease-out;\n\n ","\n\n ","\n\n@media (prefers-reduced-motion) {\n transition: none;\n }\n\n "," {\n grid-template-columns: 1fr 1fr;\n } ;\n"],["\n --gap: 16px;\n "," {\n --gap: 8px;\n }\n\n display: grid;\n overflow: hidden;\n gap: var(--gap);\n transition: max-height 0.8s ease-out;\n\n ","\n\n ","\n\n@media (prefers-reduced-motion) {\n transition: none;\n }\n\n "," {\n grid-template-columns: 1fr 1fr;\n } ;\n"])),L.tdUp,(function(e){return e.isMore&&"\n height: auto;\n max-height: 0;\n margin-top: var(--gap);\n "}),(function(e){return e.isShown&&"\n max-height: 600px;\n "}),L.tdUp),Nn=k(b)(mn||(mn=e(["\n margin-top: 12px;\n margin-bottom: 8px;\n cursor: pointer;\n text-align: start;\n text-transform: capitalize;\n"],["\n margin-top: 12px;\n margin-bottom: 8px;\n cursor: pointer;\n text-align: start;\n text-transform: capitalize;\n"]))),Bn=function(e){var n=e.type,t=e.data,o=e.state,i=e.dispatch,l=e.itemsToShow,s=e.itemsToShowDesktop,u=e.isMobile,d=e.isLoading,p=e.keyword,g=c(!1),f=g[0],C=g[1],v=m(),x=v.t,y=v.locale,w=o.selectedLocation,L=o.searchKeywords,k=r((function(){return h[y]}),[y]),S=r((function(){return{doctors:{name:x("booking.searchPopup.doctors"),icon:a.createElement(kn,null),slug:k.DOCTOR},services:{name:x("booking.searchPopup.services"),icon:a.createElement(Sn,null),slug:k.SERVICE},hospitals:{name:x("booking.searchPopup.hospitals"),icon:a.createElement(Mn,null),slug:k.HOSPITAL},specialties:{name:x("booking.searchPopup.specialties"),icon:a.createElement(In,null),slug:k.SPECIALTIES}}}),[n,k]),I=r((function(){return S[n].slug}),[S]),R=u?l:s;function P(e){var t="";switch(n){case"specialties":t="/".concat(w.slug,"/").concat(S.doctors.slug,"/").concat(e.slug);break;case"services":t="/".concat(w.slug,"/").concat(I,"/").concat(e.slug);break;case"doctors":case"hospitals":t="/".concat(I,"/").concat(e.slug,"-").concat(e.id)}t&&i({type:Ie.SelectSearchResult,payload:{name:e.name,url:t}})}function F(e){return a.createElement(Ln,{key:e.id,item:e,type:n,imageUrl:e.logo||e.avatar||e.thumbnail,onClickItem:P})}return a.createElement("section",null,a.createElement(Rn,null,a.createElement(Pn,null,S[n].icon,a.createElement(Fn,null,S[n].name)),p.trim().length<=Ne[y]&&a.createElement(zn,{onClick:function(){var e="";switch(n){case"specialties":e="/".concat(I);break;case"services":case"doctors":case"hospitals":e="/".concat(w.slug,"/").concat(I)}e&&i({type:Ie.NavigateTo,payload:e})}},a.createElement(b,{size:"p3",color:E.colors.primaryBase},x("booking.searchPopup.seeAll")))),(d||t&&t.length>0)&&a.createElement(An,null,a.createElement(Tn,null,d&&Array(2).fill(void 0).map((function(e,t){return a.createElement(Cn,{key:n+"loading"+t},a.createElement(yn,null,a.createElement(wn,null,a.createElement(M,{height:14,width:"hospitals"===n?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),a.createElement(M,{width:120,height:24}))})),!d&&t&&t.length>0&&t.slice(0,R).map(F)),a.createElement(Tn,{isShown:f,isMore:!0},t.slice(R,-1).map(F)),"specialties"===n&&R<t.length&&!d&&a.createElement("button",{onClick:function(){return C(!f)}},a.createElement(Nn,{size:"p3",color:E.colors.primaryBase},x(f?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==n&&R<t.length&&!d&&p.trim().length>Ne[y]&&a.createElement("button",{onClick:function(){var e=S[n].slug,t="/".concat(w.slug,"/").concat(e,"?q=").concat(L);i({type:Ie.NavigateTo,payload:t})}},a.createElement(Nn,{size:"p3",color:E.colors.primaryBase},x("booking.searchPopup.searchIn.".concat(n),{name:p})))),!d&&0===(null==t?void 0:t.length)&&a.createElement(An,null,a.createElement(b,{size:"sm",color:E.colors.gray400},x("booking.searchBar.noResults"))))},Hn=k.section(fn||(fn=e(["\n background-color: white;\n border-radius: 4px;\n position: absolute;\n width: 100%;\n z-index: 30;\n\n "," {\n box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),\n 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n }\n"],["\n background-color: white;\n border-radius: 4px;\n position: absolute;\n width: 100%;\n z-index: 30;\n\n "," {\n box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),\n 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n }\n"])),L.tdUp),Vn=function(e){var n=e.data,t=e.state,o=e.dispatch,i=e.isMobile,r=e.isLoading,c=e.keyword;return a.createElement(Hn,null,n&&n.map((function(e){return a.createElement(Bn,{type:e.type,state:t,dispatch:o,itemsToShow:2,itemsToShowDesktop:4,key:e.type,data:e.results,isMobile:i,isLoading:r,keyword:c})})))},Dn="api/lists/cities?keyword={keyword}&country_id={countryId}&site={domain}&_nopaging={noPaging}",On="api/v2/search/?site={domain}&type={searchType}&keyword={keyword}&city_id={city}&latitude={lat}&longitude={lng}",Kn="api/geobyip?site={domain}&latitude={lat}&longitude={lng}",Zn=function(e,n,o){return F(e,t(t({},n),{domain:f[o||"en-PH"]}))};var _n,jn=function(e){var n=e.isMobile,f=e.careApiDomain,b=e.geoLocationPermission,w=e.geoLocationCoordinates,E=e.initialSelectedCity,L=e.initialSearchValue,k=void 0===L?"":L,S=e.careFrontDomain,M=void 0===S?"/care":S,I=e.isDebug,R=void 0!==I&&I,P=e.askForGeolocationPermission,F=void 0!==P&&P,z=e.gaTrackingSearchBar,A=e.gaTrackingLocationSearch,T=e.autoCompleteDisabled,N=void 0!==T&&T,B=e.inputSearchPlaceholder,H=void 0===B?"":B,V=e.routerPush,D=e.onGeoLocationPermissionChange,O=e.onSearch,K=e.onChangeLocation,Z=m(),_=Z.t,q=Z.locale,Y=u(null),J=u(null),X=c(void 0),$=X[0],ee=X[1],ne=function(){var e=c((function(){if("undefined"==typeof window)return"unset";if(C(g))return"granted";var e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),n=e[0],t=e[1],o=c((function(){if("undefined"==typeof window)return null;var e=C(g);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),i=o[0],a=o[1],s=l((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){var n={lat:"".concat(Math.round(1e7*e.coords.latitude)/1e7),lng:"".concat(Math.round(1e7*e.coords.longitude)/1e7)};v(g,JSON.stringify(n),0,15),a(n),t("granted")}),(function(){x(g),t("denied")}))}),[]);return r((function(){return{geoLocationPermission:n,geoLocationCoordinates:i,requestGeoLocation:s}}),[n,i])}(),te=ne.geoLocationPermission,oe=ne.geoLocationCoordinates,ie=ne.requestGeoLocation,ae=d(Ve,Be,(function(e){return t(t({},e),{isDebug:R,isMobile:n,geoLocationPermission:b||te||"unset",geoLocationCoordinates:w||oe||null,searchKeywords:k,initialSelectedCity:E||null,selectedLocation:E||e.selectedLocation||null,searchLocationKeywords:(null==E?void 0:E.name)||e.searchLocationKeywords,autoCompleteDisabled:N,inputSearchPlaceholder:H,locale:q})})),re=ae[0],le=ae[1],se=re.navigateTo,ue=re.focused,de=re.isLoadingCities,pe=re.cities,he=re.searchKeywords,ge=re.geoLocationPermission,me=re.selectedLocation,fe=re.initialSelectedCity,Ce=re.defaultCity,ve=re.searchResults,xe=re.isLoadingSearchResults,ye=re.isMobileModalOpened,be=re.inputSearchPlaceholder,Ee=function(e){var n=e.dispatch,o=e.careApiDomain,i=e.locale,a=void 0===i?"vi-VN":i,r=l((function(e,t){void 0===t&&(t={});var i="".concat(o).concat(e);return n({type:Ie.FetchCitiesStart}),fetch(Zn(i,t,a),{method:"GET"}).then((function(e){return e.json()})).then((function(e){return 1===e._status&&e._data?null==e?void 0:e._data:(console.log("error loading cities",e),Promise.reject(e))})).finally((function(){return n({type:Ie.FetchCitiesFinish})}))}),[a]),c=l((function(e){var o=e.coordinates,i={};o&&(i={lat:o.lat,lng:o.lng});var c=[r(Kn,i)];return"zh-TW"===a&&c.push(r(Dn,{noPaging:1})),Promise.all(c).then((function(e){var o=e[0],i=e[1],a=t({},o);if(i){var r=a.cities.map((function(e){return e.id}));a.cities=a.cities.concat(i.cities.filter((function(e){return!r.includes(e.id)})))}n({type:Ie.FetchCitiesByGeoIpComplete,payload:a})})).catch((function(e){return console.error("error loading cities by location",e)}))}),[a,o,n]);return{fetchCitiesByLocation:c,fetchCitiesByKeyword:l((function(e){return r(Dn,{keyword:e}).then((function(e){n({type:Ie.FetchCitiesByKeywordComplete,payload:e.cities})})).catch((function(e){return console.error("error loading cities by keyword",e)}))}),[a,o,n]),fetchSearchResults:l((function(e,t){var i="".concat(o).concat(On);n({type:Ie.FetchSearchResultsStart});var r=t.defaultCity,c=t.selectedLocation,l=t.geoLocationCoordinates,s="";if(c&&r){c.id===p?l||(s=r.id):s=c.id;var u=(null==l?void 0:l.lat)||"",d=(null==l?void 0:l.lng)||"";return fetch(Zn(i,{domain:o,searchType:"global",keyword:e.trim().length>Ne[a]?e.trim():"",city:s===p?"":s,lat:u,lng:d},a),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((function(e){return e.json()})).then((function(e){return 1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e)})).then((function(e){return n({type:Ie.FetchSearchResultsComplete,payload:e})})).catch((function(e){console.log("error loading search results",{url:i,error:e})})).finally((function(){return n({type:Ie.FetchSearchResultsFinish})}))}n({type:Ie.FetchSearchResultsFinish})}),[a,o,n])}}({dispatch:le,locale:q,careApiDomain:f}),Le=Ee.fetchCitiesByLocation,ke=Ee.fetchCitiesByKeyword,Se=Ee.fetchSearchResults,Me=r((function(){var e;return{id:p,name:_("booking.searchBar.currentLocation"),slug:null===(e=h[q])||void 0===e?void 0:e.CURRENT}}),[_,q]),Re=r((function(){return y(ke,400)}),[ke]),Pe=r((function(){return y(Se,400)}),[Se]);s((function(){""!==k&&k!==re.searchKeywords&&le({type:Ie.UpdateInitialSearchValue,payload:k})}),[k]),s((function(){F&&(null==me?void 0:me.id)===p&&"unset"===ge&&ie()}),[F,me,ge]),s((function(){b||ge===te||("granted"===te&&oe?le({type:Ie.GrantGeoLocationPermission,payload:oe}):"denied"===te&&le({type:Ie.DenyGeoLocationPermission}))}),[ge,te,oe,b]),s((function(){se&&(V?V(se):window.location.href="".concat(M).concat(se))}),[se]);var Fe=l((function(){le({type:Ie.SelectCurrentLocation,payload:Me})}),[_,le]);s((function(){"denied"===ge||fe||Fe(),D&&D(ge,re.geoLocationCoordinates),n&&"granted"===ge&&me&&le({type:Ie.FocusInputSearch}),Le({coordinates:re.geoLocationCoordinates})}),[ge]),s((function(){me&&Ce&&Se(re.searchKeywords,re)}),[me,Ce]),s((function(){H!==be&&le({type:Ie.SetInputSearchPlaceholder,payload:H})}),[H,be]),s((function(){ye?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[ye]);var ze=l((function(e){le({type:Ie.SelectLocation,payload:e}),De(),K&&K(e)}),[_,le]);function Ae(){n&&"granted"!==re.geoLocationPermission?ie():(Fe(),De())}function He(){var e;Y.current&&(null===(e=Y.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function De(){var e;Y.current&&(null===(e=Y.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Oe(){le({type:Ie.CloseMobileModal})}function Ke(){return"location"!==ue?null:a.createElement(ce,{isLoading:de,cities:pe,onLocationClick:ze,onCurrentLocationClick:Ae,isLocationLoading:de,geoLocationPermission:ge,selectedLocation:me})}function Ze(){return"search"!==ue?null:re.autoCompleteDisabled?n?a.createElement(We,{onClick:function(){O({cityId:re.selectedLocation.id,keyword:he}),Oe()}}):null:a.createElement(Vn,{data:ve,state:re,dispatch:le,isMobile:!1,keyword:he,isLoading:xe})}function _e(){return a.createElement(nn,{isMobile:n,state:re,dispatch:le,debouncedFetchCitiesByKeyword:Re,debouncedFetchSearchResults:Pe,focusLocationInput:He,focusSearchInput:De,renderLocationResults:Ke,renderSearchResults:Ze,trackingAttributes:z,locationTrackingAttributes:A,onSearch:O,initalSearchValue:k})}return s((function(){if(window.visualViewport){var e=function(e){var n=e.target;ee(null==n?void 0:n.height)};return window.visualViewport.addEventListener("resize",e),function(){window.visualViewport.removeEventListener("resize",e)}}}),[ee]),n?a.createElement(a.Fragment,null,a.createElement(W,null),a.createElement(Q,{ref:J}),a.createElement(G,{id:"booking-search-bar",ref:Y,"data-is-modal":n&&ye,style:{"--mobile-care-searchbar-height":ye&&$?"".concat($,"px"):"100%"}},ye?a.createElement(a.Fragment,null,a.createElement(U,null,a.createElement(Te,{headingText:_("booking.searchBar.searchButton"),onLeftClick:Oe}),_e()),Ke(),Ze()):a.createElement(we,{onClick:function(){var e;return o(this,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return J.current&&J.current.focus(),le({type:Ie.OpenMobileModal}),[4,Promise.resolve()];case 1:return n.sent(),Y.current&&(null===(e=Y.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus()),[2]}}))}))},focused:ue,value:he,trackingAttributes:z,inputSearchPlaceholder:H}))):a.createElement(j,{id:"booking-search-bar",ref:Y},_e())};!function(e){e[e.SPECIALTY=1]="SPECIALTY",e[e.DOCTOR=2]="DOCTOR",e[e.CLINIC=3]="CLINIC",e[e.SERVICE=4]="SERVICE"}(_n||(_n={}));var Gn=Object.freeze({__proto__:null,get RedirectType(){return _n}});export{jn as B,Gn as t};
|