@hhgtech/hhg-components 1.29.78 → 1.29.80

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 (285) hide show
  1. package/build/{Instagram-f68f1dae.js → Instagram-91ba1e26.js} +1 -1
  2. package/build/adapters.js +15 -15
  3. package/build/babyGrowth.js +80 -80
  4. package/build/cache.js +3 -3
  5. package/build/care.js +18 -18
  6. package/build/components.js +82 -82
  7. package/build/{index-714baad1.js → constants-4e7c419e.js} +113 -113
  8. package/build/{constants-385d01e7.js → constants-ca71f9e5.js} +2 -2
  9. package/build/constants.js +3 -3
  10. package/build/{core-e0799ceb.js → core-bb2587e7.js} +2 -2
  11. package/build/{dataTransform-c8c14a28.js → dataTransform-469b75eb.js} +1 -1
  12. package/build/ecom.js +5 -5
  13. package/build/esm/{Instagram-8dd26ac6.js → Instagram-319a8e34.js} +1 -1
  14. package/build/esm/adapters.js +15 -15
  15. package/build/esm/babyGrowth.js +81 -81
  16. package/build/esm/cache.js +3 -3
  17. package/build/esm/care.js +17 -17
  18. package/build/esm/components.js +58 -58
  19. package/build/esm/{index-9dd8721c.js → constants-508ba335.js} +113 -113
  20. package/build/esm/{constants-5d6ab948.js → constants-7661ce64.js} +2 -2
  21. package/build/esm/constants.js +3 -3
  22. package/build/esm/{core-296015da.js → core-5a22b83e.js} +2 -2
  23. package/build/esm/{dataTransform-0066c53b.js → dataTransform-f5db5afb.js} +1 -1
  24. package/build/esm/ecom.js +5 -5
  25. package/build/esm/footer.js +18 -18
  26. package/build/esm/gAssets.js +4 -4
  27. package/build/esm/{getDynamicHealthTool-7cf3f00e.js → getDynamicHealthTool-09fda8b3.js} +4 -4
  28. package/build/esm/{getSocialList-f797bbe2.js → getSocialList-96301dbb.js} +6 -6
  29. package/build/esm/hooks.js +17 -17
  30. package/build/esm/i18n.js +2 -2
  31. package/build/esm/i18nV2.js +2 -2
  32. package/build/esm/{index-b9666693.js → index-13bf84f4.js} +1 -1
  33. package/build/esm/{index-6c7832ac.js → index-1a3f36c3.js} +21 -21
  34. package/build/esm/{index-869411be.js → index-2d47a346.js} +10 -10
  35. package/build/esm/{index-ed317f58.js → index-32e2b169.js} +62 -62
  36. package/build/esm/{index-f160e379.js → index-3c7f109c.js} +2 -2
  37. package/build/esm/{index-30eb73b8.js → index-474e0ae5.js} +3 -3
  38. package/build/esm/{index-dd00700b.js → index-4dcdce19.js} +2 -2
  39. package/build/esm/{index-fc868dc0.js → index-53a86337.js} +5 -5
  40. package/build/esm/{index-b45321ac.js → index-5773eb18.js} +6 -6
  41. package/build/esm/{index-2da84fe8.js → index-679d5383.js} +1 -1
  42. package/build/esm/{index-5b69b19c.js → index-77dddeb9.js} +2 -2
  43. package/build/esm/{index-25209a23.js → index-800b956a.js} +37 -37
  44. package/build/esm/{index-2e13488d.js → index-80f4d7df.js} +2 -2
  45. package/build/esm/{index-62059a85.js → index-82861dba.js} +2 -2
  46. package/build/esm/{index-5c2abf3a.js → index-92eedeb0.js} +1047 -1047
  47. package/build/esm/{index-70bb6ed3.js → index-9b54376f.js} +120 -120
  48. package/build/esm/{index-a2404202.js → index-aebf96f3.js} +2 -2
  49. package/build/esm/{index-e80cb404.js → index-bcd13f1d.js} +12 -12
  50. package/build/esm/{index-09ecd45f.js → index-c4699d44.js} +41 -43
  51. package/build/esm/{index-94f2f772.js → index-c807ef87.js} +2 -2
  52. package/build/esm/{index-13975e28.js → index-d48b5db6.js} +4 -4
  53. package/build/esm/{index-6896ecdf.js → index-d5b66388.js} +2 -2
  54. package/build/esm/{index-4e6d8f1c.js → index-da2b8f22.js} +11 -11
  55. package/build/esm/{index-c8e5b7ad.js → index-df29c4e0.js} +5 -5
  56. package/build/esm/{index-ad1d81e3.js → index-e68d4285.js} +2 -2
  57. package/build/esm/{index-043dfbc3.js → index-ef855343.js} +4 -4
  58. package/build/esm/index.css +1 -1
  59. package/build/esm/index.js +66 -66
  60. package/build/esm/{index.styled-19fa0003.js → index.styled-9e147e72.js} +2 -2
  61. package/build/esm/{index.styles-0693a12e.js → index.styles-0ef0135c.js} +78 -78
  62. package/build/esm/lead.js +28 -28
  63. package/build/esm/mantine.js +20 -20
  64. package/build/esm/misc.js +21 -21
  65. package/build/esm/navigation.js +35 -35
  66. package/build/esm/onboardingV2.js +32 -32
  67. package/build/esm/pwg.js +19 -19
  68. package/build/esm/{routing-ddff6eb9.js → routing-7bc3e320.js} +2 -2
  69. package/build/esm/subot.js +25 -25
  70. package/build/esm/together.js +35 -35
  71. package/build/esm/{types-29a56da4.js → types-957334f2.js} +30 -30
  72. package/build/esm/{types-1ab8164a.js → types-ee1be1e3.js} +13 -13
  73. package/build/esm/types.js +1 -1
  74. package/build/esm/{useCategory-00116196.js → useCategory-7e020652.js} +5 -5
  75. package/build/esm/{useHealthToolCache-298307bc.js → useHealthToolCache-c70e4fd5.js} +2 -2
  76. package/build/esm/{useMantineLocale-e9d07649.js → useMantineLocale-1373e175.js} +3 -3
  77. package/build/esm/{usePlacesAutocomplete-3c09ae6c.js → usePlacesAutocomplete-4bfe976e.js} +1 -1
  78. package/build/esm/{useTranslations-ee0ed7e4.js → useTranslations-adad3b06.js} +1 -1
  79. package/build/esm/{utils-98843bdc.js → utils-b14c10f9.js} +1 -1
  80. package/build/esm/{defaultClassWrapper-8112e475.js → utils-dee27bfd.js} +107 -107
  81. package/build/esm/{utils-70fb5414.js → utils-ff5d88a2.js} +4 -4
  82. package/build/esm/vaccination.js +26 -26
  83. package/build/footer.js +18 -18
  84. package/build/gAssets.js +4 -4
  85. package/build/{getDynamicHealthTool-fe5aca1c.js → getDynamicHealthTool-357666f7.js} +4 -4
  86. package/build/{getSocialList-717ee974.js → getSocialList-c1404aff.js} +6 -6
  87. package/build/hooks.js +17 -17
  88. package/build/i18n.js +1 -1
  89. package/build/i18nV2.js +1 -1
  90. package/build/{index-2dd62be1.js → index-040620f6.js} +12 -12
  91. package/build/{index-896cf1e8.js → index-0523771b.js} +55 -55
  92. package/build/{index-fbc4ad0a.js → index-1250dd06.js} +1 -1
  93. package/build/{index-3fea5307.js → index-20ebc0bd.js} +2 -2
  94. package/build/{index-d98b6533.js → index-2b32b21e.js} +2 -2
  95. package/build/{index-fd9e9e31.js → index-3a03bb34.js} +2 -2
  96. package/build/{index-a74e681a.js → index-5029b5d8.js} +1 -1
  97. package/build/{index-de879d05.js → index-5d9ad07e.js} +120 -120
  98. package/build/{index-d37fb502.js → index-61ef343d.js} +4 -4
  99. package/build/{index-c6d8ee38.js → index-82a3ba38.js} +68 -68
  100. package/build/{index-8bbc5f6c.js → index-858f60e0.js} +2 -2
  101. package/build/{index-266faebd.js → index-8c826f3e.js} +2 -2
  102. package/build/{index-888fe1c7.js → index-91027d35.js} +2 -2
  103. package/build/{index-e76edc59.js → index-917c975c.js} +7 -7
  104. package/build/{index-f5c1576f.js → index-94a2b0f9.js} +2 -2
  105. package/build/{index-bd99a93f.js → index-94fd9ea6.js} +1045 -1045
  106. package/build/{index-ca2880f5.js → index-b0414701.js} +52 -54
  107. package/build/{index-172570c5.js → index-bf6e5e4e.js} +5 -5
  108. package/build/{index-297519c0.js → index-c67602d7.js} +3 -3
  109. package/build/{index-3f5ce427.js → index-d710511f.js} +11 -11
  110. package/build/{index-50cc6ee0.js → index-dbf560f2.js} +22 -22
  111. package/build/{index-657d308e.js → index-e60c98f8.js} +2 -2
  112. package/build/{index-58d6aa20.js → index-ed587907.js} +10 -10
  113. package/build/{index-e1d386b9.js → index-efcbac97.js} +7 -7
  114. package/build/{index-2ed617c9.js → index-f0a532c7.js} +6 -6
  115. package/build/{index-2f39a918.js → index-f5103542.js} +4 -4
  116. package/build/index.css +1 -1
  117. package/build/index.js +108 -108
  118. package/build/{index.styled-cd56f718.js → index.styled-8aca5145.js} +2 -2
  119. package/build/{index.styles-15b57fec.js → index.styles-2bdfde5f.js} +83 -83
  120. package/build/lead.js +28 -28
  121. package/build/mantine.js +17 -17
  122. package/build/misc.js +21 -21
  123. package/build/navigation.js +35 -35
  124. package/build/onboardingV2.js +31 -31
  125. package/build/pwg.js +19 -19
  126. package/build/{routing-101c464a.js → routing-bc8197d8.js} +2 -2
  127. package/build/subot.js +100 -100
  128. package/build/together.js +40 -40
  129. package/build/{types-65270049.js → types-6996fb20.js} +49 -49
  130. package/build/{types-bc9b7ff5.js → types-c8956642.js} +191 -191
  131. package/build/types.js +1 -1
  132. package/build/{useCategory-99167875.js → useCategory-7d1f8a7d.js} +5 -5
  133. package/build/{useHealthToolCache-347a7553.js → useHealthToolCache-b7dea4aa.js} +2 -2
  134. package/build/{useMantineLocale-67d093f5.js → useMantineLocale-b243f628.js} +3 -3
  135. package/build/{usePlacesAutocomplete-0d428f7d.js → usePlacesAutocomplete-08b86d2d.js} +1 -1
  136. package/build/{useTranslations-ddee03e3.js → useTranslations-d5456a98.js} +1 -1
  137. package/build/{utils-bc89f5c8.js → utils-263a60f7.js} +4 -4
  138. package/build/{defaultClassWrapper-8ac3b7f0.js → utils-9f62698f.js} +106 -106
  139. package/build/{utils-f2b61d2c.js → utils-d421a448.js} +1 -1
  140. package/build/vaccination.js +26 -26
  141. package/package.json +2 -2
  142. /package/build/{BMI_BOYS.percentile.monthly-2dbe6dbf.js → BMI_BOYS.percentile.monthly-c38ce03a.js} +0 -0
  143. /package/build/{BMI_BOYS.percentile.weekly-68fd0e8a.js → BMI_BOYS.percentile.weekly-1eccee42.js} +0 -0
  144. /package/build/{BMI_BOYS.percentile.yearly-a334f00f.js → BMI_BOYS.percentile.yearly-0e7d5cb6.js} +0 -0
  145. /package/build/{BMI_BOYS.zscore.monthly-f1f1e40c.js → BMI_BOYS.zscore.monthly-f72f392f.js} +0 -0
  146. /package/build/{BMI_BOYS.zscore.weekly-eaadf495.js → BMI_BOYS.zscore.weekly-94fd04e6.js} +0 -0
  147. /package/build/{BMI_BOYS.zscore.yearly-ee0a8baa.js → BMI_BOYS.zscore.yearly-90d5e091.js} +0 -0
  148. /package/build/{BMI_GIRLS.percentile.monthly-2a4322e1.js → BMI_GIRLS.percentile.monthly-de3a9a14.js} +0 -0
  149. /package/build/{BMI_GIRLS.percentile.weekly-8d2160f3.js → BMI_GIRLS.percentile.weekly-1e1ce2b7.js} +0 -0
  150. /package/build/{BMI_GIRLS.percentile.yearly-e305a1c3.js → BMI_GIRLS.percentile.yearly-70a44f31.js} +0 -0
  151. /package/build/{BMI_GIRLS.zscore.monthly-370967e2.js → BMI_GIRLS.zscore.monthly-be4399a5.js} +0 -0
  152. /package/build/{BMI_GIRLS.zscore.weekly-82dbdbeb.js → BMI_GIRLS.zscore.weekly-6121376b.js} +0 -0
  153. /package/build/{BMI_GIRLS.zscore.yearly-b624b0c5.js → BMI_GIRLS.zscore.yearly-822e7686.js} +0 -0
  154. /package/build/{ChevronDown-6a728605.js → ChevronDown-f9d31306.js} +0 -0
  155. /package/build/{Close-6a790433.js → Close-27e0dcf1.js} +0 -0
  156. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-2d793b40.js → HEAD CIRCUM_BOYS.percentile.monthly-5e094c3e.js} +0 -0
  157. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-3ec0fbcd.js → HEAD CIRCUM_BOYS.percentile.weekly-24f827d8.js} +0 -0
  158. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-018cfad7.js → HEAD CIRCUM_BOYS.percentile.yearly-d7478410.js} +0 -0
  159. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-9a92fc56.js → HEAD CIRCUM_BOYS.zscore.monthly-1123cad6.js} +0 -0
  160. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-ec5c1b66.js → HEAD CIRCUM_BOYS.zscore.weekly-a5b55615.js} +0 -0
  161. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-1bbc9e90.js → HEAD CIRCUM_BOYS.zscore.yearly-0d818764.js} +0 -0
  162. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-88bf7054.js → HEAD CIRCUM_GIRLS.percentile.monthly-dddf5ad9.js} +0 -0
  163. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-48abc5c8.js → HEAD CIRCUM_GIRLS.percentile.weekly-a80d6989.js} +0 -0
  164. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-eb5476be.js → HEAD CIRCUM_GIRLS.percentile.yearly-01850b67.js} +0 -0
  165. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-b4908eed.js → HEAD CIRCUM_GIRLS.zscore.monthly-82890053.js} +0 -0
  166. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-bb3b5b73.js → HEAD CIRCUM_GIRLS.zscore.weekly-069f8c8f.js} +0 -0
  167. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-9e459c3a.js → HEAD CIRCUM_GIRLS.zscore.yearly-ae5ef237.js} +0 -0
  168. /package/build/{HEIGHT_BOYS.percentile.monthly-de26b886.js → HEIGHT_BOYS.percentile.monthly-d0da1664.js} +0 -0
  169. /package/build/{HEIGHT_BOYS.percentile.weekly-2b1a480e.js → HEIGHT_BOYS.percentile.weekly-55446b8a.js} +0 -0
  170. /package/build/{HEIGHT_BOYS.percentile.yearly-9e11bf8a.js → HEIGHT_BOYS.percentile.yearly-f2f5b19f.js} +0 -0
  171. /package/build/{HEIGHT_BOYS.zscore.monthly-169b72ab.js → HEIGHT_BOYS.zscore.monthly-e6ed98ef.js} +0 -0
  172. /package/build/{HEIGHT_BOYS.zscore.weekly-1f51ea7a.js → HEIGHT_BOYS.zscore.weekly-d0d37479.js} +0 -0
  173. /package/build/{HEIGHT_BOYS.zscore.yearly-2defb1ff.js → HEIGHT_BOYS.zscore.yearly-4023b808.js} +0 -0
  174. /package/build/{HEIGHT_GIRLS.percentile.monthly-ff09a166.js → HEIGHT_GIRLS.percentile.monthly-6d9aeadc.js} +0 -0
  175. /package/build/{HEIGHT_GIRLS.percentile.weekly-bdbad8b3.js → HEIGHT_GIRLS.percentile.weekly-2087c9b4.js} +0 -0
  176. /package/build/{HEIGHT_GIRLS.percentile.yearly-a7cf5de3.js → HEIGHT_GIRLS.percentile.yearly-f98d8b05.js} +0 -0
  177. /package/build/{HEIGHT_GIRLS.zscore.monthly-bc88d68f.js → HEIGHT_GIRLS.zscore.monthly-99d299e3.js} +0 -0
  178. /package/build/{HEIGHT_GIRLS.zscore.weekly-4b1bb4f7.js → HEIGHT_GIRLS.zscore.weekly-c46ed349.js} +0 -0
  179. /package/build/{HEIGHT_GIRLS.zscore.yearly-6d54fcc8.js → HEIGHT_GIRLS.zscore.yearly-fddefca4.js} +0 -0
  180. /package/build/{Visible-cf684c77.js → Visible-01dfaec9.js} +0 -0
  181. /package/build/{WEIGHT_BOYS.percentile.monthly-69735b17.js → WEIGHT_BOYS.percentile.monthly-cead8ece.js} +0 -0
  182. /package/build/{WEIGHT_BOYS.percentile.weekly-60881421.js → WEIGHT_BOYS.percentile.weekly-a97fa31a.js} +0 -0
  183. /package/build/{WEIGHT_BOYS.percentile.yearly-bac67ed1.js → WEIGHT_BOYS.percentile.yearly-c2c41945.js} +0 -0
  184. /package/build/{WEIGHT_BOYS.zscore.monthly-e9254299.js → WEIGHT_BOYS.zscore.monthly-d8de7dc2.js} +0 -0
  185. /package/build/{WEIGHT_BOYS.zscore.weekly-6b82cd2d.js → WEIGHT_BOYS.zscore.weekly-41a6f6bf.js} +0 -0
  186. /package/build/{WEIGHT_BOYS.zscore.yearly-43cc1986.js → WEIGHT_BOYS.zscore.yearly-5762fa8a.js} +0 -0
  187. /package/build/{WEIGHT_GIRLS.percentile.monthly-38847b2b.js → WEIGHT_GIRLS.percentile.monthly-526fb18a.js} +0 -0
  188. /package/build/{WEIGHT_GIRLS.percentile.weekly-2ac2ee92.js → WEIGHT_GIRLS.percentile.weekly-6c63ed2b.js} +0 -0
  189. /package/build/{WEIGHT_GIRLS.percentile.yearly-3401e100.js → WEIGHT_GIRLS.percentile.yearly-0ecdbd3a.js} +0 -0
  190. /package/build/{WEIGHT_GIRLS.zscore.monthly-4f257d09.js → WEIGHT_GIRLS.zscore.monthly-0c353536.js} +0 -0
  191. /package/build/{WEIGHT_GIRLS.zscore.weekly-fe8ea3a5.js → WEIGHT_GIRLS.zscore.weekly-97898ff6.js} +0 -0
  192. /package/build/{WEIGHT_GIRLS.zscore.yearly-c780b33b.js → WEIGHT_GIRLS.zscore.yearly-cbebe807.js} +0 -0
  193. /package/build/{animation-6f210c4a.js → animation-8605b5bb.js} +0 -0
  194. /package/build/{cart-d48967a8.js → cart-ab5762b8.js} +0 -0
  195. /package/build/{cookieHelper-6fa2ed3a.js → cookieHelper-b2132ffc.js} +0 -0
  196. /package/build/{doctor-d70d0f31.js → doctor-f121fd79.js} +0 -0
  197. /package/build/esm/{BMI_BOYS.percentile.monthly-2c7cf81c.js → BMI_BOYS.percentile.monthly-e507536d.js} +0 -0
  198. /package/build/esm/{BMI_BOYS.percentile.weekly-963d00dc.js → BMI_BOYS.percentile.weekly-3cbf7392.js} +0 -0
  199. /package/build/esm/{BMI_BOYS.percentile.yearly-4eea698f.js → BMI_BOYS.percentile.yearly-c7d54bc3.js} +0 -0
  200. /package/build/esm/{BMI_BOYS.zscore.monthly-f5544376.js → BMI_BOYS.zscore.monthly-4d09aca0.js} +0 -0
  201. /package/build/esm/{BMI_BOYS.zscore.weekly-4656cd4c.js → BMI_BOYS.zscore.weekly-319b78c5.js} +0 -0
  202. /package/build/esm/{BMI_BOYS.zscore.yearly-39ccd0fd.js → BMI_BOYS.zscore.yearly-764732c5.js} +0 -0
  203. /package/build/esm/{BMI_GIRLS.percentile.monthly-d7501958.js → BMI_GIRLS.percentile.monthly-5a8e4069.js} +0 -0
  204. /package/build/esm/{BMI_GIRLS.percentile.weekly-315ba23e.js → BMI_GIRLS.percentile.weekly-a2fe6df1.js} +0 -0
  205. /package/build/esm/{BMI_GIRLS.percentile.yearly-5afebffb.js → BMI_GIRLS.percentile.yearly-810fe911.js} +0 -0
  206. /package/build/esm/{BMI_GIRLS.zscore.monthly-9c659c70.js → BMI_GIRLS.zscore.monthly-afab03b0.js} +0 -0
  207. /package/build/esm/{BMI_GIRLS.zscore.weekly-f72193e8.js → BMI_GIRLS.zscore.weekly-8f4e7198.js} +0 -0
  208. /package/build/esm/{BMI_GIRLS.zscore.yearly-33a16ebf.js → BMI_GIRLS.zscore.yearly-7f043621.js} +0 -0
  209. /package/build/esm/{ChevronDown-51088ad9.js → ChevronDown-d24fd24b.js} +0 -0
  210. /package/build/esm/{Close-851c8b38.js → Close-6243d246.js} +0 -0
  211. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-522b5435.js → HEAD CIRCUM_BOYS.percentile.monthly-91c12176.js} +0 -0
  212. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-72d04552.js → HEAD CIRCUM_BOYS.percentile.weekly-40e77c68.js} +0 -0
  213. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-e68e4904.js → HEAD CIRCUM_BOYS.percentile.yearly-1a284ec4.js} +0 -0
  214. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-89b9b642.js → HEAD CIRCUM_BOYS.zscore.monthly-16f716a6.js} +0 -0
  215. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-c8c2ae6a.js → HEAD CIRCUM_BOYS.zscore.weekly-07d20112.js} +0 -0
  216. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-0cf56dc8.js → HEAD CIRCUM_BOYS.zscore.yearly-1201a10a.js} +0 -0
  217. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-ef9dbfc9.js → HEAD CIRCUM_GIRLS.percentile.monthly-a6348baf.js} +0 -0
  218. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-831567fe.js → HEAD CIRCUM_GIRLS.percentile.weekly-af26363f.js} +0 -0
  219. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-0e89170b.js → HEAD CIRCUM_GIRLS.percentile.yearly-e7637928.js} +0 -0
  220. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-82564fb7.js → HEAD CIRCUM_GIRLS.zscore.monthly-9be0e0ca.js} +0 -0
  221. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-6b1845ec.js → HEAD CIRCUM_GIRLS.zscore.weekly-3ffe9dcd.js} +0 -0
  222. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-6b65120d.js → HEAD CIRCUM_GIRLS.zscore.yearly-d7226db1.js} +0 -0
  223. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-ecfdee13.js → HEIGHT_BOYS.percentile.monthly-c2e21892.js} +0 -0
  224. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-2bae8fa8.js → HEIGHT_BOYS.percentile.weekly-22018f1e.js} +0 -0
  225. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-4cf5eb0c.js → HEIGHT_BOYS.percentile.yearly-391cd377.js} +0 -0
  226. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-5978dd63.js → HEIGHT_BOYS.zscore.monthly-e11f50f4.js} +0 -0
  227. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-0e20ae65.js → HEIGHT_BOYS.zscore.weekly-8e2c8306.js} +0 -0
  228. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-9f9ecc92.js → HEIGHT_BOYS.zscore.yearly-78e974bb.js} +0 -0
  229. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-244b7899.js → HEIGHT_GIRLS.percentile.monthly-0a49ff89.js} +0 -0
  230. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-867f533c.js → HEIGHT_GIRLS.percentile.weekly-5e158a8e.js} +0 -0
  231. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-8334ef62.js → HEIGHT_GIRLS.percentile.yearly-f5544ab2.js} +0 -0
  232. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-89dc2f92.js → HEIGHT_GIRLS.zscore.monthly-92f67ec2.js} +0 -0
  233. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-c37a8e45.js → HEIGHT_GIRLS.zscore.weekly-f5d11f32.js} +0 -0
  234. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-d75c7342.js → HEIGHT_GIRLS.zscore.yearly-4fe6aad9.js} +0 -0
  235. /package/build/esm/{Visible-2b82b731.js → Visible-7f408f98.js} +0 -0
  236. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-afa954cf.js → WEIGHT_BOYS.percentile.monthly-b09ae73a.js} +0 -0
  237. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-0ce8ca9d.js → WEIGHT_BOYS.percentile.weekly-733a24a9.js} +0 -0
  238. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-9bc9d108.js → WEIGHT_BOYS.percentile.yearly-2bfcfc93.js} +0 -0
  239. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-c41e3c26.js → WEIGHT_BOYS.zscore.monthly-c0d3a746.js} +0 -0
  240. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-927605d1.js → WEIGHT_BOYS.zscore.weekly-b41ff498.js} +0 -0
  241. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-10a9c6a3.js → WEIGHT_BOYS.zscore.yearly-15bb7570.js} +0 -0
  242. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-c3957e70.js → WEIGHT_GIRLS.percentile.monthly-5b79dea8.js} +0 -0
  243. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-5413b078.js → WEIGHT_GIRLS.percentile.weekly-33052637.js} +0 -0
  244. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-fbef8c0c.js → WEIGHT_GIRLS.percentile.yearly-64382b53.js} +0 -0
  245. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-e89aa92b.js → WEIGHT_GIRLS.zscore.monthly-63f19584.js} +0 -0
  246. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-7a014b5a.js → WEIGHT_GIRLS.zscore.weekly-938ebce2.js} +0 -0
  247. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-0cae1bb9.js → WEIGHT_GIRLS.zscore.yearly-016e1cfc.js} +0 -0
  248. /package/build/esm/{animation-89cd92dc.js → animation-bf170ee9.js} +0 -0
  249. /package/build/esm/{cart-b5b2f9c9.js → cart-5bdb4fa5.js} +0 -0
  250. /package/build/esm/{cookieHelper-6839de86.js → cookieHelper-ff6c13b4.js} +0 -0
  251. /package/build/esm/{doctor-a16d5a2a.js → doctor-f4cadffb.js} +0 -0
  252. /package/build/esm/{index-207e5a99.js → index-528e64f4.js} +0 -0
  253. /package/build/esm/{index-b1dfbcd9.js → index-6c0f560b.js} +0 -0
  254. /package/build/esm/{index-3f16918f.js → index-b87433a0.js} +0 -0
  255. /package/build/esm/{index-b851beaf.js → index-eeedf0f0.js} +0 -0
  256. /package/build/esm/{isProduction-6557a7a7.js → isProduction-2838b9ae.js} +0 -0
  257. /package/build/esm/{localizeNumberFormat-1efb07bf.js → localizeNumberFormat-9303c122.js} +0 -0
  258. /package/build/esm/{normalizeLink-9adb98bb.js → normalizeLink-38ab69f4.js} +0 -0
  259. /package/build/esm/{number-7673e170.js → number-fcae69c7.js} +0 -0
  260. /package/build/esm/{paths-1a0405c1.js → paths-d1c61fa8.js} +0 -0
  261. /package/build/esm/{theme-676e1d3e.js → theme-0af1cc3d.js} +0 -0
  262. /package/build/esm/{translationsContext-b00d46fa.js → translationsContext-036458b7.js} +0 -0
  263. /package/build/esm/{tslib.es6-42d35711.js → tslib.es6-2673b49d.js} +0 -0
  264. /package/build/esm/{useIsInit-d65429ab.js → useIsInit-2c5ff93d.js} +0 -0
  265. /package/build/esm/{useOutsideClick-3b36c560.js → useOutsideClick-7023de23.js} +0 -0
  266. /package/build/esm/{useScrollbarSize-7cfe3d07.js → useScrollbarSize-dfdab229.js} +0 -0
  267. /package/build/esm/{useUniqueId-28b8a8d2.js → useUniqueId-d4b0bdd3.js} +0 -0
  268. /package/build/esm/{utils-0f3667a8.js → utils-511a24f4.js} +0 -0
  269. /package/build/{index-d38624f2.js → index-18ddaa1b.js} +0 -0
  270. /package/build/{index-0c11098b.js → index-5c400e5e.js} +0 -0
  271. /package/build/{index-3d1716ad.js → index-bced434a.js} +0 -0
  272. /package/build/{index-c4b66929.js → index-c524c362.js} +0 -0
  273. /package/build/{isProduction-cc2f71e7.js → isProduction-2e55aee3.js} +0 -0
  274. /package/build/{localizeNumberFormat-72f6c627.js → localizeNumberFormat-2befc6e4.js} +0 -0
  275. /package/build/{normalizeLink-37b001e0.js → normalizeLink-0fd36e61.js} +0 -0
  276. /package/build/{number-3c00e9ff.js → number-92da0262.js} +0 -0
  277. /package/build/{paths-22150d98.js → paths-350514c4.js} +0 -0
  278. /package/build/{theme-040e6fd9.js → theme-f410baf6.js} +0 -0
  279. /package/build/{translationsContext-bece07e0.js → translationsContext-11cafcfc.js} +0 -0
  280. /package/build/{tslib.es6-a8c3b1ed.js → tslib.es6-4bc45883.js} +0 -0
  281. /package/build/{useIsInit-78fbbf00.js → useIsInit-0f6d1879.js} +0 -0
  282. /package/build/{useOutsideClick-f4ac5964.js → useOutsideClick-e067cc79.js} +0 -0
  283. /package/build/{useScrollbarSize-df8fb771.js → useScrollbarSize-ed50b4a6.js} +0 -0
  284. /package/build/{useUniqueId-a3ed3f40.js → useUniqueId-4ce69bff.js} +0 -0
  285. /package/build/{utils-a2ad9aa3.js → utils-4849d92a.js} +0 -0
