@hhgtech/hhg-components 1.29.77 → 1.29.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) hide show
  1. package/build/{Instagram-10720435.js → Instagram-f68f1dae.js} +1 -1
  2. package/build/adapters.js +15 -15
  3. package/build/babyGrowth.js +80 -80
  4. package/build/cache.js +3 -3
  5. package/build/care.js +18 -18
  6. package/build/components/navigationV2/components/molecules/navigationBar/index.d.ts +2 -1
  7. package/build/components/navigationV2/index.d.ts +1 -0
  8. package/build/components.js +83 -82
  9. package/build/{constants-39c86c0a.js → constants-385d01e7.js} +2 -2
  10. package/build/constants.js +3 -3
  11. package/build/{core-44b6c361.js → core-e0799ceb.js} +2 -2
  12. package/build/{dataTransform-33582353.js → dataTransform-c8c14a28.js} +1 -1
  13. package/build/{utils-027dab7c.js → defaultClassWrapper-8ac3b7f0.js} +118 -392
  14. package/build/ecom.js +5 -5
  15. package/build/esm/{Instagram-becdb106.js → Instagram-8dd26ac6.js} +1 -1
  16. package/build/esm/adapters.js +15 -15
  17. package/build/esm/babyGrowth.js +81 -81
  18. package/build/esm/cache.js +3 -3
  19. package/build/esm/care.js +17 -17
  20. package/build/esm/components/navigationV2/components/molecules/navigationBar/index.d.ts +2 -1
  21. package/build/esm/components/navigationV2/index.d.ts +1 -0
  22. package/build/esm/components.js +59 -58
  23. package/build/esm/{constants-1cc39551.js → constants-5d6ab948.js} +2 -2
  24. package/build/esm/constants.js +3 -3
  25. package/build/esm/{core-adbcbe2f.js → core-296015da.js} +2 -2
  26. package/build/esm/{dataTransform-38a6ba25.js → dataTransform-0066c53b.js} +1 -1
  27. package/build/esm/{utils-e8c78fa7.js → defaultClassWrapper-8112e475.js} +108 -381
  28. package/build/esm/ecom.js +5 -5
  29. package/build/esm/footer.js +18 -18
  30. package/build/esm/gAssets.js +4 -4
  31. package/build/esm/{getDynamicHealthTool-fa828c1a.js → getDynamicHealthTool-7cf3f00e.js} +4 -4
  32. package/build/esm/{getSocialList-d49f96d5.js → getSocialList-f797bbe2.js} +31 -12
  33. package/build/esm/hooks.js +17 -17
  34. package/build/esm/i18n.js +2 -2
  35. package/build/esm/i18nV2.js +2 -2
  36. package/build/esm/index-043dfbc3.js +216 -0
  37. package/build/esm/{index-36e18ffd.js → index-09ecd45f.js} +37 -36
  38. package/build/esm/{index-c8e55b19.js → index-13975e28.js} +4 -4
  39. package/build/esm/{index-62a8b174.js → index-25209a23.js} +37 -37
  40. package/build/esm/{index-bffe0e7b.js → index-2da84fe8.js} +1 -1
  41. package/build/esm/{index-0fed808d.js → index-2e13488d.js} +2 -2
  42. package/build/esm/{index-2f968acd.js → index-30eb73b8.js} +3 -3
  43. package/build/esm/{index-de28335d.js → index-4e6d8f1c.js} +11 -11
  44. package/build/esm/{index-3d150702.js → index-5b69b19c.js} +2 -2
  45. package/build/esm/{index-258af431.js → index-5c2abf3a.js} +1052 -1052
  46. package/build/esm/{index-8450b670.js → index-62059a85.js} +2 -2
  47. package/build/esm/{index-95029090.js → index-6896ecdf.js} +2 -2
  48. package/build/esm/{index-d6a9a175.js → index-6c7832ac.js} +21 -21
  49. package/build/esm/{index-95b9fc82.js → index-70bb6ed3.js} +120 -120
  50. package/build/esm/{index-16af59c8.js → index-869411be.js} +10 -10
  51. package/build/esm/{index-3131a682.js → index-94f2f772.js} +2 -2
  52. package/build/esm/{constants-2eb60c45.js → index-9dd8721c.js} +113 -113
  53. package/build/esm/{index-ae717003.js → index-a2404202.js} +2 -2
  54. package/build/esm/{index-d62e3f04.js → index-ad1d81e3.js} +2 -2
  55. package/build/esm/{index-bb71b6ce.js → index-b45321ac.js} +6 -6
  56. package/build/esm/{index-a1f5a5c0.js → index-b851beaf.js} +1 -1
  57. package/build/esm/index-b9666693.js +298 -0
  58. package/build/esm/{index-9e37013f.js → index-c8e5b7ad.js} +5 -5
  59. package/build/esm/{index-c6d9afaf.js → index-dd00700b.js} +2 -2
  60. package/build/esm/{index-26a17cf1.js → index-e80cb404.js} +12 -12
  61. package/build/esm/{index-2dfe0c66.js → index-ed317f58.js} +62 -62
  62. package/build/esm/{index-10f8055c.js → index-f160e379.js} +2 -2
  63. package/build/esm/{index-8ac7b919.js → index-fc868dc0.js} +5 -5
  64. package/build/esm/index.css +1 -1
  65. package/build/esm/index.js +66 -65
  66. package/build/esm/{index.styled-64a9c965.js → index.styled-19fa0003.js} +2 -2
  67. package/build/esm/{index.styles-d670cbe0.js → index.styles-0693a12e.js} +78 -78
  68. package/build/esm/lead.js +28 -28
  69. package/build/esm/mantine.js +20 -20
  70. package/build/esm/misc.js +23 -20
  71. package/build/esm/navigation.js +35 -35
  72. package/build/esm/onboardingV2.js +32 -32
  73. package/build/esm/pwg.js +19 -19
  74. package/build/esm/{routing-878abd29.js → routing-ddff6eb9.js} +2 -2
  75. package/build/esm/subot.js +27 -233
  76. package/build/esm/together.js +35 -35
  77. package/build/esm/{types-a9beb2c2.js → types-1ab8164a.js} +13 -13
  78. package/build/esm/{types-7d111505.js → types-29a56da4.js} +30 -30
  79. package/build/esm/types.js +1 -1
  80. package/build/esm/{useCategory-d9b70788.js → useCategory-00116196.js} +5 -5
  81. package/build/esm/{useHealthToolCache-606d76d5.js → useHealthToolCache-298307bc.js} +2 -2
  82. package/build/esm/{useMantineLocale-4a5da5bb.js → useMantineLocale-e9d07649.js} +3 -3
  83. package/build/esm/{usePlacesAutocomplete-ec3d3a0c.js → usePlacesAutocomplete-3c09ae6c.js} +1 -1
  84. package/build/esm/{useTranslations-d90d5386.js → useTranslations-ee0ed7e4.js} +1 -1
  85. package/build/esm/{utils-9a265ccf.js → utils-70fb5414.js} +4 -4
  86. package/build/esm/{utils-0a07daac.js → utils-98843bdc.js} +1 -1
  87. package/build/esm/vaccination.js +26 -26
  88. package/build/footer.js +18 -18
  89. package/build/gAssets.js +4 -4
  90. package/build/{getDynamicHealthTool-407c625b.js → getDynamicHealthTool-fe5aca1c.js} +4 -4
  91. package/build/{getSocialList-4bfd3bcd.js → getSocialList-717ee974.js} +32 -13
  92. package/build/hooks.js +17 -17
  93. package/build/i18n.js +1 -1
  94. package/build/i18nV2.js +1 -1
  95. package/build/{index-9c6a769a.js → index-172570c5.js} +5 -5
  96. package/build/{index-2ad99c01.js → index-266faebd.js} +2 -2
  97. package/build/{index-44c62bda.js → index-297519c0.js} +3 -3
  98. package/build/{index-389ed3cc.js → index-2dd62be1.js} +12 -12
  99. package/build/{index-1867685a.js → index-2ed617c9.js} +6 -6
  100. package/build/{index-9b49e11b.js → index-2f39a918.js} +4 -4
  101. package/build/{index-a9b49c5d.js → index-3f5ce427.js} +11 -11
  102. package/build/{index-26695c30.js → index-3fea5307.js} +2 -2
  103. package/build/{index-38f1f6f3.js → index-50cc6ee0.js} +22 -22
  104. package/build/{index-f9919edd.js → index-58d6aa20.js} +10 -10
  105. package/build/{index-5ef6d523.js → index-657d308e.js} +2 -2
  106. package/build/{constants-451fe312.js → index-714baad1.js} +113 -113
  107. package/build/{index-028a4e83.js → index-888fe1c7.js} +2 -2
  108. package/build/{index-8fbffaaf.js → index-896cf1e8.js} +55 -55
  109. package/build/{index-b3edc143.js → index-8bbc5f6c.js} +2 -2
  110. package/build/{index-b2fc27d1.js → index-a74e681a.js} +1 -1
  111. package/build/{index-2ef89336.js → index-bd99a93f.js} +1050 -1050
  112. package/build/{index-358bd4c9.js → index-c6d8ee38.js} +68 -68
  113. package/build/{index-ebe8498b.js → index-ca2880f5.js} +48 -47
  114. package/build/index-d37fb502.js +233 -0
  115. package/build/{index-8c0b1c02.js → index-d98b6533.js} +2 -2
  116. package/build/{index-65c1110f.js → index-de879d05.js} +120 -120
  117. package/build/{index-41aeff4b.js → index-e1d386b9.js} +7 -7
  118. package/build/{index-23af6839.js → index-e76edc59.js} +8 -8
  119. package/build/{index-10b71661.js → index-f5c1576f.js} +2 -2
  120. package/build/{WhatsApp-3fd26435.js → index-fbc4ad0a.js} +276 -1
  121. package/build/{index-38b2495c.js → index-fd9e9e31.js} +2 -2
  122. package/build/index.css +1 -1
  123. package/build/index.js +108 -107
  124. package/build/{index.styled-07682ea0.js → index.styled-cd56f718.js} +2 -2
  125. package/build/{index.styles-7b2242d2.js → index.styles-15b57fec.js} +83 -83
  126. package/build/lead.js +28 -28
  127. package/build/mantine.js +17 -17
  128. package/build/misc.js +23 -20
  129. package/build/navigation.js +35 -35
  130. package/build/onboardingV2.js +31 -31
  131. package/build/pwg.js +19 -19
  132. package/build/{routing-b981f60b.js → routing-101c464a.js} +2 -2
  133. package/build/subot.js +338 -545
  134. package/build/together.js +40 -40
  135. package/build/{types-efd3a733.js → types-65270049.js} +49 -49
  136. package/build/{types-44e5bb3b.js → types-bc9b7ff5.js} +191 -191
  137. package/build/types.js +1 -1
  138. package/build/{useCategory-afc35cb8.js → useCategory-99167875.js} +5 -5
  139. package/build/{useHealthToolCache-a2d8b96c.js → useHealthToolCache-347a7553.js} +2 -2
  140. package/build/{useMantineLocale-b2014fa7.js → useMantineLocale-67d093f5.js} +3 -3
  141. package/build/{usePlacesAutocomplete-6c1d9d08.js → usePlacesAutocomplete-0d428f7d.js} +1 -1
  142. package/build/{useTranslations-7cf26ebc.js → useTranslations-ddee03e3.js} +1 -1
  143. package/build/{utils-2bce0db7.js → utils-bc89f5c8.js} +4 -4
  144. package/build/{utils-5ef558ae.js → utils-f2b61d2c.js} +1 -1
  145. package/build/vaccination.js +26 -26
  146. package/package.json +1 -1
  147. package/build/esm/WhatsApp-ea79e6c6.js +0 -24
  148. /package/build/{BMI_BOYS.percentile.monthly-cb72630c.js → BMI_BOYS.percentile.monthly-2dbe6dbf.js} +0 -0
  149. /package/build/{BMI_BOYS.percentile.weekly-d0234fe6.js → BMI_BOYS.percentile.weekly-68fd0e8a.js} +0 -0
  150. /package/build/{BMI_BOYS.percentile.yearly-45f72d65.js → BMI_BOYS.percentile.yearly-a334f00f.js} +0 -0
  151. /package/build/{BMI_BOYS.zscore.monthly-1d54e60c.js → BMI_BOYS.zscore.monthly-f1f1e40c.js} +0 -0
  152. /package/build/{BMI_BOYS.zscore.weekly-3a7f8b58.js → BMI_BOYS.zscore.weekly-eaadf495.js} +0 -0
  153. /package/build/{BMI_BOYS.zscore.yearly-2e2fde40.js → BMI_BOYS.zscore.yearly-ee0a8baa.js} +0 -0
  154. /package/build/{BMI_GIRLS.percentile.monthly-0b957ea8.js → BMI_GIRLS.percentile.monthly-2a4322e1.js} +0 -0
  155. /package/build/{BMI_GIRLS.percentile.weekly-35358161.js → BMI_GIRLS.percentile.weekly-8d2160f3.js} +0 -0
  156. /package/build/{BMI_GIRLS.percentile.yearly-86cf64c3.js → BMI_GIRLS.percentile.yearly-e305a1c3.js} +0 -0
  157. /package/build/{BMI_GIRLS.zscore.monthly-9c33405d.js → BMI_GIRLS.zscore.monthly-370967e2.js} +0 -0
  158. /package/build/{BMI_GIRLS.zscore.weekly-1756b9f7.js → BMI_GIRLS.zscore.weekly-82dbdbeb.js} +0 -0
  159. /package/build/{BMI_GIRLS.zscore.yearly-f1a80a3f.js → BMI_GIRLS.zscore.yearly-b624b0c5.js} +0 -0
  160. /package/build/{ChevronDown-4759a935.js → ChevronDown-6a728605.js} +0 -0
  161. /package/build/{Close-0228d203.js → Close-6a790433.js} +0 -0
  162. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-6b654f6e.js → HEAD CIRCUM_BOYS.percentile.monthly-2d793b40.js} +0 -0
  163. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-57dd7208.js → HEAD CIRCUM_BOYS.percentile.weekly-3ec0fbcd.js} +0 -0
  164. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-cfbf8e37.js → HEAD CIRCUM_BOYS.percentile.yearly-018cfad7.js} +0 -0
  165. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-2fdfecbf.js → HEAD CIRCUM_BOYS.zscore.monthly-9a92fc56.js} +0 -0
  166. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-b9088de4.js → HEAD CIRCUM_BOYS.zscore.weekly-ec5c1b66.js} +0 -0
  167. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-c6448a06.js → HEAD CIRCUM_BOYS.zscore.yearly-1bbc9e90.js} +0 -0
  168. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-8cebd1c4.js → HEAD CIRCUM_GIRLS.percentile.monthly-88bf7054.js} +0 -0
  169. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-799abee7.js → HEAD CIRCUM_GIRLS.percentile.weekly-48abc5c8.js} +0 -0
  170. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-b183def6.js → HEAD CIRCUM_GIRLS.percentile.yearly-eb5476be.js} +0 -0
  171. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-c3c54f79.js → HEAD CIRCUM_GIRLS.zscore.monthly-b4908eed.js} +0 -0
  172. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-e3c9e267.js → HEAD CIRCUM_GIRLS.zscore.weekly-bb3b5b73.js} +0 -0
  173. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-66f1302c.js → HEAD CIRCUM_GIRLS.zscore.yearly-9e459c3a.js} +0 -0
  174. /package/build/{HEIGHT_BOYS.percentile.monthly-bc422249.js → HEIGHT_BOYS.percentile.monthly-de26b886.js} +0 -0
  175. /package/build/{HEIGHT_BOYS.percentile.weekly-56e69b4e.js → HEIGHT_BOYS.percentile.weekly-2b1a480e.js} +0 -0
  176. /package/build/{HEIGHT_BOYS.percentile.yearly-9dcdc2e4.js → HEIGHT_BOYS.percentile.yearly-9e11bf8a.js} +0 -0
  177. /package/build/{HEIGHT_BOYS.zscore.monthly-3d513fd7.js → HEIGHT_BOYS.zscore.monthly-169b72ab.js} +0 -0
  178. /package/build/{HEIGHT_BOYS.zscore.weekly-e4db0dd5.js → HEIGHT_BOYS.zscore.weekly-1f51ea7a.js} +0 -0
  179. /package/build/{HEIGHT_BOYS.zscore.yearly-20b4c77d.js → HEIGHT_BOYS.zscore.yearly-2defb1ff.js} +0 -0
  180. /package/build/{HEIGHT_GIRLS.percentile.monthly-4492f4fd.js → HEIGHT_GIRLS.percentile.monthly-ff09a166.js} +0 -0
  181. /package/build/{HEIGHT_GIRLS.percentile.weekly-98a1ca0d.js → HEIGHT_GIRLS.percentile.weekly-bdbad8b3.js} +0 -0
  182. /package/build/{HEIGHT_GIRLS.percentile.yearly-e22a6bba.js → HEIGHT_GIRLS.percentile.yearly-a7cf5de3.js} +0 -0
  183. /package/build/{HEIGHT_GIRLS.zscore.monthly-638e6a18.js → HEIGHT_GIRLS.zscore.monthly-bc88d68f.js} +0 -0
  184. /package/build/{HEIGHT_GIRLS.zscore.weekly-31393170.js → HEIGHT_GIRLS.zscore.weekly-4b1bb4f7.js} +0 -0
  185. /package/build/{HEIGHT_GIRLS.zscore.yearly-2bf0a4a8.js → HEIGHT_GIRLS.zscore.yearly-6d54fcc8.js} +0 -0
  186. /package/build/{Visible-47686e3a.js → Visible-cf684c77.js} +0 -0
  187. /package/build/{WEIGHT_BOYS.percentile.monthly-f4167182.js → WEIGHT_BOYS.percentile.monthly-69735b17.js} +0 -0
  188. /package/build/{WEIGHT_BOYS.percentile.weekly-e1a5993f.js → WEIGHT_BOYS.percentile.weekly-60881421.js} +0 -0
  189. /package/build/{WEIGHT_BOYS.percentile.yearly-2e427419.js → WEIGHT_BOYS.percentile.yearly-bac67ed1.js} +0 -0
  190. /package/build/{WEIGHT_BOYS.zscore.monthly-8fb3a2b7.js → WEIGHT_BOYS.zscore.monthly-e9254299.js} +0 -0
  191. /package/build/{WEIGHT_BOYS.zscore.weekly-ebcff8a7.js → WEIGHT_BOYS.zscore.weekly-6b82cd2d.js} +0 -0
  192. /package/build/{WEIGHT_BOYS.zscore.yearly-fb7bb26f.js → WEIGHT_BOYS.zscore.yearly-43cc1986.js} +0 -0
  193. /package/build/{WEIGHT_GIRLS.percentile.monthly-e7848f0f.js → WEIGHT_GIRLS.percentile.monthly-38847b2b.js} +0 -0
  194. /package/build/{WEIGHT_GIRLS.percentile.weekly-337f576e.js → WEIGHT_GIRLS.percentile.weekly-2ac2ee92.js} +0 -0
  195. /package/build/{WEIGHT_GIRLS.percentile.yearly-6ee35204.js → WEIGHT_GIRLS.percentile.yearly-3401e100.js} +0 -0
  196. /package/build/{WEIGHT_GIRLS.zscore.monthly-4390e00e.js → WEIGHT_GIRLS.zscore.monthly-4f257d09.js} +0 -0
  197. /package/build/{WEIGHT_GIRLS.zscore.weekly-b2742b05.js → WEIGHT_GIRLS.zscore.weekly-fe8ea3a5.js} +0 -0
  198. /package/build/{WEIGHT_GIRLS.zscore.yearly-fea85463.js → WEIGHT_GIRLS.zscore.yearly-c780b33b.js} +0 -0
  199. /package/build/{animation-6fbad6af.js → animation-6f210c4a.js} +0 -0
  200. /package/build/{cart-c527be69.js → cart-d48967a8.js} +0 -0
  201. /package/build/{cookieHelper-2f7b8bb5.js → cookieHelper-6fa2ed3a.js} +0 -0
  202. /package/build/{doctor-c26d2588.js → doctor-d70d0f31.js} +0 -0
  203. /package/build/esm/{BMI_BOYS.percentile.monthly-68db008a.js → BMI_BOYS.percentile.monthly-2c7cf81c.js} +0 -0
  204. /package/build/esm/{BMI_BOYS.percentile.weekly-48ca1732.js → BMI_BOYS.percentile.weekly-963d00dc.js} +0 -0
  205. /package/build/esm/{BMI_BOYS.percentile.yearly-ae0d3d02.js → BMI_BOYS.percentile.yearly-4eea698f.js} +0 -0
  206. /package/build/esm/{BMI_BOYS.zscore.monthly-3a642bb7.js → BMI_BOYS.zscore.monthly-f5544376.js} +0 -0
  207. /package/build/esm/{BMI_BOYS.zscore.weekly-249d18d3.js → BMI_BOYS.zscore.weekly-4656cd4c.js} +0 -0
  208. /package/build/esm/{BMI_BOYS.zscore.yearly-4f9791ee.js → BMI_BOYS.zscore.yearly-39ccd0fd.js} +0 -0
  209. /package/build/esm/{BMI_GIRLS.percentile.monthly-3b599a05.js → BMI_GIRLS.percentile.monthly-d7501958.js} +0 -0
  210. /package/build/esm/{BMI_GIRLS.percentile.weekly-16607ad8.js → BMI_GIRLS.percentile.weekly-315ba23e.js} +0 -0
  211. /package/build/esm/{BMI_GIRLS.percentile.yearly-73336b57.js → BMI_GIRLS.percentile.yearly-5afebffb.js} +0 -0
  212. /package/build/esm/{BMI_GIRLS.zscore.monthly-8f848687.js → BMI_GIRLS.zscore.monthly-9c659c70.js} +0 -0
  213. /package/build/esm/{BMI_GIRLS.zscore.weekly-8e2a9f4a.js → BMI_GIRLS.zscore.weekly-f72193e8.js} +0 -0
  214. /package/build/esm/{BMI_GIRLS.zscore.yearly-e34dfaa4.js → BMI_GIRLS.zscore.yearly-33a16ebf.js} +0 -0
  215. /package/build/esm/{ChevronDown-c0329f44.js → ChevronDown-51088ad9.js} +0 -0
  216. /package/build/esm/{Close-d87e464b.js → Close-851c8b38.js} +0 -0
  217. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-527dce16.js → HEAD CIRCUM_BOYS.percentile.monthly-522b5435.js} +0 -0
  218. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-98dd0a97.js → HEAD CIRCUM_BOYS.percentile.weekly-72d04552.js} +0 -0
  219. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-8166ecf3.js → HEAD CIRCUM_BOYS.percentile.yearly-e68e4904.js} +0 -0
  220. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-30285ff5.js → HEAD CIRCUM_BOYS.zscore.monthly-89b9b642.js} +0 -0
  221. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-cb5a5177.js → HEAD CIRCUM_BOYS.zscore.weekly-c8c2ae6a.js} +0 -0
  222. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-6fb22cde.js → HEAD CIRCUM_BOYS.zscore.yearly-0cf56dc8.js} +0 -0
  223. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-04b6b926.js → HEAD CIRCUM_GIRLS.percentile.monthly-ef9dbfc9.js} +0 -0
  224. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-1241a9ec.js → HEAD CIRCUM_GIRLS.percentile.weekly-831567fe.js} +0 -0
  225. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-744c910b.js → HEAD CIRCUM_GIRLS.percentile.yearly-0e89170b.js} +0 -0
  226. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-d84c6e78.js → HEAD CIRCUM_GIRLS.zscore.monthly-82564fb7.js} +0 -0
  227. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-6b9ca043.js → HEAD CIRCUM_GIRLS.zscore.weekly-6b1845ec.js} +0 -0
  228. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-8d2bfd9b.js → HEAD CIRCUM_GIRLS.zscore.yearly-6b65120d.js} +0 -0
  229. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-99472da3.js → HEIGHT_BOYS.percentile.monthly-ecfdee13.js} +0 -0
  230. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-1aee0bde.js → HEIGHT_BOYS.percentile.weekly-2bae8fa8.js} +0 -0
  231. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-38092fb0.js → HEIGHT_BOYS.percentile.yearly-4cf5eb0c.js} +0 -0
  232. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-f3f65922.js → HEIGHT_BOYS.zscore.monthly-5978dd63.js} +0 -0
  233. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-70d2afc1.js → HEIGHT_BOYS.zscore.weekly-0e20ae65.js} +0 -0
  234. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-4e6e2a36.js → HEIGHT_BOYS.zscore.yearly-9f9ecc92.js} +0 -0
  235. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-f5deee2b.js → HEIGHT_GIRLS.percentile.monthly-244b7899.js} +0 -0
  236. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-0c657519.js → HEIGHT_GIRLS.percentile.weekly-867f533c.js} +0 -0
  237. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-1deed5e9.js → HEIGHT_GIRLS.percentile.yearly-8334ef62.js} +0 -0
  238. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-cb644457.js → HEIGHT_GIRLS.zscore.monthly-89dc2f92.js} +0 -0
  239. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-49dd8375.js → HEIGHT_GIRLS.zscore.weekly-c37a8e45.js} +0 -0
  240. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-950158e4.js → HEIGHT_GIRLS.zscore.yearly-d75c7342.js} +0 -0
  241. /package/build/esm/{Visible-73c96479.js → Visible-2b82b731.js} +0 -0
  242. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-2ed3f112.js → WEIGHT_BOYS.percentile.monthly-afa954cf.js} +0 -0
  243. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-3ced9bfa.js → WEIGHT_BOYS.percentile.weekly-0ce8ca9d.js} +0 -0
  244. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-e200a25c.js → WEIGHT_BOYS.percentile.yearly-9bc9d108.js} +0 -0
  245. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-4a00ce48.js → WEIGHT_BOYS.zscore.monthly-c41e3c26.js} +0 -0
  246. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-cbd95b9c.js → WEIGHT_BOYS.zscore.weekly-927605d1.js} +0 -0
  247. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-70fa4821.js → WEIGHT_BOYS.zscore.yearly-10a9c6a3.js} +0 -0
  248. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-e887c3ea.js → WEIGHT_GIRLS.percentile.monthly-c3957e70.js} +0 -0
  249. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-01c5ac35.js → WEIGHT_GIRLS.percentile.weekly-5413b078.js} +0 -0
  250. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-27fc7e31.js → WEIGHT_GIRLS.percentile.yearly-fbef8c0c.js} +0 -0
  251. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-bf8085a6.js → WEIGHT_GIRLS.zscore.monthly-e89aa92b.js} +0 -0
  252. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-729252a6.js → WEIGHT_GIRLS.zscore.weekly-7a014b5a.js} +0 -0
  253. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-7aae5db4.js → WEIGHT_GIRLS.zscore.yearly-0cae1bb9.js} +0 -0
  254. /package/build/esm/{animation-791a5496.js → animation-89cd92dc.js} +0 -0
  255. /package/build/esm/{cart-24fe471a.js → cart-b5b2f9c9.js} +0 -0
  256. /package/build/esm/{cookieHelper-dc30b23e.js → cookieHelper-6839de86.js} +0 -0
  257. /package/build/esm/{doctor-407e7c56.js → doctor-a16d5a2a.js} +0 -0
  258. /package/build/esm/{index-24b9c26b.js → index-207e5a99.js} +0 -0
  259. /package/build/esm/{index-e39cfd72.js → index-3f16918f.js} +0 -0
  260. /package/build/esm/{index-a3f9e8d3.js → index-b1dfbcd9.js} +0 -0
  261. /package/build/esm/{isProduction-34384c12.js → isProduction-6557a7a7.js} +0 -0
  262. /package/build/esm/{localizeNumberFormat-674a367b.js → localizeNumberFormat-1efb07bf.js} +0 -0
  263. /package/build/esm/{normalizeLink-8ab2c8da.js → normalizeLink-9adb98bb.js} +0 -0
  264. /package/build/esm/{number-ba9ba596.js → number-7673e170.js} +0 -0
  265. /package/build/esm/{paths-50f78662.js → paths-1a0405c1.js} +0 -0
  266. /package/build/esm/{theme-f9fa9f7d.js → theme-676e1d3e.js} +0 -0
  267. /package/build/esm/{translationsContext-af680337.js → translationsContext-b00d46fa.js} +0 -0
  268. /package/build/esm/{tslib.es6-8f144c22.js → tslib.es6-42d35711.js} +0 -0
  269. /package/build/esm/{useIsInit-8490d361.js → useIsInit-d65429ab.js} +0 -0
  270. /package/build/esm/{useOutsideClick-43bfe834.js → useOutsideClick-3b36c560.js} +0 -0
  271. /package/build/esm/{useScrollbarSize-7162b71f.js → useScrollbarSize-7cfe3d07.js} +0 -0
  272. /package/build/esm/{useUniqueId-472fb987.js → useUniqueId-28b8a8d2.js} +0 -0
  273. /package/build/esm/{utils-1997593f.js → utils-0f3667a8.js} +0 -0
  274. /package/build/{index-e8aa716f.js → index-0c11098b.js} +0 -0
  275. /package/build/{index-058eef4b.js → index-3d1716ad.js} +0 -0
  276. /package/build/{index-f9037c98.js → index-c4b66929.js} +0 -0
  277. /package/build/{index-bc8ea61e.js → index-d38624f2.js} +0 -0
  278. /package/build/{isProduction-38f0d828.js → isProduction-cc2f71e7.js} +0 -0
  279. /package/build/{localizeNumberFormat-a3608c43.js → localizeNumberFormat-72f6c627.js} +0 -0
  280. /package/build/{normalizeLink-e4b395be.js → normalizeLink-37b001e0.js} +0 -0
  281. /package/build/{number-9ed235ec.js → number-3c00e9ff.js} +0 -0
  282. /package/build/{paths-e9129f2e.js → paths-22150d98.js} +0 -0
  283. /package/build/{theme-9f0f3820.js → theme-040e6fd9.js} +0 -0
  284. /package/build/{translationsContext-bfbdca60.js → translationsContext-bece07e0.js} +0 -0
  285. /package/build/{tslib.es6-fd9cd13e.js → tslib.es6-a8c3b1ed.js} +0 -0
  286. /package/build/{useIsInit-35d2df26.js → useIsInit-78fbbf00.js} +0 -0
  287. /package/build/{useOutsideClick-1f18b14b.js → useOutsideClick-f4ac5964.js} +0 -0
  288. /package/build/{useScrollbarSize-645a7822.js → useScrollbarSize-df8fb771.js} +0 -0
  289. /package/build/{useUniqueId-07b21aa4.js → useUniqueId-a3ed3f40.js} +0 -0
  290. /package/build/{utils-07a0efea.js → utils-a2ad9aa3.js} +0 -0
