@hhgtech/hhg-components 1.29.79 → 1.29.81

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 (346) hide show
  1. package/build/{index-aefa01a7.js → WhatsApp-82018096.js} +24 -276
  2. package/build/adapters.js +17 -16
  3. package/build/atoms.js +100 -0
  4. package/build/babyGrowth.js +162 -164
  5. package/build/cache.js +3 -3
  6. package/build/care.js +18 -18
  7. package/build/components.js +179 -163
  8. package/build/{constants-94957c92.js → constants-3a475a22.js} +2 -2
  9. package/build/constants-513a9a41.js +318 -0
  10. package/build/{index-6036e2a0.js → constants-936f45e9.js} +0 -136
  11. package/build/constants-dd16fb4d.js +425 -0
  12. package/build/constants.js +3 -3
  13. package/build/{core-279a7b4f.js → core-9e44ee99.js} +2 -2
  14. package/build/{index-5033f644.js → dataTransform-6b4d7a4e.js} +85 -134
  15. package/build/{dataTransform-1c96db25.js → dataTransform-c1701cbd.js} +1 -1
  16. package/build/defaultClassWrapper-e87ca8ef.js +21 -0
  17. package/build/ecom.js +5 -5
  18. package/build/esm/WhatsApp-7d3732e2.js +46 -0
  19. package/build/esm/adapters.js +17 -16
  20. package/build/esm/atoms.js +57 -0
  21. package/build/esm/babyGrowth.js +87 -89
  22. package/build/esm/cache.js +3 -3
  23. package/build/esm/care.js +17 -17
  24. package/build/esm/components.js +91 -75
  25. package/build/esm/constants-6bdb97a8.js +417 -0
  26. package/build/esm/constants-71d9f33b.js +307 -0
  27. package/build/esm/{constants-78d473b4.js → constants-ebf80e5f.js} +2 -2
  28. package/build/esm/{index-122dd8ee.js → constants-f77fc231.js} +1 -127
  29. package/build/esm/constants.js +3 -3
  30. package/build/esm/{core-2715a7c7.js → core-c72e0ff5.js} +2 -2
  31. package/build/esm/{index-f672661d.js → dataTransform-3e8e25ba.js} +87 -135
  32. package/build/esm/{dataTransform-24bd11e8.js → dataTransform-6c032113.js} +1 -1
  33. package/build/esm/defaultClassWrapper-31caf23b.js +15 -0
  34. package/build/esm/ecom.js +5 -5
  35. package/build/esm/fixedBottomAdBlock-13ed4a34.js +3474 -0
  36. package/build/esm/footer.js +18 -18
  37. package/build/esm/gAssets.js +4 -4
  38. package/build/esm/{getDynamicHealthTool-d805169a.js → getDynamicHealthTool-7681e43a.js} +4 -4
  39. package/build/esm/{getSocialList-c8edb201.js → getSocialList-e8142513.js} +5 -6
  40. package/build/esm/healthToolsForm.js +40 -0
  41. package/build/esm/healthToolsForms.d.ts +7 -0
  42. package/build/esm/hooks.js +17 -17
  43. package/build/esm/i18n.js +2 -2
  44. package/build/esm/i18nV2.js +2 -2
  45. package/build/esm/index-16514f4d.js +156 -0
  46. package/build/esm/{index-2a4e676a.js → index-1da2ca0b.js} +2 -2
  47. package/build/esm/{utils-45e55363.js → index-1ecbcf21.js} +71 -105
  48. package/build/esm/{index-e2d856fc.js → index-21eac858.js} +1043 -1232
  49. package/build/esm/{index-c5b3a3ba.js → index-2774583d.js} +35 -176
  50. package/build/esm/index-29d04985.js +14 -0
  51. package/build/esm/index-2b9213cf.js +195 -0
  52. package/build/esm/index-3078acec.js +275 -0
  53. package/build/esm/index-376bee14.js +847 -0
  54. package/build/esm/index-38f50764.js +557 -0
  55. package/build/esm/index-42ad7763.js +95 -0
  56. package/build/esm/{index-47a90477.js → index-598ab51b.js} +5 -5
  57. package/build/esm/{index-ecb46439.js → index-69248434.js} +33 -5
  58. package/build/esm/index-6ac73f00.js +1114 -0
  59. package/build/esm/index-703205e3.js +54 -0
  60. package/build/esm/{index-7c6316a6.js → index-73301602.js} +2 -2
  61. package/build/esm/index-76d20d3f.js +100 -0
  62. package/build/esm/{index-ec38e886.js → index-780a08de.js} +2 -2
  63. package/build/esm/{index-92fd8661.js → index-78255d6c.js} +2 -2
  64. package/build/esm/{index-9b3bf9da.js → index-7cbe2a10.js} +12 -11
  65. package/build/esm/{index-5265867b.js → index-7e756cb8.js} +11 -10
  66. package/build/esm/{index.styled-eb1001c3.js → index-87a2ea8c.js} +21 -3
  67. package/build/esm/index-88ad2ca3.js +1681 -0
  68. package/build/esm/index-8952ceac.js +202 -0
  69. package/build/esm/index-996f7caf.js +148 -0
  70. package/build/esm/{index-272d3d01.js → index-9f1899f2.js} +4 -4
  71. package/build/esm/{index-63be4c47.js → index-b1bb27aa.js} +134 -62
  72. package/build/esm/{index-ef96fd13.js → index-bef3c9bd.js} +3 -3
  73. package/build/esm/{index-670d21ca.js → index-c1af3a8e.js} +13 -12
  74. package/build/esm/{index-b2eed677.js → index-c200bff6.js} +2 -2
  75. package/build/esm/{index-0de64a0f.js → index-cb4afb33.js} +6 -6
  76. package/build/esm/{index-741ce3ab.js → index-cdac57da.js} +1 -1
  77. package/build/esm/{index-49d819b7.js → index-cf6beac8.js} +2 -13
  78. package/build/esm/{index-ad5c69c9.js → index-d218b94e.js} +2 -2
  79. package/build/esm/index-d6201fa4.js +42 -0
  80. package/build/esm/index-e104ad21.js +335 -0
  81. package/build/esm/index-e26514ee.js +262 -0
  82. package/build/esm/index-f27edf45.js +130 -0
  83. package/build/esm/index.css +1 -1
  84. package/build/esm/index.js +89 -73
  85. package/build/esm/lead.js +23 -33
  86. package/build/esm/logoIcon-d93bc56e.js +104 -0
  87. package/build/esm/mantine.js +22 -20
  88. package/build/esm/misc.js +21 -21
  89. package/build/esm/molecules.js +88 -0
  90. package/build/esm/navigation.js +37 -37
  91. package/build/esm/onboardingV2.js +26 -35
  92. package/build/esm/organisms.js +57 -0
  93. package/build/esm/pwg.js +19 -19
  94. package/build/esm/{routing-e7ff0e08.js → routing-bebdc8b7.js} +2 -2
  95. package/build/esm/subot.js +31 -27
  96. package/build/esm/surveyOrPremiumBanner.js +45 -0
  97. package/build/esm/surveyQuestionCard.js +13 -0
  98. package/build/esm/surveyThankyouCard-bf6080eb.js +446 -0
  99. package/build/esm/together.js +35 -37
  100. package/build/esm/{types-37f2c5d4.js → types-2580132c.js} +28 -30
  101. package/build/esm/{types-ce933060.js → types-be952df2.js} +13 -13
  102. package/build/esm/types.js +1 -1
  103. package/build/esm/{useCategory-8e1387db.js → useCategory-8f109eb7.js} +5 -5
  104. package/build/esm/{useHealthToolCache-28115f15.js → useHealthToolCache-d97dfa00.js} +2 -2
  105. package/build/esm/{useMantineLocale-bcfdeb0c.js → useMantineLocale-4fb67342.js} +3 -3
  106. package/build/esm/{usePlacesAutocomplete-837f491d.js → usePlacesAutocomplete-fe2e4cbe.js} +1 -1
  107. package/build/esm/{useTranslations-b8c49c9b.js → useTranslations-fbf6a6ab.js} +1 -1
  108. package/build/esm/{utils-86ef2283.js → utils-cef111b6.js} +1 -1
  109. package/build/esm/{defaultClassWrapper-fcdfc7a3.js → utils-d5a0b58f.js} +60 -408
  110. package/build/esm/vaccination.js +18 -29
  111. package/build/fixedBottomAdBlock-0d4379d1.js +3521 -0
  112. package/build/footer.js +18 -18
  113. package/build/gAssets.js +4 -4
  114. package/build/{getDynamicHealthTool-27b332df.js → getDynamicHealthTool-2a92e1a5.js} +4 -4
  115. package/build/{getSocialList-d16604ba.js → getSocialList-97e7bcc1.js} +8 -9
  116. package/build/healthToolsForm.js +54 -0
  117. package/build/healthToolsForms.d.ts +7 -0
  118. package/build/hooks.js +17 -17
  119. package/build/i18n.js +1 -1
  120. package/build/i18nV2.js +1 -1
  121. package/build/index-058b3c0f.js +1127 -0
  122. package/build/{index-e914bc7c.js → index-05f106c2.js} +1050 -1240
  123. package/build/index-06fa8444.js +102 -0
  124. package/build/{index-e932125b.js → index-1efa7d84.js} +2 -2
  125. package/build/index-247a9eb2.js +1693 -0
  126. package/build/{index-4f5ce9db.js → index-264eeddd.js} +2 -2
  127. package/build/index-3d0d22b3.js +565 -0
  128. package/build/index-3dcb9bc6.js +61 -0
  129. package/build/{index-aff82754.js → index-4af08ec2.js} +2 -2
  130. package/build/index-6acb08c0.js +343 -0
  131. package/build/{index-1b7f73fa.js → index-6bc3f8c3.js} +5 -5
  132. package/build/{index-a903fdaa.js → index-6c27b627.js} +58 -201
  133. package/build/index-73cde644.js +156 -0
  134. package/build/{index-65765b10.js → index-77a2b9ee.js} +1 -1
  135. package/build/{index-dbaa00eb.js → index-7c1dc717.js} +12 -11
  136. package/build/index-7da7b531.js +107 -0
  137. package/build/{index-8c04d412.js → index-838b0f95.js} +6 -6
  138. package/build/index-a7de42d1.js +202 -0
  139. package/build/{index-517f6538.js → index-a86ea1b6.js} +2 -2
  140. package/build/index-aa818139.js +49 -0
  141. package/build/{index-4cd9cc62.js → index-b773bc3d.js} +4 -4
  142. package/build/index-bef2bc73.js +136 -0
  143. package/build/{utils-120200ad.js → index-c225ef22.js} +76 -120
  144. package/build/{index-42621fec.js → index-c2900d8c.js} +2 -2
  145. package/build/index-cb0544e5.js +866 -0
  146. package/build/{index-5aac5fb6.js → index-d34cd464.js} +2 -2
  147. package/build/{index-4026b8c5.js → index-d5b4089d.js} +141 -68
  148. package/build/index-dba2e361.js +20 -0
  149. package/build/{index-586f0a4f.js → index-dcbd8bf3.js} +37 -9
  150. package/build/index-dd1392e3.js +167 -0
  151. package/build/{index-875d81d3.js → index-def9867a.js} +11 -10
  152. package/build/index-e0bf03ac.js +277 -0
  153. package/build/index-ee964d3c.js +209 -0
  154. package/build/index-f10efb61.js +270 -0
  155. package/build/{index-701c74a1.js → index-f1f4fbb9.js} +13 -12
  156. package/build/{index-27c71242.js → index-f28c47ce.js} +1 -13
  157. package/build/{index-e39f5b25.js → index-f6575703.js} +2 -2
  158. package/build/{index.styled-8c14cf6c.js → index-fe7345fa.js} +22 -4
  159. package/build/index.css +1 -1
  160. package/build/index.js +190 -174
  161. package/build/lead.js +29 -39
  162. package/build/logoIcon-ee9a5501.js +110 -0
  163. package/build/mantine.js +24 -23
  164. package/build/misc.js +21 -21
  165. package/build/molecules.js +149 -0
  166. package/build/navigation.js +37 -37
  167. package/build/onboardingV2.js +45 -54
  168. package/build/organisms.js +74 -0
  169. package/build/pwg.js +19 -19
  170. package/build/{routing-40d4f591.js → routing-f6d54205.js} +2 -2
  171. package/build/subot.js +113 -109
  172. package/build/surveyOrPremiumBanner.js +53 -0
  173. package/build/surveyQuestionCard.js +22 -0
  174. package/build/surveyThankyouCard-ead6b355.js +454 -0
  175. package/build/together.js +41 -43
  176. package/build/{types-692f1edc.js → types-4ba4268f.js} +49 -49
  177. package/build/{types-ade68559.js → types-6c5643a2.js} +203 -205
  178. package/build/types.js +1 -1
  179. package/build/{useCategory-bbe47716.js → useCategory-e2c91f59.js} +5 -5
  180. package/build/{useHealthToolCache-80cb8990.js → useHealthToolCache-2a53367b.js} +2 -2
  181. package/build/{useMantineLocale-97b962eb.js → useMantineLocale-a4f0c61d.js} +3 -3
  182. package/build/{usePlacesAutocomplete-99a452c0.js → usePlacesAutocomplete-c76d0caf.js} +1 -1
  183. package/build/{useTranslations-76f64595.js → useTranslations-200168a3.js} +1 -1
  184. package/build/{defaultClassWrapper-feaae206.js → utils-95d9832e.js} +68 -427
  185. package/build/{utils-dc4471cf.js → utils-af695515.js} +1 -1
  186. package/build/vaccination.js +58 -69
  187. package/package.json +1 -1
  188. package/build/Instagram-5735e971.js +0 -32
  189. package/build/esm/Instagram-98c713bc.js +0 -26
  190. package/build/esm/index-18a80466.js +0 -33
  191. package/build/esm/index-1f6890ad.js +0 -1086
  192. package/build/esm/index-40fc06d9.js +0 -298
  193. package/build/esm/index-47d01c08.js +0 -23
  194. package/build/esm/index-687f9ee4.js +0 -71
  195. package/build/esm/index-aeb4ceda.js +0 -7245
  196. package/build/esm/index.styles-bff4ac47.js +0 -1322
  197. package/build/index-561d71d9.js +0 -7324
  198. package/build/index-5ff91adf.js +0 -39
  199. package/build/index-74b64958.js +0 -77
  200. package/build/index-84f7ce80.js +0 -30
  201. package/build/index-c9e324de.js +0 -1100
  202. package/build/index.styles-61201019.js +0 -1361
  203. /package/build/{BMI_BOYS.percentile.monthly-b2166d34.js → BMI_BOYS.percentile.monthly-71fb1c9f.js} +0 -0
  204. /package/build/{BMI_BOYS.percentile.weekly-8b80b329.js → BMI_BOYS.percentile.weekly-b2b344a7.js} +0 -0
  205. /package/build/{BMI_BOYS.percentile.yearly-233e699b.js → BMI_BOYS.percentile.yearly-031ddade.js} +0 -0
  206. /package/build/{BMI_BOYS.zscore.monthly-17ed8572.js → BMI_BOYS.zscore.monthly-bb1f9962.js} +0 -0
  207. /package/build/{BMI_BOYS.zscore.weekly-36c9735b.js → BMI_BOYS.zscore.weekly-d6198d53.js} +0 -0
  208. /package/build/{BMI_BOYS.zscore.yearly-e43d7246.js → BMI_BOYS.zscore.yearly-48255337.js} +0 -0
  209. /package/build/{BMI_GIRLS.percentile.monthly-94ddebb1.js → BMI_GIRLS.percentile.monthly-e3e284ee.js} +0 -0
  210. /package/build/{BMI_GIRLS.percentile.weekly-dc53474b.js → BMI_GIRLS.percentile.weekly-9f2d3977.js} +0 -0
  211. /package/build/{BMI_GIRLS.percentile.yearly-897e47f7.js → BMI_GIRLS.percentile.yearly-c79f34ce.js} +0 -0
  212. /package/build/{BMI_GIRLS.zscore.monthly-44dcd046.js → BMI_GIRLS.zscore.monthly-11092df0.js} +0 -0
  213. /package/build/{BMI_GIRLS.zscore.weekly-6e9400e5.js → BMI_GIRLS.zscore.weekly-5c375d2b.js} +0 -0
  214. /package/build/{BMI_GIRLS.zscore.yearly-3cd8c63d.js → BMI_GIRLS.zscore.yearly-adbba8e3.js} +0 -0
  215. /package/build/{ChevronDown-2775b53a.js → ChevronDown-f7e25d61.js} +0 -0
  216. /package/build/{Close-f419724f.js → Close-36b0da99.js} +0 -0
  217. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-35ed4380.js → HEAD CIRCUM_BOYS.percentile.monthly-163b99ad.js} +0 -0
  218. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-c7dc736d.js → HEAD CIRCUM_BOYS.percentile.weekly-c9882014.js} +0 -0
  219. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-4c3b2318.js → HEAD CIRCUM_BOYS.percentile.yearly-9d2bc91e.js} +0 -0
  220. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-1f1cc8dd.js → HEAD CIRCUM_BOYS.zscore.monthly-1d2a215c.js} +0 -0
  221. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-67593063.js → HEAD CIRCUM_BOYS.zscore.weekly-1f139c91.js} +0 -0
  222. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-197c548c.js → HEAD CIRCUM_BOYS.zscore.yearly-ba15501b.js} +0 -0
  223. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-47029e7a.js → HEAD CIRCUM_GIRLS.percentile.monthly-a546201a.js} +0 -0
  224. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-faf6b122.js → HEAD CIRCUM_GIRLS.percentile.weekly-66cd5a7e.js} +0 -0
  225. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-f79cdc09.js → HEAD CIRCUM_GIRLS.percentile.yearly-9db3c653.js} +0 -0
  226. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-329fc5a0.js → HEAD CIRCUM_GIRLS.zscore.monthly-0405e2cb.js} +0 -0
  227. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-aa73a5d6.js → HEAD CIRCUM_GIRLS.zscore.weekly-b2cc3ad2.js} +0 -0
  228. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-5fdab08f.js → HEAD CIRCUM_GIRLS.zscore.yearly-3115f993.js} +0 -0
  229. /package/build/{HEIGHT_BOYS.percentile.monthly-190579ee.js → HEIGHT_BOYS.percentile.monthly-35138a98.js} +0 -0
  230. /package/build/{HEIGHT_BOYS.percentile.weekly-d902f59f.js → HEIGHT_BOYS.percentile.weekly-0216c35b.js} +0 -0
  231. /package/build/{HEIGHT_BOYS.percentile.yearly-87254461.js → HEIGHT_BOYS.percentile.yearly-f698e45d.js} +0 -0
  232. /package/build/{HEIGHT_BOYS.zscore.monthly-c741a8bb.js → HEIGHT_BOYS.zscore.monthly-01195728.js} +0 -0
  233. /package/build/{HEIGHT_BOYS.zscore.weekly-c0b2c6c0.js → HEIGHT_BOYS.zscore.weekly-993e9cf2.js} +0 -0
  234. /package/build/{HEIGHT_BOYS.zscore.yearly-1a506923.js → HEIGHT_BOYS.zscore.yearly-fee3ed69.js} +0 -0
  235. /package/build/{HEIGHT_GIRLS.percentile.monthly-9b2b4c93.js → HEIGHT_GIRLS.percentile.monthly-27b2474a.js} +0 -0
  236. /package/build/{HEIGHT_GIRLS.percentile.weekly-5ddecf9a.js → HEIGHT_GIRLS.percentile.weekly-77bff236.js} +0 -0
  237. /package/build/{HEIGHT_GIRLS.percentile.yearly-fa289855.js → HEIGHT_GIRLS.percentile.yearly-6200a720.js} +0 -0
  238. /package/build/{HEIGHT_GIRLS.zscore.monthly-c9db2d0d.js → HEIGHT_GIRLS.zscore.monthly-94978e64.js} +0 -0
  239. /package/build/{HEIGHT_GIRLS.zscore.weekly-c38c0951.js → HEIGHT_GIRLS.zscore.weekly-7951beb1.js} +0 -0
  240. /package/build/{HEIGHT_GIRLS.zscore.yearly-d78a2a93.js → HEIGHT_GIRLS.zscore.yearly-c2eca714.js} +0 -0
  241. /package/build/{Visible-34df6ee7.js → Visible-eee51ba6.js} +0 -0
  242. /package/build/{WEIGHT_BOYS.percentile.monthly-7a5f3721.js → WEIGHT_BOYS.percentile.monthly-6a6f901b.js} +0 -0
  243. /package/build/{WEIGHT_BOYS.percentile.weekly-d86f23fa.js → WEIGHT_BOYS.percentile.weekly-737fb867.js} +0 -0
  244. /package/build/{WEIGHT_BOYS.percentile.yearly-c154651c.js → WEIGHT_BOYS.percentile.yearly-7772b5e5.js} +0 -0
  245. /package/build/{WEIGHT_BOYS.zscore.monthly-8f39952a.js → WEIGHT_BOYS.zscore.monthly-8db2e7d6.js} +0 -0
  246. /package/build/{WEIGHT_BOYS.zscore.weekly-3118363f.js → WEIGHT_BOYS.zscore.weekly-ddd37c1a.js} +0 -0
  247. /package/build/{WEIGHT_BOYS.zscore.yearly-d463cfe7.js → WEIGHT_BOYS.zscore.yearly-332a8f7b.js} +0 -0
  248. /package/build/{WEIGHT_GIRLS.percentile.monthly-4d025f09.js → WEIGHT_GIRLS.percentile.monthly-3edad688.js} +0 -0
  249. /package/build/{WEIGHT_GIRLS.percentile.weekly-89f1f560.js → WEIGHT_GIRLS.percentile.weekly-f113a82a.js} +0 -0
  250. /package/build/{WEIGHT_GIRLS.percentile.yearly-e79630f6.js → WEIGHT_GIRLS.percentile.yearly-95afbeaf.js} +0 -0
  251. /package/build/{WEIGHT_GIRLS.zscore.monthly-64bd7db5.js → WEIGHT_GIRLS.zscore.monthly-d27c4bd4.js} +0 -0
  252. /package/build/{WEIGHT_GIRLS.zscore.weekly-628674eb.js → WEIGHT_GIRLS.zscore.weekly-2b113519.js} +0 -0
  253. /package/build/{WEIGHT_GIRLS.zscore.yearly-5bb1b712.js → WEIGHT_GIRLS.zscore.yearly-c82b04db.js} +0 -0
  254. /package/build/{animation-21a29164.js → animation-e1375a3b.js} +0 -0
  255. /package/build/{cart-cd1f9e9e.js → cart-67147d06.js} +0 -0
  256. /package/build/{cookieHelper-6fd4e238.js → cookieHelper-17491ce8.js} +0 -0
  257. /package/build/{doctor-15fac518.js → doctor-17b525f8.js} +0 -0
  258. /package/build/esm/{BMI_BOYS.percentile.monthly-bc430a4a.js → BMI_BOYS.percentile.monthly-7c9d4923.js} +0 -0
  259. /package/build/esm/{BMI_BOYS.percentile.weekly-404f8241.js → BMI_BOYS.percentile.weekly-c410294a.js} +0 -0
  260. /package/build/esm/{BMI_BOYS.percentile.yearly-cc6a1393.js → BMI_BOYS.percentile.yearly-695a4fe2.js} +0 -0
  261. /package/build/esm/{BMI_BOYS.zscore.monthly-e94926d8.js → BMI_BOYS.zscore.monthly-9fb9f281.js} +0 -0
  262. /package/build/esm/{BMI_BOYS.zscore.weekly-8d1da103.js → BMI_BOYS.zscore.weekly-d2109e4b.js} +0 -0
  263. /package/build/esm/{BMI_BOYS.zscore.yearly-94f8b37e.js → BMI_BOYS.zscore.yearly-bfa5361b.js} +0 -0
  264. /package/build/esm/{BMI_GIRLS.percentile.monthly-356bd71d.js → BMI_GIRLS.percentile.monthly-f5f60596.js} +0 -0
  265. /package/build/esm/{BMI_GIRLS.percentile.weekly-72979d47.js → BMI_GIRLS.percentile.weekly-26e4e864.js} +0 -0
  266. /package/build/esm/{BMI_GIRLS.percentile.yearly-729c84f5.js → BMI_GIRLS.percentile.yearly-5a2b297d.js} +0 -0
  267. /package/build/esm/{BMI_GIRLS.zscore.monthly-6dea8018.js → BMI_GIRLS.zscore.monthly-4e80bed5.js} +0 -0
  268. /package/build/esm/{BMI_GIRLS.zscore.weekly-da7a5d01.js → BMI_GIRLS.zscore.weekly-03b79f0b.js} +0 -0
  269. /package/build/esm/{BMI_GIRLS.zscore.yearly-0b0a5cae.js → BMI_GIRLS.zscore.yearly-822ed949.js} +0 -0
  270. /package/build/esm/{ChevronDown-5f18ca6b.js → ChevronDown-74267eb8.js} +0 -0
  271. /package/build/esm/{Close-87c65991.js → Close-372aa467.js} +0 -0
  272. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-1c910c23.js → HEAD CIRCUM_BOYS.percentile.monthly-21b04c4c.js} +0 -0
  273. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-2da702f0.js → HEAD CIRCUM_BOYS.percentile.weekly-049a9d97.js} +0 -0
  274. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-9fbeb684.js → HEAD CIRCUM_BOYS.percentile.yearly-a4bbbaba.js} +0 -0
  275. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-c93df36e.js → HEAD CIRCUM_BOYS.zscore.monthly-7cb348c6.js} +0 -0
  276. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-930f82b2.js → HEAD CIRCUM_BOYS.zscore.weekly-678a1a52.js} +0 -0
  277. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-f7523042.js → HEAD CIRCUM_BOYS.zscore.yearly-db81b17e.js} +0 -0
  278. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-d93ddef7.js → HEAD CIRCUM_GIRLS.percentile.monthly-cee33cd5.js} +0 -0
  279. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-2c7db258.js → HEAD CIRCUM_GIRLS.percentile.weekly-2cec19c3.js} +0 -0
  280. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-07202ee1.js → HEAD CIRCUM_GIRLS.percentile.yearly-5949e664.js} +0 -0
  281. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-fafa785c.js → HEAD CIRCUM_GIRLS.zscore.monthly-7c2bffab.js} +0 -0
  282. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-28b41bdb.js → HEAD CIRCUM_GIRLS.zscore.weekly-356dd00a.js} +0 -0
  283. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-c5b3bc8b.js → HEAD CIRCUM_GIRLS.zscore.yearly-e7b62215.js} +0 -0
  284. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-0a092d31.js → HEIGHT_BOYS.percentile.monthly-359c4335.js} +0 -0
  285. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-5827b445.js → HEIGHT_BOYS.percentile.weekly-a4d4acd3.js} +0 -0
  286. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-b88283c2.js → HEIGHT_BOYS.percentile.yearly-ec9a7f9b.js} +0 -0
  287. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-d275f074.js → HEIGHT_BOYS.zscore.monthly-12331258.js} +0 -0
  288. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-20bbf392.js → HEIGHT_BOYS.zscore.weekly-172054d3.js} +0 -0
  289. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-2eea3a9c.js → HEIGHT_BOYS.zscore.yearly-bb47a3be.js} +0 -0
  290. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-9ad65492.js → HEIGHT_GIRLS.percentile.monthly-c93c0b34.js} +0 -0
  291. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-898065d3.js → HEIGHT_GIRLS.percentile.weekly-f1f83097.js} +0 -0
  292. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-ac5ceb79.js → HEIGHT_GIRLS.percentile.yearly-ccee4e55.js} +0 -0
  293. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-327bdfa5.js → HEIGHT_GIRLS.zscore.monthly-caf5410c.js} +0 -0
  294. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-e25ddbc7.js → HEIGHT_GIRLS.zscore.weekly-b1e28b0e.js} +0 -0
  295. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-5531c2e3.js → HEIGHT_GIRLS.zscore.yearly-c3af35d3.js} +0 -0
  296. /package/build/esm/{Visible-70c720bb.js → Visible-3f9d7dca.js} +0 -0
  297. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-e199416b.js → WEIGHT_BOYS.percentile.monthly-8a4647df.js} +0 -0
  298. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-0965076a.js → WEIGHT_BOYS.percentile.weekly-a2a6adf1.js} +0 -0
  299. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-d04404d7.js → WEIGHT_BOYS.percentile.yearly-073df8b7.js} +0 -0
  300. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-be1ae0cd.js → WEIGHT_BOYS.zscore.monthly-bb9e73d2.js} +0 -0
  301. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-8b6854c4.js → WEIGHT_BOYS.zscore.weekly-ef32ce7a.js} +0 -0
  302. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-bd90b96f.js → WEIGHT_BOYS.zscore.yearly-6cc77688.js} +0 -0
  303. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-a4bb8428.js → WEIGHT_GIRLS.percentile.monthly-a4b518bc.js} +0 -0
  304. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-c288d810.js → WEIGHT_GIRLS.percentile.weekly-dcedaebb.js} +0 -0
  305. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-73a5ae07.js → WEIGHT_GIRLS.percentile.yearly-9e66577e.js} +0 -0
  306. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-cbcfdab4.js → WEIGHT_GIRLS.zscore.monthly-c07cb81f.js} +0 -0
  307. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-185ff336.js → WEIGHT_GIRLS.zscore.weekly-9c5c3e8e.js} +0 -0
  308. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-c31a0aee.js → WEIGHT_GIRLS.zscore.yearly-e99ce511.js} +0 -0
  309. /package/build/esm/{animation-9a3ca482.js → animation-0b2299dc.js} +0 -0
  310. /package/build/esm/{cart-5f758c33.js → cart-f961dadc.js} +0 -0
  311. /package/build/esm/{cookieHelper-9c963e09.js → cookieHelper-73ce3871.js} +0 -0
  312. /package/build/esm/{doctor-1d62f054.js → doctor-8a07ca44.js} +0 -0
  313. /package/build/esm/{index-931414db.js → index-782fed08.js} +0 -0
  314. /package/build/esm/{index-4687d5f8.js → index-b65a8764.js} +0 -0
  315. /package/build/esm/{index-90e772e4.js → index-c3264b34.js} +0 -0
  316. /package/build/esm/{index-877eed06.js → index-e3787b20.js} +0 -0
  317. /package/build/esm/{isProduction-d39b7ab2.js → isProduction-5684a28c.js} +0 -0
  318. /package/build/esm/{localizeNumberFormat-f838842a.js → localizeNumberFormat-42ae8d89.js} +0 -0
  319. /package/build/esm/{normalizeLink-65565106.js → normalizeLink-d6f57223.js} +0 -0
  320. /package/build/esm/{number-cad310d0.js → number-13f075cf.js} +0 -0
  321. /package/build/esm/{paths-8fc18a86.js → paths-49a813e7.js} +0 -0
  322. /package/build/esm/{theme-eb1b39f6.js → theme-f18c2351.js} +0 -0
  323. /package/build/esm/{translationsContext-dfb42bf8.js → translationsContext-f3d1a7bd.js} +0 -0
  324. /package/build/esm/{tslib.es6-efad16cf.js → tslib.es6-761239c7.js} +0 -0
  325. /package/build/esm/{useIsInit-f341c0e8.js → useIsInit-ee864235.js} +0 -0
  326. /package/build/esm/{useOutsideClick-e10b28ce.js → useOutsideClick-7451aa57.js} +0 -0
  327. /package/build/esm/{useScrollbarSize-594c61c3.js → useScrollbarSize-84bb5b47.js} +0 -0
  328. /package/build/esm/{useUniqueId-d5f7586b.js → useUniqueId-c23213b6.js} +0 -0
  329. /package/build/esm/{utils-0d590d5e.js → utils-f8761b9d.js} +0 -0
  330. /package/build/{index-d54d6c50.js → index-97ebd7e1.js} +0 -0
  331. /package/build/{index-d8c60733.js → index-ba3797bb.js} +0 -0
  332. /package/build/{index-d628859e.js → index-bba97c2e.js} +0 -0
  333. /package/build/{index-0b957c10.js → index-df5cd44b.js} +0 -0
  334. /package/build/{isProduction-7f7f09ad.js → isProduction-aa963bf9.js} +0 -0
  335. /package/build/{localizeNumberFormat-011e6f65.js → localizeNumberFormat-90d4f9d5.js} +0 -0
  336. /package/build/{normalizeLink-23b10200.js → normalizeLink-451ae6d8.js} +0 -0
  337. /package/build/{number-249e0e0b.js → number-c2338382.js} +0 -0
  338. /package/build/{paths-02f54499.js → paths-e0bbfce7.js} +0 -0
  339. /package/build/{theme-416e0fd4.js → theme-e4f7f487.js} +0 -0
  340. /package/build/{translationsContext-6f3c14ea.js → translationsContext-39528d2f.js} +0 -0
  341. /package/build/{tslib.es6-dd1fc8f2.js → tslib.es6-7e140b89.js} +0 -0
  342. /package/build/{useIsInit-bb64ffbf.js → useIsInit-38cec0c4.js} +0 -0
  343. /package/build/{useOutsideClick-bd35bba1.js → useOutsideClick-e579e1ac.js} +0 -0
  344. /package/build/{useScrollbarSize-57b0fd8a.js → useScrollbarSize-5a8be010.js} +0 -0
  345. /package/build/{useUniqueId-4bafae28.js → useUniqueId-8929fe5f.js} +0 -0
  346. /package/build/{utils-3a589c92.js → utils-524bda7c.js} +0 -0
