@hhgtech/hhg-components 1.29.76 → 1.29.78

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 (292) hide show
  1. package/build/{Instagram-86b7bc15.js → Instagram-f68f1dae.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/navigationV2/components/molecules/navigationBar/index.d.ts +2 -1
  7. package/build/components/navigationV2/index.d.ts +1 -0
  8. package/build/components.js +83 -82
  9. package/build/{constants-719fbb90.js → constants-385d01e7.js} +2 -2
  10. package/build/constants.js +3 -3
  11. package/build/{core-f571f62a.js → core-e0799ceb.js} +2 -2
  12. package/build/{dataTransform-aac3f8cd.js → dataTransform-c8c14a28.js} +1 -1
  13. package/build/{utils-83337870.js → defaultClassWrapper-8ac3b7f0.js} +118 -392
  14. package/build/ecom.js +5 -5
  15. package/build/esm/{Instagram-de0e8d98.js → Instagram-8dd26ac6.js} +1 -1
  16. package/build/esm/adapters.js +15 -15
  17. package/build/esm/babyGrowth.js +81 -81
  18. package/build/esm/cache.js +3 -3
  19. package/build/esm/care.js +17 -17
  20. package/build/esm/components/navigationV2/components/molecules/navigationBar/index.d.ts +2 -1
  21. package/build/esm/components/navigationV2/index.d.ts +1 -0
  22. package/build/esm/components.js +59 -58
  23. package/build/esm/{constants-49a4dcdf.js → constants-5d6ab948.js} +2 -2
  24. package/build/esm/constants.js +3 -3
  25. package/build/esm/{core-f79180f8.js → core-296015da.js} +2 -2
  26. package/build/esm/{dataTransform-3807c9d2.js → dataTransform-0066c53b.js} +1 -1
  27. package/build/esm/{utils-296f6ce0.js → defaultClassWrapper-8112e475.js} +108 -381
  28. package/build/esm/ecom.js +5 -5
  29. package/build/esm/footer.js +18 -18
  30. package/build/esm/gAssets.js +4 -4
  31. package/build/esm/{getDynamicHealthTool-10e36e9d.js → getDynamicHealthTool-7cf3f00e.js} +4 -4
  32. package/build/esm/{getSocialList-a6c786db.js → getSocialList-f797bbe2.js} +31 -12
  33. package/build/esm/hooks.js +17 -17
  34. package/build/esm/i18n-values/ms-MY.js +1 -1
  35. package/build/esm/i18n.js +2 -2
  36. package/build/esm/i18nV2.js +2 -2
  37. package/build/esm/index-043dfbc3.js +216 -0
  38. package/build/esm/{index-aee34a48.js → index-09ecd45f.js} +37 -36
  39. package/build/esm/{index-a570b2ed.js → index-13975e28.js} +4 -4
  40. package/build/esm/{index-2f4855a8.js → index-25209a23.js} +37 -37
  41. package/build/esm/{index-53d2876e.js → index-2da84fe8.js} +1 -1
  42. package/build/esm/{index-cd069a89.js → index-2e13488d.js} +2 -2
  43. package/build/esm/{index-75509fc3.js → index-30eb73b8.js} +3 -3
  44. package/build/esm/{index-22423f24.js → index-4e6d8f1c.js} +11 -11
  45. package/build/esm/{index-efc77575.js → index-5b69b19c.js} +2 -2
  46. package/build/esm/{index-d0a2f6ec.js → index-5c2abf3a.js} +1052 -1052
  47. package/build/esm/{index-88b710e3.js → index-62059a85.js} +2 -2
  48. package/build/esm/{index-450a7d58.js → index-6896ecdf.js} +2 -2
  49. package/build/esm/{index-707072a0.js → index-6c7832ac.js} +21 -21
  50. package/build/esm/{index-d5092c27.js → index-70bb6ed3.js} +120 -120
  51. package/build/esm/{index-9c23f470.js → index-869411be.js} +10 -10
  52. package/build/esm/{index-413867da.js → index-94f2f772.js} +3 -3
  53. package/build/esm/{constants-14a25a1f.js → index-9dd8721c.js} +113 -113
  54. package/build/esm/{index-7d30d2d2.js → index-a2404202.js} +2 -2
  55. package/build/esm/{index-bc29a2b6.js → index-ad1d81e3.js} +2 -2
  56. package/build/esm/{index-5d51ace9.js → index-b45321ac.js} +6 -6
  57. package/build/esm/{index-352d0aa5.js → index-b851beaf.js} +1 -1
  58. package/build/esm/index-b9666693.js +298 -0
  59. package/build/esm/{index-caf6722b.js → index-c8e5b7ad.js} +5 -5
  60. package/build/esm/{index-c79781fb.js → index-dd00700b.js} +2 -2
  61. package/build/esm/{index-42b1983c.js → index-e80cb404.js} +12 -12
  62. package/build/esm/{index-f3e72b4d.js → index-ed317f58.js} +62 -62
  63. package/build/esm/{index-5f3f2d6f.js → index-f160e379.js} +2 -2
  64. package/build/esm/{index-a3ca59d6.js → index-fc868dc0.js} +5 -5
  65. package/build/esm/index.css +1 -1
  66. package/build/esm/index.js +66 -65
  67. package/build/esm/{index.styled-ce027616.js → index.styled-19fa0003.js} +2 -2
  68. package/build/esm/{index.styles-82c0faa1.js → index.styles-0693a12e.js} +78 -78
  69. package/build/esm/lead.js +28 -28
  70. package/build/esm/mantine.js +20 -20
  71. package/build/esm/misc.js +23 -20
  72. package/build/esm/navigation.js +35 -35
  73. package/build/esm/onboardingV2.js +32 -32
  74. package/build/esm/pwg.js +19 -19
  75. package/build/esm/{routing-322eaa4c.js → routing-ddff6eb9.js} +2 -2
  76. package/build/esm/subot.js +27 -233
  77. package/build/esm/together.js +35 -35
  78. package/build/esm/{types-a3ed86c8.js → types-1ab8164a.js} +13 -13
  79. package/build/esm/{types-44a9ece1.js → types-29a56da4.js} +30 -30
  80. package/build/esm/types.js +1 -1
  81. package/build/esm/{useCategory-948fb6a8.js → useCategory-00116196.js} +5 -5
  82. package/build/esm/{useHealthToolCache-28a3c4c6.js → useHealthToolCache-298307bc.js} +2 -2
  83. package/build/esm/{useMantineLocale-9b58b685.js → useMantineLocale-e9d07649.js} +3 -3
  84. package/build/esm/{usePlacesAutocomplete-dd489ec7.js → usePlacesAutocomplete-3c09ae6c.js} +1 -1
  85. package/build/esm/{useTranslations-d26d2dd7.js → useTranslations-ee0ed7e4.js} +1 -1
  86. package/build/esm/{utils-c74c31bf.js → utils-70fb5414.js} +4 -4
  87. package/build/esm/{utils-4caabcaf.js → utils-98843bdc.js} +1 -1
  88. package/build/esm/vaccination.js +26 -26
  89. package/build/footer.js +18 -18
  90. package/build/gAssets.js +4 -4
  91. package/build/{getDynamicHealthTool-cbdcdf15.js → getDynamicHealthTool-fe5aca1c.js} +4 -4
  92. package/build/{getSocialList-1694e67f.js → getSocialList-717ee974.js} +32 -13
  93. package/build/hooks.js +17 -17
  94. package/build/i18n-values/ms-MY.js +1 -1
  95. package/build/i18n.js +1 -1
  96. package/build/i18nV2.js +1 -1
  97. package/build/{index-ce4f11ef.js → index-172570c5.js} +5 -5
  98. package/build/{index-159e2660.js → index-266faebd.js} +2 -2
  99. package/build/{index-0454a0b5.js → index-297519c0.js} +3 -3
  100. package/build/{index-61367fe0.js → index-2dd62be1.js} +12 -12
  101. package/build/{index-f6ac4acf.js → index-2ed617c9.js} +6 -6
  102. package/build/{index-ac45c9ce.js → index-2f39a918.js} +4 -4
  103. package/build/{index-ff3c5c20.js → index-3f5ce427.js} +11 -11
  104. package/build/{index-5efec884.js → index-3fea5307.js} +2 -2
  105. package/build/{index-dba96acd.js → index-50cc6ee0.js} +22 -22
  106. package/build/{index-33f0bff6.js → index-58d6aa20.js} +10 -10
  107. package/build/{index-813921ef.js → index-657d308e.js} +2 -2
  108. package/build/{constants-6781c0a5.js → index-714baad1.js} +113 -113
  109. package/build/{index-8c0adaed.js → index-888fe1c7.js} +2 -2
  110. package/build/{index-cafc9574.js → index-896cf1e8.js} +55 -55
  111. package/build/{index-55261180.js → index-8bbc5f6c.js} +2 -2
  112. package/build/{index-80b5097a.js → index-a74e681a.js} +1 -1
  113. package/build/{index-48aca6d7.js → index-bd99a93f.js} +1050 -1050
  114. package/build/{index-83e3c045.js → index-c6d8ee38.js} +68 -68
  115. package/build/{index-d911e858.js → index-ca2880f5.js} +48 -47
  116. package/build/index-d37fb502.js +233 -0
  117. package/build/{index-909623c9.js → index-d98b6533.js} +2 -2
  118. package/build/{index-a6ab742a.js → index-de879d05.js} +120 -120
  119. package/build/{index-b1720522.js → index-e1d386b9.js} +7 -7
  120. package/build/{index-b71ec348.js → index-e76edc59.js} +8 -8
  121. package/build/{index-1f765864.js → index-f5c1576f.js} +2 -2
  122. package/build/{WhatsApp-6b693d67.js → index-fbc4ad0a.js} +276 -1
  123. package/build/{index-07db6c89.js → index-fd9e9e31.js} +3 -3
  124. package/build/index.css +1 -1
  125. package/build/index.js +108 -107
  126. package/build/{index.styled-50af6497.js → index.styled-cd56f718.js} +2 -2
  127. package/build/{index.styles-77df1c2b.js → index.styles-15b57fec.js} +83 -83
  128. package/build/lead.js +28 -28
  129. package/build/mantine.js +17 -17
  130. package/build/misc.js +23 -20
  131. package/build/navigation.js +35 -35
  132. package/build/onboardingV2.js +31 -31
  133. package/build/pwg.js +19 -19
  134. package/build/{routing-19724fda.js → routing-101c464a.js} +2 -2
  135. package/build/subot.js +338 -545
  136. package/build/together.js +40 -40
  137. package/build/{types-841ea0f8.js → types-65270049.js} +49 -49
  138. package/build/{types-8103df55.js → types-bc9b7ff5.js} +191 -191
  139. package/build/types.js +1 -1
  140. package/build/{useCategory-0b2ef197.js → useCategory-99167875.js} +5 -5
  141. package/build/{useHealthToolCache-3c423143.js → useHealthToolCache-347a7553.js} +2 -2
  142. package/build/{useMantineLocale-38ffd9ae.js → useMantineLocale-67d093f5.js} +3 -3
  143. package/build/{usePlacesAutocomplete-646b2b03.js → usePlacesAutocomplete-0d428f7d.js} +1 -1
  144. package/build/{useTranslations-3da8d23e.js → useTranslations-ddee03e3.js} +1 -1
  145. package/build/{utils-9a87f8d9.js → utils-bc89f5c8.js} +4 -4
  146. package/build/{utils-478cfe5d.js → utils-f2b61d2c.js} +1 -1
  147. package/build/vaccination.js +26 -26
  148. package/package.json +1 -1
  149. package/build/esm/WhatsApp-11fc8356.js +0 -24
  150. /package/build/{BMI_BOYS.percentile.monthly-9b50e52f.js → BMI_BOYS.percentile.monthly-2dbe6dbf.js} +0 -0
  151. /package/build/{BMI_BOYS.percentile.weekly-4439d476.js → BMI_BOYS.percentile.weekly-68fd0e8a.js} +0 -0
  152. /package/build/{BMI_BOYS.percentile.yearly-960c0771.js → BMI_BOYS.percentile.yearly-a334f00f.js} +0 -0
  153. /package/build/{BMI_BOYS.zscore.monthly-4b43250e.js → BMI_BOYS.zscore.monthly-f1f1e40c.js} +0 -0
  154. /package/build/{BMI_BOYS.zscore.weekly-d4907b9f.js → BMI_BOYS.zscore.weekly-eaadf495.js} +0 -0
  155. /package/build/{BMI_BOYS.zscore.yearly-9ee69f9d.js → BMI_BOYS.zscore.yearly-ee0a8baa.js} +0 -0
  156. /package/build/{BMI_GIRLS.percentile.monthly-dc2fdf0e.js → BMI_GIRLS.percentile.monthly-2a4322e1.js} +0 -0
  157. /package/build/{BMI_GIRLS.percentile.weekly-1b38bd96.js → BMI_GIRLS.percentile.weekly-8d2160f3.js} +0 -0
  158. /package/build/{BMI_GIRLS.percentile.yearly-02414e20.js → BMI_GIRLS.percentile.yearly-e305a1c3.js} +0 -0
  159. /package/build/{BMI_GIRLS.zscore.monthly-22932f64.js → BMI_GIRLS.zscore.monthly-370967e2.js} +0 -0
  160. /package/build/{BMI_GIRLS.zscore.weekly-821fa654.js → BMI_GIRLS.zscore.weekly-82dbdbeb.js} +0 -0
  161. /package/build/{BMI_GIRLS.zscore.yearly-7dbcbb1a.js → BMI_GIRLS.zscore.yearly-b624b0c5.js} +0 -0
  162. /package/build/{ChevronDown-8960bba8.js → ChevronDown-6a728605.js} +0 -0
  163. /package/build/{Close-08bd4298.js → Close-6a790433.js} +0 -0
  164. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-4d93a363.js → HEAD CIRCUM_BOYS.percentile.monthly-2d793b40.js} +0 -0
  165. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-6ba303fa.js → HEAD CIRCUM_BOYS.percentile.weekly-3ec0fbcd.js} +0 -0
  166. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-0a4ffaee.js → HEAD CIRCUM_BOYS.percentile.yearly-018cfad7.js} +0 -0
  167. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-d8eaa381.js → HEAD CIRCUM_BOYS.zscore.monthly-9a92fc56.js} +0 -0
  168. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-c87e6af4.js → HEAD CIRCUM_BOYS.zscore.weekly-ec5c1b66.js} +0 -0
  169. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-d9a52671.js → HEAD CIRCUM_BOYS.zscore.yearly-1bbc9e90.js} +0 -0
  170. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-4ed7bb97.js → HEAD CIRCUM_GIRLS.percentile.monthly-88bf7054.js} +0 -0
  171. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-6e4b369c.js → HEAD CIRCUM_GIRLS.percentile.weekly-48abc5c8.js} +0 -0
  172. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-a921267b.js → HEAD CIRCUM_GIRLS.percentile.yearly-eb5476be.js} +0 -0
  173. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-1cae954b.js → HEAD CIRCUM_GIRLS.zscore.monthly-b4908eed.js} +0 -0
  174. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-5d43456f.js → HEAD CIRCUM_GIRLS.zscore.weekly-bb3b5b73.js} +0 -0
  175. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-eced20c8.js → HEAD CIRCUM_GIRLS.zscore.yearly-9e459c3a.js} +0 -0
  176. /package/build/{HEIGHT_BOYS.percentile.monthly-07bcd6ca.js → HEIGHT_BOYS.percentile.monthly-de26b886.js} +0 -0
  177. /package/build/{HEIGHT_BOYS.percentile.weekly-7cdf6993.js → HEIGHT_BOYS.percentile.weekly-2b1a480e.js} +0 -0
  178. /package/build/{HEIGHT_BOYS.percentile.yearly-6c5d943a.js → HEIGHT_BOYS.percentile.yearly-9e11bf8a.js} +0 -0
  179. /package/build/{HEIGHT_BOYS.zscore.monthly-e46f25fc.js → HEIGHT_BOYS.zscore.monthly-169b72ab.js} +0 -0
  180. /package/build/{HEIGHT_BOYS.zscore.weekly-6d18339b.js → HEIGHT_BOYS.zscore.weekly-1f51ea7a.js} +0 -0
  181. /package/build/{HEIGHT_BOYS.zscore.yearly-7886aa48.js → HEIGHT_BOYS.zscore.yearly-2defb1ff.js} +0 -0
  182. /package/build/{HEIGHT_GIRLS.percentile.monthly-800ba66d.js → HEIGHT_GIRLS.percentile.monthly-ff09a166.js} +0 -0
  183. /package/build/{HEIGHT_GIRLS.percentile.weekly-cebd135d.js → HEIGHT_GIRLS.percentile.weekly-bdbad8b3.js} +0 -0
  184. /package/build/{HEIGHT_GIRLS.percentile.yearly-bc54e1ee.js → HEIGHT_GIRLS.percentile.yearly-a7cf5de3.js} +0 -0
  185. /package/build/{HEIGHT_GIRLS.zscore.monthly-d3160752.js → HEIGHT_GIRLS.zscore.monthly-bc88d68f.js} +0 -0
  186. /package/build/{HEIGHT_GIRLS.zscore.weekly-fb8651f4.js → HEIGHT_GIRLS.zscore.weekly-4b1bb4f7.js} +0 -0
  187. /package/build/{HEIGHT_GIRLS.zscore.yearly-2ac9b61e.js → HEIGHT_GIRLS.zscore.yearly-6d54fcc8.js} +0 -0
  188. /package/build/{Visible-f917485e.js → Visible-cf684c77.js} +0 -0
  189. /package/build/{WEIGHT_BOYS.percentile.monthly-84ec3cf3.js → WEIGHT_BOYS.percentile.monthly-69735b17.js} +0 -0
  190. /package/build/{WEIGHT_BOYS.percentile.weekly-430407fd.js → WEIGHT_BOYS.percentile.weekly-60881421.js} +0 -0
  191. /package/build/{WEIGHT_BOYS.percentile.yearly-c93ffc92.js → WEIGHT_BOYS.percentile.yearly-bac67ed1.js} +0 -0
  192. /package/build/{WEIGHT_BOYS.zscore.monthly-071e754c.js → WEIGHT_BOYS.zscore.monthly-e9254299.js} +0 -0
  193. /package/build/{WEIGHT_BOYS.zscore.weekly-6bad7529.js → WEIGHT_BOYS.zscore.weekly-6b82cd2d.js} +0 -0
  194. /package/build/{WEIGHT_BOYS.zscore.yearly-3388131c.js → WEIGHT_BOYS.zscore.yearly-43cc1986.js} +0 -0
  195. /package/build/{WEIGHT_GIRLS.percentile.monthly-1db18e75.js → WEIGHT_GIRLS.percentile.monthly-38847b2b.js} +0 -0
  196. /package/build/{WEIGHT_GIRLS.percentile.weekly-94e4dc5d.js → WEIGHT_GIRLS.percentile.weekly-2ac2ee92.js} +0 -0
  197. /package/build/{WEIGHT_GIRLS.percentile.yearly-8a0d1397.js → WEIGHT_GIRLS.percentile.yearly-3401e100.js} +0 -0
  198. /package/build/{WEIGHT_GIRLS.zscore.monthly-6e81e8eb.js → WEIGHT_GIRLS.zscore.monthly-4f257d09.js} +0 -0
  199. /package/build/{WEIGHT_GIRLS.zscore.weekly-7e09c6b4.js → WEIGHT_GIRLS.zscore.weekly-fe8ea3a5.js} +0 -0
  200. /package/build/{WEIGHT_GIRLS.zscore.yearly-48ae8923.js → WEIGHT_GIRLS.zscore.yearly-c780b33b.js} +0 -0
  201. /package/build/{animation-6a354499.js → animation-6f210c4a.js} +0 -0
  202. /package/build/{cart-f524d70b.js → cart-d48967a8.js} +0 -0
  203. /package/build/{cookieHelper-f1270aa8.js → cookieHelper-6fa2ed3a.js} +0 -0
  204. /package/build/{doctor-460efc4e.js → doctor-d70d0f31.js} +0 -0
  205. /package/build/esm/{BMI_BOYS.percentile.monthly-c795fa31.js → BMI_BOYS.percentile.monthly-2c7cf81c.js} +0 -0
  206. /package/build/esm/{BMI_BOYS.percentile.weekly-93d3a2e7.js → BMI_BOYS.percentile.weekly-963d00dc.js} +0 -0
  207. /package/build/esm/{BMI_BOYS.percentile.yearly-e12d0f93.js → BMI_BOYS.percentile.yearly-4eea698f.js} +0 -0
  208. /package/build/esm/{BMI_BOYS.zscore.monthly-a61cbcb5.js → BMI_BOYS.zscore.monthly-f5544376.js} +0 -0
  209. /package/build/esm/{BMI_BOYS.zscore.weekly-df28f2de.js → BMI_BOYS.zscore.weekly-4656cd4c.js} +0 -0
  210. /package/build/esm/{BMI_BOYS.zscore.yearly-1572b3d6.js → BMI_BOYS.zscore.yearly-39ccd0fd.js} +0 -0
  211. /package/build/esm/{BMI_GIRLS.percentile.monthly-afbf7bdd.js → BMI_GIRLS.percentile.monthly-d7501958.js} +0 -0
  212. /package/build/esm/{BMI_GIRLS.percentile.weekly-88afe92e.js → BMI_GIRLS.percentile.weekly-315ba23e.js} +0 -0
  213. /package/build/esm/{BMI_GIRLS.percentile.yearly-3f6d0007.js → BMI_GIRLS.percentile.yearly-5afebffb.js} +0 -0
  214. /package/build/esm/{BMI_GIRLS.zscore.monthly-df48ff7e.js → BMI_GIRLS.zscore.monthly-9c659c70.js} +0 -0
  215. /package/build/esm/{BMI_GIRLS.zscore.weekly-c0e3ef01.js → BMI_GIRLS.zscore.weekly-f72193e8.js} +0 -0
  216. /package/build/esm/{BMI_GIRLS.zscore.yearly-adf55dba.js → BMI_GIRLS.zscore.yearly-33a16ebf.js} +0 -0
  217. /package/build/esm/{ChevronDown-2d0f198a.js → ChevronDown-51088ad9.js} +0 -0
  218. /package/build/esm/{Close-2ce2f09c.js → Close-851c8b38.js} +0 -0
  219. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-a67a4012.js → HEAD CIRCUM_BOYS.percentile.monthly-522b5435.js} +0 -0
  220. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-eef6a2b3.js → HEAD CIRCUM_BOYS.percentile.weekly-72d04552.js} +0 -0
  221. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-7716a1b1.js → HEAD CIRCUM_BOYS.percentile.yearly-e68e4904.js} +0 -0
  222. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-976585ad.js → HEAD CIRCUM_BOYS.zscore.monthly-89b9b642.js} +0 -0
  223. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-4a8efa04.js → HEAD CIRCUM_BOYS.zscore.weekly-c8c2ae6a.js} +0 -0
  224. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-3e6d5418.js → HEAD CIRCUM_BOYS.zscore.yearly-0cf56dc8.js} +0 -0
  225. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-23bf9344.js → HEAD CIRCUM_GIRLS.percentile.monthly-ef9dbfc9.js} +0 -0
  226. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-bef4b766.js → HEAD CIRCUM_GIRLS.percentile.weekly-831567fe.js} +0 -0
  227. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-3d51ca86.js → HEAD CIRCUM_GIRLS.percentile.yearly-0e89170b.js} +0 -0
  228. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-0e8f2809.js → HEAD CIRCUM_GIRLS.zscore.monthly-82564fb7.js} +0 -0
  229. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-9af76405.js → HEAD CIRCUM_GIRLS.zscore.weekly-6b1845ec.js} +0 -0
  230. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-8bf900c4.js → HEAD CIRCUM_GIRLS.zscore.yearly-6b65120d.js} +0 -0
  231. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-2117581f.js → HEIGHT_BOYS.percentile.monthly-ecfdee13.js} +0 -0
  232. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-32caad55.js → HEIGHT_BOYS.percentile.weekly-2bae8fa8.js} +0 -0
  233. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-f06a01f4.js → HEIGHT_BOYS.percentile.yearly-4cf5eb0c.js} +0 -0
  234. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-9277aa60.js → HEIGHT_BOYS.zscore.monthly-5978dd63.js} +0 -0
  235. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-3fce9644.js → HEIGHT_BOYS.zscore.weekly-0e20ae65.js} +0 -0
  236. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-701cb22d.js → HEIGHT_BOYS.zscore.yearly-9f9ecc92.js} +0 -0
  237. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-c21f8cfd.js → HEIGHT_GIRLS.percentile.monthly-244b7899.js} +0 -0
  238. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-9d33aa12.js → HEIGHT_GIRLS.percentile.weekly-867f533c.js} +0 -0
  239. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-6e44423b.js → HEIGHT_GIRLS.percentile.yearly-8334ef62.js} +0 -0
  240. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-5a00cd96.js → HEIGHT_GIRLS.zscore.monthly-89dc2f92.js} +0 -0
  241. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-2ff60b7f.js → HEIGHT_GIRLS.zscore.weekly-c37a8e45.js} +0 -0
  242. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-18664e72.js → HEIGHT_GIRLS.zscore.yearly-d75c7342.js} +0 -0
  243. /package/build/esm/{Visible-013c4e17.js → Visible-2b82b731.js} +0 -0
  244. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-9a4ae0e0.js → WEIGHT_BOYS.percentile.monthly-afa954cf.js} +0 -0
  245. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-d5d70e19.js → WEIGHT_BOYS.percentile.weekly-0ce8ca9d.js} +0 -0
  246. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-861ab2cd.js → WEIGHT_BOYS.percentile.yearly-9bc9d108.js} +0 -0
  247. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-e9f591d1.js → WEIGHT_BOYS.zscore.monthly-c41e3c26.js} +0 -0
  248. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-fb1bd500.js → WEIGHT_BOYS.zscore.weekly-927605d1.js} +0 -0
  249. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-a25ff34d.js → WEIGHT_BOYS.zscore.yearly-10a9c6a3.js} +0 -0
  250. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-37cf236c.js → WEIGHT_GIRLS.percentile.monthly-c3957e70.js} +0 -0
  251. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-029e478f.js → WEIGHT_GIRLS.percentile.weekly-5413b078.js} +0 -0
  252. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-8dce316c.js → WEIGHT_GIRLS.percentile.yearly-fbef8c0c.js} +0 -0
  253. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-9173160d.js → WEIGHT_GIRLS.zscore.monthly-e89aa92b.js} +0 -0
  254. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-411a046b.js → WEIGHT_GIRLS.zscore.weekly-7a014b5a.js} +0 -0
  255. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-c19c7429.js → WEIGHT_GIRLS.zscore.yearly-0cae1bb9.js} +0 -0
  256. /package/build/esm/{animation-4b187451.js → animation-89cd92dc.js} +0 -0
  257. /package/build/esm/{cart-1e4e352e.js → cart-b5b2f9c9.js} +0 -0
  258. /package/build/esm/{cookieHelper-8494dcf1.js → cookieHelper-6839de86.js} +0 -0
  259. /package/build/esm/{doctor-74fc81b1.js → doctor-a16d5a2a.js} +0 -0
  260. /package/build/esm/{index-f1b4e4f6.js → index-207e5a99.js} +0 -0
  261. /package/build/esm/{index-3434140c.js → index-3f16918f.js} +0 -0
  262. /package/build/esm/{index-5f5297aa.js → index-b1dfbcd9.js} +0 -0
  263. /package/build/esm/{isProduction-a01c18e3.js → isProduction-6557a7a7.js} +0 -0
  264. /package/build/esm/{localizeNumberFormat-f924ab7b.js → localizeNumberFormat-1efb07bf.js} +0 -0
  265. /package/build/esm/{normalizeLink-61ae52b5.js → normalizeLink-9adb98bb.js} +0 -0
  266. /package/build/esm/{number-c847488a.js → number-7673e170.js} +0 -0
  267. /package/build/esm/{paths-756efba0.js → paths-1a0405c1.js} +0 -0
  268. /package/build/esm/{theme-ac1a0e46.js → theme-676e1d3e.js} +0 -0
  269. /package/build/esm/{translationsContext-a21c43b4.js → translationsContext-b00d46fa.js} +0 -0
  270. /package/build/esm/{tslib.es6-6d3de7c2.js → tslib.es6-42d35711.js} +0 -0
  271. /package/build/esm/{useIsInit-4ba52ee9.js → useIsInit-d65429ab.js} +0 -0
  272. /package/build/esm/{useOutsideClick-d1486166.js → useOutsideClick-3b36c560.js} +0 -0
  273. /package/build/esm/{useScrollbarSize-f874e0ac.js → useScrollbarSize-7cfe3d07.js} +0 -0
  274. /package/build/esm/{useUniqueId-a727e698.js → useUniqueId-28b8a8d2.js} +0 -0
  275. /package/build/esm/{utils-3d823a9f.js → utils-0f3667a8.js} +0 -0
  276. /package/build/{index-e1ed79b3.js → index-0c11098b.js} +0 -0
  277. /package/build/{index-4da85d4b.js → index-3d1716ad.js} +0 -0
  278. /package/build/{index-5e9fdc69.js → index-c4b66929.js} +0 -0
  279. /package/build/{index-b8cc819b.js → index-d38624f2.js} +0 -0
  280. /package/build/{isProduction-f7507b6e.js → isProduction-cc2f71e7.js} +0 -0
  281. /package/build/{localizeNumberFormat-8ccd7c74.js → localizeNumberFormat-72f6c627.js} +0 -0
  282. /package/build/{normalizeLink-0007c927.js → normalizeLink-37b001e0.js} +0 -0
  283. /package/build/{number-eb5a9b12.js → number-3c00e9ff.js} +0 -0
  284. /package/build/{paths-29644364.js → paths-22150d98.js} +0 -0
  285. /package/build/{theme-4d2a1014.js → theme-040e6fd9.js} +0 -0
  286. /package/build/{translationsContext-d76a8c6d.js → translationsContext-bece07e0.js} +0 -0
  287. /package/build/{tslib.es6-6abfcd13.js → tslib.es6-a8c3b1ed.js} +0 -0
  288. /package/build/{useIsInit-3021c365.js → useIsInit-78fbbf00.js} +0 -0
  289. /package/build/{useOutsideClick-9e887f30.js → useOutsideClick-f4ac5964.js} +0 -0
  290. /package/build/{useScrollbarSize-14a9f09a.js → useScrollbarSize-df8fb771.js} +0 -0
  291. /package/build/{useUniqueId-889c3946.js → useUniqueId-a3ed3f40.js} +0 -0
  292. /package/build/{utils-526a845c.js → utils-a2ad9aa3.js} +0 -0