@@ -1,21 +1,21 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('./tslib.es6-fd9cd13e.js');
3
+ var tslib_es6 = require('./tslib.es6-a8c3b1ed.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-b3edc143.js');
9
- var utils = require('./utils-07a0efea.js');
8
+ var index$2 = require('./index-8bbc5f6c.js');
9
+ var utils = require('./utils-a2ad9aa3.js');
10
10
  var styled = require('@emotion/styled');
11
11
  var carousel = require('@mantine/carousel');
12
- var index$3 = require('./index-5ef6d523.js');
13
- var index$1 = require('./index-bc8ea61e.js');
14
- var theme = require('./theme-9f0f3820.js');
15
- var useMantineLocale = require('./useMantineLocale-b2014fa7.js');
16
- var index = require('./index-38b2495c.js');
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');
17
17
  var cn = require('classnames');
18
- var useUniqueId = require('./useUniqueId-07b21aa4.js');
18
+ var useUniqueId = require('./useUniqueId-a3ed3f40.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,24 +346,242 @@ const getMantineThemeOverride = (locale, template = 'hb') => {
346
346
  };
347
347
  };
348
348
 
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)));
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);
357
398
  };
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;
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)));
455
+ };
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;
363
494
  }
364
495
  `;
365
496
 
366
497
  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) => {
367
585
  var _a, _b, _c, _d, _e, _f;
368
586
  const { other } = _theme;
369
587
  const { template } = other;
@@ -536,7 +754,7 @@ const Button = (props) => {
536
754
  const theme = core.useMantineTheme();
537
755
  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"]);
538
756
  const isError = variant === 'error';
539
- const { classes, cx } = useStyles$4({
757
+ const { classes, cx } = useStyles$3({
540
758
  variant,
541
759
  size,
542
760
  color,
@@ -551,1075 +769,857 @@ const Button = (props) => {
551
769
  }, variant: MAPPED_VARIANT[variant], "data-variant": variant, "data-event-category": dataEventCategory, "data-event-action": dataEventAction, "data-event-label": dataEventLabel }, rest), children));
552
770
  };
553
771
 
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)));
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
+ `;
556
780
 
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" }))));
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
+ });
601
810
 
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)));
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
+ `;
604
845
 
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" }))));
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));
614
849
  };
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" })))));
850
+ const Accordion = _Accordion;
851
+ Accordion.Control = core.Accordion.Control;
852
+ Accordion.Item = core.Accordion.Item;
853
+ Accordion.Panel = core.Accordion.Panel;
854
+
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)));
863
+ };
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();
625
890
  };
626
891
 
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" })));
892
+ const FileInput = (props) => {
893
+ return React__namespace["default"].createElement(core.FileInput, Object.assign({ size: "md" }, props));
894
+ };
662
895
 
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" })));
896
+ const DEBOUNCED_TIME = 300;
897
+ const emotionCache = core.createEmotionCache({
898
+ key: 'mantine',
899
+ prepend: false,
900
+ });
684
901
 
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)));
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
+ };
687
918
 
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" })));
727
-
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" })));
739
-
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" }))));
752
-
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
- };
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
+ });
845
927
 
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('');
864
- };
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))),
869
- }
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('');
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
- : {}))));
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) || ''}` })));
888
946
  });
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" })));
947
+ const Input = InputWrapper;
948
+ Input.File = FileInput;
949
+ Input.Password = PasswordInput;
950
+ Input.Number = NumberInput;
951
+ Input.Wrapper = core.Input.Wrapper;
891
952
 
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());
953
+ const StyledSlide = carousel.Carousel.Slide;
954
+
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);
904
962
  React.useEffect(() => {
905
- const handleResize = () => {
906
- setIsMobile(getIsMobile());
907
- setIsLargeMobile(getIsLargeMobile());
908
- };
909
- window.addEventListener('resize', handleResize, {
910
- passive: true,
911
- });
912
- return () => {
913
- window.removeEventListener('resize', handleResize);
914
- };
963
+ key.current = String(Math.round(Math.random() * 10000));
915
964
  }, []);
