@hhgtech/hhg-components 1.28.59 → 1.28.60

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 (287) hide show
  1. package/build/{Plus-155fd41f.js → Plus-814ff7f1.js} +1 -1
  2. package/build/{WhatsApp-cbd2b870.js → WhatsApp-b7896776.js} +1 -1
  3. package/build/babyGrowth.js +2 -2
  4. package/build/cache.js +1 -1
  5. package/build/care.js +1 -1
  6. package/build/components.js +1 -1
  7. package/build/{constants-6a8e6824.js → constants-4faff4e4.js} +1 -1
  8. package/build/{constants-5f9a141f.js → constants-f4621c3c.js} +1 -1
  9. package/build/constants.js +1 -1
  10. package/build/{core-b543f933.js → core-d607304d.js} +1 -1
  11. package/build/{dataTransform-9d1496b9.js → dataTransform-b1b583ee.js} +1 -1
  12. package/build/ecom.js +1 -1
  13. package/build/esm/{Plus-0795a68c.js → Plus-b8d1c834.js} +1 -1
  14. package/build/esm/{WhatsApp-c7fd561d.js → WhatsApp-2d802179.js} +1 -1
  15. package/build/esm/babyGrowth.js +2 -2
  16. package/build/esm/cache.js +1 -1
  17. package/build/esm/care.js +1 -1
  18. package/build/esm/components.js +1 -1
  19. package/build/esm/{constants-d7aa1c1c.js → constants-08ac43d9.js} +1 -1
  20. package/build/esm/{constants-7b7e7784.js → constants-0cd0ca62.js} +1 -1
  21. package/build/esm/constants.js +1 -1
  22. package/build/esm/{core-87a3d383.js → core-1e1bdebd.js} +1 -1
  23. package/build/esm/{dataTransform-9c92d261.js → dataTransform-1fe37b96.js} +1 -1
  24. package/build/esm/ecom.js +1 -1
  25. package/build/esm/footer.js +1 -1
  26. package/build/esm/gAssets.js +1 -1
  27. package/build/esm/getDynamicHealthTool-af630a85.js +1 -0
  28. package/build/esm/{getSocialList-be651baf.js → getSocialList-30da33c1.js} +1 -1
  29. package/build/esm/hooks.js +1 -1
  30. package/build/esm/i18n.js +1 -1
  31. package/build/esm/i18nV2.js +1 -1
  32. package/build/esm/{index-4fa69484.js → index-07d085a6.js} +1 -1
  33. package/build/esm/{index-ed7346f2.js → index-196cd161.js} +1 -1
  34. package/build/esm/{index-36467b48.js → index-19d94ba6.js} +1 -1
  35. package/build/esm/{index-64dc6b83.js → index-24cb373f.js} +1 -1
  36. package/build/esm/{index-1c858659.js → index-2a84b189.js} +1 -1
  37. package/build/esm/{index-b6c758c5.js → index-30c02e9e.js} +1 -1
  38. package/build/esm/index-317d2629.js +1 -0
  39. package/build/esm/index-33f21911.js +1 -0
  40. package/build/esm/{index-5222461b.js → index-36c3d5ed.js} +1 -1
  41. package/build/esm/{index-cce4d6b6.js → index-3839b22c.js} +1 -1
  42. package/build/esm/{index-09d9862b.js → index-41f1dc5c.js} +1 -1
  43. package/build/esm/{index-f76eef86.js → index-4ce9ed5e.js} +1 -1
  44. package/build/esm/{index-f047d212.js → index-5ae296ec.js} +1 -1
  45. package/build/esm/{index-03b6469c.js → index-5d609356.js} +5 -5
  46. package/build/esm/{index-5db9b9d7.js → index-66975069.js} +1 -1
  47. package/build/esm/{index-0ce3ea30.js → index-9313f566.js} +1 -1
  48. package/build/esm/{index-47ab8d3d.js → index-9d004b6d.js} +1 -1
  49. package/build/esm/{index-47b11c19.js → index-a67a570a.js} +1 -1
  50. package/build/esm/{index-417dbb92.js → index-aa209893.js} +1 -1
  51. package/build/esm/{index-fe314c0f.js → index-b147d00b.js} +1 -1
  52. package/build/esm/{index-77b369f0.js → index-bb8a9468.js} +1 -1
  53. package/build/esm/{index-bfb36e6c.js → index-bc7fa29a.js} +1 -1
  54. package/build/esm/{index-88f24735.js → index-f8b809c8.js} +1 -1
  55. package/build/esm/index.js +1 -1
  56. package/build/esm/{index.styled-500647b4.js → index.styled-d65a93a7.js} +1 -1
  57. package/build/esm/{index.styles-fa4052da.js → index.styles-d0394c83.js} +1 -1
  58. package/build/esm/lead.js +1 -1
  59. package/build/esm/mantine.js +1 -1
  60. package/build/esm/misc.js +1 -1
  61. package/build/esm/navigation.js +1 -1
  62. package/build/esm/onboardingV2.js +1 -1
  63. package/build/esm/pwg.js +1 -1
  64. package/build/esm/{routing-7c6d65ae.js → routing-f2d6084b.js} +1 -1
  65. package/build/esm/subot/index.d.ts +1 -0
  66. package/build/esm/subot/subotInlineRevamp/context.d.ts +1 -1
  67. package/build/esm/subot/subotInlineRevamp/types.d.ts +12 -6
  68. package/build/esm/subot/subotInlineRevamp/view.d.ts +1 -1
  69. package/build/esm/subot/subotInlineRevamp/with-theme.d.ts +5 -0
  70. package/build/esm/subot.js +47 -30
  71. package/build/esm/together.js +1 -1
  72. package/build/esm/{types-8e137b89.js → types-8a997e8d.js} +1 -1
  73. package/build/esm/{types-a8c76d05.js → types-92080f61.js} +1 -1
  74. package/build/esm/types.js +1 -1
  75. package/build/esm/{useCategory-21a9ba33.js → useCategory-bd2c270c.js} +1 -1
  76. package/build/esm/useHealthToolCache-78c1ff56.js +1 -0
  77. package/build/esm/{usePlacesAutocomplete-96e52ce9.js → usePlacesAutocomplete-6b32f949.js} +1 -1
  78. package/build/esm/{useTranslations-78d82c21.js → useTranslations-2745f276.js} +1 -1
  79. package/build/esm/{utils-3e125f1e.js → utils-1a5f1be6.js} +2 -2
  80. package/build/esm/{utils-f842970f.js → utils-a298bdb0.js} +1 -1
  81. package/build/esm/utils-b5496f0d.js +1 -0
  82. package/build/esm/vaccination.js +11 -11
  83. package/build/footer.js +1 -1
  84. package/build/gAssets.js +1 -1
  85. package/build/{getDynamicHealthTool-c3acf06a.js → getDynamicHealthTool-2d9bb3df.js} +1 -1
  86. package/build/{getSocialList-3e010454.js → getSocialList-b2b96a75.js} +1 -1
  87. package/build/hooks.js +1 -1
  88. package/build/i18n.js +1 -1
  89. package/build/i18nV2.js +1 -1
  90. package/build/{index-e4d32d14.js → index-03bd0c4f.js} +1 -1
  91. package/build/{index-fecb8f45.js → index-257b644c.js} +19 -19
  92. package/build/{index-f6cc5b05.js → index-26b92707.js} +1 -1
  93. package/build/{index-ba567cf6.js → index-36105247.js} +1 -1
  94. package/build/{index-222727c4.js → index-49b75293.js} +12 -12
  95. package/build/{index-7feececd.js → index-548830c1.js} +1 -1
  96. package/build/{index-eca857bd.js → index-616ab28a.js} +1 -1
  97. package/build/{index-48bcbf86.js → index-79a22348.js} +1 -1
  98. package/build/{index-2deaed20.js → index-79a3d514.js} +1 -1
  99. package/build/{index-8199c76f.js → index-7b5d4d6e.js} +1 -1
  100. package/build/{index-14cdaffe.js → index-7b5fca90.js} +1 -1
  101. package/build/{index-046ee378.js → index-80ea3c31.js} +1 -1
  102. package/build/{index-bbdde6e0.js → index-87c7dbb7.js} +1 -1
  103. package/build/{index-80fbf9a2.js → index-96830fd7.js} +1 -1
  104. package/build/{index-3f91ded6.js → index-b63b8b91.js} +1 -1
  105. package/build/{index-6f106161.js → index-ba6e4946.js} +2 -2
  106. package/build/{index-296a0b5b.js → index-d1dd6c7a.js} +1 -1
  107. package/build/{index-86439785.js → index-dae72e53.js} +1 -1
  108. package/build/{index-ffd92aea.js → index-e1cb325d.js} +1 -1
  109. package/build/{index-30443c6e.js → index-ee6bc277.js} +1 -1
  110. package/build/{index-f39724a1.js → index-eeb02a5b.js} +2 -2
  111. package/build/index-f0d5faab.js +1 -0
  112. package/build/{index-e0c87872.js → index-f32b89b0.js} +1 -1
  113. package/build/index.js +1 -1
  114. package/build/{index.styled-3811edd9.js → index.styled-f222c9c8.js} +1 -1
  115. package/build/{index.styles-b34ee290.js → index.styles-4efe72e9.js} +1 -1
  116. package/build/lead.js +1 -1
  117. package/build/mantine.js +1 -1
  118. package/build/misc.js +1 -1
  119. package/build/navigation.js +1 -1
  120. package/build/onboardingV2.js +5 -5
  121. package/build/pwg.js +1 -1
  122. package/build/{routing-29d56eb6.js → routing-9c9c80c1.js} +1 -1
  123. package/build/subot/index.d.ts +1 -0
  124. package/build/subot/subotInlineRevamp/context.d.ts +1 -1
  125. package/build/subot/subotInlineRevamp/types.d.ts +12 -6
  126. package/build/subot/subotInlineRevamp/view.d.ts +1 -1
  127. package/build/subot/subotInlineRevamp/with-theme.d.ts +5 -0
  128. package/build/subot.js +67 -50
  129. package/build/together.js +1 -1
  130. package/build/{types-760db918.js → types-0468f679.js} +1 -1
  131. package/build/{types-341cbbd1.js → types-81221d08.js} +1 -1
  132. package/build/types.js +1 -1
  133. package/build/{useCategory-d3020719.js → useCategory-d2865a02.js} +1 -1
  134. package/build/useHealthToolCache-2e3591e5.js +1 -0
  135. package/build/{usePlacesAutocomplete-07a7b610.js → usePlacesAutocomplete-cc0a1078.js} +1 -1
  136. package/build/{useTranslations-d2cbefef.js → useTranslations-6477c861.js} +1 -1
  137. package/build/{utils-af90797a.js → utils-3df9caca.js} +1 -1
  138. package/build/{utils-90cf77ff.js → utils-3e01aa27.js} +2 -2
  139. package/build/utils-964a9106.js +1 -0
  140. package/build/vaccination.js +1 -1
  141. package/package.json +1 -1
  142. package/build/esm/getDynamicHealthTool-f55ca837.js +0 -1
  143. package/build/esm/index-404bb127.js +0 -1
  144. package/build/esm/index-a9cbc4b7.js +0 -1
  145. package/build/esm/useHealthToolCache-148be933.js +0 -1
  146. package/build/esm/utils-5af9dad1.js +0 -1
  147. package/build/index-ae905846.js +0 -1
  148. package/build/useHealthToolCache-728f118d.js +0 -1
  149. package/build/utils-1a351432.js +0 -1
  150. /package/build/{BMI_BOYS.percentile.monthly-dc83dcf5.js → BMI_BOYS.percentile.monthly-197e24e2.js} +0 -0
  151. /package/build/{BMI_BOYS.percentile.weekly-e3dff055.js → BMI_BOYS.percentile.weekly-d46c05e9.js} +0 -0
  152. /package/build/{BMI_BOYS.percentile.yearly-7b400a2c.js → BMI_BOYS.percentile.yearly-462650f5.js} +0 -0
  153. /package/build/{BMI_BOYS.zscore.monthly-22e88be5.js → BMI_BOYS.zscore.monthly-707f220c.js} +0 -0
  154. /package/build/{BMI_BOYS.zscore.weekly-7254d38e.js → BMI_BOYS.zscore.weekly-20c37e4f.js} +0 -0
  155. /package/build/{BMI_BOYS.zscore.yearly-0ce1987c.js → BMI_BOYS.zscore.yearly-3d65c3e4.js} +0 -0
  156. /package/build/{BMI_GIRLS.percentile.monthly-8f29513e.js → BMI_GIRLS.percentile.monthly-72036286.js} +0 -0
  157. /package/build/{BMI_GIRLS.percentile.weekly-b13d593f.js → BMI_GIRLS.percentile.weekly-f4517420.js} +0 -0
  158. /package/build/{BMI_GIRLS.percentile.yearly-53368595.js → BMI_GIRLS.percentile.yearly-28446379.js} +0 -0
  159. /package/build/{BMI_GIRLS.zscore.monthly-a453df29.js → BMI_GIRLS.zscore.monthly-005a10a8.js} +0 -0
  160. /package/build/{BMI_GIRLS.zscore.weekly-6a5afb2f.js → BMI_GIRLS.zscore.weekly-3e062930.js} +0 -0
  161. /package/build/{BMI_GIRLS.zscore.yearly-7e400eed.js → BMI_GIRLS.zscore.yearly-6aa8aab6.js} +0 -0
  162. /package/build/{ChevronDown-e3a06b59.js → ChevronDown-19893ba9.js} +0 -0
  163. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-3bf214c5.js → HEAD CIRCUM_BOYS.percentile.monthly-b8870beb.js} +0 -0
  164. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-10c63505.js → HEAD CIRCUM_BOYS.percentile.weekly-2a47878f.js} +0 -0
  165. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-ec027f7c.js → HEAD CIRCUM_BOYS.percentile.yearly-5b14a0f4.js} +0 -0
  166. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-4b2f4e10.js → HEAD CIRCUM_BOYS.zscore.monthly-f5e711d0.js} +0 -0
  167. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-5a6c7eed.js → HEAD CIRCUM_BOYS.zscore.weekly-160b3502.js} +0 -0
  168. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-c6d5d99a.js → HEAD CIRCUM_BOYS.zscore.yearly-6a003968.js} +0 -0
  169. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-f38e143e.js → HEAD CIRCUM_GIRLS.percentile.monthly-f39e4289.js} +0 -0
  170. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-961e9398.js → HEAD CIRCUM_GIRLS.percentile.weekly-dbc6e1ae.js} +0 -0
  171. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-fb89c9d5.js → HEAD CIRCUM_GIRLS.percentile.yearly-907d57ff.js} +0 -0
  172. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-f4be59eb.js → HEAD CIRCUM_GIRLS.zscore.monthly-f56ed73d.js} +0 -0
  173. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-b1435610.js → HEAD CIRCUM_GIRLS.zscore.weekly-7cc677c6.js} +0 -0
  174. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-44f4bf7e.js → HEAD CIRCUM_GIRLS.zscore.yearly-c90768d7.js} +0 -0
  175. /package/build/{HEIGHT_BOYS.percentile.monthly-9d116dae.js → HEIGHT_BOYS.percentile.monthly-48990fa8.js} +0 -0
  176. /package/build/{HEIGHT_BOYS.percentile.weekly-af5e9330.js → HEIGHT_BOYS.percentile.weekly-dc8c2f28.js} +0 -0
  177. /package/build/{HEIGHT_BOYS.percentile.yearly-84c68900.js → HEIGHT_BOYS.percentile.yearly-11d19395.js} +0 -0
  178. /package/build/{HEIGHT_BOYS.zscore.monthly-3f6f7a60.js → HEIGHT_BOYS.zscore.monthly-b98de2e2.js} +0 -0
  179. /package/build/{HEIGHT_BOYS.zscore.weekly-191d8a50.js → HEIGHT_BOYS.zscore.weekly-dd417f4e.js} +0 -0
  180. /package/build/{HEIGHT_BOYS.zscore.yearly-9e6a420d.js → HEIGHT_BOYS.zscore.yearly-b6d5343a.js} +0 -0
  181. /package/build/{HEIGHT_GIRLS.percentile.monthly-edbe76b4.js → HEIGHT_GIRLS.percentile.monthly-82a28ab2.js} +0 -0
  182. /package/build/{HEIGHT_GIRLS.percentile.weekly-9656f527.js → HEIGHT_GIRLS.percentile.weekly-0683fa8d.js} +0 -0
  183. /package/build/{HEIGHT_GIRLS.percentile.yearly-d5e9646f.js → HEIGHT_GIRLS.percentile.yearly-f4b9ad20.js} +0 -0
  184. /package/build/{HEIGHT_GIRLS.zscore.monthly-7962a30f.js → HEIGHT_GIRLS.zscore.monthly-a96f346f.js} +0 -0
  185. /package/build/{HEIGHT_GIRLS.zscore.weekly-00091ba0.js → HEIGHT_GIRLS.zscore.weekly-28a1ca47.js} +0 -0
  186. /package/build/{HEIGHT_GIRLS.zscore.yearly-3f3bdcf2.js → HEIGHT_GIRLS.zscore.yearly-62a5a970.js} +0 -0
  187. /package/build/{Subot-da4770e7.js → Subot-834192c4.js} +0 -0
  188. /package/build/{Visible-bbf989e9.js → Visible-3807cbe8.js} +0 -0
  189. /package/build/{WEIGHT_BOYS.percentile.monthly-0efda3d8.js → WEIGHT_BOYS.percentile.monthly-a9bec4e8.js} +0 -0
  190. /package/build/{WEIGHT_BOYS.percentile.weekly-da0ea954.js → WEIGHT_BOYS.percentile.weekly-4df2ccf9.js} +0 -0
  191. /package/build/{WEIGHT_BOYS.percentile.yearly-f6da0f3e.js → WEIGHT_BOYS.percentile.yearly-b6ba7de3.js} +0 -0
  192. /package/build/{WEIGHT_BOYS.zscore.monthly-69b7c7f8.js → WEIGHT_BOYS.zscore.monthly-f23bd0eb.js} +0 -0
  193. /package/build/{WEIGHT_BOYS.zscore.weekly-288a675a.js → WEIGHT_BOYS.zscore.weekly-65412e2c.js} +0 -0
  194. /package/build/{WEIGHT_BOYS.zscore.yearly-74aa3f11.js → WEIGHT_BOYS.zscore.yearly-f5b0a208.js} +0 -0
  195. /package/build/{WEIGHT_GIRLS.percentile.monthly-c507c65f.js → WEIGHT_GIRLS.percentile.monthly-5e107bbc.js} +0 -0
  196. /package/build/{WEIGHT_GIRLS.percentile.weekly-f08c1806.js → WEIGHT_GIRLS.percentile.weekly-e9b0b6bb.js} +0 -0
  197. /package/build/{WEIGHT_GIRLS.percentile.yearly-65e7c887.js → WEIGHT_GIRLS.percentile.yearly-f11c30aa.js} +0 -0
  198. /package/build/{WEIGHT_GIRLS.zscore.monthly-545572f3.js → WEIGHT_GIRLS.zscore.monthly-096ae0ad.js} +0 -0
  199. /package/build/{WEIGHT_GIRLS.zscore.weekly-0eb78b8f.js → WEIGHT_GIRLS.zscore.weekly-55e56b1b.js} +0 -0
  200. /package/build/{WEIGHT_GIRLS.zscore.yearly-f82147f8.js → WEIGHT_GIRLS.zscore.yearly-3ec7eb89.js} +0 -0
  201. /package/build/{animation-6d0e530d.js → animation-ca9fbe3e.js} +0 -0
  202. /package/build/{cookieHelper-7d59b3e7.js → cookieHelper-dedfa528.js} +0 -0
  203. /package/build/esm/{BMI_BOYS.percentile.monthly-d5a8dcff.js → BMI_BOYS.percentile.monthly-7284e34a.js} +0 -0
  204. /package/build/esm/{BMI_BOYS.percentile.weekly-54a95b85.js → BMI_BOYS.percentile.weekly-aee617f3.js} +0 -0
  205. /package/build/esm/{BMI_BOYS.percentile.yearly-d2d8b110.js → BMI_BOYS.percentile.yearly-c8186048.js} +0 -0
  206. /package/build/esm/{BMI_BOYS.zscore.monthly-0bd50ff3.js → BMI_BOYS.zscore.monthly-2a6ccd49.js} +0 -0
  207. /package/build/esm/{BMI_BOYS.zscore.weekly-c8593da1.js → BMI_BOYS.zscore.weekly-a5020d4d.js} +0 -0
  208. /package/build/esm/{BMI_BOYS.zscore.yearly-d5005236.js → BMI_BOYS.zscore.yearly-938d6ae4.js} +0 -0
  209. /package/build/esm/{BMI_GIRLS.percentile.monthly-e3884907.js → BMI_GIRLS.percentile.monthly-2daed3b1.js} +0 -0
  210. /package/build/esm/{BMI_GIRLS.percentile.weekly-1ed13a41.js → BMI_GIRLS.percentile.weekly-3104d8ff.js} +0 -0
  211. /package/build/esm/{BMI_GIRLS.percentile.yearly-e718de5e.js → BMI_GIRLS.percentile.yearly-b701b321.js} +0 -0
  212. /package/build/esm/{BMI_GIRLS.zscore.monthly-358d226f.js → BMI_GIRLS.zscore.monthly-44c5e3c6.js} +0 -0
  213. /package/build/esm/{BMI_GIRLS.zscore.weekly-fcedba22.js → BMI_GIRLS.zscore.weekly-47b3bd5f.js} +0 -0
  214. /package/build/esm/{BMI_GIRLS.zscore.yearly-9ca47d29.js → BMI_GIRLS.zscore.yearly-bd778dbc.js} +0 -0
  215. /package/build/esm/{ChevronDown-cc35428e.js → ChevronDown-1e60e314.js} +0 -0
  216. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-f7558c8b.js → HEAD CIRCUM_BOYS.percentile.monthly-9f25a777.js} +0 -0
  217. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-7bc35bee.js → HEAD CIRCUM_BOYS.percentile.weekly-940bed57.js} +0 -0
  218. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-77357f85.js → HEAD CIRCUM_BOYS.percentile.yearly-ddcf6902.js} +0 -0
  219. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-2714257f.js → HEAD CIRCUM_BOYS.zscore.monthly-5540a1e4.js} +0 -0
  220. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-62058fcf.js → HEAD CIRCUM_BOYS.zscore.weekly-506d698e.js} +0 -0
  221. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-65649b30.js → HEAD CIRCUM_BOYS.zscore.yearly-06b6a9ea.js} +0 -0
  222. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-2e8f844b.js → HEAD CIRCUM_GIRLS.percentile.monthly-af2de359.js} +0 -0
  223. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-28edfa4f.js → HEAD CIRCUM_GIRLS.percentile.weekly-f6566170.js} +0 -0
  224. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-763567ce.js → HEAD CIRCUM_GIRLS.percentile.yearly-9f91eb08.js} +0 -0
  225. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-cf6bb939.js → HEAD CIRCUM_GIRLS.zscore.monthly-d4eb4cd0.js} +0 -0
  226. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-d6db86f2.js → HEAD CIRCUM_GIRLS.zscore.weekly-bafe6486.js} +0 -0
  227. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-bd3add5c.js → HEAD CIRCUM_GIRLS.zscore.yearly-a5c9738e.js} +0 -0
  228. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-33050dfa.js → HEIGHT_BOYS.percentile.monthly-708f679f.js} +0 -0
  229. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-790dde30.js → HEIGHT_BOYS.percentile.weekly-a181fa86.js} +0 -0
  230. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-24a1ba96.js → HEIGHT_BOYS.percentile.yearly-a794a0b5.js} +0 -0
  231. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-68f937ad.js → HEIGHT_BOYS.zscore.monthly-1cc57a1a.js} +0 -0
  232. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-5aafe365.js → HEIGHT_BOYS.zscore.weekly-fff66c54.js} +0 -0
  233. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-ffefa912.js → HEIGHT_BOYS.zscore.yearly-edc274db.js} +0 -0
  234. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-72e94858.js → HEIGHT_GIRLS.percentile.monthly-548d1ce0.js} +0 -0
  235. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-ce075c84.js → HEIGHT_GIRLS.percentile.weekly-6850a067.js} +0 -0
  236. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-ac92e23f.js → HEIGHT_GIRLS.percentile.yearly-6b2f3aff.js} +0 -0
  237. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-ea49be8c.js → HEIGHT_GIRLS.zscore.monthly-aa761d80.js} +0 -0
  238. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-59da335b.js → HEIGHT_GIRLS.zscore.weekly-9625b43b.js} +0 -0
  239. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-b16bfb36.js → HEIGHT_GIRLS.zscore.yearly-1ffd0680.js} +0 -0
  240. /package/build/esm/{Subot-e1ee8861.js → Subot-76fd0d33.js} +0 -0
  241. /package/build/esm/{Visible-5984bb59.js → Visible-d324ce4b.js} +0 -0
  242. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-15ee1673.js → WEIGHT_BOYS.percentile.monthly-7be7f640.js} +0 -0
  243. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-fc4985d2.js → WEIGHT_BOYS.percentile.weekly-70d1cd83.js} +0 -0
  244. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-7fa505f0.js → WEIGHT_BOYS.percentile.yearly-2a0ef95a.js} +0 -0
  245. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-d56eab98.js → WEIGHT_BOYS.zscore.monthly-7c78d14e.js} +0 -0
  246. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-1d371a78.js → WEIGHT_BOYS.zscore.weekly-caecc334.js} +0 -0
  247. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-d87e6880.js → WEIGHT_BOYS.zscore.yearly-945a3e86.js} +0 -0
  248. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-6f53bf1d.js → WEIGHT_GIRLS.percentile.monthly-268c2453.js} +0 -0
  249. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-caa0cf1b.js → WEIGHT_GIRLS.percentile.weekly-27b3529d.js} +0 -0
  250. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-4c1432b0.js → WEIGHT_GIRLS.percentile.yearly-4a385f52.js} +0 -0
  251. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-1628b4dd.js → WEIGHT_GIRLS.zscore.monthly-71ca61ef.js} +0 -0
  252. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-b240946e.js → WEIGHT_GIRLS.zscore.weekly-7738a061.js} +0 -0
  253. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-f360fff3.js → WEIGHT_GIRLS.zscore.yearly-cc0326e5.js} +0 -0
  254. /package/build/esm/{animation-70b8e1f2.js → animation-afdebd15.js} +0 -0
  255. /package/build/esm/{cookieHelper-2017148d.js → cookieHelper-edb1014c.js} +0 -0
  256. /package/build/esm/{index-754b44fc.js → index-1d7e19b1.js} +0 -0
  257. /package/build/esm/{index-cf6580dd.js → index-22a43d5a.js} +0 -0
  258. /package/build/esm/{index-86e92cc0.js → index-2b034e6c.js} +0 -0
  259. /package/build/esm/{isProduction-9fe75b7e.js → isProduction-5c72172a.js} +0 -0
  260. /package/build/esm/{localizeNumberFormat-cd2532b2.js → localizeNumberFormat-e57f94fd.js} +0 -0
  261. /package/build/esm/{normalizeLink-bae43899.js → normalizeLink-68c1c249.js} +0 -0
  262. /package/build/esm/{number-07ae3046.js → number-d6eb475f.js} +0 -0
  263. /package/build/esm/{paths-be7ff55f.js → paths-d9409117.js} +0 -0
  264. /package/build/esm/{theme-dab2950f.js → theme-9d4ebb16.js} +0 -0
  265. /package/build/esm/{translationsContext-5a2101f0.js → translationsContext-b3ac733d.js} +0 -0
  266. /package/build/esm/{tslib.es6-16e6bdc9.js → tslib.es6-8314c624.js} +0 -0
  267. /package/build/esm/{types-27d242a7.js → types-4e38b890.js} +0 -0
  268. /package/build/esm/{useIsInit-aa198cba.js → useIsInit-87f1345f.js} +0 -0
  269. /package/build/esm/{useOutsideClick-a88e81d5.js → useOutsideClick-a2f1623b.js} +0 -0
  270. /package/build/esm/{useScrollbarSize-81850e48.js → useScrollbarSize-1e1f61e3.js} +0 -0
  271. /package/build/esm/{utils-f69a5c66.js → utils-fe6d1c2a.js} +0 -0
  272. /package/build/{index-5caececd.js → index-0e2719f9.js} +0 -0
  273. /package/build/{index-49020afd.js → index-51f2280c.js} +0 -0
  274. /package/build/{index-d725f995.js → index-a229310f.js} +0 -0
  275. /package/build/{isProduction-5ee9440e.js → isProduction-73bdc6d7.js} +0 -0
  276. /package/build/{localizeNumberFormat-d05fe4e0.js → localizeNumberFormat-9b683cba.js} +0 -0
  277. /package/build/{normalizeLink-069cc041.js → normalizeLink-61296854.js} +0 -0
  278. /package/build/{number-b3bfb023.js → number-ae53b002.js} +0 -0
  279. /package/build/{paths-24d6890e.js → paths-dd126f4e.js} +0 -0
  280. /package/build/{theme-571f5130.js → theme-764c1525.js} +0 -0
  281. /package/build/{translationsContext-dfb5d88d.js → translationsContext-d6d6476f.js} +0 -0
  282. /package/build/{tslib.es6-94b275ba.js → tslib.es6-f56038f0.js} +0 -0
  283. /package/build/{types-bf4f47c3.js → types-b582c22c.js} +0 -0
  284. /package/build/{useIsInit-4db83cec.js → useIsInit-07753b5c.js} +0 -0
  285. /package/build/{useOutsideClick-51ce49df.js → useOutsideClick-f8dcb209.js} +0 -0
  286. /package/build/{useScrollbarSize-2e658fb6.js → useScrollbarSize-774bfe2f.js} +0 -0
  287. /package/build/{utils-f2321c70.js → utils-96f81909.js} +0 -0
