@hhgtech/hhg-components 1.29.78 → 1.29.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/build/{Instagram-f68f1dae.js → Instagram-91ba1e26.js} +1 -1
  2. package/build/adapters.js +15 -15
  3. package/build/babyGrowth.js +80 -80
  4. package/build/cache.js +3 -3
  5. package/build/care.js +18 -18
  6. package/build/components.js +82 -82
  7. package/build/{index-714baad1.js → constants-4e7c419e.js} +113 -113
  8. package/build/{constants-385d01e7.js → constants-ca71f9e5.js} +2 -2
  9. package/build/constants.js +3 -3
  10. package/build/{core-e0799ceb.js → core-bb2587e7.js} +2 -2
  11. package/build/{dataTransform-c8c14a28.js → dataTransform-469b75eb.js} +1 -1
  12. package/build/ecom.js +5 -5
  13. package/build/esm/{Instagram-8dd26ac6.js → Instagram-319a8e34.js} +1 -1
  14. package/build/esm/adapters.js +15 -15
  15. package/build/esm/babyGrowth.js +81 -81
  16. package/build/esm/cache.js +3 -3
  17. package/build/esm/care.js +17 -17
  18. package/build/esm/components.js +58 -58
  19. package/build/esm/{index-9dd8721c.js → constants-508ba335.js} +113 -113
  20. package/build/esm/{constants-5d6ab948.js → constants-7661ce64.js} +2 -2
  21. package/build/esm/constants.js +3 -3
  22. package/build/esm/{core-296015da.js → core-5a22b83e.js} +2 -2
  23. package/build/esm/{dataTransform-0066c53b.js → dataTransform-f5db5afb.js} +1 -1
  24. package/build/esm/ecom.js +5 -5
  25. package/build/esm/footer.js +18 -18
  26. package/build/esm/gAssets.js +4 -4
  27. package/build/esm/{getDynamicHealthTool-7cf3f00e.js → getDynamicHealthTool-09fda8b3.js} +4 -4
  28. package/build/esm/{getSocialList-f797bbe2.js → getSocialList-96301dbb.js} +6 -6
  29. package/build/esm/hooks.js +17 -17
  30. package/build/esm/i18n.js +2 -2
  31. package/build/esm/i18nV2.js +2 -2
  32. package/build/esm/{index-b9666693.js → index-13bf84f4.js} +1 -1
  33. package/build/esm/{index-6c7832ac.js → index-1a3f36c3.js} +21 -21
  34. package/build/esm/{index-869411be.js → index-2d47a346.js} +10 -10
  35. package/build/esm/{index-ed317f58.js → index-32e2b169.js} +62 -62
  36. package/build/esm/{index-f160e379.js → index-3c7f109c.js} +2 -2
  37. package/build/esm/{index-30eb73b8.js → index-474e0ae5.js} +3 -3
  38. package/build/esm/{index-dd00700b.js → index-4dcdce19.js} +2 -2
  39. package/build/esm/{index-fc868dc0.js → index-53a86337.js} +5 -5
  40. package/build/esm/{index-b45321ac.js → index-5773eb18.js} +6 -6
  41. package/build/esm/{index-2da84fe8.js → index-679d5383.js} +1 -1
  42. package/build/esm/{index-5b69b19c.js → index-77dddeb9.js} +2 -2
  43. package/build/esm/{index-25209a23.js → index-800b956a.js} +37 -37
  44. package/build/esm/{index-2e13488d.js → index-80f4d7df.js} +2 -2
  45. package/build/esm/{index-62059a85.js → index-82861dba.js} +2 -2
  46. package/build/esm/{index-5c2abf3a.js → index-92eedeb0.js} +1047 -1047
  47. package/build/esm/{index-70bb6ed3.js → index-9b54376f.js} +120 -120
  48. package/build/esm/{index-a2404202.js → index-aebf96f3.js} +2 -2
  49. package/build/esm/{index-e80cb404.js → index-bcd13f1d.js} +12 -12
  50. package/build/esm/{index-09ecd45f.js → index-c4699d44.js} +41 -43
  51. package/build/esm/{index-94f2f772.js → index-c807ef87.js} +2 -2
  52. package/build/esm/{index-13975e28.js → index-d48b5db6.js} +4 -4
  53. package/build/esm/{index-6896ecdf.js → index-d5b66388.js} +2 -2
  54. package/build/esm/{index-4e6d8f1c.js → index-da2b8f22.js} +11 -11
  55. package/build/esm/{index-c8e5b7ad.js → index-df29c4e0.js} +5 -5
  56. package/build/esm/{index-ad1d81e3.js → index-e68d4285.js} +2 -2
  57. package/build/esm/{index-043dfbc3.js → index-ef855343.js} +4 -4
  58. package/build/esm/index.css +1 -1
  59. package/build/esm/index.js +66 -66
  60. package/build/esm/{index.styled-19fa0003.js → index.styled-9e147e72.js} +2 -2
  61. package/build/esm/{index.styles-0693a12e.js → index.styles-0ef0135c.js} +78 -78
  62. package/build/esm/lead.js +28 -28
  63. package/build/esm/mantine.js +20 -20
  64. package/build/esm/misc.js +21 -21
  65. package/build/esm/navigation.js +35 -35
  66. package/build/esm/onboardingV2.js +32 -32
  67. package/build/esm/pwg.js +19 -19
  68. package/build/esm/{routing-ddff6eb9.js → routing-7bc3e320.js} +2 -2
  69. package/build/esm/subot.js +25 -25
  70. package/build/esm/together.js +35 -35
  71. package/build/esm/{types-29a56da4.js → types-957334f2.js} +30 -30
  72. package/build/esm/{types-1ab8164a.js → types-ee1be1e3.js} +13 -13
  73. package/build/esm/types.js +1 -1
  74. package/build/esm/{useCategory-00116196.js → useCategory-7e020652.js} +5 -5
  75. package/build/esm/{useHealthToolCache-298307bc.js → useHealthToolCache-c70e4fd5.js} +2 -2
  76. package/build/esm/{useMantineLocale-e9d07649.js → useMantineLocale-1373e175.js} +3 -3
  77. package/build/esm/{usePlacesAutocomplete-3c09ae6c.js → usePlacesAutocomplete-4bfe976e.js} +1 -1
  78. package/build/esm/{useTranslations-ee0ed7e4.js → useTranslations-adad3b06.js} +1 -1
  79. package/build/esm/{utils-98843bdc.js → utils-b14c10f9.js} +1 -1
  80. package/build/esm/{defaultClassWrapper-8112e475.js → utils-dee27bfd.js} +107 -107
  81. package/build/esm/{utils-70fb5414.js → utils-ff5d88a2.js} +4 -4
  82. package/build/esm/vaccination.js +26 -26
  83. package/build/footer.js +18 -18
  84. package/build/gAssets.js +4 -4
  85. package/build/{getDynamicHealthTool-fe5aca1c.js → getDynamicHealthTool-357666f7.js} +4 -4
  86. package/build/{getSocialList-717ee974.js → getSocialList-c1404aff.js} +6 -6
  87. package/build/hooks.js +17 -17
  88. package/build/i18n.js +1 -1
  89. package/build/i18nV2.js +1 -1
  90. package/build/{index-2dd62be1.js → index-040620f6.js} +12 -12
  91. package/build/{index-896cf1e8.js → index-0523771b.js} +55 -55
  92. package/build/{index-fbc4ad0a.js → index-1250dd06.js} +1 -1
  93. package/build/{index-3fea5307.js → index-20ebc0bd.js} +2 -2
  94. package/build/{index-d98b6533.js → index-2b32b21e.js} +2 -2
  95. package/build/{index-fd9e9e31.js → index-3a03bb34.js} +2 -2
  96. package/build/{index-a74e681a.js → index-5029b5d8.js} +1 -1
  97. package/build/{index-de879d05.js → index-5d9ad07e.js} +120 -120
  98. package/build/{index-d37fb502.js → index-61ef343d.js} +4 -4
  99. package/build/{index-c6d8ee38.js → index-82a3ba38.js} +68 -68
  100. package/build/{index-8bbc5f6c.js → index-858f60e0.js} +2 -2
  101. package/build/{index-266faebd.js → index-8c826f3e.js} +2 -2
  102. package/build/{index-888fe1c7.js → index-91027d35.js} +2 -2
  103. package/build/{index-e76edc59.js → index-917c975c.js} +7 -7
  104. package/build/{index-f5c1576f.js → index-94a2b0f9.js} +2 -2
  105. package/build/{index-bd99a93f.js → index-94fd9ea6.js} +1045 -1045
  106. package/build/{index-ca2880f5.js → index-b0414701.js} +52 -54
  107. package/build/{index-172570c5.js → index-bf6e5e4e.js} +5 -5
  108. package/build/{index-297519c0.js → index-c67602d7.js} +3 -3
  109. package/build/{index-3f5ce427.js → index-d710511f.js} +11 -11
  110. package/build/{index-50cc6ee0.js → index-dbf560f2.js} +22 -22
  111. package/build/{index-657d308e.js → index-e60c98f8.js} +2 -2
  112. package/build/{index-58d6aa20.js → index-ed587907.js} +10 -10
  113. package/build/{index-e1d386b9.js → index-efcbac97.js} +7 -7
  114. package/build/{index-2ed617c9.js → index-f0a532c7.js} +6 -6
  115. package/build/{index-2f39a918.js → index-f5103542.js} +4 -4
  116. package/build/index.css +1 -1
  117. package/build/index.js +108 -108
  118. package/build/{index.styled-cd56f718.js → index.styled-8aca5145.js} +2 -2
  119. package/build/{index.styles-15b57fec.js → index.styles-2bdfde5f.js} +83 -83
  120. package/build/lead.js +28 -28
  121. package/build/mantine.js +17 -17
  122. package/build/misc.js +21 -21
  123. package/build/navigation.js +35 -35
  124. package/build/onboardingV2.js +31 -31
  125. package/build/pwg.js +19 -19
  126. package/build/{routing-101c464a.js → routing-bc8197d8.js} +2 -2
  127. package/build/subot.js +100 -100
  128. package/build/together.js +40 -40
  129. package/build/{types-65270049.js → types-6996fb20.js} +49 -49
  130. package/build/{types-bc9b7ff5.js → types-c8956642.js} +191 -191
  131. package/build/types.js +1 -1
  132. package/build/{useCategory-99167875.js → useCategory-7d1f8a7d.js} +5 -5
  133. package/build/{useHealthToolCache-347a7553.js → useHealthToolCache-b7dea4aa.js} +2 -2
  134. package/build/{useMantineLocale-67d093f5.js → useMantineLocale-b243f628.js} +3 -3
  135. package/build/{usePlacesAutocomplete-0d428f7d.js → usePlacesAutocomplete-08b86d2d.js} +1 -1
  136. package/build/{useTranslations-ddee03e3.js → useTranslations-d5456a98.js} +1 -1
  137. package/build/{utils-bc89f5c8.js → utils-263a60f7.js} +4 -4
  138. package/build/{defaultClassWrapper-8ac3b7f0.js → utils-9f62698f.js} +106 -106
  139. package/build/{utils-f2b61d2c.js → utils-d421a448.js} +1 -1
  140. package/build/vaccination.js +26 -26
  141. package/package.json +2 -2
  142. /package/build/{BMI_BOYS.percentile.monthly-2dbe6dbf.js → BMI_BOYS.percentile.monthly-c38ce03a.js} +0 -0
  143. /package/build/{BMI_BOYS.percentile.weekly-68fd0e8a.js → BMI_BOYS.percentile.weekly-1eccee42.js} +0 -0
  144. /package/build/{BMI_BOYS.percentile.yearly-a334f00f.js → BMI_BOYS.percentile.yearly-0e7d5cb6.js} +0 -0
  145. /package/build/{BMI_BOYS.zscore.monthly-f1f1e40c.js → BMI_BOYS.zscore.monthly-f72f392f.js} +0 -0
  146. /package/build/{BMI_BOYS.zscore.weekly-eaadf495.js → BMI_BOYS.zscore.weekly-94fd04e6.js} +0 -0
  147. /package/build/{BMI_BOYS.zscore.yearly-ee0a8baa.js → BMI_BOYS.zscore.yearly-90d5e091.js} +0 -0
  148. /package/build/{BMI_GIRLS.percentile.monthly-2a4322e1.js → BMI_GIRLS.percentile.monthly-de3a9a14.js} +0 -0
  149. /package/build/{BMI_GIRLS.percentile.weekly-8d2160f3.js → BMI_GIRLS.percentile.weekly-1e1ce2b7.js} +0 -0
  150. /package/build/{BMI_GIRLS.percentile.yearly-e305a1c3.js → BMI_GIRLS.percentile.yearly-70a44f31.js} +0 -0
  151. /package/build/{BMI_GIRLS.zscore.monthly-370967e2.js → BMI_GIRLS.zscore.monthly-be4399a5.js} +0 -0
  152. /package/build/{BMI_GIRLS.zscore.weekly-82dbdbeb.js → BMI_GIRLS.zscore.weekly-6121376b.js} +0 -0
  153. /package/build/{BMI_GIRLS.zscore.yearly-b624b0c5.js → BMI_GIRLS.zscore.yearly-822e7686.js} +0 -0
  154. /package/build/{ChevronDown-6a728605.js → ChevronDown-f9d31306.js} +0 -0
  155. /package/build/{Close-6a790433.js → Close-27e0dcf1.js} +0 -0
  156. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-2d793b40.js → HEAD CIRCUM_BOYS.percentile.monthly-5e094c3e.js} +0 -0
  157. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-3ec0fbcd.js → HEAD CIRCUM_BOYS.percentile.weekly-24f827d8.js} +0 -0
  158. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-018cfad7.js → HEAD CIRCUM_BOYS.percentile.yearly-d7478410.js} +0 -0
  159. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-9a92fc56.js → HEAD CIRCUM_BOYS.zscore.monthly-1123cad6.js} +0 -0
  160. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-ec5c1b66.js → HEAD CIRCUM_BOYS.zscore.weekly-a5b55615.js} +0 -0
  161. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-1bbc9e90.js → HEAD CIRCUM_BOYS.zscore.yearly-0d818764.js} +0 -0
  162. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-88bf7054.js → HEAD CIRCUM_GIRLS.percentile.monthly-dddf5ad9.js} +0 -0
  163. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-48abc5c8.js → HEAD CIRCUM_GIRLS.percentile.weekly-a80d6989.js} +0 -0
  164. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-eb5476be.js → HEAD CIRCUM_GIRLS.percentile.yearly-01850b67.js} +0 -0
  165. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-b4908eed.js → HEAD CIRCUM_GIRLS.zscore.monthly-82890053.js} +0 -0
  166. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-bb3b5b73.js → HEAD CIRCUM_GIRLS.zscore.weekly-069f8c8f.js} +0 -0
  167. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-9e459c3a.js → HEAD CIRCUM_GIRLS.zscore.yearly-ae5ef237.js} +0 -0
  168. /package/build/{HEIGHT_BOYS.percentile.monthly-de26b886.js → HEIGHT_BOYS.percentile.monthly-d0da1664.js} +0 -0
  169. /package/build/{HEIGHT_BOYS.percentile.weekly-2b1a480e.js → HEIGHT_BOYS.percentile.weekly-55446b8a.js} +0 -0
  170. /package/build/{HEIGHT_BOYS.percentile.yearly-9e11bf8a.js → HEIGHT_BOYS.percentile.yearly-f2f5b19f.js} +0 -0
  171. /package/build/{HEIGHT_BOYS.zscore.monthly-169b72ab.js → HEIGHT_BOYS.zscore.monthly-e6ed98ef.js} +0 -0
  172. /package/build/{HEIGHT_BOYS.zscore.weekly-1f51ea7a.js → HEIGHT_BOYS.zscore.weekly-d0d37479.js} +0 -0
  173. /package/build/{HEIGHT_BOYS.zscore.yearly-2defb1ff.js → HEIGHT_BOYS.zscore.yearly-4023b808.js} +0 -0
  174. /package/build/{HEIGHT_GIRLS.percentile.monthly-ff09a166.js → HEIGHT_GIRLS.percentile.monthly-6d9aeadc.js} +0 -0
  175. /package/build/{HEIGHT_GIRLS.percentile.weekly-bdbad8b3.js → HEIGHT_GIRLS.percentile.weekly-2087c9b4.js} +0 -0
  176. /package/build/{HEIGHT_GIRLS.percentile.yearly-a7cf5de3.js → HEIGHT_GIRLS.percentile.yearly-f98d8b05.js} +0 -0
  177. /package/build/{HEIGHT_GIRLS.zscore.monthly-bc88d68f.js → HEIGHT_GIRLS.zscore.monthly-99d299e3.js} +0 -0
  178. /package/build/{HEIGHT_GIRLS.zscore.weekly-4b1bb4f7.js → HEIGHT_GIRLS.zscore.weekly-c46ed349.js} +0 -0
  179. /package/build/{HEIGHT_GIRLS.zscore.yearly-6d54fcc8.js → HEIGHT_GIRLS.zscore.yearly-fddefca4.js} +0 -0
  180. /package/build/{Visible-cf684c77.js → Visible-01dfaec9.js} +0 -0
  181. /package/build/{WEIGHT_BOYS.percentile.monthly-69735b17.js → WEIGHT_BOYS.percentile.monthly-cead8ece.js} +0 -0
  182. /package/build/{WEIGHT_BOYS.percentile.weekly-60881421.js → WEIGHT_BOYS.percentile.weekly-a97fa31a.js} +0 -0
  183. /package/build/{WEIGHT_BOYS.percentile.yearly-bac67ed1.js → WEIGHT_BOYS.percentile.yearly-c2c41945.js} +0 -0
  184. /package/build/{WEIGHT_BOYS.zscore.monthly-e9254299.js → WEIGHT_BOYS.zscore.monthly-d8de7dc2.js} +0 -0
  185. /package/build/{WEIGHT_BOYS.zscore.weekly-6b82cd2d.js → WEIGHT_BOYS.zscore.weekly-41a6f6bf.js} +0 -0
  186. /package/build/{WEIGHT_BOYS.zscore.yearly-43cc1986.js → WEIGHT_BOYS.zscore.yearly-5762fa8a.js} +0 -0
  187. /package/build/{WEIGHT_GIRLS.percentile.monthly-38847b2b.js → WEIGHT_GIRLS.percentile.monthly-526fb18a.js} +0 -0
  188. /package/build/{WEIGHT_GIRLS.percentile.weekly-2ac2ee92.js → WEIGHT_GIRLS.percentile.weekly-6c63ed2b.js} +0 -0
  189. /package/build/{WEIGHT_GIRLS.percentile.yearly-3401e100.js → WEIGHT_GIRLS.percentile.yearly-0ecdbd3a.js} +0 -0
  190. /package/build/{WEIGHT_GIRLS.zscore.monthly-4f257d09.js → WEIGHT_GIRLS.zscore.monthly-0c353536.js} +0 -0
  191. /package/build/{WEIGHT_GIRLS.zscore.weekly-fe8ea3a5.js → WEIGHT_GIRLS.zscore.weekly-97898ff6.js} +0 -0
  192. /package/build/{WEIGHT_GIRLS.zscore.yearly-c780b33b.js → WEIGHT_GIRLS.zscore.yearly-cbebe807.js} +0 -0
  193. /package/build/{animation-6f210c4a.js → animation-8605b5bb.js} +0 -0
  194. /package/build/{cart-d48967a8.js → cart-ab5762b8.js} +0 -0
  195. /package/build/{cookieHelper-6fa2ed3a.js → cookieHelper-b2132ffc.js} +0 -0
  196. /package/build/{doctor-d70d0f31.js → doctor-f121fd79.js} +0 -0
  197. /package/build/esm/{BMI_BOYS.percentile.monthly-2c7cf81c.js → BMI_BOYS.percentile.monthly-e507536d.js} +0 -0
  198. /package/build/esm/{BMI_BOYS.percentile.weekly-963d00dc.js → BMI_BOYS.percentile.weekly-3cbf7392.js} +0 -0
  199. /package/build/esm/{BMI_BOYS.percentile.yearly-4eea698f.js → BMI_BOYS.percentile.yearly-c7d54bc3.js} +0 -0
  200. /package/build/esm/{BMI_BOYS.zscore.monthly-f5544376.js → BMI_BOYS.zscore.monthly-4d09aca0.js} +0 -0
  201. /package/build/esm/{BMI_BOYS.zscore.weekly-4656cd4c.js → BMI_BOYS.zscore.weekly-319b78c5.js} +0 -0
  202. /package/build/esm/{BMI_BOYS.zscore.yearly-39ccd0fd.js → BMI_BOYS.zscore.yearly-764732c5.js} +0 -0
  203. /package/build/esm/{BMI_GIRLS.percentile.monthly-d7501958.js → BMI_GIRLS.percentile.monthly-5a8e4069.js} +0 -0
  204. /package/build/esm/{BMI_GIRLS.percentile.weekly-315ba23e.js → BMI_GIRLS.percentile.weekly-a2fe6df1.js} +0 -0
  205. /package/build/esm/{BMI_GIRLS.percentile.yearly-5afebffb.js → BMI_GIRLS.percentile.yearly-810fe911.js} +0 -0
  206. /package/build/esm/{BMI_GIRLS.zscore.monthly-9c659c70.js → BMI_GIRLS.zscore.monthly-afab03b0.js} +0 -0
  207. /package/build/esm/{BMI_GIRLS.zscore.weekly-f72193e8.js → BMI_GIRLS.zscore.weekly-8f4e7198.js} +0 -0
  208. /package/build/esm/{BMI_GIRLS.zscore.yearly-33a16ebf.js → BMI_GIRLS.zscore.yearly-7f043621.js} +0 -0
  209. /package/build/esm/{ChevronDown-51088ad9.js → ChevronDown-d24fd24b.js} +0 -0
  210. /package/build/esm/{Close-851c8b38.js → Close-6243d246.js} +0 -0
  211. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-522b5435.js → HEAD CIRCUM_BOYS.percentile.monthly-91c12176.js} +0 -0
  212. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-72d04552.js → HEAD CIRCUM_BOYS.percentile.weekly-40e77c68.js} +0 -0
  213. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-e68e4904.js → HEAD CIRCUM_BOYS.percentile.yearly-1a284ec4.js} +0 -0
  214. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-89b9b642.js → HEAD CIRCUM_BOYS.zscore.monthly-16f716a6.js} +0 -0
  215. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-c8c2ae6a.js → HEAD CIRCUM_BOYS.zscore.weekly-07d20112.js} +0 -0
  216. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-0cf56dc8.js → HEAD CIRCUM_BOYS.zscore.yearly-1201a10a.js} +0 -0
  217. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-ef9dbfc9.js → HEAD CIRCUM_GIRLS.percentile.monthly-a6348baf.js} +0 -0
  218. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-831567fe.js → HEAD CIRCUM_GIRLS.percentile.weekly-af26363f.js} +0 -0
  219. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-0e89170b.js → HEAD CIRCUM_GIRLS.percentile.yearly-e7637928.js} +0 -0
  220. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-82564fb7.js → HEAD CIRCUM_GIRLS.zscore.monthly-9be0e0ca.js} +0 -0
  221. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-6b1845ec.js → HEAD CIRCUM_GIRLS.zscore.weekly-3ffe9dcd.js} +0 -0
  222. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-6b65120d.js → HEAD CIRCUM_GIRLS.zscore.yearly-d7226db1.js} +0 -0
  223. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-ecfdee13.js → HEIGHT_BOYS.percentile.monthly-c2e21892.js} +0 -0
  224. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-2bae8fa8.js → HEIGHT_BOYS.percentile.weekly-22018f1e.js} +0 -0
  225. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-4cf5eb0c.js → HEIGHT_BOYS.percentile.yearly-391cd377.js} +0 -0
  226. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-5978dd63.js → HEIGHT_BOYS.zscore.monthly-e11f50f4.js} +0 -0
  227. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-0e20ae65.js → HEIGHT_BOYS.zscore.weekly-8e2c8306.js} +0 -0
  228. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-9f9ecc92.js → HEIGHT_BOYS.zscore.yearly-78e974bb.js} +0 -0
  229. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-244b7899.js → HEIGHT_GIRLS.percentile.monthly-0a49ff89.js} +0 -0
  230. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-867f533c.js → HEIGHT_GIRLS.percentile.weekly-5e158a8e.js} +0 -0
  231. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-8334ef62.js → HEIGHT_GIRLS.percentile.yearly-f5544ab2.js} +0 -0
  232. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-89dc2f92.js → HEIGHT_GIRLS.zscore.monthly-92f67ec2.js} +0 -0
  233. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-c37a8e45.js → HEIGHT_GIRLS.zscore.weekly-f5d11f32.js} +0 -0
  234. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-d75c7342.js → HEIGHT_GIRLS.zscore.yearly-4fe6aad9.js} +0 -0
  235. /package/build/esm/{Visible-2b82b731.js → Visible-7f408f98.js} +0 -0
  236. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-afa954cf.js → WEIGHT_BOYS.percentile.monthly-b09ae73a.js} +0 -0
  237. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-0ce8ca9d.js → WEIGHT_BOYS.percentile.weekly-733a24a9.js} +0 -0
  238. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-9bc9d108.js → WEIGHT_BOYS.percentile.yearly-2bfcfc93.js} +0 -0
  239. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-c41e3c26.js → WEIGHT_BOYS.zscore.monthly-c0d3a746.js} +0 -0
  240. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-927605d1.js → WEIGHT_BOYS.zscore.weekly-b41ff498.js} +0 -0
  241. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-10a9c6a3.js → WEIGHT_BOYS.zscore.yearly-15bb7570.js} +0 -0
  242. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-c3957e70.js → WEIGHT_GIRLS.percentile.monthly-5b79dea8.js} +0 -0
  243. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-5413b078.js → WEIGHT_GIRLS.percentile.weekly-33052637.js} +0 -0
  244. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-fbef8c0c.js → WEIGHT_GIRLS.percentile.yearly-64382b53.js} +0 -0
  245. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-e89aa92b.js → WEIGHT_GIRLS.zscore.monthly-63f19584.js} +0 -0
  246. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-7a014b5a.js → WEIGHT_GIRLS.zscore.weekly-938ebce2.js} +0 -0
  247. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-0cae1bb9.js → WEIGHT_GIRLS.zscore.yearly-016e1cfc.js} +0 -0
  248. /package/build/esm/{animation-89cd92dc.js → animation-bf170ee9.js} +0 -0
  249. /package/build/esm/{cart-b5b2f9c9.js → cart-5bdb4fa5.js} +0 -0
  250. /package/build/esm/{cookieHelper-6839de86.js → cookieHelper-ff6c13b4.js} +0 -0
  251. /package/build/esm/{doctor-a16d5a2a.js → doctor-f4cadffb.js} +0 -0
  252. /package/build/esm/{index-207e5a99.js → index-528e64f4.js} +0 -0
  253. /package/build/esm/{index-b1dfbcd9.js → index-6c0f560b.js} +0 -0
  254. /package/build/esm/{index-3f16918f.js → index-b87433a0.js} +0 -0
  255. /package/build/esm/{index-b851beaf.js → index-eeedf0f0.js} +0 -0
  256. /package/build/esm/{isProduction-6557a7a7.js → isProduction-2838b9ae.js} +0 -0
  257. /package/build/esm/{localizeNumberFormat-1efb07bf.js → localizeNumberFormat-9303c122.js} +0 -0
  258. /package/build/esm/{normalizeLink-9adb98bb.js → normalizeLink-38ab69f4.js} +0 -0
  259. /package/build/esm/{number-7673e170.js → number-fcae69c7.js} +0 -0
  260. /package/build/esm/{paths-1a0405c1.js → paths-d1c61fa8.js} +0 -0
  261. /package/build/esm/{theme-676e1d3e.js → theme-0af1cc3d.js} +0 -0
  262. /package/build/esm/{translationsContext-b00d46fa.js → translationsContext-036458b7.js} +0 -0
  263. /package/build/esm/{tslib.es6-42d35711.js → tslib.es6-2673b49d.js} +0 -0
  264. /package/build/esm/{useIsInit-d65429ab.js → useIsInit-2c5ff93d.js} +0 -0
  265. /package/build/esm/{useOutsideClick-3b36c560.js → useOutsideClick-7023de23.js} +0 -0
  266. /package/build/esm/{useScrollbarSize-7cfe3d07.js → useScrollbarSize-dfdab229.js} +0 -0
  267. /package/build/esm/{useUniqueId-28b8a8d2.js → useUniqueId-d4b0bdd3.js} +0 -0
  268. /package/build/esm/{utils-0f3667a8.js → utils-511a24f4.js} +0 -0
  269. /package/build/{index-d38624f2.js → index-18ddaa1b.js} +0 -0
  270. /package/build/{index-0c11098b.js → index-5c400e5e.js} +0 -0
  271. /package/build/{index-3d1716ad.js → index-bced434a.js} +0 -0
  272. /package/build/{index-c4b66929.js → index-c524c362.js} +0 -0
  273. /package/build/{isProduction-cc2f71e7.js → isProduction-2e55aee3.js} +0 -0
  274. /package/build/{localizeNumberFormat-72f6c627.js → localizeNumberFormat-2befc6e4.js} +0 -0
  275. /package/build/{normalizeLink-37b001e0.js → normalizeLink-0fd36e61.js} +0 -0
  276. /package/build/{number-3c00e9ff.js → number-92da0262.js} +0 -0
  277. /package/build/{paths-22150d98.js → paths-350514c4.js} +0 -0
  278. /package/build/{theme-040e6fd9.js → theme-f410baf6.js} +0 -0
  279. /package/build/{translationsContext-bece07e0.js → translationsContext-11cafcfc.js} +0 -0
  280. /package/build/{tslib.es6-a8c3b1ed.js → tslib.es6-4bc45883.js} +0 -0
  281. /package/build/{useIsInit-78fbbf00.js → useIsInit-0f6d1879.js} +0 -0
  282. /package/build/{useOutsideClick-f4ac5964.js → useOutsideClick-e067cc79.js} +0 -0
  283. /package/build/{useScrollbarSize-df8fb771.js → useScrollbarSize-ed50b4a6.js} +0 -0
  284. /package/build/{useUniqueId-a3ed3f40.js → useUniqueId-4ce69bff.js} +0 -0
  285. /package/build/{utils-a2ad9aa3.js → utils-4849d92a.js} +0 -0
