@hhgtech/hhg-components 1.21.71 → 1.21.73
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/components/mantine/slider/index.d.ts +2 -1
- package/build/components/molecules/embeddedHeathToolCards/due-date/dueDate.d.ts +1 -1
- package/build/components/molecules/embeddedHeathToolCards/pwg/pwg.d.ts +1 -1
- package/build/components.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/{index-a8ef2475.js → index-83e62e9e.js} +1 -1
- package/build/esm/index-fb09bdb5.js +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-6df33ed0.js → index.styled-76c347aa.js} +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{types-3a3427d9.js → types-4cc9bd97.js} +1 -1
- package/build/index-22e800ad.js +1 -0
- package/build/{index-124146b4.js → index-e580b421.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-84334515.js → index.styled-900067b5.js} +1 -1
- package/build/mantine.js +1 -1
- package/build/navigation.js +1 -1
- package/build/together.js +1 -1
- package/build/{types-516276a6.js → types-03bcd5c0.js} +1 -1
- package/package.json +1 -1
- package/build/esm/index-21a847c6.js +0 -1
- package/build/index-ac0df431.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-e6f346c4.js"),t=require("react"),l=require("./core-97cd306c.js"),a=require("./index.styled-213d989f.js"),n=require("./index.styled-84334515.js");require("react-id-generator");var i=require("date-fns");require("react-day-picker/DayPickerInput");var o=require("lodash/debounce");require("react-dom");var r=require("./index-1daf49d3.js"),s=require("lodash");require("keen-slider/react");var u=require("./gAssets.js"),c=require("./screenSizeContext-8f86eb30.js");require("react-range"),require("styled-components");var d=require("./getDynamicHealthTool-1d292d71.js");require("./Locale-11b51016.js");var m=require("@mantine/core");require("./translationsContext-170d42d0.js");var f=require("string-format"),h=require("./index-d28c27ca.js");require("react-hook-form"),require("./theme-f97a1fea.js"),require("@mantine/hooks"),require("./isProduction-32e6a55a.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW");var g=require("./constants-ca5ea110.js"),v=require("./useTranslations-5897b4e1.js"),p=require("./index-740c6f7b.js"),E=require("./theme-696d81a9.js"),y=require("./cookieHelper-612b90fa.js");function C(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var w=C(t),L=C(o),b=C(f),S=function(t){return w.default.createElement("img",e.__assign({src:u.CommonGAssets.getAssetPath("flags/cambodiaRound.png"),style:e.__assign({borderRadius:"50%"},t.style)},t))},k=function(t){return w.default.createElement("img",e.__assign({src:u.CommonGAssets.getAssetPath("flags/cambodiaSquare.png")},t))},A=function(t){return w.default.createElement("svg",e.__assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e.__assign({borderRadius:"50%"},t.style)},t),w.default.createElement("g",null,w.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},w.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),w.default.createElement("path",{d:"M7.49953 0.327881C5.47199 0.850891 3.69346 1.98591 2.37793 3.53444L7.49953 6.6655V0.327881Z",fill:"#3F51B5"}),w.default.createElement("path",{d:"M2.30273 16.3824C3.62476 17.9749 5.4353 19.1399 7.50034 19.6729V13.2053L2.30273 16.3824Z",fill:"#3F51B5"}),w.default.createElement("path",{d:"M0.328125 12.5C0.334625 12.526 0.341125 12.5515 0.348125 12.5775L0.474128 12.5H0.328125Z",fill:"white"}),w.default.createElement("path",{d:"M17.7871 3.73445C16.4571 2.08391 14.6131 0.872891 12.499 0.327881V6.96651L17.7871 3.73445Z",fill:"#3F51B5"}),w.default.createElement("path",{d:"M12.499 19.6722C14.6506 19.1172 16.5196 17.8707 17.8546 16.1752L12.499 12.9021V19.6722Z",fill:"#3F51B5"}),w.default.createElement("path",{d:"M0.376626 7.31055C0.359125 7.37305 0.344125 7.43705 0.328125 7.50005H0.686632L0.376626 7.31055Z",fill:"white"}),w.default.createElement("path",{d:"M19.8745 8.50006C19.827 8.18506 19.7655 7.87555 19.6895 7.57104L18.1699 8.50006H19.8745Z",fill:"white"}),w.default.createElement("path",{d:"M0.686034 7.50024H0.327527C0.243026 7.82775 0.175524 8.16076 0.124023 8.50026H2.32207L0.686034 7.50024Z",fill:"white"}),w.default.createElement("path",{d:"M19.7197 12.3148C19.7832 12.0473 19.8337 11.7752 19.8752 11.5002H18.3867L19.7197 12.3148Z",fill:"white"}),w.default.createElement("path",{d:"M2.10956 11.5002H0.124023C0.175024 11.8398 0.243026 12.1728 0.327527 12.5003H0.47403L2.10956 11.5002Z",fill:"white"}),w.default.createElement("path",{d:"M8.50002 7.27665V0.124512C8.16051 0.175513 7.82751 0.243514 7.5 0.328016V6.66564L8.50002 7.27665Z",fill:"white"}),w.default.createElement("path",{d:"M11.5 12.2913V19.8759C11.8395 19.8249 12.1725 19.7569 12.5 19.6724V12.9023L11.5 12.2913Z",fill:"white"}),w.default.createElement("path",{d:"M7.5 13.205V19.6721C7.82751 19.7566 8.16051 19.8241 8.50002 19.8756V12.594L7.5 13.205Z",fill:"white"}),w.default.createElement("path",{d:"M11.5925 7.34715L11.7345 7.43415L12.5 6.96614V0.328016C12.1725 0.243514 11.8395 0.176013 11.5 0.124512V7.49865L11.5925 7.34715Z",fill:"white"}),w.default.createElement("path",{d:"M2.32251 8.50002H7.01761L8.50014 7.594V7.277L7.50011 6.66548L2.37852 3.53442C1.95151 4.03743 1.572 4.58144 1.24949 5.16296L5.02507 7.5H2.29701L0.650482 6.47648C0.54748 6.74949 0.455478 7.02699 0.375977 7.3105L0.686483 7.5L2.32251 8.50002Z",fill:"white"}),w.default.createElement("path",{d:"M11.7344 7.43419L13.4784 8.50021H18.171L19.6905 7.57119C19.528 6.92118 19.303 6.29767 19.02 5.70516L16.139 7.50019H13.4109L18.317 4.45013C18.1515 4.20313 17.9735 3.96562 17.7875 3.73462L12.4999 6.96618L11.7344 7.43419Z",fill:"white"}),w.default.createElement("path",{d:"M5.02448 7.50013L1.2494 5.16309C1.0169 5.58259 0.821394 6.0231 0.650391 6.47661L2.29642 7.50013H5.02448Z",fill:"#E53935"}),w.default.createElement("path",{d:"M16.1392 7.50024L19.0207 5.70521C18.8132 5.2702 18.5837 4.84819 18.3177 4.45068L13.4111 7.50024H16.1392Z",fill:"#E53935"}),w.default.createElement("path",{d:"M11.5 11.5002V12.2913L12.5 12.9023L17.8556 16.1758C18.2416 15.6853 18.5836 15.1593 18.8736 14.6008L15.4856 12.5003H18.2136L19.4432 13.2673C19.5507 12.9563 19.6432 12.6393 19.7197 12.3153L18.3871 11.5002H11.5Z",fill:"white"}),w.default.createElement("path",{d:"M13.4785 8.50019L11.7345 7.43417L11.5925 7.34717L11.5 7.49867V8.50019H13.4785Z",fill:"white"}),w.default.createElement("path",{d:"M8.49934 12.5943V11.5002H2.10921L0.473182 12.5003L0.34668 12.5778C0.522683 13.2383 0.762688 13.8713 1.06319 14.4708L4.16375 12.5003H6.89181L1.80071 15.7168C1.95971 15.9448 2.12471 16.1688 2.30172 16.3823L7.49932 13.2053L8.49934 12.5943Z",fill:"white"}),w.default.createElement("path",{d:"M7.01758 8.50026H8.50011V7.59424L7.01758 8.50026Z",fill:"white"}),w.default.createElement("path",{d:"M15.4854 12.5L18.8729 14.6C19.0949 14.173 19.2834 13.727 19.4429 13.2665L18.2134 12.5H15.4854Z",fill:"#E53935"}),w.default.createElement("path",{d:"M4.16501 12.5L1.06445 14.4705C1.28196 14.9045 1.52596 15.3216 1.80197 15.7166L6.89307 12.5H4.16501Z",fill:"#E53935"}),w.default.createElement("path",{d:"M13.4785 8.5H11.5V11.5001H18.3871H19.8757C19.9497 11.0095 20.0002 10.511 20.0002 10C20.0002 9.48902 19.9497 8.99051 19.8757 8.5H18.1711H13.4785Z",fill:"#E53935"}),w.default.createElement("path",{d:"M8.50017 11.5001V8.5H7.01764H2.32255H0.124502C0.050501 8.99051 0 9.48902 0 10C0 10.511 0.050501 11.0095 0.124502 11.5001H2.11004H8.50017Z",fill:"#E53935"}),w.default.createElement("path",{d:"M11.5001 19.8759V12.2912V11.5002V8.50016V7.49865V0.124502C11.0095 0.050501 10.511 0 10 0C9.48902 0 8.99051 0.050501 8.5 0.124502V7.27664V7.59365V8.50016V11.5002V12.5942V19.8759C8.99051 19.9499 9.48902 20.0004 10 20.0004C10.511 20.0004 11.0095 19.9499 11.5001 19.8759Z",fill:"#E53935"})))},M=function(t){return w.default.createElement("svg",e.__assign({viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),w.default.createElement("g",null,w.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"5",width:"24",height:"16"},w.default.createElement("path",{d:"M1.08301 7.41675C1.08301 6.31218 1.97844 5.41675 3.08301 5.41675H22.9163C24.0209 5.41675 24.9163 6.31218 24.9163 7.41675V18.5834C24.9163 19.688 24.0209 20.5834 22.9163 20.5834H3.08301C1.97844 20.5834 1.08301 19.688 1.08301 18.5834V7.41675Z",fill:"#3F51B5"})),w.default.createElement("path",{d:"M1.08301 5.41675H24.9163V20.5834H1.08301V5.41675Z",fill:"#3F51B5"}),w.default.createElement("path",{d:"M1.08301 7.70041L12.3551 14.5899L14.05 11.8165L3.57901 5.41675H1.08301V7.70041Z",fill:"white"}),w.default.createElement("path",{d:"M24.9165 5.41675H22.9616L12.4912 11.816L14.1855 14.5899L24.9165 8.03083V5.41675Z",fill:"white"}),w.default.createElement("path",{d:"M14.1855 10.9802L12.4912 13.7536L23.6658 20.5834H24.9165V17.5387L14.1855 10.9802Z",fill:"white"}),w.default.createElement("path",{d:"M1.08301 17.8702V20.5834H2.87592L14.05 13.7541L12.3556 10.9802L1.08301 17.8702Z",fill:"white"}),w.default.createElement("path",{d:"M1.08301 10.8333H24.9163V15.1666H1.08301V10.8333Z",fill:"white"}),w.default.createElement("path",{d:"M10.833 5.41675H15.1663V20.5834H10.833V5.41675Z",fill:"white"}),w.default.createElement("path",{d:"M9.32609 10.8334L1.08301 5.79537V7.06504L7.24826 10.8334H9.32609ZM24.0004 5.41675L15.1376 10.8334H17.2149L24.9163 6.12687V5.41675H24.0004ZM17.9191 15.1667L24.9163 19.4432V18.1735L19.9964 15.1667H17.9191ZM8.62192 15.1667L1.08301 19.7742V20.5834H1.83701L10.6992 15.1667H8.62192ZM1.08301 11.9167H24.9163V14.0834H1.08301V11.9167Z",fill:"#E53935"}),w.default.createElement("path",{d:"M11.917 5.41675H14.0837V20.5834H11.917V5.41675Z",fill:"#E53935"})))},_=function(t){return w.default.createElement("img",e.__assign({src:u.CommonGAssets.getAssetPath("flags/indiaRound.png"),style:e.__assign({borderRadius:"50%"},t.style)},t))},P=function(t){return w.default.createElement("img",e.__assign({src:u.CommonGAssets.getAssetPath("flags/indiaSquare.png")},t))},x=function(l){var a=l.isTesting,n=e.__rest(l,["isTesting"]),i=t.useRef("id-flag-round-mask-"+(a?1:Math.random()));return w.default.createElement("svg",e.__assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),w.default.createElement("mask",{id:i.current,style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},w.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),w.default.createElement("g",{mask:"url(#".concat(i.current,")")},w.default.createElement("rect",{width:"20",height:"10",fill:"#CE1126"}),w.default.createElement("rect",{y:"10",width:"20",height:"10",fill:"white"})))},H=function(l){var a=l.isTesting,n=e.__rest(l,["isTesting"]),i=t.useRef("id-flag-clip-"+(a?1:Math.random()));return w.default.createElement("svg",e.__assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),w.default.createElement("g",{clipPath:"url(#".concat(i.current,")")},w.default.createElement("rect",{y:"0.0166016",width:"24",height:"8",fill:"#CE1126"}),w.default.createElement("rect",{y:"8.0166",width:"24",height:"8",fill:"white"})),w.default.createElement("defs",null,w.default.createElement("clipPath",{id:i.current},w.default.createElement("rect",{width:"24",height:"16",rx:"2",fill:"white"}))))},T=function(t){return w.default.createElement("svg",e.__assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e.__assign({borderRadius:"50%"},t.style)},t),w.default.createElement("g",null,w.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},w.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),w.default.createElement("rect",{y:"1",width:"20",height:"20",fill:"#CC0001"}),w.default.createElement("rect",{y:"16.106",width:"20",height:"1.02041",fill:"white"}),w.default.createElement("rect",{y:"16",width:"20",height:"1.02041",fill:"white"}),w.default.createElement("rect",{y:"18",width:"20",height:"1.02041",fill:"white"}),w.default.createElement("rect",{y:"14.0652",width:"20",height:"1.02041",fill:"white"}),w.default.createElement("rect",{y:"12.0242",width:"20",height:"1.02041",fill:"white"}),w.default.createElement("rect",{y:"9.9834",width:"20",height:"1.02041",fill:"white"}),w.default.createElement("rect",{y:"7.94263",width:"20",height:"1.02041",fill:"white"}),w.default.createElement("rect",{y:"5.90186",width:"20",height:"1.02041",fill:"white"}),w.default.createElement("rect",{y:"3.86084",width:"20",height:"1.02041",fill:"white"}),w.default.createElement("rect",{y:"2",width:"20",height:"1.02041",fill:"white"}),w.default.createElement("rect",{width:"20",height:"1.02041",fill:"white"}),w.default.createElement("rect",{y:"-1",width:"10",height:"12",fill:"#010066"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.11387 3.86084C2.92711 3.86084 1.96387 5.23232 1.96387 6.92206C1.96387 8.6118 2.92711 9.98329 4.11387 9.98329C4.54263 9.98329 4.94211 9.80406 5.27763 9.4957C5.08225 9.59203 4.87256 9.64471 4.65427 9.64471C3.60193 9.64471 2.74786 8.42866 2.74786 6.93032C2.74786 5.43198 3.60193 4.21594 4.65427 4.21594C4.88682 4.21594 5.10959 4.27527 5.31571 4.38397C4.97256 4.0538 4.5589 3.86084 4.11387 3.86084Z",fill:"#FFCC00"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.67935 8.51573L6.7737 7.8407L7.04147 9.22221L6.43573 8.06657L6.24676 9.47313L6.0609 8.06576L5.4526 9.2188L5.72343 7.83844L4.81629 8.50957L5.49017 7.42963L4.46387 7.48593L5.40732 6.9203L4.46512 6.35062L5.4913 6.41133L4.81981 5.3285L5.72546 6.00353L5.45769 4.62202L6.06343 5.77766L6.25241 4.37109L6.43827 5.77847L7.04656 4.62543L6.77574 6.00579L7.68287 5.33466L7.00899 6.4146L8.0353 6.3583L7.09184 6.92392L8.03404 7.49361L7.00786 7.43289L7.67935 8.51573Z",fill:"#FFCC00"})))},N=function(t){return w.default.createElement("svg",e.__assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),w.default.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#CC0001"}),w.default.createElement("rect",{y:"12.2712",width:"24",height:"0.777454",fill:"white"}),w.default.createElement("rect",{y:"12.1904",width:"24",height:"0.777454",fill:"white"}),w.default.createElement("rect",{y:"13.7144",width:"24",height:"0.777454",fill:"white"}),w.default.createElement("rect",{y:"10.7161",width:"24",height:"0.777454",fill:"white"}),w.default.createElement("rect",{y:"9.16138",width:"24",height:"0.777454",fill:"white"}),w.default.createElement("rect",{y:"7.60645",width:"24",height:"0.777454",fill:"white"}),w.default.createElement("rect",{y:"6.05127",width:"24",height:"0.777454",fill:"white"}),w.default.createElement("rect",{y:"4.49658",width:"24",height:"0.777454",fill:"white"}),w.default.createElement("rect",{y:"2.94141",width:"24",height:"0.777454",fill:"white"}),w.default.createElement("rect",{y:"1.52393",width:"24",height:"0.777454",fill:"white"}),w.default.createElement("rect",{width:"24",height:"0.777454",fill:"white"}),w.default.createElement("path",{d:"M0 2C0 0.895431 0.895431 0 2 0H12V8.38095H0V2Z",fill:"#010066"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.93644 1.52393C3.51233 1.52393 2.35645 2.56887 2.35645 3.85629C2.35645 5.14371 3.51233 6.18865 4.93644 6.18865C5.45096 6.18865 5.93034 6.05209 6.33296 5.81716C6.09851 5.89054 5.84688 5.93068 5.58492 5.93068C4.32212 5.93068 3.29724 5.00417 3.29724 3.86258C3.29724 2.72099 4.32212 1.79448 5.58492 1.79448C5.86399 1.79448 6.13132 1.83968 6.37865 1.9225C5.96688 1.67094 5.47049 1.52393 4.93644 1.52393Z",fill:"#FFCC00"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.216 5.07041L8.12923 4.55611L8.45055 5.60869L7.72366 4.72819L7.49689 5.79987L7.27386 4.72758L6.5439 5.60609L6.86889 4.55439L5.78033 5.06572L6.58899 4.24291L5.35742 4.28581L6.48957 3.85485L5.35893 3.42081L6.59034 3.46707L5.78456 2.64205L6.87133 3.15636L6.55001 2.10378L7.2769 2.98427L7.50367 1.9126L7.7267 2.98488L8.45666 2.10638L8.13166 3.15808L9.22022 2.64674L8.41157 3.46955L9.64314 3.42666L8.51099 3.85761L9.64163 4.29165L8.41022 4.2454L9.216 5.07041Z",fill:"#FFCC00"}))},B=function(t){return w.default.createElement("svg",e.__assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e.__assign({borderRadius:"50%"},t.style)},t),w.default.createElement("g",null,w.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},w.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),w.default.createElement("rect",{x:"-4",y:"-1",width:"28",height:"11",fill:"#FECB00"}),w.default.createElement("rect",{x:"-4",y:"10",width:"28",height:"10",fill:"#EA2839"}),w.default.createElement("rect",{x:"-4",y:"6.7041",width:"28",height:"6.47773",fill:"#34B233"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.56543 10.3272L10.1796 5.15527L11.7938 10.3272H8.56543Z",fill:"white"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5292 11.2775L7.18336 14.5129L8.91745 9.37991L11.5292 11.2775Z",fill:"white"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.75181 11.8648L5.33182 8.73143L10.7494 8.79447L9.75181 11.8648Z",fill:"white"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.6105 8.78962L15.0281 8.72658L10.6081 11.86L9.6105 8.78962Z",fill:"white"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4424 9.37686L13.1765 14.5098L8.83064 11.2744L11.4424 9.37686Z",fill:"white"})))},R=function(t){return w.default.createElement("svg",e.__assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),w.default.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#FECB00"}),w.default.createElement("rect",{y:"8.3811",width:"24",height:"7.61905",rx:"2",fill:"#EA2839"}),w.default.createElement("rect",{y:"5.86987",width:"24",height:"4.93542",fill:"#34B233"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.7705 8.63046L12.1541 4.68994L13.5377 8.63046H10.7705Z",fill:"white"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.3108 9.35502L9.58574 11.8201L11.0721 7.90925L13.3108 9.35502Z",fill:"white"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7874 9.80216L7.99884 7.41482L12.6425 7.46285L11.7874 9.80216Z",fill:"white"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6667 7.4589L16.3104 7.41087L12.5218 9.79821L11.6667 7.4589Z",fill:"white"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2361 7.90629L14.7225 11.8171L10.9974 9.35207L13.2361 7.90629Z",fill:"white"}))},I=function(t){return w.default.createElement("img",e.__assign({src:u.CommonGAssets.getAssetPath("flags/philippineRound.png"),style:e.__assign({borderRadius:"50%"},t.style)},t))},U=function(t){return w.default.createElement("img",e.__assign({src:u.CommonGAssets.getAssetPath("flags/philippineSquare.png")},t))},G=function(t){return w.default.createElement("svg",e.__assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e.__assign({borderRadius:"50%"},t.style)},t),w.default.createElement("g",null,w.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},w.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),w.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#D8D8D8"}),w.default.createElement("g",null,w.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},w.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"white"})),w.default.createElement("rect",{width:"30",height:"20",fill:"#ED1E24"}),w.default.createElement("rect",{width:"15",height:"10",fill:"#2B2F84"}),w.default.createElement("circle",{cx:"7.49791",cy:"4.99913",r:"1.869",fill:"white"}),w.default.createElement("path",{d:"M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z",fill:"white"}),w.default.createElement("path",{d:"M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z",fill:"white"}),w.default.createElement("path",{d:"M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z",fill:"white"}),w.default.createElement("path",{d:"M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z",fill:"white"}),w.default.createElement("path",{d:"M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z",fill:"white"}),w.default.createElement("path",{d:"M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z",fill:"white"}),w.default.createElement("path",{d:"M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z",fill:"white"}),w.default.createElement("path",{d:"M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z",fill:"white"}),w.default.createElement("path",{d:"M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z",fill:"white"}),w.default.createElement("path",{d:"M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z",fill:"white"}),w.default.createElement("path",{d:"M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z",fill:"white"}),w.default.createElement("path",{d:"M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z",fill:"white"}))))},D=function(t){return w.default.createElement("svg",e.__assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),w.default.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#ED1E24"}),w.default.createElement("path",{d:"M0 2C0 0.89543 0.895431 0 2 0H15V10H0V2Z",fill:"#2B2F84"}),w.default.createElement("circle",{cx:"7.49791",cy:"4.99913",r:"1.869",fill:"white"}),w.default.createElement("path",{d:"M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z",fill:"white"}),w.default.createElement("path",{d:"M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z",fill:"white"}),w.default.createElement("path",{d:"M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z",fill:"white"}),w.default.createElement("path",{d:"M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z",fill:"white"}),w.default.createElement("path",{d:"M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z",fill:"white"}),w.default.createElement("path",{d:"M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z",fill:"white"}),w.default.createElement("path",{d:"M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z",fill:"white"}),w.default.createElement("path",{d:"M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z",fill:"white"}),w.default.createElement("path",{d:"M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z",fill:"white"}),w.default.createElement("path",{d:"M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z",fill:"white"}),w.default.createElement("path",{d:"M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z",fill:"white"}),w.default.createElement("path",{d:"M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z",fill:"white"}))},Z=function(t){return w.default.createElement("svg",e.__assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e.__assign({borderRadius:"50%"},t.style)},t),w.default.createElement("g",null,w.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},w.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),w.default.createElement("rect",{x:"-4",y:"-0.0166016",width:"28",height:"20",fill:"#ED1C24"}),w.default.createElement("rect",{x:"-4",y:"3.31665",width:"28",height:"13.3333",fill:"white"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-4 6.65015H24V13.3168H-4V6.65015Z",fill:"#241D4F"})))},V=function(t){return w.default.createElement("svg",e.__assign({viewBox:"0 0 24 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),w.default.createElement("rect",{y:"0.983398",width:"24",height:"16",rx:"2",fill:"#ED1C24"}),w.default.createElement("rect",{y:"3.65039",width:"24",height:"10.6667",fill:"white"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.31689H24V11.6502H0V6.31689Z",fill:"#241D4F"}))},O=function(t){return w.default.createElement("svg",e.__assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e.__assign({borderRadius:"50%"},t.style)},t),w.default.createElement("g",null,w.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},w.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),w.default.createElement("rect",{x:"-4",y:"-0.0166016",width:"28",height:"20",fill:"#DA251D"}),w.default.createElement("path",{d:"M11.7228 10.8677L14.2819 9.00839L11.1187 9.00839L10.1409 6L9.16316 9.00839L6 9.00839L8.5591 10.8677L7.58184 13.8766L10.1409 12.0168L12.7 13.8766L11.7228 10.8677Z",fill:"#FFEB3B"})))},F=function(t){return w.default.createElement("svg",e.__assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),w.default.createElement("g",null,w.default.createElement("clipPath",null,w.default.createElement("rect",{width:"24",height:"16",fill:"white"})),w.default.createElement("path",{d:"M2.01386e-10 2C0 0.895431 0.895431 -7.50368e-10 2 -1.67599e-09L22 -1.84359e-08C23.1046 -1.93615e-08 24 0.895431 24 2L24 14C24 15.1046 23.1046 16 22 16L2 16C0.89543 16 1.52092e-09 15.1046 1.4097e-09 14L2.01386e-10 2Z",fill:"#DA251D"}),w.default.createElement("path",{d:"M13.7823 8.92854L16.6663 6.8332L13.1016 6.8332L11.9997 3.44287L10.8978 6.8332L7.33301 6.8332L10.217 8.92854L9.11567 12.3195L11.9997 10.2235L14.8837 12.3195L13.7823 8.92854Z",fill:"#FFEB3B"})))},j=function(e){var t,l,n=e.country,i=e.language,o=e.rounded,r=e.height,s=e.width,u=e.isTesting;switch(i){case"en":t=w.default.createElement(M,null),l=w.default.createElement(A,null);break;case"vi":t=w.default.createElement(F,null),l=w.default.createElement(O,null);break;case"id":t=w.default.createElement(H,{isTesting:u}),l=w.default.createElement(x,{isTesting:u});break;case"th":t=w.default.createElement(V,null),l=w.default.createElement(Z,null);break;case"km":t=w.default.createElement(k,null),l=w.default.createElement(S,null);break;case"ms":t=w.default.createElement(N,null),l=w.default.createElement(T,null);break;case"my":t=w.default.createElement(R,null),l=w.default.createElement(B,null);break;case"tl":t=w.default.createElement(U,null),l=w.default.createElement(I,null);break;case"hi":t=w.default.createElement(P,null),l=w.default.createElement(_,null);break;case"zh":t=w.default.createElement(D,null),l=w.default.createElement(G,null)}if(!t&&!l)switch(n){case"VN":t=w.default.createElement(F,null),l=w.default.createElement(O,null);break;case"ID":t=w.default.createElement(H,{isTesting:u}),l=w.default.createElement(x,{isTesting:u});break;case"TH":t=w.default.createElement(V,null),l=w.default.createElement(Z,null);break;case"KH":t=w.default.createElement(k,null),l=w.default.createElement(S,null);break;case"MY":t=w.default.createElement(N,null),l=w.default.createElement(T,null);break;case"MM":t=w.default.createElement(R,null),l=w.default.createElement(B,null);break;case"PH":t=w.default.createElement(U,null),l=w.default.createElement(I,null);break;case"IN":t=w.default.createElement(P,null),l=w.default.createElement(_,null);break;case"TW":t=w.default.createElement(D,null),l=w.default.createElement(G,null)}return w.default.createElement(a.StyledFlag,{theme:{width:s,height:r}},o?l:t)},W=function(e){var l=e.options,i=e.label,o=e.labelRenderer,r=e.selected,s=e.onChange,c=e.showSelected,d=void 0===c||c,m=e.style,f=void 0===m?{}:m,h=e.showIndicator,g=void 0===h||h,v=t.useState(!1),p=v[0],E=v[1];return w.default.createElement(w.default.Fragment,null,w.default.createElement(n.StyledSelectionContainer,null,w.default.createElement(n.StyledSelectionLabel,{onClick:function(){return E((function(e){return!e}))}},i||(null==o?void 0:o(p))||null,w.default.createElement(n.StyleSelectionPopup,{"data-is-open":p,style:f,"data-show-indicator":g},l.map((function(e,t){return w.default.createElement(n.StyledOption,{key:t,"data-selected":d&&r===e.value,onClick:function(t){r!==e.value&&(s(e.value),E((function(e){return!e}))),t.stopPropagation()}},w.default.createElement(a.Text,{size:"p3"},e.label),d&&r===e.value&&w.default.createElement("img",{src:u.CommonGAssets.getAssetPath("check.svg"),alt:"check",className:"check-icon"}))}))))),p&&w.default.createElement(n.StyledPopupBackground,{onClick:function(){return E(!1)}}))},q=function(e){var t,l,a=e.languageOptions,n=e.locale,i=null==a?void 0:a.find((function(e){return e.locale===n}));return(null==a?void 0:a.length)?w.default.createElement(W,{options:a,selected:i.value,label:w.default.createElement($,{locale:n,label:i.label||(null===(l=null===(t=n.split("-"))||void 0===t?void 0:t[0])||void 0===l?void 0:l.toUpperCase())}),onChange:function(e){"undefined"!=typeof window&&(window.location.href=e)},style:{width:100},showSelected:!0,showIndicator:!1}):null},$=function(e){var t,l,a,i=e.locale,o=e.label,r=e.href;return w.default.createElement(n.StyledLanguageChangeLink,{href:r},w.default.createElement(j,{country:null===(l=null===(t=null==i?void 0:i.split("-"))||void 0===t?void 0:t[1])||void 0===l?void 0:l.toUpperCase(),width:16,height:16,rounded:!0,language:null===(a=null==i?void 0:i.split("-"))||void 0===a?void 0:a[0]}),w.default.createElement("span",null,o))},z=function(){return w.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.97183 10.8732C3.97183 7.0617 7.0617 3.97183 10.8732 3.97183C14.6848 3.97183 17.7746 7.0617 17.7746 10.8732C17.7746 14.6848 14.6848 17.7746 10.8732 17.7746C7.0617 17.7746 3.97183 14.6848 3.97183 10.8732ZM10.8732 2C5.97268 2 2 5.97268 2 10.8732C2 15.7738 5.97268 19.7465 10.8732 19.7465C12.9683 19.7465 14.8938 19.0204 16.4118 17.8061L20.3169 21.7112C20.702 22.0963 21.3262 22.0963 21.7112 21.7112C22.0963 21.3262 22.0963 20.702 21.7112 20.3169L17.8061 16.4118C19.0204 14.8938 19.7465 12.9683 19.7465 10.8732C19.7465 5.97268 15.7738 2 10.8732 2Z",fill:"#8C8C8C"}))},K=function(){var e=t.useContext(n.NavigationContext),l=e.locale,i=e.configs.statics,o=e.siteType,r=v.useTranslations().t;return w.default.createElement(a.PureInput,{className:"fake-search-input",name:"search-input-menu-service",size:"md",placeholder:"marryBaby"===o?r("navigation.search.input.placeholder"):r("home.search",{site:h.LOCALE_SPECS[l||"en-PH"]?h.LOCALE_SPECS[l||"en-PH"].SITE_NAME:""}),onChange:function(){},onKeyDown:function(e){return"Enter"===e.key&&(window.location.href="".concat(i.HOME_PAGE_URL,"/search/?s=").concat(e.target.value))},type:"search",onFocus:function(e){e.preventDefault()},displayIcon:w.default.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},w.default.createElement(z,null))})},Y=function(e){var l=e.hrefViewMore,a=e.titleBtnViewMore,i=e.UrlFE,o=e.onClosePopup,s=e.menuItems,c=e.headingTitle,d=t.useContext(n.NavigationContext),m=d.siteType,f=d.isAmp;return w.default.createElement(n.StyledItemGridLeft,null,w.default.createElement(n.StyledHeading,null,w.default.createElement(r.Heading,{tag:"marryBaby"===m?"h5":"h6",as:"h2",fontWeight:"semibold"},c)),null==s?void 0:s.slice(0,6).map((function(e,t){var l=(null==e?void 0:e.link)?(null==e?void 0:e.link.startsWith("http"))?null==e?void 0:e.link:"".concat(i,"/").concat(null==e?void 0:e.link.split("/").filter(Boolean).join("/"),"/"):"/";return w.default.createElement(n.StyledItem,{className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":l,"data-is-heading-category":!1,href:l,"data-theme":m,key:t,onClick:o},w.default.createElement("div",{className:"icon"},f?w.default.createElement("img",{alt:e.name,src:e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32}}):w.default.createElement("img",{className:"lazy",alt:e.name,"data-src":e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32}})),w.default.createElement("p",null,e.name),w.default.createElement(n.StyledIconNav,null,w.default.createElement("img",{src:u.CommonGAssets.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"}})))})),a&&w.default.createElement(n.StyledViewMore,{"data-theme":m,style:{textDecoration:"none"},href:l,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":l},w.default.createElement(n.StyledItemAll,{onClick:o,"data-theme":m,"data-is-heading-category":!1},a,w.default.createElement(n.StyledImageWrapper,null,w.default.createElement("img",{className:"svg",src:"marryBaby"===m?u.CommonGAssets.getAssetPath("chevronRightPink.svg"):u.CommonGAssets.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}})))))},Q=function(e){var l=e.title,a=e.link,i=e.description,o=e.cta,r=e.icon,s=t.useContext(n.NavigationContext),c=s.siteType,d=s.isAmp;return w.default.createElement(n.StyledContainerNoPosts,{"data-theme":c},w.default.createElement(n.StyledLeft,null,d?w.default.createElement("img",{src:"marryBaby"===c?u.CommonGAssets.getAssetPath("navMBSpotlightBgNoData.svg"):u.CommonGAssets.getAssetPath("navSpotlightBgNoData.svg"),alt:"",className:"bg-svg"}):w.default.createElement("img",{"data-src":"marryBaby"===c?u.CommonGAssets.getAssetPath("navMBSpotlightBgNoData.svg"):u.CommonGAssets.getAssetPath("navSpotlightBgNoData.svg"),alt:"",className:"bg-svg lazy"}),w.default.createElement(n.StyledContentLeft,null,r&&w.default.createElement("img",{src:r,width:64,height:64}))),w.default.createElement("div",null,l&&w.default.createElement(n.StyledTitle,null,l),i&&w.default.createElement(n.StyledDescription$1,null,i),o&&w.default.createElement("div",null,w.default.createElement("a",{href:a},w.default.createElement(p.Button,{theme:c,className:"survey-contact-submit",size:"md"},o)))))},J=function(e){var l=e.title,a=e.viewMore,i=e.children,o=e.link,s=e.dataEventAction,c=void 0===s?"":s,d=t.useContext(n.NavigationContext).siteType;return w.default.createElement(n.StyledItemGridRight,null,w.default.createElement(n.StyledHeading$1,null,w.default.createElement(r.Heading,{tag:"marryBaby"===d?"h5":"h6",as:"h2",fontWeight:"semibold"},l),a&&w.default.createElement(n.StyledViewMore$1,{"data-event-category":"Hamburger Navigation","data-event-action":c,"data-event-label":o,href:o,"data-theme":d},a,w.default.createElement("img",{src:"marryBaby"===d?u.CommonGAssets.getAssetPath("chevronRightPink.svg"):u.CommonGAssets.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}}))),i)},X=function(e){var l,a=e.item,i=e.index,o=void 0===i?0:i,r=v.useTranslations().t,s=t.useContext(n.NavigationContext),c=s.locale,d=s.configs.statics,m=s.isAmp;if(!a)return null;var f="".concat(d.CARE_URL_FE,"/").concat(null===(l=g.LOCALIZED_SLUGS[c])||void 0===l?void 0:l.HOSPITAL,"/").concat(a.slug,"-").concat(a.id);return w.default.createElement(n.StyledItem$1,{key:a.id,href:f,"data-event-category":"Hamburger Navigation","data-event-action":"Care Click ".concat(o+1),"data-event-label":f},m?w.default.createElement("img",{src:u.CommonGAssets.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg"}):w.default.createElement("img",{"data-src":u.CommonGAssets.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg lazy"}),w.default.createElement(n.StyledImageCard,null,w.default.createElement(n.StyledImageCardInner,null,m?w.default.createElement("img",{alt:a.name,src:a.logo||"/images/avatar.jpg"}):w.default.createElement("img",{className:"lazy",alt:a.name,"data-src":a.logo||"/images/avatar.jpg"}))),w.default.createElement(n.StyledContentWrapper,null,w.default.createElement(n.StyledTitle$1,null,a.name),w.default.createElement(n.StyledDes,null,a.description),w.default.createElement(n.StyledBtnView,null,r("home.seeMore"),w.default.createElement("img",{src:u.CommonGAssets.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"}}))))},ee=function(e){var t=e.spotlights,l=void 0===t?[]:t,a=e.hrefViewMore,i=v.useTranslations().t;return w.default.createElement(J,{title:i("home.navigator.menu.spotlightHospitals")},0!==l.length?w.default.createElement(n.StyledContainerItems,null,null==l?void 0:l.slice(0,3).map((function(e,t){return w.default.createElement(X,{key:t,index:t,item:e})}))):w.default.createElement(Q,{title:i("home.navigator.menu.care.noDatas.title"),description:i("home.navigator.menu.care.noDatas.description"),link:a,cta:i("home.navigator.menu.care.noDatas.cta"),icon:u.CommonGAssets.getAssetPath("community.svg")}))},te=function(e){var l=e.item,a=e.index,i=void 0===a?0:a;if(!l)return null;var o=t.useContext(n.NavigationContext).isAmp;return w.default.createElement(n.StyledItem$2,{key:l.id,href:l.link,"data-event-category":"Hamburger Navigation","data-event-action":"Spotlight Click ".concat(i+1),"data-event-label":l.link},w.default.createElement(n.StyledImageCard$1,null,o?w.default.createElement("img",{alt:l.title,src:l.banner||"/images/notFound-min-small.jpg"}):w.default.createElement("img",{className:"lazy",alt:l.title,"data-src":l.banner||"/images/notFound-min-small.jpg"})),w.default.createElement(n.StyledTitle$2,null,l.title))},le=function(e){var l=e.spotlightsList,a=void 0===l?[]:l,i=e.hrefViewMore,o=v.useTranslations().t,r=t.useContext(n.NavigationContext).configs.statics;return w.default.createElement(J,{title:o("home.navigator.menu.spotlights"),viewMore:o("home.navigator.menu.spotlights.seeAll"),link:i,dataEventAction:"Spotlight See More Click"},0!==a.length?w.default.createElement(n.StyledContainerItems$1,null,null==a?void 0:a.slice(0,4).map((function(e,t){return w.default.createElement(te,{key:t,index:t,item:{id:e.id,link:r.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})}))):w.default.createElement(Q,{title:o("home.navigator.menu.category.noDatas.title"),description:o("home.navigator.menu.category.noDatas.description"),link:i,cta:o("home.navigator.menu.category.noDatas.cta"),icon:u.CommonGAssets.getAssetPath("Spotlight.svg")}))},ae=function(e){var l,a,o,r,s,u,c,d=e.post,m=e.index,f=void 0===m?0:m,h=t.useContext(n.NavigationContext),g=h.siteType,v=h.locale,p=h.configs.statics,E=h.isAmp;if(!d)return null;var y=[p.TOGETHER_URL_FE,null===(l=d.community)||void 0===l?void 0:l.slug].join("/"),C=[y,d.slug].join("/"),L=d.createdAt,b=L?isNaN(new Date(L).getTime())?null:new Date(L):null,S=b?i.formatDistanceToNow(b,{locale:n.locales[v]}):L;return w.default.createElement(n.StyledItem$3,{href:C,"data-event-category":"Hamburger Navigation","data-event-action":"Together Click ".concat(f+1),"data-event-label":C},w.default.createElement(n.StyledContent$1,null,w.default.createElement(n.StyledInfoUser,null,w.default.createElement(n.UserAvatar,{avatar:null===(a=d.author)||void 0===a?void 0:a.avatar,username:(null===(o=d.author)||void 0===o?void 0:o.name)||(null===(r=d.author)||void 0===r?void 0:r.username),isLazy:!E}),w.default.createElement(n.StyledWrapInfo$1,null,w.default.createElement(n.StyledName,{"data-theme":g},null===(s=d.author)||void 0===s?void 0:s.name),w.default.createElement(n.StyledInfo,null,w.default.createElement(n.StyledCategory,{"data-event-category":"Hamburger Navigation","data-event-action":"Topic Click ".concat(f+1),"data-event-label":y,onClick:function(e){e.preventDefault(),location.href=y},"data-theme":g},null===(u=d.community)||void 0===u?void 0:u.name),w.default.createElement(n.StyledDot$2,null,"•"),w.default.createElement(n.StyledModifiedTime,{"data-theme":g},S)))),w.default.createElement(n.StyledTitle$3,null,d.title)),!!(null===(c=d.photos)||void 0===c?void 0:c.length)&&(E?w.default.createElement(n.StyledImage,{src:d.photos[0]}):w.default.createElement(n.StyledImage,{className:"lazy","data-src":d.photos[0]})))},ne=function(e){var l=e.spotlights,a=void 0===l?[]:l,i=t.useContext(n.NavigationContext).configs.statics,o=v.useTranslations().t;return w.default.createElement(J,{title:o("home.navigator.menu.trendingPosts"),viewMore:o("home.navigator.menu.trendingPosts.seeMore"),link:i.TOGETHER_URL_FE,dataEventAction:"Together See More Click"},0!==a.length?w.default.createElement(n.StyledContainerItems$2,null,null==a?void 0:a.slice(0,4).map((function(e,t){return w.default.createElement(ae,{index:t,post:e,key:e.id})}))):w.default.createElement(Q,{title:o("home.navigator.menu.together.noPosts.title"),description:o("home.navigator.menu.together.noPosts.description"),link:"".concat(i.HOME_PAGE_URL,"/community/"),cta:o("home.navigator.menu.together.noPosts.cta"),icon:u.CommonGAssets.getAssetPath("community.svg")}))},ie=function(e){var l=e.item,a=e.index,i=void 0===a?0:a,o=v.useTranslations().t,r=t.useContext(n.NavigationContext),s=r.configs.statics,c=r.isAmp;if(!l)return null;var d=l.link?l.link.startsWith("http")?l.link:"".concat(s.HOME_PAGE_URL).concat(l.link):void 0;return w.default.createElement(n.StyledItem$4,{href:d,"data-event-category":"Hamburger Navigation","data-event-action":"Engage Click ".concat(i+1),"data-event-label":d},c?w.default.createElement("img",{src:u.CommonGAssets.getAssetPath("navToolCardBg.svg"),alt:"",className:"bg-svg"}):w.default.createElement("img",{"data-src":u.CommonGAssets.getAssetPath("navToolCardBg.svg"),alt:"",className:"bg-svg lazy"}),w.default.createElement(n.StyledContentWrapper$1,null,w.default.createElement(n.StyledTitle$4,null,l.title),w.default.createElement(n.StyledDes$1,null,l.subtitle),w.default.createElement(n.StyledBtnView$1,null,o("home.seeMore"),w.default.createElement("img",{src:u.CommonGAssets.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"}}))),w.default.createElement(n.StyledImageCard$2,null,c?w.default.createElement("img",{alt:l.title,src:l.icon||"/images/avatar.jpg"}):w.default.createElement("img",{className:"lazy",alt:l.title,"data-src":l.icon||"/images/avatar.jpg"})))},oe=function(e){var l=e.item,a=e.index,i=void 0===a?0:a,o=e.color,r=v.useTranslations().t,s=t.useContext(n.NavigationContext),c=s.configs.statics,d=s.isAmp;if(!l)return null;var m=l.link?l.link.startsWith("http")?l.link:"".concat(c.HOME_PAGE_URL).concat(l.link):void 0,f=function(){return w.default.createElement(n.StyledImageCard$3,null,d?w.default.createElement("img",{src:l.icon||"/images/avatar.jpg"}):w.default.createElement("img",{className:"lazy",alt:l.title,"data-src":l.icon||"/images/avatar.jpg"}))},h=function(){return w.default.createElement(n.StyledWrapName,null,w.default.createElement(n.StyledContent$2,null,w.default.createElement(n.StyledTitle$5,null,l.title),w.default.createElement(n.StyledDes$2,null,l.subtitle)),w.default.createElement(n.StyledBtnView$2,null,w.default.createElement("div",{className:"mobile-only"},r("home.seeMore")),w.default.createElement("img",{src:u.CommonGAssets.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"}})))};return w.default.createElement(n.StyledItem$5,{href:m,"data-event-category":"Hamburger Navigation","data-event-action":"Engage Click ".concat(i+1),"data-event-label":m,"data-color":o},w.default.createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.default.createElement("path",{d:"M58.5713 53.428C40.6466 70.0213 12.9929 71.0875 -7.00506 84.9856C-24.9277 97.4005 -38.3893 120.472 -60.213 120.346C-73.3615 120.271 -84.9289 110.925 -91.9303 99.8138C-101.443 84.7327 -103.994 64.0482 -93.916 49.3276C-81.8133 31.6505 -56.6933 28.1101 -41.7246 12.7895C-35.4351 6.35117 -31.2212 -1.90115 -24.8564 -8.25051C-7.17639 -25.9054 34.9604 -29.7543 56.852 -16.9562C80.9056 -2.89888 77.046 36.3304 58.5713 53.428Z",strokeWidth:"0"})),w.default.createElement("img",{"data-src":u.CommonGAssets.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg lazy",alt:""}),w.default.createElement(n.StyledContentWrapper$2,null,w.default.createElement("div",{className:"mobile-only"},f()),w.default.createElement("div",{className:"desktop-only"},h())),w.default.createElement("div",{className:"mobile-only"},h()),w.default.createElement("div",{className:"desktop-only"},f()))},re=function(e){var l=e.hrefViewMore,a=e.spotlightHealthTools,i=void 0===a?[]:a,o=v.useTranslations().t,r=["pink","orange","green"],s=t.useContext(n.NavigationContext).siteType;return w.default.createElement(J,{title:o("home.navigator.menu.spotlightTools")},0!==i.length&&w.default.createElement(n.StyledContainerItems$3,null,null==i?void 0:i.slice(0,3).map((function(e,t){return"marryBaby"===s?w.default.createElement(oe,{key:t,index:t,item:e,color:r[t]}):w.default.createElement(ie,{key:t,index:t,item:e})}))),0===i.length&&w.default.createElement(Q,{title:o("home.navigator.menu.healthTools.noDatas.title"),description:o("home.navigator.menu.healthTools.noDatas.description"),link:l,cta:o("home.navigator.menu.healthTools.noDatas.cta"),icon:u.CommonGAssets.getAssetPath("community.svg")}))},se=function(e){var l,a,i=e.closePopup,o=e.menuItems,r=void 0===o?[]:o,s=t.useContext(n.NavigationContext),u=s.siteType,c=s.ssrMenuContent,d=c.categories,m=c.healthTools,f=c.care,p=c.together,E=s.activeMenuService,y=s.configs,C=y.statics,L=y.enableSearchBar,b=s.isAmp,S=s.locale,k=v.useTranslations().t;return w.default.createElement(n.StyledMasterMenuContainer,{id:"categories-menu","data-is-amp":b},L?w.default.createElement(n.StyledServiceListMenuSearchInputWrapper,{"data-theme":u,onClick:function(){window.location.href="".concat(C.HOME_PAGE_URL,"/search")}},w.default.createElement(K,null)):null,w.default.createElement(n.StyledWrapper$1,null,w.default.createElement(Y,{UrlFE:C.HOME_PAGE_URL,titleBtnViewMore:k("home.navigator.menuItem.allCategories"),menuItems:r,headingTitle:k("home.navigator.menuItem.healthCategories"),onClosePopup:i}),"categories"===E&&w.default.createElement(le,{spotlightsList:(null==d?void 0:d.spotlights)||[],hrefViewMore:"".concat(C.HOME_PAGE_URL).concat("tl-PH"===S?"/fil":"","/spotlight/")}),"tools"===E&&w.default.createElement(re,{spotlightHealthTools:null==m?void 0:m.spotlights,hrefViewMore:"".concat(C.HOME_PAGE_URL).concat("tl-PH"===S?"/fil":"").concat((null===(l=h.STATIC_PAGES[S])||void 0===l?void 0:l.HEALTH_TOOLS)||"")}),"care"===E&&w.default.createElement(ee,{spotlights:null==f?void 0:f.spotlights,hrefViewMore:"".concat(C.CARE_URL_FE,"/").concat(null===(a=g.LOCALIZED_SLUGS[S])||void 0===a?void 0:a.SPECIALTIES)}),"together"===E&&w.default.createElement(ne,{spotlights:null==p?void 0:p.spotlights})))},ue=function(e){var l=e.forceDisplay,a=e.mediaQueryKey,i=e.children,o=e.className,r=e.style,s=t.useMemo((function(){return c.getBoundariesFromMediaQueryKey(a)}),[a]),u=s[0],d=s[1];return w.default.createElement(n.StyledDisplayWrapper,{lowerBound:l?0:u,upperBound:l?0:d,className:o,style:r},i)},ce=function(e){var t=e.onCareHeaderClick,l=e.currentUrl,a=e.careUrlFe,i=e.btnName;return w.default.createElement(n.StyledButtonBooking,null,t?w.default.createElement(p.Button,{className:"login-btn-mobile",size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:l,onClick:function(e){return t(e)}},i):w.default.createElement("a",{href:a,className:"care-button no-replace-click"},w.default.createElement(p.Button,{className:"login-btn-mobile",size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:l},i)))},de=function(e){var l=(e||{}).allowBgScroll,a=t.useRef();return{containerRef:a,onContainerFocus:function(){l||(document.documentElement.style.overflow="hidden")},onContainerBlur:function(){l||(document.documentElement.style.overflow="")},onButtonMouseDown:function(e){a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur(),e.preventDefault())},onClose:function(){a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur())}}},me=function(e){var l=e.item,a=e.menu,i=de({allowBgScroll:!0}),o=i.containerRef,r=i.onContainerFocus,s=i.onContainerBlur,u=i.onButtonMouseDown,c=i.onClose,d=function(){var e=t.useState(!0),l=e[0],a=e[1];return t.useEffect((function(){a(!1)}),[]),l}();return!l.popupType&&l.link?w.default.createElement(n.StyledHeaderMenuItem,{className:d?"":"menu-handler-".concat(l.id),tabIndex:0,as:"a",href:l.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":l.link},w.default.createElement(n.StyledMenuButton,{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":l.link},l.name)):w.default.createElement(n.StyledHeaderMenuItem,{ref:o,className:d?"":"menu-handler-".concat(l.id),tabIndex:0,key:l.id,onBlur:s,onFocus:r,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":l.link},w.default.createElement(n.StyledMenuButton,{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":l.link,onMouseDown:u},l.name,l.popupType&&w.default.createElement(n.StyledMenuIconWrapper,null,w.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.default.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),w.default.isValidElement(a)?w.default.cloneElement(a,{onClose:c}):null)},fe=function(e){var t,l,a,n;return e?{termId:e.term_id||null,sponsor:e.sponsor?(n=e.sponsor,n?{title:n.title,logo:n.logo,link:n.link}:{}):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||e.name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.thumbnail||e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(t=e.child_cates)||void 0===t?void 0:t.map((function(e){return fe(e)})))||[],thumnailColor:e.thumnail_color||["#FFEAF1","#E0E9FB","#FFF9EB","#F2FCF7","#F3F3F3"][5*Math.random()|0],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(l=e.cat_parent)||void 0===l?void 0:l.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?(a=e.reviewed_by,{postTitle:a.post_title,permalink:a.permalink}):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((function(e){return function(e){return{title:e.title,content:e.content}}(e)})):null}:{}},he=function(e){var t,l;if(!e)return{};var a=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),n=null===(l=e.link)||void 0===l?void 0:l.startsWith("/fil/"),i=e.link?e.link.startsWith("http")||a?e.link:n?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):"/health-tools".concat(e.link.replace("/health-tools/","/")):void 0;return{icon:e.icon,link:i,subtitle:e.subtitle,title:e.title}},ge=function(e){return e?{thumbnail:e.thumbnail,link:null==e?void 0:e.slug,subtitle:e.name,name:e.name,slug:e.slug}:{}},ve=function(e){return e?{id:e.id,name:e.name,logo:null==e?void 0:e.logo,description:e.about,slug:e.slug}:{}},pe=function(e){var t,l,a=e.type,n=e.specialtySlug,i=e.locale;return"".concat(null===(t=g.LOCALIZED_SLUGS[i])||void 0===t?void 0:t.ALL,"/").concat((null===(l=g.LOCALIZED_SLUGS[i])||void 0===l?void 0:l[a])||"doctor","/").concat(null!=n?n:"")},Ee=function(e){return e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:{}},ye=function(e){var t=new Date;if(null==e?void 0:e.startDate){var l=new Date(e.startDate);if(t.getTime()<l.getTime())return!1}if(null==e?void 0:e.endDate){var a=new Date(e.endDate);if(t.getTime()>a.getTime())return!1}return!0},Ce=function(e){var t=e.onClosePopup;return w.default.createElement(n.StyledCloseWrapper,{className:"close-btn",onClick:t},w.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.default.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))},we=function(e){var t=e.onClosePopup,l=e.isDisplay,i=e.children,o=e.isNavMenu,r=e.hideCloseBtn;return w.default.createElement(n.StyledMenuPopupWrapper,{className:"top-menu-health-tools","data-is-display":!!l,"data-is-nav-menu":!!o},w.default.createElement(a.Container,null,!r&&w.default.createElement(n.StyledContainer$5,null,w.default.createElement(Ce,{onClosePopup:t})),w.default.createElement(n.StyledGridContainer,null,i)))},Le=function(e){var l,a=e.careSpecialties,i=void 0===a?[]:a,o=e.isOpen,r=e.onClose,s=e.spotlights,u=void 0===s?[]:s,c=v.useTranslations().t,d=t.useContext(n.NavigationContext),m=d.locale,f=d.configs.statics,h="".concat(f.CARE_URL_FE,"/").concat(null===(l=g.LOCALIZED_SLUGS[m])||void 0===l?void 0:l.SPECIALTIES);return w.default.createElement(we,{onClosePopup:r,isDisplay:o,isNavMenu:!0},w.default.createElement(Y,{headingTitle:c("home.navigator.menuItem.specialties"),hrefViewMore:h,UrlFE:f.CARE_URL_FE,onClosePopup:r,titleBtnViewMore:c("home.navigator.menuItem.allSpecialties"),menuItems:(null==i?void 0:i.map((function(e){return e?{name:String(e.name)||"",link:pe({type:"DOCTOR",specialtySlug:e.slug,locale:m}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{}})))||[]}),w.default.createElement(ee,{spotlights:u,hrefViewMore:h}))},be=function(e){var l=e.categories,a=void 0===l?[]:l,i=e.spotlightsList,o=void 0===i?[]:i,r=e.onClose,s=e.isOpen,u=v.useTranslations().t,c=t.useContext(n.NavigationContext),d=c.locale,m=c.configs.statics;return w.default.createElement(we,{onClosePopup:r,isDisplay:s,isNavMenu:!0},w.default.createElement(Y,{hrefViewMore:"".concat(m.HOME_PAGE_URL).concat("tl-PH"===d?"/fil":"","/categories/"),UrlFE:m.HOME_PAGE_URL,onClosePopup:r,titleBtnViewMore:u("home.navigator.menuItem.allCategories"),menuItems:(null==a?void 0:a.map((function(e){return e?{name:e.displayName||null,link:(null==e?void 0:e.permalink)||"/",thumbnail:e.iconUrl||null}:{}})))||[],headingTitle:u("home.navigator.menuItem.healthCategories")}),w.default.createElement(le,{spotlightsList:o,hrefViewMore:"".concat(m.HOME_PAGE_URL).concat("tl-PH"===d?"/fil":"","/spotlight/")}))},Se=function(e){var l=e.communities,a=void 0===l?[]:l,i=e.onClose,o=e.isOpen,r=e.spotlights,s=void 0===r?[]:r,u=v.useTranslations().t,c=t.useContext(n.NavigationContext).configs.statics;return w.default.createElement(we,{onClosePopup:i,isDisplay:o,isNavMenu:!0},w.default.createElement(Y,{hrefViewMore:c.TOGETHER_URL_FE,UrlFE:c.TOGETHER_URL_FE,onClosePopup:i,titleBtnViewMore:u("home.navigator.menuItem.allCommunities"),menuItems:(null==a?void 0:a.map((function(e){return e?{name:e.name||"",link:e.slug||"/",thumbnail:e.thumbnail||""}:{}})))||[],headingTitle:u("home.navigator.menuItem.allCommunitiesheadingTitle")}),w.default.createElement(ne,{spotlights:s}))},ke=function(e){var l,a=e.locale,i=e.onClose,o=e.isOpen,r=e.spotlightHealthTools,s=void 0===r?[]:r,u=e.healthTools,c=void 0===u?[]:u,d=v.useTranslations().t,m=t.useContext(n.NavigationContext).configs.statics,f="".concat(m.HOME_PAGE_URL).concat("tl-PH"===a?"/fil":"").concat((null===(l=h.STATIC_PAGES[a])||void 0===l?void 0:l.HEALTH_TOOLS)||"");return w.default.createElement(we,{onClosePopup:i,isDisplay:o,isNavMenu:!0},w.default.createElement(Y,{hrefViewMore:f,UrlFE:m.HOME_PAGE_URL,onClosePopup:i,headingTitle:d("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:d("home.navigator.menuItem.allHealthTools"),menuItems:c.map((function(e){return{name:e.title,link:e.link?e.link.startsWith("http")?e.link:"".concat(m.HOME_PAGE_URL).concat(e.link):void 0,thumbnail:e.icon}}))}),w.default.createElement(re,{spotlightHealthTools:s,hrefViewMore:f}))};function Ae(e){var t=e.className,l=e.ampHidden,a=e.ampBindHiddenCondition;return w.default.createElement("div",{"data-amp-bind-hidden":a,hidden:l},w.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t},w.default.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function Me(e){var t=e.siteType,l=e.type,a=e.enableSearch,n=e.className,i=e.ampBindHiddenCondition;return"helloSites"===t?w.default.createElement("div",{"data-amp-bind-hidden":i},w.default.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:a?u.CommonGAssets.getAssetPath("hamburgerMenuNewWithSearch.svg"):u.CommonGAssets.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:l,className:n})):w.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n},w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.34961 15C3.34961 14.641 3.64062 14.35 3.99961 14.35L13.9996 14.35C14.3586 14.35 14.6496 14.641 14.6496 15C14.6496 15.359 14.3586 15.65 13.9996 15.65L3.99961 15.65C3.64062 15.65 3.34961 15.359 3.34961 15ZM3.34961 8.99999C3.34961 8.64101 3.64062 8.34999 3.99961 8.34999L19.9992 8.34999C20.3582 8.34999 20.6492 8.64101 20.6492 8.99999C20.6492 9.35898 20.3582 9.64999 19.9992 9.64999L3.99961 9.64999C3.64062 9.64999 3.34961 9.35898 3.34961 8.99999Z",fill:"#3E3F58"}))}var _e=function(e){var l=e.type,a=void 0===l?"home":l,i=e.menuItems,o=t.useContext(n.NavigationContext),r=o.siteType,s=o.isAmp,u=o.configs.enableSearchBar,c=de(),d=c.containerRef,m=c.onContainerFocus,f=c.onContainerBlur,h=c.onButtonMouseDown,g=c.onClose;return w.default.createElement(ue,{mediaQueryKey:"mbDown",forceDisplay:!!s||void 0},s&&w.default.createElement("amp-state",{id:"menu"},w.default.createElement("script",{type:"application/json",dangerouslySetInnerHTML:{__html:JSON.stringify({lightbox:"closed"})}})),w.default.createElement(n.StyledMenuContainer$1,null,w.default.createElement(n.StyledMenuIcon,{ref:d,on:"tap:discover-amp-lightbox",role:"button",tabIndex:0,onBlur:f,onFocus:m,isAmp:s},w.default.createElement(n.StyledMenuIconWrapper$1,{onMouseDown:h,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},w.default.createElement(Ae,{className:"mobile-close-icon",ampHidden:s&&!0,ampBindHiddenCondition:"menu.lightbox == 'closed'"}),w.default.createElement(Me,{siteType:r,type:a,enableSearch:u,className:"mobile-hamburger-icon",ampBindHiddenCondition:"menu.lightbox == 'open'"})),!s&&w.default.createElement(se,{menuItems:i,closePopup:g}))))},Pe=function(e){var l=e.openLogoutPopup,a=e.onCloseHandler,i=e.onLogoutHandler,o=e.siteType,r=void 0===o?"helloSites":o,s=v.useTranslations().t;return t.useEffect((function(){document.body.classList.toggle("noscroll",l)}),[l]),w.default.createElement(m.Portal,null,w.default.createElement(n.Popup,{type:"confirm",isOpen:l,closeIcon:w.default.createElement("img",{src:u.CommonGAssets.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon"}),onClose:a},w.default.createElement(n.StyledPopup,null,"helloSites"===r&&w.default.createElement("img",{src:u.CommonGAssets.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account"}),w.default.createElement("h2",null,s("helloSites"===r?"logout.popup.ask1":"logout.popup.ask.mb")),w.default.createElement("p",null,s("logout.popup.ask2")),w.default.createElement(n.StyledButtonGroup$1,{siteType:r},w.default.createElement(p.Button,{className:"logout-button",color:"tertiary",size:"lg",onClick:i},s("logout.popup.button.logout")),w.default.createElement(p.Button,{className:"cancel-button",color:"primary",size:"lg",onClick:a},s("logout.popup.button.cancel"))))))},xe={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"shop"};function He(e){var l=e.userInfo,a=e.onClickMyProfileButton,i=e.themeName,o=void 0===i?"helloSites":i,r=v.useTranslations().t,s=t.useMemo((function(){var e=(null==l?void 0:l.name)||(null==l?void 0:l.username);return e&&e.length?e[0].toUpperCase():"A"}),[null==l?void 0:l.username,null==l?void 0:l.name]);return w.default.createElement(n.StyledNavHeader,{onClick:function(){a&&a()}},w.default.createElement(n.StyledNavAvatar,{type:"rounded",size:"xl",avatarUrl:null==l?void 0:l.avatar,firstLetter:s,backgroundColor:"marryBaby"===o?E.theme.mbColors.pink:E.theme.colors.secondaryBase}),w.default.createElement(n.StyledNavHeaderUserInfos,null,w.default.createElement(n.StyledNavHeaderUserName,null,(null==l?void 0:l.name)||(null==l?void 0:l.username)),w.default.createElement(n.StyledNavHeaderMyProfileButton,null,r("userProfile.nav.header.viewProfile"))))}var Te=function(e){var l=e.themeName,a=e.locale,i=e.onClickItem,o=t.useState(""),r=o[0],s=o[1],c=v.useTranslations().t,d=t.useMemo((function(){return"marryBaby"===l?[{key:"userProfile.nav.menu.password",icon:u.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:u.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}]:[{key:"userProfile.nav.menu.accountSettings",icon:u.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-settingsWheel.svg"),subMenu:[{key:"userProfile.nav.menu.password",link:"password"},{key:"userProfile.nav.menu.disableAccount",link:"disable-account",disableLocale:["hi-IN"]}]},{key:"userProfile.nav.menu.help",icon:u.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]}),[l]);return w.default.createElement(n.StyledNavMenu,null,d.map((function e(t){var l;return(null===(l=t.disableLocale)||void 0===l?void 0:l.includes(a))?null:w.default.createElement(n.StyledNavMenuItem,{className:"nav-menu-item","data-is-open":r===t.key,key:t.key,hasSubmenu:!!t.subMenu},w.default.createElement(n.StyledNavMenuItemContent,{onClick:function(){return function(e){e.subMenu?s((function(t){return t?"":e.key})):i&&i(e)}(t)}},t.icon&&w.default.createElement(n.StyledNavMenuItemIcon,{style:{backgroundImage:'url("'.concat(t.icon,'")')}}),c(t.key),t.subMenu&&w.default.createElement(n.StyledNavMenuItemDropdown,null)),t.subMenu&&w.default.createElement(n.StyledNavFooterSubMenu,null,t.subMenu.map(e)))})))},Ne={helloSites:{member:function(){return u.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg")},ambassador:function(){return u.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg")},doctor:function(){return u.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg")},expert:function(){return u.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg")},influencer:function(){return u.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")}},marryBaby:{member:function(){return u.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg")},ambassador:function(){return u.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg")},doctor:function(){return u.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg")},expert:function(){return u.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg")},influencer:function(){return u.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}}},Be=function(e){var l=e.themeName,a=e.rank,i=void 0===a?"member":a,o=e.numberOfPosts,r=void 0===o?0:o,s=v.useTranslations().t,u=t.useMemo((function(){var e,t;return(null===(t=null===(e=Ne[l])||void 0===e?void 0:e[i])||void 0===t?void 0:t.call(e))||""}),[i,l]);return w.default.createElement(n.StyledUserStats,{"data-user-rank":i},w.default.createElement(n.StyledWrapper$2,null,w.default.createElement(n.StyledHeader,null,w.default.createElement(n.StyledHeaderIcon,{style:{backgroundImage:'url("'.concat(u,'")')}}),w.default.createElement(n.StyledHeaderTitle,null,s("userProfile.userRank.".concat(i))),r>0&&w.default.createElement(n.StyledHeaderPoints,null,r," ",s("userProfile.nav.header.count.posts")))))},Re=function(l){var a=l.SSO_URL,i=l.UP_BASEPATH,o=void 0===i?"user":i,r=l.themeName,s=void 0===r?"helloSites":r,c=l.cardUrls,d=void 0===c?xe:c,m=l.enableCare,f=l.enableTogether,g=l.enableEcom,p=l.userInfo,E=l.togetherApiDomain,C=l.userPostsNumber,L=l.onClickNavigationCard,S=l.onClickMyProfileButton,k=l.onClickMenuItem,A=l.onClickLogout,M=l.isUserProfileNavigatorMenuHidden,_=void 0!==M&&M,P=l.isMyHealthEnabled,x=void 0!==P&&P,H=l.locale,T=v.useTranslations().t,N=t.useState(C||0),B=N[0],R=N[1],I="marryBaby"===s;t.useEffect((function(){if(p&&void 0===C){var t=y.getCookie("hhg_user_token");t&&fetch(function(t,l,a,i){return(a||"https://together.hellohealthgroup.com/")+"api/v1/"+b.default(n.TOGETHER_PATHS.GET_USER_POSTS,e.__assign(e.__assign({},i),{websiteUrl:l?"https://marrybaby.vn":"https://".concat(h.domainLocales[t])}))}(H,I,E),{headers:{Authorization:"Bearer ".concat(t)}}).then((function(e){return e.json()})).then((function(e){var t,l,a;1===(null==e?void 0:e.status)&&(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pagination)&&R((null===(a=null===(l=null==e?void 0:e.data)||void 0===l?void 0:l.pagination)||void 0===a?void 0:a.total_items)||0)})).catch((function(e){return console.error("Error fetching post number",e)}))}}),[H,null!==p,C,E,I]);var U=t.useMemo((function(){return(I?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"]).filter((function(e){return"myBooking"===e?m:"myCommunity"===e?f:"myHealth"===e?x:"eCom"!==e||g}))}),[I,x]),G=t.useMemo((function(){return"marryBaby"===s?null:w.default.createElement(n.StyledLogoutButton,{color:"tertiary",icon:w.default.createElement("img",{src:u.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15}),size:"md",onClick:A},T("userProfile.nav.menu.logout"))}),[s]),D=function(e){window.location.href="".concat(a).concat(o,"/").concat(e)},Z=function(e){var t=d[e];L?L(t):D(t)};return p?w.default.createElement(n.StyledUserNavScreen,{"data-theme":s},w.default.createElement(He,{userInfo:p,themeName:s,onClickMyProfileButton:function(){S?S():D("profile")}}),w.default.createElement(Be,{themeName:s,rank:"member",numberOfPosts:B}),w.default.createElement(n.StyledNavigationCardsWrapper,null,U.map((function(e){return w.default.createElement(n.StyledNavigationCard,{key:e,themeName:s,type:e,onClick:Z})}))),!_&&w.default.createElement(w.default.Fragment,null,w.default.createElement(Te,{themeName:s,locale:H,onClickItem:function(e){"logout"===e.link&&A?A():e.link&&!e.subMenu&&(k?k(e.link):D(e.link))}}),G)):null},Ie=function(e){var t=e.type,l=void 0===t?"lead":t,a=e.closeIcon,i=e.isOpen,o=void 0===i||i,r=e.onClose,s=e.children,u=e.enableAnimation,c=void 0===u||u,d=e.targetAvatar,m=e.id,f=e.className;return w.default.createElement(n.StyledPopup$1,{"data-open":o,"data-type":l,"data-animation":c,"data-target":d,id:m,className:f},w.default.createElement("div",{className:"popup-content"},!!a&&w.default.createElement("div",{className:"close-button",onClick:r},a),s))},Ue=function(e){var t=e.SSO_URL,l=e.UP_BASEPATH,a=e.isOpen,n=e.targetAvatar,i=e.userInfo,o=e.enableCare,r=e.enableTogether,s=e.enableEcom,u=e.closePopup,c=e.siteType,d=void 0===c?"helloSites":c,m=e.dispatchLogout,f=e.userProfileRouterPush,h=e.isUserProfileNavigatorMenuHidden,g=e.isMyHealthEnabled,v=void 0!==g&&g,p=e.togetherApiDomain,E=e.locale,y=function(e){f?f("/".concat(e)):t&&(window.location.href="".concat(t).concat(l,"/").concat(e))},C=function(e){y(e),u()};return w.default.createElement(Ie,{isOpen:a,type:"profile",enableAnimation:!0,targetAvatar:n,onClose:u},w.default.createElement(Re,{SSO_URL:t,UP_BASEPATH:l,themeName:d,userInfo:i,enableCare:o,enableTogether:r,enableEcom:s,onClickLogout:function(){m&&(m(),u())},onClickMenuItem:C,onClickNavigationCard:C,onClickMyProfileButton:function(){y("profile"),u()},isUserProfileNavigatorMenuHidden:h,isMyHealthEnabled:v,togetherApiDomain:p,locale:E}))},Ge=function(l){var i=l.userInfo,o=l.siteType,r=l.isAmp,s=l.goToLogin,c=l.SSO_URL,d=l.currentUrl,m=l.isMinifyLogin,f=l.enableCare,h=l.enableTogether,g=l.enableEcom,y=l.isUserProfileNavigatorMenuHidden,C=l.UP_BASEPATH,L=l.isMyHealthEnabled,b=l.togetherApiDomain,S=l.onLogout,k=l.style,A=l.userProfileRouterPush,M=l.isLoading,_=l.locale,P=v.useTranslations().t,x=t.useState(!1),H=x[0],T=x[1],N=(null==i?void 0:i.name)||(null==i?void 0:i.username),B=t.useState(!1),R=B[0],I=B[1];t.useEffect((function(){I(!0)}),[]);var U=de(),G=U.containerRef,D=U.onContainerFocus,Z=U.onContainerBlur,V=U.onButtonMouseDown,O=U.onClose;return M&&!r?w.default.createElement(p.Button,{size:"sm",color:"transparent",isLoading:!0}):(null==i?void 0:i.id)?w.default.createElement(w.default.Fragment,null,w.default.createElement(n.StyledImageWrapper$1,{ref:G,href:r?"".concat(c,"user/profile"):void 0,style:k,tabIndex:0,onBlur:Z,onFocus:D},w.default.createElement("div",{onMouseDown:V},w.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"user-close-icon"},w.default.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),w.default.createElement(n.Avatar,{type:"rounded",size:"medium",className:"user-avatar",avatarUrl:null==i?void 0:i.avatar,firstLetter:N&&N.length?N[0].toUpperCase():"A",backgroundColor:"marryBaby"===o?E.theme.mbColors.pink:E.theme.colors.secondaryBase,isAmp:r})),!r&&w.default.createElement(Ue,{UP_BASEPATH:C,SSO_URL:c,dispatchLogout:function(){O(),T(!0)},isOpen:!1,isMyHealthEnabled:L,enableCare:f,enableTogether:h,enableEcom:g,closePopup:O,userInfo:i,siteType:o,isUserProfileNavigatorMenuHidden:y,togetherApiDomain:b,userProfileRouterPush:A,locale:_})),!r&&w.default.createElement(Pe,{openLogoutPopup:H,onCloseHandler:function(){document.body.classList.toggle("noscroll",!1),T(!1)},siteType:o,onLogoutHandler:function(){return e.__awaiter(void 0,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return T(!1),document.body.classList.toggle("noscroll",!1),[4,S()];case 1:return e.sent(),[2]}}))}))}})):w.default.createElement(n.StyledLoggedOutAnchor,{style:e.__assign({textDecoration:"none"},k),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":d,href:r?"".concat(c,"?returnUrl=").concat(d.replace("?amp=1","")):R?void 0:"".concat(c,"?returnUrl=").concat(d),"data-site-type":o},m?w.default.createElement(n.StyledAvatar,{onClick:s},w.default.createElement("img",{"data-src":u.CommonGAssets.getAssetPath("lock.png"),className:"avatar lazy",alt:"avatar"})):w.default.createElement(w.default.Fragment,null,"helloSites"===o&&w.default.createElement("img",{className:"mobile-only",src:u.CommonGAssets.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24},onClick:s}),"marryBaby"===o&&w.default.createElement("div",{className:"mobile-only",onClick:s,style:{paddingLeft:16}},w.default.createElement(a.Text,{size:"p3",color:E.theme.mbColors.pink},P("navigation.loginJoin"))),w.default.createElement(p.Button,{className:"login-btn",size:"md",color:"tertiary",onClick:s,icon:w.default.createElement("img",{src:u.CommonGAssets.getAssetPath("login.svg"),width:18,height:18}),theme:o},P("navigation.loginJoin"))))};function De(e){var l=e.goToLogin,a=t.useContext(n.NavigationContext),i=a.siteType,o=a.isAmp,r=a.userState.userInfo,s=a.currentUrl,u=a.locale,c=a.onLogout,d=a.userProfileRouterPush,m=a.configs,f=m.enableNavCare,g=m.enableProfileMyHealth,v=m.enableNavTogether,p=m.enableProfileEcom,E=m.statics,y=m.enableProfileNavigatorMenu,C=a.isUserLoading;return w.default.createElement(Ge,{userInfo:r,siteType:i,isAmp:o,goToLogin:l,SSO_URL:E.SSO_URL+"/",currentUrl:s,onLogout:c,UP_BASEPATH:h.UP_BASEPATH,isMyHealthEnabled:g,enableCare:f,enableTogether:v,enableEcom:p,togetherApiDomain:E.TOGETHER_API+"/",isUserProfileNavigatorMenuHidden:!y,userProfileRouterPush:d,isLoading:C,locale:u})}var Ze=function(e){var l,a,i,o,r,d=e.onTopBarAppears,m=e.type,f=void 0===m?"home":m,g=e.languageMenu,p=e.menuItems,E=e.setSitewideBannerClosed,y=e.sitewideBannerClosed,C=t.useContext(n.NavigationContext),L=C.siteType,b=C.isAmp,S=C.isMobile,k=void 0!==S&&S,A=C.locale,M=C.sitewideBanner,_=C.sitewideBannerShown,P=void 0===_||_,x=C.sponsorComponent,H=C.onBookingClick,T=C.currentUrl,N=C.ssrMenuContent,B=N.categories,R=N.healthTools,I=N.care,U=N.together,G=C.configs,D=G.statics,Z=G.enableNavCareBooking,V=G.enableSearchBar,O=v.useTranslations().t,F=D.SSO_URL,j=D.HOME_PAGE_URL,W=!!x,q=t.useState(!1),$=q[0],z=q[1],K=t.useRef(47),Y=t.useRef(null),Q=t.useRef(!1),J="helloSites"===L?null===(l=h.LOCALE_SPECS[A])||void 0===l?void 0:l.LOGO_TYPE:L,X="undefined"!=typeof window,ee=t.useCallback(s.throttle((function(){if("home"===f&&X){if(!Y.current)return;var e=Y.current.getBoundingClientRect();e.top<=0&&window.scrollY>K.current&&window.scrollY>e.height+20&&!Q.current&&(Q.current=!0,z(!0)),window.scrollY<K.current&&Q.current&&(Q.current=!1,z(!1)),window.scrollY>=0&&(K.current=window.scrollY)}}),200),[]);t.useEffect((function(){null==d||d(!$)}),[$]),t.useEffect((function(){return window.addEventListener("scroll",ee,{passive:!0}),function(){window.removeEventListener("scroll",ee)}}),[]),t.useEffect((function(){k&&ee()}),[k]),t.useEffect((function(){null===c.lazyLoadInstance||void 0===c.lazyLoadInstance||c.lazyLoadInstance.update(document.querySelectorAll("#site-header img"))}),[null===(a=null==B?void 0:B.items)||void 0===a?void 0:a.length,null===(i=null==R?void 0:R.items)||void 0===i?void 0:i.length,null===(o=null==I?void 0:I.items)||void 0===o?void 0:o.length,null===(r=null==U?void 0:U.items)||void 0===r?void 0:r.length,k]);var te=P&&!!M&&!y;return w.default.createElement(n.StyledHeaderWrapper,{"data-site-type":L,"data-sponsored":W,"data-sitewide-banner-shown":te,"data-header-type":f,"data-collapsed":$,"data-with-search-input":"popup-sub-level"!==f,"data-is-displayed":!0,"data-is-amp":b,id:"site-header",ref:Y},M?w.default.isValidElement(M)?w.default.cloneElement(M,{isCollapsed:$,setBannerClosed:E,isAmp:b,isMobile:k}):M:null,w.default.createElement(n.StyledHeader$1,{"data-site-type":L},w.default.createElement(n.StyledLeftGroup,{"data-site-type":L},w.default.createElement(_e,{menuItems:p,type:f}),w.default.createElement("a",{href:j},w.default.createElement(n.StyledLogoWrapper,null,w.default.createElement(n.Logo,{style:{display:"flex"},type:J,height:"27px",width:"121px",badge:"id-ID"===A&&(b?w.default.createElement("amp-img",{src:u.CommonGAssets.getAssetPath("sehat-badge.png"),width:"56",height:"23"}):w.default.createElement("img",{src:u.CommonGAssets.getAssetPath("sehat-badge.png"),width:"56",height:"23"})),dateForSeasonal:new Date,locale:A,key:"undefined"!=typeof window?"client":"server"}))),!b&&("marryBaby"===L?w.default.createElement(Oe,{menuItems:p}):V&&w.default.createElement(Ve,{siteType:L}))),w.default.createElement(n.StyledRightGroup,{"data-site-type":L},!b&&("marryBaby"===L?V&&w.default.createElement(Ve,{siteType:L}):w.default.createElement(Oe,{menuItems:p})),w.default.createElement(n.StyledProfileNavGroup,null,Z&&!b&&w.default.createElement(ue,{mediaQueryKey:"mbUp",forceDisplay:!b&&void 0},w.default.createElement(ce,{careUrlFe:D.CARE_URL_FE,currentUrl:T,btnName:O("login.booking"),onCareHeaderClick:H})),g,w.default.createElement(De,{goToLogin:function(){var e=window.location.href;window.location.href=F?"".concat(F,"?returnUrl=").concat(e):e}})))),x?w.default.isValidElement(x)?w.default.cloneElement(x,{isCollapsed:$,locale:A,isMobile:k,isAmp:b}):x:null)},Ve=function(e){var t=e.siteType;return w.default.createElement(ue,{mediaQueryKey:"mbUp",className:"marryBaby"===t?"marry-baby":""},w.default.createElement(K,null))},Oe=function(e){var l=e.menuItems,a=t.useContext(n.NavigationContext),i=a.siteType,o=a.locale,r=a.ssrMenuContent,s=r.categories,u=r.healthTools,c=r.care,d=r.together;return w.default.createElement(ue,{mediaQueryKey:"mbUp",style:{height:"100%"}},w.default.createElement(n.StyledWrapMenuItems,{"data-site-type":i},null==l?void 0:l.map((function(e,t){return w.default.createElement(me,{key:t,item:e,menu:"categories"===e.popupType?w.default.createElement(be,{categories:null==s?void 0:s.items,spotlightsList:null==s?void 0:s.spotlights}):"tools"===e.popupType?w.default.createElement(ke,{locale:o,healthTools:null==u?void 0:u.items,spotlightHealthTools:null==u?void 0:u.spotlights}):"together"===e.popupType?w.default.createElement(Se,{communities:null==d?void 0:d.items,spotlights:null==d?void 0:d.spotlights}):"care"===e.popupType?w.default.createElement(Le,{careSpecialties:null==c?void 0:c.items,spotlights:null==c?void 0:c.spotlights}):null})}))))},Fe=function(l){var a,i,o=l.isMobile,r=l.isAmp,s=void 0!==r&&r,c=l.locale,d=l.onTopBarAppears,m=l.languageOptions,f=l.ampSubBar,g=l.sponsorComponent,p=l.sitewideBanner,E=l.sitewideBannerShown,y=l.className,C=t.useState(!1),b=C[0],S=C[1],k=function(){var e=v.useTranslations().t,l=t.useContext(n.NavigationContext),a=l.siteType,i=l.locale,o=l.configs,r=o.enableNavCare,s=o.enableNavTogether,c=o.enableNavEcom,d=o.statics,m="marryBaby"===a,f=t.useMemo((function(){var t,l=[{name:e("home.navigator.menuItem.discover"),id:"categories",link:"".concat(d.HOME_PAGE_URL).concat("tl-PH"===i?"/fil":"","/categories"),niceName:"",thumbnail:m?u.CommonGAssets.getAssetPath("categories-mb.svg"):u.CommonGAssets.getAssetPath("discover.png"),popupType:"categories"},{name:e("home.navigator.menuItem.healthTools"),id:"tools",link:"".concat(d.HOME_PAGE_URL).concat("tl-PH"===i?"/fil":"").concat((null===(t=h.STATIC_PAGES[i])||void 0===t?void 0:t.HEALTH_TOOLS)||""),thumbnail:m?u.CommonGAssets.getAssetPath("healthtools-mb.svg"):u.CommonGAssets.getAssetPath("healthTools.png"),popupType:"tools"}];return r&&l.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:d.HOME_PAGE_URL+"/care",thumbnail:u.CommonGAssets.getAssetPath("helloCare-thumbnail.png"),popupType:"zh-TW"===i?null:"care"}),s&&l.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:d.TOGETHER_URL_FE+"/",thumbnail:m?u.CommonGAssets.getAssetPath("community-mb.svg"):u.CommonGAssets.getAssetPath("together.png"),popupType:"together"}),c&&l.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:d.HOME_PAGE_URL+"/ecom",thumbnail:u.CommonGAssets.getAssetPath("helloCare-thumbnail.png"),popupType:"shop"}),l}),[i,r,s,c]);return f}();!function(){var l=t.useContext(n.NavigationContext),a=l.isFirstLogin,i=l.userState.userInfo;t.useEffect((function(){(null==i?void 0:i.id)&&(a?(null==i?void 0:i.email)&&""!==(null==i?void 0:i.email)?window.insider_object={user:e.__assign({uuid:null==i?void 0:i.id,email:null==i?void 0:i.email,gdpr_optin:!0,email_optin:!0,sign_up:!0},(null==i?void 0:i.name)?{name:null==i?void 0:i.name}:{})}:window.insider_object={user:e.__assign({uuid:null==i?void 0:i.id,sign_up:!0},(null==i?void 0:i.name)?{name:null==i?void 0:i.name}:{})}:(null==i?void 0:i.email)&&""!==(null==i?void 0:i.email)?window.insider_object={user:e.__assign({uuid:null==i?void 0:i.id,email:null==i?void 0:i.email,gdpr_optin:!0,email_optin:!0,log_in:!0},(null==i?void 0:i.name)?{name:null==i?void 0:i.name}:{})}:window.insider_object={user:e.__assign({uuid:null==i?void 0:i.id,log_in:!0},(null==i?void 0:i.name)?{name:null==i?void 0:i.name}:{})})}),[])}();var A=s&&{"next-page-hide":""},M=function(e){var l=e.hasSponsoredBanners,a=e.isSiteWide,n=e.isSponsored,i=e.isShowingSiteWideBanner,o=e.isMobile,r=e.showAmpSubBar,s=t.useRef(null),u=t.useState(0),c=u[0],d=u[1],m=t.useState(64),f=m[0],h=m[1],g=t.useCallback(L.default((function(){var e,t,l,a,n=(null===(e=s.current)||void 0===e?void 0:e.clientHeight)||(null===(l=null===(t=s.current)||void 0===t?void 0:t.children[0])||void 0===l?void 0:l.clientHeight)||0;window.scrollY<=n+200&&(d(n),h((null===(a=s.current)||void 0===a?void 0:a.getBoundingClientRect().bottom)||c))}),200),[]);t.useEffect((function(){return window.addEventListener("resize",g),window.addEventListener("scroll",g),g(),function(){window.removeEventListener("resize",g),window.removeEventListener("scroll",g)}}),[]),t.useEffect((function(){g()}),[r,o,a,i,n,l,s.current]);var v=t.useMemo((function(){var e=o?64:69;return i&&(e+=64),n&&(e+=40,l&&(e+=57)),r&&(e+=32),e}),[o,i,l,n,r]);return{defaultHeaderHeight:v,headerHeight:c||v,headerBottom:f,headerRef:s}}({isSiteWide:!!p&&!b,isShowingSiteWideBanner:E&&!!p&&!b,isSponsored:!!g,hasSponsoredBanners:!!(null===(i=null===(a=null==g?void 0:g.props)||void 0===a?void 0:a.sponsoredBy)||void 0===i?void 0:i.length),isMobile:o,showAmpSubBar:s&&!!f}),_=M.headerRef,P=M.defaultHeaderHeight,x=M.headerHeight,H=M.headerBottom;return w.default.createElement(n.StyledContainer$6,{id:"navigation-v2",style:{"--default-header-height":P+"px","--header-height":"calc(".concat(x,"px - var(--amp-site-wide-closed), 64px)"),"--header-bottom":H+"px"},isAmp:s,className:"".concat(s&&E?"nav-open":""," ").concat(y)},w.default.createElement("section",e.__assign({className:s?"amp-header":void 0,"next-page-replace":"hhg-navigator","amp-fx":"float-in-top"},A,{ref:_,style:s?{overflow:"hidden"}:void 0}),w.default.createElement(Ze,{menuItems:k,type:"home",onTopBarAppears:o?function(e){d&&d(e)}:void 0,languageMenu:w.default.createElement(q,{languageOptions:m,locale:c}),setSitewideBannerClosed:S,sitewideBannerClosed:b}),o&&s&&void 0!==f&&w.default.createElement(w.default.Fragment,null,f)),s&&w.default.createElement("amp-lightbox",{id:"discover-amp-lightbox",layout:"nodisplay",style:{width:"100vw",maxWidth:"100vw"},on:"lightboxOpen:AMP.setState({menu: {lightbox: 'open'}});lightboxClose:AMP.setState({menu: {lightbox: 'closed'}})"},w.default.createElement("div",e.__assign({style:{position:"absolute",width:"100%",height:"100%"},role:"button",tabIndex:1},{on:"tap:discover-amp-lightbox.close"})),w.default.createElement(se,{menuItems:k})))},je=function(t){return e.__awaiter(void 0,void 0,void 0,(function(){var l,a,i,o,r,s,u,c,m,f,g,v,p,E,y,C,w,L,b,S,k,A,M,_,P,x,H,T,N,B,R,I,U,G,D,Z;return e.__generator(this,(function(e){switch(e.label){case 0:l={},a="vi-VN_MB"===t,e.label=1;case 1:e.trys.push([1,14,,15]),i="tl-PH"===t?"lang=fil":"",e.label=2;case 2:return e.trys.push([2,4,,5]),[4,Promise.all([fetch("".concat(d.getDiscoverApiDomain(t),"/wp-json/api/categories").concat(i?"?"+i:"")).then((function(e){return e.json()})),fetch("".concat(d.getDiscoverApiDomain(t),"/wp-json/api/spotlights?per_page=10").concat(i?"&"+i:"")).then((function(e){return e.json()})),fetch("".concat(d.getDiscoverApiDomain(t),"/wp-json/api/").concat(a?"health-tools":"healthtools").concat(i?"?"+i:"")).then((function(e){return e.json()})),fetch("".concat(d.getDiscoverApiDomain(t),"/wp-json/api/").concat(a?"health-tools":"healthtools","/favorites").concat(i?"?"+i:"")).then((function(e){return e.json()}))])];case 3:return o=e.sent(),r=o[0],s=o[1],u=o[2],c=o[3],l.categories={items:(null===(w=null===(C=null==r?void 0:r.data)||void 0===C?void 0:C.map)||void 0===w?void 0:w.call(C,fe))||[],spotlights:(null===(k=null===(S=null===(b=null===(L=null==s?void 0:s.data)||void 0===L?void 0:L.articles)||void 0===b?void 0:b.map)||void 0===S?void 0:S.call(b,Ee))||void 0===k?void 0:k.filter(ye))||[]},l.healthTools={items:(null===(M=null===(A=null==u?void 0:u.data)||void 0===A?void 0:A.map)||void 0===M?void 0:M.call(A,he))||[],spotlights:(null===(P=null===(_=null==c?void 0:c.data)||void 0===_?void 0:_.map)||void 0===P?void 0:P.call(_,he))||[]},[3,5];case 4:return e.sent(),[3,5];case 5:if(!a&&!h.TOGETHER_LOCALES.includes(t))return[3,9];e.label=6;case 6:return e.trys.push([6,8,,9]),[4,Promise.all([fetch("".concat(d.getTogetherApiDomain(),"/api/v1/community?website_url=https://").concat(h.domainLocales[t])).then((function(e){return e.json()})),fetch("".concat(d.getTogetherApiDomain(),"/api/v1/options?website_url=https://").concat(h.domainLocales[t],"&meta_key=popular_post")).then((function(e){return e.json()}))])];case 7:return m=e.sent(),f=m[0],g=m[1],l.together={items:(null===(T=null===(H=null===(x=null==f?void 0:f.data)||void 0===x?void 0:x.communities)||void 0===H?void 0:H.map)||void 0===T?void 0:T.call(H,n.formatCommunity))||[],spotlights:(null===(R=null===(B=null===(N=null==g?void 0:g.data)||void 0===N?void 0:N.posts)||void 0===B?void 0:B.map)||void 0===R?void 0:R.call(B,n.formatPost))||[]},[3,9];case 8:return e.sent(),[3,9];case 9:if(!h.CARE_LOCALES.includes(t))return[3,13];e.label=10;case 10:return e.trys.push([10,12,,13]),[4,Promise.all([fetch(d.getCareApiDomain()+"/api/specialties?_ishome=1&site=".concat(h.domainLocales[t])).then((function(e){return e.json()})),fetch(d.getCareApiDomain()+"/api/search/?site=".concat(h.domainLocales[t],"&type=hospital&order_by=total_doctor")).then((function(e){return e.json()}))])];case 11:return v=e.sent(),p=v[0],E=v[1],l.care={items:(null===(G=null===(U=null===(I=null==p?void 0:p._data)||void 0===I?void 0:I.specialties)||void 0===U?void 0:U.map)||void 0===G?void 0:G.call(U,ge))||[],spotlights:(null===(Z=null===(D=null==E?void 0:E._data.searches)||void 0===D?void 0:D.map)||void 0===Z?void 0:Z.call(D,ve))||[]},[3,13];case 12:return e.sent(),[3,13];case 13:return[3,15];case 14:return y=e.sent(),console.error(y),[3,15];case 15:return[2,l]}}))}))};exports.Flag=j,exports.LanguageSwitcher=q,exports.NavHeader=He,exports.NavigationLogoutPopup=Pe,exports.NavigationProfileButton=Ge,exports.NavigationV2=function(t){var l=e.__assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},t);return w.default.createElement(n.NavigationProvider,e.__assign({},l),w.default.createElement(Fe,e.__assign({},l)))},exports.ProfilePopup=Ue,exports.UserProfileNavigation=Re,exports.UserStats=Be,exports.getNavMenuContent=je,exports.getNavMenuContentWithCache=function(t){return e.__awaiter(void 0,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,l.getDataWithCache("nav-menu-content",(function(){return je(t||"en-PH")}),(function(e){var t,l;return!!(null===(l=null===(t=null==e?void 0:e.categories)||void 0===t?void 0:t.items)||void 0===l?void 0:l.length)}))];case 1:return[2,e.sent()||{}]}}))}))};
|
|
1
|
+
"use strict";var e=require("./tslib.es6-e6f346c4.js"),t=require("react"),l=require("./core-97cd306c.js"),a=require("./index.styled-213d989f.js"),n=require("./index.styled-900067b5.js");require("react-id-generator");var i=require("date-fns");require("react-day-picker/DayPickerInput");var o=require("lodash/debounce");require("react-dom");var r=require("./index-1daf49d3.js"),s=require("lodash");require("keen-slider/react");var u=require("./gAssets.js"),c=require("./screenSizeContext-8f86eb30.js");require("react-range"),require("styled-components");var d=require("./getDynamicHealthTool-1d292d71.js");require("./Locale-11b51016.js");var m=require("@mantine/core");require("./translationsContext-170d42d0.js");var f=require("string-format"),h=require("./index-d28c27ca.js");require("react-hook-form"),require("./theme-f97a1fea.js"),require("@mantine/hooks"),require("./isProduction-32e6a55a.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW");var g=require("./constants-ca5ea110.js"),v=require("./useTranslations-5897b4e1.js"),p=require("./index-740c6f7b.js"),E=require("./theme-696d81a9.js"),y=require("./cookieHelper-612b90fa.js");function C(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var w=C(t),L=C(o),b=C(f),S=function(t){return w.default.createElement("img",e.__assign({src:u.CommonGAssets.getAssetPath("flags/cambodiaRound.png"),style:e.__assign({borderRadius:"50%"},t.style)},t))},k=function(t){return w.default.createElement("img",e.__assign({src:u.CommonGAssets.getAssetPath("flags/cambodiaSquare.png")},t))},A=function(t){return w.default.createElement("svg",e.__assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e.__assign({borderRadius:"50%"},t.style)},t),w.default.createElement("g",null,w.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},w.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),w.default.createElement("path",{d:"M7.49953 0.327881C5.47199 0.850891 3.69346 1.98591 2.37793 3.53444L7.49953 6.6655V0.327881Z",fill:"#3F51B5"}),w.default.createElement("path",{d:"M2.30273 16.3824C3.62476 17.9749 5.4353 19.1399 7.50034 19.6729V13.2053L2.30273 16.3824Z",fill:"#3F51B5"}),w.default.createElement("path",{d:"M0.328125 12.5C0.334625 12.526 0.341125 12.5515 0.348125 12.5775L0.474128 12.5H0.328125Z",fill:"white"}),w.default.createElement("path",{d:"M17.7871 3.73445C16.4571 2.08391 14.6131 0.872891 12.499 0.327881V6.96651L17.7871 3.73445Z",fill:"#3F51B5"}),w.default.createElement("path",{d:"M12.499 19.6722C14.6506 19.1172 16.5196 17.8707 17.8546 16.1752L12.499 12.9021V19.6722Z",fill:"#3F51B5"}),w.default.createElement("path",{d:"M0.376626 7.31055C0.359125 7.37305 0.344125 7.43705 0.328125 7.50005H0.686632L0.376626 7.31055Z",fill:"white"}),w.default.createElement("path",{d:"M19.8745 8.50006C19.827 8.18506 19.7655 7.87555 19.6895 7.57104L18.1699 8.50006H19.8745Z",fill:"white"}),w.default.createElement("path",{d:"M0.686034 7.50024H0.327527C0.243026 7.82775 0.175524 8.16076 0.124023 8.50026H2.32207L0.686034 7.50024Z",fill:"white"}),w.default.createElement("path",{d:"M19.7197 12.3148C19.7832 12.0473 19.8337 11.7752 19.8752 11.5002H18.3867L19.7197 12.3148Z",fill:"white"}),w.default.createElement("path",{d:"M2.10956 11.5002H0.124023C0.175024 11.8398 0.243026 12.1728 0.327527 12.5003H0.47403L2.10956 11.5002Z",fill:"white"}),w.default.createElement("path",{d:"M8.50002 7.27665V0.124512C8.16051 0.175513 7.82751 0.243514 7.5 0.328016V6.66564L8.50002 7.27665Z",fill:"white"}),w.default.createElement("path",{d:"M11.5 12.2913V19.8759C11.8395 19.8249 12.1725 19.7569 12.5 19.6724V12.9023L11.5 12.2913Z",fill:"white"}),w.default.createElement("path",{d:"M7.5 13.205V19.6721C7.82751 19.7566 8.16051 19.8241 8.50002 19.8756V12.594L7.5 13.205Z",fill:"white"}),w.default.createElement("path",{d:"M11.5925 7.34715L11.7345 7.43415L12.5 6.96614V0.328016C12.1725 0.243514 11.8395 0.176013 11.5 0.124512V7.49865L11.5925 7.34715Z",fill:"white"}),w.default.createElement("path",{d:"M2.32251 8.50002H7.01761L8.50014 7.594V7.277L7.50011 6.66548L2.37852 3.53442C1.95151 4.03743 1.572 4.58144 1.24949 5.16296L5.02507 7.5H2.29701L0.650482 6.47648C0.54748 6.74949 0.455478 7.02699 0.375977 7.3105L0.686483 7.5L2.32251 8.50002Z",fill:"white"}),w.default.createElement("path",{d:"M11.7344 7.43419L13.4784 8.50021H18.171L19.6905 7.57119C19.528 6.92118 19.303 6.29767 19.02 5.70516L16.139 7.50019H13.4109L18.317 4.45013C18.1515 4.20313 17.9735 3.96562 17.7875 3.73462L12.4999 6.96618L11.7344 7.43419Z",fill:"white"}),w.default.createElement("path",{d:"M5.02448 7.50013L1.2494 5.16309C1.0169 5.58259 0.821394 6.0231 0.650391 6.47661L2.29642 7.50013H5.02448Z",fill:"#E53935"}),w.default.createElement("path",{d:"M16.1392 7.50024L19.0207 5.70521C18.8132 5.2702 18.5837 4.84819 18.3177 4.45068L13.4111 7.50024H16.1392Z",fill:"#E53935"}),w.default.createElement("path",{d:"M11.5 11.5002V12.2913L12.5 12.9023L17.8556 16.1758C18.2416 15.6853 18.5836 15.1593 18.8736 14.6008L15.4856 12.5003H18.2136L19.4432 13.2673C19.5507 12.9563 19.6432 12.6393 19.7197 12.3153L18.3871 11.5002H11.5Z",fill:"white"}),w.default.createElement("path",{d:"M13.4785 8.50019L11.7345 7.43417L11.5925 7.34717L11.5 7.49867V8.50019H13.4785Z",fill:"white"}),w.default.createElement("path",{d:"M8.49934 12.5943V11.5002H2.10921L0.473182 12.5003L0.34668 12.5778C0.522683 13.2383 0.762688 13.8713 1.06319 14.4708L4.16375 12.5003H6.89181L1.80071 15.7168C1.95971 15.9448 2.12471 16.1688 2.30172 16.3823L7.49932 13.2053L8.49934 12.5943Z",fill:"white"}),w.default.createElement("path",{d:"M7.01758 8.50026H8.50011V7.59424L7.01758 8.50026Z",fill:"white"}),w.default.createElement("path",{d:"M15.4854 12.5L18.8729 14.6C19.0949 14.173 19.2834 13.727 19.4429 13.2665L18.2134 12.5H15.4854Z",fill:"#E53935"}),w.default.createElement("path",{d:"M4.16501 12.5L1.06445 14.4705C1.28196 14.9045 1.52596 15.3216 1.80197 15.7166L6.89307 12.5H4.16501Z",fill:"#E53935"}),w.default.createElement("path",{d:"M13.4785 8.5H11.5V11.5001H18.3871H19.8757C19.9497 11.0095 20.0002 10.511 20.0002 10C20.0002 9.48902 19.9497 8.99051 19.8757 8.5H18.1711H13.4785Z",fill:"#E53935"}),w.default.createElement("path",{d:"M8.50017 11.5001V8.5H7.01764H2.32255H0.124502C0.050501 8.99051 0 9.48902 0 10C0 10.511 0.050501 11.0095 0.124502 11.5001H2.11004H8.50017Z",fill:"#E53935"}),w.default.createElement("path",{d:"M11.5001 19.8759V12.2912V11.5002V8.50016V7.49865V0.124502C11.0095 0.050501 10.511 0 10 0C9.48902 0 8.99051 0.050501 8.5 0.124502V7.27664V7.59365V8.50016V11.5002V12.5942V19.8759C8.99051 19.9499 9.48902 20.0004 10 20.0004C10.511 20.0004 11.0095 19.9499 11.5001 19.8759Z",fill:"#E53935"})))},M=function(t){return w.default.createElement("svg",e.__assign({viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),w.default.createElement("g",null,w.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"5",width:"24",height:"16"},w.default.createElement("path",{d:"M1.08301 7.41675C1.08301 6.31218 1.97844 5.41675 3.08301 5.41675H22.9163C24.0209 5.41675 24.9163 6.31218 24.9163 7.41675V18.5834C24.9163 19.688 24.0209 20.5834 22.9163 20.5834H3.08301C1.97844 20.5834 1.08301 19.688 1.08301 18.5834V7.41675Z",fill:"#3F51B5"})),w.default.createElement("path",{d:"M1.08301 5.41675H24.9163V20.5834H1.08301V5.41675Z",fill:"#3F51B5"}),w.default.createElement("path",{d:"M1.08301 7.70041L12.3551 14.5899L14.05 11.8165L3.57901 5.41675H1.08301V7.70041Z",fill:"white"}),w.default.createElement("path",{d:"M24.9165 5.41675H22.9616L12.4912 11.816L14.1855 14.5899L24.9165 8.03083V5.41675Z",fill:"white"}),w.default.createElement("path",{d:"M14.1855 10.9802L12.4912 13.7536L23.6658 20.5834H24.9165V17.5387L14.1855 10.9802Z",fill:"white"}),w.default.createElement("path",{d:"M1.08301 17.8702V20.5834H2.87592L14.05 13.7541L12.3556 10.9802L1.08301 17.8702Z",fill:"white"}),w.default.createElement("path",{d:"M1.08301 10.8333H24.9163V15.1666H1.08301V10.8333Z",fill:"white"}),w.default.createElement("path",{d:"M10.833 5.41675H15.1663V20.5834H10.833V5.41675Z",fill:"white"}),w.default.createElement("path",{d:"M9.32609 10.8334L1.08301 5.79537V7.06504L7.24826 10.8334H9.32609ZM24.0004 5.41675L15.1376 10.8334H17.2149L24.9163 6.12687V5.41675H24.0004ZM17.9191 15.1667L24.9163 19.4432V18.1735L19.9964 15.1667H17.9191ZM8.62192 15.1667L1.08301 19.7742V20.5834H1.83701L10.6992 15.1667H8.62192ZM1.08301 11.9167H24.9163V14.0834H1.08301V11.9167Z",fill:"#E53935"}),w.default.createElement("path",{d:"M11.917 5.41675H14.0837V20.5834H11.917V5.41675Z",fill:"#E53935"})))},_=function(t){return w.default.createElement("img",e.__assign({src:u.CommonGAssets.getAssetPath("flags/indiaRound.png"),style:e.__assign({borderRadius:"50%"},t.style)},t))},P=function(t){return w.default.createElement("img",e.__assign({src:u.CommonGAssets.getAssetPath("flags/indiaSquare.png")},t))},x=function(l){var a=l.isTesting,n=e.__rest(l,["isTesting"]),i=t.useRef("id-flag-round-mask-"+(a?1:Math.random()));return w.default.createElement("svg",e.__assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),w.default.createElement("mask",{id:i.current,style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},w.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),w.default.createElement("g",{mask:"url(#".concat(i.current,")")},w.default.createElement("rect",{width:"20",height:"10",fill:"#CE1126"}),w.default.createElement("rect",{y:"10",width:"20",height:"10",fill:"white"})))},H=function(l){var a=l.isTesting,n=e.__rest(l,["isTesting"]),i=t.useRef("id-flag-clip-"+(a?1:Math.random()));return w.default.createElement("svg",e.__assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),w.default.createElement("g",{clipPath:"url(#".concat(i.current,")")},w.default.createElement("rect",{y:"0.0166016",width:"24",height:"8",fill:"#CE1126"}),w.default.createElement("rect",{y:"8.0166",width:"24",height:"8",fill:"white"})),w.default.createElement("defs",null,w.default.createElement("clipPath",{id:i.current},w.default.createElement("rect",{width:"24",height:"16",rx:"2",fill:"white"}))))},T=function(t){return w.default.createElement("svg",e.__assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e.__assign({borderRadius:"50%"},t.style)},t),w.default.createElement("g",null,w.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},w.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),w.default.createElement("rect",{y:"1",width:"20",height:"20",fill:"#CC0001"}),w.default.createElement("rect",{y:"16.106",width:"20",height:"1.02041",fill:"white"}),w.default.createElement("rect",{y:"16",width:"20",height:"1.02041",fill:"white"}),w.default.createElement("rect",{y:"18",width:"20",height:"1.02041",fill:"white"}),w.default.createElement("rect",{y:"14.0652",width:"20",height:"1.02041",fill:"white"}),w.default.createElement("rect",{y:"12.0242",width:"20",height:"1.02041",fill:"white"}),w.default.createElement("rect",{y:"9.9834",width:"20",height:"1.02041",fill:"white"}),w.default.createElement("rect",{y:"7.94263",width:"20",height:"1.02041",fill:"white"}),w.default.createElement("rect",{y:"5.90186",width:"20",height:"1.02041",fill:"white"}),w.default.createElement("rect",{y:"3.86084",width:"20",height:"1.02041",fill:"white"}),w.default.createElement("rect",{y:"2",width:"20",height:"1.02041",fill:"white"}),w.default.createElement("rect",{width:"20",height:"1.02041",fill:"white"}),w.default.createElement("rect",{y:"-1",width:"10",height:"12",fill:"#010066"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.11387 3.86084C2.92711 3.86084 1.96387 5.23232 1.96387 6.92206C1.96387 8.6118 2.92711 9.98329 4.11387 9.98329C4.54263 9.98329 4.94211 9.80406 5.27763 9.4957C5.08225 9.59203 4.87256 9.64471 4.65427 9.64471C3.60193 9.64471 2.74786 8.42866 2.74786 6.93032C2.74786 5.43198 3.60193 4.21594 4.65427 4.21594C4.88682 4.21594 5.10959 4.27527 5.31571 4.38397C4.97256 4.0538 4.5589 3.86084 4.11387 3.86084Z",fill:"#FFCC00"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.67935 8.51573L6.7737 7.8407L7.04147 9.22221L6.43573 8.06657L6.24676 9.47313L6.0609 8.06576L5.4526 9.2188L5.72343 7.83844L4.81629 8.50957L5.49017 7.42963L4.46387 7.48593L5.40732 6.9203L4.46512 6.35062L5.4913 6.41133L4.81981 5.3285L5.72546 6.00353L5.45769 4.62202L6.06343 5.77766L6.25241 4.37109L6.43827 5.77847L7.04656 4.62543L6.77574 6.00579L7.68287 5.33466L7.00899 6.4146L8.0353 6.3583L7.09184 6.92392L8.03404 7.49361L7.00786 7.43289L7.67935 8.51573Z",fill:"#FFCC00"})))},N=function(t){return w.default.createElement("svg",e.__assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),w.default.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#CC0001"}),w.default.createElement("rect",{y:"12.2712",width:"24",height:"0.777454",fill:"white"}),w.default.createElement("rect",{y:"12.1904",width:"24",height:"0.777454",fill:"white"}),w.default.createElement("rect",{y:"13.7144",width:"24",height:"0.777454",fill:"white"}),w.default.createElement("rect",{y:"10.7161",width:"24",height:"0.777454",fill:"white"}),w.default.createElement("rect",{y:"9.16138",width:"24",height:"0.777454",fill:"white"}),w.default.createElement("rect",{y:"7.60645",width:"24",height:"0.777454",fill:"white"}),w.default.createElement("rect",{y:"6.05127",width:"24",height:"0.777454",fill:"white"}),w.default.createElement("rect",{y:"4.49658",width:"24",height:"0.777454",fill:"white"}),w.default.createElement("rect",{y:"2.94141",width:"24",height:"0.777454",fill:"white"}),w.default.createElement("rect",{y:"1.52393",width:"24",height:"0.777454",fill:"white"}),w.default.createElement("rect",{width:"24",height:"0.777454",fill:"white"}),w.default.createElement("path",{d:"M0 2C0 0.895431 0.895431 0 2 0H12V8.38095H0V2Z",fill:"#010066"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.93644 1.52393C3.51233 1.52393 2.35645 2.56887 2.35645 3.85629C2.35645 5.14371 3.51233 6.18865 4.93644 6.18865C5.45096 6.18865 5.93034 6.05209 6.33296 5.81716C6.09851 5.89054 5.84688 5.93068 5.58492 5.93068C4.32212 5.93068 3.29724 5.00417 3.29724 3.86258C3.29724 2.72099 4.32212 1.79448 5.58492 1.79448C5.86399 1.79448 6.13132 1.83968 6.37865 1.9225C5.96688 1.67094 5.47049 1.52393 4.93644 1.52393Z",fill:"#FFCC00"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.216 5.07041L8.12923 4.55611L8.45055 5.60869L7.72366 4.72819L7.49689 5.79987L7.27386 4.72758L6.5439 5.60609L6.86889 4.55439L5.78033 5.06572L6.58899 4.24291L5.35742 4.28581L6.48957 3.85485L5.35893 3.42081L6.59034 3.46707L5.78456 2.64205L6.87133 3.15636L6.55001 2.10378L7.2769 2.98427L7.50367 1.9126L7.7267 2.98488L8.45666 2.10638L8.13166 3.15808L9.22022 2.64674L8.41157 3.46955L9.64314 3.42666L8.51099 3.85761L9.64163 4.29165L8.41022 4.2454L9.216 5.07041Z",fill:"#FFCC00"}))},B=function(t){return w.default.createElement("svg",e.__assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e.__assign({borderRadius:"50%"},t.style)},t),w.default.createElement("g",null,w.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},w.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),w.default.createElement("rect",{x:"-4",y:"-1",width:"28",height:"11",fill:"#FECB00"}),w.default.createElement("rect",{x:"-4",y:"10",width:"28",height:"10",fill:"#EA2839"}),w.default.createElement("rect",{x:"-4",y:"6.7041",width:"28",height:"6.47773",fill:"#34B233"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.56543 10.3272L10.1796 5.15527L11.7938 10.3272H8.56543Z",fill:"white"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5292 11.2775L7.18336 14.5129L8.91745 9.37991L11.5292 11.2775Z",fill:"white"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.75181 11.8648L5.33182 8.73143L10.7494 8.79447L9.75181 11.8648Z",fill:"white"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.6105 8.78962L15.0281 8.72658L10.6081 11.86L9.6105 8.78962Z",fill:"white"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4424 9.37686L13.1765 14.5098L8.83064 11.2744L11.4424 9.37686Z",fill:"white"})))},R=function(t){return w.default.createElement("svg",e.__assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),w.default.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#FECB00"}),w.default.createElement("rect",{y:"8.3811",width:"24",height:"7.61905",rx:"2",fill:"#EA2839"}),w.default.createElement("rect",{y:"5.86987",width:"24",height:"4.93542",fill:"#34B233"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.7705 8.63046L12.1541 4.68994L13.5377 8.63046H10.7705Z",fill:"white"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.3108 9.35502L9.58574 11.8201L11.0721 7.90925L13.3108 9.35502Z",fill:"white"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7874 9.80216L7.99884 7.41482L12.6425 7.46285L11.7874 9.80216Z",fill:"white"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6667 7.4589L16.3104 7.41087L12.5218 9.79821L11.6667 7.4589Z",fill:"white"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2361 7.90629L14.7225 11.8171L10.9974 9.35207L13.2361 7.90629Z",fill:"white"}))},I=function(t){return w.default.createElement("img",e.__assign({src:u.CommonGAssets.getAssetPath("flags/philippineRound.png"),style:e.__assign({borderRadius:"50%"},t.style)},t))},U=function(t){return w.default.createElement("img",e.__assign({src:u.CommonGAssets.getAssetPath("flags/philippineSquare.png")},t))},G=function(t){return w.default.createElement("svg",e.__assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e.__assign({borderRadius:"50%"},t.style)},t),w.default.createElement("g",null,w.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},w.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),w.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#D8D8D8"}),w.default.createElement("g",null,w.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},w.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"white"})),w.default.createElement("rect",{width:"30",height:"20",fill:"#ED1E24"}),w.default.createElement("rect",{width:"15",height:"10",fill:"#2B2F84"}),w.default.createElement("circle",{cx:"7.49791",cy:"4.99913",r:"1.869",fill:"white"}),w.default.createElement("path",{d:"M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z",fill:"white"}),w.default.createElement("path",{d:"M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z",fill:"white"}),w.default.createElement("path",{d:"M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z",fill:"white"}),w.default.createElement("path",{d:"M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z",fill:"white"}),w.default.createElement("path",{d:"M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z",fill:"white"}),w.default.createElement("path",{d:"M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z",fill:"white"}),w.default.createElement("path",{d:"M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z",fill:"white"}),w.default.createElement("path",{d:"M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z",fill:"white"}),w.default.createElement("path",{d:"M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z",fill:"white"}),w.default.createElement("path",{d:"M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z",fill:"white"}),w.default.createElement("path",{d:"M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z",fill:"white"}),w.default.createElement("path",{d:"M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z",fill:"white"}))))},D=function(t){return w.default.createElement("svg",e.__assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),w.default.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#ED1E24"}),w.default.createElement("path",{d:"M0 2C0 0.89543 0.895431 0 2 0H15V10H0V2Z",fill:"#2B2F84"}),w.default.createElement("circle",{cx:"7.49791",cy:"4.99913",r:"1.869",fill:"white"}),w.default.createElement("path",{d:"M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z",fill:"white"}),w.default.createElement("path",{d:"M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z",fill:"white"}),w.default.createElement("path",{d:"M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z",fill:"white"}),w.default.createElement("path",{d:"M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z",fill:"white"}),w.default.createElement("path",{d:"M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z",fill:"white"}),w.default.createElement("path",{d:"M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z",fill:"white"}),w.default.createElement("path",{d:"M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z",fill:"white"}),w.default.createElement("path",{d:"M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z",fill:"white"}),w.default.createElement("path",{d:"M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z",fill:"white"}),w.default.createElement("path",{d:"M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z",fill:"white"}),w.default.createElement("path",{d:"M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z",fill:"white"}),w.default.createElement("path",{d:"M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z",fill:"white"}))},Z=function(t){return w.default.createElement("svg",e.__assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e.__assign({borderRadius:"50%"},t.style)},t),w.default.createElement("g",null,w.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},w.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),w.default.createElement("rect",{x:"-4",y:"-0.0166016",width:"28",height:"20",fill:"#ED1C24"}),w.default.createElement("rect",{x:"-4",y:"3.31665",width:"28",height:"13.3333",fill:"white"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-4 6.65015H24V13.3168H-4V6.65015Z",fill:"#241D4F"})))},V=function(t){return w.default.createElement("svg",e.__assign({viewBox:"0 0 24 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),w.default.createElement("rect",{y:"0.983398",width:"24",height:"16",rx:"2",fill:"#ED1C24"}),w.default.createElement("rect",{y:"3.65039",width:"24",height:"10.6667",fill:"white"}),w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.31689H24V11.6502H0V6.31689Z",fill:"#241D4F"}))},O=function(t){return w.default.createElement("svg",e.__assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e.__assign({borderRadius:"50%"},t.style)},t),w.default.createElement("g",null,w.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},w.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),w.default.createElement("rect",{x:"-4",y:"-0.0166016",width:"28",height:"20",fill:"#DA251D"}),w.default.createElement("path",{d:"M11.7228 10.8677L14.2819 9.00839L11.1187 9.00839L10.1409 6L9.16316 9.00839L6 9.00839L8.5591 10.8677L7.58184 13.8766L10.1409 12.0168L12.7 13.8766L11.7228 10.8677Z",fill:"#FFEB3B"})))},F=function(t){return w.default.createElement("svg",e.__assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),w.default.createElement("g",null,w.default.createElement("clipPath",null,w.default.createElement("rect",{width:"24",height:"16",fill:"white"})),w.default.createElement("path",{d:"M2.01386e-10 2C0 0.895431 0.895431 -7.50368e-10 2 -1.67599e-09L22 -1.84359e-08C23.1046 -1.93615e-08 24 0.895431 24 2L24 14C24 15.1046 23.1046 16 22 16L2 16C0.89543 16 1.52092e-09 15.1046 1.4097e-09 14L2.01386e-10 2Z",fill:"#DA251D"}),w.default.createElement("path",{d:"M13.7823 8.92854L16.6663 6.8332L13.1016 6.8332L11.9997 3.44287L10.8978 6.8332L7.33301 6.8332L10.217 8.92854L9.11567 12.3195L11.9997 10.2235L14.8837 12.3195L13.7823 8.92854Z",fill:"#FFEB3B"})))},j=function(e){var t,l,n=e.country,i=e.language,o=e.rounded,r=e.height,s=e.width,u=e.isTesting;switch(i){case"en":t=w.default.createElement(M,null),l=w.default.createElement(A,null);break;case"vi":t=w.default.createElement(F,null),l=w.default.createElement(O,null);break;case"id":t=w.default.createElement(H,{isTesting:u}),l=w.default.createElement(x,{isTesting:u});break;case"th":t=w.default.createElement(V,null),l=w.default.createElement(Z,null);break;case"km":t=w.default.createElement(k,null),l=w.default.createElement(S,null);break;case"ms":t=w.default.createElement(N,null),l=w.default.createElement(T,null);break;case"my":t=w.default.createElement(R,null),l=w.default.createElement(B,null);break;case"tl":t=w.default.createElement(U,null),l=w.default.createElement(I,null);break;case"hi":t=w.default.createElement(P,null),l=w.default.createElement(_,null);break;case"zh":t=w.default.createElement(D,null),l=w.default.createElement(G,null)}if(!t&&!l)switch(n){case"VN":t=w.default.createElement(F,null),l=w.default.createElement(O,null);break;case"ID":t=w.default.createElement(H,{isTesting:u}),l=w.default.createElement(x,{isTesting:u});break;case"TH":t=w.default.createElement(V,null),l=w.default.createElement(Z,null);break;case"KH":t=w.default.createElement(k,null),l=w.default.createElement(S,null);break;case"MY":t=w.default.createElement(N,null),l=w.default.createElement(T,null);break;case"MM":t=w.default.createElement(R,null),l=w.default.createElement(B,null);break;case"PH":t=w.default.createElement(U,null),l=w.default.createElement(I,null);break;case"IN":t=w.default.createElement(P,null),l=w.default.createElement(_,null);break;case"TW":t=w.default.createElement(D,null),l=w.default.createElement(G,null)}return w.default.createElement(a.StyledFlag,{theme:{width:s,height:r}},o?l:t)},W=function(e){var l=e.options,i=e.label,o=e.labelRenderer,r=e.selected,s=e.onChange,c=e.showSelected,d=void 0===c||c,m=e.style,f=void 0===m?{}:m,h=e.showIndicator,g=void 0===h||h,v=t.useState(!1),p=v[0],E=v[1];return w.default.createElement(w.default.Fragment,null,w.default.createElement(n.StyledSelectionContainer,null,w.default.createElement(n.StyledSelectionLabel,{onClick:function(){return E((function(e){return!e}))}},i||(null==o?void 0:o(p))||null,w.default.createElement(n.StyleSelectionPopup,{"data-is-open":p,style:f,"data-show-indicator":g},l.map((function(e,t){return w.default.createElement(n.StyledOption,{key:t,"data-selected":d&&r===e.value,onClick:function(t){r!==e.value&&(s(e.value),E((function(e){return!e}))),t.stopPropagation()}},w.default.createElement(a.Text,{size:"p3"},e.label),d&&r===e.value&&w.default.createElement("img",{src:u.CommonGAssets.getAssetPath("check.svg"),alt:"check",className:"check-icon"}))}))))),p&&w.default.createElement(n.StyledPopupBackground,{onClick:function(){return E(!1)}}))},q=function(e){var t,l,a=e.languageOptions,n=e.locale,i=null==a?void 0:a.find((function(e){return e.locale===n}));return(null==a?void 0:a.length)?w.default.createElement(W,{options:a,selected:i.value,label:w.default.createElement($,{locale:n,label:i.label||(null===(l=null===(t=n.split("-"))||void 0===t?void 0:t[0])||void 0===l?void 0:l.toUpperCase())}),onChange:function(e){"undefined"!=typeof window&&(window.location.href=e)},style:{width:100},showSelected:!0,showIndicator:!1}):null},$=function(e){var t,l,a,i=e.locale,o=e.label,r=e.href;return w.default.createElement(n.StyledLanguageChangeLink,{href:r},w.default.createElement(j,{country:null===(l=null===(t=null==i?void 0:i.split("-"))||void 0===t?void 0:t[1])||void 0===l?void 0:l.toUpperCase(),width:16,height:16,rounded:!0,language:null===(a=null==i?void 0:i.split("-"))||void 0===a?void 0:a[0]}),w.default.createElement("span",null,o))},z=function(){return w.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.97183 10.8732C3.97183 7.0617 7.0617 3.97183 10.8732 3.97183C14.6848 3.97183 17.7746 7.0617 17.7746 10.8732C17.7746 14.6848 14.6848 17.7746 10.8732 17.7746C7.0617 17.7746 3.97183 14.6848 3.97183 10.8732ZM10.8732 2C5.97268 2 2 5.97268 2 10.8732C2 15.7738 5.97268 19.7465 10.8732 19.7465C12.9683 19.7465 14.8938 19.0204 16.4118 17.8061L20.3169 21.7112C20.702 22.0963 21.3262 22.0963 21.7112 21.7112C22.0963 21.3262 22.0963 20.702 21.7112 20.3169L17.8061 16.4118C19.0204 14.8938 19.7465 12.9683 19.7465 10.8732C19.7465 5.97268 15.7738 2 10.8732 2Z",fill:"#8C8C8C"}))},K=function(){var e=t.useContext(n.NavigationContext),l=e.locale,i=e.configs.statics,o=e.siteType,r=v.useTranslations().t;return w.default.createElement(a.PureInput,{className:"fake-search-input",name:"search-input-menu-service",size:"md",placeholder:"marryBaby"===o?r("navigation.search.input.placeholder"):r("home.search",{site:h.LOCALE_SPECS[l||"en-PH"]?h.LOCALE_SPECS[l||"en-PH"].SITE_NAME:""}),onChange:function(){},onKeyDown:function(e){return"Enter"===e.key&&(window.location.href="".concat(i.HOME_PAGE_URL,"/search/?s=").concat(e.target.value))},type:"search",onFocus:function(e){e.preventDefault()},displayIcon:w.default.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},w.default.createElement(z,null))})},Y=function(e){var l=e.hrefViewMore,a=e.titleBtnViewMore,i=e.UrlFE,o=e.onClosePopup,s=e.menuItems,c=e.headingTitle,d=t.useContext(n.NavigationContext),m=d.siteType,f=d.isAmp;return w.default.createElement(n.StyledItemGridLeft,null,w.default.createElement(n.StyledHeading,null,w.default.createElement(r.Heading,{tag:"marryBaby"===m?"h5":"h6",as:"h2",fontWeight:"semibold"},c)),null==s?void 0:s.slice(0,6).map((function(e,t){var l=(null==e?void 0:e.link)?(null==e?void 0:e.link.startsWith("http"))?null==e?void 0:e.link:"".concat(i,"/").concat(null==e?void 0:e.link.split("/").filter(Boolean).join("/"),"/"):"/";return w.default.createElement(n.StyledItem,{className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":l,"data-is-heading-category":!1,href:l,"data-theme":m,key:t,onClick:o},w.default.createElement("div",{className:"icon"},f?w.default.createElement("img",{alt:e.name,src:e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32}}):w.default.createElement("img",{className:"lazy",alt:e.name,"data-src":e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32}})),w.default.createElement("p",null,e.name),w.default.createElement(n.StyledIconNav,null,w.default.createElement("img",{src:u.CommonGAssets.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"}})))})),a&&w.default.createElement(n.StyledViewMore,{"data-theme":m,style:{textDecoration:"none"},href:l,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":l},w.default.createElement(n.StyledItemAll,{onClick:o,"data-theme":m,"data-is-heading-category":!1},a,w.default.createElement(n.StyledImageWrapper,null,w.default.createElement("img",{className:"svg",src:"marryBaby"===m?u.CommonGAssets.getAssetPath("chevronRightPink.svg"):u.CommonGAssets.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}})))))},Q=function(e){var l=e.title,a=e.link,i=e.description,o=e.cta,r=e.icon,s=t.useContext(n.NavigationContext),c=s.siteType,d=s.isAmp;return w.default.createElement(n.StyledContainerNoPosts,{"data-theme":c},w.default.createElement(n.StyledLeft,null,d?w.default.createElement("img",{src:"marryBaby"===c?u.CommonGAssets.getAssetPath("navMBSpotlightBgNoData.svg"):u.CommonGAssets.getAssetPath("navSpotlightBgNoData.svg"),alt:"",className:"bg-svg"}):w.default.createElement("img",{"data-src":"marryBaby"===c?u.CommonGAssets.getAssetPath("navMBSpotlightBgNoData.svg"):u.CommonGAssets.getAssetPath("navSpotlightBgNoData.svg"),alt:"",className:"bg-svg lazy"}),w.default.createElement(n.StyledContentLeft,null,r&&w.default.createElement("img",{src:r,width:64,height:64}))),w.default.createElement("div",null,l&&w.default.createElement(n.StyledTitle,null,l),i&&w.default.createElement(n.StyledDescription$1,null,i),o&&w.default.createElement("div",null,w.default.createElement("a",{href:a},w.default.createElement(p.Button,{theme:c,className:"survey-contact-submit",size:"md"},o)))))},J=function(e){var l=e.title,a=e.viewMore,i=e.children,o=e.link,s=e.dataEventAction,c=void 0===s?"":s,d=t.useContext(n.NavigationContext).siteType;return w.default.createElement(n.StyledItemGridRight,null,w.default.createElement(n.StyledHeading$1,null,w.default.createElement(r.Heading,{tag:"marryBaby"===d?"h5":"h6",as:"h2",fontWeight:"semibold"},l),a&&w.default.createElement(n.StyledViewMore$1,{"data-event-category":"Hamburger Navigation","data-event-action":c,"data-event-label":o,href:o,"data-theme":d},a,w.default.createElement("img",{src:"marryBaby"===d?u.CommonGAssets.getAssetPath("chevronRightPink.svg"):u.CommonGAssets.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}}))),i)},X=function(e){var l,a=e.item,i=e.index,o=void 0===i?0:i,r=v.useTranslations().t,s=t.useContext(n.NavigationContext),c=s.locale,d=s.configs.statics,m=s.isAmp;if(!a)return null;var f="".concat(d.CARE_URL_FE,"/").concat(null===(l=g.LOCALIZED_SLUGS[c])||void 0===l?void 0:l.HOSPITAL,"/").concat(a.slug,"-").concat(a.id);return w.default.createElement(n.StyledItem$1,{key:a.id,href:f,"data-event-category":"Hamburger Navigation","data-event-action":"Care Click ".concat(o+1),"data-event-label":f},m?w.default.createElement("img",{src:u.CommonGAssets.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg"}):w.default.createElement("img",{"data-src":u.CommonGAssets.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg lazy"}),w.default.createElement(n.StyledImageCard,null,w.default.createElement(n.StyledImageCardInner,null,m?w.default.createElement("img",{alt:a.name,src:a.logo||"/images/avatar.jpg"}):w.default.createElement("img",{className:"lazy",alt:a.name,"data-src":a.logo||"/images/avatar.jpg"}))),w.default.createElement(n.StyledContentWrapper,null,w.default.createElement(n.StyledTitle$1,null,a.name),w.default.createElement(n.StyledDes,null,a.description),w.default.createElement(n.StyledBtnView,null,r("home.seeMore"),w.default.createElement("img",{src:u.CommonGAssets.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"}}))))},ee=function(e){var t=e.spotlights,l=void 0===t?[]:t,a=e.hrefViewMore,i=v.useTranslations().t;return w.default.createElement(J,{title:i("home.navigator.menu.spotlightHospitals")},0!==l.length?w.default.createElement(n.StyledContainerItems,null,null==l?void 0:l.slice(0,3).map((function(e,t){return w.default.createElement(X,{key:t,index:t,item:e})}))):w.default.createElement(Q,{title:i("home.navigator.menu.care.noDatas.title"),description:i("home.navigator.menu.care.noDatas.description"),link:a,cta:i("home.navigator.menu.care.noDatas.cta"),icon:u.CommonGAssets.getAssetPath("community.svg")}))},te=function(e){var l=e.item,a=e.index,i=void 0===a?0:a;if(!l)return null;var o=t.useContext(n.NavigationContext).isAmp;return w.default.createElement(n.StyledItem$2,{key:l.id,href:l.link,"data-event-category":"Hamburger Navigation","data-event-action":"Spotlight Click ".concat(i+1),"data-event-label":l.link},w.default.createElement(n.StyledImageCard$1,null,o?w.default.createElement("img",{alt:l.title,src:l.banner||"/images/notFound-min-small.jpg"}):w.default.createElement("img",{className:"lazy",alt:l.title,"data-src":l.banner||"/images/notFound-min-small.jpg"})),w.default.createElement(n.StyledTitle$2,null,l.title))},le=function(e){var l=e.spotlightsList,a=void 0===l?[]:l,i=e.hrefViewMore,o=v.useTranslations().t,r=t.useContext(n.NavigationContext).configs.statics;return w.default.createElement(J,{title:o("home.navigator.menu.spotlights"),viewMore:o("home.navigator.menu.spotlights.seeAll"),link:i,dataEventAction:"Spotlight See More Click"},0!==a.length?w.default.createElement(n.StyledContainerItems$1,null,null==a?void 0:a.slice(0,4).map((function(e,t){return w.default.createElement(te,{key:t,index:t,item:{id:e.id,link:r.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})}))):w.default.createElement(Q,{title:o("home.navigator.menu.category.noDatas.title"),description:o("home.navigator.menu.category.noDatas.description"),link:i,cta:o("home.navigator.menu.category.noDatas.cta"),icon:u.CommonGAssets.getAssetPath("Spotlight.svg")}))},ae=function(e){var l,a,o,r,s,u,c,d=e.post,m=e.index,f=void 0===m?0:m,h=t.useContext(n.NavigationContext),g=h.siteType,v=h.locale,p=h.configs.statics,E=h.isAmp;if(!d)return null;var y=[p.TOGETHER_URL_FE,null===(l=d.community)||void 0===l?void 0:l.slug].join("/"),C=[y,d.slug].join("/"),L=d.createdAt,b=L?isNaN(new Date(L).getTime())?null:new Date(L):null,S=b?i.formatDistanceToNow(b,{locale:n.locales[v]}):L;return w.default.createElement(n.StyledItem$3,{href:C,"data-event-category":"Hamburger Navigation","data-event-action":"Together Click ".concat(f+1),"data-event-label":C},w.default.createElement(n.StyledContent$1,null,w.default.createElement(n.StyledInfoUser,null,w.default.createElement(n.UserAvatar,{avatar:null===(a=d.author)||void 0===a?void 0:a.avatar,username:(null===(o=d.author)||void 0===o?void 0:o.name)||(null===(r=d.author)||void 0===r?void 0:r.username),isLazy:!E}),w.default.createElement(n.StyledWrapInfo$1,null,w.default.createElement(n.StyledName,{"data-theme":g},null===(s=d.author)||void 0===s?void 0:s.name),w.default.createElement(n.StyledInfo,null,w.default.createElement(n.StyledCategory,{"data-event-category":"Hamburger Navigation","data-event-action":"Topic Click ".concat(f+1),"data-event-label":y,onClick:function(e){e.preventDefault(),location.href=y},"data-theme":g},null===(u=d.community)||void 0===u?void 0:u.name),w.default.createElement(n.StyledDot$2,null,"•"),w.default.createElement(n.StyledModifiedTime,{"data-theme":g},S)))),w.default.createElement(n.StyledTitle$3,null,d.title)),!!(null===(c=d.photos)||void 0===c?void 0:c.length)&&(E?w.default.createElement(n.StyledImage,{src:d.photos[0]}):w.default.createElement(n.StyledImage,{className:"lazy","data-src":d.photos[0]})))},ne=function(e){var l=e.spotlights,a=void 0===l?[]:l,i=t.useContext(n.NavigationContext).configs.statics,o=v.useTranslations().t;return w.default.createElement(J,{title:o("home.navigator.menu.trendingPosts"),viewMore:o("home.navigator.menu.trendingPosts.seeMore"),link:i.TOGETHER_URL_FE,dataEventAction:"Together See More Click"},0!==a.length?w.default.createElement(n.StyledContainerItems$2,null,null==a?void 0:a.slice(0,4).map((function(e,t){return w.default.createElement(ae,{index:t,post:e,key:e.id})}))):w.default.createElement(Q,{title:o("home.navigator.menu.together.noPosts.title"),description:o("home.navigator.menu.together.noPosts.description"),link:"".concat(i.HOME_PAGE_URL,"/community/"),cta:o("home.navigator.menu.together.noPosts.cta"),icon:u.CommonGAssets.getAssetPath("community.svg")}))},ie=function(e){var l=e.item,a=e.index,i=void 0===a?0:a,o=v.useTranslations().t,r=t.useContext(n.NavigationContext),s=r.configs.statics,c=r.isAmp;if(!l)return null;var d=l.link?l.link.startsWith("http")?l.link:"".concat(s.HOME_PAGE_URL).concat(l.link):void 0;return w.default.createElement(n.StyledItem$4,{href:d,"data-event-category":"Hamburger Navigation","data-event-action":"Engage Click ".concat(i+1),"data-event-label":d},c?w.default.createElement("img",{src:u.CommonGAssets.getAssetPath("navToolCardBg.svg"),alt:"",className:"bg-svg"}):w.default.createElement("img",{"data-src":u.CommonGAssets.getAssetPath("navToolCardBg.svg"),alt:"",className:"bg-svg lazy"}),w.default.createElement(n.StyledContentWrapper$1,null,w.default.createElement(n.StyledTitle$4,null,l.title),w.default.createElement(n.StyledDes$1,null,l.subtitle),w.default.createElement(n.StyledBtnView$1,null,o("home.seeMore"),w.default.createElement("img",{src:u.CommonGAssets.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"}}))),w.default.createElement(n.StyledImageCard$2,null,c?w.default.createElement("img",{alt:l.title,src:l.icon||"/images/avatar.jpg"}):w.default.createElement("img",{className:"lazy",alt:l.title,"data-src":l.icon||"/images/avatar.jpg"})))},oe=function(e){var l=e.item,a=e.index,i=void 0===a?0:a,o=e.color,r=v.useTranslations().t,s=t.useContext(n.NavigationContext),c=s.configs.statics,d=s.isAmp;if(!l)return null;var m=l.link?l.link.startsWith("http")?l.link:"".concat(c.HOME_PAGE_URL).concat(l.link):void 0,f=function(){return w.default.createElement(n.StyledImageCard$3,null,d?w.default.createElement("img",{src:l.icon||"/images/avatar.jpg"}):w.default.createElement("img",{className:"lazy",alt:l.title,"data-src":l.icon||"/images/avatar.jpg"}))},h=function(){return w.default.createElement(n.StyledWrapName,null,w.default.createElement(n.StyledContent$2,null,w.default.createElement(n.StyledTitle$5,null,l.title),w.default.createElement(n.StyledDes$2,null,l.subtitle)),w.default.createElement(n.StyledBtnView$2,null,w.default.createElement("div",{className:"mobile-only"},r("home.seeMore")),w.default.createElement("img",{src:u.CommonGAssets.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"}})))};return w.default.createElement(n.StyledItem$5,{href:m,"data-event-category":"Hamburger Navigation","data-event-action":"Engage Click ".concat(i+1),"data-event-label":m,"data-color":o},w.default.createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.default.createElement("path",{d:"M58.5713 53.428C40.6466 70.0213 12.9929 71.0875 -7.00506 84.9856C-24.9277 97.4005 -38.3893 120.472 -60.213 120.346C-73.3615 120.271 -84.9289 110.925 -91.9303 99.8138C-101.443 84.7327 -103.994 64.0482 -93.916 49.3276C-81.8133 31.6505 -56.6933 28.1101 -41.7246 12.7895C-35.4351 6.35117 -31.2212 -1.90115 -24.8564 -8.25051C-7.17639 -25.9054 34.9604 -29.7543 56.852 -16.9562C80.9056 -2.89888 77.046 36.3304 58.5713 53.428Z",strokeWidth:"0"})),w.default.createElement("img",{"data-src":u.CommonGAssets.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg lazy",alt:""}),w.default.createElement(n.StyledContentWrapper$2,null,w.default.createElement("div",{className:"mobile-only"},f()),w.default.createElement("div",{className:"desktop-only"},h())),w.default.createElement("div",{className:"mobile-only"},h()),w.default.createElement("div",{className:"desktop-only"},f()))},re=function(e){var l=e.hrefViewMore,a=e.spotlightHealthTools,i=void 0===a?[]:a,o=v.useTranslations().t,r=["pink","orange","green"],s=t.useContext(n.NavigationContext).siteType;return w.default.createElement(J,{title:o("home.navigator.menu.spotlightTools")},0!==i.length&&w.default.createElement(n.StyledContainerItems$3,null,null==i?void 0:i.slice(0,3).map((function(e,t){return"marryBaby"===s?w.default.createElement(oe,{key:t,index:t,item:e,color:r[t]}):w.default.createElement(ie,{key:t,index:t,item:e})}))),0===i.length&&w.default.createElement(Q,{title:o("home.navigator.menu.healthTools.noDatas.title"),description:o("home.navigator.menu.healthTools.noDatas.description"),link:l,cta:o("home.navigator.menu.healthTools.noDatas.cta"),icon:u.CommonGAssets.getAssetPath("community.svg")}))},se=function(e){var l,a,i=e.closePopup,o=e.menuItems,r=void 0===o?[]:o,s=t.useContext(n.NavigationContext),u=s.siteType,c=s.ssrMenuContent,d=c.categories,m=c.healthTools,f=c.care,p=c.together,E=s.activeMenuService,y=s.configs,C=y.statics,L=y.enableSearchBar,b=s.isAmp,S=s.locale,k=v.useTranslations().t;return w.default.createElement(n.StyledMasterMenuContainer,{id:"categories-menu","data-is-amp":b},L?w.default.createElement(n.StyledServiceListMenuSearchInputWrapper,{"data-theme":u,onClick:function(){window.location.href="".concat(C.HOME_PAGE_URL,"/search")}},w.default.createElement(K,null)):null,w.default.createElement(n.StyledWrapper$1,null,w.default.createElement(Y,{UrlFE:C.HOME_PAGE_URL,titleBtnViewMore:k("home.navigator.menuItem.allCategories"),menuItems:r,headingTitle:k("home.navigator.menuItem.healthCategories"),onClosePopup:i}),"categories"===E&&w.default.createElement(le,{spotlightsList:(null==d?void 0:d.spotlights)||[],hrefViewMore:"".concat(C.HOME_PAGE_URL).concat("tl-PH"===S?"/fil":"","/spotlight/")}),"tools"===E&&w.default.createElement(re,{spotlightHealthTools:null==m?void 0:m.spotlights,hrefViewMore:"".concat(C.HOME_PAGE_URL).concat("tl-PH"===S?"/fil":"").concat((null===(l=h.STATIC_PAGES[S])||void 0===l?void 0:l.HEALTH_TOOLS)||"")}),"care"===E&&w.default.createElement(ee,{spotlights:null==f?void 0:f.spotlights,hrefViewMore:"".concat(C.CARE_URL_FE,"/").concat(null===(a=g.LOCALIZED_SLUGS[S])||void 0===a?void 0:a.SPECIALTIES)}),"together"===E&&w.default.createElement(ne,{spotlights:null==p?void 0:p.spotlights})))},ue=function(e){var l=e.forceDisplay,a=e.mediaQueryKey,i=e.children,o=e.className,r=e.style,s=t.useMemo((function(){return c.getBoundariesFromMediaQueryKey(a)}),[a]),u=s[0],d=s[1];return w.default.createElement(n.StyledDisplayWrapper,{lowerBound:l?0:u,upperBound:l?0:d,className:o,style:r},i)},ce=function(e){var t=e.onCareHeaderClick,l=e.currentUrl,a=e.careUrlFe,i=e.btnName;return w.default.createElement(n.StyledButtonBooking,null,t?w.default.createElement(p.Button,{className:"login-btn-mobile",size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:l,onClick:function(e){return t(e)}},i):w.default.createElement("a",{href:a,className:"care-button no-replace-click"},w.default.createElement(p.Button,{className:"login-btn-mobile",size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:l},i)))},de=function(e){var l=(e||{}).allowBgScroll,a=t.useRef();return{containerRef:a,onContainerFocus:function(){l||(document.documentElement.style.overflow="hidden")},onContainerBlur:function(){l||(document.documentElement.style.overflow="")},onButtonMouseDown:function(e){a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur(),e.preventDefault())},onClose:function(){a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur())}}},me=function(e){var l=e.item,a=e.menu,i=de({allowBgScroll:!0}),o=i.containerRef,r=i.onContainerFocus,s=i.onContainerBlur,u=i.onButtonMouseDown,c=i.onClose,d=function(){var e=t.useState(!0),l=e[0],a=e[1];return t.useEffect((function(){a(!1)}),[]),l}();return!l.popupType&&l.link?w.default.createElement(n.StyledHeaderMenuItem,{className:d?"":"menu-handler-".concat(l.id),tabIndex:0,as:"a",href:l.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":l.link},w.default.createElement(n.StyledMenuButton,{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":l.link},l.name)):w.default.createElement(n.StyledHeaderMenuItem,{ref:o,className:d?"":"menu-handler-".concat(l.id),tabIndex:0,key:l.id,onBlur:s,onFocus:r,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":l.link},w.default.createElement(n.StyledMenuButton,{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":l.link,onMouseDown:u},l.name,l.popupType&&w.default.createElement(n.StyledMenuIconWrapper,null,w.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.default.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),w.default.isValidElement(a)?w.default.cloneElement(a,{onClose:c}):null)},fe=function(e){var t,l,a,n;return e?{termId:e.term_id||null,sponsor:e.sponsor?(n=e.sponsor,n?{title:n.title,logo:n.logo,link:n.link}:{}):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||e.name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.thumbnail||e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(t=e.child_cates)||void 0===t?void 0:t.map((function(e){return fe(e)})))||[],thumnailColor:e.thumnail_color||["#FFEAF1","#E0E9FB","#FFF9EB","#F2FCF7","#F3F3F3"][5*Math.random()|0],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(l=e.cat_parent)||void 0===l?void 0:l.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?(a=e.reviewed_by,{postTitle:a.post_title,permalink:a.permalink}):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((function(e){return function(e){return{title:e.title,content:e.content}}(e)})):null}:{}},he=function(e){var t,l;if(!e)return{};var a=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),n=null===(l=e.link)||void 0===l?void 0:l.startsWith("/fil/"),i=e.link?e.link.startsWith("http")||a?e.link:n?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):"/health-tools".concat(e.link.replace("/health-tools/","/")):void 0;return{icon:e.icon,link:i,subtitle:e.subtitle,title:e.title}},ge=function(e){return e?{thumbnail:e.thumbnail,link:null==e?void 0:e.slug,subtitle:e.name,name:e.name,slug:e.slug}:{}},ve=function(e){return e?{id:e.id,name:e.name,logo:null==e?void 0:e.logo,description:e.about,slug:e.slug}:{}},pe=function(e){var t,l,a=e.type,n=e.specialtySlug,i=e.locale;return"".concat(null===(t=g.LOCALIZED_SLUGS[i])||void 0===t?void 0:t.ALL,"/").concat((null===(l=g.LOCALIZED_SLUGS[i])||void 0===l?void 0:l[a])||"doctor","/").concat(null!=n?n:"")},Ee=function(e){return e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:{}},ye=function(e){var t=new Date;if(null==e?void 0:e.startDate){var l=new Date(e.startDate);if(t.getTime()<l.getTime())return!1}if(null==e?void 0:e.endDate){var a=new Date(e.endDate);if(t.getTime()>a.getTime())return!1}return!0},Ce=function(e){var t=e.onClosePopup;return w.default.createElement(n.StyledCloseWrapper,{className:"close-btn",onClick:t},w.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.default.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))},we=function(e){var t=e.onClosePopup,l=e.isDisplay,i=e.children,o=e.isNavMenu,r=e.hideCloseBtn;return w.default.createElement(n.StyledMenuPopupWrapper,{className:"top-menu-health-tools","data-is-display":!!l,"data-is-nav-menu":!!o},w.default.createElement(a.Container,null,!r&&w.default.createElement(n.StyledContainer$5,null,w.default.createElement(Ce,{onClosePopup:t})),w.default.createElement(n.StyledGridContainer,null,i)))},Le=function(e){var l,a=e.careSpecialties,i=void 0===a?[]:a,o=e.isOpen,r=e.onClose,s=e.spotlights,u=void 0===s?[]:s,c=v.useTranslations().t,d=t.useContext(n.NavigationContext),m=d.locale,f=d.configs.statics,h="".concat(f.CARE_URL_FE,"/").concat(null===(l=g.LOCALIZED_SLUGS[m])||void 0===l?void 0:l.SPECIALTIES);return w.default.createElement(we,{onClosePopup:r,isDisplay:o,isNavMenu:!0},w.default.createElement(Y,{headingTitle:c("home.navigator.menuItem.specialties"),hrefViewMore:h,UrlFE:f.CARE_URL_FE,onClosePopup:r,titleBtnViewMore:c("home.navigator.menuItem.allSpecialties"),menuItems:(null==i?void 0:i.map((function(e){return e?{name:String(e.name)||"",link:pe({type:"DOCTOR",specialtySlug:e.slug,locale:m}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{}})))||[]}),w.default.createElement(ee,{spotlights:u,hrefViewMore:h}))},be=function(e){var l=e.categories,a=void 0===l?[]:l,i=e.spotlightsList,o=void 0===i?[]:i,r=e.onClose,s=e.isOpen,u=v.useTranslations().t,c=t.useContext(n.NavigationContext),d=c.locale,m=c.configs.statics;return w.default.createElement(we,{onClosePopup:r,isDisplay:s,isNavMenu:!0},w.default.createElement(Y,{hrefViewMore:"".concat(m.HOME_PAGE_URL).concat("tl-PH"===d?"/fil":"","/categories/"),UrlFE:m.HOME_PAGE_URL,onClosePopup:r,titleBtnViewMore:u("home.navigator.menuItem.allCategories"),menuItems:(null==a?void 0:a.map((function(e){return e?{name:e.displayName||null,link:(null==e?void 0:e.permalink)||"/",thumbnail:e.iconUrl||null}:{}})))||[],headingTitle:u("home.navigator.menuItem.healthCategories")}),w.default.createElement(le,{spotlightsList:o,hrefViewMore:"".concat(m.HOME_PAGE_URL).concat("tl-PH"===d?"/fil":"","/spotlight/")}))},Se=function(e){var l=e.communities,a=void 0===l?[]:l,i=e.onClose,o=e.isOpen,r=e.spotlights,s=void 0===r?[]:r,u=v.useTranslations().t,c=t.useContext(n.NavigationContext).configs.statics;return w.default.createElement(we,{onClosePopup:i,isDisplay:o,isNavMenu:!0},w.default.createElement(Y,{hrefViewMore:c.TOGETHER_URL_FE,UrlFE:c.TOGETHER_URL_FE,onClosePopup:i,titleBtnViewMore:u("home.navigator.menuItem.allCommunities"),menuItems:(null==a?void 0:a.map((function(e){return e?{name:e.name||"",link:e.slug||"/",thumbnail:e.thumbnail||""}:{}})))||[],headingTitle:u("home.navigator.menuItem.allCommunitiesheadingTitle")}),w.default.createElement(ne,{spotlights:s}))},ke=function(e){var l,a=e.locale,i=e.onClose,o=e.isOpen,r=e.spotlightHealthTools,s=void 0===r?[]:r,u=e.healthTools,c=void 0===u?[]:u,d=v.useTranslations().t,m=t.useContext(n.NavigationContext).configs.statics,f="".concat(m.HOME_PAGE_URL).concat("tl-PH"===a?"/fil":"").concat((null===(l=h.STATIC_PAGES[a])||void 0===l?void 0:l.HEALTH_TOOLS)||"");return w.default.createElement(we,{onClosePopup:i,isDisplay:o,isNavMenu:!0},w.default.createElement(Y,{hrefViewMore:f,UrlFE:m.HOME_PAGE_URL,onClosePopup:i,headingTitle:d("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:d("home.navigator.menuItem.allHealthTools"),menuItems:c.map((function(e){return{name:e.title,link:e.link?e.link.startsWith("http")?e.link:"".concat(m.HOME_PAGE_URL).concat(e.link):void 0,thumbnail:e.icon}}))}),w.default.createElement(re,{spotlightHealthTools:s,hrefViewMore:f}))};function Ae(e){var t=e.className,l=e.ampHidden,a=e.ampBindHiddenCondition;return w.default.createElement("div",{"data-amp-bind-hidden":a,hidden:l},w.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t},w.default.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function Me(e){var t=e.siteType,l=e.type,a=e.enableSearch,n=e.className,i=e.ampBindHiddenCondition;return"helloSites"===t?w.default.createElement("div",{"data-amp-bind-hidden":i},w.default.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:a?u.CommonGAssets.getAssetPath("hamburgerMenuNewWithSearch.svg"):u.CommonGAssets.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:l,className:n})):w.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n},w.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.34961 15C3.34961 14.641 3.64062 14.35 3.99961 14.35L13.9996 14.35C14.3586 14.35 14.6496 14.641 14.6496 15C14.6496 15.359 14.3586 15.65 13.9996 15.65L3.99961 15.65C3.64062 15.65 3.34961 15.359 3.34961 15ZM3.34961 8.99999C3.34961 8.64101 3.64062 8.34999 3.99961 8.34999L19.9992 8.34999C20.3582 8.34999 20.6492 8.64101 20.6492 8.99999C20.6492 9.35898 20.3582 9.64999 19.9992 9.64999L3.99961 9.64999C3.64062 9.64999 3.34961 9.35898 3.34961 8.99999Z",fill:"#3E3F58"}))}var _e=function(e){var l=e.type,a=void 0===l?"home":l,i=e.menuItems,o=t.useContext(n.NavigationContext),r=o.siteType,s=o.isAmp,u=o.configs.enableSearchBar,c=de(),d=c.containerRef,m=c.onContainerFocus,f=c.onContainerBlur,h=c.onButtonMouseDown,g=c.onClose;return w.default.createElement(ue,{mediaQueryKey:"mbDown",forceDisplay:!!s||void 0},s&&w.default.createElement("amp-state",{id:"menu"},w.default.createElement("script",{type:"application/json",dangerouslySetInnerHTML:{__html:JSON.stringify({lightbox:"closed"})}})),w.default.createElement(n.StyledMenuContainer$1,null,w.default.createElement(n.StyledMenuIcon,{ref:d,on:"tap:discover-amp-lightbox",role:"button",tabIndex:0,onBlur:f,onFocus:m,isAmp:s},w.default.createElement(n.StyledMenuIconWrapper$1,{onMouseDown:h,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},w.default.createElement(Ae,{className:"mobile-close-icon",ampHidden:s&&!0,ampBindHiddenCondition:"menu.lightbox == 'closed'"}),w.default.createElement(Me,{siteType:r,type:a,enableSearch:u,className:"mobile-hamburger-icon",ampBindHiddenCondition:"menu.lightbox == 'open'"})),!s&&w.default.createElement(se,{menuItems:i,closePopup:g}))))},Pe=function(e){var l=e.openLogoutPopup,a=e.onCloseHandler,i=e.onLogoutHandler,o=e.siteType,r=void 0===o?"helloSites":o,s=v.useTranslations().t;return t.useEffect((function(){document.body.classList.toggle("noscroll",l)}),[l]),w.default.createElement(m.Portal,null,w.default.createElement(n.Popup,{type:"confirm",isOpen:l,closeIcon:w.default.createElement("img",{src:u.CommonGAssets.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon"}),onClose:a},w.default.createElement(n.StyledPopup,null,"helloSites"===r&&w.default.createElement("img",{src:u.CommonGAssets.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account"}),w.default.createElement("h2",null,s("helloSites"===r?"logout.popup.ask1":"logout.popup.ask.mb")),w.default.createElement("p",null,s("logout.popup.ask2")),w.default.createElement(n.StyledButtonGroup$1,{siteType:r},w.default.createElement(p.Button,{className:"logout-button",color:"tertiary",size:"lg",onClick:i},s("logout.popup.button.logout")),w.default.createElement(p.Button,{className:"cancel-button",color:"primary",size:"lg",onClick:a},s("logout.popup.button.cancel"))))))},xe={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"shop"};function He(e){var l=e.userInfo,a=e.onClickMyProfileButton,i=e.themeName,o=void 0===i?"helloSites":i,r=v.useTranslations().t,s=t.useMemo((function(){var e=(null==l?void 0:l.name)||(null==l?void 0:l.username);return e&&e.length?e[0].toUpperCase():"A"}),[null==l?void 0:l.username,null==l?void 0:l.name]);return w.default.createElement(n.StyledNavHeader,{onClick:function(){a&&a()}},w.default.createElement(n.StyledNavAvatar,{type:"rounded",size:"xl",avatarUrl:null==l?void 0:l.avatar,firstLetter:s,backgroundColor:"marryBaby"===o?E.theme.mbColors.pink:E.theme.colors.secondaryBase}),w.default.createElement(n.StyledNavHeaderUserInfos,null,w.default.createElement(n.StyledNavHeaderUserName,null,(null==l?void 0:l.name)||(null==l?void 0:l.username)),w.default.createElement(n.StyledNavHeaderMyProfileButton,null,r("userProfile.nav.header.viewProfile"))))}var Te=function(e){var l=e.themeName,a=e.locale,i=e.onClickItem,o=t.useState(""),r=o[0],s=o[1],c=v.useTranslations().t,d=t.useMemo((function(){return"marryBaby"===l?[{key:"userProfile.nav.menu.password",icon:u.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:u.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}]:[{key:"userProfile.nav.menu.accountSettings",icon:u.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-settingsWheel.svg"),subMenu:[{key:"userProfile.nav.menu.password",link:"password"},{key:"userProfile.nav.menu.disableAccount",link:"disable-account",disableLocale:["hi-IN"]}]},{key:"userProfile.nav.menu.help",icon:u.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]}),[l]);return w.default.createElement(n.StyledNavMenu,null,d.map((function e(t){var l;return(null===(l=t.disableLocale)||void 0===l?void 0:l.includes(a))?null:w.default.createElement(n.StyledNavMenuItem,{className:"nav-menu-item","data-is-open":r===t.key,key:t.key,hasSubmenu:!!t.subMenu},w.default.createElement(n.StyledNavMenuItemContent,{onClick:function(){return function(e){e.subMenu?s((function(t){return t?"":e.key})):i&&i(e)}(t)}},t.icon&&w.default.createElement(n.StyledNavMenuItemIcon,{style:{backgroundImage:'url("'.concat(t.icon,'")')}}),c(t.key),t.subMenu&&w.default.createElement(n.StyledNavMenuItemDropdown,null)),t.subMenu&&w.default.createElement(n.StyledNavFooterSubMenu,null,t.subMenu.map(e)))})))},Ne={helloSites:{member:function(){return u.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg")},ambassador:function(){return u.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg")},doctor:function(){return u.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg")},expert:function(){return u.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg")},influencer:function(){return u.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")}},marryBaby:{member:function(){return u.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg")},ambassador:function(){return u.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg")},doctor:function(){return u.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg")},expert:function(){return u.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg")},influencer:function(){return u.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}}},Be=function(e){var l=e.themeName,a=e.rank,i=void 0===a?"member":a,o=e.numberOfPosts,r=void 0===o?0:o,s=v.useTranslations().t,u=t.useMemo((function(){var e,t;return(null===(t=null===(e=Ne[l])||void 0===e?void 0:e[i])||void 0===t?void 0:t.call(e))||""}),[i,l]);return w.default.createElement(n.StyledUserStats,{"data-user-rank":i},w.default.createElement(n.StyledWrapper$2,null,w.default.createElement(n.StyledHeader,null,w.default.createElement(n.StyledHeaderIcon,{style:{backgroundImage:'url("'.concat(u,'")')}}),w.default.createElement(n.StyledHeaderTitle,null,s("userProfile.userRank.".concat(i))),r>0&&w.default.createElement(n.StyledHeaderPoints,null,r," ",s("userProfile.nav.header.count.posts")))))},Re=function(l){var a=l.SSO_URL,i=l.UP_BASEPATH,o=void 0===i?"user":i,r=l.themeName,s=void 0===r?"helloSites":r,c=l.cardUrls,d=void 0===c?xe:c,m=l.enableCare,f=l.enableTogether,g=l.enableEcom,p=l.userInfo,E=l.togetherApiDomain,C=l.userPostsNumber,L=l.onClickNavigationCard,S=l.onClickMyProfileButton,k=l.onClickMenuItem,A=l.onClickLogout,M=l.isUserProfileNavigatorMenuHidden,_=void 0!==M&&M,P=l.isMyHealthEnabled,x=void 0!==P&&P,H=l.locale,T=v.useTranslations().t,N=t.useState(C||0),B=N[0],R=N[1],I="marryBaby"===s;t.useEffect((function(){if(p&&void 0===C){var t=y.getCookie("hhg_user_token");t&&fetch(function(t,l,a,i){return(a||"https://together.hellohealthgroup.com/")+"api/v1/"+b.default(n.TOGETHER_PATHS.GET_USER_POSTS,e.__assign(e.__assign({},i),{websiteUrl:l?"https://marrybaby.vn":"https://".concat(h.domainLocales[t])}))}(H,I,E),{headers:{Authorization:"Bearer ".concat(t)}}).then((function(e){return e.json()})).then((function(e){var t,l,a;1===(null==e?void 0:e.status)&&(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pagination)&&R((null===(a=null===(l=null==e?void 0:e.data)||void 0===l?void 0:l.pagination)||void 0===a?void 0:a.total_items)||0)})).catch((function(e){return console.error("Error fetching post number",e)}))}}),[H,null!==p,C,E,I]);var U=t.useMemo((function(){return(I?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"]).filter((function(e){return"myBooking"===e?m:"myCommunity"===e?f:"myHealth"===e?x:"eCom"!==e||g}))}),[I,x]),G=t.useMemo((function(){return"marryBaby"===s?null:w.default.createElement(n.StyledLogoutButton,{color:"tertiary",icon:w.default.createElement("img",{src:u.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15}),size:"md",onClick:A},T("userProfile.nav.menu.logout"))}),[s]),D=function(e){window.location.href="".concat(a).concat(o,"/").concat(e)},Z=function(e){var t=d[e];L?L(t):D(t)};return p?w.default.createElement(n.StyledUserNavScreen,{"data-theme":s},w.default.createElement(He,{userInfo:p,themeName:s,onClickMyProfileButton:function(){S?S():D("profile")}}),w.default.createElement(Be,{themeName:s,rank:"member",numberOfPosts:B}),w.default.createElement(n.StyledNavigationCardsWrapper,null,U.map((function(e){return w.default.createElement(n.StyledNavigationCard,{key:e,themeName:s,type:e,onClick:Z})}))),!_&&w.default.createElement(w.default.Fragment,null,w.default.createElement(Te,{themeName:s,locale:H,onClickItem:function(e){"logout"===e.link&&A?A():e.link&&!e.subMenu&&(k?k(e.link):D(e.link))}}),G)):null},Ie=function(e){var t=e.type,l=void 0===t?"lead":t,a=e.closeIcon,i=e.isOpen,o=void 0===i||i,r=e.onClose,s=e.children,u=e.enableAnimation,c=void 0===u||u,d=e.targetAvatar,m=e.id,f=e.className;return w.default.createElement(n.StyledPopup$1,{"data-open":o,"data-type":l,"data-animation":c,"data-target":d,id:m,className:f},w.default.createElement("div",{className:"popup-content"},!!a&&w.default.createElement("div",{className:"close-button",onClick:r},a),s))},Ue=function(e){var t=e.SSO_URL,l=e.UP_BASEPATH,a=e.isOpen,n=e.targetAvatar,i=e.userInfo,o=e.enableCare,r=e.enableTogether,s=e.enableEcom,u=e.closePopup,c=e.siteType,d=void 0===c?"helloSites":c,m=e.dispatchLogout,f=e.userProfileRouterPush,h=e.isUserProfileNavigatorMenuHidden,g=e.isMyHealthEnabled,v=void 0!==g&&g,p=e.togetherApiDomain,E=e.locale,y=function(e){f?f("/".concat(e)):t&&(window.location.href="".concat(t).concat(l,"/").concat(e))},C=function(e){y(e),u()};return w.default.createElement(Ie,{isOpen:a,type:"profile",enableAnimation:!0,targetAvatar:n,onClose:u},w.default.createElement(Re,{SSO_URL:t,UP_BASEPATH:l,themeName:d,userInfo:i,enableCare:o,enableTogether:r,enableEcom:s,onClickLogout:function(){m&&(m(),u())},onClickMenuItem:C,onClickNavigationCard:C,onClickMyProfileButton:function(){y("profile"),u()},isUserProfileNavigatorMenuHidden:h,isMyHealthEnabled:v,togetherApiDomain:p,locale:E}))},Ge=function(l){var i=l.userInfo,o=l.siteType,r=l.isAmp,s=l.goToLogin,c=l.SSO_URL,d=l.currentUrl,m=l.isMinifyLogin,f=l.enableCare,h=l.enableTogether,g=l.enableEcom,y=l.isUserProfileNavigatorMenuHidden,C=l.UP_BASEPATH,L=l.isMyHealthEnabled,b=l.togetherApiDomain,S=l.onLogout,k=l.style,A=l.userProfileRouterPush,M=l.isLoading,_=l.locale,P=v.useTranslations().t,x=t.useState(!1),H=x[0],T=x[1],N=(null==i?void 0:i.name)||(null==i?void 0:i.username),B=t.useState(!1),R=B[0],I=B[1];t.useEffect((function(){I(!0)}),[]);var U=de(),G=U.containerRef,D=U.onContainerFocus,Z=U.onContainerBlur,V=U.onButtonMouseDown,O=U.onClose;return M&&!r?w.default.createElement(p.Button,{size:"sm",color:"transparent",isLoading:!0}):(null==i?void 0:i.id)?w.default.createElement(w.default.Fragment,null,w.default.createElement(n.StyledImageWrapper$1,{ref:G,href:r?"".concat(c,"user/profile"):void 0,style:k,tabIndex:0,onBlur:Z,onFocus:D},w.default.createElement("div",{onMouseDown:V},w.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"user-close-icon"},w.default.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),w.default.createElement(n.Avatar,{type:"rounded",size:"medium",className:"user-avatar",avatarUrl:null==i?void 0:i.avatar,firstLetter:N&&N.length?N[0].toUpperCase():"A",backgroundColor:"marryBaby"===o?E.theme.mbColors.pink:E.theme.colors.secondaryBase,isAmp:r})),!r&&w.default.createElement(Ue,{UP_BASEPATH:C,SSO_URL:c,dispatchLogout:function(){O(),T(!0)},isOpen:!1,isMyHealthEnabled:L,enableCare:f,enableTogether:h,enableEcom:g,closePopup:O,userInfo:i,siteType:o,isUserProfileNavigatorMenuHidden:y,togetherApiDomain:b,userProfileRouterPush:A,locale:_})),!r&&w.default.createElement(Pe,{openLogoutPopup:H,onCloseHandler:function(){document.body.classList.toggle("noscroll",!1),T(!1)},siteType:o,onLogoutHandler:function(){return e.__awaiter(void 0,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return T(!1),document.body.classList.toggle("noscroll",!1),[4,S()];case 1:return e.sent(),[2]}}))}))}})):w.default.createElement(n.StyledLoggedOutAnchor,{style:e.__assign({textDecoration:"none"},k),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":d,href:r?"".concat(c,"?returnUrl=").concat(d.replace("?amp=1","")):R?void 0:"".concat(c,"?returnUrl=").concat(d),"data-site-type":o},m?w.default.createElement(n.StyledAvatar,{onClick:s},w.default.createElement("img",{"data-src":u.CommonGAssets.getAssetPath("lock.png"),className:"avatar lazy",alt:"avatar"})):w.default.createElement(w.default.Fragment,null,"helloSites"===o&&w.default.createElement("img",{className:"mobile-only",src:u.CommonGAssets.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24},onClick:s}),"marryBaby"===o&&w.default.createElement("div",{className:"mobile-only",onClick:s,style:{paddingLeft:16}},w.default.createElement(a.Text,{size:"p3",color:E.theme.mbColors.pink},P("navigation.loginJoin"))),w.default.createElement(p.Button,{className:"login-btn",size:"md",color:"tertiary",onClick:s,icon:w.default.createElement("img",{src:u.CommonGAssets.getAssetPath("login.svg"),width:18,height:18}),theme:o},P("navigation.loginJoin"))))};function De(e){var l=e.goToLogin,a=t.useContext(n.NavigationContext),i=a.siteType,o=a.isAmp,r=a.userState.userInfo,s=a.currentUrl,u=a.locale,c=a.onLogout,d=a.userProfileRouterPush,m=a.configs,f=m.enableNavCare,g=m.enableProfileMyHealth,v=m.enableNavTogether,p=m.enableProfileEcom,E=m.statics,y=m.enableProfileNavigatorMenu,C=a.isUserLoading;return w.default.createElement(Ge,{userInfo:r,siteType:i,isAmp:o,goToLogin:l,SSO_URL:E.SSO_URL+"/",currentUrl:s,onLogout:c,UP_BASEPATH:h.UP_BASEPATH,isMyHealthEnabled:g,enableCare:f,enableTogether:v,enableEcom:p,togetherApiDomain:E.TOGETHER_API+"/",isUserProfileNavigatorMenuHidden:!y,userProfileRouterPush:d,isLoading:C,locale:u})}var Ze=function(e){var l,a,i,o,r,d=e.onTopBarAppears,m=e.type,f=void 0===m?"home":m,g=e.languageMenu,p=e.menuItems,E=e.setSitewideBannerClosed,y=e.sitewideBannerClosed,C=t.useContext(n.NavigationContext),L=C.siteType,b=C.isAmp,S=C.isMobile,k=void 0!==S&&S,A=C.locale,M=C.sitewideBanner,_=C.sitewideBannerShown,P=void 0===_||_,x=C.sponsorComponent,H=C.onBookingClick,T=C.currentUrl,N=C.ssrMenuContent,B=N.categories,R=N.healthTools,I=N.care,U=N.together,G=C.configs,D=G.statics,Z=G.enableNavCareBooking,V=G.enableSearchBar,O=v.useTranslations().t,F=D.SSO_URL,j=D.HOME_PAGE_URL,W=!!x,q=t.useState(!1),$=q[0],z=q[1],K=t.useRef(47),Y=t.useRef(null),Q=t.useRef(!1),J="helloSites"===L?null===(l=h.LOCALE_SPECS[A])||void 0===l?void 0:l.LOGO_TYPE:L,X="undefined"!=typeof window,ee=t.useCallback(s.throttle((function(){if("home"===f&&X){if(!Y.current)return;var e=Y.current.getBoundingClientRect();e.top<=0&&window.scrollY>K.current&&window.scrollY>e.height+20&&!Q.current&&(Q.current=!0,z(!0)),window.scrollY<K.current&&Q.current&&(Q.current=!1,z(!1)),window.scrollY>=0&&(K.current=window.scrollY)}}),200),[]);t.useEffect((function(){null==d||d(!$)}),[$]),t.useEffect((function(){return window.addEventListener("scroll",ee,{passive:!0}),function(){window.removeEventListener("scroll",ee)}}),[]),t.useEffect((function(){k&&ee()}),[k]),t.useEffect((function(){null===c.lazyLoadInstance||void 0===c.lazyLoadInstance||c.lazyLoadInstance.update(document.querySelectorAll("#site-header img"))}),[null===(a=null==B?void 0:B.items)||void 0===a?void 0:a.length,null===(i=null==R?void 0:R.items)||void 0===i?void 0:i.length,null===(o=null==I?void 0:I.items)||void 0===o?void 0:o.length,null===(r=null==U?void 0:U.items)||void 0===r?void 0:r.length,k]);var te=P&&!!M&&!y;return w.default.createElement(n.StyledHeaderWrapper,{"data-site-type":L,"data-sponsored":W,"data-sitewide-banner-shown":te,"data-header-type":f,"data-collapsed":$,"data-with-search-input":"popup-sub-level"!==f,"data-is-displayed":!0,"data-is-amp":b,id:"site-header",ref:Y},M?w.default.isValidElement(M)?w.default.cloneElement(M,{isCollapsed:$,setBannerClosed:E,isAmp:b,isMobile:k}):M:null,w.default.createElement(n.StyledHeader$1,{"data-site-type":L},w.default.createElement(n.StyledLeftGroup,{"data-site-type":L},w.default.createElement(_e,{menuItems:p,type:f}),w.default.createElement("a",{href:j},w.default.createElement(n.StyledLogoWrapper,null,w.default.createElement(n.Logo,{style:{display:"flex"},type:J,height:"27px",width:"121px",badge:"id-ID"===A&&(b?w.default.createElement("amp-img",{src:u.CommonGAssets.getAssetPath("sehat-badge.png"),width:"56",height:"23"}):w.default.createElement("img",{src:u.CommonGAssets.getAssetPath("sehat-badge.png"),width:"56",height:"23"})),dateForSeasonal:new Date,locale:A,key:"undefined"!=typeof window?"client":"server"}))),!b&&("marryBaby"===L?w.default.createElement(Oe,{menuItems:p}):V&&w.default.createElement(Ve,{siteType:L}))),w.default.createElement(n.StyledRightGroup,{"data-site-type":L},!b&&("marryBaby"===L?V&&w.default.createElement(Ve,{siteType:L}):w.default.createElement(Oe,{menuItems:p})),w.default.createElement(n.StyledProfileNavGroup,null,Z&&!b&&w.default.createElement(ue,{mediaQueryKey:"mbUp",forceDisplay:!b&&void 0},w.default.createElement(ce,{careUrlFe:D.CARE_URL_FE,currentUrl:T,btnName:O("login.booking"),onCareHeaderClick:H})),g,w.default.createElement(De,{goToLogin:function(){var e=window.location.href;window.location.href=F?"".concat(F,"?returnUrl=").concat(e):e}})))),x?w.default.isValidElement(x)?w.default.cloneElement(x,{isCollapsed:$,locale:A,isMobile:k,isAmp:b}):x:null)},Ve=function(e){var t=e.siteType;return w.default.createElement(ue,{mediaQueryKey:"mbUp",className:"marryBaby"===t?"marry-baby":""},w.default.createElement(K,null))},Oe=function(e){var l=e.menuItems,a=t.useContext(n.NavigationContext),i=a.siteType,o=a.locale,r=a.ssrMenuContent,s=r.categories,u=r.healthTools,c=r.care,d=r.together;return w.default.createElement(ue,{mediaQueryKey:"mbUp",style:{height:"100%"}},w.default.createElement(n.StyledWrapMenuItems,{"data-site-type":i},null==l?void 0:l.map((function(e,t){return w.default.createElement(me,{key:t,item:e,menu:"categories"===e.popupType?w.default.createElement(be,{categories:null==s?void 0:s.items,spotlightsList:null==s?void 0:s.spotlights}):"tools"===e.popupType?w.default.createElement(ke,{locale:o,healthTools:null==u?void 0:u.items,spotlightHealthTools:null==u?void 0:u.spotlights}):"together"===e.popupType?w.default.createElement(Se,{communities:null==d?void 0:d.items,spotlights:null==d?void 0:d.spotlights}):"care"===e.popupType?w.default.createElement(Le,{careSpecialties:null==c?void 0:c.items,spotlights:null==c?void 0:c.spotlights}):null})}))))},Fe=function(l){var a,i,o=l.isMobile,r=l.isAmp,s=void 0!==r&&r,c=l.locale,d=l.onTopBarAppears,m=l.languageOptions,f=l.ampSubBar,g=l.sponsorComponent,p=l.sitewideBanner,E=l.sitewideBannerShown,y=l.className,C=t.useState(!1),b=C[0],S=C[1],k=function(){var e=v.useTranslations().t,l=t.useContext(n.NavigationContext),a=l.siteType,i=l.locale,o=l.configs,r=o.enableNavCare,s=o.enableNavTogether,c=o.enableNavEcom,d=o.statics,m="marryBaby"===a,f=t.useMemo((function(){var t,l=[{name:e("home.navigator.menuItem.discover"),id:"categories",link:"".concat(d.HOME_PAGE_URL).concat("tl-PH"===i?"/fil":"","/categories"),niceName:"",thumbnail:m?u.CommonGAssets.getAssetPath("categories-mb.svg"):u.CommonGAssets.getAssetPath("discover.png"),popupType:"categories"},{name:e("home.navigator.menuItem.healthTools"),id:"tools",link:"".concat(d.HOME_PAGE_URL).concat("tl-PH"===i?"/fil":"").concat((null===(t=h.STATIC_PAGES[i])||void 0===t?void 0:t.HEALTH_TOOLS)||""),thumbnail:m?u.CommonGAssets.getAssetPath("healthtools-mb.svg"):u.CommonGAssets.getAssetPath("healthTools.png"),popupType:"tools"}];return r&&l.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:d.HOME_PAGE_URL+"/care",thumbnail:u.CommonGAssets.getAssetPath("helloCare-thumbnail.png"),popupType:"zh-TW"===i?null:"care"}),s&&l.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:d.TOGETHER_URL_FE+"/",thumbnail:m?u.CommonGAssets.getAssetPath("community-mb.svg"):u.CommonGAssets.getAssetPath("together.png"),popupType:"together"}),c&&l.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:d.HOME_PAGE_URL+"/ecom",thumbnail:u.CommonGAssets.getAssetPath("helloCare-thumbnail.png"),popupType:"shop"}),l}),[i,r,s,c]);return f}();!function(){var l=t.useContext(n.NavigationContext),a=l.isFirstLogin,i=l.userState.userInfo;t.useEffect((function(){(null==i?void 0:i.id)&&(a?(null==i?void 0:i.email)&&""!==(null==i?void 0:i.email)?window.insider_object={user:e.__assign({uuid:null==i?void 0:i.id,email:null==i?void 0:i.email,gdpr_optin:!0,email_optin:!0,sign_up:!0},(null==i?void 0:i.name)?{name:null==i?void 0:i.name}:{})}:window.insider_object={user:e.__assign({uuid:null==i?void 0:i.id,sign_up:!0},(null==i?void 0:i.name)?{name:null==i?void 0:i.name}:{})}:(null==i?void 0:i.email)&&""!==(null==i?void 0:i.email)?window.insider_object={user:e.__assign({uuid:null==i?void 0:i.id,email:null==i?void 0:i.email,gdpr_optin:!0,email_optin:!0,log_in:!0},(null==i?void 0:i.name)?{name:null==i?void 0:i.name}:{})}:window.insider_object={user:e.__assign({uuid:null==i?void 0:i.id,log_in:!0},(null==i?void 0:i.name)?{name:null==i?void 0:i.name}:{})})}),[])}();var A=s&&{"next-page-hide":""},M=function(e){var l=e.hasSponsoredBanners,a=e.isSiteWide,n=e.isSponsored,i=e.isShowingSiteWideBanner,o=e.isMobile,r=e.showAmpSubBar,s=t.useRef(null),u=t.useState(0),c=u[0],d=u[1],m=t.useState(64),f=m[0],h=m[1],g=t.useCallback(L.default((function(){var e,t,l,a,n=(null===(e=s.current)||void 0===e?void 0:e.clientHeight)||(null===(l=null===(t=s.current)||void 0===t?void 0:t.children[0])||void 0===l?void 0:l.clientHeight)||0;window.scrollY<=n+200&&(d(n),h((null===(a=s.current)||void 0===a?void 0:a.getBoundingClientRect().bottom)||c))}),200),[]);t.useEffect((function(){return window.addEventListener("resize",g),window.addEventListener("scroll",g),g(),function(){window.removeEventListener("resize",g),window.removeEventListener("scroll",g)}}),[]),t.useEffect((function(){g()}),[r,o,a,i,n,l,s.current]);var v=t.useMemo((function(){var e=o?64:69;return i&&(e+=64),n&&(e+=40,l&&(e+=57)),r&&(e+=32),e}),[o,i,l,n,r]);return{defaultHeaderHeight:v,headerHeight:c||v,headerBottom:f,headerRef:s}}({isSiteWide:!!p&&!b,isShowingSiteWideBanner:E&&!!p&&!b,isSponsored:!!g,hasSponsoredBanners:!!(null===(i=null===(a=null==g?void 0:g.props)||void 0===a?void 0:a.sponsoredBy)||void 0===i?void 0:i.length),isMobile:o,showAmpSubBar:s&&!!f}),_=M.headerRef,P=M.defaultHeaderHeight,x=M.headerHeight,H=M.headerBottom;return w.default.createElement(n.StyledContainer$6,{id:"navigation-v2",style:{"--default-header-height":P+"px","--header-height":"calc(".concat(x,"px - var(--amp-site-wide-closed), 64px)"),"--header-bottom":H+"px"},isAmp:s,className:"".concat(s&&E?"nav-open":""," ").concat(y)},w.default.createElement("section",e.__assign({className:s?"amp-header":void 0,"next-page-replace":"hhg-navigator","amp-fx":"float-in-top"},A,{ref:_,style:s?{overflow:"hidden"}:void 0}),w.default.createElement(Ze,{menuItems:k,type:"home",onTopBarAppears:o?function(e){d&&d(e)}:void 0,languageMenu:w.default.createElement(q,{languageOptions:m,locale:c}),setSitewideBannerClosed:S,sitewideBannerClosed:b}),o&&s&&void 0!==f&&w.default.createElement(w.default.Fragment,null,f)),s&&w.default.createElement("amp-lightbox",{id:"discover-amp-lightbox",layout:"nodisplay",style:{width:"100vw",maxWidth:"100vw"},on:"lightboxOpen:AMP.setState({menu: {lightbox: 'open'}});lightboxClose:AMP.setState({menu: {lightbox: 'closed'}})"},w.default.createElement("div",e.__assign({style:{position:"absolute",width:"100%",height:"100%"},role:"button",tabIndex:1},{on:"tap:discover-amp-lightbox.close"})),w.default.createElement(se,{menuItems:k})))},je=function(t){return e.__awaiter(void 0,void 0,void 0,(function(){var l,a,i,o,r,s,u,c,m,f,g,v,p,E,y,C,w,L,b,S,k,A,M,_,P,x,H,T,N,B,R,I,U,G,D,Z;return e.__generator(this,(function(e){switch(e.label){case 0:l={},a="vi-VN_MB"===t,e.label=1;case 1:e.trys.push([1,14,,15]),i="tl-PH"===t?"lang=fil":"",e.label=2;case 2:return e.trys.push([2,4,,5]),[4,Promise.all([fetch("".concat(d.getDiscoverApiDomain(t),"/wp-json/api/categories").concat(i?"?"+i:"")).then((function(e){return e.json()})),fetch("".concat(d.getDiscoverApiDomain(t),"/wp-json/api/spotlights?per_page=10").concat(i?"&"+i:"")).then((function(e){return e.json()})),fetch("".concat(d.getDiscoverApiDomain(t),"/wp-json/api/").concat(a?"health-tools":"healthtools").concat(i?"?"+i:"")).then((function(e){return e.json()})),fetch("".concat(d.getDiscoverApiDomain(t),"/wp-json/api/").concat(a?"health-tools":"healthtools","/favorites").concat(i?"?"+i:"")).then((function(e){return e.json()}))])];case 3:return o=e.sent(),r=o[0],s=o[1],u=o[2],c=o[3],l.categories={items:(null===(w=null===(C=null==r?void 0:r.data)||void 0===C?void 0:C.map)||void 0===w?void 0:w.call(C,fe))||[],spotlights:(null===(k=null===(S=null===(b=null===(L=null==s?void 0:s.data)||void 0===L?void 0:L.articles)||void 0===b?void 0:b.map)||void 0===S?void 0:S.call(b,Ee))||void 0===k?void 0:k.filter(ye))||[]},l.healthTools={items:(null===(M=null===(A=null==u?void 0:u.data)||void 0===A?void 0:A.map)||void 0===M?void 0:M.call(A,he))||[],spotlights:(null===(P=null===(_=null==c?void 0:c.data)||void 0===_?void 0:_.map)||void 0===P?void 0:P.call(_,he))||[]},[3,5];case 4:return e.sent(),[3,5];case 5:if(!a&&!h.TOGETHER_LOCALES.includes(t))return[3,9];e.label=6;case 6:return e.trys.push([6,8,,9]),[4,Promise.all([fetch("".concat(d.getTogetherApiDomain(),"/api/v1/community?website_url=https://").concat(h.domainLocales[t])).then((function(e){return e.json()})),fetch("".concat(d.getTogetherApiDomain(),"/api/v1/options?website_url=https://").concat(h.domainLocales[t],"&meta_key=popular_post")).then((function(e){return e.json()}))])];case 7:return m=e.sent(),f=m[0],g=m[1],l.together={items:(null===(T=null===(H=null===(x=null==f?void 0:f.data)||void 0===x?void 0:x.communities)||void 0===H?void 0:H.map)||void 0===T?void 0:T.call(H,n.formatCommunity))||[],spotlights:(null===(R=null===(B=null===(N=null==g?void 0:g.data)||void 0===N?void 0:N.posts)||void 0===B?void 0:B.map)||void 0===R?void 0:R.call(B,n.formatPost))||[]},[3,9];case 8:return e.sent(),[3,9];case 9:if(!h.CARE_LOCALES.includes(t))return[3,13];e.label=10;case 10:return e.trys.push([10,12,,13]),[4,Promise.all([fetch(d.getCareApiDomain()+"/api/specialties?_ishome=1&site=".concat(h.domainLocales[t])).then((function(e){return e.json()})),fetch(d.getCareApiDomain()+"/api/search/?site=".concat(h.domainLocales[t],"&type=hospital&order_by=total_doctor")).then((function(e){return e.json()}))])];case 11:return v=e.sent(),p=v[0],E=v[1],l.care={items:(null===(G=null===(U=null===(I=null==p?void 0:p._data)||void 0===I?void 0:I.specialties)||void 0===U?void 0:U.map)||void 0===G?void 0:G.call(U,ge))||[],spotlights:(null===(Z=null===(D=null==E?void 0:E._data.searches)||void 0===D?void 0:D.map)||void 0===Z?void 0:Z.call(D,ve))||[]},[3,13];case 12:return e.sent(),[3,13];case 13:return[3,15];case 14:return y=e.sent(),console.error(y),[3,15];case 15:return[2,l]}}))}))};exports.Flag=j,exports.LanguageSwitcher=q,exports.NavHeader=He,exports.NavigationLogoutPopup=Pe,exports.NavigationProfileButton=Ge,exports.NavigationV2=function(t){var l=e.__assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},t);return w.default.createElement(n.NavigationProvider,e.__assign({},l),w.default.createElement(Fe,e.__assign({},l)))},exports.ProfilePopup=Ue,exports.UserProfileNavigation=Re,exports.UserStats=Be,exports.getNavMenuContent=je,exports.getNavMenuContentWithCache=function(t){return e.__awaiter(void 0,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,l.getDataWithCache("nav-menu-content",(function(){return je(t||"en-PH")}),(function(e){var t,l;return!!(null===(l=null===(t=null==e?void 0:e.categories)||void 0===t?void 0:t.items)||void 0===l?void 0:l.length)}))];case 1:return[2,e.sent()||{}]}}))}))};
|
package/build/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-57503957.js"),r=require("./index-d28c27ca.js"),o=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-57503957.js"),r=require("./index-d28c27ca.js"),o=require("./index-22e800ad.js"),t=require("./index.styled-900067b5.js"),a=require("./index-740c6f7b.js"),s=require("./index-27945654.js"),i=require("./index-e580b421.js"),p=require("./index-1daf49d3.js"),n=require("./useOutsideClick-9a358ff5.js"),x=require("./index.styled-213d989f.js"),u=require("./useTranslations-5897b4e1.js"),l=require("./useScrollbarSize-586f6706.js"),d=require("./useFbDataLayer-bf534f29.js"),g=require("./useHealthToolCache-ae750aac.js"),c=require("./translationsProvider-4b0ca526.js"),C=require("./translationsContext-170d42d0.js"),m=require("./types-03bcd5c0.js"),P=require("./types-049a3afb.js"),b=require("./constants-ca5ea110.js"),h=require("./localizeNumberFormat-d34a738e.js"),S=require("./screenSizeContext-8f86eb30.js"),T=require("./cookieHelper-612b90fa.js");require("react"),require("styled-components");var f=require("./theme-696d81a9.js"),q=require("./number-87b13133.js"),v=require("./getDynamicHealthTool-1d292d71.js"),D=require("./getSocialList-19da0f19.js");require("./Locale-11b51016.js"),require("./isProduction-32e6a55a.js"),require("./tslib.es6-e6f346c4.js"),require("react-id-generator"),require("lodash"),require("keen-slider/react"),require("./gAssets.js"),require("react-range"),require("date-fns"),require("@mantine/core"),require("string-format"),require("lodash/debounce"),require("react-hook-form"),require("./theme-f97a1fea.js"),require("@mantine/dates"),require("@mantine/hooks"),require("@mantine/carousel"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("date-fns/locale/hi"),require("date-fns/locale/ms"),require("date-fns/locale/th"),require("react-day-picker/DayPickerInput"),require("react-dom"),require("smoothscroll-polyfill"),require("./types-2b3bdf79.js"),require("slugify"),require("@hookform/resolvers/yup"),require("./core-97cd306c.js"),require("recharts"),require("innertext"),require("react-contenteditable"),require("react-loading-skeleton"),require("lodash/shuffle"),require("vanilla-lazyload"),exports.Types=e.index,exports.Constants=r.index,exports.Alert=o.Alert,exports.AmpNextPage=o.AmpNextPage,exports.ArticleCard=o.ArticleCard,exports.BMICardEmbed=o.BMICardEmbed,exports.BMRCardEmbed=o.BMRCardEmbed,exports.BabyGrowthCardEmbed=o.BabyGrowthCardEmbed,exports.BabyPoopEmbed=o.BabyPoopEmbed,exports.Badge=o.Badge,exports.BorderHeading=o.BorderHeading,exports.Breadcrumbs=o.Breadcrumbs,exports.Carousel=o.Carousel,exports.CategoryCard=o.CategoryCard,exports.Checkbox=o.Checkbox,exports.CheckboxGroup=o.CheckboxGroup,exports.CookieAcceptConfirm=o.CookieAcceptConfirm,exports.DateRangePicker=o.DateRangePicker,exports.DueDateCardEmbed=o.DueDateCardEmbed,exports.FileDropdown=o.FileDropdown,exports.FloatButtonGroup=o.FloatButtonGroup,exports.Footer=o.Footer,exports.Grid=o.Grid,exports.IconText=o.IconText,exports.OvulationCardEmbed=o.OvulationCardEmbed,exports.PWGCardEmbed=o.PWGCardEmbed,exports.Pagination=o.Pagination,exports.Progress=o.Progress,exports.ProgressBar=o.ProgressBar,exports.RateStars=o.RateStars,exports.SeoHead=o.SeoHead,exports.Shadow=o.Shadow,exports.ShareContainer=o.ShareContainer,exports.ShareDrawer=o.ShareDrawer,exports.SideMenu=o.index,exports.StatisticCard=o.StatisticCard,exports.SurveyThankyouCard=o.SurveyThankyouCard,exports.THRCardEmbed=o.THRCardEmbed,exports.Table=o.index$1,exports.Tabs=o.Tabs,exports.Tag=o.Tag,exports.Toggle=o.Toggle,exports.UnderlinedLink=o.UnderlinedLink,exports.Uploader=o.Uploader,exports.AuthorBadge=t.AuthorBadge,exports.Avatar=t.Avatar,exports.CardAuthor=t.CardAuthor,exports.DatePicker=t.DatePicker,exports.DefaultComponentGlobalContextData=t.DefaultComponentGlobalContextData,exports.DoctorInfo=t.DoctorInfo,exports.Dropdown=t.Dropdown,Object.defineProperty(exports,"GlobalData",{enumerable:!0,get:function(){return t.GlobalData}}),exports.Loading=t.Loading,exports.Logo=t.Logo,exports.MobileBottomNavigation=t.MobileBottomNavigation,exports.MobileBottomNavigationIcon=t.MobileBottomNavigationIcon,exports.Popup=t.Popup,exports.PopupDoctor=t.PopupDoctor,exports.PopupExpert=t.PopupExpert,exports.PopupHospital=t.PopupHospital,exports.Radio=t.Radio,exports.RadioGroup=t.RadioGroup,exports.ScrollList=t.ScrollList,exports.Slider=t.Slider,exports.SurveyQuestionCard=t.SurveyQuestionCard,exports.TogetherComponentGlobalContext=t.TogetherComponentGlobalContext,exports.TogetherComponentGlobalContextProvider=t.TogetherComponentGlobalContextProvider,exports.TogetherConstants=t.constants,exports.TogetherDataTransforms=t.dataTransform,exports.ToolsBannerCard=t.ToolsBannerCard,exports.UserAvatar=t.UserAvatar,exports.Button=a.Button,exports.Divider=s.Divider,exports.Flag=i.Flag,exports.LanguageSwitcher=i.LanguageSwitcher,exports.NavigationLogoutPopup=i.NavigationLogoutPopup,exports.NavigationProfileButton=i.NavigationProfileButton,exports.NavigationV2=i.NavigationV2,exports.ProfilePopup=i.ProfilePopup,exports.UserProfileNavigation=i.UserProfileNavigation,exports.UserProfileNavigationHeader=i.NavHeader,exports.UserProfileNavigationStats=i.UserStats,exports.getNavMenuContent=i.getNavMenuContent,exports.getNavMenuContentWithCache=i.getNavMenuContentWithCache,exports.Drawer=p.Drawer,exports.Heading=p.Heading,exports.Icon=p.Icon,exports.Modal=p.Modal,exports.NewBabyProfileRadio=p.NewBabyProfileRadio,exports.RadioImageGroup=p.RadioImageGroup,exports.Input=n.Input,exports.Container=x.Container,exports.Label=x.Label,exports.Menu=x.Menu,exports.PureInput=x.PureInput,exports.Text=x.Text,exports.TextArea=x.TextArea,exports.TextDivider=x.TextDivider,exports.useTranslations=u.useTranslations,exports.MEASURE_ELEMENT_CLASS=l.MEASURE_ELEMENT_CLASS,exports.useScrollbarSize=l.useScrollbarSize,exports.useFbDataLayer=d.useFbDataLayer,exports.useHealthToolsCache=g.useHealthToolsCache,exports.TranslationsProvider=c.TranslationsProvider,exports.translationsMap=c.translationsMap,exports.TranslationsContext=C.TranslationsContext,exports.defaultTranslations=C.defaultTranslations,exports.CardLink=m.CardLink,exports.CardPost=m.CardPost,exports.CardPostPopoverMore=m.CardPostPopoverMore,exports.CardReactions=m.CardReactions,exports.CardReply=m.CardReply,exports.CardReplyPopover=m.CardReplyPopover,exports.CreateNewPostContent=m.CreateNewPostContent,exports.CreatePostDescription=m.CreatePostDescription,exports.CreatePostTitle=m.CreatePostTitle,exports.ImagePreviewPopup=m.ImagePreviewPopup,exports.InputCommentBar=m.InputCommentBar,exports.LabelPin=m.LabelPin,exports.LabelSortPin=m.LabelSortPin,exports.LabelSorting=m.LabelSorting,exports.PopoverMenu=m.PopoverMenu,exports.PopupDanger=m.PopupDanger,exports.PopupFrame=m.PopupFrame,exports.PostContent=m.PostContent,exports.PostImagePreview=m.PostImagePreview,exports.PostSingleImageViewPopup=m.PostSingleImageViewPopup,exports.ShareBox=m.ShareBox,exports.SharePopup=m.SharePopup,exports.SocialLinkPreview=m.SocialLinkPreview,exports.SubmitReportForm=m.SubmitReportForm,exports.TagTopic=m.TagTopic,exports.TogetherAuthConfigContext=m.TogetherAuthConfigContext,exports.TogetherAuthConfigContextProvider=m.TogetherAuthConfigContextProvider,exports.TogetherTypes=m.types,exports.TopicSelectList=m.TopicSelectList,exports.useTogetherAuthRequiredAction=m.useTogetherAuthRequiredAction,exports.BookingSearchBar=P.BookingSearchBar,exports.CareTypes=P.types,exports.CareConstants=b.constants,exports.ageGenerate=h.ageGenerate,exports.convertLocalizedStringToNumber=h.convertLocalizedStringToNumber,exports.localizeNumberFormat=h.localizeNumberFormat,exports.Breakpoints=S.Breakpoints,exports.MediaQueries=S.MediaQueries,exports.ScreenSizeContext=S.ScreenSizeContext,exports.ScreenSizeContextProvider=S.ScreenSizeContextProvider,exports.fadeIn=S.fadeIn,exports.formatUrlWithPageParam=S.formatUrlWithPageParam,exports.getBoundariesFromMediaQueryKey=S.getBoundariesFromMediaQueryKey,exports.getPopupWrapperDom=S.getPopupWrapperDom,exports.getWindowSizeGroups=S.getWindowSizeGroups,Object.defineProperty(exports,"lazyLoadInstance",{enumerable:!0,get:function(){return S.lazyLoadInstance}}),exports.makeParams=S.makeParams,exports.safeEncodeURI=S.safeEncodeURI,exports.slideInDown=S.slideInDown,exports.slideInLeft=S.slideInLeft,exports.slideInRight=S.slideInRight,exports.slideInUp=S.slideInUp,exports.slideOutDown=S.slideOutDown,exports.slideOutLeft=S.slideOutLeft,exports.slideOutRight=S.slideOutRight,exports.slideOutUp=S.slideOutUp,exports.startCase=S.startCase,exports.toggleNoScroll=S.toggleNoScroll,exports.deleteCookie=T.deleteCookie,exports.getCookie=T.getCookie,exports.setCookie=T.setCookie,exports.theme=f.theme,exports.abbreviateNumber=q.abbreviateNumber,exports.formatHealthTool=v.formatHealthTool,exports.getCareApiDomain=v.getCareApiDomain,exports.getCurrentBaseUrl=v.getCurrentBaseUrl,exports.getCurrentSsoUrl=v.getCurrentSsoUrl,exports.getDiscoverApiDomain=v.getDiscoverApiDomain,exports.getDynamicHealthTool=v.getDynamicHealthTool,exports.getDynamicHealthToolWithCache=v.getDynamicHealthToolWithCache,exports.getTogetherApiDomain=v.getTogetherApiDomain,exports.getSocialList=D.getSocialList;
|