@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,21 +1,22 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('./tslib.es6-dd1fc8f2.js');
3
+ var tslib_es6 = require('./tslib.es6-7e140b89.js');
4
4
  var React = require('react');
5
5
  var other = require('@hhgtech/icons/other');
6
6
  var core = require('@mantine/core');
7
7
  var hooks = require('@mantine/hooks');
8
- var index$2 = require('./index-e932125b.js');
9
- var utils = require('./utils-3a589c92.js');
8
+ var index$3 = require('./index-1efa7d84.js');
9
+ var utils = require('./utils-524bda7c.js');
10
10
  var styled = require('@emotion/styled');
11
11
  var carousel = require('@mantine/carousel');
12
- var index$3 = require('./index-5aac5fb6.js');
13
- var index$1 = require('./index-0b957c10.js');
14
- var theme = require('./theme-416e0fd4.js');
15
- var useMantineLocale = require('./useMantineLocale-97b962eb.js');
16
- var index = require('./index-517f6538.js');
12
+ var index$4 = require('./index-d34cd464.js');
13
+ var index$2 = require('./index-df5cd44b.js');
14
+ var theme = require('./theme-e4f7f487.js');
15
+ var useMantineLocale = require('./useMantineLocale-a4f0c61d.js');
16
+ var index = require('./index-a86ea1b6.js');
17
+ var index$1 = require('./index-a7de42d1.js');
17
18
  var cn = require('classnames');
18
- var useUniqueId = require('./useUniqueId-4bafae28.js');
19
+ var useUniqueId = require('./useUniqueId-8929fe5f.js');
19
20
  var core$1 = require('@hhgtech/icons/core');
20
21
 
21
22
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -51,8 +52,6 @@ const GlobalButtonStyle = {
51
52
  },
52
53
  };
53
54
 