@@ -1,21 +1,21 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('./tslib.es6-a8c3b1ed.js');
3
+ var tslib_es6 = require('./tslib.es6-4bc45883.js');
4
4
  var React = require('react');
5
5
  var other = require('@hhgtech/icons/other');
6
6
  var core = require('@mantine/core');
7
7
  var hooks = require('@mantine/hooks');
8
- var index$2 = require('./index-8bbc5f6c.js');
9
- var utils = require('./utils-a2ad9aa3.js');
8
+ var index$2 = require('./index-858f60e0.js');
9
+ var utils = require('./utils-4849d92a.js');
10
10
  var styled = require('@emotion/styled');
11
11
  var carousel = require('@mantine/carousel');
12
- var index$3 = require('./index-657d308e.js');
13
- var index$1 = require('./index-d38624f2.js');
14
- var theme = require('./theme-040e6fd9.js');
15
- var useMantineLocale = require('./useMantineLocale-67d093f5.js');
16
- var index = require('./index-fd9e9e31.js');
12
+ var index$3 = require('./index-e60c98f8.js');
13
+ var index$1 = require('./index-18ddaa1b.js');
14
+ var theme = require('./theme-f410baf6.js');
15
+ var useMantineLocale = require('./useMantineLocale-b243f628.js');
16
+ var index = require('./index-3a03bb34.js');
17
17
  var cn = require('classnames');
18
- var useUniqueId = require('./useUniqueId-a3ed3f40.js');
18
+ var useUniqueId = require('./useUniqueId-4ce69bff.js');
19
19
  var core$1 = require('@hhgtech/icons/core');
20
20
 
21
21
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -346,242 +346,24 @@ const getMantineThemeOverride = (locale, template = 'hb') => {
346
346
  };
347
347
  };
348
348
 
349
- const Select = React.forwardRef((_a, ref) => {
350
- var { keepSearch = false } = _a, props = tslib_es6.__rest(_a, ["keepSearch"]);
351
- if (keepSearch) {
352
- return (React__namespace["default"].createElement(_AutoComplete, Object.assign({}, props, { ref: ref })));
353
- }
354
- else {
355
- return React__namespace["default"].createElement(_Select, Object.assign({}, props, { ref: ref }));
356
- }
357
- });
358
- const _AutoComplete = React.forwardRef((_a, ref) => {
359
- var { value, defaultValue, onChange, clearable } = _a, props = tslib_es6.__rest(_a, ["value", "defaultValue", "onChange", "clearable"]);
360
- const [_value, handleChange] = hooks.useUncontrolled({
361
- value,
362
- defaultValue,
363
- onChange,
364
- });
365
- const onClear = () => {
366
- handleChange('');
367
- };
368
- return (React__namespace["default"].createElement(core.Autocomplete, Object.assign({ ref: ref, rightSection: React__namespace["default"].createElement(core.Image, { src: index$2.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
369
- ? {
370
- rightSection: (React__namespace["default"].createElement(core.ActionIcon, { onClick: onClear, sx: { cursor: 'pointer' } },
371
- React__namespace["default"].createElement(_IconSelect, null))),
372
- }
373
- : {}))));
374
- });
375
- const _Select = React.forwardRef((_a, ref) => {
376
- var { searchValue, onSearchChange } = _a, props = tslib_es6.__rest(_a, ["searchValue", "onSearchChange"]);
377
- const [_searchValue, handleSearchChange] = hooks.useUncontrolled({
378
- defaultValue: '',
379
- value: searchValue,
380
- onChange: onSearchChange,
381
- });
382
- const onClear = () => {
383
- handleSearchChange('');
384
- };
385
- return (React__namespace["default"].createElement(core.Select, Object.assign({ ref: ref, rightSection: React__namespace["default"].createElement(other.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
386
- ? {
387
- rightSection: (React__namespace["default"].createElement(core.ActionIcon, { onClick: onClear, sx: { cursor: 'pointer' } },
388
- React__namespace["default"].createElement(_IconSelect, null))),
389
- }
390
- : {}))));
391
- });
392
- const _IconSelect = () => (React__namespace["default"].createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" },
393
- React__namespace["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" })));
394
-
395
- const getIsMobile = () => {
396
- return (typeof window !== 'undefined' &&
397
- window.innerWidth < utils.Breakpoints.BREAK_POINT_MOBILE);
398
- };
399
- const getIsLargeMobile = () => {
400
- return (typeof window !== 'undefined' &&
401
- window.innerWidth >= utils.Breakpoints.BREAK_POINT_MOBILE &&
402
- window.innerWidth < utils.Breakpoints.BREAK_POINT_PC);
403
- };
404
- const useScreenSize = () => {
405
- const [isMobile, setIsMobile] = React.useState(getIsMobile());
406
- const [isLargeMobile, setIsLargeMobile] = React.useState(getIsLargeMobile());
407
- React.useEffect(() => {
408
- const handleResize = () => {
409
- setIsMobile(getIsMobile());
410
- setIsLargeMobile(getIsLargeMobile());
411
- };
412
- window.addEventListener('resize', handleResize, {
413
- passive: true,
414
- });
415
- return () => {
416
- window.removeEventListener('resize', handleResize);
417
- };
418
- }, []);
419
- return { isMobile, isLargeMobile };
420
- };
421
-
422
- class ErrorBoundary extends React.Component {
423
- constructor() {
424
- super(...arguments);
425
- this.state = {
426
- hasError: false,
427
- };
428
- }
429
- static getDerivedStateFromError() {
430
- // Update state so the next render will show the fallback UI.
431
- return { hasError: true };
432
- }
433
- componentDidCatch(error, errorInfo) {
434
- console.error('Uncaught error:', error, errorInfo);
435
- }
436
- render() {
437
- if (this.state.hasError) {
438
- return this.props.fallback || React__namespace["default"].createElement(React__namespace["default"].Fragment, null);
439
- }
440
- return this.props.children;
441
- }
442
- }
443
-
444
- const CarouselWrapper$1 = (_a) => {
445
- var { slidesToShow = 1, children } = _a, props = tslib_es6.__rest(_a, ["slidesToShow", "children"]);
446
- const length = Array.isArray(children) ? children.length : 1;
447
- if (!length)
448
- return null;
449
- return (React__namespace["default"].createElement(ErrorBoundary, null,
450
- React__namespace["default"].createElement(carousel.Carousel
451
- // get 2 precision number
452
- , Object.assign({
453
- // get 2 precision number
454
- slideSize: String(Math.floor((1 / slidesToShow) * 10000) / 100) + '%', containScroll: "trimSnaps" }, props), children)));
349
+ const ImageWrap = (_a) => {
350
+ var { alt, backupSrc, src, placeholderSrc, style, ref } = _a, props = tslib_es6.__rest(_a, ["alt", "backupSrc", "src", "placeholderSrc", "style", "ref"]);
351
+ const [hasError, setHasError] = React.useState(false);
352
+ return (React__namespace["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
353
+ ? {
354
+ backgroundImage: `url(${placeholderSrc})`,
355
+ }
356
+ : {})), style), "data-has-placeholder": !!placeholderSrc, ref: ref }, props)));
455
357
  };
