@hhgtech/hhg-components 1.27.144 → 1.27.148
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/babyGrowth.js +2 -2
- package/build/cache.js +1 -1
- package/build/care/components/organisms/bookingSearchBarV2/index.d.ts +1 -1
- package/build/care/interfaces/constants.d.ts +15 -1
- package/build/care.js +1 -1
- package/build/components/atoms/authorBadge/index.d.ts +1 -1
- package/build/components/navigationV2/types.d.ts +1 -27
- package/build/components.js +1 -1
- package/build/{constants-66f2ca96.js → constants-33414119.js} +1 -1
- package/build/constants-efaf8900.js +113 -0
- package/build/constants.js +1 -1
- package/build/{core-bc598551.js → core-9ef89b33.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +2 -2
- package/build/esm/cache.js +1 -1
- package/build/esm/care/components/organisms/bookingSearchBarV2/index.d.ts +1 -1
- package/build/esm/care/interfaces/constants.d.ts +15 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components/atoms/authorBadge/index.d.ts +1 -1
- package/build/esm/components/navigationV2/types.d.ts +1 -27
- package/build/esm/components.js +1 -1
- package/build/esm/constants-62b4b521.js +113 -0
- package/build/esm/{constants-d5a98619.js → constants-898ddd4e.js} +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-5d55e7fc.js → core-8a294508.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-bdbf31a0.js +1 -0
- package/build/esm/{getSocialList-499f25be.js → getSocialList-7696898d.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/i18nV2.js +1 -1
- package/build/esm/{index-19060178.js → index-3539c171.js} +1 -1
- package/build/esm/index-397e0b7e.js +1 -0
- package/build/esm/{index-53bb77e2.js → index-520c6632.js} +1 -1
- package/build/esm/{index-f7318226.js → index-53c3c945.js} +1 -1
- package/build/esm/{index-8907a82f.js → index-55f3a157.js} +1 -1
- package/build/esm/{index-4a2cafc3.js → index-5900c26c.js} +3 -3
- package/build/esm/{index-549dbaaa.js → index-71e966dc.js} +1 -1
- package/build/esm/index-87e41b39.js +1 -0
- package/build/esm/{index-4ae15223.js → index-9bc1f3fc.js} +12 -12
- package/build/esm/index-aeaddf84.js +1 -0
- package/build/esm/{index-c5861cd4.js → index-c2b264ca.js} +1 -1
- package/build/esm/{index-9b8a91fb.js → index-cd76c063.js} +1 -1
- package/build/esm/{index-931fc224.js → index-d8c5d2fe.js} +1 -1
- package/build/esm/{index-d9539fb5.js → index-de357fcc.js} +1 -1
- package/build/esm/{index-dcf659dc.js → index-dee6ecf7.js} +1 -1
- package/build/esm/index-e39cd70d.js +1 -0
- package/build/esm/{index-2bb3ea9b.js → index-e87c657f.js} +10 -10
- package/build/esm/index-ec14d84f.js +1 -0
- package/build/esm/{index-a4ac5f49.js → index-f73dc621.js} +2 -2
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-a9f59527.js → index.styled-25c54eee.js} +13 -13
- package/build/esm/{index.styled-4424e2c6.js → index.styled-b42d28df.js} +1 -1
- package/build/esm/{index.styles-9335371d.js → index.styles-08a47bd2.js} +1 -1
- package/build/esm/interfaces/types/index.d.ts +3 -1
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboardingV2.js +9 -9
- package/build/esm/paths-3d368f2a.js +1 -0
- package/build/esm/pwg.js +5 -5
- package/build/esm/{routing-d02672e2.js → routing-6ae4b0b3.js} +1 -1
- package/build/esm/together/components/molecules/cardAuthor/index.d.ts +2 -1
- package/build/esm/together/components/molecules/profileDetail/index.d.ts +2 -2
- package/build/esm/together/interfaces/types.d.ts +1 -1
- package/build/esm/together/togetherComponentGlobalContext.d.ts +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{types-4140788f.js → types-eeb377f6.js} +131 -130
- package/build/esm/types-f616643d.js +1 -0
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-63b0bdc8.js → useCategory-9e4dc14f.js} +1 -1
- package/build/esm/{useHealthToolCache-6c675b84.js → useHealthToolCache-8bf0c70a.js} +1 -1
- package/build/esm/{useRafState-631f1abc.js → useRafState-f81a5f64.js} +1 -1
- package/build/esm/{useTranslations-13a0511b.js → useTranslations-83a8d609.js} +1 -1
- package/build/esm/{utils-d81ac6c9.js → utils-0614ff59.js} +1 -1
- package/build/esm/{utils-05673fbc.js → utils-98720c72.js} +1 -1
- package/build/esm/vaccination.js +5 -5
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-c53f6106.js +1 -0
- package/build/{getSocialList-5e540d83.js → getSocialList-78ad953e.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-20ecb722.js → index-00537928.js} +5 -5
- package/build/{index-78659ffa.js → index-00c578ac.js} +1 -1
- package/build/{index-33433363.js → index-00da3919.js} +1 -1
- package/build/{index-539b0dc8.js → index-28fc23f2.js} +1 -1
- package/build/{index-2fe0b5d7.js → index-390f998d.js} +3 -3
- package/build/{index-75660b1e.js → index-3d2444d8.js} +1 -1
- package/build/{index-dcb7fa59.js → index-429d7f32.js} +1 -1
- package/build/{index-09458e4f.js → index-471a456b.js} +2 -2
- package/build/{index-c5c5c265.js → index-53832e71.js} +11 -11
- package/build/index-55dbfa99.js +1 -0
- package/build/{index-5c688a3a.js → index-572a678b.js} +1 -1
- package/build/{index-4b020803.js → index-688c9bf6.js} +1 -1
- package/build/index-6921ac1a.js +1 -0
- package/build/{index-92fd8920.js → index-89f7e9f6.js} +1 -1
- package/build/{index-c445f754.js → index-8d393982.js} +1 -1
- package/build/index-9bd28444.js +1 -0
- package/build/{index-7400c7e9.js → index-a34d68b1.js} +1 -1
- package/build/{index-af7dc44f.js → index-e2693218.js} +1 -1
- package/build/{index-6fc072fd.js → index-fa7510d3.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-cdea352e.js → index.styled-92633d5c.js} +14 -14
- package/build/{index.styled-e98dc656.js → index.styled-d71e0842.js} +1 -1
- package/build/{index.styles-07eb9913.js → index.styles-81052fc8.js} +1 -1
- package/build/interfaces/types/index.d.ts +3 -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/onboardingV2.js +1 -1
- package/build/paths-a804e585.js +1 -0
- package/build/pwg.js +1 -1
- package/build/{routing-c5fe28b7.js → routing-b0806787.js} +1 -1
- package/build/together/components/molecules/cardAuthor/index.d.ts +2 -1
- package/build/together/components/molecules/profileDetail/index.d.ts +2 -2
- package/build/together/interfaces/types.d.ts +1 -1
- package/build/together/togetherComponentGlobalContext.d.ts +1 -1
- package/build/together.js +1 -1
- package/build/types-34cf8a1f.js +1 -0
- package/build/{types-453e5dc9.js → types-87031291.js} +62 -61
- package/build/types.js +1 -1
- package/build/{useCategory-87d80d34.js → useCategory-d96fb0fe.js} +1 -1
- package/build/useHealthToolCache-3020457c.js +1 -0
- package/build/{useRafState-96097d17.js → useRafState-6de952ab.js} +1 -1
- package/build/{useTranslations-b9b74891.js → useTranslations-e2acae51.js} +1 -1
- package/build/{utils-ecaa7f3e.js → utils-89c0f620.js} +1 -1
- package/build/{utils-bdb1f2b8.js → utils-f44ddf1b.js} +1 -1
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/constants-c561bbcb.js +0 -1
- package/build/esm/constants-8e536789.js +0 -1
- package/build/esm/getDynamicHealthTool-a99e0793.js +0 -1
- package/build/esm/index-0dc62690.js +0 -1
- package/build/esm/index-369693a3.js +0 -1
- package/build/esm/index-369fefe5.js +0 -1
- package/build/esm/index-91cd1f4a.js +0 -1
- package/build/esm/index-badf00de.js +0 -113
- package/build/esm/index-e474c9e9.js +0 -1
- package/build/esm/paths-969b498e.js +0 -1
- package/build/esm/types-6863a4bc.js +0 -1
- package/build/getDynamicHealthTool-3a4f38ab.js +0 -1
- package/build/index-26883f56.js +0 -113
- package/build/index-952330e0.js +0 -1
- package/build/index-b4699f22.js +0 -1
- package/build/index-e39bf8f1.js +0 -1
- package/build/paths-404ef2f2.js +0 -1
- package/build/types-e3007788.js +0 -1
- package/build/useHealthToolCache-83f0a560.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-a4cbf8ea.js → BMI_BOYS.percentile.monthly-f8e11653.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-ca012e97.js → BMI_BOYS.percentile.weekly-ffa928d2.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-7d3acacb.js → BMI_BOYS.percentile.yearly-4c1416e2.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-48131b5f.js → BMI_BOYS.zscore.monthly-cb6bf172.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-cc12e0ae.js → BMI_BOYS.zscore.weekly-d2dcce5a.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-5849463a.js → BMI_BOYS.zscore.yearly-2a4aebe8.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-15456c7e.js → BMI_GIRLS.percentile.monthly-cf5ad217.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-55042760.js → BMI_GIRLS.percentile.weekly-a65fd85e.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-4b43f8e7.js → BMI_GIRLS.percentile.yearly-6a4b2b6b.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-7d614e9a.js → BMI_GIRLS.zscore.monthly-23c37282.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-4551efc1.js → BMI_GIRLS.zscore.weekly-81f44bc9.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-639dd1ef.js → BMI_GIRLS.zscore.yearly-4d145521.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-99431cf7.js → HEAD CIRCUM_BOYS.percentile.monthly-0759a7ad.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-10fd60e7.js → HEAD CIRCUM_BOYS.percentile.weekly-656b977f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-b6748517.js → HEAD CIRCUM_BOYS.percentile.yearly-a7969957.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-f6e3debc.js → HEAD CIRCUM_BOYS.zscore.monthly-d6c10e07.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-819372a0.js → HEAD CIRCUM_BOYS.zscore.weekly-025e92bd.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-389f8959.js → HEAD CIRCUM_BOYS.zscore.yearly-da35f4f0.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-dbe3e861.js → HEAD CIRCUM_GIRLS.percentile.monthly-4c2ad33e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-b10a1910.js → HEAD CIRCUM_GIRLS.percentile.weekly-0a971bfd.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-ccc2ecde.js → HEAD CIRCUM_GIRLS.percentile.yearly-ff838774.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-12859385.js → HEAD CIRCUM_GIRLS.zscore.monthly-0f08a40c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-d9b2b6ce.js → HEAD CIRCUM_GIRLS.zscore.weekly-a4c420c8.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-4fd5eb21.js → HEAD CIRCUM_GIRLS.zscore.yearly-a01680ca.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-555a9099.js → HEIGHT_BOYS.percentile.monthly-b01b900d.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-6acfa33b.js → HEIGHT_BOYS.percentile.weekly-be4f634e.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-1d98da4c.js → HEIGHT_BOYS.percentile.yearly-dfc67dc1.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-f66abe05.js → HEIGHT_BOYS.zscore.monthly-fa6bff4c.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-ad263a12.js → HEIGHT_BOYS.zscore.weekly-4184bce8.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-150413d1.js → HEIGHT_BOYS.zscore.yearly-7d2e2009.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-21f1f33b.js → HEIGHT_GIRLS.percentile.monthly-56753743.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-7554b6b1.js → HEIGHT_GIRLS.percentile.weekly-5b13263c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-96e7bfc7.js → HEIGHT_GIRLS.percentile.yearly-ddcd15aa.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-0febbff6.js → HEIGHT_GIRLS.zscore.monthly-a3b36329.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-75ab65ae.js → HEIGHT_GIRLS.zscore.weekly-08778c1d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-3eb80e9b.js → HEIGHT_GIRLS.zscore.yearly-57d7cdb3.js} +0 -0
- /package/build/{Onboarding-e23b9cd1.js → Onboarding-b3bc72e9.js} +0 -0
- /package/build/{Visible-6ab3bd7d.js → Visible-1cdbe2d9.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-e67f462f.js → WEIGHT_BOYS.percentile.monthly-f39e1334.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-aeeae5c5.js → WEIGHT_BOYS.percentile.weekly-a69f20fe.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-3b570cd0.js → WEIGHT_BOYS.percentile.yearly-e917a9c9.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-7f53c334.js → WEIGHT_BOYS.zscore.monthly-1d64ab00.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-8b71cf8e.js → WEIGHT_BOYS.zscore.weekly-1b0f783c.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-189d91bf.js → WEIGHT_BOYS.zscore.yearly-81c008d2.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-383cd185.js → WEIGHT_GIRLS.percentile.monthly-65fe0f17.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-2e2c946d.js → WEIGHT_GIRLS.percentile.weekly-d452ed3e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-dc985545.js → WEIGHT_GIRLS.percentile.yearly-eea553d9.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-d90069e7.js → WEIGHT_GIRLS.zscore.monthly-37fc822b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-a4bc15b0.js → WEIGHT_GIRLS.zscore.weekly-ab538187.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-286aa117.js → WEIGHT_GIRLS.zscore.yearly-35f296cf.js} +0 -0
- /package/build/{cookieHelper-41efa723.js → cookieHelper-90ca49d9.js} +0 -0
- /package/build/{dataTransform-4adc049e.js → dataTransform-30f99854.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-3879c547.js → BMI_BOYS.percentile.monthly-b5706fa2.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-da45ed50.js → BMI_BOYS.percentile.weekly-d52c4107.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-b6faa1cc.js → BMI_BOYS.percentile.yearly-57bf13ac.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-ca6b41bb.js → BMI_BOYS.zscore.monthly-dc2667ba.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-9207f406.js → BMI_BOYS.zscore.weekly-66c1770a.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-09288e92.js → BMI_BOYS.zscore.yearly-0fff8408.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-54a9ae3b.js → BMI_GIRLS.percentile.monthly-46e4cad1.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-85d1e546.js → BMI_GIRLS.percentile.weekly-945297d8.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-6ace435c.js → BMI_GIRLS.percentile.yearly-2f39ba32.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-d4a2f92b.js → BMI_GIRLS.zscore.monthly-263a408e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-ddd44c76.js → BMI_GIRLS.zscore.weekly-0eaf17ae.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-f227b05a.js → BMI_GIRLS.zscore.yearly-4e26c09e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-71876ff9.js → HEAD CIRCUM_BOYS.percentile.monthly-d3176ca9.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-66dbe125.js → HEAD CIRCUM_BOYS.percentile.weekly-e763716f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-6a90fb62.js → HEAD CIRCUM_BOYS.percentile.yearly-15dd7089.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-2805ff24.js → HEAD CIRCUM_BOYS.zscore.monthly-e1abbd84.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-e2b0444a.js → HEAD CIRCUM_BOYS.zscore.weekly-a6abba31.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-2e76e049.js → HEAD CIRCUM_BOYS.zscore.yearly-a6bb08a1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-8e83227a.js → HEAD CIRCUM_GIRLS.percentile.monthly-81704c8f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-0fa57ed9.js → HEAD CIRCUM_GIRLS.percentile.weekly-edb6382c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-98e4bf0e.js → HEAD CIRCUM_GIRLS.percentile.yearly-25724214.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-fb12fea1.js → HEAD CIRCUM_GIRLS.zscore.monthly-f557c250.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-76a3c00b.js → HEAD CIRCUM_GIRLS.zscore.weekly-44d6b452.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-276f86e4.js → HEAD CIRCUM_GIRLS.zscore.yearly-5bc9a9b6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-2d287952.js → HEIGHT_BOYS.percentile.monthly-81533e16.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-e9f8f9f7.js → HEIGHT_BOYS.percentile.weekly-41b319db.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-4022a31a.js → HEIGHT_BOYS.percentile.yearly-5220f0ed.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-3852bd89.js → HEIGHT_BOYS.zscore.monthly-f164d07c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-0f4841a9.js → HEIGHT_BOYS.zscore.weekly-1935b181.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-31aa2f32.js → HEIGHT_BOYS.zscore.yearly-e624324d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-501c2da0.js → HEIGHT_GIRLS.percentile.monthly-00506c11.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-0ec78b52.js → HEIGHT_GIRLS.percentile.weekly-008c2fcf.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-5bd74a19.js → HEIGHT_GIRLS.percentile.yearly-6394bcc1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-0532dad2.js → HEIGHT_GIRLS.zscore.monthly-380e2b7f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-649b464a.js → HEIGHT_GIRLS.zscore.weekly-a4f649b9.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-65056e2b.js → HEIGHT_GIRLS.zscore.yearly-1d816507.js} +0 -0
- /package/build/esm/{Onboarding-e0b6f2a2.js → Onboarding-821fd8e9.js} +0 -0
- /package/build/esm/{Visible-b5d8d2f2.js → Visible-4faf9d79.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-aecf26fe.js → WEIGHT_BOYS.percentile.monthly-fdf41734.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-a8888b4e.js → WEIGHT_BOYS.percentile.weekly-f0fd044b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-e366e41e.js → WEIGHT_BOYS.percentile.yearly-baacefb5.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-c1481d0c.js → WEIGHT_BOYS.zscore.monthly-1704b7dd.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-d2073082.js → WEIGHT_BOYS.zscore.weekly-ad484d52.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-3a0f3e4b.js → WEIGHT_BOYS.zscore.yearly-1a52d0b2.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-68c395e0.js → WEIGHT_GIRLS.percentile.monthly-5d13c4b7.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-c0b474d7.js → WEIGHT_GIRLS.percentile.weekly-1eb0eb11.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-7f0a9d0f.js → WEIGHT_GIRLS.percentile.yearly-af7ff450.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-7b91e9d6.js → WEIGHT_GIRLS.zscore.monthly-82bd10c9.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-fa3b3469.js → WEIGHT_GIRLS.zscore.weekly-d290c86e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-b0718f0b.js → WEIGHT_GIRLS.zscore.yearly-4f1b32d0.js} +0 -0
- /package/build/esm/{cookieHelper-6dc40625.js → cookieHelper-a4536447.js} +0 -0
- /package/build/esm/{dataTransform-655eec3e.js → dataTransform-b1fa0178.js} +0 -0
- /package/build/esm/{index-0286478a.js → index-0df2e2d3.js} +0 -0
- /package/build/esm/{index-47649510.js → index-b378fe61.js} +0 -0
- /package/build/esm/{index-cc9220c9.js → index-bd94f92f.js} +0 -0
- /package/build/esm/{isProduction-691e9a27.js → isProduction-81d2313b.js} +0 -0
- /package/build/esm/{localizeNumberFormat-7e5921c0.js → localizeNumberFormat-2ef823e7.js} +0 -0
- /package/build/esm/{normalizeLink-b04f3779.js → normalizeLink-2ea939d2.js} +0 -0
- /package/build/esm/{number-47e8f8fa.js → number-9a6100c2.js} +0 -0
- /package/build/esm/{screenSizeContext-d90eb8b1.js → screenSizeContext-d934c417.js} +0 -0
- /package/build/esm/{theme-ffd749fb.js → theme-f34480d0.js} +0 -0
- /package/build/esm/{translationsContext-4cce247e.js → translationsContext-f2099317.js} +0 -0
- /package/build/esm/{tslib.es6-e62ba6cf.js → tslib.es6-ce48fb77.js} +0 -0
- /package/build/esm/{types-ff49c0cf.js → types-753a5e78.js} +0 -0
- /package/build/esm/{useIsInit-80069996.js → useIsInit-5cd5504d.js} +0 -0
- /package/build/esm/{useOutsideClick-3f1cc940.js → useOutsideClick-4511e955.js} +0 -0
- /package/build/esm/{useScrollbarSize-bdebe942.js → useScrollbarSize-6d4db4c6.js} +0 -0
- /package/build/{index-42e2afaa.js → index-3970d9d7.js} +0 -0
- /package/build/{index-c008d868.js → index-67e31af3.js} +0 -0
- /package/build/{index-33b4a57a.js → index-83da48da.js} +0 -0
- /package/build/{isProduction-720c05c1.js → isProduction-84048a5c.js} +0 -0
- /package/build/{localizeNumberFormat-5950e457.js → localizeNumberFormat-8b80a58e.js} +0 -0
- /package/build/{normalizeLink-2626786f.js → normalizeLink-fe9df6a4.js} +0 -0
- /package/build/{number-f47b178a.js → number-c8f515d3.js} +0 -0
- /package/build/{screenSizeContext-1375a00f.js → screenSizeContext-779b80c6.js} +0 -0
- /package/build/{theme-a754bae5.js → theme-06bd098c.js} +0 -0
- /package/build/{translationsContext-4cefc7aa.js → translationsContext-db72cc82.js} +0 -0
- /package/build/{tslib.es6-05c6313d.js → tslib.es6-c0d21e1e.js} +0 -0
- /package/build/{types-e3eea061.js → types-a9fb9e03.js} +0 -0
- /package/build/{useIsInit-10389df2.js → useIsInit-9315688f.js} +0 -0
- /package/build/{useOutsideClick-ddf2a634.js → useOutsideClick-d7ec7d93.js} +0 -0
- /package/build/{useScrollbarSize-b23ecb52.js → useScrollbarSize-a4a7866e.js} +0 -0
package/build/esm/babyGrowth.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{D as e,M as t}from"./index-
|
|
1
|
+
import{D as e,M as t}from"./index-f73dc621.js";export{B as BabyGrowthGender}from"./index-f73dc621.js";import r,{useMemo as l,useRef as o,useState as a,useEffect as i}from"react";import{L as n,G as s,B as c,a as d}from"./Onboarding-821fd8e9.js";import{t as m}from"./theme-f34480d0.js";import{T as C,I as p}from"./index-c2b264ca.js";import h from"styled-components";import{B as y}from"./index-520c6632.js";import{M as g}from"./index-3539c171.js";import{h as u,n as f}from"./screenSizeContext-d934c417.js";import b from"dayjs";import{u as E}from"./useTranslations-83a8d609.js";import"lodash/debounce";import"./isProduction-81d2313b.js";import"./index-dee6ecf7.js";import"./useCategory-9e4dc14f.js";import{a as x,l as w}from"./localizeNumberFormat-2ef823e7.js";import{H as v}from"./index.styles-08a47bd2.js";import{_ as L,a as M}from"./tslib.es6-ce48fb77.js";import"@mantine/core";import"./index-de357fcc.js";import"./gAssets.js";import"./constants-62b4b521.js";import"./utils-98720c72.js";import{T as k}from"./index-ec14d84f.js";import{C as H}from"./index-bd94f92f.js";import{a as I}from"./useOutsideClick-4511e955.js";import"@mantine/dates";import"@mantine/hooks";import{I as j}from"./index-aeaddf84.js";import{ResponsiveContainer as S,LineChart as G,CartesianGrid as R,Tooltip as z,XAxis as Z,YAxis as _,Line as N,ReferenceDot as V}from"recharts";import T from"lodash/chunk";import"./useScrollbarSize-6d4db4c6.js";import"react-dom";import"./index.styled-b42d28df.js";import"lodash/throttle";import"./translationsContext-f2099317.js";import"string-format";import"date-fns/locale";import"./index-0df2e2d3.js";import"react-keyed-flatten-children";import"./cookieHelper-a4536447.js";import"slugify";import"@mantine/carousel";const A=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
gap: 16px;
|
|
@@ -381,7 +381,7 @@ import{D as e,M as t}from"./index-a4ac5f49.js";export{B as BabyGrowthGender}from
|
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
`,ye=({isActive:e,onChange:t,value:l="",onInputChange:o,siteType:a})=>{const{t:i}=E(),n="marryBaby"===a;return r.createElement(he,{onClick:()=>t("new"),"data-is-mb":n,"data-isActive":n&&e},"marryBaby"===a?r.createElement("div",{className:"title"},r.createElement(g,{type:"bodytext-1",color:m.colors.gray800},i("chooseBaby.new")),r.createElement("div",{className:e?"radio active":"radio"},e&&r.createElement(p.CheckActiveMB,{size:26}))):r.createElement("div",{className:"title"},r.createElement(C,{size:"p2",color:m.colors.gray800},i("chooseBaby.new")),r.createElement("div",{className:e?"radio active":"radio"})),r.createElement(j,{name:"name",value:l,size:"md",placeholder:i("chooseBaby.placeholder"),type:"text",onChange:o}))},ge=e=>{var t,l,{babyProfiles:o,currentProfileId:i,onClose:n,onCreate:s,onAddMeasurement:c,onSwitchProfile:d,open:C,isMobile:p,isMyProfile:h=!1,buttonGroup:u,newBabyValue:f,onNewBabyValueChange:b,siteType:x,buttonText:w,headerText:v}=e,M=L(e,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange","siteType","buttonText","headerText"]);const B=e=>h?r.createElement(r.Fragment,null,r.createElement(y,{theme:x,onClick:()=>{null==s||s(),n()},size:"lg",color:"secondary",icon:r.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},j("babyGrowth.drawer.createBaby")),r.createElement(y,{theme:x,size:"lg",color:"primary",onClick:()=>{null==e||e(),h?null==d||d(H):null==c||c(H),n()}},j(h?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):r.createElement(y,{theme:x,size:"lg",color:"primary",onClick:()=>{null==c||c(H),null==e||e(),n()}},w||j("chooseBaby.button")),[H,I]=a(String(i)||String(null===(t=o[0])||void 0===t?void 0:t.id)),{t:j}=E();return p?r.createElement(me,Object.assign({title:v||"Baby profiles",onClose:n,open:C,placement:"bottom"},M),(({internalClose:e})=>{var t;return r.createElement("div",{className:"add-profile-container"},r.createElement("div",{className:"profile-container"},null===(t=o||[])||void 0===t?void 0:t.map((e=>r.createElement(Q,{siteType:x,key:e.id,profile:e,isActive:H===String(e.id),onChange:I}))),!h&&r.createElement(ye,{siteType:x,value:f,onInputChange:b,isActive:"new"===H,onChange:I})),r.createElement("div",{className:"button-group"},u||B(e)))})):r.createElement(Ce,{type:"confirm",isOpen:C,onClose:n,siteType:x},r.createElement("div",{className:"header"},r.createElement("div",{className:"title"},"marryBaby"===x?r.createElement(g,{type:"subtitle-1",color:m.mbColors.dark},j("chooseBaby.title")):r.createElement(k,{size:"s2",type:"semiBold"},v||j("chooseBaby.title")),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:n},r.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),r.createElement("div",{className:"profile-container"},null===(l=o||[])||void 0===l?void 0:l.map((e=>r.createElement(Q,{key:e.id,profile:e,isActive:H===String(e.id),onChange:I,siteType:x}))),!h&&r.createElement(ye,{value:f,onInputChange:b,isActive:"new"===H,onChange:I,siteType:x})),r.createElement("div",{className:"button-group"},u||B()))},ue={[s.Boy]:{[c.Height]:{[d.Weekly]:()=>import("./HEIGHT_BOYS.percentile.weekly-e9f8f9f7.js"),[d.Monthly]:()=>import("./HEIGHT_BOYS.percentile.monthly-2d287952.js"),[d.Yearly]:()=>import("./HEIGHT_BOYS.percentile.yearly-4022a31a.js")},[c.Weight]:{[d.Weekly]:()=>import("./WEIGHT_BOYS.percentile.weekly-a8888b4e.js"),[d.Monthly]:()=>import("./WEIGHT_BOYS.percentile.monthly-aecf26fe.js"),[d.Yearly]:()=>import("./WEIGHT_BOYS.percentile.yearly-e366e41e.js")},[c.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_BOYS.percentile.weekly-66dbe125.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_BOYS.percentile.monthly-71876ff9.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_BOYS.percentile.yearly-6a90fb62.js")},[c.BMI]:{[d.Weekly]:()=>import("./BMI_BOYS.percentile.weekly-da45ed50.js"),[d.Monthly]:()=>import("./BMI_BOYS.percentile.monthly-3879c547.js"),[d.Yearly]:()=>import("./BMI_BOYS.percentile.yearly-b6faa1cc.js")}},[s.Girl]:{[c.Height]:{[d.Weekly]:()=>import("./HEIGHT_GIRLS.percentile.weekly-0ec78b52.js"),[d.Monthly]:()=>import("./HEIGHT_GIRLS.percentile.monthly-501c2da0.js"),[d.Yearly]:()=>import("./HEIGHT_GIRLS.percentile.yearly-5bd74a19.js")},[c.Weight]:{[d.Weekly]:()=>import("./WEIGHT_GIRLS.percentile.weekly-c0b474d7.js"),[d.Monthly]:()=>import("./WEIGHT_GIRLS.percentile.monthly-68c395e0.js"),[d.Yearly]:()=>import("./WEIGHT_GIRLS.percentile.yearly-7f0a9d0f.js")},[c.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.weekly-0fa57ed9.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.monthly-8e83227a.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.yearly-98e4bf0e.js")},[c.BMI]:{[d.Weekly]:()=>import("./BMI_GIRLS.percentile.weekly-85d1e546.js"),[d.Monthly]:()=>import("./BMI_GIRLS.percentile.monthly-54a9ae3b.js"),[d.Yearly]:()=>import("./BMI_GIRLS.percentile.yearly-6ace435c.js")}}},fe={[s.Boy]:{[c.Height]:{[d.Weekly]:()=>import("./HEIGHT_BOYS.zscore.weekly-0f4841a9.js"),[d.Monthly]:()=>import("./HEIGHT_BOYS.zscore.monthly-3852bd89.js"),[d.Yearly]:()=>import("./HEIGHT_BOYS.zscore.yearly-31aa2f32.js")},[c.Weight]:{[d.Weekly]:()=>import("./WEIGHT_BOYS.zscore.weekly-d2073082.js"),[d.Monthly]:()=>import("./WEIGHT_BOYS.zscore.monthly-c1481d0c.js"),[d.Yearly]:()=>import("./WEIGHT_BOYS.zscore.yearly-3a0f3e4b.js")},[c.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_BOYS.zscore.weekly-e2b0444a.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_BOYS.zscore.monthly-2805ff24.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_BOYS.zscore.yearly-2e76e049.js")},[c.BMI]:{[d.Weekly]:()=>import("./BMI_BOYS.zscore.weekly-9207f406.js"),[d.Monthly]:()=>import("./BMI_BOYS.zscore.monthly-ca6b41bb.js"),[d.Yearly]:()=>import("./BMI_BOYS.zscore.yearly-09288e92.js")}},[s.Girl]:{[c.Height]:{[d.Weekly]:()=>import("./HEIGHT_GIRLS.zscore.weekly-649b464a.js"),[d.Monthly]:()=>import("./HEIGHT_GIRLS.zscore.monthly-0532dad2.js"),[d.Yearly]:()=>import("./HEIGHT_GIRLS.zscore.yearly-65056e2b.js")},[c.Weight]:{[d.Weekly]:()=>import("./WEIGHT_GIRLS.zscore.weekly-fa3b3469.js"),[d.Monthly]:()=>import("./WEIGHT_GIRLS.zscore.monthly-7b91e9d6.js"),[d.Yearly]:()=>import("./WEIGHT_GIRLS.zscore.yearly-b0718f0b.js")},[c.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.weekly-76a3c00b.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.monthly-fb12fea1.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.yearly-276f86e4.js")},[c.BMI]:{[d.Weekly]:()=>import("./BMI_GIRLS.zscore.weekly-ddd44c76.js"),[d.Monthly]:()=>import("./BMI_GIRLS.zscore.monthly-d4a2f92b.js"),[d.Yearly]:()=>import("./BMI_GIRLS.zscore.yearly-f227b05a.js")}}},be=(e,t,r,l,o)=>{const a=e.slice(t-1,r);let[i,n]=[a[0][l],a[0][l]];return a.forEach((e=>{e[l]>n&&(n=e[l]),e[l]<i&&(i=e[l])})),[(0|i)-o,(0|n)+o]},Ee=(e,t,r,l)=>l===n.Indonesia?fe[e][t][r]():ue[e][t][r](),xe=(e,t)=>{const[r,l]=T(t,Math.ceil(t.length/2)),o=r.map((e=>e.name)),a=l.map((e=>e.name));return o.includes(e)?{data:r,status:"first-half"}:a.includes(e)?{data:l,status:"second-half"}:{data:t,status:"full"}},we=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),ve=(e,t,r,l,o)=>[...e,{name:l,history:o,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),Le=(e,t=0)=>{const r=[];for(const l in e){e[l].forEach(((e,o)=>{r[o]?r[o][l]=e:r[o]={name:o+t,[l]:e}}))}return r},Me=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),ke=()=>{var e;const t=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(t),!t)return;const r=t.getElementsByTagName("line");for(let e=0;e<r.length;e++){if(e%2!=0){const l=r[e],o=r[e+1],a=l.getAttribute("x1"),i=l.getAttribute("y"),n=l.getAttribute("height"),s=l.getAttribute("x1"),c=o.getAttribute("x1");console.log({oddLine:l,nextLine:o});const d=document.createElementNS("http://www.w3.org/1999/xhtml","rect");d.setAttribute("stroke",m.colors.primary50),d.setAttribute("fill",m.colors.primary50),d.setAttribute("x",a),d.setAttribute("y",i),d.setAttribute("height",n),d.setAttribute("width",String(Number(c)-Number(s))),t.appendChild(l),t.appendChild(d)}else t.appendChild(r[e]);console.log(t)}},Be=h.div`
|
|
384
|
+
`,ye=({isActive:e,onChange:t,value:l="",onInputChange:o,siteType:a})=>{const{t:i}=E(),n="marryBaby"===a;return r.createElement(he,{onClick:()=>t("new"),"data-is-mb":n,"data-isActive":n&&e},"marryBaby"===a?r.createElement("div",{className:"title"},r.createElement(g,{type:"bodytext-1",color:m.colors.gray800},i("chooseBaby.new")),r.createElement("div",{className:e?"radio active":"radio"},e&&r.createElement(p.CheckActiveMB,{size:26}))):r.createElement("div",{className:"title"},r.createElement(C,{size:"p2",color:m.colors.gray800},i("chooseBaby.new")),r.createElement("div",{className:e?"radio active":"radio"})),r.createElement(j,{name:"name",value:l,size:"md",placeholder:i("chooseBaby.placeholder"),type:"text",onChange:o}))},ge=e=>{var t,l,{babyProfiles:o,currentProfileId:i,onClose:n,onCreate:s,onAddMeasurement:c,onSwitchProfile:d,open:C,isMobile:p,isMyProfile:h=!1,buttonGroup:u,newBabyValue:f,onNewBabyValueChange:b,siteType:x,buttonText:w,headerText:v}=e,M=L(e,["babyProfiles","currentProfileId","onClose","onCreate","onAddMeasurement","onSwitchProfile","open","isMobile","isMyProfile","buttonGroup","newBabyValue","onNewBabyValueChange","siteType","buttonText","headerText"]);const B=e=>h?r.createElement(r.Fragment,null,r.createElement(y,{theme:x,onClick:()=>{null==s||s(),n()},size:"lg",color:"secondary",icon:r.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M13.5 9.75H9.75V13.5C9.75 13.9125 9.4125 14.25 9 14.25C8.5875 14.25 8.25 13.9125 8.25 13.5V9.75H4.5C4.0875 9.75 3.75 9.4125 3.75 9C3.75 8.5875 4.0875 8.25 4.5 8.25H8.25V4.5C8.25 4.0875 8.5875 3.75 9 3.75C9.4125 3.75 9.75 4.0875 9.75 4.5V8.25H13.5C13.9125 8.25 14.25 8.5875 14.25 9C14.25 9.4125 13.9125 9.75 13.5 9.75Z",fill:"#2D87F3"}))},j("babyGrowth.drawer.createBaby")),r.createElement(y,{theme:x,size:"lg",color:"primary",onClick:()=>{null==e||e(),h?null==d||d(H):null==c||c(H),n()}},j(h?"babyGrowth.drawer.switchProfile":"babyGrowth.drawer.addMeasurement"))):r.createElement(y,{theme:x,size:"lg",color:"primary",onClick:()=>{null==c||c(H),null==e||e(),n()}},w||j("chooseBaby.button")),[H,I]=a(String(i)||String(null===(t=o[0])||void 0===t?void 0:t.id)),{t:j}=E();return p?r.createElement(me,Object.assign({title:v||"Baby profiles",onClose:n,open:C,placement:"bottom"},M),(({internalClose:e})=>{var t;return r.createElement("div",{className:"add-profile-container"},r.createElement("div",{className:"profile-container"},null===(t=o||[])||void 0===t?void 0:t.map((e=>r.createElement(Q,{siteType:x,key:e.id,profile:e,isActive:H===String(e.id),onChange:I}))),!h&&r.createElement(ye,{siteType:x,value:f,onInputChange:b,isActive:"new"===H,onChange:I})),r.createElement("div",{className:"button-group"},u||B(e)))})):r.createElement(Ce,{type:"confirm",isOpen:C,onClose:n,siteType:x},r.createElement("div",{className:"header"},r.createElement("div",{className:"title"},"marryBaby"===x?r.createElement(g,{type:"subtitle-1",color:m.mbColors.dark},j("chooseBaby.title")):r.createElement(k,{size:"s2",type:"semiBold"},v||j("chooseBaby.title")),r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"close-button",onClick:n},r.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"})))),r.createElement("div",{className:"profile-container"},null===(l=o||[])||void 0===l?void 0:l.map((e=>r.createElement(Q,{key:e.id,profile:e,isActive:H===String(e.id),onChange:I,siteType:x}))),!h&&r.createElement(ye,{value:f,onInputChange:b,isActive:"new"===H,onChange:I,siteType:x})),r.createElement("div",{className:"button-group"},u||B()))},ue={[s.Boy]:{[c.Height]:{[d.Weekly]:()=>import("./HEIGHT_BOYS.percentile.weekly-41b319db.js"),[d.Monthly]:()=>import("./HEIGHT_BOYS.percentile.monthly-81533e16.js"),[d.Yearly]:()=>import("./HEIGHT_BOYS.percentile.yearly-5220f0ed.js")},[c.Weight]:{[d.Weekly]:()=>import("./WEIGHT_BOYS.percentile.weekly-f0fd044b.js"),[d.Monthly]:()=>import("./WEIGHT_BOYS.percentile.monthly-fdf41734.js"),[d.Yearly]:()=>import("./WEIGHT_BOYS.percentile.yearly-baacefb5.js")},[c.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_BOYS.percentile.weekly-e763716f.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_BOYS.percentile.monthly-d3176ca9.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_BOYS.percentile.yearly-15dd7089.js")},[c.BMI]:{[d.Weekly]:()=>import("./BMI_BOYS.percentile.weekly-d52c4107.js"),[d.Monthly]:()=>import("./BMI_BOYS.percentile.monthly-b5706fa2.js"),[d.Yearly]:()=>import("./BMI_BOYS.percentile.yearly-57bf13ac.js")}},[s.Girl]:{[c.Height]:{[d.Weekly]:()=>import("./HEIGHT_GIRLS.percentile.weekly-008c2fcf.js"),[d.Monthly]:()=>import("./HEIGHT_GIRLS.percentile.monthly-00506c11.js"),[d.Yearly]:()=>import("./HEIGHT_GIRLS.percentile.yearly-6394bcc1.js")},[c.Weight]:{[d.Weekly]:()=>import("./WEIGHT_GIRLS.percentile.weekly-1eb0eb11.js"),[d.Monthly]:()=>import("./WEIGHT_GIRLS.percentile.monthly-5d13c4b7.js"),[d.Yearly]:()=>import("./WEIGHT_GIRLS.percentile.yearly-af7ff450.js")},[c.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.weekly-edb6382c.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.monthly-81704c8f.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.percentile.yearly-25724214.js")},[c.BMI]:{[d.Weekly]:()=>import("./BMI_GIRLS.percentile.weekly-945297d8.js"),[d.Monthly]:()=>import("./BMI_GIRLS.percentile.monthly-46e4cad1.js"),[d.Yearly]:()=>import("./BMI_GIRLS.percentile.yearly-2f39ba32.js")}}},fe={[s.Boy]:{[c.Height]:{[d.Weekly]:()=>import("./HEIGHT_BOYS.zscore.weekly-1935b181.js"),[d.Monthly]:()=>import("./HEIGHT_BOYS.zscore.monthly-f164d07c.js"),[d.Yearly]:()=>import("./HEIGHT_BOYS.zscore.yearly-e624324d.js")},[c.Weight]:{[d.Weekly]:()=>import("./WEIGHT_BOYS.zscore.weekly-ad484d52.js"),[d.Monthly]:()=>import("./WEIGHT_BOYS.zscore.monthly-1704b7dd.js"),[d.Yearly]:()=>import("./WEIGHT_BOYS.zscore.yearly-1a52d0b2.js")},[c.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_BOYS.zscore.weekly-a6abba31.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_BOYS.zscore.monthly-e1abbd84.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_BOYS.zscore.yearly-a6bb08a1.js")},[c.BMI]:{[d.Weekly]:()=>import("./BMI_BOYS.zscore.weekly-66c1770a.js"),[d.Monthly]:()=>import("./BMI_BOYS.zscore.monthly-dc2667ba.js"),[d.Yearly]:()=>import("./BMI_BOYS.zscore.yearly-0fff8408.js")}},[s.Girl]:{[c.Height]:{[d.Weekly]:()=>import("./HEIGHT_GIRLS.zscore.weekly-a4f649b9.js"),[d.Monthly]:()=>import("./HEIGHT_GIRLS.zscore.monthly-380e2b7f.js"),[d.Yearly]:()=>import("./HEIGHT_GIRLS.zscore.yearly-1d816507.js")},[c.Weight]:{[d.Weekly]:()=>import("./WEIGHT_GIRLS.zscore.weekly-d290c86e.js"),[d.Monthly]:()=>import("./WEIGHT_GIRLS.zscore.monthly-82bd10c9.js"),[d.Yearly]:()=>import("./WEIGHT_GIRLS.zscore.yearly-4f1b32d0.js")},[c.Head]:{[d.Weekly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.weekly-44d6b452.js"),[d.Monthly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.monthly-f557c250.js"),[d.Yearly]:()=>import("./HEAD CIRCUM_GIRLS.zscore.yearly-5bc9a9b6.js")},[c.BMI]:{[d.Weekly]:()=>import("./BMI_GIRLS.zscore.weekly-0eaf17ae.js"),[d.Monthly]:()=>import("./BMI_GIRLS.zscore.monthly-263a408e.js"),[d.Yearly]:()=>import("./BMI_GIRLS.zscore.yearly-4e26c09e.js")}}},be=(e,t,r,l,o)=>{const a=e.slice(t-1,r);let[i,n]=[a[0][l],a[0][l]];return a.forEach((e=>{e[l]>n&&(n=e[l]),e[l]<i&&(i=e[l])})),[(0|i)-o,(0|n)+o]},Ee=(e,t,r,l)=>l===n.Indonesia?fe[e][t][r]():ue[e][t][r](),xe=(e,t)=>{const[r,l]=T(t,Math.ceil(t.length/2)),o=r.map((e=>e.name)),a=l.map((e=>e.name));return o.includes(e)?{data:r,status:"first-half"}:a.includes(e)?{data:l,status:"second-half"}:{data:t,status:"full"}},we=(e,t)=>[...e,...t.map((e=>({name:e.name,history:e.history,risk:e.risk,toolTipLabel:e.toolTipLabel})))].sort(((e,t)=>e.name-t.name)),ve=(e,t,r,l,o)=>[...e,{name:l,history:o,risk:t,toolTipLabel:r}].sort(((e,t)=>e.name-t.name)),Le=(e,t=0)=>{const r=[];for(const l in e){e[l].forEach(((e,o)=>{r[o]?r[o][l]=e:r[o]={name:o+t,[l]:e}}))}return r},Me=(e,t=0)=>Array.from({length:e-t+1},((e,r)=>r+t)),ke=()=>{var e;const t=null===(e=document.getElementsByClassName("recharts-cartesian-grid-vertical"))||void 0===e?void 0:e[0];if(console.log(t),!t)return;const r=t.getElementsByTagName("line");for(let e=0;e<r.length;e++){if(e%2!=0){const l=r[e],o=r[e+1],a=l.getAttribute("x1"),i=l.getAttribute("y"),n=l.getAttribute("height"),s=l.getAttribute("x1"),c=o.getAttribute("x1");console.log({oddLine:l,nextLine:o});const d=document.createElementNS("http://www.w3.org/1999/xhtml","rect");d.setAttribute("stroke",m.colors.primary50),d.setAttribute("fill",m.colors.primary50),d.setAttribute("x",a),d.setAttribute("y",i),d.setAttribute("height",n),d.setAttribute("width",String(Number(c)-Number(s))),t.appendChild(l),t.appendChild(d)}else t.appendChild(r[e]);console.log(t)}},Be=h.div`
|
|
385
385
|
position: relative;
|
|
386
386
|
.custom-chart-label {
|
|
387
387
|
display: flex;
|
package/build/esm/cache.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as getCachedItem,g as getDataWithCache,s as setCachedItem}from"./core-
|
|
1
|
+
export{a as getCachedItem,g as getDataWithCache,s as setCachedItem}from"./core-8a294508.js";import"./tslib.es6-ce48fb77.js";import"./isProduction-81d2313b.js";
|
|
@@ -8,7 +8,7 @@ export type Props = {
|
|
|
8
8
|
careApiDomain: string;
|
|
9
9
|
careFrontDomain?: string;
|
|
10
10
|
initialSearchValue?: string;
|
|
11
|
-
initialSelectedCity?: City;
|
|
11
|
+
initialSelectedCity?: City | undefined | null;
|
|
12
12
|
initTypeSearch?: TypeSearch;
|
|
13
13
|
initSpecialty?: Specialty | null;
|
|
14
14
|
geoLocationPermission?: GeoLocationPermission;
|
|
@@ -13,5 +13,19 @@ export declare const LOCALIZED_SLUGS: {
|
|
|
13
13
|
};
|
|
14
14
|
export declare const ID_OPTION_CURRENT_LOCATION = -1;
|
|
15
15
|
export declare const ID_OPTION_ALL_LOCATION = -2;
|
|
16
|
-
export declare
|
|
16
|
+
export declare enum CLIENT_KEY {
|
|
17
|
+
GSK = "gsk",
|
|
18
|
+
ROCHE = "roche",
|
|
19
|
+
MSD = "msd"
|
|
20
|
+
}
|
|
21
|
+
export declare enum SLUG_CLIENT_KEY {
|
|
22
|
+
GSK = "gsk",
|
|
23
|
+
ROCHE = "roche",
|
|
24
|
+
MSD = "spesialis"
|
|
25
|
+
}
|
|
17
26
|
export declare const SLUG_VACIN_ID = "vaksin-rotavirus";
|
|
27
|
+
export declare const MAPPING_CLIENT_WITH_SLUG: {
|
|
28
|
+
[key in CareLocaleType]: {
|
|
29
|
+
[key: string]: string | null;
|
|
30
|
+
};
|
|
31
|
+
};
|
package/build/esm/care.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{B as BookingSearchBar,a as BookingSearchBarV2,t as CareTypes}from"./types-
|
|
1
|
+
export{B as BookingSearchBar,a as BookingSearchBarV2,t as CareTypes}from"./types-eeb377f6.js";export{c as CareConstants}from"./constants-62b4b521.js";import"./tslib.es6-ce48fb77.js";import"react";import"./useTranslations-83a8d609.js";import"./translationsContext-f2099317.js";import"string-format";import"lodash/debounce";import"./index-aeaddf84.js";import"@mantine/core";import"styled-components";import"./index-c2b264ca.js";import"./theme-f34480d0.js";import"dayjs";import"./screenSizeContext-d934c417.js";import"lodash/throttle";import"./index-dee6ecf7.js";import"date-fns/locale";import"./Onboarding-821fd8e9.js";import"./isProduction-81d2313b.js";import"./gAssets.js";import"react-loading-skeleton";import"lodash/shuffle";import"./useOutsideClick-4511e955.js";import"./paths-3d368f2a.js";import"./cookieHelper-a4536447.js";import"./index-0df2e2d3.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from 'react';
|
|
2
2
|
import { DefaultProps, Selectors } from '@mantine/core';
|
|
3
3
|
import { SiteType } from "../../../interfaces/types";
|
|
4
|
-
import { Role } from "../../../
|
|
4
|
+
import { Role } from "../../../interfaces/types";
|
|
5
5
|
import useStyles from "./index.styles";
|
|
6
6
|
type MyComponentStylesNames = Selectors<typeof useStyles>;
|
|
7
7
|
export interface AuthorBadgeProps extends DefaultProps<MyComponentStylesNames, HTMLAttributes<HTMLDivElement>> {
|
|
@@ -1,35 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export { LocaleType } from "../../interfaces/types";
|
|
3
|
+
import { UserInfo } from "../../interfaces/types";
|
|
3
4
|
export type LogoType = 'hellobacsi' | 'hellosehat' | 'hellohealth' | 'hellotogether' | 'hellocare' | 'logomark' | 'hellodoctor' | 'hellokrupet' | 'helloswasthya' | 'hellosayarwon' | 'helloyishi' | 'hellokhunmor' | 'hellodoktor' | 'marryBaby';
|
|
4
5
|
export type DesktopMenuPopup = 'categories' | 'tools' | 'care' | 'together' | 'profile' | 'language' | 'shop' | 'none';
|
|
5
6
|
export type MobileMenuPopup = 'categories' | 'profile' | 'language' | 'none';
|
|
6
|
-
export type UserRole = 'user' | 'admin';
|
|
7
|
-
export type UserInfo = {
|
|
8
|
-
name?: string;
|
|
9
|
-
phone?: string;
|
|
10
|
-
username?: string;
|
|
11
|
-
avatar?: string;
|
|
12
|
-
email?: string;
|
|
13
|
-
role?: UserRole;
|
|
14
|
-
phone_verified?: boolean;
|
|
15
|
-
birthday?: string;
|
|
16
|
-
gender?: number;
|
|
17
|
-
id?: number;
|
|
18
|
-
bookmarks?: Array<string | number>;
|
|
19
|
-
coralToken?: {
|
|
20
|
-
token?: string;
|
|
21
|
-
isTemp?: boolean;
|
|
22
|
-
};
|
|
23
|
-
total_bookmark?: number;
|
|
24
|
-
first_time_bookmark?: boolean;
|
|
25
|
-
provider?: string;
|
|
26
|
-
phone_verified_at?: string;
|
|
27
|
-
verify_phone_code?: string;
|
|
28
|
-
city_id?: string;
|
|
29
|
-
type_of_pass?: string;
|
|
30
|
-
is_new?: 0 | 1;
|
|
31
|
-
communities_interacted?: 0 | 1;
|
|
32
|
-
};
|
|
33
7
|
export type SearchType = 'doctor' | 'service' | 'hospital' | undefined;
|
|
34
8
|
export type Specialty = {
|
|
35
9
|
name: string;
|
package/build/esm/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{V as AdBlock,A as Alert,e as ArticleCard,f as ArticleCardV2,x as BMICardEmbed,H as BMRCardEmbed,y as BabyGrowthCardEmbed,z as BabyPoopEmbed,B as Badge,a as BorderHeading,N as Breadcrumbs,g as CategoryCard,C as Checkbox,h as CheckboxGroup,s as CookieAcceptConfirm,D as DatePicker,K as DateRangePicker,o as DoctorInfo,w as DueDateCardEmbed,F as FileDropdown,W as FixedBottomAdBlock,r as FloatButtonGroup,d as GenderOptionControl,G as Grid,I as IconText,L as Loading,Z as MAPPING_CATEGORY_PREMIUM_API_TYPE,Y as MAPPING_CATEGORY_PREMIUM_TYPE,M as MobileBottomNavigation,t as MobileBottomNavigationIcon,O as OvulationCardEmbed,J as PWGCardEmbed,P as Pagination,i as ProgressBar,R as Radio,j as RadioGroup,c as RateStars,S as ScrollList,u as SeoHead,Q as ShareContainer,U as ShareDrawer,k as SideMenu,l as StatisticCard,X as SurveyOrPremiumBanner,p as SurveyQuestionCard,q as SurveyThankyouCard,E as THRCardEmbed,m as Table,n as Tabs,T as Tag,b as Toggle,v as ToolsBannerCard}from"./index-
|
|
1
|
+
export{V as AdBlock,A as Alert,e as ArticleCard,f as ArticleCardV2,x as BMICardEmbed,H as BMRCardEmbed,y as BabyGrowthCardEmbed,z as BabyPoopEmbed,B as Badge,a as BorderHeading,N as Breadcrumbs,g as CategoryCard,C as Checkbox,h as CheckboxGroup,s as CookieAcceptConfirm,D as DatePicker,K as DateRangePicker,o as DoctorInfo,w as DueDateCardEmbed,F as FileDropdown,W as FixedBottomAdBlock,r as FloatButtonGroup,d as GenderOptionControl,G as Grid,I as IconText,L as Loading,Z as MAPPING_CATEGORY_PREMIUM_API_TYPE,Y as MAPPING_CATEGORY_PREMIUM_TYPE,M as MobileBottomNavigation,t as MobileBottomNavigationIcon,O as OvulationCardEmbed,J as PWGCardEmbed,P as Pagination,i as ProgressBar,R as Radio,j as RadioGroup,c as RateStars,S as ScrollList,u as SeoHead,Q as ShareContainer,U as ShareDrawer,k as SideMenu,l as StatisticCard,X as SurveyOrPremiumBanner,p as SurveyQuestionCard,q as SurveyThankyouCard,E as THRCardEmbed,m as Table,n as Tabs,T as Tag,b as Toggle,v as ToolsBannerCard}from"./index-9bc1f3fc.js";export{A as Avatar,L as LanguageSwitcher,d as NavigationLogoutPopup,e as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,U as UserProfileNavigation,b as UserProfileNavigationHeader,c as UserProfileNavigationStats,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-e87c657f.js";export{B as Button}from"./index-520c6632.js";export{A as AuthorBadge,a as BookingBtn,B as BtnChoice,D as Divider,b as Dropdown}from"./index.styled-25c54eee.js";export{F as Flag,I as ImageWrap}from"./index-de357fcc.js";export{H as Heading,P as PureInput,S as StepRenderer,b as StepRendererContext,T as TextArea,a as TextDivider}from"./index.styles-08a47bd2.js";export{I as Input}from"./index-aeaddf84.js";export{L as Label}from"./constants-62b4b521.js";export{L as Logo}from"./index-53c3c945.js";export{T as Text}from"./index-ec14d84f.js";export{C as Container}from"./index-0df2e2d3.js";export{I as Icon}from"./index-c2b264ca.js";export{D as Drawer,M as Modal,R as RadioImageGroup}from"./index-f73dc621.js";export{C as CustomReferenceDot}from"./index-bd94f92f.js";export{L as LogoIcon}from"./utils-98720c72.js";export{P as Popup}from"./index-d8c5d2fe.js";export{P as PillCarousel}from"./index-5900c26c.js";export{A as AddressInput}from"./index-cd76c063.js";export{Footer}from"./footer.js";import"react";import"./screenSizeContext-d934c417.js";import"styled-components";import"lodash/throttle";import"./useTranslations-83a8d609.js";import"./translationsContext-f2099317.js";import"string-format";import"lodash/debounce";import"./isProduction-81d2313b.js";import"./index-dee6ecf7.js";import"date-fns/locale";import"./Onboarding-821fd8e9.js";import"./useCategory-9e4dc14f.js";import"./gAssets.js";import"./theme-f34480d0.js";import"./tslib.es6-ce48fb77.js";import"@mantine/core";import"innertext";import"@mantine/dates";import"dayjs";import"@mantine/hooks";import"date-fns";import"./index.styled-b42d28df.js";import"./types-753a5e78.js";import"./index-397e0b7e.js";import"./index-3539c171.js";import"react-hook-form";import"./useHealthToolCache-8bf0c70a.js";import"./getDynamicHealthTool-bdbf31a0.js";import"./core-8a294508.js";import"./normalizeLink-2ea939d2.js";import"./routing-6ae4b0b3.js";import"@hookform/resolvers/yup";import"react-day-picker/DayPickerInput";import"./useOutsideClick-4511e955.js";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"./getSocialList-7696898d.js";import"uuid";import"@mantine/form";import"./index-87e41b39.js";import"js-cookie";import"lodash/flatten";import"react-contenteditable";import"react-dom";import"lodash/uniqBy";import"./constants-898ddd4e.js";import"./cookieHelper-a4536447.js";import"./index-e39cd70d.js";import"./useIsInit-5cd5504d.js";import"dayjs/plugin/relativeTime";import"./number-9a6100c2.js";import"./paths-3d368f2a.js";import"@mantine/carousel";import"react-keyed-flatten-children";import"slugify";import"./useScrollbarSize-6d4db4c6.js";import"./utils-0614ff59.js";
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import{M as e}from"./screenSizeContext-d934c417.js";import i from"styled-components";import a from"react";const t=i.div`
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 100%;
|
|
4
|
+
|
|
5
|
+
&[data-has-error] {
|
|
6
|
+
input {
|
|
7
|
+
border-color: ${e=>e.theme.colors.red700};
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
input {
|
|
12
|
+
width: 100%;
|
|
13
|
+
padding: 12px 16px;
|
|
14
|
+
border: solid 1px ${e=>e.theme.colors.gray200};
|
|
15
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
16
|
+
|
|
17
|
+
&:active,
|
|
18
|
+
&:focus,
|
|
19
|
+
&.focused {
|
|
20
|
+
border-color: ${e=>e.color};
|
|
21
|
+
box-shadow: 0px 0px 2px 2px ${e=>e.shadowColor};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:disabled {
|
|
25
|
+
background-color: ${e=>e.theme.colors.gray100};
|
|
26
|
+
cursor: not-allowed;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&[data-has-action-icon] {
|
|
31
|
+
input {
|
|
32
|
+
padding: 12px 48px 12px 16px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
&[data-has-display-icon] {
|
|
36
|
+
input {
|
|
37
|
+
padding: 12px 16px 12px 48px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&[data-has-action-icon][data-has-display-icon] {
|
|
42
|
+
input {
|
|
43
|
+
padding: 12px 48px;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&[data-size='lg'] {
|
|
48
|
+
input {
|
|
49
|
+
font-size: 16px;
|
|
50
|
+
font-weight: ${e=>e.theme.sizes.fwRegular};
|
|
51
|
+
${e.mbDown} {
|
|
52
|
+
font-size: 22px;
|
|
53
|
+
line-height: 1.2;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
${e.mbUp} {
|
|
57
|
+
font-size: 26px;
|
|
58
|
+
line-height: 1.2;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
&[data-size='md'] {
|
|
63
|
+
input {
|
|
64
|
+
font-weight: ${e=>e.theme.sizes.fwRegular};
|
|
65
|
+
line-height: 22px;
|
|
66
|
+
${e.mbDown} {
|
|
67
|
+
font-size: 14px;
|
|
68
|
+
line-height: 1.2;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
${e.mbUp} {
|
|
72
|
+
font-size: 16px;
|
|
73
|
+
line-height: 1.2;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
&[data-size='sm'] {
|
|
78
|
+
input {
|
|
79
|
+
font-weight: ${e=>e.theme.sizes.fwRegular};
|
|
80
|
+
line-height: 20px;
|
|
81
|
+
${e.mbDown} {
|
|
82
|
+
font-size: 13px;
|
|
83
|
+
line-height: 1.5;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
${e.mbUp} {
|
|
87
|
+
font-size: 13px;
|
|
88
|
+
line-height: 1.5;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
`;i.label`
|
|
93
|
+
display: inline-block;
|
|
94
|
+
margin-bottom: 4px;
|
|
95
|
+
color: ${e=>e.theme.colors.gray600};
|
|
96
|
+
font-weight: ${e=>e.theme.sizes.fwBold};
|
|
97
|
+
`;const s=i.label`
|
|
98
|
+
color: ${e=>e.theme.colors.red700};
|
|
99
|
+
font-weight: ${e=>e.theme.sizes.fwRegular};
|
|
100
|
+
`,o=i.div`
|
|
101
|
+
position: absolute;
|
|
102
|
+
top: 50%;
|
|
103
|
+
right: 16px;
|
|
104
|
+
cursor: pointer;
|
|
105
|
+
transform: translateY(-50%);
|
|
106
|
+
`,n=i.div`
|
|
107
|
+
position: absolute;
|
|
108
|
+
top: 50%;
|
|
109
|
+
left: 16px;
|
|
110
|
+
display: inline-flex;
|
|
111
|
+
cursor: default;
|
|
112
|
+
transform: translateY(-50%);
|
|
113
|
+
`;var r="DjBFAbd";const l=({children:e,className:i,style:t,htmlFor:s,size:o})=>a.createElement("label",{"data-size":o,className:`${r} ${i||""}`,style:t,htmlFor:s},e),d={"en-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"tl-PH":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"zh-TW":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"},"vi-VN":{ALL:"tat-ca",HOSPITAL:"benh-vien",SERVICE:"dich-vu",DOCTOR:"bac-si",SEARCH:"tim-kiem",SPECIALTIES:"chuyen-khoa",CURRENT:"vi-tri-hien-tai"},"id-ID":{ALL:"semua",HOSPITAL:"rumah-sakit",SERVICE:"layanan",DOCTOR:"dokter",SEARCH:"cari",SPECIALTIES:"spesialisasi",CURRENT:"posisi-saya-saat-ini"},"ms-MY":{ALL:"all",HOSPITAL:"hospital",SERVICE:"service",DOCTOR:"doctor",SEARCH:"search",SPECIALTIES:"specialties",CURRENT:"current-location"}},c=-1,p=-2;var h,m;!function(e){e.GSK="gsk",e.ROCHE="roche",e.MSD="msd"}(h||(h={})),function(e){e.GSK="gsk",e.ROCHE="roche",e.MSD="spesialis"}(m||(m={}));const E="vaksin-rotavirus",C={"vi-VN":{gsk:m.GSK,msd:m.MSD},"id-ID":{gsk:m.GSK,msd:m.MSD},"en-PH":{},"zh-TW":{},"ms-MY":{},"tl-PH":{}};var I=Object.freeze({__proto__:null,basePath:"/care",LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},LOCALIZED_SLUGS:d,ID_OPTION_CURRENT_LOCATION:-1,ID_OPTION_ALL_LOCATION:-2,get CLIENT_KEY(){return h},get SLUG_CLIENT_KEY(){return m},SLUG_VACIN_ID:E,MAPPING_CLIENT_WITH_SLUG:C});export{h as C,p as I,l as L,C as M,t as S,d as a,n as b,I as c,o as d,s as e,c as f,E as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./index-dcf659dc.js";import{i as e}from"./isProduction-691e9a27.js";const o="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,l="undefined"==typeof window,t=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",i=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",s=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,n=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",a={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},h=o?"http://localhost:3001":e?`https://${a[t]}`:`https://discover.${a[t]}`,c=e?`https://wp.${a[t]}/`:`https://staging.${a[t]}/`,E=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:`https://together.${a[t]}/`,p=`${h}/community`,T=process.env.NEXT_PUBLIC_SSO_URL||"http://staging-id.hellobacsi.com/";var I;!function(e){e[e.FEMALE=0]="FEMALE",e[e.MALE=1]="MALE",e[e.ANY=2]="ANY"}(I||(I={}));const O={"vi-VN":{HOME:()=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#website","@type":"WebSite",description:"Hello Bacsi - Health Information",inLanguage:"vi-VN",name:"Hello Bacsi",potentialAction:[{"@type":"SearchAction","query-input":"required name=search_term_string",target:"https://hellobacsi.com/shop/tim-kiem/?keyword={search_term_string}"}],url:"https://hellobacsi.com/shop/"}]}),CATEGORY:(e="",o=0,l=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/danh-muc","@type":"WebPage",name:"Hello Bacsi - Danh Muc",url:"https://hellobacsi.com/shop/danh-muc"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:l}]}),BRAND:(e="",o=0,l=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/thuong-hieu","@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/thuong-hieu"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:l}]}),BRAND_DETAIL:(e="",o=0,l)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/thuong-hieu/#brand","@type":"BrandDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop${e}`}}]},{"@type":"BrandDetail",url:`https://hellobacsi.com/shop${e}`,numberOfItems:o,itemListElement:null!=l?l:{}}]}),PRODUCT_DETAIL:(e="",o=0,l)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/san-pham/#product","@type":"ProductDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop/san-pham/${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop/san-pham/${e}`}}]},{"@type":"BrandDetail",url:e,numberOfItems:o,itemListElement:null!=l?l:{}}]})}};var _=Object.freeze({__proto__:null,isDevelopment:o,IS_SSR:l,locale:t,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:i,GOOGLE_ADMIN_LOCATION_KEY:s,GOOGLE_CLIENT_ID:n,GOOGLE_CALENDAR_API_KEY:"",basePath:"shop",SSO_USER_BASE_PATH:"user",CARE_BASE_PATH:"care",COMMUNITY_BASE_PATH:"community",HEALTH_TOOLs_BASE_PATH:"health-tools",NOTIFICATION_TIME_OUT:3e3,DOMAIN_LOCALES:a,DISCOVER_URL_FE:h,DISCOVER_URL_BE:c,TOGETHER_URL_BE:E,TOGETHER_URL_FE:p,SSO_URL:T,DISCOVERY_FOOTER_URL:"#",HEALTH_CARE_FOOTER_URL:"#",HEALTH_TOOLS_FOOTER_URL:"#",HEALTH_TOGETHER_FOOTER_URL:"#",POLICIES_FOOTER_URL:"#",FAQ_FOOTER_URL:"#",SITEMAP_FOOTER_URL:"#",ABOUT_US_FOOTER_URL:"#",EXECUTIVE_BIOS_FOOTER_URL:"#",ADVERTISING_FOOTER_URL:"#",CONTACT_US_FOOTER_URL:"#",ABOUT_GO_CARE_FOOTER_URL:"#",get Gender(){return I},EMAIL_REGEX:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,COUNTRY_SITENAME:{ID:"Hello Sehat",TH:"Hello Khunmor",MY:"Hello Doktor",KH:"Hello Krupet",TW:"Hello Yishi",MM:"Hello Sayarwon",IN:"Hello Swasthya",VN:"Hello Bacsi",PH:"Hello Doctor"},LOCALE_SPECS:{"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png"}},SOCIAL_MEDIA:{"vi-VN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellobacsi/",INSTAGRAM:"https://www.instagram.com/hellobacsi/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCYHzHDXngnB7jkmcQgXwE0w"},"en-PH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoctorPH/",INSTAGRAM:"https://www.instagram.com/hellodoctor_ph/",TWITTER:null},"km-KH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokrupet/",INSTAGRAM:"https://www.instagram.com/hellokrupetofficial/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCVK4p9YPIMkmoerk3X-y-TQ"},"ms-MY":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoktorMY/",INSTAGRAM:"https://www.instagram.com/_hellodoktor_/",TWITTER:null},"id-ID":{LINKEDIN:"https://www.linkedin.com/company/hello-sehat/",FACEBOOK:"https://www.facebook.com/hellosehat",INSTAGRAM:"https://www.instagram.com/hellosehat/",TWITTER:"https://twitter.com/HelloSehat"},"my-MM":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellosayarwon/",INSTAGRAM:"https://www.facebook.com/hellosayarwon/",TWITTER:null},"zh-TW":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/helloyishi/",INSTAGRAM:"https://www.instagram.com/helloyishi/",TWITTER:null},"hi-IN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloSwasthya/",INSTAGRAM:"https://www.instagram.com/hello_swasthya/",TWITTER:null},"th-TH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokhunmor/",INSTAGRAM:"https://www.instagram.com/hellokhunmor/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCbdbow4UhKfa7rqIhclNPIQ/"}},FLAG_LINKS:{ID:"https://hellosehat.com/",TH:"https://hellokhunmor.com/",MY:"https://hellodoktor.com/",KH:"https://hellokrupet.com/",TW:"https://helloyishi.com.tw/",MM:"https://hellosayarwon.com/",IN:"https://helloswasthya.com/",VN:"https://hellobacsi.com/",PH:"https://hellodoctor.com.ph/"},STATIC_PAGES:{"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"}},FAVICONS:{"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}]},LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},MAX_ALLOWED_IMG_SIZE:20971520,COUNTRY_CODE_BY_LOCALE:{"vi-VN":"vn","id-ID":"id","ms-MY":"my","km-KH":"kh","en-PH":"ph","th-TH":"th","my-MM":"mm","zh-TW":"tw","hi-IN":"in"},COUNTRY_CURRENCY_SYMBOL:{"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},CURRENCY_PREFIX:{IDR:"Dimulai dari"},LOCALISED_SLUGS:{"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}},HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:O});export{h as D,_ as c};
|
|
1
|
+
import"./index-dee6ecf7.js";import{i as e}from"./isProduction-81d2313b.js";const o="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,l="undefined"==typeof window,t=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",i=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",s=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,n=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",a={"vi-VN":"hellobacsi.com","id-ID":"hellosehat.com","ms-MY":"hellodoktor.com","km-KH":"hellokrupet.com","en-PH":"hellodoctor.com.ph","th-TH":"hellokhunmor.com","my-MM":"hellosayarwon.com","zh-TW":"helloyishi.com.tw","hi-IN":"helloswasthya.com"},h=o?"http://localhost:3001":e?`https://${a[t]}`:`https://discover.${a[t]}`,c=e?`https://wp.${a[t]}/`:`https://staging.${a[t]}/`,E=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:`https://together.${a[t]}/`,p=`${h}/community`,T=process.env.NEXT_PUBLIC_SSO_URL||"http://staging-id.hellobacsi.com/";var I;!function(e){e[e.FEMALE=0]="FEMALE",e[e.MALE=1]="MALE",e[e.ANY=2]="ANY"}(I||(I={}));const O={"vi-VN":{HOME:()=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#website","@type":"WebSite",description:"Hello Bacsi - Health Information",inLanguage:"vi-VN",name:"Hello Bacsi",potentialAction:[{"@type":"SearchAction","query-input":"required name=search_term_string",target:"https://hellobacsi.com/shop/tim-kiem/?keyword={search_term_string}"}],url:"https://hellobacsi.com/shop/"}]}),CATEGORY:(e="",o=0,l=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/danh-muc","@type":"WebPage",name:"Hello Bacsi - Danh Muc",url:"https://hellobacsi.com/shop/danh-muc"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:l}]}),BRAND:(e="",o=0,l=[])=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/#breadcrumb","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/","@type":"WebPage",name:"Hello Bacsi",url:"https://hellobacsi.com/shop/"}},{"@type":"ListItem",item:{"@id":"https://hellobacsi.com/shop/thuong-hieu","@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/thuong-hieu"}}]},{"@type":"ItemList",url:e,numberOfItems:o,itemListElement:l}]}),BRAND_DETAIL:(e="",o=0,l)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/thuong-hieu/#brand","@type":"BrandDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop${e}`}}]},{"@type":"BrandDetail",url:`https://hellobacsi.com/shop${e}`,numberOfItems:o,itemListElement:null!=l?l:{}}]}),PRODUCT_DETAIL:(e="",o=0,l)=>JSON.stringify({"@context":"https://schema.org","@graph":[{"@id":"https://hellobacsi.com/shop/san-pham/#product","@type":"ProductDetail",itemListElement:[{"@type":"Item",item:{"@id":`https://hellobacsi.com/shop/san-pham/${e}`,"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:`https://hellobacsi.com/shop/san-pham/${e}`}}]},{"@type":"BrandDetail",url:e,numberOfItems:o,itemListElement:null!=l?l:{}}]})}};var _=Object.freeze({__proto__:null,isDevelopment:o,IS_SSR:l,locale:t,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:i,GOOGLE_ADMIN_LOCATION_KEY:s,GOOGLE_CLIENT_ID:n,GOOGLE_CALENDAR_API_KEY:"",basePath:"shop",SSO_USER_BASE_PATH:"user",CARE_BASE_PATH:"care",COMMUNITY_BASE_PATH:"community",HEALTH_TOOLs_BASE_PATH:"health-tools",NOTIFICATION_TIME_OUT:3e3,DOMAIN_LOCALES:a,DISCOVER_URL_FE:h,DISCOVER_URL_BE:c,TOGETHER_URL_BE:E,TOGETHER_URL_FE:p,SSO_URL:T,DISCOVERY_FOOTER_URL:"#",HEALTH_CARE_FOOTER_URL:"#",HEALTH_TOOLS_FOOTER_URL:"#",HEALTH_TOGETHER_FOOTER_URL:"#",POLICIES_FOOTER_URL:"#",FAQ_FOOTER_URL:"#",SITEMAP_FOOTER_URL:"#",ABOUT_US_FOOTER_URL:"#",EXECUTIVE_BIOS_FOOTER_URL:"#",ADVERTISING_FOOTER_URL:"#",CONTACT_US_FOOTER_URL:"#",ABOUT_GO_CARE_FOOTER_URL:"#",get Gender(){return I},EMAIL_REGEX:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,COUNTRY_SITENAME:{ID:"Hello Sehat",TH:"Hello Khunmor",MY:"Hello Doktor",KH:"Hello Krupet",TW:"Hello Yishi",MM:"Hello Sayarwon",IN:"Hello Swasthya",VN:"Hello Bacsi",PH:"Hello Doctor"},LOCALE_SPECS:{"vi-VN":{LOGO_TYPE:"hellobacsi",SITE_NAME:"HelloBacsi",SITE_NAME_FORMATTED:"Hello Bacsi",HOMEPAGE_IMAGE:"https://hellobacsi.com/images/country-thumbnails/VN.png",SITE_ID:"1",INSIDER_TAG:"//hellobacsivn.api.useinsider.com/ins.js?id=10003798",TOOLTIP_IMAGE:"/images/tooltips-vn.png"},"en-PH":{LOGO_TYPE:"hellodoctor",SITE_NAME:"HelloDoctor",HOMEPAGE_IMAGE:"https://hellodoctor.com.ph/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Doctor",SITE_ID:"9",CATEGORIES_TYPE:"short",INSIDER_TAG:"//hellodoctorph.api.useinsider.com/ins.js?id=10004527",TOOLTIP_IMAGE:"/images/tooltips-ph.png"},"th-TH":{LOGO_TYPE:"hellokhunmor",SITE_NAME:"HelloKhunmor",HOMEPAGE_IMAGE:"https://hellokhunmor.com/images/country-thumbnails/TH.png",SITE_NAME_FORMATTED:"Hello Khunmor",SITE_ID:"3",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokhunmor.api.useinsider.com/ins.js?id=10004524",TOOLTIP_IMAGE:"/images/tooltips-th.png"},"km-KH":{LOGO_TYPE:"hellokrupet",SITE_NAME:"HelloKrupet",HOMEPAGE_IMAGE:"https://hellokrupet.com/images/country-thumbnails/KH.JPG",SITE_NAME_FORMATTED:"Hello Krupet",SITE_ID:"4",CATEGORIES_TYPE:"long",INSIDER_TAG:"//hellokrupet.api.useinsider.com/ins.js?id=10004523",TOOLTIP_IMAGE:"/images/tooltips-kh.png"},"my-MM":{LOGO_TYPE:"hellosayarwon",SITE_NAME:"HelloSayarwon",HOMEPAGE_IMAGE:"https://hellosayarwon.com/images/country-thumbnails/PH.png",SITE_NAME_FORMATTED:"Hello Sayarwon",SITE_ID:"7",INSIDER_TAG:"//hellosayarwon.api.useinsider.com/ins.js?id=10004522"},"zh-TW":{LOGO_TYPE:"helloyishi",SITE_NAME:"HelloYishi",HOMEPAGE_IMAGE:"https://helloyishi.com.tw/images/country-thumbnails/TW.png",SITE_NAME_FORMATTED:"Hello Yishi",SITE_ID:"6",INSIDER_TAG:"//helloyishi.api.useinsider.com/ins.js?id=10004526",TOOLTIP_IMAGE:"/images/tooltips-tw.png"},"id-ID":{LOGO_TYPE:"hellosehat",SITE_NAME:"HelloSehat",HOMEPAGE_IMAGE:"https://hellosehat.com/images/country-thumbnails/ID.png",SITE_NAME_FORMATTED:"Hello Sehat",SITE_ID:"2",INSIDER_TAG:"//hellosehat.api.useinsider.com/ins.js?id=10003799",TOOLTIP_IMAGE:"/images/tooltips-id.png"},"hi-IN":{LOGO_TYPE:"helloswasthya",SITE_NAME:"HelloSwasthya",HOMEPAGE_IMAGE:"https://helloswasthya.com/images/country-thumbnails/IN.png",SITE_NAME_FORMATTED:"हैलो स्वास्थ्य",SITE_ID:"8",CATEGORIES_TYPE:"long",INSIDER_TAG:"//helloswasthya.api.useinsider.com/ins.js?id=10004498",TOOLTIP_IMAGE:"/images/tooltips-in.png"},"ms-MY":{LOGO_TYPE:"hellodoktor",SITE_NAME:"HelloDoktor",HOMEPAGE_IMAGE:"https://hellodoktor.com/images/country-thumbnails/MY.png",SITE_NAME_FORMATTED:"Hello Doktor",SITE_ID:"5",INSIDER_TAG:"//hellodoktor.api.useinsider.com/ins.js?id=10004525",TOOLTIP_IMAGE:"/images/tooltips-my.png"}},SOCIAL_MEDIA:{"vi-VN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellobacsi/",INSTAGRAM:"https://www.instagram.com/hellobacsi/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCYHzHDXngnB7jkmcQgXwE0w"},"en-PH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoctorPH/",INSTAGRAM:"https://www.instagram.com/hellodoctor_ph/",TWITTER:null},"km-KH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokrupet/",INSTAGRAM:"https://www.instagram.com/hellokrupetofficial/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCVK4p9YPIMkmoerk3X-y-TQ"},"ms-MY":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloDoktorMY/",INSTAGRAM:"https://www.instagram.com/_hellodoktor_/",TWITTER:null},"id-ID":{LINKEDIN:"https://www.linkedin.com/company/hello-sehat/",FACEBOOK:"https://www.facebook.com/hellosehat",INSTAGRAM:"https://www.instagram.com/hellosehat/",TWITTER:"https://twitter.com/HelloSehat"},"my-MM":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellosayarwon/",INSTAGRAM:"https://www.facebook.com/hellosayarwon/",TWITTER:null},"zh-TW":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/helloyishi/",INSTAGRAM:"https://www.instagram.com/helloyishi/",TWITTER:null},"hi-IN":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/HelloSwasthya/",INSTAGRAM:"https://www.instagram.com/hello_swasthya/",TWITTER:null},"th-TH":{LINKEDIN:"https://www.linkedin.com/company/hello-health-group/",FACEBOOK:"https://www.facebook.com/hellokhunmor/",INSTAGRAM:"https://www.instagram.com/hellokhunmor/",TWITTER:null,YOUTUBE:"https://www.youtube.com/channel/UCbdbow4UhKfa7rqIhclNPIQ/"}},FLAG_LINKS:{ID:"https://hellosehat.com/",TH:"https://hellokhunmor.com/",MY:"https://hellodoktor.com/",KH:"https://hellokrupet.com/",TW:"https://helloyishi.com.tw/",MM:"https://hellosayarwon.com/",IN:"https://helloswasthya.com/",VN:"https://hellobacsi.com/",PH:"https://hellodoctor.com.ph/"},STATIC_PAGES:{"vi-VN":{PRIVACY:"/privacy",TERM_OF_USE:"/dieu-khoan-su-dung",PRIVACY_POLICY:"/chinh-sach-quyen-rieng-tu",EDITORIAL_CORRECTIONS_POLICY:"/chinh-sach-bien-tap-chinh-sua",ADVERTISING_SPONSOR_POLICY:"/chinh-sach-quang-cao-tai-tro",POLICIES:"/chinh-sach",FAQS:"/thong-tin-quan-trong",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/quang-cao-voi-chung-toi",CONTACT_US:"/lien-he",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-bacsi/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"km-KH":{POLICIES:"/policies",TERM_OF_USE:"/ខនិងលក្ខខណ្ឌ",PRIVACY_POLICY:"/គោលការណ៍ឯកជនភាព",EDITORIAL_CORRECTIONS_POLICY:"/គោលការណ៍ខ្លឹមសារមាតិកា",ADVERTISING_SPONSOR_POLICY:"/គោលការណ៍ផ្សាយពាណិជ្ជកម",FAQS:"/faqs",SITEMAP:"/sitemap",ABOUT_US:"/about-us",ADVERTISEMENT:"/advertisement",CONTACT_US:"/contact-us",ABOUT_GO_CARE:"/about-go-care",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"/#",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"en-PH":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"my-MM":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"zh-TW":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/advertising",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,FACILITY:"/facility",HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"id-ID":{POLICIES_EN:"/policies",TERM_OF_USE:"/kebijakan-pengguna",PRIVACY_POLICY:"/kebijakan-privasi",EDITORIAL_CORRECTIONS_POLICY:"/kebijakan-editorial",ADVERTISING_SPONSOR_POLICY:"/kebijakan-iklan",POLICIES:"/kebijakan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/kontak-kami",CONTACT_EN:"/contact",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/hello-sehat/",RECRUITMENT:"https://hellohealthgroup.com/careers/",EDITORIAL_POLICY:"/edit-id",EDITORIAL_POLICY_EN:"/edit-en"},"hi-IN":{POLICIES:"/policies",TERM_OF_USE:"/terms-of-use",PRIVACY_POLICY:"/privacy-policy",EDITORIAL_CORRECTIONS_POLICY:"/editorial-and-corrections-policy",ADVERTISING_SPONSOR_POLICY:"/advertising-and-sponsor-policy",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:null,CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"ms-MY":{POLICIES:"/polisi-terma-syarat",TERM_OF_USE:"/terma-dan-syarat",PRIVACY_POLICY:"/polisi-privasi",EDITORIAL_CORRECTIONS_POLICY:"/polisi-editorial",ADVERTISING_SPONSOR_POLICY:"/polisi-pengiklanan",FAQS:null,SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/pengiklanan",CONTACT_US:"/hubungi-kami",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:" https://hellohealthgroup.com/hello-doktor/",RECRUITMENT:"https://hellohealthgroup.com/careers/"},"th-TH":{POLICIES_EN:"/policies",TERM_OF_USE:"/เงื่อนใขการใช้งาน",PRIVACY_POLICY:"/นโยบายความเป็นส่วนตัว",EDITORIAL_CORRECTIONS_POLICY:"/นโยบายบรรณธิการ",ADVERTISING_SPONSOR_POLICY:"/นโยบายการโฆษณาและผู้สนับสนุน",POLICIES:"/นโยบาย",FAQS:"/คำถามที่พบบ่อย",SITEMAP:null,ABOUT_US:"/about-us",ADVERTISEMENT:"/ลงโฆษณากับเรา",CONTACT_US:"/contact-us",ABOUT_GO_CARE:null,HEALTH_TOOLS:"/health-tools",EXECUTIVE_BIOS:"https://hellohealthgroup.com/management-team/",RECRUITMENT:"https://hellohealthgroup.com/careers/"}},FAVICONS:{"vi-VN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"km-KH":[{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/km-KH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/km-KH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/km-KH/icon-270x270.png"}],"en-PH":[{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/en-PH/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon",href:"/by-locales/en-PH/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/en-PH/icon-270x270.png"}],"id-ID":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"ms-MY":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"th-TH":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"my-MM":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"zh-TW":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}],"hi-IN":[{type:"link",rel:"shortcut icon",href:"/by-locales/vi-VN/favicon.ico"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-32x32.png",sizes:"32x32"},{type:"link",rel:"icon",href:"/by-locales/vi-VN/icon-192x192.png",sizes:"192x192"},{type:"link",rel:"apple-touch-icon-precomposed",href:"/by-locales/vi-VN/icon-180x180.png"},{type:"meta",name:"msapplication-TileImage",content:"/by-locales/vi-VN/icon-270x270.png"}]},LOCALE_COUNTRY:{"vi-VN":{id:1,name:"Vietnam"},"id-ID":{id:2,name:"Indonesia"},"ms-MY":{id:3,name:"Malaysia"},"km-KH":{id:4,name:"Cambodia"},"en-PH":{id:5,name:"Philippines"},"th-TH":{id:6,name:"Thai Lan"},"my-MM":{id:7,name:"Myanmar"},"zh-TW":{id:8,name:"Taiwan"},"hi-IN":{id:9,name:"India"}},MAX_ALLOWED_IMG_SIZE:20971520,COUNTRY_CODE_BY_LOCALE:{"vi-VN":"vn","id-ID":"id","ms-MY":"my","km-KH":"kh","en-PH":"ph","th-TH":"th","my-MM":"mm","zh-TW":"tw","hi-IN":"in"},COUNTRY_CURRENCY_SYMBOL:{"vi-VN":"₫","id-ID":"Rp","ms-MY":"RM","km-KH":"៛","en-PH":"₱","th-TH":"฿","my-MM":"K","zh-TW":"$","hi-IN":"₹"},CURRENCY_PREFIX:{IDR:"Dimulai dari"},LOCALISED_SLUGS:{"en-PH":{PRODUCT:"product",CATEGORY:"category",BRAND:"brand",SEARCH:"search",PROFILE:"profile",PROFILE_MANAGE_ORDERS:"profile/manage-orders",PROFILE_MANAGE_ADDRESS:"profile/deliver-address",PROFILE_VOUCHER:"profile/voucher",PROFILE_MEMBER_CARD:"profile/member-card",CART:"cart",CART_CHECKOUT:"cart/checkout",ORDER_CONFIRMATION:"order-confirmation",PROMOTION:"promotion"},"vi-VN":{PRODUCT:"san-pham",CATEGORY:"danh-muc",BRAND:"thuong-hieu",SEARCH:"tim-kiem",PROFILE:"ho-so",PROFILE_MANAGE_ORDERS:"ho-so/quan-li-don-hang",PROFILE_MANAGE_ADDRESS:"ho-so/dia-chi-giao-hang",PROFILE_VOUCHER:"ho-so/khuyen-mai",PROFILE_MEMBER_CARD:"ho-so/the-thanh-vien",CART:"gio-hang",CART_CHECKOUT:"gio-hang/thanh-toan",ORDER_CONFIRMATION:"kiem-tra-don-hang",PROMOTION:"khuyen-mai"}},HEADER_LOGO_ALIGNMENT:"188px",globalFontFamily:"Inter",ENABLE_COMMUNITY_LOCALES:["vi-VN","id-ID","ms-MY","en-PH","th-TH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:O});export{h as D,_ as c};
|
package/build/esm/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"date-fns/locale";import"./Onboarding-
|
|
1
|
+
import"date-fns/locale";import"./Onboarding-821fd8e9.js";export{B as BEARER_TOKEN_COOKIE,b as CARE_BOOKING_LOCALES,C as CARE_LOCALES,c as CDN_ADDRESS,D as DATE_FNS_LOCALE,E as ECOM_LOCALES,F as FAVICONS,G as GA_TOKEN_COOKIE,I as ISO_FORMAT,L as LOCALE_SPECS,Q as QUERY_HEALTH_TOOL,R as RISK_SCREENER_NAME,a as RISK_SCREENER_SLUG,S as STATIC_PAGES,T as TOGETHER_LOCALES,U as UP_BASEPATH,e as USER_GEOLOCATION_COORDINATES_COOKIE,d as domainLocales,f as siteHost,s as siteOptions}from"./index-dee6ecf7.js";export{i as isProduction}from"./isProduction-81d2313b.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./tslib.es6-
|
|
1
|
+
import{a as t}from"./tslib.es6-ce48fb77.js";import{i as e}from"./isProduction-81d2313b.js";const a={},i=t=>{if("undefined"!=typeof window){let a;try{a=JSON.parse(localStorage.getItem((e?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return a||{}}return a[t]},o=(t,i)=>{try{"undefined"!=typeof window?localStorage.setItem((e?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:i,time:Date.now()})):a[t]={data:i,time:Date.now()}}catch(t){}},n=(e,a,n,r=9e5)=>t(void 0,void 0,void 0,(function*(){const t=i(e);if(t&&t.data&&t.time&&Date.now()-t.time<r)return t.data;if(a){const t=yield a();return n&&!n(t)||o(e,t),t}return null}));export{i as a,n as g,o as s};
|
package/build/esm/ecom.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as o}from"./theme-ffd749fb.js";export{c as Constants}from"./constants-d5a98619.js";export{t as Types}from"./types-ff49c0cf.js";import"./index-dcf659dc.js";import"date-fns/locale";import"./Onboarding-e0b6f2a2.js";import"./isProduction-691e9a27.js";var e=Object.freeze({__proto__:null}),i=Object.freeze({__proto__:null});function l(t){return null!=t}const a={formatAutoCompleteAddress:t=>t&&t.place_id?{placeId:t.place_id,description:t.description||""}:null,formatPrice:(t,o)=>{const e="string"==typeof t?parseInt(t):t;return new Intl.NumberFormat(o||"vi-VN").format(e)},formatHotSearchKeyword:t=>({text:(null==t?void 0:t.name)||""}),formatHelpfulUrl:t=>({name:(null==t?void 0:t.name)||"",featuredImage:(null==t?void 0:t.featured_image)||"",url:(null==t?void 0:t.url)||""}),formatCategory:function(t,e,i){var l,r,n;const d=i?i+"/"+t.slug:t.slug,u=(null===(r=null===(l=null==t?void 0:t.children)||void 0===l?void 0:l.map)||void 0===r?void 0:r.call(l,(o=>a.formatCategory(o,t.id,d))))||[];return{id:null==t?void 0:t.id,name:(null==t?void 0:t.name)||"",logo:(null==t?void 0:t.logo)||"",slug:(null==t?void 0:t.slug)||"",fullSlug:d||"",children:u,backgroundColor:t.color||o.colors.teal50,parentId:e||0,products:(null===(n=t.products)||void 0===n?void 0:n.map(a.formatProduct))||[]}},formatFooterInfo:t=>{var o,e,i,l,a,r,n,d,u,s,m,c,v,p,_,g,f,b,h;const y=(null===(i=null===(e=null===(o=null==t?void 0:t.branch)||void 0===o?void 0:o.branch)||void 0===e?void 0:e.map)||void 0===i?void 0:i.call(e,(t=>({flag:t.flag||"",name:t.name||"",url:t.url||""}))))||[],x=(null===(r=null===(a=null===(l=null==t?void 0:t.general)||void 0===l?void 0:l.verified)||void 0===a?void 0:a.map)||void 0===r?void 0:r.call(a,(t=>({image:t.image||"",url:t.url||""}))))||[],P=(null===(d=null===(n=null==t?void 0:t.menu)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,(t=>{var o,e;return{menu_title:t.menu_title,items:null===(e=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({title:t.title,url:t.url})))}})))||[],C=(null===(m=null===(s=null===(u=null==t?void 0:t.social)||void 0===u?void 0:u.socials)||void 0===s?void 0:s.map)||void 0===m?void 0:m.call(s,(t=>({icon:t.icon||"",name:t.name||"",url:t.url||""}))))||[];return{branch:{title:(null===(c=null==t?void 0:t.branch)||void 0===c?void 0:c.title)||"",branch:y},general:{logo:null!==(p=null===(v=null==t?void 0:t.general)||void 0===v?void 0:v.logo)&&void 0!==p?p:"",content:null!==(g=null===(_=null==t?void 0:t.general)||void 0===_?void 0:_.content)&&void 0!==g?g:"",copyright:null!==(b=null===(f=null==t?void 0:t.general)||void 0===f?void 0:f.copyright)&&void 0!==b?b:"",verified:x},menu:P,social:{title:(null===(h=null==t?void 0:t.social)||void 0===h?void 0:h.title)||"",socials:C}}},formatNavigation:function(t){var o,e,i,l,r,n;return{hotSearchKeywords:(null===(e=null===(o=null==t?void 0:t.hot_search_keywords)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatHotSearchKeyword))||[],helpfulUrls:(null===(l=null===(i=null==t?void 0:t.helpful_urls)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,a.formatHelpfulUrl))||[],categories:(null===(n=null===(r=null==t?void 0:t.categories)||void 0===r?void 0:r.map)||void 0===n?void 0:n.call(r,(t=>a.formatCategory(t))))||[],footer:a.formatFooterInfo(null==t?void 0:t.footer),storeId:(null==t?void 0:t.store_id)||0,customerId:(null==t?void 0:t.customer_id)||0,cartItemsQty:"number"==typeof(null==t?void 0:t.cart_items_qty)?t.cart_items_qty:null}},formatPriceInfo:t=>t?{final:t.final||0,regular:t.regular||0,discountPercent:t.discount_percent||0}:null,formatProduct:function(t){var o,e,i,r;if(!t)return null;const n={final:0,regular:0,discountPercent:0};return{id:t.id||0,price:t.price&&a.formatPriceInfo(t.price)||n,thumbnail:t.thumbnail||"",name:t.name||"",averageRating:Number((t.average_rating||0).toFixed(2)),reviewsCount:t.reviews_count||0,tag:t.tag||null,sku:t.sku||"",slug:t.slug||"",images:t.images||[],tags:t.tags||[],unit:t.unit||"",brand:t.brand?{name:t.brand.name||"",image:t.brand.image||"",slug:t.brand.slug||"",productsCount:t.brand.products_count||0}:null,description:t.description||"",productPromotions:(null===(e=null===(o=t.product_promotions)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatProductPromotion).filter(l))||[],categories:(null===(r=null===(i=t.categories)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,(t=>a.formatCategory(t))).filter(l))||[],isInStock:(null==t?void 0:t.is_in_stock)||!1}},formatBanner:t=>t?{name:t.name||"",url:t.url||"",featuredImage:t.featured_image||"",alt:t.image_alt}:null,formatBlogPost:t=>{var o,e;return t?{title:t.title||"",image:t.image||"",link:t.link||"",postData:t.post_data?{reviewed:t.post_data.reviewed?{author:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.author||void 0),editor:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.editor||void 0),expert:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.expert||void 0),factCheck:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(t.post_data.reviewed.is_author)}:null,categories:t.post_data.categories?null===(e=(o=t.post_data.categories).map)||void 0===e?void 0:e.call(o,(t=>({termId:t.term_id||0,name:t.name||"",permalink:t.permalink||"",textColor:t.text_color||""}))):[],postDate:t.post_data.post_date||"",postModified:t.post_data.post_modified||"",modifiedTime:t.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:t=>t?{id:t.ID||0,userId:t.user_id||0,formerRole:t.former_role||"",role:t.role||"",slug:t.slug||"",displayName:t.display_name||"",description:t.description||"",profileUrl:t.profile_url||"",avatar:t.avatar||"",avatarThumbnail:t.avatar_thumbnail||"",turnOffProfile:Boolean(t.turn_off_profile)}:null,formatBrand:function(t){var o,e,i,r;return t?{id:t.id||0,image:t.image||"",position:t.position||"",isPopular:t.is_popular||!1,summary:t.summary||"",name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(e=null===(o=t.banners)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatBanner).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[]}:null},formatHomePage:t=>{var o,e,i,r,n,d,u,s,m,c,v,p,_,g,f,b,h,y,x,P;return t?{brands:t.brands?null===(e=(o=t.brands).map)||void 0===e?void 0:e.call(o,a.formatBrand).filter(l):[],hotDeals:t.hot_deals?null===(r=(i=t.hot_deals).map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l):[],newProducts:t.new_products?null===(d=(n=t.new_products).map)||void 0===d?void 0:d.call(n,a.formatProduct).filter(l):[],slideBanners:t.slide_banners?null===(s=(u=t.slide_banners).map)||void 0===s?void 0:s.call(u,a.formatBanner).filter(l):[],subBanners:t.sub_banners?null===(c=(m=t.sub_banners).map)||void 0===c?void 0:c.call(m,a.formatBanner).filter(l):[],footerBanners:t.footer_banners?null===(p=(v=t.footer_banners).map)||void 0===p?void 0:p.call(v,a.formatBanner).filter(l):[],blogPosts:t.blog_posts?null===(g=(_=t.blog_posts).map)||void 0===g?void 0:g.call(_,a.formatBlogPost).filter(l):[],popularCategories:t.popular_categories?null===(b=(f=t.popular_categories).map)||void 0===b?void 0:b.call(f,(t=>a.formatCategory(t))).filter(l):[],suggestProducts:t.suggest_products?null===(y=(h=t.suggest_products).map)||void 0===y?void 0:y.call(h,(t=>a.formatCategory(t))).filter(l):[],promotions:t.promotions?null===(P=(x=t.promotions).map)||void 0===P?void 0:P.call(x,(t=>a.formatPromotion(t))).filter(l):[]}:null},formatCategoryPage:function(t){var o,e,i,r;return t?{id:t.id||0,name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(e=null===(o=t.banners)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatBanner).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[]}:null},formatBrandPage:function(t){return t?a.formatBrand(t):null},formatPagination:t=>t?{current:t.current||0,first:t.first||0,itemsPerPage:t.items_per_page||0,last:t.last||0,next:t.next||0,prev:t.prev||0,totalItems:t.total_items||0}:null,formatProductDetailPage:function(t){var o,e,i,r,n,d,u,s;return t?Object.assign(Object.assign({},a.formatProduct(t)),{relatedProducts:(null===(e=null===(o=t.related_products)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatProduct).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[],viewedProducts:(null===(d=null===(n=t.viewed_products)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,a.formatProduct).filter(l))||[],promotions:(null===(s=null===(u=t.promotions)||void 0===u?void 0:u.map)||void 0===s?void 0:s.call(u,a.formatPromotion).filter(l))||[]}):null},formatProductReview:t=>{var o,e;return t?{reviewId:t.review_id||"",createdAt:t.created_at||"",title:t.title||"",detail:t.detail||"",nickname:t.nick_name||"",avatar:t.avatar||"",ratingVotes:(null===(e=null===(o=t.rating_votes)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({ratingCode:t.rating_code||"",value:Number(t.value)||0,percent:Number(t.percent)||0}))))||[],images:t.images||[]}:null},formatProductPromotion:t=>t?{id:t.id||0,name:t.name||"",thumbnail:t.thumbnail||"",expirationDate:t.expiration_date||""}:null,formatPromotion:t=>t?{id:t.id||0,name:t.name||"",slug:t.slug||"",thumbnail:t.thumbnail||"",expiredDate:t.expired_date||"",banners:t.banners||[],points:0,description:t.description||"",metaTitle:t.meta_title||"",metaKeywords:t.meta_keywords||"",metaDescription:t.meta_description||""}:null,formatCustomAttributes:(t,o)=>{var e;return(null==t?void 0:t.length)&&(null===(e=null==t?void 0:t.find((t=>t.attribute_code===o)))||void 0===e?void 0:e.value)||""},formatAddress:t=>{var o,e,i,l;return t?{id:t.id||0,fullName:t.firstname||"",telephone:t.telephone||"",province:{value:null===(o=t.region)||void 0===o?void 0:o.region_id,label:null===(e=t.region)||void 0===e?void 0:e.region}||null,district:{value:a.formatCustomAttributes(t.custom_attributes,"district_id"),label:a.formatCustomAttributes(t.custom_attributes,"district")},commune:{value:a.formatCustomAttributes(t.custom_attributes,"ward_id"),label:a.formatCustomAttributes(t.custom_attributes,"ward")},street:(null===(i=null==t?void 0:t.street)||void 0===i?void 0:i.length)?null==t?void 0:t.street[0]:"",isDefault:t.default_billing&&t.default_shipping||!1,fullAddress:(null===(l=null==t?void 0:t.extension_attributes)||void 0===l?void 0:l.full_address)||""}:null},formatProvince:t=>(null==t?void 0:t.available_regions)?t.available_regions.map((t=>({value:t.id||"",label:t.name||""}))):[],formatDistrict:t=>(null==t?void 0:t.districts)?t.districts.map((t=>({value:t.id||"",label:t.name||""}))):[],formatCommune:t=>(null==t?void 0:t.communes)?t.communes.map((t=>({value:t.id||"",label:t.name||""}))):[],formatOrder:t=>{var o,e;return t?{orderNumber:(null==t?void 0:t.order_number)||"",shippingData:(null==t?void 0:t.shipping_data)?{shippingMethod:t.shipping_data.shipping_method||"",shippingDescription:t.shipping_data.shipping_description||"",shippingAddress:t.shipping_data.shipping_address?{fullName:t.shipping_data.shipping_address.firstname||"",fullAddress:t.shipping_data.shipping_address.full_address||"",telephone:t.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==t?void 0:t.ordered_date)||"",status:(null==t?void 0:t.status)||null,totals:(null==t?void 0:t.totals)?{subtotal:t.totals.subtotal||0,shippingAmount:t.totals.shipping_amount||0,discountAmount:t.totals.discount_amount||0,grandTotal:t.totals.grand_total||0}:null,products:(null===(e=null===(o=null==t?void 0:t.products)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({sku:t.sku||"",name:t.name||"",price:t.price||0,rowTotal:t.row_total||0,image:t.image||"",qty:t.qty||0}))))||[],paymentMethod:(null==t?void 0:t.payment_method)||""}:null},formatStatistic:t=>{var o,e,i,l,a;return t?{pending:Number(null===(o=null==t?void 0:t.find((t=>"pending"===t.status)))||void 0===o?void 0:o.amount)||0,processing:Number(null===(e=null==t?void 0:t.find((t=>"processing"===t.status)))||void 0===e?void 0:e.amount)||0,delivering:Number(null===(i=null==t?void 0:t.find((t=>"delivering"===t.status)))||void 0===i?void 0:i.amount)||0,complete:Number(null===(l=null==t?void 0:t.find((t=>"complete"===t.status)))||void 0===l?void 0:l.amount)||0,canceled:Number(null===(a=null==t?void 0:t.find((t=>"canceled"===t.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:t=>{var o,e,i,l,r,n,d,u;return t?{itemId:t.item_id||0,sku:t.sku||"",qty:t.qty||0,name:t.name||"",price:t.price||0,basePrice:(null===(o=t.extension_attributes)||void 0===o?void 0:o.base_price)||0,productType:t.product_type||"",quoteId:t.quote_id||"",thumbnail:(null===(e=t.extension_attributes)||void 0===e?void 0:e.thumbnail)||"",rowTotal:(null===(i=t.extension_attributes)||void 0===i?void 0:i.row_total)||0,promotions:(null===(n=null===(r=null===(l=t.extension_attributes)||void 0===l?void 0:l.promotions)||void 0===r?void 0:r.map)||void 0===n?void 0:n.call(r,a.formatProductPromotion))||[],isInStock:(null===(d=t.extension_attributes)||void 0===d?void 0:d.is_in_stock)||!1,urlProduct:(null===(u=t.extension_attributes)||void 0===u?void 0:u.url_key)||""}:null},formatCartAddress:t=>{var o;return t?{customerAddressId:(null==t?void 0:t.customer_address_id)||0,id:t.id||0,region:t.region||"",regionId:t.region_id||0,regionCode:t.region_code||"",countryId:t.country_id||"",street:t.street||[],postcode:t.postcode||"",city:t.city||"",firstname:t.firstname||"",lastname:t.lastname||"",customerId:t.customer_id||0,email:t.email||"",telephone:t.telephone||"",sameAsBilling:t.same_as_billing||0,saveInAddressBook:t.save_in_address_book||0,fullAddress:(null===(o=t.extension_attributes)||void 0===o?void 0:o.full_address)||""}:null},formatEstimatedShipping:t=>t?{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",carrierTitle:t.carrier_title||"",methodTitle:t.method_title||"",amount:t.amount||0,baseAmount:t.base_amount||0,available:t.available||!1,errorMessage:t.error_message||"",priceExclTax:t.price_excl_tax||0,priceInclTax:t.price_incl_tax||0}:null,formatCartLoggedInCustomer:t=>{var o,e,i;return t?{email:t.email||"",firstname:t.firstname||"",lastname:t.lastname||"",id:t.id||0,groupId:t.group_id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",createdIn:t.created_in||"",storeId:t.store_id||0,websiteId:t.website_id||0,addresses:(null===(e=null===(o=t.addresses)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatCartAddress))||[],disableAutoGroupChange:t.disable_auto_group_change||0,isSubscribed:(null===(i=t.extension_attributes)||void 0===i?void 0:i.is_subscribed)||!1}:null},formatCart:t=>{var o,e,i,l,r,n,d,u,s,m,c,v,p,_;return t?{id:t.id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",isActive:t.is_active||!1,isVirtual:t.is_virtual||!1,items:(null===(i=null===(e=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatCartItem))||void 0===i?void 0:i.sort(((t,o)=>Number(null==o?void 0:o.isInStock)-Number(null==t?void 0:t.isInStock))))||[],itemsCount:t.items_count||0,itemsQty:t.items_qty||0,customer:t.customer?a.formatCartLoggedInCustomer(t.customer):null,billingAddress:t.billing_address?a.formatCartAddress(t.billing_address):null,origOrderId:t.orig_order_id||0,currency:{globalCurrencyCode:(null===(l=t.currency)||void 0===l?void 0:l.global_currency_code)||"",baseCurrencyCode:(null===(r=t.currency)||void 0===r?void 0:r.base_currency_code)||"",storeCurrencyCode:(null===(n=t.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(d=t.currency)||void 0===d?void 0:d.quote_currency_code)||"",storeToBaseRate:(null===(u=t.currency)||void 0===u?void 0:u.store_to_base_rate)||0,storeToQuoteRate:(null===(s=t.currency)||void 0===s?void 0:s.store_to_quote_rate)||0,baseToGlobalRate:(null===(m=t.currency)||void 0===m?void 0:m.base_to_global_rate)||0,baseToQuoteRate:(null===(c=t.currency)||void 0===c?void 0:c.base_to_quote_rate)||0},customerIsGuest:t.customer_is_guest||!1,customerNoteNotify:t.customer_note_notify||!1,customerTaxClassId:t.customer_tax_class_id||0,storeId:t.store_id||0,shippingAssignments:null===(_=null===(p=null===(v=t.extension_attributes)||void 0===v?void 0:v.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(t=>{var o,e,i;return{shipping:{address:t.shipping.address?a.formatCartAddress(t.shipping.address):null,method:(null===(o=t.shipping)||void 0===o?void 0:o.method)||""},items:(null===(i=(e=t.items).map)||void 0===i?void 0:i.call(e,a.formatCartItem))||[]}}))}:null},formatCartTotal:t=>{var o,e,i;return t?{grandTotal:t.grand_total||0,baseGrandTotal:t.base_grand_total||0,subtotal:t.subtotal||0,baseSubtotal:t.base_subtotal||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,subtotalWithDiscount:t.subtotal_with_discount||0,baseSubtotalWithDiscount:t.base_subtotal_with_discount||0,shippingAmount:t.shipping_amount||0,baseShippingAmount:t.base_shipping_amount||0,shippingDiscountAmount:t.shipping_discount_amount||0,baseShippingDiscountAmount:t.base_shipping_discount_amount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,shippingTaxAmount:t.shipping_tax_amount||0,baseShippingTaxAmount:t.base_shipping_tax_amount||0,subtotalInclTax:t.subtotal_incl_tax||0,shippingInclTax:t.shipping_incl_tax||0,baseShippingInclTax:t.base_shipping_incl_tax||0,baseCurrencyCode:t.base_currency_code||"",quoteCurrencyCode:t.quote_currency_code||"",itemsQty:t.items_qty||0,coupon:{couponCode:t.coupon_code||"",couponDescription:(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.coupon_description_text)||""},items:(null===(i=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===i?void 0:i.call(e,(t=>({itemId:t.item_id||0,price:t.price||0,basePrice:t.base_price||0,qty:t.qty||0,rowTotal:t.row_total||0,baseRowTotal:t.base_row_total||0,rowTotalWithDiscount:t.row_total_with_discount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,taxPercent:t.tax_percent||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,discountPercent:t.discount_percent||0,priceInclTax:t.price_incl_tax||0,basePriceInclTax:t.base_price_incl_tax||0,rowTotalInclTax:t.row_total_incl_tax||0,baseRowTotalInclTax:t.base_row_total_incl_tax||0,options:t.options||"",weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,weeeTaxApplied:t.weee_tax_applied||0,name:t.name||""}))))||[],totalSegments:t.total_segments||[]}:null},formatPaymentMethod:t=>t?null==t?void 0:t.map((t=>({code:(null==t?void 0:t.payment_code)||"",title:(null==t?void 0:t.payment_title)||"",thumbnail:(null==t?void 0:t.payment_thumbnail)||""}))):null,formatPaymentInformation:t=>{var o;return t?{paymentMethods:a.formatPaymentMethod(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.payment_detail_info)||[],totals:a.formatCartTotal(t.totals)}:null},formatOrderConfirmation:t=>t?{isSuccess:t.is_success||!1,orderInfo:a.formatOrder(t.order_info)}:null,formatCoupons:t=>{var o;return(null===(o=null==t?void 0:t.items)||void 0===o?void 0:o.length)?t.items.map((t=>({code:(null==t?void 0:t.code)||"",name:(null==t?void 0:t.name)||"",thumbnail:(null==t?void 0:t.thumbnail)||"",description:(null==t?void 0:t.expired_date)||""}))):null},formatShippings:t=>t?t.map((t=>{var o;return{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",title:t.carrier_title||"",description:t.method_title||"",price:(null==t?void 0:t.base_amount)||0,thumbnail:(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.thumbnail)||""}})):[]};var r=Object.freeze({__proto__:null,dataFormatter:a});export{e as ApiTypes,r as DataFormatter,i as DataTypes};
|
|
1
|
+
import{t as o}from"./theme-f34480d0.js";export{c as Constants}from"./constants-898ddd4e.js";export{t as Types}from"./types-753a5e78.js";import"./index-dee6ecf7.js";import"date-fns/locale";import"./Onboarding-821fd8e9.js";import"./isProduction-81d2313b.js";var e=Object.freeze({__proto__:null}),i=Object.freeze({__proto__:null});function l(t){return null!=t}const a={formatAutoCompleteAddress:t=>t&&t.place_id?{placeId:t.place_id,description:t.description||""}:null,formatPrice:(t,o)=>{const e="string"==typeof t?parseInt(t):t;return new Intl.NumberFormat(o||"vi-VN").format(e)},formatHotSearchKeyword:t=>({text:(null==t?void 0:t.name)||""}),formatHelpfulUrl:t=>({name:(null==t?void 0:t.name)||"",featuredImage:(null==t?void 0:t.featured_image)||"",url:(null==t?void 0:t.url)||""}),formatCategory:function(t,e,i){var l,r,n;const d=i?i+"/"+t.slug:t.slug,u=(null===(r=null===(l=null==t?void 0:t.children)||void 0===l?void 0:l.map)||void 0===r?void 0:r.call(l,(o=>a.formatCategory(o,t.id,d))))||[];return{id:null==t?void 0:t.id,name:(null==t?void 0:t.name)||"",logo:(null==t?void 0:t.logo)||"",slug:(null==t?void 0:t.slug)||"",fullSlug:d||"",children:u,backgroundColor:t.color||o.colors.teal50,parentId:e||0,products:(null===(n=t.products)||void 0===n?void 0:n.map(a.formatProduct))||[]}},formatFooterInfo:t=>{var o,e,i,l,a,r,n,d,u,s,m,c,v,p,_,g,f,b,h;const y=(null===(i=null===(e=null===(o=null==t?void 0:t.branch)||void 0===o?void 0:o.branch)||void 0===e?void 0:e.map)||void 0===i?void 0:i.call(e,(t=>({flag:t.flag||"",name:t.name||"",url:t.url||""}))))||[],x=(null===(r=null===(a=null===(l=null==t?void 0:t.general)||void 0===l?void 0:l.verified)||void 0===a?void 0:a.map)||void 0===r?void 0:r.call(a,(t=>({image:t.image||"",url:t.url||""}))))||[],P=(null===(d=null===(n=null==t?void 0:t.menu)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,(t=>{var o,e;return{menu_title:t.menu_title,items:null===(e=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({title:t.title,url:t.url})))}})))||[],C=(null===(m=null===(s=null===(u=null==t?void 0:t.social)||void 0===u?void 0:u.socials)||void 0===s?void 0:s.map)||void 0===m?void 0:m.call(s,(t=>({icon:t.icon||"",name:t.name||"",url:t.url||""}))))||[];return{branch:{title:(null===(c=null==t?void 0:t.branch)||void 0===c?void 0:c.title)||"",branch:y},general:{logo:null!==(p=null===(v=null==t?void 0:t.general)||void 0===v?void 0:v.logo)&&void 0!==p?p:"",content:null!==(g=null===(_=null==t?void 0:t.general)||void 0===_?void 0:_.content)&&void 0!==g?g:"",copyright:null!==(b=null===(f=null==t?void 0:t.general)||void 0===f?void 0:f.copyright)&&void 0!==b?b:"",verified:x},menu:P,social:{title:(null===(h=null==t?void 0:t.social)||void 0===h?void 0:h.title)||"",socials:C}}},formatNavigation:function(t){var o,e,i,l,r,n;return{hotSearchKeywords:(null===(e=null===(o=null==t?void 0:t.hot_search_keywords)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatHotSearchKeyword))||[],helpfulUrls:(null===(l=null===(i=null==t?void 0:t.helpful_urls)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,a.formatHelpfulUrl))||[],categories:(null===(n=null===(r=null==t?void 0:t.categories)||void 0===r?void 0:r.map)||void 0===n?void 0:n.call(r,(t=>a.formatCategory(t))))||[],footer:a.formatFooterInfo(null==t?void 0:t.footer),storeId:(null==t?void 0:t.store_id)||0,customerId:(null==t?void 0:t.customer_id)||0,cartItemsQty:"number"==typeof(null==t?void 0:t.cart_items_qty)?t.cart_items_qty:null}},formatPriceInfo:t=>t?{final:t.final||0,regular:t.regular||0,discountPercent:t.discount_percent||0}:null,formatProduct:function(t){var o,e,i,r;if(!t)return null;const n={final:0,regular:0,discountPercent:0};return{id:t.id||0,price:t.price&&a.formatPriceInfo(t.price)||n,thumbnail:t.thumbnail||"",name:t.name||"",averageRating:Number((t.average_rating||0).toFixed(2)),reviewsCount:t.reviews_count||0,tag:t.tag||null,sku:t.sku||"",slug:t.slug||"",images:t.images||[],tags:t.tags||[],unit:t.unit||"",brand:t.brand?{name:t.brand.name||"",image:t.brand.image||"",slug:t.brand.slug||"",productsCount:t.brand.products_count||0}:null,description:t.description||"",productPromotions:(null===(e=null===(o=t.product_promotions)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatProductPromotion).filter(l))||[],categories:(null===(r=null===(i=t.categories)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,(t=>a.formatCategory(t))).filter(l))||[],isInStock:(null==t?void 0:t.is_in_stock)||!1}},formatBanner:t=>t?{name:t.name||"",url:t.url||"",featuredImage:t.featured_image||"",alt:t.image_alt}:null,formatBlogPost:t=>{var o,e;return t?{title:t.title||"",image:t.image||"",link:t.link||"",postData:t.post_data?{reviewed:t.post_data.reviewed?{author:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.author||void 0),editor:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.editor||void 0),expert:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.expert||void 0),factCheck:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(t.post_data.reviewed.is_author)}:null,categories:t.post_data.categories?null===(e=(o=t.post_data.categories).map)||void 0===e?void 0:e.call(o,(t=>({termId:t.term_id||0,name:t.name||"",permalink:t.permalink||"",textColor:t.text_color||""}))):[],postDate:t.post_data.post_date||"",postModified:t.post_data.post_modified||"",modifiedTime:t.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:t=>t?{id:t.ID||0,userId:t.user_id||0,formerRole:t.former_role||"",role:t.role||"",slug:t.slug||"",displayName:t.display_name||"",description:t.description||"",profileUrl:t.profile_url||"",avatar:t.avatar||"",avatarThumbnail:t.avatar_thumbnail||"",turnOffProfile:Boolean(t.turn_off_profile)}:null,formatBrand:function(t){var o,e,i,r;return t?{id:t.id||0,image:t.image||"",position:t.position||"",isPopular:t.is_popular||!1,summary:t.summary||"",name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(e=null===(o=t.banners)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatBanner).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[]}:null},formatHomePage:t=>{var o,e,i,r,n,d,u,s,m,c,v,p,_,g,f,b,h,y,x,P;return t?{brands:t.brands?null===(e=(o=t.brands).map)||void 0===e?void 0:e.call(o,a.formatBrand).filter(l):[],hotDeals:t.hot_deals?null===(r=(i=t.hot_deals).map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l):[],newProducts:t.new_products?null===(d=(n=t.new_products).map)||void 0===d?void 0:d.call(n,a.formatProduct).filter(l):[],slideBanners:t.slide_banners?null===(s=(u=t.slide_banners).map)||void 0===s?void 0:s.call(u,a.formatBanner).filter(l):[],subBanners:t.sub_banners?null===(c=(m=t.sub_banners).map)||void 0===c?void 0:c.call(m,a.formatBanner).filter(l):[],footerBanners:t.footer_banners?null===(p=(v=t.footer_banners).map)||void 0===p?void 0:p.call(v,a.formatBanner).filter(l):[],blogPosts:t.blog_posts?null===(g=(_=t.blog_posts).map)||void 0===g?void 0:g.call(_,a.formatBlogPost).filter(l):[],popularCategories:t.popular_categories?null===(b=(f=t.popular_categories).map)||void 0===b?void 0:b.call(f,(t=>a.formatCategory(t))).filter(l):[],suggestProducts:t.suggest_products?null===(y=(h=t.suggest_products).map)||void 0===y?void 0:y.call(h,(t=>a.formatCategory(t))).filter(l):[],promotions:t.promotions?null===(P=(x=t.promotions).map)||void 0===P?void 0:P.call(x,(t=>a.formatPromotion(t))).filter(l):[]}:null},formatCategoryPage:function(t){var o,e,i,r;return t?{id:t.id||0,name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(e=null===(o=t.banners)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatBanner).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[]}:null},formatBrandPage:function(t){return t?a.formatBrand(t):null},formatPagination:t=>t?{current:t.current||0,first:t.first||0,itemsPerPage:t.items_per_page||0,last:t.last||0,next:t.next||0,prev:t.prev||0,totalItems:t.total_items||0}:null,formatProductDetailPage:function(t){var o,e,i,r,n,d,u,s;return t?Object.assign(Object.assign({},a.formatProduct(t)),{relatedProducts:(null===(e=null===(o=t.related_products)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatProduct).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[],viewedProducts:(null===(d=null===(n=t.viewed_products)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,a.formatProduct).filter(l))||[],promotions:(null===(s=null===(u=t.promotions)||void 0===u?void 0:u.map)||void 0===s?void 0:s.call(u,a.formatPromotion).filter(l))||[]}):null},formatProductReview:t=>{var o,e;return t?{reviewId:t.review_id||"",createdAt:t.created_at||"",title:t.title||"",detail:t.detail||"",nickname:t.nick_name||"",avatar:t.avatar||"",ratingVotes:(null===(e=null===(o=t.rating_votes)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({ratingCode:t.rating_code||"",value:Number(t.value)||0,percent:Number(t.percent)||0}))))||[],images:t.images||[]}:null},formatProductPromotion:t=>t?{id:t.id||0,name:t.name||"",thumbnail:t.thumbnail||"",expirationDate:t.expiration_date||""}:null,formatPromotion:t=>t?{id:t.id||0,name:t.name||"",slug:t.slug||"",thumbnail:t.thumbnail||"",expiredDate:t.expired_date||"",banners:t.banners||[],points:0,description:t.description||"",metaTitle:t.meta_title||"",metaKeywords:t.meta_keywords||"",metaDescription:t.meta_description||""}:null,formatCustomAttributes:(t,o)=>{var e;return(null==t?void 0:t.length)&&(null===(e=null==t?void 0:t.find((t=>t.attribute_code===o)))||void 0===e?void 0:e.value)||""},formatAddress:t=>{var o,e,i,l;return t?{id:t.id||0,fullName:t.firstname||"",telephone:t.telephone||"",province:{value:null===(o=t.region)||void 0===o?void 0:o.region_id,label:null===(e=t.region)||void 0===e?void 0:e.region}||null,district:{value:a.formatCustomAttributes(t.custom_attributes,"district_id"),label:a.formatCustomAttributes(t.custom_attributes,"district")},commune:{value:a.formatCustomAttributes(t.custom_attributes,"ward_id"),label:a.formatCustomAttributes(t.custom_attributes,"ward")},street:(null===(i=null==t?void 0:t.street)||void 0===i?void 0:i.length)?null==t?void 0:t.street[0]:"",isDefault:t.default_billing&&t.default_shipping||!1,fullAddress:(null===(l=null==t?void 0:t.extension_attributes)||void 0===l?void 0:l.full_address)||""}:null},formatProvince:t=>(null==t?void 0:t.available_regions)?t.available_regions.map((t=>({value:t.id||"",label:t.name||""}))):[],formatDistrict:t=>(null==t?void 0:t.districts)?t.districts.map((t=>({value:t.id||"",label:t.name||""}))):[],formatCommune:t=>(null==t?void 0:t.communes)?t.communes.map((t=>({value:t.id||"",label:t.name||""}))):[],formatOrder:t=>{var o,e;return t?{orderNumber:(null==t?void 0:t.order_number)||"",shippingData:(null==t?void 0:t.shipping_data)?{shippingMethod:t.shipping_data.shipping_method||"",shippingDescription:t.shipping_data.shipping_description||"",shippingAddress:t.shipping_data.shipping_address?{fullName:t.shipping_data.shipping_address.firstname||"",fullAddress:t.shipping_data.shipping_address.full_address||"",telephone:t.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==t?void 0:t.ordered_date)||"",status:(null==t?void 0:t.status)||null,totals:(null==t?void 0:t.totals)?{subtotal:t.totals.subtotal||0,shippingAmount:t.totals.shipping_amount||0,discountAmount:t.totals.discount_amount||0,grandTotal:t.totals.grand_total||0}:null,products:(null===(e=null===(o=null==t?void 0:t.products)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({sku:t.sku||"",name:t.name||"",price:t.price||0,rowTotal:t.row_total||0,image:t.image||"",qty:t.qty||0}))))||[],paymentMethod:(null==t?void 0:t.payment_method)||""}:null},formatStatistic:t=>{var o,e,i,l,a;return t?{pending:Number(null===(o=null==t?void 0:t.find((t=>"pending"===t.status)))||void 0===o?void 0:o.amount)||0,processing:Number(null===(e=null==t?void 0:t.find((t=>"processing"===t.status)))||void 0===e?void 0:e.amount)||0,delivering:Number(null===(i=null==t?void 0:t.find((t=>"delivering"===t.status)))||void 0===i?void 0:i.amount)||0,complete:Number(null===(l=null==t?void 0:t.find((t=>"complete"===t.status)))||void 0===l?void 0:l.amount)||0,canceled:Number(null===(a=null==t?void 0:t.find((t=>"canceled"===t.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:t=>{var o,e,i,l,r,n,d,u;return t?{itemId:t.item_id||0,sku:t.sku||"",qty:t.qty||0,name:t.name||"",price:t.price||0,basePrice:(null===(o=t.extension_attributes)||void 0===o?void 0:o.base_price)||0,productType:t.product_type||"",quoteId:t.quote_id||"",thumbnail:(null===(e=t.extension_attributes)||void 0===e?void 0:e.thumbnail)||"",rowTotal:(null===(i=t.extension_attributes)||void 0===i?void 0:i.row_total)||0,promotions:(null===(n=null===(r=null===(l=t.extension_attributes)||void 0===l?void 0:l.promotions)||void 0===r?void 0:r.map)||void 0===n?void 0:n.call(r,a.formatProductPromotion))||[],isInStock:(null===(d=t.extension_attributes)||void 0===d?void 0:d.is_in_stock)||!1,urlProduct:(null===(u=t.extension_attributes)||void 0===u?void 0:u.url_key)||""}:null},formatCartAddress:t=>{var o;return t?{customerAddressId:(null==t?void 0:t.customer_address_id)||0,id:t.id||0,region:t.region||"",regionId:t.region_id||0,regionCode:t.region_code||"",countryId:t.country_id||"",street:t.street||[],postcode:t.postcode||"",city:t.city||"",firstname:t.firstname||"",lastname:t.lastname||"",customerId:t.customer_id||0,email:t.email||"",telephone:t.telephone||"",sameAsBilling:t.same_as_billing||0,saveInAddressBook:t.save_in_address_book||0,fullAddress:(null===(o=t.extension_attributes)||void 0===o?void 0:o.full_address)||""}:null},formatEstimatedShipping:t=>t?{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",carrierTitle:t.carrier_title||"",methodTitle:t.method_title||"",amount:t.amount||0,baseAmount:t.base_amount||0,available:t.available||!1,errorMessage:t.error_message||"",priceExclTax:t.price_excl_tax||0,priceInclTax:t.price_incl_tax||0}:null,formatCartLoggedInCustomer:t=>{var o,e,i;return t?{email:t.email||"",firstname:t.firstname||"",lastname:t.lastname||"",id:t.id||0,groupId:t.group_id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",createdIn:t.created_in||"",storeId:t.store_id||0,websiteId:t.website_id||0,addresses:(null===(e=null===(o=t.addresses)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatCartAddress))||[],disableAutoGroupChange:t.disable_auto_group_change||0,isSubscribed:(null===(i=t.extension_attributes)||void 0===i?void 0:i.is_subscribed)||!1}:null},formatCart:t=>{var o,e,i,l,r,n,d,u,s,m,c,v,p,_;return t?{id:t.id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",isActive:t.is_active||!1,isVirtual:t.is_virtual||!1,items:(null===(i=null===(e=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatCartItem))||void 0===i?void 0:i.sort(((t,o)=>Number(null==o?void 0:o.isInStock)-Number(null==t?void 0:t.isInStock))))||[],itemsCount:t.items_count||0,itemsQty:t.items_qty||0,customer:t.customer?a.formatCartLoggedInCustomer(t.customer):null,billingAddress:t.billing_address?a.formatCartAddress(t.billing_address):null,origOrderId:t.orig_order_id||0,currency:{globalCurrencyCode:(null===(l=t.currency)||void 0===l?void 0:l.global_currency_code)||"",baseCurrencyCode:(null===(r=t.currency)||void 0===r?void 0:r.base_currency_code)||"",storeCurrencyCode:(null===(n=t.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(d=t.currency)||void 0===d?void 0:d.quote_currency_code)||"",storeToBaseRate:(null===(u=t.currency)||void 0===u?void 0:u.store_to_base_rate)||0,storeToQuoteRate:(null===(s=t.currency)||void 0===s?void 0:s.store_to_quote_rate)||0,baseToGlobalRate:(null===(m=t.currency)||void 0===m?void 0:m.base_to_global_rate)||0,baseToQuoteRate:(null===(c=t.currency)||void 0===c?void 0:c.base_to_quote_rate)||0},customerIsGuest:t.customer_is_guest||!1,customerNoteNotify:t.customer_note_notify||!1,customerTaxClassId:t.customer_tax_class_id||0,storeId:t.store_id||0,shippingAssignments:null===(_=null===(p=null===(v=t.extension_attributes)||void 0===v?void 0:v.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(t=>{var o,e,i;return{shipping:{address:t.shipping.address?a.formatCartAddress(t.shipping.address):null,method:(null===(o=t.shipping)||void 0===o?void 0:o.method)||""},items:(null===(i=(e=t.items).map)||void 0===i?void 0:i.call(e,a.formatCartItem))||[]}}))}:null},formatCartTotal:t=>{var o,e,i;return t?{grandTotal:t.grand_total||0,baseGrandTotal:t.base_grand_total||0,subtotal:t.subtotal||0,baseSubtotal:t.base_subtotal||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,subtotalWithDiscount:t.subtotal_with_discount||0,baseSubtotalWithDiscount:t.base_subtotal_with_discount||0,shippingAmount:t.shipping_amount||0,baseShippingAmount:t.base_shipping_amount||0,shippingDiscountAmount:t.shipping_discount_amount||0,baseShippingDiscountAmount:t.base_shipping_discount_amount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,shippingTaxAmount:t.shipping_tax_amount||0,baseShippingTaxAmount:t.base_shipping_tax_amount||0,subtotalInclTax:t.subtotal_incl_tax||0,shippingInclTax:t.shipping_incl_tax||0,baseShippingInclTax:t.base_shipping_incl_tax||0,baseCurrencyCode:t.base_currency_code||"",quoteCurrencyCode:t.quote_currency_code||"",itemsQty:t.items_qty||0,coupon:{couponCode:t.coupon_code||"",couponDescription:(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.coupon_description_text)||""},items:(null===(i=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===i?void 0:i.call(e,(t=>({itemId:t.item_id||0,price:t.price||0,basePrice:t.base_price||0,qty:t.qty||0,rowTotal:t.row_total||0,baseRowTotal:t.base_row_total||0,rowTotalWithDiscount:t.row_total_with_discount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,taxPercent:t.tax_percent||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,discountPercent:t.discount_percent||0,priceInclTax:t.price_incl_tax||0,basePriceInclTax:t.base_price_incl_tax||0,rowTotalInclTax:t.row_total_incl_tax||0,baseRowTotalInclTax:t.base_row_total_incl_tax||0,options:t.options||"",weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,weeeTaxApplied:t.weee_tax_applied||0,name:t.name||""}))))||[],totalSegments:t.total_segments||[]}:null},formatPaymentMethod:t=>t?null==t?void 0:t.map((t=>({code:(null==t?void 0:t.payment_code)||"",title:(null==t?void 0:t.payment_title)||"",thumbnail:(null==t?void 0:t.payment_thumbnail)||""}))):null,formatPaymentInformation:t=>{var o;return t?{paymentMethods:a.formatPaymentMethod(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.payment_detail_info)||[],totals:a.formatCartTotal(t.totals)}:null},formatOrderConfirmation:t=>t?{isSuccess:t.is_success||!1,orderInfo:a.formatOrder(t.order_info)}:null,formatCoupons:t=>{var o;return(null===(o=null==t?void 0:t.items)||void 0===o?void 0:o.length)?t.items.map((t=>({code:(null==t?void 0:t.code)||"",name:(null==t?void 0:t.name)||"",thumbnail:(null==t?void 0:t.thumbnail)||"",description:(null==t?void 0:t.expired_date)||""}))):null},formatShippings:t=>t?t.map((t=>{var o;return{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",title:t.carrier_title||"",description:t.method_title||"",price:(null==t?void 0:t.base_amount)||0,thumbnail:(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.thumbnail)||""}})):[]};var r=Object.freeze({__proto__:null,dataFormatter:a});export{e as ApiTypes,r as DataFormatter,i as DataTypes};
|