@hhgtech/hhg-components 1.29.79 → 1.29.81

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 (346) hide show
  1. package/build/{index-aefa01a7.js → WhatsApp-82018096.js} +24 -276
  2. package/build/adapters.js +17 -16
  3. package/build/atoms.js +100 -0
  4. package/build/babyGrowth.js +162 -164
  5. package/build/cache.js +3 -3
  6. package/build/care.js +18 -18
  7. package/build/components.js +179 -163
  8. package/build/{constants-94957c92.js → constants-3a475a22.js} +2 -2
  9. package/build/constants-513a9a41.js +318 -0
  10. package/build/{index-6036e2a0.js → constants-936f45e9.js} +0 -136
  11. package/build/constants-dd16fb4d.js +425 -0
  12. package/build/constants.js +3 -3
  13. package/build/{core-279a7b4f.js → core-9e44ee99.js} +2 -2
  14. package/build/{index-5033f644.js → dataTransform-6b4d7a4e.js} +85 -134
  15. package/build/{dataTransform-1c96db25.js → dataTransform-c1701cbd.js} +1 -1
  16. package/build/defaultClassWrapper-e87ca8ef.js +21 -0
  17. package/build/ecom.js +5 -5
  18. package/build/esm/WhatsApp-7d3732e2.js +46 -0
  19. package/build/esm/adapters.js +17 -16
  20. package/build/esm/atoms.js +57 -0
  21. package/build/esm/babyGrowth.js +87 -89
  22. package/build/esm/cache.js +3 -3
  23. package/build/esm/care.js +17 -17
  24. package/build/esm/components.js +91 -75
  25. package/build/esm/constants-6bdb97a8.js +417 -0
  26. package/build/esm/constants-71d9f33b.js +307 -0
  27. package/build/esm/{constants-78d473b4.js → constants-ebf80e5f.js} +2 -2
  28. package/build/esm/{index-122dd8ee.js → constants-f77fc231.js} +1 -127
  29. package/build/esm/constants.js +3 -3
  30. package/build/esm/{core-2715a7c7.js → core-c72e0ff5.js} +2 -2
  31. package/build/esm/{index-f672661d.js → dataTransform-3e8e25ba.js} +87 -135
  32. package/build/esm/{dataTransform-24bd11e8.js → dataTransform-6c032113.js} +1 -1
  33. package/build/esm/defaultClassWrapper-31caf23b.js +15 -0
  34. package/build/esm/ecom.js +5 -5
  35. package/build/esm/fixedBottomAdBlock-13ed4a34.js +3474 -0
  36. package/build/esm/footer.js +18 -18
  37. package/build/esm/gAssets.js +4 -4
  38. package/build/esm/{getDynamicHealthTool-d805169a.js → getDynamicHealthTool-7681e43a.js} +4 -4
  39. package/build/esm/{getSocialList-c8edb201.js → getSocialList-e8142513.js} +5 -6
  40. package/build/esm/healthToolsForm.js +40 -0
  41. package/build/esm/healthToolsForms.d.ts +7 -0
  42. package/build/esm/hooks.js +17 -17
  43. package/build/esm/i18n.js +2 -2
  44. package/build/esm/i18nV2.js +2 -2
  45. package/build/esm/index-16514f4d.js +156 -0
  46. package/build/esm/{index-2a4e676a.js → index-1da2ca0b.js} +2 -2
  47. package/build/esm/{utils-45e55363.js → index-1ecbcf21.js} +71 -105
  48. package/build/esm/{index-e2d856fc.js → index-21eac858.js} +1043 -1232
  49. package/build/esm/{index-c5b3a3ba.js → index-2774583d.js} +35 -176
  50. package/build/esm/index-29d04985.js +14 -0
  51. package/build/esm/index-2b9213cf.js +195 -0
  52. package/build/esm/index-3078acec.js +275 -0
  53. package/build/esm/index-376bee14.js +847 -0
  54. package/build/esm/index-38f50764.js +557 -0
  55. package/build/esm/index-42ad7763.js +95 -0
  56. package/build/esm/{index-47a90477.js → index-598ab51b.js} +5 -5
  57. package/build/esm/{index-ecb46439.js → index-69248434.js} +33 -5
  58. package/build/esm/index-6ac73f00.js +1114 -0
  59. package/build/esm/index-703205e3.js +54 -0
  60. package/build/esm/{index-7c6316a6.js → index-73301602.js} +2 -2
  61. package/build/esm/index-76d20d3f.js +100 -0
  62. package/build/esm/{index-ec38e886.js → index-780a08de.js} +2 -2
  63. package/build/esm/{index-92fd8661.js → index-78255d6c.js} +2 -2
  64. package/build/esm/{index-9b3bf9da.js → index-7cbe2a10.js} +12 -11
  65. package/build/esm/{index-5265867b.js → index-7e756cb8.js} +11 -10
  66. package/build/esm/{index.styled-eb1001c3.js → index-87a2ea8c.js} +21 -3
  67. package/build/esm/index-88ad2ca3.js +1681 -0
  68. package/build/esm/index-8952ceac.js +202 -0
  69. package/build/esm/index-996f7caf.js +148 -0
  70. package/build/esm/{index-272d3d01.js → index-9f1899f2.js} +4 -4
  71. package/build/esm/{index-63be4c47.js → index-b1bb27aa.js} +134 -62
  72. package/build/esm/{index-ef96fd13.js → index-bef3c9bd.js} +3 -3
  73. package/build/esm/{index-670d21ca.js → index-c1af3a8e.js} +13 -12
  74. package/build/esm/{index-b2eed677.js → index-c200bff6.js} +2 -2
  75. package/build/esm/{index-0de64a0f.js → index-cb4afb33.js} +6 -6
  76. package/build/esm/{index-741ce3ab.js → index-cdac57da.js} +1 -1
  77. package/build/esm/{index-49d819b7.js → index-cf6beac8.js} +2 -13
  78. package/build/esm/{index-ad5c69c9.js → index-d218b94e.js} +2 -2
  79. package/build/esm/index-d6201fa4.js +42 -0
  80. package/build/esm/index-e104ad21.js +335 -0
  81. package/build/esm/index-e26514ee.js +262 -0
  82. package/build/esm/index-f27edf45.js +130 -0
  83. package/build/esm/index.css +1 -1
  84. package/build/esm/index.js +89 -73
  85. package/build/esm/lead.js +23 -33
  86. package/build/esm/logoIcon-d93bc56e.js +104 -0
  87. package/build/esm/mantine.js +22 -20
  88. package/build/esm/misc.js +21 -21
  89. package/build/esm/molecules.js +88 -0
  90. package/build/esm/navigation.js +37 -37
  91. package/build/esm/onboardingV2.js +26 -35
  92. package/build/esm/organisms.js +57 -0
  93. package/build/esm/pwg.js +19 -19
  94. package/build/esm/{routing-e7ff0e08.js → routing-bebdc8b7.js} +2 -2
  95. package/build/esm/subot.js +31 -27
  96. package/build/esm/surveyOrPremiumBanner.js +45 -0
  97. package/build/esm/surveyQuestionCard.js +13 -0
  98. package/build/esm/surveyThankyouCard-bf6080eb.js +446 -0
  99. package/build/esm/together.js +35 -37
  100. package/build/esm/{types-37f2c5d4.js → types-2580132c.js} +28 -30
  101. package/build/esm/{types-ce933060.js → types-be952df2.js} +13 -13
  102. package/build/esm/types.js +1 -1
  103. package/build/esm/{useCategory-8e1387db.js → useCategory-8f109eb7.js} +5 -5
  104. package/build/esm/{useHealthToolCache-28115f15.js → useHealthToolCache-d97dfa00.js} +2 -2
  105. package/build/esm/{useMantineLocale-bcfdeb0c.js → useMantineLocale-4fb67342.js} +3 -3
  106. package/build/esm/{usePlacesAutocomplete-837f491d.js → usePlacesAutocomplete-fe2e4cbe.js} +1 -1
  107. package/build/esm/{useTranslations-b8c49c9b.js → useTranslations-fbf6a6ab.js} +1 -1
  108. package/build/esm/{utils-86ef2283.js → utils-cef111b6.js} +1 -1
  109. package/build/esm/{defaultClassWrapper-fcdfc7a3.js → utils-d5a0b58f.js} +60 -408
  110. package/build/esm/vaccination.js +18 -29
  111. package/build/fixedBottomAdBlock-0d4379d1.js +3521 -0
  112. package/build/footer.js +18 -18
  113. package/build/gAssets.js +4 -4
  114. package/build/{getDynamicHealthTool-27b332df.js → getDynamicHealthTool-2a92e1a5.js} +4 -4
  115. package/build/{getSocialList-d16604ba.js → getSocialList-97e7bcc1.js} +8 -9
  116. package/build/healthToolsForm.js +54 -0
  117. package/build/healthToolsForms.d.ts +7 -0
  118. package/build/hooks.js +17 -17
  119. package/build/i18n.js +1 -1
  120. package/build/i18nV2.js +1 -1
  121. package/build/index-058b3c0f.js +1127 -0
  122. package/build/{index-e914bc7c.js → index-05f106c2.js} +1050 -1240
  123. package/build/index-06fa8444.js +102 -0
  124. package/build/{index-e932125b.js → index-1efa7d84.js} +2 -2
  125. package/build/index-247a9eb2.js +1693 -0
  126. package/build/{index-4f5ce9db.js → index-264eeddd.js} +2 -2
  127. package/build/index-3d0d22b3.js +565 -0
  128. package/build/index-3dcb9bc6.js +61 -0
  129. package/build/{index-aff82754.js → index-4af08ec2.js} +2 -2
  130. package/build/index-6acb08c0.js +343 -0
  131. package/build/{index-1b7f73fa.js → index-6bc3f8c3.js} +5 -5
  132. package/build/{index-a903fdaa.js → index-6c27b627.js} +58 -201
  133. package/build/index-73cde644.js +156 -0
  134. package/build/{index-65765b10.js → index-77a2b9ee.js} +1 -1
  135. package/build/{index-dbaa00eb.js → index-7c1dc717.js} +12 -11
  136. package/build/index-7da7b531.js +107 -0
  137. package/build/{index-8c04d412.js → index-838b0f95.js} +6 -6
  138. package/build/index-a7de42d1.js +202 -0
  139. package/build/{index-517f6538.js → index-a86ea1b6.js} +2 -2
  140. package/build/index-aa818139.js +49 -0
  141. package/build/{index-4cd9cc62.js → index-b773bc3d.js} +4 -4
  142. package/build/index-bef2bc73.js +136 -0
  143. package/build/{utils-120200ad.js → index-c225ef22.js} +76 -120
  144. package/build/{index-42621fec.js → index-c2900d8c.js} +2 -2
  145. package/build/index-cb0544e5.js +866 -0
  146. package/build/{index-5aac5fb6.js → index-d34cd464.js} +2 -2
  147. package/build/{index-4026b8c5.js → index-d5b4089d.js} +141 -68
  148. package/build/index-dba2e361.js +20 -0
  149. package/build/{index-586f0a4f.js → index-dcbd8bf3.js} +37 -9
  150. package/build/index-dd1392e3.js +167 -0
  151. package/build/{index-875d81d3.js → index-def9867a.js} +11 -10
  152. package/build/index-e0bf03ac.js +277 -0
  153. package/build/index-ee964d3c.js +209 -0
  154. package/build/index-f10efb61.js +270 -0
  155. package/build/{index-701c74a1.js → index-f1f4fbb9.js} +13 -12
  156. package/build/{index-27c71242.js → index-f28c47ce.js} +1 -13
  157. package/build/{index-e39f5b25.js → index-f6575703.js} +2 -2
  158. package/build/{index.styled-8c14cf6c.js → index-fe7345fa.js} +22 -4
  159. package/build/index.css +1 -1
  160. package/build/index.js +190 -174
  161. package/build/lead.js +29 -39
  162. package/build/logoIcon-ee9a5501.js +110 -0
  163. package/build/mantine.js +24 -23
  164. package/build/misc.js +21 -21
  165. package/build/molecules.js +149 -0
  166. package/build/navigation.js +37 -37
  167. package/build/onboardingV2.js +45 -54
  168. package/build/organisms.js +74 -0
  169. package/build/pwg.js +19 -19
  170. package/build/{routing-40d4f591.js → routing-f6d54205.js} +2 -2
  171. package/build/subot.js +113 -109
  172. package/build/surveyOrPremiumBanner.js +53 -0
  173. package/build/surveyQuestionCard.js +22 -0
  174. package/build/surveyThankyouCard-ead6b355.js +454 -0
  175. package/build/together.js +41 -43
  176. package/build/{types-692f1edc.js → types-4ba4268f.js} +49 -49
  177. package/build/{types-ade68559.js → types-6c5643a2.js} +203 -205
  178. package/build/types.js +1 -1
  179. package/build/{useCategory-bbe47716.js → useCategory-e2c91f59.js} +5 -5
  180. package/build/{useHealthToolCache-80cb8990.js → useHealthToolCache-2a53367b.js} +2 -2
  181. package/build/{useMantineLocale-97b962eb.js → useMantineLocale-a4f0c61d.js} +3 -3
  182. package/build/{usePlacesAutocomplete-99a452c0.js → usePlacesAutocomplete-c76d0caf.js} +1 -1
  183. package/build/{useTranslations-76f64595.js → useTranslations-200168a3.js} +1 -1
  184. package/build/{defaultClassWrapper-feaae206.js → utils-95d9832e.js} +68 -427
  185. package/build/{utils-dc4471cf.js → utils-af695515.js} +1 -1
  186. package/build/vaccination.js +58 -69
  187. package/package.json +1 -1
  188. package/build/Instagram-5735e971.js +0 -32
  189. package/build/esm/Instagram-98c713bc.js +0 -26
  190. package/build/esm/index-18a80466.js +0 -33
  191. package/build/esm/index-1f6890ad.js +0 -1086
  192. package/build/esm/index-40fc06d9.js +0 -298
  193. package/build/esm/index-47d01c08.js +0 -23
  194. package/build/esm/index-687f9ee4.js +0 -71
  195. package/build/esm/index-aeb4ceda.js +0 -7245
  196. package/build/esm/index.styles-bff4ac47.js +0 -1322
  197. package/build/index-561d71d9.js +0 -7324
  198. package/build/index-5ff91adf.js +0 -39
  199. package/build/index-74b64958.js +0 -77
  200. package/build/index-84f7ce80.js +0 -30
  201. package/build/index-c9e324de.js +0 -1100
  202. package/build/index.styles-61201019.js +0 -1361
  203. /package/build/{BMI_BOYS.percentile.monthly-b2166d34.js → BMI_BOYS.percentile.monthly-71fb1c9f.js} +0 -0
  204. /package/build/{BMI_BOYS.percentile.weekly-8b80b329.js → BMI_BOYS.percentile.weekly-b2b344a7.js} +0 -0
  205. /package/build/{BMI_BOYS.percentile.yearly-233e699b.js → BMI_BOYS.percentile.yearly-031ddade.js} +0 -0
  206. /package/build/{BMI_BOYS.zscore.monthly-17ed8572.js → BMI_BOYS.zscore.monthly-bb1f9962.js} +0 -0
  207. /package/build/{BMI_BOYS.zscore.weekly-36c9735b.js → BMI_BOYS.zscore.weekly-d6198d53.js} +0 -0
  208. /package/build/{BMI_BOYS.zscore.yearly-e43d7246.js → BMI_BOYS.zscore.yearly-48255337.js} +0 -0
  209. /package/build/{BMI_GIRLS.percentile.monthly-94ddebb1.js → BMI_GIRLS.percentile.monthly-e3e284ee.js} +0 -0
  210. /package/build/{BMI_GIRLS.percentile.weekly-dc53474b.js → BMI_GIRLS.percentile.weekly-9f2d3977.js} +0 -0
  211. /package/build/{BMI_GIRLS.percentile.yearly-897e47f7.js → BMI_GIRLS.percentile.yearly-c79f34ce.js} +0 -0
  212. /package/build/{BMI_GIRLS.zscore.monthly-44dcd046.js → BMI_GIRLS.zscore.monthly-11092df0.js} +0 -0
  213. /package/build/{BMI_GIRLS.zscore.weekly-6e9400e5.js → BMI_GIRLS.zscore.weekly-5c375d2b.js} +0 -0
  214. /package/build/{BMI_GIRLS.zscore.yearly-3cd8c63d.js → BMI_GIRLS.zscore.yearly-adbba8e3.js} +0 -0
  215. /package/build/{ChevronDown-2775b53a.js → ChevronDown-f7e25d61.js} +0 -0
  216. /package/build/{Close-f419724f.js → Close-36b0da99.js} +0 -0
  217. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-35ed4380.js → HEAD CIRCUM_BOYS.percentile.monthly-163b99ad.js} +0 -0
  218. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-c7dc736d.js → HEAD CIRCUM_BOYS.percentile.weekly-c9882014.js} +0 -0
  219. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-4c3b2318.js → HEAD CIRCUM_BOYS.percentile.yearly-9d2bc91e.js} +0 -0
  220. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-1f1cc8dd.js → HEAD CIRCUM_BOYS.zscore.monthly-1d2a215c.js} +0 -0
  221. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-67593063.js → HEAD CIRCUM_BOYS.zscore.weekly-1f139c91.js} +0 -0
  222. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-197c548c.js → HEAD CIRCUM_BOYS.zscore.yearly-ba15501b.js} +0 -0
  223. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-47029e7a.js → HEAD CIRCUM_GIRLS.percentile.monthly-a546201a.js} +0 -0
  224. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-faf6b122.js → HEAD CIRCUM_GIRLS.percentile.weekly-66cd5a7e.js} +0 -0
  225. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-f79cdc09.js → HEAD CIRCUM_GIRLS.percentile.yearly-9db3c653.js} +0 -0
  226. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-329fc5a0.js → HEAD CIRCUM_GIRLS.zscore.monthly-0405e2cb.js} +0 -0
  227. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-aa73a5d6.js → HEAD CIRCUM_GIRLS.zscore.weekly-b2cc3ad2.js} +0 -0
  228. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-5fdab08f.js → HEAD CIRCUM_GIRLS.zscore.yearly-3115f993.js} +0 -0
  229. /package/build/{HEIGHT_BOYS.percentile.monthly-190579ee.js → HEIGHT_BOYS.percentile.monthly-35138a98.js} +0 -0
  230. /package/build/{HEIGHT_BOYS.percentile.weekly-d902f59f.js → HEIGHT_BOYS.percentile.weekly-0216c35b.js} +0 -0
  231. /package/build/{HEIGHT_BOYS.percentile.yearly-87254461.js → HEIGHT_BOYS.percentile.yearly-f698e45d.js} +0 -0
  232. /package/build/{HEIGHT_BOYS.zscore.monthly-c741a8bb.js → HEIGHT_BOYS.zscore.monthly-01195728.js} +0 -0
  233. /package/build/{HEIGHT_BOYS.zscore.weekly-c0b2c6c0.js → HEIGHT_BOYS.zscore.weekly-993e9cf2.js} +0 -0
  234. /package/build/{HEIGHT_BOYS.zscore.yearly-1a506923.js → HEIGHT_BOYS.zscore.yearly-fee3ed69.js} +0 -0
  235. /package/build/{HEIGHT_GIRLS.percentile.monthly-9b2b4c93.js → HEIGHT_GIRLS.percentile.monthly-27b2474a.js} +0 -0
  236. /package/build/{HEIGHT_GIRLS.percentile.weekly-5ddecf9a.js → HEIGHT_GIRLS.percentile.weekly-77bff236.js} +0 -0
  237. /package/build/{HEIGHT_GIRLS.percentile.yearly-fa289855.js → HEIGHT_GIRLS.percentile.yearly-6200a720.js} +0 -0
  238. /package/build/{HEIGHT_GIRLS.zscore.monthly-c9db2d0d.js → HEIGHT_GIRLS.zscore.monthly-94978e64.js} +0 -0
  239. /package/build/{HEIGHT_GIRLS.zscore.weekly-c38c0951.js → HEIGHT_GIRLS.zscore.weekly-7951beb1.js} +0 -0
  240. /package/build/{HEIGHT_GIRLS.zscore.yearly-d78a2a93.js → HEIGHT_GIRLS.zscore.yearly-c2eca714.js} +0 -0
  241. /package/build/{Visible-34df6ee7.js → Visible-eee51ba6.js} +0 -0
  242. /package/build/{WEIGHT_BOYS.percentile.monthly-7a5f3721.js → WEIGHT_BOYS.percentile.monthly-6a6f901b.js} +0 -0
  243. /package/build/{WEIGHT_BOYS.percentile.weekly-d86f23fa.js → WEIGHT_BOYS.percentile.weekly-737fb867.js} +0 -0
  244. /package/build/{WEIGHT_BOYS.percentile.yearly-c154651c.js → WEIGHT_BOYS.percentile.yearly-7772b5e5.js} +0 -0
  245. /package/build/{WEIGHT_BOYS.zscore.monthly-8f39952a.js → WEIGHT_BOYS.zscore.monthly-8db2e7d6.js} +0 -0
  246. /package/build/{WEIGHT_BOYS.zscore.weekly-3118363f.js → WEIGHT_BOYS.zscore.weekly-ddd37c1a.js} +0 -0
  247. /package/build/{WEIGHT_BOYS.zscore.yearly-d463cfe7.js → WEIGHT_BOYS.zscore.yearly-332a8f7b.js} +0 -0
  248. /package/build/{WEIGHT_GIRLS.percentile.monthly-4d025f09.js → WEIGHT_GIRLS.percentile.monthly-3edad688.js} +0 -0
  249. /package/build/{WEIGHT_GIRLS.percentile.weekly-89f1f560.js → WEIGHT_GIRLS.percentile.weekly-f113a82a.js} +0 -0
  250. /package/build/{WEIGHT_GIRLS.percentile.yearly-e79630f6.js → WEIGHT_GIRLS.percentile.yearly-95afbeaf.js} +0 -0
  251. /package/build/{WEIGHT_GIRLS.zscore.monthly-64bd7db5.js → WEIGHT_GIRLS.zscore.monthly-d27c4bd4.js} +0 -0
  252. /package/build/{WEIGHT_GIRLS.zscore.weekly-628674eb.js → WEIGHT_GIRLS.zscore.weekly-2b113519.js} +0 -0
  253. /package/build/{WEIGHT_GIRLS.zscore.yearly-5bb1b712.js → WEIGHT_GIRLS.zscore.yearly-c82b04db.js} +0 -0
  254. /package/build/{animation-21a29164.js → animation-e1375a3b.js} +0 -0
  255. /package/build/{cart-cd1f9e9e.js → cart-67147d06.js} +0 -0
  256. /package/build/{cookieHelper-6fd4e238.js → cookieHelper-17491ce8.js} +0 -0
  257. /package/build/{doctor-15fac518.js → doctor-17b525f8.js} +0 -0
  258. /package/build/esm/{BMI_BOYS.percentile.monthly-bc430a4a.js → BMI_BOYS.percentile.monthly-7c9d4923.js} +0 -0
  259. /package/build/esm/{BMI_BOYS.percentile.weekly-404f8241.js → BMI_BOYS.percentile.weekly-c410294a.js} +0 -0
  260. /package/build/esm/{BMI_BOYS.percentile.yearly-cc6a1393.js → BMI_BOYS.percentile.yearly-695a4fe2.js} +0 -0
  261. /package/build/esm/{BMI_BOYS.zscore.monthly-e94926d8.js → BMI_BOYS.zscore.monthly-9fb9f281.js} +0 -0
  262. /package/build/esm/{BMI_BOYS.zscore.weekly-8d1da103.js → BMI_BOYS.zscore.weekly-d2109e4b.js} +0 -0
  263. /package/build/esm/{BMI_BOYS.zscore.yearly-94f8b37e.js → BMI_BOYS.zscore.yearly-bfa5361b.js} +0 -0
  264. /package/build/esm/{BMI_GIRLS.percentile.monthly-356bd71d.js → BMI_GIRLS.percentile.monthly-f5f60596.js} +0 -0
  265. /package/build/esm/{BMI_GIRLS.percentile.weekly-72979d47.js → BMI_GIRLS.percentile.weekly-26e4e864.js} +0 -0
  266. /package/build/esm/{BMI_GIRLS.percentile.yearly-729c84f5.js → BMI_GIRLS.percentile.yearly-5a2b297d.js} +0 -0
  267. /package/build/esm/{BMI_GIRLS.zscore.monthly-6dea8018.js → BMI_GIRLS.zscore.monthly-4e80bed5.js} +0 -0
  268. /package/build/esm/{BMI_GIRLS.zscore.weekly-da7a5d01.js → BMI_GIRLS.zscore.weekly-03b79f0b.js} +0 -0
  269. /package/build/esm/{BMI_GIRLS.zscore.yearly-0b0a5cae.js → BMI_GIRLS.zscore.yearly-822ed949.js} +0 -0
  270. /package/build/esm/{ChevronDown-5f18ca6b.js → ChevronDown-74267eb8.js} +0 -0
  271. /package/build/esm/{Close-87c65991.js → Close-372aa467.js} +0 -0
  272. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-1c910c23.js → HEAD CIRCUM_BOYS.percentile.monthly-21b04c4c.js} +0 -0
  273. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-2da702f0.js → HEAD CIRCUM_BOYS.percentile.weekly-049a9d97.js} +0 -0
  274. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-9fbeb684.js → HEAD CIRCUM_BOYS.percentile.yearly-a4bbbaba.js} +0 -0
  275. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-c93df36e.js → HEAD CIRCUM_BOYS.zscore.monthly-7cb348c6.js} +0 -0
  276. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-930f82b2.js → HEAD CIRCUM_BOYS.zscore.weekly-678a1a52.js} +0 -0
  277. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-f7523042.js → HEAD CIRCUM_BOYS.zscore.yearly-db81b17e.js} +0 -0
  278. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-d93ddef7.js → HEAD CIRCUM_GIRLS.percentile.monthly-cee33cd5.js} +0 -0
  279. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-2c7db258.js → HEAD CIRCUM_GIRLS.percentile.weekly-2cec19c3.js} +0 -0
  280. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-07202ee1.js → HEAD CIRCUM_GIRLS.percentile.yearly-5949e664.js} +0 -0
  281. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-fafa785c.js → HEAD CIRCUM_GIRLS.zscore.monthly-7c2bffab.js} +0 -0
  282. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-28b41bdb.js → HEAD CIRCUM_GIRLS.zscore.weekly-356dd00a.js} +0 -0
  283. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-c5b3bc8b.js → HEAD CIRCUM_GIRLS.zscore.yearly-e7b62215.js} +0 -0
  284. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-0a092d31.js → HEIGHT_BOYS.percentile.monthly-359c4335.js} +0 -0
  285. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-5827b445.js → HEIGHT_BOYS.percentile.weekly-a4d4acd3.js} +0 -0
  286. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-b88283c2.js → HEIGHT_BOYS.percentile.yearly-ec9a7f9b.js} +0 -0
  287. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-d275f074.js → HEIGHT_BOYS.zscore.monthly-12331258.js} +0 -0
  288. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-20bbf392.js → HEIGHT_BOYS.zscore.weekly-172054d3.js} +0 -0
  289. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-2eea3a9c.js → HEIGHT_BOYS.zscore.yearly-bb47a3be.js} +0 -0
  290. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-9ad65492.js → HEIGHT_GIRLS.percentile.monthly-c93c0b34.js} +0 -0
  291. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-898065d3.js → HEIGHT_GIRLS.percentile.weekly-f1f83097.js} +0 -0
  292. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-ac5ceb79.js → HEIGHT_GIRLS.percentile.yearly-ccee4e55.js} +0 -0
  293. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-327bdfa5.js → HEIGHT_GIRLS.zscore.monthly-caf5410c.js} +0 -0
  294. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-e25ddbc7.js → HEIGHT_GIRLS.zscore.weekly-b1e28b0e.js} +0 -0
  295. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-5531c2e3.js → HEIGHT_GIRLS.zscore.yearly-c3af35d3.js} +0 -0
  296. /package/build/esm/{Visible-70c720bb.js → Visible-3f9d7dca.js} +0 -0
  297. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-e199416b.js → WEIGHT_BOYS.percentile.monthly-8a4647df.js} +0 -0
  298. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-0965076a.js → WEIGHT_BOYS.percentile.weekly-a2a6adf1.js} +0 -0
  299. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-d04404d7.js → WEIGHT_BOYS.percentile.yearly-073df8b7.js} +0 -0
  300. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-be1ae0cd.js → WEIGHT_BOYS.zscore.monthly-bb9e73d2.js} +0 -0
  301. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-8b6854c4.js → WEIGHT_BOYS.zscore.weekly-ef32ce7a.js} +0 -0
  302. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-bd90b96f.js → WEIGHT_BOYS.zscore.yearly-6cc77688.js} +0 -0
  303. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-a4bb8428.js → WEIGHT_GIRLS.percentile.monthly-a4b518bc.js} +0 -0
  304. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-c288d810.js → WEIGHT_GIRLS.percentile.weekly-dcedaebb.js} +0 -0
  305. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-73a5ae07.js → WEIGHT_GIRLS.percentile.yearly-9e66577e.js} +0 -0
  306. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-cbcfdab4.js → WEIGHT_GIRLS.zscore.monthly-c07cb81f.js} +0 -0
  307. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-185ff336.js → WEIGHT_GIRLS.zscore.weekly-9c5c3e8e.js} +0 -0
  308. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-c31a0aee.js → WEIGHT_GIRLS.zscore.yearly-e99ce511.js} +0 -0
  309. /package/build/esm/{animation-9a3ca482.js → animation-0b2299dc.js} +0 -0
  310. /package/build/esm/{cart-5f758c33.js → cart-f961dadc.js} +0 -0
  311. /package/build/esm/{cookieHelper-9c963e09.js → cookieHelper-73ce3871.js} +0 -0
  312. /package/build/esm/{doctor-1d62f054.js → doctor-8a07ca44.js} +0 -0
  313. /package/build/esm/{index-931414db.js → index-782fed08.js} +0 -0
  314. /package/build/esm/{index-4687d5f8.js → index-b65a8764.js} +0 -0
  315. /package/build/esm/{index-90e772e4.js → index-c3264b34.js} +0 -0
  316. /package/build/esm/{index-877eed06.js → index-e3787b20.js} +0 -0
  317. /package/build/esm/{isProduction-d39b7ab2.js → isProduction-5684a28c.js} +0 -0
  318. /package/build/esm/{localizeNumberFormat-f838842a.js → localizeNumberFormat-42ae8d89.js} +0 -0
  319. /package/build/esm/{normalizeLink-65565106.js → normalizeLink-d6f57223.js} +0 -0
  320. /package/build/esm/{number-cad310d0.js → number-13f075cf.js} +0 -0
  321. /package/build/esm/{paths-8fc18a86.js → paths-49a813e7.js} +0 -0
  322. /package/build/esm/{theme-eb1b39f6.js → theme-f18c2351.js} +0 -0
  323. /package/build/esm/{translationsContext-dfb42bf8.js → translationsContext-f3d1a7bd.js} +0 -0
  324. /package/build/esm/{tslib.es6-efad16cf.js → tslib.es6-761239c7.js} +0 -0
  325. /package/build/esm/{useIsInit-f341c0e8.js → useIsInit-ee864235.js} +0 -0
  326. /package/build/esm/{useOutsideClick-e10b28ce.js → useOutsideClick-7451aa57.js} +0 -0
  327. /package/build/esm/{useScrollbarSize-594c61c3.js → useScrollbarSize-84bb5b47.js} +0 -0
  328. /package/build/esm/{useUniqueId-d5f7586b.js → useUniqueId-c23213b6.js} +0 -0
  329. /package/build/esm/{utils-0d590d5e.js → utils-f8761b9d.js} +0 -0
  330. /package/build/{index-d54d6c50.js → index-97ebd7e1.js} +0 -0
  331. /package/build/{index-d8c60733.js → index-ba3797bb.js} +0 -0
  332. /package/build/{index-d628859e.js → index-bba97c2e.js} +0 -0
  333. /package/build/{index-0b957c10.js → index-df5cd44b.js} +0 -0
  334. /package/build/{isProduction-7f7f09ad.js → isProduction-aa963bf9.js} +0 -0
  335. /package/build/{localizeNumberFormat-011e6f65.js → localizeNumberFormat-90d4f9d5.js} +0 -0
  336. /package/build/{normalizeLink-23b10200.js → normalizeLink-451ae6d8.js} +0 -0
  337. /package/build/{number-249e0e0b.js → number-c2338382.js} +0 -0
  338. /package/build/{paths-02f54499.js → paths-e0bbfce7.js} +0 -0
  339. /package/build/{theme-416e0fd4.js → theme-e4f7f487.js} +0 -0
  340. /package/build/{translationsContext-6f3c14ea.js → translationsContext-39528d2f.js} +0 -0
  341. /package/build/{tslib.es6-dd1fc8f2.js → tslib.es6-7e140b89.js} +0 -0
  342. /package/build/{useIsInit-bb64ffbf.js → useIsInit-38cec0c4.js} +0 -0
  343. /package/build/{useOutsideClick-bd35bba1.js → useOutsideClick-e579e1ac.js} +0 -0
  344. /package/build/{useScrollbarSize-57b0fd8a.js → useScrollbarSize-5a8be010.js} +0 -0
  345. /package/build/{useUniqueId-4bafae28.js → useUniqueId-8929fe5f.js} +0 -0
  346. /package/build/{utils-3a589c92.js → utils-524bda7c.js} +0 -0