@@ -1,20 +1,20 @@
1
- import { _ as __rest, a as __awaiter } from './tslib.es6-42d35711.js';
1
+ import { _ as __rest, a as __awaiter } from './tslib.es6-2673b49d.js';
2
2
  import * as React from 'react';
3
- import React__default, { forwardRef, useState, useEffect, Component, useCallback, createContext, useContext, useRef, useMemo, useImperativeHandle } from 'react';
3
+ import React__default, { useState, forwardRef, useEffect, Component, useCallback, createContext, useContext, useRef, useMemo, useImperativeHandle } from 'react';
4
4
  import { ArrowDown, ArrowLeft, ArrowRight } from '@hhgtech/icons/other';
5
- import { em, Autocomplete, Image, ActionIcon, Select as Select$1, createStyles, AspectRatio as AspectRatio$1, useMantineTheme, Box, Breadcrumbs as Breadcrumbs$1, Button as Button$1, Textarea, Accordion as Accordion$1, Indicator, Avatar as Avatar$1, FileInput as FileInput$1, createEmotionCache, NumberInput as NumberInput$1, PasswordInput as PasswordInput$1, TextInput, Input as Input$1, Checkbox as Checkbox$1, Slider, Radio as Radio$1, Flex, rem, Tabs as Tabs$1, ScrollArea, Popover as Popover$1, Chip } from '@mantine/core';
5
+ import { em, createStyles, useMantineTheme, Button as Button$1, Autocomplete, Image, ActionIcon, Select as Select$1, AspectRatio as AspectRatio$1, Box, Breadcrumbs as Breadcrumbs$1, Textarea, Accordion as Accordion$1, Indicator, Avatar as Avatar$1, FileInput as FileInput$1, createEmotionCache, NumberInput as NumberInput$1, PasswordInput as PasswordInput$1, TextInput, Input as Input$1, Checkbox as Checkbox$1, Slider, Radio as Radio$1, Flex, rem, Tabs as Tabs$1, ScrollArea, Popover as Popover$1, Chip } from '@mantine/core';
6
6
  import { useUncontrolled, useDebouncedValue, useViewportSize, useResizeObserver, useDisclosure, useClickOutside } from '@mantine/hooks';
7
- import { C as CommonGAssets } from './index-2e13488d.js';
8
- import { B as Breakpoints } from './utils-0f3667a8.js';
7
+ import { C as CommonGAssets } from './index-80f4d7df.js';
8
+ import { B as Breakpoints } from './utils-511a24f4.js';
9
9
  import styled from '@emotion/styled';
10
10
  import { Carousel as Carousel$1 } from '@mantine/carousel';
11
- import { T as Text } from './index-dd00700b.js';
12
- import { L as LOCALE } from './index-b851beaf.js';
13
- import { t as theme } from './theme-676e1d3e.js';
14
- import { G as GlobalHeadingStyle } from './useMantineLocale-e9d07649.js';
15
- import { I as ISO_FORMAT, s as siteOptions } from './index-94f2f772.js';
11
+ import { T as Text } from './index-4dcdce19.js';
12
+ import { L as LOCALE } from './index-eeedf0f0.js';
13
+ import { t as theme } from './theme-0af1cc3d.js';
14
+ import { G as GlobalHeadingStyle } from './useMantineLocale-1373e175.js';
15
+ import { I as ISO_FORMAT, s as siteOptions } from './index-c807ef87.js';
16
16
  import cn from 'classnames';
17
- import { a as useUniqueId } from './useUniqueId-28b8a8d2.js';
17
+ import { a as useUniqueId } from './useUniqueId-d4b0bdd3.js';
18
18
  import { Check, Plus } from '@hhgtech/icons/core';
19
19
 
20
20
  const GlobalButtonStyle = {
@@ -321,242 +321,24 @@ const getMantineThemeOverride = (locale, template = 'hb') => {
321
321
  };
322
322
  };
323
323
 