@@ -1,20 +1,20 @@
1
- import { _ as __rest, a as __awaiter } from './tslib.es6-6d3de7c2.js';
1
+ import { _ as __rest, a as __awaiter } from './tslib.es6-42d35711.js';
2
2
  import * as React from 'react';
3
- import React__default, { useState, forwardRef, useEffect, Component, useCallback, createContext, useContext, useRef, useMemo, useImperativeHandle } from 'react';
3
+ import React__default, { forwardRef, useState, useEffect, Component, useCallback, createContext, useContext, useRef, useMemo, useImperativeHandle } from 'react';
4
4
  import { ArrowDown, ArrowLeft, ArrowRight } from '@hhgtech/icons/other';
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';
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';
6
6
  import { useUncontrolled, useDebouncedValue, useViewportSize, useResizeObserver, useDisclosure, useClickOutside } from '@mantine/hooks';
7
- import { C as CommonGAssets } from './index-cd069a89.js';
8
- import { B as Breakpoints } from './utils-3d823a9f.js';
7
+ import { C as CommonGAssets } from './index-2e13488d.js';
8
+ import { B as Breakpoints } from './utils-0f3667a8.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-c79781fb.js';
12
- import { L as LOCALE } from './index-352d0aa5.js';
13
- import { t as theme } from './theme-ac1a0e46.js';
14
- import { G as GlobalHeadingStyle } from './useMantineLocale-9b58b685.js';
15
- import { I as ISO_FORMAT, s as siteOptions } from './index-413867da.js';
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';
16
16
  import cn from 'classnames';