@@ -0,0 +1,53 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ require('react');
6
+ require('@mantine/core');
7
+ var surveyOrPremiumBanner = require('./index-247a9eb2.js');
8
+ require('./utils-95d9832e.js');
9
+ require('./useTranslations-200168a3.js');
10
+ require('./index-1efa7d84.js');
11
+ require('./index-a86ea1b6.js');
12
+ require('date-fns/locale');
13
+ require('./index-df5cd44b.js');
14
+ require('./isProduction-aa963bf9.js');
15
+ require('./tslib.es6-7e140b89.js');
16
+ require('./index-05f106c2.js');
17
+ require('@hhgtech/icons/other');
18
+ require('@mantine/hooks');
19
+ require('./utils-524bda7c.js');
20
+ require('@emotion/styled');
21
+ require('@mantine/carousel');
22
+ require('./index-d34cd464.js');
23
+ require('./theme-e4f7f487.js');
24
+ require('./useMantineLocale-a4f0c61d.js');
25
+ require('dayjs');
26
+ require('./index-a7de42d1.js');
27
+ require('classnames');
28
+ require('./useUniqueId-8929fe5f.js');
29
+ require('@hhgtech/icons/core');
30
+ require('./routing-f6d54205.js');
31
+ require('@mantine/form');
32
+ require('@mantine/dates');
33
+ require('./translationsContext-39528d2f.js');
34
+ require('string-format');
35
+ require('./index-4af08ec2.js');
36
+ require('./useHealthToolCache-2a53367b.js');
37
+ require('./getDynamicHealthTool-2a92e1a5.js');
38
+ require('./normalizeLink-451ae6d8.js');
39
+ require('./core-9e44ee99.js');
40
+ require('./index-dcbd8bf3.js');
41
+ require('./WhatsApp-82018096.js');
42
+ require('./index-264eeddd.js');
43
+ require('js-cookie');
44
+ require('lodash/flatten');
45
+ require('lodash/uniqBy');
46
+ require('./index-e0bf03ac.js');
47
+ require('./cookieHelper-17491ce8.js');
48
+ require('slugify');
49
+ require('./constants-513a9a41.js');
50
+
51
+
52
+
53
+ exports.SurveyOrPremiumBanner = surveyOrPremiumBanner.SurveyOrPremiumBanner;
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var surveyThankyouCard = require('./surveyThankyouCard-ead6b355.js');
6
+ require('react');
7
+ require('./index-c2900d8c.js');
8
+ require('./tslib.es6-7e140b89.js');
9
+ require('./index-a7de42d1.js');
10
+ require('@mantine/core');
11
+ require('./index-d34cd464.js');
12
+ require('./utils-524bda7c.js');
13
+ require('./index-4af08ec2.js');
14
+ require('./index-dd1392e3.js');
15
+ require('@emotion/styled');
16
+ require('./theme-e4f7f487.js');
17
+ require('./index-aa818139.js');
18
+
19
+
20
+
21
+ exports.SurveyQuestionCard = surveyThankyouCard.SurveyQuestionCard;
22
+ exports.SurveyThankyouCard = surveyThankyouCard.SurveyThankyouCard;
@@ -0,0 +1,454 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var index$4 = require('./index-c2900d8c.js');
5
+ var index$1 = require('./index-d34cd464.js');
6
+ var index = require('./index-4af08ec2.js');
7
+ var index$3 = require('./index-dd1392e3.js');
8
+ var index$2 = require('./index-aa818139.js');
9
+ var styled = require('@emotion/styled');
10
+ var theme = require('./theme-e4f7f487.js');
11
+
12
+ function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
13
+
14
+ var React__default = /*#__PURE__*/_interopDefault(React);
15
+ var styled__default = /*#__PURE__*/_interopDefault(styled);
16
+
17
+ const StyledSurveyQuestionCard = styled__default["default"].div `
18
+ padding: 1rem;
19
+ background: ${theme.theme.colors.neutral100};
20
+ .survey-inner-wrapper {
21
+ padding: 1.25rem 1rem 1.5rem;
22
+ background: ${theme.theme.colors.white};
23
+ border-radius: ${theme.theme.borderRadius};
24
+ .survey-header {
25
+ border-bottom: 1px solid #dbdfe5;
26
+ margin-bottom: 12px;
27
+ .survey-header-text {
28
+ color: ${theme.theme.colors.gray500};
29
+ }
30
+ }
31
+
32
+ .survey-contact-submit {
33
+ width: 100%;
34
+ margin-bottom: 1.5rem;
35
+ }
36
+ .term-policy-container {
37
+ width: 70%;
38
+ min-width: 210px;
39
+ max-width: 100%;
40
+ margin: 0 auto 1.5rem;
41
+ text-align: center;
42
+ }
43
+
44
+ .survey-progress-wrapper {
45
+ width: calc(100% + 2rem);
46
+ height: 4px;
47
+ margin-bottom: 1rem;
48
+ margin-left: -1rem;
49
+ background: #e4e8ec;
50
+ .survey-progress {
51
+ width: 100%;
52
+ height: 100%;
53
+ background: #00b16a;
54
+ transform: scaleX(0);
55
+ transform-origin: left;
56
+ transition: transform ease-in-out 0.3s;
57
+ }
58
+ }
59
+
60
+ .survey-button-wrapper {
61
+ display: flex;
62
+ justify-content: flex-end;
63
+ button {
64
+ justify-content: center;
65
+ &[data-has-icon='true'] {
66
+ svg {
67
+ width: 10px;
68
+ height: 10px;
69
+ margin-right: 10px;
70
+ vertical-align: unset;
71
+ }
72
+ }
73
+ &.survey-next-button {
74
+ &[data-has-icon='true'] {
75
+ svg {
76
+ margin-right: 0;
77
+ margin-left: 10px;
78
+ }
79
+ }
80
+ }
81
+ }
82
+ &[data-center='true'] {
83
+ justify-content: center;
84
+ button:only-child {
85
+ width: 200px;
86
+ max-width: 80%;
87
+ }
88
+ }
89
+ .survey-prev-button {
90
+ margin-right: 0.5rem;
91
+ }
92
+ }
93
+ }
94
+ `;
95
+ const StyledSurveyRadio = styled__default["default"].div `
96
+ position: relative;
97
+ display: flex;
98
+ align-items: center;
99
+ cursor: pointer;
100
+
101
+ input {
102
+ position: relative;
103
+ width: 20px;
104
+ height: 20px;
105
+ flex-shrink: 0;
106
+ border: solid 1px ${theme.theme.colors.gray500};
107
+ margin-right: 8px;
108
+ border-radius: 100%;
109
+ cursor: inherit;
110
+ transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
111
+
112
+ &:hover,
113
+ &:active {
114
+ border-color: ${theme.theme.colors.primaryBase};
115
+ box-shadow: 0 0 2px 2px ${theme.theme.colors.primary600};
116
+ }
117
+
118
+ &:checked {
119
+ display: flex;
120
+ align-items: center;
121
+ justify-content: center;
122
+ border-color: ${theme.theme.colors.primaryBase};
123
+ &:after {
124
+ position: absolute;
125
+ top: 50%;
126
+ left: 50%;
127
+ width: 14px;
128
+ height: 14px;
129
+ //left: 3px;
130
+ //position: absolute;
131
+ //top: 4px;
132
+ background-color: ${theme.theme.colors.primaryBase};
133
+ border-radius: 50%;
134
+ content: '';
135
+ transform: translate(-50%, -50%);
136
+ }
137
+ }
138
+ }
139
+
140
+ label {
141
+ width: calc(100% - 24px);
142
+ cursor: inherit;
143
+ font-weight: ${theme.theme.sizes.fwRegular};
144
+ }
145
+
146
+ &[data-disabled='true'] {
147
+ color: ${theme.theme.colors.gray300};
148
+ cursor: not-allowed;
149
+ input {
150
+ border-color: ${theme.theme.colors.gray300};
151
+
152
+ &:hover {
153
+ border-color: ${theme.theme.colors.gray300};
154
+ box-shadow: none;
155
+ }
156
+ }
157
+ }
158
+
159
+ padding: 16px 20px;
160
+ border: 0.5px solid transparent;
161
+ background: #fafafa;
162
+ border-radius: ${theme.theme.borderRadius};
163
+ &[data-checked='true'] {
164
+ border: 0.5px solid #2d87f3;
165
+ background: #f7f9fc;
166
+ }
167
+ input {
168
+ border: solid 2px #737373;
169
+ margin-right: 0;
170
+ background: white;
171
+ &[type='checkbox'] {
172
+ &:checked {
173
+ border: 0;
174
+ background: ${theme.theme.colors.primaryBase}
175
+ url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z' fill='%232D87F3' stroke='%232D87F3' stroke-width='2'/%3E%3Cpath d='M15.5714 8L9.67857 14L7 11.2727' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A")
176
+ no-repeat center center;
177
+ &:after {
178
+ display: none;
179
+ }
180
+ }
181
+ }
182
+ }
183
+
184
+ &[data-has-image='true'] {
185
+ position: relative;
186
+ display: block;
187
+ padding: 12px;
188
+ input {
189
+ position: absolute;
190
+ top: 20px;
191
+ right: 20px;
192
+ }
193
+ .choice-image-wrapper {
194
+ position: relative;
195
+ padding-top: 56.25%;
196
+ margin-bottom: 0.75rem;
197
+ img {
198
+ position: absolute;
199
+ top: 0;
200
+ left: 0;
201
+ width: 100%;
202
+ height: 100%;
203
+ border-radius: ${theme.theme.borderRadius};
204
+ object-fit: cover;
205
+ }
206
+ }
207
+ }
208
+ `;
209
+ const StyledSurveyThankyouCard = styled__default["default"].div `
210
+ position: relative;
211
+ width: 100%;
212
+ padding-top: min(400px, 100%);
213
+ .survey-thankyou-wrapper-inner {
214
+ position: absolute;
215
+ top: 0;
216
+ left: 0;
217
+ display: flex;
218
+ width: 100%;
219
+ height: 100%;
220
+ flex-direction: column;
221
+ align-items: center;
222
+ justify-content: center;
223
+ .survey-thankyou-icon {
224
+ width: 36%;
225
+ max-height: 50%;
226
+ margin-bottom: 1.5rem;
227
+ }
228
+ .survey-thankyou-title {
229
+ margin-bottom: 1rem;
230
+ text-align: center;
231
+ }
232
+ .survey-thankyou-subtitle {
233
+ text-align: center;
234
+ > * {
235
+ text-align: center;
236
+ }
237
+ }
238
+ }
239
+ `;
240
+ const StyledSurveyQuestionContent = styled__default["default"].div `
241
+ .survey-question-text-wrapper {
242
+ margin-bottom: 24px;
243
+ .survey-question-title {
244
+ margin-bottom: 4px;
245
+ }
246
+ .survey-question-subtitle,
247
+ .survey-question-description {
248
+ color: ${theme.theme.colors.gray500};
249
+ }
250
+ }
251
+ .survey-question-image {
252
+ width: 100%;
253
+ margin-bottom: 12px;
254
+ border-radius: ${theme.theme.borderRadius};
255
+ }
256
+
257
+ .survey-question-answer-wrapper {
258
+ margin-bottom: 1.5rem;
259
+ .survey-question-options-wrapper {
260
+ display: grid;
261
+ grid-gap: 0.5rem;
262
+ grid-template-columns: 1fr;
263
+ &[data-has-image='true'] {
264
+ grid-gap: 0.8rem;
265
+ grid-template-columns: 1fr 1fr;
266
+ }
267
+ .survey-question-option-item {
268
+ label {
269
+ color: #262626;
270
+ font-size: 16px;
271
+ font-style: normal;
272
+ font-weight: normal;
273
+ line-height: 24px;
274
+ }
275
+ }
276
+ }
277
+ .survey-contact-input {
278
+ margin-bottom: 1rem;
279
+ &:first-child {
280
+ margin-top: 1rem;
281
+ }
282
+ label {
283
+ font-weight: 700;
284
+ }
285
+ input {
286
+ margin-top: 6px;
287
+ }
288
+ }
289
+ }
290
+ `;
291
+
292
+ const SurveyRadio = ({ size = 'small', label, name, checked, value, className, isDisabled = false, onChange, hasImage, inputType, image, }) => {
293
+ return (React__default["default"].createElement(StyledSurveyRadio, { "data-disabled": isDisabled, className: className, "data-size": size, "data-checked": checked, onClick: () => {
294
+ onChange(value);
295
+ }, "data-has-image": hasImage },
296
+ hasImage && (React__default["default"].createElement("div", { className: "choice-image-wrapper" }, image && React__default["default"].createElement("img", { src: image, loading: "lazy" }))),
297
+ React__default["default"].createElement("label", { onClick: (e) => {
298
+ e.preventDefault();
299
+ }, htmlFor: `${name}-${value}` }, label),
300
+ React__default["default"].createElement("input", { type: inputType, checked: checked, name: name, id: `${name}-${value}`, value: value, readOnly: true })));
301
+ };
302
+
303
+ const SurveyQuestionContent = ({ question, description, onOptionsChange, onTextOptionsChange, style, className, }) => {
304
+ const { type, title, subtitle, image, textOptions: textOptionsProps, options, name, is_multi_select, } = question;
305
+ const optionHasImage = !!(options === null || options === void 0 ? void 0 : options.some((o) => o.image));
306
+ const [selectedOptions, setSelectedOptions] = React.useState([]);
307
+ const [textOptions, setTextOptions] = React.useState(() => (textOptionsProps === null || textOptionsProps === void 0 ? void 0 : textOptionsProps.slice()) || []);
308
+ React.useEffect(() => {
309
+ onOptionsChange && onOptionsChange(selectedOptions.slice());
310
+ }, [!!onOptionsChange, selectedOptions]);
311
+ React.useEffect(() => {
312
+ onTextOptionsChange && onTextOptionsChange(textOptions);
313
+ }, [!!onTextOptionsChange, textOptions]);
314
+ return (React__default["default"].createElement(StyledSurveyQuestionContent, { className: className, style: style },
315
+ React__default["default"].createElement("div", { className: "survey-question-text-wrapper" },
316
+ title && (React__default["default"].createElement(index.Heading, { "data-nosubtitle": !subtitle, className: "survey-question-title", tag: "h4" }, title)),
317
+ subtitle && (React__default["default"].createElement(index$1.Text, { className: "survey-question-subtitle", size: "p2" }, subtitle)),
318
+ description && (React__default["default"].createElement(index$1.Text, { className: "survey-question-description", size: "p2" }, description))),
319
+ image && (React__default["default"].createElement("img", { src: image, className: "survey-question-image", loading: "lazy" })),
320
+ React__default["default"].createElement("div", { className: "survey-question-answer-wrapper" },
321
+ type === 'radio' && (React__default["default"].createElement("div", { "data-has-image": optionHasImage, className: "survey-question-options-wrapper" }, options.map((option) => {
322
+ var _a;
323
+ return (React__default["default"].createElement(SurveyRadio, { inputType: "radio", label: option.label, name: name, key: `${name}-${option.value}`, checked: ((_a = selectedOptions[0]) === null || _a === void 0 ? void 0 : _a.value) === option.value, value: option.value, onChange: (v) => {
324
+ setSelectedOptions([options.find((o) => o.value === v)]);
325
+ }, className: "survey-question-option-item", image: option.image, hasImage: optionHasImage }));
326
+ }))),
327
+ type === 'checkbox' && (React__default["default"].createElement("div", { "data-has-image": optionHasImage, className: "survey-question-options-wrapper" }, options.map((option) => (React__default["default"].createElement(SurveyRadio, { inputType: "checkbox", label: option.label, name: name, key: `${name}-${option.value}`, checked: !!selectedOptions.find((o) => o.value === option.value), value: option.value, onChange: () => {
328
+ const foundIndex = selectedOptions.findIndex((o) => o.value === option.value);
329
+ if (foundIndex >= 0) {
330
+ setSelectedOptions((_old) => {
331
+ _old.splice(foundIndex, 1);
332
+ return _old.slice();
333
+ });
334
+ }
335
+ else {
336
+ if (!is_multi_select) {
337
+ setSelectedOptions([option]);
338
+ }
339
+ else {
340
+ setSelectedOptions((_old) => _old.concat(option).slice());
341
+ }
342
+ }
343
+ }, className: "survey-question-option-item survey-option-radio", image: option.image, hasImage: optionHasImage }))))),
344
+ type === 'textbox' &&
345
+ textOptions.map((option, index) => option.isTextArea ? (React__default["default"].createElement(index$2.TextArea, { key: index, placeholder: option.placeholder, height: '150px', value: option.value, onChange: (t) => setTextOptions((_o) => {
346
+ _o[index].value = t;
347
+ return _o.slice();
348
+ }) })) : (React__default["default"].createElement(index$3.Input, { key: index, value: option.value, name: option.name, size: "md", className: "survey-contact-input", label: option.label, placeholder: option.placeholder, onChange: (v) => {
349
+ setTextOptions((_o) => {
350
+ _o[index].value = v;
351
+ return _o.slice();
352
+ });
353
+ }, type: option.type }))))));
354
+ };
355
+
356
+ var NodeMultipleOptions;
357
+ (function (NodeMultipleOptions) {
358
+ NodeMultipleOptions[NodeMultipleOptions["UNLIMITED"] = 0] = "UNLIMITED";
359
+ NodeMultipleOptions[NodeMultipleOptions["EXACT_NUMBER"] = 1] = "EXACT_NUMBER";
360
+ NodeMultipleOptions[NodeMultipleOptions["RANGE"] = 2] = "RANGE";
361
+ })(NodeMultipleOptions || (NodeMultipleOptions = {}));
362
+ const SurveyQuestionCard = ({ className, headerText, style, question, termAndPolicyText, prevText, nextText, isContactForm, isDisableNext, isDisablePrev, onPrevClick, onNextClick, isSubmitButton, isButtonCenter, progress, descriptionText, }) => {
363
+ var _a, _b, _c;
364
+ // const [currentQuestionIndex, setQuestionIndex] = useState(0)
365
+ const [answer, setAnswer] = React.useState([]);
366
+ const { is_multi_select, multi_select_option, from, to } = question;
367
+ // const currentQuestion = questions[currentQuestionIndex]
368
+ // const currentAnswer = answers[currentQuestionIndex]
369
+ const currentType = question === null || question === void 0 ? void 0 : question.type;
370
+ const submitDisabled = (currentType === 'checkbox' &&
371
+ ((_a = question.options) === null || _a === void 0 ? void 0 : _a.length) &&
372
+ (!answer ||
373
+ answer.length === 0 ||
374
+ (is_multi_select &&
375
+ multi_select_option === NodeMultipleOptions.RANGE &&
376
+ (answer.length < from || answer.length > to)) ||
377
+ (is_multi_select &&
378
+ multi_select_option === NodeMultipleOptions.EXACT_NUMBER &&
379
+ answer.length !== from))) ||
380
+ (currentType === 'radio' &&
381
+ ((_b = question.options) === null || _b === void 0 ? void 0 : _b.length) &&
382
+ (!answer || answer.length === 0)) ||
383
+ (currentType === 'textbox' &&
384
+ ((_c = question.textOptions) === null || _c === void 0 ? void 0 : _c.length) &&
385
+ (answer.length < question.textOptions.length ||
386
+ answer.some((a) => !a.value)));
387
+ const normalizedProgress = typeof progress === 'number'
388
+ ? progress > 1
389
+ ? 1
390
+ : progress < 0
391
+ ? 0
392
+ : Number(progress.toFixed(2))
393
+ : -1;
394
+ const formRef = React.useRef(null);
395
+ const reportValidity = () => {
396
+ if (currentType === 'textbox') {
397
+ // report validity for input elements
398
+ return formRef.current.reportValidity();
399
+ }
400
+ return true;
401
+ };
402
+ return (React__default["default"].createElement(StyledSurveyQuestionCard, { className: className, style: style },
403
+ React__default["default"].createElement("div", { className: "survey-inner-wrapper" },
404
+ headerText && (React__default["default"].createElement("div", { className: "survey-header" },
405
+ React__default["default"].createElement(index$1.Text, { className: "survey-header-text", size: "c2" }, headerText))),
406
+ React__default["default"].createElement("form", { ref: formRef, onSubmit: (e) => e.preventDefault() },
407
+ React__default["default"].createElement(SurveyQuestionContent, { question: question, description: descriptionText, onOptionsChange: (options) => {
408
+ setAnswer(options);
409
+ }, onTextOptionsChange: (text) => {
410
+ setAnswer(text);
411
+ } })),
412
+ isContactForm && nextText && (React__default["default"].createElement(index$4.Button, { className: "survey-contact-submit", size: "lg", isDisabled: isDisableNext || submitDisabled, onClick: () => reportValidity() && onNextClick && onNextClick(answer) }, nextText)),
413
+ termAndPolicyText && (React__default["default"].createElement("div", { className: "term-policy-container" }, termAndPolicyText)),
414
+ typeof progress === 'number' && (React__default["default"].createElement("div", { className: "survey-progress-wrapper" },
415
+ React__default["default"].createElement("div", { className: "survey-progress", style: {
416
+ transform: `scaleX(${normalizedProgress})`,
417
+ } }))),
418
+ (prevText || nextText) && (React__default["default"].createElement("div", { "data-center": isButtonCenter, className: "survey-button-wrapper" },
419
+ prevText && (React__default["default"].createElement(index$4.Button, { className: "survey-prev-button", size: "lg", color: isDisablePrev ? 'primary' : 'secondary', isDisabled: isDisablePrev, icon: React__default["default"].createElement("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none" },
420
+ React__default["default"].createElement("path", { d: "M2.44677 4.99999L5.31252 2.13424C5.62302 1.82374 5.62302 1.31974 5.31252 1.00924C5.00202 0.698742 4.49802 0.698742 4.18752 1.00924L0.727018 4.46974C0.433768 4.76299 0.433768 5.23774 0.727018 5.53024L4.18752 8.99074C4.49802 9.30124 5.00202 9.30124 5.31252 8.99074C5.62302 8.68024 5.62302 8.17624 5.31252 7.86574L2.44677 4.99999Z", fill: isDisablePrev ? '#fff' : '#2D87F3' })), onClick: onPrevClick }, prevText)),
421
+ !isContactForm && nextText && (React__default["default"].createElement(index$4.Button, { onClick: () => reportValidity() && onNextClick && onNextClick(answer), className: "survey-next-button", size: "lg", isDisabled: isDisableNext || submitDisabled },
422
+ nextText,
423
+ ' ',
424
+ isSubmitButton ? undefined : (React__default["default"].createElement("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none" },
425
+ React__default["default"].createElement("path", { d: "M3.80322 5.19994L0.937465 2.33419C0.626965 2.02369 0.626965 1.51969 0.937465 1.20919C1.24796 0.898693 1.75196 0.898693 2.06246 1.20919L5.52297 4.66969C5.81622 4.96294 5.81622 5.43769 5.52297 5.73019L2.06246 9.19069C1.75196 9.50119 1.24796 9.50119 0.937465 9.19069C0.626965 8.88019 0.626965 8.37619 0.937465 8.06569L3.80322 5.19994Z", fill: "#ffffff" }))))))))));
426
+ };
427
+
428
+ const SurveyThankyouCard = ({ thankyou, thankyouSubtitle, className, style, }) => {
429
+ return (React__default["default"].createElement(StyledSurveyQuestionCard, { className: className, style: style },
430
+ React__default["default"].createElement("div", { className: "survey-inner-wrapper" },
431
+ React__default["default"].createElement(StyledSurveyThankyouCard, null,
432
+ React__default["default"].createElement("div", { className: "survey-thankyou-wrapper-inner" },
433
+ React__default["default"].createElement("svg", {
434
+ // width="122"
435
+ // height="122"
436
+ viewBox: "0 0 122 122", fill: "none", className: "survey-thankyou-icon" },
437
+ React__default["default"].createElement("path", { d: "M61.5 122c33.137 0 60-26.863 60-60S94.637 2 61.5 2s-60 26.863-60 60 26.863 60 60 60Z", fill: theme.theme.colors.primary50 }),
438
+ React__default["default"].createElement("ellipse", { cx: "61.5", cy: "110.36", rx: "48", ry: "3.36", fill: "#91CAFF" }),
439
+ React__default["default"].createElement("path", { d: "M82.905 72.666H101.5L87.597 40H35.403L21.5 72.666h18.595V91H83.08l-.174-18.334Z", fill: "#2C74DF" }),
440
+ React__default["default"].createElement("path", { d: "M74.4 15H39.863a5.364 5.364 0 0 0-5.363 5.363v52.214a5.364 5.364 0 0 0 5.363 5.363h43.273a5.364 5.364 0 0 0 5.363-5.363V21a6 6 0 0 0-6-6H74.4Z", fill: "#fff" }),
441
+ React__default["default"].createElement("path", { d: "M88.853 80.108H34.147a4.055 4.055 0 0 1-4.087-4.074v-10.65c0-2.27 1.81-4.074 4.087-4.074h54.706a4.055 4.055 0 0 1 4.087 4.074v10.65c0 2.27-1.81 4.074-4.087 4.074Z", fill: "#E4E8EC" }),
442
+ React__default["default"].createElement("path", { d: "M90.838 85.451H32.162a4.055 4.055 0 0 1-4.087-4.074v-10.65c0-2.27 1.81-4.074 4.087-4.074H90.78a4.055 4.055 0 0 1 4.087 4.074v10.65c.058 2.27-1.81 4.074-4.029 4.074Z", fill: "#fff" }),
443
+ React__default["default"].createElement("path", { d: "M103.748 75.492v30.263c0 1.92-1.576 3.492-3.503 3.492H23.003c-1.927 0-3.503-1.572-3.503-3.492V75.492c0-1.92 1.576-3.492 3.503-3.492h19.384c1.926 0 3.503 1.571 3.503 3.492v5.354c0 .35.233.582.584.582h30.3c.351 0 .585-.233.585-.582v-5.354c0-1.92 1.576-3.492 3.503-3.492h19.383c1.927 0 3.503 1.571 3.503 3.492Z", fill: "#45A4FF" }),
444
+ React__default["default"].createElement("path", { stroke: "#2C74DF", d: "M51.954 91.377v3.084c0 1.63 1.285 2.91 2.92 2.91h12.844c1.635 0 2.92-1.28 2.92-2.91v-3.084" }),
445
+ React__default["default"].createElement("path", { d: "M120.5 38.025c-2-.246-3.25 1.352-2.375 3.195l.25.737c.75 1.844-.375 3.441-2.375 3.195l-.75-.123c-2-.245-3.25 1.352-2.375 3.195l.375.738c.75 1.843-.375 3.44-2.375 3.195l-.75-.123c-1.5-.123-2.625.737-2.625 1.966", stroke: "#FE921D" }),
446
+ React__default["default"].createElement("path", { d: "M1.533 62c-.269 1.413 1.142 2.337 2.82 1.848l.672-.218c1.678-.543 3.089.38 2.82 1.848l-.134.544c-.269 1.413 1.141 2.337 2.82 1.848l.671-.218c1.68-.543 3.09.38 2.82 1.848l-.134.543c-.201 1.087.538 1.848 1.612 1.957M118 92a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM82 3.187l1.188 4.348 4.347-1.188L86.347 2 82 3.187Z", stroke: "#00B16A" }),
447
+ React__default["default"].createElement("path", { stroke: "#FE921D", d: "M17 28a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z" }),
448
+ React__default["default"].createElement("path", { d: "M61.5 26.667c-7.364 0-13.333 5.97-13.333 13.333 0 7.364 5.969 13.333 13.333 13.333S74.833 47.364 74.833 40 68.864 26.667 61.5 26.667Zm7.61 10.276-9.334 9.333a1.33 1.33 0 0 1-1.885 0l-4-4a1.332 1.332 0 1 1 1.885-1.885l3.057 3.057 8.391-8.39a1.332 1.332 0 1 1 1.885 1.885Z", fill: "#00CB8A" })),
449
+ thankyou && (React__default["default"].createElement(index.Heading, { className: "survey-thankyou-title", tag: "h3" }, thankyou)),
450
+ thankyouSubtitle && (React__default["default"].createElement(index$1.Text, { className: "survey-thankyou-subtitle", size: "p3" }, thankyouSubtitle)))))));
451
+ };
452
+
453
+ exports.SurveyQuestionCard = SurveyQuestionCard;
454
+ exports.SurveyThankyouCard = SurveyThankyouCard;
package/build/together.js CHANGED
@@ -2,61 +2,59 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var types = require('./types-ade68559.js');
6
- var index = require('./index-5033f644.js');
7
- var defaultClassWrapper = require('./defaultClassWrapper-feaae206.js');
5
+ var types = require('./types-6c5643a2.js');
6
+ var index = require('./index-3dcb9bc6.js');
7
+ var dataTransform = require('./dataTransform-6b4d7a4e.js');
8
+ var constants = require('./constants-513a9a41.js');
9
+ var utils = require('./utils-95d9832e.js');
8
10
  require('react');