324
- const Select = forwardRef((_a, ref) => {
325
- var { keepSearch = false } = _a, props = __rest(_a, ["keepSearch"]);
326
- if (keepSearch) {
327
- return (React__default.createElement(_AutoComplete, Object.assign({}, props, { ref: ref })));
328
- }
329
- else {
330
- return React__default.createElement(_Select, Object.assign({}, props, { ref: ref }));
331
- }
332
- });
333
- const _AutoComplete = forwardRef((_a, ref) => {
334
- var { value, defaultValue, onChange, clearable } = _a, props = __rest(_a, ["value", "defaultValue", "onChange", "clearable"]);
335
- const [_value, handleChange] = useUncontrolled({
336
- value,
337
- defaultValue,
338
- onChange,
339
- });
340
- const onClear = () => {
341
- handleChange('');
342
- };
343
- return (React__default.createElement(Autocomplete, Object.assign({ ref: ref, rightSection: React__default.createElement(Image, { src: CommonGAssets.getAssetPath('chevron-down.svg'), fit: "none" }), size: "md", maxDropdownHeight: 300, onChange: (e) => handleChange(e), value: _value }, props, (clearable && (_value === null || _value === void 0 ? void 0 : _value.length) > 0
344
- ? {
345
- rightSection: (React__default.createElement(ActionIcon, { onClick: onClear, sx: { cursor: 'pointer' } },
346
- React__default.createElement(_IconSelect, null))),
347
- }
348
- : {}))));
349
- });
350
- const _Select = forwardRef((_a, ref) => {
351
- var { searchValue, onSearchChange } = _a, props = __rest(_a, ["searchValue", "onSearchChange"]);
352
- const [_searchValue, handleSearchChange] = useUncontrolled({
353
- defaultValue: '',
354
- value: searchValue,
355
- onChange: onSearchChange,
356
- });
357
- const onClear = () => {
358
- handleSearchChange('');
359
- };
360
- return (React__default.createElement(Select$1, Object.assign({ ref: ref, rightSection: React__default.createElement(ArrowDown, { size: 18 }), rightSectionProps: { style: { pointerEvents: 'none' } }, size: "md", maxDropdownHeight: 300, onSearchChange: (e) => handleSearchChange(e), searchValue: _searchValue }, props, (props.clearable && (_searchValue === null || _searchValue === void 0 ? void 0 : _searchValue.length) > 0
361
- ? {
362
- rightSection: (React__default.createElement(ActionIcon, { onClick: onClear, sx: { cursor: 'pointer' } },
363
- React__default.createElement(_IconSelect, null))),
364
- }
365
- : {}))));
366
- });
367
- const _IconSelect = () => (React__default.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" },
368
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.6665 9.99996C1.6665 5.39163 5.3915 1.66663 9.99984 1.66663C14.6082 1.66663 18.3332 5.39163 18.3332 9.99996C18.3332 14.6083 14.6082 18.3333 9.99984 18.3333C5.3915 18.3333 1.6665 14.6083 1.6665 9.99996ZM12.4083 13.5831C12.7333 13.9081 13.2583 13.9081 13.5833 13.5831C13.9 13.2581 13.9 12.7247 13.5833 12.4081L11.175 9.99973L13.5833 7.5914C13.9083 7.2664 13.9083 6.7414 13.5833 6.4164C13.2583 6.0914 12.7333 6.0914 12.4083 6.4164L10 8.82473L7.59167 6.4164C7.26667 6.0914 6.74167 6.0914 6.41667 6.4164C6.26063 6.57209 6.17293 6.78347 6.17293 7.0039C6.17293 7.22433 6.26063 7.43571 6.41667 7.5914L8.825 9.99973L6.41667 12.4081C6.26063 12.5638 6.17293 12.7751 6.17293 12.9956C6.17293 13.216 6.26063 13.4274 6.41667 13.5831C6.74167 13.9081 7.26667 13.9081 7.59167 13.5831L10 11.1747L12.4083 13.5831Z", fill: "#8C8C8C" })));
369
-
370
- const getIsMobile = () => {
371
- return (typeof window !== 'undefined' &&
372
- window.innerWidth < Breakpoints.BREAK_POINT_MOBILE);
373
- };
374
- const getIsLargeMobile = () => {
375
- return (typeof window !== 'undefined' &&
376
- window.innerWidth >= Breakpoints.BREAK_POINT_MOBILE &&
377
- window.innerWidth < Breakpoints.BREAK_POINT_PC);
378
- };
379
- const useScreenSize = () => {
380
- const [isMobile, setIsMobile] = useState(getIsMobile());
381
- const [isLargeMobile, setIsLargeMobile] = useState(getIsLargeMobile());
382
- useEffect(() => {
383
- const handleResize = () => {
384
- setIsMobile(getIsMobile());
385
- setIsLargeMobile(getIsLargeMobile());
386
- };
387
- window.addEventListener('resize', handleResize, {
388
- passive: true,
389
- });
390
- return () => {
391
- window.removeEventListener('resize', handleResize);
392
- };
393
- }, []);
394
- return { isMobile, isLargeMobile };
395
- };
396
-
397
- class ErrorBoundary extends Component {
398
- constructor() {
399
- super(...arguments);
400
- this.state = {
401
- hasError: false,
402
- };
403
- }
404
- static getDerivedStateFromError() {
405
- // Update state so the next render will show the fallback UI.
406
- return { hasError: true };
407
- }
408
- componentDidCatch(error, errorInfo) {
409
- console.error('Uncaught error:', error, errorInfo);
410
- }
411
- render() {
412
- if (this.state.hasError) {
413
- return this.props.fallback || React__default.createElement(React__default.Fragment, null);
414
- }
415
- return this.props.children;
416
- }
417
- }
418
-
419
- const CarouselWrapper$1 = (_a) => {
420
- var { slidesToShow = 1, children } = _a, props = __rest(_a, ["slidesToShow", "children"]);
421
- const length = Array.isArray(children) ? children.length : 1;
422
- if (!length)
423
- return null;
424
- return (React__default.createElement(ErrorBoundary, null,
425
- React__default.createElement(Carousel$1
426
- // get 2 precision number
427
- , Object.assign({
428
- // get 2 precision number
429
- slideSize: String(Math.floor((1 / slidesToShow) * 10000) / 100) + '%', containScroll: "trimSnaps" }, props), children)));
324
+ const ImageWrap = (_a) => {
325
+ var { alt, backupSrc, src, placeholderSrc, style, ref } = _a, props = __rest(_a, ["alt", "backupSrc", "src", "placeholderSrc", "style", "ref"]);
326
+ const [hasError, setHasError] = useState(false);
327
+ return (React__default.createElement(StyledImage, Object.assign({ loading: "lazy", alt: alt, onError: () => !hasError && setHasError(true), src: hasError ? backupSrc || src : src || backupSrc, style: Object.assign(Object.assign({}, (placeholderSrc
328
+ ? {
329
+ backgroundImage: `url(${placeholderSrc})`,
330
+ }
331
+ : {})), style), "data-has-placeholder": !!placeholderSrc, ref: ref }, props)));
430
332
  };
431
- const Carousel = CarouselWrapper$1;
432
- Carousel.Slide = Carousel$1.Slide;
433
-
434
- const StyledCarousel = styled(Carousel) `
435
- cursor: grab;
436
- width: 100%;
437
- .mantine-Carousel-control {
438
- background: rgb(255, 255, 255);
439
- opacity: 1;
440
- border: none;
441
- border-radius: 0;
442
- box-shadow: none;
443
- &[data-inactive] {
444
- opacity: 0;
445
- cursor: default;
446
- }
447
- &:first-child {
448
- padding-right: 24px;
449
- background: linear-gradient(
450
- 90deg,
451
- rgba(255, 255, 255, 1) 0%,
452
- rgba(255, 255, 255, 1) 50%,
453
- rgba(255, 255, 255, 0) 100%
454
- );
455
- }
456
- &:last-child {
457
- padding-left: 24px;
458
- background: linear-gradient(
459
- 270deg,
460
- rgba(255, 255, 255, 1) 0%,
461
- rgba(255, 255, 255, 1) 50%,
462
- rgba(255, 255, 255, 0) 100%
463
- );
464
- }
465
- }
466
-
467
- .mantine-Carousel-container {
468
- align-items: center;
333
+ const StyledImage = styled.img `
334
+ &[data-has-placeholder='true'] {
335
+ background-position: center;
336
+ background-repeat: no-repeat;
337
+ background-size: cover;
469
338
  }
470
339
  `;
471
340
 
472
341
  var useStyles$4 = createStyles((_theme, _params) => {
473
- return {
474
- root: {
475
- color: _params.color ||
476
- (_theme.primaryColor === 'hb'
477
- ? _theme.colors.hb[6]
478
- : _theme.fn.primaryColor()),
479
- },
480
- };
481
- });
482
-
483
- const Anchor = (_a) => {
484
- var { color, styles, className } = _a, rest = __rest(_a, ["color", "styles", "className"]);
485
- const { classes, cx } = useStyles$4({ color }, { name: 'Anchor', styles });
486
- return React__default.createElement(Text, Object.assign({ as: "a", className: cx(classes.root, className) }, rest));
487
- };
488
-
489
- const BreadcrumbItem = (_a) => {
490
- var { children } = _a, rest = __rest(_a, ["children"]);
491
- return (React__default.createElement(Anchor, Object.assign({ size: "p4", color: 'gray.8' }, rest), children));
492
- };
493
-
494
- const AspectRatio = (props) => {
495
- return (React__default.createElement(AspectRatio$1, Object.assign({ sx: {
496
- borderRadius: 4,
497
- overflow: 'hidden',
498
- '> img': {
499
- objectFit: 'contain',
500
- },
501
- } }, props)));
502
- };
503
-
504
- const _Breadcrumbs = (_a) => {
505
- var _b;
506
- var { children, showHomeIcon = true, homeIconHref = '/' } = _a, rest = __rest(_a, ["children", "showHomeIcon", "homeIconHref"]);
507
- const theme = useMantineTheme();
508
- const isMarryBaby = ((_b = theme === null || theme === void 0 ? void 0 : theme.other) === null || _b === void 0 ? void 0 : _b.template) === 'mb';
509
- const [embla, setEmbla] = useState(null);
510
- const { isMobile } = useScreenSize();
511
- const [, setShouldAllowClick] = useState(true);
512
- const handleScroll = useCallback(() => {
513
- setShouldAllowClick(false);
514
- }, []);
515
- const handlePointerUp = useCallback(() => {
516
- setTimeout(() => {
517
- setShouldAllowClick(true);
518
- }, 1000);
519
- }, []);
520
- useEffect(() => {
521
- if (embla) {
522
- embla.on('scroll', handleScroll);
523
- embla.on('pointerUp', handlePointerUp);
524
- }
525
- return () => {
526
- if (embla) {
527
- embla.off('scroll', handleScroll);
528
- embla.on('pointerUp', handlePointerUp);
529
- }
530
- };
531
- }, [embla, handleScroll, handlePointerUp]);
532
- return (React__default.createElement(StyledCarousel, Object.assign({ align: "center", slideGap: "xs", dragFree: true, draggable: isMobile, slideSize: "0", getEmblaApi: setEmbla, controlsOffset: -52, previousControlIcon: React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
533
- React__default.createElement("path", { d: "M6.86589 3.56104C7.03647 3.56104 7.20724 3.62732 7.33724 3.75765L7.39453 3.81494C7.6552 4.07561 7.6552 4.49765 7.39453 4.75765L4.81901 7.33317L13.5326 7.33317C13.9006 7.33317 14.1992 7.63184 14.1992 7.99984C14.1992 8.36784 13.9006 8.6665 13.5326 8.6665L4.81901 8.66651L7.39453 11.242C7.6552 11.5027 7.6552 11.9247 7.39453 12.1847L7.33724 12.242C7.07657 12.5027 6.65453 12.5027 6.39453 12.242L2.6237 8.47119C2.36303 8.21053 2.36303 7.78849 2.6237 7.52849L6.39453 3.75765C6.52487 3.62732 6.6953 3.56104 6.86589 3.56104Z", fill: "#595959" })), nextControlIcon: React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
534
- React__default.createElement("path", { d: "M9.13411 12.439C8.96353 12.439 8.79276 12.3727 8.66276 12.2423L8.60547 12.1851C8.3448 11.9244 8.3448 11.5023 8.60547 11.2423L11.181 8.66683L2.46745 8.66683C2.09945 8.66683 1.80078 8.36816 1.80078 8.00016C1.80078 7.63216 2.09945 7.3335 2.46745 7.3335L11.181 7.3335L8.60547 4.75797C8.3448 4.49731 8.3448 4.07527 8.60547 3.81527L8.66276 3.75797C8.92343 3.49731 9.34547 3.49731 9.60547 3.75797L13.3763 7.52881C13.637 7.78947 13.637 8.21152 13.3763 8.47152L9.60547 12.2423C9.47513 12.3727 9.3047 12.439 9.13411 12.439Z", fill: "#595959" })) }, rest),
535
- showHomeIcon && (React__default.createElement(Carousel.Slide, { style: { borderRight: `1px solid ${themeColors.neutral[1]}` } },
536
- React__default.createElement(BreadcrumbItem, { href: homeIconHref, target: "_blank", className: "pointer-event-child-none" },
537
- React__default.createElement(Box, { sx: Object.assign({}, (!isMarryBaby && {
538
- borderRadius: '50%',
539
- display: 'flex',
540
- justifyContent: 'center',
541
- alignItems: 'center',
542
- })), bg: !isMarryBaby && themeColors.neutral[0], p: !isMarryBaby ? 6 : 0 },
543
- React__default.createElement(AspectRatio, { ratio: 1, w: 18 }, isMarryBaby ? (React__default.createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" },
544
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1183 3.67722C12.8727 2.70772 11.1281 2.708 9.88187 3.67718L14.1183 3.67722ZM14.1183 3.67722L19.718 8.03283C20.5589 8.68632 21.05 9.69173 21.05 10.7562V17.6002C21.05 19.5057 19.5055 21.0502 17.6 21.0502H6.40016C4.49466 21.0502 2.9502 19.5057 2.9502 17.6002V10.7562C2.9502 9.69163 3.44113 8.68632 4.28216 8.03283L9.88187 3.67718M10.6799 4.70339L5.08006 9.05916C4.55657 9.46592 4.2502 10.0923 4.2502 10.7562V17.6002C4.2502 18.7878 5.21263 19.7502 6.40016 19.7502H17.6C18.7875 19.7502 19.75 18.7878 19.75 17.6002V10.7562C19.75 10.0923 19.4438 9.46612 18.9204 9.05936L13.3202 4.70335C12.5443 4.09941 11.4571 4.09905 10.6799 4.70339Z", fill: "#3E3F58" }),
545
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.2373 13.1626C12.5546 12.4794 11.4466 12.4791 10.7629 13.1628C10.0793 13.8464 10.0793 14.9538 10.7629 15.6374C11.4465 16.321 12.5539 16.321 13.2375 15.6374C13.9211 14.9538 13.9211 13.8464 13.2375 13.1628L13.2373 13.1626ZM14.1567 12.2436C12.9661 11.0521 11.0348 11.0525 9.84366 12.2436C8.65237 13.4348 8.65237 15.3653 9.84366 16.5566C11.0349 17.7479 12.9654 17.7479 14.1567 16.5566C15.348 15.3653 15.348 13.4348 14.1567 12.2436Z", fill: "#3E3F58" }))) : (React__default.createElement("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none" },
546
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.58691 5.59863L8.58691 1.62305C8.83594 1.45898 9.16406 1.45898 9.41309 1.62305L15.4131 5.59863C15.624 5.73926 15.75 5.97363 15.75 6.22559V14.25C15.75 15.0791 15.0791 15.75 14.25 15.75H3.75C2.9209 15.75 2.25 15.0791 2.25 14.25V6.22559C2.25 5.97363 2.37598 5.73926 2.58691 5.59863ZM5.5017 11.7602C5.1717 11.5108 5.17316 11.0321 5.46521 10.7391C5.75775 10.4456 6.24936 10.4292 6.5986 10.6522C7.17818 11.0223 8.12516 11.4889 9.21628 11.4889C10.3074 11.4889 11.2543 11.0223 11.8339 10.6522C12.1832 10.4292 12.6748 10.4456 12.9673 10.7391C13.2594 11.0321 13.2608 11.5108 12.9308 11.7602C11.8743 12.5589 10.535 12.9889 9.21628 12.9889C7.89758 12.9889 6.55824 12.5589 5.5017 11.7602Z", fill: "#595959" })))))))),
547
- React__default.createElement(Carousel.Slide, null),
548
- React__default.createElement(Carousel.Slide, null,
549
- React__default.createElement(Breadcrumbs$1, { styles: {
550
- separator: {
551
- marginInline: 4,
552
- },
553
- }, separator: React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
554
- React__default.createElement("path", { d: "M8.71527 7.99969L6.16794 5.45236C5.89194 5.17636 5.89194 4.72836 6.16794 4.45236C6.44394 4.17636 6.89194 4.17636 7.16794 4.45236L10.2439 7.52836C10.5046 7.78903 10.5046 8.21103 10.2439 8.47103L7.16794 11.547C6.89194 11.823 6.44394 11.823 6.16794 11.547C5.89194 11.271 5.89194 10.823 6.16794 10.547L8.71527 7.99969Z", fill: "#8C8C8C" })) }, children))));
555
- };
556
- const Breadcrumbs = _Breadcrumbs;
557
- Breadcrumbs.Item = BreadcrumbItem;
558
-
559
- var useStyles$3 = createStyles((_theme, _params) => {
560
342
  var _a, _b, _c, _d, _e, _f;
561
343
  const { other } = _theme;
562
344
  const { template } = other;
@@ -729,7 +511,7 @@ const Button = (props) => {
729
511
  const theme = useMantineTheme();
730
512
  const _c = Object.assign(Object.assign({}, (_b = (_a = theme.components) === null || _a === void 0 ? void 0 : _a.Button) === null || _b === void 0 ? void 0 : _b.defaultProps), filterObject(props)), { variant, size, color, skipHover, className, dataEventCategory, dataEventAction, dataEventLabel, children, theme: themeProp } = _c, rest = __rest(_c, ["variant", "size", "color", "skipHover", "className", "dataEventCategory", "dataEventAction", "dataEventLabel", "children", "theme"]);
731
513
  const isError = variant === 'error';
732
- const { classes, cx } = useStyles$3({
514
+ const { classes, cx } = useStyles$4({
733
515
  variant,
734
516
  size,
735
517
  color,
@@ -744,857 +526,1075 @@ const Button = (props) => {
744
526
  }, variant: MAPPED_VARIANT[variant], "data-variant": variant, "data-event-category": dataEventCategory, "data-event-action": dataEventAction, "data-event-label": dataEventLabel }, rest), children));
745
527
  };
746
528
 
747
- const StyledTextArea = styled(Textarea) `
748
- .mantine-Textarea-input {
749
- padding: 12px 16px;
750
- background: #ffffff;
751
- border: 1px solid ${theme.colors.gray200};
752
- border-radius: 4px;
753
- }
754
- `;
529
+ const CambodiaRoundIcon = (props) => (React__default.createElement(ImageWrap, Object.assign({ alt: "round cambodia flag", src: CommonGAssets.getAssetPath('flags/cambodiaRound.png'), style: Object.assign({ borderRadius: '50%' }, props.style) }, props)));
530
+ const CambodiaSquareIcon = (props) => (React__default.createElement(ImageWrap, Object.assign({ alt: "square cambodia flag", src: CommonGAssets.getAssetPath('flags/cambodiaSquare.png') }, props)));
755
531
 
756
- var useStyles$2 = createStyles((theme) => {
757
- return {
758
- root: {},
759
- inner: {},
760
- content: {},
761
- header: {
762
- borderBottom: `1px solid ${theme.colors.neutral[1]}`,
763
- marginRight: 0,
764
- marginBottom: 0,
765
- padding: '12px',
766
- },
767
- overlay: {},
768
- title: {
769
- fontSize: 16,
770
- fontWeight: 700,
771
- lineHeight: 1.5,
772
- },
773
- body: {},
774
- close: {
775
- cursor: 'pointer',
776
- width: 'unset',
777
- height: 'unset',
778
- svg: {
779
- width: '24px !important',
780
- height: '24px !important',
781
- },
782
- },
783
- };
784
- });
785
-
786
- const StyledAccordion = styled(Accordion$1) `
787
- .mantine-Accordion-label {
788
- padding: 0;
789
- }
790
- .mantine-Accordion-control {
791
- &:hover {
792
- background-color: transparent;
793
- }
794
- }
795
- .mantine-Accordion-item {
796
- .mantine-Accordion-chevron {
797
- > div {
798
- background-repeat: no-repeat;
799
- width: 16px;
800
- height: 16px;
801
- background-position: center;
802
- background-image: url(${(props) => props.closeChevron || CommonGAssets.getAssetPath('plus-icon.svg')});
803
- }
804
- }
805
- &[data-active='true'] {
806
- .mantine-Accordion-chevron {
807
- > div {
808
- background-image: url(${(props) => props.openChevron || CommonGAssets.getAssetPath('minus-icon.svg')});
809
- }
810
- }
811
- }
812
- }
813
- .mantine-Accordion-panel {
814
- border-radius: ${theme.borderRadius};
815
- }
816
- .mantine-Accordion-content {
817
- white-space: pre-wrap;
818
- }
819
- `;
532
+ const EnglishRoundIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
533
+ React__default.createElement("g", null,
534
+ React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
535
+ React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
536
+ React__default.createElement("path", { d: "M7.49953 0.327881C5.47199 0.850891 3.69346 1.98591 2.37793 3.53444L7.49953 6.6655V0.327881Z", fill: "#3F51B5" }),
537
+ React__default.createElement("path", { d: "M2.30273 16.3824C3.62476 17.9749 5.4353 19.1399 7.50034 19.6729V13.2053L2.30273 16.3824Z", fill: "#3F51B5" }),
538
+ React__default.createElement("path", { d: "M0.328125 12.5C0.334625 12.526 0.341125 12.5515 0.348125 12.5775L0.474128 12.5H0.328125Z", fill: "white" }),
539
+ React__default.createElement("path", { d: "M17.7871 3.73445C16.4571 2.08391 14.6131 0.872891 12.499 0.327881V6.96651L17.7871 3.73445Z", fill: "#3F51B5" }),
540
+ React__default.createElement("path", { d: "M12.499 19.6722C14.6506 19.1172 16.5196 17.8707 17.8546 16.1752L12.499 12.9021V19.6722Z", fill: "#3F51B5" }),
541
+ React__default.createElement("path", { d: "M0.376626 7.31055C0.359125 7.37305 0.344125 7.43705 0.328125 7.50005H0.686632L0.376626 7.31055Z", fill: "white" }),
542
+ React__default.createElement("path", { d: "M19.8745 8.50006C19.827 8.18506 19.7655 7.87555 19.6895 7.57104L18.1699 8.50006H19.8745Z", fill: "white" }),
543
+ React__default.createElement("path", { d: "M0.686034 7.50024H0.327527C0.243026 7.82775 0.175524 8.16076 0.124023 8.50026H2.32207L0.686034 7.50024Z", fill: "white" }),
544
+ React__default.createElement("path", { d: "M19.7197 12.3148C19.7832 12.0473 19.8337 11.7752 19.8752 11.5002H18.3867L19.7197 12.3148Z", fill: "white" }),
545
+ React__default.createElement("path", { d: "M2.10956 11.5002H0.124023C0.175024 11.8398 0.243026 12.1728 0.327527 12.5003H0.47403L2.10956 11.5002Z", fill: "white" }),
546
+ React__default.createElement("path", { d: "M8.50002 7.27665V0.124512C8.16051 0.175513 7.82751 0.243514 7.5 0.328016V6.66564L8.50002 7.27665Z", fill: "white" }),
547
+ React__default.createElement("path", { d: "M11.5 12.2913V19.8759C11.8395 19.8249 12.1725 19.7569 12.5 19.6724V12.9023L11.5 12.2913Z", fill: "white" }),
548
+ React__default.createElement("path", { d: "M7.5 13.205V19.6721C7.82751 19.7566 8.16051 19.8241 8.50002 19.8756V12.594L7.5 13.205Z", fill: "white" }),
549
+ React__default.createElement("path", { d: "M11.5925 7.34715L11.7345 7.43415L12.5 6.96614V0.328016C12.1725 0.243514 11.8395 0.176013 11.5 0.124512V7.49865L11.5925 7.34715Z", fill: "white" }),
550
+ React__default.createElement("path", { d: "M2.32251 8.50002H7.01761L8.50014 7.594V7.277L7.50011 6.66548L2.37852 3.53442C1.95151 4.03743 1.572 4.58144 1.24949 5.16296L5.02507 7.5H2.29701L0.650482 6.47648C0.54748 6.74949 0.455478 7.02699 0.375977 7.3105L0.686483 7.5L2.32251 8.50002Z", fill: "white" }),
551
+ React__default.createElement("path", { d: "M11.7344 7.43419L13.4784 8.50021H18.171L19.6905 7.57119C19.528 6.92118 19.303 6.29767 19.02 5.70516L16.139 7.50019H13.4109L18.317 4.45013C18.1515 4.20313 17.9735 3.96562 17.7875 3.73462L12.4999 6.96618L11.7344 7.43419Z", fill: "white" }),
552
+ React__default.createElement("path", { d: "M5.02448 7.50013L1.2494 5.16309C1.0169 5.58259 0.821394 6.0231 0.650391 6.47661L2.29642 7.50013H5.02448Z", fill: "#E53935" }),
553
+ React__default.createElement("path", { d: "M16.1392 7.50024L19.0207 5.70521C18.8132 5.2702 18.5837 4.84819 18.3177 4.45068L13.4111 7.50024H16.1392Z", fill: "#E53935" }),
554
+ React__default.createElement("path", { d: "M11.5 11.5002V12.2913L12.5 12.9023L17.8556 16.1758C18.2416 15.6853 18.5836 15.1593 18.8736 14.6008L15.4856 12.5003H18.2136L19.4432 13.2673C19.5507 12.9563 19.6432 12.6393 19.7197 12.3153L18.3871 11.5002H11.5Z", fill: "white" }),
555
+ React__default.createElement("path", { d: "M13.4785 8.50019L11.7345 7.43417L11.5925 7.34717L11.5 7.49867V8.50019H13.4785Z", fill: "white" }),
556
+ React__default.createElement("path", { d: "M8.49934 12.5943V11.5002H2.10921L0.473182 12.5003L0.34668 12.5778C0.522683 13.2383 0.762688 13.8713 1.06319 14.4708L4.16375 12.5003H6.89181L1.80071 15.7168C1.95971 15.9448 2.12471 16.1688 2.30172 16.3823L7.49932 13.2053L8.49934 12.5943Z", fill: "white" }),
557
+ React__default.createElement("path", { d: "M7.01758 8.50026H8.50011V7.59424L7.01758 8.50026Z", fill: "white" }),
558
+ React__default.createElement("path", { d: "M15.4854 12.5L18.8729 14.6C19.0949 14.173 19.2834 13.727 19.4429 13.2665L18.2134 12.5H15.4854Z", fill: "#E53935" }),
559
+ React__default.createElement("path", { d: "M4.16501 12.5L1.06445 14.4705C1.28196 14.9045 1.52596 15.3216 1.80197 15.7166L6.89307 12.5H4.16501Z", fill: "#E53935" }),
560
+ React__default.createElement("path", { d: "M13.4785 8.5H11.5V11.5001H18.3871H19.8757C19.9497 11.0095 20.0002 10.511 20.0002 10C20.0002 9.48902 19.9497 8.99051 19.8757 8.5H18.1711H13.4785Z", fill: "#E53935" }),
561
+ React__default.createElement("path", { d: "M8.50017 11.5001V8.5H7.01764H2.32255H0.124502C0.050501 8.99051 0 9.48902 0 10C0 10.511 0.050501 11.0095 0.124502 11.5001H2.11004H8.50017Z", fill: "#E53935" }),
562
+ React__default.createElement("path", { d: "M11.5001 19.8759V12.2912V11.5002V8.50016V7.49865V0.124502C11.0095 0.050501 10.511 0 10 0C9.48902 0 8.99051 0.050501 8.5 0.124502V7.27664V7.59365V8.50016V11.5002V12.5942V19.8759C8.99051 19.9499 9.48902 20.0004 10 20.0004C10.511 20.0004 11.0095 19.9499 11.5001 19.8759Z", fill: "#E53935" }))));
563
+ const EnglishSquareIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 26 26", fill: "none" }, props),
564
+ React__default.createElement("g", null,
565
+ React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "1", y: "5", width: "24", height: "16" },
566
+ React__default.createElement("path", { d: "M1.08301 7.41675C1.08301 6.31218 1.97844 5.41675 3.08301 5.41675H22.9163C24.0209 5.41675 24.9163 6.31218 24.9163 7.41675V18.5834C24.9163 19.688 24.0209 20.5834 22.9163 20.5834H3.08301C1.97844 20.5834 1.08301 19.688 1.08301 18.5834V7.41675Z", fill: "#3F51B5" })),
567
+ React__default.createElement("path", { d: "M1.08301 5.41675H24.9163V20.5834H1.08301V5.41675Z", fill: "#3F51B5" }),
568
+ React__default.createElement("path", { d: "M1.08301 7.70041L12.3551 14.5899L14.05 11.8165L3.57901 5.41675H1.08301V7.70041Z", fill: "white" }),
569
+ React__default.createElement("path", { d: "M24.9165 5.41675H22.9616L12.4912 11.816L14.1855 14.5899L24.9165 8.03083V5.41675Z", fill: "white" }),
570
+ React__default.createElement("path", { d: "M14.1855 10.9802L12.4912 13.7536L23.6658 20.5834H24.9165V17.5387L14.1855 10.9802Z", fill: "white" }),
571
+ React__default.createElement("path", { d: "M1.08301 17.8702V20.5834H2.87592L14.05 13.7541L12.3556 10.9802L1.08301 17.8702Z", fill: "white" }),
572
+ React__default.createElement("path", { d: "M1.08301 10.8333H24.9163V15.1666H1.08301V10.8333Z", fill: "white" }),
573
+ React__default.createElement("path", { d: "M10.833 5.41675H15.1663V20.5834H10.833V5.41675Z", fill: "white" }),
574
+ React__default.createElement("path", { d: "M9.32609 10.8334L1.08301 5.79537V7.06504L7.24826 10.8334H9.32609ZM24.0004 5.41675L15.1376 10.8334H17.2149L24.9163 6.12687V5.41675H24.0004ZM17.9191 15.1667L24.9163 19.4432V18.1735L19.9964 15.1667H17.9191ZM8.62192 15.1667L1.08301 19.7742V20.5834H1.83701L10.6992 15.1667H8.62192ZM1.08301 11.9167H24.9163V14.0834H1.08301V11.9167Z", fill: "#E53935" }),
575
+ React__default.createElement("path", { d: "M11.917 5.41675H14.0837V20.5834H11.917V5.41675Z", fill: "#E53935" }))));
820
576
 
821
- const _Accordion = (_a) => {
822
- var { children } = _a, rest = __rest(_a, ["children"]);
823
- return (React__default.createElement(StyledAccordion, Object.assign({ chevron: React__default.createElement("div", null), disableChevronRotation: true, transitionDuration: 300 }, rest), children));
824
- };
825
- const Accordion = _Accordion;
826
- Accordion.Control = Accordion$1.Control;
827
- Accordion.Item = Accordion$1.Item;
828
- Accordion.Panel = Accordion$1.Panel;
577
+ const IndiaRoundIcon = (props) => (React__default.createElement(ImageWrap, Object.assign({ alt: "round india flag", src: CommonGAssets.getAssetPath('flags/indiaRound.png'), style: Object.assign({ borderRadius: '50%' }, props.style) }, props)));
578
+ const IndiaSquareIcon = (props) => (React__default.createElement(ImageWrap, Object.assign({ alt: "square indian flag", src: CommonGAssets.getAssetPath('flags/indiaSquare.png') }, props)));
829
579
 
830
- const ImageWrap = (_a) => {
831
- var { alt, backupSrc, src, placeholderSrc, style, ref } = _a, props = __rest(_a, ["alt", "backupSrc", "src", "placeholderSrc", "style", "ref"]);
832
- const [hasError, setHasError] = useState(false);
833
- return (React__default.createElement(StyledImage, Object.assign({ loading: "lazy", alt: alt, onError: () => !hasError && setHasError(true), src: hasError ? backupSrc || src : src || backupSrc, style: Object.assign(Object.assign({}, (placeholderSrc
834
- ? {
835
- backgroundImage: `url(${placeholderSrc})`,
836
- }
837
- : {})), style), "data-has-placeholder": !!placeholderSrc, ref: ref }, props)));
580
+ const IndonesiaRoundIcon = (_a) => {
581
+ var rest = __rest(_a, []);
582
+ const maskId = useUniqueId();
583
+ return (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none" }, rest),
584
+ React__default.createElement("mask", { id: maskId, style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
585
+ React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
586
+ React__default.createElement("g", { mask: `url(#${maskId})` },
587
+ React__default.createElement("rect", { width: "20", height: "10", fill: "#CE1126" }),
588
+ React__default.createElement("rect", { y: "10", width: "20", height: "10", fill: "white" }))));
838
589
  };
839
- const StyledImage = styled.img `
840
- &[data-has-placeholder='true'] {
841
- background-position: center;
842
- background-repeat: no-repeat;
843
- background-size: cover;
844
- }
845
- `;
846
-
847
- const DEFAULT_AVATAR = CommonGAssets.getAssetPath('avatar.jpg');
848
- const Avatar = (_a) => {
849
- var { withIndicator = false, indicatorConfig = null, size = 56, children, styles, placeholderText } = _a, // usually first letter of name
850
- avatarProps = __rest(_a, ["withIndicator", "indicatorConfig", "size", "children", "styles", "placeholderText"]);
851
- const generateAvatar = () => {
852
- return (React__default.createElement(Avatar$1, Object.assign({ size: size, radius: "xl" }, avatarProps, { imageProps: Object.assign({ loading: 'lazy' }, avatarProps.imageProps), styles: {
853
- placeholder: {
854
- backgroundColor: avatarProps.color,
855
- color: 'white',
856
- },
857
- } }), children ? (children) : placeholderText ? (placeholderText) : (React__default.createElement(ImageWrap, { src: DEFAULT_AVATAR, width: size, alt: avatarProps.alt || 'avatar' }))));
858
- };
859
- if (withIndicator)
860
- return (React__default.createElement(Indicator, Object.assign({ inline: true, position: "bottom-end", offset: 9 }, indicatorConfig, { styles: Object.assign({ indicator: {
861
- backgroundColor: React__default.isValidElement(indicatorConfig.label) && 'transparent',
862
- zIndex: 1,
863
- } }, styles) }), generateAvatar()));
864
- return generateAvatar();
590
+ const IndonesiaSquareIcon = (_a) => {
591
+ var rest = __rest(_a, []);
592
+ const clipPathId = useUniqueId();
593
+ return (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, rest),
594
+ React__default.createElement("g", { clipPath: `url(#${clipPathId})` },
595
+ React__default.createElement("rect", { y: "0.0166016", width: "24", height: "8", fill: "#CE1126" }),
596
+ React__default.createElement("rect", { y: "8.0166", width: "24", height: "8", fill: "white" })),
597
+ React__default.createElement("defs", null,
598
+ React__default.createElement("clipPath", { id: clipPathId },
599
+ React__default.createElement("rect", { width: "24", height: "16", rx: "2", fill: "white" })))));
865
600
  };