17
- import { a as useUniqueId } from './useUniqueId-a727e698.js';
17
+ import { a as useUniqueId } from './useUniqueId-28b8a8d2.js';
18
18
  import { Check, Plus } from '@hhgtech/icons/core';
19
19
 
20
20
  const GlobalButtonStyle = {
@@ -321,24 +321,242 @@ const getMantineThemeOverride = (locale, template = 'hb') => {
321
321
  };
322
322
  };
323
323
 
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)));
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);
332
373
  };
333
- const StyledImage = styled.img `
334
- &[data-has-placeholder='true'] {
335
- background-position: center;
336
- background-repeat: no-repeat;
337
- background-size: cover;
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)));
430
+ };
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;
338
469
  }
339
470
  `;
340
471
 
341
472
  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) => {
342
560
  var _a, _b, _c, _d, _e, _f;
343
561
  const { other } = _theme;
344
562
  const { template } = other;
@@ -511,7 +729,7 @@ const Button = (props) => {
511
729
  const theme = useMantineTheme();
512
730
  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"]);
513
731
  const isError = variant === 'error';
514
- const { classes, cx } = useStyles$4({
732
+ const { classes, cx } = useStyles$3({
515
733
  variant,
516
734
  size,
517
735
  color,
@@ -526,1075 +744,857 @@ const Button = (props) => {
526
744
  }, variant: MAPPED_VARIANT[variant], "data-variant": variant, "data-event-category": dataEventCategory, "data-event-action": dataEventAction, "data-event-label": dataEventLabel }, rest), children));
527
745
  };
528
746
 
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)));
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
+ `;
531
755
 
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" }))));
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
+ });
576
785
 
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)));
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
+ `;
579
820
 
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" }))));
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));
589
824
  };
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" })))));
825
+ const Accordion = _Accordion;
826
+ Accordion.Control = Accordion$1.Control;
827
+ Accordion.Item = Accordion$1.Item;
828
+ Accordion.Panel = Accordion$1.Panel;
829
+
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)));
838
+ };
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();
600
865
  };