9
- require('./index-5aac5fb6.js');
10
- require('./tslib.es6-dd1fc8f2.js');
11
+ require('./index-d34cd464.js');
12
+ require('./tslib.es6-7e140b89.js');
11
13
  require('@mantine/core');
12
- require('./utils-3a589c92.js');
13
- require('./translationsContext-6f3c14ea.js');
14
+ require('./utils-524bda7c.js');
15
+ require('./translationsContext-39528d2f.js');
14
16
  require('string-format');
15
17
  require('@hhgtech/icons/other');
16
- require('./index-65765b10.js');
18
+ require('./index-77a2b9ee.js');
17
19
  require('@emotion/styled');
18
- require('./theme-416e0fd4.js');
19
- require('./useTranslations-76f64595.js');
20
+ require('./theme-e4f7f487.js');
21
+ require('./useTranslations-200168a3.js');
20
22
  require('innertext');
21
- require('./index-e914bc7c.js');
23
+ require('./index-05f106c2.js');
22
24
  require('@mantine/hooks');
23
- require('./index-e932125b.js');
24
- require('./index-517f6538.js');
25
+ require('./index-1efa7d84.js');
26
+ require('./index-a86ea1b6.js');
25
27
  require('date-fns/locale');
26
- require('./index-0b957c10.js');
27
- require('./isProduction-7f7f09ad.js');
28
+ require('./index-df5cd44b.js');
29
+ require('./isProduction-aa963bf9.js');
28
30
  require('@mantine/carousel');