54
- const ANIMATION_DURATION = '100ms';
55
-
56
55
  const GlobalInputStyle = (locale) => {
57
56
  var _a;
58
57
  return ({
@@ -88,7 +87,7 @@ const GlobalInputStyle = (locale) => {
88
87
  styles: (_theme, _, { size }) => ({
89
88
  input: {
90
89
  border: `1px solid ${theme.theme.colors.gray200}`,
91
- transition: `all ${ANIMATION_DURATION} ease-in-out`,
90
+ transition: `all ${index$1.ANIMATION_DURATION} ease-in-out`,
92
91
  ['&:not(.mantine-Textarea-input)']: Object.assign({}, (() => {
93
92
  switch (size) {
94
93
  case 'lg':
@@ -325,9 +324,9 @@ const getMantineThemeOverride = (locale, template = 'hb') => {
325
324
  colors: Object.assign(Object.assign(Object.assign({}, themeColors), theme.theme.colors), { toneYellow: '#fff9eb', toneGreen: '#f2fcf7', toneBlue: '#e0e9fb', tonePink: '#ffeaf1' }),
326
325
  primaryColor: template,
327
326
  primaryShade: 6,
328
- fontFamily: (locale === index$1.LOCALE.Cambodia
327
+ fontFamily: (locale === index$2.LOCALE.Cambodia
329
328
  ? 'Battambang'
330
- : locale === index$1.LOCALE.Thailand
329
+ : locale === index$2.LOCALE.Thailand
331
330
  ? 'Noto Sans Thai'
332
331
  : 'Inter') +
333
332
  `, -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif`,
@@ -341,1285 +340,1097 @@ const getMantineThemeOverride = (locale, template = 'hb') => {
341
340
  components: Object.assign(Object.assign(Object.assign(Object.assign({}, GlobalInputStyle(locale)), getGlobalRadioStyle), GlobalButtonStyle), useMantineLocale.GlobalHeadingStyle),
342
341
  other: {
343
342
  template,
344
- defaultImage: index$2.CommonGAssets.getAssetPath(template === 'mb' ? 'default-image-mb.jpg' : 'default-image.jpg'),
343
+ defaultImage: index$3.CommonGAssets.getAssetPath(template === 'mb' ? 'default-image-mb.jpg' : 'default-image.jpg'),
345
344
  },
346
345
  };
347
346
  };
348
347
 
349
- const Select = React.forwardRef((_a, ref) => {
350
- var { keepSearch = false } = _a, props = tslib_es6.__rest(_a, ["keepSearch"]);
351
- if (keepSearch) {
352
- return (React__namespace["default"].createElement(_AutoComplete, Object.assign({}, props, { ref: ref })));
353
- }
354
- else {
355
- return React__namespace["default"].createElement(_Select, Object.assign({}, props, { ref: ref }));
356
- }
357
- });
358
- const _AutoComplete = React.forwardRef((_a, ref) => {
359
- var { value, defaultValue, onChange, clearable } = _a, props = tslib_es6.__rest(_a, ["value", "defaultValue", "onChange", "clearable"]);
360
- const [_value, handleChange] = hooks.useUncontrolled({
361
- value,
362
- defaultValue,
363
- onChange,
364
- });
365
- const onClear = () => {
366
- handleChange('');
367
- };
368
- return (React__namespace["default"].createElement(core.Autocomplete, Object.assign({ ref: ref, rightSection: React__namespace["default"].createElement(core.Image, { src: index$2.CommonGAssets.getAssetPath('chevron-down.svg'), fit: "none" }), size: "md", maxDropdownHeight: 300, onChange: (e) => handleChange(e), value: _value }, props, (clearable && (_value === null || _value === void 0 ? void 0 : _value.length) > 0
369
- ? {
370
- rightSection: (React__namespace["default"].createElement(core.ActionIcon, { onClick: onClear, sx: { cursor: 'pointer' } },
371
- React__namespace["default"].createElement(_IconSelect, null))),
372
- }
373
- : {}))));
374
- });
375
- const _Select = React.forwardRef((_a, ref) => {
376
- var { searchValue, onSearchChange } = _a, props = tslib_es6.__rest(_a, ["searchValue", "onSearchChange"]);
377
- const [_searchValue, handleSearchChange] = hooks.useUncontrolled({
378
- defaultValue: '',
379
- value: searchValue,
380
- onChange: onSearchChange,
381
- });
382
- const onClear = () => {
383
- handleSearchChange('');
384
- };
385
- return (React__namespace["default"].createElement(core.Select, Object.assign({ ref: ref, rightSection: React__namespace["default"].createElement(other.ArrowDown, { size: 18 }), rightSectionProps: { style: { pointerEvents: 'none' } }, size: "md", maxDropdownHeight: 300, onSearchChange: (e) => handleSearchChange(e), searchValue: _searchValue }, props, (props.clearable && (_searchValue === null || _searchValue === void 0 ? void 0 : _searchValue.length) > 0
386
- ? {
387
- rightSection: (React__namespace["default"].createElement(core.ActionIcon, { onClick: onClear, sx: { cursor: 'pointer' } },
388
- React__namespace["default"].createElement(_IconSelect, null))),
389
- }
390
- : {}))));
391
- });
392
- const _IconSelect = () => (React__namespace["default"].createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" },
393
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.6665 9.99996C1.6665 5.39163 5.3915 1.66663 9.99984 1.66663C14.6082 1.66663 18.3332 5.39163 18.3332 9.99996C18.3332 14.6083 14.6082 18.3333 9.99984 18.3333C5.3915 18.3333 1.6665 14.6083 1.6665 9.99996ZM12.4083 13.5831C12.7333 13.9081 13.2583 13.9081 13.5833 13.5831C13.9 13.2581 13.9 12.7247 13.5833 12.4081L11.175 9.99973L13.5833 7.5914C13.9083 7.2664 13.9083 6.7414 13.5833 6.4164C13.2583 6.0914 12.7333 6.0914 12.4083 6.4164L10 8.82473L7.59167 6.4164C7.26667 6.0914 6.74167 6.0914 6.41667 6.4164C6.26063 6.57209 6.17293 6.78347 6.17293 7.0039C6.17293 7.22433 6.26063 7.43571 6.41667 7.5914L8.825 9.99973L6.41667 12.4081C6.26063 12.5638 6.17293 12.7751 6.17293 12.9956C6.17293 13.216 6.26063 13.4274 6.41667 13.5831C6.74167 13.9081 7.26667 13.9081 7.59167 13.5831L10 11.1747L12.4083 13.5831Z", fill: "#8C8C8C" })));
394
-
395
- const getIsMobile = () => {
396
- return (typeof window !== 'undefined' &&
397
- window.innerWidth < utils.Breakpoints.BREAK_POINT_MOBILE);
398
- };
399
- const getIsLargeMobile = () => {
400
- return (typeof window !== 'undefined' &&
401
- window.innerWidth >= utils.Breakpoints.BREAK_POINT_MOBILE &&
402
- window.innerWidth < utils.Breakpoints.BREAK_POINT_PC);
403
- };
404
- const useScreenSize = () => {
405
- const [isMobile, setIsMobile] = React.useState(getIsMobile());
406
- const [isLargeMobile, setIsLargeMobile] = React.useState(getIsLargeMobile());
407
- React.useEffect(() => {
408
- const handleResize = () => {
409
- setIsMobile(getIsMobile());
410
- setIsLargeMobile(getIsLargeMobile());
411
- };
412
- window.addEventListener('resize', handleResize, {
413
- passive: true,
414
- });
415
- return () => {
416
- window.removeEventListener('resize', handleResize);
417
- };
418
- }, []);
419
- return { isMobile, isLargeMobile };
420
- };
421
-
422
- class ErrorBoundary extends React.Component {
423
- constructor() {
424
- super(...arguments);
425
- this.state = {
426
- hasError: false,
427
- };
428
- }
429
- static getDerivedStateFromError() {
430
- // Update state so the next render will show the fallback UI.
431
- return { hasError: true };
432
- }
433
- componentDidCatch(error, errorInfo) {
434
- console.error('Uncaught error:', error, errorInfo);
435
- }
436
- render() {
437
- if (this.state.hasError) {
438
- return this.props.fallback || React__namespace["default"].createElement(React__namespace["default"].Fragment, null);
439
- }
440
- return this.props.children;
441
- }
442
- }
443
-
444
- const CarouselWrapper$1 = (_a) => {
445
- var { slidesToShow = 1, children } = _a, props = tslib_es6.__rest(_a, ["slidesToShow", "children"]);
446
- const length = Array.isArray(children) ? children.length : 1;
447
- if (!length)
448
- return null;
449
- return (React__namespace["default"].createElement(ErrorBoundary, null,
450
- React__namespace["default"].createElement(carousel.Carousel
451
- // get 2 precision number
452
- , Object.assign({
453
- // get 2 precision number
454
- slideSize: String(Math.floor((1 / slidesToShow) * 10000) / 100) + '%', containScroll: "trimSnaps" }, props), children)));
348
+ const ImageWrap = (_a) => {
349
+ var { alt, backupSrc, src, placeholderSrc, style, ref } = _a, props = tslib_es6.__rest(_a, ["alt", "backupSrc", "src", "placeholderSrc", "style", "ref"]);
350
+ const [hasError, setHasError] = React.useState(false);
351
+ return (React__namespace["default"].createElement(StyledImage, Object.assign({ loading: "lazy", alt: alt, onError: () => !hasError && setHasError(true), src: hasError ? backupSrc || src : src || backupSrc, style: Object.assign(Object.assign({}, (placeholderSrc
352
+ ? {
353
+ backgroundImage: `url(${placeholderSrc})`,
354
+ }
355
+ : {})), style), "data-has-placeholder": !!placeholderSrc, ref: ref }, props)));
455
356
  };
456
- const Carousel = CarouselWrapper$1;
457
- Carousel.Slide = carousel.Carousel.Slide;
458
-
459
- const StyledCarousel = styled__default["default"](Carousel) `
460
- cursor: grab;
461
- width: 100%;
462
- .mantine-Carousel-control {
463
- background: rgb(255, 255, 255);
464
- opacity: 1;
465
- border: none;
466
- border-radius: 0;
467
- box-shadow: none;
468
- &[data-inactive] {
469
- opacity: 0;
470
- cursor: default;
471
- }
472
- &:first-child {
473
- padding-right: 24px;
474
- background: linear-gradient(
475
- 90deg,
476
- rgba(255, 255, 255, 1) 0%,
477
- rgba(255, 255, 255, 1) 50%,
478
- rgba(255, 255, 255, 0) 100%
479
- );
480
- }
481
- &:last-child {
482
- padding-left: 24px;
483
- background: linear-gradient(
484
- 270deg,
485
- rgba(255, 255, 255, 1) 0%,
486
- rgba(255, 255, 255, 1) 50%,
487
- rgba(255, 255, 255, 0) 100%
488
- );
489
- }
490
- }
491
-
492
- .mantine-Carousel-container {
493
- align-items: center;
357
+ const StyledImage = styled__default["default"].img `
358
+ &[data-has-placeholder='true'] {
359
+ background-position: center;
360
+ background-repeat: no-repeat;
361
+ background-size: cover;
494
362
  }
495
363
  `;
496
364
 
497
- var useStyles$4 = core.createStyles((_theme, _params) => {
498
- return {
499
- root: {
500
- color: _params.color ||
501
- (_theme.primaryColor === 'hb'
502
- ? _theme.colors.hb[6]
503
- : _theme.fn.primaryColor()),
504
- },
505
- };
506
- });
365
+ const CambodiaRoundIcon = (props) => (React__namespace["default"].createElement(ImageWrap, Object.assign({ alt: "round cambodia flag", src: index$3.CommonGAssets.getAssetPath('flags/cambodiaRound.png'), style: Object.assign({ borderRadius: '50%' }, props.style) }, props)));
366
+ const CambodiaSquareIcon = (props) => (React__namespace["default"].createElement(ImageWrap, Object.assign({ alt: "square cambodia flag", src: index$3.CommonGAssets.getAssetPath('flags/cambodiaSquare.png') }, props)));
507
367
 
508
- const Anchor = (_a) => {
509
- var { color, styles, className } = _a, rest = tslib_es6.__rest(_a, ["color", "styles", "className"]);
510
- const { classes, cx } = useStyles$4({ color }, { name: 'Anchor', styles });
511
- return React__namespace["default"].createElement(index$3.Text, Object.assign({ as: "a", className: cx(classes.root, className) }, rest));
512
- };
368
+ const EnglishRoundIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
369
+ React__namespace["default"].createElement("g", null,
370
+ React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
371
+ React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
372
+ React__namespace["default"].createElement("path", { d: "M7.49953 0.327881C5.47199 0.850891 3.69346 1.98591 2.37793 3.53444L7.49953 6.6655V0.327881Z", fill: "#3F51B5" }),
373
+ React__namespace["default"].createElement("path", { d: "M2.30273 16.3824C3.62476 17.9749 5.4353 19.1399 7.50034 19.6729V13.2053L2.30273 16.3824Z", fill: "#3F51B5" }),
374
+ React__namespace["default"].createElement("path", { d: "M0.328125 12.5C0.334625 12.526 0.341125 12.5515 0.348125 12.5775L0.474128 12.5H0.328125Z", fill: "white" }),
375
+ React__namespace["default"].createElement("path", { d: "M17.7871 3.73445C16.4571 2.08391 14.6131 0.872891 12.499 0.327881V6.96651L17.7871 3.73445Z", fill: "#3F51B5" }),
376
+ React__namespace["default"].createElement("path", { d: "M12.499 19.6722C14.6506 19.1172 16.5196 17.8707 17.8546 16.1752L12.499 12.9021V19.6722Z", fill: "#3F51B5" }),
377
+ React__namespace["default"].createElement("path", { d: "M0.376626 7.31055C0.359125 7.37305 0.344125 7.43705 0.328125 7.50005H0.686632L0.376626 7.31055Z", fill: "white" }),
378
+ React__namespace["default"].createElement("path", { d: "M19.8745 8.50006C19.827 8.18506 19.7655 7.87555 19.6895 7.57104L18.1699 8.50006H19.8745Z", fill: "white" }),
379
+ React__namespace["default"].createElement("path", { d: "M0.686034 7.50024H0.327527C0.243026 7.82775 0.175524 8.16076 0.124023 8.50026H2.32207L0.686034 7.50024Z", fill: "white" }),
380
+ React__namespace["default"].createElement("path", { d: "M19.7197 12.3148C19.7832 12.0473 19.8337 11.7752 19.8752 11.5002H18.3867L19.7197 12.3148Z", fill: "white" }),
381
+ React__namespace["default"].createElement("path", { d: "M2.10956 11.5002H0.124023C0.175024 11.8398 0.243026 12.1728 0.327527 12.5003H0.47403L2.10956 11.5002Z", fill: "white" }),
382
+ React__namespace["default"].createElement("path", { d: "M8.50002 7.27665V0.124512C8.16051 0.175513 7.82751 0.243514 7.5 0.328016V6.66564L8.50002 7.27665Z", fill: "white" }),
383
+ React__namespace["default"].createElement("path", { d: "M11.5 12.2913V19.8759C11.8395 19.8249 12.1725 19.7569 12.5 19.6724V12.9023L11.5 12.2913Z", fill: "white" }),
384
+ React__namespace["default"].createElement("path", { d: "M7.5 13.205V19.6721C7.82751 19.7566 8.16051 19.8241 8.50002 19.8756V12.594L7.5 13.205Z", fill: "white" }),
385
+ React__namespace["default"].createElement("path", { d: "M11.5925 7.34715L11.7345 7.43415L12.5 6.96614V0.328016C12.1725 0.243514 11.8395 0.176013 11.5 0.124512V7.49865L11.5925 7.34715Z", fill: "white" }),
386
+ React__namespace["default"].createElement("path", { d: "M2.32251 8.50002H7.01761L8.50014 7.594V7.277L7.50011 6.66548L2.37852 3.53442C1.95151 4.03743 1.572 4.58144 1.24949 5.16296L5.02507 7.5H2.29701L0.650482 6.47648C0.54748 6.74949 0.455478 7.02699 0.375977 7.3105L0.686483 7.5L2.32251 8.50002Z", fill: "white" }),
387
+ React__namespace["default"].createElement("path", { d: "M11.7344 7.43419L13.4784 8.50021H18.171L19.6905 7.57119C19.528 6.92118 19.303 6.29767 19.02 5.70516L16.139 7.50019H13.4109L18.317 4.45013C18.1515 4.20313 17.9735 3.96562 17.7875 3.73462L12.4999 6.96618L11.7344 7.43419Z", fill: "white" }),
388
+ React__namespace["default"].createElement("path", { d: "M5.02448 7.50013L1.2494 5.16309C1.0169 5.58259 0.821394 6.0231 0.650391 6.47661L2.29642 7.50013H5.02448Z", fill: "#E53935" }),
389
+ React__namespace["default"].createElement("path", { d: "M16.1392 7.50024L19.0207 5.70521C18.8132 5.2702 18.5837 4.84819 18.3177 4.45068L13.4111 7.50024H16.1392Z", fill: "#E53935" }),
390
+ React__namespace["default"].createElement("path", { d: "M11.5 11.5002V12.2913L12.5 12.9023L17.8556 16.1758C18.2416 15.6853 18.5836 15.1593 18.8736 14.6008L15.4856 12.5003H18.2136L19.4432 13.2673C19.5507 12.9563 19.6432 12.6393 19.7197 12.3153L18.3871 11.5002H11.5Z", fill: "white" }),
391
+ React__namespace["default"].createElement("path", { d: "M13.4785 8.50019L11.7345 7.43417L11.5925 7.34717L11.5 7.49867V8.50019H13.4785Z", fill: "white" }),
392
+ React__namespace["default"].createElement("path", { d: "M8.49934 12.5943V11.5002H2.10921L0.473182 12.5003L0.34668 12.5778C0.522683 13.2383 0.762688 13.8713 1.06319 14.4708L4.16375 12.5003H6.89181L1.80071 15.7168C1.95971 15.9448 2.12471 16.1688 2.30172 16.3823L7.49932 13.2053L8.49934 12.5943Z", fill: "white" }),
393
+ React__namespace["default"].createElement("path", { d: "M7.01758 8.50026H8.50011V7.59424L7.01758 8.50026Z", fill: "white" }),
394
+ React__namespace["default"].createElement("path", { d: "M15.4854 12.5L18.8729 14.6C19.0949 14.173 19.2834 13.727 19.4429 13.2665L18.2134 12.5H15.4854Z", fill: "#E53935" }),
395
+ React__namespace["default"].createElement("path", { d: "M4.16501 12.5L1.06445 14.4705C1.28196 14.9045 1.52596 15.3216 1.80197 15.7166L6.89307 12.5H4.16501Z", fill: "#E53935" }),
396
+ React__namespace["default"].createElement("path", { d: "M13.4785 8.5H11.5V11.5001H18.3871H19.8757C19.9497 11.0095 20.0002 10.511 20.0002 10C20.0002 9.48902 19.9497 8.99051 19.8757 8.5H18.1711H13.4785Z", fill: "#E53935" }),
397
+ React__namespace["default"].createElement("path", { d: "M8.50017 11.5001V8.5H7.01764H2.32255H0.124502C0.050501 8.99051 0 9.48902 0 10C0 10.511 0.050501 11.0095 0.124502 11.5001H2.11004H8.50017Z", fill: "#E53935" }),
398
+ React__namespace["default"].createElement("path", { d: "M11.5001 19.8759V12.2912V11.5002V8.50016V7.49865V0.124502C11.0095 0.050501 10.511 0 10 0C9.48902 0 8.99051 0.050501 8.5 0.124502V7.27664V7.59365V8.50016V11.5002V12.5942V19.8759C8.99051 19.9499 9.48902 20.0004 10 20.0004C10.511 20.0004 11.0095 19.9499 11.5001 19.8759Z", fill: "#E53935" }))));
399
+ const EnglishSquareIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 26 26", fill: "none" }, props),
400
+ React__namespace["default"].createElement("g", null,
401
+ React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "1", y: "5", width: "24", height: "16" },
402
+ React__namespace["default"].createElement("path", { d: "M1.08301 7.41675C1.08301 6.31218 1.97844 5.41675 3.08301 5.41675H22.9163C24.0209 5.41675 24.9163 6.31218 24.9163 7.41675V18.5834C24.9163 19.688 24.0209 20.5834 22.9163 20.5834H3.08301C1.97844 20.5834 1.08301 19.688 1.08301 18.5834V7.41675Z", fill: "#3F51B5" })),
403
+ React__namespace["default"].createElement("path", { d: "M1.08301 5.41675H24.9163V20.5834H1.08301V5.41675Z", fill: "#3F51B5" }),
404
+ React__namespace["default"].createElement("path", { d: "M1.08301 7.70041L12.3551 14.5899L14.05 11.8165L3.57901 5.41675H1.08301V7.70041Z", fill: "white" }),
405
+ React__namespace["default"].createElement("path", { d: "M24.9165 5.41675H22.9616L12.4912 11.816L14.1855 14.5899L24.9165 8.03083V5.41675Z", fill: "white" }),
406
+ React__namespace["default"].createElement("path", { d: "M14.1855 10.9802L12.4912 13.7536L23.6658 20.5834H24.9165V17.5387L14.1855 10.9802Z", fill: "white" }),
407
+ React__namespace["default"].createElement("path", { d: "M1.08301 17.8702V20.5834H2.87592L14.05 13.7541L12.3556 10.9802L1.08301 17.8702Z", fill: "white" }),
408
+ React__namespace["default"].createElement("path", { d: "M1.08301 10.8333H24.9163V15.1666H1.08301V10.8333Z", fill: "white" }),
409
+ React__namespace["default"].createElement("path", { d: "M10.833 5.41675H15.1663V20.5834H10.833V5.41675Z", fill: "white" }),
410
+ React__namespace["default"].createElement("path", { d: "M9.32609 10.8334L1.08301 5.79537V7.06504L7.24826 10.8334H9.32609ZM24.0004 5.41675L15.1376 10.8334H17.2149L24.9163 6.12687V5.41675H24.0004ZM17.9191 15.1667L24.9163 19.4432V18.1735L19.9964 15.1667H17.9191ZM8.62192 15.1667L1.08301 19.7742V20.5834H1.83701L10.6992 15.1667H8.62192ZM1.08301 11.9167H24.9163V14.0834H1.08301V11.9167Z", fill: "#E53935" }),
411
+ React__namespace["default"].createElement("path", { d: "M11.917 5.41675H14.0837V20.5834H11.917V5.41675Z", fill: "#E53935" }))));
513
412
 
514
- const BreadcrumbItem = (_a) => {
515
- var { children } = _a, rest = tslib_es6.__rest(_a, ["children"]);
516
- return (React__namespace["default"].createElement(Anchor, Object.assign({ size: "p4", color: 'gray.8' }, rest), children));
517
- };
413
+ const IndiaRoundIcon = (props) => (React__namespace["default"].createElement(ImageWrap, Object.assign({ alt: "round india flag", src: index$3.CommonGAssets.getAssetPath('flags/indiaRound.png'), style: Object.assign({ borderRadius: '50%' }, props.style) }, props)));
414
+ const IndiaSquareIcon = (props) => (React__namespace["default"].createElement(ImageWrap, Object.assign({ alt: "square indian flag", src: index$3.CommonGAssets.getAssetPath('flags/indiaSquare.png') }, props)));
518
415
 
519
- const AspectRatio = (props) => {
520
- return (React__namespace["default"].createElement(core.AspectRatio, Object.assign({ sx: {
521
- borderRadius: 4,
522
- overflow: 'hidden',
523
- '> img': {
524
- objectFit: 'contain',
525
- },
526
- } }, props)));
416
+ const IndonesiaRoundIcon = (_a) => {
417
+ var rest = tslib_es6.__rest(_a, []);
418
+ const maskId = useUniqueId.useUniqueId();
419
+ return (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none" }, rest),
420
+ React__namespace["default"].createElement("mask", { id: maskId, style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
421
+ React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
422
+ React__namespace["default"].createElement("g", { mask: `url(#${maskId})` },
423
+ React__namespace["default"].createElement("rect", { width: "20", height: "10", fill: "#CE1126" }),
424
+ React__namespace["default"].createElement("rect", { y: "10", width: "20", height: "10", fill: "white" }))));
425
+ };
426
+ const IndonesiaSquareIcon = (_a) => {
427
+ var rest = tslib_es6.__rest(_a, []);
428
+ const clipPathId = useUniqueId.useUniqueId();
429
+ return (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, rest),
430
+ React__namespace["default"].createElement("g", { clipPath: `url(#${clipPathId})` },
431
+ React__namespace["default"].createElement("rect", { y: "0.0166016", width: "24", height: "8", fill: "#CE1126" }),
432
+ React__namespace["default"].createElement("rect", { y: "8.0166", width: "24", height: "8", fill: "white" })),
433
+ React__namespace["default"].createElement("defs", null,
434
+ React__namespace["default"].createElement("clipPath", { id: clipPathId },
435
+ React__namespace["default"].createElement("rect", { width: "24", height: "16", rx: "2", fill: "white" })))));
527
436
  };
528
437
 
529
- const _Breadcrumbs = (_a) => {
530
- var _b;
531
- var { children, showHomeIcon = true, homeIconHref = '/' } = _a, rest = tslib_es6.__rest(_a, ["children", "showHomeIcon", "homeIconHref"]);
532
- const theme = core.useMantineTheme();
533
- const isMarryBaby = ((_b = theme === null || theme === void 0 ? void 0 : theme.other) === null || _b === void 0 ? void 0 : _b.template) === 'mb';
534
- const [embla, setEmbla] = React.useState(null);
535
- const { isMobile } = useScreenSize();
536
- const [, setShouldAllowClick] = React.useState(true);
537
- const handleScroll = React.useCallback(() => {
538
- setShouldAllowClick(false);
539
- }, []);
540
- const handlePointerUp = React.useCallback(() => {
541
- setTimeout(() => {
542
- setShouldAllowClick(true);
543
- }, 1000);
544
- }, []);
545
- React.useEffect(() => {
546
- if (embla) {
547
- embla.on('scroll', handleScroll);
548
- embla.on('pointerUp', handlePointerUp);
549
- }
550
- return () => {
551
- if (embla) {
552
- embla.off('scroll', handleScroll);
553
- embla.on('pointerUp', handlePointerUp);
554
- }
555
- };
556
- }, [embla, handleScroll, handlePointerUp]);
557
- return (React__namespace["default"].createElement(StyledCarousel, Object.assign({ align: "center", slideGap: "xs", dragFree: true, draggable: isMobile, slideSize: "0", getEmblaApi: setEmbla, controlsOffset: -52, previousControlIcon: React__namespace["default"].createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
558
- React__namespace["default"].createElement("path", { d: "M6.86589 3.56104C7.03647 3.56104 7.20724 3.62732 7.33724 3.75765L7.39453 3.81494C7.6552 4.07561 7.6552 4.49765 7.39453 4.75765L4.81901 7.33317L13.5326 7.33317C13.9006 7.33317 14.1992 7.63184 14.1992 7.99984C14.1992 8.36784 13.9006 8.6665 13.5326 8.6665L4.81901 8.66651L7.39453 11.242C7.6552 11.5027 7.6552 11.9247 7.39453 12.1847L7.33724 12.242C7.07657 12.5027 6.65453 12.5027 6.39453 12.242L2.6237 8.47119C2.36303 8.21053 2.36303 7.78849 2.6237 7.52849L6.39453 3.75765C6.52487 3.62732 6.6953 3.56104 6.86589 3.56104Z", fill: "#595959" })), nextControlIcon: React__namespace["default"].createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
559
- React__namespace["default"].createElement("path", { d: "M9.13411 12.439C8.96353 12.439 8.79276 12.3727 8.66276 12.2423L8.60547 12.1851C8.3448 11.9244 8.3448 11.5023 8.60547 11.2423L11.181 8.66683L2.46745 8.66683C2.09945 8.66683 1.80078 8.36816 1.80078 8.00016C1.80078 7.63216 2.09945 7.3335 2.46745 7.3335L11.181 7.3335L8.60547 4.75797C8.3448 4.49731 8.3448 4.07527 8.60547 3.81527L8.66276 3.75797C8.92343 3.49731 9.34547 3.49731 9.60547 3.75797L13.3763 7.52881C13.637 7.78947 13.637 8.21152 13.3763 8.47152L9.60547 12.2423C9.47513 12.3727 9.3047 12.439 9.13411 12.439Z", fill: "#595959" })) }, rest),
560
- showHomeIcon && (React__namespace["default"].createElement(Carousel.Slide, { style: { borderRight: `1px solid ${themeColors.neutral[1]}` } },
561
- React__namespace["default"].createElement(BreadcrumbItem, { href: homeIconHref, target: "_blank", className: "pointer-event-child-none" },
562
- React__namespace["default"].createElement(core.Box, { sx: Object.assign({}, (!isMarryBaby && {
563
- borderRadius: '50%',
564
- display: 'flex',
565
- justifyContent: 'center',
566
- alignItems: 'center',
567
- })), bg: !isMarryBaby && themeColors.neutral[0], p: !isMarryBaby ? 6 : 0 },
568
- React__namespace["default"].createElement(AspectRatio, { ratio: 1, w: 18 }, isMarryBaby ? (React__namespace["default"].createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" },
569
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1183 3.67722C12.8727 2.70772 11.1281 2.708 9.88187 3.67718L14.1183 3.67722ZM14.1183 3.67722L19.718 8.03283C20.5589 8.68632 21.05 9.69173 21.05 10.7562V17.6002C21.05 19.5057 19.5055 21.0502 17.6 21.0502H6.40016C4.49466 21.0502 2.9502 19.5057 2.9502 17.6002V10.7562C2.9502 9.69163 3.44113 8.68632 4.28216 8.03283L9.88187 3.67718M10.6799 4.70339L5.08006 9.05916C4.55657 9.46592 4.2502 10.0923 4.2502 10.7562V17.6002C4.2502 18.7878 5.21263 19.7502 6.40016 19.7502H17.6C18.7875 19.7502 19.75 18.7878 19.75 17.6002V10.7562C19.75 10.0923 19.4438 9.46612 18.9204 9.05936L13.3202 4.70335C12.5443 4.09941 11.4571 4.09905 10.6799 4.70339Z", fill: "#3E3F58" }),
570
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.2373 13.1626C12.5546 12.4794 11.4466 12.4791 10.7629 13.1628C10.0793 13.8464 10.0793 14.9538 10.7629 15.6374C11.4465 16.321 12.5539 16.321 13.2375 15.6374C13.9211 14.9538 13.9211 13.8464 13.2375 13.1628L13.2373 13.1626ZM14.1567 12.2436C12.9661 11.0521 11.0348 11.0525 9.84366 12.2436C8.65237 13.4348 8.65237 15.3653 9.84366 16.5566C11.0349 17.7479 12.9654 17.7479 14.1567 16.5566C15.348 15.3653 15.348 13.4348 14.1567 12.2436Z", fill: "#3E3F58" }))) : (React__namespace["default"].createElement("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none" },
571
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.58691 5.59863L8.58691 1.62305C8.83594 1.45898 9.16406 1.45898 9.41309 1.62305L15.4131 5.59863C15.624 5.73926 15.75 5.97363 15.75 6.22559V14.25C15.75 15.0791 15.0791 15.75 14.25 15.75H3.75C2.9209 15.75 2.25 15.0791 2.25 14.25V6.22559C2.25 5.97363 2.37598 5.73926 2.58691 5.59863ZM5.5017 11.7602C5.1717 11.5108 5.17316 11.0321 5.46521 10.7391C5.75775 10.4456 6.24936 10.4292 6.5986 10.6522C7.17818 11.0223 8.12516 11.4889 9.21628 11.4889C10.3074 11.4889 11.2543 11.0223 11.8339 10.6522C12.1832 10.4292 12.6748 10.4456 12.9673 10.7391C13.2594 11.0321 13.2608 11.5108 12.9308 11.7602C11.8743 12.5589 10.535 12.9889 9.21628 12.9889C7.89758 12.9889 6.55824 12.5589 5.5017 11.7602Z", fill: "#595959" })))))))),
572
- React__namespace["default"].createElement(Carousel.Slide, null),
573
- React__namespace["default"].createElement(Carousel.Slide, null,
574
- React__namespace["default"].createElement(core.Breadcrumbs, { styles: {
575
- separator: {
576
- marginInline: 4,
577
- },
578
- }, separator: React__namespace["default"].createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
579
- React__namespace["default"].createElement("path", { d: "M8.71527 7.99969L6.16794 5.45236C5.89194 5.17636 5.89194 4.72836 6.16794 4.45236C6.44394 4.17636 6.89194 4.17636 7.16794 4.45236L10.2439 7.52836C10.5046 7.78903 10.5046 8.21103 10.2439 8.47103L7.16794 11.547C6.89194 11.823 6.44394 11.823 6.16794 11.547C5.89194 11.271 5.89194 10.823 6.16794 10.547L8.71527 7.99969Z", fill: "#8C8C8C" })) }, children))));
580
- };
581
- const Breadcrumbs = _Breadcrumbs;
582
- Breadcrumbs.Item = BreadcrumbItem;
438
+ const MalaysiaRoundIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
439
+ React__namespace["default"].createElement("g", null,
440
+ React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
441
+ React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
442
+ React__namespace["default"].createElement("rect", { y: "1", width: "20", height: "20", fill: "#CC0001" }),
443
+ React__namespace["default"].createElement("rect", { y: "16.106", width: "20", height: "1.02041", fill: "white" }),
444
+ React__namespace["default"].createElement("rect", { y: "16", width: "20", height: "1.02041", fill: "white" }),
445
+ React__namespace["default"].createElement("rect", { y: "18", width: "20", height: "1.02041", fill: "white" }),
446
+ React__namespace["default"].createElement("rect", { y: "14.0652", width: "20", height: "1.02041", fill: "white" }),
447
+ React__namespace["default"].createElement("rect", { y: "12.0242", width: "20", height: "1.02041", fill: "white" }),
448
+ React__namespace["default"].createElement("rect", { y: "9.9834", width: "20", height: "1.02041", fill: "white" }),
449
+ React__namespace["default"].createElement("rect", { y: "7.94263", width: "20", height: "1.02041", fill: "white" }),
450
+ React__namespace["default"].createElement("rect", { y: "5.90186", width: "20", height: "1.02041", fill: "white" }),
451
+ React__namespace["default"].createElement("rect", { y: "3.86084", width: "20", height: "1.02041", fill: "white" }),
452
+ React__namespace["default"].createElement("rect", { y: "2", width: "20", height: "1.02041", fill: "white" }),
453
+ React__namespace["default"].createElement("rect", { width: "20", height: "1.02041", fill: "white" }),
454
+ React__namespace["default"].createElement("rect", { y: "-1", width: "10", height: "12", fill: "#010066" }),
455
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.11387 3.86084C2.92711 3.86084 1.96387 5.23232 1.96387 6.92206C1.96387 8.6118 2.92711 9.98329 4.11387 9.98329C4.54263 9.98329 4.94211 9.80406 5.27763 9.4957C5.08225 9.59203 4.87256 9.64471 4.65427 9.64471C3.60193 9.64471 2.74786 8.42866 2.74786 6.93032C2.74786 5.43198 3.60193 4.21594 4.65427 4.21594C4.88682 4.21594 5.10959 4.27527 5.31571 4.38397C4.97256 4.0538 4.5589 3.86084 4.11387 3.86084Z", fill: "#FFCC00" }),
456
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.67935 8.51573L6.7737 7.8407L7.04147 9.22221L6.43573 8.06657L6.24676 9.47313L6.0609 8.06576L5.4526 9.2188L5.72343 7.83844L4.81629 8.50957L5.49017 7.42963L4.46387 7.48593L5.40732 6.9203L4.46512 6.35062L5.4913 6.41133L4.81981 5.3285L5.72546 6.00353L5.45769 4.62202L6.06343 5.77766L6.25241 4.37109L6.43827 5.77847L7.04656 4.62543L6.77574 6.00579L7.68287 5.33466L7.00899 6.4146L8.0353 6.3583L7.09184 6.92392L8.03404 7.49361L7.00786 7.43289L7.67935 8.51573Z", fill: "#FFCC00" }))));
457
+ const MalaysiaSquareIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
458
+ React__namespace["default"].createElement("rect", { width: "24", height: "16", rx: "2", fill: "#CC0001" }),
459
+ React__namespace["default"].createElement("rect", { y: "12.2712", width: "24", height: "0.777454", fill: "white" }),
460
+ React__namespace["default"].createElement("rect", { y: "12.1904", width: "24", height: "0.777454", fill: "white" }),
461
+ React__namespace["default"].createElement("rect", { y: "13.7144", width: "24", height: "0.777454", fill: "white" }),
462
+ React__namespace["default"].createElement("rect", { y: "10.7161", width: "24", height: "0.777454", fill: "white" }),
463
+ React__namespace["default"].createElement("rect", { y: "9.16138", width: "24", height: "0.777454", fill: "white" }),
464
+ React__namespace["default"].createElement("rect", { y: "7.60645", width: "24", height: "0.777454", fill: "white" }),
465
+ React__namespace["default"].createElement("rect", { y: "6.05127", width: "24", height: "0.777454", fill: "white" }),
466
+ React__namespace["default"].createElement("rect", { y: "4.49658", width: "24", height: "0.777454", fill: "white" }),
467
+ React__namespace["default"].createElement("rect", { y: "2.94141", width: "24", height: "0.777454", fill: "white" }),
468
+ React__namespace["default"].createElement("rect", { y: "1.52393", width: "24", height: "0.777454", fill: "white" }),
469
+ React__namespace["default"].createElement("rect", { width: "24", height: "0.777454", fill: "white" }),
470
+ React__namespace["default"].createElement("path", { d: "M0 2C0 0.895431 0.895431 0 2 0H12V8.38095H0V2Z", fill: "#010066" }),
471
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.93644 1.52393C3.51233 1.52393 2.35645 2.56887 2.35645 3.85629C2.35645 5.14371 3.51233 6.18865 4.93644 6.18865C5.45096 6.18865 5.93034 6.05209 6.33296 5.81716C6.09851 5.89054 5.84688 5.93068 5.58492 5.93068C4.32212 5.93068 3.29724 5.00417 3.29724 3.86258C3.29724 2.72099 4.32212 1.79448 5.58492 1.79448C5.86399 1.79448 6.13132 1.83968 6.37865 1.9225C5.96688 1.67094 5.47049 1.52393 4.93644 1.52393Z", fill: "#FFCC00" }),
472
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.216 5.07041L8.12923 4.55611L8.45055 5.60869L7.72366 4.72819L7.49689 5.79987L7.27386 4.72758L6.5439 5.60609L6.86889 4.55439L5.78033 5.06572L6.58899 4.24291L5.35742 4.28581L6.48957 3.85485L5.35893 3.42081L6.59034 3.46707L5.78456 2.64205L6.87133 3.15636L6.55001 2.10378L7.2769 2.98427L7.50367 1.9126L7.7267 2.98488L8.45666 2.10638L8.13166 3.15808L9.22022 2.64674L8.41157 3.46955L9.64314 3.42666L8.51099 3.85761L9.64163 4.29165L8.41022 4.2454L9.216 5.07041Z", fill: "#FFCC00" })));
583
473
 
584
- var useStyles$3 = core.createStyles((_theme, _params) => {
585
- var _a, _b, _c, _d, _e, _f;
586
- const { other } = _theme;
587
- const { template } = other;
588
- const { size, variant, skipHover, isError, isSuccess, color, children, theme: themeProp, } = _params;
589
- const isMb = template === 'mb' || themeProp === 'marryBaby';
590
- const finalColor = color || (themeProp && isMb ? 'mb' : _theme.primaryColor);
591
- const isHexColor = finalColor.startsWith('#');
592
- const hexColor50 = isHexColor
593
- ? _theme.fn.lighten(color, 0.9)
594
- : ((_b = (_a = _theme.colors) === null || _a === void 0 ? void 0 : _a[finalColor]) === null || _b === void 0 ? void 0 : _b[0]) || '';
595
- const hexColor = isHexColor
596
- ? finalColor
597
- : (_d = (_c = _theme.colors) === null || _c === void 0 ? void 0 : _c[finalColor]) === null || _d === void 0 ? void 0 : _d[_theme.fn.primaryShade()];
598
- const hoverHexColor = isHexColor
599
- ? _theme.fn.darken(color, 0.05)
600
- : (_f = (_e = _theme.colors) === null || _e === void 0 ? void 0 : _e[finalColor]) === null || _f === void 0 ? void 0 : _f[_theme.fn.primaryShade() + 1];
601
- return {
602
- root: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ transition: `all ${ANIMATION_DURATION} ease-in-out`, '&:focus': {
603
- outline: 'none',
604
- } }, (!children && {
605
- paddingLeft: '10px',
606
- paddingRight: '10px',
607
- '.mantine-Button-icon': {
608
- margin: 0,
609
- },
610
- })), (() => {
611
- switch (size) {
612
- case 'xl':
613
- return {
614
- height: 56,
615
- fontWeight: 600,
616
- fontSize: isMb ? '14px' : '16px',
617
- lineHeight: '24px',
618
- };
619
- case 'lg':
620
- return {
621
- height: 48,
622
- fontWeight: 600,
623
- fontSize: isMb ? '14px' : '16px',
624
- lineHeight: '24px',
625
- };
626
- case 'md':
627
- return {
628
- height: 40,
629
- fontWeight: 600,
630
- fontSize: '14px',
631
- lineHeight: '22px',
632
- };
633
- case 'sm':
634
- return {
635
- height: 32,
636
- fontWeight: 600,
637
- fontSize: isMb ? '12px' : '14px',
638
- lineHeight: '22px',
639
- paddingLeft: '16px',
640
- paddingRight: '16px',
641
- };
642
- case 'xs':
643
- return {
644
- height: 24,
645
- fontWeight: 600,
646
- fontSize: '12px',
647
- lineHeight: '18px',
648
- paddingLeft: '8px',
649
- paddingRight: '8px',
650
- };
651
- }
652
- })()), (() => {
653
- switch (variant) {
654
- case 'primary': {
655
- return Object.assign({ color: _theme.white, backgroundColor: hexColor }, (!skipHover && {
656
- '&:hover': {
657
- backgroundColor: hoverHexColor,
658
- },
659
- }));
660
- }
661
- case 'secondary':
662
- return Object.assign({ color: hexColor, backgroundColor: 'transparent', border: `1px solid ${hexColor}` }, (!skipHover && {
663
- '&:hover': {
664
- backgroundColor: hexColor50,
665
- border: `1px solid ${hexColor}`,
666
- },
667
- }));
668
- case 'white':
669
- return {
670
- color: hexColor,
671
- backgroundColor: 'transparent',
672
- border: `1px solid transparent`,
673
- '&:hover': {
674
- backgroundColor: 'transparent',
675
- borderColor: `transparent`,
676
- },
677
- };
678
- case 'tertiary':
679
- return {
680
- color: _theme.colors.gray[8],
681
- backgroundColor: _theme.white,
682
- border: `1px solid ${_theme.colors.neutral[2]}`,
683
- '&:hover': Object.assign({}, (!skipHover
684
- ? {
685
- backgroundColor: _theme.colors.neutral[0],
686
- border: `1px solid ${_theme.colors.neutral[0]}`,
687
- }
688
- : {
689
- backgroundColor: _theme.white,
690
- border: `1px solid ${_theme.colors.neutral[2]}`,
691
- })),
692
- };
693
- case 'light': {
694
- return {
695
- color: hexColor,
696
- backgroundColor: hexColor50,
697
- border: `1px solid transparent`,
698
- '&:hover': Object.assign({}, (!skipHover
699
- ? {
700
- backgroundColor: _theme.white,
701
- border: `1px solid ${hexColor50}`,
702
- }
703
- : {
704
- backgroundColor: hexColor50,
705
- border: `1px solid transparent`,
706
- })),
707
- };
708
- }
709
- case 'ghost':
710
- return Object.assign({ color: hexColor, backgroundColor: 'transparent', border: `1px solid transparent` }, (!skipHover && {
711
- '&:hover': {
712
- backgroundColor: hexColor50,
713
- border: `1px solid transparent`,
714
- },
715
- }));
716
- }
717
- })()), { '&[data-disabled]': {
718
- backgroundColor: _theme.colors.gray[1],
719
- color: _theme.colors.gray[4],
720
- } }), (isError
721
- ? Object.assign({ color: _theme.colors.red[6], backgroundColor: _theme.white, border: `1px solid ${_theme.colors.red[6]}` }, (!skipHover && {
722
- '&:hover': {
723
- backgroundColor: _theme.colors.red[0],
724
- border: `1px solid ${_theme.colors.red[6]}`,
725
- },
726
- })) : {})), (isSuccess
727
- ? Object.assign({ color: _theme.colors.green[8], backgroundColor: _theme.colors.green[0] }, (!skipHover && {
728
- '&:hover': {
729
- backgroundColor: _theme.colors.green[0],
730
- },
731
- })) : {})),
732
- };
733
- });
474
+ const MyanmarRoundIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
475
+ React__namespace["default"].createElement("g", null,
476
+ React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
477
+ React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
478
+ React__namespace["default"].createElement("rect", { x: "-4", y: "-1", width: "28", height: "11", fill: "#FECB00" }),
479
+ React__namespace["default"].createElement("rect", { x: "-4", y: "10", width: "28", height: "10", fill: "#EA2839" }),
480
+ React__namespace["default"].createElement("rect", { x: "-4", y: "6.7041", width: "28", height: "6.47773", fill: "#34B233" }),
481
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.56543 10.3272L10.1796 5.15527L11.7938 10.3272H8.56543Z", fill: "white" }),
482
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.5292 11.2775L7.18336 14.5129L8.91745 9.37991L11.5292 11.2775Z", fill: "white" }),
483
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.75181 11.8648L5.33182 8.73143L10.7494 8.79447L9.75181 11.8648Z", fill: "white" }),
484
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.6105 8.78962L15.0281 8.72658L10.6081 11.86L9.6105 8.78962Z", fill: "white" }),
485
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.4424 9.37686L13.1765 14.5098L8.83064 11.2744L11.4424 9.37686Z", fill: "white" }))));
486
+ const MyanmarSquareIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
487
+ React__namespace["default"].createElement("rect", { width: "24", height: "16", rx: "2", fill: "#FECB00" }),
488
+ React__namespace["default"].createElement("rect", { y: "8.3811", width: "24", height: "7.61905", rx: "2", fill: "#EA2839" }),
489
+ React__namespace["default"].createElement("rect", { y: "5.86987", width: "24", height: "4.93542", fill: "#34B233" }),
490
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.7705 8.63046L12.1541 4.68994L13.5377 8.63046H10.7705Z", fill: "white" }),
491
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.3108 9.35502L9.58574 11.8201L11.0721 7.90925L13.3108 9.35502Z", fill: "white" }),
492
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.7874 9.80216L7.99884 7.41482L12.6425 7.46285L11.7874 9.80216Z", fill: "white" }),
493
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.6667 7.4589L16.3104 7.41087L12.5218 9.79821L11.6667 7.4589Z", fill: "white" }),
494
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.2361 7.90629L14.7225 11.8171L10.9974 9.35207L13.2361 7.90629Z", fill: "white" })));
734
495
 
735
- const MAPPED_VARIANT = {
736
- primary: 'filled',
737
- secondary: 'outline',
738
- tertiary: 'default',
739
- light: 'light',
740
- ghost: 'subtle',
741
- error: 'outline',
742
- white: 'white',
743
- success: 'subtle',
744
- };
745
- function filterObject(obj) {
746
- const ret = {};
747
- Object.keys(obj)
748
- .filter((key) => obj[key] !== undefined)
749
- .forEach((key) => (ret[key] = obj[key]));
750
- return ret;
751
- }
752
- const Button = (props) => {
753
- var _a, _b;
754
- const theme = core.useMantineTheme();
755
- const _c = Object.assign(Object.assign({}, (_b = (_a = theme.components) === null || _a === void 0 ? void 0 : _a.Button) === null || _b === void 0 ? void 0 : _b.defaultProps), filterObject(props)), { variant, size, color, skipHover, className, dataEventCategory, dataEventAction, dataEventLabel, children, theme: themeProp } = _c, rest = tslib_es6.__rest(_c, ["variant", "size", "color", "skipHover", "className", "dataEventCategory", "dataEventAction", "dataEventLabel", "children", "theme"]);
756
- const isError = variant === 'error';
757
- const { classes, cx } = useStyles$3({
758
- variant,
759
- size,
760
- color,
761
- skipHover,
762
- isError,
763
- isSuccess: variant === 'success',
764
- children,
765
- theme: themeProp,
766
- });
767
- return (React__namespace["default"].createElement(core.Button, Object.assign({ className: cx(className, variant), classNames: {
768
- root: classes.root,
769
- }, variant: MAPPED_VARIANT[variant], "data-variant": variant, "data-event-category": dataEventCategory, "data-event-action": dataEventAction, "data-event-label": dataEventLabel }, rest), children));
770
- };
496
+ const PhilippinesRoundIcon = (props) => (React__namespace["default"].createElement(ImageWrap, Object.assign({ alt: "round philippines flag", src: index$3.CommonGAssets.getAssetPath('flags/philippineRound.png'), style: Object.assign({ borderRadius: '50%' }, props.style) }, props)));
497
+ const PhilippinesSquareIcon = (props) => (React__namespace["default"].createElement(ImageWrap, Object.assign({ alt: "square philippines flag", src: index$3.CommonGAssets.getAssetPath('flags/philippineSquare.png') }, props)));
771
498
 
772
- const StyledTextArea = styled__default["default"](core.Textarea) `
773
- .mantine-Textarea-input {
774
- padding: 12px 16px;
775
- background: #ffffff;
776
- border: 1px solid ${theme.theme.colors.gray200};
777
- border-radius: 4px;
778
- }
779
- `;
499
+ const TaiwanRoundIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
500
+ React__namespace["default"].createElement("g", null,
501
+ React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
502
+ React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
503
+ React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#D8D8D8" }),
504
+ React__namespace["default"].createElement("g", null,
505
+ React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
506
+ React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "white" })),
507
+ React__namespace["default"].createElement("rect", { width: "30", height: "20", fill: "#ED1E24" }),
508
+ React__namespace["default"].createElement("rect", { width: "15", height: "10", fill: "#2B2F84" }),
509
+ React__namespace["default"].createElement("circle", { cx: "7.49791", cy: "4.99913", r: "1.869", fill: "white" }),
510
+ React__namespace["default"].createElement("path", { d: "M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z", fill: "white" }),
511
+ React__namespace["default"].createElement("path", { d: "M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z", fill: "white" }),
512
+ React__namespace["default"].createElement("path", { d: "M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z", fill: "white" }),
513
+ React__namespace["default"].createElement("path", { d: "M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z", fill: "white" }),
514
+ React__namespace["default"].createElement("path", { d: "M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z", fill: "white" }),
515
+ React__namespace["default"].createElement("path", { d: "M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z", fill: "white" }),
516
+ React__namespace["default"].createElement("path", { d: "M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z", fill: "white" }),
517
+ React__namespace["default"].createElement("path", { d: "M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z", fill: "white" }),
518
+ React__namespace["default"].createElement("path", { d: "M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z", fill: "white" }),
519
+ React__namespace["default"].createElement("path", { d: "M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z", fill: "white" }),
520
+ React__namespace["default"].createElement("path", { d: "M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z", fill: "white" }),
521
+ React__namespace["default"].createElement("path", { d: "M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z", fill: "white" })))));
522
+ const TaiwanSquareIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
523
+ React__namespace["default"].createElement("rect", { width: "24", height: "16", rx: "2", fill: "#ED1E24" }),
524
+ React__namespace["default"].createElement("path", { d: "M0 2C0 0.89543 0.895431 0 2 0H15V10H0V2Z", fill: "#2B2F84" }),
525
+ React__namespace["default"].createElement("circle", { cx: "7.49791", cy: "4.99913", r: "1.869", fill: "white" }),
526
+ React__namespace["default"].createElement("path", { d: "M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z", fill: "white" }),
527
+ React__namespace["default"].createElement("path", { d: "M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z", fill: "white" }),
528
+ React__namespace["default"].createElement("path", { d: "M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z", fill: "white" }),
529
+ React__namespace["default"].createElement("path", { d: "M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z", fill: "white" }),
530
+ React__namespace["default"].createElement("path", { d: "M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z", fill: "white" }),
531
+ React__namespace["default"].createElement("path", { d: "M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z", fill: "white" }),
532
+ React__namespace["default"].createElement("path", { d: "M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z", fill: "white" }),
533
+ React__namespace["default"].createElement("path", { d: "M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z", fill: "white" }),
534
+ React__namespace["default"].createElement("path", { d: "M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z", fill: "white" }),
535
+ React__namespace["default"].createElement("path", { d: "M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z", fill: "white" }),
536
+ React__namespace["default"].createElement("path", { d: "M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z", fill: "white" }),
537
+ React__namespace["default"].createElement("path", { d: "M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z", fill: "white" })));
780
538
 