866
601
 
867
- const FileInput = (props) => {
868
- return React__default.createElement(FileInput$1, Object.assign({ size: "md" }, props));
869
- };
602
+ const MalaysiaRoundIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
603
+ React__default.createElement("g", null,
604
+ React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
605
+ React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
606
+ React__default.createElement("rect", { y: "1", width: "20", height: "20", fill: "#CC0001" }),
607
+ React__default.createElement("rect", { y: "16.106", width: "20", height: "1.02041", fill: "white" }),
608
+ React__default.createElement("rect", { y: "16", width: "20", height: "1.02041", fill: "white" }),
609
+ React__default.createElement("rect", { y: "18", width: "20", height: "1.02041", fill: "white" }),
610
+ React__default.createElement("rect", { y: "14.0652", width: "20", height: "1.02041", fill: "white" }),
611
+ React__default.createElement("rect", { y: "12.0242", width: "20", height: "1.02041", fill: "white" }),
612
+ React__default.createElement("rect", { y: "9.9834", width: "20", height: "1.02041", fill: "white" }),
613
+ React__default.createElement("rect", { y: "7.94263", width: "20", height: "1.02041", fill: "white" }),
614
+ React__default.createElement("rect", { y: "5.90186", width: "20", height: "1.02041", fill: "white" }),
615
+ React__default.createElement("rect", { y: "3.86084", width: "20", height: "1.02041", fill: "white" }),
616
+ React__default.createElement("rect", { y: "2", width: "20", height: "1.02041", fill: "white" }),
617
+ React__default.createElement("rect", { width: "20", height: "1.02041", fill: "white" }),
618
+ React__default.createElement("rect", { y: "-1", width: "10", height: "12", fill: "#010066" }),
619
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.11387 3.86084C2.92711 3.86084 1.96387 5.23232 1.96387 6.92206C1.96387 8.6118 2.92711 9.98329 4.11387 9.98329C4.54263 9.98329 4.94211 9.80406 5.27763 9.4957C5.08225 9.59203 4.87256 9.64471 4.65427 9.64471C3.60193 9.64471 2.74786 8.42866 2.74786 6.93032C2.74786 5.43198 3.60193 4.21594 4.65427 4.21594C4.88682 4.21594 5.10959 4.27527 5.31571 4.38397C4.97256 4.0538 4.5589 3.86084 4.11387 3.86084Z", fill: "#FFCC00" }),
620
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.67935 8.51573L6.7737 7.8407L7.04147 9.22221L6.43573 8.06657L6.24676 9.47313L6.0609 8.06576L5.4526 9.2188L5.72343 7.83844L4.81629 8.50957L5.49017 7.42963L4.46387 7.48593L5.40732 6.9203L4.46512 6.35062L5.4913 6.41133L4.81981 5.3285L5.72546 6.00353L5.45769 4.62202L6.06343 5.77766L6.25241 4.37109L6.43827 5.77847L7.04656 4.62543L6.77574 6.00579L7.68287 5.33466L7.00899 6.4146L8.0353 6.3583L7.09184 6.92392L8.03404 7.49361L7.00786 7.43289L7.67935 8.51573Z", fill: "#FFCC00" }))));
621
+ const MalaysiaSquareIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
622
+ React__default.createElement("rect", { width: "24", height: "16", rx: "2", fill: "#CC0001" }),
623
+ React__default.createElement("rect", { y: "12.2712", width: "24", height: "0.777454", fill: "white" }),
624
+ React__default.createElement("rect", { y: "12.1904", width: "24", height: "0.777454", fill: "white" }),
625
+ React__default.createElement("rect", { y: "13.7144", width: "24", height: "0.777454", fill: "white" }),
626
+ React__default.createElement("rect", { y: "10.7161", width: "24", height: "0.777454", fill: "white" }),
627
+ React__default.createElement("rect", { y: "9.16138", width: "24", height: "0.777454", fill: "white" }),
628
+ React__default.createElement("rect", { y: "7.60645", width: "24", height: "0.777454", fill: "white" }),
629
+ React__default.createElement("rect", { y: "6.05127", width: "24", height: "0.777454", fill: "white" }),
630
+ React__default.createElement("rect", { y: "4.49658", width: "24", height: "0.777454", fill: "white" }),
631
+ React__default.createElement("rect", { y: "2.94141", width: "24", height: "0.777454", fill: "white" }),
632
+ React__default.createElement("rect", { y: "1.52393", width: "24", height: "0.777454", fill: "white" }),
633
+ React__default.createElement("rect", { width: "24", height: "0.777454", fill: "white" }),
634
+ React__default.createElement("path", { d: "M0 2C0 0.895431 0.895431 0 2 0H12V8.38095H0V2Z", fill: "#010066" }),
635
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.93644 1.52393C3.51233 1.52393 2.35645 2.56887 2.35645 3.85629C2.35645 5.14371 3.51233 6.18865 4.93644 6.18865C5.45096 6.18865 5.93034 6.05209 6.33296 5.81716C6.09851 5.89054 5.84688 5.93068 5.58492 5.93068C4.32212 5.93068 3.29724 5.00417 3.29724 3.86258C3.29724 2.72099 4.32212 1.79448 5.58492 1.79448C5.86399 1.79448 6.13132 1.83968 6.37865 1.9225C5.96688 1.67094 5.47049 1.52393 4.93644 1.52393Z", fill: "#FFCC00" }),
636
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.216 5.07041L8.12923 4.55611L8.45055 5.60869L7.72366 4.72819L7.49689 5.79987L7.27386 4.72758L6.5439 5.60609L6.86889 4.55439L5.78033 5.06572L6.58899 4.24291L5.35742 4.28581L6.48957 3.85485L5.35893 3.42081L6.59034 3.46707L5.78456 2.64205L6.87133 3.15636L6.55001 2.10378L7.2769 2.98427L7.50367 1.9126L7.7267 2.98488L8.45666 2.10638L8.13166 3.15808L9.22022 2.64674L8.41157 3.46955L9.64314 3.42666L8.51099 3.85761L9.64163 4.29165L8.41022 4.2454L9.216 5.07041Z", fill: "#FFCC00" })));
870
637
 
871
- const DEBOUNCED_TIME = 300;
872
- const emotionCache = createEmotionCache({
873
- key: 'mantine',
874
- prepend: false,
875
- });
638
+ const MyanmarRoundIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
639
+ React__default.createElement("g", null,
640
+ React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
641
+ React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
642
+ React__default.createElement("rect", { x: "-4", y: "-1", width: "28", height: "11", fill: "#FECB00" }),
643
+ React__default.createElement("rect", { x: "-4", y: "10", width: "28", height: "10", fill: "#EA2839" }),
644
+ React__default.createElement("rect", { x: "-4", y: "6.7041", width: "28", height: "6.47773", fill: "#34B233" }),
645
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.56543 10.3272L10.1796 5.15527L11.7938 10.3272H8.56543Z", fill: "white" }),
646
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.5292 11.2775L7.18336 14.5129L8.91745 9.37991L11.5292 11.2775Z", fill: "white" }),
647
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.75181 11.8648L5.33182 8.73143L10.7494 8.79447L9.75181 11.8648Z", fill: "white" }),
648
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.6105 8.78962L15.0281 8.72658L10.6081 11.86L9.6105 8.78962Z", fill: "white" }),
649
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.4424 9.37686L13.1765 14.5098L8.83064 11.2744L11.4424 9.37686Z", fill: "white" }))));
650
+ const MyanmarSquareIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
651
+ React__default.createElement("rect", { width: "24", height: "16", rx: "2", fill: "#FECB00" }),
652
+ React__default.createElement("rect", { y: "8.3811", width: "24", height: "7.61905", rx: "2", fill: "#EA2839" }),
653
+ React__default.createElement("rect", { y: "5.86987", width: "24", height: "4.93542", fill: "#34B233" }),
654
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.7705 8.63046L12.1541 4.68994L13.5377 8.63046H10.7705Z", fill: "white" }),
655
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.3108 9.35502L9.58574 11.8201L11.0721 7.90925L13.3108 9.35502Z", fill: "white" }),
656
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.7874 9.80216L7.99884 7.41482L12.6425 7.46285L11.7874 9.80216Z", fill: "white" }),
657
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.6667 7.4589L16.3104 7.41087L12.5218 9.79821L11.6667 7.4589Z", fill: "white" }),
658
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.2361 7.90629L14.7225 11.8171L10.9974 9.35207L13.2361 7.90629Z", fill: "white" })));
876
659
 
877
- const NumberInput = (_a) => {
878
- var { value: _value, onChange: _onChange } = _a, props = __rest(_a, ["value", "onChange"]);
879
- const [value, setValue] = useState(_value);
880
- const [debounced] = useDebouncedValue(value, DEBOUNCED_TIME);
881
- useEffect(() => {
882
- _onChange === null || _onChange === void 0 ? void 0 : _onChange(debounced);
883
- }, [debounced]);
884
- useEffect(() => {
885
- setValue(_value);
886
- }, [_value]);
887
- return (React__default.createElement(NumberInput$1, Object.assign({ size: "md", stepHoldDelay: 500, stepHoldInterval: (t) => Math.max(1000 / Math.pow(t, 2), 25), onChange: setValue, hideControls: true, min: 0, formatter: (value) => {
888
- if (Number(value) === 0)
889
- return value;
890
- return value || '';
891
- }, removeTrailingZeros: true, value: value }, props)));
892
- };
660
+ const PhilippinesRoundIcon = (props) => (React__default.createElement(ImageWrap, Object.assign({ alt: "round philippines flag", src: CommonGAssets.getAssetPath('flags/philippineRound.png'), style: Object.assign({ borderRadius: '50%' }, props.style) }, props)));
661
+ const PhilippinesSquareIcon = (props) => (React__default.createElement(ImageWrap, Object.assign({ alt: "square philippines flag", src: CommonGAssets.getAssetPath('flags/philippineSquare.png') }, props)));
893
662
 
894
- const EyeVisible = CommonGAssets.getAssetPath('EyeVisible.svg');
895
- const EyeHidden = CommonGAssets.getAssetPath('EyeHidden.svg');
896
- const PasswordInput = forwardRef((props, ref) => {
897
- const { size = 'md', visibilityToggleIcon: visibilityToggleIconProps } = props, restProps = __rest(props, ["size", "visibilityToggleIcon"]);
898
- const visibilityToggleIcon = visibilityToggleIconProps ||
899
- (({ reveal, size }) => reveal ? (React__default.createElement("img", { src: EyeVisible, width: size, loading: "lazy" })) : (React__default.createElement("img", { src: EyeHidden, width: size, loading: "lazy" })));
900
- return (React__default.createElement(PasswordInput$1, Object.assign({ ref: ref, size: size, visibilityToggleIcon: visibilityToggleIcon }, restProps, { className: `input-control ${(restProps === null || restProps === void 0 ? void 0 : restProps.className) || ''}` })));
901
- });
663
+ const TaiwanRoundIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
664
+ React__default.createElement("g", null,
665
+ React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
666
+ React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
667
+ React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#D8D8D8" }),
668
+ React__default.createElement("g", null,
669
+ React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
670
+ React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "white" })),
671
+ React__default.createElement("rect", { width: "30", height: "20", fill: "#ED1E24" }),
672
+ React__default.createElement("rect", { width: "15", height: "10", fill: "#2B2F84" }),
673
+ React__default.createElement("circle", { cx: "7.49791", cy: "4.99913", r: "1.869", fill: "white" }),
674
+ React__default.createElement("path", { d: "M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z", fill: "white" }),
675
+ React__default.createElement("path", { d: "M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z", fill: "white" }),
676
+ React__default.createElement("path", { d: "M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z", fill: "white" }),
677
+ React__default.createElement("path", { d: "M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z", fill: "white" }),
678
+ React__default.createElement("path", { d: "M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z", fill: "white" }),
679
+ React__default.createElement("path", { d: "M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z", fill: "white" }),
680
+ React__default.createElement("path", { d: "M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z", fill: "white" }),
681
+ React__default.createElement("path", { d: "M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z", fill: "white" }),
682
+ React__default.createElement("path", { d: "M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z", fill: "white" }),
683
+ React__default.createElement("path", { d: "M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z", fill: "white" }),
684
+ React__default.createElement("path", { d: "M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z", fill: "white" }),
685
+ React__default.createElement("path", { d: "M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z", fill: "white" })))));
686
+ const TaiwanSquareIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
687
+ React__default.createElement("rect", { width: "24", height: "16", rx: "2", fill: "#ED1E24" }),
688
+ React__default.createElement("path", { d: "M0 2C0 0.89543 0.895431 0 2 0H15V10H0V2Z", fill: "#2B2F84" }),
689
+ React__default.createElement("circle", { cx: "7.49791", cy: "4.99913", r: "1.869", fill: "white" }),
690
+ React__default.createElement("path", { d: "M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z", fill: "white" }),
691
+ React__default.createElement("path", { d: "M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z", fill: "white" }),
692
+ React__default.createElement("path", { d: "M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z", fill: "white" }),
693
+ React__default.createElement("path", { d: "M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z", fill: "white" }),
694
+ React__default.createElement("path", { d: "M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z", fill: "white" }),
695
+ React__default.createElement("path", { d: "M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z", fill: "white" }),
696
+ React__default.createElement("path", { d: "M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z", fill: "white" }),
697
+ React__default.createElement("path", { d: "M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z", fill: "white" }),
698
+ React__default.createElement("path", { d: "M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z", fill: "white" }),
699
+ React__default.createElement("path", { d: "M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z", fill: "white" }),
700
+ React__default.createElement("path", { d: "M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z", fill: "white" }),
701
+ React__default.createElement("path", { d: "M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z", fill: "white" })));
902
702
 
903
- const InputWrapper = forwardRef((_a, ref) => {
904
- var { value: _value, onChange: _onChange, onChangeRaw, maxLength } = _a, props = __rest(_a, ["value", "onChange", "onChangeRaw", "maxLength"]);
905
- const [value, setValue] = useState(_value || '');
906
- const [debounced] = useDebouncedValue(value, DEBOUNCED_TIME);
907
- useEffect(() => {
908
- _onChange === null || _onChange === void 0 ? void 0 : _onChange(debounced);
909
- }, [debounced]);
910
- useEffect(() => {
911
- setValue(_value);
912
- }, [_value]);
913
- return (React__default.createElement(TextInput, Object.assign({ ref: ref, size: "md", onChange: (event) => {
914
- if (typeof maxLength === 'number' &&
915
- event.currentTarget.value.length > maxLength) {
916
- return;
917
- }
918
- onChangeRaw === null || onChangeRaw === void 0 ? void 0 : onChangeRaw(event);
919
- setValue(event.currentTarget.value);
920
- }, value: value }, props, { maxLength: maxLength, className: `input-control ${(props === null || props === void 0 ? void 0 : props.className) || ''}` })));
921
- });
922
- const Input = InputWrapper;
923
- Input.File = FileInput;
924
- Input.Password = PasswordInput;
925
- Input.Number = NumberInput;
926
- Input.Wrapper = Input$1.Wrapper;
703
+ const ThailandRoundIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
704
+ React__default.createElement("g", null,
705
+ React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
706
+ React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
707
+ React__default.createElement("rect", { x: "-4", y: "-0.0166016", width: "28", height: "20", fill: "#ED1C24" }),
708
+ React__default.createElement("rect", { x: "-4", y: "3.31665", width: "28", height: "13.3333", fill: "white" }),
709
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M-4 6.65015H24V13.3168H-4V6.65015Z", fill: "#241D4F" }))));
710
+ const ThailandSquareIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 17", fill: "none" }, props),
711
+ React__default.createElement("rect", { y: "0.983398", width: "24", height: "16", rx: "2", fill: "#ED1C24" }),
712
+ React__default.createElement("rect", { y: "3.65039", width: "24", height: "10.6667", fill: "white" }),
713
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 6.31689H24V11.6502H0V6.31689Z", fill: "#241D4F" })));
927
714
 
928
- const StyledSlide = Carousel$1.Slide;
715
+ const VietnamRoundIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
716
+ React__default.createElement("g", null,
717
+ React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
718
+ React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
719
+ React__default.createElement("rect", { x: "-4", y: "-0.0166016", width: "28", height: "20", fill: "#DA251D" }),
720
+ React__default.createElement("path", { d: "M11.7228 10.8677L14.2819 9.00839L11.1187 9.00839L10.1409 6L9.16316 9.00839L6 9.00839L8.5591 10.8677L7.58184 13.8766L10.1409 12.0168L12.7 13.8766L11.7228 10.8677Z", fill: "#FFEB3B" }))));
721
+ const VietnamSquareIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
722
+ React__default.createElement("g", null,
723
+ React__default.createElement("clipPath", null,
724
+ React__default.createElement("rect", { width: "24", height: "16", fill: "white" })),
725
+ React__default.createElement("path", { d: "M2.01386e-10 2C0 0.895431 0.895431 -7.50368e-10 2 -1.67599e-09L22 -1.84359e-08C23.1046 -1.93615e-08 24 0.895431 24 2L24 14C24 15.1046 23.1046 16 22 16L2 16C0.89543 16 1.52092e-09 15.1046 1.4097e-09 14L2.01386e-10 2Z", fill: "#DA251D" }),
726
+ React__default.createElement("path", { d: "M13.7823 8.92854L16.6663 6.8332L13.1016 6.8332L11.9997 3.44287L10.8978 6.8332L7.33301 6.8332L10.217 8.92854L9.11567 12.3195L11.9997 10.2235L14.8837 12.3195L13.7823 8.92854Z", fill: "#FFEB3B" }))));
929
727
 