916
- return { isMobile, isLargeMobile };
917
- };
918
-
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);
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,
973
+ };
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;
936
1004
  }
937
- return this.props.children;
938
- }
939
- }
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
+ },
1067
+ };
1068
+ 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
+ })),
1078
+ });
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;
940
1088
 
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)));
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)));
952
1104
  };
953
- const Carousel = CarouselWrapper$1;
954
- Carousel.Slide = carousel.Carousel.Slide;
1105
+ const Checkbox = CheckboxWrapper;
1106
+ Checkbox.Group = core.Checkbox.Group;
955
1107
 
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;
968
- }
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
- );
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
+ }
1135
+
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};
977
1152
  }
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
- );
1153
+ }
1154
+ [data-theme='marryBaby'] & {
1155
+ button {
1156
+ path:not([stroke]) {
1157
+ stroke: ${theme.theme.mbColors.pink};
1158
+ }
986
1159
  }
987
1160
  }
1161
+ `;
988
1162
 
989
- .mantine-Carousel-container {
990
- align-items: center;
991
- }
992
- `;
993
-
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
- });
1004
-
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
- };
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;
1010
1183
 
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
- };
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
+ }
1015
1199
 
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
- };
1200
+ var styles$2 = {"otpContainer":"_2iQs0sk","otpInput":"Ia6IojY","error":"yJs9MaD"};
1025
1201
 
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);
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
+ }
1041
1284
  }, []);
