@hhgtech/hhg-components 1.29.13 → 1.29.14
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/adapters.js +15 -15
- package/build/babyGrowth.js +78 -78
- package/build/cache.js +3 -3
- package/build/care.js +17 -17
- package/build/components/babyGrowth/babyGrowthForm/context.d.ts +11 -0
- package/build/components/babyGrowth/babyGrowthForm/index.d.ts +3 -2
- package/build/components/babyGrowth/babyGrowthForm/layout/horizonal/index.d.ts +2 -0
- package/build/components/babyGrowth/babyGrowthForm/layout/horizonal/index.styles.d.ts +20 -0
- package/build/components/babyGrowth/babyGrowthForm/layout/vertical/index.d.ts +2 -0
- package/build/components/babyGrowth/babyGrowthForm/{index.styled.d.ts → layout/vertical/index.styled.d.ts} +1 -5
- package/build/components/molecules/embeddedHeathToolCards/baby-growth/context.d.ts +12 -0
- package/build/components/molecules/embeddedHeathToolCards/baby-growth/form.d.ts +3 -0
- package/build/components/molecules/embeddedHeathToolCards/baby-growth/index.d.ts +13 -9
- package/build/components/molecules/embeddedHeathToolCards/baby-growth/index.styled.d.ts +1 -7
- package/build/components/molecules/index.d.ts +1 -1
- package/build/components.js +56 -56
- package/build/{constants-4010d1af.js → constants-44f09550.js} +2 -2
- package/build/{constants-c0da7bfd.js → constants-bec2b168.js} +2 -2
- package/build/constants.js +3 -3
- package/build/{core-a35dc806.js → core-5f047bdf.js} +2 -2
- package/build/{dataTransform-87070357.js → dataTransform-ac6d45b7.js} +1 -1
- package/build/ecom.js +6 -6
- package/build/esm/adapters.js +15 -15
- package/build/esm/babyGrowth.js +79 -79
- package/build/esm/cache.js +3 -3
- package/build/esm/care.js +17 -17
- package/build/esm/components/babyGrowth/babyGrowthForm/context.d.ts +11 -0
- package/build/esm/components/babyGrowth/babyGrowthForm/index.d.ts +3 -2
- package/build/esm/components/babyGrowth/babyGrowthForm/layout/horizonal/index.d.ts +2 -0
- package/build/esm/components/babyGrowth/babyGrowthForm/layout/horizonal/index.styles.d.ts +20 -0
- package/build/esm/components/babyGrowth/babyGrowthForm/layout/vertical/index.d.ts +2 -0
- package/build/esm/components/babyGrowth/babyGrowthForm/{index.styled.d.ts → layout/vertical/index.styled.d.ts} +1 -5
- package/build/esm/components/molecules/embeddedHeathToolCards/baby-growth/context.d.ts +12 -0
- package/build/esm/components/molecules/embeddedHeathToolCards/baby-growth/form.d.ts +3 -0
- package/build/esm/components/molecules/embeddedHeathToolCards/baby-growth/index.d.ts +13 -9
- package/build/esm/components/molecules/embeddedHeathToolCards/baby-growth/index.styled.d.ts +1 -7
- package/build/esm/components/molecules/index.d.ts +1 -1
- package/build/esm/components.js +56 -56
- package/build/esm/{constants-d85c8175.js → constants-2b1bb3d5.js} +2 -2
- package/build/esm/{constants-5f4f1840.js → constants-aada67b1.js} +2 -2
- package/build/esm/constants.js +3 -3
- package/build/esm/{core-47bc5877.js → core-f5593c2b.js} +2 -2
- package/build/esm/{dataTransform-8cd6645d.js → dataTransform-a5fba5bf.js} +1 -1
- package/build/esm/ecom.js +6 -6
- package/build/esm/footer.js +18 -18
- package/build/esm/gAssets.js +4 -4
- package/build/esm/{getDynamicHealthTool-ac9a4ede.js → getDynamicHealthTool-25c78bbc.js} +4 -4
- package/build/esm/{getSocialList-dac36ade.js → getSocialList-c6d6ab1a.js} +2 -2
- package/build/esm/hooks.js +17 -17
- package/build/esm/i18n/translationKeys.d.ts +1 -1
- package/build/esm/i18n-values/en-PH.js +1 -0
- package/build/esm/i18n-values/hi-IN.js +2 -1
- package/build/esm/i18n-values/id-ID.js +2 -1
- package/build/esm/i18n-values/km-KH.js +2 -1
- package/build/esm/i18n-values/ms-MY.js +2 -1
- package/build/esm/i18n-values/my-MM.js +2 -1
- package/build/esm/i18n-values/th-TH.js +2 -1
- package/build/esm/i18n-values/tl-PH.js +2 -1
- package/build/esm/i18n-values/vi-VN.js +1 -0
- package/build/esm/i18n-values/vi-VN_MB.js +1 -0
- package/build/esm/i18n-values/zh-TW.js +2 -1
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-9c3707bf.js → index-20d65b0b.js} +3 -3
- package/build/esm/{index-b3b2700b.js → index-2d061fb3.js} +2 -2
- package/build/esm/{index-9a5847c5.js → index-2d57f6e4.js} +12 -12
- package/build/esm/{index-3d204d3f.js → index-2e33da66.js} +9 -9
- package/build/esm/{index-5755597c.js → index-31565015.js} +2 -2
- package/build/esm/{index-df4c863a.js → index-39387842.js} +10 -10
- package/build/esm/{index-fb0015a1.js → index-3a33b451.js} +2 -2
- package/build/esm/{index-007dfdf1.js → index-495c3979.js} +10 -10
- package/build/esm/{index-1bc9e98c.js → index-4f1e5c9d.js} +2 -2
- package/build/esm/{index-6fad8f20.js → index-509d27fa.js} +2 -2
- package/build/esm/{index-6b670369.js → index-641b18cf.js} +11 -11
- package/build/esm/{index-2528eff5.js → index-74f3e438.js} +31 -31
- package/build/esm/{index-11c307f3.js → index-8ad89342.js} +286 -147
- package/build/esm/{index-d3bc362a.js → index-940d69dc.js} +3 -3
- package/build/esm/{index-f4337f9b.js → index-a12b3ca3.js} +4 -4
- package/build/esm/{index-8b153618.js → index-a3aa2d8d.js} +9 -9
- package/build/esm/{index-78be75b3.js → index-af49b148.js} +2 -2
- package/build/esm/{index-f162b0cf.js → index-b1650f4a.js} +2 -2
- package/build/esm/{index-dffe2a0e.js → index-bf08fbea.js} +2 -2
- package/build/esm/{index-2ea06dfd.js → index-c64fc61c.js} +1 -1
- package/build/esm/{index-24bf1abc.js → index-e1865dee.js} +5 -5
- package/build/esm/{index-42c96a0d.js → index-e48714bc.js} +2 -2
- package/build/esm/{index-fcd8c82e.js → index-e8ee187e.js} +4 -4
- package/build/esm/{index-b7ca2cef.js → index-f9214cf3.js} +6 -6
- package/build/esm/{index-f6f3a757.js → index-fd7da3a4.js} +2 -2
- package/build/esm/index.js +64 -64
- package/build/esm/{index.styled-12b83f13.js → index.styled-4e95f87a.js} +2 -2
- package/build/esm/{index.styles-3c2a0994.js → index.styles-5dccdad7.js} +6 -6
- package/build/esm/lead.js +27 -27
- package/build/esm/mantine.js +21 -21
- package/build/esm/misc.js +18 -18
- package/build/esm/navigation.js +34 -34
- package/build/esm/onboardingV2.js +30 -30
- package/build/esm/pwg.js +19 -19
- package/build/esm/{routing-fa4df5ed.js → routing-d09787e5.js} +2 -2
- package/build/esm/subot.js +21 -21
- package/build/esm/together.js +34 -34
- package/build/esm/{types-2b0a2fdb.js → types-6021858b.js} +30 -30
- package/build/esm/{types-bb186778.js → types-b84f9c1c.js} +13 -13
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-40813903.js → useCategory-569ff740.js} +5 -5
- package/build/esm/{useHealthToolCache-6b196ff6.js → useHealthToolCache-d81b699d.js} +2 -2
- package/build/esm/{useMantineLocale-af6fc69e.js → useMantineLocale-d720e2e3.js} +3 -3
- package/build/esm/{usePlacesAutocomplete-75c4e448.js → usePlacesAutocomplete-53c8eded.js} +1 -1
- package/build/esm/{useTranslations-b0e645f7.js → useTranslations-2cecf45b.js} +1 -1
- package/build/esm/{utils-c629d1e2.js → utils-3aaddc4f.js} +1 -1
- package/build/esm/{utils-9117c62e.js → utils-e1dc7d7c.js} +5 -5
- package/build/esm/{utils-22437602.js → utils-fee79004.js} +4 -4
- package/build/esm/vaccination.js +25 -25
- package/build/footer.js +18 -18
- package/build/gAssets.js +4 -4
- package/build/{getDynamicHealthTool-96f8d3c6.js → getDynamicHealthTool-a89ce66e.js} +4 -4
- package/build/{getSocialList-595a7157.js → getSocialList-3faf264c.js} +2 -2
- package/build/hooks.js +17 -17
- package/build/i18n/translationKeys.d.ts +1 -1
- package/build/i18n-values/en-PH.js +1 -0
- package/build/i18n-values/hi-IN.js +2 -1
- package/build/i18n-values/id-ID.js +2 -1
- package/build/i18n-values/km-KH.js +2 -1
- package/build/i18n-values/ms-MY.js +2 -1
- package/build/i18n-values/my-MM.js +2 -1
- package/build/i18n-values/th-TH.js +2 -1
- package/build/i18n-values/tl-PH.js +2 -1
- package/build/i18n-values/vi-VN.js +1 -0
- package/build/i18n-values/vi-VN_MB.js +1 -0
- package/build/i18n-values/zh-TW.js +2 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-e6f52767.js → index-09a0d3b4.js} +2 -2
- package/build/{index-0bb74786.js → index-0e8dd968.js} +2 -2
- package/build/{index-cf4f9fe3.js → index-1371c158.js} +31 -31
- package/build/{index-3b877b03.js → index-162fef38.js} +5 -5
- package/build/{index-d07d1be8.js → index-1c5dc79a.js} +3 -3
- package/build/{index-b7be8a24.js → index-1eaa4ef8.js} +2 -2
- package/build/{index-80690ddd.js → index-2c1dae49.js} +12 -12
- package/build/{index-8216153d.js → index-2cb6f2ec.js} +3 -3
- package/build/{index-5dfdde72.js → index-50b78bf8.js} +2 -2
- package/build/{index-be3ab088.js → index-60365516.js} +285 -146
- package/build/{index-2dea76db.js → index-72453ef3.js} +2 -2
- package/build/{index-3cb9126e.js → index-a34eab5f.js} +10 -10
- package/build/{index-2032e587.js → index-aaa645ed.js} +2 -2
- package/build/{index-b1469502.js → index-b22d1226.js} +2 -2
- package/build/{index-17de9f00.js → index-b7af06c0.js} +9 -9
- package/build/{index-d1fd55e1.js → index-b8af7c59.js} +2 -2
- package/build/{index-6d9485f7.js → index-c950a7e5.js} +4 -4
- package/build/{index-4f3fc352.js → index-d06ed4f1.js} +9 -9
- package/build/{index-abb687b1.js → index-d255b8ec.js} +10 -10
- package/build/{index-3dc39fe7.js → index-d3f7c20c.js} +1 -1
- package/build/{index-f76e7259.js → index-d7f814d2.js} +4 -4
- package/build/{index-9190a7d5.js → index-ea0b6421.js} +2 -2
- package/build/{index-ffe5db11.js → index-ed571049.js} +11 -11
- package/build/{index-ef7bf017.js → index-f830cb82.js} +6 -6
- package/build/{index-2f6bc47b.js → index-fb59d3e1.js} +2 -2
- package/build/index.js +64 -64
- package/build/{index.styled-4213a558.js → index.styled-1ea0e8b5.js} +2 -2
- package/build/{index.styles-d3506089.js → index.styles-d0a4abf7.js} +6 -6
- package/build/lead.js +27 -27
- package/build/mantine.js +18 -18
- package/build/misc.js +18 -18
- package/build/navigation.js +34 -34
- package/build/onboardingV2.js +29 -29
- package/build/pwg.js +19 -19
- package/build/{routing-b9e48b5d.js → routing-3a77c9e9.js} +2 -2
- package/build/subot.js +21 -21
- package/build/together.js +34 -34
- package/build/{types-b07aecb6.js → types-01f4e38b.js} +30 -30
- package/build/{types-fd793496.js → types-c673cdc0.js} +13 -13
- package/build/types.js +1 -1
- package/build/{useCategory-b5276a5d.js → useCategory-f0254978.js} +5 -5
- package/build/{useHealthToolCache-ab5fcc56.js → useHealthToolCache-ae2cfc7e.js} +2 -2
- package/build/{useMantineLocale-c3e74e28.js → useMantineLocale-bdad35ac.js} +3 -3
- package/build/{usePlacesAutocomplete-277a5954.js → usePlacesAutocomplete-2cf1c2e8.js} +1 -1
- package/build/{useTranslations-700dceda.js → useTranslations-ef9b0bba.js} +1 -1
- package/build/{utils-da379d7b.js → utils-76339a73.js} +1 -1
- package/build/{utils-bcc5b10c.js → utils-926599a5.js} +4 -4
- package/build/{utils-2608e5ac.js → utils-b91ad597.js} +5 -5
- package/build/vaccination.js +25 -25
- package/package.json +1 -1
- /package/build/{BMI_BOYS.percentile.monthly-ec3363f1.js → BMI_BOYS.percentile.monthly-edf54729.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-97c948ab.js → BMI_BOYS.percentile.weekly-15f654f0.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-b76cfa09.js → BMI_BOYS.percentile.yearly-a6de8d6c.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-4cda2e56.js → BMI_BOYS.zscore.monthly-f35e9c75.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-79deb4cc.js → BMI_BOYS.zscore.weekly-e78e269d.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-ae8432a4.js → BMI_BOYS.zscore.yearly-3c833478.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-54bfed4f.js → BMI_GIRLS.percentile.monthly-1f47762e.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-133a4294.js → BMI_GIRLS.percentile.weekly-6a26fa5b.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-c98b3d8d.js → BMI_GIRLS.percentile.yearly-c27bb2b6.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-fce23097.js → BMI_GIRLS.zscore.monthly-366bb53b.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-960643d0.js → BMI_GIRLS.zscore.weekly-ca43772c.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-dff5f062.js → BMI_GIRLS.zscore.yearly-8cf2bef6.js} +0 -0
- /package/build/{ChevronDown-8c88f56f.js → ChevronDown-836fce4c.js} +0 -0
- /package/build/{Close-1812f397.js → Close-666a156b.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-0739a23a.js → HEAD CIRCUM_BOYS.percentile.monthly-63e3141c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-151acef4.js → HEAD CIRCUM_BOYS.percentile.weekly-b2d34025.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-4baf2b31.js → HEAD CIRCUM_BOYS.percentile.yearly-761f34b6.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-89ca73d0.js → HEAD CIRCUM_BOYS.zscore.monthly-79ff6088.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-666085a4.js → HEAD CIRCUM_BOYS.zscore.weekly-5f8df106.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-89e987ef.js → HEAD CIRCUM_BOYS.zscore.yearly-30d17263.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-0615ebb4.js → HEAD CIRCUM_GIRLS.percentile.monthly-6631a0d0.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-1c174533.js → HEAD CIRCUM_GIRLS.percentile.weekly-0fa4bdc3.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-45d9b2ba.js → HEAD CIRCUM_GIRLS.percentile.yearly-0a46a0ec.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-58c4ce14.js → HEAD CIRCUM_GIRLS.zscore.monthly-1f686397.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-86fce6ef.js → HEAD CIRCUM_GIRLS.zscore.weekly-ce67285c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-07aee0d7.js → HEAD CIRCUM_GIRLS.zscore.yearly-6ff62ddb.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-c6945e90.js → HEIGHT_BOYS.percentile.monthly-4f1126f1.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-0ddcccf9.js → HEIGHT_BOYS.percentile.weekly-eafaaae6.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-7b334d51.js → HEIGHT_BOYS.percentile.yearly-09b1db20.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-a32e06e5.js → HEIGHT_BOYS.zscore.monthly-c54e3086.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-09a8cf94.js → HEIGHT_BOYS.zscore.weekly-ba1e8bcc.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-313182e5.js → HEIGHT_BOYS.zscore.yearly-eb1e1863.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-3dd6c402.js → HEIGHT_GIRLS.percentile.monthly-2566a402.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-69d817ca.js → HEIGHT_GIRLS.percentile.weekly-99861738.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-c25cfb02.js → HEIGHT_GIRLS.percentile.yearly-c7ee5cf5.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-54d1cb0a.js → HEIGHT_GIRLS.zscore.monthly-5a899871.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-68e3eb6e.js → HEIGHT_GIRLS.zscore.weekly-341831d6.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-7cfb4576.js → HEIGHT_GIRLS.zscore.yearly-cc9c66a6.js} +0 -0
- /package/build/{Subot-c80eaa9a.js → Subot-241b89e0.js} +0 -0
- /package/build/{Visible-88ac7fc5.js → Visible-4253ff1d.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-b5f4690c.js → WEIGHT_BOYS.percentile.monthly-d57318fd.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-3a3094d3.js → WEIGHT_BOYS.percentile.weekly-de794320.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-398ec37f.js → WEIGHT_BOYS.percentile.yearly-388de70e.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-2de3eabf.js → WEIGHT_BOYS.zscore.monthly-4c90c298.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-b89d4761.js → WEIGHT_BOYS.zscore.weekly-a8954435.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-41caa512.js → WEIGHT_BOYS.zscore.yearly-a621e122.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-5321c9fe.js → WEIGHT_GIRLS.percentile.monthly-9c0a6d12.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-29370a57.js → WEIGHT_GIRLS.percentile.weekly-a1af2a35.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-b8f71c0f.js → WEIGHT_GIRLS.percentile.yearly-e3038004.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-538e2d4a.js → WEIGHT_GIRLS.zscore.monthly-65de938c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-ca3c8619.js → WEIGHT_GIRLS.zscore.weekly-8ee2da60.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-7fee258f.js → WEIGHT_GIRLS.zscore.yearly-7d2bac06.js} +0 -0
- /package/build/{animation-0ea44967.js → animation-ba909d68.js} +0 -0
- /package/build/{cart-67df21a4.js → cart-117abd56.js} +0 -0
- /package/build/{cookieHelper-2cf3ffa0.js → cookieHelper-8f3b2717.js} +0 -0
- /package/build/{doctor-00f8c880.js → doctor-5139b88d.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-bc6ebfca.js → BMI_BOYS.percentile.monthly-0629dbdf.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-d54a5480.js → BMI_BOYS.percentile.weekly-61fb6530.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-a199e663.js → BMI_BOYS.percentile.yearly-9130928e.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-4d249434.js → BMI_BOYS.zscore.monthly-9c0a9fe9.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-63278755.js → BMI_BOYS.zscore.weekly-06beab2f.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-6c511034.js → BMI_BOYS.zscore.yearly-f6eeef97.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-5fde1ee5.js → BMI_GIRLS.percentile.monthly-ab8eb3fc.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-a0086f64.js → BMI_GIRLS.percentile.weekly-c3deaeb1.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-0e908908.js → BMI_GIRLS.percentile.yearly-2bd0df4e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-cd0d06a2.js → BMI_GIRLS.zscore.monthly-74e536bd.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-c2679df7.js → BMI_GIRLS.zscore.weekly-58b593a5.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-5dd9b7f8.js → BMI_GIRLS.zscore.yearly-49879a1e.js} +0 -0
- /package/build/esm/{ChevronDown-7c8c4678.js → ChevronDown-09c0c784.js} +0 -0
- /package/build/esm/{Close-1543552a.js → Close-c478d952.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-a2b2aa6e.js → HEAD CIRCUM_BOYS.percentile.monthly-7569e020.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-7ff7346c.js → HEAD CIRCUM_BOYS.percentile.weekly-78ad237d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-d61d8bc1.js → HEAD CIRCUM_BOYS.percentile.yearly-bdbd4c4c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-91652cb1.js → HEAD CIRCUM_BOYS.zscore.monthly-2305a52e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-7e62102a.js → HEAD CIRCUM_BOYS.zscore.weekly-c1b2d641.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-8fcfab6d.js → HEAD CIRCUM_BOYS.zscore.yearly-f8c2ec8c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-71f9ec04.js → HEAD CIRCUM_GIRLS.percentile.monthly-e8a2da9b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-5fa61128.js → HEAD CIRCUM_GIRLS.percentile.weekly-3bce576b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-3a73e2db.js → HEAD CIRCUM_GIRLS.percentile.yearly-0621e5ed.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-f43e036b.js → HEAD CIRCUM_GIRLS.zscore.monthly-9767f2d3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-56830d28.js → HEAD CIRCUM_GIRLS.zscore.weekly-f42b4d6f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-9da77020.js → HEAD CIRCUM_GIRLS.zscore.yearly-5ff1b3bf.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-409855a4.js → HEIGHT_BOYS.percentile.monthly-04bbc77f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-5e2ae480.js → HEIGHT_BOYS.percentile.weekly-da84c1ae.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-41513d1d.js → HEIGHT_BOYS.percentile.yearly-c13407e9.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-e6d323e3.js → HEIGHT_BOYS.zscore.monthly-47934058.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-a00a3209.js → HEIGHT_BOYS.zscore.weekly-d3fbcbc0.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-8cda047d.js → HEIGHT_BOYS.zscore.yearly-cfdf5b26.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-6b435321.js → HEIGHT_GIRLS.percentile.monthly-54c04bcd.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-c9f8e156.js → HEIGHT_GIRLS.percentile.weekly-c9bea00f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-109f3d53.js → HEIGHT_GIRLS.percentile.yearly-3d098416.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-06fb0daa.js → HEIGHT_GIRLS.zscore.monthly-cc45e5cf.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-db90b98a.js → HEIGHT_GIRLS.zscore.weekly-d02d8605.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-88356a44.js → HEIGHT_GIRLS.zscore.yearly-43dab134.js} +0 -0
- /package/build/esm/{Subot-fe0f37a7.js → Subot-d0129b23.js} +0 -0
- /package/build/esm/{Visible-c8022d6d.js → Visible-cdae7f12.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-66d2ad73.js → WEIGHT_BOYS.percentile.monthly-209be46d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-dd266bcc.js → WEIGHT_BOYS.percentile.weekly-ff0beaec.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-293a8529.js → WEIGHT_BOYS.percentile.yearly-95067293.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-90d56a9a.js → WEIGHT_BOYS.zscore.monthly-662b33c1.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-0185dd0c.js → WEIGHT_BOYS.zscore.weekly-8b96da47.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-0635e4c1.js → WEIGHT_BOYS.zscore.yearly-7a09ab81.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-f783d1bc.js → WEIGHT_GIRLS.percentile.monthly-f68afc41.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-848a8a17.js → WEIGHT_GIRLS.percentile.weekly-5b006cf5.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-05f529a4.js → WEIGHT_GIRLS.percentile.yearly-e7a6dadc.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-f0c76761.js → WEIGHT_GIRLS.zscore.monthly-2cba3a48.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-802553c3.js → WEIGHT_GIRLS.zscore.weekly-3052b29e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-b9ce9e84.js → WEIGHT_GIRLS.zscore.yearly-d7da282a.js} +0 -0
- /package/build/esm/{animation-871ae2ae.js → animation-8bb17242.js} +0 -0
- /package/build/esm/{cart-d0164858.js → cart-b4226371.js} +0 -0
- /package/build/esm/{cookieHelper-f5c48224.js → cookieHelper-fad0d79a.js} +0 -0
- /package/build/esm/{doctor-fab377d0.js → doctor-553cac85.js} +0 -0
- /package/build/esm/{index-c1353ae9.js → index-429a47ff.js} +0 -0
- /package/build/esm/{index-f243053f.js → index-8c56d365.js} +0 -0
- /package/build/esm/{index-8628b026.js → index-8fd91c84.js} +0 -0
- /package/build/esm/{isProduction-b948eb3f.js → isProduction-d763a32e.js} +0 -0
- /package/build/esm/{localizeNumberFormat-de8aab79.js → localizeNumberFormat-7cac4d14.js} +0 -0
- /package/build/esm/{normalizeLink-35f046f7.js → normalizeLink-e3d125e4.js} +0 -0
- /package/build/esm/{number-34523eae.js → number-4b715dfd.js} +0 -0
- /package/build/esm/{paths-6fec74d4.js → paths-31787dfc.js} +0 -0
- /package/build/esm/{theme-045f7a4c.js → theme-dde5133f.js} +0 -0
- /package/build/esm/{translationsContext-10962889.js → translationsContext-936616b7.js} +0 -0
- /package/build/esm/{tslib.es6-b386827f.js → tslib.es6-bb26aeee.js} +0 -0
- /package/build/esm/{types-49152b7b.js → types-8ac9a2b8.js} +0 -0
- /package/build/esm/{useIsInit-5b04be12.js → useIsInit-56bab8c5.js} +0 -0
- /package/build/esm/{useOutsideClick-c4752c33.js → useOutsideClick-62be5855.js} +0 -0
- /package/build/esm/{useScrollbarSize-b13fdd15.js → useScrollbarSize-ca1efc7a.js} +0 -0
- /package/build/esm/{useUniqueId-1495a109.js → useUniqueId-b2ee7f49.js} +0 -0
- /package/build/esm/{utils-577218f8.js → utils-5e9c7d14.js} +0 -0
- /package/build/{index-d972dd22.js → index-26e225cb.js} +0 -0
- /package/build/{index-ea20167e.js → index-94084c0f.js} +0 -0
- /package/build/{index-00abcc0f.js → index-f12ac0ea.js} +0 -0
- /package/build/{isProduction-fd673402.js → isProduction-3313e9c8.js} +0 -0
- /package/build/{localizeNumberFormat-c01eb370.js → localizeNumberFormat-933eb82f.js} +0 -0
- /package/build/{normalizeLink-e1288bb0.js → normalizeLink-8533ee3c.js} +0 -0
- /package/build/{number-bd9da5a2.js → number-2347a693.js} +0 -0
- /package/build/{paths-2ae64d93.js → paths-bc64d1d5.js} +0 -0
- /package/build/{theme-3b54ec5b.js → theme-982fb303.js} +0 -0
- /package/build/{translationsContext-119be95a.js → translationsContext-7443463a.js} +0 -0
- /package/build/{tslib.es6-4a65586f.js → tslib.es6-a3da506b.js} +0 -0
- /package/build/{types-ed42d236.js → types-d4ad26bd.js} +0 -0
- /package/build/{useIsInit-9116695c.js → useIsInit-2a0ded85.js} +0 -0
- /package/build/{useOutsideClick-9a510cd5.js → useOutsideClick-08f8e841.js} +0 -0
- /package/build/{useScrollbarSize-2725ba1c.js → useScrollbarSize-0a09b197.js} +0 -0
- /package/build/{useUniqueId-bb2377a8.js → useUniqueId-5878a3c8.js} +0 -0
- /package/build/{utils-96cc366b.js → utils-8dff9cbe.js} +0 -0
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
import React__default, { useState, useEffect, useRef, useMemo, Fragment, memo, useCallback, useImperativeHandle, createContext, useContext, forwardRef } from 'react';
|
|
2
|
-
import { T as Text } from './index-
|
|
3
|
-
import { b as StyledAvatar, c as StyledBadge$1, d as StyledBorderHeading, e as StyledDropdown, f as StyledDropdownName, g as StyledDropdownList, h as StyledDropdownOption, i as StyledIcon$1, j as StyledGrid, k as StyledPagination, l as StyledPageBlock, m as StyledPaginationBlock, n as StyledTag, o as StyledToggle, p as StyledToggleIcon, q as StyledToggleLabel, r as StyledCheckbox, s as StyledRateStars, u as useStyles$
|
|
4
|
-
import { f as formatUrlWithPageParam, M as MediaQueries } from './utils-
|
|
5
|
-
import { I as ImageWrap, R as Radio$1, u as useScreenSize, A as Anchor, a as Avatar$1, b as AspectRatio, B as Button$1, c as Input$1, d as Checkbox$1, e as ChipButton, t as themeColors } from './index-
|
|
6
|
-
import { T as Text$1 } from './index-
|
|
7
|
-
import { _ as __rest, a as __awaiter } from './tslib.es6-
|
|
2
|
+
import { T as Text } from './index-e48714bc.js';
|
|
3
|
+
import { b as StyledAvatar, c as StyledBadge$1, d as StyledBorderHeading, e as StyledDropdown, f as StyledDropdownName, g as StyledDropdownList, h as StyledDropdownOption, i as StyledIcon$1, j as StyledGrid, k as StyledPagination, l as StyledPageBlock, m as StyledPaginationBlock, n as StyledTag, o as StyledToggle, p as StyledToggleIcon, q as StyledToggleLabel, r as StyledCheckbox, s as StyledRateStars, u as useStyles$5, T as TextArea, P as PureInput } from './index.styles-5dccdad7.js';
|
|
4
|
+
import { f as formatUrlWithPageParam, M as MediaQueries } from './utils-5e9c7d14.js';
|
|
5
|
+
import { I as ImageWrap, R as Radio$1, u as useScreenSize, A as Anchor, a as Avatar$1, b as AspectRatio, B as Button$1, c as Input$1, d as Checkbox$1, e as ChipButton, t as themeColors } from './index-2e33da66.js';
|
|
6
|
+
import { T as Text$1 } from './index-39387842.js';
|
|
7
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-bb26aeee.js';
|
|
8
8
|
import { Bookmark, CalendarMB, Calendar } from '@hhgtech/icons/other';
|
|
9
|
-
import { C as CommonGAssets } from './index-
|
|
10
|
-
import { H as Heading } from './index-
|
|
11
|
-
import { t as theme } from './theme-
|
|
9
|
+
import { C as CommonGAssets } from './index-bf08fbea.js';
|
|
10
|
+
import { H as Heading } from './index-4f1e5c9d.js';
|
|
11
|
+
import { t as theme } from './theme-dde5133f.js';
|
|
12
12
|
import { Box, Radio as Radio$2, Flex, rem, Card, Group, createStyles, Stack, getStylesRef, useMantineTheme, Container as Container$1, AspectRatio as AspectRatio$1, ScrollArea, Chip, Badge as Badge$1, MultiSelect, Stepper } from '@mantine/core';
|
|
13
13
|
import innertext from 'innertext';
|
|
14
14
|
import '@mantine/dates';
|
|
15
|
-
import { d as domainLocales, L as LOCALE_SPECS, F as FAVICONS, Q as QUERY_HEALTH_TOOL, R as RISK_SCREENER_NAME, a as RISK_SCREENER_SLUG, G as GA_TOKEN_COOKIE } from './index-
|
|
16
|
-
import { G as Gender, L as LOCALE } from './Subot-
|
|
17
|
-
import './useMantineLocale-
|
|
18
|
-
import './translationsContext-
|
|
15
|
+
import { d as domainLocales, L as LOCALE_SPECS, F as FAVICONS, Q as QUERY_HEALTH_TOOL, R as RISK_SCREENER_NAME, a as RISK_SCREENER_SLUG, G as GA_TOKEN_COOKIE } from './index-31565015.js';
|
|
16
|
+
import { G as Gender, L as LOCALE } from './Subot-d0129b23.js';
|
|
17
|
+
import './useMantineLocale-d720e2e3.js';
|
|
18
|
+
import './translationsContext-936616b7.js';
|
|
19
19
|
import 'string-format';
|
|
20
20
|
import { useViewportSize } from '@mantine/hooks';
|
|
21
|
-
import { i as isInternalLink, d as getTogetherUserPostsApiPath } from './index-
|
|
21
|
+
import { i as isInternalLink, d as getTogetherUserPostsApiPath } from './index-74f3e438.js';
|
|
22
22
|
import styled from '@emotion/styled';
|
|
23
23
|
import throttle from 'lodash/throttle';
|
|
24
|
-
import { L as Logo } from './index-
|
|
25
|
-
import { B as Button } from './index-
|
|
26
|
-
import { I as Input } from './index-
|
|
24
|
+
import { L as Logo } from './index-a12b3ca3.js';
|
|
25
|
+
import { B as Button } from './index-af49b148.js';
|
|
26
|
+
import { I as Input } from './index-2d061fb3.js';
|
|
27
27
|
import { keyframes, css } from '@emotion/react';
|
|
28
28
|
import parse from 'html-react-parser';
|
|
29
|
-
import { i as isProduction } from './isProduction-
|
|
30
|
-
import { u as useTranslations } from './useTranslations-
|
|
29
|
+
import { i as isProduction } from './isProduction-d763a32e.js';
|
|
30
|
+
import { u as useTranslations } from './useTranslations-2cecf45b.js';
|
|
31
31
|
import { format, addDays, isBefore, startOfMonth, addMonths, subMonths, getDaysInMonth, isToday, isSameDay, isWithinInterval, isAfter, isPast } from 'date-fns';
|
|
32
32
|
import dayjs from 'dayjs';
|
|
33
|
-
import { D as DATE_FORMAT } from './types-
|
|
34
|
-
import { s as setDefaultClass, Z as Z_INDEX, b as DUE_DATE_FORMAT, H as HEALTH_TOOL_TYPE$1, d as callApiWithAuth, g as getApiPath, P as PATHS$2, T as TogetherComponentGlobalContext, e as getPremiumApiPath, f as getWebsiteUrlApi, h as getSsoApiPath } from './utils-
|
|
35
|
-
import { D as DatePicker } from './index-
|
|
36
|
-
import { M as MarryBabyText } from './index-
|
|
37
|
-
import { S as Slider } from './index-
|
|
38
|
-
import { D as Dropdown } from './index-
|
|
39
|
-
import { C as Container } from './index-
|
|
33
|
+
import { D as DATE_FORMAT } from './types-8ac9a2b8.js';
|
|
34
|
+
import { s as setDefaultClass, Z as Z_INDEX, b as DUE_DATE_FORMAT, H as HEALTH_TOOL_TYPE$1, d as callApiWithAuth, g as getApiPath, P as PATHS$2, T as TogetherComponentGlobalContext, e as getPremiumApiPath, f as getWebsiteUrlApi, h as getSsoApiPath } from './utils-e1dc7d7c.js';
|
|
35
|
+
import { D as DatePicker } from './index-20d65b0b.js';
|
|
36
|
+
import { M as MarryBabyText } from './index-b1650f4a.js';
|
|
37
|
+
import { S as Slider } from './index-fd7da3a4.js';
|
|
38
|
+
import { D as Dropdown } from './index-c64fc61c.js';
|
|
39
|
+
import { C as Container } from './index-8c56d365.js';
|
|
40
40
|
import { useForm, Controller } from 'react-hook-form';
|
|
41
|
-
import { u as useHealthToolsCache } from './useHealthToolCache-
|
|
41
|
+
import { u as useHealthToolsCache } from './useHealthToolCache-d81b699d.js';
|
|
42
42
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
43
|
-
import { B as BabyGrowthGender, D as Drawer } from './index-
|
|
44
|
-
import { L as Label } from './constants-
|
|
45
|
-
import { f as formatUserProfileUrl } from './index-
|
|
46
|
-
import './utils-
|
|
47
|
-
import './index.styled-
|
|
48
|
-
import './index-
|
|
49
|
-
import { a as useOutsideClick } from './useOutsideClick-
|
|
43
|
+
import { B as BabyGrowthGender, D as Drawer } from './index-495c3979.js';
|
|
44
|
+
import { L as Label } from './constants-2b1bb3d5.js';
|
|
45
|
+
import { f as formatUserProfileUrl } from './index-e8ee187e.js';
|
|
46
|
+
import './utils-fee79004.js';
|
|
47
|
+
import './index.styled-4e95f87a.js';
|
|
48
|
+
import './index-429a47ff.js';
|
|
49
|
+
import { a as useOutsideClick } from './useOutsideClick-62be5855.js';
|
|
50
50
|
import enUS from 'date-fns/locale/en-US';
|
|
51
51
|
import id from 'date-fns/locale/id';
|
|
52
52
|
import vi from 'date-fns/locale/vi';
|
|
53
53
|
import zhTW from 'date-fns/locale/zh-TW';
|
|
54
|
-
import { g as getSocialList } from './getSocialList-
|
|
54
|
+
import { g as getSocialList } from './getSocialList-c6d6ab1a.js';
|
|
55
55
|
import { v4 } from 'uuid';
|
|
56
|
-
import { g as getCurrentBaseUrl, a as getCurrentSsoUrl } from './routing-
|
|
56
|
+
import { g as getCurrentBaseUrl, a as getCurrentSsoUrl } from './routing-d09787e5.js';
|
|
57
57
|
import { useForm as useForm$1, isNotEmpty } from '@mantine/form';
|
|
58
|
-
import { I as Icon } from './index-
|
|
58
|
+
import { I as Icon } from './index-940d69dc.js';
|
|
59
59
|
import { Close, Plus } from '@hhgtech/icons/core';
|
|
60
|
-
import { M as Modal } from './index-
|
|
60
|
+
import { M as Modal } from './index-3a33b451.js';
|
|
61
61
|
import Cookies from 'js-cookie';
|
|
62
62
|
import flatten from 'lodash/flatten';
|
|
63
63
|
import uniqBy from 'lodash/uniqBy';
|
|
64
|
-
import { g as getCookie } from './cookieHelper-
|
|
65
|
-
import { n as normalizeLinkSlash, a as normalizeLink } from './normalizeLink-
|
|
64
|
+
import { g as getCookie } from './cookieHelper-fad0d79a.js';
|
|
65
|
+
import { n as normalizeLinkSlash, a as normalizeLink } from './normalizeLink-e3d125e4.js';
|
|
66
66
|
|
|
67
67
|
var styles$7 = {"alert":"CHw-fZZ","content":"_03U6VRS","close":"EO828Vv"};
|
|
68
68
|
|
|
@@ -327,7 +327,7 @@ const GenderOptionControl = (_a) => {
|
|
|
327
327
|
female: 'female',
|
|
328
328
|
} } = _a, radioGroupProps = __rest(_a, ["label", "availableValue", "styles", "isBaby", "genderValue"]);
|
|
329
329
|
const { t } = useTranslations();
|
|
330
|
-
const { classes, cx } = useStyles$
|
|
330
|
+
const { classes, cx } = useStyles$5(undefined, {
|
|
331
331
|
name: 'GenderOptionControl',
|
|
332
332
|
styles,
|
|
333
333
|
});
|
|
@@ -496,7 +496,7 @@ const _Horizontal = (_a) => {
|
|
|
496
496
|
|
|
497
497
|
// MyComponent.styles.ts
|
|
498
498
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
499
|
-
var useStyles$
|
|
499
|
+
var useStyles$4 = createStyles((_theme, {}) => ({
|
|
500
500
|
// add all styles as usual
|
|
501
501
|
root: {},
|
|
502
502
|
image: {},
|
|
@@ -516,7 +516,7 @@ const _Vertical = (_a) => {
|
|
|
516
516
|
// size = 'lg',
|
|
517
517
|
classNames, styles, unstyled, className } = _a, rest = __rest(_a, ["article", "author", "authorAvatar", "badge", "bannerImageWrapProps", "hideDescription", "isBookmarked", "onBookmark", "time", "tracking", "classNames", "styles", "unstyled", "className"]);
|
|
518
518
|
const { isMobile } = useScreenSize();
|
|
519
|
-
const { classes, cx } = useStyles$
|
|
519
|
+
const { classes, cx } = useStyles$4(
|
|
520
520
|
// First argument of useStyles is styles params
|
|
521
521
|
{},
|
|
522
522
|
// Second argument is responsible for styles api integration
|
|
@@ -1735,7 +1735,7 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
1735
1735
|
Body: Body
|
|
1736
1736
|
});
|
|
1737
1737
|
|
|
1738
|
-
var useStyles$
|
|
1738
|
+
var useStyles$3 = createStyles((theme) => {
|
|
1739
1739
|
const itemLabelRef = getStylesRef('itemLabel');
|
|
1740
1740
|
return {
|
|
1741
1741
|
root: {
|
|
@@ -1787,7 +1787,7 @@ var useStyles$2 = createStyles((theme) => {
|
|
|
1787
1787
|
* @deprecated Consider to use mantine
|
|
1788
1788
|
*/
|
|
1789
1789
|
const Tabs = ({ style, initialTab, tabContent, onChange, className, dataEventCategory, dataEventAction, dataEventLabel, id, styles, }) => {
|
|
1790
|
-
const { classes, cx, theme } = useStyles$
|
|
1790
|
+
const { classes, cx, theme } = useStyles$3(undefined, { name: 'Tabs', styles });
|
|
1791
1791
|
const [activeTab, setActiveTab] = useState(initialTab || 0);
|
|
1792
1792
|
useEffect(() => {
|
|
1793
1793
|
setActiveTab(initialTab);
|
|
@@ -4264,7 +4264,7 @@ const BmiForm = ({ value: valueProps, onChange: onChangeProps, onSubmit: onSubmi
|
|
|
4264
4264
|
React__default.createElement(StyledButton$2, { size: "lg", fullWidth: true, className: "bmi-btn bmi--btn-submit", dataEventCategory: "Health Tool", dataEventAction: "BMI", dataEventLabel: `https://${domainLocales[locale]}/${linkTool}`, type: "submit" }, t('bmi.submit'))))));
|
|
4265
4265
|
};
|
|
4266
4266
|
|
|
4267
|
-
const Form = () => {
|
|
4267
|
+
const Form$1 = () => {
|
|
4268
4268
|
const { onSubmit, bmiGenerated, locale, bmiUnit, isSide } = useContext(BmiEmbedContext);
|
|
4269
4269
|
return (React__default.createElement(BmiForm, { onSubmit: onSubmit, bmiGenerated: bmiGenerated, locale: locale, bmiUnit: bmiUnit, isSide: isSide }));
|
|
4270
4270
|
};
|
|
@@ -4288,12 +4288,146 @@ const _BMICardEmbed = ({ isMobile, onSubmit, bmiContent, isSide, bmiGenerated, b
|
|
|
4288
4288
|
date: (_c = bmiContent === null || bmiContent === void 0 ? void 0 : bmiContent.reviewBy) === null || _c === void 0 ? void 0 : _c.date,
|
|
4289
4289
|
}, isMobile: isMobile }),
|
|
4290
4290
|
React__default.createElement(Container, null,
|
|
4291
|
-
React__default.createElement(StyledContent, { as: "div", "data-is-side": isSide }, bmiLink && React__default.createElement(Form, null)))))));
|
|
4291
|
+
React__default.createElement(StyledContent, { as: "div", "data-is-side": isSide }, bmiLink && React__default.createElement(Form$1, null)))))));
|
|
4292
4292
|
};
|
|
4293
4293
|
const BMICardEmbed = _BMICardEmbed;
|
|
4294
|
-
BMICardEmbed.Form = Form;
|
|
4294
|
+
BMICardEmbed.Form = Form$1;
|
|
4295
|
+
|
|
4296
|
+
const BabyGrowthEmbedContext = createContext({});
|
|
4297
|
+
|
|
4298
|
+
const BabyGrowthFormContext = createContext({});
|
|
4299
|
+
|
|
4300
|
+
var useStyles$2 = createStyles((theme) => {
|
|
4301
|
+
return {
|
|
4302
|
+
root: {
|
|
4303
|
+
display: 'flex',
|
|
4304
|
+
flexDirection: 'column',
|
|
4305
|
+
gap: rem(16),
|
|
4306
|
+
},
|
|
4307
|
+
row: {
|
|
4308
|
+
display: 'flex',
|
|
4309
|
+
alignItems: 'stretch',
|
|
4310
|
+
justifyContent: 'space-between',
|
|
4311
|
+
gap: rem(16),
|
|
4312
|
+
},
|
|
4313
|
+
labelWrapper: {
|
|
4314
|
+
flex: '1 1 0px',
|
|
4315
|
+
display: 'flex',
|
|
4316
|
+
alignItems: 'center',
|
|
4317
|
+
borderBottom: `1px solid ${theme.colors.neutral[1]}`,
|
|
4318
|
+
},
|
|
4319
|
+
label: {
|
|
4320
|
+
fontSize: rem(14),
|
|
4321
|
+
color: theme.colors.gray[6],
|
|
4322
|
+
},
|
|
4323
|
+
control: {
|
|
4324
|
+
width: rem(180),
|
|
4325
|
+
flexShrink: 1,
|
|
4326
|
+
},
|
|
4327
|
+
radioLabel: {
|
|
4328
|
+
fontSize: rem(16),
|
|
4329
|
+
},
|
|
4330
|
+
radioRoot: {
|
|
4331
|
+
padding: `${rem(10)} 0`,
|
|
4332
|
+
margin: 0,
|
|
4333
|
+
},
|
|
4334
|
+
bmiVal: {
|
|
4335
|
+
display: 'inline-block',
|
|
4336
|
+
minWidth: rem(40),
|
|
4337
|
+
marginLeft: rem(10),
|
|
4338
|
+
textAlign: 'center',
|
|
4339
|
+
},
|
|
4340
|
+
inputWithUnit__wrapper: {
|
|
4341
|
+
position: 'relative',
|
|
4342
|
+
},
|
|
4343
|
+
inputWithUnit__unit: {
|
|
4344
|
+
position: 'absolute',
|
|
4345
|
+
top: 0,
|
|
4346
|
+
right: 0,
|
|
4347
|
+
bottom: 0,
|
|
4348
|
+
paddingRight: rem(10),
|
|
4349
|
+
display: 'flex',
|
|
4350
|
+
alignItems: 'center',
|
|
4351
|
+
},
|
|
4352
|
+
inputWithUnit__unitText: {
|
|
4353
|
+
color: theme.colors.gray[6],
|
|
4354
|
+
},
|
|
4355
|
+
inputWithUnit__input: {
|
|
4356
|
+
input: {
|
|
4357
|
+
paddingRight: rem(30),
|
|
4358
|
+
},
|
|
4359
|
+
},
|
|
4360
|
+
submitBtn: {},
|
|
4361
|
+
};
|
|
4362
|
+
});
|
|
4363
|
+
|
|
4364
|
+
const HorizonalForm = () => {
|
|
4365
|
+
const { t } = useTranslations();
|
|
4366
|
+
const { control, currentUrl, isEmptyThreeFields, isMarryBaby } = useContext(BabyGrowthFormContext);
|
|
4367
|
+
const { classes, cx } = useStyles$2(undefined, {
|
|
4368
|
+
name: 'BabyGrowthForm__HorizonalForm',
|
|
4369
|
+
});
|
|
4370
|
+
return (React__default.createElement(Box, { className: classes.root },
|
|
4371
|
+
React__default.createElement(Controller, { control: control, name: "gender", render: ({ field: { onChange, value } }) => (React__default.createElement(Box, { className: classes.row },
|
|
4372
|
+
React__default.createElement(Box, { className: classes.labelWrapper },
|
|
4373
|
+
React__default.createElement("label", { className: classes.label, htmlFor: "gender" }, t('tools.selectBabyGender'))),
|
|
4374
|
+
React__default.createElement(Radio$1.Group, { onChange: onChange, value: value },
|
|
4375
|
+
React__default.createElement(Group, { mt: "xs" },
|
|
4376
|
+
React__default.createElement(Radio$1, { value: "boy", label: t('gender.boy'), classNames: {
|
|
4377
|
+
root: classes.radioRoot,
|
|
4378
|
+
label: classes.radioLabel,
|
|
4379
|
+
} }),
|
|
4380
|
+
React__default.createElement(Radio$1, { value: "girl", label: t('gender.girl'), classNames: {
|
|
4381
|
+
label: classes.radioLabel,
|
|
4382
|
+
} }))))) }),
|
|
4383
|
+
React__default.createElement(Controller, { control: control, name: "birthday", render: ({ field: { onChange, value }, fieldState: { error } }) => (React__default.createElement(Box, { className: classes.row },
|
|
4384
|
+
React__default.createElement(Box, { className: classes.labelWrapper },
|
|
4385
|
+
React__default.createElement("label", { className: classes.label, htmlFor: "birthday" }, t('babyGrowth.input.birthday'))),
|
|
4386
|
+
React__default.createElement(DatePicker, { className: classes.control, onChange: onChange, placeholder: "dd/mm/yyyy", pickedDate: value || new Date(), displayDateFormat: 'dd/MM/yyyy', disabledDays: {
|
|
4387
|
+
after: new Date(),
|
|
4388
|
+
}, customInput: (props) => {
|
|
4389
|
+
return (React__default.createElement(Input, Object.assign({ onChange: onChange, className: `${(error === null || error === void 0 ? void 0 : error.message) ? 'error-input' : ''}`, name: "birthday", size: "md", actionIcon: React__default.createElement(Calendar, null) }, props, { value: value && dayjs(value).format(DUE_DATE_FORMAT) })));
|
|
4390
|
+
} }))) }),
|
|
4391
|
+
React__default.createElement(Box, { className: classes.row },
|
|
4392
|
+
React__default.createElement(Box, { className: classes.labelWrapper },
|
|
4393
|
+
React__default.createElement("label", { className: classes.label }, t('babyGrowth.babyInfo'))),
|
|
4394
|
+
React__default.createElement(Flex, { align: 'center', gap: '8px' },
|
|
4395
|
+
React__default.createElement(Controller, { control: control, name: "bmi", render: ({ field: { value } }) => (React__default.createElement(React__default.Fragment, null,
|
|
4396
|
+
React__default.createElement(Text, { size: "p2" },
|
|
4397
|
+
React__default.createElement("span", null, "BMI"),
|
|
4398
|
+
React__default.createElement("span", { className: classes.bmiVal }, !isNaN(Number(value)) && value !== '0' ? value : ''),
|
|
4399
|
+
t('babyGrowth.kg.m2')))) }),
|
|
4400
|
+
React__default.createElement(Controller, { control: control, name: "height", render: ({ field: { onChange, value }, fieldState: { error } }) => (React__default.createElement(Box, { className: cx(classes.control, classes.inputWithUnit__wrapper) },
|
|
4401
|
+
React__default.createElement(Input, { className: `${cx(classes.inputWithUnit__input, isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message) ? 'error-input' : '')}`, name: "height", placeholder: t('babyGrowth.height'), size: "md", value: String(value), onChange: onChange, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) && e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur() }),
|
|
4402
|
+
React__default.createElement(Box, { className: classes.inputWithUnit__unit },
|
|
4403
|
+
React__default.createElement(Text, { as: "span", size: "p2", className: classes.inputWithUnit__unitText }, t('babyGrowth.cm'))))) }),
|
|
4404
|
+
React__default.createElement(Controller, { control: control, name: "weight", render: ({ field: { onChange, value }, fieldState: { error } }) => (React__default.createElement(Box, { className: cx(classes.control, classes.inputWithUnit__wrapper) },
|
|
4405
|
+
React__default.createElement(Box, { className: classes.inputWithUnit__unit },
|
|
4406
|
+
React__default.createElement(Text, { as: "span", size: "p2", className: classes.inputWithUnit__unitText }, t('babyGrowth.kg'))),
|
|
4407
|
+
React__default.createElement(Input, { className: `${cx(classes.inputWithUnit__input, isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message) ? 'error-input' : '')}`, name: "weight", placeholder: t('babyGrowth.weight'), size: "md", value: String(value), onChange: onChange, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) && e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur() }))) }))),
|
|
4408
|
+
React__default.createElement(Controller, { control: control, name: "head", render: ({ field: { onChange, value }, fieldState: { error } }) => (React__default.createElement(Box, { className: classes.row },
|
|
4409
|
+
React__default.createElement(Box, { className: classes.labelWrapper },
|
|
4410
|
+
React__default.createElement("label", { className: classes.label, htmlFor: "head" },
|
|
4411
|
+
' ',
|
|
4412
|
+
t('babyGrowth.headCircumference'))),
|
|
4413
|
+
React__default.createElement(Box, { className: cx(classes.inputWithUnit__wrapper, classes.control) },
|
|
4414
|
+
React__default.createElement(Input, { className: `${cx(classes.inputWithUnit__input, isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message) ? 'error-input' : '')}`, name: "head", placeholder: "0", size: "md", value: String(value), onChange: onChange, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) && e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur() }),
|
|
4415
|
+
React__default.createElement(Box, { className: classes.inputWithUnit__unit },
|
|
4416
|
+
React__default.createElement(Text, { as: "span", size: "p2", className: classes.inputWithUnit__unitText }, t('babyGrowth.cm')))))) }),
|
|
4417
|
+
React__default.createElement(Controller, { control: control, name: "measurementDate", render: ({ field: { onChange, value }, fieldState: { error } }) => (React__default.createElement(Box, { className: classes.row },
|
|
4418
|
+
React__default.createElement(Box, { className: classes.labelWrapper },
|
|
4419
|
+
React__default.createElement("label", { className: classes.label, htmlFor: "measurementDate" }, t('babyGrowth.input.measurementDate'))),
|
|
4420
|
+
React__default.createElement(DatePicker, { className: classes.control, placeholder: value && dayjs(value).format(DUE_DATE_FORMAT), pickedDate: value || new Date(), displayDateFormat: 'dd/MM/yyyy', onChange: onChange, disabledDays: {
|
|
4421
|
+
after: new Date(),
|
|
4422
|
+
}, customInput: (props) => (React__default.createElement(Input, Object.assign({ className: `${(error === null || error === void 0 ? void 0 : error.message) && 'error-input'}`, name: "measurementDate", size: "md", placeholder: value && dayjs(value).format(DUE_DATE_FORMAT), onChange: onChange, actionIcon: React__default.createElement(Calendar, null) }, props, { value: value && dayjs(value).format(DUE_DATE_FORMAT) }))) }))) }),
|
|
4423
|
+
React__default.createElement(Box, { className: classes.row },
|
|
4424
|
+
React__default.createElement(Button$1, { className: classes.submitBtn, size: "lg", type: "submit", variant: isMarryBaby ? 'secondary' : 'primary', "data-event-category": "Health Tool", "data-event-action": "Baby Growth", "data-event-label": currentUrl }, t('babyGrowth.input.submit')))));
|
|
4425
|
+
};
|
|
4295
4426
|
|
|
4296
4427
|
const StyledBabyGrowthWrapper$1 = styled.div `
|
|
4428
|
+
display: flex;
|
|
4429
|
+
flex-direction: column;
|
|
4430
|
+
gap: 16px;
|
|
4297
4431
|
padding-block: 40px;
|
|
4298
4432
|
|
|
4299
4433
|
&[data-theme='marryBaby'] {
|
|
@@ -4301,11 +4435,6 @@ const StyledBabyGrowthWrapper$1 = styled.div `
|
|
|
4301
4435
|
padding-top: 12px;
|
|
4302
4436
|
}
|
|
4303
4437
|
`;
|
|
4304
|
-
const StyledBabyGrowthForm = styled.form `
|
|
4305
|
-
display: flex;
|
|
4306
|
-
flex-direction: column;
|
|
4307
|
-
gap: 16px;
|
|
4308
|
-
`;
|
|
4309
4438
|
const StyledFormControl = styled.div `
|
|
4310
4439
|
display: flex;
|
|
4311
4440
|
flex-direction: column;
|
|
@@ -4332,6 +4461,81 @@ const StyledRow$2 = styled.div `
|
|
|
4332
4461
|
}
|
|
4333
4462
|
`;
|
|
4334
4463
|
|
|
4464
|
+
const VerticalForm = () => {
|
|
4465
|
+
const { t } = useTranslations();
|
|
4466
|
+
const { control, currentUrl, isEmptyThreeFields, isMarryBaby, siteType } = useContext(BabyGrowthFormContext);
|
|
4467
|
+
return (React__default.createElement(StyledBabyGrowthWrapper$1, { "data-theme": siteType },
|
|
4468
|
+
React__default.createElement(Controller, { control: control, name: "gender", render: ({ field: { onChange, value } }) => (React__default.createElement(BabyGrowthGender, { onChange: onChange, value: value, siteType: siteType })) }),
|
|
4469
|
+
siteType === 'marryBaby' ? (React__default.createElement(React__default.Fragment, null,
|
|
4470
|
+
React__default.createElement(Controller, { control: control, name: "birthday", render: ({ field: { onChange, value }, fieldState: { error } }) => (React__default.createElement(StyledFormControl, null,
|
|
4471
|
+
React__default.createElement(StyledTextField, { label: t('babyGrowth.input.birthday'), name: "birthday", size: "md", value: String(value), CustomInput: React__default.createElement(DatePicker, { onChange: onChange, placeholder: "dd/mm/yyyy", pickedDate: value || new Date(), displayDateFormat: 'dd/MM/yyyy', disabledDays: {
|
|
4472
|
+
after: new Date(),
|
|
4473
|
+
}, customInput: (props) => {
|
|
4474
|
+
return (React__default.createElement(Input, Object.assign({ onChange: onChange, className: (error === null || error === void 0 ? void 0 : error.message) ? 'error-input' : '', name: "birthday", size: "md" }, props, { value: value && dayjs(value).format(DUE_DATE_FORMAT) })));
|
|
4475
|
+
} }), actionIcon: React__default.createElement(CalendarMB, { size: 32 }) }))) }),
|
|
4476
|
+
React__default.createElement(StyledRow$2, null,
|
|
4477
|
+
React__default.createElement(Controller, { control: control, name: "height", render: ({ field: { onChange, value }, fieldState: { error }, }) => (React__default.createElement(StyledFormControl, null,
|
|
4478
|
+
React__default.createElement(StyledTextField, { label: `${t('babyGrowth.height')} ${t('babyGrowth.cm')}`, name: "height", size: "md", value: String(value), CustomInput: React__default.createElement(Input, { className: isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message)
|
|
4479
|
+
? 'error-input'
|
|
4480
|
+
: '', name: "height", size: "md", placeholder: "Nh\u1EADp th\u00F4ng tin", value: String(value), onChange: onChange, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) &&
|
|
4481
|
+
e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur() }) }))) }),
|
|
4482
|
+
React__default.createElement(Controller, { control: control, name: "weight", render: ({ field: { onChange, value }, fieldState: { error }, }) => (React__default.createElement(StyledFormControl, null,
|
|
4483
|
+
React__default.createElement(StyledTextField, { label: `${t('babyGrowth.weight')} ${t('babyGrowth.kg')}`, name: "weight", size: "md", value: String(value), CustomInput: React__default.createElement(Input, { className: isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message)
|
|
4484
|
+
? 'error-input'
|
|
4485
|
+
: '', name: "weight", size: "md", placeholder: "Nh\u1EADp th\u00F4ng tin", value: String(value), onChange: onChange, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) &&
|
|
4486
|
+
e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur() }) }))) })),
|
|
4487
|
+
React__default.createElement(StyledRow$2, null,
|
|
4488
|
+
React__default.createElement(Controller, { control: control, name: "head", render: ({ field: { onChange, value }, fieldState: { error }, }) => (React__default.createElement(StyledFormControl, null,
|
|
4489
|
+
React__default.createElement(StyledTextField, { label: `${t('babyGrowth.headCircumference')} ${t('babyGrowth.cm')}`, name: "head", size: "md", value: String(value), CustomInput: React__default.createElement(Input, { className: isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message)
|
|
4490
|
+
? 'error-input'
|
|
4491
|
+
: '', name: "head", size: "md", value: String(value), onChange: onChange, type: "number", placeholder: "Nh\u1EADp th\u00F4ng tin", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) &&
|
|
4492
|
+
e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur() }) }))) }),
|
|
4493
|
+
React__default.createElement(Controller, { control: control, name: "bmi", render: ({ field: { value } }) => (React__default.createElement(StyledFormControl, null,
|
|
4494
|
+
React__default.createElement(StyledTextField, { label: `${t('babyGrowth.input.bmi')} ${t('babyGrowth.kg.m2')}`, name: "date", size: "md", value: String(value), CustomInput: React__default.createElement(Input, { name: "bmi", size: "md", type: "number", value: String(value), isDisabled: true, style: { color: '#9495A0' } }) }))) })),
|
|
4495
|
+
React__default.createElement(Controller, { control: control, name: "measurementDate", render: ({ field: { onChange, value }, fieldState: { error } }) => (React__default.createElement(StyledFormControl, null,
|
|
4496
|
+
React__default.createElement(StyledTextField, { label: t('babyGrowth.input.measurementDate'), name: "date", size: "md", value: DateToInputValue(value), CustomInput: React__default.createElement(DatePicker, { placeholder: value && dayjs(value).format(DUE_DATE_FORMAT), pickedDate: value || new Date(), displayDateFormat: 'dd/MM/yyyy', onChange: onChange, disabledDays: {
|
|
4497
|
+
after: new Date(),
|
|
4498
|
+
}, customInput: (props) => (React__default.createElement(Input, Object.assign({ className: (error === null || error === void 0 ? void 0 : error.message) && 'error-input', name: "measurementDate", size: "md", placeholder: value && dayjs(value).format(DUE_DATE_FORMAT), onChange: onChange }, props, { value: value && dayjs(value).format(DUE_DATE_FORMAT) }))) }), actionIcon: React__default.createElement(CalendarMB, { size: 32 }) }))) }),
|
|
4499
|
+
React__default.createElement(Button$1, { size: "lg", type: "submit", variant: isMarryBaby ? 'secondary' : 'primary', "data-event-category": "Health Tool", "data-event-action": "Baby Growth", "data-event-label": currentUrl }, t('babyGrowth.input.submit')))) : (React__default.createElement(React__default.Fragment, null,
|
|
4500
|
+
React__default.createElement(Controller, { control: control, name: "birthday", render: ({ field: { onChange, value }, fieldState: { error } }) => (React__default.createElement(StyledFormControl, null,
|
|
4501
|
+
React__default.createElement(StyledInlineLabel, { size: "label1", htmlFor: "birthday" },
|
|
4502
|
+
React__default.createElement(Text, { as: "label", size: "s4", weight: "semiBold" }, t('babyGrowth.input.birthday'))),
|
|
4503
|
+
React__default.createElement(DatePicker, { onChange: onChange, placeholder: "dd/mm/yyyy", pickedDate: value || new Date(), displayDateFormat: 'dd/MM/yyyy', disabledDays: {
|
|
4504
|
+
after: new Date(),
|
|
4505
|
+
}, customInput: (props) => {
|
|
4506
|
+
return (React__default.createElement(Input, Object.assign({ onChange: onChange, className: (error === null || error === void 0 ? void 0 : error.message) ? 'error-input' : '', name: "birthday", size: "md", actionIcon: React__default.createElement(Calendar, null) }, props, { value: value && dayjs(value).format(DUE_DATE_FORMAT) })));
|
|
4507
|
+
} }))) }),
|
|
4508
|
+
React__default.createElement(StyledRow$2, null,
|
|
4509
|
+
React__default.createElement(Controller, { control: control, name: "height", render: ({ field: { onChange, value }, fieldState: { error }, }) => (React__default.createElement(StyledFormControl, null,
|
|
4510
|
+
React__default.createElement(StyledInlineLabel, { size: "label1", htmlFor: "height" },
|
|
4511
|
+
React__default.createElement(Text, { size: "s4", weight: "semiBold" }, t('babyGrowth.height')),
|
|
4512
|
+
React__default.createElement(Text, { as: "span", size: "n1", color: theme.colors.gray400 }, t('babyGrowth.cm'))),
|
|
4513
|
+
React__default.createElement(Input, { className: isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message) ? 'error-input' : '', name: "height", placeholder: "0", size: "md", value: String(value), onChange: onChange, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) && e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur() }))) }),
|
|
4514
|
+
React__default.createElement(Controller, { control: control, name: "weight", render: ({ field: { onChange, value }, fieldState: { error }, }) => (React__default.createElement(StyledFormControl, null,
|
|
4515
|
+
React__default.createElement(StyledInlineLabel, { size: "label1", htmlFor: "weight" },
|
|
4516
|
+
React__default.createElement(Text, { size: "s4", weight: "semiBold" }, t('babyGrowth.weight')),
|
|
4517
|
+
React__default.createElement(Text, { as: "span", size: "n1", color: theme.colors.gray400 }, t('babyGrowth.kg'))),
|
|
4518
|
+
React__default.createElement(Input, { className: isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message) ? 'error-input' : '', name: "weight", placeholder: "0", size: "md", value: String(value), onChange: onChange, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) && e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur() }))) })),
|
|
4519
|
+
React__default.createElement(StyledRow$2, null,
|
|
4520
|
+
React__default.createElement(Controller, { control: control, name: "head", render: ({ field: { onChange, value }, fieldState: { error }, }) => (React__default.createElement(StyledFormControl, null,
|
|
4521
|
+
React__default.createElement(StyledInlineLabel, { size: "label1", htmlFor: "head" },
|
|
4522
|
+
React__default.createElement(Text, { size: "s4", weight: "semiBold" }, t('babyGrowth.headCircumference')),
|
|
4523
|
+
React__default.createElement(Text, { as: "span", size: "n1", color: theme.colors.gray400 }, t('babyGrowth.cm'))),
|
|
4524
|
+
React__default.createElement(Input, { className: isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message) ? 'error-input' : '', name: "head", placeholder: "0", size: "md", value: String(value), onChange: onChange, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) && e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur() }))) }),
|
|
4525
|
+
React__default.createElement(Controller, { control: control, name: "bmi", render: ({ field: { value } }) => (React__default.createElement(StyledFormControl, null,
|
|
4526
|
+
React__default.createElement(StyledInlineLabel, { size: "label1", htmlFor: "bmi" },
|
|
4527
|
+
React__default.createElement(Text, { size: "s4", weight: "semiBold" }, t('babyGrowth.input.bmi')),
|
|
4528
|
+
React__default.createElement(Text, { as: "span", size: "n1", color: theme.colors.gray400 }, t('babyGrowth.kg.m2'))),
|
|
4529
|
+
React__default.createElement(Input, { name: "bmi", size: "md", type: "number", value: String(value), isDisabled: true }))) })),
|
|
4530
|
+
React__default.createElement(Controller, { control: control, name: "measurementDate", render: ({ field: { onChange, value }, fieldState: { error } }) => (React__default.createElement(StyledFormControl, null,
|
|
4531
|
+
React__default.createElement(StyledInlineLabel, { size: "label1", htmlFor: "measurementDate" },
|
|
4532
|
+
React__default.createElement(Text, { as: "label", size: "s4", weight: "semiBold" }, t('babyGrowth.input.measurementDate'))),
|
|
4533
|
+
React__default.createElement(DatePicker, { placeholder: value && dayjs(value).format(DUE_DATE_FORMAT), pickedDate: value || new Date(), displayDateFormat: 'dd/MM/yyyy', onChange: onChange, disabledDays: {
|
|
4534
|
+
after: new Date(),
|
|
4535
|
+
}, customInput: (props) => (React__default.createElement(Input, Object.assign({ className: (error === null || error === void 0 ? void 0 : error.message) && 'error-input', name: "measurementDate", size: "md", placeholder: value && dayjs(value).format(DUE_DATE_FORMAT), onChange: onChange, actionIcon: React__default.createElement(Calendar, null) }, props, { value: value && dayjs(value).format(DUE_DATE_FORMAT) }))) }))) }),
|
|
4536
|
+
React__default.createElement(Button$1, { size: "lg", type: "submit", variant: isMarryBaby ? 'secondary' : 'primary', "data-event-category": "Health Tool", "data-event-action": "Baby Growth", "data-event-label": currentUrl }, t('babyGrowth.input.submit'))))));
|
|
4537
|
+
};
|
|
4538
|
+
|
|
4335
4539
|
/**
|
|
4336
4540
|
* Using {@link Intl.NumberFormat} to covert a number to string base on its locale
|
|
4337
4541
|
* @param {number} num - Number to convert
|
|
@@ -4365,8 +4569,7 @@ const bmiCalculate = (height = 0, weight = 0) => {
|
|
|
4365
4569
|
return 0;
|
|
4366
4570
|
};
|
|
4367
4571
|
|
|
4368
|
-
const BabyGrowthForm = ({ onSubmit, onError, schema, siteType, }) => {
|
|
4369
|
-
const { t } = useTranslations();
|
|
4572
|
+
const BabyGrowthForm = ({ onSubmit, onError, schema, siteType, layout = 'vertical', }) => {
|
|
4370
4573
|
const _theme = useMantineTheme();
|
|
4371
4574
|
const isMarryBaby = _theme.other.template === 'mb';
|
|
4372
4575
|
const { control, setValue, watch, handleSubmit, formState: { isSubmitted }, } = useForm({
|
|
@@ -4393,87 +4596,14 @@ const BabyGrowthForm = ({ onSubmit, onError, schema, siteType, }) => {
|
|
|
4393
4596
|
else
|
|
4394
4597
|
return '';
|
|
4395
4598
|
}, []);
|
|
4396
|
-
return (React__default.createElement(
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
}, customInput: (props) => {
|
|
4405
|
-
return (React__default.createElement(Input, Object.assign({ onChange: onChange, className: (error === null || error === void 0 ? void 0 : error.message) ? 'error-input' : '', name: "birthday", size: "md" }, props, { value: value && dayjs(value).format(DUE_DATE_FORMAT) })));
|
|
4406
|
-
} }), actionIcon: React__default.createElement(CalendarMB, { size: 32 }) }))) }),
|
|
4407
|
-
React__default.createElement(StyledRow$2, null,
|
|
4408
|
-
React__default.createElement(Controller, { control: control, name: "height", render: ({ field: { onChange, value }, fieldState: { error }, }) => (React__default.createElement(StyledFormControl, null,
|
|
4409
|
-
React__default.createElement(StyledTextField, { label: `${t('babyGrowth.height')} ${t('babyGrowth.cm')}`, name: "height", size: "md", value: String(value), CustomInput: React__default.createElement(Input, { className: isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message)
|
|
4410
|
-
? 'error-input'
|
|
4411
|
-
: '', name: "height", size: "md", placeholder: "Nh\u1EADp th\u00F4ng tin", value: String(value), onChange: onChange, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) &&
|
|
4412
|
-
e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur() }) }))) }),
|
|
4413
|
-
React__default.createElement(Controller, { control: control, name: "weight", render: ({ field: { onChange, value }, fieldState: { error }, }) => (React__default.createElement(StyledFormControl, null,
|
|
4414
|
-
React__default.createElement(StyledTextField, { label: `${t('babyGrowth.weight')} ${t('babyGrowth.kg')}`, name: "weight", size: "md", value: String(value), CustomInput: React__default.createElement(Input, { className: isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message)
|
|
4415
|
-
? 'error-input'
|
|
4416
|
-
: '', name: "weight", size: "md", placeholder: "Nh\u1EADp th\u00F4ng tin", value: String(value), onChange: onChange, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) &&
|
|
4417
|
-
e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur() }) }))) })),
|
|
4418
|
-
React__default.createElement(StyledRow$2, null,
|
|
4419
|
-
React__default.createElement(Controller, { control: control, name: "head", render: ({ field: { onChange, value }, fieldState: { error }, }) => (React__default.createElement(StyledFormControl, null,
|
|
4420
|
-
React__default.createElement(StyledTextField, { label: `${t('babyGrowth.headCircumference')} ${t('babyGrowth.cm')}`, name: "head", size: "md", value: String(value), CustomInput: React__default.createElement(Input, { className: isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message)
|
|
4421
|
-
? 'error-input'
|
|
4422
|
-
: '', name: "head", size: "md", value: String(value), onChange: onChange, type: "number", placeholder: "Nh\u1EADp th\u00F4ng tin", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) &&
|
|
4423
|
-
e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur() }) }))) }),
|
|
4424
|
-
React__default.createElement(Controller, { control: control, name: "bmi", render: ({ field: { value } }) => (React__default.createElement(StyledFormControl, null,
|
|
4425
|
-
React__default.createElement(StyledTextField, { label: `${t('babyGrowth.input.bmi')} ${t('babyGrowth.kg.m2')}`, name: "date", size: "md", value: String(value), CustomInput: React__default.createElement(Input, { name: "bmi", size: "md", type: "number", value: String(value), isDisabled: true, style: { color: '#9495A0' } }) }))) })),
|
|
4426
|
-
React__default.createElement(Controller, { control: control, name: "measurementDate", render: ({ field: { onChange, value }, fieldState: { error }, }) => (React__default.createElement(StyledFormControl, null,
|
|
4427
|
-
React__default.createElement(StyledTextField, { label: t('babyGrowth.input.measurementDate'), name: "date", size: "md", value: DateToInputValue(value), CustomInput: React__default.createElement(DatePicker, { placeholder: value && dayjs(value).format(DUE_DATE_FORMAT), pickedDate: value || new Date(), displayDateFormat: 'dd/MM/yyyy', onChange: onChange, disabledDays: {
|
|
4428
|
-
after: new Date(),
|
|
4429
|
-
}, customInput: (props) => (React__default.createElement(Input, Object.assign({ className: (error === null || error === void 0 ? void 0 : error.message) && 'error-input', name: "measurementDate", size: "md", placeholder: value && dayjs(value).format(DUE_DATE_FORMAT), onChange: onChange }, props, { value: value && dayjs(value).format(DUE_DATE_FORMAT) }))) }), actionIcon: React__default.createElement(CalendarMB, { size: 32 }) }))) }),
|
|
4430
|
-
React__default.createElement(Button$1, { size: "lg", type: "submit", variant: isMarryBaby ? 'secondary' : 'primary', "data-event-category": "Health Tool", "data-event-action": "Baby Growth", "data-event-label": currentUrl }, t('babyGrowth.input.submit')))) : (React__default.createElement(React__default.Fragment, null,
|
|
4431
|
-
React__default.createElement(Controller, { control: control, name: "birthday", render: ({ field: { onChange, value }, fieldState: { error }, }) => (React__default.createElement(StyledFormControl, null,
|
|
4432
|
-
React__default.createElement(StyledInlineLabel, { size: "label1", htmlFor: "birthday" },
|
|
4433
|
-
React__default.createElement(Text, { as: "label", size: "s4", weight: "semiBold" }, t('babyGrowth.input.birthday'))),
|
|
4434
|
-
React__default.createElement(DatePicker, { onChange: onChange, placeholder: "dd/mm/yyyy", pickedDate: value || new Date(), displayDateFormat: 'dd/MM/yyyy', disabledDays: {
|
|
4435
|
-
after: new Date(),
|
|
4436
|
-
}, customInput: (props) => {
|
|
4437
|
-
return (React__default.createElement(Input, Object.assign({ onChange: onChange, className: (error === null || error === void 0 ? void 0 : error.message) ? 'error-input' : '', name: "birthday", size: "md", actionIcon: React__default.createElement(Calendar, null) }, props, { value: value && dayjs(value).format(DUE_DATE_FORMAT) })));
|
|
4438
|
-
} }))) }),
|
|
4439
|
-
React__default.createElement(StyledRow$2, null,
|
|
4440
|
-
React__default.createElement(Controller, { control: control, name: "height", render: ({ field: { onChange, value }, fieldState: { error }, }) => (React__default.createElement(StyledFormControl, null,
|
|
4441
|
-
React__default.createElement(StyledInlineLabel, { size: "label1", htmlFor: "height" },
|
|
4442
|
-
React__default.createElement(Text, { size: "s4", weight: "semiBold" }, t('babyGrowth.height')),
|
|
4443
|
-
React__default.createElement(Text, { as: "span", size: "n1", color: theme.colors.gray400 }, t('babyGrowth.cm'))),
|
|
4444
|
-
React__default.createElement(Input, { className: isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message)
|
|
4445
|
-
? 'error-input'
|
|
4446
|
-
: '', name: "height", placeholder: "0", size: "md", value: String(value), onChange: onChange, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) &&
|
|
4447
|
-
e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur() }))) }),
|
|
4448
|
-
React__default.createElement(Controller, { control: control, name: "weight", render: ({ field: { onChange, value }, fieldState: { error }, }) => (React__default.createElement(StyledFormControl, null,
|
|
4449
|
-
React__default.createElement(StyledInlineLabel, { size: "label1", htmlFor: "weight" },
|
|
4450
|
-
React__default.createElement(Text, { size: "s4", weight: "semiBold" }, t('babyGrowth.weight')),
|
|
4451
|
-
React__default.createElement(Text, { as: "span", size: "n1", color: theme.colors.gray400 }, t('babyGrowth.kg'))),
|
|
4452
|
-
React__default.createElement(Input, { className: isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message)
|
|
4453
|
-
? 'error-input'
|
|
4454
|
-
: '', name: "weight", placeholder: "0", size: "md", value: String(value), onChange: onChange, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) &&
|
|
4455
|
-
e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur() }))) })),
|
|
4456
|
-
React__default.createElement(StyledRow$2, null,
|
|
4457
|
-
React__default.createElement(Controller, { control: control, name: "head", render: ({ field: { onChange, value }, fieldState: { error }, }) => (React__default.createElement(StyledFormControl, null,
|
|
4458
|
-
React__default.createElement(StyledInlineLabel, { size: "label1", htmlFor: "head" },
|
|
4459
|
-
React__default.createElement(Text, { size: "s4", weight: "semiBold" }, t('babyGrowth.headCircumference')),
|
|
4460
|
-
React__default.createElement(Text, { as: "span", size: "n1", color: theme.colors.gray400 }, t('babyGrowth.cm'))),
|
|
4461
|
-
React__default.createElement(Input, { className: isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message)
|
|
4462
|
-
? 'error-input'
|
|
4463
|
-
: '', name: "head", placeholder: "0", size: "md", value: String(value), onChange: onChange, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) &&
|
|
4464
|
-
e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur() }))) }),
|
|
4465
|
-
React__default.createElement(Controller, { control: control, name: "bmi", render: ({ field: { value } }) => (React__default.createElement(StyledFormControl, null,
|
|
4466
|
-
React__default.createElement(StyledInlineLabel, { size: "label1", htmlFor: "bmi" },
|
|
4467
|
-
React__default.createElement(Text, { size: "s4", weight: "semiBold" }, t('babyGrowth.input.bmi')),
|
|
4468
|
-
React__default.createElement(Text, { as: "span", size: "n1", color: theme.colors.gray400 }, t('babyGrowth.kg.m2'))),
|
|
4469
|
-
React__default.createElement(Input, { name: "bmi", size: "md", type: "number", value: String(value), isDisabled: true }))) })),
|
|
4470
|
-
React__default.createElement(Controller, { control: control, name: "measurementDate", render: ({ field: { onChange, value }, fieldState: { error }, }) => (React__default.createElement(StyledFormControl, null,
|
|
4471
|
-
React__default.createElement(StyledInlineLabel, { size: "label1", htmlFor: "measurementDate" },
|
|
4472
|
-
React__default.createElement(Text, { as: "label", size: "s4", weight: "semiBold" }, t('babyGrowth.input.measurementDate'))),
|
|
4473
|
-
React__default.createElement(DatePicker, { placeholder: value && dayjs(value).format(DUE_DATE_FORMAT), pickedDate: value || new Date(), displayDateFormat: 'dd/MM/yyyy', onChange: onChange, disabledDays: {
|
|
4474
|
-
after: new Date(),
|
|
4475
|
-
}, customInput: (props) => (React__default.createElement(Input, Object.assign({ className: (error === null || error === void 0 ? void 0 : error.message) && 'error-input', name: "measurementDate", size: "md", placeholder: value && dayjs(value).format(DUE_DATE_FORMAT), onChange: onChange, actionIcon: React__default.createElement(Calendar, null) }, props, { value: value && dayjs(value).format(DUE_DATE_FORMAT) }))) }))) }),
|
|
4476
|
-
React__default.createElement(Button$1, { size: "lg", type: "submit", variant: isMarryBaby ? 'secondary' : 'primary', "data-event-category": "Health Tool", "data-event-action": "Baby Growth", "data-event-label": currentUrl }, t('babyGrowth.input.submit'))))))));
|
|
4599
|
+
return (React__default.createElement(BabyGrowthFormContext.Provider, { value: {
|
|
4600
|
+
isEmptyThreeFields,
|
|
4601
|
+
control,
|
|
4602
|
+
currentUrl,
|
|
4603
|
+
isMarryBaby,
|
|
4604
|
+
siteType,
|
|
4605
|
+
} },
|
|
4606
|
+
React__default.createElement("form", { onSubmit: handleSubmit(onSubmit, onError) }, layout === 'vertical' ? React__default.createElement(VerticalForm, null) : React__default.createElement(HorizonalForm, null))));
|
|
4477
4607
|
};
|
|
4478
4608
|
|
|
4479
4609
|
const StyledBabyGrowthWrapper = styled.div `
|
|
@@ -4521,19 +4651,28 @@ styled(ToolsBannerCard) `
|
|
|
4521
4651
|
}
|
|
4522
4652
|
`;
|
|
4523
4653
|
|
|
4524
|
-
const
|
|
4525
|
-
var _a,
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
CommonGAssets.getAssetPath('health-tools/toolsIconBabyGrowth.svg'), loading: "lazy" }), heading: (babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.title) || '', medicalReview: {
|
|
4529
|
-
link: (_a = babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.reviewBy) === null || _a === void 0 ? void 0 : _a.link,
|
|
4530
|
-
reviewer: (_b = babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.reviewBy) === null || _b === void 0 ? void 0 : _b.reviewer.trim(),
|
|
4531
|
-
date: (_c = babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.reviewBy) === null || _c === void 0 ? void 0 : _c.date,
|
|
4532
|
-
}, isMobile: isMobile }),
|
|
4533
|
-
React__default.createElement(StyledBabyGrowthWrapper, { "data-theme": siteType },
|
|
4534
|
-
React__default.createElement(StyleForm, { siteType: siteType, schema: schema, className: className, onSubmit: onSubmit, onError: onError }))));
|
|
4654
|
+
const Form = (_a) => {
|
|
4655
|
+
var form = __rest(_a, []);
|
|
4656
|
+
const { formLayout, siteType, schema, onSubmit, onError } = useContext(BabyGrowthEmbedContext);
|
|
4657
|
+
return (React__default.createElement(StyleForm, Object.assign({ siteType: siteType, schema: schema, onSubmit: onSubmit, onError: onError, layout: formLayout }, form)));
|
|
4535
4658
|
};
|
|
4536
4659
|
|
|
4660
|
+
const _BabyGrowthCardEmbed = ({ isMobile, onSubmit, onError, schema, babyGrowthContent, siteType, children, formLayout, }) => {
|
|
4661
|
+
var _a, _b, _c;
|
|
4662
|
+
return (React__default.createElement(BabyGrowthEmbedContext.Provider, { value: { formLayout, siteType, schema, onSubmit, onError } }, children || (React__default.createElement(React__default.Fragment, null,
|
|
4663
|
+
React__default.createElement(StyledContainer$3, { "babyGrowthContent-is-mobile": isMobile, "data-site": siteType },
|
|
4664
|
+
React__default.createElement(ToolsBannerCard, { siteType: siteType, bannerUrl: CommonGAssets.getAssetPath('embedToolBannerBlue.svg'), bannerUrlLarge: CommonGAssets.getAssetPath('embedToolBannerBlue.svg'), bannerColor: siteType === 'marryBaby' && theme.mbColors.mint, isEmbeded: true, icon: React__default.createElement("img", { className: "embedded-icon", alt: "health-tool-icon", src: (babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.featuredImage) ||
|
|
4665
|
+
CommonGAssets.getAssetPath('health-tools/toolsIconBabyGrowth.svg'), loading: "lazy" }), heading: (babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.title) || '', medicalReview: {
|
|
4666
|
+
link: (_a = babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.reviewBy) === null || _a === void 0 ? void 0 : _a.link,
|
|
4667
|
+
reviewer: (_b = babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.reviewBy) === null || _b === void 0 ? void 0 : _b.reviewer.trim(),
|
|
4668
|
+
date: (_c = babyGrowthContent === null || babyGrowthContent === void 0 ? void 0 : babyGrowthContent.reviewBy) === null || _c === void 0 ? void 0 : _c.date,
|
|
4669
|
+
}, isMobile: isMobile }),
|
|
4670
|
+
React__default.createElement(StyledBabyGrowthWrapper, { "data-theme": siteType },
|
|
4671
|
+
React__default.createElement(Form, { layout: formLayout })))))));
|
|
4672
|
+
};
|
|
4673
|
+
const BabyGrowthCardEmbed = _BabyGrowthCardEmbed;
|
|
4674
|
+
BabyGrowthCardEmbed.Form = Form;
|
|
4675
|
+
|
|
4537
4676
|
var useStyles$1 = createStyles((theme, params) => {
|
|
4538
4677
|
const { isMarryBaby, isSide, direction } = params;
|
|
4539
4678
|
return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as __rest } from './tslib.es6-
|
|
1
|
+
import { _ as __rest } from './tslib.es6-bb26aeee.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { t as theme } from './theme-
|
|
4
|
-
import { S as Share, E as Eye, W as WhatsApp, k as Spinner } from './utils-
|
|
3
|
+
import { t as theme } from './theme-dde5133f.js';
|
|
4
|
+
import { S as Share, E as Eye, W as WhatsApp, k as Spinner } from './utils-e1dc7d7c.js';
|
|
5
5
|
|
|
6
6
|
const ArrowRightTail = (_a) => {
|
|
7
7
|
var { size = 24, color: colorInit = theme.colors.gray600, useCurrentColor, isActive, activeColor = theme.colors.primaryBase } = _a, rest = __rest(_a, ["size", "color", "useCurrentColor", "isActive", "activeColor"]);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React__default, { useState, useEffect } from 'react';
|
|
2
|
-
import { L as LOCALE } from './Subot-
|
|
3
|
-
import { C as CommonGAssets } from './index-
|
|
4
|
-
import { i as isChristmas, a as LunarNewYearLocale, b as isLunarNewYear, c as isNewYear, d as isRamadan, e as isVNHungKing, f as isVN3004, g as isLabourDay, S as StyledLogo, L as LogoIcon, h as StyledProLogo } from './utils-
|
|
5
|
-
import { I as ImageWrap } from './index-
|
|
2
|
+
import { L as LOCALE } from './Subot-d0129b23.js';
|
|
3
|
+
import { C as CommonGAssets } from './index-bf08fbea.js';
|
|
4
|
+
import { i as isChristmas, a as LunarNewYearLocale, b as isLunarNewYear, c as isNewYear, d as isRamadan, e as isVNHungKing, f as isVN3004, g as isLabourDay, S as StyledLogo, L as LogoIcon, h as StyledProLogo } from './utils-fee79004.js';
|
|
5
|
+
import { I as ImageWrap } from './index-2e33da66.js';
|
|
6
6
|
|
|
7
7
|
const Logo = ({ type, className, style, isLightLogo, customSize, badge, locale, dateForSeasonal, isPro, }) => {
|
|
8
8
|
const [seasonalChecks, setSeasonalChecks] = useState({
|