@hhgtech/hhg-components 1.28.53 → 1.28.55
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-54948d91.js +1 -0
- package/build/WhatsApp-6d901f48.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-7d133608.js → constants-152ef105.js} +1 -1
- package/build/{constants-fd5bf3b7.js → constants-a45e9439.js} +1 -1
- package/build/constants.js +1 -1
- package/build/{core-0b06f761.js → core-335c2da3.js} +1 -1
- package/build/{dataTransform-588be4da.js → dataTransform-a5319404.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/Plus-74f52e6c.js +1 -0
- package/build/esm/WhatsApp-764b872d.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-0a031398.js → constants-0683dc31.js} +1 -1
- package/build/esm/{constants-9b92b3c2.js → constants-f4c472e4.js} +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-c56845a5.js → core-93ac9e1f.js} +1 -1
- package/build/esm/{dataTransform-619c2846.js → dataTransform-756179c9.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-0d6da468.js +1 -0
- package/build/esm/{getSocialList-0578856d.js → getSocialList-68fa92f4.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-3d898caa.js → index-05e53bec.js} +1 -1
- package/build/esm/{index-789cb49a.js → index-198068d7.js} +5 -5
- package/build/esm/index-22ebe2d3.js +1 -0
- package/build/esm/index-2444997f.js +1 -0
- package/build/esm/{index-c1871567.js → index-2e200c36.js} +230 -230
- package/build/esm/{index-0fed6a98.js → index-3409f3ca.js} +1 -1
- package/build/esm/index-3d2abc54.js +1 -0
- package/build/esm/{index-69d014d8.js → index-4209d110.js} +1 -1
- package/build/esm/{index-f024488c.js → index-4d4fe4a9.js} +1 -1
- package/build/esm/index-516a950d.js +2748 -0
- package/build/esm/index-58970baf.js +1 -0
- package/build/esm/{index-0dd16ca7.js → index-737f6666.js} +1 -1
- package/build/esm/index-738bc059.js +1 -0
- package/build/esm/{index-cbd121a4.js → index-77800f03.js} +2 -2
- package/build/esm/index-77fd947f.js +1 -0
- package/build/esm/{index-7e673caa.js → index-816d81a1.js} +1 -1
- package/build/esm/{index-d3d480ec.js → index-8e0dc901.js} +6 -6
- package/build/esm/{index-e8b162fc.js → index-b2fd7f71.js} +1 -1
- package/build/esm/{index-36e0acd5.js → index-bd711d1d.js} +1 -1
- package/build/esm/index-d0efc6f7.js +1 -0
- package/build/esm/index-d9f09bce.js +113 -0
- package/build/esm/index-ea30bcd6.js +1 -0
- package/build/esm/index-f296970a.js +1 -0
- package/build/esm/{index-5bb8678e.js → index-fffa276c.js} +3 -3
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-c404ce64.js → index.styled-e7114743.js} +3 -3
- package/build/esm/{index.styles-60db99fe.js → index.styles-607132bf.js} +1 -1
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboardingV2.js +34 -34
- package/build/esm/pwg.js +5 -5
- package/build/esm/{routing-23cb4998.js → routing-9dc90ff7.js} +1 -1
- package/build/esm/subot.js +8 -8
- package/build/esm/together/components/organisms/cardReply/index.styled.d.ts +1 -1
- package/build/esm/together/components/organisms/sourceList/index.d.ts +2 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{types-fa2aa453.js → types-aa7b8d46.js} +99 -99
- package/build/esm/{types-bb2e616c.js → types-c4a3cc51.js} +199 -199
- package/build/esm/types.js +1 -1
- package/build/esm/useCategory-53558471.js +1 -0
- package/build/esm/useHealthToolCache-cfeb4f39.js +1 -0
- package/build/esm/{usePlacesAutocomplete-f9ebcd04.js → usePlacesAutocomplete-abfbd1a6.js} +1 -1
- package/build/esm/useTranslations-2bfc2d1a.js +1 -0
- package/build/esm/useUniqueId-9cd4ba87.js +1 -0
- package/build/esm/{utils-f15bf320.js → utils-230293e5.js} +1 -1
- package/build/esm/{utils-b9b2d4ee.js → utils-9cb13935.js} +1 -1
- package/build/esm/{utils-f9c12f09.js → utils-bb7cbdbf.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-f7738ae3.js +1 -0
- package/build/{getSocialList-cfb9a038.js → getSocialList-816e94c7.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-3e2d91fe.js → index-06c31aa5.js} +90 -90
- package/build/{index-2d178782.js → index-13b06ce7.js} +1 -1
- package/build/index-32c9ce71.js +1 -0
- package/build/index-3453364d.js +1 -0
- package/build/index-34b22040.js +113 -0
- package/build/{index-107f1235.js → index-36d00c1e.js} +137 -137
- package/build/index-3c0325dd.js +1 -0
- package/build/index-4fcc50ac.js +1 -0
- package/build/{index-21af0a75.js → index-6395c71d.js} +1 -1
- package/build/{index-92410ea5.js → index-654c54be.js} +1 -1
- package/build/index-695bcc12.js +1 -0
- package/build/{index-681f87b4.js → index-6fe01704.js} +1 -1
- package/build/index-93072a8a.js +1 -0
- package/build/index-9fed5846.js +1 -0
- package/build/{index-a7f24503.js → index-a0ff0c7c.js} +1 -1
- package/build/{index-25c42837.js → index-a986f5cc.js} +1 -1
- package/build/{index-71370283.js → index-abcb94df.js} +14 -14
- package/build/{index-dcd67fb7.js → index-ac495049.js} +1 -1
- package/build/{index-1f8b7209.js → index-beafcfe0.js} +4 -4
- package/build/{index-57ad8cf3.js → index-e2aa0679.js} +1 -1
- package/build/{index-24019fab.js → index-e9bcd521.js} +1 -1
- package/build/{index-1ca8b7a5.js → index-ed991afc.js} +1 -1
- package/build/index-f04d4a4d.js +1 -0
- package/build/{index-12f4c96b.js → index-f8556ecc.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-c5ae961b.js → index.styled-5c0482ab.js} +1 -1
- package/build/{index.styles-b2e0b5d9.js → index.styles-4e9a4b76.js} +5 -5
- 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-db0624e7.js → routing-20ad0d2b.js} +1 -1
- package/build/subot.js +91 -91
- package/build/together/components/organisms/cardReply/index.styled.d.ts +1 -1
- package/build/together/components/organisms/sourceList/index.d.ts +2 -1
- package/build/together.js +1 -1
- package/build/{types-50f76edb.js → types-21848dce.js} +109 -109
- package/build/{types-8abb60bb.js → types-8871614c.js} +67 -67
- package/build/types.js +1 -1
- package/build/useCategory-b48bb500.js +1 -0
- package/build/useHealthToolCache-7ab5f9c5.js +1 -0
- package/build/{usePlacesAutocomplete-eb65bc12.js → usePlacesAutocomplete-7fa143b6.js} +1 -1
- package/build/useTranslations-da1647d4.js +1 -0
- package/build/useUniqueId-10e140e3.js +1 -0
- package/build/{utils-87177d9a.js → utils-9389c98f.js} +1 -1
- package/build/utils-c0ee935c.js +1 -0
- package/build/{utils-9e94b29c.js → utils-fd32cb42.js} +2 -2
- package/build/vaccination.js +7 -7
- package/package.json +1 -1
- package/build/esm/getDynamicHealthTool-057875c3.js +0 -1
- package/build/esm/index-0a912c05.js +0 -1
- package/build/esm/index-18dfc227.js +0 -1
- package/build/esm/index-33e09a38.js +0 -1
- package/build/esm/index-76739ec7.js +0 -1
- package/build/esm/index-7939420e.js +0 -1
- package/build/esm/index-acf79819.js +0 -1
- package/build/esm/index-b1d7a64d.js +0 -1
- package/build/esm/index-bc925c3f.js +0 -113
- package/build/esm/index-d32e2867.js +0 -2748
- package/build/esm/index-f4c67fe4.js +0 -1
- package/build/esm/useCategory-9cb0ac4e.js +0 -1
- package/build/esm/useHealthToolCache-0eb5e663.js +0 -1
- package/build/esm/useTranslations-2bc5a07f.js +0 -1
- package/build/getDynamicHealthTool-0502c669.js +0 -1
- package/build/index-0ff56596.js +0 -1
- package/build/index-144bf42a.js +0 -1
- package/build/index-4af7bf88.js +0 -1
- package/build/index-61146c84.js +0 -1
- package/build/index-71744665.js +0 -1
- package/build/index-8ceafed8.js +0 -1
- package/build/index-f326950e.js +0 -113
- package/build/index-ff24ece7.js +0 -1
- package/build/useCategory-fd3d1b53.js +0 -1
- package/build/useHealthToolCache-2cdca558.js +0 -1
- package/build/useTranslations-42c1a71b.js +0 -1
- package/build/utils-ffc6f1f2.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-e235929e.js → BMI_BOYS.percentile.monthly-d3c686ae.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-9b7603ee.js → BMI_BOYS.percentile.weekly-b1684768.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-199d1a08.js → BMI_BOYS.percentile.yearly-0238ac12.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-cb8ad77d.js → BMI_BOYS.zscore.monthly-94cb0748.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-b8a0fcd3.js → BMI_BOYS.zscore.weekly-f50db573.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-c66e2c6c.js → BMI_BOYS.zscore.yearly-a98f3c96.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-048d5b73.js → BMI_GIRLS.percentile.monthly-0b319364.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-d96053b8.js → BMI_GIRLS.percentile.weekly-f1518ef8.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-04792048.js → BMI_GIRLS.percentile.yearly-3b178d54.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-f1c3dd5f.js → BMI_GIRLS.zscore.monthly-5e9d2df3.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-335c1ecb.js → BMI_GIRLS.zscore.weekly-d754160f.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-b5619a2c.js → BMI_GIRLS.zscore.yearly-8a183bde.js} +0 -0
- /package/build/{ChevronDown-3761180a.js → ChevronDown-15cca681.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-a51cc7f0.js → HEAD CIRCUM_BOYS.percentile.monthly-2c94f81c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-04bbaaac.js → HEAD CIRCUM_BOYS.percentile.weekly-0cae2452.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-57a3dfd8.js → HEAD CIRCUM_BOYS.percentile.yearly-74bd6cff.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-f248d812.js → HEAD CIRCUM_BOYS.zscore.monthly-3b47563f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-c200fd52.js → HEAD CIRCUM_BOYS.zscore.weekly-b997313c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-207dd9eb.js → HEAD CIRCUM_BOYS.zscore.yearly-06d04ada.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-fd5c48b6.js → HEAD CIRCUM_GIRLS.percentile.monthly-b8241562.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-1ec55d6e.js → HEAD CIRCUM_GIRLS.percentile.weekly-4e9b860d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-06dbef0f.js → HEAD CIRCUM_GIRLS.percentile.yearly-9121c08b.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-5a4f509e.js → HEAD CIRCUM_GIRLS.zscore.monthly-f0188d6b.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-e381ddb1.js → HEAD CIRCUM_GIRLS.zscore.weekly-a9911f13.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-fe82d952.js → HEAD CIRCUM_GIRLS.zscore.yearly-f71d641f.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-14fb0c06.js → HEIGHT_BOYS.percentile.monthly-d3768455.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-45c31a3c.js → HEIGHT_BOYS.percentile.weekly-96a73428.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-c9c01d1a.js → HEIGHT_BOYS.percentile.yearly-d839fd3b.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-bbfa1555.js → HEIGHT_BOYS.zscore.monthly-64ce2640.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-5b310b11.js → HEIGHT_BOYS.zscore.weekly-312366e4.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-51ae9672.js → HEIGHT_BOYS.zscore.yearly-16e829f4.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-bf07f71e.js → HEIGHT_GIRLS.percentile.monthly-1c21967d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-9fb04885.js → HEIGHT_GIRLS.percentile.weekly-281fe154.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-ed746de7.js → HEIGHT_GIRLS.percentile.yearly-c6bd690d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-65183a60.js → HEIGHT_GIRLS.zscore.monthly-75de2b7c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-18a779d2.js → HEIGHT_GIRLS.zscore.weekly-0bc77aa6.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-9d4550ba.js → HEIGHT_GIRLS.zscore.yearly-ef5ab1a5.js} +0 -0
- /package/build/{Subot-72d97891.js → Subot-75abd57a.js} +0 -0
- /package/build/{Visible-2307e4fe.js → Visible-33f6b1dc.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-5ce99f67.js → WEIGHT_BOYS.percentile.monthly-56ec27d0.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-9fcbd81e.js → WEIGHT_BOYS.percentile.weekly-5b97ff78.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-d4324ef7.js → WEIGHT_BOYS.percentile.yearly-b388b157.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-73ba22ee.js → WEIGHT_BOYS.zscore.monthly-3e16d435.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-5dc2ef1e.js → WEIGHT_BOYS.zscore.weekly-eabb91cd.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-ebae660d.js → WEIGHT_BOYS.zscore.yearly-da2f6096.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-f9f9003b.js → WEIGHT_GIRLS.percentile.monthly-c46836f5.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-068509cf.js → WEIGHT_GIRLS.percentile.weekly-4b08038d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-82ea7d8e.js → WEIGHT_GIRLS.percentile.yearly-4cd46ed1.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-4b8f3df6.js → WEIGHT_GIRLS.zscore.monthly-60b75079.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-14936f43.js → WEIGHT_GIRLS.zscore.weekly-3f61408b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-82a87eac.js → WEIGHT_GIRLS.zscore.yearly-319edc8c.js} +0 -0
- /package/build/{animation-505ab7ab.js → animation-c29cc5bc.js} +0 -0
- /package/build/{cookieHelper-bef66b95.js → cookieHelper-1eaa42d7.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-814c52b5.js → BMI_BOYS.percentile.monthly-20892a54.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-58e86534.js → BMI_BOYS.percentile.weekly-5f79e22e.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-7bec47c8.js → BMI_BOYS.percentile.yearly-12936223.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-0f9f022f.js → BMI_BOYS.zscore.monthly-60708e68.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-f55af0b2.js → BMI_BOYS.zscore.weekly-c8a613c5.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-20be4d08.js → BMI_BOYS.zscore.yearly-a9bd8507.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-890e2a85.js → BMI_GIRLS.percentile.monthly-41dd2d7c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-7ea454ef.js → BMI_GIRLS.percentile.weekly-d067d41b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-1517707b.js → BMI_GIRLS.percentile.yearly-66a2783f.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-e43e9ffa.js → BMI_GIRLS.zscore.monthly-c815fa18.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-939898ff.js → BMI_GIRLS.zscore.weekly-7589a0a0.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-ef5924bb.js → BMI_GIRLS.zscore.yearly-b7a10a85.js} +0 -0
- /package/build/esm/{ChevronDown-b53abff2.js → ChevronDown-b3e02130.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-7770b53a.js → HEAD CIRCUM_BOYS.percentile.monthly-626ceeeb.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-ff7a3dc2.js → HEAD CIRCUM_BOYS.percentile.weekly-a5fdcc13.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-ef8b36bd.js → HEAD CIRCUM_BOYS.percentile.yearly-fd3d54b5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-fb258a36.js → HEAD CIRCUM_BOYS.zscore.monthly-5c54f379.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-616cc3c3.js → HEAD CIRCUM_BOYS.zscore.weekly-c58948a0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-b7b7fa60.js → HEAD CIRCUM_BOYS.zscore.yearly-ab4a588a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-60a12758.js → HEAD CIRCUM_GIRLS.percentile.monthly-12b33b8e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-000da76b.js → HEAD CIRCUM_GIRLS.percentile.weekly-a2d59338.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-283d374f.js → HEAD CIRCUM_GIRLS.percentile.yearly-44dbecdb.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-fe73c068.js → HEAD CIRCUM_GIRLS.zscore.monthly-58a30ace.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-939b7e36.js → HEAD CIRCUM_GIRLS.zscore.weekly-36428056.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-c3bdf286.js → HEAD CIRCUM_GIRLS.zscore.yearly-f8600e66.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-ec418027.js → HEIGHT_BOYS.percentile.monthly-0ac98831.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-e39a4a4d.js → HEIGHT_BOYS.percentile.weekly-83a94654.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-f1961284.js → HEIGHT_BOYS.percentile.yearly-3cee73b2.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-b32a1aa4.js → HEIGHT_BOYS.zscore.monthly-26ec47f8.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-1971f014.js → HEIGHT_BOYS.zscore.weekly-b92229c6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-930c129c.js → HEIGHT_BOYS.zscore.yearly-b220649f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-ef97754d.js → HEIGHT_GIRLS.percentile.monthly-6b12dbaf.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-72638068.js → HEIGHT_GIRLS.percentile.weekly-a565b8f2.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-99bc2945.js → HEIGHT_GIRLS.percentile.yearly-22d15b4b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-adba5b3d.js → HEIGHT_GIRLS.zscore.monthly-a98b969a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-846fb103.js → HEIGHT_GIRLS.zscore.weekly-71d38c7d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-7ffff2a5.js → HEIGHT_GIRLS.zscore.yearly-5d6fddfa.js} +0 -0
- /package/build/esm/{Subot-5b04d983.js → Subot-851fd333.js} +0 -0
- /package/build/esm/{Visible-369adf3a.js → Visible-2cdedc33.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-63d5a69d.js → WEIGHT_BOYS.percentile.monthly-607e4448.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-eef6b61e.js → WEIGHT_BOYS.percentile.weekly-253a7a81.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-b7379540.js → WEIGHT_BOYS.percentile.yearly-b83e8e14.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-354156ce.js → WEIGHT_BOYS.zscore.monthly-b5a3665a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-57053bc6.js → WEIGHT_BOYS.zscore.weekly-b9548729.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-149add52.js → WEIGHT_BOYS.zscore.yearly-ea749e5d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-5b429487.js → WEIGHT_GIRLS.percentile.monthly-1b99019f.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-26d545cd.js → WEIGHT_GIRLS.percentile.weekly-ca6f0a48.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-a921fb7c.js → WEIGHT_GIRLS.percentile.yearly-90000ca0.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-7e79e608.js → WEIGHT_GIRLS.zscore.monthly-b398da08.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-02132679.js → WEIGHT_GIRLS.zscore.weekly-14c3c82b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-1f0a9481.js → WEIGHT_GIRLS.zscore.yearly-02ffbc4f.js} +0 -0
- /package/build/esm/{animation-7a514429.js → animation-40bcca6a.js} +0 -0
- /package/build/esm/{cookieHelper-3e2dd83c.js → cookieHelper-0c3dcabd.js} +0 -0
- /package/build/esm/{index-84b32a2c.js → index-5e61790d.js} +0 -0
- /package/build/esm/{index-6b8127b1.js → index-6deb876e.js} +0 -0
- /package/build/esm/{index-a491e779.js → index-df9619b8.js} +0 -0
- /package/build/esm/{isProduction-4d356afc.js → isProduction-d32c9de6.js} +0 -0
- /package/build/esm/{localizeNumberFormat-d600cc85.js → localizeNumberFormat-0d035fa2.js} +0 -0
- /package/build/esm/{normalizeLink-b02efc99.js → normalizeLink-b5dd4ea3.js} +0 -0
- /package/build/esm/{number-a6908286.js → number-b2244c1b.js} +0 -0
- /package/build/esm/{paths-8c55eb7a.js → paths-eaed7507.js} +0 -0
- /package/build/esm/{theme-a46125e9.js → theme-868b0ca0.js} +0 -0
- /package/build/esm/{translationsContext-e64cddb1.js → translationsContext-6c25aedd.js} +0 -0
- /package/build/esm/{tslib.es6-8ed6f2bc.js → tslib.es6-ba9d8cd4.js} +0 -0
- /package/build/esm/{types-a77a7338.js → types-e56d1f3f.js} +0 -0
- /package/build/esm/{useIsInit-0fd92365.js → useIsInit-65eb966d.js} +0 -0
- /package/build/esm/{useOutsideClick-50785e38.js → useOutsideClick-0d9abe5e.js} +0 -0
- /package/build/esm/{useScrollbarSize-8ac89784.js → useScrollbarSize-547afb52.js} +0 -0
- /package/build/esm/{utils-a62a9933.js → utils-16053cd5.js} +0 -0
- /package/build/{index-f3a53fa7.js → index-2e493e48.js} +0 -0
- /package/build/{index-3a31e805.js → index-8f4c566f.js} +0 -0
- /package/build/{index-0162490f.js → index-eebbbb0a.js} +0 -0
- /package/build/{isProduction-26617223.js → isProduction-1b27c7e8.js} +0 -0
- /package/build/{localizeNumberFormat-77a3ca30.js → localizeNumberFormat-3fd4984c.js} +0 -0
- /package/build/{normalizeLink-799ae6be.js → normalizeLink-8d5414b7.js} +0 -0
- /package/build/{number-2634696d.js → number-c8e16fcd.js} +0 -0
- /package/build/{paths-559a164d.js → paths-f4b000d7.js} +0 -0
- /package/build/{theme-38307b0e.js → theme-645eae3b.js} +0 -0
- /package/build/{translationsContext-4e01740c.js → translationsContext-25ed50e4.js} +0 -0
- /package/build/{tslib.es6-b2bdb663.js → tslib.es6-f3854ac2.js} +0 -0
- /package/build/{types-a7525454.js → types-a61d3975.js} +0 -0
- /package/build/{useIsInit-cbceac64.js → useIsInit-0b395431.js} +0 -0
- /package/build/{useOutsideClick-abe89ee9.js → useOutsideClick-ed38ff08.js} +0 -0
- /package/build/{useScrollbarSize-adb34bd6.js → useScrollbarSize-c9cfb1ec.js} +0 -0
- /package/build/{utils-41c0f011.js → utils-ac610998.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./tslib.es6-
|
|
1
|
+
import{a as t}from"./tslib.es6-ba9d8cd4.js";import{i as e}from"./isProduction-d32c9de6.js";const a={},i=t=>{if("undefined"!=typeof window){let a;try{a=JSON.parse(localStorage.getItem((e?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return a||{}}return a[t]},o=(t,i)=>{try{"undefined"!=typeof window?localStorage.setItem((e?"":"staging_")+"hhg-cache-"+t,JSON.stringify({data:i,time:Date.now()})):a[t]={data:i,time:Date.now()}}catch(t){}},n=(e,a,n,r=9e5)=>t(void 0,void 0,void 0,(function*(){const t=i(e);if(t&&t.data&&t.time&&Date.now()-t.time<r)return t.data;if(a){const t=yield a();return n&&!n(t)||o(e,t),t}return null}));export{i as a,n as g,o as s};
|
|
@@ -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-16053cd5.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-a46125e9.js";export{c as Constants}from"./constants-9b92b3c2.js";export{t as Types}from"./types-a77a7338.js";import"./index-36e0acd5.js";import"date-fns/locale";import"./Subot-5b04d983.js";import"./isProduction-4d356afc.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-868b0ca0.js";export{c as Constants}from"./constants-f4c472e4.js";export{t as Types}from"./types-e56d1f3f.js";import"./index-bd711d1d.js";import"date-fns/locale";import"./Subot-851fd333.js";import"./isProduction-d32c9de6.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-738bc059.js";import"react";import"./index-816d81a1.js";import"./tslib.es6-ba9d8cd4.js";import"./index-d9f09bce.js";import"@mantine/core";import"@mantine/hooks";import"./theme-868b0ca0.js";import"./index-b2fd7f71.js";import"./index-bd711d1d.js";import"date-fns/locale";import"./Subot-851fd333.js";import"./isProduction-d32c9de6.js";import"dayjs";import"./utils-16053cd5.js";import"styled-components";import"@mantine/carousel";import"./Plus-74f52e6c.js";import"classnames";import"./index-df9619b8.js";import"@mantine/dates";import"./useTranslations-2bfc2d1a.js";import"./translationsContext-6c25aedd.js";import"string-format";import"./index-737f6666.js";import"./utils-230293e5.js";import"./index-3409f3ca.js";import"./index.styled-e7114743.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-b2fd7f71.js";import"./index-bd711d1d.js";import"date-fns/locale";import"./Subot-851fd333.js";import"./isProduction-d32c9de6.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./tslib.es6-ba9d8cd4.js";import{n as o}from"./normalizeLink-b5dd4ea3.js";import{c as i}from"./routing-9dc90ff7.js";import{g as l}from"./core-93ac9e1f.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 a="tl-PH"===l?"lang=fil":"";let s=[];try{const r=yield fetch(o(`${i(l)}/wp-json/api/healthtools?ismenu=0${a?"&"+a:""}`)).then((t=>t.json()));s=(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 s}catch(t){console.error(t)}})),a=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{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-851fd333.js";import{C}from"./index-b2fd7f71.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-2bfc2d1a.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-547afb52.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-53558471.js";export{u as useHealthToolsCache}from"./useHealthToolCache-cfeb4f39.js";export{u as useIsInit}from"./useIsInit-65eb966d.js";export{i as initSharedOutSideClickListener,a as useOutsideClick,u as useSharedOutsideClick}from"./useOutsideClick-0d9abe5e.js";export{u as useInitialMount,a as useUniqueId}from"./useUniqueId-9cd4ba87.js";import"react";import"./translationsContext-6c25aedd.js";import"string-format";import"lodash/debounce";import"./tslib.es6-ba9d8cd4.js";import"./cookieHelper-0c3dcabd.js";import"./Subot-851fd333.js";import"./getDynamicHealthTool-0d6da468.js";import"./normalizeLink-b5dd4ea3.js";import"./routing-9dc90ff7.js";import"./index-bd711d1d.js";import"date-fns/locale";import"./isProduction-d32c9de6.js";import"./core-93ac9e1f.js";
|
package/build/esm/i18n.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as s}from"./translationsContext-
|
|
1
|
+
import{T as s}from"./translationsContext-6c25aedd.js";export{T as TranslationsContext}from"./translationsContext-6c25aedd.js";import o,{useState as e,useEffect as r,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 d from"./i18n-values/vi-VN_MB.js";import p from"./i18n-values/zh-TW.js";const f={"en-PH":i,"vi-VN":c,"hi-IN":n,"id-ID":a,"ms-MY":m,"my-MM":v,"km-KH":l,"zh-TW":p,"th-TH":j,"tl-PH":u,"vi-VN_MB":d},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,d]=e((()=>Object.assign(Object.assign({},u),m?f[i]:{})));r((()=>{d(Object.assign(Object.assign({},u),m?f[i]:{}))}),[m,i]);const p=t((()=>c?{locale:i,values:c}:null),[i,c]);return r((()=>{j&&Object.keys(c).length&&j(c)}),[c]),o.createElement(s.Provider,{value:p},p?l:v)};export{h as TranslationsProvider,f as translationsMap};
|
package/build/esm/i18nV2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as e}from"./translationsContext-
|
|
1
|
+
import{T as e}from"./translationsContext-6c25aedd.js";export{T as TranslationsContext}from"./translationsContext-6c25aedd.js";import t,{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 t.createElement(e.Provider,{value:l},n)};export{a as TranslationsProvider};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e,{useRef as a,useState as r,useEffect as t}from"react";import{I as i}from"./index-
|
|
1
|
+
import e,{useRef as a,useState as r,useEffect as t}from"react";import{I as i}from"./index-d0efc6f7.js";import{u as o}from"./useTranslations-2bfc2d1a.js";import{format as n}from"date-fns";import c from"react-day-picker/DayPickerInput";import s from"styled-components";import{t as d}from"./theme-868b0ca0.js";var l="tliWyii";const p=({className:a,theme:r,hideText:t})=>{const{t:n}=o();return e.createElement("div",{className:`${l} ${a}`},e.createElement(i.Spinner,{isMarryBaby:"marryBaby"===r}),!t&&n("loading"))},y={"vi-VN":["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],"id-ID":["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],"ms-MY":["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],"km-KH":["មករា","ខែកុម្ភៈ","មីនា","ខែមេសា","ឧសភា","មិថុនា","ខែកក្កដា","សីហា","ខែកញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"],"en-PH":["January","February","March","April","May","June","July","August","September","October","November","December"],"th-TH":["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","อาจ","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],"my-MM":["ဇန်နဝါရီလ","ဖေဖော်ဝါရီလ","မတ်လ","ပြီလ","မေလ","ဇွန","ဇူလိုင်လ","သြဂုတ်လ","စက်တင်ဘာ","အောက်တိုဘာ","နိုဝင်ဘာ","ဒီဇင်ဘာ"],"zh-TW":["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],"hi-IN":["जनवरी","फ़रवरी","जुलूस","अप्रैल","मई","जून","जुलाई","अगस्त","सितंबर","अक्टूबर","नवंबर","दिसंबर"]},u=s.div`
|
|
2
2
|
.pickerContainer {
|
|
3
3
|
position: relative;
|
|
4
4
|
padding-top: 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e}from"./tslib.es6-
|
|
1
|
+
import{_ as e}from"./tslib.es6-ba9d8cd4.js";import t,{useMemo as n,useState as a,useEffect as o}from"react";import{L as l}from"./Subot-851fd333.js";import{C as r}from"./index-b2fd7f71.js";import{t as i}from"./theme-868b0ca0.js";import c from"styled-components";import{I as d,g as s}from"./index-d9f09bce.js";import{T as p}from"./index-77fd947f.js";const m=c.div`
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
overflow: hidden;
|
|
4
4
|
width: ${e=>e.size}px;
|
|
@@ -36,15 +36,15 @@ import{_ as e}from"./tslib.es6-8ed6f2bc.js";import t,{useMemo as n,useState as a
|
|
|
36
36
|
& > * {
|
|
37
37
|
pointer-events: none;
|
|
38
38
|
}
|
|
39
|
-
`,b=[l.Myanmar,l.Taiwan],h=c((a=>{var{icon:o,name:l,className:c,locale:
|
|
39
|
+
`,b=[l.Myanmar,l.Taiwan],h=c((a=>{var{icon:o,name:l,className:c,locale:s="en-PH",dataEventCategory:h,dataEventAction:v,dataEventLabel:u,onSelect:x}=a,f=e(a,["icon","name","className","locale","dataEventCategory","dataEventAction","dataEventLabel","onSelect"]);const k=n((()=>null==c?void 0:c.includes("selected-week-pill")),[c]);return t.createElement(g,Object.assign({onClick:x,className:c?"week-pill".concat(" non-pointer-event-child ",c):"week-pill non-pointer-event-child","data-event-category":h,"data-event-action":v,"data-event-label":u},f),t.createElement(m,{size:64,iconSize:40,backgroundColor:i.colors.white},t.createElement(d,{src:o||r.getAssetPath("week_default.png"),alt:`week ${l}`})),k?t.createElement(p,Object.assign({type:"semiBold",size:"n1",color:i.colors.gray800},b.includes(s)&&{style:{fontSize:"10px"}}),l):t.createElement(p,Object.assign({size:"n1",color:i.colors.gray600},b.includes(s)&&{style:{fontSize:"10px"}}),l))}))`
|
|
40
40
|
box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.08);
|
|
41
|
-
`,v=c(
|
|
41
|
+
`,v=c(s.Slide)`
|
|
42
42
|
cursor: pointer;
|
|
43
43
|
> div * {
|
|
44
44
|
pointer-events: none;
|
|
45
45
|
}
|
|
46
|
-
`,u=c(
|
|
46
|
+
`,u=c(s)`
|
|
47
47
|
.centerred-pill-wrapper {
|
|
48
48
|
padding: 16px 0;
|
|
49
49
|
}
|
|
50
|
-
`,x=n=>{var{data:r,isMobile:i,onSlideChange:c,pillProps:
|
|
50
|
+
`,x=n=>{var{data:r,isMobile:i,onSlideChange:c,pillProps:d,locale:s=l.Vietnam,blurFromIndex:p,blurLength:m}=n,g=e(n,["data","isMobile","onSlideChange","pillProps","locale","blurFromIndex","blurLength"]);const b={withControls:!i,slideGap:16,blurFromCenter:!0,blurFromIndex:p||(i?2:4),blurLength:m||(i?1:3),onSlideChange:c},[x,k]=a("");return o((()=>{k(window.location.href)}),[]),t.createElement(u,Object.assign({},b,g,{selectSlideWhenClick:!0,previousControlIcon:t.createElement(f,{currentUrl:x}),nextControlIcon:t.createElement(f,{currentUrl:x,isRight:!0})}),(e=>r.map(((n,a)=>t.createElement(v,Object.assign({key:a,onClick:c,"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Click","data-event-label":x,innerSlideProps:{"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Click","data-event-label":x}},d),t.createElement("div",{className:"centerred-pill-wrapper"},t.createElement(h,{"data-event-category":"Health Tool","data-event-action":"Fetal Week Click","data-event-label":x,locale:s,name:n.name,icon:n.icon,className:a===e?"selected-week-pill pointer-event-child-none":"pointer-event-child-none"})))))))},f=({isRight:e,currentUrl:n})=>t.createElement("svg",{viewBox:"0 0 15 15",fill:"none",width:"16",height:"16",style:e?{transform:"rotate(-90deg)"}:{transform:"rotate(90deg)"},"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Arrow Click","data-event-label":n,className:"pointer-event-child-none"},t.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}));export{x as P};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as e}from"./tslib.es6-ba9d8cd4.js";import t from"react";import{Modal as s,CloseButton as l}from"@mantine/core";import{C as o}from"./index-b2fd7f71.js";import{j as a}from"./index-d9f09bce.js";import{T as n}from"./Plus-74f52e6c.js";const r=r=>{var{title:i,styles:m}=r,c=e(r,["title","styles"]);const{classes:d}=a(void 0,{name:"Modal",styles:m});return t.createElement(t.Fragment,null,t.createElement(s,Object.assign({centered:!0,classNames:d},c,{withCloseButton:!1,title:c.withCloseButton&&t.createElement(t.Fragment,null,t.createElement(n,{size:"s2",weight:"semiBold",as:"span"},i),t.createElement(l,Object.assign({},c.closeButtonProps,{onClick:()=>{var e;return null===(e=c.onClose)||void 0===e?void 0:e.call(c)},sx:{":focus":{outline:0}}}),t.createElement("img",{loading:"lazy",className:"mantine-Modal-close",src:o.getAssetPath("CloseModal.svg"),style:{width:"16px"}})))})))};export{r as M};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,_ as t}from"./tslib.es6-ba9d8cd4.js";import s,{useReducer as a,useState as r,useEffect as i}from"react";import{Stack as n,Input as c}from"@mantine/core";import{d as o,S as d}from"./index-d9f09bce.js";import"@mantine/dates";import{c as l}from"./index-bd711d1d.js";import{L as p}from"./Subot-851fd333.js";import"./index-b2fd7f71.js";import"./Plus-74f52e6c.js";import"./theme-868b0ca0.js";import{u as v}from"./useTranslations-2bfc2d1a.js";import"@mantine/hooks";import"./utils-16053cd5.js";import{M as m}from"./utils-9cb13935.js";const u={provinceByName:{},provinces:[],districts:[],wards:[],selectedProvince:"",selectedDistrict:"",selectedWard:""},b=(e,t)=>{switch(t.type){case"SET_DATA":return Object.assign(Object.assign({},e),t.payload);case"SET_DISTRICTS":return Object.assign(Object.assign({},e),{districts:t.payload});case"SET_WARDS":return Object.assign(Object.assign({},e),{wards:t.payload});case"SELECT_PROVINCE":return Object.assign(Object.assign({},e),{selectedProvince:t.payload,selectedDistrict:"",selectedWard:""});case"SELECT_DISTRICT":return Object.assign(Object.assign({},e),{selectedDistrict:t.payload,selectedWard:""});case"SELECT_WARD":return Object.assign(Object.assign({},e),{selectedWard:t.payload});default:return e}},h=({provinces:t})=>{const[s,n]=a(b,u),{provinceByName:c,provinces:o,districts:d,wards:v,selectedProvince:h,selectedDistrict:y,selectedWard:E}=s,[g,j]=r();i((()=>{e(void 0,void 0,void 0,(function*(){var e,s,a,r;try{const i=yield fetch((r=process.env.UNIFY_LOCALE||p.Vietnam,`${l}/cities-data-${m[r]}.json`)).then((e=>e.json()));j(i);const{list:c}=i,o=t?((e,t)=>{const s={};for(const[,e]of Object.entries(t)){const{id:t}=e;t&&(s[t]=e)}const a={};return e.map((e=>{a[e.name]=s[e.id]})),a})(t,c):c,d=Object.keys(o),v=Object.keys((null===(e=c[d[0]])||void 0===e?void 0:e.list)||{}),u=Object.keys((null===(a=null===(s=c[d[0]])||void 0===s?void 0:s[v[0]])||void 0===a?void 0:a.list)||{});n({type:"SET_DATA",payload:{provinceByName:o,provinces:d,districts:v,wards:u}})}catch(e){console.error("Error fetching address data:",e)}}))}),[process.env.UNIFY_LOCALE]);return{provinces:o,districts:d,wards:v,selectedProvince:h,selectedDistrict:y,selectedWard:E,handleProvinceChange:e=>{var t;const s=Object.keys((null===(t=c[e])||void 0===t?void 0:t.list)||{});n({type:"SET_DISTRICTS",payload:s}),n({type:"SET_WARDS",payload:[]}),n({type:"SELECT_PROVINCE",payload:e})},handleDistrictChange:e=>{var t,s;const a=Object.keys((null===(s=null===(t=c[h])||void 0===t?void 0:t.list[e])||void 0===s?void 0:s.list)||{});n({type:"SET_WARDS",payload:a}),n({type:"SELECT_DISTRICT",payload:e})},handleWardChange:e=>{n({type:"SELECT_WARD",payload:e})}}},y=e=>{var{error:a,provinces:l,placeholder:p}=e,m=t(e,["error","provinces","placeholder"]);const{t:u}=v(),{provinces:b,districts:y,wards:E,selectedProvince:g,selectedDistrict:j,selectedWard:C,handleProvinceChange:S,handleDistrictChange:T,handleWardChange:O}=h({provinces:l}),[f,D]=r("");return i((()=>{g&&j&&C&&f?m.onChange({selectedProvince:g,selectedDistrict:j,selectedWard:C,extraInfo:f}):m.onChange(null)}),[g,j,C,f]),s.createElement(o.Wrapper,Object.assign({withAsterisk:!0},m),s.createElement(n,null,s.createElement(d,{placeholder:(null==p?void 0:p.province)||u("onboarding.similac.input.city"),data:l?b:b.sort(),searchable:!0,onChange:S,value:g}),s.createElement(d,{placeholder:(null==p?void 0:p.district)||u("onboarding.similac.input.district"),data:y.sort(),searchable:!0,onChange:T,value:j,disabled:!g}),s.createElement(d,{placeholder:(null==p?void 0:p.ward)||u("onboarding.similac.input.ward"),searchable:!0,data:E.sort(),value:C,onChange:O,disabled:!g||!j}),s.createElement(o,{placeholder:(null==p?void 0:p.address)||u("onboarding.similac.input.no"),disabled:!g||!j||!C,value:f,onChange:D,style:{marginBottom:0}})),s.createElement(c.Error,{size:"md"},a))};export{y as A};
|