@@ -1,20 +1,21 @@
1
- import { _ as __rest, a as __awaiter } from './tslib.es6-efad16cf.js';
1
+ import { _ as __rest, a as __awaiter } from './tslib.es6-761239c7.js';
2
2
  import * as React from 'react';
3
- import React__default, { forwardRef, useState, useEffect, Component, useCallback, createContext, useContext, useRef, useMemo, useImperativeHandle } from 'react';
3
+ import React__default, { useState, forwardRef, useEffect, Component, useCallback, createContext, useContext, useRef, useMemo, useImperativeHandle } from 'react';
4
4
  import { ArrowDown, ArrowLeft, ArrowRight } from '@hhgtech/icons/other';
5
- import { em, Autocomplete, Image, ActionIcon, Select as Select$1, createStyles, AspectRatio as AspectRatio$1, useMantineTheme, Box, Breadcrumbs as Breadcrumbs$1, Button as Button$1, Textarea, Accordion as Accordion$1, Indicator, Avatar as Avatar$1, FileInput as FileInput$1, createEmotionCache, NumberInput as NumberInput$1, PasswordInput as PasswordInput$1, TextInput, Input as Input$1, Checkbox as Checkbox$1, Slider, Radio as Radio$1, Flex, rem, Tabs as Tabs$1, ScrollArea, Popover as Popover$1, Chip } from '@mantine/core';
5
+ import { em, Autocomplete, Image, ActionIcon, Select as Select$1, createStyles, AspectRatio as AspectRatio$1, useMantineTheme, Box, Breadcrumbs as Breadcrumbs$1, Textarea, Accordion as Accordion$1, Indicator, Avatar as Avatar$1, FileInput as FileInput$1, createEmotionCache, NumberInput as NumberInput$1, PasswordInput as PasswordInput$1, TextInput, Input as Input$1, Checkbox as Checkbox$1, Slider, Radio as Radio$1, Flex, rem, Tabs as Tabs$1, ScrollArea, Popover as Popover$1, Chip } from '@mantine/core';
6
6
  import { useUncontrolled, useDebouncedValue, useViewportSize, useResizeObserver, useDisclosure, useClickOutside } from '@mantine/hooks';
7
- import { C as CommonGAssets } from './index-92fd8661.js';
8
- import { B as Breakpoints } from './utils-0d590d5e.js';
7
+ import { C as CommonGAssets } from './index-78255d6c.js';
8
+ import { B as Breakpoints } from './utils-f8761b9d.js';
9
9
  import styled from '@emotion/styled';
10
10
  import { Carousel as Carousel$1 } from '@mantine/carousel';
11
- import { T as Text } from './index-b2eed677.js';
12
- import { L as LOCALE } from './index-877eed06.js';
13
- import { t as theme } from './theme-eb1b39f6.js';
14
- import { G as GlobalHeadingStyle } from './useMantineLocale-bcfdeb0c.js';
15
- import { I as ISO_FORMAT, s as siteOptions } from './index-ef96fd13.js';
11
+ import { T as Text } from './index-c200bff6.js';
12
+ import { L as LOCALE } from './index-e3787b20.js';
13
+ import { t as theme } from './theme-f18c2351.js';
14
+ import { G as GlobalHeadingStyle } from './useMantineLocale-4fb67342.js';
15
+ import { I as ISO_FORMAT, s as siteOptions } from './index-bef3c9bd.js';
16
+ import { A as ANIMATION_DURATION, B as Button } from './index-2b9213cf.js';
16
17
  import cn from 'classnames';
17
- import { a as useUniqueId } from './useUniqueId-d5f7586b.js';
18
+ import { a as useUniqueId } from './useUniqueId-c23213b6.js';
18
19
  import { Check, Plus } from '@hhgtech/icons/core';
19
20
 
20
21
  const GlobalButtonStyle = {
@@ -26,8 +27,6 @@ const GlobalButtonStyle = {
26
27
  },
27
28
  };
28
29
 
29
- const ANIMATION_DURATION = '100ms';
30
-
31
30
  const GlobalInputStyle = (locale) => {
32
31
  var _a;
33
32
  return ({
@@ -321,1280 +320,1092 @@ const getMantineThemeOverride = (locale, template = 'hb') => {
321
320
  };
322
321
  };
323
322
 
324
- const Select = forwardRef((_a, ref) => {
325
- var { keepSearch = false } = _a, props = __rest(_a, ["keepSearch"]);
326
- if (keepSearch) {
327
- return (React__default.createElement(_AutoComplete, Object.assign({}, props, { ref: ref })));
328
- }
329
- else {
330
- return React__default.createElement(_Select, Object.assign({}, props, { ref: ref }));
331
- }
332
- });
333
- const _AutoComplete = forwardRef((_a, ref) => {
334
- var { value, defaultValue, onChange, clearable } = _a, props = __rest(_a, ["value", "defaultValue", "onChange", "clearable"]);
335
- const [_value, handleChange] = useUncontrolled({
336
- value,
337
- defaultValue,
338
- onChange,
339
- });
340
- const onClear = () => {
341
- handleChange('');
342
- };
343
- return (React__default.createElement(Autocomplete, Object.assign({ ref: ref, rightSection: React__default.createElement(Image, { src: CommonGAssets.getAssetPath('chevron-down.svg'), fit: "none" }), size: "md", maxDropdownHeight: 300, onChange: (e) => handleChange(e), value: _value }, props, (clearable && (_value === null || _value === void 0 ? void 0 : _value.length) > 0
344
- ? {
345
- rightSection: (React__default.createElement(ActionIcon, { onClick: onClear, sx: { cursor: 'pointer' } },
346
- React__default.createElement(_IconSelect, null))),
347
- }
348
- : {}))));
349
- });
350
- const _Select = forwardRef((_a, ref) => {
351
- var { searchValue, onSearchChange } = _a, props = __rest(_a, ["searchValue", "onSearchChange"]);
352
- const [_searchValue, handleSearchChange] = useUncontrolled({
353
- defaultValue: '',
354
- value: searchValue,
355
- onChange: onSearchChange,
356
- });
357
- const onClear = () => {
358
- handleSearchChange('');
359
- };
360
- return (React__default.createElement(Select$1, Object.assign({ ref: ref, rightSection: React__default.createElement(ArrowDown, { size: 18 }), rightSectionProps: { style: { pointerEvents: 'none' } }, size: "md", maxDropdownHeight: 300, onSearchChange: (e) => handleSearchChange(e), searchValue: _searchValue }, props, (props.clearable && (_searchValue === null || _searchValue === void 0 ? void 0 : _searchValue.length) > 0
361
- ? {
362
- rightSection: (React__default.createElement(ActionIcon, { onClick: onClear, sx: { cursor: 'pointer' } },
363
- React__default.createElement(_IconSelect, null))),
364
- }
365
- : {}))));
366
- });
367
- const _IconSelect = () => (React__default.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" },
368
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.6665 9.99996C1.6665 5.39163 5.3915 1.66663 9.99984 1.66663C14.6082 1.66663 18.3332 5.39163 18.3332 9.99996C18.3332 14.6083 14.6082 18.3333 9.99984 18.3333C5.3915 18.3333 1.6665 14.6083 1.6665 9.99996ZM12.4083 13.5831C12.7333 13.9081 13.2583 13.9081 13.5833 13.5831C13.9 13.2581 13.9 12.7247 13.5833 12.4081L11.175 9.99973L13.5833 7.5914C13.9083 7.2664 13.9083 6.7414 13.5833 6.4164C13.2583 6.0914 12.7333 6.0914 12.4083 6.4164L10 8.82473L7.59167 6.4164C7.26667 6.0914 6.74167 6.0914 6.41667 6.4164C6.26063 6.57209 6.17293 6.78347 6.17293 7.0039C6.17293 7.22433 6.26063 7.43571 6.41667 7.5914L8.825 9.99973L6.41667 12.4081C6.26063 12.5638 6.17293 12.7751 6.17293 12.9956C6.17293 13.216 6.26063 13.4274 6.41667 13.5831C6.74167 13.9081 7.26667 13.9081 7.59167 13.5831L10 11.1747L12.4083 13.5831Z", fill: "#8C8C8C" })));
369
-
370
- const getIsMobile = () => {
371
- return (typeof window !== 'undefined' &&
372
- window.innerWidth < Breakpoints.BREAK_POINT_MOBILE);
373
- };
374
- const getIsLargeMobile = () => {
375
- return (typeof window !== 'undefined' &&
376
- window.innerWidth >= Breakpoints.BREAK_POINT_MOBILE &&
377
- window.innerWidth < Breakpoints.BREAK_POINT_PC);
378
- };
379
- const useScreenSize = () => {
380
- const [isMobile, setIsMobile] = useState(getIsMobile());
381
- const [isLargeMobile, setIsLargeMobile] = useState(getIsLargeMobile());
382
- useEffect(() => {
383
- const handleResize = () => {
384
- setIsMobile(getIsMobile());
385
- setIsLargeMobile(getIsLargeMobile());
386
- };
387
- window.addEventListener('resize', handleResize, {
388
- passive: true,
389
- });
390
- return () => {
391
- window.removeEventListener('resize', handleResize);
392
- };
393
- }, []);
394
- return { isMobile, isLargeMobile };
395
- };
396
-
397
- class ErrorBoundary extends Component {
398
- constructor() {
399
- super(...arguments);
400
- this.state = {
401
- hasError: false,
402
- };
403
- }
404
- static getDerivedStateFromError() {
405
- // Update state so the next render will show the fallback UI.
406
- return { hasError: true };
407
- }
408
- componentDidCatch(error, errorInfo) {
409
- console.error('Uncaught error:', error, errorInfo);
410
- }
411
- render() {
412
- if (this.state.hasError) {
413
- return this.props.fallback || React__default.createElement(React__default.Fragment, null);
414
- }
415
- return this.props.children;
416
- }
417
- }
418
-
419
- const CarouselWrapper$1 = (_a) => {
420
- var { slidesToShow = 1, children } = _a, props = __rest(_a, ["slidesToShow", "children"]);
421
- const length = Array.isArray(children) ? children.length : 1;
422
- if (!length)
423
- return null;
424
- return (React__default.createElement(ErrorBoundary, null,
425
- React__default.createElement(Carousel$1
426
- // get 2 precision number
427
- , Object.assign({
428
- // get 2 precision number
429
- slideSize: String(Math.floor((1 / slidesToShow) * 10000) / 100) + '%', containScroll: "trimSnaps" }, props), children)));
323
+ const ImageWrap = (_a) => {
324
+ var { alt, backupSrc, src, placeholderSrc, style, ref } = _a, props = __rest(_a, ["alt", "backupSrc", "src", "placeholderSrc", "style", "ref"]);
325
+ const [hasError, setHasError] = useState(false);
326
+ return (React__default.createElement(StyledImage, Object.assign({ loading: "lazy", alt: alt, onError: () => !hasError && setHasError(true), src: hasError ? backupSrc || src : src || backupSrc, style: Object.assign(Object.assign({}, (placeholderSrc
327
+ ? {
328
+ backgroundImage: `url(${placeholderSrc})`,
329
+ }
330
+ : {})), style), "data-has-placeholder": !!placeholderSrc, ref: ref }, props)));
430
331
  };
431
- const Carousel = CarouselWrapper$1;
432
- Carousel.Slide = Carousel$1.Slide;
433
-
434
- const StyledCarousel = styled(Carousel) `
435
- cursor: grab;
436
- width: 100%;
437
- .mantine-Carousel-control {
438
- background: rgb(255, 255, 255);
439
- opacity: 1;
440
- border: none;
441
- border-radius: 0;
442
- box-shadow: none;
443
- &[data-inactive] {
444
- opacity: 0;
445
- cursor: default;
446
- }
447
- &:first-child {
448
- padding-right: 24px;
449
- background: linear-gradient(
450
- 90deg,
451
- rgba(255, 255, 255, 1) 0%,
452
- rgba(255, 255, 255, 1) 50%,
453
- rgba(255, 255, 255, 0) 100%
454
- );
455
- }
456
- &:last-child {
457
- padding-left: 24px;
458
- background: linear-gradient(
459
- 270deg,
460
- rgba(255, 255, 255, 1) 0%,
461
- rgba(255, 255, 255, 1) 50%,
462
- rgba(255, 255, 255, 0) 100%
463
- );
464
- }
465
- }
466
-
467
- .mantine-Carousel-container {
468
- align-items: center;
332
+ const StyledImage = styled.img `
333
+ &[data-has-placeholder='true'] {
334
+ background-position: center;
335
+ background-repeat: no-repeat;
336
+ background-size: cover;
469
337
  }
470
338
  `;
471
339
 
472
- var useStyles$4 = createStyles((_theme, _params) => {
473
- return {
474
- root: {
475
- color: _params.color ||
476
- (_theme.primaryColor === 'hb'
477
- ? _theme.colors.hb[6]
478
- : _theme.fn.primaryColor()),
479
- },
480
- };
481
- });
340
+ const CambodiaRoundIcon = (props) => (React__default.createElement(ImageWrap, Object.assign({ alt: "round cambodia flag", src: CommonGAssets.getAssetPath('flags/cambodiaRound.png'), style: Object.assign({ borderRadius: '50%' }, props.style) }, props)));
341
+ const CambodiaSquareIcon = (props) => (React__default.createElement(ImageWrap, Object.assign({ alt: "square cambodia flag", src: CommonGAssets.getAssetPath('flags/cambodiaSquare.png') }, props)));
482
342
 
483
- const Anchor = (_a) => {
484
- var { color, styles, className } = _a, rest = __rest(_a, ["color", "styles", "className"]);
485
- const { classes, cx } = useStyles$4({ color }, { name: 'Anchor', styles });
486
- return React__default.createElement(Text, Object.assign({ as: "a", className: cx(classes.root, className) }, rest));
487
- };
343
+ const EnglishRoundIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
344
+ React__default.createElement("g", null,
345
+ React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
346
+ React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
347
+ React__default.createElement("path", { d: "M7.49953 0.327881C5.47199 0.850891 3.69346 1.98591 2.37793 3.53444L7.49953 6.6655V0.327881Z", fill: "#3F51B5" }),
348
+ React__default.createElement("path", { d: "M2.30273 16.3824C3.62476 17.9749 5.4353 19.1399 7.50034 19.6729V13.2053L2.30273 16.3824Z", fill: "#3F51B5" }),
349
+ React__default.createElement("path", { d: "M0.328125 12.5C0.334625 12.526 0.341125 12.5515 0.348125 12.5775L0.474128 12.5H0.328125Z", fill: "white" }),
350
+ React__default.createElement("path", { d: "M17.7871 3.73445C16.4571 2.08391 14.6131 0.872891 12.499 0.327881V6.96651L17.7871 3.73445Z", fill: "#3F51B5" }),
351
+ React__default.createElement("path", { d: "M12.499 19.6722C14.6506 19.1172 16.5196 17.8707 17.8546 16.1752L12.499 12.9021V19.6722Z", fill: "#3F51B5" }),
352
+ React__default.createElement("path", { d: "M0.376626 7.31055C0.359125 7.37305 0.344125 7.43705 0.328125 7.50005H0.686632L0.376626 7.31055Z", fill: "white" }),
353
+ React__default.createElement("path", { d: "M19.8745 8.50006C19.827 8.18506 19.7655 7.87555 19.6895 7.57104L18.1699 8.50006H19.8745Z", fill: "white" }),
354
+ React__default.createElement("path", { d: "M0.686034 7.50024H0.327527C0.243026 7.82775 0.175524 8.16076 0.124023 8.50026H2.32207L0.686034 7.50024Z", fill: "white" }),
355
+ React__default.createElement("path", { d: "M19.7197 12.3148C19.7832 12.0473 19.8337 11.7752 19.8752 11.5002H18.3867L19.7197 12.3148Z", fill: "white" }),
356
+ React__default.createElement("path", { d: "M2.10956 11.5002H0.124023C0.175024 11.8398 0.243026 12.1728 0.327527 12.5003H0.47403L2.10956 11.5002Z", fill: "white" }),
357
+ React__default.createElement("path", { d: "M8.50002 7.27665V0.124512C8.16051 0.175513 7.82751 0.243514 7.5 0.328016V6.66564L8.50002 7.27665Z", fill: "white" }),
358
+ React__default.createElement("path", { d: "M11.5 12.2913V19.8759C11.8395 19.8249 12.1725 19.7569 12.5 19.6724V12.9023L11.5 12.2913Z", fill: "white" }),
359
+ React__default.createElement("path", { d: "M7.5 13.205V19.6721C7.82751 19.7566 8.16051 19.8241 8.50002 19.8756V12.594L7.5 13.205Z", fill: "white" }),
360
+ React__default.createElement("path", { d: "M11.5925 7.34715L11.7345 7.43415L12.5 6.96614V0.328016C12.1725 0.243514 11.8395 0.176013 11.5 0.124512V7.49865L11.5925 7.34715Z", fill: "white" }),
361
+ React__default.createElement("path", { d: "M2.32251 8.50002H7.01761L8.50014 7.594V7.277L7.50011 6.66548L2.37852 3.53442C1.95151 4.03743 1.572 4.58144 1.24949 5.16296L5.02507 7.5H2.29701L0.650482 6.47648C0.54748 6.74949 0.455478 7.02699 0.375977 7.3105L0.686483 7.5L2.32251 8.50002Z", fill: "white" }),
362
+ React__default.createElement("path", { d: "M11.7344 7.43419L13.4784 8.50021H18.171L19.6905 7.57119C19.528 6.92118 19.303 6.29767 19.02 5.70516L16.139 7.50019H13.4109L18.317 4.45013C18.1515 4.20313 17.9735 3.96562 17.7875 3.73462L12.4999 6.96618L11.7344 7.43419Z", fill: "white" }),
363
+ React__default.createElement("path", { d: "M5.02448 7.50013L1.2494 5.16309C1.0169 5.58259 0.821394 6.0231 0.650391 6.47661L2.29642 7.50013H5.02448Z", fill: "#E53935" }),
364
+ React__default.createElement("path", { d: "M16.1392 7.50024L19.0207 5.70521C18.8132 5.2702 18.5837 4.84819 18.3177 4.45068L13.4111 7.50024H16.1392Z", fill: "#E53935" }),
365
+ React__default.createElement("path", { d: "M11.5 11.5002V12.2913L12.5 12.9023L17.8556 16.1758C18.2416 15.6853 18.5836 15.1593 18.8736 14.6008L15.4856 12.5003H18.2136L19.4432 13.2673C19.5507 12.9563 19.6432 12.6393 19.7197 12.3153L18.3871 11.5002H11.5Z", fill: "white" }),
366
+ React__default.createElement("path", { d: "M13.4785 8.50019L11.7345 7.43417L11.5925 7.34717L11.5 7.49867V8.50019H13.4785Z", fill: "white" }),
367
+ React__default.createElement("path", { d: "M8.49934 12.5943V11.5002H2.10921L0.473182 12.5003L0.34668 12.5778C0.522683 13.2383 0.762688 13.8713 1.06319 14.4708L4.16375 12.5003H6.89181L1.80071 15.7168C1.95971 15.9448 2.12471 16.1688 2.30172 16.3823L7.49932 13.2053L8.49934 12.5943Z", fill: "white" }),
368
+ React__default.createElement("path", { d: "M7.01758 8.50026H8.50011V7.59424L7.01758 8.50026Z", fill: "white" }),
369
+ React__default.createElement("path", { d: "M15.4854 12.5L18.8729 14.6C19.0949 14.173 19.2834 13.727 19.4429 13.2665L18.2134 12.5H15.4854Z", fill: "#E53935" }),
370
+ React__default.createElement("path", { d: "M4.16501 12.5L1.06445 14.4705C1.28196 14.9045 1.52596 15.3216 1.80197 15.7166L6.89307 12.5H4.16501Z", fill: "#E53935" }),
371
+ React__default.createElement("path", { d: "M13.4785 8.5H11.5V11.5001H18.3871H19.8757C19.9497 11.0095 20.0002 10.511 20.0002 10C20.0002 9.48902 19.9497 8.99051 19.8757 8.5H18.1711H13.4785Z", fill: "#E53935" }),
372
+ React__default.createElement("path", { d: "M8.50017 11.5001V8.5H7.01764H2.32255H0.124502C0.050501 8.99051 0 9.48902 0 10C0 10.511 0.050501 11.0095 0.124502 11.5001H2.11004H8.50017Z", fill: "#E53935" }),
373
+ React__default.createElement("path", { d: "M11.5001 19.8759V12.2912V11.5002V8.50016V7.49865V0.124502C11.0095 0.050501 10.511 0 10 0C9.48902 0 8.99051 0.050501 8.5 0.124502V7.27664V7.59365V8.50016V11.5002V12.5942V19.8759C8.99051 19.9499 9.48902 20.0004 10 20.0004C10.511 20.0004 11.0095 19.9499 11.5001 19.8759Z", fill: "#E53935" }))));
374
+ const EnglishSquareIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 26 26", fill: "none" }, props),
375
+ React__default.createElement("g", null,
376
+ React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "1", y: "5", width: "24", height: "16" },
377
+ React__default.createElement("path", { d: "M1.08301 7.41675C1.08301 6.31218 1.97844 5.41675 3.08301 5.41675H22.9163C24.0209 5.41675 24.9163 6.31218 24.9163 7.41675V18.5834C24.9163 19.688 24.0209 20.5834 22.9163 20.5834H3.08301C1.97844 20.5834 1.08301 19.688 1.08301 18.5834V7.41675Z", fill: "#3F51B5" })),
378
+ React__default.createElement("path", { d: "M1.08301 5.41675H24.9163V20.5834H1.08301V5.41675Z", fill: "#3F51B5" }),
379
+ React__default.createElement("path", { d: "M1.08301 7.70041L12.3551 14.5899L14.05 11.8165L3.57901 5.41675H1.08301V7.70041Z", fill: "white" }),
380
+ React__default.createElement("path", { d: "M24.9165 5.41675H22.9616L12.4912 11.816L14.1855 14.5899L24.9165 8.03083V5.41675Z", fill: "white" }),
381
+ React__default.createElement("path", { d: "M14.1855 10.9802L12.4912 13.7536L23.6658 20.5834H24.9165V17.5387L14.1855 10.9802Z", fill: "white" }),
382
+ React__default.createElement("path", { d: "M1.08301 17.8702V20.5834H2.87592L14.05 13.7541L12.3556 10.9802L1.08301 17.8702Z", fill: "white" }),
383
+ React__default.createElement("path", { d: "M1.08301 10.8333H24.9163V15.1666H1.08301V10.8333Z", fill: "white" }),
384
+ React__default.createElement("path", { d: "M10.833 5.41675H15.1663V20.5834H10.833V5.41675Z", fill: "white" }),
385
+ React__default.createElement("path", { d: "M9.32609 10.8334L1.08301 5.79537V7.06504L7.24826 10.8334H9.32609ZM24.0004 5.41675L15.1376 10.8334H17.2149L24.9163 6.12687V5.41675H24.0004ZM17.9191 15.1667L24.9163 19.4432V18.1735L19.9964 15.1667H17.9191ZM8.62192 15.1667L1.08301 19.7742V20.5834H1.83701L10.6992 15.1667H8.62192ZM1.08301 11.9167H24.9163V14.0834H1.08301V11.9167Z", fill: "#E53935" }),
386
+ React__default.createElement("path", { d: "M11.917 5.41675H14.0837V20.5834H11.917V5.41675Z", fill: "#E53935" }))));
488
387
 
489
- const BreadcrumbItem = (_a) => {
490
- var { children } = _a, rest = __rest(_a, ["children"]);
491
- return (React__default.createElement(Anchor, Object.assign({ size: "p4", color: 'gray.8' }, rest), children));
492
- };
388
+ const IndiaRoundIcon = (props) => (React__default.createElement(ImageWrap, Object.assign({ alt: "round india flag", src: CommonGAssets.getAssetPath('flags/indiaRound.png'), style: Object.assign({ borderRadius: '50%' }, props.style) }, props)));
389
+ const IndiaSquareIcon = (props) => (React__default.createElement(ImageWrap, Object.assign({ alt: "square indian flag", src: CommonGAssets.getAssetPath('flags/indiaSquare.png') }, props)));
493
390
 
494
- const AspectRatio = (props) => {
495
- return (React__default.createElement(AspectRatio$1, Object.assign({ sx: {
496
- borderRadius: 4,
497
- overflow: 'hidden',
498
- '> img': {
499
- objectFit: 'contain',
500
- },
501
- } }, props)));
391
+ const IndonesiaRoundIcon = (_a) => {
392
+ var rest = __rest(_a, []);
393
+ const maskId = useUniqueId();
394
+ return (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none" }, rest),
395
+ React__default.createElement("mask", { id: maskId, style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
396
+ React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
397
+ React__default.createElement("g", { mask: `url(#${maskId})` },
398
+ React__default.createElement("rect", { width: "20", height: "10", fill: "#CE1126" }),
399
+ React__default.createElement("rect", { y: "10", width: "20", height: "10", fill: "white" }))));
400
+ };
401
+ const IndonesiaSquareIcon = (_a) => {
402
+ var rest = __rest(_a, []);
403
+ const clipPathId = useUniqueId();
404
+ return (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, rest),
405
+ React__default.createElement("g", { clipPath: `url(#${clipPathId})` },
406
+ React__default.createElement("rect", { y: "0.0166016", width: "24", height: "8", fill: "#CE1126" }),
407
+ React__default.createElement("rect", { y: "8.0166", width: "24", height: "8", fill: "white" })),
408
+ React__default.createElement("defs", null,
409
+ React__default.createElement("clipPath", { id: clipPathId },
410
+ React__default.createElement("rect", { width: "24", height: "16", rx: "2", fill: "white" })))));
502
411
  };