781
- var useStyles$2 = core.createStyles((theme) => {
782
- return {
783
- root: {},
784
- inner: {},
785
- content: {},
786
- header: {
787
- borderBottom: `1px solid ${theme.colors.neutral[1]}`,
788
- marginRight: 0,
789
- marginBottom: 0,
790
- padding: '12px',
791
- },
792
- overlay: {},
793
- title: {
794
- fontSize: 16,
795
- fontWeight: 700,
796
- lineHeight: 1.5,
797
- },
798
- body: {},
799
- close: {
800
- cursor: 'pointer',
801
- width: 'unset',
802
- height: 'unset',
803
- svg: {
804
- width: '24px !important',
805
- height: '24px !important',
806
- },
807
- },
808
- };
809
- });
539
+ const ThailandRoundIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
540
+ React__namespace["default"].createElement("g", null,
541
+ React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
542
+ React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
543
+ React__namespace["default"].createElement("rect", { x: "-4", y: "-0.0166016", width: "28", height: "20", fill: "#ED1C24" }),
544
+ React__namespace["default"].createElement("rect", { x: "-4", y: "3.31665", width: "28", height: "13.3333", fill: "white" }),
545
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M-4 6.65015H24V13.3168H-4V6.65015Z", fill: "#241D4F" }))));
546
+ const ThailandSquareIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 24 17", fill: "none" }, props),
547
+ React__namespace["default"].createElement("rect", { y: "0.983398", width: "24", height: "16", rx: "2", fill: "#ED1C24" }),
548
+ React__namespace["default"].createElement("rect", { y: "3.65039", width: "24", height: "10.6667", fill: "white" }),
549
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 6.31689H24V11.6502H0V6.31689Z", fill: "#241D4F" })));
810
550
 
811
- const StyledAccordion = styled__default["default"](core.Accordion) `
812
- .mantine-Accordion-label {
813
- padding: 0;
814
- }
815
- .mantine-Accordion-control {
816
- &:hover {
817
- background-color: transparent;
818
- }
819
- }
820
- .mantine-Accordion-item {
821
- .mantine-Accordion-chevron {
822
- > div {
823
- background-repeat: no-repeat;
824
- width: 16px;
825
- height: 16px;
826
- background-position: center;
827
- background-image: url(${(props) => props.closeChevron || index$2.CommonGAssets.getAssetPath('plus-icon.svg')});
828
- }
829
- }
830
- &[data-active='true'] {
831
- .mantine-Accordion-chevron {
832
- > div {
833
- background-image: url(${(props) => props.openChevron || index$2.CommonGAssets.getAssetPath('minus-icon.svg')});
834
- }
835
- }
836
- }
837
- }
838
- .mantine-Accordion-panel {
839
- border-radius: ${theme.theme.borderRadius};
840
- }
841
- .mantine-Accordion-content {
842
- white-space: pre-wrap;
843
- }
844
- `;
551
+ const VietnamRoundIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
552
+ React__namespace["default"].createElement("g", null,
553
+ React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
554
+ React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
555
+ React__namespace["default"].createElement("rect", { x: "-4", y: "-0.0166016", width: "28", height: "20", fill: "#DA251D" }),
556
+ React__namespace["default"].createElement("path", { d: "M11.7228 10.8677L14.2819 9.00839L11.1187 9.00839L10.1409 6L9.16316 9.00839L6 9.00839L8.5591 10.8677L7.58184 13.8766L10.1409 12.0168L12.7 13.8766L11.7228 10.8677Z", fill: "#FFEB3B" }))));
557
+ const VietnamSquareIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
558
+ React__namespace["default"].createElement("g", null,
559
+ React__namespace["default"].createElement("clipPath", null,
560
+ React__namespace["default"].createElement("rect", { width: "24", height: "16", fill: "white" })),
561
+ React__namespace["default"].createElement("path", { d: "M2.01386e-10 2C0 0.895431 0.895431 -7.50368e-10 2 -1.67599e-09L22 -1.84359e-08C23.1046 -1.93615e-08 24 0.895431 24 2L24 14C24 15.1046 23.1046 16 22 16L2 16C0.89543 16 1.52092e-09 15.1046 1.4097e-09 14L2.01386e-10 2Z", fill: "#DA251D" }),
562
+ React__namespace["default"].createElement("path", { d: "M13.7823 8.92854L16.6663 6.8332L13.1016 6.8332L11.9997 3.44287L10.8978 6.8332L7.33301 6.8332L10.217 8.92854L9.11567 12.3195L11.9997 10.2235L14.8837 12.3195L13.7823 8.92854Z", fill: "#FFEB3B" }))));
845
563
 
846
- const _Accordion = (_a) => {
847
- var { children } = _a, rest = tslib_es6.__rest(_a, ["children"]);
848
- return (React__namespace["default"].createElement(StyledAccordion, Object.assign({ chevron: React__namespace["default"].createElement("div", null), disableChevronRotation: true, transitionDuration: 300 }, rest), children));
849
- };
850
- const Accordion = _Accordion;
851
- Accordion.Control = core.Accordion.Control;
852
- Accordion.Item = core.Accordion.Item;
853
- Accordion.Panel = core.Accordion.Panel;
854
-
855
- const ImageWrap = (_a) => {
856
- var { alt, backupSrc, src, placeholderSrc, style, ref } = _a, props = tslib_es6.__rest(_a, ["alt", "backupSrc", "src", "placeholderSrc", "style", "ref"]);
857
- const [hasError, setHasError] = React.useState(false);
858
- return (React__namespace["default"].createElement(StyledImage, Object.assign({ loading: "lazy", alt: alt, onError: () => !hasError && setHasError(true), src: hasError ? backupSrc || src : src || backupSrc, style: Object.assign(Object.assign({}, (placeholderSrc
859
- ? {
860
- backgroundImage: `url(${placeholderSrc})`,
861
- }
862
- : {})), style), "data-has-placeholder": !!placeholderSrc, ref: ref }, props)));
863
- };
864
- const StyledImage = styled__default["default"].img `
865
- &[data-has-placeholder='true'] {
866
- background-position: center;
867
- background-repeat: no-repeat;
868
- background-size: cover;
869
- }
870
- `;
871
-
872
- const DEFAULT_AVATAR = index$2.CommonGAssets.getAssetPath('avatar.jpg');
873
- const Avatar = (_a) => {
874
- var { withIndicator = false, indicatorConfig = null, size = 56, children, styles, placeholderText } = _a, // usually first letter of name
875
- avatarProps = tslib_es6.__rest(_a, ["withIndicator", "indicatorConfig", "size", "children", "styles", "placeholderText"]);
876
- const generateAvatar = () => {
877
- return (React__namespace["default"].createElement(core.Avatar, Object.assign({ size: size, radius: "xl" }, avatarProps, { imageProps: Object.assign({ loading: 'lazy' }, avatarProps.imageProps), styles: {
878
- placeholder: {
879
- backgroundColor: avatarProps.color,
880
- color: 'white',
881
- },
882
- } }), children ? (children) : placeholderText ? (placeholderText) : (React__namespace["default"].createElement(ImageWrap, { src: DEFAULT_AVATAR, width: size, alt: avatarProps.alt || 'avatar' }))));
883
- };
884
- if (withIndicator)
885
- return (React__namespace["default"].createElement(core.Indicator, Object.assign({ inline: true, position: "bottom-end", offset: 9 }, indicatorConfig, { styles: Object.assign({ indicator: {
886
- backgroundColor: React__namespace["default"].isValidElement(indicatorConfig.label) && 'transparent',
887
- zIndex: 1,
888
- } }, styles) }), generateAvatar()));
889
- return generateAvatar();
890
- };
564
+ var styles$2 = {"flag":"pfaLGRK"};
891
565
 