456
- const Carousel = CarouselWrapper$1;
457
- Carousel.Slide = carousel.Carousel.Slide;
458
-
459
- const StyledCarousel = styled__default["default"](Carousel) `
460
- cursor: grab;
461
- width: 100%;
462
- .mantine-Carousel-control {
463
- background: rgb(255, 255, 255);
464
- opacity: 1;
465
- border: none;
466
- border-radius: 0;
467
- box-shadow: none;
468
- &[data-inactive] {
469
- opacity: 0;
470
- cursor: default;
471
- }
472
- &:first-child {
473
- padding-right: 24px;
474
- background: linear-gradient(
475
- 90deg,
476
- rgba(255, 255, 255, 1) 0%,
477
- rgba(255, 255, 255, 1) 50%,
478
- rgba(255, 255, 255, 0) 100%
479
- );
480
- }
481
- &:last-child {
482
- padding-left: 24px;
483
- background: linear-gradient(
484
- 270deg,
485
- rgba(255, 255, 255, 1) 0%,
486
- rgba(255, 255, 255, 1) 50%,
487
- rgba(255, 255, 255, 0) 100%
488
- );
489
- }
490
- }
491
-
492
- .mantine-Carousel-container {
493
- align-items: center;
358
+ const StyledImage = styled__default["default"].img `
359
+ &[data-has-placeholder='true'] {
360
+ background-position: center;
361
+ background-repeat: no-repeat;
362
+ background-size: cover;
494
363
  }
495
364
  `;
496
365
 
497
366
  var useStyles$4 = core.createStyles((_theme, _params) => {
498
- return {
499
- root: {
500
- color: _params.color ||
501
- (_theme.primaryColor === 'hb'
502
- ? _theme.colors.hb[6]
503
- : _theme.fn.primaryColor()),
504
- },
505
- };
506
- });
507
-
508
- const Anchor = (_a) => {
509
- var { color, styles, className } = _a, rest = tslib_es6.__rest(_a, ["color", "styles", "className"]);
510
- const { classes, cx } = useStyles$4({ color }, { name: 'Anchor', styles });
511
- return React__namespace["default"].createElement(index$3.Text, Object.assign({ as: "a", className: cx(classes.root, className) }, rest));
512
- };
513
-
514
- const BreadcrumbItem = (_a) => {
515
- var { children } = _a, rest = tslib_es6.__rest(_a, ["children"]);
516
- return (React__namespace["default"].createElement(Anchor, Object.assign({ size: "p4", color: 'gray.8' }, rest), children));
517
- };
518
-
519
- const AspectRatio = (props) => {
520
- return (React__namespace["default"].createElement(core.AspectRatio, Object.assign({ sx: {
521
- borderRadius: 4,
522
- overflow: 'hidden',
523
- '> img': {
524
- objectFit: 'contain',
525
- },
526
- } }, props)));
527
- };
528
-
529
- const _Breadcrumbs = (_a) => {
530
- var _b;
531
- var { children, showHomeIcon = true, homeIconHref = '/' } = _a, rest = tslib_es6.__rest(_a, ["children", "showHomeIcon", "homeIconHref"]);
532
- const theme = core.useMantineTheme();
533
- const isMarryBaby = ((_b = theme === null || theme === void 0 ? void 0 : theme.other) === null || _b === void 0 ? void 0 : _b.template) === 'mb';
534
- const [embla, setEmbla] = React.useState(null);
535
- const { isMobile } = useScreenSize();
536
- const [, setShouldAllowClick] = React.useState(true);
537
- const handleScroll = React.useCallback(() => {
538
- setShouldAllowClick(false);
539
- }, []);
540
- const handlePointerUp = React.useCallback(() => {
541
- setTimeout(() => {
542
- setShouldAllowClick(true);
543
- }, 1000);
544
- }, []);
545
- React.useEffect(() => {
546
- if (embla) {
547
- embla.on('scroll', handleScroll);
548
- embla.on('pointerUp', handlePointerUp);
549
- }
550
- return () => {
551
- if (embla) {
552
- embla.off('scroll', handleScroll);
553
- embla.on('pointerUp', handlePointerUp);
554
- }
555
- };
556
- }, [embla, handleScroll, handlePointerUp]);
557
- return (React__namespace["default"].createElement(StyledCarousel, Object.assign({ align: "center", slideGap: "xs", dragFree: true, draggable: isMobile, slideSize: "0", getEmblaApi: setEmbla, controlsOffset: -52, previousControlIcon: React__namespace["default"].createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
558
- React__namespace["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__namespace["default"].createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
559
- React__namespace["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),
560
- showHomeIcon && (React__namespace["default"].createElement(Carousel.Slide, { style: { borderRight: `1px solid ${themeColors.neutral[1]}` } },
561
- React__namespace["default"].createElement(BreadcrumbItem, { href: homeIconHref, target: "_blank", className: "pointer-event-child-none" },
562
- React__namespace["default"].createElement(core.Box, { sx: Object.assign({}, (!isMarryBaby && {
563
- borderRadius: '50%',
564
- display: 'flex',
565
- justifyContent: 'center',
566
- alignItems: 'center',
567
- })), bg: !isMarryBaby && themeColors.neutral[0], p: !isMarryBaby ? 6 : 0 },
568
- React__namespace["default"].createElement(AspectRatio, { ratio: 1, w: 18 }, isMarryBaby ? (React__namespace["default"].createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" },
569
- React__namespace["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" }),
570
- React__namespace["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__namespace["default"].createElement("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none" },
571
- React__namespace["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" })))))))),
572
- React__namespace["default"].createElement(Carousel.Slide, null),
573
- React__namespace["default"].createElement(Carousel.Slide, null,
574
- React__namespace["default"].createElement(core.Breadcrumbs, { styles: {
575
- separator: {
576
- marginInline: 4,
577
- },
578
- }, separator: React__namespace["default"].createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
579
- React__namespace["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))));
580
- };
581
- const Breadcrumbs = _Breadcrumbs;
582
- Breadcrumbs.Item = BreadcrumbItem;
583
-
584
- var useStyles$3 = core.createStyles((_theme, _params) => {
585
367
  var _a, _b, _c, _d, _e, _f;
586
368
  const { other } = _theme;
587
369
  const { template } = other;
@@ -754,7 +536,7 @@ const Button = (props) => {
754
536
  const theme = core.useMantineTheme();
755
537
  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 = tslib_es6.__rest(_c, ["variant", "size", "color", "skipHover", "className", "dataEventCategory", "dataEventAction", "dataEventLabel", "children", "theme"]);
756
538
  const isError = variant === 'error';
757
- const { classes, cx } = useStyles$3({
539
+ const { classes, cx } = useStyles$4({
758
540
  variant,
759
541
  size,
760
542
  color,
@@ -769,857 +551,1075 @@ const Button = (props) => {
769
551
  }, variant: MAPPED_VARIANT[variant], "data-variant": variant, "data-event-category": dataEventCategory, "data-event-action": dataEventAction, "data-event-label": dataEventLabel }, rest), children));
770
552
  };
771
553
 
772
- const StyledTextArea = styled__default["default"](core.Textarea) `
773
- .mantine-Textarea-input {
774
- padding: 12px 16px;
775
- background: #ffffff;
776
- border: 1px solid ${theme.theme.colors.gray200};
777
- border-radius: 4px;
778
- }
779
- `;
554
+ const CambodiaRoundIcon = (props) => (React__namespace["default"].createElement(ImageWrap, Object.assign({ alt: "round cambodia flag", src: index$2.CommonGAssets.getAssetPath('flags/cambodiaRound.png'), style: Object.assign({ borderRadius: '50%' }, props.style) }, props)));
555
+ const CambodiaSquareIcon = (props) => (React__namespace["default"].createElement(ImageWrap, Object.assign({ alt: "square cambodia flag", src: index$2.CommonGAssets.getAssetPath('flags/cambodiaSquare.png') }, props)));
780
556
 
781
- var useStyles$2 = core.createStyles((theme) => {
782
- return {
783
- root: {},
784
- inner: {},
785
- content: {},
786
- header: {
787
- borderBottom: `1px solid ${theme.colors.neutral[1]}`,
788
- marginRight: 0,
789
- marginBottom: 0,
790
- padding: '12px',
791
- },
792
- overlay: {},
793
- title: {
794
- fontSize: 16,
795
- fontWeight: 700,
796
- lineHeight: 1.5,
797
- },
798
- body: {},
799
- close: {
800
- cursor: 'pointer',
801
- width: 'unset',
802
- height: 'unset',
803
- svg: {
804
- width: '24px !important',
805
- height: '24px !important',
806
- },
807
- },
808
- };
809
- });
810
-
811
- const StyledAccordion = styled__default["default"](core.Accordion) `
812
- .mantine-Accordion-label {
813
- padding: 0;
814
- }
815
- .mantine-Accordion-control {
816
- &:hover {
817
- background-color: transparent;
818
- }
819
- }
820
- .mantine-Accordion-item {
821
- .mantine-Accordion-chevron {
822
- > div {
823
- background-repeat: no-repeat;
824
- width: 16px;
825
- height: 16px;
826
- background-position: center;
827
- background-image: url(${(props) => props.closeChevron || index$2.CommonGAssets.getAssetPath('plus-icon.svg')});
828
- }
829
- }
830
- &[data-active='true'] {
831
- .mantine-Accordion-chevron {
832
- > div {
833
- background-image: url(${(props) => props.openChevron || index$2.CommonGAssets.getAssetPath('minus-icon.svg')});
834
- }
835
- }
836
- }
837
- }
838
- .mantine-Accordion-panel {
839
- border-radius: ${theme.theme.borderRadius};
840
- }
841
- .mantine-Accordion-content {
842
- white-space: pre-wrap;
843
- }
844
- `;
557
+ const EnglishRoundIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
558
+ React__namespace["default"].createElement("g", null,
559
+ React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
560
+ React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
561
+ React__namespace["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" }),
562
+ React__namespace["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" }),
563
+ React__namespace["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" }),
564
+ React__namespace["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" }),
565
+ React__namespace["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" }),
566
+ React__namespace["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" }),
567
+ React__namespace["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" }),
568
+ React__namespace["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" }),
569
+ React__namespace["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" }),
570
+ React__namespace["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" }),
571
+ React__namespace["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" }),
572
+ React__namespace["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" }),
573
+ React__namespace["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" }),
574
+ React__namespace["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" }),
575
+ React__namespace["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" }),
576
+ React__namespace["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" }),
577
+ React__namespace["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" }),
578
+ React__namespace["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" }),
579
+ React__namespace["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" }),
580
+ React__namespace["default"].createElement("path", { d: "M13.4785 8.50019L11.7345 7.43417L11.5925 7.34717L11.5 7.49867V8.50019H13.4785Z", fill: "white" }),
581
+ React__namespace["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" }),
582
+ React__namespace["default"].createElement("path", { d: "M7.01758 8.50026H8.50011V7.59424L7.01758 8.50026Z", fill: "white" }),
583
+ React__namespace["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" }),
584
+ React__namespace["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" }),
585
+ React__namespace["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" }),
586
+ React__namespace["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" }),
587
+ React__namespace["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" }))));
588
+ const EnglishSquareIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 26 26", fill: "none" }, props),
589
+ React__namespace["default"].createElement("g", null,
590
+ React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "1", y: "5", width: "24", height: "16" },
591
+ React__namespace["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" })),
592
+ React__namespace["default"].createElement("path", { d: "M1.08301 5.41675H24.9163V20.5834H1.08301V5.41675Z", fill: "#3F51B5" }),
593
+ React__namespace["default"].createElement("path", { d: "M1.08301 7.70041L12.3551 14.5899L14.05 11.8165L3.57901 5.41675H1.08301V7.70041Z", fill: "white" }),
594
+ React__namespace["default"].createElement("path", { d: "M24.9165 5.41675H22.9616L12.4912 11.816L14.1855 14.5899L24.9165 8.03083V5.41675Z", fill: "white" }),
595
+ React__namespace["default"].createElement("path", { d: "M14.1855 10.9802L12.4912 13.7536L23.6658 20.5834H24.9165V17.5387L14.1855 10.9802Z", fill: "white" }),
596
+ React__namespace["default"].createElement("path", { d: "M1.08301 17.8702V20.5834H2.87592L14.05 13.7541L12.3556 10.9802L1.08301 17.8702Z", fill: "white" }),
597
+ React__namespace["default"].createElement("path", { d: "M1.08301 10.8333H24.9163V15.1666H1.08301V10.8333Z", fill: "white" }),
598
+ React__namespace["default"].createElement("path", { d: "M10.833 5.41675H15.1663V20.5834H10.833V5.41675Z", fill: "white" }),
599
+ React__namespace["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" }),
600
+ React__namespace["default"].createElement("path", { d: "M11.917 5.41675H14.0837V20.5834H11.917V5.41675Z", fill: "#E53935" }))));
845
601
 
846
- const _Accordion = (_a) => {
847
- var { children } = _a, rest = tslib_es6.__rest(_a, ["children"]);
848
- return (React__namespace["default"].createElement(StyledAccordion, Object.assign({ chevron: React__namespace["default"].createElement("div", null), disableChevronRotation: true, transitionDuration: 300 }, rest), children));
849
- };
850
- const Accordion = _Accordion;
851
- Accordion.Control = core.Accordion.Control;
852
- Accordion.Item = core.Accordion.Item;
853
- Accordion.Panel = core.Accordion.Panel;
602
+ const IndiaRoundIcon = (props) => (React__namespace["default"].createElement(ImageWrap, Object.assign({ alt: "round india flag", src: index$2.CommonGAssets.getAssetPath('flags/indiaRound.png'), style: Object.assign({ borderRadius: '50%' }, props.style) }, props)));
603
+ const IndiaSquareIcon = (props) => (React__namespace["default"].createElement(ImageWrap, Object.assign({ alt: "square indian flag", src: index$2.CommonGAssets.getAssetPath('flags/indiaSquare.png') }, props)));
854
604
 
855
- const ImageWrap = (_a) => {
856
- var { alt, backupSrc, src, placeholderSrc, style, ref } = _a, props = tslib_es6.__rest(_a, ["alt", "backupSrc", "src", "placeholderSrc", "style", "ref"]);
857
- const [hasError, setHasError] = React.useState(false);
858
- return (React__namespace["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
859
- ? {
860
- backgroundImage: `url(${placeholderSrc})`,
861
- }
862
- : {})), style), "data-has-placeholder": !!placeholderSrc, ref: ref }, props)));
605
+ const IndonesiaRoundIcon = (_a) => {
606
+ var rest = tslib_es6.__rest(_a, []);
607
+ const maskId = useUniqueId.useUniqueId();
608
+ return (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none" }, rest),
609
+ React__namespace["default"].createElement("mask", { id: maskId, style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
610
+ React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
611
+ React__namespace["default"].createElement("g", { mask: `url(#${maskId})` },
612
+ React__namespace["default"].createElement("rect", { width: "20", height: "10", fill: "#CE1126" }),
613
+ React__namespace["default"].createElement("rect", { y: "10", width: "20", height: "10", fill: "white" }))));
863
614
  };
864
- const StyledImage = styled__default["default"].img `
865
- &[data-has-placeholder='true'] {
866
- background-position: center;
867
- background-repeat: no-repeat;
868
- background-size: cover;
869
- }
870
- `;
871
-
872
- const DEFAULT_AVATAR = index$2.CommonGAssets.getAssetPath('avatar.jpg');
873
- const Avatar = (_a) => {
874
- var { withIndicator = false, indicatorConfig = null, size = 56, children, styles, placeholderText } = _a, // usually first letter of name
875
- avatarProps = tslib_es6.__rest(_a, ["withIndicator", "indicatorConfig", "size", "children", "styles", "placeholderText"]);
876
- const generateAvatar = () => {
877
- return (React__namespace["default"].createElement(core.Avatar, Object.assign({ size: size, radius: "xl" }, avatarProps, { imageProps: Object.assign({ loading: 'lazy' }, avatarProps.imageProps), styles: {
878
- placeholder: {
879
- backgroundColor: avatarProps.color,
880
- color: 'white',
881
- },
882
- } }), children ? (children) : placeholderText ? (placeholderText) : (React__namespace["default"].createElement(ImageWrap, { src: DEFAULT_AVATAR, width: size, alt: avatarProps.alt || 'avatar' }))));
883
- };
884
- if (withIndicator)
885
- return (React__namespace["default"].createElement(core.Indicator, Object.assign({ inline: true, position: "bottom-end", offset: 9 }, indicatorConfig, { styles: Object.assign({ indicator: {
886
- backgroundColor: React__namespace["default"].isValidElement(indicatorConfig.label) && 'transparent',
887
- zIndex: 1,
888
- } }, styles) }), generateAvatar()));
889
- return generateAvatar();
615
+ const IndonesiaSquareIcon = (_a) => {
616
+ var rest = tslib_es6.__rest(_a, []);
617
+ const clipPathId = useUniqueId.useUniqueId();
618
+ return (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, rest),
619
+ React__namespace["default"].createElement("g", { clipPath: `url(#${clipPathId})` },
620
+ React__namespace["default"].createElement("rect", { y: "0.0166016", width: "24", height: "8", fill: "#CE1126" }),
621
+ React__namespace["default"].createElement("rect", { y: "8.0166", width: "24", height: "8", fill: "white" })),
622
+ React__namespace["default"].createElement("defs", null,
623
+ React__namespace["default"].createElement("clipPath", { id: clipPathId },
624
+ React__namespace["default"].createElement("rect", { width: "24", height: "16", rx: "2", fill: "white" })))));
890
625
  };
891
626
 
892
- const FileInput = (props) => {
893
- return React__namespace["default"].createElement(core.FileInput, Object.assign({ size: "md" }, props));
894
- };
627
+ const MalaysiaRoundIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
628
+ React__namespace["default"].createElement("g", null,
629
+ React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
630
+ React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
631
+ React__namespace["default"].createElement("rect", { y: "1", width: "20", height: "20", fill: "#CC0001" }),
632
+ React__namespace["default"].createElement("rect", { y: "16.106", width: "20", height: "1.02041", fill: "white" }),
633
+ React__namespace["default"].createElement("rect", { y: "16", width: "20", height: "1.02041", fill: "white" }),
634
+ React__namespace["default"].createElement("rect", { y: "18", width: "20", height: "1.02041", fill: "white" }),
635
+ React__namespace["default"].createElement("rect", { y: "14.0652", width: "20", height: "1.02041", fill: "white" }),
636
+ React__namespace["default"].createElement("rect", { y: "12.0242", width: "20", height: "1.02041", fill: "white" }),
637
+ React__namespace["default"].createElement("rect", { y: "9.9834", width: "20", height: "1.02041", fill: "white" }),
638
+ React__namespace["default"].createElement("rect", { y: "7.94263", width: "20", height: "1.02041", fill: "white" }),
639
+ React__namespace["default"].createElement("rect", { y: "5.90186", width: "20", height: "1.02041", fill: "white" }),
640
+ React__namespace["default"].createElement("rect", { y: "3.86084", width: "20", height: "1.02041", fill: "white" }),
641
+ React__namespace["default"].createElement("rect", { y: "2", width: "20", height: "1.02041", fill: "white" }),
642
+ React__namespace["default"].createElement("rect", { width: "20", height: "1.02041", fill: "white" }),
643
+ React__namespace["default"].createElement("rect", { y: "-1", width: "10", height: "12", fill: "#010066" }),
644
+ React__namespace["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" }),
645
+ React__namespace["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" }))));
646
+ const MalaysiaSquareIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
647
+ React__namespace["default"].createElement("rect", { width: "24", height: "16", rx: "2", fill: "#CC0001" }),
648
+ React__namespace["default"].createElement("rect", { y: "12.2712", width: "24", height: "0.777454", fill: "white" }),
649
+ React__namespace["default"].createElement("rect", { y: "12.1904", width: "24", height: "0.777454", fill: "white" }),
650
+ React__namespace["default"].createElement("rect", { y: "13.7144", width: "24", height: "0.777454", fill: "white" }),
651
+ React__namespace["default"].createElement("rect", { y: "10.7161", width: "24", height: "0.777454", fill: "white" }),
652
+ React__namespace["default"].createElement("rect", { y: "9.16138", width: "24", height: "0.777454", fill: "white" }),
653
+ React__namespace["default"].createElement("rect", { y: "7.60645", width: "24", height: "0.777454", fill: "white" }),
654
+ React__namespace["default"].createElement("rect", { y: "6.05127", width: "24", height: "0.777454", fill: "white" }),
655
+ React__namespace["default"].createElement("rect", { y: "4.49658", width: "24", height: "0.777454", fill: "white" }),
656
+ React__namespace["default"].createElement("rect", { y: "2.94141", width: "24", height: "0.777454", fill: "white" }),
657
+ React__namespace["default"].createElement("rect", { y: "1.52393", width: "24", height: "0.777454", fill: "white" }),
658
+ React__namespace["default"].createElement("rect", { width: "24", height: "0.777454", fill: "white" }),
659
+ React__namespace["default"].createElement("path", { d: "M0 2C0 0.895431 0.895431 0 2 0H12V8.38095H0V2Z", fill: "#010066" }),
660
+ React__namespace["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" }),
661
+ React__namespace["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" })));
895
662
 