503
412
 
504
- const _Breadcrumbs = (_a) => {
505
- var _b;
506
- var { children, showHomeIcon = true, homeIconHref = '/' } = _a, rest = __rest(_a, ["children", "showHomeIcon", "homeIconHref"]);
507
- const theme = useMantineTheme();
508
- const isMarryBaby = ((_b = theme === null || theme === void 0 ? void 0 : theme.other) === null || _b === void 0 ? void 0 : _b.template) === 'mb';
509
- const [embla, setEmbla] = useState(null);
510
- const { isMobile } = useScreenSize();
511
- const [, setShouldAllowClick] = useState(true);
512
- const handleScroll = useCallback(() => {
513
- setShouldAllowClick(false);
514
- }, []);
515
- const handlePointerUp = useCallback(() => {
516
- setTimeout(() => {
517
- setShouldAllowClick(true);
518
- }, 1000);
519
- }, []);
520
- useEffect(() => {
521
- if (embla) {
522
- embla.on('scroll', handleScroll);
523
- embla.on('pointerUp', handlePointerUp);
524
- }
525
- return () => {
526
- if (embla) {
527
- embla.off('scroll', handleScroll);
528
- embla.on('pointerUp', handlePointerUp);
529
- }
530
- };
531
- }, [embla, handleScroll, handlePointerUp]);
532
- return (React__default.createElement(StyledCarousel, Object.assign({ align: "center", slideGap: "xs", dragFree: true, draggable: isMobile, slideSize: "0", getEmblaApi: setEmbla, controlsOffset: -52, previousControlIcon: React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
533
- React__default.createElement("path", { d: "M6.86589 3.56104C7.03647 3.56104 7.20724 3.62732 7.33724 3.75765L7.39453 3.81494C7.6552 4.07561 7.6552 4.49765 7.39453 4.75765L4.81901 7.33317L13.5326 7.33317C13.9006 7.33317 14.1992 7.63184 14.1992 7.99984C14.1992 8.36784 13.9006 8.6665 13.5326 8.6665L4.81901 8.66651L7.39453 11.242C7.6552 11.5027 7.6552 11.9247 7.39453 12.1847L7.33724 12.242C7.07657 12.5027 6.65453 12.5027 6.39453 12.242L2.6237 8.47119C2.36303 8.21053 2.36303 7.78849 2.6237 7.52849L6.39453 3.75765C6.52487 3.62732 6.6953 3.56104 6.86589 3.56104Z", fill: "#595959" })), nextControlIcon: React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
534
- React__default.createElement("path", { d: "M9.13411 12.439C8.96353 12.439 8.79276 12.3727 8.66276 12.2423L8.60547 12.1851C8.3448 11.9244 8.3448 11.5023 8.60547 11.2423L11.181 8.66683L2.46745 8.66683C2.09945 8.66683 1.80078 8.36816 1.80078 8.00016C1.80078 7.63216 2.09945 7.3335 2.46745 7.3335L11.181 7.3335L8.60547 4.75797C8.3448 4.49731 8.3448 4.07527 8.60547 3.81527L8.66276 3.75797C8.92343 3.49731 9.34547 3.49731 9.60547 3.75797L13.3763 7.52881C13.637 7.78947 13.637 8.21152 13.3763 8.47152L9.60547 12.2423C9.47513 12.3727 9.3047 12.439 9.13411 12.439Z", fill: "#595959" })) }, rest),
535
- showHomeIcon && (React__default.createElement(Carousel.Slide, { style: { borderRight: `1px solid ${themeColors.neutral[1]}` } },
536
- React__default.createElement(BreadcrumbItem, { href: homeIconHref, target: "_blank", className: "pointer-event-child-none" },
537
- React__default.createElement(Box, { sx: Object.assign({}, (!isMarryBaby && {
538
- borderRadius: '50%',
539
- display: 'flex',
540
- justifyContent: 'center',
541
- alignItems: 'center',
542
- })), bg: !isMarryBaby && themeColors.neutral[0], p: !isMarryBaby ? 6 : 0 },
543
- React__default.createElement(AspectRatio, { ratio: 1, w: 18 }, isMarryBaby ? (React__default.createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" },
544
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1183 3.67722C12.8727 2.70772 11.1281 2.708 9.88187 3.67718L14.1183 3.67722ZM14.1183 3.67722L19.718 8.03283C20.5589 8.68632 21.05 9.69173 21.05 10.7562V17.6002C21.05 19.5057 19.5055 21.0502 17.6 21.0502H6.40016C4.49466 21.0502 2.9502 19.5057 2.9502 17.6002V10.7562C2.9502 9.69163 3.44113 8.68632 4.28216 8.03283L9.88187 3.67718M10.6799 4.70339L5.08006 9.05916C4.55657 9.46592 4.2502 10.0923 4.2502 10.7562V17.6002C4.2502 18.7878 5.21263 19.7502 6.40016 19.7502H17.6C18.7875 19.7502 19.75 18.7878 19.75 17.6002V10.7562C19.75 10.0923 19.4438 9.46612 18.9204 9.05936L13.3202 4.70335C12.5443 4.09941 11.4571 4.09905 10.6799 4.70339Z", fill: "#3E3F58" }),
545
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.2373 13.1626C12.5546 12.4794 11.4466 12.4791 10.7629 13.1628C10.0793 13.8464 10.0793 14.9538 10.7629 15.6374C11.4465 16.321 12.5539 16.321 13.2375 15.6374C13.9211 14.9538 13.9211 13.8464 13.2375 13.1628L13.2373 13.1626ZM14.1567 12.2436C12.9661 11.0521 11.0348 11.0525 9.84366 12.2436C8.65237 13.4348 8.65237 15.3653 9.84366 16.5566C11.0349 17.7479 12.9654 17.7479 14.1567 16.5566C15.348 15.3653 15.348 13.4348 14.1567 12.2436Z", fill: "#3E3F58" }))) : (React__default.createElement("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none" },
546
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.58691 5.59863L8.58691 1.62305C8.83594 1.45898 9.16406 1.45898 9.41309 1.62305L15.4131 5.59863C15.624 5.73926 15.75 5.97363 15.75 6.22559V14.25C15.75 15.0791 15.0791 15.75 14.25 15.75H3.75C2.9209 15.75 2.25 15.0791 2.25 14.25V6.22559C2.25 5.97363 2.37598 5.73926 2.58691 5.59863ZM5.5017 11.7602C5.1717 11.5108 5.17316 11.0321 5.46521 10.7391C5.75775 10.4456 6.24936 10.4292 6.5986 10.6522C7.17818 11.0223 8.12516 11.4889 9.21628 11.4889C10.3074 11.4889 11.2543 11.0223 11.8339 10.6522C12.1832 10.4292 12.6748 10.4456 12.9673 10.7391C13.2594 11.0321 13.2608 11.5108 12.9308 11.7602C11.8743 12.5589 10.535 12.9889 9.21628 12.9889C7.89758 12.9889 6.55824 12.5589 5.5017 11.7602Z", fill: "#595959" })))))))),
547
- React__default.createElement(Carousel.Slide, null),
548
- React__default.createElement(Carousel.Slide, null,
549
- React__default.createElement(Breadcrumbs$1, { styles: {
550
- separator: {
551
- marginInline: 4,
552
- },
553
- }, separator: React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
554
- React__default.createElement("path", { d: "M8.71527 7.99969L6.16794 5.45236C5.89194 5.17636 5.89194 4.72836 6.16794 4.45236C6.44394 4.17636 6.89194 4.17636 7.16794 4.45236L10.2439 7.52836C10.5046 7.78903 10.5046 8.21103 10.2439 8.47103L7.16794 11.547C6.89194 11.823 6.44394 11.823 6.16794 11.547C5.89194 11.271 5.89194 10.823 6.16794 10.547L8.71527 7.99969Z", fill: "#8C8C8C" })) }, children))));
555
- };
556
- const Breadcrumbs = _Breadcrumbs;
557
- Breadcrumbs.Item = BreadcrumbItem;
558
-
559
- var useStyles$3 = createStyles((_theme, _params) => {
560
- var _a, _b, _c, _d, _e, _f;
561
- const { other } = _theme;
562
- const { template } = other;
563
- const { size, variant, skipHover, isError, isSuccess, color, children, theme: themeProp, } = _params;
564
- const isMb = template === 'mb' || themeProp === 'marryBaby';
565
- const finalColor = color || (themeProp && isMb ? 'mb' : _theme.primaryColor);
566
- const isHexColor = finalColor.startsWith('#');
567
- const hexColor50 = isHexColor
568
- ? _theme.fn.lighten(color, 0.9)
569
- : ((_b = (_a = _theme.colors) === null || _a === void 0 ? void 0 : _a[finalColor]) === null || _b === void 0 ? void 0 : _b[0]) || '';
570
- const hexColor = isHexColor
571
- ? finalColor
572
- : (_d = (_c = _theme.colors) === null || _c === void 0 ? void 0 : _c[finalColor]) === null || _d === void 0 ? void 0 : _d[_theme.fn.primaryShade()];
573
- const hoverHexColor = isHexColor
574
- ? _theme.fn.darken(color, 0.05)
575
- : (_f = (_e = _theme.colors) === null || _e === void 0 ? void 0 : _e[finalColor]) === null || _f === void 0 ? void 0 : _f[_theme.fn.primaryShade() + 1];
576
- return {
577
- root: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ transition: `all ${ANIMATION_DURATION} ease-in-out`, '&:focus': {
578
- outline: 'none',
579
- } }, (!children && {
580
- paddingLeft: '10px',
581
- paddingRight: '10px',
582
- '.mantine-Button-icon': {
583
- margin: 0,
584
- },
585
- })), (() => {
586
- switch (size) {
587
- case 'xl':
588
- return {
589
- height: 56,
590
- fontWeight: 600,
591
- fontSize: isMb ? '14px' : '16px',
592
- lineHeight: '24px',
593
- };
594
- case 'lg':
595
- return {
596
- height: 48,
597
- fontWeight: 600,
598
- fontSize: isMb ? '14px' : '16px',
599
- lineHeight: '24px',
600
- };
601
- case 'md':
602
- return {
603
- height: 40,
604
- fontWeight: 600,
605
- fontSize: '14px',
606
- lineHeight: '22px',
607
- };
608
- case 'sm':
609
- return {
610
- height: 32,
611
- fontWeight: 600,
612
- fontSize: isMb ? '12px' : '14px',
613
- lineHeight: '22px',
614
- paddingLeft: '16px',
615
- paddingRight: '16px',
616
- };
617
- case 'xs':
618
- return {
619
- height: 24,
620
- fontWeight: 600,
621
- fontSize: '12px',
622
- lineHeight: '18px',
623
- paddingLeft: '8px',
624
- paddingRight: '8px',
625
- };
626
- }
627
- })()), (() => {
628
- switch (variant) {
629
- case 'primary': {
630
- return Object.assign({ color: _theme.white, backgroundColor: hexColor }, (!skipHover && {
631
- '&:hover': {
632
- backgroundColor: hoverHexColor,
633
- },
634
- }));
635
- }
636
- case 'secondary':
637
- return Object.assign({ color: hexColor, backgroundColor: 'transparent', border: `1px solid ${hexColor}` }, (!skipHover && {
638
- '&:hover': {
639
- backgroundColor: hexColor50,
640
- border: `1px solid ${hexColor}`,
641
- },
642
- }));
643
- case 'white':
644
- return {
645
- color: hexColor,
646
- backgroundColor: 'transparent',
647
- border: `1px solid transparent`,
648
- '&:hover': {
649
- backgroundColor: 'transparent',
650
- borderColor: `transparent`,
651
- },
652
- };
653
- case 'tertiary':
654
- return {
655
- color: _theme.colors.gray[8],
656
- backgroundColor: _theme.white,
657
- border: `1px solid ${_theme.colors.neutral[2]}`,
658
- '&:hover': Object.assign({}, (!skipHover
659
- ? {
660
- backgroundColor: _theme.colors.neutral[0],
661
- border: `1px solid ${_theme.colors.neutral[0]}`,
662
- }
663
- : {
664
- backgroundColor: _theme.white,
665
- border: `1px solid ${_theme.colors.neutral[2]}`,
666
- })),
667
- };
668
- case 'light': {
669
- return {
670
- color: hexColor,
671
- backgroundColor: hexColor50,
672
- border: `1px solid transparent`,
673
- '&:hover': Object.assign({}, (!skipHover
674
- ? {
675
- backgroundColor: _theme.white,
676
- border: `1px solid ${hexColor50}`,
677
- }
678
- : {
679
- backgroundColor: hexColor50,
680
- border: `1px solid transparent`,
681
- })),
682
- };
683
- }
684
- case 'ghost':
685
- return Object.assign({ color: hexColor, backgroundColor: 'transparent', border: `1px solid transparent` }, (!skipHover && {
686
- '&:hover': {
687
- backgroundColor: hexColor50,
688
- border: `1px solid transparent`,
689
- },
690
- }));
691
- }
692
- })()), { '&[data-disabled]': {
693
- backgroundColor: _theme.colors.gray[1],
694
- color: _theme.colors.gray[4],
695
- } }), (isError
696
- ? Object.assign({ color: _theme.colors.red[6], backgroundColor: _theme.white, border: `1px solid ${_theme.colors.red[6]}` }, (!skipHover && {
697
- '&:hover': {
698
- backgroundColor: _theme.colors.red[0],
699
- border: `1px solid ${_theme.colors.red[6]}`,
700
- },
701
- })) : {})), (isSuccess
702
- ? Object.assign({ color: _theme.colors.green[8], backgroundColor: _theme.colors.green[0] }, (!skipHover && {
703
- '&:hover': {
704
- backgroundColor: _theme.colors.green[0],
705
- },
706
- })) : {})),
707
- };
708
- });
413
+ const MalaysiaRoundIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
414
+ React__default.createElement("g", null,
415
+ React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
416
+ React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
417
+ React__default.createElement("rect", { y: "1", width: "20", height: "20", fill: "#CC0001" }),
418
+ React__default.createElement("rect", { y: "16.106", width: "20", height: "1.02041", fill: "white" }),
419
+ React__default.createElement("rect", { y: "16", width: "20", height: "1.02041", fill: "white" }),
420
+ React__default.createElement("rect", { y: "18", width: "20", height: "1.02041", fill: "white" }),
421
+ React__default.createElement("rect", { y: "14.0652", width: "20", height: "1.02041", fill: "white" }),
422
+ React__default.createElement("rect", { y: "12.0242", width: "20", height: "1.02041", fill: "white" }),
423
+ React__default.createElement("rect", { y: "9.9834", width: "20", height: "1.02041", fill: "white" }),
424
+ React__default.createElement("rect", { y: "7.94263", width: "20", height: "1.02041", fill: "white" }),
425
+ React__default.createElement("rect", { y: "5.90186", width: "20", height: "1.02041", fill: "white" }),
426
+ React__default.createElement("rect", { y: "3.86084", width: "20", height: "1.02041", fill: "white" }),
427
+ React__default.createElement("rect", { y: "2", width: "20", height: "1.02041", fill: "white" }),
428
+ React__default.createElement("rect", { width: "20", height: "1.02041", fill: "white" }),
429
+ React__default.createElement("rect", { y: "-1", width: "10", height: "12", fill: "#010066" }),
430
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.11387 3.86084C2.92711 3.86084 1.96387 5.23232 1.96387 6.92206C1.96387 8.6118 2.92711 9.98329 4.11387 9.98329C4.54263 9.98329 4.94211 9.80406 5.27763 9.4957C5.08225 9.59203 4.87256 9.64471 4.65427 9.64471C3.60193 9.64471 2.74786 8.42866 2.74786 6.93032C2.74786 5.43198 3.60193 4.21594 4.65427 4.21594C4.88682 4.21594 5.10959 4.27527 5.31571 4.38397C4.97256 4.0538 4.5589 3.86084 4.11387 3.86084Z", fill: "#FFCC00" }),
431
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.67935 8.51573L6.7737 7.8407L7.04147 9.22221L6.43573 8.06657L6.24676 9.47313L6.0609 8.06576L5.4526 9.2188L5.72343 7.83844L4.81629 8.50957L5.49017 7.42963L4.46387 7.48593L5.40732 6.9203L4.46512 6.35062L5.4913 6.41133L4.81981 5.3285L5.72546 6.00353L5.45769 4.62202L6.06343 5.77766L6.25241 4.37109L6.43827 5.77847L7.04656 4.62543L6.77574 6.00579L7.68287 5.33466L7.00899 6.4146L8.0353 6.3583L7.09184 6.92392L8.03404 7.49361L7.00786 7.43289L7.67935 8.51573Z", fill: "#FFCC00" }))));
432
+ const MalaysiaSquareIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
433
+ React__default.createElement("rect", { width: "24", height: "16", rx: "2", fill: "#CC0001" }),
434
+ React__default.createElement("rect", { y: "12.2712", width: "24", height: "0.777454", fill: "white" }),
435
+ React__default.createElement("rect", { y: "12.1904", width: "24", height: "0.777454", fill: "white" }),
436
+ React__default.createElement("rect", { y: "13.7144", width: "24", height: "0.777454", fill: "white" }),
437
+ React__default.createElement("rect", { y: "10.7161", width: "24", height: "0.777454", fill: "white" }),
438
+ React__default.createElement("rect", { y: "9.16138", width: "24", height: "0.777454", fill: "white" }),
439
+ React__default.createElement("rect", { y: "7.60645", width: "24", height: "0.777454", fill: "white" }),
440
+ React__default.createElement("rect", { y: "6.05127", width: "24", height: "0.777454", fill: "white" }),
441
+ React__default.createElement("rect", { y: "4.49658", width: "24", height: "0.777454", fill: "white" }),
442
+ React__default.createElement("rect", { y: "2.94141", width: "24", height: "0.777454", fill: "white" }),
443
+ React__default.createElement("rect", { y: "1.52393", width: "24", height: "0.777454", fill: "white" }),
444
+ React__default.createElement("rect", { width: "24", height: "0.777454", fill: "white" }),
445
+ React__default.createElement("path", { d: "M0 2C0 0.895431 0.895431 0 2 0H12V8.38095H0V2Z", fill: "#010066" }),
446
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.93644 1.52393C3.51233 1.52393 2.35645 2.56887 2.35645 3.85629C2.35645 5.14371 3.51233 6.18865 4.93644 6.18865C5.45096 6.18865 5.93034 6.05209 6.33296 5.81716C6.09851 5.89054 5.84688 5.93068 5.58492 5.93068C4.32212 5.93068 3.29724 5.00417 3.29724 3.86258C3.29724 2.72099 4.32212 1.79448 5.58492 1.79448C5.86399 1.79448 6.13132 1.83968 6.37865 1.9225C5.96688 1.67094 5.47049 1.52393 4.93644 1.52393Z", fill: "#FFCC00" }),
447
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.216 5.07041L8.12923 4.55611L8.45055 5.60869L7.72366 4.72819L7.49689 5.79987L7.27386 4.72758L6.5439 5.60609L6.86889 4.55439L5.78033 5.06572L6.58899 4.24291L5.35742 4.28581L6.48957 3.85485L5.35893 3.42081L6.59034 3.46707L5.78456 2.64205L6.87133 3.15636L6.55001 2.10378L7.2769 2.98427L7.50367 1.9126L7.7267 2.98488L8.45666 2.10638L8.13166 3.15808L9.22022 2.64674L8.41157 3.46955L9.64314 3.42666L8.51099 3.85761L9.64163 4.29165L8.41022 4.2454L9.216 5.07041Z", fill: "#FFCC00" })));
709
448
 
710
- const MAPPED_VARIANT = {
711
- primary: 'filled',
712
- secondary: 'outline',
713
- tertiary: 'default',
714
- light: 'light',
715
- ghost: 'subtle',
716
- error: 'outline',
717
- white: 'white',
718
- success: 'subtle',
719
- };
720
- function filterObject(obj) {
721
- const ret = {};
722
- Object.keys(obj)
723
- .filter((key) => obj[key] !== undefined)
724
- .forEach((key) => (ret[key] = obj[key]));
725
- return ret;
726
- }
727
- const Button = (props) => {
728
- var _a, _b;
729
- const theme = useMantineTheme();
730
- const _c = Object.assign(Object.assign({}, (_b = (_a = theme.components) === null || _a === void 0 ? void 0 : _a.Button) === null || _b === void 0 ? void 0 : _b.defaultProps), filterObject(props)), { variant, size, color, skipHover, className, dataEventCategory, dataEventAction, dataEventLabel, children, theme: themeProp } = _c, rest = __rest(_c, ["variant", "size", "color", "skipHover", "className", "dataEventCategory", "dataEventAction", "dataEventLabel", "children", "theme"]);
731
- const isError = variant === 'error';
732
- const { classes, cx } = useStyles$3({
733
- variant,
734
- size,
735
- color,
736
- skipHover,
737
- isError,
738
- isSuccess: variant === 'success',
739
- children,
740
- theme: themeProp,
741
- });
742
- return (React__default.createElement(Button$1, Object.assign({ className: cx(className, variant), classNames: {
743
- root: classes.root,
744
- }, variant: MAPPED_VARIANT[variant], "data-variant": variant, "data-event-category": dataEventCategory, "data-event-action": dataEventAction, "data-event-label": dataEventLabel }, rest), children));
745
- };
449
+ const MyanmarRoundIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
450
+ React__default.createElement("g", null,
451
+ React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
452
+ React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
453
+ React__default.createElement("rect", { x: "-4", y: "-1", width: "28", height: "11", fill: "#FECB00" }),
454
+ React__default.createElement("rect", { x: "-4", y: "10", width: "28", height: "10", fill: "#EA2839" }),
455
+ React__default.createElement("rect", { x: "-4", y: "6.7041", width: "28", height: "6.47773", fill: "#34B233" }),
456
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.56543 10.3272L10.1796 5.15527L11.7938 10.3272H8.56543Z", fill: "white" }),
457
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.5292 11.2775L7.18336 14.5129L8.91745 9.37991L11.5292 11.2775Z", fill: "white" }),
458
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.75181 11.8648L5.33182 8.73143L10.7494 8.79447L9.75181 11.8648Z", fill: "white" }),
459
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.6105 8.78962L15.0281 8.72658L10.6081 11.86L9.6105 8.78962Z", fill: "white" }),
460
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.4424 9.37686L13.1765 14.5098L8.83064 11.2744L11.4424 9.37686Z", fill: "white" }))));
461
+ const MyanmarSquareIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
462
+ React__default.createElement("rect", { width: "24", height: "16", rx: "2", fill: "#FECB00" }),
463
+ React__default.createElement("rect", { y: "8.3811", width: "24", height: "7.61905", rx: "2", fill: "#EA2839" }),
464
+ React__default.createElement("rect", { y: "5.86987", width: "24", height: "4.93542", fill: "#34B233" }),
465
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.7705 8.63046L12.1541 4.68994L13.5377 8.63046H10.7705Z", fill: "white" }),
466
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.3108 9.35502L9.58574 11.8201L11.0721 7.90925L13.3108 9.35502Z", fill: "white" }),
467
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.7874 9.80216L7.99884 7.41482L12.6425 7.46285L11.7874 9.80216Z", fill: "white" }),
468
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.6667 7.4589L16.3104 7.41087L12.5218 9.79821L11.6667 7.4589Z", fill: "white" }),
469
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.2361 7.90629L14.7225 11.8171L10.9974 9.35207L13.2361 7.90629Z", fill: "white" })));
746
470
 
747
- const StyledTextArea = styled(Textarea) `
748
- .mantine-Textarea-input {
749
- padding: 12px 16px;
750
- background: #ffffff;
751
- border: 1px solid ${theme.colors.gray200};
752
- border-radius: 4px;
753
- }
754
- `;
471
+ const PhilippinesRoundIcon = (props) => (React__default.createElement(ImageWrap, Object.assign({ alt: "round philippines flag", src: CommonGAssets.getAssetPath('flags/philippineRound.png'), style: Object.assign({ borderRadius: '50%' }, props.style) }, props)));
472
+ const PhilippinesSquareIcon = (props) => (React__default.createElement(ImageWrap, Object.assign({ alt: "square philippines flag", src: CommonGAssets.getAssetPath('flags/philippineSquare.png') }, props)));
755
473
 
756
- var useStyles$2 = createStyles((theme) => {
757
- return {
758
- root: {},
759
- inner: {},
760
- content: {},
761
- header: {
762
- borderBottom: `1px solid ${theme.colors.neutral[1]}`,
763
- marginRight: 0,
764
- marginBottom: 0,
765
- padding: '12px',
766
- },
767
- overlay: {},
768
- title: {
769
- fontSize: 16,
770
- fontWeight: 700,
771
- lineHeight: 1.5,
772
- },
773
- body: {},
774
- close: {
775
- cursor: 'pointer',
776
- width: 'unset',
777
- height: 'unset',
778
- svg: {
779
- width: '24px !important',
780
- height: '24px !important',
781
- },
782
- },
783
- };
784
- });
474
+ const TaiwanRoundIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
475
+ React__default.createElement("g", null,
476
+ React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
477
+ React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
478
+ React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#D8D8D8" }),
479
+ React__default.createElement("g", null,
480
+ React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
481
+ React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "white" })),
482
+ React__default.createElement("rect", { width: "30", height: "20", fill: "#ED1E24" }),
483
+ React__default.createElement("rect", { width: "15", height: "10", fill: "#2B2F84" }),
484
+ React__default.createElement("circle", { cx: "7.49791", cy: "4.99913", r: "1.869", fill: "white" }),
485
+ React__default.createElement("path", { d: "M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z", fill: "white" }),
486
+ React__default.createElement("path", { d: "M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z", fill: "white" }),
487
+ React__default.createElement("path", { d: "M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z", fill: "white" }),
488
+ React__default.createElement("path", { d: "M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z", fill: "white" }),
489
+ React__default.createElement("path", { d: "M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z", fill: "white" }),
490
+ React__default.createElement("path", { d: "M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z", fill: "white" }),
491
+ React__default.createElement("path", { d: "M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z", fill: "white" }),
492
+ React__default.createElement("path", { d: "M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z", fill: "white" }),
493
+ React__default.createElement("path", { d: "M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z", fill: "white" }),
494
+ React__default.createElement("path", { d: "M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z", fill: "white" }),
495
+ React__default.createElement("path", { d: "M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z", fill: "white" }),
496
+ React__default.createElement("path", { d: "M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z", fill: "white" })))));
497
+ const TaiwanSquareIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
498
+ React__default.createElement("rect", { width: "24", height: "16", rx: "2", fill: "#ED1E24" }),
499
+ React__default.createElement("path", { d: "M0 2C0 0.89543 0.895431 0 2 0H15V10H0V2Z", fill: "#2B2F84" }),
500
+ React__default.createElement("circle", { cx: "7.49791", cy: "4.99913", r: "1.869", fill: "white" }),
501
+ React__default.createElement("path", { d: "M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z", fill: "white" }),
502
+ React__default.createElement("path", { d: "M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z", fill: "white" }),
503
+ React__default.createElement("path", { d: "M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z", fill: "white" }),
504
+ React__default.createElement("path", { d: "M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z", fill: "white" }),
505
+ React__default.createElement("path", { d: "M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z", fill: "white" }),
506
+ React__default.createElement("path", { d: "M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z", fill: "white" }),
507
+ React__default.createElement("path", { d: "M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z", fill: "white" }),
508
+ React__default.createElement("path", { d: "M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z", fill: "white" }),
509
+ React__default.createElement("path", { d: "M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z", fill: "white" }),
510
+ React__default.createElement("path", { d: "M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z", fill: "white" }),
511
+ React__default.createElement("path", { d: "M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z", fill: "white" }),
512
+ React__default.createElement("path", { d: "M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z", fill: "white" })));
785
513
 