892
- const FileInput = (props) => {
893
- return React__namespace["default"].createElement(core.FileInput, Object.assign({ size: "md" }, props));
566
+ const Flag = ({ country, language, rounded, height, width, isTesting, className, }) => {
567
+ let flag;
568
+ let flagRounded;
569
+ switch (language) {
570
+ case 'en':
571
+ flag = React__namespace["default"].createElement(EnglishSquareIcon, null);
572
+ flagRounded = React__namespace["default"].createElement(EnglishRoundIcon, null);
573
+ break;
574
+ case 'vi':
575
+ flag = React__namespace["default"].createElement(VietnamSquareIcon, null);
576
+ flagRounded = React__namespace["default"].createElement(VietnamRoundIcon, null);
577
+ break;
578
+ case 'id':
579
+ flag = React__namespace["default"].createElement(IndonesiaSquareIcon, { isTesting: isTesting });
580
+ flagRounded = React__namespace["default"].createElement(IndonesiaRoundIcon, { isTesting: isTesting });
581
+ break;
582
+ case 'th':
583
+ flag = React__namespace["default"].createElement(ThailandSquareIcon, null);
584
+ flagRounded = React__namespace["default"].createElement(ThailandRoundIcon, null);
585
+ break;
586
+ case 'km':
587
+ flag = React__namespace["default"].createElement(CambodiaSquareIcon, null);
588
+ flagRounded = React__namespace["default"].createElement(CambodiaRoundIcon, null);
589
+ break;
590
+ case 'ms':
591
+ flag = React__namespace["default"].createElement(MalaysiaSquareIcon, null);
592
+ flagRounded = React__namespace["default"].createElement(MalaysiaRoundIcon, null);
593
+ break;
594
+ case 'my':
595
+ flag = React__namespace["default"].createElement(MyanmarSquareIcon, null);
596
+ flagRounded = React__namespace["default"].createElement(MyanmarRoundIcon, null);
597
+ break;
598
+ case 'tl':
599
+ flag = React__namespace["default"].createElement(PhilippinesSquareIcon, null);
600
+ flagRounded = React__namespace["default"].createElement(PhilippinesRoundIcon, null);
601
+ break;
602
+ case 'hi':
603
+ flag = React__namespace["default"].createElement(IndiaSquareIcon, null);
604
+ flagRounded = React__namespace["default"].createElement(IndiaRoundIcon, null);
605
+ break;
606
+ case 'zh':
607
+ flag = React__namespace["default"].createElement(TaiwanSquareIcon, null);
608
+ flagRounded = React__namespace["default"].createElement(TaiwanRoundIcon, null);
609
+ break;
610
+ }
611
+ if (!flag && !flagRounded) {
612
+ switch (country) {
613
+ case 'VN':
614
+ flag = React__namespace["default"].createElement(VietnamSquareIcon, null);
615
+ flagRounded = React__namespace["default"].createElement(VietnamRoundIcon, null);
616
+ break;
617
+ case 'ID':
618
+ flag = React__namespace["default"].createElement(IndonesiaSquareIcon, { isTesting: isTesting });
619
+ flagRounded = React__namespace["default"].createElement(IndonesiaRoundIcon, { isTesting: isTesting });
620
+ break;
621
+ case 'TH':
622
+ flag = React__namespace["default"].createElement(ThailandSquareIcon, null);
623
+ flagRounded = React__namespace["default"].createElement(ThailandRoundIcon, null);
624
+ break;
625
+ case 'KH':
626
+ flag = React__namespace["default"].createElement(CambodiaSquareIcon, null);
627
+ flagRounded = React__namespace["default"].createElement(CambodiaRoundIcon, null);
628
+ break;
629
+ case 'MY':
630
+ flag = React__namespace["default"].createElement(MalaysiaSquareIcon, null);
631
+ flagRounded = React__namespace["default"].createElement(MalaysiaRoundIcon, null);
632
+ break;
633
+ case 'MM':
634
+ flag = React__namespace["default"].createElement(MyanmarSquareIcon, null);
635
+ flagRounded = React__namespace["default"].createElement(MyanmarRoundIcon, null);
636
+ break;
637
+ case 'PH':
638
+ flag = React__namespace["default"].createElement(PhilippinesSquareIcon, null);
639
+ flagRounded = React__namespace["default"].createElement(PhilippinesRoundIcon, null);
640
+ break;
641
+ case 'IN':
642
+ flag = React__namespace["default"].createElement(IndiaSquareIcon, null);
643
+ flagRounded = React__namespace["default"].createElement(IndiaRoundIcon, null);
644
+ break;
645
+ case 'TW':
646
+ flag = React__namespace["default"].createElement(TaiwanSquareIcon, null);
647
+ flagRounded = React__namespace["default"].createElement(TaiwanRoundIcon, null);
648
+ break;
649
+ }
650
+ }
651
+ return (React__namespace["default"].createElement("div", { className: `${styles$2.flag} ${className || ''}`, style: {
652
+ '--width': width || 20,
653
+ '--height': height || 20,
654
+ } }, rounded ? flagRounded : flag));
894
655
  };
895
656
 
896
- const DEBOUNCED_TIME = 300;
897
- const emotionCache = core.createEmotionCache({
898
- key: 'mantine',
899
- prepend: false,
900
- });
657
+ const Select = React.forwardRef((_a, ref) => {
658
+ var { keepSearch = false } = _a, props = tslib_es6.__rest(_a, ["keepSearch"]);
659
+ if (keepSearch) {
660
+ return (React__namespace["default"].createElement(_AutoComplete, Object.assign({}, props, { ref: ref })));
661
+ }
662
+ else {
663
+ return React__namespace["default"].createElement(_Select, Object.assign({}, props, { ref: ref }));
664
+ }
665
+ });
666
+ const _AutoComplete = React.forwardRef((_a, ref) => {
667
+ var { value, defaultValue, onChange, clearable } = _a, props = tslib_es6.__rest(_a, ["value", "defaultValue", "onChange", "clearable"]);
668
+ const [_value, handleChange] = hooks.useUncontrolled({
669
+ value,
670
+ defaultValue,
671
+ onChange,
672
+ });
673
+ const onClear = () => {
674
+ handleChange('');
675
+ };
676
+ return (React__namespace["default"].createElement(core.Autocomplete, Object.assign({ ref: ref, rightSection: React__namespace["default"].createElement(core.Image, { src: index$3.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
677
+ ? {
678
+ rightSection: (React__namespace["default"].createElement(core.ActionIcon, { onClick: onClear, sx: { cursor: 'pointer' } },
679
+ React__namespace["default"].createElement(_IconSelect, null))),
680
+ }
681
+ : {}))));
682
+ });
683
+ const _Select = React.forwardRef((_a, ref) => {
684
+ var { searchValue, onSearchChange } = _a, props = tslib_es6.__rest(_a, ["searchValue", "onSearchChange"]);
685
+ const [_searchValue, handleSearchChange] = hooks.useUncontrolled({
686
+ defaultValue: '',
687
+ value: searchValue,
688
+ onChange: onSearchChange,
689
+ });
690
+ const onClear = () => {
691
+ handleSearchChange('');
692
+ };
693
+ return (React__namespace["default"].createElement(core.Select, Object.assign({ ref: ref, rightSection: React__namespace["default"].createElement(other.ArrowDown, { size: 18 }), rightSectionProps: { style: { pointerEvents: 'none' } }, size: "md", maxDropdownHeight: 300, onSearchChange: (e) => handleSearchChange(e), searchValue: _searchValue }, props, (props.clearable && (_searchValue === null || _searchValue === void 0 ? void 0 : _searchValue.length) > 0
694
+ ? {
695
+ rightSection: (React__namespace["default"].createElement(core.ActionIcon, { onClick: onClear, sx: { cursor: 'pointer' } },
696
+ React__namespace["default"].createElement(_IconSelect, null))),
697
+ }
698
+ : {}))));
699
+ });
700
+ const _IconSelect = () => (React__namespace["default"].createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" },
701
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.6665 9.99996C1.6665 5.39163 5.3915 1.66663 9.99984 1.66663C14.6082 1.66663 18.3332 5.39163 18.3332 9.99996C18.3332 14.6083 14.6082 18.3333 9.99984 18.3333C5.3915 18.3333 1.6665 14.6083 1.6665 9.99996ZM12.4083 13.5831C12.7333 13.9081 13.2583 13.9081 13.5833 13.5831C13.9 13.2581 13.9 12.7247 13.5833 12.4081L11.175 9.99973L13.5833 7.5914C13.9083 7.2664 13.9083 6.7414 13.5833 6.4164C13.2583 6.0914 12.7333 6.0914 12.4083 6.4164L10 8.82473L7.59167 6.4164C7.26667 6.0914 6.74167 6.0914 6.41667 6.4164C6.26063 6.57209 6.17293 6.78347 6.17293 7.0039C6.17293 7.22433 6.26063 7.43571 6.41667 7.5914L8.825 9.99973L6.41667 12.4081C6.26063 12.5638 6.17293 12.7751 6.17293 12.9956C6.17293 13.216 6.26063 13.4274 6.41667 13.5831C6.74167 13.9081 7.26667 13.9081 7.59167 13.5831L10 11.1747L12.4083 13.5831Z", fill: "#8C8C8C" })));
901
702
 
902
- const NumberInput = (_a) => {
903
- var { value: _value, onChange: _onChange } = _a, props = tslib_es6.__rest(_a, ["value", "onChange"]);
904
- const [value, setValue] = React.useState(_value);
905
- const [debounced] = hooks.useDebouncedValue(value, DEBOUNCED_TIME);
906
- React.useEffect(() => {
907
- _onChange === null || _onChange === void 0 ? void 0 : _onChange(debounced);
908
- }, [debounced]);
703
+ const getIsMobile = () => {
704
+ return (typeof window !== 'undefined' &&
705
+ window.innerWidth < utils.Breakpoints.BREAK_POINT_MOBILE);
706
+ };
707
+ const getIsLargeMobile = () => {
708
+ return (typeof window !== 'undefined' &&
709
+ window.innerWidth >= utils.Breakpoints.BREAK_POINT_MOBILE &&
710
+ window.innerWidth < utils.Breakpoints.BREAK_POINT_PC);
711
+ };
712
+ const useScreenSize = () => {
713
+ const [isMobile, setIsMobile] = React.useState(getIsMobile());
714
+ const [isLargeMobile, setIsLargeMobile] = React.useState(getIsLargeMobile());
909
715
  React.useEffect(() => {
910
- setValue(_value);
911
- }, [_value]);
912
- return (React__namespace["default"].createElement(core.NumberInput, Object.assign({ size: "md", stepHoldDelay: 500, stepHoldInterval: (t) => Math.max(1000 / Math.pow(t, 2), 25), onChange: setValue, hideControls: true, min: 0, formatter: (value) => {
913
- if (Number(value) === 0)
914
- return value;
915
- return value || '';
916
- }, removeTrailingZeros: true, value: value }, props)));
716
+ const handleResize = () => {
717
+ setIsMobile(getIsMobile());
718
+ setIsLargeMobile(getIsLargeMobile());
719
+ };
720
+ window.addEventListener('resize', handleResize, {
721
+ passive: true,
722
+ });
723
+ return () => {
724
+ window.removeEventListener('resize', handleResize);
725
+ };
726
+ }, []);
727
+ return { isMobile, isLargeMobile };
917
728
  };
918
729
 
919
- const EyeVisible = index$2.CommonGAssets.getAssetPath('EyeVisible.svg');
920
- const EyeHidden = index$2.CommonGAssets.getAssetPath('EyeHidden.svg');
921
- const PasswordInput = React.forwardRef((props, ref) => {
922
- const { size = 'md', visibilityToggleIcon: visibilityToggleIconProps } = props, restProps = tslib_es6.__rest(props, ["size", "visibilityToggleIcon"]);
923
- const visibilityToggleIcon = visibilityToggleIconProps ||
924
- (({ reveal, size }) => reveal ? (React__namespace["default"].createElement("img", { src: EyeVisible, width: size, loading: "lazy" })) : (React__namespace["default"].createElement("img", { src: EyeHidden, width: size, loading: "lazy" })));
925
- return (React__namespace["default"].createElement(core.PasswordInput, Object.assign({ ref: ref, size: size, visibilityToggleIcon: visibilityToggleIcon }, restProps, { className: `input-control ${(restProps === null || restProps === void 0 ? void 0 : restProps.className) || ''}` })));
926
- });
730
+ class ErrorBoundary extends React.Component {
731
+ constructor() {
732
+ super(...arguments);
733
+ this.state = {
734
+ hasError: false,
735
+ };
736
+ }
737
+ static getDerivedStateFromError() {
738
+ // Update state so the next render will show the fallback UI.
739
+ return { hasError: true };
740
+ }
741
+ componentDidCatch(error, errorInfo) {
742
+ console.error('Uncaught error:', error, errorInfo);
743
+ }
744
+ render() {
745
+ if (this.state.hasError) {
746
+ return this.props.fallback || React__namespace["default"].createElement(React__namespace["default"].Fragment, null);
747
+ }
748
+ return this.props.children;
749
+ }
750
+ }
927
751
 
928
- const InputWrapper = React.forwardRef((_a, ref) => {
929
- var { value: _value, onChange: _onChange, onChangeRaw, maxLength } = _a, props = tslib_es6.__rest(_a, ["value", "onChange", "onChangeRaw", "maxLength"]);
930
- const [value, setValue] = React.useState(_value || '');
931
- const [debounced] = hooks.useDebouncedValue(value, DEBOUNCED_TIME);
932
- React.useEffect(() => {
933
- _onChange === null || _onChange === void 0 ? void 0 : _onChange(debounced);
934
- }, [debounced]);
935
- React.useEffect(() => {
936
- setValue(_value);
937
- }, [_value]);
938
- return (React__namespace["default"].createElement(core.TextInput, Object.assign({ ref: ref, size: "md", onChange: (event) => {
939
- if (typeof maxLength === 'number' &&
940
- event.currentTarget.value.length > maxLength) {
941
- return;
942
- }
943
- onChangeRaw === null || onChangeRaw === void 0 ? void 0 : onChangeRaw(event);
944
- setValue(event.currentTarget.value);
945
- }, value: value }, props, { maxLength: maxLength, className: `input-control ${(props === null || props === void 0 ? void 0 : props.className) || ''}` })));
946
- });
947
- const Input = InputWrapper;
948
- Input.File = FileInput;
949
- Input.Password = PasswordInput;
950
- Input.Number = NumberInput;
951
- Input.Wrapper = core.Input.Wrapper;
752
+ const CarouselWrapper$1 = (_a) => {
753
+ var { slidesToShow = 1, children } = _a, props = tslib_es6.__rest(_a, ["slidesToShow", "children"]);
754
+ const length = Array.isArray(children) ? children.length : 1;
755
+ if (!length)
756
+ return null;
757
+ return (React__namespace["default"].createElement(ErrorBoundary, null,
758
+ React__namespace["default"].createElement(carousel.Carousel
759
+ // get 2 precision number
760
+ , Object.assign({
761
+ // get 2 precision number
762
+ slideSize: String(Math.floor((1 / slidesToShow) * 10000) / 100) + '%', containScroll: "trimSnaps" }, props), children)));
763
+ };
764
+ const Carousel = CarouselWrapper$1;
765
+ Carousel.Slide = carousel.Carousel.Slide;
952
766
 
953
- const StyledSlide = carousel.Carousel.Slide;
767
+ const StyledCarousel = styled__default["default"](Carousel) `
768
+ cursor: grab;
769
+ width: 100%;
770
+ .mantine-Carousel-control {
771
+ background: rgb(255, 255, 255);
772
+ opacity: 1;
773
+ border: none;
774
+ border-radius: 0;
775
+ box-shadow: none;
776
+ &[data-inactive] {
777
+ opacity: 0;
778
+ cursor: default;
779
+ }
780
+ &:first-child {
781
+ padding-right: 24px;
782
+ background: linear-gradient(
783
+ 90deg,
784
+ rgba(255, 255, 255, 1) 0%,
785
+ rgba(255, 255, 255, 1) 50%,
786
+ rgba(255, 255, 255, 0) 100%
787
+ );
788
+ }
789
+ &:last-child {
790
+ padding-left: 24px;
791
+ background: linear-gradient(
792
+ 270deg,
793
+ rgba(255, 255, 255, 1) 0%,
794
+ rgba(255, 255, 255, 1) 50%,
795
+ rgba(255, 255, 255, 0) 100%
796
+ );
797
+ }
798
+ }
954
799
 
955
- const SlideContext = React.createContext({});
956
- const CustomSlide = (_a) => {
957
- var { children, onClick, innerSlideProps } = _a, rest = tslib_es6.__rest(_a, ["children", "onClick", "innerSlideProps"]);
958
- const { slider, selectSlideWhenClick } = React.useContext(SlideContext);
959
- const ref = React.useRef();
960
- const key = React.useRef('');
961
- const [index, setIndex] = React.useState(0);
962
- React.useEffect(() => {
963
- key.current = String(Math.round(Math.random() * 10000));
964
- }, []);
965
- React.useEffect(() => {
966
- const slidesNode = (slider === null || slider === void 0 ? void 0 : slider.slideNodes()) || [];
967
- setIndex(slidesNode.findIndex((obj) => obj.dataset.key === key.current));
968
- }, [slider]);
969
- const sliderProps = {
970
- ref,
971
- 'data-key': key.current,
972
- 'data-index': index,
973
- };
974
- return (React__namespace["default"].createElement(StyledSlide, Object.assign({}, sliderProps, rest),
975
- React__namespace["default"].createElement("div", Object.assign({ style: {
976
- height: '100%',
977
- }, onClick: () => {
978
- selectSlideWhenClick && (slider === null || slider === void 0 ? void 0 : slider.scrollTo(index));
979
- onClick === null || onClick === void 0 ? void 0 : onClick(index);
980
- } }, innerSlideProps), children)));
981
- };
982
- const findIndexFromLeftSide = (position, slideLength) => {
983
- return position >= slideLength ? position - slideLength : position;
984
- };
985
- const findIndexFromRight = (position, slideLength) => {
986
- return position < 0 ? slideLength + position : position;
987
- };
988
- const CarouselWrapper = (_a) => {
989
- var { children, blurFromCenter, blurFromIndex, blurLength = 3, maxBlurOpacity = 0.5, onSlideChange, selectSlideWhenClick } = _a, props = tslib_es6.__rest(_a, ["children", "blurFromCenter", "blurFromIndex", "blurLength", "maxBlurOpacity", "onSlideChange", "selectSlideWhenClick"]);
990
- const { width } = hooks.useViewportSize();
991
- const [ref] = hooks.useResizeObserver();
992
- const slider = React.useRef(null);
993
- const [centerSlide, setCenterSlide] = React.useState(0);
994
- const handleStyle = () => {
995
- var _a, _b, _c, _d, _e;
996
- const slidesNode = ((_a = slider === null || slider === void 0 ? void 0 : slider.current) === null || _a === void 0 ? void 0 : _a.slideNodes()) || [];
997
- if (((_b = slider === null || slider === void 0 ? void 0 : slider.current) === null || _b === void 0 ? void 0 : _b.slideNodes().length) <=
998
- ((_c = slider === null || slider === void 0 ? void 0 : slider.current) === null || _c === void 0 ? void 0 : _c.slidesInView().length)) {
999
- slidesNode.map((item) => {
1000
- item.classList.remove('center-slide');
1001
- item.style.opacity = '1';
1002
- });
1003
- return false;
1004
- }
1005
- const centerSlideIndex = (_d = slider === null || slider === void 0 ? void 0 : slider.current) === null || _d === void 0 ? void 0 : _d.selectedScrollSnap();
1006
- setCenterSlide(centerSlideIndex);
1007
- const slidesNodeLength = slidesNode.length;
1008
- const slidesInView = (_e = slider === null || slider === void 0 ? void 0 : slider.current) === null || _e === void 0 ? void 0 : _e.slidesInView();
1009
- const slidesInViewLength = slidesInView.length;
1010
- const halfSideLength = Math.floor(slidesInViewLength / 2);
1011
- const halfSideBlurLength = blurFromCenter
1012
- ? blurFromIndex + blurLength - 1
1013
- : halfSideLength;
1014
- const lastRightBlurIndexTmp = centerSlideIndex + halfSideBlurLength;
1015
- const lastRightBlurIndex = lastRightBlurIndexTmp === slidesNodeLength
1016
- ? 0
1017
- : lastRightBlurIndexTmp > slidesNodeLength
1018
- ? lastRightBlurIndexTmp - slidesNodeLength
1019
- : lastRightBlurIndexTmp;
1020
- const lastLeftBlurIndexTmp = centerSlideIndex - halfSideBlurLength;
1021
- const lastLeftBlurIndex = lastLeftBlurIndexTmp < 0
1022
- ? slidesNodeLength + lastLeftBlurIndexTmp
1023
- : lastLeftBlurIndexTmp > 0
1024
- ? centerSlideIndex - halfSideBlurLength
1025
- : 0;
1026
- const visibleSlide = [
1027
- ...new Set(Array(halfSideBlurLength * 2 + 1)
1028
- .fill('')
1029
- .map((i, idx) => {
1030
- const findFrom = lastLeftBlurIndex;
1031
- return findIndexFromLeftSide(findFrom + idx, slidesNodeLength);
1032
- })),
1033
- ];
1034
- slidesNode.map((item, index) => {
1035
- if (index === centerSlideIndex) {
1036
- item.classList.add('center-slide');
1037
- }
1038
- else {
1039
- item.classList.remove('center-slide');
1040
- }
1041
- if (visibleSlide.indexOf(index) !== -1) {
1042
- const opacityGap = maxBlurOpacity / blurLength;
1043
- for (let i = 0; i < blurLength; i++) {
1044
- if (index ===
1045
- findIndexFromLeftSide(lastLeftBlurIndex + i, slidesNodeLength) ||
1046
- index ===
1047
- findIndexFromRight(lastRightBlurIndex - i, slidesNodeLength)) {
1048
- item.style.opacity = String((i + 1) * opacityGap);
1049
- break;
1050
- }
1051
- item.style.opacity = '1';
1052
- }
1053
- }
1054
- else {
1055
- item.style.opacity = '0';
1056
- }
1057
- });
1058
- };
1059
- const sliderProps = {
1060
- getEmblaApi: (embla) => {
1061
- slider.current = embla;
1062
- },
1063
- onSlideChange: (index) => {
1064
- handleStyle();
1065
- onSlideChange === null || onSlideChange === void 0 ? void 0 : onSlideChange(index);
800
+ .mantine-Carousel-container {
801
+ align-items: center;
802
+ }
803
+ `;
804
+
805
+ var useStyles$3 = core.createStyles((_theme, _params) => {
806
+ return {
807
+ root: {
808
+ color: _params.color ||
809
+ (_theme.primaryColor === 'hb'
810
+ ? _theme.colors.hb[6]
811
+ : _theme.fn.primaryColor()),
1066
812
  },
1067
813
  };
1068
- React.useEffect(() => {
1069
- (slider === null || slider === void 0 ? void 0 : slider.current) && handleStyle();
1070
- }, [width]);
1071
- const useStyles = core.createStyles(() => {
1072
- var _a, _b;
1073
- return ({
1074
- control: Object.assign({}, (((_a = slider === null || slider === void 0 ? void 0 : slider.current) === null || _a === void 0 ? void 0 : _a.slideNodes().length) <=
1075
- ((_b = slider === null || slider === void 0 ? void 0 : slider.current) === null || _b === void 0 ? void 0 : _b.slidesInView().length) && {
1076
- display: 'none',
1077
- })),
1078
- });
1079
- });
1080
- const { classes } = useStyles();
1081
- return (React__namespace["default"].createElement(SlideContext.Provider, { value: { slider: slider === null || slider === void 0 ? void 0 : slider.current, centerSlide, selectSlideWhenClick } },
1082
- React__namespace["default"].createElement(carousel.Carousel, Object.assign({ classNames: {
1083
- control: classes.control,
1084
- }, ref: ref, slideSize: 'auto', containScroll: "trimSnaps" }, sliderProps, props, { loop: true }), typeof children === 'function' ? children(centerSlide) : children)));
1085
- };
1086
- const CentralCarousel = CarouselWrapper;
1087
- CentralCarousel.Slide = CustomSlide;
814
+ });
1088
815
 
1089
- const CheckboxWrapper = (_a) => {
1090
- var { styles, color = 'blue' } = _a, props = tslib_es6.__rest(_a, ["styles", "color"]);
1091
- const theme = core.useMantineTheme();
1092
- const hexColor = React.useMemo(() => {
1093
- var _a, _b;
1094
- return ((color === null || color === void 0 ? void 0 : color.includes('.'))
1095
- ? (_a = theme.colors[color.split('.')[0]]) === null || _a === void 0 ? void 0 : _a[color.split('.')[1]]
1096
- : (_b = theme.colors[color]) === null || _b === void 0 ? void 0 : _b[theme.primaryShade || 6]) ||
1097
- theme.colors.blue[6];
1098
- }, [color]);
1099
- return (React__namespace["default"].createElement(core.Checkbox, Object.assign({ styles: Object.assign({ input: {
1100
- '&:hover': {
1101
- border: `1px solid ${hexColor}`,
1102
- },
1103
- } }, styles), color: color }, props)));
1104
- };
1105
- const Checkbox = CheckboxWrapper;
1106
- Checkbox.Group = core.Checkbox.Group;
816
+ const Anchor = (_a) => {
817
+ var { color, styles, className } = _a, rest = tslib_es6.__rest(_a, ["color", "styles", "className"]);
818
+ const { classes, cx } = useStyles$3({ color }, { name: 'Anchor', styles });
819
+ return React__namespace["default"].createElement(index$4.Text, Object.assign({ as: "a", className: cx(classes.root, className) }, rest));
820
+ };
1107
821
 
1108
- const StyledSlider = styled__default["default"](core.Slider) `
1109
- ${(props) => {
1110
- const color = props.color || theme.theme.colors.primaryBase;
1111
- return `
1112
- .mantine-Slider-bar {
1113
- background-color: ${color};
1114
- }
1115
- .mantine-Slider-thumb {
1116
- border-color: ${color};
1117
- color: ${color};
1118
- }
1119
- `;
1120
- }}
1121
- [data-theme='marryBaby'] & {
1122
- ${(props) => {
1123
- const color = props.color || theme.theme.mbColors.pink;
1124
- return `
1125
- .mantine-Slider-bar {
1126
- background-color: ${color};
1127
- }
1128
- .mantine-Slider-thumb {
1129
- border-color: ${color};
1130
- color: ${color};
1131
- }
1132
- `;
1133
- }}
1134
- }
822
+ const BreadcrumbItem = (_a) => {
823
+ var { children } = _a, rest = tslib_es6.__rest(_a, ["children"]);
824
+ return (React__namespace["default"].createElement(Anchor, Object.assign({ size: "p4", color: 'gray.8' }, rest), children));
825
+ };
1135
826
 
1136
- .mantine-Slider-label {
1137
- background-color: transparent;
1138
- color: #000;
1139
- font-size: 14px;
1140
- font-weight: bold;
827
+ const AspectRatio = (props) => {
828
+ return (React__namespace["default"].createElement(core.AspectRatio, Object.assign({ sx: {
829
+ borderRadius: 4,
830
+ overflow: 'hidden',
831
+ '> img': {
832
+ objectFit: 'contain',
833
+ },
834
+ } }, props)));
835
+ };
836
+
837
+ const _Breadcrumbs = (_a) => {
838
+ var _b;
839
+ var { children, showHomeIcon = true, homeIconHref = '/' } = _a, rest = tslib_es6.__rest(_a, ["children", "showHomeIcon", "homeIconHref"]);
840
+ const theme = core.useMantineTheme();
841
+ const isMarryBaby = ((_b = theme === null || theme === void 0 ? void 0 : theme.other) === null || _b === void 0 ? void 0 : _b.template) === 'mb';
842
+ const [embla, setEmbla] = React.useState(null);
843
+ const { isMobile } = useScreenSize();
844
+ const [, setShouldAllowClick] = React.useState(true);
845
+ const handleScroll = React.useCallback(() => {
846
+ setShouldAllowClick(false);
847
+ }, []);
848
+ const handlePointerUp = React.useCallback(() => {
849
+ setTimeout(() => {
850
+ setShouldAllowClick(true);
851
+ }, 1000);
852
+ }, []);
853
+ React.useEffect(() => {
854
+ if (embla) {
855
+ embla.on('scroll', handleScroll);
856
+ embla.on('pointerUp', handlePointerUp);
857
+ }
858
+ return () => {
859
+ if (embla) {
860
+ embla.off('scroll', handleScroll);
861
+ embla.on('pointerUp', handlePointerUp);
862
+ }
863
+ };
864
+ }, [embla, handleScroll, handlePointerUp]);
865
+ return (React__namespace["default"].createElement(StyledCarousel, Object.assign({ align: "center", slideGap: "xs", dragFree: true, draggable: isMobile, slideSize: "0", getEmblaApi: setEmbla, controlsOffset: -52, previousControlIcon: React__namespace["default"].createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
866
+ React__namespace["default"].createElement("path", { d: "M6.86589 3.56104C7.03647 3.56104 7.20724 3.62732 7.33724 3.75765L7.39453 3.81494C7.6552 4.07561 7.6552 4.49765 7.39453 4.75765L4.81901 7.33317L13.5326 7.33317C13.9006 7.33317 14.1992 7.63184 14.1992 7.99984C14.1992 8.36784 13.9006 8.6665 13.5326 8.6665L4.81901 8.66651L7.39453 11.242C7.6552 11.5027 7.6552 11.9247 7.39453 12.1847L7.33724 12.242C7.07657 12.5027 6.65453 12.5027 6.39453 12.242L2.6237 8.47119C2.36303 8.21053 2.36303 7.78849 2.6237 7.52849L6.39453 3.75765C6.52487 3.62732 6.6953 3.56104 6.86589 3.56104Z", fill: "#595959" })), nextControlIcon: React__namespace["default"].createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
867
+ React__namespace["default"].createElement("path", { d: "M9.13411 12.439C8.96353 12.439 8.79276 12.3727 8.66276 12.2423L8.60547 12.1851C8.3448 11.9244 8.3448 11.5023 8.60547 11.2423L11.181 8.66683L2.46745 8.66683C2.09945 8.66683 1.80078 8.36816 1.80078 8.00016C1.80078 7.63216 2.09945 7.3335 2.46745 7.3335L11.181 7.3335L8.60547 4.75797C8.3448 4.49731 8.3448 4.07527 8.60547 3.81527L8.66276 3.75797C8.92343 3.49731 9.34547 3.49731 9.60547 3.75797L13.3763 7.52881C13.637 7.78947 13.637 8.21152 13.3763 8.47152L9.60547 12.2423C9.47513 12.3727 9.3047 12.439 9.13411 12.439Z", fill: "#595959" })) }, rest),
868
+ showHomeIcon && (React__namespace["default"].createElement(Carousel.Slide, { style: { borderRight: `1px solid ${themeColors.neutral[1]}` } },
869
+ React__namespace["default"].createElement(BreadcrumbItem, { href: homeIconHref, target: "_blank", className: "pointer-event-child-none" },
870
+ React__namespace["default"].createElement(core.Box, { sx: Object.assign({}, (!isMarryBaby && {
871
+ borderRadius: '50%',
872
+ display: 'flex',
873
+ justifyContent: 'center',
874
+ alignItems: 'center',
875
+ })), bg: !isMarryBaby && themeColors.neutral[0], p: !isMarryBaby ? 6 : 0 },
876
+ React__namespace["default"].createElement(AspectRatio, { ratio: 1, w: 18 }, isMarryBaby ? (React__namespace["default"].createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" },
877
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1183 3.67722C12.8727 2.70772 11.1281 2.708 9.88187 3.67718L14.1183 3.67722ZM14.1183 3.67722L19.718 8.03283C20.5589 8.68632 21.05 9.69173 21.05 10.7562V17.6002C21.05 19.5057 19.5055 21.0502 17.6 21.0502H6.40016C4.49466 21.0502 2.9502 19.5057 2.9502 17.6002V10.7562C2.9502 9.69163 3.44113 8.68632 4.28216 8.03283L9.88187 3.67718M10.6799 4.70339L5.08006 9.05916C4.55657 9.46592 4.2502 10.0923 4.2502 10.7562V17.6002C4.2502 18.7878 5.21263 19.7502 6.40016 19.7502H17.6C18.7875 19.7502 19.75 18.7878 19.75 17.6002V10.7562C19.75 10.0923 19.4438 9.46612 18.9204 9.05936L13.3202 4.70335C12.5443 4.09941 11.4571 4.09905 10.6799 4.70339Z", fill: "#3E3F58" }),
878
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.2373 13.1626C12.5546 12.4794 11.4466 12.4791 10.7629 13.1628C10.0793 13.8464 10.0793 14.9538 10.7629 15.6374C11.4465 16.321 12.5539 16.321 13.2375 15.6374C13.9211 14.9538 13.9211 13.8464 13.2375 13.1628L13.2373 13.1626ZM14.1567 12.2436C12.9661 11.0521 11.0348 11.0525 9.84366 12.2436C8.65237 13.4348 8.65237 15.3653 9.84366 16.5566C11.0349 17.7479 12.9654 17.7479 14.1567 16.5566C15.348 15.3653 15.348 13.4348 14.1567 12.2436Z", fill: "#3E3F58" }))) : (React__namespace["default"].createElement("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none" },
879
+ React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.58691 5.59863L8.58691 1.62305C8.83594 1.45898 9.16406 1.45898 9.41309 1.62305L15.4131 5.59863C15.624 5.73926 15.75 5.97363 15.75 6.22559V14.25C15.75 15.0791 15.0791 15.75 14.25 15.75H3.75C2.9209 15.75 2.25 15.0791 2.25 14.25V6.22559C2.25 5.97363 2.37598 5.73926 2.58691 5.59863ZM5.5017 11.7602C5.1717 11.5108 5.17316 11.0321 5.46521 10.7391C5.75775 10.4456 6.24936 10.4292 6.5986 10.6522C7.17818 11.0223 8.12516 11.4889 9.21628 11.4889C10.3074 11.4889 11.2543 11.0223 11.8339 10.6522C12.1832 10.4292 12.6748 10.4456 12.9673 10.7391C13.2594 11.0321 13.2608 11.5108 12.9308 11.7602C11.8743 12.5589 10.535 12.9889 9.21628 12.9889C7.89758 12.9889 6.55824 12.5589 5.5017 11.7602Z", fill: "#595959" })))))))),
880
+ React__namespace["default"].createElement(Carousel.Slide, null),
881
+ React__namespace["default"].createElement(Carousel.Slide, null,
882
+ React__namespace["default"].createElement(core.Breadcrumbs, { styles: {
883
+ separator: {
884
+ marginInline: 4,
885
+ },
886
+ }, separator: React__namespace["default"].createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" },
887
+ React__namespace["default"].createElement("path", { d: "M8.71527 7.99969L6.16794 5.45236C5.89194 5.17636 5.89194 4.72836 6.16794 4.45236C6.44394 4.17636 6.89194 4.17636 7.16794 4.45236L10.2439 7.52836C10.5046 7.78903 10.5046 8.21103 10.2439 8.47103L7.16794 11.547C6.89194 11.823 6.44394 11.823 6.16794 11.547C5.89194 11.271 5.89194 10.823 6.16794 10.547L8.71527 7.99969Z", fill: "#8C8C8C" })) }, children))));
888
+ };
889
+ const Breadcrumbs = _Breadcrumbs;
890
+ Breadcrumbs.Item = BreadcrumbItem;
891
+
892
+ const StyledTextArea = styled__default["default"](core.Textarea) `
893
+ .mantine-Textarea-input {
894
+ padding: 12px 16px;
895
+ background: #ffffff;
896
+ border: 1px solid ${theme.theme.colors.gray200};
897
+ border-radius: 4px;
1141
898
  }
1142
- `;
1143
- const StyledSliderWrapper = styled__default["default"].div `
1144
- display: flex;
1145
- align-items: center;
1146
- .hhg-mantine-slider {
1147
- flex-grow: 1;
899
+ `;
900
+
901
+ var useStyles$2 = core.createStyles((theme) => {
902
+ return {
903
+ root: {},
904
+ inner: {},
905
+ content: {},
906
+ header: {
907
+ borderBottom: `1px solid ${theme.colors.neutral[1]}`,
908
+ marginRight: 0,
909
+ marginBottom: 0,
910
+ padding: '12px',
911
+ },
912
+ overlay: {},
913
+ title: {
914
+ fontSize: 16,
915
+ fontWeight: 700,
916
+ lineHeight: 1.5,
917
+ },
918
+ body: {},
919
+ close: {
920
+ cursor: 'pointer',
921
+ width: 'unset',
922
+ height: 'unset',
923
+ svg: {
924
+ width: '24px !important',
925
+ height: '24px !important',
926
+ },
927
+ },
928
+ };
929
+ });
930
+
931
+ const StyledAccordion = styled__default["default"](core.Accordion) `
932
+ .mantine-Accordion-label {
933
+ padding: 0;
1148
934
  }
1149
- button {
1150
- path:not([stroke]) {
1151
- stroke: ${theme.theme.colors.primaryBase};
935
+ .mantine-Accordion-control {
936
+ &:hover {
937
+ background-color: transparent;
1152
938
  }
1153
939
  }
1154
- [data-theme='marryBaby'] & {
1155
- button {
1156
- path:not([stroke]) {
1157
- stroke: ${theme.theme.mbColors.pink};
940
+ .mantine-Accordion-item {
941
+ .mantine-Accordion-chevron {
942
+ > div {
943
+ background-repeat: no-repeat;
944
+ width: 16px;
945
+ height: 16px;
946
+ background-position: center;
947
+ background-image: url(${(props) => props.closeChevron || index$3.CommonGAssets.getAssetPath('plus-icon.svg')});
948
+ }
949
+ }
950
+ &[data-active='true'] {
951
+ .mantine-Accordion-chevron {
952
+ > div {
953
+ background-image: url(${(props) => props.openChevron || index$3.CommonGAssets.getAssetPath('minus-icon.svg')});
954
+ }
1158
955
  }
1159
956
  }
1160
957
  }
958
+ .mantine-Accordion-panel {
959
+ border-radius: ${theme.theme.borderRadius};
960
+ }
961
+ .mantine-Accordion-content {
962
+ white-space: pre-wrap;
963
+ }
1161
964
  `;
1162
965
 
1163
- const RadioWrapper = (_a) => {
1164
- var { styles, color } = _a, props = tslib_es6.__rest(_a, ["styles", "color"]);
1165
- const theme = core.useMantineTheme();
1166
- const hexColor = React.useMemo(() => {
1167
- var _a, _b;
1168
- return ((color === null || color === void 0 ? void 0 : color.includes('.'))
1169
- ? (_a = theme.colors[color.split('.')[0]]) === null || _a === void 0 ? void 0 : _a[color.split('.')[1]]
1170
- : (_b = theme.colors[color]) === null || _b === void 0 ? void 0 : _b[theme.primaryShade || 6]) ||
1171
- theme.fn.primaryColor();
1172
- }, [color]);
1173
- return (React__namespace["default"].createElement(core.Radio, Object.assign({ styles: Object.assign({ radio: {
1174
- '&:hover, &:checked': {
1175
- border: `1px solid ${hexColor}`,
1176
- },
1177
- }, icon: {
1178
- color: `${hexColor}`,
1179
- } }, styles), color: color }, props)));
966
+ const _Accordion = (_a) => {
967
+ var { children } = _a, rest = tslib_es6.__rest(_a, ["children"]);
968
+ return (React__namespace["default"].createElement(StyledAccordion, Object.assign({ chevron: React__namespace["default"].createElement("div", null), disableChevronRotation: true, transitionDuration: 300 }, rest), children));
1180
969
  };
1181
- const Radio = RadioWrapper;
1182
- Radio.Group = core.Radio.Group;
970
+ const Accordion = _Accordion;
971
+ Accordion.Control = core.Accordion.Control;
972
+ Accordion.Item = core.Accordion.Item;
973
+ Accordion.Panel = core.Accordion.Panel;
1183
974
 
1184
- function transferValueToOtp(value, valueLength = 6) {
1185
- const otp = new Array(valueLength).fill('');
1186
- if (value) {
1187
- const arr = value.toString().split('');
1188
- otp.map((_, index) => {
1189
- if (arr[index]) {
1190
- otp[index] = arr[index] || '';
1191
- }
1192
- });
1193
- }
1194
- return otp;
1195
- }
1196
- function transferOtpToValue(otp) {
1197
- return otp.join('');
1198
- }
975
+ const DEFAULT_AVATAR = index$3.CommonGAssets.getAssetPath('avatar.jpg');
976
+ const Avatar = (_a) => {
977
+ var { withIndicator = false, indicatorConfig = null, size = 56, children, styles, placeholderText } = _a, // usually first letter of name
978
+ avatarProps = tslib_es6.__rest(_a, ["withIndicator", "indicatorConfig", "size", "children", "styles", "placeholderText"]);
979
+ const generateAvatar = () => {
980
+ return (React__namespace["default"].createElement(core.Avatar, Object.assign({ size: size, radius: "xl" }, avatarProps, { imageProps: Object.assign({ loading: 'lazy' }, avatarProps.imageProps), styles: {
981
+ placeholder: {
982
+ backgroundColor: avatarProps.color,
983
+ color: 'white',
984
+ },
985
+ } }), children ? (children) : placeholderText ? (placeholderText) : (React__namespace["default"].createElement(ImageWrap, { src: DEFAULT_AVATAR, width: size, alt: avatarProps.alt || 'avatar' }))));
986
+ };
987
+ if (withIndicator)
988
+ return (React__namespace["default"].createElement(core.Indicator, Object.assign({ inline: true, position: "bottom-end", offset: 9 }, indicatorConfig, { styles: Object.assign({ indicator: {
989
+ backgroundColor: React__namespace["default"].isValidElement(indicatorConfig.label) && 'transparent',
990
+ zIndex: 1,
991
+ } }, styles) }), generateAvatar()));
992
+ return generateAvatar();
993
+ };
1199
994
 
1200
- var styles$2 = {"otpContainer":"_2iQs0sk","otpInput":"Ia6IojY","error":"yJs9MaD"};
995
+ const FileInput = (props) => {
996
+ return React__namespace["default"].createElement(core.FileInput, Object.assign({ size: "md" }, props));
997
+ };
1201
998
 
1202
- const BACKSPACE = 8;
1203
- const LEFT_ARROW = 37;
1204
- const RIGHT_ARROW = 39;
1205
- const DELETE = 46;
1206
- const SPACEBAR = 32;
1207
- const OTPInputFunction = (props, ref) => {
1208
- const { maxLength = 1, placeholder, className } = props, restProps = tslib_es6.__rest(props, ["maxLength", "placeholder", "className"]);
1209
- return (React__namespace["default"].createElement("input", Object.assign({ maxLength: maxLength, className: cn__default["default"](styles$2.otpInput, 'otpInput', className), placeholder: placeholder, type: "number" }, restProps, { ref: ref })));
1210
- };
1211
- const OTPInput = React.forwardRef(OTPInputFunction);
1212
- const OTPFowardRef = (props, ref) => {
1213
- const { valueLength = 6, type = 'number', value: valueProps, defaultValue, placeholder, onChange, onBlur, } = props;
1214
- const inputRef = React.useRef(new Array(valueLength).fill(null));
1215
- const [value, setValue] = React.useState(defaultValue || valueProps);
1216
- const [activeOtp, setActiveOtp] = React.useState(-1);
1217
- const [otp, setOtp] = React.useState(() => transferValueToOtp(value, valueLength));
1218
- const changeCodeAtFocus = React.useCallback(() => {
1219
- if (activeOtp === -1) {
1220
- return;
1221
- }
1222
- const activeInput = inputRef.current[activeOtp];
1223
- if (activeInput) {
1224
- activeInput.value = '';
1225
- const newOtp = otp;
1226
- newOtp[activeOtp] = '';
1227
- setOtp(newOtp);
1228
- setValue(() => transferOtpToValue(newOtp));
1229
- onChange === null || onChange === void 0 ? void 0 : onChange(transferOtpToValue(newOtp));
1230
- }
1231
- }, [activeOtp, onChange, otp]);
1232
- const focusPrevInput = React.useCallback(() => {
1233
- if (activeOtp === 0) {
1234
- return;
1235
- }
1236
- const curInput = inputRef.current[activeOtp];
1237
- if (curInput) {
1238
- curInput.blur();
1239
- }
1240
- const prevInput = inputRef.current[activeOtp - 1];
1241
- if (prevInput) {
1242
- prevInput.focus();
1243
- }
1244
- }, [activeOtp]);
1245
- const focusNextInput = React.useCallback(() => {
1246
- if (activeOtp === valueLength - 1) {
1247
- return;
1248
- }
1249
- const curInput = inputRef.current[activeOtp];
1250
- if (curInput) {
1251
- curInput.blur();
1252
- }
1253
- const nextInput = inputRef.current[activeOtp + 1];
1254
- if (nextInput) {
1255
- nextInput.focus();
1256
- }
1257
- }, [activeOtp, valueLength]);
1258
- const inputOnChange = React.useCallback((e) => {
1259
- const target = e.target;
1260
- const targetValue = target.value;
1261
- const code = targetValue.toString().slice(0, 1);
1262
- const indexTarget = inputRef.current.findIndex((input) => input === target);
1263
- if (indexTarget !== -1) {
1264
- const newOtp = otp;
1265
- newOtp[indexTarget] = code;
1266
- setOtp(newOtp);
1267
- setValue(() => transferOtpToValue(newOtp));
1268
- onChange === null || onChange === void 0 ? void 0 : onChange(transferOtpToValue(newOtp));
1269
- }
1270
- focusNextInput();
1271
- }, [focusNextInput, onChange, otp]);
1272
- const inputOnFocus = React.useCallback((e) => {
1273
- const target = e.target;
1274
- const targetIndex = inputRef.current.findIndex((input) => input === target);
1275
- if (type === 'number') {
1276
- target.select();
1277
- }
1278
- else {
1279
- target.setSelectionRange(0, target.value.length, 'backward');
1280
- }
1281
- if (targetIndex !== -1) {
1282
- setActiveOtp(targetIndex);
1283
- }
1284
- }, []);
1285
- const inputOnPaste = React.useCallback((e) => {
1286
- const clipboard = e.clipboardData.getData('text/plain');
1287
- const newOtp = transferValueToOtp(clipboard, valueLength);
1288
- const newValue = transferOtpToValue(newOtp);
1289
- setOtp(newOtp);
1290
- setValue(newValue);
1291
- onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
1292
- }, [onChange, type, valueLength]);
1293
- // Handle cases of backspace, delete, left arrow, right arrow, space
1294
- const inputOnKeyDown = React.useCallback((e) => {
1295
- if (e.keyCode === BACKSPACE || e.key === 'Backspace') {
1296
- e.preventDefault();
1297
- changeCodeAtFocus();
1298
- focusPrevInput();
1299
- }
1300
- else if (e.keyCode === DELETE || e.key === 'Delete') {
1301
- e.preventDefault();
1302
- changeCodeAtFocus();
1303
- }
1304
- else if (e.keyCode === LEFT_ARROW || e.key === 'ArrowLeft') {
1305
- e.preventDefault();
1306
- focusPrevInput();
1307
- }
1308
- else if (e.keyCode === RIGHT_ARROW || e.key === 'ArrowRight') {
1309
- e.preventDefault();
1310
- focusNextInput();
1311
- }
1312
- else if (e.keyCode === SPACEBAR ||
1313
- e.key === ' ' ||
1314
- e.key === 'Spacebar' ||
1315
- e.key === 'Space') {
1316
- e.preventDefault();
1317
- }
1318
- }, [changeCodeAtFocus, focusNextInput, focusPrevInput]);
1319
- React.useImperativeHandle(ref, () => inputRef.current[0], []);
1320
- React.useEffect(() => {
1321
- setOtp(() => transferValueToOtp(valueProps, valueLength));
1322
- setValue(valueProps);
1323
- }, [valueLength, valueProps]);
1324
- return (React__namespace["default"].createElement(core.Flex, { justify: "center", columnGap: 8, className: cn__default["default"](styles$2.otpContainer, 'otpContainer') }, otp.map((val, index) => {
1325
- return (React__namespace["default"].createElement(OTPInput, { ref: (iRef) => {
1326
- inputRef.current[index] = iRef;
1327
- }, key: '' + index, value: val, type: type, onChange: inputOnChange, onFocus: inputOnFocus, onKeyDown: inputOnKeyDown, onPaste: inputOnPaste, onBlur: onBlur, placeholder: placeholder }));
1328
- })));
1329
- };
1330
- const OTP = React.forwardRef(OTPFowardRef);
1331
-
1332
- const CambodiaRoundIcon = (props) => (React__namespace["default"].createElement(ImageWrap, Object.assign({ alt: "round cambodia flag", src: index$2.CommonGAssets.getAssetPath('flags/cambodiaRound.png'), style: Object.assign({ borderRadius: '50%' }, props.style) }, props)));
1333
- const CambodiaSquareIcon = (props) => (React__namespace["default"].createElement(ImageWrap, Object.assign({ alt: "square cambodia flag", src: index$2.CommonGAssets.getAssetPath('flags/cambodiaSquare.png') }, props)));
1334
-
1335
- const EnglishRoundIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
1336
- React__namespace["default"].createElement("g", null,
1337
- React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1338
- React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1339
- React__namespace["default"].createElement("path", { d: "M7.49953 0.327881C5.47199 0.850891 3.69346 1.98591 2.37793 3.53444L7.49953 6.6655V0.327881Z", fill: "#3F51B5" }),
1340
- React__namespace["default"].createElement("path", { d: "M2.30273 16.3824C3.62476 17.9749 5.4353 19.1399 7.50034 19.6729V13.2053L2.30273 16.3824Z", fill: "#3F51B5" }),
1341
- React__namespace["default"].createElement("path", { d: "M0.328125 12.5C0.334625 12.526 0.341125 12.5515 0.348125 12.5775L0.474128 12.5H0.328125Z", fill: "white" }),
1342
- React__namespace["default"].createElement("path", { d: "M17.7871 3.73445C16.4571 2.08391 14.6131 0.872891 12.499 0.327881V6.96651L17.7871 3.73445Z", fill: "#3F51B5" }),
1343
- React__namespace["default"].createElement("path", { d: "M12.499 19.6722C14.6506 19.1172 16.5196 17.8707 17.8546 16.1752L12.499 12.9021V19.6722Z", fill: "#3F51B5" }),
1344
- React__namespace["default"].createElement("path", { d: "M0.376626 7.31055C0.359125 7.37305 0.344125 7.43705 0.328125 7.50005H0.686632L0.376626 7.31055Z", fill: "white" }),
1345
- React__namespace["default"].createElement("path", { d: "M19.8745 8.50006C19.827 8.18506 19.7655 7.87555 19.6895 7.57104L18.1699 8.50006H19.8745Z", fill: "white" }),
1346
- React__namespace["default"].createElement("path", { d: "M0.686034 7.50024H0.327527C0.243026 7.82775 0.175524 8.16076 0.124023 8.50026H2.32207L0.686034 7.50024Z", fill: "white" }),
1347
- React__namespace["default"].createElement("path", { d: "M19.7197 12.3148C19.7832 12.0473 19.8337 11.7752 19.8752 11.5002H18.3867L19.7197 12.3148Z", fill: "white" }),
1348
- React__namespace["default"].createElement("path", { d: "M2.10956 11.5002H0.124023C0.175024 11.8398 0.243026 12.1728 0.327527 12.5003H0.47403L2.10956 11.5002Z", fill: "white" }),
1349
- React__namespace["default"].createElement("path", { d: "M8.50002 7.27665V0.124512C8.16051 0.175513 7.82751 0.243514 7.5 0.328016V6.66564L8.50002 7.27665Z", fill: "white" }),
1350
- React__namespace["default"].createElement("path", { d: "M11.5 12.2913V19.8759C11.8395 19.8249 12.1725 19.7569 12.5 19.6724V12.9023L11.5 12.2913Z", fill: "white" }),
1351
- React__namespace["default"].createElement("path", { d: "M7.5 13.205V19.6721C7.82751 19.7566 8.16051 19.8241 8.50002 19.8756V12.594L7.5 13.205Z", fill: "white" }),
1352
- React__namespace["default"].createElement("path", { d: "M11.5925 7.34715L11.7345 7.43415L12.5 6.96614V0.328016C12.1725 0.243514 11.8395 0.176013 11.5 0.124512V7.49865L11.5925 7.34715Z", fill: "white" }),
1353
- React__namespace["default"].createElement("path", { d: "M2.32251 8.50002H7.01761L8.50014 7.594V7.277L7.50011 6.66548L2.37852 3.53442C1.95151 4.03743 1.572 4.58144 1.24949 5.16296L5.02507 7.5H2.29701L0.650482 6.47648C0.54748 6.74949 0.455478 7.02699 0.375977 7.3105L0.686483 7.5L2.32251 8.50002Z", fill: "white" }),
1354
- React__namespace["default"].createElement("path", { d: "M11.7344 7.43419L13.4784 8.50021H18.171L19.6905 7.57119C19.528 6.92118 19.303 6.29767 19.02 5.70516L16.139 7.50019H13.4109L18.317 4.45013C18.1515 4.20313 17.9735 3.96562 17.7875 3.73462L12.4999 6.96618L11.7344 7.43419Z", fill: "white" }),
1355
- React__namespace["default"].createElement("path", { d: "M5.02448 7.50013L1.2494 5.16309C1.0169 5.58259 0.821394 6.0231 0.650391 6.47661L2.29642 7.50013H5.02448Z", fill: "#E53935" }),
1356
- React__namespace["default"].createElement("path", { d: "M16.1392 7.50024L19.0207 5.70521C18.8132 5.2702 18.5837 4.84819 18.3177 4.45068L13.4111 7.50024H16.1392Z", fill: "#E53935" }),
1357
- React__namespace["default"].createElement("path", { d: "M11.5 11.5002V12.2913L12.5 12.9023L17.8556 16.1758C18.2416 15.6853 18.5836 15.1593 18.8736 14.6008L15.4856 12.5003H18.2136L19.4432 13.2673C19.5507 12.9563 19.6432 12.6393 19.7197 12.3153L18.3871 11.5002H11.5Z", fill: "white" }),
1358
- React__namespace["default"].createElement("path", { d: "M13.4785 8.50019L11.7345 7.43417L11.5925 7.34717L11.5 7.49867V8.50019H13.4785Z", fill: "white" }),
1359
- React__namespace["default"].createElement("path", { d: "M8.49934 12.5943V11.5002H2.10921L0.473182 12.5003L0.34668 12.5778C0.522683 13.2383 0.762688 13.8713 1.06319 14.4708L4.16375 12.5003H6.89181L1.80071 15.7168C1.95971 15.9448 2.12471 16.1688 2.30172 16.3823L7.49932 13.2053L8.49934 12.5943Z", fill: "white" }),
1360
- React__namespace["default"].createElement("path", { d: "M7.01758 8.50026H8.50011V7.59424L7.01758 8.50026Z", fill: "white" }),
1361
- React__namespace["default"].createElement("path", { d: "M15.4854 12.5L18.8729 14.6C19.0949 14.173 19.2834 13.727 19.4429 13.2665L18.2134 12.5H15.4854Z", fill: "#E53935" }),
1362
- React__namespace["default"].createElement("path", { d: "M4.16501 12.5L1.06445 14.4705C1.28196 14.9045 1.52596 15.3216 1.80197 15.7166L6.89307 12.5H4.16501Z", fill: "#E53935" }),
1363
- React__namespace["default"].createElement("path", { d: "M13.4785 8.5H11.5V11.5001H18.3871H19.8757C19.9497 11.0095 20.0002 10.511 20.0002 10C20.0002 9.48902 19.9497 8.99051 19.8757 8.5H18.1711H13.4785Z", fill: "#E53935" }),
1364
- React__namespace["default"].createElement("path", { d: "M8.50017 11.5001V8.5H7.01764H2.32255H0.124502C0.050501 8.99051 0 9.48902 0 10C0 10.511 0.050501 11.0095 0.124502 11.5001H2.11004H8.50017Z", fill: "#E53935" }),
1365
- React__namespace["default"].createElement("path", { d: "M11.5001 19.8759V12.2912V11.5002V8.50016V7.49865V0.124502C11.0095 0.050501 10.511 0 10 0C9.48902 0 8.99051 0.050501 8.5 0.124502V7.27664V7.59365V8.50016V11.5002V12.5942V19.8759C8.99051 19.9499 9.48902 20.0004 10 20.0004C10.511 20.0004 11.0095 19.9499 11.5001 19.8759Z", fill: "#E53935" }))));
1366
- const EnglishSquareIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 26 26", fill: "none" }, props),
1367
- React__namespace["default"].createElement("g", null,
1368
- React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "1", y: "5", width: "24", height: "16" },
1369
- React__namespace["default"].createElement("path", { d: "M1.08301 7.41675C1.08301 6.31218 1.97844 5.41675 3.08301 5.41675H22.9163C24.0209 5.41675 24.9163 6.31218 24.9163 7.41675V18.5834C24.9163 19.688 24.0209 20.5834 22.9163 20.5834H3.08301C1.97844 20.5834 1.08301 19.688 1.08301 18.5834V7.41675Z", fill: "#3F51B5" })),
1370
- React__namespace["default"].createElement("path", { d: "M1.08301 5.41675H24.9163V20.5834H1.08301V5.41675Z", fill: "#3F51B5" }),
1371
- React__namespace["default"].createElement("path", { d: "M1.08301 7.70041L12.3551 14.5899L14.05 11.8165L3.57901 5.41675H1.08301V7.70041Z", fill: "white" }),
1372
- React__namespace["default"].createElement("path", { d: "M24.9165 5.41675H22.9616L12.4912 11.816L14.1855 14.5899L24.9165 8.03083V5.41675Z", fill: "white" }),
1373
- React__namespace["default"].createElement("path", { d: "M14.1855 10.9802L12.4912 13.7536L23.6658 20.5834H24.9165V17.5387L14.1855 10.9802Z", fill: "white" }),
1374
- React__namespace["default"].createElement("path", { d: "M1.08301 17.8702V20.5834H2.87592L14.05 13.7541L12.3556 10.9802L1.08301 17.8702Z", fill: "white" }),
1375
- React__namespace["default"].createElement("path", { d: "M1.08301 10.8333H24.9163V15.1666H1.08301V10.8333Z", fill: "white" }),
1376
- React__namespace["default"].createElement("path", { d: "M10.833 5.41675H15.1663V20.5834H10.833V5.41675Z", fill: "white" }),
1377
- React__namespace["default"].createElement("path", { d: "M9.32609 10.8334L1.08301 5.79537V7.06504L7.24826 10.8334H9.32609ZM24.0004 5.41675L15.1376 10.8334H17.2149L24.9163 6.12687V5.41675H24.0004ZM17.9191 15.1667L24.9163 19.4432V18.1735L19.9964 15.1667H17.9191ZM8.62192 15.1667L1.08301 19.7742V20.5834H1.83701L10.6992 15.1667H8.62192ZM1.08301 11.9167H24.9163V14.0834H1.08301V11.9167Z", fill: "#E53935" }),
1378
- React__namespace["default"].createElement("path", { d: "M11.917 5.41675H14.0837V20.5834H11.917V5.41675Z", fill: "#E53935" }))));
1379
-
1380
- const IndiaRoundIcon = (props) => (React__namespace["default"].createElement(ImageWrap, Object.assign({ alt: "round india flag", src: index$2.CommonGAssets.getAssetPath('flags/indiaRound.png'), style: Object.assign({ borderRadius: '50%' }, props.style) }, props)));
1381
- const IndiaSquareIcon = (props) => (React__namespace["default"].createElement(ImageWrap, Object.assign({ alt: "square indian flag", src: index$2.CommonGAssets.getAssetPath('flags/indiaSquare.png') }, props)));
999
+ const DEBOUNCED_TIME = 300;
1000
+ const emotionCache = core.createEmotionCache({
1001
+ key: 'mantine',
1002
+ prepend: false,
1003
+ });
1382
1004
 
1383
- const IndonesiaRoundIcon = (_a) => {
1384
- var rest = tslib_es6.__rest(_a, []);
1385
- const maskId = useUniqueId.useUniqueId();
1386
- return (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none" }, rest),
1387
- React__namespace["default"].createElement("mask", { id: maskId, style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1388
- React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1389
- React__namespace["default"].createElement("g", { mask: `url(#${maskId})` },
1390
- React__namespace["default"].createElement("rect", { width: "20", height: "10", fill: "#CE1126" }),
1391
- React__namespace["default"].createElement("rect", { y: "10", width: "20", height: "10", fill: "white" }))));
1392
- };
1393
- const IndonesiaSquareIcon = (_a) => {
1394
- var rest = tslib_es6.__rest(_a, []);
1395
- const clipPathId = useUniqueId.useUniqueId();
1396
- return (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, rest),
1397
- React__namespace["default"].createElement("g", { clipPath: `url(#${clipPathId})` },
1398
- React__namespace["default"].createElement("rect", { y: "0.0166016", width: "24", height: "8", fill: "#CE1126" }),
1399
- React__namespace["default"].createElement("rect", { y: "8.0166", width: "24", height: "8", fill: "white" })),
1400
- React__namespace["default"].createElement("defs", null,
1401
- React__namespace["default"].createElement("clipPath", { id: clipPathId },
1402
- React__namespace["default"].createElement("rect", { width: "24", height: "16", rx: "2", fill: "white" })))));
1005
+ const NumberInput = (_a) => {
1006
+ var { value: _value, onChange: _onChange } = _a, props = tslib_es6.__rest(_a, ["value", "onChange"]);
1007
+ const [value, setValue] = React.useState(_value);
1008
+ const [debounced] = hooks.useDebouncedValue(value, DEBOUNCED_TIME);
1009
+ React.useEffect(() => {
1010
+ _onChange === null || _onChange === void 0 ? void 0 : _onChange(debounced);
1011
+ }, [debounced]);
1012
+ React.useEffect(() => {
1013
+ setValue(_value);
1014
+ }, [_value]);
1015
+ return (React__namespace["default"].createElement(core.NumberInput, Object.assign({ size: "md", stepHoldDelay: 500, stepHoldInterval: (t) => Math.max(1000 / Math.pow(t, 2), 25), onChange: setValue, hideControls: true, min: 0, formatter: (value) => {
1016
+ if (Number(value) === 0)
1017
+ return value;
1018
+ return value || '';
1019
+ }, removeTrailingZeros: true, value: value }, props)));
1403
1020
  };
1404
1021
 
1405
- const MalaysiaRoundIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
1406
- React__namespace["default"].createElement("g", null,
1407
- React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1408
- React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1409
- React__namespace["default"].createElement("rect", { y: "1", width: "20", height: "20", fill: "#CC0001" }),
1410
- React__namespace["default"].createElement("rect", { y: "16.106", width: "20", height: "1.02041", fill: "white" }),
1411
- React__namespace["default"].createElement("rect", { y: "16", width: "20", height: "1.02041", fill: "white" }),
1412
- React__namespace["default"].createElement("rect", { y: "18", width: "20", height: "1.02041", fill: "white" }),
1413
- React__namespace["default"].createElement("rect", { y: "14.0652", width: "20", height: "1.02041", fill: "white" }),
1414
- React__namespace["default"].createElement("rect", { y: "12.0242", width: "20", height: "1.02041", fill: "white" }),
1415
- React__namespace["default"].createElement("rect", { y: "9.9834", width: "20", height: "1.02041", fill: "white" }),
1416
- React__namespace["default"].createElement("rect", { y: "7.94263", width: "20", height: "1.02041", fill: "white" }),
1417
- React__namespace["default"].createElement("rect", { y: "5.90186", width: "20", height: "1.02041", fill: "white" }),
1418
- React__namespace["default"].createElement("rect", { y: "3.86084", width: "20", height: "1.02041", fill: "white" }),
1419
- React__namespace["default"].createElement("rect", { y: "2", width: "20", height: "1.02041", fill: "white" }),
1420
- React__namespace["default"].createElement("rect", { width: "20", height: "1.02041", fill: "white" }),
1421
- React__namespace["default"].createElement("rect", { y: "-1", width: "10", height: "12", fill: "#010066" }),
1422
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.11387 3.86084C2.92711 3.86084 1.96387 5.23232 1.96387 6.92206C1.96387 8.6118 2.92711 9.98329 4.11387 9.98329C4.54263 9.98329 4.94211 9.80406 5.27763 9.4957C5.08225 9.59203 4.87256 9.64471 4.65427 9.64471C3.60193 9.64471 2.74786 8.42866 2.74786 6.93032C2.74786 5.43198 3.60193 4.21594 4.65427 4.21594C4.88682 4.21594 5.10959 4.27527 5.31571 4.38397C4.97256 4.0538 4.5589 3.86084 4.11387 3.86084Z", fill: "#FFCC00" }),
1423
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.67935 8.51573L6.7737 7.8407L7.04147 9.22221L6.43573 8.06657L6.24676 9.47313L6.0609 8.06576L5.4526 9.2188L5.72343 7.83844L4.81629 8.50957L5.49017 7.42963L4.46387 7.48593L5.40732 6.9203L4.46512 6.35062L5.4913 6.41133L4.81981 5.3285L5.72546 6.00353L5.45769 4.62202L6.06343 5.77766L6.25241 4.37109L6.43827 5.77847L7.04656 4.62543L6.77574 6.00579L7.68287 5.33466L7.00899 6.4146L8.0353 6.3583L7.09184 6.92392L8.03404 7.49361L7.00786 7.43289L7.67935 8.51573Z", fill: "#FFCC00" }))));
1424
- const MalaysiaSquareIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
1425
- React__namespace["default"].createElement("rect", { width: "24", height: "16", rx: "2", fill: "#CC0001" }),
1426
- React__namespace["default"].createElement("rect", { y: "12.2712", width: "24", height: "0.777454", fill: "white" }),
1427
- React__namespace["default"].createElement("rect", { y: "12.1904", width: "24", height: "0.777454", fill: "white" }),
1428
- React__namespace["default"].createElement("rect", { y: "13.7144", width: "24", height: "0.777454", fill: "white" }),
1429
- React__namespace["default"].createElement("rect", { y: "10.7161", width: "24", height: "0.777454", fill: "white" }),
1430
- React__namespace["default"].createElement("rect", { y: "9.16138", width: "24", height: "0.777454", fill: "white" }),
1431
- React__namespace["default"].createElement("rect", { y: "7.60645", width: "24", height: "0.777454", fill: "white" }),
1432
- React__namespace["default"].createElement("rect", { y: "6.05127", width: "24", height: "0.777454", fill: "white" }),
1433
- React__namespace["default"].createElement("rect", { y: "4.49658", width: "24", height: "0.777454", fill: "white" }),
1434
- React__namespace["default"].createElement("rect", { y: "2.94141", width: "24", height: "0.777454", fill: "white" }),
1435
- React__namespace["default"].createElement("rect", { y: "1.52393", width: "24", height: "0.777454", fill: "white" }),
1436
- React__namespace["default"].createElement("rect", { width: "24", height: "0.777454", fill: "white" }),
1437
- React__namespace["default"].createElement("path", { d: "M0 2C0 0.895431 0.895431 0 2 0H12V8.38095H0V2Z", fill: "#010066" }),
1438
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.93644 1.52393C3.51233 1.52393 2.35645 2.56887 2.35645 3.85629C2.35645 5.14371 3.51233 6.18865 4.93644 6.18865C5.45096 6.18865 5.93034 6.05209 6.33296 5.81716C6.09851 5.89054 5.84688 5.93068 5.58492 5.93068C4.32212 5.93068 3.29724 5.00417 3.29724 3.86258C3.29724 2.72099 4.32212 1.79448 5.58492 1.79448C5.86399 1.79448 6.13132 1.83968 6.37865 1.9225C5.96688 1.67094 5.47049 1.52393 4.93644 1.52393Z", fill: "#FFCC00" }),
1439
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.216 5.07041L8.12923 4.55611L8.45055 5.60869L7.72366 4.72819L7.49689 5.79987L7.27386 4.72758L6.5439 5.60609L6.86889 4.55439L5.78033 5.06572L6.58899 4.24291L5.35742 4.28581L6.48957 3.85485L5.35893 3.42081L6.59034 3.46707L5.78456 2.64205L6.87133 3.15636L6.55001 2.10378L7.2769 2.98427L7.50367 1.9126L7.7267 2.98488L8.45666 2.10638L8.13166 3.15808L9.22022 2.64674L8.41157 3.46955L9.64314 3.42666L8.51099 3.85761L9.64163 4.29165L8.41022 4.2454L9.216 5.07041Z", fill: "#FFCC00" })));
1022
+ const EyeVisible = index$3.CommonGAssets.getAssetPath('EyeVisible.svg');
1023
+ const EyeHidden = index$3.CommonGAssets.getAssetPath('EyeHidden.svg');
1024
+ const PasswordInput = React.forwardRef((props, ref) => {
1025
+ const { size = 'md', visibilityToggleIcon: visibilityToggleIconProps } = props, restProps = tslib_es6.__rest(props, ["size", "visibilityToggleIcon"]);
1026
+ const visibilityToggleIcon = visibilityToggleIconProps ||
1027
+ (({ reveal, size }) => reveal ? (React__namespace["default"].createElement("img", { src: EyeVisible, width: size, loading: "lazy" })) : (React__namespace["default"].createElement("img", { src: EyeHidden, width: size, loading: "lazy" })));
1028
+ return (React__namespace["default"].createElement(core.PasswordInput, Object.assign({ ref: ref, size: size, visibilityToggleIcon: visibilityToggleIcon }, restProps, { className: `input-control ${(restProps === null || restProps === void 0 ? void 0 : restProps.className) || ''}` })));
1029
+ });
1440
1030
 
1441
- const MyanmarRoundIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
1442
- React__namespace["default"].createElement("g", null,
1443
- React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1444
- React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1445
- React__namespace["default"].createElement("rect", { x: "-4", y: "-1", width: "28", height: "11", fill: "#FECB00" }),
1446
- React__namespace["default"].createElement("rect", { x: "-4", y: "10", width: "28", height: "10", fill: "#EA2839" }),
1447
- React__namespace["default"].createElement("rect", { x: "-4", y: "6.7041", width: "28", height: "6.47773", fill: "#34B233" }),
1448
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.56543 10.3272L10.1796 5.15527L11.7938 10.3272H8.56543Z", fill: "white" }),
1449
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.5292 11.2775L7.18336 14.5129L8.91745 9.37991L11.5292 11.2775Z", fill: "white" }),
1450
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.75181 11.8648L5.33182 8.73143L10.7494 8.79447L9.75181 11.8648Z", fill: "white" }),
1451
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.6105 8.78962L15.0281 8.72658L10.6081 11.86L9.6105 8.78962Z", fill: "white" }),
1452
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.4424 9.37686L13.1765 14.5098L8.83064 11.2744L11.4424 9.37686Z", fill: "white" }))));
1453
- const MyanmarSquareIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
1454
- React__namespace["default"].createElement("rect", { width: "24", height: "16", rx: "2", fill: "#FECB00" }),
1455
- React__namespace["default"].createElement("rect", { y: "8.3811", width: "24", height: "7.61905", rx: "2", fill: "#EA2839" }),
1456
- React__namespace["default"].createElement("rect", { y: "5.86987", width: "24", height: "4.93542", fill: "#34B233" }),
1457
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.7705 8.63046L12.1541 4.68994L13.5377 8.63046H10.7705Z", fill: "white" }),
1458
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.3108 9.35502L9.58574 11.8201L11.0721 7.90925L13.3108 9.35502Z", fill: "white" }),
1459
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.7874 9.80216L7.99884 7.41482L12.6425 7.46285L11.7874 9.80216Z", fill: "white" }),
1460
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.6667 7.4589L16.3104 7.41087L12.5218 9.79821L11.6667 7.4589Z", fill: "white" }),
1461
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.2361 7.90629L14.7225 11.8171L10.9974 9.35207L13.2361 7.90629Z", fill: "white" })));
1031
+ const InputWrapper = React.forwardRef((_a, ref) => {
1032
+ var { value: _value, onChange: _onChange, onChangeRaw, maxLength } = _a, props = tslib_es6.__rest(_a, ["value", "onChange", "onChangeRaw", "maxLength"]);
1033
+ const [value, setValue] = React.useState(_value || '');
1034
+ const [debounced] = hooks.useDebouncedValue(value, DEBOUNCED_TIME);
1035
+ React.useEffect(() => {
1036
+ _onChange === null || _onChange === void 0 ? void 0 : _onChange(debounced);
1037
+ }, [debounced]);
1038
+ React.useEffect(() => {
1039
+ setValue(_value);
1040
+ }, [_value]);
1041
+ return (React__namespace["default"].createElement(core.TextInput, Object.assign({ ref: ref, size: "md", onChange: (event) => {
1042
+ if (typeof maxLength === 'number' &&
1043
+ event.currentTarget.value.length > maxLength) {
1044
+ return;
1045
+ }
1046
+ onChangeRaw === null || onChangeRaw === void 0 ? void 0 : onChangeRaw(event);
1047
+ setValue(event.currentTarget.value);
1048
+ }, value: value }, props, { maxLength: maxLength, className: `input-control ${(props === null || props === void 0 ? void 0 : props.className) || ''}` })));
1049
+ });
1050
+ const Input = InputWrapper;
1051
+ Input.File = FileInput;
1052
+ Input.Password = PasswordInput;
1053
+ Input.Number = NumberInput;
1054
+ Input.Wrapper = core.Input.Wrapper;
1462
1055
 
1463
- const PhilippinesRoundIcon = (props) => (React__namespace["default"].createElement(ImageWrap, Object.assign({ alt: "round philippines flag", src: index$2.CommonGAssets.getAssetPath('flags/philippineRound.png'), style: Object.assign({ borderRadius: '50%' }, props.style) }, props)));
1464
- const PhilippinesSquareIcon = (props) => (React__namespace["default"].createElement(ImageWrap, Object.assign({ alt: "square philippines flag", src: index$2.CommonGAssets.getAssetPath('flags/philippineSquare.png') }, props)));
1056
+ const StyledSlide = carousel.Carousel.Slide;
1465
1057
 
1466
- const TaiwanRoundIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
1467
- React__namespace["default"].createElement("g", null,
1468
- React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1469
- React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1470
- React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#D8D8D8" }),
1471
- React__namespace["default"].createElement("g", null,
1472
- React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1473
- React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "white" })),
1474
- React__namespace["default"].createElement("rect", { width: "30", height: "20", fill: "#ED1E24" }),
1475
- React__namespace["default"].createElement("rect", { width: "15", height: "10", fill: "#2B2F84" }),
1476
- React__namespace["default"].createElement("circle", { cx: "7.49791", cy: "4.99913", r: "1.869", fill: "white" }),
1477
- React__namespace["default"].createElement("path", { d: "M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z", fill: "white" }),
1478
- React__namespace["default"].createElement("path", { d: "M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z", fill: "white" }),
1479
- React__namespace["default"].createElement("path", { d: "M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z", fill: "white" }),
1480
- React__namespace["default"].createElement("path", { d: "M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z", fill: "white" }),
1481
- React__namespace["default"].createElement("path", { d: "M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z", fill: "white" }),
1482
- React__namespace["default"].createElement("path", { d: "M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z", fill: "white" }),
1483
- React__namespace["default"].createElement("path", { d: "M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z", fill: "white" }),
1484
- React__namespace["default"].createElement("path", { d: "M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z", fill: "white" }),
1485
- React__namespace["default"].createElement("path", { d: "M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z", fill: "white" }),
1486
- React__namespace["default"].createElement("path", { d: "M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z", fill: "white" }),
1487
- React__namespace["default"].createElement("path", { d: "M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z", fill: "white" }),
1488
- React__namespace["default"].createElement("path", { d: "M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z", fill: "white" })))));
1489
- const TaiwanSquareIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
1490
- React__namespace["default"].createElement("rect", { width: "24", height: "16", rx: "2", fill: "#ED1E24" }),
1491
- React__namespace["default"].createElement("path", { d: "M0 2C0 0.89543 0.895431 0 2 0H15V10H0V2Z", fill: "#2B2F84" }),
1492
- React__namespace["default"].createElement("circle", { cx: "7.49791", cy: "4.99913", r: "1.869", fill: "white" }),
1493
- React__namespace["default"].createElement("path", { d: "M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z", fill: "white" }),
1494
- React__namespace["default"].createElement("path", { d: "M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z", fill: "white" }),
1495
- React__namespace["default"].createElement("path", { d: "M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z", fill: "white" }),
1496
- React__namespace["default"].createElement("path", { d: "M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z", fill: "white" }),
1497
- React__namespace["default"].createElement("path", { d: "M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z", fill: "white" }),
1498
- React__namespace["default"].createElement("path", { d: "M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z", fill: "white" }),
1499
- React__namespace["default"].createElement("path", { d: "M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z", fill: "white" }),
1500
- React__namespace["default"].createElement("path", { d: "M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z", fill: "white" }),
1501
- React__namespace["default"].createElement("path", { d: "M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z", fill: "white" }),
1502
- React__namespace["default"].createElement("path", { d: "M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z", fill: "white" }),
1503
- React__namespace["default"].createElement("path", { d: "M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z", fill: "white" }),
1504
- React__namespace["default"].createElement("path", { d: "M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z", fill: "white" })));
1058
+ const SlideContext = React.createContext({});
1059
+ const CustomSlide = (_a) => {
1060
+ var { children, onClick, innerSlideProps } = _a, rest = tslib_es6.__rest(_a, ["children", "onClick", "innerSlideProps"]);
1061
+ const { slider, selectSlideWhenClick } = React.useContext(SlideContext);
1062
+ const ref = React.useRef();
1063
+ const key = React.useRef('');
1064
+ const [index, setIndex] = React.useState(0);
1065
+ React.useEffect(() => {
1066
+ key.current = String(Math.round(Math.random() * 10000));
1067
+ }, []);
1068
+ React.useEffect(() => {
1069
+ const slidesNode = (slider === null || slider === void 0 ? void 0 : slider.slideNodes()) || [];
1070
+ setIndex(slidesNode.findIndex((obj) => obj.dataset.key === key.current));
1071
+ }, [slider]);
1072
+ const sliderProps = {
1073
+ ref,
1074
+ 'data-key': key.current,
1075
+ 'data-index': index,
1076
+ };
1077
+ return (React__namespace["default"].createElement(StyledSlide, Object.assign({}, sliderProps, rest),
1078
+ React__namespace["default"].createElement("div", Object.assign({ style: {
1079
+ height: '100%',
1080
+ }, onClick: () => {
1081
+ selectSlideWhenClick && (slider === null || slider === void 0 ? void 0 : slider.scrollTo(index));
1082
+ onClick === null || onClick === void 0 ? void 0 : onClick(index);
1083
+ } }, innerSlideProps), children)));
1084
+ };
1085
+ const findIndexFromLeftSide = (position, slideLength) => {
1086
+ return position >= slideLength ? position - slideLength : position;
1087
+ };
1088
+ const findIndexFromRight = (position, slideLength) => {
1089
+ return position < 0 ? slideLength + position : position;
1090
+ };
1091
+ const CarouselWrapper = (_a) => {
1092
+ var { children, blurFromCenter, blurFromIndex, blurLength = 3, maxBlurOpacity = 0.5, onSlideChange, selectSlideWhenClick } = _a, props = tslib_es6.__rest(_a, ["children", "blurFromCenter", "blurFromIndex", "blurLength", "maxBlurOpacity", "onSlideChange", "selectSlideWhenClick"]);
1093
+ const { width } = hooks.useViewportSize();
1094
+ const [ref] = hooks.useResizeObserver();
1095
+ const slider = React.useRef(null);
1096
+ const [centerSlide, setCenterSlide] = React.useState(0);
1097
+ const handleStyle = () => {
1098
+ var _a, _b, _c, _d, _e;
1099
+ const slidesNode = ((_a = slider === null || slider === void 0 ? void 0 : slider.current) === null || _a === void 0 ? void 0 : _a.slideNodes()) || [];
1100
+ if (((_b = slider === null || slider === void 0 ? void 0 : slider.current) === null || _b === void 0 ? void 0 : _b.slideNodes().length) <=
1101
+ ((_c = slider === null || slider === void 0 ? void 0 : slider.current) === null || _c === void 0 ? void 0 : _c.slidesInView().length)) {
1102
+ slidesNode.map((item) => {
1103
+ item.classList.remove('center-slide');
1104
+ item.style.opacity = '1';
1105
+ });
1106
+ return false;
1107
+ }
1108
+ const centerSlideIndex = (_d = slider === null || slider === void 0 ? void 0 : slider.current) === null || _d === void 0 ? void 0 : _d.selectedScrollSnap();
1109
+ setCenterSlide(centerSlideIndex);
1110
+ const slidesNodeLength = slidesNode.length;
1111
+ const slidesInView = (_e = slider === null || slider === void 0 ? void 0 : slider.current) === null || _e === void 0 ? void 0 : _e.slidesInView();
1112
+ const slidesInViewLength = slidesInView.length;
1113
+ const halfSideLength = Math.floor(slidesInViewLength / 2);
1114
+ const halfSideBlurLength = blurFromCenter
1115
+ ? blurFromIndex + blurLength - 1
1116
+ : halfSideLength;
1117
+ const lastRightBlurIndexTmp = centerSlideIndex + halfSideBlurLength;
1118
+ const lastRightBlurIndex = lastRightBlurIndexTmp === slidesNodeLength
1119
+ ? 0
1120
+ : lastRightBlurIndexTmp > slidesNodeLength
1121
+ ? lastRightBlurIndexTmp - slidesNodeLength
1122
+ : lastRightBlurIndexTmp;
1123
+ const lastLeftBlurIndexTmp = centerSlideIndex - halfSideBlurLength;
1124
+ const lastLeftBlurIndex = lastLeftBlurIndexTmp < 0
1125
+ ? slidesNodeLength + lastLeftBlurIndexTmp
1126
+ : lastLeftBlurIndexTmp > 0
1127
+ ? centerSlideIndex - halfSideBlurLength
1128
+ : 0;
1129
+ const visibleSlide = [
1130
+ ...new Set(Array(halfSideBlurLength * 2 + 1)
1131
+ .fill('')
1132
+ .map((i, idx) => {
1133
+ const findFrom = lastLeftBlurIndex;
1134
+ return findIndexFromLeftSide(findFrom + idx, slidesNodeLength);
1135
+ })),
1136
+ ];
1137
+ slidesNode.map((item, index) => {
1138
+ if (index === centerSlideIndex) {
1139
+ item.classList.add('center-slide');
1140
+ }
1141
+ else {
1142
+ item.classList.remove('center-slide');
1143
+ }
1144
+ if (visibleSlide.indexOf(index) !== -1) {
1145
+ const opacityGap = maxBlurOpacity / blurLength;
1146
+ for (let i = 0; i < blurLength; i++) {
1147
+ if (index ===
1148
+ findIndexFromLeftSide(lastLeftBlurIndex + i, slidesNodeLength) ||
1149
+ index ===
1150
+ findIndexFromRight(lastRightBlurIndex - i, slidesNodeLength)) {
1151
+ item.style.opacity = String((i + 1) * opacityGap);
1152
+ break;
1153
+ }
1154
+ item.style.opacity = '1';
1155
+ }
1156
+ }
1157
+ else {
1158
+ item.style.opacity = '0';
1159
+ }
1160
+ });
1161
+ };
1162
+ const sliderProps = {
1163
+ getEmblaApi: (embla) => {
1164
+ slider.current = embla;
1165
+ },
1166
+ onSlideChange: (index) => {
1167
+ handleStyle();
1168
+ onSlideChange === null || onSlideChange === void 0 ? void 0 : onSlideChange(index);
1169
+ },
1170
+ };
1171
+ React.useEffect(() => {
1172
+ (slider === null || slider === void 0 ? void 0 : slider.current) && handleStyle();
1173
+ }, [width]);
1174
+ const useStyles = core.createStyles(() => {
1175
+ var _a, _b;
1176
+ return ({
1177
+ control: Object.assign({}, (((_a = slider === null || slider === void 0 ? void 0 : slider.current) === null || _a === void 0 ? void 0 : _a.slideNodes().length) <=
1178
+ ((_b = slider === null || slider === void 0 ? void 0 : slider.current) === null || _b === void 0 ? void 0 : _b.slidesInView().length) && {
1179
+ display: 'none',
1180
+ })),
1181
+ });
1182
+ });
1183
+ const { classes } = useStyles();
1184
+ return (React__namespace["default"].createElement(SlideContext.Provider, { value: { slider: slider === null || slider === void 0 ? void 0 : slider.current, centerSlide, selectSlideWhenClick } },
1185
+ React__namespace["default"].createElement(carousel.Carousel, Object.assign({ classNames: {
1186
+ control: classes.control,
1187
+ }, ref: ref, slideSize: 'auto', containScroll: "trimSnaps" }, sliderProps, props, { loop: true }), typeof children === 'function' ? children(centerSlide) : children)));
1188
+ };
1189
+ const CentralCarousel = CarouselWrapper;
1190
+ CentralCarousel.Slide = CustomSlide;
1505
1191
 