896
- const DEBOUNCED_TIME = 300;
897
- const emotionCache = core.createEmotionCache({
898
- key: 'mantine',
899
- prepend: false,
900
- });
663
+ const MyanmarRoundIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
664
+ React__namespace["default"].createElement("g", null,
665
+ React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
666
+ React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
667
+ React__namespace["default"].createElement("rect", { x: "-4", y: "-1", width: "28", height: "11", fill: "#FECB00" }),
668
+ React__namespace["default"].createElement("rect", { x: "-4", y: "10", width: "28", height: "10", fill: "#EA2839" }),
669
+ React__namespace["default"].createElement("rect", { x: "-4", y: "6.7041", width: "28", height: "6.47773", fill: "#34B233" }),
670
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.56543 10.3272L10.1796 5.15527L11.7938 10.3272H8.56543Z", fill: "white" }),
671
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.5292 11.2775L7.18336 14.5129L8.91745 9.37991L11.5292 11.2775Z", fill: "white" }),
672
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.75181 11.8648L5.33182 8.73143L10.7494 8.79447L9.75181 11.8648Z", fill: "white" }),
673
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.6105 8.78962L15.0281 8.72658L10.6081 11.86L9.6105 8.78962Z", fill: "white" }),
674
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.4424 9.37686L13.1765 14.5098L8.83064 11.2744L11.4424 9.37686Z", fill: "white" }))));
675
+ const MyanmarSquareIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
676
+ React__namespace["default"].createElement("rect", { width: "24", height: "16", rx: "2", fill: "#FECB00" }),
677
+ React__namespace["default"].createElement("rect", { y: "8.3811", width: "24", height: "7.61905", rx: "2", fill: "#EA2839" }),
678
+ React__namespace["default"].createElement("rect", { y: "5.86987", width: "24", height: "4.93542", fill: "#34B233" }),
679
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.7705 8.63046L12.1541 4.68994L13.5377 8.63046H10.7705Z", fill: "white" }),
680
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.3108 9.35502L9.58574 11.8201L11.0721 7.90925L13.3108 9.35502Z", fill: "white" }),
681
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.7874 9.80216L7.99884 7.41482L12.6425 7.46285L11.7874 9.80216Z", fill: "white" }),
682
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.6667 7.4589L16.3104 7.41087L12.5218 9.79821L11.6667 7.4589Z", fill: "white" }),
683
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.2361 7.90629L14.7225 11.8171L10.9974 9.35207L13.2361 7.90629Z", fill: "white" })));
901
684
 
902
- const NumberInput = (_a) => {
903
- var { value: _value, onChange: _onChange } = _a, props = tslib_es6.__rest(_a, ["value", "onChange"]);
904
- const [value, setValue] = React.useState(_value);
905
- const [debounced] = hooks.useDebouncedValue(value, DEBOUNCED_TIME);
906
- React.useEffect(() => {
907
- _onChange === null || _onChange === void 0 ? void 0 : _onChange(debounced);
908
- }, [debounced]);
909
- React.useEffect(() => {
910
- setValue(_value);
911
- }, [_value]);
912
- return (React__namespace["default"].createElement(core.NumberInput, Object.assign({ size: "md", stepHoldDelay: 500, stepHoldInterval: (t) => Math.max(1000 / Math.pow(t, 2), 25), onChange: setValue, hideControls: true, min: 0, formatter: (value) => {
913
- if (Number(value) === 0)
914
- return value;
915
- return value || '';
916
- }, removeTrailingZeros: true, value: value }, props)));
917
- };
685
+ const PhilippinesRoundIcon = (props) => (React__namespace["default"].createElement(ImageWrap, Object.assign({ alt: "round philippines flag", src: index$2.CommonGAssets.getAssetPath('flags/philippineRound.png'), style: Object.assign({ borderRadius: '50%' }, props.style) }, props)));
686
+ const PhilippinesSquareIcon = (props) => (React__namespace["default"].createElement(ImageWrap, Object.assign({ alt: "square philippines flag", src: index$2.CommonGAssets.getAssetPath('flags/philippineSquare.png') }, props)));
918
687
 
919
- const EyeVisible = index$2.CommonGAssets.getAssetPath('EyeVisible.svg');
920
- const EyeHidden = index$2.CommonGAssets.getAssetPath('EyeHidden.svg');
921
- const PasswordInput = React.forwardRef((props, ref) => {
922
- const { size = 'md', visibilityToggleIcon: visibilityToggleIconProps } = props, restProps = tslib_es6.__rest(props, ["size", "visibilityToggleIcon"]);
923
- const visibilityToggleIcon = visibilityToggleIconProps ||
924
- (({ reveal, size }) => reveal ? (React__namespace["default"].createElement("img", { src: EyeVisible, width: size, loading: "lazy" })) : (React__namespace["default"].createElement("img", { src: EyeHidden, width: size, loading: "lazy" })));
925
- return (React__namespace["default"].createElement(core.PasswordInput, Object.assign({ ref: ref, size: size, visibilityToggleIcon: visibilityToggleIcon }, restProps, { className: `input-control ${(restProps === null || restProps === void 0 ? void 0 : restProps.className) || ''}` })));
926
- });
688
+ const TaiwanRoundIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
689
+ React__namespace["default"].createElement("g", null,
690
+ React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
691
+ React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
692
+ React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#D8D8D8" }),
693
+ React__namespace["default"].createElement("g", null,
694
+ React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
695
+ React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "white" })),
696
+ React__namespace["default"].createElement("rect", { width: "30", height: "20", fill: "#ED1E24" }),
697
+ React__namespace["default"].createElement("rect", { width: "15", height: "10", fill: "#2B2F84" }),
698
+ React__namespace["default"].createElement("circle", { cx: "7.49791", cy: "4.99913", r: "1.869", fill: "white" }),
699
+ React__namespace["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" }),
700
+ React__namespace["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" }),
701
+ React__namespace["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" }),
702
+ React__namespace["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" }),
703
+ React__namespace["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" }),
704
+ React__namespace["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" }),
705
+ React__namespace["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" }),
706
+ React__namespace["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" }),
707
+ React__namespace["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" }),
708
+ React__namespace["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" }),
709
+ React__namespace["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" }),
710
+ React__namespace["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" })))));
711
+ const TaiwanSquareIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
712
+ React__namespace["default"].createElement("rect", { width: "24", height: "16", rx: "2", fill: "#ED1E24" }),
713
+ React__namespace["default"].createElement("path", { d: "M0 2C0 0.89543 0.895431 0 2 0H15V10H0V2Z", fill: "#2B2F84" }),
714
+ React__namespace["default"].createElement("circle", { cx: "7.49791", cy: "4.99913", r: "1.869", fill: "white" }),
715
+ React__namespace["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" }),
716
+ React__namespace["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" }),
717
+ React__namespace["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" }),
718
+ React__namespace["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" }),
719
+ React__namespace["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" }),
720
+ React__namespace["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" }),
721
+ React__namespace["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" }),
722
+ React__namespace["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" }),
723
+ React__namespace["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" }),
724
+ React__namespace["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" }),
725
+ React__namespace["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" }),
726
+ React__namespace["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" })));
927
727
 
928
- const InputWrapper = React.forwardRef((_a, ref) => {
929
- var { value: _value, onChange: _onChange, onChangeRaw, maxLength } = _a, props = tslib_es6.__rest(_a, ["value", "onChange", "onChangeRaw", "maxLength"]);
930
- const [value, setValue] = React.useState(_value || '');
931
- const [debounced] = hooks.useDebouncedValue(value, DEBOUNCED_TIME);
932
- React.useEffect(() => {
933
- _onChange === null || _onChange === void 0 ? void 0 : _onChange(debounced);
934
- }, [debounced]);
935
- React.useEffect(() => {
936
- setValue(_value);
937
- }, [_value]);
938
- return (React__namespace["default"].createElement(core.TextInput, Object.assign({ ref: ref, size: "md", onChange: (event) => {
939
- if (typeof maxLength === 'number' &&
940
- event.currentTarget.value.length > maxLength) {
941
- return;
942
- }
943
- onChangeRaw === null || onChangeRaw === void 0 ? void 0 : onChangeRaw(event);
944
- setValue(event.currentTarget.value);
945
- }, value: value }, props, { maxLength: maxLength, className: `input-control ${(props === null || props === void 0 ? void 0 : props.className) || ''}` })));
946
- });
947
- const Input = InputWrapper;
948
- Input.File = FileInput;
949
- Input.Password = PasswordInput;
950
- Input.Number = NumberInput;
951
- Input.Wrapper = core.Input.Wrapper;
728
+ const ThailandRoundIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
729
+ React__namespace["default"].createElement("g", null,
730
+ React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
731
+ React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
732
+ React__namespace["default"].createElement("rect", { x: "-4", y: "-0.0166016", width: "28", height: "20", fill: "#ED1C24" }),
733
+ React__namespace["default"].createElement("rect", { x: "-4", y: "3.31665", width: "28", height: "13.3333", fill: "white" }),
734
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M-4 6.65015H24V13.3168H-4V6.65015Z", fill: "#241D4F" }))));
735
+ const ThailandSquareIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 24 17", fill: "none" }, props),
736
+ React__namespace["default"].createElement("rect", { y: "0.983398", width: "24", height: "16", rx: "2", fill: "#ED1C24" }),
737
+ React__namespace["default"].createElement("rect", { y: "3.65039", width: "24", height: "10.6667", fill: "white" }),
738
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 6.31689H24V11.6502H0V6.31689Z", fill: "#241D4F" })));
952
739
 
953
- const StyledSlide = carousel.Carousel.Slide;
740
+ const VietnamRoundIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
741
+ React__namespace["default"].createElement("g", null,
742
+ React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
743
+ React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
744
+ React__namespace["default"].createElement("rect", { x: "-4", y: "-0.0166016", width: "28", height: "20", fill: "#DA251D" }),
745
+ React__namespace["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" }))));
746
+ const VietnamSquareIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
747
+ React__namespace["default"].createElement("g", null,
748
+ React__namespace["default"].createElement("clipPath", null,
749
+ React__namespace["default"].createElement("rect", { width: "24", height: "16", fill: "white" })),
750
+ React__namespace["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" }),
751
+ React__namespace["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" }))));
954
752
 