29
- require('./useMantineLocale-97b962eb.js');
31
+ require('./useMantineLocale-a4f0c61d.js');
30
32
  require('dayjs');
33
+ require('./index-a7de42d1.js');
31
34
  require('classnames');
32
- require('./useUniqueId-4bafae28.js');
35
+ require('./useUniqueId-8929fe5f.js');
33
36
  require('@hhgtech/icons/core');
34
37
  require('@mantine/dates');
35
- require('./index-4026b8c5.js');
36
- require('./paths-02f54499.js');
37
- require('./index-6036e2a0.js');
38
- require('./index.styles-61201019.js');
39
- require('@emotion/react');
40
- require('./animation-21a29164.js');
41
- require('react-keyed-flatten-children');
42
- require('./index-5ff91adf.js');
38
+ require('./index-d5b4089d.js');
39
+ require('./paths-e0bbfce7.js');
40
+ require('./constants-936f45e9.js');
41
+ require('./index-dd1392e3.js');
43
42
  require('lodash/debounce');
44
43
  require('react-contenteditable');
45
- require('./index-42621fec.js');
46
- require('./index-aff82754.js');
47
- require('./cookieHelper-6fd4e238.js');
44
+ require('./index-c2900d8c.js');
45
+ require('./index-4af08ec2.js');
46
+ require('./cookieHelper-17491ce8.js');
48
47
  require('react-dom');
