@hhgtech/hhg-components 1.29.274 → 1.29.280

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 (503) hide show
  1. package/build/{LastPeriod-1dd57c4f.js → LastPeriod-fbfaaecf.js} +1 -1
  2. package/build/{MobileBottomNavigationIcon-7eea3b6f.js → MobileBottomNavigationIcon-af86d4d9.js} +3 -3
  3. package/build/{Spinner-5ea12fe2.js → Spinner-64c1c684.js} +1 -1
  4. package/build/{WhatsApp-1336e49d.js → WhatsApp-d9ad1bf9.js} +1 -1
  5. package/build/adapters.js +19 -19
  6. package/build/atoms.js +46 -46
  7. package/build/babyGrowth.js +83 -83
  8. package/build/cache.js +2 -2
  9. package/build/care.js +17 -17
  10. package/build/careBookingSearchBar.js +14 -14
  11. package/build/careBookingSearchBarV2.js +15 -15
  12. package/build/components/mantine/phone/countrySelect.d.ts +10 -0
  13. package/build/components/mantine/phone/phoneWithCustomCountrySelect.d.ts +14 -0
  14. package/build/components/mantine/theme/container.d.ts +9 -0
  15. package/build/components.js +90 -90
  16. package/build/{constants-d87aaad1.js → constants-6b238b22.js} +1 -1
  17. package/build/constants.js +3 -3
  18. package/build/constantsDomainLocales.js +1 -1
  19. package/build/constantsRiskScreener.js +2 -2
  20. package/build/constantsSite.js +2 -2
  21. package/build/{core-e25e9607.js → core-3b83015f.js} +1 -1
  22. package/build/{dataTransform-5800a0a6.js → dataTransform-8d551223.js} +1 -1
  23. package/build/ecom.js +4 -4
  24. package/build/{editor-1b660555.js → editor-cf486044.js} +11 -11
  25. package/build/embeddedHeathToolCards_babyGrowth.js +23 -23
  26. package/build/embeddedHeathToolCards_babyPoop.js +19 -19
  27. package/build/embeddedHeathToolCards_babyVaccine.js +22 -22
  28. package/build/embeddedHeathToolCards_bmi_bmi.js +25 -25
  29. package/build/embeddedHeathToolCards_bmrBmr.js +25 -25
  30. package/build/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
  31. package/build/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
  32. package/build/embeddedHeathToolCards_pwg_pwg.js +26 -26
  33. package/build/embeddedHeathToolCards_targetHeartRate.js +27 -27
  34. package/build/esm/{LastPeriod-b089a87e.js → LastPeriod-445e75dd.js} +1 -1
  35. package/build/esm/{MobileBottomNavigationIcon-107cb1c4.js → MobileBottomNavigationIcon-896d4f90.js} +3 -3
  36. package/build/esm/{Spinner-130e901b.js → Spinner-dbc32415.js} +1 -1
  37. package/build/esm/{WhatsApp-721bf808.js → WhatsApp-d1bcaff9.js} +1 -1
  38. package/build/esm/adapters.js +19 -19
  39. package/build/esm/atoms.js +46 -46
  40. package/build/esm/babyGrowth.js +83 -83
  41. package/build/esm/cache.js +2 -2
  42. package/build/esm/care.js +17 -17
  43. package/build/esm/careBookingSearchBar.js +14 -14
  44. package/build/esm/careBookingSearchBarV2.js +15 -15
  45. package/build/esm/components/mantine/phone/countrySelect.d.ts +10 -0
  46. package/build/esm/components/mantine/phone/phoneWithCustomCountrySelect.d.ts +14 -0
  47. package/build/esm/components/mantine/theme/container.d.ts +9 -0
  48. package/build/esm/components.js +90 -90
  49. package/build/esm/{constants-91b6d530.js → constants-08ae27d8.js} +1 -1
  50. package/build/esm/constants.js +3 -3
  51. package/build/esm/constantsDomainLocales.js +1 -1
  52. package/build/esm/constantsRiskScreener.js +2 -2
  53. package/build/esm/constantsSite.js +2 -2
  54. package/build/esm/{core-4f792b76.js → core-1857e883.js} +1 -1
  55. package/build/esm/{dataTransform-6cbc5205.js → dataTransform-f7797116.js} +1 -1
  56. package/build/esm/ecom.js +4 -4
  57. package/build/esm/{editor-c9aa6aee.js → editor-472e734a.js} +11 -11
  58. package/build/esm/embeddedHeathToolCards_babyGrowth.js +23 -23
  59. package/build/esm/embeddedHeathToolCards_babyPoop.js +19 -19
  60. package/build/esm/embeddedHeathToolCards_babyVaccine.js +22 -22
  61. package/build/esm/embeddedHeathToolCards_bmi_bmi.js +25 -25
  62. package/build/esm/embeddedHeathToolCards_bmrBmr.js +25 -25
  63. package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
  64. package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
  65. package/build/esm/embeddedHeathToolCards_pwg_pwg.js +26 -26
  66. package/build/esm/embeddedHeathToolCards_targetHeartRate.js +27 -27
  67. package/build/esm/{fixedBottomAdBlock-1522a19e.js → fixedBottomAdBlock-cf64d0be.js} +24 -24
  68. package/build/esm/footer.js +21 -21
  69. package/build/esm/gAssets.js +2 -2
  70. package/build/esm/healthToolsCardWrapper.js +18 -18
  71. package/build/esm/healthToolsForm.js +33 -33
  72. package/build/esm/hooks.js +13 -13
  73. package/build/esm/i18n/translationKeys.d.ts +1 -1
  74. package/build/esm/i18n-values/en-PH.js +1 -0
  75. package/build/esm/i18n-values/hi-IN.js +1 -0
  76. package/build/esm/i18n-values/id-ID.js +1 -0
  77. package/build/esm/i18n-values/km-KH.js +1 -0
  78. package/build/esm/i18n-values/ms-MY.js +1 -0
  79. package/build/esm/i18n-values/my-MM.js +1 -0
  80. package/build/esm/i18n-values/th-TH.js +1 -0
  81. package/build/esm/i18n-values/tl-PH.js +1 -0
  82. package/build/esm/i18n-values/vi-VN.js +1 -0
  83. package/build/esm/i18n-values/vi-VN_MB.js +1 -0
  84. package/build/esm/i18n-values/zh-TW.js +1 -0
  85. package/build/esm/i18n.js +2 -2
  86. package/build/esm/i18nV2.js +2 -2
  87. package/build/esm/{index-de7a2385.js → index-01bf3fc8.js} +2 -2
  88. package/build/esm/{index-15ef4f6e.js → index-0600f885.js} +17 -17
  89. package/build/esm/{index-54c57898.js → index-0659bf18.js} +20 -20
  90. package/build/esm/{index-77eb24c7.js → index-0fd9f218.js} +5 -5
  91. package/build/esm/{index-d13a9124.js → index-1051877b.js} +2 -2
  92. package/build/esm/{index-a2c5e7fc.js → index-181dc98c.js} +3 -3
  93. package/build/esm/{index-84c92bda.js → index-1ead1797.js} +10 -10
  94. package/build/esm/{index-ebe27d0a.js → index-1f0b396d.js} +1 -1
  95. package/build/esm/{index-8b0c22ef.js → index-21bb344a.js} +15 -15
  96. package/build/esm/{index-cc6e6e92.js → index-29fe3e99.js} +13 -13
  97. package/build/esm/{index-ccbf02f8.js → index-2b432673.js} +2 -2
  98. package/build/esm/{index-bd228b5a.js → index-3238adbd.js} +1 -1
  99. package/build/esm/{index-2948d63e.js → index-32979a06.js} +32 -32
  100. package/build/esm/{index-48517d44.js → index-345cb59e.js} +3 -3
  101. package/build/esm/{index-8ae8e501.js → index-4d5deba7.js} +24 -24
  102. package/build/esm/{index-1952cd96.js → index-5c34343f.js} +1 -1
  103. package/build/esm/{index-e50b3b39.js → index-5e9ae7e0.js} +1 -1
  104. package/build/esm/{index-477dab11.js → index-62c5b003.js} +1 -1
  105. package/build/esm/{index-8b4b400c.js → index-66231b0b.js} +1 -1
  106. package/build/esm/{index-82f00463.js → index-6a10decc.js} +16 -16
  107. package/build/esm/{index-7b3d0774.js → index-6ae4dff2.js} +1 -1
  108. package/build/esm/{index-a2b9f2f7.js → index-6cd31878.js} +2 -2
  109. package/build/esm/{index-994cb4ce.js → index-6dab491d.js} +17 -17
  110. package/build/esm/{index-4b59cb69.js → index-772be66e.js} +2 -2
  111. package/build/esm/{index-9e608eb4.js → index-7a729ad4.js} +23 -6
  112. package/build/esm/{index-afeda425.js → index-7cd68411.js} +2 -2
  113. package/build/esm/{index-592ec7ac.js → index-7d804427.js} +18 -18
  114. package/build/esm/{index-a1885762.js → index-85809a50.js} +16 -16
  115. package/build/esm/{index-295ab799.js → index-85b1fa77.js} +3 -3
  116. package/build/esm/{index-c6cc483d.js → index-89abbde1.js} +6 -6
  117. package/build/esm/{index-eb415f70.js → index-9b0d3039.js} +2 -2
  118. package/build/esm/{index-fb773169.js → index-9c0d1554.js} +1 -1
  119. package/build/esm/{index-ab248046.js → index-9d1e792e.js} +6 -6
  120. package/build/esm/{index-9a14afff.js → index-9d671c14.js} +13 -13
  121. package/build/esm/{index-aba691d3.js → index-a24ac501.js} +4 -4
  122. package/build/esm/{index-926cac93.js → index-acd30c43.js} +3 -3
  123. package/build/esm/{index-b2fee80d.js → index-adec1505.js} +1 -1
  124. package/build/esm/{index-5349b2c8.js → index-afba9bfb.js} +13 -13
  125. package/build/esm/{index-65cfad06.js → index-b7f471dc.js} +3 -3
  126. package/build/esm/{index-d11fac5d.js → index-bc74ea3d.js} +2 -2
  127. package/build/esm/{index-c8a64d3b.js → index-c2b0cda4.js} +2 -2
  128. package/build/esm/{index-bfbf7085.js → index-c80ba063.js} +3 -3
  129. package/build/esm/{index-f61b6017.js → index-cc80c41f.js} +15 -15
  130. package/build/esm/{index-075b8f97.js → index-ce3f78a2.js} +16 -16
  131. package/build/esm/{index-111979b7.js → index-ce405d3b.js} +2 -2
  132. package/build/esm/{index-03a95817.js → index-cf4e217a.js} +5 -5
  133. package/build/esm/{index-cec6a8fc.js → index-cfe1e397.js} +26 -26
  134. package/build/esm/{index-388fae44.js → index-d1c643a9.js} +2 -2
  135. package/build/esm/{index-e6b25d53.js → index-d7965e4a.js} +16 -16
  136. package/build/esm/{index-710e19b7.js → index-da454479.js} +30 -30
  137. package/build/esm/{index-96150c27.js → index-dbc68e17.js} +13 -13
  138. package/build/esm/{index-c5d81f4d.js → index-e1ac0594.js} +17 -17
  139. package/build/esm/{index-4da258f8.js → index-e600ccfb.js} +6 -6
  140. package/build/esm/{index-660ea37e.js → index-e6f4f52b.js} +3 -3
  141. package/build/esm/{index-704cfb73.js → index-ec473a83.js} +21 -21
  142. package/build/esm/{index-ebf61010.js → index-f3453d96.js} +18 -18
  143. package/build/esm/{index-ef96425a.js → index-f5a73830.js} +13 -13
  144. package/build/esm/{index-e7313c2c.js → index-f5f81ceb.js} +7 -7
  145. package/build/esm/{index-57f839fb.js → index-f78fd308.js} +7 -7
  146. package/build/esm/{index-76f61b45.js → index-fe3b4edc.js} +2 -2
  147. package/build/esm/index.js +112 -112
  148. package/build/esm/{labelSorting-4fd71db6.js → labelSorting-bf03c4a9.js} +4 -4
  149. package/build/esm/lead.js +24 -24
  150. package/build/esm/{logoIcon-a627d7da.js → logoIcon-8dcdf7ab.js} +2 -2
  151. package/build/esm/mantine.js +25 -25
  152. package/build/esm/misc/utils.d.ts +3 -0
  153. package/build/esm/misc.js +16 -16
  154. package/build/esm/miscGetDynamicHealthTool.js +4 -4
  155. package/build/esm/miscGetSocialList.js +8 -8
  156. package/build/esm/miscScreenSizeContext.js +1 -1
  157. package/build/esm/mobileBottomNavigation.js +5 -5
  158. package/build/esm/mobileBottomNavigationIcon.js +5 -5
  159. package/build/esm/molecules.js +69 -69
  160. package/build/esm/moleculesArticleCard.js +6 -6
  161. package/build/esm/moleculesArticleCardV2.js +16 -16
  162. package/build/esm/navigation.js +40 -40
  163. package/build/esm/navigationLogoutPopup.js +9 -9
  164. package/build/esm/navigationProfileButton.js +23 -23
  165. package/build/esm/onboardingV2.js +29 -29
  166. package/build/esm/organisms.js +44 -44
  167. package/build/esm/{post-3b3f41ab.js → post-c0dccfa3.js} +2 -2
  168. package/build/esm/profileNavigation.js +19 -19
  169. package/build/esm/progressBar.js +1 -1
  170. package/build/esm/pwg.js +22 -22
  171. package/build/esm/ssoV2/api/index.d.ts +0 -1
  172. package/build/esm/ssoV2/api/phoneUtils.d.ts +1 -1
  173. package/build/esm/ssoV2/screens/components/phone.d.ts +1 -1
  174. package/build/esm/ssoV2.js +1453 -54
  175. package/build/esm/{store-9c076d73.js → store-0db9e34c.js} +4 -5
  176. package/build/esm/subot.js +33 -33
  177. package/build/esm/surveyOrPremiumBanner.js +31 -31
  178. package/build/esm/surveyQuestionCard.js +10 -10
  179. package/build/esm/{surveyThankyouCard-c89c38f2.js → surveyThankyouCard-0249d973.js} +5 -5
  180. package/build/esm/together.js +53 -53
  181. package/build/esm/togetherApiUtils.js +4 -4
  182. package/build/esm/togetherAtoms.js +30 -30
  183. package/build/esm/togetherComponentGlobalContext.js +4 -4
  184. package/build/esm/togetherMolecules.js +48 -48
  185. package/build/esm/togetherMoleculesCardAuthor.js +27 -27
  186. package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
  187. package/build/esm/togetherMoleculesProfileDetail.js +37 -37
  188. package/build/esm/togetherOrganisms.js +47 -47
  189. package/build/esm/togetherRichTextEditor.js +17 -17
  190. package/build/esm/togetherShareBox.js +10 -10
  191. package/build/esm/{treePopoverMenu-5acb456d.js → treePopoverMenu-763e0476.js} +19 -19
  192. package/build/esm/{types-2f6954f3.js → types-373582e3.js} +2 -2
  193. package/build/esm/types.js +2 -2
  194. package/build/esm/{useCategory-bc02c471.js → useCategory-f5459e5f.js} +5 -5
  195. package/build/esm/{useHealthToolCache-c740c339.js → useHealthToolCache-13061bab.js} +1 -1
  196. package/build/esm/{useMantineLocale-8554910a.js → useMantineLocale-f055c382.js} +18 -7
  197. package/build/esm/{usePlacesAutocomplete-5bb4f412.js → usePlacesAutocomplete-303a1fc7.js} +1 -1
  198. package/build/esm/{useScreenSize-f0500314.js → useScreenSize-7988bd85.js} +2 -2
  199. package/build/esm/useTogetherAuthRequiredAction.js +9 -9
  200. package/build/esm/{utils-3a26037e.js → utils-04a8c5de.js} +2 -2
  201. package/build/esm/{utils-2e8512eb.js → utils-54153b43.js} +2 -2
  202. package/build/esm/{utils-4398270e.js → utils-670f38e9.js} +4 -1
  203. package/build/esm/{utils-73cae79a.js → utils-7e30f546.js} +3 -3
  204. package/build/esm/vaccination.js +21 -21
  205. package/build/{fixedBottomAdBlock-9650e684.js → fixedBottomAdBlock-449df49f.js} +24 -24
  206. package/build/footer.js +21 -21
  207. package/build/gAssets.js +2 -2
  208. package/build/healthToolsCardWrapper.js +18 -18
  209. package/build/healthToolsForm.js +33 -33
  210. package/build/hooks.js +13 -13
  211. package/build/i18n/translationKeys.d.ts +1 -1
  212. package/build/i18n-values/en-PH.js +1 -0
  213. package/build/i18n-values/hi-IN.js +1 -0
  214. package/build/i18n-values/id-ID.js +1 -0
  215. package/build/i18n-values/km-KH.js +1 -0
  216. package/build/i18n-values/ms-MY.js +1 -0
  217. package/build/i18n-values/my-MM.js +1 -0
  218. package/build/i18n-values/th-TH.js +1 -0
  219. package/build/i18n-values/tl-PH.js +1 -0
  220. package/build/i18n-values/vi-VN.js +1 -0
  221. package/build/i18n-values/vi-VN_MB.js +1 -0
  222. package/build/i18n-values/zh-TW.js +1 -0
  223. package/build/i18n.js +1 -1
  224. package/build/i18nV2.js +1 -1
  225. package/build/{index-8202ddfe.js → index-095125f6.js} +30 -30
  226. package/build/{index-06f38a2a.js → index-0ef747e7.js} +15 -15
  227. package/build/{index-6ed29c03.js → index-1322b85a.js} +17 -17
  228. package/build/{index-5d65c558.js → index-13e033d6.js} +3 -3
  229. package/build/{index-7e3d2ff0.js → index-1bb9829e.js} +1 -1
  230. package/build/{index-9da7e713.js → index-231d6329.js} +3 -3
  231. package/build/{index-2bc640ce.js → index-2b5d8308.js} +7 -7
  232. package/build/{index-73076246.js → index-30936881.js} +2 -2
  233. package/build/{index-8b349cc9.js → index-31b46217.js} +7 -7
  234. package/build/{index-4f591b2c.js → index-33c7c356.js} +16 -16
  235. package/build/{index-0348fccb.js → index-3531c7cb.js} +21 -21
  236. package/build/{index-20bf6e28.js → index-3679162c.js} +1 -1
  237. package/build/{index-2cfd332b.js → index-3ef57fa2.js} +1 -1
  238. package/build/{index-12c0b7c5.js → index-4527f5d3.js} +13 -13
  239. package/build/{index-b92ce088.js → index-4e8ba4a1.js} +16 -16
  240. package/build/{index-e2c4ed48.js → index-4e9cc798.js} +1 -1
  241. package/build/{index-8a5c9e94.js → index-50f184db.js} +6 -6
  242. package/build/{index-d227f36c.js → index-52128b03.js} +20 -20
  243. package/build/{index-785fca39.js → index-59305d4f.js} +2 -2
  244. package/build/{index-d0f9176f.js → index-5b327e8c.js} +3 -3
  245. package/build/{index-2127dde5.js → index-5c2d2551.js} +2 -2
  246. package/build/{index-a023e20c.js → index-5ea76a27.js} +2 -2
  247. package/build/{index-c7be2840.js → index-66134b21.js} +6 -6
  248. package/build/{index-e20e736f.js → index-6bea57cb.js} +13 -13
  249. package/build/{index-4a8a1e5c.js → index-6fbb7b1d.js} +1 -1
  250. package/build/{index-b9bfd42a.js → index-73342257.js} +26 -26
  251. package/build/{index-01868381.js → index-7639b9ce.js} +3 -3
  252. package/build/{index-e6f01afc.js → index-772201ec.js} +10 -10
  253. package/build/{index-64212881.js → index-78b0c5ad.js} +2 -2
  254. package/build/{index-8dc55705.js → index-8108c61c.js} +1 -1
  255. package/build/{index-0c628b8c.js → index-810a5901.js} +13 -13
  256. package/build/{index-607792a8.js → index-87103e00.js} +6 -6
  257. package/build/{index-0f1b10b8.js → index-8844db7e.js} +2 -2
  258. package/build/{index-8f92f0a6.js → index-9091d8d0.js} +5 -5
  259. package/build/{index-ffaf9d08.js → index-90c52f18.js} +24 -24
  260. package/build/{index-9a704178.js → index-9573ff9a.js} +18 -18
  261. package/build/{index-ba7ab219.js → index-9825e6e0.js} +16 -16
  262. package/build/{index-9ce72e0d.js → index-9b631f37.js} +3 -3
  263. package/build/{index-7ff13748.js → index-a610f42b.js} +15 -15
  264. package/build/{index-ff88acca.js → index-a8a25451.js} +2 -2
  265. package/build/{index-8fa11e78.js → index-ae7ce8bc.js} +2 -2
  266. package/build/{index-1eeda1c7.js → index-b2a7e496.js} +5 -5
  267. package/build/{index-105abf1b.js → index-b2da2edf.js} +13 -12
  268. package/build/{index-e23167df.js → index-b802b129.js} +17 -17
  269. package/build/{index-f28ce94a.js → index-b870cf67.js} +2 -2
  270. package/build/{index-e5d6d88d.js → index-c24b8fdd.js} +23 -6
  271. package/build/{index-95cfacd3.js → index-c761de6d.js} +1 -1
  272. package/build/{index-8ae44394.js → index-cbb6bdf1.js} +18 -18
  273. package/build/{index-8a872d50.js → index-da1fad35.js} +4 -4
  274. package/build/{index-dc3e7d08.js → index-db4c4475.js} +2 -2
  275. package/build/{index-12ea896d.js → index-e0db44a9.js} +1 -1
  276. package/build/{index-1cc23217.js → index-e37999d2.js} +3 -3
  277. package/build/{index-30fd6064.js → index-e3fb16a8.js} +2 -2
  278. package/build/{index-7d2d4225.js → index-e7a453ec.js} +13 -13
  279. package/build/{index-174d05df.js → index-eedf29bf.js} +1 -1
  280. package/build/{index-28cf8b26.js → index-ef5c9ded.js} +2 -2
  281. package/build/{index-fed8b891.js → index-f6dff106.js} +17 -17
  282. package/build/{index-c25f17cc.js → index-f880b1c1.js} +3 -3
  283. package/build/{index-6b2c6583.js → index-f92b8fe8.js} +16 -16
  284. package/build/{index-f89112fe.js → index-ff91974c.js} +32 -32
  285. package/build/index.js +113 -112
  286. package/build/{labelSorting-a9ecac16.js → labelSorting-06effaf8.js} +4 -4
  287. package/build/lead.js +24 -24
  288. package/build/{logoIcon-35da86cf.js → logoIcon-d160f9ad.js} +2 -2
  289. package/build/mantine.js +22 -22
  290. package/build/misc/utils.d.ts +3 -0
  291. package/build/misc.js +17 -16
  292. package/build/miscGetDynamicHealthTool.js +4 -4
  293. package/build/miscGetSocialList.js +8 -8
  294. package/build/miscScreenSizeContext.js +1 -1
  295. package/build/mobileBottomNavigation.js +5 -5
  296. package/build/mobileBottomNavigationIcon.js +5 -5
  297. package/build/molecules.js +69 -69
  298. package/build/moleculesArticleCard.js +6 -6
  299. package/build/moleculesArticleCardV2.js +16 -16
  300. package/build/navigation.js +40 -40
  301. package/build/navigationLogoutPopup.js +9 -9
  302. package/build/navigationProfileButton.js +23 -23
  303. package/build/onboardingV2.js +28 -28
  304. package/build/organisms.js +44 -44
  305. package/build/{post-32f7b0e4.js → post-861f87ef.js} +2 -2
  306. package/build/profileNavigation.js +19 -19
  307. package/build/progressBar.js +1 -1
  308. package/build/pwg.js +22 -22
  309. package/build/ssoV2/api/index.d.ts +0 -1
  310. package/build/ssoV2/api/phoneUtils.d.ts +1 -1
  311. package/build/ssoV2/screens/components/phone.d.ts +1 -1
  312. package/build/ssoV2.js +1452 -50
  313. package/build/{store-41ef3849.js → store-38813b68.js} +3 -5
  314. package/build/subot.js +32 -32
  315. package/build/surveyOrPremiumBanner.js +31 -31
  316. package/build/surveyQuestionCard.js +10 -10
  317. package/build/{surveyThankyouCard-b49fd02f.js → surveyThankyouCard-d4c997b5.js} +5 -5
  318. package/build/together.js +53 -53
  319. package/build/togetherApiUtils.js +4 -4
  320. package/build/togetherAtoms.js +30 -30
  321. package/build/togetherComponentGlobalContext.js +4 -4
  322. package/build/togetherMolecules.js +48 -48
  323. package/build/togetherMoleculesCardAuthor.js +27 -27
  324. package/build/togetherMoleculesPostImagePreview.js +11 -11
  325. package/build/togetherMoleculesProfileDetail.js +37 -37
  326. package/build/togetherOrganisms.js +47 -47
  327. package/build/togetherRichTextEditor.js +17 -17
  328. package/build/togetherShareBox.js +10 -10
  329. package/build/{treePopoverMenu-84ef645d.js → treePopoverMenu-b2e2207f.js} +19 -19
  330. package/build/{types-74c90ec9.js → types-2c090f1a.js} +2 -2
  331. package/build/types.js +2 -2
  332. package/build/{useCategory-c64c90ef.js → useCategory-596768a7.js} +5 -5
  333. package/build/{useHealthToolCache-862d3eef.js → useHealthToolCache-9baeeec8.js} +1 -1
  334. package/build/{useMantineLocale-422927c9.js → useMantineLocale-2a79a316.js} +18 -6
  335. package/build/{usePlacesAutocomplete-c7e2c9aa.js → usePlacesAutocomplete-d47e6cdb.js} +1 -1
  336. package/build/{useScreenSize-1e081d0e.js → useScreenSize-4c83aaf7.js} +2 -2
  337. package/build/useTogetherAuthRequiredAction.js +9 -9
  338. package/build/{utils-e721e2dd.js → utils-0189eb63.js} +4 -0
  339. package/build/{utils-116135ae.js → utils-1ca37eb5.js} +2 -2
  340. package/build/{utils-b62d3d64.js → utils-28da72e5.js} +2 -2
  341. package/build/{utils-880ae533.js → utils-9fd5ce3c.js} +3 -3
  342. package/build/vaccination.js +21 -21
  343. package/package.json +2 -1
  344. /package/build/{BMI_BOYS.percentile.monthly-bcd34528.js → BMI_BOYS.percentile.monthly-aef04a19.js} +0 -0
  345. /package/build/{BMI_BOYS.percentile.weekly-102cfed5.js → BMI_BOYS.percentile.weekly-dec2943b.js} +0 -0
  346. /package/build/{BMI_BOYS.percentile.yearly-73cb23f7.js → BMI_BOYS.percentile.yearly-e344a6e7.js} +0 -0
  347. /package/build/{BMI_BOYS.zscore.monthly-18270575.js → BMI_BOYS.zscore.monthly-893c96aa.js} +0 -0
  348. /package/build/{BMI_BOYS.zscore.weekly-018ad170.js → BMI_BOYS.zscore.weekly-358f9bca.js} +0 -0
  349. /package/build/{BMI_BOYS.zscore.yearly-e4b803ef.js → BMI_BOYS.zscore.yearly-fd5d5c62.js} +0 -0
  350. /package/build/{BMI_GIRLS.percentile.monthly-7f96bf71.js → BMI_GIRLS.percentile.monthly-1f8adbe2.js} +0 -0
  351. /package/build/{BMI_GIRLS.percentile.weekly-33a2dc7f.js → BMI_GIRLS.percentile.weekly-4b504fd4.js} +0 -0
  352. /package/build/{BMI_GIRLS.percentile.yearly-0810bb43.js → BMI_GIRLS.percentile.yearly-543fedf9.js} +0 -0
  353. /package/build/{BMI_GIRLS.zscore.monthly-4176c6c9.js → BMI_GIRLS.zscore.monthly-dccb5554.js} +0 -0
  354. /package/build/{BMI_GIRLS.zscore.weekly-a6625ffe.js → BMI_GIRLS.zscore.weekly-27eed5c0.js} +0 -0
  355. /package/build/{BMI_GIRLS.zscore.yearly-369f8aa6.js → BMI_GIRLS.zscore.yearly-8d801789.js} +0 -0
  356. /package/build/{ChevronDown-313e1847.js → ChevronDown-266b8b04.js} +0 -0
  357. /package/build/{Close-3fb3b34f.js → Close-2f976500.js} +0 -0
  358. /package/build/{Google-012e51ff.js → Google-606e68df.js} +0 -0
  359. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-7aeeccda.js → HEAD CIRCUM_BOYS.percentile.monthly-e7c99a91.js} +0 -0
  360. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-d0a7c8ba.js → HEAD CIRCUM_BOYS.percentile.weekly-7a529ece.js} +0 -0
  361. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-4c909589.js → HEAD CIRCUM_BOYS.percentile.yearly-cd39ae1f.js} +0 -0
  362. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-a6858590.js → HEAD CIRCUM_BOYS.zscore.monthly-a299858f.js} +0 -0
  363. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-af8fe933.js → HEAD CIRCUM_BOYS.zscore.weekly-eb037b67.js} +0 -0
  364. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-d00d248e.js → HEAD CIRCUM_BOYS.zscore.yearly-038be851.js} +0 -0
  365. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-c6a7b9b8.js → HEAD CIRCUM_GIRLS.percentile.monthly-a69abe2d.js} +0 -0
  366. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-6c98828a.js → HEAD CIRCUM_GIRLS.percentile.weekly-93ba35aa.js} +0 -0
  367. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-c952bb6d.js → HEAD CIRCUM_GIRLS.percentile.yearly-55d7506e.js} +0 -0
  368. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-c56b74a8.js → HEAD CIRCUM_GIRLS.zscore.monthly-b40c6f48.js} +0 -0
  369. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-e87f0d7e.js → HEAD CIRCUM_GIRLS.zscore.weekly-90b8610a.js} +0 -0
  370. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-f40c42b2.js → HEAD CIRCUM_GIRLS.zscore.yearly-6c524adf.js} +0 -0
  371. /package/build/{HEIGHT_BOYS.percentile.monthly-df364823.js → HEIGHT_BOYS.percentile.monthly-39d0b0cd.js} +0 -0
  372. /package/build/{HEIGHT_BOYS.percentile.weekly-81c9521a.js → HEIGHT_BOYS.percentile.weekly-431fd4a3.js} +0 -0
  373. /package/build/{HEIGHT_BOYS.percentile.yearly-3fc765a2.js → HEIGHT_BOYS.percentile.yearly-ca1c56b1.js} +0 -0
  374. /package/build/{HEIGHT_BOYS.zscore.monthly-a6efd909.js → HEIGHT_BOYS.zscore.monthly-98f841e0.js} +0 -0
  375. /package/build/{HEIGHT_BOYS.zscore.weekly-30a2cbac.js → HEIGHT_BOYS.zscore.weekly-4ec63b7e.js} +0 -0
  376. /package/build/{HEIGHT_BOYS.zscore.yearly-87a8dfad.js → HEIGHT_BOYS.zscore.yearly-cbba83b4.js} +0 -0
  377. /package/build/{HEIGHT_GIRLS.percentile.monthly-c7f21c75.js → HEIGHT_GIRLS.percentile.monthly-3cdf6a9c.js} +0 -0
  378. /package/build/{HEIGHT_GIRLS.percentile.weekly-2a61b02f.js → HEIGHT_GIRLS.percentile.weekly-48bcf140.js} +0 -0
  379. /package/build/{HEIGHT_GIRLS.percentile.yearly-4659cd87.js → HEIGHT_GIRLS.percentile.yearly-3900ec26.js} +0 -0
  380. /package/build/{HEIGHT_GIRLS.zscore.monthly-0922c315.js → HEIGHT_GIRLS.zscore.monthly-f1cd1e07.js} +0 -0
  381. /package/build/{HEIGHT_GIRLS.zscore.weekly-26533a4b.js → HEIGHT_GIRLS.zscore.weekly-7f678f1b.js} +0 -0
  382. /package/build/{HEIGHT_GIRLS.zscore.yearly-aa4957bf.js → HEIGHT_GIRLS.zscore.yearly-916eabc1.js} +0 -0
  383. /package/build/{Locale-ae26c3e2.js → Locale-75c99331.js} +0 -0
  384. /package/build/{Visible-1188e018.js → Visible-f37ea3b0.js} +0 -0
  385. /package/build/{WEIGHT_BOYS.percentile.monthly-63a7457c.js → WEIGHT_BOYS.percentile.monthly-135b5fae.js} +0 -0
  386. /package/build/{WEIGHT_BOYS.percentile.weekly-e3a6bdb5.js → WEIGHT_BOYS.percentile.weekly-2d30f763.js} +0 -0
  387. /package/build/{WEIGHT_BOYS.percentile.yearly-582d107e.js → WEIGHT_BOYS.percentile.yearly-0cc0c93f.js} +0 -0
  388. /package/build/{WEIGHT_BOYS.zscore.monthly-0b345ff3.js → WEIGHT_BOYS.zscore.monthly-6d5ea579.js} +0 -0
  389. /package/build/{WEIGHT_BOYS.zscore.weekly-04fb3992.js → WEIGHT_BOYS.zscore.weekly-70bdb146.js} +0 -0
  390. /package/build/{WEIGHT_BOYS.zscore.yearly-b655ab25.js → WEIGHT_BOYS.zscore.yearly-59c3726a.js} +0 -0
  391. /package/build/{WEIGHT_GIRLS.percentile.monthly-54ed74c1.js → WEIGHT_GIRLS.percentile.monthly-c3455f92.js} +0 -0
  392. /package/build/{WEIGHT_GIRLS.percentile.weekly-d3ed5a95.js → WEIGHT_GIRLS.percentile.weekly-7e2dc8f7.js} +0 -0
  393. /package/build/{WEIGHT_GIRLS.percentile.yearly-63db890a.js → WEIGHT_GIRLS.percentile.yearly-968f74dd.js} +0 -0
  394. /package/build/{WEIGHT_GIRLS.zscore.monthly-01037ada.js → WEIGHT_GIRLS.zscore.monthly-878d023a.js} +0 -0
  395. /package/build/{WEIGHT_GIRLS.zscore.weekly-3c17e35d.js → WEIGHT_GIRLS.zscore.weekly-5a4447fa.js} +0 -0
  396. /package/build/{WEIGHT_GIRLS.zscore.yearly-3e6bde11.js → WEIGHT_GIRLS.zscore.yearly-2a74ba52.js} +0 -0
  397. /package/build/{animation-ff8089a7.js → animation-f778e2c8.js} +0 -0
  398. /package/build/{constants-91e17f0b.js → constants-669d3ec0.js} +0 -0
  399. /package/build/{constants-c4ddc757.js → constants-83516543.js} +0 -0
  400. /package/build/{constants-059c0f97.js → constants-84c9a06c.js} +0 -0
  401. /package/build/{dataTransform-c06d25e3.js → dataTransform-3c8754f0.js} +0 -0
  402. /package/build/{doctor-dd955015.js → doctor-dbb6a9ea.js} +0 -0
  403. /package/build/esm/{BMI_BOYS.percentile.monthly-c6086de1.js → BMI_BOYS.percentile.monthly-c856b8da.js} +0 -0
  404. /package/build/esm/{BMI_BOYS.percentile.weekly-7952fdf5.js → BMI_BOYS.percentile.weekly-f3cea0d7.js} +0 -0
  405. /package/build/esm/{BMI_BOYS.percentile.yearly-3662231c.js → BMI_BOYS.percentile.yearly-c4993d2a.js} +0 -0
  406. /package/build/esm/{BMI_BOYS.zscore.monthly-91ce6ebd.js → BMI_BOYS.zscore.monthly-9dee738a.js} +0 -0
  407. /package/build/esm/{BMI_BOYS.zscore.weekly-86b57b6d.js → BMI_BOYS.zscore.weekly-96b7e45c.js} +0 -0
  408. /package/build/esm/{BMI_BOYS.zscore.yearly-125fbbcf.js → BMI_BOYS.zscore.yearly-0e72f8b7.js} +0 -0
  409. /package/build/esm/{BMI_GIRLS.percentile.monthly-b6d9a2de.js → BMI_GIRLS.percentile.monthly-00e2049c.js} +0 -0
  410. /package/build/esm/{BMI_GIRLS.percentile.weekly-d00ac155.js → BMI_GIRLS.percentile.weekly-bcb1d8a4.js} +0 -0
  411. /package/build/esm/{BMI_GIRLS.percentile.yearly-554c84b6.js → BMI_GIRLS.percentile.yearly-0384f6c4.js} +0 -0
  412. /package/build/esm/{BMI_GIRLS.zscore.monthly-26ed6636.js → BMI_GIRLS.zscore.monthly-81c2e3ca.js} +0 -0
  413. /package/build/esm/{BMI_GIRLS.zscore.weekly-8f877247.js → BMI_GIRLS.zscore.weekly-26eeda94.js} +0 -0
  414. /package/build/esm/{BMI_GIRLS.zscore.yearly-9c68fff5.js → BMI_GIRLS.zscore.yearly-2d4fa277.js} +0 -0
  415. /package/build/esm/{ChevronDown-4dd20d46.js → ChevronDown-821b0c8a.js} +0 -0
  416. /package/build/esm/{Close-bcdfee12.js → Close-28f5b52a.js} +0 -0
  417. /package/build/esm/{Google-c3bb89ec.js → Google-178827ed.js} +0 -0
  418. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-5c8084be.js → HEAD CIRCUM_BOYS.percentile.monthly-e15039e0.js} +0 -0
  419. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-bcd825c5.js → HEAD CIRCUM_BOYS.percentile.weekly-adf2581d.js} +0 -0
  420. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-71efa5fc.js → HEAD CIRCUM_BOYS.percentile.yearly-a137bb77.js} +0 -0
  421. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-4523d218.js → HEAD CIRCUM_BOYS.zscore.monthly-c490210a.js} +0 -0
  422. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-406f64e5.js → HEAD CIRCUM_BOYS.zscore.weekly-d2094e0f.js} +0 -0
  423. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-cfeea0e2.js → HEAD CIRCUM_BOYS.zscore.yearly-53ffeafb.js} +0 -0
  424. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-6c3e4378.js → HEAD CIRCUM_GIRLS.percentile.monthly-7e3fddf8.js} +0 -0
  425. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-8421098e.js → HEAD CIRCUM_GIRLS.percentile.weekly-d99cfbeb.js} +0 -0
  426. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-d968c6ac.js → HEAD CIRCUM_GIRLS.percentile.yearly-cb8da585.js} +0 -0
  427. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-246bca64.js → HEAD CIRCUM_GIRLS.zscore.monthly-bfd9673b.js} +0 -0
  428. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-e150d423.js → HEAD CIRCUM_GIRLS.zscore.weekly-3edb5d8d.js} +0 -0
  429. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-6a131a31.js → HEAD CIRCUM_GIRLS.zscore.yearly-1a442be6.js} +0 -0
  430. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-0c2a82cd.js → HEIGHT_BOYS.percentile.monthly-d78664cd.js} +0 -0
  431. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-b153c9f2.js → HEIGHT_BOYS.percentile.weekly-6aed784a.js} +0 -0
  432. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-aaea149e.js → HEIGHT_BOYS.percentile.yearly-fcf47a21.js} +0 -0
  433. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-5ed6a499.js → HEIGHT_BOYS.zscore.monthly-94ed0692.js} +0 -0
  434. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-89dc5639.js → HEIGHT_BOYS.zscore.weekly-36322016.js} +0 -0
  435. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-65e70cbc.js → HEIGHT_BOYS.zscore.yearly-1c983ee9.js} +0 -0
  436. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-c4cc3c2a.js → HEIGHT_GIRLS.percentile.monthly-bf6a3f23.js} +0 -0
  437. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-c8f9da64.js → HEIGHT_GIRLS.percentile.weekly-d99621d9.js} +0 -0
  438. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-570a1d00.js → HEIGHT_GIRLS.percentile.yearly-6315aac2.js} +0 -0
  439. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-dc1e0bcc.js → HEIGHT_GIRLS.zscore.monthly-3ba59daa.js} +0 -0
  440. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-040b9b01.js → HEIGHT_GIRLS.zscore.weekly-7b20693f.js} +0 -0
  441. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-91ba1d25.js → HEIGHT_GIRLS.zscore.yearly-74dd9596.js} +0 -0
  442. /package/build/esm/{Locale-d7310364.js → Locale-b560a5c5.js} +0 -0
  443. /package/build/esm/{Visible-d710560d.js → Visible-76d39698.js} +0 -0
  444. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-fab28d20.js → WEIGHT_BOYS.percentile.monthly-c310d11b.js} +0 -0
  445. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-de369fb1.js → WEIGHT_BOYS.percentile.weekly-4bedc3fe.js} +0 -0
  446. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-7ae5b985.js → WEIGHT_BOYS.percentile.yearly-316fee5c.js} +0 -0
  447. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-bae1238a.js → WEIGHT_BOYS.zscore.monthly-97bcf5cf.js} +0 -0
  448. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-0983230f.js → WEIGHT_BOYS.zscore.weekly-507588a6.js} +0 -0
  449. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-a72f4a1b.js → WEIGHT_BOYS.zscore.yearly-385a6f35.js} +0 -0
  450. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-f71a0ff0.js → WEIGHT_GIRLS.percentile.monthly-7e7ac105.js} +0 -0
  451. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-11128a76.js → WEIGHT_GIRLS.percentile.weekly-0f86d75f.js} +0 -0
  452. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-99101c73.js → WEIGHT_GIRLS.percentile.yearly-559e92e8.js} +0 -0
  453. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-7623e333.js → WEIGHT_GIRLS.zscore.monthly-9e075152.js} +0 -0
  454. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-c64fd3da.js → WEIGHT_GIRLS.zscore.weekly-2ec1b077.js} +0 -0
  455. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-0ef7e62a.js → WEIGHT_GIRLS.zscore.yearly-346542a4.js} +0 -0
  456. /package/build/esm/{animation-21b26627.js → animation-3002f439.js} +0 -0
  457. /package/build/esm/{constants-42b3b0fd.js → constants-771c40e5.js} +0 -0
  458. /package/build/esm/{constants-143e041f.js → constants-8221bb8e.js} +0 -0
  459. /package/build/esm/{constants-d3cc6486.js → constants-d6e4ac53.js} +0 -0
  460. /package/build/esm/{dataTransform-7625c197.js → dataTransform-c250d1b0.js} +0 -0
  461. /package/build/esm/{doctor-fb7a5d6d.js → doctor-4717d2a1.js} +0 -0
  462. /package/build/esm/{index-12549790.js → index-18ba7c3b.js} +0 -0
  463. /package/build/esm/{index-f2eda711.js → index-79bb9112.js} +0 -0
  464. /package/build/esm/{index-3e08ffdd.js → index-a3603364.js} +0 -0
  465. /package/build/esm/{index-118ab15a.js → index-a55ed1b2.js} +0 -0
  466. /package/build/esm/{index-9df9bf68.js → index-baf81ff3.js} +0 -0
  467. /package/build/esm/{index-690a94ab.js → index-c4a07ec0.js} +0 -0
  468. /package/build/esm/{index-ccc1eecf.js → index-c9f1ff27.js} +0 -0
  469. /package/build/esm/{index-b8d685d1.js → index-ceb712f2.js} +0 -0
  470. /package/build/esm/{index-06190bfd.js → index-f9583635.js} +0 -0
  471. /package/build/esm/{index.styles-36bb2534.js → index.styles-609d01b4.js} +0 -0
  472. /package/build/esm/{localizeNumberFormat-f7ad3a7a.js → localizeNumberFormat-aa1d5d00.js} +0 -0
  473. /package/build/esm/{normalizeLink-d78e51b1.js → normalizeLink-0a770e99.js} +0 -0
  474. /package/build/esm/{other-15efeee8.js → other-0fc6630a.js} +0 -0
  475. /package/build/esm/{paths-703f6b81.js → paths-b688cf20.js} +0 -0
  476. /package/build/esm/{translationsContext-cea89c1e.js → translationsContext-fbcb999a.js} +0 -0
  477. /package/build/esm/{tslib.es6-821dec0c.js → tslib.es6-bbcb3f51.js} +0 -0
  478. /package/build/esm/{types-2a98e165.js → types-0d9e40f7.js} +0 -0
  479. /package/build/esm/{useIsInit-aaaa9a89.js → useIsInit-c9299cdc.js} +0 -0
  480. /package/build/esm/{useOutsideClick-d8d69481.js → useOutsideClick-8673305e.js} +0 -0
  481. /package/build/esm/{useScrollbarSize-a92a3040.js → useScrollbarSize-55d340cc.js} +0 -0
  482. /package/build/esm/{useUniqueId-d63c57d7.js → useUniqueId-b8e9d2eb.js} +0 -0
  483. /package/build/{index-2175a3c2.js → index-0c3926da.js} +0 -0
  484. /package/build/{index-4807a297.js → index-17fc679d.js} +0 -0
  485. /package/build/{index-0947d06c.js → index-5017ba77.js} +0 -0
  486. /package/build/{index-93b4b194.js → index-5ebc7f5c.js} +0 -0
  487. /package/build/{index-c94e9ef3.js → index-6226cfc7.js} +0 -0
  488. /package/build/{index-3fa4d1e6.js → index-9be6ea65.js} +0 -0
  489. /package/build/{index-01ec5d51.js → index-b7af960a.js} +0 -0
  490. /package/build/{index-d41f6ba6.js → index-cf44584e.js} +0 -0
  491. /package/build/{index-fa2446f9.js → index-f1375881.js} +0 -0
  492. /package/build/{index.styles-5e930683.js → index.styles-ace8fe37.js} +0 -0
  493. /package/build/{localizeNumberFormat-20194861.js → localizeNumberFormat-02a88c4f.js} +0 -0
  494. /package/build/{normalizeLink-df538be8.js → normalizeLink-df52725a.js} +0 -0
  495. /package/build/{other-ea48153d.js → other-57d47def.js} +0 -0
  496. /package/build/{paths-f7a8d8ab.js → paths-c2344362.js} +0 -0
  497. /package/build/{translationsContext-9c8e1955.js → translationsContext-0f5a303d.js} +0 -0
  498. /package/build/{tslib.es6-24969107.js → tslib.es6-d10a4c33.js} +0 -0
  499. /package/build/{types-3eed7f89.js → types-20502e40.js} +0 -0
  500. /package/build/{useIsInit-4d8dbd0b.js → useIsInit-78dfbe58.js} +0 -0
  501. /package/build/{useOutsideClick-efd2ae3b.js → useOutsideClick-6c5b23ec.js} +0 -0
  502. /package/build/{useScrollbarSize-274dc39d.js → useScrollbarSize-e46a33d4.js} +0 -0
  503. /package/build/{useUniqueId-1678130a.js → useUniqueId-bd464d6b.js} +0 -0