955
- const SlideContext = React.createContext({});
956
- const CustomSlide = (_a) => {
957
- var { children, onClick, innerSlideProps } = _a, rest = tslib_es6.__rest(_a, ["children", "onClick", "innerSlideProps"]);
958
- const { slider, selectSlideWhenClick } = React.useContext(SlideContext);
959
- const ref = React.useRef();
960
- const key = React.useRef('');
961
- const [index, setIndex] = React.useState(0);
962
- React.useEffect(() => {
963
- key.current = String(Math.round(Math.random() * 10000));
964
- }, []);
965
- React.useEffect(() => {
966
- const slidesNode = (slider === null || slider === void 0 ? void 0 : slider.slideNodes()) || [];
967
- setIndex(slidesNode.findIndex((obj) => obj.dataset.key === key.current));
968
- }, [slider]);
969
- const sliderProps = {
970
- ref,
971
- 'data-key': key.current,
972
- 'data-index': index,
753
+ var styles$2 = {"flag":"pfaLGRK"};
754
+
755
+ const Flag = ({ country, language, rounded, height, width, isTesting, className, }) => {
756
+ let flag;
757
+ let flagRounded;
758
+ switch (language) {
759
+ case 'en':
760
+ flag = React__namespace["default"].createElement(EnglishSquareIcon, null);
761
+ flagRounded = React__namespace["default"].createElement(EnglishRoundIcon, null);
762
+ break;
763
+ case 'vi':
764
+ flag = React__namespace["default"].createElement(VietnamSquareIcon, null);
765
+ flagRounded = React__namespace["default"].createElement(VietnamRoundIcon, null);
766
+ break;
767
+ case 'id':
768
+ flag = React__namespace["default"].createElement(IndonesiaSquareIcon, { isTesting: isTesting });
769
+ flagRounded = React__namespace["default"].createElement(IndonesiaRoundIcon, { isTesting: isTesting });
770
+ break;
771
+ case 'th':
772
+ flag = React__namespace["default"].createElement(ThailandSquareIcon, null);
773
+ flagRounded = React__namespace["default"].createElement(ThailandRoundIcon, null);
774
+ break;
775
+ case 'km':
776
+ flag = React__namespace["default"].createElement(CambodiaSquareIcon, null);
777
+ flagRounded = React__namespace["default"].createElement(CambodiaRoundIcon, null);
778
+ break;
779
+ case 'ms':
780
+ flag = React__namespace["default"].createElement(MalaysiaSquareIcon, null);
781
+ flagRounded = React__namespace["default"].createElement(MalaysiaRoundIcon, null);
782
+ break;
783
+ case 'my':
784
+ flag = React__namespace["default"].createElement(MyanmarSquareIcon, null);
785
+ flagRounded = React__namespace["default"].createElement(MyanmarRoundIcon, null);
786
+ break;
787
+ case 'tl':
788
+ flag = React__namespace["default"].createElement(PhilippinesSquareIcon, null);
789
+ flagRounded = React__namespace["default"].createElement(PhilippinesRoundIcon, null);
790
+ break;
791
+ case 'hi':
792
+ flag = React__namespace["default"].createElement(IndiaSquareIcon, null);
793
+ flagRounded = React__namespace["default"].createElement(IndiaRoundIcon, null);
794
+ break;
795
+ case 'zh':
796
+ flag = React__namespace["default"].createElement(TaiwanSquareIcon, null);
797
+ flagRounded = React__namespace["default"].createElement(TaiwanRoundIcon, null);
798
+ break;
799
+ }
800
+ if (!flag && !flagRounded) {
801
+ switch (country) {
802
+ case 'VN':
803
+ flag = React__namespace["default"].createElement(VietnamSquareIcon, null);
804
+ flagRounded = React__namespace["default"].createElement(VietnamRoundIcon, null);
805
+ break;
806
+ case 'ID':
807
+ flag = React__namespace["default"].createElement(IndonesiaSquareIcon, { isTesting: isTesting });
808
+ flagRounded = React__namespace["default"].createElement(IndonesiaRoundIcon, { isTesting: isTesting });
809
+ break;
810
+ case 'TH':
811
+ flag = React__namespace["default"].createElement(ThailandSquareIcon, null);
812
+ flagRounded = React__namespace["default"].createElement(ThailandRoundIcon, null);
813
+ break;
814
+ case 'KH':
815
+ flag = React__namespace["default"].createElement(CambodiaSquareIcon, null);
816
+ flagRounded = React__namespace["default"].createElement(CambodiaRoundIcon, null);
817
+ break;
818
+ case 'MY':
819
+ flag = React__namespace["default"].createElement(MalaysiaSquareIcon, null);
820
+ flagRounded = React__namespace["default"].createElement(MalaysiaRoundIcon, null);
821
+ break;
822
+ case 'MM':
823
+ flag = React__namespace["default"].createElement(MyanmarSquareIcon, null);
824
+ flagRounded = React__namespace["default"].createElement(MyanmarRoundIcon, null);
825
+ break;
826
+ case 'PH':
827
+ flag = React__namespace["default"].createElement(PhilippinesSquareIcon, null);
828
+ flagRounded = React__namespace["default"].createElement(PhilippinesRoundIcon, null);
829
+ break;
830
+ case 'IN':
831
+ flag = React__namespace["default"].createElement(IndiaSquareIcon, null);
832
+ flagRounded = React__namespace["default"].createElement(IndiaRoundIcon, null);
833
+ break;
834
+ case 'TW':
835
+ flag = React__namespace["default"].createElement(TaiwanSquareIcon, null);
836
+ flagRounded = React__namespace["default"].createElement(TaiwanRoundIcon, null);
837
+ break;
838
+ }
839
+ }
840
+ return (React__namespace["default"].createElement("div", { className: `${styles$2.flag} ${className || ''}`, style: {
841
+ '--width': width || 20,
842
+ '--height': height || 20,
843
+ } }, rounded ? flagRounded : flag));
844
+ };
845
+
846
+ const Select = React.forwardRef((_a, ref) => {
847
+ var { keepSearch = false } = _a, props = tslib_es6.__rest(_a, ["keepSearch"]);
848
+ if (keepSearch) {
849
+ return (React__namespace["default"].createElement(_AutoComplete, Object.assign({}, props, { ref: ref })));
850
+ }
851
+ else {
852
+ return React__namespace["default"].createElement(_Select, Object.assign({}, props, { ref: ref }));
853
+ }
854
+ });
855
+ const _AutoComplete = React.forwardRef((_a, ref) => {
856
+ var { value, defaultValue, onChange, clearable } = _a, props = tslib_es6.__rest(_a, ["value", "defaultValue", "onChange", "clearable"]);
857
+ const [_value, handleChange] = hooks.useUncontrolled({
858
+ value,
859
+ defaultValue,
860
+ onChange,
861
+ });
862
+ const onClear = () => {
863
+ handleChange('');
973
864
  };
974
- return (React__namespace["default"].createElement(StyledSlide, Object.assign({}, sliderProps, rest),
975
- React__namespace["default"].createElement("div", Object.assign({ style: {
976
- height: '100%',
977
- }, onClick: () => {
978
- selectSlideWhenClick && (slider === null || slider === void 0 ? void 0 : slider.scrollTo(index));
979
- onClick === null || onClick === void 0 ? void 0 : onClick(index);
980
- } }, innerSlideProps), children)));
981
- };
982
- const findIndexFromLeftSide = (position, slideLength) => {
983
- return position >= slideLength ? position - slideLength : position;
984
- };
985
- const findIndexFromRight = (position, slideLength) => {
986
- return position < 0 ? slideLength + position : position;
987
- };
988
- const CarouselWrapper = (_a) => {
989
- var { children, blurFromCenter, blurFromIndex, blurLength = 3, maxBlurOpacity = 0.5, onSlideChange, selectSlideWhenClick } = _a, props = tslib_es6.__rest(_a, ["children", "blurFromCenter", "blurFromIndex", "blurLength", "maxBlurOpacity", "onSlideChange", "selectSlideWhenClick"]);
990
- const { width } = hooks.useViewportSize();
991
- const [ref] = hooks.useResizeObserver();
992
- const slider = React.useRef(null);
993
- const [centerSlide, setCenterSlide] = React.useState(0);
994
- const handleStyle = () => {
995
- var _a, _b, _c, _d, _e;
996
- const slidesNode = ((_a = slider === null || slider === void 0 ? void 0 : slider.current) === null || _a === void 0 ? void 0 : _a.slideNodes()) || [];
997
- if (((_b = slider === null || slider === void 0 ? void 0 : slider.current) === null || _b === void 0 ? void 0 : _b.slideNodes().length) <=
998
- ((_c = slider === null || slider === void 0 ? void 0 : slider.current) === null || _c === void 0 ? void 0 : _c.slidesInView().length)) {
999
- slidesNode.map((item) => {
1000
- item.classList.remove('center-slide');
1001
- item.style.opacity = '1';
1002
- });
1003
- return false;
865
+ return (React__namespace["default"].createElement(core.Autocomplete, Object.assign({ ref: ref, rightSection: React__namespace["default"].createElement(core.Image, { src: index$2.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
866
+ ? {
867
+ rightSection: (React__namespace["default"].createElement(core.ActionIcon, { onClick: onClear, sx: { cursor: 'pointer' } },
868
+ React__namespace["default"].createElement(_IconSelect, null))),
1004
869
  }
1005
- const centerSlideIndex = (_d = slider === null || slider === void 0 ? void 0 : slider.current) === null || _d === void 0 ? void 0 : _d.selectedScrollSnap();
1006
- setCenterSlide(centerSlideIndex);
1007
- const slidesNodeLength = slidesNode.length;
1008
- const slidesInView = (_e = slider === null || slider === void 0 ? void 0 : slider.current) === null || _e === void 0 ? void 0 : _e.slidesInView();
1009
- const slidesInViewLength = slidesInView.length;
1010
- const halfSideLength = Math.floor(slidesInViewLength / 2);
1011
- const halfSideBlurLength = blurFromCenter
1012
- ? blurFromIndex + blurLength - 1
1013
- : halfSideLength;
1014
- const lastRightBlurIndexTmp = centerSlideIndex + halfSideBlurLength;
1015
- const lastRightBlurIndex = lastRightBlurIndexTmp === slidesNodeLength
1016
- ? 0
1017
- : lastRightBlurIndexTmp > slidesNodeLength
1018
- ? lastRightBlurIndexTmp - slidesNodeLength
1019
- : lastRightBlurIndexTmp;
1020
- const lastLeftBlurIndexTmp = centerSlideIndex - halfSideBlurLength;
1021
- const lastLeftBlurIndex = lastLeftBlurIndexTmp < 0
1022
- ? slidesNodeLength + lastLeftBlurIndexTmp
1023
- : lastLeftBlurIndexTmp > 0
1024
- ? centerSlideIndex - halfSideBlurLength
1025
- : 0;
1026
- const visibleSlide = [
1027
- ...new Set(Array(halfSideBlurLength * 2 + 1)
1028
- .fill('')
1029
- .map((i, idx) => {
1030
- const findFrom = lastLeftBlurIndex;
1031
- return findIndexFromLeftSide(findFrom + idx, slidesNodeLength);
1032
- })),
1033
- ];
1034
- slidesNode.map((item, index) => {
1035
- if (index === centerSlideIndex) {
1036
- item.classList.add('center-slide');
1037
- }
1038
- else {
1039
- item.classList.remove('center-slide');
1040
- }
1041
- if (visibleSlide.indexOf(index) !== -1) {
1042
- const opacityGap = maxBlurOpacity / blurLength;
1043
- for (let i = 0; i < blurLength; i++) {
1044
- if (index ===
1045
- findIndexFromLeftSide(lastLeftBlurIndex + i, slidesNodeLength) ||
1046
- index ===
1047
- findIndexFromRight(lastRightBlurIndex - i, slidesNodeLength)) {
1048
- item.style.opacity = String((i + 1) * opacityGap);
1049
- break;
1050
- }
1051
- item.style.opacity = '1';
1052
- }
1053
- }
1054
- else {
1055
- item.style.opacity = '0';
1056
- }
1057
- });
1058
- };
1059
- const sliderProps = {
1060
- getEmblaApi: (embla) => {
1061
- slider.current = embla;
1062
- },
1063
- onSlideChange: (index) => {
1064
- handleStyle();
1065
- onSlideChange === null || onSlideChange === void 0 ? void 0 : onSlideChange(index);
1066
- },
870
+ : {}))));
871
+ });
872
+ const _Select = React.forwardRef((_a, ref) => {
873
+ var { searchValue, onSearchChange } = _a, props = tslib_es6.__rest(_a, ["searchValue", "onSearchChange"]);
874
+ const [_searchValue, handleSearchChange] = hooks.useUncontrolled({
875
+ defaultValue: '',
876
+ value: searchValue,
877
+ onChange: onSearchChange,
878
+ });
879
+ const onClear = () => {
880
+ handleSearchChange('');
1067
881
  };
882
+ return (React__namespace["default"].createElement(core.Select, Object.assign({ ref: ref, rightSection: React__namespace["default"].createElement(other.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
883
+ ? {
884
+ rightSection: (React__namespace["default"].createElement(core.ActionIcon, { onClick: onClear, sx: { cursor: 'pointer' } },
885
+ React__namespace["default"].createElement(_IconSelect, null))),
886
+ }
887
+ : {}))));
888
+ });
889
+ const _IconSelect = () => (React__namespace["default"].createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" },
890
+ React__namespace["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" })));
891
+
892
+ const getIsMobile = () => {
893
+ return (typeof window !== 'undefined' &&
894
+ window.innerWidth < utils.Breakpoints.BREAK_POINT_MOBILE);
895
+ };
896
+ const getIsLargeMobile = () => {
897
+ return (typeof window !== 'undefined' &&
898
+ window.innerWidth >= utils.Breakpoints.BREAK_POINT_MOBILE &&
899
+ window.innerWidth < utils.Breakpoints.BREAK_POINT_PC);
900
+ };
901
+ const useScreenSize = () => {
902
+ const [isMobile, setIsMobile] = React.useState(getIsMobile());
903
+ const [isLargeMobile, setIsLargeMobile] = React.useState(getIsLargeMobile());
1068
904
  React.useEffect(() => {
1069
- (slider === null || slider === void 0 ? void 0 : slider.current) && handleStyle();
1070
- }, [width]);
1071
- const useStyles = core.createStyles(() => {
1072
- var _a, _b;
1073
- return ({
1074
- control: Object.assign({}, (((_a = slider === null || slider === void 0 ? void 0 : slider.current) === null || _a === void 0 ? void 0 : _a.slideNodes().length) <=
1075
- ((_b = slider === null || slider === void 0 ? void 0 : slider.current) === null || _b === void 0 ? void 0 : _b.slidesInView().length) && {
1076
- display: 'none',
1077
- })),
905
+ const handleResize = () => {
906
+ setIsMobile(getIsMobile());
907
+ setIsLargeMobile(getIsLargeMobile());
908
+ };
909
+ window.addEventListener('resize', handleResize, {
910
+ passive: true,
1078
911
  });
1079
- });
1080
- const { classes } = useStyles();
1081
- return (React__namespace["default"].createElement(SlideContext.Provider, { value: { slider: slider === null || slider === void 0 ? void 0 : slider.current, centerSlide, selectSlideWhenClick } },
1082
- React__namespace["default"].createElement(carousel.Carousel, Object.assign({ classNames: {
1083
- control: classes.control,
1084
- }, ref: ref, slideSize: 'auto', containScroll: "trimSnaps" }, sliderProps, props, { loop: true }), typeof children === 'function' ? children(centerSlide) : children)));
1085
- };
1086
- const CentralCarousel = CarouselWrapper;
1087
- CentralCarousel.Slide = CustomSlide;
912
+ return () => {
913
+ window.removeEventListener('resize', handleResize);
914
+ };
915
+ }, []);
916
+ return { isMobile, isLargeMobile };
917
+ };
1088
918
 
1089
- const CheckboxWrapper = (_a) => {
1090
- var { styles, color = 'blue' } = _a, props = tslib_es6.__rest(_a, ["styles", "color"]);
1091
- const theme = core.useMantineTheme();
1092
- const hexColor = React.useMemo(() => {
1093
- var _a, _b;
1094
- return ((color === null || color === void 0 ? void 0 : color.includes('.'))
1095
- ? (_a = theme.colors[color.split('.')[0]]) === null || _a === void 0 ? void 0 : _a[color.split('.')[1]]
1096
- : (_b = theme.colors[color]) === null || _b === void 0 ? void 0 : _b[theme.primaryShade || 6]) ||
1097
- theme.colors.blue[6];
1098
- }, [color]);
1099
- return (React__namespace["default"].createElement(core.Checkbox, Object.assign({ styles: Object.assign({ input: {
1100
- '&:hover': {
1101
- border: `1px solid ${hexColor}`,
1102
- },
1103
- } }, styles), color: color }, props)));
1104
- };
1105
- const Checkbox = CheckboxWrapper;
1106
- Checkbox.Group = core.Checkbox.Group;
919
+ class ErrorBoundary extends React.Component {
920
+ constructor() {
921
+ super(...arguments);
922
+ this.state = {
923
+ hasError: false,
924
+ };
925
+ }
926
+ static getDerivedStateFromError() {
927
+ // Update state so the next render will show the fallback UI.
928
+ return { hasError: true };
929
+ }
930
+ componentDidCatch(error, errorInfo) {
931
+ console.error('Uncaught error:', error, errorInfo);
932
+ }
933
+ render() {
934
+ if (this.state.hasError) {
935
+ return this.props.fallback || React__namespace["default"].createElement(React__namespace["default"].Fragment, null);
936
+ }
937
+ return this.props.children;
938
+ }
939
+ }
1107
940
 
1108
- const StyledSlider = styled__default["default"](core.Slider) `
1109
- ${(props) => {
1110
- const color = props.color || theme.theme.colors.primaryBase;
1111
- return `
1112
- .mantine-Slider-bar {
1113
- background-color: ${color};
1114
- }
1115
- .mantine-Slider-thumb {
1116
- border-color: ${color};
1117
- color: ${color};
1118
- }
1119
- `;
1120
- }}
1121
- [data-theme='marryBaby'] & {
1122
- ${(props) => {
1123
- const color = props.color || theme.theme.mbColors.pink;
1124
- return `
1125
- .mantine-Slider-bar {
1126
- background-color: ${color};
1127
- }
1128
- .mantine-Slider-thumb {
1129
- border-color: ${color};
1130
- color: ${color};
1131
- }
1132
- `;
1133
- }}
1134
- }
941
+ const CarouselWrapper$1 = (_a) => {
942
+ var { slidesToShow = 1, children } = _a, props = tslib_es6.__rest(_a, ["slidesToShow", "children"]);
943
+ const length = Array.isArray(children) ? children.length : 1;
944
+ if (!length)
945
+ return null;
946
+ return (React__namespace["default"].createElement(ErrorBoundary, null,
947
+ React__namespace["default"].createElement(carousel.Carousel
948
+ // get 2 precision number
949
+ , Object.assign({
950
+ // get 2 precision number
951
+ slideSize: String(Math.floor((1 / slidesToShow) * 10000) / 100) + '%', containScroll: "trimSnaps" }, props), children)));
952
+ };
953
+ const Carousel = CarouselWrapper$1;
954
+ Carousel.Slide = carousel.Carousel.Slide;
1135
955
 
1136
- .mantine-Slider-label {
1137
- background-color: transparent;
1138
- color: #000;
1139
- font-size: 14px;
1140
- font-weight: bold;
1141
- }
1142
- `;
1143
- const StyledSliderWrapper = styled__default["default"].div `
1144
- display: flex;
1145
- align-items: center;
1146
- .hhg-mantine-slider {
1147
- flex-grow: 1;
1148
- }
1149
- button {
1150
- path:not([stroke]) {
1151
- stroke: ${theme.theme.colors.primaryBase};
956
+ const StyledCarousel = styled__default["default"](Carousel) `
957
+ cursor: grab;
958
+ width: 100%;
959
+ .mantine-Carousel-control {
960
+ background: rgb(255, 255, 255);
961
+ opacity: 1;
962
+ border: none;
963
+ border-radius: 0;
964
+ box-shadow: none;
965
+ &[data-inactive] {
966
+ opacity: 0;
967
+ cursor: default;
1152
968
  }
1153
- }
1154
- [data-theme='marryBaby'] & {
1155
- button {
1156
- path:not([stroke]) {
1157
- stroke: ${theme.theme.mbColors.pink};
1158
- }
969
+ &:first-child {
970
+ padding-right: 24px;
971
+ background: linear-gradient(
972
+ 90deg,
973
+ rgba(255, 255, 255, 1) 0%,
974
+ rgba(255, 255, 255, 1) 50%,
975
+ rgba(255, 255, 255, 0) 100%
976
+ );
977
+ }
978
+ &:last-child {
979
+ padding-left: 24px;
980
+ background: linear-gradient(
981
+ 270deg,
982
+ rgba(255, 255, 255, 1) 0%,
983
+ rgba(255, 255, 255, 1) 50%,
984
+ rgba(255, 255, 255, 0) 100%
985
+ );
1159
986
  }
1160
987
  }
988
+
989
+ .mantine-Carousel-container {
990
+ align-items: center;
991
+ }
1161
992
  `;
1162
993
 
1163
- const RadioWrapper = (_a) => {
1164
- var { styles, color } = _a, props = tslib_es6.__rest(_a, ["styles", "color"]);
1165
- const theme = core.useMantineTheme();
1166
- const hexColor = React.useMemo(() => {
1167
- var _a, _b;
1168
- return ((color === null || color === void 0 ? void 0 : color.includes('.'))
1169
- ? (_a = theme.colors[color.split('.')[0]]) === null || _a === void 0 ? void 0 : _a[color.split('.')[1]]
1170
- : (_b = theme.colors[color]) === null || _b === void 0 ? void 0 : _b[theme.primaryShade || 6]) ||
1171
- theme.fn.primaryColor();
1172
- }, [color]);
1173
- return (React__namespace["default"].createElement(core.Radio, Object.assign({ styles: Object.assign({ radio: {
1174
- '&:hover, &:checked': {
1175
- border: `1px solid ${hexColor}`,
1176
- },
1177
- }, icon: {
1178
- color: `${hexColor}`,
1179
- } }, styles), color: color }, props)));
1180
- };
1181
- const Radio = RadioWrapper;
1182
- Radio.Group = core.Radio.Group;
994
+ var useStyles$3 = core.createStyles((_theme, _params) => {
995
+ return {
996
+ root: {
997
+ color: _params.color ||
998
+ (_theme.primaryColor === 'hb'
999
+ ? _theme.colors.hb[6]
1000
+ : _theme.fn.primaryColor()),
1001
+ },
1002
+ };
1003
+ });
1183
1004
 
1184
- function transferValueToOtp(value, valueLength = 6) {
1185
- const otp = new Array(valueLength).fill('');
1186
- if (value) {
1187
- const arr = value.toString().split('');
1188
- otp.map((_, index) => {
1189
- if (arr[index]) {
1190
- otp[index] = arr[index] || '';
1191
- }
1192
- });
1193
- }
1194
- return otp;
1195
- }
1196
- function transferOtpToValue(otp) {
1197
- return otp.join('');
1198
- }
1005
+ const Anchor = (_a) => {
1006
+ var { color, styles, className } = _a, rest = tslib_es6.__rest(_a, ["color", "styles", "className"]);
1007
+ const { classes, cx } = useStyles$3({ color }, { name: 'Anchor', styles });
1008
+ return React__namespace["default"].createElement(index$3.Text, Object.assign({ as: "a", className: cx(classes.root, className) }, rest));
1009
+ };
1199
1010
 
1200
- var styles$2 = {"otpContainer":"_2iQs0sk","otpInput":"Ia6IojY","error":"yJs9MaD"};
1011
+ const BreadcrumbItem = (_a) => {
1012
+ var { children } = _a, rest = tslib_es6.__rest(_a, ["children"]);
1013
+ return (React__namespace["default"].createElement(Anchor, Object.assign({ size: "p4", color: 'gray.8' }, rest), children));
1014
+ };
1201
1015
 
1202
- const BACKSPACE = 8;
1203
- const LEFT_ARROW = 37;
1204
- const RIGHT_ARROW = 39;
1205
- const DELETE = 46;
1206
- const SPACEBAR = 32;
1207
- const OTPInputFunction = (props, ref) => {
1208
- const { maxLength = 1, placeholder, className } = props, restProps = tslib_es6.__rest(props, ["maxLength", "placeholder", "className"]);
1209
- return (React__namespace["default"].createElement("input", Object.assign({ maxLength: maxLength, className: cn__default["default"](styles$2.otpInput, 'otpInput', className), placeholder: placeholder, type: "number" }, restProps, { ref: ref })));
1210
- };
1211
- const OTPInput = React.forwardRef(OTPInputFunction);
1212
- const OTPFowardRef = (props, ref) => {
1213
- const { valueLength = 6, type = 'number', value: valueProps, defaultValue, placeholder, onChange, onBlur, } = props;
1214
- const inputRef = React.useRef(new Array(valueLength).fill(null));
1215
- const [value, setValue] = React.useState(defaultValue || valueProps);
1216
- const [activeOtp, setActiveOtp] = React.useState(-1);
1217
- const [otp, setOtp] = React.useState(() => transferValueToOtp(value, valueLength));
1218
- const changeCodeAtFocus = React.useCallback(() => {
1219
- if (activeOtp === -1) {
1220
- return;
1221
- }
1222
- const activeInput = inputRef.current[activeOtp];
1223
- if (activeInput) {
1224
- activeInput.value = '';
1225
- const newOtp = otp;
1226
- newOtp[activeOtp] = '';
1227
- setOtp(newOtp);
1228
- setValue(() => transferOtpToValue(newOtp));
1229
- onChange === null || onChange === void 0 ? void 0 : onChange(transferOtpToValue(newOtp));
1230
- }
1231
- }, [activeOtp, onChange, otp]);
1232
- const focusPrevInput = React.useCallback(() => {
1233
- if (activeOtp === 0) {
1234
- return;
1235
- }
1236
- const curInput = inputRef.current[activeOtp];
1237
- if (curInput) {
1238
- curInput.blur();
1239
- }
1240
- const prevInput = inputRef.current[activeOtp - 1];
1241
- if (prevInput) {
1242
- prevInput.focus();
1243
- }
1244
- }, [activeOtp]);
1245
- const focusNextInput = React.useCallback(() => {
1246
- if (activeOtp === valueLength - 1) {
1247
- return;
1248
- }
1249
- const curInput = inputRef.current[activeOtp];
1250
- if (curInput) {
1251
- curInput.blur();
1252
- }
1253
- const nextInput = inputRef.current[activeOtp + 1];
1254
- if (nextInput) {
1255
- nextInput.focus();
1256
- }
1257
- }, [activeOtp, valueLength]);
1258
- const inputOnChange = React.useCallback((e) => {
1259
- const target = e.target;
1260
- const targetValue = target.value;
1261
- const code = targetValue.toString().slice(0, 1);
1262
- const indexTarget = inputRef.current.findIndex((input) => input === target);
1263
- if (indexTarget !== -1) {
1264
- const newOtp = otp;
1265
- newOtp[indexTarget] = code;
1266
- setOtp(newOtp);
1267
- setValue(() => transferOtpToValue(newOtp));
1268
- onChange === null || onChange === void 0 ? void 0 : onChange(transferOtpToValue(newOtp));
1269
- }
1270
- focusNextInput();
1271
- }, [focusNextInput, onChange, otp]);
1272
- const inputOnFocus = React.useCallback((e) => {
1273
- const target = e.target;
1274
- const targetIndex = inputRef.current.findIndex((input) => input === target);
1275
- if (type === 'number') {
1276
- target.select();
1277
- }
1278
- else {
1279
- target.setSelectionRange(0, target.value.length, 'backward');
1280
- }
1281
- if (targetIndex !== -1) {
1282
- setActiveOtp(targetIndex);
1283
- }
1016
+ const AspectRatio = (props) => {
1017
+ return (React__namespace["default"].createElement(core.AspectRatio, Object.assign({ sx: {
1018
+ borderRadius: 4,
1019
+ overflow: 'hidden',
1020
+ '> img': {
1021
+ objectFit: 'contain',
1022
+ },
1023
+ } }, props)));
1024
+ };
1025
+
1026
+ const _Breadcrumbs = (_a) => {
1027
+ var _b;
1028
+ var { children, showHomeIcon = true, homeIconHref = '/' } = _a, rest = tslib_es6.__rest(_a, ["children", "showHomeIcon", "homeIconHref"]);
1029
+ const theme = core.useMantineTheme();
1030
+ const isMarryBaby = ((_b = theme === null || theme === void 0 ? void 0 : theme.other) === null || _b === void 0 ? void 0 : _b.template) === 'mb';
1031
+ const [embla, setEmbla] = React.useState(null);
1032
+ const { isMobile } = useScreenSize();
1033
+ const [, setShouldAllowClick] = React.useState(true);
1034
+ const handleScroll = React.useCallback(() => {
1035
+ setShouldAllowClick(false);
1036
+ }, []);
1037
+ const handlePointerUp = React.useCallback(() => {
1038
+ setTimeout(() => {
1039
+ setShouldAllowClick(true);
1040
+ }, 1000);
1284
1041
  }, []);
1285
- const inputOnPaste = React.useCallback((e) => {
1286
- const clipboard = e.clipboardData.getData('text/plain');
1287
- const newOtp = transferValueToOtp(clipboard, valueLength);
1288
- const newValue = transferOtpToValue(newOtp);
1289
- setOtp(newOtp);
1290
- setValue(newValue);
1291
- onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
1292
- }, [onChange, type, valueLength]);
1293
- // Handle cases of backspace, delete, left arrow, right arrow, space
1294
- const inputOnKeyDown = React.useCallback((e) => {
1295
- if (e.keyCode === BACKSPACE || e.key === 'Backspace') {
1296
- e.preventDefault();
1297
- changeCodeAtFocus();
1298
- focusPrevInput();
1299
- }
1300
- else if (e.keyCode === DELETE || e.key === 'Delete') {
1301
- e.preventDefault();
1302
- changeCodeAtFocus();
1303
- }
1304
- else if (e.keyCode === LEFT_ARROW || e.key === 'ArrowLeft') {
1305
- e.preventDefault();
1306
- focusPrevInput();
1307
- }
1308
- else if (e.keyCode === RIGHT_ARROW || e.key === 'ArrowRight') {
1309
- e.preventDefault();
1310
- focusNextInput();
1311
- }
1312
- else if (e.keyCode === SPACEBAR ||
1313
- e.key === ' ' ||
1314
- e.key === 'Spacebar' ||
1315
- e.key === 'Space') {
1316
- e.preventDefault();
1317
- }
1318
- }, [changeCodeAtFocus, focusNextInput, focusPrevInput]);
1319
- React.useImperativeHandle(ref, () => inputRef.current[0], []);
1320
1042
  React.useEffect(() => {
1321
- setOtp(() => transferValueToOtp(valueProps, valueLength));
1322
- setValue(valueProps);
1323
- }, [valueLength, valueProps]);
1324
- return (React__namespace["default"].createElement(core.Flex, { justify: "center", columnGap: 8, className: cn__default["default"](styles$2.otpContainer, 'otpContainer') }, otp.map((val, index) => {
1325
- return (React__namespace["default"].createElement(OTPInput, { ref: (iRef) => {
1326
- inputRef.current[index] = iRef;
1327
- }, key: '' + index, value: val, type: type, onChange: inputOnChange, onFocus: inputOnFocus, onKeyDown: inputOnKeyDown, onPaste: inputOnPaste, onBlur: onBlur, placeholder: placeholder }));
1328
- })));
1043
+ if (embla) {
1044
+ embla.on('scroll', handleScroll);
1045
+ embla.on('pointerUp', handlePointerUp);
1046
+ }
1047
+ return () => {
1048
+ if (embla) {
1049
+ embla.off('scroll', handleScroll);
1050
+ embla.on('pointerUp', handlePointerUp);
1051
+ }
1052
+ };
1053
+ }, [embla, handleScroll, handlePointerUp]);
1054
+ return (React__namespace["default"].createElement(StyledCarousel, Object.assign({ align: "center", slideGap: "xs", dragFree: true, draggable: isMobile, slideSize: "0", getEmblaApi: setEmbla, controlsOffset: -52, previousControlIcon: React__namespace["default"].createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
1055
+ React__namespace["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__namespace["default"].createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
1056
+ React__namespace["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),
1057
+ showHomeIcon && (React__namespace["default"].createElement(Carousel.Slide, { style: { borderRight: `1px solid ${themeColors.neutral[1]}` } },
1058
+ React__namespace["default"].createElement(BreadcrumbItem, { href: homeIconHref, target: "_blank", className: "pointer-event-child-none" },
1059
+ React__namespace["default"].createElement(core.Box, { sx: Object.assign({}, (!isMarryBaby && {
1060
+ borderRadius: '50%',
1061
+ display: 'flex',
1062
+ justifyContent: 'center',
1063
+ alignItems: 'center',
1064
+ })), bg: !isMarryBaby && themeColors.neutral[0], p: !isMarryBaby ? 6 : 0 },
1065
+ React__namespace["default"].createElement(AspectRatio, { ratio: 1, w: 18 }, isMarryBaby ? (React__namespace["default"].createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" },
1066
+ React__namespace["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" }),
1067
+ React__namespace["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__namespace["default"].createElement("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none" },
1068
+ React__namespace["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" })))))))),
1069
+ React__namespace["default"].createElement(Carousel.Slide, null),
1070
+ React__namespace["default"].createElement(Carousel.Slide, null,
1071
+ React__namespace["default"].createElement(core.Breadcrumbs, { styles: {
1072
+ separator: {
1073
+ marginInline: 4,
1074
+ },
1075
+ }, separator: React__namespace["default"].createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
1076
+ React__namespace["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))));
1329
1077
  };
1330
- const OTP = React.forwardRef(OTPFowardRef);
1078
+ const Breadcrumbs = _Breadcrumbs;
1079
+ Breadcrumbs.Item = BreadcrumbItem;
1331
1080
 
1332
- const CambodiaRoundIcon = (props) => (React__namespace["default"].createElement(ImageWrap, Object.assign({ alt: "round cambodia flag", src: index$2.CommonGAssets.getAssetPath('flags/cambodiaRound.png'), style: Object.assign({ borderRadius: '50%' }, props.style) }, props)));
1333
- const CambodiaSquareIcon = (props) => (React__namespace["default"].createElement(ImageWrap, Object.assign({ alt: "square cambodia flag", src: index$2.CommonGAssets.getAssetPath('flags/cambodiaSquare.png') }, props)));
1081
+ const StyledTextArea = styled__default["default"](core.Textarea) `
1082
+ .mantine-Textarea-input {
1083
+ padding: 12px 16px;
1084
+ background: #ffffff;
1085
+ border: 1px solid ${theme.theme.colors.gray200};
1086
+ border-radius: 4px;
1087
+ }
1088
+ `;
1334
1089
 
1335
- const EnglishRoundIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
1336
- React__namespace["default"].createElement("g", null,
1337
- React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1338
- React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1339
- React__namespace["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" }),
1340
- React__namespace["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" }),
1341
- React__namespace["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" }),
1342
- React__namespace["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" }),
1343
- React__namespace["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" }),
1344
- React__namespace["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" }),
1345
- React__namespace["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" }),
1346
- React__namespace["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" }),
1347
- React__namespace["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" }),
1348
- React__namespace["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" }),
1349
- React__namespace["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" }),
1350
- React__namespace["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" }),
1351
- React__namespace["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" }),
1352
- React__namespace["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" }),
1353
- React__namespace["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" }),
1354
- React__namespace["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" }),
1355
- React__namespace["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" }),
1356
- React__namespace["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" }),
1357
- React__namespace["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" }),
1358
- React__namespace["default"].createElement("path", { d: "M13.4785 8.50019L11.7345 7.43417L11.5925 7.34717L11.5 7.49867V8.50019H13.4785Z", fill: "white" }),
1359
- React__namespace["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" }),
1360
- React__namespace["default"].createElement("path", { d: "M7.01758 8.50026H8.50011V7.59424L7.01758 8.50026Z", fill: "white" }),
1361
- React__namespace["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" }),
1362
- React__namespace["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" }),
1363
- React__namespace["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" }),
1364
- React__namespace["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" }),
1365
- React__namespace["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" }))));
1366
- const EnglishSquareIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 26 26", fill: "none" }, props),
1367
- React__namespace["default"].createElement("g", null,
1368
- React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "1", y: "5", width: "24", height: "16" },
1369
- React__namespace["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" })),
1370
- React__namespace["default"].createElement("path", { d: "M1.08301 5.41675H24.9163V20.5834H1.08301V5.41675Z", fill: "#3F51B5" }),
1371
- React__namespace["default"].createElement("path", { d: "M1.08301 7.70041L12.3551 14.5899L14.05 11.8165L3.57901 5.41675H1.08301V7.70041Z", fill: "white" }),
1372
- React__namespace["default"].createElement("path", { d: "M24.9165 5.41675H22.9616L12.4912 11.816L14.1855 14.5899L24.9165 8.03083V5.41675Z", fill: "white" }),
1373
- React__namespace["default"].createElement("path", { d: "M14.1855 10.9802L12.4912 13.7536L23.6658 20.5834H24.9165V17.5387L14.1855 10.9802Z", fill: "white" }),
1374
- React__namespace["default"].createElement("path", { d: "M1.08301 17.8702V20.5834H2.87592L14.05 13.7541L12.3556 10.9802L1.08301 17.8702Z", fill: "white" }),
1375
- React__namespace["default"].createElement("path", { d: "M1.08301 10.8333H24.9163V15.1666H1.08301V10.8333Z", fill: "white" }),
1376
- React__namespace["default"].createElement("path", { d: "M10.833 5.41675H15.1663V20.5834H10.833V5.41675Z", fill: "white" }),
1377
- React__namespace["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" }),
1378
- React__namespace["default"].createElement("path", { d: "M11.917 5.41675H14.0837V20.5834H11.917V5.41675Z", fill: "#E53935" }))));
1090
+ var useStyles$2 = core.createStyles((theme) => {
1091
+ return {
1092
+ root: {},
1093
+ inner: {},
1094
+ content: {},
1095
+ header: {
1096
+ borderBottom: `1px solid ${theme.colors.neutral[1]}`,
1097
+ marginRight: 0,
1098
+ marginBottom: 0,
1099
+ padding: '12px',
1100
+ },
1101
+ overlay: {},
1102
+ title: {
1103
+ fontSize: 16,
1104
+ fontWeight: 700,
1105
+ lineHeight: 1.5,
1106
+ },
1107
+ body: {},
1108
+ close: {
1109
+ cursor: 'pointer',
1110
+ width: 'unset',
1111
+ height: 'unset',
1112
+ svg: {
1113
+ width: '24px !important',
1114
+ height: '24px !important',
1115
+ },
1116
+ },
1117
+ };
1118
+ });
1379
1119
 
1380
- const IndiaRoundIcon = (props) => (React__namespace["default"].createElement(ImageWrap, Object.assign({ alt: "round india flag", src: index$2.CommonGAssets.getAssetPath('flags/indiaRound.png'), style: Object.assign({ borderRadius: '50%' }, props.style) }, props)));
1381
- const IndiaSquareIcon = (props) => (React__namespace["default"].createElement(ImageWrap, Object.assign({ alt: "square indian flag", src: index$2.CommonGAssets.getAssetPath('flags/indiaSquare.png') }, props)));
1120
+ const StyledAccordion = styled__default["default"](core.Accordion) `
1121
+ .mantine-Accordion-label {
1122
+ padding: 0;
1123
+ }
1124
+ .mantine-Accordion-control {
1125
+ &:hover {
1126
+ background-color: transparent;
1127
+ }
1128
+ }
1129
+ .mantine-Accordion-item {
1130
+ .mantine-Accordion-chevron {
1131
+ > div {
1132
+ background-repeat: no-repeat;
1133
+ width: 16px;
1134
+ height: 16px;
1135
+ background-position: center;
1136
+ background-image: url(${(props) => props.closeChevron || index$2.CommonGAssets.getAssetPath('plus-icon.svg')});
1137
+ }
1138
+ }
1139
+ &[data-active='true'] {
1140
+ .mantine-Accordion-chevron {
1141
+ > div {
1142
+ background-image: url(${(props) => props.openChevron || index$2.CommonGAssets.getAssetPath('minus-icon.svg')});
1143
+ }
1144
+ }
1145
+ }
1146
+ }
1147
+ .mantine-Accordion-panel {
1148
+ border-radius: ${theme.theme.borderRadius};
1149
+ }
1150
+ .mantine-Accordion-content {
1151
+ white-space: pre-wrap;
1152
+ }
1153
+ `;
1382
1154
 
1383
- const IndonesiaRoundIcon = (_a) => {
1384
- var rest = tslib_es6.__rest(_a, []);
1385
- const maskId = useUniqueId.useUniqueId();
1386
- return (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none" }, rest),
1387
- React__namespace["default"].createElement("mask", { id: maskId, style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1388
- React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1389
- React__namespace["default"].createElement("g", { mask: `url(#${maskId})` },
1390
- React__namespace["default"].createElement("rect", { width: "20", height: "10", fill: "#CE1126" }),
1391
- React__namespace["default"].createElement("rect", { y: "10", width: "20", height: "10", fill: "white" }))));
1155
+ const _Accordion = (_a) => {
1156
+ var { children } = _a, rest = tslib_es6.__rest(_a, ["children"]);
1157
+ return (React__namespace["default"].createElement(StyledAccordion, Object.assign({ chevron: React__namespace["default"].createElement("div", null), disableChevronRotation: true, transitionDuration: 300 }, rest), children));
1392
1158
  };
1393
- const IndonesiaSquareIcon = (_a) => {
1394
- var rest = tslib_es6.__rest(_a, []);
1395
- const clipPathId = useUniqueId.useUniqueId();
1396
- return (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, rest),
1397
- React__namespace["default"].createElement("g", { clipPath: `url(#${clipPathId})` },
1398
- React__namespace["default"].createElement("rect", { y: "0.0166016", width: "24", height: "8", fill: "#CE1126" }),
1399
- React__namespace["default"].createElement("rect", { y: "8.0166", width: "24", height: "8", fill: "white" })),
1400
- React__namespace["default"].createElement("defs", null,
1401
- React__namespace["default"].createElement("clipPath", { id: clipPathId },
1402
- React__namespace["default"].createElement("rect", { width: "24", height: "16", rx: "2", fill: "white" })))));
1159
+ const Accordion = _Accordion;
1160
+ Accordion.Control = core.Accordion.Control;
1161
+ Accordion.Item = core.Accordion.Item;
1162
+ Accordion.Panel = core.Accordion.Panel;
1163
+
1164
+ const DEFAULT_AVATAR = index$2.CommonGAssets.getAssetPath('avatar.jpg');
1165
+ const Avatar = (_a) => {
1166
+ var { withIndicator = false, indicatorConfig = null, size = 56, children, styles, placeholderText } = _a, // usually first letter of name
1167
+ avatarProps = tslib_es6.__rest(_a, ["withIndicator", "indicatorConfig", "size", "children", "styles", "placeholderText"]);
1168
+ const generateAvatar = () => {
1169
+ return (React__namespace["default"].createElement(core.Avatar, Object.assign({ size: size, radius: "xl" }, avatarProps, { imageProps: Object.assign({ loading: 'lazy' }, avatarProps.imageProps), styles: {
1170
+ placeholder: {
1171
+ backgroundColor: avatarProps.color,
1172
+ color: 'white',
1173
+ },
1174
+ } }), children ? (children) : placeholderText ? (placeholderText) : (React__namespace["default"].createElement(ImageWrap, { src: DEFAULT_AVATAR, width: size, alt: avatarProps.alt || 'avatar' }))));
1175
+ };
1176
+ if (withIndicator)
1177
+ return (React__namespace["default"].createElement(core.Indicator, Object.assign({ inline: true, position: "bottom-end", offset: 9 }, indicatorConfig, { styles: Object.assign({ indicator: {
1178
+ backgroundColor: React__namespace["default"].isValidElement(indicatorConfig.label) && 'transparent',
1179
+ zIndex: 1,
1180
+ } }, styles) }), generateAvatar()));
1181
+ return generateAvatar();
1403
1182
  };
1404
1183
 
1405
- const MalaysiaRoundIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
1406
- React__namespace["default"].createElement("g", null,
1407
- React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1408
- React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1409
- React__namespace["default"].createElement("rect", { y: "1", width: "20", height: "20", fill: "#CC0001" }),
1410
- React__namespace["default"].createElement("rect", { y: "16.106", width: "20", height: "1.02041", fill: "white" }),
1411
- React__namespace["default"].createElement("rect", { y: "16", width: "20", height: "1.02041", fill: "white" }),
1412
- React__namespace["default"].createElement("rect", { y: "18", width: "20", height: "1.02041", fill: "white" }),
1413
- React__namespace["default"].createElement("rect", { y: "14.0652", width: "20", height: "1.02041", fill: "white" }),
1414
- React__namespace["default"].createElement("rect", { y: "12.0242", width: "20", height: "1.02041", fill: "white" }),
1415
- React__namespace["default"].createElement("rect", { y: "9.9834", width: "20", height: "1.02041", fill: "white" }),
1416
- React__namespace["default"].createElement("rect", { y: "7.94263", width: "20", height: "1.02041", fill: "white" }),
1417
- React__namespace["default"].createElement("rect", { y: "5.90186", width: "20", height: "1.02041", fill: "white" }),
1418
- React__namespace["default"].createElement("rect", { y: "3.86084", width: "20", height: "1.02041", fill: "white" }),
1419
- React__namespace["default"].createElement("rect", { y: "2", width: "20", height: "1.02041", fill: "white" }),
1420
- React__namespace["default"].createElement("rect", { width: "20", height: "1.02041", fill: "white" }),
1421
- React__namespace["default"].createElement("rect", { y: "-1", width: "10", height: "12", fill: "#010066" }),
1422
- React__namespace["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" }),
1423
- React__namespace["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" }))));
1424
- const MalaysiaSquareIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
1425
- React__namespace["default"].createElement("rect", { width: "24", height: "16", rx: "2", fill: "#CC0001" }),
1426
- React__namespace["default"].createElement("rect", { y: "12.2712", width: "24", height: "0.777454", fill: "white" }),
1427
- React__namespace["default"].createElement("rect", { y: "12.1904", width: "24", height: "0.777454", fill: "white" }),
1428
- React__namespace["default"].createElement("rect", { y: "13.7144", width: "24", height: "0.777454", fill: "white" }),
1429
- React__namespace["default"].createElement("rect", { y: "10.7161", width: "24", height: "0.777454", fill: "white" }),
1430
- React__namespace["default"].createElement("rect", { y: "9.16138", width: "24", height: "0.777454", fill: "white" }),
1431
- React__namespace["default"].createElement("rect", { y: "7.60645", width: "24", height: "0.777454", fill: "white" }),
1432
- React__namespace["default"].createElement("rect", { y: "6.05127", width: "24", height: "0.777454", fill: "white" }),
1433
- React__namespace["default"].createElement("rect", { y: "4.49658", width: "24", height: "0.777454", fill: "white" }),
1434
- React__namespace["default"].createElement("rect", { y: "2.94141", width: "24", height: "0.777454", fill: "white" }),
1435
- React__namespace["default"].createElement("rect", { y: "1.52393", width: "24", height: "0.777454", fill: "white" }),
1436
- React__namespace["default"].createElement("rect", { width: "24", height: "0.777454", fill: "white" }),
1437
- React__namespace["default"].createElement("path", { d: "M0 2C0 0.895431 0.895431 0 2 0H12V8.38095H0V2Z", fill: "#010066" }),
1438
- React__namespace["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" }),
1439
- React__namespace["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" })));
1184
+ const FileInput = (props) => {
1185
+ return React__namespace["default"].createElement(core.FileInput, Object.assign({ size: "md" }, props));
1186
+ };
1440
1187
 
