@hhgtech/hhg-components 1.28.54 → 1.28.56
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/Plus-5db023c7.js +1 -0
- package/build/WhatsApp-378451bf.js +1 -0
- package/build/babyGrowth.js +24 -24
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components/mantine/button/index.d.ts +1 -0
- package/build/components/mantine/button/index.styles.d.ts +1 -0
- package/build/components.js +1 -1
- package/build/{constants-bd6ef74a.js → constants-12b9a3a8.js} +1 -1
- package/build/{constants-c6dfbe65.js → constants-c7e18ae3.js} +1 -1
- package/build/constants.js +1 -1
- package/build/core-709ce77d.js +1 -0
- package/build/{dataTransform-357876b3.js → dataTransform-92fa6ba9.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/Plus-8ce4f4ec.js +1 -0
- package/build/esm/WhatsApp-fbb196cd.js +1 -0
- package/build/esm/babyGrowth.js +16 -16
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components/mantine/button/index.d.ts +1 -0
- package/build/esm/components/mantine/button/index.styles.d.ts +1 -0
- package/build/esm/components.js +1 -1
- package/build/esm/{constants-943d66db.js → constants-1b372a77.js} +1 -1
- package/build/esm/{constants-a437a91d.js → constants-7a224812.js} +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/core-2b914f39.js +1 -0
- package/build/esm/{dataTransform-2fc36f31.js → dataTransform-0b72568d.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-6a1cb225.js → getDynamicHealthTool-99872dc7.js} +1 -1
- package/build/esm/{getSocialList-4560a58f.js → getSocialList-b51adc23.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/i18nV2.js +1 -1
- package/build/esm/{index-d9877ec1.js → index-0cc4495e.js} +1 -1
- package/build/esm/{index-26316b3f.js → index-0d7ce447.js} +1 -1
- package/build/esm/index-252cd73f.js +177 -0
- package/build/esm/{index-68b9e94a.js → index-268c7c6b.js} +1 -1
- package/build/esm/index-321a258f.js +1 -0
- package/build/esm/{index-5caa43f4.js → index-40525833.js} +1 -1
- package/build/esm/index-47e79c7a.js +113 -0
- package/build/esm/index-48c1217c.js +2748 -0
- package/build/esm/{index-0c2be7a3.js → index-50688929.js} +3 -3
- package/build/esm/{index-02b77a48.js → index-635521df.js} +1 -1
- package/build/esm/{index-c6f11a6d.js → index-636381d2.js} +1 -1
- package/build/esm/index-6f811e9f.js +1 -0
- package/build/esm/{index-162b4915.js → index-767b3730.js} +2 -2
- package/build/esm/{index-49764535.js → index-7b57d2c6.js} +1 -1
- package/build/esm/index-7ba828ef.js +1 -0
- package/build/esm/index-829ce636.js +1 -0
- package/build/esm/index-8a737b32.js +1 -0
- package/build/esm/index-90134df0.js +1 -0
- package/build/esm/{index-78578768.js → index-b21e07ed.js} +1 -1
- package/build/esm/index-b46983f9.js +1 -0
- package/build/esm/{index-83c474ee.js → index-c2fbc104.js} +230 -230
- package/build/esm/{index-cba0a74b.js → index-e83bfcd7.js} +1 -1
- package/build/esm/index-f22483ac.js +1 -0
- package/build/esm/{index-9164e252.js → index-f63e0f99.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-e8f8bbab.js → index.styled-8cfdb7c4.js} +3 -3
- package/build/esm/{index.styles-00b1123a.js → index.styles-f5691a90.js} +42 -42
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboardingV2.js +34 -34
- package/build/esm/pwg.js +2 -2
- package/build/esm/{routing-5f8ed184.js → routing-5149c7fa.js} +1 -1
- package/build/esm/subot.js +8 -8
- package/build/esm/together.js +1 -1
- package/build/esm/{types-0492cfd4.js → types-cdbe15bf.js} +199 -199
- package/build/esm/{types-c91bdad4.js → types-d093873c.js} +99 -99
- package/build/esm/types.js +1 -1
- package/build/esm/useCategory-1a7c064a.js +1 -0
- package/build/esm/useHealthToolCache-8eea15d9.js +1 -0
- package/build/esm/{usePlacesAutocomplete-4f66b023.js → usePlacesAutocomplete-d698a28e.js} +1 -1
- package/build/esm/useTranslations-86e89bb6.js +1 -0
- package/build/esm/useUniqueId-772eafdf.js +1 -0
- package/build/esm/{utils-0a0bcf99.js → utils-16683592.js} +2 -2
- package/build/esm/{utils-f741d945.js → utils-c799817b.js} +1 -1
- package/build/esm/{utils-edff8d12.js → utils-f1f499ef.js} +1 -1
- package/build/esm/vaccination.js +40 -40
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-498f29e9.js +1 -0
- package/build/{getSocialList-3817a9ab.js → getSocialList-66c5b6ee.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-436c0e8b.js → index-0c003a87.js} +1 -1
- package/build/index-14e23eae.js +1 -0
- package/build/{index-52649249.js → index-2952a2dc.js} +1 -1
- package/build/index-2db766a9.js +1 -0
- package/build/{index-5f90f4e5.js → index-3e769745.js} +1 -1
- package/build/{index-01f9c8d9.js → index-40a294f0.js} +1 -1
- package/build/{index-18ad3081.js → index-4ce3604f.js} +2 -2
- package/build/index-5b1d11af.js +1 -0
- package/build/{index-069c289f.js → index-5e751a6e.js} +1 -1
- package/build/index-6b402916.js +1 -0
- package/build/{index-21387cc6.js → index-74fc7579.js} +1 -1
- package/build/index-7e8c99e4.js +1 -0
- package/build/{index-8c04ba06.js → index-7f9239c8.js} +14 -14
- package/build/{index-cbb620b6.js → index-86f87970.js} +1 -1
- package/build/{index-709f7216.js → index-95065bac.js} +1 -1
- package/build/{index-a1f028b3.js → index-a36b5063.js} +137 -137
- package/build/{index-41f759e3.js → index-a39628ee.js} +1 -1
- package/build/{index-572fd2c8.js → index-b04eb521.js} +90 -90
- package/build/index-be10c4e0.js +1 -0
- package/build/index-c50fe502.js +113 -0
- package/build/index-cea2c74a.js +1 -0
- package/build/{index-fa25bf7e.js → index-e8a104ed.js} +1 -1
- package/build/{index-a3b7d88b.js → index-eea67a77.js} +1 -1
- package/build/index-f049adba.js +1 -0
- package/build/index.js +1 -1
- package/build/{index.styled-2c8ef9aa.js → index.styled-8f95d44d.js} +1 -1
- package/build/{index.styles-92e006e3.js → index.styles-b6376365.js} +16 -16
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboardingV2.js +32 -32
- package/build/pwg.js +1 -1
- package/build/{routing-c3d332a5.js → routing-0b0a26ff.js} +1 -1
- package/build/subot.js +91 -91
- package/build/together.js +1 -1
- package/build/{types-c35d75a1.js → types-294e4e86.js} +67 -67
- package/build/{types-9bcb082d.js → types-91eb9de5.js} +109 -109
- package/build/types.js +1 -1
- package/build/useCategory-3d89eb4d.js +1 -0
- package/build/{useHealthToolCache-d2a2f3b2.js → useHealthToolCache-de7192b2.js} +1 -1
- package/build/{usePlacesAutocomplete-8ab31b0e.js → usePlacesAutocomplete-4125b7b9.js} +1 -1
- package/build/useTranslations-778ab09c.js +1 -0
- package/build/useUniqueId-a6a2ac25.js +1 -0
- package/build/{utils-b3e862c6.js → utils-2bd7f928.js} +1 -1
- package/build/{utils-a0b40946.js → utils-4db34bcf.js} +1 -1
- package/build/{utils-81be35d3.js → utils-e637cc9f.js} +1 -1
- package/build/vaccination.js +7 -7
- package/package.json +1 -1
- package/build/core-2122fb1b.js +0 -1
- package/build/esm/core-4457a65e.js +0 -1
- package/build/esm/index-1562d0ba.js +0 -1
- package/build/esm/index-179de630.js +0 -2748
- package/build/esm/index-4528d261.js +0 -1
- package/build/esm/index-4f51bd23.js +0 -1
- package/build/esm/index-509ffa20.js +0 -1
- package/build/esm/index-ae2be457.js +0 -1
- package/build/esm/index-b269a987.js +0 -113
- package/build/esm/index-b467e499.js +0 -177
- package/build/esm/index-b71e9ab9.js +0 -1
- package/build/esm/index-fe04e825.js +0 -1
- package/build/esm/useCategory-14ee0f73.js +0 -1
- package/build/esm/useHealthToolCache-7e28c272.js +0 -1
- package/build/esm/useTranslations-a779f33b.js +0 -1
- package/build/getDynamicHealthTool-1948aeb3.js +0 -1
- package/build/index-202c077d.js +0 -1
- package/build/index-2991d8f6.js +0 -1
- package/build/index-878734fb.js +0 -1
- package/build/index-9d0d489b.js +0 -1
- package/build/index-a14acbb4.js +0 -1
- package/build/index-b102425b.js +0 -113
- package/build/index-f040ad74.js +0 -1
- package/build/index-f9d0282d.js +0 -1
- package/build/useCategory-1df56278.js +0 -1
- package/build/useTranslations-2c301136.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-24746ac0.js → BMI_BOYS.percentile.monthly-608c49ea.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-d4f1fea7.js → BMI_BOYS.percentile.weekly-f4ef5f0a.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-0af9b92f.js → BMI_BOYS.percentile.yearly-8b7c31c8.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-a33321f5.js → BMI_BOYS.zscore.monthly-ee736952.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-a87e976d.js → BMI_BOYS.zscore.weekly-eaaad5cb.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-9d3a1a5f.js → BMI_BOYS.zscore.yearly-228bf966.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-2a5fbcad.js → BMI_GIRLS.percentile.monthly-ee9b4086.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-64481bb2.js → BMI_GIRLS.percentile.weekly-88eb168f.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-bf7eee02.js → BMI_GIRLS.percentile.yearly-64f86799.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-bf372de5.js → BMI_GIRLS.zscore.monthly-47014ff8.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-71fca134.js → BMI_GIRLS.zscore.weekly-4cba96bc.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-6d2f794b.js → BMI_GIRLS.zscore.yearly-16fdf047.js} +0 -0
- /package/build/{ChevronDown-adbb0314.js → ChevronDown-5b12eac1.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-531f3aae.js → HEAD CIRCUM_BOYS.percentile.monthly-53f64b81.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-7e09ce09.js → HEAD CIRCUM_BOYS.percentile.weekly-9645d212.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-ea20bc7e.js → HEAD CIRCUM_BOYS.percentile.yearly-16313480.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-3c5f0be3.js → HEAD CIRCUM_BOYS.zscore.monthly-ca44e960.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-a809ed11.js → HEAD CIRCUM_BOYS.zscore.weekly-d7782b27.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-226c9b96.js → HEAD CIRCUM_BOYS.zscore.yearly-a7a06896.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-18fcaa0f.js → HEAD CIRCUM_GIRLS.percentile.monthly-d4be9bf4.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-b8db89fd.js → HEAD CIRCUM_GIRLS.percentile.weekly-f31a52f5.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-5cb6f3f9.js → HEAD CIRCUM_GIRLS.percentile.yearly-42e83272.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-fbaacd10.js → HEAD CIRCUM_GIRLS.zscore.monthly-0778a9c5.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-aaf098df.js → HEAD CIRCUM_GIRLS.zscore.weekly-422152a4.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-3513de87.js → HEAD CIRCUM_GIRLS.zscore.yearly-88fbedd2.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-2abfe634.js → HEIGHT_BOYS.percentile.monthly-e4e06f5f.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-3a5aa464.js → HEIGHT_BOYS.percentile.weekly-3431022e.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-cf491051.js → HEIGHT_BOYS.percentile.yearly-ac16a132.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-e1cfc834.js → HEIGHT_BOYS.zscore.monthly-60ed36a3.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-1e3d76a6.js → HEIGHT_BOYS.zscore.weekly-ae6f8ffc.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-f2a60d05.js → HEIGHT_BOYS.zscore.yearly-a76b8b9f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-1b3c2e05.js → HEIGHT_GIRLS.percentile.monthly-d377bccf.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-f48332e0.js → HEIGHT_GIRLS.percentile.weekly-8654e3b3.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-28d1983f.js → HEIGHT_GIRLS.percentile.yearly-464a3df2.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-addfd81e.js → HEIGHT_GIRLS.zscore.monthly-a1e1e53d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-c51760b0.js → HEIGHT_GIRLS.zscore.weekly-d9151bef.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-a38eb0ae.js → HEIGHT_GIRLS.zscore.yearly-de563c40.js} +0 -0
- /package/build/{Subot-f6b5a989.js → Subot-52a853c9.js} +0 -0
- /package/build/{Visible-2ef4edd7.js → Visible-87789997.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-4a9070a3.js → WEIGHT_BOYS.percentile.monthly-7b12062a.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-379baced.js → WEIGHT_BOYS.percentile.weekly-f91d5d07.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-c4bc4b06.js → WEIGHT_BOYS.percentile.yearly-f8dcf3df.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-eceea643.js → WEIGHT_BOYS.zscore.monthly-4ec73c75.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-e1fc679f.js → WEIGHT_BOYS.zscore.weekly-0957de57.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-a350394c.js → WEIGHT_BOYS.zscore.yearly-29785e07.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-86e0fe1c.js → WEIGHT_GIRLS.percentile.monthly-74ff490d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-e396169e.js → WEIGHT_GIRLS.percentile.weekly-5787c39e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-bdf90d39.js → WEIGHT_GIRLS.percentile.yearly-9d0b172a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-e7b556b1.js → WEIGHT_GIRLS.zscore.monthly-4d69c551.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-c385a9e7.js → WEIGHT_GIRLS.zscore.weekly-0de8c13f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-e9077051.js → WEIGHT_GIRLS.zscore.yearly-44930149.js} +0 -0
- /package/build/{animation-6fa28ac3.js → animation-71e7e86f.js} +0 -0
- /package/build/{cookieHelper-9caa12ab.js → cookieHelper-db011eab.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-06ec2444.js → BMI_BOYS.percentile.monthly-9ff1f082.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-671b479e.js → BMI_BOYS.percentile.weekly-0ba92235.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-3ca0d1e3.js → BMI_BOYS.percentile.yearly-1086e00e.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-442c98ee.js → BMI_BOYS.zscore.monthly-0f7f613e.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-8140cce8.js → BMI_BOYS.zscore.weekly-87fa8db7.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-caf68cb4.js → BMI_BOYS.zscore.yearly-85eb22b9.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-316da0e2.js → BMI_GIRLS.percentile.monthly-2935fa95.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-60faf3ae.js → BMI_GIRLS.percentile.weekly-93283f42.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-ca2e478a.js → BMI_GIRLS.percentile.yearly-c016af3f.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-e96aea02.js → BMI_GIRLS.zscore.monthly-bf1221f3.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-e1007ca5.js → BMI_GIRLS.zscore.weekly-b66ec0f6.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-167bee42.js → BMI_GIRLS.zscore.yearly-330d603a.js} +0 -0
- /package/build/esm/{ChevronDown-d7c894d9.js → ChevronDown-dba95d81.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-4130ee4c.js → HEAD CIRCUM_BOYS.percentile.monthly-a57fcb48.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-53fb8bd8.js → HEAD CIRCUM_BOYS.percentile.weekly-763200c2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-72d93e61.js → HEAD CIRCUM_BOYS.percentile.yearly-56722b16.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-966e6988.js → HEAD CIRCUM_BOYS.zscore.monthly-1409bd4b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-67d65d0e.js → HEAD CIRCUM_BOYS.zscore.weekly-b4a8bf06.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-5a459f7e.js → HEAD CIRCUM_BOYS.zscore.yearly-8eec84ca.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-67a4dc4f.js → HEAD CIRCUM_GIRLS.percentile.monthly-3ef12e21.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-4a965678.js → HEAD CIRCUM_GIRLS.percentile.weekly-34358201.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-b28fedcf.js → HEAD CIRCUM_GIRLS.percentile.yearly-1068a35e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-d1df78f9.js → HEAD CIRCUM_GIRLS.zscore.monthly-509028ee.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-8f81f72a.js → HEAD CIRCUM_GIRLS.zscore.weekly-f6358d7e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-f4610c64.js → HEAD CIRCUM_GIRLS.zscore.yearly-3a982ae8.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-0ea8a7c2.js → HEIGHT_BOYS.percentile.monthly-b071586a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-04a13eda.js → HEIGHT_BOYS.percentile.weekly-fe964e0e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-6765d2fe.js → HEIGHT_BOYS.percentile.yearly-d259bd03.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-5c659bd1.js → HEIGHT_BOYS.zscore.monthly-fba561d6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-c577a418.js → HEIGHT_BOYS.zscore.weekly-bd62c93d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-ccf236de.js → HEIGHT_BOYS.zscore.yearly-8215dea7.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-c996de0d.js → HEIGHT_GIRLS.percentile.monthly-4963f297.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-c859c067.js → HEIGHT_GIRLS.percentile.weekly-a6f4dc51.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-97331e18.js → HEIGHT_GIRLS.percentile.yearly-a1875219.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-e53889a8.js → HEIGHT_GIRLS.zscore.monthly-82dc7d06.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-73f09fa4.js → HEIGHT_GIRLS.zscore.weekly-9dc820e7.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-801788eb.js → HEIGHT_GIRLS.zscore.yearly-b826ff70.js} +0 -0
- /package/build/esm/{Subot-a306f553.js → Subot-7273a528.js} +0 -0
- /package/build/esm/{Visible-3383c1dc.js → Visible-1090bd49.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-341837a0.js → WEIGHT_BOYS.percentile.monthly-93900776.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-e9bd484d.js → WEIGHT_BOYS.percentile.weekly-866ad4eb.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-f9c2a9c9.js → WEIGHT_BOYS.percentile.yearly-3c951027.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-ae1e455f.js → WEIGHT_BOYS.zscore.monthly-36f7548b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-7b8a8343.js → WEIGHT_BOYS.zscore.weekly-85126ac6.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-3b57a051.js → WEIGHT_BOYS.zscore.yearly-eb4a834d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-fe19486a.js → WEIGHT_GIRLS.percentile.monthly-fe3367f1.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-946b7f58.js → WEIGHT_GIRLS.percentile.weekly-13e77337.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-8a8cd6b2.js → WEIGHT_GIRLS.percentile.yearly-6bdcfaf4.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-c0e743f6.js → WEIGHT_GIRLS.zscore.monthly-20d0147d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-25b1e72e.js → WEIGHT_GIRLS.zscore.weekly-2e229a27.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-07c15649.js → WEIGHT_GIRLS.zscore.yearly-61af19d6.js} +0 -0
- /package/build/esm/{animation-21f97ff1.js → animation-58e1654e.js} +0 -0
- /package/build/esm/{cookieHelper-cb44dfdc.js → cookieHelper-b69ab332.js} +0 -0
- /package/build/esm/{index-eb1c60c1.js → index-54152214.js} +0 -0
- /package/build/esm/{index-95bdccf8.js → index-82fd9ecc.js} +0 -0
- /package/build/esm/{index-4bd4a73c.js → index-8ddd1712.js} +0 -0
- /package/build/esm/{isProduction-c2033c3a.js → isProduction-b5a4232a.js} +0 -0
- /package/build/esm/{localizeNumberFormat-9ed75ff1.js → localizeNumberFormat-0bb372b5.js} +0 -0
- /package/build/esm/{normalizeLink-40c6c11b.js → normalizeLink-c5fb54cb.js} +0 -0
- /package/build/esm/{number-b5cc1ee5.js → number-9748fd86.js} +0 -0
- /package/build/esm/{paths-7d90cede.js → paths-dc966233.js} +0 -0
- /package/build/esm/{theme-629a0d91.js → theme-adcbd043.js} +0 -0
- /package/build/esm/{translationsContext-18cf18da.js → translationsContext-a60c9450.js} +0 -0
- /package/build/esm/{tslib.es6-7745e42b.js → tslib.es6-6116a023.js} +0 -0
- /package/build/esm/{types-34021956.js → types-0504c47c.js} +0 -0
- /package/build/esm/{useIsInit-ec556ebe.js → useIsInit-6a263059.js} +0 -0
- /package/build/esm/{useOutsideClick-7009880b.js → useOutsideClick-1959d3a7.js} +0 -0
- /package/build/esm/{useScrollbarSize-8e302ca4.js → useScrollbarSize-6bc774ea.js} +0 -0
- /package/build/esm/{utils-cf01c78a.js → utils-de8dd6dc.js} +0 -0
- /package/build/{index-fd3d5142.js → index-0011304a.js} +0 -0
- /package/build/{index-28fb15db.js → index-063beba4.js} +0 -0
- /package/build/{index-2622868f.js → index-24961b96.js} +0 -0
- /package/build/{isProduction-a44c42e6.js → isProduction-1358e2f3.js} +0 -0
- /package/build/{localizeNumberFormat-b8c53ace.js → localizeNumberFormat-c742a6c3.js} +0 -0
- /package/build/{normalizeLink-59461bc2.js → normalizeLink-fb57949a.js} +0 -0
- /package/build/{number-01536802.js → number-a61c9201.js} +0 -0
- /package/build/{paths-40049d7e.js → paths-680b0596.js} +0 -0
- /package/build/{theme-50c050b6.js → theme-1a921769.js} +0 -0
- /package/build/{translationsContext-04d5edfe.js → translationsContext-e697619c.js} +0 -0
- /package/build/{tslib.es6-4ef30e6a.js → tslib.es6-11571a59.js} +0 -0
- /package/build/{types-8d694835.js → types-2ddc39fa.js} +0 -0
- /package/build/{useIsInit-e1276676.js → useIsInit-ace4f5d2.js} +0 -0
- /package/build/{useOutsideClick-f00326c1.js → useOutsideClick-1ff0a049.js} +0 -0
- /package/build/{useScrollbarSize-e58a17e1.js → useScrollbarSize-fe02c3ef.js} +0 -0
- /package/build/{utils-e0427dfb.js → utils-71645360.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./tslib.es6-6116a023.js";import{i as a}from"./isProduction-b5a4232a.js";const e={},i=t=>{if("undefined"!=typeof window){let e;try{e=JSON.parse(localStorage.getItem((a?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return e||{}}return e[t]},o=(t,i)=>{try{"undefined"!=typeof window?localStorage.setItem((a?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:i,time:Date.now()})):e[t]={data:i,time:Date.now()}}catch(t){}},n=(a,e,n,r=9e5)=>t(void 0,void 0,void 0,(function*(){const t=i(a);if(t&&t.data&&t.time&&Date.now()-t.time<r)return t.data;if(e){const t=yield e();return n&&!n(t)||o(a,t),t}return null}));export{i as a,n as g,o as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{createContext as i,useState as t,useEffect as n,useMemo as r}from"react";import o from"lodash/throttle";import{B as s}from"./utils-
|
|
1
|
+
import e,{createContext as i,useState as t,useEffect as n,useMemo as r}from"react";import o from"lodash/throttle";import{B as s}from"./utils-de8dd6dc.js";const d=i({isInit:!0}),_=e=>{const i=(e=>"number"==typeof e?e:"undefined"!=typeof window&&window.innerWidth||0)(e);return{smallMobile:i<s.BREAK_POINT_SMALL_MOBILE,mobile:i>=s.BREAK_POINT_SMALL_MOBILE&&i<s.BREAK_POINT_MOBILE,tablet:i>=s.BREAK_POINT_MOBILE&&i<s.BREAK_POINT_TABLET,pc:i>=s.BREAK_POINT_TABLET&&i<s.BREAK_POINT_PC,xl:i>=s.BREAK_POINT_PC}},a=({children:i})=>{const[s,a]=t((()=>({isInit:!0})));n((()=>{const e=o((()=>{a({width:window.innerWidth,height:window.innerHeight,isInit:!1})}),200);return window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}}),[]);const E=r((()=>_(s.width)),[s.width]);return e.createElement(d.Provider,{value:Object.assign(Object.assign({},s),{sizeGroups:E})},i)},E=e=>e?{id:e.id,name:e.name||"",icon:e.fruit_icon||""}:{};export{d as S,a,E as f,_ as g};
|
package/build/esm/ecom.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as o}from"./theme-629a0d91.js";export{c as Constants}from"./constants-a437a91d.js";export{t as Types}from"./types-34021956.js";import"./index-c6f11a6d.js";import"date-fns/locale";import"./Subot-a306f553.js";import"./isProduction-c2033c3a.js";var e=Object.freeze({__proto__:null}),i=Object.freeze({__proto__:null});function l(t){return null!=t}const a={formatAutoCompleteAddress:t=>t&&t.place_id?{placeId:t.place_id,description:t.description||""}:null,formatPrice:(t,o)=>{const e="string"==typeof t?parseInt(t):t;return new Intl.NumberFormat(o||"vi-VN").format(e)},formatHotSearchKeyword:t=>({text:(null==t?void 0:t.name)||""}),formatHelpfulUrl:t=>({name:(null==t?void 0:t.name)||"",featuredImage:(null==t?void 0:t.featured_image)||"",url:(null==t?void 0:t.url)||""}),formatCategory:function(t,e,i){var l,r,n;const d=i?i+"/"+t.slug:t.slug,u=(null===(r=null===(l=null==t?void 0:t.children)||void 0===l?void 0:l.map)||void 0===r?void 0:r.call(l,(o=>a.formatCategory(o,t.id,d))))||[];return{id:null==t?void 0:t.id,name:(null==t?void 0:t.name)||"",logo:(null==t?void 0:t.logo)||"",slug:(null==t?void 0:t.slug)||"",fullSlug:d||"",children:u,backgroundColor:t.color||o.colors.teal50,parentId:e||0,products:(null===(n=t.products)||void 0===n?void 0:n.map(a.formatProduct))||[]}},formatFooterInfo:t=>{var o,e,i,l,a,r,n,d,u,s,m,c,v,p,_,g,f,b,h;const y=(null===(i=null===(e=null===(o=null==t?void 0:t.branch)||void 0===o?void 0:o.branch)||void 0===e?void 0:e.map)||void 0===i?void 0:i.call(e,(t=>({flag:t.flag||"",name:t.name||"",url:t.url||""}))))||[],x=(null===(r=null===(a=null===(l=null==t?void 0:t.general)||void 0===l?void 0:l.verified)||void 0===a?void 0:a.map)||void 0===r?void 0:r.call(a,(t=>({image:t.image||"",url:t.url||""}))))||[],P=(null===(d=null===(n=null==t?void 0:t.menu)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,(t=>{var o,e;return{menu_title:t.menu_title,items:null===(e=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({title:t.title,url:t.url})))}})))||[],C=(null===(m=null===(s=null===(u=null==t?void 0:t.social)||void 0===u?void 0:u.socials)||void 0===s?void 0:s.map)||void 0===m?void 0:m.call(s,(t=>({icon:t.icon||"",name:t.name||"",url:t.url||""}))))||[];return{branch:{title:(null===(c=null==t?void 0:t.branch)||void 0===c?void 0:c.title)||"",branch:y},general:{logo:null!==(p=null===(v=null==t?void 0:t.general)||void 0===v?void 0:v.logo)&&void 0!==p?p:"",content:null!==(g=null===(_=null==t?void 0:t.general)||void 0===_?void 0:_.content)&&void 0!==g?g:"",copyright:null!==(b=null===(f=null==t?void 0:t.general)||void 0===f?void 0:f.copyright)&&void 0!==b?b:"",verified:x},menu:P,social:{title:(null===(h=null==t?void 0:t.social)||void 0===h?void 0:h.title)||"",socials:C}}},formatNavigation:function(t){var o,e,i,l,r,n;return{hotSearchKeywords:(null===(e=null===(o=null==t?void 0:t.hot_search_keywords)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatHotSearchKeyword))||[],helpfulUrls:(null===(l=null===(i=null==t?void 0:t.helpful_urls)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,a.formatHelpfulUrl))||[],categories:(null===(n=null===(r=null==t?void 0:t.categories)||void 0===r?void 0:r.map)||void 0===n?void 0:n.call(r,(t=>a.formatCategory(t))))||[],footer:a.formatFooterInfo(null==t?void 0:t.footer),storeId:(null==t?void 0:t.store_id)||0,customerId:(null==t?void 0:t.customer_id)||0,cartItemsQty:"number"==typeof(null==t?void 0:t.cart_items_qty)?t.cart_items_qty:null}},formatPriceInfo:t=>t?{final:t.final||0,regular:t.regular||0,discountPercent:t.discount_percent||0}:null,formatProduct:function(t){var o,e,i,r;if(!t)return null;const n={final:0,regular:0,discountPercent:0};return{id:t.id||0,price:t.price&&a.formatPriceInfo(t.price)||n,thumbnail:t.thumbnail||"",name:t.name||"",averageRating:Number((t.average_rating||0).toFixed(2)),reviewsCount:t.reviews_count||0,tag:t.tag||null,sku:t.sku||"",slug:t.slug||"",images:t.images||[],tags:t.tags||[],unit:t.unit||"",brand:t.brand?{name:t.brand.name||"",image:t.brand.image||"",slug:t.brand.slug||"",productsCount:t.brand.products_count||0}:null,description:t.description||"",productPromotions:(null===(e=null===(o=t.product_promotions)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatProductPromotion).filter(l))||[],categories:(null===(r=null===(i=t.categories)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,(t=>a.formatCategory(t))).filter(l))||[],isInStock:(null==t?void 0:t.is_in_stock)||!1}},formatBanner:t=>t?{name:t.name||"",url:t.url||"",featuredImage:t.featured_image||"",alt:t.image_alt}:null,formatBlogPost:t=>{var o,e;return t?{title:t.title||"",image:t.image||"",link:t.link||"",postData:t.post_data?{reviewed:t.post_data.reviewed?{author:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.author||void 0),editor:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.editor||void 0),expert:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.expert||void 0),factCheck:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(t.post_data.reviewed.is_author)}:null,categories:t.post_data.categories?null===(e=(o=t.post_data.categories).map)||void 0===e?void 0:e.call(o,(t=>({termId:t.term_id||0,name:t.name||"",permalink:t.permalink||"",textColor:t.text_color||""}))):[],postDate:t.post_data.post_date||"",postModified:t.post_data.post_modified||"",modifiedTime:t.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:t=>t?{id:t.ID||0,userId:t.user_id||0,formerRole:t.former_role||"",role:t.role||"",slug:t.slug||"",displayName:t.display_name||"",description:t.description||"",profileUrl:t.profile_url||"",avatar:t.avatar||"",avatarThumbnail:t.avatar_thumbnail||"",turnOffProfile:Boolean(t.turn_off_profile)}:null,formatBrand:function(t){var o,e,i,r;return t?{id:t.id||0,image:t.image||"",position:t.position||"",isPopular:t.is_popular||!1,summary:t.summary||"",name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(e=null===(o=t.banners)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatBanner).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[]}:null},formatHomePage:t=>{var o,e,i,r,n,d,u,s,m,c,v,p,_,g,f,b,h,y,x,P;return t?{brands:t.brands?null===(e=(o=t.brands).map)||void 0===e?void 0:e.call(o,a.formatBrand).filter(l):[],hotDeals:t.hot_deals?null===(r=(i=t.hot_deals).map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l):[],newProducts:t.new_products?null===(d=(n=t.new_products).map)||void 0===d?void 0:d.call(n,a.formatProduct).filter(l):[],slideBanners:t.slide_banners?null===(s=(u=t.slide_banners).map)||void 0===s?void 0:s.call(u,a.formatBanner).filter(l):[],subBanners:t.sub_banners?null===(c=(m=t.sub_banners).map)||void 0===c?void 0:c.call(m,a.formatBanner).filter(l):[],footerBanners:t.footer_banners?null===(p=(v=t.footer_banners).map)||void 0===p?void 0:p.call(v,a.formatBanner).filter(l):[],blogPosts:t.blog_posts?null===(g=(_=t.blog_posts).map)||void 0===g?void 0:g.call(_,a.formatBlogPost).filter(l):[],popularCategories:t.popular_categories?null===(b=(f=t.popular_categories).map)||void 0===b?void 0:b.call(f,(t=>a.formatCategory(t))).filter(l):[],suggestProducts:t.suggest_products?null===(y=(h=t.suggest_products).map)||void 0===y?void 0:y.call(h,(t=>a.formatCategory(t))).filter(l):[],promotions:t.promotions?null===(P=(x=t.promotions).map)||void 0===P?void 0:P.call(x,(t=>a.formatPromotion(t))).filter(l):[]}:null},formatCategoryPage:function(t){var o,e,i,r;return t?{id:t.id||0,name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(e=null===(o=t.banners)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatBanner).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[]}:null},formatBrandPage:function(t){return t?a.formatBrand(t):null},formatPagination:t=>t?{current:t.current||0,first:t.first||0,itemsPerPage:t.items_per_page||0,last:t.last||0,next:t.next||0,prev:t.prev||0,totalItems:t.total_items||0}:null,formatProductDetailPage:function(t){var o,e,i,r,n,d,u,s;return t?Object.assign(Object.assign({},a.formatProduct(t)),{relatedProducts:(null===(e=null===(o=t.related_products)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatProduct).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[],viewedProducts:(null===(d=null===(n=t.viewed_products)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,a.formatProduct).filter(l))||[],promotions:(null===(s=null===(u=t.promotions)||void 0===u?void 0:u.map)||void 0===s?void 0:s.call(u,a.formatPromotion).filter(l))||[]}):null},formatProductReview:t=>{var o,e;return t?{reviewId:t.review_id||"",createdAt:t.created_at||"",title:t.title||"",detail:t.detail||"",nickname:t.nick_name||"",avatar:t.avatar||"",ratingVotes:(null===(e=null===(o=t.rating_votes)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({ratingCode:t.rating_code||"",value:Number(t.value)||0,percent:Number(t.percent)||0}))))||[],images:t.images||[]}:null},formatProductPromotion:t=>t?{id:t.id||0,name:t.name||"",thumbnail:t.thumbnail||"",expirationDate:t.expiration_date||""}:null,formatPromotion:t=>t?{id:t.id||0,name:t.name||"",slug:t.slug||"",thumbnail:t.thumbnail||"",expiredDate:t.expired_date||"",banners:t.banners||[],points:0,description:t.description||"",metaTitle:t.meta_title||"",metaKeywords:t.meta_keywords||"",metaDescription:t.meta_description||""}:null,formatCustomAttributes:(t,o)=>{var e;return(null==t?void 0:t.length)&&(null===(e=null==t?void 0:t.find((t=>t.attribute_code===o)))||void 0===e?void 0:e.value)||""},formatAddress:t=>{var o,e,i,l;return t?{id:t.id||0,fullName:t.firstname||"",telephone:t.telephone||"",province:{value:null===(o=t.region)||void 0===o?void 0:o.region_id,label:null===(e=t.region)||void 0===e?void 0:e.region}||null,district:{value:a.formatCustomAttributes(t.custom_attributes,"district_id"),label:a.formatCustomAttributes(t.custom_attributes,"district")},commune:{value:a.formatCustomAttributes(t.custom_attributes,"ward_id"),label:a.formatCustomAttributes(t.custom_attributes,"ward")},street:(null===(i=null==t?void 0:t.street)||void 0===i?void 0:i.length)?null==t?void 0:t.street[0]:"",isDefault:t.default_billing&&t.default_shipping||!1,fullAddress:(null===(l=null==t?void 0:t.extension_attributes)||void 0===l?void 0:l.full_address)||""}:null},formatProvince:t=>(null==t?void 0:t.available_regions)?t.available_regions.map((t=>({value:t.id||"",label:t.name||""}))):[],formatDistrict:t=>(null==t?void 0:t.districts)?t.districts.map((t=>({value:t.id||"",label:t.name||""}))):[],formatCommune:t=>(null==t?void 0:t.communes)?t.communes.map((t=>({value:t.id||"",label:t.name||""}))):[],formatOrder:t=>{var o,e;return t?{orderNumber:(null==t?void 0:t.order_number)||"",shippingData:(null==t?void 0:t.shipping_data)?{shippingMethod:t.shipping_data.shipping_method||"",shippingDescription:t.shipping_data.shipping_description||"",shippingAddress:t.shipping_data.shipping_address?{fullName:t.shipping_data.shipping_address.firstname||"",fullAddress:t.shipping_data.shipping_address.full_address||"",telephone:t.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==t?void 0:t.ordered_date)||"",status:(null==t?void 0:t.status)||null,totals:(null==t?void 0:t.totals)?{subtotal:t.totals.subtotal||0,shippingAmount:t.totals.shipping_amount||0,discountAmount:t.totals.discount_amount||0,grandTotal:t.totals.grand_total||0}:null,products:(null===(e=null===(o=null==t?void 0:t.products)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({sku:t.sku||"",name:t.name||"",price:t.price||0,rowTotal:t.row_total||0,image:t.image||"",qty:t.qty||0}))))||[],paymentMethod:(null==t?void 0:t.payment_method)||""}:null},formatStatistic:t=>{var o,e,i,l,a;return t?{pending:Number(null===(o=null==t?void 0:t.find((t=>"pending"===t.status)))||void 0===o?void 0:o.amount)||0,processing:Number(null===(e=null==t?void 0:t.find((t=>"processing"===t.status)))||void 0===e?void 0:e.amount)||0,delivering:Number(null===(i=null==t?void 0:t.find((t=>"delivering"===t.status)))||void 0===i?void 0:i.amount)||0,complete:Number(null===(l=null==t?void 0:t.find((t=>"complete"===t.status)))||void 0===l?void 0:l.amount)||0,canceled:Number(null===(a=null==t?void 0:t.find((t=>"canceled"===t.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:t=>{var o,e,i,l,r,n,d,u;return t?{itemId:t.item_id||0,sku:t.sku||"",qty:t.qty||0,name:t.name||"",price:t.price||0,basePrice:(null===(o=t.extension_attributes)||void 0===o?void 0:o.base_price)||0,productType:t.product_type||"",quoteId:t.quote_id||"",thumbnail:(null===(e=t.extension_attributes)||void 0===e?void 0:e.thumbnail)||"",rowTotal:(null===(i=t.extension_attributes)||void 0===i?void 0:i.row_total)||0,promotions:(null===(n=null===(r=null===(l=t.extension_attributes)||void 0===l?void 0:l.promotions)||void 0===r?void 0:r.map)||void 0===n?void 0:n.call(r,a.formatProductPromotion))||[],isInStock:(null===(d=t.extension_attributes)||void 0===d?void 0:d.is_in_stock)||!1,urlProduct:(null===(u=t.extension_attributes)||void 0===u?void 0:u.url_key)||""}:null},formatCartAddress:t=>{var o;return t?{customerAddressId:(null==t?void 0:t.customer_address_id)||0,id:t.id||0,region:t.region||"",regionId:t.region_id||0,regionCode:t.region_code||"",countryId:t.country_id||"",street:t.street||[],postcode:t.postcode||"",city:t.city||"",firstname:t.firstname||"",lastname:t.lastname||"",customerId:t.customer_id||0,email:t.email||"",telephone:t.telephone||"",sameAsBilling:t.same_as_billing||0,saveInAddressBook:t.save_in_address_book||0,fullAddress:(null===(o=t.extension_attributes)||void 0===o?void 0:o.full_address)||""}:null},formatEstimatedShipping:t=>t?{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",carrierTitle:t.carrier_title||"",methodTitle:t.method_title||"",amount:t.amount||0,baseAmount:t.base_amount||0,available:t.available||!1,errorMessage:t.error_message||"",priceExclTax:t.price_excl_tax||0,priceInclTax:t.price_incl_tax||0}:null,formatCartLoggedInCustomer:t=>{var o,e,i;return t?{email:t.email||"",firstname:t.firstname||"",lastname:t.lastname||"",id:t.id||0,groupId:t.group_id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",createdIn:t.created_in||"",storeId:t.store_id||0,websiteId:t.website_id||0,addresses:(null===(e=null===(o=t.addresses)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatCartAddress))||[],disableAutoGroupChange:t.disable_auto_group_change||0,isSubscribed:(null===(i=t.extension_attributes)||void 0===i?void 0:i.is_subscribed)||!1}:null},formatCart:t=>{var o,e,i,l,r,n,d,u,s,m,c,v,p,_;return t?{id:t.id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",isActive:t.is_active||!1,isVirtual:t.is_virtual||!1,items:(null===(i=null===(e=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatCartItem))||void 0===i?void 0:i.sort(((t,o)=>Number(null==o?void 0:o.isInStock)-Number(null==t?void 0:t.isInStock))))||[],itemsCount:t.items_count||0,itemsQty:t.items_qty||0,customer:t.customer?a.formatCartLoggedInCustomer(t.customer):null,billingAddress:t.billing_address?a.formatCartAddress(t.billing_address):null,origOrderId:t.orig_order_id||0,currency:{globalCurrencyCode:(null===(l=t.currency)||void 0===l?void 0:l.global_currency_code)||"",baseCurrencyCode:(null===(r=t.currency)||void 0===r?void 0:r.base_currency_code)||"",storeCurrencyCode:(null===(n=t.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(d=t.currency)||void 0===d?void 0:d.quote_currency_code)||"",storeToBaseRate:(null===(u=t.currency)||void 0===u?void 0:u.store_to_base_rate)||0,storeToQuoteRate:(null===(s=t.currency)||void 0===s?void 0:s.store_to_quote_rate)||0,baseToGlobalRate:(null===(m=t.currency)||void 0===m?void 0:m.base_to_global_rate)||0,baseToQuoteRate:(null===(c=t.currency)||void 0===c?void 0:c.base_to_quote_rate)||0},customerIsGuest:t.customer_is_guest||!1,customerNoteNotify:t.customer_note_notify||!1,customerTaxClassId:t.customer_tax_class_id||0,storeId:t.store_id||0,shippingAssignments:null===(_=null===(p=null===(v=t.extension_attributes)||void 0===v?void 0:v.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(t=>{var o,e,i;return{shipping:{address:t.shipping.address?a.formatCartAddress(t.shipping.address):null,method:(null===(o=t.shipping)||void 0===o?void 0:o.method)||""},items:(null===(i=(e=t.items).map)||void 0===i?void 0:i.call(e,a.formatCartItem))||[]}}))}:null},formatCartTotal:t=>{var o,e,i;return t?{grandTotal:t.grand_total||0,baseGrandTotal:t.base_grand_total||0,subtotal:t.subtotal||0,baseSubtotal:t.base_subtotal||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,subtotalWithDiscount:t.subtotal_with_discount||0,baseSubtotalWithDiscount:t.base_subtotal_with_discount||0,shippingAmount:t.shipping_amount||0,baseShippingAmount:t.base_shipping_amount||0,shippingDiscountAmount:t.shipping_discount_amount||0,baseShippingDiscountAmount:t.base_shipping_discount_amount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,shippingTaxAmount:t.shipping_tax_amount||0,baseShippingTaxAmount:t.base_shipping_tax_amount||0,subtotalInclTax:t.subtotal_incl_tax||0,shippingInclTax:t.shipping_incl_tax||0,baseShippingInclTax:t.base_shipping_incl_tax||0,baseCurrencyCode:t.base_currency_code||"",quoteCurrencyCode:t.quote_currency_code||"",itemsQty:t.items_qty||0,coupon:{couponCode:t.coupon_code||"",couponDescription:(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.coupon_description_text)||""},items:(null===(i=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===i?void 0:i.call(e,(t=>({itemId:t.item_id||0,price:t.price||0,basePrice:t.base_price||0,qty:t.qty||0,rowTotal:t.row_total||0,baseRowTotal:t.base_row_total||0,rowTotalWithDiscount:t.row_total_with_discount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,taxPercent:t.tax_percent||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,discountPercent:t.discount_percent||0,priceInclTax:t.price_incl_tax||0,basePriceInclTax:t.base_price_incl_tax||0,rowTotalInclTax:t.row_total_incl_tax||0,baseRowTotalInclTax:t.base_row_total_incl_tax||0,options:t.options||"",weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,weeeTaxApplied:t.weee_tax_applied||0,name:t.name||""}))))||[],totalSegments:t.total_segments||[]}:null},formatPaymentMethod:t=>t?null==t?void 0:t.map((t=>({code:(null==t?void 0:t.payment_code)||"",title:(null==t?void 0:t.payment_title)||"",thumbnail:(null==t?void 0:t.payment_thumbnail)||""}))):null,formatPaymentInformation:t=>{var o;return t?{paymentMethods:a.formatPaymentMethod(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.payment_detail_info)||[],totals:a.formatCartTotal(t.totals)}:null},formatOrderConfirmation:t=>t?{isSuccess:t.is_success||!1,orderInfo:a.formatOrder(t.order_info)}:null,formatCoupons:t=>{var o;return(null===(o=null==t?void 0:t.items)||void 0===o?void 0:o.length)?t.items.map((t=>({code:(null==t?void 0:t.code)||"",name:(null==t?void 0:t.name)||"",thumbnail:(null==t?void 0:t.thumbnail)||"",description:(null==t?void 0:t.expired_date)||""}))):null},formatShippings:t=>t?t.map((t=>{var o;return{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",title:t.carrier_title||"",description:t.method_title||"",price:(null==t?void 0:t.base_amount)||0,thumbnail:(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.thumbnail)||""}})):[]};var r=Object.freeze({__proto__:null,dataFormatter:a});export{e as ApiTypes,r as DataFormatter,i as DataTypes};
|
|
1
|
+
import{t as o}from"./theme-adcbd043.js";export{c as Constants}from"./constants-7a224812.js";export{t as Types}from"./types-0504c47c.js";import"./index-636381d2.js";import"date-fns/locale";import"./Subot-7273a528.js";import"./isProduction-b5a4232a.js";var e=Object.freeze({__proto__:null}),i=Object.freeze({__proto__:null});function l(t){return null!=t}const a={formatAutoCompleteAddress:t=>t&&t.place_id?{placeId:t.place_id,description:t.description||""}:null,formatPrice:(t,o)=>{const e="string"==typeof t?parseInt(t):t;return new Intl.NumberFormat(o||"vi-VN").format(e)},formatHotSearchKeyword:t=>({text:(null==t?void 0:t.name)||""}),formatHelpfulUrl:t=>({name:(null==t?void 0:t.name)||"",featuredImage:(null==t?void 0:t.featured_image)||"",url:(null==t?void 0:t.url)||""}),formatCategory:function(t,e,i){var l,r,n;const d=i?i+"/"+t.slug:t.slug,u=(null===(r=null===(l=null==t?void 0:t.children)||void 0===l?void 0:l.map)||void 0===r?void 0:r.call(l,(o=>a.formatCategory(o,t.id,d))))||[];return{id:null==t?void 0:t.id,name:(null==t?void 0:t.name)||"",logo:(null==t?void 0:t.logo)||"",slug:(null==t?void 0:t.slug)||"",fullSlug:d||"",children:u,backgroundColor:t.color||o.colors.teal50,parentId:e||0,products:(null===(n=t.products)||void 0===n?void 0:n.map(a.formatProduct))||[]}},formatFooterInfo:t=>{var o,e,i,l,a,r,n,d,u,s,m,c,v,p,_,g,f,b,h;const y=(null===(i=null===(e=null===(o=null==t?void 0:t.branch)||void 0===o?void 0:o.branch)||void 0===e?void 0:e.map)||void 0===i?void 0:i.call(e,(t=>({flag:t.flag||"",name:t.name||"",url:t.url||""}))))||[],x=(null===(r=null===(a=null===(l=null==t?void 0:t.general)||void 0===l?void 0:l.verified)||void 0===a?void 0:a.map)||void 0===r?void 0:r.call(a,(t=>({image:t.image||"",url:t.url||""}))))||[],P=(null===(d=null===(n=null==t?void 0:t.menu)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,(t=>{var o,e;return{menu_title:t.menu_title,items:null===(e=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({title:t.title,url:t.url})))}})))||[],C=(null===(m=null===(s=null===(u=null==t?void 0:t.social)||void 0===u?void 0:u.socials)||void 0===s?void 0:s.map)||void 0===m?void 0:m.call(s,(t=>({icon:t.icon||"",name:t.name||"",url:t.url||""}))))||[];return{branch:{title:(null===(c=null==t?void 0:t.branch)||void 0===c?void 0:c.title)||"",branch:y},general:{logo:null!==(p=null===(v=null==t?void 0:t.general)||void 0===v?void 0:v.logo)&&void 0!==p?p:"",content:null!==(g=null===(_=null==t?void 0:t.general)||void 0===_?void 0:_.content)&&void 0!==g?g:"",copyright:null!==(b=null===(f=null==t?void 0:t.general)||void 0===f?void 0:f.copyright)&&void 0!==b?b:"",verified:x},menu:P,social:{title:(null===(h=null==t?void 0:t.social)||void 0===h?void 0:h.title)||"",socials:C}}},formatNavigation:function(t){var o,e,i,l,r,n;return{hotSearchKeywords:(null===(e=null===(o=null==t?void 0:t.hot_search_keywords)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatHotSearchKeyword))||[],helpfulUrls:(null===(l=null===(i=null==t?void 0:t.helpful_urls)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,a.formatHelpfulUrl))||[],categories:(null===(n=null===(r=null==t?void 0:t.categories)||void 0===r?void 0:r.map)||void 0===n?void 0:n.call(r,(t=>a.formatCategory(t))))||[],footer:a.formatFooterInfo(null==t?void 0:t.footer),storeId:(null==t?void 0:t.store_id)||0,customerId:(null==t?void 0:t.customer_id)||0,cartItemsQty:"number"==typeof(null==t?void 0:t.cart_items_qty)?t.cart_items_qty:null}},formatPriceInfo:t=>t?{final:t.final||0,regular:t.regular||0,discountPercent:t.discount_percent||0}:null,formatProduct:function(t){var o,e,i,r;if(!t)return null;const n={final:0,regular:0,discountPercent:0};return{id:t.id||0,price:t.price&&a.formatPriceInfo(t.price)||n,thumbnail:t.thumbnail||"",name:t.name||"",averageRating:Number((t.average_rating||0).toFixed(2)),reviewsCount:t.reviews_count||0,tag:t.tag||null,sku:t.sku||"",slug:t.slug||"",images:t.images||[],tags:t.tags||[],unit:t.unit||"",brand:t.brand?{name:t.brand.name||"",image:t.brand.image||"",slug:t.brand.slug||"",productsCount:t.brand.products_count||0}:null,description:t.description||"",productPromotions:(null===(e=null===(o=t.product_promotions)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatProductPromotion).filter(l))||[],categories:(null===(r=null===(i=t.categories)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,(t=>a.formatCategory(t))).filter(l))||[],isInStock:(null==t?void 0:t.is_in_stock)||!1}},formatBanner:t=>t?{name:t.name||"",url:t.url||"",featuredImage:t.featured_image||"",alt:t.image_alt}:null,formatBlogPost:t=>{var o,e;return t?{title:t.title||"",image:t.image||"",link:t.link||"",postData:t.post_data?{reviewed:t.post_data.reviewed?{author:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.author||void 0),editor:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.editor||void 0),expert:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.expert||void 0),factCheck:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(t.post_data.reviewed.is_author)}:null,categories:t.post_data.categories?null===(e=(o=t.post_data.categories).map)||void 0===e?void 0:e.call(o,(t=>({termId:t.term_id||0,name:t.name||"",permalink:t.permalink||"",textColor:t.text_color||""}))):[],postDate:t.post_data.post_date||"",postModified:t.post_data.post_modified||"",modifiedTime:t.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:t=>t?{id:t.ID||0,userId:t.user_id||0,formerRole:t.former_role||"",role:t.role||"",slug:t.slug||"",displayName:t.display_name||"",description:t.description||"",profileUrl:t.profile_url||"",avatar:t.avatar||"",avatarThumbnail:t.avatar_thumbnail||"",turnOffProfile:Boolean(t.turn_off_profile)}:null,formatBrand:function(t){var o,e,i,r;return t?{id:t.id||0,image:t.image||"",position:t.position||"",isPopular:t.is_popular||!1,summary:t.summary||"",name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(e=null===(o=t.banners)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatBanner).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[]}:null},formatHomePage:t=>{var o,e,i,r,n,d,u,s,m,c,v,p,_,g,f,b,h,y,x,P;return t?{brands:t.brands?null===(e=(o=t.brands).map)||void 0===e?void 0:e.call(o,a.formatBrand).filter(l):[],hotDeals:t.hot_deals?null===(r=(i=t.hot_deals).map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l):[],newProducts:t.new_products?null===(d=(n=t.new_products).map)||void 0===d?void 0:d.call(n,a.formatProduct).filter(l):[],slideBanners:t.slide_banners?null===(s=(u=t.slide_banners).map)||void 0===s?void 0:s.call(u,a.formatBanner).filter(l):[],subBanners:t.sub_banners?null===(c=(m=t.sub_banners).map)||void 0===c?void 0:c.call(m,a.formatBanner).filter(l):[],footerBanners:t.footer_banners?null===(p=(v=t.footer_banners).map)||void 0===p?void 0:p.call(v,a.formatBanner).filter(l):[],blogPosts:t.blog_posts?null===(g=(_=t.blog_posts).map)||void 0===g?void 0:g.call(_,a.formatBlogPost).filter(l):[],popularCategories:t.popular_categories?null===(b=(f=t.popular_categories).map)||void 0===b?void 0:b.call(f,(t=>a.formatCategory(t))).filter(l):[],suggestProducts:t.suggest_products?null===(y=(h=t.suggest_products).map)||void 0===y?void 0:y.call(h,(t=>a.formatCategory(t))).filter(l):[],promotions:t.promotions?null===(P=(x=t.promotions).map)||void 0===P?void 0:P.call(x,(t=>a.formatPromotion(t))).filter(l):[]}:null},formatCategoryPage:function(t){var o,e,i,r;return t?{id:t.id||0,name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(e=null===(o=t.banners)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatBanner).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[]}:null},formatBrandPage:function(t){return t?a.formatBrand(t):null},formatPagination:t=>t?{current:t.current||0,first:t.first||0,itemsPerPage:t.items_per_page||0,last:t.last||0,next:t.next||0,prev:t.prev||0,totalItems:t.total_items||0}:null,formatProductDetailPage:function(t){var o,e,i,r,n,d,u,s;return t?Object.assign(Object.assign({},a.formatProduct(t)),{relatedProducts:(null===(e=null===(o=t.related_products)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatProduct).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[],viewedProducts:(null===(d=null===(n=t.viewed_products)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,a.formatProduct).filter(l))||[],promotions:(null===(s=null===(u=t.promotions)||void 0===u?void 0:u.map)||void 0===s?void 0:s.call(u,a.formatPromotion).filter(l))||[]}):null},formatProductReview:t=>{var o,e;return t?{reviewId:t.review_id||"",createdAt:t.created_at||"",title:t.title||"",detail:t.detail||"",nickname:t.nick_name||"",avatar:t.avatar||"",ratingVotes:(null===(e=null===(o=t.rating_votes)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({ratingCode:t.rating_code||"",value:Number(t.value)||0,percent:Number(t.percent)||0}))))||[],images:t.images||[]}:null},formatProductPromotion:t=>t?{id:t.id||0,name:t.name||"",thumbnail:t.thumbnail||"",expirationDate:t.expiration_date||""}:null,formatPromotion:t=>t?{id:t.id||0,name:t.name||"",slug:t.slug||"",thumbnail:t.thumbnail||"",expiredDate:t.expired_date||"",banners:t.banners||[],points:0,description:t.description||"",metaTitle:t.meta_title||"",metaKeywords:t.meta_keywords||"",metaDescription:t.meta_description||""}:null,formatCustomAttributes:(t,o)=>{var e;return(null==t?void 0:t.length)&&(null===(e=null==t?void 0:t.find((t=>t.attribute_code===o)))||void 0===e?void 0:e.value)||""},formatAddress:t=>{var o,e,i,l;return t?{id:t.id||0,fullName:t.firstname||"",telephone:t.telephone||"",province:{value:null===(o=t.region)||void 0===o?void 0:o.region_id,label:null===(e=t.region)||void 0===e?void 0:e.region}||null,district:{value:a.formatCustomAttributes(t.custom_attributes,"district_id"),label:a.formatCustomAttributes(t.custom_attributes,"district")},commune:{value:a.formatCustomAttributes(t.custom_attributes,"ward_id"),label:a.formatCustomAttributes(t.custom_attributes,"ward")},street:(null===(i=null==t?void 0:t.street)||void 0===i?void 0:i.length)?null==t?void 0:t.street[0]:"",isDefault:t.default_billing&&t.default_shipping||!1,fullAddress:(null===(l=null==t?void 0:t.extension_attributes)||void 0===l?void 0:l.full_address)||""}:null},formatProvince:t=>(null==t?void 0:t.available_regions)?t.available_regions.map((t=>({value:t.id||"",label:t.name||""}))):[],formatDistrict:t=>(null==t?void 0:t.districts)?t.districts.map((t=>({value:t.id||"",label:t.name||""}))):[],formatCommune:t=>(null==t?void 0:t.communes)?t.communes.map((t=>({value:t.id||"",label:t.name||""}))):[],formatOrder:t=>{var o,e;return t?{orderNumber:(null==t?void 0:t.order_number)||"",shippingData:(null==t?void 0:t.shipping_data)?{shippingMethod:t.shipping_data.shipping_method||"",shippingDescription:t.shipping_data.shipping_description||"",shippingAddress:t.shipping_data.shipping_address?{fullName:t.shipping_data.shipping_address.firstname||"",fullAddress:t.shipping_data.shipping_address.full_address||"",telephone:t.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==t?void 0:t.ordered_date)||"",status:(null==t?void 0:t.status)||null,totals:(null==t?void 0:t.totals)?{subtotal:t.totals.subtotal||0,shippingAmount:t.totals.shipping_amount||0,discountAmount:t.totals.discount_amount||0,grandTotal:t.totals.grand_total||0}:null,products:(null===(e=null===(o=null==t?void 0:t.products)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({sku:t.sku||"",name:t.name||"",price:t.price||0,rowTotal:t.row_total||0,image:t.image||"",qty:t.qty||0}))))||[],paymentMethod:(null==t?void 0:t.payment_method)||""}:null},formatStatistic:t=>{var o,e,i,l,a;return t?{pending:Number(null===(o=null==t?void 0:t.find((t=>"pending"===t.status)))||void 0===o?void 0:o.amount)||0,processing:Number(null===(e=null==t?void 0:t.find((t=>"processing"===t.status)))||void 0===e?void 0:e.amount)||0,delivering:Number(null===(i=null==t?void 0:t.find((t=>"delivering"===t.status)))||void 0===i?void 0:i.amount)||0,complete:Number(null===(l=null==t?void 0:t.find((t=>"complete"===t.status)))||void 0===l?void 0:l.amount)||0,canceled:Number(null===(a=null==t?void 0:t.find((t=>"canceled"===t.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:t=>{var o,e,i,l,r,n,d,u;return t?{itemId:t.item_id||0,sku:t.sku||"",qty:t.qty||0,name:t.name||"",price:t.price||0,basePrice:(null===(o=t.extension_attributes)||void 0===o?void 0:o.base_price)||0,productType:t.product_type||"",quoteId:t.quote_id||"",thumbnail:(null===(e=t.extension_attributes)||void 0===e?void 0:e.thumbnail)||"",rowTotal:(null===(i=t.extension_attributes)||void 0===i?void 0:i.row_total)||0,promotions:(null===(n=null===(r=null===(l=t.extension_attributes)||void 0===l?void 0:l.promotions)||void 0===r?void 0:r.map)||void 0===n?void 0:n.call(r,a.formatProductPromotion))||[],isInStock:(null===(d=t.extension_attributes)||void 0===d?void 0:d.is_in_stock)||!1,urlProduct:(null===(u=t.extension_attributes)||void 0===u?void 0:u.url_key)||""}:null},formatCartAddress:t=>{var o;return t?{customerAddressId:(null==t?void 0:t.customer_address_id)||0,id:t.id||0,region:t.region||"",regionId:t.region_id||0,regionCode:t.region_code||"",countryId:t.country_id||"",street:t.street||[],postcode:t.postcode||"",city:t.city||"",firstname:t.firstname||"",lastname:t.lastname||"",customerId:t.customer_id||0,email:t.email||"",telephone:t.telephone||"",sameAsBilling:t.same_as_billing||0,saveInAddressBook:t.save_in_address_book||0,fullAddress:(null===(o=t.extension_attributes)||void 0===o?void 0:o.full_address)||""}:null},formatEstimatedShipping:t=>t?{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",carrierTitle:t.carrier_title||"",methodTitle:t.method_title||"",amount:t.amount||0,baseAmount:t.base_amount||0,available:t.available||!1,errorMessage:t.error_message||"",priceExclTax:t.price_excl_tax||0,priceInclTax:t.price_incl_tax||0}:null,formatCartLoggedInCustomer:t=>{var o,e,i;return t?{email:t.email||"",firstname:t.firstname||"",lastname:t.lastname||"",id:t.id||0,groupId:t.group_id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",createdIn:t.created_in||"",storeId:t.store_id||0,websiteId:t.website_id||0,addresses:(null===(e=null===(o=t.addresses)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatCartAddress))||[],disableAutoGroupChange:t.disable_auto_group_change||0,isSubscribed:(null===(i=t.extension_attributes)||void 0===i?void 0:i.is_subscribed)||!1}:null},formatCart:t=>{var o,e,i,l,r,n,d,u,s,m,c,v,p,_;return t?{id:t.id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",isActive:t.is_active||!1,isVirtual:t.is_virtual||!1,items:(null===(i=null===(e=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatCartItem))||void 0===i?void 0:i.sort(((t,o)=>Number(null==o?void 0:o.isInStock)-Number(null==t?void 0:t.isInStock))))||[],itemsCount:t.items_count||0,itemsQty:t.items_qty||0,customer:t.customer?a.formatCartLoggedInCustomer(t.customer):null,billingAddress:t.billing_address?a.formatCartAddress(t.billing_address):null,origOrderId:t.orig_order_id||0,currency:{globalCurrencyCode:(null===(l=t.currency)||void 0===l?void 0:l.global_currency_code)||"",baseCurrencyCode:(null===(r=t.currency)||void 0===r?void 0:r.base_currency_code)||"",storeCurrencyCode:(null===(n=t.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(d=t.currency)||void 0===d?void 0:d.quote_currency_code)||"",storeToBaseRate:(null===(u=t.currency)||void 0===u?void 0:u.store_to_base_rate)||0,storeToQuoteRate:(null===(s=t.currency)||void 0===s?void 0:s.store_to_quote_rate)||0,baseToGlobalRate:(null===(m=t.currency)||void 0===m?void 0:m.base_to_global_rate)||0,baseToQuoteRate:(null===(c=t.currency)||void 0===c?void 0:c.base_to_quote_rate)||0},customerIsGuest:t.customer_is_guest||!1,customerNoteNotify:t.customer_note_notify||!1,customerTaxClassId:t.customer_tax_class_id||0,storeId:t.store_id||0,shippingAssignments:null===(_=null===(p=null===(v=t.extension_attributes)||void 0===v?void 0:v.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(t=>{var o,e,i;return{shipping:{address:t.shipping.address?a.formatCartAddress(t.shipping.address):null,method:(null===(o=t.shipping)||void 0===o?void 0:o.method)||""},items:(null===(i=(e=t.items).map)||void 0===i?void 0:i.call(e,a.formatCartItem))||[]}}))}:null},formatCartTotal:t=>{var o,e,i;return t?{grandTotal:t.grand_total||0,baseGrandTotal:t.base_grand_total||0,subtotal:t.subtotal||0,baseSubtotal:t.base_subtotal||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,subtotalWithDiscount:t.subtotal_with_discount||0,baseSubtotalWithDiscount:t.base_subtotal_with_discount||0,shippingAmount:t.shipping_amount||0,baseShippingAmount:t.base_shipping_amount||0,shippingDiscountAmount:t.shipping_discount_amount||0,baseShippingDiscountAmount:t.base_shipping_discount_amount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,shippingTaxAmount:t.shipping_tax_amount||0,baseShippingTaxAmount:t.base_shipping_tax_amount||0,subtotalInclTax:t.subtotal_incl_tax||0,shippingInclTax:t.shipping_incl_tax||0,baseShippingInclTax:t.base_shipping_incl_tax||0,baseCurrencyCode:t.base_currency_code||"",quoteCurrencyCode:t.quote_currency_code||"",itemsQty:t.items_qty||0,coupon:{couponCode:t.coupon_code||"",couponDescription:(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.coupon_description_text)||""},items:(null===(i=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===i?void 0:i.call(e,(t=>({itemId:t.item_id||0,price:t.price||0,basePrice:t.base_price||0,qty:t.qty||0,rowTotal:t.row_total||0,baseRowTotal:t.base_row_total||0,rowTotalWithDiscount:t.row_total_with_discount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,taxPercent:t.tax_percent||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,discountPercent:t.discount_percent||0,priceInclTax:t.price_incl_tax||0,basePriceInclTax:t.base_price_incl_tax||0,rowTotalInclTax:t.row_total_incl_tax||0,baseRowTotalInclTax:t.base_row_total_incl_tax||0,options:t.options||"",weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,weeeTaxApplied:t.weee_tax_applied||0,name:t.name||""}))))||[],totalSegments:t.total_segments||[]}:null},formatPaymentMethod:t=>t?null==t?void 0:t.map((t=>({code:(null==t?void 0:t.payment_code)||"",title:(null==t?void 0:t.payment_title)||"",thumbnail:(null==t?void 0:t.payment_thumbnail)||""}))):null,formatPaymentInformation:t=>{var o;return t?{paymentMethods:a.formatPaymentMethod(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.payment_detail_info)||[],totals:a.formatCartTotal(t.totals)}:null},formatOrderConfirmation:t=>t?{isSuccess:t.is_success||!1,orderInfo:a.formatOrder(t.order_info)}:null,formatCoupons:t=>{var o;return(null===(o=null==t?void 0:t.items)||void 0===o?void 0:o.length)?t.items.map((t=>({code:(null==t?void 0:t.code)||"",name:(null==t?void 0:t.name)||"",thumbnail:(null==t?void 0:t.thumbnail)||"",description:(null==t?void 0:t.expired_date)||""}))):null},formatShippings:t=>t?t.map((t=>{var o;return{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",title:t.carrier_title||"",description:t.method_title||"",price:(null==t?void 0:t.base_amount)||0,thumbnail:(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.thumbnail)||""}})):[]};var r=Object.freeze({__proto__:null,dataFormatter:a});export{e as ApiTypes,r as DataFormatter,i as DataTypes};
|
package/build/esm/footer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{F as Footer}from"./index-
|
|
1
|
+
export{F as Footer}from"./index-829ce636.js";import"react";import"./index-e83bfcd7.js";import"./tslib.es6-6116a023.js";import"./index-47e79c7a.js";import"@mantine/core";import"@mantine/hooks";import"./theme-adcbd043.js";import"./index-0cc4495e.js";import"./index-636381d2.js";import"date-fns/locale";import"./Subot-7273a528.js";import"./isProduction-b5a4232a.js";import"dayjs";import"./utils-de8dd6dc.js";import"styled-components";import"@mantine/carousel";import"./Plus-8ce4f4ec.js";import"classnames";import"./index-8ddd1712.js";import"@mantine/dates";import"./useTranslations-86e89bb6.js";import"./translationsContext-a60c9450.js";import"string-format";import"./index-268c7c6b.js";import"./utils-c799817b.js";import"./index-b21e07ed.js";import"./index.styled-8cfdb7c4.js";
|
package/build/esm/gAssets.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as CommonGAssets,G as GAssets}from"./index-
|
|
1
|
+
export{C as CommonGAssets,G as GAssets}from"./index-0cc4495e.js";import"./index-636381d2.js";import"date-fns/locale";import"./Subot-7273a528.js";import"./isProduction-b5a4232a.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./tslib.es6-
|
|
1
|
+
import{a as t}from"./tslib.es6-6116a023.js";import{n as o}from"./normalizeLink-c5fb54cb.js";import{c as i}from"./routing-5149c7fa.js";import{g as l}from"./core-2b914f39.js";const n=(t,o)=>{var i,l;if(!t)return{};const n="tl-PH"===o?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(i=t.link)||void 0===i?void 0:i.startsWith("http"))?t.link:`${n}/health-tools`+(null===(l=t.link)||void 0===l?void 0:l.replace(`${n}/`,"/")),subtitle:t.subtitle,title:t.title}},e=l=>t(void 0,void 0,void 0,(function*(){var t,e;try{const s="tl-PH"===l?"lang=fil":"";let a=[];try{const r=yield fetch(o(`${i(l)}/wp-json/api/healthtools?ismenu=0${s?"&"+s:""}`)).then((t=>t.json()));a=(null===(e=null===(t=null==r?void 0:r.data)||void 0===t?void 0:t.map)||void 0===e?void 0:e.call(t,(t=>n(t,l))))||[]}catch(t){}return a}catch(t){console.error(t)}})),s=o=>t(void 0,void 0,void 0,(function*(){return(yield l("all-health-tools",(()=>e(o||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));export{s as a,n as f,e as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{L as t}from"./Subot-
|
|
1
|
+
import e from"react";import{L as t}from"./Subot-7273a528.js";import{C}from"./index-0cc4495e.js";const l=l=>[{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},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=${l}`},{icon:e.createElement("img",{src:C.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32},loading:"lazy"}),name:"Zalo",href:`https://sp.zalo.me/share?href=${l}`,allowedLocales:[t.Vietnam]},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},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=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},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=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},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=${l}`},{icon:e.createElement("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/?${l}`,allowedLocales:[t.Taiwan]}];export{l as g};
|
package/build/esm/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{u as useTranslations}from"./useTranslations-86e89bb6.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-6bc774ea.js";export{M as MAPPED_CATEGORY_SLUGS,P as PREGNANCY_SLUG,c as useCategory,u as useFbDataLayer,a as usePrevious,b as useRafState}from"./useCategory-1a7c064a.js";export{u as useHealthToolsCache}from"./useHealthToolCache-8eea15d9.js";export{u as useIsInit}from"./useIsInit-6a263059.js";export{i as initSharedOutSideClickListener,a as useOutsideClick,u as useSharedOutsideClick}from"./useOutsideClick-1959d3a7.js";export{u as useInitialMount,a as useUniqueId}from"./useUniqueId-772eafdf.js";import"react";import"./translationsContext-a60c9450.js";import"string-format";import"lodash/debounce";import"./tslib.es6-6116a023.js";import"./cookieHelper-b69ab332.js";import"./Subot-7273a528.js";import"./getDynamicHealthTool-99872dc7.js";import"./normalizeLink-c5fb54cb.js";import"./routing-5149c7fa.js";import"./index-636381d2.js";import"date-fns/locale";import"./isProduction-b5a4232a.js";import"./core-2b914f39.js";
|
package/build/esm/i18n.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as s}from"./translationsContext-
|
|
1
|
+
import{T as s}from"./translationsContext-a60c9450.js";export{T as TranslationsContext}from"./translationsContext-a60c9450.js";import o,{useState as r,useEffect as e,useMemo as t}from"react";import i from"./i18n-values/en-PH.js";import n from"./i18n-values/hi-IN.js";import a from"./i18n-values/id-ID.js";import l from"./i18n-values/km-KH.js";import m from"./i18n-values/ms-MY.js";import v from"./i18n-values/my-MM.js";import j from"./i18n-values/th-TH.js";import u from"./i18n-values/tl-PH.js";import c from"./i18n-values/vi-VN.js";import p from"./i18n-values/vi-VN_MB.js";import f from"./i18n-values/zh-TW.js";const d={"en-PH":i,"vi-VN":c,"hi-IN":n,"id-ID":a,"ms-MY":m,"my-MM":v,"km-KH":l,"zh-TW":f,"th-TH":j,"tl-PH":u,"vi-VN_MB":p},h=({locale:i="en-PH",overrides:n,overrideCurrentLocale:a,children:l,shouldLoadTranslation:m=!0,loader:v=null,onTranslationsLoaded:j})=>{const u=n&&n[i]||a,[c,p]=r((()=>Object.assign(Object.assign({},u),m?d[i]:{})));e((()=>{p(Object.assign(Object.assign({},u),m?d[i]:{}))}),[m,i]);const f=t((()=>c?{locale:i,values:c}:null),[i,c]);return e((()=>{j&&Object.keys(c).length&&j(c)}),[c]),o.createElement(s.Provider,{value:f},f?l:v)};export{h as TranslationsProvider,d as translationsMap};
|
package/build/esm/i18nV2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as t}from"./translationsContext-
|
|
1
|
+
import{T as t}from"./translationsContext-a60c9450.js";export{T as TranslationsContext}from"./translationsContext-a60c9450.js";import e,{useMemo as o}from"react";const a=({locale:a="en-PH",values:r,children:n})=>{const l=o((()=>r?{locale:a,values:r}:null),[a,r]);return e.createElement(t.Provider,{value:l},n)};export{a as TranslationsProvider};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as s}from"./index-
|
|
1
|
+
import{d as s}from"./index-636381d2.js";import{i as e}from"./isProduction-b5a4232a.js";const t="hellosehat.com";class o{constructor(){this.baseDomain="",this.subPath="",this.getAssetPath=(s,t,o)=>{const i="https://hhg-common."+[t||this.getBaseDomain(),o||this.subPath,s].join("/");return e||process.env.JEST_WORKER_ID?i:i+"?v="+Math.floor((new Date).getTime()/1e3/60/3)}}getBaseDomain(){if(this.baseDomain)return this.baseDomain;if("undefined"!=typeof window){const{host:e}=window.location,o=e.split("."),i=s[Object.keys(s).find((t=>e.includes(s[t])))];return o.includes("localhost")||o.includes("hellohealthgroup")||o.every((s=>{return e=s,!isNaN(parseFloat(e))&&isFinite(e);var e}))||!i?t:i}return t}}const i=new o;i.subPath="common",process.env.NEXT_PUBLIC_DEPLOY_LOCALE&&(i.baseDomain=s[process.env.NEXT_PUBLIC_DEPLOY_LOCALE]);export{i as C,o as G};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e}from"./tslib.es6-
|
|
1
|
+
import{_ as e}from"./tslib.es6-6116a023.js";import t,{useMemo as n,useState as a,useEffect as o}from"react";import{L as l}from"./Subot-7273a528.js";import{C as r}from"./index-0cc4495e.js";import{t as i}from"./theme-adcbd043.js";import c from"styled-components";import{I as s,g as d}from"./index-47e79c7a.js";import{T as p}from"./index-b46983f9.js";const m=c.div`
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
overflow: hidden;
|
|
4
4
|
width: ${e=>e.size}px;
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import e,{useRef as t,useEffect as a,useState as o}from"react";import{Portal as l}from"@mantine/core";import{t as n,M as i}from"./utils-de8dd6dc.js";import{x as r,y as d,z as s,A as c,B as m,C as p,g as h}from"./index.styles-f5691a90.js";import{T as u}from"./Plus-8ce4f4ec.js";import{u as g}from"./useScrollbarSize-6bc774ea.js";import{createPortal as y}from"react-dom";import b from"styled-components";import{t as f}from"./theme-adcbd043.js";import{u as v}from"./useTranslations-86e89bb6.js";import{G as x}from"./Subot-7273a528.js";import{I as C}from"./index-f22483ac.js";import{M as E,a as w}from"./index-b21e07ed.js";import{T as B}from"./index-b46983f9.js";const k=({open:t=!1,onClickOutside:a})=>e.createElement(r,{"data-open":t,onClick:a}),_=({children:o,title:i,onClose:r,open:m=!1,placement:p="left",destroyOnClose:h=!1,isPropagationEvent:g=!0,className:y})=>{const b=t();a((()=>(n(m),()=>n(!1))),[m]);const f=()=>{b.current.classList.add("slideOut"),setTimeout((()=>{r()}),800)};return!m&&h?null:e.createElement(l,null,e.createElement(d,{className:y,open:m},e.createElement(k,{open:m,onClickOutside:f}),e.createElement(s,{open:m,placement:p,ref:b,hasTitle:Boolean(i)},e.createElement("div",{className:"title"},i&&e.createElement(u,{size:"s2",weight:"semiBold"},i),e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"close-button",onClick:f},e.createElement("path",{d:"M5.99007 4.99067C5.79114 4.99072 5.59674 5.0501 5.43173 5.16121C5.26672 5.27233 5.1386 5.43013 5.06374 5.61444C4.98889 5.79875 4.9707 6.0012 5.0115 6.1959C5.05231 6.39061 5.15025 6.56872 5.29281 6.70747L10.5858 12.0004L5.29281 17.2934C5.19684 17.3855 5.12021 17.4959 5.06743 17.618C5.01464 17.7402 4.98676 17.8716 4.9854 18.0046C4.98405 18.1377 5.00926 18.2697 5.05954 18.3928C5.10983 18.516 5.1842 18.6279 5.27827 18.722C5.37235 18.8161 5.48426 18.8904 5.60743 18.9407C5.73061 18.991 5.86259 19.0162 5.99563 19.0149C6.12867 19.0135 6.2601 18.9856 6.38223 18.9328C6.50436 18.8801 6.61473 18.8034 6.70687 18.7075L11.9998 13.4145L17.2928 18.7075C17.385 18.8034 17.4953 18.8801 17.6175 18.9328C17.7396 18.9856 17.871 19.0135 18.0041 19.0149C18.1371 19.0162 18.2691 18.991 18.3922 18.9407C18.5154 18.8904 18.6273 18.8161 18.7214 18.722C18.8155 18.6279 18.8899 18.516 18.9401 18.3928C18.9904 18.2697 19.0156 18.1377 19.0143 18.0047C19.0129 17.8716 18.985 17.7402 18.9323 17.618C18.8795 17.4959 18.8028 17.3855 18.7069 17.2934L13.4139 12.0004L18.7069 6.70747C18.8514 6.567 18.9501 6.38616 18.99 6.18864C19.03 5.99112 19.0093 5.78614 18.9308 5.60055C18.8523 5.41497 18.7195 5.25744 18.5499 5.14861C18.3803 5.03978 18.1817 4.98473 17.9803 4.99067C17.7205 4.99841 17.4739 5.10699 17.2928 5.2934L11.9998 10.5864L6.70687 5.2934C6.61368 5.19761 6.50224 5.12146 6.37912 5.06947C6.25601 5.01747 6.12372 4.99068 5.99007 4.99067Z",fill:"#595959"}))),e.createElement(c,{onClick:e=>{g&&e.stopPropagation()}},o&&(e.isValidElement(o)?o:"function"==typeof o?o({internalClose:f}):null)))))},$=({value:t,options:a,className:l,direction:n="horizontal",onChange:i,isDisabled:r,siteType:d})=>{const[s,c]=o(t),h="marryBaby"===d;return e.createElement(m,{className:l,"data-direction":n},a.map(((a,o)=>e.createElement(p,{"data-selected":(t||s)===a.value,"data-is-mb":h,"data-disabled":r,key:o,onClick:()=>{var e;e=a.value,r||(c(e),i&&i(e))}},e.createElement("div",null,a.content,a.label&&e.createElement(e.Fragment,null,h?e.createElement(E,{type:"subtitle-2",color:(t||s)===a.value?f.mbColors.dark:f.mbColors.midGray},a.label):e.createElement(B,{type:"bold",color:(t||s)===a.value?"#2D87F3":"black",className:"radio-group-item-heading",size:"label1"},a.label)))))))},j="hhgcomp-modal-modal",N=h(b.div`
|
|
2
|
+
position: relative;
|
|
3
|
+
z-index: 200;
|
|
4
|
+
background-color: ${f.colors.white};
|
|
5
|
+
border-radius: ${f.borderRadius};
|
|
6
|
+
box-shadow: 0px 4px 8px ${f.colors.gray200};
|
|
7
|
+
&[data-site-type='marryBaby'] {
|
|
8
|
+
border-radius: 16px;
|
|
9
|
+
.hhg-modal__content {
|
|
10
|
+
position: relative;
|
|
11
|
+
z-index: 111;
|
|
12
|
+
height: 100%;
|
|
13
|
+
|
|
14
|
+
padding: 24px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
.hhg-modal__content {
|
|
18
|
+
position: relative;
|
|
19
|
+
z-index: 111;
|
|
20
|
+
height: 100%;
|
|
21
|
+
padding: 16px;
|
|
22
|
+
}
|
|
23
|
+
.hhg-modal__video {
|
|
24
|
+
position: relative;
|
|
25
|
+
z-index: 111;
|
|
26
|
+
height: 100%;
|
|
27
|
+
background-color: none;
|
|
28
|
+
box-shadow: none;
|
|
29
|
+
}
|
|
30
|
+
`,j),L=b.div`
|
|
31
|
+
position: fixed;
|
|
32
|
+
top: 0;
|
|
33
|
+
left: 0;
|
|
34
|
+
z-index: 201;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
width: 100%;
|
|
39
|
+
height: 100%;
|
|
40
|
+
overflow-x: hidden;
|
|
41
|
+
overflow-y: auto;
|
|
42
|
+
outline: 0;
|
|
43
|
+
visibility: hidden;
|
|
44
|
+
background-color: rgba(38, 38, 38, 0.3);
|
|
45
|
+
|
|
46
|
+
.hhg-modal__close {
|
|
47
|
+
position: absolute;
|
|
48
|
+
top: 16px;
|
|
49
|
+
right: 16px;
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
img {
|
|
52
|
+
width: 100%;
|
|
53
|
+
height: 100%;
|
|
54
|
+
border-radius: 50%;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
&[data-type='video'] {
|
|
58
|
+
z-index: 1001;
|
|
59
|
+
}
|
|
60
|
+
&[data-open='true'] {
|
|
61
|
+
visibility: visible;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.slideTop {
|
|
65
|
+
.${j} {
|
|
66
|
+
transform: translate(0, -100vh);
|
|
67
|
+
transition: all 0.5s ease;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&[data-open='true'] {
|
|
71
|
+
.${j} {
|
|
72
|
+
transform: translate(0);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&.scaleUp {
|
|
78
|
+
.${j} {
|
|
79
|
+
transform: scale(0.9);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&[data-open='true'] {
|
|
83
|
+
.${j} {
|
|
84
|
+
transition: all 0.3s ease-out;
|
|
85
|
+
transform: scale(1);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&[data-type='tail'] {
|
|
91
|
+
justify-content: flex-end;
|
|
92
|
+
.${j} {
|
|
93
|
+
width: 420px;
|
|
94
|
+
height: 100%;
|
|
95
|
+
border-radius: 0;
|
|
96
|
+
overflow: hidden auto;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
&[data-type='form'] {
|
|
100
|
+
.${j} {
|
|
101
|
+
width: 496px;
|
|
102
|
+
height: 548px;
|
|
103
|
+
max-height: 100%;
|
|
104
|
+
overflow-y: auto;
|
|
105
|
+
${i.mbDown} {
|
|
106
|
+
width: 340px;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
&[data-type='video'] {
|
|
111
|
+
.${j} {
|
|
112
|
+
height: 100%;
|
|
113
|
+
max-height: 539px;
|
|
114
|
+
${i.mbDown} {
|
|
115
|
+
height: 192px;
|
|
116
|
+
width: 100%;
|
|
117
|
+
height: 100%;
|
|
118
|
+
border-radius: ${f.borderRadius};
|
|
119
|
+
max-height: 192px;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
&[data-type='confirm'] {
|
|
124
|
+
.${j} {
|
|
125
|
+
width: 100%;
|
|
126
|
+
max-width: 407px;
|
|
127
|
+
${i.mbDown} {
|
|
128
|
+
width: calc(100% - 32px);
|
|
129
|
+
max-width: calc(100% - 32px);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
`,z=b.div`
|
|
134
|
+
position: fixed;
|
|
135
|
+
top: 0;
|
|
136
|
+
left: 0;
|
|
137
|
+
width: 100vw;
|
|
138
|
+
height: 100vh;
|
|
139
|
+
align-items: center;
|
|
140
|
+
|
|
141
|
+
&[data-open='false'] {
|
|
142
|
+
display: none;
|
|
143
|
+
}
|
|
144
|
+
&[data-type='video'] {
|
|
145
|
+
background-color: ${f.colors.secondaryDark};
|
|
146
|
+
}
|
|
147
|
+
`,T="hhg-modals",G=()=>{document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&document.body.classList.remove("hhc-modal-show")},D=()=>{document.querySelectorAll('.hhg-modal[data-open="true"]').length<1&&(document.body.style.overflow="",document.body.style.paddingRight="",document.body.classList.remove("hhc-disabled-scroll"))},M=({type:l="lead",closeIcon:n,isOpen:i=!0,onClose:r,children:d,className:s="",animationType:c="slideTop",isStaticBackdrop:m=!1,siteType:p})=>{const[h,u]=o(!1),b=t(null),{width:f}=g();if(!b.current&&h&&(b.current=document.createElement("div")),a((()=>(u(!0),()=>{u(!1),G(),D()})),[]),a((()=>{if(h){const e=(()=>{let e=document.getElementById(T);return e||(e=document.createElement("div"),e.setAttribute("id",T),document.body.append(e)),e})();return e.appendChild(b.current),()=>{e.removeChild(b.current)}}}),[h]),a((()=>{i?document.body.classList.add("hhc-modal-show"):G()}),[i]),a((()=>{i?(document.body.style.overflow="hidden",document.body.style.paddingRight=f+"px",document.body.classList.add("hhc-disabled-scroll")):D()}),[i,f]),!h)return null;const v=["hhg-modal__wrapper",s,c].filter((e=>e)).join(" ");return y(e.createElement(L,{className:v,"data-open":i,"data-type":l},!m&&e.createElement(z,{"data-open":i,onClick:r,"data-type":l}),!m&&"video"===l&&!!n&&e.createElement("div",{className:"hhg-modal__close",onClick:r},n),e.createElement(N,{className:"hhg-modal","data-open":i,"data-site-type":p},e.createElement("div",{className:"video"===l?"hhg-modal__video":"hhg-modal__content"},!!n&&"video"!==l&&e.createElement("div",{className:"hhg-modal__close",onClick:r},n),d))),b.current)},S=b.div`
|
|
148
|
+
& > :not(:last-child) {
|
|
149
|
+
margin-bottom: 8px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.gender-selector {
|
|
153
|
+
& > :not(:last-child) {
|
|
154
|
+
margin-right: 16px;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
& > div {
|
|
158
|
+
width: calc(50% - 8px);
|
|
159
|
+
|
|
160
|
+
${i.mbUp} {
|
|
161
|
+
justify-self: left;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
`,O=b($)`
|
|
166
|
+
& > div > div {
|
|
167
|
+
display: flex;
|
|
168
|
+
flex-direction: row;
|
|
169
|
+
justify-content: center;
|
|
170
|
+
align-content: center;
|
|
171
|
+
gap: 8px;
|
|
172
|
+
padding-block: 5px;
|
|
173
|
+
}
|
|
174
|
+
.radio-group-item-heading {
|
|
175
|
+
margin-top: 0;
|
|
176
|
+
}
|
|
177
|
+
`,R=({value:t,onChange:a,siteType:o})=>{const{t:l}=v(),n="marryBaby"==o;return e.createElement(S,{"data-is-marryBaby":n},n?e.createElement(w,{type:"h4",color:f.mbColors.dark},l("tools.selectBabyGender")):e.createElement(u,{size:"label2",weight:"bold",style:{marginBottom:"0.5rem"}},l("tools.selectBabyGender")),e.createElement(O,{siteType:o,options:[{value:x.Boy,label:l("gender.male"),content:n?e.createElement(C.BabyBoyMB,null):e.createElement(C.GenderChooseBoy,null)},{value:x.Girl,label:l("gender.female"),content:n?e.createElement(C.BabyGirlMB,null):e.createElement(C.GenderChooseGirl,null)}],value:t,onChange:a,className:"gender-selector"}))};export{R as B,_ as D,M,$ as R};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import a,{useState as e,useEffect as t}from"react";import{L as s}from"./Subot-
|
|
1
|
+
import a,{useState as e,useEffect as t}from"react";import{L as s}from"./Subot-7273a528.js";import{C as l}from"./index-0cc4495e.js";import{i as o,a as n,b as r,c as g,d as m,e as i,f as c,g as h,S as d,L as u,h as N}from"./utils-c799817b.js";import{I as y}from"./index-47e79c7a.js";const f=({type:f,className:w,style:p,isLightLogo:E,customSize:P,badge:b,locale:A,dateForSeasonal:L,isPro:V})=>{const[x,z]=e({isChristmas:!1,isLunarNewYear:!1,isNewYear:!1,isRamadan:!1,isVNHungKing:!1,isVN3004:!1,isLabourDay:!1});return t((()=>{if(!L||isNaN(new Date(L).getTime()))return;const a=new Date(L),e=o(a),t=n.includes(A)&&r(a),l=!t&&g(a),d=m(a),u=A===s.Vietnam&&i(a),N=A===s.Vietnam&&c(a),y=A===s.Vietnam&&h(a);z({isChristmas:e,isLunarNewYear:t,isNewYear:l,isRamadan:d,isVNHungKing:u,isVN3004:N,isLabourDay:y})}),[A,new Date(L).getDate()]),a.createElement(d,{className:w,style:p,"data-logo-is-light":E||void 0,"data-has-badge":!!b,"data-seasonal":x.isRamadan?"ramadan":x.isChristmas?"christmas":x.isLunarNewYear?"lunar-new-year":x.isNewYear?"new-year":x.isVNHungKing?"hung-king":x.isVN3004?"30-04":x.isLabourDay?"labour-day":void 0,"data-type":f},x.isChristmas?a.createElement(a.Fragment,null,a.createElement(y,{alt:"left xmas logo",src:l.getAssetPath("logo/xmas-left.png"),className:"common-logo-seasonal-left"}),a.createElement(y,{alt:"right xmas logo",src:l.getAssetPath("logo/xmas-right.png"),className:"common-logo-seasonal-right"})):x.isNewYear?a.createElement(a.Fragment,null,a.createElement(y,{alt:"left new year logo",src:l.getAssetPath("logo/new-year-left.png"),className:"common-logo-seasonal-left"}),a.createElement(y,{alt:"right new year logo",src:l.getAssetPath("logo/new-year-right.png"),className:"common-logo-seasonal-right"})):x.isLunarNewYear?a.createElement(a.Fragment,null,a.createElement(y,{alt:"left lunar new year logo",loading:"lazy",src:l.getAssetPath("logo/lunar-new-year-left.png"),className:"common-logo-seasonal-left"}),a.createElement(y,{alt:"right lunar new year logo",loading:"lazy",src:l.getAssetPath("logo/lunar-new-year-right.png"),className:"common-logo-seasonal-right"})):x.isRamadan&&"hellosehat"===f?a.createElement(a.Fragment,null,a.createElement(y,{alt:"left ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-sehat-left.png"),className:"common-logo-seasonal-left"}),a.createElement(y,{alt:"right ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-sehat-right.png"),className:"common-logo-seasonal-right"})):x.isRamadan&&"hellodoktor"===f?a.createElement(a.Fragment,null,a.createElement(y,{alt:"left ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-doktor-left.png"),className:"common-logo-seasonal-left"}),a.createElement(y,{alt:"right ramadan logo",loading:"lazy",src:l.getAssetPath("logo/ramadan-doktor-right.png"),className:"common-logo-seasonal-right"})):!x.isVNHungKing||"hellobacsi"!==f&&"marryBaby"!==f?null:a.createElement(a.Fragment,null,a.createElement(y,{alt:"Hung King logo",loading:"lazy",src:l.getAssetPath("logo/hung-king-bg.png"),className:"common-logo-seasonal-left"})),a.createElement(u,{type:f,width:null==P?void 0:P.width,height:null==P?void 0:P.height}),V?a.createElement(N,{src:l.getAssetPath("logo/pro-suffix.svg")}):null,b)};export{f as L};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as e}from"./tslib.es6-6116a023.js";import t,{useState as n,useEffect as o}from"react";import{useDebouncedValue as a}from"@mantine/hooks";import{D as i,h as s,B as r,i as l}from"./index-47e79c7a.js";const m=m=>{var{color:c,withControl:h,onChange:u,value:d,min:g,max:k,isStatic:p,containerClassName:v,containerStyle:C}=m,x=e(m,["color","withControl","onChange","value","min","max","isStatic","containerClassName","containerStyle"]);const[E,w]=n(d||g||0),[b]=a(E,i);return o((()=>{null==u||u(b)}),[b]),o((()=>{w(d)}),[d]),t.createElement(s,{className:v,style:C},h&&t.createElement(r,{type:"button",size:"sm",color:"ghost",onClick:()=>{w((e=>g&&e===g?e:e-1))}},t.createElement("svg",{width:"10",height:"10",fill:"none",viewBox:"0 0 12 3"},t.createElement("path",{d:"M1 1.004h8",stroke:c,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),t.createElement(l,Object.assign({thumbSize:21,labelAlwaysOn:!0,radius:"xl",color:c,value:E,onChange:p?()=>null:w,min:g,max:k},x,{className:"hhg-mantine-slider "+(x.className||"")})),h&&t.createElement(r,{type:"button",size:"sm",variant:"ghost",onClick:()=>{w((e=>k&&e===k?e:e+1))}},t.createElement("svg",{width:"16",height:"20",fill:"none",viewBox:"0 0 16 16"},t.createElement("path",{d:"M8 4v8M4 8h8",stroke:c,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))};export{m as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e}from"./tslib.es6-
|
|
1
|
+
import{_ as e}from"./tslib.es6-6116a023.js";import t from"react";import{Image as o}from"@mantine/core";import{DatePickerInput as r}from"@mantine/dates";import{I as s}from"./index-636381d2.js";import{L as a}from"./Subot-7273a528.js";import{C as i}from"./index-0cc4495e.js";import{M as n}from"./index-47e79c7a.js";const l=l=>{var m,{value:c,fullWidth:d=!0}=l,p=e(l,["value","fullWidth"]);return t.createElement(r,Object.assign({locale:n[process.env.UNIFY_LOCALE||a.Vietnam],valueFormat:null===(m=s[process.env.UNIFY_LOCALE||a.Vietnam])||void 0===m?void 0:m.dateFormat,size:"md",clearable:!1,popoverProps:d?{styles:{dropdown:{minWidth:"100%",display:"flex",justifyContent:"center",alignItems:"center"}}}:{},styles:{root:{position:"relative"},rightSection:{pointerEvents:"none",cursor:"default"}},rightSection:t.createElement(o,{src:i.getAssetPath(p.isMB?"MB-calendar.svg":"OutlineCalendar.svg"),width:16,height:16}),value:c},p,{className:`input-control ${(null==p?void 0:p.className)||""}`}))};export{l as D};
|