@hhgtech/hhg-components 1.23.80 → 1.23.81-beta-1
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-26f210bd.js +1 -0
- package/build/Locale-51509292.js +1 -0
- package/build/Vietnam-97d56fa8.js +1 -0
- package/build/{Visible-8f0ee2b3.js → Visible-eeceb5ba.js} +1 -1
- package/build/animation-efbfdf7e.js +1 -0
- package/build/babyGrowth.js +1 -1
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/{core-b2bc342b.js → core-b46f1b47.js} +1 -1
- package/build/dataTransform-8a447186.js +1 -0
- package/build/{defaultClassWrapper-3530f9cd.js → defaultClassWrapper-a6bb62db.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/BabyGrowth-136d3717.js +1 -0
- package/build/esm/Locale-ae8993d5.js +1 -0
- package/build/esm/Vietnam-be99b27f.js +1 -0
- package/build/esm/{Visible-32ac189a.js → Visible-b1b2fcd4.js} +1 -1
- package/build/esm/animation-e77d0dee.js +1 -0
- package/build/esm/babyGrowth.js +1 -1
- 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-790ff01f.js → core-e3d52c91.js} +1 -1
- package/build/esm/dataTransform-5a39bf37.js +1 -0
- package/build/esm/defaultClassWrapper-67f33202.js +1 -0
- 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-a6db9398.js +1 -0
- package/build/esm/{getSocialList-4d823112.js → getSocialList-cd7ea871.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/index-0559b638.js +1 -0
- package/build/esm/index-068821fc.js +1 -0
- package/build/esm/{index-35e03c70.js → index-0b0d9bc0.js} +1 -1
- package/build/esm/index-261db2a9.js +1 -0
- package/build/esm/index-344ef39b.js +1 -0
- package/build/esm/index-38a224a5.js +1 -0
- package/build/esm/{index-8f4f63dd.js → index-4d8c6099.js} +1 -1
- package/build/esm/{index-6a6f20ad.js → index-623e23db.js} +1 -1
- package/build/esm/index-704d8584.js +1 -0
- package/build/esm/{index-91fb8d12.js → index-75c13b36.js} +1 -1
- package/build/esm/{index-95f279e4.js → index-80a7384c.js} +1 -1
- package/build/esm/{index-1ee9c34b.js → index-96c22dca.js} +1 -1
- package/build/esm/index-9b49ae49.js +1 -0
- package/build/esm/index-a95eb5d1.js +1 -0
- package/build/esm/index-add484cd.js +1 -0
- package/build/esm/index-c5acd351.js +1 -0
- package/build/esm/index-c6060bd3.js +1 -0
- package/build/esm/{index-cdb6a5f7.js → index-d10692e8.js} +1 -1
- package/build/esm/{index-1329846e.js → index-e593aa3a.js} +1 -1
- package/build/esm/index-ea96cb13.js +1 -0
- package/build/esm/{index-0f072fb6.js → index-ec4f0fbf.js} +1 -1
- package/build/esm/index-fa85da0e.js +7 -0
- package/build/esm/index.css +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-8fd96e97.js → index.styled-1e888cef.js} +1 -1
- package/build/esm/{index.styled-761eb232.js → index.styled-277a6375.js} +1 -1
- package/build/esm/index.styled-92d42721.js +1 -0
- 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 +1 -1
- package/build/esm/routing-c9220ff4.js +1 -0
- package/build/esm/together.js +1 -1
- package/build/esm/{translationsProvider-b15f74db.js → translationsProvider-b4abf22b.js} +1 -1
- package/build/esm/{tslib.es6-b69f86ce.js → tslib.es6-2dcedc0f.js} +1 -1
- package/build/esm/types-5bd404ad.js +1 -0
- package/build/esm/types-edc99027.js +1 -0
- package/build/esm/types.js +1 -1
- package/build/esm/{useFbDataLayer-58265757.js → useFbDataLayer-faf0afa6.js} +1 -1
- package/build/esm/useHealthToolCache-91b42db5.js +1 -0
- package/build/esm/{useTranslations-6cb7ed0e.js → useTranslations-c02cb81b.js} +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/{getDynamicHealthTool-530960cf.js → getDynamicHealthTool-9e981d48.js} +1 -1
- package/build/{getSocialList-123b18bb.js → getSocialList-0c1de9db.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/index-11168566.js +1 -0
- package/build/{index-3110751b.js → index-191f4c98.js} +1 -1
- package/build/{index-7f5c8a7d.js → index-28ce8643.js} +1 -1
- package/build/index-306bbef1.js +1 -0
- package/build/index-3194d64b.js +1 -0
- package/build/{index-bee9b50a.js → index-4af9e20b.js} +1 -1
- package/build/{index-b43b26ff.js → index-640efce0.js} +1 -1
- package/build/index-72238bed.js +1 -0
- package/build/index-7f2b16b7.js +7 -0
- package/build/index-860b0413.js +1 -0
- package/build/{index-8c015788.js → index-8ea0577a.js} +1 -1
- package/build/index-94984012.js +1 -0
- package/build/index-99161ff9.js +1 -0
- package/build/index-9ac8f09f.js +1 -0
- package/build/{index-9f8c767d.js → index-b1794c6a.js} +1 -1
- package/build/{index-4f6f86c3.js → index-b2999070.js} +1 -1
- package/build/{index-7935268b.js → index-b36d9066.js} +1 -1
- package/build/index-b59d3266.js +1 -0
- package/build/{index-a0aa2026.js → index-b91c53a3.js} +1 -1
- package/build/index-c07ec7a9.js +1 -0
- package/build/{index-912e4c1b.js → index-e7bf319a.js} +1 -1
- package/build/index-ea9c15bb.js +1 -0
- package/build/index.css +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-95e9b14e.js → index.styled-10e505f8.js} +1 -1
- package/build/index.styled-992d5897.js +1 -0
- package/build/{index.styled-73a93b24.js → index.styled-d1881370.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 +1 -1
- package/build/{routing-f2c167f4.js → routing-2792580d.js} +1 -1
- package/build/together/components/molecules/index.d.ts +1 -0
- package/build/together/components/molecules/profileDetail/care/questionCard/index.d.ts +1 -1
- package/build/together/components/molecules/skipQuestionOfExpertBtn/index.d.ts +14 -0
- package/build/together.js +1 -1
- package/build/{translationsProvider-ceeba17e.js → translationsProvider-f4f1687f.js} +1 -1
- package/build/{types-78b4a695.js → types-1bc89c42.js} +1 -1
- package/build/types-918e732b.js +1 -0
- package/build/types.js +1 -1
- package/build/{useFbDataLayer-3f8aa8a8.js → useFbDataLayer-864a3171.js} +1 -1
- package/build/{useHealthToolCache-fd46b342.js → useHealthToolCache-bf29b735.js} +1 -1
- package/build/useTranslations-ab09572c.js +1 -0
- package/package.json +3 -2
- package/build/Locale-b522eaee.js +0 -1
- package/build/dataTransform-33d6c637.js +0 -1
- package/build/dataTransform-50774d35.js +0 -1
- package/build/esm/Locale-3d2fa220.js +0 -1
- package/build/esm/dataTransform-acd0ff45.js +0 -1
- package/build/esm/dataTransform-f1975fae.js +0 -1
- package/build/esm/defaultClassWrapper-11731980.js +0 -1
- package/build/esm/getDynamicHealthTool-713fa4ee.js +0 -1
- package/build/esm/index-23d2df7d.js +0 -1
- package/build/esm/index-265922ac.js +0 -1
- package/build/esm/index-468577ff.js +0 -1
- package/build/esm/index-56843525.js +0 -1
- package/build/esm/index-64a86553.js +0 -1
- package/build/esm/index-68a3c7cb.js +0 -1
- package/build/esm/index-6bea9b73.js +0 -1
- package/build/esm/index-74bfcfb3.js +0 -1
- package/build/esm/index-79e1d3ae.js +0 -1
- package/build/esm/index-cea8fb83.js +0 -1
- package/build/esm/index-e477c782.js +0 -1
- package/build/esm/index-ef686483.js +0 -1
- package/build/esm/index.styled-2a05b113.js +0 -1
- package/build/esm/index.styled-3378ccd7.js +0 -1
- package/build/esm/index.styled-595af74e.js +0 -1
- package/build/esm/index.styled-694301e3.js +0 -1
- package/build/esm/routing-f8e1a31f.js +0 -1
- package/build/esm/screenSizeContext-4689e2da.js +0 -1
- package/build/esm/types-28c6881c.js +0 -1
- package/build/esm/types-66ca29c1.js +0 -1
- package/build/esm/useHealthToolCache-4668ef44.js +0 -1
- package/build/index-19378af4.js +0 -1
- package/build/index-1c990778.js +0 -1
- package/build/index-3f7370db.js +0 -1
- package/build/index-679ee18c.js +0 -1
- package/build/index-8c7a5a1b.js +0 -1
- package/build/index-960505e9.js +0 -1
- package/build/index-9b193376.js +0 -1
- package/build/index-b65b93c6.js +0 -1
- package/build/index-c1b804b0.js +0 -1
- package/build/index-ea176b36.js +0 -1
- package/build/index-ec0b4cea.js +0 -1
- package/build/index.styled-85a456a0.js +0 -1
- package/build/index.styled-a7c26b09.js +0 -1
- package/build/index.styled-b47cb6ed.js +0 -1
- package/build/index.styled-d7ec24f9.js +0 -1
- package/build/screenSizeContext-a37e8c20.js +0 -1
- package/build/types-ccf206c3.js +0 -1
- package/build/useTranslations-727326b4.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-c4242c63.js → BMI_BOYS.percentile.monthly-d7e28b29.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-4d5ae326.js → BMI_BOYS.percentile.weekly-3f545527.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-ba4a2bf8.js → BMI_BOYS.percentile.yearly-ef90d86f.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-c9cc1b67.js → BMI_BOYS.zscore.monthly-42234515.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-404de8a1.js → BMI_BOYS.zscore.weekly-fb82ea75.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-aae6ac37.js → BMI_BOYS.zscore.yearly-53db05a5.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-1b9235ca.js → BMI_GIRLS.percentile.monthly-1b8284b7.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-a234068d.js → BMI_GIRLS.percentile.weekly-95b2caac.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-8f8a908e.js → BMI_GIRLS.percentile.yearly-551edca9.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-a797af8f.js → BMI_GIRLS.zscore.monthly-b0a5ccfb.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-f00564f9.js → BMI_GIRLS.zscore.weekly-66907b5d.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-1abee99e.js → BMI_GIRLS.zscore.yearly-731bf131.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-7e8ef17e.js → HEAD CIRCUM_BOYS.percentile.monthly-2bee4e48.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-1a05418f.js → HEAD CIRCUM_BOYS.percentile.weekly-529d31c6.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-187083ac.js → HEAD CIRCUM_BOYS.percentile.yearly-55ca58ae.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-2281f87a.js → HEAD CIRCUM_BOYS.zscore.monthly-765aab5b.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-ac569271.js → HEAD CIRCUM_BOYS.zscore.weekly-2cd09363.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-863b5d2f.js → HEAD CIRCUM_BOYS.zscore.yearly-1e2e0fec.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-7de3be1c.js → HEAD CIRCUM_GIRLS.percentile.monthly-ed638240.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-777613aa.js → HEAD CIRCUM_GIRLS.percentile.weekly-a5758801.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-ffa00750.js → HEAD CIRCUM_GIRLS.percentile.yearly-77c6beae.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-47e4038b.js → HEAD CIRCUM_GIRLS.zscore.monthly-a829e36d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-7c3a4829.js → HEAD CIRCUM_GIRLS.zscore.weekly-c83ea1b0.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-195a6b5f.js → HEAD CIRCUM_GIRLS.zscore.yearly-a1fb9436.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-888b2b64.js → HEIGHT_BOYS.percentile.monthly-7d0170f9.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-ecf6b5cd.js → HEIGHT_BOYS.percentile.weekly-008ea66c.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-7e9a571b.js → HEIGHT_BOYS.percentile.yearly-fe786dc9.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-60e62435.js → HEIGHT_BOYS.zscore.monthly-4cb98b4c.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-6be883f6.js → HEIGHT_BOYS.zscore.weekly-ed5bfe54.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-be758015.js → HEIGHT_BOYS.zscore.yearly-69dd7174.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-2920fd3b.js → HEIGHT_GIRLS.percentile.monthly-2149a459.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-f1df621f.js → HEIGHT_GIRLS.percentile.weekly-3304e333.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-b5846f6a.js → HEIGHT_GIRLS.percentile.yearly-efdac16c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-e419b2ff.js → HEIGHT_GIRLS.zscore.monthly-d9bcfc79.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-5f673ffd.js → HEIGHT_GIRLS.zscore.weekly-0f79bbe9.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-150fdfb3.js → HEIGHT_GIRLS.zscore.yearly-6481f374.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-6a5eccf7.js → WEIGHT_BOYS.percentile.monthly-707a0058.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-94088b8c.js → WEIGHT_BOYS.percentile.weekly-937dc980.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-c936e3f4.js → WEIGHT_BOYS.percentile.yearly-258c8d16.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-c19fce39.js → WEIGHT_BOYS.zscore.monthly-b46d4966.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-10e7180e.js → WEIGHT_BOYS.zscore.weekly-5d210371.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-dc39088c.js → WEIGHT_BOYS.zscore.yearly-7aef0989.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-0798fbbb.js → WEIGHT_GIRLS.percentile.monthly-fc6eea35.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-57a5d12d.js → WEIGHT_GIRLS.percentile.weekly-dfed4a7f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-daf9bebf.js → WEIGHT_GIRLS.percentile.yearly-b3fb9086.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-27b46b0f.js → WEIGHT_GIRLS.zscore.monthly-7c3e28f4.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-6fbbd895.js → WEIGHT_GIRLS.zscore.weekly-1208dd1d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-a9b7154b.js → WEIGHT_GIRLS.zscore.yearly-050daf59.js} +0 -0
- /package/build/{constants-d035364d.js → constants-b537088a.js} +0 -0
- /package/build/{cookieHelper-2ddb4716.js → cookieHelper-d75e24e7.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-66984e04.js → BMI_BOYS.percentile.monthly-0415989b.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-2199a9d1.js → BMI_BOYS.percentile.weekly-144cd109.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-50695e73.js → BMI_BOYS.percentile.yearly-a830b189.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-6db3fabf.js → BMI_BOYS.zscore.monthly-9fcd541d.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-14843c47.js → BMI_BOYS.zscore.weekly-2b05a0ba.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-3fb387f9.js → BMI_BOYS.zscore.yearly-39b3ac79.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-f13a2ca9.js → BMI_GIRLS.percentile.monthly-bc04d18a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-90828bfb.js → BMI_GIRLS.percentile.weekly-ca51177a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-b99eb7fb.js → BMI_GIRLS.percentile.yearly-5f997a8a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-d352b487.js → BMI_GIRLS.zscore.monthly-83045ce0.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-2f501500.js → BMI_GIRLS.zscore.weekly-c1d606c5.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-91d2c045.js → BMI_GIRLS.zscore.yearly-8571ff30.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-ce93cf0b.js → HEAD CIRCUM_BOYS.percentile.monthly-754f185e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-7906ae7c.js → HEAD CIRCUM_BOYS.percentile.weekly-7774188b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-a1d81a44.js → HEAD CIRCUM_BOYS.percentile.yearly-f3073fb3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-83ec14eb.js → HEAD CIRCUM_BOYS.zscore.monthly-8a5bbc3d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-6048716e.js → HEAD CIRCUM_BOYS.zscore.weekly-0b4498a5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-6450c733.js → HEAD CIRCUM_BOYS.zscore.yearly-5a30ddb1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-14da8efd.js → HEAD CIRCUM_GIRLS.percentile.monthly-dbbfa986.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-203a336d.js → HEAD CIRCUM_GIRLS.percentile.weekly-36734681.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-c047af6c.js → HEAD CIRCUM_GIRLS.percentile.yearly-b84b1213.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-0fc44ec9.js → HEAD CIRCUM_GIRLS.zscore.monthly-ed32433f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-b8db6c65.js → HEAD CIRCUM_GIRLS.zscore.weekly-61ff64bf.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-b3b9ed09.js → HEAD CIRCUM_GIRLS.zscore.yearly-0b991c46.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-9e101026.js → HEIGHT_BOYS.percentile.monthly-f6bde4cf.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-da18ffcd.js → HEIGHT_BOYS.percentile.weekly-41cd91a5.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-b3b46d8d.js → HEIGHT_BOYS.percentile.yearly-58925ecf.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-b80009e3.js → HEIGHT_BOYS.zscore.monthly-7a8ab4e2.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-0ed52ce3.js → HEIGHT_BOYS.zscore.weekly-9abe3d51.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-f52e8f5a.js → HEIGHT_BOYS.zscore.yearly-770f114d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-ca7f4fec.js → HEIGHT_GIRLS.percentile.monthly-d87d2855.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-3372db16.js → HEIGHT_GIRLS.percentile.weekly-2fd51f3d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-ba289e95.js → HEIGHT_GIRLS.percentile.yearly-4ba9fa38.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-81977af1.js → HEIGHT_GIRLS.zscore.monthly-1a16bbde.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-8967262f.js → HEIGHT_GIRLS.zscore.weekly-96fe6f1b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-ae4ab166.js → HEIGHT_GIRLS.zscore.yearly-7774fa41.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-1942e1f2.js → WEIGHT_BOYS.percentile.monthly-f3414d9a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-7a4db64a.js → WEIGHT_BOYS.percentile.weekly-1c07c765.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-97c64e5b.js → WEIGHT_BOYS.percentile.yearly-a9a10dab.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-be1c4afc.js → WEIGHT_BOYS.zscore.monthly-3dcddd45.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-89d3dd88.js → WEIGHT_BOYS.zscore.weekly-b17719a1.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-1f183a23.js → WEIGHT_BOYS.zscore.yearly-24685a5a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-4cac121b.js → WEIGHT_GIRLS.percentile.monthly-5dcce6b6.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-88009c8a.js → WEIGHT_GIRLS.percentile.weekly-3acc84da.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-99c0c30e.js → WEIGHT_GIRLS.percentile.yearly-88dc1212.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-f8a442d9.js → WEIGHT_GIRLS.zscore.monthly-d465d2c7.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-38ab5e60.js → WEIGHT_GIRLS.zscore.weekly-5c06b222.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-1e7bc9cb.js → WEIGHT_GIRLS.zscore.yearly-17acdbd7.js} +0 -0
- /package/build/esm/{constants-3b0cc4ed.js → constants-88371f17.js} +0 -0
- /package/build/esm/{cookieHelper-f2a0dab8.js → cookieHelper-019cd653.js} +0 -0
- /package/build/esm/{isProduction-6c567518.js → isProduction-40c1727d.js} +0 -0
- /package/build/esm/{localizeNumberFormat-38b86df9.js → localizeNumberFormat-6a8d4799.js} +0 -0
- /package/build/esm/{theme-464b14d4.js → theme-d0509a28.js} +0 -0
- /package/build/esm/{translationsContext-d90a2ee3.js → translationsContext-e01b1033.js} +0 -0
- /package/build/esm/{types-01a4bacc.js → types-e9333aa0.js} +0 -0
- /package/build/esm/{useOutsideClick-2f699172.js → useOutsideClick-5bd62aa9.js} +0 -0
- /package/build/esm/{useScrollbarSize-689a166e.js → useScrollbarSize-5b87c8f1.js} +0 -0
- /package/build/esm/{utils-2e243b91.js → utils-d40f1241.js} +0 -0
- /package/build/{isProduction-f4ceb387.js → isProduction-b8f09047.js} +0 -0
- /package/build/{localizeNumberFormat-11a69eb9.js → localizeNumberFormat-ebd96390.js} +0 -0
- /package/build/{theme-bd572d4d.js → theme-3c8770d4.js} +0 -0
- /package/build/{translationsContext-4eb789fd.js → translationsContext-a6bd51d6.js} +0 -0
- /package/build/{tslib.es6-35d25891.js → tslib.es6-7409fcb1.js} +0 -0
- /package/build/{types-4e5ba0b9.js → types-96a7e89e.js} +0 -0
- /package/build/{useOutsideClick-4f9b6138.js → useOutsideClick-1687172c.js} +0 -0
- /package/build/{useScrollbarSize-5e72b6cc.js → useScrollbarSize-c55c02ef.js} +0 -0
- /package/build/{utils-9083bcb5.js → utils-feec2d6a.js} +0 -0
package/build/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./Locale-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./BabyGrowth-26f210bd.js"),r=require("./Locale-51509292.js");Object.defineProperty(exports,"BabyGrowthChartDuration",{enumerable:!0,get:function(){return e.BabyGrowthChartDuration}}),Object.defineProperty(exports,"BabyGrowthChartType",{enumerable:!0,get:function(){return e.BabyGrowthChartType}}),Object.defineProperty(exports,"BabyGrowthResultTab",{enumerable:!0,get:function(){return e.BabyGrowthResultTab}}),Object.defineProperty(exports,"Gender",{enumerable:!0,get:function(){return e.Gender}}),Object.defineProperty(exports,"LOCALE",{enumerable:!0,get:function(){return r.LOCALE}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-
|
|
1
|
+
"use strict";var e=require("./tslib.es6-7409fcb1.js"),t=require("react"),n=require("./cookieHelper-d75e24e7.js");function r(e){var t=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",t).then((function(e){return Array.from(new Uint8Array(e)).map((function(e){return e.toString(16).padStart(2,"0")})).join("")}))}exports.useFbDataLayer=function(i){var a=t.useRef("");t.useEffect((function(){return e.__awaiter(void 0,void 0,void 0,(function(){var t,o,l,u,c,s,f,d,p,b,g,h,v,m,_;return e.__generator(this,(function(e){switch(e.label){case 0:return a.current?[3,4]:[4,fetch("https://api.ipify.org").then((function(e){return e.text()}))];case 1:return(t=e.sent())?[3,3]:[4,fetch("https://icanhazip.com").then((function(e){return e.text()}))];case 2:t=e.sent(),e.label=3;case 3:a.current=t,e.label=4;case 4:return null===(h=null===(g=window.localStorage)||void 0===g?void 0:g.setItem)||void 0===h||h.call(g,"fbClientIp",JSON.stringify({client_ip_address:(null===(v=a.current)||void 0===v?void 0:v.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),(null==i?void 0:i.id)?[4,Promise.all([i.email?r(i.email):null,i.phone?r(i.phone):null,i.birthday?r(i.birthday.split("-").join("")):null,i.gender?"m":"f",i.city_name?r(i.city_name).then((function(e){return e.replace(/\s/g,"")})):null,i.name?r(i.name):null])]:[3,6];case 5:o=e.sent(),l=o[0],u=o[1],c=o[2],s=o[3],f=o[4],d=o[5],p={fbc:n.getCookie("_fbc")||"",fbp:n.getCookie("_fbp")||""},b={user_id:i.id},d&&(b.fn=d),l&&(p.em=l,b.em=l),u&&(p.ph=u,b.ph=u),c&&(p.db=c,b.db=c),s&&(p.ge=s,b.ge=s),f&&(p.ct=f,b.ct=f),null===(_=null===(m=window.localStorage)||void 0===m?void 0:m.setItem)||void 0===_||_.call(m,"fbDataLayer_userInfo",JSON.stringify(b)),e.label=6;case 6:return[2]}}))})),function(){}}),[i])};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-
|
|
1
|
+
"use strict";var e=require("./tslib.es6-7409fcb1.js"),t=require("react"),r=require("./getDynamicHealthTool-9e981d48.js");exports.useHealthToolsCache=function(a){var i=t.useState([]),n=i[0],o=i[1];t.useEffect((function(){e.__awaiter(void 0,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,r.getDynamicHealthToolWithCache(a)];case 1:return t=e.sent(),o(t),[2]}}))}))}),[r.getDynamicHealthToolWithCache,a]);var l=t.useCallback((function(e){var t;return(null===(t=n.find((function(t){return t.template===e})))||void 0===t?void 0:t.link)||""}),[n]);return{allTools:n,getHealthToolLink:l}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react"),t=require("./translationsContext-a6bd51d6.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(require("string-format"));exports.useTranslations=function(){var a=e.useContext(t.TranslationsContext)||{locale:"en-PH"},r=a.values,o=a.locale;return e.useMemo((function(){return{t:function(e,a){return r?r[e]?a?n.default(r[e]||e,a):r[e]||e:(console.warn("[useTranslations] Missing translation for key ".concat(e," and locale ").concat(o)),a?n.default(t.defaultTranslations[e]||e,a):t.defaultTranslations[e]||e):(console.error("[useTranslations] t method called before translation values are loaded"),e)},locale:o}}),[r,o])};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hhgtech/hhg-components",
|
|
3
|
-
"version": "1.23.
|
|
3
|
+
"version": "1.23.81-beta-1",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"module": "build/esm/index.js",
|
|
6
6
|
"files": [
|
|
@@ -278,5 +278,6 @@
|
|
|
278
278
|
},
|
|
279
279
|
"resolutions": {
|
|
280
280
|
"@storybook/react/webpack": "^5"
|
|
281
|
-
}
|
|
281
|
+
},
|
|
282
|
+
"sideEffects": false
|
|
282
283
|
}
|
package/build/Locale-b522eaee.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e,t,r,a,o;exports.Gender=void 0,(e=exports.Gender||(exports.Gender={})).Boy="boy",e.Girl="girl",exports.BabyGrowthChartType=void 0,(t=exports.BabyGrowthChartType||(exports.BabyGrowthChartType={}))[t.Weight=0]="Weight",t[t.Height=1]="Height",t[t.Head=2]="Head",t[t.BMI=3]="BMI",exports.BabyGrowthChartDuration=void 0,(r=exports.BabyGrowthChartDuration||(exports.BabyGrowthChartDuration={}))[r.Weekly=0]="Weekly",r[r.Monthly=1]="Monthly",r[r.Yearly=2]="Yearly",exports.BabyGrowthResultTab=void 0,(a=exports.BabyGrowthResultTab||(exports.BabyGrowthResultTab={}))[a.Weight=0]="Weight",a[a.Height=1]="Height",a[a.Head=2]="Head",a[a.BMI=3]="BMI",a[a.Record=4]="Record",exports.LOCALE=void 0,(o=exports.LOCALE||(exports.LOCALE={})).Vietnam="vi-VN",o.Indonesia="id-ID",o.Malaysia="ms-MY",o.Cambodia="km-KH",o.PhilippinesEnglish="en-PH",o.PhilippinesTagalog="tl-PH",o.Thailand="th-TH",o.Myanmar="my-MM",o.Taiwan="zh-TW",o.India="hi-IN";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.abbreviateNumber=function(e){var r=String(e);if(e>=1e3){for(var t=Math.floor((""+e).length/3),i=void 0,o=2;o>=1;o--){if(((i=parseFloat((0!=t?e/Math.pow(1e3,t):e).toPrecision(o)))+"").replace(/[^a-zA-Z 0-9]+/g,"").length<=2)break}i&&i%1!=0&&(i=i.toFixed(1)),r=i+["","k","m","b","t"][t]}return r},exports.formatPill=function(e){return e?{id:e.id,name:e.name,icon:e.fruit_icon}:{}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("react"),i=require("./index.styled-b47cb6ed.js"),o=require("./tslib.es6-35d25891.js");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),l=function(e){return e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||"",specialty:e.specialty||"",organisation:e.organisation||""}:{}},r=function(e){return e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{}},a=function(e){var i,t,n,a;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?u(e.sponsor):null,isSponsored:e.is_sponsored||null,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:l(e.author),reviewer:e.reviewed_by&&l(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?o.__assign(o.__assign({},null==e?void 0:e.reviewed),{author:d(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:d(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.editor),expert:d(null===(n=null==e?void 0:e.reviewed)||void 0===n?void 0:n.expert),fact_check:d(null===(a=null==e?void 0:e.reviewed)||void 0===a?void 0:a.fact_check)}):null,category:m(e.category),postContent:e.post_content||null,sections:e.sections||null,categories:(e.categories||[]).map(m),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:r(e.expert),metaTag:e.meta_tag||null}:{}},d=function(e){return void 0!==e&&e?o.__assign(o.__assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?"/expert/".concat(null==e?void 0:e.slug):"/author/".concat(null==e?void 0:e.slug):e.profile_url}):null},u=function(e){return e?{title:e.title,logo:e.logo,link:e.link}:{}},s=function(e){return{postTitle:e.post_title,permalink:e.permalink}},m=function(e){var i,o;return e?{termId:e.term_id||null,sponsor:e.sponsor?u(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(i=e.child_cates)||void 0===i?void 0:i.map((function(e){return m(e)})))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(o=e.cat_parent)||void 0===o?void 0:o.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?s(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((function(e){return v(e)})):null}:{}},v=function(e){return{title:e.title,content:e.content}},c=function(e){return e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{}},p=function(e){return e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},_=function(e){var i,o,t,n;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(i=e.community)||void 0===i?void 0:i.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:null===(t=e.community)||void 0===t?void 0:t.slug,communityName:null===(n=e.community)||void 0===n?void 0:n.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},g=function(e){return e?{answer:null==e?void 0:e.answer.map(w),expert:null==e?void 0:e.expert}:{}},f=function(e){var i,o,t,n,l,r,a,d,u,s,m,v,c,p,_,f,y,w,h,b,k;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((function(i){var o,t,n,l;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(o=e.community)||void 0===o?void 0:o.slug)+"/"+i.slug,communityId:String(null===(t=e.community)||void 0===t?void 0:t.id),communitySlug:(null===(n=e.community)||void 0===n?void 0:n.slug)||"",communityName:(null===(l=e.community)||void 0===l?void 0:l.name)||"",isHidden:Boolean(i.is_hidden),isActive:!0}})))||[],community:{id:(null===(o=e.community)||void 0===o?void 0:o.id)||0,name:(null===(t=e.community)||void 0===t?void 0:t.name)||"",slug:(null===(n=e.community)||void 0===n?void 0:n.slug)||"",isActive:!0,isHidden:Boolean(null===(l=e.community)||void 0===l?void 0:l.is_hidden)},slug:e.slug||"",author:{id:(null===(r=e.user)||void 0===r?void 0:r.id)||0,username:(null===(a=e.user)||void 0===a?void 0:a.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(u=e.user)||void 0===u?void 0:u.name)||"",avatar:(null===(s=e.user)||void 0===s?void 0:s.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(c=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===c?void 0:c.toLowerCase():"",type:(null===(p=e.user)||void 0===p?void 0:p.type)||"",partnerId:(null===(_=e.user)||void 0===_?void 0:_.partner_id)?String(null===(f=e.user)||void 0===f?void 0:f.partner_id):"",title:(null===(y=e.user)||void 0===y?void 0:y.title)||"",doctorId:(null===(w=e.user)||void 0===w?void 0:w.doctor_id)?String(null===(h=e.user)||void 0===h?void 0:h.doctor_id):"",hospitalId:(null===(b=e.user)||void 0===b?void 0:b.hospital_id)?String(null===(k=e.user)||void 0===k?void 0:k.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0,isAskDoctor:e.is_question?1:0,expertAnswer:g(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},y=function(e){return e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,info:e.informations||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{}},w=function(e){var i,o,t,n,l,r,a,d,u,s,m,v,c,p,_,g,f,y,h,b,k,I,C,x,S,T,P,A,B,D,q,U;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(w):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(o=e.user)||void 0===o?void 0:o.user_name)||"",name:(null===(t=e.user)||void 0===t?void 0:t.name)||"",role:(null===(n=e.user)||void 0===n?void 0:n.role)?null===(r=null===(l=e.user)||void 0===l?void 0:l.role)||void 0===r?void 0:r.toLowerCase():"",avatar:(null===(a=e.user)||void 0===a?void 0:a.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(u=e.user)||void 0===u?void 0:u.email)||"",partnerId:(null===(s=e.user)||void 0===s?void 0:s.partner_id)?String(null===(m=e.user)||void 0===m?void 0:m.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(c=e.user)||void 0===c?void 0:c.doctor_id)?String(null===(p=e.user)||void 0===p?void 0:p.doctor_id):"",hospitalId:(null===(_=e.user)||void 0===_?void 0:_.hospital_id)?String(null===(g=e.user)||void 0===g?void 0:g.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(f=e.mentioned)||void 0===f?void 0:f.id)||0,username:(null===(y=e.mentioned)||void 0===y?void 0:y.user_name)||"",name:(null===(h=e.mentioned)||void 0===h?void 0:h.name)||"",role:(null===(b=e.mentioned)||void 0===b?void 0:b.role)?null===(I=null===(k=e.mentioned)||void 0===k?void 0:k.role)||void 0===I?void 0:I.toLowerCase():"",avatar:(null===(C=e.mentioned)||void 0===C?void 0:C.avatar)||"",type:(null===(x=e.mentioned)||void 0===x?void 0:x.type)||"",email:(null===(S=e.mentioned)||void 0===S?void 0:S.email)||"",partnerId:(null===(T=e.mentioned)||void 0===T?void 0:T.partner_id)?String(null===(P=e.mentioned)||void 0===P?void 0:P.partner_id):"",doctorId:(null===(A=e.mentioned)||void 0===A?void 0:A.doctor_id)?String(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id):"",hospitalId:(null===(D=e.mentioned)||void 0===D?void 0:D.hospital_id)?String(null===(q=e.mentioned)||void 0===q?void 0:q.hospital_id):"",title:(null===(U=e.mentioned)||void 0===U?void 0:U.title)||""}:null,mentions:e.mentions||[]}:{}},h=function(e){return void 0!==e&&e?(null==e?void 0:e.turn_off_profile)?"":(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?"/expert/".concat(null==e?void 0:e.slug):"/author/".concat(null==e?void 0:e.slug):(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":""},b=Object.freeze({__proto__:null,formatAuthor:l,formatArticleExpert:r,formatArticle:a,formatUserProfile:d,formatBMIResult:function(e){var i,o,t,n,l,r,a,d,u;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(i=null==e?void 0:e.comparison)&&void 0!==i?i:"",assessmentData:[{tab:"tools.condition",content:null!==(o=null==e?void 0:e.condition)&&void 0!==o?o:""},{tab:"tools.risks",content:null!==(t=null==e?void 0:e.risk)&&void 0!==t?t:""},{tab:"tools.suggestion",content:null!==(n=null==e?void 0:e.suggestion)&&void 0!==n?n:""}],chartData:(null===(l=null==e?void 0:e.chart_data)||void 0===l?void 0:l.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(r=null==e?void 0:e.disclaimer)&&void 0!==r?r:"",illustrator:null!==(a=null==e?void 0:e.illustrator)&&void 0!==a?a:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(u=null==e?void 0:e.suggested_articles_link)&&void 0!==u?u:""}:{}},formatSponsor:u,formatReviewedCategory:s,formatCategory:m,formatCategoryApi:function(e){return e?{categoryInfo:m(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(a),subCategories:(e.data.sub_categories||[]).map(m)}:{}},formatFaqsCategory:v,formatHealthTool:c,formatHealthToolTypeCategory:function(e){var i,o;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(o=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((function(e){return c(e)})))&&void 0!==o?o:[]}:{}},formatCommunity:p,formatTopic:_,formatExpertAnswer:g,formatPost:f,formatPostPagination:function(e){return e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{}},formatNotification:function(e){var i,o,t;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(i=e.from_user)||void 0===i?void 0:i.name,id:null===(o=e.from_user)||void 0===o?void 0:o.id,avatar:null===(t=e.from_user)||void 0===t?void 0:t.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:function(e){return e?e.map((function(e){return{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}})):[]},formatOvulationInfo:y,formatSuggestedArticle:function(e){return e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{}},formatTopicHealthTool:function(e){return e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{}},formatComment:w,formatReportedPostToPostDetail:function(e){return e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{}},formatTopicSubot:function(e){return e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{}},formatSiteWideBanner:function(e,i){return void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:i||"other"}:null},formatPWGContent:function(e){return e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?d(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{}},formatUserProfileUrl:h,formatTHRContent:function(e){return e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?d(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{}},formatBabyGrowthContent:function(e){var i,o,t;return e&&e.information?{information:null!==(i=e.information.map((function(e){return{title:e.title,description:e.description}})))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(o=e.reviewed_by)||void 0===o?void 0:o.display_name)||(null===(t=e.reviewed_by)||void 0===t?void 0:t.name)||"",date:e.reviewed_date||"",link:h(null==e?void 0:e.reviewed_by)},metaTag:e.meta_tag||"",title:e.title||"",description:e.description||"",disclaimer:e.disclaimer||"",is_sponsored:e.is_sponsored||!1,sponsor:e.sponsor,featuredImage:e.featured_image||""}:{}}});exports.Popup=function(e){var o=e.type,t=void 0===o?"lead":o,l=e.closeIcon,r=e.isOpen,a=void 0===r||r,d=e.onClose,u=e.children,s=e.className,m=void 0===s?"":s,v=e.enableAnimation,c=void 0===v||v;return n.default.createElement(n.default.Fragment,null,n.default.createElement(i.StyledPopup$2,{"data-open":a,"data-type":t,"data-animation":c},n.default.createElement("div",{className:"".concat(m||""," popup-content")},!!l&&n.default.createElement("div",{className:"close-button",onClick:d},l),u)),n.default.createElement(i.StyledPopupWrapper,{"data-open":a,onClick:d}))},exports.dataTransform=b,exports.formatArticle=a,exports.formatComment=w,exports.formatCommunity=p,exports.formatOvulationInfo=y,exports.formatPost=f,exports.formatTopic=_,exports.formatUserProfileUrl=h;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var i,a,e,n,t;!function(i){i.Boy="boy",i.Girl="girl"}(i||(i={})),function(i){i[i.Weight=0]="Weight",i[i.Height=1]="Height",i[i.Head=2]="Head",i[i.BMI=3]="BMI"}(a||(a={})),function(i){i[i.Weekly=0]="Weekly",i[i.Monthly=1]="Monthly",i[i.Yearly=2]="Yearly"}(e||(e={})),function(i){i[i.Weight=0]="Weight",i[i.Height=1]="Height",i[i.Head=2]="Head",i[i.BMI=3]="BMI",i[i.Record=4]="Record"}(n||(n={})),function(i){i.Vietnam="vi-VN",i.Indonesia="id-ID",i.Malaysia="ms-MY",i.Cambodia="km-KH",i.PhilippinesEnglish="en-PH",i.PhilippinesTagalog="tl-PH",i.Thailand="th-TH",i.Myanmar="my-MM",i.Taiwan="zh-TW",i.India="hi-IN"}(t||(t={}));export{a as B,i as G,t as L,e as a,n as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r=function(r){var a=String(r);if(r>=1e3){for(var e=Math.floor((""+r).length/3),t=void 0,i=2;i>=1;i--){if(((t=parseFloat((0!=e?r/Math.pow(1e3,e):r).toPrecision(i)))+"").replace(/[^a-zA-Z 0-9]+/g,"").length<=2)break}t&&t%1!=0&&(t=t.toFixed(1)),a=t+["","k","m","b","t"][e]}return a},a=function(r){return r?{id:r.id,name:r.name,icon:r.fruit_icon}:{}};export{r as a,a as f};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"react";import{as as i,at as o}from"./index.styled-595af74e.js";import{_ as n}from"./tslib.es6-b69f86ce.js";var t=function(n){var t=n.type,l=void 0===t?"lead":t,r=n.closeIcon,a=n.isOpen,d=void 0===a||a,u=n.onClose,s=n.children,m=n.className,v=void 0===m?"":m,c=n.enableAnimation,p=void 0===c||c;return e.createElement(e.Fragment,null,e.createElement(i,{"data-open":d,"data-type":l,"data-animation":p},e.createElement("div",{className:"".concat(v||""," popup-content")},!!r&&e.createElement("div",{className:"close-button",onClick:u},r),s)),e.createElement(o,{"data-open":d,onClick:u}))},l=function(e){return e?{displayName:e.display_name||null,avatar:e.avatar||null,thumbnailAvatar:e.avatar_thumbnail||null,profileUrl:e.profile_url||null,description:e.description||null,metaTag:e.meta_tag||"",specialty:e.specialty||"",organisation:e.organisation||""}:{}},r=function(e){return e?{id:e.ID||null,name:e.name||null,specialty:e.specialty||null,avatar:e.avatar||null,permalink:e.permalink||null,thumbnailAvatar:e.avatar_thumbnail||null}:{}},a=function(e){var i,o,t,a;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?u(e.sponsor):null,isSponsored:e.is_sponsored||null,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:l(e.author),reviewer:e.reviewed_by&&l(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?n(n({},null==e?void 0:e.reviewed),{author:d(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.author),editor:d(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.editor),expert:d(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.expert),fact_check:d(null===(a=null==e?void 0:e.reviewed)||void 0===a?void 0:a.fact_check)}):null,category:m(e.category),postContent:e.post_content||null,sections:e.sections||null,categories:(e.categories||[]).map(m),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:r(e.expert),metaTag:e.meta_tag||null}:{}},d=function(e){return void 0!==e&&e?n(n({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?"/expert/".concat(null==e?void 0:e.slug):"/author/".concat(null==e?void 0:e.slug):e.profile_url}):null},u=function(e){return e?{title:e.title,logo:e.logo,link:e.link}:{}},s=function(e){return{postTitle:e.post_title,permalink:e.permalink}},m=function(e){var i,o;return e?{termId:e.term_id||null,sponsor:e.sponsor?u(e.sponsor):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(i=e.child_cates)||void 0===i?void 0:i.map((function(e){return m(e)})))||[],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(o=e.cat_parent)||void 0===o?void 0:o.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?s(e.reviewed_by):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((function(e){return v(e)})):null}:{}},v=function(e){return{title:e.title,content:e.content}},c=function(e){return e?{icon:e.icon,link:e.link.startsWith("http")?e.link:"/health-tools"+e.link,subtitle:e.subtitle,title:e.title}:{}},p=function(e){return e?{topicCount:e.topics_count||0,postCount:e.posts_count||0,memberCount:e.members_count||0,thumbnail:e.thumbnail||"",coverImage:e.cover_image||"",mobileCoverImage:e.mobile_cover_image||"",name:e.name||"",description:e.description||"",slug:e.slug||"",id:e.id||0,joined:Boolean(e.joined),isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},_=function(e){var i,o,n,t;return e?{id:e.id||0,name:e.name||"",image:e.thumbnail||"",slug:e.slug||"",url:"/"+(null===(i=e.community)||void 0===i?void 0:i.slug)+"/"+(null==e?void 0:e.slug)||"",description:e.description||"",joined:e.joined||!1,postCount:e.count_posts||0,memberCount:e.count_members||0,communityId:String(null===(o=e.community)||void 0===o?void 0:o.id),communitySlug:null===(n=e.community)||void 0===n?void 0:n.slug,communityName:null===(t=e.community)||void 0===t?void 0:t.name,order:e.order||0,isActive:null===e.is_active||void 0===e.is_active||Boolean(e.is_active),mappedCategoryId:e.mapped_category_id||0,discoverCategory:e.discover_category?{categoryId:e.discover_category.category_id||0,name:e.discover_category.name||""}:null,isHidden:Boolean(e.is_hidden)}:{}},g=function(e){return e?{answer:null==e?void 0:e.answer.map(w),expert:null==e?void 0:e.expert}:{}},f=function(e){var i,o,n,t,l,r,a,d,u,s,m,v,c,p,_,f,y,w,h,b,k;return e?{id:e.id,topics:(null===(i=e.topics)||void 0===i?void 0:i.map((function(i){var o,n,t,l;return{id:i.id||0,name:i.name||"",slug:i.slug||"",url:"/"+(null===(o=e.community)||void 0===o?void 0:o.slug)+"/"+i.slug,communityId:String(null===(n=e.community)||void 0===n?void 0:n.id),communitySlug:(null===(t=e.community)||void 0===t?void 0:t.slug)||"",communityName:(null===(l=e.community)||void 0===l?void 0:l.name)||"",isHidden:Boolean(i.is_hidden),isActive:!0}})))||[],community:{id:(null===(o=e.community)||void 0===o?void 0:o.id)||0,name:(null===(n=e.community)||void 0===n?void 0:n.name)||"",slug:(null===(t=e.community)||void 0===t?void 0:t.slug)||"",isActive:!0,isHidden:Boolean(null===(l=e.community)||void 0===l?void 0:l.is_hidden)},slug:e.slug||"",author:{id:(null===(r=e.user)||void 0===r?void 0:r.id)||0,username:(null===(a=e.user)||void 0===a?void 0:a.user_name)||"",email:(null===(d=e.user)||void 0===d?void 0:d.email)||"",name:(null===(u=e.user)||void 0===u?void 0:u.name)||"",avatar:(null===(s=e.user)||void 0===s?void 0:s.avatar)||"",role:(null===(m=e.user)||void 0===m?void 0:m.role)?null===(c=null===(v=e.user)||void 0===v?void 0:v.role)||void 0===c?void 0:c.toLowerCase():"",type:(null===(p=e.user)||void 0===p?void 0:p.type)||"",partnerId:(null===(_=e.user)||void 0===_?void 0:_.partner_id)?String(null===(f=e.user)||void 0===f?void 0:f.partner_id):"",title:(null===(y=e.user)||void 0===y?void 0:y.title)||"",doctorId:(null===(w=e.user)||void 0===w?void 0:w.doctor_id)?String(null===(h=e.user)||void 0===h?void 0:h.doctor_id):"",hospitalId:(null===(b=e.user)||void 0===b?void 0:b.hospital_id)?String(null===(k=e.user)||void 0===k?void 0:k.hospital_id):""},previewUrl:{title:e.preview_title||"",url:e.preview_link||"",image:e.preview_image||"",description:e.preview_description||""},createdAt:e.created_at||"",scheduleDateTime:e.schedule_datetime||"",photos:e.images||[],description:e.description||"",commentsCount:e.comments_count||0,likesCount:e.likes_count||0,title:e.name||"",isPin:!!e.is_pin,pinDate:e.pin_date||"",liked:e.liked||!1,bookmarked:Boolean(e.bookmarked)||!1,mentions:e.mentions||[],commented:Boolean(e.commented)||!1,introUrl:e.intro_url||"",bannerImage:e.banner_image||"",isAnonymous:e.is_anonymous?1:0,isAskDoctor:e.is_question?1:0,expertAnswer:g(null==e?void 0:e.expert_answer),createdTime:e.created_time||""}:{}},y=function(e){return e?{disclaimer:e.disclaimer,featuredImage:e.featured_image,info:e.informations||[],reviewedBy:e.reviewed_by?{id:e.reviewed_by.ID,permalink:e.reviewed_by.permalink,name:e.reviewed_by.name,postTitle:e.reviewed_by.post_title}:null,reviewedDate:e.reviewed_date}:{}},w=function(e){var i,o,n,t,l,r,a,d,u,s,m,v,c,p,_,g,f,y,h,b,k,I,C,S,T,x,A,B,P,D,q,N;return e?{content:e.content,countLikes:e.likes_count,countReplies:e.replies_count,createdAt:e.created_at,createdTime:e.created_time,id:String(e.id),images:e.image||[],link:e.link||null,replies:e.replies&&e.replies.length>0?e.replies.map(w):[],author:{id:(null===(i=e.user)||void 0===i?void 0:i.id)||0,username:(null===(o=e.user)||void 0===o?void 0:o.user_name)||"",name:(null===(n=e.user)||void 0===n?void 0:n.name)||"",role:(null===(t=e.user)||void 0===t?void 0:t.role)?null===(r=null===(l=e.user)||void 0===l?void 0:l.role)||void 0===r?void 0:r.toLowerCase():"",avatar:(null===(a=e.user)||void 0===a?void 0:a.avatar)||"",type:(null===(d=e.user)||void 0===d?void 0:d.type)||"",email:(null===(u=e.user)||void 0===u?void 0:u.email)||"",partnerId:(null===(s=e.user)||void 0===s?void 0:s.partner_id)?String(null===(m=e.user)||void 0===m?void 0:m.partner_id):"",title:(null===(v=e.user)||void 0===v?void 0:v.title)||"",doctorId:(null===(c=e.user)||void 0===c?void 0:c.doctor_id)?String(null===(p=e.user)||void 0===p?void 0:p.doctor_id):"",hospitalId:(null===(_=e.user)||void 0===_?void 0:_.hospital_id)?String(null===(g=e.user)||void 0===g?void 0:g.hospital_id):""},liked:!!e.liked,mentionedUser:e.mentioned?{id:(null===(f=e.mentioned)||void 0===f?void 0:f.id)||0,username:(null===(y=e.mentioned)||void 0===y?void 0:y.user_name)||"",name:(null===(h=e.mentioned)||void 0===h?void 0:h.name)||"",role:(null===(b=e.mentioned)||void 0===b?void 0:b.role)?null===(I=null===(k=e.mentioned)||void 0===k?void 0:k.role)||void 0===I?void 0:I.toLowerCase():"",avatar:(null===(C=e.mentioned)||void 0===C?void 0:C.avatar)||"",type:(null===(S=e.mentioned)||void 0===S?void 0:S.type)||"",email:(null===(T=e.mentioned)||void 0===T?void 0:T.email)||"",partnerId:(null===(x=e.mentioned)||void 0===x?void 0:x.partner_id)?String(null===(A=e.mentioned)||void 0===A?void 0:A.partner_id):"",doctorId:(null===(B=e.mentioned)||void 0===B?void 0:B.doctor_id)?String(null===(P=e.mentioned)||void 0===P?void 0:P.doctor_id):"",hospitalId:(null===(D=e.mentioned)||void 0===D?void 0:D.hospital_id)?String(null===(q=e.mentioned)||void 0===q?void 0:q.hospital_id):"",title:(null===(N=e.mentioned)||void 0===N?void 0:N.title)||""}:null,mentions:e.mentions||[]}:{}},h=function(e){return void 0!==e&&e?(null==e?void 0:e.turn_off_profile)?"":(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?"/expert/".concat(null==e?void 0:e.slug):"/author/".concat(null==e?void 0:e.slug):(null==e?void 0:e.profile_url)||(null==e?void 0:e.permalink)||"#":""},b=Object.freeze({__proto__:null,formatAuthor:l,formatArticleExpert:r,formatArticle:a,formatUserProfile:d,formatBMIResult:function(e){var i,o,n,t,l,r,a,d,u;return e&&e.status?{status:null==e?void 0:e.status,comparison:null!==(i=null==e?void 0:e.comparison)&&void 0!==i?i:"",assessmentData:[{tab:"tools.condition",content:null!==(o=null==e?void 0:e.condition)&&void 0!==o?o:""},{tab:"tools.risks",content:null!==(n=null==e?void 0:e.risk)&&void 0!==n?n:""},{tab:"tools.suggestion",content:null!==(t=null==e?void 0:e.suggestion)&&void 0!==t?t:""}],chartData:(null===(l=null==e?void 0:e.chart_data)||void 0===l?void 0:l.length)>0?null==e?void 0:e.chart_data:[],disclaimer:null!==(r=null==e?void 0:e.disclaimer)&&void 0!==r?r:"",illustrator:null!==(a=null==e?void 0:e.illustrator)&&void 0!==a?a:"",faqs:null!==(d=null==e?void 0:e.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(u=null==e?void 0:e.suggested_articles_link)&&void 0!==u?u:""}:{}},formatSponsor:u,formatReviewedCategory:s,formatCategory:m,formatCategoryApi:function(e){return e?{categoryInfo:m(e.data.category)||null,explainersPosts:(e.data.explainers_posts||[]).map(a),subCategories:(e.data.sub_categories||[]).map(m)}:{}},formatFaqsCategory:v,formatHealthTool:c,formatHealthToolTypeCategory:function(e){var i,o;return e?{termId:(null==e?void 0:e.term_id)||0,name:(null==e?void 0:e.name)||"",healthTools:null!==(o=null===(i=null==e?void 0:e.health_tools)||void 0===i?void 0:i.map((function(e){return c(e)})))&&void 0!==o?o:[]}:{}},formatCommunity:p,formatTopic:_,formatExpertAnswer:g,formatPost:f,formatPostPagination:function(e){return e?{currentPage:e.current||0,lastPage:e.last||0,total:e.total_items||0}:{}},formatNotification:function(e){var i,o,n;return e?{time:e.created_at,content:e.content,postId:String(e.post_id),fromUser:{name:null===(i=e.from_user)||void 0===i?void 0:i.name,id:null===(o=e.from_user)||void 0===o?void 0:o.id,avatar:null===(n=e.from_user)||void 0===n?void 0:n.avatar},toUserId:String(e.to_user_id),postSlug:e.post_slug||"",communitySlug:e.community_slug||""}:{}},formatSpotlightsList:function(e){return e?e.map((function(e){return{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image),imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}})):[]},formatOvulationInfo:y,formatSuggestedArticle:function(e){return e?{postId:e.post_id||null,categoryId:e.category_id||null,postUrl:e.post_url||null,postReviewed:e.post_reviewed||null,postPageviews:e.post_pageviews||null,postRank:e.post_rank||null,isPin:e.is_pin||null,frequency:e.frequency||null,topic:e.topic||null}:{}},formatTopicHealthTool:function(e){return e?{id:e.tool_id||null,topicFrequency:e.frequency||null,topicId:e.topic_id||null,topicName:e.topic_name||null,isPinned:!!e.is_pin||null,toolLink:e.tool_link||""}:{}},formatComment:w,formatReportedPostToPostDetail:function(e){return e?{name:e.title,description:e.description,images:e.images,likes_count:e.count_likes,comments_count:e.count_comments,topics:[],slug:e.post_slug,id:e.post_id,is_pin:e.is_pin,pin_date:"",post_type:e.post_type,schedule_datetime:e.schedule_datetime,is_active:e.is_active,preview_title:e.preview_title||"",preview_image:e.preview_image||"",preview_description:e.preview_description||"",preview_link:e.preview_link||"",user:e.user,created_at:"",created_time:"",community:{id:e.community_id,name:e.community_name,slug:e.community_slug,description:""}}:{}},formatTopicSubot:function(e){return e?{chatBotId:e.subot_id,isPinned:e.is_pin,topicId:e.topic_id,topicFrequency:e.frequency}:{}},formatSiteWideBanner:function(e,i){return void 0!==e&&e?{content:(null==e?void 0:e.content)||"",icon:(null==e?void 0:e.icon)||"",type:i||"other"}:null},formatPWGContent:function(e){return e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?d(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{}},formatUserProfileUrl:h,formatTHRContent:function(e){return e?{disclaimer:e.disclaimer,info:e.info||[],reviewedBy:e.reviewed_by?d(e.reviewed_by):null,reviewedDate:e.reviewed_date,metaTag:e.meta_tag}:{}},formatBabyGrowthContent:function(e){var i,o,n;return e&&e.information?{information:null!==(i=e.information.map((function(e){return{title:e.title,description:e.description}})))&&void 0!==i?i:[],reviewBy:{reviewer:(null===(o=e.reviewed_by)||void 0===o?void 0:o.display_name)||(null===(n=e.reviewed_by)||void 0===n?void 0:n.name)||"",date:e.reviewed_date||"",link:h(null==e?void 0:e.reviewed_by)},metaTag:e.meta_tag||"",title:e.title||"",description:e.description||"",disclaimer:e.disclaimer||"",is_sponsored:e.is_sponsored||!1,sponsor:e.sponsor,featuredImage:e.featured_image||""}:{}}});export{t as P,y as a,p as b,f as c,b as d,a as e,h as f,_ as g,w as h};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as a,_ as e}from"./tslib.es6-b69f86ce.js";import r,{forwardRef as t}from"react";var c=function(c,s){return t((function(t,n){var o=t.className,m=a(t,["className"]);return r.createElement(c,e({ref:n,className:"".concat(s," ").concat(o||"")},m))}))};export{c as g};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as t,d as n}from"./tslib.es6-b69f86ce.js";import{g as e}from"./core-790ff01f.js";import{c as r}from"./routing-f8e1a31f.js";var i=function(t,n){var e,r;if(!t)return{};var i="tl-PH"===n?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(e=t.link)||void 0===e?void 0:e.startsWith("http"))?t.link:"".concat(i,"/health-tools")+(null===(r=t.link)||void 0===r?void 0:r.replace("".concat(i,"/"),"/")),subtitle:t.subtitle,title:t.title}},o=function(e){return t(void 0,void 0,void 0,(function(){var t,o,s,l,a,u,c;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,8,,9]),"undefined"==typeof window?[3,1]:(t=window.fetch,[3,3]);case 1:return[4,require("node-fetch")];case 2:t=n.sent(),n.label=3;case 3:o="tl-PH"===e?"lang=fil":"",s=[],n.label=4;case 4:return n.trys.push([4,6,,7]),[4,t("".concat(r(e),"/wp-json/api/healthtools?ismenu=0").concat(o?"&"+o:"")).then((function(t){return t.json()}))];case 5:return l=n.sent(),s=(null===(c=null===(u=null==l?void 0:l.data)||void 0===u?void 0:u.map)||void 0===c?void 0:c.call(u,(function(t){return i(t,e)})))||[],[3,7];case 6:return n.sent(),[3,7];case 7:return[2,s];case 8:return a=n.sent(),console.error(a),[3,9];case 9:return[2]}}))}))},s=function(r){return t(void 0,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,e("all-health-tools",(function(){return o(r||"en-PH")}),(function(t){return!!(null==t?void 0:t.length)}),6e4)];case 1:return[2,t.sent()||[]]}}))}))};export{s as a,i as f,o as g};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as n,b as e,_ as o,c as t,d as r}from"./tslib.es6-b69f86ce.js";import i,{useContext as a,useState as l,useRef as s,useEffect as c,useMemo as d,createContext as m,useCallback as p}from"react";import{useInterval as u,useCounter as g}from"@mantine/hooks";import{H as b}from"./index.styled-3378ccd7.js";import{B as h}from"./index-6a6f20ad.js";import"./gAssets.js";import"./index.styled-8fd96e97.js";import{c as f}from"./index-8f4f63dd.js";import{M as x}from"./utils-2e243b91.js";import{t as E}from"./theme-464b14d4.js";import{Container as y,Input as v}from"@mantine/core";import"./index.styled-761eb232.js";import{u as w}from"./useTranslations-6cb7ed0e.js";import"./index-35e03c70.js";import"lodash/debounce";import"./isProduction-6c567518.js";import{L as P}from"./index-cdb6a5f7.js";import"dayjs";import"./screenSizeContext-4689e2da.js";import k from"styled-components";import{L as S}from"./Locale-3d2fa220.js";import"./translationsContext-d90a2ee3.js";import"string-format";import{useForm as C,yupResolver as M}from"@mantine/form";import{e as j,O as T,D as I,R as N}from"./index-265922ac.js";import*as z from"yup";import L from"lodash/throttle";import{T as B}from"./index-95f279e4.js";import{P as O}from"./index-1329846e.js";import"./index-1ee9c34b.js";import{format as F}from"date-fns";import{V as D}from"./Visible-32ac189a.js";var V,H,U,q,R,A,_,W,Y=k.div(V||(V=n([""],[""]))),K=k(B)(H||(H=n(["\n margin-top: 8px;\n"],["\n margin-top: 8px;\n"]))),Z=k.div(U||(U=n(["\n margin-top: 70px;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"],["\n margin-top: 70px;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"]))),G=k(y)(q||(q=n(["\n &.hhg-comp-onboarding-container.hhg-comp-onboarding-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n height: 100%;\n width: 100%;\n max-width: 520px;\n }\n .header {\n margin-bottom: 32px;\n text-align: center;\n "," {\n margin-bottom: 16px;\n }\n }\n\n .input-control {\n width: 100%;\n\n label {\n font-size: 12px;\n line-height: 18px;\n font-weight: 600;\n margin-bottom: 6px;\n }\n\n input {\n height: 42px;\n line-height: 42px;\n font-size: 14px;\n }\n }\n .radio-group,\n .input-control {\n margin-bottom: 16px;\n }\n .form {\n width: 100%;\n }\n\n .form-error {\n margin-top: 32px;\n font-size: 14px;\n }\n\n .field-error {\n margin-top: 10px;\n font-size: 14px;\n }\n\n .form-button {\n width: 100%;\n }\n"],["\n &.hhg-comp-onboarding-container.hhg-comp-onboarding-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n height: 100%;\n width: 100%;\n max-width: 520px;\n }\n .header {\n margin-bottom: 32px;\n text-align: center;\n "," {\n margin-bottom: 16px;\n }\n }\n\n .input-control {\n width: 100%;\n\n label {\n font-size: 12px;\n line-height: 18px;\n font-weight: 600;\n margin-bottom: 6px;\n }\n\n input {\n height: 42px;\n line-height: 42px;\n font-size: 14px;\n }\n }\n .radio-group,\n .input-control {\n margin-bottom: 16px;\n }\n .form {\n width: 100%;\n }\n\n .form-error {\n margin-top: 32px;\n font-size: 14px;\n }\n\n .field-error {\n margin-top: 10px;\n font-size: 14px;\n }\n\n .form-button {\n width: 100%;\n }\n"])),x.mbDown),J=k.img(R||(R=n(["\n margin-bottom: 38px;\n"],["\n margin-bottom: 38px;\n"]))),Q=function(n){var t,r=n.heading,l=n.description,s=n.children,c=n.className,d=n.imgSrc,m=e(n,["heading","description","children","className","imgSrc"]),p=a(Ln),u=p.isMarryBaby,g=p.siteType;return i.createElement(G,o({},m,{className:"hhg-comp-onboarding-container ".concat(c),size:"sm"}),i.createElement(f,{type:u?g:(null===(t=P[process.env.UNIFY_LOCALE])||void 0===t?void 0:t.LOGO_TYPE)||"hellobacsi"}),i.createElement(Z,null,d&&i.createElement(J,{src:d,loading:"lazy"}),i.createElement(Y,{className:"header"},i.createElement(b,{tag:"h3"},r),i.createElement(K,{size:"p3",color:E.colors.gray600},l)),s))},X=function(n){return z.object().shape({phone:z.string().required(n("onboarding.updatePhone.error")).default("")})},$=function(n){return z.object().shape({otp:z.string().required(n("onboarding.otpForm.error")).length(6,n("onboarding.otpForm.error")).default("")})},nn=function(n){return z.object().shape({email:z.string().required(n("onboarding.errorMessage.requiredEmail")).email(n("onboarding.errorMessage.invalidEmail")).default(""),name:z.string().required(n("onboarding.errorMessage.requiredName"))})},en=function(n){return z.object().shape({password:z.string().required(n("onboarding.errorMessage.requiredPassword")).min(8,n("onboarding.errorMessage.minLength",{length:8})).matches(/.*[A-Z].*/,n("onboarding.errorMessage.passWithPattern")).default(""),confirmPassword:z.string().required(n("onboarding.errorMessage.requiredConfirmPassword")).oneOf([z.ref("password"),null],n("onboarding.errorMessage.passNotMatch")).default("")})},on=k(Q)(A||(A=n(["\n .phone-input {\n width: 100%;\n margin-bottom: 32px;\n "," {\n margin-bottom: 16px;\n }\n .PhoneInput {\n margin-bottom: 16px;\n }\n .PhoneInputCountry {\n border-radius: 4px 0 0 4px;\n }\n .PhoneInputInput {\n border-radius: 0 4px 4px 0;\n }\n }\n"],["\n .phone-input {\n width: 100%;\n margin-bottom: 32px;\n "," {\n margin-bottom: 16px;\n }\n .PhoneInput {\n margin-bottom: 16px;\n }\n .PhoneInputCountry {\n border-radius: 4px 0 0 4px;\n }\n .PhoneInputInput {\n border-radius: 0 4px 4px 0;\n }\n }\n"])),x.mbDown),tn=((_={})[S.Vietnam]="VN",_[S.Cambodia]="KH",_[S.Indonesia]="ID",_[S.Malaysia]="MY",_[S.PhilippinesEnglish]="PH",_[S.PhilippinesTagalog]="PH",_[S.Taiwan]="TW",_[S.Thailand]="TH",_[S.Myanmar]="MM",_),rn=function(n){var e=n.onClose,a=n.onSubmit,l=n.canSkip,s=void 0===l||l,c=n.customFormTexts,d=w().t,m=C({initialValues:{phone:""},validate:M(X(d))});return i.createElement(on,{heading:(null==c?void 0:c.heading)||d("onboarding.updatePhone.heading"),description:(null==c?void 0:c.description)||d("onboarding.updatePhone.description")},i.createElement("form",{onSubmit:m.onSubmit((function(n){return t(void 0,void 0,void 0,(function(){return r(this,(function(e){return a(n.phone),[2]}))}))}),(function(n){console.log(n)}))},i.createElement("div",{className:"phone-input"},i.createElement(j,o({defaultCountry:tn[process.env.UNIFY_LOCALE]||"VN"},m.getInputProps("phone"))),i.createElement(v.Error,null,m.errors.phone)),i.createElement(h,{color:"primary",isBlock:!0,size:"lg",type:"submit","data-event-category":"Sign Up","data-event-action":"Update Phone Number","data-event-label":"undefined"!=typeof window?window.location.href:"",className:"pointer-event-child-none"},d("onboarding.button.continue")),s&&i.createElement(h,{color:"ghost",isBlock:!0,size:"lg",onClick:e,type:"button"},d("onboarding.button.skip"))))};(W={})[S.Vietnam]="VN",W[S.Cambodia]="KH",W[S.Indonesia]="ID",W[S.Malaysia]="MY",W[S.PhilippinesEnglish]="PH",W[S.PhilippinesTagalog]="PH",W[S.Taiwan]="TW",W[S.Thailand]="TH",W[S.Myanmar]="MM";var an,ln,sn,cn,dn,mn,pn,un,gn,bn,hn,fn,xn=function(n){void 0===n&&(n="");var e=n.indexOf("@"),o=n.substring(0,e),t=o.length>3?3:o.length;return n.replace(n.substring(t,e),n.slice(t,e).replace(/./g,"x"))},En=k(Q)(an||(an=n(["\n .otp-input {\n margin-bottom: 36px;\n "," {\n margin-bottom: 20px;\n }\n .otpContainer {\n margin-bottom: 16px;\n }\n }\n .resend {\n display: flex;\n gap: 6px;\n margin-bottom: 32px;\n "," {\n margin-bottom: 16px;\n }\n a {\n text-decoration: underline;\n cursor: pointer;\n }\n }\n .phone-description {\n margin-left: 2px;\n margin-top: 2px;\n }\n .otp-description-edit-icon {\n cursor: pointer;\n vertical-align: bottom;\n /* height: 100%; */\n margin-bottom: 3px;\n margin-left: 3px;\n }\n"],["\n .otp-input {\n margin-bottom: 36px;\n "," {\n margin-bottom: 20px;\n }\n .otpContainer {\n margin-bottom: 16px;\n }\n }\n .resend {\n display: flex;\n gap: 6px;\n margin-bottom: 32px;\n "," {\n margin-bottom: 16px;\n }\n a {\n text-decoration: underline;\n cursor: pointer;\n }\n }\n .phone-description {\n margin-left: 2px;\n margin-top: 2px;\n }\n .otp-description-edit-icon {\n cursor: pointer;\n vertical-align: bottom;\n /* height: 100%; */\n margin-bottom: 3px;\n margin-left: 3px;\n }\n"])),x.mbDown,x.mbDown),yn=function(n){var e=n.onSubmit,m=n.phone,p=n.email,b=n.onResendCode,f=n.otpError,x=n.onClose,y=n.loading,P=n.onBack,k=n.canSkip,S=n.outOfEdit,j=a(Ln),I=j.siteType,N=j.isMarryBaby,z=l(30),O=z[0],F=z[1],D=u((function(){return F((function(n){return n-1}))}),1e3),V=g(0,{min:0,max:3}),H=V[0],U=V[1],q=s(!0),R=w().t;c((function(){return D.start(),D.stop}),[]),c((function(){0===O&&(D.stop(),q.current=!1)}),[O]);var A=C({initialValues:{otp:""},validate:M($(R))});c((function(){f&&A.setFieldError("otp",f)}),[f]);var _=d((function(){return L((function(){q.current||(U.increment(),F(30),null==b||b(m||p),D.start(),q.current=!0)}),1e3,{trailing:!1})}),[m,p,b,D]);return i.createElement(En,{heading:R("onboarding.otpForm.heading"),description:i.createElement(i.Fragment,null,i.createElement("span",{dangerouslySetInnerHTML:{__html:m?R("onboarding.otpForm.description",{phone:'<b style="color:'.concat(E.colors.gray800,'">').concat(m.slice(0,-3).replace(/./g,"x").concat(m.slice(-3)),"</b>")}):R("onboarding.otpForm.descriptionEmail",{email:'<b style="color:'.concat(E.colors.gray800,'">').concat(xn(p),"</b>")})}}),!S&&i.createElement("svg",{onClick:function(){null==P||P()},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"otp-description-edit-icon"},i.createElement("path",{d:"M12.7812 1.33337C12.2987 1.33337 11.8162 1.51712 11.4479 1.88546L10.6667 2.66671L13.3333 5.33337L14.1146 4.55212C14.8506 3.81612 14.8506 2.62212 14.1146 1.88546C13.7463 1.51712 13.2638 1.33337 12.7812 1.33337ZM9.66667 3.66671L2 11.3334V14H4.66667L12.3333 6.33337L9.66667 3.66671Z",fill:"#ADB3BC"})))},i.createElement("form",{onSubmit:A.onSubmit((function(n){return t(void 0,void 0,void 0,(function(){return r(this,(function(o){return U.increment(),e(n.otp),[2]}))}))}),(function(n){console.log(n)}))},i.createElement("div",{className:"otp-input"},i.createElement(T,o({enterKeyHint:void 0,nonce:void 0},A.getInputProps("otp"))),i.createElement(v.Error,null,A.errors.otp)),i.createElement("div",{className:"resend"},i.createElement(B,{size:"p4",color:E.colors.gray400},R("onboarding.otpForm.notReceiveOTP")),i.createElement(B,{as:"a",size:"p4",color:N?E.mbColors.pink:E.colors.primaryBase,onClick:_},R("onboarding.otpForm.resendCode",{seconds:O}))),i.createElement(h,{theme:I,color:"primary",isBlock:!0,size:"lg",type:"submit",isLoading:y,disabled:y,"data-event-category":"Sign Up","data-event-action":"Confirm Phone Number","data-event-label":"undefined"!=typeof window?window.location.href:"",className:"pointer-event-child-none"},R("onboarding.button.continue")),k&&H>=3&&i.createElement(h,{theme:I,color:"ghost",isBlock:!0,size:"lg",onClick:x,type:"button"},R("onboarding.button.skip"))))},vn=function(n){var e=n.onClose,t=n.onSubmit,r=n.canSkip,l=n.loading,s=n.errorMessage,d=n.initialData,m=w().t,p=a(Ln).siteType,u=C({validate:M(nn(m))});return c((function(){u.setValues(o(o({gender:"0"},d),(null==d?void 0:d.birthday)&&{birthday:new Date(d.birthday)}))}),[d]),c((function(){s&&u.setFieldError("email",s)}),[s]),i.createElement(Q,{heading:m("onboarding.formEmail.heading"),description:m("onboarding.formEmail.description")},i.createElement("form",{className:"form",onSubmit:u.onSubmit((function(n){t(o(o({},n),{birthday:n.birthday&&F(n.birthday,"yyyy-MM-dd")}))}),(function(n){console.log({fieldErrors:n})}))},i.createElement(v.Wrapper,{label:m("onboarding.formEmail.yourName"),className:"input-control",withAsterisk:!0},i.createElement(v,o({},u.getInputProps("name"))),i.createElement(v.Error,{className:"field-error"},u.errors.name)),i.createElement(v.Wrapper,{label:m("onboarding.formEmail.yourEmail"),className:"input-control",withAsterisk:!0},i.createElement(v,o({},u.getInputProps("email"))),i.createElement(v.Error,{className:"field-error"},u.errors.email)),i.createElement(I,o({className:"input-control",label:m("onboarding.formEmail.yourBirthday")},u.getInputProps("birthday"))),i.createElement(N.Group,{value:u.values.gender,onChange:function(n){return u.setFieldValue("gender",n)},className:"radio-group"},i.createElement(N,{value:"0",label:m("onboarding.formEmail.genderMale")}),i.createElement(N,{value:"1",label:m("onboarding.formEmail.genderFemale")})),i.createElement(h,{color:"primary",isBlock:!0,size:"lg",type:"submit",theme:p,isLoading:l,disabled:l},m("onboarding.button.continue")),r&&i.createElement(h,{theme:p,color:"ghost",isBlock:!0,size:"lg",onClick:e},m("onboarding.button.skip"))))},wn=function(n){var e=n.onClose,t=n.onSubmit,r=n.canSkip,a=n.errorMessage,l=n.loading,s=w().t,c=C({initialValues:{password:"",confirmPassword:""},validate:M(en(s))});return i.createElement(Q,{heading:s("onboarding.updatePassword.heading"),description:s("onboarding.updatePassword.description")},i.createElement("form",{className:"form",onSubmit:c.onSubmit((function(n){return t((null==n?void 0:n.password)||"")}),(function(n){console.log({fieldErrors:n})}))},i.createElement(O,o({label:s("onboarding.updatePassword.password"),withAsterisk:!0,rightSection:i.createElement(D,null)},c.getInputProps("password"))),i.createElement(O,o({label:s("onboarding.updatePassword.confirmPassword"),withAsterisk:!0,rightSection:i.createElement(D,null)},c.getInputProps("confirmPassword"))),i.createElement(h,{color:"primary",isBlock:!0,size:"lg",type:"submit",isLoading:l,disabled:l},s("onboarding.button.continue")),r&&i.createElement(h,{color:"ghost",isBlock:!0,size:"lg",onClick:e},s("onboarding.button.skip")),a&&i.createElement(v.Error,{className:"form-error"},a)))},Pn=k.div(ln||(ln=n(["\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 1000;\n background: white;\n overflow-y: auto;\n"],["\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 1000;\n background: white;\n overflow-y: auto;\n"]))),kn=k.div(sn||(sn=n(["\n height: 100%;\n "," {\n display: table;\n width: 100%;\n height: calc(100% - 25px);\n }\n"],["\n height: 100%;\n "," {\n display: table;\n width: 100%;\n height: calc(100% - 25px);\n }\n"])),x.lgPcUp),Sn=k.div(cn||(cn=n(["\n padding: 48px 24px 24px;\n\n "," {\n display: table-cell;\n\n &[data-has-banner='true'] {\n width: calc(100% - 640px);\n }\n }\n"],["\n padding: 48px 24px 24px;\n\n "," {\n display: table-cell;\n\n &[data-has-banner='true'] {\n width: calc(100% - 640px);\n }\n }\n"])),x.lgPcUp),Cn=k.div(dn||(dn=n(["\n width: 640px;\n padding: 16px 16px 0 16px;\n display: none;\n\n "," {\n width: 640px;\n display: table-cell;\n }\n"],["\n width: 640px;\n padding: 16px 16px 0 16px;\n display: none;\n\n "," {\n width: 640px;\n display: table-cell;\n }\n"])),x.lgPcUp),Mn=k.div(mn||(mn=n(["\n background-color: ",";\n border-radius: 12px;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n &[data-is-marry-baby='true'] {\n background-color: ",";\n }\n"],["\n background-color: ",";\n border-radius: 12px;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n &[data-is-marry-baby='true'] {\n background-color: ",";\n }\n"])),E.colors.blue50,E.mbColors.tonePink),jn=k.div(pn||(pn=n(["\n margin-top: 40px;\n padding: 24px 40px;\n"],["\n margin-top: 40px;\n padding: 24px 40px;\n"]))),Tn=k(b)(un||(un=n(["\n margin-bottom: 24px;\n text-align: center;\n"],["\n margin-bottom: 24px;\n text-align: center;\n"]))),In=k(B)(gn||(gn=n([""],[""]))),Nn=k.img(bn||(bn=n(["\n width: 100%;\n display: block;\n"],["\n width: 100%;\n display: block;\n"]))),zn=k.div(hn||(hn=n([""],[""])));!function(n){n[n.Phone=0]="Phone",n[n.OTP=1]="OTP",n[n.OTPEmail=2]="OTPEmail",n[n.PersonalInfo=3]="PersonalInfo",n[n.UpdatePassword=4]="UpdatePassword",n[n.Result=5]="Result"}(fn||(fn={}));var Ln=m({}),Bn=function(n){var a=n.onClose,s=n.canSkip,c=n.flow,d=void 0===c?[fn.Phone,fn.OTP]:c,m=n.step,u=n.onPhoneSubmit,b=n.onOtpSubmit,f=n.onPersonalInfoSubmit,x=n.onCreatePassByEmail,y=n.onResendCode,v=n.otpError,P=n.personalInfoError,k=n.createPassError,S=n.emailLoading,C=n.createPassLoading,M=n.otpLoading,j=n.customFormTexts,T=n.initialData,I=n.banner,N=n.resultScreenProps,z=n.siteType,L=e(n,["onClose","canSkip","flow","step","onPhoneSubmit","onOtpSubmit","onPersonalInfoSubmit","onCreatePassByEmail","onResendCode","otpError","personalInfoError","createPassError","emailLoading","createPassLoading","otpLoading","customFormTexts","initialData","banner","resultScreenProps","siteType"]),B=w().t,O=l(m||d[0]),F=O[0],D=O[1],V=l(""),H=V[0],U=V[1],q=l(""),R=q[0],A=q[1],_=g(0,{min:0,max:2}),W=_[0],Y=_[1],K=p((function(){var n=d.indexOf(F)+1;n<=d.length-1&&D(d[n])}),[F]),Z=p((function(){var n=d.indexOf(F)-1;n>=0&&D(d[n])}),[F]),G=function(n){return t(void 0,void 0,void 0,(function(){var e;return r(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,b(n)];case 1:return!o.sent()&&K(),[3,3];case 2:return e=o.sent(),console.error(e),[3,3];case 3:return[2]}}))}))},J=function(){W>=2||(Y.increment(),Z())},X="marryBaby"===z;return console.log({isMarryBaby:X}),i.createElement(Ln.Provider,{value:{siteType:z,isMarryBaby:X}},i.createElement(Pn,o({},L),d.length>0?i.createElement(kn,null,i.createElement(Sn,{"data-has-banner":"object"==typeof I},F===fn.Phone&&i.createElement(rn,{onClose:a,canSkip:s,onSubmit:function(n){return t(void 0,void 0,void 0,(function(){var e;return r(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),U(n),[4,null==u?void 0:u(n)];case 1:return o.sent(),K(),[3,3];case 2:return e=o.sent(),console.error(e),[3,3];case 3:return[2]}}))}))},customFormTexts:j.onboarding}),F===fn.OTP&&i.createElement(yn,{onClose:a,onSubmit:G,phone:H,onResendCode:y,otpError:v,loading:M,canSkip:s,onBack:J,outOfEdit:W>=2}),F===fn.OTPEmail&&i.createElement(yn,{onClose:a,onSubmit:G,onResendCode:y,otpError:v,loading:M,canSkip:s,onBack:J,outOfEdit:W>=2,email:R}),F===fn.PersonalInfo&&i.createElement(vn,{initialData:null==T?void 0:T[fn.PersonalInfo],onClose:a,canSkip:s,onSubmit:function(n){return t(void 0,void 0,void 0,(function(){var e;return r(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),A((null==n?void 0:n.email)||""),[4,null==f?void 0:f(n)];case 1:return!o.sent()&&K(),[3,3];case 2:return e=o.sent(),console.error(e),[3,3];case 3:return[2]}}))}))},errorMessage:P,loading:S}),F===fn.UpdatePassword&&i.createElement(wn,{onClose:a,canSkip:s,onSubmit:function(n){return t(void 0,void 0,void 0,(function(){var e;return r(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,null==x?void 0:x(n)];case 1:return o.sent(),!k&&K(),[3,3];case 2:return e=o.sent(),console.error(e),[3,3];case 3:return[2]}}))}))},errorMessage:k,loading:C}),F===fn.Result&&i.createElement(Q,o({},N),i.createElement(h,{theme:z,size:"lg",onClick:a,className:"form-button"},B("onboarding.button.continue")))),"object"==typeof I&&i.createElement(Cn,null,i.createElement(Mn,{"data-is-marry-baby":X},i.createElement(jn,null,(null==I?void 0:I.heading)&&i.createElement(Tn,{tag:"h1"},null==I?void 0:I.heading),(null==I?void 0:I.description)&&i.createElement(In,{size:"p1",color:E.colors.gray800},B("onboarding.welcomeScreen.content"))),(null==I?void 0:I.imgSrc)&&i.createElement(zn,null,i.createElement(Nn,{src:null==I?void 0:I.imgSrc,loading:"lazy"}))))):"Incorrect flow"))};export{tn as M,Bn as O,fn as a,rn as b,yn as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e,_ as t,b as n,f as a,c as r,d as l}from"./tslib.es6-b69f86ce.js";import*as i from"react";import o,{Component as c,useEffect as m,forwardRef as h,useRef as d,useState as s,useCallback as u,useImperativeHandle as p}from"react";import{Image as f,Textarea as v,Modal as g,Accordion as E,Indicator as z,Avatar as w,Checkbox as M,Slider as x,Radio as b,Flex as y}from"@mantine/core";import{CommonGAssets as k}from"./gAssets.js";import{DatePicker as H,DateRangePicker as C}from"@mantine/dates";import j,{css as S}from"styled-components";import P from"dayjs";import"./screenSizeContext-4689e2da.js";import{t as L}from"./theme-464b14d4.js";import{I as A,s as I}from"./index-cdb6a5f7.js";import"./utils-2e243b91.js";import"./isProduction-6c567518.js";import{L as D}from"./Locale-3d2fa220.js";import{Carousel as B}from"@mantine/carousel";import{g as N}from"./defaultClassWrapper-11731980.js";import{c as R}from"./index-1329846e.js";var V,T,W,F,O=j(H)(T||(T=e(["\n position: relative;\n ","\n"],["\n position: relative;\n ","\n"])),(function(t){return t.fullWidth&&S(V||(V=e(["\n .mantine-DatePicker-dropdown {\n min-width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n "],["\n .mantine-DatePicker-dropdown {\n min-width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n "])))})),U=j(C)(F||(F=e(["\n position: relative;\n ","\n"],["\n position: relative;\n ","\n"])),(function(t){return t.fullWidth&&S(W||(W=e(["\n .mantine-DateRangePicker-dropdown {\n min-width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n "],["\n .mantine-DateRangePicker-dropdown {\n min-width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n "])))})),G=function(e){return o.createElement(O,t({size:"md",clearable:!1,fullWidth:!0,styles:{rightSection:{pointerEvents:"none",cursor:"default"}},rightSection:o.createElement(f,{src:k.getAssetPath("OutlineCalendar.svg"),width:16,height:16})},e))};G.Range=function(e){return o.createElement(U,t({size:"md",clearable:!1,fullWidth:!0,styles:{rightSection:{pointerEvents:"none",cursor:"default"}},rightSection:o.createElement(f,{src:k.getAssetPath("OutlineCalendar.svg"),width:16,height:16})},e))};var X,Y,K,Z=j(v)(X||(X=e(["\n .mantine-Textarea-input {\n padding: 12px 16px;\n background: #ffffff;\n border: 1px solid ",";\n border-radius: 4px;\n }\n"],["\n .mantine-Textarea-input {\n padding: 12px 16px;\n background: #ffffff;\n border: 1px solid ",";\n border-radius: 4px;\n }\n"])),L.colors.gray200),_=j(g)(Y||(Y=e(["\n .mantine-Modal-modal {\n padding: 0;\n }\n .mantine-Modal-header {\n border-bottom: 1px solid ",";\n margin-right: 0;\n margin-bottom: 0;\n padding: 16px;\n }\n .mantine-Modal-title {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-right: 0;\n }\n .mantine-Modal-close {\n cursor: pointer;\n width: 24px;\n height: 24px;\n }\n"],["\n .mantine-Modal-modal {\n padding: 0;\n }\n .mantine-Modal-header {\n border-bottom: 1px solid ",";\n margin-right: 0;\n margin-bottom: 0;\n padding: 16px;\n }\n .mantine-Modal-title {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-right: 0;\n }\n .mantine-Modal-close {\n cursor: pointer;\n width: 24px;\n height: 24px;\n }\n"])),L.colors.neutral100),Q=j(E)(K||(K=e(["\n .mantine-Accordion-control {\n &:hover {\n background-color: transparent;\n }\n }\n .mantine-Accordion-item {\n .mantine-Accordion-chevron {\n > div {\n background-repeat: no-repeat;\n width: 16px;\n height: 16px;\n background-position: center;\n background-image: url(",");\n }\n }\n &[data-active='true'] {\n .mantine-Accordion-chevron {\n > div {\n background-image: url(",");\n }\n }\n }\n }\n .mantine-Accordion-panel {\n border-radius: 6px;\n }\n .mantine-Accordion-content {\n white-space: pre-wrap;\n }\n"],["\n .mantine-Accordion-control {\n &:hover {\n background-color: transparent;\n }\n }\n .mantine-Accordion-item {\n .mantine-Accordion-chevron {\n > div {\n background-repeat: no-repeat;\n width: 16px;\n height: 16px;\n background-position: center;\n background-image: url(",");\n }\n }\n &[data-active='true'] {\n .mantine-Accordion-chevron {\n > div {\n background-image: url(",");\n }\n }\n }\n }\n .mantine-Accordion-panel {\n border-radius: 6px;\n }\n .mantine-Accordion-content {\n white-space: pre-wrap;\n }\n"])),(function(e){return e.closeChevron||k.getAssetPath("plus-icon.svg")}),(function(e){return e.openChevron||k.getAssetPath("minus-icon.svg")})),q=function(e){var a=e.children,r=n(e,["children"]);return o.createElement(Q,t({chevron:o.createElement("div",null),disableChevronRotation:!0,transitionDuration:300},r),a)};q.Control=E.Control,q.Item=E.Item,q.Panel=E.Panel;var J=k.getAssetPath("avatar.jpg"),$=function(e){var a=e.withIndicator,r=void 0!==a&&a,l=e.indicatorConfig,i=void 0===l?null:l,c=e.size,m=void 0===c?56:c,h=e.children,d=e.styles,s=n(e,["withIndicator","indicatorConfig","size","children","styles"]),u=function(){return o.createElement(w,t({size:m,radius:"xl"},s,{imageProps:t({loading:"lazy"},s.imageProps)}),h||o.createElement("img",{loading:"lazy",src:J,width:m}))};return r?o.createElement(z,t({inline:!0,position:"bottom-end",offset:9},i,{styles:t({indicator:{backgroundColor:o.isValidElement(i.label)&&"transparent",zIndex:1}},d)}),u()):u()},ee=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={hasError:!1},t}return a(t,e),t.getDerivedStateFromError=function(){return{hasError:!0}},t.prototype.componentDidCatch=function(e,t){console.error("Uncaught error:",e,t)},t.prototype.render=function(){return this.state.hasError?this.props.fallback||o.createElement(o.Fragment,null):this.props.children},t}(c),te=function(e){var a=e.slidesToShow,r=void 0===a?1:a,l=e.children,i=n(e,["slidesToShow","children"]);return(Array.isArray(l)?l.length:1)?o.createElement(ee,null,o.createElement(B,t({slideSize:String(Math.floor(1/r*100))+"%",containScroll:"trimSnaps"},i),l)):null};te.Slide=B.Slide;var ne=function(e){return o.createElement(M,t({},e))};ne.Group=M.Group;var ae,re,le,ie,oe,ce="hhgcomp-mantine-slider-slider",me=N(j(x)(ae||(ae=e(["\n .mantine-Slider-track {\n background-color: ",";\n }\n\n .mantine-Slider-label {\n background-color: transparent;\n color: #000;\n font-size: 14px;\n font-weight: bold;\n }\n"],["\n .mantine-Slider-track {\n background-color: ",";\n }\n\n .mantine-Slider-label {\n background-color: transparent;\n color: #000;\n font-size: 14px;\n font-weight: bold;\n }\n"])),(function(e){return e.color||e.theme.colors.primaryBase})),ce),he=j.div(re||(re=e(["\n display: flex;\n align-items: center;\n ."," {\n flex-grow: 1;\n }\n"],["\n display: flex;\n align-items: center;\n ."," {\n flex-grow: 1;\n }\n"])),ce),de=j(b)(le||(le=e(["\n .mantine-Radio-icon {\n color: ",";\n }\n"],["\n .mantine-Radio-icon {\n color: ",";\n }\n"])),(function(e){return e.color||L.colors.primaryBase})),se=function(e){return o.createElement(de,t({size:"sm"},e))};se.Group=b.Group;var ue=((ie={})[D.Vietnam]="vi",ie[D.Cambodia]="km",ie[D.India]="hi",ie[D.Indonesia]="id",ie[D.Malaysia]="ms",ie[D.Thailand]="th",ie[D.Taiwan]="zh-tw",ie[D.PhilippinesTagalog]="tl-ph",ie[D.PhilippinesEnglish]="en",ie[D.Myanmar]="my",ie),pe=((oe={})[D.Vietnam]=function(){return import("dayjs/locale/vi.js")},oe[D.Cambodia]=function(){return import("dayjs/locale/km.js")},oe[D.India]=function(){return import("dayjs/locale/hi.js")},oe[D.Indonesia]=function(){return import("dayjs/locale/id.js")},oe[D.Malaysia]=function(){return import("dayjs/locale/ms.js")},oe[D.Thailand]=function(){return import("dayjs/locale/th.js")},oe[D.Taiwan]=function(){return import("dayjs/locale/zh-tw.js")},oe[D.PhilippinesTagalog]=function(){return import("dayjs/locale/tl-ph.js")},oe[D.PhilippinesEnglish]=function(){return import("dayjs/locale/en.js")},oe[D.Myanmar]=function(){return import("dayjs/locale/my.js")},oe),fe=function(e){m((function(){var t;null===(t=pe[e])||void 0===t||t.call(pe),P.locale(ue[e])}),[e])},ve={"&:hover":{borderColor:"".concat(L.colors.blue200),boxShadow:"0 0 2px 2px ".concat(L.colors.blue200)}},ge=function(e){return{datesLocale:ue[e],dateFormat:A[e].dateFormat,fontFamily:e===D.Cambodia?"Battambang,":"Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',\n Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",components:{InputWrapper:{styles:{label:{marginBottom:"0.375rem"},error:{marginTop:"0.375rem"}}},NumberInput:{defaultProps:{decimalSeparator:A[e].separator}},Input:{styles:{input:{borderRadius:"6px",transition:"all ".concat("100ms"," ease-in-out"),"&:hover, &:focus":{borderColor:"".concat(L.colors.blue200),boxShadow:"0 0 2px 2px ".concat(L.colors.blue200)}},invalid:{color:"#000"}}},Checkbox:{styles:{input:ve}},Radio:{styles:{radio:t(t({backgroundColor:"#ffffff"},ve),{"&:checked":{backgroundColor:"#ffffff"}})}}}}},Ee=R((function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],a=0;a<arguments.length;a++){var r=arguments[a];if(r){var l=typeof r;if("string"===l||"number"===l)e.push(r);else if(Array.isArray(r)){if(r.length){var i=n.apply(null,r);i&&e.push(i)}}else if("object"===l){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var o in r)t.call(r,o)&&r[o]&&e.push(o)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}));function ze(e,t){void 0===t&&(t=6);var n=new Array(t).fill("");if(e){var a=e.toString().split("");n.map((function(e,t){a[t]&&(n[t]=a[t]||"")}))}return n}function we(e){return e.join("")}var Me="_2iQs0sk",xe="Ia6IojY",be=h((function(e,a){var r=e.maxLength,l=void 0===r?1:r,i=e.placeholder,c=e.className,m=n(e,["maxLength","placeholder","className"]);return o.createElement("input",t({maxLength:l,className:Ee(xe,"otpInput",c),placeholder:i,type:"number"},m,{ref:a}))})),ye=h((function(e,t){var n=e.valueLength,a=void 0===n?6:n,r=e.type,l=void 0===r?"number":r,i=e.value,c=e.defaultValue,h=e.onChange,f=e.onBlur,v=d(new Array(a).fill(null)),g=s(c||i),E=g[0],z=g[1],w=s(-1),M=w[0],x=w[1],b=s((function(){return ze(E,a)})),k=b[0],H=b[1],C=u((function(){if(-1!==M){var e=v.current[M];if(e){e.value="";var t=k;t[M]="",H(t),z((function(){return we(t)})),null==h||h(we(t))}}}),[M,h,k]),j=u((function(){if(0!==M){var e=v.current[M];e&&e.blur();var t=v.current[M-1];t&&t.focus()}}),[M]),S=u((function(){if(M!==a-1){var e=v.current[M];e&&e.blur();var t=v.current[M+1];t&&t.focus()}}),[M,a]),P=u((function(e){var t=e.target,n=t.value.toString().slice(0,1),a=v.current.findIndex((function(e){return e===t}));if(-1!==a){var r=k;r[a]=n,H(r),z((function(){return we(r)})),null==h||h(we(r))}S()}),[S,h,k]),L=u((function(e){var t=e.target,n=v.current.findIndex((function(e){return e===t}));"number"===l?t.select():t.setSelectionRange(0,t.value.length,"backward"),-1!==n&&x(n)}),[]),A=u((function(e){var t=ze(e.clipboardData.getData("text/plain"),a),n=we(t);H(t),z(n),null==h||h(n)}),[h,l,a]),I=u((function(e){8===e.keyCode||"Backspace"===e.key?(e.preventDefault(),C(),j()):46===e.keyCode||"Delete"===e.key?(e.preventDefault(),C()):37===e.keyCode||"ArrowLeft"===e.key?(e.preventDefault(),j()):39===e.keyCode||"ArrowRight"===e.key?(e.preventDefault(),S()):32!==e.keyCode&&" "!==e.key&&"Spacebar"!==e.key&&"Space"!==e.key||e.preventDefault()}),[C,S,j]);return p(t,(function(){return v.current[0]}),[]),m((function(){H((function(){return ze(i,a)})),z(i)}),[a,i]),o.createElement(y,{justify:"center",columnGap:8,className:Ee(Me,"otpContainer")},k.map((function(e,t){return o.createElement(be,{ref:function(e){v.current[t]=e},key:""+t,value:e,type:l,onChange:P,onFocus:L,onKeyDown:I,onPaste:A,onBlur:f})})))})),ke=function(e){return i.createElement("svg",t({width:"1em",height:"1em",viewBox:"0 0 8 5",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("path",{d:"M4 5L0.535898 0.5L7.4641 0.5L4 5Z"}))},He=function(e){return i.createElement("svg",t({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),i.createElement("path",{fill:"#032ea1",d:"M0 0h640v480H0z"}),i.createElement("path",{fill:"#e00025",d:"M0 120h640v240H0z"}),i.createElement("g",{fill:"#fff",stroke:"#000",transform:"matrix(1.2 0 0 1.2 85.6 -522)"},i.createElement("g",{strokeLinejoin:"bevel"},i.createElement("path",{d:"M139 623.5h113.8v43.8H139z"}),i.createElement("path",{d:"M247 647.6h3.5v16.5H247zm-108-8.1h113.8v5H139zm0-7h113.8v4.6H139z"}),i.createElement("path",{strokeWidth:.9,d:"M139 625.7h113.8v4.3H139z"}),i.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"}),i.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"})),i.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"}),i.createElement("path",{strokeLinejoin:"bevel",d:"M178.2 647.6h3.6v16.5h-3.6zm30.4 0h3.6v16.5h-3.6z"}),i.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"}),i.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"}),i.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"}),i.createElement("path",{d:"M190.7 639.2h9v30.3h-9z"}),i.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"}),i.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"}),i.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"}),i.createElement("g",{fill:"none",strokeWidth:.8},i.createElement("path",{d:"M186.8 570.6H204m-19.2 5.4h21m-23 6.5h24.9m-27 7.9h29.5m-30.2 9h30.4"}),i.createElement("path",{strokeWidth:1,d:"M170.8 629h48.6m-33.2 0h18v6.6h-18z"})),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.createElement("g",{id:"a"},i.createElement("path",{d:"M99 664.2v-20.4c-.7-2.6-3-5-4.6-5.4v-18l3.7 2 4.3 18.9v23z"}),i.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"}),i.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"}),i.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"}),i.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"}),i.createElement("path",{d:"M116 639.2h8.9v30.4h-9z"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"})),i.createElement("use",{xlinkHref:"#a",width:"100%",height:"100%",transform:"matrix(-1 0 0 1 390.7 0)"}),i.createElement("path",{d:"M72.7 694.3H318v12.5H72.7zm-6.5 12.5h258.3v12.5H66.2zm19.4-31.3H305v8.1H85.6z"}),i.createElement("path",{d:"M79.2 683.6h232.4v10.6H79.2zm10.2-14.3h212v6.2h-212z"}),i.createElement("path",{d:"M112.4 669.3h16v50h-16z"}),i.createElement("path",{d:"M116 669.3h8.9v50h-9zm71 0h16v50h-16z"}),i.createElement("path",{d:"M190.7 669.3h9v50h-9zm71.5 0h16v50h-16z"}),i.createElement("path",{d:"M265.7 669.3h9v50h-9z"}),i.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=function(e){return i.createElement("svg",t({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),i.createElement("path",{fill:"#f93",d:"M0 0h640v160H0z"}),i.createElement("path",{fill:"#fff",d:"M0 160h640v160H0z"}),i.createElement("path",{fill:"#128807",d:"M0 320h640v160H0z"}),i.createElement("g",{transform:"matrix(3.2 0 0 3.2 320 240)"},i.createElement("circle",{r:20,fill:"#008"}),i.createElement("circle",{r:17.5,fill:"#fff"}),i.createElement("circle",{r:3.5,fill:"#008"}),i.createElement("g",{id:"d"},i.createElement("g",{id:"c"},i.createElement("g",{id:"b"},i.createElement("g",{id:"a",fill:"#008"},i.createElement("circle",{r:.9,transform:"rotate(7.5 -8.8 133.5)"}),i.createElement("path",{d:"M0 17.5.6 7 0 2l-.6 5L0 17.5z"})),i.createElement("use",{xlinkHref:"#a",width:"100%",height:"100%",transform:"rotate(15)"})),i.createElement("use",{xlinkHref:"#b",width:"100%",height:"100%",transform:"rotate(30)"})),i.createElement("use",{xlinkHref:"#c",width:"100%",height:"100%",transform:"rotate(60)"})),i.createElement("use",{xlinkHref:"#d",width:"100%",height:"100%",transform:"rotate(120)"}),i.createElement("use",{xlinkHref:"#d",width:"100%",height:"100%",transform:"rotate(-120)"})))},je=function(e){return i.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",id:"flag-icons-id",viewBox:"0 0 640 480",width:"1em",height:"1em"},e),i.createElement("g",{fillRule:"evenodd",strokeWidth:"1pt"},i.createElement("path",{fill:"#e70011",d:"M0 0h640v249H0z"}),i.createElement("path",{fill:"#fff",d:"M0 240h640v240H0z"})))},Se=function(e){return i.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",id:"flag-icons-my",viewBox:"0 0 640 480",width:"1em",height:"1em"},e),i.createElement("path",{fill:"#c00",d:"M0 0h640v480H0z"}),i.createElement("path",{fill:"#fff",d:"M.5 39.9h639v38.4H.5zM.5 118.6h639V157H.5zM.5 197.4h639v38.4H.5z"}),i.createElement("path",{fill:"#006",d:"M0 .5h320v280H0Z"}),i.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"}),i.createElement("path",{fill:"#fff",d:"M.5 276.2h639v38.4H.5zM.5 354.4h639v38.4H.5zM0 441.6h639V480H0z"}))},Pe=function(e){return i.createElement("svg",t({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),i.createElement("path",{fill:"#fecb00",d:"M0 0h640v480H0z"}),i.createElement("path",{fill:"#34b233",d:"M0 160h640v320H0z"}),i.createElement("path",{fill:"#ea2839",d:"M0 320h640v160H0z"}),i.createElement("g",{transform:"translate(320 256.9) scale(176.87999)"},i.createElement("path",{id:"a",fill:"#fff",d:"m0-1 .3 1h-.6z"}),i.createElement("use",{xlinkHref:"#a",width:"100%",height:"100%",transform:"rotate(-144)"}),i.createElement("use",{xlinkHref:"#a",width:"100%",height:"100%",transform:"rotate(-72)"}),i.createElement("use",{xlinkHref:"#a",width:"100%",height:"100%",transform:"rotate(72)"}),i.createElement("use",{xlinkHref:"#a",width:"100%",height:"100%",transform:"rotate(144)"})))},Le=function(e){return i.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",id:"flag-icons-ph",viewBox:"0 0 640 480",width:"1em",height:"1em"},e),i.createElement("path",{fill:"#0038a8",d:"M0 0h640v240H0z"}),i.createElement("path",{fill:"#ce1126",d:"M0 240h640v240H0z"}),i.createElement("path",{fill:"#fff",d:"M415.7 240 0 480V0"}),i.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"}))},Ae=function(e){return i.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",id:"flag-icons-tw",viewBox:"0 0 640 480",width:"1em",height:"1em"},e),i.createElement("clipPath",{id:"a"},i.createElement("path",{d:"M0 0h640v480H0z"})),i.createElement("g",{clipPath:"url(#a)"},i.createElement("path",{fill:"red",d:"M0 0h720v480H0z"}),i.createElement("path",{fill:"#000095",d:"M0 0h360v240H0z"}),i.createElement("g",{fill:"#fff"},i.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"}),i.createElement("path",{d:"m155.9 120-1.9 6.9 5.1 5.1z"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.createElement("path",{d:"m186.9 94-6.9-6.9-6.9 6.9 6.9 1.9z"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.createElement("path",{d:"m160.9 100.9 2.6-9.4-16.4-4.4 4.4 16.4z"}),i.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"}),i.createElement("path",{d:"M192 75.1 180 30l-12 45.1 12 12z"}),i.createElement("path",{d:"m173.1 94 6.9-6.9-12-12-4.5 16.4z"})),i.createElement("circle",{cx:180,cy:120,r:51.1,fill:"#000095"}),i.createElement("circle",{cx:180,cy:120,r:45.1,fill:"#fff"})))},Ie=function(e){return i.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",id:"flag-icons-th",viewBox:"0 0 640 480",width:"1em",height:"1em"},e),i.createElement("g",{fillRule:"evenodd"},i.createElement("path",{fill:"#f4f5f8",d:"M0 0h640v480H0z"}),i.createElement("path",{fill:"#2d2a4a",d:"M0 162.5h640v160H0z"}),i.createElement("path",{fill:"#a51931",d:"M0 0h640v82.5H0zm0 400h640v80H0z"})))},De=function(e){return i.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",id:"flag-icons-vn",viewBox:"0 0 640 480",width:"1em",height:"1em"},e),i.createElement("defs",null,i.createElement("clipPath",{id:"a"},i.createElement("path",{fillOpacity:.7,d:"M-85.3 0h682.6v512H-85.3z"}))),i.createElement("g",{fillRule:"evenodd",clipPath:"url(#a)",transform:"translate(80) scale(.9375)"},i.createElement("path",{fill:"#da251d",d:"M-128 0h768v512h-768z"}),i.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"})))},Be=Object.values(I).reduce((function(e,t){var n=t.phoneCountry;return e.includes(n)||e.push(n),e}),[]),Ne={PH:Le,KH:He,ID:Ce,IN:je,MM:Pe,MY:Se,TH:Ie,TW:Ae,VN:De},Re={phoneInput:"i-9Ibox",error:"YDWHh9b"},Ve=h((function(e,a){var i,c=e.isError,h=e.defaultCountry,d=e.countries,u=void 0===d?Be:d,p=e.countryCallingCodeEditable,f=void 0!==p&&p,v=e.defaultValue,g=e.value,E=e.onChange,z=e.className,w=n(e,["isError","defaultCountry","countries","countryCallingCodeEditable","defaultValue","value","onChange","className"]),M=s(v||g),x=M[0],b=M[1],y=s(null),k=y[0],H=y[1];return m((function(){b(g)}),[g]),m((function(){r(void 0,void 0,void 0,(function(){var e;return l(this,(function(t){switch(t.label){case 0:return[4,import("react-phone-number-input")];case 1:return e=t.sent(),H(e),[2]}}))}))}),[]),k?o.createElement(k.default,t({ref:a,value:x,onChange:function(e){b(e),null==E||E(e)},countries:u,defaultCountry:h,countryCallingCodeEditable:f,className:Ee(Re.phoneInput,(i={isError:c},i[Re.error]=c,i),z),flagUrl:void 0,flagComponent:function(e){var a=e.country,r=e.countryName;e.flagUrl;var l=n(e,["country","countryName","flagUrl"]),i=Ne[a],c=a?"(+".concat(k.getCountryCallingCode(a),")"):"";return i?o.createElement(o.Fragment,null,o.createElement(i,t({title:r},l)),o.createElement("span",{className:Ee(Re.callingCode,"PhoneInputCountryIconCallingCode")},c)):o.createElement(o.Fragment,null)},countrySelectProps:{arrowComponent:function(){return o.createElement("div",{className:Ee(Re.arrowSelect,"PhoneInputArrowContainer")},o.createElement(ke,null))}}},w)):null}));export{q as A,ke as C,G as D,Ce as I,Se as M,ye as O,Le as P,se as R,_ as S,Ae as T,De as V,He as a,je as b,Pe as c,Ie as d,Ve as e,Z as f,he as g,me as h,ge as i,$ as j,te as k,ne as l,ue as m,fe as u};
|