1441
- const MyanmarRoundIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
1442
- React__namespace["default"].createElement("g", null,
1443
- React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1444
- React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1445
- React__namespace["default"].createElement("rect", { x: "-4", y: "-1", width: "28", height: "11", fill: "#FECB00" }),
1446
- React__namespace["default"].createElement("rect", { x: "-4", y: "10", width: "28", height: "10", fill: "#EA2839" }),
1447
- React__namespace["default"].createElement("rect", { x: "-4", y: "6.7041", width: "28", height: "6.47773", fill: "#34B233" }),
1448
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.56543 10.3272L10.1796 5.15527L11.7938 10.3272H8.56543Z", fill: "white" }),
1449
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.5292 11.2775L7.18336 14.5129L8.91745 9.37991L11.5292 11.2775Z", fill: "white" }),
1450
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.75181 11.8648L5.33182 8.73143L10.7494 8.79447L9.75181 11.8648Z", fill: "white" }),
1451
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.6105 8.78962L15.0281 8.72658L10.6081 11.86L9.6105 8.78962Z", fill: "white" }),
1452
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.4424 9.37686L13.1765 14.5098L8.83064 11.2744L11.4424 9.37686Z", fill: "white" }))));
1453
- const MyanmarSquareIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
1454
- React__namespace["default"].createElement("rect", { width: "24", height: "16", rx: "2", fill: "#FECB00" }),
1455
- React__namespace["default"].createElement("rect", { y: "8.3811", width: "24", height: "7.61905", rx: "2", fill: "#EA2839" }),
1456
- React__namespace["default"].createElement("rect", { y: "5.86987", width: "24", height: "4.93542", fill: "#34B233" }),
1457
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.7705 8.63046L12.1541 4.68994L13.5377 8.63046H10.7705Z", fill: "white" }),
1458
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.3108 9.35502L9.58574 11.8201L11.0721 7.90925L13.3108 9.35502Z", fill: "white" }),
1459
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.7874 9.80216L7.99884 7.41482L12.6425 7.46285L11.7874 9.80216Z", fill: "white" }),
1460
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.6667 7.4589L16.3104 7.41087L12.5218 9.79821L11.6667 7.4589Z", fill: "white" }),
1461
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.2361 7.90629L14.7225 11.8171L10.9974 9.35207L13.2361 7.90629Z", fill: "white" })));
1188
+ const DEBOUNCED_TIME = 300;
1189
+ const emotionCache = core.createEmotionCache({
1190
+ key: 'mantine',
1191
+ prepend: false,
1192
+ });
1462
1193
 
1463
- const PhilippinesRoundIcon = (props) => (React__namespace["default"].createElement(ImageWrap, Object.assign({ alt: "round philippines flag", src: index$2.CommonGAssets.getAssetPath('flags/philippineRound.png'), style: Object.assign({ borderRadius: '50%' }, props.style) }, props)));
1464
- const PhilippinesSquareIcon = (props) => (React__namespace["default"].createElement(ImageWrap, Object.assign({ alt: "square philippines flag", src: index$2.CommonGAssets.getAssetPath('flags/philippineSquare.png') }, props)));
1194
+ const NumberInput = (_a) => {
1195
+ var { value: _value, onChange: _onChange } = _a, props = tslib_es6.__rest(_a, ["value", "onChange"]);
1196
+ const [value, setValue] = React.useState(_value);
1197
+ const [debounced] = hooks.useDebouncedValue(value, DEBOUNCED_TIME);
1198
+ React.useEffect(() => {
1199
+ _onChange === null || _onChange === void 0 ? void 0 : _onChange(debounced);
1200
+ }, [debounced]);
1201
+ React.useEffect(() => {
1202
+ setValue(_value);
1203
+ }, [_value]);
1204
+ return (React__namespace["default"].createElement(core.NumberInput, Object.assign({ size: "md", stepHoldDelay: 500, stepHoldInterval: (t) => Math.max(1000 / Math.pow(t, 2), 25), onChange: setValue, hideControls: true, min: 0, formatter: (value) => {
1205
+ if (Number(value) === 0)
1206
+ return value;
1207
+ return value || '';
1208
+ }, removeTrailingZeros: true, value: value }, props)));
1209
+ };
1465
1210
 
1466
- const TaiwanRoundIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
1467
- React__namespace["default"].createElement("g", null,
1468
- React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1469
- React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1470
- React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#D8D8D8" }),
1471
- React__namespace["default"].createElement("g", null,
1472
- React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1473
- React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "white" })),
1474
- React__namespace["default"].createElement("rect", { width: "30", height: "20", fill: "#ED1E24" }),
1475
- React__namespace["default"].createElement("rect", { width: "15", height: "10", fill: "#2B2F84" }),
1476
- React__namespace["default"].createElement("circle", { cx: "7.49791", cy: "4.99913", r: "1.869", fill: "white" }),
1477
- React__namespace["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" }),
1478
- React__namespace["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" }),
1479
- React__namespace["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" }),
1480
- React__namespace["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" }),
1481
- React__namespace["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" }),
1482
- React__namespace["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" }),
1483
- React__namespace["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" }),
1484
- React__namespace["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" }),
1485
- React__namespace["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" }),
1486
- React__namespace["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" }),
1487
- React__namespace["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" }),
1488
- React__namespace["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" })))));
1489
- const TaiwanSquareIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
1490
- React__namespace["default"].createElement("rect", { width: "24", height: "16", rx: "2", fill: "#ED1E24" }),
1491
- React__namespace["default"].createElement("path", { d: "M0 2C0 0.89543 0.895431 0 2 0H15V10H0V2Z", fill: "#2B2F84" }),
1492
- React__namespace["default"].createElement("circle", { cx: "7.49791", cy: "4.99913", r: "1.869", fill: "white" }),
1493
- React__namespace["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" }),
1494
- React__namespace["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" }),
1495
- React__namespace["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" }),
1496
- React__namespace["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" }),
1497
- React__namespace["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" }),
1498
- React__namespace["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" }),
1499
- React__namespace["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" }),
1500
- React__namespace["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" }),
1501
- React__namespace["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" }),
1502
- React__namespace["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" }),
1503
- React__namespace["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" }),
1504
- React__namespace["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" })));
1211
+ const EyeVisible = index$2.CommonGAssets.getAssetPath('EyeVisible.svg');
1212
+ const EyeHidden = index$2.CommonGAssets.getAssetPath('EyeHidden.svg');
1213
+ const PasswordInput = React.forwardRef((props, ref) => {
1214
+ const { size = 'md', visibilityToggleIcon: visibilityToggleIconProps } = props, restProps = tslib_es6.__rest(props, ["size", "visibilityToggleIcon"]);
1215
+ const visibilityToggleIcon = visibilityToggleIconProps ||
1216
+ (({ reveal, size }) => reveal ? (React__namespace["default"].createElement("img", { src: EyeVisible, width: size, loading: "lazy" })) : (React__namespace["default"].createElement("img", { src: EyeHidden, width: size, loading: "lazy" })));
1217
+ return (React__namespace["default"].createElement(core.PasswordInput, Object.assign({ ref: ref, size: size, visibilityToggleIcon: visibilityToggleIcon }, restProps, { className: `input-control ${(restProps === null || restProps === void 0 ? void 0 : restProps.className) || ''}` })));
1218
+ });
1505
1219
 
