@hhgtech/hhg-components 1.21.80 → 1.21.82

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 (159) hide show
  1. package/build/FullScreen-8225ba88.js +1 -0
  2. package/build/animation-197e5762.js +1 -0
  3. package/build/babyGrowth.js +1 -1
  4. package/build/care/components/organisms/bookingSearchBar/index.styled.d.ts +1 -1
  5. package/build/care/components/organisms/bookingSearchBar/resultSection/index.styled.d.ts +1 -1
  6. package/build/care/components/organisms/bookingSearchBar/searchInputs/index.d.ts +1 -1
  7. package/build/care.js +1 -1
  8. package/build/components/atoms/babyGrowthRecord/index.d.ts +1 -1
  9. package/build/components/atoms/logo/index.d.ts +1 -3
  10. package/build/components/atoms/logo/logoIcon.d.ts +8 -0
  11. package/build/components/molecules/babyGrowthChooseProfileDrawer/index.d.ts +1 -1
  12. package/build/components/molecules/babyGrowthChooseProfileDrawer/index.styled.d.ts +1 -1
  13. package/build/components/molecules/babyGrowthForm/index.d.ts +1 -1
  14. package/build/components/molecules/bmiForm/index.d.ts +1 -1
  15. package/build/components/molecules/bmiForm/index.styled.d.ts +2 -2
  16. package/build/components/molecules/bmrForm/index.d.ts +1 -1
  17. package/build/components/molecules/bmrForm/index.styled.d.ts +2 -2
  18. package/build/components/molecules/breadcrumbs/index.d.ts +1 -1
  19. package/build/components/molecules/childCard/index.d.ts +1 -1
  20. package/build/components/molecules/childCard/index.styled.d.ts +1 -1
  21. package/build/components/molecules/embeddedHeathToolCards/baby-growth/index.d.ts +1 -1
  22. package/build/components/molecules/embeddedHeathToolCards/baby-growth/index.styled.d.ts +1 -1
  23. package/build/components/molecules/embeddedHeathToolCards/baby-poop/index.d.ts +2 -2
  24. package/build/components/molecules/embeddedHeathToolCards/bmi/bmi.d.ts +1 -1
  25. package/build/components/molecules/embeddedHeathToolCards/bmr/bmr.d.ts +2 -2
  26. package/build/components/molecules/embeddedHeathToolCards/due-date/dueDate.d.ts +1 -1
  27. package/build/components/molecules/embeddedHeathToolCards/pwg/pwg.d.ts +1 -1
  28. package/build/components/molecules/embeddedHeathToolCards/target-heart-rate/index.d.ts +2 -2
  29. package/build/components/molecules/pillCarousel/index.styled.d.ts +1 -1
  30. package/build/components/molecules/radioImageGroupForTool/index.d.ts +1 -1
  31. package/build/components/molecules/shareContainer/index.d.ts +1 -1
  32. package/build/components/molecules/shareDrawer/index.d.ts +2 -2
  33. package/build/components/molecules/shareDrawer/index.styled.d.ts +1 -1
  34. package/build/components/molecules/sidemenu/menuLink.d.ts +1 -1
  35. package/build/components/molecules/tabs/index.d.ts +1 -1
  36. package/build/components/molecules/thrForm/index.d.ts +2 -2
  37. package/build/components/molecules/thrForm/index.styled.d.ts +2 -2
  38. package/build/components/organisms/babyGrowthChart/index.d.ts +1 -1
  39. package/build/components/organisms/pregnancyWeightGainChart/chartConfig.d.ts +2 -2
  40. package/build/components/organisms/pregnancyWeightGainChart/components/chart.d.ts +1 -1
  41. package/build/components/organisms/pregnancyWeightGainChart/index.d.ts +2 -2
  42. package/build/components/organisms/userProfileNavigation/navHeader/index.styled.d.ts +1 -1
  43. package/build/components.js +1 -1
  44. package/build/dataTransform-19b2a04e.js +1 -0
  45. package/build/defaultClassWrapper-68462614.js +1 -0
  46. package/build/esm/FullScreen-7153b23e.js +1 -0
  47. package/build/esm/animation-1f84197a.js +1 -0
  48. package/build/esm/babyGrowth.js +1 -1
  49. package/build/esm/cache.js +1 -1
  50. package/build/esm/care.js +1 -1
  51. package/build/esm/components.js +1 -1
  52. package/build/esm/core-341c626a.js +1 -0
  53. package/build/esm/dataTransform-bd799f5a.js +1 -0
  54. package/build/esm/defaultClassWrapper-d19e31e4.js +1 -0
  55. package/build/esm/ecom.js +1 -1
  56. package/build/esm/gAssets.js +1 -1
  57. package/build/esm/getDynamicHealthTool-896e1eee.js +1 -0
  58. package/build/esm/{getSocialList-e91ed860.js → getSocialList-8f93036b.js} +0 -0
  59. package/build/esm/hooks.js +1 -1
  60. package/build/esm/i18n.js +1 -1
  61. package/build/esm/imgHHG.js +1 -1
  62. package/build/esm/index-03660d99.js +1 -0
  63. package/build/esm/index-0f2ac9f2.js +1 -0
  64. package/build/esm/index-182c57d1.js +1 -0
  65. package/build/esm/index-2058993e.js +1 -0
  66. package/build/esm/index-64080428.js +1 -0
  67. package/build/esm/index-6ebadd9f.js +1 -0
  68. package/build/esm/index-ab34085c.js +1 -0
  69. package/build/esm/index-d3a86a58.js +1 -0
  70. package/build/esm/index-db100bfe.js +1 -0
  71. package/build/esm/index-fac4e2c1.js +1 -0
  72. package/build/esm/index-fba7cd68.js +1 -0
  73. package/build/esm/index.js +1 -1
  74. package/build/esm/lazyLoad-59e8ff6d.js +1 -0
  75. package/build/esm/localizeNumberFormat-ec8c08da.js +1 -0
  76. package/build/esm/mantine.js +1 -1
  77. package/build/esm/misc.js +1 -1
  78. package/build/esm/navigation.js +1 -1
  79. package/build/esm/pwg.js +1 -1
  80. package/build/esm/routing-2d333f69.js +1 -0
  81. package/build/esm/together.js +1 -1
  82. package/build/esm/{translationsProvider-a3674511.js → translationsProvider-3b337b3a.js} +1 -1
  83. package/build/esm/{tslib.es6-dcf36680.js → tslib.es6-44f7e5ec.js} +1 -1
  84. package/build/esm/types-43617e4c.js +1 -0
  85. package/build/esm/types-6cfd04f0.js +1 -0
  86. package/build/esm/{useFbDataLayer-8dd0e5d1.js → useFbDataLayer-378a3308.js} +1 -1
  87. package/build/esm/useHealthToolCache-9718433c.js +1 -0
  88. package/build/esm/utils-11febb09.js +1 -0
  89. package/build/gAssets.js +1 -1
  90. package/build/getDynamicHealthTool-13ad1a92.js +1 -0
  91. package/build/{getSocialList-19da0f19.js → getSocialList-d9421b94.js} +0 -0
  92. package/build/hooks.js +1 -1
  93. package/build/index-0db09db1.js +1 -0
  94. package/build/index-0ecbbfbd.js +1 -0
  95. package/build/index-12476f9c.js +1 -0
  96. package/build/index-6193a08c.js +1 -0
  97. package/build/index-76dc603c.js +1 -0
  98. package/build/index-9a25c714.js +1 -0
  99. package/build/index-a8498b05.js +1 -0
  100. package/build/index-a8d5c663.js +1 -0
  101. package/build/index-d207a0eb.js +1 -0
  102. package/build/index-ebcffc91.js +1 -0
  103. package/build/index-f1d22aeb.js +1 -0
  104. package/build/index.js +1 -1
  105. package/build/lazyLoad-f5c59bb0.js +1 -0
  106. package/build/lead/constants.d.ts +67 -0
  107. package/build/lead/index.d.ts +0 -0
  108. package/build/lead/utils.d.ts +2 -0
  109. package/build/localizeNumberFormat-155e5aec.js +1 -0
  110. package/build/mantine.js +1 -1
  111. package/build/misc.js +1 -1
  112. package/build/navigation.js +1 -1
  113. package/build/pwg.js +1 -1
  114. package/build/routing-5f59e486.js +1 -0
  115. package/build/together/components/molecules/cardAuthor/index.d.ts +0 -3
  116. package/build/together/interfaces/constants.d.ts +1 -1
  117. package/build/together/utils/apiActions/post.d.ts +6 -6
  118. package/build/together.js +1 -1
  119. package/build/types-1f45f6c4.js +1 -0
  120. package/build/types-5fa20dcc.js +1 -0
  121. package/build/useHealthToolCache-8b136374.js +1 -0
  122. package/build/utils-df758048.js +1 -0
  123. package/package.json +1 -6
  124. package/build/dataTransform-a27830ef.js +0 -1
  125. package/build/esm/core-3b861395.js +0 -1
  126. package/build/esm/dataTransform-28541f72.js +0 -1
  127. package/build/esm/getDynamicHealthTool-831ea86d.js +0 -1
  128. package/build/esm/index-3fe43914.js +0 -1
  129. package/build/esm/index-4b288a12.js +0 -1
  130. package/build/esm/index-6384e385.js +0 -1
  131. package/build/esm/index-6d7998c5.js +0 -1
  132. package/build/esm/index-78201994.js +0 -1
  133. package/build/esm/index-a5270ed4.js +0 -1
  134. package/build/esm/index-ee06d201.js +0 -1
  135. package/build/esm/index.styled-af818600.js +0 -1
  136. package/build/esm/localizeNumberFormat-77c129ef.js +0 -1
  137. package/build/esm/screenSizeContext-1852eabc.js +0 -1
  138. package/build/esm/theme-21fb8984.js +0 -1
  139. package/build/esm/types-3562274d.js +0 -1
  140. package/build/esm/types-a0796acc.js +0 -1
  141. package/build/esm/useHealthToolCache-74a46d69.js +0 -1
  142. package/build/getDynamicHealthTool-1d292d71.js +0 -1
  143. package/build/index-19a49fb7.js +0 -1
  144. package/build/index-5ab44f4f.js +0 -1
  145. package/build/index-682c8edb.js +0 -1
  146. package/build/index-777c4a41.js +0 -1
  147. package/build/index-93461684.js +0 -1
  148. package/build/index-b17129e6.js +0 -1
  149. package/build/index-c09f72eb.js +0 -1
  150. package/build/index.styled-d30f5ec6.js +0 -1
  151. package/build/localizeNumberFormat-d34a738e.js +0 -1
  152. package/build/screenSizeContext-8f86eb30.js +0 -1
  153. package/build/theme-1a777375.js +0 -1
  154. package/build/together/components/molecules/cardAuthor/customMMLocale/formatDistance.d.ts +0 -3
  155. package/build/together/components/molecules/cardAuthor/customMMLocale/index.d.ts +0 -2
  156. package/build/together/components/molecules/cardAuthor/customMMLocale/types.d.ts +0 -10
  157. package/build/types-91346cfb.js +0 -1
  158. package/build/types-a23be232.js +0 -1
  159. package/build/useHealthToolCache-ae750aac.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";var n=require("./tslib.es6-e6f346c4.js"),a=require("react"),e=require("./theme-696d81a9.js"),t=require("styled-components");function o(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var r,d,i,l,s,c,h,m,p,g,b=o(a),u=o(t),f=t.keyframes(r||(r=n.__makeTemplateObject(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"],["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"]))),x=u.default.svg(d||(d=n.__makeTemplateObject([""],[""]))),k=u.default.circle(i||(i=n.__makeTemplateObject([""],[""]))),y=u.default.svg(l||(l=n.__makeTemplateObject(["\n animation: "," 1.2s linear infinite;\n"],["\n animation: "," 1.2s linear infinite;\n"])),f),v=u.default.path(s||(s=n.__makeTemplateObject([""],[""]))),C=u.default.span(c||(c=n.__makeTemplateObject(["\n position: relative;\n display: flex;\n align-items: center;\n\n svg + svg {\n position: absolute;\n left: 0;\n }\n"],["\n position: relative;\n display: flex;\n align-items: center;\n\n svg + svg {\n position: absolute;\n left: 0;\n }\n"]))),w=u.default.span(h||(h=n.__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n"]))),z=u.default.span(m||(m=n.__makeTemplateObject([""],[""]))),B=u.default.span(p||(p=n.__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n"]))),_=u.default.button(g||(g=n.__makeTemplateObject(["\n width: auto;\n border-radius: 6px;\n\n &[data-theme='marryBaby'] {\n border-radius: 16px;\n }\n cursor: pointer;\n font-weight: ",";\n transition: background-color 0.3s, border-color 0.3s;\n\n "," {\n display: flex;\n align-items: center;\n\n & + "," {\n margin-left: 8px;\n }\n }\n\n &[data-size='lg'] {\n padding: 12px 24px;\n font-size: 16px;\n line-height: 24px;\n\n "," {\n svg,\n img {\n max-height: 24px;\n }\n }\n }\n\n &[data-size='md'] {\n padding: 9px 24px;\n font-size: 14px;\n line-height: 22px;\n\n "," {\n svg,\n img {\n max-height: 22px;\n }\n }\n }\n\n &[data-size='sm'] {\n padding: 5px 24px;\n font-size: 14px;\n line-height: 22px;\n font-weight: ",";\n\n "," {\n svg,\n img {\n max-height: 22px;\n }\n }\n }\n\n &[data-color='primary'] {\n background-color: ",";\n border: 1px solid ",";\n color: ",";\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n }\n\n &[data-theme='marryBaby'] {\n border: solid 2px ",";\n background-color: ",";\n\n &[data-has-icon='true'] {\n &:hover[data-is-loading='false'] svg {\n path {\n fill: ",";\n }\n }\n }\n }\n\n &:hover:not(:disabled)[data-is-loading='false'] {\n background-color: ",";\n\n &[data-theme='marryBaby'] {\n border: solid 2px ",";\n background-color: ",";\n color: ",";\n }\n }\n\n &:not(:is([disabled], [data-is-loading='true'])):active {\n background-color: ",";\n }\n &[data-theme='marryBaby'] {\n &:not(:is([disabled], [data-is-loading='true'])):active {\n background-color: ",";\n }\n }\n\n &[data-is-loading='true'] {\n &[data-theme='marryBaby'] {\n "," {\n stroke: white;\n }\n\n "," {\n stroke: transparent;\n }\n }\n }\n }\n\n &[data-color='secondary'] {\n border: solid 2px ",";\n background-color: ",";\n color: ",";\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n\n &:hover[data-is-loading='false'] svg {\n path {\n fill: ",";\n }\n }\n }\n\n &[data-theme='marryBaby'] {\n border-color: ",";\n background-color: transparent;\n color: ",";\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n\n &:hover[data-is-loading='false'] svg {\n path {\n fill: ",";\n }\n }\n }\n }\n\n &[data-size='md'] {\n border-width: 1.5px;\n }\n\n &[data-size='sm'] {\n border-width: 1px;\n font-size: 13px;\n line-height: 20px;\n }\n\n &:hover[data-is-loading='false'] {\n border-color: ",";\n background-color: ",";\n color: ",";\n\n &[data-theme='marryBaby'] {\n border-color: ",";\n background-color: ",";\n }\n }\n\n &:not(:is([disabled], [data-is-loading='true'])):active {\n border-color: ",";\n background-color: ",";\n color: ",";\n }\n &[data-theme='marryBaby'] {\n &:not(:is([disabled], [data-is-loading='true'])):active {\n border-color: ",";\n background-color: ",";\n }\n }\n }\n\n &[data-color='tertiary'] {\n border: solid 2px ",";\n background-color: transparent;\n color: ",";\n\n &[data-size='md'] {\n border-width: 1.5px;\n font-weight: ",";\n }\n\n &[data-size='sm'] {\n font-size: 13px;\n line-height: 20px;\n border-width: 1px;\n }\n\n &:hover[data-is-loading='false'] {\n &[data-theme='marryBaby'] {\n color: ",";\n background-color: ",";\n }\n }\n\n &[data-theme='marryBaby'] {\n color: ",";\n border-color: ",";\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n\n &:hover[data-is-loading='false'] svg {\n path {\n fill: ",";\n }\n }\n }\n }\n\n &[data-is-loading='true'] {\n &[data-theme='marryBaby'] {\n "," {\n stroke: ",";\n }\n }\n }\n }\n\n &[data-color='ghost'] {\n border: 0;\n background-color: transparent;\n color: ",";\n\n &[data-size='sm'] {\n padding: 5px 12px;\n font-size: 12px;\n line-height: 18px;\n }\n\n &:disabled {\n border-color: 0;\n background-color: transparent;\n color: ",";\n cursor: not-allowed;\n }\n }\n\n &[data-color='transparent'] {\n border: none;\n background-color: transparent;\n\n &[data-size='lg'] {\n font-size: 16px;\n line-height: 24px;\n padding: 0;\n }\n\n &[data-size='md'] {\n font-size: 14px;\n line-height: 24px;\n padding: 0;\n }\n\n &[data-size='sm'] {\n font-size: 13px;\n line-height: 20px;\n padding: 0;\n }\n }\n\n &[data-color='danger'] {\n border: solid 2px ",";\n background-color: ",";\n color: ",";\n\n &[data-size='md'] {\n border-width: 1.5px;\n }\n\n &[data-size='sm'] {\n border-width: 1px;\n font-size: 13px;\n line-height: 20px;\n }\n\n &:hover[data-is-loading='false'] {\n border-color: ",";\n background-color: ",";\n color: ",";\n }\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n }\n\n &[data-is-loading='true'] {\n "," {\n stroke: white;\n }\n\n "," {\n stroke: transparent;\n }\n }\n }\n\n &[data-color='success'] {\n background-color: ",";\n color: ",";\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n }\n\n &[data-theme='marryBaby'] {\n color: ",";\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n }\n }\n\n &[data-is-loading='true'] {\n "," {\n stroke: ",";\n }\n\n "," {\n stroke: transparent;\n }\n\n &[data-theme='marryBaby'] {\n "," {\n stroke: ",";\n }\n }\n }\n }\n\n &[data-theme='marryBaby']:disabled,\n &:disabled {\n border-color: ",";\n background-color: ",";\n color: ",";\n cursor: not-allowed;\n }\n\n &[data-block='true'] {\n width: 100%;\n padding: 12px auto;\n }\n\n &[data-event-category] > * {\n pointer-events: none;\n }\n\n &:focus-visible {\n outline: 2px solid black;\n }\n"],["\n width: auto;\n border-radius: 6px;\n\n &[data-theme='marryBaby'] {\n border-radius: 16px;\n }\n cursor: pointer;\n font-weight: ",";\n transition: background-color 0.3s, border-color 0.3s;\n\n "," {\n display: flex;\n align-items: center;\n\n & + "," {\n margin-left: 8px;\n }\n }\n\n &[data-size='lg'] {\n padding: 12px 24px;\n font-size: 16px;\n line-height: 24px;\n\n "," {\n svg,\n img {\n max-height: 24px;\n }\n }\n }\n\n &[data-size='md'] {\n padding: 9px 24px;\n font-size: 14px;\n line-height: 22px;\n\n "," {\n svg,\n img {\n max-height: 22px;\n }\n }\n }\n\n &[data-size='sm'] {\n padding: 5px 24px;\n font-size: 14px;\n line-height: 22px;\n font-weight: ",";\n\n "," {\n svg,\n img {\n max-height: 22px;\n }\n }\n }\n\n &[data-color='primary'] {\n background-color: ",";\n border: 1px solid ",";\n color: ",";\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n }\n\n &[data-theme='marryBaby'] {\n border: solid 2px ",";\n background-color: ",";\n\n &[data-has-icon='true'] {\n &:hover[data-is-loading='false'] svg {\n path {\n fill: ",";\n }\n }\n }\n }\n\n &:hover:not(:disabled)[data-is-loading='false'] {\n background-color: ",";\n\n &[data-theme='marryBaby'] {\n border: solid 2px ",";\n background-color: ",";\n color: ",";\n }\n }\n\n &:not(:is([disabled], [data-is-loading='true'])):active {\n background-color: ",";\n }\n &[data-theme='marryBaby'] {\n &:not(:is([disabled], [data-is-loading='true'])):active {\n background-color: ",";\n }\n }\n\n &[data-is-loading='true'] {\n &[data-theme='marryBaby'] {\n "," {\n stroke: white;\n }\n\n "," {\n stroke: transparent;\n }\n }\n }\n }\n\n &[data-color='secondary'] {\n border: solid 2px ",";\n background-color: ",";\n color: ",";\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n\n &:hover[data-is-loading='false'] svg {\n path {\n fill: ",";\n }\n }\n }\n\n &[data-theme='marryBaby'] {\n border-color: ",";\n background-color: transparent;\n color: ",";\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n\n &:hover[data-is-loading='false'] svg {\n path {\n fill: ",";\n }\n }\n }\n }\n\n &[data-size='md'] {\n border-width: 1.5px;\n }\n\n &[data-size='sm'] {\n border-width: 1px;\n font-size: 13px;\n line-height: 20px;\n }\n\n &:hover[data-is-loading='false'] {\n border-color: ",";\n background-color: ",";\n color: ",";\n\n &[data-theme='marryBaby'] {\n border-color: ",";\n background-color: ",";\n }\n }\n\n &:not(:is([disabled], [data-is-loading='true'])):active {\n border-color: ",";\n background-color: ",";\n color: ",";\n }\n &[data-theme='marryBaby'] {\n &:not(:is([disabled], [data-is-loading='true'])):active {\n border-color: ",";\n background-color: ",";\n }\n }\n }\n\n &[data-color='tertiary'] {\n border: solid 2px ",";\n background-color: transparent;\n color: ",";\n\n &[data-size='md'] {\n border-width: 1.5px;\n font-weight: ",";\n }\n\n &[data-size='sm'] {\n font-size: 13px;\n line-height: 20px;\n border-width: 1px;\n }\n\n &:hover[data-is-loading='false'] {\n &[data-theme='marryBaby'] {\n color: ",";\n background-color: ",";\n }\n }\n\n &[data-theme='marryBaby'] {\n color: ",";\n border-color: ",";\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n\n &:hover[data-is-loading='false'] svg {\n path {\n fill: ",";\n }\n }\n }\n }\n\n &[data-is-loading='true'] {\n &[data-theme='marryBaby'] {\n "," {\n stroke: ",";\n }\n }\n }\n }\n\n &[data-color='ghost'] {\n border: 0;\n background-color: transparent;\n color: ",";\n\n &[data-size='sm'] {\n padding: 5px 12px;\n font-size: 12px;\n line-height: 18px;\n }\n\n &:disabled {\n border-color: 0;\n background-color: transparent;\n color: ",";\n cursor: not-allowed;\n }\n }\n\n &[data-color='transparent'] {\n border: none;\n background-color: transparent;\n\n &[data-size='lg'] {\n font-size: 16px;\n line-height: 24px;\n padding: 0;\n }\n\n &[data-size='md'] {\n font-size: 14px;\n line-height: 24px;\n padding: 0;\n }\n\n &[data-size='sm'] {\n font-size: 13px;\n line-height: 20px;\n padding: 0;\n }\n }\n\n &[data-color='danger'] {\n border: solid 2px ",";\n background-color: ",";\n color: ",";\n\n &[data-size='md'] {\n border-width: 1.5px;\n }\n\n &[data-size='sm'] {\n border-width: 1px;\n font-size: 13px;\n line-height: 20px;\n }\n\n &:hover[data-is-loading='false'] {\n border-color: ",";\n background-color: ",";\n color: ",";\n }\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n }\n\n &[data-is-loading='true'] {\n "," {\n stroke: white;\n }\n\n "," {\n stroke: transparent;\n }\n }\n }\n\n &[data-color='success'] {\n background-color: ",";\n color: ",";\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n }\n\n &[data-theme='marryBaby'] {\n color: ",";\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n }\n }\n\n &[data-is-loading='true'] {\n "," {\n stroke: ",";\n }\n\n "," {\n stroke: transparent;\n }\n\n &[data-theme='marryBaby'] {\n "," {\n stroke: ",";\n }\n }\n }\n }\n\n &[data-theme='marryBaby']:disabled,\n &:disabled {\n border-color: ",";\n background-color: ",";\n color: ",";\n cursor: not-allowed;\n }\n\n &[data-block='true'] {\n width: 100%;\n padding: 12px auto;\n }\n\n &[data-event-category] > * {\n pointer-events: none;\n }\n\n &:focus-visible {\n outline: 2px solid black;\n }\n"])),e.theme.sizes.fwBold,z,w,z,z,e.theme.sizes.fwSemiBold,z,e.theme.colors.primaryBase,e.theme.colors.primaryBase,e.theme.colors.white,e.theme.colors.white,e.theme.mbColors.pink,e.theme.mbColors.pink,e.theme.mbColors.pink,e.theme.colors.primaryHover,e.theme.mbColors.pink,e.theme.colors.white,e.theme.mbColors.pink,e.theme.colors.primaryActive,e.theme.mbColors.pink,v,k,e.theme.colors.primaryBase,e.theme.colors.white,e.theme.colors.primaryBase,e.theme.colors.primaryBase,e.theme.colors.white,e.theme.mbColors.pink,e.theme.mbColors.pink,e.theme.mbColors.pink,e.theme.colors.white,e.theme.colors.primaryHover,e.theme.colors.primaryHover,e.theme.colors.white,e.theme.mbColors.pink,e.theme.mbColors.pink,e.theme.colors.primaryActive,e.theme.colors.primaryActive,e.theme.colors.white,e.theme.mbColors.pink,e.theme.mbColors.pink,e.theme.colors.gray300,e.theme.colors.gray800,e.theme.sizes.fwSemiBold,e.theme.colors.white,e.theme.mbColors.pink,e.theme.mbColors.pink,e.theme.mbColors.pink,e.theme.mbColors.pink,e.theme.colors.white,v,e.theme.mbColors.pink,e.theme.colors.primaryBase,e.theme.colors.gray300,e.theme.colors.red600,e.theme.colors.red600,e.theme.colors.white,e.theme.colors.red200,e.theme.colors.red200,e.theme.colors.white,e.theme.colors.white,v,k,e.theme.colors.green50,e.theme.colors.green800,e.theme.colors.green800,e.theme.mbColors.mint,e.theme.mbColors.mint,v,e.theme.colors.green800,k,v,e.theme.mbColors.mint,e.theme.colors.gray300,e.theme.colors.gray300,e.theme.colors.white);exports.Button=function(a){var e=a.size,t=a.color,o=void 0===t?"primary":t,r=a.theme,d=void 0===r?"helloSites":r,i=a.isDisabled,l=a.isBlock,s=a.title,c=a.className,h=a.onClick,m=a.icon,p=a.children,g=a.isLoading,u=void 0!==g&&g,f=a.loadingText,E=a.dataEventCategory,P=a.dataEventAction,j=a.dataEventLabel,T=a.dataProductChannel,O=a.dataProductSku,N=a.dataProductBrand,A=a.dataProductName,L=a.dataProductPrice,S=a.dataProductCategory,q=a.dataProductPosition,D=a.isAmp,H=a.on,W=a.dataVarsTracking,F=a.type,M=n.__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"]),V=D?{"data-vars-event-category":E,"data-vars-event-action":P,"data-vars-event-label":j,"data-vars-product-channel":T,"data-vars-product-sku":O,"data-vars-product-brand":N,"data-vars-product-name":A,"data-vars-product-price":L,"data-vars-product-category":S,"data-vars-product-position":q,"data-vars-tracking":W,on:H}:{"data-event-category":E,"data-event-action":P,"data-event-label":j,"data-product-channel":T,"data-product-sku":O,"data-product-brand":N,"data-product-name":A,"data-product-price":L,"data-product-category":S,"data-product-position":q},Z=b.default.createElement(C,null,b.default.createElement(x,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b.default.createElement(k,{cx:"12",cy:"12",r:"10",stroke:"white",strokeWidth:"4"})),b.default.createElement(y,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},b.default.createElement("mask",{id:"path-1-inside-1",fill:"white"},b.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"})),b.default.createElement(v,{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 b.default.createElement(_,n.__assign({},V,{className:c,"data-size":e,"data-color":o,"data-block":l,"data-has-icon":!!m||void 0,"data-theme":d,disabled:i,onClick:function(n){!u&&!i&&h&&h(n)},title:s,"data-is-loading":u,type:F},M),b.default.createElement(B,null,(m||u)&&b.default.createElement(z,{className:"button-icon"},u?Z:m," "),p&&b.default.createElement(w,null,u&&f||p)))},exports.getDefaultClassWrapper=function(e,t){return a.forwardRef((function(a,o){var r=a.className,d=n.__rest(a,["className"]);return b.default.createElement(e,n.__assign({ref:o,className:"".concat(t," ").concat(r||"")},d))}))};
@@ -0,0 +1 @@
1
+ import{c as e,a as t}from"./tslib.es6-44f7e5ec.js";import C from"react";var r=function(r){var i=r.size,a=r.color,s=r.isExpand,o=e(r,["size","color","isExpand"]);return s?C.createElement("svg",t({width:i,height:i,viewBox:"0 0 16 16",fill:a,xmlns:"http://www.w3.org/2000/svg"},o),C.createElement("path",{d:"M14.6625 0.500362C14.446 0.506813 14.2405 0.597296 14.0895 0.752641L10.7578 4.08435L9.69176 3.01664C9.37926 2.70414 8.84541 2.92491 8.84541 3.36657V6.67875C8.84541 6.95291 9.06687 7.17517 9.3402 7.17517H12.6524C13.094 7.17517 13.3148 6.64131 13.0023 6.32881L11.9362 5.26273L15.2679 1.93103C15.3884 1.81397 15.4706 1.66327 15.5039 1.49867C15.5372 1.33407 15.52 1.16325 15.4545 1.0086C15.3891 0.853944 15.2784 0.72267 15.1371 0.631979C14.9958 0.541288 14.8303 0.495412 14.6625 0.500362Z"}),C.createElement("path",{d:"M3.37015 8.84183C2.92848 8.84183 2.70771 9.37569 3.02021 9.68819L4.08792 10.7543L0.756214 14.086C0.676237 14.1628 0.612384 14.2547 0.568397 14.3565C0.524409 14.4583 0.501171 14.5678 0.500043 14.6787C0.498915 14.7895 0.51992 14.8995 0.561828 15.0022C0.603735 15.1048 0.665703 15.1981 0.744102 15.2765C0.822501 15.3549 0.915755 15.4168 1.0184 15.4587C1.12105 15.5007 1.23103 15.5217 1.3419 15.5205C1.45276 15.5194 1.56229 15.4962 1.66406 15.4522C1.76584 15.4082 1.85781 15.3443 1.9346 15.2644L5.26631 11.9327L6.33239 12.9987C6.64489 13.3112 7.17874 13.0905 7.17874 12.6488V9.33663C7.17874 9.06329 6.95649 8.84183 6.68232 8.84183H3.37015Z"})):C.createElement("svg",t({width:i,height:i,viewBox:"0 0 14 14",fill:a,xmlns:"http://www.w3.org/2000/svg"},o),C.createElement("path",{d:"M9.64991 0.333008C9.18412 0.333008 8.9513 0.896013 9.28086 1.22558L10.4052 2.35159L2.35171 10.405L1.2257 9.28074C0.896135 8.95118 0.33313 9.184 0.33313 9.64979V13.1428C0.33313 13.432 0.566681 13.6663 0.854939 13.6663H4.34969C4.81547 13.6663 5.04829 13.1033 4.71873 12.7738L3.59444 11.6478L11.6479 3.59432L12.7739 4.71861C13.1035 5.04817 13.6665 4.81535 13.6665 4.34957V0.854817C13.6665 0.566559 13.4321 0.333008 13.1429 0.333008H9.64991Z"}))};r.defaultProps={size:24,color:"inherit",isExpand:!1};export{r as F};
@@ -0,0 +1 @@
1
+ import{_ as n}from"./tslib.es6-44f7e5ec.js";import{keyframes as t}from"styled-components";var r,a,s,i,o,l,e,m,f,d=t(r||(r=n(["\nfrom {\n transform: translate3d(0, 100%, 0);\n visibility: visible;\n}\n\nto {\n transform: translate3d(0, 0, 0);\n}\n"],["\nfrom {\n transform: translate3d(0, 100%, 0);\n visibility: visible;\n}\n\nto {\n transform: translate3d(0, 0, 0);\n}\n"]))),b=t(a||(a=n(["\nfrom {\n transform: translate3d(0, -100%, 0);\n visibility: visible;\n }\n\n to {\n transform: translate3d(0, 0, 0);\n }\n"],["\nfrom {\n transform: translate3d(0, -100%, 0);\n visibility: visible;\n }\n\n to {\n transform: translate3d(0, 0, 0);\n }\n"]))),v=t(s||(s=n(["\n from {\n transform: translate3d(-100%, 0, 0);\n visibility: visible;\n }\n\n to {\n transform: translate3d(0, 0, 0);\n }\n"],["\n from {\n transform: translate3d(-100%, 0, 0);\n visibility: visible;\n }\n\n to {\n transform: translate3d(0, 0, 0);\n }\n"]))),y=t(i||(i=n(["\n from {\n transform: translate3d(100%, 0, 0);\n visibility: visible;\n }\n\n to {\n transform: translate3d(0, 0, 0);\n }\n"],["\n from {\n transform: translate3d(100%, 0, 0);\n visibility: visible;\n }\n\n to {\n transform: translate3d(0, 0, 0);\n }\n"]))),h=t(o||(o=n(["\nfrom {\n transform: translate3d(0, 0, 0);\n}\n\nto {\n visibility: hidden;\n transform: translate3d(0, 100%, 0);\n}\n"],["\nfrom {\n transform: translate3d(0, 0, 0);\n}\n\nto {\n visibility: hidden;\n transform: translate3d(0, 100%, 0);\n}\n"]))),p=t(l||(l=n(["\nfrom {\n transform: translate3d(0, 0, 0);\n}\n\nto {\n visibility: hidden;\n transform: translate3d(-100%, 0, 0);\n}\n"],["\nfrom {\n transform: translate3d(0, 0, 0);\n}\n\nto {\n visibility: hidden;\n transform: translate3d(-100%, 0, 0);\n}\n"]))),c=t(e||(e=n(["\nfrom {\n transform: translate3d(0, 0, 0);\n}\n\nto {\n visibility: hidden;\n transform: translate3d(100%, 0, 0);\n}\n"],["\nfrom {\n transform: translate3d(0, 0, 0);\n}\n\nto {\n visibility: hidden;\n transform: translate3d(100%, 0, 0);\n}\n"]))),g=t(m||(m=n(["\n from {\n transform: translate3d(0, 0, 0);\n }\n\n to {\n visibility: hidden;\n transform: translate3d(0, -100%, 0);\n }\n"],["\n from {\n transform: translate3d(0, 0, 0);\n }\n\n to {\n visibility: hidden;\n transform: translate3d(0, -100%, 0);\n }\n"]))),j=t(f||(f=n(["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"],["\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n"])));export{b as a,v as b,y as c,g as d,h as e,p as f,c as g,j as h,d as s};
@@ -1 +1 @@
1
- import{S as e,c as a,d as C,e as c,I as d,a as E,H as f,f as g,g as y}from"./index-ee06d201.js";export{l as BabyGrowthChart,n as BabyGrowthChartPercentile,o as BabyGrowthChartZScore,B as BabyGrowthChooseProfileDrawer,b as BabyGrowthGender,k as BabyGrowthProfileRadio,h as BabyGrowthSwitch,i as BabyGrowthSwitchChart,j as BabyGrowthTooltip,L as LABELS_PERCENTILE,m as LABELS_Z_SCORE,r as divideChartData,q as generateGrowthChart,v as generateXAxisTicks,p as getAxisYDomain,w as paintAxis,t as refineDataWithDot,s as refineDataWithLine,u as transformDataToChart}from"./index-ee06d201.js";import M,{useRef as x,useState as Z}from"react";import{L as H,G as V}from"./Locale-69030fff.js";import{t as G}from"./theme-a50a1aa5.js";import{T as N,M as z}from"./index-6384e385.js";import{format as S}from"date-fns";import{u as _}from"./useTranslations-b3eb31ef.js";import"./gAssets.js";import{n as D}from"./screenSizeContext-1852eabc.js";import"react-range";import"@mantine/core";import"styled-components";import"./index-9dd60ba6.js";import"./isProduction-6fc0946c.js";import"lodash/debounce";import{u as P}from"./useOutsideClick-6004483a.js";import{a as R,l as A}from"./localizeNumberFormat-77c129ef.js";import"./tslib.es6-dcf36680.js";import"./index-3fe43914.js";import"./translationsContext-e7808c8f.js";import"string-format";import"./index-78201994.js";import"./useScrollbarSize-99db33e1.js";import"react-dom";import"recharts";import"lodash";import"vanilla-lazyload";var I=function(t){var r=t.legends,l=t.locale;return M.createElement(e,null,r.map((function(e,t){return M.createElement(a,{key:t},M.createElement("span",{className:"dot",style:{backgroundColor:e.color}}),M.createElement(N,{size:"n1",color:G.colors.gray800},l===H.Indonesia?e["z-score"]:e.text))})))},T=function(e){var t=e.name,a=e.onClose,r=e.onEdit,l=e.onSwitch,n=e.onAdd,o=e.onRemove,i=_().t,c=x();return P(c,a),M.createElement("div",{ref:c},M.createElement(C,{width:250},M.createElement(z.Item,{onClick:r,icon:M.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.createElement("path",{d:"M12.7812 1.83301C12.2987 1.83301 11.8162 2.01676 11.4479 2.38509L10.6667 3.16634L13.3333 5.83301L14.1146 5.05176C14.8506 4.31576 14.8506 3.12176 14.1146 2.38509C13.7463 2.01676 13.2638 1.83301 12.7812 1.83301ZM9.66667 4.16634L2 11.833V14.4997H4.66667L12.3333 6.83301L9.66667 4.16634Z",fill:"#595959"}))},M.createElement(N,{size:"p2",color:G.colors.gray800},i("childCard.menu.edit",{name:t}))),M.createElement(z.Item,{onClick:l,icon:M.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.createElement("path",{d:"M8 2.5C4.9478 2.5 2.4204 4.79359 2.05078 7.7513C2.03763 7.83928 2.04222 7.929 2.06428 8.01518C2.08634 8.10136 2.12542 8.18226 2.17922 8.2531C2.23303 8.32394 2.30046 8.3833 2.37756 8.42768C2.45465 8.47206 2.53985 8.50057 2.62813 8.51152C2.71642 8.52247 2.806 8.51564 2.8916 8.49143C2.9772 8.46723 3.05709 8.42614 3.12657 8.37059C3.19605 8.31503 3.2537 8.24613 3.29615 8.16795C3.33859 8.08978 3.36496 8.00389 3.3737 7.91536C3.66141 5.61307 5.61354 3.83333 8 3.83333C9.34288 3.83333 10.5434 4.39987 11.3919 5.30339L10.0977 6.59766C9.96766 6.72766 9.96766 6.93901 10.0977 7.06901C10.1623 7.13434 10.248 7.16667 10.3333 7.16667H13.3333C13.5101 7.16667 13.6797 7.09643 13.8047 6.9714C13.9298 6.84638 14 6.67681 14 6.5V3.5C14 3.41467 13.967 3.32966 13.9023 3.26432C13.7723 3.13432 13.561 3.13432 13.431 3.26432L12.3359 4.35938C11.2437 3.21415 9.7037 2.5 8 2.5ZM13.2943 8.49089C13.1292 8.48959 12.9695 8.54959 12.8461 8.65928C12.7227 8.76896 12.6444 8.92053 12.6263 9.08464C12.3386 11.3869 10.3865 13.1667 8 13.1667C6.65713 13.1667 5.45884 12.5994 4.60938 11.6953L5.90234 10.4023C6.03234 10.2723 6.03234 10.061 5.90234 9.93099C5.83768 9.86566 5.752 9.83333 5.66667 9.83333H2.66667C2.48986 9.83333 2.32029 9.90357 2.19526 10.0286C2.07024 10.1536 2 10.3232 2 10.5V13.5C2 13.5853 2.03299 13.6703 2.09766 13.7357C2.22766 13.8657 2.43901 13.8657 2.56901 13.7357L3.66536 12.6393C4.75711 13.7836 6.29696 14.5 8 14.5C11.0522 14.5 13.5796 12.2064 13.9492 9.2487C13.9622 9.1548 13.955 9.05922 13.928 8.96833C13.9011 8.87745 13.8552 8.79334 13.7932 8.72163C13.7312 8.64991 13.6546 8.59224 13.5686 8.55245C13.4826 8.51266 13.3891 8.49167 13.2943 8.49089Z",fill:"#595959"}))},M.createElement(N,{size:"p2",color:G.colors.gray800},i("childCard.menu.switch"))),M.createElement(z.Item,{onClick:n,icon:M.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9564 8.56545C15.7745 7.46727 14.9673 6.57273 13.9127 6.26C13.5273 5.44545 12.9818 4.73273 12.32 4.14364C11.1709 3.11818 9.65818 2.5 8 2.5C6.34182 2.5 4.82909 3.11818 3.68 4.14364C3.01091 4.73273 2.46545 5.45273 2.08727 6.26C1.03273 6.57273 0.225455 7.46 0.0436364 8.56545C0.0145455 8.71818 0 8.87818 0 9.04545C0 9.21273 0.0145455 9.37273 0.0436364 9.52545C0.225455 10.6236 1.03273 11.5182 2.08727 11.8309C2.46545 12.6382 3.01091 13.3509 3.66545 13.9327C4.81455 14.9655 6.33455 15.5909 8 15.5909C9.66545 15.5909 11.1855 14.9655 12.3418 13.9327C12.9964 13.3509 13.5418 12.6309 13.92 11.8309C14.9673 11.5182 15.7745 10.6309 15.9564 9.52545C15.9855 9.37273 16 9.21273 16 9.04545C16 8.87818 15.9855 8.71818 15.9564 8.56545ZM6.18182 7.04545C5.67974 7.04545 5.27273 7.45247 5.27273 7.95455C5.27273 8.45662 5.67974 8.86364 6.18182 8.86364C6.6839 8.86364 7.09091 8.45662 7.09091 7.95455C7.09091 7.45247 6.6839 7.04545 6.18182 7.04545ZM9.81818 7.04545C9.3161 7.04545 8.90909 7.45247 8.90909 7.95455C8.90909 8.45662 9.3161 8.86364 9.81818 8.86364C10.3203 8.86364 10.7273 8.45662 10.7273 7.95455C10.7273 7.45247 10.3203 7.04545 9.81818 7.04545ZM5.01821 10.5H10.9818C11.1128 10.5 11.2073 10.6455 11.1491 10.7691C10.5455 11.9109 9.36002 12.6818 8.00002 12.6818C6.64002 12.6818 5.45457 11.9109 4.85093 10.7691C4.78548 10.6455 4.88002 10.5 5.01821 10.5ZM12.9538 10.4875C12.9991 10.4938 13.0435 10.5 13.0909 10.5C13.8909 10.5 14.5455 9.84545 14.5455 9.04545C14.5455 8.24545 13.8909 7.59091 13.0909 7.59091C13.0435 7.59091 12.9991 7.5971 12.9538 7.60343C12.9297 7.60679 12.9053 7.6102 12.88 7.61273C12.7345 7.12545 12.5236 6.67455 12.2545 6.26C11.3455 4.87091 9.78182 3.95455 8 3.95455C6.21818 3.95455 4.65455 4.87091 3.74545 6.26C3.47636 6.67455 3.26545 7.12545 3.12 7.61273C3.09473 7.6102 3.07033 7.60679 3.0462 7.60343C3.0009 7.5971 2.95654 7.59091 2.90909 7.59091C2.10909 7.59091 1.45455 8.24545 1.45455 9.04545C1.45455 9.84545 2.10909 10.5 2.90909 10.5C2.95654 10.5 3.0009 10.4938 3.0462 10.4875C3.07033 10.4841 3.09473 10.4807 3.12 10.4782C3.26545 10.9655 3.47636 11.4164 3.74545 11.8309C4.65455 13.22 6.21818 14.1364 8 14.1364C9.78182 14.1364 11.3455 13.22 12.2545 11.8309C12.5236 11.4164 12.7345 10.9655 12.88 10.4782C12.9053 10.4807 12.9297 10.4841 12.9538 10.4875Z",fill:"#595959"}),M.createElement("path",{d:"M2.5 2V1C2.5 0.725 2.275 0.5 2 0.5C1.725 0.5 1.5 0.725 1.5 1V2H0.5C0.225 2 0 2.225 0 2.5C0 2.775 0.225 3 0.5 3H1.5V4C1.5 4.275 1.725 4.5 2 4.5C2.275 4.5 2.5 4.275 2.5 4V3H3.5C3.775 3 4 2.775 4 2.5C4 2.225 3.775 2 3.5 2H2.5Z",fill:"#595959"}))},M.createElement(N,{size:"p2",color:G.colors.gray800},i("childCard.menu.add"))),M.createElement(z.Item,{onClick:o,icon:M.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.createElement("path",{d:"M6.66699 1.83301L6.00033 2.49967H3.33366C2.93366 2.49967 2.66699 2.76634 2.66699 3.16634C2.66699 3.56634 2.93366 3.83301 3.33366 3.83301H4.66699H11.3337H12.667C13.067 3.83301 13.3337 3.56634 13.3337 3.16634C13.3337 2.76634 13.067 2.49967 12.667 2.49967H10.0003L9.33366 1.83301H6.66699ZM3.33366 5.16634V13.833C3.33366 14.5663 3.93366 15.1663 4.66699 15.1663H11.3337C12.067 15.1663 12.667 14.5663 12.667 13.833V5.16634H3.33366ZM6.00033 6.49967C6.40033 6.49967 6.66699 6.76634 6.66699 7.16634V13.1663C6.66699 13.5663 6.40033 13.833 6.00033 13.833C5.60033 13.833 5.33366 13.5663 5.33366 13.1663V7.16634C5.33366 6.76634 5.60033 6.49967 6.00033 6.49967ZM10.0003 6.49967C10.4003 6.49967 10.667 6.76634 10.667 7.16634V13.1663C10.667 13.5663 10.4003 13.833 10.0003 13.833C9.60033 13.833 9.33366 13.5663 9.33366 13.1663V7.16634C9.33366 6.76634 9.60033 6.49967 10.0003 6.49967Z",fill:"#F44D2C"}))},M.createElement(N,{size:"p2",color:G.colors.red600},i("childCard.menu.remove",{name:t})))))},F=function(e,t){if(e)if(e.year<1){if(0===e.month)switch(e.week){case 0:case 1:return t("childCard.age.oneWeek");default:return t("childCard.age.week",{weeks:e.week})}if(1===e.month)return t("childCard.age.oneMonth");if(e.month>1)return t("childCard.age.months",{month:e.month})}else{if(1===e.year)return t("childCard.age.oneYear");if(0===e.month)return t("childCard.age.yearNoMonth",{year:e.year});if(e.month>0)return t("childCard.age.yearMonth",{year:e.year,month:e.month})}},W=function(e){var t=e.name,a=e.gender,r=e.age,l=e.isLoggedIn,n=void 0!==l&&l,o=e.showMenu,i=void 0!==o&&o,C=e.onEdit,m=e.onSwitch,s=e.onAdd,h=e.onRemove,p=e.className,w=e.siteType,u=_().t,v=Z(!1),y=v[0],L=v[1],b="marryBaby"===w;return M.createElement(c,{className:p,"data-theme":w},b?M.createElement(M.Fragment,null,M.createElement("div",{"data-testid":"gender"},a===V.Boy?M.createElement(d.BabyBoyMB,{"data-testid":"boy",id:"boy"}):M.createElement(d.BabyGirlMB,{"data-testid":"girl",id:"girl"})),M.createElement("div",{className:"information"},M.createElement(E,{type:"subtitle-1",color:G.mbColors.dark},D(t)||u("childCard.noName")),M.createElement("div",{className:"detail"},M.createElement("div",null,a===V.Boy?M.createElement(d.GenderBoy,null):M.createElement(d.GenderGirl,null),M.createElement(E,{type:"bodytext-2",color:G.mbColors.gray},a)),M.createElement("div",null,M.createElement(d.Calendar,{size:16}),r&&M.createElement(E,{type:"bodytext-2",color:G.mbColors.gray},F(r,u)))))):M.createElement(M.Fragment,null,M.createElement("div",{"data-testid":"gender"},a===V.Boy?M.createElement(d.Boy,{"data-testid":"boy",id:"boy"}):M.createElement(d.Girl,{"data-testid":"girl",id:"girl"})),M.createElement("div",{className:"information"},M.createElement(f,{tag:"h5",fontWeight:"bold",color:G.colors.gray800},D(t)||u("childCard.noName")),M.createElement("div",{className:"detail"},M.createElement("div",null,a===V.Boy?M.createElement(d.GenderBoy,null):M.createElement(d.GenderGirl,null),M.createElement(N,{size:"p3",color:G.colors.gray800,style:{textTransform:"capitalize"}},a)),M.createElement("div",null,M.createElement(d.Calendar,{size:16}),r&&M.createElement(N,{size:"p3",color:G.colors.gray800},F(r,u)))))),i&&n&&M.createElement(g,null,M.createElement(d.Kebab,{onClick:function(){return L((function(e){return!e}))}}),y&&M.createElement(T,{name:t,onClose:function(){return L(!1)},onEdit:function(){L(!1),C()},onSwitch:function(){L(!1),m()},onAdd:function(){L(!1),s()},onRemove:function(){L(!1),h()}})))},O=function(e,t){return e&&"NaN"!==e?e+" "+(t||""):"--"},Y=function(e){var t=e.measurementDate,a=void 0===t?new Date:t,r=e.weight,l=e.height,n=e.head,o=e.onEdit,i=e.birthday,C=e.dateFormat,c=void 0===C?"dd/MM/yyyy":C,m=e.locale;void 0===m&&H.PhilippinesEnglish;var s=_().t;return M.createElement(y,{onClick:o},M.createElement("div",{className:"time"},M.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.createElement("path",{d:"M5.64421 0.666016C5.27621 0.666016 4.97754 0.964682 4.97754 1.33268V1.99935H4.31087C3.57754 1.99935 2.97754 2.59935 2.97754 3.33268V12.666C2.97754 13.3993 3.57754 13.9993 4.31087 13.9993H13.6442C14.3775 13.9993 14.9775 13.3993 14.9775 12.666V3.33268C14.9775 2.59935 14.3775 1.99935 13.6442 1.99935H12.9775V1.33268C12.9775 0.964682 12.6789 0.666016 12.3109 0.666016C11.9429 0.666016 11.6442 0.964682 11.6442 1.33268V1.99935H6.31087V1.33268C6.31087 0.964682 6.01221 0.666016 5.64421 0.666016ZM4.31087 5.33268H13.6442V11.9993C13.6442 12.3673 13.3455 12.666 12.9775 12.666H4.97754C4.60954 12.666 4.31087 12.3673 4.31087 11.9993V5.33268Z",fill:"#8C8C8C"})),M.createElement(N,{size:"p3",color:G.colors.gray600},"".concat(S(a,c)," (").concat(F(R(i,a),s),")")),M.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"edit-button"},M.createElement("path",{d:"M12.7721 1.33398C12.2911 1.33398 11.8102 1.51773 11.443 1.88607L10.6643 2.66732L13.3224 5.33398L14.1011 4.55273C14.8348 3.81673 14.8348 2.62273 14.1011 1.88607C13.734 1.51773 13.253 1.33398 12.7721 1.33398ZM9.66748 3.66732L2.02539 11.334V14.0007H4.68351L12.3256 6.33398L9.66748 3.66732Z",fill:"#8C8C8C"}))),M.createElement("div",{className:"record"},M.createElement("div",{className:"record-item"},M.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.createElement("path",{d:"M8.44401 9.86602C8.44401 9.57146 8.68279 9.33268 8.97734 9.33268C9.2719 9.33268 9.51068 9.57146 9.51068 9.86602V11.466C9.51068 11.7606 9.2719 11.9993 8.97734 11.9993C8.68279 11.9993 8.44401 11.7606 8.44401 11.466V9.86602Z",fill:"#8C8C8C"}),M.createElement("path",{d:"M8.17595 3.05319C7.96767 3.26147 7.96767 3.59916 8.17595 3.80744L8.83592 4.46741C9.0442 4.67569 9.38189 4.67569 9.59017 4.46741C9.79844 4.25913 9.79844 3.92144 9.59017 3.71316L8.9302 3.05319C8.72192 2.84491 8.38423 2.84492 8.17595 3.05319Z",fill:"#8C8C8C"}),M.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.2941 3.66435C12.1261 1.98071 10.7053 0.666016 8.97738 0.666016C7.2495 0.666016 5.82868 1.9807 5.66067 3.66434L3.67054 3.86336C2.92499 3.93791 2.38724 4.61197 2.48017 5.35545L3.498 13.4981C3.5814 14.1653 4.1486 14.666 4.82104 14.666H13.1336C13.806 14.666 14.3732 14.1653 14.4567 13.4981L15.4745 5.35545C15.5674 4.61197 15.0297 3.93791 14.2841 3.86336L12.2941 3.66435ZM12.1607 4.991C11.7386 6.34768 10.473 7.33268 8.97738 7.33268C7.48176 7.33268 6.2162 6.34767 5.79403 4.99099L3.80321 5.19007L4.82104 13.3327L13.1336 13.3327L14.1514 5.19007L12.1607 4.991ZM10.9774 3.99935C10.9774 5.10392 10.0819 5.99935 8.97738 5.99935C7.87281 5.99935 6.97738 5.10392 6.97738 3.99935C6.97738 2.89478 7.87281 1.99935 8.97738 1.99935C10.0819 1.99935 10.9774 2.89478 10.9774 3.99935Z",fill:"#8C8C8C"})),M.createElement(N,{size:"s3",color:G.colors.gray800,type:"semiBold"},O(A(r),"kg"))),M.createElement("div",{className:"record-item"},M.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.createElement("g",{clipPath:"url(#clip0_855_82991)"},M.createElement("path",{d:"M12.6055 13.9993L12.6055 1.99935C12.6055 1.26602 12.0055 0.666016 11.2721 0.666016L5.9388 0.666015C5.20547 0.666015 4.60547 1.26602 4.60547 1.99935L4.60547 13.9993C4.60547 14.7327 5.20547 15.3327 5.9388 15.3327L11.2721 15.3327C12.0055 15.3327 12.6055 14.7327 12.6055 13.9993ZM5.9388 13.9993L5.9388 1.99935L11.2721 1.99935L11.2721 3.33268L8.60547 3.33268L8.60547 4.66602L11.2721 4.66602L11.2721 5.99935L8.60547 5.99935L8.60547 7.33268L11.2721 7.33268L11.2721 8.66602L8.60547 8.66601L8.60547 9.99935L11.2721 9.99935L11.2721 11.3327L8.60547 11.3327L8.60547 12.666L11.2721 12.666L11.2721 13.9993L5.9388 13.9993Z",fill:"#8C8C8C"})),M.createElement("defs",null,M.createElement("clipPath",{id:"clip0_855_82991"},M.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(16.6055) rotate(90)"})))),M.createElement(N,{size:"s3",color:G.colors.gray800,type:"semiBold"},O(A(l),"cm"))),M.createElement("div",{className:"record-item"},M.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M.createElement("g",{clipPath:"url(#clip0_855_82994)"},M.createElement("path",{d:"M9.90072 7.83268C10.361 7.83268 10.734 7.45959 10.734 6.99935C10.734 6.53911 10.361 6.16602 9.90072 6.16602C9.44048 6.16602 9.06738 6.53911 9.06738 6.99935C9.06738 7.45959 9.44048 7.83268 9.90072 7.83268Z",fill:"#8C8C8C"}),M.createElement("path",{d:"M6.56771 7.83268C7.02795 7.83268 7.40104 7.45959 7.40104 6.99935C7.40104 6.53911 7.02795 6.16602 6.56771 6.16602C6.10747 6.16602 5.73438 6.53911 5.73438 6.99935C5.73438 7.45959 6.10747 7.83268 6.56771 7.83268Z",fill:"#8C8C8C"}),M.createElement("path",{d:"M15.528 7.56C15.3614 6.55333 14.6214 5.73333 13.6547 5.44667C13.3014 4.7 12.8014 4.04667 12.1947 3.50667C11.1414 2.56667 9.7547 2 8.2347 2C6.7147 2 5.32803 2.56667 4.2747 3.50667C3.66137 4.04667 3.16137 4.70667 2.8147 5.44667C1.84803 5.73333 1.10803 6.54667 0.941367 7.56C0.9147 7.7 0.901367 7.84667 0.901367 8C0.901367 8.15333 0.9147 8.3 0.941367 8.44C1.10803 9.44667 1.84803 10.2667 2.8147 10.5533C3.16137 11.2933 3.66137 11.9467 4.26137 12.48C5.3147 13.4267 6.70803 14 8.2347 14C9.76137 14 11.1547 13.4267 12.2147 12.48C12.8147 11.9467 13.3147 11.2867 13.6614 10.5533C14.6214 10.2667 15.3614 9.45333 15.528 8.44C15.5547 8.3 15.568 8.15333 15.568 8C15.568 7.84667 15.5547 7.7 15.528 7.56ZM12.9014 9.33333C12.8347 9.33333 12.7747 9.32 12.708 9.31333C12.5747 9.76 12.3814 10.1733 12.1347 10.5533C11.3014 11.8267 9.86803 12.6667 8.2347 12.6667C6.60137 12.6667 5.16803 11.8267 4.3347 10.5533C4.08803 10.1733 3.8947 9.76 3.76137 9.31333C3.6947 9.32 3.6347 9.33333 3.56803 9.33333C2.8347 9.33333 2.2347 8.73333 2.2347 8C2.2347 7.26667 2.8347 6.66667 3.56803 6.66667C3.6347 6.66667 3.6947 6.68 3.76137 6.68667C3.8947 6.24 4.08803 5.82667 4.3347 5.44667C5.16803 4.17333 6.60137 3.33333 8.2347 3.33333C9.86803 3.33333 11.3014 4.17333 12.1347 5.44667C12.3814 5.82667 12.5747 6.24 12.708 6.68667C12.7747 6.68 12.8347 6.66667 12.9014 6.66667C13.6347 6.66667 14.2347 7.26667 14.2347 8C14.2347 8.73333 13.6347 9.33333 12.9014 9.33333ZM8.2347 11.3333C9.5747 11.3333 10.728 10.5133 11.2347 9.33333H5.2347C5.74137 10.5133 6.8947 11.3333 8.2347 11.3333Z",fill:"#8C8C8C"})),M.createElement("defs",null,M.createElement("clipPath",{id:"clip0_855_82994"},M.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.234375)"})))),M.createElement(N,{size:"s3",color:G.colors.gray800,type:"semiBold"},O(A(n),"cm")))))};export{I as BabyGrowthLegend,Y as BabyGrowthRecord,W as ChildCard};
1
+ import{S as e,d as a,e as C,M as c,f as d,I as h,c as E,g as f,h as g}from"./index-fba7cd68.js";export{m as BabyGrowthChart,o as BabyGrowthChartPercentile,p as BabyGrowthChartZScore,B as BabyGrowthChooseProfileDrawer,b as BabyGrowthGender,l as BabyGrowthProfileRadio,i as BabyGrowthSwitch,j as BabyGrowthSwitchChart,k as BabyGrowthTooltip,L as LABELS_PERCENTILE,n as LABELS_Z_SCORE,s as divideChartData,r as generateGrowthChart,w as generateXAxisTicks,q as getAxisYDomain,x as paintAxis,u as refineDataWithDot,t as refineDataWithLine,v as transformDataToChart}from"./index-fba7cd68.js";import y,{useRef as M,useState as Z}from"react";import{L as H,G as V}from"./Locale-69030fff.js";import{t as G}from"./theme-a50a1aa5.js";import{T as N}from"./index-db100bfe.js";import z from"dayjs";import{u as S}from"./useTranslations-b3eb31ef.js";import{H as D}from"./index-6ebadd9f.js";import{s as _}from"./utils-11febb09.js";import{u as P}from"./useOutsideClick-6004483a.js";import"lodash/debounce";import"./isProduction-6fc0946c.js";import"./index-9dd60ba6.js";import{a as R,l as A}from"./localizeNumberFormat-ec8c08da.js";import"./tslib.es6-44f7e5ec.js";import"styled-components";import"./defaultClassWrapper-d19e31e4.js";import"./FullScreen-7153b23e.js";import"./animation-1f84197a.js";import"./index-fac4e2c1.js";import"./index-64080428.js";import"@mantine/core";import"./useScrollbarSize-99db33e1.js";import"react-dom";import"recharts";import"./index-182c57d1.js";import"lodash/chunk";import"./translationsContext-e7808c8f.js";import"string-format";var I=function(t){var r=t.legends,l=t.locale;return y.createElement(e,null,r.map((function(e,t){return y.createElement(a,{key:t},y.createElement("span",{className:"dot",style:{backgroundColor:e.color}}),y.createElement(N,{size:"n1",color:G.colors.gray800},l===H.Indonesia?e["z-score"]:e.text))})))},T=function(e){var t=e.name,a=e.onClose,r=e.onEdit,l=e.onSwitch,n=e.onAdd,o=e.onRemove,i=S().t,m=M();return P(m,a),y.createElement("div",{ref:m},y.createElement(C,{width:250},y.createElement(c.Item,{onClick:r,icon:y.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("path",{d:"M12.7812 1.83301C12.2987 1.83301 11.8162 2.01676 11.4479 2.38509L10.6667 3.16634L13.3333 5.83301L14.1146 5.05176C14.8506 4.31576 14.8506 3.12176 14.1146 2.38509C13.7463 2.01676 13.2638 1.83301 12.7812 1.83301ZM9.66667 4.16634L2 11.833V14.4997H4.66667L12.3333 6.83301L9.66667 4.16634Z",fill:"#595959"}))},y.createElement(N,{size:"p2",color:G.colors.gray800},i("childCard.menu.edit",{name:t}))),y.createElement(c.Item,{onClick:l,icon:y.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("path",{d:"M8 2.5C4.9478 2.5 2.4204 4.79359 2.05078 7.7513C2.03763 7.83928 2.04222 7.929 2.06428 8.01518C2.08634 8.10136 2.12542 8.18226 2.17922 8.2531C2.23303 8.32394 2.30046 8.3833 2.37756 8.42768C2.45465 8.47206 2.53985 8.50057 2.62813 8.51152C2.71642 8.52247 2.806 8.51564 2.8916 8.49143C2.9772 8.46723 3.05709 8.42614 3.12657 8.37059C3.19605 8.31503 3.2537 8.24613 3.29615 8.16795C3.33859 8.08978 3.36496 8.00389 3.3737 7.91536C3.66141 5.61307 5.61354 3.83333 8 3.83333C9.34288 3.83333 10.5434 4.39987 11.3919 5.30339L10.0977 6.59766C9.96766 6.72766 9.96766 6.93901 10.0977 7.06901C10.1623 7.13434 10.248 7.16667 10.3333 7.16667H13.3333C13.5101 7.16667 13.6797 7.09643 13.8047 6.9714C13.9298 6.84638 14 6.67681 14 6.5V3.5C14 3.41467 13.967 3.32966 13.9023 3.26432C13.7723 3.13432 13.561 3.13432 13.431 3.26432L12.3359 4.35938C11.2437 3.21415 9.7037 2.5 8 2.5ZM13.2943 8.49089C13.1292 8.48959 12.9695 8.54959 12.8461 8.65928C12.7227 8.76896 12.6444 8.92053 12.6263 9.08464C12.3386 11.3869 10.3865 13.1667 8 13.1667C6.65713 13.1667 5.45884 12.5994 4.60938 11.6953L5.90234 10.4023C6.03234 10.2723 6.03234 10.061 5.90234 9.93099C5.83768 9.86566 5.752 9.83333 5.66667 9.83333H2.66667C2.48986 9.83333 2.32029 9.90357 2.19526 10.0286C2.07024 10.1536 2 10.3232 2 10.5V13.5C2 13.5853 2.03299 13.6703 2.09766 13.7357C2.22766 13.8657 2.43901 13.8657 2.56901 13.7357L3.66536 12.6393C4.75711 13.7836 6.29696 14.5 8 14.5C11.0522 14.5 13.5796 12.2064 13.9492 9.2487C13.9622 9.1548 13.955 9.05922 13.928 8.96833C13.9011 8.87745 13.8552 8.79334 13.7932 8.72163C13.7312 8.64991 13.6546 8.59224 13.5686 8.55245C13.4826 8.51266 13.3891 8.49167 13.2943 8.49089Z",fill:"#595959"}))},y.createElement(N,{size:"p2",color:G.colors.gray800},i("childCard.menu.switch"))),y.createElement(c.Item,{onClick:n,icon:y.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9564 8.56545C15.7745 7.46727 14.9673 6.57273 13.9127 6.26C13.5273 5.44545 12.9818 4.73273 12.32 4.14364C11.1709 3.11818 9.65818 2.5 8 2.5C6.34182 2.5 4.82909 3.11818 3.68 4.14364C3.01091 4.73273 2.46545 5.45273 2.08727 6.26C1.03273 6.57273 0.225455 7.46 0.0436364 8.56545C0.0145455 8.71818 0 8.87818 0 9.04545C0 9.21273 0.0145455 9.37273 0.0436364 9.52545C0.225455 10.6236 1.03273 11.5182 2.08727 11.8309C2.46545 12.6382 3.01091 13.3509 3.66545 13.9327C4.81455 14.9655 6.33455 15.5909 8 15.5909C9.66545 15.5909 11.1855 14.9655 12.3418 13.9327C12.9964 13.3509 13.5418 12.6309 13.92 11.8309C14.9673 11.5182 15.7745 10.6309 15.9564 9.52545C15.9855 9.37273 16 9.21273 16 9.04545C16 8.87818 15.9855 8.71818 15.9564 8.56545ZM6.18182 7.04545C5.67974 7.04545 5.27273 7.45247 5.27273 7.95455C5.27273 8.45662 5.67974 8.86364 6.18182 8.86364C6.6839 8.86364 7.09091 8.45662 7.09091 7.95455C7.09091 7.45247 6.6839 7.04545 6.18182 7.04545ZM9.81818 7.04545C9.3161 7.04545 8.90909 7.45247 8.90909 7.95455C8.90909 8.45662 9.3161 8.86364 9.81818 8.86364C10.3203 8.86364 10.7273 8.45662 10.7273 7.95455C10.7273 7.45247 10.3203 7.04545 9.81818 7.04545ZM5.01821 10.5H10.9818C11.1128 10.5 11.2073 10.6455 11.1491 10.7691C10.5455 11.9109 9.36002 12.6818 8.00002 12.6818C6.64002 12.6818 5.45457 11.9109 4.85093 10.7691C4.78548 10.6455 4.88002 10.5 5.01821 10.5ZM12.9538 10.4875C12.9991 10.4938 13.0435 10.5 13.0909 10.5C13.8909 10.5 14.5455 9.84545 14.5455 9.04545C14.5455 8.24545 13.8909 7.59091 13.0909 7.59091C13.0435 7.59091 12.9991 7.5971 12.9538 7.60343C12.9297 7.60679 12.9053 7.6102 12.88 7.61273C12.7345 7.12545 12.5236 6.67455 12.2545 6.26C11.3455 4.87091 9.78182 3.95455 8 3.95455C6.21818 3.95455 4.65455 4.87091 3.74545 6.26C3.47636 6.67455 3.26545 7.12545 3.12 7.61273C3.09473 7.6102 3.07033 7.60679 3.0462 7.60343C3.0009 7.5971 2.95654 7.59091 2.90909 7.59091C2.10909 7.59091 1.45455 8.24545 1.45455 9.04545C1.45455 9.84545 2.10909 10.5 2.90909 10.5C2.95654 10.5 3.0009 10.4938 3.0462 10.4875C3.07033 10.4841 3.09473 10.4807 3.12 10.4782C3.26545 10.9655 3.47636 11.4164 3.74545 11.8309C4.65455 13.22 6.21818 14.1364 8 14.1364C9.78182 14.1364 11.3455 13.22 12.2545 11.8309C12.5236 11.4164 12.7345 10.9655 12.88 10.4782C12.9053 10.4807 12.9297 10.4841 12.9538 10.4875Z",fill:"#595959"}),y.createElement("path",{d:"M2.5 2V1C2.5 0.725 2.275 0.5 2 0.5C1.725 0.5 1.5 0.725 1.5 1V2H0.5C0.225 2 0 2.225 0 2.5C0 2.775 0.225 3 0.5 3H1.5V4C1.5 4.275 1.725 4.5 2 4.5C2.275 4.5 2.5 4.275 2.5 4V3H3.5C3.775 3 4 2.775 4 2.5C4 2.225 3.775 2 3.5 2H2.5Z",fill:"#595959"}))},y.createElement(N,{size:"p2",color:G.colors.gray800},i("childCard.menu.add"))),y.createElement(c.Item,{onClick:o,icon:y.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("path",{d:"M6.66699 1.83301L6.00033 2.49967H3.33366C2.93366 2.49967 2.66699 2.76634 2.66699 3.16634C2.66699 3.56634 2.93366 3.83301 3.33366 3.83301H4.66699H11.3337H12.667C13.067 3.83301 13.3337 3.56634 13.3337 3.16634C13.3337 2.76634 13.067 2.49967 12.667 2.49967H10.0003L9.33366 1.83301H6.66699ZM3.33366 5.16634V13.833C3.33366 14.5663 3.93366 15.1663 4.66699 15.1663H11.3337C12.067 15.1663 12.667 14.5663 12.667 13.833V5.16634H3.33366ZM6.00033 6.49967C6.40033 6.49967 6.66699 6.76634 6.66699 7.16634V13.1663C6.66699 13.5663 6.40033 13.833 6.00033 13.833C5.60033 13.833 5.33366 13.5663 5.33366 13.1663V7.16634C5.33366 6.76634 5.60033 6.49967 6.00033 6.49967ZM10.0003 6.49967C10.4003 6.49967 10.667 6.76634 10.667 7.16634V13.1663C10.667 13.5663 10.4003 13.833 10.0003 13.833C9.60033 13.833 9.33366 13.5663 9.33366 13.1663V7.16634C9.33366 6.76634 9.60033 6.49967 10.0003 6.49967Z",fill:"#F44D2C"}))},y.createElement(N,{size:"p2",color:G.colors.red600},i("childCard.menu.remove",{name:t})))))},F=function(e,t){if(e)if(e.year<1){if(0===e.month)switch(e.week){case 0:case 1:return t("childCard.age.oneWeek");default:return t("childCard.age.week",{weeks:e.week})}if(1===e.month)return t("childCard.age.oneMonth");if(e.month>1)return t("childCard.age.months",{month:e.month})}else{if(1===e.year)return t("childCard.age.oneYear");if(0===e.month)return t("childCard.age.yearNoMonth",{year:e.year});if(e.month>0)return t("childCard.age.yearMonth",{year:e.year,month:e.month})}},Y=function(e){var t=e.name,a=e.gender,r=e.age,l=e.isLoggedIn,n=void 0!==l&&l,o=e.showMenu,i=void 0!==o&&o,C=e.onEdit,c=e.onSwitch,m=e.onAdd,s=e.onRemove,p=e.className,g=e.siteType,w=S().t,u=Z(!1),v=u[0],L=u[1],b="marryBaby"===g;return y.createElement(d,{className:p,"data-theme":g},b?y.createElement(y.Fragment,null,y.createElement("div",{"data-testid":"gender"},a===V.Boy?y.createElement(h.BabyBoyMB,{"data-testid":"boy",id:"boy"}):y.createElement(h.BabyGirlMB,{"data-testid":"girl",id:"girl"})),y.createElement("div",{className:"information"},y.createElement(E,{type:"subtitle-1",color:G.mbColors.dark},_(t)||w("childCard.noName")),y.createElement("div",{className:"detail"},y.createElement("div",null,a===V.Boy?y.createElement(h.GenderBoy,null):y.createElement(h.GenderGirl,null),y.createElement(E,{type:"bodytext-2",color:G.mbColors.gray},a)),y.createElement("div",null,y.createElement(h.Calendar,{size:16}),r&&y.createElement(E,{type:"bodytext-2",color:G.mbColors.gray},F(r,w)))))):y.createElement(y.Fragment,null,y.createElement("div",{"data-testid":"gender"},a===V.Boy?y.createElement(h.Boy,{"data-testid":"boy",id:"boy"}):y.createElement(h.Girl,{"data-testid":"girl",id:"girl"})),y.createElement("div",{className:"information"},y.createElement(D,{tag:"h5",fontWeight:"bold",color:G.colors.gray800},_(t)||w("childCard.noName")),y.createElement("div",{className:"detail"},y.createElement("div",null,a===V.Boy?y.createElement(h.GenderBoy,null):y.createElement(h.GenderGirl,null),y.createElement(N,{size:"p3",color:G.colors.gray800,style:{textTransform:"capitalize"}},a)),y.createElement("div",null,y.createElement(h.Calendar,{size:16}),r&&y.createElement(N,{size:"p3",color:G.colors.gray800},F(r,w)))))),i&&n&&y.createElement(f,null,y.createElement(h.Kebab,{onClick:function(){return L((function(e){return!e}))}}),v&&y.createElement(T,{name:t,onClose:function(){return L(!1)},onEdit:function(){L(!1),C()},onSwitch:function(){L(!1),c()},onAdd:function(){L(!1),m()},onRemove:function(){L(!1),s()}})))},W=function(e,t){return e&&"NaN"!==e?e+" "+(t||""):"--"},O=function(e){var t=e.measurementDate,a=void 0===t?new Date:t,r=e.weight,l=e.height,n=e.head,o=e.onEdit,i=e.birthday,C=e.dateFormat,c=void 0===C?"DD/MM/YYYY":C,m=e.locale;void 0===m&&H.PhilippinesEnglish;var s=S().t;return y.createElement(g,{onClick:o},y.createElement("div",{className:"time"},y.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("path",{d:"M5.64421 0.666016C5.27621 0.666016 4.97754 0.964682 4.97754 1.33268V1.99935H4.31087C3.57754 1.99935 2.97754 2.59935 2.97754 3.33268V12.666C2.97754 13.3993 3.57754 13.9993 4.31087 13.9993H13.6442C14.3775 13.9993 14.9775 13.3993 14.9775 12.666V3.33268C14.9775 2.59935 14.3775 1.99935 13.6442 1.99935H12.9775V1.33268C12.9775 0.964682 12.6789 0.666016 12.3109 0.666016C11.9429 0.666016 11.6442 0.964682 11.6442 1.33268V1.99935H6.31087V1.33268C6.31087 0.964682 6.01221 0.666016 5.64421 0.666016ZM4.31087 5.33268H13.6442V11.9993C13.6442 12.3673 13.3455 12.666 12.9775 12.666H4.97754C4.60954 12.666 4.31087 12.3673 4.31087 11.9993V5.33268Z",fill:"#8C8C8C"})),y.createElement(N,{size:"p3",color:G.colors.gray600},"".concat(z(a).format(c)," (").concat(F(R(i,a),s),")")),y.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"edit-button"},y.createElement("path",{d:"M12.7721 1.33398C12.2911 1.33398 11.8102 1.51773 11.443 1.88607L10.6643 2.66732L13.3224 5.33398L14.1011 4.55273C14.8348 3.81673 14.8348 2.62273 14.1011 1.88607C13.734 1.51773 13.253 1.33398 12.7721 1.33398ZM9.66748 3.66732L2.02539 11.334V14.0007H4.68351L12.3256 6.33398L9.66748 3.66732Z",fill:"#8C8C8C"}))),y.createElement("div",{className:"record"},y.createElement("div",{className:"record-item"},y.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("path",{d:"M8.44401 9.86602C8.44401 9.57146 8.68279 9.33268 8.97734 9.33268C9.2719 9.33268 9.51068 9.57146 9.51068 9.86602V11.466C9.51068 11.7606 9.2719 11.9993 8.97734 11.9993C8.68279 11.9993 8.44401 11.7606 8.44401 11.466V9.86602Z",fill:"#8C8C8C"}),y.createElement("path",{d:"M8.17595 3.05319C7.96767 3.26147 7.96767 3.59916 8.17595 3.80744L8.83592 4.46741C9.0442 4.67569 9.38189 4.67569 9.59017 4.46741C9.79844 4.25913 9.79844 3.92144 9.59017 3.71316L8.9302 3.05319C8.72192 2.84491 8.38423 2.84492 8.17595 3.05319Z",fill:"#8C8C8C"}),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.2941 3.66435C12.1261 1.98071 10.7053 0.666016 8.97738 0.666016C7.2495 0.666016 5.82868 1.9807 5.66067 3.66434L3.67054 3.86336C2.92499 3.93791 2.38724 4.61197 2.48017 5.35545L3.498 13.4981C3.5814 14.1653 4.1486 14.666 4.82104 14.666H13.1336C13.806 14.666 14.3732 14.1653 14.4567 13.4981L15.4745 5.35545C15.5674 4.61197 15.0297 3.93791 14.2841 3.86336L12.2941 3.66435ZM12.1607 4.991C11.7386 6.34768 10.473 7.33268 8.97738 7.33268C7.48176 7.33268 6.2162 6.34767 5.79403 4.99099L3.80321 5.19007L4.82104 13.3327L13.1336 13.3327L14.1514 5.19007L12.1607 4.991ZM10.9774 3.99935C10.9774 5.10392 10.0819 5.99935 8.97738 5.99935C7.87281 5.99935 6.97738 5.10392 6.97738 3.99935C6.97738 2.89478 7.87281 1.99935 8.97738 1.99935C10.0819 1.99935 10.9774 2.89478 10.9774 3.99935Z",fill:"#8C8C8C"})),y.createElement(N,{size:"s3",color:G.colors.gray800,type:"semiBold"},W(A(r),"kg"))),y.createElement("div",{className:"record-item"},y.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("g",{clipPath:"url(#clip0_855_82991)"},y.createElement("path",{d:"M12.6055 13.9993L12.6055 1.99935C12.6055 1.26602 12.0055 0.666016 11.2721 0.666016L5.9388 0.666015C5.20547 0.666015 4.60547 1.26602 4.60547 1.99935L4.60547 13.9993C4.60547 14.7327 5.20547 15.3327 5.9388 15.3327L11.2721 15.3327C12.0055 15.3327 12.6055 14.7327 12.6055 13.9993ZM5.9388 13.9993L5.9388 1.99935L11.2721 1.99935L11.2721 3.33268L8.60547 3.33268L8.60547 4.66602L11.2721 4.66602L11.2721 5.99935L8.60547 5.99935L8.60547 7.33268L11.2721 7.33268L11.2721 8.66602L8.60547 8.66601L8.60547 9.99935L11.2721 9.99935L11.2721 11.3327L8.60547 11.3327L8.60547 12.666L11.2721 12.666L11.2721 13.9993L5.9388 13.9993Z",fill:"#8C8C8C"})),y.createElement("defs",null,y.createElement("clipPath",{id:"clip0_855_82991"},y.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(16.6055) rotate(90)"})))),y.createElement(N,{size:"s3",color:G.colors.gray800,type:"semiBold"},W(A(l),"cm"))),y.createElement("div",{className:"record-item"},y.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y.createElement("g",{clipPath:"url(#clip0_855_82994)"},y.createElement("path",{d:"M9.90072 7.83268C10.361 7.83268 10.734 7.45959 10.734 6.99935C10.734 6.53911 10.361 6.16602 9.90072 6.16602C9.44048 6.16602 9.06738 6.53911 9.06738 6.99935C9.06738 7.45959 9.44048 7.83268 9.90072 7.83268Z",fill:"#8C8C8C"}),y.createElement("path",{d:"M6.56771 7.83268C7.02795 7.83268 7.40104 7.45959 7.40104 6.99935C7.40104 6.53911 7.02795 6.16602 6.56771 6.16602C6.10747 6.16602 5.73438 6.53911 5.73438 6.99935C5.73438 7.45959 6.10747 7.83268 6.56771 7.83268Z",fill:"#8C8C8C"}),y.createElement("path",{d:"M15.528 7.56C15.3614 6.55333 14.6214 5.73333 13.6547 5.44667C13.3014 4.7 12.8014 4.04667 12.1947 3.50667C11.1414 2.56667 9.7547 2 8.2347 2C6.7147 2 5.32803 2.56667 4.2747 3.50667C3.66137 4.04667 3.16137 4.70667 2.8147 5.44667C1.84803 5.73333 1.10803 6.54667 0.941367 7.56C0.9147 7.7 0.901367 7.84667 0.901367 8C0.901367 8.15333 0.9147 8.3 0.941367 8.44C1.10803 9.44667 1.84803 10.2667 2.8147 10.5533C3.16137 11.2933 3.66137 11.9467 4.26137 12.48C5.3147 13.4267 6.70803 14 8.2347 14C9.76137 14 11.1547 13.4267 12.2147 12.48C12.8147 11.9467 13.3147 11.2867 13.6614 10.5533C14.6214 10.2667 15.3614 9.45333 15.528 8.44C15.5547 8.3 15.568 8.15333 15.568 8C15.568 7.84667 15.5547 7.7 15.528 7.56ZM12.9014 9.33333C12.8347 9.33333 12.7747 9.32 12.708 9.31333C12.5747 9.76 12.3814 10.1733 12.1347 10.5533C11.3014 11.8267 9.86803 12.6667 8.2347 12.6667C6.60137 12.6667 5.16803 11.8267 4.3347 10.5533C4.08803 10.1733 3.8947 9.76 3.76137 9.31333C3.6947 9.32 3.6347 9.33333 3.56803 9.33333C2.8347 9.33333 2.2347 8.73333 2.2347 8C2.2347 7.26667 2.8347 6.66667 3.56803 6.66667C3.6347 6.66667 3.6947 6.68 3.76137 6.68667C3.8947 6.24 4.08803 5.82667 4.3347 5.44667C5.16803 4.17333 6.60137 3.33333 8.2347 3.33333C9.86803 3.33333 11.3014 4.17333 12.1347 5.44667C12.3814 5.82667 12.5747 6.24 12.708 6.68667C12.7747 6.68 12.8347 6.66667 12.9014 6.66667C13.6347 6.66667 14.2347 7.26667 14.2347 8C14.2347 8.73333 13.6347 9.33333 12.9014 9.33333ZM8.2347 11.3333C9.5747 11.3333 10.728 10.5133 11.2347 9.33333H5.2347C5.74137 10.5133 6.8947 11.3333 8.2347 11.3333Z",fill:"#8C8C8C"})),y.createElement("defs",null,y.createElement("clipPath",{id:"clip0_855_82994"},y.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.234375)"})))),y.createElement(N,{size:"s3",color:G.colors.gray800,type:"semiBold"},W(A(n),"cm")))))};export{I as BabyGrowthLegend,O as BabyGrowthRecord,Y as ChildCard};
@@ -1 +1 @@
1
- export{a as getCachedItem,g as getDataWithCache,s as setCachedItem}from"./core-3b861395.js";import"./tslib.es6-dcf36680.js";import"./isProduction-6fc0946c.js";
1
+ export{a as getCachedItem,g as getDataWithCache,s as setCachedItem}from"./core-341c626a.js";import"./tslib.es6-44f7e5ec.js";import"./isProduction-6fc0946c.js";
package/build/esm/care.js CHANGED
@@ -1 +1 @@
1
- export{B as BookingSearchBar,t as CareTypes}from"./types-a0796acc.js";export{c as CareConstants}from"./constants-a0a981fa.js";import"./tslib.es6-dcf36680.js";import"react";import"./index-9dd60ba6.js";import"./isProduction-6fc0946c.js";import"./cookieHelper-0e8521c3.js";import"./useTranslations-b3eb31ef.js";import"./translationsContext-e7808c8f.js";import"string-format";import"lodash/debounce";import"./index-6384e385.js";import"styled-components";import"./theme-a50a1aa5.js";import"./screenSizeContext-1852eabc.js";import"vanilla-lazyload";import"lodash";import"date-fns";import"./Locale-69030fff.js";import"./gAssets.js";import"./index-78201994.js";import"react-range";import"@mantine/core";import"react-loading-skeleton";import"react-id-generator";import"lodash/shuffle";import"./useOutsideClick-6004483a.js";
1
+ export{B as BookingSearchBar,t as CareTypes}from"./types-6cfd04f0.js";export{c as CareConstants}from"./constants-a0a981fa.js";import"./tslib.es6-44f7e5ec.js";import"react";import"./index-9dd60ba6.js";import"./isProduction-6fc0946c.js";import"./cookieHelper-0e8521c3.js";import"./useTranslations-b3eb31ef.js";import"./translationsContext-e7808c8f.js";import"string-format";import"lodash/debounce";import"./index-fac4e2c1.js";import"./index-64080428.js";import"styled-components";import"./utils-11febb09.js";import"./index-db100bfe.js";import"./theme-a50a1aa5.js";import"react-loading-skeleton";import"lodash/shuffle";import"./useOutsideClick-6004483a.js";
@@ -1 +1 @@
1
- export{A as Alert,y as AmpNextPage,e as ArticleCard,s as BMICardEmbed,w as BMRCardEmbed,t as BabyGrowthCardEmbed,u as BabyPoopEmbed,B as Badge,a as BorderHeading,f as Breadcrumbs,k as Carousel,g as CategoryCard,C as Checkbox,h as CheckboxGroup,q as CookieAcceptConfirm,z as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,p as FloatButtonGroup,K as Footer,G as Grid,I as IconText,O as OvulationCardEmbed,x as PWGCardEmbed,P as Pagination,J as PillCarousel,d as Progress,i as ProgressBar,R as RateStars,r as SeoHead,S as Shadow,E as ShareContainer,H as ShareDrawer,j as SideMenu,l as StatisticCard,o as SurveyThankyouCard,v as THRCardEmbed,m as Table,n as Tabs,T as Tag,b as Toggle,U as UnderlinedLink,c as Uploader}from"./index-a5270ed4.js";export{a as AuthorBadge,A as Avatar,D as DatePicker,e as DoctorInfo,b as Dropdown,L as Logo,M as MobileBottomNavigation,g as MobileBottomNavigationIcon,P as Popup,R as Radio,c as RadioGroup,d as ScrollList,S as Slider,f as SurveyQuestionCard,T as ToolsBannerCard}from"./index.styled-af818600.js";export{B as Button}from"./index-3fe43914.js";export{D as Divider}from"./index-6d7998c5.js";export{F as Flag,L as LanguageSwitcher,d as NavigationLogoutPopup,e as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,U as UserProfileNavigation,b as UserProfileNavigationHeader,c as UserProfileNavigationStats,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-4b288a12.js";export{D as Drawer,H as Heading,I as Icon,M as Modal,N as NewBabyProfileRadio,R as RadioImageGroup}from"./index-ee06d201.js";export{I as Input}from"./index-78201994.js";export{C as Container,c as CustomReferenceDot,L as Label,M as Menu,P as PureInput,T as Text,a as TextArea,b as TextDivider}from"./index-6384e385.js";import"react";import"./tslib.es6-dcf36680.js";import"./screenSizeContext-1852eabc.js";import"styled-components";import"vanilla-lazyload";import"lodash";import"./theme-a50a1aa5.js";import"react-id-generator";import"keen-slider/react";import"./gAssets.js";import"./index-9dd60ba6.js";import"./isProduction-6fc0946c.js";import"react-range";import"date-fns";import"./Locale-69030fff.js";import"@mantine/core";import"./translationsContext-e7808c8f.js";import"string-format";import"lodash/debounce";import"./useTranslations-b3eb31ef.js";import"react-hook-form";import"./useHealthToolCache-74a46d69.js";import"./getDynamicHealthTool-831ea86d.js";import"./core-3b861395.js";import"./theme-21fb8984.js";import"@mantine/dates";import"@mantine/hooks";import"@mantine/carousel";import"./useOutsideClick-6004483a.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./getSocialList-e91ed860.js";import"date-fns/locale/hi";import"date-fns/locale/ms";import"date-fns/locale/th";import"react-day-picker/DayPickerInput";import"react-dom";import"smoothscroll-polyfill";import"./types-f57c9932.js";import"./cookieHelper-0e8521c3.js";import"slugify";import"@hookform/resolvers/yup";import"./constants-a0a981fa.js";import"./useScrollbarSize-99db33e1.js";import"recharts";
1
+ export{A as Alert,X as AmpNextPage,i as ArticleCard,K as BMICardEmbed,Q as BMRCardEmbed,L as BabyGrowthCardEmbed,N as BabyPoopEmbed,B as Badge,a as BorderHeading,j as Breadcrumbs,q as Carousel,k as CategoryCard,C as Checkbox,l as CheckboxGroup,y as CookieAcceptConfirm,D as DatePicker,Y as DateRangePicker,u as DoctorInfo,J as DueDateCardEmbed,F as FileDropdown,x as FloatButtonGroup,a0 as Footer,G as Grid,I as IconText,M as MobileBottomNavigation,z as MobileBottomNavigationIcon,V as OvulationCardEmbed,W as PWGCardEmbed,P as Pagination,$ as PillCarousel,h as Progress,m as ProgressBar,R as Radio,n as RadioGroup,g as RateStars,p as ScrollList,E as SeoHead,S as Shadow,Z as ShareContainer,_ as ShareDrawer,o as SideMenu,b as Slider,r as StatisticCard,v as SurveyQuestionCard,w as SurveyThankyouCard,O as THRCardEmbed,s as Table,t as Tabs,T as Tag,e as TextArea,f as TextDivider,c as Toggle,H as ToolsBannerCard,U as UnderlinedLink,d as Uploader}from"./index-03660d99.js";export{A as Avatar,P as Popup}from"./index-ab34085c.js";export{B as Button}from"./defaultClassWrapper-d19e31e4.js";export{A as AuthorBadge,D as Divider,a as Dropdown}from"./index-2058993e.js";export{C as Container,F as Flag,a as LanguageSwitcher,L as Logo,e as NavigationLogoutPopup,h as NavigationProfileButton,N as NavigationV2,f as ProfilePopup,P as PureInput,U as UserProfileNavigation,c as UserProfileNavigationHeader,d as UserProfileNavigationStats,g as getNavMenuContent,b as getNavMenuContentWithCache}from"./index-d3a86a58.js";export{H as Heading}from"./index-6ebadd9f.js";export{I as Input}from"./index-fac4e2c1.js";export{L as Label}from"./index-64080428.js";export{T as Text}from"./index-db100bfe.js";export{D as Drawer,I as Icon,M as Menu,a as Modal,N as NewBabyProfileRadio,R as RadioImageGroup}from"./index-fba7cd68.js";export{C as CustomReferenceDot}from"./index-182c57d1.js";import"react";import"./tslib.es6-44f7e5ec.js";import"styled-components";import"./theme-a50a1aa5.js";import"./utils-11febb09.js";import"lodash/throttle";import"keen-slider/react";import"./index-9dd60ba6.js";import"./isProduction-6fc0946c.js";import"./useTranslations-b3eb31ef.js";import"./translationsContext-e7808c8f.js";import"string-format";import"./gAssets.js";import"react-hook-form";import"./index-0f2ac9f2.js";import"@mantine/core";import"@mantine/hooks";import"./Locale-69030fff.js";import"@mantine/carousel";import"./useHealthToolCache-9718433c.js";import"./getDynamicHealthTool-896e1eee.js";import"./core-341c626a.js";import"./routing-2d333f69.js";import"@hookform/resolvers/yup";import"dayjs";import"lodash/debounce";import"date-fns";import"react-range";import"./types-f57c9932.js";import"react-day-picker/DayPickerInput";import"./useOutsideClick-6004483a.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./getSocialList-8f93036b.js";import"./lazyLoad-59e8ff6d.js";import"vanilla-lazyload";import"./cookieHelper-0e8521c3.js";import"slugify";import"./constants-a0a981fa.js";import"dayjs/plugin/relativeTime";import"./FullScreen-7153b23e.js";import"./animation-1f84197a.js";import"./useScrollbarSize-99db33e1.js";import"react-dom";import"recharts";import"lodash/chunk";
@@ -0,0 +1 @@
1
+ import{d as t,e}from"./tslib.es6-44f7e5ec.js";import{i as a}from"./isProduction-6fc0946c.js";var n={},r=function(t){if("undefined"!=typeof window){var e=void 0;try{e=JSON.parse(localStorage.getItem((a?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return e||{}}return n[t]},i=function(t,e){try{"undefined"!=typeof window?localStorage.setItem("hhg-cache-"+t,JSON.stringify({data:e,time:Date.now()})):n[t]={data:e,time:Date.now()}}catch(t){}},o=function(a,n,o,c){return void 0===c&&(c=9e5),t(void 0,void 0,void 0,(function(){var t,s;return e(this,(function(e){switch(e.label){case 0:return(t=r(a))&&t.data&&t.time&&Date.now()-t.time<c?[2,t.data]:[3,1];case 1:return n?[4,n()]:[3,3];case 2:return s=e.sent(),o&&!o(s)||i(a,s),[2,s];case 3:return[2,null]}}))}))};export{r as a,o as g,i as s};
@@ -0,0 +1 @@
1
+ import{a as e}from"./tslib.es6-44f7e5ec.js";import i,{createContext as n,useState as t,useEffect as r,useMemo as o}from"react";import a from"lodash/throttle";import{B as s}from"./utils-11febb09.js";var f=function(e){var i=String(e);if(e>=1e3){for(var n=Math.floor((""+e).length/3),t=void 0,r=2;r>=1;r--){if(((t=parseFloat((0!=n?e/Math.pow(1e3,n):e).toPrecision(r)))+"").replace(/[^a-zA-Z 0-9]+/g,"").length<=2)break}t&&t%1!=0&&(t=t.toFixed(1)),i=t+["","k","m","b","t"][n]}return i},u=n({isInit:!0}),d=function(e){var i=function(e){return"number"==typeof e?e:"undefined"!=typeof window&&window.innerWidth||0}(e);return{smallMobile:i<s.BREAK_POINT_SMALL_MOBILE,mobile:i>=s.BREAK_POINT_SMALL_MOBILE&&i<s.BREAK_POINT_MOBILE,tablet:i>=s.BREAK_POINT_MOBILE&&i<s.BREAK_POINT_TABLET,pc:i>=s.BREAK_POINT_TABLET&&i<s.BREAK_POINT_PC,xl:i>=s.BREAK_POINT_PC}},c=function(n){var s=n.children,f=t((function(){return{isInit:!0}})),c=f[0],_=f[1];r((function(){var e=a((function(){_({width:window.innerWidth,height:window.innerHeight,isInit:!1})}),200);return window.addEventListener("resize",e,{passive:!0}),function(){window.removeEventListener("resize",e)}}),[]);var l=o((function(){return d(c.width)}),[c.width]);return i.createElement(u.Provider,{value:e(e({},c),{sizeGroups:l})},s)},_=function(e){return e?{id:e.id,name:e.name,icon:e.fruit_icon}:{}};export{u as S,f as a,c as b,_ as f,d as g};
@@ -0,0 +1 @@
1
+ import{_ as n,c as a,a as o}from"./tslib.es6-44f7e5ec.js";import r,{forwardRef as t}from"react";import{t as e}from"./theme-a50a1aa5.js";import i,{keyframes as d}from"styled-components";var s,l,c,p,g,h,m,b,u,x,y=d(s||(s=n(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"],["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"]))),v=i.svg(l||(l=n([""],[""]))),f=i.circle(c||(c=n([""],[""]))),k=i.svg(p||(p=n(["\n animation: "," 1.2s linear infinite;\n"],["\n animation: "," 1.2s linear infinite;\n"])),y),C=i.path(g||(g=n([""],[""]))),w=i.span(h||(h=n(["\n position: relative;\n display: flex;\n align-items: center;\n\n svg + svg {\n position: absolute;\n left: 0;\n }\n"],["\n position: relative;\n display: flex;\n align-items: center;\n\n svg + svg {\n position: absolute;\n left: 0;\n }\n"]))),z=i.span(m||(m=n(["\n display: flex;\n align-items: center;\n justify-content: center;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n"]))),B=i.span(b||(b=n([""],[""]))),E=i.span(u||(u=n(["\n display: flex;\n align-items: center;\n justify-content: center;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n"]))),P=i.button(x||(x=n(["\n width: auto;\n border-radius: 6px;\n\n &[data-theme='marryBaby'] {\n border-radius: 16px;\n }\n cursor: pointer;\n font-weight: ",";\n transition: background-color 0.3s, border-color 0.3s;\n\n "," {\n display: flex;\n align-items: center;\n\n & + "," {\n margin-left: 8px;\n }\n }\n\n &[data-size='lg'] {\n padding: 12px 24px;\n font-size: 16px;\n line-height: 24px;\n\n "," {\n svg,\n img {\n max-height: 24px;\n }\n }\n }\n\n &[data-size='md'] {\n padding: 9px 24px;\n font-size: 14px;\n line-height: 22px;\n\n "," {\n svg,\n img {\n max-height: 22px;\n }\n }\n }\n\n &[data-size='sm'] {\n padding: 5px 24px;\n font-size: 14px;\n line-height: 22px;\n font-weight: ",";\n\n "," {\n svg,\n img {\n max-height: 22px;\n }\n }\n }\n\n &[data-color='primary'] {\n background-color: ",";\n border: 1px solid ",";\n color: ",";\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n }\n\n &[data-theme='marryBaby'] {\n border: solid 2px ",";\n background-color: ",";\n\n &[data-has-icon='true'] {\n &:hover[data-is-loading='false'] svg {\n path {\n fill: ",";\n }\n }\n }\n }\n\n &:hover:not(:disabled)[data-is-loading='false'] {\n background-color: ",";\n\n &[data-theme='marryBaby'] {\n border: solid 2px ",";\n background-color: ",";\n color: ",";\n }\n }\n\n &:not(:is([disabled], [data-is-loading='true'])):active {\n background-color: ",";\n }\n &[data-theme='marryBaby'] {\n &:not(:is([disabled], [data-is-loading='true'])):active {\n background-color: ",";\n }\n }\n\n &[data-is-loading='true'] {\n &[data-theme='marryBaby'] {\n "," {\n stroke: white;\n }\n\n "," {\n stroke: transparent;\n }\n }\n }\n }\n\n &[data-color='secondary'] {\n border: solid 2px ",";\n background-color: ",";\n color: ",";\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n\n &:hover[data-is-loading='false'] svg {\n path {\n fill: ",";\n }\n }\n }\n\n &[data-theme='marryBaby'] {\n border-color: ",";\n background-color: transparent;\n color: ",";\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n\n &:hover[data-is-loading='false'] svg {\n path {\n fill: ",";\n }\n }\n }\n }\n\n &[data-size='md'] {\n border-width: 1.5px;\n }\n\n &[data-size='sm'] {\n border-width: 1px;\n font-size: 13px;\n line-height: 20px;\n }\n\n &:hover[data-is-loading='false'] {\n border-color: ",";\n background-color: ",";\n color: ",";\n\n &[data-theme='marryBaby'] {\n border-color: ",";\n background-color: ",";\n }\n }\n\n &:not(:is([disabled], [data-is-loading='true'])):active {\n border-color: ",";\n background-color: ",";\n color: ",";\n }\n &[data-theme='marryBaby'] {\n &:not(:is([disabled], [data-is-loading='true'])):active {\n border-color: ",";\n background-color: ",";\n }\n }\n }\n\n &[data-color='tertiary'] {\n border: solid 2px ",";\n background-color: transparent;\n color: ",";\n\n &[data-size='md'] {\n border-width: 1.5px;\n font-weight: ",";\n }\n\n &[data-size='sm'] {\n font-size: 13px;\n line-height: 20px;\n border-width: 1px;\n }\n\n &:hover[data-is-loading='false'] {\n &[data-theme='marryBaby'] {\n color: ",";\n background-color: ",";\n }\n }\n\n &[data-theme='marryBaby'] {\n color: ",";\n border-color: ",";\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n\n &:hover[data-is-loading='false'] svg {\n path {\n fill: ",";\n }\n }\n }\n }\n\n &[data-is-loading='true'] {\n &[data-theme='marryBaby'] {\n "," {\n stroke: ",";\n }\n }\n }\n }\n\n &[data-color='ghost'] {\n border: 0;\n background-color: transparent;\n color: ",";\n\n &[data-size='sm'] {\n padding: 5px 12px;\n font-size: 12px;\n line-height: 18px;\n }\n\n &:disabled {\n border-color: 0;\n background-color: transparent;\n color: ",";\n cursor: not-allowed;\n }\n }\n\n &[data-color='transparent'] {\n border: none;\n background-color: transparent;\n\n &[data-size='lg'] {\n font-size: 16px;\n line-height: 24px;\n padding: 0;\n }\n\n &[data-size='md'] {\n font-size: 14px;\n line-height: 24px;\n padding: 0;\n }\n\n &[data-size='sm'] {\n font-size: 13px;\n line-height: 20px;\n padding: 0;\n }\n }\n\n &[data-color='danger'] {\n border: solid 2px ",";\n background-color: ",";\n color: ",";\n\n &[data-size='md'] {\n border-width: 1.5px;\n }\n\n &[data-size='sm'] {\n border-width: 1px;\n font-size: 13px;\n line-height: 20px;\n }\n\n &:hover[data-is-loading='false'] {\n border-color: ",";\n background-color: ",";\n color: ",";\n }\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n }\n\n &[data-is-loading='true'] {\n "," {\n stroke: white;\n }\n\n "," {\n stroke: transparent;\n }\n }\n }\n\n &[data-color='success'] {\n background-color: ",";\n color: ",";\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n }\n\n &[data-theme='marryBaby'] {\n color: ",";\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n }\n }\n\n &[data-is-loading='true'] {\n "," {\n stroke: ",";\n }\n\n "," {\n stroke: transparent;\n }\n\n &[data-theme='marryBaby'] {\n "," {\n stroke: ",";\n }\n }\n }\n }\n\n &[data-theme='marryBaby']:disabled,\n &:disabled {\n border-color: ",";\n background-color: ",";\n color: ",";\n cursor: not-allowed;\n }\n\n &[data-block='true'] {\n width: 100%;\n padding: 12px auto;\n }\n\n &[data-event-category] > * {\n pointer-events: none;\n }\n\n &:focus-visible {\n outline: 2px solid black;\n }\n"],["\n width: auto;\n border-radius: 6px;\n\n &[data-theme='marryBaby'] {\n border-radius: 16px;\n }\n cursor: pointer;\n font-weight: ",";\n transition: background-color 0.3s, border-color 0.3s;\n\n "," {\n display: flex;\n align-items: center;\n\n & + "," {\n margin-left: 8px;\n }\n }\n\n &[data-size='lg'] {\n padding: 12px 24px;\n font-size: 16px;\n line-height: 24px;\n\n "," {\n svg,\n img {\n max-height: 24px;\n }\n }\n }\n\n &[data-size='md'] {\n padding: 9px 24px;\n font-size: 14px;\n line-height: 22px;\n\n "," {\n svg,\n img {\n max-height: 22px;\n }\n }\n }\n\n &[data-size='sm'] {\n padding: 5px 24px;\n font-size: 14px;\n line-height: 22px;\n font-weight: ",";\n\n "," {\n svg,\n img {\n max-height: 22px;\n }\n }\n }\n\n &[data-color='primary'] {\n background-color: ",";\n border: 1px solid ",";\n color: ",";\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n }\n\n &[data-theme='marryBaby'] {\n border: solid 2px ",";\n background-color: ",";\n\n &[data-has-icon='true'] {\n &:hover[data-is-loading='false'] svg {\n path {\n fill: ",";\n }\n }\n }\n }\n\n &:hover:not(:disabled)[data-is-loading='false'] {\n background-color: ",";\n\n &[data-theme='marryBaby'] {\n border: solid 2px ",";\n background-color: ",";\n color: ",";\n }\n }\n\n &:not(:is([disabled], [data-is-loading='true'])):active {\n background-color: ",";\n }\n &[data-theme='marryBaby'] {\n &:not(:is([disabled], [data-is-loading='true'])):active {\n background-color: ",";\n }\n }\n\n &[data-is-loading='true'] {\n &[data-theme='marryBaby'] {\n "," {\n stroke: white;\n }\n\n "," {\n stroke: transparent;\n }\n }\n }\n }\n\n &[data-color='secondary'] {\n border: solid 2px ",";\n background-color: ",";\n color: ",";\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n\n &:hover[data-is-loading='false'] svg {\n path {\n fill: ",";\n }\n }\n }\n\n &[data-theme='marryBaby'] {\n border-color: ",";\n background-color: transparent;\n color: ",";\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n\n &:hover[data-is-loading='false'] svg {\n path {\n fill: ",";\n }\n }\n }\n }\n\n &[data-size='md'] {\n border-width: 1.5px;\n }\n\n &[data-size='sm'] {\n border-width: 1px;\n font-size: 13px;\n line-height: 20px;\n }\n\n &:hover[data-is-loading='false'] {\n border-color: ",";\n background-color: ",";\n color: ",";\n\n &[data-theme='marryBaby'] {\n border-color: ",";\n background-color: ",";\n }\n }\n\n &:not(:is([disabled], [data-is-loading='true'])):active {\n border-color: ",";\n background-color: ",";\n color: ",";\n }\n &[data-theme='marryBaby'] {\n &:not(:is([disabled], [data-is-loading='true'])):active {\n border-color: ",";\n background-color: ",";\n }\n }\n }\n\n &[data-color='tertiary'] {\n border: solid 2px ",";\n background-color: transparent;\n color: ",";\n\n &[data-size='md'] {\n border-width: 1.5px;\n font-weight: ",";\n }\n\n &[data-size='sm'] {\n font-size: 13px;\n line-height: 20px;\n border-width: 1px;\n }\n\n &:hover[data-is-loading='false'] {\n &[data-theme='marryBaby'] {\n color: ",";\n background-color: ",";\n }\n }\n\n &[data-theme='marryBaby'] {\n color: ",";\n border-color: ",";\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n\n &:hover[data-is-loading='false'] svg {\n path {\n fill: ",";\n }\n }\n }\n }\n\n &[data-is-loading='true'] {\n &[data-theme='marryBaby'] {\n "," {\n stroke: ",";\n }\n }\n }\n }\n\n &[data-color='ghost'] {\n border: 0;\n background-color: transparent;\n color: ",";\n\n &[data-size='sm'] {\n padding: 5px 12px;\n font-size: 12px;\n line-height: 18px;\n }\n\n &:disabled {\n border-color: 0;\n background-color: transparent;\n color: ",";\n cursor: not-allowed;\n }\n }\n\n &[data-color='transparent'] {\n border: none;\n background-color: transparent;\n\n &[data-size='lg'] {\n font-size: 16px;\n line-height: 24px;\n padding: 0;\n }\n\n &[data-size='md'] {\n font-size: 14px;\n line-height: 24px;\n padding: 0;\n }\n\n &[data-size='sm'] {\n font-size: 13px;\n line-height: 20px;\n padding: 0;\n }\n }\n\n &[data-color='danger'] {\n border: solid 2px ",";\n background-color: ",";\n color: ",";\n\n &[data-size='md'] {\n border-width: 1.5px;\n }\n\n &[data-size='sm'] {\n border-width: 1px;\n font-size: 13px;\n line-height: 20px;\n }\n\n &:hover[data-is-loading='false'] {\n border-color: ",";\n background-color: ",";\n color: ",";\n }\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n }\n\n &[data-is-loading='true'] {\n "," {\n stroke: white;\n }\n\n "," {\n stroke: transparent;\n }\n }\n }\n\n &[data-color='success'] {\n background-color: ",";\n color: ",";\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n }\n\n &[data-theme='marryBaby'] {\n color: ",";\n\n &[data-has-icon='true'] {\n svg {\n path {\n fill: ",";\n }\n }\n }\n }\n\n &[data-is-loading='true'] {\n "," {\n stroke: ",";\n }\n\n "," {\n stroke: transparent;\n }\n\n &[data-theme='marryBaby'] {\n "," {\n stroke: ",";\n }\n }\n }\n }\n\n &[data-theme='marryBaby']:disabled,\n &:disabled {\n border-color: ",";\n background-color: ",";\n color: ",";\n cursor: not-allowed;\n }\n\n &[data-block='true'] {\n width: 100%;\n padding: 12px auto;\n }\n\n &[data-event-category] > * {\n pointer-events: none;\n }\n\n &:focus-visible {\n outline: 2px solid black;\n }\n"])),e.sizes.fwBold,B,z,B,B,e.sizes.fwSemiBold,B,e.colors.primaryBase,e.colors.primaryBase,e.colors.white,e.colors.white,e.mbColors.pink,e.mbColors.pink,e.mbColors.pink,e.colors.primaryHover,e.mbColors.pink,e.colors.white,e.mbColors.pink,e.colors.primaryActive,e.mbColors.pink,C,f,e.colors.primaryBase,e.colors.white,e.colors.primaryBase,e.colors.primaryBase,e.colors.white,e.mbColors.pink,e.mbColors.pink,e.mbColors.pink,e.colors.white,e.colors.primaryHover,e.colors.primaryHover,e.colors.white,e.mbColors.pink,e.mbColors.pink,e.colors.primaryActive,e.colors.primaryActive,e.colors.white,e.mbColors.pink,e.mbColors.pink,e.colors.gray300,e.colors.gray800,e.sizes.fwSemiBold,e.colors.white,e.mbColors.pink,e.mbColors.pink,e.mbColors.pink,e.mbColors.pink,e.colors.white,C,e.mbColors.pink,e.colors.primaryBase,e.colors.gray300,e.colors.red600,e.colors.red600,e.colors.white,e.colors.red200,e.colors.red200,e.colors.white,e.colors.white,C,f,e.colors.green50,e.colors.green800,e.colors.green800,e.mbColors.mint,e.mbColors.mint,C,e.colors.green800,f,C,e.mbColors.mint,e.colors.gray300,e.colors.gray300,e.colors.white),N=function(n){var t=n.size,e=n.color,i=void 0===e?"primary":e,d=n.theme,s=void 0===d?"helloSites":d,l=n.isDisabled,c=n.isBlock,p=n.title,g=n.className,h=n.onClick,m=n.icon,b=n.children,u=n.isLoading,x=void 0!==u&&u,y=n.loadingText,N=n.dataEventCategory,A=n.dataEventAction,L=n.dataEventLabel,j=n.dataProductChannel,S=n.dataProductSku,T=n.dataProductBrand,H=n.dataProductName,D=n.dataProductPrice,F=n.dataProductCategory,M=n.dataProductPosition,V=n.isAmp,W=n.on,Z=n.dataVarsTracking,_=n.type,q=a(n,["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"]),G=V?{"data-vars-event-category":N,"data-vars-event-action":A,"data-vars-event-label":L,"data-vars-product-channel":j,"data-vars-product-sku":S,"data-vars-product-brand":T,"data-vars-product-name":H,"data-vars-product-price":D,"data-vars-product-category":F,"data-vars-product-position":M,"data-vars-tracking":Z,on:W}:{"data-event-category":N,"data-event-action":A,"data-event-label":L,"data-product-channel":j,"data-product-sku":S,"data-product-brand":T,"data-product-name":H,"data-product-price":D,"data-product-category":F,"data-product-position":M},I=r.createElement(w,null,r.createElement(v,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement(f,{cx:"12",cy:"12",r:"10",stroke:"white",strokeWidth:"4"})),r.createElement(k,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},r.createElement("mask",{id:"path-1-inside-1",fill:"white"},r.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.createElement(C,{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.createElement(P,o({},G,{className:g,"data-size":t,"data-color":i,"data-block":c,"data-has-icon":!!m||void 0,"data-theme":s,disabled:l,onClick:function(n){!x&&!l&&h&&h(n)},title:p,"data-is-loading":x,type:_},q),r.createElement(E,null,(m||x)&&r.createElement(B,{className:"button-icon"},x?I:m," "),b&&r.createElement(z,null,x&&y||b)))},A=function(n,e){return t((function(t,i){var d=t.className,s=a(t,["className"]);return r.createElement(n,o({ref:i,className:"".concat(e," ").concat(d||"")},s))}))};export{N as B,A as g};
package/build/esm/ecom.js CHANGED
@@ -1 +1 @@
1
- import{_ as o}from"./tslib.es6-dcf36680.js";import{t as e}from"./theme-a50a1aa5.js";import"./index-9dd60ba6.js";import{i}from"./isProduction-6fc0946c.js";export{t as EcomTypes}from"./types-f57c9932.js";var l,n=Object.freeze({__proto__:null}),a=Object.freeze({__proto__:null}),r="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,s="undefined"==typeof window,u=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",c=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",d=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,m=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",p={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},_=r?"http://localhost:3001":i?"https://".concat(p[u]):"https://discover.".concat(p[u]),h=i?"https://wp.".concat(p[u],"/"):"https://staging.".concat(p[u],"/"),E=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:"https://together.".concat(p[u],"/"),v="".concat(_,"/community"),I=process.env.NEXT_PUBLIC_SSO_URL||"http://staging-id.hellobacsi.com/";!function(o){o[o.FEMALE=0]="FEMALE",o[o.MALE=1]="MALE",o[o.ANY=2]="ANY"}(l||(l={}));var T={"vi-VN":{HOME:function(){return JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#website","@type":"WebSite",description:"Hello Bacsi - Health Information",inLanguage:"vi-VN",name:"Hello Bacsi",potentialAction:[{"@type":"SearchAction","query-input":"required name=search_term_string",target:"https://hellobacsi.com/shop/tim-kiem/?keyword={search_term_string}"}],url:"https://hellobacsi.com/shop/"}]})},CATEGORY:function(o,e,t){return void 0===o&&(o=""),void 0===e&&(e=0),void 0===t&&(t=[]),JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/danh-muc","@type":"WebPage",name:"Hello Bacsi - Danh Muc",url:"https://hellobacsi.com/shop/danh-muc"}}]},{"@type":"ItemList",url:o,numberOfItems:e,itemListElement:t}]})},BRAND:function(o,e,t){return void 0===o&&(o=""),void 0===e&&(e=0),void 0===t&&(t=[]),JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/thuong-hieu","@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/thuong-hieu"}}]},{"@type":"ItemList",url:o,numberOfItems:e,itemListElement:t}]})},BRAND_DETAIL:function(o,e,t){return void 0===o&&(o=""),void 0===e&&(e=0),JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/thuong-hieu/#brand","@type":"BrandDetail",itemListElement:[{"@type":"Item",item:{"@id":"https://hellobacsi.com/shop".concat(o),"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop".concat(o)}}]},{"@type":"BrandDetail",url:"https://hellobacsi.com/shop".concat(o),numberOfItems:e,itemListElement:null!=t?t:{}}]})},PRODUCT_DETAIL:function(o,e,t){return void 0===o&&(o=""),void 0===e&&(e=0),JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/san-pham/#product","@type":"ProductDetail",itemListElement:[{"@type":"Item",item:{"@id":"https://hellobacsi.com/shop/san-pham/".concat(o),"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/san-pham/".concat(o)}}]},{"@type":"BrandDetail",url:o,numberOfItems:e,itemListElement:null!=t?t:{}}]})}}},g=Object.freeze({__proto__:null,isDevelopment:r,IS_SSR:s,locale:u,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:c,GOOGLE_ADMIN_LOCATION_KEY:d,GOOGLE_CLIENT_ID:m,GOOGLE_CALENDAR_API_KEY:"",basePath:"shop",SSO_USER_BASE_PATH:"user",CARE_BASE_PATH:"care",COMMUNITY_BASE_PATH:"community",HEALTH_TOOLs_BASE_PATH:"health-tools",NOTIFICATION_TIME_OUT:3e3,DOMAIN_LOCALES:p,DISCOVER_URL_FE:_,DISCOVER_URL_BE:h,TOGETHER_URL_BE:E,TOGETHER_URL_FE:v,SSO_URL:I,DISCOVERY_FOOTER_URL:"#",HEALTH_CARE_FOOTER_URL:"#",HEALTH_TOOLS_FOOTER_URL:"#",HEALTH_TOGETHER_FOOTER_URL:"#",POLICIES_FOOTER_URL:"#",FAQ_FOOTER_URL:"#",SITEMAP_FOOTER_URL:"#",ABOUT_US_FOOTER_URL:"#",EXECUTIVE_BIOS_FOOTER_URL:"#",ADVERTISING_FOOTER_URL:"#",CONTACT_US_FOOTER_URL:"#",ABOUT_GO_CARE_FOOTER_URL:"#",get Gender(){return l},EMAIL_REGEX:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,COUNTRY_SITENAME:{ID:"Hello Sehat",TH:"Hello Khunmor",MY:"Hello Doktor",KH:"Hello Krupet",TW:"Hello Yishi",MM:"Hello Sayarwon",IN:"Hello Swasthya",VN:"Hello Bacsi",PH:"Hello Doctor"},LOCALE_SPECS:{"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png"}},SOCIAL_MEDIA:{"vi-VN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellobacsi/",INSTAGRAM:"https://www.instagram.com/hellobacsi/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCYHzHDXngnB7jkmcQgXwE0w"},"en-PH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoctorPH/",INSTAGRAM:"https://www.instagram.com/hellodoctor_ph/",TWITTER:null},"km-KH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokrupet/",INSTAGRAM:"https://www.instagram.com/hellokrupetofficial/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCVK4p9YPIMkmoerk3X-y-TQ"},"ms-MY":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoktorMY/",INSTAGRAM:"https://www.instagram.com/_hellodoktor_/",TWITTER:null},"id-ID":{LINKEDIN:"https://www.linkedin.com/company/hello-sehat/",FACEBOOK:"https://www.facebook.com/hellosehat",INSTAGRAM:"https://www.instagram.com/hellosehat/",TWITTER:"https://twitter.com/HelloSehat"},"my-MM":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellosayarwon/",INSTAGRAM:"https://www.facebook.com/hellosayarwon/",TWITTER:null},"zh-TW":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/helloyishi/",INSTAGRAM:"https://www.instagram.com/helloyishi/",TWITTER:null},"hi-IN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloSwasthya/",INSTAGRAM:"https://www.instagram.com/hello_swasthya/",TWITTER:null},"th-TH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokhunmor/",INSTAGRAM:"https://www.instagram.com/hellokhunmor/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCbdbow4UhKfa7rqIhclNPIQ/"}},FLAG_LINKS:{ID:"https://hellosehat.com/",TH:"https://hellokhunmor.com/",MY:"https://hellodoktor.com/",KH:"https://hellokrupet.com/",TW:"https://helloyishi.com.tw/",MM:"https://hellosayarwon.com/",IN:"https://helloswasthya.com/",VN:"https://hellobacsi.com/",PH:"https://hellodoctor.com.ph/"},STATIC_PAGES:{"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"}},FAVICONS:{"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}]},LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},MAX_ALLOWED_IMG_SIZE:20971520,COUNTRY_CODE_BY_LOCALE:{"vi-VN":"vn","id-ID":"id","ms-MY":"my","km-KH":"kh","en-PH":"ph","th-TH":"th","my-MM":"mm","zh-TW":"tw","hi-IN":"in"},COUNTRY_CURRENCY_SYMBOL:{"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},CURRENCY_PREFIX:{IDR:"Dimulai dari"},LOCALISED_SLUGS:{"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}},HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_CARE_LOCALES:["vi-VN","id-ID","en-PH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:T});function O(o){return null!=o}var A={formatAutoCompleteAddress:function(o){return o&&o.place_id?{placeId:o.place_id,description:o.description||""}:null},formatPrice:function(o,e){var t="string"==typeof o?parseInt(o):o;return new Intl.NumberFormat(e||"vi-VN").format(t)},formatHotSearchKeyword:function(o){return{text:(null==o?void 0:o.name)||""}},formatHelpfulUrl:function(o){return{name:(null==o?void 0:o.name)||"",featuredImage:(null==o?void 0:o.featured_image)||"",url:(null==o?void 0:o.url)||""}},formatCategory:function(o,t,i){var l,n,a,r=i?i+"/"+o.slug:o.slug,s=(null===(n=null===(l=null==o?void 0:o.children)||void 0===l?void 0:l.map)||void 0===n?void 0:n.call(l,(function(e){return A.formatCategory(e,o.id,r)})))||[];return{id:null==o?void 0:o.id,name:(null==o?void 0:o.name)||"",logo:(null==o?void 0:o.logo)||"",slug:(null==o?void 0:o.slug)||"",fullSlug:r||"",children:s,backgroundColor:o.color||e.colors.teal50,parentId:t||0,products:(null===(a=o.products)||void 0===a?void 0:a.map(A.formatProduct))||[]}},formatFooterInfo:function(o){var e,t,i,l,n,a,r,s,u,c,d,m,p,_,h,E,v,I,T,g=(null===(i=null===(t=null===(e=null==o?void 0:o.branch)||void 0===e?void 0:e.branch)||void 0===t?void 0:t.map)||void 0===i?void 0:i.call(t,(function(o){return{flag:o.flag||"",name:o.name||"",url:o.url||""}})))||[],O=(null===(a=null===(n=null===(l=null==o?void 0:o.general)||void 0===l?void 0:l.verified)||void 0===n?void 0:n.map)||void 0===a?void 0:a.call(n,(function(o){return{image:o.image||"",url:o.url||""}})))||[],A=(null===(s=null===(r=null==o?void 0:o.menu)||void 0===r?void 0:r.map)||void 0===s?void 0:s.call(r,(function(o){var e,t;return{menu_title:o.menu_title,items:null===(t=null===(e=o.items)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,(function(o){return{title:o.title,url:o.url}}))}})))||[],f=(null===(d=null===(c=null===(u=null==o?void 0:o.social)||void 0===u?void 0:u.socials)||void 0===c?void 0:c.map)||void 0===d?void 0:d.call(c,(function(o){return{icon:o.icon||"",name:o.name||"",url:o.url||""}})))||[];return{branch:{title:(null===(m=null==o?void 0:o.branch)||void 0===m?void 0:m.title)||"",branch:g},general:{logo:null!==(_=null===(p=null==o?void 0:o.general)||void 0===p?void 0:p.logo)&&void 0!==_?_:"",content:null!==(E=null===(h=null==o?void 0:o.general)||void 0===h?void 0:h.content)&&void 0!==E?E:"",copyright:null!==(I=null===(v=null==o?void 0:o.general)||void 0===v?void 0:v.copyright)&&void 0!==I?I:"",verified:O},menu:A,social:{title:(null===(T=null==o?void 0:o.social)||void 0===T?void 0:T.title)||"",socials:f}}},formatNavigation:function(o){var e,t,i,l,n,a;return{hotSearchKeywords:(null===(t=null===(e=null==o?void 0:o.hot_search_keywords)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,A.formatHotSearchKeyword))||[],helpfulUrls:(null===(l=null===(i=null==o?void 0:o.helpful_urls)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,A.formatHelpfulUrl))||[],categories:(null===(a=null===(n=null==o?void 0:o.categories)||void 0===n?void 0:n.map)||void 0===a?void 0:a.call(n,(function(o){return A.formatCategory(o)})))||[],footer:A.formatFooterInfo(null==o?void 0:o.footer),storeId:(null==o?void 0:o.store_id)||0,customerId:(null==o?void 0:o.customer_id)||0,cartItemsQty:"number"==typeof(null==o?void 0:o.cart_items_qty)?o.cart_items_qty:null}},formatPriceInfo:function(o){return o?{final:o.final||0,regular:o.regular||0,discountPercent:o.discount_percent||0}:null},formatProduct:function(o){var e,t,i,l;if(!o)return null;var n={final:0,regular:0,discountPercent:0};return{id:o.id||0,price:o.price&&A.formatPriceInfo(o.price)||n,thumbnail:o.thumbnail||"",name:o.name||"",averageRating:Number((o.average_rating||0).toFixed(2)),reviewsCount:o.reviews_count||0,tag:o.tag||null,sku:o.sku||"",slug:o.slug||"",images:o.images||[],tags:o.tags||[],unit:o.unit||"",brand:o.brand?{name:o.brand.name||"",image:o.brand.image||"",slug:o.brand.slug||"",productsCount:o.brand.products_count||0}:null,description:o.description||"",productPromotions:(null===(t=null===(e=o.product_promotions)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,A.formatProductPromotion).filter(O))||[],categories:(null===(l=null===(i=o.categories)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,(function(o){return A.formatCategory(o)})).filter(O))||[],isInStock:(null==o?void 0:o.is_in_stock)||!1}},formatBanner:function(o){return o?{name:o.name||"",url:o.url||"",featuredImage:o.featured_image||"",alt:o.image_alt}:null},formatBlogPost:function(o){var e,t;return o?{title:o.title||"",image:o.image||"",link:o.link||"",postData:o.post_data?{reviewed:o.post_data.reviewed?{author:A.formatBlogPostDataReviewedUser(o.post_data.reviewed.author||void 0),editor:A.formatBlogPostDataReviewedUser(o.post_data.reviewed.editor||void 0),expert:A.formatBlogPostDataReviewedUser(o.post_data.reviewed.expert||void 0),factCheck:A.formatBlogPostDataReviewedUser(o.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(o.post_data.reviewed.is_author)}:null,categories:o.post_data.categories?null===(t=(e=o.post_data.categories).map)||void 0===t?void 0:t.call(e,(function(o){return{termId:o.term_id||0,name:o.name||"",permalink:o.permalink||"",textColor:o.text_color||""}})):[],postDate:o.post_data.post_date||"",postModified:o.post_data.post_modified||"",modifiedTime:o.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:function(o){return o?{id:o.ID||0,userId:o.user_id||0,formerRole:o.former_role||"",role:o.role||"",slug:o.slug||"",displayName:o.display_name||"",description:o.description||"",profileUrl:o.profile_url||"",avatar:o.avatar||"",avatarThumbnail:o.avatar_thumbnail||"",turnOffProfile:Boolean(o.turn_off_profile)}:null},formatBrand:function(o){var e,t,i,l;return o?{id:o.id||0,image:o.image||"",position:o.position||"",isPopular:o.is_popular||!1,summary:o.summary||"",name:o.name||"",slug:o.slug||"",description:o.description||null,banners:(null===(t=null===(e=o.banners)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,A.formatBanner).filter(O))||[],bestsellerProducts:(null===(l=null===(i=o.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,A.formatProduct).filter(O))||[]}:null},formatHomePage:function(o){var e,t,i,l,n,a,r,s,u,c,d,m,p,_,h,E,v,I,T,g;return o?{brands:o.brands?null===(t=(e=o.brands).map)||void 0===t?void 0:t.call(e,A.formatBrand).filter(O):[],hotDeals:o.hot_deals?null===(l=(i=o.hot_deals).map)||void 0===l?void 0:l.call(i,A.formatProduct).filter(O):[],newProducts:o.new_products?null===(a=(n=o.new_products).map)||void 0===a?void 0:a.call(n,A.formatProduct).filter(O):[],slideBanners:o.slide_banners?null===(s=(r=o.slide_banners).map)||void 0===s?void 0:s.call(r,A.formatBanner).filter(O):[],subBanners:o.sub_banners?null===(c=(u=o.sub_banners).map)||void 0===c?void 0:c.call(u,A.formatBanner).filter(O):[],footerBanners:o.footer_banners?null===(m=(d=o.footer_banners).map)||void 0===m?void 0:m.call(d,A.formatBanner).filter(O):[],blogPosts:o.blog_posts?null===(_=(p=o.blog_posts).map)||void 0===_?void 0:_.call(p,A.formatBlogPost).filter(O):[],popularCategories:o.popular_categories?null===(E=(h=o.popular_categories).map)||void 0===E?void 0:E.call(h,(function(o){return A.formatCategory(o)})).filter(O):[],suggestProducts:o.suggest_products?null===(I=(v=o.suggest_products).map)||void 0===I?void 0:I.call(v,(function(o){return A.formatCategory(o)})).filter(O):[],promotions:o.promotions?null===(g=(T=o.promotions).map)||void 0===g?void 0:g.call(T,(function(o){return A.formatPromotion(o)})).filter(O):[]}:null},formatCategoryPage:function(o){var e,t,i,l;return o?{id:o.id||0,name:o.name||"",slug:o.slug||"",description:o.description||null,banners:(null===(t=null===(e=o.banners)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,A.formatBanner).filter(O))||[],bestsellerProducts:(null===(l=null===(i=o.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,A.formatProduct).filter(O))||[]}:null},formatBrandPage:function(o){return o?A.formatBrand(o):null},formatPagination:function(o){return o?{current:o.current||0,first:o.first||0,itemsPerPage:o.items_per_page||0,last:o.last||0,next:o.next||0,prev:o.prev||0,totalItems:o.total_items||0}:null},formatProductDetailPage:function(e){var t,i,l,n,a,r,s,u;return e?o(o({},A.formatProduct(e)),{relatedProducts:(null===(i=null===(t=e.related_products)||void 0===t?void 0:t.map)||void 0===i?void 0:i.call(t,A.formatProduct).filter(O))||[],bestsellerProducts:(null===(n=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===n?void 0:n.call(l,A.formatProduct).filter(O))||[],viewedProducts:(null===(r=null===(a=e.viewed_products)||void 0===a?void 0:a.map)||void 0===r?void 0:r.call(a,A.formatProduct).filter(O))||[],promotions:(null===(u=null===(s=e.promotions)||void 0===s?void 0:s.map)||void 0===u?void 0:u.call(s,A.formatPromotion).filter(O))||[]}):null},formatProductReview:function(o){var e,t;return o?{reviewId:o.review_id||"",createdAt:o.created_at||"",title:o.title||"",detail:o.detail||"",nickname:o.nick_name||"",avatar:o.avatar||"",ratingVotes:(null===(t=null===(e=o.rating_votes)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,(function(o){return{ratingCode:o.rating_code||"",value:Number(o.value)||0,percent:Number(o.percent)||0}})))||[],images:o.images||[]}:null},formatProductPromotion:function(o){return o?{id:o.id||0,name:o.name||"",thumbnail:o.thumbnail||"",expirationDate:o.expiration_date||""}:null},formatPromotion:function(o){return o?{id:o.id||0,name:o.name||"",slug:o.slug||"",thumbnail:o.thumbnail||"",expiredDate:o.expired_date||"",banners:o.banners||[],points:0,description:o.description||"",metaTitle:o.meta_title||"",metaKeywords:o.meta_keywords||"",metaDescription:o.meta_description||""}:null},formatCustomAttributes:function(o,e){var t;return(null==o?void 0:o.length)&&(null===(t=null==o?void 0:o.find((function(o){return o.attribute_code===e})))||void 0===t?void 0:t.value)||""},formatAddress:function(o){var e,t,i,l;return o?{id:o.id||0,fullName:o.firstname||"",telephone:o.telephone||"",province:{value:null===(e=o.region)||void 0===e?void 0:e.region_id,label:null===(t=o.region)||void 0===t?void 0:t.region}||null,district:{value:A.formatCustomAttributes(o.custom_attributes,"district_id"),label:A.formatCustomAttributes(o.custom_attributes,"district")},commune:{value:A.formatCustomAttributes(o.custom_attributes,"ward_id"),label:A.formatCustomAttributes(o.custom_attributes,"ward")},street:(null===(i=null==o?void 0:o.street)||void 0===i?void 0:i.length)?null==o?void 0:o.street[0]:"",isDefault:o.default_billing&&o.default_shipping||!1,fullAddress:(null===(l=null==o?void 0:o.extension_attributes)||void 0===l?void 0:l.full_address)||""}:null},formatProvince:function(o){return(null==o?void 0:o.available_regions)?o.available_regions.map((function(o){return{value:o.id||"",label:o.name||""}})):[]},formatDistrict:function(o){return(null==o?void 0:o.districts)?o.districts.map((function(o){return{value:o.id||"",label:o.name||""}})):[]},formatCommune:function(o){return(null==o?void 0:o.communes)?o.communes.map((function(o){return{value:o.id||"",label:o.name||""}})):[]},formatOrder:function(o){var e,t;return o?{orderNumber:(null==o?void 0:o.order_number)||"",shippingData:(null==o?void 0:o.shipping_data)?{shippingMethod:o.shipping_data.shipping_method||"",shippingDescription:o.shipping_data.shipping_description||"",shippingAddress:o.shipping_data.shipping_address?{fullName:o.shipping_data.shipping_address.firstname||"",fullAddress:o.shipping_data.shipping_address.full_address||"",telephone:o.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==o?void 0:o.ordered_date)||"",status:(null==o?void 0:o.status)||null,totals:(null==o?void 0:o.totals)?{subtotal:o.totals.subtotal||0,shippingAmount:o.totals.shipping_amount||0,discountAmount:o.totals.discount_amount||0,grandTotal:o.totals.grand_total||0}:null,products:(null===(t=null===(e=null==o?void 0:o.products)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,(function(o){return{sku:o.sku||"",name:o.name||"",price:o.price||0,rowTotal:o.row_total||0,image:o.image||"",qty:o.qty||0}})))||[],paymentMethod:(null==o?void 0:o.payment_method)||""}:null},formatStatistic:function(o){var e,t,i,l,n;return o?{pending:Number(null===(e=null==o?void 0:o.find((function(o){return"pending"===o.status})))||void 0===e?void 0:e.amount)||0,processing:Number(null===(t=null==o?void 0:o.find((function(o){return"processing"===o.status})))||void 0===t?void 0:t.amount)||0,delivering:Number(null===(i=null==o?void 0:o.find((function(o){return"delivering"===o.status})))||void 0===i?void 0:i.amount)||0,complete:Number(null===(l=null==o?void 0:o.find((function(o){return"complete"===o.status})))||void 0===l?void 0:l.amount)||0,canceled:Number(null===(n=null==o?void 0:o.find((function(o){return"canceled"===o.status})))||void 0===n?void 0:n.amount)||0}:{}},formatCartItem:function(o){var e,t,i,l,n,a,r,s;return o?{itemId:o.item_id||0,sku:o.sku||"",qty:o.qty||0,name:o.name||"",price:o.price||0,basePrice:(null===(e=o.extension_attributes)||void 0===e?void 0:e.base_price)||0,productType:o.product_type||"",quoteId:o.quote_id||"",thumbnail:(null===(t=o.extension_attributes)||void 0===t?void 0:t.thumbnail)||"",rowTotal:(null===(i=o.extension_attributes)||void 0===i?void 0:i.row_total)||0,promotions:(null===(a=null===(n=null===(l=o.extension_attributes)||void 0===l?void 0:l.promotions)||void 0===n?void 0:n.map)||void 0===a?void 0:a.call(n,A.formatProductPromotion))||[],isInStock:(null===(r=o.extension_attributes)||void 0===r?void 0:r.is_in_stock)||!1,urlProduct:(null===(s=o.extension_attributes)||void 0===s?void 0:s.url_key)||""}:null},formatCartAddress:function(o){var e;return o?{customerAddressId:(null==o?void 0:o.customer_address_id)||0,id:o.id||0,region:o.region||"",regionId:o.region_id||0,regionCode:o.region_code||"",countryId:o.country_id||"",street:o.street||[],postcode:o.postcode||"",city:o.city||"",firstname:o.firstname||"",lastname:o.lastname||"",customerId:o.customer_id||0,email:o.email||"",telephone:o.telephone||"",sameAsBilling:o.same_as_billing||0,saveInAddressBook:o.save_in_address_book||0,fullAddress:(null===(e=o.extension_attributes)||void 0===e?void 0:e.full_address)||""}:null},formatEstimatedShipping:function(o){return o?{carrierCode:o.carrier_code||"",methodCode:o.method_code||"",carrierTitle:o.carrier_title||"",methodTitle:o.method_title||"",amount:o.amount||0,baseAmount:o.base_amount||0,available:o.available||!1,errorMessage:o.error_message||"",priceExclTax:o.price_excl_tax||0,priceInclTax:o.price_incl_tax||0}:null},formatCartLoggedInCustomer:function(o){var e,t,i;return o?{email:o.email||"",firstname:o.firstname||"",lastname:o.lastname||"",id:o.id||0,groupId:o.group_id||0,createdAt:o.created_at||"",updatedAt:o.updated_at||"",createdIn:o.created_in||"",storeId:o.store_id||0,websiteId:o.website_id||0,addresses:(null===(t=null===(e=o.addresses)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,A.formatCartAddress))||[],disableAutoGroupChange:o.disable_auto_group_change||0,isSubscribed:(null===(i=o.extension_attributes)||void 0===i?void 0:i.is_subscribed)||!1}:null},formatCart:function(o){var e,t,i,l,n,a,r,s,u,c,d,m,p,_;return o?{id:o.id||0,createdAt:o.created_at||"",updatedAt:o.updated_at||"",isActive:o.is_active||!1,isVirtual:o.is_virtual||!1,items:(null===(i=null===(t=null===(e=o.items)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,A.formatCartItem))||void 0===i?void 0:i.sort((function(o,e){return Number(null==e?void 0:e.isInStock)-Number(null==o?void 0:o.isInStock)})))||[],itemsCount:o.items_count||0,itemsQty:o.items_qty||0,customer:o.customer?A.formatCartLoggedInCustomer(o.customer):null,billingAddress:o.billing_address?A.formatCartAddress(o.billing_address):null,origOrderId:o.orig_order_id||0,currency:{globalCurrencyCode:(null===(l=o.currency)||void 0===l?void 0:l.global_currency_code)||"",baseCurrencyCode:(null===(n=o.currency)||void 0===n?void 0:n.base_currency_code)||"",storeCurrencyCode:(null===(a=o.currency)||void 0===a?void 0:a.store_currency_code)||"",quoteCurrencyCode:(null===(r=o.currency)||void 0===r?void 0:r.quote_currency_code)||"",storeToBaseRate:(null===(s=o.currency)||void 0===s?void 0:s.store_to_base_rate)||0,storeToQuoteRate:(null===(u=o.currency)||void 0===u?void 0:u.store_to_quote_rate)||0,baseToGlobalRate:(null===(c=o.currency)||void 0===c?void 0:c.base_to_global_rate)||0,baseToQuoteRate:(null===(d=o.currency)||void 0===d?void 0:d.base_to_quote_rate)||0},customerIsGuest:o.customer_is_guest||!1,customerNoteNotify:o.customer_note_notify||!1,customerTaxClassId:o.customer_tax_class_id||0,storeId:o.store_id||0,shippingAssignments:null===(_=null===(p=null===(m=o.extension_attributes)||void 0===m?void 0:m.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(function(o){var e,t,i;return{shipping:{address:o.shipping.address?A.formatCartAddress(o.shipping.address):null,method:(null===(e=o.shipping)||void 0===e?void 0:e.method)||""},items:(null===(i=(t=o.items).map)||void 0===i?void 0:i.call(t,A.formatCartItem))||[]}}))}:null},formatCartTotal:function(o){var e,t,i;return o?{grandTotal:o.grand_total||0,baseGrandTotal:o.base_grand_total||0,subtotal:o.subtotal||0,baseSubtotal:o.base_subtotal||0,discountAmount:o.discount_amount||0,baseDiscountAmount:o.base_discount_amount||0,subtotalWithDiscount:o.subtotal_with_discount||0,baseSubtotalWithDiscount:o.base_subtotal_with_discount||0,shippingAmount:o.shipping_amount||0,baseShippingAmount:o.base_shipping_amount||0,shippingDiscountAmount:o.shipping_discount_amount||0,baseShippingDiscountAmount:o.base_shipping_discount_amount||0,taxAmount:o.tax_amount||0,baseTaxAmount:o.base_tax_amount||0,weeeTaxAppliedAmount:o.weee_tax_applied_amount||0,shippingTaxAmount:o.shipping_tax_amount||0,baseShippingTaxAmount:o.base_shipping_tax_amount||0,subtotalInclTax:o.subtotal_incl_tax||0,shippingInclTax:o.shipping_incl_tax||0,baseShippingInclTax:o.base_shipping_incl_tax||0,baseCurrencyCode:o.base_currency_code||"",quoteCurrencyCode:o.quote_currency_code||"",itemsQty:o.items_qty||0,coupon:{couponCode:o.coupon_code||"",couponDescription:(null===(e=null==o?void 0:o.extension_attributes)||void 0===e?void 0:e.coupon_description_text)||""},items:(null===(i=null===(t=o.items)||void 0===t?void 0:t.map)||void 0===i?void 0:i.call(t,(function(o){return{itemId:o.item_id||0,price:o.price||0,basePrice:o.base_price||0,qty:o.qty||0,rowTotal:o.row_total||0,baseRowTotal:o.base_row_total||0,rowTotalWithDiscount:o.row_total_with_discount||0,taxAmount:o.tax_amount||0,baseTaxAmount:o.base_tax_amount||0,taxPercent:o.tax_percent||0,discountAmount:o.discount_amount||0,baseDiscountAmount:o.base_discount_amount||0,discountPercent:o.discount_percent||0,priceInclTax:o.price_incl_tax||0,basePriceInclTax:o.base_price_incl_tax||0,rowTotalInclTax:o.row_total_incl_tax||0,baseRowTotalInclTax:o.base_row_total_incl_tax||0,options:o.options||"",weeeTaxAppliedAmount:o.weee_tax_applied_amount||0,weeeTaxApplied:o.weee_tax_applied||0,name:o.name||""}})))||[],totalSegments:o.total_segments||[]}:null},formatPaymentMethod:function(o){return o?null==o?void 0:o.map((function(o){return{code:(null==o?void 0:o.payment_code)||"",title:(null==o?void 0:o.payment_title)||"",thumbnail:(null==o?void 0:o.payment_thumbnail)||""}})):null},formatPaymentInformation:function(o){var e;return o?{paymentMethods:A.formatPaymentMethod(null===(e=null==o?void 0:o.extension_attributes)||void 0===e?void 0:e.payment_detail_info)||[],totals:A.formatCartTotal(o.totals)}:null},formatOrderConfirmation:function(o){return o?{isSuccess:o.is_success||!1,orderInfo:A.formatOrder(o.order_info)}:null},formatCoupons:function(o){var e;return(null===(e=null==o?void 0:o.items)||void 0===e?void 0:e.length)?o.items.map((function(o){return{code:(null==o?void 0:o.code)||"",name:(null==o?void 0:o.name)||"",thumbnail:(null==o?void 0:o.thumbnail)||"",description:(null==o?void 0:o.expired_date)||""}})):null},formatShippings:function(o){return o?o.map((function(o){var e;return{carrierCode:o.carrier_code||"",methodCode:o.method_code||"",title:o.carrier_title||"",description:o.method_title||"",price:(null==o?void 0:o.base_amount)||0,thumbnail:(null===(e=null==o?void 0:o.extension_attributes)||void 0===e?void 0:e.thumbnail)||""}})):[]}},f=Object.freeze({__proto__:null,dataFormatter:A});export{n as EcomApiTypes,g as EcomConstants,f as EcomDataFormatter,a as EcomDataTypes};
1
+ import{a as o}from"./tslib.es6-44f7e5ec.js";import{t as e}from"./theme-a50a1aa5.js";import"./index-9dd60ba6.js";import{i}from"./isProduction-6fc0946c.js";export{t as EcomTypes}from"./types-f57c9932.js";var l,n=Object.freeze({__proto__:null}),a=Object.freeze({__proto__:null}),r="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,s="undefined"==typeof window,u=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",c=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",d=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,m=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",p={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},_=r?"http://localhost:3001":i?"https://".concat(p[u]):"https://discover.".concat(p[u]),h=i?"https://wp.".concat(p[u],"/"):"https://staging.".concat(p[u],"/"),E=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:"https://together.".concat(p[u],"/"),v="".concat(_,"/community"),I=process.env.NEXT_PUBLIC_SSO_URL||"http://staging-id.hellobacsi.com/";!function(o){o[o.FEMALE=0]="FEMALE",o[o.MALE=1]="MALE",o[o.ANY=2]="ANY"}(l||(l={}));var T={"vi-VN":{HOME:function(){return JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#website","@type":"WebSite",description:"Hello Bacsi - Health Information",inLanguage:"vi-VN",name:"Hello Bacsi",potentialAction:[{"@type":"SearchAction","query-input":"required name=search_term_string",target:"https://hellobacsi.com/shop/tim-kiem/?keyword={search_term_string}"}],url:"https://hellobacsi.com/shop/"}]})},CATEGORY:function(o,e,t){return void 0===o&&(o=""),void 0===e&&(e=0),void 0===t&&(t=[]),JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/danh-muc","@type":"WebPage",name:"Hello Bacsi - Danh Muc",url:"https://hellobacsi.com/shop/danh-muc"}}]},{"@type":"ItemList",url:o,numberOfItems:e,itemListElement:t}]})},BRAND:function(o,e,t){return void 0===o&&(o=""),void 0===e&&(e=0),void 0===t&&(t=[]),JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/thuong-hieu","@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/thuong-hieu"}}]},{"@type":"ItemList",url:o,numberOfItems:e,itemListElement:t}]})},BRAND_DETAIL:function(o,e,t){return void 0===o&&(o=""),void 0===e&&(e=0),JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/thuong-hieu/#brand","@type":"BrandDetail",itemListElement:[{"@type":"Item",item:{"@id":"https://hellobacsi.com/shop".concat(o),"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop".concat(o)}}]},{"@type":"BrandDetail",url:"https://hellobacsi.com/shop".concat(o),numberOfItems:e,itemListElement:null!=t?t:{}}]})},PRODUCT_DETAIL:function(o,e,t){return void 0===o&&(o=""),void 0===e&&(e=0),JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/san-pham/#product","@type":"ProductDetail",itemListElement:[{"@type":"Item",item:{"@id":"https://hellobacsi.com/shop/san-pham/".concat(o),"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/san-pham/".concat(o)}}]},{"@type":"BrandDetail",url:o,numberOfItems:e,itemListElement:null!=t?t:{}}]})}}},g=Object.freeze({__proto__:null,isDevelopment:r,IS_SSR:s,locale:u,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:c,GOOGLE_ADMIN_LOCATION_KEY:d,GOOGLE_CLIENT_ID:m,GOOGLE_CALENDAR_API_KEY:"",basePath:"shop",SSO_USER_BASE_PATH:"user",CARE_BASE_PATH:"care",COMMUNITY_BASE_PATH:"community",HEALTH_TOOLs_BASE_PATH:"health-tools",NOTIFICATION_TIME_OUT:3e3,DOMAIN_LOCALES:p,DISCOVER_URL_FE:_,DISCOVER_URL_BE:h,TOGETHER_URL_BE:E,TOGETHER_URL_FE:v,SSO_URL:I,DISCOVERY_FOOTER_URL:"#",HEALTH_CARE_FOOTER_URL:"#",HEALTH_TOOLS_FOOTER_URL:"#",HEALTH_TOGETHER_FOOTER_URL:"#",POLICIES_FOOTER_URL:"#",FAQ_FOOTER_URL:"#",SITEMAP_FOOTER_URL:"#",ABOUT_US_FOOTER_URL:"#",EXECUTIVE_BIOS_FOOTER_URL:"#",ADVERTISING_FOOTER_URL:"#",CONTACT_US_FOOTER_URL:"#",ABOUT_GO_CARE_FOOTER_URL:"#",get Gender(){return l},EMAIL_REGEX:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,COUNTRY_SITENAME:{ID:"Hello Sehat",TH:"Hello Khunmor",MY:"Hello Doktor",KH:"Hello Krupet",TW:"Hello Yishi",MM:"Hello Sayarwon",IN:"Hello Swasthya",VN:"Hello Bacsi",PH:"Hello Doctor"},LOCALE_SPECS:{"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png"}},SOCIAL_MEDIA:{"vi-VN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellobacsi/",INSTAGRAM:"https://www.instagram.com/hellobacsi/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCYHzHDXngnB7jkmcQgXwE0w"},"en-PH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoctorPH/",INSTAGRAM:"https://www.instagram.com/hellodoctor_ph/",TWITTER:null},"km-KH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokrupet/",INSTAGRAM:"https://www.instagram.com/hellokrupetofficial/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCVK4p9YPIMkmoerk3X-y-TQ"},"ms-MY":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoktorMY/",INSTAGRAM:"https://www.instagram.com/_hellodoktor_/",TWITTER:null},"id-ID":{LINKEDIN:"https://www.linkedin.com/company/hello-sehat/",FACEBOOK:"https://www.facebook.com/hellosehat",INSTAGRAM:"https://www.instagram.com/hellosehat/",TWITTER:"https://twitter.com/HelloSehat"},"my-MM":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellosayarwon/",INSTAGRAM:"https://www.facebook.com/hellosayarwon/",TWITTER:null},"zh-TW":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/helloyishi/",INSTAGRAM:"https://www.instagram.com/helloyishi/",TWITTER:null},"hi-IN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloSwasthya/",INSTAGRAM:"https://www.instagram.com/hello_swasthya/",TWITTER:null},"th-TH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokhunmor/",INSTAGRAM:"https://www.instagram.com/hellokhunmor/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCbdbow4UhKfa7rqIhclNPIQ/"}},FLAG_LINKS:{ID:"https://hellosehat.com/",TH:"https://hellokhunmor.com/",MY:"https://hellodoktor.com/",KH:"https://hellokrupet.com/",TW:"https://helloyishi.com.tw/",MM:"https://hellosayarwon.com/",IN:"https://helloswasthya.com/",VN:"https://hellobacsi.com/",PH:"https://hellodoctor.com.ph/"},STATIC_PAGES:{"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"}},FAVICONS:{"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}]},LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},MAX_ALLOWED_IMG_SIZE:20971520,COUNTRY_CODE_BY_LOCALE:{"vi-VN":"vn","id-ID":"id","ms-MY":"my","km-KH":"kh","en-PH":"ph","th-TH":"th","my-MM":"mm","zh-TW":"tw","hi-IN":"in"},COUNTRY_CURRENCY_SYMBOL:{"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},CURRENCY_PREFIX:{IDR:"Dimulai dari"},LOCALISED_SLUGS:{"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}},HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_CARE_LOCALES:["vi-VN","id-ID","en-PH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:T});function O(o){return null!=o}var A={formatAutoCompleteAddress:function(o){return o&&o.place_id?{placeId:o.place_id,description:o.description||""}:null},formatPrice:function(o,e){var t="string"==typeof o?parseInt(o):o;return new Intl.NumberFormat(e||"vi-VN").format(t)},formatHotSearchKeyword:function(o){return{text:(null==o?void 0:o.name)||""}},formatHelpfulUrl:function(o){return{name:(null==o?void 0:o.name)||"",featuredImage:(null==o?void 0:o.featured_image)||"",url:(null==o?void 0:o.url)||""}},formatCategory:function(o,t,i){var l,n,a,r=i?i+"/"+o.slug:o.slug,s=(null===(n=null===(l=null==o?void 0:o.children)||void 0===l?void 0:l.map)||void 0===n?void 0:n.call(l,(function(e){return A.formatCategory(e,o.id,r)})))||[];return{id:null==o?void 0:o.id,name:(null==o?void 0:o.name)||"",logo:(null==o?void 0:o.logo)||"",slug:(null==o?void 0:o.slug)||"",fullSlug:r||"",children:s,backgroundColor:o.color||e.colors.teal50,parentId:t||0,products:(null===(a=o.products)||void 0===a?void 0:a.map(A.formatProduct))||[]}},formatFooterInfo:function(o){var e,t,i,l,n,a,r,s,u,c,d,m,p,_,h,E,v,I,T,g=(null===(i=null===(t=null===(e=null==o?void 0:o.branch)||void 0===e?void 0:e.branch)||void 0===t?void 0:t.map)||void 0===i?void 0:i.call(t,(function(o){return{flag:o.flag||"",name:o.name||"",url:o.url||""}})))||[],O=(null===(a=null===(n=null===(l=null==o?void 0:o.general)||void 0===l?void 0:l.verified)||void 0===n?void 0:n.map)||void 0===a?void 0:a.call(n,(function(o){return{image:o.image||"",url:o.url||""}})))||[],A=(null===(s=null===(r=null==o?void 0:o.menu)||void 0===r?void 0:r.map)||void 0===s?void 0:s.call(r,(function(o){var e,t;return{menu_title:o.menu_title,items:null===(t=null===(e=o.items)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,(function(o){return{title:o.title,url:o.url}}))}})))||[],f=(null===(d=null===(c=null===(u=null==o?void 0:o.social)||void 0===u?void 0:u.socials)||void 0===c?void 0:c.map)||void 0===d?void 0:d.call(c,(function(o){return{icon:o.icon||"",name:o.name||"",url:o.url||""}})))||[];return{branch:{title:(null===(m=null==o?void 0:o.branch)||void 0===m?void 0:m.title)||"",branch:g},general:{logo:null!==(_=null===(p=null==o?void 0:o.general)||void 0===p?void 0:p.logo)&&void 0!==_?_:"",content:null!==(E=null===(h=null==o?void 0:o.general)||void 0===h?void 0:h.content)&&void 0!==E?E:"",copyright:null!==(I=null===(v=null==o?void 0:o.general)||void 0===v?void 0:v.copyright)&&void 0!==I?I:"",verified:O},menu:A,social:{title:(null===(T=null==o?void 0:o.social)||void 0===T?void 0:T.title)||"",socials:f}}},formatNavigation:function(o){var e,t,i,l,n,a;return{hotSearchKeywords:(null===(t=null===(e=null==o?void 0:o.hot_search_keywords)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,A.formatHotSearchKeyword))||[],helpfulUrls:(null===(l=null===(i=null==o?void 0:o.helpful_urls)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,A.formatHelpfulUrl))||[],categories:(null===(a=null===(n=null==o?void 0:o.categories)||void 0===n?void 0:n.map)||void 0===a?void 0:a.call(n,(function(o){return A.formatCategory(o)})))||[],footer:A.formatFooterInfo(null==o?void 0:o.footer),storeId:(null==o?void 0:o.store_id)||0,customerId:(null==o?void 0:o.customer_id)||0,cartItemsQty:"number"==typeof(null==o?void 0:o.cart_items_qty)?o.cart_items_qty:null}},formatPriceInfo:function(o){return o?{final:o.final||0,regular:o.regular||0,discountPercent:o.discount_percent||0}:null},formatProduct:function(o){var e,t,i,l;if(!o)return null;var n={final:0,regular:0,discountPercent:0};return{id:o.id||0,price:o.price&&A.formatPriceInfo(o.price)||n,thumbnail:o.thumbnail||"",name:o.name||"",averageRating:Number((o.average_rating||0).toFixed(2)),reviewsCount:o.reviews_count||0,tag:o.tag||null,sku:o.sku||"",slug:o.slug||"",images:o.images||[],tags:o.tags||[],unit:o.unit||"",brand:o.brand?{name:o.brand.name||"",image:o.brand.image||"",slug:o.brand.slug||"",productsCount:o.brand.products_count||0}:null,description:o.description||"",productPromotions:(null===(t=null===(e=o.product_promotions)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,A.formatProductPromotion).filter(O))||[],categories:(null===(l=null===(i=o.categories)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,(function(o){return A.formatCategory(o)})).filter(O))||[],isInStock:(null==o?void 0:o.is_in_stock)||!1}},formatBanner:function(o){return o?{name:o.name||"",url:o.url||"",featuredImage:o.featured_image||"",alt:o.image_alt}:null},formatBlogPost:function(o){var e,t;return o?{title:o.title||"",image:o.image||"",link:o.link||"",postData:o.post_data?{reviewed:o.post_data.reviewed?{author:A.formatBlogPostDataReviewedUser(o.post_data.reviewed.author||void 0),editor:A.formatBlogPostDataReviewedUser(o.post_data.reviewed.editor||void 0),expert:A.formatBlogPostDataReviewedUser(o.post_data.reviewed.expert||void 0),factCheck:A.formatBlogPostDataReviewedUser(o.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(o.post_data.reviewed.is_author)}:null,categories:o.post_data.categories?null===(t=(e=o.post_data.categories).map)||void 0===t?void 0:t.call(e,(function(o){return{termId:o.term_id||0,name:o.name||"",permalink:o.permalink||"",textColor:o.text_color||""}})):[],postDate:o.post_data.post_date||"",postModified:o.post_data.post_modified||"",modifiedTime:o.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:function(o){return o?{id:o.ID||0,userId:o.user_id||0,formerRole:o.former_role||"",role:o.role||"",slug:o.slug||"",displayName:o.display_name||"",description:o.description||"",profileUrl:o.profile_url||"",avatar:o.avatar||"",avatarThumbnail:o.avatar_thumbnail||"",turnOffProfile:Boolean(o.turn_off_profile)}:null},formatBrand:function(o){var e,t,i,l;return o?{id:o.id||0,image:o.image||"",position:o.position||"",isPopular:o.is_popular||!1,summary:o.summary||"",name:o.name||"",slug:o.slug||"",description:o.description||null,banners:(null===(t=null===(e=o.banners)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,A.formatBanner).filter(O))||[],bestsellerProducts:(null===(l=null===(i=o.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,A.formatProduct).filter(O))||[]}:null},formatHomePage:function(o){var e,t,i,l,n,a,r,s,u,c,d,m,p,_,h,E,v,I,T,g;return o?{brands:o.brands?null===(t=(e=o.brands).map)||void 0===t?void 0:t.call(e,A.formatBrand).filter(O):[],hotDeals:o.hot_deals?null===(l=(i=o.hot_deals).map)||void 0===l?void 0:l.call(i,A.formatProduct).filter(O):[],newProducts:o.new_products?null===(a=(n=o.new_products).map)||void 0===a?void 0:a.call(n,A.formatProduct).filter(O):[],slideBanners:o.slide_banners?null===(s=(r=o.slide_banners).map)||void 0===s?void 0:s.call(r,A.formatBanner).filter(O):[],subBanners:o.sub_banners?null===(c=(u=o.sub_banners).map)||void 0===c?void 0:c.call(u,A.formatBanner).filter(O):[],footerBanners:o.footer_banners?null===(m=(d=o.footer_banners).map)||void 0===m?void 0:m.call(d,A.formatBanner).filter(O):[],blogPosts:o.blog_posts?null===(_=(p=o.blog_posts).map)||void 0===_?void 0:_.call(p,A.formatBlogPost).filter(O):[],popularCategories:o.popular_categories?null===(E=(h=o.popular_categories).map)||void 0===E?void 0:E.call(h,(function(o){return A.formatCategory(o)})).filter(O):[],suggestProducts:o.suggest_products?null===(I=(v=o.suggest_products).map)||void 0===I?void 0:I.call(v,(function(o){return A.formatCategory(o)})).filter(O):[],promotions:o.promotions?null===(g=(T=o.promotions).map)||void 0===g?void 0:g.call(T,(function(o){return A.formatPromotion(o)})).filter(O):[]}:null},formatCategoryPage:function(o){var e,t,i,l;return o?{id:o.id||0,name:o.name||"",slug:o.slug||"",description:o.description||null,banners:(null===(t=null===(e=o.banners)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,A.formatBanner).filter(O))||[],bestsellerProducts:(null===(l=null===(i=o.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,A.formatProduct).filter(O))||[]}:null},formatBrandPage:function(o){return o?A.formatBrand(o):null},formatPagination:function(o){return o?{current:o.current||0,first:o.first||0,itemsPerPage:o.items_per_page||0,last:o.last||0,next:o.next||0,prev:o.prev||0,totalItems:o.total_items||0}:null},formatProductDetailPage:function(e){var t,i,l,n,a,r,s,u;return e?o(o({},A.formatProduct(e)),{relatedProducts:(null===(i=null===(t=e.related_products)||void 0===t?void 0:t.map)||void 0===i?void 0:i.call(t,A.formatProduct).filter(O))||[],bestsellerProducts:(null===(n=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===n?void 0:n.call(l,A.formatProduct).filter(O))||[],viewedProducts:(null===(r=null===(a=e.viewed_products)||void 0===a?void 0:a.map)||void 0===r?void 0:r.call(a,A.formatProduct).filter(O))||[],promotions:(null===(u=null===(s=e.promotions)||void 0===s?void 0:s.map)||void 0===u?void 0:u.call(s,A.formatPromotion).filter(O))||[]}):null},formatProductReview:function(o){var e,t;return o?{reviewId:o.review_id||"",createdAt:o.created_at||"",title:o.title||"",detail:o.detail||"",nickname:o.nick_name||"",avatar:o.avatar||"",ratingVotes:(null===(t=null===(e=o.rating_votes)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,(function(o){return{ratingCode:o.rating_code||"",value:Number(o.value)||0,percent:Number(o.percent)||0}})))||[],images:o.images||[]}:null},formatProductPromotion:function(o){return o?{id:o.id||0,name:o.name||"",thumbnail:o.thumbnail||"",expirationDate:o.expiration_date||""}:null},formatPromotion:function(o){return o?{id:o.id||0,name:o.name||"",slug:o.slug||"",thumbnail:o.thumbnail||"",expiredDate:o.expired_date||"",banners:o.banners||[],points:0,description:o.description||"",metaTitle:o.meta_title||"",metaKeywords:o.meta_keywords||"",metaDescription:o.meta_description||""}:null},formatCustomAttributes:function(o,e){var t;return(null==o?void 0:o.length)&&(null===(t=null==o?void 0:o.find((function(o){return o.attribute_code===e})))||void 0===t?void 0:t.value)||""},formatAddress:function(o){var e,t,i,l;return o?{id:o.id||0,fullName:o.firstname||"",telephone:o.telephone||"",province:{value:null===(e=o.region)||void 0===e?void 0:e.region_id,label:null===(t=o.region)||void 0===t?void 0:t.region}||null,district:{value:A.formatCustomAttributes(o.custom_attributes,"district_id"),label:A.formatCustomAttributes(o.custom_attributes,"district")},commune:{value:A.formatCustomAttributes(o.custom_attributes,"ward_id"),label:A.formatCustomAttributes(o.custom_attributes,"ward")},street:(null===(i=null==o?void 0:o.street)||void 0===i?void 0:i.length)?null==o?void 0:o.street[0]:"",isDefault:o.default_billing&&o.default_shipping||!1,fullAddress:(null===(l=null==o?void 0:o.extension_attributes)||void 0===l?void 0:l.full_address)||""}:null},formatProvince:function(o){return(null==o?void 0:o.available_regions)?o.available_regions.map((function(o){return{value:o.id||"",label:o.name||""}})):[]},formatDistrict:function(o){return(null==o?void 0:o.districts)?o.districts.map((function(o){return{value:o.id||"",label:o.name||""}})):[]},formatCommune:function(o){return(null==o?void 0:o.communes)?o.communes.map((function(o){return{value:o.id||"",label:o.name||""}})):[]},formatOrder:function(o){var e,t;return o?{orderNumber:(null==o?void 0:o.order_number)||"",shippingData:(null==o?void 0:o.shipping_data)?{shippingMethod:o.shipping_data.shipping_method||"",shippingDescription:o.shipping_data.shipping_description||"",shippingAddress:o.shipping_data.shipping_address?{fullName:o.shipping_data.shipping_address.firstname||"",fullAddress:o.shipping_data.shipping_address.full_address||"",telephone:o.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==o?void 0:o.ordered_date)||"",status:(null==o?void 0:o.status)||null,totals:(null==o?void 0:o.totals)?{subtotal:o.totals.subtotal||0,shippingAmount:o.totals.shipping_amount||0,discountAmount:o.totals.discount_amount||0,grandTotal:o.totals.grand_total||0}:null,products:(null===(t=null===(e=null==o?void 0:o.products)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,(function(o){return{sku:o.sku||"",name:o.name||"",price:o.price||0,rowTotal:o.row_total||0,image:o.image||"",qty:o.qty||0}})))||[],paymentMethod:(null==o?void 0:o.payment_method)||""}:null},formatStatistic:function(o){var e,t,i,l,n;return o?{pending:Number(null===(e=null==o?void 0:o.find((function(o){return"pending"===o.status})))||void 0===e?void 0:e.amount)||0,processing:Number(null===(t=null==o?void 0:o.find((function(o){return"processing"===o.status})))||void 0===t?void 0:t.amount)||0,delivering:Number(null===(i=null==o?void 0:o.find((function(o){return"delivering"===o.status})))||void 0===i?void 0:i.amount)||0,complete:Number(null===(l=null==o?void 0:o.find((function(o){return"complete"===o.status})))||void 0===l?void 0:l.amount)||0,canceled:Number(null===(n=null==o?void 0:o.find((function(o){return"canceled"===o.status})))||void 0===n?void 0:n.amount)||0}:{}},formatCartItem:function(o){var e,t,i,l,n,a,r,s;return o?{itemId:o.item_id||0,sku:o.sku||"",qty:o.qty||0,name:o.name||"",price:o.price||0,basePrice:(null===(e=o.extension_attributes)||void 0===e?void 0:e.base_price)||0,productType:o.product_type||"",quoteId:o.quote_id||"",thumbnail:(null===(t=o.extension_attributes)||void 0===t?void 0:t.thumbnail)||"",rowTotal:(null===(i=o.extension_attributes)||void 0===i?void 0:i.row_total)||0,promotions:(null===(a=null===(n=null===(l=o.extension_attributes)||void 0===l?void 0:l.promotions)||void 0===n?void 0:n.map)||void 0===a?void 0:a.call(n,A.formatProductPromotion))||[],isInStock:(null===(r=o.extension_attributes)||void 0===r?void 0:r.is_in_stock)||!1,urlProduct:(null===(s=o.extension_attributes)||void 0===s?void 0:s.url_key)||""}:null},formatCartAddress:function(o){var e;return o?{customerAddressId:(null==o?void 0:o.customer_address_id)||0,id:o.id||0,region:o.region||"",regionId:o.region_id||0,regionCode:o.region_code||"",countryId:o.country_id||"",street:o.street||[],postcode:o.postcode||"",city:o.city||"",firstname:o.firstname||"",lastname:o.lastname||"",customerId:o.customer_id||0,email:o.email||"",telephone:o.telephone||"",sameAsBilling:o.same_as_billing||0,saveInAddressBook:o.save_in_address_book||0,fullAddress:(null===(e=o.extension_attributes)||void 0===e?void 0:e.full_address)||""}:null},formatEstimatedShipping:function(o){return o?{carrierCode:o.carrier_code||"",methodCode:o.method_code||"",carrierTitle:o.carrier_title||"",methodTitle:o.method_title||"",amount:o.amount||0,baseAmount:o.base_amount||0,available:o.available||!1,errorMessage:o.error_message||"",priceExclTax:o.price_excl_tax||0,priceInclTax:o.price_incl_tax||0}:null},formatCartLoggedInCustomer:function(o){var e,t,i;return o?{email:o.email||"",firstname:o.firstname||"",lastname:o.lastname||"",id:o.id||0,groupId:o.group_id||0,createdAt:o.created_at||"",updatedAt:o.updated_at||"",createdIn:o.created_in||"",storeId:o.store_id||0,websiteId:o.website_id||0,addresses:(null===(t=null===(e=o.addresses)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,A.formatCartAddress))||[],disableAutoGroupChange:o.disable_auto_group_change||0,isSubscribed:(null===(i=o.extension_attributes)||void 0===i?void 0:i.is_subscribed)||!1}:null},formatCart:function(o){var e,t,i,l,n,a,r,s,u,c,d,m,p,_;return o?{id:o.id||0,createdAt:o.created_at||"",updatedAt:o.updated_at||"",isActive:o.is_active||!1,isVirtual:o.is_virtual||!1,items:(null===(i=null===(t=null===(e=o.items)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,A.formatCartItem))||void 0===i?void 0:i.sort((function(o,e){return Number(null==e?void 0:e.isInStock)-Number(null==o?void 0:o.isInStock)})))||[],itemsCount:o.items_count||0,itemsQty:o.items_qty||0,customer:o.customer?A.formatCartLoggedInCustomer(o.customer):null,billingAddress:o.billing_address?A.formatCartAddress(o.billing_address):null,origOrderId:o.orig_order_id||0,currency:{globalCurrencyCode:(null===(l=o.currency)||void 0===l?void 0:l.global_currency_code)||"",baseCurrencyCode:(null===(n=o.currency)||void 0===n?void 0:n.base_currency_code)||"",storeCurrencyCode:(null===(a=o.currency)||void 0===a?void 0:a.store_currency_code)||"",quoteCurrencyCode:(null===(r=o.currency)||void 0===r?void 0:r.quote_currency_code)||"",storeToBaseRate:(null===(s=o.currency)||void 0===s?void 0:s.store_to_base_rate)||0,storeToQuoteRate:(null===(u=o.currency)||void 0===u?void 0:u.store_to_quote_rate)||0,baseToGlobalRate:(null===(c=o.currency)||void 0===c?void 0:c.base_to_global_rate)||0,baseToQuoteRate:(null===(d=o.currency)||void 0===d?void 0:d.base_to_quote_rate)||0},customerIsGuest:o.customer_is_guest||!1,customerNoteNotify:o.customer_note_notify||!1,customerTaxClassId:o.customer_tax_class_id||0,storeId:o.store_id||0,shippingAssignments:null===(_=null===(p=null===(m=o.extension_attributes)||void 0===m?void 0:m.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(function(o){var e,t,i;return{shipping:{address:o.shipping.address?A.formatCartAddress(o.shipping.address):null,method:(null===(e=o.shipping)||void 0===e?void 0:e.method)||""},items:(null===(i=(t=o.items).map)||void 0===i?void 0:i.call(t,A.formatCartItem))||[]}}))}:null},formatCartTotal:function(o){var e,t,i;return o?{grandTotal:o.grand_total||0,baseGrandTotal:o.base_grand_total||0,subtotal:o.subtotal||0,baseSubtotal:o.base_subtotal||0,discountAmount:o.discount_amount||0,baseDiscountAmount:o.base_discount_amount||0,subtotalWithDiscount:o.subtotal_with_discount||0,baseSubtotalWithDiscount:o.base_subtotal_with_discount||0,shippingAmount:o.shipping_amount||0,baseShippingAmount:o.base_shipping_amount||0,shippingDiscountAmount:o.shipping_discount_amount||0,baseShippingDiscountAmount:o.base_shipping_discount_amount||0,taxAmount:o.tax_amount||0,baseTaxAmount:o.base_tax_amount||0,weeeTaxAppliedAmount:o.weee_tax_applied_amount||0,shippingTaxAmount:o.shipping_tax_amount||0,baseShippingTaxAmount:o.base_shipping_tax_amount||0,subtotalInclTax:o.subtotal_incl_tax||0,shippingInclTax:o.shipping_incl_tax||0,baseShippingInclTax:o.base_shipping_incl_tax||0,baseCurrencyCode:o.base_currency_code||"",quoteCurrencyCode:o.quote_currency_code||"",itemsQty:o.items_qty||0,coupon:{couponCode:o.coupon_code||"",couponDescription:(null===(e=null==o?void 0:o.extension_attributes)||void 0===e?void 0:e.coupon_description_text)||""},items:(null===(i=null===(t=o.items)||void 0===t?void 0:t.map)||void 0===i?void 0:i.call(t,(function(o){return{itemId:o.item_id||0,price:o.price||0,basePrice:o.base_price||0,qty:o.qty||0,rowTotal:o.row_total||0,baseRowTotal:o.base_row_total||0,rowTotalWithDiscount:o.row_total_with_discount||0,taxAmount:o.tax_amount||0,baseTaxAmount:o.base_tax_amount||0,taxPercent:o.tax_percent||0,discountAmount:o.discount_amount||0,baseDiscountAmount:o.base_discount_amount||0,discountPercent:o.discount_percent||0,priceInclTax:o.price_incl_tax||0,basePriceInclTax:o.base_price_incl_tax||0,rowTotalInclTax:o.row_total_incl_tax||0,baseRowTotalInclTax:o.base_row_total_incl_tax||0,options:o.options||"",weeeTaxAppliedAmount:o.weee_tax_applied_amount||0,weeeTaxApplied:o.weee_tax_applied||0,name:o.name||""}})))||[],totalSegments:o.total_segments||[]}:null},formatPaymentMethod:function(o){return o?null==o?void 0:o.map((function(o){return{code:(null==o?void 0:o.payment_code)||"",title:(null==o?void 0:o.payment_title)||"",thumbnail:(null==o?void 0:o.payment_thumbnail)||""}})):null},formatPaymentInformation:function(o){var e;return o?{paymentMethods:A.formatPaymentMethod(null===(e=null==o?void 0:o.extension_attributes)||void 0===e?void 0:e.payment_detail_info)||[],totals:A.formatCartTotal(o.totals)}:null},formatOrderConfirmation:function(o){return o?{isSuccess:o.is_success||!1,orderInfo:A.formatOrder(o.order_info)}:null},formatCoupons:function(o){var e;return(null===(e=null==o?void 0:o.items)||void 0===e?void 0:e.length)?o.items.map((function(o){return{code:(null==o?void 0:o.code)||"",name:(null==o?void 0:o.name)||"",thumbnail:(null==o?void 0:o.thumbnail)||"",description:(null==o?void 0:o.expired_date)||""}})):null},formatShippings:function(o){return o?o.map((function(o){var e;return{carrierCode:o.carrier_code||"",methodCode:o.method_code||"",title:o.carrier_title||"",description:o.method_title||"",price:(null==o?void 0:o.base_amount)||0,thumbnail:(null===(e=null==o?void 0:o.extension_attributes)||void 0===e?void 0:e.thumbnail)||""}})):[]}},f=Object.freeze({__proto__:null,dataFormatter:A});export{n as EcomApiTypes,g as EcomConstants,f as EcomDataFormatter,a as EcomDataTypes};
@@ -1 +1 @@
1
- import{d as t}from"./index-9dd60ba6.js";import{i as e}from"./isProduction-6fc0946c.js";var o="hellosehat.com",n=function(){function t(){var t=this;this.baseDomain="",this.subPath="",this.getAssetPath=function(o,n,i){var s="https://hhg-common."+[n||t.getBaseDomain(),i||t.subPath,o].join("/");return e?s:s+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}return t.prototype.getBaseDomain=function(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){var t=window.location.host.split("."),e=t.slice(t.length-2),n=e.join(".");return n.includes("localhost")||n.includes("hellohealthgroup")||e.every((function(t){return e=t,!isNaN(parseFloat(e))&&isFinite(e);var e}))?o:e.join(".")}return o},t}(),i=new n;i.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(i.baseDomain=t[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]);export{i as CommonGAssets,n as GAssets};
1
+ import{d as e}from"./index-9dd60ba6.js";import{i as t}from"./isProduction-6fc0946c.js";var o="hellosehat.com",n=function(){function e(){var e=this;this.baseDomain="",this.subPath="",this.getAssetPath=function(o,n,i){var s="https://hhg-common."+[n||e.getBaseDomain(),i||e.subPath,o].join("/");return t||process.env.JEST_WORKER_ID?s:s+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}return e.prototype.getBaseDomain=function(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){var e=window.location.host.split("."),t=e.slice(e.length-2),n=t.join(".");return n.includes("localhost")||n.includes("hellohealthgroup")||t.every((function(e){return t=e,!isNaN(parseFloat(t))&&isFinite(t);var t}))?o:t.join(".")}return o},e}(),i=new n;i.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(i.baseDomain=e[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]);export{i as CommonGAssets,n as GAssets};
@@ -0,0 +1 @@
1
+ import{d as t,e as n}from"./tslib.es6-44f7e5ec.js";import{g as e}from"./core-341c626a.js";import{c as r}from"./routing-2d333f69.js";var i=function(t,n){var e,r;if(!t)return{};var i="tl-PH"===n?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(e=t.link)||void 0===e?void 0:e.startsWith("http"))?t.link:"".concat(i,"/health-tools")+(null===(r=t.link)||void 0===r?void 0:r.replace("".concat(i,"/"),"/")),subtitle:t.subtitle,title:t.title}},o=function(e){return t(void 0,void 0,void 0,(function(){var t,o,s,l,a,u,c;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,8,,9]),"undefined"==typeof window?[3,1]:(t=window.fetch,[3,3]);case 1:return[4,require("node-fetch")];case 2:t=n.sent(),n.label=3;case 3:o="tl-PH"===e?"lang=fil":"",s=[],n.label=4;case 4:return n.trys.push([4,6,,7]),[4,t("".concat(r(e),"/wp-json/api/healthtools?ismenu=0").concat(o?"&"+o:"")).then((function(t){return t.json()}))];case 5:return l=n.sent(),s=(null===(c=null===(u=null==l?void 0:l.data)||void 0===u?void 0:u.map)||void 0===c?void 0:c.call(u,(function(t){return i(t,e)})))||[],[3,7];case 6:return n.sent(),[3,7];case 7:return[2,s];case 8:return a=n.sent(),console.error(a),[3,9];case 9:return[2]}}))}))},s=function(r){return t(void 0,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,e("all-health-tools",(function(){return o(r||"en-PH")}),(function(t){return!!(null==t?void 0:t.length)}),6e4)];case 1:return[2,t.sent()||[]]}}))}))};export{s as a,i as f,o as g};
@@ -1 +1 @@
1
- export{u as useTranslations}from"./useTranslations-b3eb31ef.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-99db33e1.js";export{u as useFbDataLayer}from"./useFbDataLayer-8dd0e5d1.js";export{u as useHealthToolsCache}from"./useHealthToolCache-74a46d69.js";import"react";import"./translationsContext-e7808c8f.js";import"string-format";import"lodash/debounce";import"./tslib.es6-dcf36680.js";import"./cookieHelper-0e8521c3.js";import"./getDynamicHealthTool-831ea86d.js";import"./core-3b861395.js";import"./isProduction-6fc0946c.js";import"./index-9dd60ba6.js";
1
+ export{u as useTranslations}from"./useTranslations-b3eb31ef.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-99db33e1.js";export{u as useFbDataLayer}from"./useFbDataLayer-378a3308.js";export{u as useHealthToolsCache}from"./useHealthToolCache-9718433c.js";import"react";import"./translationsContext-e7808c8f.js";import"string-format";import"lodash/debounce";import"./tslib.es6-44f7e5ec.js";import"./cookieHelper-0e8521c3.js";import"./getDynamicHealthTool-896e1eee.js";import"./core-341c626a.js";import"./isProduction-6fc0946c.js";import"./routing-2d333f69.js";import"./index-9dd60ba6.js";
package/build/esm/i18n.js CHANGED
@@ -1 +1 @@
1
- export{T as TranslationsProvider,t as translationsMap}from"./translationsProvider-a3674511.js";export{T as TranslationsContext,d as defaultTranslations}from"./translationsContext-e7808c8f.js";import"./tslib.es6-dcf36680.js";import"react";
1
+ export{T as TranslationsProvider,t as translationsMap}from"./translationsProvider-3b337b3a.js";export{T as TranslationsContext,d as defaultTranslations}from"./translationsContext-e7808c8f.js";import"./tslib.es6-44f7e5ec.js";import"react";
@@ -1 +1 @@
1
- import{b as r,_ as e}from"./tslib.es6-dcf36680.js";import t,{useRef as a,useEffect as i}from"react";var s=function(a){var i=a.isAmp,s=a.ampImgProps,n=r(a,["isAmp","ampImgProps"]);return i&&(n.width||s.width)&&(n.height||s.height)?t.createElement("amp-img",e({},n,s,{width:String(n.width||s.width),height:String(n.height||s.height)})):t.createElement(c,e({},n))},c=function(s){var c=s.lazyLoad,n=s.src,o=s.srcSet,l=s.sizes,m=s.fallbackSrc,d=void 0===m?"/images/default-image.jpg":m,g=r(s,["lazyLoad","src","srcSet","sizes","fallbackSrc"]),h=a(!1),u=a(null),f=function(){h.current||(h.current=!0,u.current.src=d)};i((function(){if(!c){var r=new Image;r.src=n,r.onerror=f}}),[]);var p=c?{className:"lazy "+g.className,"data-src":n,"data-srcset":o,"data-sizes":l}:{src:n,srcSet:o,sizes:l};return t.createElement("img",e({ref:u},g,p,{onError:function(r){var e;f(),null===(e=null==g?void 0:g.onError)||void 0===e||e.call(g,r)}}))};export{s as ImgHHG};
1
+ import{c as r,a as e}from"./tslib.es6-44f7e5ec.js";import t,{useRef as a,useEffect as i}from"react";var s=function(a){var i=a.isAmp,s=a.ampImgProps,n=r(a,["isAmp","ampImgProps"]);return i&&(n.width||s.width)&&(n.height||s.height)?t.createElement("amp-img",e({},n,s,{width:String(n.width||s.width),height:String(n.height||s.height)})):t.createElement(c,e({},n))},c=function(s){var c=s.lazyLoad,n=s.src,o=s.srcSet,l=s.sizes,m=s.fallbackSrc,g=void 0===m?"/images/default-image.jpg":m,h=r(s,["lazyLoad","src","srcSet","sizes","fallbackSrc"]),d=a(!1),u=a(null),f=function(){d.current||(d.current=!0,u.current.src=g)};i((function(){if(!c){var r=new Image;r.src=n,r.onerror=f}}),[]);var p=c?{className:"lazy "+h.className,"data-src":n,"data-srcset":o,"data-sizes":l}:{src:n,srcSet:o,sizes:l};return t.createElement("img",e({ref:u},h,p,{onError:function(r){var e;f(),null===(e=null==h?void 0:h.onError)||void 0===e||e.call(h,r)}}))};export{s as ImgHHG};