@hhgtech/hhg-components 1.28.43 → 1.28.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/babyGrowth.d.ts +1 -0
- package/build/babyGrowth.js +2 -2
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components/molecules/embeddedHeathToolCards/baby-growth/index.styled.d.ts +3 -3
- package/build/components.js +1 -1
- package/build/{constants-9ff7fa1b.js → constants-715f497a.js} +1 -1
- package/build/{constants-f6da7136.js → constants-eed0df85.js} +1 -1
- package/build/constants.d.ts +1 -0
- package/build/constants.js +1 -1
- package/build/{core-f2d7c99e.js → core-053d2b2b.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.d.ts +1 -0
- package/build/esm/babyGrowth.js +2 -2
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components/molecules/embeddedHeathToolCards/baby-growth/index.styled.d.ts +3 -3
- package/build/esm/components.js +1 -1
- package/build/esm/{constants-85abf596.js → constants-474a60fc.js} +1 -1
- package/build/esm/{constants-5d98e4d5.js → constants-995212e1.js} +1 -1
- package/build/esm/constants.d.ts +1 -0
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-38e093fd.js → core-a9271475.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/footer.d.ts +1 -0
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.d.ts +1 -0
- package/build/esm/gAssets.js +1 -1
- package/build/esm/{getDynamicHealthTool-7628cda2.js → getDynamicHealthTool-9b662a1a.js} +1 -1
- package/build/esm/getSocialList-2b54a130.js +1 -0
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/i18nV2.d.ts +1 -0
- package/build/esm/i18nV2.js +1 -1
- package/build/esm/{index-9c8f36d7.js → index-1cfc85b4.js} +1 -1
- package/build/esm/index-2eaf28c4.js +1 -0
- package/build/esm/index-303e2009.js +1 -0
- package/build/esm/index-3c4ac2ae.js +1 -0
- package/build/esm/{index-b7259742.js → index-4bc5ecbb.js} +1 -1
- package/build/esm/{index-79c5e9e2.js → index-4cc27c0a.js} +9 -9
- package/build/esm/index-55d2faa0.js +1 -0
- package/build/esm/index-608b4a88.js +177 -0
- package/build/esm/index-6f066011.js +1 -0
- package/build/esm/index-7678ada1.js +1 -0
- package/build/esm/index-95a46cf3.js +1 -0
- package/build/esm/index-993a5f79.js +1 -0
- package/build/esm/{index-84ef6920.js → index-a2dcf4e9.js} +1 -1
- package/build/esm/{index-07cfe51c.js → index-a454d80b.js} +1 -1
- package/build/esm/{index-687c2d3e.js → index-ab03b9dd.js} +1 -1
- package/build/esm/{index-9a2fec7d.js → index-baaa911b.js} +1 -1
- package/build/esm/index-be8e7751.js +1 -0
- package/build/esm/{index-238133cc.js → index-cc519ac7.js} +11 -11
- package/build/esm/{index-0ed64ffc.js → index-cd710e7d.js} +1 -1
- package/build/esm/index-d17ea22d.js +1 -0
- package/build/esm/index-d343bc50.js +1 -0
- package/build/esm/index-fdc4fb0f.js +1 -0
- package/build/esm/index-ff10bc28.js +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-9ba7adb1.js → index.styled-156505c7.js} +10 -10
- package/build/esm/{index.styled-31401937.js → index.styled-3e11e657.js} +1 -1
- package/build/esm/{index.styled-2cb37273.js → index.styled-4098b19f.js} +1 -1
- package/build/esm/{index.styled-23636d0c.js → index.styled-be084b87.js} +6 -6
- package/build/esm/{index.styles-1daf0862.js → index.styles-caebb95e.js} +1 -1
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.d.ts +1 -0
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.d.ts +1 -0
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboardingV2.d.ts +1 -0
- package/build/esm/onboardingV2.js +34 -34
- package/build/esm/pwg.d.ts +1 -0
- package/build/esm/pwg.js +3 -3
- package/build/esm/{routing-f971bd88.js → routing-d3019505.js} +1 -1
- package/build/esm/subot.js +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{types-f381c6b6.js → types-56ff87b5.js} +1 -1
- package/build/esm/types-f3a821e7.js +1 -0
- package/build/esm/types.d.ts +1 -0
- package/build/esm/types.js +1 -1
- package/build/esm/unifyEnv.d.ts +1 -0
- package/build/esm/{useCategory-f42bda24.js → useCategory-e47c3929.js} +1 -1
- package/build/esm/{useHealthToolCache-016329de.js → useHealthToolCache-4a39e9dc.js} +1 -1
- package/build/esm/{usePlacesAutocomplete-fa51f662.js → usePlacesAutocomplete-80551f6b.js} +1 -1
- package/build/esm/{useRafState-7b769992.js → useRafState-8fe79e7a.js} +1 -1
- package/build/esm/{useTranslations-116d7e1c.js → useTranslations-2b415154.js} +1 -1
- package/build/esm/{utils-c45d0c03.js → utils-6577ea25.js} +1 -1
- package/build/esm/{utils-7cbce686.js → utils-9dae9f7b.js} +1 -1
- package/build/esm/vaccination.d.ts +1 -0
- package/build/esm/vaccination.js +1 -1
- package/build/footer.d.ts +1 -0
- package/build/footer.js +1 -1
- package/build/gAssets.d.ts +1 -0
- package/build/gAssets.js +1 -1
- package/build/{getDynamicHealthTool-a33d2fb8.js → getDynamicHealthTool-ecfb21b0.js} +1 -1
- package/build/getSocialList-b951173d.js +1 -0
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.d.ts +1 -0
- package/build/i18nV2.js +1 -1
- package/build/index-0988dfe4.js +1 -0
- package/build/index-0f3e6076.js +1 -0
- package/build/{index-5974dfa0.js → index-10d9fdff.js} +11 -11
- package/build/{index-1cec8336.js → index-24113bb4.js} +1 -1
- package/build/index-3489608d.js +1 -0
- package/build/index-4bfad06d.js +1 -0
- package/build/index-5f2adc06.js +1 -0
- package/build/index-6e685d2b.js +1 -0
- package/build/{index-1f435207.js → index-718b4bad.js} +1 -1
- package/build/{index-05474ea8.js → index-72cfe602.js} +1 -1
- package/build/index-7b85f299.js +1 -0
- package/build/{index-12d029f5.js → index-901812ad.js} +1 -1
- package/build/{index-2f52dff0.js → index-b23382c3.js} +1 -1
- package/build/index-b3478b6c.js +1 -0
- package/build/index-c22d32f6.js +1 -0
- package/build/index-cdf087ee.js +1 -0
- package/build/{index-4836150c.js → index-d14172a4.js} +1 -1
- package/build/{index-08dc9287.js → index-d74ab92f.js} +1 -1
- package/build/{index-279bc498.js → index-db0da298.js} +1 -1
- package/build/{index-bde6d592.js → index-f1338b36.js} +1 -1
- package/build/index-f4356d3b.js +1 -0
- package/build/index-f85e80c5.js +1 -0
- package/build/{index-fb1b5177.js → index-fe775c96.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-e7790b5f.js → index.styled-2bb5f5a2.js} +1 -1
- package/build/index.styled-39310ce9.js +50 -0
- package/build/{index.styled-d477af69.js → index.styled-3a1748a5.js} +1 -1
- package/build/{index.styled-06f12a63.js → index.styled-75539e3d.js} +5 -5
- package/build/{index.styles-6cd2c3c7.js → index.styles-d3c65e64.js} +1 -1
- package/build/lead.js +1 -1
- package/build/mantine.d.ts +1 -0
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.d.ts +1 -0
- package/build/navigation.js +1 -1
- package/build/onboardingV2.d.ts +1 -0
- package/build/onboardingV2.js +7 -7
- package/build/pwg.d.ts +1 -0
- package/build/pwg.js +2 -2
- package/build/{routing-331f4a5b.js → routing-9c9a4f25.js} +1 -1
- package/build/subot.js +1 -1
- package/build/together.js +1 -1
- package/build/types-582a67ed.js +1 -0
- package/build/{types-357e5b0b.js → types-adecb2ce.js} +1 -1
- package/build/types.d.ts +1 -0
- package/build/types.js +1 -1
- package/build/unifyEnv.d.ts +1 -0
- package/build/{useCategory-1c956018.js → useCategory-957ea2a8.js} +1 -1
- package/build/useHealthToolCache-260b51e2.js +1 -0
- package/build/{usePlacesAutocomplete-703b88a8.js → usePlacesAutocomplete-39be4478.js} +1 -1
- package/build/{useRafState-6d8e461b.js → useRafState-8a41d548.js} +1 -1
- package/build/{useTranslations-cab885cb.js → useTranslations-1ddacded.js} +1 -1
- package/build/{utils-2fcd1a59.js → utils-871f6c88.js} +1 -1
- package/build/utils-a5d09d21.js +1 -0
- package/build/vaccination.d.ts +1 -0
- package/build/vaccination.js +1 -1
- package/package.json +8 -39
- package/build/esm/getSocialList-d04d33a6.js +0 -1
- package/build/esm/index-030b74b1.js +0 -1
- package/build/esm/index-11326696.js +0 -1
- package/build/esm/index-21588c20.js +0 -1
- package/build/esm/index-3005a9b8.js +0 -1
- package/build/esm/index-628f0a1f.js +0 -1
- package/build/esm/index-63d19692.js +0 -1
- package/build/esm/index-64c30542.js +0 -1
- package/build/esm/index-8ffed668.js +0 -1
- package/build/esm/index-9748526f.js +0 -1
- package/build/esm/index-a83990c1.js +0 -1
- package/build/esm/index-b7930374.js +0 -1
- package/build/esm/index-b8f3b490.js +0 -177
- package/build/esm/index-e013bfee.js +0 -1
- package/build/esm/types-0bd1fb11.js +0 -1
- package/build/getSocialList-67170fee.js +0 -1
- package/build/index-0a3025ff.js +0 -1
- package/build/index-132b26af.js +0 -1
- package/build/index-5595d0c7.js +0 -1
- package/build/index-600a65a9.js +0 -1
- package/build/index-84d90e92.js +0 -1
- package/build/index-8c4de975.js +0 -1
- package/build/index-8d286f70.js +0 -1
- package/build/index-9f4abb05.js +0 -1
- package/build/index-ecb42d5e.js +0 -1
- package/build/index-f3a583eb.js +0 -1
- package/build/index-f87d2fbc.js +0 -1
- package/build/index.styled-704638b7.js +0 -50
- package/build/types-77c27b51.js +0 -1
- package/build/useHealthToolCache-6e0e2e30.js +0 -1
- package/build/utils-27b57bb7.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-9cc2510c.js → BMI_BOYS.percentile.monthly-3ccdbf2f.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-692710e9.js → BMI_BOYS.percentile.weekly-003704d5.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-5aebed74.js → BMI_BOYS.percentile.yearly-51f6c930.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-e6ac579f.js → BMI_BOYS.zscore.monthly-05504085.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-f95663f1.js → BMI_BOYS.zscore.weekly-2a93a8db.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-4e9a7298.js → BMI_BOYS.zscore.yearly-37291e62.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-8fa5e4ec.js → BMI_GIRLS.percentile.monthly-97288e63.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-f647c1c9.js → BMI_GIRLS.percentile.weekly-c701d6ff.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-858e6e45.js → BMI_GIRLS.percentile.yearly-edee3575.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-4d8e13c7.js → BMI_GIRLS.zscore.monthly-0ac77300.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-71f34d34.js → BMI_GIRLS.zscore.weekly-f726c4f9.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-a03a4d31.js → BMI_GIRLS.zscore.yearly-c1af9dbd.js} +0 -0
- /package/build/{ChevronDown-1e276d28.js → ChevronDown-e26b6333.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-1a7a0681.js → HEAD CIRCUM_BOYS.percentile.monthly-c1dbc6d4.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-15b9bcec.js → HEAD CIRCUM_BOYS.percentile.weekly-9c97d194.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-e78fce40.js → HEAD CIRCUM_BOYS.percentile.yearly-84f770fb.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-3e0c7ce4.js → HEAD CIRCUM_BOYS.zscore.monthly-8522b577.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-46c367b6.js → HEAD CIRCUM_BOYS.zscore.weekly-d05b4957.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-6018c6e7.js → HEAD CIRCUM_BOYS.zscore.yearly-d1d2d682.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-e2ae302a.js → HEAD CIRCUM_GIRLS.percentile.monthly-bc7f8e45.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-36366a49.js → HEAD CIRCUM_GIRLS.percentile.weekly-e24f18fa.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-6e68722b.js → HEAD CIRCUM_GIRLS.percentile.yearly-65fe9b8f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-55f96e4e.js → HEAD CIRCUM_GIRLS.zscore.monthly-cc51585e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-7dcc2ac4.js → HEAD CIRCUM_GIRLS.zscore.weekly-0cdef99a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-baa8f67b.js → HEAD CIRCUM_GIRLS.zscore.yearly-b4df0cb2.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-0a42692d.js → HEIGHT_BOYS.percentile.monthly-42701f3c.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-2154d02b.js → HEIGHT_BOYS.percentile.weekly-dde65fbd.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-2c025a71.js → HEIGHT_BOYS.percentile.yearly-00d00cf7.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-abee47ca.js → HEIGHT_BOYS.zscore.monthly-9b22b188.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-b7f41f17.js → HEIGHT_BOYS.zscore.weekly-1e042b69.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-72abe158.js → HEIGHT_BOYS.zscore.yearly-0c232fd2.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-72697b74.js → HEIGHT_GIRLS.percentile.monthly-1dc63069.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-2b306227.js → HEIGHT_GIRLS.percentile.weekly-4b58bd05.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-9a448ec4.js → HEIGHT_GIRLS.percentile.yearly-9fc93f07.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-36f3290a.js → HEIGHT_GIRLS.zscore.monthly-35400da4.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-21bab2ed.js → HEIGHT_GIRLS.zscore.weekly-dd1f44e2.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-7ef5ecbd.js → HEIGHT_GIRLS.zscore.yearly-a69b75ca.js} +0 -0
- /package/build/{Subot-a5b86b08.js → Subot-695ffc58.js} +0 -0
- /package/build/{Visible-184a596d.js → Visible-72e550ed.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-a6d875ec.js → WEIGHT_BOYS.percentile.monthly-2dea455a.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-5fe17517.js → WEIGHT_BOYS.percentile.weekly-184f141e.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-d1fb5b72.js → WEIGHT_BOYS.percentile.yearly-c9e8aaf8.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-35be61f3.js → WEIGHT_BOYS.zscore.monthly-c9f03466.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-5bd8b8e1.js → WEIGHT_BOYS.zscore.weekly-413af608.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-1cb85d26.js → WEIGHT_BOYS.zscore.yearly-fd8ddd34.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-f1e12499.js → WEIGHT_GIRLS.percentile.monthly-b78e414e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-c03e8ce3.js → WEIGHT_GIRLS.percentile.weekly-6979e7ca.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-0ac4286a.js → WEIGHT_GIRLS.percentile.yearly-be5d12e7.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-4e12ef66.js → WEIGHT_GIRLS.zscore.monthly-28299624.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-e4592090.js → WEIGHT_GIRLS.zscore.weekly-8584439e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-4f6fb733.js → WEIGHT_GIRLS.zscore.yearly-2e04a2a2.js} +0 -0
- /package/build/{cookieHelper-163362fb.js → cookieHelper-2e8bb9fa.js} +0 -0
- /package/build/{dataTransform-daeb4525.js → dataTransform-d5d1a86d.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-c75a3762.js → BMI_BOYS.percentile.monthly-486f83ee.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-2ef13411.js → BMI_BOYS.percentile.weekly-fd3c15c3.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-2bba5948.js → BMI_BOYS.percentile.yearly-da6eb7ec.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-a4b4ecbb.js → BMI_BOYS.zscore.monthly-62d445f2.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-ba01e65b.js → BMI_BOYS.zscore.weekly-f67c90eb.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-274dfd59.js → BMI_BOYS.zscore.yearly-b1a41fe8.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-c6b5574d.js → BMI_GIRLS.percentile.monthly-66a216cc.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-11d8b777.js → BMI_GIRLS.percentile.weekly-b46429d6.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-df341bf9.js → BMI_GIRLS.percentile.yearly-6a6af348.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-7c820da5.js → BMI_GIRLS.zscore.monthly-41bb8c08.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-80e50845.js → BMI_GIRLS.zscore.weekly-04eb8b89.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-c021f327.js → BMI_GIRLS.zscore.yearly-099feda2.js} +0 -0
- /package/build/esm/{ChevronDown-24b51a09.js → ChevronDown-c2b4123b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-68c70b39.js → HEAD CIRCUM_BOYS.percentile.monthly-53d11c4f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-bc0d4d64.js → HEAD CIRCUM_BOYS.percentile.weekly-19dae757.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-d8cb1776.js → HEAD CIRCUM_BOYS.percentile.yearly-e744f2ee.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-4753bd6f.js → HEAD CIRCUM_BOYS.zscore.monthly-12b76190.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-8883e4ad.js → HEAD CIRCUM_BOYS.zscore.weekly-a62a347c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-221b6e44.js → HEAD CIRCUM_BOYS.zscore.yearly-d1c96a90.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-dc898f27.js → HEAD CIRCUM_GIRLS.percentile.monthly-52e91c35.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-d4d97499.js → HEAD CIRCUM_GIRLS.percentile.weekly-51fd4b94.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-abc1f5c2.js → HEAD CIRCUM_GIRLS.percentile.yearly-fb3c718e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-a0948f58.js → HEAD CIRCUM_GIRLS.zscore.monthly-8d54ac23.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-25912862.js → HEAD CIRCUM_GIRLS.zscore.weekly-17722148.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-83b7d679.js → HEAD CIRCUM_GIRLS.zscore.yearly-0849bdb2.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-3edbb959.js → HEIGHT_BOYS.percentile.monthly-9219856c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-4092f997.js → HEIGHT_BOYS.percentile.weekly-f257a74f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-c38b0a8c.js → HEIGHT_BOYS.percentile.yearly-3ed1a065.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-b8c64f37.js → HEIGHT_BOYS.zscore.monthly-a58e6f2e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-529eb078.js → HEIGHT_BOYS.zscore.weekly-af59d81d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-7a22a422.js → HEIGHT_BOYS.zscore.yearly-d64544e6.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-f6cfed4c.js → HEIGHT_GIRLS.percentile.monthly-58d712e2.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-93a3052c.js → HEIGHT_GIRLS.percentile.weekly-f5718378.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-dc3e31b5.js → HEIGHT_GIRLS.percentile.yearly-306e09e7.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-5e2e4282.js → HEIGHT_GIRLS.zscore.monthly-ad472813.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-fc7e15c7.js → HEIGHT_GIRLS.zscore.weekly-e53d92d3.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-be667f08.js → HEIGHT_GIRLS.zscore.yearly-3e6e23aa.js} +0 -0
- /package/build/esm/{Subot-e2d168f6.js → Subot-dc774172.js} +0 -0
- /package/build/esm/{Visible-9487b5ec.js → Visible-302a3e45.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-18ce8db0.js → WEIGHT_BOYS.percentile.monthly-49a7ae53.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-4b0b6966.js → WEIGHT_BOYS.percentile.weekly-63420203.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-1041251f.js → WEIGHT_BOYS.percentile.yearly-26609ac2.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-a0857214.js → WEIGHT_BOYS.zscore.monthly-cb16306f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-8abaf07f.js → WEIGHT_BOYS.zscore.weekly-291be10f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-137e552e.js → WEIGHT_BOYS.zscore.yearly-6a25a7fa.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-d2524b72.js → WEIGHT_GIRLS.percentile.monthly-d11ea01c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-5876ebb5.js → WEIGHT_GIRLS.percentile.weekly-93c36ba6.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-2c1fd942.js → WEIGHT_GIRLS.percentile.yearly-5fc6d885.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-827db6c4.js → WEIGHT_GIRLS.zscore.monthly-0f6fd15b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-5de05683.js → WEIGHT_GIRLS.zscore.weekly-ea9c19e1.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-f59d61c9.js → WEIGHT_GIRLS.zscore.yearly-9665443f.js} +0 -0
- /package/build/esm/{cookieHelper-33d23c92.js → cookieHelper-d6490b00.js} +0 -0
- /package/build/esm/{dataTransform-5f4d0e1d.js → dataTransform-f4d63a0a.js} +0 -0
- /package/build/esm/{index-df32f94b.js → index-379f6571.js} +0 -0
- /package/build/esm/{index-367d6b96.js → index-a59b0ec0.js} +0 -0
- /package/build/esm/{index-1bb8c935.js → index-d5fe6c4e.js} +0 -0
- /package/build/esm/{isProduction-7160e35b.js → isProduction-7b1509aa.js} +0 -0
- /package/build/esm/{localizeNumberFormat-5b9a1c0d.js → localizeNumberFormat-b4e337ed.js} +0 -0
- /package/build/esm/{normalizeLink-1b4f867b.js → normalizeLink-7bed1319.js} +0 -0
- /package/build/esm/{number-87de0452.js → number-eb39d16c.js} +0 -0
- /package/build/esm/{paths-ebbc0cab.js → paths-2e45cb1b.js} +0 -0
- /package/build/esm/{screenSizeContext-e682ed0e.js → screenSizeContext-8e3cd726.js} +0 -0
- /package/build/esm/{theme-02c77f4e.js → theme-adbee273.js} +0 -0
- /package/build/esm/{translationsContext-44f1a91d.js → translationsContext-4623d384.js} +0 -0
- /package/build/esm/{tslib.es6-dea2bd5b.js → tslib.es6-693de4fd.js} +0 -0
- /package/build/esm/{types-f9e7a90c.js → types-054bf1d5.js} +0 -0
- /package/build/esm/{useIsInit-f9f018fa.js → useIsInit-7d5bf403.js} +0 -0
- /package/build/esm/{useOutsideClick-c0e17277.js → useOutsideClick-5c82f669.js} +0 -0
- /package/build/esm/{useScrollbarSize-172187ad.js → useScrollbarSize-cfeb4651.js} +0 -0
- /package/build/{index-07ea09ec.js → index-346123fd.js} +0 -0
- /package/build/{index-0e9897a9.js → index-408e11c4.js} +0 -0
- /package/build/{index-df49c16e.js → index-53fb3b00.js} +0 -0
- /package/build/{isProduction-5d1cbb0a.js → isProduction-87f95c7d.js} +0 -0
- /package/build/{localizeNumberFormat-abfce92a.js → localizeNumberFormat-e7196b4e.js} +0 -0
- /package/build/{normalizeLink-839d696d.js → normalizeLink-245ad49c.js} +0 -0
- /package/build/{number-eb00f939.js → number-5c9d6f63.js} +0 -0
- /package/build/{paths-586177a4.js → paths-3287ee93.js} +0 -0
- /package/build/{screenSizeContext-7e9237ac.js → screenSizeContext-83eeed99.js} +0 -0
- /package/build/{theme-79d3f26f.js → theme-785c6f0c.js} +0 -0
- /package/build/{translationsContext-ff61a492.js → translationsContext-efee8d50.js} +0 -0
- /package/build/{tslib.es6-bc58e7e5.js → tslib.es6-ef1f81bf.js} +0 -0
- /package/build/{types-f4a7d6cb.js → types-0321e2cc.js} +0 -0
- /package/build/{useIsInit-ac436fbe.js → useIsInit-311b057a.js} +0 -0
- /package/build/{useOutsideClick-97046196.js → useOutsideClick-7ddf4eaa.js} +0 -0
- /package/build/{useScrollbarSize-7efd8901.js → useScrollbarSize-6947aaa0.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as e}from"./tslib.es6-
|
|
1
|
+
import{a as e}from"./tslib.es6-693de4fd.js";import t,{useState as i,useCallback as a,useMemo as o,useEffect as n,useRef as s,useReducer as l}from"react";import{u as r}from"./useTranslations-2b415154.js";import c from"lodash/debounce";import{I as d,e as p,f as u,M as h,g,C as m}from"./constants-474a60fc.js";import{I as C}from"./index-cd710e7d.js";import b,{createGlobalStyle as y}from"styled-components";import{T as f,I as v}from"./index-6f066011.js";import{t as x}from"./theme-adbee273.js";import S from"lodash/shuffle";import{a as E}from"./useOutsideClick-5c82f669.js";import{M as w}from"./screenSizeContext-8e3cd726.js";import"dayjs";import{U as L,d as k}from"./index-a454d80b.js";import"./isProduction-7b1509aa.js";import"./Subot-dc774172.js";import"./index-7678ada1.js";import O from"react-loading-skeleton";import{P as j}from"./paths-2e45cb1b.js";import{Skeleton as I,Input as $,Divider as F,Tabs as M,Flex as R,Button as T}from"@mantine/core";import{g as P,s as N,d as A}from"./cookieHelper-d6490b00.js";import{C as B}from"./index-d5fe6c4e.js";import{C as D}from"./ChevronDown-c2b4123b.js";import V from"string-format";function K(){const[e,t]=i((()=>{if("undefined"==typeof window)return"unset";if(P(L))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[n,s]=i((()=>{if("undefined"==typeof window)return null;const e=P(L);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),l=a((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const i={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};N(L,JSON.stringify(i),{minutes:15}),s(i),t("granted")}),(()=>{A(L),t("denied")}))}),[]);return o((()=>({geoLocationPermission:e,geoLocationCoordinates:n,requestGeoLocation:l})),[e,n])}const z=b.div``,_=b.div`
|
|
2
2
|
--searchbar-z-index: 305;
|
|
3
3
|
&[data-is-modal='true'] {
|
|
4
4
|
position: fixed;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,_ as t}from"./tslib.es6-693de4fd.js";import o,{useContext as a,useState as n,useRef as l,useEffect as i,useMemo as s,useCallback as r}from"react";import{useMantineTheme as c,Checkbox as d,Portal as m,Popover as u}from"@mantine/core";import{p,L as v,r as g,q as h,s as y,t as C,v as E,R as k,w,x as f,y as b,z as N,E as I,F as x,G as P,H as T,I as M,D as j,J as _,g as L,M as S,K as z,N as B,O as A,Q as O,U as F,V as R,W as D,X as U,Y as V,Z as $,_ as Z,$ as H,a0 as W,a1 as Q,a2 as K,a3 as G,u as q,S as Y,a4 as J,j as X,k as ee,a as te,a5 as oe,d as ae,i as ne,a6 as le,C as ie,a7 as se,a8 as re,b as ce}from"./index.styled-3e11e657.js";import{u as de}from"./useTranslations-2b415154.js";import me from"innertext";import{t as ue}from"./theme-adbee273.js";import{T as pe,a as ve,A as ge,C as he,b as ye,I as Ce}from"./index-6f066011.js";import{B as Ee,I as ke}from"./index-1cfc85b4.js";import"@mantine/dates";import{d as we}from"./index-a454d80b.js";import"./Subot-dc774172.js";import{C as fe}from"./index-7678ada1.js";import"dayjs";import{o as be,t as Ne,k as Ie}from"./screenSizeContext-8e3cd726.js";import"styled-components";import"./isProduction-7b1509aa.js";import"@mantine/hooks";import{b as xe,U as Pe,A as Te,B as Me,a7 as je,H as _e,z as Le,a8 as Se,a9 as ze,aa as Be,V as Ae,Z as Oe,Y as Fe,ab as Re,_ as De}from"./index.styles-caebb95e.js";import{B as Ue,D as Ve}from"./index-ff10bc28.js";import{g as $e,a as Ze,U as He,h as We}from"./index-4cc27c0a.js";import{I as Qe}from"./index-cd710e7d.js";import Ke from"lodash/debounce";import Ge from"react-contenteditable";import"./useCategory-e47c3929.js";import{B as qe}from"./index-ab03b9dd.js";import*as Ye from"react-dom";import"./constants-474a60fc.js";const Je=({title:t,url:s,image:r,logo:d,className:m,style:u,noRefetch:v})=>{const{data:{locale:g,env:{isMarryBaby:h}}}=a(xe),[y,C]=n(!1),E=c(),k=l(v);k.current=v;const[w,f]=n(null);i((()=>{e(void 0,void 0,void 0,(function*(){if(!k.current){if(!s)return f(null);f((e=>Object.assign(Object.assign({},e),{isFetching:!0}))),Pe(Te(Me.FETCH_PREVIEW,{_locale:g}),"POST",{data:{link:s},headers:{"Content-Type":"application/json"}}).then((e=>{var t,o,a;C(!1),f({title:null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.title,url:s,image:(null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.image)||(null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.logo)})})).catch((()=>{f(null)}))}}))}),[s]);const b=(null==w?void 0:w.image)||r,N=(null==w?void 0:w.title)||t,I=(null==w?void 0:w.logo)||d,x=(null==w?void 0:w.url)||s,P=x.replace("http://","").replace("https://","").split(/[/?#]/)[0],T=l(!1);return o.createElement(p,{"data-is-marrybaby":h,className:`${m} no-replace-click`,style:u,color:E.colors[E.primaryColor][0]},o.createElement("a",{href:x,target:"_blank",rel:"noreferrer"},b&&o.createElement("div",{className:"link-image-wrapper"},!h&&o.createElement("img",{className:"link-image-blur",src:b,onError:e=>{T.current||(T.current=!0,e.currentTarget.src=je)},loading:"lazy"}),o.createElement("img",{className:"link-image",src:b,onError:e=>{T.current||(T.current=!0,e.currentTarget.src=je)},loading:"lazy"})),o.createElement("div",{className:"link-info-container"},o.createElement(pe,{size:"n1"},h&&I&&!y&&o.createElement("img",{className:"link-logo",src:I,onError:()=>C(!0),loading:"lazy"}),P),o.createElement(_e,{tag:"h6"},N))))};const Xe=({onClick:e,color:t,className:n,style:l})=>{const{data:{env:{isMarryBaby:i}}}=a(xe),{t:s}=de();return o.createElement(v,{label:o.createElement(o.Fragment,null,i&&o.createElement("img",{className:"label-sort-pin-icon",src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M3.5 19.9999L7.87 15.6299' stroke='%23FB8C00' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.95634 11.294C4.56534 11.685 4.56534 12.318 4.95634 12.708L7.87434 15.626L10.7923 18.544C11.1833 18.935 11.8163 18.935 12.2063 18.544L13.3813 17.369C13.5693 17.181 13.6743 16.927 13.6743 16.662V12.726L16.5743 9.82597L18.8833 9.94897C19.1663 9.96397 19.4433 9.85797 19.6433 9.65797L20.2173 9.08397C20.6083 8.69297 20.6083 8.05997 20.2173 7.66997L15.8313 3.28397C15.4403 2.89297 14.8073 2.89297 14.4173 3.28397L13.8433 3.85797C13.6423 4.05897 13.5363 4.33497 13.5523 4.61797L13.6753 6.92697L10.7753 9.82697H6.83834C6.57334 9.82697 6.31834 9.93197 6.13134 10.12L4.95634 11.294V11.294Z' stroke='%23FB8C00' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3cpath d='M16.5699 9.83018L13.6699 6.93018' stroke='%23FB8C00' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3c/svg%3e",loading:"lazy"})," ",s("label.pinnedPost")),rightLabel:!i&&o.createElement("img",{className:"label-sort-pin-icon",src:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cline x1='7.18605' y1='7.68219' x2='3.68219' y2='13.8139' stroke='%23FEA21E' stroke-linecap='round'/%3e%3cpath d='M3.24591 7.78426C3.21275 7.84168 3.20376 7.90993 3.22092 7.97398C3.23808 8.03803 3.27998 8.09264 3.3374 8.12579L8.78429 11.2706C8.90385 11.3396 9.05674 11.2986 9.12578 11.1791C9.71191 10.1641 9.71348 8.97262 9.23682 7.99339L10.8583 5.18521C11.5115 5.00603 12.0982 4.57973 12.4638 3.94629C12.5328 3.82672 12.4919 3.67383 12.3723 3.6048L8.18237 1.18584C8.12494 1.15268 8.0567 1.1437 7.99265 1.16086C7.92861 1.17803 7.874 1.21993 7.84086 1.27736C7.47521 1.91077 7.39934 2.63194 7.57065 3.28723L5.94919 6.09545C4.86323 6.1723 3.83201 6.76934 3.24591 7.78426Z' fill='%23FEA21E' stroke='%23FEA21E' stroke-width='0.5' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"}),onClick:e,color:"white",className:`label-pinned ${n}`,style:l})},et=e=>({message:e("notification.failure"),type:"danger"});var tt="data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 14.5C11.3137 14.5 14 11.8137 14 8.5C14 5.18629 11.3137 2.5 8 2.5C4.68629 2.5 2 5.18629 2 8.5C2 11.8137 4.68629 14.5 8 14.5Z' fill='%23FE921D'/%3e%3cpath d='M8 5.5V8.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M8 11.5H8.00708' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const ot=(e,t)=>{const[o,a]=n(e||[]);return{onSelectImages:n=>{const l=n.target.files;if(l)if(t&&e){t((e||o).concat(Array.from(l)))}else a((o=>{const a=e||o;return t&&t(a.concat(Array.from(l))),a.concat(Array.from(l))}))},onRemoveImage:o=>{if(t&&e){const a=e;a.splice(o,1),t(a.slice())}else a((a=>{const n=e||a;return n.splice(o,1),t&&t(n.slice()),n.slice()}))},onRemoveAllImages:()=>{t?t([]):a([])},imageSrcs:s((()=>(e||o).map((e=>"string"==typeof e?e:URL.createObjectURL(e)))),[e,o]),imageFiles:e||o}};var at="data:image/svg+xml,%3csvg width='24' height='25' viewBox='0 0 24 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 22.9844C17.5228 22.9844 22 18.5072 22 12.9844C22 7.46153 17.5228 2.98438 12 2.98438C6.47715 2.98438 2 7.46153 2 12.9844C2 18.5072 6.47715 22.9844 12 22.9844Z' fill='%23262626'/%3e%3cpath d='M14.8281 10.1562L9.17127 15.8131' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M9.17188 10.1562L14.8287 15.8131' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const nt=({className:e,style:t,bannedWords:a=[],value:s,onChange:r,onPreviewUrlChange:c,onInvalidUrlsChange:d,onImageFilesChange:m,imageFiles:u,isReplying:p})=>{const{t:v}=de(),[g,h]=n(null),y=l(null),{onSelectImages:C,onRemoveImage:f,imageSrcs:b}=ot(u,m);return i((()=>{c&&((null==g?void 0:g.url)?c({title:g.title||"",url:g.url||"",image:g.image||"",description:g.description||""}):c(null))}),[g]),o.createElement(E,{className:e,style:t},o.createElement(pe,{size:"p4",className:"description-label"},v("createPost.popup.description")),o.createElement("div",{className:"textarea-control"},o.createElement("div",{className:"textarea-wrapper"},o.createElement(k,{html:s||"",onChange:r,bannedWords:a,onImagePickerClick:()=>{var e;return null===(e=y.current)||void 0===e?void 0:e.click()},onPreviewUrlChange:h,onInvalidUrlsChange:d,isReplying:p}))),o.createElement(pe,{size:"p4",className:"count-string"},v("character"),": ",me(s||"").length),(!b||0===b.length)&&g&&o.createElement("div",{className:"link-preview-wrapper"},g.isFetching?o.createElement(w,null):o.createElement(o.Fragment,null,o.createElement(Je,{title:g.title,url:g.url||"#",image:g.image,noRefetch:!0}),o.createElement("img",{src:at,className:"icon-close",onClick:()=>h(null),loading:"lazy"}))),o.createElement("input",{ref:y,type:"file",accept:"image/png, image/gif, image/jpeg",multiple:!0,style:{display:"none"},onChange:C}),b.length>Se?o.createElement("div",{className:"input-notification"},o.createElement("img",{src:tt,loading:"lazy"}),o.createElement(pe,{size:"p4",color:ue.colors.alertWarning},v("createPost.popup.warningImage"))):null,b.length>0&&o.createElement("div",{className:"image-gallery"},b.map(((e,t)=>o.createElement("div",{key:t,className:"image-item"},o.createElement("img",{src:e,loading:"lazy"}),o.createElement("img",{className:"close-btn",src:at,onClick:()=>f(t),loading:"lazy"}))))))},lt=(e,t)=>{if(!t)return e;const{limit:o,bannedWords:a=[]}=t,n="number"==typeof o&&o>=0?e.substring(0,o):e;return f(n,a)},it=({className:e,style:t,bannedWords:a=[],value:s,onChange:c})=>{var d;const{t:m}=de(),[u,p]=n(""),v=l(null);i((()=>{if(v.current){const e=e=>{var t;e.preventDefault();const o=null===(t=e.clipboardData)||void 0===t?void 0:t.getData("text/plain");document.execCommand("insertHTML",!1,o)},t=v.current;return t.addEventListener("paste",e,{passive:!0}),()=>t.removeEventListener("paste",e)}}),[v]);const g=(null==a?void 0:a.join(","))||"";i((()=>{var e;if(g){const t=null===(e=v.current)||void 0===e?void 0:e.innerText;if(t){const e=f(t,a);e!==t&&(c&&c(e),p(e))}}}),[g]);const h=r(Ke((()=>{if(v.current){const e=lt(v.current.innerText,{limit:120,bannedWords:a});c&&c(e),p(e)}}),300),[]);return i((()=>{setTimeout((()=>{var e;null===(e=v.current)||void 0===e||e.focus()}),500)}),[]),o.createElement(b,{className:e,style:t},o.createElement(Qe,{name:"title",value:s||u,size:"md",label:m("createPost.title"),CustomInput:o.createElement(Ge,{innerRef:v,html:s||u,onChange:()=>{if(v.current&&v.current.innerText!==(s||u)){const e=lt(v.current.innerText,{bannedWords:a});c&&c(e),p(e),h()}},className:"title-input"})}),o.createElement(pe,{size:"p4",className:"count-string"},m("createPost.popup.wordCount",{count:(null===(d=v.current)||void 0===d?void 0:d.innerText.length)||0,max:120})))},st=({className:t,style:r,topics:c,communityId:d,onChange:m,isLoading:u,disabled:p,forceTopics:v,selectedTopics:g,noFetch:h,dataEventCategory:y,dataEventAction:C,dataEventLabel:E})=>{const{data:{locale:k,env:{isMarryBaby:f}}}=a(xe),[b,I]=n(c?[...c]:[]),[x,P]=n(g?[...g]:[]),[T,M]=n(!1),j=l(c);j.current=c,i((()=>{var t;!d||h||(null===(t=j.current)||void 0===t?void 0:t.length)||(I([]),M(!0),e(void 0,void 0,void 0,(function*(){var e;try{const t=yield Pe(Te(Me.TOPIC.LIST,{communityId:d,_locale:k}),"GET"),o=null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.topics;Array.isArray(o)&&I((()=>(null==o?void 0:o.map($e).sort(((e,t)=>(e.order||0)-(t.order||0))))||[]))}catch(e){console.log(e),M(!1)}M(!1)})))}),[d,h]);const _=null==c?void 0:c.map((e=>e.id)).join("-"),L=null==b?void 0:b.map((e=>e.id)).join("-"),S=null==v?void 0:v.map((e=>e.id)).join("-");i((()=>{c&&void 0!==_&&_!==L&&I(c)}),[c,_,L]);const z=s((()=>b.filter((e=>!(null==v?void 0:v.some((t=>t.id&&t.id===e.id||t.mappedCategoryId&&t.mappedCategoryId===e.mappedCategoryId)))))),[L,S]);return o.createElement(N,{"data-is-marrybaby":f,className:t,style:r},v.map((e=>o.createElement(rt,{key:`${e.id}-${e.mappedCategoryId}`,topic:e,disabled:!0,selected:!0,dataEventAction:C,dataEventCategory:y,dataEventLabel:E}))),z.map((e=>o.createElement(rt,{key:`${e.id}-${e.mappedCategoryId}`,topic:e,disabled:p,selected:(g||x).some((t=>t.id&&t.id===e.id||t.mappedCategoryId&&t.mappedCategoryId===e.mappedCategoryId)),onClick:()=>{const t=g||x,o=t.findIndex((t=>t.id&&t.id===e.id||t.mappedCategoryId&&t.mappedCategoryId===e.mappedCategoryId));-1!==o?t.splice(o,1):t.push(e),m&&g?m(t.slice()):(m&&m(t.slice()),P(t.slice()))},dataEventAction:C,dataEventCategory:y,dataEventLabel:E}))),(u||T)&&o.createElement(w,{className:"topic-spinner"}))},rt=e=>{var{topic:a,disabled:n,selected:l,onClick:i}=e,s=t(e,["topic","disabled","selected","onClick"]);return o.createElement("div",Object.assign({className:"tag-item"+(l?" --active":""),"data-disabled":n,onClick:n?void 0:i},s),a.name)},ct=({className:t,style:l,onPostCreatedEdited:s,onClose:r,communities:c=[],forceSelectCommunity:m,forceSelectTopics:u,articleId:p,optionalTopic:v,editPostData:E,defaultCommunity:k,defaultTopics:w,noFetchTopic:f,hideTopicList:b,selectAskDoctor:N,showAskDoctorOptions:_,currentPageUrl:L})=>{const S=!!(null==E?void 0:E.id),{data:{locale:z,env:{isMarryBaby:B}},action:{pushNotifications:A,sanitizeFunction:O}}=a(xe),{t:F}=de(),[R,D]=n(!1),[U,V]=n(N),[$,Z]=n(!1),[H,W]=n(!1),[Q,K]=n(!1),[G,q]=n(""),[Y,J]=n(""),[X,ee]=n(m?{label:m.name,value:`${m.id||""}-${m.mappedCategoryId||""}`}:{label:F("community.choose"),value:""}),[te,oe]=n([...u]||[]),[ae,ne]=n([]),[le,ie]=n([]),se=m||c.find((e=>`${e.id||""}-${e.mappedCategoryId||""}`===X.value)),re=m?[m]:c.filter((e=>e.isActive)).sort(((e,t)=>e.name>t.name?1:e.name<t.name?-1:0)),[ce,he]=n(null),[ye,Ce]=n([]),ke=G&&!H&&me(Y)&&(v||!v&&te.length>0)&&se&&(!ae||ae.length<=Se)&&!(null==ye?void 0:ye.length)&&!Q;i((()=>{if(E){const e=E;q(e.title||""),J(I(x(e.description||"","edit"),e.mentions)),ee({label:e.community.name,value:`${e.community.id||""}-${e.community.mappedCategoryId||""}`}),oe(e.topics||[]),ne(e.photos||[]),D(!!e.isAnonymous||!1),V(!!e.isAskDoctor||!1)}else k&&ee({label:k.name,value:`${k.id||""}-${k.mappedCategoryId||""}`}),w&&oe(w)}),[]),i((()=>{W(""!==G&&!/[a-zA-Z]/.test(G))}),[G]);const we=()=>e(void 0,void 0,void 0,(function*(){var t,o,a,n,l,i,c,d,m;if(_&&void 0===U)return Z(!0),!1;const u=yield(({title:t,description:o,communityId:a,imageFiles:n,previewUrl:l,topicIds:i,locale:s,sanitizeFunction:r,categoryCommunityId:c,categoryTopicIds:d,introUrl:m,bannerUrl:u,scheduleTime:p,isAnonymous:v,isAskDoctor:E})=>e(void 0,void 0,void 0,(function*(){const e=new FormData,k=g(o),w=g(t),f=h(k);if(e.append("title",w),e.append("description",y(k,r)),c?e.append("category_community",String(c)):a&&e.append("community_id",String(a)),e.append("is_anonymous",v?"1":"0"),e.append("is_question",E?"1":"0"),(null==l?void 0:l.title)&&e.append("preview_title",l.title),(null==l?void 0:l.description)&&e.append("preview_description",l.description),(null==l?void 0:l.url)&&e.append("preview_link",be(l.url)),(null==l?void 0:l.image)&&e.append("preview_image",be(l.image)),null==i||i.forEach((t=>{e.append("topics[]",String(t||""))})),null==d||d.forEach((t=>{e.append("category_topics[]",String(t||""))})),null==n?void 0:n.length){const t=yield Promise.all(n.map(((e,t)=>new Promise((o=>{setTimeout((()=>{o(C(e,s))}),2e3*t)})))));null==t||t.filter(Boolean).slice(0,Se).forEach(((t,o)=>{e.append(`images[${o}]`,t)}))}else e.append("images","");return null==f||f.forEach((t=>{e.append("mention_ids[]",t)})),e.append("intro_url",m||""),e.append("banner",u||""),p&&(e.append("post_type","scheduled"),e.append("schedule_datetime",p)),e})))({title:G,description:Y,communityId:String((null==se?void 0:se.id)||""),imageFiles:ae,previewUrl:ce,topicIds:null==te?void 0:te.map((e=>String(e.id||""))).filter(Boolean),locale:z,sanitizeFunction:O,categoryCommunityId:String((null==se?void 0:se.mappedCategoryId)||""),categoryTopicIds:null==te?void 0:te.map((e=>String(e.mappedCategoryId||""))).filter(Boolean),isAnonymous:R?1:0,isAskDoctor:U?1:0});let v;p&&u.append("article_id",p),S?(null==E?void 0:E.id)&&(v=yield(({id:t,locale:o,formData:a})=>e(void 0,void 0,void 0,(function*(){return yield Le(Te(Me.POST.UPDATE,{id:t,_locale:o}),"POST",{data:a})})))({id:E.id,formData:u,locale:z})):v=yield(({locale:t,formData:o,isArticleComment:a})=>e(void 0,void 0,void 0,(function*(){return yield Le(Te(a?Me.POST.CREATE_ARTICLE_COMMENT:Me.POST.CREATE,{_locale:t}),"POST",{data:o})})))({formData:u,locale:z,isArticleComment:!(null==se?void 0:se.id)&&!!(null==se?void 0:se.mappedCategoryId)});const k=null==v?void 0:v.data;(null==k?void 0:k.id)&&!(null===(o=null===(t=null==v?void 0:v.messages)||void 0===t?void 0:t.moderation)||void 0===o?void 0:o.type)?(A({message:F("createPost.popup.success"),type:"success"}),(e=>{s&&s(Ze(e),S),r&&r()})(k)):"banned"===(null===(n=null===(a=null==v?void 0:v.messages)||void 0===a?void 0:a.moderation)||void 0===n?void 0:n.type)?(A({title:F("notification.post.blocked.title"),message:F("notification.post.blocked.message"),type:"danger"}),v.messages.moderation.words&&ie(v.messages.moderation.words)):"suspect"===(null===(i=null===(l=null==v?void 0:v.messages)||void 0===l?void 0:l.moderation)||void 0===i?void 0:i.type)?(A({title:F("notification.post.suspect.title"),message:F("notification.post.suspect.message"),type:"warning"}),r&&r()):(null===(d=null===(c=null==v?void 0:v.messages)||void 0===c?void 0:c.find)||void 0===d?void 0:d.call(c,(e=>{var t;return!!(null===(t=null==e?void 0:e.includes)||void 0===t?void 0:t.call(e,"suspend"))})))?(A({message:F("notification.suspend.message"),type:"danger"}),r&&r()):A({message:(null===(m=null==v?void 0:v.messages)||void 0===m?void 0:m[0])||F("notification.failure"),type:"danger"})}));return o.createElement(P,{className:t,style:l},o.createElement("div",{className:"input-group-container"},o.createElement(it,{className:"input-group",bannedWords:le,value:G,onChange:q}),H&&o.createElement(T,null,o.createElement(ve,{isSolid:!0,color:ue.colors.red700,size:14}),o.createElement(pe,{size:"p3",as:"span",color:ue.colors.red700},F("createPost.popup.specialCharErr"))),o.createElement(nt,{className:"input-group",bannedWords:le,value:Y,onChange:J,onPreviewUrlChange:he,onInvalidUrlsChange:Ce,onImageFilesChange:ne,imageFiles:ae}),_&&o.createElement(M,{"data-is-marry-baby":B},o.createElement("div",{className:"switch-label"},o.createElement(ge,{isMarryBaby:B,size:B?32:24,color:ue.colors.primaryBase,className:"label-icon"}),o.createElement("span",{className:"label-txt"},F("createPost.askDoctor"))),o.createElement(Ue,{value:U,choices:[{label:F("createPost.askDoctorChoice.yes"),value:!0,dataEventCategory:"Together",dataEventAction:"Write Post Click - Ask Doctor",dataEventLabel:L},{label:F("createPost.askDoctorChoice.no"),value:!1}],onChange:e=>{"boolean"==typeof e&&(Z(!1),V(e))}})),$&&o.createElement(T,null,o.createElement(ve,{isSolid:!0,color:ue.colors.red700,size:14}),o.createElement(pe,{size:"p3",as:"span",color:ue.colors.red700},F("createPost.message.askDoctorRequire"))),o.createElement("div",{className:"input-group"},o.createElement(pe,{size:"p4",className:"input-group-label"},F("admin.community")),o.createElement(j,{options:(null==re?void 0:re.map((e=>({label:e.name,value:`${e.id||""}-${e.mappedCategoryId||""}`}))))||[],id:"community-picker",placeholder:F("community.choose"),value:X,dropdownLabelTrackingAttributes:{"data-event-category":"Together","data-event-action":"Write Post Click - Choose Community/Topic","data-event-label":L},onChange:e=>{ee({label:e.label,value:String(e.value)}),oe([])},disabled:!!m}),o.createElement(pe,{size:"sm",className:"warning",color:ue.colors.gray400},"* ",F("commentPopup.warning.newPost"))),!b&&o.createElement("div",{className:"input-group"},o.createElement(pe,{size:"p4",className:"input-group-label"},F("tab.topic")),o.createElement("div",{className:"input-notification"},o.createElement("img",{src:se?"data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 14.5C11.3137 14.5 14 11.8137 14 8.5C14 5.18629 11.3137 2.5 8 2.5C4.68629 2.5 2 5.18629 2 8.5C2 11.8137 4.68629 14.5 8 14.5Z' fill='%232D87F3'/%3e%3cpath d='M8 5.5V8.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M8 11.5H8.00708' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e":tt,loading:"lazy"}),o.createElement(pe,{size:"base",color:ue.colors.gray500},F(se?"createPost.popup.primary":"createPost.popup.warning"))),se&&o.createElement(st,{className:"tag-list",communityId:se.id,forceTopics:u,onChange:oe,selectedTopics:te,noFetch:f,dataEventCategory:"Together",dataEventAction:"Write Post Click - Choose Community/Topic",dataEventLabel:L}))),o.createElement("div",{className:"form-action"},o.createElement("div",{className:"input-group"},o.createElement(d,{className:"swich-input-group",labelPosition:"left",name:"PostAnonymous",checked:R,color:B?"pink":void 0,"data-event-category":"Together","data-event-action":"Write Post Click - Incognito","data-event-label":L,label:o.createElement("div",{className:"switch-label"},o.createElement("img",{className:"label-icon",src:fe.getAssetPath("anomyous-avatar.svg"),alt:"anomyous avatar",style:{marginRight:"10px",width:"24px"},loading:"lazy"}),o.createElement("span",{className:"label-txt"},F("createPost.postAnonymous"))),value:"Post Anonymous",onChange:e=>D(e.currentTarget.checked),styles:{body:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},label:{display:"flex",alignItems:"center"}}})),o.createElement("div",{className:"input-group"},o.createElement(Ee,{className:"submit-btn pointer-event-child-none",size:"lg","data-event-category":"Ask Doctor","data-event-action":"Submit Question","data-event-label":window.location.href,onClick:()=>e(void 0,void 0,void 0,(function*(){if(ke&&!Q){K(!0);try{yield we()}catch(e){console.error(e),A(et(F))}K(!1)}})),disabled:!ke,loading:Q},F("createPost.popup.submit")))))},dt=({className:e,isMarryBaby:t,style:l,title:s,description:r,acceptText:c,cancelText:d,onAccept:m,onCancel:u,thumbnail:p,isThumbnailIcon:v,onClose:g,acceptBtnTracking:h,acceptBtnProps:y,cancelBtnProps:C})=>{const{data:{env:{isMarryBaby:E}}}=a(xe),k="boolean"==typeof t?t:E,[w,f]=n(!1);return i((()=>(Ne(!0),setTimeout((()=>f(!0)),0),()=>Ne(!1))),[]),"undefined"==typeof window?null:Ye.createPortal(o.createElement(_,{"data-is-marrybaby":k,className:e,style:l,"data-open":w},o.createElement(L,{className:"popup-frame",isOpen:w,onClose:g},o.createElement("div",{className:"confirm-dialog",onClick:e=>e.stopPropagation()},o.createElement("div",{className:"confirm-content"},p&&o.createElement("div",{className:"thumbnail-container "+(v?"is-icon":"")},o.createElement("img",{className:"thumbnail",src:p,loading:"lazy"})),o.createElement(_e,{className:"title",tag:"h2"},s),o.createElement(pe,{className:"desc",size:"lg"},r),o.createElement("div",{className:"btn-group"},o.createElement(qe,Object.assign({theme:k?"marryBaby":"helloSites",size:"md",color:"tertiary",onClick:()=>{null==m||m(),null==g||g()}},y,h),c),o.createElement(qe,Object.assign({theme:k?"marryBaby":"helloSites",size:"md",onClick:()=>{null==u||u(),null==g||g()}},C),d)))),k&&p&&o.createElement("div",{className:"thumbnail-container is-mobile "+(v?"is-icon":"")},o.createElement("img",{className:"thumbnail",src:p,loading:"lazy"})))),Ie())};const mt=({isReply:t,className:s,onClose:r,replyToName:c,style:d,replyingId:m,replyingUser:u,onPostSuccess:p,post:v,isMarryBaby:g})=>{const{action:{pushNotifications:E,sanitizeFunction:f},data:{userInfo:b,locale:N,env:{isMarryBaby:I}}}=a(xe),x="boolean"==typeof g?g:I,{t:P}=de(),{onSelectImages:T,onRemoveImage:M,imageSrcs:j,onRemoveAllImages:_,imageFiles:L}=ot(),[B,A]=n(""),{trigger:O}=a(S),[F,R]=n(!1),D=l(null),U=l(null),V=l(null),[$,Z]=n([]),[H,W]=n([]),[Q,K]=n(null);return i((()=>{var e;null===(e=V.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start"}),setTimeout((()=>{var e;null===(e=U.current)||void 0===e||e.focus()}),400)}),[O]),o.createElement(z,{"data-is-reply":t,className:s,style:d},t&&o.createElement("div",{className:"reply-to-container"},o.createElement(pe,{size:"p4"},o.createElement("span",{dangerouslySetInnerHTML:{__html:P("inputComment.replyTo",{name:`<span style="color: #2D87F3; cursor: pointer">@${c||""}</span>`})}})),o.createElement("img",{src:"data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8.00016' cy='8.50004' r='6.66667' fill='white' stroke='%23404040'/%3e%3cpath d='M10 6.5L6 10.5' stroke='%23404040' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6 6.5L10 10.5' stroke='%23404040' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",className:"icon-close-comment",onClick:()=>r&&r(),loading:"lazy"})),o.createElement("div",{className:"input-container",ref:V},o.createElement(He,{className:"avatar-wrapper "+(t?"avatar-wrapper-reply":""),avatar:(null==b?void 0:b.id)?b.avatar:ze,username:(null==b?void 0:b.name)||(null==b?void 0:b.username)}),o.createElement("input",{ref:D,onChange:T,type:"file",multiple:!0,accept:"image/png,image/jpeg",name:"images",style:{display:"none"}}),o.createElement(Qe,{value:B,name:"input",size:"md",className:"input-wrapper",displayIcon:o.createElement("img",{src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M10.7543 4.85352H4.49227C4.01776 4.85352 3.56268 5.04201 3.22715 5.37754C2.89162 5.71307 2.70313 6.16815 2.70312 6.64266V19.1667C2.70313 19.6412 2.89162 20.0963 3.22715 20.4318C3.56268 20.7673 4.01776 20.9558 4.49227 20.9558H17.0163C17.4908 20.9558 17.9459 20.7673 18.2814 20.4318C18.6169 20.0963 18.8054 19.6412 18.8054 19.1667V12.9047' stroke='%232D87F3' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M17.4633 3.51187C17.8192 3.15599 18.3019 2.95605 18.8052 2.95605C19.3085 2.95605 19.7912 3.15599 20.147 3.51187C20.5029 3.86775 20.7029 4.35044 20.7029 4.85373C20.7029 5.35702 20.5029 5.83971 20.147 6.19559L11.6486 14.694L8.07031 15.5886L8.96489 12.0103L17.4633 3.51187Z' stroke='%232D87F3' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"}),CustomInput:o.createElement("div",{className:"as-input"},o.createElement(k,{className:"textarea",html:B,onChange:A,onImagePickerClick:()=>{var e;return null===(e=D.current)||void 0===e?void 0:e.click()},bannedWords:H,onPreviewUrlChange:K,onInvalidUrlsChange:Z,setEditorRef:e=>U.current=e,isReplying:t}))}),o.createElement(qe,{theme:x?"marryBaby":"helloSites",className:"send-button",size:"sm",onClick:()=>e(void 0,void 0,void 0,(function*(){var o,a,n,l,i,s,c,d,g;if((null==v?void 0:v.id)&&!F){R(!0);try{const k=e=>{A(""),_(),r&&r();const t=We(e.data);"string"==typeof t.images&&(t.images=JSON.parse(t.images)),p&&p(t)},w=yield(({postId:t,message:o,photos:a,link:n,locale:l,sanitizeFunction:i,replyingUserId:s,replyingUserName:r,replyingId:c})=>e(void 0,void 0,void 0,(function*(){const e=new FormData;let d=y(o.replace(/(\ )+/g," "),i);const m=h(d);return a&&a.length>0&&(yield Promise.all(null==a?void 0:a.map((e=>C(e,l))))).filter(Boolean).slice(0,Se).forEach((t=>{e.append("images[]",t)})),n&&e.append("link",n),null==m||m.forEach((t=>{e.append("mention_ids[]",t)})),e.append("post_id",t),c&&e.append("parent_id",c),s&&(m.unshift(s),d=`[mention+id="${s}"+name="${(r||"").replace('"',"'")}"]${d}`,e.append("parent_user_id",String(s))),e.append("content",d),e.append("content",d),e})))(Object.assign({message:B,photos:L,postId:String(v.id),link:null==Q?void 0:Q.url,sanitizeFunction:f,locale:N},t&&m?{replyingUserId:String((null==u?void 0:u.id)||(null===(o=null==v?void 0:v.author)||void 0===o?void 0:o.id)||""),replyingId:m,replyingUserName:(null==u?void 0:u.name)||(null==u?void 0:u.username)||""}:{})),b=yield t&&m?((t,o)=>e(void 0,void 0,void 0,(function*(){return Le(Te(Me.COMMENT.REPLY,{_locale:o}),"POST",{data:t})})))(w,N):((t,o)=>e(void 0,void 0,void 0,(function*(){return Le(Te(Me.COMMENT.CREATE,{_locale:o}),"POST",{data:t})})))(w,N),I=null==b?void 0:b.data;(null==I?void 0:I.id)&&!(null===(n=null===(a=null==b?void 0:b.messages)||void 0===a?void 0:a.moderation)||void 0===n?void 0:n.type)?k(b):"banned"===(null===(i=null===(l=null==b?void 0:b.messages)||void 0===l?void 0:l.moderation)||void 0===i?void 0:i.type)?(E({title:P("notification.comment.blocked.title"),message:P("notification.comment.blocked.message"),type:"danger"}),b.messages.moderation.words&&W(b.messages.moderation.words)):"suspect"===(null===(c=null===(s=null==b?void 0:b.messages)||void 0===s?void 0:s.moderation)||void 0===c?void 0:c.type)?(E({title:P("notification.comment.suspect.title"),message:P("notification.comment.suspect.message"),type:"warning"}),A(""),_(),r&&r()):(null===(d=null==b?void 0:b.messages)||void 0===d?void 0:d.find((e=>{var t;return!!(null===(t=null==e?void 0:e.includes)||void 0===t?void 0:t.call(e,"suspend"))})))?(E({message:P("notification.suspend.message"),type:"warning"}),A(""),_(),r&&r()):E({title:"",message:(null===(g=null==b?void 0:b.messages)||void 0===g?void 0:g[0])||P("notification.comment.somethingWrong"),type:"danger"})}catch(e){E({title:"",message:P("notification.comment.somethingWrong"),type:"danger"})}R(!1)}})),isLoading:F,isDisabled:!!(null==$?void 0:$.length)||F||!B||(null==B?void 0:B.length)<2||!B.trim()},o.createElement("img",{src:"data:image/svg+xml,%3csvg width='20' height='21' viewBox='0 0 20 21' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7.5 9.73438L3.75 13.4844L7.5 17.2344' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M16.25 4.73438L16.25 10.3026C16.25 11.1464 15.9208 11.9557 15.3347 12.5524C14.7487 13.1491 13.9538 13.4844 13.125 13.4844L3.75 13.4844' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",className:"icon-enter",loading:"lazy"}))),(null==$?void 0:$.length)?o.createElement("div",{className:"error-text"},P("notification.limitUrlDomain")):null,(!j||0===j.length)&&Q&&o.createElement("div",{className:"link-preview-wrapper"},Q.isFetching?o.createElement(w,null):o.createElement(o.Fragment,null,o.createElement(Je,{title:Q.title,url:Q.url||"#",image:Q.image,noRefetch:!0}),o.createElement("img",{src:at,className:"icon-close",onClick:()=>K(null),loading:"lazy"}))),j&&j.length>0&&o.createElement("div",{className:"preview-images-container"},j.map(((e,t)=>o.createElement("div",{key:t,className:"image-src-wrapper"},o.createElement("img",{className:"preview-image",src:e,loading:"lazy"}),o.createElement("img",{src:at,className:"icon-close-circle",onClick:()=>M(t),loading:"lazy"}))))))};var ut="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M8 5V8' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M8 11H8.00708' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const pt=({className:t,style:l,reason:i,reasonText:s,onClose:r,postId:c})=>{const{data:{locale:d,env:{isMarryBaby:m}},action:{pushNotifications:u}}=a(xe),{t:p}=de(),[v,g]=n(!1);return o.createElement(B,{"data-is-marrybaby":m,className:t,style:l},o.createElement("ul",{className:"report-list"},o.createElement("li",{className:"report-item"},o.createElement("img",{src:ut,loading:"lazy"}),o.createElement(pe,{className:"__label",color:ue.colors.gray800,size:"p4"},s))),o.createElement(qe,{theme:m?"marryBaby":"helloSites",className:"report-submit",size:"lg",color:"primary",isLoading:v,onClick:()=>e(void 0,void 0,void 0,(function*(){if(c&&!v){g(!0);try{const e=yield(({id:e,reason:t,locale:o})=>{const a=new FormData;return a.append("reason",t),Le(Te(Me.POST.REPORT,{_locale:o,id:e}),"POST",{data:a})})({id:c,reason:i,locale:d});1===(null==e?void 0:e.status)&&(u({message:"Post reported",type:"success"}),r&&r())}catch(e){}g(!1)}}))},p("submit")))};const vt=({className:e,style:t,authorName:a,images:l,onClose:s,onOpenSingleView:r,alt:c})=>{const{t:d}=de(),[u,p]=n(!1);return i((()=>{setTimeout((()=>{p(!0)}),0)}),[]),o.createElement(m,null,o.createElement(A,{className:e,style:t,"data-open":u},o.createElement("div",{className:"top-bar"},o.createElement("img",{className:"icon-arrow-left",src:"data:image/svg+xml,%3csvg width='24' height='25' viewBox='0 0 24 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M10.0508 18.0607L4.00078 12.0367L10.0508 6.01172' stroke='%23262626' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M4.00195 12.0352L19.002 12.0352' stroke='%23262626' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",onClick:s,alt:"go back",loading:"lazy"}),o.createElement(pe,{size:"p2",weight:"bold",style:{textAlign:"center"}},d("previewPhotos.title",{name:a}))),o.createElement("div",{className:"container"},l.map(((e,t)=>o.createElement("img",{className:"img-preview",key:t,src:e,onClick:()=>null==r?void 0:r(t),alt:c,loading:"lazy"}))))),",")};var gt="data:image/svg+xml,%3csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6 12.8125L10 8.8125L6 4.8125' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const ht=({initialViewIndex:e,images:t,onClose:a,alt:l})=>{const[s,r]=n(e),[c,d]=n(!1);i((()=>{setTimeout((()=>{d(!0)}),0)}),[]);const u=null==t?void 0:t[s],p=0===s,v=!(null==t?void 0:t.length)||s===(null==t?void 0:t.length)-1;return o.createElement(m,null,o.createElement(O,{"data-open":c&&!!u},o.createElement(F,null,o.createElement("img",{src:R,className:"icon-close",onClick:a,alt:"close",loading:"lazy"})),u&&s>=0&&o.createElement(o.Fragment,null,o.createElement(D,null,o.createElement("img",{className:"img-preview",src:u,alt:l,loading:"lazy"}),o.createElement(U,{"data-disabled":p,onClick:()=>!p&&r(s-1)},o.createElement(V,null,o.createElement("img",{src:gt,style:{transform:"rotate(180deg)"},alt:"left arrow","data-disabled":p,loading:"lazy"}))),o.createElement(U,{"data-right":!0,"data-disabled":v,onClick:()=>!v&&r(s+1)},o.createElement(V,null,o.createElement("img",{src:gt,alt:"right arrow","data-disabled":v,loading:"lazy"})))))))},yt=({image:e,showIcon:t=!0})=>{const[a,l]=n(!0);return o.createElement($,{"data-is-blurred":a,onClick:e=>a&&e.stopPropagation()},o.createElement("img",{loading:"lazy",className:"img-preview",src:e}),o.createElement(Z,{onClick:e=>{e.stopPropagation(),l(!a)}},t&&o.createElement(H,null,a?o.createElement("svg",{width:"22",height:"20",viewBox:"0 0 22 20",fill:"none"},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.71 2.5399C1.32 2.1499 1.32 1.5199 1.71 1.1299C2.1 0.739902 2.74 0.739902 3.13 1.1299L19.44 17.4599C19.83 17.8499 19.83 18.4799 19.44 18.8699C19.05 19.2599 18.42 19.2599 18.03 18.8699L15.31 16.1499C13.97 16.6699 12.52 16.9699 11 16.9699C6 16.9699 1.73 13.8599 0 9.4699C0.77 7.4999 2.06 5.7999 3.68 4.5099L1.71 2.5399ZM16 9.4699C16 6.7099 13.76 4.4699 11 4.4699C10.49 4.4699 10 4.5699 9.53 4.7099L7.36 2.5399C8.51 2.1699 9.73 1.9699 11 1.9699C16 1.9699 20.27 5.0799 22 9.4599C21.31 11.2199 20.21 12.7599 18.82 13.9899L15.76 10.9299C15.9 10.4699 16 9.9799 16 9.4699ZM11 14.4699C8.24 14.4699 6 12.2299 6 9.4699C6 8.6999 6.18 7.9699 6.49 7.3299L8.06 8.8999C8.03 9.0799 8 9.2699 8 9.4699C8 11.1299 9.34 12.4699 11 12.4699C11.2 12.4699 11.38 12.4399 11.57 12.3999L13.14 13.9699C12.49 14.2899 11.77 14.4699 11 14.4699ZM13.97 9.1399C13.82 7.7399 12.72 6.6499 11.33 6.4999L13.97 9.1399Z",fill:"white"})):o.createElement("svg",{width:"23",height:"16",viewBox:"0 0 23 16",fill:"none"},o.createElement("path",{d:"M11.9999 0C5.14188 0 1.88558 5.87864 1.09558 7.55664C0.963582 7.83664 0.963582 8.16141 1.09558 8.44141C1.88558 10.1204 5.14188 16 11.9999 16C18.8339 16 22.0924 10.1629 22.8964 8.46094C23.0344 8.16794 23.0344 7.83206 22.8964 7.53906C22.0924 5.83706 18.8339 0 11.9999 0ZM11.9999 3C14.7609 3 16.9999 5.239 16.9999 8C16.9999 10.761 14.7609 13 11.9999 13C9.23888 13 6.99988 10.761 6.99988 8C6.99988 5.239 9.23888 3 11.9999 3ZM11.9999 5C11.2042 5 10.4412 5.31607 9.87856 5.87868C9.31595 6.44129 8.99988 7.20435 8.99988 8C8.99988 8.79565 9.31595 9.55871 9.87856 10.1213C10.4412 10.6839 11.2042 11 11.9999 11C12.7955 11 13.5586 10.6839 14.1212 10.1213C14.6838 9.55871 14.9999 8.79565 14.9999 8C14.9999 7.20435 14.6838 6.44129 14.1212 5.87868C13.5586 5.31607 12.7955 5 11.9999 5Z",fill:"#2D87F3"})))))},Ct=({className:e,images:t=[],style:s,authorName:r,isSensitive:c=!1,alt:d})=>{const{data:{env:{isMarryBaby:m}}}=a(xe),{t:u}=de(),p="+ "+((t.length||0)-4),[v,g]=n(!1),[h,y]=n(-1),C=t.length>5,E=l(!1);return i((()=>()=>{E.current&&Ne(!1)}),[]),i((()=>{v||h>=0?(Ne(!0),E.current=!0):(Ne(!1),E.current=!1)}),[v,h]),o.createElement(o.Fragment,null,c&&o.createElement(W,{message:u("sensitiveMask.contentWarningDescription"),icon:o.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.00002 0.666748C4.40002 0.666748 0.666687 4.40008 0.666687 9.00008C0.666687 13.6001 4.40002 17.3334 9.00002 17.3334C13.6 17.3334 17.3334 13.6001 17.3334 9.00008C17.3334 4.40008 13.6 0.666748 9.00002 0.666748ZM9.00002 9.83341C8.54169 9.83341 8.16669 9.45841 8.16669 9.00008V5.66675C8.16669 5.20842 8.54169 4.83342 9.00002 4.83342C9.45835 4.83342 9.83335 5.20842 9.83335 5.66675V9.00008C9.83335 9.45841 9.45835 9.83341 9.00002 9.83341ZM8.16669 11.5001V13.1667H9.83335V11.5001H8.16669Z",fill:"#FE921D"}))}),o.createElement(Q,{className:e,style:s,"data-image-count":C?5:t.length||0,"data-is-marrybaby":m,"data-cursor-pointer":!c},null==t?void 0:t.slice(0,5).map(((e,t)=>{const a=4===t&&C;return o.createElement("div",{className:"img-wrapper",key:t,onClick:()=>{t>=4&&C?g(!0):y(t)}},c&&o.createElement(yt,{image:e,showIcon:!a}),!m&&o.createElement("img",{loading:"lazy",className:"img-preview-blur",src:e,alt:d}),o.createElement("img",{loading:"lazy",className:"img-preview",src:e,alt:d}),a&&o.createElement("div",{className:"img-more-overlay"},o.createElement(_e,{tag:"h1",as:"h2",color:"white"},p)))}))),v&&o.createElement(vt,{authorName:r||"",images:t,onClose:()=>g(!1),onOpenSingleView:y,alt:d}),h>=0&&o.createElement(ht,{images:t,initialViewIndex:h,onClose:()=>y(-1),alt:d}))},Et=({url:t,image:r,className:d,style:m,baseUrl:u="",autoPlay:p=!0})=>{const{data:{locale:v}}=a(xe),[g,h]=n(null);i((()=>{e(void 0,void 0,void 0,(function*(){if(!r){if(!t)return h(null);h((e=>Object.assign(Object.assign({},e),{isFetching:!0}))),Pe(Te(Me.FETCH_PREVIEW,{_locale:v},void 0,u),"POST",{data:{link:t},headers:{"Content-Type":"application/json"}},!!u).then((e=>{var o,a;h({url:t,image:(null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.image)||(null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.logo)})})).catch((()=>{h(null)}))}}))}),[t,r]);const y=r||(null==g?void 0:g.image),C=(null==g?void 0:g.url)||t,E=s((()=>K(C)),[C]),k=s((()=>C.includes("facebook.com")||C.includes("fb.watch")),[C]),f=l(0),b=l(0),[N,I]=n(!1);i((()=>{const e=()=>{var e;const t=null===(e=x.current)||void 0===e?void 0:e.getBoundingClientRect();let o=!1;t&&(!f.current||Math.abs((f.current-t.width)/(null==t?void 0:t.width))>.2)&&(f.current=Math.floor(t.width),o=!0),t&&(!b.current||Math.abs((b.current-t.height)/(null==t?void 0:t.height))>.2)&&(b.current=Math.floor(t.height),o=!0),o&&I((e=>!e))};return e(),window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}}),[]);const x=l(null),P=c();return o.createElement(G,{className:`${d} no-replace-click`,style:m,ref:x,color:P.colors[P.primaryColor][0]},r||!E&&!k?o.createElement("a",{href:C,target:"_blank",rel:"noreferrer"},o.createElement("div",{className:"link-image-wrapper "+((null==g?void 0:g.isFetching)?"fetching":"")},(null==g?void 0:g.isFetching)?o.createElement(w,{className:"loading-spinner"}):o.createElement(ke,{className:"link-image",src:y||je,backupSrc:je,alt:C}))):o.createElement("div",{className:"link-image-wrapper"},E?o.createElement("iframe",{width:"100%",height:"100%",src:`https://www.youtube.com/embed/${E}?&autoplay=${p?1:0}&mute=1&enablejsapi=1`,frameBorder:"0",allowFullScreen:!0,style:{position:"absolute",top:0,left:0,border:"none",overflow:"hidden"},loading:"lazy"}):k?o.createElement("iframe",{key:String(N),src:`https://www.facebook.com/plugins/video.php?href=${encodeURIComponent(C)}&autoplay=${p?1:0}&show_text=false&t=0&width=${f.current}&height=${b.current}`,style:{position:"absolute",top:"50%",left:"50%",border:"none",overflow:"hidden",height:b.current,width:f.current,transform:"translate(-50%, -50%)"},scrolling:"no",frameBorder:"0",allowFullScreen:!0,allow:"autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share",loading:"lazy"}):null))};var kt="KsWg8i6",wt="_9tS0EUN",ft="kyyRKlb",bt="-Uqqka-";const Nt=l=>{var{post:i,onSkip:s,btnText:d,currentPageUrl:m}=l,p=t(l,["post","onSkip","btnText","currentPageUrl"]);const{t:v}=de(),{data:{locale:g},action:{pushNotifications:h}}=a(xe),[y,C]=n(!1),[E,k]=n(!1),w=c(),f=r((()=>e(void 0,void 0,void 0,(function*(){var e;k(!0);const t=yield Le(Te(Me.USER.SKIP_QUESTION,{_locale:g,id:null==i?void 0:i.id}),"PUT");1===(null==t?void 0:t.status)?(null==s||s({id:(null==i?void 0:i.id)||"",communityId:(null===(e=null==i?void 0:i.community)||void 0===e?void 0:e.id)||""}),C(!1),h({title:"",message:"Skip success",type:"success"})):h({title:"",message:null==t?void 0:t.messages,type:"danger"}),k(!1)}))),[]);return o.createElement(u,{width:327,withArrow:!0,shadow:"md",opened:y},o.createElement(u.Target,null,o.createElement("div",Object.assign({className:`${kt} ${(null==p?void 0:p.className)||""}`,onClick:()=>C(!0)},p),d||v("profilePanel.questionNotClear"))),o.createElement(u.Dropdown,null,o.createElement("div",null,o.createElement("div",{className:wt},v("profilePanel.skipQuestion.heading")),o.createElement("div",{className:ft},v("profilePanel.skipQuestion.content")),o.createElement("div",{className:bt},o.createElement(Ee,{size:"md",variant:"secondary",leftIcon:o.createElement(he,{color:w.fn.primaryColor(),size:24}),onClick:()=>C(!1),styles:()=>({leftIcon:{marginRight:0}})}),o.createElement(Ee,{variant:"primary",size:"md",leftIcon:o.createElement(ye,{color:"white",size:24}),onClick:f,loading:E,"data-event-category":"Together","data-event-action":"Unclear Question Click","data-event-label":m,styles:()=>({leftIcon:{marginRight:0}})})))))};var It="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M5 10C3.9 10 3 10.9 3 12C3 13.1 3.9 14 5 14C6.1 14 7 13.1 7 12C7 10.9 6.1 10 5 10Z' fill='%233E3F58'/%3e %3cpath d='M19 10C17.9 10 17 10.9 17 12C17 13.1 17.9 14 19 14C20.1 14 21 13.1 21 12C21 10.9 20.1 10 19 10Z' fill='%233E3F58'/%3e %3cpath d='M12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10Z' fill='%233E3F58'/%3e %3c/svg%3e",xt="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='%23595959' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 13.3334L8 10.3704L4 13.3334V3.85187C4 3.53754 4.12041 3.23608 4.33474 3.01382C4.54906 2.79155 4.83975 2.66669 5.14286 2.66669H10.8571C11.1602 2.66669 11.4509 2.79155 11.6653 3.01382C11.8796 3.23608 12 3.53754 12 3.85187V13.3334Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",Pt="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 13.3334L8 10.3704L4 13.3334V3.85187C4 3.53754 4.12041 3.23608 4.33474 3.01382C4.54906 2.79155 4.83975 2.66669 5.14286 2.66669H10.8571C11.1602 2.66669 11.4509 2.79155 11.6653 3.01382C11.8796 3.23608 12 3.53754 12 3.85187V13.3334Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",Tt="data:image/svg+xml,%3csvg width='3' height='13' viewBox='0 0 3 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='1.58326' cy='6.41663' r='1.25' transform='rotate(89.9997 1.58326 6.41663)' fill='%23595959'/%3e%3cellipse cx='1.58326' cy='1.41663' rx='1.25' ry='1.25' transform='rotate(89.9997 1.58326 1.41663)' fill='%23595959'/%3e%3cellipse cx='1.58326' cy='11.4166' rx='1.25' ry='1.25' transform='rotate(89.9997 1.58326 11.4166)' fill='%23595959'/%3e%3c/svg%3e",Mt="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 5.33337C13.1046 5.33337 14 4.43794 14 3.33337C14 2.2288 13.1046 1.33337 12 1.33337C10.8954 1.33337 10 2.2288 10 3.33337C10 4.43794 10.8954 5.33337 12 5.33337Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M4 10C5.10457 10 6 9.10457 6 8C6 6.89543 5.10457 6 4 6C2.89543 6 2 6.89543 2 8C2 9.10457 2.89543 10 4 10Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M12 14.6666C13.1046 14.6666 14 13.7712 14 12.6666C14 11.5621 13.1046 10.6666 12 10.6666C10.8954 10.6666 10 11.5621 10 12.6666C10 13.7712 10.8954 14.6666 12 14.6666Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M5.72668 9.00665L10.28 11.66' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M10.2734 4.33997L5.72668 6.9933' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",jt="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2 4H3.33333H14' stroke='%23737373' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M5.33334 3.99992V2.66659C5.33334 2.31296 5.47382 1.97382 5.72387 1.72378C5.97392 1.47373 6.31305 1.33325 6.66668 1.33325H9.33334C9.68697 1.33325 10.0261 1.47373 10.2762 1.72378C10.5262 1.97382 10.6667 2.31296 10.6667 2.66659V3.99992M12.6667 3.99992V13.3333C12.6667 13.6869 12.5262 14.026 12.2762 14.2761C12.0261 14.5261 11.687 14.6666 11.3333 14.6666H4.66668C4.31305 14.6666 3.97392 14.5261 3.72387 14.2761C3.47382 14.026 3.33334 13.6869 3.33334 13.3333V3.99992H12.6667Z' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6.66666 7.33325V11.3333' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M9.33334 7.33325V11.3333' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const _t=({authorEmail:t,onDeletePost:l,shareUrl:i,post:s,className:r="",popoverClassName:c="",onBookmark:d,onRemoveBookmark:m,onEditPost:u})=>{const{data:{locale:p,userInfo:v,togetherUserId:g,env:{isMarryBaby:h}},action:{pushNotifications:y}}=a(xe),{t:C}=de(),[E,k]=n(!1),[w,f]=n(!1),[b,N]=n(!1),{authActionWrapper:I}=q(),x=t&&(null==v?void 0:v.email)&&t===String(null==v?void 0:v.email);return o.createElement("div",{className:r,onClick:e=>{e.preventDefault(),e.stopPropagation()}},b&&o.createElement(Y,{url:i,text:null==s?void 0:s.title,onClose:()=>N(!1)}),w&&o.createElement(dt,{thumbnail:fe.getAssetPath("trash-bin.svg"),isThumbnailIcon:!0,title:C("popup.deletePost.title"),description:C("popup.deletePost.description"),acceptText:C("popup.deletePost.accept"),cancelText:C("popup.deletePost.cancel"),onAccept:()=>e(void 0,void 0,void 0,(function*(){if((null==s?void 0:s.id)&&!E){k(!0);try{const t=yield(({id:t,locale:o})=>e(void 0,void 0,void 0,(function*(){if(t)return yield Le(Te(Me.POST.DELETE,{id:t,_locale:o}),"DELETE")})))({id:s.id,locale:p});1===(null==t?void 0:t.status)&&(null==l||l())}catch(e){}k(!1)}})),onClose:()=>f(!1)}),o.createElement(J,{className:c,toggleButtonContent:o.createElement("img",{src:h?It:Tt,loading:"lazy"}),position:"bottom",align:"end",buttonProps:{isLoading:E},data:x?{isShowheader:!1,type:"list",list:[{icon:Mt,label:C("morePopover.share"),onClick:()=>N(!0)},{icon:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7.16952 3.2356H2.99484C2.6785 3.2356 2.37512 3.36126 2.15143 3.58495C1.92774 3.80863 1.80208 4.11202 1.80208 4.42836V12.7777C1.80208 13.094 1.92774 13.3974 2.15143 13.6211C2.37512 13.8448 2.6785 13.9705 2.99484 13.9705H11.3442C11.6605 13.9705 11.9639 13.8448 12.1876 13.6211C12.4113 13.3974 12.537 13.094 12.537 12.7777V8.60303' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M11.6425 2.341C11.8798 2.10375 12.2016 1.97046 12.5371 1.97046C12.8726 1.97046 13.1944 2.10375 13.4317 2.341C13.6689 2.57826 13.8022 2.90005 13.8022 3.23558C13.8022 3.57111 13.6689 3.89289 13.4317 4.13015L7.76607 9.79578L5.38054 10.3922L5.97692 8.00663L11.6425 2.341Z' stroke='%23595959' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",label:C("actionPopover.edit"),onClick:u},{icon:jt,label:C("actionPopover.delete"),onClick:()=>{I((()=>f(!0)))}}]}:{isShowheader:!1,type:"list",list:[{icon:Mt,label:C("morePopover.share"),onClick:()=>N(!0)},{icon:(null==s?void 0:s.bookmarked)?xt:Pt,label:(null==s?void 0:s.bookmarked)?C("morePopover.unsavePost"):C("morePopover.savePost"),onClick:()=>{I((()=>e(void 0,void 0,void 0,(function*(){if((null==v?void 0:v.id)&&(null==s?void 0:s.id))if(null==s?void 0:s.bookmarked){const e=yield Le(Te(Me.BOOKMARK.DELETE,{_locale:p}),"DELETE",{data:{post_id:String(s.id)}});1===(null==e?void 0:e.status)?(y({title:"",message:"Removed saved post",type:"success",displayIcon:Pt}),m&&m()):y({title:"",message:"Remove failed",type:"danger",displayIcon:Pt})}else{const e=yield Le(Te(Me.BOOKMARK.CREATE,{_locale:p}),"POST",{data:{user_id:g||v.id,post_id:s.id}});1===(null==e?void 0:e.status)?(y({title:"",message:"Post saved",type:"success",displayIcon:xt}),d&&d()):y({title:"",message:"Post saved failed",type:"danger",displayIcon:Pt})}}))))}},{icon:ut,label:C("morePopover.report"),subTree:{title:C("morePopover.report.title"),description:C("morePopover.report.description"),isShowheader:!0,type:"list",list:Object.keys(Be).map((e=>({label:Be[e].label,reason:Be[e].reportReasonText,reasonValue:e}))).map((e=>({label:C(e.label),subTree:{title:C("morePopover.reportSubmit.title"),description:C("morePopover.reportSubmit.description"),isShowheader:!0,type:"jsx",jsxRenderer:t=>o.createElement(pt,{reason:e.reasonValue,reasonText:C(e.reason),postId:null==s?void 0:s.id,onClose:()=>t&&t(!1)})}})))}}]}}))};const Lt=({onDeleteComment:t,commentId:l,className:i="",popoverClassName:s=""})=>{const{data:{env:{isMarryBaby:r},locale:c},action:{pushNotifications:d}}=a(xe),{t:m}=de(),[u,p]=n(!1),{authActionWrapper:v}=q();return o.createElement("div",{className:i,onClick:e=>{e.preventDefault(),e.stopPropagation()}},u&&o.createElement(dt,{thumbnail:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='17' fill='none'%3e%3cg stroke='%23737373' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' clip-path='url(%23clip0)'%3e%3cpath d='M2 4.008h12M5.333 4.008V2.675a1.333 1.333 0 0 1 1.334-1.333h2.666a1.333 1.333 0 0 1 1.334 1.333v1.333m2 0v9.334a1.333 1.333 0 0 1-1.334 1.333H4.667a1.333 1.333 0 0 1-1.334-1.333V4.008h9.334ZM6.667 7.342v4M9.333 7.342v4'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0'%3e%3cpath fill='white' d='M0 .008h16v16H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",isThumbnailIcon:!0,title:m("popup.deleteComment.title"),description:m("popup.deleteComment.description"),acceptText:m("popup.deletePost.accept"),cancelText:m("popup.deletePost.cancel"),onAccept:()=>e(void 0,void 0,void 0,(function*(){var e;if(!l)return;const o=yield(({id:e,locale:t})=>Le(Te(Me.COMMENT.DELETE,{_locale:t,id:e}),"DELETE"))({id:l,locale:c});1===(null==o?void 0:o.status)?(t&&t(),d({title:"",message:m("notification.success"),type:"success"})):d({title:"",message:(null===(e=null==o?void 0:o.messages)||void 0===e?void 0:e[0])||m("notification.failure"),type:"danger"})})),onClose:()=>p(!1)}),o.createElement(J,{position:"bottom",align:"end",data:{isShowheader:!1,type:"list",list:[{icon:jt,label:m("actionPopover.delete"),onClick:()=>{v((()=>{p(!0)}))}}]},className:s,toggleButtonContent:o.createElement("img",{src:r?It:Tt,loading:"lazy"}),buttonProps:{}}))};var St="-dzIuHr";const zt=({userId:e,avatar:t,name:a,role:l,title:i,className:s})=>{const{t:r}=de(),[c,d]=n(!1);return o.createElement(o.Fragment,null,o.createElement(qe,{className:`${St} ${s}`,color:"success",size:"xs",onClick:()=>d(!0),style:{padding:"5px 8px",marginBottom:"12px",borderRadius:"4px"}},o.createElement("span",{className:"text"},o.createElement(Ce.Endorse,{isSolid:!0,size:18,color:ue.colors.green800,className:"icon"}),r("cardReply.verifyBy",{name:`${a||""}`}))),o.createElement(X,{open:c,onClose:()=>d(!1),profileModalProps:{zIndex:1e3}},o.createElement(ee,{authorProps:{userId:e,avatar:t,name:a,role:l,title:i},hideQuestionTab:!0})))};const Bt=({className:t,style:l,comment:r,type:c="comment",level:d=0,replyingId:m,onPostCommentSuccess:u,post:p,onDeleteComment:v,refetchComment:g,hasQuickBookingEnable:h,handleMakeAppointment:y,cardAuthorProps:C,maxChars:E=600,disableShortenContent:k})=>{var w,f,b,N,I,x,P,T,M,j,_,L,S;const{data:{locale:z,userInfo:B,env:{isMarryBaby:A}}}=a(xe),{t:O}=de(),[F,R]=n(r||null),{id:D,countLikes:U,content:V,replies:$=[],images:Z=[],author:H,liked:W,link:Q,mentionedUser:K,mentions:G}=F,{text:Y,replyingTo:J}=(e=>{try{const t=e.match(/\[@([^\]]+)\]/),o=t?t[0].replace("[@","").replace("]",""):"";return{text:e.replace(/\[@([^\]]+)\]/,"").trim(),replyingTo:o}}catch(e){}return{text:""}})(V),{authActionWrapper:X}=q({_joinCommunityIds:[null===(w=null==p?void 0:p.community)||void 0===w?void 0:w.id],_joinTopicIds:null===(f=null==p?void 0:p.topics)||void 0===f?void 0:f.map((e=>e.id))}),[ee,re]=n(4),ce=!!(null==B?void 0:B.id)&&(null==$?void 0:$.some((e=>e.author.id===B.id))),me=e=>{R((t=>{if(!t.replies.find((t=>t.id===e.id))){t.replies.unshift(e);const o=Object.assign(Object.assign({},t),{replies:t.replies.slice(),countReplies:t.countReplies+1});return g&&g(o),o}return t}))},[ue,pe]=n(!1),ve=s((()=>"comment"===c&&$&&0!=$.length?$.sort(((e,t)=>{const o=new Date(e.createdAt).getTime(),a=new Date(t.createdAt).getTime();return o>a?-1:o<a?1:0})):$),[c,$]),ge=(null==$?void 0:$.length)||0,he=String(null==H?void 0:H.email)&&(null==B?void 0:B.email)&&String(null==H?void 0:H.email)===String(null==B?void 0:B.email),ye=(null==H?void 0:H.name)||(null==H?void 0:H.username)||"",Ce=(null==H?void 0:H.username)||(null==H?void 0:H.name)||"",Ee=null==H?void 0:H.avatar,ke=(null==p?void 0:p.isAnonymous)||null==H?void 0:H.role,fe=[...(null==p?void 0:p.isAnonymous)?[{id:(null===(b=null==p?void 0:p.author)||void 0===b?void 0:b.id)||0,name:O("cardPost.anonymous")}]:[],...G||[]],[be,Ne]=n(null),[Ie,je]=n(null);i((()=>{if(null==H?void 0:H.hospitalId){const t=t=>e(void 0,void 0,void 0,(function*(){var e;const o=yield Pe(Ae(Oe.GET_HOSPITAL_INFO,{hospital_branch_id:t,website_url:we[z]}),"get");(null===(e=null==o?void 0:o._data)||void 0===e?void 0:e.branch)&&Ne(null==o?void 0:o._data.branch)}));t(H.hospitalId)}if(null==H?void 0:H.doctorId){const t=t=>e(void 0,void 0,void 0,(function*(){var e;const o=yield Pe(Ae(Oe.GET_DOCTOR_INFO,{doctorId:t,website_url:we[z]}),"get");(null===(e=null==o?void 0:o._data)||void 0===e?void 0:e.doctor)&&je(null==o?void 0:o._data.doctor)}));t(H.doctorId)}}),[H.hospitalId,H.doctorId]);const _e=(null==Ie?void 0:Ie.valid_outpatient)||(null==Ie?void 0:Ie.valid_telemedicine),Se=((null==be?void 0:be.total_available_service)||(null==be?void 0:be.total_available_doctor))>0,ze=h&&(_e||Se),Be="chatbot"===(null===(N=null==F?void 0:F.author)||void 0===N?void 0:N.type);return o.createElement(te,{defaultParams:{_joinCommunityIds:[null===(I=null==p?void 0:p.community)||void 0===I?void 0:I.id],_joinTopicIds:null===(x=null==p?void 0:p.topics)||void 0===x?void 0:x.map((e=>e.id))}},o.createElement(oe,{className:t,style:l,"data-is-reply":!!d,"data-is-marrybaby":A,"data-has-booking":ze},"reply"===c&&o.createElement(Ve,{className:"top-divider",type:"solid"}),o.createElement("div",{style:{padding:"16px 16px 0"}},o.createElement(ae,Object.assign({avatar:Ee,name:ye,username:Ce,timeText:null==p?void 0:p.createdTime,community:null==p?void 0:p.community,className:"post-author "+(he?"with-popover":""),type:c,userId:null==H?void 0:H.id,role:ke,expertId:null==H?void 0:H.partnerId,title:null==H?void 0:H.title,doctorId:null==H?void 0:H.doctorId,hospitalId:null==H?void 0:H.hospitalId,hasQuickBooking:ze,handleMakeAppointment:y,isAnonymous:(null==F?void 0:F.isAnonymous)||Boolean(null==p?void 0:p.isAnonymous)&&(null===(P=null==p?void 0:p.author)||void 0===P?void 0:P.username)===(null==H?void 0:H.username),hideBackground:Be,userType:null==H?void 0:H.type},C)),Boolean(null==F?void 0:F.isVerify)&&!Boolean(null==F?void 0:F.isOppose)&&o.createElement(zt,{title:null===(T=null==F?void 0:F.userVerify)||void 0===T?void 0:T.title,name:null===(M=null==F?void 0:F.userVerify)||void 0===M?void 0:M.name,userId:null===(j=null==F?void 0:F.userVerify)||void 0===j?void 0:j.id,role:null===(_=null==F?void 0:F.userVerify)||void 0===_?void 0:_.role,avatar:null===(L=null==F?void 0:F.userVerify)||void 0===L?void 0:L.avatar,className:"verify-tag"})),o.createElement(ne,{className:"post-content-wrapper",replyingTo:J,mentionedUser:K,description:Y,mentions:fe,maxChars:E,disableShortenContent:k}),o.createElement("span",null),o.createElement("span",null),Z&&Z.length>0?o.createElement("div",{key:"image-preview",className:"image-preview-wrapper","data-is-reply":!0},o.createElement(Ct,{images:Z,authorName:null==H?void 0:H.username})):null,Z&&0!==Z.length||!Q?null:o.createElement("div",{key:"link-preview",className:"link-preview-wrapper","data-is-reply":!0},o.createElement(Je,{url:Q})),"most-engaging"!==c?o.createElement(o.Fragment,null,Be&&o.createElement(le,{listUrl:null==F?void 0:F.source,categorySlug:null==F?void 0:F.categorySlug}),o.createElement(ie,{type:se.reply,loveCount:U,replyCount:ge,className:"post-reaction",liked:W,isReplied:ce,hideCommentIcon:"reply"===c||Be,hasShare:!1,onCommentClick:()=>X((()=>pe((e=>!e)))),onCommentCountClick:()=>X((()=>{pe(!0)})),onLikeClick:()=>X((()=>e(void 0,void 0,void 0,(function*(){if(D){const t=yield(({commentId:t,setLike:o=!1,locale:a})=>e(void 0,void 0,void 0,(function*(){return Le(Te(o?Me.COMMENT.LIKE:Me.COMMENT.UNLIKE,{_locale:a,id:t}),"GET")})))({commentId:D,setLike:!W,locale:z});1===t.status&&R((e=>Object.assign(Object.assign({},e),{liked:!W,countLikes:e.countLikes+(W?-1:1)})))}}))))}),ue&&o.createElement(mt,{replyingId:m||F.id,replyToName:ye,isReply:!0,onClose:()=>pe(!1),onPostSuccess:e=>{"reply"===c?u&&u(e):me(e)},post:p,replyingUser:H}),"comment"===c&&$&&$.length>0?o.createElement("div",{className:"comment-reply-wrapper"},null===(S=null==ve?void 0:ve.slice(0,ee))||void 0===S?void 0:S.map((e=>o.createElement(Bt,{key:e.id,comment:e,type:"reply",className:"comment-reply-item",level:d+1,replyingId:D,onPostCommentSuccess:me,post:p,onDeleteComment:()=>{R((t=>Object.assign(Object.assign({},t),{replies:t.replies.filter((t=>t.id!==e.id)),countReplies:t.countReplies-1})))},handleMakeAppointment:y,hasQuickBookingEnable:h}))),ge>ee&&o.createElement(o.Fragment,null,o.createElement(Ve,{className:"top-divider",type:"solid"}),o.createElement(qe,{className:"more-cmt",size:"lg",color:"ghost",onClick:()=>re((e=>e+4))},O("comment.seeMoreReplies",{count:ge-ee}),o.createElement("img",{className:"chevron-right",src:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6 12L10 8L6 4' stroke='%232D87F3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"})))):null):null,he&&o.createElement(Lt,{onDeleteComment:v,className:"popover",commentId:F.id})))},At=(t,o)=>e(void 0,void 0,void 0,(function*(){var e,a,n;const l=yield Re(Te(Me.COMMENT.LIST,{postId:t,_locale:o,sort:"popularity",perPage:1,withoutReply:1}),"GET");return null===(n=null===(a=null===(e=null==l?void 0:l.data)||void 0===e?void 0:e.comments)||void 0===a?void 0:a.map(We))||void 0===n?void 0:n[0]})),Ot=({className:t,style:l,hideViewMoreComment:s,showMostEngaging:r,onCommentClick:c,onCommentCountClick:d,onMostEngagingCommentClick:m,onPostCommentSuccess:u,disableCardLink:p,disableShortenContent:v,onDeletePost:g,onEditPost:h,post:y,mostEngagingComment:C,onDeleteComment:E,showInputComment:k,InlineCommentsComponent:w,hasQuickBookingEnable:f,handleMakeAppointment:b,cardAuthorProps:N})=>{const[I,x]=n(y),[P,T]=n(!1),[M,j]=n(C),{community:_,topics:L,author:S,slug:z,isPin:B,liked:A,photos:O,mentions:F,title:R,description:D,previewUrl:U,likesCount:V,commentsCount:$,id:Z,commented:H}=I,{data:{locale:W,env:{isMarryBaby:Q,togetherBasePath:K}},action:{pushNotifications:G}}=a(xe),{t:J}=de(),[X,ee]=n(k),oe=`${K}/${(null==_?void 0:_.slug)||"_"}/${z||""}`,le=`${Fe(W)}${oe}`,{authActionWrapper:ue}=q((null==_?void 0:_.slug)?{_joinCommunityIds:[_.id],_joinTopicIds:null==L?void 0:L.map((e=>e.id))}:void 0),[pe,ve]=n(!1);i((()=>{ee(k)}),[k]);const ge=(null==S?void 0:S.name)||(null==S?void 0:S.username)||"",he=(null==S?void 0:S.username)||(null==S?void 0:S.name)||"",ye=null==S?void 0:S.avatar,Ce=(null==I?void 0:I.isAnonymous)||null==S?void 0:S.role,[Ee,ke]=n(null),[we,fe]=n(null);i((()=>{if(null==S?void 0:S.hospitalId){(t=>e(void 0,void 0,void 0,(function*(){var e;const o=yield Pe(Ae(Oe.GET_HOSPITAL_INFO,{hospital_branch_id:t,website_url:De[W]}),"get");(null===(e=null==o?void 0:o._data)||void 0===e?void 0:e.branch)&&ke(null==o?void 0:o._data.branch)})))(S.hospitalId)}if(null==S?void 0:S.doctorId){(t=>e(void 0,void 0,void 0,(function*(){var e;const o=yield Pe(Ae(Oe.GET_DOCTOR_INFO,{doctorId:t,website_url:De[W]}),"get");(null===(e=null==o?void 0:o._data)||void 0===e?void 0:e.doctor)&&fe(null==o?void 0:o._data.doctor)})))(S.doctorId)}}),[S.hospitalId,S.doctorId]);const be=(null==we?void 0:we.valid_outpatient)||(null==we?void 0:we.valid_telemedicine),Ne=((null==Ee?void 0:Ee.total_available_service)||(null==Ee?void 0:Ee.total_available_doctor))>0,Ie=f&&(be||Ne);i((()=>{e(void 0,void 0,void 0,(function*(){if(Z&&$&&r&&!(null==C?void 0:C.id)){const e=yield At(Z,W);j(e)}}))}),[Z,W,$,r,null==C?void 0:C.id]),i((()=>{j(C)}),[null==C?void 0:C.id]);const Se=t=>e(void 0,void 0,void 0,(function*(){if($>1&&(null==M?void 0:M.id)&&(null==M?void 0:M.id)===(null==t?void 0:t.id)){const e=yield At(Z,W);j(e)}x((e=>Object.assign(Object.assign({},e),{commentsCount:e.commentsCount-1}))),E&&E(t)}));return o.createElement(te,{defaultParams:(null==_?void 0:_.slug)?{_joinCommunityIds:[_.id],_joinTopicIds:null==L?void 0:L.map((e=>e.id))}:void 0},P&&o.createElement(Y,{url:le,avatar:je,text:R,onClose:()=>T(!1)}),o.createElement(re,{className:t,style:l,"data-is-marrybaby":Q},B?o.createElement(Xe,{className:"post-pin"}):null,o.createElement("div",{style:{position:"relative",padding:"1rem 1rem 0"}},o.createElement(ae,Object.assign({avatar:ye,name:ge,username:he,url:p?void 0:oe,community:_,timeText:null==I?void 0:I.createdTime,className:"post-author",role:Ce,userId:null==S?void 0:S.id,expertId:null==S?void 0:S.partnerId,doctorId:null==S?void 0:S.doctorId,hospitalId:null==S?void 0:S.hospitalId,title:null==S?void 0:S.title,hasQuickBooking:Ie,handleMakeAppointment:b,"data-testid":"name",isAnonymous:!!(null==I?void 0:I.isAnonymous),extendEle:o.createElement(_t,{authorEmail:String(null==S?void 0:S.email),onDeletePost:g,shareUrl:le,post:I,className:"popover",onEditPost:h})},N))),o.createElement("a",{href:p?void 0:oe,className:"post-content-link-wrapper"},R&&o.createElement(_e,{className:"post-content-title",as:"h2",tag:"h5",fontWeight:"bold","data-testid":"Title of the Post"},me(R)),o.createElement(ne,{className:"post-content-wrapper",description:D,disableShortenContent:v,mentions:F,"data-testid":"Content of the Post"})),o.createElement("span",null),o.createElement("span",null),o.createElement("div",{key:"tag-topic"},L&&L.length>0?o.createElement(ce,{topics:L,className:"post-topics"}):null),o.createElement("div",{key:"social-preview"},(null==I?void 0:I.introUrl)?o.createElement("div",{className:"social-preview-wrapper "+((null==O?void 0:O.length)?"has-image":"")},o.createElement(Et,{url:I.introUrl,image:I.bannerImage})):null),o.createElement("div",{key:"image-preview"},(null==O?void 0:O.length)?o.createElement("div",{className:"image-preview-wrapper"},o.createElement(Ct,{images:O,authorName:null==S?void 0:S.name})):null),o.createElement("div",{key:"link-preview"},(null==I?void 0:I.introUrl)||(null==O?void 0:O.length)||!(null==U?void 0:U.url)?null:o.createElement("div",{className:"link-preview-wrapper"},o.createElement(Je,{title:U.title,url:U.url,image:U.image}))),o.createElement(ie,{isMarryBaby:Q,type:se.post,loveCount:V,replyCount:$,className:"post-reaction "+((null==O?void 0:O.length)||(null==U?void 0:U.url)?"hide-top-border":""),liked:pe?!A:A,isReplied:H,onCommentClick:()=>ue((()=>{c?c():ee((e=>!e))})),onCommentCountClick:()=>{ue((()=>{Q?ee(!0):d?d():!p&&(window.location.href=oe)}))},onShareClick:()=>{T(!0)},onLikeClick:()=>e(void 0,void 0,void 0,(function*(){if(Z&&!pe){ve(!0);try{const t=yield(({id:t,locale:o})=>e(void 0,void 0,void 0,(function*(){if(t)return yield Le(Te(Me.POST.LIKE,{id:t,_locale:o}),"GET")})))({id:Z,locale:W});1!==(null==t?void 0:t.status)?G(et(J)):x((e=>Object.assign(Object.assign({},e),{likesCount:(e.likesCount||0)+(e.liked?-1:1),liked:!e.liked})))}catch(e){G(et(J))}ve(!1)}})),showingMostEngaging:!(!r||!(null==M?void 0:M.id))}),X&&o.createElement(mt,{isMainCmt:!k,onClose:()=>ee(!1),onPostSuccess:e=>{0!==$||(null==M?void 0:M.id)||j(e),x((e=>Object.assign(Object.assign({},e),{commentsCount:e.commentsCount+1,commented:!0}))),u&&u(e)},post:I}),r&&(null==M?void 0:M.id)?o.createElement("div",{className:"most-engaging-wrapper",onClick:e=>{m?(e.stopPropagation(),m()):window.location.href=oe}},o.createElement(Bt,{hasQuickBookingEnable:f,handleMakeAppointment:b,comment:M,post:I,onDeleteComment:()=>{Se&&Se(M)},className:"most-engaging-comment",type:"most-engaging",key:M.id,cardAuthorProps:N}),$>1&&!s&&o.createElement(qe,{className:"see-more-comments",color:"ghost",size:"md"},J("comment.seeMoreComments",{count:$-1}))):null,w))};var Ft=Object.freeze({__proto__:null});export{Je as C,mt as I,Xe as L,dt as P,pt as S,st as T,zt as V,ct as a,nt as b,it as c,vt as d,ht as e,Ct as f,Et as g,Nt as h,Ot as i,_t as j,Bt as k,Lt as l,Ft as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./interfaces/types";
|
package/build/esm/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BabyGrowthChartDuration,B as BabyGrowthChartType,b as BabyGrowthResultTab,E as ELEMENT_CONTROL_INPUT_TYPE,F as FULL_KEY_ADDRESS,G as Gender,L as LOCALE,f as NodeActionType,d as NodeFinalTypes,e as NodeIntentType,g as NodeMultipleOptions,N as NodePosition,c as NodeType,O as OnboardingStep,S as SubotType}from"./Subot-
|
|
1
|
+
export{a as BabyGrowthChartDuration,B as BabyGrowthChartType,b as BabyGrowthResultTab,E as ELEMENT_CONTROL_INPUT_TYPE,F as FULL_KEY_ADDRESS,G as Gender,L as LOCALE,f as NodeActionType,d as NodeFinalTypes,e as NodeIntentType,g as NodeMultipleOptions,N as NodePosition,c as NodeType,O as OnboardingStep,S as SubotType}from"./Subot-dc774172.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./misc/unifyEnv";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useMemo as e}from"react";import{L as a}from"./Subot-
|
|
1
|
+
import{useMemo as e}from"react";import{L as a}from"./Subot-dc774172.js";import{u as n}from"./useTranslations-2b415154.js";const t={"vi-VN":"mang-thai","id-ID":"kehamilan","ms-MY":"kehamilan","km-KH":"ពពោះ","en-PH":"pregnancy","tl-PH":"pregnancy","th-TH":"การตั้งครรภ์","my-MM":"pregnancy","zh-TW":"pregnancy","hi-IN":"pregnancy"},b={[a.Vietnam]:{sexualWellness:"suc-khoe-tinh-duc",health:"suc-khoe",healthyEating:"an-uong-lanh-manh",skinHealth:"da-lieu",healthyHabit:"thoi-quen-lanh-manh",drug:"thuoc",womensHealth:"suc-khoe-phu-nu",fitness:"the-duc-the-thao",pregnancy:"mang-thai",parenting:"nuoi-day-con",diabetes:"tieu-duong-dai-thao-duong",healthyMind:"tam-ly-tam-than"},[a.Indonesia]:{pregnancy:"kehamilan",parenting:"parenting",health:"sehat",diabetes:"diabetes",womensHealth:"wanita",drug:"obat-suplemen",sexualWellness:"",healthyEating:"",skinHealth:""},[a.Malaysia]:{pregnancy:"kehamilan",parenting:"keibubapaan",health:"kesihatan",diabetes:"kencing-manis",womensHealth:"kesihatan-wanita",drug:"ubat",sexualWellness:"",healthyEating:"",skinHealth:""},[a.Cambodia]:{pregnancy:"%e1%9e%96%e1%9e%96%e1%9f%84%e1%9f%87",parenting:"%e1%9e%85%e1%9e%b7%e1%9e%89%e1%9f%92%e1%9e%85%e1%9e%b9%e1%9e%98%e1%9e%80%e1%9e%bc%e1%9e%93",health:"%e1%9e%9f%e1%9e%bb%e1%9e%81%e1%9e%97%e1%9e%b6%e1%9e%96%e1%9e%91%e1%9e%bc%e1%9e%91%e1%9f%85",diabetes:"%e1%9e%87%e1%9f%86%e1%9e%84%e1%9e%ba%e1%9e%91%e1%9e%b9%e1%9e%80%e1%9e%93%e1%9f%84%e1%9e%98%e1%9e%95%e1%9f%92%e1%9e%a2%e1%9f%82%e1%9e%98",womensHealth:"%e1%9e%9f%e1%9e%bb%e1%9e%81%e1%9e%97%e1%9e%b6%e1%9e%96%e1%9e%9f%e1%9f%92%e1%9e%8f%e1%9f%92%e1%9e%9a%e1%9e%b8",drug:"%e1%9e%b1%e1%9e%9f%e1%9e%90%e1%9e%93%e1%9e%b7%e1%9e%84%e1%9e%a2%e1%9e%b6%e1%9e%a0%e1%9e%b6%e1%9e%9a%e1%9e%94%e1%9f%86%e1%9e%94%e1%9f%89%e1%9e%93",sexualWellness:"",healthyEating:"",skinHealth:""},[a.PhilippinesEnglish]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[a.PhilippinesTagalog]:{pregnancy:"pagbubuntis",parenting:"pagiging-magulang",health:"kalusugan",diabetes:"diabetes-fil",womensHealth:"kalusugan-kababaihan",drug:"drugs-at-supplements",sexualWellness:"",healthyEating:"",skinHealth:""},[a.Thailand]:{pregnancy:"%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b8%84%e0%b8%a3%e0%b8%a3%e0%b8%a0%e0%b9%8c",parenting:"%e0%b8%9e%e0%b9%88%e0%b8%ad%e0%b9%81%e0%b8%a1%e0%b9%88%e0%b9%80%e0%b8%a5%e0%b8%b5%e0%b9%89%e0%b8%a2%e0%b8%87%e0%b8%a5%e0%b8%b9%e0%b8%81",health:"%e0%b8%aa%e0%b8%b8%e0%b8%82%e0%b8%a0%e0%b8%b2%e0%b8%9e",diabetes:"%e0%b9%82%e0%b8%a3%e0%b8%84%e0%b9%80%e0%b8%9a%e0%b8%b2%e0%b8%ab%e0%b8%a7%e0%b8%b2%e0%b8%99",womensHealth:"%e0%b8%aa%e0%b8%b8%e0%b8%82%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b8%ab%e0%b8%8d%e0%b8%b4%e0%b8%87",drug:"%e0%b8%a2%e0%b8%b2%e0%b9%81%e0%b8%a5%e0%b8%b0%e0%b8%ad%e0%b8%b2%e0%b8%ab%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%aa%e0%b8%a3%e0%b8%b4%e0%b8%a1",sexualWellness:"",healthyEating:"",skinHealth:""},[a.Myanmar]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-az",sexualWellness:"",healthyEating:"",skinHealth:""},[a.Taiwan]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",drug:"drugs-supplement",sexualWellness:"",healthyEating:"",skinHealth:""},[a.India]:{pregnancy:"pregnancy",parenting:"parenting",health:"health",diabetes:"diabetes",womensHealth:"womens-health",diabetesEn:"en-diabetes",drug:"dawaai",sexualWellness:"",healthyEating:"",skinHealth:""}};const s=a=>{const{locale:s}=n();return{isPregnancy:e((()=>decodeURI(a.replace(/\//gi,"")).includes(t[s])),[]),isParenting:e((()=>{var e;return decodeURI(a.replace(/\//gi,"")).includes(null===(e=b[s])||void 0===e?void 0:e.parenting)}),[]),type:e((()=>function(e,a){const n=e.split("/");for(const e in a){const t=a[e];if(n.includes(t))return e}return null}(a,b[s])),[a,s])}};export{b as M,t as P,s as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"./tslib.es6-
|
|
1
|
+
import{a as o}from"./tslib.es6-693de4fd.js";import{useState as t,useEffect as i,useCallback as a}from"react";import{a as e}from"./getDynamicHealthTool-9b662a1a.js";const l=l=>{const[n,r]=t([]);i((()=>{o(void 0,void 0,void 0,(function*(){const o=yield e(l);r(o)}))}),[e,l]);const s=a((o=>{var t;return(null===(t=n.find((t=>t.template===o)))||void 0===t?void 0:t.link)||""}),[n]);return{allTools:n,getHealthToolLink:s}};export{l as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./tslib.es6-
|
|
1
|
+
import{a as e}from"./tslib.es6-693de4fd.js";import{useState as i,useEffect as t}from"react";const o="undefined"==typeof window,n={VN:"vi",ID:"id",TH:"th",MY:"ms",TW:"zh-TW",KH:"km",MM:"my",IN:"hi",PH:"en"},r="AIzaSyD9AbNa4AFwr8eNVs90G1YhQLhfWJ6KncU",c=(r="",c="",s="",d=500)=>{const[a,l]=i([]),[p,u]=i(!1);return t((()=>{let i;return r?i=window.setTimeout((()=>e(void 0,void 0,void 0,(function*(){var i;if(r)try{u(!0);const t=yield((i="",t="",r="vi")=>e(void 0,void 0,void 0,(function*(){return new Promise(((e,c)=>{if(!i)return c("Need valid text input");if(o)return c("Need valid window object");try{(new window.google.maps.places.AutocompleteService).getPlacePredictions(Object.assign(Object.assign({input:i},t?{componentRestrictions:{country:t}}:{}),{language:n[r]}),e)}catch(e){c(e)}}))})))(r,c,s);l(!(i=t)||i.length<1?[]:i.map((e=>({placeId:e.place_id,description:e.description}))))}catch(e){console.error(e)}finally{u(!1)}else l([])}))),d):a.length&&l([]),()=>{window.clearTimeout(i)}}),[r,d,c]),{isLoading:p,predictions:a}};export{r as G,n as a,c as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./tslib.es6-
|
|
1
|
+
import{a as e}from"./tslib.es6-693de4fd.js";import{useRef as t,useEffect as n,useState as r,useCallback as i}from"react";import{g as o}from"./cookieHelper-d6490b00.js";import{a}from"./useTranslations-2b415154.js";function l(e){const t=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",t).then((e=>Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join("")))}const c=r=>{const i=t("");n((()=>(e(void 0,void 0,void 0,(function*(){var e,t,n,a,c;if(!i.current){let e=yield fetch("https://api.ipify.org").then((e=>e.text()));e||(e=yield fetch("https://icanhazip.com").then((e=>e.text()))),i.current=e}if(null===(t=null===(e=window.localStorage)||void 0===e?void 0:e.setItem)||void 0===t||t.call(e,"fbClientIp",JSON.stringify({client_ip_address:(null===(n=i.current)||void 0===n?void 0:n.replace("\n",""))||"",client_user_agent:navigator.userAgent||""})),null==r?void 0:r.id){const[e,t,n,i,s,u]=yield Promise.all([r.email?l(r.email):null,r.phone?l(r.phone):null,r.birthday?l(r.birthday.split("-").join("")):null,r.gender?"m":"f",r.city_name?l(r.city_name).then((e=>e.replace(/\s/g,""))):null,r.name?l(r.name):null]);o("_fbc"),o("_fbp");const d={user_id:r.id};u&&(d.fn=u),e&&(d.em=e),t&&(d.ph=t),n&&(d.db=n),s&&(d.ct=s),null===(c=null===(a=window.localStorage)||void 0===a?void 0:a.setItem)||void 0===c||c.call(a,"fbDataLayer_userInfo",JSON.stringify(d))}})),()=>{})),[r])},s=e=>{const n=t(),r=t(e);return a()||r.current===e||(n.current=r.current,r.current=e),n.current},u=e=>{const[o,a]=r(e),l=t(0),c=i((e=>{cancelAnimationFrame(l.current),l.current=requestAnimationFrame((()=>{a(e)}))}),[]);return n((()=>()=>cancelAnimationFrame(l.current))),[o,c]};export{s as a,u as b,c as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useRef as r,useContext as t,useMemo as n}from"react";import{T as o}from"./translationsContext-
|
|
1
|
+
import{useRef as r,useContext as t,useMemo as n}from"react";import{T as o}from"./translationsContext-4623d384.js";import e from"string-format";const a=()=>{const t=r(!0);return!!t.current&&(t.current=!1,!0)};let s=0;const l=()=>{const t=r("");return a()&&(s+=1,t.current=`hhg-gen-id${s}`),t.current};function c(){const{values:r,locale:a}=t(o)||{locale:"en-PH"};return n((()=>({t:(t,n)=>r?r[t]?n?e(r[t]||t,n):r[t]||t:(console.warn(`[useTranslations] Missing translation for key ${t} and locale ${a}`),n?e(t,n):t):(console.error("[useTranslations] t method called before translation values are loaded"),t),locale:a})),[r,a])}export{a,l as b,c as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{L as a}from"./Subot-
|
|
1
|
+
import{L as a}from"./Subot-dc774172.js";const i={[a.Vietnam]:"VN",[a.Cambodia]:"KH",[a.Indonesia]:"ID",[a.Malaysia]:"MY",[a.PhilippinesEnglish]:"PH",[a.PhilippinesTagalog]:"PH",[a.Taiwan]:"TW",[a.Thailand]:"TH",[a.Myanmar]:"MM"},n=(a="")=>{const i=a.indexOf("@"),n=a.substring(0,i),s=n.length>3?3:n.length;return a.replace(a.substring(s,i),a.slice(s,i).replace(/./g,"x"))};export{i as M,n as h};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{M as t}from"./screenSizeContext-
|
|
1
|
+
import{M as t}from"./screenSizeContext-8e3cd726.js";import e from"styled-components";import a,{memo as o,useMemo as s}from"react";import{C as n}from"./index-7678ada1.js";import{I as r}from"./index-1cfc85b4.js";import{L as h}from"./Subot-dc774172.js";const l=e.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
align-items: center;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components/vaccination";
|
package/build/esm/vaccination.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e,a as t}from"./tslib.es6-
|
|
1
|
+
import{_ as e,a as t}from"./tslib.es6-693de4fd.js";import a,{useMemo as n,useState as r,useEffect as l,Fragment as i}from"react";import{Stack as o,Flex as c,Badge as s,Grid as d,Box as m,Input as C,Container as u,AspectRatio as p,Tabs as g,ScrollArea as b,Divider as E,SimpleGrid as h}from"@mantine/core";import{B as v,t as y,b as f,u as x}from"./index-1cfc85b4.js";import"@mantine/dates";import"./index-a454d80b.js";import{G as w}from"./Subot-dc774172.js";import"./index-7678ada1.js";import{T as k,I as L}from"./index-6f066011.js";import j from"dayjs";import{M}from"./screenSizeContext-8e3cd726.js";import D from"styled-components";import{t as z}from"./theme-adbee273.js";import"./isProduction-7b1509aa.js";import{u as V}from"./useTranslations-2b415154.js";import{useDisclosure as T}from"@mantine/hooks";import"lodash/debounce";import"./useCategory-e47c3929.js";import{S as B}from"./index-379f6571.js";import"./translationsContext-4623d384.js";import"string-format";import{H as F}from"./index.styles-caebb95e.js";import"./constants-474a60fc.js";import"./utils-9dae9f7b.js";import"./index.styled-4098b19f.js";import"./index-a59b0ec0.js";import{M as $}from"./index-2eaf28c4.js";import{useForm as _}from"@mantine/form";import H from"dayjs/plugin/customParseFormat";import{D as Z}from"./index-d17ea22d.js";import"@mantine/carousel";import"classnames";import"date-fns/locale";import"lodash/throttle";import"react-keyed-flatten-children";import"./cookieHelper-d6490b00.js";import"slugify";const O=D.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
padding: 16px;
|
|
4
4
|
min-height: 110px;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components/organisms/footer";
|
package/build/footer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./index-fb1b5177.js"),a=require("./index-0e9897a9.js"),l=require("dayjs"),n=require("./index-4836150c.js"),o=require("./theme-79d3f26f.js");require("./index-05474ea8.js");var i=require("@mantine/core");require("@mantine/dates"),require("./Subot-a5b86b08.js"),require("./gAssets.js");var r=require("./index-132b26af.js");require("./screenSizeContext-7e9237ac.js"),require("styled-components"),require("./isProduction-5d1cbb0a.js");var d=require("./useTranslations-cab885cb.js");require("@mantine/hooks");var c=require("./index-0a3025ff.js"),s=require("./index-bde6d592.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./translationsContext-ff61a492.js"),require("string-format"),require("./tslib.es6-bc58e7e5.js"),require("date-fns/locale"),require("@mantine/carousel"),require("classnames"),require("lodash/throttle"),require("./utils-2fcd1a59.js"),require("./index.styled-e7790b5f.js");var m=u(e),v=u(l),f="Lj0qoTD",E="OO-qFWT";const g=({url:e,isMobile:t,dataEventCategory:a,dataEventAction:l,dataEventLabel:n})=>m.default.createElement("div",{className:E,"data-is-mobile":t},m.default.createElement("img",{loading:"lazy",className:"country-flag",src:e,alt:"Country Flag","data-event-category":a,"data-event-action":l,"data-content-label":n})),y=({className:e,type:l="main",footerInfo:i,isMobile:c,locale:s})=>{var u,E,y,b,p,N,h,x,k,T,F,q,z,$,L,j,M,C,_,S,w,H,I,A,B,G,D,O;const{t:U}=d.useTranslations(),J=null==i?void 0:i.menu,K=(null===(E=null===(u=null==i?void 0:i.general)||void 0===u?void 0:u.verified)||void 0===E?void 0:E.filter(Boolean))||[];return m.default.createElement("footer",{className:`${f} ${e||""}`,style:"mini"===l?{backgroundColor:o.theme.colors.neutral50}:{}},m.default.createElement(a.Container,null,m.default.createElement("div",{className:"inner","data-type":l},"main"===l?m.default.createElement(m.default.Fragment,null,m.default.createElement("a",{href:"/"},m.default.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(y=null==i?void 0:i.general)||void 0===y?void 0:y.logo,alt:"Logo","data-is-sehat":"id-ID"===s})),m.default.createElement("div",{className:"columns"},m.default.createElement("div",{className:"newsletter"},m.default.createElement(r.Text,{size:"p1",weight:"bold"},null===(b=null==i?void 0:i.general)||void 0===b?void 0:b.content),m.default.createElement(t.Button,{className:"signupButton",color:"primary",size:"lg"},U("footer.signUp")),m.default.createElement("div",{className:"social"},m.default.createElement(r.Text,{size:"sm"},null===(p=null==i?void 0:i.social)||void 0===p?void 0:p.title),m.default.createElement("div",{className:"icons"},null===(h=null===(N=null==i?void 0:i.social)||void 0===N?void 0:N.socials)||void 0===h?void 0:h.map(((e,t)=>m.default.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,href:e.url},m.default.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,src:e.icon,alt:"Logo Social",className:"social-icon"}))))),m.default.createElement("hr",{className:"hrMobile"}))),m.default.createElement("div",null,J&&m.default.createElement(m.default.Fragment,null,m.default.createElement("div",{className:"biglinks"},null===(k=null===(x=J[0])||void 0===x?void 0:x.items)||void 0===k?void 0:k.map(((e,t)=>m.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${n.domainLocales[s]}${e.url}`,className:"bigLink",key:t,href:e.url},e.title)))),m.default.createElement("hr",{className:"hrMobile"}),m.default.createElement("div",{className:"mHalf"},m.default.createElement(r.Text,{size:"sm",className:"linkTitle"},null===(T=J[1])||void 0===T?void 0:T.menu_title),null===(q=null===(F=J[1])||void 0===F?void 0:F.items)||void 0===q?void 0:q.map(((e,t)=>m.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${n.domainLocales[s]}${e.url}`,className:"link",href:e.url,key:t},m.default.createElement(r.Text,{size:"sm",dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:`https://${n.domainLocales[s]}${e.url}`},e.title))))),m.default.createElement("div",{className:"mHalf"},m.default.createElement(r.Text,{size:"sm",className:"linkTitle"},null===(z=J[2])||void 0===z?void 0:z.menu_title),null===(L=null===($=J[2])||void 0===$?void 0:$.items)||void 0===L?void 0:L.map(((e,t)=>e.url&&m.default.createElement("a",{"data-event-category":"Footer","data-event-action":e.title,"data-event-label":e.url,className:"link",href:e.url,key:t},m.default.createElement(r.Text,{size:"sm",dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:e.url},e.title)))))),m.default.createElement("hr",{className:"hrMobile"}),m.default.createElement("div",{className:"otherSites"},m.default.createElement(r.Text,{size:"sm",className:"linkTitle"},null===(j=null==i?void 0:i.branch)||void 0===j?void 0:j.title),m.default.createElement("div",{className:"flags"},null===(C=null===(M=null==i?void 0:i.branch)||void 0===M?void 0:M.branch)||void 0===C?void 0:C.map(((e,t)=>m.default.createElement("a",{className:"link",href:e.url,key:t,"data-event-category":"Footer","data-event-action":e.name,"data-event-label":e.url},m.default.createElement(g,{url:e.flag,isMobile:c,dataEventCategory:"Footer",dataEventAction:e.name,dataEventLabel:e.url})))))))),m.default.createElement("hr",null),m.default.createElement("div",{className:"copyright"},m.default.createElement("div",{className:"copyright-image-wrapper"},K.length?K.map(((e,t)=>m.default.createElement("a",{href:e.url,key:t,className:"copyright-image"},m.default.createElement("img",{loading:"lazy",src:e.image,alt:"DMCA Icon"})))):null),m.default.createElement(r.Text,{size:"xs",className:"copyright-content",as:"div"},m.default.createElement("div",{dangerouslySetInnerHTML:{__html:null===(_=null==i?void 0:i.general)||void 0===_?void 0:_.copyright.replace(/{currentYear}/gi,v.default().get("year").toString())}})))):m.default.createElement(m.default.Fragment,null,(null==i?void 0:i.menu)&&m.default.createElement("div",{className:"columns"},m.default.createElement("div",{className:"mHalf"},m.default.createElement(r.Text,{size:"sm",className:"linkTitle"},null===(S=null==i?void 0:i.menu[1])||void 0===S?void 0:S.menu_title),null===(H=null===(w=null==i?void 0:i.menu[1])||void 0===w?void 0:w.items)||void 0===H?void 0:H.map((e=>m.default.createElement("a",{className:"link",href:e.url,key:e.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":e.title,"data-content-id":`https://${n.domainLocales[s]}${e.url}`,"data-event-category":"Footer","data-event-action":e.title,"data-event-label":`https://${n.domainLocales[s]}${e.url}`},m.default.createElement(r.Text,{dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:`https://${n.domainLocales[s]}${e.url}`,size:"sm",style:{color:o.theme.colors.gray800}},e.title))))),m.default.createElement("div",{className:"mHalf"},m.default.createElement(r.Text,{size:"sm",className:"linkTitle"},null===(I=null==i?void 0:i.menu[2])||void 0===I?void 0:I.menu_title),null===(B=null===(A=null==i?void 0:i.menu[2])||void 0===A?void 0:A.items)||void 0===B?void 0:B.map(((e,t)=>m.default.createElement("a",{className:"link",href:e.url,key:t,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":e.title,"data-content-id":e.url,"data-event-category":"Footer","data-event-action":e.title,"data-event-label":e.url},m.default.createElement(r.Text,{size:"sm",color:o.theme.colors.gray800,dataEventCategory:"Footer",dataEventAction:e.title,dataEventLabel:e.url},e.title))))),"mini"!==l&&m.default.createElement("hr",{className:"hrMobile"}),m.default.createElement("div",{className:"newsletter"},m.default.createElement("div",{className:"social"},m.default.createElement(r.Text,{size:"sm"},null===(G=null==i?void 0:i.social)||void 0===G?void 0:G.title),m.default.createElement("div",{className:"icons"},null===(O=null===(D=null==i?void 0:i.social)||void 0===D?void 0:D.socials)||void 0===O?void 0:O.map(((e,t)=>m.default.createElement("a",{key:t,"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,href:e.url},m.default.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${e.name}`,"data-content-label":e.url,src:e.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var b="B6-KmWK",p="GS-7mbG",N="qc5bEb3",h="CQGVeuT",x="_8eUT8Jr",k="_6JMoel-",T="pFG7UH3";const F=({logoType:e="marryBaby",footerMenu:t,background:l})=>{var n;if(!t)return null;const{general:d,menu:u,socials:f}=t;return m.default.createElement("footer",{className:b,style:{backgroundColor:l||"none"}},m.default.createElement(a.Container,null,m.default.createElement("div",{className:p},null==u?void 0:u.map((({menu_title:e,items:t},a)=>m.default.createElement("div",{className:N,key:`mbf${a}`},m.default.createElement(s.MarryBabyText,{className:"title",type:"subtitle-1",color:o.theme.mbColors.pink},e),null==t?void 0:t.map((({title:e,url:t},a)=>m.default.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${t}`,className:"link",href:t,key:`footer-links-${a}`},m.default.createElement("div",{className:h,key:`mbitem${a}`},m.default.createElement(s.MarryBabyText,{type:"bodytext-2",color:o.theme.mbColors.gray},e)))))))))),m.default.createElement(a.Container,null,m.default.createElement("div",{className:k},m.default.createElement(i.Flex,{gap:"24px",sx:e=>({[e.fn.largerThan("sm")]:{".info-item":{flexGrow:1,width:"50%"}},[e.fn.smallerThan("sm")]:{flexDirection:"column"}})},m.default.createElement(i.Stack,{spacing:"24px",className:"info-item"},m.default.createElement(c.Logo,{className:"logo",type:e}),m.default.createElement(r.Text,{size:"p4",as:"div"},m.default.createElement("div",{dangerouslySetInnerHTML:{__html:null==d?void 0:d.content}})),m.default.createElement("div",{className:T},null==f?void 0:f.map((({icon:e,name:t,url:a},l)=>m.default.createElement("a",{key:`social${l}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${t}`,"data-content-label":t,href:a},m.default.createElement("img",{className:"social-logo",loading:"lazy",src:e,alt:t})))))),m.default.createElement(i.Box,{className:"info-item",sx:{paddingTop:"7px"}},m.default.createElement(r.Text,{size:"p4",as:"div"},m.default.createElement("div",{dangerouslySetInnerHTML:{__html:null==d?void 0:d.information}})))))),m.default.createElement("div",{className:x},m.default.createElement(a.Container,null,m.default.createElement("div",{className:"content"},m.default.createElement(r.Text,{size:"p5",color:"#fff",as:"div"},m.default.createElement("div",{dangerouslySetInnerHTML:{__html:null==d?void 0:d.copyright.replace(/{currentYear}/gi,v.default().get("year").toString())}})),m.default.createElement("div",{className:"verify"},null===(n=null==d?void 0:d.verified)||void 0===n?void 0:n.map((({image:e,url:t},a)=>m.default.createElement("img",{loading:"lazy",key:`imgMbFt${a}`,src:e,alt:t}))))))))};exports.Footer=({type:e,isMobile:t=!0,locale:a,footerInfo:l,siteType:n,background:o})=>"helloSites"===n?m.default.createElement(y,{isMobile:t,type:e,locale:a,footerInfo:l||{}}):m.default.createElement(F,{footerMenu:l,background:o});
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-c22d32f6.js");require("react"),require("./index-fe775c96.js"),require("./tslib.es6-ef1f81bf.js"),require("./index-408e11c4.js"),require("dayjs"),require("./index-d14172a4.js"),require("date-fns/locale"),require("./Subot-695ffc58.js"),require("./isProduction-87f95c7d.js"),require("./theme-785c6f0c.js"),require("./index-72cfe602.js"),require("@mantine/core"),require("@mantine/hooks"),require("./index-f85e80c5.js"),require("./screenSizeContext-83eeed99.js"),require("styled-components"),require("lodash/throttle"),require("@mantine/carousel"),require("./index-7b85f299.js"),require("./useTranslations-1ddacded.js"),require("./translationsContext-efee8d50.js"),require("string-format"),require("classnames"),require("@mantine/dates"),require("./index-6e685d2b.js"),require("./utils-871f6c88.js"),require("./index-f1338b36.js"),require("./index.styled-2bb5f5a2.js"),exports.Footer=e.Footer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./misc/gAssets";
|
package/build/gAssets.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-f85e80c5.js");require("./index-d14172a4.js"),require("date-fns/locale"),require("./Subot-695ffc58.js"),require("./isProduction-87f95c7d.js"),exports.CommonGAssets=e.CommonGAssets,exports.GAssets=e.GAssets;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var t=require("./tslib.es6-
|
|
1
|
+
"use strict";var t=require("./tslib.es6-ef1f81bf.js"),i=require("./core-053d2b2b.js"),e=require("./normalizeLink-245ad49c.js"),l=require("./routing-9c9a4f25.js");const o=(t,i)=>{var e,l;if(!t)return{};const o="tl-PH"===i?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(e=t.link)||void 0===e?void 0:e.startsWith("http"))?t.link:`${o}/health-tools`+(null===(l=t.link)||void 0===l?void 0:l.replace(`${o}/`,"/")),subtitle:t.subtitle,title:t.title}},n=i=>t.__awaiter(void 0,void 0,void 0,(function*(){var t,n;try{const a="tl-PH"===i?"lang=fil":"";let r=[];try{const s=yield fetch(e.normalizeLinkSlash(`${l.getDiscoverApiDomain(i)}/wp-json/api/healthtools?ismenu=0${a?"&"+a:""}`)).then((t=>t.json()));r=(null===(n=null===(t=null==s?void 0:s.data)||void 0===t?void 0:t.map)||void 0===n?void 0:n.call(t,(t=>o(t,i))))||[]}catch(t){}return r}catch(t){console.error(t)}}));exports.formatHealthTool=o,exports.getDynamicHealthTool=n,exports.getDynamicHealthToolWithCache=e=>t.__awaiter(void 0,void 0,void 0,(function*(){return(yield i.getDataWithCache("all-health-tools",(()=>n(e||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react"),t=require("./Subot-695ffc58.js"),l=require("./index-f85e80c5.js");function C(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=C(e);exports.getSocialList=e=>[{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},a.default.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"}),a.default.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=${e}`},{icon:a.default.createElement("img",{src:l.CommonGAssets.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32},loading:"lazy"}),name:"Zalo",href:`https://sp.zalo.me/share?href=${e}`,allowedLocales:[t.LOCALE.Vietnam]},{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},a.default.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),a.default.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=${e}`},{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},a.default.createElement("g",{clipPath:"url(#clip0_687_88944)"},a.default.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)"}),a.default.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"}),a.default.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"})),a.default.createElement("defs",null,a.default.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},a.default.createElement("stop",{stopColor:"#36F46C"}),a.default.createElement("stop",{offset:"1",stopColor:"#03D749"})),a.default.createElement("clipPath",{id:"clip0_687_88944"},a.default.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:`https://wa.me/?text=${e}`},{icon:a.default.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},a.default.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),a.default.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=${e}`},{icon:a.default.createElement("svg",{width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},a.default.createElement("g",{id:"surface1"},a.default.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 "}),a.default.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 "}),a.default.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 "}),a.default.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 "}),a.default.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 "}),a.default.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/?${e}`,allowedLocales:[t.LOCALE.Taiwan]}];
|
package/build/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./useTranslations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./useTranslations-1ddacded.js"),s=require("./useScrollbarSize-6947aaa0.js"),r=require("./useRafState-8a41d548.js"),u=require("./useHealthToolCache-260b51e2.js"),i=require("./useIsInit-311b057a.js"),t=require("./useOutsideClick-7ddf4eaa.js"),a=require("./useCategory-957ea2a8.js");require("react"),require("./translationsContext-efee8d50.js"),require("string-format"),require("lodash/debounce"),require("./tslib.es6-ef1f81bf.js"),require("./cookieHelper-2e8bb9fa.js"),require("./getDynamicHealthTool-ecfb21b0.js"),require("./core-053d2b2b.js"),require("./isProduction-87f95c7d.js"),require("./normalizeLink-245ad49c.js"),require("./routing-9c9a4f25.js"),require("./index-d14172a4.js"),require("date-fns/locale"),require("./Subot-695ffc58.js"),exports.useInitialMount=e.useInitialMount,exports.useTranslations=e.useTranslations,exports.useUniqueId=e.useUniqueId,exports.MEASURE_ELEMENT_CLASS=s.MEASURE_ELEMENT_CLASS,exports.useScrollbarSize=s.useScrollbarSize,exports.useFbDataLayer=r.useFbDataLayer,exports.usePrevious=r.usePrevious,exports.useRafState=r.useRafState,exports.useHealthToolsCache=u.useHealthToolsCache,exports.useIsInit=i.useIsInit,exports.initSharedOutSideClickListener=t.initSharedOutSideClickListener,exports.useOutsideClick=t.useOutsideClick,exports.useSharedOutsideClick=t.useSharedOutsideClick,exports.MAPPED_CATEGORY_SLUGS=a.MAPPED_CATEGORY_SLUGS,exports.PREGNANCY_SLUG=a.PREGNANCY_SLUG,exports.useCategory=a.useCategory;
|
package/build/i18n.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./translationsContext-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./translationsContext-efee8d50.js"),s=require("react"),t=require("./i18n-values/en-PH.js"),r=require("./i18n-values/hi-IN.js"),a=require("./i18n-values/id-ID.js"),n=require("./i18n-values/km-KH.js"),u=require("./i18n-values/ms-MY.js"),i=require("./i18n-values/my-MM.js"),l=require("./i18n-values/th-TH.js"),o=require("./i18n-values/tl-PH.js"),d=require("./i18n-values/vi-VN.js"),v=require("./i18n-values/vi-VN_MB.js"),f=require("./i18n-values/zh-TW.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var j=c(s);const q={"en-PH":t.default,"vi-VN":d.default,"hi-IN":r.default,"id-ID":a.default,"ms-MY":u.default,"my-MM":i.default,"km-KH":n.default,"zh-TW":f.default,"th-TH":l.default,"tl-PH":o.default,"vi-VN_MB":v.default};exports.TranslationsContext=e.TranslationsContext,exports.TranslationsProvider=({locale:t="en-PH",overrides:r,overrideCurrentLocale:a,children:n,shouldLoadTranslation:u=!0,loader:i=null,onTranslationsLoaded:l})=>{const o=r&&r[t]||a,[d,v]=s.useState((()=>Object.assign(Object.assign({},o),u?q[t]:{})));s.useEffect((()=>{v(Object.assign(Object.assign({},o),u?q[t]:{}))}),[u,t]);const f=s.useMemo((()=>d?{locale:t,values:d}:null),[t,d]);return s.useEffect((()=>{l&&Object.keys(d).length&&l(d)}),[d]),j.default.createElement(e.TranslationsContext.Provider,{value:f},f?n:i)},exports.translationsMap=q;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./i18n/indexV2";
|
package/build/i18nV2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./translationsContext-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./translationsContext-efee8d50.js"),t=require("react");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=r(t);exports.TranslationsContext=e.TranslationsContext,exports.TranslationsProvider=({locale:r="en-PH",values:a,children:o})=>{const l=t.useMemo((()=>a?{locale:r,values:a}:null),[r,a]);return n.default.createElement(e.TranslationsContext.Provider,{value:l},o)};
|