786
- const StyledAccordion = styled(Accordion$1) `
787
- .mantine-Accordion-label {
788
- padding: 0;
789
- }
790
- .mantine-Accordion-control {
791
- &:hover {
792
- background-color: transparent;
793
- }
794
- }
795
- .mantine-Accordion-item {
796
- .mantine-Accordion-chevron {
797
- > div {
798
- background-repeat: no-repeat;
799
- width: 16px;
800
- height: 16px;
801
- background-position: center;
802
- background-image: url(${(props) => props.closeChevron || CommonGAssets.getAssetPath('plus-icon.svg')});
803
- }
804
- }
805
- &[data-active='true'] {
806
- .mantine-Accordion-chevron {
807
- > div {
808
- background-image: url(${(props) => props.openChevron || CommonGAssets.getAssetPath('minus-icon.svg')});
809
- }
810
- }
811
- }
812
- }
813
- .mantine-Accordion-panel {
814
- border-radius: ${theme.borderRadius};
815
- }
816
- .mantine-Accordion-content {
817
- white-space: pre-wrap;
818
- }
819
- `;
514
+ const ThailandRoundIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
515
+ React__default.createElement("g", null,
516
+ React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
517
+ React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
518
+ React__default.createElement("rect", { x: "-4", y: "-0.0166016", width: "28", height: "20", fill: "#ED1C24" }),
519
+ React__default.createElement("rect", { x: "-4", y: "3.31665", width: "28", height: "13.3333", fill: "white" }),
520
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M-4 6.65015H24V13.3168H-4V6.65015Z", fill: "#241D4F" }))));
521
+ const ThailandSquareIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 17", fill: "none" }, props),
522
+ React__default.createElement("rect", { y: "0.983398", width: "24", height: "16", rx: "2", fill: "#ED1C24" }),
523
+ React__default.createElement("rect", { y: "3.65039", width: "24", height: "10.6667", fill: "white" }),
524
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 6.31689H24V11.6502H0V6.31689Z", fill: "#241D4F" })));
820
525
 
821
- const _Accordion = (_a) => {
822
- var { children } = _a, rest = __rest(_a, ["children"]);
823
- return (React__default.createElement(StyledAccordion, Object.assign({ chevron: React__default.createElement("div", null), disableChevronRotation: true, transitionDuration: 300 }, rest), children));
824
- };
825
- const Accordion = _Accordion;
826
- Accordion.Control = Accordion$1.Control;
827
- Accordion.Item = Accordion$1.Item;
828
- Accordion.Panel = Accordion$1.Panel;
829
-
830
- const ImageWrap = (_a) => {
831
- var { alt, backupSrc, src, placeholderSrc, style, ref } = _a, props = __rest(_a, ["alt", "backupSrc", "src", "placeholderSrc", "style", "ref"]);
832
- const [hasError, setHasError] = useState(false);
833
- return (React__default.createElement(StyledImage, Object.assign({ loading: "lazy", alt: alt, onError: () => !hasError && setHasError(true), src: hasError ? backupSrc || src : src || backupSrc, style: Object.assign(Object.assign({}, (placeholderSrc
834
- ? {
835
- backgroundImage: `url(${placeholderSrc})`,
836
- }
837
- : {})), style), "data-has-placeholder": !!placeholderSrc, ref: ref }, props)));
838
- };
839
- const StyledImage = styled.img `
840
- &[data-has-placeholder='true'] {
841
- background-position: center;
842
- background-repeat: no-repeat;
843
- background-size: cover;
844
- }
845
- `;
526
+ const VietnamRoundIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
527
+ React__default.createElement("g", null,
528
+ React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
529
+ React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
530
+ React__default.createElement("rect", { x: "-4", y: "-0.0166016", width: "28", height: "20", fill: "#DA251D" }),
531
+ React__default.createElement("path", { d: "M11.7228 10.8677L14.2819 9.00839L11.1187 9.00839L10.1409 6L9.16316 9.00839L6 9.00839L8.5591 10.8677L7.58184 13.8766L10.1409 12.0168L12.7 13.8766L11.7228 10.8677Z", fill: "#FFEB3B" }))));
532
+ const VietnamSquareIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
533
+ React__default.createElement("g", null,
534
+ React__default.createElement("clipPath", null,
535
+ React__default.createElement("rect", { width: "24", height: "16", fill: "white" })),
536
+ React__default.createElement("path", { d: "M2.01386e-10 2C0 0.895431 0.895431 -7.50368e-10 2 -1.67599e-09L22 -1.84359e-08C23.1046 -1.93615e-08 24 0.895431 24 2L24 14C24 15.1046 23.1046 16 22 16L2 16C0.89543 16 1.52092e-09 15.1046 1.4097e-09 14L2.01386e-10 2Z", fill: "#DA251D" }),
537
+ React__default.createElement("path", { d: "M13.7823 8.92854L16.6663 6.8332L13.1016 6.8332L11.9997 3.44287L10.8978 6.8332L7.33301 6.8332L10.217 8.92854L9.11567 12.3195L11.9997 10.2235L14.8837 12.3195L13.7823 8.92854Z", fill: "#FFEB3B" }))));
846
538
 
847
- const DEFAULT_AVATAR = CommonGAssets.getAssetPath('avatar.jpg');
848
- const Avatar = (_a) => {
849
- var { withIndicator = false, indicatorConfig = null, size = 56, children, styles, placeholderText } = _a, // usually first letter of name
850
- avatarProps = __rest(_a, ["withIndicator", "indicatorConfig", "size", "children", "styles", "placeholderText"]);
851
- const generateAvatar = () => {
852
- return (React__default.createElement(Avatar$1, Object.assign({ size: size, radius: "xl" }, avatarProps, { imageProps: Object.assign({ loading: 'lazy' }, avatarProps.imageProps), styles: {
853
- placeholder: {
854
- backgroundColor: avatarProps.color,
855
- color: 'white',
856
- },
857
- } }), children ? (children) : placeholderText ? (placeholderText) : (React__default.createElement(ImageWrap, { src: DEFAULT_AVATAR, width: size, alt: avatarProps.alt || 'avatar' }))));
858
- };
859
- if (withIndicator)
860
- return (React__default.createElement(Indicator, Object.assign({ inline: true, position: "bottom-end", offset: 9 }, indicatorConfig, { styles: Object.assign({ indicator: {
861
- backgroundColor: React__default.isValidElement(indicatorConfig.label) && 'transparent',
862
- zIndex: 1,
863
- } }, styles) }), generateAvatar()));
864
- return generateAvatar();
865
- };
539
+ var styles$2 = {"flag":"pfaLGRK"};
866
540
 