1506
- const ThailandRoundIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
1507
- React__namespace["default"].createElement("g", null,
1508
- React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1509
- React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1510
- React__namespace["default"].createElement("rect", { x: "-4", y: "-0.0166016", width: "28", height: "20", fill: "#ED1C24" }),
1511
- React__namespace["default"].createElement("rect", { x: "-4", y: "3.31665", width: "28", height: "13.3333", fill: "white" }),
1512
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M-4 6.65015H24V13.3168H-4V6.65015Z", fill: "#241D4F" }))));
1513
- const ThailandSquareIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 24 17", fill: "none" }, props),
1514
- React__namespace["default"].createElement("rect", { y: "0.983398", width: "24", height: "16", rx: "2", fill: "#ED1C24" }),
1515
- React__namespace["default"].createElement("rect", { y: "3.65039", width: "24", height: "10.6667", fill: "white" }),
1516
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 6.31689H24V11.6502H0V6.31689Z", fill: "#241D4F" })));
1220
+ const InputWrapper = React.forwardRef((_a, ref) => {
1221
+ var { value: _value, onChange: _onChange, onChangeRaw, maxLength } = _a, props = tslib_es6.__rest(_a, ["value", "onChange", "onChangeRaw", "maxLength"]);
1222
+ const [value, setValue] = React.useState(_value || '');
1223
+ const [debounced] = hooks.useDebouncedValue(value, DEBOUNCED_TIME);
1224
+ React.useEffect(() => {
1225
+ _onChange === null || _onChange === void 0 ? void 0 : _onChange(debounced);
1226
+ }, [debounced]);
1227
+ React.useEffect(() => {
1228
+ setValue(_value);
1229
+ }, [_value]);
1230
+ return (React__namespace["default"].createElement(core.TextInput, Object.assign({ ref: ref, size: "md", onChange: (event) => {
1231
+ if (typeof maxLength === 'number' &&
1232
+ event.currentTarget.value.length > maxLength) {
1233
+ return;
1234
+ }
1235
+ onChangeRaw === null || onChangeRaw === void 0 ? void 0 : onChangeRaw(event);
1236
+ setValue(event.currentTarget.value);
1237
+ }, value: value }, props, { maxLength: maxLength, className: `input-control ${(props === null || props === void 0 ? void 0 : props.className) || ''}` })));
1238
+ });
1239
+ const Input = InputWrapper;
1240
+ Input.File = FileInput;
1241
+ Input.Password = PasswordInput;
1242
+ Input.Number = NumberInput;
1243
+ Input.Wrapper = core.Input.Wrapper;
1517
1244
 
1518
- const VietnamRoundIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
1519
- React__namespace["default"].createElement("g", null,
1520
- React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1521
- React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1522
- React__namespace["default"].createElement("rect", { x: "-4", y: "-0.0166016", width: "28", height: "20", fill: "#DA251D" }),
1523
- React__namespace["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" }))));
1524
- const VietnamSquareIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
1525
- React__namespace["default"].createElement("g", null,
1526
- React__namespace["default"].createElement("clipPath", null,
1527
- React__namespace["default"].createElement("rect", { width: "24", height: "16", fill: "white" })),
1528
- React__namespace["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" }),
1529
- React__namespace["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" }))));
1245
+ const StyledSlide = carousel.Carousel.Slide;
1246
+
1247
+ const SlideContext = React.createContext({});
1248
+ const CustomSlide = (_a) => {
1249
+ var { children, onClick, innerSlideProps } = _a, rest = tslib_es6.__rest(_a, ["children", "onClick", "innerSlideProps"]);
1250
+ const { slider, selectSlideWhenClick } = React.useContext(SlideContext);
1251
+ const ref = React.useRef();
1252
+ const key = React.useRef('');
1253
+ const [index, setIndex] = React.useState(0);
1254
+ React.useEffect(() => {
1255
+ key.current = String(Math.round(Math.random() * 10000));
1256
+ }, []);
1257
+ React.useEffect(() => {
1258
+ const slidesNode = (slider === null || slider === void 0 ? void 0 : slider.slideNodes()) || [];
1259
+ setIndex(slidesNode.findIndex((obj) => obj.dataset.key === key.current));
1260
+ }, [slider]);
1261
+ const sliderProps = {
1262
+ ref,
1263
+ 'data-key': key.current,
1264
+ 'data-index': index,
1265
+ };
1266
+ return (React__namespace["default"].createElement(StyledSlide, Object.assign({}, sliderProps, rest),
1267
+ React__namespace["default"].createElement("div", Object.assign({ style: {
1268
+ height: '100%',
1269
+ }, onClick: () => {
1270
+ selectSlideWhenClick && (slider === null || slider === void 0 ? void 0 : slider.scrollTo(index));
1271
+ onClick === null || onClick === void 0 ? void 0 : onClick(index);
1272
+ } }, innerSlideProps), children)));
1273
+ };
1274
+ const findIndexFromLeftSide = (position, slideLength) => {
1275
+ return position >= slideLength ? position - slideLength : position;
1276
+ };
1277
+ const findIndexFromRight = (position, slideLength) => {
1278
+ return position < 0 ? slideLength + position : position;
1279
+ };
1280
+ const CarouselWrapper = (_a) => {
1281
+ var { children, blurFromCenter, blurFromIndex, blurLength = 3, maxBlurOpacity = 0.5, onSlideChange, selectSlideWhenClick } = _a, props = tslib_es6.__rest(_a, ["children", "blurFromCenter", "blurFromIndex", "blurLength", "maxBlurOpacity", "onSlideChange", "selectSlideWhenClick"]);
1282
+ const { width } = hooks.useViewportSize();
1283
+ const [ref] = hooks.useResizeObserver();
1284
+ const slider = React.useRef(null);
1285
+ const [centerSlide, setCenterSlide] = React.useState(0);
1286
+ const handleStyle = () => {
1287
+ var _a, _b, _c, _d, _e;
1288
+ const slidesNode = ((_a = slider === null || slider === void 0 ? void 0 : slider.current) === null || _a === void 0 ? void 0 : _a.slideNodes()) || [];
1289
+ if (((_b = slider === null || slider === void 0 ? void 0 : slider.current) === null || _b === void 0 ? void 0 : _b.slideNodes().length) <=
1290
+ ((_c = slider === null || slider === void 0 ? void 0 : slider.current) === null || _c === void 0 ? void 0 : _c.slidesInView().length)) {
1291
+ slidesNode.map((item) => {
1292
+ item.classList.remove('center-slide');
1293
+ item.style.opacity = '1';
1294
+ });
1295
+ return false;
1296
+ }
1297
+ const centerSlideIndex = (_d = slider === null || slider === void 0 ? void 0 : slider.current) === null || _d === void 0 ? void 0 : _d.selectedScrollSnap();
1298
+ setCenterSlide(centerSlideIndex);
1299
+ const slidesNodeLength = slidesNode.length;
1300
+ const slidesInView = (_e = slider === null || slider === void 0 ? void 0 : slider.current) === null || _e === void 0 ? void 0 : _e.slidesInView();
1301
+ const slidesInViewLength = slidesInView.length;
1302
+ const halfSideLength = Math.floor(slidesInViewLength / 2);
1303
+ const halfSideBlurLength = blurFromCenter
1304
+ ? blurFromIndex + blurLength - 1
1305
+ : halfSideLength;
1306
+ const lastRightBlurIndexTmp = centerSlideIndex + halfSideBlurLength;
1307
+ const lastRightBlurIndex = lastRightBlurIndexTmp === slidesNodeLength
1308
+ ? 0
1309
+ : lastRightBlurIndexTmp > slidesNodeLength
1310
+ ? lastRightBlurIndexTmp - slidesNodeLength
1311
+ : lastRightBlurIndexTmp;
1312
+ const lastLeftBlurIndexTmp = centerSlideIndex - halfSideBlurLength;
1313
+ const lastLeftBlurIndex = lastLeftBlurIndexTmp < 0
1314
+ ? slidesNodeLength + lastLeftBlurIndexTmp
1315
+ : lastLeftBlurIndexTmp > 0
1316
+ ? centerSlideIndex - halfSideBlurLength
1317
+ : 0;
1318
+ const visibleSlide = [
1319
+ ...new Set(Array(halfSideBlurLength * 2 + 1)
1320
+ .fill('')
1321
+ .map((i, idx) => {
1322
+ const findFrom = lastLeftBlurIndex;
1323
+ return findIndexFromLeftSide(findFrom + idx, slidesNodeLength);
1324
+ })),
1325
+ ];
1326
+ slidesNode.map((item, index) => {
1327
+ if (index === centerSlideIndex) {
1328
+ item.classList.add('center-slide');
1329
+ }
1330
+ else {
1331
+ item.classList.remove('center-slide');
1332
+ }
1333
+ if (visibleSlide.indexOf(index) !== -1) {
1334
+ const opacityGap = maxBlurOpacity / blurLength;
1335
+ for (let i = 0; i < blurLength; i++) {
1336
+ if (index ===
1337
+ findIndexFromLeftSide(lastLeftBlurIndex + i, slidesNodeLength) ||
1338
+ index ===
1339
+ findIndexFromRight(lastRightBlurIndex - i, slidesNodeLength)) {
1340
+ item.style.opacity = String((i + 1) * opacityGap);
1341
+ break;
1342
+ }
1343
+ item.style.opacity = '1';
1344
+ }
1345
+ }
1346
+ else {
1347
+ item.style.opacity = '0';
1348
+ }
1349
+ });
1350
+ };
1351
+ const sliderProps = {
1352
+ getEmblaApi: (embla) => {
1353
+ slider.current = embla;
1354
+ },
1355
+ onSlideChange: (index) => {
1356
+ handleStyle();
1357
+ onSlideChange === null || onSlideChange === void 0 ? void 0 : onSlideChange(index);
1358
+ },
1359
+ };
1360
+ React.useEffect(() => {
1361
+ (slider === null || slider === void 0 ? void 0 : slider.current) && handleStyle();
1362
+ }, [width]);
1363
+ const useStyles = core.createStyles(() => {
1364
+ var _a, _b;
1365
+ return ({
1366
+ control: Object.assign({}, (((_a = slider === null || slider === void 0 ? void 0 : slider.current) === null || _a === void 0 ? void 0 : _a.slideNodes().length) <=
1367
+ ((_b = slider === null || slider === void 0 ? void 0 : slider.current) === null || _b === void 0 ? void 0 : _b.slidesInView().length) && {
1368
+ display: 'none',
1369
+ })),
1370
+ });
1371
+ });
1372
+ const { classes } = useStyles();
1373
+ return (React__namespace["default"].createElement(SlideContext.Provider, { value: { slider: slider === null || slider === void 0 ? void 0 : slider.current, centerSlide, selectSlideWhenClick } },
1374
+ React__namespace["default"].createElement(carousel.Carousel, Object.assign({ classNames: {
1375
+ control: classes.control,
1376
+ }, ref: ref, slideSize: 'auto', containScroll: "trimSnaps" }, sliderProps, props, { loop: true }), typeof children === 'function' ? children(centerSlide) : children)));
1377
+ };
1378
+ const CentralCarousel = CarouselWrapper;
1379
+ CentralCarousel.Slide = CustomSlide;
1380
+
1381
+ const CheckboxWrapper = (_a) => {
1382
+ var { styles, color = 'blue' } = _a, props = tslib_es6.__rest(_a, ["styles", "color"]);
1383
+ const theme = core.useMantineTheme();
1384
+ const hexColor = React.useMemo(() => {
1385
+ var _a, _b;
1386
+ return ((color === null || color === void 0 ? void 0 : color.includes('.'))
1387
+ ? (_a = theme.colors[color.split('.')[0]]) === null || _a === void 0 ? void 0 : _a[color.split('.')[1]]
1388
+ : (_b = theme.colors[color]) === null || _b === void 0 ? void 0 : _b[theme.primaryShade || 6]) ||
1389
+ theme.colors.blue[6];
1390
+ }, [color]);
1391
+ return (React__namespace["default"].createElement(core.Checkbox, Object.assign({ styles: Object.assign({ input: {
1392
+ '&:hover': {
1393
+ border: `1px solid ${hexColor}`,
1394
+ },
1395
+ } }, styles), color: color }, props)));
1396
+ };
1397
+ const Checkbox = CheckboxWrapper;
1398
+ Checkbox.Group = core.Checkbox.Group;
1399
+
1400
+ const StyledSlider = styled__default["default"](core.Slider) `
1401
+ ${(props) => {
1402
+ const color = props.color || theme.theme.colors.primaryBase;
1403
+ return `
1404
+ .mantine-Slider-bar {
1405
+ background-color: ${color};
1406
+ }
1407
+ .mantine-Slider-thumb {
1408
+ border-color: ${color};
1409
+ color: ${color};
1410
+ }
1411
+ `;
1412
+ }}
1413
+ [data-theme='marryBaby'] & {
1414
+ ${(props) => {
1415
+ const color = props.color || theme.theme.mbColors.pink;
1416
+ return `
1417
+ .mantine-Slider-bar {
1418
+ background-color: ${color};
1419
+ }
1420
+ .mantine-Slider-thumb {
1421
+ border-color: ${color};
1422
+ color: ${color};
1423
+ }
1424
+ `;
1425
+ }}
1426
+ }
1427
+
1428
+ .mantine-Slider-label {
1429
+ background-color: transparent;
1430
+ color: #000;
1431
+ font-size: 14px;
1432
+ font-weight: bold;
1433
+ }
1434
+ `;
1435
+ const StyledSliderWrapper = styled__default["default"].div `
1436
+ display: flex;
1437
+ align-items: center;
1438
+ .hhg-mantine-slider {
1439
+ flex-grow: 1;
1440
+ }
1441
+ button {
1442
+ path:not([stroke]) {
1443
+ stroke: ${theme.theme.colors.primaryBase};
1444
+ }
1445
+ }
1446
+ [data-theme='marryBaby'] & {
1447
+ button {
1448
+ path:not([stroke]) {
1449
+ stroke: ${theme.theme.mbColors.pink};
1450
+ }
1451
+ }
1452
+ }
1453
+ `;
1530
1454
 
