@hhgtech/hhg-components 1.19.23 → 1.19.24

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 (192) hide show
  1. package/build/BMI_BOYS.percentile.monthly-1c8c4c98.js +1 -0
  2. package/build/BMI_BOYS.percentile.weekly-75bff607.js +1 -0
  3. package/build/BMI_BOYS.percentile.yearly-b8d86c12.js +1 -0
  4. package/build/BMI_BOYS.zscore.monthly-5efef594.js +1 -0
  5. package/build/BMI_BOYS.zscore.weekly-aba5d53b.js +1 -0
  6. package/build/BMI_BOYS.zscore.yearly-52cbcf95.js +1 -0
  7. package/build/BMI_GIRLS.percentile.monthly-f482508e.js +1 -0
  8. package/build/BMI_GIRLS.percentile.weekly-aa3da5c1.js +1 -0
  9. package/build/BMI_GIRLS.percentile.yearly-624db278.js +1 -0
  10. package/build/BMI_GIRLS.zscore.monthly-11ffe2ae.js +1 -0
  11. package/build/BMI_GIRLS.zscore.weekly-56e2c916.js +1 -0
  12. package/build/BMI_GIRLS.zscore.yearly-a3d00356.js +1 -0
  13. package/build/HEAD CIRCUM_BOYS.percentile.monthly-e79e5d3f.js +1 -0
  14. package/build/HEAD CIRCUM_BOYS.percentile.weekly-923d3626.js +1 -0
  15. package/build/HEAD CIRCUM_BOYS.percentile.yearly-4133a7da.js +1 -0
  16. package/build/HEAD CIRCUM_BOYS.zscore.monthly-4727bfe4.js +1 -0
  17. package/build/HEAD CIRCUM_BOYS.zscore.weekly-f472daa8.js +1 -0
  18. package/build/HEAD CIRCUM_BOYS.zscore.yearly-13a09c3f.js +1 -0
  19. package/build/HEAD CIRCUM_GIRLS.percentile.monthly-67f98b04.js +1 -0
  20. package/build/HEAD CIRCUM_GIRLS.percentile.weekly-0020f6e2.js +1 -0
  21. package/build/HEAD CIRCUM_GIRLS.percentile.yearly-6afd8bc6.js +1 -0
  22. package/build/HEAD CIRCUM_GIRLS.zscore.monthly-9c635d09.js +1 -0
  23. package/build/HEAD CIRCUM_GIRLS.zscore.weekly-a0fa670d.js +1 -0
  24. package/build/HEAD CIRCUM_GIRLS.zscore.yearly-fcdb544a.js +1 -0
  25. package/build/HEIGHT_BOYS.percentile.monthly-b6e07b4d.js +1 -0
  26. package/build/HEIGHT_BOYS.percentile.weekly-71fb3532.js +1 -0
  27. package/build/HEIGHT_BOYS.percentile.yearly-18e5463a.js +1 -0
  28. package/build/HEIGHT_BOYS.zscore.monthly-7a8e43dd.js +1 -0
  29. package/build/HEIGHT_BOYS.zscore.weekly-70c18763.js +1 -0
  30. package/build/HEIGHT_BOYS.zscore.yearly-b9e6ea6b.js +1 -0
  31. package/build/HEIGHT_GIRLS.percentile.monthly-1e34eb90.js +1 -0
  32. package/build/HEIGHT_GIRLS.percentile.weekly-b2628828.js +1 -0
  33. package/build/HEIGHT_GIRLS.percentile.yearly-72339b71.js +1 -0
  34. package/build/HEIGHT_GIRLS.zscore.monthly-e473a16c.js +1 -0
  35. package/build/HEIGHT_GIRLS.zscore.weekly-7ed52595.js +1 -0
  36. package/build/HEIGHT_GIRLS.zscore.yearly-225f27c4.js +1 -0
  37. package/build/WEIGHT_BOYS.percentile.monthly-305649d8.js +1 -0
  38. package/build/WEIGHT_BOYS.percentile.weekly-8b301e27.js +1 -0
  39. package/build/WEIGHT_BOYS.percentile.yearly-96f3249d.js +1 -0
  40. package/build/WEIGHT_BOYS.zscore.monthly-22c8f908.js +1 -0
  41. package/build/WEIGHT_BOYS.zscore.weekly-0b1faf98.js +1 -0
  42. package/build/WEIGHT_BOYS.zscore.yearly-8090c58c.js +1 -0
  43. package/build/WEIGHT_GIRLS.percentile.monthly-b0905186.js +1 -0
  44. package/build/WEIGHT_GIRLS.percentile.weekly-63c6a2a3.js +1 -0
  45. package/build/WEIGHT_GIRLS.percentile.yearly-49663736.js +1 -0
  46. package/build/WEIGHT_GIRLS.zscore.monthly-0b14c285.js +1 -0
  47. package/build/WEIGHT_GIRLS.zscore.weekly-29d8f232.js +1 -0
  48. package/build/WEIGHT_GIRLS.zscore.yearly-95aa9ac3.js +1 -0
  49. package/build/ageGenerate-8e8587e9.js +1 -0
  50. package/build/babyGrowth.js +1 -1
  51. package/build/care.js +1 -1
  52. package/build/components/atoms/babyGrowthChart/chartConfig.d.ts +1107 -0
  53. package/build/components/atoms/babyGrowthChart/index.d.ts +26 -0
  54. package/build/components/atoms/babyGrowthChart/index.styled.d.ts +1 -0
  55. package/build/components/atoms/index.d.ts +2 -0
  56. package/build/components.js +1 -1
  57. package/build/core.js +1 -1
  58. package/build/ecom.js +1 -1
  59. package/build/esm/BMI_BOYS.percentile.monthly-386ccaf6.js +1 -0
  60. package/build/esm/BMI_BOYS.percentile.weekly-3e59e311.js +1 -0
  61. package/build/esm/BMI_BOYS.percentile.yearly-20bb1506.js +1 -0
  62. package/build/esm/BMI_BOYS.zscore.monthly-8ff383f8.js +1 -0
  63. package/build/esm/BMI_BOYS.zscore.weekly-71fe0115.js +1 -0
  64. package/build/esm/BMI_BOYS.zscore.yearly-ad6b15e1.js +1 -0
  65. package/build/esm/BMI_GIRLS.percentile.monthly-366f178b.js +1 -0
  66. package/build/esm/BMI_GIRLS.percentile.weekly-e48d680c.js +1 -0
  67. package/build/esm/BMI_GIRLS.percentile.yearly-28fa4d04.js +1 -0
  68. package/build/esm/BMI_GIRLS.zscore.monthly-ebd8cd71.js +1 -0
  69. package/build/esm/BMI_GIRLS.zscore.weekly-82f7aa14.js +1 -0
  70. package/build/esm/BMI_GIRLS.zscore.yearly-6fcf910c.js +1 -0
  71. package/build/esm/HEAD CIRCUM_BOYS.percentile.monthly-2529844b.js +1 -0
  72. package/build/esm/HEAD CIRCUM_BOYS.percentile.weekly-92a20a1c.js +1 -0
  73. package/build/esm/HEAD CIRCUM_BOYS.percentile.yearly-e5fdf327.js +1 -0
  74. package/build/esm/HEAD CIRCUM_BOYS.zscore.monthly-49eff093.js +1 -0
  75. package/build/esm/HEAD CIRCUM_BOYS.zscore.weekly-58c98bc3.js +1 -0
  76. package/build/esm/HEAD CIRCUM_BOYS.zscore.yearly-dbd60e9f.js +1 -0
  77. package/build/esm/HEAD CIRCUM_GIRLS.percentile.monthly-b01f4080.js +1 -0
  78. package/build/esm/HEAD CIRCUM_GIRLS.percentile.weekly-0a80b339.js +1 -0
  79. package/build/esm/HEAD CIRCUM_GIRLS.percentile.yearly-32e11349.js +1 -0
  80. package/build/esm/HEAD CIRCUM_GIRLS.zscore.monthly-b6c39653.js +1 -0
  81. package/build/esm/HEAD CIRCUM_GIRLS.zscore.weekly-81f96658.js +1 -0
  82. package/build/esm/HEAD CIRCUM_GIRLS.zscore.yearly-a441f775.js +1 -0
  83. package/build/esm/HEIGHT_BOYS.percentile.monthly-2789701d.js +1 -0
  84. package/build/esm/HEIGHT_BOYS.percentile.weekly-452b6591.js +1 -0
  85. package/build/esm/HEIGHT_BOYS.percentile.yearly-508abf50.js +1 -0
  86. package/build/esm/HEIGHT_BOYS.zscore.monthly-5c608c4e.js +1 -0
  87. package/build/esm/HEIGHT_BOYS.zscore.weekly-935edd5c.js +1 -0
  88. package/build/esm/HEIGHT_BOYS.zscore.yearly-ba31a8e6.js +1 -0
  89. package/build/esm/HEIGHT_GIRLS.percentile.monthly-ebbd598a.js +1 -0
  90. package/build/esm/HEIGHT_GIRLS.percentile.weekly-575d53c8.js +1 -0
  91. package/build/esm/HEIGHT_GIRLS.percentile.yearly-9a4039cb.js +1 -0
  92. package/build/esm/HEIGHT_GIRLS.zscore.monthly-e1da2967.js +1 -0
  93. package/build/esm/HEIGHT_GIRLS.zscore.weekly-7292924a.js +1 -0
  94. package/build/esm/HEIGHT_GIRLS.zscore.yearly-9cf08782.js +1 -0
  95. package/build/esm/WEIGHT_BOYS.percentile.monthly-16ba5786.js +1 -0
  96. package/build/esm/WEIGHT_BOYS.percentile.weekly-a43c4530.js +1 -0
  97. package/build/esm/WEIGHT_BOYS.percentile.yearly-24f8e32b.js +1 -0
  98. package/build/esm/WEIGHT_BOYS.zscore.monthly-fa1aeb66.js +1 -0
  99. package/build/esm/WEIGHT_BOYS.zscore.weekly-7419ed62.js +1 -0
  100. package/build/esm/WEIGHT_BOYS.zscore.yearly-935df0a9.js +1 -0
  101. package/build/esm/WEIGHT_GIRLS.percentile.monthly-9b7eb057.js +1 -0
  102. package/build/esm/WEIGHT_GIRLS.percentile.weekly-3942d908.js +1 -0
  103. package/build/esm/WEIGHT_GIRLS.percentile.yearly-8e36163c.js +1 -0
  104. package/build/esm/WEIGHT_GIRLS.zscore.monthly-471c3c4c.js +1 -0
  105. package/build/esm/WEIGHT_GIRLS.zscore.weekly-c824c3a7.js +1 -0
  106. package/build/esm/WEIGHT_GIRLS.zscore.yearly-f85059c4.js +1 -0
  107. package/build/esm/ageGenerate-e791ba74.js +1 -0
  108. package/build/esm/babyGrowth.js +1 -1
  109. package/build/esm/care.js +1 -1
  110. package/build/esm/components.js +1 -1
  111. package/build/esm/core.js +1 -1
  112. package/build/esm/ecom.js +1 -1
  113. package/build/esm/index-06050465.js +1 -0
  114. package/build/esm/index-23d3c39b.js +1 -0
  115. package/build/esm/index-65516085.js +1 -0
  116. package/build/esm/index-7249a1ad.js +1 -0
  117. package/build/esm/index-9005aa0a.js +1 -0
  118. package/build/esm/index-98cc08a3.js +1 -0
  119. package/build/esm/index-c7dbe6bb.js +1 -0
  120. package/build/esm/index.js +1 -1
  121. package/build/esm/index.styled-7b8a7c58.js +1 -0
  122. package/build/esm/index.styled-95e30c6b.js +1 -0
  123. package/build/esm/lazyLoad-a51c634c.js +1 -0
  124. package/build/esm/navigation.js +1 -1
  125. package/build/esm/number-3cb24023.js +1 -0
  126. package/build/esm/routing-d6ceeffd.js +1 -0
  127. package/build/esm/{constants-17d17987.js → theme-886d0d2f.js} +1 -1
  128. package/build/esm/together.js +1 -1
  129. package/build/esm/types-477e0c81.js +1 -0
  130. package/build/esm/types-be870df6.js +1 -0
  131. package/build/esm/types-c3c2f722.js +1 -0
  132. package/build/index-0b773a51.js +1 -0
  133. package/build/index-112db1fb.js +1 -0
  134. package/build/index-67d7c4fd.js +1 -0
  135. package/build/index-9526bac0.js +1 -0
  136. package/build/index-a664e052.js +1 -0
  137. package/build/index-b14da3c1.js +1 -0
  138. package/build/index-cab2ae19.js +1 -0
  139. package/build/index.js +1 -1
  140. package/build/index.styled-b9acbc42.js +1 -0
  141. package/build/index.styled-de6c5c68.js +1 -0
  142. package/build/lazyLoad-a7ea17af.js +1 -0
  143. package/build/misc/utils.d.ts +1 -0
  144. package/build/navigation.js +1 -1
  145. package/build/number-87b13133.js +1 -0
  146. package/build/routing-1865523f.js +1 -0
  147. package/build/{constants-d4ec4195.js → theme-7830aadf.js} +1 -1
  148. package/build/together.js +1 -1
  149. package/build/types-7fd27900.js +1 -0
  150. package/build/types-cc6f9312.js +1 -0
  151. package/build/types-f85c232c.js +1 -0
  152. package/package.json +5 -2
  153. package/build/ageGenerate-09e4dceb.js +0 -1
  154. package/build/browser-image-compression-18a94b0a.js +0 -1
  155. package/build/esm/ageGenerate-095d2061.js +0 -1
  156. package/build/esm/browser-image-compression-c934f959.js +0 -1
  157. package/build/esm/index-6fd83093.js +0 -1
  158. package/build/esm/index-a80796d4.js +0 -1
  159. package/build/esm/index-c0caf448.js +0 -1
  160. package/build/esm/index-cc1a1d0f.js +0 -1
  161. package/build/esm/index-d6a90885.js +0 -1
  162. package/build/esm/index-e2eef721.js +0 -7
  163. package/build/esm/index-fca2ee63.js +0 -1
  164. package/build/esm/index.styled-37563568.js +0 -1
  165. package/build/esm/index.styled-b3822d90.js +0 -1
  166. package/build/esm/index.styled-ffed6187.js +0 -1
  167. package/build/esm/number-126ee62e.js +0 -1
  168. package/build/esm/routing-93ed4dbc.js +0 -1
  169. package/build/esm/theme-731042bc.js +0 -1
  170. package/build/esm/types-2dabe70c.js +0 -1
  171. package/build/esm/types-3bf70bf6.js +0 -1
  172. package/build/esm/types-bfc0e558.js +0 -1
  173. package/build/esm/useOutsideClick-6004483a.js +0 -1
  174. package/build/esm/useTranslations-3dbb43bb.js +0 -1
  175. package/build/index-12a7ec3c.js +0 -1
  176. package/build/index-17aecf8d.js +0 -1
  177. package/build/index-5d7aac26.js +0 -1
  178. package/build/index-aa538c1f.js +0 -1
  179. package/build/index-c198e6e5.js +0 -1
  180. package/build/index-c8166cee.js +0 -1
  181. package/build/index-ea33edba.js +0 -1
  182. package/build/index.styled-4a3d1b58.js +0 -1
  183. package/build/index.styled-4b2a8c64.js +0 -1
  184. package/build/index.styled-b187cc54.js +0 -1
  185. package/build/number-95704111.js +0 -1
  186. package/build/routing-3fb6d350.js +0 -1
  187. package/build/theme-6cd33b22.js +0 -1
  188. package/build/types-8f709939.js +0 -1
  189. package/build/types-9555904f.js +0 -1
  190. package/build/types-cf235ee3.js +0 -1
  191. package/build/useOutsideClick-528bfd6c.js +0 -1
  192. package/build/useTranslations-a86f0d1c.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";var n=require("./tslib.es6-f7929e76.js"),t=require("styled-components"),e=require("react"),a=require("./translationsContext-f8e45a1a.js"),r=require("string-format"),o=require("vanilla-lazyload");function i(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var s,l,d,m,c,p=i(r),f=i(o);exports.Gender=void 0,(s=exports.Gender||(exports.Gender={})).Boy="boy",s.Girl="girl",exports.BabyGrowthChartType=void 0,(l=exports.BabyGrowthChartType||(exports.BabyGrowthChartType={}))[l.Weight=0]="Weight",l[l.Height=1]="Height",l[l.Head=2]="Head",l[l.BMI=3]="BMI",exports.BabyGrowthChartDuration=void 0,(d=exports.BabyGrowthChartDuration||(exports.BabyGrowthChartDuration={}))[d.Weekly=0]="Weekly",d[d.Monthly=1]="Monthly",d[d.Yearly=2]="Yearly",exports.BabyGrowthResultTab=void 0,(m=exports.BabyGrowthResultTab||(exports.BabyGrowthResultTab={}))[m.Weight=0]="Weight",m[m.Height=1]="Height",m[m.Head=2]="Head",m[m.BMI=3]="BMI",m[m.Record=4]="Record",exports.LOCALE=void 0,(c=exports.LOCALE||(exports.LOCALE={})).Vietnam="vi-VN",c.Indonesia="id-ID",c.Malaysia="ms-MY",c.Cambodia="km-KH",c.PhilippinesEnglish="en-PH",c.PhilippinesTagalog="tl-PH",c.Thailand="th-TH",c.Myanmar="my-MM",c.Taiwan="zh-TW",c.India="hi-IN";var _,u,T,y,B,O,h,b,E,I=function(n){var t=Object.keys(n);return t.length?"?"+t.map((function(t){return"".concat(t,"=").concat(n[t])})).join("&"):""},x={BREAK_POINT_SMALL_MOBILE:481,BREAK_POINT_MOBILE:768,BREAK_POINT_TABLET:1024,BREAK_POINT_PC:1200},A={smbDown:"@media (max-width: ".concat(x.BREAK_POINT_SMALL_MOBILE-1,"px)"),smbUp:"@media (min-width: ".concat(x.BREAK_POINT_SMALL_MOBILE,"px)"),mbDown:"@media (max-width: ".concat(x.BREAK_POINT_MOBILE-1,"px)"),mbOnly:"@media (min-width: ".concat(x.BREAK_POINT_SMALL_MOBILE,"px) and (max-width: ").concat(x.BREAK_POINT_MOBILE-1,"px)"),mbUp:"@media (min-width: ".concat(x.BREAK_POINT_MOBILE,"px)"),tdDown:"@media (max-width: ".concat(x.BREAK_POINT_TABLET-1,"px)"),tdOnly:"@media (min-width: ".concat(x.BREAK_POINT_MOBILE,"px) and (max-width: ").concat(x.BREAK_POINT_TABLET-1,"px)"),tdUp:"@media (min-width: ".concat(x.BREAK_POINT_TABLET,"px)"),pcUp:"@media (min-width: ".concat(x.BREAK_POINT_PC,"px)"),pcOnly:"@media (min-width: ".concat(x.BREAK_POINT_TABLET,"px) and (max-width: ").concat(x.BREAK_POINT_PC-1,"px)"),pcDown:"@media (max-width: ".concat(x.BREAK_POINT_PC-1,"px)")},L=t.keyframes(_||(_=n.__makeTemplateObject(["\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"]))),P=t.keyframes(u||(u=n.__makeTemplateObject(["\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"]))),w=t.keyframes(T||(T=n.__makeTemplateObject(["\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"]))),v=t.keyframes(y||(y=n.__makeTemplateObject(["\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"]))),R=t.keyframes(B||(B=n.__makeTemplateObject(["\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"]))),M=t.keyframes(O||(O=n.__makeTemplateObject(["\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"]))),N=t.keyframes(h||(h=n.__makeTemplateObject(["\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"]))),K=t.keyframes(b||(b=n.__makeTemplateObject(["\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"]))),g=t.keyframes(E||(E=n.__makeTemplateObject(["\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"])));exports.lazyLoadInstance=null,"undefined"==typeof window||exports.lazyLoadInstance||(exports.lazyLoadInstance=new f.default),exports.Breakpoints=x,exports.MediaQueries=A,exports.fadeIn=g,exports.formatUrlWithPageParam=function(n,t,e){void 0===t&&(t=1),void 0===e&&(e="page");var a=n.split("?"),r=a[0],o=a[1],i=new URLSearchParams(o||""),s={};return i.forEach((function(n,t){n&&(s[t]=n)})),Number(t)>1?s[e]=String(t):delete s[e],r+I(s)},exports.getBoundariesFromMediaQueryKey=function(n){switch(n){case"smbDown":return[0,x.BREAK_POINT_SMALL_MOBILE-1];case"smbUp":return[x.BREAK_POINT_SMALL_MOBILE,0];case"mbDown":return[0,x.BREAK_POINT_MOBILE-1];case"mbOnly":return[x.BREAK_POINT_SMALL_MOBILE,x.BREAK_POINT_MOBILE-1];case"mbUp":return[x.BREAK_POINT_MOBILE,0];case"tdDown":return[0,x.BREAK_POINT_TABLET-1];case"tdOnly":return[x.BREAK_POINT_MOBILE,x.BREAK_POINT_TABLET-1];case"tdUp":return[x.BREAK_POINT_TABLET,0];case"pcUp":return[x.BREAK_POINT_PC,0];case"pcOnly":return[x.BREAK_POINT_TABLET,x.BREAK_POINT_PC-1];case"pcDown":return[0,x.BREAK_POINT_PC-1]}},exports.getPopupWrapperDom=function(){var n="hhg-comp-popup-wrapper";if(!document.querySelector("#"+n)){var t=document.createElement("div");t.id=n,document.body.appendChild(t)}return document.querySelector("#"+n)},exports.makeParams=I,exports.slideInDown=P,exports.slideInLeft=w,exports.slideInRight=v,exports.slideInUp=L,exports.slideOutDown=R,exports.slideOutLeft=M,exports.slideOutRight=N,exports.slideOutUp=K,exports.startCase=function(n){return n.replace(/\w\S*/g,(function(n){return n.charAt(0).toUpperCase()+n.substr(1).toLowerCase()}))},exports.toggleNoScroll=function(n){"undefined"!=typeof window&&(document.documentElement.style.overflow=n?"hidden":"")},exports.useTranslations=function(){var n=e.useContext(a.TranslationsContext)||{locale:"en-PH"},t=n.values,r=n.locale;return e.useMemo((function(){return{t:function(n,e){return t?t[n]?e?p.default(t[n]||n,e):t[n]||n:(console.warn("[useTranslations] Missing translation for key ".concat(n," and locale ").concat(r)),e?p.default(a.defaultTranslations[n]||n,e):a.defaultTranslations[n]||n):(console.error("[useTranslations] t method called before translation values are loaded"),n)},locale:r}}),[t,r])};