867
- const FileInput = (props) => {
868
- return React__default.createElement(FileInput$1, Object.assign({ size: "md" }, props));
541
+ const Flag = ({ country, language, rounded, height, width, isTesting, className, }) => {
542
+ let flag;
543
+ let flagRounded;
544
+ switch (language) {
545
+ case 'en':
546
+ flag = React__default.createElement(EnglishSquareIcon, null);
547
+ flagRounded = React__default.createElement(EnglishRoundIcon, null);
548
+ break;
549
+ case 'vi':
550
+ flag = React__default.createElement(VietnamSquareIcon, null);
551
+ flagRounded = React__default.createElement(VietnamRoundIcon, null);
552
+ break;
553
+ case 'id':
554
+ flag = React__default.createElement(IndonesiaSquareIcon, { isTesting: isTesting });
555
+ flagRounded = React__default.createElement(IndonesiaRoundIcon, { isTesting: isTesting });
556
+ break;
557
+ case 'th':
558
+ flag = React__default.createElement(ThailandSquareIcon, null);
559
+ flagRounded = React__default.createElement(ThailandRoundIcon, null);
560
+ break;
561
+ case 'km':
562
+ flag = React__default.createElement(CambodiaSquareIcon, null);
563
+ flagRounded = React__default.createElement(CambodiaRoundIcon, null);
564
+ break;
565
+ case 'ms':
566
+ flag = React__default.createElement(MalaysiaSquareIcon, null);
567
+ flagRounded = React__default.createElement(MalaysiaRoundIcon, null);
568
+ break;
569
+ case 'my':
570
+ flag = React__default.createElement(MyanmarSquareIcon, null);
571
+ flagRounded = React__default.createElement(MyanmarRoundIcon, null);
572
+ break;
573
+ case 'tl':
574
+ flag = React__default.createElement(PhilippinesSquareIcon, null);
575
+ flagRounded = React__default.createElement(PhilippinesRoundIcon, null);
576
+ break;
577
+ case 'hi':
578
+ flag = React__default.createElement(IndiaSquareIcon, null);
579
+ flagRounded = React__default.createElement(IndiaRoundIcon, null);
580
+ break;
581
+ case 'zh':
582
+ flag = React__default.createElement(TaiwanSquareIcon, null);
583
+ flagRounded = React__default.createElement(TaiwanRoundIcon, null);
584
+ break;
585
+ }
586
+ if (!flag && !flagRounded) {
587
+ switch (country) {
588
+ case 'VN':
589
+ flag = React__default.createElement(VietnamSquareIcon, null);
590
+ flagRounded = React__default.createElement(VietnamRoundIcon, null);
591
+ break;
592
+ case 'ID':
593
+ flag = React__default.createElement(IndonesiaSquareIcon, { isTesting: isTesting });
594
+ flagRounded = React__default.createElement(IndonesiaRoundIcon, { isTesting: isTesting });
595
+ break;
596
+ case 'TH':
597
+ flag = React__default.createElement(ThailandSquareIcon, null);
598
+ flagRounded = React__default.createElement(ThailandRoundIcon, null);
599
+ break;
600
+ case 'KH':
601
+ flag = React__default.createElement(CambodiaSquareIcon, null);
602
+ flagRounded = React__default.createElement(CambodiaRoundIcon, null);
603
+ break;
604
+ case 'MY':
605
+ flag = React__default.createElement(MalaysiaSquareIcon, null);
606
+ flagRounded = React__default.createElement(MalaysiaRoundIcon, null);
607
+ break;
608
+ case 'MM':
609
+ flag = React__default.createElement(MyanmarSquareIcon, null);
610
+ flagRounded = React__default.createElement(MyanmarRoundIcon, null);
611
+ break;
612
+ case 'PH':
613
+ flag = React__default.createElement(PhilippinesSquareIcon, null);
614
+ flagRounded = React__default.createElement(PhilippinesRoundIcon, null);
615
+ break;
616
+ case 'IN':
617
+ flag = React__default.createElement(IndiaSquareIcon, null);
618
+ flagRounded = React__default.createElement(IndiaRoundIcon, null);
619
+ break;
620
+ case 'TW':
621
+ flag = React__default.createElement(TaiwanSquareIcon, null);
622
+ flagRounded = React__default.createElement(TaiwanRoundIcon, null);
623
+ break;
624
+ }
625
+ }
626
+ return (React__default.createElement("div", { className: `${styles$2.flag} ${className || ''}`, style: {
627
+ '--width': width || 20,
628
+ '--height': height || 20,
629
+ } }, rounded ? flagRounded : flag));
869
630
  };
870
631
 
871
- const DEBOUNCED_TIME = 300;
872
- const emotionCache = createEmotionCache({
873
- key: 'mantine',
874
- prepend: false,
875
- });
632
+ const Select = forwardRef((_a, ref) => {
633
+ var { keepSearch = false } = _a, props = __rest(_a, ["keepSearch"]);
634
+ if (keepSearch) {
635
+ return (React__default.createElement(_AutoComplete, Object.assign({}, props, { ref: ref })));
636
+ }
637
+ else {
638
+ return React__default.createElement(_Select, Object.assign({}, props, { ref: ref }));
639
+ }
640
+ });
641
+ const _AutoComplete = forwardRef((_a, ref) => {
642
+ var { value, defaultValue, onChange, clearable } = _a, props = __rest(_a, ["value", "defaultValue", "onChange", "clearable"]);
643
+ const [_value, handleChange] = useUncontrolled({
644
+ value,
645
+ defaultValue,
646
+ onChange,
647
+ });
648
+ const onClear = () => {
649
+ handleChange('');
650
+ };
651
+ return (React__default.createElement(Autocomplete, Object.assign({ ref: ref, rightSection: React__default.createElement(Image, { src: CommonGAssets.getAssetPath('chevron-down.svg'), fit: "none" }), size: "md", maxDropdownHeight: 300, onChange: (e) => handleChange(e), value: _value }, props, (clearable && (_value === null || _value === void 0 ? void 0 : _value.length) > 0
652
+ ? {
653
+ rightSection: (React__default.createElement(ActionIcon, { onClick: onClear, sx: { cursor: 'pointer' } },
654
+ React__default.createElement(_IconSelect, null))),
655
+ }
656
+ : {}))));
657
+ });
658
+ const _Select = forwardRef((_a, ref) => {
659
+ var { searchValue, onSearchChange } = _a, props = __rest(_a, ["searchValue", "onSearchChange"]);
660
+ const [_searchValue, handleSearchChange] = useUncontrolled({
661
+ defaultValue: '',
662
+ value: searchValue,
663
+ onChange: onSearchChange,
664
+ });
665
+ const onClear = () => {
666
+ handleSearchChange('');
667
+ };
668
+ return (React__default.createElement(Select$1, Object.assign({ ref: ref, rightSection: React__default.createElement(ArrowDown, { size: 18 }), rightSectionProps: { style: { pointerEvents: 'none' } }, size: "md", maxDropdownHeight: 300, onSearchChange: (e) => handleSearchChange(e), searchValue: _searchValue }, props, (props.clearable && (_searchValue === null || _searchValue === void 0 ? void 0 : _searchValue.length) > 0
669
+ ? {
670
+ rightSection: (React__default.createElement(ActionIcon, { onClick: onClear, sx: { cursor: 'pointer' } },
671
+ React__default.createElement(_IconSelect, null))),
672
+ }
673
+ : {}))));
674
+ });
675
+ const _IconSelect = () => (React__default.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" },
676
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.6665 9.99996C1.6665 5.39163 5.3915 1.66663 9.99984 1.66663C14.6082 1.66663 18.3332 5.39163 18.3332 9.99996C18.3332 14.6083 14.6082 18.3333 9.99984 18.3333C5.3915 18.3333 1.6665 14.6083 1.6665 9.99996ZM12.4083 13.5831C12.7333 13.9081 13.2583 13.9081 13.5833 13.5831C13.9 13.2581 13.9 12.7247 13.5833 12.4081L11.175 9.99973L13.5833 7.5914C13.9083 7.2664 13.9083 6.7414 13.5833 6.4164C13.2583 6.0914 12.7333 6.0914 12.4083 6.4164L10 8.82473L7.59167 6.4164C7.26667 6.0914 6.74167 6.0914 6.41667 6.4164C6.26063 6.57209 6.17293 6.78347 6.17293 7.0039C6.17293 7.22433 6.26063 7.43571 6.41667 7.5914L8.825 9.99973L6.41667 12.4081C6.26063 12.5638 6.17293 12.7751 6.17293 12.9956C6.17293 13.216 6.26063 13.4274 6.41667 13.5831C6.74167 13.9081 7.26667 13.9081 7.59167 13.5831L10 11.1747L12.4083 13.5831Z", fill: "#8C8C8C" })));
876
677
 
877
- const NumberInput = (_a) => {
878
- var { value: _value, onChange: _onChange } = _a, props = __rest(_a, ["value", "onChange"]);
879
- const [value, setValue] = useState(_value);
880
- const [debounced] = useDebouncedValue(value, DEBOUNCED_TIME);
881
- useEffect(() => {
882
- _onChange === null || _onChange === void 0 ? void 0 : _onChange(debounced);
883
- }, [debounced]);
678
+ const getIsMobile = () => {
679
+ return (typeof window !== 'undefined' &&
680
+ window.innerWidth < Breakpoints.BREAK_POINT_MOBILE);
681
+ };
682
+ const getIsLargeMobile = () => {
683
+ return (typeof window !== 'undefined' &&
684
+ window.innerWidth >= Breakpoints.BREAK_POINT_MOBILE &&
685
+ window.innerWidth < Breakpoints.BREAK_POINT_PC);
686
+ };
687
+ const useScreenSize = () => {
688
+ const [isMobile, setIsMobile] = useState(getIsMobile());
689
+ const [isLargeMobile, setIsLargeMobile] = useState(getIsLargeMobile());
884
690
  useEffect(() => {
885
- setValue(_value);
886
- }, [_value]);
887
- return (React__default.createElement(NumberInput$1, Object.assign({ size: "md", stepHoldDelay: 500, stepHoldInterval: (t) => Math.max(1000 / Math.pow(t, 2), 25), onChange: setValue, hideControls: true, min: 0, formatter: (value) => {
888
- if (Number(value) === 0)
889
- return value;
890
- return value || '';
891
- }, removeTrailingZeros: true, value: value }, props)));
691
+ const handleResize = () => {
692
+ setIsMobile(getIsMobile());
693
+ setIsLargeMobile(getIsLargeMobile());
694
+ };
695
+ window.addEventListener('resize', handleResize, {
696
+ passive: true,
697
+ });
698
+ return () => {
699
+ window.removeEventListener('resize', handleResize);
700
+ };
701
+ }, []);
702
+ return { isMobile, isLargeMobile };
892
703
  };
893
704
 
894
- const EyeVisible = CommonGAssets.getAssetPath('EyeVisible.svg');
895
- const EyeHidden = CommonGAssets.getAssetPath('EyeHidden.svg');
896
- const PasswordInput = forwardRef((props, ref) => {
897
- const { size = 'md', visibilityToggleIcon: visibilityToggleIconProps } = props, restProps = __rest(props, ["size", "visibilityToggleIcon"]);
898
- const visibilityToggleIcon = visibilityToggleIconProps ||
899
- (({ reveal, size }) => reveal ? (React__default.createElement("img", { src: EyeVisible, width: size, loading: "lazy" })) : (React__default.createElement("img", { src: EyeHidden, width: size, loading: "lazy" })));
900
- return (React__default.createElement(PasswordInput$1, Object.assign({ ref: ref, size: size, visibilityToggleIcon: visibilityToggleIcon }, restProps, { className: `input-control ${(restProps === null || restProps === void 0 ? void 0 : restProps.className) || ''}` })));
901
- });
705
+ class ErrorBoundary extends Component {
706
+ constructor() {
707
+ super(...arguments);
708
+ this.state = {
709
+ hasError: false,
710
+ };
711
+ }
712
+ static getDerivedStateFromError() {
713
+ // Update state so the next render will show the fallback UI.
714
+ return { hasError: true };
715
+ }
716
+ componentDidCatch(error, errorInfo) {
717
+ console.error('Uncaught error:', error, errorInfo);
718
+ }
719
+ render() {
720
+ if (this.state.hasError) {
721
+ return this.props.fallback || React__default.createElement(React__default.Fragment, null);
722
+ }
723
+ return this.props.children;
724
+ }
725
+ }
902
726
 
903
- const InputWrapper = forwardRef((_a, ref) => {
904
- var { value: _value, onChange: _onChange, onChangeRaw, maxLength } = _a, props = __rest(_a, ["value", "onChange", "onChangeRaw", "maxLength"]);
905
- const [value, setValue] = useState(_value || '');
906
- const [debounced] = useDebouncedValue(value, DEBOUNCED_TIME);
907
- useEffect(() => {
908
- _onChange === null || _onChange === void 0 ? void 0 : _onChange(debounced);
909
- }, [debounced]);
910
- useEffect(() => {
911
- setValue(_value);
912
- }, [_value]);
913
- return (React__default.createElement(TextInput, Object.assign({ ref: ref, size: "md", onChange: (event) => {
914
- if (typeof maxLength === 'number' &&
915
- event.currentTarget.value.length > maxLength) {
916
- return;
917
- }
918
- onChangeRaw === null || onChangeRaw === void 0 ? void 0 : onChangeRaw(event);
919
- setValue(event.currentTarget.value);
920
- }, value: value }, props, { maxLength: maxLength, className: `input-control ${(props === null || props === void 0 ? void 0 : props.className) || ''}` })));
921
- });
922
- const Input = InputWrapper;
923
- Input.File = FileInput;
924
- Input.Password = PasswordInput;
925
- Input.Number = NumberInput;
926
- Input.Wrapper = Input$1.Wrapper;
727
+ const CarouselWrapper$1 = (_a) => {
728
+ var { slidesToShow = 1, children } = _a, props = __rest(_a, ["slidesToShow", "children"]);
729
+ const length = Array.isArray(children) ? children.length : 1;
730
+ if (!length)
731
+ return null;
732
+ return (React__default.createElement(ErrorBoundary, null,
733
+ React__default.createElement(Carousel$1
734
+ // get 2 precision number
735
+ , Object.assign({
736
+ // get 2 precision number
737
+ slideSize: String(Math.floor((1 / slidesToShow) * 10000) / 100) + '%', containScroll: "trimSnaps" }, props), children)));
738
+ };
739
+ const Carousel = CarouselWrapper$1;
740
+ Carousel.Slide = Carousel$1.Slide;
927
741
 
928
- const StyledSlide = Carousel$1.Slide;
742
+ const StyledCarousel = styled(Carousel) `
743
+ cursor: grab;
744
+ width: 100%;
745
+ .mantine-Carousel-control {
746
+ background: rgb(255, 255, 255);
747
+ opacity: 1;
748
+ border: none;
749
+ border-radius: 0;
750
+ box-shadow: none;
751
+ &[data-inactive] {
752
+ opacity: 0;
753
+ cursor: default;
754
+ }
755
+ &:first-child {
756
+ padding-right: 24px;
757
+ background: linear-gradient(
758
+ 90deg,
759
+ rgba(255, 255, 255, 1) 0%,
760
+ rgba(255, 255, 255, 1) 50%,
761
+ rgba(255, 255, 255, 0) 100%
762
+ );
763
+ }
764
+ &:last-child {
765
+ padding-left: 24px;
766
+ background: linear-gradient(
767
+ 270deg,
768
+ rgba(255, 255, 255, 1) 0%,
769
+ rgba(255, 255, 255, 1) 50%,
770
+ rgba(255, 255, 255, 0) 100%
771
+ );
772
+ }
773
+ }
929
774
 
930
- const SlideContext = createContext({});
931
- const CustomSlide = (_a) => {
932
- var { children, onClick, innerSlideProps } = _a, rest = __rest(_a, ["children", "onClick", "innerSlideProps"]);
933
- const { slider, selectSlideWhenClick } = useContext(SlideContext);
934
- const ref = useRef();
935
- const key = useRef('');
936
- const [index, setIndex] = useState(0);
937
- useEffect(() => {
938
- key.current = String(Math.round(Math.random() * 10000));
939
- }, []);
940
- useEffect(() => {
941
- const slidesNode = (slider === null || slider === void 0 ? void 0 : slider.slideNodes()) || [];
942
- setIndex(slidesNode.findIndex((obj) => obj.dataset.key === key.current));
943
- }, [slider]);
944
- const sliderProps = {
945
- ref,
946
- 'data-key': key.current,
947
- 'data-index': index,
948
- };
949
- return (React__default.createElement(StyledSlide, Object.assign({}, sliderProps, rest),
950
- React__default.createElement("div", Object.assign({ style: {
951
- height: '100%',
952
- }, onClick: () => {
953
- selectSlideWhenClick && (slider === null || slider === void 0 ? void 0 : slider.scrollTo(index));
954
- onClick === null || onClick === void 0 ? void 0 : onClick(index);
955
- } }, innerSlideProps), children)));
956
- };
957
- const findIndexFromLeftSide = (position, slideLength) => {
958
- return position >= slideLength ? position - slideLength : position;
959
- };
960
- const findIndexFromRight = (position, slideLength) => {
961
- return position < 0 ? slideLength + position : position;
962
- };
963
- const CarouselWrapper = (_a) => {
964
- var { children, blurFromCenter, blurFromIndex, blurLength = 3, maxBlurOpacity = 0.5, onSlideChange, selectSlideWhenClick } = _a, props = __rest(_a, ["children", "blurFromCenter", "blurFromIndex", "blurLength", "maxBlurOpacity", "onSlideChange", "selectSlideWhenClick"]);
965
- const { width } = useViewportSize();
966
- const [ref] = useResizeObserver();
967
- const slider = useRef(null);
968
- const [centerSlide, setCenterSlide] = useState(0);
969
- const handleStyle = () => {
970
- var _a, _b, _c, _d, _e;
971
- const slidesNode = ((_a = slider === null || slider === void 0 ? void 0 : slider.current) === null || _a === void 0 ? void 0 : _a.slideNodes()) || [];
972
- if (((_b = slider === null || slider === void 0 ? void 0 : slider.current) === null || _b === void 0 ? void 0 : _b.slideNodes().length) <=
973
- ((_c = slider === null || slider === void 0 ? void 0 : slider.current) === null || _c === void 0 ? void 0 : _c.slidesInView().length)) {
974
- slidesNode.map((item) => {
975
- item.classList.remove('center-slide');
976
- item.style.opacity = '1';
977
- });
978
- return false;
979
- }
980
- const centerSlideIndex = (_d = slider === null || slider === void 0 ? void 0 : slider.current) === null || _d === void 0 ? void 0 : _d.selectedScrollSnap();
981
- setCenterSlide(centerSlideIndex);
982
- const slidesNodeLength = slidesNode.length;
983
- const slidesInView = (_e = slider === null || slider === void 0 ? void 0 : slider.current) === null || _e === void 0 ? void 0 : _e.slidesInView();
984
- const slidesInViewLength = slidesInView.length;
985
- const halfSideLength = Math.floor(slidesInViewLength / 2);
986
- const halfSideBlurLength = blurFromCenter
987
- ? blurFromIndex + blurLength - 1
988
- : halfSideLength;
989
- const lastRightBlurIndexTmp = centerSlideIndex + halfSideBlurLength;
990
- const lastRightBlurIndex = lastRightBlurIndexTmp === slidesNodeLength
991
- ? 0
992
- : lastRightBlurIndexTmp > slidesNodeLength
993
- ? lastRightBlurIndexTmp - slidesNodeLength
994
- : lastRightBlurIndexTmp;
995
- const lastLeftBlurIndexTmp = centerSlideIndex - halfSideBlurLength;
996
- const lastLeftBlurIndex = lastLeftBlurIndexTmp < 0
997
- ? slidesNodeLength + lastLeftBlurIndexTmp
998
- : lastLeftBlurIndexTmp > 0
999
- ? centerSlideIndex - halfSideBlurLength
1000
- : 0;
1001
- const visibleSlide = [
1002
- ...new Set(Array(halfSideBlurLength * 2 + 1)
1003
- .fill('')
1004
- .map((i, idx) => {
1005
- const findFrom = lastLeftBlurIndex;
1006
- return findIndexFromLeftSide(findFrom + idx, slidesNodeLength);
1007
- })),
1008
- ];
1009
- slidesNode.map((item, index) => {
1010
- if (index === centerSlideIndex) {
1011
- item.classList.add('center-slide');
1012
- }
1013
- else {
1014
- item.classList.remove('center-slide');
1015
- }
1016
- if (visibleSlide.indexOf(index) !== -1) {
1017
- const opacityGap = maxBlurOpacity / blurLength;
1018
- for (let i = 0; i < blurLength; i++) {
1019
- if (index ===
1020
- findIndexFromLeftSide(lastLeftBlurIndex + i, slidesNodeLength) ||
1021
- index ===
1022
- findIndexFromRight(lastRightBlurIndex - i, slidesNodeLength)) {
1023
- item.style.opacity = String((i + 1) * opacityGap);
1024
- break;
1025
- }
1026
- item.style.opacity = '1';
1027
- }
1028
- }
1029
- else {
1030
- item.style.opacity = '0';
1031
- }
1032
- });
1033
- };
1034
- const sliderProps = {
1035
- getEmblaApi: (embla) => {
1036
- slider.current = embla;
1037
- },
1038
- onSlideChange: (index) => {
1039
- handleStyle();
1040
- onSlideChange === null || onSlideChange === void 0 ? void 0 : onSlideChange(index);
775
+ .mantine-Carousel-container {
776
+ align-items: center;
777
+ }
778
+ `;
779
+
780
+ var useStyles$3 = createStyles((_theme, _params) => {
781
+ return {
782
+ root: {
783
+ color: _params.color ||
784
+ (_theme.primaryColor === 'hb'
785
+ ? _theme.colors.hb[6]
786
+ : _theme.fn.primaryColor()),
1041
787
  },
1042
788
  };
1043
- useEffect(() => {
1044
- (slider === null || slider === void 0 ? void 0 : slider.current) && handleStyle();
1045
- }, [width]);
1046
- const useStyles = createStyles(() => {
1047
- var _a, _b;
1048
- return ({
1049
- control: Object.assign({}, (((_a = slider === null || slider === void 0 ? void 0 : slider.current) === null || _a === void 0 ? void 0 : _a.slideNodes().length) <=
1050
- ((_b = slider === null || slider === void 0 ? void 0 : slider.current) === null || _b === void 0 ? void 0 : _b.slidesInView().length) && {
1051
- display: 'none',
1052
- })),
1053
- });
1054
- });
1055
- const { classes } = useStyles();
1056
- return (React__default.createElement(SlideContext.Provider, { value: { slider: slider === null || slider === void 0 ? void 0 : slider.current, centerSlide, selectSlideWhenClick } },
1057
- React__default.createElement(Carousel$1, Object.assign({ classNames: {
1058
- control: classes.control,
1059
- }, ref: ref, slideSize: 'auto', containScroll: "trimSnaps" }, sliderProps, props, { loop: true }), typeof children === 'function' ? children(centerSlide) : children)));
1060
- };
1061
- const CentralCarousel = CarouselWrapper;
1062
- CentralCarousel.Slide = CustomSlide;
789
+ });
1063
790
 
1064
- const CheckboxWrapper = (_a) => {
1065
- var { styles, color = 'blue' } = _a, props = __rest(_a, ["styles", "color"]);
1066
- const theme = useMantineTheme();
1067
- const hexColor = useMemo(() => {
1068
- var _a, _b;
1069
- return ((color === null || color === void 0 ? void 0 : color.includes('.'))
1070
- ? (_a = theme.colors[color.split('.')[0]]) === null || _a === void 0 ? void 0 : _a[color.split('.')[1]]
1071
- : (_b = theme.colors[color]) === null || _b === void 0 ? void 0 : _b[theme.primaryShade || 6]) ||
1072
- theme.colors.blue[6];
1073
- }, [color]);
1074
- return (React__default.createElement(Checkbox$1, Object.assign({ styles: Object.assign({ input: {
1075
- '&:hover': {
1076
- border: `1px solid ${hexColor}`,
1077
- },
1078
- } }, styles), color: color }, props)));
1079
- };
1080
- const Checkbox = CheckboxWrapper;
1081
- Checkbox.Group = Checkbox$1.Group;
791
+ const Anchor = (_a) => {
792
+ var { color, styles, className } = _a, rest = __rest(_a, ["color", "styles", "className"]);
793
+ const { classes, cx } = useStyles$3({ color }, { name: 'Anchor', styles });
794
+ return React__default.createElement(Text, Object.assign({ as: "a", className: cx(classes.root, className) }, rest));
795
+ };
1082
796
 