1531
- var styles$1 = {"flag":"pfaLGRK"};
1455
+ const RadioWrapper = (_a) => {
1456
+ var { styles, color } = _a, props = tslib_es6.__rest(_a, ["styles", "color"]);
1457
+ const theme = core.useMantineTheme();
1458
+ const hexColor = React.useMemo(() => {
1459
+ var _a, _b;
1460
+ return ((color === null || color === void 0 ? void 0 : color.includes('.'))
1461
+ ? (_a = theme.colors[color.split('.')[0]]) === null || _a === void 0 ? void 0 : _a[color.split('.')[1]]
1462
+ : (_b = theme.colors[color]) === null || _b === void 0 ? void 0 : _b[theme.primaryShade || 6]) ||
1463
+ theme.fn.primaryColor();
1464
+ }, [color]);
1465
+ return (React__namespace["default"].createElement(core.Radio, Object.assign({ styles: Object.assign({ radio: {
1466
+ '&:hover, &:checked': {
1467
+ border: `1px solid ${hexColor}`,
1468
+ },
1469
+ }, icon: {
1470
+ color: `${hexColor}`,
1471
+ } }, styles), color: color }, props)));
1472
+ };
1473
+ const Radio = RadioWrapper;
1474
+ Radio.Group = core.Radio.Group;
1532
1475
 
1533
- const Flag = ({ country, language, rounded, height, width, isTesting, className, }) => {
1534
- let flag;
1535
- let flagRounded;
1536
- switch (language) {
1537
- case 'en':
1538
- flag = React__namespace["default"].createElement(EnglishSquareIcon, null);
1539
- flagRounded = React__namespace["default"].createElement(EnglishRoundIcon, null);
1540
- break;
1541
- case 'vi':
1542
- flag = React__namespace["default"].createElement(VietnamSquareIcon, null);
1543
- flagRounded = React__namespace["default"].createElement(VietnamRoundIcon, null);
1544
- break;
1545
- case 'id':
1546
- flag = React__namespace["default"].createElement(IndonesiaSquareIcon, { isTesting: isTesting });
1547
- flagRounded = React__namespace["default"].createElement(IndonesiaRoundIcon, { isTesting: isTesting });
1548
- break;
1549
- case 'th':
1550
- flag = React__namespace["default"].createElement(ThailandSquareIcon, null);
1551
- flagRounded = React__namespace["default"].createElement(ThailandRoundIcon, null);
1552
- break;
1553
- case 'km':
1554
- flag = React__namespace["default"].createElement(CambodiaSquareIcon, null);
1555
- flagRounded = React__namespace["default"].createElement(CambodiaRoundIcon, null);
1556
- break;
1557
- case 'ms':
1558
- flag = React__namespace["default"].createElement(MalaysiaSquareIcon, null);
1559
- flagRounded = React__namespace["default"].createElement(MalaysiaRoundIcon, null);
1560
- break;
1561
- case 'my':
1562
- flag = React__namespace["default"].createElement(MyanmarSquareIcon, null);
1563
- flagRounded = React__namespace["default"].createElement(MyanmarRoundIcon, null);
1564
- break;
1565
- case 'tl':
1566
- flag = React__namespace["default"].createElement(PhilippinesSquareIcon, null);
1567
- flagRounded = React__namespace["default"].createElement(PhilippinesRoundIcon, null);
1568
- break;
1569
- case 'hi':
1570
- flag = React__namespace["default"].createElement(IndiaSquareIcon, null);
1571
- flagRounded = React__namespace["default"].createElement(IndiaRoundIcon, null);
1572
- break;
1573
- case 'zh':
1574
- flag = React__namespace["default"].createElement(TaiwanSquareIcon, null);
1575
- flagRounded = React__namespace["default"].createElement(TaiwanRoundIcon, null);
1576
- break;
1476
+ function transferValueToOtp(value, valueLength = 6) {
1477
+ const otp = new Array(valueLength).fill('');
1478
+ if (value) {
1479
+ const arr = value.toString().split('');
1480
+ otp.map((_, index) => {
1481
+ if (arr[index]) {
1482
+ otp[index] = arr[index] || '';
1483
+ }
1484
+ });
1577
1485
  }
1578
- if (!flag && !flagRounded) {
1579
- switch (country) {
1580
- case 'VN':
1581
- flag = React__namespace["default"].createElement(VietnamSquareIcon, null);
1582
- flagRounded = React__namespace["default"].createElement(VietnamRoundIcon, null);
1583
- break;
1584
- case 'ID':
1585
- flag = React__namespace["default"].createElement(IndonesiaSquareIcon, { isTesting: isTesting });
1586
- flagRounded = React__namespace["default"].createElement(IndonesiaRoundIcon, { isTesting: isTesting });
1587
- break;
1588
- case 'TH':
1589
- flag = React__namespace["default"].createElement(ThailandSquareIcon, null);
1590
- flagRounded = React__namespace["default"].createElement(ThailandRoundIcon, null);
1591
- break;
1592
- case 'KH':
1593
- flag = React__namespace["default"].createElement(CambodiaSquareIcon, null);
1594
- flagRounded = React__namespace["default"].createElement(CambodiaRoundIcon, null);
1595
- break;
1596
- case 'MY':
1597
- flag = React__namespace["default"].createElement(MalaysiaSquareIcon, null);
1598
- flagRounded = React__namespace["default"].createElement(MalaysiaRoundIcon, null);
1599
- break;
1600
- case 'MM':
1601
- flag = React__namespace["default"].createElement(MyanmarSquareIcon, null);
1602
- flagRounded = React__namespace["default"].createElement(MyanmarRoundIcon, null);
1603
- break;
1604
- case 'PH':
1605
- flag = React__namespace["default"].createElement(PhilippinesSquareIcon, null);
1606
- flagRounded = React__namespace["default"].createElement(PhilippinesRoundIcon, null);
1607
- break;
1608
- case 'IN':
1609
- flag = React__namespace["default"].createElement(IndiaSquareIcon, null);
1610
- flagRounded = React__namespace["default"].createElement(IndiaRoundIcon, null);
1611
- break;
1612
- case 'TW':
1613
- flag = React__namespace["default"].createElement(TaiwanSquareIcon, null);
1614
- flagRounded = React__namespace["default"].createElement(TaiwanRoundIcon, null);
1615
- break;
1486
+ return otp;
1487
+ }
1488
+ function transferOtpToValue(otp) {
1489
+ return otp.join('');
1490
+ }
1491
+
1492
+ var styles$1 = {"otpContainer":"_2iQs0sk","otpInput":"Ia6IojY","error":"yJs9MaD"};
1493
+
1494
+ const BACKSPACE = 8;
1495
+ const LEFT_ARROW = 37;
1496
+ const RIGHT_ARROW = 39;
1497
+ const DELETE = 46;
1498
+ const SPACEBAR = 32;
1499
+ const OTPInputFunction = (props, ref) => {
1500
+ const { maxLength = 1, placeholder, className } = props, restProps = tslib_es6.__rest(props, ["maxLength", "placeholder", "className"]);
1501
+ return (React__namespace["default"].createElement("input", Object.assign({ maxLength: maxLength, className: cn__default["default"](styles$1.otpInput, 'otpInput', className), placeholder: placeholder, type: "number" }, restProps, { ref: ref })));
1502
+ };
1503
+ const OTPInput = React.forwardRef(OTPInputFunction);
1504
+ const OTPFowardRef = (props, ref) => {
1505
+ const { valueLength = 6, type = 'number', value: valueProps, defaultValue, placeholder, onChange, onBlur, } = props;
1506
+ const inputRef = React.useRef(new Array(valueLength).fill(null));
1507
+ const [value, setValue] = React.useState(defaultValue || valueProps);
1508
+ const [activeOtp, setActiveOtp] = React.useState(-1);
1509
+ const [otp, setOtp] = React.useState(() => transferValueToOtp(value, valueLength));
1510
+ const changeCodeAtFocus = React.useCallback(() => {
1511
+ if (activeOtp === -1) {
1512
+ return;
1616
1513
  }
1617
- }
1618
- return (React__namespace["default"].createElement("div", { className: `${styles$1.flag} ${className || ''}`, style: {
1619
- '--width': width || 20,
1620
- '--height': height || 20,
1621
- } }, rounded ? flagRounded : flag));
1622
- };
1514
+ const activeInput = inputRef.current[activeOtp];
1515
+ if (activeInput) {
1516
+ activeInput.value = '';
1517
+ const newOtp = otp;
1518
+ newOtp[activeOtp] = '';
1519
+ setOtp(newOtp);
1520
+ setValue(() => transferOtpToValue(newOtp));
1521
+ onChange === null || onChange === void 0 ? void 0 : onChange(transferOtpToValue(newOtp));
1522
+ }
1523
+ }, [activeOtp, onChange, otp]);
1524
+ const focusPrevInput = React.useCallback(() => {
1525
+ if (activeOtp === 0) {
1526
+ return;
1527
+ }
1528
+ const curInput = inputRef.current[activeOtp];
1529
+ if (curInput) {
1530
+ curInput.blur();
1531
+ }
1532
+ const prevInput = inputRef.current[activeOtp - 1];
1533
+ if (prevInput) {
1534
+ prevInput.focus();
1535
+ }
1536
+ }, [activeOtp]);
1537
+ const focusNextInput = React.useCallback(() => {
1538
+ if (activeOtp === valueLength - 1) {
1539
+ return;
1540
+ }
1541
+ const curInput = inputRef.current[activeOtp];
1542
+ if (curInput) {
1543
+ curInput.blur();
1544
+ }
1545
+ const nextInput = inputRef.current[activeOtp + 1];
1546
+ if (nextInput) {
1547
+ nextInput.focus();
1548
+ }
1549
+ }, [activeOtp, valueLength]);
1550
+ const inputOnChange = React.useCallback((e) => {
1551
+ const target = e.target;
1552
+ const targetValue = target.value;
1553
+ const code = targetValue.toString().slice(0, 1);
1554
+ const indexTarget = inputRef.current.findIndex((input) => input === target);
1555
+ if (indexTarget !== -1) {
1556
+ const newOtp = otp;
1557
+ newOtp[indexTarget] = code;
1558
+ setOtp(newOtp);
1559
+ setValue(() => transferOtpToValue(newOtp));
1560
+ onChange === null || onChange === void 0 ? void 0 : onChange(transferOtpToValue(newOtp));
1561
+ }
1562
+ focusNextInput();
1563
+ }, [focusNextInput, onChange, otp]);
1564
+ const inputOnFocus = React.useCallback((e) => {
1565
+ const target = e.target;
1566
+ const targetIndex = inputRef.current.findIndex((input) => input === target);
1567
+ if (type === 'number') {
1568
+ target.select();
1569
+ }
1570
+ else {
1571
+ target.setSelectionRange(0, target.value.length, 'backward');
1572
+ }
1573
+ if (targetIndex !== -1) {
1574
+ setActiveOtp(targetIndex);
1575
+ }
1576
+ }, []);
1577
+ const inputOnPaste = React.useCallback((e) => {
1578
+ const clipboard = e.clipboardData.getData('text/plain');
1579
+ const newOtp = transferValueToOtp(clipboard, valueLength);
1580
+ const newValue = transferOtpToValue(newOtp);
1581
+ setOtp(newOtp);
1582
+ setValue(newValue);
1583
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
1584
+ }, [onChange, type, valueLength]);
1585
+ // Handle cases of backspace, delete, left arrow, right arrow, space
1586
+ const inputOnKeyDown = React.useCallback((e) => {
1587
+ if (e.keyCode === BACKSPACE || e.key === 'Backspace') {
1588
+ e.preventDefault();
1589
+ changeCodeAtFocus();
1590
+ focusPrevInput();
1591
+ }
1592
+ else if (e.keyCode === DELETE || e.key === 'Delete') {
1593
+ e.preventDefault();
1594
+ changeCodeAtFocus();
1595
+ }
1596
+ else if (e.keyCode === LEFT_ARROW || e.key === 'ArrowLeft') {
1597
+ e.preventDefault();
1598
+ focusPrevInput();
1599
+ }
1600
+ else if (e.keyCode === RIGHT_ARROW || e.key === 'ArrowRight') {
1601
+ e.preventDefault();
1602
+ focusNextInput();
1603
+ }
1604
+ else if (e.keyCode === SPACEBAR ||
1605
+ e.key === ' ' ||
1606
+ e.key === 'Spacebar' ||
1607
+ e.key === 'Space') {
1608
+ e.preventDefault();
1609
+ }
1610
+ }, [changeCodeAtFocus, focusNextInput, focusPrevInput]);
1611
+ React.useImperativeHandle(ref, () => inputRef.current[0], []);
1612
+ React.useEffect(() => {
1613
+ setOtp(() => transferValueToOtp(valueProps, valueLength));
1614
+ setValue(valueProps);
1615
+ }, [valueLength, valueProps]);
1616
+ return (React__namespace["default"].createElement(core.Flex, { justify: "center", columnGap: 8, className: cn__default["default"](styles$1.otpContainer, 'otpContainer') }, otp.map((val, index) => {
1617
+ return (React__namespace["default"].createElement(OTPInput, { ref: (iRef) => {
1618
+ inputRef.current[index] = iRef;
1619
+ }, key: '' + index, value: val, type: type, onChange: inputOnChange, onFocus: inputOnFocus, onKeyDown: inputOnKeyDown, onPaste: inputOnPaste, onBlur: onBlur, placeholder: placeholder }));
1620
+ })));
1621
+ };
1622
+ const OTP = React.forwardRef(OTPFowardRef);
1623
1623
 
1624
1624
  const countriesDefault = Object.values(index.siteOptions).reduce((countries, { phoneCountry: phone }) => {
1625
1625
  if (!countries.includes(phone)) {