1042
- React.useEffect(() => {
1043
- if (embla) {
1044
- embla.on('scroll', handleScroll);
1045
- embla.on('pointerUp', handlePointerUp);
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();
1046
1299
  }
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))));
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
+ 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
+ })));
1077
1329
  };
1078
- const Breadcrumbs = _Breadcrumbs;
1079
- Breadcrumbs.Item = BreadcrumbItem;
1330
+ const OTP = React.forwardRef(OTPFowardRef);
1080
1331
 
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
- `;
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)));
1089
1334
 
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
- });
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" }))));
1119
1379
 
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
- `;
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)));
1154
1382
 
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));
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" }))));
1158
1392
  };
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();
1182
- };
1183
-
1184
- const FileInput = (props) => {
1185
- return React__namespace["default"].createElement(core.FileInput, Object.assign({ size: "md" }, props));
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" })))));
1186
1403
  };
1187
1404
 
1188
- const DEBOUNCED_TIME = 300;
1189
- const emotionCache = core.createEmotionCache({
1190
- key: 'mantine',
1191
- prepend: false,
1192
- });
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" })));
1193
1440
 
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
- };
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" })));
1210
1462
 
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
- });
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)));
1219
1465
 
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;
1244
-
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
- `;
1454
-
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;
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" })));
1475
1505
 
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
- });
1485
- }
1486
- return otp;
1487
- }
1488
- function transferOtpToValue(otp) {
1489
- return otp.join('');
1490
- }
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" })));
1491
1517
 
1492
- var styles$1 = {"otpContainer":"_2iQs0sk","otpInput":"Ia6IojY","error":"yJs9MaD"};
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" }))));
1493
1530
 
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;
1513
- }
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();
1531
+ var styles$1 = {"flag":"pfaLGRK"};
1532
+
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;
1577
+ }
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;
1609
1616
  }
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);
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
+ };
1623
1623
 
1624
1624
  const countriesDefault = Object.values(index.siteOptions).reduce((countries, { phoneCountry: phone }) => {
1625
1625
  if (!countries.includes(phone)) {