601
866
 
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" })));
867
+ const FileInput = (props) => {
868
+ return React__default.createElement(FileInput$1, Object.assign({ size: "md" }, props));
869
+ };
637
870
 
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" })));
871
+ const DEBOUNCED_TIME = 300;
872
+ const emotionCache = createEmotionCache({
873
+ key: 'mantine',
874
+ prepend: false,
875
+ });
659
876
 
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)));
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
+ };
662
893
 
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" })));
702
-
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" })));
714
-
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" }))));
727
-
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
- };
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
+ });
820
902
 
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('');
839
- };
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))),
844
- }
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('');
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
- : {}))));
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) || ''}` })));
863
921
  });
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" })));
922
+ const Input = InputWrapper;
923
+ Input.File = FileInput;
924
+ Input.Password = PasswordInput;
925
+ Input.Number = NumberInput;
926
+ Input.Wrapper = Input$1.Wrapper;
866
927
 
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());
928
+ const StyledSlide = Carousel$1.Slide;
929
+
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);
879
937
  useEffect(() => {
880
- const handleResize = () => {
881
- setIsMobile(getIsMobile());
882
- setIsLargeMobile(getIsLargeMobile());
883
- };
884
- window.addEventListener('resize', handleResize, {
885
- passive: true,
886
- });
887
- return () => {
888
- window.removeEventListener('resize', handleResize);
889
- };
938
+ key.current = String(Math.round(Math.random() * 10000));
890
939
  }, []);
891
- return { isMobile, isLargeMobile };
892
- };
893
-
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);
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,
948
+ };
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;
911
979
  }
912
- return this.props.children;
913
- }
914
- }
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
+ },
1042
+ };
1043
+ 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
+ })),
1053
+ });
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;
915
1063
 
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)));
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)));
927
1079
  };
928
- const Carousel = CarouselWrapper$1;
929
- Carousel.Slide = Carousel$1.Slide;
1080
+ const Checkbox = CheckboxWrapper;
1081
+ Checkbox.Group = Checkbox$1.Group;
930
1082
 
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;
943
- }
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
- );
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
+ }
1110
+
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};
952
1127
  }
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
- );
1128
+ }
1129
+ [data-theme='marryBaby'] & {
1130
+ button {
1131
+ path:not([stroke]) {
1132
+ stroke: ${theme.mbColors.pink};
1133
+ }
961
1134
  }
962
1135
  }
1136
+ `;
963
1137
 