930
- const SlideContext = createContext({});
931
- const CustomSlide = (_a) => {
932
- var { children, onClick, innerSlideProps } = _a, rest = __rest(_a, ["children", "onClick", "innerSlideProps"]);
933
- const { slider, selectSlideWhenClick } = useContext(SlideContext);
934
- const ref = useRef();
935
- const key = useRef('');
936
- const [index, setIndex] = useState(0);
937
- useEffect(() => {
938
- key.current = String(Math.round(Math.random() * 10000));
939
- }, []);
940
- useEffect(() => {
941
- const slidesNode = (slider === null || slider === void 0 ? void 0 : slider.slideNodes()) || [];
942
- setIndex(slidesNode.findIndex((obj) => obj.dataset.key === key.current));
943
- }, [slider]);
944
- const sliderProps = {
945
- ref,
946
- 'data-key': key.current,
947
- 'data-index': index,
728
+ var styles$2 = {"flag":"pfaLGRK"};
729
+
730
+ const Flag = ({ country, language, rounded, height, width, isTesting, className, }) => {
731
+ let flag;
732
+ let flagRounded;
733
+ switch (language) {
734
+ case 'en':
735
+ flag = React__default.createElement(EnglishSquareIcon, null);
736
+ flagRounded = React__default.createElement(EnglishRoundIcon, null);
737
+ break;
738
+ case 'vi':
739
+ flag = React__default.createElement(VietnamSquareIcon, null);
740
+ flagRounded = React__default.createElement(VietnamRoundIcon, null);
741
+ break;
742
+ case 'id':
743
+ flag = React__default.createElement(IndonesiaSquareIcon, { isTesting: isTesting });
744
+ flagRounded = React__default.createElement(IndonesiaRoundIcon, { isTesting: isTesting });
745
+ break;
746
+ case 'th':
747
+ flag = React__default.createElement(ThailandSquareIcon, null);
748
+ flagRounded = React__default.createElement(ThailandRoundIcon, null);
749
+ break;
750
+ case 'km':
751
+ flag = React__default.createElement(CambodiaSquareIcon, null);
752
+ flagRounded = React__default.createElement(CambodiaRoundIcon, null);
753
+ break;
754
+ case 'ms':
755
+ flag = React__default.createElement(MalaysiaSquareIcon, null);
756
+ flagRounded = React__default.createElement(MalaysiaRoundIcon, null);
757
+ break;
758
+ case 'my':
759
+ flag = React__default.createElement(MyanmarSquareIcon, null);
760
+ flagRounded = React__default.createElement(MyanmarRoundIcon, null);
761
+ break;
762
+ case 'tl':
763
+ flag = React__default.createElement(PhilippinesSquareIcon, null);
764
+ flagRounded = React__default.createElement(PhilippinesRoundIcon, null);
765
+ break;
766
+ case 'hi':
767
+ flag = React__default.createElement(IndiaSquareIcon, null);
768
+ flagRounded = React__default.createElement(IndiaRoundIcon, null);
769
+ break;
770
+ case 'zh':
771
+ flag = React__default.createElement(TaiwanSquareIcon, null);
772
+ flagRounded = React__default.createElement(TaiwanRoundIcon, null);
773
+ break;
774
+ }
775
+ if (!flag && !flagRounded) {
776
+ switch (country) {
777
+ case 'VN':
778
+ flag = React__default.createElement(VietnamSquareIcon, null);
779
+ flagRounded = React__default.createElement(VietnamRoundIcon, null);
780
+ break;
781
+ case 'ID':
782
+ flag = React__default.createElement(IndonesiaSquareIcon, { isTesting: isTesting });
783
+ flagRounded = React__default.createElement(IndonesiaRoundIcon, { isTesting: isTesting });
784
+ break;
785
+ case 'TH':
786
+ flag = React__default.createElement(ThailandSquareIcon, null);
787
+ flagRounded = React__default.createElement(ThailandRoundIcon, null);
788
+ break;
789
+ case 'KH':
790
+ flag = React__default.createElement(CambodiaSquareIcon, null);
791
+ flagRounded = React__default.createElement(CambodiaRoundIcon, null);
792
+ break;
793
+ case 'MY':
794
+ flag = React__default.createElement(MalaysiaSquareIcon, null);
795
+ flagRounded = React__default.createElement(MalaysiaRoundIcon, null);
796
+ break;
797
+ case 'MM':
798
+ flag = React__default.createElement(MyanmarSquareIcon, null);
799
+ flagRounded = React__default.createElement(MyanmarRoundIcon, null);
800
+ break;
801
+ case 'PH':
802
+ flag = React__default.createElement(PhilippinesSquareIcon, null);
803
+ flagRounded = React__default.createElement(PhilippinesRoundIcon, null);
804
+ break;
805
+ case 'IN':
806
+ flag = React__default.createElement(IndiaSquareIcon, null);
807
+ flagRounded = React__default.createElement(IndiaRoundIcon, null);
808
+ break;
809
+ case 'TW':
810
+ flag = React__default.createElement(TaiwanSquareIcon, null);
811
+ flagRounded = React__default.createElement(TaiwanRoundIcon, null);
812
+ break;
813
+ }
814
+ }
815
+ return (React__default.createElement("div", { className: `${styles$2.flag} ${className || ''}`, style: {
816
+ '--width': width || 20,
817
+ '--height': height || 20,
818
+ } }, rounded ? flagRounded : flag));
819
+ };
820
+
821
+ const Select = forwardRef((_a, ref) => {
822
+ var { keepSearch = false } = _a, props = __rest(_a, ["keepSearch"]);
823
+ if (keepSearch) {
824
+ return (React__default.createElement(_AutoComplete, Object.assign({}, props, { ref: ref })));
825
+ }
826
+ else {
827
+ return React__default.createElement(_Select, Object.assign({}, props, { ref: ref }));
828
+ }
829
+ });
830
+ const _AutoComplete = forwardRef((_a, ref) => {
831
+ var { value, defaultValue, onChange, clearable } = _a, props = __rest(_a, ["value", "defaultValue", "onChange", "clearable"]);
832
+ const [_value, handleChange] = useUncontrolled({
833
+ value,
834
+ defaultValue,
835
+ onChange,
836
+ });
837
+ const onClear = () => {
838
+ handleChange('');
948
839
  };
949
- return (React__default.createElement(StyledSlide, Object.assign({}, sliderProps, rest),
950
- React__default.createElement("div", Object.assign({ style: {
951
- height: '100%',
952
- }, onClick: () => {
953
- selectSlideWhenClick && (slider === null || slider === void 0 ? void 0 : slider.scrollTo(index));
954
- onClick === null || onClick === void 0 ? void 0 : onClick(index);
955
- } }, innerSlideProps), children)));
956
- };
957
- const findIndexFromLeftSide = (position, slideLength) => {
958
- return position >= slideLength ? position - slideLength : position;
959
- };
960
- const findIndexFromRight = (position, slideLength) => {
961
- return position < 0 ? slideLength + position : position;
962
- };
963
- const CarouselWrapper = (_a) => {
964
- var { children, blurFromCenter, blurFromIndex, blurLength = 3, maxBlurOpacity = 0.5, onSlideChange, selectSlideWhenClick } = _a, props = __rest(_a, ["children", "blurFromCenter", "blurFromIndex", "blurLength", "maxBlurOpacity", "onSlideChange", "selectSlideWhenClick"]);
965
- const { width } = useViewportSize();
966
- const [ref] = useResizeObserver();
967
- const slider = useRef(null);
968
- const [centerSlide, setCenterSlide] = useState(0);
969
- const handleStyle = () => {
970
- var _a, _b, _c, _d, _e;
971
- const slidesNode = ((_a = slider === null || slider === void 0 ? void 0 : slider.current) === null || _a === void 0 ? void 0 : _a.slideNodes()) || [];
972
- if (((_b = slider === null || slider === void 0 ? void 0 : slider.current) === null || _b === void 0 ? void 0 : _b.slideNodes().length) <=
973
- ((_c = slider === null || slider === void 0 ? void 0 : slider.current) === null || _c === void 0 ? void 0 : _c.slidesInView().length)) {
974
- slidesNode.map((item) => {
975
- item.classList.remove('center-slide');
976
- item.style.opacity = '1';
977
- });
978
- return false;
840
+ return (React__default.createElement(Autocomplete, Object.assign({ ref: ref, rightSection: React__default.createElement(Image, { src: CommonGAssets.getAssetPath('chevron-down.svg'), fit: "none" }), size: "md", maxDropdownHeight: 300, onChange: (e) => handleChange(e), value: _value }, props, (clearable && (_value === null || _value === void 0 ? void 0 : _value.length) > 0
841
+ ? {
842
+ rightSection: (React__default.createElement(ActionIcon, { onClick: onClear, sx: { cursor: 'pointer' } },
843
+ React__default.createElement(_IconSelect, null))),
979
844
  }
980
- const centerSlideIndex = (_d = slider === null || slider === void 0 ? void 0 : slider.current) === null || _d === void 0 ? void 0 : _d.selectedScrollSnap();
981
- setCenterSlide(centerSlideIndex);
982
- const slidesNodeLength = slidesNode.length;
983
- const slidesInView = (_e = slider === null || slider === void 0 ? void 0 : slider.current) === null || _e === void 0 ? void 0 : _e.slidesInView();
984
- const slidesInViewLength = slidesInView.length;
985
- const halfSideLength = Math.floor(slidesInViewLength / 2);
986
- const halfSideBlurLength = blurFromCenter
987
- ? blurFromIndex + blurLength - 1
988
- : halfSideLength;
989
- const lastRightBlurIndexTmp = centerSlideIndex + halfSideBlurLength;
990
- const lastRightBlurIndex = lastRightBlurIndexTmp === slidesNodeLength
991
- ? 0
992
- : lastRightBlurIndexTmp > slidesNodeLength
993
- ? lastRightBlurIndexTmp - slidesNodeLength
994
- : lastRightBlurIndexTmp;
995
- const lastLeftBlurIndexTmp = centerSlideIndex - halfSideBlurLength;
996
- const lastLeftBlurIndex = lastLeftBlurIndexTmp < 0
997
- ? slidesNodeLength + lastLeftBlurIndexTmp
998
- : lastLeftBlurIndexTmp > 0
999
- ? centerSlideIndex - halfSideBlurLength
1000
- : 0;
1001
- const visibleSlide = [
1002
- ...new Set(Array(halfSideBlurLength * 2 + 1)
1003
- .fill('')
1004
- .map((i, idx) => {
1005
- const findFrom = lastLeftBlurIndex;
1006
- return findIndexFromLeftSide(findFrom + idx, slidesNodeLength);
1007
- })),
1008
- ];
1009
- slidesNode.map((item, index) => {
1010
- if (index === centerSlideIndex) {
1011
- item.classList.add('center-slide');
1012
- }
1013
- else {
1014
- item.classList.remove('center-slide');
1015
- }
1016
- if (visibleSlide.indexOf(index) !== -1) {
1017
- const opacityGap = maxBlurOpacity / blurLength;
1018
- for (let i = 0; i < blurLength; i++) {
1019
- if (index ===
1020
- findIndexFromLeftSide(lastLeftBlurIndex + i, slidesNodeLength) ||
1021
- index ===
1022
- findIndexFromRight(lastRightBlurIndex - i, slidesNodeLength)) {
1023
- item.style.opacity = String((i + 1) * opacityGap);
1024
- break;
1025
- }
1026
- item.style.opacity = '1';
1027
- }
1028
- }
1029
- else {
1030
- item.style.opacity = '0';
1031
- }
1032
- });
1033
- };
1034
- const sliderProps = {
1035
- getEmblaApi: (embla) => {
1036
- slider.current = embla;
1037
- },
1038
- onSlideChange: (index) => {
1039
- handleStyle();
1040
- onSlideChange === null || onSlideChange === void 0 ? void 0 : onSlideChange(index);
1041
- },
845
+ : {}))));
846
+ });
847
+ const _Select = forwardRef((_a, ref) => {
848
+ var { searchValue, onSearchChange } = _a, props = __rest(_a, ["searchValue", "onSearchChange"]);
849
+ const [_searchValue, handleSearchChange] = useUncontrolled({
850
+ defaultValue: '',
851
+ value: searchValue,
852
+ onChange: onSearchChange,
853
+ });
854
+ const onClear = () => {
855
+ handleSearchChange('');
1042
856
  };
857
+ return (React__default.createElement(Select$1, Object.assign({ ref: ref, rightSection: React__default.createElement(ArrowDown, { size: 18 }), rightSectionProps: { style: { pointerEvents: 'none' } }, size: "md", maxDropdownHeight: 300, onSearchChange: (e) => handleSearchChange(e), searchValue: _searchValue }, props, (props.clearable && (_searchValue === null || _searchValue === void 0 ? void 0 : _searchValue.length) > 0
858
+ ? {
859
+ rightSection: (React__default.createElement(ActionIcon, { onClick: onClear, sx: { cursor: 'pointer' } },
860
+ React__default.createElement(_IconSelect, null))),
861
+ }
862
+ : {}))));
863
+ });
864
+ const _IconSelect = () => (React__default.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" },
865
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.6665 9.99996C1.6665 5.39163 5.3915 1.66663 9.99984 1.66663C14.6082 1.66663 18.3332 5.39163 18.3332 9.99996C18.3332 14.6083 14.6082 18.3333 9.99984 18.3333C5.3915 18.3333 1.6665 14.6083 1.6665 9.99996ZM12.4083 13.5831C12.7333 13.9081 13.2583 13.9081 13.5833 13.5831C13.9 13.2581 13.9 12.7247 13.5833 12.4081L11.175 9.99973L13.5833 7.5914C13.9083 7.2664 13.9083 6.7414 13.5833 6.4164C13.2583 6.0914 12.7333 6.0914 12.4083 6.4164L10 8.82473L7.59167 6.4164C7.26667 6.0914 6.74167 6.0914 6.41667 6.4164C6.26063 6.57209 6.17293 6.78347 6.17293 7.0039C6.17293 7.22433 6.26063 7.43571 6.41667 7.5914L8.825 9.99973L6.41667 12.4081C6.26063 12.5638 6.17293 12.7751 6.17293 12.9956C6.17293 13.216 6.26063 13.4274 6.41667 13.5831C6.74167 13.9081 7.26667 13.9081 7.59167 13.5831L10 11.1747L12.4083 13.5831Z", fill: "#8C8C8C" })));
866
+
867
+ const getIsMobile = () => {
868
+ return (typeof window !== 'undefined' &&
869
+ window.innerWidth < Breakpoints.BREAK_POINT_MOBILE);
870
+ };
871
+ const getIsLargeMobile = () => {
872
+ return (typeof window !== 'undefined' &&
873
+ window.innerWidth >= Breakpoints.BREAK_POINT_MOBILE &&
874
+ window.innerWidth < Breakpoints.BREAK_POINT_PC);
875
+ };
876
+ const useScreenSize = () => {
877
+ const [isMobile, setIsMobile] = useState(getIsMobile());
878
+ const [isLargeMobile, setIsLargeMobile] = useState(getIsLargeMobile());
1043
879
  useEffect(() => {
1044
- (slider === null || slider === void 0 ? void 0 : slider.current) && handleStyle();
1045
- }, [width]);
1046
- const useStyles = createStyles(() => {
1047
- var _a, _b;
1048
- return ({
1049
- control: Object.assign({}, (((_a = slider === null || slider === void 0 ? void 0 : slider.current) === null || _a === void 0 ? void 0 : _a.slideNodes().length) <=
1050
- ((_b = slider === null || slider === void 0 ? void 0 : slider.current) === null || _b === void 0 ? void 0 : _b.slidesInView().length) && {
1051
- display: 'none',
1052
- })),
880
+ const handleResize = () => {
881
+ setIsMobile(getIsMobile());
882
+ setIsLargeMobile(getIsLargeMobile());
883
+ };
884
+ window.addEventListener('resize', handleResize, {
885
+ passive: true,
1053
886
  });
1054
- });
1055
- const { classes } = useStyles();
1056
- return (React__default.createElement(SlideContext.Provider, { value: { slider: slider === null || slider === void 0 ? void 0 : slider.current, centerSlide, selectSlideWhenClick } },
1057
- React__default.createElement(Carousel$1, Object.assign({ classNames: {
1058
- control: classes.control,
1059
- }, ref: ref, slideSize: 'auto', containScroll: "trimSnaps" }, sliderProps, props, { loop: true }), typeof children === 'function' ? children(centerSlide) : children)));
1060
- };
1061
- const CentralCarousel = CarouselWrapper;
1062
- CentralCarousel.Slide = CustomSlide;
887
+ return () => {
888
+ window.removeEventListener('resize', handleResize);
889
+ };
890
+ }, []);
891
+ return { isMobile, isLargeMobile };
892
+ };
1063
893
 
1064
- const CheckboxWrapper = (_a) => {
1065
- var { styles, color = 'blue' } = _a, props = __rest(_a, ["styles", "color"]);
1066
- const theme = useMantineTheme();
1067
- const hexColor = useMemo(() => {
1068
- var _a, _b;
1069
- return ((color === null || color === void 0 ? void 0 : color.includes('.'))
1070
- ? (_a = theme.colors[color.split('.')[0]]) === null || _a === void 0 ? void 0 : _a[color.split('.')[1]]
1071
- : (_b = theme.colors[color]) === null || _b === void 0 ? void 0 : _b[theme.primaryShade || 6]) ||
1072
- theme.colors.blue[6];
1073
- }, [color]);
1074
- return (React__default.createElement(Checkbox$1, Object.assign({ styles: Object.assign({ input: {
1075
- '&:hover': {
1076
- border: `1px solid ${hexColor}`,
1077
- },
1078
- } }, styles), color: color }, props)));
1079
- };
1080
- const Checkbox = CheckboxWrapper;
1081
- Checkbox.Group = Checkbox$1.Group;
894
+ class ErrorBoundary extends Component {
895
+ constructor() {
896
+ super(...arguments);
897
+ this.state = {
898
+ hasError: false,
899
+ };
900
+ }
901
+ static getDerivedStateFromError() {
902
+ // Update state so the next render will show the fallback UI.
903
+ return { hasError: true };
904
+ }
905
+ componentDidCatch(error, errorInfo) {
906
+ console.error('Uncaught error:', error, errorInfo);
907
+ }
908
+ render() {
909
+ if (this.state.hasError) {
910
+ return this.props.fallback || React__default.createElement(React__default.Fragment, null);
911
+ }
912
+ return this.props.children;
913
+ }
914
+ }
1082
915
 
1083
- const StyledSlider = styled(Slider) `
1084
- ${(props) => {
1085
- const color = props.color || theme.colors.primaryBase;
1086
- return `
1087
- .mantine-Slider-bar {
1088
- background-color: ${color};
1089
- }
1090
- .mantine-Slider-thumb {
1091
- border-color: ${color};
1092
- color: ${color};
1093
- }
1094
- `;
1095
- }}
1096
- [data-theme='marryBaby'] & {
1097
- ${(props) => {
1098
- const color = props.color || theme.mbColors.pink;
1099
- return `
1100
- .mantine-Slider-bar {
1101
- background-color: ${color};
1102
- }
1103
- .mantine-Slider-thumb {
1104
- border-color: ${color};
1105
- color: ${color};
1106
- }
1107
- `;
1108
- }}
1109
- }
916
+ const CarouselWrapper$1 = (_a) => {
917
+ var { slidesToShow = 1, children } = _a, props = __rest(_a, ["slidesToShow", "children"]);
918
+ const length = Array.isArray(children) ? children.length : 1;
919
+ if (!length)
920
+ return null;
921
+ return (React__default.createElement(ErrorBoundary, null,
922
+ React__default.createElement(Carousel$1
923
+ // get 2 precision number
924
+ , Object.assign({
925
+ // get 2 precision number
926
+ slideSize: String(Math.floor((1 / slidesToShow) * 10000) / 100) + '%', containScroll: "trimSnaps" }, props), children)));
927
+ };
928
+ const Carousel = CarouselWrapper$1;
929
+ Carousel.Slide = Carousel$1.Slide;
1110
930
 
1111
- .mantine-Slider-label {
1112
- background-color: transparent;
1113
- color: #000;
1114
- font-size: 14px;
1115
- font-weight: bold;
1116
- }
1117
- `;
1118
- const StyledSliderWrapper = styled.div `
1119
- display: flex;
1120
- align-items: center;
1121
- .hhg-mantine-slider {
1122
- flex-grow: 1;
1123
- }
1124
- button {
1125
- path:not([stroke]) {
1126
- stroke: ${theme.colors.primaryBase};
931
+ const StyledCarousel = styled(Carousel) `
932
+ cursor: grab;
933
+ width: 100%;
934
+ .mantine-Carousel-control {
935
+ background: rgb(255, 255, 255);
936
+ opacity: 1;
937
+ border: none;
938
+ border-radius: 0;
939
+ box-shadow: none;
940
+ &[data-inactive] {
941
+ opacity: 0;
942
+ cursor: default;
1127
943
  }
1128
- }
1129
- [data-theme='marryBaby'] & {
1130
- button {
1131
- path:not([stroke]) {
1132
- stroke: ${theme.mbColors.pink};
1133
- }
944
+ &:first-child {
945
+ padding-right: 24px;
946
+ background: linear-gradient(
947
+ 90deg,
948
+ rgba(255, 255, 255, 1) 0%,
949
+ rgba(255, 255, 255, 1) 50%,
950
+ rgba(255, 255, 255, 0) 100%
951
+ );
952
+ }
953
+ &:last-child {
954
+ padding-left: 24px;
955
+ background: linear-gradient(
956
+ 270deg,
957
+ rgba(255, 255, 255, 1) 0%,
958
+ rgba(255, 255, 255, 1) 50%,
959
+ rgba(255, 255, 255, 0) 100%
960
+ );
1134
961
  }
1135
962
  }
963
+
964
+ .mantine-Carousel-container {
965
+ align-items: center;
966
+ }
1136
967
  `;
1137
968
 
1138
- const RadioWrapper = (_a) => {
1139
- var { styles, color } = _a, props = __rest(_a, ["styles", "color"]);
1140
- const theme = useMantineTheme();
1141
- const hexColor = useMemo(() => {
1142
- var _a, _b;
1143
- return ((color === null || color === void 0 ? void 0 : color.includes('.'))
1144
- ? (_a = theme.colors[color.split('.')[0]]) === null || _a === void 0 ? void 0 : _a[color.split('.')[1]]
1145
- : (_b = theme.colors[color]) === null || _b === void 0 ? void 0 : _b[theme.primaryShade || 6]) ||
1146
- theme.fn.primaryColor();
1147
- }, [color]);
1148
- return (React__default.createElement(Radio$1, Object.assign({ styles: Object.assign({ radio: {
1149
- '&:hover, &:checked': {
1150
- border: `1px solid ${hexColor}`,
1151
- },
1152
- }, icon: {
1153
- color: `${hexColor}`,
1154
- } }, styles), color: color }, props)));
1155
- };
1156
- const Radio = RadioWrapper;
1157
- Radio.Group = Radio$1.Group;
969
+ var useStyles$3 = createStyles((_theme, _params) => {
970
+ return {
971
+ root: {
972
+ color: _params.color ||
973
+ (_theme.primaryColor === 'hb'
974
+ ? _theme.colors.hb[6]
975
+ : _theme.fn.primaryColor()),
976
+ },
977
+ };
978
+ });
1158
979
 
1159
- function transferValueToOtp(value, valueLength = 6) {
1160
- const otp = new Array(valueLength).fill('');
1161
- if (value) {
1162
- const arr = value.toString().split('');
1163
- otp.map((_, index) => {
1164
- if (arr[index]) {
1165
- otp[index] = arr[index] || '';
1166
- }
1167
- });
1168
- }
1169
- return otp;
1170
- }
1171
- function transferOtpToValue(otp) {
1172
- return otp.join('');
1173
- }
980
+ const Anchor = (_a) => {
981
+ var { color, styles, className } = _a, rest = __rest(_a, ["color", "styles", "className"]);
982
+ const { classes, cx } = useStyles$3({ color }, { name: 'Anchor', styles });
983
+ return React__default.createElement(Text, Object.assign({ as: "a", className: cx(classes.root, className) }, rest));
984
+ };
1174
985
 
1175
- var styles$2 = {"otpContainer":"_2iQs0sk","otpInput":"Ia6IojY","error":"yJs9MaD"};
986
+ const BreadcrumbItem = (_a) => {
987
+ var { children } = _a, rest = __rest(_a, ["children"]);
988
+ return (React__default.createElement(Anchor, Object.assign({ size: "p4", color: 'gray.8' }, rest), children));
989
+ };
1176
990
 
1177
- const BACKSPACE = 8;
1178
- const LEFT_ARROW = 37;
1179
- const RIGHT_ARROW = 39;
1180
- const DELETE = 46;
1181
- const SPACEBAR = 32;
1182
- const OTPInputFunction = (props, ref) => {
1183
- const { maxLength = 1, placeholder, className } = props, restProps = __rest(props, ["maxLength", "placeholder", "className"]);
1184
- return (React__default.createElement("input", Object.assign({ maxLength: maxLength, className: cn(styles$2.otpInput, 'otpInput', className), placeholder: placeholder, type: "number" }, restProps, { ref: ref })));
1185
- };
1186
- const OTPInput = forwardRef(OTPInputFunction);
1187
- const OTPFowardRef = (props, ref) => {
1188
- const { valueLength = 6, type = 'number', value: valueProps, defaultValue, placeholder, onChange, onBlur, } = props;
1189
- const inputRef = useRef(new Array(valueLength).fill(null));
1190
- const [value, setValue] = useState(defaultValue || valueProps);
1191
- const [activeOtp, setActiveOtp] = useState(-1);
1192
- const [otp, setOtp] = useState(() => transferValueToOtp(value, valueLength));
1193
- const changeCodeAtFocus = useCallback(() => {
1194
- if (activeOtp === -1) {
1195
- return;
1196
- }
1197
- const activeInput = inputRef.current[activeOtp];
1198
- if (activeInput) {
1199
- activeInput.value = '';
1200
- const newOtp = otp;
1201
- newOtp[activeOtp] = '';
1202
- setOtp(newOtp);
1203
- setValue(() => transferOtpToValue(newOtp));
1204
- onChange === null || onChange === void 0 ? void 0 : onChange(transferOtpToValue(newOtp));
1205
- }
1206
- }, [activeOtp, onChange, otp]);
1207
- const focusPrevInput = useCallback(() => {
1208
- if (activeOtp === 0) {
1209
- return;
1210
- }
1211
- const curInput = inputRef.current[activeOtp];
1212
- if (curInput) {
1213
- curInput.blur();
1214
- }
1215
- const prevInput = inputRef.current[activeOtp - 1];
1216
- if (prevInput) {
1217
- prevInput.focus();
1218
- }
1219
- }, [activeOtp]);
1220
- const focusNextInput = useCallback(() => {
1221
- if (activeOtp === valueLength - 1) {
1222
- return;
1223
- }
1224
- const curInput = inputRef.current[activeOtp];
1225
- if (curInput) {
1226
- curInput.blur();
1227
- }
1228
- const nextInput = inputRef.current[activeOtp + 1];
1229
- if (nextInput) {
1230
- nextInput.focus();
1231
- }
1232
- }, [activeOtp, valueLength]);
1233
- const inputOnChange = useCallback((e) => {
1234
- const target = e.target;
1235
- const targetValue = target.value;
1236
- const code = targetValue.toString().slice(0, 1);
1237
- const indexTarget = inputRef.current.findIndex((input) => input === target);
1238
- if (indexTarget !== -1) {
1239
- const newOtp = otp;
1240
- newOtp[indexTarget] = code;
1241
- setOtp(newOtp);
1242
- setValue(() => transferOtpToValue(newOtp));
1243
- onChange === null || onChange === void 0 ? void 0 : onChange(transferOtpToValue(newOtp));
1244
- }
1245
- focusNextInput();
1246
- }, [focusNextInput, onChange, otp]);
1247
- const inputOnFocus = useCallback((e) => {
1248
- const target = e.target;
1249
- const targetIndex = inputRef.current.findIndex((input) => input === target);
1250
- if (type === 'number') {
1251
- target.select();
1252
- }
1253
- else {
1254
- target.setSelectionRange(0, target.value.length, 'backward');
1255
- }
1256
- if (targetIndex !== -1) {
1257
- setActiveOtp(targetIndex);
1258
- }
991
+ const AspectRatio = (props) => {
992
+ return (React__default.createElement(AspectRatio$1, Object.assign({ sx: {
993
+ borderRadius: 4,
994
+ overflow: 'hidden',
995
+ '> img': {
996
+ objectFit: 'contain',
997
+ },
998
+ } }, props)));
999
+ };
1000
+
1001
+ const _Breadcrumbs = (_a) => {
1002
+ var _b;
1003
+ var { children, showHomeIcon = true, homeIconHref = '/' } = _a, rest = __rest(_a, ["children", "showHomeIcon", "homeIconHref"]);
1004
+ const theme = useMantineTheme();
1005
+ const isMarryBaby = ((_b = theme === null || theme === void 0 ? void 0 : theme.other) === null || _b === void 0 ? void 0 : _b.template) === 'mb';
1006
+ const [embla, setEmbla] = useState(null);
1007
+ const { isMobile } = useScreenSize();
1008
+ const [, setShouldAllowClick] = useState(true);
1009
+ const handleScroll = useCallback(() => {
1010
+ setShouldAllowClick(false);
1011
+ }, []);
1012
+ const handlePointerUp = useCallback(() => {
1013
+ setTimeout(() => {
1014
+ setShouldAllowClick(true);
1015
+ }, 1000);
1259
1016
  }, []);
1260
- const inputOnPaste = useCallback((e) => {
1261
- const clipboard = e.clipboardData.getData('text/plain');
1262
- const newOtp = transferValueToOtp(clipboard, valueLength);
1263
- const newValue = transferOtpToValue(newOtp);
1264
- setOtp(newOtp);
1265
- setValue(newValue);
1266
- onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
1267
- }, [onChange, type, valueLength]);
1268
- // Handle cases of backspace, delete, left arrow, right arrow, space
1269
- const inputOnKeyDown = useCallback((e) => {
1270
- if (e.keyCode === BACKSPACE || e.key === 'Backspace') {
1271
- e.preventDefault();
1272
- changeCodeAtFocus();
1273
- focusPrevInput();
1274
- }
1275
- else if (e.keyCode === DELETE || e.key === 'Delete') {
1276
- e.preventDefault();
1277
- changeCodeAtFocus();
1278
- }
1279
- else if (e.keyCode === LEFT_ARROW || e.key === 'ArrowLeft') {
1280
- e.preventDefault();
1281
- focusPrevInput();
1282
- }
1283
- else if (e.keyCode === RIGHT_ARROW || e.key === 'ArrowRight') {
1284
- e.preventDefault();
1285
- focusNextInput();
1286
- }
1287
- else if (e.keyCode === SPACEBAR ||
1288
- e.key === ' ' ||
1289
- e.key === 'Spacebar' ||
1290
- e.key === 'Space') {
1291
- e.preventDefault();
1292
- }
1293
- }, [changeCodeAtFocus, focusNextInput, focusPrevInput]);
1294
- useImperativeHandle(ref, () => inputRef.current[0], []);
1295
1017
  useEffect(() => {
1296
- setOtp(() => transferValueToOtp(valueProps, valueLength));
1297
- setValue(valueProps);
1298
- }, [valueLength, valueProps]);
1299
- return (React__default.createElement(Flex, { justify: "center", columnGap: 8, className: cn(styles$2.otpContainer, 'otpContainer') }, otp.map((val, index) => {
1300
- return (React__default.createElement(OTPInput, { ref: (iRef) => {
1301
- inputRef.current[index] = iRef;
1302
- }, key: '' + index, value: val, type: type, onChange: inputOnChange, onFocus: inputOnFocus, onKeyDown: inputOnKeyDown, onPaste: inputOnPaste, onBlur: onBlur, placeholder: placeholder }));
1303
- })));
1018
+ if (embla) {
1019
+ embla.on('scroll', handleScroll);
1020
+ embla.on('pointerUp', handlePointerUp);
1021
+ }
1022
+ return () => {
1023
+ if (embla) {
1024
+ embla.off('scroll', handleScroll);
1025
+ embla.on('pointerUp', handlePointerUp);
1026
+ }
1027
+ };
1028
+ }, [embla, handleScroll, handlePointerUp]);
1029
+ return (React__default.createElement(StyledCarousel, Object.assign({ align: "center", slideGap: "xs", dragFree: true, draggable: isMobile, slideSize: "0", getEmblaApi: setEmbla, controlsOffset: -52, previousControlIcon: React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
1030
+ React__default.createElement("path", { d: "M6.86589 3.56104C7.03647 3.56104 7.20724 3.62732 7.33724 3.75765L7.39453 3.81494C7.6552 4.07561 7.6552 4.49765 7.39453 4.75765L4.81901 7.33317L13.5326 7.33317C13.9006 7.33317 14.1992 7.63184 14.1992 7.99984C14.1992 8.36784 13.9006 8.6665 13.5326 8.6665L4.81901 8.66651L7.39453 11.242C7.6552 11.5027 7.6552 11.9247 7.39453 12.1847L7.33724 12.242C7.07657 12.5027 6.65453 12.5027 6.39453 12.242L2.6237 8.47119C2.36303 8.21053 2.36303 7.78849 2.6237 7.52849L6.39453 3.75765C6.52487 3.62732 6.6953 3.56104 6.86589 3.56104Z", fill: "#595959" })), nextControlIcon: React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
1031
+ React__default.createElement("path", { d: "M9.13411 12.439C8.96353 12.439 8.79276 12.3727 8.66276 12.2423L8.60547 12.1851C8.3448 11.9244 8.3448 11.5023 8.60547 11.2423L11.181 8.66683L2.46745 8.66683C2.09945 8.66683 1.80078 8.36816 1.80078 8.00016C1.80078 7.63216 2.09945 7.3335 2.46745 7.3335L11.181 7.3335L8.60547 4.75797C8.3448 4.49731 8.3448 4.07527 8.60547 3.81527L8.66276 3.75797C8.92343 3.49731 9.34547 3.49731 9.60547 3.75797L13.3763 7.52881C13.637 7.78947 13.637 8.21152 13.3763 8.47152L9.60547 12.2423C9.47513 12.3727 9.3047 12.439 9.13411 12.439Z", fill: "#595959" })) }, rest),
1032
+ showHomeIcon && (React__default.createElement(Carousel.Slide, { style: { borderRight: `1px solid ${themeColors.neutral[1]}` } },
1033
+ React__default.createElement(BreadcrumbItem, { href: homeIconHref, target: "_blank", className: "pointer-event-child-none" },
1034
+ React__default.createElement(Box, { sx: Object.assign({}, (!isMarryBaby && {
1035
+ borderRadius: '50%',
1036
+ display: 'flex',
1037
+ justifyContent: 'center',
1038
+ alignItems: 'center',
1039
+ })), bg: !isMarryBaby && themeColors.neutral[0], p: !isMarryBaby ? 6 : 0 },
1040
+ React__default.createElement(AspectRatio, { ratio: 1, w: 18 }, isMarryBaby ? (React__default.createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" },
1041
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1183 3.67722C12.8727 2.70772 11.1281 2.708 9.88187 3.67718L14.1183 3.67722ZM14.1183 3.67722L19.718 8.03283C20.5589 8.68632 21.05 9.69173 21.05 10.7562V17.6002C21.05 19.5057 19.5055 21.0502 17.6 21.0502H6.40016C4.49466 21.0502 2.9502 19.5057 2.9502 17.6002V10.7562C2.9502 9.69163 3.44113 8.68632 4.28216 8.03283L9.88187 3.67718M10.6799 4.70339L5.08006 9.05916C4.55657 9.46592 4.2502 10.0923 4.2502 10.7562V17.6002C4.2502 18.7878 5.21263 19.7502 6.40016 19.7502H17.6C18.7875 19.7502 19.75 18.7878 19.75 17.6002V10.7562C19.75 10.0923 19.4438 9.46612 18.9204 9.05936L13.3202 4.70335C12.5443 4.09941 11.4571 4.09905 10.6799 4.70339Z", fill: "#3E3F58" }),
1042
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.2373 13.1626C12.5546 12.4794 11.4466 12.4791 10.7629 13.1628C10.0793 13.8464 10.0793 14.9538 10.7629 15.6374C11.4465 16.321 12.5539 16.321 13.2375 15.6374C13.9211 14.9538 13.9211 13.8464 13.2375 13.1628L13.2373 13.1626ZM14.1567 12.2436C12.9661 11.0521 11.0348 11.0525 9.84366 12.2436C8.65237 13.4348 8.65237 15.3653 9.84366 16.5566C11.0349 17.7479 12.9654 17.7479 14.1567 16.5566C15.348 15.3653 15.348 13.4348 14.1567 12.2436Z", fill: "#3E3F58" }))) : (React__default.createElement("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none" },
1043
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.58691 5.59863L8.58691 1.62305C8.83594 1.45898 9.16406 1.45898 9.41309 1.62305L15.4131 5.59863C15.624 5.73926 15.75 5.97363 15.75 6.22559V14.25C15.75 15.0791 15.0791 15.75 14.25 15.75H3.75C2.9209 15.75 2.25 15.0791 2.25 14.25V6.22559C2.25 5.97363 2.37598 5.73926 2.58691 5.59863ZM5.5017 11.7602C5.1717 11.5108 5.17316 11.0321 5.46521 10.7391C5.75775 10.4456 6.24936 10.4292 6.5986 10.6522C7.17818 11.0223 8.12516 11.4889 9.21628 11.4889C10.3074 11.4889 11.2543 11.0223 11.8339 10.6522C12.1832 10.4292 12.6748 10.4456 12.9673 10.7391C13.2594 11.0321 13.2608 11.5108 12.9308 11.7602C11.8743 12.5589 10.535 12.9889 9.21628 12.9889C7.89758 12.9889 6.55824 12.5589 5.5017 11.7602Z", fill: "#595959" })))))))),
1044
+ React__default.createElement(Carousel.Slide, null),
1045
+ React__default.createElement(Carousel.Slide, null,
1046
+ React__default.createElement(Breadcrumbs$1, { styles: {
1047
+ separator: {
1048
+ marginInline: 4,
1049
+ },
1050
+ }, separator: React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
1051
+ React__default.createElement("path", { d: "M8.71527 7.99969L6.16794 5.45236C5.89194 5.17636 5.89194 4.72836 6.16794 4.45236C6.44394 4.17636 6.89194 4.17636 7.16794 4.45236L10.2439 7.52836C10.5046 7.78903 10.5046 8.21103 10.2439 8.47103L7.16794 11.547C6.89194 11.823 6.44394 11.823 6.16794 11.547C5.89194 11.271 5.89194 10.823 6.16794 10.547L8.71527 7.99969Z", fill: "#8C8C8C" })) }, children))));
1304
1052
  };
1305
- const OTP = forwardRef(OTPFowardRef);
1053
+ const Breadcrumbs = _Breadcrumbs;
1054
+ Breadcrumbs.Item = BreadcrumbItem;
1306
1055
 
1307
- const CambodiaRoundIcon = (props) => (React__default.createElement(ImageWrap, Object.assign({ alt: "round cambodia flag", src: CommonGAssets.getAssetPath('flags/cambodiaRound.png'), style: Object.assign({ borderRadius: '50%' }, props.style) }, props)));
1308
- const CambodiaSquareIcon = (props) => (React__default.createElement(ImageWrap, Object.assign({ alt: "square cambodia flag", src: CommonGAssets.getAssetPath('flags/cambodiaSquare.png') }, props)));
1056
+ const StyledTextArea = styled(Textarea) `
1057
+ .mantine-Textarea-input {
1058
+ padding: 12px 16px;
1059
+ background: #ffffff;
1060
+ border: 1px solid ${theme.colors.gray200};
1061
+ border-radius: 4px;
1062
+ }
1063
+ `;
1309
1064
 
1310
- const EnglishRoundIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
1311
- React__default.createElement("g", null,
1312
- React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1313
- React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1314
- React__default.createElement("path", { d: "M7.49953 0.327881C5.47199 0.850891 3.69346 1.98591 2.37793 3.53444L7.49953 6.6655V0.327881Z", fill: "#3F51B5" }),
1315
- React__default.createElement("path", { d: "M2.30273 16.3824C3.62476 17.9749 5.4353 19.1399 7.50034 19.6729V13.2053L2.30273 16.3824Z", fill: "#3F51B5" }),
1316
- React__default.createElement("path", { d: "M0.328125 12.5C0.334625 12.526 0.341125 12.5515 0.348125 12.5775L0.474128 12.5H0.328125Z", fill: "white" }),
1317
- React__default.createElement("path", { d: "M17.7871 3.73445C16.4571 2.08391 14.6131 0.872891 12.499 0.327881V6.96651L17.7871 3.73445Z", fill: "#3F51B5" }),
1318
- React__default.createElement("path", { d: "M12.499 19.6722C14.6506 19.1172 16.5196 17.8707 17.8546 16.1752L12.499 12.9021V19.6722Z", fill: "#3F51B5" }),
1319
- React__default.createElement("path", { d: "M0.376626 7.31055C0.359125 7.37305 0.344125 7.43705 0.328125 7.50005H0.686632L0.376626 7.31055Z", fill: "white" }),
1320
- React__default.createElement("path", { d: "M19.8745 8.50006C19.827 8.18506 19.7655 7.87555 19.6895 7.57104L18.1699 8.50006H19.8745Z", fill: "white" }),
1321
- React__default.createElement("path", { d: "M0.686034 7.50024H0.327527C0.243026 7.82775 0.175524 8.16076 0.124023 8.50026H2.32207L0.686034 7.50024Z", fill: "white" }),
1322
- React__default.createElement("path", { d: "M19.7197 12.3148C19.7832 12.0473 19.8337 11.7752 19.8752 11.5002H18.3867L19.7197 12.3148Z", fill: "white" }),
1323
- React__default.createElement("path", { d: "M2.10956 11.5002H0.124023C0.175024 11.8398 0.243026 12.1728 0.327527 12.5003H0.47403L2.10956 11.5002Z", fill: "white" }),
1324
- React__default.createElement("path", { d: "M8.50002 7.27665V0.124512C8.16051 0.175513 7.82751 0.243514 7.5 0.328016V6.66564L8.50002 7.27665Z", fill: "white" }),
1325
- React__default.createElement("path", { d: "M11.5 12.2913V19.8759C11.8395 19.8249 12.1725 19.7569 12.5 19.6724V12.9023L11.5 12.2913Z", fill: "white" }),
1326
- React__default.createElement("path", { d: "M7.5 13.205V19.6721C7.82751 19.7566 8.16051 19.8241 8.50002 19.8756V12.594L7.5 13.205Z", fill: "white" }),
1327
- React__default.createElement("path", { d: "M11.5925 7.34715L11.7345 7.43415L12.5 6.96614V0.328016C12.1725 0.243514 11.8395 0.176013 11.5 0.124512V7.49865L11.5925 7.34715Z", fill: "white" }),
1328
- React__default.createElement("path", { d: "M2.32251 8.50002H7.01761L8.50014 7.594V7.277L7.50011 6.66548L2.37852 3.53442C1.95151 4.03743 1.572 4.58144 1.24949 5.16296L5.02507 7.5H2.29701L0.650482 6.47648C0.54748 6.74949 0.455478 7.02699 0.375977 7.3105L0.686483 7.5L2.32251 8.50002Z", fill: "white" }),
1329
- React__default.createElement("path", { d: "M11.7344 7.43419L13.4784 8.50021H18.171L19.6905 7.57119C19.528 6.92118 19.303 6.29767 19.02 5.70516L16.139 7.50019H13.4109L18.317 4.45013C18.1515 4.20313 17.9735 3.96562 17.7875 3.73462L12.4999 6.96618L11.7344 7.43419Z", fill: "white" }),
1330
- React__default.createElement("path", { d: "M5.02448 7.50013L1.2494 5.16309C1.0169 5.58259 0.821394 6.0231 0.650391 6.47661L2.29642 7.50013H5.02448Z", fill: "#E53935" }),
1331
- React__default.createElement("path", { d: "M16.1392 7.50024L19.0207 5.70521C18.8132 5.2702 18.5837 4.84819 18.3177 4.45068L13.4111 7.50024H16.1392Z", fill: "#E53935" }),
1332
- React__default.createElement("path", { d: "M11.5 11.5002V12.2913L12.5 12.9023L17.8556 16.1758C18.2416 15.6853 18.5836 15.1593 18.8736 14.6008L15.4856 12.5003H18.2136L19.4432 13.2673C19.5507 12.9563 19.6432 12.6393 19.7197 12.3153L18.3871 11.5002H11.5Z", fill: "white" }),
1333
- React__default.createElement("path", { d: "M13.4785 8.50019L11.7345 7.43417L11.5925 7.34717L11.5 7.49867V8.50019H13.4785Z", fill: "white" }),
1334
- React__default.createElement("path", { d: "M8.49934 12.5943V11.5002H2.10921L0.473182 12.5003L0.34668 12.5778C0.522683 13.2383 0.762688 13.8713 1.06319 14.4708L4.16375 12.5003H6.89181L1.80071 15.7168C1.95971 15.9448 2.12471 16.1688 2.30172 16.3823L7.49932 13.2053L8.49934 12.5943Z", fill: "white" }),
1335
- React__default.createElement("path", { d: "M7.01758 8.50026H8.50011V7.59424L7.01758 8.50026Z", fill: "white" }),
1336
- React__default.createElement("path", { d: "M15.4854 12.5L18.8729 14.6C19.0949 14.173 19.2834 13.727 19.4429 13.2665L18.2134 12.5H15.4854Z", fill: "#E53935" }),
1337
- React__default.createElement("path", { d: "M4.16501 12.5L1.06445 14.4705C1.28196 14.9045 1.52596 15.3216 1.80197 15.7166L6.89307 12.5H4.16501Z", fill: "#E53935" }),
1338
- React__default.createElement("path", { d: "M13.4785 8.5H11.5V11.5001H18.3871H19.8757C19.9497 11.0095 20.0002 10.511 20.0002 10C20.0002 9.48902 19.9497 8.99051 19.8757 8.5H18.1711H13.4785Z", fill: "#E53935" }),
1339
- React__default.createElement("path", { d: "M8.50017 11.5001V8.5H7.01764H2.32255H0.124502C0.050501 8.99051 0 9.48902 0 10C0 10.511 0.050501 11.0095 0.124502 11.5001H2.11004H8.50017Z", fill: "#E53935" }),
1340
- React__default.createElement("path", { d: "M11.5001 19.8759V12.2912V11.5002V8.50016V7.49865V0.124502C11.0095 0.050501 10.511 0 10 0C9.48902 0 8.99051 0.050501 8.5 0.124502V7.27664V7.59365V8.50016V11.5002V12.5942V19.8759C8.99051 19.9499 9.48902 20.0004 10 20.0004C10.511 20.0004 11.0095 19.9499 11.5001 19.8759Z", fill: "#E53935" }))));
1341
- const EnglishSquareIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 26 26", fill: "none" }, props),
1342
- React__default.createElement("g", null,
1343
- React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "1", y: "5", width: "24", height: "16" },
1344
- React__default.createElement("path", { d: "M1.08301 7.41675C1.08301 6.31218 1.97844 5.41675 3.08301 5.41675H22.9163C24.0209 5.41675 24.9163 6.31218 24.9163 7.41675V18.5834C24.9163 19.688 24.0209 20.5834 22.9163 20.5834H3.08301C1.97844 20.5834 1.08301 19.688 1.08301 18.5834V7.41675Z", fill: "#3F51B5" })),
1345
- React__default.createElement("path", { d: "M1.08301 5.41675H24.9163V20.5834H1.08301V5.41675Z", fill: "#3F51B5" }),
1346
- React__default.createElement("path", { d: "M1.08301 7.70041L12.3551 14.5899L14.05 11.8165L3.57901 5.41675H1.08301V7.70041Z", fill: "white" }),
1347
- React__default.createElement("path", { d: "M24.9165 5.41675H22.9616L12.4912 11.816L14.1855 14.5899L24.9165 8.03083V5.41675Z", fill: "white" }),
1348
- React__default.createElement("path", { d: "M14.1855 10.9802L12.4912 13.7536L23.6658 20.5834H24.9165V17.5387L14.1855 10.9802Z", fill: "white" }),
1349
- React__default.createElement("path", { d: "M1.08301 17.8702V20.5834H2.87592L14.05 13.7541L12.3556 10.9802L1.08301 17.8702Z", fill: "white" }),
1350
- React__default.createElement("path", { d: "M1.08301 10.8333H24.9163V15.1666H1.08301V10.8333Z", fill: "white" }),
1351
- React__default.createElement("path", { d: "M10.833 5.41675H15.1663V20.5834H10.833V5.41675Z", fill: "white" }),
1352
- React__default.createElement("path", { d: "M9.32609 10.8334L1.08301 5.79537V7.06504L7.24826 10.8334H9.32609ZM24.0004 5.41675L15.1376 10.8334H17.2149L24.9163 6.12687V5.41675H24.0004ZM17.9191 15.1667L24.9163 19.4432V18.1735L19.9964 15.1667H17.9191ZM8.62192 15.1667L1.08301 19.7742V20.5834H1.83701L10.6992 15.1667H8.62192ZM1.08301 11.9167H24.9163V14.0834H1.08301V11.9167Z", fill: "#E53935" }),
1353
- React__default.createElement("path", { d: "M11.917 5.41675H14.0837V20.5834H11.917V5.41675Z", fill: "#E53935" }))));
1065
+ var useStyles$2 = createStyles((theme) => {
1066
+ return {
1067
+ root: {},
1068
+ inner: {},
1069
+ content: {},
1070
+ header: {
1071
+ borderBottom: `1px solid ${theme.colors.neutral[1]}`,
1072
+ marginRight: 0,
1073
+ marginBottom: 0,
1074
+ padding: '12px',
1075
+ },
1076
+ overlay: {},
1077
+ title: {
1078
+ fontSize: 16,
1079
+ fontWeight: 700,
1080
+ lineHeight: 1.5,
1081
+ },
1082
+ body: {},
1083
+ close: {
1084
+ cursor: 'pointer',
1085
+ width: 'unset',
1086
+ height: 'unset',
1087
+ svg: {
1088
+ width: '24px !important',
1089
+ height: '24px !important',
1090
+ },
1091
+ },
1092
+ };
1093
+ });
1354
1094
 
1355
- const IndiaRoundIcon = (props) => (React__default.createElement(ImageWrap, Object.assign({ alt: "round india flag", src: CommonGAssets.getAssetPath('flags/indiaRound.png'), style: Object.assign({ borderRadius: '50%' }, props.style) }, props)));
1356
- const IndiaSquareIcon = (props) => (React__default.createElement(ImageWrap, Object.assign({ alt: "square indian flag", src: CommonGAssets.getAssetPath('flags/indiaSquare.png') }, props)));
1095
+ const StyledAccordion = styled(Accordion$1) `
1096
+ .mantine-Accordion-label {
1097
+ padding: 0;
1098
+ }
1099
+ .mantine-Accordion-control {
1100
+ &:hover {
1101
+ background-color: transparent;
1102
+ }
1103
+ }
1104
+ .mantine-Accordion-item {
1105
+ .mantine-Accordion-chevron {
1106
+ > div {
1107
+ background-repeat: no-repeat;
1108
+ width: 16px;
1109
+ height: 16px;
1110
+ background-position: center;
1111
+ background-image: url(${(props) => props.closeChevron || CommonGAssets.getAssetPath('plus-icon.svg')});
1112
+ }
1113
+ }
1114
+ &[data-active='true'] {
1115
+ .mantine-Accordion-chevron {
1116
+ > div {
1117
+ background-image: url(${(props) => props.openChevron || CommonGAssets.getAssetPath('minus-icon.svg')});
1118
+ }
1119
+ }
1120
+ }
1121
+ }
1122
+ .mantine-Accordion-panel {
1123
+ border-radius: ${theme.borderRadius};
1124
+ }
1125
+ .mantine-Accordion-content {
1126
+ white-space: pre-wrap;
1127
+ }
1128
+ `;
1357
1129
 
1358
- const IndonesiaRoundIcon = (_a) => {
1359
- var rest = __rest(_a, []);
1360
- const maskId = useUniqueId();
1361
- return (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none" }, rest),
1362
- React__default.createElement("mask", { id: maskId, style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1363
- React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1364
- React__default.createElement("g", { mask: `url(#${maskId})` },
1365
- React__default.createElement("rect", { width: "20", height: "10", fill: "#CE1126" }),
1366
- React__default.createElement("rect", { y: "10", width: "20", height: "10", fill: "white" }))));
1130
+ const _Accordion = (_a) => {
1131
+ var { children } = _a, rest = __rest(_a, ["children"]);
1132
+ return (React__default.createElement(StyledAccordion, Object.assign({ chevron: React__default.createElement("div", null), disableChevronRotation: true, transitionDuration: 300 }, rest), children));
1367
1133
  };
1368
- const IndonesiaSquareIcon = (_a) => {
1369
- var rest = __rest(_a, []);
1370
- const clipPathId = useUniqueId();
1371
- return (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, rest),
1372
- React__default.createElement("g", { clipPath: `url(#${clipPathId})` },
1373
- React__default.createElement("rect", { y: "0.0166016", width: "24", height: "8", fill: "#CE1126" }),
1374
- React__default.createElement("rect", { y: "8.0166", width: "24", height: "8", fill: "white" })),
1375
- React__default.createElement("defs", null,
1376
- React__default.createElement("clipPath", { id: clipPathId },
1377
- React__default.createElement("rect", { width: "24", height: "16", rx: "2", fill: "white" })))));
1134
+ const Accordion = _Accordion;
1135
+ Accordion.Control = Accordion$1.Control;
1136
+ Accordion.Item = Accordion$1.Item;
1137
+ Accordion.Panel = Accordion$1.Panel;
1138
+
1139
+ const DEFAULT_AVATAR = CommonGAssets.getAssetPath('avatar.jpg');
1140
+ const Avatar = (_a) => {
1141
+ var { withIndicator = false, indicatorConfig = null, size = 56, children, styles, placeholderText } = _a, // usually first letter of name
1142
+ avatarProps = __rest(_a, ["withIndicator", "indicatorConfig", "size", "children", "styles", "placeholderText"]);
1143
+ const generateAvatar = () => {
1144
+ return (React__default.createElement(Avatar$1, Object.assign({ size: size, radius: "xl" }, avatarProps, { imageProps: Object.assign({ loading: 'lazy' }, avatarProps.imageProps), styles: {
1145
+ placeholder: {
1146
+ backgroundColor: avatarProps.color,
1147
+ color: 'white',
1148
+ },
1149
+ } }), children ? (children) : placeholderText ? (placeholderText) : (React__default.createElement(ImageWrap, { src: DEFAULT_AVATAR, width: size, alt: avatarProps.alt || 'avatar' }))));
1150
+ };
1151
+ if (withIndicator)
1152
+ return (React__default.createElement(Indicator, Object.assign({ inline: true, position: "bottom-end", offset: 9 }, indicatorConfig, { styles: Object.assign({ indicator: {
1153
+ backgroundColor: React__default.isValidElement(indicatorConfig.label) && 'transparent',
1154
+ zIndex: 1,
1155
+ } }, styles) }), generateAvatar()));
1156
+ return generateAvatar();
1378
1157
  };
1379
1158
 
1380
- const MalaysiaRoundIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
1381
- React__default.createElement("g", null,
1382
- React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1383
- React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1384
- React__default.createElement("rect", { y: "1", width: "20", height: "20", fill: "#CC0001" }),
1385
- React__default.createElement("rect", { y: "16.106", width: "20", height: "1.02041", fill: "white" }),
1386
- React__default.createElement("rect", { y: "16", width: "20", height: "1.02041", fill: "white" }),
1387
- React__default.createElement("rect", { y: "18", width: "20", height: "1.02041", fill: "white" }),
1388
- React__default.createElement("rect", { y: "14.0652", width: "20", height: "1.02041", fill: "white" }),
1389
- React__default.createElement("rect", { y: "12.0242", width: "20", height: "1.02041", fill: "white" }),
1390
- React__default.createElement("rect", { y: "9.9834", width: "20", height: "1.02041", fill: "white" }),
1391
- React__default.createElement("rect", { y: "7.94263", width: "20", height: "1.02041", fill: "white" }),
1392
- React__default.createElement("rect", { y: "5.90186", width: "20", height: "1.02041", fill: "white" }),
1393
- React__default.createElement("rect", { y: "3.86084", width: "20", height: "1.02041", fill: "white" }),
1394
- React__default.createElement("rect", { y: "2", width: "20", height: "1.02041", fill: "white" }),
1395
- React__default.createElement("rect", { width: "20", height: "1.02041", fill: "white" }),
1396
- React__default.createElement("rect", { y: "-1", width: "10", height: "12", fill: "#010066" }),
1397
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.11387 3.86084C2.92711 3.86084 1.96387 5.23232 1.96387 6.92206C1.96387 8.6118 2.92711 9.98329 4.11387 9.98329C4.54263 9.98329 4.94211 9.80406 5.27763 9.4957C5.08225 9.59203 4.87256 9.64471 4.65427 9.64471C3.60193 9.64471 2.74786 8.42866 2.74786 6.93032C2.74786 5.43198 3.60193 4.21594 4.65427 4.21594C4.88682 4.21594 5.10959 4.27527 5.31571 4.38397C4.97256 4.0538 4.5589 3.86084 4.11387 3.86084Z", fill: "#FFCC00" }),
1398
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.67935 8.51573L6.7737 7.8407L7.04147 9.22221L6.43573 8.06657L6.24676 9.47313L6.0609 8.06576L5.4526 9.2188L5.72343 7.83844L4.81629 8.50957L5.49017 7.42963L4.46387 7.48593L5.40732 6.9203L4.46512 6.35062L5.4913 6.41133L4.81981 5.3285L5.72546 6.00353L5.45769 4.62202L6.06343 5.77766L6.25241 4.37109L6.43827 5.77847L7.04656 4.62543L6.77574 6.00579L7.68287 5.33466L7.00899 6.4146L8.0353 6.3583L7.09184 6.92392L8.03404 7.49361L7.00786 7.43289L7.67935 8.51573Z", fill: "#FFCC00" }))));
1399
- const MalaysiaSquareIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
1400
- React__default.createElement("rect", { width: "24", height: "16", rx: "2", fill: "#CC0001" }),
1401
- React__default.createElement("rect", { y: "12.2712", width: "24", height: "0.777454", fill: "white" }),
1402
- React__default.createElement("rect", { y: "12.1904", width: "24", height: "0.777454", fill: "white" }),
1403
- React__default.createElement("rect", { y: "13.7144", width: "24", height: "0.777454", fill: "white" }),
1404
- React__default.createElement("rect", { y: "10.7161", width: "24", height: "0.777454", fill: "white" }),
1405
- React__default.createElement("rect", { y: "9.16138", width: "24", height: "0.777454", fill: "white" }),
1406
- React__default.createElement("rect", { y: "7.60645", width: "24", height: "0.777454", fill: "white" }),
1407
- React__default.createElement("rect", { y: "6.05127", width: "24", height: "0.777454", fill: "white" }),
1408
- React__default.createElement("rect", { y: "4.49658", width: "24", height: "0.777454", fill: "white" }),
1409
- React__default.createElement("rect", { y: "2.94141", width: "24", height: "0.777454", fill: "white" }),
1410
- React__default.createElement("rect", { y: "1.52393", width: "24", height: "0.777454", fill: "white" }),
1411
- React__default.createElement("rect", { width: "24", height: "0.777454", fill: "white" }),
1412
- React__default.createElement("path", { d: "M0 2C0 0.895431 0.895431 0 2 0H12V8.38095H0V2Z", fill: "#010066" }),
1413
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.93644 1.52393C3.51233 1.52393 2.35645 2.56887 2.35645 3.85629C2.35645 5.14371 3.51233 6.18865 4.93644 6.18865C5.45096 6.18865 5.93034 6.05209 6.33296 5.81716C6.09851 5.89054 5.84688 5.93068 5.58492 5.93068C4.32212 5.93068 3.29724 5.00417 3.29724 3.86258C3.29724 2.72099 4.32212 1.79448 5.58492 1.79448C5.86399 1.79448 6.13132 1.83968 6.37865 1.9225C5.96688 1.67094 5.47049 1.52393 4.93644 1.52393Z", fill: "#FFCC00" }),
1414
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.216 5.07041L8.12923 4.55611L8.45055 5.60869L7.72366 4.72819L7.49689 5.79987L7.27386 4.72758L6.5439 5.60609L6.86889 4.55439L5.78033 5.06572L6.58899 4.24291L5.35742 4.28581L6.48957 3.85485L5.35893 3.42081L6.59034 3.46707L5.78456 2.64205L6.87133 3.15636L6.55001 2.10378L7.2769 2.98427L7.50367 1.9126L7.7267 2.98488L8.45666 2.10638L8.13166 3.15808L9.22022 2.64674L8.41157 3.46955L9.64314 3.42666L8.51099 3.85761L9.64163 4.29165L8.41022 4.2454L9.216 5.07041Z", fill: "#FFCC00" })));
1159
+ const FileInput = (props) => {
1160
+ return React__default.createElement(FileInput$1, Object.assign({ size: "md" }, props));
1161
+ };
1415
1162
 
1416
- const MyanmarRoundIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
1417
- React__default.createElement("g", null,
1418
- React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1419
- React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1420
- React__default.createElement("rect", { x: "-4", y: "-1", width: "28", height: "11", fill: "#FECB00" }),
1421
- React__default.createElement("rect", { x: "-4", y: "10", width: "28", height: "10", fill: "#EA2839" }),
1422
- React__default.createElement("rect", { x: "-4", y: "6.7041", width: "28", height: "6.47773", fill: "#34B233" }),
1423
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.56543 10.3272L10.1796 5.15527L11.7938 10.3272H8.56543Z", fill: "white" }),
1424
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.5292 11.2775L7.18336 14.5129L8.91745 9.37991L11.5292 11.2775Z", fill: "white" }),
1425
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.75181 11.8648L5.33182 8.73143L10.7494 8.79447L9.75181 11.8648Z", fill: "white" }),
1426
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.6105 8.78962L15.0281 8.72658L10.6081 11.86L9.6105 8.78962Z", fill: "white" }),
1427
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.4424 9.37686L13.1765 14.5098L8.83064 11.2744L11.4424 9.37686Z", fill: "white" }))));
1428
- const MyanmarSquareIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
1429
- React__default.createElement("rect", { width: "24", height: "16", rx: "2", fill: "#FECB00" }),
1430
- React__default.createElement("rect", { y: "8.3811", width: "24", height: "7.61905", rx: "2", fill: "#EA2839" }),
1431
- React__default.createElement("rect", { y: "5.86987", width: "24", height: "4.93542", fill: "#34B233" }),
1432
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.7705 8.63046L12.1541 4.68994L13.5377 8.63046H10.7705Z", fill: "white" }),
1433
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.3108 9.35502L9.58574 11.8201L11.0721 7.90925L13.3108 9.35502Z", fill: "white" }),
1434
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.7874 9.80216L7.99884 7.41482L12.6425 7.46285L11.7874 9.80216Z", fill: "white" }),
1435
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.6667 7.4589L16.3104 7.41087L12.5218 9.79821L11.6667 7.4589Z", fill: "white" }),
1436
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.2361 7.90629L14.7225 11.8171L10.9974 9.35207L13.2361 7.90629Z", fill: "white" })));
1163
+ const DEBOUNCED_TIME = 300;
1164
+ const emotionCache = createEmotionCache({
1165
+ key: 'mantine',
1166
+ prepend: false,
1167
+ });
1437
1168
 
1438
- const PhilippinesRoundIcon = (props) => (React__default.createElement(ImageWrap, Object.assign({ alt: "round philippines flag", src: CommonGAssets.getAssetPath('flags/philippineRound.png'), style: Object.assign({ borderRadius: '50%' }, props.style) }, props)));
1439
- const PhilippinesSquareIcon = (props) => (React__default.createElement(ImageWrap, Object.assign({ alt: "square philippines flag", src: CommonGAssets.getAssetPath('flags/philippineSquare.png') }, props)));
1169
+ const NumberInput = (_a) => {
1170
+ var { value: _value, onChange: _onChange } = _a, props = __rest(_a, ["value", "onChange"]);
1171
+ const [value, setValue] = useState(_value);
1172
+ const [debounced] = useDebouncedValue(value, DEBOUNCED_TIME);
1173
+ useEffect(() => {
1174
+ _onChange === null || _onChange === void 0 ? void 0 : _onChange(debounced);
1175
+ }, [debounced]);
1176
+ useEffect(() => {
1177
+ setValue(_value);
1178
+ }, [_value]);
1179
+ return (React__default.createElement(NumberInput$1, Object.assign({ size: "md", stepHoldDelay: 500, stepHoldInterval: (t) => Math.max(1000 / Math.pow(t, 2), 25), onChange: setValue, hideControls: true, min: 0, formatter: (value) => {
1180
+ if (Number(value) === 0)
1181
+ return value;
1182
+ return value || '';
1183
+ }, removeTrailingZeros: true, value: value }, props)));
1184
+ };
1440
1185
 
1441
- const TaiwanRoundIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
1442
- React__default.createElement("g", null,
1443
- React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1444
- React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1445
- React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#D8D8D8" }),
1446
- React__default.createElement("g", null,
1447
- React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1448
- React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "white" })),
1449
- React__default.createElement("rect", { width: "30", height: "20", fill: "#ED1E24" }),
1450
- React__default.createElement("rect", { width: "15", height: "10", fill: "#2B2F84" }),
1451
- React__default.createElement("circle", { cx: "7.49791", cy: "4.99913", r: "1.869", fill: "white" }),
1452
- React__default.createElement("path", { d: "M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z", fill: "white" }),
1453
- React__default.createElement("path", { d: "M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z", fill: "white" }),
1454
- React__default.createElement("path", { d: "M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z", fill: "white" }),
1455
- React__default.createElement("path", { d: "M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z", fill: "white" }),
1456
- React__default.createElement("path", { d: "M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z", fill: "white" }),
1457
- React__default.createElement("path", { d: "M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z", fill: "white" }),
1458
- React__default.createElement("path", { d: "M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z", fill: "white" }),
1459
- React__default.createElement("path", { d: "M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z", fill: "white" }),
1460
- React__default.createElement("path", { d: "M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z", fill: "white" }),
1461
- React__default.createElement("path", { d: "M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z", fill: "white" }),
1462
- React__default.createElement("path", { d: "M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z", fill: "white" }),
1463
- React__default.createElement("path", { d: "M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z", fill: "white" })))));
1464
- const TaiwanSquareIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
1465
- React__default.createElement("rect", { width: "24", height: "16", rx: "2", fill: "#ED1E24" }),
1466
- React__default.createElement("path", { d: "M0 2C0 0.89543 0.895431 0 2 0H15V10H0V2Z", fill: "#2B2F84" }),
1467
- React__default.createElement("circle", { cx: "7.49791", cy: "4.99913", r: "1.869", fill: "white" }),
1468
- React__default.createElement("path", { d: "M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z", fill: "white" }),
1469
- React__default.createElement("path", { d: "M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z", fill: "white" }),
1470
- React__default.createElement("path", { d: "M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z", fill: "white" }),
1471
- React__default.createElement("path", { d: "M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z", fill: "white" }),
1472
- React__default.createElement("path", { d: "M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z", fill: "white" }),
1473
- React__default.createElement("path", { d: "M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z", fill: "white" }),
1474
- React__default.createElement("path", { d: "M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z", fill: "white" }),
1475
- React__default.createElement("path", { d: "M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z", fill: "white" }),
1476
- React__default.createElement("path", { d: "M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z", fill: "white" }),
1477
- React__default.createElement("path", { d: "M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z", fill: "white" }),
1478
- React__default.createElement("path", { d: "M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z", fill: "white" }),
1479
- React__default.createElement("path", { d: "M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z", fill: "white" })));
1186
+ const EyeVisible = CommonGAssets.getAssetPath('EyeVisible.svg');
1187
+ const EyeHidden = CommonGAssets.getAssetPath('EyeHidden.svg');
1188
+ const PasswordInput = forwardRef((props, ref) => {
1189
+ const { size = 'md', visibilityToggleIcon: visibilityToggleIconProps } = props, restProps = __rest(props, ["size", "visibilityToggleIcon"]);
1190
+ const visibilityToggleIcon = visibilityToggleIconProps ||
1191
+ (({ reveal, size }) => reveal ? (React__default.createElement("img", { src: EyeVisible, width: size, loading: "lazy" })) : (React__default.createElement("img", { src: EyeHidden, width: size, loading: "lazy" })));
1192
+ return (React__default.createElement(PasswordInput$1, Object.assign({ ref: ref, size: size, visibilityToggleIcon: visibilityToggleIcon }, restProps, { className: `input-control ${(restProps === null || restProps === void 0 ? void 0 : restProps.className) || ''}` })));
1193
+ });
1480
1194
 