@@ -1,51 +1,55 @@
1
- import { a as __awaiter, _ as __rest } from './tslib.es6-821dec0c.js';
2
- import React__default, { createContext, useEffect } from 'react';
3
- import { I as Input, P as Phone, O as OTP, f as PasswordInput, R as Radio, E as ErrorBoundary } from './index-cc6e6e92.js';
4
- import { a as useSSOSteps, f as fetchSSOV2Api, w as websiteId, S as SSO_V2_PATHS, c as checkUserExist, u as useSSOV2Store, b as SSOStepTypeType, d as allAvailableAreaCodes, F as FacebookAppId, G as GoogleAuthClientId, h as handleAuthSuccess, g as getUserInfo, i as isUserFinishedSetup, e as updateUserInfo, r as resetPassword, j as redirect } from './store-9c076d73.js';
5
- export { u as useSSOV2Store } from './store-9c076d73.js';
1
+ import { a as __awaiter, _ as __rest } from './tslib.es6-bbcb3f51.js';
2
+ import React__default, { createContext, useEffect, useState, useMemo, useCallback, forwardRef } from 'react';
3
+ import { I as Input, s as styles, O as OTP, f as PasswordInput, R as Radio, E as ErrorBoundary } from './index-29fe3e99.js';
4
+ import { a as useSSOSteps, f as fetchSSOV2Api, w as websiteId, S as SSO_V2_PATHS, c as checkUserExist, u as useSSOV2Store, b as SSOStepTypeType, F as FacebookAppId, G as GoogleAuthClientId, h as handleAuthSuccess, g as getUserInfo, i as isUserFinishedSetup, d as updateUserInfo, r as resetPassword, e as redirect } from './store-0db9e34c.js';
5
+ export { u as useSSOV2Store } from './store-0db9e34c.js';
6
6
  import { ChevronLeft } from '@hhgtech/icons/arrow';