1506
- const ThailandRoundIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
1507
- React__namespace["default"].createElement("g", null,
1508
- React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1509
- React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1510
- React__namespace["default"].createElement("rect", { x: "-4", y: "-0.0166016", width: "28", height: "20", fill: "#ED1C24" }),
1511
- React__namespace["default"].createElement("rect", { x: "-4", y: "3.31665", width: "28", height: "13.3333", fill: "white" }),
1512
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M-4 6.65015H24V13.3168H-4V6.65015Z", fill: "#241D4F" }))));
1513
- const ThailandSquareIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 24 17", fill: "none" }, props),
1514
- React__namespace["default"].createElement("rect", { y: "0.983398", width: "24", height: "16", rx: "2", fill: "#ED1C24" }),
1515
- React__namespace["default"].createElement("rect", { y: "3.65039", width: "24", height: "10.6667", fill: "white" }),
1516
- React__namespace["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 6.31689H24V11.6502H0V6.31689Z", fill: "#241D4F" })));
1192
+ const CheckboxWrapper = (_a) => {
1193
+ var { styles, color = 'blue' } = _a, props = tslib_es6.__rest(_a, ["styles", "color"]);
1194
+ const theme = core.useMantineTheme();
1195
+ const hexColor = React.useMemo(() => {
1196
+ var _a, _b;
1197
+ return ((color === null || color === void 0 ? void 0 : color.includes('.'))
1198
+ ? (_a = theme.colors[color.split('.')[0]]) === null || _a === void 0 ? void 0 : _a[color.split('.')[1]]
1199
+ : (_b = theme.colors[color]) === null || _b === void 0 ? void 0 : _b[theme.primaryShade || 6]) ||
1200
+ theme.colors.blue[6];
1201
+ }, [color]);
1202
+ return (React__namespace["default"].createElement(core.Checkbox, Object.assign({ styles: Object.assign({ input: {
1203
+ '&:hover': {
1204
+ border: `1px solid ${hexColor}`,
1205
+ },
1206
+ } }, styles), color: color }, props)));
1207
+ };
1208
+ const Checkbox = CheckboxWrapper;
1209
+ Checkbox.Group = core.Checkbox.Group;
1517
1210
 