964
- .mantine-Carousel-container {
965
- align-items: center;
966
- }
967
- `;
968
-
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
- });
979
-
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
- };
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;
985
1158
 
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
- };
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
+ }
990
1174
 
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
- };
1175
+ var styles$2 = {"otpContainer":"_2iQs0sk","otpInput":"Ia6IojY","error":"yJs9MaD"};
1000
1176
 
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);
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
+ }
1016
1259
  }, []);
1017
- useEffect(() => {
1018
- if (embla) {
1019
- embla.on('scroll', handleScroll);
1020
- embla.on('pointerUp', handlePointerUp);
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();
1021
1274
  }
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))));
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
+ 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
+ })));
1052
1304
  };
1053
- const Breadcrumbs = _Breadcrumbs;
1054
- Breadcrumbs.Item = BreadcrumbItem;
1305
+ const OTP = forwardRef(OTPFowardRef);
1055
1306
 
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
- `;
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)));
1064
1309
 
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
- });
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" }))));
1094
1354
 
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
- `;
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)));
1129
1357
 
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));
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" }))));
1133
1367
  };
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();
1157
- };
1158
-
1159
- const FileInput = (props) => {
1160
- return React__default.createElement(FileInput$1, Object.assign({ size: "md" }, props));
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" })))));
1161
1378
  };
1162
1379
 
1163
- const DEBOUNCED_TIME = 300;
1164
- const emotionCache = createEmotionCache({
1165
- key: 'mantine',
1166
- prepend: false,
1167
- });
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" })));
1168
1415
 
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
- };
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" })));
1185
1437
 
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
- });
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)));
1194
1440
 
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;
1219
-
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
- `;
1429
-
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;
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" })));
1450
1480
 
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
- });
1460
- }
1461
- return otp;
1462
- }
1463
- function transferOtpToValue(otp) {
1464
- return otp.join('');
1465
- }
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" })));
1466
1492
 
1467
- var styles$1 = {"otpContainer":"_2iQs0sk","otpInput":"Ia6IojY","error":"yJs9MaD"};
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" }))));
1468
1505
 
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;
1488
- }
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();
1506
+ var styles$1 = {"flag":"pfaLGRK"};
1507
+
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;
1552
+ }
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;
1584
1591
  }
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);
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
+ };
1598
1598
 
1599
1599
  const countriesDefault = Object.values(siteOptions).reduce((countries, { phoneCountry: phone }) => {
1600
1600
  if (!countries.includes(phone)) {