7
- import { Close } from '@hhgtech/icons/core';
8
- import { L as LogoIcon } from './logoIcon-a627d7da.js';
9
- import { B as Button } from './index-ebe27d0a.js';
10
- import { M as Modal } from './index-a2b9f2f7.js';
11
- import { Stack, Group } from '@mantine/core';
7
+ import { Close, Search } from '@hhgtech/icons/core';
8
+ import { L as LogoIcon } from './logoIcon-8dcdf7ab.js';
9
+ import { B as Button } from './index-1f0b396d.js';
10
+ import { M as Modal } from './index-6cd31878.js';
11
+ import { Stack, Group, Box } from '@mantine/core';
12
12
  import '@mantine/dates';
13
- import { L as LOCALE_SPECS, S as STATIC_PAGES } from './index-d13a9124.js';
14
- import './index-e50b3b39.js';
15
- import './index-3e08ffdd.js';
16
- import { s as showNotification } from './useMantineLocale-8554910a.js';
17
- import { T as Text } from './index-afeda425.js';
18
- import { u as useTranslations } from './index-bd228b5a.js';
13
+ import { L as LOCALE_SPECS, S as STATIC_PAGES } from './index-1051877b.js';
14
+ import './index-5e9ae7e0.js';
15
+ import './index-a3603364.js';
16
+ import { s as showNotification } from './useMantineLocale-f055c382.js';
17
+ import { T as Text } from './index-7cd68411.js';
18
+ import { u as useTranslations } from './index-3238adbd.js';
19
19
  import '@mantine/hooks';