1518
- const VietnamRoundIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 20 20", fill: "none", style: Object.assign({ borderRadius: '50%' }, props.style) }, props),
1519
- React__namespace["default"].createElement("g", null,
1520
- React__namespace["default"].createElement("mask", { style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "20", height: "20" },
1521
- React__namespace["default"].createElement("circle", { cx: "10", cy: "10", r: "10", fill: "#C4C4C4" })),
1522
- React__namespace["default"].createElement("rect", { x: "-4", y: "-0.0166016", width: "28", height: "20", fill: "#DA251D" }),
1523
- React__namespace["default"].createElement("path", { d: "M11.7228 10.8677L14.2819 9.00839L11.1187 9.00839L10.1409 6L9.16316 9.00839L6 9.00839L8.5591 10.8677L7.58184 13.8766L10.1409 12.0168L12.7 13.8766L11.7228 10.8677Z", fill: "#FFEB3B" }))));
1524
- const VietnamSquareIcon = (props) => (React__namespace["default"].createElement("svg", Object.assign({ viewBox: "0 0 24 16", fill: "none" }, props),
1525
- React__namespace["default"].createElement("g", null,
1526
- React__namespace["default"].createElement("clipPath", null,
1527
- React__namespace["default"].createElement("rect", { width: "24", height: "16", fill: "white" })),
1528
- React__namespace["default"].createElement("path", { d: "M2.01386e-10 2C0 0.895431 0.895431 -7.50368e-10 2 -1.67599e-09L22 -1.84359e-08C23.1046 -1.93615e-08 24 0.895431 24 2L24 14C24 15.1046 23.1046 16 22 16L2 16C0.89543 16 1.52092e-09 15.1046 1.4097e-09 14L2.01386e-10 2Z", fill: "#DA251D" }),
1529
- React__namespace["default"].createElement("path", { d: "M13.7823 8.92854L16.6663 6.8332L13.1016 6.8332L11.9997 3.44287L10.8978 6.8332L7.33301 6.8332L10.217 8.92854L9.11567 12.3195L11.9997 10.2235L14.8837 12.3195L13.7823 8.92854Z", fill: "#FFEB3B" }))));
1211
+ const StyledSlider = styled__default["default"](core.Slider) `
1212
+ ${(props) => {
1213
+ const color = props.color || theme.theme.colors.primaryBase;
1214
+ return `
1215
+ .mantine-Slider-bar {
1216
+ background-color: ${color};
1217
+ }
1218
+ .mantine-Slider-thumb {
1219
+ border-color: ${color};
1220
+ color: ${color};
1221
+ }
1222
+ `;
1223
+ }}
1224
+ [data-theme='marryBaby'] & {
1225
+ ${(props) => {
1226
+ const color = props.color || theme.theme.mbColors.pink;
1227
+ return `
1228
+ .mantine-Slider-bar {
1229
+ background-color: ${color};
1230
+ }
1231
+ .mantine-Slider-thumb {
1232
+ border-color: ${color};
1233
+ color: ${color};
1234
+ }
1235
+ `;
1236
+ }}
1237
+ }
1530
1238
 
1531
- var styles$1 = {"flag":"pfaLGRK"};
1239
+ .mantine-Slider-label {
1240
+ background-color: transparent;
1241
+ color: #000;
1242
+ font-size: 14px;
1243
+ font-weight: bold;
1244
+ }
1245
+ `;
1246
+ const StyledSliderWrapper = styled__default["default"].div `
1247
+ display: flex;
1248
+ align-items: center;
1249
+ .hhg-mantine-slider {
1250
+ flex-grow: 1;
1251
+ }
1252
+ button {
1253
+ path:not([stroke]) {
1254
+ stroke: ${theme.theme.colors.primaryBase};
1255
+ }
1256
+ }
1257
+ [data-theme='marryBaby'] & {
1258
+ button {
1259
+ path:not([stroke]) {
1260
+ stroke: ${theme.theme.mbColors.pink};
1261
+ }
1262
+ }
1263
+ }
1264
+ `;
1532
1265
 
