@hhgtech/hhg-components 1.26.32 → 1.26.34
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.
- package/build/babyGrowth.js +2 -2
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components/atoms/authorBadge/index.styles.d.ts +4 -2
- package/build/components/atoms/customReferenceDot/index.d.ts +1 -1
- package/build/components/mantine/anchor/index.styles.d.ts +4 -2
- package/build/components/mantine/button/index.styles.d.ts +4 -2
- package/build/components/mantine/datepicker/index.d.ts +4 -8
- package/build/components/mantine/index.d.ts +1 -1
- package/build/components/mantine/input/number.d.ts +2 -2
- package/build/components/mantine/otp/index.d.ts +2 -2
- package/build/components/mantine/phone/index.d.ts +1 -1
- package/build/components/mantine/tabs/index.styles.d.ts +4 -2
- package/build/components/mantine/text/index.styles.d.ts +4 -2
- package/build/components/mantine/theme/input.d.ts +4 -3
- package/build/components/mantine/theme/other.d.ts +2 -2
- package/build/components/mantine/theme/text.d.ts +38 -38
- package/build/components/molecules/tabs/index.styles.d.ts +8 -2
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/core-e0ab68ed.js +1 -0
- package/build/{dataTransform-28101413.js → dataTransform-3d1fe75a.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +2 -2
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-8caadfc5.js → core-99bd482d.js} +1 -1
- package/build/esm/{dataTransform-274126e8.js → dataTransform-b1a60c6f.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/{getDynamicHealthTool-90551b77.js → getDynamicHealthTool-9469155c.js} +1 -1
- package/build/esm/{getSocialList-466fa13f.js → getSocialList-26e7744f.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/index-052ead15.js +134 -0
- package/build/esm/{index-ad7df466.js → index-07d550bd.js} +1 -1
- package/build/esm/{index-c8894e53.js → index-1c2e6b11.js} +1 -1
- package/build/esm/index-35720c39.js +1 -0
- package/build/esm/{index-49d42994.js → index-3a573a81.js} +1 -1
- package/build/esm/{index-9e21a856.js → index-415aa6a6.js} +1 -1
- package/build/esm/{index-c1c4ea8a.js → index-492dce7f.js} +1 -1
- package/build/esm/index-4c732e19.js +1 -0
- package/build/esm/{index-7b7ecc63.js → index-4cdba9f7.js} +1 -1
- package/build/esm/index-5150413f.js +1 -0
- package/build/esm/{index-e1c04a61.js → index-5b3fa6f4.js} +1 -1
- package/build/esm/index-66ca40b3.js +1 -0
- package/build/esm/{index-587a7c6c.js → index-792f34c0.js} +1 -1
- package/build/esm/{index-a7593bb9.js → index-7c7a71c2.js} +1 -1
- package/build/esm/{index-12de6c42.js → index-9f920249.js} +1 -1
- package/build/esm/index-abc2e161.js +1 -0
- package/build/esm/{index-e00f38c9.js → index-cbd70f4c.js} +1 -1
- package/build/esm/{index-aa91b2e8.js → index-cc1cc2ec.js} +1 -1
- package/build/esm/{index-6e4970c6.js → index-ce636090.js} +1 -1
- package/build/esm/{index-5faf1733.js → index-dca34eeb.js} +6 -6
- package/build/esm/{index-f279f9cc.js → index-e0755edc.js} +1 -1
- package/build/esm/{index-2dcd7658.js → index-ec106ff6.js} +1 -1
- package/build/esm/index-f1de8784.js +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-30b4b2d2.js → index.styled-1ccc5a77.js} +2 -2
- package/build/esm/{index.styled-c8b3bbda.js → index.styled-8a25e151.js} +1 -1
- package/build/esm/{index.styled-e1458854.js → index.styled-940adc9b.js} +173 -173
- package/build/esm/{index.styled-1b7062fa.js → index.styled-afbee6df.js} +1 -1
- package/build/esm/{index.styled-7d3abcab.js → index.styled-c947699d.js} +1 -1
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboarding.js +1 -1
- package/build/esm/pwg.js +5 -5
- package/build/esm/{routing-5659c7c1.js → routing-975273e0.js} +1 -1
- package/build/esm/{screenSizeContext-ef383a81.js → screenSizeContext-e78224e2.js} +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{translationsProvider-c6ae6aba.js → translationsProvider-6d5e47dc.js} +1 -1
- package/build/esm/{types-a8957b61.js → types-8b435e81.js} +1 -1
- package/build/esm/{types-b47cfb90.js → types-f9aab877.js} +80 -79
- package/build/esm/types.js +1 -1
- package/build/esm/{useHealthToolCache-33638761.js → useHealthToolCache-900f7b60.js} +1 -1
- package/build/esm/{useRafState-8ad5ff5d.js → useRafState-432223b9.js} +1 -1
- package/build/esm/{useTranslations-09fd59a7.js → useTranslations-9c41e6c8.js} +1 -1
- package/build/esm/{utils-737d26dc.js → utils-618e7683.js} +16 -16
- package/build/esm/vaccination.js +12 -12
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-b44915cf.js +1 -0
- package/build/{getSocialList-a32f7622.js → getSocialList-2c798760.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/index-135d06ea.js +1 -0
- package/build/{index-8515331b.js → index-393683bd.js} +1 -1
- package/build/{index-20ec378a.js → index-518a689f.js} +1 -1
- package/build/{index-28df8c27.js → index-52ef0508.js} +1 -1
- package/build/{index-b24d30a4.js → index-602fff84.js} +1 -1
- package/build/{index-023543bd.js → index-62c90fc9.js} +11 -11
- package/build/{index-a2796700.js → index-65a1e316.js} +1 -1
- package/build/{index-6783d880.js → index-68b36671.js} +1 -1
- package/build/{index-ff37193f.js → index-7741d720.js} +1 -1
- package/build/index-84aa447d.js +134 -0
- package/build/{index-d3826236.js → index-880ed496.js} +1 -1
- package/build/index-8abaf3c2.js +1 -0
- package/build/index-94d01c18.js +1 -0
- package/build/index-a0c1abdd.js +1 -0
- package/build/{index-bcc60c35.js → index-ac489f86.js} +1 -1
- package/build/{index-db12a261.js → index-ba38d2ea.js} +1 -1
- package/build/index-d1c0f20d.js +1 -0
- package/build/{index-2479abce.js → index-d2e91e47.js} +1 -1
- package/build/index-d79c7f8f.js +1 -0
- package/build/{index-34d6ee2c.js → index-e5f077a0.js} +1 -1
- package/build/{index-a1f24ac5.js → index-ee837a02.js} +1 -1
- package/build/{index-41ec0350.js → index-f2b90c69.js} +1 -1
- package/build/{index-76781aaa.js → index-f940d627.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-6da69873.js → index.styled-3b98796b.js} +1 -1
- package/build/{index.styled-722fa7a1.js → index.styled-46729c66.js} +3 -3
- package/build/{index.styled-6e88c577.js → index.styled-c4beee2d.js} +1 -1
- package/build/{index.styled-06bff8be.js → index.styled-ecfffb79.js} +2 -2
- package/build/{index.styled-360b806d.js → index.styled-f732f62a.js} +1 -1
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboarding.js +1 -1
- package/build/pwg.js +4 -4
- package/build/{routing-11b59429.js → routing-e1c33fd6.js} +1 -1
- package/build/screenSizeContext-0e09fb90.js +81 -0
- package/build/together/components/atoms/tagTopic/index.d.ts +6 -2
- package/build/together/components/molecules/cardAuthor/index.styles.d.ts +5 -2
- package/build/together/components/molecules/postContent/index.styles.d.ts +4 -2
- package/build/together.js +1 -1
- package/build/{translationsProvider-f706d7ce.js → translationsProvider-c759758b.js} +1 -1
- package/build/{types-1c02a2e5.js → types-1acc14ed.js} +10 -9
- package/build/{types-181bd739.js → types-d19c0294.js} +37 -37
- package/build/types.js +1 -1
- package/build/useHealthToolCache-cd6dc17f.js +1 -0
- package/build/{useRafState-2246427c.js → useRafState-a94ab907.js} +1 -1
- package/build/useTranslations-ef5fab21.js +1 -0
- package/build/{utils-0eff6749.js → utils-0b352512.js} +14 -14
- package/build/vaccination.js +49 -49
- package/package.json +10 -15
- package/build/components/mantine/datepicker/index.styled.d.ts +0 -3
- package/build/components/mantine/datepicker/range.d.ts +0 -5
- package/build/core-e1d079c2.js +0 -1
- package/build/esm/index-7c08fc24.js +0 -151
- package/build/esm/index-96906ea3.js +0 -1
- package/build/esm/index-d67f0f84.js +0 -1
- package/build/esm/index-dfa681bc.js +0 -1
- package/build/esm/index-e0b5236e.js +0 -1
- package/build/esm/index-f9a3ccf7.js +0 -1
- package/build/getDynamicHealthTool-f5800966.js +0 -1
- package/build/index-05a92235.js +0 -1
- package/build/index-18e5870d.js +0 -1
- package/build/index-5140044f.js +0 -1
- package/build/index-922aa090.js +0 -1
- package/build/index-a2bee1ad.js +0 -1
- package/build/index-dfb7b798.js +0 -151
- package/build/screenSizeContext-2a70b050.js +0 -81
- package/build/useHealthToolCache-e8385f9f.js +0 -1
- package/build/useTranslations-b15251a8.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-1d7af41b.js → BMI_BOYS.percentile.monthly-a12d572a.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-b069d62a.js → BMI_BOYS.percentile.weekly-d7bb5879.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-8ff4bb62.js → BMI_BOYS.percentile.yearly-9b242344.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-78a9cc6f.js → BMI_BOYS.zscore.monthly-79ce3b3a.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-1d2397cb.js → BMI_BOYS.zscore.weekly-7066042e.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-70f2ff71.js → BMI_BOYS.zscore.yearly-04ab4a71.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-5c551722.js → BMI_GIRLS.percentile.monthly-52160865.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-777ee642.js → BMI_GIRLS.percentile.weekly-cdb89d90.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-1932ad70.js → BMI_GIRLS.percentile.yearly-7ce25f13.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-0ae0242b.js → BMI_GIRLS.zscore.monthly-0108625a.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-1b3d59ee.js → BMI_GIRLS.zscore.weekly-10f3e4c5.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-acfef8b9.js → BMI_GIRLS.zscore.yearly-53941b82.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-dc8dd3a0.js → HEAD CIRCUM_BOYS.percentile.monthly-b5307bc9.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-757ffdef.js → HEAD CIRCUM_BOYS.percentile.weekly-d1b2f383.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-dc3039e6.js → HEAD CIRCUM_BOYS.percentile.yearly-05ba5c38.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-f9b9537a.js → HEAD CIRCUM_BOYS.zscore.monthly-8fbab683.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-8e0b9e55.js → HEAD CIRCUM_BOYS.zscore.weekly-2bf495f2.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-5ebba785.js → HEAD CIRCUM_BOYS.zscore.yearly-8734aefb.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-7b3a69d4.js → HEAD CIRCUM_GIRLS.percentile.monthly-cae87b5d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-6468172c.js → HEAD CIRCUM_GIRLS.percentile.weekly-a0589aab.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-8b529237.js → HEAD CIRCUM_GIRLS.percentile.yearly-c16050d3.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-7e4b2c79.js → HEAD CIRCUM_GIRLS.zscore.monthly-c77441cb.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-c93c76b4.js → HEAD CIRCUM_GIRLS.zscore.weekly-85e93804.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-09ac4a34.js → HEAD CIRCUM_GIRLS.zscore.yearly-45847929.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-f4df1d4f.js → HEIGHT_BOYS.percentile.monthly-0a7fd5fd.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-98c3c7ae.js → HEIGHT_BOYS.percentile.weekly-31b8e7c0.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-0af9a6c7.js → HEIGHT_BOYS.percentile.yearly-57e1bc17.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-74469225.js → HEIGHT_BOYS.zscore.monthly-c0e961e1.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-5aedeb27.js → HEIGHT_BOYS.zscore.weekly-67559cc3.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-a4d18a96.js → HEIGHT_BOYS.zscore.yearly-803c449c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-f1271059.js → HEIGHT_GIRLS.percentile.monthly-63968e56.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-8edfbaee.js → HEIGHT_GIRLS.percentile.weekly-83011a09.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-1e0afe8c.js → HEIGHT_GIRLS.percentile.yearly-deda1b74.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-6f2fc7a4.js → HEIGHT_GIRLS.zscore.monthly-f93618db.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-53b292b4.js → HEIGHT_GIRLS.zscore.weekly-fbeda00a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-9e3857fe.js → HEIGHT_GIRLS.zscore.yearly-903d8196.js} +0 -0
- /package/build/{Onboarding-5e427213.js → Onboarding-eb1bafb0.js} +0 -0
- /package/build/{Visible-a814efb4.js → Visible-f8de44a9.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-2fdd897c.js → WEIGHT_BOYS.percentile.monthly-429752cc.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-3a3c029a.js → WEIGHT_BOYS.percentile.weekly-23e7f2f7.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-ab37985a.js → WEIGHT_BOYS.percentile.yearly-49c5487e.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-57efda55.js → WEIGHT_BOYS.zscore.monthly-80f4945b.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-94193753.js → WEIGHT_BOYS.zscore.weekly-0c08c5a7.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-87105032.js → WEIGHT_BOYS.zscore.yearly-fc5500b9.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-1fa364b8.js → WEIGHT_GIRLS.percentile.monthly-17fd3272.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-6ae3377b.js → WEIGHT_GIRLS.percentile.weekly-c2b0ce89.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-c593b312.js → WEIGHT_GIRLS.percentile.yearly-f48ff3fd.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-fecd4f64.js → WEIGHT_GIRLS.zscore.monthly-0c2b1197.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-1643fd19.js → WEIGHT_GIRLS.zscore.weekly-a5bb1ae0.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-5da211cc.js → WEIGHT_GIRLS.zscore.yearly-708edfc1.js} +0 -0
- /package/build/{constants-668cc2e5.js → constants-1b3cea5d.js} +0 -0
- /package/build/{cookieHelper-4f45dbb8.js → cookieHelper-3a0803b2.js} +0 -0
- /package/build/{dataTransform-a7507c47.js → dataTransform-10d78994.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-3e304387.js → BMI_BOYS.percentile.monthly-6198aea9.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-dba58733.js → BMI_BOYS.percentile.weekly-c6afc3e2.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-7d2a5262.js → BMI_BOYS.percentile.yearly-46e36a3d.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-cf9a9acf.js → BMI_BOYS.zscore.monthly-8c7cc30b.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-27bc7023.js → BMI_BOYS.zscore.weekly-981c686f.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-8a1848c9.js → BMI_BOYS.zscore.yearly-fb704618.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-3ae14efa.js → BMI_GIRLS.percentile.monthly-ae936a7e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-23889eb5.js → BMI_GIRLS.percentile.weekly-5cf081ac.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-7d6220a0.js → BMI_GIRLS.percentile.yearly-36aaed23.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-4b4186ab.js → BMI_GIRLS.zscore.monthly-cb709d10.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-4f0e900e.js → BMI_GIRLS.zscore.weekly-925cd031.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-7a6a3589.js → BMI_GIRLS.zscore.yearly-90d4a59f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-b706ec38.js → HEAD CIRCUM_BOYS.percentile.monthly-a729146e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-94c67b1b.js → HEAD CIRCUM_BOYS.percentile.weekly-641f3bf9.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-61b346e7.js → HEAD CIRCUM_BOYS.percentile.yearly-85577958.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-395c7855.js → HEAD CIRCUM_BOYS.zscore.monthly-aedd75db.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-26104ed6.js → HEAD CIRCUM_BOYS.zscore.weekly-0991576d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-5a12ea42.js → HEAD CIRCUM_BOYS.zscore.yearly-8a273cf3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-8ecca100.js → HEAD CIRCUM_GIRLS.percentile.monthly-73fbfc2d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-63eb4486.js → HEAD CIRCUM_GIRLS.percentile.weekly-079e2e6b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-c0036f0f.js → HEAD CIRCUM_GIRLS.percentile.yearly-46469707.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-361f637a.js → HEAD CIRCUM_GIRLS.zscore.monthly-6cdfc88a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-c6d6a792.js → HEAD CIRCUM_GIRLS.zscore.weekly-f0290a90.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-12fd93f6.js → HEAD CIRCUM_GIRLS.zscore.yearly-e02d2992.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-2bede227.js → HEIGHT_BOYS.percentile.monthly-9ee724ae.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-050f52eb.js → HEIGHT_BOYS.percentile.weekly-3e590c72.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-3b87b132.js → HEIGHT_BOYS.percentile.yearly-ff070e64.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-40bef220.js → HEIGHT_BOYS.zscore.monthly-c614cced.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-9aa468e7.js → HEIGHT_BOYS.zscore.weekly-4dcf6850.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-794b66c2.js → HEIGHT_BOYS.zscore.yearly-c72b1285.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-ea31290f.js → HEIGHT_GIRLS.percentile.monthly-1d364b2e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-2aac8847.js → HEIGHT_GIRLS.percentile.weekly-7b1e5c83.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-8e278f70.js → HEIGHT_GIRLS.percentile.yearly-c873e1c3.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-42417d68.js → HEIGHT_GIRLS.zscore.monthly-d75227b1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-76528e2a.js → HEIGHT_GIRLS.zscore.weekly-f9cd377d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-8262a23a.js → HEIGHT_GIRLS.zscore.yearly-89a29d72.js} +0 -0
- /package/build/esm/{Onboarding-4f0cddc4.js → Onboarding-d98b0774.js} +0 -0
- /package/build/esm/{Visible-cfbdbafa.js → Visible-62e55d3e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-496c2978.js → WEIGHT_BOYS.percentile.monthly-a66df410.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-a45d8435.js → WEIGHT_BOYS.percentile.weekly-14172e08.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-fcc0e1d7.js → WEIGHT_BOYS.percentile.yearly-453362aa.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-3c064878.js → WEIGHT_BOYS.zscore.monthly-7a70b8e5.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-6b1ac607.js → WEIGHT_BOYS.zscore.weekly-55e0b627.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-24ec3606.js → WEIGHT_BOYS.zscore.yearly-2c679127.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-9a5d79de.js → WEIGHT_GIRLS.percentile.monthly-9d5d371c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-0c8157ed.js → WEIGHT_GIRLS.percentile.weekly-a0384e79.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-b04ad579.js → WEIGHT_GIRLS.percentile.yearly-bd2ea6af.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-3982ade2.js → WEIGHT_GIRLS.zscore.monthly-64bdb0fc.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-a93fe176.js → WEIGHT_GIRLS.zscore.weekly-56458661.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-ad2557ae.js → WEIGHT_GIRLS.zscore.yearly-41ca2f72.js} +0 -0
- /package/build/esm/{constants-62f03257.js → constants-79a0cf95.js} +0 -0
- /package/build/esm/{cookieHelper-d915d8aa.js → cookieHelper-90d9a31a.js} +0 -0
- /package/build/esm/{dataTransform-bec9ab4f.js → dataTransform-6bb57668.js} +0 -0
- /package/build/esm/{index-5e9f341a.js → index-b4cd461b.js} +0 -0
- /package/build/esm/{index-065a85d6.js → index-c67f25ce.js} +0 -0
- /package/build/esm/{isProduction-4ca4ba88.js → isProduction-ccc557d7.js} +0 -0
- /package/build/esm/{localizeNumberFormat-1d89a8f3.js → localizeNumberFormat-bfa04e69.js} +0 -0
- /package/build/esm/{normalizeLink-5db3e984.js → normalizeLink-21af4f5d.js} +0 -0
- /package/build/esm/{theme-5660ea9e.js → theme-d64df125.js} +0 -0
- /package/build/esm/{translationsContext-ea31a482.js → translationsContext-4a46dcec.js} +0 -0
- /package/build/esm/{tslib.es6-5ea1161d.js → tslib.es6-e30da8fd.js} +0 -0
- /package/build/esm/{types-db61e319.js → types-7a43b031.js} +0 -0
- /package/build/esm/{useIsInit-a958fa22.js → useIsInit-2c0f3461.js} +0 -0
- /package/build/esm/{useOutsideClick-904bbdea.js → useOutsideClick-46d61ca1.js} +0 -0
- /package/build/esm/{useScrollbarSize-e44804a5.js → useScrollbarSize-538091d5.js} +0 -0
- /package/build/esm/{useUniqueId-77ec7ac6.js → useUniqueId-a557d683.js} +0 -0
- /package/build/esm/{utils-53d109b3.js → utils-661f0fab.js} +0 -0
- /package/build/{index-026bb445.js → index-7c52b547.js} +0 -0
- /package/build/{index-cd53c242.js → index-d071c06b.js} +0 -0
- /package/build/{isProduction-5377bba0.js → isProduction-8235efe3.js} +0 -0
- /package/build/{localizeNumberFormat-6d3a030b.js → localizeNumberFormat-32d87ffb.js} +0 -0
- /package/build/{normalizeLink-f0f43c19.js → normalizeLink-3648c728.js} +0 -0
- /package/build/{theme-3d7b7e57.js → theme-b350d7e4.js} +0 -0
- /package/build/{translationsContext-3005d851.js → translationsContext-fc7a85ee.js} +0 -0
- /package/build/{tslib.es6-ff6d8bab.js → tslib.es6-87988b7e.js} +0 -0
- /package/build/{types-4a2937e6.js → types-9624c09a.js} +0 -0
- /package/build/{useIsInit-771c7f0e.js → useIsInit-57c29596.js} +0 -0
- /package/build/{useOutsideClick-0e005c18.js → useOutsideClick-40ff1be4.js} +0 -0
- /package/build/{useScrollbarSize-e9659238.js → useScrollbarSize-5cdd7d76.js} +0 -0
- /package/build/{useUniqueId-3c96cf52.js → useUniqueId-d28e0617.js} +0 -0
- /package/build/{utils-a25ea61c.js → utils-27b7214a.js} +0 -0
package/build/index-5140044f.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("react"),t=require("./index-2479abce.js"),a=require("./index.styled-6e88c577.js"),l=require("./utils-a25ea61c.js"),n=require("./index-bcc60c35.js"),r=require("./useUniqueId-3c96cf52.js"),o=require("./gAssets.js"),i=require("./theme-3d7b7e57.js"),s=require("./index.styled-06bff8be.js"),d=require("./tslib.es6-ff6d8bab.js"),c=require("lodash/throttle"),u=require("keen-slider/react"),m=require("dayjs");require("./screenSizeContext-2a70b050.js"),require("styled-components");var f=require("./index-d3826236.js"),g=require("./isProduction-5377bba0.js"),p=require("./Onboarding-5e427213.js"),h=require("./useTranslations-b15251a8.js"),v=require("date-fns"),y=require("./index-b24d30a4.js"),E=require("./index-8515331b.js"),b=require("./index-28df8c27.js"),C=require("@mantine/core");require("./index.styled-360b806d.js"),require("./index-cd53c242.js");var w=require("./index-dfb7b798.js");require("./index-76781aaa.js"),require("@mantine/hooks");var k=require("./types-4a2937e6.js"),S=require("./index.styled-6da69873.js"),x=require("./index-6783d880.js"),L=require("./index-20ec378a.js"),T=require("react-hook-form"),N=require("./index-023543bd.js"),D=require("./useHealthToolCache-e8385f9f.js"),B=require("./index-ff37193f.js"),_=require("./dataTransform-28101413.js"),M=require("./useOutsideClick-0e005c18.js"),A=require("date-fns/locale/en-US"),I=require("date-fns/locale/id"),P=require("date-fns/locale/vi"),F=require("date-fns/locale/zh-TW"),z=require("./getSocialList-a32f7622.js");function O(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var j=O(e),H=O(c),$=O(m),G=O(A),W=O(I),R=O(P),U=O(F),V="CHw-fZZ",q="_03U6VRS",Z="EO828Vv";const Y=({pagesAmount:t,activePage:n,handlePageChange:r,handleClick:o,href:i,queryPageName:s="page"})=>{const d=[...Array(t)].map(((e,t)=>t+1)),[c,u]=e.useState(n<=4?d.slice(0,5):n>=d.length-3?d.slice(d.length-5,d.length):d.slice(n-2,n+1));return e.useEffect((()=>{n<=4?u(d.slice(0,5)):n>=d.length-3?u(d.slice(d.length-5,d.length)):u(d.slice(n-2,n+1))}),[n]),j.default.createElement(e.Fragment,null,n>4&&j.default.createElement(e.Fragment,null,j.default.createElement(a.StyledPaginationBlock,{onClick:()=>r(1)},i?j.default.createElement("a",{href:i,onClick:o},1):1),j.default.createElement(a.StyledPaginationBlock,null,"...")),c.map((e=>j.default.createElement(a.StyledPaginationBlock,{key:`pagination+${e}`,"data-page-active":e===n||void 0,onClick:()=>r(e)},i?j.default.createElement("a",{href:l.formatUrlWithPageParam(i,e,s),onClick:o},e):e))),n<d.length-3&&j.default.createElement(e.Fragment,null,j.default.createElement(a.StyledPaginationBlock,null,"..."),j.default.createElement(a.StyledPaginationBlock,{onClick:()=>r(d.length)},i?j.default.createElement("a",{href:l.formatUrlWithPageParam(i,d.length,s),onClick:o},d.length):d.length)))},Q=({label:e,name:t,checked:l,className:n,isDisabled:r,onChange:o,value:i,isRectangle:s,inputDataTestId:d,siteType:c})=>j.default.createElement(a.StyledCheckbox,{className:n,"data-disabled":r||void 0,"data-is-rectangle":s||void 0,"data-label-text":e,"data-theme":c},j.default.createElement("input",{type:"checkbox",checked:l,name:t,onChange:()=>o(i,!l),disabled:r,value:i,id:`${t}-${i}`,"data-label-text":e,"data-testid":d}),!s&&j.default.createElement("label",{htmlFor:`${t}-${i}`},e)),K=e=>j.default.createElement("svg",Object.assign({},e,{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),j.default.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#D2D6DC"})),X=e=>j.default.createElement("svg",Object.assign({},e,{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),j.default.createElement("path",{d:"M16.0002 23.0266L22.8935 27.1866C23.4002 27.4933 24.0268 27.04 23.8935 26.4666L22.0668 18.6266L28.1468 13.36C28.5868 12.9733 28.3602 12.24 27.7602 12.1866L19.7468 11.5066L16.6135 4.11996C16.3868 3.57329 15.6135 3.57329 15.3868 4.11996L12.2535 11.5066L4.24016 12.1866C3.65349 12.24 3.41349 12.9733 3.86682 13.36L9.94682 18.6266L8.12016 26.4666C7.98682 27.04 8.61349 27.4933 9.12016 27.1866L16.0002 23.0266Z",fill:"#FFC326"})),J=e=>{const t=r.useUniqueId();return j.default.createElement("svg",Object.assign({},e,{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),j.default.createElement("path",{d:"M12.0001 17.2697L17.1701 20.3897C17.5501 20.6197 18.0201 20.2797 17.9201 19.8497L16.5501 13.9697L21.1101 10.0197C21.4401 9.72973 21.2701 9.17973 20.8201 9.13973L14.8101 8.62973L12.4601 3.08973C12.2901 2.67973 11.7101 2.67973 11.5401 3.08973L9.19006 8.62973L3.18006 9.13973C2.74006 9.17973 2.56006 9.72973 2.90006 10.0197L7.46006 13.9697L6.09006 19.8497C5.99006 20.2797 6.46006 20.6197 6.84006 20.3897L12.0001 17.2697Z",fill:"#E4E8EC"}),j.default.createElement("mask",{id:t,maskUnits:"userSpaceOnUse",x:"2",y:"0",width:"10",height:"24"},j.default.createElement("rect",{x:"2",width:"10",height:"24",fill:"#C4C4C4"})),j.default.createElement("g",{mask:`url(#${t})`},j.default.createElement("path",{d:"M11.9998 17.2697L17.1698 20.3897C17.5498 20.6197 18.0198 20.2797 17.9198 19.8497L16.5498 13.9697L21.1098 10.0197C21.4398 9.72973 21.2698 9.17973 20.8198 9.13973L14.8098 8.62973L12.4598 3.08973C12.2898 2.67973 11.7098 2.67973 11.5398 3.08973L9.18981 8.62973L3.17981 9.13973C2.73981 9.17973 2.55981 9.72973 2.89981 10.0197L7.45981 13.9697L6.08981 19.8497C5.98981 20.2797 6.45981 20.6197 6.83981 20.3897L11.9998 17.2697Z",fill:"#FFC326"})))};var ee="PiqKaXk",te="HgbW6-m",ae="_6lkfLYy",le="j7c-onH";const ne=({avatarImg:e,authorName:a,authorLink:l,uploadTime:n,size:r})=>j.default.createElement("div",{className:le},j.default.createElement("div",{className:"author"},j.default.createElement("div",{className:"avatar","data-size":r},e),j.default.createElement("div",{className:"poster","data-is-disabled-url":!l},j.default.createElement(t.Text,{size:"lg"===r?"p3":"p4"},j.default.createElement("a",{href:l},j.default.createElement("span",{className:"name"},a),"•"," "),j.default.createElement("span",null,n))))),re=({isMobile:e,avatarImg:l,name:n,link:r,size:o="lg",specialty:s})=>j.default.createElement("div",{className:le},j.default.createElement("div",{className:"author"},j.default.createElement("div",{className:"expert-avatar","data-size":o},l),j.default.createElement("div",{className:"expert","data-is-disabled-url":!r},e?j.default.createElement("a",{href:r},"lg"===o?j.default.createElement(j.default.Fragment,null,j.default.createElement(a.Heading,{tag:"h6",className:"expert__name",color:i.theme.colors.gray600},n),j.default.createElement(t.Text,{color:i.theme.colors.gray500,size:"p3",className:"specialty"},s)):j.default.createElement(j.default.Fragment,null,j.default.createElement(a.Heading,{tag:"h6",className:"expert__name",color:i.theme.colors.gray600},n))):j.default.createElement("a",{href:r},"lg"===o?j.default.createElement(j.default.Fragment,null,j.default.createElement(a.Heading,{tag:"h6",className:"expert__name",color:i.theme.colors.gray600},n),j.default.createElement(t.Text,{color:i.theme.colors.gray500,size:"p3",className:"specialty"},s)):j.default.createElement(j.default.Fragment,null,j.default.createElement("h6",{color:i.theme.colors.gray600,className:`${ee} expert__name`},n),j.default.createElement(t.Text,{color:i.theme.colors.gray500,size:"p4",className:"specialty"},s))))));var oe=Object.freeze({__proto__:null,SideMenu:s.SideMenu,SideHeader:s.SideHeader,UserInfo:s.UserInfo,MenuLink:s.MenuLink});const ie=({status:e})=>"inActive"===e?j.default.createElement("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j.default.createElement("circle",{cx:"3",cy:"3",r:"3",fill:"#ADB3BC"})):"active"===e?j.default.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j.default.createElement("circle",{cx:"6",cy:"6",r:"4",fill:"#2D87F3"}),j.default.createElement("circle",{cx:"6",cy:"6",r:"5.5",stroke:"#2D87F3"})):"done"===e?j.default.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j.default.createElement("path",{d:"M6 12C9.31371 12 12 9.31371 12 6C12 2.68629 9.31371 0 6 0C2.68629 0 0 2.68629 0 6C0 9.31371 2.68629 12 6 12Z",fill:"#00B16A"}),j.default.createElement("path",{d:"M8.76061 4.20029L4.80061 7.80029L3.00061 6.16392",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})):j.default.createElement("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j.default.createElement("circle",{cx:"3",cy:"3",r:"3",fill:"#ADB3BC"})),se=({isDisabled:e,isLeft:t,onClick:a,className:l,scheme:n="hellosites"})=>j.default.createElement(s.StyledArrow,{onClick:a,"data-is-disabled":e,"data-is-left":t,className:l},j.default.createElement("svg",{width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t?j.default.createElement("path",{d:"M2.92902 6.00015L6.75002 2.17915C7.16402 1.76515 7.16402 1.09315 6.75002 0.679152C6.33602 0.265152 5.66402 0.265152 5.25002 0.679152L0.636023 5.29315C0.245023 5.68415 0.245023 6.31715 0.636023 6.70715L5.25002 11.3212C5.66402 11.7352 6.33602 11.7352 6.75002 11.3212C7.16402 10.9072 7.16402 10.2352 6.75002 9.82115L2.92902 6.00015Z",fill:"hellosites"===n?"#595959":"#E55C8A"}):j.default.createElement("path",{d:"M5.07095 6.00015L1.24995 2.17915C0.835953 1.76515 0.835953 1.09315 1.24995 0.679152C1.66395 0.265152 2.33595 0.265152 2.74995 0.679152L7.36395 5.29315C7.75495 5.68415 7.75495 6.31715 7.36395 6.70715L2.74995 11.3212C2.33595 11.7352 1.66395 11.7352 1.24995 11.3212C0.835953 10.9072 0.835953 10.2352 1.24995 9.82115L5.07095 6.00015Z",fill:"hellosites"===n?"#595959":"#E55C8A"})));var de=Object.freeze({__proto__:null,Table:s.Table,Cell:s.Cell,Head:s.Head,Row:s.Row,Body:s.Body});const ce=({locale:a,onClick:l,siteType:r,pageUrl:o})=>{const{t:d}=h.useTranslations(),[c,u]=e.useState(new Date);return j.default.createElement(j.default.Fragment,null,j.default.createElement(s.StyledLastPeriodFormContainer,{className:"input-form","data-is-side":!0},"marryBaby"===r?j.default.createElement(s.StyledTextField,{label:d("dueDatePage.conceptionDate"),name:"date",size:"md",value:s.DateToInputValue(c),CustomInput:j.default.createElement(s.DatePicker,{onChange:e=>{u(e)},placeholder:"dd/mm/yyyy",pickedDate:c,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:e=>j.default.createElement(y.Input,Object.assign({className:"due-date-input",name:"birthday",size:"md"},e,{value:c&&$.default(c).format(S.DUE_DATE_FORMAT)}))}),actionIcon:j.default.createElement(b.Icon.CalendarMB,{size:32})}):j.default.createElement(y.Input,{label:j.default.createElement(t.Text,{size:"n1",type:"bold",color:i.theme.colors.gray600,style:{marginBottom:"9px",flex:"1"}},d("dueDatePage.conceptionDate")),value:s.DateToInputValue(c),name:"date",size:"md",className:"due-date-input",CustomInput:j.default.createElement(s.DatePicker,{customInput:e=>j.default.createElement("input",Object.assign({type:"date",className:"due-date-input"},e,{value:s.DateToInputValue(c)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:a,pickedDate:c,displayDateFormat:k.DATE_FORMAT,onChange:e=>{u(e)},placeholder:"placeholder"})})),j.default.createElement(n.Button,{className:"due-date-calculate-button",size:"lg",color:"marryBaby"===r?"secondary":"primary",theme:r,dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:o,onClick:()=>{l(s.getDueDateConception(c),`${f.QUERY_HEALTH_TOOL.type}=1&sd=${v.format(c,s.API_DATE_FORMAT)}&${f.QUERY_HEALTH_TOOL.additional}= `)},role:"button"},d("dueDatePage.lastPeriod.calculate")))},ue=({locale:a,onClick:l,siteType:r,pageUrl:o})=>{const{t:d}=h.useTranslations(),[c,u]=e.useState(new Date),[m,g]=e.useState("3");return j.default.createElement(j.default.Fragment,null,j.default.createElement(s.StyledLastPeriodFormContainer,{className:"input-form","data-is-side":!0},"marryBaby"===r?j.default.createElement(s.StyledTextField,{label:d("dueDatePage.ivf.transferDate"),name:"date",size:"md",value:s.DateToInputValue(c),CustomInput:j.default.createElement(s.DatePicker,{onChange:e=>{u(e)},placeholder:"dd/mm/yyyy",pickedDate:c,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:e=>j.default.createElement(y.Input,Object.assign({className:"due-date-input",name:"birthday",size:"md"},e,{value:c&&$.default(c).format(S.DUE_DATE_FORMAT)}))}),actionIcon:j.default.createElement(b.Icon.CalendarMB,{size:32})}):j.default.createElement(y.Input,{label:j.default.createElement(t.Text,{size:"n1",type:"bold",color:i.theme.colors.gray700,style:{marginBottom:"9px",flex:"1"}},d("dueDatePage.ivf.transferDate")),value:s.DateToInputValue(c),name:"date",size:"md",className:"due-date-input",CustomInput:j.default.createElement(s.DatePicker,{customInput:e=>j.default.createElement("input",Object.assign({type:"date",className:"due-date-input"},e,{value:s.DateToInputValue(c)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:a,pickedDate:c,displayDateFormat:k.DATE_FORMAT,onChange:e=>{u(e)},placeholder:"placeholder"})})),j.default.createElement("div",{style:{width:"100%"}},j.default.createElement(s.RadioGroup,{id:"radio-transfer-date",type:"circle",direction:"vertical",size:"small",group:"group1",value:m,onChange:e=>g(e),options:[{value:"3",label:d("dueDatePage.ivf.transferDateRadio",{number:3})},{value:"5",label:d("dueDatePage.ivf.transferDateRadio",{number:5})}]})),j.default.createElement(n.Button,{className:"due-date-calculate-button",size:"lg",color:"marryBaby"===r?"secondary":"primary",theme:r,dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:o,onClick:()=>{l(s.getDueDateIVF(c,Number(m)),`${f.QUERY_HEALTH_TOOL.type}=2&${f.QUERY_HEALTH_TOOL.startDate}=${v.format(c,s.API_DATE_FORMAT)}&${f.QUERY_HEALTH_TOOL.additional}=${m}`)},role:"button"},d("dueDatePage.lastPeriod.calculate")))},me=({locale:a,onClick:l,siteType:r,pageUrl:o})=>{const{t:d}=h.useTranslations(),[c,u]=e.useState(28),[m,g]=e.useState(new Date);return j.default.createElement(j.default.Fragment,null,j.default.createElement(s.StyledLastPeriodFormContainer,{className:"input-form","data-is-side":!0},"marryBaby"===r?j.default.createElement(s.StyledTextField,{label:d("dueDatePage.lastPeriod.lastPeriodLabel"),name:"date",size:"md",value:s.DateToInputValue(m),CustomInput:j.default.createElement(s.DatePicker,{onChange:e=>{g(e)},placeholder:"dd/mm/yyyy",pickedDate:m,displayDateFormat:"dd/MM/yyyy",disabledDays:{before:new Date((new Date).getTime()-24192e6)},customInput:e=>j.default.createElement(y.Input,Object.assign({name:"birthday",size:"md"},e,{value:m&&$.default(m).format(S.DUE_DATE_FORMAT)}))}),actionIcon:j.default.createElement(b.Icon.CalendarMB,{size:32})}):j.default.createElement(y.Input,{className:"input-section due-date-input",label:j.default.createElement(t.Text,{size:"n1",type:"bold",color:i.theme.colors.gray600,style:{marginBottom:"9px",flex:"1"}},d("dueDatePage.lastPeriod.lastPeriodLabel")),value:s.DateToInputValue(m),name:"date",size:"md",CustomInput:j.default.createElement(s.DatePicker,{customInput:e=>j.default.createElement("input",Object.assign({type:"date",className:"due-date-input"},e,{value:s.DateToInputValue(m)})),disabledDays:{before:new Date((new Date).getTime()-24192e6)},locale:a,pickedDate:m,displayDateFormat:k.DATE_FORMAT,onChange:e=>{g(e)},placeholder:"placeholder"})})),j.default.createElement("div",{className:"slider-due-date","data-theme":"marryBaby"===r?"marryBaby":""},"marryBaby"===r?j.default.createElement(x.MarryBabyText,{type:"bodytext-3",color:i.theme.mbColors.midGray},d("dueDatePage.lastPeriod.periodLengthLabel")):j.default.createElement(t.Text,{size:"n1",type:"bold",color:i.theme.colors.gray600,style:{marginBottom:"0.5rem"}},d("dueDatePage.lastPeriod.periodLengthLabel")),j.default.createElement("div",{className:"slider-outer-wrapper"},"marryBaby"===r&&j.default.createElement(t.Text,{size:"s3",type:"bold",color:i.theme.colors.gray600},c),j.default.createElement(L.Slider,{containerStyle:{flex:1},min:20,max:40,step:1,labelAlwaysOn:"marryBaby"!==r,withControl:"marryBaby"!==r,onChange:u,value:c,label:"marryBaby"!==r?void 0:null}))),j.default.createElement(n.Button,{dataEventCategory:"Health Tool",dataEventAction:"Due Date",dataEventLabel:o,className:"due-date-calculate-button",size:"lg",color:"marryBaby"===r?"secondary":"primary",theme:r,onClick:()=>l(s.getDueDateLastPeriod(m,c),`${f.QUERY_HEALTH_TOOL.type}=0&${f.QUERY_HEALTH_TOOL.startDate}=${v.format(m,s.API_DATE_FORMAT)}&${f.QUERY_HEALTH_TOOL.additional}=${c}`),role:"button"},d("dueDatePage.lastPeriod.calculate")))},fe=({onSubmitDueDate:a,locale:l,isSide:n,siteType:r})=>{const{t:o}=h.useTranslations(),[d,c]=e.useState(s.DueDateCalculatorType.lastPeriod),u=[{value:s.DueDateCalculatorType.lastPeriod,label:o("dueDatePage.lastPeriod")},{value:s.DueDateCalculatorType.conception,label:o("dueDatePage.conceptionDate")},{value:s.DueDateCalculatorType.IVF,label:o("dueDatePage.ivf")}],m=e.useMemo((()=>"undefined"!=typeof window?window.location.href:""),[]);return j.default.createElement(s.StyledInputWrapper,null,j.default.createElement(s.StyledMethodContainer,{className:"input-form input-section","data-is-side":!0},"marryBaby"===r?j.default.createElement(s.StyledDropDown,{groupedWithLabel:o("dueDatePage.calculationMethod"),options:u,placeholder:o("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"lg",value:u[d],onChange:e=>{c(e.value)}}):j.default.createElement(j.default.Fragment,null,j.default.createElement(t.Text,{size:"n1",type:"bold",color:i.theme.colors.gray600,style:{marginBottom:"9px",flex:"1"}},o("dueDatePage.calculationMethod")),j.default.createElement(s.StyledMethodSwitcherContainer,{"data-is-side":n},j.default.createElement(s.Dropdown,{options:u,placeholder:o("dueDatePage.lastPeriod"),id:"due-date-dropdown",size:"md",value:u[d],onChange:e=>{c(e.value)}})))),d===s.DueDateCalculatorType.lastPeriod?j.default.createElement(me,{locale:l,onClick:a,isSide:n,siteType:r,pageUrl:m}):null,d===s.DueDateCalculatorType.conception?j.default.createElement(ce,{locale:l,onClick:a,isSide:n,siteType:r,pageUrl:m}):null,d===s.DueDateCalculatorType.IVF?j.default.createElement(ue,{locale:l,onClick:a,isSide:n,siteType:r,pageUrl:m}):null)};function ge({weight:e,height:t}){const a=t/100,l=e;return Math.round(l/(a*a)*10)/10}const pe=({value:a,onChange:l,onSubmit:n,disabled:r,bmiGenerated:o,bmiUnit:c,locale:u,isSide:m})=>{var g,p,v,y;const[E,C]=e.useState(!1),{control:k,handleSubmit:x,setValue:L,watch:B}=T.useForm(),_=B(),{t:M}=h.useTranslations(),{gender:A=!1,age:I=!1,height:P=!1,weight:F=!1,objective:z=!0}=r||{},{getHealthToolLink:O}=D.useHealthToolsCache(u),H=e.useMemo((()=>O(S.HEALTH_TOOL_TYPE.OVULATION)),[O]),$=e.useMemo((()=>[{value:"male",label:M("gender.male"),content:j.default.createElement(b.Icon.GenderChooseBoy,null)},{value:"female",label:M("gender.female"),content:j.default.createElement(b.Icon.GenderChooseGirl,null)}]),[]),G=e.useMemo((()=>[{value:"lose-weight",label:M("bmi.objective.loseWeight")},{value:"maintain-weight",label:M("bmi.objective.maintainWeight")},{value:"gain-weight",label:M("bmi.objective.gainWeight")}]),[]),W=()=>{C(!0)};return e.useEffect((()=>{Object.keys(a||{}).forEach((e=>{L(e,null==a?void 0:a[e],{shouldTouch:!1,shouldDirty:!1,shouldValidate:!1})}))}),[a]),e.useEffect((()=>{l&&l(_)}),[_]),j.default.createElement(s.StyledContainer$1,null,j.default.createElement("form",{onSubmit:x((e=>d.__awaiter(void 0,void 0,void 0,(function*(){const t=c.heightConvert(e.height),a=c.weightConvert(e.weight),l={gender:e.gender,age:e.age,height:t,weight:a,bmi:ge({height:t,weight:a})};z||(l.objective=e.objective),W(),n&&n(l)}))),W)},!A&&j.default.createElement(s.FormControl,{"data-is-side":m},j.default.createElement(T.Controller,{name:"gender",control:k,defaultValue:"male",render:({field:{name:e,value:t,onChange:a},fieldState:{error:l}})=>j.default.createElement(s.StyledInput,{size:"md",name:e,label:o.gender.label,CustomInput:j.default.createElement(N.RadioImageGroup,{options:$,value:t,onChange:e=>a(e),className:"bmi--input-radio_gender "+(m?"bmi-side-embed":"")}),errorMessage:E?null==l?void 0:l.message:"",className:"bmi--input bmi--input-gender"})})),j.default.createElement(s.StyledRow,{"data-is-side":m},!I&&j.default.createElement(s.FormControl,null,j.default.createElement(T.Controller,{name:"age",control:k,rules:null===(g=o.age)||void 0===g?void 0:g.rule,render:({field:{name:e,value:a,onChange:l},fieldState:{error:n}})=>j.default.createElement(w.Input.Number,{label:j.default.createElement(t.Text,{size:"label2",type:"bold",color:i.theme.colors.gray600},o.age.label),placeholder:M("healthtool.placeholder.age"),name:e,value:a,onChange:l,error:E?null==n?void 0:n.message:"",min:0})})),!P&&j.default.createElement(s.FormControl,null,j.default.createElement(T.Controller,{name:"height",control:k,rules:null===(p=o.height)||void 0===p?void 0:p.rule,render:({field:{name:e,value:a,onChange:l},fieldState:{error:n}})=>j.default.createElement(w.Input.Number,{label:j.default.createElement(t.Text,{size:"label2",type:"bold",color:i.theme.colors.gray600},o.height.label),placeholder:M("pwg.placeholder.height"),name:e,value:a,onChange:l,error:E?null==n?void 0:n.message:"",min:0})})),!F&&j.default.createElement(s.FormControl,null,j.default.createElement(T.Controller,{name:"weight",control:k,rules:null===(v=o.weight)||void 0===v?void 0:v.rule,render:({field:{name:e,value:a,onChange:l},fieldState:{error:n}})=>j.default.createElement(w.Input.Number,{label:j.default.createElement(t.Text,{size:"label2",type:"bold",color:i.theme.colors.gray600},o.weight.label),placeholder:M("pwg.placeholder.weight"),name:e,value:a,onChange:l,error:E?null==n?void 0:n.message:"",precision:1,min:0})})),!z&&j.default.createElement(s.FormControl,null,j.default.createElement(T.Controller,{name:"objective",control:k,defaultValue:"lose-weight",rules:null===(y=o.objective)||void 0===y?void 0:y.rule,render:({field:{name:e,value:t,onChange:a},fieldState:{error:l}})=>j.default.createElement(s.StyledInput,{size:"md",name:e,label:o.objective.label,CustomInput:j.default.createElement(s.RadioGroup,{id:"bmi-objective",className:"bmi-objective",type:"circle",direction:"vertical",size:"small",group:"group1",options:G,value:t,onChange:a}),errorMessage:E?null==l?void 0:l.message:"",className:"bmi--input bmi--input-objective"})}))),j.default.createElement("div",{style:{display:"flex"}},j.default.createElement(s.StyledButton,{size:"lg",isBlock:!0,className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMI",dataEventLabel:`https://${f.domainLocales[u]}/${H}`},M("bmi.submit")))))},he=({value:a,options:l,className:n,direction:r="horizontal",onChange:o,isDisabled:i})=>{const[d,c]=e.useState(a);return j.default.createElement(s.StyledRadioImageGroup,{className:n,"data-direction":r},l.map(((e,l)=>j.default.createElement(s.StyledRadioImageItem,{"data-selected":(a||d)===e.value,"data-disabled":i,key:`health-tool${l}`,onClick:()=>{var t;t=e.value,i||(c(t),o&&o(t))}},j.default.createElement("div",null,j.default.createElement("img",{src:(a||d)===e.value?e.imageActive:e.image,className:"gender-image",alt:""}),e.label&&j.default.createElement(t.Text,{type:"bold",className:"radio-group-item-heading",size:"label1"},e.label))))))},ve=({info:a,className:l,style:n,onChange:r,errorMessage:o={},locale:d})=>{const{t:c}=h.useTranslations(),[u,m]=e.useState(new Date),[f,g]=e.useState({age:!1,rate:!1});return e.useEffect((()=>{g({age:!1,rate:!1})}),[o]),j.default.createElement(s.StyledContainer$2,{style:n,className:l},j.default.createElement(y.Input,{className:"input-section due-date-input",label:j.default.createElement(t.Text,{size:"n1",type:"bold",color:i.theme.colors.gray600,style:{marginBottom:"9px",flex:"1"}},c("targetHeartRate.ageInput")),value:s.DateToInputValue(u),name:"date",size:"md",CustomInput:j.default.createElement(s.DatePicker,{customInput:e=>j.default.createElement("input",Object.assign({type:"date",className:"due-date-input"},e,{value:s.DateToInputValue(u)})),disabledDays:{after:new Date(v.addDays(new Date,0))},locale:d,pickedDate:u,displayDateFormat:"dd/MM/yyyy",onChange:e=>{(e=>{m(e),g((e=>Object.assign(Object.assign({},e),{age:!0})));const t=Object.assign(Object.assign({},a),{age:v.format(new Date(e),s.API_DATE_FORMAT)});r&&r(t)})(e)},placeholder:"placeholder"}),errorMessage:f.age?"":o.age}))},ye=({info:a,className:l,style:n,onChange:r,errorMessage:o={},locale:d,onClick:c,isSide:u})=>{const{t:m}=h.useTranslations(),[g,p]=e.useState({age:!1,height:!1,weight:!1}),{getHealthToolLink:v}=D.useHealthToolsCache(d),y=e.useMemo((()=>v(S.HEALTH_TOOL_TYPE.OVULATION)),[v]),[E,C]=e.useState("male"),k=e.useMemo((()=>[{value:"male",label:m("gender.male"),content:j.default.createElement(b.Icon.GenderChooseBoy,null)},{value:"female",label:m("gender.female"),content:j.default.createElement(b.Icon.GenderChooseGirl,null)}]),[]),x=(e,t)=>{""!==e&&(isNaN(e)||isNaN(parseFloat(e)))||t(e)},L=e=>{var t,l;l=e=>{p((e=>Object.assign(Object.assign({},e),{age:!0})));const t=Object.assign(Object.assign({},a),{age:e});r&&r(t)},""!==(t=e)&&(isNaN(t)||isNaN(parseFloat(t))||t.includes("."))||l(t)};return e.useEffect((()=>{r&&r(Object.assign(Object.assign({},a),{objective:"lose-fat",activeLevel:"sedentary"}))}),[]),e.useEffect((()=>{p({age:!1,height:!1,weight:!1})}),[o]),j.default.createElement(s.StyledContainer$3,{style:n,className:l},j.default.createElement(s.FormControl$2,{"data-is-side":u},j.default.createElement(s.StyledInput$2,{size:"md",name:"gender",label:m("bmi.selectGender"),CustomInput:j.default.createElement(N.RadioImageGroup,{options:k,value:E,onChange:e=>C(e),className:"bmi--input-radio_gender "+(u?"bmi-side-embed":"")}),className:"bmi--input bmi--input-gender"})),j.default.createElement(s.StyledRow$2,{"data-is-side":u},j.default.createElement(s.FormControl$2,null,j.default.createElement(w.Input.Number,{label:j.default.createElement(t.Text,{size:"label2",type:"bold",color:i.theme.colors.gray600},m("bmi.ageInput")," ",j.default.createElement(t.Text,{size:"label2",type:"bold",color:i.theme.colors.gray300,as:"span"},m("bmi.ageInput.desc"))),placeholder:m("healthtool.placeholder.age"),value:Number(a.age),onChange:e=>L(String(e)),error:g.age?"":o.age,min:0})),j.default.createElement(s.FormControl$2,null,j.default.createElement(w.Input.Number,{label:j.default.createElement(t.Text,{size:"label2",type:"bold",color:i.theme.colors.gray600},m("bmi.heightInput")," ",j.default.createElement(t.Text,{size:"label2",type:"bold",color:i.theme.colors.gray300,as:"span"},m("bmi.heightInput.desc"))),placeholder:m("pwg.placeholder.height"),value:Number(a.height),onChange:e=>{return t=String(e),void x(t,(e=>{p((e=>Object.assign(Object.assign({},e),{height:!0})));const t=Object.assign(Object.assign({},a),{height:e});r&&r(t)}));var t},error:g.height?"":o.height,min:0})),j.default.createElement(s.FormControl$2,null,j.default.createElement(w.Input.Number,{label:j.default.createElement(t.Text,{size:"label2",type:"bold",color:i.theme.colors.gray600},m("bmi.weightInput")," ",j.default.createElement(t.Text,{size:"label2",type:"bold",color:i.theme.colors.gray300,as:"span"},m("bmi.weightInput.desc"))),placeholder:m("pwg.placeholder.weight"),value:Number(a.weight),onChange:e=>{return t=String(e),p((e=>Object.assign(Object.assign({},e),{weight:!0}))),void x(t,(e=>{const t=Object.assign(Object.assign({},a),{weight:e});r&&r(t)}));var t},error:g.weight?"":o.weight,min:0,precision:1}))),j.default.createElement("div",{style:{display:"flex"}},j.default.createElement(s.StyledButton$2,{size:"lg",isBlock:!0,className:"bmi-btn bmi--btn-submit",dataEventCategory:"Health Tool",dataEventAction:"BMR",dataEventLabel:`https://${f.domainLocales[d]}/${y}`,onClick:()=>{c(E)}},m("bmi.submit"))))};var Ee="eM8ChWU",be="KAx1aqi",Ce="QcFfKPB",we="brbyNAY",ke="W65hTnn";const Se=({src:e,title:t,backgroundSrc:l,className:n,reviewedSection:r,isSide:o})=>j.default.createElement("div",{className:`${Ee} ${n||""}`},j.default.createElement("div",{className:be,style:{backgroundImage:`url("${l}")`}},j.default.createElement("div",{className:Ce,"data-is-side":o},j.default.createElement("div",{className:we,"data-is-side":o},j.default.createElement(a.Heading,{tag:"h4",color:"white"},t),r),j.default.createElement("div",{className:ke},j.default.createElement("img",{src:e||"",style:{objectFit:"contain"},alt:t})))));var xe="zvE9IoJ",Le="njDC-ia",Te="ESkUhe9",Ne="wZLIQYa";const De=({backgroundDesktopSrc:e,backgroundMobileSrc:l,title:n,className:r,isSide:o,ovulationContent:s})=>{var d,c,u;const{t:m}=h.useTranslations(),f=_.formatUserProfileUrl(null==s?void 0:s.reviewed_by);return j.default.createElement("div",{className:`${xe} ${r}`,"data-is-side":o},j.default.createElement("div",{className:Le,style:{backgroundImage:`url('${l||e}')`}},j.default.createElement("div",{className:Ne},j.default.createElement(a.Heading,{tag:"h5",color:"white"},n),(null===(d=null==s?void 0:s.reviewed_by)||void 0===d?void 0:d.display_name)?j.default.createElement(t.Text,{size:"n1",color:"white",style:{marginTop:"0.3rem"}},j.default.createElement("span",{dangerouslySetInnerHTML:{__html:m("articlePage.articleReviewerBy",{name:`<a\n style="color: white"\n href="${f}"\n >\n ${s.reviewed_by.display_name}\n </a>`})}}),j.default.createElement("span",null,m("tools.heading.on")),j.default.createElement("span",null,null==s?void 0:s.reviewed_date)):null),j.default.createElement("div",{className:Te,"data-is-side":o},j.default.createElement("img",{src:(null==s?void 0:s.featured_image)||"",style:{width:"100%",objectFit:"contain",marginTop:"20px"},alt:n}))),j.default.createElement(Se,{className:"desktop-only",src:(null==s?void 0:s.featured_image)||"",backgroundSrc:e||l||"",title:n,reviewedSection:(null===(c=null==s?void 0:s.reviewed_by)||void 0===c?void 0:c.display_name)&&""!==(null===(u=null==s?void 0:s.reviewed_by)||void 0===u?void 0:u.display_name)&&j.default.createElement(t.Text,{size:"n1",color:i.theme.colors.white,style:{marginTop:12}},j.default.createElement("span",{dangerouslySetInnerHTML:{__html:m("toolPage.toolReviewer",{expert_name:`<a\n style="color: white"\n href="${f}"\n >\n ${s.reviewed_by.display_name}\n </a>`,date:null==s?void 0:s.reviewed_date})}}),j.default.createElement("span",null)),isSide:o}))},Be=({siteType:t,info:l,onChange:n,errorMessage:r={}})=>{const{t:o}=h.useTranslations(),[d,c]=e.useState({weightBefore:!1,height:!1,weight:!1}),[u,m]=e.useState(0),f=e.useRef(null);e.useEffect((()=>{var e;m(null===(e=f.current)||void 0===e?void 0:e.clientHeight)}));const g=(e,t)=>{""!==e&&(isNaN(e)||isNaN(parseFloat(e)))||t(e)},p=e=>{g(e,(e=>{c((e=>Object.assign(Object.assign({},e),{weightBefore:!0})));const t=Object.assign(Object.assign({},l),{weightBefore:e});n&&n(t)}))},v=e=>{g(e,(e=>{c((e=>Object.assign(Object.assign({},e),{height:!0})));const t=Object.assign(Object.assign({},l),{height:e});n&&n(t)}))},E=e=>{g(e,(e=>{c((e=>Object.assign(Object.assign({},e),{weight:!0})));const t=Object.assign(Object.assign({},l),{weight:e});n&&n(t)}))};return e.useEffect((()=>{n&&n(Object.assign({},l))}),[]),e.useEffect((()=>{c({weightBefore:!1,height:!1,weight:!1})}),[r]),"marryBaby"===t?j.default.createElement(j.default.Fragment,null,j.default.createElement("div",{className:"input-form-pwg input-section"},j.default.createElement(s.StyledTextField,{label:o("pregnancyWeightGain.heightInput"),name:"pwg-height",size:"md",value:null==l?void 0:l.height,CustomInput:j.default.createElement(y.Input,{className:(null==d?void 0:d.height)?"":"error-input",name:"pwg-height",size:"md",placeholder:"Nhập thông tin",value:null==l?void 0:l.height,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur(),errorMessage:(null==d?void 0:d.height)?"":null==r?void 0:r.height,showErrorMessage:!1,onChange:v})})),j.default.createElement("div",{className:"input-form-pwg input-section"},j.default.createElement(s.StyledTextField,{label:o("pregnancyWeightGain.weightBeforeInput"),name:"pwg-weightBefore",size:"md",value:null==l?void 0:l.weightBefore,CustomInput:j.default.createElement(y.Input,{className:(null==d?void 0:d.weightBefore)?"":"error-input",name:"pwg-weightBefore",size:"md",placeholder:"Nhập thông tin",value:null==l?void 0:l.weightBefore,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur(),errorMessage:(null==d?void 0:d.weightBefore)?"":null==r?void 0:r.height,showErrorMessage:!1,onChange:p})})),j.default.createElement("div",{className:"input-form-pwg input-section"},j.default.createElement(s.StyledTextField,{label:o("pregnancyWeightGain.weightInput"),name:"pwg-weight",size:"md",value:null==l?void 0:l.weight,CustomInput:j.default.createElement(y.Input,{className:(null==d?void 0:d.weight)?"":"error-input",name:"pwg-weight",size:"md",placeholder:"Nhập thông tin",value:null==l?void 0:l.weight,type:"number",onKeyDown:e=>["e","E","+","-"].includes(e.key)&&e.preventDefault(),onWheelCapture:e=>e.currentTarget.blur(),errorMessage:(null==d?void 0:d.weight)?"":null==r?void 0:r.weight,showErrorMessage:!1,onChange:E})}))):j.default.createElement(j.default.Fragment,null,j.default.createElement("div",{className:"input-form-pwg"},j.default.createElement(a.PureInput,{placeholder:o("pwg.placeholder.height"),className:"input-section",label:j.default.createElement("span",{style:{color:i.theme.colors.gray600,fontWeight:"bold",marginBottom:"9px",fontSize:"12px"},className:"label-text"},o("pregnancyWeightGain.heightInput")," ",j.default.createElement("span",{style:{color:`${i.theme.colors.gray300}`}},o("bmi.heightInput.desc"))),errorMessage:d.height?"":null==r?void 0:r.height,size:"sm",isNumerousKeyboard:!0,name:"pwg-height",value:null==l?void 0:l.height,onChange:v})),j.default.createElement("div",{className:"input-form-pwg"},j.default.createElement(a.PureInput,{placeholder:o("pwg.placeholder.weight"),className:"input-section",label:j.default.createElement("span",{style:{color:i.theme.colors.gray600,fontWeight:"bold",marginBottom:"9px",fontSize:"12px"},ref:f,className:"label-text"},o("pregnancyWeightGain.weightBeforeInput")," ",j.default.createElement("span",{style:{color:`${i.theme.colors.gray300}`}},o("pregnancyWeightGain.weightInput.desc"))),errorMessage:d.weightBefore?"":null==r?void 0:r.weightBefore,size:"sm",isNumerousKeyboard:!0,name:"pwg-weightBefore",onChange:p,value:null==l?void 0:l.weightBefore})),j.default.createElement("div",{className:"input-form-pwg"},j.default.createElement(a.PureInput,{placeholder:o("pwg.placeholder.weight"),className:"input-section",label:j.default.createElement("span",{style:{color:i.theme.colors.gray600,fontWeight:"bold",marginBottom:"9px",fontSize:"12px",minHeight:u},className:"label-text"},o("pregnancyWeightGain.weightInput")," ",j.default.createElement("span",{style:{color:`${i.theme.colors.gray300}`}},o("pregnancyWeightGain.weightInput.desc"))),errorMessage:d.weight?"":null==r?void 0:r.weight,size:"sm",isNumerousKeyboard:!0,name:"pwg-weight",value:null==l?void 0:l.weight,onChange:E})))};const _e={"en-PH":G.default,"vi-VN":R.default,"zh-TW":U.default,"id-ID":W.default};function Me(t){const{value:a={from:null,to:null}}=t,[l,n]=e.useState(null),{isMobile:r}=w.useScreenSize(),[o,i]=e.useState((()=>a)),[d,c]=e.useState((()=>{var e;return v.startOfMonth(null!==(e=a.from)&&void 0!==e?e:new Date)})),u=e.useMemo((()=>v.addMonths(d,1)),[d]);const m=Object.assign(Object.assign({},t),{goToNextMonth:function(){c((e=>v.addMonths(e,1)))},goToPreviousMonth:function(){c((e=>v.subMonths(e,1)))},range:o,setRange:i,hoverDay:l,setHoverDay:n});return j.default.createElement(j.default.Fragment,null,j.default.createElement(Ae,Object.assign({},m,{date:d})),!r&&j.default.createElement(s.StyledCalendarMonthSeparator,null),!r&&j.default.createElement(Ae,Object.assign({},m,{date:u})))}function Ae({date:t,range:a,setRange:l,onChange:r,goToPreviousMonth:i,goToNextMonth:d,minDate:c,maxDate:u,close:m=(()=>{}),autoClose:f=!1,hoverDay:g,setHoverDay:p}){const{locale:y}=h.useTranslations(),E=e.useMemo((()=>{var e;return null!==(e=_e[y])&&void 0!==e?e:_e["en-PH"]}),[y]),b=e.useMemo((()=>v.format(t,"MMMM",{locale:E})),[t,E]),C=e.useMemo((()=>E?[1,2,3,4,5,6,0].map((e=>E.localize.day(e,{width:"narrow"}))):[]),[E]);function w(e,t){if(null===e)return j.default.createElement(s.StyledCalendarDayNumberWrapper,{key:`idx-${t}`,"data-empty":"true"});const n=e.getDate(),r=v.isToday(e),o=!!a.from&&v.isSameDay(a.from,e),i=!!a.to&&v.isSameDay(a.to,e),d=o||i;let h=!1;null!==g&&a.from&&v.isBefore(a.from,g)&&!a.to?h=v.isWithinInterval(e,{start:a.from,end:g}):a.from&&a.to&&(h=v.isWithinInterval(e,{start:a.from,end:a.to}));let y=!1;return c&&u?y=!v.isWithinInterval(e,{start:c,end:u}):c?y=v.isBefore(e,c):u&&(y=v.isAfter(e,u)),j.default.createElement(s.StyledCalendarDayNumberWrapper,{key:n,"data-is-today":r,"data-is-past":!r&&v.isPast(e),"data-is-selected":d,"data-is-disabled":y,"data-in-range":h,"data-is-from":o,"data-is-to":i,onMouseEnter:()=>{p(e)},onMouseLeave:()=>p(null),onClick:()=>{y||l((t=>(f&&a.from&&!a.to&&m(),function(e,t){return t.from||t.to?t.from&&t.to?{from:e,to:null}:t.from?v.isBefore(e,t.from)?Object.assign(Object.assign({},t),{from:e}):Object.assign(Object.assign({},t),{to:e}):t:Object.assign(Object.assign({},t),{from:e})}(e,t))))}},j.default.createElement(s.StyledCalendarDayNumber,{onClick:()=>{}},j.default.createElement("p",null,n)))}return e.useEffect((()=>{a.from&&a.to&&r(a)}),[a]),j.default.createElement(s.StyledCalendarWrapper,{className:"calendar-wrapper"},j.default.createElement(s.StyledCalendarHead,null,j.default.createElement(n.Button,{onClick:i,size:"md",color:"ghost",icon:j.default.createElement("img",{src:o.CommonGAssets.getAssetPath("calendarArrowLeft.svg")})}),j.default.createElement("div",{className:"calendar-month"},b,j.default.createElement("strong",null,v.format(t,"yyyy"))),j.default.createElement(n.Button,{onClick:d,size:"md",color:"ghost",icon:j.default.createElement("img",{src:o.CommonGAssets.getAssetPath("calendarArrowRight.svg")})})),j.default.createElement(s.StyledCalendarCellsWrapper,null,j.default.createElement("div",null,j.default.createElement(s.StyledCalendarDaysOfWeek,null,C.map(((e,t)=>j.default.createElement(s.StyledCalendarDayLabel,{key:`${e}-${t}`},e))))),j.default.createElement("div",null,function(){const e=t.getFullYear(),l=t.getMonth(),n=v.getDaysInMonth(t),r=[];for(let t=1;t<=n;t++)r.push(new Date(e,l,t));const o=r[0]?r[0].getDay():0;if(1!==o){const e=0===o?6:o-1;for(let t=0;t<e;t++)r.unshift(null)}return j.default.createElement(s.StyledCalendarMonthWrapper,{key:`month-${l}`,"data-month-index":l,"data-has-range":Boolean(a.from&&a.to)},j.default.createElement(s.StyledCalendarDaysWrapper,null,j.default.createElement(s.StyledCalendarDateGrid,null,r.map(w))))}())))}var Ie="WUqzfRb",Pe="MnVGtSY",Fe="NclbhXQ";const ze=({LinkComponent:e,page:t,isLast:a,onChangePage:l})=>{const{label:n,value:r,isDropdown:o,dropdownItems:i,dataEventCategory:d,dataEventAction:c,dataEventLabel:u}=t;return o?j.default.createElement(s.Dropdown,{options:i,placeholder:"...",id:"",placeholderIcon:null,onChange:l,className:"collapsed-breadcrumb"}):j.default.createElement("div",{className:Fe,title:"string"!=typeof n?r:n,"data-last":a},e&&j.default.createElement(e,{"data-event-category":d,"data-event-action":c,"data-event-label":u,href:r||"#"},n))},Oe=()=>j.default.createElement("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j.default.createElement("path",{d:"M6.86364 10.6666H5.22727C4.86912 10.6666 4.51448 10.5977 4.18359 10.4637C3.8527 10.3296 3.55205 10.1332 3.2988 9.8856C2.78734 9.3855 2.5 8.70722 2.5 7.99998C2.5 7.29274 2.78734 6.61446 3.2988 6.11436C3.81026 5.61426 4.50396 5.33331 5.22727 5.33331H6.86364M9.78374 5.33331H11.7727C12.1309 5.33331 12.4855 5.40229 12.8164 5.5363C13.1473 5.67031 13.4479 5.86674 13.7012 6.11436C13.9545 6.36198 14.1553 6.65596 14.2924 6.97949C14.4295 7.30303 14.5 7.64979 14.5 7.99998C14.5 8.35017 14.4295 8.69693 14.2924 9.02047C14.1553 9.344 13.9545 9.63798 13.7012 9.8856C13.4479 10.1332 13.1473 10.3296 12.8164 10.4637C12.4855 10.5977 12.1309 10.6666 11.7727 10.6666H9.78374",stroke:"#595959",strokeLinecap:"round",strokeLinejoin:"round"}),j.default.createElement("path",{d:"M6.5 8H10.5",stroke:"#595959",strokeLinecap:"round",strokeLinejoin:"round"})),je=()=>j.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"copy"},j.default.createElement("path",{d:"M4 2.5C3.17125 2.5 2.5 3.17125 2.5 4V13.75C2.5 14.164 2.836 14.5 3.25 14.5C3.664 14.5 4 14.164 4 13.75V4H13.75C14.164 4 14.5 3.664 14.5 3.25C14.5 2.836 14.164 2.5 13.75 2.5H4ZM7 5.5C6.17125 5.5 5.5 6.17125 5.5 7V16C5.5 16.8287 6.17125 17.5 7 17.5H16C16.8287 17.5 17.5 16.8287 17.5 16V7C17.5 6.17125 16.8287 5.5 16 5.5H7ZM7 7H16V16H7V7Z",fill:"#595959"}));exports.Alert=({style:e,onClose:a,text:l,type:n,contentIcon:r,closeIcon:o,className:i,description:s})=>j.default.createElement("div",{className:`${V} ${i||""}`,style:e,"data-alert-type":n},j.default.createElement("div",{className:q},j.default.createElement("div",{className:"icon-title"},r,j.default.createElement(t.Text,{type:"bold",size:"label1"},l)),j.default.createElement(t.Text,{type:"regular",size:"p3"},s)),j.default.createElement("div",{className:Z,onClick:a},o)),exports.ArticleCard=({articleLink:e,authorLink:l,authorName:n,avatarImg:r,banner:i,categoryLink:d,categoryName:c,className:u,dataEventActionForBanner:m,dataEventActionForBookmark:f,dataEventActionForCategory:g,dataEventActionForTitle:p,dataEventCategoryForBanner:h,dataEventCategoryForBookmark:v,dataEventCategoryForCategory:y,dataEventCategoryForTitle:E,dataEventLabelForBanner:b,dataEventLabelForBookmark:C,dataEventLabelForCategory:w,dataEventLabelForTitle:k,direction:S="horizontal",hasAffiliate:x,isBookmark:L=!1,isBookmarkDisplayed:T=!0,isMobile:N=!0,onBookmark:D,onClickCategoryName:B,section:_="normal",size:M="md",specialty:A,style:I,styleBanner:P,styleLabel:F,styleTitle:z,text:O,title:H,type:$="author",uploadTime:G,articleLinkTarget:W,isPremium:R})=>{const U=e=>{e.stopPropagation(),null==D||D()},V="lg"===M&&"expert"===$?"h4":"lg"===M&&"home"===_?N?"h4":"h3":"lg"===M?"h4":"h5",q="lg"===M?"p3":"p4",Z=N||"home"!==_||"lg"!==M||"author"!==$?"c2":"c1";return j.default.createElement("article",{className:`${ae} ${u||""}`,"data-size":M,style:I,"data-direction":S,"data-is-expert":"expert"===$||void 0},j.default.createElement("div",{className:"banner",style:P},j.default.createElement("a",{className:te,"data-event-category":h,"data-event-action":m,"data-event-label":b,href:e||"#",target:W},i),R&&j.default.createElement("img",{loading:"lazy",className:"premium",src:o.CommonGAssets.getAssetPath("premium-crown.svg")}),x&&j.default.createElement(s.AffiliateIcon,null)),j.default.createElement("div",{className:"content"},j.default.createElement("div",{className:"inner-content"},j.default.createElement(t.Text,{style:F,className:"label",size:Z,type:"caption"},j.default.createElement("a",{className:te,"data-event-category":y,"data-event-action":g,"data-event-label":w,href:d||"#",onClick:B},c),T&&j.default.createElement("a",{className:"bookmark",onClick:U},L?j.default.createElement(s.BookmarkedIcon,{dataEventCategoryForBookmark:v,dataEventActionForBookmark:f,dataEventLabelForBookmark:C}):j.default.createElement(s.UnbookmarkedIcon,{dataEventCategoryForBookmark:v,dataEventActionForBookmark:f,dataEventLabelForBookmark:C}))),j.default.createElement(a.Heading,{tag:V,style:z,className:"title",as:"lg"===M?"h2":"h3"},j.default.createElement("a",{className:te,"data-event-category":E,"data-event-action":p,"data-event-label":k,href:e||"#",target:W},H)),O&&j.default.createElement("a",{href:e||"#",target:W},j.default.createElement(t.Text,{size:q,className:"text"},O))),j.default.createElement("div",{className:"footer"},"author"===$?j.default.createElement(ne,{size:M,avatarImg:r,authorName:n,authorLink:l,uploadTime:G,handleClick:U,isBookmarked:L,dataEventCategoryForBookmark:v,dataEventActionForBookmark:f,dataEventLabelForBookmark:C}):j.default.createElement(re,{size:M,isMobile:N,avatarImg:r,specialty:A,name:n,link:l,handleClick:U,isBookmarked:L,dataEventCategoryForBookmark:v,dataEventActionForBookmark:f,dataEventLabelForBookmark:C}))))},exports.BMICardEmbed=({isMobile:e,onSubmit:a,bmiContent:l,isSide:n,bmiGenerated:r,bmiUnit:d,bmiLink:c,locale:u})=>{var m,f,g;const{t:p}=h.useTranslations();return j.default.createElement(s.StyledContainer,{"data-is-side":n},j.default.createElement(s.ToolsBannerCard,{isSide:n,bannerUrl:o.CommonGAssets.getAssetPath("embedToolBannerBlue.svg"),icon:j.default.createElement("img",{alt:"health-tool-icon",src:null==l?void 0:l.featured_image,style:{objectFit:"contain",marginLeft:"auto",maxWidth:"100%"}}),heading:p("bmi.heading"),medicalReview:(null===(m=null==l?void 0:l.reviewBy)||void 0===m?void 0:m.reviewer)?j.default.createElement(t.Text,{size:"n1",color:i.theme.colors.white},j.default.createElement("span",{dangerouslySetInnerHTML:{__html:p("toolPage.toolReviewer",{expert_name:`<a\n style="color: white"\n href="${(null===(f=null==l?void 0:l.reviewBy)||void 0===f?void 0:f.link)||"#"}"\n >\n ${l.reviewBy.reviewer}\n </a>`,date:null===(g=null==l?void 0:l.reviewBy)||void 0===g?void 0:g.date})}}),j.default.createElement("span",null)):void 0,isMobile:e}),j.default.createElement(E.Container,null,j.default.createElement(s.StyledContent,{as:"div","data-is-side":n},c&&j.default.createElement(pe,{onSubmit:a,bmiGenerated:r,locale:u,bmiUnit:d,isSide:n}))))},exports.BMRCardEmbed=({isSide:e,locale:a,bmrContent:l,isMobile:n,info:r,inputErrorMessage:d,onFormChange:c,onSubmit:u})=>{var m,f,g;const{t:p}=h.useTranslations();return j.default.createElement(s.StyledContainer,{"data-is-side":e},j.default.createElement(s.ToolsBannerCard,{isSide:e,bannerUrl:o.CommonGAssets.getAssetPath("embedToolBannerBlue.svg"),icon:j.default.createElement("img",{alt:"health-tool-icon",src:null==l?void 0:l.featured_image,style:{objectFit:"contain",marginLeft:"auto",maxWidth:"100%"}}),heading:p("bmr.heading"),medicalReview:(null===(m=null==l?void 0:l.reviewBy)||void 0===m?void 0:m.reviewer)?j.default.createElement(t.Text,{size:"n1",color:i.theme.colors.white},j.default.createElement("span",{dangerouslySetInnerHTML:{__html:p("toolPage.toolReviewer",{expert_name:`<a\n style="color: white"\n href="${(null===(f=null==l?void 0:l.reviewBy)||void 0===f?void 0:f.link)||"#"}"\n >\n ${l.reviewBy.reviewer}\n </a>`,date:null===(g=null==l?void 0:l.reviewBy)||void 0===g?void 0:g.date})}}),j.default.createElement("span",null)):void 0,isMobile:n}),j.default.createElement(E.Container,null,j.default.createElement(s.StyledContent,{onSubmit:e=>e.preventDefault(),"data-is-side":e},j.default.createElement(s.StyledInputForm,null,j.default.createElement(ye,{info:r,locale:a,errorMessage:d,onChange:c,onClick:u,isSide:e})))))},exports.BabyGrowthCardEmbed=({isMobile:e,className:a,onSubmit:l,onError:n,schema:r,babyGrowthContent:d,siteType:c})=>{var u;const{t:m}=h.useTranslations();return j.default.createElement(s.StyledContainer,{"babyGrowthContent-is-mobile":e,"data-site":c},j.default.createElement(s.ToolsBannerCard,{siteType:c,bannerUrl:o.CommonGAssets.getAssetPath("embedToolBannerBlue.svg"),bannerUrlLarge:o.CommonGAssets.getAssetPath("embedToolBannerBlue.svg"),bannerColor:"marryBaby"===c&&i.theme.mbColors.mint,isEmbeded:!0,icon:j.default.createElement("img",{className:"embedded-icon",alt:"health-tool-icon",src:(null==d?void 0:d.featuredImage)||"",style:{maxWidth:"100%"}}),heading:(null==d?void 0:d.title)||"",medicalReview:(null===(u=null==d?void 0:d.reviewBy)||void 0===u?void 0:u.reviewer)?j.default.createElement(t.Text,{size:"label2",color:i.theme.colors.white,className:"embedded-review",dangerouslySetInnerHTML:{__html:m("toolPage.toolReviewer",{expert_name:`<a style="color: white" href="${d.reviewBy.link||"#"}">${d.reviewBy.reviewer.trim()}</a>`,date:d.reviewBy.date})}}):void 0,isMobile:e}),j.default.createElement(s.StyledBabyGrowthWrapper,{"data-theme":c},j.default.createElement(s.StyleForm,{siteType:c,schema:r,className:a,onSubmit:l,onError:n})))},exports.BabyPoopEmbed=({babyPoopPage:e,onClickFindOut:l,locale:r,isMobile:d,currentUrl:c,isSide:u})=>{const{t:m}=h.useTranslations(),{reviewedBy:f,reviewedDate:g}=e;return j.default.createElement(s.StyledBabyPoopHeader,null,j.default.createElement(C.Container,{className:"px-16",style:{height:"100%",display:""+(d?"flex":""),flexDirection:"column"}},d&&j.default.createElement(s.StyledBabyPoopHeaderContentImage,{src:o.CommonGAssets.getAssetPath("babyDiaper.png"),alt:e.title}),j.default.createElement(s.StyledBabyPoopHeaderContent,{"data-is-side":u},j.default.createElement(s.StyledBabyPoopHeaderContentText,{"data-is-side":u},j.default.createElement(a.Heading,{tag:"h2",color:"#284A75"},e.title),j.default.createElement(t.Text,{size:"p3",className:"description"},e.description),!!f&&j.default.createElement(s.StyledBabyPoopHeaderReview,{className:"reviewer"},j.default.createElement("img",{src:o.CommonGAssets.getAssetPath("reviewerCheck.svg"),alt:"check",className:"check-icon"}),j.default.createElement(t.Text,{size:"p4",color:i.theme.colors.gray600},m("categoryPage.info.reviewed")," ",j.default.createElement("a",{href:f.profileUrl},f.displayName)," ",m("categoryPage.onDate",{date:g}))),j.default.createElement(n.Button,{color:"primary",size:"md",className:"mt-16 find-out-button",onClick:l,dataEventCategory:"Health Tool",dataEventAction:"Baby Stool Inquiry",dataEventLabel:c,style:{visibility:Boolean(l)?"visible":"hidden"}},m("babyPoop.findOut"))),!d&&j.default.createElement(s.StyledBabyPoopHeaderContentImage,{src:o.CommonGAssets.getAssetPath("babyDiaper.png"),alt:e.title,"data-is-vietnam":r===p.LOCALE.Vietnam,className:"banner-img"}))))},exports.Badge=({amount:e,type:t,size:l="medium",color:n="primary",icon:r,className:o})=>j.default.createElement(a.StyledBadge,{"data-notification-type":t,"data-notification-size":l,"data-notification-color":n,"data-has-icon":!!r||void 0,notificationType:t,notificationSize:l,notificationColor:n,hasIcon:!!r,className:o},j.default.createElement("div",null,e&&j.default.createElement("span",null,e)," ",r&&j.default.createElement("div",null,r))),exports.BorderHeading=({style:e,children:t,className:l,size:n="lg",type:r="bold",upperCase:o,as:i="h4",color:s})=>j.default.createElement(a.StyledBorderHeading,{style:Object.assign({color:s},e),className:l,"data-size":n,"data-type":r,"data-uppercase":o,as:i},t),exports.Breadcrumbs=({className:t,pages:a,size:l,LinkComponent:n="a",onChangePage:r,separator:o})=>{const i=e.useMemo((()=>a.map(((e,t)=>a.length>4?t>1&&t<a.length-2?null:1===t?Object.assign(Object.assign({},e),{isDropdown:1===t,dropdownItems:a.slice(1,a.length-2)}):e:e)).filter(Boolean)),[a]);return j.default.createElement("div",{"data-size":l,className:`${Ie} ${t||""}`},i.map(((t,a)=>{const s=a+1===i.length;return j.default.createElement(e.Fragment,{key:a},j.default.createElement(ze,{LinkComponent:n,page:t,isLast:s,onChangePage:r}),!s&&(t.separator||o||j.default.createElement("div",{className:Pe,"data-size":l})))})))},exports.Carousel=({row:t,column:a,children:l,scheme:n="hellosites",classNameLeftArrow:r="",classNameRightArrow:o="",mode:i="snap",isDotsShown:d=!0,isArrowShown:c=!1,dataEventCategory:m,dataEventAction:f,dataEventLabel:g,onChangePage:p})=>{const[h,v]=j.default.useState(0),[y,E]=e.useState(!1),[b,C]=u.useKeenSlider({defaultAnimation:{duration:1e3},initial:0,slideChanged(e){v(e.track.details.rel),p&&p(e.track.details.rel)},created(){E(!0)},drag:!0,mode:i,slides:{spacing:12}}),w=[],k=t*a;for(let e=0;e<l.length;e+=k){const t=l.slice(e,e+k);w.push(t)}return j.default.createElement(s.StyledCarousel,{row:t,column:a},j.default.createElement("div",{className:"navigation-wrapper"},j.default.createElement("div",{ref:b,className:"keen-slider slides-wrapper"},w.map(((e,t)=>j.default.createElement("div",{key:t,className:"keen-slider__slide page-items"},e.map(((e,t)=>j.default.createElement("div",{key:t},e))))))),y&&C.current&&c&&j.default.createElement(j.default.Fragment,null,j.default.createElement(se,{isLeft:!0,onClick:e=>{var t;return e.stopPropagation()||(null===(t=C.current)||void 0===t?void 0:t.prev())},isDisabled:0===h,scheme:n,className:`left-arrow ${r}`,"data-event-category":m,"data-event-action":f,"data-event-label":g}),j.default.createElement(se,{isLeft:!1,onClick:e=>{var t;return e.stopPropagation()||(null===(t=C.current)||void 0===t?void 0:t.next())},isDisabled:h===C.current.track.details.slides.length-1,scheme:n,className:`right-arrow ${o}`,"data-event-category":m,"data-event-action":f,"data-event-label":g}))),y&&C.current&&d&&j.default.createElement("div",{className:"dots"},[...Array(C.current.track.details.slides.length)].map(((e,t)=>j.default.createElement(s.StyledDot,{key:t,onClick:()=>{var e;null===(e=C.current)||void 0===e||e.moveToIdx(t)},"data-is-active":h===t,"data-is-hellosites":"hellosites"===n})))))},exports.CategoryCard=({imgBanner:e,label:a,className:l,style:n,href:r="",dataEventCategory:o,dataEventAction:i,dataEventLabel:d})=>j.default.createElement(s.StyledCategoryCard,{"data-event-category":o,"data-event-action":i,"data-event-label":d,className:l,style:n,href:r,onClick:e=>{""===r&&e.preventDefault()}},j.default.createElement("div",{className:"banner"},e),j.default.createElement("div",{className:"content"},j.default.createElement(t.Text,{className:"category_name",size:"sm",type:"bold"},a))),exports.Checkbox=Q,exports.CheckboxGroup=({name:e,values:t=[],onChanges:a,options:l=[],className:n,type:r="vertical",isDisabled:o,isRectangle:i})=>{const d=(e,l)=>{const n=t.slice();if(l)n.push(e);else{const t=n.findIndex((t=>t===e));n.splice(t,1)}a&&a(n)};return j.default.createElement(s.StyledCheckboxGroup,{className:n,"data-type":r,"data-is-rectangle":i||void 0},l.map(((a,l)=>j.default.createElement(Q,{label:a.label,name:e,key:`${l}-${a.value}`,checked:t.includes(a.value),value:a.value,isDisabled:o||a.disabled,onChange:!o&&d,isRectangle:i}))))},exports.CookieAcceptConfirm=({className:e,policiesUrl:t,onAcceptClick:a,translations:l={acceptButton:"Accept",policiesButton:"Our Policies"},title:n="",description:r="",theme:o="helloSites",isOpen:i=!0,useDefaultPosition:d=!0,trackingAttributes:c})=>j.default.createElement(s.StyledAcceptCardContainer,{className:e,"data-theme":o,"data-is-open":i,"data-default-position":d},j.default.createElement(s.StyledTitleSection,{"data-has-content":!!n},n),j.default.createElement(s.StyledDescription,{dangerouslySetInnerHTML:{__html:r}}),j.default.createElement(s.StyledButtonGroup,null,j.default.createElement(s.StyledAcceptButton,{role:"button",tabIndex:0,on:"tap:consent-element.accept",onClick:a,"data-event-category":null==c?void 0:c.dataEventCategory,"data-event-action":null==c?void 0:c.dataEventAction,"data-event-label":null==c?void 0:c.dataEventLabel},l.acceptButton),j.default.createElement(s.StyledPoliciesButton,{href:t},l.policiesButton))),exports.DateRangePicker=function({inputSize:t="md",name:l="date-range-picker",value:n,minDate:r,maxDate:i,onChange:d,className:c,autoClose:u=!1}){n||(n={from:null,to:null});const[m,f]=e.useState(!1);function g(){f(!1)}const p=e.useRef(null);function h(e){d&&d(e)}function y(e){return v.format(e,"dd/MM/yyyy")}M.useOutsideClick(p,(()=>{g()}));const E=e.useMemo((()=>n.from&&n.to?v.isSameDay(n.from,n.to)?y(n.from):`${y(n.from)} - ${y(n.to)}`:""),[n.from,n.to]);return j.default.createElement(s.StyledWrapper,{className:[c,m&&"focused"].filter(Boolean).join(" "),ref:p},j.default.createElement("label",{htmlFor:l},j.default.createElement(a.PureInput,{size:t,value:E,name:l,actionIcon:j.default.createElement("img",{src:o.CommonGAssets.getAssetPath("calendar.svg")}),onFocus:()=>f(!0)})),m?j.default.createElement(s.StyledCalendarWrapper$1,{onMouseDown:e=>{e.stopPropagation()}},j.default.createElement(Me,{value:n,onChange:h,minDate:r,maxDate:i,close:g,autoClose:u})):null)},exports.DueDateCardEmbed=({isMobile:e,locale:a,onSubmitDueDate:l,dueDatePageInfo:n,expertUrl:r,isSide:d,siteType:c})=>{var u;const{t:m}=h.useTranslations();return j.default.createElement(s.StyledContainer,{"data-is-side":d,"data-site":c},j.default.createElement(s.ToolsBannerCard,{isSide:d,bannerUrl:o.CommonGAssets.getAssetPath("embedToolBannerPink.svg"),siteType:c,bannerColor:"marryBaby"===c&&i.theme.mbColors.mint,isEmbeded:!0,icon:j.default.createElement("img",{alt:"health-tool-icon",src:null==n?void 0:n.featured_image,style:"marryBaby"!==c?{objectFit:"contain",marginLeft:"auto",maxWidth:"100%"}:null}),heading:m("healthTools.dueDateCalculator"),medicalReview:(null===(u=null==n?void 0:n.reviewed_by)||void 0===u?void 0:u.display_name)?j.default.createElement(t.Text,{size:"label2",color:i.theme.colors.white,dangerouslySetInnerHTML:{__html:m("toolPage.toolReviewer",{expert_name:`<a style="text-decoration: underline" href="${r}">${null==n?void 0:n.reviewed_by.display_name}</a>`,date:null==n?void 0:n.reviewed_date})}}):void 0,isMobile:e}),j.default.createElement(s.StyledContent,{onSubmit:e=>e.preventDefault(),className:"due-date-cal","data-is-side":d},j.default.createElement(fe,{siteType:c,locale:a,onSubmitDueDate:l,isSide:d})))},exports.FileDropdown=({className:t,value:l,options:n,onUploadSelected:r,id:o,placeholderIcon:i,placeholder:s,style:d})=>{const[c,u]=e.useState(!1),m=()=>u(!c),f=e.useRef(n.map((e=>"upload"===e.type&&j.default.createElement("input",{id:"uploader-dropdown-input-"+o+"-"+e.value,key:"uploader-dropdown-input-"+o+"-"+e.value,accept:e.fileAcceptedType,multiple:e.multiple,type:"file",style:{display:"none"},onChange:e=>{console.log("change"),r(e.target.files)}})))),g=j.default.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12.17 14.83"},j.default.createElement("defs",null,j.default.createElement("clipPath",{id:"prefix__clip-path",transform:"translate(-1.92 -1.54)"},j.default.createElement("path",{fill:"none",d:"M0 .96h16v16H0z"})),j.default.createElement("style",null,".prefix__cls-3{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),j.default.createElement("title",null,"File"),j.default.createElement("g",{clipPath:"url(#prefix__clip-path)"},j.default.createElement("path",{className:"prefix__cls-3",d:"M8.67 2.29H4a1.33 1.33 0 00-1.33 1.33v10.67A1.33 1.33 0 004 15.62h8a1.33 1.33 0 001.33-1.33V7z",transform:"translate(-1.92 -1.54)"}),j.default.createElement("path",{className:"prefix__cls-3",d:"M8.67 2.29V7h4.66",transform:"translate(-1.92 -1.54)"}))),p=j.default.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.5 13.5"},j.default.createElement("defs",null,j.default.createElement("style",null,".prefix__cls-1{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),j.default.createElement("title",null,"download"),j.default.createElement("path",{className:"prefix__cls-1",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M4.67 7.62L8 11l3.33-3.34M8 11V3",transform:"translate(-1.25 -2.21)"})),h=j.default.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.5 13.5"},j.default.createElement("defs",null,j.default.createElement("style",null,".prefix__cls-1{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),j.default.createElement("title",null,"upload"),j.default.createElement("path",{className:"prefix__cls-1",d:"M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M11.33 6.29L8 3 4.67 6.29M8 3v8",transform:"translate(-1.25 -2.21)"}));return j.default.createElement(a.StyledDropdown,{className:t,"data-dropdown-open":!!c,id:o,"data-has-icons":!0,style:d,onBlur:()=>u(!1),tabIndex:0},j.default.createElement(a.StyledDropdownName,{onClick:m},i||g," ",j.default.createElement("span",null,l&&l.value?l.label:s)),c&&j.default.createElement(a.StyledDropdownList,{onClick:m,"data-has-icons":!0},n.map((e=>j.default.createElement(a.StyledDropdownOption,{key:`${o}-${e.value}`,"data-selected":l&&l.value===e.value||void 0,onClick:()=>{return"upload"===e.type?(a="#uploader-dropdown-input-"+o+"-"+e.value,void(null===(l=document.querySelector(a))||void 0===l||l.click())):void((t=e.url)&&window.open(t,"_blank"));var t,a,l}},j.default.createElement(a.StyledIcon,null,e.icon||"download"===e.type?p:h),e.label)))),j.default.createElement(j.default.Fragment,null,f.current))},exports.FloatButtonGroup=({items:t,className:a,style:l,backgroundPanelStyle:n,isOpen:r,onOpen:o,onClose:i,disableBackdropClick:d,siteType:c="hb",animationType:u="zoom",zIndex:m=300})=>{const[f,g]=e.useState(!!r);e.useEffect((()=>{g(!!r)}),[r]);const p=()=>{g(!1),i&&i()};return j.default.createElement(s.StyledFloatButtonGroup,{style:l,className:a,"data-floatmenu-open":f,"data-site-type":c,"data-animation-type":u},j.default.createElement(s.StyledFloatButtonGroupBackgroundPanel,{className:"float-button-group__panel",style:Object.assign({zIndex:m},n),onClick:d?void 0:p}),j.default.createElement(s.StyledFloatButtonGroupContent,{className:"float-button-group___content",style:{zIndex:m}},j.default.createElement(s.StyledFloatButtonGroupItemsWrapper,null,t.map(((e,a)=>j.default.createElement(s.StyledFloatButtonGroupButton,{className:`float-item-button-${a}`,style:Object.assign(Object.assign({},"zoom"===u&&{bottom:64*(t.length-1-a),transitionDelay:s.TRANSITION_TIMING/t.length*(f?t.length-1-a:a)+"ms"}),"slide"===u&&{bottom:64*(t.length-1-a),transitionDelay:s.TRANSITION_TIMING/t.length*(f?a:t.length-1-a)+"ms"}),key:a,onClick:()=>{e.onClick(),e.keepMenuOnClick||g(!1)}},j.default.createElement(s.StyledFloatButtonGroupButtonLabel,{style:Object.assign({},"zoom"===u&&{transitionDelay:s.TRANSITION_TIMING/t.length*(f?t.length-1-a:a)+"ms"})},e.label),j.default.createElement(s.StyledFloatButtonGroupButtonIcon,{className:"float-item-button__icon-wrapper",style:Object.assign({},("zoom"===u||"slide"===u)&&{transitionDelay:s.TRANSITION_TIMING/t.length*(f?t.length-1-a:a)+"ms"})},e.icon))))),j.default.createElement(s.StyledFloatButtonGroupToggleIcon,{onClick:f?p:()=>{g(!0),o&&o()}})))},exports.Grid=({className:e,columns:t,columnsDesktop:l,gridTemplateColumns:n,gridTemplateColumnsDesktop:r,gap:o,children:i,justifyChildren:s,style:d,alignItems:c})=>j.default.createElement(a.StyledGrid,{className:e,style:d,theme:{columns:t,columnsDesktop:l,gap:o,justifyChildren:s,gridTemplateColumns:n,gridTemplateColumnsDesktop:r,alignItems:c}},i),exports.IconText=({size:e,iconPosition:t,className:a,children:l,icon:n})=>j.default.createElement(s.StyledIconText,{className:a,"data-size":e,"data-icon-position":t},"left"===t&&n,l,"right"===t&&n),exports.OvulationCardEmbed=({onSubmitOvulation:e,locale:a,ovulationPageInfo:l,ovulationContent:n,expertUrl:r,isSide:d=!1,siteType:c,isMobile:u})=>{var m;const{t:f}=h.useTranslations(),g=_.formatOvulationInfo(l||null);return j.default.createElement(s.StyledContainer,{"data-is-side":d,"data-site":c},"marryBaby"!==c?j.default.createElement(De,{backgroundDesktopSrc:o.CommonGAssets.getAssetPath("embedToolBannerPink.svg"),backgroundMobileSrc:o.CommonGAssets.getAssetPath("embedToolBannerPink.svg"),title:f("healthTools.ovulationCalculator"),reviewedBy:g.reviewedBy,reviewedDate:g.reviewedDate,ovulationContent:n,isSide:d}):j.default.createElement(s.ToolsBannerCard,{isSide:d,bannerUrl:o.CommonGAssets.getAssetPath("embedToolBannerPink.svg"),siteType:c,bannerColor:"marryBaby"===c&&i.theme.mbColors.mint,isEmbeded:!0,icon:j.default.createElement("img",{alt:"health-tool-icon",src:null==l?void 0:l.featured_image,style:"marryBaby"!==c?{objectFit:"contain",marginLeft:"auto",maxWidth:"100%"}:null}),heading:f("healthTools.ovulationCalculator"),medicalReview:(null===(m=null==l?void 0:l.reviewed_by)||void 0===m?void 0:m.display_name)?j.default.createElement(t.Text,{size:"label2",color:i.theme.colors.white,dangerouslySetInnerHTML:{__html:f("toolPage.toolReviewer",{expert_name:`<a style="text-decoration: underline" href="${r}">${l.reviewed_by.display_name}</a>`,date:l.reviewed_date})}}):void 0,isMobile:u}),j.default.createElement(s.StyledContent,{onSubmit:e=>e.preventDefault(),className:"ovulation-cal","data-is-side":d},j.default.createElement(s.OvulationCalculator,{siteType:c,locale:a,onSubmitOvulation:e,isSide:d})))},exports.PWGCardEmbed=({locale:a,onClick:l,inputErrorMessage:r,pwgContent:d,onFormChange:c,info:u,isMobile:m,isSide:g=!1,siteType:p})=>{var v;const{t:y}=h.useTranslations(),[b,C]=e.useState("notwins"),[w,k]=e.useState({label:"1",value:1}),x=e.useMemo((()=>[...Array(40)].map(((e,t)=>({label:`${t+1}`,value:`${t+1}`})))),[]),{getHealthToolLink:L}=D.useHealthToolsCache(a),T=e.useMemo((()=>L(S.HEALTH_TOOL_TYPE.PWG)),[L]),N=(null===(v=null==d?void 0:d.reviewedBy)||void 0===v?void 0:v.display_name)?j.default.createElement(t.Text,{size:"n1",color:i.theme.colors.white,dangerouslySetInnerHTML:{__html:y("toolPage.toolReviewer",{expert_name:`<a style="text-decoration: underline" href="${_.formatUserProfileUrl(d.reviewedBy)}">${d.reviewedBy.display_name}</a>`,date:d.reviewedDate})}}):void 0;return j.default.createElement(s.StyledContainer,{"data-is-side":g,"data-site":p},j.default.createElement(s.ToolsBannerCard,{siteType:p,bannerUrl:o.CommonGAssets.getAssetPath("embedToolBannerPink.svg"),bannerColor:"marryBaby"===p&&i.theme.mbColors.mint,isEmbeded:!0,icon:j.default.createElement("img",{alt:"health-tool-icon",src:null==d?void 0:d.featuredImage,style:"marryBaby"!==p?{objectFit:"contain",marginLeft:"auto",maxWidth:"100%"}:null}),heading:y("pregnancyWeightGain.heading"),medicalReview:N,isMobile:m,isSide:g}),j.default.createElement(E.Container,null,j.default.createElement(s.StyledContent,{onSubmit:e=>e.preventDefault(),className:"pwg-view-mobile","data-is-side":g},"marryBaby"!==p&&j.default.createElement(s.StyledTwins,{className:"hide-asking-mobile","data-is-side":g},j.default.createElement(B.Label,{size:"label2",style:{display:"block",fontWeight:"bold",color:i.theme.colors.gray600,fontSize:"12px"},className:"label",htmlFor:"gender-selector"},y("pregnancyWeightGain.havingTwins")),j.default.createElement(s.StyledRadioGroup,{options:[{value:"twins",label:y("switchBtn.yes")},{value:"notwins",label:y("switchBtn.no")}],value:b,onChange:e=>C(e),className:"gender-selector",id:"twins-check",type:"circle",direction:"horizontal",size:"small",group:"group1"})),j.default.createElement(s.StyledInputWrapper,null,j.default.createElement(s.StyledFormInput,{className:"input-section input-form-pwg","data-is-side":g},"marryBaby"===p?j.default.createElement(s.StyledDropDown,{groupedWithLabel:y("pregnancyWeightGain.weekInput"),options:x,placeholder:"28 days",id:"due-date-dropdown",size:"lg",value:w,onChange:e=>k({label:e.label,value:e.value})}):j.default.createElement(j.default.Fragment,null,j.default.createElement(B.Label,{size:"label2",style:{display:"inline-block",marginBottom:"9px",color:i.theme.colors.gray600,fontWeight:"bold",fontSize:"12px"},htmlFor:"gender-selector"},y("pregnancyWeightGain.weekInput")),j.default.createElement(s.Dropdown,{options:x,placeholder:String(w.label),id:"weight-gain-dropdown",size:"md",value:w,onChange:e=>k({label:e.label,value:e.value})}))),j.default.createElement(Be,{siteType:p,info:u,errorMessage:r,onChange:c})),"marryBaby"!==p&&j.default.createElement(s.StyledTwins,{className:"hide-asking-desk","data-is-side":g},j.default.createElement(B.Label,{size:"label2",style:{display:"block",fontWeight:"bold",color:i.theme.colors.gray600,fontSize:"12px"},className:"label",htmlFor:"gender-selector"},y("pregnancyWeightGain.havingTwins")),j.default.createElement(s.StyledRadioGroup,{options:[{value:"twins",label:y("switchBtn.yes")},{value:"notwins",label:y("switchBtn.no")}],value:b,onChange:e=>C(e),className:"gender-selector",id:"twins-check-mobile",type:"circle",direction:"horizontal",size:"small",group:"group1"})),"marryBaby"===p&&j.default.createElement(Q,{name:"twins",label:y("pregnancyWeightGain.havingTwins"),checked:"twins"===b,siteType:"marryBaby",onChange:()=>{C("twins"===b?"notwins":"twins")},value:"twins"}),j.default.createElement(s.StyledSubmitButton,{"data-is-side":g,"data-site":p},j.default.createElement(n.Button,{dataEventCategory:"Health Tool",dataEventAction:"Embedded Pregnancy Weight Gain",dataEventLabel:`https://${f.domainLocales["marryBaby"===p?"vi-VN_MB":a]}/${T}`,className:"due-date-calculate-button",size:"lg",color:"marryBaby"===p?"secondary":"primary",onClick:()=>l(b,w.value),role:"button",theme:p},y("dueDatePage.lastPeriod.calculate"))))))},exports.Pagination=({className:t,pagesAmount:n,currentPage:r,onChange:o,onClick:i,style:s,href:d,queryPageName:c="page"})=>{const u=[...Array(n)].map(((e,t)=>t+1)),[m,f]=e.useState(r),g=e.useMemo((()=>d&&d.endsWith("&page=")?d.replace("&page=",""):d),[d]),p=n-1,h=e=>{e<=n&&e>0&&(f(e),o(e))},v=e=>{i&&i(e)};return e.useEffect((()=>{f(r)}),[r]),j.default.createElement(a.StyledPagination,{className:t,style:s},j.default.createElement(a.StyledPageBlock,{className:"prev-page",onClick:()=>h(m-1),"data-last-page":1===m||void 0},g?j.default.createElement("a",{href:l.formatUrlWithPageParam(g,m,c),onClick:v},j.default.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j.default.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):j.default.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j.default.createElement("path",{d:"M5.5 9L1.5 5L5.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))),u.length>8?j.default.createElement(Y,{pagesAmount:n,activePage:m,handlePageChange:h,handleClick:v,href:g,queryPageName:c}):u.map((e=>j.default.createElement(a.StyledPaginationBlock,{key:`pagination+${e}`,"data-page-active":e===m||void 0,onClick:()=>h(e)},g?j.default.createElement("a",{href:l.formatUrlWithPageParam(g,e,c),onClick:v},e):e))),j.default.createElement(a.StyledPageBlock,{className:"next-page",onClick:()=>h(m+1),"data-last-page":m===p+1||void 0},g?j.default.createElement("a",{href:l.formatUrlWithPageParam(g,m,c),onClick:v},j.default.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j.default.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))):j.default.createElement("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j.default.createElement("path",{d:"M1.5 9L5.5 5L1.5 1",stroke:"#2D87F3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},exports.Progress=({percent:e,style:t})=>j.default.createElement(a.StyledProgress,{style:Object.assign({"--progress":e},t)}),exports.ProgressBar=({type:t,numberOfStep:a,activeStep:l,labelPrefix:n,detailSteps:r,className:o,onChange:i})=>{const[c,u]=e.useState(0),m=e=>{var{trackClassName:t}=e,a=d.__rest(e,["trackClassName"]);return j.default.createElement(s.StyledTrackContainer,Object.assign({},a,{className:t}),j.default.createElement(s.StyledTrack,null))},f=j.default.createElement(s.StyledSlider,{className:o+" progress-bar"},j.default.createElement(m,null),j.default.createElement((({trackLength:e,activeStep:t,labelPrefix:l="Step",onChange:n})=>j.default.createElement(j.default.Fragment,null,Array.from({length:a},((e,t)=>t)).map(((r,o)=>j.default.createElement(s.StyledStep,{"data-is-active":o===t,"data-label":o,style:{left:o*e/(a-1)},onClick:()=>{n&&n(o)},key:o},o+1,j.default.createElement(s.StyledStepLabel,{"data-step-passed":o<=t},l+" "+(o+1))))))),{trackLength:c,activeStep:l,labelPrefix:n,onChange:i})),g=j.default.createElement("svg",{"data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 5.5 9.5"},j.default.createElement("title",null,"chevron-right"),j.default.createElement("path",{d:"M.75 8.75l4-4-4-4",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})),p=j.default.createElement(s.StyledBreadcrumbContainer,null,r&&Array.from({length:r.length},((e,t)=>t)).map(((e,t)=>{var a;return j.default.createElement(s.StyledBreadcrumbWrapper,{key:t,"data-selected":t===l,onClick:()=>{i&&i(t)}},null===(a=r[t])||void 0===a?void 0:a.text," ",t<r.length-1&&g)}))),h=j.default.createElement(s.StyledSlider,{className:o+" progress-bar"},j.default.createElement((({detailSteps:e,activeStep:t,onChange:a})=>j.default.createElement(j.default.Fragment,null,Array.from({length:e.length},((e,t)=>t)).map(((l,n)=>j.default.createElement(s.StyledDetailStep,{key:n,style:{left:100/e.length*n+"%",width:100/e.length+"%"},onClick:()=>{a&&a(n)}},e[n].icon?j.default.createElement(s.StyledDetailStepIndicatorExternal,{onClick:()=>{a&&a(n)}},e[n].icon):j.default.createElement(s.StyledDetailStepIndicator,{"data-is-active":n===t,"data-label":l,onClick:()=>{a&&a(n)},key:n},n+1),j.default.createElement(s.StyledDetailStepLabel,{"data-step-passed":n<t+1},e[n].text,j.default.createElement(s.StyledDetailStepDescription,null,e[n].description)),n<e.length-1&&j.default.createElement(m,{"data-step-passed":n<t,trackClassName:"progress-track","data-track-type":"detail"})))))),{activeStep:l,detailSteps:r,onChange:i})),v=e.useCallback(H.default((()=>{const e=document.querySelector(".progress-bar");e&&u(e.offsetWidth)}),1e3),[]);return e.useEffect((()=>{const e=document.querySelector(".progress-bar");return u(null==e?void 0:e.offsetWidth),window.addEventListener("resize",v,{passive:!0}),()=>{window.removeEventListener("resize",v)}}),[]),"step-track"===t&&f||"breadcrumb"===t&&p||"detail-track"===t&&h},exports.RateStars=({gap:t=2,size:l=24,star:n,totalStars:r=5,onSelect:o,hideEmptyStars:i,style:s,className:d})=>{const c=Math.floor(n),u=n-c>=.5?1:0,[m,f]=e.useState(null),g=m||c,p=m?0:u;return j.default.createElement(a.StyledRateStars,{"data-selectable":!!o,style:Object.assign({"--gap":t,"--star-size":l},s),className:d},Array.from({length:i?c+u:r}).map(((e,t)=>{const a=()=>!!o&&f(t+1),l=()=>!!o&&f(null);return t+1<=g?j.default.createElement(X,{key:t,onClick:()=>null==o?void 0:o(t+1),onMouseOver:a,onMouseLeave:l}):t+1===g+p?j.default.createElement(J,{key:t,onClick:()=>null==o?void 0:o(t+1),onMouseOver:a,onMouseLeave:l}):j.default.createElement(K,{key:t,onClick:()=>null==o?void 0:o(t+1),onMouseOver:a,onMouseLeave:l})})))},exports.ScrollList=({row:t=2,column:a=3,isDotsShown:l=!0,isImageGalleryShown:n=!1,mode:r="infinity",type:o="separated",distanceOverlappedLeft:i={amount:0,unit:"pixel"},children:d,className:c,isProgressShown:u=!1,statusChildren:m,isArrowShown:f=!1,classNameLeftArrow:g,classNameRightArrow:p,dataEventCategory:h,dataEventAction:v,dataEventLabel:y,onChangePage:E,page:b,customPageWidth:C,scheme:w="hellosites",arrowType:k="Discover"})=>{const S="number"==typeof b,[x,L]=e.useState(S?b:0),T=[];j.default.Children.map(d,((e,l)=>{l%(t*a)==0&&T.push([]),T[T.length-1].push(j.default.cloneElement(e))}));const N=e.useRef(),D=e.useRef(0),B=e=>{if(!N.current)return;const{clientWidth:t}=N.current,a=C||t,l="intertwined"===o?"percentage"===i.unit?e*a+i.amount/100*a*e:e*a+i.amount*a*e:e*a;N.current.scrollTo({top:0,left:l,behavior:"smooth"}),D.current=e,L(e),E&&E(e)};e.useEffect((()=>{"number"==typeof b&&(e=>{if(!N.current)return;const{clientWidth:t}=N.current,a=C||t,l="intertwined"===o?"percentage"===i.unit?e*a+i.amount/100*a*e:e*a+i.amount*a*e:e*a;N.current.scrollTo({top:0,left:l,behavior:"smooth"}),D.current=e,L(e)})(b)}),[b]);const _=e=>{if(!N.current)return;const{clientWidth:t}=N.current,a=C||t;let l;l=0===x?0:x*a,"forward"===e&&(l===a*(T.length-1)?(L(T.length-1),l=a*(T.length-1),E&&E(T.length-1)):(L(x+1),l+=a,E&&E(x+1)),N.current.scrollTo({top:0,left:l,behavior:"smooth"})),"back"===e&&(0===l?(L(0),E&&E(0),l=0):(L(x-1),E&&E(x-1),l-=a),N.current.scrollTo({top:0,left:l,behavior:"smooth"}))},M=H.default((()=>{if("infinity"===r){if(!N.current)return;const{clientWidth:e,scrollLeft:t}=N.current,a=C||e,l=Math.floor(t/a);L(l),E&&E(l)}}),400);return e.useEffect((()=>{if("snapped"===r){let e,t,a,l,n,r,s=!1;const d=N.current,c=(r,o)=>{s=!0,a=!1,l=!1,e=r-d.offsetLeft,t=o-d.offsetTop,n=d.scrollLeft},u=e=>{c(e.pageX,e.pageY)},m=e=>{c(e.touches[0].pageX,e.touches[0].pageY)},f=()=>{if(s=!1,a=!1,l=!1,!N.current)return;const{clientWidth:e}=N.current,t=C||e,n="ltr"===r?0!==D.current?D.current-1:D.current:"rtl"===r&&D.current<T.length-1?D.current+1:D.current,d="intertwined"===o?"percentage"===i.unit?n*t+i.amount/100*t*n:n*t+i.amount*t*n:n*t;N.current.scrollTo({top:0,left:d,behavior:"smooth"}),r="none",D.current!==n&&(D.current=n,L(n),E&&E(n))},g=(o,i)=>{if(!s)return;const c=o-d.offsetLeft,u=i-d.offsetTop,m=c-e,f=u-t;a||l||!(f>20||f<-20)||(a=!0),!a&&(m>20||m<-20)&&(l=!0,d.scrollLeft=n-m,m>0&&(r="ltr"),m<0&&(r="rtl"),0===m&&(r="none"))},p=e=>{l&&e.preventDefault(),g(e.pageX,e.pageY)},h=e=>{l&&e.preventDefault(),g(e.touches[0].pageX,e.touches[0].pageY)};return null==d||d.addEventListener("mousedown",u,{passive:!0}),null==d||d.addEventListener("touchstart",m,{passive:!0}),window.addEventListener("mouseup",f,{passive:!0}),window.addEventListener("touchend",f,{passive:!0}),null==d||d.addEventListener("mousemove",p,{passive:!0}),null==d||d.addEventListener("touchmove",h,{passive:!0}),()=>{null==d||d.removeEventListener("mousedown",u),null==d||d.removeEventListener("touchstart",m),window.removeEventListener("mouseup",f),window.removeEventListener("touchend",f),null==d||d.removeEventListener("mousemove",p),null==d||d.removeEventListener("touchmove",h)}}}),[]),j.default.createElement(s.StyledScrollList,{className:c,"data-row":t,onScroll:M},f&&x>0&&j.default.createElement("div",{className:`${g} arrow-left`,onClick:()=>_("back"),"data-event-category":h,"data-event-action":v,"data-event-label":y},"Care"===k?j.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"42",viewBox:"0 0 42 42",fill:"none"},j.default.createElement("g",{filter:"url(#filter0_dd_12599_34420)"},j.default.createElement("path",{d:"M7.00024 19C7.00024 10.1634 14.1637 3 23.0002 3V3C31.8368 3 39.0002 10.1634 39.0002 19V19C39.0002 27.8366 31.8368 35 23.0002 35V35C14.1637 35 7.00024 27.8366 7.00024 19V19Z",fill:"white"}),j.default.createElement("path",{d:"M20.9293 19L24.7503 15.179C25.1643 14.765 25.1643 14.093 24.7503 13.679C24.3363 13.265 23.6643 13.265 23.2503 13.679L18.6363 18.293C18.2453 18.684 18.2453 19.317 18.6363 19.707L23.2503 24.321C23.6643 24.735 24.3363 24.735 24.7503 24.321C25.1643 23.907 25.1643 23.235 24.7503 22.821L20.9293 19Z",fill:"#595959"}),j.default.createElement("path",{d:"M23.0002 34C14.716 34 8.00024 27.2843 8.00024 19H6.00024C6.00024 28.3888 13.6114 36 23.0002 36V34ZM38.0002 19C38.0002 27.2843 31.2845 34 23.0002 34V36C32.3891 36 40.0002 28.3888 40.0002 19H38.0002ZM23.0002 4C31.2845 4 38.0002 10.7157 38.0002 19H40.0002C40.0002 9.61116 32.3891 2 23.0002 2V4ZM23.0002 2C13.6114 2 6.00024 9.61116 6.00024 19H8.00024C8.00024 10.7157 14.716 4 23.0002 4V2Z",fill:"#DBDFE5"})),j.default.createElement("defs",null,j.default.createElement("filter",{id:"filter0_dd_12599_34420",x:"0.000244141",y:"0",width:"42",height:"42",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},j.default.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),j.default.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),j.default.createElement("feOffset",{dx:"-2",dy:"2"}),j.default.createElement("feGaussianBlur",{stdDeviation:"2.5"}),j.default.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.263201 0 0 0 0 0.335725 0 0 0 0 0.393257 0 0 0 0.123689 0"}),j.default.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_12599_34420"}),j.default.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),j.default.createElement("feOffset",{dx:"-1",dy:"1"}),j.default.createElement("feGaussianBlur",{stdDeviation:"1"}),j.default.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.264489 0 0 0 0 0.275745 0 0 0 0 0.28861 0 0 0 0.01 0"}),j.default.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_12599_34420",result:"effect2_dropShadow_12599_34420"}),j.default.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_12599_34420",result:"shape"})))):j.default.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j.default.createElement("path",{d:"M15.9996 28.2218C22.7497 28.2218 28.2218 22.7497 28.2218 15.9996C28.2218 9.24942 22.7497 3.77734 15.9996 3.77734C9.24942 3.77734 3.77734 9.24942 3.77734 15.9996C3.77734 22.7497 9.24942 28.2218 15.9996 28.2218Z",stroke:"hellosites"===w?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),j.default.createElement("path",{d:"M15.9997 11.1109L11.1108 15.9998L15.9997 20.8887",stroke:"hellosites"===w?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),j.default.createElement("path",{d:"M20.8886 15.999L11.1108 15.999",stroke:"hellosites"===w?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),j.default.createElement("div",{ref:N,className:"container",style:{overflowX:"snapped"===r||f?"hidden":"scroll"}},T.map(((e,l)=>{let n=0;for(let e=0;e<l;e++)n+=T[e].length;return j.default.createElement("div",{key:l,className:"section",style:{marginLeft:"intertwined"===o&&0!==l?i.amount+""+("percentage"===i.unit?"%":"px"):"0px"}},1===t&&u&&j.default.createElement("div",{className:"progress-bar",style:{gridTemplateColumns:`repeat(${a}, 1fr)`}},e.map(((t,a)=>{const r=n+a,o=m.find((e=>e.index===r));return j.default.createElement("div",{className:"items-progress",key:a},0===a&&0===l?j.default.createElement("div",{className:"line",style:{visibility:"hidden"}}):j.default.createElement("div",{className:"line"}),j.default.createElement("div",{className:"icon-status"},j.default.createElement(ie,{status:null==o?void 0:o.status})),l===T.length-1&&a===e.length-1?j.default.createElement("div",{className:"line",style:{visibility:"hidden"}}):j.default.createElement("div",{className:"line"}))}))),j.default.createElement("div",{className:"grid-layout","data-index":l,style:{gridTemplateColumns:`repeat(${a}, 1fr)`,gridTemplateRows:`repeat(${t}, 1fr)`}},e.map(((e,t)=>j.default.createElement(j.default.Fragment,{key:t},j.default.createElement("div",{className:"item-grid",key:t},e))))))}))),f&&x<T.length-1&&j.default.createElement("div",{className:`${p} arrow-right`,onClick:()=>_("forward"),"data-event-category":h,"data-event-action":v,"data-event-label":y}," ","Care"===k?j.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"42",viewBox:"0 0 42 42",fill:"none"},j.default.createElement("g",{filter:"url(#filter0_dd_12597_34423)"},j.default.createElement("path",{d:"M7.00024 19C7.00024 10.1634 14.1637 3 23.0002 3C31.8368 3 39.0002 10.1634 39.0002 19C39.0002 27.8366 31.8368 35 23.0002 35C14.1637 35 7.00024 27.8366 7.00024 19Z",fill:"white"}),j.default.createElement("path",{d:"M24.0712 19L20.2502 15.179C19.8362 14.765 19.8362 14.093 20.2502 13.679C20.6642 13.265 21.3362 13.265 21.7502 13.679L26.3642 18.293C26.7552 18.684 26.7552 19.317 26.3642 19.707L21.7502 24.321C21.3362 24.735 20.6642 24.735 20.2502 24.321C19.8362 23.907 19.8362 23.235 20.2502 22.821L24.0712 19Z",fill:"#595959"}),j.default.createElement("path",{d:"M23.0002 34C14.716 34 8.00024 27.2843 8.00024 19H6.00024C6.00024 28.3888 13.6114 36 23.0002 36V34ZM38.0002 19C38.0002 27.2843 31.2845 34 23.0002 34V36C32.3891 36 40.0002 28.3888 40.0002 19H38.0002ZM23.0002 4C31.2845 4 38.0002 10.7157 38.0002 19H40.0002C40.0002 9.61116 32.3891 2 23.0002 2V4ZM23.0002 2C13.6114 2 6.00024 9.61116 6.00024 19H8.00024C8.00024 10.7157 14.716 4 23.0002 4V2Z",fill:"#DBDFE5"})),j.default.createElement("defs",null,j.default.createElement("filter",{id:"filter0_dd_12597_34423",x:"0.000244141",y:"0",width:"42",height:"42",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},j.default.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),j.default.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),j.default.createElement("feOffset",{dx:"-2",dy:"2"}),j.default.createElement("feGaussianBlur",{stdDeviation:"2.5"}),j.default.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.263201 0 0 0 0 0.335725 0 0 0 0 0.393257 0 0 0 0.123689 0"}),j.default.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_12597_34423"}),j.default.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),j.default.createElement("feOffset",{dx:"-1",dy:"1"}),j.default.createElement("feGaussianBlur",{stdDeviation:"1"}),j.default.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.264489 0 0 0 0 0.275745 0 0 0 0 0.28861 0 0 0 0.01 0"}),j.default.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_12597_34423",result:"effect2_dropShadow_12597_34423"}),j.default.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_12597_34423",result:"shape"})))):j.default.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j.default.createElement("path",{d:"M15.9996 28.2218C22.7497 28.2218 28.2218 22.7497 28.2218 15.9996C28.2218 9.24942 22.7497 3.77734 15.9996 3.77734C9.24942 3.77734 3.77734 9.24942 3.77734 15.9996C3.77734 22.7497 9.24942 28.2218 15.9996 28.2218Z",stroke:"hellosites"===w?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),j.default.createElement("path",{d:"M15.9998 20.8891L20.8887 16.0002L15.9998 11.1113",stroke:"hellosites"===w?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),j.default.createElement("path",{d:"M11.1109 16L20.8887 16",stroke:"hellosites"===w?"#2D87F3":"#e85388",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),l&&j.default.createElement("ul",{className:"bullet-nav"},T.map(((e,t)=>j.default.createElement("li",{key:t,className:"bullet-nav__item "},j.default.createElement("p",{onClick:()=>B(t),className:`bullet-nav__link scroll ${x==t?"active":null}`,"data-scheme":w}))))),n&&j.default.createElement("div",{className:"image-gallery-wrapper","data-test":T.length},T.slice(0,3).map(((e,t)=>j.default.createElement("div",{className:`image-block ${x==t?"active":null}`,key:t,onClick:()=>B(t),"data-scheme":w},e)))))},exports.SeoHead=({SEOData:t={},locale:a="vi-VN",routerPathname:l,routerQuery:n,nextHead:r,siteType:o,seoCustom:i,userId:d,forcedCanonicalUrl:c})=>{var u,m,p,h,v,y,E,b,C,w,k,S;const{totalPages:x,currentPage:L,SEOTitle:T="",SEODescription:N="",SEOImage:D,seoType:B,SEOImageWidth:_,SEOImageHeight:M,customMetaData:A=[],isIndexable:I=!0,hasNoCanonical:P=!1}=t,F=I&&g.isProduction?"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1":"noindex",{NEXT_PUBLIC_BASE_API_URL:z}=process.env;let O=t.canonicalUrl||l;Object.keys(n).forEach((e=>{const t=n[e];t&&Array.isArray(t)&&(O=O.replace(`[...${e}]`,t.join("/")))}));const H=a||"en-PH",$="helloSites"===o?f.domainLocales[H]:"www.marrybaby.vn",G=O.endsWith("/")?"":"/",W=e.useMemo((()=>{var e,l,n,r,o,i,d;let c="";if(t.apiMetaData&&"string"==typeof t.apiMetaData){const u=null===(e=t.apiMetaData)||void 0===e?void 0:e.match(/<title.*?>(.*)<\/title>/),m=` - Page ${L} of ${x}`,f=L&&1!==L&&u?t.apiMetaData.replace(u[0],u[0].includes("-")?u[0].replace("-",m+" - "):`<title>${u[1].concat(m)}</title>`).replace(`<link rel="canonical" href="https://${$}${O}${G}" />`,`<link rel="canonical" href="https://${$}${O}${G}?page=${L}" />`):t.apiMetaData;if(c=s.htmlReactParser(f,{trim:!0}),!c.find((e=>{var t,a;return"og:image"===(null===(t=e.props)||void 0===t?void 0:t.property)||"og:image:secure_url"===(null===(a=e.props)||void 0===a?void 0:a.property)}))){const e=`https://${$}/images/${a}.png`;c=[...c,j.default.createElement("meta",{key:"og:image",property:"og:image",content:(null===(l=t.openGraph)||void 0===l?void 0:l.image)||D||e||""}),j.default.createElement("meta",{key:"og:image:secure_url",property:"og:image:secure_url",content:(null===(n=t.openGraph)||void 0===n?void 0:n.image)||D||e}),j.default.createElement("meta",{key:"og:image:width",property:"og:image:width",content:(null===(r=t.openGraph)||void 0===r?void 0:r.imageWidth)&&String(null===(o=t.openGraph)||void 0===o?void 0:o.imageWidth)||_&&String(_)||"1200"}),j.default.createElement("meta",{key:"og:image:height",property:"og:image:height",content:(null===(i=t.openGraph)||void 0===i?void 0:i.imageHeight)&&String(null===(d=t.openGraph)||void 0===d?void 0:d.imageHeight)||M&&String(M)||"630"})]}}return c}),[t.apiMetaData,t.openGraph,D,M,_,L,O,x,a,$]),R=`https://${$}/images/${a}.png`;return j.default.createElement(r,null,j.default.createElement("link",{rel:"preconnect",href:"https://fonts.gstatic.com"}),"marryBaby"===o&&j.default.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Inter&family=Krub:wght@600&display=swap",rel:"stylesheet"}),"km-KH"===a?j.default.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Battambang:wght@400;700&display=swap",rel:"stylesheet"}):"id-ID"===a||"ms-MY"===a?j.default.createElement(j.default.Fragment,null):j.default.createElement("link",{href:"https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap",rel:"preload",as:"style"}),j.default.createElement("link",{rel:"preconnect",href:z}),j.default.createElement("meta",{charSet:"UTF-8"}),j.default.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"}),j.default.createElement("meta",{name:"google",content:"notranslate"}),j.default.createElement("meta",{name:"robots",content:F}),j.default.createElement("meta",{property:"fb:app_id",content:"653713035016537"}),A.map(((e,t)=>j.default.createElement("meta",Object.assign({key:t},e)))),j.default.createElement("meta",{name:"theme-color",content:"helloSites"===o?"#2c87f3":"#e85388"}),j.default.createElement("meta",{name:"page_type",content:"Home"}),j.default.createElement("meta",{name:"page_platform",content:"WEB"}),j.default.createElement("meta",{name:"page_language",content:H}),j.default.createElement("meta",{name:"ahrefs-site-verification",content:"46e7521a2b89a1013149c4685bbe02a1d36a4732fef98655142b829bc87cba4d"}),!W&&j.default.createElement(j.default.Fragment,null,"helloSites"===o?j.default.createElement("title",null,i?T:T+" - "+(null===(u=f.LOCALE_SPECS[a])||void 0===u?void 0:u.SITE_NAME)):j.default.createElement("title",null,T),!P&&j.default.createElement("link",{rel:"canonical",href:`https://${$}${O}`}),j.default.createElement("meta",{name:"description",content:N||(null===(m=t.openGraph)||void 0===m?void 0:m.description)}),t.schemaData&&j.default.createElement("script",{type:"application/ld+json",className:"yoast-schema-graph",dangerouslySetInnerHTML:{__html:t.schemaData}}),j.default.createElement("meta",{property:"og:locale",content:a}),j.default.createElement("meta",{property:"og:type",content:B||"website"}),j.default.createElement("meta",{property:"og:title",content:(null===(p=t.openGraph)||void 0===p?void 0:p.title)||T}),j.default.createElement("meta",{property:"og:description",content:(null===(h=t.openGraph)||void 0===h?void 0:h.description)||N}),j.default.createElement("meta",{property:"og:url",content:`https://${$}${O}`}),j.default.createElement("meta",{property:"og:site_name",content:`https://${$}`}),j.default.createElement("meta",{property:"og:image",content:(null===(v=t.openGraph)||void 0===v?void 0:v.image)||D||R||""}),j.default.createElement("meta",{property:"og:image:secure_url",content:(null===(y=t.openGraph)||void 0===y?void 0:y.image)||D||R}),j.default.createElement("meta",{property:"og:image:width",content:(null===(E=t.openGraph)||void 0===E?void 0:E.imageWidth)&&String(null===(b=t.openGraph)||void 0===b?void 0:b.imageWidth)||_&&String(_)||"1200"}),j.default.createElement("meta",{property:"og:image:height",content:(null===(C=t.openGraph)||void 0===C?void 0:C.imageHeight)&&String(null===(w=t.openGraph)||void 0===w?void 0:w.imageHeight)||M&&String(M)||"630"}),j.default.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),j.default.createElement("meta",{name:"twitter:title",content:(null===(k=t.twitter)||void 0===k?void 0:k.title)||T}),j.default.createElement("meta",{name:"twitter:description",content:N}),j.default.createElement("meta",{name:"twitter:image",content:(null===(S=t.twitter)||void 0===S?void 0:S.image)||D})),("helloSites"===o?f.FAVICONS[H]||[]:f.FAVICONS.marryBaby).map(((e,t)=>"link"===e.type?j.default.createElement("link",{key:`favicon-${t}`,rel:e.rel,href:e.href,sizes:e.sizes}):"meta"===e.type?j.default.createElement("meta",{key:t,name:e.name,content:e.content}):null)),Array.isArray(W)&&c?W.filter((e=>"canonical"!==e.props.name&&"canonical"!==e.props.rel)):W,c&&j.default.createElement("link",{rel:"canonical",href:c}),!t.hasNoAmp&&"vi-VN"!==a&&j.default.createElement("link",{rel:"amphtml",href:`https://${$}${O}${G}?amp=1`}),d&&"undefined"!=typeof window?j.default.createElement("script",{dangerouslySetInnerHTML:{__html:`window.dataLayer = window.dataLayer || []; window.dataLayer.push({'userID': '${d}'});`}}):null)},exports.Shadow=({size:e,children:t,style:l,className:n})=>j.default.createElement(a.StyledShadow,{style:l,className:n,"data-shadow-size":e},t),exports.ShareContainer=({url:a,onCopied:l,locale:r,siteType:o})=>{const{t:c}=h.useTranslations(),u=z.getSocialList(a||"").filter((e=>!e.allowedLocales||e.allowedLocales.includes(r))),m=e.useMemo((()=>"undefined"!=typeof window?window.location.href:""),[]);return j.default.createElement(s.StyledShareContainer,null,j.default.createElement(t.Text,{size:"p3",color:i.theme.colors.gray800},c("shareContainer.title")),j.default.createElement("div",{className:"icon-group"},u.map(((e,t)=>j.default.createElement("a",{key:t,href:e.href,target:"_blank",rel:"noreferrer","data-event-category":"Health Tool","data-event-action":`Social Share - ${e.name}`,"data-event-label":m},e.icon))),j.default.createElement(n.Button,{theme:o,size:"sm",type:"button",color:"tertiary",className:"share",style:{},icon:j.default.createElement(Oe,null),onClick:()=>d.__awaiter(void 0,void 0,void 0,(function*(){var e;yield null===(e=null===navigator||void 0===navigator?void 0:navigator.clipboard)||void 0===e?void 0:e.writeText(a),null==l||l()})),"data-event-category":"Health Tool","data-event-action":"Copy Link","data-event-label":m})))},exports.ShareDrawer=a=>{var{open:l,title:r,onClose:o,onCopied:c,onShared:u,url:m,locale:f}=a,g=d.__rest(a,["open","title","onClose","onCopied","onShared","url","locale"]);const{t:p}=h.useTranslations(),v=e.useCallback((()=>d.__awaiter(void 0,void 0,void 0,(function*(){var e;yield null===(e=null===navigator||void 0===navigator?void 0:navigator.clipboard)||void 0===e?void 0:e.writeText(m),null==c||c()}))),[m,c]),E=z.getSocialList(m||"").filter((e=>!e.allowedLocales||e.allowedLocales.includes(f)));return e.useEffect((()=>{l&&navigator.share&&navigator.share({title:null!=r?r:"Read This Post",url:m}).then((()=>{null==u||u()})).catch((()=>{null==o||o()}))}),[m,r,u,l]),"undefined"!=typeof navigator&&navigator.share?null:j.default.createElement(s.StyledShareDrawer,Object.assign({title:p("share.title"),onClose:o,open:l,placement:"bottom"},g),j.default.createElement("div",{className:"share-container"},j.default.createElement("div",{className:"icon-container"},j.default.createElement(t.Text,{type:"semiBold",size:"s3",color:i.theme.colors.gray600},p("share.title")),j.default.createElement("div",{className:"icon-group"},E.map(((e,t)=>j.default.createElement("a",{key:t,href:e.href,target:"_blank",rel:"noreferrer"},e.icon))))),j.default.createElement("div",{className:"link-container"},j.default.createElement(t.Text,{type:"semiBold",size:"s3",color:i.theme.colors.gray600},p("share.copyLink")),j.default.createElement("div",{className:"input-group"},j.default.createElement(y.Input,{name:"link",size:"md",value:m,isDisabled:!0}),j.default.createElement(n.Button,{size:"md",type:"button",color:"tertiary",icon:j.default.createElement(je,null),onClick:v})))))},exports.StatisticCard=({type:e,description:t,value:a,withIcon:l,isInACard:n,cardColor:r,className:o})=>j.default.createElement(s.StyledStatisticContainer,{className:o,"data-size":e,"data-is-in-card":"big"===e&&n,"data-card-color":r},j.default.createElement(s.StyledDescriptionWrapper,null,"small"===e&&j.default.createElement(s.StyledDot$1,{"data-color":r}),t),j.default.createElement(s.StyledStatisticNumberWrapper,{"data-size":e},"small"!==e&&l,a)),exports.SurveyThankyouCard=({thankyou:e,thankyouSubtitle:l,className:n,style:r})=>j.default.createElement(s.StyledSurveyQuestionCard,{className:n,style:r},j.default.createElement("div",{className:"survey-inner-wrapper"},j.default.createElement(s.StyledSurveyThankyouCard,null,j.default.createElement("div",{className:"survey-thankyou-wrapper-inner"},j.default.createElement("svg",{viewBox:"0 0 122 122",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"survey-thankyou-icon"},j.default.createElement("path",{d:"M61.5 122C94.6371 122 121.5 95.1371 121.5 62C121.5 28.8629 94.6371 2 61.5 2C28.3629 2 1.5 28.8629 1.5 62C1.5 95.1371 28.3629 122 61.5 122Z",fill:i.theme.colors.primary50}),j.default.createElement("ellipse",{cx:"61.5",cy:"110.36",rx:"48",ry:"3.36",fill:"#91CAFF"}),j.default.createElement("path",{d:"M82.9048 72.6663H101.5L87.597 40H35.403L21.5 72.6663H40.0952V91H83.0786L82.9048 72.6663Z",fill:"#2C74DF"}),j.default.createElement("path",{d:"M74.4004 15.0005H39.863C36.9017 15.0005 34.5 17.4022 34.5 20.3635V72.5769C34.5 75.5383 36.9017 77.9399 39.863 77.9399H83.1357C86.097 77.9399 88.4987 75.5383 88.4987 72.5769V29.0988L88.4987 21.0005C88.4987 17.6868 85.8124 15.0005 82.4987 15.0005H74.4004Z",fill:"white"}),j.default.createElement("path",{d:"M88.8529 80.1077H34.1469C31.8699 80.1077 30.06 78.3036 30.06 76.0338V65.3837C30.06 63.1139 31.8699 61.3098 34.1469 61.3098H88.8529C91.1299 61.3098 92.9398 63.1139 92.9398 65.3837V76.0338C92.9398 78.3036 91.1299 80.1077 88.8529 80.1077Z",fill:"#E4E8EC"}),j.default.createElement("path",{d:"M90.838 85.4512H32.1618C29.8849 85.4512 28.075 83.6471 28.075 81.3774V70.7272C28.075 68.4575 29.8849 66.6533 32.1618 66.6533H90.7796C93.0566 66.6533 94.8665 68.4575 94.8665 70.7272V81.3774C94.9249 83.6471 93.0566 85.4512 90.838 85.4512Z",fill:"white"}),j.default.createElement("path",{d:"M103.748 75.4919V105.755C103.748 107.675 102.172 109.247 100.245 109.247H23.0031C21.0764 109.247 19.5 107.675 19.5 105.755V75.4919C19.5 73.5713 21.0764 72 23.0031 72H42.3866C44.3133 72 45.8897 73.5713 45.8897 75.4919V80.8461C45.8897 81.1952 46.1232 81.428 46.4735 81.428H76.7749C77.1253 81.428 77.3588 81.1952 77.3588 80.8461V75.4919C77.3588 73.5713 78.9352 72 80.8618 72H100.245C102.172 72 103.748 73.5713 103.748 75.4919Z",fill:"#45A4FF"}),j.default.createElement("path",{d:"M51.9541 91.3767V94.4612C51.9541 96.0907 53.2386 97.3711 54.8733 97.3711H67.7179C69.3526 97.3711 70.6371 96.0907 70.6371 94.4612V91.3767",stroke:"#2C74DF",strokeWidth:"3",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),j.default.createElement("path",{d:"M120.5 38.0251C118.5 37.7793 117.25 39.3768 118.125 41.22L118.375 41.9573C119.125 43.8006 118 45.398 116 45.1523L115.25 45.0294C113.25 44.7836 112 46.3811 112.875 48.2244L113.25 48.9616C114 50.8049 112.875 52.4025 110.875 52.1567L110.125 52.0337C108.625 51.9109 107.5 52.7712 107.5 54",stroke:"#FE921D",strokeWidth:"1.9096",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),j.default.createElement("path",{d:"M1.53299 62C1.2644 63.413 2.6745 64.337 4.35323 63.8478L5.02472 63.6304C6.70346 63.087 8.11356 64.0109 7.84496 65.4783L7.7107 66.0217C7.4421 67.4348 8.8522 68.3587 10.5309 67.8696L11.2024 67.6522C12.8812 67.1087 14.2913 68.0326 14.0227 69.5L13.8884 70.0435C13.687 71.1304 14.4256 71.8913 15.5 72",stroke:"#00B16A",strokeWidth:"2.8751",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),j.default.createElement("path",{d:"M118 92C119.381 92 120.5 90.8807 120.5 89.5C120.5 88.1193 119.381 87 118 87C116.619 87 115.5 88.1193 115.5 89.5C115.5 90.8807 116.619 92 118 92Z",stroke:"#00B16A",strokeWidth:"2.8751",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),j.default.createElement("path",{d:"M82.0001 3.18747L83.1875 7.53467L87.5347 6.34727L86.3473 2.00007L82.0001 3.18747Z",stroke:"#00B16A",strokeWidth:"2.1628",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),j.default.createElement("path",{d:"M17.0001 28C18.1046 28 19 27.1045 19 25.9999C19 24.8954 18.1046 24 17.0001 24C15.8955 24 15 24.8954 15 25.9999C15 27.1045 15.8955 28 17.0001 28Z",stroke:"#FE921D",strokeWidth:"2.3278",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),j.default.createElement("path",{d:"M61.5 26.6667C54.136 26.6667 48.1667 32.6361 48.1667 40.0001C48.1667 47.3641 54.136 53.3334 61.5 53.3334C68.864 53.3334 74.8334 47.3641 74.8334 40.0001C74.8334 32.6361 68.864 26.6667 61.5 26.6667ZM69.1094 36.9427L59.776 46.2761C59.516 46.5361 59.1747 46.6667 58.8334 46.6667C58.492 46.6667 58.1507 46.5361 57.8907 46.2761L53.8907 42.2761C53.3694 41.7547 53.3694 40.9121 53.8907 40.3907C54.412 39.8694 55.2547 39.8694 55.776 40.3907L58.8334 43.4481L67.224 35.0574C67.7454 34.5361 68.588 34.5361 69.1094 35.0574C69.6307 35.5787 69.6307 36.4214 69.1094 36.9427Z",fill:"#00CB8A"})),e&&j.default.createElement(a.Heading,{className:"survey-thankyou-title",tag:"h3"},e),l&&j.default.createElement(t.Text,{className:"survey-thankyou-subtitle",size:"p3"},l))))),exports.THRCardEmbed=({isSide:a,locale:l,thrContent:n,isMobile:r,info:d,inputErrorMessage:c,onFormChange:u,onSubmit:m})=>{var g,p,v;const{t:y}=h.useTranslations(),{getHealthToolLink:C}=D.useHealthToolsCache(l),w=e.useMemo((()=>C(S.HEALTH_TOOL_TYPE.THR)),[C]),[k,x]=e.useState(!1),[T,M]=e.useState("low_intensity"),[A,I]=e.useState("male"),[P,F]=e.useState(60),[z,O]=e.useState({idAge:0,minAge:0,maxAge:18,rangeMale:40,rangeFemale:40}),H=[{idAge:0,minAge:0,maxAge:18,rangeMale:40,rangeFemale:40},{idAge:1,minAge:18,maxAge:25,rangeMale:49,rangeFemale:54},{idAge:2,minAge:25,maxAge:35,rangeMale:49,rangeFemale:54},{idAge:3,minAge:35,maxAge:45,rangeMale:50,rangeFemale:54},{idAge:4,minAge:45,maxAge:55,rangeMale:50,rangeFemale:54},{idAge:5,minAge:55,maxAge:65,rangeMale:51,rangeFemale:54},{idAge:6,minAge:65,maxAge:120,rangeMale:50,rangeFemale:54}],$=[{value:"low_intensity",label:y("targetHeartRate.lowIntensity.title"),image:o.CommonGAssets.getAssetPath("/low.svg"),imageActive:o.CommonGAssets.getAssetPath("/low-active.svg"),content:y("targetHeartRate.lowIntensity.note")},{value:"moderate_intensity",label:y("targetHeartRate.moderateIntensity.title"),image:o.CommonGAssets.getAssetPath("/moderate.svg"),imageActive:o.CommonGAssets.getAssetPath("/moderate-active.svg"),content:y("targetHeartRate.moderateIntensity.note")},{value:"aerobic_zone",label:y("targetHeartRate.aerobicZone.title"),image:o.CommonGAssets.getAssetPath("/aerobic.svg"),imageActive:o.CommonGAssets.getAssetPath("/aerobic-active.svg"),content:y("targetHeartRate.aerobicZone.note")},{value:"vigorous_intensity",label:y("targetHeartRate.vigorousIntensity.title"),image:o.CommonGAssets.getAssetPath("/vigorous.svg"),imageActive:o.CommonGAssets.getAssetPath("/vigorous-active.svg"),content:y("targetHeartRate.vigorousIntensity.note")},{value:"maximum_intensity",label:y("targetHeartRate.maximumIntensity.title"),image:o.CommonGAssets.getAssetPath("/maximum.svg"),imageActive:o.CommonGAssets.getAssetPath("/maximum-active.svg"),content:y("targetHeartRate.maximumIntensity.note")}],G=e.useMemo((()=>[{value:"male",label:y("gender.male"),content:j.default.createElement(b.Icon.GenderChooseBoy,null)},{value:"female",label:y("gender.female"),content:j.default.createElement(b.Icon.GenderChooseGirl,null)}]),[]);return e.useEffect((()=>{const e=((new Date).getTime()-new Date(null==d?void 0:d.age).getTime())/1e3;x(e>=567648e3);const t=H.find((t=>e>=365*t.minAge*24*60*60&&e<365*t.maxAge*24*60*60))||H[0];O(t),F(60)}),[null==d?void 0:d.age]),j.default.createElement(s.StyledContainer,{"data-is-side":a},j.default.createElement(s.ToolsBannerCard,{isSide:a,bannerUrl:o.CommonGAssets.getAssetPath("embedToolBannerBlue.svg"),icon:j.default.createElement("img",{alt:"health-tool-icon",src:null==n?void 0:n.featured_image,style:{objectFit:"contain",marginLeft:"auto",maxWidth:"100%"}}),heading:y("targetHearRate.heading"),medicalReview:(null===(g=null==n?void 0:n.reviewedBy)||void 0===g?void 0:g.display_name)?j.default.createElement(t.Text,{size:"n1",color:i.theme.colors.white},j.default.createElement("span",{dangerouslySetInnerHTML:{__html:y("toolPage.toolReviewer",{expert_name:`<a\n style="color: white"\n href="${_.formatUserProfileUrl(null==n?void 0:n.reviewedBy)}"\n >\n ${null===(p=null==n?void 0:n.reviewedBy)||void 0===p?void 0:p.display_name}\n </a>`,date:null==n?void 0:n.reviewedDate})}}),j.default.createElement("span",null)):void 0,isMobile:r}),j.default.createElement(E.Container,null,j.default.createElement(s.StyledContent,{className:"heart-rate-cal",onSubmit:e=>e.preventDefault(),"data-is-side":a},j.default.createElement(s.StyledRow$1,{"data-is-side":a},j.default.createElement(s.FormControl$1,null,j.default.createElement(s.StyledInput$1,{size:"md",name:"gender",label:y("bmi.selectGender"),CustomInput:j.default.createElement(N.RadioImageGroup,{options:G,value:A,onChange:e=>{I(e),F(60)},className:"bmi--input-radio_gender"}),className:"bmi--input bmi--input-gender"}))),j.default.createElement(s.StyledRow$1,null,j.default.createElement(ve,{info:d,locale:l,errorMessage:c,onChange:u})),j.default.createElement("div",{className:"slider-heart-rate"},j.default.createElement(B.Label,{size:"label2",style:{display:"inline-block",marginBottom:"9px",color:i.theme.colors.gray600,fontWeight:"bold",fontSize:"12px"},htmlFor:"gender-selector"},y("targetHeartRate.heartRateInput")),j.default.createElement("div",{className:"slider-outer-wrapper"},j.default.createElement(L.Slider,{containerStyle:{flex:1},min:"male"===A?z.rangeMale:z.rangeFemale,max:200,step:1,value:P,withControl:!0,onChange:F}))),k&&j.default.createElement(s.FormControl$1,null,j.default.createElement(s.StyledActive,null,j.default.createElement(B.Label,{size:"label2",style:{display:"inline-block",fontWeight:"bold",color:i.theme.colors.gray600,marginBottom:"9px"},htmlFor:"gender-selector"},y("targetHeartRate.selectActive")),j.default.createElement("div",{className:"card"},j.default.createElement(he,{options:$.map((e=>({value:e.value,label:e.label,image:e.image,imageActive:e.imageActive}))),value:T,onChange:e=>{M(e)},className:"gender-selector"})),T&&j.default.createElement("div",{className:"note"},j.default.createElement("img",{style:{height:"16px",width:"16px"},src:o.CommonGAssets.getAssetPath("/infoIcon.svg"),alt:""}),j.default.createElement(t.Text,{size:"n1",color:"#595959"},null===(v=$[$.findIndex((e=>e.value==T))||0])||void 0===v?void 0:v.content)),!T&&j.default.createElement("span",{style:{color:"#e64728"}},c.intensity)))),j.default.createElement("div",{style:{display:"flex"}},j.default.createElement(s.StyledButton$1,{size:"lg",onClick:()=>{m(A,T,[P])},dataEventCategory:"Health Tool",dataEventAction:"THR",dataEventLabel:`https://${f.domainLocales[l]}/${w}`},y("bmi.submit")))))},exports.Tag=({type:e,children:l,style:n,isInline:r,isSquared:o=!1,className:i,isLight:s,hasMorePadding:d,isLink:c,isSelected:u,textProps:m={size:"sm"}})=>{const f=m.color?{"--text-props-color":m.color}:{};return j.default.createElement(a.StyledTag,{"data-is-squared":o||void 0,"data-tag-type":e,"data-is-light":s||void 0,"data-has-more-padding":d||void 0,"data-is-inline":r||void 0,style:Object.assign(Object.assign({},n),f),className:i,"data-is-selected":u||void 0,"data-is-link":c||void 0,tagType:e,isInline:r,tagHasMorePadding:d,tagIsLight:s,tagIsSquared:o,tagIsALink:c},j.default.createElement(t.Text,Object.assign({},m),l))},exports.Toggle=({className:e,id:t,onChange:l,checked:n,style:r,label:o})=>j.default.createElement(a.StyledToggle,{className:e,style:r},j.default.createElement("input",{type:"checkbox",id:t,onChange:l,checked:n}),j.default.createElement("label",{htmlFor:t},j.default.createElement(a.StyledToggleIcon,null),o&&j.default.createElement(a.StyledToggleLabel,null,o))),exports.UnderlinedLink=({size:e,isDisabled:t,className:l,link:n,style:r})=>j.default.createElement(a.StyledUnderlinedLink,{className:l,"data-size":e,style:r,"data-disabled":t||void 0},n),exports.Uploader=({type:e,withIcon:t,onFileSelected:l,inputId:r,withElement:o,fileAcceptType:i,multiple:s,value:d,className:c})=>{const u=()=>{var e;null===(e=document.querySelector("#uploader-input-"+r))||void 0===e||e.click()};return j.default.createElement(a.StyledUploader,{className:c},"badge"===e?j.default.createElement(a.StyledElementContainer,{onClick:u,"data-is-attached-to-element":!!o},o,j.default.createElement(a.StyledIconWrapper,{"data-is-attached-to-element":!!o},t)):o?j.default.createElement("div",{onClick:u},o):j.default.createElement(n.Button,{size:"md",color:"secondary",className:"default-button",icon:t,onClick:u},j.default.createElement(a.StyledDefaultButtonContent,null,j.default.createElement("svg",{id:"prefix__Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.5 13.5"},j.default.createElement("defs",null,j.default.createElement("style",null,".prefix__cls-1{fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}")),j.default.createElement("title",null,"upload"),j.default.createElement("path",{className:"prefix__cls-1",d:"M14 10v2.67A1.33 1.33 0 0112.67 14H3.33A1.33 1.33 0 012 12.67V10M11.33 5.33L8 2 4.67 5.33M8 2v8",transform:"translate(-1.25 -1.25)"})),"Upload Image")),j.default.createElement("input",{id:"uploader-input-"+r,accept:i,multiple:s,type:"file",style:{display:"none"},onChange:e=>{l(e.target.files)},value:d}))},exports.index=oe,exports.index$1=de;
|
package/build/index-922aa090.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("react"),t=require("./index.styled-6e88c577.js"),a=require("./tslib.es6-ff6d8bab.js"),r=require("./useTranslations-b15251a8.js"),s=require("@mantine/core");require("./gAssets.js");var n=require("./index-dfb7b798.js"),i=require("./index-05a92235.js");require("dayjs"),require("./screenSizeContext-2a70b050.js"),require("styled-components"),require("./theme-3d7b7e57.js"),require("./index-d3826236.js"),require("./utils-a25ea61c.js"),require("./isProduction-5377bba0.js"),require("./Onboarding-5e427213.js"),require("./translationsContext-3005d851.js"),require("string-format"),require("./index-76781aaa.js"),require("@mantine/hooks");var l=require("./index.styled-06bff8be.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=o(e);const c={admin:"cardAuthor.admin",moderator:"cardAuthor.moderator",ambassador:"cardAuthor.ambassador",expert:"cardAuthor.expert",sponsor:"cardAuthor.sponsor",guide:"cardAuthor.guide",influencer:"cardAuthor.influencer"};var u="Dudns9-";exports.AuthorBadge=e=>{var{siteType:s,role:n,title:i,styles:l,className:o}=e,u=a.__rest(e,["siteType","role","title","styles","className"]);const{t:m}=r.useTranslations(),v=n?(e=>["admin","moderator","ambassador","expert","sponsor","guide","influencer"].find((t=>t===e)))(n):"",{classes:y,cx:b}=t.useStyles(void 0,{name:"AuthorBadge",styles:l});return v&&c[v]?d.default.createElement("div",Object.assign({className:b(y.root,o),"data-label-type":v,"data-is-marrybaby":"marryBaby"===s},u),i||m(c[v])):null},exports.BtnChoice=({value:t,choices:a,onChange:r})=>{const[s,n]=e.useState(t);return e.useEffect((()=>{n(t)}),[t]),d.default.createElement("div",{className:u},a.map(((e,t)=>d.default.createElement(i.Button,{dataEventCategory:e.dataEventCategory,dataEventAction:e.dataEventAction,dataEventLabel:e.dataEventLabel,size:"sm",variant:e.value===s?"primary":"tertiary",key:t,onClick:()=>{n(e.value),null==r||r(e.value)}},e.label||""))))},exports.Divider=({type:e="solid",className:a,style:r})=>d.default.createElement(t.StyledDivider,{style:r,className:a,"data-diver-type":e,dividerType:e}),exports.ImageWithHandler=t=>{var{fallbackSrc:r}=t,n=a.__rest(t,["fallbackSrc"]);const{other:i}=s.useMantineTheme(),l=e.useRef(null),o=r||i.defaultImage,c=n.src||o||"",u=e.useRef(!1);e.useEffect((()=>{c!==o&&l.current&&(l.current.src=c)}),[]),e.useEffect((()=>{u.current=!1}),[c]);return d.default.createElement("img",Object.assign({ref:l},n,{src:c,onError:e=>{var t;u.current||(e.currentTarget.src=o||"",u.current=!0),null===(t=n.onError)||void 0===t||t.call(n,e)}}))},exports.Tabs=({style:t,initialTab:a,tabContent:r,onChange:s,className:i,dataEventCategory:o,dataEventAction:c,dataEventLabel:u,id:m,styles:v})=>{const{classes:y,cx:b,theme:f}=l.useStyles(void 0,{name:"Tabs",styles:v}),[E,g]=e.useState(a||0);return e.useEffect((()=>{g(a)}),[a]),d.default.createElement("ul",{style:t,className:b(y.root,i),role:"tablist",id:m},r.map(((e,t)=>d.default.createElement("li",{className:`${y.item} ${E===t?"active":""}`,"aria-selected":E===t,role:"tab",onClick:()=>{g(t),s&&s(t)},onKeyDown:e=>{"Enter"===e.key&&(g(t),s&&s(t))},key:t,"data-event-category":e.dataEventCategory||o,"data-event-action":e.dataEventAction||c,"data-event-label":e.dataEventLabel||u,tabIndex:0,"data-testid":e.dataTestid},d.default.createElement("div",{className:y.itemInner},e.icon&&d.default.createElement("div",{className:y.icon},e.icon),d.default.createElement(n.Text,{className:y.label,size:e.textSize||"sm",weight:e.textType||"bold",color:E===t?f.fn.primaryColor():e.textColor||f.colors.gray[4],dataEventCategory:e.dataEventCategory,dataEventAction:e.dataEventAction,dataEventLabel:e.dataEventLabel},e.name))))))};
|
package/build/index-a2bee1ad.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-ff6d8bab.js"),t=require("react"),l=require("./gAssets.js"),r=require("./index-dfb7b798.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=a(t);exports.Modal=t=>{var{title:a}=t,n=e.__rest(t,["title"]);return s.default.createElement(s.default.Fragment,null,s.default.createElement(r.StyledModal,Object.assign({centered:!0,styles:{body:{padding:"40px"},inner:{borderRadius:"6px"}}},n,{withCloseButton:!1,title:n.withCloseButton&&s.default.createElement(s.default.Fragment,null,a,s.default.createElement("img",{className:"mantine-Modal-close",src:l.CommonGAssets.getAssetPath("CloseModal.svg"),onClick:()=>{var e;return null===(e=n.onClose)||void 0===e?void 0:e.call(n)}}))})))};
|
package/build/index-dfb7b798.js
DELETED
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("react"),t=require("@mantine/core"),r=require("./gAssets.js"),a=require("@mantine/dates"),n=require("styled-components"),l=require("./tslib.es6-ff6d8bab.js"),o=require("./utils-a25ea61c.js"),i=require("@mantine/carousel"),s=require("./index-d3826236.js"),c=require("./Onboarding-5e427213.js"),d=require("dayjs");require("./screenSizeContext-2a70b050.js");var m=require("./theme-3d7b7e57.js");require("./isProduction-5377bba0.js");var h=require("@mantine/hooks");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function u(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var f=p(e),g=u(e),v=p(n),b=p(d);const E=v.default(a.DatePicker)`
|
|
2
|
-
position: relative;
|
|
3
|
-
${e=>e.fullWidth&&n.css`
|
|
4
|
-
.mantine-DatePicker-dropdown {
|
|
5
|
-
min-width: 100%;
|
|
6
|
-
display: flex;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
align-items: center;
|
|
9
|
-
}
|
|
10
|
-
`}
|
|
11
|
-
`,x=v.default(a.DateRangePicker)`
|
|
12
|
-
position: relative;
|
|
13
|
-
${e=>e.fullWidth&&n.css`
|
|
14
|
-
.mantine-DateRangePicker-dropdown {
|
|
15
|
-
min-width: 100%;
|
|
16
|
-
display: flex;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
align-items: center;
|
|
19
|
-
}
|
|
20
|
-
`}
|
|
21
|
-
`,z=e=>f.default.createElement(E,Object.assign({size:"md",clearable:!1,fullWidth:!0,styles:{rightSection:{pointerEvents:"none",cursor:"default"}},rightSection:f.default.createElement(t.Image,{src:r.CommonGAssets.getAssetPath(e.isMB?"MB-calendar.svg":"OutlineCalendar.svg"),width:16,height:16})},e,{className:`input-control ${(null==e?void 0:e.className)||""}`}));z.Range=e=>f.default.createElement(x,Object.assign({size:"md",clearable:!1,fullWidth:!0,styles:{rightSection:{pointerEvents:"none",cursor:"default"}},rightSection:f.default.createElement(t.Image,{src:r.CommonGAssets.getAssetPath("OutlineCalendar.svg"),width:16,height:16})},e));const C=()=>"undefined"!=typeof window&&window.innerWidth<o.Breakpoints.BREAK_POINT_MOBILE,w=()=>"undefined"!=typeof window&&window.innerWidth>=o.Breakpoints.BREAK_POINT_MOBILE&&window.innerWidth<o.Breakpoints.BREAK_POINT_PC,y=()=>{const[t,r]=e.useState(C()),[a,n]=e.useState(w());return e.useEffect((()=>{const e=()=>{r(C()),n(w())};return window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}}),[]),{isMobile:t,isLargeMobile:a}};class M extends e.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error("Uncaught error:",e,t)}render(){return this.state.hasError?this.props.fallback||f.default.createElement(f.default.Fragment,null):this.props.children}}const j=e=>{var{slidesToShow:t=1,children:r}=e,a=l.__rest(e,["slidesToShow","children"]);return(Array.isArray(r)?r.length:1)?f.default.createElement(M,null,f.default.createElement(i.Carousel,Object.assign({slideSize:String(Math.floor(1/t*100))+"%",containScroll:"trimSnaps"},a),r)):null};j.Slide=i.Carousel.Slide;const O=v.default(j)`
|
|
22
|
-
cursor: grab;
|
|
23
|
-
width: 100%;
|
|
24
|
-
.mantine-Carousel-control {
|
|
25
|
-
background: rgb(255, 255, 255);
|
|
26
|
-
opacity: 1;
|
|
27
|
-
border: none;
|
|
28
|
-
border-radius: 0;
|
|
29
|
-
box-shadow: none;
|
|
30
|
-
&[data-inactive] {
|
|
31
|
-
opacity: 0;
|
|
32
|
-
cursor: default;
|
|
33
|
-
}
|
|
34
|
-
&:first-child {
|
|
35
|
-
padding-right: 24px;
|
|
36
|
-
background: linear-gradient(
|
|
37
|
-
90deg,
|
|
38
|
-
rgba(255, 255, 255, 1) 0%,
|
|
39
|
-
rgba(255, 255, 255, 1) 50%,
|
|
40
|
-
rgba(255, 255, 255, 0) 100%
|
|
41
|
-
);
|
|
42
|
-
}
|
|
43
|
-
&:last-child {
|
|
44
|
-
padding-left: 24px;
|
|
45
|
-
background: linear-gradient(
|
|
46
|
-
270deg,
|
|
47
|
-
rgba(255, 255, 255, 1) 0%,
|
|
48
|
-
rgba(255, 255, 255, 1) 50%,
|
|
49
|
-
rgba(255, 255, 255, 0) 100%
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.mantine-Carousel-container {
|
|
55
|
-
align-items: center;
|
|
56
|
-
}
|
|
57
|
-
`,k=Object.assign({},{fontSize:{base:[16,16],lg:[18,16],md:[18,16],sm:[16,14],xs:[14,12],s1:[22,18],s2:[18,16],s3:[16,14],s4:[14,12],s5:[12,12],p1:[18,16],p2:[16,16],p3:[16,14],p4:[14,12],c1:[16,14],c2:[14,12],n1:[12,12],label1:[14,14],label2:[12,12]},lineHeight:{base:[24,24],lg:[32,28],md:[32,28],sm:[24,22],xs:[24,18],s1:[32,26],s2:[28,24],s3:[24,24],s4:[22,18],s5:[18,18],p1:[28,28],p2:[24,24],p3:[24,22],p4:[22,18],c1:[24,22],c2:[22,18],n1:[18,18],label1:[22,22],label2:[18,18]},letterSpacing:{lg:[-.2,0],md:[-.2,0],sm:[0,-.2],s1:[-.6,-.6],s2:[-.4,-.2],s3:[0,-.2],s4:[0,-.2],p1:[-.2,-.2],p2:[0,-.2],p3:[0,-.2],p4:[-.2,0],label1:[0,-.2]},fontWeight:{regular:400,semiBold:600,bold:700}});var H=t.createStyles(((e,t)=>{var r,a,n,l,o,i,s,c,d,m;const h=Object.assign({},k),p=null===(r=h.fontSize[null==t?void 0:t.size])||void 0===r?void 0:r[0],u=null===(a=h.lineHeight[null==t?void 0:t.size])||void 0===a?void 0:a[0],f=null!==(o=null===(l=null===(n=h.letterSpacing)||void 0===n?void 0:n[null==t?void 0:t.size])||void 0===l?void 0:l[0])&&void 0!==o?o:0,g=null===(i=h.fontSize[null==t?void 0:t.size])||void 0===i?void 0:i[1],v=null===(s=h.lineHeight[null==t?void 0:t.size])||void 0===s?void 0:s[1],b=null!==(m=null===(d=null===(c=h.letterSpacing)||void 0===c?void 0:c[null==t?void 0:t.size])||void 0===d?void 0:d[1])&&void 0!==m?m:0;return{root:Object.assign(Object.assign({},(null==t?void 0:t.size)&&{fontWeight:h.fontWeight[t.weight],fontSize:`${p}px`,lineHeight:`${u}px`,letterSpacing:f,[e.fn.smallerThan("sm")]:{fontSize:`${g}px`,lineHeight:`${v}px`,letterSpacing:b}}),{"&[data-event-category] > *":{pointerEvents:"none"}})}}));const L=e=>{var r,{size:a,color:n,weight:o="regular",as:i="p",styles:s,className:c,dataEventCategory:d,dataEventAction:m,dataEventLabel:h}=e,p=l.__rest(e,["size","color","weight","as","styles","className","dataEventCategory","dataEventAction","dataEventLabel"]);const{theme:u,classes:g,cx:v}=H({size:a,weight:o},{name:"Text",styles:s});return f.default.createElement(t.Text,Object.assign({className:v(g.root,c),color:n||("mb"===(null===(r=null==u?void 0:u.other)||void 0===r?void 0:r.template)?u.colors.delftGray[7]:u.colors.gray[7]),component:i,"data-event-category":d,"data-event-action":m,"data-event-label":h},p))};var A=t.createStyles(((e,t)=>({root:{color:t.color||("hb"===e.primaryColor?e.colors.hb[6]:e.fn.primaryColor()),"&[data-event-category] > *":{pointerEvents:"none"}}})));const S=e=>{var{color:t,styles:r,className:a}=e,n=l.__rest(e,["color","styles","className"]);const{classes:o,cx:i}=A({color:t},{name:"Anchor",styles:r});return f.default.createElement(L,Object.assign({as:"a",className:i(o.root,a)},n))},B=e=>{var{children:t}=e,r=l.__rest(e,["children"]);return f.default.createElement(S,Object.assign({size:"p4",color:"gray.8"},r),t)},I=e=>f.default.createElement(t.AspectRatio,Object.assign({sx:{borderRadius:4,overflow:"hidden","> img":{objectFit:"contain"}}},e)),P={[c.LOCALE.Vietnam]:"vi",[c.LOCALE.Cambodia]:"km",[c.LOCALE.India]:"hi",[c.LOCALE.Indonesia]:"id",[c.LOCALE.Malaysia]:"ms",[c.LOCALE.Thailand]:"th",[c.LOCALE.Taiwan]:"zh-tw",[c.LOCALE.PhilippinesTagalog]:"tl-ph",[c.LOCALE.PhilippinesEnglish]:"en",[c.LOCALE.Myanmar]:"my"},_={[c.LOCALE.Vietnam]:()=>Promise.resolve().then((function(){return u(require("dayjs/locale/vi.js"))})),[c.LOCALE.Cambodia]:()=>Promise.resolve().then((function(){return u(require("dayjs/locale/km.js"))})),[c.LOCALE.India]:()=>Promise.resolve().then((function(){return u(require("dayjs/locale/hi.js"))})),[c.LOCALE.Indonesia]:()=>Promise.resolve().then((function(){return u(require("dayjs/locale/id.js"))})),[c.LOCALE.Malaysia]:()=>Promise.resolve().then((function(){return u(require("dayjs/locale/ms.js"))})),[c.LOCALE.Thailand]:()=>Promise.resolve().then((function(){return u(require("dayjs/locale/th.js"))})),[c.LOCALE.Taiwan]:()=>Promise.resolve().then((function(){return u(require("dayjs/locale/zh-tw.js"))})),[c.LOCALE.PhilippinesTagalog]:()=>Promise.resolve().then((function(){return u(require("dayjs/locale/tl-ph.js"))})),[c.LOCALE.PhilippinesEnglish]:()=>Promise.resolve().then((function(){return u(require("dayjs/locale/en.js"))})),[c.LOCALE.Myanmar]:()=>Promise.resolve().then((function(){return u(require("dayjs/locale/my.js"))}))},T={Button:{defaultProps:{size:"md"}}},D="100ms",N={"&:hover":{border:`1px solid ${m.theme.colors.primaryBase}`}},$={Checkbox:{styles:{input:N}}},R=[{size:"40px",lineHeight:"52px",letterSpacing:"-1.2px"},{size:"32px",lineHeight:"42px",letterSpacing:"-1px"},{size:"26px",lineHeight:"36px",letterSpacing:"-0.8px"},{size:"22px",lineHeight:"32px",letterSpacing:"-0.6px"},{size:"18px",lineHeight:"28px",letterSpacing:"-0.2px"},{size:"16px",lineHeight:"24px",letterSpacing:0}],F=[{size:"26px",lineHeight:"34px",letterSpacing:"-0.9px"},{size:"24px",lineHeight:"32px",letterSpacing:"-0.8px"},{size:"20px",lineHeight:"26px",letterSpacing:"-0.7px"},{size:"18px",lineHeight:"26px",letterSpacing:"-0.6px"},{size:"16px",lineHeight:"24px",letterSpacing:"-0.2px"},{size:"14px",lineHeight:"22px",letterSpacing:"-0.2px"}],W=(e=!1)=>Object.fromEntries((e?F:R).map(((e,t)=>[`h${t+1}`,{fontSize:e.size,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing}]))),q={Title:{styles:{root:Object.assign(Object.assign({fontWeight:k.fontWeight.bold},W()),{[`&${o.MediaQueries.mbDown}`]:Object.assign({},W(!0))})}}},V=e=>({InputWrapper:{styles:{label:{display:"inline-flex",gap:4,marginBottom:"0.25rem",fontWeight:600,fontSize:"14px",lineHeight:"22px",color:m.theme.colors.gray600},description:{fontWeight:400,fontSize:"12px",lineHeight:"18px",color:m.theme.colors.gray600,marginBottom:"0.25rem"},error:{marginTop:"0.25rem"}}},NumberInput:{defaultProps:{decimalSeparator:s.ISO_FORMAT[e].separator}},Input:{styles:(e,t)=>({input:{border:`1px solid ${m.theme.colors.gray200}`,transition:`all ${D} ease-in-out`,"&:not(.mantine-Textarea-input)":Object.assign({},(()=>{switch(t.size){case"lg":return{height:48,fontSize:16,minHeight:"unset",lineHeight:"24px"};case"md":return{height:40,fontSize:14,lineHeight:"22px",minHeight:"unset"};case"sm":return{height:32,fontSize:14,lineHeight:"22px",minHeight:"unset"}}})()),"&:hover":{border:`1px solid ${e.primaryColor}`},"&:focus":{boxShadow:`0px 0px 0px 2px ${e.colors[e.primaryColor][2]}`}},invalid:{border:`1px solid ${m.theme.colors.red600}`,color:"#000"}})}}),G={Radio:{}},K={Tabs:{styles:{tabsList:{gap:16,borderBottom:"none",flexWrap:"nowrap"},tab:{padding:0,paddingBottom:8,color:m.theme.colors.gray400,"&:hover":{backgroundColor:"initial",border:"initial"},"&[data-active='true']":{color:m.theme.colors.primaryBase,borderColor:m.theme.colors.primaryBase}}}}},U={hb:["#e3f2ff","#bcdeff","#91caff","#65b5ff","#45a4ff","#2b94ff","#2d87f3","#2c74df","#2b62cd","#2743ad"],mb:["#FFE9F1","#F8CCDC","#F5B4CB","#F29CBA","#EE84AA","#EB6B99","#E85388","#D34C7C","#BE446F","#A93D63"],blue:["#e3f2ff","#bcdeff","#91caff","#65b5ff","#45a4ff","#2b94ff","#2d87f3","#2c74df","#2b62cd","#2743ad"],gray:["#fafafa","#f2f2f2","#d9d9d9","#bfbfbf","#8c8c8c","#737373","#595959","#404040","#262626"],delftGray:["#F3F3F3","#EAEAEC","#D9DAE2","#B9BAC8","#9898A9","#7C7C8F","#5A5A72","#3E3F58","#202135","#0C0C12"],neutral:["#f7f9fc","#e4e8ec","#fafafa","#d2d6dc","#bfc5cc","#adb3bc","#9aa2ac","#87909c","#757f8c","#626d7c"],green:["#e0f8ee","#b3eed5","#7ce2b9","#2ed69e","#00CB8A","#00C076","#00B16A","#009E5C","#008C50","#006C39"],pink:["#fff1f6","#fec7dc","#fec7dc","#fec2cf","#fe9dc2","#fd87b4","#fd72a7","#fc5d9a","#fc488d","#E92D74"],violet:["#F5EDFF","#E7D2F7","#D8B7F0","#CA9CE8","#BB82E1","#AD67D9","#9E4CD1","#9031CA","#8116C2","#63059D"],yellow:["#fff8e2","#ffecb6","#ffe187","#ffd658","#ffc326","#fe921d","#ffb521","#fea21e","#fe921d","#fc7419"],teal:["#e0f7fc","#b1ebf8","#7ddff3","#44d1ec","#00c7e6","#00bee0","#00aecd","#0099b2","#008599","#00626c"],indigol:["#CEDDF0","#ACC5E6","#95B3DA","#85A6CF","#6D91BE","#5F85B5","#4C77AC","#35639C","#284A75","#1B3250"],red:["#fae9e8","#feccbf","#FEAA96","#f44d2c","#ff6f4d","#ff5331","#f44d2c","#e64728","#d84023","#bf331b"],redViolet:["#F3EAEB","#E8D5D7","#DDC1C4","#D1ACB0","#C5979C","#BA8288","#AF6D74","#A35961","#97444D","#8C2F39"]},Z=r=>{var{children:a,showHomeIcon:n=!0,homeIconHref:o="/"}=r,i=l.__rest(r,["children","showHomeIcon","homeIconHref"]);const[s,c]=e.useState(null),{isMobile:d}=y(),[,m]=e.useState(!0),h=e.useCallback((()=>{m(!1)}),[]),p=e.useCallback((()=>{setTimeout((()=>{m(!0)}),1e3)}),[]);return e.useEffect((()=>(s&&(s.on("scroll",h),s.on("pointerUp",p)),()=>{s&&(s.off("scroll",h),s.on("pointerUp",p))})),[s,h,p]),f.default.createElement(O,Object.assign({align:"center",slideGap:"xs",dragFree:!0,draggable:d,slideSize:"0",getEmblaApi:c,controlsOffset:-52,previousControlIcon:f.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f.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:f.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f.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"}))},i),n&&f.default.createElement(j.Slide,{style:{borderRight:`1px solid ${U.neutral[1]}`}},f.default.createElement(B,{href:o,target:"_blank",className:"pointer-event-child-none"},f.default.createElement(t.Box,{sx:{borderRadius:"50%",display:"flex",justifyContent:"center",alignItems:"center"},bg:U.neutral[0],p:6},f.default.createElement(I,{ratio:1,w:18},f.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f.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"})))))),f.default.createElement(j.Slide,null),f.default.createElement(j.Slide,null,f.default.createElement(t.Breadcrumbs,{styles:{separator:{marginInline:4}},separator:f.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f.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"}))},a)))};Z.Item=B;var Y=t.createStyles(((e,t)=>{var r,a,n,l,o,i;const{other:s}=e,{template:c}=s,{size:d,variant:m,skipHover:h,isError:p,color:u,children:f}=t,g=u||e.primaryColor,v=(null===(a=null===(r=e.colors)||void 0===r?void 0:r[g])||void 0===a?void 0:a[0])||"",b=null===(l=null===(n=e.colors)||void 0===n?void 0:n[g])||void 0===l?void 0:l[e.fn.primaryShade()],E=null===(i=null===(o=e.colors)||void 0===o?void 0:o[g])||void 0===i?void 0:i[e.fn.primaryShade()+1];return{rootCustom:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({transition:`all ${D} ease-in-out`,"&[data-event-category] > *":{pointerEvents:"none"}},!f&&{paddingLeft:"10px",paddingRight:"10px",".mantine-Button-icon":{margin:0}}),(()=>{switch(d){case"xl":return{height:56,fontWeight:600,fontSize:"mb"===c?"14px":"16px",lineHeight:"24px"};case"lg":return{height:48,fontWeight:600,fontSize:"mb"===c?"14px":"16px",lineHeight:"24px"};case"md":return{height:40,fontWeight:600,fontSize:"14px",lineHeight:"22px"};case"sm":return{height:32,fontWeight:600,fontSize:"14px",lineHeight:"22px"}}})()),(()=>{switch(m){case"primary":return Object.assign({color:e.white,backgroundColor:b},!h&&{"&:hover":{backgroundColor:E}});case"secondary":return Object.assign({color:b,backgroundColor:"transparent",border:`1px solid ${b}`},!h&&{"&:hover":{backgroundColor:v,border:`1px solid ${b}`}});case"tertiary":return{color:e.colors.gray[8],backgroundColor:e.white,border:`1px solid ${e.colors.neutral[2]}`,"&:hover":Object.assign({},h?{backgroundColor:e.white,border:`1px solid ${e.colors.neutral[2]}`}:{backgroundColor:e.colors.neutral[0],border:`1px solid ${e.colors.neutral[0]}`})};case"light":return{color:b,backgroundColor:v,border:"1px solid transparent","&:hover":Object.assign({},h?{backgroundColor:v,border:"1px solid transparent"}:{backgroundColor:e.white,border:`1px solid ${v}`})};case"ghost":return Object.assign({color:b,backgroundColor:"transparent",border:"1px solid transparent"},!h&&{"&:hover":{backgroundColor:v,border:"1px solid transparent"}})}})()),{"&[data-disabled]":{backgroundColor:e.colors.gray[1],color:e.colors.gray[4]}}),p?Object.assign({color:e.colors.red[6],backgroundColor:e.white,border:`1px solid ${e.colors.red[6]}`},!h&&{"&:hover":{backgroundColor:e.colors.red[0],border:`1px solid ${e.colors.red[6]}`}}):{})}}));const X=v.default(t.Textarea)`
|
|
58
|
-
.mantine-Textarea-input {
|
|
59
|
-
padding: 12px 16px;
|
|
60
|
-
background: #ffffff;
|
|
61
|
-
border: 1px solid ${m.theme.colors.gray200};
|
|
62
|
-
border-radius: 4px;
|
|
63
|
-
}
|
|
64
|
-
`,Q=v.default(t.Modal)`
|
|
65
|
-
.mantine-Modal-modal {
|
|
66
|
-
padding: 0;
|
|
67
|
-
}
|
|
68
|
-
.mantine-Modal-header {
|
|
69
|
-
border-bottom: 1px solid ${m.theme.colors.neutral100};
|
|
70
|
-
margin-right: 0;
|
|
71
|
-
margin-bottom: 0;
|
|
72
|
-
padding: 16px;
|
|
73
|
-
}
|
|
74
|
-
.mantine-Modal-title {
|
|
75
|
-
width: 100%;
|
|
76
|
-
display: flex;
|
|
77
|
-
align-items: center;
|
|
78
|
-
justify-content: space-between;
|
|
79
|
-
margin-right: 0;
|
|
80
|
-
}
|
|
81
|
-
.mantine-Modal-close {
|
|
82
|
-
cursor: pointer;
|
|
83
|
-
width: 24px;
|
|
84
|
-
height: 24px;
|
|
85
|
-
}
|
|
86
|
-
`,J=v.default(t.Accordion)`
|
|
87
|
-
.mantine-Accordion-control {
|
|
88
|
-
&:hover {
|
|
89
|
-
background-color: transparent;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
.mantine-Accordion-item {
|
|
93
|
-
.mantine-Accordion-chevron {
|
|
94
|
-
> div {
|
|
95
|
-
background-repeat: no-repeat;
|
|
96
|
-
width: 16px;
|
|
97
|
-
height: 16px;
|
|
98
|
-
background-position: center;
|
|
99
|
-
background-image: url(${e=>e.closeChevron||r.CommonGAssets.getAssetPath("plus-icon.svg")});
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
&[data-active='true'] {
|
|
103
|
-
.mantine-Accordion-chevron {
|
|
104
|
-
> div {
|
|
105
|
-
background-image: url(${e=>e.openChevron||r.CommonGAssets.getAssetPath("minus-icon.svg")});
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
.mantine-Accordion-panel {
|
|
111
|
-
border-radius: ${e=>e.theme.borderRadius};
|
|
112
|
-
}
|
|
113
|
-
.mantine-Accordion-content {
|
|
114
|
-
white-space: pre-wrap;
|
|
115
|
-
}
|
|
116
|
-
`,ee=e=>{var{children:t}=e,r=l.__rest(e,["children"]);return f.default.createElement(J,Object.assign({chevron:f.default.createElement("div",null),disableChevronRotation:!0,transitionDuration:300},r),t)};ee.Control=t.Accordion.Control,ee.Item=t.Accordion.Item,ee.Panel=t.Accordion.Panel;const te=r.CommonGAssets.getAssetPath("avatar.jpg"),re=t.createEmotionCache({key:"mantine",prepend:!1}),ae=r=>{var{value:a,onChange:n}=r,o=l.__rest(r,["value","onChange"]);const[i,s]=e.useState(a),[c]=h.useDebouncedValue(i,300);return e.useEffect((()=>{null==n||n(c)}),[c]),e.useEffect((()=>{s(a)}),[a]),f.default.createElement(t.NumberInput,Object.assign({size:"md",stepHoldDelay:500,stepHoldInterval:e=>Math.max(1e3/Math.pow(e,2),25),onChange:s,hideControls:!0,min:0,formatter:e=>0===Number(e)?e:e||"",removeTrailingZeros:!0,value:i},o))},ne=r.CommonGAssets.getAssetPath("EyeVisible.svg"),le=r.CommonGAssets.getAssetPath("EyeHidden.svg"),oe=e.forwardRef(((e,r)=>{const{size:a="md",visibilityToggleIcon:n}=e,o=l.__rest(e,["size","visibilityToggleIcon"]),i=n||(({reveal:e,size:t})=>e?f.default.createElement("img",{src:ne,width:t}):f.default.createElement("img",{src:le,width:t}));return f.default.createElement(t.PasswordInput,Object.assign({ref:r,size:a,visibilityToggleIcon:i},o,{className:`input-control ${(null==o?void 0:o.className)||""}`}))})),ie=e.forwardRef(((r,a)=>{var{value:n,onChange:o,onChangeRaw:i}=r,s=l.__rest(r,["value","onChange","onChangeRaw"]);const[c,d]=e.useState(n||""),[m]=h.useDebouncedValue(c,300);return e.useEffect((()=>{null==o||o(m)}),[m]),e.useEffect((()=>{d(n)}),[n]),f.default.createElement(t.TextInput,Object.assign({ref:a,size:"md",onChange:e=>{null==i||i(e),d(e.currentTarget.value)},value:c},s,{className:`input-control ${(null==s?void 0:s.className)||""}`}))}));ie.File=e=>f.default.createElement(t.FileInput,Object.assign({size:"md"},e)),ie.Password=oe,ie.Number=ae,ie.Wrapper=t.Input.Wrapper;const se=e=>f.default.createElement(t.Checkbox,Object.assign({},e));se.Group=t.Checkbox.Group;const ce=v.default(t.Slider)`
|
|
117
|
-
${e=>{const t=e.color||e.theme.colors.primaryBase;return`\n .mantine-Slider-bar {\n background-color: ${t};\n }\n .mantine-Slider-thumb {\n border-color: ${t};\n color: ${t};\n }\n `}}
|
|
118
|
-
[data-theme='marryBaby'] & {
|
|
119
|
-
${e=>{const t=e.color||e.theme.mbColors.pink;return`\n .mantine-Slider-bar {\n background-color: ${t};\n }\n .mantine-Slider-thumb {\n border-color: ${t};\n color: ${t};\n }\n `}}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.mantine-Slider-label {
|
|
123
|
-
background-color: transparent;
|
|
124
|
-
color: #000;
|
|
125
|
-
font-size: 14px;
|
|
126
|
-
font-weight: bold;
|
|
127
|
-
}
|
|
128
|
-
`,de=v.default.div`
|
|
129
|
-
display: flex;
|
|
130
|
-
align-items: center;
|
|
131
|
-
.hhg-mantine-slider {
|
|
132
|
-
flex-grow: 1;
|
|
133
|
-
}
|
|
134
|
-
button {
|
|
135
|
-
path:not([stroke]) {
|
|
136
|
-
stroke: ${e=>e.theme.colors.primaryBase};
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
[data-theme='marryBaby'] & {
|
|
140
|
-
button {
|
|
141
|
-
path:not([stroke]) {
|
|
142
|
-
stroke: ${e=>e.theme.mbColors.pink};
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
`,me=e=>{var{styles:r}=e,a=l.__rest(e,["styles"]);return f.default.createElement(t.Radio,Object.assign({size:"sm"},a,{styles:e=>Object.assign({radio:Object.assign(Object.assign({backgroundColor:"#fff"},N),{"&:checked":{backgroundColor:"#fff"}}),icon:{color:e.colors[e.primaryColor][e.primaryShade]}},r)}))};me.Group=t.Radio.Group;var he="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function pe(e){var t={exports:{}};return e(t,t.exports),t.exports
|
|
147
|
-
/*!
|
|
148
|
-
Copyright (c) 2018 Jed Watson.
|
|
149
|
-
Licensed under the MIT License (MIT), see
|
|
150
|
-
http://jedwatson.github.io/classnames
|
|
151
|
-
*/}var ue=pe((function(e){!function(){var t={}.hasOwnProperty;function r(){for(var e=[],a=0;a<arguments.length;a++){var n=arguments[a];if(n){var l=typeof n;if("string"===l||"number"===l)e.push(n);else if(Array.isArray(n)){if(n.length){var o=r.apply(null,n);o&&e.push(o)}}else if("object"===l){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var i in n)t.call(n,i)&&n[i]&&e.push(i)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r}()}));function fe(e,t=6){const r=new Array(t).fill("");if(e){const t=e.toString().split("");r.map(((e,a)=>{t[a]&&(r[a]=t[a]||"")}))}return r}function ge(e){return e.join("")}var ve="_2iQs0sk",be="Ia6IojY";const Ee=e.forwardRef(((e,t)=>{const{maxLength:r=1,placeholder:a,className:n}=e,o=l.__rest(e,["maxLength","placeholder","className"]);return f.default.createElement("input",Object.assign({maxLength:r,className:ue(be,"otpInput",n),placeholder:a,type:"number"},o,{ref:t}))})),xe=e.forwardRef(((r,a)=>{const{valueLength:n=6,type:l="number",value:o,defaultValue:i,onChange:s,onBlur:c}=r,d=e.useRef(new Array(n).fill(null)),[m,h]=e.useState(i||o),[p,u]=e.useState(-1),[g,v]=e.useState((()=>fe(m,n))),b=e.useCallback((()=>{if(-1===p)return;const e=d.current[p];if(e){e.value="";const t=g;t[p]="",v(t),h((()=>ge(t))),null==s||s(ge(t))}}),[p,s,g]),E=e.useCallback((()=>{if(0===p)return;const e=d.current[p];e&&e.blur();const t=d.current[p-1];t&&t.focus()}),[p]),x=e.useCallback((()=>{if(p===n-1)return;const e=d.current[p];e&&e.blur();const t=d.current[p+1];t&&t.focus()}),[p,n]),z=e.useCallback((e=>{const t=e.target,r=t.value.toString().slice(0,1),a=d.current.findIndex((e=>e===t));if(-1!==a){const e=g;e[a]=r,v(e),h((()=>ge(e))),null==s||s(ge(e))}x()}),[x,s,g]),C=e.useCallback((e=>{const t=e.target,r=d.current.findIndex((e=>e===t));"number"===l?t.select():t.setSelectionRange(0,t.value.length,"backward"),-1!==r&&u(r)}),[]),w=e.useCallback((e=>{const t=fe(e.clipboardData.getData("text/plain"),n),r=ge(t);v(t),h(r),null==s||s(r)}),[s,l,n]),y=e.useCallback((e=>{8===e.keyCode||"Backspace"===e.key?(e.preventDefault(),b(),E()):46===e.keyCode||"Delete"===e.key?(e.preventDefault(),b()):37===e.keyCode||"ArrowLeft"===e.key?(e.preventDefault(),E()):39===e.keyCode||"ArrowRight"===e.key?(e.preventDefault(),x()):32!==e.keyCode&&" "!==e.key&&"Spacebar"!==e.key&&"Space"!==e.key||e.preventDefault()}),[b,x,E]);return e.useImperativeHandle(a,(()=>d.current[0]),[]),e.useEffect((()=>{v((()=>fe(o,n))),h(o)}),[n,o]),f.default.createElement(t.Flex,{justify:"center",columnGap:8,className:ue(ve,"otpContainer")},g.map(((e,t)=>f.default.createElement(Ee,{ref:e=>{d.current[t]=e},key:""+t,value:e,type:l,onChange:z,onFocus:C,onKeyDown:y,onPaste:w,onBlur:c}))))})),ze=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",id:"flag-icons-kh",viewBox:"0 0 640 480",width:"1em",height:"1em"},e),g.createElement("path",{fill:"#032ea1",d:"M0 0h640v480H0z"}),g.createElement("path",{fill:"#e00025",d:"M0 120h640v240H0z"}),g.createElement("g",{fill:"#fff",stroke:"#000",transform:"matrix(1.2 0 0 1.2 85.6 -522)"},g.createElement("g",{strokeLinejoin:"bevel"},g.createElement("path",{d:"M139 623.5h113.8v43.8H139z"}),g.createElement("path",{d:"M247 647.6h3.5v16.5H247zm-108-8.1h113.8v5H139zm0-7h113.8v4.6H139z"}),g.createElement("path",{strokeWidth:.9,d:"M139 625.7h113.8v4.3H139z"}),g.createElement("path",{d:"M169 647.6h3.6v16.5H169zm49 0h3.6v16.5H218zm-78 0h3.5v16.5H140zm7 0h3.5v16.5H147zm7.5 0h3.5v16.5h-3.5zm7.5 0h3.5v16.5H162zm62.8 0h3.6v16.5h-3.6zm7.5 0h3.6v16.5h-3.6zm7.5 0h3.6v16.5h-3.6z"}),g.createElement("path",{strokeLinejoin:"miter",d:"M94.5 669.5a9.3 9.3 0 0 0 4.4-5.3H292a9.3 9.3 0 0 0 4.4 5.3z"})),g.createElement("path",{d:"M193 556.8s-.1-4.1 2.3-4.2c2.3 0 2.2 4.2 2.2 4.2zm-12.5 54.5v-5.5c0-2.8-2.8-3-2.8-5 0 0-.4-3 .4-4.4 1.1 4 3 3.3 3 1.6 0-1.4-1-2.8-3.3-6.3-.8-1.1-.3-4.6.7-5.9.4 3 .9 4.5 2.2 4.5.8 0 1.4-.5 1.4-2 0-2-1.3-3-2-4.8a5 5 0 0 1 1.1-5.3c.5 3 .4 4.2 1.7 4.2 2.7-.9 0-4.8-.6-5.8-.6-1.1 1-3.4 1-3.4.8 2.7 1 2.9 2 2.6 1.2-.3 1-2-.4-3.4-.9-1-.8-2.3.2-3.3 1 1.9 2.2 1.8 2.3.6l-.8-4.4H204l-.9 4.3c-.2 1.2 1.4 1.5 2.4-.5 1 1 1.1 2.4.2 3.3-1.4 1.4-1.6 3.1-.4 3.4 1 .3 1.2 0 2-2.6 0 0 1.5 1.5 1 3.4-.6 1-3.3 5-.6 5.8 1.3 0 1.2-1.2 1.7-4.2a5 5 0 0 1 1 5.3c-.6 1.8-2 2.8-2 4.8 0 1.5.7 2 1.5 2 1.3 0 1.8-1.4 2.2-4.5 1 1.3 1.5 4.8.7 6-2.3 3.4-3.4 4.8-3.4 6.2 0 1.7 2 2.4 3-1.6.9 1.4.5 4.4.5 4.4 0 2-2.7 2.2-2.8 5v5.5zm7.2-46-.4-3.1h15.9l-.4 3.1zm1-3.2-.2-2.5H202l-.3 2.5zm2.3-2.6-.3-2.6h9l-.1 2.6zm33 110c-2-.7-5-2.9-5-5v-24.3l2.6-3.4H169l2.5 3.4v24.3c0 2.1-2 4.3-4 5z"}),g.createElement("path",{strokeLinejoin:"bevel",d:"M178.2 647.6h3.6v16.5h-3.6zm30.4 0h3.6v16.5h-3.6z"}),g.createElement("path",{d:"M168 609.2v27.6h54v-27.6a4.2 4.2 0 0 0-2.6 2.8v11.8h-48.7V612s-.6-2-2.8-2.8z"}),g.createElement("path",{d:"M214.6 669.5c-1.8-.7-5.6-2.9-5.6-5v-27.2c.4-1.5 2.4-2.4 3.7-3.4H177c1.7 1 3.6 1.7 4.3 3.4v27.2c0 2.1-3 4.3-4.8 5z"}),g.createElement("path",{d:"M219.4 634.2v-19.6h-4.9v-1.9h-38.8v2h-5v19.5zM207 669.5c-1.8-.7-4.3-2.9-4.3-5v-23.2l1.4-2.1h-17.7l1.5 2v23.3c0 2.1-2.6 4.3-4.3 5z"}),g.createElement("path",{d:"M190.7 639.2h9v30.3h-9z"}),g.createElement("path",{strokeLinejoin:"bevel",d:"M204.4 632.5c0-2 5.8-2.1 8.8-3.8h-36c3 1.7 8.7 1.8 8.7 3.8l1.2 3.9 15 .6z"}),g.createElement("path",{d:"M211.4 611.3c0-4.9.2-6.7 1.7-6.7V620c-3.7 1.4-6.3 6-6.3 6h-23.2s-2.6-4.6-6.3-6v-15.5c1.8 0 1.8 2 1.8 6.7zm1.7-2c0-5.6 4.9-6.2 4.9-6.2v5c-1.9-.1-2.8 1.6-2.8 4 0 2.5 1.5 2.5 1.5 2.5v14.2h-3.6z"}),g.createElement("path",{d:"M177.3 609.3c0-5.6-4.9-6.2-4.9-6.2v5c1.9-.1 2.8 1.6 2.8 4 0 2.5-1.5 2.5-1.5 2.5v14.2h3.6z"}),g.createElement("g",{fill:"none",strokeWidth:.8},g.createElement("path",{d:"M186.8 570.6H204m-19.2 5.4h21m-23 6.5h24.9m-27 7.9h29.5m-30.2 9h30.4"}),g.createElement("path",{strokeWidth:1,d:"M170.8 629h48.6m-33.2 0h18v6.6h-18z"})),g.createElement("path",{d:"M184 614.2c3 3.6 2.6 9.7 2.6 13.3H204c0-3.6-.4-9.7 2.6-13.3zm9.7-41-2.4-1.3v-3.5c1 .3 2 .4 2.2 2 .3-2.3 1-2.1 1.9-3 1 .9 1.5.7 1.9 3 0-1.6 1.2-1.7 2.1-2v3.5l-2.3 1.2z"}),g.createElement("path",{d:"m193.5 578.9-4-2.8V573c1.5.3 3 .5 3.2 2.2.4-2.5 1.3-3.7 2.7-4.7 1.3 1 2.2 2.2 2.7 4.7.1-1.7 1.7-1.9 3-2.2v3.2l-3.9 2.7z"}),g.createElement("path",{d:"m193.2 587.8-4.5-4v-4.7c1.6.4 3.4.6 3.6 3.1.5-3.5 1.5-5.4 3-6.8 1.6 1.4 2.6 3.3 3.2 6.8.2-2.5 2-2.7 3.6-3.1v4.7l-4.6 4zm8.4 5.3-4 5.7h-4.7l-4.1-5.7zm-15.2 9.5c2 1.1 2.8 3.4 3 7.6H201c.2-4.2 1-6.5 3-7.6z"}),g.createElement("path",{strokeLinejoin:"bevel",d:"M204.2 593v-5.6a5.2 5.2 0 0 0-3.8 3.3c0-2-2.5-6.3-5.2-8.5-2.7 2.4-5.3 6.4-5.2 8.4-.5-1.5-1.8-2.7-3.8-3.2v5.7z"}),g.createElement("path",{strokeLinejoin:"bevel",d:"M205 602.6V597c-2.1.6-3.5 1.7-4.1 3.3 0-2-2.7-6.3-5.7-8.5-3 2.5-5.8 6.4-5.7 8.5-.5-1.5-2-2.7-4.1-3.3v5.7z"}),g.createElement("path",{strokeLinejoin:"bevel",d:"M207.4 614.3v-6.6a9.6 9.6 0 0 0-5.1 3.8c0-3.5-4-9-7.1-10.7-3.2 1.8-7.1 7.4-7.1 10.7a9.7 9.7 0 0 0-5.2-3.8v6.6z"}),g.createElement("path",{strokeLinejoin:"bevel",d:"M206 629v-6.8c-2.4.9-3 3.1-3.8 4.7.3-6.9-3.8-14.2-7-16.1-3.2 1.9-7.4 9.4-7 16-.8-1.4-1.5-3.7-3.8-4.6v6.7z"}),g.createElement("path",{d:"M204.4 639.2v-6.8c-2.5.6-2.6 1.5-3.4 3 .3-4.1-2.6-8.8-5.8-10.6-3.2 1.8-6 6.5-5.8 10.6-.8-1.5-.9-2.4-3.4-3v6.8z"}),g.createElement("g",{id:"a"},g.createElement("path",{d:"M99 664.2v-20.4c-.7-2.6-3-5-4.6-5.4v-18l3.7 2 4.3 18.9v23z"}),g.createElement("path",{d:"M99 664.3v-20.5c-.7-2.6-3-5-4.6-5.4v-19.2c2.5 0 3.7 3.2 3.7 3.2l4.3 18.9v22.9z"}),g.createElement("path",{d:"M96.3 669.5c1.7-.7 4.2-2.9 4.2-5v-25.6l-1.2-2H143l-1.7 2v25.6a6 6 0 0 0 3.4 5z"}),g.createElement("path",{d:"M135.8 669.5c-1.7-.7-4.2-2.9-4.2-5v-24.3l3.6-3.4h-29.6l3.6 3.4v24.3c0 2.1-2.5 4.3-4.2 5z"}),g.createElement("path",{d:"M131.7 669.5c-1.7-.7-4.3-2.9-4.3-5v-22l2.4-3.3H111l2.4 3.3v22c0 2.1-2.5 4.3-4.3 5z"}),g.createElement("path",{d:"M116 639.2h8.9v30.4h-9z"}),g.createElement("path",{strokeLinejoin:"bevel",d:"M103.7 647.6h3.6v16.5h-3.6zm30.8 0h3.5v16.5h-3.6zm-33.9-27.8h4.4v17h-4.4zm0-3.2h4.3v3.2h-4.3zm35.6 6.9h6.1v13h-6.1z"}),g.createElement("path",{d:"M104.9 636.6v-29c1.2 0 1.4 4.3 4.2 4.3 1.5 0 1.4-1.8.5-3.2-.7-1.3-1.6-3-.4-6.3.9 2.5 3.1 3.3 2.7 1.8-.7-2.7-2.8-3.2-1.2-7.3.5 3.4 2.7 3.3 2.2 1.3-.6-2.3-1.9-3.3-.3-6.5.9 3.7 2 3.5 2 1.2 0-3.4 0-7 4.2-8.3 0 0 .3-3 1.9-3 1.5 0 1.8 3 1.8 3 4.3 1.3 4.2 5 4.2 8.3 0 2.3 1.1 2.5 2-1.2 1.6 3.2.3 4.2-.3 6.5-.5 2 1.7 2.1 2.2-1.3 1.6 4.1-.5 4.6-1.2 7.3-.4 1.5 1.8.7 2.7-1.8 1.2 3.3.3 5-.4 6.3-.8 1.4-1 3.2.5 3.2 2.8 0 3-4.2 4.2-4.2v28.9zM98 614.7v22.1h2.5v-22.1c-.9-.5-1.7-.5-2.5 0z"}),g.createElement("path",{d:"M98.2 629c3.1 1.6 6.2 3.5 7 7.8h-7zm43.2-6.6v14.4h2v-14.4c-.6-.3-1.5-.4-2 0z"}),g.createElement("path",{d:"M143.4 629c-3.1 1.5-6.2 3.3-7 7.7h7zm-20.6-33.7 1.8-1.5v-2c-.6 0-1 .3-1.5 1a5 5 0 0 0-2.5-3 5 5 0 0 0-2.6 2.9c-.5-.7-.8-.8-1.5-1v2l1.8 1.6z"}),g.createElement("path",{d:"m123.8 600.2.8-1.9v-2.5c-.6 0-1 .3-1.5 1a5 5 0 0 0-2.5-3 5 5 0 0 0-2.6 2.9c-.5-.7-.8-.8-1.5-.9v2.5l.8 1.9z"}),g.createElement("path",{d:"m124 606.8 2.6-3.3v-3.2c-1 0-1.5.5-2.2 1.6-.7-2.3-2-2.7-3.8-3.8-1.9 1-3.2 1.5-3.8 3.7-.8-1.1-1.3-1.4-2.3-1.5v3.2l2.7 3.3z"}),g.createElement("path",{d:"M124.7 613.3s3.2-2.7 3.3-4.2v-3.5c-1.2.1-2.3.4-3.2 1.9-.8-2.9-2-3.7-4.2-5-2.3 1.3-3.5 2.1-4.2 5-1-1.5-2-1.8-3.3-2v3.6a15 15 0 0 0 3.3 4.2z"}),g.createElement("path",{d:"M126 625.3s4.4-4.7 4.5-6.6v-5.4c-1.6.2-3.2 1.3-4.4 3.6-1-4.5-2.6-7.6-5.5-9.8-3 2.2-4.6 5.3-5.6 9.8-1.2-2.3-2.7-3.4-4.3-3.6v5.4c.3 1.9 4.4 6.6 4.4 6.6z"}),g.createElement("path",{d:"M126 632.4s3.7-3.7 4.5-5.3v-5.4c-1.6.2-3.2 1.3-4.4 3.5a14 14 0 0 0-5.5-9.2c-3 2.2-4.6 4.7-5.6 9.2-1.2-2.2-2.7-3.3-4.3-3.5v5.4c1 1.6 4.4 5.3 4.4 5.3z"}),g.createElement("path",{d:"M127.5 636.6c-1-4.7-2-8.2-7.1-11.7-5.2 3.5-6.1 7-7.2 11.7z"}),g.createElement("path",{d:"M130.2 639.2v-6.8c-2.4 1-4.5 2.3-5.3 3.8-.8-3.8-2.5-5.4-4.6-7.7-2.1 2.3-3.5 4-4.4 7.7-.8-1.5-2.9-2.9-5.2-3.8v6.8z"})),g.createElement("use",{xlinkHref:"#a",width:"100%",height:"100%",transform:"matrix(-1 0 0 1 390.7 0)"}),g.createElement("path",{d:"M72.7 694.3H318v12.5H72.7zm-6.5 12.5h258.3v12.5H66.2zm19.4-31.3H305v8.1H85.6z"}),g.createElement("path",{d:"M79.2 683.6h232.4v10.6H79.2zm10.2-14.3h212v6.2h-212z"}),g.createElement("path",{d:"M112.4 669.3h16v50h-16z"}),g.createElement("path",{d:"M116 669.3h8.9v50h-9zm71 0h16v50h-16z"}),g.createElement("path",{d:"M190.7 669.3h9v50h-9zm71.5 0h16v50h-16z"}),g.createElement("path",{d:"M265.7 669.3h9v50h-9z"}),g.createElement("path",{fill:"none",d:"M99 664.2h193M115.8 713h9.2m-9.2-6.3h9.2m-9.2-6.2h9.2m-9.2-6.3h9.2m-9.2-6.2h9.2m-9.2-6.3h9.2m-9.2-6.2h9.2m65.8 37.5h8.6m-8.6-6.3h8.6m-8.6-6.2h8.6m-8.6-6.3h8.6m-8.6-6.2h8.6m-8.6-6.3h8.6m-8.6-6.2h8.6m66.2 37.5h9.2m-9.2-6.3h9.2m-9.2-6.2h9.2m-9.2-6.3h9.2m-9.2-6.2h9.2m-9.2-6.3h9.2m-9.2-6.2h9.2"}))),Ce=e=>g.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 8 5",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),g.createElement("path",{d:"M4 5L0.535898 0.5L7.4641 0.5L4 5Z"})),we=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",id:"flag-icons-in",viewBox:"0 0 640 480",width:"1em",height:"1em"},e),g.createElement("path",{fill:"#f93",d:"M0 0h640v160H0z"}),g.createElement("path",{fill:"#fff",d:"M0 160h640v160H0z"}),g.createElement("path",{fill:"#128807",d:"M0 320h640v160H0z"}),g.createElement("g",{transform:"matrix(3.2 0 0 3.2 320 240)"},g.createElement("circle",{r:20,fill:"#008"}),g.createElement("circle",{r:17.5,fill:"#fff"}),g.createElement("circle",{r:3.5,fill:"#008"}),g.createElement("g",{id:"d"},g.createElement("g",{id:"c"},g.createElement("g",{id:"b"},g.createElement("g",{id:"a",fill:"#008"},g.createElement("circle",{r:.9,transform:"rotate(7.5 -8.8 133.5)"}),g.createElement("path",{d:"M0 17.5.6 7 0 2l-.6 5L0 17.5z"})),g.createElement("use",{xlinkHref:"#a",width:"100%",height:"100%",transform:"rotate(15)"})),g.createElement("use",{xlinkHref:"#b",width:"100%",height:"100%",transform:"rotate(30)"})),g.createElement("use",{xlinkHref:"#c",width:"100%",height:"100%",transform:"rotate(60)"})),g.createElement("use",{xlinkHref:"#d",width:"100%",height:"100%",transform:"rotate(120)"}),g.createElement("use",{xlinkHref:"#d",width:"100%",height:"100%",transform:"rotate(-120)"}))),ye=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",id:"flag-icons-id",viewBox:"0 0 640 480",width:"1em",height:"1em"},e),g.createElement("g",{fillRule:"evenodd",strokeWidth:"1pt"},g.createElement("path",{fill:"#e70011",d:"M0 0h640v249H0z"}),g.createElement("path",{fill:"#fff",d:"M0 240h640v240H0z"}))),Me=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",id:"flag-icons-my",viewBox:"0 0 640 480",width:"1em",height:"1em"},e),g.createElement("path",{fill:"#c00",d:"M0 0h640v480H0z"}),g.createElement("path",{fill:"#fff",d:"M.5 39.9h639v38.4H.5zM.5 118.6h639V157H.5zM.5 197.4h639v38.4H.5z"}),g.createElement("path",{fill:"#006",d:"M0 .5h320v280H0Z"}),g.createElement("path",{fill:"#fc0",d:"m207.5 73.8 6 40.7 23-34-12.4 39.2 35.5-20.8-28.1 30 41-3.2-38.3 14.8 38.3 14.8-41-3.2 28.1 30-35.5-20.8 12.3 39.3-23-34.1-6 40.7-5.9-40.7-23 34 12.4-39.2-35.5 20.8 28-30-41 3.2 38.4-14.8-38.3-14.8 41 3.2-28.1-30 35.5 20.8-12.4-39.3 23 34.1zm-33.3 1.7a71.1 71.1 0 1 0 0 130 80 80 0 1 1 0-130z"}),g.createElement("path",{fill:"#fff",d:"M.5 276.2h639v38.4H.5zM.5 354.4h639v38.4H.5zM0 441.6h639V480H0z"})),je=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",id:"flag-icons-mm",viewBox:"0 0 640 480",width:"1em",height:"1em"},e),g.createElement("path",{fill:"#fecb00",d:"M0 0h640v480H0z"}),g.createElement("path",{fill:"#34b233",d:"M0 160h640v320H0z"}),g.createElement("path",{fill:"#ea2839",d:"M0 320h640v160H0z"}),g.createElement("g",{transform:"translate(320 256.9) scale(176.87999)"},g.createElement("path",{id:"a",fill:"#fff",d:"m0-1 .3 1h-.6z"}),g.createElement("use",{xlinkHref:"#a",width:"100%",height:"100%",transform:"rotate(-144)"}),g.createElement("use",{xlinkHref:"#a",width:"100%",height:"100%",transform:"rotate(-72)"}),g.createElement("use",{xlinkHref:"#a",width:"100%",height:"100%",transform:"rotate(72)"}),g.createElement("use",{xlinkHref:"#a",width:"100%",height:"100%",transform:"rotate(144)"}))),Oe=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",id:"flag-icons-ph",viewBox:"0 0 640 480",width:"1em",height:"1em"},e),g.createElement("path",{fill:"#0038a8",d:"M0 0h640v240H0z"}),g.createElement("path",{fill:"#ce1126",d:"M0 240h640v240H0z"}),g.createElement("path",{fill:"#fff",d:"M415.7 240 0 480V0"}),g.createElement("path",{fill:"#fcd116",d:"M26.7 42.4 41 55l16.6-9.2-7.4 17.5 14 13-19-1.6-8.1 17.2-4.3-18.5L14 71l16.3-10zm323.8 172.3.4 19 18 6.3-18 6.2-.4 19-11.5-15.1-18.2 5.5 10.8-15.6-10.8-15.6 18.2 5.5zM37.2 388.1l8 17.2 19-1.6-13.9 13 7.4 17.5-16.6-9.1-14.4 12.4 3.6-18.7L14 409l18.9-2.4zm114.2-249-6.2 6.2 3.1 47-3 .3-5.7-42.9-5.1 5 7.6 38.4a47.5 47.5 0 0 0-17.2 7.1l-21.7-32.4H96l26.4 34.3a48 48 0 0 0-2.4 2l-31.1-35.5h-8.8v8.8l35.4 31-2 2.5-34.3-26.3v7.1l32.5 21.7c-3.4 5.2-5.9 11-7.1 17.2L66.3 223l-5.1 5 42.9 5.7c-.2 1-.3 2.1-.3 3.1l-47-3-6.2 6.2 6.2 6.2 47-3.1.3 3.1-42.9 5.7 5 5 38.4-7.6a47.5 47.5 0 0 0 7.1 17.2l-32.5 21.7v7.2l34.3-26.3a48 48 0 0 0 2 2.4l-35.4 31v8.8H89l31-35.4 2.5 2L96 312.2h7.2l21.7-32.5c5.1 3.4 11 5.9 17.2 7.1l-7.6 38.4 5 5 5.7-42.9c1 .2 2 .3 3.1.3l-3 47 6.1 6.2 6.3-6.2-3.1-47 3-.3 5.7 43 5.1-5.1-7.6-38.4a47.5 47.5 0 0 0 17.2-7.1l21.7 32.5h7.2l-26.4-34.3a48 48 0 0 0 2.4-2l31.1 35.4h8.8v-8.8l-35.4-31 2-2.4 34.3 26.3v-7.2l-32.5-21.7c3.4-5.1 5.9-11 7.1-17.2l38.3 7.6 5.1-5-42.9-5.7c.2-1 .3-2 .3-3.1l47 3 6.2-6.1-6.2-6.2-47 3-.3-3 42.9-5.7-5-5-38.4 7.5a47.5 47.5 0 0 0-7.1-17.2l32.5-21.7v-7.1l-34.3 26.3a48 48 0 0 0-2-2.4l35.4-31v-8.9H214l-31 35.5a48 48 0 0 0-2.5-2l26.4-34.3h-7.2L178 200.2c-5.1-3.4-11-5.9-17.2-7.1l7.6-38.3-5-5-5.7 42.8-3.1-.3 3-47z"})),ke=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",id:"flag-icons-tw",viewBox:"0 0 640 480",width:"1em",height:"1em"},e),g.createElement("clipPath",{id:"a"},g.createElement("path",{d:"M0 0h640v480H0z"})),g.createElement("g",{clipPath:"url(#a)"},g.createElement("path",{fill:"red",d:"M0 0h720v480H0z"}),g.createElement("path",{fill:"#000095",d:"M0 0h360v240H0z"}),g.createElement("g",{fill:"#fff"},g.createElement("path",{d:"m154 126.9-2.5 9.6 9.4 2.6-1.8-7.1zm46.9 5.1-1.8 7.1 9.4-2.6-2.5-9.6zm-41.8-24-5.1 5.1 1.9 6.9z"}),g.createElement("path",{d:"m155.9 120-1.9 6.9 5.1 5.1z"}),g.createElement("path",{d:"m154 113.1-6.9 6.9 6.9 6.9 1.9-6.9zm14 27.8 5.1 5.1 6.9-1.9zm18.9 5.1 9.6 2.5 2.6-9.4-7.1 1.8z"}),g.createElement("path",{d:"m192 140.9 7.1-1.8 1.8-7.1zm-31.1-1.8 2.6 9.4 9.6-2.5-5.1-5.1zm19.1 5 6.9 1.9 5.1-5.1z"}),g.createElement("path",{d:"m173.1 146 6.9 6.9 6.9-6.9-6.9-1.9zm-12.2-45.1-9.4 2.6 2.5 9.6 5.1-5.1zm-1.8 31.1 1.8 7.1 7.1 1.8zm45-12 1.9-6.9-5.1-5.1z"}),g.createElement("path",{d:"m168 99.1-7.1 1.8-1.8 7.1zm32.9 8.9-1.8-7.1-7.1-1.8zm5.1 18.9 6.9-6.9-6.9-6.9-1.9 6.9z"}),g.createElement("path",{d:"m200.9 108-8.9-8.9-12-3.2-12 3.2-8.9 8.9-3.2 12 3.2 12 8.9 8.9 12 3.2 12-3.2 8.9-8.9 3.2-12z"}),g.createElement("path",{d:"m200.9 132 5.1-5.1-1.9-6.9zm5.1-18.9 2.5-9.6-9.4-2.6 1.8 7.1zm-6.9-12.2-2.6-9.4-9.6 2.5 5.1 5.1zm-26-6.9-9.6-2.5-2.6 9.4 7.1-1.8zm6.9 1.9-6.9-1.9-5.1 5.1z"}),g.createElement("path",{d:"m186.9 94-6.9-6.9-6.9 6.9 6.9 1.9z"}),g.createElement("path",{d:"m192 99.1-5.1-5.1-6.9 1.9zM173.1 146l-9.6 2.5 4.5 16.6 12-12.2zm-5.1 19.1 12 44.9 12-44.9-12-12.2zm-7.1-26-9.4-2.6-4.4 16.4 16.4-4.4z"}),g.createElement("path",{d:"m147.1 152.9-12 45.1 32.9-32.9-4.5-16.6zm-12-20.9L102 165.1l45.1-12.2 4.4-16.4z"}),g.createElement("path",{d:"m154 126.9-6.9-6.9-12 12 16.4 4.5zm0-13.8-2.5-9.6-16.4 4.5 12 12z"}),g.createElement("path",{d:"M135.1 108 90 120l45.1 12 12-12zm90 24-16.6 4.5 4.4 16.4 45.1 12.2z"}),g.createElement("path",{d:"m199.1 139.1-2.6 9.4 16.4 4.4-4.4-16.4zm-12.2 6.9-6.9 6.9 12 12.2 4.5-16.6zm19.1-19.1 2.5 9.6 16.6-4.5-12.2-12z"}),g.createElement("path",{d:"m192 165.1 33.1 32.9-12.2-45.1-16.4-4.4zm7.1-64.2 9.4 2.6 4.4-16.4-16.4 4.4z"}),g.createElement("path",{d:"M225.1 108 258 75.1l-45.1 12-4.4 16.4zm-12.2-20.9L225.1 42 192 75.1l4.5 16.4zm12.2 44.9 44.9-12-44.9-12-12.2 12z"}),g.createElement("path",{d:"m206 113.1 6.9 6.9 12.2-12-16.6-4.5zm-38-38L135.1 42l12 45.1 16.4 4.4z"}),g.createElement("path",{d:"m160.9 100.9 2.6-9.4-16.4-4.4 4.4 16.4z"}),g.createElement("path",{d:"m147.1 87.1-45.1-12 33.1 32.9 16.4-4.5zm39.8 6.9 9.6-2.5-4.5-16.4-12 12z"}),g.createElement("path",{d:"M192 75.1 180 30l-12 45.1 12 12z"}),g.createElement("path",{d:"m173.1 94 6.9-6.9-12-12-4.5 16.4z"})),g.createElement("circle",{cx:180,cy:120,r:51.1,fill:"#000095"}),g.createElement("circle",{cx:180,cy:120,r:45.1,fill:"#fff"}))),He=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",id:"flag-icons-th",viewBox:"0 0 640 480",width:"1em",height:"1em"},e),g.createElement("g",{fillRule:"evenodd"},g.createElement("path",{fill:"#f4f5f8",d:"M0 0h640v480H0z"}),g.createElement("path",{fill:"#2d2a4a",d:"M0 162.5h640v160H0z"}),g.createElement("path",{fill:"#a51931",d:"M0 0h640v82.5H0zm0 400h640v80H0z"}))),Le=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",id:"flag-icons-vn",viewBox:"0 0 640 480",width:"1em",height:"1em"},e),g.createElement("defs",null,g.createElement("clipPath",{id:"a"},g.createElement("path",{fillOpacity:.7,d:"M-85.3 0h682.6v512H-85.3z"}))),g.createElement("g",{fillRule:"evenodd",clipPath:"url(#a)",transform:"translate(80) scale(.9375)"},g.createElement("path",{fill:"#da251d",d:"M-128 0h768v512h-768z"}),g.createElement("path",{fill:"#ff0",d:"M349.6 381 260 314.3l-89 67.3L204 272l-89-67.7 110.1-1 34.2-109.4L294 203l110.1.1-88.5 68.4 33.9 109.6z"}))),Ae=Object.values(s.siteOptions).reduce(((e,{phoneCountry:t})=>(e.includes(t)||e.push(t),e)),[]),Se={PH:Oe,KH:ze,ID:ye,IN:we,MM:je,MY:Me,TH:He,TW:ke,VN:Le};var Be={phoneInput:"i-9Ibox",error:"YDWHh9b"};const Ie=e.forwardRef(((t,r)=>{const{isError:a,defaultCountry:n,countries:o=Ae,countryCallingCodeEditable:i=!1,defaultValue:s,value:c,onChange:d,className:m}=t,h=l.__rest(t,["isError","defaultCountry","countries","countryCallingCodeEditable","defaultValue","value","onChange","className"]),[p,g]=e.useState(s||c),[v,b]=e.useState(null);return e.useEffect((()=>{g(c)}),[c]),e.useEffect((()=>{l.__awaiter(void 0,void 0,void 0,(function*(){const e=yield Promise.resolve().then((function(){return u(require("react-phone-number-input"))}));b(e)}))}),[]),v?f.default.createElement(v.default,Object.assign({ref:r,value:p,onChange:e=>{g(e),null==d||d(e)},countries:o,defaultCountry:n,countryCallingCodeEditable:i,className:ue(Be.phoneInput,{isError:a,[Be.error]:a},m),flagUrl:void 0,flagComponent:e=>{const{country:t,countryName:r,flagUrl:a}=e,n=l.__rest(e,["country","countryName","flagUrl"]),o=Se[t],i=t?`(+${v.getCountryCallingCode(t)})`:"";return o?f.default.createElement(f.default.Fragment,null,f.default.createElement(o,Object.assign({title:r},n)),f.default.createElement("span",{className:ue(Be.callingCode,"PhoneInputCountryIconCallingCode")},i)):f.default.createElement(f.default.Fragment,null)},countrySelectProps:{arrowComponent:()=>f.default.createElement("div",{className:ue(Be.arrowSelect,"PhoneInputArrowContainer")},f.default.createElement(Ce,null))}},h)):null})),Pe=e=>{var{children:r}=e,a=l.__rest(e,["children"]);return f.default.createElement(t.Tabs,Object.assign({},a),r)};Pe.List=t.Tabs.List,Pe.Tab=t.Tabs.Tab,Pe.Panel=t.Tabs.Panel,exports.Accordion=ee,exports.Anchor=S,exports.AspectRatio=I,exports.Avatar=e=>{var{withIndicator:r=!1,indicatorConfig:a=null,size:n=56,children:o,styles:i}=e,s=l.__rest(e,["withIndicator","indicatorConfig","size","children","styles"]);const c=()=>f.default.createElement(t.Avatar,Object.assign({size:n,radius:"xl"},s,{imageProps:Object.assign({loading:"lazy"},s.imageProps)}),o||f.default.createElement("img",{loading:"lazy",src:te,width:n}));return r?f.default.createElement(t.Indicator,Object.assign({inline:!0,position:"bottom-end",offset:9},a,{styles:Object.assign({indicator:{backgroundColor:f.default.isValidElement(a.label)&&"transparent",zIndex:1}},i)}),c()):c()},exports.Breadcrumbs=Z,exports.Cambodia=ze,exports.CaretDown=Ce,exports.Carousel=j,exports.Checkbox=se,exports.DEBOUNCED_TIME=300,exports.DatePicker=z,exports.India=we,exports.Indonesia=ye,exports.Input=ie,exports.MAPPED_LOCALE=P,exports.Malaysia=Me,exports.Myanmar=je,exports.NumberInput=ae,exports.OTHER_THEME_CONFIG=k,exports.OTP=xe,exports.Phillipines=Oe,exports.Phone=Ie,exports.Radio=me,exports.StyledModal=Q,exports.StyledSlider=ce,exports.StyledSliderWrapper=de,exports.StyledTextArea=X,exports.Tabs=Pe,exports.Taiwan=ke,exports.Text=L,exports.Thailand=He,exports.Vietnam=Le,exports.commonjsGlobal=he,exports.createCommonjsModule=pe,exports.emotionCache=re,exports.getHeadingStyles=W,exports.getMantineThemeOverride=(e,t="hb")=>({defaultRadius:"hb"===t?4:16,datesLocale:P[e],dateFormat:s.ISO_FORMAT[e].dateFormat,colors:Object.assign(Object.assign(Object.assign({},U),m.theme.colors),{toneYellow:"#fff9eb",toneGreen:"#f2fcf7",toneBlue:"#e0e9fb",tonePink:"#ffeaf1"}),primaryColor:t,primaryShade:6,fontFamily:e===c.LOCALE.Cambodia?"Battambang,":"Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',\n Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",breakpoints:{xs:o.Breakpoints.BREAK_POINT_SMALL_MOBILE,sm:o.Breakpoints.BREAK_POINT_MOBILE,md:o.Breakpoints.BREAK_POINT_TABLET,lg:o.Breakpoints.BREAK_POINT_PC,xl:o.Breakpoints.BREAK_POINT_LGPC},components:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},V(e)),$),G),T),q),K),other:{template:t,defaultImage:r.CommonGAssets.getAssetPath("mb"===t?"default-image-mb.jpg":"default-image.jpg")}}),exports.themeColors=U,exports.useMantineLocale=t=>{const[r,a]=e.useState(!1);return e.useEffect((()=>{l.__awaiter(void 0,void 0,void 0,(function*(){var e;a(!1),yield null===(e=_[t])||void 0===e?void 0:e.call(_),b.default.locale(P[t]),a(!0)}))}),[t]),{isLoaded:r}},exports.useScreenSize=y,exports.useStyles=Y;
|