@@ -48,3 +48,4 @@ export declare const MediaQueries: {
48
48
  };
49
49
  export declare const getBoundariesFromMediaQueryKey: (key?: keyof typeof MediaQueries) => number[];
50
50
  export declare const getPopupWrapperDom: () => Element;
51
+ export declare const startCase: (str?: string) => string;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("./tslib.es6-f7929e76.js"),require("react"),require("./core-8fcc56eb.js"),require("./index.styled-b187cc54.js");var e=require("./index-c8166cee.js");require("react-id-generator"),require("./index.styled-4a3d1b58.js"),require("date-fns"),require("react-day-picker/DayPickerInput"),require("lodash/debounce"),require("react-dom"),require("lodash"),require("./useTranslations-a86f0d1c.js"),require("react-range"),require("./translationsContext-f8e45a1a.js"),require("./constants-d4ec4195.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./number-95704111.js"),require("styled-components"),require("./routing-3fb6d350.js"),require("./index.styled-4b2a8c64.js"),require("./theme-6cd33b22.js"),require("smoothscroll-polyfill"),require("./index-aa538c1f.js"),require("./index-ea33edba.js"),require("./constants-ea7b35a2.js"),require("./cookieHelper-612b90fa.js"),require("date-fns/locale/hi"),require("date-fns/locale/ms"),require("date-fns/locale/th"),exports.NavigationV2=e.NavigationV2,exports.getNavMenuContent=e.getNavMenuContent,exports.getNavMenuContentWithCache=e.getNavMenuContentWithCache;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("./tslib.es6-f7929e76.js"),require("react"),require("./core-8fcc56eb.js"),require("./index-0b773a51.js");var e=require("./index-9526bac0.js");require("react-id-generator"),require("./index.styled-de6c5c68.js"),require("date-fns"),require("react-day-picker/DayPickerInput"),require("lodash/debounce"),require("react-dom"),require("lodash"),require("keen-slider/react"),require("./lazyLoad-a7ea17af.js"),require("react-range"),require("./translationsContext-f8e45a1a.js"),require("string-format"),require("./theme-7830aadf.js"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("styled-components"),require("./routing-1865523f.js"),require("./index.styled-b9acbc42.js"),require("recharts"),require("smoothscroll-polyfill"),require("./index-b14da3c1.js"),require("./index-67d7c4fd.js"),require("./constants-ea7b35a2.js"),require("innertext"),require("react-contenteditable"),require("./cookieHelper-612b90fa.js"),require("./number-87b13133.js"),require("date-fns/locale/hi"),require("date-fns/locale/ms"),require("date-fns/locale/th"),require("slugify"),require("vanilla-lazyload"),exports.NavigationV2=e.NavigationV2,exports.getNavMenuContent=e.getNavMenuContent,exports.getNavMenuContentWithCache=e.getNavMenuContentWithCache;
@@ -0,0 +1 @@
1
+ "use strict";exports.abbreviateNumber=function(e){var r=String(e);if(e>=1e3){for(var t=Math.floor((""+e).length/3),a=void 0,o=2;o>=1;o--){if(((a=parseFloat((0!=t?e/Math.pow(1e3,t):e).toPrecision(o)))+"").replace(/[^a-zA-Z 0-9]+/g,"").length<=2)break}a&&a%1!=0&&(a=a.toFixed(1)),r=a+["","k","m","b","t"][t]}return r};
@@ -0,0 +1 @@
1
+ "use strict";var t=require("./theme-7830aadf.js");exports.getCareApiDomain=function(){return"https://".concat(t.isProduction?"health-care.":"service-health-care.","hellohealthgroup.com")},exports.getCurrentBaseUrl=function(o,e){void 0===e&&(e="helloSites");var r="marryBaby"===e,n="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,c=!n&&!t.isProduction;return n?"http://localhost:3000":"https://".concat(c?r?"fe.":"discover.":r?"www.":"").concat(t.domainLocales[o])},exports.getCurrentSsoUrl=function(o){return"https://".concat(t.isProduction?"id.":"staging-id.").concat(t.domainLocales[o])},exports.getDiscoverApiDomain=function(o){return"https://".concat(t.isProduction?"wp.":"staging.").concat(t.domainLocales[o])},exports.getTogetherApiDomain=function(){return"https://".concat(t.isProduction?"together.":"staging-together.","hellohealthgroup.com")};
@@ -1 +1 @@
1
- "use strict";var o,E={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com","tl-PH":"hellodoctor.com.ph"},l={"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png",PREGNANCY_WEIGHT_GAIN:"cong-cu-tinh-can-nang-khi-mang-thai",BABY_POOP:"phan-tre-so-sinh-nhu-the-nao-la-tot",VACCINATION_TOOL:"lich-tiem-chung"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png",PREGNANCY_WEIGHT_GAIN:"เครื่องคำนวณน้ำหนักตัว",BABY_POOP:"สีอุจจาระของลูก-บอกถึงส",VACCINATION_TOOL:"vaccination-tool"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png",PREGNANCY_WEIGHT_GAIN:"រង្វាស់សុខភាព/គណនាទម្ងន់ស្ត្រីពពោះ",BABY_POOP:"រង្វាស់សុខភាព/អត្ថន័យពណ៌-និងរូបរាងលាម",VACCINATION_TOOL:"រង្វាស់សុខភាព/កាលវិភាគចាក់ថ្នាំបង្កា"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-kenaikan-berat-badan-ibu-hamil",BABY_POOP:"warna-feses-bayi-normal",VACCINATION_TOOL:"jadwal-imunisasi"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png",PREGNANCY_WEIGHT_GAIN:"garbhavastha-weight-calculator",BABY_POOP:"visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-tambah-berat-badan-hamil",BABY_POOP:"kenali-najis-bayi-anda",VACCINATION_TOOL:"alat-kesihatan-vaksin"},"tl-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/fil/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool",ABOUT_US_IMAGE:"/fil/images/aboutus/PH.png"}},t={"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/tieu-chuan-cong-dong",TOGETHER:"/community"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/គោលការណ៍ណែនាំសហគមន៍",TOGETHER:"/community"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en",COMMUNITY_GUIDELINE:"/panduan-komunitas",TOGETHER:"/community"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"tl-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"}},I=["vi-VN","id-ID","en-PH","tl-PH","th-TH","ms-MY","my-MM"],i=["vi-VN","id-ID","en-PH","tl-PH"],T=["vi-VN","id-ID"],O=("undefined"!=typeof window?function(o){var E,l;return null!==(l=null===(E=null==o?void 0:o.match(/^https?:\/\/([^/?#]+)(?:[/?#]|$)/i))||void 0===E?void 0:E[1])&&void 0!==l?l:""}(null===(o=null===window||void 0===window?void 0:window.location)||void 0===o?void 0:o.href):"").split("."),a=process.env.NEXT_PUBLIC_DEPLOY_ENV?"production"===process.env.NEXT_PUBLIC_DEPLOY_ENV:O&&!("dev"===O[0]||"dev"===O[1]||"staging"===O[0]||"staging-id"===O[0]||"staging-id-hotfix"===O[0]||"localhost"===O[0].split(":")[0]||"staging"===O[1]||"fe"===O[0]||"fe-hotfix"===O[0]||"discover"===O[0]||"discover-hotfix"===O[0]),e=Object.freeze({__proto__:null,USER_GEOLOCATION_COORDINATES_COOKIE:"userGeoLocationCoordinates",domainLocales:E,LOCALE_SPECS:l,STATIC_PAGES:t,UP_BASEPATH:"user",TOGETHER_LOCALES:I,CARE_LOCALES:i,CARE_BOOKING_LOCALES:T,isProduction:a});exports.CARE_BOOKING_LOCALES=T,exports.CARE_LOCALES=i,exports.LOCALE_SPECS=l,exports.STATIC_PAGES=t,exports.TOGETHER_LOCALES=I,exports.UP_BASEPATH="user",exports.USER_GEOLOCATION_COORDINATES_COOKIE="userGeoLocationCoordinates",exports.constants=e,exports.domainLocales=E,exports.isProduction=a;
1
+ "use strict";var e,o={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com","tl-PH":"hellodoctor.com.ph"},l={"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png",PREGNANCY_WEIGHT_GAIN:"cong-cu-tinh-can-nang-khi-mang-thai",BABY_POOP:"phan-tre-so-sinh-nhu-the-nao-la-tot",VACCINATION_TOOL:"lich-tiem-chung"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png",PREGNANCY_WEIGHT_GAIN:"เครื่องคำนวณน้ำหนักตัว",BABY_POOP:"สีอุจจาระของลูก-บอกถึงส",VACCINATION_TOOL:"vaccination-tool"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png",PREGNANCY_WEIGHT_GAIN:"រង្វាស់សុខភាព/គណនាទម្ងន់ស្ត្រីពពោះ",BABY_POOP:"រង្វាស់សុខភាព/អត្ថន័យពណ៌-និងរូបរាងលាម",VACCINATION_TOOL:"រង្វាស់សុខភាព/កាលវិភាគចាក់ថ្នាំបង្កា"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"how-does-babies-poop-look-like",VACCINATION_TOOL:"vaccination-tool"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-kenaikan-berat-badan-ibu-hamil",BABY_POOP:"warna-feses-bayi-normal",VACCINATION_TOOL:"jadwal-imunisasi"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png",PREGNANCY_WEIGHT_GAIN:"garbhavastha-weight-calculator",BABY_POOP:"visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png",PREGNANCY_WEIGHT_GAIN:"kalkulator-tambah-berat-badan-hamil",BABY_POOP:"kenali-najis-bayi-anda",VACCINATION_TOOL:"alat-kesihatan-vaksin"},"tl-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/fil/images/tooltips-ph.png",PREGNANCY_WEIGHT_GAIN:"pregnancy-weight-gain-calculator",BABY_POOP:"a-visual-guide-on-baby-poop",VACCINATION_TOOL:"vaccination-tool",ABOUT_US_IMAGE:"/fil/images/aboutus/PH.png"}},a={"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/tieu-chuan-cong-dong",TOGETHER:"/community"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/គោលការណ៍ណែនាំសហគមន៍",TOGETHER:"/community"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en",COMMUNITY_GUIDELINE:"/panduan-komunitas",TOGETHER:"/community"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/panduan-komuniti",TOGETHER:"/community"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:null,TOGETHER:"/community"},"tl-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/",COMMUNITY_GUIDELINE:"/community-guidelines",TOGETHER:"/community"}},t=["vi-VN","id-ID","en-PH","tl-PH","th-TH","ms-MY","my-MM"],E=["vi-VN","id-ID","en-PH","tl-PH"],i=["vi-VN","id-ID"],n=("undefined"!=typeof window?function(e){var o,l;return null!==(l=null===(o=null==e?void 0:e.match(/^https?:\/\/([^/?#]+)(?:[/?#]|$)/i))||void 0===o?void 0:o[1])&&void 0!==l?l:""}(null===(e=null===window||void 0===window?void 0:window.location)||void 0===e?void 0:e.href):"").split("."),I=process.env.NEXT_PUBLIC_DEPLOY_ENV?"production"===process.env.NEXT_PUBLIC_DEPLOY_ENV:n&&!("dev"===n[0]||"dev"===n[1]||"staging"===n[0]||"staging-id"===n[0]||"staging-id-hotfix"===n[0]||"localhost"===n[0].split(":")[0]||"staging"===n[1]||"fe"===n[0]||"fe-hotfix"===n[0]||"discover"===n[0]||"discover-hotfix"===n[0]),T=Object.freeze({__proto__:null,USER_GEOLOCATION_COORDINATES_COOKIE:"userGeoLocationCoordinates",domainLocales:o,LOCALE_SPECS:l,STATIC_PAGES:a,UP_BASEPATH:"user",TOGETHER_LOCALES:t,CARE_LOCALES:E,CARE_BOOKING_LOCALES:i,isProduction:I});exports.CARE_BOOKING_LOCALES=i,exports.CARE_LOCALES=E,exports.LOCALE_SPECS=l,exports.STATIC_PAGES=a,exports.TOGETHER_LOCALES=t,exports.UP_BASEPATH="user",exports.USER_GEOLOCATION_COORDINATES_COOKIE="userGeoLocationCoordinates",exports.constants=T,exports.domainLocales=o,exports.isProduction=I,exports.theme={colors:{primaryBase:"#2d87f3",primaryHover:"#2c74df",primaryActive:"#2b62cd",primaryVisited:"#5e38ba",secondaryBase:"#284a75",secondaryDark:"#1b3250",accentLight:"#b1ebf8",accentMain:"#00AECD",success:"#00b16a",error:"#f71210",gray100:"#f2f2f2",gray200:"#d9d9d9",gray300:"#bfbfbf",gray400:"#8c8c8c",gray500:"#737373",gray600:"#595959",gray800:"#262626",blue50:"#e3f2ff",blue100:"#bcdeff",blue200:"#91caff",blue300:"#65b5ff",blue400:"#45a4ff",blue500:"#2b94ff",blue600:"#2d87f3",blue700:"#2c74df",blue800:"#2b62cd",blue900:"#2743ad",alertWarning:"#fe921d",green50:"#e0f8ee",green100:"#b3eed5",green200:"#7ce2b9",green300:"#2ed69e",green400:"#00CB8A",green500:"#00C076",green600:"#00B16A",green700:"#009E5C",green800:"#008C50",green900:"#006C39",yellow50:"#fff8e2",yellow100:"#ffecb6",yellow200:"#ffe187",yellow300:"#ffd658",yellow400:"#ffc326",yellow500:"#fe921d",yellow600:"#ffb521",yellow700:"#fea21e",yellow800:"#fe921d",yellow900:"#fc7419",red50:"#fae9e8",red100:"#feccbf",red200:"#ff5331",red300:"#f44d2c",red400:"#ff6f4d",red500:"#ff5331",red600:"#f44d2c",red700:"#e64728",red800:"#d84023",red900:"#bf331b",neutral50:"#f8f9fc",neutral100:"#e4e8ec",neutral150:"#fafafa",neutral200:"#d2d6dc",neutral300:"#bfc5cc",neutral400:"#adb3bc",neutral500:"#9aa2ac",neutral600:"#87909c",neutral700:"#757f8c",neutral800:"#626d7c",teal50:"#e0f7fc",teal100:"#b1ebf8",teal200:"#7ddff3",teal300:"#44d1ec",teal400:"#00c7e6",teal500:"#00bee0",teal600:"#00aecd",teal700:"#0099b2",teal800:"#008599",teal900:"#00626c",pink50:"#fff1f6",pink100:"#fec7dc",pink200:"#fec7dc",pink300:"#fec2cf",pink400:"#fe9dc2",pink500:"#fd87b4",pink600:"#fd72a7",pink700:"#fc5d9a",pink800:"#fc488d",violet50:"#f5edff",violet100:"#e7d2f7",violet200:"#d8b7f0",violet300:"#ca9ce8",violet400:"#bb82e1",violet500:"#ad67d9",violet600:"#9e4cd1",violet700:"#9031ca",violet800:"#8116c2",indigo700:"#35639c",indigo800:"#284a75",indigo900:"#1b3250",brown50:"#faecde",brown100:"#ecd8c5",brown200:"#dec5ab",brown300:"#d0b192",brown400:"#c39d79",brown500:"#b5895f",brown600:"#a77646",brown700:"#99622c",brown800:"#8b4e13",white:"#fff"},mbColors:{pink:"#e85388",cobalt:"#2661ad",dark:"#202135",gray:"#3e3f58",midGray:"#9495a0",lightGray:"#f3f3f3",lightMint:"#f2fcf8",lightPink:"#ffeaf1",lightOrange:"#fffaeb",lightBlue:"#e0e9fc",mint:"#5ec08f",peach:"#ffaaa9",orange:"#fb8c00",ceruleanBlue:"#b6ceff",red:"#eb5757",lightRed:"#fdeeee",yellow:"#ff8a2b",green:"#f2fcf7",blue:"#4096fe",toneYellow:"#fff9eb",toneGreen:"#f2fcf7",toneBlue:"#e0e9fb",tonePink:"#ffeaf1"},sizes:{fwBold:"700",fwSemiBold:"600",fsCaption2:"13px",fsHeading1:"40px",fsHeading2:"28px",fsHeading4:"24px",fsHeading5:"18px",fsHeading6:"16px",fsParagraph3:"16px",fsParagraph4:"14px",fwRegular:"400"},zIndexes:{belowHeader:"1",zIndex100:"100",onTop:"1000",drawer:305},defaultColor:""};
package/build/together.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index.styled-4a3d1b58.js"),r=require("./types-8f709939.js");require("./tslib.es6-f7929e76.js"),require("styled-components"),require("react"),require("./cookieHelper-612b90fa.js"),require("./index.styled-b187cc54.js"),require("./theme-6cd33b22.js"),require("./useTranslations-a86f0d1c.js"),require("./translationsContext-f8e45a1a.js"),require("./number-95704111.js"),require("./index-aa538c1f.js"),require("date-fns"),require("date-fns/locale/en-US"),require("date-fns/locale/hi"),require("date-fns/locale/id"),require("date-fns/locale/ms"),require("date-fns/locale/th"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("./constants-d4ec4195.js"),require("react-id-generator"),require("./index-ea33edba.js"),require("lodash"),require("react-dom"),require("./index-12a7ec3c.js"),require("react-range"),require("lodash/debounce"),exports.CardAuthor=e.CardAuthor,exports.CardReactions=e.CardReactions,exports.DefaultComponentGlobalContextData=e.DefaultComponentGlobalContextData,Object.defineProperty(exports,"GlobalData",{enumerable:!0,get:function(){return e.GlobalData}}),exports.LabelSortPin=e.LabelSortPin,exports.LabelSorting=e.LabelSorting,exports.Loading=e.Loading,exports.PopoverMenu=e.PopoverMenu,exports.PopupDoctor=e.PopupDoctor,exports.PopupExpert=e.PopupExpert,exports.PopupFrame=e.PopupFrame,exports.PopupHospital=e.PopupHospital,exports.ShareBox=e.ShareBox,exports.SharePopup=e.SharePopup,exports.TogetherAuthConfigContext=e.TogetherAuthConfigContext,exports.TogetherAuthConfigContextProvider=e.TogetherAuthConfigContextProvider,exports.TogetherComponentGlobalContext=e.TogetherComponentGlobalContext,exports.TogetherComponentGlobalContextProvider=e.TogetherComponentGlobalContextProvider,exports.TogetherConstants=e.constants,exports.TogetherDataTransforms=e.dataTransform,exports.UserAvatar=e.UserAvatar,exports.useTogetherAuthRequiredAction=e.useTogetherAuthRequiredAction,exports.CardLink=r.CardLink,exports.CardPost=r.CardPost,exports.CardPostPopoverMore=r.CardPostPopoverMore,exports.CardReply=r.CardReply,exports.CardReplyPopover=r.CardReplyPopover,exports.CreateNewPostContent=r.CreateNewPostContent,exports.CreatePostDescription=r.CreatePostDescription,exports.CreatePostTitle=r.CreatePostTitle,exports.ImagePreviewPopup=r.ImagePreviewPopup,exports.InputCommentBar=r.InputCommentBar,exports.LabelPin=r.LabelPin,exports.PopupDanger=r.PopupDanger,exports.PostContent=r.PostContent,exports.PostImagePreview=r.PostImagePreview,exports.PostSingleImageViewPopup=r.PostSingleImageViewPopup,exports.SubmitReportForm=r.SubmitReportForm,exports.TagTopic=r.TagTopic,exports.TogetherTypes=r.types,exports.TopicSelectList=r.TopicSelectList;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index.styled-de6c5c68.js"),r=require("./types-f85c232c.js");require("./tslib.es6-f7929e76.js"),require("styled-components"),require("react"),require("./cookieHelper-612b90fa.js"),require("./index-0b773a51.js"),require("./theme-7830aadf.js"),require("./lazyLoad-a7ea17af.js"),require("./translationsContext-f8e45a1a.js"),require("string-format"),require("vanilla-lazyload"),require("recharts"),require("lodash/debounce"),require("date-fns"),require("lodash"),require("./number-87b13133.js"),require("./index-b14da3c1.js"),require("date-fns/locale/en-US"),require("date-fns/locale/hi"),require("date-fns/locale/id"),require("date-fns/locale/ms"),require("date-fns/locale/th"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("react-id-generator"),require("./index-67d7c4fd.js"),require("react-dom"),require("slugify"),require("./index-a664e052.js"),require("innertext"),require("react-range"),require("react-contenteditable"),exports.CardAuthor=e.CardAuthor,exports.CardReactions=e.CardReactions,exports.DefaultComponentGlobalContextData=e.DefaultComponentGlobalContextData,Object.defineProperty(exports,"GlobalData",{enumerable:!0,get:function(){return e.GlobalData}}),exports.LabelSortPin=e.LabelSortPin,exports.LabelSorting=e.LabelSorting,exports.Loading=e.Loading,exports.PopoverMenu=e.PopoverMenu,exports.PopupDoctor=e.PopupDoctor,exports.PopupExpert=e.PopupExpert,exports.PopupFrame=e.PopupFrame,exports.PopupHospital=e.PopupHospital,exports.ShareBox=e.ShareBox,exports.SharePopup=e.SharePopup,exports.TogetherAuthConfigContext=e.TogetherAuthConfigContext,exports.TogetherAuthConfigContextProvider=e.TogetherAuthConfigContextProvider,exports.TogetherComponentGlobalContext=e.TogetherComponentGlobalContext,exports.TogetherComponentGlobalContextProvider=e.TogetherComponentGlobalContextProvider,exports.TogetherConstants=e.constants,exports.TogetherDataTransforms=e.dataTransform,exports.UserAvatar=e.UserAvatar,exports.useTogetherAuthRequiredAction=e.useTogetherAuthRequiredAction,exports.CardLink=r.CardLink,exports.CardPost=r.CardPost,exports.CardPostPopoverMore=r.CardPostPopoverMore,exports.CardReply=r.CardReply,exports.CardReplyPopover=r.CardReplyPopover,exports.CreateNewPostContent=r.CreateNewPostContent,exports.CreatePostDescription=r.CreatePostDescription,exports.CreatePostTitle=r.CreatePostTitle,exports.ImagePreviewPopup=r.ImagePreviewPopup,exports.InputCommentBar=r.InputCommentBar,exports.LabelPin=r.LabelPin,exports.PopupDanger=r.PopupDanger,exports.PostContent=r.PostContent,exports.PostImagePreview=r.PostImagePreview,exports.PostSingleImageViewPopup=r.PostSingleImageViewPopup,exports.SubmitReportForm=r.SubmitReportForm,exports.TagTopic=r.TagTopic,exports.TogetherTypes=r.types,exports.TopicSelectList=r.TopicSelectList;
@@ -0,0 +1 @@
1
+ "use strict";var e=require("./tslib.es6-f7929e76.js"),t=require("react"),n=require("./constants-ea7b35a2.js"),a=require("./theme-7830aadf.js"),i=require("./cookieHelper-612b90fa.js"),o=require("./lazyLoad-a7ea17af.js"),r=require("lodash/debounce"),l=require("./index-0b773a51.js"),s=require("./index-67d7c4fd.js");require("react-range"),require("react-dom"),require("./translationsContext-f8e45a1a.js");var c=require("string-format");require("date-fns");var u=require("styled-components"),d=require("react-loading-skeleton"),p=require("react-id-generator"),h=require("lodash/shuffle");function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var g=f(t),m=f(r),C=f(c),v=f(u),x=f(d),b=f(h);var y,_,w,E,k,L,S,T,O,I,M,R,A=v.default.div(y||(y=e.__makeTemplateObject([""],[""]))),N=v.default.div(_||(_=e.__makeTemplateObject(["\n --searchbar-z-index: 305;\n &[data-is-modal='true'] {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n height: var(--mobile-care-searchbar-height, 100%);\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n background-color: white;\n z-index: var(--searchbar-z-index);\n }\n"],["\n --searchbar-z-index: 305;\n &[data-is-modal='true'] {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n height: var(--mobile-care-searchbar-height, 100%);\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n background-color: white;\n z-index: var(--searchbar-z-index);\n }\n"]))),P=v.default.section(w||(w=e.__makeTemplateObject([""],[""]))),F=v.default.input(E||(E=e.__makeTemplateObject(["\n position: fixed;\n left: -100%;\n top: -100%;\n"],["\n position: fixed;\n left: -100%;\n top: -100%;\n"]))),z=v.default(s.Input)(k||(k=e.__makeTemplateObject(["\n #booking-search-bar & {\n input {\n font-size: 16px;\n }\n }\n"],["\n #booking-search-bar & {\n input {\n font-size: 16px;\n }\n }\n"]))),j=u.createGlobalStyle(L||(L=e.__makeTemplateObject(["\n .care-popup-open {\n overflow: hidden;\n position: fixed;\n &::before {\n content: '';\n inset: 0;\n position: absolute;\n background-color: white;\n min-height: 100vh;\n min-width: 100vw;\n z-index: 2;\n }\n }\n"],["\n .care-popup-open {\n overflow: hidden;\n position: fixed;\n &::before {\n content: '';\n inset: 0;\n position: absolute;\n background-color: white;\n min-height: 100vh;\n min-width: 100vw;\n z-index: 2;\n }\n }\n"]))),B=function(e){var t=e.className,n=e.color;return g.default.createElement("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g.default.createElement("path",{d:"M18 6L6 18",stroke:n||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),g.default.createElement("path",{d:"M6 6L18 18",stroke:n||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))},D=function(e){var t=e.className,n=e.color;return g.default.createElement("svg",{width:"14",height:"20",viewBox:"0 0 14 20",className:t},g.default.createElement("path",{d:"M7 0C3.134 0 0 3.134 0 7C0 10.966 4.404 16.82 6.226 19.071C6.626 19.565 7.374 19.565 7.774 19.071C9.596 16.82 14 10.966 14 7C14 3.134 10.866 0 7 0ZM7 9.5C5.619 9.5 4.5 8.381 4.5 7C4.5 5.619 5.619 4.5 7 4.5C8.381 4.5 9.5 5.619 9.5 7C9.5 8.381 8.381 9.5 7 9.5Z",fill:n||"currentColor"}))},H=function(e){var t=e.className,n=e.color;return g.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:t},g.default.createElement("path",{d:"M9.99967 6.66658C8.15801 6.66658 6.66634 8.15825 6.66634 9.99992C6.66634 11.8416 8.15801 13.3333 9.99967 13.3333C11.8413 13.3333 13.333 11.8416 13.333 9.99992C13.333 8.15825 11.8413 6.66658 9.99967 6.66658ZM17.4497 9.16658C17.0663 5.69158 14.308 2.93325 10.833 2.54992V1.66659C10.833 1.20825 10.458 0.833252 9.99967 0.833252C9.54134 0.833252 9.16634 1.20825 9.16634 1.66659V2.54992C5.69134 2.93325 2.93301 5.69158 2.54967 9.16658H1.66634C1.20801 9.16658 0.833008 9.54158 0.833008 9.99992C0.833008 10.4583 1.20801 10.8333 1.66634 10.8333H2.54967C2.93301 14.3083 5.69134 17.0666 9.16634 17.4499V18.3333C9.16634 18.7916 9.54134 19.1666 9.99967 19.1666C10.458 19.1666 10.833 18.7916 10.833 18.3333V17.4499C14.308 17.0666 17.0663 14.3083 17.4497 10.8333H18.333C18.7913 10.8333 19.1663 10.4583 19.1663 9.99992C19.1663 9.54158 18.7913 9.16658 18.333 9.16658H17.4497ZM9.99967 15.8333C6.77467 15.8333 4.16634 13.2249 4.16634 9.99992C4.16634 6.77492 6.77467 4.16658 9.99967 4.16658C13.2247 4.16658 15.833 6.77492 15.833 9.99992C15.833 13.2249 13.2247 15.8333 9.99967 15.8333Z",fill:n||"currentColor"}))},V=function(e){var t=e.className,n=e.color;return g.default.createElement("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g.default.createElement("path",{d:"M11 18C14.866 18 18 14.866 18 11C18 7.13401 14.866 4 11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18Z",stroke:n||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),g.default.createElement("path",{d:"M20 20L16 16",stroke:n||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))},K=function(e){var t=e.width,n=e.height;return g.default.createElement("svg",{width:t||30,height:n||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g.default.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}))},Z=v.default.li(S||(S=e.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 8px 16px;\n\n > :first-child {\n flex: 1;\n }\n\n > :nth-child(2) {\n flex: 6;\n }\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n"],["\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 8px 16px;\n\n > :first-child {\n flex: 1;\n }\n\n > :nth-child(2) {\n flex: 6;\n }\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n"])),a.theme.colors.neutral100),G=v.default.div(T||(T=e.__makeTemplateObject(["\n display: flex;\n position: absolute;\n top: 48px;\n min-width: 100%;\n box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),\n 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n border-radius: 6px;\n background-color: white;\n z-index: 30;\n\n "," {\n position: relative;\n top: 0;\n box-shadow: initial;\n }\n"],["\n display: flex;\n position: absolute;\n top: 48px;\n min-width: 100%;\n box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),\n 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n border-radius: 6px;\n background-color: white;\n z-index: 30;\n\n "," {\n position: relative;\n top: 0;\n box-shadow: initial;\n }\n"])),o.MediaQueries.mbDown),U=v.default.ul(O||(O=e.__makeTemplateObject(["\n width: 100%;\n max-height: 600px;\n overflow-y: auto;\n"],["\n width: 100%;\n max-height: 600px;\n overflow-y: auto;\n"]))),q=v.default(D)(I||(I=e.__makeTemplateObject(["\n width: 12px;\n height: 18px;\n"],["\n width: 12px;\n height: 18px;\n"]))),Q=v.default.li(M||(M=e.__makeTemplateObject(["\n position: relative;\n cursor: pointer;\n padding: 12px 18px;\n display: flex;\n align-items: center;\n gap: 14px;\n overflow: hidden;\n\n ","\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n\n &:not([data-is-denied='true']):hover {\n background-color: ",";\n }\n\n &:last-child:hover {\n border-bottom-right-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n\n &:first-child:hover {\n border-top-right-radius: 6px;\n border-top-left-radius: 6px;\n }\n\n &[data-is-denied='true'] {\n cursor: not-allowed;\n }\n"],["\n position: relative;\n cursor: pointer;\n padding: 12px 18px;\n display: flex;\n align-items: center;\n gap: 14px;\n overflow: hidden;\n\n ","\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n\n &:not([data-is-denied='true']):hover {\n background-color: ",";\n }\n\n &:last-child:hover {\n border-bottom-right-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n\n &:first-child:hover {\n border-top-right-radius: 6px;\n border-top-left-radius: 6px;\n }\n\n &[data-is-denied='true'] {\n cursor: not-allowed;\n }\n"])),(function(e){return e.isSelected&&"\n &::after {\n content: ".concat("url(\"data:image/svg+xml,%3Csvg width='19' height='14' viewBox='0 0 19 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.9803 0.990669C16.7205 0.99841 16.4739 1.10699 16.2928 1.2934L5.99984 11.5864L2.70687 8.2934C2.61473 8.19743 2.50436 8.12081 2.38223 8.06802C2.2601 8.01524 2.12867 7.98735 1.99563 7.986C1.86259 7.98464 1.73061 8.00985 1.60743 8.06014C1.48426 8.11043 1.37235 8.18479 1.27827 8.27887C1.1842 8.37295 1.10983 8.48485 1.05954 8.60803C1.00926 8.73121 0.98405 8.86318 0.985403 8.99622C0.986757 9.12926 1.01464 9.26069 1.06743 9.38282C1.12021 9.50495 1.19684 9.61532 1.29281 9.70747L5.29281 13.7075C5.48035 13.8949 5.73467 14.0002 5.99984 14.0002C6.26501 14.0002 6.51933 13.8949 6.70687 13.7075L17.7069 2.70747C17.8514 2.567 17.9501 2.38616 17.99 2.18864C18.03 1.99112 18.0093 1.78614 17.9308 1.60055C17.8523 1.41497 17.7195 1.25744 17.5499 1.14861C17.3803 1.03978 17.1817 0.984729 16.9803 0.990669Z' fill='%232685F1'/%3E%3C/svg%3E%0A\")",";\n top: 50%;\n right: 18px;\n position: absolute;\n transform: translateY(-50%);\n }\n ")}),a.theme.colors.neutral100,a.theme.colors.neutral50),W=v.default((function(t){var n=t.count,a=t.className,i=p.useId(n);return g.default.createElement(g.default.Fragment,null,e.__spreadArray([],Array(n),!0).map((function(e,t){return g.default.createElement(Z,{className:a,key:i[t]},g.default.createElement(x.default,{count:1,height:32}),g.default.createElement(x.default,{count:1,height:24}))})))}))(R||(R=e.__makeTemplateObject(["\n &:first-child {\n padding-top: 18px;\n }\n"],["\n &:first-child {\n padding-top: 18px;\n }\n"]))),Y=function(e){var t=e.cities,n=e.isLoading,i=e.onLocationClick,r=e.onCurrentLocationClick,s=e.geoLocationPermission,c=void 0===s?"unset":s,u=e.isLocationLoading,d=e.selectedLocation,p=o.useTranslations().t,h="denied"===c,f=function(){return g.default.createElement(Q,{role:"button",tabIndex:0,onClick:function(e){h||(e.nativeEvent.stopImmediatePropagation(),u||r())},"data-is-denied":h},h?g.default.createElement(l.Text,{color:"var(--gray600)",size:"md"},"x"):u?g.default.createElement(x.default,{height:20,width:20}):g.default.createElement(H,{color:a.theme.colors.primaryBase}),g.default.createElement("div",null,h?g.default.createElement(l.Text,{color:"var(--gray600)",size:"sm",style:{lineHeight:1.5}},p("booking.searchBar.grantLocation")):u?g.default.createElement(x.default,{height:20,style:{width:"calc(100% - 16px)"}}):g.default.createElement(l.Text,{size:"md"},p("booking.searchBar.useCurrentLocation"))))};return g.default.createElement(G,{"data-testid":"location-search-results"},g.default.createElement(U,null,n?g.default.createElement(W,{count:5}):!t||t.length<1?g.default.createElement(g.default.Fragment,null,f(),g.default.createElement(Q,{"data-is-denied":"true"},g.default.createElement(l.Text,{size:"sm",color:"#ccc"},p("booking.searchBar.noResults")))):g.default.createElement(g.default.Fragment,null,f(),t.map((function(e){return g.default.createElement(Q,{key:e.id,onClick:function(t){t.nativeEvent.stopImmediatePropagation(),i&&i(e)},role:"button",tabIndex:0,"aria-label":"Select ".concat(e.name," as location"),isSelected:(null==d?void 0:d.id)===e.id},g.default.createElement(q,{color:a.theme.colors.neutral400}),g.default.createElement(l.Text,{size:"md"},e.name))})))))},J="TYPE_CHARACTER",X="REMOVE_CHARACTER",$="REMOVE_ALL",ee="REMOVE_LAST_VISIBLE_NODE",te="PAUSE_FOR",ne="CHANGE_DELETE_SPEED",ae="CHANGE_DELAY",ie="PASTE_STRING",oe=function(e,t){return Math.floor(Math.random()*(t-e+1))+e},re="TEXT_NODE",le=function(){function t(t){var n=this;this.state={lastFrameTime:null,pauseUntil:null,eventQueue:[],eventLoop:null,eventLoopPaused:!1,reverseCalledEvents:[],calledEvents:[],visibleNodes:[],initialOptions:null},this.options={strings:null,delay:"natural",pauseFor:1500,deleteSpeed:"natural",loop:!1,autoStart:!1,stringSplitter:null,onCreateTextNode:null,onRemoveNode:null},this.start=function(){return n.state.eventLoopPaused=!1,n.runEventLoop(),n},this.pause=function(){return n.state.eventLoopPaused=!0,n},this.stop=function(){return n.state.eventLoop&&(window.cancelAnimationFrame(n.state.eventLoop),n.state.eventLoop=null),n},this.pauseFor=function(e){return n.addEventToQueue(te,{ms:e}),n},this.typeOutAllStrings=function(){return"string"==typeof n.options.strings?(n.typeString(n.options.strings).pauseFor(n.options.pauseFor),n):(n.options.strings.forEach((function(e){n.typeString(e).pauseFor(n.options.pauseFor).deleteAll(n.options.deleteSpeed)})),n)},this.typeString=function(e,t){if(void 0===t&&(t=null),e){var a=(n.options||{}).stringSplitter,i="function"==typeof a?a(e):e.split("");n.typeCharacters(i,t)}return n},this.pasteString=function(e,t){return void 0===t&&(t=null),e&&n.addEventToQueue(ie,{character:e,node:t}),n},this.deleteAll=function(e){return void 0===e&&(e="natural"),n.addEventToQueue($,{speed:e}),n},this.changeDeleteSpeed=function(e){if(!e)throw new Error("Must provide new delete speed");return n.addEventToQueue(ne,{speed:e}),n},this.changeDelay=function(e){if(!e)throw new Error("Must provide new delay");return n.addEventToQueue(ae,{delay:e}),n},this.deleteChars=function(e){if(!e)throw new Error("Must provide amount of characters to delete");for(var t=0;t<e;t++)n.addEventToQueue(X);return n},this.typeCharacters=function(e,t){if(void 0===t&&(t=null),!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((function(e){n.addEventToQueue(J,{character:e,node:t})})),n},this.removeCharacters=function(e){if(!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((function(){n.addEventToQueue(X)})),n},this.addEventToQueue=function(e,t,a){return void 0===a&&(a=!1),n.addEventToStateProperty(e,t,a,"eventQueue")},this.addReverseCalledEvent=function(e,t,a){return void 0===a&&(a=!1),n.options.loop?n.addEventToStateProperty(e,t,a,"reverseCalledEvents"):n},this.addEventToStateProperty=function(t,a,i,o){void 0===i&&(i=!1);var r={eventName:t,eventArgs:a||{}};return n.state[o]=i?e.__spreadArray([r],n.state[o],!0):e.__spreadArray(e.__spreadArray([],n.state[o],!0),[r],!1),n},this.runEventLoop=function(){n.state.lastFrameTime||(n.state.lastFrameTime=Date.now());var t=Date.now(),a=t-n.state.lastFrameTime;if(!n.state.eventQueue.length){if(!n.options.loop)return;n.state.eventQueue=e.__spreadArray([],n.state.calledEvents,!0),n.state.calledEvents=[],n.options=e.__assign({},n.state.initialOptions)}if(n.state.eventLoop=window.requestAnimationFrame(n.runEventLoop),!n.state.eventLoopPaused){if(n.state.pauseUntil){if(t<n.state.pauseUntil)return;n.state.pauseUntil=null}var i=e.__spreadArray([],n.state.eventQueue,!0),o=i.shift();if(!(a<=(o.eventName===ee||o.eventName===X?"natural"===n.options.deleteSpeed?oe(40,80):n.options.deleteSpeed:"natural"===n.options.delay?oe(120,160):n.options.delay))){var r=o.eventName,l=o.eventArgs;switch(r){case ie:case J:var s=l.character,c=document.createTextNode(s),u=c;n.options.onCreateTextNode&&"function"==typeof n.options.onCreateTextNode&&(u=n.options.onCreateTextNode(s,c)),n.state.visibleNodes=e.__spreadArray(e.__spreadArray([],n.state.visibleNodes,!0),[{type:re,character:s,node:u}],!1);break;case X:i.unshift({eventName:ee,eventArgs:{removingCharacterNode:!0}});break;case te:var d=o.eventArgs.ms;n.state.pauseUntil=Date.now()+parseInt(d);break;case $:var p=n.state.visibleNodes,h=l.speed,f=[];h&&f.push({eventName:ne,eventArgs:{speed:h,temp:!0}});for(var g=0,m=p.length;g<m;g++)f.push({eventName:ee,eventArgs:{removingCharacterNode:!1}});h&&f.push({eventName:ne,eventArgs:{speed:n.options.deleteSpeed,temp:!0}}),i.unshift.apply(i,f);break;case ee:if(n.state.visibleNodes.length){var C=n.state.visibleNodes.pop(),v=C.node;s=C.character;n.options.onRemoveNode&&"function"==typeof n.options.onRemoveNode&&n.options.onRemoveNode({node:v,character:s}),v&&v.parentNode.removeChild(v)}break;case ne:n.options.deleteSpeed=o.eventArgs.speed;break;case ae:n.options.delay=o.eventArgs.delay}n.options.loop&&(o.eventName===ee||o.eventArgs&&o.eventArgs.temp||(n.state.calledEvents=e.__spreadArray(e.__spreadArray([],n.state.calledEvents,!0),[o],!1))),n.state.eventQueue=i,n.state.lastFrameTime=t}}},t&&(this.options=e.__assign(e.__assign({},this.options),t)),this.state.initialOptions=e.__assign({},this.options),this.init()}return t.prototype.init=function(){this.addEventToQueue($,null,!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()},t}();function se(e){var n=e.inputRef,a=e.wrapperRef,i=e.disabled,r=o.useTranslations(),l=r.t,s=r.locale,c=t.useMemo((function(){if(i)return[];var e=["booking.searchBar.placeholder.hospital","booking.searchBar.placeholder.doctor"];return"zh-TW"!==s&&e.push("booking.searchBar.placeholder.specialty","booking.searchBar.placeholder.service"),b.default(e).map((function(e){return l(e)}))}),[l,s]);function u(e){var t=p();return t&&(t.placeholder=t.placeholder+e),null}function d(){var e=p();e&&(e.placeholder=e.placeholder.slice(0,-1))}function p(){return n&&n.current?n.current:a&&a.current&&a.current.querySelector("input")||null}t.useEffect((function(){if(!i){var e=p();e&&(e.placeholder="",new le({strings:c,autoStart:!0,loop:!0,delay:32,deleteSpeed:32,pauseFor:1500,onCreateTextNode:u,onRemoveNode:d}))}}),[n,a])}var ce,ue=v.default.div(ce||(ce=e.__makeTemplateObject(["\n user-select: none;\n input {\n pointer-events: none;\n background-color: white;\n }\n"],["\n user-select: none;\n input {\n pointer-events: none;\n background-color: white;\n }\n"])));function de(n){var i=n.focused,r=n.value,l=void 0===r?"":r,s=n.onClick,c=n.trackingAttributes,u=n.inputSearchPlaceholder,d=o.useTranslations().t,p=t.useRef(null);se({wrapperRef:p,disabled:!!u});var h=t.useMemo((function(){return c?{"data-event-category":c.dataEventCategory,"data-event-action":c.dataEventAction,"data-event-label":c.dataEventLabel}:{}}),[c]);return g.default.createElement(ue,e.__assign({onClick:function(){return s&&s()},ref:p},h),g.default.createElement(z,{inputClassName:"location"===i?"focused":void 0,name:"booking-search-placeholder",displayIcon:g.default.createElement(V,{color:a.theme.colors.gray400}),placeholder:d("booking.searchBar.searchInput.placeholder"),value:l,size:"md"}))}var pe,he,fe,ge,me,Ce,ve=v.default.header(pe||(pe=e.__makeTemplateObject(["\n display: flex;\n height: 64px;\n align-items: center;\n justify-content: space-between;\n margin: 0 auto;\n position: sticky;\n z-index: 99;\n background-color: white;\n top: 0;\n left: 0;\n"],["\n display: flex;\n height: 64px;\n align-items: center;\n justify-content: space-between;\n margin: 0 auto;\n position: sticky;\n z-index: 99;\n background-color: white;\n top: 0;\n left: 0;\n"]))),xe=v.default.div(he||(he=e.__makeTemplateObject(["\n display: inline-flex;\n flex: 1;\n justify-content: flex-end;\n cursor: pointer;\n text-decoration: underline;\n"],["\n display: inline-flex;\n flex: 1;\n justify-content: flex-end;\n cursor: pointer;\n text-decoration: underline;\n"]))),be=v.default.div(fe||(fe=e.__makeTemplateObject(["\n display: flex;\n align-items: center;\n margin-left: 16px;\n cursor: pointer;\n"],["\n display: flex;\n align-items: center;\n margin-left: 16px;\n cursor: pointer;\n"]))),ye=v.default.div(ge||(ge=e.__makeTemplateObject(["\n width: 100%;\n margin-left: 24px;\n"],["\n width: 100%;\n margin-left: 24px;\n"]))),_e=v.default(l.Text)(me||(me=e.__makeTemplateObject(["\n color: ",";\n text-align: start;\n"],["\n color: ",";\n text-align: start;\n"])),a.theme.colors.secondaryDark),we=function(e){var t=e.className,n=e.onLeftClick,i=e.headingText,o=e.onRightClick,r=e.iconLeft,l=e.textRight;return g.default.createElement(ve,{className:t},g.default.createElement(be,{onClick:n},r||g.default.createElement(B,{color:a.theme.colors.gray800})),g.default.createElement(ye,null,g.default.createElement(_e,{size:"md",type:"bold"},i)),g.default.createElement(xe,{onClick:o},l&&g.default.createElement("p",null,l)))},Ee={"en-PH":3,"tl-PH":2,"id-ID":3,"vi-VN":2,"zh-TW":0},ke={isMobile:!1,isDebug:!1,navigateTo:null,geoLocationPermission:"unset",geoLocationCoordinates:null,focused:"none",searchLocationKeywords:"",searchKeywords:"",selectedLocation:null,defaultCity:null,initialCities:[],cities:[],searchResults:[],initialSearchResults:[],isLoadingCities:!1,isLoadingSearchResults:!1,isMobileModalOpened:!1,initialSelectedCity:null,autoCompleteDisabled:!1,inputSearchPlaceholder:"",locale:"vi-VN"};function Le(t){var n=t.selectedLocation,a=t.searchLocationKeywords;return n&&a!==n.name?e.__assign(e.__assign({},t),{searchLocationKeywords:n.name}):t}function Se(t,a){var i;switch(t.isDebug&&console.log("bookingSearchBar",{action:a,state:t}),a.type){case Ce.NavigateTo:return e.__assign(e.__assign({},t),{navigateTo:a.payload,focused:"none",isMobileModalOpened:!1});case Ce.ClickOutsideInputLocation:return t.isMobile||"location"!==t.focused?t:Le(e.__assign(e.__assign({},t),{focused:"none"}));case Ce.ClickOutsideInputSearch:return t.isMobile||"search"!==t.focused?t:e.__assign(e.__assign({},t),{focused:"none"});case Ce.FocusInputLocation:var o=e.__assign(e.__assign({},t),{focused:"location"});return(null===(i=t.selectedLocation)||void 0===i?void 0:i.id)===n.ID_OPTION_CURRENT_LOCATION&&(o.searchLocationKeywords=""),o;case Ce.FocusInputSearch:var r=e.__assign(e.__assign({},t),{focused:"search"});return t.isMobile?Le(r):r;case Ce.ChangeInputLocation:return e.__assign(e.__assign({},t),{searchLocationKeywords:a.payload});case Ce.ChangeInputSearch:var l=a.payload;return e.__assign(e.__assign({},t),{searchKeywords:l,isLoadingSearchResults:l.trim().length>Ee[t.locale]});case Ce.SelectCurrentLocation:return e.__assign(e.__assign({},t),{focused:"none",selectedLocation:a.payload,searchLocationKeywords:a.payload.name});case Ce.ClearInputLocation:return e.__assign(e.__assign({},t),{focused:"location",cities:t.initialCities,searchLocationKeywords:""});case Ce.ClearInputSearch:return e.__assign(e.__assign({},t),{focused:"search",searchKeywords:""});case Ce.SelectLocation:return e.__assign(e.__assign({},t),{focused:"none",selectedLocation:a.payload,searchLocationKeywords:a.payload.name});case Ce.SelectSearchResult:return e.__assign(e.__assign({},t),{searchKeywords:a.payload.name,isMobileModalOpened:!1,focused:"none",navigateTo:a.payload.url});case Ce.FetchCitiesStart:return e.__assign(e.__assign({},t),{isLoadingCities:!0});case Ce.FetchCitiesFinish:return e.__assign(e.__assign({},t),{isLoadingCities:!1});case Ce.FetchSearchResultsStart:return e.__assign(e.__assign({},t),{isLoadingSearchResults:!0});case Ce.FetchSearchResultsFinish:return e.__assign(e.__assign({},t),{isLoadingSearchResults:!1});case Ce.FetchSearchResultsComplete:var s=e.__assign(e.__assign({},t),{searchResults:a.payload});return 0===t.initialSearchResults.length&&(s.initialSearchResults=a.payload),s;case Ce.FetchCitiesByGeoIpComplete:var c=a.payload.cities,u=a.payload.default;(c=c.filter((function(e){return e.id!==u.id}))).unshift(u),t.initialSelectedCity&&!c.find((function(e){return e.id===t.initialSelectedCity.id}))&&c.unshift(t.initialSelectedCity);var d=e.__assign(e.__assign({},t),{defaultCity:u,initialCities:c,cities:c});return"denied"!==t.geoLocationPermission||t.initialSelectedCity||(d.selectedLocation=u,d.searchLocationKeywords=u.name),d;case Ce.FetchCitiesByKeywordComplete:return e.__assign(e.__assign({},t),{cities:a.payload});case Ce.DisplayInitialCities:return e.__assign(e.__assign({},t),{cities:t.initialCities});case Ce.DisplayInitialSearchResults:return e.__assign(e.__assign({},t),{searchResults:t.initialSearchResults,isLoadingSearchResults:!1});case Ce.GrantGeoLocationPermission:return e.__assign(e.__assign({},t),{geoLocationPermission:"granted",geoLocationCoordinates:a.payload});case Ce.DenyGeoLocationPermission:return e.__assign(e.__assign({},t),{geoLocationPermission:"denied",geoLocationCoordinates:null});case Ce.OpenMobileModal:return e.__assign(e.__assign({},t),{isMobileModalOpened:!0});case Ce.CloseMobileModal:return e.__assign(e.__assign({},t),{isMobileModalOpened:!1});case Ce.UpdateInitialSearchValue:return e.__assign(e.__assign({},t),{searchKeywords:a.payload});case Ce.SetInputSearchPlaceholder:return e.__assign(e.__assign({},t),{inputSearchPlaceholder:a.payload});default:return t}}!function(e){e.NavigateTo="navigate to url",e.ClickOutsideInputLocation="click outside input location",e.ClickOutsideInputSearch="click outside input search",e.SelectCurrentLocation="select current location",e.FocusInputLocation="focus input location",e.FocusInputSearch="focus input search",e.ChangeInputLocation="change input location",e.ChangeInputSearch="change input search",e.ClearInputLocation="clear input location",e.ClearInputSearch="clear input search",e.SelectLocation="select location",e.FetchCitiesStart="fetch cities start",e.FetchCitiesFinish="fetch cities finish",e.FetchSearchResultsStart="fetch search results start",e.FetchSearchResultsComplete="fetch search results complete",e.FetchSearchResultsFinish="fetch search results finish",e.FetchCitiesByGeoIpComplete="fetch cities by geo IP finish",e.FetchCitiesByKeywordComplete="fetch cities by keyword finish",e.DisplayInitialCities="display initial cities",e.DisplayInitialSearchResults="display initial search results",e.GrantGeoLocationPermission="grant geolocation permission",e.DenyGeoLocationPermission="deny geolocation permission",e.OpenMobileModal="open mobile modal",e.CloseMobileModal="close mobile modal",e.UpdateInitialSearchValue="update initial search value",e.SelectSearchResult="select search result",e.SetInputSearchPlaceholder="set input search placeholder"}(Ce||(Ce={}));var Te,Oe,Ie,Me,Re,Ae,Ne,Pe=function(){return g.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},g.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.97887 8.15493C2.97887 5.29627 5.29627 2.97887 8.15493 2.97887C11.0136 2.97887 13.331 5.29627 13.331 8.15493C13.331 11.0136 11.0136 13.331 8.15493 13.331C5.29627 13.331 2.97887 11.0136 2.97887 8.15493ZM8.15493 1.5C4.47951 1.5 1.5 4.47951 1.5 8.15493C1.5 11.8303 4.47951 14.8099 8.15493 14.8099C9.72624 14.8099 11.1704 14.2653 12.3089 13.3546L15.2377 16.2834C15.5265 16.5722 15.9947 16.5722 16.2834 16.2834C16.5722 15.9947 16.5722 15.5265 16.2834 15.2377L13.3546 12.3089C14.2653 11.1704 14.8099 9.72624 14.8099 8.15493C14.8099 4.47951 11.8303 1.5 8.15493 1.5Z",fill:"white"}))},Fe=v.default.button(Te||(Te=e.__makeTemplateObject(["\n min-height: 100%;\n border-radius: 6px;\n background-color: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 11px;\n cursor: pointer;\n flex: 0.3;\n\n "," {\n --margin: 16px;\n min-height: 32px;\n margin: var(--margin);\n width: calc(100% - var(--margin) * 2);\n position: absolute;\n bottom: 0;\n }\n\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n\n &:focus-visible {\n outline: 1px solid black;\n }\n"],["\n min-height: 100%;\n border-radius: 6px;\n background-color: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 11px;\n cursor: pointer;\n flex: 0.3;\n\n "," {\n --margin: 16px;\n min-height: 32px;\n margin: var(--margin);\n width: calc(100% - var(--margin) * 2);\n position: absolute;\n bottom: 0;\n }\n\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n\n &:focus-visible {\n outline: 1px solid black;\n }\n"])),(function(e){return e.theme.colors.primaryBase}),o.MediaQueries.mbDown,(function(e){return e.theme.colors.primaryHover}),(function(e){return e.theme.colors.primaryActive})),ze=v.default(l.Text)(Oe||(Oe=e.__makeTemplateObject(["\n font-weight: ",";\n"],["\n font-weight: ",";\n"])),(function(e){return e.theme.sizes.fwSemiBold})),je=function(e){var t=e.onClick,n=(0,o.useTranslations().t)("booking.searchBar.searchButton");return g.default.createElement(Fe,{onClick:t,title:n},g.default.createElement(Pe,null),g.default.createElement(ze,{size:"s3",color:"white"},n))},Be=v.default.div(Ie||(Ie=e.__makeTemplateObject(["\n display: flex;\n gap: 16px;\n "," {\n flex-direction: column;\n padding: 14px;\n background-color: ",";\n\n input {\n filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.04))\n drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.06))\n drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));\n }\n }\n\n input {\n background-color: white;\n }\n"],["\n display: flex;\n gap: 16px;\n "," {\n flex-direction: column;\n padding: 14px;\n background-color: ",";\n\n input {\n filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.04))\n drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.06))\n drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));\n }\n }\n\n input {\n background-color: white;\n }\n"])),o.MediaQueries.mbDown,a.theme.colors.blue50),De=v.default.div(Me||(Me=e.__makeTemplateObject(["\n position: relative;\n"],["\n position: relative;\n"]))),He=v.default(De)(Re||(Re=e.__makeTemplateObject(["\n flex: 1;\n"],["\n flex: 1;\n"]))),Ve=v.default(De)(Ae||(Ae=e.__makeTemplateObject(["\n flex: 2;\n"],["\n flex: 2;\n"]))),Ke=v.default((function(e){var t=e.className,n=e.color;return g.default.createElement("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g.default.createElement("rect",{x:"4",y:"4",width:"16",height:"16",rx:"8",fill:"white"}),g.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM8.29289 8.29289C8.68342 7.90237 9.31658 7.90237 9.70711 8.29289L12 10.5858L14.2929 8.29289C14.6834 7.90237 15.3166 7.90237 15.7071 8.29289C16.0976 8.68342 16.0976 9.31658 15.7071 9.70711L13.4142 12L15.7071 14.2929C16.0976 14.6834 16.0976 15.3166 15.7071 15.7071C15.3166 16.0976 14.6834 16.0976 14.2929 15.7071L12 13.4142L9.70711 15.7071C9.31658 16.0976 8.68342 16.0976 8.29289 15.7071C7.90237 15.3166 7.90237 14.6834 8.29289 14.2929L10.5858 12L8.29289 9.70711C7.90237 9.31658 7.90237 8.68342 8.29289 8.29289Z",fill:n||"currentColor"}))}))(Ne||(Ne=e.__makeTemplateObject(["\n display: none;\n &.shown {\n display: block;\n }\n"],["\n display: none;\n &.shown {\n display: block;\n }\n"])));function Ze(e){var i=e.isMobile,r=e.state,s=e.dispatch,c=e.debouncedFetchCitiesByKeyword,u=e.debouncedFetchSearchResults,d=e.focusLocationInput,p=e.focusSearchInput,h=e.renderLocationResults,f=e.renderSearchResults,m=e.locationTrackingAttributes,C=e.trackingAttributes,v=e.onSearch,x=e.initalSearchValue,b=t.useRef(null),y=t.useRef(null),_=r.focused,w=r.searchLocationKeywords,E=r.geoLocationPermission,k=r.selectedLocation,L=r.searchKeywords,S=r.inputSearchPlaceholder,T=o.useTranslations().t;se({wrapperRef:y,disabled:!!S}),l.useOutsideClick(b,(function(){s({type:Ce.ClickOutsideInputLocation})})),l.useOutsideClick(y,(function(){s({type:Ce.ClickOutsideInputSearch})}));var O=t.useMemo((function(){return"granted"===E&&(null==k?void 0:k.id)===n.ID_OPTION_CURRENT_LOCATION?a.theme.colors.primaryBase:a.theme.colors.gray400}),[E,k]),I=t.useCallback((function(e){s({type:Ce.ChangeInputSearch,payload:e}),"function"!=typeof v&&(e.trim().length>Ee[r.locale]||x?u(e.trim(),r):(u.cancel(),s({type:Ce.DisplayInitialSearchResults})))}),[s,r]),M=t.useCallback((function(e){s({type:Ce.ChangeInputLocation,payload:e}),e.trim().length>Ee[r.locale]?c(e.trim()):(c.cancel(),s({type:Ce.DisplayInitialCities}))}),[c,s]);return g.default.createElement(Be,null,g.default.createElement(He,{ref:b},g.default.createElement(z,{inputClassName:"location"===_?"focused":void 0,placeholder:T("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:g.default.createElement(D,{className:"location-pin-icon",color:O}),actionIcon:g.default.createElement(Ke,{color:a.theme.colors.gray300,className:""!==w?"shown":""}),onActionClick:function(){s({type:Ce.ClearInputLocation}),c.cancel(),d()},value:w,onChange:M,onFocus:function(){return s({type:Ce.FocusInputLocation})},size:"md",trackingAttributes:m}),!i&&h()),g.default.createElement(Ve,{ref:y},g.default.createElement(z,{placeholder:S||T("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:g.default.createElement(Ke,{color:a.theme.colors.gray300,className:""!==L?"shown":""}),onActionClick:function(){s({type:Ce.ClearInputSearch}),u.cancel(),u("",r),p()},value:L,onChange:I,onFocus:function(){return s({type:Ce.FocusInputSearch})},inputClassName:"search"===_?"focused":void 0,size:"md",trackingAttributes:C,onKeyPress:function(e){r.autoCompleteDisabled&&"Enter"===e.key&&v&&v({cityId:r.selectedLocation.id,keyword:L})},enterKeyHint:r.autoCompleteDisabled?"search":void 0}),!i&&f()),r.autoCompleteDisabled&&!r.isMobile&&g.default.createElement(je,{onClick:function(){v({cityId:r.selectedLocation.id,keyword:L})}}))}var Ge,Ue,qe,Qe,We,Ye,Je,Xe,$e,et,tt,nt,at,it,ot=v.default.li(Ge||(Ge=e.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: var(--rowGap);\n cursor: pointer;\n"],["\n display: flex;\n align-items: center;\n gap: var(--rowGap);\n cursor: pointer;\n"]))),rt=v.default.div(Ue||(Ue=e.__makeTemplateObject(["\n --wrapper-size: var(--graphicSize);\n border-radius: calc(var(--wrapper-size) / 2);\n background-color: var(--neutral50);\n width: var(--wrapper-size);\n height: var(--wrapper-size);\n aspect-ratio: 1/1;\n overflow: hidden;\n\n ","\n\n img {\n width: var(--graphicSize);\n height: var(--graphicSize);\n ","\n }\n\n &:focus-visible {\n outline: 1px solid ",";\n }\n"],["\n --wrapper-size: var(--graphicSize);\n border-radius: calc(var(--wrapper-size) / 2);\n background-color: var(--neutral50);\n width: var(--wrapper-size);\n height: var(--wrapper-size);\n aspect-ratio: 1/1;\n overflow: hidden;\n\n ","\n\n img {\n width: var(--graphicSize);\n height: var(--graphicSize);\n ","\n }\n\n &:focus-visible {\n outline: 1px solid ",";\n }\n"])),(function(e){var t=e.type;return t&&"doctors"===t&&"\n border-radius: calc(var(--graphicSize) / 2);\n "}),(function(e){var t=e.type;return t&&"doctors"===t?"\n\n object-fit: cover; \n ":"\n object-fit: contain;\n "}),a.theme.colors.gray600),lt=v.default(l.Text)(qe||(qe=e.__makeTemplateObject(["\n line-height: 22px;\n letter-spacing: -0.2px;\n\n "," {\n &[data-size='p3'] {\n font-size: 14px;\n }\n }\n"],["\n line-height: 22px;\n letter-spacing: -0.2px;\n\n "," {\n &[data-size='p3'] {\n font-size: 14px;\n }\n }\n"])),o.MediaQueries.tdUp),st=v.default.figure(Qe||(Qe=e.__makeTemplateObject(["\n max-width: var(--graphicSize);\n min-width: var(--graphicSize);\n"],["\n max-width: var(--graphicSize);\n min-width: var(--graphicSize);\n"]))),ct=v.default.svg(We||(We=e.__makeTemplateObject(["\n margin: 0 auto;\n display: block;\n"],["\n margin: 0 auto;\n display: block;\n"]))),ut=v.default.div(Ye||(Ye=e.__makeTemplateObject(["\n display: grid;\n place-items: center;\n"],["\n display: grid;\n place-items: center;\n"]))),dt={doctors:function(e){var t=e.width,n=e.height;return g.default.createElement("svg",{width:t||32,height:n||32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g.default.createElement("g",{clipPath:"url(#clip0_14712_400114)"},g.default.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),g.default.createElement("path",{d:"M22.065 9.58305C22.1108 9.80952 22.1431 10.0396 22.1614 10.2722C22.3769 13.0522 22.5858 16.1276 22.5727 17.618C22.5306 20.5688 19.708 21.1325 19.4564 21.1769L19.4495 21.5357L19.5228 23.9014C20.8688 23.9341 22.203 24.1759 23.4772 24.6196C24.5264 24.9739 25.4827 25.5591 26.2757 26.332C27.0688 27.105 27.6783 28.0461 28.0594 29.0858L31.9886 39.2068C31.91 39.3048 30.6939 39.6356 29.4888 39.944C30.1695 42.3315 30.4582 44.8142 30.3432 47.2953C30.2991 48.2666 30.1816 49.264 29.7245 50.1211C29.4508 50.6342 29.0319 51.0912 28.5296 51.3753C28.5099 51.4347 28.4864 51.4928 28.4593 51.5495C28.4293 51.6146 28.3908 51.6756 28.3448 51.7307C28.3293 51.7772 28.3232 51.8406 28.3162 51.9135C28.3004 52.0779 28.2799 52.2909 28.1362 52.4685C28.001 52.6373 27.8519 52.7945 27.6905 52.9386C27.6905 52.9386 27.092 52.9667 26.4133 52.9845L26.458 58.4088H5.7492L6.30965 52.9523L5.66093 53.1637C5.07664 53.3528 4.45628 53.4028 3.84925 53.3099C3.24222 53.2169 2.66526 52.9835 2.1643 52.6283C1.61489 52.2388 1.17445 51.715 0.884966 51.1068C0.595484 50.4987 0.46662 49.8266 0.510669 49.1545L0.644528 47.1369L1.41503 38.3366L1.81323 38.4135L-0.914307 37.8437L-0.402886 36.5663C-0.407359 36.5645 -0.411803 36.5627 -0.416214 36.5608C-0.410804 36.56 -0.40538 36.5594 -0.399946 36.5589L2.05995 30.4146C3.00034 28.0825 4.7421 26.1624 6.97187 24.9999C8.56171 24.176 10.3028 23.6861 12.0882 23.5597L11.788 16.5865C11.1882 16.6507 10.0095 16.5266 9.96087 14.954C9.91229 13.3824 11.0457 13.3171 11.6507 13.3961L11.6445 13.2523C11.5785 12.8433 11.5088 12.439 11.4577 12.2132C11.3782 11.8628 11.2611 11.4953 11.1419 11.1207C10.8794 10.2967 10.6061 9.43855 10.697 8.65293C10.697 8.65293 10.6909 8.00438 11.4565 7.24044C11.3707 6.86644 11.3686 6.47786 11.4507 6.10258C11.5366 5.70965 11.7125 5.34199 11.9645 5.02848C12.2165 4.71497 12.5377 4.46414 12.9029 4.29569C13.2682 4.12725 13.6675 4.04577 14.0696 4.05766C14.2277 4.06393 14.3849 4.08493 14.5418 4.10589C14.7932 4.13945 15.0439 4.17294 15.2971 4.14581C15.7708 4.09409 16.177 3.83884 16.5862 3.58167C16.8357 3.42492 17.0863 3.26745 17.354 3.15494C17.9119 2.93744 18.5266 2.91281 19.1002 3.08497C19.6738 3.25713 20.1733 3.61619 20.5192 4.105C20.5943 4.21716 20.6621 4.33678 20.7298 4.45631C20.9035 4.76299 21.077 5.06915 21.373 5.24769C21.5927 5.38236 21.8482 5.42658 22.1057 5.47114C22.2633 5.49842 22.4216 5.52582 22.5728 5.57417C23.0267 5.71015 23.3999 6.0411 23.6319 6.45436C23.6327 6.40753 23.6317 6.36062 23.629 6.31374C23.6502 6.3657 23.6623 6.42092 23.6649 6.47698C23.6661 6.49165 23.667 6.50632 23.6677 6.521C23.8246 6.82609 23.9058 7.17114 23.8885 7.51347C23.8544 7.93447 23.7053 8.33801 23.4574 8.68001C23.2096 9.02201 22.8725 9.28933 22.483 9.45278C22.3469 9.50712 22.2071 9.55061 22.065 9.58305Z",fill:"white"})),g.default.createElement("defs",null,g.default.createElement("clipPath",{id:"clip0_14712_400114"},g.default.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"}))))},services:function(e){var t=e.width,n=e.height;return g.default.createElement("svg",{width:t||30,height:n||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g.default.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),g.default.createElement("path",{d:"M14.9998 6.66663C12.2752 6.66663 9.85335 7.97848 8.33317 9.99996H10.5988C11.8 8.94527 13.3625 8.33329 14.9998 8.33329C16.6372 8.33329 18.1997 8.94527 19.4009 9.99996H21.6665C20.1463 7.97848 17.7244 6.66663 14.9998 6.66663ZM7.7863 10.8333C7.07666 13.0403 6.6665 15.5989 6.6665 18.3333C6.6665 20.0846 6.82601 21.7675 7.13525 23.3333H22.8644C23.1737 21.7675 23.3332 20.0846 23.3332 18.3333C23.3332 15.5989 22.923 13.0403 22.2134 10.8333H7.7863ZM14.9998 13.3333C17.3013 13.3333 19.1665 15.1985 19.1665 17.5C19.1665 19.8014 17.3013 21.6666 14.9998 21.6666C12.6984 21.6666 10.8332 19.8014 10.8332 17.5C10.8332 15.1985 12.6984 13.3333 14.9998 13.3333ZM14.1665 15V16.6666H12.4998V18.3333H14.1665V20H15.8332V18.3333H17.4998V16.6666H15.8332V15H14.1665Z",fill:"#BFC5CC"}))}},pt=function(e){var n=e.type,i=e.item,o=e.imageUrl,r=e.onClickItem,l=t.useMemo((function(){var e=dt[n]||K;return g.default.createElement(e,{width:32,height:"services"===n?32:24})}),[n]);return g.default.createElement(ot,{onClick:function(){return r&&r(i)},onKeyDown:function(e){"Enter"!==e.key&&"Space"!==e.key||r&&r(i)},tabIndex:0,role:"button"},g.default.createElement(st,null,"hospitals"===n?g.default.createElement(ct,{width:"12",height:"16",viewBox:"0 0 12 16"},g.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.75 5.94873C0.75 3.04623 3.0975 0.69873 6 0.69873C8.9025 0.69873 11.25 3.04623 11.25 5.94873C11.25 9.07623 7.935 13.3887 6.5775 15.0312C6.2775 15.3912 5.73 15.3912 5.43 15.0312C4.065 13.3887 0.75 9.07623 0.75 5.94873ZM4.125 5.94873C4.125 6.98373 4.965 7.82373 6 7.82373C7.035 7.82373 7.875 6.98373 7.875 5.94873C7.875 4.91373 7.035 4.07373 6 4.07373C4.965 4.07373 4.125 4.91373 4.125 5.94873Z",fill:"#9AA2AC"})):g.default.createElement(rt,{type:n},o?g.default.createElement("img",{src:o,width:32,height:"services"===n?32:24}):l)),g.default.createElement(lt,{color:a.theme.colors.gray800,size:"p3"},i.name))},ht=function(){return g.default.createElement("svg",{width:"14",height:"18",viewBox:"0 0 14 18"},g.default.createElement("path",{d:"M7.00004 0.666992C5.29757 0.666992 3.64067 0.813476 2.52087 1.03158C1.73311 1.18457 1.16671 1.86816 1.16671 2.6722V4.83366C1.16671 5.29264 1.54106 5.66699 2.00004 5.66699H12C12.459 5.66699 12.8334 5.29264 12.8334 4.83366V2.69824C12.8334 1.89421 12.267 1.21061 11.4792 1.05762C10.3562 0.839518 8.69275 0.666992 7.00004 0.666992ZM6.16671 1.50033H7.83337V2.33366H8.66671V4.00033H7.83337V4.83366H6.16671V4.00033H5.33337V2.33366H6.16671V1.50033ZM1.42712 6.50033C1.3197 6.89421 1.24158 7.32389 1.19275 7.77637C1.14718 8.18001 1.05603 9.25423 1.06254 9.36491C0.603556 9.72624 0.333374 10.2861 0.333374 10.9014C0.333374 11.8356 0.977906 12.6364 1.84379 12.8285C2.74548 15.0192 4.55212 17.3337 7.00004 17.3337C9.44796 17.3337 11.2546 14.9964 12.1563 12.8024C13.0222 12.6136 13.6667 11.8356 13.6667 10.9014C13.6667 10.2861 13.3965 9.72624 12.9375 9.36491C12.9441 9.25423 12.8562 8.16048 12.8073 7.75033C12.7552 7.30436 12.6804 6.89095 12.573 6.50033H5.35942C6.52804 8.20606 9.27543 7.18717 11.0365 7.62012C11.5736 8.79199 11.1667 10.4326 11.1667 10.4326L11.8177 10.641C11.9121 10.6702 12 10.7549 12 10.9014C12 11.0576 11.8861 11.1943 11.6875 11.1878L11.0105 11.0837L10.7761 11.7347C9.96554 14.0492 8.4128 15.667 7.00004 15.667C5.58728 15.667 4.03455 14.0492 3.224 11.7347L2.96358 11.0837L2.26046 11.1878C2.11723 11.1878 2.00004 11.0576 2.00004 10.9014C2.00004 10.7549 2.08793 10.6702 2.18233 10.641L2.83337 10.4326C2.73246 10.5531 2.4102 8.7041 2.83337 8.03678C3.59184 7.5127 4.2266 7.87728 5.12504 6.50033H1.42712ZM5.17712 9.05241C4.57166 9.05241 4.08337 9.55371 4.08337 10.1722C4.08337 10.7907 4.57166 11.292 5.17712 11.292C5.78259 11.292 6.27087 10.7907 6.27087 10.1722C6.27087 9.55371 5.78259 9.05241 5.17712 9.05241ZM8.82296 9.05241C8.21749 9.05241 7.72921 9.55371 7.72921 10.1722C7.72921 10.7907 8.21749 11.292 8.82296 11.292C9.42843 11.292 9.91671 10.7907 9.91671 10.1722C9.91671 9.55371 9.42843 9.05241 8.82296 9.05241Z",fill:"#9AA2AC"}))},ft=function(){return g.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},g.default.createElement("path",{d:"M8.99996 0.666992C6.27535 0.666992 3.85348 1.97884 2.33329 4.00033H4.59892C5.80009 2.94564 7.36259 2.33366 8.99996 2.33366C10.6373 2.33366 12.1998 2.94564 13.401 4.00033H15.6666C14.1464 1.97884 11.7246 0.666992 8.99996 0.666992ZM1.78642 4.83366C1.07678 7.04069 0.666626 9.59928 0.666626 12.3337C0.666626 14.085 0.826131 15.7679 1.13538 17.3337H16.8645C17.1738 15.7679 17.3333 14.085 17.3333 12.3337C17.3333 9.59928 16.9231 7.04069 16.2135 4.83366H1.78642ZM8.99996 7.33366C11.3014 7.33366 13.1666 9.19889 13.1666 11.5003C13.1666 13.8018 11.3014 15.667 8.99996 15.667C6.69853 15.667 4.83329 13.8018 4.83329 11.5003C4.83329 9.19889 6.69853 7.33366 8.99996 7.33366ZM8.16663 9.00033V10.667H6.49996V12.3337H8.16663V14.0003H9.83329V12.3337H11.5V10.667H9.83329V9.00033H8.16663Z",fill:"#9AA2AC"}))},gt=function(){return g.default.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17"},g.default.createElement("path",{d:"M8 0.666992L0.5 5.63533V14.8337C0.5 15.7545 1.24583 16.5003 2.16667 16.5003H13.8333C14.7542 16.5003 15.5 15.7545 15.5 14.8337V5.63533L8 0.666992ZM11.3333 10.667H8.83333V13.167H7.16667V10.667H4.66667V9.00033H7.16667V6.50033H8.83333V9.00033H11.3333V10.667Z",fill:"#9AA2AC"}))},mt=function(){return g.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},g.default.createElement("path",{d:"M3.83333 0.5C2.94928 0.5 2.10143 0.851189 1.47631 1.47631C0.851189 2.10143 0.5 2.94928 0.5 3.83333C0.5 4.71739 0.851189 5.56523 1.47631 6.19036C2.10143 6.81548 2.94928 7.16667 3.83333 7.16667C4.71739 7.16667 5.56523 6.81548 6.19036 6.19036C6.81548 5.56523 7.16667 4.71739 7.16667 3.83333C7.16667 2.94928 6.81548 2.10143 6.19036 1.47631C5.56523 0.851189 4.71739 0.5 3.83333 0.5V0.5ZM10.5 0.5C9.57917 0.5 8.83333 1.24583 8.83333 2.16667V5.5C8.83333 6.42083 9.57917 7.16667 10.5 7.16667H13.8333C14.7542 7.16667 15.5 6.42083 15.5 5.5V2.16667C15.5 1.24583 14.7542 0.5 13.8333 0.5H10.5ZM3.83333 8.83333C2.94928 8.83333 2.10143 9.18452 1.47631 9.80964C0.851189 10.4348 0.5 11.2826 0.5 12.1667C0.5 13.0507 0.851189 13.8986 1.47631 14.5237C2.10143 15.1488 2.94928 15.5 3.83333 15.5C4.71739 15.5 5.56523 15.1488 6.19036 14.5237C6.81548 13.8986 7.16667 13.0507 7.16667 12.1667C7.16667 11.2826 6.81548 10.4348 6.19036 9.80964C5.56523 9.18452 4.71739 8.83333 3.83333 8.83333V8.83333ZM12.1667 8.83333C11.2826 8.83333 10.4348 9.18452 9.80964 9.80964C9.18452 10.4348 8.83333 11.2826 8.83333 12.1667C8.83333 13.0507 9.18452 13.8986 9.80964 14.5237C10.4348 15.1488 11.2826 15.5 12.1667 15.5C13.0507 15.5 13.8986 15.1488 14.5237 14.5237C15.1488 13.8986 15.5 13.0507 15.5 12.1667C15.5 11.2826 15.1488 10.4348 14.5237 9.80964C13.8986 9.18452 13.0507 8.83333 12.1667 8.83333V8.83333Z",fill:"#9AA2AC"}))},Ct=v.default.header(Je||(Je=e.__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n padding: 12px 24px;\n background-color: ",";\n box-shadow: inset 0px 1px 0px #e4e8ec;\n"],["\n display: flex;\n justify-content: space-between;\n padding: 12px 24px;\n background-color: ",";\n box-shadow: inset 0px 1px 0px #e4e8ec;\n"])),a.theme.colors.neutral50),vt=v.default.div(Xe||(Xe=e.__makeTemplateObject(["\n display: grid;\n flex: 2;\n align-items: center;\n gap: 16px;\n grid-template-columns: 16px 1fr;\n"],["\n display: grid;\n flex: 2;\n align-items: center;\n gap: 16px;\n grid-template-columns: 16px 1fr;\n"]))),xt=v.default.p($e||($e=e.__makeTemplateObject(["\n color: ",";\n font-size: 14px;\n font-weight: ",";\n letter-spacing: -0.2px;\n line-height: 22px;\n"],["\n color: ",";\n font-size: 14px;\n font-weight: ",";\n letter-spacing: -0.2px;\n line-height: 22px;\n"])),a.theme.colors.neutral800,a.theme.sizes.fwSemiBold),bt=v.default.button(et||(et=e.__makeTemplateObject(["\n flex: 1;\n cursor: pointer;\n text-align: end;\n"],["\n flex: 1;\n cursor: pointer;\n text-align: end;\n"]))),yt=v.default.section(tt||(tt=e.__makeTemplateObject(["\n padding: 12px 16px;\n --rowGap: 16px;\n --graphicSize: 32px;\n\n "," {\n --rowGap: 8px;\n }\n"],["\n padding: 12px 16px;\n --rowGap: 16px;\n --graphicSize: 32px;\n\n "," {\n --rowGap: 8px;\n }\n"])),o.MediaQueries.tdUp),_t=v.default.ul(nt||(nt=e.__makeTemplateObject(["\n --gap: 16px;\n "," {\n --gap: 8px;\n }\n\n display: grid;\n overflow: hidden;\n gap: var(--gap);\n transition: max-height 0.8s ease-out;\n\n ","\n\n ","\n\n@media (prefers-reduced-motion) {\n transition: none;\n }\n\n "," {\n grid-template-columns: 1fr 1fr;\n } ;\n"],["\n --gap: 16px;\n "," {\n --gap: 8px;\n }\n\n display: grid;\n overflow: hidden;\n gap: var(--gap);\n transition: max-height 0.8s ease-out;\n\n ","\n\n ","\n\n@media (prefers-reduced-motion) {\n transition: none;\n }\n\n "," {\n grid-template-columns: 1fr 1fr;\n } ;\n"])),o.MediaQueries.tdUp,(function(e){return e.isMore&&"\n height: auto;\n max-height: 0;\n margin-top: var(--gap);\n "}),(function(e){return e.isShown&&"\n max-height: 600px;\n "}),o.MediaQueries.tdUp),wt=v.default(l.Text)(at||(at=e.__makeTemplateObject(["\n margin-top: 12px;\n margin-bottom: 8px;\n cursor: pointer;\n text-align: start;\n text-transform: capitalize;\n"],["\n margin-top: 12px;\n margin-bottom: 8px;\n cursor: pointer;\n text-align: start;\n text-transform: capitalize;\n"]))),Et=function(e){var i=e.type,r=e.data,s=e.state,c=e.dispatch,u=e.itemsToShow,d=e.itemsToShowDesktop,p=e.isMobile,h=e.isLoading,f=e.keyword,m=t.useState(!1),C=m[0],v=m[1],b=o.useTranslations(),y=b.t,_=b.locale,w=s.selectedLocation,E=s.searchKeywords,k=t.useMemo((function(){return n.LOCALIZED_SLUGS[_]}),[_]),L=t.useMemo((function(){return{doctors:{name:y("booking.searchPopup.doctors"),icon:g.default.createElement(ht,null),slug:k.DOCTOR},services:{name:y("booking.searchPopup.services"),icon:g.default.createElement(ft,null),slug:k.SERVICE},hospitals:{name:y("booking.searchPopup.hospitals"),icon:g.default.createElement(gt,null),slug:k.HOSPITAL},specialties:{name:y("booking.searchPopup.specialties"),icon:g.default.createElement(mt,null),slug:k.SPECIALTIES}}}),[i,k]),S=t.useMemo((function(){return L[i].slug}),[L]),T=p?u:d;function O(e){var t="";switch(i){case"specialties":t="/".concat(w.slug,"/").concat(L.doctors.slug,"/").concat(e.slug);break;case"services":t="/".concat(w.slug,"/").concat(S,"/").concat(e.slug);break;case"doctors":case"hospitals":t="/".concat(S,"/").concat(e.slug,"-").concat(e.id)}t&&c({type:Ce.SelectSearchResult,payload:{name:e.name,url:t}})}function I(e){return g.default.createElement(pt,{key:e.id,item:e,type:i,imageUrl:e.logo||e.avatar||e.thumbnail,onClickItem:O})}return g.default.createElement("section",null,g.default.createElement(Ct,null,g.default.createElement(vt,null,L[i].icon,g.default.createElement(xt,null,L[i].name)),f.trim().length<=Ee[_]&&g.default.createElement(bt,{onClick:function(){var e="";switch(i){case"specialties":e="/".concat(S);break;case"services":case"doctors":case"hospitals":e="/".concat(w.slug,"/").concat(S)}e&&c({type:Ce.NavigateTo,payload:e})}},g.default.createElement(l.Text,{size:"p3",color:a.theme.colors.primaryBase},y("booking.searchPopup.seeAll")))),(h||r&&r.length>0)&&g.default.createElement(yt,null,g.default.createElement(_t,null,h&&Array(2).fill(void 0).map((function(e,t){return g.default.createElement(ot,{key:i+"loading"+t},g.default.createElement(st,null,g.default.createElement(ut,null,g.default.createElement(x.default,{height:14,width:"hospitals"===i?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),g.default.createElement(x.default,{width:120,height:24}))})),!h&&r&&r.length>0&&r.slice(0,T).map(I)),g.default.createElement(_t,{isShown:C,isMore:!0},r.slice(T,-1).map(I)),"specialties"===i&&T<r.length&&!h&&g.default.createElement("button",{onClick:function(){return v(!C)}},g.default.createElement(wt,{size:"p3",color:a.theme.colors.primaryBase},y(C?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==i&&T<r.length&&!h&&f.trim().length>Ee[_]&&g.default.createElement("button",{onClick:function(){var e=L[i].slug,t="/".concat(w.slug,"/").concat(e,"?q=").concat(E);c({type:Ce.NavigateTo,payload:t})}},g.default.createElement(wt,{size:"p3",color:a.theme.colors.primaryBase},y("booking.searchPopup.searchIn.".concat(i),{name:f})))),!h&&0===(null==r?void 0:r.length)&&g.default.createElement(yt,null,g.default.createElement(l.Text,{size:"sm",color:a.theme.colors.gray400},y("booking.searchBar.noResults"))))},kt=v.default.section(it||(it=e.__makeTemplateObject(["\n background-color: white;\n border-radius: 4px;\n position: absolute;\n width: 100%;\n z-index: 30;\n\n "," {\n box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),\n 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n }\n"],["\n background-color: white;\n border-radius: 4px;\n position: absolute;\n width: 100%;\n z-index: 30;\n\n "," {\n box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),\n 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n }\n"])),o.MediaQueries.tdUp),Lt=function(e){var t=e.data,n=e.state,a=e.dispatch,i=e.isMobile,o=e.isLoading,r=e.keyword;return g.default.createElement(kt,null,t&&t.map((function(e){return g.default.createElement(Et,{type:e.type,state:n,dispatch:a,itemsToShow:2,itemsToShowDesktop:4,key:e.type,data:e.results,isMobile:i,isLoading:o,keyword:r})})))},St="api/lists/cities?keyword={keyword}&country_id={countryId}&site={domain}&_nopaging={noPaging}",Tt="api/v2/search/?site={domain}&type={searchType}&keyword={keyword}&city_id={city}&latitude={lat}&longitude={lng}",Ot="api/geobyip?site={domain}&latitude={lat}&longitude={lng}",It=function(t,a,i){return C.default(t,e.__assign(e.__assign({},a),{domain:n.domainLocales[i||"en-PH"]}))};var Mt;!function(e){e[e.SPECIALTY=1]="SPECIALTY",e[e.DOCTOR=2]="DOCTOR",e[e.CLINIC=3]="CLINIC",e[e.SERVICE=4]="SERVICE"}(Mt||(Mt={}));var Rt=Object.freeze({__proto__:null,get RedirectType(){return Mt}});exports.BookingSearchBar=function(r){var l=r.isMobile,s=r.careApiDomain,c=r.geoLocationPermission,u=r.geoLocationCoordinates,d=r.initialSelectedCity,p=r.initialSearchValue,h=void 0===p?"":p,f=r.careFrontDomain,C=void 0===f?"/care":f,v=r.isDebug,x=void 0!==v&&v,b=r.askForGeolocationPermission,y=void 0!==b&&b,_=r.gaTrackingSearchBar,w=r.gaTrackingLocationSearch,E=r.autoCompleteDisabled,k=void 0!==E&&E,L=r.inputSearchPlaceholder,S=void 0===L?"":L,T=r.routerPush,O=r.onGeoLocationPermissionChange,I=r.onSearch,M=r.onChangeLocation,R=o.useTranslations(),z=R.t,B=R.locale,D=t.useRef(null),H=t.useRef(null),V=t.useState(void 0),K=V[0],Z=V[1],G=function(){var e=t.useState((function(){if("undefined"==typeof window)return"unset";if(i.getCookie(a.USER_GEOLOCATION_COORDINATES_COOKIE))return"granted";var e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),n=e[0],o=e[1],r=t.useState((function(){if("undefined"==typeof window)return null;var e=i.getCookie(a.USER_GEOLOCATION_COORDINATES_COOKIE);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=r[0],s=r[1],c=t.useCallback((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){var t={lat:"".concat(Math.round(1e7*e.coords.latitude)/1e7),lng:"".concat(Math.round(1e7*e.coords.longitude)/1e7)};i.setCookie(a.USER_GEOLOCATION_COORDINATES_COOKIE,JSON.stringify(t),0,15),s(t),o("granted")}),(function(){i.deleteCookie(a.USER_GEOLOCATION_COORDINATES_COOKIE),o("denied")}))}),[]);return t.useMemo((function(){return{geoLocationPermission:n,geoLocationCoordinates:l,requestGeoLocation:c}}),[n,l])}(),U=G.geoLocationPermission,q=G.geoLocationCoordinates,Q=G.requestGeoLocation,W=t.useReducer(Se,ke,(function(t){return e.__assign(e.__assign({},t),{isDebug:x,isMobile:l,geoLocationPermission:c||U||"unset",geoLocationCoordinates:u||q||null,searchKeywords:h,initialSelectedCity:d||null,selectedLocation:d||t.selectedLocation||null,searchLocationKeywords:(null==d?void 0:d.name)||t.searchLocationKeywords,autoCompleteDisabled:k,inputSearchPlaceholder:S,locale:B})})),J=W[0],X=W[1],$=J.navigateTo,ee=J.focused,te=J.isLoadingCities,ne=J.cities,ae=J.searchKeywords,ie=J.geoLocationPermission,oe=J.selectedLocation,re=J.initialSelectedCity,le=J.defaultCity,se=J.searchResults,ce=J.isLoadingSearchResults,ue=J.isMobileModalOpened,pe=J.inputSearchPlaceholder,he=function(a){var i=a.dispatch,o=a.careApiDomain,r=a.locale,l=void 0===r?"vi-VN":r,s=t.useCallback((function(e,t){void 0===t&&(t={});var n="".concat(o).concat(e);return i({type:Ce.FetchCitiesStart}),fetch(It(n,t,l),{method:"GET"}).then((function(e){return e.json()})).then((function(e){return 1===e._status&&e._data?null==e?void 0:e._data:(console.log("error loading cities",e),Promise.reject(e))})).finally((function(){return i({type:Ce.FetchCitiesFinish})}))}),[l]),c=t.useCallback((function(t){var n=t.coordinates,a={};n&&(a={lat:n.lat,lng:n.lng});var o=[s(Ot,a)];return"zh-TW"===l&&o.push(s(St,{noPaging:1})),Promise.all(o).then((function(t){var n=t[0],a=t[1],o=e.__assign({},n);if(a){var r=o.cities.map((function(e){return e.id}));o.cities=o.cities.concat(a.cities.filter((function(e){return!r.includes(e.id)})))}i({type:Ce.FetchCitiesByGeoIpComplete,payload:o})})).catch((function(e){return console.error("error loading cities by location",e)}))}),[l,o,i]);return{fetchCitiesByLocation:c,fetchCitiesByKeyword:t.useCallback((function(e){return s(St,{keyword:e}).then((function(e){i({type:Ce.FetchCitiesByKeywordComplete,payload:e.cities})})).catch((function(e){return console.error("error loading cities by keyword",e)}))}),[l,o,i]),fetchSearchResults:t.useCallback((function(e,t){var a="".concat(o).concat(Tt);i({type:Ce.FetchSearchResultsStart});var r=t.defaultCity,s=t.selectedLocation,c=t.geoLocationCoordinates,u="";if(s&&r){s.id===n.ID_OPTION_CURRENT_LOCATION?c||(u=r.id):u=s.id;var d=(null==c?void 0:c.lat)||"",p=(null==c?void 0:c.lng)||"";return fetch(It(a,{domain:o,searchType:"global",keyword:e.trim().length>Ee[l]?e.trim():"",city:u===n.ID_OPTION_CURRENT_LOCATION?"":u,lat:d,lng:p},l),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((function(e){return e.json()})).then((function(e){return 1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e)})).then((function(e){return i({type:Ce.FetchSearchResultsComplete,payload:e})})).catch((function(e){console.log("error loading search results",{url:a,error:e})})).finally((function(){return i({type:Ce.FetchSearchResultsFinish})}))}i({type:Ce.FetchSearchResultsFinish})}),[l,o,i])}}({dispatch:X,locale:B,careApiDomain:s}),fe=he.fetchCitiesByLocation,ge=he.fetchCitiesByKeyword,me=he.fetchSearchResults,ve=t.useMemo((function(){var e;return{id:n.ID_OPTION_CURRENT_LOCATION,name:z("booking.searchBar.currentLocation"),slug:null===(e=n.LOCALIZED_SLUGS[B])||void 0===e?void 0:e.CURRENT}}),[z,B]),xe=t.useMemo((function(){return m.default(ge,400)}),[ge]),be=t.useMemo((function(){return m.default(me,400)}),[me]);t.useEffect((function(){""!==h&&h!==J.searchKeywords&&X({type:Ce.UpdateInitialSearchValue,payload:h})}),[h]),t.useEffect((function(){y&&(null==oe?void 0:oe.id)===n.ID_OPTION_CURRENT_LOCATION&&"unset"===ie&&Q()}),[y,oe,ie]),t.useEffect((function(){c||ie===U||("granted"===U&&q?X({type:Ce.GrantGeoLocationPermission,payload:q}):"denied"===U&&X({type:Ce.DenyGeoLocationPermission}))}),[ie,U,q,c]),t.useEffect((function(){$&&(T?T($):window.location.href="".concat(C).concat($))}),[$]);var ye=t.useCallback((function(){X({type:Ce.SelectCurrentLocation,payload:ve})}),[z,X]);t.useEffect((function(){"denied"===ie||re||ye(),O&&O(ie,J.geoLocationCoordinates),l&&"granted"===ie&&oe&&X({type:Ce.FocusInputSearch}),fe({coordinates:J.geoLocationCoordinates})}),[ie]),t.useEffect((function(){oe&&le&&me(J.searchKeywords,J)}),[oe,le]),t.useEffect((function(){S!==pe&&X({type:Ce.SetInputSearchPlaceholder,payload:S})}),[S,pe]),t.useEffect((function(){ue?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[ue]);var _e=t.useCallback((function(e){X({type:Ce.SelectLocation,payload:e}),Oe(),M&&M(e)}),[z,X]);function Le(){l&&"granted"!==J.geoLocationPermission?Q():(ye(),Oe())}function Te(){var e;D.current&&(null===(e=D.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function Oe(){var e;D.current&&(null===(e=D.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Ie(){return"location"!==ee?null:g.default.createElement(Y,{isLoading:te,cities:ne,onLocationClick:_e,onCurrentLocationClick:Le,isLocationLoading:te,geoLocationPermission:ie,selectedLocation:oe})}function Me(){return"search"!==ee?null:J.autoCompleteDisabled?l?g.default.createElement(je,{onClick:function(){I({cityId:J.selectedLocation.id,keyword:ae})}}):null:g.default.createElement(Lt,{data:se,state:J,dispatch:X,isMobile:!1,keyword:ae,isLoading:ce})}function Re(){return g.default.createElement(Ze,{isMobile:l,state:J,dispatch:X,debouncedFetchCitiesByKeyword:xe,debouncedFetchSearchResults:be,focusLocationInput:Te,focusSearchInput:Oe,renderLocationResults:Ie,renderSearchResults:Me,trackingAttributes:_,locationTrackingAttributes:w,onSearch:I,initalSearchValue:h})}return t.useEffect((function(){if(window.visualViewport){var e=function(e){var t=e.target;Z(null==t?void 0:t.height)};return window.visualViewport.addEventListener("resize",e),function(){window.visualViewport.removeEventListener("resize",e)}}}),[Z]),l?g.default.createElement(g.default.Fragment,null,g.default.createElement(j,null),g.default.createElement(F,{ref:H}),g.default.createElement(N,{id:"booking-search-bar",ref:D,"data-is-modal":l&&ue,style:{"--mobile-care-searchbar-height":ue&&K?"".concat(K,"px"):"100%"}},ue?g.default.createElement(g.default.Fragment,null,g.default.createElement(P,null,g.default.createElement(we,{headingText:z("booking.searchBar.searchButton"),onLeftClick:function(){X({type:Ce.CloseMobileModal})}}),Re()),Ie(),Me()):g.default.createElement(de,{onClick:function(){var t;return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return H.current&&H.current.focus(),X({type:Ce.OpenMobileModal}),[4,Promise.resolve()];case 1:return e.sent(),D.current&&(null===(t=D.current.querySelector('input[name="search-location"]'))||void 0===t||t.focus()),[2]}}))}))},focused:ee,value:ae,trackingAttributes:_,inputSearchPlaceholder:S}))):g.default.createElement(A,{id:"booking-search-bar",ref:D},Re())},exports.types=Rt;
@@ -0,0 +1 @@
1
+ "use strict";var e,o=require("./tslib.es6-f7929e76.js"),t=require("./theme-7830aadf.js"),i=Object.freeze({__proto__:null}),l=Object.freeze({__proto__:null}),n="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,a="undefined"==typeof window,r=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",s=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",u=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,c=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",d={"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"},m=n?"http://localhost:3001":t.isProduction?"https://".concat(d[r]):"https://discover.".concat(d[r]),p=t.isProduction?"https://wp.".concat(d[r],"/"):"https://staging.".concat(d[r],"/"),_=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:"https://together.".concat(d[r],"/"),h="".concat(m,"/community"),E=process.env.NEXT_PUBLIC_SSO_URL||"http://staging-id.hellobacsi.com/";!function(e){e[e.FEMALE=0]="FEMALE",e[e.MALE=1]="MALE",e[e.ANY=2]="ANY"}(e||(e={}));var v={"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(e,o,t){return void 0===e&&(e=""),void 0===o&&(o=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:e,numberOfItems:o,itemListElement:t}]})},BRAND:function(e,o,t){return void 0===e&&(e=""),void 0===o&&(o=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:e,numberOfItems:o,itemListElement:t}]})},BRAND_DETAIL:function(e,o,t){return void 0===e&&(e=""),void 0===o&&(o=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(e),"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop".concat(e)}}]},{"@type":"BrandDetail",url:"https://hellobacsi.com/shop".concat(e),numberOfItems:o,itemListElement:null!=t?t:{}}]})},PRODUCT_DETAIL:function(e,o,t){return void 0===e&&(e=""),void 0===o&&(o=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(e),"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/san-pham/".concat(e)}}]},{"@type":"BrandDetail",url:e,numberOfItems:o,itemListElement:null!=t?t:{}}]})}}},I=Object.freeze({__proto__:null,isDevelopment:n,IS_SSR:a,locale:r,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:s,GOOGLE_ADMIN_LOCATION_KEY:u,GOOGLE_CLIENT_ID:c,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:d,DISCOVER_URL_FE:m,DISCOVER_URL_BE:p,TOGETHER_URL_BE:_,TOGETHER_URL_FE:h,SSO_URL:E,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 e},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:v});function T(e){return null!=e}var g,O={formatAutoCompleteAddress:function(e){return e&&e.place_id?{placeId:e.place_id,description:e.description||""}:null},formatPrice:function(e,o){var t="string"==typeof e?parseInt(e):e;return new Intl.NumberFormat(o||"vi-VN").format(t)},formatHotSearchKeyword:function(e){return{text:(null==e?void 0:e.name)||""}},formatHelpfulUrl:function(e){return{name:(null==e?void 0:e.name)||"",featuredImage:(null==e?void 0:e.featured_image)||"",url:(null==e?void 0:e.url)||""}},formatCategory:function(e,o,i){var l,n,a,r=i?i+"/"+e.slug:e.slug,s=(null===(n=null===(l=null==e?void 0:e.children)||void 0===l?void 0:l.map)||void 0===n?void 0:n.call(l,(function(o){return O.formatCategory(o,e.id,r)})))||[];return{id:null==e?void 0:e.id,name:(null==e?void 0:e.name)||"",logo:(null==e?void 0:e.logo)||"",slug:(null==e?void 0:e.slug)||"",fullSlug:r||"",children:s,backgroundColor:e.color||t.theme.colors.teal50,parentId:o||0,products:(null===(a=e.products)||void 0===a?void 0:a.map(O.formatProduct))||[]}},formatFooterInfo:function(e){var o,t,i,l,n,a,r,s,u,c,d,m,p,_,h,E,v,I,T,g=(null===(i=null===(t=null===(o=null==e?void 0:e.branch)||void 0===o?void 0:o.branch)||void 0===t?void 0:t.map)||void 0===i?void 0:i.call(t,(function(e){return{flag:e.flag||"",name:e.name||"",url:e.url||""}})))||[],O=(null===(a=null===(n=null===(l=null==e?void 0:e.general)||void 0===l?void 0:l.verified)||void 0===n?void 0:n.map)||void 0===a?void 0:a.call(n,(function(e){return{image:e.image||"",url:e.url||""}})))||[],A=(null===(s=null===(r=null==e?void 0:e.menu)||void 0===r?void 0:r.map)||void 0===s?void 0:s.call(r,(function(e){var o,t;return{menu_title:e.menu_title,items:null===(t=null===(o=e.items)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(function(e){return{title:e.title,url:e.url}}))}})))||[],f=(null===(d=null===(c=null===(u=null==e?void 0:e.social)||void 0===u?void 0:u.socials)||void 0===c?void 0:c.map)||void 0===d?void 0:d.call(c,(function(e){return{icon:e.icon||"",name:e.name||"",url:e.url||""}})))||[];return{branch:{title:(null===(m=null==e?void 0:e.branch)||void 0===m?void 0:m.title)||"",branch:g},general:{logo:null!==(_=null===(p=null==e?void 0:e.general)||void 0===p?void 0:p.logo)&&void 0!==_?_:"",content:null!==(E=null===(h=null==e?void 0:e.general)||void 0===h?void 0:h.content)&&void 0!==E?E:"",copyright:null!==(I=null===(v=null==e?void 0:e.general)||void 0===v?void 0:v.copyright)&&void 0!==I?I:"",verified:O},menu:A,social:{title:(null===(T=null==e?void 0:e.social)||void 0===T?void 0:T.title)||"",socials:f}}},formatNavigation:function(e){var o,t,i,l,n,a;return{hotSearchKeywords:(null===(t=null===(o=null==e?void 0:e.hot_search_keywords)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatHotSearchKeyword))||[],helpfulUrls:(null===(l=null===(i=null==e?void 0:e.helpful_urls)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,O.formatHelpfulUrl))||[],categories:(null===(a=null===(n=null==e?void 0:e.categories)||void 0===n?void 0:n.map)||void 0===a?void 0:a.call(n,(function(e){return O.formatCategory(e)})))||[],footer:O.formatFooterInfo(null==e?void 0:e.footer),storeId:(null==e?void 0:e.store_id)||0,customerId:(null==e?void 0:e.customer_id)||0,cartItemsQty:"number"==typeof(null==e?void 0:e.cart_items_qty)?e.cart_items_qty:null}},formatPriceInfo:function(e){return e?{final:e.final||0,regular:e.regular||0,discountPercent:e.discount_percent||0}:null},formatProduct:function(e){var o,t,i,l;if(!e)return null;var n={final:0,regular:0,discountPercent:0};return{id:e.id||0,price:e.price&&O.formatPriceInfo(e.price)||n,thumbnail:e.thumbnail||"",name:e.name||"",averageRating:Number((e.average_rating||0).toFixed(2)),reviewsCount:e.reviews_count||0,tag:e.tag||null,sku:e.sku||"",slug:e.slug||"",images:e.images||[],tags:e.tags||[],unit:e.unit||"",brand:e.brand?{name:e.brand.name||"",image:e.brand.image||"",slug:e.brand.slug||"",productsCount:e.brand.products_count||0}:null,description:e.description||"",productPromotions:(null===(t=null===(o=e.product_promotions)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatProductPromotion).filter(T))||[],categories:(null===(l=null===(i=e.categories)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,(function(e){return O.formatCategory(e)})).filter(T))||[],isInStock:(null==e?void 0:e.is_in_stock)||!1}},formatBanner:function(e){return e?{name:e.name||"",url:e.url||"",featuredImage:e.featured_image||"",alt:e.image_alt}:null},formatBlogPost:function(e){var o,t;return e?{title:e.title||"",image:e.image||"",link:e.link||"",postData:e.post_data?{reviewed:e.post_data.reviewed?{author:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.author||void 0),editor:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.editor||void 0),expert:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.expert||void 0),factCheck:O.formatBlogPostDataReviewedUser(e.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(e.post_data.reviewed.is_author)}:null,categories:e.post_data.categories?null===(t=(o=e.post_data.categories).map)||void 0===t?void 0:t.call(o,(function(e){return{termId:e.term_id||0,name:e.name||"",permalink:e.permalink||"",textColor:e.text_color||""}})):[],postDate:e.post_data.post_date||"",postModified:e.post_data.post_modified||"",modifiedTime:e.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:function(e){return e?{id:e.ID||0,userId:e.user_id||0,formerRole:e.former_role||"",role:e.role||"",slug:e.slug||"",displayName:e.display_name||"",description:e.description||"",profileUrl:e.profile_url||"",avatar:e.avatar||"",avatarThumbnail:e.avatar_thumbnail||"",turnOffProfile:Boolean(e.turn_off_profile)}:null},formatBrand:function(e){var o,t,i,l;return e?{id:e.id||0,image:e.image||"",position:e.position||"",isPopular:e.is_popular||!1,summary:e.summary||"",name:e.name||"",slug:e.slug||"",description:e.description||null,banners:(null===(t=null===(o=e.banners)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatBanner).filter(T))||[],bestsellerProducts:(null===(l=null===(i=e.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,O.formatProduct).filter(T))||[]}:null},formatHomePage:function(e){var o,t,i,l,n,a,r,s,u,c,d,m,p,_,h,E,v,I,g,A;return e?{brands:e.brands?null===(t=(o=e.brands).map)||void 0===t?void 0:t.call(o,O.formatBrand).filter(T):[],hotDeals:e.hot_deals?null===(l=(i=e.hot_deals).map)||void 0===l?void 0:l.call(i,O.formatProduct).filter(T):[],newProducts:e.new_products?null===(a=(n=e.new_products).map)||void 0===a?void 0:a.call(n,O.formatProduct).filter(T):[],slideBanners:e.slide_banners?null===(s=(r=e.slide_banners).map)||void 0===s?void 0:s.call(r,O.formatBanner).filter(T):[],subBanners:e.sub_banners?null===(c=(u=e.sub_banners).map)||void 0===c?void 0:c.call(u,O.formatBanner).filter(T):[],footerBanners:e.footer_banners?null===(m=(d=e.footer_banners).map)||void 0===m?void 0:m.call(d,O.formatBanner).filter(T):[],blogPosts:e.blog_posts?null===(_=(p=e.blog_posts).map)||void 0===_?void 0:_.call(p,O.formatBlogPost).filter(T):[],popularCategories:e.popular_categories?null===(E=(h=e.popular_categories).map)||void 0===E?void 0:E.call(h,(function(e){return O.formatCategory(e)})).filter(T):[],suggestProducts:e.suggest_products?null===(I=(v=e.suggest_products).map)||void 0===I?void 0:I.call(v,(function(e){return O.formatCategory(e)})).filter(T):[],promotions:e.promotions?null===(A=(g=e.promotions).map)||void 0===A?void 0:A.call(g,(function(e){return O.formatPromotion(e)})).filter(T):[]}:null},formatCategoryPage:function(e){var o,t,i,l;return e?{id:e.id||0,name:e.name||"",slug:e.slug||"",description:e.description||null,banners:(null===(t=null===(o=e.banners)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatBanner).filter(T))||[],bestsellerProducts:(null===(l=null===(i=e.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,O.formatProduct).filter(T))||[]}:null},formatBrandPage:function(e){return e?O.formatBrand(e):null},formatPagination:function(e){return e?{current:e.current||0,first:e.first||0,itemsPerPage:e.items_per_page||0,last:e.last||0,next:e.next||0,prev:e.prev||0,totalItems:e.total_items||0}:null},formatProductDetailPage:function(e){var t,i,l,n,a,r,s,u;return e?o.__assign(o.__assign({},O.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,O.formatProduct).filter(T))||[],bestsellerProducts:(null===(n=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===n?void 0:n.call(l,O.formatProduct).filter(T))||[],viewedProducts:(null===(r=null===(a=e.viewed_products)||void 0===a?void 0:a.map)||void 0===r?void 0:r.call(a,O.formatProduct).filter(T))||[],promotions:(null===(u=null===(s=e.promotions)||void 0===s?void 0:s.map)||void 0===u?void 0:u.call(s,O.formatPromotion).filter(T))||[]}):null},formatProductReview:function(e){var o,t;return e?{reviewId:e.review_id||"",createdAt:e.created_at||"",title:e.title||"",detail:e.detail||"",nickname:e.nick_name||"",avatar:e.avatar||"",ratingVotes:(null===(t=null===(o=e.rating_votes)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(function(e){return{ratingCode:e.rating_code||"",value:Number(e.value)||0,percent:Number(e.percent)||0}})))||[],images:e.images||[]}:null},formatProductPromotion:function(e){return e?{id:e.id||0,name:e.name||"",thumbnail:e.thumbnail||"",expirationDate:e.expiration_date||""}:null},formatPromotion:function(e){return e?{id:e.id||0,name:e.name||"",slug:e.slug||"",thumbnail:e.thumbnail||"",expiredDate:e.expired_date||"",banners:e.banners||[],points:0,description:e.description||"",metaTitle:e.meta_title||"",metaKeywords:e.meta_keywords||"",metaDescription:e.meta_description||""}:null},formatCustomAttributes:function(e,o){var t;return(null==e?void 0:e.length)&&(null===(t=null==e?void 0:e.find((function(e){return e.attribute_code===o})))||void 0===t?void 0:t.value)||""},formatAddress:function(e){var o,t,i,l;return e?{id:e.id||0,fullName:e.firstname||"",telephone:e.telephone||"",province:{value:null===(o=e.region)||void 0===o?void 0:o.region_id,label:null===(t=e.region)||void 0===t?void 0:t.region}||null,district:{value:O.formatCustomAttributes(e.custom_attributes,"district_id"),label:O.formatCustomAttributes(e.custom_attributes,"district")},commune:{value:O.formatCustomAttributes(e.custom_attributes,"ward_id"),label:O.formatCustomAttributes(e.custom_attributes,"ward")},street:(null===(i=null==e?void 0:e.street)||void 0===i?void 0:i.length)?null==e?void 0:e.street[0]:"",isDefault:e.default_billing&&e.default_shipping||!1,fullAddress:(null===(l=null==e?void 0:e.extension_attributes)||void 0===l?void 0:l.full_address)||""}:null},formatProvince:function(e){return(null==e?void 0:e.available_regions)?e.available_regions.map((function(e){return{value:e.id||"",label:e.name||""}})):[]},formatDistrict:function(e){return(null==e?void 0:e.districts)?e.districts.map((function(e){return{value:e.id||"",label:e.name||""}})):[]},formatCommune:function(e){return(null==e?void 0:e.communes)?e.communes.map((function(e){return{value:e.id||"",label:e.name||""}})):[]},formatOrder:function(e){var o,t;return e?{orderNumber:(null==e?void 0:e.order_number)||"",shippingData:(null==e?void 0:e.shipping_data)?{shippingMethod:e.shipping_data.shipping_method||"",shippingDescription:e.shipping_data.shipping_description||"",shippingAddress:e.shipping_data.shipping_address?{fullName:e.shipping_data.shipping_address.firstname||"",fullAddress:e.shipping_data.shipping_address.full_address||"",telephone:e.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==e?void 0:e.ordered_date)||"",status:(null==e?void 0:e.status)||null,totals:(null==e?void 0:e.totals)?{subtotal:e.totals.subtotal||0,shippingAmount:e.totals.shipping_amount||0,discountAmount:e.totals.discount_amount||0,grandTotal:e.totals.grand_total||0}:null,products:(null===(t=null===(o=null==e?void 0:e.products)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,(function(e){return{sku:e.sku||"",name:e.name||"",price:e.price||0,rowTotal:e.row_total||0,image:e.image||"",qty:e.qty||0}})))||[],paymentMethod:(null==e?void 0:e.payment_method)||""}:null},formatStatistic:function(e){var o,t,i,l,n;return e?{pending:Number(null===(o=null==e?void 0:e.find((function(e){return"pending"===e.status})))||void 0===o?void 0:o.amount)||0,processing:Number(null===(t=null==e?void 0:e.find((function(e){return"processing"===e.status})))||void 0===t?void 0:t.amount)||0,delivering:Number(null===(i=null==e?void 0:e.find((function(e){return"delivering"===e.status})))||void 0===i?void 0:i.amount)||0,complete:Number(null===(l=null==e?void 0:e.find((function(e){return"complete"===e.status})))||void 0===l?void 0:l.amount)||0,canceled:Number(null===(n=null==e?void 0:e.find((function(e){return"canceled"===e.status})))||void 0===n?void 0:n.amount)||0}:{}},formatCartItem:function(e){var o,t,i,l,n,a,r,s;return e?{itemId:e.item_id||0,sku:e.sku||"",qty:e.qty||0,name:e.name||"",price:e.price||0,basePrice:(null===(o=e.extension_attributes)||void 0===o?void 0:o.base_price)||0,productType:e.product_type||"",quoteId:e.quote_id||"",thumbnail:(null===(t=e.extension_attributes)||void 0===t?void 0:t.thumbnail)||"",rowTotal:(null===(i=e.extension_attributes)||void 0===i?void 0:i.row_total)||0,promotions:(null===(a=null===(n=null===(l=e.extension_attributes)||void 0===l?void 0:l.promotions)||void 0===n?void 0:n.map)||void 0===a?void 0:a.call(n,O.formatProductPromotion))||[],isInStock:(null===(r=e.extension_attributes)||void 0===r?void 0:r.is_in_stock)||!1,urlProduct:(null===(s=e.extension_attributes)||void 0===s?void 0:s.url_key)||""}:null},formatCartAddress:function(e){var o;return e?{customerAddressId:(null==e?void 0:e.customer_address_id)||0,id:e.id||0,region:e.region||"",regionId:e.region_id||0,regionCode:e.region_code||"",countryId:e.country_id||"",street:e.street||[],postcode:e.postcode||"",city:e.city||"",firstname:e.firstname||"",lastname:e.lastname||"",customerId:e.customer_id||0,email:e.email||"",telephone:e.telephone||"",sameAsBilling:e.same_as_billing||0,saveInAddressBook:e.save_in_address_book||0,fullAddress:(null===(o=e.extension_attributes)||void 0===o?void 0:o.full_address)||""}:null},formatEstimatedShipping:function(e){return e?{carrierCode:e.carrier_code||"",methodCode:e.method_code||"",carrierTitle:e.carrier_title||"",methodTitle:e.method_title||"",amount:e.amount||0,baseAmount:e.base_amount||0,available:e.available||!1,errorMessage:e.error_message||"",priceExclTax:e.price_excl_tax||0,priceInclTax:e.price_incl_tax||0}:null},formatCartLoggedInCustomer:function(e){var o,t,i;return e?{email:e.email||"",firstname:e.firstname||"",lastname:e.lastname||"",id:e.id||0,groupId:e.group_id||0,createdAt:e.created_at||"",updatedAt:e.updated_at||"",createdIn:e.created_in||"",storeId:e.store_id||0,websiteId:e.website_id||0,addresses:(null===(t=null===(o=e.addresses)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatCartAddress))||[],disableAutoGroupChange:e.disable_auto_group_change||0,isSubscribed:(null===(i=e.extension_attributes)||void 0===i?void 0:i.is_subscribed)||!1}:null},formatCart:function(e){var o,t,i,l,n,a,r,s,u,c,d,m,p,_;return e?{id:e.id||0,createdAt:e.created_at||"",updatedAt:e.updated_at||"",isActive:e.is_active||!1,isVirtual:e.is_virtual||!1,items:(null===(i=null===(t=null===(o=e.items)||void 0===o?void 0:o.map)||void 0===t?void 0:t.call(o,O.formatCartItem))||void 0===i?void 0:i.sort((function(e,o){return Number(null==o?void 0:o.isInStock)-Number(null==e?void 0:e.isInStock)})))||[],itemsCount:e.items_count||0,itemsQty:e.items_qty||0,customer:e.customer?O.formatCartLoggedInCustomer(e.customer):null,billingAddress:e.billing_address?O.formatCartAddress(e.billing_address):null,origOrderId:e.orig_order_id||0,currency:{globalCurrencyCode:(null===(l=e.currency)||void 0===l?void 0:l.global_currency_code)||"",baseCurrencyCode:(null===(n=e.currency)||void 0===n?void 0:n.base_currency_code)||"",storeCurrencyCode:(null===(a=e.currency)||void 0===a?void 0:a.store_currency_code)||"",quoteCurrencyCode:(null===(r=e.currency)||void 0===r?void 0:r.quote_currency_code)||"",storeToBaseRate:(null===(s=e.currency)||void 0===s?void 0:s.store_to_base_rate)||0,storeToQuoteRate:(null===(u=e.currency)||void 0===u?void 0:u.store_to_quote_rate)||0,baseToGlobalRate:(null===(c=e.currency)||void 0===c?void 0:c.base_to_global_rate)||0,baseToQuoteRate:(null===(d=e.currency)||void 0===d?void 0:d.base_to_quote_rate)||0},customerIsGuest:e.customer_is_guest||!1,customerNoteNotify:e.customer_note_notify||!1,customerTaxClassId:e.customer_tax_class_id||0,storeId:e.store_id||0,shippingAssignments:null===(_=null===(p=null===(m=e.extension_attributes)||void 0===m?void 0:m.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(function(e){var o,t,i;return{shipping:{address:e.shipping.address?O.formatCartAddress(e.shipping.address):null,method:(null===(o=e.shipping)||void 0===o?void 0:o.method)||""},items:(null===(i=(t=e.items).map)||void 0===i?void 0:i.call(t,O.formatCartItem))||[]}}))}:null},formatCartTotal:function(e){var o,t,i;return e?{grandTotal:e.grand_total||0,baseGrandTotal:e.base_grand_total||0,subtotal:e.subtotal||0,baseSubtotal:e.base_subtotal||0,discountAmount:e.discount_amount||0,baseDiscountAmount:e.base_discount_amount||0,subtotalWithDiscount:e.subtotal_with_discount||0,baseSubtotalWithDiscount:e.base_subtotal_with_discount||0,shippingAmount:e.shipping_amount||0,baseShippingAmount:e.base_shipping_amount||0,shippingDiscountAmount:e.shipping_discount_amount||0,baseShippingDiscountAmount:e.base_shipping_discount_amount||0,taxAmount:e.tax_amount||0,baseTaxAmount:e.base_tax_amount||0,weeeTaxAppliedAmount:e.weee_tax_applied_amount||0,shippingTaxAmount:e.shipping_tax_amount||0,baseShippingTaxAmount:e.base_shipping_tax_amount||0,subtotalInclTax:e.subtotal_incl_tax||0,shippingInclTax:e.shipping_incl_tax||0,baseShippingInclTax:e.base_shipping_incl_tax||0,baseCurrencyCode:e.base_currency_code||"",quoteCurrencyCode:e.quote_currency_code||"",itemsQty:e.items_qty||0,coupon:{couponCode:e.coupon_code||"",couponDescription:(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.coupon_description_text)||""},items:(null===(i=null===(t=e.items)||void 0===t?void 0:t.map)||void 0===i?void 0:i.call(t,(function(e){return{itemId:e.item_id||0,price:e.price||0,basePrice:e.base_price||0,qty:e.qty||0,rowTotal:e.row_total||0,baseRowTotal:e.base_row_total||0,rowTotalWithDiscount:e.row_total_with_discount||0,taxAmount:e.tax_amount||0,baseTaxAmount:e.base_tax_amount||0,taxPercent:e.tax_percent||0,discountAmount:e.discount_amount||0,baseDiscountAmount:e.base_discount_amount||0,discountPercent:e.discount_percent||0,priceInclTax:e.price_incl_tax||0,basePriceInclTax:e.base_price_incl_tax||0,rowTotalInclTax:e.row_total_incl_tax||0,baseRowTotalInclTax:e.base_row_total_incl_tax||0,options:e.options||"",weeeTaxAppliedAmount:e.weee_tax_applied_amount||0,weeeTaxApplied:e.weee_tax_applied||0,name:e.name||""}})))||[],totalSegments:e.total_segments||[]}:null},formatPaymentMethod:function(e){return e?null==e?void 0:e.map((function(e){return{code:(null==e?void 0:e.payment_code)||"",title:(null==e?void 0:e.payment_title)||"",thumbnail:(null==e?void 0:e.payment_thumbnail)||""}})):null},formatPaymentInformation:function(e){var o;return e?{paymentMethods:O.formatPaymentMethod(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.payment_detail_info)||[],totals:O.formatCartTotal(e.totals)}:null},formatOrderConfirmation:function(e){return e?{isSuccess:e.is_success||!1,orderInfo:O.formatOrder(e.order_info)}:null},formatCoupons:function(e){var o;return(null===(o=null==e?void 0:e.items)||void 0===o?void 0:o.length)?e.items.map((function(e){return{code:(null==e?void 0:e.code)||"",name:(null==e?void 0:e.name)||"",thumbnail:(null==e?void 0:e.thumbnail)||"",description:(null==e?void 0:e.expired_date)||""}})):null},formatShippings:function(e){return e?e.map((function(e){var o;return{carrierCode:e.carrier_code||"",methodCode:e.method_code||"",title:e.carrier_title||"",description:e.method_title||"",price:(null==e?void 0:e.base_amount)||0,thumbnail:(null===(o=null==e?void 0:e.extension_attributes)||void 0===o?void 0:o.thumbnail)||""}})):[]}},A=Object.freeze({__proto__:null,dataFormatter:O});!function(e){e.MALE="gender.male",e.FEMALE="gender.female",e.OTHER="gender.other"}(g||(g={}));var f=Object.freeze({__proto__:null,get GenderLabel(){return g},DATE_FORMAT_API:"yyyy-MM-dd",DATE_FORMAT:"dd-MM-yyyy"});exports.apiTypes=i,exports.constants=I,exports.dataTypes=l,exports.index=A,exports.types=f;