@hhgtech/hhg-components 1.23.89 → 1.23.90-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{Visible-03d4ce8f.js → Visible-2285a684.js} +1 -1
- package/build/babyGrowth.js +1 -1
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components/mantine/aspectRatio/index.d.ts +5 -0
- package/build/components/mantine/aspectRatio/index.styled.d.ts +1 -0
- package/build/components/mantine/button/index.d.ts +7 -0
- package/build/components/mantine/button/index.styled.d.ts +1 -0
- package/build/components/mantine/index.d.ts +4 -0
- package/build/components/mantine/theme/button.d.ts +9 -0
- package/build/components/mantine/theme/checkbox.d.ts +11 -0
- package/build/components/mantine/theme/input.d.ts +65 -0
- package/build/components/mantine/theme/radio.d.ts +15 -0
- package/build/components/mantine/theme/shared.d.ts +6 -0
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/{core-e056e729.js → core-1168f508.js} +1 -1
- package/build/{dataTransform-db9296d5.js → dataTransform-97c1d2f8.js} +1 -1
- package/build/{defaultClassWrapper-097330d4.js → defaultClassWrapper-20a7391c.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/{Visible-75723a95.js → Visible-c1386289.js} +1 -1
- package/build/esm/babyGrowth.js +1 -1
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-adc4f8a6.js → core-e4b8d431.js} +1 -1
- package/build/esm/{dataTransform-bb5296a0.js → dataTransform-936e737a.js} +1 -1
- package/build/esm/{defaultClassWrapper-7dc9cd2b.js → defaultClassWrapper-ef821dc4.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-09411931.js → getDynamicHealthTool-991a8cab.js} +1 -1
- package/build/esm/{getSocialList-1c947663.js → getSocialList-6560c8d5.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/{index-70884fac.js → index-0225eff4.js} +1 -1
- package/build/esm/{index-19f7e460.js → index-0e455742.js} +1 -1
- package/build/esm/{index-721608f5.js → index-1fb7de08.js} +1 -1
- package/build/esm/{index-c411f466.js → index-215cb6cc.js} +1 -1
- package/build/esm/{index-186d5df6.js → index-291ab105.js} +1 -1
- package/build/esm/index-2f784e01.js +1 -0
- package/build/esm/{index-b4b0e2d5.js → index-3e85a36c.js} +1 -1
- package/build/esm/index-423b0ad7.js +1 -0
- package/build/esm/{index-00e70e79.js → index-4d5d795a.js} +1 -1
- package/build/esm/{index-c098c7cf.js → index-5c9b80fb.js} +1 -1
- package/build/esm/{index-995d8437.js → index-5e01758b.js} +1 -1
- package/build/esm/{index-cf5fe92c.js → index-70a48bfb.js} +1 -1
- package/build/esm/index-72e09e31.js +1 -0
- package/build/esm/{index-4109ae0a.js → index-9b97e79f.js} +1 -1
- package/build/esm/index-b201eb1e.js +1 -0
- package/build/esm/{index-66dbe2be.js → index-b7ec5191.js} +1 -1
- package/build/esm/{index-d6cd8d13.js → index-ce2c9071.js} +1 -1
- package/build/esm/{index-c400371e.js → index-ddfb3556.js} +1 -1
- package/build/esm/{index-2b6cc745.js → index-ec715cd7.js} +1 -1
- package/build/esm/{index-10220457.js → index-fb05b9d4.js} +1 -1
- package/build/esm/{index-e0da2e0a.js → index-fd2ed39e.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-eb17e082.js → index.styled-0469b7bf.js} +1 -1
- package/build/esm/{index.styled-47c3aa95.js → index.styled-1d926de0.js} +1 -1
- package/build/esm/{index.styled-07085e44.js → index.styled-1e37fd7c.js} +1 -1
- package/build/esm/{index.styled-6e26a107.js → index.styled-574fc9c0.js} +1 -1
- package/build/esm/{index.styled-5bb7613e.js → index.styled-5ae4da6e.js} +1 -1
- package/build/esm/{index.styled-5a566411.js → index.styled-b214b42d.js} +1 -1
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboarding.js +1 -1
- package/build/esm/pwg.js +1 -1
- package/build/esm/routing-180d9529.js +1 -0
- package/build/esm/{screenSizeContext-cec0ddd6.js → screenSizeContext-ca131217.js} +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{translationsProvider-cb55a47c.js → translationsProvider-86d4a773.js} +1 -1
- package/build/esm/{types-10a94346.js → types-0cd98eca.js} +1 -1
- package/build/esm/types-c0c60da0.js +1 -0
- package/build/esm/types.js +1 -1
- package/build/esm/useFbDataLayer-aa854c14.js +1 -0
- package/build/esm/useHealthToolCache-b1b5666d.js +1 -0
- package/build/esm/{useTranslations-7812251e.js → useTranslations-184c5a05.js} +1 -1
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-4de7ffa0.js +1 -0
- package/build/{getSocialList-96ffa4d7.js → getSocialList-d963d80f.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/index-25e85dd6.js +1 -0
- package/build/{index-fbf624e9.js → index-2c7f78b4.js} +1 -1
- package/build/{index-641a11c5.js → index-3dc4d933.js} +1 -1
- package/build/{index-0c219667.js → index-49b35f3a.js} +1 -1
- package/build/{index-245477ca.js → index-5477f184.js} +1 -1
- package/build/{index-a8f420e2.js → index-6b4ed427.js} +1 -1
- package/build/{index-80379dcf.js → index-70b7a8bc.js} +1 -1
- package/build/{index-93682ab2.js → index-71287744.js} +1 -1
- package/build/index-7630bf4e.js +1 -0
- package/build/{index-89ce0cfb.js → index-7d559746.js} +1 -1
- package/build/{index-52e73427.js → index-86453680.js} +1 -1
- package/build/{index-f98f92e4.js → index-913951d2.js} +1 -1
- package/build/{index-70d4867e.js → index-947970ec.js} +1 -1
- package/build/{index-c5153f6a.js → index-9ddfa09d.js} +1 -1
- package/build/{index-05c8108c.js → index-b416f919.js} +1 -1
- package/build/{index-2e4836fc.js → index-bbabe887.js} +1 -1
- package/build/index-d6b5a85c.js +1 -0
- package/build/index-e0afab1d.js +1 -0
- package/build/{index-9a652a56.js → index-e816a65a.js} +1 -1
- package/build/{index-230d35b4.js → index-fbf5e798.js} +1 -1
- package/build/{index-88735a00.js → index-fecdf11c.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-bf52de3c.js → index.styled-26795cd3.js} +1 -1
- package/build/{index.styled-591180f1.js → index.styled-7d204917.js} +1 -1
- package/build/{index.styled-9accffbb.js → index.styled-8f380803.js} +1 -1
- package/build/{index.styled-ebd6d7d6.js → index.styled-ad353964.js} +1 -1
- package/build/{index.styled-04834b72.js → index.styled-bb46a949.js} +1 -1
- package/build/{index.styled-c355a9a7.js → index.styled-cc23cd93.js} +1 -1
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboarding.js +1 -1
- package/build/pwg.js +1 -1
- package/build/{routing-10a44c5a.js → routing-b9ef8ab4.js} +1 -1
- package/build/{screenSizeContext-2d29f37e.js → screenSizeContext-db7c229c.js} +1 -1
- package/build/together.js +1 -1
- package/build/{translationsProvider-ce200997.js → translationsProvider-0dbbfe80.js} +1 -1
- package/build/types-26df66d0.js +1 -0
- package/build/{types-1ff5bfa8.js → types-78838fb7.js} +1 -1
- package/build/types.js +1 -1
- package/build/{useFbDataLayer-7d0a4b15.js → useFbDataLayer-9fbd05c7.js} +1 -1
- package/build/{useHealthToolCache-9763067a.js → useHealthToolCache-37d7cda5.js} +1 -1
- package/build/useTranslations-b25c9366.js +1 -0
- package/package.json +1 -1
- package/build/esm/index-329a1f12.js +0 -1
- package/build/esm/index-447735e7.js +0 -1
- package/build/esm/index-a4871952.js +0 -1
- package/build/esm/index-bfeb66b9.js +0 -1
- package/build/esm/routing-997dbb74.js +0 -1
- package/build/esm/types-a1bb2a21.js +0 -1
- package/build/esm/useFbDataLayer-eacce85d.js +0 -1
- package/build/esm/useHealthToolCache-3a8a798b.js +0 -1
- package/build/getDynamicHealthTool-6ca9ebe6.js +0 -1
- package/build/index-49f85878.js +0 -1
- package/build/index-a60bc4ba.js +0 -1
- package/build/index-c15b9dd4.js +0 -1
- package/build/index-deebd1a0.js +0 -1
- package/build/types-7b06c55e.js +0 -1
- package/build/useTranslations-d250add6.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-dffd9483.js → BMI_BOYS.percentile.monthly-715dac76.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-94a3eb7a.js → BMI_BOYS.percentile.weekly-225e8101.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-9d1d31ef.js → BMI_BOYS.percentile.yearly-48de4522.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-ff8453d5.js → BMI_BOYS.zscore.monthly-b08a122c.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-8ca8b952.js → BMI_BOYS.zscore.weekly-7b71b2fa.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-73d4b893.js → BMI_BOYS.zscore.yearly-945935d2.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-7348656f.js → BMI_GIRLS.percentile.monthly-4f1d886d.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-93874166.js → BMI_GIRLS.percentile.weekly-76e28de6.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-b1eea5a1.js → BMI_GIRLS.percentile.yearly-73d2df96.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-b5c171bd.js → BMI_GIRLS.zscore.monthly-e3c68ae2.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-c6fd0ff5.js → BMI_GIRLS.zscore.weekly-d0e8b57a.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-2643acec.js → BMI_GIRLS.zscore.yearly-444ada68.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-583a8795.js → HEAD CIRCUM_BOYS.percentile.monthly-ef74b3ad.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-8c34ec05.js → HEAD CIRCUM_BOYS.percentile.weekly-c9a97286.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-f668811c.js → HEAD CIRCUM_BOYS.percentile.yearly-a67d82b3.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-93a9d1e4.js → HEAD CIRCUM_BOYS.zscore.monthly-b4250ae1.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-4413fc65.js → HEAD CIRCUM_BOYS.zscore.weekly-80a77f6b.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-787aea7d.js → HEAD CIRCUM_BOYS.zscore.yearly-00339403.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-3a8b7ca3.js → HEAD CIRCUM_GIRLS.percentile.monthly-bec201e5.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-14debf38.js → HEAD CIRCUM_GIRLS.percentile.weekly-2b1ae5b4.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-c8f06edb.js → HEAD CIRCUM_GIRLS.percentile.yearly-db774287.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-4ce6e817.js → HEAD CIRCUM_GIRLS.zscore.monthly-514b9118.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-117547db.js → HEAD CIRCUM_GIRLS.zscore.weekly-4df15363.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-197c4b8d.js → HEAD CIRCUM_GIRLS.zscore.yearly-99175dea.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-fa6aa3fd.js → HEIGHT_BOYS.percentile.monthly-9427301f.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-45343ff5.js → HEIGHT_BOYS.percentile.weekly-b25cb8a5.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-16fa410d.js → HEIGHT_BOYS.percentile.yearly-c4bc60de.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-b54acac0.js → HEIGHT_BOYS.zscore.monthly-712e12b1.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-6b2416a1.js → HEIGHT_BOYS.zscore.weekly-6e9ed2a0.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-c5f4af4f.js → HEIGHT_BOYS.zscore.yearly-be1fc19f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-224ac457.js → HEIGHT_GIRLS.percentile.monthly-d557ef3d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-a8ca4c91.js → HEIGHT_GIRLS.percentile.weekly-2e560326.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-9f026d86.js → HEIGHT_GIRLS.percentile.yearly-b195afa5.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-3a0886c0.js → HEIGHT_GIRLS.zscore.monthly-680935a5.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-622e7690.js → HEIGHT_GIRLS.zscore.weekly-44a3955a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-92bac06e.js → HEIGHT_GIRLS.zscore.yearly-e2387cfb.js} +0 -0
- /package/build/{Locale-62fcc7b0.js → Locale-4a3ea75c.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-a3d4098b.js → WEIGHT_BOYS.percentile.monthly-cb6f9c8a.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-d665580b.js → WEIGHT_BOYS.percentile.weekly-d17a22b7.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-83b92fa6.js → WEIGHT_BOYS.percentile.yearly-ebb2daae.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-b059aeab.js → WEIGHT_BOYS.zscore.monthly-dad91732.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-3a198faa.js → WEIGHT_BOYS.zscore.weekly-5dd6ccf4.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-60695151.js → WEIGHT_BOYS.zscore.yearly-edb86192.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-73b66350.js → WEIGHT_GIRLS.percentile.monthly-29daf8b8.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-92fe4ff0.js → WEIGHT_GIRLS.percentile.weekly-0329342c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-026d62f5.js → WEIGHT_GIRLS.percentile.yearly-9f7331cb.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-e61af54a.js → WEIGHT_GIRLS.zscore.monthly-eb11ef84.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-9916c5aa.js → WEIGHT_GIRLS.zscore.weekly-50c16cf2.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-b6f2bb79.js → WEIGHT_GIRLS.zscore.yearly-af2a776a.js} +0 -0
- /package/build/components/mantine/{theme.d.ts → theme/index.d.ts} +0 -0
- /package/build/{constants-4b62d460.js → constants-2dcf0f56.js} +0 -0
- /package/build/{cookieHelper-3d7cd7a0.js → cookieHelper-26d6c426.js} +0 -0
- /package/build/{dataTransform-57a183ab.js → dataTransform-9bda08f7.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-e082e20d.js → BMI_BOYS.percentile.monthly-b101359f.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-0ba3efd7.js → BMI_BOYS.percentile.weekly-1598e69e.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-11613e84.js → BMI_BOYS.percentile.yearly-11622c75.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-8a00fc37.js → BMI_BOYS.zscore.monthly-30362d88.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-dfc9c646.js → BMI_BOYS.zscore.weekly-6516c6e6.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-5a5847ef.js → BMI_BOYS.zscore.yearly-75191714.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-bc6a373e.js → BMI_GIRLS.percentile.monthly-92f7526a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-5920c399.js → BMI_GIRLS.percentile.weekly-c7843019.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-2a3e22d3.js → BMI_GIRLS.percentile.yearly-bac372ee.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-708b7445.js → BMI_GIRLS.zscore.monthly-beb5091b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-bc2b1e37.js → BMI_GIRLS.zscore.weekly-63219c3a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-226d1d99.js → BMI_GIRLS.zscore.yearly-4973b67a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-487dd14c.js → HEAD CIRCUM_BOYS.percentile.monthly-0fb8e5ac.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-2f9e32e5.js → HEAD CIRCUM_BOYS.percentile.weekly-9688ba93.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-3cf19a4e.js → HEAD CIRCUM_BOYS.percentile.yearly-d64cb716.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-9d34c617.js → HEAD CIRCUM_BOYS.zscore.monthly-6c359ad7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-3598ad1b.js → HEAD CIRCUM_BOYS.zscore.weekly-4d3679ed.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-a3d538bf.js → HEAD CIRCUM_BOYS.zscore.yearly-98dd13d9.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-d1b09b73.js → HEAD CIRCUM_GIRLS.percentile.monthly-fc24a476.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-660ad91e.js → HEAD CIRCUM_GIRLS.percentile.weekly-ddc6fb1c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-3e1aac48.js → HEAD CIRCUM_GIRLS.percentile.yearly-1a172269.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-29e1a323.js → HEAD CIRCUM_GIRLS.zscore.monthly-66060494.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-8adec3b5.js → HEAD CIRCUM_GIRLS.zscore.weekly-4766d247.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-c6a7195c.js → HEAD CIRCUM_GIRLS.zscore.yearly-307420e3.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-621efce7.js → HEIGHT_BOYS.percentile.monthly-9a6575d8.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-dc007fe2.js → HEIGHT_BOYS.percentile.weekly-3b40fbb4.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-11f1c200.js → HEIGHT_BOYS.percentile.yearly-b1650aba.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-a77e9985.js → HEIGHT_BOYS.zscore.monthly-7841fd59.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-5d760aa6.js → HEIGHT_BOYS.zscore.weekly-f7fff43e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-1ce222b1.js → HEIGHT_BOYS.zscore.yearly-f8a7b9cd.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-d45ec85f.js → HEIGHT_GIRLS.percentile.monthly-9eb55264.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-0c9d9ea9.js → HEIGHT_GIRLS.percentile.weekly-e6ec9aa2.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-eb353371.js → HEIGHT_GIRLS.percentile.yearly-4428e148.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-2ce4afe9.js → HEIGHT_GIRLS.zscore.monthly-f4879852.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-f41c022c.js → HEIGHT_GIRLS.zscore.weekly-65813570.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-95ecd3a4.js → HEIGHT_GIRLS.zscore.yearly-86b4867f.js} +0 -0
- /package/build/esm/{Locale-798314ff.js → Locale-5ad330ed.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-b65139e9.js → WEIGHT_BOYS.percentile.monthly-a68d9e53.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-4b1f3d75.js → WEIGHT_BOYS.percentile.weekly-f7f9c22b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-d81f032d.js → WEIGHT_BOYS.percentile.yearly-4754034e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-7f734657.js → WEIGHT_BOYS.zscore.monthly-e945a9c6.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-793e125c.js → WEIGHT_BOYS.zscore.weekly-a9e41765.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-f5897db9.js → WEIGHT_BOYS.zscore.yearly-467b65d7.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-014f529b.js → WEIGHT_GIRLS.percentile.monthly-b83fdb79.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-d64738fa.js → WEIGHT_GIRLS.percentile.weekly-dfdb0b28.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-3280a0ce.js → WEIGHT_GIRLS.percentile.yearly-5dbe64a7.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-7538ef20.js → WEIGHT_GIRLS.zscore.monthly-6dc3f0d4.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-c09bc140.js → WEIGHT_GIRLS.zscore.weekly-63ed9cb6.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-402e852b.js → WEIGHT_GIRLS.zscore.yearly-282170a7.js} +0 -0
- /package/build/esm/{constants-3a0e1881.js → constants-9be31563.js} +0 -0
- /package/build/esm/{cookieHelper-2949ded2.js → cookieHelper-7f7d8e41.js} +0 -0
- /package/build/esm/{dataTransform-0b0d1946.js → dataTransform-f692bb74.js} +0 -0
- /package/build/esm/{isProduction-d1de7904.js → isProduction-af9e42e5.js} +0 -0
- /package/build/esm/{localizeNumberFormat-0e258133.js → localizeNumberFormat-54b9cc94.js} +0 -0
- /package/build/esm/{theme-a73122f6.js → theme-dc7e5fb4.js} +0 -0
- /package/build/esm/{translationsContext-fd0accb0.js → translationsContext-b0b55382.js} +0 -0
- /package/build/esm/{tslib.es6-f3342f27.js → tslib.es6-abb10b7f.js} +0 -0
- /package/build/esm/{types-84dddfd3.js → types-27b8666c.js} +0 -0
- /package/build/esm/{useOutsideClick-aecd0caf.js → useOutsideClick-86e60391.js} +0 -0
- /package/build/esm/{useScrollbarSize-11eb2d3f.js → useScrollbarSize-7341e2bc.js} +0 -0
- /package/build/esm/{utils-7418c98d.js → utils-6cbc9018.js} +0 -0
- /package/build/{isProduction-173ba17c.js → isProduction-29bac474.js} +0 -0
- /package/build/{localizeNumberFormat-458e0901.js → localizeNumberFormat-66233895.js} +0 -0
- /package/build/{theme-a0eb5b5d.js → theme-0ec9ed45.js} +0 -0
- /package/build/{translationsContext-5acb0023.js → translationsContext-8b8d3881.js} +0 -0
- /package/build/{tslib.es6-e23cdb9e.js → tslib.es6-3ccef0a8.js} +0 -0
- /package/build/{types-a1589d2d.js → types-eddebec8.js} +0 -0
- /package/build/{useOutsideClick-a2f58453.js → useOutsideClick-ded01ed8.js} +0 -0
- /package/build/{useScrollbarSize-e043784f.js → useScrollbarSize-68617523.js} +0 -0
- /package/build/{utils-77701b45.js → utils-6546a38d.js} +0 -0
package/build/esm/ecom.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as o}from"./tslib.es6-f3342f27.js";import{t as e}from"./theme-a73122f6.js";import"./index-4109ae0a.js";import{i}from"./isProduction-d1de7904.js";export{t as EcomTypes}from"./types-84dddfd3.js";import"./Locale-798314ff.js";var l,n=Object.freeze({__proto__:null}),a=Object.freeze({__proto__:null}),r="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,s="undefined"==typeof window,u=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",c=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",d=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,m=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",p={"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"},_=r?"http://localhost:3001":i?"https://".concat(p[u]):"https://discover.".concat(p[u]),h=i?"https://wp.".concat(p[u],"/"):"https://staging.".concat(p[u],"/"),E=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:"https://together.".concat(p[u],"/"),v="".concat(_,"/community"),I=process.env.NEXT_PUBLIC_SSO_URL||"http://staging-id.hellobacsi.com/";!function(o){o[o.FEMALE=0]="FEMALE",o[o.MALE=1]="MALE",o[o.ANY=2]="ANY"}(l||(l={}));var T={"vi-VN":{HOME:function(){return 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:function(o,e,t){return void 0===o&&(o=""),void 0===e&&(e=0),void 0===t&&(t=[]),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:o,numberOfItems:e,itemListElement:t}]})},BRAND:function(o,e,t){return void 0===o&&(o=""),void 0===e&&(e=0),void 0===t&&(t=[]),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:o,numberOfItems:e,itemListElement:t}]})},BRAND_DETAIL:function(o,e,t){return void 0===o&&(o=""),void 0===e&&(e=0),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".concat(o),"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop".concat(o)}}]},{"@type":"BrandDetail",url:"https://hellobacsi.com/shop".concat(o),numberOfItems:e,itemListElement:null!=t?t:{}}]})},PRODUCT_DETAIL:function(o,e,t){return void 0===o&&(o=""),void 0===e&&(e=0),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/".concat(o),"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/san-pham/".concat(o)}}]},{"@type":"BrandDetail",url:o,numberOfItems:e,itemListElement:null!=t?t:{}}]})}}},g=Object.freeze({__proto__:null,isDevelopment:r,IS_SSR:s,locale:u,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:c,GOOGLE_ADMIN_LOCATION_KEY:d,GOOGLE_CLIENT_ID:m,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:p,DISCOVER_URL_FE:_,DISCOVER_URL_BE:h,TOGETHER_URL_BE:E,TOGETHER_URL_FE:v,SSO_URL:I,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 l},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_CARE_LOCALES:["vi-VN","id-ID","en-PH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:T});function O(o){return null!=o}var A={formatAutoCompleteAddress:function(o){return o&&o.place_id?{placeId:o.place_id,description:o.description||""}:null},formatPrice:function(o,e){var t="string"==typeof o?parseInt(o):o;return new Intl.NumberFormat(e||"vi-VN").format(t)},formatHotSearchKeyword:function(o){return{text:(null==o?void 0:o.name)||""}},formatHelpfulUrl:function(o){return{name:(null==o?void 0:o.name)||"",featuredImage:(null==o?void 0:o.featured_image)||"",url:(null==o?void 0:o.url)||""}},formatCategory:function(o,t,i){var l,n,a,r=i?i+"/"+o.slug:o.slug,s=(null===(n=null===(l=null==o?void 0:o.children)||void 0===l?void 0:l.map)||void 0===n?void 0:n.call(l,(function(e){return A.formatCategory(e,o.id,r)})))||[];return{id:null==o?void 0:o.id,name:(null==o?void 0:o.name)||"",logo:(null==o?void 0:o.logo)||"",slug:(null==o?void 0:o.slug)||"",fullSlug:r||"",children:s,backgroundColor:o.color||e.colors.teal50,parentId:t||0,products:(null===(a=o.products)||void 0===a?void 0:a.map(A.formatProduct))||[]}},formatFooterInfo:function(o){var e,t,i,l,n,a,r,s,u,c,d,m,p,_,h,E,v,I,T,g=(null===(i=null===(t=null===(e=null==o?void 0:o.branch)||void 0===e?void 0:e.branch)||void 0===t?void 0:t.map)||void 0===i?void 0:i.call(t,(function(o){return{flag:o.flag||"",name:o.name||"",url:o.url||""}})))||[],O=(null===(a=null===(n=null===(l=null==o?void 0:o.general)||void 0===l?void 0:l.verified)||void 0===n?void 0:n.map)||void 0===a?void 0:a.call(n,(function(o){return{image:o.image||"",url:o.url||""}})))||[],A=(null===(s=null===(r=null==o?void 0:o.menu)||void 0===r?void 0:r.map)||void 0===s?void 0:s.call(r,(function(o){var e,t;return{menu_title:o.menu_title,items:null===(t=null===(e=o.items)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,(function(o){return{title:o.title,url:o.url}}))}})))||[],f=(null===(d=null===(c=null===(u=null==o?void 0:o.social)||void 0===u?void 0:u.socials)||void 0===c?void 0:c.map)||void 0===d?void 0:d.call(c,(function(o){return{icon:o.icon||"",name:o.name||"",url:o.url||""}})))||[];return{branch:{title:(null===(m=null==o?void 0:o.branch)||void 0===m?void 0:m.title)||"",branch:g},general:{logo:null!==(_=null===(p=null==o?void 0:o.general)||void 0===p?void 0:p.logo)&&void 0!==_?_:"",content:null!==(E=null===(h=null==o?void 0:o.general)||void 0===h?void 0:h.content)&&void 0!==E?E:"",copyright:null!==(I=null===(v=null==o?void 0:o.general)||void 0===v?void 0:v.copyright)&&void 0!==I?I:"",verified:O},menu:A,social:{title:(null===(T=null==o?void 0:o.social)||void 0===T?void 0:T.title)||"",socials:f}}},formatNavigation:function(o){var e,t,i,l,n,a;return{hotSearchKeywords:(null===(t=null===(e=null==o?void 0:o.hot_search_keywords)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,A.formatHotSearchKeyword))||[],helpfulUrls:(null===(l=null===(i=null==o?void 0:o.helpful_urls)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,A.formatHelpfulUrl))||[],categories:(null===(a=null===(n=null==o?void 0:o.categories)||void 0===n?void 0:n.map)||void 0===a?void 0:a.call(n,(function(o){return A.formatCategory(o)})))||[],footer:A.formatFooterInfo(null==o?void 0:o.footer),storeId:(null==o?void 0:o.store_id)||0,customerId:(null==o?void 0:o.customer_id)||0,cartItemsQty:"number"==typeof(null==o?void 0:o.cart_items_qty)?o.cart_items_qty:null}},formatPriceInfo:function(o){return o?{final:o.final||0,regular:o.regular||0,discountPercent:o.discount_percent||0}:null},formatProduct:function(o){var e,t,i,l;if(!o)return null;var n={final:0,regular:0,discountPercent:0};return{id:o.id||0,price:o.price&&A.formatPriceInfo(o.price)||n,thumbnail:o.thumbnail||"",name:o.name||"",averageRating:Number((o.average_rating||0).toFixed(2)),reviewsCount:o.reviews_count||0,tag:o.tag||null,sku:o.sku||"",slug:o.slug||"",images:o.images||[],tags:o.tags||[],unit:o.unit||"",brand:o.brand?{name:o.brand.name||"",image:o.brand.image||"",slug:o.brand.slug||"",productsCount:o.brand.products_count||0}:null,description:o.description||"",productPromotions:(null===(t=null===(e=o.product_promotions)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,A.formatProductPromotion).filter(O))||[],categories:(null===(l=null===(i=o.categories)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,(function(o){return A.formatCategory(o)})).filter(O))||[],isInStock:(null==o?void 0:o.is_in_stock)||!1}},formatBanner:function(o){return o?{name:o.name||"",url:o.url||"",featuredImage:o.featured_image||"",alt:o.image_alt}:null},formatBlogPost:function(o){var e,t;return o?{title:o.title||"",image:o.image||"",link:o.link||"",postData:o.post_data?{reviewed:o.post_data.reviewed?{author:A.formatBlogPostDataReviewedUser(o.post_data.reviewed.author||void 0),editor:A.formatBlogPostDataReviewedUser(o.post_data.reviewed.editor||void 0),expert:A.formatBlogPostDataReviewedUser(o.post_data.reviewed.expert||void 0),factCheck:A.formatBlogPostDataReviewedUser(o.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(o.post_data.reviewed.is_author)}:null,categories:o.post_data.categories?null===(t=(e=o.post_data.categories).map)||void 0===t?void 0:t.call(e,(function(o){return{termId:o.term_id||0,name:o.name||"",permalink:o.permalink||"",textColor:o.text_color||""}})):[],postDate:o.post_data.post_date||"",postModified:o.post_data.post_modified||"",modifiedTime:o.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:function(o){return o?{id:o.ID||0,userId:o.user_id||0,formerRole:o.former_role||"",role:o.role||"",slug:o.slug||"",displayName:o.display_name||"",description:o.description||"",profileUrl:o.profile_url||"",avatar:o.avatar||"",avatarThumbnail:o.avatar_thumbnail||"",turnOffProfile:Boolean(o.turn_off_profile)}:null},formatBrand:function(o){var e,t,i,l;return o?{id:o.id||0,image:o.image||"",position:o.position||"",isPopular:o.is_popular||!1,summary:o.summary||"",name:o.name||"",slug:o.slug||"",description:o.description||null,banners:(null===(t=null===(e=o.banners)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,A.formatBanner).filter(O))||[],bestsellerProducts:(null===(l=null===(i=o.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,A.formatProduct).filter(O))||[]}:null},formatHomePage:function(o){var e,t,i,l,n,a,r,s,u,c,d,m,p,_,h,E,v,I,T,g;return o?{brands:o.brands?null===(t=(e=o.brands).map)||void 0===t?void 0:t.call(e,A.formatBrand).filter(O):[],hotDeals:o.hot_deals?null===(l=(i=o.hot_deals).map)||void 0===l?void 0:l.call(i,A.formatProduct).filter(O):[],newProducts:o.new_products?null===(a=(n=o.new_products).map)||void 0===a?void 0:a.call(n,A.formatProduct).filter(O):[],slideBanners:o.slide_banners?null===(s=(r=o.slide_banners).map)||void 0===s?void 0:s.call(r,A.formatBanner).filter(O):[],subBanners:o.sub_banners?null===(c=(u=o.sub_banners).map)||void 0===c?void 0:c.call(u,A.formatBanner).filter(O):[],footerBanners:o.footer_banners?null===(m=(d=o.footer_banners).map)||void 0===m?void 0:m.call(d,A.formatBanner).filter(O):[],blogPosts:o.blog_posts?null===(_=(p=o.blog_posts).map)||void 0===_?void 0:_.call(p,A.formatBlogPost).filter(O):[],popularCategories:o.popular_categories?null===(E=(h=o.popular_categories).map)||void 0===E?void 0:E.call(h,(function(o){return A.formatCategory(o)})).filter(O):[],suggestProducts:o.suggest_products?null===(I=(v=o.suggest_products).map)||void 0===I?void 0:I.call(v,(function(o){return A.formatCategory(o)})).filter(O):[],promotions:o.promotions?null===(g=(T=o.promotions).map)||void 0===g?void 0:g.call(T,(function(o){return A.formatPromotion(o)})).filter(O):[]}:null},formatCategoryPage:function(o){var e,t,i,l;return o?{id:o.id||0,name:o.name||"",slug:o.slug||"",description:o.description||null,banners:(null===(t=null===(e=o.banners)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,A.formatBanner).filter(O))||[],bestsellerProducts:(null===(l=null===(i=o.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,A.formatProduct).filter(O))||[]}:null},formatBrandPage:function(o){return o?A.formatBrand(o):null},formatPagination:function(o){return o?{current:o.current||0,first:o.first||0,itemsPerPage:o.items_per_page||0,last:o.last||0,next:o.next||0,prev:o.prev||0,totalItems:o.total_items||0}:null},formatProductDetailPage:function(e){var t,i,l,n,a,r,s,u;return e?o(o({},A.formatProduct(e)),{relatedProducts:(null===(i=null===(t=e.related_products)||void 0===t?void 0:t.map)||void 0===i?void 0:i.call(t,A.formatProduct).filter(O))||[],bestsellerProducts:(null===(n=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===n?void 0:n.call(l,A.formatProduct).filter(O))||[],viewedProducts:(null===(r=null===(a=e.viewed_products)||void 0===a?void 0:a.map)||void 0===r?void 0:r.call(a,A.formatProduct).filter(O))||[],promotions:(null===(u=null===(s=e.promotions)||void 0===s?void 0:s.map)||void 0===u?void 0:u.call(s,A.formatPromotion).filter(O))||[]}):null},formatProductReview:function(o){var e,t;return o?{reviewId:o.review_id||"",createdAt:o.created_at||"",title:o.title||"",detail:o.detail||"",nickname:o.nick_name||"",avatar:o.avatar||"",ratingVotes:(null===(t=null===(e=o.rating_votes)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,(function(o){return{ratingCode:o.rating_code||"",value:Number(o.value)||0,percent:Number(o.percent)||0}})))||[],images:o.images||[]}:null},formatProductPromotion:function(o){return o?{id:o.id||0,name:o.name||"",thumbnail:o.thumbnail||"",expirationDate:o.expiration_date||""}:null},formatPromotion:function(o){return o?{id:o.id||0,name:o.name||"",slug:o.slug||"",thumbnail:o.thumbnail||"",expiredDate:o.expired_date||"",banners:o.banners||[],points:0,description:o.description||"",metaTitle:o.meta_title||"",metaKeywords:o.meta_keywords||"",metaDescription:o.meta_description||""}:null},formatCustomAttributes:function(o,e){var t;return(null==o?void 0:o.length)&&(null===(t=null==o?void 0:o.find((function(o){return o.attribute_code===e})))||void 0===t?void 0:t.value)||""},formatAddress:function(o){var e,t,i,l;return o?{id:o.id||0,fullName:o.firstname||"",telephone:o.telephone||"",province:{value:null===(e=o.region)||void 0===e?void 0:e.region_id,label:null===(t=o.region)||void 0===t?void 0:t.region}||null,district:{value:A.formatCustomAttributes(o.custom_attributes,"district_id"),label:A.formatCustomAttributes(o.custom_attributes,"district")},commune:{value:A.formatCustomAttributes(o.custom_attributes,"ward_id"),label:A.formatCustomAttributes(o.custom_attributes,"ward")},street:(null===(i=null==o?void 0:o.street)||void 0===i?void 0:i.length)?null==o?void 0:o.street[0]:"",isDefault:o.default_billing&&o.default_shipping||!1,fullAddress:(null===(l=null==o?void 0:o.extension_attributes)||void 0===l?void 0:l.full_address)||""}:null},formatProvince:function(o){return(null==o?void 0:o.available_regions)?o.available_regions.map((function(o){return{value:o.id||"",label:o.name||""}})):[]},formatDistrict:function(o){return(null==o?void 0:o.districts)?o.districts.map((function(o){return{value:o.id||"",label:o.name||""}})):[]},formatCommune:function(o){return(null==o?void 0:o.communes)?o.communes.map((function(o){return{value:o.id||"",label:o.name||""}})):[]},formatOrder:function(o){var e,t;return o?{orderNumber:(null==o?void 0:o.order_number)||"",shippingData:(null==o?void 0:o.shipping_data)?{shippingMethod:o.shipping_data.shipping_method||"",shippingDescription:o.shipping_data.shipping_description||"",shippingAddress:o.shipping_data.shipping_address?{fullName:o.shipping_data.shipping_address.firstname||"",fullAddress:o.shipping_data.shipping_address.full_address||"",telephone:o.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==o?void 0:o.ordered_date)||"",status:(null==o?void 0:o.status)||null,totals:(null==o?void 0:o.totals)?{subtotal:o.totals.subtotal||0,shippingAmount:o.totals.shipping_amount||0,discountAmount:o.totals.discount_amount||0,grandTotal:o.totals.grand_total||0}:null,products:(null===(t=null===(e=null==o?void 0:o.products)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,(function(o){return{sku:o.sku||"",name:o.name||"",price:o.price||0,rowTotal:o.row_total||0,image:o.image||"",qty:o.qty||0}})))||[],paymentMethod:(null==o?void 0:o.payment_method)||""}:null},formatStatistic:function(o){var e,t,i,l,n;return o?{pending:Number(null===(e=null==o?void 0:o.find((function(o){return"pending"===o.status})))||void 0===e?void 0:e.amount)||0,processing:Number(null===(t=null==o?void 0:o.find((function(o){return"processing"===o.status})))||void 0===t?void 0:t.amount)||0,delivering:Number(null===(i=null==o?void 0:o.find((function(o){return"delivering"===o.status})))||void 0===i?void 0:i.amount)||0,complete:Number(null===(l=null==o?void 0:o.find((function(o){return"complete"===o.status})))||void 0===l?void 0:l.amount)||0,canceled:Number(null===(n=null==o?void 0:o.find((function(o){return"canceled"===o.status})))||void 0===n?void 0:n.amount)||0}:{}},formatCartItem:function(o){var e,t,i,l,n,a,r,s;return o?{itemId:o.item_id||0,sku:o.sku||"",qty:o.qty||0,name:o.name||"",price:o.price||0,basePrice:(null===(e=o.extension_attributes)||void 0===e?void 0:e.base_price)||0,productType:o.product_type||"",quoteId:o.quote_id||"",thumbnail:(null===(t=o.extension_attributes)||void 0===t?void 0:t.thumbnail)||"",rowTotal:(null===(i=o.extension_attributes)||void 0===i?void 0:i.row_total)||0,promotions:(null===(a=null===(n=null===(l=o.extension_attributes)||void 0===l?void 0:l.promotions)||void 0===n?void 0:n.map)||void 0===a?void 0:a.call(n,A.formatProductPromotion))||[],isInStock:(null===(r=o.extension_attributes)||void 0===r?void 0:r.is_in_stock)||!1,urlProduct:(null===(s=o.extension_attributes)||void 0===s?void 0:s.url_key)||""}:null},formatCartAddress:function(o){var e;return o?{customerAddressId:(null==o?void 0:o.customer_address_id)||0,id:o.id||0,region:o.region||"",regionId:o.region_id||0,regionCode:o.region_code||"",countryId:o.country_id||"",street:o.street||[],postcode:o.postcode||"",city:o.city||"",firstname:o.firstname||"",lastname:o.lastname||"",customerId:o.customer_id||0,email:o.email||"",telephone:o.telephone||"",sameAsBilling:o.same_as_billing||0,saveInAddressBook:o.save_in_address_book||0,fullAddress:(null===(e=o.extension_attributes)||void 0===e?void 0:e.full_address)||""}:null},formatEstimatedShipping:function(o){return o?{carrierCode:o.carrier_code||"",methodCode:o.method_code||"",carrierTitle:o.carrier_title||"",methodTitle:o.method_title||"",amount:o.amount||0,baseAmount:o.base_amount||0,available:o.available||!1,errorMessage:o.error_message||"",priceExclTax:o.price_excl_tax||0,priceInclTax:o.price_incl_tax||0}:null},formatCartLoggedInCustomer:function(o){var e,t,i;return o?{email:o.email||"",firstname:o.firstname||"",lastname:o.lastname||"",id:o.id||0,groupId:o.group_id||0,createdAt:o.created_at||"",updatedAt:o.updated_at||"",createdIn:o.created_in||"",storeId:o.store_id||0,websiteId:o.website_id||0,addresses:(null===(t=null===(e=o.addresses)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,A.formatCartAddress))||[],disableAutoGroupChange:o.disable_auto_group_change||0,isSubscribed:(null===(i=o.extension_attributes)||void 0===i?void 0:i.is_subscribed)||!1}:null},formatCart:function(o){var e,t,i,l,n,a,r,s,u,c,d,m,p,_;return o?{id:o.id||0,createdAt:o.created_at||"",updatedAt:o.updated_at||"",isActive:o.is_active||!1,isVirtual:o.is_virtual||!1,items:(null===(i=null===(t=null===(e=o.items)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,A.formatCartItem))||void 0===i?void 0:i.sort((function(o,e){return Number(null==e?void 0:e.isInStock)-Number(null==o?void 0:o.isInStock)})))||[],itemsCount:o.items_count||0,itemsQty:o.items_qty||0,customer:o.customer?A.formatCartLoggedInCustomer(o.customer):null,billingAddress:o.billing_address?A.formatCartAddress(o.billing_address):null,origOrderId:o.orig_order_id||0,currency:{globalCurrencyCode:(null===(l=o.currency)||void 0===l?void 0:l.global_currency_code)||"",baseCurrencyCode:(null===(n=o.currency)||void 0===n?void 0:n.base_currency_code)||"",storeCurrencyCode:(null===(a=o.currency)||void 0===a?void 0:a.store_currency_code)||"",quoteCurrencyCode:(null===(r=o.currency)||void 0===r?void 0:r.quote_currency_code)||"",storeToBaseRate:(null===(s=o.currency)||void 0===s?void 0:s.store_to_base_rate)||0,storeToQuoteRate:(null===(u=o.currency)||void 0===u?void 0:u.store_to_quote_rate)||0,baseToGlobalRate:(null===(c=o.currency)||void 0===c?void 0:c.base_to_global_rate)||0,baseToQuoteRate:(null===(d=o.currency)||void 0===d?void 0:d.base_to_quote_rate)||0},customerIsGuest:o.customer_is_guest||!1,customerNoteNotify:o.customer_note_notify||!1,customerTaxClassId:o.customer_tax_class_id||0,storeId:o.store_id||0,shippingAssignments:null===(_=null===(p=null===(m=o.extension_attributes)||void 0===m?void 0:m.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(function(o){var e,t,i;return{shipping:{address:o.shipping.address?A.formatCartAddress(o.shipping.address):null,method:(null===(e=o.shipping)||void 0===e?void 0:e.method)||""},items:(null===(i=(t=o.items).map)||void 0===i?void 0:i.call(t,A.formatCartItem))||[]}}))}:null},formatCartTotal:function(o){var e,t,i;return o?{grandTotal:o.grand_total||0,baseGrandTotal:o.base_grand_total||0,subtotal:o.subtotal||0,baseSubtotal:o.base_subtotal||0,discountAmount:o.discount_amount||0,baseDiscountAmount:o.base_discount_amount||0,subtotalWithDiscount:o.subtotal_with_discount||0,baseSubtotalWithDiscount:o.base_subtotal_with_discount||0,shippingAmount:o.shipping_amount||0,baseShippingAmount:o.base_shipping_amount||0,shippingDiscountAmount:o.shipping_discount_amount||0,baseShippingDiscountAmount:o.base_shipping_discount_amount||0,taxAmount:o.tax_amount||0,baseTaxAmount:o.base_tax_amount||0,weeeTaxAppliedAmount:o.weee_tax_applied_amount||0,shippingTaxAmount:o.shipping_tax_amount||0,baseShippingTaxAmount:o.base_shipping_tax_amount||0,subtotalInclTax:o.subtotal_incl_tax||0,shippingInclTax:o.shipping_incl_tax||0,baseShippingInclTax:o.base_shipping_incl_tax||0,baseCurrencyCode:o.base_currency_code||"",quoteCurrencyCode:o.quote_currency_code||"",itemsQty:o.items_qty||0,coupon:{couponCode:o.coupon_code||"",couponDescription:(null===(e=null==o?void 0:o.extension_attributes)||void 0===e?void 0:e.coupon_description_text)||""},items:(null===(i=null===(t=o.items)||void 0===t?void 0:t.map)||void 0===i?void 0:i.call(t,(function(o){return{itemId:o.item_id||0,price:o.price||0,basePrice:o.base_price||0,qty:o.qty||0,rowTotal:o.row_total||0,baseRowTotal:o.base_row_total||0,rowTotalWithDiscount:o.row_total_with_discount||0,taxAmount:o.tax_amount||0,baseTaxAmount:o.base_tax_amount||0,taxPercent:o.tax_percent||0,discountAmount:o.discount_amount||0,baseDiscountAmount:o.base_discount_amount||0,discountPercent:o.discount_percent||0,priceInclTax:o.price_incl_tax||0,basePriceInclTax:o.base_price_incl_tax||0,rowTotalInclTax:o.row_total_incl_tax||0,baseRowTotalInclTax:o.base_row_total_incl_tax||0,options:o.options||"",weeeTaxAppliedAmount:o.weee_tax_applied_amount||0,weeeTaxApplied:o.weee_tax_applied||0,name:o.name||""}})))||[],totalSegments:o.total_segments||[]}:null},formatPaymentMethod:function(o){return o?null==o?void 0:o.map((function(o){return{code:(null==o?void 0:o.payment_code)||"",title:(null==o?void 0:o.payment_title)||"",thumbnail:(null==o?void 0:o.payment_thumbnail)||""}})):null},formatPaymentInformation:function(o){var e;return o?{paymentMethods:A.formatPaymentMethod(null===(e=null==o?void 0:o.extension_attributes)||void 0===e?void 0:e.payment_detail_info)||[],totals:A.formatCartTotal(o.totals)}:null},formatOrderConfirmation:function(o){return o?{isSuccess:o.is_success||!1,orderInfo:A.formatOrder(o.order_info)}:null},formatCoupons:function(o){var e;return(null===(e=null==o?void 0:o.items)||void 0===e?void 0:e.length)?o.items.map((function(o){return{code:(null==o?void 0:o.code)||"",name:(null==o?void 0:o.name)||"",thumbnail:(null==o?void 0:o.thumbnail)||"",description:(null==o?void 0:o.expired_date)||""}})):null},formatShippings:function(o){return o?o.map((function(o){var e;return{carrierCode:o.carrier_code||"",methodCode:o.method_code||"",title:o.carrier_title||"",description:o.method_title||"",price:(null==o?void 0:o.base_amount)||0,thumbnail:(null===(e=null==o?void 0:o.extension_attributes)||void 0===e?void 0:e.thumbnail)||""}})):[]}},f=Object.freeze({__proto__:null,dataFormatter:A});export{n as EcomApiTypes,g as EcomConstants,f as EcomDataFormatter,a as EcomDataTypes};
|
|
1
|
+
import{_ as o}from"./tslib.es6-abb10b7f.js";import{t as e}from"./theme-dc7e5fb4.js";import"./index-9b97e79f.js";import{i}from"./isProduction-af9e42e5.js";export{t as EcomTypes}from"./types-27b8666c.js";import"./Locale-5ad330ed.js";var l,n=Object.freeze({__proto__:null}),a=Object.freeze({__proto__:null}),r="development"===process.env.NEXT_PUBLIC_DEPLOY_ENV,s="undefined"==typeof window,u=process.env.NEXT_PUBLIC_DEPLOY_LOCALE?process.env.NEXT_PUBLIC_DEPLOY_LOCALE:"vi-VN",c=process.env.NEXT_PUBLIC_GOOGLE_MAP_KEY||"",d=process.env.NEXT_PUBLIC_ADMIN_GOOGLE_LOCATION_KEY,m=process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID||"289442006438-cihobuq1h3r4426pur7u0e43fqdnep59.apps.googleusercontent.com",p={"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"},_=r?"http://localhost:3001":i?"https://".concat(p[u]):"https://discover.".concat(p[u]),h=i?"https://wp.".concat(p[u],"/"):"https://staging.".concat(p[u],"/"),E=process.env.NEXT_PUBLIC_TOGETHER_API_URL&&""!==process.env.NEXT_PUBLIC_TOGETHER_API_URL?process.env.NEXT_PUBLIC_TOGETHER_API_URL:"https://together.".concat(p[u],"/"),v="".concat(_,"/community"),I=process.env.NEXT_PUBLIC_SSO_URL||"http://staging-id.hellobacsi.com/";!function(o){o[o.FEMALE=0]="FEMALE",o[o.MALE=1]="MALE",o[o.ANY=2]="ANY"}(l||(l={}));var T={"vi-VN":{HOME:function(){return 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:function(o,e,t){return void 0===o&&(o=""),void 0===e&&(e=0),void 0===t&&(t=[]),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:o,numberOfItems:e,itemListElement:t}]})},BRAND:function(o,e,t){return void 0===o&&(o=""),void 0===e&&(e=0),void 0===t&&(t=[]),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:o,numberOfItems:e,itemListElement:t}]})},BRAND_DETAIL:function(o,e,t){return void 0===o&&(o=""),void 0===e&&(e=0),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".concat(o),"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop".concat(o)}}]},{"@type":"BrandDetail",url:"https://hellobacsi.com/shop".concat(o),numberOfItems:e,itemListElement:null!=t?t:{}}]})},PRODUCT_DETAIL:function(o,e,t){return void 0===o&&(o=""),void 0===e&&(e=0),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/".concat(o),"@type":"WebPage",name:"Hello Bacsi - Thuong Hieu",url:"https://hellobacsi.com/shop/san-pham/".concat(o)}}]},{"@type":"BrandDetail",url:o,numberOfItems:e,itemListElement:null!=t?t:{}}]})}}},g=Object.freeze({__proto__:null,isDevelopment:r,IS_SSR:s,locale:u,BEARER_TOKEN_COOKIE:"hhg_user_token",BEARER_ADMIN_TOKEN_COOKIE:"hhg_admin_token",GUEST_CART_ID_COOKIE:"hhg_guest_cart_id",GOOGLE_MAP_KEY:c,GOOGLE_ADMIN_LOCATION_KEY:d,GOOGLE_CLIENT_ID:m,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:p,DISCOVER_URL_FE:_,DISCOVER_URL_BE:h,TOGETHER_URL_BE:E,TOGETHER_URL_FE:v,SSO_URL:I,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 l},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_CARE_LOCALES:["vi-VN","id-ID","en-PH"],ENABLE_HEALTH_PARENTING_LOCALES:["vi-VN","en-PH","id-ID","ms-MY","km-KH","th-TH","my-MM","zh-TW"],SEO_SCHEMA:T});function O(o){return null!=o}var A={formatAutoCompleteAddress:function(o){return o&&o.place_id?{placeId:o.place_id,description:o.description||""}:null},formatPrice:function(o,e){var t="string"==typeof o?parseInt(o):o;return new Intl.NumberFormat(e||"vi-VN").format(t)},formatHotSearchKeyword:function(o){return{text:(null==o?void 0:o.name)||""}},formatHelpfulUrl:function(o){return{name:(null==o?void 0:o.name)||"",featuredImage:(null==o?void 0:o.featured_image)||"",url:(null==o?void 0:o.url)||""}},formatCategory:function(o,t,i){var l,n,a,r=i?i+"/"+o.slug:o.slug,s=(null===(n=null===(l=null==o?void 0:o.children)||void 0===l?void 0:l.map)||void 0===n?void 0:n.call(l,(function(e){return A.formatCategory(e,o.id,r)})))||[];return{id:null==o?void 0:o.id,name:(null==o?void 0:o.name)||"",logo:(null==o?void 0:o.logo)||"",slug:(null==o?void 0:o.slug)||"",fullSlug:r||"",children:s,backgroundColor:o.color||e.colors.teal50,parentId:t||0,products:(null===(a=o.products)||void 0===a?void 0:a.map(A.formatProduct))||[]}},formatFooterInfo:function(o){var e,t,i,l,n,a,r,s,u,c,d,m,p,_,h,E,v,I,T,g=(null===(i=null===(t=null===(e=null==o?void 0:o.branch)||void 0===e?void 0:e.branch)||void 0===t?void 0:t.map)||void 0===i?void 0:i.call(t,(function(o){return{flag:o.flag||"",name:o.name||"",url:o.url||""}})))||[],O=(null===(a=null===(n=null===(l=null==o?void 0:o.general)||void 0===l?void 0:l.verified)||void 0===n?void 0:n.map)||void 0===a?void 0:a.call(n,(function(o){return{image:o.image||"",url:o.url||""}})))||[],A=(null===(s=null===(r=null==o?void 0:o.menu)||void 0===r?void 0:r.map)||void 0===s?void 0:s.call(r,(function(o){var e,t;return{menu_title:o.menu_title,items:null===(t=null===(e=o.items)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,(function(o){return{title:o.title,url:o.url}}))}})))||[],f=(null===(d=null===(c=null===(u=null==o?void 0:o.social)||void 0===u?void 0:u.socials)||void 0===c?void 0:c.map)||void 0===d?void 0:d.call(c,(function(o){return{icon:o.icon||"",name:o.name||"",url:o.url||""}})))||[];return{branch:{title:(null===(m=null==o?void 0:o.branch)||void 0===m?void 0:m.title)||"",branch:g},general:{logo:null!==(_=null===(p=null==o?void 0:o.general)||void 0===p?void 0:p.logo)&&void 0!==_?_:"",content:null!==(E=null===(h=null==o?void 0:o.general)||void 0===h?void 0:h.content)&&void 0!==E?E:"",copyright:null!==(I=null===(v=null==o?void 0:o.general)||void 0===v?void 0:v.copyright)&&void 0!==I?I:"",verified:O},menu:A,social:{title:(null===(T=null==o?void 0:o.social)||void 0===T?void 0:T.title)||"",socials:f}}},formatNavigation:function(o){var e,t,i,l,n,a;return{hotSearchKeywords:(null===(t=null===(e=null==o?void 0:o.hot_search_keywords)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,A.formatHotSearchKeyword))||[],helpfulUrls:(null===(l=null===(i=null==o?void 0:o.helpful_urls)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,A.formatHelpfulUrl))||[],categories:(null===(a=null===(n=null==o?void 0:o.categories)||void 0===n?void 0:n.map)||void 0===a?void 0:a.call(n,(function(o){return A.formatCategory(o)})))||[],footer:A.formatFooterInfo(null==o?void 0:o.footer),storeId:(null==o?void 0:o.store_id)||0,customerId:(null==o?void 0:o.customer_id)||0,cartItemsQty:"number"==typeof(null==o?void 0:o.cart_items_qty)?o.cart_items_qty:null}},formatPriceInfo:function(o){return o?{final:o.final||0,regular:o.regular||0,discountPercent:o.discount_percent||0}:null},formatProduct:function(o){var e,t,i,l;if(!o)return null;var n={final:0,regular:0,discountPercent:0};return{id:o.id||0,price:o.price&&A.formatPriceInfo(o.price)||n,thumbnail:o.thumbnail||"",name:o.name||"",averageRating:Number((o.average_rating||0).toFixed(2)),reviewsCount:o.reviews_count||0,tag:o.tag||null,sku:o.sku||"",slug:o.slug||"",images:o.images||[],tags:o.tags||[],unit:o.unit||"",brand:o.brand?{name:o.brand.name||"",image:o.brand.image||"",slug:o.brand.slug||"",productsCount:o.brand.products_count||0}:null,description:o.description||"",productPromotions:(null===(t=null===(e=o.product_promotions)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,A.formatProductPromotion).filter(O))||[],categories:(null===(l=null===(i=o.categories)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,(function(o){return A.formatCategory(o)})).filter(O))||[],isInStock:(null==o?void 0:o.is_in_stock)||!1}},formatBanner:function(o){return o?{name:o.name||"",url:o.url||"",featuredImage:o.featured_image||"",alt:o.image_alt}:null},formatBlogPost:function(o){var e,t;return o?{title:o.title||"",image:o.image||"",link:o.link||"",postData:o.post_data?{reviewed:o.post_data.reviewed?{author:A.formatBlogPostDataReviewedUser(o.post_data.reviewed.author||void 0),editor:A.formatBlogPostDataReviewedUser(o.post_data.reviewed.editor||void 0),expert:A.formatBlogPostDataReviewedUser(o.post_data.reviewed.expert||void 0),factCheck:A.formatBlogPostDataReviewedUser(o.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(o.post_data.reviewed.is_author)}:null,categories:o.post_data.categories?null===(t=(e=o.post_data.categories).map)||void 0===t?void 0:t.call(e,(function(o){return{termId:o.term_id||0,name:o.name||"",permalink:o.permalink||"",textColor:o.text_color||""}})):[],postDate:o.post_data.post_date||"",postModified:o.post_data.post_modified||"",modifiedTime:o.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:function(o){return o?{id:o.ID||0,userId:o.user_id||0,formerRole:o.former_role||"",role:o.role||"",slug:o.slug||"",displayName:o.display_name||"",description:o.description||"",profileUrl:o.profile_url||"",avatar:o.avatar||"",avatarThumbnail:o.avatar_thumbnail||"",turnOffProfile:Boolean(o.turn_off_profile)}:null},formatBrand:function(o){var e,t,i,l;return o?{id:o.id||0,image:o.image||"",position:o.position||"",isPopular:o.is_popular||!1,summary:o.summary||"",name:o.name||"",slug:o.slug||"",description:o.description||null,banners:(null===(t=null===(e=o.banners)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,A.formatBanner).filter(O))||[],bestsellerProducts:(null===(l=null===(i=o.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,A.formatProduct).filter(O))||[]}:null},formatHomePage:function(o){var e,t,i,l,n,a,r,s,u,c,d,m,p,_,h,E,v,I,T,g;return o?{brands:o.brands?null===(t=(e=o.brands).map)||void 0===t?void 0:t.call(e,A.formatBrand).filter(O):[],hotDeals:o.hot_deals?null===(l=(i=o.hot_deals).map)||void 0===l?void 0:l.call(i,A.formatProduct).filter(O):[],newProducts:o.new_products?null===(a=(n=o.new_products).map)||void 0===a?void 0:a.call(n,A.formatProduct).filter(O):[],slideBanners:o.slide_banners?null===(s=(r=o.slide_banners).map)||void 0===s?void 0:s.call(r,A.formatBanner).filter(O):[],subBanners:o.sub_banners?null===(c=(u=o.sub_banners).map)||void 0===c?void 0:c.call(u,A.formatBanner).filter(O):[],footerBanners:o.footer_banners?null===(m=(d=o.footer_banners).map)||void 0===m?void 0:m.call(d,A.formatBanner).filter(O):[],blogPosts:o.blog_posts?null===(_=(p=o.blog_posts).map)||void 0===_?void 0:_.call(p,A.formatBlogPost).filter(O):[],popularCategories:o.popular_categories?null===(E=(h=o.popular_categories).map)||void 0===E?void 0:E.call(h,(function(o){return A.formatCategory(o)})).filter(O):[],suggestProducts:o.suggest_products?null===(I=(v=o.suggest_products).map)||void 0===I?void 0:I.call(v,(function(o){return A.formatCategory(o)})).filter(O):[],promotions:o.promotions?null===(g=(T=o.promotions).map)||void 0===g?void 0:g.call(T,(function(o){return A.formatPromotion(o)})).filter(O):[]}:null},formatCategoryPage:function(o){var e,t,i,l;return o?{id:o.id||0,name:o.name||"",slug:o.slug||"",description:o.description||null,banners:(null===(t=null===(e=o.banners)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,A.formatBanner).filter(O))||[],bestsellerProducts:(null===(l=null===(i=o.bestseller_products)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,A.formatProduct).filter(O))||[]}:null},formatBrandPage:function(o){return o?A.formatBrand(o):null},formatPagination:function(o){return o?{current:o.current||0,first:o.first||0,itemsPerPage:o.items_per_page||0,last:o.last||0,next:o.next||0,prev:o.prev||0,totalItems:o.total_items||0}:null},formatProductDetailPage:function(e){var t,i,l,n,a,r,s,u;return e?o(o({},A.formatProduct(e)),{relatedProducts:(null===(i=null===(t=e.related_products)||void 0===t?void 0:t.map)||void 0===i?void 0:i.call(t,A.formatProduct).filter(O))||[],bestsellerProducts:(null===(n=null===(l=e.bestseller_products)||void 0===l?void 0:l.map)||void 0===n?void 0:n.call(l,A.formatProduct).filter(O))||[],viewedProducts:(null===(r=null===(a=e.viewed_products)||void 0===a?void 0:a.map)||void 0===r?void 0:r.call(a,A.formatProduct).filter(O))||[],promotions:(null===(u=null===(s=e.promotions)||void 0===s?void 0:s.map)||void 0===u?void 0:u.call(s,A.formatPromotion).filter(O))||[]}):null},formatProductReview:function(o){var e,t;return o?{reviewId:o.review_id||"",createdAt:o.created_at||"",title:o.title||"",detail:o.detail||"",nickname:o.nick_name||"",avatar:o.avatar||"",ratingVotes:(null===(t=null===(e=o.rating_votes)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,(function(o){return{ratingCode:o.rating_code||"",value:Number(o.value)||0,percent:Number(o.percent)||0}})))||[],images:o.images||[]}:null},formatProductPromotion:function(o){return o?{id:o.id||0,name:o.name||"",thumbnail:o.thumbnail||"",expirationDate:o.expiration_date||""}:null},formatPromotion:function(o){return o?{id:o.id||0,name:o.name||"",slug:o.slug||"",thumbnail:o.thumbnail||"",expiredDate:o.expired_date||"",banners:o.banners||[],points:0,description:o.description||"",metaTitle:o.meta_title||"",metaKeywords:o.meta_keywords||"",metaDescription:o.meta_description||""}:null},formatCustomAttributes:function(o,e){var t;return(null==o?void 0:o.length)&&(null===(t=null==o?void 0:o.find((function(o){return o.attribute_code===e})))||void 0===t?void 0:t.value)||""},formatAddress:function(o){var e,t,i,l;return o?{id:o.id||0,fullName:o.firstname||"",telephone:o.telephone||"",province:{value:null===(e=o.region)||void 0===e?void 0:e.region_id,label:null===(t=o.region)||void 0===t?void 0:t.region}||null,district:{value:A.formatCustomAttributes(o.custom_attributes,"district_id"),label:A.formatCustomAttributes(o.custom_attributes,"district")},commune:{value:A.formatCustomAttributes(o.custom_attributes,"ward_id"),label:A.formatCustomAttributes(o.custom_attributes,"ward")},street:(null===(i=null==o?void 0:o.street)||void 0===i?void 0:i.length)?null==o?void 0:o.street[0]:"",isDefault:o.default_billing&&o.default_shipping||!1,fullAddress:(null===(l=null==o?void 0:o.extension_attributes)||void 0===l?void 0:l.full_address)||""}:null},formatProvince:function(o){return(null==o?void 0:o.available_regions)?o.available_regions.map((function(o){return{value:o.id||"",label:o.name||""}})):[]},formatDistrict:function(o){return(null==o?void 0:o.districts)?o.districts.map((function(o){return{value:o.id||"",label:o.name||""}})):[]},formatCommune:function(o){return(null==o?void 0:o.communes)?o.communes.map((function(o){return{value:o.id||"",label:o.name||""}})):[]},formatOrder:function(o){var e,t;return o?{orderNumber:(null==o?void 0:o.order_number)||"",shippingData:(null==o?void 0:o.shipping_data)?{shippingMethod:o.shipping_data.shipping_method||"",shippingDescription:o.shipping_data.shipping_description||"",shippingAddress:o.shipping_data.shipping_address?{fullName:o.shipping_data.shipping_address.firstname||"",fullAddress:o.shipping_data.shipping_address.full_address||"",telephone:o.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==o?void 0:o.ordered_date)||"",status:(null==o?void 0:o.status)||null,totals:(null==o?void 0:o.totals)?{subtotal:o.totals.subtotal||0,shippingAmount:o.totals.shipping_amount||0,discountAmount:o.totals.discount_amount||0,grandTotal:o.totals.grand_total||0}:null,products:(null===(t=null===(e=null==o?void 0:o.products)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,(function(o){return{sku:o.sku||"",name:o.name||"",price:o.price||0,rowTotal:o.row_total||0,image:o.image||"",qty:o.qty||0}})))||[],paymentMethod:(null==o?void 0:o.payment_method)||""}:null},formatStatistic:function(o){var e,t,i,l,n;return o?{pending:Number(null===(e=null==o?void 0:o.find((function(o){return"pending"===o.status})))||void 0===e?void 0:e.amount)||0,processing:Number(null===(t=null==o?void 0:o.find((function(o){return"processing"===o.status})))||void 0===t?void 0:t.amount)||0,delivering:Number(null===(i=null==o?void 0:o.find((function(o){return"delivering"===o.status})))||void 0===i?void 0:i.amount)||0,complete:Number(null===(l=null==o?void 0:o.find((function(o){return"complete"===o.status})))||void 0===l?void 0:l.amount)||0,canceled:Number(null===(n=null==o?void 0:o.find((function(o){return"canceled"===o.status})))||void 0===n?void 0:n.amount)||0}:{}},formatCartItem:function(o){var e,t,i,l,n,a,r,s;return o?{itemId:o.item_id||0,sku:o.sku||"",qty:o.qty||0,name:o.name||"",price:o.price||0,basePrice:(null===(e=o.extension_attributes)||void 0===e?void 0:e.base_price)||0,productType:o.product_type||"",quoteId:o.quote_id||"",thumbnail:(null===(t=o.extension_attributes)||void 0===t?void 0:t.thumbnail)||"",rowTotal:(null===(i=o.extension_attributes)||void 0===i?void 0:i.row_total)||0,promotions:(null===(a=null===(n=null===(l=o.extension_attributes)||void 0===l?void 0:l.promotions)||void 0===n?void 0:n.map)||void 0===a?void 0:a.call(n,A.formatProductPromotion))||[],isInStock:(null===(r=o.extension_attributes)||void 0===r?void 0:r.is_in_stock)||!1,urlProduct:(null===(s=o.extension_attributes)||void 0===s?void 0:s.url_key)||""}:null},formatCartAddress:function(o){var e;return o?{customerAddressId:(null==o?void 0:o.customer_address_id)||0,id:o.id||0,region:o.region||"",regionId:o.region_id||0,regionCode:o.region_code||"",countryId:o.country_id||"",street:o.street||[],postcode:o.postcode||"",city:o.city||"",firstname:o.firstname||"",lastname:o.lastname||"",customerId:o.customer_id||0,email:o.email||"",telephone:o.telephone||"",sameAsBilling:o.same_as_billing||0,saveInAddressBook:o.save_in_address_book||0,fullAddress:(null===(e=o.extension_attributes)||void 0===e?void 0:e.full_address)||""}:null},formatEstimatedShipping:function(o){return o?{carrierCode:o.carrier_code||"",methodCode:o.method_code||"",carrierTitle:o.carrier_title||"",methodTitle:o.method_title||"",amount:o.amount||0,baseAmount:o.base_amount||0,available:o.available||!1,errorMessage:o.error_message||"",priceExclTax:o.price_excl_tax||0,priceInclTax:o.price_incl_tax||0}:null},formatCartLoggedInCustomer:function(o){var e,t,i;return o?{email:o.email||"",firstname:o.firstname||"",lastname:o.lastname||"",id:o.id||0,groupId:o.group_id||0,createdAt:o.created_at||"",updatedAt:o.updated_at||"",createdIn:o.created_in||"",storeId:o.store_id||0,websiteId:o.website_id||0,addresses:(null===(t=null===(e=o.addresses)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,A.formatCartAddress))||[],disableAutoGroupChange:o.disable_auto_group_change||0,isSubscribed:(null===(i=o.extension_attributes)||void 0===i?void 0:i.is_subscribed)||!1}:null},formatCart:function(o){var e,t,i,l,n,a,r,s,u,c,d,m,p,_;return o?{id:o.id||0,createdAt:o.created_at||"",updatedAt:o.updated_at||"",isActive:o.is_active||!1,isVirtual:o.is_virtual||!1,items:(null===(i=null===(t=null===(e=o.items)||void 0===e?void 0:e.map)||void 0===t?void 0:t.call(e,A.formatCartItem))||void 0===i?void 0:i.sort((function(o,e){return Number(null==e?void 0:e.isInStock)-Number(null==o?void 0:o.isInStock)})))||[],itemsCount:o.items_count||0,itemsQty:o.items_qty||0,customer:o.customer?A.formatCartLoggedInCustomer(o.customer):null,billingAddress:o.billing_address?A.formatCartAddress(o.billing_address):null,origOrderId:o.orig_order_id||0,currency:{globalCurrencyCode:(null===(l=o.currency)||void 0===l?void 0:l.global_currency_code)||"",baseCurrencyCode:(null===(n=o.currency)||void 0===n?void 0:n.base_currency_code)||"",storeCurrencyCode:(null===(a=o.currency)||void 0===a?void 0:a.store_currency_code)||"",quoteCurrencyCode:(null===(r=o.currency)||void 0===r?void 0:r.quote_currency_code)||"",storeToBaseRate:(null===(s=o.currency)||void 0===s?void 0:s.store_to_base_rate)||0,storeToQuoteRate:(null===(u=o.currency)||void 0===u?void 0:u.store_to_quote_rate)||0,baseToGlobalRate:(null===(c=o.currency)||void 0===c?void 0:c.base_to_global_rate)||0,baseToQuoteRate:(null===(d=o.currency)||void 0===d?void 0:d.base_to_quote_rate)||0},customerIsGuest:o.customer_is_guest||!1,customerNoteNotify:o.customer_note_notify||!1,customerTaxClassId:o.customer_tax_class_id||0,storeId:o.store_id||0,shippingAssignments:null===(_=null===(p=null===(m=o.extension_attributes)||void 0===m?void 0:m.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(function(o){var e,t,i;return{shipping:{address:o.shipping.address?A.formatCartAddress(o.shipping.address):null,method:(null===(e=o.shipping)||void 0===e?void 0:e.method)||""},items:(null===(i=(t=o.items).map)||void 0===i?void 0:i.call(t,A.formatCartItem))||[]}}))}:null},formatCartTotal:function(o){var e,t,i;return o?{grandTotal:o.grand_total||0,baseGrandTotal:o.base_grand_total||0,subtotal:o.subtotal||0,baseSubtotal:o.base_subtotal||0,discountAmount:o.discount_amount||0,baseDiscountAmount:o.base_discount_amount||0,subtotalWithDiscount:o.subtotal_with_discount||0,baseSubtotalWithDiscount:o.base_subtotal_with_discount||0,shippingAmount:o.shipping_amount||0,baseShippingAmount:o.base_shipping_amount||0,shippingDiscountAmount:o.shipping_discount_amount||0,baseShippingDiscountAmount:o.base_shipping_discount_amount||0,taxAmount:o.tax_amount||0,baseTaxAmount:o.base_tax_amount||0,weeeTaxAppliedAmount:o.weee_tax_applied_amount||0,shippingTaxAmount:o.shipping_tax_amount||0,baseShippingTaxAmount:o.base_shipping_tax_amount||0,subtotalInclTax:o.subtotal_incl_tax||0,shippingInclTax:o.shipping_incl_tax||0,baseShippingInclTax:o.base_shipping_incl_tax||0,baseCurrencyCode:o.base_currency_code||"",quoteCurrencyCode:o.quote_currency_code||"",itemsQty:o.items_qty||0,coupon:{couponCode:o.coupon_code||"",couponDescription:(null===(e=null==o?void 0:o.extension_attributes)||void 0===e?void 0:e.coupon_description_text)||""},items:(null===(i=null===(t=o.items)||void 0===t?void 0:t.map)||void 0===i?void 0:i.call(t,(function(o){return{itemId:o.item_id||0,price:o.price||0,basePrice:o.base_price||0,qty:o.qty||0,rowTotal:o.row_total||0,baseRowTotal:o.base_row_total||0,rowTotalWithDiscount:o.row_total_with_discount||0,taxAmount:o.tax_amount||0,baseTaxAmount:o.base_tax_amount||0,taxPercent:o.tax_percent||0,discountAmount:o.discount_amount||0,baseDiscountAmount:o.base_discount_amount||0,discountPercent:o.discount_percent||0,priceInclTax:o.price_incl_tax||0,basePriceInclTax:o.base_price_incl_tax||0,rowTotalInclTax:o.row_total_incl_tax||0,baseRowTotalInclTax:o.base_row_total_incl_tax||0,options:o.options||"",weeeTaxAppliedAmount:o.weee_tax_applied_amount||0,weeeTaxApplied:o.weee_tax_applied||0,name:o.name||""}})))||[],totalSegments:o.total_segments||[]}:null},formatPaymentMethod:function(o){return o?null==o?void 0:o.map((function(o){return{code:(null==o?void 0:o.payment_code)||"",title:(null==o?void 0:o.payment_title)||"",thumbnail:(null==o?void 0:o.payment_thumbnail)||""}})):null},formatPaymentInformation:function(o){var e;return o?{paymentMethods:A.formatPaymentMethod(null===(e=null==o?void 0:o.extension_attributes)||void 0===e?void 0:e.payment_detail_info)||[],totals:A.formatCartTotal(o.totals)}:null},formatOrderConfirmation:function(o){return o?{isSuccess:o.is_success||!1,orderInfo:A.formatOrder(o.order_info)}:null},formatCoupons:function(o){var e;return(null===(e=null==o?void 0:o.items)||void 0===e?void 0:e.length)?o.items.map((function(o){return{code:(null==o?void 0:o.code)||"",name:(null==o?void 0:o.name)||"",thumbnail:(null==o?void 0:o.thumbnail)||"",description:(null==o?void 0:o.expired_date)||""}})):null},formatShippings:function(o){return o?o.map((function(o){var e;return{carrierCode:o.carrier_code||"",methodCode:o.method_code||"",title:o.carrier_title||"",description:o.method_title||"",price:(null==o?void 0:o.base_amount)||0,thumbnail:(null===(e=null==o?void 0:o.extension_attributes)||void 0===e?void 0:e.thumbnail)||""}})):[]}},f=Object.freeze({__proto__:null,dataFormatter:A});export{n as EcomApiTypes,g as EcomConstants,f as EcomDataFormatter,a as EcomDataTypes};
|
package/build/esm/footer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{B as t}from"./index-10220457.js";import{C as a}from"./index-c400371e.js";import{T as l}from"./index-66dbe2be.js";import{d as n}from"./index-4109ae0a.js";import{t as o}from"./theme-a73122f6.js";import{u as r}from"./useTranslations-7812251e.js";import{L as i}from"./index-00e70e79.js";import{M as c}from"./index-e0da2e0a.js";import"./tslib.es6-f3342f27.js";import"./utils-7418c98d.js";import"styled-components";import"./gAssets.js";import"./isProduction-d1de7904.js";import"./Locale-798314ff.js";import"./translationsContext-fd0accb0.js";import"string-format";import"./index.styled-47c3aa95.js";var m="Lj0qoTD",s="OO-qFWT",d=function(t){var a=t.url,l=t.isMobile,n=t.dataEventCategory,o=t.dataEventAction,r=t.dataEventLabel;return e.createElement("div",{className:s,"data-is-mobile":l},e.createElement("img",{loading:"lazy",className:"country-flag",src:a,alt:"Country Flag","data-event-category":n,"data-event-action":o,"data-content-label":r}))},u=function(i){var c,s,u,v,E,g,y,p,f,N,b,h,k,F,z,j,C,T,x,M,L,w,A,_,H,B,I,G,S=i.className,D=i.type,q=void 0===D?"main":D,J=i.footerInfo,K=i.isMobile,O=i.locale,P=r().t,U=null==J?void 0:J.menu,V=(null===(s=null===(c=null==J?void 0:J.general)||void 0===c?void 0:c.verified)||void 0===s?void 0:s.filter(Boolean))||[];return e.createElement("footer",{className:"".concat(m," ").concat(S||""),style:"mini"===q?{backgroundColor:o.colors.neutral50}:{}},e.createElement(a,null,e.createElement("div",{className:"inner","data-type":q},"main"===q?e.createElement(e.Fragment,null,e.createElement("a",{href:"/"},e.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(u=null==J?void 0:J.general)||void 0===u?void 0:u.logo,alt:"Logo","data-is-sehat":"id-ID"===O})),e.createElement("div",{className:"columns"},e.createElement("div",{className:"newsletter"},e.createElement(l,{size:"p1",type:"bold"},null===(v=null==J?void 0:J.general)||void 0===v?void 0:v.content),e.createElement(t,{className:"signupButton",color:"primary",size:"lg"},P("footer.signUp")),e.createElement("div",{className:"social"},e.createElement(l,{size:"sm",type:"regular"},null===(E=null==J?void 0:J.social)||void 0===E?void 0:E.title),e.createElement("div",{className:"icons"},null===(y=null===(g=null==J?void 0:J.social)||void 0===g?void 0:g.socials)||void 0===y?void 0:y.map((function(t,a){return e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":"Follow us - ".concat(t.name),"data-content-label":t.url,href:t.url},e.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":"Follow us - ".concat(t.name),"data-content-label":t.url,src:t.icon,alt:"Logo Social",className:"social-icon"}))}))),e.createElement("hr",{className:"hrMobile"}))),e.createElement("div",null,U&&e.createElement(e.Fragment,null,e.createElement("div",{className:"biglinks"},null===(f=null===(p=U[0])||void 0===p?void 0:p.items)||void 0===f?void 0:f.map((function(t,a){return e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":"https://".concat(n[O]).concat(t.url),className:"bigLink",key:a,href:t.url},t.title)}))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(N=U[1])||void 0===N?void 0:N.menu_title),null===(h=null===(b=U[1])||void 0===b?void 0:b.items)||void 0===h?void 0:h.map((function(t,a){return e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":"https://".concat(n[O]).concat(t.url),className:"link",href:t.url,key:a},e.createElement(l,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:"https://".concat(n[O]).concat(t.url)},t.title))}))),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(k=U[2])||void 0===k?void 0:k.menu_title),null===(z=null===(F=U[2])||void 0===F?void 0:F.items)||void 0===z?void 0:z.map((function(t,a){return t.url&&e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url,className:"link",href:t.url,key:a},e.createElement(l,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))})))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"otherSites"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(j=null==J?void 0:J.branch)||void 0===j?void 0:j.title),e.createElement("div",{className:"flags"},null===(T=null===(C=null==J?void 0:J.branch)||void 0===C?void 0:C.branch)||void 0===T?void 0:T.map((function(t,a){return e.createElement("a",{className:"link",href:t.url,key:a,"data-event-category":"Footer","data-event-action":t.name,"data-event-label":t.url},e.createElement(d,{url:t.flag,isMobile:K,dataEventCategory:"Footer",dataEventAction:t.name,dataEventLabel:t.url}))})))))),e.createElement("hr",null),e.createElement("div",{className:"copyright"},e.createElement("div",{className:"copyright-image-wrapper"},V.length?V.map((function(t,a){return e.createElement("a",{href:t.url,key:a,className:"copyright-image"},e.createElement("img",{loading:"lazy",src:t.image,alt:"DMCA Icon"}))})):null),e.createElement(l,{size:"xs",type:"regular",className:"copyright-content"},null===(x=null==J?void 0:J.general)||void 0===x?void 0:x.copyright)),"vi-VN"===O&&e.createElement(l,{className:"copyright-certificate",size:"xs",type:"regular",color:"white"},"Giấy xác nhận cung cấp dịch vụ mạng xã hội trực tuyến số 529/GP-BTTTT, HN ngày 03/12/2019")):e.createElement(e.Fragment,null,(null==J?void 0:J.menu)&&e.createElement("div",{className:"columns"},e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(M=null==J?void 0:J.menu[1])||void 0===M?void 0:M.menu_title),null===(w=null===(L=null==J?void 0:J.menu[1])||void 0===L?void 0:L.items)||void 0===w?void 0:w.map((function(t){return e.createElement("a",{className:"link",href:t.url,key:t.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":t.title,"data-content-id":"https://".concat(n[O]).concat(t.url),"data-event-category":"Footer","data-event-action":t.title,"data-event-label":"https://".concat(n[O]).concat(t.url)},e.createElement(l,{dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:"https://".concat(n[O]).concat(t.url),size:"sm",type:"regular",style:{color:o.colors.gray800}},t.title))}))),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(A=null==J?void 0:J.menu[2])||void 0===A?void 0:A.menu_title),null===(H=null===(_=null==J?void 0:J.menu[2])||void 0===_?void 0:_.items)||void 0===H?void 0:H.map((function(t,a){return e.createElement("a",{className:"link",href:t.url,key:a,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":t.title,"data-content-id":t.url,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url},e.createElement(l,{size:"sm",type:"regular",style:{color:o.colors.gray800},dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))}))),"mini"!==q&&e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"newsletter"},e.createElement("div",{className:"social"},e.createElement(l,{size:"sm",type:"regular"},null===(B=null==J?void 0:J.social)||void 0===B?void 0:B.title),e.createElement("div",{className:"icons"},null===(G=null===(I=null==J?void 0:J.social)||void 0===I?void 0:I.socials)||void 0===G?void 0:G.map((function(t,a){return e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":"Follow us - ".concat(t.name),"data-content-label":t.url,href:t.url},e.createElement("img",{"data-event-category":"Footer","data-event-action":"Follow us - ".concat(t.name),"data-content-label":t.url,src:t.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))}))))))))))},v="B6-KmWK",E="GS-7mbG",g="qc5bEb3",y="CQGVeuT",p="_6JMoel-",f="_8eUT8Jr",N="cjDwoLi",b=function(t){var l,n=t.logoType,r=void 0===n?"marryBaby":n,m=t.footerMenu,s=t.background;if(!m)return null;var d=m.general,u=m.menu,b=m.socials;return e.createElement("footer",{className:v,style:{backgroundColor:s||"none"}},e.createElement("div",{className:N},e.createElement(a,null,e.createElement("div",{className:E},null==u?void 0:u.map((function(t,a){var l=t.menu_title,n=t.items;return e.createElement("div",{className:g,key:"mbf".concat(a)},e.createElement(c,{className:"title",type:"subtitle-1",color:o.mbColors.pink},l),null==n?void 0:n.map((function(t,a){var l=t.title,n=t.url;return e.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":"".concat(n),className:"link",href:n,key:"footer-links-".concat(a)},e.createElement("div",{className:y,key:"mbitem".concat(a)},e.createElement(c,{type:"bodytext-2",color:o.mbColors.gray},l)))})))})))),e.createElement(a,null,e.createElement("div",{className:p},e.createElement(i,{className:"logo",type:r}),e.createElement("div",{className:"content"},e.createElement(c,{type:"bodytext-2",color:o.mbColors.gray},null==d?void 0:d.content)),e.createElement("div",{className:"social-link"},null==b?void 0:b.map((function(t,a){var l=t.icon,n=t.name,o=t.url;return e.createElement("a",{key:"social".concat(a),target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":"Follow us - ".concat(n),"data-content-label":n,href:o},e.createElement("img",{loading:"lazy",src:l,alt:n}))}))))),e.createElement("div",{className:f},e.createElement(a,null,e.createElement("div",{className:"content"},e.createElement(c,{type:"bodytext-3",color:o.colors.white},null==d?void 0:d.copyright),e.createElement("div",{className:"verify"},null===(l=null==d?void 0:d.verified)||void 0===l?void 0:l.map((function(t,a){var l=t.image,n=t.url;return e.createElement("img",{loading:"lazy",key:"imgMbFt".concat(a),src:l,alt:n})}))))))))},h=function(t){var a=t.type,l=t.isMobile,n=void 0===l||l,o=t.locale,r=t.footerInfo,i=t.siteType,c=t.background;return"helloSites"===i?e.createElement(u,{isMobile:n,type:a,locale:o,footerInfo:r||{}}):e.createElement(b,{footerMenu:r,background:c})};export{h as Footer};
|
|
1
|
+
import e from"react";import{B as t}from"./index-fb05b9d4.js";import{C as a}from"./index-ddfb3556.js";import{T as l}from"./index-b7ec5191.js";import{d as n}from"./index-9b97e79f.js";import{t as o}from"./theme-dc7e5fb4.js";import{u as r}from"./useTranslations-184c5a05.js";import{L as i}from"./index-4d5d795a.js";import{M as c}from"./index-fd2ed39e.js";import"./tslib.es6-abb10b7f.js";import"./utils-6cbc9018.js";import"styled-components";import"./gAssets.js";import"./isProduction-af9e42e5.js";import"./Locale-5ad330ed.js";import"./translationsContext-b0b55382.js";import"string-format";import"./index.styled-1d926de0.js";var m="Lj0qoTD",s="OO-qFWT",d=function(t){var a=t.url,l=t.isMobile,n=t.dataEventCategory,o=t.dataEventAction,r=t.dataEventLabel;return e.createElement("div",{className:s,"data-is-mobile":l},e.createElement("img",{loading:"lazy",className:"country-flag",src:a,alt:"Country Flag","data-event-category":n,"data-event-action":o,"data-content-label":r}))},u=function(i){var c,s,u,v,E,g,y,p,f,b,N,h,k,F,z,j,C,T,x,M,L,w,A,_,H,B,I,G,S=i.className,D=i.type,q=void 0===D?"main":D,J=i.footerInfo,K=i.isMobile,O=i.locale,P=r().t,U=null==J?void 0:J.menu,V=(null===(s=null===(c=null==J?void 0:J.general)||void 0===c?void 0:c.verified)||void 0===s?void 0:s.filter(Boolean))||[];return e.createElement("footer",{className:"".concat(m," ").concat(S||""),style:"mini"===q?{backgroundColor:o.colors.neutral50}:{}},e.createElement(a,null,e.createElement("div",{className:"inner","data-type":q},"main"===q?e.createElement(e.Fragment,null,e.createElement("a",{href:"/"},e.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(u=null==J?void 0:J.general)||void 0===u?void 0:u.logo,alt:"Logo","data-is-sehat":"id-ID"===O})),e.createElement("div",{className:"columns"},e.createElement("div",{className:"newsletter"},e.createElement(l,{size:"p1",type:"bold"},null===(v=null==J?void 0:J.general)||void 0===v?void 0:v.content),e.createElement(t,{className:"signupButton",color:"primary",size:"lg"},P("footer.signUp")),e.createElement("div",{className:"social"},e.createElement(l,{size:"sm",type:"regular"},null===(E=null==J?void 0:J.social)||void 0===E?void 0:E.title),e.createElement("div",{className:"icons"},null===(y=null===(g=null==J?void 0:J.social)||void 0===g?void 0:g.socials)||void 0===y?void 0:y.map((function(t,a){return e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":"Follow us - ".concat(t.name),"data-content-label":t.url,href:t.url},e.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":"Follow us - ".concat(t.name),"data-content-label":t.url,src:t.icon,alt:"Logo Social",className:"social-icon"}))}))),e.createElement("hr",{className:"hrMobile"}))),e.createElement("div",null,U&&e.createElement(e.Fragment,null,e.createElement("div",{className:"biglinks"},null===(f=null===(p=U[0])||void 0===p?void 0:p.items)||void 0===f?void 0:f.map((function(t,a){return e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":"https://".concat(n[O]).concat(t.url),className:"bigLink",key:a,href:t.url},t.title)}))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(b=U[1])||void 0===b?void 0:b.menu_title),null===(h=null===(N=U[1])||void 0===N?void 0:N.items)||void 0===h?void 0:h.map((function(t,a){return e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":"https://".concat(n[O]).concat(t.url),className:"link",href:t.url,key:a},e.createElement(l,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:"https://".concat(n[O]).concat(t.url)},t.title))}))),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(k=U[2])||void 0===k?void 0:k.menu_title),null===(z=null===(F=U[2])||void 0===F?void 0:F.items)||void 0===z?void 0:z.map((function(t,a){return t.url&&e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url,className:"link",href:t.url,key:a},e.createElement(l,{size:"sm",type:"regular",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))})))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"otherSites"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(j=null==J?void 0:J.branch)||void 0===j?void 0:j.title),e.createElement("div",{className:"flags"},null===(T=null===(C=null==J?void 0:J.branch)||void 0===C?void 0:C.branch)||void 0===T?void 0:T.map((function(t,a){return e.createElement("a",{className:"link",href:t.url,key:a,"data-event-category":"Footer","data-event-action":t.name,"data-event-label":t.url},e.createElement(d,{url:t.flag,isMobile:K,dataEventCategory:"Footer",dataEventAction:t.name,dataEventLabel:t.url}))})))))),e.createElement("hr",null),e.createElement("div",{className:"copyright"},e.createElement("div",{className:"copyright-image-wrapper"},V.length?V.map((function(t,a){return e.createElement("a",{href:t.url,key:a,className:"copyright-image"},e.createElement("img",{loading:"lazy",src:t.image,alt:"DMCA Icon"}))})):null),e.createElement(l,{size:"xs",type:"regular",className:"copyright-content"},null===(x=null==J?void 0:J.general)||void 0===x?void 0:x.copyright)),"vi-VN"===O&&e.createElement(l,{className:"copyright-certificate",size:"xs",type:"regular",color:"white"},"Giấy xác nhận cung cấp dịch vụ mạng xã hội trực tuyến số 529/GP-BTTTT, HN ngày 03/12/2019")):e.createElement(e.Fragment,null,(null==J?void 0:J.menu)&&e.createElement("div",{className:"columns"},e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(M=null==J?void 0:J.menu[1])||void 0===M?void 0:M.menu_title),null===(w=null===(L=null==J?void 0:J.menu[1])||void 0===L?void 0:L.items)||void 0===w?void 0:w.map((function(t){return e.createElement("a",{className:"link",href:t.url,key:t.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":t.title,"data-content-id":"https://".concat(n[O]).concat(t.url),"data-event-category":"Footer","data-event-action":t.title,"data-event-label":"https://".concat(n[O]).concat(t.url)},e.createElement(l,{dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:"https://".concat(n[O]).concat(t.url),size:"sm",type:"regular",style:{color:o.colors.gray800}},t.title))}))),e.createElement("div",{className:"mHalf"},e.createElement(l,{type:"regular",size:"sm",className:"linkTitle"},null===(A=null==J?void 0:J.menu[2])||void 0===A?void 0:A.menu_title),null===(H=null===(_=null==J?void 0:J.menu[2])||void 0===_?void 0:_.items)||void 0===H?void 0:H.map((function(t,a){return e.createElement("a",{className:"link",href:t.url,key:a,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":t.title,"data-content-id":t.url,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url},e.createElement(l,{size:"sm",type:"regular",style:{color:o.colors.gray800},dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))}))),"mini"!==q&&e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"newsletter"},e.createElement("div",{className:"social"},e.createElement(l,{size:"sm",type:"regular"},null===(B=null==J?void 0:J.social)||void 0===B?void 0:B.title),e.createElement("div",{className:"icons"},null===(G=null===(I=null==J?void 0:J.social)||void 0===I?void 0:I.socials)||void 0===G?void 0:G.map((function(t,a){return e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":"Follow us - ".concat(t.name),"data-content-label":t.url,href:t.url},e.createElement("img",{"data-event-category":"Footer","data-event-action":"Follow us - ".concat(t.name),"data-content-label":t.url,src:t.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))}))))))))))},v="B6-KmWK",E="GS-7mbG",g="qc5bEb3",y="CQGVeuT",p="_6JMoel-",f="_8eUT8Jr",b="cjDwoLi",N=function(t){var l,n=t.logoType,r=void 0===n?"marryBaby":n,m=t.footerMenu,s=t.background;if(!m)return null;var d=m.general,u=m.menu,N=m.socials;return e.createElement("footer",{className:v,style:{backgroundColor:s||"none"}},e.createElement("div",{className:b},e.createElement(a,null,e.createElement("div",{className:E},null==u?void 0:u.map((function(t,a){var l=t.menu_title,n=t.items;return e.createElement("div",{className:g,key:"mbf".concat(a)},e.createElement(c,{className:"title",type:"subtitle-1",color:o.mbColors.pink},l),null==n?void 0:n.map((function(t,a){var l=t.title,n=t.url;return e.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":"".concat(n),className:"link",href:n,key:"footer-links-".concat(a)},e.createElement("div",{className:y,key:"mbitem".concat(a)},e.createElement(c,{type:"bodytext-2",color:o.mbColors.gray},l)))})))})))),e.createElement(a,null,e.createElement("div",{className:p},e.createElement(i,{className:"logo",type:r}),e.createElement("div",{className:"content"},e.createElement(c,{type:"bodytext-2",color:o.mbColors.gray},null==d?void 0:d.content)),e.createElement("div",{className:"social-link"},null==N?void 0:N.map((function(t,a){var l=t.icon,n=t.name,o=t.url;return e.createElement("a",{key:"social".concat(a),target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":"Follow us - ".concat(n),"data-content-label":n,href:o},e.createElement("img",{loading:"lazy",src:l,alt:n}))}))))),e.createElement("div",{className:f},e.createElement(a,null,e.createElement("div",{className:"content"},e.createElement(c,{type:"bodytext-3",color:o.colors.white},null==d?void 0:d.copyright),e.createElement("div",{className:"verify"},null===(l=null==d?void 0:d.verified)||void 0===l?void 0:l.map((function(t,a){var l=t.image,n=t.url;return e.createElement("img",{loading:"lazy",key:"imgMbFt".concat(a),src:l,alt:n})}))))))))},h=function(t){var a=t.type,l=t.isMobile,n=void 0===l||l,o=t.locale,r=t.footerInfo,i=t.siteType,c=t.background;return"helloSites"===i?e.createElement(u,{isMobile:n,type:a,locale:o,footerInfo:r||{}}):e.createElement(N,{footerMenu:r,background:c})};export{h as Footer};
|
package/build/esm/gAssets.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as e}from"./index-
|
|
1
|
+
import{d as e}from"./index-9b97e79f.js";import{i as t}from"./isProduction-af9e42e5.js";import"./Locale-5ad330ed.js";var o="hellosehat.com",n=function(){function n(){var e=this;this.baseDomain="",this.subPath="",this.getAssetPath=function(o,n,i){var s="https://hhg-common."+[n||e.getBaseDomain(),i||e.subPath,o].join("/");return t||process.env.JEST_WORKER_ID?s:s+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}return n.prototype.getBaseDomain=function(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){var t=window.location.host,n=t.split("."),i=e[Object.keys(e).find((function(o){return t.includes(e[o])}))];return n.includes("localhost")||n.includes("hellohealthgroup")||n.every((function(e){return t=e,!isNaN(parseFloat(t))&&isFinite(t);var t}))||!i?o:i}return o},n}(),i=new n;i.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(i.baseDomain=e[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]);export{i as CommonGAssets,n as GAssets};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as t,d as n}from"./tslib.es6-
|
|
1
|
+
import{c as t,d as n}from"./tslib.es6-abb10b7f.js";import{g as e}from"./core-e4b8d431.js";import{c as r}from"./routing-180d9529.js";var i=function(t,n){var e,r;if(!t)return{};var i="tl-PH"===n?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(e=t.link)||void 0===e?void 0:e.startsWith("http"))?t.link:"".concat(i,"/health-tools")+(null===(r=t.link)||void 0===r?void 0:r.replace("".concat(i,"/"),"/")),subtitle:t.subtitle,title:t.title}},o=function(e){return t(void 0,void 0,void 0,(function(){var t,o,s,l,a,u,c;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,8,,9]),"undefined"==typeof window?[3,1]:(t=window.fetch,[3,3]);case 1:return[4,require("node-fetch")];case 2:t=n.sent(),n.label=3;case 3:o="tl-PH"===e?"lang=fil":"",s=[],n.label=4;case 4:return n.trys.push([4,6,,7]),[4,t("".concat(r(e),"/wp-json/api/healthtools?ismenu=0").concat(o?"&"+o:"")).then((function(t){return t.json()}))];case 5:return l=n.sent(),s=(null===(c=null===(u=null==l?void 0:l.data)||void 0===u?void 0:u.map)||void 0===c?void 0:c.call(u,(function(t){return i(t,e)})))||[],[3,7];case 6:return n.sent(),[3,7];case 7:return[2,s];case 8:return a=n.sent(),console.error(a),[3,9];case 9:return[2]}}))}))},s=function(r){return t(void 0,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,e("all-health-tools",(function(){return o(r||"en-PH")}),(function(t){return!!(null==t?void 0:t.length)}),6e4)];case 1:return[2,t.sent()||[]]}}))}))};export{s as a,i as f,o as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{L as t}from"./Locale-798314ff.js";import{CommonGAssets as C}from"./gAssets.js";var l=function(l){return[{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M27.5 0H5.5C2.73858 0 0.5 2.23858 0.5 5V27C0.5 29.7614 2.73858 32 5.5 32H27.5C30.2614 32 32.5 29.7614 32.5 27V5C32.5 2.23858 30.2614 0 27.5 0Z",fill:"#1778F2"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.814 32V19.499H24.069L24.5 15.19H20.814L20.82 13.034C20.82 11.911 20.92 11.309 22.443 11.309H24.477V7H21.222C17.312 7 15.937 9.09 15.937 12.604V15.191H13.5V19.499H15.937V32H20.814Z",fill:"white"})),name:"Facebook",href:"https://www.facebook.com/sharer/sharer.php?u=".concat(l)},{icon:e.createElement("img",{src:C.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32}}),name:"Zalo",href:"https://sp.zalo.me/share?href=".concat(l),allowedLocales:[t.Vietnam]},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2304 13.2349L16.2708 13.8692L15.5964 13.7916C13.1417 13.4938 10.9972 12.484 9.17631 10.788L8.2861 9.94646L8.05683 10.5679C7.57124 11.9532 7.88149 13.4161 8.89305 14.4001C9.43257 14.9438 9.31116 15.0215 8.38052 14.6978C8.05683 14.5943 7.77357 14.5166 7.74658 14.5554C7.65216 14.646 7.97591 15.8241 8.23218 16.2902C8.58286 16.9376 9.29766 17.5719 10.08 17.9474L10.7409 18.2452L9.9586 18.2581C9.20324 18.2581 9.17631 18.271 9.25723 18.5429C9.52699 19.3844 10.5925 20.2777 11.7794 20.6661L12.6157 20.938L11.8873 21.3523C10.8083 21.9478 9.54049 22.2844 8.2726 22.3103C7.66566 22.3232 7.16663 22.375 7.16663 22.4139C7.16663 22.5433 8.81213 23.2684 9.76976 23.5531C12.6427 24.3947 16.055 24.0322 18.6177 22.5951C20.4385 21.5724 22.2593 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.822 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.901 11.0598 25.8875 11.0598 25.1997 11.28C24.0532 11.6683 23.8913 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7006 9.92061 24.1611 10.1148 23.7565 10.2313L23.0281 10.4514L22.3673 10.0241C22.0031 9.79112 21.4905 9.53219 21.2208 9.45452C20.5329 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.1089 11.5907 16.2304 13.2349Z",fill:"white"})),name:"Twitter",href:"https://twitter.com/intent/tweet?url=".concat(l)},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",{clipPath:"url(#clip0_687_88944)"},e.createElement("path",{d:"M29.5309 0H3.46909C1.82931 0 0.5 1.32931 0.5 2.96909V29.0309C0.5 30.6707 1.82931 32 3.46909 32H29.5309C31.1707 32 32.5 30.6707 32.5 29.0309V2.96909C32.5 1.32931 31.1707 0 29.5309 0Z",fill:"url(#paint0_linear_687_88944)"}),e.createElement("path",{d:"M23.5545 8.94548C21.8898 7.2642 19.6792 6.23313 17.3212 6.03825C14.9633 5.84336 12.6134 6.49749 10.6953 7.88265C8.77715 9.2678 7.41716 11.2928 6.86059 13.5924C6.30403 15.8919 6.58753 18.3147 7.65997 20.4237L6.60724 25.5346C6.59632 25.5854 6.59601 25.638 6.60633 25.689C6.61665 25.74 6.63739 25.7883 6.66724 25.8309C6.71097 25.8956 6.77338 25.9454 6.84616 25.9737C6.91893 26.0019 6.99859 26.0073 7.07451 25.9891L12.0836 24.8018C14.1866 25.8471 16.5923 26.1124 18.8725 25.5505C21.1528 24.9885 23.1597 23.6358 24.5362 21.7331C25.9128 19.8303 26.5696 17.5009 26.3898 15.1593C26.21 12.8177 25.2053 10.6158 23.5545 8.94548ZM21.9927 21.4109C20.8409 22.5595 19.3578 23.3176 17.7523 23.5786C16.1468 23.8395 14.4998 23.5901 13.0436 22.8655L12.3454 22.52L9.27451 23.2473L9.2836 23.2091L9.91997 20.1182L9.57815 19.4437C8.83408 17.9823 8.57159 16.323 8.82831 14.7034C9.08502 13.0837 9.84775 11.5869 11.0072 10.4273C12.4642 8.97083 14.4399 8.15263 16.5 8.15263C18.56 8.15263 20.5358 8.97083 21.9927 10.4273C22.0051 10.4415 22.0185 10.4549 22.0327 10.4673C23.4716 11.9275 24.2748 13.8974 24.2673 15.9474C24.2598 17.9974 23.4422 19.9613 21.9927 21.4109Z",fill:"white"}),e.createElement("path",{d:"M21.7199 19.1436C21.3436 19.7364 20.749 20.4618 20.0017 20.6418C18.6926 20.9582 16.6836 20.6527 14.1836 18.3218L14.1526 18.2946C11.9545 16.2564 11.3836 14.56 11.5217 13.2146C11.5981 12.4509 12.2345 11.76 12.7708 11.3091C12.8556 11.2367 12.9562 11.1852 13.0645 11.1586C13.1727 11.1321 13.2857 11.1312 13.3944 11.1561C13.503 11.181 13.6044 11.231 13.6903 11.3021C13.7761 11.3732 13.8442 11.4634 13.889 11.5655L14.6981 13.3836C14.7507 13.5015 14.7702 13.6315 14.7545 13.7596C14.7388 13.8878 14.6885 14.0092 14.609 14.1109L14.1999 14.6418C14.1121 14.7515 14.0592 14.8848 14.0478 15.0248C14.0365 15.1648 14.0673 15.305 14.1363 15.4273C14.3654 15.8291 14.9145 16.42 15.5236 16.9673C16.2072 17.5855 16.9654 18.1509 17.4454 18.3436C17.5738 18.3961 17.715 18.4089 17.8508 18.3804C17.9866 18.3519 18.1107 18.2834 18.2072 18.1836L18.6817 17.7055C18.7733 17.6152 18.8872 17.5508 19.0117 17.5188C19.1363 17.4869 19.2671 17.4886 19.3908 17.5236L21.3126 18.0691C21.4187 18.1016 21.5158 18.158 21.5967 18.2338C21.6776 18.3096 21.7401 18.4029 21.7794 18.5066C21.8187 18.6103 21.8338 18.7216 21.8235 18.832C21.8132 18.9424 21.7777 19.049 21.7199 19.1436Z",fill:"white"})),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#36F46C"}),e.createElement("stop",{offset:"1",stopColor:"#03D749"})),e.createElement("clipPath",{id:"clip0_687_88944"},e.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:"https://wa.me/?text=".concat(l)},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z",fill:"white"})),name:"LinkedIn",href:"https://www.linkedin.com/sharing/share-offsite/?url=".concat(l)},{icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},e.createElement("g",{id:"surface1"},e.createElement("path",{fill:"#00cf2e",d:"M 26.398438 32 L 5.601562 32 C 2.507812 32 0 29.492188 0 26.398438 L 0 5.601562 C 0 2.507812 2.507812 0 5.601562 0 L 26.398438 0 C 29.492188 0 32 2.507812 32 5.601562 L 32 26.398438 C 32 29.492188 29.492188 32 26.398438 32 Z M 26.398438 32 "}),e.createElement("path",{fill:"#fff",d:"M 28.199219 14.199219 C 28.199219 9.800781 23 5 16.199219 5 C 9.574219 5 4.199219 8.898438 4.199219 14.199219 C 4.199219 19.089844 8.390625 23.128906 14.285156 23.726562 C 14.648438 23.753906 14.980469 23.949219 15.179688 24.253906 C 15.320312 24.476562 15.398438 24.734375 15.398438 25 C 15.386719 25.542969 15.324219 26.082031 15.21875 26.613281 C 15.1875 26.761719 15.238281 26.914062 15.355469 27.011719 C 15.472656 27.109375 15.632812 27.128906 15.769531 27.070312 C 18.59375 25.820312 28.199219 20.679688 28.199219 14.199219 Z M 28.199219 14.199219 "}),e.createElement("path",{fill:"#00cf2e",d:"M 11.800781 16.398438 L 10 16.398438 L 10 12.199219 C 10 11.867188 9.730469 11.601562 9.398438 11.601562 C 9.070312 11.601562 8.800781 11.867188 8.800781 12.199219 L 8.800781 17 C 8.800781 17.332031 9.070312 17.601562 9.398438 17.601562 L 11.800781 17.601562 C 12.132812 17.601562 12.398438 17.332031 12.398438 17 C 12.398438 16.667969 12.132812 16.398438 11.800781 16.398438 Z M 11.800781 16.398438 "}),e.createElement("path",{fill:"#00cf2e",d:"M 13.398438 11.601562 C 13.070312 11.601562 12.800781 11.867188 12.800781 12.199219 L 12.800781 17 C 12.800781 17.332031 13.070312 17.601562 13.398438 17.601562 C 13.730469 17.601562 14 17.332031 14 17 L 14 12.199219 C 14 11.867188 13.730469 11.601562 13.398438 11.601562 Z M 13.398438 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 19 11.601562 C 18.667969 11.601562 18.398438 11.867188 18.398438 12.199219 L 18.398438 15.199219 L 15.898438 11.839844 C 15.746094 11.632812 15.476562 11.550781 15.230469 11.628906 C 14.984375 11.710938 14.820312 11.941406 14.820312 12.199219 L 14.820312 17 C 14.871094 17.285156 15.121094 17.492188 15.410156 17.492188 C 15.699219 17.492188 15.949219 17.285156 16 17 L 16 14 L 18.5 17.359375 C 18.617188 17.515625 18.804688 17.605469 19 17.601562 C 19.066406 17.601562 19.128906 17.589844 19.191406 17.570312 C 19.433594 17.488281 19.601562 17.257812 19.601562 17 L 19.601562 12.199219 C 19.601562 11.867188 19.332031 11.601562 19 11.601562 Z M 19 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 23.398438 15.199219 C 23.730469 15.199219 24 14.929688 24 14.601562 C 24 14.269531 23.730469 14 23.398438 14 L 21.601562 14 L 21.601562 12.800781 L 23.398438 12.800781 C 23.730469 12.800781 24 12.53125 24 12.199219 C 24 11.867188 23.730469 11.601562 23.398438 11.601562 L 21 11.601562 C 20.667969 11.601562 20.398438 11.867188 20.398438 12.199219 L 20.398438 17 C 20.398438 17.332031 20.667969 17.601562 21 17.601562 L 23.398438 17.601562 C 23.730469 17.601562 24 17.332031 24 17 C 24 16.667969 23.730469 16.398438 23.398438 16.398438 L 21.601562 16.398438 L 21.601562 15.199219 Z M 23.398438 15.199219 "}))),name:"Line",href:"http://line.me/R/msg/text/?".concat(l),allowedLocales:[t.Taiwan]}]};export{l as g};
|
|
1
|
+
import e from"react";import{L as t}from"./Locale-5ad330ed.js";import{CommonGAssets as C}from"./gAssets.js";var l=function(l){return[{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M27.5 0H5.5C2.73858 0 0.5 2.23858 0.5 5V27C0.5 29.7614 2.73858 32 5.5 32H27.5C30.2614 32 32.5 29.7614 32.5 27V5C32.5 2.23858 30.2614 0 27.5 0Z",fill:"#1778F2"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.814 32V19.499H24.069L24.5 15.19H20.814L20.82 13.034C20.82 11.911 20.92 11.309 22.443 11.309H24.477V7H21.222C17.312 7 15.937 9.09 15.937 12.604V15.191H13.5V19.499H15.937V32H20.814Z",fill:"white"})),name:"Facebook",href:"https://www.facebook.com/sharer/sharer.php?u=".concat(l)},{icon:e.createElement("img",{src:C.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32}}),name:"Zalo",href:"https://sp.zalo.me/share?href=".concat(l),allowedLocales:[t.Vietnam]},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2304 13.2349L16.2708 13.8692L15.5964 13.7916C13.1417 13.4938 10.9972 12.484 9.17631 10.788L8.2861 9.94646L8.05683 10.5679C7.57124 11.9532 7.88149 13.4161 8.89305 14.4001C9.43257 14.9438 9.31116 15.0215 8.38052 14.6978C8.05683 14.5943 7.77357 14.5166 7.74658 14.5554C7.65216 14.646 7.97591 15.8241 8.23218 16.2902C8.58286 16.9376 9.29766 17.5719 10.08 17.9474L10.7409 18.2452L9.9586 18.2581C9.20324 18.2581 9.17631 18.271 9.25723 18.5429C9.52699 19.3844 10.5925 20.2777 11.7794 20.6661L12.6157 20.938L11.8873 21.3523C10.8083 21.9478 9.54049 22.2844 8.2726 22.3103C7.66566 22.3232 7.16663 22.375 7.16663 22.4139C7.16663 22.5433 8.81213 23.2684 9.76976 23.5531C12.6427 24.3947 16.055 24.0322 18.6177 22.5951C20.4385 21.5724 22.2593 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.822 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.901 11.0598 25.8875 11.0598 25.1997 11.28C24.0532 11.6683 23.8913 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7006 9.92061 24.1611 10.1148 23.7565 10.2313L23.0281 10.4514L22.3673 10.0241C22.0031 9.79112 21.4905 9.53219 21.2208 9.45452C20.5329 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.1089 11.5907 16.2304 13.2349Z",fill:"white"})),name:"Twitter",href:"https://twitter.com/intent/tweet?url=".concat(l)},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",{clipPath:"url(#clip0_687_88944)"},e.createElement("path",{d:"M29.5309 0H3.46909C1.82931 0 0.5 1.32931 0.5 2.96909V29.0309C0.5 30.6707 1.82931 32 3.46909 32H29.5309C31.1707 32 32.5 30.6707 32.5 29.0309V2.96909C32.5 1.32931 31.1707 0 29.5309 0Z",fill:"url(#paint0_linear_687_88944)"}),e.createElement("path",{d:"M23.5545 8.94548C21.8898 7.2642 19.6792 6.23313 17.3212 6.03825C14.9633 5.84336 12.6134 6.49749 10.6953 7.88265C8.77715 9.2678 7.41716 11.2928 6.86059 13.5924C6.30403 15.8919 6.58753 18.3147 7.65997 20.4237L6.60724 25.5346C6.59632 25.5854 6.59601 25.638 6.60633 25.689C6.61665 25.74 6.63739 25.7883 6.66724 25.8309C6.71097 25.8956 6.77338 25.9454 6.84616 25.9737C6.91893 26.0019 6.99859 26.0073 7.07451 25.9891L12.0836 24.8018C14.1866 25.8471 16.5923 26.1124 18.8725 25.5505C21.1528 24.9885 23.1597 23.6358 24.5362 21.7331C25.9128 19.8303 26.5696 17.5009 26.3898 15.1593C26.21 12.8177 25.2053 10.6158 23.5545 8.94548ZM21.9927 21.4109C20.8409 22.5595 19.3578 23.3176 17.7523 23.5786C16.1468 23.8395 14.4998 23.5901 13.0436 22.8655L12.3454 22.52L9.27451 23.2473L9.2836 23.2091L9.91997 20.1182L9.57815 19.4437C8.83408 17.9823 8.57159 16.323 8.82831 14.7034C9.08502 13.0837 9.84775 11.5869 11.0072 10.4273C12.4642 8.97083 14.4399 8.15263 16.5 8.15263C18.56 8.15263 20.5358 8.97083 21.9927 10.4273C22.0051 10.4415 22.0185 10.4549 22.0327 10.4673C23.4716 11.9275 24.2748 13.8974 24.2673 15.9474C24.2598 17.9974 23.4422 19.9613 21.9927 21.4109Z",fill:"white"}),e.createElement("path",{d:"M21.7199 19.1436C21.3436 19.7364 20.749 20.4618 20.0017 20.6418C18.6926 20.9582 16.6836 20.6527 14.1836 18.3218L14.1526 18.2946C11.9545 16.2564 11.3836 14.56 11.5217 13.2146C11.5981 12.4509 12.2345 11.76 12.7708 11.3091C12.8556 11.2367 12.9562 11.1852 13.0645 11.1586C13.1727 11.1321 13.2857 11.1312 13.3944 11.1561C13.503 11.181 13.6044 11.231 13.6903 11.3021C13.7761 11.3732 13.8442 11.4634 13.889 11.5655L14.6981 13.3836C14.7507 13.5015 14.7702 13.6315 14.7545 13.7596C14.7388 13.8878 14.6885 14.0092 14.609 14.1109L14.1999 14.6418C14.1121 14.7515 14.0592 14.8848 14.0478 15.0248C14.0365 15.1648 14.0673 15.305 14.1363 15.4273C14.3654 15.8291 14.9145 16.42 15.5236 16.9673C16.2072 17.5855 16.9654 18.1509 17.4454 18.3436C17.5738 18.3961 17.715 18.4089 17.8508 18.3804C17.9866 18.3519 18.1107 18.2834 18.2072 18.1836L18.6817 17.7055C18.7733 17.6152 18.8872 17.5508 19.0117 17.5188C19.1363 17.4869 19.2671 17.4886 19.3908 17.5236L21.3126 18.0691C21.4187 18.1016 21.5158 18.158 21.5967 18.2338C21.6776 18.3096 21.7401 18.4029 21.7794 18.5066C21.8187 18.6103 21.8338 18.7216 21.8235 18.832C21.8132 18.9424 21.7777 19.049 21.7199 19.1436Z",fill:"white"})),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#36F46C"}),e.createElement("stop",{offset:"1",stopColor:"#03D749"})),e.createElement("clipPath",{id:"clip0_687_88944"},e.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:"https://wa.me/?text=".concat(l)},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z",fill:"white"})),name:"LinkedIn",href:"https://www.linkedin.com/sharing/share-offsite/?url=".concat(l)},{icon:e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},e.createElement("g",{id:"surface1"},e.createElement("path",{fill:"#00cf2e",d:"M 26.398438 32 L 5.601562 32 C 2.507812 32 0 29.492188 0 26.398438 L 0 5.601562 C 0 2.507812 2.507812 0 5.601562 0 L 26.398438 0 C 29.492188 0 32 2.507812 32 5.601562 L 32 26.398438 C 32 29.492188 29.492188 32 26.398438 32 Z M 26.398438 32 "}),e.createElement("path",{fill:"#fff",d:"M 28.199219 14.199219 C 28.199219 9.800781 23 5 16.199219 5 C 9.574219 5 4.199219 8.898438 4.199219 14.199219 C 4.199219 19.089844 8.390625 23.128906 14.285156 23.726562 C 14.648438 23.753906 14.980469 23.949219 15.179688 24.253906 C 15.320312 24.476562 15.398438 24.734375 15.398438 25 C 15.386719 25.542969 15.324219 26.082031 15.21875 26.613281 C 15.1875 26.761719 15.238281 26.914062 15.355469 27.011719 C 15.472656 27.109375 15.632812 27.128906 15.769531 27.070312 C 18.59375 25.820312 28.199219 20.679688 28.199219 14.199219 Z M 28.199219 14.199219 "}),e.createElement("path",{fill:"#00cf2e",d:"M 11.800781 16.398438 L 10 16.398438 L 10 12.199219 C 10 11.867188 9.730469 11.601562 9.398438 11.601562 C 9.070312 11.601562 8.800781 11.867188 8.800781 12.199219 L 8.800781 17 C 8.800781 17.332031 9.070312 17.601562 9.398438 17.601562 L 11.800781 17.601562 C 12.132812 17.601562 12.398438 17.332031 12.398438 17 C 12.398438 16.667969 12.132812 16.398438 11.800781 16.398438 Z M 11.800781 16.398438 "}),e.createElement("path",{fill:"#00cf2e",d:"M 13.398438 11.601562 C 13.070312 11.601562 12.800781 11.867188 12.800781 12.199219 L 12.800781 17 C 12.800781 17.332031 13.070312 17.601562 13.398438 17.601562 C 13.730469 17.601562 14 17.332031 14 17 L 14 12.199219 C 14 11.867188 13.730469 11.601562 13.398438 11.601562 Z M 13.398438 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 19 11.601562 C 18.667969 11.601562 18.398438 11.867188 18.398438 12.199219 L 18.398438 15.199219 L 15.898438 11.839844 C 15.746094 11.632812 15.476562 11.550781 15.230469 11.628906 C 14.984375 11.710938 14.820312 11.941406 14.820312 12.199219 L 14.820312 17 C 14.871094 17.285156 15.121094 17.492188 15.410156 17.492188 C 15.699219 17.492188 15.949219 17.285156 16 17 L 16 14 L 18.5 17.359375 C 18.617188 17.515625 18.804688 17.605469 19 17.601562 C 19.066406 17.601562 19.128906 17.589844 19.191406 17.570312 C 19.433594 17.488281 19.601562 17.257812 19.601562 17 L 19.601562 12.199219 C 19.601562 11.867188 19.332031 11.601562 19 11.601562 Z M 19 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 23.398438 15.199219 C 23.730469 15.199219 24 14.929688 24 14.601562 C 24 14.269531 23.730469 14 23.398438 14 L 21.601562 14 L 21.601562 12.800781 L 23.398438 12.800781 C 23.730469 12.800781 24 12.53125 24 12.199219 C 24 11.867188 23.730469 11.601562 23.398438 11.601562 L 21 11.601562 C 20.667969 11.601562 20.398438 11.867188 20.398438 12.199219 L 20.398438 17 C 20.398438 17.332031 20.667969 17.601562 21 17.601562 L 23.398438 17.601562 C 23.730469 17.601562 24 17.332031 24 17 C 24 16.667969 23.730469 16.398438 23.398438 16.398438 L 21.601562 16.398438 L 21.601562 15.199219 Z M 23.398438 15.199219 "}))),name:"Line",href:"http://line.me/R/msg/text/?".concat(l),allowedLocales:[t.Taiwan]}]};export{l as g};
|
package/build/esm/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{u as useTranslations}from"./useTranslations-
|
|
1
|
+
export{u as useTranslations}from"./useTranslations-184c5a05.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-7341e2bc.js";export{u as useFbDataLayer}from"./useFbDataLayer-aa854c14.js";export{u as useHealthToolsCache}from"./useHealthToolCache-b1b5666d.js";import"react";import"./translationsContext-b0b55382.js";import"string-format";import"lodash/debounce";import"./tslib.es6-abb10b7f.js";import"./cookieHelper-7f7d8e41.js";import"./getDynamicHealthTool-991a8cab.js";import"./core-e4b8d431.js";import"./isProduction-af9e42e5.js";import"./routing-180d9529.js";import"./index-9b97e79f.js";import"./Locale-5ad330ed.js";
|
package/build/esm/i18n.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{T as TranslationsProvider,t as translationsMap}from"./translationsProvider-
|
|
1
|
+
export{T as TranslationsProvider,t as translationsMap}from"./translationsProvider-86d4a773.js";export{T as TranslationsContext,d as defaultTranslations}from"./translationsContext-b0b55382.js";import"./tslib.es6-abb10b7f.js";import"react";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as n,b as e,_ as o,c as t,d as r}from"./tslib.es6-f3342f27.js";import i,{createContext as a,useContext as l,useState as s,useRef as c,useEffect as d,useMemo as m,useCallback as p}from"react";import{useInterval as u,useCounter as g}from"@mantine/hooks";import{H as b}from"./index.styled-5a566411.js";import{B as h}from"./index-10220457.js";import"./gAssets.js";import"./index.styled-eb17e082.js";import{c as f}from"./index-c400371e.js";import{M as x}from"./utils-7418c98d.js";import{t as E}from"./theme-a73122f6.js";import{Container as y,Input as v}from"@mantine/core";import"./index.styled-47c3aa95.js";import{u as w}from"./useTranslations-7812251e.js";import"./index-19f7e460.js";import"lodash/debounce";import"./isProduction-d1de7904.js";import{L as P}from"./index-4109ae0a.js";import"dayjs";import"./screenSizeContext-cec0ddd6.js";import k from"styled-components";import{L as S}from"./Locale-798314ff.js";import"./translationsContext-fd0accb0.js";import"string-format";import{T as C}from"./index-66dbe2be.js";import{useForm as M,yupResolver as j}from"@mantine/form";import{e as T,O as I,D as N,R as z}from"./index-329a1f12.js";import*as L from"yup";import B from"lodash/throttle";import{P as O}from"./index-995d8437.js";import"./index-721608f5.js";import{format as F}from"date-fns";import{V as D}from"./Visible-75723a95.js";var V,H,U,q,R,A,_,W,Y=a({}),K=k.div(V||(V=n([""],[""]))),Z=k(C)(H||(H=n(["\n margin-top: 8px;\n"],["\n margin-top: 8px;\n"]))),G=k.div(U||(U=n(["\n margin-top: 70px;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"],["\n margin-top: 70px;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"]))),J=k(y)(q||(q=n(["\n &.hhg-comp-onboarding-container.hhg-comp-onboarding-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n height: 100%;\n width: 100%;\n max-width: 520px;\n }\n .header {\n margin-bottom: 32px;\n text-align: center;\n "," {\n margin-bottom: 16px;\n }\n }\n\n .input-control {\n width: 100%;\n\n label {\n font-size: 12px;\n line-height: 18px;\n font-weight: 600;\n margin-bottom: 6px;\n }\n\n input {\n height: 42px;\n line-height: 42px;\n font-size: 14px;\n }\n }\n .radio-group,\n .input-control {\n margin-bottom: 16px;\n }\n .form {\n width: 100%;\n }\n\n .form-error {\n margin-top: 32px;\n font-size: 14px;\n }\n\n .field-error {\n margin-top: 10px;\n font-size: 14px;\n }\n\n .form-button {\n width: 100%;\n }\n"],["\n &.hhg-comp-onboarding-container.hhg-comp-onboarding-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n height: 100%;\n width: 100%;\n max-width: 520px;\n }\n .header {\n margin-bottom: 32px;\n text-align: center;\n "," {\n margin-bottom: 16px;\n }\n }\n\n .input-control {\n width: 100%;\n\n label {\n font-size: 12px;\n line-height: 18px;\n font-weight: 600;\n margin-bottom: 6px;\n }\n\n input {\n height: 42px;\n line-height: 42px;\n font-size: 14px;\n }\n }\n .radio-group,\n .input-control {\n margin-bottom: 16px;\n }\n .form {\n width: 100%;\n }\n\n .form-error {\n margin-top: 32px;\n font-size: 14px;\n }\n\n .field-error {\n margin-top: 10px;\n font-size: 14px;\n }\n\n .form-button {\n width: 100%;\n }\n"])),x.mbDown),Q=k.img(R||(R=n(["\n margin-bottom: 38px;\n"],["\n margin-bottom: 38px;\n"]))),X=function(n){var t,r=n.heading,a=n.description,s=n.children,c=n.className,d=n.imgSrc,m=e(n,["heading","description","children","className","imgSrc"]),p=l(Y),u=p.isMarryBaby,g=p.siteType;return i.createElement(J,o({},m,{className:"hhg-comp-onboarding-container ".concat(c),size:"sm"}),i.createElement(f,{type:u?g:(null===(t=P[process.env.UNIFY_LOCALE])||void 0===t?void 0:t.LOGO_TYPE)||"hellobacsi"}),i.createElement(G,null,d&&i.createElement(Q,{src:d,loading:"lazy"}),i.createElement(K,{className:"header"},i.createElement(b,{tag:"h3"},r),i.createElement(Z,{size:"p3",color:E.colors.gray600},a)),s))},$=function(n){return L.object().shape({phone:L.string().required(n("onboarding.updatePhone.error")).default("")})},nn=function(n){return L.object().shape({otp:L.string().required(n("onboarding.otpForm.error")).length(6,n("onboarding.otpForm.error")).default("")})},en=function(n){return L.object().shape({email:L.string().required(n("onboarding.errorMessage.requiredEmail")).email(n("onboarding.errorMessage.invalidEmail")).default(""),name:L.string().required(n("onboarding.errorMessage.requiredName"))})},on=function(n){return L.object().shape({password:L.string().required(n("onboarding.errorMessage.requiredPassword")).min(8,n("onboarding.errorMessage.minLength",{length:8})).matches(/.*[A-Z].*/,n("onboarding.errorMessage.passWithPattern")).default(""),confirmPassword:L.string().required(n("onboarding.errorMessage.requiredConfirmPassword")).oneOf([L.ref("password"),null],n("onboarding.errorMessage.passNotMatch")).default("")})},tn=k(X)(A||(A=n(["\n .phone-input {\n width: 100%;\n margin-bottom: 32px;\n "," {\n margin-bottom: 16px;\n }\n .PhoneInput {\n margin-bottom: 16px;\n }\n .PhoneInputCountry {\n border-radius: 4px 0 0 4px;\n }\n .PhoneInputInput {\n border-radius: 0 4px 4px 0;\n }\n }\n"],["\n .phone-input {\n width: 100%;\n margin-bottom: 32px;\n "," {\n margin-bottom: 16px;\n }\n .PhoneInput {\n margin-bottom: 16px;\n }\n .PhoneInputCountry {\n border-radius: 4px 0 0 4px;\n }\n .PhoneInputInput {\n border-radius: 0 4px 4px 0;\n }\n }\n"])),x.mbDown),rn=((_={})[S.Vietnam]="VN",_[S.Cambodia]="KH",_[S.Indonesia]="ID",_[S.Malaysia]="MY",_[S.PhilippinesEnglish]="PH",_[S.PhilippinesTagalog]="PH",_[S.Taiwan]="TW",_[S.Thailand]="TH",_[S.Myanmar]="MM",_),an=function(n){var e=n.onClose,a=n.onSubmit,l=n.canSkip,s=void 0===l||l,c=n.customFormTexts,d=w().t,m=M({initialValues:{phone:""},validate:j($(d))});return i.createElement(tn,{heading:(null==c?void 0:c.heading)||d("onboarding.updatePhone.heading"),description:(null==c?void 0:c.description)||d("onboarding.updatePhone.description")},i.createElement("form",{onSubmit:m.onSubmit((function(n){return t(void 0,void 0,void 0,(function(){return r(this,(function(e){return a(n.phone),[2]}))}))}),(function(n){console.log(n)}))},i.createElement("div",{className:"phone-input"},i.createElement(T,o({defaultCountry:rn[process.env.UNIFY_LOCALE]||"VN"},m.getInputProps("phone"))),i.createElement(v.Error,null,m.errors.phone)),i.createElement(h,{color:"primary",isBlock:!0,size:"lg",type:"submit","data-event-category":"Sign Up","data-event-action":"Update Phone Number","data-event-label":"undefined"!=typeof window?window.location.href:"",className:"pointer-event-child-none"},d("onboarding.button.continue")),s&&i.createElement(h,{color:"ghost",isBlock:!0,size:"lg",onClick:e,type:"button"},d("onboarding.button.skip"))))};(W={})[S.Vietnam]="VN",W[S.Cambodia]="KH",W[S.Indonesia]="ID",W[S.Malaysia]="MY",W[S.PhilippinesEnglish]="PH",W[S.PhilippinesTagalog]="PH",W[S.Taiwan]="TW",W[S.Thailand]="TH",W[S.Myanmar]="MM";var ln,sn,cn,dn,mn,pn,un,gn,bn,hn,fn,xn,En=function(n){void 0===n&&(n="");var e=n.indexOf("@"),o=n.substring(0,e),t=o.length>3?3:o.length;return n.replace(n.substring(t,e),n.slice(t,e).replace(/./g,"x"))},yn=k(X)(ln||(ln=n(["\n .otp-input {\n margin-bottom: 36px;\n "," {\n margin-bottom: 20px;\n }\n .otpContainer {\n margin-bottom: 16px;\n }\n }\n .resend {\n display: flex;\n gap: 6px;\n margin-bottom: 32px;\n "," {\n margin-bottom: 16px;\n }\n a {\n text-decoration: underline;\n cursor: pointer;\n }\n }\n .phone-description {\n margin-left: 2px;\n margin-top: 2px;\n }\n .otp-description-edit-icon {\n cursor: pointer;\n vertical-align: bottom;\n /* height: 100%; */\n margin-bottom: 3px;\n margin-left: 3px;\n }\n"],["\n .otp-input {\n margin-bottom: 36px;\n "," {\n margin-bottom: 20px;\n }\n .otpContainer {\n margin-bottom: 16px;\n }\n }\n .resend {\n display: flex;\n gap: 6px;\n margin-bottom: 32px;\n "," {\n margin-bottom: 16px;\n }\n a {\n text-decoration: underline;\n cursor: pointer;\n }\n }\n .phone-description {\n margin-left: 2px;\n margin-top: 2px;\n }\n .otp-description-edit-icon {\n cursor: pointer;\n vertical-align: bottom;\n /* height: 100%; */\n margin-bottom: 3px;\n margin-left: 3px;\n }\n"])),x.mbDown,x.mbDown),vn=function(n){var e=n.onSubmit,a=n.phone,p=n.email,b=n.onResendCode,f=n.otpError,x=n.onClose,y=n.loading,P=n.onBack,k=n.canSkip,S=n.outOfEdit,T=l(Y),N=T.siteType,z=T.isMarryBaby,L=s(30),O=L[0],F=L[1],D=u((function(){return F((function(n){return n-1}))}),1e3),V=g(0,{min:0,max:3}),H=V[0],U=V[1],q=c(!0),R=w().t;d((function(){return D.start(),D.stop}),[]),d((function(){0===O&&(D.stop(),q.current=!1)}),[O]);var A=M({initialValues:{otp:""},validate:j(nn(R))});d((function(){f&&A.setFieldError("otp",f)}),[f]);var _=m((function(){return B((function(){q.current||(U.increment(),F(30),null==b||b(a||p),D.start(),q.current=!0)}),1e3,{trailing:!1})}),[a,p,b,D]);return i.createElement(yn,{heading:R("onboarding.otpForm.heading"),description:i.createElement(i.Fragment,null,i.createElement("span",{dangerouslySetInnerHTML:{__html:a?R("onboarding.otpForm.description",{phone:'<b style="color:'.concat(E.colors.gray800,'">').concat(a.slice(0,-3).replace(/./g,"x").concat(a.slice(-3)),"</b>")}):R("onboarding.otpForm.descriptionEmail",{email:'<b style="color:'.concat(E.colors.gray800,'">').concat(En(p),"</b>")})}}),!S&&i.createElement("svg",{onClick:function(){null==P||P()},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"otp-description-edit-icon"},i.createElement("path",{d:"M12.7812 1.33337C12.2987 1.33337 11.8162 1.51712 11.4479 1.88546L10.6667 2.66671L13.3333 5.33337L14.1146 4.55212C14.8506 3.81612 14.8506 2.62212 14.1146 1.88546C13.7463 1.51712 13.2638 1.33337 12.7812 1.33337ZM9.66667 3.66671L2 11.3334V14H4.66667L12.3333 6.33337L9.66667 3.66671Z",fill:"#ADB3BC"})))},i.createElement("form",{onSubmit:A.onSubmit((function(n){return t(void 0,void 0,void 0,(function(){return r(this,(function(o){return U.increment(),e(n.otp),[2]}))}))}),(function(n){console.log(n)}))},i.createElement("div",{className:"otp-input"},i.createElement(I,o({enterKeyHint:void 0,nonce:void 0},A.getInputProps("otp"))),i.createElement(v.Error,null,A.errors.otp)),i.createElement("div",{className:"resend"},i.createElement(C,{size:"p4",color:E.colors.gray400},R("onboarding.otpForm.notReceiveOTP")),i.createElement(C,{as:"a",size:"p4",color:z?E.mbColors.pink:E.colors.primaryBase,onClick:_},R("onboarding.otpForm.resendCode",{seconds:O}))),i.createElement(h,{theme:N,color:"primary",isBlock:!0,size:"lg",type:"submit",isLoading:y,disabled:y,"data-event-category":"Sign Up","data-event-action":"Confirm Phone Number","data-event-label":"undefined"!=typeof window?window.location.href:"",className:"pointer-event-child-none"},R("onboarding.button.continue")),k&&H>=3&&i.createElement(h,{theme:N,color:"ghost",isBlock:!0,size:"lg",onClick:x,type:"button"},R("onboarding.button.skip"))))},wn=function(n){var e=n.onClose,t=n.onSubmit,r=n.canSkip,a=n.loading,s=n.errorMessage,c=n.initialData,m=w().t,p=l(Y).siteType,u=M({validate:j(en(m))});return d((function(){u.setValues(o(o({gender:"0"},c),(null==c?void 0:c.birthday)&&{birthday:new Date(c.birthday)}))}),[c]),d((function(){s&&u.setFieldError("email",s)}),[s]),i.createElement(X,{heading:m("onboarding.formEmail.heading"),description:m("onboarding.formEmail.description")},i.createElement("form",{className:"form",onSubmit:u.onSubmit((function(n){t(o(o({},n),{birthday:n.birthday&&F(n.birthday,"yyyy-MM-dd")}))}),(function(n){console.log({fieldErrors:n})}))},i.createElement(v.Wrapper,{label:m("onboarding.formEmail.yourName"),className:"input-control",withAsterisk:!0},i.createElement(v,o({},u.getInputProps("name"))),i.createElement(v.Error,{className:"field-error"},u.errors.name)),i.createElement(v.Wrapper,{label:m("onboarding.formEmail.yourEmail"),className:"input-control",withAsterisk:!0},i.createElement(v,o({},u.getInputProps("email"))),i.createElement(v.Error,{className:"field-error"},u.errors.email)),i.createElement(N,o({className:"input-control",label:m("onboarding.formEmail.yourBirthday")},u.getInputProps("birthday"))),i.createElement(z.Group,{value:u.values.gender,onChange:function(n){return u.setFieldValue("gender",n)},className:"radio-group"},i.createElement(z,{value:"0",label:m("onboarding.formEmail.genderMale")}),i.createElement(z,{value:"1",label:m("onboarding.formEmail.genderFemale")})),i.createElement(h,{color:"primary",isBlock:!0,size:"lg",type:"submit",theme:p,isLoading:a,disabled:a},m("onboarding.button.continue")),r&&i.createElement(h,{theme:p,color:"ghost",isBlock:!0,size:"lg",onClick:e},m("onboarding.button.skip"))))},Pn=function(n){var e=n.onClose,t=n.onSubmit,r=n.canSkip,a=n.errorMessage,l=n.loading,s=w().t,c=M({initialValues:{password:"",confirmPassword:""},validate:j(on(s))});return i.createElement(X,{heading:s("onboarding.updatePassword.heading"),description:s("onboarding.updatePassword.description")},i.createElement("form",{className:"form",onSubmit:c.onSubmit((function(n){return t((null==n?void 0:n.password)||"")}),(function(n){console.log({fieldErrors:n})}))},i.createElement(O,o({label:s("onboarding.updatePassword.password"),withAsterisk:!0,rightSection:i.createElement(D,null)},c.getInputProps("password"))),i.createElement(O,o({label:s("onboarding.updatePassword.confirmPassword"),withAsterisk:!0,rightSection:i.createElement(D,null)},c.getInputProps("confirmPassword"))),i.createElement(h,{color:"primary",isBlock:!0,size:"lg",type:"submit",isLoading:l,disabled:l},s("onboarding.button.continue")),r&&i.createElement(h,{color:"ghost",isBlock:!0,size:"lg",onClick:e},s("onboarding.button.skip")),a&&i.createElement(v.Error,{className:"form-error"},a)))},kn=k.div(sn||(sn=n(["\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 1000;\n background: white;\n overflow-y: auto;\n"],["\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 1000;\n background: white;\n overflow-y: auto;\n"]))),Sn=k.div(cn||(cn=n(["\n height: 100%;\n "," {\n display: table;\n width: 100%;\n height: calc(100% - 25px);\n }\n"],["\n height: 100%;\n "," {\n display: table;\n width: 100%;\n height: calc(100% - 25px);\n }\n"])),x.lgPcUp),Cn=k.div(dn||(dn=n(["\n padding: 48px 24px 24px;\n\n "," {\n display: table-cell;\n\n &[data-has-banner='true'] {\n width: calc(100% - 640px);\n }\n }\n"],["\n padding: 48px 24px 24px;\n\n "," {\n display: table-cell;\n\n &[data-has-banner='true'] {\n width: calc(100% - 640px);\n }\n }\n"])),x.lgPcUp),Mn=k.div(mn||(mn=n(["\n width: 640px;\n padding: 16px 16px 0 16px;\n display: none;\n\n "," {\n width: 640px;\n display: table-cell;\n }\n"],["\n width: 640px;\n padding: 16px 16px 0 16px;\n display: none;\n\n "," {\n width: 640px;\n display: table-cell;\n }\n"])),x.lgPcUp),jn=k.div(pn||(pn=n(["\n background-color: ",";\n border-radius: 12px;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n &[data-is-marry-baby='true'] {\n background-color: ",";\n }\n"],["\n background-color: ",";\n border-radius: 12px;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n &[data-is-marry-baby='true'] {\n background-color: ",";\n }\n"])),E.colors.blue50,E.mbColors.tonePink),Tn=k.div(un||(un=n(["\n margin-top: 40px;\n padding: 24px 40px;\n"],["\n margin-top: 40px;\n padding: 24px 40px;\n"]))),In=k(b)(gn||(gn=n(["\n margin-bottom: 24px;\n text-align: center;\n"],["\n margin-bottom: 24px;\n text-align: center;\n"]))),Nn=k(C)(bn||(bn=n([""],[""]))),zn=k.img(hn||(hn=n(["\n width: 100%;\n display: block;\n"],["\n width: 100%;\n display: block;\n"]))),Ln=k.div(fn||(fn=n([""],[""])));!function(n){n[n.Phone=0]="Phone",n[n.OTP=1]="OTP",n[n.OTPEmail=2]="OTPEmail",n[n.PersonalInfo=3]="PersonalInfo",n[n.UpdatePassword=4]="UpdatePassword",n[n.Result=5]="Result"}(xn||(xn={}));var Bn=function(n){var a=n.onClose,l=n.canSkip,c=n.flow,d=void 0===c?[xn.Phone,xn.OTP]:c,m=n.step,u=n.onPhoneSubmit,b=n.onOtpSubmit,f=n.onPersonalInfoSubmit,x=n.onCreatePassByEmail,y=n.onResendCode,v=n.otpError,P=n.personalInfoError,k=n.createPassError,S=n.emailLoading,C=n.createPassLoading,M=n.otpLoading,j=n.customFormTexts,T=n.initialData,I=n.banner,N=n.resultScreenProps,z=n.siteType,L=e(n,["onClose","canSkip","flow","step","onPhoneSubmit","onOtpSubmit","onPersonalInfoSubmit","onCreatePassByEmail","onResendCode","otpError","personalInfoError","createPassError","emailLoading","createPassLoading","otpLoading","customFormTexts","initialData","banner","resultScreenProps","siteType"]),B=w().t,O=s(m||d[0]),F=O[0],D=O[1],V=s(""),H=V[0],U=V[1],q=s(""),R=q[0],A=q[1],_=g(0,{min:0,max:2}),W=_[0],K=_[1],Z=p((function(){var n=d.indexOf(F)+1;n<=d.length-1&&D(d[n])}),[F]),G=p((function(){var n=d.indexOf(F)-1;n>=0&&D(d[n])}),[F]),J=function(n){return t(void 0,void 0,void 0,(function(){var e;return r(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,b(n)];case 1:return!o.sent()&&Z(),[3,3];case 2:return e=o.sent(),console.error(e),[3,3];case 3:return[2]}}))}))},Q=function(){W>=2||(K.increment(),G())},$="marryBaby"===z;return console.log({isMarryBaby:$}),i.createElement(Y.Provider,{value:{siteType:z,isMarryBaby:$}},i.createElement(kn,o({},L),d.length>0?i.createElement(Sn,null,i.createElement(Cn,{"data-has-banner":"object"==typeof I},F===xn.Phone&&i.createElement(an,{onClose:a,canSkip:l,onSubmit:function(n){return t(void 0,void 0,void 0,(function(){var e;return r(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),U(n),[4,null==u?void 0:u(n)];case 1:return o.sent(),Z(),[3,3];case 2:return e=o.sent(),console.error(e),[3,3];case 3:return[2]}}))}))},customFormTexts:j.onboarding}),F===xn.OTP&&i.createElement(vn,{onClose:a,onSubmit:J,phone:H,onResendCode:y,otpError:v,loading:M,canSkip:l,onBack:Q,outOfEdit:W>=2}),F===xn.OTPEmail&&i.createElement(vn,{onClose:a,onSubmit:J,onResendCode:y,otpError:v,loading:M,canSkip:l,onBack:Q,outOfEdit:W>=2,email:R}),F===xn.PersonalInfo&&i.createElement(wn,{initialData:null==T?void 0:T[xn.PersonalInfo],onClose:a,canSkip:l,onSubmit:function(n){return t(void 0,void 0,void 0,(function(){var e;return r(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),A((null==n?void 0:n.email)||""),[4,null==f?void 0:f(n)];case 1:return!o.sent()&&Z(),[3,3];case 2:return e=o.sent(),console.error(e),[3,3];case 3:return[2]}}))}))},errorMessage:P,loading:S}),F===xn.UpdatePassword&&i.createElement(Pn,{onClose:a,canSkip:l,onSubmit:function(n){return t(void 0,void 0,void 0,(function(){var e;return r(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,null==x?void 0:x(n)];case 1:return o.sent(),!k&&Z(),[3,3];case 2:return e=o.sent(),console.error(e),[3,3];case 3:return[2]}}))}))},errorMessage:k,loading:C}),F===xn.Result&&i.createElement(X,o({},N),i.createElement(h,{theme:z,size:"lg",onClick:a,className:"form-button"},B("onboarding.button.continue")))),"object"==typeof I&&i.createElement(Mn,null,i.createElement(jn,{"data-is-marry-baby":$},i.createElement(Tn,null,(null==I?void 0:I.heading)&&i.createElement(In,{tag:"h1"},null==I?void 0:I.heading),(null==I?void 0:I.description)&&i.createElement(Nn,{size:"p1",color:E.colors.gray800},B("onboarding.welcomeScreen.content"))),(null==I?void 0:I.imgSrc)&&i.createElement(Ln,null,i.createElement(zn,{src:null==I?void 0:I.imgSrc,loading:"lazy"}))))):"Incorrect flow"))};export{rn as M,Bn as O,xn as a,an as b,vn as c};
|
|
1
|
+
import{e as n,b as e,_ as o,c as t,d as r}from"./tslib.es6-abb10b7f.js";import i,{createContext as a,useContext as l,useState as s,useRef as c,useEffect as d,useMemo as m,useCallback as p}from"react";import{useInterval as u,useCounter as g}from"@mantine/hooks";import{H as b}from"./index.styled-b214b42d.js";import{B as h}from"./index-fb05b9d4.js";import"./gAssets.js";import"./index.styled-0469b7bf.js";import{c as f}from"./index-ddfb3556.js";import{M as x}from"./utils-6cbc9018.js";import{t as E}from"./theme-dc7e5fb4.js";import{Container as y,Input as v}from"@mantine/core";import"./index.styled-1d926de0.js";import{u as w}from"./useTranslations-184c5a05.js";import"./index-0e455742.js";import"lodash/debounce";import"./isProduction-af9e42e5.js";import{L as P}from"./index-9b97e79f.js";import"dayjs";import"./screenSizeContext-ca131217.js";import k from"styled-components";import{L as S}from"./Locale-5ad330ed.js";import"./translationsContext-b0b55382.js";import"string-format";import{T as C}from"./index-b7ec5191.js";import{useForm as M,yupResolver as j}from"@mantine/form";import{e as T,O as I,D as N,R as z}from"./index-b201eb1e.js";import*as L from"yup";import B from"lodash/throttle";import{P as O}from"./index-5e01758b.js";import"./index-1fb7de08.js";import{format as F}from"date-fns";import{V as D}from"./Visible-c1386289.js";var V,H,U,q,R,A,_,W,Y=a({}),K=k.div(V||(V=n([""],[""]))),Z=k(C)(H||(H=n(["\n margin-top: 8px;\n"],["\n margin-top: 8px;\n"]))),G=k.div(U||(U=n(["\n margin-top: 70px;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"],["\n margin-top: 70px;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"]))),J=k(y)(q||(q=n(["\n &.hhg-comp-onboarding-container.hhg-comp-onboarding-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n height: 100%;\n width: 100%;\n max-width: 520px;\n }\n .header {\n margin-bottom: 32px;\n text-align: center;\n "," {\n margin-bottom: 16px;\n }\n }\n\n .input-control {\n width: 100%;\n\n label {\n font-size: 12px;\n line-height: 18px;\n font-weight: 600;\n margin-bottom: 6px;\n }\n\n input {\n height: 42px;\n line-height: 42px;\n font-size: 14px;\n }\n }\n .radio-group,\n .input-control {\n margin-bottom: 16px;\n }\n .form {\n width: 100%;\n }\n\n .form-error {\n margin-top: 32px;\n font-size: 14px;\n }\n\n .field-error {\n margin-top: 10px;\n font-size: 14px;\n }\n\n .form-button {\n width: 100%;\n }\n"],["\n &.hhg-comp-onboarding-container.hhg-comp-onboarding-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n height: 100%;\n width: 100%;\n max-width: 520px;\n }\n .header {\n margin-bottom: 32px;\n text-align: center;\n "," {\n margin-bottom: 16px;\n }\n }\n\n .input-control {\n width: 100%;\n\n label {\n font-size: 12px;\n line-height: 18px;\n font-weight: 600;\n margin-bottom: 6px;\n }\n\n input {\n height: 42px;\n line-height: 42px;\n font-size: 14px;\n }\n }\n .radio-group,\n .input-control {\n margin-bottom: 16px;\n }\n .form {\n width: 100%;\n }\n\n .form-error {\n margin-top: 32px;\n font-size: 14px;\n }\n\n .field-error {\n margin-top: 10px;\n font-size: 14px;\n }\n\n .form-button {\n width: 100%;\n }\n"])),x.mbDown),Q=k.img(R||(R=n(["\n margin-bottom: 38px;\n"],["\n margin-bottom: 38px;\n"]))),X=function(n){var t,r=n.heading,a=n.description,s=n.children,c=n.className,d=n.imgSrc,m=e(n,["heading","description","children","className","imgSrc"]),p=l(Y),u=p.isMarryBaby,g=p.siteType;return i.createElement(J,o({},m,{className:"hhg-comp-onboarding-container ".concat(c),size:"sm"}),i.createElement(f,{type:u?g:(null===(t=P[process.env.UNIFY_LOCALE])||void 0===t?void 0:t.LOGO_TYPE)||"hellobacsi"}),i.createElement(G,null,d&&i.createElement(Q,{src:d,loading:"lazy"}),i.createElement(K,{className:"header"},i.createElement(b,{tag:"h3"},r),i.createElement(Z,{size:"p3",color:E.colors.gray600},a)),s))},$=function(n){return L.object().shape({phone:L.string().required(n("onboarding.updatePhone.error")).default("")})},nn=function(n){return L.object().shape({otp:L.string().required(n("onboarding.otpForm.error")).length(6,n("onboarding.otpForm.error")).default("")})},en=function(n){return L.object().shape({email:L.string().required(n("onboarding.errorMessage.requiredEmail")).email(n("onboarding.errorMessage.invalidEmail")).default(""),name:L.string().required(n("onboarding.errorMessage.requiredName"))})},on=function(n){return L.object().shape({password:L.string().required(n("onboarding.errorMessage.requiredPassword")).min(8,n("onboarding.errorMessage.minLength",{length:8})).matches(/.*[A-Z].*/,n("onboarding.errorMessage.passWithPattern")).default(""),confirmPassword:L.string().required(n("onboarding.errorMessage.requiredConfirmPassword")).oneOf([L.ref("password"),null],n("onboarding.errorMessage.passNotMatch")).default("")})},tn=k(X)(A||(A=n(["\n .phone-input {\n width: 100%;\n margin-bottom: 32px;\n "," {\n margin-bottom: 16px;\n }\n .PhoneInput {\n margin-bottom: 16px;\n }\n .PhoneInputCountry {\n border-radius: 4px 0 0 4px;\n }\n .PhoneInputInput {\n border-radius: 0 4px 4px 0;\n }\n }\n"],["\n .phone-input {\n width: 100%;\n margin-bottom: 32px;\n "," {\n margin-bottom: 16px;\n }\n .PhoneInput {\n margin-bottom: 16px;\n }\n .PhoneInputCountry {\n border-radius: 4px 0 0 4px;\n }\n .PhoneInputInput {\n border-radius: 0 4px 4px 0;\n }\n }\n"])),x.mbDown),rn=((_={})[S.Vietnam]="VN",_[S.Cambodia]="KH",_[S.Indonesia]="ID",_[S.Malaysia]="MY",_[S.PhilippinesEnglish]="PH",_[S.PhilippinesTagalog]="PH",_[S.Taiwan]="TW",_[S.Thailand]="TH",_[S.Myanmar]="MM",_),an=function(n){var e=n.onClose,a=n.onSubmit,l=n.canSkip,s=void 0===l||l,c=n.customFormTexts,d=w().t,m=M({initialValues:{phone:""},validate:j($(d))});return i.createElement(tn,{heading:(null==c?void 0:c.heading)||d("onboarding.updatePhone.heading"),description:(null==c?void 0:c.description)||d("onboarding.updatePhone.description")},i.createElement("form",{onSubmit:m.onSubmit((function(n){return t(void 0,void 0,void 0,(function(){return r(this,(function(e){return a(n.phone),[2]}))}))}),(function(n){console.log(n)}))},i.createElement("div",{className:"phone-input"},i.createElement(T,o({defaultCountry:rn[process.env.UNIFY_LOCALE]||"VN"},m.getInputProps("phone"))),i.createElement(v.Error,null,m.errors.phone)),i.createElement(h,{color:"primary",isBlock:!0,size:"lg",type:"submit","data-event-category":"Sign Up","data-event-action":"Update Phone Number","data-event-label":"undefined"!=typeof window?window.location.href:"",className:"pointer-event-child-none"},d("onboarding.button.continue")),s&&i.createElement(h,{color:"ghost",isBlock:!0,size:"lg",onClick:e,type:"button"},d("onboarding.button.skip"))))};(W={})[S.Vietnam]="VN",W[S.Cambodia]="KH",W[S.Indonesia]="ID",W[S.Malaysia]="MY",W[S.PhilippinesEnglish]="PH",W[S.PhilippinesTagalog]="PH",W[S.Taiwan]="TW",W[S.Thailand]="TH",W[S.Myanmar]="MM";var ln,sn,cn,dn,mn,pn,un,gn,bn,hn,fn,xn,En=function(n){void 0===n&&(n="");var e=n.indexOf("@"),o=n.substring(0,e),t=o.length>3?3:o.length;return n.replace(n.substring(t,e),n.slice(t,e).replace(/./g,"x"))},yn=k(X)(ln||(ln=n(["\n .otp-input {\n margin-bottom: 36px;\n "," {\n margin-bottom: 20px;\n }\n .otpContainer {\n margin-bottom: 16px;\n }\n }\n .resend {\n display: flex;\n gap: 6px;\n margin-bottom: 32px;\n "," {\n margin-bottom: 16px;\n }\n a {\n text-decoration: underline;\n cursor: pointer;\n }\n }\n .phone-description {\n margin-left: 2px;\n margin-top: 2px;\n }\n .otp-description-edit-icon {\n cursor: pointer;\n vertical-align: bottom;\n /* height: 100%; */\n margin-bottom: 3px;\n margin-left: 3px;\n }\n"],["\n .otp-input {\n margin-bottom: 36px;\n "," {\n margin-bottom: 20px;\n }\n .otpContainer {\n margin-bottom: 16px;\n }\n }\n .resend {\n display: flex;\n gap: 6px;\n margin-bottom: 32px;\n "," {\n margin-bottom: 16px;\n }\n a {\n text-decoration: underline;\n cursor: pointer;\n }\n }\n .phone-description {\n margin-left: 2px;\n margin-top: 2px;\n }\n .otp-description-edit-icon {\n cursor: pointer;\n vertical-align: bottom;\n /* height: 100%; */\n margin-bottom: 3px;\n margin-left: 3px;\n }\n"])),x.mbDown,x.mbDown),vn=function(n){var e=n.onSubmit,a=n.phone,p=n.email,b=n.onResendCode,f=n.otpError,x=n.onClose,y=n.loading,P=n.onBack,k=n.canSkip,S=n.outOfEdit,T=l(Y),N=T.siteType,z=T.isMarryBaby,L=s(30),O=L[0],F=L[1],D=u((function(){return F((function(n){return n-1}))}),1e3),V=g(0,{min:0,max:3}),H=V[0],U=V[1],q=c(!0),R=w().t;d((function(){return D.start(),D.stop}),[]),d((function(){0===O&&(D.stop(),q.current=!1)}),[O]);var A=M({initialValues:{otp:""},validate:j(nn(R))});d((function(){f&&A.setFieldError("otp",f)}),[f]);var _=m((function(){return B((function(){q.current||(U.increment(),F(30),null==b||b(a||p),D.start(),q.current=!0)}),1e3,{trailing:!1})}),[a,p,b,D]);return i.createElement(yn,{heading:R("onboarding.otpForm.heading"),description:i.createElement(i.Fragment,null,i.createElement("span",{dangerouslySetInnerHTML:{__html:a?R("onboarding.otpForm.description",{phone:'<b style="color:'.concat(E.colors.gray800,'">').concat(a.slice(0,-3).replace(/./g,"x").concat(a.slice(-3)),"</b>")}):R("onboarding.otpForm.descriptionEmail",{email:'<b style="color:'.concat(E.colors.gray800,'">').concat(En(p),"</b>")})}}),!S&&i.createElement("svg",{onClick:function(){null==P||P()},width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"otp-description-edit-icon"},i.createElement("path",{d:"M12.7812 1.33337C12.2987 1.33337 11.8162 1.51712 11.4479 1.88546L10.6667 2.66671L13.3333 5.33337L14.1146 4.55212C14.8506 3.81612 14.8506 2.62212 14.1146 1.88546C13.7463 1.51712 13.2638 1.33337 12.7812 1.33337ZM9.66667 3.66671L2 11.3334V14H4.66667L12.3333 6.33337L9.66667 3.66671Z",fill:"#ADB3BC"})))},i.createElement("form",{onSubmit:A.onSubmit((function(n){return t(void 0,void 0,void 0,(function(){return r(this,(function(o){return U.increment(),e(n.otp),[2]}))}))}),(function(n){console.log(n)}))},i.createElement("div",{className:"otp-input"},i.createElement(I,o({enterKeyHint:void 0,nonce:void 0},A.getInputProps("otp"))),i.createElement(v.Error,null,A.errors.otp)),i.createElement("div",{className:"resend"},i.createElement(C,{size:"p4",color:E.colors.gray400},R("onboarding.otpForm.notReceiveOTP")),i.createElement(C,{as:"a",size:"p4",color:z?E.mbColors.pink:E.colors.primaryBase,onClick:_},R("onboarding.otpForm.resendCode",{seconds:O}))),i.createElement(h,{theme:N,color:"primary",isBlock:!0,size:"lg",type:"submit",isLoading:y,disabled:y,"data-event-category":"Sign Up","data-event-action":"Confirm Phone Number","data-event-label":"undefined"!=typeof window?window.location.href:"",className:"pointer-event-child-none"},R("onboarding.button.continue")),k&&H>=3&&i.createElement(h,{theme:N,color:"ghost",isBlock:!0,size:"lg",onClick:x,type:"button"},R("onboarding.button.skip"))))},wn=function(n){var e=n.onClose,t=n.onSubmit,r=n.canSkip,a=n.loading,s=n.errorMessage,c=n.initialData,m=w().t,p=l(Y).siteType,u=M({validate:j(en(m))});return d((function(){u.setValues(o(o({gender:"0"},c),(null==c?void 0:c.birthday)&&{birthday:new Date(c.birthday)}))}),[c]),d((function(){s&&u.setFieldError("email",s)}),[s]),i.createElement(X,{heading:m("onboarding.formEmail.heading"),description:m("onboarding.formEmail.description")},i.createElement("form",{className:"form",onSubmit:u.onSubmit((function(n){t(o(o({},n),{birthday:n.birthday&&F(n.birthday,"yyyy-MM-dd")}))}),(function(n){console.log({fieldErrors:n})}))},i.createElement(v.Wrapper,{label:m("onboarding.formEmail.yourName"),className:"input-control",withAsterisk:!0},i.createElement(v,o({},u.getInputProps("name"))),i.createElement(v.Error,{className:"field-error"},u.errors.name)),i.createElement(v.Wrapper,{label:m("onboarding.formEmail.yourEmail"),className:"input-control",withAsterisk:!0},i.createElement(v,o({},u.getInputProps("email"))),i.createElement(v.Error,{className:"field-error"},u.errors.email)),i.createElement(N,o({className:"input-control",label:m("onboarding.formEmail.yourBirthday")},u.getInputProps("birthday"))),i.createElement(z.Group,{value:u.values.gender,onChange:function(n){return u.setFieldValue("gender",n)},className:"radio-group"},i.createElement(z,{value:"0",label:m("onboarding.formEmail.genderMale")}),i.createElement(z,{value:"1",label:m("onboarding.formEmail.genderFemale")})),i.createElement(h,{color:"primary",isBlock:!0,size:"lg",type:"submit",theme:p,isLoading:a,disabled:a},m("onboarding.button.continue")),r&&i.createElement(h,{theme:p,color:"ghost",isBlock:!0,size:"lg",onClick:e},m("onboarding.button.skip"))))},Pn=function(n){var e=n.onClose,t=n.onSubmit,r=n.canSkip,a=n.errorMessage,l=n.loading,s=w().t,c=M({initialValues:{password:"",confirmPassword:""},validate:j(on(s))});return i.createElement(X,{heading:s("onboarding.updatePassword.heading"),description:s("onboarding.updatePassword.description")},i.createElement("form",{className:"form",onSubmit:c.onSubmit((function(n){return t((null==n?void 0:n.password)||"")}),(function(n){console.log({fieldErrors:n})}))},i.createElement(O,o({label:s("onboarding.updatePassword.password"),withAsterisk:!0,rightSection:i.createElement(D,null)},c.getInputProps("password"))),i.createElement(O,o({label:s("onboarding.updatePassword.confirmPassword"),withAsterisk:!0,rightSection:i.createElement(D,null)},c.getInputProps("confirmPassword"))),i.createElement(h,{color:"primary",isBlock:!0,size:"lg",type:"submit",isLoading:l,disabled:l},s("onboarding.button.continue")),r&&i.createElement(h,{color:"ghost",isBlock:!0,size:"lg",onClick:e},s("onboarding.button.skip")),a&&i.createElement(v.Error,{className:"form-error"},a)))},kn=k.div(sn||(sn=n(["\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 1000;\n background: white;\n overflow-y: auto;\n"],["\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 1000;\n background: white;\n overflow-y: auto;\n"]))),Sn=k.div(cn||(cn=n(["\n height: 100%;\n "," {\n display: table;\n width: 100%;\n height: calc(100% - 25px);\n }\n"],["\n height: 100%;\n "," {\n display: table;\n width: 100%;\n height: calc(100% - 25px);\n }\n"])),x.lgPcUp),Cn=k.div(dn||(dn=n(["\n padding: 48px 24px 24px;\n\n "," {\n display: table-cell;\n\n &[data-has-banner='true'] {\n width: calc(100% - 640px);\n }\n }\n"],["\n padding: 48px 24px 24px;\n\n "," {\n display: table-cell;\n\n &[data-has-banner='true'] {\n width: calc(100% - 640px);\n }\n }\n"])),x.lgPcUp),Mn=k.div(mn||(mn=n(["\n width: 640px;\n padding: 16px 16px 0 16px;\n display: none;\n\n "," {\n width: 640px;\n display: table-cell;\n }\n"],["\n width: 640px;\n padding: 16px 16px 0 16px;\n display: none;\n\n "," {\n width: 640px;\n display: table-cell;\n }\n"])),x.lgPcUp),jn=k.div(pn||(pn=n(["\n background-color: ",";\n border-radius: 12px;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n &[data-is-marry-baby='true'] {\n background-color: ",";\n }\n"],["\n background-color: ",";\n border-radius: 12px;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n &[data-is-marry-baby='true'] {\n background-color: ",";\n }\n"])),E.colors.blue50,E.mbColors.tonePink),Tn=k.div(un||(un=n(["\n margin-top: 40px;\n padding: 24px 40px;\n"],["\n margin-top: 40px;\n padding: 24px 40px;\n"]))),In=k(b)(gn||(gn=n(["\n margin-bottom: 24px;\n text-align: center;\n"],["\n margin-bottom: 24px;\n text-align: center;\n"]))),Nn=k(C)(bn||(bn=n([""],[""]))),zn=k.img(hn||(hn=n(["\n width: 100%;\n display: block;\n"],["\n width: 100%;\n display: block;\n"]))),Ln=k.div(fn||(fn=n([""],[""])));!function(n){n[n.Phone=0]="Phone",n[n.OTP=1]="OTP",n[n.OTPEmail=2]="OTPEmail",n[n.PersonalInfo=3]="PersonalInfo",n[n.UpdatePassword=4]="UpdatePassword",n[n.Result=5]="Result"}(xn||(xn={}));var Bn=function(n){var a=n.onClose,l=n.canSkip,c=n.flow,d=void 0===c?[xn.Phone,xn.OTP]:c,m=n.step,u=n.onPhoneSubmit,b=n.onOtpSubmit,f=n.onPersonalInfoSubmit,x=n.onCreatePassByEmail,y=n.onResendCode,v=n.otpError,P=n.personalInfoError,k=n.createPassError,S=n.emailLoading,C=n.createPassLoading,M=n.otpLoading,j=n.customFormTexts,T=n.initialData,I=n.banner,N=n.resultScreenProps,z=n.siteType,L=e(n,["onClose","canSkip","flow","step","onPhoneSubmit","onOtpSubmit","onPersonalInfoSubmit","onCreatePassByEmail","onResendCode","otpError","personalInfoError","createPassError","emailLoading","createPassLoading","otpLoading","customFormTexts","initialData","banner","resultScreenProps","siteType"]),B=w().t,O=s(m||d[0]),F=O[0],D=O[1],V=s(""),H=V[0],U=V[1],q=s(""),R=q[0],A=q[1],_=g(0,{min:0,max:2}),W=_[0],K=_[1],Z=p((function(){var n=d.indexOf(F)+1;n<=d.length-1&&D(d[n])}),[F]),G=p((function(){var n=d.indexOf(F)-1;n>=0&&D(d[n])}),[F]),J=function(n){return t(void 0,void 0,void 0,(function(){var e;return r(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,b(n)];case 1:return!o.sent()&&Z(),[3,3];case 2:return e=o.sent(),console.error(e),[3,3];case 3:return[2]}}))}))},Q=function(){W>=2||(K.increment(),G())},$="marryBaby"===z;return console.log({isMarryBaby:$}),i.createElement(Y.Provider,{value:{siteType:z,isMarryBaby:$}},i.createElement(kn,o({},L),d.length>0?i.createElement(Sn,null,i.createElement(Cn,{"data-has-banner":"object"==typeof I},F===xn.Phone&&i.createElement(an,{onClose:a,canSkip:l,onSubmit:function(n){return t(void 0,void 0,void 0,(function(){var e;return r(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),U(n),[4,null==u?void 0:u(n)];case 1:return o.sent(),Z(),[3,3];case 2:return e=o.sent(),console.error(e),[3,3];case 3:return[2]}}))}))},customFormTexts:j.onboarding}),F===xn.OTP&&i.createElement(vn,{onClose:a,onSubmit:J,phone:H,onResendCode:y,otpError:v,loading:M,canSkip:l,onBack:Q,outOfEdit:W>=2}),F===xn.OTPEmail&&i.createElement(vn,{onClose:a,onSubmit:J,onResendCode:y,otpError:v,loading:M,canSkip:l,onBack:Q,outOfEdit:W>=2,email:R}),F===xn.PersonalInfo&&i.createElement(wn,{initialData:null==T?void 0:T[xn.PersonalInfo],onClose:a,canSkip:l,onSubmit:function(n){return t(void 0,void 0,void 0,(function(){var e;return r(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),A((null==n?void 0:n.email)||""),[4,null==f?void 0:f(n)];case 1:return!o.sent()&&Z(),[3,3];case 2:return e=o.sent(),console.error(e),[3,3];case 3:return[2]}}))}))},errorMessage:P,loading:S}),F===xn.UpdatePassword&&i.createElement(Pn,{onClose:a,canSkip:l,onSubmit:function(n){return t(void 0,void 0,void 0,(function(){var e;return r(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,null==x?void 0:x(n)];case 1:return o.sent(),!k&&Z(),[3,3];case 2:return e=o.sent(),console.error(e),[3,3];case 3:return[2]}}))}))},errorMessage:k,loading:C}),F===xn.Result&&i.createElement(X,o({},N),i.createElement(h,{theme:z,size:"lg",onClick:a,className:"form-button"},B("onboarding.button.continue")))),"object"==typeof I&&i.createElement(Mn,null,i.createElement(jn,{"data-is-marry-baby":$},i.createElement(Tn,null,(null==I?void 0:I.heading)&&i.createElement(In,{tag:"h1"},null==I?void 0:I.heading),(null==I?void 0:I.description)&&i.createElement(Nn,{size:"p1",color:E.colors.gray800},B("onboarding.welcomeScreen.content"))),(null==I?void 0:I.imgSrc)&&i.createElement(Ln,null,i.createElement(zn,{src:null==I?void 0:I.imgSrc,loading:"lazy"}))))):"Incorrect flow"))};export{rn as M,Bn as O,xn as a,an as b,vn as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e}from"./tslib.es6-
|
|
1
|
+
import{_ as e}from"./tslib.es6-abb10b7f.js";import t,{forwardRef as r}from"react";var a=r((function(r,a){return t.createElement("circle",e({},r,{ref:a}),t.createElement("animate",{attributeName:"r",values:"4;8;4",dur:"2s",begin:"0s",repeatCount:"indefinite"}))}));export{a as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e,_ as n}from"./tslib.es6-
|
|
1
|
+
import{b as e,_ as n}from"./tslib.es6-abb10b7f.js";import r,{createContext as l,useContext as i,useRef as t,useState as o,useEffect as c}from"react";import{Carousel as d}from"@mantine/carousel";import{useResizeObserver as a}from"@mantine/hooks";var u=d.Slide,s=l({}),f=function(e,n){return e>=n?e-n:e},p=function(l){var i=l.children,u=l.blurFromCenter,p=l.blurFromIndex,v=l.blurLength,h=void 0===v?3:v,m=l.maxBlurOpacity,x=void 0===m?.5:m,b=l.onSlideChange,S=l.selectSlideWhenClick,g=e(l,["children","blurFromCenter","blurFromIndex","blurLength","maxBlurOpacity","onSlideChange","selectSlideWhenClick"]),y=a(),C=y[0],k=y[1],w=t(null),E=o(0),F=E[0],I=E[1],L=function(){var e,n,r,l=null===(e=null==w?void 0:w.current)||void 0===e?void 0:e.selectedScrollSnap();I(l);var i=(null===(n=null==w?void 0:w.current)||void 0===n?void 0:n.slideNodes())||[],t=i.length,o=(null===(r=null==w?void 0:w.current)||void 0===r?void 0:r.slidesInView()).length,c=Math.floor(o/2),d=u?p+h-1:c,a=l+d,s=a===t?0:a>t?a-t:a,v=l-d,m=v<0?t+v:v>0?l-d:0,b=Array(2*d+1).fill("").map((function(e,n){return f(m+n,t)}));i.map((function(e,n){if(n===l?e.classList.add("center-slide"):e.classList.remove("center-slide"),-1!==b.indexOf(n))for(var r=x/h,i=0;i<h;i++){if(n===f(m+i,t)||n===(c=t,(o=s-i)<0?c+o:o)){e.style.opacity=String((i+1)*r);break}e.style.opacity="1"}else e.style.opacity="0";var o,c}))},W={getEmblaApi:function(e){w.current=e},onSlideChange:function(e){L(),null==b||b(e)}};return c((function(){(null==w?void 0:w.current)&&L()}),[k]),r.createElement(s.Provider,{value:{slider:null==w?void 0:w.current,centerSlide:F,selectSlideWhenClick:S}},r.createElement(d,n({ref:C,slideSize:"auto",containScroll:"trimSnaps"},W,g,{loop:!0}),"function"==typeof i?i(F):i))};p.Slide=function(l){var d=l.children,a=l.onClick,f=e(l,["children","onClick"]),p=i(s),v=p.slider,h=p.selectSlideWhenClick,m=t(),x=t(""),b=o(0),S=b[0],g=b[1];c((function(){x.current=String(Math.round(1e4*Math.random()))}),[]),c((function(){var e=(null==v?void 0:v.slideNodes())||[];g(e.findIndex((function(e){return e.dataset.key===x.current})))}),[v]);var y={ref:m,"data-key":x.current,"data-index":S,styles:function(){return{control:{width:"40px",height:"40px",border:0,background:"white",boxShadow:"rgb(0 0 0 / 4%) 0px 10px 16px, rgb(0 0 0 / 4%) 0px 2px 8px, rgb(0 0 0 / 4%) 0px 0px 1px",svg:{width:"20px",height:"20px"}}}}};return r.createElement(u,n({},y,f),r.createElement("div",{onClick:function(){h&&(null==v||v.scrollTo(S)),null==a||a(S)}},d))};export{p as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e,_ as t}from"./tslib.es6-
|
|
1
|
+
import{b as e,_ as t}from"./tslib.es6-abb10b7f.js";import r from"react";import{Autocomplete as o,Image as n,Select as s}from"@mantine/core";import{CommonGAssets as a}from"./gAssets.js";var i=function(i){var m=i.keepSearch,c=void 0!==m&&m,h=e(i,["keepSearch"]);return c?r.createElement(o,t({rightSection:r.createElement(n,{src:a.getAssetPath("chevron-down.svg"),fit:"none"}),size:"md",maxDropdownHeight:300},h)):r.createElement(s,t({rightSection:r.createElement(n,{src:a.getAssetPath("chevron-down.svg"),fit:"none"}),size:"md",maxDropdownHeight:300},h))};export{i as S};
|