@@ -1,4 +1,4 @@
1
- import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect as a,useCallback as l,useMemo as r,forwardRef as s,memo as d,useImperativeHandle as c}from"react";import{e as u,c as m,N as p,d as v,f as g,g as b,E as h,L as f,F as y}from"./Subot-e1ee8861.js";import{a as _,_ as x}from"./tslib.es6-16e6bdc9.js";import{B as E,d as w,M as S,e as k,G as I,h as N,A as O,f as T}from"./index-1c858659.js";import C from"js-cookie";import M from"fastdom";import P from"fastdom/extensions/fastdom-promised";import U from"string-format";import{G as B,b as j,x as R,y as A,T as L,L as D}from"./utils-3e125f1e.js";import{v4 as $}from"uuid";import{i as F}from"./isProduction-9fe75b7e.js";import q from"hex-rgb";import z from"classnames";import{C as H}from"./index-86e92cc0.js";import{D as G,L as V}from"./index-64dc6b83.js";import{motion as Y}from"framer-motion";import{M as W}from"./utils-f69a5c66.js";import X from"styled-components";import{B as K,S as J}from"./index-0ce3ea30.js";import{Remarkable as Q}from"remarkable";import{useInView as Z}from"react-intersection-observer";import{Box as ee,Textarea as te}from"@mantine/core";import{C as ie}from"./index-5222461b.js";import{I as ne}from"./index-36467b48.js";import oe from"dayjs";import ae from"dayjs/plugin/isSameOrBefore";import{T as le}from"./Plus-0795a68c.js";import{t as re}from"./theme-dab2950f.js";import"@mantine/dates";import"./translationsContext-5a2101f0.js";import"@mantine/hooks";import se from"lodash/isEmpty";import{Controller as de,useForm as ce}from"react-hook-form";import ue,{getCountryCallingCode as me,isPossiblePhoneNumber as pe,parsePhoneNumber as ve}from"react-phone-number-input";import{LoadScript as ge}from"@react-google-maps/api";import{u as be,G as he,a as fe}from"./usePlacesAutocomplete-96e52ce9.js";import{B as ye}from"./index-ed7346f2.js";import{D as _e}from"./index-fe314c0f.js";import"date-fns/locale";import"./cookieHelper-2017148d.js";import"slugify";import"./useTranslations-78d82c21.js";import"date-fns";import"react-day-picker/DayPickerInput";import"@mantine/carousel";import"./WhatsApp-c7fd561d.js";const xe=M.extend(P),Ee={POST_VERIFY_SMS_OTP:"sms/update-phone",POST_SEND_OTP:"sms/otp",POST_SEND_OTP_WHATSAPP:"whatsapp/otp",POST_VERIFY_OTP:"sms/verify",POST_VERIFY_OTP_WHATSAPP:"sms/verify-whatsapp",GET_LANDING_PAGE_FIRST_NODE:"landing_page/bot",GET_LANDING_PAGE_NEXT_NODE:"landing_page/messages",POST_LANDING_PAGE_IMPRESSION:"landing_page/impressions",POST_LANDING_PAGE_CLICK:"landing_page/clicks",GET_INLINE_FIRST_NODE:"bots",GET_INLINE_MESSAGE:"inline/messages",GET_INLINE_IMPRESSION:"inline/impressions",GET_INLINE_CLICK:"inline/clicks",GET_SUBOT_LOG:"log/bot/{botId}/{cookieId}/{accountId}?type={type}",POST_SUBOT_CREATE_LOG:"log/bot",FETCH_URL_DATA:"preview",GET_VOUCHER_QUANTITY:"vouchers/total_quantity?search={search}&client_id={clientId}"},we={cached:{},clearCached:e=>{console.log(we.cached),Object.keys(we.cached).filter((t=>t.startsWith(e))).forEach((e=>{console.log(e),we.cached[e]=void 0}))},withCached:(e,t)=>_(void 0,void 0,void 0,(function*(){if("waitingTheFirstResponse"===we.cached[e])return new Promise((t=>{const i=(new Date).getTime(),n=setInterval((()=>{(new Date).getTime()-i>3e3&&clearInterval(n),"object"==typeof we.cached[e]&&(t(we.cached[e]),clearInterval(n))}),100)}));if("object"==typeof we.cached[e])return we.cached[e];we.cached[e]="waitingTheFirstResponse";try{const i=yield t();return we.cached[e]=i,setTimeout((()=>{we.cached[e]=void 0}),18e5),i}catch(t){return we.cached[e]=void 0,Promise.reject(t)}}))},Se=(e,t)=>{const{subotApiUrl:i}=null==B?void 0:B.env;return(i.endsWith("frontend/api/")?i:i+"frontend/api/")+U(e,Object.assign({},t))},ke=e=>_(void 0,void 0,void 0,(function*(){try{return yield j(Se(Ee.GET_INLINE_MESSAGE),"POST",{data:e})}catch(e){}})),Ie=e=>{var t;if(1===(null==e?void 0:e._status)&&(null===(t=null==e?void 0:e._data)||void 0===t?void 0:t.extra_settings))try{const t=JSON.parse(e._data.extra_settings);e._data.extra_settings="object"==typeof t?t:{sync_data_friso_campaign:!1}}catch(t){e._data.extra_settings={sync_data_friso_campaign:!1}}return e},Ne=e=>_(void 0,void 0,void 0,(function*(){try{return yield we.withCached("SubotInlineFirstNode",(()=>_(void 0,void 0,void 0,(function*(){const t=yield j(Se(Ee.GET_INLINE_FIRST_NODE)+`/${e}`,"GET");return Ie(t),t}))))}catch(e){return null}})),Oe=e=>_(void 0,void 0,void 0,(function*(){try{return yield j(Se(Ee.GET_INLINE_CLICK),"POST",{data:e})}catch(e){}})),Te=e=>_(void 0,void 0,void 0,(function*(){try{return yield j(Se(Ee.GET_INLINE_IMPRESSION),"POST",{data:e})}catch(e){}})),Ce=["form_submit_meta","selected_actions","current_selected","current_keys","current_polls"],Me=["bot_id","node_id","action_id","action_value","current_score","gtm_id","ga_client_id","is_new","title_url","url","window_id",...Ce],Pe=(e,t)=>(Object.keys(t).map((i=>{const n=t[i];if("source"!==i){if(Me.includes(i))if(Ce.includes(i))try{e[i]=JSON.parse(n)}catch(e){}else e[i]="account_id"!==i&&"current_score"!==i&&"bot_id"!==i?n:parseInt(n)}else e.is_new="first_login"===n})),e),Ue=e=>[{id:$(),label:JSON.stringify({title:"",description:""}),type:u.SSO_INTENT,url:""},{id:$(),label:JSON.stringify({title:e({id:"subot.myHealth.title",defaultMessage:"My Health"}),description:e({id:"subot.myHealth.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:u.SSO_INTENT,url:"/images/subot/my-health.svg"},{id:$(),label:JSON.stringify({title:e({id:"subot.saveData.title",defaultMessage:"Save Data"}),description:e({id:"subot.saveData.description",defaultMessage:"Hellobacsi would like to learn from your data to provide better healthcare for you"})}),type:u.SSO_INTENT,url:"/images/subot/file-storage.svg"},{id:$(),label:JSON.stringify({title:e({id:"subot.productYourIdentifiers.title",defaultMessage:"Protect your identifiers"}),description:e({id:"subot.productYourIdentifiers.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:u.SSO_INTENT,url:"/images/subot/shield.svg"}];function Be(e){const t=e.condition,i=e.finished,n=e.timeout||3e3,o=(new Date).getTime(),a=setInterval((()=>{((new Date).getTime()-o>n||t())&&(clearInterval(a),i())}),300)}const je=e=>R.parse(e||"")["hhg-id"]||C.get("hhg-id")||"",Re=e=>{if(e)return C.set("hhg-id",e),e;const t=je();if(t)return t;const i=$();return C.set("hhg-id",i),i},Ae=e=>{const t=R.parse(e||"")[E]||C.get(E)||"";try{const e=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(i).sub}catch(e){return""}},Le=e=>{const t=R.parse(e||"")[E]||C.get(E)||"";try{const e=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join("")),n=JSON.parse(i);return{email:n.email,id:n.sub}}catch(e){return{email:"",id:0}}},De=$(),$e=()=>De,Fe=(e,t)=>!t&&("undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname))?"http://localhost":`https://${F?"":"discover."}${w[e]}`,qe=e=>{const t=e||("undefined"==typeof navigator?"":navigator.userAgent);return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substring(0,4)))},ze=e=>{const t=document.createElement("a");t.href=e,t.target="_blank",t.click()},He=30,Ge=e=>{try{return e.dynamic_score||{}}catch(e){return{}}},Ve=(e,t,i,n)=>{const o=Ge(e[0]);if(!t)return{};const a=e.findIndex((e=>e.id==t)),l=e.reduce(((e,l,r)=>{var s,d;if(r>a)return e;const c=l,u=i&&c.id===t?{action_id:i}:c._message;let p=0;const v=null===(s=c.actions)||void 0===s?void 0:s.find((e=>e.id===(null==u?void 0:u.action_id)));p+=(null==v?void 0:v.score)||0;const g=void 0!==o[c.id],b=i&&c.id===t?n:null==u?void 0:u.form_submit_meta;if(g&&c.type===m.FORM&&b){const e=o[c.id].action_id,t=null===(d=c.actions)||void 0===d?void 0:d.find((t=>t.id===e)),i=null==t?void 0:t.key,n=b.find((e=>e.key===i&&"number"===e.control));if(o[c.id].number&&["+","-","x","/"].includes(o[c.id].operator)&&(null==n?void 0:n.value)&&Number(n.value)){const e=Number(n.value),t=o[c.id].operator,i=o[c.id].number;let a=0;"+"===t&&(a=e+i),"-"===t&&(a=e-i),"x"===t&&(a=e*i),"/"===t&&(a=e/i),isNaN(a)||(p+=a)}}return e+p}),0);return{current_total_dynamic_score:l}},Ye=(e,t)=>{const i=Ge(t[0]);if(0===Object.keys(i).length)return e;const n=t.filter((e=>e.type===m.FORM));return Object.keys(i).forEach((t=>{var o,a,l;const r=n.find((e=>e.id===t)),s=null===(o=null==r?void 0:r.actions)||void 0===o?void 0:o.find((e=>{var n;return e.id===(null===(n=i[t])||void 0===n?void 0:n.action_id)})),d=null==s?void 0:s.key,c=null===(l=null===(a=null==r?void 0:r._message)||void 0===a?void 0:a.form_submit_meta)||void 0===l?void 0:l.find((e=>e.key===d&&"number"===e.control));if(i[t].number&&["+","-","x","/"].includes(i[t].operator)&&(null==c?void 0:c.value)&&Number(c.value)){const n=Number(c.value),o=i[t].operator,a=i[t].number;let l=0;if("+"===o&&(l=n+a),"-"===o&&(l=n-a),"x"===o&&(l=n*a),"/"===o&&(l=n/a),e.includes(`{{var:${d}}}`)){const t=new RegExp(`{{var:${d}}}`,"g");e=e.replace(t,String(Math.floor(100*l)/100))}}})),e},We="other",Xe="stateInlineSSO",Ke=()=>{try{const e=window.next.router.components["/[...slug]"].props.pageProps;return"services-connection"===e.template?{project_id:"care-path",user_funnel:e.spotlight.additionalSlugActive||"",audience_name:e.spotlight.groupIdActive||""}:{}}catch(e){return{}}},Je=e=>{const t=e.filter((e=>"Unified Questions"===e.name)).reduce(((e,t)=>{var i,n,o,a,l,r,s,d,c,u,p,v,b,h,f,y,_,x,E,w,S;if(t.actions&&(null===(i=t._message)||void 0===i?void 0:i.action_id)&&(null===(n=t._message)||void 0===n?void 0:n.action_value)){const i=t._message.action_value;if(t.type===m.FORM){const i=["address","province","district","commune"],n=((null===(o=t._message)||void 0===o?void 0:o.form_submit_meta)||[]).filter((e=>!i.includes(e.control))),m=((null===(a=t._message)||void 0===a?void 0:a.form_submit_meta)||[]).filter((e=>i.includes(e.control))).reduce(((e,t)=>(e[t.control]=t,e)),{}),p=[null===(l=m.address)||void 0===l?void 0:l.value,null===(r=m.commune)||void 0===r?void 0:r.value,null===(s=m.district)||void 0===s?void 0:s.value,null===(d=m.province)||void 0===d?void 0:d.value].filter(Boolean).join(", ");p&&m.address?e.push({attribute:m.address.key,value:p,label_question:(null===(u=null===(c=t.intents)||void 0===c?void 0:c[0])||void 0===u?void 0:u.label)||""}):n.forEach((i=>{var n,o;e.push({attribute:i.key,value:i.value,label_question:(null===(o=null===(n=t.intents)||void 0===n?void 0:n[0])||void 0===o?void 0:o.label)||""})}))}if(t.type===m.TEXT)if(t.is_multi_select){const i=Object.keys(t._message.selected_actions||{}),n=t.actions.filter((e=>e.label&&i.includes(e.id))).map((e=>e.label));i.length&&e.push({attribute:t.actions[0].key||"",value:n,label_question:(null===(v=null===(p=t.intents)||void 0===p?void 0:p[0])||void 0===v?void 0:v.label)||""})}else{const n=t._message.action_id,o=t.actions.find((e=>e.id===n)),a=null==o?void 0:o.label,l=null===(f=null===(h=null===(b=t._message)||void 0===b?void 0:b.form_submit_meta)||void 0===h?void 0:h.find((e=>e.key===We)))||void 0===f?void 0:f.value,r=(null==o?void 0:o.type)===g.USER_CHOICE_TEXT_BY_INPUT;a&&n&&e.push({attribute:i,value:r&&l?l:a,label_question:(null===(_=null===(y=t.intents)||void 0===y?void 0:y[0])||void 0===_?void 0:_.label)||""})}if(t.type===m.POLL){const i=t.id,n=(null===(E=null===(x=t._message)||void 0===x?void 0:x.current_polls)||void 0===E?void 0:E[i])||[],o=t.actions.filter((e=>e.label&&n.includes(e.id))).map((e=>e.label));n.length&&e.push({attribute:t.actions[0].key||"",value:o,label_question:(null===(S=null===(w=t.intents)||void 0===w?void 0:w[0])||void 0===S?void 0:S.label)||""})}}return e}),[]);return t},Qe=(e,t)=>{var i;try{if("ACUVUE"!==(null===(i=t.extra_settings)||void 0===i?void 0:i.subot_type))return;let n="",o="",a="",l=Le().email;if((e||[]).forEach((e=>{var t,i,r;const s=e._message;if(!s)return;const d=null===(t=e.actions)||void 0===t?void 0:t.find((e=>e.id===s.action_id));if("voucher_product"===s.action_value?n=(null==d?void 0:d.label)||"":"voucher_color"===s.action_value&&(o=(null==d?void 0:d.label)||""),e.type===m.FORM){const e=null===(i=s.form_submit_meta)||void 0===i?void 0:i.find((e=>"voucher_size"===e.key)),t=null===(r=s.form_submit_meta)||void 0===r?void 0:r.find((e=>"email"===e.control));e&&(a=e.value),t&&(l=t.value)}})),"ACUVUE® OASYS (1-DAY) WITH HYDRALUXE®"===n&&l)return{email:l,voucherName:n};if(n&&o&&a&&l)return{email:l,voucherName:`${n}|${o}|${a}`}}catch(e){console.log("ExtractVoucherAnswer",e)}},Ze=({nodes:e,activeId:t,params:i,accountIdFromLogs:n})=>_(void 0,void 0,void 0,(function*(){try{let o="in_progress";const a=e[e.length-1];(null==a?void 0:a.type)&&v.includes(a.type)&&(o="complete");const l=e.slice(1),r={activeId:t,params:i,nodes:l,tracking:Object.assign(Object.assign({},Ke()),{full_url:window.location.href}),unifiedAnswers:Je(l),voucherAnswers:Qe(l,e[0])},s={cookie_id:Re(),account_id:n||Ae()||null,bot_id:e[0].id,flow_uuid:e[0].flow_uuid,data:JSON.stringify(r),status:o,type:"inline",market:S[A]};yield j(Se(Ee.POST_SUBOT_CREATE_LOG),"POST",{data:s})}catch(e){}})),et=(e,t)=>{try{const[i,n,o]=q(e,{format:"array"});return`rgba(${i}, ${n}, ${o}, ${t})`}catch(e){return}},tt=t({activeId:"",params:{},listNodes:[],loading:!0,getParams:()=>({}),onNext:()=>null,onPrev:()=>null,onSubmit:()=>null,onStartOver:()=>null,onChange:()=>null,isShowFooter:!1,setIsShowFooter:()=>null,setLoading:()=>null,userInfo:null}),it=({children:t,articleLink:s,subotId:d,isFullContainer:c,bgColor:u,primaryColor:m,isDisabledAnimationOnMobile:v,onCloseMobile:g,userInfo:b})=>{const{formatMessage:h,action:{pushNotifications:f}}=i(L),y=n(null),E=n(null),[w,S]=o(!0),[N,O]=o(""),[T,M]=o([]),[P,U]=o(!1),[R,A]=o({});a((()=>{const e=u||"#e3f2ff",t=m||"#2d87f3",i=(new Date).getTime(),n=setInterval((()=>{const o=y.current,a=(new Date).getTime();o&&(xe.mutate((()=>{o.style.setProperty("--subot-inline-bg-color",e),o.style.setProperty("--subot-inline-primary-color",t),o.style.setProperty("--subot-inline-primary-color-hover",et(t,.9)||t),o.style.setProperty("--subot-inline-primary-color-100",et(t,.1)||"#e3f2ff"),o.style.setProperty("--subot-inline-primary-color-300",et(t,.3)||"#bcdeff")})),clearInterval(n)),a-i>18e4&&clearInterval(n)}),100);return()=>{clearInterval(n)}}),[u,m]);const D=l((()=>{const e=window.gaData,t=window.location.origin+k+("tl-PH"===(null==B?void 0:B.locale)?s.replace("fil/",""):s),i={bot_id:d,account_id:Ae()||null,action_id:"",action_value:"",cookie_id:Re(),current_score:0,current_keys:[],current_selected:[],form_submit_meta:[],gtm_id:e?Object.keys(e)[0]:"",ga_client_id:C.get("_ga")||"",is_new:!1,mode:"inline",node_id:"",selected_actions:{},title_url:document.title||"",url:t.replace("http://localhost:6006","https://discover.hellobacsi.com").replace("http://localhost","https://discover.hellobacsi.com").replace("dev.","discover.").replace("staging.hellohealthgroup.com","discover.hellodoctor.com.ph").replace("https://hellohealthgroup.com","https://hellodoctor.com.ph"),window_id:$e()};return Pe(i,null==B?void 0:B.router.query)}),[]),$=l((()=>{var e;null===(e=y.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start",inline:"center"})}),[]),F=l(((e,t=!0)=>_(void 0,void 0,void 0,(function*(){var i;if(!e||!e.url||!e.bot_id)return;let n="",o=[];S(!0);const a=yield Ne(e.bot_id);1===(null==a?void 0:a._status)&&(n=null==a?void 0:a._data.id.toString(),o.push(null==a?void 0:a._data,null==a?void 0:a._data.first_node));const l=t?yield(r=o[0],_(void 0,void 0,void 0,(function*(){var e,t;try{if(!r)return null;const i=yield j(Se(Ee.GET_SUBOT_LOG,{botId:r.id,cookieId:Re(),accountId:Ae()||"",type:"inline"}),"GET");if(!(null===(e=null==i?void 0:i._data)||void 0===e?void 0:e.data)||"inline"!==(null===(t=null==i?void 0:i._data)||void 0===t?void 0:t.type))return null;const n=JSON.parse(i._data.data),o=n.nodes,a="in_progress"===i._data.status,l="complete"===i._data.status;return a||l?{nodes:[r,...o],activeId:n.activeId,params:Object.assign(Object.assign({},n.params),{account_id:Ae()||n.params.account_id||null})}:null}catch(e){return null}}))):null;var r;l&&(o=l.nodes,n=l.activeId,E.current=(null===(i=l.params)||void 0===i?void 0:i.account_id)||0);const s=((e,{getParams:t})=>{try{if(!Ae())return null;const i=JSON.parse(localStorage.getItem(Xe)||""),n=18e5;return(null==i?void 0:i.botId)===e&&i.listNodes&&i.activeId&&i.createdAt+n>Date.now()&&(localStorage.removeItem(Xe),i.listNodes.slice(-1)[0].position===p.SSO)?{listNodes:i.listNodes,activeId:i.activeId,params:Object.assign(Object.assign(Object.assign({},t()),i.params),{account_id:Ae()||null,cookie_id:Re(i.params.cookie_id)})}:null}catch(e){return null}})(e.bot_id,{getParams:D});if(s&&s.params.action_id&&s.params.action_value){const e=yield ke(s.params);1===(null==e?void 0:e._status)&&(null==e?void 0:e._data.node)&&(n=null==e?void 0:e._data.node.id,o=s.listNodes,o[o.length-1]=null==e?void 0:e._data.node,Ze({nodes:o,activeId:n,params:s.params,accountIdFromLogs:E.current}),setTimeout((()=>{$()}),100))}const d=(null==s?void 0:s.params)||(null==l?void 0:l.params)||e,[c,u]=((e,t,i)=>{if(!(null==e?void 0:e.subot_field_type))return[t,i];const n=i.find((e=>e.id==t));return n&&n.hasOwnProperty("first_node")&&i.length>1?[i[1].id,i]:[t,i]})(o[0],n,o);S(!1),O(c),M(u),A(Object.assign(Object.assign({},e),d))}))),[]),q=l(((e,t)=>{const i=document.querySelector(`.si-revamp-event-submission[data-bot-id="${d}"]`);i&&i.click();let n=N,o=[...T];if(null==t?void 0:t.node_id){const e=o.findIndex((({id:e})=>e==t.node_id));-1!==e&&(o[e]._message=Object.assign(Object.assign({},o[e]._message),t),o=[...o.slice(0,e+1)])}if(S(!0),e){const t=o.findIndex((({id:t})=>t==(null==e?void 0:e.id)));if(-1===t)o=[...o,Object.assign({},e)];else{const i=Object.assign(Object.assign(Object.assign({},o[t]),e),{_message:Object.assign(Object.assign({},o[t]._message),null==e?void 0:e._message)});o=[...o.slice(0,t),Object.assign({},i),...o.slice(t+1)]}n=e.id}setTimeout((()=>{M(o),O(n),S(!1),Ze({nodes:o,activeId:n,params:R,accountIdFromLogs:E.current})}),250)}),[T,N]),z=l((e=>_(void 0,void 0,void 0,(function*(){if(null==e?void 0:e.node_id){const t=Object.assign(Object.assign({},e),Ve(T,N,e.action_id)),i=yield ke(t);if(S(!1),1===(null==i?void 0:i._status)){const e=null==i?void 0:i._data,{node:n}=e,o=x(e,["node"]),a=Object.assign(Object.assign({},n),{_message:Object.assign(Object.assign({},o),{node_id:n.id})});return void(-1!==T.findIndex((e=>e.id===a.id))?q(a):q(a,t))}f({title:h({id:"notification.comment.somethingWrong"}),message:"",type:"danger"})}const t=T.find((e=>e.id==N));t&&t.hasOwnProperty("first_node")&&(O(T[1].id.toString()),Ze({nodes:T,activeId:T[1].id.toString(),params:D(),accountIdFromLogs:E.current}))}))),[q,T]),H=l((()=>{const e=T.findIndex((({id:e})=>e==N));if(e&&-1!==e&&e>1){const t=T[e-1];O(t.id),Ze({nodes:T,activeId:t.id,params:R,accountIdFromLogs:E.current})}}),[T,N]),G=l((()=>{const e=D();F(e,!1);const t=T[0],i=T[1];Ze({nodes:[t,i],activeId:String(t.id),params:e,accountIdFromLogs:E.current})}),[D,F,T]),V=l((e=>{M((t=>e&&(null==e?void 0:e.node_id)&&(null==e?void 0:e.node_id)==N?t.map((t=>{const i=t;return i.id===N?Object.assign(Object.assign({},t),{_message:i._message?Object.assign(Object.assign({},i._message),e):e}):t})):t))}),[N]);a((()=>{if(C.get(I)){const e=D();F(e)}else Be({condition:()=>Boolean(C.get(I)),finished:()=>{const e=D();F(e)}})}),[]),a((()=>{if(!T.length)return;T.find((e=>e.id==N))&&N||O(d+"")}),[N,T]);const Y=r((()=>({activeId:N,params:R,listNodes:T,loading:w,setLoading:S,getParams:D,onNext:z,onPrev:H,onSubmit:q,onStartOver:G,onChange:V,isShowFooter:P,setIsShowFooter:U,isFullContainer:c,isDisabledAnimationOnMobile:v,onCloseMobile:g,userInfo:b})),[N,z,H,q,V,G,P,R,T,w,S,D,c,v,g,b]);return T.length?e.createElement(tt.Provider,{value:Y},e.createElement("div",{ref:y},t)):null},nt=t=>e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M5.991 4.99a1 1 0 0 0-.697 1.717L10.587 12l-5.293 5.293a1 1 0 1 0 1.414 1.415L12 13.415l5.293 5.293a1 1 0 1 0 1.414-1.415L13.415 12l5.293-5.293a1 1 0 1 0-1.414-1.414L12 10.586 6.708 5.293a1 1 0 0 0-.717-.302",fill:"#595959"})),ot="480px",at=X.div`
1
+ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect as a,useCallback as l,useMemo as r,forwardRef as s,memo as d,useImperativeHandle as c}from"react";import{e as u,c as m,N as p,d as v,f as g,g as b,E as h,L as f,F as y}from"./Subot-76fd0d33.js";import{a as _,_ as x}from"./tslib.es6-8314c624.js";import{B as E,d as w,M as S,e as k,G as I,h as N,A as O,f as T}from"./index-2a84b189.js";import C from"js-cookie";import M from"fastdom";import P from"fastdom/extensions/fastdom-promised";import U from"string-format";import{G as B,b as j,x as R,y as A,T as L,L as D}from"./utils-1a5f1be6.js";import{v4 as $}from"uuid";import{i as F}from"./isProduction-5c72172a.js";import q from"hex-rgb";import z from"classnames";import{C as H}from"./index-2b034e6c.js";import{D as G,L as V}from"./index-24cb373f.js";import{motion as Y}from"framer-motion";import{M as W}from"./utils-fe6d1c2a.js";import X from"styled-components";import{B as K,S as J}from"./index-9313f566.js";import{Remarkable as Q}from"remarkable";import{useInView as Z}from"react-intersection-observer";import{Box as ee,Textarea as te}from"@mantine/core";import{C as ie}from"./index-36c3d5ed.js";import{I as ne}from"./index-19d94ba6.js";import oe from"dayjs";import ae from"dayjs/plugin/isSameOrBefore";import{T as le}from"./Plus-b8d1c834.js";import{t as re}from"./theme-9d4ebb16.js";import"@mantine/dates";import"./translationsContext-b3ac733d.js";import"@mantine/hooks";import se from"lodash/isEmpty";import{Controller as de,useForm as ce}from"react-hook-form";import ue,{getCountryCallingCode as me,isPossiblePhoneNumber as pe,parsePhoneNumber as ve}from"react-phone-number-input";import{LoadScript as ge}from"@react-google-maps/api";import{u as be,G as he,a as fe}from"./usePlacesAutocomplete-6b32f949.js";import{B as ye}from"./index-196cd161.js";import{D as _e}from"./index-b147d00b.js";import"date-fns/locale";import"./cookieHelper-edb1014c.js";import"slugify";import"./useTranslations-2745f276.js";import"date-fns";import"react-day-picker/DayPickerInput";import"@mantine/carousel";import"./WhatsApp-2d802179.js";const xe=M.extend(P),Ee={POST_VERIFY_SMS_OTP:"sms/update-phone",POST_SEND_OTP:"sms/otp",POST_SEND_OTP_WHATSAPP:"whatsapp/otp",POST_VERIFY_OTP:"sms/verify",POST_VERIFY_OTP_WHATSAPP:"sms/verify-whatsapp",GET_LANDING_PAGE_FIRST_NODE:"landing_page/bot",GET_LANDING_PAGE_NEXT_NODE:"landing_page/messages",POST_LANDING_PAGE_IMPRESSION:"landing_page/impressions",POST_LANDING_PAGE_CLICK:"landing_page/clicks",GET_INLINE_FIRST_NODE:"bots",GET_INLINE_MESSAGE:"inline/messages",GET_INLINE_IMPRESSION:"inline/impressions",GET_INLINE_CLICK:"inline/clicks",GET_SUBOT_LOG:"log/bot/{botId}/{cookieId}/{accountId}?type={type}",POST_SUBOT_CREATE_LOG:"log/bot",FETCH_URL_DATA:"preview",GET_VOUCHER_QUANTITY:"vouchers/total_quantity?search={search}&client_id={clientId}"},we={cached:{},clearCached:e=>{console.log(we.cached),Object.keys(we.cached).filter((t=>t.startsWith(e))).forEach((e=>{console.log(e),we.cached[e]=void 0}))},withCached:(e,t)=>_(void 0,void 0,void 0,(function*(){if("waitingTheFirstResponse"===we.cached[e])return new Promise((t=>{const i=(new Date).getTime(),n=setInterval((()=>{(new Date).getTime()-i>3e3&&clearInterval(n),"object"==typeof we.cached[e]&&(t(we.cached[e]),clearInterval(n))}),100)}));if("object"==typeof we.cached[e])return we.cached[e];we.cached[e]="waitingTheFirstResponse";try{const i=yield t();return we.cached[e]=i,setTimeout((()=>{we.cached[e]=void 0}),18e5),i}catch(t){return we.cached[e]=void 0,Promise.reject(t)}}))},Se=(e,t)=>{const{subotApiUrl:i}=null==B?void 0:B.env;return(i.endsWith("frontend/api/")?i:i+"frontend/api/")+U(e,Object.assign({},t))},ke=e=>_(void 0,void 0,void 0,(function*(){try{return yield j(Se(Ee.GET_INLINE_MESSAGE),"POST",{data:e})}catch(e){}})),Ie=e=>{var t;if(1===(null==e?void 0:e._status)&&(null===(t=null==e?void 0:e._data)||void 0===t?void 0:t.extra_settings))try{const t=JSON.parse(e._data.extra_settings);e._data.extra_settings="object"==typeof t?t:{sync_data_friso_campaign:!1}}catch(t){e._data.extra_settings={sync_data_friso_campaign:!1}}return e},Ne=e=>_(void 0,void 0,void 0,(function*(){try{return yield we.withCached("SubotInlineFirstNode/"+e,(()=>_(void 0,void 0,void 0,(function*(){const t=yield j(Se(Ee.GET_INLINE_FIRST_NODE)+`/${e}`,"GET");return Ie(t),t}))))}catch(e){return null}})),Oe=e=>_(void 0,void 0,void 0,(function*(){try{return yield j(Se(Ee.GET_INLINE_CLICK),"POST",{data:e})}catch(e){}})),Te=e=>_(void 0,void 0,void 0,(function*(){try{return yield j(Se(Ee.GET_INLINE_IMPRESSION),"POST",{data:e})}catch(e){}})),Ce=["form_submit_meta","selected_actions","current_selected","current_keys","current_polls"],Me=["bot_id","node_id","action_id","action_value","current_score","gtm_id","ga_client_id","is_new","title_url","url","window_id",...Ce],Pe=(e,t)=>(Object.keys(t).map((i=>{const n=t[i];if("source"!==i){if(Me.includes(i))if(Ce.includes(i))try{e[i]=JSON.parse(n)}catch(e){}else e[i]="account_id"!==i&&"current_score"!==i&&"bot_id"!==i?n:parseInt(n)}else e.is_new="first_login"===n})),e),Ue=e=>[{id:$(),label:JSON.stringify({title:"",description:""}),type:u.SSO_INTENT,url:""},{id:$(),label:JSON.stringify({title:e({id:"subot.myHealth.title",defaultMessage:"My Health"}),description:e({id:"subot.myHealth.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:u.SSO_INTENT,url:"/images/subot/my-health.svg"},{id:$(),label:JSON.stringify({title:e({id:"subot.saveData.title",defaultMessage:"Save Data"}),description:e({id:"subot.saveData.description",defaultMessage:"Hellobacsi would like to learn from your data to provide better healthcare for you"})}),type:u.SSO_INTENT,url:"/images/subot/file-storage.svg"},{id:$(),label:JSON.stringify({title:e({id:"subot.productYourIdentifiers.title",defaultMessage:"Protect your identifiers"}),description:e({id:"subot.productYourIdentifiers.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:u.SSO_INTENT,url:"/images/subot/shield.svg"}];function Be(e){const t=e.condition,i=e.finished,n=e.timeout||3e3,o=(new Date).getTime(),a=setInterval((()=>{((new Date).getTime()-o>n||t())&&(clearInterval(a),i())}),300)}const je=e=>R.parse(e||"")["hhg-id"]||C.get("hhg-id")||"",Re=e=>{if(e)return C.set("hhg-id",e),e;const t=je();if(t)return t;const i=$();return C.set("hhg-id",i),i},Ae=e=>{const t=R.parse(e||"")[E]||C.get(E)||"";try{const e=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(i).sub}catch(e){return""}},Le=e=>{const t=R.parse(e||"")[E]||C.get(E)||"";try{const e=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join("")),n=JSON.parse(i);return{email:n.email,id:n.sub}}catch(e){return{email:"",id:0}}},De=$(),$e=()=>De,Fe=(e,t)=>!t&&("undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname))?"http://localhost":`https://${F?"":"discover."}${w[e]}`,qe=e=>{const t=e||("undefined"==typeof navigator?"":navigator.userAgent);return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substring(0,4)))},ze=e=>{const t=document.createElement("a");t.href=e,t.target="_blank",t.click()},He=30,Ge=e=>{try{return e.dynamic_score||{}}catch(e){return{}}},Ve=(e,t,i,n)=>{const o=Ge(e[0]);if(!t)return{};const a=e.findIndex((e=>e.id==t)),l=e.reduce(((e,l,r)=>{var s,d;if(r>a)return e;const c=l,u=i&&c.id===t?{action_id:i}:c._message;let p=0;const v=null===(s=c.actions)||void 0===s?void 0:s.find((e=>e.id===(null==u?void 0:u.action_id)));p+=(null==v?void 0:v.score)||0;const g=void 0!==o[c.id],b=i&&c.id===t?n:null==u?void 0:u.form_submit_meta;if(g&&c.type===m.FORM&&b){const e=o[c.id].action_id,t=null===(d=c.actions)||void 0===d?void 0:d.find((t=>t.id===e)),i=null==t?void 0:t.key,n=b.find((e=>e.key===i&&"number"===e.control));if(o[c.id].number&&["+","-","x","/"].includes(o[c.id].operator)&&(null==n?void 0:n.value)&&Number(n.value)){const e=Number(n.value),t=o[c.id].operator,i=o[c.id].number;let a=0;"+"===t&&(a=e+i),"-"===t&&(a=e-i),"x"===t&&(a=e*i),"/"===t&&(a=e/i),isNaN(a)||(p+=a)}}return e+p}),0);return{current_total_dynamic_score:l}},Ye=(e,t)=>{const i=Ge(t[0]);if(0===Object.keys(i).length)return e;const n=t.filter((e=>e.type===m.FORM));return Object.keys(i).forEach((t=>{var o,a,l;const r=n.find((e=>e.id===t)),s=null===(o=null==r?void 0:r.actions)||void 0===o?void 0:o.find((e=>{var n;return e.id===(null===(n=i[t])||void 0===n?void 0:n.action_id)})),d=null==s?void 0:s.key,c=null===(l=null===(a=null==r?void 0:r._message)||void 0===a?void 0:a.form_submit_meta)||void 0===l?void 0:l.find((e=>e.key===d&&"number"===e.control));if(i[t].number&&["+","-","x","/"].includes(i[t].operator)&&(null==c?void 0:c.value)&&Number(c.value)){const n=Number(c.value),o=i[t].operator,a=i[t].number;let l=0;if("+"===o&&(l=n+a),"-"===o&&(l=n-a),"x"===o&&(l=n*a),"/"===o&&(l=n/a),e.includes(`{{var:${d}}}`)){const t=new RegExp(`{{var:${d}}}`,"g");e=e.replace(t,String(Math.floor(100*l)/100))}}})),e},We="other",Xe="stateInlineSSO",Ke=()=>{try{const e=window.next.router.components["/[...slug]"].props.pageProps;return"services-connection"===e.template?{project_id:"care-path",user_funnel:e.spotlight.additionalSlugActive||"",audience_name:e.spotlight.groupIdActive||""}:{}}catch(e){return{}}},Je=e=>{const t=e.filter((e=>"Unified Questions"===e.name)).reduce(((e,t)=>{var i,n,o,a,l,r,s,d,c,u,p,v,b,h,f,y,_,x,E,w,S;if(t.actions&&(null===(i=t._message)||void 0===i?void 0:i.action_id)&&(null===(n=t._message)||void 0===n?void 0:n.action_value)){const i=t._message.action_value;if(t.type===m.FORM){const i=["address","province","district","commune"],n=((null===(o=t._message)||void 0===o?void 0:o.form_submit_meta)||[]).filter((e=>!i.includes(e.control))),m=((null===(a=t._message)||void 0===a?void 0:a.form_submit_meta)||[]).filter((e=>i.includes(e.control))).reduce(((e,t)=>(e[t.control]=t,e)),{}),p=[null===(l=m.address)||void 0===l?void 0:l.value,null===(r=m.commune)||void 0===r?void 0:r.value,null===(s=m.district)||void 0===s?void 0:s.value,null===(d=m.province)||void 0===d?void 0:d.value].filter(Boolean).join(", ");p&&m.address?e.push({attribute:m.address.key,value:p,label_question:(null===(u=null===(c=t.intents)||void 0===c?void 0:c[0])||void 0===u?void 0:u.label)||""}):n.forEach((i=>{var n,o;e.push({attribute:i.key,value:i.value,label_question:(null===(o=null===(n=t.intents)||void 0===n?void 0:n[0])||void 0===o?void 0:o.label)||""})}))}if(t.type===m.TEXT)if(t.is_multi_select){const i=Object.keys(t._message.selected_actions||{}),n=t.actions.filter((e=>e.label&&i.includes(e.id))).map((e=>e.label));i.length&&e.push({attribute:t.actions[0].key||"",value:n,label_question:(null===(v=null===(p=t.intents)||void 0===p?void 0:p[0])||void 0===v?void 0:v.label)||""})}else{const n=t._message.action_id,o=t.actions.find((e=>e.id===n)),a=null==o?void 0:o.label,l=null===(f=null===(h=null===(b=t._message)||void 0===b?void 0:b.form_submit_meta)||void 0===h?void 0:h.find((e=>e.key===We)))||void 0===f?void 0:f.value,r=(null==o?void 0:o.type)===g.USER_CHOICE_TEXT_BY_INPUT;a&&n&&e.push({attribute:i,value:r&&l?l:a,label_question:(null===(_=null===(y=t.intents)||void 0===y?void 0:y[0])||void 0===_?void 0:_.label)||""})}if(t.type===m.POLL){const i=t.id,n=(null===(E=null===(x=t._message)||void 0===x?void 0:x.current_polls)||void 0===E?void 0:E[i])||[],o=t.actions.filter((e=>e.label&&n.includes(e.id))).map((e=>e.label));n.length&&e.push({attribute:t.actions[0].key||"",value:o,label_question:(null===(S=null===(w=t.intents)||void 0===w?void 0:w[0])||void 0===S?void 0:S.label)||""})}}return e}),[]);return t},Qe=(e,t)=>{var i;try{if("ACUVUE"!==(null===(i=t.extra_settings)||void 0===i?void 0:i.subot_type))return;let n="",o="",a="",l=Le().email;if((e||[]).forEach((e=>{var t,i,r;const s=e._message;if(!s)return;const d=null===(t=e.actions)||void 0===t?void 0:t.find((e=>e.id===s.action_id));if("voucher_product"===s.action_value?n=(null==d?void 0:d.label)||"":"voucher_color"===s.action_value&&(o=(null==d?void 0:d.label)||""),e.type===m.FORM){const e=null===(i=s.form_submit_meta)||void 0===i?void 0:i.find((e=>"voucher_size"===e.key)),t=null===(r=s.form_submit_meta)||void 0===r?void 0:r.find((e=>"email"===e.control));e&&(a=e.value),t&&(l=t.value)}})),"ACUVUE® OASYS (1-DAY) WITH HYDRALUXE®"===n&&l)return{email:l,voucherName:n};if(n&&o&&a&&l)return{email:l,voucherName:`${n}|${o}|${a}`}}catch(e){console.log("ExtractVoucherAnswer",e)}},Ze=({nodes:e,activeId:t,params:i,accountIdFromLogs:n})=>_(void 0,void 0,void 0,(function*(){try{let o="in_progress";const a=e[e.length-1];(null==a?void 0:a.type)&&v.includes(a.type)&&(o="complete");const l=e.slice(1),r={activeId:t,params:i,nodes:l,tracking:Object.assign(Object.assign({},Ke()),{full_url:window.location.href}),unifiedAnswers:Je(l),voucherAnswers:Qe(l,e[0])},s={cookie_id:Re(),account_id:n||Ae()||null,bot_id:e[0].id,flow_uuid:e[0].flow_uuid,data:JSON.stringify(r),status:o,type:"inline",market:S[A]};yield j(Se(Ee.POST_SUBOT_CREATE_LOG),"POST",{data:s})}catch(e){}})),et=(e,t)=>{try{const[i,n,o]=q(e,{format:"array"});return`rgba(${i}, ${n}, ${o}, ${t})`}catch(e){return}},tt=t({activeId:"",params:{},listNodes:[],loading:!0,getParams:()=>({}),onNext:()=>null,onPrev:()=>null,onSubmit:()=>null,onStartOver:()=>null,onChange:()=>null,isShowFooter:!1,setIsShowFooter:()=>null,setLoading:()=>null,userInfo:null}),it=({children:t,articleLink:s,subotId:d,isFullContainer:c,bgColor:u,primaryColor:m,textColor:v,textButtonColor:g,bgContentColor:b,bgImgFullContainer:h,isDisabledAnimationOnMobile:f,onCloseMobile:y,userInfo:E})=>{const{formatMessage:w,action:{pushNotifications:S}}=i(L),N=n(null),O=n(null),[T,M]=o(!0),[P,U]=o(""),[R,A]=o([]),[D,$]=o(!1),[F,q]=o({});a((()=>{const e=u||"#e3f2ff",t=m||"#2d87f3",i=(new Date).getTime(),n=setInterval((()=>{const o=N.current,a=(new Date).getTime();o&&(xe.mutate((()=>{o.style.setProperty("--subot-inline-bg-color",e),o.style.setProperty("--subot-inline-primary-color",t),o.style.setProperty("--subot-inline-primary-color-hover",et(t,.9)||t),o.style.setProperty("--subot-inline-primary-color-100",et(t,.1)||"#e3f2ff"),o.style.setProperty("--subot-inline-primary-color-300",et(t,.3)||"#bcdeff"),v&&o.style.setProperty("--subot-inline-text-color",v),g&&o.style.setProperty("--subot-inline-text-button-color",g),b&&o.style.setProperty("--subot-inline-bg-content-color",b)})),clearInterval(n)),a-i>18e4&&clearInterval(n)}),100);return()=>{clearInterval(n)}}),[u,m,v,g,b]);const z=l((()=>{const e=window.gaData,t=window.location.origin+k+("tl-PH"===(null==B?void 0:B.locale)?s.replace("fil/",""):s),i={bot_id:d,account_id:Ae()||null,action_id:"",action_value:"",cookie_id:Re(),current_score:0,current_keys:[],current_selected:[],form_submit_meta:[],gtm_id:e?Object.keys(e)[0]:"",ga_client_id:C.get("_ga")||"",is_new:!1,mode:"inline",node_id:"",selected_actions:{},title_url:document.title||"",url:t.replace("http://localhost:6006","https://discover.hellobacsi.com").replace("http://localhost","https://discover.hellobacsi.com").replace("dev.","discover.").replace("staging.hellohealthgroup.com","discover.hellodoctor.com.ph").replace("https://hellohealthgroup.com","https://hellodoctor.com.ph"),window_id:$e()};return Pe(i,null==B?void 0:B.router.query)}),[]),H=l((()=>{var e;null===(e=N.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start",inline:"center"})}),[]),G=l(((e,t=!0)=>_(void 0,void 0,void 0,(function*(){var i;if(!e||!e.url||!e.bot_id)return;let n="",o=[];M(!0);const a=yield Ne(e.bot_id);1===(null==a?void 0:a._status)&&(n=null==a?void 0:a._data.id.toString(),o.push(null==a?void 0:a._data,null==a?void 0:a._data.first_node));const l=t?yield(r=o[0],_(void 0,void 0,void 0,(function*(){var e,t;try{if(!r)return null;const i=yield j(Se(Ee.GET_SUBOT_LOG,{botId:r.id,cookieId:Re(),accountId:Ae()||"",type:"inline"}),"GET");if(!(null===(e=null==i?void 0:i._data)||void 0===e?void 0:e.data)||"inline"!==(null===(t=null==i?void 0:i._data)||void 0===t?void 0:t.type))return null;const n=JSON.parse(i._data.data),o=n.nodes,a="in_progress"===i._data.status,l="complete"===i._data.status;return a||l?{nodes:[r,...o],activeId:n.activeId,params:Object.assign(Object.assign({},n.params),{account_id:Ae()||n.params.account_id||null})}:null}catch(e){return null}}))):null;var r;l&&(o=l.nodes,n=l.activeId,O.current=(null===(i=l.params)||void 0===i?void 0:i.account_id)||0);const s=((e,{getParams:t})=>{try{if(!Ae())return null;const i=JSON.parse(localStorage.getItem(Xe)||""),n=18e5;return(null==i?void 0:i.botId)===e&&i.listNodes&&i.activeId&&i.createdAt+n>Date.now()&&(localStorage.removeItem(Xe),i.listNodes.slice(-1)[0].position===p.SSO)?{listNodes:i.listNodes,activeId:i.activeId,params:Object.assign(Object.assign(Object.assign({},t()),i.params),{account_id:Ae()||null,cookie_id:Re(i.params.cookie_id)})}:null}catch(e){return null}})(e.bot_id,{getParams:z});if(s&&s.params.action_id&&s.params.action_value){const e=yield ke(s.params);1===(null==e?void 0:e._status)&&(null==e?void 0:e._data.node)&&(n=null==e?void 0:e._data.node.id,o=s.listNodes,o[o.length-1]=null==e?void 0:e._data.node,Ze({nodes:o,activeId:n,params:s.params,accountIdFromLogs:O.current}),setTimeout((()=>{H()}),100))}const d=(null==s?void 0:s.params)||(null==l?void 0:l.params)||e,[c,u]=((e,t,i)=>{if(!(null==e?void 0:e.subot_field_type))return[t,i];const n=i.find((e=>e.id==t));return n&&n.hasOwnProperty("first_node")&&i.length>1?[i[1].id,i]:[t,i]})(o[0],n,o);M(!1),U(c),A(u),q(Object.assign(Object.assign({},e),d))}))),[]),V=l(((e,t)=>{const i=document.querySelector(`.si-revamp-event-submission[data-bot-id="${d}"]`);i&&i.click();let n=P,o=[...R];if(null==t?void 0:t.node_id){const e=o.findIndex((({id:e})=>e==t.node_id));-1!==e&&(o[e]._message=Object.assign(Object.assign({},o[e]._message),t),o=[...o.slice(0,e+1)])}if(M(!0),e){const t=o.findIndex((({id:t})=>t==(null==e?void 0:e.id)));if(-1===t)o=[...o,Object.assign({},e)];else{const i=Object.assign(Object.assign(Object.assign({},o[t]),e),{_message:Object.assign(Object.assign({},o[t]._message),null==e?void 0:e._message)});o=[...o.slice(0,t),Object.assign({},i),...o.slice(t+1)]}n=e.id}setTimeout((()=>{A(o),U(n),M(!1),Ze({nodes:o,activeId:n,params:F,accountIdFromLogs:O.current})}),250)}),[R,P]),Y=l((e=>_(void 0,void 0,void 0,(function*(){if(null==e?void 0:e.node_id){const t=Object.assign(Object.assign({},e),Ve(R,P,e.action_id)),i=yield ke(t);if(M(!1),1===(null==i?void 0:i._status)){const e=null==i?void 0:i._data,{node:n}=e,o=x(e,["node"]),a=Object.assign(Object.assign({},n),{_message:Object.assign(Object.assign({},o),{node_id:n.id})});return void(-1!==R.findIndex((e=>e.id===a.id))?V(a):V(a,t))}S({title:w({id:"notification.comment.somethingWrong"}),message:"",type:"danger"})}const t=R.find((e=>e.id==P));t&&t.hasOwnProperty("first_node")&&(U(R[1].id.toString()),Ze({nodes:R,activeId:R[1].id.toString(),params:z(),accountIdFromLogs:O.current}))}))),[V,R]),W=l((()=>{const e=R.findIndex((({id:e})=>e==P));if(e&&-1!==e&&e>1){const t=R[e-1];U(t.id),Ze({nodes:R,activeId:t.id,params:F,accountIdFromLogs:O.current})}}),[R,P]),X=l((()=>{const e=z();G(e,!1);const t=R[0],i=R[1];Ze({nodes:[t,i],activeId:String(t.id),params:e,accountIdFromLogs:O.current})}),[z,G,R]),K=l((e=>{A((t=>e&&(null==e?void 0:e.node_id)&&(null==e?void 0:e.node_id)==P?t.map((t=>{const i=t;return i.id===P?Object.assign(Object.assign({},t),{_message:i._message?Object.assign(Object.assign({},i._message),e):e}):t})):t))}),[P]);a((()=>{if(C.get(I)){const e=z();G(e)}else Be({condition:()=>Boolean(C.get(I)),finished:()=>{const e=z();G(e)}})}),[]),a((()=>{if(!R.length)return;R.find((e=>e.id==P))&&P||U(d+"")}),[P,R]);const J=r((()=>({activeId:P,params:F,listNodes:R,loading:T,setLoading:M,getParams:z,onNext:Y,onPrev:W,onSubmit:V,onStartOver:X,onChange:K,isShowFooter:D,setIsShowFooter:$,isFullContainer:c,bgImgFullContainer:h,isDisabledAnimationOnMobile:f,onCloseMobile:y,userInfo:E})),[P,Y,W,V,K,X,D,F,R,T,M,z,c,f,y,E,h]);return R.length?e.createElement(tt.Provider,{value:J},e.createElement("div",{ref:N},t)):null},nt=t=>e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M5.991 4.99a1 1 0 0 0-.697 1.717L10.587 12l-5.293 5.293a1 1 0 1 0 1.414 1.415L12 13.415l5.293 5.293a1 1 0 1 0 1.414-1.415L13.415 12l5.293-5.293a1 1 0 1 0-1.414-1.414L12 10.586 6.708 5.293a1 1 0 0 0-.717-.302",fill:"#595959"})),ot="480px",at=X.div`
2
2
  position: relative;
3
3
 
4
4
  .si-inline-revamp-container {
@@ -12,7 +12,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
12
12
  position: relative;
13
13
  border: 1px solid var(--subot-inline-primary-color-300);
14
14
  justify-content: center;
15
- background-color: #fff;
15
+ background-color: var(--subot-inline-bg-content-color, #fff);
16
16
  position: absolute;
17
17
  top: 0;
18
18
  left: 0;
@@ -71,7 +71,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
71
71
  }
72
72
 
73
73
  &::-webkit-scrollbar-thumb {
74
- background-color: #8c8c8c;
74
+ background-color: var(--subot-inline-text-color, #8c8c8c);
75
75
  border-radius: 2px;
76
76
  outline: none;
77
77
  }
@@ -196,7 +196,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
196
196
  }
197
197
 
198
198
  .si-headline {
199
- color: #262626;
199
+ color: var(--subot-inline-text-color, #262626);
200
200
  font-size: 28px;
201
201
  font-style: normal;
202
202
  font-weight: 400;
@@ -225,19 +225,22 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
225
225
  cursor: pointer;
226
226
  }
227
227
  .si-disclaimer-desc {
228
- color: #262626;
228
+ /* color: #262626; */
229
+ color: var(--subot-inline-text-color, #262626);
229
230
  font-size: 14px;
230
231
  font-weight: 600;
231
232
  line-height: 150%;
232
233
  letter-spacing: -0.07px;
233
234
  }
234
235
  .si-disclaimer-down {
235
- color: black;
236
+ /* color: black; */
237
+ color: var(--subot-inline-text-color, black);
236
238
  }
237
239
 
238
240
  .si-disclaimer-expanded {
239
241
  font-size: 12px;
240
- color: #595959;
242
+ /* color: #595959; */
243
+ color: var(--subot-inline-text-color, #595959);
241
244
  line-height: 1.4;
242
245
  padding-top: 8px;
243
246
  overflow: hidden;
@@ -255,7 +258,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
255
258
  height: 40px;
256
259
  font-weight: 600;
257
260
  font-size: 14px;
258
- color: #595959;
261
+ color: var(--subot-inline-text-color, #595959);
259
262
  cursor: pointer;
260
263
  transition: all 0.3s ease;
261
264
  text-align: left;
@@ -308,7 +311,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
308
311
  }
309
312
  }
310
313
  }
311
- `,pt=t=>e.createElement("svg",Object.assign({width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"m7.988 8 3.417 3.417a.73.73 0 0 1 0 1.063.73.73 0 0 1-1.07-.007L6.385 8.52a.76.76 0 0 1-.208-.525q-.001-.15.05-.28a.7.7 0 0 1 .157-.236l3.951-3.951a.73.73 0 0 1 .528-.237q.292 0 .521.23a.73.73 0 0 1 0 1.062z",fill:"currentColor"})),vt=t=>e.createElement("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M8.917 8 5.5 4.582a.73.73 0 0 1 0-1.063.73.73 0 0 1 1.07.007l3.95 3.954q.105.113.156.243a.8.8 0 0 1 .053.282q0 .15-.053.28a.7.7 0 0 1-.156.236l-3.95 3.951a.73.73 0 0 1-.528.236.72.72 0 0 1-.52-.23.73.73 0 0 1 0-1.062z",fill:"currentColor"})),gt=t=>e.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M5.5 10q0 .25.031.5t.073.479a1 1 0 0 1-.052.583.66.66 0 0 1-.406.396.72.72 0 0 1-.573-.032.66.66 0 0 1-.365-.427 5 5 0 0 1-.156-.729A6 6 0 0 1 4 10q0-2.522 1.77-4.292 1.772-1.77 4.355-1.709l-.667-.666a.73.73 0 0 1 0-1.063.73.73 0 0 1 1.063 0l1.958 1.959q.23.228.23.52a.72.72 0 0 1-.23.521l-1.958 1.96a.68.68 0 0 1-.521.218.76.76 0 0 1-.52-.24.73.73 0 0 1 0-1.062l.645-.646q-1.959-.041-3.292 1.292T5.5 9.999m9 0q0-.25-.031-.5a9 9 0 0 0-.073-.48 1 1 0 0 1 .052-.594.73.73 0 0 1 .406-.406.66.66 0 0 1 .563 0q.27.125.354.417.105.375.166.76Q16 9.583 16 10q0 2.5-1.77 4.282-1.772 1.78-4.355 1.718l.667.667a.73.73 0 0 1 0 1.063.73.73 0 0 1-1.063 0l-1.958-1.96a.72.72 0 0 1-.23-.52q0-.293.23-.521l1.958-1.959a.73.73 0 0 1 1.063 0 .73.73 0 0 1 0 1.063l-.667.666q1.959.042 3.292-1.291Q14.5 11.873 14.5 9.999",fill:"currentColor"})),bt=e.createContext({value:{},setValue:()=>null}),ht=({children:t})=>{const[i,n]=o({}),a=r((()=>({value:i,setValue:n})),[i,n]);return e.createElement(bt.Provider,{value:a},t)},ft=[m.FORM],yt=[p.SSO],_t=[m.FINAL,m.FINAL_THANK_YOU,m.FINAL_STANDARD],xt=()=>{var t,n,o,a,l;const{formatMessage:r,action:{pushNotifications:s}}=i(L),d=ut(),{listNodes:c,activeId:u,isShowFooter:m,onNext:p,onPrev:v,params:h,onStartOver:f,loading:y}=i(tt),{value:_}=i(bt),x=(()=>{const{formatMessage:e,action:{pushNotifications:t}}=i(L);return{validateSelectActions:(i,n,o)=>{(null==n?void 0:n.multi_select_option)!==b.EXACT_NUMBER||i.length===(null==n?void 0:n.from)?(null==n?void 0:n.multi_select_option)===b.RANGE&&(i.length<(null==n?void 0:n.from)||i.length>(null==n?void 0:n.to))?t({title:"",message:e({id:"multiSelectError.range",defaultMessage:"You must choose from {from} to {to} answers (Ex: You must choose from 3 to 5 answers)"},{from:n.from,to:n.to}),type:"warning"}):i.length?o():t({title:"",message:e({id:"multiSelectError.required",defaultMessage:"There is no answer!"}),type:"warning"}):t({message:e({id:"multiSelectError.exactNumber",defaultMessage:"You must choose {from} answers."},{from:n.from}),type:"warning"})}}})(),E=c[0],w=c.find((e=>e.id==u)),S=null===(t=null==w?void 0:w.actions)||void 0===t?void 0:t.find((e=>e.type===g.USER_CHOICE_NEXT)),k=null===(n=null==w?void 0:w.actions)||void 0===n?void 0:n.find((({type:e})=>e==g.POLL_BUTTON)),I=null===(o=null==w?void 0:w.actions)||void 0===o?void 0:o.find((({type:e})=>e==g.ACTION_MULTIPLE_BUTTON)),N=(null===(l=null===(a=null==w?void 0:w.actions)||void 0===a?void 0:a.find((({id:e})=>e===_.action_id)))||void 0===l?void 0:l.type)===g.USER_CHOICE_TEXT_BY_INPUT;if(!m)return null;const O=c.find((e=>e.id==u)),T=ft.includes((null==O?void 0:O.type)||"")||yt.includes((null==O?void 0:O.position)||"")||N,C=!_t.includes((null==O?void 0:O.type)||"");return e.createElement(mt,{"data-show-action":C},e.createElement("button",{onClick:f,"data-event-category":"Service Connection","data-event-action":"Risk Screening Start Over","data-event-label":d,"data-bot-id":h.bot_id,className:"si-footer-start-over",disabled:Boolean((null==E?void 0:E.subot_field_type)&&u==(null==c?void 0:c[1].id))},e.createElement(gt,null)," ",e.createElement("span",null,r({id:"tool.subot.inline.start.over",defaultMessage:"Start over"}))),C&&e.createElement("div",{className:"si-footer-actions"},e.createElement(K,{size:"md",variant:"tertiary",onClick:v,"data-event-category":"Service Connection","data-event-action":"Risk Screening Back","data-event-label":d,"data-bot-id":h.bot_id,sx:{paddingLeft:16,paddingRight:16,borderRadius:8}},e.createElement(pt,{style:{marginRight:10}}),r({id:"riskScreener.back",defaultMessage:"Back"})),e.createElement(K,{size:"md",onClick:()=>{var e;(null==S?void 0:S.id)&&(null==S?void 0:S.key)?(()=>{const e={node_id:w.id,action_id:null==S?void 0:S.id,action_value:null==S?void 0:S.key};p(Object.assign(Object.assign(Object.assign({},h),e),null==w?void 0:w._message))})():I?x.validateSelectActions(Object.keys((null==_?void 0:_.selected_actions)||{}),w,(()=>{p&&p(Object.assign(Object.assign(Object.assign({},h),null==w?void 0:w._message),_))})):k?(()=>{var e;const t={},i=(null===(e=null==_?void 0:_.form_submit_meta)||void 0===e?void 0:e.map((({action_id:e})=>e)))||[];_.form_submit_meta&&_.form_submit_meta.length&&(t[w.id]=_.form_submit_meta.map((e=>e.action_id)));const n=Object.assign(Object.assign({},_),{current_polls:t});x.validateSelectActions(i,w,(()=>{p&&p(Object.assign(Object.assign(Object.assign({},h),null==w?void 0:w._message),n))}))})():(null==w?void 0:w._message)&&(null===(e=w._message)||void 0===e?void 0:e.action_id)?p(Object.assign(Object.assign(Object.assign({},h),_),null==w?void 0:w._message)):s({title:"",message:r({id:"multiSelectError.required",defaultMessage:"There is no answer!"}),type:"warning"})},loading:!T&&y,disabled:T,"data-event-category":"Service Connection","data-event-action":"Risk Screening Continue","data-event-label":d,"data-bot-id":h.bot_id,sx:{paddingLeft:16,paddingRight:16,borderRadius:8},styles:{root:{":not(:disabled)":{backgroundColor:"var(--subot-inline-primary-color) !important","&:hover":{backgroundColor:"var(--subot-inline-primary-color-hover) !important"}}}}},r({id:"riskScreener.next",defaultMessage:"Next"}),e.createElement(vt,{style:{marginLeft:10}}))))};xt.displayName="SubotInlineFooterContainer";const Et=X.div`
314
+ `,pt=t=>e.createElement("svg",Object.assign({width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"m7.988 8 3.417 3.417a.73.73 0 0 1 0 1.063.73.73 0 0 1-1.07-.007L6.385 8.52a.76.76 0 0 1-.208-.525q-.001-.15.05-.28a.7.7 0 0 1 .157-.236l3.951-3.951a.73.73 0 0 1 .528-.237q.292 0 .521.23a.73.73 0 0 1 0 1.062z",fill:"currentColor"})),vt=t=>e.createElement("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M8.917 8 5.5 4.582a.73.73 0 0 1 0-1.063.73.73 0 0 1 1.07.007l3.95 3.954q.105.113.156.243a.8.8 0 0 1 .053.282q0 .15-.053.28a.7.7 0 0 1-.156.236l-3.95 3.951a.73.73 0 0 1-.528.236.72.72 0 0 1-.52-.23.73.73 0 0 1 0-1.062z",fill:"currentColor"})),gt=t=>e.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M5.5 10q0 .25.031.5t.073.479a1 1 0 0 1-.052.583.66.66 0 0 1-.406.396.72.72 0 0 1-.573-.032.66.66 0 0 1-.365-.427 5 5 0 0 1-.156-.729A6 6 0 0 1 4 10q0-2.522 1.77-4.292 1.772-1.77 4.355-1.709l-.667-.666a.73.73 0 0 1 0-1.063.73.73 0 0 1 1.063 0l1.958 1.959q.23.228.23.52a.72.72 0 0 1-.23.521l-1.958 1.96a.68.68 0 0 1-.521.218.76.76 0 0 1-.52-.24.73.73 0 0 1 0-1.062l.645-.646q-1.959-.041-3.292 1.292T5.5 9.999m9 0q0-.25-.031-.5a9 9 0 0 0-.073-.48 1 1 0 0 1 .052-.594.73.73 0 0 1 .406-.406.66.66 0 0 1 .563 0q.27.125.354.417.105.375.166.76Q16 9.583 16 10q0 2.5-1.77 4.282-1.772 1.78-4.355 1.718l.667.667a.73.73 0 0 1 0 1.063.73.73 0 0 1-1.063 0l-1.958-1.96a.72.72 0 0 1-.23-.52q0-.293.23-.521l1.958-1.959a.73.73 0 0 1 1.063 0 .73.73 0 0 1 0 1.063l-.667.666q1.959.042 3.292-1.291Q14.5 11.873 14.5 9.999",fill:"currentColor"})),bt=e.createContext({value:{},setValue:()=>null}),ht=({children:t})=>{const[i,n]=o({}),a=r((()=>({value:i,setValue:n})),[i,n]);return e.createElement(bt.Provider,{value:a},t)},ft=[m.FORM],yt=[p.SSO],_t=[m.FINAL,m.FINAL_THANK_YOU,m.FINAL_STANDARD],xt=()=>{var t,n,o,a,l;const{formatMessage:r,action:{pushNotifications:s}}=i(L),d=ut(),{listNodes:c,activeId:u,isShowFooter:m,onNext:p,onPrev:v,params:h,onStartOver:f,loading:y}=i(tt),{value:_}=i(bt),x=(()=>{const{formatMessage:e,action:{pushNotifications:t}}=i(L);return{validateSelectActions:(i,n,o)=>{(null==n?void 0:n.multi_select_option)!==b.EXACT_NUMBER||i.length===(null==n?void 0:n.from)?(null==n?void 0:n.multi_select_option)===b.RANGE&&(i.length<(null==n?void 0:n.from)||i.length>(null==n?void 0:n.to))?t({title:"",message:e({id:"multiSelectError.range",defaultMessage:"You must choose from {from} to {to} answers (Ex: You must choose from 3 to 5 answers)"},{from:n.from,to:n.to}),type:"warning"}):i.length?o():t({title:"",message:e({id:"multiSelectError.required",defaultMessage:"There is no answer!"}),type:"warning"}):t({message:e({id:"multiSelectError.exactNumber",defaultMessage:"You must choose {from} answers."},{from:n.from}),type:"warning"})}}})(),E=c[0],w=c.find((e=>e.id==u)),S=null===(t=null==w?void 0:w.actions)||void 0===t?void 0:t.find((e=>e.type===g.USER_CHOICE_NEXT)),k=null===(n=null==w?void 0:w.actions)||void 0===n?void 0:n.find((({type:e})=>e==g.POLL_BUTTON)),I=null===(o=null==w?void 0:w.actions)||void 0===o?void 0:o.find((({type:e})=>e==g.ACTION_MULTIPLE_BUTTON)),N=(null===(l=null===(a=null==w?void 0:w.actions)||void 0===a?void 0:a.find((({id:e})=>e===_.action_id)))||void 0===l?void 0:l.type)===g.USER_CHOICE_TEXT_BY_INPUT;if(!m)return null;const O=c.find((e=>e.id==u)),T=ft.includes((null==O?void 0:O.type)||"")||yt.includes((null==O?void 0:O.position)||"")||N,C=!_t.includes((null==O?void 0:O.type)||"");return e.createElement(mt,{"data-show-action":C},e.createElement("button",{onClick:f,"data-event-category":"Service Connection","data-event-action":"Risk Screening Start Over","data-event-label":d,"data-bot-id":h.bot_id,className:"si-footer-start-over",disabled:Boolean((null==E?void 0:E.subot_field_type)&&u==(null==c?void 0:c[1].id))},e.createElement(gt,null)," ",e.createElement("span",null,r({id:"tool.subot.inline.start.over",defaultMessage:"Start over"}))),C&&e.createElement("div",{className:"si-footer-actions"},e.createElement(K,{size:"md",variant:"tertiary",onClick:v,"data-event-category":"Service Connection","data-event-action":"Risk Screening Back","data-event-label":d,"data-bot-id":h.bot_id,sx:{paddingLeft:16,paddingRight:16,borderRadius:8},styles:{root:{":not(:disabled)":{backgroundColor:"transparent !important","&:hover":{backgroundColor:"var(--subot-inline-text-button-color, #f7f9fc) !important"},color:"var(--subot-inline-text-color, #262626) !important"}}}},e.createElement(pt,{style:{marginRight:10}}),r({id:"riskScreener.back",defaultMessage:"Back"})),e.createElement(K,{size:"md",onClick:()=>{var e;(null==S?void 0:S.id)&&(null==S?void 0:S.key)?(()=>{const e={node_id:w.id,action_id:null==S?void 0:S.id,action_value:null==S?void 0:S.key};p(Object.assign(Object.assign(Object.assign({},h),e),null==w?void 0:w._message))})():I?x.validateSelectActions(Object.keys((null==_?void 0:_.selected_actions)||{}),w,(()=>{p&&p(Object.assign(Object.assign(Object.assign({},h),null==w?void 0:w._message),_))})):k?(()=>{var e;const t={},i=(null===(e=null==_?void 0:_.form_submit_meta)||void 0===e?void 0:e.map((({action_id:e})=>e)))||[];_.form_submit_meta&&_.form_submit_meta.length&&(t[w.id]=_.form_submit_meta.map((e=>e.action_id)));const n=Object.assign(Object.assign({},_),{current_polls:t});x.validateSelectActions(i,w,(()=>{p&&p(Object.assign(Object.assign(Object.assign({},h),null==w?void 0:w._message),n))}))})():(null==w?void 0:w._message)&&(null===(e=w._message)||void 0===e?void 0:e.action_id)?p(Object.assign(Object.assign(Object.assign({},h),_),null==w?void 0:w._message)):s({title:"",message:r({id:"multiSelectError.required",defaultMessage:"There is no answer!"}),type:"warning"})},loading:!T&&y,disabled:T,"data-event-category":"Service Connection","data-event-action":"Risk Screening Continue","data-event-label":d,"data-bot-id":h.bot_id,sx:{paddingLeft:16,paddingRight:16,borderRadius:8},styles:{root:{":not(:disabled)":{backgroundColor:"var(--subot-inline-primary-color) !important","&:hover":{backgroundColor:"var(--subot-inline-primary-color-hover) !important"},color:"var(--subot-inline-text-button-color, #fff) !important"}}}},r({id:"riskScreener.next",defaultMessage:"Next"}),e.createElement(vt,{style:{marginLeft:10}}))))};xt.displayName="SubotInlineFooterContainer";const Et=X.div`
312
315
  sup {
313
316
  position: relative;
314
317
  top: -0.5em;
@@ -334,7 +337,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
334
337
  .si-review-by {
335
338
  gap: 12px;
336
339
  display: flex;
337
- color: #595959;
340
+ color: var(--subot-inline-text-color, #595959);
338
341
  font-style: normal;
339
342
  font-weight: 400;
340
343
  }
@@ -395,7 +398,8 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
395
398
  font-weight: 600;
396
399
  line-height: 150%;
397
400
  letter-spacing: -0.3px;
398
- color: #262626;
401
+ /* color: #262626; */
402
+ color: var(--subot-inline-text-color, #262626);
399
403
 
400
404
  ${W.mbUp} {
401
405
  font-size: 24px;
@@ -405,7 +409,8 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
405
409
  }
406
410
 
407
411
  .si-node-start-desc {
408
- color: #595959;
412
+ /* color: #595959; */
413
+ color: var(--subot-inline-text-color, #595959);
409
414
  font-size: 16px;
410
415
  line-height: 24px;
411
416
  font-weight: 400;
@@ -485,7 +490,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
485
490
  background-color: #2d87f3;
486
491
  }
487
492
  }
488
- `,Ot=({clientId:t,voucherAnswers:i})=>{const[n,l]=o(0),[r,s]=o(0);a((()=>{j(Se(Ee.GET_VOUCHER_QUANTITY,{search:(null==i?void 0:i.voucherName.split("|")[0])||"",clientId:t}),"GET").then((e=>{const t=null==e?void 0:e._data[0];t.total_quantity&&(l(t.total_quantity),s(t.total_in_stock))}))}),[null==i?void 0:i.voucherName]);const d=n?r/n*100:0;return n?e.createElement(Nt,{className:"si-voucher-left-ui"},e.createElement("img",{src:ie.getAssetPath("subot/voucher_bg.png"),alt:"",loading:"eager",className:"si-voucher-bg"}),e.createElement("img",{src:ie.getAssetPath("subot/voucher_icon.png"),alt:"",loading:"eager",className:"si-voucher-item"}),e.createElement(ee,{className:"si-voucher-in-stock"},e.createElement("h3",null,r),e.createElement("img",{src:ie.getAssetPath("subot/voucher_icon_small.png"),alt:"",loading:"eager"})),e.createElement(ee,{className:"si-voucher-progress"},e.createElement(ee,{className:"si-voucher-progress--inner",style:{width:`${d}%`}}))):null},Tt=({node:t,onClickStart:o})=>{var l,s;const d=n(!1),{ref:c,inView:u}=Z(),m=ut(),{params:p,getParams:v,onNext:g,setIsShowFooter:b,listNodes:h}=i(tt),f=h[0],y=null===(l=null==f?void 0:f.extra_settings)||void 0===l?void 0:l.subot_type;r((()=>{b(!1)}),[]),a((()=>{u&&!d.current&&(Te(v()),d.current=!0)}),[u]);return e.createElement(It,{ref:c,className:z({"si-acuvue-wrap":"ACUVUE"===y})},e.createElement("h2",null,t.inline_title),e.createElement("div",{className:"si-node-start-desc"},e.createElement(wt,null,t.inline_description)),"ACUVUE"===y&&e.createElement(Ot,{clientId:null===(s=f.extra_settings)||void 0===s?void 0:s.client_id,voucherAnswers:{email:"",voucherName:""}}),e.createElement(K,{onClick:()=>{const e=v();e.device_id=qe(window.navigator.userAgent)?2:1,Oe(e),g(),null==o||o()},"data-event-category":"Service Connection","data-event-action":"Risk Screening Start","data-event-label":m,"data-bot-id":p.bot_id,rightIcon:e.createElement(ne.ArrowRight,{color:"#fff"}),styles:{root:{backgroundColor:"var(--subot-inline-primary-color) !important","&:hover":{backgroundColor:"var(--subot-inline-primary-color-hover) !important"}}}},t.inline_start_button))};Tt.displayName="SubotInlineNodeStartContainer";const Ct=X.div``,Mt=X.div`
493
+ `,Ot=({clientId:t,voucherAnswers:i})=>{const[n,l]=o(0),[r,s]=o(0);a((()=>{j(Se(Ee.GET_VOUCHER_QUANTITY,{search:(null==i?void 0:i.voucherName.split("|")[0])||"",clientId:t}),"GET").then((e=>{const t=null==e?void 0:e._data[0];t.total_quantity&&(l(t.total_quantity),s(t.total_in_stock))}))}),[null==i?void 0:i.voucherName]);const d=n?r/n*100:0;return n?e.createElement(Nt,{className:"si-voucher-left-ui"},e.createElement("img",{src:ie.getAssetPath("subot/voucher_bg.png"),alt:"",loading:"eager",className:"si-voucher-bg"}),e.createElement("img",{src:ie.getAssetPath("subot/voucher_icon.png"),alt:"",loading:"eager",className:"si-voucher-item"}),e.createElement(ee,{className:"si-voucher-in-stock"},e.createElement("h3",null,r),e.createElement("img",{src:ie.getAssetPath("subot/voucher_icon_small.png"),alt:"",loading:"eager"})),e.createElement(ee,{className:"si-voucher-progress"},e.createElement(ee,{className:"si-voucher-progress--inner",style:{width:`${d}%`}}))):null},Tt=({node:t,onClickStart:o})=>{var l,s;const d=n(!1),{ref:c,inView:u}=Z(),m=ut(),{params:p,getParams:v,onNext:g,setIsShowFooter:b,listNodes:h}=i(tt),f=h[0],y=null===(l=null==f?void 0:f.extra_settings)||void 0===l?void 0:l.subot_type;r((()=>{b(!1)}),[]),a((()=>{u&&!d.current&&(Te(v()),d.current=!0)}),[u]);return e.createElement(It,{ref:c,className:z({"si-acuvue-wrap":"ACUVUE"===y})},e.createElement("h2",null,t.inline_title),e.createElement("div",{className:"si-node-start-desc"},e.createElement(wt,null,t.inline_description)),"ACUVUE"===y&&e.createElement(Ot,{clientId:null===(s=f.extra_settings)||void 0===s?void 0:s.client_id,voucherAnswers:{email:"",voucherName:""}}),e.createElement(K,{onClick:()=>{const e=v();e.device_id=qe(window.navigator.userAgent)?2:1,Oe(e),g(),null==o||o()},"data-event-category":"Service Connection","data-event-action":"Risk Screening Start","data-event-label":m,"data-bot-id":p.bot_id,rightIcon:e.createElement(ne.ArrowRight,{color:"var(--subot-inline-text-button-color, #fff)"}),styles:{root:{backgroundColor:"var(--subot-inline-primary-color) !important","&:hover":{backgroundColor:"var(--subot-inline-primary-color-hover) !important"},color:"var(--subot-inline-text-button-color, #fff) !important"}}},t.inline_start_button))};Tt.displayName="SubotInlineNodeStartContainer";const Ct=X.div``,Mt=X.div`
489
494
  .si-intent-list {
490
495
  display: flex;
491
496
  gap: 12px;
@@ -502,7 +507,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
502
507
  gap: 6px;
503
508
  display: flex;
504
509
  align-items: flex-start;
505
- color: #262626;
510
+ color: var(--subot-inline-text-color, #262626);
506
511
  font-weight: 600;
507
512
  margin-bottom: 24px;
508
513
  font-size: 18px;
@@ -540,7 +545,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
540
545
  button {
541
546
  min-width: 230px;
542
547
  }
543
- `,At="campaign/{campaignCode}/lead";oe.extend(ae);const Lt=e=>_(void 0,void 0,void 0,(function*(){const{first_name:t,last_name:i,address:n,dob:o,email:a,phone:l}=e||{};return yield(r=((e,t)=>{const{leadApiUrl:i}=null==B?void 0:B.env;return i+U(e,Object.assign({},t))})(At,{campaignCode:process.env.NEXT_PUBLIC_FRISO_COMPAIGN_CODE||"wufl4mh2vunsklq"}),s="POST",d={data:{url:window.location.href,title_article:document.title,referrer:"hlbs",meta:[{key:"first_name",value:t||"",control:"text"},{key:"last_name",value:i||"",control:"text"},{key:"due_date_dob",value:o,control:"due_date_dob"},{key:"province",value:((null==n?void 0:n.selectedProvince)||"").replace("Tỉnh ","").replace("Thành phố ",""),control:"province"},{key:"email",value:a||"",control:"email"},{key:"phone",value:l||"",control:"tel"},{key:"address",value:n?[(null==n?void 0:n.selectedProvince)||"",(null==n?void 0:n.selectedDistrict)||"",(null==n?void 0:n.selectedWard)||"",(null==n?void 0:n.extraInfo)||""].join("; "):"",control:"text"}]}},_(void 0,void 0,void 0,(function*(){if(null==d?void 0:d.data){let e=C.get(D);const t=C.get(I);if(!e){const t=$();e=t,C.set(D,t)}d.data.cookie_id=e,d.data.ga_client_id=t||""}return j(r,s,d)})));var r,s,d})),Dt=e=>{const{foundPhone:t,foundDate:i}=(e=>{let t="",i="";return e.forEach((e=>{var n,o,a,l,r,s;const d=e,c=(null===(a=null===(o=null===(n=null==d?void 0:d._message)||void 0===n?void 0:n.form_submit_meta)||void 0===o?void 0:o.find((e=>e.control===h[g.USER_SUBMIT_OTP]||e.control===h[g.USER_SUBMIT_PHONE])))||void 0===a?void 0:a.value)||"",u=(null===(s=null===(r=null===(l=null==d?void 0:d._message)||void 0===l?void 0:l.form_submit_meta)||void 0===r?void 0:r.find((e=>e.control===h[g.USER_SUBMIT_DATE])))||void 0===s?void 0:s.value)||"";c&&u&&(t=c,i=u)})),{foundPhone:t,foundDate:i}})(e);if(!t||!i)return;const n=oe(i),o=t.replace("+84","0"),a=n.isSameOrBefore(oe()),l=n.format("YYYY-MM-DD");window.location.href=U(process.env.NEXT_PUBLIC_FRISO_MINI_GAME_URL||"",Object.assign({phone:o},a?{dob:l}:{edd:l}))},$t=({intent:t})=>{const{listNodes:n}=i(tt),o=r((()=>t.url&&t.label&&(null==t?void 0:t.type)===u.BOT_MAIN_BUTTON?{"data-event-category":"Service Connection","data-event-action":`Risk Screening - ${t.label}`,"data-event-label":t.url}:{}),[t]);return(null==t?void 0:t.label)?e.createElement(Rt,null,e.createElement(K,Object.assign({size:"md",color:"primary",onClick:()=>{var e;(null===(e=t.url)||void 0===e?void 0:e.includes("{{.frisoRedirectUrl}}"))?Dt(n):t.url&&ze(t.url)}},o,{styles:{root:{backgroundColor:"var(--subot-inline-primary-color) !important","&:hover":{backgroundColor:"var(--subot-inline-primary-color-hover) !important"}}}}),e.createElement(wt,null,t.label))):null};$t.displayName="SubotInlineIntentBotButton";const Ft=({intent:t})=>{const n=ut(),{listNodes:o,activeId:a,params:l}=i(tt),r=o.find((e=>e.id==a));if(!t.label||!r)return null;const s={"data-event-category":"Service Connection","data-event-action":t.label,"data-event-label":n,"data-bot-id":l.bot_id,"data-question-id":r.id};return e.createElement(ee,{style:{position:"absolute",zIndex:-1}},e.createElement("button",Object.assign({className:"si-revamp-event-submission"},s)))};Ft.displayName="SubotInlineIntentBotEventSubmission";const qt=X.div`
548
+ `,At="campaign/{campaignCode}/lead";oe.extend(ae);const Lt=e=>_(void 0,void 0,void 0,(function*(){const{first_name:t,last_name:i,address:n,dob:o,email:a,phone:l}=e||{};return yield(r=((e,t)=>{const{leadApiUrl:i}=null==B?void 0:B.env;return i+U(e,Object.assign({},t))})(At,{campaignCode:process.env.NEXT_PUBLIC_FRISO_COMPAIGN_CODE||"wufl4mh2vunsklq"}),s="POST",d={data:{url:window.location.href,title_article:document.title,referrer:"hlbs",meta:[{key:"first_name",value:t||"",control:"text"},{key:"last_name",value:i||"",control:"text"},{key:"due_date_dob",value:o,control:"due_date_dob"},{key:"province",value:((null==n?void 0:n.selectedProvince)||"").replace("Tỉnh ","").replace("Thành phố ",""),control:"province"},{key:"email",value:a||"",control:"email"},{key:"phone",value:l||"",control:"tel"},{key:"address",value:n?[(null==n?void 0:n.selectedProvince)||"",(null==n?void 0:n.selectedDistrict)||"",(null==n?void 0:n.selectedWard)||"",(null==n?void 0:n.extraInfo)||""].join("; "):"",control:"text"}]}},_(void 0,void 0,void 0,(function*(){if(null==d?void 0:d.data){let e=C.get(D);const t=C.get(I);if(!e){const t=$();e=t,C.set(D,t)}d.data.cookie_id=e,d.data.ga_client_id=t||""}return j(r,s,d)})));var r,s,d})),Dt=e=>{const{foundPhone:t,foundDate:i}=(e=>{let t="",i="";return e.forEach((e=>{var n,o,a,l,r,s;const d=e,c=(null===(a=null===(o=null===(n=null==d?void 0:d._message)||void 0===n?void 0:n.form_submit_meta)||void 0===o?void 0:o.find((e=>e.control===h[g.USER_SUBMIT_OTP]||e.control===h[g.USER_SUBMIT_PHONE])))||void 0===a?void 0:a.value)||"",u=(null===(s=null===(r=null===(l=null==d?void 0:d._message)||void 0===l?void 0:l.form_submit_meta)||void 0===r?void 0:r.find((e=>e.control===h[g.USER_SUBMIT_DATE])))||void 0===s?void 0:s.value)||"";c&&u&&(t=c,i=u)})),{foundPhone:t,foundDate:i}})(e);if(!t||!i)return;const n=oe(i),o=t.replace("+84","0"),a=n.isSameOrBefore(oe()),l=n.format("YYYY-MM-DD");window.location.href=U(process.env.NEXT_PUBLIC_FRISO_MINI_GAME_URL||"",Object.assign({phone:o},a?{dob:l}:{edd:l}))},$t=({intent:t})=>{const{listNodes:n}=i(tt),o=r((()=>t.url&&t.label&&(null==t?void 0:t.type)===u.BOT_MAIN_BUTTON?{"data-event-category":"Service Connection","data-event-action":`Risk Screening - ${t.label}`,"data-event-label":t.url}:{}),[t]);return(null==t?void 0:t.label)?e.createElement(Rt,null,e.createElement(K,Object.assign({size:"md",color:"primary",onClick:()=>{var e;(null===(e=t.url)||void 0===e?void 0:e.includes("{{.frisoRedirectUrl}}"))?Dt(n):t.url&&ze(t.url)}},o,{styles:{root:{backgroundColor:"var(--subot-inline-primary-color) !important","&:hover":{backgroundColor:"var(--subot-inline-primary-color-hover) !important"},color:"var(--subot-inline-text-button-color, #fff) !important"}}}),e.createElement(wt,null,t.label))):null};$t.displayName="SubotInlineIntentBotButton";const Ft=({intent:t})=>{const n=ut(),{listNodes:o,activeId:a,params:l}=i(tt),r=o.find((e=>e.id==a));if(!t.label||!r)return null;const s={"data-event-category":"Service Connection","data-event-action":t.label,"data-event-label":n,"data-bot-id":l.bot_id,"data-question-id":r.id};return e.createElement(ee,{style:{position:"absolute",zIndex:-1}},e.createElement("button",Object.assign({className:"si-revamp-event-submission"},s)))};Ft.displayName="SubotInlineIntentBotEventSubmission";const qt=X.div`
544
549
  display: flex;
545
550
  padding: 8px 0;
546
551
 
@@ -565,7 +570,8 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
565
570
 
566
571
  h3,
567
572
  h3 a {
568
- color: #262626;
573
+ /* color: #262626 */
574
+ color: var(--subot-inline-text-color, #262626);
569
575
  font-size: 16px;
570
576
  letter-spacing: -0.2px;
571
577
  line-height: 24px;
@@ -608,7 +614,8 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
608
614
  cursor: pointer;
609
615
  }
610
616
  .si-disclaimer-desc {
611
- color: #262626;
617
+ /* color: #262626; */
618
+ color: var(--subot-inline-text-color, #262626);
612
619
  font-size: 16px;
613
620
  font-weight: 600;
614
621
  line-height: 150%;
@@ -620,7 +627,8 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
620
627
 
621
628
  .si-disclaimer-expanded {
622
629
  font-size: 16px;
623
- color: #262626;
630
+ /* color: #262626; */
631
+ color: var(--subot-inline-text-color, #262626);
624
632
  line-height: 1.4;
625
633
  overflow: hidden;
626
634
  padding-left: 32px;
@@ -629,7 +637,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
629
637
  `,Yt=[f.Thailand,f.Vietnam,f.Indonesia,f.Malaysia],Wt=({text:t})=>{const[n,a]=o(!1),{formatMessage:l}=i(L),r=null==B?void 0:B.locale;return t&&Yt.includes(r)?e.createElement(Vt,null,e.createElement("div",{className:"si-disclaimer",onClick:()=>a(!n)},e.createElement(dt,{className:"si-disclaimer-info-svg"}),e.createElement("span",{className:"si-disclaimer-desc"},l({id:"tools.disclaimer",defaultMessage:"Miễn trừ trách nhiệm"})),e.createElement(st,{className:"si-disclaimer-down"})),e.createElement(Y.div,{className:"si-disclaimer-expanded",animate:n?{height:"auto"}:{height:0},transition:{duration:.3}},t)):null};Wt.displayName="SubotInlineDisclaimer";const Xt=({intent:t})=>{var n;const{formatMessage:o}=i(L),a=r((()=>{try{return JSON.parse(t.label||"")||[]}catch(e){return[]}}),[null==t?void 0:t.label]),l=null===(n=a[0])||void 0===n?void 0:n.disclaimer;return t.label&&a.length?e.createElement(Gt,null,e.createElement(le,{size:"lg",weight:"semiBold",className:"si-title",color:"#262626"},o({id:"tools.suggestedServices",defaultMessage:"Suggested services"})+":"),e.createElement("div",{className:"si-list-services"},a.map(((t,i)=>e.createElement("div",{onClick:()=>(e=>{e.url&&e.url&&ze(e.url)})(t),key:i,className:"image-wrapper",role:"presentation"},e.createElement("img",{loading:"lazy",src:t.feature,alt:t.feature,key:i}))))),l&&e.createElement(Wt,{text:l})):null};Xt.displayName="SubotInlineIntentBotSuggestedService";const Kt=X.div`
630
638
  font-size: 16px;
631
639
  line-height: 24px;
632
- color: #595959;
640
+ color: var(--subot-inline-text-color, #595959);
633
641
  font-weight: 400;
634
642
 
635
643
  ul,
@@ -638,10 +646,11 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
638
646
  margin-top: 12px;
639
647
  }
640
648
  }
641
- `,Jt=({intent:t})=>{const{listNodes:n}=i(tt);if(!(null==t?void 0:t.label))return null;const o=(null==t?void 0:t.type)===u.BOT_MAIN_BODY;return e.createElement(Kt,null,e.createElement(wt,null,o?Ye(t.label,n):null==t?void 0:t.label))};Jt.displayName="SubotInlineIntentBotText";const Qt=X.div`
649
+ `,Jt=({intent:t})=>{const{listNodes:n}=i(tt);if(!(null==t?void 0:t.label))return null;const o=(null==t?void 0:t.type)===u.BOT_MAIN_BODY;return e.createElement(Kt,{className:"si-bot-text"},e.createElement(wt,null,o?Ye(t.label,n):null==t?void 0:t.label))};Jt.displayName="SubotInlineIntentBotText";const Qt=X.div`
642
650
  gap: 16px;
643
651
  display: flex;
644
- color: #262626;
652
+ /* color: #262626; */
653
+ color: var(--subot-inline-text-color, #262626);
645
654
  max-width: 500px;
646
655
  margin: 0 auto;
647
656
  margin-top: 16px;
@@ -661,7 +670,8 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
661
670
  .si-sso-description {
662
671
  flex: 1;
663
672
  font-size: 14px;
664
- color: #595959;
673
+ /* color: #595959; */
674
+ color: var(--subot-inline-text-color, #595959);
665
675
  line-height: 1.5;
666
676
  }
667
677
  `,Zt=({intent:t})=>{const i=(()=>{try{return(null==t?void 0:t.label)?JSON.parse(null==t?void 0:t.label):{}}catch(e){return{}}})();return i&&i.title?e.createElement(Qt,{id:"si-intent-sso"},e.createElement("img",{loading:"lazy",src:null==t?void 0:t.url,className:"icon",alt:""}),e.createElement("div",{className:"si-sso-content"},e.createElement("h3",{className:"si-sso-title"},i.title),e.createElement("div",{className:"si-sso-description"},i.description))):null};var ei;Zt.displayName="SubotInlineIntentSSO";const ti=X.div`
@@ -733,6 +743,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
733
743
 
734
744
  .see-more-intent {
735
745
  color: #6cbef0;
746
+ /* color: var(--subot-inline-primary-color, #6cbef0); */
736
747
  font-size: 16px;
737
748
  line-height: 24px;
738
749
  font-weight: 600;
@@ -792,10 +803,15 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
792
803
  ol {
793
804
  list-style-type: decimal;
794
805
  }
806
+
807
+ .si-bot-text {
808
+ color: #595959;
809
+ }
795
810
  }
796
811
 
797
812
  .si-sub-intent-title {
798
813
  color: #262626;
814
+ /* color: var(--subot-inline-text-color, #262626); */
799
815
  font-size: 16px;
800
816
  line-height: 24px;
801
817
  font-weight: 600;
@@ -807,7 +823,6 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
807
823
  /* > div:first-child {
808
824
  font-size: 16px;
809
825
  font-weight: 600;
810
- color: #262626;
811
826
 
812
827
  + div {
813
828
  margin-top: 16px;
@@ -821,7 +836,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
821
836
  font-size: 18px;
822
837
  }
823
838
  } */
824
- `,vi=t=>e.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("mask",{id:"mask0_2159_150362",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},e.createElement("rect",{width:"20",height:"20",fill:"#D9D9D9"})),e.createElement("g",{mask:"url(#mask0_2159_150362)"},e.createElement("path",{d:"M13.878 16.25a.35.35 0 0 0 .258-.11.35.35 0 0 0 .11-.259v-2.18a.35.35 0 0 0-.11-.257.35.35 0 0 0-.258-.111.35.35 0 0 0-.258.11.35.35 0 0 0-.111.259v2.179q0 .147.11.258.111.11.258.11m0-3.678q.15.008.26-.105a.37.37 0 0 0-.003-.523.36.36 0 0 0-.517 0 .35.35 0 0 0-.11.256.36.36 0 0 0 .112.259.35.35 0 0 0 .258.113M4.166 3.333v5.152-.024 8.205zm2.5 8.125h2.277q.182-.36.407-.668.226-.308.497-.582H6.666a.6.6 0 0 0-.445.18.6.6 0 0 0-.18.445q0 .266.18.445.18.18.445.18m0 3.333h1.69a4.7 4.7 0 0 1-.017-1.25H6.666a.6.6 0 0 0-.445.18.6.6 0 0 0-.18.446q0 .265.18.445t.445.18m-2.242 3.125q-.633 0-1.07-.437a1.45 1.45 0 0 1-.438-1.07V3.59q0-.63.438-1.068a1.45 1.45 0 0 1 1.068-.438h5.996q.305 0 .58.117a1.5 1.5 0 0 1 .482.322l3.497 3.497a1.5 1.5 0 0 1 .439 1.062V8.68a4 4 0 0 0-.608-.14 5 5 0 0 0-.642-.054V7.083h-3a.73.73 0 0 1-.534-.216.73.73 0 0 1-.216-.534v-3H4.422a.25.25 0 0 0-.176.08.25.25 0 0 0-.08.176v12.82q0 .097.08.177t.176.08h4.545q.182.36.411.668.23.308.51.582zm9.453-7.628q1.561 0 2.656 1.095t1.095 2.655-1.095 2.656-2.656 1.094-2.655-1.094-1.094-2.656 1.094-2.655 2.656-1.095",fill:"#6CBEF0"}))),gi=({subIntents:t})=>{const[i,n]=o(!1),[a,...l]=t;return a?e.createElement(pi,null,e.createElement("div",{className:"si-sub-intent-title",onClick:()=>n(!i)},e.createElement(vi,null),e.createElement("span",null,a.label),e.createElement(st,{className:"si-chevron-down"})),e.createElement(Y.div,{className:"si-sub-intent-expand",animate:i?{height:"auto"}:{height:0},transition:{duration:.3},"data-show":i},l.map((t=>{const i=(null==t?void 0:t.type)||"",n=ai[i];return n&&e.createElement(n,{key:t.id,intent:t})})))):null},bi=({node:t})=>{var l;const s=n(null),{formatMessage:d}=i(L),{setIsShowFooter:c,listNodes:m}=i(tt),[p,v]=o(!1);a((()=>{var e;(null===(e=s.current)||void 0===e?void 0:e.offsetHeight)&&s.current.offsetHeight<=300&&v(!0)}),[]);const g=m[0];console.log("botItem",typeof g);const b=t.intents||[],{mainIntents:h,subIntents:f,mainButtonIntents:y,bookingButtonIntents:_,relatedArticleIntents:x,suggestedServiceIntents:E,botSubmissionIntent:w}=r((()=>{const e=[],t=[],i=[],n=[],o=[],a=[],l=[];let r;return b.forEach((s=>{switch(null==s?void 0:s.type){case u.BOT_MAIN_IMAGE:case u.BOT_MAIN_TITLE:case u.BOT_MAIN_BODY:e.push(s);break;case u.BOT_SUGGESTED_SERVICE:l.push(s);break;case u.BOT_MAIN_BUTTON:t.push(s);break;case u.BOT_BOOKING:i.push(s);break;case u.BOT_RECALCULATE:break;case u.BOT_SUB_TITLE:case u.BOT_SUB_BODY:n.push(s);break;case u.BOT_RELATED_ARTICLE:a.push(s);break;case u.BOT_RISK_SCREEN:o.push(s);break;case u.BOT_SUBMISSION:r=s}})),{mainIntents:e,subIntents:n,mainButtonIntents:t,bookingButtonIntents:i,screenerIntents:o,relatedArticleIntents:a.filter((e=>{var t;return null===(t=zt(e))||void 0===t?void 0:t.title})),botSubmissionIntent:r,suggestedServiceIntents:l}}),[]);return r((()=>{c(!0)}),[]),a((()=>{const e=w;(null==e?void 0:e.label)?ui({risk_level:e.label}):ui()}),[]),t?e.createElement(mi,{id:"si-node-final"},e.createElement(Y.div,{ref:s,animate:p?{height:"auto"}:{height:300},transition:{duration:.3},className:"wrap-main-intent","data-hide":!p},e.createElement(ri,{intents:h})),!p&&e.createElement("span",{role:"presentation",className:"see-more-intent",onClick:()=>v(!0)},d({id:"articlePage.careEmbedding.seeMore",defaultMessage:"See more"})),e.createElement("div",{className:"wrap-main-button-intent"},null===(l=[...y,..._])||void 0===l?void 0:l.map((t=>{const i=ai[t.type||""];return i&&e.createElement(i,{key:t.id,intent:t})}))),(null==E?void 0:E.length)>0&&e.createElement("div",null,E.map((t=>{const i=ai[t.type||""];return i&&e.createElement(i,{key:t.id,intent:t})}))),(null==x?void 0:x.length)>0&&e.createElement("div",{style:{marginTop:24}},e.createElement(le,{size:"lg",weight:"semiBold",color:"#262626"},d({id:"articlePage.relatedPostsSectionTitle",defaultMessage:"Related Articles"})),e.createElement("div",{style:{padding:"8px 0"}},x.map((t=>{const i=ai[t.type||""];return i&&e.createElement(i,{key:t.id,intent:t})})))),e.createElement(gi,{subIntents:f})):null};bi.displayName="SubotinlineNodeFinalStandard";const hi=X.div`
839
+ `,vi=t=>e.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("mask",{id:"mask0_2159_150362",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},e.createElement("rect",{width:"20",height:"20",fill:"#D9D9D9"})),e.createElement("g",{mask:"url(#mask0_2159_150362)"},e.createElement("path",{d:"M13.878 16.25a.35.35 0 0 0 .258-.11.35.35 0 0 0 .11-.259v-2.18a.35.35 0 0 0-.11-.257.35.35 0 0 0-.258-.111.35.35 0 0 0-.258.11.35.35 0 0 0-.111.259v2.179q0 .147.11.258.111.11.258.11m0-3.678q.15.008.26-.105a.37.37 0 0 0-.003-.523.36.36 0 0 0-.517 0 .35.35 0 0 0-.11.256.36.36 0 0 0 .112.259.35.35 0 0 0 .258.113M4.166 3.333v5.152-.024 8.205zm2.5 8.125h2.277q.182-.36.407-.668.226-.308.497-.582H6.666a.6.6 0 0 0-.445.18.6.6 0 0 0-.18.445q0 .266.18.445.18.18.445.18m0 3.333h1.69a4.7 4.7 0 0 1-.017-1.25H6.666a.6.6 0 0 0-.445.18.6.6 0 0 0-.18.446q0 .265.18.445t.445.18m-2.242 3.125q-.633 0-1.07-.437a1.45 1.45 0 0 1-.438-1.07V3.59q0-.63.438-1.068a1.45 1.45 0 0 1 1.068-.438h5.996q.305 0 .58.117a1.5 1.5 0 0 1 .482.322l3.497 3.497a1.5 1.5 0 0 1 .439 1.062V8.68a4 4 0 0 0-.608-.14 5 5 0 0 0-.642-.054V7.083h-3a.73.73 0 0 1-.534-.216.73.73 0 0 1-.216-.534v-3H4.422a.25.25 0 0 0-.176.08.25.25 0 0 0-.08.176v12.82q0 .097.08.177t.176.08h4.545q.182.36.411.668.23.308.51.582zm9.453-7.628q1.561 0 2.656 1.095t1.095 2.655-1.095 2.656-2.656 1.094-2.655-1.094-1.094-2.656 1.094-2.655 2.656-1.095",fill:"#6CBEF0"}))),gi=({subIntents:t})=>{const[i,n]=o(!1),[a,...l]=t;return a?e.createElement(pi,null,e.createElement("div",{className:"si-sub-intent-title",onClick:()=>n(!i)},e.createElement(vi,null),e.createElement("span",null,a.label),e.createElement(st,{className:"si-chevron-down"})),e.createElement(Y.div,{className:"si-sub-intent-expand",animate:i?{height:"auto"}:{height:0},transition:{duration:.3},"data-show":i},l.map((t=>{const i=(null==t?void 0:t.type)||"",n=ai[i];return n&&e.createElement(n,{key:t.id,intent:t})})))):null},bi=({node:t})=>{var l;const s=n(null),{formatMessage:d}=i(L),{setIsShowFooter:c,listNodes:m}=i(tt),[p,v]=o(!1);a((()=>{var e;(null===(e=s.current)||void 0===e?void 0:e.offsetHeight)&&s.current.offsetHeight<=300&&v(!0)}),[]);const g=m[0];console.log("botItem",typeof g);const b=t.intents||[],{mainIntents:h,subIntents:f,mainButtonIntents:y,bookingButtonIntents:_,relatedArticleIntents:x,suggestedServiceIntents:E,botSubmissionIntent:w}=r((()=>{const e=[],t=[],i=[],n=[],o=[],a=[],l=[];let r;return b.forEach((s=>{switch(null==s?void 0:s.type){case u.BOT_MAIN_IMAGE:case u.BOT_MAIN_TITLE:case u.BOT_MAIN_BODY:e.push(s);break;case u.BOT_SUGGESTED_SERVICE:l.push(s);break;case u.BOT_MAIN_BUTTON:t.push(s);break;case u.BOT_BOOKING:i.push(s);break;case u.BOT_RECALCULATE:break;case u.BOT_SUB_TITLE:case u.BOT_SUB_BODY:n.push(s);break;case u.BOT_RELATED_ARTICLE:a.push(s);break;case u.BOT_RISK_SCREEN:o.push(s);break;case u.BOT_SUBMISSION:r=s}})),{mainIntents:e,subIntents:n,mainButtonIntents:t,bookingButtonIntents:i,screenerIntents:o,relatedArticleIntents:a.filter((e=>{var t;return null===(t=zt(e))||void 0===t?void 0:t.title})),botSubmissionIntent:r,suggestedServiceIntents:l}}),[]);return r((()=>{c(!0)}),[]),a((()=>{const e=w;(null==e?void 0:e.label)?ui({risk_level:e.label}):ui()}),[]),t?e.createElement(mi,{id:"si-node-final"},e.createElement(Y.div,{ref:s,animate:p?{height:"auto"}:{height:300},transition:{duration:.3},className:"wrap-main-intent","data-hide":!p},e.createElement(ri,{intents:h})),!p&&e.createElement("span",{role:"presentation",className:"see-more-intent",onClick:()=>v(!0)},d({id:"articlePage.careEmbedding.seeMore",defaultMessage:"See more"})),e.createElement("div",{className:"wrap-main-button-intent"},null===(l=[...y,..._])||void 0===l?void 0:l.map((t=>{const i=ai[t.type||""];return i&&e.createElement(i,{key:t.id,intent:t})}))),(null==E?void 0:E.length)>0&&e.createElement("div",null,E.map((t=>{const i=ai[t.type||""];return i&&e.createElement(i,{key:t.id,intent:t})}))),(null==x?void 0:x.length)>0&&e.createElement("div",{style:{marginTop:24}},e.createElement(le,{size:"lg",weight:"semiBold",color:"var(--subot-inline-text-color, #262626)"},d({id:"articlePage.relatedPostsSectionTitle",defaultMessage:"Related Articles"})),e.createElement("div",{style:{padding:"8px 0"}},x.map((t=>{const i=ai[t.type||""];return i&&e.createElement(i,{key:t.id,intent:t})})))),e.createElement(gi,{subIntents:f})):null};bi.displayName="SubotinlineNodeFinalStandard";const hi=X.div`
825
840
  .si-final-thank-action {
826
841
  text-align: center;
827
842
  }
@@ -952,7 +967,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
952
967
  label {
953
968
  display: block;
954
969
  margin-bottom: 6px;
955
- color: ${re.colors.gray600};
970
+ color: var(--subot-inline-text-color, ${re.colors.gray600});
956
971
  font-size: 13px;
957
972
  font-weight: bold;
958
973
  }
@@ -1169,7 +1184,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
1169
1184
  &.si-form-revamp {
1170
1185
  width: 100%;
1171
1186
  border-radius: 12px;
1172
- background: #f7f9fc;
1187
+ background: var(--subot-inline-bg-content-color, #f7f9fc);
1173
1188
  padding: 24px !important;
1174
1189
 
1175
1190
  .user-info-form {
@@ -1179,6 +1194,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
1179
1194
  padding: 8px 16px;
1180
1195
 
1181
1196
  &:not(:disabled) {
1197
+ color: var(--subot-inline-text-button-color, #fff);
1182
1198
  background-color: var(--subot-inline-primary-color);
1183
1199
  }
1184
1200
 
@@ -1584,7 +1600,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
1584
1600
  width: 20px;
1585
1601
  height: 20px;
1586
1602
  border: 2px solid
1587
- ${({active:e})=>{var t;return e?"var(--subot-inline-primary-color)":(null===(t=null==re?void 0:re.colors)||void 0===t?void 0:t.gray600)||"#8C8C8C"}};
1603
+ ${({active:e})=>{var t;return e?"var(--subot-inline-primary-color)":`var(--subot-inline-text-color, ${(null===(t=null==re?void 0:re.colors)||void 0===t?void 0:t.gray600)||"#8C8C8C"})`}};
1588
1604
  border-radius: 50%;
1589
1605
  content: '';
1590
1606
  transform: translate(-50%, -50%);
@@ -1665,7 +1681,8 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
1665
1681
  width: 100%;
1666
1682
  padding: 12px 16px;
1667
1683
  border-radius: 8px;
1668
- border: 1px solid #e4e8ec;
1684
+ /* border: 1px solid #e4e8ec; */
1685
+ border: 1px solid var(--subot-inline-text-color, #e4e8ec);
1669
1686
  display: flex;
1670
1687
  align-items: center;
1671
1688
  cursor: pointer;
@@ -1686,7 +1703,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
1686
1703
  font-weight: 400;
1687
1704
  line-height: 24px;
1688
1705
  letter-spacing: -0.16px;
1689
- color: #262626;
1706
+ color: var(--subot-inline-text-color, #262626);
1690
1707
  }
1691
1708
  `,un={input:{"&:focus":{borderColor:"var(--subot-inline-primary-color) !important",boxShadow:"0px 0px 0px 2px var(--subot-inline-primary-color-300) !important"}}},mn={root:{":not(:disabled)":{backgroundColor:"var(--subot-inline-primary-color) !important","&:hover":{backgroundColor:"var(--subot-inline-primary-color-hover) !important"}}}},pn=({action:t,onChange:l,active:r,htmlType:s,formSubmitMeta:d})=>{const{formatMessage:c}=i(L),u=ut(),m=n(null),[p,v]=o(""),{params:b}=i(tt),h=(null==t?void 0:t.type)===g.USER_CHOICE_TEXT_BY_INPUT;a((()=>{var e,t;r&&(v((null===(e=null==d?void 0:d.find((e=>e.key===We)))||void 0===e?void 0:e.value)||""),null===(t=m.current)||void 0===t||t.focus())}),[r,d]);return e.createElement(e.Fragment,null,e.createElement(cn,{id:"si-action-text-choice",active:!!r,onClick:()=>l&&l(t),"data-event-category":"Service Connection","data-event-action":"Risk Screening Answer Click","data-event-label":u,"data-bot-id":b.bot_id},e.createElement(an,{active:!!r},"checkbox"===s&&e.createElement(on,{className:"icon-checkbox",viewBox:"0 0 22 22"})),e.createElement("div",{className:"label"},null==t?void 0:t.label)),h&&r&&e.createElement(ee,{px:"2px",style:{textAlign:"right"}},e.createElement(te,{ref:m,placeholder:null==t?void 0:t.label,styles:un,value:p,onChange:e=>v(e.target.value),maxLength:360}),e.createElement(K,{size:"sm",mt:"5px",styles:mn,disabled:!p,onClick:()=>{p&&l&&l(t,[{key:We,control:"text",value:p}])}},c({id:"feedback.submit",defaultMessage:"Submit"}))))};pn.displayName="SubotInlineActionTextChoice";const vn=X.div``,gn=({action:t,onChange:i,active:n,htmlType:o})=>e.createElement(vn,null,e.createElement(pn,{active:!!n,action:t,onChange:e=>{e&&i&&i({key:null==e?void 0:e.key,control:h[null==e?void 0:e.type],value:"",action_id:null==e?void 0:e.id})},htmlType:o}));gn.displayName="SubotInlinePollChoice";const bn=({action:t,onChange:i,active:n,htmlType:o})=>e.createElement(rn,{active:!!n,action:t,onChange:e=>{e&&i&&i({key:null==e?void 0:e.key,control:h[null==e?void 0:e.type],value:"",action_id:null==e?void 0:e.id})},htmlType:o});bn.displayName="SubotInlinePollChoiceImage";const hn={[g.USER_CHOICE_TEXT]:pn,[g.USER_CHOICE_TEXT_BY_INPUT]:pn,[g.USER_CHOICE_IMAGE]:rn,[g.ACTION_SSO_REDIRECT]:dn,[g.POLL_CHOICE]:gn,[g.POLL_BUTTON]:()=>null,[g.POLL_CHOICE_IMAGE]:bn},fn=new Proxy(hn,{get:(t,i)=>hn[i]||(()=>F?null:e.createElement("p",null,"SubotInlineRevampActionBase ",i))}),yn=[g.USER_CHOICE_NEXT],_n=({actions:t,value:i,onChange:n,htmlType:o,node_type:a,formSubmitMeta:l})=>{const s=r((()=>!!(null==t?void 0:t.find((e=>e.type===g.POLL_CHOICE_IMAGE)))),[t]),d=r((()=>{switch(a){case m.IMAGE:case m.REACTION:return"si-two-columns";default:return s?"si-two-columns":""}}),[a]);return(null==t?void 0:t.length)?e.createElement(nn,{id:"si-action",className:d},null==t?void 0:t.map((t=>{const a=t.type;if(yn.includes(a))return null;const r=fn[t.type];return r&&e.createElement(r,{key:t.id,action:t,onChange:n,active:null==i?void 0:i.includes(t.id),htmlType:o,formSubmitMeta:l})}))):null};_n.displayName="SubotInlineAction";const xn=({node:t,indexNumber:n})=>{const{params:o,listNodes:l,activeId:s,onSubmit:d,setIsShowFooter:c,setLoading:u}=i(tt),{value:m,setValue:p}=i(bt);r((()=>{c(!0)}),[]),a((()=>{p((null==t?void 0:t._message)||{})}),[]);return t?e.createElement(tn,{id:"si-node-final"},e.createElement(ri,{intents:t.intents||[],indexNumber:n}),e.createElement(_n,{node_type:null==t?void 0:t.type,value:(null==m?void 0:m.action_id)?[null==m?void 0:m.action_id]:[],actions:null==t?void 0:t.actions,onChange:e=>_(void 0,void 0,void 0,(function*(){if(!e)return;p(Object.assign(Object.assign({},m),{action_id:null==e?void 0:e.id,action_value:null==e?void 0:e.key}));const i=Object.assign(Object.assign(Object.assign(Object.assign({},o),m),{node_id:t.id,action_id:null==e?void 0:e.id,action_value:null==e?void 0:e.key}),Ve(l,s,e.id));u(!0);const n=yield ke(i);if(u(!1),1===(null==n?void 0:n._status)){const e=null==n?void 0:n._data,{node:t}=e,o=x(e,["node"]),a=Object.assign(Object.assign({},t),{_message:Object.assign(Object.assign({},o),{node_id:t.id})});d(a,i)}}))})):null};xn.displayName="SubotinlineNodeImage";const En=X.div`
1692
1709
  display: flex;
@@ -1703,4 +1720,4 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
1703
1720
  flex-direction: column;
1704
1721
  padding-bottom: 16px;
1705
1722
  gap: 24px;
1706
- `,Tn=({node:t,indexNumber:n})=>{var o;const{params:l,onSubmit:s,setIsShowFooter:d,listNodes:c,activeId:u,setLoading:m,onChange:p}=i(tt),{value:v,setValue:b}=i(bt);r((()=>{d(!0)}),[]),a((()=>{b((null==t?void 0:t._message)||{})}),[]),a((()=>()=>{b({})}),[]);return e.createElement(On,{id:"si-node-text"},e.createElement(ri,{intents:(null==t?void 0:t.intents)||[],indexNumber:n}),e.createElement(_n,{value:(null==v?void 0:v.action_id)?[null==v?void 0:v.action_id]:[],actions:null==t?void 0:t.actions,onChange:(e,i)=>_(void 0,void 0,void 0,(function*(){if(!e)return;const n=e.type===g.USER_CHOICE_TEXT_BY_INPUT;if(b(Object.assign(Object.assign({},v),{action_id:null==e?void 0:e.id,action_value:null==e?void 0:e.key})),n){if(i){const n=Object.assign(Object.assign(Object.assign(Object.assign({},l),v),{node_id:t.id,action_id:null==e?void 0:e.id,action_value:null==e?void 0:e.key,form_submit_meta:i}),Ve(c,u,e.id));p(n),m(!0);const o=yield ke(n);if(m(!1),1===(null==o?void 0:o._status)){const e=null==o?void 0:o._data,{node:t}=e,i=x(e,["node"]),a=Object.assign(Object.assign({},t),{_message:Object.assign(Object.assign({},i),{node_id:t.id})});s(a,n)}}}else(e=>{_(void 0,void 0,void 0,(function*(){const i=Object.assign(Object.assign(Object.assign(Object.assign({},l),v),{node_id:t.id,action_id:null==e?void 0:e.id,action_value:null==e?void 0:e.key,form_submit_meta:void 0}),Ve(c,u,e.id));m(!0);const n=yield ke(i);if(m(!1),1===(null==n?void 0:n._status)){const e=null==n?void 0:n._data,{node:t}=e,o=x(e,["node"]),a=Object.assign(Object.assign({},t),{_message:Object.assign(Object.assign({},o),{node_id:t.id})});s(a,i)}}))})(e)})),formSubmitMeta:null===(o=null==t?void 0:t._message)||void 0===o?void 0:o.form_submit_meta}))};Tn.displayName="SubotInlineNodeTextContainer";const Cn={TEXT:Tn,IMAGE:xn,FORM:en,FINAL_STANDARD:bi,FINAL:si,FINAL_THANK_YOU:fi,SSO:Nn,MULTIPLE:wn,POLL:kn},Mn=new Proxy(Cn,{get:(t,i)=>Cn[i]||(()=>F?null:e.createElement(e.Fragment,null,"SubotInlineNodeBase ",i))}),Pn=({onClickStart:t})=>{var n;const{listNodes:o,activeId:a,isDisabledAnimationOnMobile:l}=i(tt),s=r((()=>o.findIndex((e=>e.id==a))),[o,a]),d=o[s];if(!d)return null;if(d.hasOwnProperty("first_node"))return l?e.createElement(Tt,{node:d,onClickStart:t}):e.createElement(Y.div,{key:d.id,initial:{opacity:0},animate:{opacity:1},transition:{y:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}},e.createElement(Tt,{node:d,onClickStart:t}));const c=d,u=m[c.type].valueOf(),v=null===(n=p[c.position])||void 0===n?void 0:n.valueOf();let g=c.position===p.SSO?Mn[v]:Mn[u];return c.is_multi_select&&c.type!==m.POLL&&(g=Mn.MULTIPLE),e.createElement(Y.div,{key:c.id,initial:{opacity:1,y:-300},animate:{opacity:1,y:0},transition:{y:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}},e.createElement(g,{indexNumber:s,node:c}))};Pn.displayName="SubotInlineNodeContainer";const Un={type:"spring",damping:25,stiffness:120},Bn=d((({loading:t,backgroundImage:i,isShowFooter:n,isFullContainer:l,isDisabledAnimationOnMobile:s,subotSettingData:d,onCloseMobile:c})=>{const u=r((()=>({backgroundImage:i?`url("${i}")`:void 0,backgroundRepeat:"no-repeat"})),[i]),[m,p]=o(!1);a((()=>{m?document.body.classList.add("si-open-overflow"):document.body.classList.remove("si-open-overflow")}),[m]),a((()=>()=>{document.body.classList.remove("si-open-overflow")}),[]);const v=m||s,g=e.createElement(at,null,e.createElement(Y.div,{style:u,layout:!0,transition:s?void 0:Un,className:z("si-inline-revamp-container",{"si-container-open":v,"si-full-container-config":l})},v&&e.createElement("button",{className:"si-close-btn",onClick:()=>{console.log("onClosemobile",c),p(!1),null==c||c()}},e.createElement(nt,null)),e.createElement(ht,null,e.createElement("div",{className:"subot-inline-revamp-container","data-show-footer":n},t&&!n&&e.createElement(V,{className:"si-loading"}),e.createElement(Pn,{onClickStart:()=>{p(!0)}})),n&&e.createElement(xt,null))),e.createElement("div",{className:"si-container-placeholder"}));return l?e.createElement(lt,null,e.createElement(H,{className:"si-container"},e.createElement("div",{className:"si-revamp-left"},e.createElement(kt,{subotSettingData:d}),e.createElement(ct,null)),e.createElement("div",{className:"si-revamp-right"},g))):g}));Bn.displayName="SubotInlineRevampView";const jn=()=>{const{loading:t,listNodes:n,isShowFooter:o,activeId:a,isFullContainer:l,isDisabledAnimationOnMobile:s,onCloseMobile:d,userInfo:c}=i(tt),m=r((()=>{var e,t;const i=n.find((e=>e.id==a));return i?i.inline_background||(null===(t=null===(e=i.intents)||void 0===e?void 0:e.find((e=>e.type===u.BOT_BACKGROUND_IMAGE)))||void 0===t?void 0:t.url):""}),[n,a]),p=r((()=>{const e=n[0];return{inlineImage:(null==e?void 0:e.inline_image)||"",inilneHeadline:(null==e?void 0:e.inline_headline)||"",reviewByAvatar:(null==e?void 0:e.inline_avatar)||"",reviewByName:(null==e?void 0:e.inline_review)||"",reviewBySpecialty:(null==e?void 0:e.inline_speciality)||"",reviewByHospital:(null==e?void 0:e.inline_hospital_name)||""}}),[n[0]]);if(void 0===c||!n[0])return null;const v={loading:t,backgroundImage:m,isShowFooter:o,isFullContainer:l,isDisabledAnimationOnMobile:s,subotSettingData:p,onCloseMobile:d};return e.createElement(Bn,Object.assign({},v))};jn.displayName="SubotInlineRevamp";const Rn=t=>e.createElement(it,Object.assign({},t,{subotId:Number(t.id)}),e.createElement(jn,null));export{Ee as PATHS,He as TIME_RESET_RESEND_OTP,qe as checkMobile,Be as checkUntilFinished,ze as clickAndOpenInNewTab,Ie as computeExtraSettingsForBot,Rn as default,Fe as getHelloSitesUrl,je as getHhgIdFromCookie,Se as getSubotApiPath,Re as getSubotCookieId,Ae as getUserIdFromCookie,Le as getUserInfoFromCookie,$e as getWindowId,Pe as overrideParamsByQuery,Ue as ssoIntents,Oe as subotInlineClick,Ne as subotInlineFirstNode,Te as subotInlineImpression,ke as subotInlineMessage};
1723
+ `,Tn=({node:t,indexNumber:n})=>{var o;const{params:l,onSubmit:s,setIsShowFooter:d,listNodes:c,activeId:u,setLoading:m,onChange:p}=i(tt),{value:v,setValue:b}=i(bt);r((()=>{d(!0)}),[]),a((()=>{b((null==t?void 0:t._message)||{})}),[]),a((()=>()=>{b({})}),[]);return e.createElement(On,{id:"si-node-text"},e.createElement(ri,{intents:(null==t?void 0:t.intents)||[],indexNumber:n}),e.createElement(_n,{value:(null==v?void 0:v.action_id)?[null==v?void 0:v.action_id]:[],actions:null==t?void 0:t.actions,onChange:(e,i)=>_(void 0,void 0,void 0,(function*(){if(!e)return;const n=e.type===g.USER_CHOICE_TEXT_BY_INPUT;if(b(Object.assign(Object.assign({},v),{action_id:null==e?void 0:e.id,action_value:null==e?void 0:e.key})),n){if(i){const n=Object.assign(Object.assign(Object.assign(Object.assign({},l),v),{node_id:t.id,action_id:null==e?void 0:e.id,action_value:null==e?void 0:e.key,form_submit_meta:i}),Ve(c,u,e.id));p(n),m(!0);const o=yield ke(n);if(m(!1),1===(null==o?void 0:o._status)){const e=null==o?void 0:o._data,{node:t}=e,i=x(e,["node"]),a=Object.assign(Object.assign({},t),{_message:Object.assign(Object.assign({},i),{node_id:t.id})});s(a,n)}}}else(e=>{_(void 0,void 0,void 0,(function*(){const i=Object.assign(Object.assign(Object.assign(Object.assign({},l),v),{node_id:t.id,action_id:null==e?void 0:e.id,action_value:null==e?void 0:e.key,form_submit_meta:void 0}),Ve(c,u,e.id));m(!0);const n=yield ke(i);if(m(!1),1===(null==n?void 0:n._status)){const e=null==n?void 0:n._data,{node:t}=e,o=x(e,["node"]),a=Object.assign(Object.assign({},t),{_message:Object.assign(Object.assign({},o),{node_id:t.id})});s(a,i)}}))})(e)})),formSubmitMeta:null===(o=null==t?void 0:t._message)||void 0===o?void 0:o.form_submit_meta}))};Tn.displayName="SubotInlineNodeTextContainer";const Cn={TEXT:Tn,IMAGE:xn,FORM:en,FINAL_STANDARD:bi,FINAL:si,FINAL_THANK_YOU:fi,SSO:Nn,MULTIPLE:wn,POLL:kn},Mn=new Proxy(Cn,{get:(t,i)=>Cn[i]||(()=>F?null:e.createElement(e.Fragment,null,"SubotInlineNodeBase ",i))}),Pn=({onClickStart:t})=>{var n;const{listNodes:o,activeId:a,isDisabledAnimationOnMobile:l}=i(tt),s=r((()=>o.findIndex((e=>e.id==a))),[o,a]),d=o[s];if(!d)return null;if(d.hasOwnProperty("first_node"))return l?e.createElement(Tt,{node:d,onClickStart:t}):e.createElement(Y.div,{key:d.id,initial:{opacity:0},animate:{opacity:1},transition:{y:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}},e.createElement(Tt,{node:d,onClickStart:t}));const c=d,u=m[c.type].valueOf(),v=null===(n=p[c.position])||void 0===n?void 0:n.valueOf();let g=c.position===p.SSO?Mn[v]:Mn[u];return c.is_multi_select&&c.type!==m.POLL&&(g=Mn.MULTIPLE),e.createElement(Y.div,{key:c.id,initial:{opacity:1,y:-300},animate:{opacity:1,y:0},transition:{y:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}},e.createElement(g,{indexNumber:s,node:c}))};Pn.displayName="SubotInlineNodeContainer";const Un={type:"spring",damping:25,stiffness:120},Bn=d((({loading:t,backgroundImage:i,isShowFooter:n,isFullContainer:l,isDisabledAnimationOnMobile:s,subotSettingData:d,onCloseMobile:c,bgImgFullContainer:u})=>{const m=r((()=>({backgroundImage:i?`url("${i}")`:void 0,backgroundRepeat:"no-repeat",backgroundPosition:"center"})),[i]),[p,v]=o(!1);a((()=>{p?document.body.classList.add("si-open-overflow"):document.body.classList.remove("si-open-overflow")}),[p]),a((()=>()=>{document.body.classList.remove("si-open-overflow")}),[]);const g=p||s,b=e.createElement(at,null,e.createElement(Y.div,{style:m,layout:!0,transition:s?void 0:Un,className:z("si-inline-revamp-container",{"si-container-open":g,"si-full-container-config":l})},g&&e.createElement("button",{className:"si-close-btn",onClick:()=>{console.log("onClosemobile",c),v(!1),null==c||c()}},e.createElement(nt,null)),e.createElement(ht,null,e.createElement("div",{className:"subot-inline-revamp-container","data-show-footer":n},t&&!n&&e.createElement(V,{className:"si-loading"}),e.createElement(Pn,{onClickStart:()=>{v(!0)}})),n&&e.createElement(xt,null))),e.createElement("div",{className:"si-container-placeholder"})),h=r((()=>{if(u)return{backgroundImage:`url("${u}")`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"}}),[u]);return l?e.createElement(lt,{style:h},e.createElement(H,{className:"si-container"},e.createElement("div",{className:"si-revamp-left"},e.createElement(kt,{subotSettingData:d}),e.createElement(ct,null)),e.createElement("div",{className:"si-revamp-right"},b))):b}));Bn.displayName="SubotInlineRevampView";const jn=()=>{const{loading:t,listNodes:n,isShowFooter:o,activeId:a,isFullContainer:l,isDisabledAnimationOnMobile:s,onCloseMobile:d,userInfo:c,bgImgFullContainer:m}=i(tt),p=r((()=>{var e,t;const i=n.find((e=>e.id==a));return i?i.inline_background||(null===(t=null===(e=i.intents)||void 0===e?void 0:e.find((e=>e.type===u.BOT_BACKGROUND_IMAGE)))||void 0===t?void 0:t.url):""}),[n,a]),v=r((()=>{const e=n[0];return{inlineImage:(null==e?void 0:e.inline_image)||"",inilneHeadline:(null==e?void 0:e.inline_headline)||"",reviewByAvatar:(null==e?void 0:e.inline_avatar)||"",reviewByName:(null==e?void 0:e.inline_review)||"",reviewBySpecialty:(null==e?void 0:e.inline_speciality)||"",reviewByHospital:(null==e?void 0:e.inline_hospital_name)||""}}),[n[0]]);if(void 0===c||!n[0])return null;const g={loading:t,backgroundImage:p,bgImgFullContainer:m,isShowFooter:o,isFullContainer:l,isDisabledAnimationOnMobile:s,subotSettingData:v,onCloseMobile:d};return e.createElement(Bn,Object.assign({},g))};jn.displayName="SubotInlineRevamp";const Rn=t=>e.createElement(it,Object.assign({},t,{subotId:Number(t.id)}),e.createElement(jn,null)),An=t=>{var i,n,l,r,s,d,c,u,m,p,v,g;const[b,h]=o(null);return a((()=>{_(void 0,void 0,void 0,(function*(){const e=yield Promise.resolve().then((function(){return Ln})).then((e=>e.subotInlineFirstNode)),i=yield e(t.id);console.log("props.id",t.id,i),h((null==i?void 0:i._data)||null)}))}),[t.id]),b?e.createElement(Rn,Object.assign({},t,{primaryColor:null===(n=null===(i=b.extra_settings)||void 0===i?void 0:i.inline_styles)||void 0===n?void 0:n.primary_color,textColor:null===(r=null===(l=b.extra_settings)||void 0===l?void 0:l.inline_styles)||void 0===r?void 0:r.text_color,textButtonColor:null===(d=null===(s=b.extra_settings)||void 0===s?void 0:s.inline_styles)||void 0===d?void 0:d.text_button_color,bgColor:null===(u=null===(c=b.extra_settings)||void 0===c?void 0:c.inline_styles)||void 0===u?void 0:u.container_bg_color,bgContentColor:null===(p=null===(m=b.extra_settings)||void 0===m?void 0:m.inline_styles)||void 0===p?void 0:p.content_bg_color,bgImgFullContainer:null===(g=null===(v=b.extra_settings)||void 0===v?void 0:v.inline_styles)||void 0===g?void 0:g.container_bg_image})):null};var Ln=Object.freeze({__proto__:null,default:Rn,SubotInlineRevampWithTheme:An,overrideParamsByQuery:Pe,ssoIntents:Ue,checkUntilFinished:Be,getHhgIdFromCookie:je,getSubotCookieId:Re,getUserIdFromCookie:Ae,getUserInfoFromCookie:Le,getWindowId:$e,getHelloSitesUrl:Fe,checkMobile:qe,clickAndOpenInNewTab:ze,TIME_RESET_RESEND_OTP:30,getSubotApiPath:Se,subotInlineMessage:ke,computeExtraSettingsForBot:Ie,subotInlineFirstNode:Ne,subotInlineClick:Oe,subotInlineImpression:Te,PATHS:Ee});export{Ee as PATHS,An as SubotInlineRevampWithTheme,He as TIME_RESET_RESEND_OTP,qe as checkMobile,Be as checkUntilFinished,ze as clickAndOpenInNewTab,Ie as computeExtraSettingsForBot,Rn as default,Fe as getHelloSitesUrl,je as getHhgIdFromCookie,Se as getSubotApiPath,Re as getSubotCookieId,Ae as getUserIdFromCookie,Le as getUserInfoFromCookie,$e as getWindowId,Pe as overrideParamsByQuery,Ue as ssoIntents,Oe as subotInlineClick,Ne as subotInlineFirstNode,Te as subotInlineImpression,ke as subotInlineMessage};
@@ -1 +1 @@
1
- export{f as CardAuthor,C as CardLink,B as CardPost,D as CardPostPopoverMore,b as CardReactions,E as CardReply,F as CardReplyPopover,g as CreateNewPostContent,h as CreatePostDescription,i as CreatePostTitle,r as ImagePreviewPopup,I as InputCommentBar,d as LabelPin,L as LabelSortPin,e as LabelSorting,G as PopoverMenu,P as PopupDanger,k as PopupDoctor,j as PopupExpert,n as PopupFrame,l as PopupHospital,q as PostContent,v as PostImagePreview,s as PostSingleImageViewPopup,y as ProfileDetail,x as ProfileDetailModal,p as ShareBox,S as SharePopup,A as SkipQuestionOfExpertBtn,w as SocialLinkPreview,H as SourceList,o as SubmitReportForm,z as TabNameInProfileDetail,c as TagTopic,T as TogetherAuthConfigContext,a as TogetherAuthConfigContextProvider,t as TogetherTypes,m as TopicSelectList,V as VerifiedTag,u as useTogetherAuthRequiredAction}from"./types-8e137b89.js";export{d as TogetherDataTransforms,U as UserAvatar}from"./index-5db9b9d7.js";export{D as DefaultComponentGlobalContextData,G as GlobalData,T as TogetherComponentGlobalContext,a as TogetherComponentGlobalContextProvider,c as TogetherConstants}from"./utils-3e125f1e.js";import"react";import"./Plus-0795a68c.js";import"./tslib.es6-16e6bdc9.js";import"@mantine/core";import"./theme-dab2950f.js";import"./translationsContext-5a2101f0.js";import"string-format";import"./index-fe314c0f.js";import"styled-components";import"./useTranslations-78d82c21.js";import"innertext";import"./index-36467b48.js";import"./WhatsApp-c7fd561d.js";import"./index-0ce3ea30.js";import"@mantine/hooks";import"./index-5222461b.js";import"./index-1c858659.js";import"date-fns/locale";import"./Subot-e1ee8861.js";import"./isProduction-9fe75b7e.js";import"dayjs";import"./utils-f69a5c66.js";import"@mantine/carousel";import"classnames";import"@mantine/dates";import"./index-a9cbc4b7.js";import"./index.styles-fa4052da.js";import"./constants-d7aa1c1c.js";import"./animation-70b8e1f2.js";import"react-keyed-flatten-children";import"./paths-be7ff55f.js";import"./index-77b369f0.js";import"lodash/debounce";import"react-contenteditable";import"./index-ed7346f2.js";import"./cookieHelper-2017148d.js";import"react-dom";import"./number-07ae3046.js";import"date-fns";import"dayjs/plugin/relativeTime";import"./index-47b11c19.js";import"./routing-7c6d65ae.js";import"./utils-f842970f.js";import"./index.styled-500647b4.js";import"./index-754b44fc.js";import"slugify";
1
+ export{f as CardAuthor,C as CardLink,B as CardPost,D as CardPostPopoverMore,b as CardReactions,E as CardReply,F as CardReplyPopover,g as CreateNewPostContent,h as CreatePostDescription,i as CreatePostTitle,r as ImagePreviewPopup,I as InputCommentBar,d as LabelPin,L as LabelSortPin,e as LabelSorting,G as PopoverMenu,P as PopupDanger,k as PopupDoctor,j as PopupExpert,n as PopupFrame,l as PopupHospital,q as PostContent,v as PostImagePreview,s as PostSingleImageViewPopup,y as ProfileDetail,x as ProfileDetailModal,p as ShareBox,S as SharePopup,A as SkipQuestionOfExpertBtn,w as SocialLinkPreview,H as SourceList,o as SubmitReportForm,z as TabNameInProfileDetail,c as TagTopic,T as TogetherAuthConfigContext,a as TogetherAuthConfigContextProvider,t as TogetherTypes,m as TopicSelectList,V as VerifiedTag,u as useTogetherAuthRequiredAction}from"./types-8a997e8d.js";export{d as TogetherDataTransforms,U as UserAvatar}from"./index-66975069.js";export{D as DefaultComponentGlobalContextData,G as GlobalData,T as TogetherComponentGlobalContext,a as TogetherComponentGlobalContextProvider,c as TogetherConstants}from"./utils-1a5f1be6.js";import"react";import"./Plus-b8d1c834.js";import"./tslib.es6-8314c624.js";import"@mantine/core";import"./theme-9d4ebb16.js";import"./translationsContext-b3ac733d.js";import"string-format";import"./index-b147d00b.js";import"styled-components";import"./useTranslations-2745f276.js";import"innertext";import"./index-19d94ba6.js";import"./WhatsApp-2d802179.js";import"./index-9313f566.js";import"@mantine/hooks";import"./index-36c3d5ed.js";import"./index-2a84b189.js";import"date-fns/locale";import"./Subot-76fd0d33.js";import"./isProduction-5c72172a.js";import"dayjs";import"./utils-fe6d1c2a.js";import"@mantine/carousel";import"classnames";import"@mantine/dates";import"./index-317d2629.js";import"./index.styles-d0394c83.js";import"./constants-08ac43d9.js";import"./animation-afdebd15.js";import"react-keyed-flatten-children";import"./paths-d9409117.js";import"./index-bb8a9468.js";import"lodash/debounce";import"react-contenteditable";import"./index-196cd161.js";import"./cookieHelper-edb1014c.js";import"react-dom";import"./number-d6eb475f.js";import"date-fns";import"dayjs/plugin/relativeTime";import"./index-a67a570a.js";import"./routing-f2d6084b.js";import"./utils-a298bdb0.js";import"./index.styled-d65a93a7.js";import"./index-1d7e19b1.js";import"slugify";
@@ -1,4 +1,4 @@
1
- import*as e from"react";import t,{createContext as a,useContext as o,useState as n,useRef as i,useEffect as l,useMemo as r,useCallback as s}from"react";import{T as c,P as d,C as m}from"./Plus-0795a68c.js";import"./translationsContext-5a2101f0.js";import"string-format";import{T as p,B as u,g,b as v,d as h,P as b,e as f,f as y,h as w,C as x,i as E,j as C,k,l as N,m as A,A as T,n as z,o as P,M as I,p as S,R as L,q as M,r as j}from"./utils-3e125f1e.js";import{a as B,_ as F}from"./tslib.es6-16e6bdc9.js";import{useMantineTheme as O,Box as R,createStyles as V,Flex as D,rem as U,Checkbox as W,Portal as H,Anchor as Z,Accordion as q,Popover as _}from"@mantine/core";import{D as G}from"./index-fe314c0f.js";import{u as Q,b as X}from"./useTranslations-78d82c21.js";import K from"innertext";import{t as $}from"./theme-dab2950f.js";import{I as Y,A as J,C as ee}from"./index-36467b48.js";import{H as te,I as ae}from"./WhatsApp-c7fd561d.js";import{I as oe,u as ne,B as ie,A as le,a as re,T as se}from"./index-0ce3ea30.js";import"@mantine/dates";import{D as ce,d as de}from"./index-1c858659.js";import{L as me}from"./Subot-e1ee8861.js";import{C as pe}from"./index-5222461b.js";import"@mantine/hooks";import{M as ue,t as ge,c as ve,a as he}from"./utils-f69a5c66.js";import{A as be,a as fe,B as ye,D as we}from"./index-a9cbc4b7.js";import{U as xe,f as Ee,a as Ce,P as ke,b as Ne,c as Ae,e as Te,g as ze}from"./index-5db9b9d7.js";import{I as Pe}from"./index-77b369f0.js";import Ie from"lodash/debounce";import Se from"react-contenteditable";import{B as Le}from"./index-ed7346f2.js";import{H as Me,g as je}from"./index.styles-fa4052da.js";import{d as Be,g as Fe}from"./cookieHelper-2017148d.js";import*as Oe from"react-dom";import Re,{keyframes as Ve}from"styled-components";import{a as De}from"./number-07ae3046.js";import{format as Ue}from"date-fns";import We from"dayjs";import He from"dayjs/plugin/relativeTime";import{M as Ze}from"./index-47b11c19.js";import{g as qe}from"./routing-7c6d65ae.js";import"./constants-d7aa1c1c.js";import"./utils-f842970f.js";import"./index.styled-500647b4.js";import"./index-754b44fc.js";const _e=t=>e.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},t),e.createElement("path",{d:"M3.99403 3.32695C3.86141 3.32698 3.73181 3.36657 3.62181 3.44065C3.5118 3.51472 3.42638 3.61992 3.37648 3.7428C3.32658 3.86567 3.31445 4.00064 3.34165 4.13044C3.36885 4.26024 3.43415 4.37898 3.52919 4.47148L7.05784 8.00013L3.52919 11.5288C3.46521 11.5902 3.41413 11.6638 3.37894 11.7452C3.34375 11.8266 3.32516 11.9142 3.32425 12.0029C3.32335 12.0916 3.34015 12.1796 3.37368 12.2617C3.40721 12.3438 3.45678 12.4185 3.5195 12.4812C3.58222 12.5439 3.65682 12.5935 3.73894 12.627C3.82106 12.6605 3.90904 12.6773 3.99774 12.6764C4.08643 12.6755 4.17405 12.6569 4.25547 12.6217C4.33689 12.5865 4.41047 12.5355 4.4719 12.4715L8.00054 8.94283L11.5292 12.4715C11.5906 12.5355 11.6642 12.5865 11.7456 12.6217C11.827 12.6569 11.9147 12.6755 12.0034 12.6764C12.092 12.6773 12.18 12.6605 12.2621 12.627C12.3443 12.5935 12.4189 12.5439 12.4816 12.4812C12.5443 12.4185 12.5939 12.3439 12.6274 12.2617C12.6609 12.1796 12.6777 12.0916 12.6768 12.0029C12.6759 11.9142 12.6573 11.8266 12.6222 11.7452C12.587 11.6638 12.5359 11.5902 12.4719 11.5288L8.94325 8.00013L12.4719 4.47148C12.5682 4.37784 12.634 4.25728 12.6607 4.1256C12.6873 3.99392 12.6735 3.85726 12.6212 3.73354C12.5688 3.60982 12.4803 3.5048 12.3672 3.43224C12.2542 3.35969 12.1218 3.32299 11.9875 3.32695C11.8143 3.33211 11.6499 3.4045 11.5292 3.52877L8.00054 7.05742L4.4719 3.52877C4.40977 3.46491 4.33548 3.41415 4.2534 3.37948C4.17132 3.34482 4.08313 3.32696 3.99403 3.32695Z"})),Ge=a({}),Qe=({children:e,defaultParams:a})=>t.createElement(Ge.Provider,{value:{defaultParams:a}},e),Xe=e=>{const{data:{userInfo:t,env:{togetherBasePath:a}}}=o(p),{defaultParams:n}=o(Ge)||{},i=null==t?void 0:t.id,l=t&&"number"==typeof t.communities_interacted&&0===t.communities_interacted;return{authActionWrapper:(t,o)=>{const r=Object.assign(Object.assign(Object.assign({},n),e),o);if(!i||l){i||Be(u),(null==r?void 0:r._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(r._joinCommunityIds).filter(Boolean))))),null==r||delete r._joinCommunityIds),(null==r?void 0:r._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(r._joinTopicIds).filter(Boolean))))),null==r||delete r._joinTopicIds);const e=(null==r?void 0:r._location)||window.location.href;return null==r||delete r._location,window.location.href=g(e,r,a),null}return t&&t()},params:Object.assign(Object.assign({},n),e)}},Ke=Re.div`
1
+ import*as e from"react";import t,{createContext as a,useContext as o,useState as n,useRef as i,useEffect as l,useMemo as r,useCallback as s}from"react";import{T as c,P as d,C as m}from"./Plus-b8d1c834.js";import"./translationsContext-b3ac733d.js";import"string-format";import{T as p,B as u,g,b as v,d as h,P as b,e as f,f as y,h as w,C as x,i as E,j as C,k,l as N,m as A,A as T,n as z,o as P,M as I,p as S,R as L,q as M,r as j}from"./utils-1a5f1be6.js";import{a as B,_ as F}from"./tslib.es6-8314c624.js";import{useMantineTheme as O,Box as R,createStyles as V,Flex as D,rem as U,Checkbox as W,Portal as H,Anchor as Z,Accordion as q,Popover as _}from"@mantine/core";import{D as G}from"./index-b147d00b.js";import{u as Q,b as X}from"./useTranslations-2745f276.js";import K from"innertext";import{t as $}from"./theme-9d4ebb16.js";import{I as Y,A as J,C as ee}from"./index-19d94ba6.js";import{H as te,I as ae}from"./WhatsApp-2d802179.js";import{I as oe,u as ne,B as ie,A as le,a as re,T as se}from"./index-9313f566.js";import"@mantine/dates";import{D as ce,d as de}from"./index-2a84b189.js";import{L as me}from"./Subot-76fd0d33.js";import{C as pe}from"./index-36c3d5ed.js";import"@mantine/hooks";import{M as ue,t as ge,c as ve,a as he}from"./utils-fe6d1c2a.js";import{A as be,a as fe,B as ye,D as we}from"./index-317d2629.js";import{U as xe,f as Ee,a as Ce,P as ke,b as Ne,c as Ae,e as Te,g as ze}from"./index-66975069.js";import{I as Pe}from"./index-bb8a9468.js";import Ie from"lodash/debounce";import Se from"react-contenteditable";import{B as Le}from"./index-196cd161.js";import{H as Me,g as je}from"./index.styles-d0394c83.js";import{d as Be,g as Fe}from"./cookieHelper-edb1014c.js";import*as Oe from"react-dom";import Re,{keyframes as Ve}from"styled-components";import{a as De}from"./number-d6eb475f.js";import{format as Ue}from"date-fns";import We from"dayjs";import He from"dayjs/plugin/relativeTime";import{M as Ze}from"./index-a67a570a.js";import{g as qe}from"./routing-f2d6084b.js";import"./constants-08ac43d9.js";import"./utils-a298bdb0.js";import"./index.styled-d65a93a7.js";import"./index-1d7e19b1.js";const _e=t=>e.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},t),e.createElement("path",{d:"M3.99403 3.32695C3.86141 3.32698 3.73181 3.36657 3.62181 3.44065C3.5118 3.51472 3.42638 3.61992 3.37648 3.7428C3.32658 3.86567 3.31445 4.00064 3.34165 4.13044C3.36885 4.26024 3.43415 4.37898 3.52919 4.47148L7.05784 8.00013L3.52919 11.5288C3.46521 11.5902 3.41413 11.6638 3.37894 11.7452C3.34375 11.8266 3.32516 11.9142 3.32425 12.0029C3.32335 12.0916 3.34015 12.1796 3.37368 12.2617C3.40721 12.3438 3.45678 12.4185 3.5195 12.4812C3.58222 12.5439 3.65682 12.5935 3.73894 12.627C3.82106 12.6605 3.90904 12.6773 3.99774 12.6764C4.08643 12.6755 4.17405 12.6569 4.25547 12.6217C4.33689 12.5865 4.41047 12.5355 4.4719 12.4715L8.00054 8.94283L11.5292 12.4715C11.5906 12.5355 11.6642 12.5865 11.7456 12.6217C11.827 12.6569 11.9147 12.6755 12.0034 12.6764C12.092 12.6773 12.18 12.6605 12.2621 12.627C12.3443 12.5935 12.4189 12.5439 12.4816 12.4812C12.5443 12.4185 12.5939 12.3439 12.6274 12.2617C12.6609 12.1796 12.6777 12.0916 12.6768 12.0029C12.6759 11.9142 12.6573 11.8266 12.6222 11.7452C12.587 11.6638 12.5359 11.5902 12.4719 11.5288L8.94325 8.00013L12.4719 4.47148C12.5682 4.37784 12.634 4.25728 12.6607 4.1256C12.6873 3.99392 12.6735 3.85726 12.6212 3.73354C12.5688 3.60982 12.4803 3.5048 12.3672 3.43224C12.2542 3.35969 12.1218 3.32299 11.9875 3.32695C11.8143 3.33211 11.6499 3.4045 11.5292 3.52877L8.00054 7.05742L4.4719 3.52877C4.40977 3.46491 4.33548 3.41415 4.2534 3.37948C4.17132 3.34482 4.08313 3.32696 3.99403 3.32695Z"})),Ge=a({}),Qe=({children:e,defaultParams:a})=>t.createElement(Ge.Provider,{value:{defaultParams:a}},e),Xe=e=>{const{data:{userInfo:t,env:{togetherBasePath:a}}}=o(p),{defaultParams:n}=o(Ge)||{},i=null==t?void 0:t.id,l=t&&"number"==typeof t.communities_interacted&&0===t.communities_interacted;return{authActionWrapper:(t,o)=>{const r=Object.assign(Object.assign(Object.assign({},n),e),o);if(!i||l){i||Be(u),(null==r?void 0:r._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(r._joinCommunityIds).filter(Boolean))))),null==r||delete r._joinCommunityIds),(null==r?void 0:r._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(r._joinTopicIds).filter(Boolean))))),null==r||delete r._joinTopicIds);const e=(null==r?void 0:r._location)||window.location.href;return null==r||delete r._location,window.location.href=g(e,r,a),null}return t&&t()},params:Object.assign(Object.assign({},n),e)}},Ke=Re.div`
2
2
  .link-info-container {
3
3
  padding: 0.5rem 1rem;
4
4
  background: ${e=>e.color||"#f4faff"};
@@ -1,4 +1,4 @@
1
- import{a as e}from"./tslib.es6-16e6bdc9.js";import t,{useState as i,useCallback as a,useMemo as o,useEffect as n,useRef as s,useReducer as l}from"react";import{u as r}from"./useTranslations-78d82c21.js";import c from"lodash/debounce";import{I as d,a as p,f as u,M as h,g,C as m}from"./constants-d7aa1c1c.js";import{I as C}from"./index-77b369f0.js";import b,{createGlobalStyle as y}from"styled-components";import{T as f}from"./Plus-0795a68c.js";import{t as v}from"./theme-dab2950f.js";import x from"lodash/shuffle";import{a as S}from"./useOutsideClick-a88e81d5.js";import{M as E}from"./utils-f69a5c66.js";import w from"react-loading-skeleton";import{P as L}from"./paths-be7ff55f.js";import{Skeleton as k,Input as O,Divider as j,Tabs as I,Flex as $,Button as F}from"@mantine/core";import{U as M,d as R}from"./index-1c858659.js";import{g as T,s as P,d as N}from"./cookieHelper-2017148d.js";import{C as A}from"./index-86e92cc0.js";import{I as B}from"./index-36467b48.js";import{C as D}from"./ChevronDown-cc35428e.js";import V from"string-format";function K(){const[e,t]=i((()=>{if("undefined"==typeof window)return"unset";if(T(M))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[n,s]=i((()=>{if("undefined"==typeof window)return null;const e=T(M);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=a((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const i={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};P(M,JSON.stringify(i),{minutes:15}),s(i),t("granted")}),(()=>{N(M),t("denied")}))}),[]);return o((()=>({geoLocationPermission:e,geoLocationCoordinates:n,requestGeoLocation:l})),[e,n])}const z=b.div``,_=b.div`
1
+ import{a as e}from"./tslib.es6-8314c624.js";import t,{useState as i,useCallback as a,useMemo as o,useEffect as n,useRef as s,useReducer as l}from"react";import{u as r}from"./useTranslations-2745f276.js";import c from"lodash/debounce";import{I as d,a as p,f as u,M as h,g,C as m}from"./constants-08ac43d9.js";import{I as C}from"./index-bb8a9468.js";import b,{createGlobalStyle as y}from"styled-components";import{T as f}from"./Plus-b8d1c834.js";import{t as v}from"./theme-9d4ebb16.js";import x from"lodash/shuffle";import{a as S}from"./useOutsideClick-a2f1623b.js";import{M as E}from"./utils-fe6d1c2a.js";import w from"react-loading-skeleton";import{P as L}from"./paths-d9409117.js";import{Skeleton as k,Input as O,Divider as j,Tabs as I,Flex as $,Button as F}from"@mantine/core";import{U as M,d as R}from"./index-2a84b189.js";import{g as T,s as P,d as N}from"./cookieHelper-edb1014c.js";import{C as A}from"./index-2b034e6c.js";import{I as B}from"./index-19d94ba6.js";import{C as D}from"./ChevronDown-1e60e314.js";import V from"string-format";function K(){const[e,t]=i((()=>{if("undefined"==typeof window)return"unset";if(T(M))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[n,s]=i((()=>{if("undefined"==typeof window)return null;const e=T(M);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=a((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const i={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};P(M,JSON.stringify(i),{minutes:15}),s(i),t("granted")}),(()=>{N(M),t("denied")}))}),[]);return o((()=>({geoLocationPermission:e,geoLocationCoordinates:n,requestGeoLocation:l})),[e,n])}const z=b.div``,_=b.div`
2
2
  --searchbar-z-index: 305;
3
3
  &[data-is-modal='true'] {
4
4
  position: fixed;
@@ -1 +1 @@
1
- export{a as BabyGrowthChartDuration,B as BabyGrowthChartType,b as BabyGrowthResultTab,E as ELEMENT_CONTROL_INPUT_TYPE,F as FULL_KEY_ADDRESS,G as Gender,L as LOCALE,f as NodeActionType,d as NodeFinalTypes,e as NodeIntentType,g as NodeMultipleOptions,N as NodePosition,c as NodeType,O as OnboardingStep,S as SubotType}from"./Subot-e1ee8861.js";
1
+ export{a as BabyGrowthChartDuration,B as BabyGrowthChartType,b as BabyGrowthResultTab,E as ELEMENT_CONTROL_INPUT_TYPE,F as FULL_KEY_ADDRESS,G as Gender,L as LOCALE,f as NodeActionType,d as NodeFinalTypes,e as NodeIntentType,g as NodeMultipleOptions,N as NodePosition,c as NodeType,O as OnboardingStep,S as SubotType}from"./Subot-76fd0d33.js";