1533
- const Flag = ({ country, language, rounded, height, width, isTesting, className, }) => {
1534
- let flag;
1535
- let flagRounded;
1536
- switch (language) {
1537
- case 'en':
1538
- flag = React__namespace["default"].createElement(EnglishSquareIcon, null);
1539
- flagRounded = React__namespace["default"].createElement(EnglishRoundIcon, null);
1540
- break;
1541
- case 'vi':
1542
- flag = React__namespace["default"].createElement(VietnamSquareIcon, null);
1543
- flagRounded = React__namespace["default"].createElement(VietnamRoundIcon, null);
1544
- break;
1545
- case 'id':
1546
- flag = React__namespace["default"].createElement(IndonesiaSquareIcon, { isTesting: isTesting });
1547
- flagRounded = React__namespace["default"].createElement(IndonesiaRoundIcon, { isTesting: isTesting });
1548
- break;
1549
- case 'th':
1550
- flag = React__namespace["default"].createElement(ThailandSquareIcon, null);
1551
- flagRounded = React__namespace["default"].createElement(ThailandRoundIcon, null);
1552
- break;
1553
- case 'km':
1554
- flag = React__namespace["default"].createElement(CambodiaSquareIcon, null);
1555
- flagRounded = React__namespace["default"].createElement(CambodiaRoundIcon, null);
1556
- break;
1557
- case 'ms':
1558
- flag = React__namespace["default"].createElement(MalaysiaSquareIcon, null);
1559
- flagRounded = React__namespace["default"].createElement(MalaysiaRoundIcon, null);
1560
- break;
1561
- case 'my':
1562
- flag = React__namespace["default"].createElement(MyanmarSquareIcon, null);
1563
- flagRounded = React__namespace["default"].createElement(MyanmarRoundIcon, null);
1564
- break;
1565
- case 'tl':
1566
- flag = React__namespace["default"].createElement(PhilippinesSquareIcon, null);
1567
- flagRounded = React__namespace["default"].createElement(PhilippinesRoundIcon, null);
1568
- break;
1569
- case 'hi':
1570
- flag = React__namespace["default"].createElement(IndiaSquareIcon, null);
1571
- flagRounded = React__namespace["default"].createElement(IndiaRoundIcon, null);
1572
- break;
1573
- case 'zh':
1574
- flag = React__namespace["default"].createElement(TaiwanSquareIcon, null);
1575
- flagRounded = React__namespace["default"].createElement(TaiwanRoundIcon, null);
1576
- break;
1266
+ const RadioWrapper = (_a) => {
1267
+ var { styles, color } = _a, props = tslib_es6.__rest(_a, ["styles", "color"]);
1268
+ const theme = core.useMantineTheme();
1269
+ const hexColor = React.useMemo(() => {
1270
+ var _a, _b;
1271
+ return ((color === null || color === void 0 ? void 0 : color.includes('.'))
1272
+ ? (_a = theme.colors[color.split('.')[0]]) === null || _a === void 0 ? void 0 : _a[color.split('.')[1]]
1273
+ : (_b = theme.colors[color]) === null || _b === void 0 ? void 0 : _b[theme.primaryShade || 6]) ||
1274
+ theme.fn.primaryColor();
1275
+ }, [color]);
1276
+ return (React__namespace["default"].createElement(core.Radio, Object.assign({ styles: Object.assign({ radio: {
1277
+ '&:hover, &:checked': {
1278
+ border: `1px solid ${hexColor}`,
1279
+ },
1280
+ }, icon: {
1281
+ color: `${hexColor}`,
1282
+ } }, styles), color: color }, props)));
1283
+ };
1284
+ const Radio = RadioWrapper;
1285
+ Radio.Group = core.Radio.Group;
1286
+
1287
+ function transferValueToOtp(value, valueLength = 6) {
1288
+ const otp = new Array(valueLength).fill('');
1289
+ if (value) {
1290
+ const arr = value.toString().split('');
1291
+ otp.map((_, index) => {
1292
+ if (arr[index]) {
1293
+ otp[index] = arr[index] || '';
1294
+ }
1295
+ });
1577
1296
  }
1578
- if (!flag && !flagRounded) {
1579
- switch (country) {
1580
- case 'VN':
1581
- flag = React__namespace["default"].createElement(VietnamSquareIcon, null);
1582
- flagRounded = React__namespace["default"].createElement(VietnamRoundIcon, null);
1583
- break;
1584
- case 'ID':
1585
- flag = React__namespace["default"].createElement(IndonesiaSquareIcon, { isTesting: isTesting });
1586
- flagRounded = React__namespace["default"].createElement(IndonesiaRoundIcon, { isTesting: isTesting });
1587
- break;
1588
- case 'TH':
1589
- flag = React__namespace["default"].createElement(ThailandSquareIcon, null);
1590
- flagRounded = React__namespace["default"].createElement(ThailandRoundIcon, null);
1591
- break;
1592
- case 'KH':
1593
- flag = React__namespace["default"].createElement(CambodiaSquareIcon, null);
1594
- flagRounded = React__namespace["default"].createElement(CambodiaRoundIcon, null);
1595
- break;
1596
- case 'MY':
1597
- flag = React__namespace["default"].createElement(MalaysiaSquareIcon, null);
1598
- flagRounded = React__namespace["default"].createElement(MalaysiaRoundIcon, null);
1599
- break;
1600
- case 'MM':
1601
- flag = React__namespace["default"].createElement(MyanmarSquareIcon, null);
1602
- flagRounded = React__namespace["default"].createElement(MyanmarRoundIcon, null);
1603
- break;
1604
- case 'PH':
1605
- flag = React__namespace["default"].createElement(PhilippinesSquareIcon, null);
1606
- flagRounded = React__namespace["default"].createElement(PhilippinesRoundIcon, null);
1607
- break;
1608
- case 'IN':
1609
- flag = React__namespace["default"].createElement(IndiaSquareIcon, null);
1610
- flagRounded = React__namespace["default"].createElement(IndiaRoundIcon, null);
1611
- break;
1612
- case 'TW':
1613
- flag = React__namespace["default"].createElement(TaiwanSquareIcon, null);
1614
- flagRounded = React__namespace["default"].createElement(TaiwanRoundIcon, null);
1615
- break;
1297
+ return otp;
1298
+ }
1299
+ function transferOtpToValue(otp) {
1300
+ return otp.join('');
1301
+ }
1302
+
1303
+ var styles$1 = {"otpContainer":"_2iQs0sk","otpInput":"Ia6IojY","error":"yJs9MaD"};
1304
+
1305
+ const BACKSPACE = 8;
1306
+ const LEFT_ARROW = 37;
1307
+ const RIGHT_ARROW = 39;
1308
+ const DELETE = 46;
1309
+ const SPACEBAR = 32;
1310
+ const OTPInputFunction = (props, ref) => {
1311
+ const { maxLength = 1, placeholder, className } = props, restProps = tslib_es6.__rest(props, ["maxLength", "placeholder", "className"]);
1312
+ return (React__namespace["default"].createElement("input", Object.assign({ maxLength: maxLength, className: cn__default["default"](styles$1.otpInput, 'otpInput', className), placeholder: placeholder, type: "number" }, restProps, { ref: ref })));
1313
+ };
1314
+ const OTPInput = React.forwardRef(OTPInputFunction);
1315
+ const OTPFowardRef = (props, ref) => {
1316
+ const { valueLength = 6, type = 'number', value: valueProps, defaultValue, placeholder, onChange, onBlur, } = props;
1317
+ const inputRef = React.useRef(new Array(valueLength).fill(null));
1318
+ const [value, setValue] = React.useState(defaultValue || valueProps);
1319
+ const [activeOtp, setActiveOtp] = React.useState(-1);
1320
+ const [otp, setOtp] = React.useState(() => transferValueToOtp(value, valueLength));
1321
+ const changeCodeAtFocus = React.useCallback(() => {
1322
+ if (activeOtp === -1) {
1323
+ return;
1616
1324
  }
1617
- }
1618
- return (React__namespace["default"].createElement("div", { className: `${styles$1.flag} ${className || ''}`, style: {
1619
- '--width': width || 20,
1620
- '--height': height || 20,
1621
- } }, rounded ? flagRounded : flag));
1622
- };
1325
+ const activeInput = inputRef.current[activeOtp];
1326
+ if (activeInput) {
1327
+ activeInput.value = '';
1328
+ const newOtp = otp;
1329
+ newOtp[activeOtp] = '';
1330
+ setOtp(newOtp);
1331
+ setValue(() => transferOtpToValue(newOtp));
1332
+ onChange === null || onChange === void 0 ? void 0 : onChange(transferOtpToValue(newOtp));
1333
+ }
1334
+ }, [activeOtp, onChange, otp]);
1335
+ const focusPrevInput = React.useCallback(() => {
1336
+ if (activeOtp === 0) {
1337
+ return;
1338
+ }
1339
+ const curInput = inputRef.current[activeOtp];
1340
+ if (curInput) {
1341
+ curInput.blur();
1342
+ }
1343
+ const prevInput = inputRef.current[activeOtp - 1];
1344
+ if (prevInput) {
1345
+ prevInput.focus();
1346
+ }
1347
+ }, [activeOtp]);
1348
+ const focusNextInput = React.useCallback(() => {
1349
+ if (activeOtp === valueLength - 1) {
1350
+ return;
1351
+ }
1352
+ const curInput = inputRef.current[activeOtp];
1353
+ if (curInput) {
1354
+ curInput.blur();
1355
+ }
1356
+ const nextInput = inputRef.current[activeOtp + 1];
1357
+ if (nextInput) {
1358
+ nextInput.focus();
1359
+ }
1360
+ }, [activeOtp, valueLength]);
1361
+ const inputOnChange = React.useCallback((e) => {
1362
+ const target = e.target;
1363
+ const targetValue = target.value;
1364
+ const code = targetValue.toString().slice(0, 1);
1365
+ const indexTarget = inputRef.current.findIndex((input) => input === target);
1366
+ if (indexTarget !== -1) {
1367
+ const newOtp = otp;
1368
+ newOtp[indexTarget] = code;
1369
+ setOtp(newOtp);
1370
+ setValue(() => transferOtpToValue(newOtp));
1371
+ onChange === null || onChange === void 0 ? void 0 : onChange(transferOtpToValue(newOtp));
1372
+ }
1373
+ focusNextInput();
1374
+ }, [focusNextInput, onChange, otp]);
1375
+ const inputOnFocus = React.useCallback((e) => {
1376
+ const target = e.target;
1377
+ const targetIndex = inputRef.current.findIndex((input) => input === target);
1378
+ if (type === 'number') {
1379
+ target.select();
1380
+ }
1381
+ else {
1382
+ target.setSelectionRange(0, target.value.length, 'backward');
1383
+ }
1384
+ if (targetIndex !== -1) {
1385
+ setActiveOtp(targetIndex);
1386
+ }
1387
+ }, []);
1388
+ const inputOnPaste = React.useCallback((e) => {
1389
+ const clipboard = e.clipboardData.getData('text/plain');
1390
+ const newOtp = transferValueToOtp(clipboard, valueLength);
1391
+ const newValue = transferOtpToValue(newOtp);
1392
+ setOtp(newOtp);
1393
+ setValue(newValue);
1394
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
1395
+ }, [onChange, type, valueLength]);
1396
+ // Handle cases of backspace, delete, left arrow, right arrow, space
1397
+ const inputOnKeyDown = React.useCallback((e) => {
1398
+ if (e.keyCode === BACKSPACE || e.key === 'Backspace') {
1399
+ e.preventDefault();
1400
+ changeCodeAtFocus();
1401
+ focusPrevInput();
1402
+ }
1403
+ else if (e.keyCode === DELETE || e.key === 'Delete') {
1404
+ e.preventDefault();
1405
+ changeCodeAtFocus();
1406
+ }
1407
+ else if (e.keyCode === LEFT_ARROW || e.key === 'ArrowLeft') {
1408
+ e.preventDefault();
1409
+ focusPrevInput();
1410
+ }
1411
+ else if (e.keyCode === RIGHT_ARROW || e.key === 'ArrowRight') {
1412
+ e.preventDefault();
1413
+ focusNextInput();
1414
+ }
1415
+ else if (e.keyCode === SPACEBAR ||
1416
+ e.key === ' ' ||
1417
+ e.key === 'Spacebar' ||
1418
+ e.key === 'Space') {
1419
+ e.preventDefault();
1420
+ }
1421
+ }, [changeCodeAtFocus, focusNextInput, focusPrevInput]);
1422
+ React.useImperativeHandle(ref, () => inputRef.current[0], []);
1423
+ React.useEffect(() => {
1424
+ setOtp(() => transferValueToOtp(valueProps, valueLength));
1425
+ setValue(valueProps);
1426
+ }, [valueLength, valueProps]);
1427
+ return (React__namespace["default"].createElement(core.Flex, { justify: "center", columnGap: 8, className: cn__default["default"](styles$1.otpContainer, 'otpContainer') }, otp.map((val, index) => {
1428
+ return (React__namespace["default"].createElement(OTPInput, { ref: (iRef) => {
1429
+ inputRef.current[index] = iRef;
1430
+ }, key: '' + index, value: val, type: type, onChange: inputOnChange, onFocus: inputOnFocus, onKeyDown: inputOnKeyDown, onPaste: inputOnPaste, onBlur: onBlur, placeholder: placeholder }));
1431
+ })));
1432
+ };
1433
+ const OTP = React.forwardRef(OTPFowardRef);
1623
1434
 
1624
1435
  const countriesDefault = Object.values(index.siteOptions).reduce((countries, { phoneCountry: phone }) => {
1625
1436
  if (!countries.includes(phone)) {
@@ -1793,13 +1604,13 @@ const _Tabs = (_a) => {
1793
1604
  setDisableNext(((_a = viewport === null || viewport === void 0 ? void 0 : viewport.current) === null || _a === void 0 ? void 0 : _a.clientWidth) + scrollPosition.x ===
1794
1605
  ((_b = viewport === null || viewport === void 0 ? void 0 : viewport.current) === null || _b === void 0 ? void 0 : _b.scrollWidth));
1795
1606
  }, [scrollPosition]);
1796
- const TabTextComponent = ({ text, dataEventCategory, dataEventAction, dataEventLabel, }) => TabComponentDisplay ? (React__namespace["default"].createElement(TabComponentDisplay, null, text)) : (React__namespace["default"].createElement(index$3.Text, { size: "s3", color: "inherit", weight: "semiBold", "data-event-category": dataEventCategory, "data-event-action": dataEventAction, "data-event-label": dataEventLabel }, text));
1607
+ const TabTextComponent = ({ text, dataEventCategory, dataEventAction, dataEventLabel, }) => TabComponentDisplay ? (React__namespace["default"].createElement(TabComponentDisplay, null, text)) : (React__namespace["default"].createElement(index$4.Text, { size: "s3", color: "inherit", weight: "semiBold", "data-event-category": dataEventCategory, "data-event-action": dataEventAction, "data-event-label": dataEventLabel }, text));
1797
1608
  return (React__namespace["default"].createElement(core.Tabs, Object.assign({}, props, rest), children || (React__namespace["default"].createElement(React__namespace["default"].Fragment, null,
1798
1609
  React__namespace["default"].createElement(core.ScrollArea, { className: cx(classes.scrollArea, `${!disablePrevious ? 'prev-bg' : ''} ${!disableNext ? 'next-bg' : ''}`), scrollbarSize: 0, viewportRef: viewport, onScrollPositionChange: onScrollPositionChange },
1799
1610
  React__namespace["default"].createElement(core.Tabs.List, Object.assign({ className: classes.list, ref: listRef }, listProps), dataList.map((i, idx) => (React__namespace["default"].createElement(core.Tabs.Tab, Object.assign({ ref: (e) => (tabRef.current[idx] = e), className: classes.tab, key: String(i.value), value: String(i.value) }, tabProps),
1800
1611
  React__namespace["default"].createElement(TabTextComponent, Object.assign({}, i)))))),
1801
- React__namespace["default"].createElement(Button, { className: cx(classes.btn, classes.prevBtn, disablePrevious ? 'disabled' : ''), unstyled: true, onClick: () => setCurrentSlide(currentSlide - 1 > -1 ? currentSlide - 1 : 0), leftIcon: React__namespace["default"].createElement(other.ArrowLeft, { size: 16 }) }),
1802
- React__namespace["default"].createElement(Button, { className: cx(classes.btn, classes.nextBtn, disableNext ? 'disabled' : ''), unstyled: true, onClick: () => setCurrentSlide(currentSlide + 1 < dataList.length - 1
1612
+ React__namespace["default"].createElement(index$1.Button, { className: cx(classes.btn, classes.prevBtn, disablePrevious ? 'disabled' : ''), unstyled: true, onClick: () => setCurrentSlide(currentSlide - 1 > -1 ? currentSlide - 1 : 0), leftIcon: React__namespace["default"].createElement(other.ArrowLeft, { size: 16 }) }),
1613
+ React__namespace["default"].createElement(index$1.Button, { className: cx(classes.btn, classes.nextBtn, disableNext ? 'disabled' : ''), unstyled: true, onClick: () => setCurrentSlide(currentSlide + 1 < dataList.length - 1
1803
1614
  ? currentSlide + 1
1804
1615
  : dataList.length - 1), leftIcon: React__namespace["default"].createElement(other.ArrowRight, { size: 16 }) })),
1805
1616
  dataList.map((i) => (React__namespace["default"].createElement(core.Tabs.Panel, Object.assign({ value: String(i.value), key: String(i.value) }, panelProps), i.content)))))));
@@ -1874,8 +1685,8 @@ const _ChipButton = (_a) => {
1874
1685
  var { variant = 'secondary', withIcon, children, buttonProps } = _a, rest = tslib_es6.__rest(_a, ["variant", "withIcon", "children", "buttonProps"]);
1875
1686
  const { classes, cx } = useStyles();
1876
1687
  return (React__namespace["default"].createElement(core.Chip, Object.assign({ classNames: classes }, rest, { unstyled: true }),
1877
- React__namespace["default"].createElement(Button, Object.assign({ className: cx(classes.btnRoot, 'checked'), leftIcon: withIcon ? React__namespace["default"].createElement(core$1.Check, { size: 18, color: "currentColor" }) : undefined, variant: variant }, buttonProps), children),
1878
- React__namespace["default"].createElement(Button, Object.assign({ className: cx(classes.btnRoot, 'unchecked'), leftIcon: withIcon ? React__namespace["default"].createElement(core$1.Plus, { size: 18, color: "currentColor" }) : undefined, variant: 'tertiary' }, buttonProps), children)));
1688
+ React__namespace["default"].createElement(index$1.Button, Object.assign({ className: cx(classes.btnRoot, 'checked'), leftIcon: withIcon ? React__namespace["default"].createElement(core$1.Check, { size: 18, color: "currentColor" }) : undefined, variant: variant }, buttonProps), children),
1689
+ React__namespace["default"].createElement(index$1.Button, Object.assign({ className: cx(classes.btnRoot, 'unchecked'), leftIcon: withIcon ? React__namespace["default"].createElement(core$1.Plus, { size: 18, color: "currentColor" }) : undefined, variant: 'tertiary' }, buttonProps), children)));
1879
1690
  };
1880
1691
  const ChipButton = _ChipButton;
1881
1692
  ChipButton.Group = core.Chip.Group;
@@ -1885,7 +1696,6 @@ exports.Anchor = Anchor;
1885
1696
  exports.AspectRatio = AspectRatio;
1886
1697
  exports.Avatar = Avatar;
1887
1698
  exports.Breadcrumbs = Breadcrumbs;
1888
- exports.Button = Button;
1889
1699
  exports.CaretDown = CaretDown;
1890
1700
  exports.Carousel = Carousel;
1891
1701
  exports.CentralCarousel = CentralCarousel;