@hhgtech/hhg-components 1.21.65 → 1.21.67

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.
Files changed (70) hide show
  1. package/build/babyGrowth.js +1 -1
  2. package/build/care.js +1 -1
  3. package/build/components/atoms/authorBadge/index.d.ts +11 -0
  4. package/build/components/atoms/authorBadge/index.styled.d.ts +1 -0
  5. package/build/components/atoms/babyGrowthChart/index.d.ts +1 -1
  6. package/build/components/atoms/index.d.ts +2 -0
  7. package/build/components/molecules/bmiForm/index.d.ts +1 -1
  8. package/build/components/molecules/bmrForm/index.d.ts +1 -1
  9. package/build/components/molecules/embeddedHeathToolCards/bmi/bmi.d.ts +1 -1
  10. package/build/components/molecules/embeddedHeathToolCards/bmr/bmr.d.ts +1 -1
  11. package/build/components.js +1 -1
  12. package/build/esm/babyGrowth.js +1 -1
  13. package/build/esm/care.js +1 -1
  14. package/build/esm/components.js +1 -1
  15. package/build/esm/index-24a9e671.js +1 -0
  16. package/build/esm/index-71c42246.js +1 -0
  17. package/build/esm/index-788cb7c8.js +1 -0
  18. package/build/esm/index-7e2b8a87.js +1 -0
  19. package/build/esm/index-b6575475.js +1 -0
  20. package/build/esm/index.js +1 -1
  21. package/build/esm/index.styled-48386363.js +1 -0
  22. package/build/esm/index.styled-66f12014.js +1 -0
  23. package/build/esm/mantine.js +1 -1
  24. package/build/esm/navigation.js +1 -1
  25. package/build/esm/theme-2bf6d1d3.js +1 -0
  26. package/build/esm/together.js +1 -1
  27. package/build/esm/types-7b2c62c9.js +1 -0
  28. package/build/esm/types-f9648df4.js +1 -0
  29. package/build/esm/useOutsideClick-3faddcd8.js +1 -0
  30. package/build/index-0ae67c7d.js +1 -0
  31. package/build/index-27945654.js +1 -0
  32. package/build/index-62048f19.js +1 -0
  33. package/build/{index-8b1987d5.js → index-740c6f7b.js} +1 -1
  34. package/build/index-fcf59317.js +1 -0
  35. package/build/index.js +1 -1
  36. package/build/{index.styled-27ff3b4a.js → index.styled-213d989f.js} +1 -1
  37. package/build/index.styled-356306df.js +1 -0
  38. package/build/mantine.js +1 -1
  39. package/build/navigation.js +1 -1
  40. package/build/{theme-6fd790c0.js → theme-f97a1fea.js} +1 -1
  41. package/build/together/components/molecules/cardAuthor/index.d.ts +0 -3
  42. package/build/together/components/molecules/index.d.ts +0 -1
  43. package/build/together.js +1 -1
  44. package/build/types-6873704a.js +1 -0
  45. package/build/types-f52d9375.js +1 -0
  46. package/build/useOutsideClick-9a358ff5.js +1 -0
  47. package/package.json +1 -1
  48. package/build/esm/index-012ca6e1.js +0 -1
  49. package/build/esm/index-4fc8f83a.js +0 -1
  50. package/build/esm/index-588deadc.js +0 -1
  51. package/build/esm/index-610bb13c.js +0 -1
  52. package/build/esm/index-662016a1.js +0 -1
  53. package/build/esm/index-80c700a9.js +0 -1
  54. package/build/esm/index-af3acf24.js +0 -1
  55. package/build/esm/index-eab6fcc2.js +0 -1
  56. package/build/esm/index.styled-520ccc61.js +0 -1
  57. package/build/esm/theme-508eb8b9.js +0 -1
  58. package/build/esm/types-11f30a38.js +0 -1
  59. package/build/esm/types-46861be0.js +0 -1
  60. package/build/esm/useOutsideClick-6004483a.js +0 -1
  61. package/build/index-3422cf26.js +0 -1
  62. package/build/index-432eb60f.js +0 -1
  63. package/build/index-47c276bb.js +0 -1
  64. package/build/index-4f1436b1.js +0 -1
  65. package/build/index-5816aa6b.js +0 -1
  66. package/build/index-65a8365f.js +0 -1
  67. package/build/index-8e49874a.js +0 -1
  68. package/build/types-7b4a0dbd.js +0 -1
  69. package/build/types-fcbefc53.js +0 -1
  70. package/build/useOutsideClick-528bfd6c.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./tslib.es6-e6f346c4.js"),t=require("react"),n=require("./index.styled-213d989f.js"),r=require("./useTranslations-62f5bf8f.js"),a=require("./Locale-11b51016.js");require("date-fns");var o=require("./screenSizeContext-8f86eb30.js"),i=require("styled-components"),l=require("./theme-696d81a9.js");require("./index-d28c27ca.js"),require("./isProduction-32e6a55a.js"),require("./gAssets.js");var s=require("./index-740c6f7b.js");require("react-range");var c=require("@mantine/core");require("./translationsContext-0cab5713.js"),require("string-format"),require("lodash/debounce");var d=require("./useOutsideClick-9a358ff5.js"),u=require("./useScrollbarSize-586f6706.js"),h=require("react-dom"),f=require("recharts"),p=require("lodash");function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var y,C,g,b,x,v,w,E,B,_=m(t),G=m(i),k={Ask:n.Ask,BarChart:n.BarChart,Booking:n.Booking,Bookmark:n.Bookmark,Boy:function(t){var n=t.size,r=void 0===n?40:n,a=e.__rest(t,["size"]);return _.default.createElement("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:"none",viewBox:"0 0 40 40"},a),_.default.createElement("circle",{cx:"20",cy:"20",r:"20",fill:"#2D87F3"}),_.default.createElement("path",{fill:"#fff",d:"M20.002 30.973c-2.616 0-4.945-.607-6.734-1.755-1.82-1.166-3.058-2.884-3.604-4.992-.045 0-.09.003-.136.003-.758 0-1.486-.3-2.023-.834a2.843 2.843 0 010-4.029 2.868 2.868 0 012.194-.83c.577-2.321 1.83-4.42 3.567-5.952C15.16 10.918 17.552 10 20.002 10s4.84.918 6.733 2.587c1.737 1.53 2.99 3.628 3.567 5.952a2.868 2.868 0 012.194.83 2.843 2.843 0 010 4.028 2.868 2.868 0 01-2.16.831c-.546 2.106-1.782 3.826-3.602 4.992-1.79 1.146-4.118 1.753-6.732 1.753z"}),_.default.createElement("path",{fill:"#2D87F3",d:"M17.95 13.19h-.014a.525.525 0 00-.524.509c0 .015-.059 1.466-2.006 1.927a.525.525 0 00-.389.63.523.523 0 00.633.386c2.18-.516 2.793-2.134 2.812-2.917a.519.519 0 00-.313-.491.527.527 0 00-.2-.044zM20.591 12.874a.524.524 0 00-.326.663c.004.014.455 1.396-1.212 2.5a.521.521 0 00.19.936.526.526 0 00.39-.066c1.866-1.236 1.878-2.966 1.625-3.708a.521.521 0 00-.464-.352.529.529 0 00-.203.027zM23.292 13.4a.525.525 0 00-.735.749c.008.007.787.783.35 2.119a.523.523 0 00.898.508.523.523 0 00.098-.183c.641-1.946-.56-3.142-.611-3.192zM15.977 21.818a1.365 1.365 0 000-1.936 1.38 1.38 0 00-1.945 0 1.365 1.365 0 000 1.936 1.38 1.38 0 001.945 0zM25.445 22.172a1.368 1.368 0 10-.682-2.652 1.369 1.369 0 10.682 2.652zM22.837 22.755a.532.532 0 00-.66.338c-.005.012-.414 1.222-2.124 1.222-1.71 0-2.12-1.21-2.124-1.222a.523.523 0 00-.998.316c.026.08.656 1.947 3.123 1.947s3.097-1.867 3.122-1.947a.52.52 0 00-.339-.654z"}))},Calendar:function(t){var n=t.size,r=void 0===n?20:n,a=t.color,o=void 0===a?"#595959":a,i=e.__rest(t,["size","color"]);return _.default.createElement("svg",e.__assign({width:r,height:r,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),_.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.8337 2.50065H16.667C17.5837 2.50065 18.3337 3.25065 18.3337 4.16732V17.5006C18.3337 18.4173 17.5837 19.1673 16.667 19.1673H3.33366C2.41699 19.1673 1.66699 18.4173 1.66699 17.5006V4.16732C1.66699 3.25065 2.41699 2.50065 3.33366 2.50065H4.16699V1.66732C4.16699 1.20898 4.54199 0.833984 5.00033 0.833984C5.45866 0.833984 5.83366 1.20898 5.83366 1.66732V2.50065H14.167V1.66732C14.167 1.20898 14.542 0.833984 15.0003 0.833984C15.4587 0.833984 15.8337 1.20898 15.8337 1.66732V2.50065ZM4.16699 17.5007H15.8337C16.292 17.5007 16.667 17.1257 16.667 16.6673V6.66732H3.33366V16.6673C3.33366 17.1257 3.70866 17.5007 4.16699 17.5007Z",fill:o}))},Community:n.Community,EditSpecial:n.EditSpecial,Family:n.Family,Font:n.Font,GenderBoy:function(t){var n=t.size,r=void 0===n?16:n,a=e.__rest(t,["size"]);return _.default.createElement("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:"none",viewBox:"0 0 16 16"},a),_.default.createElement("g",{fill:"#595959",clipPath:"url(#clip0_408_8625)"},_.default.createElement("path",{d:"M15.325 1.199a.602.602 0 00-.038-.151v-.005h-.001a.618.618 0 00-.107-.168.623.623 0 00-.117-.105l-.004-.002a.6.6 0 00-.175-.078.609.609 0 00-.161-.024h-4.278a.611.611 0 000 1.223h2.802L9.6 5.535a5.469 5.469 0 00-3.433-1.203 5.506 5.506 0 00-5.5 5.5c0 3.033 2.468 5.5 5.5 5.5 3.033 0 5.5-2.467 5.5-5.5 0-1.262-.425-2.46-1.203-3.433l3.648-3.647v2.802a.611.611 0 001.222 0V1.277c0-.012-.003-.025-.004-.037a.617.617 0 00-.004-.041zM6.166 14.11A4.282 4.282 0 011.89 9.833a4.282 4.282 0 017.303-3.028 4.282 4.282 0 01-3.026 7.305z"}),_.default.createElement("path",{fillRule:"evenodd",d:"M15.287 1.048a.602.602 0 01.042.192l.002.016a.156.156 0 01.002.021v4.278a.611.611 0 01-1.222 0V2.753L10.463 6.4a5.469 5.469 0 011.203 3.433c0 3.033-2.467 5.5-5.5 5.5a5.506 5.506 0 01-5.5-5.5c0-3.033 2.468-5.5 5.5-5.5 1.263 0 2.46.425 3.433 1.203l3.647-3.647h-2.802a.611.611 0 010-1.223h4.278a.609.609 0 01.197.036.6.6 0 01.14.067h.003a.623.623 0 01.14.135h.001a.618.618 0 01.083.138v.003l.001.003zm.064-.02c.021.053.033.107.04.162m-.04-.162a.695.695 0 00-.096-.165l-.001-.002c-.008-.009-.016-.02-.026-.03A.69.69 0 0015.1.715m-.2-.089A.675.675 0 0014.722.6h-4.278a.678.678 0 000 1.355h2.641L9.594 5.447a5.535 5.535 0 00-3.428-1.18A5.573 5.573 0 00.6 9.832 5.573 5.573 0 006.166 15.4a5.573 5.573 0 005.567-5.567c0-1.257-.417-2.45-1.18-3.427l3.491-3.492v2.641a.678.678 0 001.356 0V1.277a.202.202 0 00-.003-.027v-.004l-.001-.01a.743.743 0 00-.005-.046M1.955 9.833a4.216 4.216 0 004.211 4.211 4.216 4.216 0 002.979-7.191 4.216 4.216 0 00-7.19 2.98zm7.237-3.028a4.282 4.282 0 00-7.304 3.028 4.282 4.282 0 004.278 4.278 4.282 4.282 0 003.026-7.306z",clipRule:"evenodd"})),_.default.createElement("defs",null,_.default.createElement("clipPath",{id:"clip0_408_8625"},_.default.createElement("path",{fill:"#fff",d:"M0 0H16V16H0z"}))))},GenderChooseBoy:function(n){var r=t.useRef("svg-".concat(Math.random()));return _.default.createElement("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",fill:"none",viewBox:"0 0 21 20"},n),_.default.createElement("g",{clipPath:"url(#".concat(r.current,")")},_.default.createElement("path",{fill:"#45A4FF",d:"M11.203 7.633l1.914 1.914 6.397-6.397L17.6 1.235l-6.397 6.398z"}),_.default.createElement("path",{fill:"#45A4FF",d:"M8.083 5.334a7.333 7.333 0 100 14.667 7.333 7.333 0 000-14.667zm0 11.96a4.626 4.626 0 110-9.253 4.626 4.626 0 010 9.252z"}),_.default.createElement("path",{fill:"#2D87F3",d:"M7.508 8.077a4.626 4.626 0 100 9.181 4.627 4.627 0 010-9.181zM8.083 5.334a7.43 7.43 0 00-.575.022 7.334 7.334 0 010 14.622 7.333 7.333 0 10.575-14.644zM19.88 2.785v-.78L18.744.872h-.78l-2.707 2.707h1.55c.2 0 .364.163.364.365v1.55l2.707-2.708z"}),_.default.createElement("path",{fill:"#45A4FF",d:"M18.043 0h-4.585a.365.365 0 00-.364.365v1.978c0 .201.163.364.364.364h4.22c.201 0 .365.163.365.365v4.22c0 .2.163.364.364.364h1.978a.365.365 0 00.365-.364V.365A.365.365 0 0020.385 0h-2.342z"})),_.default.createElement("defs",null,_.default.createElement("clipPath",{id:r.current},_.default.createElement("path",{fill:"#fff",d:"M0 0H20V20H0z",transform:"translate(.75)"}))))},GenderChooseGirl:function(t){return _.default.createElement("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",fill:"none",viewBox:"0 0 21 20"},t),_.default.createElement("path",{fill:"#FE9DC2",d:"M13.748 15.546h-1.503a.321.321 0 01-.321-.322v-3.7H9.577v3.7a.321.321 0 01-.322.322H7.753a.321.321 0 00-.321.321v1.704c0 .178.144.322.321.322h1.502c.178 0 .322.144.322.321v1.465c0 .178.144.321.321.321h1.704a.321.321 0 00.322-.321v-1.465c0-.177.144-.321.321-.321h1.503a.321.321 0 00.321-.322v-1.704a.322.322 0 00-.321-.321z"}),_.default.createElement("path",{fill:"#FC488D",d:"M9.576 11.523v2.151a7.466 7.466 0 002.347 0v-2.15H9.576z"}),_.default.createElement("path",{fill:"#FE9DC2",d:"M10.75 0a6.357 6.357 0 100 12.715A6.357 6.357 0 0010.75 0zm0 10.368a4.01 4.01 0 110-8.021 4.01 4.01 0 010 8.021z"}),_.default.createElement("path",{fill:"#FC488D",d:"M10.157 2.391a4.01 4.01 0 100 7.934 4.011 4.011 0 010-7.934zM10.75 0c-.2 0-.398.01-.593.028a6.358 6.358 0 010 12.66A6.357 6.357 0 1010.75 0z"}))},GenderGirl:function(t){var n=t.size,r=void 0===n?16:n,a=e.__rest(t,["size"]);return _.default.createElement("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:"none",viewBox:"0 0 16 16"},a),_.default.createElement("path",{fill:"#595959",d:"M11.445 8.979a4.875 4.875 0 000-6.888 4.879 4.879 0 00-6.89 0 4.875 4.875 0 000 6.888 4.849 4.849 0 002.872 1.39V12H6.28a.573.573 0 100 1.147h1.147v1.614a.573.573 0 001.146 0v-1.614H9.72a.573.573 0 100-1.146H8.573v-1.63a4.849 4.849 0 002.872-1.391zm-6.08-.81a3.728 3.728 0 010-5.268 3.73 3.73 0 015.27 0 3.728 3.728 0 010 5.267 3.73 3.73 0 01-5.27 0z"}),_.default.createElement("path",{fill:"#595959",fillRule:"evenodd",d:"M5.366 8.168a3.73 3.73 0 005.268 0 3.728 3.728 0 000-5.267 3.73 3.73 0 00-5.268 0 3.728 3.728 0 000 5.267zm6.15-6.148a4.975 4.975 0 010 7.03 4.948 4.948 0 01-2.843 1.407V11.9H9.72a.673.673 0 110 1.346H8.673v1.514a.673.673 0 01-1.346 0v-1.514H6.28a.673.673 0 110-1.346h1.046v-1.443A4.948 4.948 0 014.484 9.05a4.975 4.975 0 010-7.029 4.979 4.979 0 017.032 0zm-4.09 8.35a4.849 4.849 0 01-2.871-1.391 4.875 4.875 0 010-6.888 4.879 4.879 0 016.89 0 4.875 4.875 0 010 6.888 4.849 4.849 0 01-2.872 1.39V12H9.72a.573.573 0 110 1.147H8.573v1.614a.573.573 0 01-1.146 0v-1.614H6.28a.573.573 0 110-1.146h1.147v-1.63zm-1.99-7.398a3.628 3.628 0 000 5.126 3.63 3.63 0 005.128 0 3.628 3.628 0 000-5.126 3.63 3.63 0 00-5.128 0z",clipRule:"evenodd"}))},Girl:function(t){var n=t.size,r=void 0===n?40:n,a=e.__rest(t,["size"]);return _.default.createElement("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:"none",viewBox:"0 0 24 24"},a),_.default.createElement("circle",{cx:"12",cy:"12",r:"12",fill:"#FC5D9A"}),_.default.createElement("path",{fill:"#fff",d:"M18.283 11.759c-.034 0-.068 0-.102.003-.346-1.394-1.099-2.652-2.14-3.57a6.132 6.132 0 00-3.726-1.544v-.532a2.062 2.062 0 001.617-.634 1.178 1.178 0 000-1.638 1.13 1.13 0 00-1.626 0c-.116.119-.218.25-.305.392a2.212 2.212 0 00-.308-.393 1.13 1.13 0 00-1.625 0 1.179 1.179 0 000 1.638 2.06 2.06 0 001.5.639c.041 0 .08 0 .117-.004v.533a6.143 6.143 0 00-3.726 1.543c-1.042.918-1.793 2.177-2.14 3.572a1.72 1.72 0 00-1.317.498 1.706 1.706 0 000 2.417c.323.32.76.5 1.215.5.027 0 .054 0 .081-.002a4.968 4.968 0 002.162 2.996c1.073.69 2.47 1.053 4.04 1.053 1.57 0 2.967-.364 4.04-1.053a4.987 4.987 0 002.162-2.998 1.72 1.72 0 001.295-.499 1.705 1.705 0 000-2.417c-.322-.32-.759-.5-1.214-.5zm-5.527-7.477a.5.5 0 01.724 0 .55.55 0 010 .763 1.446 1.446 0 01-1.165.446 1.834 1.834 0 01-.004-.077v-.09c.01-.392.168-.764.445-1.042zm-2.238.762a.55.55 0 010-.763.501.501 0 01.724 0c.276.278.435.65.444 1.042v.09c0 .027-.002.053-.004.078a1.45 1.45 0 01-1.164-.447z"}),_.default.createElement("path",{fill:"#FC5D9A",d:"M9.586 13.68a.819.819 0 000-1.161.828.828 0 00-1.167 0 .819.819 0 000 1.162c.323.32.845.32 1.167 0zM15.267 13.894a.821.821 0 10-.41-1.592.821.821 0 10.41 1.592zM13.704 14.242a.32.32 0 00-.282.045.314.314 0 00-.114.159c-.002.007-.248.733-1.274.733-1.027 0-1.272-.726-1.275-.733a.314.314 0 10-.598.19c.016.046.394 1.168 1.873 1.168s1.858-1.12 1.873-1.168a.313.313 0 00-.203-.394zM12.402 7.713a.315.315 0 00-.53.24.313.313 0 00.1.218c.253.248.466.533.632.845.316.61.298 1.118-.056 1.551-.403.493-.865.449-1.104.378-.33-.096-.598-.351-.625-.595-.03-.263.058-.585.318-.71.165-.077.337-.039.486.11a.315.315 0 00.538-.22.313.313 0 00-.092-.222c-.336-.337-.797-.426-1.204-.232-.473.226-.737.752-.671 1.343.055.494.495.957 1.072 1.128.151.045.308.067.465.068.491 0 .958-.228 1.305-.652.514-.63.558-1.402.127-2.234a4.11 4.11 0 00-.761-1.016z"}))},Heart:n.Heart,Home:n.Home,Kebab:function(t){var n=t.size,r=void 0===n?20:n,a=e.__rest(t,["size"]);return _.default.createElement("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:"none",viewBox:"0 0 20 20"},a),_.default.createElement("path",{fill:"#000",fillOpacity:"0.54",fillRule:"evenodd",d:"M10 6.667c.916 0 1.666-.75 1.666-1.666 0-.917-.75-1.667-1.666-1.667-.917 0-1.667.75-1.667 1.667 0 .916.75 1.666 1.667 1.666zm0 1.667c-.917 0-1.667.75-1.667 1.667 0 .916.75 1.666 1.667 1.666.916 0 1.666-.75 1.666-1.666 0-.917-.75-1.667-1.666-1.667zm-1.667 6.667c0-.917.75-1.667 1.667-1.667.916 0 1.666.75 1.666 1.667 0 .916-.75 1.666-1.666 1.666-.917 0-1.667-.75-1.667-1.666z",clipRule:"evenodd"}))},Like:n.Like,MyCommunity:n.MyCommunity,PlusSpecial:n.PlusSpecial,Recalculate:n.Recalculate,Scale:n.Scale,Share:n.Share,Stethoscope:n.Stethoscope,FullScreen:n.FullScreen,GroupPeople:n.GroupPeople,GroupPeopleSolid:n.GroupPeopleSolid,Activities:n.Activities,Reply:n.Reply,Check:function(t){var n=t.size,r=void 0===n?20:n,a=t.color,o=void 0===a?"#595959":a,i=t.activeColor,s=void 0===i?l.theme.colors.primaryBase:i,c=t.isActive,d=void 0!==c&&c,u=e.__rest(t,["size","color","activeColor","isActive"]);return _.default.createElement("svg",e.__assign({width:r,height:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u),_.default.createElement("path",{d:"M19.9803 5.99067C19.7205 5.99841 19.4739 6.10699 19.2928 6.2934L8.99984 16.5864L5.70687 13.2934C5.61473 13.1974 5.50436 13.1208 5.38223 13.068C5.2601 13.0152 5.12867 12.9874 4.99563 12.986C4.86259 12.9846 4.73061 13.0099 4.60743 13.0601C4.48426 13.1104 4.37235 13.1848 4.27827 13.2789C4.1842 13.3729 4.10983 13.4849 4.05954 13.608C4.00926 13.7312 3.98405 13.8632 3.9854 13.9962C3.98676 14.1293 4.01464 14.2607 4.06743 14.3828C4.12021 14.505 4.19684 14.6153 4.29281 14.7075L8.29281 18.7075C8.48035 18.8949 8.73467 19.0002 8.99984 19.0002C9.26501 19.0002 9.51933 18.8949 9.70687 18.7075L20.7069 7.70747C20.8514 7.567 20.9501 7.38616 20.99 7.18864C21.03 6.99112 21.0093 6.78614 20.9308 6.60055C20.8523 6.41497 20.7195 6.25744 20.5499 6.14861C20.3803 6.03978 20.1817 5.98473 19.9803 5.99067Z",fill:d?s:o}))},UserCheck:function(t){var n=t.size,r=void 0===n?20:n,a=t.color,o=void 0===a?"#595959":a,i=t.activeColor,s=void 0===i?l.theme.colors.primaryBase:i,c=t.isActive,d=void 0!==c&&c,u=e.__rest(t,["size","color","activeColor","isActive"]);return _.default.createElement("svg",e.__assign({width:r,height:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u),_.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.6051 6.37411C13.7666 6.52476 13.7755 6.77787 13.6249 6.93945L12.2303 8.43508C11.8189 8.87628 11.1238 8.88884 10.6968 8.46279L10.3831 8.14984C10.2267 7.99381 10.2264 7.74054 10.3825 7.58415C10.5385 7.42776 10.7917 7.42746 10.9481 7.58349L11.2618 7.89644C11.3686 8.00296 11.5424 7.99982 11.6452 7.88952L13.0397 6.39388C13.1904 6.23231 13.4435 6.22345 13.6051 6.37411Z",fill:d?s:o}),_.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.81379 3.06667C5.68447 3.06667 4.79403 3.94584 4.79403 5C4.79403 6.05417 5.68447 6.93334 6.81379 6.93334C7.9431 6.93334 8.83354 6.05417 8.83354 5C8.83354 3.94584 7.9431 3.06667 6.81379 3.06667ZM3.99403 5C3.99403 3.47684 5.27031 2.26667 6.81379 2.26667C8.35726 2.26667 9.63354 3.47684 9.63354 5C9.63354 6.52317 8.35726 7.73334 6.81379 7.73334C5.27031 7.73334 3.99403 6.52317 3.99403 5ZM8.40096 9.71521C7.34947 9.54185 6.27808 9.54185 5.22659 9.71521L5.10346 9.73551C3.93891 9.9275 3.06563 10.9706 3.06563 12.2142C3.06563 12.6237 3.38372 12.9333 3.74896 12.9333H9.87859C10.2438 12.9333 10.5619 12.6237 10.5619 12.2142C10.5619 10.9706 9.68864 9.9275 8.52409 9.73551L8.40096 9.71521ZM5.09645 8.92586C6.23411 8.7383 7.39343 8.7383 8.5311 8.92586L8.65423 8.94616C10.2236 9.20489 11.3619 10.5979 11.3619 12.2142C11.3619 13.0408 10.71 13.7333 9.87859 13.7333H3.74896C2.91758 13.7333 2.26562 13.0408 2.26562 12.2142C2.26562 10.5979 3.40399 9.20489 4.97332 8.94616L5.09645 8.92586Z",fill:d?s:o}))},BabyBoyMB:function(t){t.size;var n=e.__rest(t,["size"]);return _.default.createElement("svg",e.__assign({width:"41",height:"40",viewBox:"0 0 41 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),_.default.createElement("circle",{cx:"20.5",cy:"20",r:"20",fill:"#E0E9FB"}),_.default.createElement("path",{d:"M26.9205 21.285H26.7693C26.1495 18.3521 23.534 16.1449 20.4197 16.1449C17.3054 16.1449 14.6899 18.3521 14.0701 21.285H13.9189C12.8304 21.285 11.9536 22.1619 11.9536 23.2504C11.9536 24.3389 12.8304 25.2157 13.9189 25.2157H14.448C15.4458 27.5288 17.7438 29.1464 20.4197 29.1464C23.0956 29.1464 25.3936 27.5288 26.3913 25.2157H26.9205C28.009 25.2157 28.8858 24.3389 28.8858 23.2504C28.8858 22.1619 28.009 21.285 26.9205 21.285ZM20.4197 10.8535C19.8984 10.8535 19.3986 11.0606 19.03 11.4292C18.6614 11.7977 18.4543 12.2976 18.4543 12.8189C18.4543 13.3401 18.6614 13.84 19.03 14.2086C19.3986 14.5772 19.8984 14.7842 20.4197 14.7842C20.9409 14.7842 21.4408 14.5772 21.8094 14.2086C22.178 13.84 22.385 13.3401 22.385 12.8189C22.385 12.2976 22.178 11.7977 21.8094 11.4292C21.4408 11.0606 20.9409 10.8535 20.4197 10.8535Z",fill:"white"}),_.default.createElement("path",{d:"M20.4197 15.2377C19.0893 15.2377 18.0008 14.1492 18.0008 12.8188C18.0008 11.4884 19.0893 10.3999 20.4197 10.3999C21.7501 10.3999 22.8386 11.4884 22.8386 12.8188C22.8386 14.1492 21.7501 15.2377 20.4197 15.2377ZM20.4197 11.307C19.5882 11.307 18.9079 11.9873 18.9079 12.8188C18.9079 13.6503 19.5882 14.3306 20.4197 14.3306C21.2512 14.3306 21.9315 13.6503 21.9315 12.8188C21.9315 11.9873 21.2512 11.307 20.4197 11.307Z",fill:"#202135"}),_.default.createElement("path",{d:"M14.0701 18.6392C14.0701 15.1771 16.882 13.877 20.3441 13.877C23.8061 13.877 26.6181 15.1771 26.6181 18.6392",fill:"#FFF9EB"}),_.default.createElement("path",{d:"M25.7109 19.0928C25.4539 19.0928 25.2574 18.8963 25.2574 18.6392C25.2574 17.2786 24.6829 16.3413 23.4886 15.797C23.2618 15.6912 23.156 15.4191 23.2618 15.1923C23.3676 14.9655 23.6398 14.8597 23.8665 14.9655C25.3783 15.661 26.1645 16.9309 26.1645 18.6392C26.1645 18.8963 25.968 19.0928 25.7109 19.0928Z",fill:"#E55C8A"}),_.default.createElement("path",{d:"M17.396 22.6455C17.2357 22.6455 17.0818 22.7092 16.9684 22.8226C16.855 22.936 16.7913 23.0898 16.7913 23.2502C16.7913 23.4106 16.855 23.5644 16.9684 23.6778C17.0818 23.7912 17.2357 23.855 17.396 23.855C17.5564 23.855 17.7102 23.7912 17.8236 23.6778C17.9371 23.5644 18.0008 23.4106 18.0008 23.2502C18.0008 23.0898 17.9371 22.936 17.8236 22.8226C17.7102 22.7092 17.5564 22.6455 17.396 22.6455ZM23.4433 22.6455C23.2829 22.6455 23.1291 22.7092 23.0157 22.8226C22.9023 22.936 22.8386 23.0898 22.8386 23.2502C22.8386 23.4106 22.9023 23.5644 23.0157 23.6778C23.1291 23.7912 23.2829 23.855 23.4433 23.855C23.6037 23.855 23.7575 23.7912 23.8709 23.6778C23.9843 23.5644 24.048 23.4106 24.048 23.2502C24.048 23.0898 23.9843 22.936 23.8709 22.8226C23.7575 22.7092 23.6037 22.6455 23.4433 22.6455Z",fill:"#202135"}),_.default.createElement("path",{d:"M26.1645 18.2612H14.826C13.9945 18.2612 13.3141 18.9415 13.3141 19.773C13.3141 20.6045 13.9945 21.2849 14.826 21.2849H26.1645C26.996 21.2849 27.6764 20.6045 27.6764 19.773C27.6764 18.9415 26.996 18.2612 26.1645 18.2612Z",fill:"#E55C8A"}),_.default.createElement("path",{d:"M27.7217 20.9675C27.9787 20.6349 28.1299 20.2267 28.1299 19.7732C28.1299 19.0022 27.6915 18.337 27.0414 18.0195C26.7542 15.0866 24.3504 13.4236 20.3441 13.4236C16.2622 13.4236 13.8282 15.1622 13.6317 18.216C13.163 18.5789 12.8606 19.1382 12.8606 19.7732C12.8606 20.8617 13.7375 21.7385 14.826 21.7385H26.9205C27.752 21.7385 28.4323 22.4189 28.4323 23.2504C28.4323 24.0819 27.752 24.7622 26.9205 24.7622H26.3913C26.2099 24.7622 26.0436 24.868 25.968 25.0343C25.0156 27.2567 22.8386 28.6929 20.4197 28.6929C17.9857 28.6929 15.8087 27.2567 14.8562 25.0192C14.7655 24.8075 14.5236 24.6866 14.2969 24.7622H13.9189C13.0874 24.7622 12.4071 24.0819 12.4071 23.2504C12.4071 22.9026 12.5129 22.5852 12.7397 22.313C12.8909 22.1165 12.8606 21.8293 12.6641 21.6781C12.4676 21.5269 12.1803 21.5571 12.0291 21.7537C11.6814 22.177 11.5 22.7061 11.5 23.2504C11.5 24.5807 12.5885 25.6693 13.9189 25.6693H14.1608C15.3249 28.073 17.7438 29.6 20.4197 29.6C23.0956 29.6 25.5296 28.073 26.6786 25.6693H26.9205C28.2509 25.6693 29.3394 24.5807 29.3394 23.2504C29.3394 22.1921 28.6591 21.3001 27.7217 20.9675ZM20.3441 14.3307C22.3397 14.3307 25.5901 14.7993 26.1041 17.8078H14.826C14.7504 17.8078 14.6597 17.8078 14.5841 17.823C15.083 14.8144 18.3334 14.3307 20.3441 14.3307ZM14.826 20.8315C14.2364 20.8315 13.7677 20.3628 13.7677 19.7732C13.7677 19.1836 14.2364 18.7149 14.826 18.7149H26.1646C26.7542 18.7149 27.2228 19.1836 27.2228 19.7732C27.2228 20.3628 26.7542 20.8315 26.1646 20.8315H14.826Z",fill:"#202135"}),_.default.createElement("path",{d:"M20.4197 27.1812C20.1627 27.1812 19.9661 26.9846 19.9661 26.7276C19.9661 26.4706 20.1627 26.2741 20.4197 26.2741C20.722 26.2741 20.9942 26.1683 21.1907 25.9566C21.3721 25.7752 21.6594 25.7752 21.8257 25.9415C22.0071 26.1229 22.0071 26.4102 21.8408 26.5765C21.4628 26.9695 20.9639 27.1812 20.4197 27.1812Z",fill:"#202135"}))},BabyGirlMB:function(t){t.size;var n=e.__rest(t,["size"]);return _.default.createElement("svg",e.__assign({width:"41",height:"40",viewBox:"0 0 41 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),_.default.createElement("circle",{cx:"20.5",cy:"20",r:"20",fill:"#FFEAF1"}),_.default.createElement("path",{d:"M20.2253 10.8569C19.7 10.8569 19.1961 11.0656 18.8246 11.4371C18.4531 11.8086 18.2444 12.3125 18.2444 12.8379C18.2444 13.3633 18.4531 13.8671 18.8246 14.2386C19.1961 14.6101 19.7 14.8188 20.2253 14.8188C20.7507 14.8188 21.2546 14.6101 21.6261 14.2386C21.9976 13.8671 22.2063 13.3633 22.2063 12.8379C22.2063 12.3125 21.9976 11.8086 21.6261 11.4371C21.2546 11.0656 20.7507 10.8569 20.2253 10.8569Z",fill:"#4BA5D1"}),_.default.createElement("path",{d:"M20.2254 15.2761C18.8845 15.2761 17.7874 14.179 17.7874 12.838C17.7874 11.497 18.8845 10.3999 20.2254 10.3999C21.5664 10.3999 22.6635 11.497 22.6635 12.838C22.6635 14.179 21.5664 15.2761 20.2254 15.2761ZM20.2254 11.3142C19.3874 11.3142 18.7016 11.9999 18.7016 12.838C18.7016 13.6761 19.3874 14.3618 20.2254 14.3618C21.0635 14.3618 21.7493 13.6761 21.7493 12.838C21.7493 11.9999 21.0635 11.3142 20.2254 11.3142Z",fill:"#202135"}),_.default.createElement("path",{d:"M26.2903 21.219H26.8541C28.2255 21.219 29.1398 22.6361 28.576 23.9009C28.3779 24.3428 28.3474 24.8304 28.4998 25.2876L28.957 26.659C29.3684 27.878 28.4541 29.1428 27.1589 29.1428H22.176L26.2903 21.219ZM14.1303 21.219H13.5665C12.1951 21.219 11.2808 22.6361 11.8446 23.9009C12.0427 24.3428 12.0732 24.8304 11.9208 25.2876L11.4636 26.659C11.0522 27.878 11.9665 29.1428 13.2617 29.1428H18.2446",fill:"#9495A0"}),_.default.createElement("path",{d:"M26.7779 21.219H26.6255C26.0007 18.2628 23.3645 16.0381 20.2255 16.0381C17.0864 16.0381 14.4502 18.2628 13.8255 21.219H13.6731C12.5759 21.219 11.6921 22.1028 11.6921 23.2C11.6921 24.2971 12.5759 25.1809 13.6731 25.1809H14.2064C15.2121 27.5124 17.5283 29.1428 20.2255 29.1428C22.9226 29.1428 25.2388 27.5124 26.2445 25.1809H26.7779C27.875 25.1809 28.7588 24.2971 28.7588 23.2C28.7588 22.1028 27.875 21.219 26.7779 21.219Z",fill:"white"}),_.default.createElement("path",{d:"M14.13 22.5904C14.13 22.118 14.1909 21.6609 14.2823 21.219H13.5661C12.1947 21.219 11.2804 22.6361 11.8442 23.9009C12.0423 24.3428 12.0728 24.8304 11.9204 25.2876C11.9204 25.2876 15.1357 26.0799 14.709 25.1961C14.3433 24.3885 14.13 23.5199 14.13 22.5904Z",fill:"#9495A0"}),_.default.createElement("path",{d:"M20.2254 27.162C19.6921 27.162 19.1892 26.9486 18.8082 26.5677C18.6254 26.3848 18.6406 26.0953 18.8082 25.9277C18.9911 25.7448 19.2806 25.7601 19.4482 25.9277C19.6463 26.141 19.9206 26.2477 20.2102 26.2477C20.5149 26.2477 20.7892 26.141 20.9873 25.9277C21.1702 25.7448 21.4597 25.7448 21.6273 25.9124C21.8102 26.0953 21.8102 26.3848 21.6425 26.5524C21.2768 26.9486 20.774 27.162 20.2254 27.162Z",fill:"#202135"}),_.default.createElement("path",{d:"M16.111 24.4189C15.9493 24.4189 15.7943 24.4832 15.68 24.5975C15.5657 24.7118 15.5015 24.8668 15.5015 25.0285C15.5015 25.1901 15.5657 25.3452 15.68 25.4595C15.7943 25.5738 15.9493 25.638 16.111 25.638C16.2726 25.638 16.4277 25.5738 16.542 25.4595C16.6563 25.3452 16.7205 25.1901 16.7205 25.0285C16.7205 24.8668 16.6563 24.7118 16.542 24.5975C16.4277 24.4832 16.2726 24.4189 16.111 24.4189ZM24.3396 24.4189C24.1779 24.4189 24.0229 24.4832 23.9086 24.5975C23.7943 24.7118 23.73 24.8668 23.73 25.0285C23.73 25.1901 23.7943 25.3452 23.9086 25.4595C24.0229 25.5738 24.1779 25.638 24.3396 25.638C24.5012 25.638 24.6563 25.5738 24.7706 25.4595C24.8849 25.3452 24.9491 25.1901 24.9491 25.0285C24.9491 24.8668 24.8849 24.7118 24.7706 24.5975C24.6563 24.4832 24.5012 24.4189 24.3396 24.4189Z",fill:"#E55C8A"}),_.default.createElement("path",{d:"M13.8254 18.5522C13.8254 15.0627 16.6597 13.7522 20.1492 13.7522C23.6388 13.7522 26.4731 15.0627 26.4731 18.5522",fill:"white"}),_.default.createElement("path",{d:"M25.5587 19.0094C25.2997 19.0094 25.1016 18.8113 25.1016 18.5523C25.1016 17.1808 24.5225 16.2361 23.3187 15.6875C23.0901 15.5808 22.9835 15.3066 23.0901 15.078C23.1968 14.8494 23.4711 14.7428 23.6997 14.8494C25.2235 15.5504 26.0159 16.8304 26.0159 18.5523C26.0159 18.8113 25.8178 19.0094 25.5587 19.0094Z",fill:"#B8E4FF"}),_.default.createElement("path",{d:"M17.1776 22.5903C17.016 22.5903 16.8609 22.6545 16.7466 22.7689C16.6323 22.8832 16.5681 23.0382 16.5681 23.1999C16.5681 23.3615 16.6323 23.5165 16.7466 23.6309C16.8609 23.7452 17.016 23.8094 17.1776 23.8094C17.3393 23.8094 17.4943 23.7452 17.6086 23.6309C17.7229 23.5165 17.7872 23.3615 17.7872 23.1999C17.7872 23.0382 17.7229 22.8832 17.6086 22.7689C17.4943 22.6545 17.3393 22.5903 17.1776 22.5903ZM23.2729 22.5903C23.1112 22.5903 22.9562 22.6545 22.8419 22.7689C22.7276 22.8832 22.6634 23.0382 22.6634 23.1999C22.6634 23.3615 22.7276 23.5165 22.8419 23.6309C22.9562 23.7452 23.1112 23.8094 23.2729 23.8094C23.4345 23.8094 23.5896 23.7452 23.7039 23.6309C23.8182 23.5165 23.8824 23.3615 23.8824 23.1999C23.8824 23.0382 23.8182 22.8832 23.7039 22.7689C23.5896 22.6545 23.4345 22.5903 23.2729 22.5903Z",fill:"#202135"}),_.default.createElement("path",{d:"M26.0159 18.1714H14.5873C13.7492 18.1714 13.0635 18.8571 13.0635 19.6952C13.0635 20.5333 13.7492 21.219 14.5873 21.219H26.0159C26.854 21.219 27.5397 20.5333 27.5397 19.6952C27.5397 18.8571 26.854 18.1714 26.0159 18.1714Z",fill:"#E55C8A"}),_.default.createElement("path",{d:"M29.3683 26.4456L28.9264 25.1352C28.8197 24.8152 28.8654 24.4799 29.0026 24.1752C29.1549 23.8247 29.2311 23.4133 29.2007 23.0018C29.1245 22.0266 28.454 21.2495 27.5702 20.9295C27.8292 20.5942 27.9969 20.1675 27.9969 19.7104C27.9969 18.9333 27.5549 18.2628 26.8997 17.9428C26.6102 14.9714 24.1873 13.2952 20.1492 13.2952C16.0349 13.2952 13.5816 15.0475 13.3835 18.1256C12.9111 18.4914 12.6064 19.0552 12.6064 19.6952C12.6064 20.7923 13.4902 21.6761 14.5873 21.6761H26.7169C27.5245 21.6761 28.2407 22.2856 28.2864 23.0933C28.3473 23.9771 27.6464 24.7237 26.7626 24.7237H26.2292C26.0464 24.7237 25.8788 24.8304 25.8178 24.998C24.8578 27.238 22.6635 28.6856 20.2254 28.6856C17.7873 28.6856 15.5778 27.238 14.6178 24.9828C14.5416 24.7999 14.374 24.678 14.1759 24.6933C13.8407 24.7237 13.6578 25.0437 13.7797 25.3333C14.3892 26.7809 15.4559 27.939 16.7664 28.6856H13.3073C12.8349 28.6856 12.3778 28.4723 12.1035 28.0914C11.8292 27.7104 11.753 27.238 11.9054 26.7961L12.393 25.3485C12.5759 24.7999 12.5149 24.2209 12.2711 23.6875C12.0121 23.1085 12.1645 22.4228 12.6521 22.0114C12.8349 21.859 12.9111 21.5695 12.7588 21.3714C12.6064 21.158 12.3016 21.1123 12.0883 21.2799C11.2502 21.9656 10.9759 23.1237 11.433 24.099C11.5854 24.419 11.5854 24.7847 11.4788 25.1199L11.0369 26.4304C10.7778 27.1923 10.8845 28.0304 11.3721 28.6704C11.814 29.2647 12.4997 29.5999 13.2464 29.5999H20.1949H20.2254H27.174C27.9207 29.5999 28.5911 29.2647 29.0483 28.6704C29.5207 28.0456 29.6273 27.1923 29.3683 26.4456ZM20.1492 14.2095C22.1607 14.2095 25.4369 14.6971 25.9397 17.7142H14.5873C14.5111 17.7142 14.4197 17.7142 14.3435 17.7295C14.8464 14.6971 18.1226 14.2095 20.1492 14.2095ZM14.5873 20.7618C13.993 20.7618 13.5207 20.2895 13.5207 19.6952C13.5207 19.1009 13.993 18.6285 14.5873 18.6285H26.0159C26.6102 18.6285 27.0826 19.1009 27.0826 19.6952C27.0826 20.2895 26.6102 20.7618 26.0159 20.7618H14.5873ZM28.3321 28.0914C28.0578 28.4723 27.6311 28.6856 27.174 28.6856H23.6845C24.9035 27.9999 25.9092 26.9485 26.534 25.638H26.7778C27.2349 25.638 27.6616 25.5009 28.0273 25.2875C28.0426 25.3333 28.0578 25.379 28.073 25.4247L28.5302 26.7961C28.6826 27.238 28.6064 27.7104 28.3321 28.0914Z",fill:"#202135"}))}},M=function(e){var t=e.open,r=void 0!==t&&t,a=e.onClickOutside;return _.default.createElement(n.StyledBackdrop,{"data-open":r,onClick:a})},H=function(e){var r=e.children,a=e.title,i=e.onClose,l=e.open,s=void 0!==l&&l,d=e.placement,u=void 0===d?"left":d,h=e.destroyOnClose,f=void 0!==h&&h,p=e.className,m=t.useRef();t.useEffect((function(){return o.toggleNoScroll(s),function(){return o.toggleNoScroll(!1)}}),[s]);var y=function(){m.current.classList.add("slideOut"),setTimeout((function(){i()}),800)};return!s&&f?null:_.default.createElement(c.Portal,null,_.default.createElement(n.StyledDrawer,{className:p,open:s},_.default.createElement(M,{open:s,onClickOutside:y}),_.default.createElement(n.StyledDrawerPanel,{open:s,placement:u,ref:m,hasTitle:Boolean(a)},_.default.createElement("div",{className:"title"},a&&_.default.createElement(n.Text,{size:"s2",type:"semiBold"},a),_.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:y},_.default.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"}))),_.default.createElement(n.StyledDrawerContent,{onClick:function(e){return e.stopPropagation()}},r&&(_.default.isValidElement(r)?r:"function"==typeof r?r({internalClose:y}):null)))))},S=function(t){var r=t.type,a=t.color,o=t.style,i=e.__rest(t,["type","color","style"]);return _.default.createElement(n.StyledHeading$1,e.__assign({type:r,"data-type":{h1:"headline-1",h2:"headline-2",h3:"headline-3",h4:"headline-4"}[r],style:e.__assign(e.__assign({},a&&{"--text-color":a}),o)},i))},z=function(t){var r=t.type,a=t.color,o=t.style,i=e.__rest(t,["type","color","style"]);return _.default.createElement(n.StyledText,e.__assign({"data-type":r,style:e.__assign(e.__assign({},o),a&&{"--text-color":a})},i))},D=function(e){var r=e.value,a=e.options,o=e.className,i=e.direction,s=void 0===i?"horizontal":i,c=e.onChange,d=e.isDisabled,u=e.siteType,h=t.useState(r),f=h[0],p=h[1],m="marryBaby"===u;return _.default.createElement(n.StyledRadioImageGroup,{className:o,"data-direction":s},a.map((function(e,t){return _.default.createElement(n.StyledRadioImageItem,{"data-selected":(r||f)===e.value,"data-is-mb":m,"data-disabled":d,key:t,onClick:function(){var t;t=e.value,d||(p(t),c&&c(t))}},_.default.createElement("div",null,e.content,e.label&&_.default.createElement(_.default.Fragment,null,m?_.default.createElement(z,{type:"subtitle-2",color:(r||f)===e.value?l.theme.mbColors.dark:l.theme.mbColors.midGray},e.label):_.default.createElement(n.Text,{type:"bold",color:(r||f)===e.value?"#2D87F3":"black",className:"radio-group-item-heading",size:"label1"},e.label))))})))},j=function(e){var t=e.isActive,a=e.onChange,o=e.value,i=void 0===o?"":o,s=e.onInputChange,c=r.useTranslations().t;return _.default.createElement(n.StyledNewBabyProfileRadio,{onClick:function(){return a("new")}},_.default.createElement("div",{className:"title"},_.default.createElement(n.Text,{size:"p2",color:l.theme.colors.gray800},c("chooseBaby.new")),_.default.createElement("div",{className:t?"radio active":"radio"})),_.default.createElement(d.Input,{name:"name",value:i,size:"md",placeholder:c("chooseBaby.placeholder"),type:"text",onChange:s}))},L=G.default.div(y||(y=e.__makeTemplateObject(["\n position: relative;\n z-index: 200;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 4px 8px ",";\n\n .hhg-modal__content {\n position: relative;\n z-index: 111;\n height: 100%;\n padding: 16px;\n }\n .hhg-modal__video {\n position: relative;\n z-index: 111;\n height: 100%;\n background-color: none;\n box-shadow: none;\n }\n"],["\n position: relative;\n z-index: 200;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 4px 8px ",";\n\n .hhg-modal__content {\n position: relative;\n z-index: 111;\n height: 100%;\n padding: 16px;\n }\n .hhg-modal__video {\n position: relative;\n z-index: 111;\n height: 100%;\n background-color: none;\n box-shadow: none;\n }\n"])),(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.gray200})),T="hhgcomp-modal-modal",I=n.getDefaultClassWrapper(L,T),A=G.default.div(C||(C=e.__makeTemplateObject(["\n position: fixed;\n top: 0;\n left: 0;\n z-index: 201;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n outline: 0;\n visibility: hidden;\n background-color: rgba(38, 38, 38, 0.3);\n\n .hhg-modal__close {\n position: absolute;\n top: 16px;\n right: 16px;\n cursor: pointer;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n &[data-type='video'] {\n z-index: 1001;\n }\n &[data-open='true'] {\n visibility: visible;\n }\n\n &.slideTop {\n ."," {\n transform: translate(0, -100vh);\n transition: all 0.5s ease;\n }\n\n &[data-open='true'] {\n ."," {\n transform: translate(0);\n }\n }\n }\n\n &.scaleUp {\n ."," {\n transform: scale(0.9);\n }\n\n &[data-open='true'] {\n ."," {\n transition: all 0.3s ease-out;\n transform: scale(1);\n }\n }\n }\n\n &[data-type='tail'] {\n justify-content: flex-end;\n ."," {\n width: 420px;\n height: 100%;\n border-radius: 0;\n overflow: hidden auto;\n }\n }\n &[data-type='form'] {\n ."," {\n width: 496px;\n height: 548px;\n max-height: 100%;\n overflow-y: auto;\n "," {\n width: 340px;\n }\n }\n }\n &[data-type='video'] {\n ."," {\n height: 100%;\n max-height: 539px;\n "," {\n height: 192px;\n width: 100%;\n height: 100%;\n border-radius: 6px;\n max-height: 192px;\n }\n }\n }\n &[data-type='confirm'] {\n ."," {\n width: 100%;\n max-width: 407px;\n "," {\n width: calc(100% - 32px);\n max-width: calc(100% - 32px);\n }\n }\n }\n"],["\n position: fixed;\n top: 0;\n left: 0;\n z-index: 201;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n overflow-x: hidden;\n overflow-y: auto;\n outline: 0;\n visibility: hidden;\n background-color: rgba(38, 38, 38, 0.3);\n\n .hhg-modal__close {\n position: absolute;\n top: 16px;\n right: 16px;\n cursor: pointer;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n &[data-type='video'] {\n z-index: 1001;\n }\n &[data-open='true'] {\n visibility: visible;\n }\n\n &.slideTop {\n ."," {\n transform: translate(0, -100vh);\n transition: all 0.5s ease;\n }\n\n &[data-open='true'] {\n ."," {\n transform: translate(0);\n }\n }\n }\n\n &.scaleUp {\n ."," {\n transform: scale(0.9);\n }\n\n &[data-open='true'] {\n ."," {\n transition: all 0.3s ease-out;\n transform: scale(1);\n }\n }\n }\n\n &[data-type='tail'] {\n justify-content: flex-end;\n ."," {\n width: 420px;\n height: 100%;\n border-radius: 0;\n overflow: hidden auto;\n }\n }\n &[data-type='form'] {\n ."," {\n width: 496px;\n height: 548px;\n max-height: 100%;\n overflow-y: auto;\n "," {\n width: 340px;\n }\n }\n }\n &[data-type='video'] {\n ."," {\n height: 100%;\n max-height: 539px;\n "," {\n height: 192px;\n width: 100%;\n height: 100%;\n border-radius: 6px;\n max-height: 192px;\n }\n }\n }\n &[data-type='confirm'] {\n ."," {\n width: 100%;\n max-width: 407px;\n "," {\n width: calc(100% - 32px);\n max-width: calc(100% - 32px);\n }\n }\n }\n"])),T,T,T,T,T,T,o.MediaQueries.mbDown,T,o.MediaQueries.mbDown,T,o.MediaQueries.mbDown),P=G.default.div(g||(g=e.__makeTemplateObject(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n align-items: center;\n\n &[data-open='false'] {\n display: none;\n }\n &[data-type='video'] {\n background-color: ",";\n }\n"],["\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n align-items: center;\n\n &[data-open='false'] {\n display: none;\n }\n &[data-type='video'] {\n background-color: ",";\n }\n"])),(function(e){return e.theme.colors.secondaryDark})),q="hhg-modals",R=function(){document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&document.body.classList.remove("hhc-modal-show")},O=function(){document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&(document.body.style.overflow="",document.body.style.paddingRight="",document.body.classList.remove("hhc-disabled-scroll"))},N=function(e){var n=e.type,r=void 0===n?"lead":n,a=e.closeIcon,o=e.isOpen,i=void 0===o||o,l=e.onClose,s=e.children,c=e.className,d=void 0===c?"":c,f=e.animationType,p=void 0===f?"slideTop":f,m=e.isStaticBackdrop,y=void 0!==m&&m;e.style;var C=t.useState(!1),g=C[0],b=C[1],x=t.useRef(null),v=u.useScrollbarSize().width;if(!x.current&&g&&(x.current=document.createElement("div")),t.useEffect((function(){return b(!0),function(){b(!1),R(),O()}}),[]),t.useEffect((function(){if(g){var e=((t=document.getElementById(q))||((t=document.createElement("div")).setAttribute("id",q),document.body.append(t)),t);return e.appendChild(x.current),function(){e.removeChild(x.current)}}var t}),[g]),t.useEffect((function(){i?document.body.classList.add("hhc-modal-show"):R()}),[i]),t.useEffect((function(){i?(document.body.style.overflow="hidden",document.body.style.paddingRight=v+"px",document.body.classList.add("hhc-disabled-scroll")):O()}),[i,v]),!g)return null;var w=["hhg-modal__wrapper",d,p].filter((function(e){return e})).join(" ");return h.createPortal(_.default.createElement(A,{className:w,"data-open":i,"data-type":r},!y&&_.default.createElement(P,{"data-open":i,onClick:l,"data-type":r}),!y&&"video"===r&&!!a&&_.default.createElement("div",{className:"hhg-modal__close",onClick:l},a),_.default.createElement(I,{className:"hhg-modal","data-open":i},_.default.createElement("div",{className:"video"===r?"hhg-modal__video":"hhg-modal__content"},!!a&&"video"!==r&&_.default.createElement("div",{className:"hhg-modal__close",onClick:l},a),s))),x.current)},W=G.default.div(b||(b=e.__makeTemplateObject(["\n & > :not(:last-child) {\n margin-bottom: 8px;\n }\n\n .gender-selector {\n & > :not(:last-child) {\n margin-right: 16px;\n }\n\n & > div {\n width: calc(50% - 8px);\n\n "," {\n justify-self: left;\n }\n }\n }\n\n &[data-is-marryBaby='false'] {\n .gender-selector {\n & > :not(:last-child) {\n margin-right: 16px;\n }\n\n & > div {\n width: calc(50% - 8px);\n\n "," {\n justify-self: left;\n max-width: 186px;\n }\n }\n }\n }\n"],["\n & > :not(:last-child) {\n margin-bottom: 8px;\n }\n\n .gender-selector {\n & > :not(:last-child) {\n margin-right: 16px;\n }\n\n & > div {\n width: calc(50% - 8px);\n\n "," {\n justify-self: left;\n }\n }\n }\n\n &[data-is-marryBaby='false'] {\n .gender-selector {\n & > :not(:last-child) {\n margin-right: 16px;\n }\n\n & > div {\n width: calc(50% - 8px);\n\n "," {\n justify-self: left;\n max-width: 186px;\n }\n }\n }\n }\n"])),o.MediaQueries.mbUp,o.MediaQueries.mbUp),Z=G.default(D)(x||(x=e.__makeTemplateObject(["\n & > div > div {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-content: center;\n gap: 8px;\n padding-block: 5px;\n }\n .radio-group-item-heading {\n margin-top: 0;\n }\n"],["\n & > div > div {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-content: center;\n gap: 8px;\n padding-block: 5px;\n }\n .radio-group-item-heading {\n margin-top: 0;\n }\n"]))),Y=G.default.div(v||(v=e.__makeTemplateObject(["\n display: flex;\n justify-content: center;\n gap: 16px;\n"],["\n display: flex;\n justify-content: center;\n gap: 16px;\n"]))),F=G.default.div(w||(w=e.__makeTemplateObject(["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 6px;\n .dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n }\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 6px;\n .dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n }\n"]))),V=G.default.div(E||(E=e.__makeTemplateObject(["\n display: flex;\n justify-content: center;\n .switch {\n border: 1px solid ",";\n padding: 6px 12px;\n font-weight: 600;\n font-size: 11px;\n &:nth-child(2n + 1) {\n border-radius: 6px 0px 0px 6px;\n border-right: none;\n }\n &:nth-child(2n) {\n border-radius: 0px 6px 6px 0px;\n border-left: none;\n }\n }\n"],["\n display: flex;\n justify-content: center;\n .switch {\n border: 1px solid ",";\n padding: 6px 12px;\n font-weight: 600;\n font-size: 11px;\n &:nth-child(2n + 1) {\n border-radius: 6px 0px 0px 6px;\n border-right: none;\n }\n &:nth-child(2n) {\n border-radius: 0px 6px 6px 0px;\n border-left: none;\n }\n }\n"])),l.theme.colors.neutral200);exports.BabyGrowthSwitchChart=void 0,(B=exports.BabyGrowthSwitchChart||(exports.BabyGrowthSwitchChart={}))[B.WHO=0]="WHO",B[B.CDC=1]="CDC";var U,Q,K,X,$,J,ee,te,ne,re,ae,oe,ie,le,se,ce,de,ue,he,fe,pe,me,ye,Ce,ge,be,xe,ve,we,Ee,Be,_e=G.default.div(U||(U=e.__makeTemplateObject(["\n /* position: absolute; */\n display: flex;\n align-items: stretch;\n justify-content: space-around;\n padding: 8px;\n gap: 14px;\n\n min-width: 145px;\n max-width: 220px;\n min-height: 50px;\n border-radius: 4px;\n background: rgba(255, 255, 255, 0.2);\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n backdrop-filter: blur(5px);\n -webkit-backdrop-filter: blur(5px);\n border: 1px solid rgba(255, 255, 255, 0.3);\n .risk {\n display: flex;\n align-items: center;\n padding: 4px 8px;\n background: ",";\n border-radius: 3px;\n }\n .tooltip {\n text-align: left;\n }\n"],["\n /* position: absolute; */\n display: flex;\n align-items: stretch;\n justify-content: space-around;\n padding: 8px;\n gap: 14px;\n\n min-width: 145px;\n max-width: 220px;\n min-height: 50px;\n border-radius: 4px;\n background: rgba(255, 255, 255, 0.2);\n box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);\n backdrop-filter: blur(5px);\n -webkit-backdrop-filter: blur(5px);\n border: 1px solid rgba(255, 255, 255, 0.3);\n .risk {\n display: flex;\n align-items: center;\n padding: 4px 8px;\n background: ",";\n border-radius: 3px;\n }\n .tooltip {\n text-align: left;\n }\n"])),l.theme.colors.yellow600),Ge=[{name:["3rd","-3SD","97th","3SD"],color:l.theme.colors.red600},{name:["15rd","-2SD","85th","2SD"],color:l.theme.colors.yellow600},{name:["50th","0Median"],color:l.theme.colors.green600}],ke={"3rd":"-3SD","15th":"-2SD","50th":"Median","85th":"2SD","97th":"3SD"},Me=function(e){var r,o=e.payload,i=e.locale,s=e.active,c=null===(r=null==o?void 0:o[0])||void 0===r?void 0:r.payload;if(!(c&&c.history&&c.name&&c.risk&&c.toolTipLabel&&s))return null;var d=t.useMemo((function(){var e;return null===(e=Ge.find((function(e){return e.name.includes(c.risk||"")})))||void 0===e?void 0:e.color}),[c.risk]),u=t.useMemo((function(){return i===a.LOCALE.Indonesia?c.risk?ke[c.risk]:"":c.risk}),[i,c.risk]);return _.default.createElement(_e,null,_.default.createElement("div",{className:"risk",style:{backgroundColor:d}},_.default.createElement(n.Text,{size:"s3",color:l.theme.colors.white,type:"semiBold"},u)),_.default.createElement("div",{className:"tooltip"},(c.toolTipLabel||[]).map((function(e,t){return _.default.createElement(n.Text,{key:t,size:"n1",color:l.theme.colors.gray600},e)}))))},He="300ms",Se=G.default.div(Q||(Q=e.__makeTemplateObject(["\n background: ",";\n border-radius: 6px;\n padding: 16px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n .baby {\n display: flex;\n align-items: center;\n gap: 8px;\n svg {\n min-width: 24px;\n }\n }\n .radio {\n cursor: pointer;\n position: relative;\n min-width: 22px;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 2px solid ",";\n border-radius: 50%;\n transition: all "," ease-in-out;\n &.active {\n border-color: ",";\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n background-clip: content-box;\n padding: 5px;\n border-radius: 50%;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n"],["\n background: ",";\n border-radius: 6px;\n padding: 16px 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n .baby {\n display: flex;\n align-items: center;\n gap: 8px;\n svg {\n min-width: 24px;\n }\n }\n .radio {\n cursor: pointer;\n position: relative;\n min-width: 22px;\n width: 22px;\n height: 22px;\n background: #ffffff;\n border: 2px solid ",";\n border-radius: 50%;\n transition: all "," ease-in-out;\n &.active {\n border-color: ",";\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n background-clip: content-box;\n padding: 5px;\n border-radius: 50%;\n animation: "," "," ease-in-out forwards;\n }\n }\n }\n"])),l.theme.colors.gray50,l.theme.colors.gray600,He,l.theme.colors.primaryBase,l.theme.colors.primaryBase,o.fadeIn,He),ze=function(e){var t=e.profile,r=e.onChange,a=e.isActive;return _.default.createElement(Se,{onClick:function(){return r(t.id)}},_.default.createElement("div",{className:"baby"},"male"===t.gender?_.default.createElement(k.Boy,{size:24}):_.default.createElement(k.Girl,{size:24}),_.default.createElement(n.Text,{size:"p2",color:l.theme.colors.gray800},t.name)),_.default.createElement("div",{className:a?"radio active":"radio"}))},De=G.default.div(K||(K=e.__makeTemplateObject(["\n /* Auto layout */\n position: relative;\n display: flex;\n align-items: flex-start;\n padding: 16px;\n gap: 16px;\n background: ",";\n border: 1px solid ",";\n border-radius: 6px;\n\n &[data-theme='marryBaby'] {\n border: 1px solid #f3f3f3;\n border-radius: 16px;\n }\n .information {\n display: flex;\n flex-direction: column;\n gap: 8px;\n h5:first-letter {\n text-transform: uppercase;\n }\n .detail {\n display: flex;\n gap: 16px;\n div {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n }\n }\n"],["\n /* Auto layout */\n position: relative;\n display: flex;\n align-items: flex-start;\n padding: 16px;\n gap: 16px;\n background: ",";\n border: 1px solid ",";\n border-radius: 6px;\n\n &[data-theme='marryBaby'] {\n border: 1px solid #f3f3f3;\n border-radius: 16px;\n }\n .information {\n display: flex;\n flex-direction: column;\n gap: 8px;\n h5:first-letter {\n text-transform: uppercase;\n }\n .detail {\n display: flex;\n gap: 16px;\n div {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n }\n }\n"])),l.theme.colors.white,l.theme.colors.gray100),je=G.default.div(X||(X=e.__makeTemplateObject(["\n position: absolute;\n top: 18px;\n right: 16px;\n cursor: pointer;\n"],["\n position: absolute;\n top: 18px;\n right: 16px;\n cursor: pointer;\n"]))),Le=G.default(n.Menu)($||($=e.__makeTemplateObject(["\n position: absolute;\n right: 0;\n z-index: 1;\n"],["\n position: absolute;\n right: 0;\n z-index: 1;\n"]))),Te=G.default.div(J||(J=e.__makeTemplateObject(["\n cursor: pointer;\n position: relative;\n padding: 20px 2px;\n border-bottom: 1px solid ",";\n .time {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 16px;\n }\n .edit-button {\n margin-left: auto;\n justify-self: end;\n }\n .record {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-template-rows: 1fr;\n grid-column-gap: 30px;\n grid-row-gap: 0px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"],["\n cursor: pointer;\n position: relative;\n padding: 20px 2px;\n border-bottom: 1px solid ",";\n .time {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 16px;\n }\n .edit-button {\n margin-left: auto;\n justify-self: end;\n }\n .record {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-template-rows: 1fr;\n grid-column-gap: 30px;\n grid-row-gap: 0px;\n }\n .record-item {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"])),l.theme.colors.gray100),Ie=G.default(H)(ee||(ee=e.__makeTemplateObject(["\n .add-profile-container {\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n .profile-container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n .button-group {\n display: flex;\n flex-direction: column;\n gap: 8px;\n button {\n width: 100%;\n }\n }\n"],["\n .add-profile-container {\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n .profile-container {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n .button-group {\n display: flex;\n flex-direction: column;\n gap: 8px;\n button {\n width: 100%;\n }\n }\n"]))),Ae=G.default(N)(te||(te=e.__makeTemplateObject(["\n .hhg-modal {\n min-width: 570px;\n }\n\n .title {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-bottom: 16px;\n border-bottom: 1px solid ",";\n }\n\n .close-button {\n margin-left: auto;\n }\n\n .profile-container {\n padding-block: 16px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n border-bottom: 1px solid ",";\n max-height: 300px;\n overflow-y: auto;\n }\n\n .button-group {\n display: flex;\n justify-content: flex-end;\n gap: 16px;\n margin-block: 16px;\n }\n"],["\n .hhg-modal {\n min-width: 570px;\n }\n\n .title {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-bottom: 16px;\n border-bottom: 1px solid ",";\n }\n\n .close-button {\n margin-left: auto;\n }\n\n .profile-container {\n padding-block: 16px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n border-bottom: 1px solid ",";\n max-height: 300px;\n overflow-y: auto;\n }\n\n .button-group {\n display: flex;\n justify-content: flex-end;\n gap: 16px;\n margin-block: 16px;\n }\n"])),l.theme.colors.neutral100,l.theme.colors.neutral100),Pe=((ne={})[a.Gender.Boy]=((re={})[a.BabyGrowthChartType.Weight]=((ae={})[a.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.weekly-8b301e27.js")}))},ae[a.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.monthly-9966bfb1.js")}))},ae[a.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.percentile.yearly-c10eda77.js")}))},ae),re[a.BabyGrowthChartType.Height]=((oe={})[a.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.weekly-71fb3532.js")}))},oe[a.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.monthly-e61c2896.js")}))},oe[a.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.percentile.yearly-5156c057.js")}))},oe),re[a.BabyGrowthChartType.Head]=((ie={})[a.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.weekly-923d3626.js")}))},ie[a.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.monthly-790479be.js")}))},ie[a.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.percentile.yearly-b5aaa103.js")}))},ie),re[a.BabyGrowthChartType.BMI]=((le={})[a.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.weekly-75bff607.js")}))},le[a.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.monthly-e1af0e66.js")}))},le[a.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.percentile.yearly-a1a3d0ef.js")}))},le),re),ne[a.Gender.Girl]=((se={})[a.BabyGrowthChartType.Weight]=((ce={})[a.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.weekly-63c6a2a3.js")}))},ce[a.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.monthly-822f3f97.js")}))},ce[a.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.percentile.yearly-8f44f763.js")}))},ce),se[a.BabyGrowthChartType.Height]=((de={})[a.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.weekly-b2628828.js")}))},de[a.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.monthly-a7bf2e5d.js")}))},de[a.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.percentile.yearly-e00c3ffd.js")}))},de),se[a.BabyGrowthChartType.Head]=((ue={})[a.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.weekly-0020f6e2.js")}))},ue[a.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.monthly-24290dfb.js")}))},ue[a.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.percentile.yearly-22dd615a.js")}))},ue),se[a.BabyGrowthChartType.BMI]=((he={})[a.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.weekly-aa3da5c1.js")}))},he[a.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.monthly-4c519db6.js")}))},he[a.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.percentile.yearly-8561e48e.js")}))},he),se),ne),qe=((fe={})[a.Gender.Boy]=((pe={})[a.BabyGrowthChartType.Weight]=((me={})[a.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.weekly-0b1faf98.js")}))},me[a.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.monthly-897fca0b.js")}))},me[a.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_BOYS.zscore.yearly-80018532.js")}))},me),pe[a.BabyGrowthChartType.Height]=((ye={})[a.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.weekly-70c18763.js")}))},ye[a.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.monthly-910c2bd0.js")}))},ye[a.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_BOYS.zscore.yearly-bd97678c.js")}))},ye),pe[a.BabyGrowthChartType.Head]=((Ce={})[a.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.weekly-f472daa8.js")}))},Ce[a.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.monthly-bc73088f.js")}))},Ce[a.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_BOYS.zscore.yearly-d7a7b9df.js")}))},Ce),pe[a.BabyGrowthChartType.BMI]=((ge={})[a.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.weekly-aba5d53b.js")}))},ge[a.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.monthly-a175df2d.js")}))},ge[a.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_BOYS.zscore.yearly-aafb7ce1.js")}))},ge),pe),fe[a.Gender.Girl]=((be={})[a.BabyGrowthChartType.Weight]=((xe={})[a.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.weekly-29d8f232.js")}))},xe[a.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.monthly-86b583c7.js")}))},xe[a.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./WEIGHT_GIRLS.zscore.yearly-07eeb8b5.js")}))},xe),be[a.BabyGrowthChartType.Height]=((ve={})[a.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.weekly-7ed52595.js")}))},ve[a.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.monthly-3542327e.js")}))},ve[a.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEIGHT_GIRLS.zscore.yearly-4bbd497c.js")}))},ve),be[a.BabyGrowthChartType.Head]=((we={})[a.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.weekly-a0fa670d.js")}))},we[a.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.monthly-96a0f069.js")}))},we[a.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./HEAD CIRCUM_GIRLS.zscore.yearly-02cf35f7.js")}))},we),be[a.BabyGrowthChartType.BMI]=((Ee={})[a.BabyGrowthChartDuration.Weekly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.weekly-56e2c916.js")}))},Ee[a.BabyGrowthChartDuration.Monthly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.monthly-849cbbe5.js")}))},Ee[a.BabyGrowthChartDuration.Yearly]=function(){return Promise.resolve().then((function(){return require("./BMI_GIRLS.zscore.yearly-eb9d49d1.js")}))},Ee),be),fe),Re=function(e,t,n,r){return r===a.LOCALE.Indonesia?qe[e][t][n]():Pe[e][t][n]()},Oe=function(e,t){var n=p.chunk(t,Math.ceil(t.length/2)),r=n[0],a=n[1],o=r.map((function(e){return e.name})),i=a.map((function(e){return e.name}));return o.includes(e)?{data:r,status:"first-half"}:i.includes(e)?{data:a,status:"second-half"}:{data:t,status:"full"}},Ne=function(t,n){return e.__spreadArray(e.__spreadArray([],t,!0),n.map((function(e){return{name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel}})),!0).sort((function(e,t){return e.name-t.name}))},We=function(t,n,r,a,o){return e.__spreadArray(e.__spreadArray([],t,!0),[{name:a,history:o,risk:n,toolTipLabel:r}],!1).sort((function(e,t){return e.name-t.name}))},Ze=function(e,t){void 0===t&&(t=0);var n=[],r=function(r){e[r].forEach((function(e,a){var o;n[a]?n[a][r]=e:n[a]=((o={name:a+t})[r]=e,o)}))};for(var a in e)r(a);return n},Ye=function(e,t){return void 0===t&&(t=0),Array.from({length:e-t+1},(function(e,n){return n+t}))},Fe=G.default.div(Be||(Be=e.__makeTemplateObject(["\n position: relative;\n .custom-chart-label {\n display: flex;\n width: 100%;\n justify-content: space-between;\n align-items: center;\n margin-top: 8px;\n }\n"],["\n position: relative;\n .custom-chart-label {\n display: flex;\n width: 100%;\n justify-content: space-between;\n align-items: center;\n margin-top: 8px;\n }\n"]))),Ve=[{name:"-3SD",label:"-3",color:l.theme.colors.red600},{name:"-2SD",label:"-2",color:l.theme.colors.yellow600},{name:"0Median",label:"0",color:l.theme.colors.green600},{name:"2SD",label:"2",color:l.theme.colors.yellow600},{name:"3SD",label:"3",color:l.theme.colors.red600},{name:"history",color:l.theme.colors.primaryBase}],Ue=[{name:"3rd",color:l.theme.colors.red600},{name:"15th",color:l.theme.colors.yellow600},{name:"50th",color:l.theme.colors.green600},{name:"85th",color:l.theme.colors.yellow600},{name:"97th",color:l.theme.colors.red600},{name:"history",color:l.theme.colors.primaryBase}],Qe=t.forwardRef((function(t,n){return _.default.createElement("circle",e.__assign({},t,{ref:n}),_.default.createElement("animate",{attributeName:"r",values:"4;8;4",dur:"2s",begin:"0s",repeatCount:"indefinite"}))})),Ke=function(e){var t=e.x,n=e.y,r=e.last,a=e.index,o=e.name;return r===a?_.default.createElement("text",{x:t,y:n,dx:16,fill:l.theme.colors.gray500,fontSize:12,textAnchor:"middle"},o):null};exports.BabyGrowthChart=function(o){var i=o.gender,s=o.type,c=o.duration,u=o.xLabel,h=o.x,p=o.y,m=o.toolTipLabel,y=void 0===m?[]:m,C=o.isDivide,g=void 0===C||C,b=o.onIsPrevious,x=o.locale,v=o.riskLevel,w=o.withLine,E=void 0!==w&&w,B=o.lineData,G=void 0===B?[]:B,k=t.useState([]),M=k[0],H=k[1],S=t.useRef([]),z=r.useTranslations().t;t.useEffect((function(){e.__awaiter(void 0,void 0,void 0,(function(){var t,n,r,o;return e.__generator(this,(function(l){switch(l.label){case 0:return[4,Re(i,s,c,x)];case 1:if(t=l.sent().default,n=c===a.BabyGrowthChartDuration.Weekly?0:1,r=Ze(t,n),Array.isArray(r)&&0===r.length)return null==b||b(),[2];o={data:r.map((function(t,n){return e.__assign(e.__assign({},t),{name:n})})),status:"full"};try{o=g?Oe(h||n,r):{data:r,status:"full"}}catch(e){}if(g)switch(o.status){case"first-half":S.current=Ye(o.data.length-1+n,n);break;case"second-half":S.current=Ye(t.length,o.data.length);break;default:S.current=Ye(r.length-1+n,n)}else S.current=Ye(r.length-1+n,n);return H(o.data),[2]}}))}))}),[i,s,c,x,b]);var D=t.useState(!1),j=D[0],L=D[1],T=t.useMemo((function(){return E&&Array.isArray(M)&&M.length>0?Ne(M,G):We(M,v,y,h,p)}),[E,G,M]),I=t.useRef(null);d.useOutsideClick(I,(function(){return L(!1)}));return _.default.createElement(Fe,null,_.default.createElement("div",{className:"custom-chart-label"},_.default.createElement(n.Text,{size:"n1",color:l.theme.colors.gray500},function(){switch(s){case a.BabyGrowthChartType.Weight:return z("babyGrowth.weight");case a.BabyGrowthChartType.Height:return z("babyGrowth.height");case a.BabyGrowthChartType.Head:return z("babyGrowth.headCircumference");case a.BabyGrowthChartType.BMI:return"BMI";default:return""}}()),_.default.createElement(n.Text,{size:"n1",color:l.theme.colors.gray500},x===a.LOCALE.Indonesia?"Z-Score":z("babyGrowth.percentiles"))),Array.isArray(T)&&T.length>0&&_.default.createElement(f.ResponsiveContainer,{height:388,className:"chart"},_.default.createElement(f.LineChart,{data:T,margin:{top:16,right:28,bottom:8,left:0}},_.default.createElement(f.CartesianGrid,{stroke:l.theme.colors.neutral100}),_.default.createElement(f.Tooltip,{trigger:"click",content:function(t){return _.default.createElement(Me,e.__assign({active:!E&&j&&void 0!==h&&void 0!==p,locale:x},t))}}),_.default.createElement(f.XAxis,{type:"number",scale:"linear",ticks:S.current,dataKey:"name",tickLine:!1,tickMargin:12,tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:l.theme.colors.gray800},domain:["dataMin","dataMax"],interval:"preserveStartEnd",tickCount:1,tickFormatter:function(e){return String(Math.round(100*(e+Number.EPSILON))/100)},allowDecimals:!0}),_.default.createElement(f.YAxis,{domain:[function(e){return Math.min(e,p||e)},function(e){return Math.max(e,p||e)}],tickLine:!1,tickMargin:7,width:45,tickCount:10,allowDecimals:!0,tickFormatter:function(e){return String(Math.round(100*(e+Number.EPSILON))/100)},tick:{fontFamily:"Inter",fontWeight:400,fontSize:12,color:l.theme.colors.gray800}}),(x===a.LOCALE.Indonesia?Ve:Ue).map((function(e,t){return _.default.createElement(_.default.Fragment,null,"history"===e.name?_.default.createElement(f.Line,{key:t,connectNulls:!0,type:"linear",dataKey:"history",stroke:e.color,strokeWidth:2,dot:{stroke:e.color,fill:e.color,strokeWidth:1,r:4,strokeDasharray:""},activeDot:!0,color:e.color}):_.default.createElement(f.Line,{key:e.name,type:"linear",dataKey:e.name,stroke:e.color,dot:!1,activeDot:!1,connectNulls:!0,label:_.default.createElement(Ke,{last:(null==T?void 0:T.length)?T.length-1:0,name:(null==e?void 0:e.label)||e.name}),tooltipType:"none"}))})),void 0!==h&&void 0!==p&&_.default.createElement(f.ReferenceDot,{onClick:function(){return L(!0)},x:0===h?1:h,y:p,r:4,shape:_.default.createElement(Qe,{ref:I,r:4}),fill:l.theme.colors.primaryBase,stroke:l.theme.colors.primaryBase}))),_.default.createElement("div",{className:"custom-chart-label"},_.default.createElement("i",null),_.default.createElement(n.Text,{size:"n1",color:l.theme.colors.gray500},u)))},exports.BabyGrowthChartPercentile=Pe,exports.BabyGrowthChartZScore=qe,exports.BabyGrowthChooseProfileDrawer=function(a){var o,i,l=a.babyProfiles,c=a.currentProfileId,d=a.onClose,u=a.onCreate,h=a.onAddMeasurement,f=a.onSwitchProfile,p=a.open,m=a.isMobile,y=a.isMyProfile,C=void 0!==y&&y,g=a.buttonGroup,b=a.newBabyValue,x=a.onNewBabyValueChange,v=e.__rest(a,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange"]),w=function(e){return C?_.default.createElement(_.default.Fragment,null,_.default.createElement(s.Button,{onClick:function(){null==u||u(),d()},size:"lg",color:"secondary",icon:_.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_.default.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},k("babyGrowth.drawer.createBaby")),_.default.createElement(s.Button,{size:"lg",color:"primary",onClick:function(){null==e||e(),C?null==f||f(B):null==h||h(B),d()}},k(C?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):_.default.createElement(s.Button,{size:"lg",color:"primary",onClick:function(){null==h||h(B),null==e||e(),d()}},k("chooseBaby.button"))},E=t.useState(c||(null===(o=l[0])||void 0===o?void 0:o.id)),B=E[0],G=E[1],k=r.useTranslations().t;return m?_.default.createElement(Ie,e.__assign({title:"Baby profiles",onClose:d,open:p,placement:"bottom"},v),(function(e){var t,n=e.internalClose;return _.default.createElement("div",{className:"add-profile-container"},_.default.createElement("div",{className:"profile-container"},null===(t=l||[])||void 0===t?void 0:t.map((function(e){return _.default.createElement(ze,{key:e.id,profile:e,isActive:B===e.id,onChange:G})})),!C&&_.default.createElement(j,{value:b,onInputChange:x,isActive:"new"===B,onChange:G})),_.default.createElement("div",{className:"button-group"},g||w(n)))})):_.default.createElement(Ae,{type:"confirm",isOpen:p,onClose:d},_.default.createElement("div",{className:"header"},_.default.createElement("div",{className:"title"},_.default.createElement(n.Text,{size:"s2",type:"semiBold"},k("chooseBaby.title")),_.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:d},_.default.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),_.default.createElement("div",{className:"profile-container"},null===(i=l||[])||void 0===i?void 0:i.map((function(e){return _.default.createElement(ze,{key:e.id,profile:e,isActive:B===e.id,onChange:G})})),!C&&_.default.createElement(j,{value:b,onInputChange:x,isActive:"new"===B,onChange:G})),_.default.createElement("div",{className:"button-group"},g||w()))},exports.BabyGrowthGender=function(e){var t=e.value,o=e.onChange,i=e.siteType,s=r.useTranslations().t,c="marryBaby"==i;return _.default.createElement(W,{"data-is-marryBaby":c},c?_.default.createElement(S,{type:"h4",color:l.theme.mbColors.dark},s("babyVaccineTool.selectGender")):_.default.createElement(n.Text,{size:"label2",type:"bold",style:{marginBottom:"0.5rem"}},s("babyVaccineTool.selectGender")),_.default.createElement(Z,{siteType:i,options:[{value:a.Gender.Girl,label:s("gender.female"),content:c?_.default.createElement(k.BabyGirlMB,null):_.default.createElement(k.GenderChooseGirl,null)},{value:a.Gender.Boy,label:s("gender.male"),content:c?_.default.createElement(k.BabyBoyMB,null):_.default.createElement(k.GenderChooseBoy,null)}],value:t,onChange:o,className:"gender-selector"}))},exports.BabyGrowthProfileRadio=ze,exports.BabyGrowthSwitch=function(e){var t=e.switchType,n=e.onTypeChange;return _.default.createElement(V,null,_.default.createElement(s.Button,{className:"switch",size:"sm",color:t===exports.BabyGrowthSwitchChart.WHO?"primary":"ghost",onClick:function(){return n(exports.BabyGrowthSwitchChart.WHO)}},"WHO"),_.default.createElement(s.Button,{className:"switch",size:"sm",isDisabled:!0,color:t===exports.BabyGrowthSwitchChart.CDC?"primary":"ghost",onClick:function(){return n(exports.BabyGrowthSwitchChart.CDC)}},"CDC"))},exports.BabyGrowthTooltip=Me,exports.Drawer=H,exports.Heading=function(t){var r,a=t.as,o=t.tag,i=t.className,l=t.children,s=t.title,c=t.color,d=t.style,u=t.fontWeight,h=t.dataEventCategory,f=t.dataEventAction,p=t.dataEventLabel,m=e.__rest(t,["as","tag","className","children","title","color","style","fontWeight","dataEventCategory","dataEventAction","dataEventLabel"]),y=a||o;return _.default.createElement(n.StyledHeading,e.__assign({title:s,style:e.__assign(e.__assign({},c?(r={},r["--custom-heading-color"]=c,r):void 0),d),"data-tag":o,"data-font-weight":u||void 0,"data-event-category":h,"data-event-action":f,"data-event-label":p,as:y,className:i,headingFontWeight:u,headingTag:o},m),l)},exports.Icon=k,exports.LABELS_PERCENTILE=Ue,exports.LABELS_Z_SCORE=Ve,exports.MarryBabyText=z,exports.Modal=N,exports.NewBabyProfileRadio=j,exports.RadioImageGroup=D,exports.StyledBabyGrowthLegend=Y,exports.StyledBabyGrowthRecord=Te,exports.StyledChildCard=De,exports.StyledChildCardMenu=Le,exports.StyledLegend=F,exports.StyledOption=je,exports.divideChartData=Oe,exports.generateGrowthChart=Re,exports.generateXAxisTicks=Ye,exports.getAxisYDomain=function(e,t,n,r,a){var o=e.slice(t-1,n),i=[o[0][r],o[0][r]],l=i[0],s=i[1];return o.forEach((function(e){e[r]>s&&(s=e[r]),e[r]<l&&(l=e[r])})),[(0|l)-a,(0|s)+a]},exports.paintAxis=function(){var e,t=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(t),t)for(var n=t.getElementsByTagName("line"),r=0;r<n.length;r++){if(r%2!=0){var a=n[r],o=n[r+1],i=a.getAttribute("x1"),s=a.getAttribute("y"),c=a.getAttribute("height"),d=a.getAttribute("x1"),u=o.getAttribute("x1");console.log({oddLine:a,nextLine:o});var h=document.createElementNS("http://www.w3.org/1999/xhtml","rect");h.setAttribute("stroke",l.theme.colors.blue50),h.setAttribute("fill",l.theme.colors.blue50),h.setAttribute("x",i),h.setAttribute("y",s),h.setAttribute("height",c),h.setAttribute("width",String(Number(u)-Number(d))),t.appendChild(a),t.appendChild(h)}else t.appendChild(n[r]);console.log(t)}},exports.refineDataWithDot=We,exports.refineDataWithLine=Ne,exports.transformDataToChart=Ze;
@@ -1 +1 @@
1
- "use strict";var t=require("./tslib.es6-e6f346c4.js"),a=require("react"),e=require("./index.styled-27ff3b4a.js");function d(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=d(a);exports.Button=function(a){var d=a.size,o=a.color,n=void 0===o?"primary":o,i=a.theme,c=void 0===i?"helloSites":i,l=a.isDisabled,s=a.isBlock,u=a.title,C=a.className,p=a.onClick,v=a.icon,m=a.children,h=a.isLoading,y=void 0!==h&&h,f=a.loadingText,g=a.dataEventCategory,k=a.dataEventAction,P=a.dataEventLabel,E=a.dataProductChannel,S=a.dataProductSku,b=a.dataProductBrand,B=a.dataProductName,w=a.dataProductPrice,L=a.dataProductCategory,x=a.dataProductPosition,N=a.isAmp,A=a.on,T=a.dataVarsTracking,_=a.type,j=t.__rest(a,["size","color","theme","isDisabled","isBlock","title","className","onClick","icon","children","isLoading","loadingText","dataEventCategory","dataEventAction","dataEventLabel","dataProductChannel","dataProductSku","dataProductBrand","dataProductName","dataProductPrice","dataProductCategory","dataProductPosition","isAmp","on","dataVarsTracking","type"]),q=N?{"data-vars-event-category":g,"data-vars-event-action":k,"data-vars-event-label":P,"data-vars-product-channel":E,"data-vars-product-sku":S,"data-vars-product-brand":b,"data-vars-product-name":B,"data-vars-product-price":w,"data-vars-product-category":L,"data-vars-product-position":x,"data-vars-tracking":T,on:A}:{"data-event-category":g,"data-event-action":k,"data-event-label":P,"data-product-channel":E,"data-product-sku":S,"data-product-brand":b,"data-product-name":B,"data-product-price":w,"data-product-category":L,"data-product-position":x},z=r.default.createElement(e.StyledSpiner,null,r.default.createElement(e.StyledSpinerBase,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement(e.StyledSpinerCircle,{cx:"12",cy:"12",r:"10",stroke:"white",strokeWidth:"4"})),r.default.createElement(e.StyledLoader,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},r.default.createElement("mask",{id:"path-1-inside-1",fill:"white"},r.default.createElement("path",{d:"M12 0C14.464 2.93833e-08 16.8683 0.758527 18.8863 2.17253C20.9042 3.58653 22.438 5.58746 23.2791 7.90347C24.1203 10.2195 24.2281 12.7383 23.5879 15.1177C22.9477 17.4971 21.5906 19.6218 19.7009 21.2031C17.8111 22.7843 15.4804 23.7456 13.0254 23.9561C10.5704 24.1667 8.11007 23.6164 5.97869 22.38C3.8473 21.1436 2.14819 19.281 1.1122 17.0454C0.0761991 14.8097 -0.246461 12.3093 0.188053 9.8839L4.09856 10.5845C3.8079 12.2069 4.02374 13.8795 4.71676 15.375C5.40977 16.8705 6.54637 18.1165 7.97213 18.9435C9.39789 19.7706 11.0437 20.1387 12.6859 19.9979C14.3282 19.857 15.8873 19.214 17.1514 18.1563C18.4155 17.0985 19.3233 15.6772 19.7516 14.0856C20.1798 12.4939 20.1077 10.8089 19.545 9.25969C18.9823 7.71042 17.9563 6.37193 16.6065 5.42605C15.2566 4.48017 13.6483 3.97277 12 3.97277L12 0Z"})),r.default.createElement(e.StyledLoaderPath,{d:"M12 0C14.464 2.93833e-08 16.8683 0.758527 18.8863 2.17253C20.9042 3.58653 22.438 5.58746 23.2791 7.90347C24.1203 10.2195 24.2281 12.7383 23.5879 15.1177C22.9477 17.4971 21.5906 19.6218 19.7009 21.2031C17.8111 22.7843 15.4804 23.7456 13.0254 23.9561C10.5704 24.1667 8.11007 23.6164 5.97869 22.38C3.8473 21.1436 2.14819 19.281 1.1122 17.0454C0.0761991 14.8097 -0.246461 12.3093 0.188053 9.8839L4.09856 10.5845C3.8079 12.2069 4.02374 13.8795 4.71676 15.375C5.40977 16.8705 6.54637 18.1165 7.97213 18.9435C9.39789 19.7706 11.0437 20.1387 12.6859 19.9979C14.3282 19.857 15.8873 19.214 17.1514 18.1563C18.4155 17.0985 19.3233 15.6772 19.7516 14.0856C20.1798 12.4939 20.1077 10.8089 19.545 9.25969C18.9823 7.71042 17.9563 6.37193 16.6065 5.42605C15.2566 4.48017 13.6483 3.97277 12 3.97277L12 0Z",stroke:"#91CAFF",strokeWidth:"8",mask:"url(#path-1-inside-1)"})));return r.default.createElement(e.StyledButton,t.__assign({},q,{className:C,"data-size":d,"data-color":n,"data-block":s,"data-has-icon":!!v||void 0,"data-theme":c,disabled:l,onClick:function(t){!y&&!l&&p&&p(t)},title:u,"data-is-loading":y,type:_},j),r.default.createElement(e.StyledButtonInner,null,(v||y)&&r.default.createElement(e.StyledButtonIcon,{className:"button-icon"},y?z:v," "),m&&r.default.createElement(e.StyledButtonText,null,y&&f||m)))};
1
+ "use strict";var t=require("./tslib.es6-e6f346c4.js"),a=require("react"),e=require("./index.styled-213d989f.js");function d(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=d(a);exports.Button=function(a){var d=a.size,o=a.color,n=void 0===o?"primary":o,i=a.theme,c=void 0===i?"helloSites":i,l=a.isDisabled,s=a.isBlock,u=a.title,C=a.className,p=a.onClick,v=a.icon,m=a.children,h=a.isLoading,y=void 0!==h&&h,f=a.loadingText,g=a.dataEventCategory,k=a.dataEventAction,P=a.dataEventLabel,E=a.dataProductChannel,S=a.dataProductSku,b=a.dataProductBrand,B=a.dataProductName,w=a.dataProductPrice,L=a.dataProductCategory,x=a.dataProductPosition,N=a.isAmp,A=a.on,T=a.dataVarsTracking,_=a.type,j=t.__rest(a,["size","color","theme","isDisabled","isBlock","title","className","onClick","icon","children","isLoading","loadingText","dataEventCategory","dataEventAction","dataEventLabel","dataProductChannel","dataProductSku","dataProductBrand","dataProductName","dataProductPrice","dataProductCategory","dataProductPosition","isAmp","on","dataVarsTracking","type"]),q=N?{"data-vars-event-category":g,"data-vars-event-action":k,"data-vars-event-label":P,"data-vars-product-channel":E,"data-vars-product-sku":S,"data-vars-product-brand":b,"data-vars-product-name":B,"data-vars-product-price":w,"data-vars-product-category":L,"data-vars-product-position":x,"data-vars-tracking":T,on:A}:{"data-event-category":g,"data-event-action":k,"data-event-label":P,"data-product-channel":E,"data-product-sku":S,"data-product-brand":b,"data-product-name":B,"data-product-price":w,"data-product-category":L,"data-product-position":x},z=r.default.createElement(e.StyledSpiner,null,r.default.createElement(e.StyledSpinerBase,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement(e.StyledSpinerCircle,{cx:"12",cy:"12",r:"10",stroke:"white",strokeWidth:"4"})),r.default.createElement(e.StyledLoader,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},r.default.createElement("mask",{id:"path-1-inside-1",fill:"white"},r.default.createElement("path",{d:"M12 0C14.464 2.93833e-08 16.8683 0.758527 18.8863 2.17253C20.9042 3.58653 22.438 5.58746 23.2791 7.90347C24.1203 10.2195 24.2281 12.7383 23.5879 15.1177C22.9477 17.4971 21.5906 19.6218 19.7009 21.2031C17.8111 22.7843 15.4804 23.7456 13.0254 23.9561C10.5704 24.1667 8.11007 23.6164 5.97869 22.38C3.8473 21.1436 2.14819 19.281 1.1122 17.0454C0.0761991 14.8097 -0.246461 12.3093 0.188053 9.8839L4.09856 10.5845C3.8079 12.2069 4.02374 13.8795 4.71676 15.375C5.40977 16.8705 6.54637 18.1165 7.97213 18.9435C9.39789 19.7706 11.0437 20.1387 12.6859 19.9979C14.3282 19.857 15.8873 19.214 17.1514 18.1563C18.4155 17.0985 19.3233 15.6772 19.7516 14.0856C20.1798 12.4939 20.1077 10.8089 19.545 9.25969C18.9823 7.71042 17.9563 6.37193 16.6065 5.42605C15.2566 4.48017 13.6483 3.97277 12 3.97277L12 0Z"})),r.default.createElement(e.StyledLoaderPath,{d:"M12 0C14.464 2.93833e-08 16.8683 0.758527 18.8863 2.17253C20.9042 3.58653 22.438 5.58746 23.2791 7.90347C24.1203 10.2195 24.2281 12.7383 23.5879 15.1177C22.9477 17.4971 21.5906 19.6218 19.7009 21.2031C17.8111 22.7843 15.4804 23.7456 13.0254 23.9561C10.5704 24.1667 8.11007 23.6164 5.97869 22.38C3.8473 21.1436 2.14819 19.281 1.1122 17.0454C0.0761991 14.8097 -0.246461 12.3093 0.188053 9.8839L4.09856 10.5845C3.8079 12.2069 4.02374 13.8795 4.71676 15.375C5.40977 16.8705 6.54637 18.1165 7.97213 18.9435C9.39789 19.7706 11.0437 20.1387 12.6859 19.9979C14.3282 19.857 15.8873 19.214 17.1514 18.1563C18.4155 17.0985 19.3233 15.6772 19.7516 14.0856C20.1798 12.4939 20.1077 10.8089 19.545 9.25969C18.9823 7.71042 17.9563 6.37193 16.6065 5.42605C15.2566 4.48017 13.6483 3.97277 12 3.97277L12 0Z",stroke:"#91CAFF",strokeWidth:"8",mask:"url(#path-1-inside-1)"})));return r.default.createElement(e.StyledButton,t.__assign({},q,{className:C,"data-size":d,"data-color":n,"data-block":s,"data-has-icon":!!v||void 0,"data-theme":c,disabled:l,onClick:function(t){!y&&!l&&p&&p(t)},title:u,"data-is-loading":y,type:_},j),r.default.createElement(e.StyledButtonInner,null,(v||y)&&r.default.createElement(e.StyledButtonIcon,{className:"button-icon"},y?z:v," "),m&&r.default.createElement(e.StyledButtonText,null,y&&f||m)))};
@@ -0,0 +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-356306df.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-62048f19.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-0cab5713.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-62f5bf8f.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-5816aa6b.js"),t=require("./index-8e49874a.js"),a=require("./index-8b1987d5.js"),s=require("./index-47c276bb.js"),i=require("./index-65a8365f.js"),p=require("./index-3422cf26.js"),n=require("./index-432eb60f.js"),x=require("./index.styled-27ff3b4a.js"),u=require("./index-4f1436b1.js"),l=require("./useTranslations-62f5bf8f.js"),d=require("./useScrollbarSize-586f6706.js"),g=require("./useFbDataLayer-bf534f29.js"),c=require("./useHealthToolCache-ae750aac.js"),C=require("./translationsProvider-a3f205b1.js"),m=require("./translationsContext-0cab5713.js"),P=require("./types-fcbefc53.js"),b=require("./types-7b4a0dbd.js"),h=require("./constants-ca5ea110.js"),f=require("./localizeNumberFormat-d34a738e.js"),S=require("./screenSizeContext-8f86eb30.js"),T=require("./cookieHelper-612b90fa.js");require("react"),require("styled-components");var q=require("./theme-696d81a9.js"),v=require("./number-87b13133.js"),D=require("./getDynamicHealthTool-1d292d71.js"),y=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-6fd790c0.js"),require("@mantine/dates"),require("@mantine/hooks"),require("@mantine/carousel"),require("./useOutsideClick-528bfd6c.js"),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("slugify"),require("./core-97cd306c.js"),require("react-day-picker/DayPickerInput"),require("react-dom"),require("smoothscroll-polyfill"),require("./types-2b3bdf79.js"),require("@hookform/resolvers/yup"),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.AuthorLabelTextMapping=t.AuthorLabelTextMapping,exports.Avatar=t.Avatar,exports.CardAuthor=t.CardAuthor,exports.DefaultComponentGlobalContextData=t.DefaultComponentGlobalContextData,exports.Dropdown=t.Dropdown,Object.defineProperty(exports,"GlobalData",{enumerable:!0,get:function(){return t.GlobalData}}),exports.Loading=t.Loading,exports.Popup=t.Popup,exports.PopupDoctor=t.PopupDoctor,exports.PopupExpert=t.PopupExpert,exports.PopupHospital=t.PopupHospital,exports.TogetherComponentGlobalContext=t.TogetherComponentGlobalContext,exports.TogetherComponentGlobalContextProvider=t.TogetherComponentGlobalContextProvider,exports.TogetherConstants=t.constants,exports.TogetherDataTransforms=t.dataTransform,exports.UserAvatar=t.UserAvatar,exports.Button=a.Button,exports.Divider=s.Divider,exports.DatePicker=i.DatePicker,exports.DoctorInfo=i.DoctorInfo,exports.Flag=i.Flag,exports.LanguageSwitcher=i.LanguageSwitcher,exports.Logo=i.Logo,exports.MobileBottomNavigation=i.MobileBottomNavigation,exports.MobileBottomNavigationIcon=i.MobileBottomNavigationIcon,exports.NavigationLogoutPopup=i.NavigationLogoutPopup,exports.NavigationProfileButton=i.NavigationProfileButton,exports.NavigationV2=i.NavigationV2,exports.ProfilePopup=i.ProfilePopup,exports.Radio=i.Radio,exports.RadioGroup=i.RadioGroup,exports.ScrollList=i.ScrollList,exports.Slider=i.Slider,exports.SurveyQuestionCard=i.SurveyQuestionCard,exports.ToolsBannerCard=i.ToolsBannerCard,exports.UserProfileNavigation=i.UserProfileNavigation,exports.UserProfileNavigationHeader=i.NavHeader,exports.UserProfileNavigationStats=i.UserStats,exports.getNavMenuContent=i.getNavMenuContent,exports.getNavMenuContentWithCache=i.getNavMenuContentWithCache,exports.Heading=p.Heading,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.Drawer=u.Drawer,exports.Icon=u.Icon,exports.Modal=u.Modal,exports.NewBabyProfileRadio=u.NewBabyProfileRadio,exports.RadioImageGroup=u.RadioImageGroup,exports.useTranslations=l.useTranslations,exports.MEASURE_ELEMENT_CLASS=d.MEASURE_ELEMENT_CLASS,exports.useScrollbarSize=d.useScrollbarSize,exports.useFbDataLayer=g.useFbDataLayer,exports.useHealthToolsCache=c.useHealthToolsCache,exports.TranslationsProvider=C.TranslationsProvider,exports.translationsMap=C.translationsMap,exports.TranslationsContext=m.TranslationsContext,exports.defaultTranslations=m.defaultTranslations,exports.CardLink=P.CardLink,exports.CardPost=P.CardPost,exports.CardPostPopoverMore=P.CardPostPopoverMore,exports.CardReactions=P.CardReactions,exports.CardReply=P.CardReply,exports.CardReplyPopover=P.CardReplyPopover,exports.CreateNewPostContent=P.CreateNewPostContent,exports.CreatePostDescription=P.CreatePostDescription,exports.CreatePostTitle=P.CreatePostTitle,exports.ImagePreviewPopup=P.ImagePreviewPopup,exports.InputCommentBar=P.InputCommentBar,exports.LabelPin=P.LabelPin,exports.LabelSortPin=P.LabelSortPin,exports.LabelSorting=P.LabelSorting,exports.PopoverMenu=P.PopoverMenu,exports.PopupDanger=P.PopupDanger,exports.PopupFrame=P.PopupFrame,exports.PostContent=P.PostContent,exports.PostImagePreview=P.PostImagePreview,exports.PostSingleImageViewPopup=P.PostSingleImageViewPopup,exports.ShareBox=P.ShareBox,exports.SharePopup=P.SharePopup,exports.SocialLinkPreview=P.SocialLinkPreview,exports.SubmitReportForm=P.SubmitReportForm,exports.TagTopic=P.TagTopic,exports.TogetherAuthConfigContext=P.TogetherAuthConfigContext,exports.TogetherAuthConfigContextProvider=P.TogetherAuthConfigContextProvider,exports.TogetherTypes=P.types,exports.TopicSelectList=P.TopicSelectList,exports.useTogetherAuthRequiredAction=P.useTogetherAuthRequiredAction,exports.BookingSearchBar=b.BookingSearchBar,exports.CareTypes=b.types,exports.CareConstants=h.constants,exports.ageGenerate=f.ageGenerate,exports.convertLocalizedStringToNumber=f.convertLocalizedStringToNumber,exports.localizeNumberFormat=f.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=q.theme,exports.abbreviateNumber=v.abbreviateNumber,exports.formatHealthTool=D.formatHealthTool,exports.getCareApiDomain=D.getCareApiDomain,exports.getCurrentBaseUrl=D.getCurrentBaseUrl,exports.getCurrentSsoUrl=D.getCurrentSsoUrl,exports.getDiscoverApiDomain=D.getDiscoverApiDomain,exports.getDynamicHealthTool=D.getDynamicHealthTool,exports.getDynamicHealthToolWithCache=D.getDynamicHealthToolWithCache,exports.getTogetherApiDomain=D.getTogetherApiDomain,exports.getSocialList=y.getSocialList;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-57503957.js"),r=require("./index-d28c27ca.js"),o=require("./index-0ae67c7d.js"),t=require("./index.styled-356306df.js"),a=require("./index-740c6f7b.js"),s=require("./index-27945654.js"),i=require("./index-fcf59317.js"),p=require("./index-62048f19.js"),n=require("./useOutsideClick-9a358ff5.js"),x=require("./index.styled-213d989f.js"),u=require("./useTranslations-62f5bf8f.js"),l=require("./useScrollbarSize-586f6706.js"),d=require("./useFbDataLayer-bf534f29.js"),g=require("./useHealthToolCache-ae750aac.js"),c=require("./translationsProvider-a3f205b1.js"),C=require("./translationsContext-0cab5713.js"),m=require("./types-f52d9375.js"),P=require("./types-6873704a.js"),b=require("./constants-ca5ea110.js"),h=require("./localizeNumberFormat-d34a738e.js"),f=require("./screenSizeContext-8f86eb30.js"),S=require("./cookieHelper-612b90fa.js");require("react"),require("styled-components");var T=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=f.Breakpoints,exports.MediaQueries=f.MediaQueries,exports.ScreenSizeContext=f.ScreenSizeContext,exports.ScreenSizeContextProvider=f.ScreenSizeContextProvider,exports.fadeIn=f.fadeIn,exports.formatUrlWithPageParam=f.formatUrlWithPageParam,exports.getBoundariesFromMediaQueryKey=f.getBoundariesFromMediaQueryKey,exports.getPopupWrapperDom=f.getPopupWrapperDom,exports.getWindowSizeGroups=f.getWindowSizeGroups,Object.defineProperty(exports,"lazyLoadInstance",{enumerable:!0,get:function(){return f.lazyLoadInstance}}),exports.makeParams=f.makeParams,exports.safeEncodeURI=f.safeEncodeURI,exports.slideInDown=f.slideInDown,exports.slideInLeft=f.slideInLeft,exports.slideInRight=f.slideInRight,exports.slideInUp=f.slideInUp,exports.slideOutDown=f.slideOutDown,exports.slideOutLeft=f.slideOutLeft,exports.slideOutRight=f.slideOutRight,exports.slideOutUp=f.slideOutUp,exports.startCase=f.startCase,exports.toggleNoScroll=f.toggleNoScroll,exports.deleteCookie=S.deleteCookie,exports.getCookie=S.getCookie,exports.setCookie=S.setCookie,exports.theme=T.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;