1083
- const StyledSlider = styled(Slider) `
1084
- ${(props) => {
1085
- const color = props.color || theme.colors.primaryBase;
1086
- return `
1087
- .mantine-Slider-bar {
1088
- background-color: ${color};
1089
- }
1090
- .mantine-Slider-thumb {
1091
- border-color: ${color};
1092
- color: ${color};
1093
- }
1094
- `;
1095
- }}
1096
- [data-theme='marryBaby'] & {
1097
- ${(props) => {
1098
- const color = props.color || theme.mbColors.pink;
1099
- return `
1100
- .mantine-Slider-bar {
1101
- background-color: ${color};
1102
- }
1103
- .mantine-Slider-thumb {
1104
- border-color: ${color};
1105
- color: ${color};
1106
- }
1107
- `;
1108
- }}
1109
- }
797
+ const BreadcrumbItem = (_a) => {
798
+ var { children } = _a, rest = __rest(_a, ["children"]);
799
+ return (React__default.createElement(Anchor, Object.assign({ size: "p4", color: 'gray.8' }, rest), children));
800
+ };
1110
801
 
1111
- .mantine-Slider-label {
1112
- background-color: transparent;
1113
- color: #000;
1114
- font-size: 14px;
1115
- font-weight: bold;
802
+ const AspectRatio = (props) => {
803
+ return (React__default.createElement(AspectRatio$1, Object.assign({ sx: {
804
+ borderRadius: 4,
805
+ overflow: 'hidden',
806
+ '> img': {
807
+ objectFit: 'contain',
808
+ },
809
+ } }, props)));
810
+ };
811
+
812
+ const _Breadcrumbs = (_a) => {
813
+ var _b;
814
+ var { children, showHomeIcon = true, homeIconHref = '/' } = _a, rest = __rest(_a, ["children", "showHomeIcon", "homeIconHref"]);
815
+ const theme = useMantineTheme();
816
+ const isMarryBaby = ((_b = theme === null || theme === void 0 ? void 0 : theme.other) === null || _b === void 0 ? void 0 : _b.template) === 'mb';
817
+ const [embla, setEmbla] = useState(null);
818
+ const { isMobile } = useScreenSize();
819
+ const [, setShouldAllowClick] = useState(true);
820
+ const handleScroll = useCallback(() => {
821
+ setShouldAllowClick(false);
822
+ }, []);
823
+ const handlePointerUp = useCallback(() => {
824
+ setTimeout(() => {
825
+ setShouldAllowClick(true);
826
+ }, 1000);
827
+ }, []);
828
+ useEffect(() => {
829
+ if (embla) {
830
+ embla.on('scroll', handleScroll);
831
+ embla.on('pointerUp', handlePointerUp);
832
+ }
833
+ return () => {
834
+ if (embla) {
835
+ embla.off('scroll', handleScroll);
836
+ embla.on('pointerUp', handlePointerUp);
837
+ }
838
+ };
839
+ }, [embla, handleScroll, handlePointerUp]);
840
+ return (React__default.createElement(StyledCarousel, Object.assign({ align: "center", slideGap: "xs", dragFree: true, draggable: isMobile, slideSize: "0", getEmblaApi: setEmbla, controlsOffset: -52, previousControlIcon: React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
841
+ React__default.createElement("path", { d: "M6.86589 3.56104C7.03647 3.56104 7.20724 3.62732 7.33724 3.75765L7.39453 3.81494C7.6552 4.07561 7.6552 4.49765 7.39453 4.75765L4.81901 7.33317L13.5326 7.33317C13.9006 7.33317 14.1992 7.63184 14.1992 7.99984C14.1992 8.36784 13.9006 8.6665 13.5326 8.6665L4.81901 8.66651L7.39453 11.242C7.6552 11.5027 7.6552 11.9247 7.39453 12.1847L7.33724 12.242C7.07657 12.5027 6.65453 12.5027 6.39453 12.242L2.6237 8.47119C2.36303 8.21053 2.36303 7.78849 2.6237 7.52849L6.39453 3.75765C6.52487 3.62732 6.6953 3.56104 6.86589 3.56104Z", fill: "#595959" })), nextControlIcon: React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
842
+ React__default.createElement("path", { d: "M9.13411 12.439C8.96353 12.439 8.79276 12.3727 8.66276 12.2423L8.60547 12.1851C8.3448 11.9244 8.3448 11.5023 8.60547 11.2423L11.181 8.66683L2.46745 8.66683C2.09945 8.66683 1.80078 8.36816 1.80078 8.00016C1.80078 7.63216 2.09945 7.3335 2.46745 7.3335L11.181 7.3335L8.60547 4.75797C8.3448 4.49731 8.3448 4.07527 8.60547 3.81527L8.66276 3.75797C8.92343 3.49731 9.34547 3.49731 9.60547 3.75797L13.3763 7.52881C13.637 7.78947 13.637 8.21152 13.3763 8.47152L9.60547 12.2423C9.47513 12.3727 9.3047 12.439 9.13411 12.439Z", fill: "#595959" })) }, rest),
843
+ showHomeIcon && (React__default.createElement(Carousel.Slide, { style: { borderRight: `1px solid ${themeColors.neutral[1]}` } },
844
+ React__default.createElement(BreadcrumbItem, { href: homeIconHref, target: "_blank", className: "pointer-event-child-none" },
845
+ React__default.createElement(Box, { sx: Object.assign({}, (!isMarryBaby && {
846
+ borderRadius: '50%',
847
+ display: 'flex',
848
+ justifyContent: 'center',
849
+ alignItems: 'center',
850
+ })), bg: !isMarryBaby && themeColors.neutral[0], p: !isMarryBaby ? 6 : 0 },
851
+ React__default.createElement(AspectRatio, { ratio: 1, w: 18 }, isMarryBaby ? (React__default.createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" },
852
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1183 3.67722C12.8727 2.70772 11.1281 2.708 9.88187 3.67718L14.1183 3.67722ZM14.1183 3.67722L19.718 8.03283C20.5589 8.68632 21.05 9.69173 21.05 10.7562V17.6002C21.05 19.5057 19.5055 21.0502 17.6 21.0502H6.40016C4.49466 21.0502 2.9502 19.5057 2.9502 17.6002V10.7562C2.9502 9.69163 3.44113 8.68632 4.28216 8.03283L9.88187 3.67718M10.6799 4.70339L5.08006 9.05916C4.55657 9.46592 4.2502 10.0923 4.2502 10.7562V17.6002C4.2502 18.7878 5.21263 19.7502 6.40016 19.7502H17.6C18.7875 19.7502 19.75 18.7878 19.75 17.6002V10.7562C19.75 10.0923 19.4438 9.46612 18.9204 9.05936L13.3202 4.70335C12.5443 4.09941 11.4571 4.09905 10.6799 4.70339Z", fill: "#3E3F58" }),
853
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.2373 13.1626C12.5546 12.4794 11.4466 12.4791 10.7629 13.1628C10.0793 13.8464 10.0793 14.9538 10.7629 15.6374C11.4465 16.321 12.5539 16.321 13.2375 15.6374C13.9211 14.9538 13.9211 13.8464 13.2375 13.1628L13.2373 13.1626ZM14.1567 12.2436C12.9661 11.0521 11.0348 11.0525 9.84366 12.2436C8.65237 13.4348 8.65237 15.3653 9.84366 16.5566C11.0349 17.7479 12.9654 17.7479 14.1567 16.5566C15.348 15.3653 15.348 13.4348 14.1567 12.2436Z", fill: "#3E3F58" }))) : (React__default.createElement("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none" },
854
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.58691 5.59863L8.58691 1.62305C8.83594 1.45898 9.16406 1.45898 9.41309 1.62305L15.4131 5.59863C15.624 5.73926 15.75 5.97363 15.75 6.22559V14.25C15.75 15.0791 15.0791 15.75 14.25 15.75H3.75C2.9209 15.75 2.25 15.0791 2.25 14.25V6.22559C2.25 5.97363 2.37598 5.73926 2.58691 5.59863ZM5.5017 11.7602C5.1717 11.5108 5.17316 11.0321 5.46521 10.7391C5.75775 10.4456 6.24936 10.4292 6.5986 10.6522C7.17818 11.0223 8.12516 11.4889 9.21628 11.4889C10.3074 11.4889 11.2543 11.0223 11.8339 10.6522C12.1832 10.4292 12.6748 10.4456 12.9673 10.7391C13.2594 11.0321 13.2608 11.5108 12.9308 11.7602C11.8743 12.5589 10.535 12.9889 9.21628 12.9889C7.89758 12.9889 6.55824 12.5589 5.5017 11.7602Z", fill: "#595959" })))))))),
855
+ React__default.createElement(Carousel.Slide, null),
856
+ React__default.createElement(Carousel.Slide, null,
857
+ React__default.createElement(Breadcrumbs$1, { styles: {
858
+ separator: {
859
+ marginInline: 4,
860
+ },
861
+ }, separator: React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
862
+ React__default.createElement("path", { d: "M8.71527 7.99969L6.16794 5.45236C5.89194 5.17636 5.89194 4.72836 6.16794 4.45236C6.44394 4.17636 6.89194 4.17636 7.16794 4.45236L10.2439 7.52836C10.5046 7.78903 10.5046 8.21103 10.2439 8.47103L7.16794 11.547C6.89194 11.823 6.44394 11.823 6.16794 11.547C5.89194 11.271 5.89194 10.823 6.16794 10.547L8.71527 7.99969Z", fill: "#8C8C8C" })) }, children))));
863
+ };
864
+ const Breadcrumbs = _Breadcrumbs;
865
+ Breadcrumbs.Item = BreadcrumbItem;
866
+
867
+ const StyledTextArea = styled(Textarea) `
868
+ .mantine-Textarea-input {
869
+ padding: 12px 16px;
870
+ background: #ffffff;
871
+ border: 1px solid ${theme.colors.gray200};
872
+ border-radius: 4px;
1116
873
  }