20
- import './utils-4398270e.js';
21
- import './other-15efeee8.js';
22
- import './index-295ab799.js';
23
- import { L as LOCALE } from './Locale-d7310364.js';
24
- import { G as Google, F as Facebook } from './Google-c3bb89ec.js';
20
+ import './utils-670f38e9.js';
21
+ import './other-0fc6630a.js';
22
+ import './index-85b1fa77.js';
23
+ import { L as LOCALE } from './Locale-b560a5c5.js';
24
+ import { G as Google, F as Facebook } from './Google-178827ed.js';
25
+ import { parsePhoneNumber, getCountryCallingCode } from 'react-phone-number-input';
25
26
  import styled from '@emotion/styled';
26
- import { M as MAPPED_LOCALE } from './utils-2e8512eb.js';
27
- import { S as Spoiler } from './index-48517d44.js';
27
+ import cn from 'classnames';
28
+ import { CaretDown } from '@hhgtech/icons/other';
29
+ import debounce from 'lodash/debounce';
30
+ import throttle from 'lodash/throttle';
31
+ import { u as useScreenSize } from './useScreenSize-7988bd85.js';
32
+ import { Drawer } from 'vaul';
33
+ import { M as MAPPED_LOCALE } from './utils-54153b43.js';
34
+ import { S as Spoiler } from './index-345cb59e.js';
28
35
  import { domainLocales } from './constantsDomainLocales.js';
29
36
  import { useForm, yupResolver } from '@mantine/form';
30
37
  import * as yup from 'yup';
31
38
  import dayjs from 'dayjs';
32
- import { D as DatePicker } from './index-ab248046.js';
33
- import '@hhgtech/icons/other';
34
- import './useScreenSize-f0500314.js';
39
+ import { D as DatePicker } from './index-9d1e792e.js';
35
40
  import '@mantine/carousel';
36
41
  import './miscTheme.js';
37
- import 'classnames';
38
- import './useUniqueId-d63c57d7.js';
42
+ import './useUniqueId-b8e9d2eb.js';
39
43
  import './constantsSite.js';
40
44
  import 'zustand';
41
45
  import './constantsIsProduction.js';
42
- import './normalizeLink-d78e51b1.js';
46
+ import './normalizeLink-0a770e99.js';
43
47
  import './miscCookieHelper.js';
44
- import './index.styles-36bb2534.js';
48
+ import './index.styles-609d01b4.js';
45
49
  import 'date-fns/locale';
46
50
  import './constantsRiskScreener.js';
47
51
  import '@mantine/notifications';
48
- import './translationsContext-cea89c1e.js';
52
+ import './translationsContext-fbcb999a.js';
49
53
 