49
- require('./index-586f0a4f.js');
50
- require('./Instagram-5735e971.js');
51
- require('./index-aefa01a7.js');
52
- require('./number-249e0e0b.js');
48
+ require('./defaultClassWrapper-e87ca8ef.js');
49
+ require('./index-dcbd8bf3.js');
50
+ require('./WhatsApp-82018096.js');
51
+ require('./number-c2338382.js');
53
52
  require('date-fns');
54
53
  require('dayjs/plugin/relativeTime');
55
- require('./index-4f5ce9db.js');
56
- require('./routing-40d4f591.js');
57
- require('./utils-120200ad.js');
58
- require('./index.styled-8c14cf6c.js');
59
- require('./index-d54d6c50.js');
54
+ require('@emotion/react');
55
+ require('./index-264eeddd.js');
56
+ require('./routing-f6d54205.js');
57
+ require('./index-e0bf03ac.js');
60
58
  require('slugify');
61
59
 
62
60
 
@@ -104,13 +102,13 @@ exports.TogetherTypes = types.types;
104
102
  exports.TopicSelectList = types.TopicSelectList;
105
103
  exports.VerifiedTag = types.VerifiedTag;
106
104
  exports.useTogetherAuthRequiredAction = types.useTogetherAuthRequiredAction;
107
- exports.TogetherDataTransforms = index.dataTransform;
108
105
  exports.UserAvatar = index.UserAvatar;
109
- exports.DefaultComponentGlobalContextData = defaultClassWrapper.DefaultComponentGlobalContextData;
106
+ exports.TogetherDataTransforms = dataTransform.dataTransform;
107
+ exports.TogetherConstants = constants.constants;
108
+ exports.DefaultComponentGlobalContextData = utils.DefaultComponentGlobalContextData;
110
109
  Object.defineProperty(exports, 'GlobalData', {
111
110
  enumerable: true,
112
- get: function () { return defaultClassWrapper.GlobalData; }
111
+ get: function () { return utils.GlobalData; }
113
112
  });
114
- exports.TogetherComponentGlobalContext = defaultClassWrapper.TogetherComponentGlobalContext;
115
- exports.TogetherComponentGlobalContextProvider = defaultClassWrapper.TogetherComponentGlobalContextProvider;
116
- exports.TogetherConstants = defaultClassWrapper.constants;
113
+ exports.TogetherComponentGlobalContext = utils.TogetherComponentGlobalContext;
114
+ exports.TogetherComponentGlobalContextProvider = utils.TogetherComponentGlobalContextProvider;