1117
- `;
1118
- const StyledSliderWrapper = styled.div `
1119
- display: flex;
1120
- align-items: center;
1121
- .hhg-mantine-slider {
1122
- flex-grow: 1;
874
+ `;
875
+
876
+ var useStyles$2 = createStyles((theme) => {
877
+ return {
878
+ root: {},
879
+ inner: {},
880
+ content: {},
881
+ header: {
882
+ borderBottom: `1px solid ${theme.colors.neutral[1]}`,
883
+ marginRight: 0,
884
+ marginBottom: 0,
885
+ padding: '12px',
886
+ },
887
+ overlay: {},
888
+ title: {
889
+ fontSize: 16,
890
+ fontWeight: 700,
891
+ lineHeight: 1.5,
892
+ },
893
+ body: {},
894
+ close: {
895
+ cursor: 'pointer',
896
+ width: 'unset',
897
+ height: 'unset',
898
+ svg: {
899
+ width: '24px !important',
900
+ height: '24px !important',
901
+ },
902
+ },
903
+ };
904
+ });
905
+
906
+ const StyledAccordion = styled(Accordion$1) `
907
+ .mantine-Accordion-label {
908
+ padding: 0;
1123
909
  }
1124
- button {
1125
- path:not([stroke]) {
1126
- stroke: ${theme.colors.primaryBase};
910
+ .mantine-Accordion-control {
911
+ &:hover {
912
+ background-color: transparent;
1127
913
  }
1128
914
  }
1129
- [data-theme='marryBaby'] & {
1130
- button {
1131
- path:not([stroke]) {
1132
- stroke: ${theme.mbColors.pink};
915
+ .mantine-Accordion-item {
916
+ .mantine-Accordion-chevron {
917
+ > div {
918
+ background-repeat: no-repeat;
919
+ width: 16px;
920
+ height: 16px;
921
+ background-position: center;
922
+ background-image: url(${(props) => props.closeChevron || CommonGAssets.getAssetPath('plus-icon.svg')});
923
+ }
924
+ }
925
+ &[data-active='true'] {
926
+ .mantine-Accordion-chevron {
927
+ > div {
928
+ background-image: url(${(props) => props.openChevron || CommonGAssets.getAssetPath('minus-icon.svg')});
929
+ }
1133
930
  }
1134
931
  }
1135
932
  }
933
+ .mantine-Accordion-panel {
934
+ border-radius: ${theme.borderRadius};
935
+ }
936
+ .mantine-Accordion-content {
937
+ white-space: pre-wrap;
938
+ }
1136
939
  `;
1137
940
 
1138
- const RadioWrapper = (_a) => {
1139
- var { styles, color } = _a, props = __rest(_a, ["styles", "color"]);
1140
- const theme = useMantineTheme();
1141
- const hexColor = useMemo(() => {
1142
- var _a, _b;
1143
- return ((color === null || color === void 0 ? void 0 : color.includes('.'))
1144
- ? (_a = theme.colors[color.split('.')[0]]) === null || _a === void 0 ? void 0 : _a[color.split('.')[1]]
1145
- : (_b = theme.colors[color]) === null || _b === void 0 ? void 0 : _b[theme.primaryShade || 6]) ||
1146
- theme.fn.primaryColor();
1147
- }, [color]);
1148
- return (React__default.createElement(Radio$1, Object.assign({ styles: Object.assign({ radio: {
1149
- '&:hover, &:checked': {
1150
- border: `1px solid ${hexColor}`,
1151
- },
1152
- }, icon: {
1153
- color: `${hexColor}`,
1154
- } }, styles), color: color }, props)));
941
+ const _Accordion = (_a) => {
942
+ var { children } = _a, rest = __rest(_a, ["children"]);
943
+ return (React__default.createElement(StyledAccordion, Object.assign({ chevron: React__default.createElement("div", null), disableChevronRotation: true, transitionDuration: 300 }, rest), children));
1155
944
  };
1156
- const Radio = RadioWrapper;
1157
- Radio.Group = Radio$1.Group;
945
+ const Accordion = _Accordion;
946
+ Accordion.Control = Accordion$1.Control;
947
+ Accordion.Item = Accordion$1.Item;
948
+ Accordion.Panel = Accordion$1.Panel;
1158
949
 
1159
- function transferValueToOtp(value, valueLength = 6) {
1160
- const otp = new Array(valueLength).fill('');
1161
- if (value) {
1162
- const arr = value.toString().split('');
1163
- otp.map((_, index) => {
1164
- if (arr[index]) {
1165
- otp[index] = arr[index] || '';
1166
- }
1167
- });
1168
- }
1169
- return otp;
1170
- }
1171
- function transferOtpToValue(otp) {
1172
- return otp.join('');
1173
- }
950
+ const DEFAULT_AVATAR = CommonGAssets.getAssetPath('avatar.jpg');
951
+ const Avatar = (_a) => {
952
+ var { withIndicator = false, indicatorConfig = null, size = 56, children, styles, placeholderText } = _a, // usually first letter of name
953
+ avatarProps = __rest(_a, ["withIndicator", "indicatorConfig", "size", "children", "styles", "placeholderText"]);
954
+ const generateAvatar = () => {
955
+ return (React__default.createElement(Avatar$1, Object.assign({ size: size, radius: "xl" }, avatarProps, { imageProps: Object.assign({ loading: 'lazy' }, avatarProps.imageProps), styles: {
956
+ placeholder: {
957
+ backgroundColor: avatarProps.color,
958
+ color: 'white',
959
+ },
960
+ } }), children ? (children) : placeholderText ? (placeholderText) : (React__default.createElement(ImageWrap, { src: DEFAULT_AVATAR, width: size, alt: avatarProps.alt || 'avatar' }))));
961
+ };
962
+ if (withIndicator)
963
+ return (React__default.createElement(Indicator, Object.assign({ inline: true, position: "bottom-end", offset: 9 }, indicatorConfig, { styles: Object.assign({ indicator: {
964
+ backgroundColor: React__default.isValidElement(indicatorConfig.label) && 'transparent',
965
+ zIndex: 1,
966
+ } }, styles) }), generateAvatar()));
967
+ return generateAvatar();
968
+ };
1174
969
 
1175
- var styles$2 = {"otpContainer":"_2iQs0sk","otpInput":"Ia6IojY","error":"yJs9MaD"};
970
+ const FileInput = (props) => {
971
+ return React__default.createElement(FileInput$1, Object.assign({ size: "md" }, props));
972
+ };
1176
973
 
1177
- const BACKSPACE = 8;
1178
- const LEFT_ARROW = 37;
1179
- const RIGHT_ARROW = 39;
1180
- const DELETE = 46;
1181
- const SPACEBAR = 32;
1182
- const OTPInputFunction = (props, ref) => {
1183
- const { maxLength = 1, placeholder, className } = props, restProps = __rest(props, ["maxLength", "placeholder", "className"]);
1184
- return (React__default.createElement("input", Object.assign({ maxLength: maxLength, className: cn(styles$2.otpInput, 'otpInput', className), placeholder: placeholder, type: "number" }, restProps, { ref: ref })));
1185
- };
1186
- const OTPInput = forwardRef(OTPInputFunction);
1187
- const OTPFowardRef = (props, ref) => {
1188
- const { valueLength = 6, type = 'number', value: valueProps, defaultValue, placeholder, onChange, onBlur, } = props;
1189
- const inputRef = useRef(new Array(valueLength).fill(null));
1190
- const [value, setValue] = useState(defaultValue || valueProps);
1191
- const [activeOtp, setActiveOtp] = useState(-1);
1192
- const [otp, setOtp] = useState(() => transferValueToOtp(value, valueLength));
1193
- const changeCodeAtFocus = useCallback(() => {
1194
- if (activeOtp === -1) {
1195
- return;
1196
- }
1197
- const activeInput = inputRef.current[activeOtp];
1198
- if (activeInput) {
1199
- activeInput.value = '';
1200
- const newOtp = otp;
1201
- newOtp[activeOtp] = '';
1202
- setOtp(newOtp);
1203
- setValue(() => transferOtpToValue(newOtp));
1204
- onChange === null || onChange === void 0 ? void 0 : onChange(transferOtpToValue(newOtp));
1205
- }
1206
- }, [activeOtp, onChange, otp]);
1207
- const focusPrevInput = useCallback(() => {
1208
- if (activeOtp === 0) {
1209
- return;
1210
- }
1211
- const curInput = inputRef.current[activeOtp];
1212
- if (curInput) {
1213
- curInput.blur();
1214
- }
1215
- const prevInput = inputRef.current[activeOtp - 1];
1216
- if (prevInput) {
1217
- prevInput.focus();
1218
- }
1219
- }, [activeOtp]);
1220
- const focusNextInput = useCallback(() => {
1221
- if (activeOtp === valueLength - 1) {
1222
- return;
1223
- }
1224
- const curInput = inputRef.current[activeOtp];
1225
- if (curInput) {
1226
- curInput.blur();
1227
- }
1228
- const nextInput = inputRef.current[activeOtp + 1];
1229
- if (nextInput) {
1230
- nextInput.focus();
1231
- }
1232
- }, [activeOtp, valueLength]);
1233
- const inputOnChange = useCallback((e) => {
1234
- const target = e.target;
1235
- const targetValue = target.value;
1236
- const code = targetValue.toString().slice(0, 1);
1237
- const indexTarget = inputRef.current.findIndex((input) => input === target);
1238
- if (indexTarget !== -1) {
1239
- const newOtp = otp;
1240
- newOtp[indexTarget] = code;
1241
- setOtp(newOtp);
1242
- setValue(() => transferOtpToValue(newOtp));
1243
- onChange === null || onChange === void 0 ? void 0 : onChange(transferOtpToValue(newOtp));
1244
- }
1245
- focusNextInput();
1246
- }, [focusNextInput, onChange, otp]);
1247
- const inputOnFocus = useCallback((e) => {
1248
- const target = e.target;
1249
- const targetIndex = inputRef.current.findIndex((input) => input === target);
1250
- if (type === 'number') {
1251
- target.select();
1252
- }
1253
- else {
1254
- target.setSelectionRange(0, target.value.length, 'backward');
1255
- }
1256
- if (targetIndex !== -1) {
1257
- setActiveOtp(targetIndex);
1258
- }
1259
- }, []);
1260
- const inputOnPaste = useCallback((e) => {
1261
- const clipboard = e.clipboardData.getData('text/plain');
1262
- const newOtp = transferValueToOtp(clipboard, valueLength);
1263
- const newValue = transferOtpToValue(newOtp);
1264
- setOtp(newOtp);
1265
- setValue(newValue);
1266
- onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
1267
- }, [onChange, type, valueLength]);
1268
- // Handle cases of backspace, delete, left arrow, right arrow, space
1269
- const inputOnKeyDown = useCallback((e) => {
1270
- if (e.keyCode === BACKSPACE || e.key === 'Backspace') {
1271
- e.preventDefault();
1272
- changeCodeAtFocus();
1273
- focusPrevInput();
1274
- }
1275
- else if (e.keyCode === DELETE || e.key === 'Delete') {
1276
- e.preventDefault();
1277
- changeCodeAtFocus();
1278
- }
1279
- else if (e.keyCode === LEFT_ARROW || e.key === 'ArrowLeft') {
1280
- e.preventDefault();
1281
- focusPrevInput();
1282
- }
1283
- else if (e.keyCode === RIGHT_ARROW || e.key === 'ArrowRight') {
1284
- e.preventDefault();
1285
- focusNextInput();
1286
- }
1287
- else if (e.keyCode === SPACEBAR ||
1288
- e.key === ' ' ||
1289
- e.key === 'Spacebar' ||
1290
- e.key === 'Space') {
1291
- e.preventDefault();
1292
- }
1293
- }, [changeCodeAtFocus, focusNextInput, focusPrevInput]);
1294
- useImperativeHandle(ref, () => inputRef.current[0], []);
974
+ const DEBOUNCED_TIME = 300;
975
+ const emotionCache = createEmotionCache({
976
+ key: 'mantine',
977
+ prepend: false,
978
+ });
979
+
980
+ const NumberInput = (_a) => {
981
+ var { value: _value, onChange: _onChange } = _a, props = __rest(_a, ["value", "onChange"]);
982
+ const [value, setValue] = useState(_value);
983
+ const [debounced] = useDebouncedValue(value, DEBOUNCED_TIME);
1295
984
  useEffect(() => {
1296
- setOtp(() => transferValueToOtp(valueProps, valueLength));
1297
- setValue(valueProps);
1298
- }, [valueLength, valueProps]);
1299
- return (React__default.createElement(Flex, { justify: "center", columnGap: 8, className: cn(styles$2.otpContainer, 'otpContainer') }, otp.map((val, index) => {
1300
- return (React__default.createElement(OTPInput, { ref: (iRef) => {
1301
- inputRef.current[index] = iRef;
1302
- }, key: '' + index, value: val, type: type, onChange: inputOnChange, onFocus: inputOnFocus, onKeyDown: inputOnKeyDown, onPaste: inputOnPaste, onBlur: onBlur, placeholder: placeholder }));
1303
- })));
1304
- };
1305
- const OTP = forwardRef(OTPFowardRef);
985
+ _onChange === null || _onChange === void 0 ? void 0 : _onChange(debounced);
986
+ }, [debounced]);
987
+ useEffect(() => {
988
+ setValue(_value);
989
+ }, [_value]);
990
+ return (React__default.createElement(NumberInput$1, Object.assign({ size: "md", stepHoldDelay: 500, stepHoldInterval: (t) => Math.max(1000 / Math.pow(t, 2), 25), onChange: setValue, hideControls: true, min: 0, formatter: (value) => {
991
+ if (Number(value) === 0)
992
+ return value;
993
+ return value || '';
994
+ }, removeTrailingZeros: true, value: value }, props)));
995
+ };
1306
996
 
1307
- const CambodiaRoundIcon = (props) => (React__default.createElement(ImageWrap, Object.assign({ alt: "round cambodia flag", src: CommonGAssets.getAssetPath('flags/cambodiaRound.png'), style: Object.assign({ borderRadius: '50%' }, props.style) }, props)));
1308
- const CambodiaSquareIcon = (props) => (React__default.createElement(ImageWrap, Object.assign({ alt: "square cambodia flag", src: CommonGAssets.getAssetPath('flags/cambodiaSquare.png') }, props)));
997
+ const EyeVisible = CommonGAssets.getAssetPath('EyeVisible.svg');
998
+ const EyeHidden = CommonGAssets.getAssetPath('EyeHidden.svg');
999
+ const PasswordInput = forwardRef((props, ref) => {
1000
+ const { size = 'md', visibilityToggleIcon: visibilityToggleIconProps } = props, restProps = __rest(props, ["size", "visibilityToggleIcon"]);
1001
+ const visibilityToggleIcon = visibilityToggleIconProps ||
1002
+ (({ reveal, size }) => reveal ? (React__default.createElement("img", { src: EyeVisible, width: size, loading: "lazy" })) : (React__default.createElement("img", { src: EyeHidden, width: size, loading: "lazy" })));
1003
+ return (React__default.createElement(PasswordInput$1, Object.assign({ ref: ref, size: size, visibilityToggleIcon: visibilityToggleIcon }, restProps, { className: `input-control ${(restProps === null || restProps === void 0 ? void 0 : restProps.className) || ''}` })));
1004
+ });
1309
1005
 
1310
- const EnglishRoundIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
1311
- React__default.createElement("g", null,
1312
- React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1313
- React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1314
- React__default.createElement("path", { d: "M7.49953 0.327881C5.47199 0.850891 3.69346 1.98591 2.37793 3.53444L7.49953 6.6655V0.327881Z", fill: "#3F51B5" }),
1315
- React__default.createElement("path", { d: "M2.30273 16.3824C3.62476 17.9749 5.4353 19.1399 7.50034 19.6729V13.2053L2.30273 16.3824Z", fill: "#3F51B5" }),
1316
- React__default.createElement("path", { d: "M0.328125 12.5C0.334625 12.526 0.341125 12.5515 0.348125 12.5775L0.474128 12.5H0.328125Z", fill: "white" }),
1317
- React__default.createElement("path", { d: "M17.7871 3.73445C16.4571 2.08391 14.6131 0.872891 12.499 0.327881V6.96651L17.7871 3.73445Z", fill: "#3F51B5" }),
1318
- React__default.createElement("path", { d: "M12.499 19.6722C14.6506 19.1172 16.5196 17.8707 17.8546 16.1752L12.499 12.9021V19.6722Z", fill: "#3F51B5" }),
1319
- React__default.createElement("path", { d: "M0.376626 7.31055C0.359125 7.37305 0.344125 7.43705 0.328125 7.50005H0.686632L0.376626 7.31055Z", fill: "white" }),
1320
- React__default.createElement("path", { d: "M19.8745 8.50006C19.827 8.18506 19.7655 7.87555 19.6895 7.57104L18.1699 8.50006H19.8745Z", fill: "white" }),
1321
- React__default.createElement("path", { d: "M0.686034 7.50024H0.327527C0.243026 7.82775 0.175524 8.16076 0.124023 8.50026H2.32207L0.686034 7.50024Z", fill: "white" }),
1322
- React__default.createElement("path", { d: "M19.7197 12.3148C19.7832 12.0473 19.8337 11.7752 19.8752 11.5002H18.3867L19.7197 12.3148Z", fill: "white" }),
1323
- React__default.createElement("path", { d: "M2.10956 11.5002H0.124023C0.175024 11.8398 0.243026 12.1728 0.327527 12.5003H0.47403L2.10956 11.5002Z", fill: "white" }),
1324
- React__default.createElement("path", { d: "M8.50002 7.27665V0.124512C8.16051 0.175513 7.82751 0.243514 7.5 0.328016V6.66564L8.50002 7.27665Z", fill: "white" }),
1325
- React__default.createElement("path", { d: "M11.5 12.2913V19.8759C11.8395 19.8249 12.1725 19.7569 12.5 19.6724V12.9023L11.5 12.2913Z", fill: "white" }),
1326
- React__default.createElement("path", { d: "M7.5 13.205V19.6721C7.82751 19.7566 8.16051 19.8241 8.50002 19.8756V12.594L7.5 13.205Z", fill: "white" }),
1327
- React__default.createElement("path", { d: "M11.5925 7.34715L11.7345 7.43415L12.5 6.96614V0.328016C12.1725 0.243514 11.8395 0.176013 11.5 0.124512V7.49865L11.5925 7.34715Z", fill: "white" }),
1328
- React__default.createElement("path", { d: "M2.32251 8.50002H7.01761L8.50014 7.594V7.277L7.50011 6.66548L2.37852 3.53442C1.95151 4.03743 1.572 4.58144 1.24949 5.16296L5.02507 7.5H2.29701L0.650482 6.47648C0.54748 6.74949 0.455478 7.02699 0.375977 7.3105L0.686483 7.5L2.32251 8.50002Z", fill: "white" }),
1329
- React__default.createElement("path", { d: "M11.7344 7.43419L13.4784 8.50021H18.171L19.6905 7.57119C19.528 6.92118 19.303 6.29767 19.02 5.70516L16.139 7.50019H13.4109L18.317 4.45013C18.1515 4.20313 17.9735 3.96562 17.7875 3.73462L12.4999 6.96618L11.7344 7.43419Z", fill: "white" }),
1330
- React__default.createElement("path", { d: "M5.02448 7.50013L1.2494 5.16309C1.0169 5.58259 0.821394 6.0231 0.650391 6.47661L2.29642 7.50013H5.02448Z", fill: "#E53935" }),
1331
- React__default.createElement("path", { d: "M16.1392 7.50024L19.0207 5.70521C18.8132 5.2702 18.5837 4.84819 18.3177 4.45068L13.4111 7.50024H16.1392Z", fill: "#E53935" }),
1332
- React__default.createElement("path", { d: "M11.5 11.5002V12.2913L12.5 12.9023L17.8556 16.1758C18.2416 15.6853 18.5836 15.1593 18.8736 14.6008L15.4856 12.5003H18.2136L19.4432 13.2673C19.5507 12.9563 19.6432 12.6393 19.7197 12.3153L18.3871 11.5002H11.5Z", fill: "white" }),
1333
- React__default.createElement("path", { d: "M13.4785 8.50019L11.7345 7.43417L11.5925 7.34717L11.5 7.49867V8.50019H13.4785Z", fill: "white" }),
1334
- React__default.createElement("path", { d: "M8.49934 12.5943V11.5002H2.10921L0.473182 12.5003L0.34668 12.5778C0.522683 13.2383 0.762688 13.8713 1.06319 14.4708L4.16375 12.5003H6.89181L1.80071 15.7168C1.95971 15.9448 2.12471 16.1688 2.30172 16.3823L7.49932 13.2053L8.49934 12.5943Z", fill: "white" }),
1335
- React__default.createElement("path", { d: "M7.01758 8.50026H8.50011V7.59424L7.01758 8.50026Z", fill: "white" }),
1336
- React__default.createElement("path", { d: "M15.4854 12.5L18.8729 14.6C19.0949 14.173 19.2834 13.727 19.4429 13.2665L18.2134 12.5H15.4854Z", fill: "#E53935" }),
1337
- React__default.createElement("path", { d: "M4.16501 12.5L1.06445 14.4705C1.28196 14.9045 1.52596 15.3216 1.80197 15.7166L6.89307 12.5H4.16501Z", fill: "#E53935" }),
1338
- React__default.createElement("path", { d: "M13.4785 8.5H11.5V11.5001H18.3871H19.8757C19.9497 11.0095 20.0002 10.511 20.0002 10C20.0002 9.48902 19.9497 8.99051 19.8757 8.5H18.1711H13.4785Z", fill: "#E53935" }),
1339
- React__default.createElement("path", { d: "M8.50017 11.5001V8.5H7.01764H2.32255H0.124502C0.050501 8.99051 0 9.48902 0 10C0 10.511 0.050501 11.0095 0.124502 11.5001H2.11004H8.50017Z", fill: "#E53935" }),
1340
- React__default.createElement("path", { d: "M11.5001 19.8759V12.2912V11.5002V8.50016V7.49865V0.124502C11.0095 0.050501 10.511 0 10 0C9.48902 0 8.99051 0.050501 8.5 0.124502V7.27664V7.59365V8.50016V11.5002V12.5942V19.8759C8.99051 19.9499 9.48902 20.0004 10 20.0004C10.511 20.0004 11.0095 19.9499 11.5001 19.8759Z", fill: "#E53935" }))));
1341
- const EnglishSquareIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 26 26", fill: "none" }, props),
1342
- React__default.createElement("g", null,
1343
- React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "1", y: "5", width: "24", height: "16" },
1344
- React__default.createElement("path", { d: "M1.08301 7.41675C1.08301 6.31218 1.97844 5.41675 3.08301 5.41675H22.9163C24.0209 5.41675 24.9163 6.31218 24.9163 7.41675V18.5834C24.9163 19.688 24.0209 20.5834 22.9163 20.5834H3.08301C1.97844 20.5834 1.08301 19.688 1.08301 18.5834V7.41675Z", fill: "#3F51B5" })),
1345
- React__default.createElement("path", { d: "M1.08301 5.41675H24.9163V20.5834H1.08301V5.41675Z", fill: "#3F51B5" }),
1346
- React__default.createElement("path", { d: "M1.08301 7.70041L12.3551 14.5899L14.05 11.8165L3.57901 5.41675H1.08301V7.70041Z", fill: "white" }),
1347
- React__default.createElement("path", { d: "M24.9165 5.41675H22.9616L12.4912 11.816L14.1855 14.5899L24.9165 8.03083V5.41675Z", fill: "white" }),
1348
- React__default.createElement("path", { d: "M14.1855 10.9802L12.4912 13.7536L23.6658 20.5834H24.9165V17.5387L14.1855 10.9802Z", fill: "white" }),
1349
- React__default.createElement("path", { d: "M1.08301 17.8702V20.5834H2.87592L14.05 13.7541L12.3556 10.9802L1.08301 17.8702Z", fill: "white" }),
1350
- React__default.createElement("path", { d: "M1.08301 10.8333H24.9163V15.1666H1.08301V10.8333Z", fill: "white" }),
1351
- React__default.createElement("path", { d: "M10.833 5.41675H15.1663V20.5834H10.833V5.41675Z", fill: "white" }),
1352
- React__default.createElement("path", { d: "M9.32609 10.8334L1.08301 5.79537V7.06504L7.24826 10.8334H9.32609ZM24.0004 5.41675L15.1376 10.8334H17.2149L24.9163 6.12687V5.41675H24.0004ZM17.9191 15.1667L24.9163 19.4432V18.1735L19.9964 15.1667H17.9191ZM8.62192 15.1667L1.08301 19.7742V20.5834H1.83701L10.6992 15.1667H8.62192ZM1.08301 11.9167H24.9163V14.0834H1.08301V11.9167Z", fill: "#E53935" }),
1353
- React__default.createElement("path", { d: "M11.917 5.41675H14.0837V20.5834H11.917V5.41675Z", fill: "#E53935" }))));
1006
+ const InputWrapper = forwardRef((_a, ref) => {
1007
+ var { value: _value, onChange: _onChange, onChangeRaw, maxLength } = _a, props = __rest(_a, ["value", "onChange", "onChangeRaw", "maxLength"]);
1008
+ const [value, setValue] = useState(_value || '');
1009
+ const [debounced] = useDebouncedValue(value, DEBOUNCED_TIME);
1010
+ useEffect(() => {
1011
+ _onChange === null || _onChange === void 0 ? void 0 : _onChange(debounced);
1012
+ }, [debounced]);
1013
+ useEffect(() => {
1014
+ setValue(_value);
1015
+ }, [_value]);
1016
+ return (React__default.createElement(TextInput, Object.assign({ ref: ref, size: "md", onChange: (event) => {
1017
+ if (typeof maxLength === 'number' &&
1018
+ event.currentTarget.value.length > maxLength) {
1019
+ return;
1020
+ }
1021
+ onChangeRaw === null || onChangeRaw === void 0 ? void 0 : onChangeRaw(event);
1022
+ setValue(event.currentTarget.value);
1023
+ }, value: value }, props, { maxLength: maxLength, className: `input-control ${(props === null || props === void 0 ? void 0 : props.className) || ''}` })));
1024
+ });
1025
+ const Input = InputWrapper;
1026
+ Input.File = FileInput;
1027
+ Input.Password = PasswordInput;
1028
+ Input.Number = NumberInput;
1029
+ Input.Wrapper = Input$1.Wrapper;
1354
1030
 
1355
- const IndiaRoundIcon = (props) => (React__default.createElement(ImageWrap, Object.assign({ alt: "round india flag", src: CommonGAssets.getAssetPath('flags/indiaRound.png'), style: Object.assign({ borderRadius: '50%' }, props.style) }, props)));
1356
- const IndiaSquareIcon = (props) => (React__default.createElement(ImageWrap, Object.assign({ alt: "square indian flag", src: CommonGAssets.getAssetPath('flags/indiaSquare.png') }, props)));
1031
+ const StyledSlide = Carousel$1.Slide;
1357
1032
 
1358
- const IndonesiaRoundIcon = (_a) => {
1359
- var rest = __rest(_a, []);
1360
- const maskId = useUniqueId();
1361
- return (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none" }, rest),
1362
- React__default.createElement("mask", { id: maskId, style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1363
- React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1364
- React__default.createElement("g", { mask: `url(#${maskId})` },
1365
- React__default.createElement("rect", { width: "20", height: "10", fill: "#CE1126" }),
1366
- React__default.createElement("rect", { y: "10", width: "20", height: "10", fill: "white" }))));
1033
+ const SlideContext = createContext({});
1034
+ const CustomSlide = (_a) => {
1035
+ var { children, onClick, innerSlideProps } = _a, rest = __rest(_a, ["children", "onClick", "innerSlideProps"]);
1036
+ const { slider, selectSlideWhenClick } = useContext(SlideContext);
1037
+ const ref = useRef();
1038
+ const key = useRef('');
1039
+ const [index, setIndex] = useState(0);
1040
+ useEffect(() => {
1041
+ key.current = String(Math.round(Math.random() * 10000));
1042
+ }, []);
1043
+ useEffect(() => {
1044
+ const slidesNode = (slider === null || slider === void 0 ? void 0 : slider.slideNodes()) || [];
1045
+ setIndex(slidesNode.findIndex((obj) => obj.dataset.key === key.current));
1046
+ }, [slider]);
1047
+ const sliderProps = {
1048
+ ref,
1049
+ 'data-key': key.current,
1050
+ 'data-index': index,
1051
+ };
1052
+ return (React__default.createElement(StyledSlide, Object.assign({}, sliderProps, rest),
1053
+ React__default.createElement("div", Object.assign({ style: {
1054
+ height: '100%',
1055
+ }, onClick: () => {
1056
+ selectSlideWhenClick && (slider === null || slider === void 0 ? void 0 : slider.scrollTo(index));
1057
+ onClick === null || onClick === void 0 ? void 0 : onClick(index);
1058
+ } }, innerSlideProps), children)));
1367
1059
  };
1368
- const IndonesiaSquareIcon = (_a) => {
1369
- var rest = __rest(_a, []);
1370
- const clipPathId = useUniqueId();
1371
- return (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, rest),
1372
- React__default.createElement("g", { clipPath: `url(#${clipPathId})` },
1373
- React__default.createElement("rect", { y: "0.0166016", width: "24", height: "8", fill: "#CE1126" }),
1374
- React__default.createElement("rect", { y: "8.0166", width: "24", height: "8", fill: "white" })),
1375
- React__default.createElement("defs", null,
1376
- React__default.createElement("clipPath", { id: clipPathId },
1377
- React__default.createElement("rect", { width: "24", height: "16", rx: "2", fill: "white" })))));
1378
- };
1379
-
1380
- const MalaysiaRoundIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
1381
- React__default.createElement("g", null,
1382
- React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1383
- React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1384
- React__default.createElement("rect", { y: "1", width: "20", height: "20", fill: "#CC0001" }),
1385
- React__default.createElement("rect", { y: "16.106", width: "20", height: "1.02041", fill: "white" }),
1386
- React__default.createElement("rect", { y: "16", width: "20", height: "1.02041", fill: "white" }),
1387
- React__default.createElement("rect", { y: "18", width: "20", height: "1.02041", fill: "white" }),
1388
- React__default.createElement("rect", { y: "14.0652", width: "20", height: "1.02041", fill: "white" }),
1389
- React__default.createElement("rect", { y: "12.0242", width: "20", height: "1.02041", fill: "white" }),
1390
- React__default.createElement("rect", { y: "9.9834", width: "20", height: "1.02041", fill: "white" }),
1391
- React__default.createElement("rect", { y: "7.94263", width: "20", height: "1.02041", fill: "white" }),
1392
- React__default.createElement("rect", { y: "5.90186", width: "20", height: "1.02041", fill: "white" }),
1393
- React__default.createElement("rect", { y: "3.86084", width: "20", height: "1.02041", fill: "white" }),
1394
- React__default.createElement("rect", { y: "2", width: "20", height: "1.02041", fill: "white" }),
1395
- React__default.createElement("rect", { width: "20", height: "1.02041", fill: "white" }),
1396
- React__default.createElement("rect", { y: "-1", width: "10", height: "12", fill: "#010066" }),
1397
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.11387 3.86084C2.92711 3.86084 1.96387 5.23232 1.96387 6.92206C1.96387 8.6118 2.92711 9.98329 4.11387 9.98329C4.54263 9.98329 4.94211 9.80406 5.27763 9.4957C5.08225 9.59203 4.87256 9.64471 4.65427 9.64471C3.60193 9.64471 2.74786 8.42866 2.74786 6.93032C2.74786 5.43198 3.60193 4.21594 4.65427 4.21594C4.88682 4.21594 5.10959 4.27527 5.31571 4.38397C4.97256 4.0538 4.5589 3.86084 4.11387 3.86084Z", fill: "#FFCC00" }),
1398
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.67935 8.51573L6.7737 7.8407L7.04147 9.22221L6.43573 8.06657L6.24676 9.47313L6.0609 8.06576L5.4526 9.2188L5.72343 7.83844L4.81629 8.50957L5.49017 7.42963L4.46387 7.48593L5.40732 6.9203L4.46512 6.35062L5.4913 6.41133L4.81981 5.3285L5.72546 6.00353L5.45769 4.62202L6.06343 5.77766L6.25241 4.37109L6.43827 5.77847L7.04656 4.62543L6.77574 6.00579L7.68287 5.33466L7.00899 6.4146L8.0353 6.3583L7.09184 6.92392L8.03404 7.49361L7.00786 7.43289L7.67935 8.51573Z", fill: "#FFCC00" }))));
1399
- const MalaysiaSquareIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
1400
- React__default.createElement("rect", { width: "24", height: "16", rx: "2", fill: "#CC0001" }),
1401
- React__default.createElement("rect", { y: "12.2712", width: "24", height: "0.777454", fill: "white" }),
1402
- React__default.createElement("rect", { y: "12.1904", width: "24", height: "0.777454", fill: "white" }),
1403
- React__default.createElement("rect", { y: "13.7144", width: "24", height: "0.777454", fill: "white" }),
1404
- React__default.createElement("rect", { y: "10.7161", width: "24", height: "0.777454", fill: "white" }),
1405
- React__default.createElement("rect", { y: "9.16138", width: "24", height: "0.777454", fill: "white" }),
1406
- React__default.createElement("rect", { y: "7.60645", width: "24", height: "0.777454", fill: "white" }),
1407
- React__default.createElement("rect", { y: "6.05127", width: "24", height: "0.777454", fill: "white" }),
1408
- React__default.createElement("rect", { y: "4.49658", width: "24", height: "0.777454", fill: "white" }),
1409
- React__default.createElement("rect", { y: "2.94141", width: "24", height: "0.777454", fill: "white" }),
1410
- React__default.createElement("rect", { y: "1.52393", width: "24", height: "0.777454", fill: "white" }),
1411
- React__default.createElement("rect", { width: "24", height: "0.777454", fill: "white" }),
1412
- React__default.createElement("path", { d: "M0 2C0 0.895431 0.895431 0 2 0H12V8.38095H0V2Z", fill: "#010066" }),
1413
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.93644 1.52393C3.51233 1.52393 2.35645 2.56887 2.35645 3.85629C2.35645 5.14371 3.51233 6.18865 4.93644 6.18865C5.45096 6.18865 5.93034 6.05209 6.33296 5.81716C6.09851 5.89054 5.84688 5.93068 5.58492 5.93068C4.32212 5.93068 3.29724 5.00417 3.29724 3.86258C3.29724 2.72099 4.32212 1.79448 5.58492 1.79448C5.86399 1.79448 6.13132 1.83968 6.37865 1.9225C5.96688 1.67094 5.47049 1.52393 4.93644 1.52393Z", fill: "#FFCC00" }),
1414
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.216 5.07041L8.12923 4.55611L8.45055 5.60869L7.72366 4.72819L7.49689 5.79987L7.27386 4.72758L6.5439 5.60609L6.86889 4.55439L5.78033 5.06572L6.58899 4.24291L5.35742 4.28581L6.48957 3.85485L5.35893 3.42081L6.59034 3.46707L5.78456 2.64205L6.87133 3.15636L6.55001 2.10378L7.2769 2.98427L7.50367 1.9126L7.7267 2.98488L8.45666 2.10638L8.13166 3.15808L9.22022 2.64674L8.41157 3.46955L9.64314 3.42666L8.51099 3.85761L9.64163 4.29165L8.41022 4.2454L9.216 5.07041Z", fill: "#FFCC00" })));
1415
-
1416
- const MyanmarRoundIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
1417
- React__default.createElement("g", null,
1418
- React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1419
- React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1420
- React__default.createElement("rect", { x: "-4", y: "-1", width: "28", height: "11", fill: "#FECB00" }),
1421
- React__default.createElement("rect", { x: "-4", y: "10", width: "28", height: "10", fill: "#EA2839" }),
1422
- React__default.createElement("rect", { x: "-4", y: "6.7041", width: "28", height: "6.47773", fill: "#34B233" }),
1423
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.56543 10.3272L10.1796 5.15527L11.7938 10.3272H8.56543Z", fill: "white" }),
1424
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.5292 11.2775L7.18336 14.5129L8.91745 9.37991L11.5292 11.2775Z", fill: "white" }),
1425
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.75181 11.8648L5.33182 8.73143L10.7494 8.79447L9.75181 11.8648Z", fill: "white" }),
1426
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.6105 8.78962L15.0281 8.72658L10.6081 11.86L9.6105 8.78962Z", fill: "white" }),
1427
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.4424 9.37686L13.1765 14.5098L8.83064 11.2744L11.4424 9.37686Z", fill: "white" }))));
1428
- const MyanmarSquareIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
1429
- React__default.createElement("rect", { width: "24", height: "16", rx: "2", fill: "#FECB00" }),
1430
- React__default.createElement("rect", { y: "8.3811", width: "24", height: "7.61905", rx: "2", fill: "#EA2839" }),
1431
- React__default.createElement("rect", { y: "5.86987", width: "24", height: "4.93542", fill: "#34B233" }),
1432
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.7705 8.63046L12.1541 4.68994L13.5377 8.63046H10.7705Z", fill: "white" }),
1433
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.3108 9.35502L9.58574 11.8201L11.0721 7.90925L13.3108 9.35502Z", fill: "white" }),
1434
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.7874 9.80216L7.99884 7.41482L12.6425 7.46285L11.7874 9.80216Z", fill: "white" }),
1435
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.6667 7.4589L16.3104 7.41087L12.5218 9.79821L11.6667 7.4589Z", fill: "white" }),
1436
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.2361 7.90629L14.7225 11.8171L10.9974 9.35207L13.2361 7.90629Z", fill: "white" })));
1437
-
1438
- const PhilippinesRoundIcon = (props) => (React__default.createElement(ImageWrap, Object.assign({ alt: "round philippines flag", src: CommonGAssets.getAssetPath('flags/philippineRound.png'), style: Object.assign({ borderRadius: '50%' }, props.style) }, props)));
1439
- const PhilippinesSquareIcon = (props) => (React__default.createElement(ImageWrap, Object.assign({ alt: "square philippines flag", src: CommonGAssets.getAssetPath('flags/philippineSquare.png') }, props)));
1060
+ const findIndexFromLeftSide = (position, slideLength) => {
1061
+ return position >= slideLength ? position - slideLength : position;
1062
+ };
1063
+ const findIndexFromRight = (position, slideLength) => {
1064
+ return position < 0 ? slideLength + position : position;
1065
+ };
1066
+ const CarouselWrapper = (_a) => {
1067
+ var { children, blurFromCenter, blurFromIndex, blurLength = 3, maxBlurOpacity = 0.5, onSlideChange, selectSlideWhenClick } = _a, props = __rest(_a, ["children", "blurFromCenter", "blurFromIndex", "blurLength", "maxBlurOpacity", "onSlideChange", "selectSlideWhenClick"]);
1068
+ const { width } = useViewportSize();
1069
+ const [ref] = useResizeObserver();
1070
+ const slider = useRef(null);
1071
+ const [centerSlide, setCenterSlide] = useState(0);
1072
+ const handleStyle = () => {
1073
+ var _a, _b, _c, _d, _e;
1074
+ const slidesNode = ((_a = slider === null || slider === void 0 ? void 0 : slider.current) === null || _a === void 0 ? void 0 : _a.slideNodes()) || [];
1075
+ if (((_b = slider === null || slider === void 0 ? void 0 : slider.current) === null || _b === void 0 ? void 0 : _b.slideNodes().length) <=
1076
+ ((_c = slider === null || slider === void 0 ? void 0 : slider.current) === null || _c === void 0 ? void 0 : _c.slidesInView().length)) {
1077
+ slidesNode.map((item) => {
1078
+ item.classList.remove('center-slide');
1079
+ item.style.opacity = '1';
1080
+ });
1081
+ return false;
1082
+ }
1083
+ const centerSlideIndex = (_d = slider === null || slider === void 0 ? void 0 : slider.current) === null || _d === void 0 ? void 0 : _d.selectedScrollSnap();
1084
+ setCenterSlide(centerSlideIndex);
1085
+ const slidesNodeLength = slidesNode.length;
1086
+ const slidesInView = (_e = slider === null || slider === void 0 ? void 0 : slider.current) === null || _e === void 0 ? void 0 : _e.slidesInView();
1087
+ const slidesInViewLength = slidesInView.length;
1088
+ const halfSideLength = Math.floor(slidesInViewLength / 2);
1089
+ const halfSideBlurLength = blurFromCenter
1090
+ ? blurFromIndex + blurLength - 1
1091
+ : halfSideLength;
1092
+ const lastRightBlurIndexTmp = centerSlideIndex + halfSideBlurLength;
1093
+ const lastRightBlurIndex = lastRightBlurIndexTmp === slidesNodeLength
1094
+ ? 0
1095
+ : lastRightBlurIndexTmp > slidesNodeLength
1096
+ ? lastRightBlurIndexTmp - slidesNodeLength
1097
+ : lastRightBlurIndexTmp;
1098
+ const lastLeftBlurIndexTmp = centerSlideIndex - halfSideBlurLength;
1099
+ const lastLeftBlurIndex = lastLeftBlurIndexTmp < 0
1100
+ ? slidesNodeLength + lastLeftBlurIndexTmp
1101
+ : lastLeftBlurIndexTmp > 0
1102
+ ? centerSlideIndex - halfSideBlurLength
1103
+ : 0;
1104
+ const visibleSlide = [
1105
+ ...new Set(Array(halfSideBlurLength * 2 + 1)
1106
+ .fill('')
1107
+ .map((i, idx) => {
1108
+ const findFrom = lastLeftBlurIndex;
1109
+ return findIndexFromLeftSide(findFrom + idx, slidesNodeLength);
1110
+ })),
1111
+ ];
1112
+ slidesNode.map((item, index) => {
1113
+ if (index === centerSlideIndex) {
1114
+ item.classList.add('center-slide');
1115
+ }
1116
+ else {
1117
+ item.classList.remove('center-slide');
1118
+ }
1119
+ if (visibleSlide.indexOf(index) !== -1) {
1120
+ const opacityGap = maxBlurOpacity / blurLength;
1121
+ for (let i = 0; i < blurLength; i++) {
1122
+ if (index ===
1123
+ findIndexFromLeftSide(lastLeftBlurIndex + i, slidesNodeLength) ||
1124
+ index ===
1125
+ findIndexFromRight(lastRightBlurIndex - i, slidesNodeLength)) {
1126
+ item.style.opacity = String((i + 1) * opacityGap);
1127
+ break;
1128
+ }
1129
+ item.style.opacity = '1';
1130
+ }
1131
+ }
1132
+ else {
1133
+ item.style.opacity = '0';
1134
+ }
1135
+ });
1136
+ };
1137
+ const sliderProps = {
1138
+ getEmblaApi: (embla) => {
1139
+ slider.current = embla;
1140
+ },
1141
+ onSlideChange: (index) => {
1142
+ handleStyle();
1143
+ onSlideChange === null || onSlideChange === void 0 ? void 0 : onSlideChange(index);
1144
+ },
1145
+ };
1146
+ useEffect(() => {
1147
+ (slider === null || slider === void 0 ? void 0 : slider.current) && handleStyle();
1148
+ }, [width]);
1149
+ const useStyles = createStyles(() => {
1150
+ var _a, _b;
1151
+ return ({
1152
+ control: Object.assign({}, (((_a = slider === null || slider === void 0 ? void 0 : slider.current) === null || _a === void 0 ? void 0 : _a.slideNodes().length) <=
1153
+ ((_b = slider === null || slider === void 0 ? void 0 : slider.current) === null || _b === void 0 ? void 0 : _b.slidesInView().length) && {
1154
+ display: 'none',
1155
+ })),
1156
+ });
1157
+ });
1158
+ const { classes } = useStyles();
1159
+ return (React__default.createElement(SlideContext.Provider, { value: { slider: slider === null || slider === void 0 ? void 0 : slider.current, centerSlide, selectSlideWhenClick } },
1160
+ React__default.createElement(Carousel$1, Object.assign({ classNames: {
1161
+ control: classes.control,
1162
+ }, ref: ref, slideSize: 'auto', containScroll: "trimSnaps" }, sliderProps, props, { loop: true }), typeof children === 'function' ? children(centerSlide) : children)));
1163
+ };
1164
+ const CentralCarousel = CarouselWrapper;
1165
+ CentralCarousel.Slide = CustomSlide;
1440
1166
 
1441
- const TaiwanRoundIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
1442
- React__default.createElement("g", null,
1443
- React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1444
- React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1445
- React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#D8D8D8" }),
1446
- React__default.createElement("g", null,
1447
- React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1448
- React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "white" })),
1449
- React__default.createElement("rect", { width: "30", height: "20", fill: "#ED1E24" }),
1450
- React__default.createElement("rect", { width: "15", height: "10", fill: "#2B2F84" }),
1451
- React__default.createElement("circle", { cx: "7.49791", cy: "4.99913", r: "1.869", fill: "white" }),
1452
- React__default.createElement("path", { d: "M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z", fill: "white" }),
1453
- React__default.createElement("path", { d: "M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z", fill: "white" }),
1454
- React__default.createElement("path", { d: "M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z", fill: "white" }),
1455
- React__default.createElement("path", { d: "M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z", fill: "white" }),
1456
- React__default.createElement("path", { d: "M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z", fill: "white" }),
1457
- React__default.createElement("path", { d: "M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z", fill: "white" }),
1458
- React__default.createElement("path", { d: "M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z", fill: "white" }),
1459
- React__default.createElement("path", { d: "M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z", fill: "white" }),
1460
- React__default.createElement("path", { d: "M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z", fill: "white" }),
1461
- React__default.createElement("path", { d: "M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z", fill: "white" }),
1462
- React__default.createElement("path", { d: "M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z", fill: "white" }),
1463
- React__default.createElement("path", { d: "M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z", fill: "white" })))));
1464
- const TaiwanSquareIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
1465
- React__default.createElement("rect", { width: "24", height: "16", rx: "2", fill: "#ED1E24" }),
1466
- React__default.createElement("path", { d: "M0 2C0 0.89543 0.895431 0 2 0H15V10H0V2Z", fill: "#2B2F84" }),
1467
- React__default.createElement("circle", { cx: "7.49791", cy: "4.99913", r: "1.869", fill: "white" }),
1468
- React__default.createElement("path", { d: "M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z", fill: "white" }),
1469
- React__default.createElement("path", { d: "M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z", fill: "white" }),
1470
- React__default.createElement("path", { d: "M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z", fill: "white" }),
1471
- React__default.createElement("path", { d: "M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z", fill: "white" }),
1472
- React__default.createElement("path", { d: "M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z", fill: "white" }),
1473
- React__default.createElement("path", { d: "M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z", fill: "white" }),
1474
- React__default.createElement("path", { d: "M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z", fill: "white" }),
1475
- React__default.createElement("path", { d: "M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z", fill: "white" }),
1476
- React__default.createElement("path", { d: "M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z", fill: "white" }),
1477
- React__default.createElement("path", { d: "M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z", fill: "white" }),
1478
- React__default.createElement("path", { d: "M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z", fill: "white" }),
1479
- React__default.createElement("path", { d: "M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z", fill: "white" })));
1167
+ const CheckboxWrapper = (_a) => {
1168
+ var { styles, color = 'blue' } = _a, props = __rest(_a, ["styles", "color"]);
1169
+ const theme = useMantineTheme();
1170
+ const hexColor = useMemo(() => {
1171
+ var _a, _b;
1172
+ return ((color === null || color === void 0 ? void 0 : color.includes('.'))
1173
+ ? (_a = theme.colors[color.split('.')[0]]) === null || _a === void 0 ? void 0 : _a[color.split('.')[1]]
1174
+ : (_b = theme.colors[color]) === null || _b === void 0 ? void 0 : _b[theme.primaryShade || 6]) ||
1175
+ theme.colors.blue[6];
1176
+ }, [color]);
1177
+ return (React__default.createElement(Checkbox$1, Object.assign({ styles: Object.assign({ input: {
1178
+ '&:hover': {
1179
+ border: `1px solid ${hexColor}`,
1180
+ },
1181
+ } }, styles), color: color }, props)));
1182
+ };
1183
+ const Checkbox = CheckboxWrapper;
1184
+ Checkbox.Group = Checkbox$1.Group;
1480
1185
 