1481
- const ThailandRoundIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
1482
- React__default.createElement("g", null,
1483
- React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1484
- React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1485
- React__default.createElement("rect", { x: "-4", y: "-0.0166016", width: "28", height: "20", fill: "#ED1C24" }),
1486
- React__default.createElement("rect", { x: "-4", y: "3.31665", width: "28", height: "13.3333", fill: "white" }),
1487
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M-4 6.65015H24V13.3168H-4V6.65015Z", fill: "#241D4F" }))));
1488
- const ThailandSquareIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 17", fill: "none" }, props),
1489
- React__default.createElement("rect", { y: "0.983398", width: "24", height: "16", rx: "2", fill: "#ED1C24" }),
1490
- React__default.createElement("rect", { y: "3.65039", width: "24", height: "10.6667", fill: "white" }),
1491
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 6.31689H24V11.6502H0V6.31689Z", fill: "#241D4F" })));
1195
+ const InputWrapper = forwardRef((_a, ref) => {
1196
+ var { value: _value, onChange: _onChange, onChangeRaw, maxLength } = _a, props = __rest(_a, ["value", "onChange", "onChangeRaw", "maxLength"]);
1197
+ const [value, setValue] = useState(_value || '');
1198
+ const [debounced] = useDebouncedValue(value, DEBOUNCED_TIME);
1199
+ useEffect(() => {
1200
+ _onChange === null || _onChange === void 0 ? void 0 : _onChange(debounced);
1201
+ }, [debounced]);
1202
+ useEffect(() => {
1203
+ setValue(_value);
1204
+ }, [_value]);
1205
+ return (React__default.createElement(TextInput, Object.assign({ ref: ref, size: "md", onChange: (event) => {
1206
+ if (typeof maxLength === 'number' &&
1207
+ event.currentTarget.value.length > maxLength) {
1208
+ return;
1209
+ }
1210
+ onChangeRaw === null || onChangeRaw === void 0 ? void 0 : onChangeRaw(event);
1211
+ setValue(event.currentTarget.value);
1212
+ }, value: value }, props, { maxLength: maxLength, className: `input-control ${(props === null || props === void 0 ? void 0 : props.className) || ''}` })));
1213
+ });
1214
+ const Input = InputWrapper;
1215
+ Input.File = FileInput;
1216
+ Input.Password = PasswordInput;
1217
+ Input.Number = NumberInput;
1218
+ Input.Wrapper = Input$1.Wrapper;
1492
1219
 
1493
- const VietnamRoundIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
1494
- React__default.createElement("g", null,
1495
- React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1496
- React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1497
- React__default.createElement("rect", { x: "-4", y: "-0.0166016", width: "28", height: "20", fill: "#DA251D" }),
1498
- React__default.createElement("path", { d: "M11.7228 10.8677L14.2819 9.00839L11.1187 9.00839L10.1409 6L9.16316 9.00839L6 9.00839L8.5591 10.8677L7.58184 13.8766L10.1409 12.0168L12.7 13.8766L11.7228 10.8677Z", fill: "#FFEB3B" }))));
1499
- const VietnamSquareIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
1500
- React__default.createElement("g", null,
1501
- React__default.createElement("clipPath", null,
1502
- React__default.createElement("rect", { width: "24", height: "16", fill: "white" })),
1503
- React__default.createElement("path", { d: "M2.01386e-10 2C0 0.895431 0.895431 -7.50368e-10 2 -1.67599e-09L22 -1.84359e-08C23.1046 -1.93615e-08 24 0.895431 24 2L24 14C24 15.1046 23.1046 16 22 16L2 16C0.89543 16 1.52092e-09 15.1046 1.4097e-09 14L2.01386e-10 2Z", fill: "#DA251D" }),
1504
- React__default.createElement("path", { d: "M13.7823 8.92854L16.6663 6.8332L13.1016 6.8332L11.9997 3.44287L10.8978 6.8332L7.33301 6.8332L10.217 8.92854L9.11567 12.3195L11.9997 10.2235L14.8837 12.3195L13.7823 8.92854Z", fill: "#FFEB3B" }))));
1220
+ const StyledSlide = Carousel$1.Slide;
1221
+
1222
+ const SlideContext = createContext({});
1223
+ const CustomSlide = (_a) => {
1224
+ var { children, onClick, innerSlideProps } = _a, rest = __rest(_a, ["children", "onClick", "innerSlideProps"]);
1225
+ const { slider, selectSlideWhenClick } = useContext(SlideContext);
1226
+ const ref = useRef();
1227
+ const key = useRef('');
1228
+ const [index, setIndex] = useState(0);
1229
+ useEffect(() => {
1230
+ key.current = String(Math.round(Math.random() * 10000));
1231
+ }, []);
1232
+ useEffect(() => {
1233
+ const slidesNode = (slider === null || slider === void 0 ? void 0 : slider.slideNodes()) || [];
1234
+ setIndex(slidesNode.findIndex((obj) => obj.dataset.key === key.current));
1235
+ }, [slider]);
1236
+ const sliderProps = {
1237
+ ref,
1238
+ 'data-key': key.current,
1239
+ 'data-index': index,
1240
+ };
1241
+ return (React__default.createElement(StyledSlide, Object.assign({}, sliderProps, rest),
1242
+ React__default.createElement("div", Object.assign({ style: {
1243
+ height: '100%',
1244
+ }, onClick: () => {
1245
+ selectSlideWhenClick && (slider === null || slider === void 0 ? void 0 : slider.scrollTo(index));
1246
+ onClick === null || onClick === void 0 ? void 0 : onClick(index);
1247
+ } }, innerSlideProps), children)));
1248
+ };
1249
+ const findIndexFromLeftSide = (position, slideLength) => {
1250
+ return position >= slideLength ? position - slideLength : position;
1251
+ };
1252
+ const findIndexFromRight = (position, slideLength) => {
1253
+ return position < 0 ? slideLength + position : position;
1254
+ };
1255
+ const CarouselWrapper = (_a) => {
1256
+ var { children, blurFromCenter, blurFromIndex, blurLength = 3, maxBlurOpacity = 0.5, onSlideChange, selectSlideWhenClick } = _a, props = __rest(_a, ["children", "blurFromCenter", "blurFromIndex", "blurLength", "maxBlurOpacity", "onSlideChange", "selectSlideWhenClick"]);
1257
+ const { width } = useViewportSize();
1258
+ const [ref] = useResizeObserver();
1259
+ const slider = useRef(null);
1260
+ const [centerSlide, setCenterSlide] = useState(0);
1261
+ const handleStyle = () => {
1262
+ var _a, _b, _c, _d, _e;
1263
+ const slidesNode = ((_a = slider === null || slider === void 0 ? void 0 : slider.current) === null || _a === void 0 ? void 0 : _a.slideNodes()) || [];
1264
+ if (((_b = slider === null || slider === void 0 ? void 0 : slider.current) === null || _b === void 0 ? void 0 : _b.slideNodes().length) <=
1265
+ ((_c = slider === null || slider === void 0 ? void 0 : slider.current) === null || _c === void 0 ? void 0 : _c.slidesInView().length)) {
1266
+ slidesNode.map((item) => {
1267
+ item.classList.remove('center-slide');
1268
+ item.style.opacity = '1';
1269
+ });
1270
+ return false;
1271
+ }
1272
+ const centerSlideIndex = (_d = slider === null || slider === void 0 ? void 0 : slider.current) === null || _d === void 0 ? void 0 : _d.selectedScrollSnap();
1273
+ setCenterSlide(centerSlideIndex);
1274
+ const slidesNodeLength = slidesNode.length;
1275
+ const slidesInView = (_e = slider === null || slider === void 0 ? void 0 : slider.current) === null || _e === void 0 ? void 0 : _e.slidesInView();
1276
+ const slidesInViewLength = slidesInView.length;
1277
+ const halfSideLength = Math.floor(slidesInViewLength / 2);
1278
+ const halfSideBlurLength = blurFromCenter
1279
+ ? blurFromIndex + blurLength - 1
1280
+ : halfSideLength;
1281
+ const lastRightBlurIndexTmp = centerSlideIndex + halfSideBlurLength;
1282
+ const lastRightBlurIndex = lastRightBlurIndexTmp === slidesNodeLength
1283
+ ? 0
1284
+ : lastRightBlurIndexTmp > slidesNodeLength
1285
+ ? lastRightBlurIndexTmp - slidesNodeLength
1286
+ : lastRightBlurIndexTmp;
1287
+ const lastLeftBlurIndexTmp = centerSlideIndex - halfSideBlurLength;
1288
+ const lastLeftBlurIndex = lastLeftBlurIndexTmp < 0
1289
+ ? slidesNodeLength + lastLeftBlurIndexTmp
1290
+ : lastLeftBlurIndexTmp > 0
1291
+ ? centerSlideIndex - halfSideBlurLength
1292
+ : 0;
1293
+ const visibleSlide = [
1294
+ ...new Set(Array(halfSideBlurLength * 2 + 1)
1295
+ .fill('')
1296
+ .map((i, idx) => {
1297
+ const findFrom = lastLeftBlurIndex;
1298
+ return findIndexFromLeftSide(findFrom + idx, slidesNodeLength);
1299
+ })),
1300
+ ];
1301
+ slidesNode.map((item, index) => {
1302
+ if (index === centerSlideIndex) {
1303
+ item.classList.add('center-slide');
1304
+ }
1305
+ else {
1306
+ item.classList.remove('center-slide');
1307
+ }
1308
+ if (visibleSlide.indexOf(index) !== -1) {
1309
+ const opacityGap = maxBlurOpacity / blurLength;
1310
+ for (let i = 0; i < blurLength; i++) {
1311
+ if (index ===
1312
+ findIndexFromLeftSide(lastLeftBlurIndex + i, slidesNodeLength) ||
1313
+ index ===
1314
+ findIndexFromRight(lastRightBlurIndex - i, slidesNodeLength)) {
1315
+ item.style.opacity = String((i + 1) * opacityGap);
1316
+ break;
1317
+ }
1318
+ item.style.opacity = '1';
1319
+ }
1320
+ }
1321
+ else {
1322
+ item.style.opacity = '0';
1323
+ }
1324
+ });
1325
+ };
1326
+ const sliderProps = {
1327
+ getEmblaApi: (embla) => {
1328
+ slider.current = embla;
1329
+ },
1330
+ onSlideChange: (index) => {
1331
+ handleStyle();
1332
+ onSlideChange === null || onSlideChange === void 0 ? void 0 : onSlideChange(index);
1333
+ },
1334
+ };
1335
+ useEffect(() => {
1336
+ (slider === null || slider === void 0 ? void 0 : slider.current) && handleStyle();
1337
+ }, [width]);
1338
+ const useStyles = createStyles(() => {
1339
+ var _a, _b;
1340
+ return ({
1341
+ control: Object.assign({}, (((_a = slider === null || slider === void 0 ? void 0 : slider.current) === null || _a === void 0 ? void 0 : _a.slideNodes().length) <=
1342
+ ((_b = slider === null || slider === void 0 ? void 0 : slider.current) === null || _b === void 0 ? void 0 : _b.slidesInView().length) && {
1343
+ display: 'none',
1344
+ })),
1345
+ });
1346
+ });
1347
+ const { classes } = useStyles();
1348
+ return (React__default.createElement(SlideContext.Provider, { value: { slider: slider === null || slider === void 0 ? void 0 : slider.current, centerSlide, selectSlideWhenClick } },
1349
+ React__default.createElement(Carousel$1, Object.assign({ classNames: {
1350
+ control: classes.control,
1351
+ }, ref: ref, slideSize: 'auto', containScroll: "trimSnaps" }, sliderProps, props, { loop: true }), typeof children === 'function' ? children(centerSlide) : children)));
1352
+ };
1353
+ const CentralCarousel = CarouselWrapper;
1354
+ CentralCarousel.Slide = CustomSlide;
1355
+
1356
+ const CheckboxWrapper = (_a) => {
1357
+ var { styles, color = 'blue' } = _a, props = __rest(_a, ["styles", "color"]);
1358
+ const theme = useMantineTheme();
1359
+ const hexColor = useMemo(() => {
1360
+ var _a, _b;
1361
+ return ((color === null || color === void 0 ? void 0 : color.includes('.'))
1362
+ ? (_a = theme.colors[color.split('.')[0]]) === null || _a === void 0 ? void 0 : _a[color.split('.')[1]]
1363
+ : (_b = theme.colors[color]) === null || _b === void 0 ? void 0 : _b[theme.primaryShade || 6]) ||
1364
+ theme.colors.blue[6];
1365
+ }, [color]);
1366
+ return (React__default.createElement(Checkbox$1, Object.assign({ styles: Object.assign({ input: {
1367
+ '&:hover': {
1368
+ border: `1px solid ${hexColor}`,
1369
+ },
1370
+ } }, styles), color: color }, props)));
1371
+ };
1372
+ const Checkbox = CheckboxWrapper;
1373
+ Checkbox.Group = Checkbox$1.Group;
1374
+
1375
+ const StyledSlider = styled(Slider) `
1376
+ ${(props) => {
1377
+ const color = props.color || theme.colors.primaryBase;
1378
+ return `
1379
+ .mantine-Slider-bar {
1380
+ background-color: ${color};
1381
+ }
1382
+ .mantine-Slider-thumb {
1383
+ border-color: ${color};
1384
+ color: ${color};
1385
+ }
1386
+ `;
1387
+ }}
1388
+ [data-theme='marryBaby'] & {
1389
+ ${(props) => {
1390
+ const color = props.color || theme.mbColors.pink;
1391
+ return `
1392
+ .mantine-Slider-bar {
1393
+ background-color: ${color};
1394
+ }
1395
+ .mantine-Slider-thumb {
1396
+ border-color: ${color};
1397
+ color: ${color};
1398
+ }
1399
+ `;
1400
+ }}
1401
+ }
1402
+
1403
+ .mantine-Slider-label {
1404
+ background-color: transparent;
1405
+ color: #000;
1406
+ font-size: 14px;
1407
+ font-weight: bold;
1408
+ }
1409
+ `;
1410
+ const StyledSliderWrapper = styled.div `
1411
+ display: flex;
1412
+ align-items: center;
1413
+ .hhg-mantine-slider {
1414
+ flex-grow: 1;
1415
+ }
1416
+ button {
1417
+ path:not([stroke]) {
1418
+ stroke: ${theme.colors.primaryBase};
1419
+ }
1420
+ }
1421
+ [data-theme='marryBaby'] & {
1422
+ button {
1423
+ path:not([stroke]) {
1424
+ stroke: ${theme.mbColors.pink};
1425
+ }
1426
+ }
1427
+ }
1428
+ `;
1505
1429
 