50
54
  const SSOStateContext = createContext({
51
55
  locale: LOCALE.Vietnam,
@@ -456,29 +460,15 @@ const SSOEmailScreen = ({ hidden, }) => {
456
460
  };
457
461
 
458
462
  const splitPhone = (phone) => {
459
- var _a, _b;
460
463
  if (!phone)
461
464
  return { areaCode: undefined, phoneNumber: undefined };
462
- let areaCode = '';
463
- let phoneNumber = phone;
464
- if (phone.startsWith('+')) {
465
- areaCode =
466
- ((_a = phone.match(new RegExp(`^\\+(${allAvailableAreaCodes
467
- .map((c) => c.replace('+', ''))
468
- .join('|')})`))) === null || _a === void 0 ? void 0 : _a[0]) || '';
469
- phoneNumber = phone.slice(areaCode.length);
470
- }
471
- else {
472
- areaCode =
473
- ((_b = phone.match(new RegExp(`^(${allAvailableAreaCodes
474
- .map((c) => c.replace('+', ''))
475
- .join('|')})`))) === null || _b === void 0 ? void 0 : _b[0]) || '';
476
- phoneNumber = phone.slice(areaCode.length);
477
- if (areaCode) {
478
- areaCode = `+${areaCode}`;
479
- }
480
- }
481
- return { areaCode, phoneNumber };
465
+ const parsedPhone = parsePhoneNumber(phone);
466
+ return {
467
+ areaCode: parsedPhone.countryCallingCode
468
+ ? '+' + parsedPhone.countryCallingCode
469
+ : '',
470
+ phoneNumber: parsedPhone.nationalNumber || '',
471
+ };
482
472
  };
483
473
 
484
474
  // "phone_number":"906911910",
@@ -632,7 +622,1408 @@ const MailIcon = (props) => (React__default.createElement("svg", Object.assign({
632
622
  React__default.createElement("clipPath", { id: "clip0_1284_30810" },
633
623
  React__default.createElement("rect", { width: "20", height: "20", fill: "white", transform: "translate(0.666992)" })))));
634
624
 
635
- const StyledPhone = styled(Phone) `
625
+ function createCommonjsModule(fn) {
626
+ var module = { exports: {} };
627
+ return fn(module, module.exports), module.exports;
628
+ }
629
+
630
+ /** @license React v16.13.1
631
+ * react-is.production.min.js
632
+ *
633
+ * Copyright (c) Facebook, Inc. and its affiliates.
634
+ *
635
+ * This source code is licensed under the MIT license found in the
636
+ * LICENSE file in the root directory of this source tree.
637
+ */
638
+ var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
639
+ Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
640
+ function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element=c;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r;var Portal=d;
641
+ var Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
642
+ var isMemo=function(a){return z(a)===r};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};
643
+ var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
644
+
645
+ var reactIs_production_min = {
646
+ AsyncMode: AsyncMode,
647
+ ConcurrentMode: ConcurrentMode,
648
+ ContextConsumer: ContextConsumer,
649
+ ContextProvider: ContextProvider,
650
+ Element: Element,
651
+ ForwardRef: ForwardRef,
652
+ Fragment: Fragment,
653
+ Lazy: Lazy,
654
+ Memo: Memo,
655
+ Portal: Portal,
656
+ Profiler: Profiler,
657
+ StrictMode: StrictMode,
658
+ Suspense: Suspense,
659
+ isAsyncMode: isAsyncMode,
660
+ isConcurrentMode: isConcurrentMode,
661
+ isContextConsumer: isContextConsumer,
662
+ isContextProvider: isContextProvider,
663
+ isElement: isElement,
664
+ isForwardRef: isForwardRef,
665
+ isFragment: isFragment,
666
+ isLazy: isLazy,
667
+ isMemo: isMemo,
668
+ isPortal: isPortal,
669
+ isProfiler: isProfiler,
670
+ isStrictMode: isStrictMode,
671
+ isSuspense: isSuspense,
672
+ isValidElementType: isValidElementType,
673
+ typeOf: typeOf
674
+ };
675
+
676
+ /** @license React v16.13.1
677
+ * react-is.development.js
678
+ *
679
+ * Copyright (c) Facebook, Inc. and its affiliates.
680
+ *
681
+ * This source code is licensed under the MIT license found in the
682
+ * LICENSE file in the root directory of this source tree.
683
+ */
684
+
685
+ var reactIs_development = createCommonjsModule(function (module, exports) {
686
+
687
+
688
+
689
+ if (process.env.NODE_ENV !== "production") {
690
+ (function() {
691
+
692
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
693
+ // nor polyfill, then a plain number is used for performance.
694
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
695
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
696
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
697
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
698
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
699
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
700
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
701
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
702
+ // (unstable) APIs that have been removed. Can we remove the symbols?
703
+
704
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
705
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
706
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
707
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
708
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
709
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
710
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
711
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
712
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
713
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
714
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
715
+
716
+ function isValidElementType(type) {
717
+ return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
718
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
719
+ }
720
+
721
+ function typeOf(object) {
722
+ if (typeof object === 'object' && object !== null) {
723
+ var $$typeof = object.$$typeof;
724
+
725
+ switch ($$typeof) {
726
+ case REACT_ELEMENT_TYPE:
727
+ var type = object.type;
728
+
729
+ switch (type) {
730
+ case REACT_ASYNC_MODE_TYPE:
731
+ case REACT_CONCURRENT_MODE_TYPE:
732
+ case REACT_FRAGMENT_TYPE:
733
+ case REACT_PROFILER_TYPE:
734
+ case REACT_STRICT_MODE_TYPE:
735
+ case REACT_SUSPENSE_TYPE:
736
+ return type;
737
+
738
+ default:
739
+ var $$typeofType = type && type.$$typeof;
740
+
741
+ switch ($$typeofType) {
742
+ case REACT_CONTEXT_TYPE:
743
+ case REACT_FORWARD_REF_TYPE:
744
+ case REACT_LAZY_TYPE:
745
+ case REACT_MEMO_TYPE:
746
+ case REACT_PROVIDER_TYPE:
747
+ return $$typeofType;
748
+
749
+ default:
750
+ return $$typeof;
751
+ }
752
+
753
+ }
754
+
755
+ case REACT_PORTAL_TYPE:
756
+ return $$typeof;
757
+ }
758
+ }
759
+
760
+ return undefined;
761
+ } // AsyncMode is deprecated along with isAsyncMode
762
+
763
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
764
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
765
+ var ContextConsumer = REACT_CONTEXT_TYPE;
766
+ var ContextProvider = REACT_PROVIDER_TYPE;
767
+ var Element = REACT_ELEMENT_TYPE;
768
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
769
+ var Fragment = REACT_FRAGMENT_TYPE;
770
+ var Lazy = REACT_LAZY_TYPE;
771
+ var Memo = REACT_MEMO_TYPE;
772
+ var Portal = REACT_PORTAL_TYPE;
773
+ var Profiler = REACT_PROFILER_TYPE;
774
+ var StrictMode = REACT_STRICT_MODE_TYPE;
775
+ var Suspense = REACT_SUSPENSE_TYPE;
776
+ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
777
+
778
+ function isAsyncMode(object) {
779
+ {
780
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
781
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
782
+
783
+ console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
784
+ }
785
+ }
786
+
787
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
788
+ }
789
+ function isConcurrentMode(object) {
790
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
791
+ }
792
+ function isContextConsumer(object) {
793
+ return typeOf(object) === REACT_CONTEXT_TYPE;
794
+ }
795
+ function isContextProvider(object) {
796
+ return typeOf(object) === REACT_PROVIDER_TYPE;
797
+ }
798
+ function isElement(object) {
799
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
800
+ }
801
+ function isForwardRef(object) {
802
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
803
+ }
804
+ function isFragment(object) {
805
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
806
+ }
807
+ function isLazy(object) {
808
+ return typeOf(object) === REACT_LAZY_TYPE;
809
+ }
810
+ function isMemo(object) {
811
+ return typeOf(object) === REACT_MEMO_TYPE;
812
+ }
813
+ function isPortal(object) {
814
+ return typeOf(object) === REACT_PORTAL_TYPE;
815
+ }
816
+ function isProfiler(object) {
817
+ return typeOf(object) === REACT_PROFILER_TYPE;
818
+ }
819
+ function isStrictMode(object) {
820
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
821
+ }
822
+ function isSuspense(object) {
823
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
824
+ }
825
+
826
+ exports.AsyncMode = AsyncMode;
827
+ exports.ConcurrentMode = ConcurrentMode;
828
+ exports.ContextConsumer = ContextConsumer;
829
+ exports.ContextProvider = ContextProvider;
830
+ exports.Element = Element;
831
+ exports.ForwardRef = ForwardRef;
832
+ exports.Fragment = Fragment;
833
+ exports.Lazy = Lazy;
834
+ exports.Memo = Memo;
835
+ exports.Portal = Portal;
836
+ exports.Profiler = Profiler;
837
+ exports.StrictMode = StrictMode;
838
+ exports.Suspense = Suspense;
839
+ exports.isAsyncMode = isAsyncMode;
840
+ exports.isConcurrentMode = isConcurrentMode;
841
+ exports.isContextConsumer = isContextConsumer;
842
+ exports.isContextProvider = isContextProvider;
843
+ exports.isElement = isElement;
844
+ exports.isForwardRef = isForwardRef;
845
+ exports.isFragment = isFragment;
846
+ exports.isLazy = isLazy;
847
+ exports.isMemo = isMemo;
848
+ exports.isPortal = isPortal;
849
+ exports.isProfiler = isProfiler;
850
+ exports.isStrictMode = isStrictMode;
851
+ exports.isSuspense = isSuspense;
852
+ exports.isValidElementType = isValidElementType;
853
+ exports.typeOf = typeOf;
854
+ })();
855
+ }
856
+ });
857
+
858
+ var reactIs = createCommonjsModule(function (module) {
859
+
860
+ if (process.env.NODE_ENV === 'production') {
861
+ module.exports = reactIs_production_min;
862
+ } else {
863
+ module.exports = reactIs_development;
864
+ }
865
+ });
866
+
867
+ /*
868
+ object-assign
869
+ (c) Sindre Sorhus
870
+ @license MIT
871
+ */
872
+ /* eslint-disable no-unused-vars */
873
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
874
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
875
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
876
+
877
+ function toObject(val) {
878
+ if (val === null || val === undefined) {
879
+ throw new TypeError('Object.assign cannot be called with null or undefined');
880
+ }
881
+
882
+ return Object(val);
883
+ }
884
+
885
+ function shouldUseNative() {
886
+ try {
887
+ if (!Object.assign) {
888
+ return false;
889
+ }
890
+
891
+ // Detect buggy property enumeration order in older V8 versions.
892
+
893
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
894
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
895
+ test1[5] = 'de';
896
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
897
+ return false;
898
+ }
899
+
900
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
901
+ var test2 = {};
902
+ for (var i = 0; i < 10; i++) {
903
+ test2['_' + String.fromCharCode(i)] = i;
904
+ }
905
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
906
+ return test2[n];
907
+ });
908
+ if (order2.join('') !== '0123456789') {
909
+ return false;
910
+ }
911
+
912
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
913
+ var test3 = {};
914
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
915
+ test3[letter] = letter;
916
+ });
917
+ if (Object.keys(Object.assign({}, test3)).join('') !==
918
+ 'abcdefghijklmnopqrst') {
919
+ return false;
920
+ }
921
+
922
+ return true;
923
+ } catch (err) {
924
+ // We don't expect any of the above to throw, but better to be safe.
925
+ return false;
926
+ }
927
+ }
928
+
929
+ var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
930
+ var from;
931
+ var to = toObject(target);
932
+ var symbols;
933
+
934
+ for (var s = 1; s < arguments.length; s++) {
935
+ from = Object(arguments[s]);
936
+
937
+ for (var key in from) {
938
+ if (hasOwnProperty.call(from, key)) {
939
+ to[key] = from[key];
940
+ }
941
+ }
942
+
943
+ if (getOwnPropertySymbols) {
944
+ symbols = getOwnPropertySymbols(from);
945
+ for (var i = 0; i < symbols.length; i++) {
946
+ if (propIsEnumerable.call(from, symbols[i])) {
947
+ to[symbols[i]] = from[symbols[i]];
948
+ }
949
+ }
950
+ }
951
+ }
952
+
953
+ return to;
954
+ };
955
+
956
+ /**
957
+ * Copyright (c) 2013-present, Facebook, Inc.
958
+ *
959
+ * This source code is licensed under the MIT license found in the
960
+ * LICENSE file in the root directory of this source tree.
961
+ */
962
+
963
+ var ReactPropTypesSecret$2 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
964
+
965
+ var ReactPropTypesSecret_1 = ReactPropTypesSecret$2;
966
+
967
+ var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
968
+
969
+ var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
970
+
971
+ var has$1 = has$2;
972
+
973
+ /**
974
+ * Copyright (c) 2013-present, Facebook, Inc.
975
+ *
976
+ * This source code is licensed under the MIT license found in the
977
+ * LICENSE file in the root directory of this source tree.
978
+ */
979
+
980
+ var printWarning$1 = function() {};
981
+
982
+ if (process.env.NODE_ENV !== 'production') {
983
+ var ReactPropTypesSecret = ReactPropTypesSecret$1;
984
+ var loggedTypeFailures = {};
985
+ var has = has$1;
986
+
987
+ printWarning$1 = function(text) {
988
+ var message = 'Warning: ' + text;
989
+ if (typeof console !== 'undefined') {
990
+ console.error(message);
991
+ }
992
+ try {
993
+ // --- Welcome to debugging React ---
994
+ // This error was thrown as a convenience so that you can use this stack
995
+ // to find the callsite that caused this warning to fire.
996
+ throw new Error(message);
997
+ } catch (x) { /**/ }
998
+ };
999
+ }
1000
+
1001
+ /**
1002
+ * Assert that the values match with the type specs.
1003
+ * Error messages are memorized and will only be shown once.
1004
+ *
1005
+ * @param {object} typeSpecs Map of name to a ReactPropType
1006
+ * @param {object} values Runtime values that need to be type-checked
1007
+ * @param {string} location e.g. "prop", "context", "child context"
1008
+ * @param {string} componentName Name of the component for error messages.
1009
+ * @param {?Function} getStack Returns the component stack.
1010
+ * @private
1011
+ */
1012
+ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
1013
+ if (process.env.NODE_ENV !== 'production') {
1014
+ for (var typeSpecName in typeSpecs) {
1015
+ if (has(typeSpecs, typeSpecName)) {
1016
+ var error;
1017
+ // Prop type validation may throw. In case they do, we don't want to
1018
+ // fail the render phase where it didn't fail before. So we log it.
1019
+ // After these have been cleaned up, we'll let them throw.
1020
+ try {
1021
+ // This is intentionally an invariant that gets caught. It's the same
1022
+ // behavior as without this statement except with a better message.
1023
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
1024
+ var err = Error(
1025
+ (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
1026
+ 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
1027
+ 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
1028
+ );
1029
+ err.name = 'Invariant Violation';
1030
+ throw err;
1031
+ }
1032
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
1033
+ } catch (ex) {
1034
+ error = ex;
1035
+ }
1036
+ if (error && !(error instanceof Error)) {
1037
+ printWarning$1(
1038
+ (componentName || 'React class') + ': type specification of ' +
1039
+ location + ' `' + typeSpecName + '` is invalid; the type checker ' +
1040
+ 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
1041
+ 'You may have forgotten to pass an argument to the type checker ' +
1042
+ 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
1043
+ 'shape all require an argument).'
1044
+ );
1045
+ }
1046
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
1047
+ // Only monitor this failure once because there tends to be a lot of the
1048
+ // same error.
1049
+ loggedTypeFailures[error.message] = true;
1050
+
1051
+ var stack = getStack ? getStack() : '';
1052
+
1053
+ printWarning$1(
1054
+ 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
1055
+ );
1056
+ }
1057
+ }
1058
+ }
1059
+ }
1060
+ }
1061
+
1062
+ /**
1063
+ * Resets warning cache when testing.
1064
+ *
1065
+ * @private
1066
+ */
1067
+ checkPropTypes$1.resetWarningCache = function() {
1068
+ if (process.env.NODE_ENV !== 'production') {
1069
+ loggedTypeFailures = {};
1070
+ }
1071
+ };
1072
+
1073
+ var checkPropTypes_1 = checkPropTypes$1;
1074
+
1075
+ var checkPropTypes = checkPropTypes_1;
1076
+
1077
+ /**
1078
+ * Copyright (c) 2013-present, Facebook, Inc.
1079
+ *
1080
+ * This source code is licensed under the MIT license found in the
1081
+ * LICENSE file in the root directory of this source tree.
1082
+ */
1083
+
1084
+
1085
+
1086
+
1087
+
1088
+
1089
+
1090
+
1091
+ var printWarning = function() {};
1092
+
1093
+ if (process.env.NODE_ENV !== 'production') {
1094
+ printWarning = function(text) {
1095
+ var message = 'Warning: ' + text;
1096
+ if (typeof console !== 'undefined') {
1097
+ console.error(message);
1098
+ }
1099
+ try {
1100
+ // --- Welcome to debugging React ---
1101
+ // This error was thrown as a convenience so that you can use this stack
1102
+ // to find the callsite that caused this warning to fire.
1103
+ throw new Error(message);
1104
+ } catch (x) {}
1105
+ };
1106
+ }
1107
+
1108
+ function emptyFunctionThatReturnsNull() {
1109
+ return null;
1110
+ }
1111
+
1112
+ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
1113
+ /* global Symbol */
1114
+ var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
1115
+ var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
1116
+
1117
+ /**
1118
+ * Returns the iterator method function contained on the iterable object.
1119
+ *
1120
+ * Be sure to invoke the function with the iterable as context:
1121
+ *
1122
+ * var iteratorFn = getIteratorFn(myIterable);
1123
+ * if (iteratorFn) {
1124
+ * var iterator = iteratorFn.call(myIterable);
1125
+ * ...
1126
+ * }
1127
+ *
1128
+ * @param {?object} maybeIterable
1129
+ * @return {?function}
1130
+ */
1131
+ function getIteratorFn(maybeIterable) {
1132
+ var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
1133
+ if (typeof iteratorFn === 'function') {
1134
+ return iteratorFn;
1135
+ }
1136
+ }
1137
+
1138
+ /**
1139
+ * Collection of methods that allow declaration and validation of props that are
1140
+ * supplied to React components. Example usage:
1141
+ *
1142
+ * var Props = require('ReactPropTypes');
1143
+ * var MyArticle = React.createClass({
1144
+ * propTypes: {
1145
+ * // An optional string prop named "description".
1146
+ * description: Props.string,
1147
+ *
1148
+ * // A required enum prop named "category".
1149
+ * category: Props.oneOf(['News','Photos']).isRequired,
1150
+ *
1151
+ * // A prop named "dialog" that requires an instance of Dialog.
1152
+ * dialog: Props.instanceOf(Dialog).isRequired
1153
+ * },
1154
+ * render: function() { ... }
1155
+ * });
1156
+ *
1157
+ * A more formal specification of how these methods are used:
1158
+ *
1159
+ * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
1160
+ * decl := ReactPropTypes.{type}(.isRequired)?
1161
+ *
1162
+ * Each and every declaration produces a function with the same signature. This
1163
+ * allows the creation of custom validation functions. For example:
1164
+ *
1165
+ * var MyLink = React.createClass({
1166
+ * propTypes: {
1167
+ * // An optional string or URI prop named "href".
1168
+ * href: function(props, propName, componentName) {
1169
+ * var propValue = props[propName];
1170
+ * if (propValue != null && typeof propValue !== 'string' &&
1171
+ * !(propValue instanceof URI)) {
1172
+ * return new Error(
1173
+ * 'Expected a string or an URI for ' + propName + ' in ' +
1174
+ * componentName
1175
+ * );
1176
+ * }
1177
+ * }
1178
+ * },
1179
+ * render: function() {...}
1180
+ * });
1181
+ *
1182
+ * @internal
1183
+ */
1184
+
1185
+ var ANONYMOUS = '<<anonymous>>';
1186
+
1187
+ // Important!
1188
+ // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
1189
+ var ReactPropTypes = {
1190
+ array: createPrimitiveTypeChecker('array'),
1191
+ bigint: createPrimitiveTypeChecker('bigint'),
1192
+ bool: createPrimitiveTypeChecker('boolean'),
1193
+ func: createPrimitiveTypeChecker('function'),
1194
+ number: createPrimitiveTypeChecker('number'),
1195
+ object: createPrimitiveTypeChecker('object'),
1196
+ string: createPrimitiveTypeChecker('string'),
1197
+ symbol: createPrimitiveTypeChecker('symbol'),
1198
+
1199
+ any: createAnyTypeChecker(),
1200
+ arrayOf: createArrayOfTypeChecker,
1201
+ element: createElementTypeChecker(),
1202
+ elementType: createElementTypeTypeChecker(),
1203
+ instanceOf: createInstanceTypeChecker,
1204
+ node: createNodeChecker(),
1205
+ objectOf: createObjectOfTypeChecker,
1206
+ oneOf: createEnumTypeChecker,
1207
+ oneOfType: createUnionTypeChecker,
1208
+ shape: createShapeTypeChecker,
1209
+ exact: createStrictShapeTypeChecker,
1210
+ };
1211
+
1212
+ /**
1213
+ * inlined Object.is polyfill to avoid requiring consumers ship their own
1214
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
1215
+ */
1216
+ /*eslint-disable no-self-compare*/
1217
+ function is(x, y) {
1218
+ // SameValue algorithm
1219
+ if (x === y) {
1220
+ // Steps 1-5, 7-10
1221
+ // Steps 6.b-6.e: +0 != -0
1222
+ return x !== 0 || 1 / x === 1 / y;
1223
+ } else {
1224
+ // Step 6.a: NaN == NaN
1225
+ return x !== x && y !== y;
1226
+ }
1227
+ }
1228
+ /*eslint-enable no-self-compare*/
1229
+
1230
+ /**
1231
+ * We use an Error-like object for backward compatibility as people may call
1232
+ * PropTypes directly and inspect their output. However, we don't use real
1233
+ * Errors anymore. We don't inspect their stack anyway, and creating them
1234
+ * is prohibitively expensive if they are created too often, such as what
1235
+ * happens in oneOfType() for any type before the one that matched.
1236
+ */
1237
+ function PropTypeError(message, data) {
1238
+ this.message = message;
1239
+ this.data = data && typeof data === 'object' ? data: {};
1240
+ this.stack = '';
1241
+ }
1242
+ // Make `instanceof Error` still work for returned errors.
1243
+ PropTypeError.prototype = Error.prototype;
1244
+
1245
+ function createChainableTypeChecker(validate) {
1246
+ if (process.env.NODE_ENV !== 'production') {
1247
+ var manualPropTypeCallCache = {};
1248
+ var manualPropTypeWarningCount = 0;
1249
+ }
1250
+ function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
1251
+ componentName = componentName || ANONYMOUS;
1252
+ propFullName = propFullName || propName;
1253
+
1254
+ if (secret !== ReactPropTypesSecret$1) {
1255
+ if (throwOnDirectAccess) {
1256
+ // New behavior only for users of `prop-types` package
1257
+ var err = new Error(
1258
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1259
+ 'Use `PropTypes.checkPropTypes()` to call them. ' +
1260
+ 'Read more at http://fb.me/use-check-prop-types'
1261
+ );
1262
+ err.name = 'Invariant Violation';
1263
+ throw err;
1264
+ } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
1265
+ // Old behavior for people using React.PropTypes
1266
+ var cacheKey = componentName + ':' + propName;
1267
+ if (
1268
+ !manualPropTypeCallCache[cacheKey] &&
1269
+ // Avoid spamming the console because they are often not actionable except for lib authors
1270
+ manualPropTypeWarningCount < 3
1271
+ ) {
1272
+ printWarning(
1273
+ 'You are manually calling a React.PropTypes validation ' +
1274
+ 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
1275
+ 'and will throw in the standalone `prop-types` package. ' +
1276
+ 'You may be seeing this warning due to a third-party PropTypes ' +
1277
+ 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
1278
+ );
1279
+ manualPropTypeCallCache[cacheKey] = true;
1280
+ manualPropTypeWarningCount++;
1281
+ }
1282
+ }
1283
+ }
1284
+ if (props[propName] == null) {
1285
+ if (isRequired) {
1286
+ if (props[propName] === null) {
1287
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
1288
+ }
1289
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
1290
+ }
1291
+ return null;
1292
+ } else {
1293
+ return validate(props, propName, componentName, location, propFullName);
1294
+ }
1295
+ }
1296
+
1297
+ var chainedCheckType = checkType.bind(null, false);
1298
+ chainedCheckType.isRequired = checkType.bind(null, true);
1299
+
1300
+ return chainedCheckType;
1301
+ }
1302
+
1303
+ function createPrimitiveTypeChecker(expectedType) {
1304
+ function validate(props, propName, componentName, location, propFullName, secret) {
1305
+ var propValue = props[propName];
1306
+ var propType = getPropType(propValue);
1307
+ if (propType !== expectedType) {
1308
+ // `propValue` being instance of, say, date/regexp, pass the 'object'
1309
+ // check, but we can offer a more precise error message here rather than
1310
+ // 'of type `object`'.
1311
+ var preciseType = getPreciseType(propValue);
1312
+
1313
+ return new PropTypeError(
1314
+ 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
1315
+ {expectedType: expectedType}
1316
+ );
1317
+ }
1318
+ return null;
1319
+ }
1320
+ return createChainableTypeChecker(validate);
1321
+ }
1322
+
1323
+ function createAnyTypeChecker() {
1324
+ return createChainableTypeChecker(emptyFunctionThatReturnsNull);
1325
+ }
1326
+
1327
+ function createArrayOfTypeChecker(typeChecker) {
1328
+ function validate(props, propName, componentName, location, propFullName) {
1329
+ if (typeof typeChecker !== 'function') {
1330
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
1331
+ }
1332
+ var propValue = props[propName];
1333
+ if (!Array.isArray(propValue)) {
1334
+ var propType = getPropType(propValue);
1335
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
1336
+ }
1337
+ for (var i = 0; i < propValue.length; i++) {
1338
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret$1);
1339
+ if (error instanceof Error) {
1340
+ return error;
1341
+ }
1342
+ }
1343
+ return null;
1344
+ }
1345
+ return createChainableTypeChecker(validate);
1346
+ }
1347
+
1348
+ function createElementTypeChecker() {
1349
+ function validate(props, propName, componentName, location, propFullName) {
1350
+ var propValue = props[propName];
1351
+ if (!isValidElement(propValue)) {
1352
+ var propType = getPropType(propValue);
1353
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
1354
+ }
1355
+ return null;
1356
+ }
1357
+ return createChainableTypeChecker(validate);
1358
+ }
1359
+
1360
+ function createElementTypeTypeChecker() {
1361
+ function validate(props, propName, componentName, location, propFullName) {
1362
+ var propValue = props[propName];
1363
+ if (!reactIs.isValidElementType(propValue)) {
1364
+ var propType = getPropType(propValue);
1365
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
1366
+ }
1367
+ return null;
1368
+ }
1369
+ return createChainableTypeChecker(validate);
1370
+ }
1371
+
1372
+ function createInstanceTypeChecker(expectedClass) {
1373
+ function validate(props, propName, componentName, location, propFullName) {
1374
+ if (!(props[propName] instanceof expectedClass)) {
1375
+ var expectedClassName = expectedClass.name || ANONYMOUS;
1376
+ var actualClassName = getClassName(props[propName]);
1377
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
1378
+ }
1379
+ return null;
1380
+ }
1381
+ return createChainableTypeChecker(validate);
1382
+ }
1383
+
1384
+ function createEnumTypeChecker(expectedValues) {
1385
+ if (!Array.isArray(expectedValues)) {
1386
+ if (process.env.NODE_ENV !== 'production') {
1387
+ if (arguments.length > 1) {
1388
+ printWarning(
1389
+ 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
1390
+ 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
1391
+ );
1392
+ } else {
1393
+ printWarning('Invalid argument supplied to oneOf, expected an array.');
1394
+ }
1395
+ }
1396
+ return emptyFunctionThatReturnsNull;
1397
+ }
1398
+
1399
+ function validate(props, propName, componentName, location, propFullName) {
1400
+ var propValue = props[propName];
1401
+ for (var i = 0; i < expectedValues.length; i++) {
1402
+ if (is(propValue, expectedValues[i])) {
1403
+ return null;
1404
+ }
1405
+ }
1406
+
1407
+ var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
1408
+ var type = getPreciseType(value);
1409
+ if (type === 'symbol') {
1410
+ return String(value);
1411
+ }
1412
+ return value;
1413
+ });
1414
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
1415
+ }
1416
+ return createChainableTypeChecker(validate);
1417
+ }
1418
+
1419
+ function createObjectOfTypeChecker(typeChecker) {
1420
+ function validate(props, propName, componentName, location, propFullName) {
1421
+ if (typeof typeChecker !== 'function') {
1422
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
1423
+ }
1424
+ var propValue = props[propName];
1425
+ var propType = getPropType(propValue);
1426
+ if (propType !== 'object') {
1427
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
1428
+ }
1429
+ for (var key in propValue) {
1430
+ if (has$1(propValue, key)) {
1431
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
1432
+ if (error instanceof Error) {
1433
+ return error;
1434
+ }
1435
+ }
1436
+ }
1437
+ return null;
1438
+ }
1439
+ return createChainableTypeChecker(validate);
1440
+ }
1441
+
1442
+ function createUnionTypeChecker(arrayOfTypeCheckers) {
1443
+ if (!Array.isArray(arrayOfTypeCheckers)) {
1444
+ process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
1445
+ return emptyFunctionThatReturnsNull;
1446
+ }
1447
+
1448
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1449
+ var checker = arrayOfTypeCheckers[i];
1450
+ if (typeof checker !== 'function') {
1451
+ printWarning(
1452
+ 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
1453
+ 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
1454
+ );
1455
+ return emptyFunctionThatReturnsNull;
1456
+ }
1457
+ }
1458
+
1459
+ function validate(props, propName, componentName, location, propFullName) {
1460
+ var expectedTypes = [];
1461
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1462
+ var checker = arrayOfTypeCheckers[i];
1463
+ var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$1);
1464
+ if (checkerResult == null) {
1465
+ return null;
1466
+ }
1467
+ if (checkerResult.data && has$1(checkerResult.data, 'expectedType')) {
1468
+ expectedTypes.push(checkerResult.data.expectedType);
1469
+ }
1470
+ }
1471
+ var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
1472
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
1473
+ }
1474
+ return createChainableTypeChecker(validate);
1475
+ }
1476
+
1477
+ function createNodeChecker() {
1478
+ function validate(props, propName, componentName, location, propFullName) {
1479
+ if (!isNode(props[propName])) {
1480
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
1481
+ }
1482
+ return null;
1483
+ }
1484
+ return createChainableTypeChecker(validate);
1485
+ }
1486
+
1487
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
1488
+ return new PropTypeError(
1489
+ (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
1490
+ 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
1491
+ );
1492
+ }
1493
+
1494
+ function createShapeTypeChecker(shapeTypes) {
1495
+ function validate(props, propName, componentName, location, propFullName) {
1496
+ var propValue = props[propName];
1497
+ var propType = getPropType(propValue);
1498
+ if (propType !== 'object') {
1499
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1500
+ }
1501
+ for (var key in shapeTypes) {
1502
+ var checker = shapeTypes[key];
1503
+ if (typeof checker !== 'function') {
1504
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1505
+ }
1506
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
1507
+ if (error) {
1508
+ return error;
1509
+ }
1510
+ }
1511
+ return null;
1512
+ }
1513
+ return createChainableTypeChecker(validate);
1514
+ }
1515
+
1516
+ function createStrictShapeTypeChecker(shapeTypes) {
1517
+ function validate(props, propName, componentName, location, propFullName) {
1518
+ var propValue = props[propName];
1519
+ var propType = getPropType(propValue);
1520
+ if (propType !== 'object') {
1521
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1522
+ }
1523
+ // We need to check all keys in case some are required but missing from props.
1524
+ var allKeys = objectAssign({}, props[propName], shapeTypes);
1525
+ for (var key in allKeys) {
1526
+ var checker = shapeTypes[key];
1527
+ if (has$1(shapeTypes, key) && typeof checker !== 'function') {
1528
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1529
+ }
1530
+ if (!checker) {
1531
+ return new PropTypeError(
1532
+ 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
1533
+ '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
1534
+ '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1535
+ );
1536
+ }
1537
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
1538
+ if (error) {
1539
+ return error;
1540
+ }
1541
+ }
1542
+ return null;
1543
+ }
1544
+
1545
+ return createChainableTypeChecker(validate);
1546
+ }
1547
+
1548
+ function isNode(propValue) {
1549
+ switch (typeof propValue) {
1550
+ case 'number':
1551
+ case 'string':
1552
+ case 'undefined':
1553
+ return true;
1554
+ case 'boolean':
1555
+ return !propValue;
1556
+ case 'object':
1557
+ if (Array.isArray(propValue)) {
1558
+ return propValue.every(isNode);
1559
+ }
1560
+ if (propValue === null || isValidElement(propValue)) {
1561
+ return true;
1562
+ }
1563
+
1564
+ var iteratorFn = getIteratorFn(propValue);
1565
+ if (iteratorFn) {
1566
+ var iterator = iteratorFn.call(propValue);
1567
+ var step;
1568
+ if (iteratorFn !== propValue.entries) {
1569
+ while (!(step = iterator.next()).done) {
1570
+ if (!isNode(step.value)) {
1571
+ return false;
1572
+ }
1573
+ }
1574
+ } else {
1575
+ // Iterator will provide entry [k,v] tuples rather than values.
1576
+ while (!(step = iterator.next()).done) {
1577
+ var entry = step.value;
1578
+ if (entry) {
1579
+ if (!isNode(entry[1])) {
1580
+ return false;
1581
+ }
1582
+ }
1583
+ }
1584
+ }
1585
+ } else {
1586
+ return false;
1587
+ }
1588
+
1589
+ return true;
1590
+ default:
1591
+ return false;
1592
+ }
1593
+ }
1594
+
1595
+ function isSymbol(propType, propValue) {
1596
+ // Native Symbol.
1597
+ if (propType === 'symbol') {
1598
+ return true;
1599
+ }
1600
+
1601
+ // falsy value can't be a Symbol
1602
+ if (!propValue) {
1603
+ return false;
1604
+ }
1605
+
1606
+ // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1607
+ if (propValue['@@toStringTag'] === 'Symbol') {
1608
+ return true;
1609
+ }
1610
+
1611
+ // Fallback for non-spec compliant Symbols which are polyfilled.
1612
+ if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1613
+ return true;
1614
+ }
1615
+
1616
+ return false;
1617
+ }
1618
+
1619
+ // Equivalent of `typeof` but with special handling for array and regexp.
1620
+ function getPropType(propValue) {
1621
+ var propType = typeof propValue;
1622
+ if (Array.isArray(propValue)) {
1623
+ return 'array';
1624
+ }
1625
+ if (propValue instanceof RegExp) {
1626
+ // Old webkits (at least until Android 4.0) return 'function' rather than
1627
+ // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1628
+ // passes PropTypes.object.
1629
+ return 'object';
1630
+ }
1631
+ if (isSymbol(propType, propValue)) {
1632
+ return 'symbol';
1633
+ }
1634
+ return propType;
1635
+ }
1636
+
1637
+ // This handles more types than `getPropType`. Only used for error messages.
1638
+ // See `createPrimitiveTypeChecker`.
1639
+ function getPreciseType(propValue) {
1640
+ if (typeof propValue === 'undefined' || propValue === null) {
1641
+ return '' + propValue;
1642
+ }
1643
+ var propType = getPropType(propValue);
1644
+ if (propType === 'object') {
1645
+ if (propValue instanceof Date) {
1646
+ return 'date';
1647
+ } else if (propValue instanceof RegExp) {
1648
+ return 'regexp';
1649
+ }
1650
+ }
1651
+ return propType;
1652
+ }
1653
+
1654
+ // Returns a string that is postfixed to a warning about an invalid type.
1655
+ // For example, "undefined" or "of type array"
1656
+ function getPostfixForTypeWarning(value) {
1657
+ var type = getPreciseType(value);
1658
+ switch (type) {
1659
+ case 'array':
1660
+ case 'object':
1661
+ return 'an ' + type;
1662
+ case 'boolean':
1663
+ case 'date':
1664
+ case 'regexp':
1665
+ return 'a ' + type;
1666
+ default:
1667
+ return type;
1668
+ }
1669
+ }
1670
+
1671
+ // Returns class name of the object, if any.
1672
+ function getClassName(propValue) {
1673
+ if (!propValue.constructor || !propValue.constructor.name) {
1674
+ return ANONYMOUS;
1675
+ }
1676
+ return propValue.constructor.name;
1677
+ }
1678
+
1679
+ ReactPropTypes.checkPropTypes = checkPropTypes;
1680
+ ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1681
+ ReactPropTypes.PropTypes = ReactPropTypes;
1682
+
1683
+ return ReactPropTypes;
1684
+ };
1685
+
1686
+ /**
1687
+ * Copyright (c) 2013-present, Facebook, Inc.
1688
+ *
1689
+ * This source code is licensed under the MIT license found in the
1690
+ * LICENSE file in the root directory of this source tree.
1691
+ */
1692
+
1693
+
1694
+
1695
+ function emptyFunction() {}
1696
+ function emptyFunctionWithReset() {}
1697
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
1698
+
1699
+ var factoryWithThrowingShims = function() {
1700
+ function shim(props, propName, componentName, location, propFullName, secret) {
1701
+ if (secret === ReactPropTypesSecret$1) {
1702
+ // It is still safe when called from React.
1703
+ return;
1704
+ }
1705
+ var err = new Error(
1706
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1707
+ 'Use PropTypes.checkPropTypes() to call them. ' +
1708
+ 'Read more at http://fb.me/use-check-prop-types'
1709
+ );
1710
+ err.name = 'Invariant Violation';
1711
+ throw err;
1712
+ } shim.isRequired = shim;
1713
+ function getShim() {
1714
+ return shim;
1715
+ } // Important!
1716
+ // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1717
+ var ReactPropTypes = {
1718
+ array: shim,
1719
+ bigint: shim,
1720
+ bool: shim,
1721
+ func: shim,
1722
+ number: shim,
1723
+ object: shim,
1724
+ string: shim,
1725
+ symbol: shim,
1726
+
1727
+ any: shim,
1728
+ arrayOf: getShim,
1729
+ element: shim,
1730
+ elementType: shim,
1731
+ instanceOf: getShim,
1732
+ node: shim,
1733
+ objectOf: getShim,
1734
+ oneOf: getShim,
1735
+ oneOfType: getShim,
1736
+ shape: getShim,
1737
+ exact: getShim,
1738
+
1739
+ checkPropTypes: emptyFunctionWithReset,
1740
+ resetWarningCache: emptyFunction
1741
+ };
1742
+
1743
+ ReactPropTypes.PropTypes = ReactPropTypes;
1744
+
1745
+ return ReactPropTypes;
1746
+ };
1747
+
1748
+ var require$$1 = factoryWithTypeCheckers;
1749
+
1750
+ var require$$2 = factoryWithThrowingShims;
1751
+
1752
+ /**
1753
+ * Copyright (c) 2013-present, Facebook, Inc.
1754
+ *
1755
+ * This source code is licensed under the MIT license found in the
1756
+ * LICENSE file in the root directory of this source tree.
1757
+ */
1758
+
1759
+ var propTypes = createCommonjsModule(function (module) {
1760
+ if (process.env.NODE_ENV !== 'production') {
1761
+ var ReactIs = reactIs;
1762
+
1763
+ // By explicitly using `prop-types` you are opting into new development behavior.
1764
+ // http://fb.me/prop-types-in-prod
1765
+ var throwOnDirectAccess = true;
1766
+ module.exports = require$$1(ReactIs.isElement, throwOnDirectAccess);
1767
+ } else {
1768
+ // By explicitly using `prop-types` you are opting into new production behavior.
1769
+ // http://fb.me/prop-types-in-prod
1770
+ module.exports = require$$2();
1771
+ }
1772
+ });
1773
+
1774
+ var PropTypes = propTypes;
1775
+
1776
+ function CountrySelectWithIcon(_a) {
1777
+ var { value, options, className, iconComponent: Icon,
1778
+ // getIconAspectRatio,
1779
+ arrowComponent: Arrow = DefaultArrowComponent, onChange, disabled, readOnly } = _a, rest = __rest(_a, ["value", "options", "className", "iconComponent", "arrowComponent", "onChange", "disabled", "readOnly"]);
1780
+ const [open, setOpen] = useState(false);
1781
+ const [modalStyle, setModalStyle] = useState({});
1782
+ const { isMobile } = useScreenSize();
1783
+ const [search, setSearch] = useState('');
1784
+ const selectedOption = useMemo(() => {
1785
+ return getSelectedOption(options, value);
1786
+ }, [options, value]);
1787
+ const selectedCallingCode = useMemo(() => {
1788
+ if (!selectedOption.value)
1789
+ return '';
1790
+ const code = getCountryCallingCode(selectedOption.value);
1791
+ if (code) {
1792
+ return `+${code}`;
1793
+ }
1794
+ return '';
1795
+ }, [selectedOption]);
1796
+ const onChange_ = useCallback((value) => {
1797
+ onChange(value === 'ZZ' ? undefined : value);
1798
+ }, [onChange]);
1799
+ const countryDivRef = React__default.useRef(null);
1800
+ const [filteredOptions, setFilteredOptions] = useState(() => options.filter((o) => o.value));
1801
+ const debounceSearch = useMemo(() => debounce((search, options) => {
1802
+ if (!search)
1803
+ return setFilteredOptions(options.filter((o) => o.value));
1804
+ const searchKeys = search
1805
+ .split(/[\s,;:]+/gi)
1806
+ .filter((s) => !!s.trim())
1807
+ .map((s) => s.trim().replace(/\+/gi, '').toLowerCase());
1808
+ if (!searchKeys.length)
1809
+ return setFilteredOptions(options.filter((o) => o.value));
1810
+ const matched = (value) => {
1811
+ if (!value)
1812
+ return false;
1813
+ return searchKeys.some((key) => {
1814
+ return value.toLowerCase().includes(key);
1815
+ });
1816
+ };
1817
+ const filtered = options.filter((option) => {
1818
+ const code = option.value ? getCountryCallingCode(option.value) : '';
1819
+ return matched(option.value) || matched(option.label) || matched(code);
1820
+ });
1821
+ setFilteredOptions(filtered.filter((o) => o.value));
1822
+ }, 200), []);
1823
+ useEffect(() => {
1824
+ debounceSearch(search, options);
1825
+ }, [options, search]);
1826
+ useEffect(() => {
1827
+ setSearch('');
1828
+ if (open) {
1829
+ function positionCountrySelect() {
1830
+ const rect = countryDivRef.current.getBoundingClientRect();
1831
+ setModalStyle({
1832
+ top: rect.top + rect.height,
1833
+ left: rect.left,
1834
+ width: countryDivRef.current.parentElement.clientWidth,
1835
+ maxHeight: window.innerHeight - rect.top - rect.height,
1836
+ });
1837
+ }
1838
+ const throttled = throttle(positionCountrySelect, 200);
1839
+ window.addEventListener('resize', throttled, {
1840
+ passive: true,
1841
+ });
1842
+ positionCountrySelect();
1843
+ return () => {
1844
+ window.removeEventListener('resize', throttled);
1845
+ };
1846
+ }
1847
+ }, [open]);
1848
+ useEffect(() => {
1849
+ if (disabled || readOnly) {
1850
+ setOpen(false);
1851
+ }
1852
+ }, [disabled, readOnly]);
1853
+ const SelectCountryContent = (React__default.createElement(Stack, { spacing: 24 },
1854
+ React__default.createElement(Stack, { spacing: 8 },
1855
+ React__default.createElement(Text, { size: "s4" }, "Country Code"),
1856
+ React__default.createElement(Input, { size: "lg", placeholder: "Search country/region", icon: React__default.createElement(Search, null), value: search, onChange: (value) => setSearch(value) })),
1857
+ !!(selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) && (React__default.createElement(Stack, { spacing: 0 },
1858
+ React__default.createElement(Text, { size: "s4" }, "Current selection"),
1859
+ React__default.createElement(SelectCountryItem, { Icon: Icon, option: selectedOption, onSelect: (option) => {
1860
+ onChange_(option.value);
1861
+ setOpen(false);
1862
+ } }))),
1863
+ React__default.createElement(Stack, { spacing: 0 },
1864
+ React__default.createElement(Text, { size: "s4" }, "All Countries"),
1865
+ filteredOptions.map((option) => (React__default.createElement(SelectCountryItem, { Icon: Icon, option: option, key: option.value, onSelect: (option) => {
1866
+ onChange_(option.value);
1867
+ setOpen(false);
1868
+ }, selected: selectedOption.value === option.value }))))));
1869
+ return (React__default.createElement(React__default.Fragment, null,
1870
+ React__default.createElement("div", { className: "PhoneInputCountry", ref: countryDivRef },
1871
+ React__default.createElement("div", Object.assign({}, rest, { className: cn('PhoneInputCountrySelect', className), onClick: () => {
1872
+ if (!disabled && !readOnly) {
1873
+ setOpen(!open);
1874
+ }
1875
+ } })),
1876
+ React__default.createElement(Group, { spacing: 6, align: "center" },
1877
+ selectedOption && (React__default.createElement(React__default.Fragment, null,
1878
+ React__default.createElement(Icon, { "aria-hidden": true, country: value, label: selectedOption.label, style: {
1879
+ minWidth: 'unset',
1880
+ } }),
1881
+ React__default.createElement(Text, { size: "p2" }, selectedCallingCode))),
1882
+ React__default.createElement(Arrow, null))),
1883
+ open &&
1884
+ (isMobile ? (React__default.createElement(Drawer.Root, { open: open, onOpenChange: (o) => setOpen(o) },
1885
+ React__default.createElement(Drawer.Portal, null,
1886
+ React__default.createElement(Drawer.Overlay, { "data-testid": "overlay", style: {
1887
+ zIndex: 99999999998,
1888
+ position: 'fixed',
1889
+ background: 'rgba(0, 0, 0, 0.4)',
1890
+ inset: 0,
1891
+ } }),
1892
+ React__default.createElement(Drawer.Content, { "data-testid": "fully-controlled-content", style: {
1893
+ zIndex: 99999999999,
1894
+ position: 'fixed',
1895
+ bottom: 0,
1896
+ left: 0,
1897
+ right: 0,
1898
+ backgroundColor: 'white',
1899
+ height: 'calc(100% - 120px)',
1900
+ display: 'flex',
1901
+ padding: '32px 0 0',
1902
+ flexDirection: 'column',
1903
+ borderTopLeftRadius: 10,
1904
+ borderTopRightRadius: 10,
1905
+ } },
1906
+ React__default.createElement(Drawer.Handle, { style: {
1907
+ flexShrink: 0,
1908
+ cursor: 'pointer',
1909
+ backgroundColor: '#ADB3BC',
1910
+ width: 44,
1911
+ height: 2,
1912
+ transform: 'translateY(-22px)',
1913
+ } }),
1914
+ React__default.createElement(Box, { sx: {
1915
+ flex: 1,
1916
+ padding: '0 24px 32px',
1917
+ overflow: 'auto',
1918
+ } }, SelectCountryContent))))) : (React__default.createElement(React__default.Fragment, null,
1919
+ React__default.createElement("div", { style: {
1920
+ position: 'fixed',
1921
+ top: 0,
1922
+ left: 0,
1923
+ width: '100%',
1924
+ height: '100%',
1925
+ zIndex: 99999998,
1926
+ }, onClick: () => setOpen(false) }),
1927
+ React__default.createElement("div", { style: Object.assign({ position: 'fixed', height: 540, top: '100%', left: 0, width: '100%', backgroundColor: 'white', padding: '8px 24px', zIndex: 99999999, borderRadius: 12, boxShadow: '0px 0px 1px 0px #0000000A, 0px 4px 8px 0px #0000000A, 0px 16px 24px 0px #0000000A, 0px 24px 32px 0px #0000000A', overflow: 'auto' }, modalStyle) }, SelectCountryContent))))));
1928
+ }
1929
+ const SelectCountryItem = ({ Icon, option, onSelect, selected, }) => {
1930
+ const selectedCallingCode = useMemo(() => {
1931
+ if (!option.value)
1932
+ return '';
1933
+ const code = getCountryCallingCode(option.value);
1934
+ if (code) {
1935
+ return `+${code}`;
1936
+ }
1937
+ return '';
1938
+ }, [option.value]);
1939
+ return (React__default.createElement(Stack, { sx: {
1940
+ padding: '0 24px',
1941
+ backgroundColor: selected ? '#e3f2ff' : 'transparent',
1942
+ ':hover': { backgroundColor: '#F7F9FA' },
1943
+ cursor: 'pointer',
1944
+ marginLeft: -24,
1945
+ marginRight: -24,
1946
+ }, justify: "center", onClick: () => onSelect(option) },
1947
+ React__default.createElement(Group, { position: "apart", sx: {
1948
+ height: 50,
1949
+ borderBottom: '1px solid #E4E8EC',
1950
+ }, align: "center" },
1951
+ React__default.createElement(Group, { spacing: 12 },
1952
+ React__default.createElement(Icon, { "aria-hidden": true, country: option.value, label: option.label, style: {
1953
+ width: 24,
1954
+ height: 16,
1955
+ borderRadius: 2,
1956
+ } }),
1957
+ React__default.createElement(Text, { size: "p4" }, option.label)),
1958
+ React__default.createElement(Text, { size: "p4" }, selectedCallingCode))));
1959
+ };
1960
+ CountrySelectWithIcon.propTypes = {
1961
+ // Country flag component.
1962
+ iconComponent: PropTypes.elementType,
1963
+ // Select arrow component.
1964
+ arrowComponent: PropTypes.elementType,
1965
+ // Set to `true` to render Unicode flag icons instead of SVG images.
1966
+ unicodeFlags: PropTypes.bool,
1967
+ };
1968
+ function DefaultArrowComponent() {
1969
+ return (React__default.createElement("div", { style: {
1970
+ display: 'flex',
1971
+ alignItems: 'center',
1972
+ justifyContent: 'center',
1973
+ width: 16,
1974
+ height: 16,
1975
+ } },
1976
+ React__default.createElement(CaretDown, { size: 7, color: "#8C8C8C" })));
1977
+ }
1978
+ function getSelectedOption(options, value) {
1979
+ for (const option of options) {
1980
+ if (!option.divider) {
1981
+ if (isSameOptionValue(option.value, value)) {
1982
+ return option;
1983
+ }
1984
+ }
1985
+ }
1986
+ }
1987
+ function isSameOptionValue(value1, value2) {
1988
+ // `undefined` is identical to `null`: both mean "no country selected".
1989
+ if (value1 === undefined || value1 === null) {
1990
+ return value2 === undefined || value2 === null;
1991
+ }
1992
+ return value1 === value2;
1993
+ }
1994
+
1995
+ const PhoneForwardRef = (props, ref) => {
1996
+ const { isError, defaultCountry,
1997
+ // countries = countriesDefault,
1998
+ countryCallingCodeEditable = false, defaultValue, value: valueProps, onChange: onChangeProps, className } = props, inputProps = __rest(props, ["isError", "defaultCountry", "countryCallingCodeEditable", "defaultValue", "value", "onChange", "className"]);
1999
+ const [value, setValue] = useState(defaultValue || valueProps);
2000
+ const [PhoneInputUtils, setPhoneInputUtils] = useState(null);
2001
+ const onChange = (val) => {
2002
+ setValue(val);
2003
+ onChangeProps === null || onChangeProps === void 0 ? void 0 : onChangeProps(val);
2004
+ };
2005
+ useEffect(() => {
2006
+ setValue(valueProps);
2007
+ }, [valueProps]);
2008
+ useEffect(() => {
2009
+ (() => __awaiter(void 0, void 0, void 0, function* () {
2010
+ const PhoneInput = yield import('react-phone-number-input');
2011
+ setPhoneInputUtils(PhoneInput);
2012
+ }))();
2013
+ }, []);
2014
+ if (!PhoneInputUtils)
2015
+ return null;
2016
+ return (React__default.createElement(PhoneInputUtils.default
2017
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2018
+ , Object.assign({
2019
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2020
+ ref: ref, value: value, onChange: onChange,
2021
+ // countries={countries}
2022
+ defaultCountry: defaultCountry, countryCallingCodeEditable: countryCallingCodeEditable, className: cn(styles.phoneInput, { isError, [styles.error]: isError }, className), countrySelectComponent: CountrySelectWithIcon }, inputProps)));
2023
+ };
2024
+ const PhoneWithCustomCountrySelect = forwardRef(PhoneForwardRef);
2025
+
2026
+ const StyledPhone = styled(PhoneWithCustomCountrySelect) `
636
2027
  position: relative;
637
2028
  .PhoneInputCountry {
638
2029
  background: unset;
@@ -2017,6 +3408,7 @@ const OtherSetup = ({ form, needPhone, skipPhone, needEmail, isEmailDisable, isP
2017
3408
  const { t } = useTranslations();
2018
3409
  const { locale = 'vi-VN' } = useSSOState();
2019
3410
  const { setupSource } = useSSOV2Store();
3411
+ const [dobChanged, setDobChanged] = React__default.useState(false);
2020
3412
  return (React__default.createElement(Stack, { spacing: 12 },
2021
3413
  needPhone && (React__default.createElement(React__default.Fragment, null,
2022
3414
  React__default.createElement(Input.Wrapper, Object.assign({ label: t('ssov2.setup.field.phone.label'), withAsterisk: true }, form.getInputProps('phone')),
@@ -2071,7 +3463,14 @@ const OtherSetup = ({ form, needPhone, skipPhone, needEmail, isEmailDisable, isP
2071
3463
  : 'tertiary', onClick: () => {
2072
3464
  form.setFieldValue('gender', 'male');
2073
3465
  }, leftIcon: React__default.createElement(MaleIcon, null), disabled: loading, "data-event-category": tracking === null || tracking === void 0 ? void 0 : tracking.category, "data-event-action": tracking === null || tracking === void 0 ? void 0 : tracking.action, "data-event-label": "Enter Gender Male" }, t('ssov2.setup.field.gender.male')))),
2074
- React__default.createElement(DatePicker, Object.assign({ name: "dob", label: t('ssov2.setup.field.dob.label'), withAsterisk: true, required: true, placeholder: t('ssov2.setup.field.dob.placeholder'), maxDate: new Date(new Date().getFullYear() - 18, new Date().getMonth(), new Date().getDate()), disabled: loading, "data-event-category": tracking === null || tracking === void 0 ? void 0 : tracking.category, "data-event-action": tracking === null || tracking === void 0 ? void 0 : tracking.action, "data-event-label": "Enter Birthday" }, form.getInputProps('dob')))));
3466
+ React__default.createElement(DatePicker, Object.assign({ name: "dob", label: t('ssov2.setup.field.dob.label'), withAsterisk: true, required: true, placeholder: t('ssov2.setup.field.dob.placeholder'), maxDate: new Date(new Date().getFullYear() - 18, new Date().getMonth(), new Date().getDate()), disabled: loading, "data-event-category": tracking === null || tracking === void 0 ? void 0 : tracking.category, "data-event-action": tracking === null || tracking === void 0 ? void 0 : tracking.action, "data-event-label": "Enter Birthday" }, form.getInputProps('dob'), { onChange: (e) => {
3467
+ form.getInputProps('dob').onChange(e);
3468
+ setDobChanged(true);
3469
+ }, onBlur: (e) => {
3470
+ if (!form.getInputProps('dob').value && !dobChanged)
3471
+ return;
3472
+ form.getInputProps('dob').onBlur(e);
3473
+ } }))));
2075
3474
  };
2076
3475
 
2077
3476
  // eslint-disable-next-line @typescript-eslint/no-explicit-any