1481
- const ThailandRoundIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
1482
- React__default.createElement("g", null,
1483
- React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1484
- React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1485
- React__default.createElement("rect", { x: "-4", y: "-0.0166016", width: "28", height: "20", fill: "#ED1C24" }),
1486
- React__default.createElement("rect", { x: "-4", y: "3.31665", width: "28", height: "13.3333", fill: "white" }),
1487
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M-4 6.65015H24V13.3168H-4V6.65015Z", fill: "#241D4F" }))));
1488
- const ThailandSquareIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 17", fill: "none" }, props),
1489
- React__default.createElement("rect", { y: "0.983398", width: "24", height: "16", rx: "2", fill: "#ED1C24" }),
1490
- React__default.createElement("rect", { y: "3.65039", width: "24", height: "10.6667", fill: "white" }),
1491
- React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 6.31689H24V11.6502H0V6.31689Z", fill: "#241D4F" })));
1186
+ const StyledSlider = styled(Slider) `
1187
+ ${(props) => {
1188
+ const color = props.color || theme.colors.primaryBase;
1189
+ return `
1190
+ .mantine-Slider-bar {
1191
+ background-color: ${color};
1192
+ }
1193
+ .mantine-Slider-thumb {
1194
+ border-color: ${color};
1195
+ color: ${color};
1196
+ }
1197
+ `;
1198
+ }}
1199
+ [data-theme='marryBaby'] & {
1200
+ ${(props) => {
1201
+ const color = props.color || theme.mbColors.pink;
1202
+ return `
1203
+ .mantine-Slider-bar {
1204
+ background-color: ${color};
1205
+ }
1206
+ .mantine-Slider-thumb {
1207
+ border-color: ${color};
1208
+ color: ${color};
1209
+ }
1210
+ `;
1211
+ }}
1212
+ }
1492
1213
 
1493
- const VietnamRoundIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
1494
- React__default.createElement("g", null,
1495
- React__default.createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1496
- React__default.createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1497
- React__default.createElement("rect", { x: "-4", y: "-0.0166016", width: "28", height: "20", fill: "#DA251D" }),
1498
- React__default.createElement("path", { d: "M11.7228 10.8677L14.2819 9.00839L11.1187 9.00839L10.1409 6L9.16316 9.00839L6 9.00839L8.5591 10.8677L7.58184 13.8766L10.1409 12.0168L12.7 13.8766L11.7228 10.8677Z", fill: "#FFEB3B" }))));
1499
- const VietnamSquareIcon = (props) => (React__default.createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
1500
- React__default.createElement("g", null,
1501
- React__default.createElement("clipPath", null,
1502
- React__default.createElement("rect", { width: "24", height: "16", fill: "white" })),
1503
- React__default.createElement("path", { d: "M2.01386e-10 2C0 0.895431 0.895431 -7.50368e-10 2 -1.67599e-09L22 -1.84359e-08C23.1046 -1.93615e-08 24 0.895431 24 2L24 14C24 15.1046 23.1046 16 22 16L2 16C0.89543 16 1.52092e-09 15.1046 1.4097e-09 14L2.01386e-10 2Z", fill: "#DA251D" }),
1504
- React__default.createElement("path", { d: "M13.7823 8.92854L16.6663 6.8332L13.1016 6.8332L11.9997 3.44287L10.8978 6.8332L7.33301 6.8332L10.217 8.92854L9.11567 12.3195L11.9997 10.2235L14.8837 12.3195L13.7823 8.92854Z", fill: "#FFEB3B" }))));
1214
+ .mantine-Slider-label {
1215
+ background-color: transparent;
1216
+ color: #000;
1217
+ font-size: 14px;
1218
+ font-weight: bold;
1219
+ }
1220
+ `;
1221
+ const StyledSliderWrapper = styled.div `
1222
+ display: flex;
1223
+ align-items: center;
1224
+ .hhg-mantine-slider {
1225
+ flex-grow: 1;
1226
+ }
1227
+ button {
1228
+ path:not([stroke]) {
1229
+ stroke: ${theme.colors.primaryBase};
1230
+ }
1231
+ }
1232
+ [data-theme='marryBaby'] & {
1233
+ button {
1234
+ path:not([stroke]) {
1235
+ stroke: ${theme.mbColors.pink};
1236
+ }
1237
+ }
1238
+ }
1239
+ `;
1505
1240
 
1506
- var styles$1 = {"flag":"pfaLGRK"};
1241
+ const RadioWrapper = (_a) => {
1242
+ var { styles, color } = _a, props = __rest(_a, ["styles", "color"]);
1243
+ const theme = useMantineTheme();
1244
+ const hexColor = useMemo(() => {
1245
+ var _a, _b;
1246
+ return ((color === null || color === void 0 ? void 0 : color.includes('.'))
1247
+ ? (_a = theme.colors[color.split('.')[0]]) === null || _a === void 0 ? void 0 : _a[color.split('.')[1]]
1248
+ : (_b = theme.colors[color]) === null || _b === void 0 ? void 0 : _b[theme.primaryShade || 6]) ||
1249
+ theme.fn.primaryColor();
1250
+ }, [color]);
1251
+ return (React__default.createElement(Radio$1, Object.assign({ styles: Object.assign({ radio: {
1252
+ '&:hover, &:checked': {
1253
+ border: `1px solid ${hexColor}`,
1254
+ },
1255
+ }, icon: {
1256
+ color: `${hexColor}`,
1257
+ } }, styles), color: color }, props)));
1258
+ };
1259
+ const Radio = RadioWrapper;
1260
+ Radio.Group = Radio$1.Group;
1507
1261
 
1508
- const Flag = ({ country, language, rounded, height, width, isTesting, className, }) => {
1509
- let flag;
1510
- let flagRounded;
1511
- switch (language) {
1512
- case 'en':
1513
- flag = React__default.createElement(EnglishSquareIcon, null);
1514
- flagRounded = React__default.createElement(EnglishRoundIcon, null);
1515
- break;
1516
- case 'vi':
1517
- flag = React__default.createElement(VietnamSquareIcon, null);
1518
- flagRounded = React__default.createElement(VietnamRoundIcon, null);
1519
- break;
1520
- case 'id':
1521
- flag = React__default.createElement(IndonesiaSquareIcon, { isTesting: isTesting });
1522
- flagRounded = React__default.createElement(IndonesiaRoundIcon, { isTesting: isTesting });
1523
- break;
1524
- case 'th':
1525
- flag = React__default.createElement(ThailandSquareIcon, null);
1526
- flagRounded = React__default.createElement(ThailandRoundIcon, null);
1527
- break;
1528
- case 'km':
1529
- flag = React__default.createElement(CambodiaSquareIcon, null);
1530
- flagRounded = React__default.createElement(CambodiaRoundIcon, null);
1531
- break;
1532
- case 'ms':
1533
- flag = React__default.createElement(MalaysiaSquareIcon, null);
1534
- flagRounded = React__default.createElement(MalaysiaRoundIcon, null);
1535
- break;
1536
- case 'my':
1537
- flag = React__default.createElement(MyanmarSquareIcon, null);
1538
- flagRounded = React__default.createElement(MyanmarRoundIcon, null);
1539
- break;
1540
- case 'tl':
1541
- flag = React__default.createElement(PhilippinesSquareIcon, null);
1542
- flagRounded = React__default.createElement(PhilippinesRoundIcon, null);
1543
- break;
1544
- case 'hi':
1545
- flag = React__default.createElement(IndiaSquareIcon, null);
1546
- flagRounded = React__default.createElement(IndiaRoundIcon, null);
1547
- break;
1548
- case 'zh':
1549
- flag = React__default.createElement(TaiwanSquareIcon, null);
1550
- flagRounded = React__default.createElement(TaiwanRoundIcon, null);
1551
- break;
1262
+ function transferValueToOtp(value, valueLength = 6) {
1263
+ const otp = new Array(valueLength).fill('');
1264
+ if (value) {
1265
+ const arr = value.toString().split('');
1266
+ otp.map((_, index) => {
1267
+ if (arr[index]) {
1268
+ otp[index] = arr[index] || '';
1269
+ }
1270
+ });
1552
1271
  }
1553
- if (!flag && !flagRounded) {
1554
- switch (country) {
1555
- case 'VN':
1556
- flag = React__default.createElement(VietnamSquareIcon, null);
1557
- flagRounded = React__default.createElement(VietnamRoundIcon, null);
1558
- break;
1559
- case 'ID':
1560
- flag = React__default.createElement(IndonesiaSquareIcon, { isTesting: isTesting });
1561
- flagRounded = React__default.createElement(IndonesiaRoundIcon, { isTesting: isTesting });
1562
- break;
1563
- case 'TH':
1564
- flag = React__default.createElement(ThailandSquareIcon, null);
1565
- flagRounded = React__default.createElement(ThailandRoundIcon, null);
1566
- break;
1567
- case 'KH':
1568
- flag = React__default.createElement(CambodiaSquareIcon, null);
1569
- flagRounded = React__default.createElement(CambodiaRoundIcon, null);
1570
- break;
1571
- case 'MY':
1572
- flag = React__default.createElement(MalaysiaSquareIcon, null);
1573
- flagRounded = React__default.createElement(MalaysiaRoundIcon, null);
1574
- break;
1575
- case 'MM':
1576
- flag = React__default.createElement(MyanmarSquareIcon, null);
1577
- flagRounded = React__default.createElement(MyanmarRoundIcon, null);
1578
- break;
1579
- case 'PH':
1580
- flag = React__default.createElement(PhilippinesSquareIcon, null);
1581
- flagRounded = React__default.createElement(PhilippinesRoundIcon, null);
1582
- break;
1583
- case 'IN':
1584
- flag = React__default.createElement(IndiaSquareIcon, null);
1585
- flagRounded = React__default.createElement(IndiaRoundIcon, null);
1586
- break;
1587
- case 'TW':
1588
- flag = React__default.createElement(TaiwanSquareIcon, null);
1589
- flagRounded = React__default.createElement(TaiwanRoundIcon, null);
1590
- break;
1272
+ return otp;
1273
+ }
1274
+ function transferOtpToValue(otp) {
1275
+ return otp.join('');
1276
+ }
1277
+
1278
+ var styles$1 = {"otpContainer":"_2iQs0sk","otpInput":"Ia6IojY","error":"yJs9MaD"};
1279
+
1280
+ const BACKSPACE = 8;
1281
+ const LEFT_ARROW = 37;
1282
+ const RIGHT_ARROW = 39;
1283
+ const DELETE = 46;
1284
+ const SPACEBAR = 32;
1285
+ const OTPInputFunction = (props, ref) => {
1286
+ const { maxLength = 1, placeholder, className } = props, restProps = __rest(props, ["maxLength", "placeholder", "className"]);
1287
+ return (React__default.createElement("input", Object.assign({ maxLength: maxLength, className: cn(styles$1.otpInput, 'otpInput', className), placeholder: placeholder, type: "number" }, restProps, { ref: ref })));
1288
+ };
1289
+ const OTPInput = forwardRef(OTPInputFunction);
1290
+ const OTPFowardRef = (props, ref) => {
1291
+ const { valueLength = 6, type = 'number', value: valueProps, defaultValue, placeholder, onChange, onBlur, } = props;
1292
+ const inputRef = useRef(new Array(valueLength).fill(null));
1293
+ const [value, setValue] = useState(defaultValue || valueProps);
1294
+ const [activeOtp, setActiveOtp] = useState(-1);
1295
+ const [otp, setOtp] = useState(() => transferValueToOtp(value, valueLength));
1296
+ const changeCodeAtFocus = useCallback(() => {
1297
+ if (activeOtp === -1) {
1298
+ return;
1591
1299
  }
1592
- }
1593
- return (React__default.createElement("div", { className: `${styles$1.flag} ${className || ''}`, style: {
1594
- '--width': width || 20,
1595
- '--height': height || 20,
1596
- } }, rounded ? flagRounded : flag));
1597
- };
1300
+ const activeInput = inputRef.current[activeOtp];
1301
+ if (activeInput) {
1302
+ activeInput.value = '';
1303
+ const newOtp = otp;
1304
+ newOtp[activeOtp] = '';
1305
+ setOtp(newOtp);
1306
+ setValue(() => transferOtpToValue(newOtp));
1307
+ onChange === null || onChange === void 0 ? void 0 : onChange(transferOtpToValue(newOtp));
1308
+ }
1309
+ }, [activeOtp, onChange, otp]);
1310
+ const focusPrevInput = useCallback(() => {
1311
+ if (activeOtp === 0) {
1312
+ return;
1313
+ }
1314
+ const curInput = inputRef.current[activeOtp];
1315
+ if (curInput) {
1316
+ curInput.blur();
1317
+ }
1318
+ const prevInput = inputRef.current[activeOtp - 1];
1319
+ if (prevInput) {
1320
+ prevInput.focus();
1321
+ }
1322
+ }, [activeOtp]);
1323
+ const focusNextInput = useCallback(() => {
1324
+ if (activeOtp === valueLength - 1) {
1325
+ return;
1326
+ }
1327
+ const curInput = inputRef.current[activeOtp];
1328
+ if (curInput) {
1329
+ curInput.blur();
1330
+ }
1331
+ const nextInput = inputRef.current[activeOtp + 1];
1332
+ if (nextInput) {
1333
+ nextInput.focus();
1334
+ }
1335
+ }, [activeOtp, valueLength]);
1336
+ const inputOnChange = useCallback((e) => {
1337
+ const target = e.target;
1338
+ const targetValue = target.value;
1339
+ const code = targetValue.toString().slice(0, 1);
1340
+ const indexTarget = inputRef.current.findIndex((input) => input === target);
1341
+ if (indexTarget !== -1) {
1342
+ const newOtp = otp;
1343
+ newOtp[indexTarget] = code;
1344
+ setOtp(newOtp);
1345
+ setValue(() => transferOtpToValue(newOtp));
1346
+ onChange === null || onChange === void 0 ? void 0 : onChange(transferOtpToValue(newOtp));
1347
+ }
1348
+ focusNextInput();
1349
+ }, [focusNextInput, onChange, otp]);
1350
+ const inputOnFocus = useCallback((e) => {
1351
+ const target = e.target;
1352
+ const targetIndex = inputRef.current.findIndex((input) => input === target);
1353
+ if (type === 'number') {
1354
+ target.select();
1355
+ }
1356
+ else {
1357
+ target.setSelectionRange(0, target.value.length, 'backward');
1358
+ }
1359
+ if (targetIndex !== -1) {
1360
+ setActiveOtp(targetIndex);
1361
+ }
1362
+ }, []);
1363
+ const inputOnPaste = useCallback((e) => {
1364
+ const clipboard = e.clipboardData.getData('text/plain');
1365
+ const newOtp = transferValueToOtp(clipboard, valueLength);
1366
+ const newValue = transferOtpToValue(newOtp);
1367
+ setOtp(newOtp);
1368
+ setValue(newValue);
1369
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
1370
+ }, [onChange, type, valueLength]);
1371
+ // Handle cases of backspace, delete, left arrow, right arrow, space
1372
+ const inputOnKeyDown = useCallback((e) => {
1373
+ if (e.keyCode === BACKSPACE || e.key === 'Backspace') {
1374
+ e.preventDefault();
1375
+ changeCodeAtFocus();
1376
+ focusPrevInput();
1377
+ }
1378
+ else if (e.keyCode === DELETE || e.key === 'Delete') {
1379
+ e.preventDefault();
1380
+ changeCodeAtFocus();
1381
+ }
1382
+ else if (e.keyCode === LEFT_ARROW || e.key === 'ArrowLeft') {
1383
+ e.preventDefault();
1384
+ focusPrevInput();
1385
+ }
1386
+ else if (e.keyCode === RIGHT_ARROW || e.key === 'ArrowRight') {
1387
+ e.preventDefault();
1388
+ focusNextInput();
1389
+ }
1390
+ else if (e.keyCode === SPACEBAR ||
1391
+ e.key === ' ' ||
1392
+ e.key === 'Spacebar' ||
1393
+ e.key === 'Space') {
1394
+ e.preventDefault();
1395
+ }
1396
+ }, [changeCodeAtFocus, focusNextInput, focusPrevInput]);
1397
+ useImperativeHandle(ref, () => inputRef.current[0], []);
1398
+ useEffect(() => {
1399
+ setOtp(() => transferValueToOtp(valueProps, valueLength));
1400
+ setValue(valueProps);
1401
+ }, [valueLength, valueProps]);
1402
+ return (React__default.createElement(Flex, { justify: "center", columnGap: 8, className: cn(styles$1.otpContainer, 'otpContainer') }, otp.map((val, index) => {
1403
+ return (React__default.createElement(OTPInput, { ref: (iRef) => {
1404
+ inputRef.current[index] = iRef;
1405
+ }, key: '' + index, value: val, type: type, onChange: inputOnChange, onFocus: inputOnFocus, onKeyDown: inputOnKeyDown, onPaste: inputOnPaste, onBlur: onBlur, placeholder: placeholder }));
1406
+ })));
1407
+ };
1408
+ const OTP = forwardRef(OTPFowardRef);
1598
1409
 
1599
1410
  const countriesDefault = Object.values(siteOptions).reduce((countries, { phoneCountry: phone }) => {
1600
1411
  if (!countries.includes(phone)) {
@@ -1855,4 +1666,4 @@ const _ChipButton = (_a) => {
1855
1666
  const ChipButton = _ChipButton;
1856
1667
  ChipButton.Group = Chip.Group;
1857
1668
 
1858
- export { Anchor as A, Button as B, CaretDown as C, DEBOUNCED_TIME as D, Flag as F, ImageWrap as I, NumberInput as N, OTP as O, Phone as P, Radio as R, Select as S, Tabs as T, Avatar as a, AspectRatio as b, Input as c, Checkbox as d, ChipButton as e, CentralCarousel as f, useStyles$2 as g, getMantineThemeOverride as h, StyledTextArea as i, StyledSliderWrapper as j, StyledSlider as k, Breadcrumbs as l, Accordion as m, Carousel as n, emotionCache as o, Popover as p, themeColors as t, useScreenSize as u };
1669
+ export { Anchor as A, Breadcrumbs as B, CaretDown as C, DEBOUNCED_TIME as D, Flag as F, ImageWrap as I, NumberInput as N, OTP as O, Phone as P, Radio as R, Select as S, Tabs as T, Avatar as a, AspectRatio as b, Input as c, CentralCarousel as d, Checkbox as e, ChipButton as f, useStyles$2 as g, getMantineThemeOverride as h, StyledTextArea as i, StyledSliderWrapper as j, StyledSlider as k, Accordion as l, Carousel as m, emotionCache as n, Popover as o, themeColors as t, useScreenSize as u };