1506
- var styles$1 = {"flag":"pfaLGRK"};
1430
+ const RadioWrapper = (_a) => {
1431
+ var { styles, color } = _a, props = __rest(_a, ["styles", "color"]);
1432
+ const theme = useMantineTheme();
1433
+ const hexColor = useMemo(() => {
1434
+ var _a, _b;
1435
+ return ((color === null || color === void 0 ? void 0 : color.includes('.'))
1436
+ ? (_a = theme.colors[color.split('.')[0]]) === null || _a === void 0 ? void 0 : _a[color.split('.')[1]]
1437
+ : (_b = theme.colors[color]) === null || _b === void 0 ? void 0 : _b[theme.primaryShade || 6]) ||
1438
+ theme.fn.primaryColor();
1439
+ }, [color]);
1440
+ return (React__default.createElement(Radio$1, Object.assign({ styles: Object.assign({ radio: {
1441
+ '&:hover, &:checked': {
1442
+ border: `1px solid ${hexColor}`,
1443
+ },
1444
+ }, icon: {
1445
+ color: `${hexColor}`,
1446
+ } }, styles), color: color }, props)));
1447
+ };
1448
+ const Radio = RadioWrapper;
1449
+ Radio.Group = Radio$1.Group;
1507
1450
 
1508
- const Flag = ({ country, language, rounded, height, width, isTesting, className, }) => {
1509
- let flag;
1510
- let flagRounded;
1511
- switch (language) {
1512
- case 'en':
1513
- flag = React__default.createElement(EnglishSquareIcon, null);
1514
- flagRounded = React__default.createElement(EnglishRoundIcon, null);
1515
- break;
1516
- case 'vi':
1517
- flag = React__default.createElement(VietnamSquareIcon, null);
1518
- flagRounded = React__default.createElement(VietnamRoundIcon, null);
1519
- break;
1520
- case 'id':
1521
- flag = React__default.createElement(IndonesiaSquareIcon, { isTesting: isTesting });
1522
- flagRounded = React__default.createElement(IndonesiaRoundIcon, { isTesting: isTesting });
1523
- break;
1524
- case 'th':
1525
- flag = React__default.createElement(ThailandSquareIcon, null);
1526
- flagRounded = React__default.createElement(ThailandRoundIcon, null);
1527
- break;
1528
- case 'km':
1529
- flag = React__default.createElement(CambodiaSquareIcon, null);
1530
- flagRounded = React__default.createElement(CambodiaRoundIcon, null);
1531
- break;
1532
- case 'ms':
1533
- flag = React__default.createElement(MalaysiaSquareIcon, null);
1534
- flagRounded = React__default.createElement(MalaysiaRoundIcon, null);
1535
- break;
1536
- case 'my':
1537
- flag = React__default.createElement(MyanmarSquareIcon, null);
1538
- flagRounded = React__default.createElement(MyanmarRoundIcon, null);
1539
- break;
1540
- case 'tl':
1541
- flag = React__default.createElement(PhilippinesSquareIcon, null);
1542
- flagRounded = React__default.createElement(PhilippinesRoundIcon, null);
1543
- break;
1544
- case 'hi':
1545
- flag = React__default.createElement(IndiaSquareIcon, null);
1546
- flagRounded = React__default.createElement(IndiaRoundIcon, null);
1547
- break;
1548
- case 'zh':
1549
- flag = React__default.createElement(TaiwanSquareIcon, null);
1550
- flagRounded = React__default.createElement(TaiwanRoundIcon, null);
1551
- break;
1451
+ function transferValueToOtp(value, valueLength = 6) {
1452
+ const otp = new Array(valueLength).fill('');
1453
+ if (value) {
1454
+ const arr = value.toString().split('');
1455
+ otp.map((_, index) => {
1456
+ if (arr[index]) {
1457
+ otp[index] = arr[index] || '';
1458
+ }
1459
+ });
1552
1460
  }
1553
- if (!flag && !flagRounded) {
1554
- switch (country) {
1555
- case 'VN':
1556
- flag = React__default.createElement(VietnamSquareIcon, null);
1557
- flagRounded = React__default.createElement(VietnamRoundIcon, null);
1558
- break;
1559
- case 'ID':
1560
- flag = React__default.createElement(IndonesiaSquareIcon, { isTesting: isTesting });
1561
- flagRounded = React__default.createElement(IndonesiaRoundIcon, { isTesting: isTesting });
1562
- break;
1563
- case 'TH':
1564
- flag = React__default.createElement(ThailandSquareIcon, null);
1565
- flagRounded = React__default.createElement(ThailandRoundIcon, null);
1566
- break;
1567
- case 'KH':
1568
- flag = React__default.createElement(CambodiaSquareIcon, null);
1569
- flagRounded = React__default.createElement(CambodiaRoundIcon, null);
1570
- break;
1571
- case 'MY':
1572
- flag = React__default.createElement(MalaysiaSquareIcon, null);
1573
- flagRounded = React__default.createElement(MalaysiaRoundIcon, null);
1574
- break;
1575
- case 'MM':
1576
- flag = React__default.createElement(MyanmarSquareIcon, null);
1577
- flagRounded = React__default.createElement(MyanmarRoundIcon, null);
1578
- break;
1579
- case 'PH':
1580
- flag = React__default.createElement(PhilippinesSquareIcon, null);
1581
- flagRounded = React__default.createElement(PhilippinesRoundIcon, null);
1582
- break;
1583
- case 'IN':
1584
- flag = React__default.createElement(IndiaSquareIcon, null);
1585
- flagRounded = React__default.createElement(IndiaRoundIcon, null);
1586
- break;
1587
- case 'TW':
1588
- flag = React__default.createElement(TaiwanSquareIcon, null);
1589
- flagRounded = React__default.createElement(TaiwanRoundIcon, null);
1590
- break;
1461
+ return otp;
1462
+ }
1463
+ function transferOtpToValue(otp) {
1464
+ return otp.join('');
1465
+ }
1466
+
1467
+ var styles$1 = {"otpContainer":"_2iQs0sk","otpInput":"Ia6IojY","error":"yJs9MaD"};
1468
+
1469
+ const BACKSPACE = 8;
1470
+ const LEFT_ARROW = 37;
1471
+ const RIGHT_ARROW = 39;
1472
+ const DELETE = 46;
1473
+ const SPACEBAR = 32;
1474
+ const OTPInputFunction = (props, ref) => {
1475
+ const { maxLength = 1, placeholder, className } = props, restProps = __rest(props, ["maxLength", "placeholder", "className"]);
1476
+ return (React__default.createElement("input", Object.assign({ maxLength: maxLength, className: cn(styles$1.otpInput, 'otpInput', className), placeholder: placeholder, type: "number" }, restProps, { ref: ref })));
1477
+ };
1478
+ const OTPInput = forwardRef(OTPInputFunction);
1479
+ const OTPFowardRef = (props, ref) => {
1480
+ const { valueLength = 6, type = 'number', value: valueProps, defaultValue, placeholder, onChange, onBlur, } = props;
1481
+ const inputRef = useRef(new Array(valueLength).fill(null));
1482
+ const [value, setValue] = useState(defaultValue || valueProps);
1483
+ const [activeOtp, setActiveOtp] = useState(-1);
1484
+ const [otp, setOtp] = useState(() => transferValueToOtp(value, valueLength));
1485
+ const changeCodeAtFocus = useCallback(() => {
1486
+ if (activeOtp === -1) {
1487
+ return;
1591
1488
  }
1592
- }
1593
- return (React__default.createElement("div", { className: `${styles$1.flag} ${className || ''}`, style: {
1594
- '--width': width || 20,
1595
- '--height': height || 20,
1596
- } }, rounded ? flagRounded : flag));
1597
- };
1489
+ const activeInput = inputRef.current[activeOtp];
1490
+ if (activeInput) {
1491
+ activeInput.value = '';
1492
+ const newOtp = otp;
1493
+ newOtp[activeOtp] = '';
1494
+ setOtp(newOtp);
1495
+ setValue(() => transferOtpToValue(newOtp));
1496
+ onChange === null || onChange === void 0 ? void 0 : onChange(transferOtpToValue(newOtp));
1497
+ }
1498
+ }, [activeOtp, onChange, otp]);
1499
+ const focusPrevInput = useCallback(() => {
1500
+ if (activeOtp === 0) {
1501
+ return;
1502
+ }
1503
+ const curInput = inputRef.current[activeOtp];
1504
+ if (curInput) {
1505
+ curInput.blur();
1506
+ }
1507
+ const prevInput = inputRef.current[activeOtp - 1];
1508
+ if (prevInput) {
1509
+ prevInput.focus();
1510
+ }
1511
+ }, [activeOtp]);
1512
+ const focusNextInput = useCallback(() => {
1513
+ if (activeOtp === valueLength - 1) {
1514
+ return;
1515
+ }
1516
+ const curInput = inputRef.current[activeOtp];
1517
+ if (curInput) {
1518
+ curInput.blur();
1519
+ }
1520
+ const nextInput = inputRef.current[activeOtp + 1];
1521
+ if (nextInput) {
1522
+ nextInput.focus();
1523
+ }
1524
+ }, [activeOtp, valueLength]);
1525
+ const inputOnChange = useCallback((e) => {
1526
+ const target = e.target;
1527
+ const targetValue = target.value;
1528
+ const code = targetValue.toString().slice(0, 1);
1529
+ const indexTarget = inputRef.current.findIndex((input) => input === target);
1530
+ if (indexTarget !== -1) {
1531
+ const newOtp = otp;
1532
+ newOtp[indexTarget] = code;
1533
+ setOtp(newOtp);
1534
+ setValue(() => transferOtpToValue(newOtp));
1535
+ onChange === null || onChange === void 0 ? void 0 : onChange(transferOtpToValue(newOtp));
1536
+ }
1537
+ focusNextInput();
1538
+ }, [focusNextInput, onChange, otp]);
1539
+ const inputOnFocus = useCallback((e) => {
1540
+ const target = e.target;
1541
+ const targetIndex = inputRef.current.findIndex((input) => input === target);
1542
+ if (type === 'number') {
1543
+ target.select();
1544
+ }
1545
+ else {
1546
+ target.setSelectionRange(0, target.value.length, 'backward');
1547
+ }
1548
+ if (targetIndex !== -1) {
1549
+ setActiveOtp(targetIndex);
1550
+ }
1551
+ }, []);
1552
+ const inputOnPaste = useCallback((e) => {
1553
+ const clipboard = e.clipboardData.getData('text/plain');
1554
+ const newOtp = transferValueToOtp(clipboard, valueLength);
1555
+ const newValue = transferOtpToValue(newOtp);
1556
+ setOtp(newOtp);
1557
+ setValue(newValue);
1558
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
1559
+ }, [onChange, type, valueLength]);
1560
+ // Handle cases of backspace, delete, left arrow, right arrow, space
1561
+ const inputOnKeyDown = useCallback((e) => {
1562
+ if (e.keyCode === BACKSPACE || e.key === 'Backspace') {
1563
+ e.preventDefault();
1564
+ changeCodeAtFocus();
1565
+ focusPrevInput();
1566
+ }
1567
+ else if (e.keyCode === DELETE || e.key === 'Delete') {
1568
+ e.preventDefault();
1569
+ changeCodeAtFocus();
1570
+ }
1571
+ else if (e.keyCode === LEFT_ARROW || e.key === 'ArrowLeft') {
1572
+ e.preventDefault();
1573
+ focusPrevInput();
1574
+ }
1575
+ else if (e.keyCode === RIGHT_ARROW || e.key === 'ArrowRight') {
1576
+ e.preventDefault();
1577
+ focusNextInput();
1578
+ }
1579
+ else if (e.keyCode === SPACEBAR ||
1580
+ e.key === ' ' ||
1581
+ e.key === 'Spacebar' ||
1582
+ e.key === 'Space') {
1583
+ e.preventDefault();
1584
+ }
1585
+ }, [changeCodeAtFocus, focusNextInput, focusPrevInput]);
1586
+ useImperativeHandle(ref, () => inputRef.current[0], []);
1587
+ useEffect(() => {
1588
+ setOtp(() => transferValueToOtp(valueProps, valueLength));
1589
+ setValue(valueProps);
1590
+ }, [valueLength, valueProps]);
1591
+ return (React__default.createElement(Flex, { justify: "center", columnGap: 8, className: cn(styles$1.otpContainer, 'otpContainer') }, otp.map((val, index) => {
1592
+ return (React__default.createElement(OTPInput, { ref: (iRef) => {
1593
+ inputRef.current[index] = iRef;
1594
+ }, key: '' + index, value: val, type: type, onChange: inputOnChange, onFocus: inputOnFocus, onKeyDown: inputOnKeyDown, onPaste: inputOnPaste, onBlur: onBlur, placeholder: placeholder }));
1595
+ })));
1596
+ };
1597
+ const OTP = forwardRef(OTPFowardRef);
1598
1598
 
1599
1599
  const countriesDefault = Object.values(siteOptions).reduce((countries, { phoneCountry: phone }) => {
1600
1600
  if (!countries.includes(phone)) {