@hhgtech/hhg-components 1.28.44 → 1.28.46
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/README.md +5 -0
- package/build/animation-1e9aff6a.js +81 -0
- package/build/babyGrowth.js +24 -24
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components.js +1 -1
- package/build/{constants-53ed67a1.js → constants-28db3174.js} +1 -1
- package/build/{constants-1b55e92a.js → constants-627c575a.js} +2 -2
- package/build/constants.js +1 -1
- package/build/{core-7ce3a7ec.js → core-19b328be.js} +1 -1
- package/build/dataTransform-308ec1d0.js +1 -0
- package/build/ecom.js +1 -1
- package/build/esm/animation-03daa77e.js +81 -0
- package/build/esm/babyGrowth.js +38 -38
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/{constants-63c68cb5.js → constants-414e0341.js} +1 -1
- package/build/esm/{constants-3923407c.js → constants-e35c5696.js} +2 -2
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-9bf4e218.js → core-091d7f79.js} +1 -1
- package/build/esm/dataTransform-6f1823e1.js +1 -0
- package/build/esm/ecom.js +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-37333454.js +1 -0
- package/build/esm/{getSocialList-4cd36db5.js → getSocialList-a6c965a8.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/i18nV2.js +1 -1
- package/build/esm/{index-cf5e3a41.js → index-1bf1317e.js} +9 -9
- package/build/esm/{index-4bcf944f.js → index-34cf1092.js} +1 -1
- package/build/esm/{index-c011f60e.js → index-3d2b9817.js} +1 -1
- package/build/esm/index-3e89f917.js +1 -0
- package/build/esm/{index-d2d4296b.js → index-4786b57c.js} +1 -1
- package/build/esm/{index-c55d9a53.js → index-49c2a65e.js} +1 -1
- package/build/esm/index-5cacbac8.js +1 -0
- package/build/esm/index-638a744e.js +1 -0
- package/build/esm/index-73532662.js +1 -0
- package/build/esm/{index-219d0267.js → index-7b8714ba.js} +1 -1
- package/build/esm/index-865973f4.js +375 -0
- package/build/esm/index-92506b05.js +1 -0
- package/build/esm/{index-bc7b446c.js → index-9e5a2805.js} +5 -5
- package/build/esm/index-a0bcdf6a.js +1 -0
- package/build/esm/index-bb8dc02f.js +1 -0
- package/build/esm/{index-49f5f7fe.js → index-bcca5543.js} +1 -1
- package/build/esm/index-c1cb45b2.js +1 -0
- package/build/esm/index-cb13973d.js +50 -0
- package/build/esm/index-cc5ea46f.js +137 -0
- package/build/esm/index-d18cfff8.js +2748 -0
- package/build/esm/index-d6dac1a0.js +177 -0
- package/build/esm/index-f21deeb6.js +1430 -0
- package/build/esm/index-fd0e0617.js +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-93aedd4f.js → index.styled-b876c90a.js} +3 -3
- package/build/esm/index.styles-00233f7a.js +839 -0
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboardingV2.js +34 -34
- package/build/esm/pwg.js +5 -5
- package/build/esm/{routing-eb0f44e6.js → routing-5b211351.js} +1 -1
- package/build/esm/subot.js +124 -124
- package/build/esm/together.js +1 -1
- package/build/esm/types-21b8927e.js +3004 -0
- package/build/esm/{types-432589c8.js → types-242705e6.js} +10 -10
- package/build/esm/types.js +1 -1
- package/build/esm/useCategory-2e217da0.js +1 -0
- package/build/esm/useHealthToolCache-011e34e2.js +1 -0
- package/build/esm/{usePlacesAutocomplete-db537374.js → usePlacesAutocomplete-ed4983f5.js} +1 -1
- package/build/esm/{useTranslations-154c6e71.js → useTranslations-80f9bf98.js} +1 -1
- package/build/esm/{utils-283a240e.js → utils-19ad9237.js} +2 -2
- package/build/esm/utils-39fb1c8c.js +7 -0
- package/build/esm/utils-3f639011.js +1 -0
- package/build/esm/{utils-e247d963.js → utils-d4e0e9b5.js} +1 -1
- package/build/esm/vaccination.js +40 -40
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-3e4543ff.js +1 -0
- package/build/{getSocialList-2ef855cd.js → getSocialList-196c323b.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/index-065c9097.js +1 -0
- package/build/index-07dff904.js +1 -0
- package/build/index-0c7093ea.js +50 -0
- package/build/{index-cc5c10b5.js → index-0f6355d4.js} +1 -1
- package/build/index-19e259ce.js +1 -0
- package/build/index-2420eee5.js +1430 -0
- package/build/index-425f3390.js +1 -0
- package/build/index-43df25b1.js +1 -0
- package/build/{index-a4fbcb10.js → index-4a8b5e48.js} +1 -1
- package/build/index-4c4d7568.js +137 -0
- package/build/{index-a1855a8c.js → index-4de92198.js} +4 -4
- package/build/{index-f97ad29a.js → index-5385e211.js} +1 -1
- package/build/{index-4ec0c769.js → index-6f8ff7df.js} +1 -1
- package/build/index-7154350f.js +375 -0
- package/build/{index-1cce3d61.js → index-8a21ecb2.js} +1 -1
- package/build/index-8e6644eb.js +1 -0
- package/build/{index-90bb6947.js → index-9003442e.js} +1 -1
- package/build/{index-c68ec57c.js → index-96dd78ba.js} +3 -3
- package/build/index-beef0ff7.js +1 -0
- package/build/index-cbbe3154.js +2748 -0
- package/build/{index-15ae0fb6.js → index-d27a3f5f.js} +1 -1
- package/build/{index-895087de.js → index-e13a4f9a.js} +1 -1
- package/build/index-ff74de8e.js +177 -0
- package/build/index.js +1 -1
- package/build/{index.styled-7556937e.js → index.styled-a45b7854.js} +1 -1
- package/build/index.styles-ce607f17.js +839 -0
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboardingV2.js +34 -34
- package/build/pwg.js +2 -2
- package/build/{routing-b6fbe4e9.js → routing-46446fba.js} +1 -1
- package/build/subot.js +123 -123
- package/build/together.js +1 -1
- package/build/types-d2335814.js +3004 -0
- package/build/{types-2b75bb53.js → types-e54d8d93.js} +10 -10
- package/build/types.js +1 -1
- package/build/useCategory-c99469f2.js +1 -0
- package/build/useHealthToolCache-dc437f4f.js +1 -0
- package/build/{usePlacesAutocomplete-f182b9d8.js → usePlacesAutocomplete-55e04a25.js} +1 -1
- package/build/{useTranslations-f081b85d.js → useTranslations-b435b717.js} +1 -1
- package/build/utils-469dda3f.js +1 -0
- package/build/{utils-bdaf775c.js → utils-83803365.js} +2 -2
- package/build/{utils-9a23430c.js → utils-9778a239.js} +1 -1
- package/build/utils-c18ec2df.js +1 -0
- package/build/vaccination.js +33 -33
- package/package.json +10 -3
- package/build/dataTransform-777dc7c3.js +0 -1
- package/build/esm/dataTransform-0f753a8d.js +0 -1
- package/build/esm/getDynamicHealthTool-bf5ae45e.js +0 -1
- package/build/esm/index-063cc1f8.js +0 -1
- package/build/esm/index-13896a1f.js +0 -1
- package/build/esm/index-1d02f620.js +0 -1
- package/build/esm/index-43771efb.js +0 -1
- package/build/esm/index-48f2acf5.js +0 -1
- package/build/esm/index-5beb9325.js +0 -1
- package/build/esm/index-67cf9fd6.js +0 -177
- package/build/esm/index-6dd55943.js +0 -3122
- package/build/esm/index-7b051fad.js +0 -1
- package/build/esm/index-8d0e1fc9.js +0 -1
- package/build/esm/index-b4e3cda1.js +0 -1
- package/build/esm/index-cd27c1f3.js +0 -1
- package/build/esm/index-d2fd18b2.js +0 -1
- package/build/esm/index-e9845176.js +0 -1
- package/build/esm/index-edff5128.js +0 -1
- package/build/esm/index.styled-6f2497bf.js +0 -1430
- package/build/esm/index.styled-a1372cbc.js +0 -3140
- package/build/esm/index.styled-aa903af8.js +0 -50
- package/build/esm/index.styles-968498ec.js +0 -846
- package/build/esm/screenSizeContext-96560239.js +0 -81
- package/build/esm/types-a2185681.js +0 -1
- package/build/esm/useCategory-89c67c7a.js +0 -1
- package/build/esm/useHealthToolCache-b4214f5b.js +0 -1
- package/build/esm/useRafState-60be12a5.js +0 -1
- package/build/getDynamicHealthTool-88abb9f6.js +0 -1
- package/build/index-08fdac64.js +0 -1
- package/build/index-22b73910.js +0 -1
- package/build/index-2a9e9db0.js +0 -1
- package/build/index-6cbdbb0f.js +0 -1
- package/build/index-90651331.js +0 -1
- package/build/index-9bec53cb.js +0 -177
- package/build/index-aa35fe57.js +0 -3122
- package/build/index-b30908be.js +0 -1
- package/build/index-c45fd3c9.js +0 -1
- package/build/index-c97e51b3.js +0 -1
- package/build/index-cff12c7f.js +0 -1
- package/build/index-d75cc027.js +0 -1
- package/build/index-f3d26f67.js +0 -1
- package/build/index.styled-49e95638.js +0 -3140
- package/build/index.styled-a3496699.js +0 -1430
- package/build/index.styled-a3cec606.js +0 -50
- package/build/index.styles-8637f663.js +0 -846
- package/build/screenSizeContext-0242fe70.js +0 -81
- package/build/types-ff669f4e.js +0 -1
- package/build/useCategory-99b3ce3f.js +0 -1
- package/build/useHealthToolCache-194e52e1.js +0 -1
- package/build/useRafState-eb46223d.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-4bdcde00.js → BMI_BOYS.percentile.monthly-0eb54c7c.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-1155ea68.js → BMI_BOYS.percentile.weekly-b7bde0b1.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-7c76df92.js → BMI_BOYS.percentile.yearly-2aa9ad44.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-181d5ae3.js → BMI_BOYS.zscore.monthly-97389f6d.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-0cf8df2f.js → BMI_BOYS.zscore.weekly-bc5a17ee.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-102965ca.js → BMI_BOYS.zscore.yearly-95e1abf3.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-2cf6d311.js → BMI_GIRLS.percentile.monthly-8a628c8b.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-5b6d4586.js → BMI_GIRLS.percentile.weekly-c3423d0b.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-3509e0f0.js → BMI_GIRLS.percentile.yearly-30c05aa5.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-dbe09d64.js → BMI_GIRLS.zscore.monthly-e81868f9.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-727a462b.js → BMI_GIRLS.zscore.weekly-98365971.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-9aa1baa4.js → BMI_GIRLS.zscore.yearly-34dac101.js} +0 -0
- /package/build/{ChevronDown-09646e34.js → ChevronDown-77fab19e.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-67f49877.js → HEAD CIRCUM_BOYS.percentile.monthly-f49c4a46.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-b7cdc6c2.js → HEAD CIRCUM_BOYS.percentile.weekly-72afd132.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-679ce89e.js → HEAD CIRCUM_BOYS.percentile.yearly-ab0deda0.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-ac11764c.js → HEAD CIRCUM_BOYS.zscore.monthly-fbd5f8c4.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-6794e1f8.js → HEAD CIRCUM_BOYS.zscore.weekly-87f840f6.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-abd78ce6.js → HEAD CIRCUM_BOYS.zscore.yearly-9a7dd00c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-770aee60.js → HEAD CIRCUM_GIRLS.percentile.monthly-679b8839.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-7b02ba8f.js → HEAD CIRCUM_GIRLS.percentile.weekly-b4e20015.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-7271e0f4.js → HEAD CIRCUM_GIRLS.percentile.yearly-9cd60765.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-d849260b.js → HEAD CIRCUM_GIRLS.zscore.monthly-ab6de2c6.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-b1e4bdb4.js → HEAD CIRCUM_GIRLS.zscore.weekly-7d38c523.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-fe67e62b.js → HEAD CIRCUM_GIRLS.zscore.yearly-eb9d57e8.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-a9b28e03.js → HEIGHT_BOYS.percentile.monthly-41de847f.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-d256f904.js → HEIGHT_BOYS.percentile.weekly-62b868f0.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-d0d7870c.js → HEIGHT_BOYS.percentile.yearly-e2c7bb82.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-1f6d8b3b.js → HEIGHT_BOYS.zscore.monthly-5d6cc9db.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-ca971d85.js → HEIGHT_BOYS.zscore.weekly-d7b99302.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-0f6350a9.js → HEIGHT_BOYS.zscore.yearly-e5699025.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-515bf89a.js → HEIGHT_GIRLS.percentile.monthly-bac0286d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-c9e09302.js → HEIGHT_GIRLS.percentile.weekly-6999925f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-aeba297a.js → HEIGHT_GIRLS.percentile.yearly-ebfa2c19.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-b580279d.js → HEIGHT_GIRLS.zscore.monthly-39be4dd2.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-a957ddaf.js → HEIGHT_GIRLS.zscore.weekly-207cf2f5.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-5931c772.js → HEIGHT_GIRLS.zscore.yearly-265aafc2.js} +0 -0
- /package/build/{Subot-f5c59f1e.js → Subot-54546cbb.js} +0 -0
- /package/build/{Visible-b951d667.js → Visible-27b623f0.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-03059aba.js → WEIGHT_BOYS.percentile.monthly-9ca3a316.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-003a1949.js → WEIGHT_BOYS.percentile.weekly-7e51fb9b.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-edb57cf2.js → WEIGHT_BOYS.percentile.yearly-b47c5be9.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-7bdf338c.js → WEIGHT_BOYS.zscore.monthly-6d59370f.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-e5476fd1.js → WEIGHT_BOYS.zscore.weekly-38beac02.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-c7fa6d7e.js → WEIGHT_BOYS.zscore.yearly-1f4013a7.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-06c20697.js → WEIGHT_GIRLS.percentile.monthly-c9144c22.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-a7169e9c.js → WEIGHT_GIRLS.percentile.weekly-5455b91e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-51c606c5.js → WEIGHT_GIRLS.percentile.yearly-03c736dd.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-f2ffff35.js → WEIGHT_GIRLS.zscore.monthly-415a66a8.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-dab69627.js → WEIGHT_GIRLS.zscore.weekly-1e23361d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-f10ce018.js → WEIGHT_GIRLS.zscore.yearly-8db29178.js} +0 -0
- /package/build/{cookieHelper-16601856.js → cookieHelper-59a64e32.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-f262473c.js → BMI_BOYS.percentile.monthly-57e884f8.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-f5b94d14.js → BMI_BOYS.percentile.weekly-b2c63459.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-7ec74edd.js → BMI_BOYS.percentile.yearly-8ca90fac.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-a4ac044c.js → BMI_BOYS.zscore.monthly-b493d2f9.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-b7953339.js → BMI_BOYS.zscore.weekly-62ae4fbc.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-8d5a5f2d.js → BMI_BOYS.zscore.yearly-e2aad569.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-3b21e9f6.js → BMI_GIRLS.percentile.monthly-7f8de0c2.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-8a72ee76.js → BMI_GIRLS.percentile.weekly-6e0b116a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-629770c3.js → BMI_GIRLS.percentile.yearly-4a395636.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-565f420c.js → BMI_GIRLS.zscore.monthly-be973fb7.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-e4afc98b.js → BMI_GIRLS.zscore.weekly-c19aae0e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-b35d87f5.js → BMI_GIRLS.zscore.yearly-7bf54eb9.js} +0 -0
- /package/build/esm/{ChevronDown-a01c53f7.js → ChevronDown-b9b5a352.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-6a8bb7ee.js → HEAD CIRCUM_BOYS.percentile.monthly-6e42d726.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-82951ccd.js → HEAD CIRCUM_BOYS.percentile.weekly-8999c4bf.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-9eef9698.js → HEAD CIRCUM_BOYS.percentile.yearly-b5760636.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-a3391bc3.js → HEAD CIRCUM_BOYS.zscore.monthly-fe30f273.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-f733d920.js → HEAD CIRCUM_BOYS.zscore.weekly-17145cf6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-2146715a.js → HEAD CIRCUM_BOYS.zscore.yearly-0d813a98.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-9952f63b.js → HEAD CIRCUM_GIRLS.percentile.monthly-ae35f7b2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-a79e4cb3.js → HEAD CIRCUM_GIRLS.percentile.weekly-430e5931.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-5793bddc.js → HEAD CIRCUM_GIRLS.percentile.yearly-ce5d85d6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-9cf0d7e7.js → HEAD CIRCUM_GIRLS.zscore.monthly-b304dc6c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-554b1c54.js → HEAD CIRCUM_GIRLS.zscore.weekly-de588d96.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-92513492.js → HEAD CIRCUM_GIRLS.zscore.yearly-44e77264.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-dde47a57.js → HEIGHT_BOYS.percentile.monthly-e574a87c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-26a48f0b.js → HEIGHT_BOYS.percentile.weekly-49bc6c02.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-7f453bec.js → HEIGHT_BOYS.percentile.yearly-99cf7774.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-ef1cb387.js → HEIGHT_BOYS.zscore.monthly-63c3566b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-97fa211a.js → HEIGHT_BOYS.zscore.weekly-a7eff90c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-3e3bde63.js → HEIGHT_BOYS.zscore.yearly-b06dea5e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-30be483f.js → HEIGHT_GIRLS.percentile.monthly-b154ae1d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-7379a593.js → HEIGHT_GIRLS.percentile.weekly-a3dd221b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-478368ef.js → HEIGHT_GIRLS.percentile.yearly-c1a93361.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-3a72a7a6.js → HEIGHT_GIRLS.zscore.monthly-47b24f91.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-b6c34b3a.js → HEIGHT_GIRLS.zscore.weekly-f3cd351a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-76e796e8.js → HEIGHT_GIRLS.zscore.yearly-f6e9bb0c.js} +0 -0
- /package/build/esm/{Subot-dac02b43.js → Subot-0c45fa4c.js} +0 -0
- /package/build/esm/{Visible-47f22dfd.js → Visible-3eb21335.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-687b7b12.js → WEIGHT_BOYS.percentile.monthly-87900c96.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-8af24869.js → WEIGHT_BOYS.percentile.weekly-6fb93a78.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-284c0509.js → WEIGHT_BOYS.percentile.yearly-ccca0fe8.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-3e998d39.js → WEIGHT_BOYS.zscore.monthly-35d466dc.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-e6a34c52.js → WEIGHT_BOYS.zscore.weekly-d74d6ff5.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-78b9aee1.js → WEIGHT_BOYS.zscore.yearly-2c068e1e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-a09b44e8.js → WEIGHT_GIRLS.percentile.monthly-1ee7e829.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-feee61f9.js → WEIGHT_GIRLS.percentile.weekly-ab30775b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-63bc5a30.js → WEIGHT_GIRLS.percentile.yearly-893b6771.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-eb53f818.js → WEIGHT_GIRLS.zscore.monthly-c37f1d39.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-d393998a.js → WEIGHT_GIRLS.zscore.weekly-3a1449f6.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-7a32a9cc.js → WEIGHT_GIRLS.zscore.yearly-aa00837d.js} +0 -0
- /package/build/esm/{cookieHelper-55e30d0f.js → cookieHelper-cbd9f06e.js} +0 -0
- /package/build/esm/{index-07063e55.js → index-7d682662.js} +0 -0
- /package/build/esm/{index-3d838a6b.js → index-c9bdb9a2.js} +0 -0
- /package/build/esm/{index-f30ca662.js → index-fb029176.js} +0 -0
- /package/build/esm/{isProduction-d1491481.js → isProduction-cfb9150a.js} +0 -0
- /package/build/esm/{localizeNumberFormat-6df9f051.js → localizeNumberFormat-213a73b8.js} +0 -0
- /package/build/esm/{normalizeLink-38377186.js → normalizeLink-cc25681e.js} +0 -0
- /package/build/esm/{number-161e80f5.js → number-dd894856.js} +0 -0
- /package/build/esm/{paths-25ba6851.js → paths-2d37bc61.js} +0 -0
- /package/build/esm/{theme-0bf733e5.js → theme-9f017335.js} +0 -0
- /package/build/esm/{translationsContext-2928d817.js → translationsContext-9fc8f894.js} +0 -0
- /package/build/esm/{tslib.es6-ed0fd94c.js → tslib.es6-cabcb8ea.js} +0 -0
- /package/build/esm/{types-b8a4b227.js → types-2d28585d.js} +0 -0
- /package/build/esm/{useIsInit-cb7d2978.js → useIsInit-81de6d8b.js} +0 -0
- /package/build/esm/{useOutsideClick-f603145b.js → useOutsideClick-e1437a3f.js} +0 -0
- /package/build/esm/{useScrollbarSize-258e8689.js → useScrollbarSize-6ecc2f5a.js} +0 -0
- /package/build/{index-aa2246a9.js → index-21c825aa.js} +0 -0
- /package/build/{index-c11ba2de.js → index-4b719c83.js} +0 -0
- /package/build/{index-8f6f3262.js → index-7005321e.js} +0 -0
- /package/build/{isProduction-60ee72ee.js → isProduction-426652cc.js} +0 -0
- /package/build/{localizeNumberFormat-3a99a4d3.js → localizeNumberFormat-5389239f.js} +0 -0
- /package/build/{normalizeLink-e9909bca.js → normalizeLink-ef4fc463.js} +0 -0
- /package/build/{number-991a82e8.js → number-f6e8e1a9.js} +0 -0
- /package/build/{paths-090390a0.js → paths-b1c94851.js} +0 -0
- /package/build/{theme-1a96d62c.js → theme-98a7bede.js} +0 -0
- /package/build/{translationsContext-d6a9ac72.js → translationsContext-6c5fb248.js} +0 -0
- /package/build/{tslib.es6-5195a8c8.js → tslib.es6-d46558cb.js} +0 -0
- /package/build/{types-e5a9bebd.js → types-032556e4.js} +0 -0
- /package/build/{useIsInit-ff0abff5.js → useIsInit-8386673c.js} +0 -0
- /package/build/{useOutsideClick-357f47d1.js → useOutsideClick-5544e570.js} +0 -0
- /package/build/{useScrollbarSize-560f763b.js → useScrollbarSize-d4ccc356.js} +0 -0
|
@@ -1,3140 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import t,{useState as a,useMemo as o,useCallback as i,createContext as r,useContext as n,useRef as l,useEffect as s}from"react";import{useMantineTheme as d,createStyles as c,Flex as p,Box as m,rem as u,Portal as g,Anchor as h,Accordion as v}from"@mantine/core";import{_ as b,a as f}from"./tslib.es6-ed0fd94c.js";import{u as x,b as w}from"./useTranslations-154c6e71.js";import{T as y,H as E,I as C,P as k}from"./index-48f2acf5.js";import{B as A,I as N,u as z,A as T,f as S,T as L}from"./index-bc7b446c.js";import"@mantine/dates";import{d as V,D as P}from"./index-49f5f7fe.js";import{L as F}from"./Subot-dac02b43.js";import{C as j}from"./index-c011f60e.js";import B from"dayjs";import{M as O,t as R}from"./screenSizeContext-96560239.js";import M,{keyframes as I}from"styled-components";import{t as U}from"./theme-0bf733e5.js";import{a as D}from"./number-161e80f5.js";import{i as W}from"./isProduction-d1491481.js";import"@mantine/hooks";import{R as H,U as Z,V as q,b as G,W as X,X as Q,Y as K,H as Y,Z as $,_ as J,$ as _,a0 as ee,a1 as te,a2 as ae,A as oe,a3 as ie,B as re,a4 as ne,z as le,Q as se,a5 as de}from"./index.styles-968498ec.js";import{format as ce}from"date-fns";import"./translationsContext-2928d817.js";import"string-format";import{B as pe}from"./index-c55d9a53.js";import{I as me}from"./index-d2d4296b.js";import{U as ue,P as ge,a as he,b as ve,c as be,e as fe}from"./index-cf5e3a41.js";import{g as xe}from"./routing-eb0f44e6.js";import we from"dayjs/plugin/relativeTime";import{P as ye}from"./paths-25ba6851.js";import{e as Ee}from"./constants-3923407c.js";import Ce from"lodash/debounce";import"./useCategory-89c67c7a.js";import{M as ke}from"./index-d2fd18b2.js";import"innertext";import{d as Ae,g as Ne}from"./cookieHelper-55e30d0f.js";import"react-contenteditable";import"react-dom";import"./utils-283a240e.js";import"./index.styled-93aedd4f.js";import"./index-07063e55.js";const ze=t=>e.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},t),e.createElement("path",{d:"M3.99403 3.32695C3.86141 3.32698 3.73181 3.36657 3.62181 3.44065C3.5118 3.51472 3.42638 3.61992 3.37648 3.7428C3.32658 3.86567 3.31445 4.00064 3.34165 4.13044C3.36885 4.26024 3.43415 4.37898 3.52919 4.47148L7.05784 8.00013L3.52919 11.5288C3.46521 11.5902 3.41413 11.6638 3.37894 11.7452C3.34375 11.8266 3.32516 11.9142 3.32425 12.0029C3.32335 12.0916 3.34015 12.1796 3.37368 12.2617C3.40721 12.3438 3.45678 12.4185 3.5195 12.4812C3.58222 12.5439 3.65682 12.5935 3.73894 12.627C3.82106 12.6605 3.90904 12.6773 3.99774 12.6764C4.08643 12.6755 4.17405 12.6569 4.25547 12.6217C4.33689 12.5865 4.41047 12.5355 4.4719 12.4715L8.00054 8.94283L11.5292 12.4715C11.5906 12.5355 11.6642 12.5865 11.7456 12.6217C11.827 12.6569 11.9147 12.6755 12.0034 12.6764C12.092 12.6773 12.18 12.6605 12.2621 12.627C12.3443 12.5935 12.4189 12.5439 12.4816 12.4812C12.5443 12.4185 12.5939 12.3439 12.6274 12.2617C12.6609 12.1796 12.6777 12.0916 12.6768 12.0029C12.6759 11.9142 12.6573 11.8266 12.6222 11.7452C12.587 11.6638 12.5359 11.5902 12.4719 11.5288L8.94325 8.00013L12.4719 4.47148C12.5682 4.37784 12.634 4.25728 12.6607 4.1256C12.6873 3.99392 12.6735 3.85726 12.6212 3.73354C12.5688 3.60982 12.4803 3.5048 12.3672 3.43224C12.2542 3.35969 12.1218 3.32299 11.9875 3.32695C11.8143 3.33211 11.6499 3.4045 11.5292 3.52877L8.00054 7.05742L4.4719 3.52877C4.40977 3.46491 4.33548 3.41415 4.2534 3.37948C4.17132 3.34482 4.08313 3.32696 3.99403 3.32695Z"})),Te={admin:"cardAuthor.admin",moderator:"cardAuthor.moderator",ambassador:"cardAuthor.ambassador",expert:"cardAuthor.expert",sponsor:"cardAuthor.sponsor",guide:"cardAuthor.guide",influencer:"cardAuthor.influencer"},Se=e=>{var{siteType:a,role:o,title:i,styles:r,className:n}=e,l=b(e,["siteType","role","title","styles","className"]);const{t:s}=x(),d=o?(e=>["admin","moderator","ambassador","expert","sponsor","guide","influencer"].find((t=>t===e)))(o):"",{classes:c,cx:p}=H(void 0,{name:"AuthorBadge",styles:r});return d&&Te[d]?t.createElement("div",Object.assign({className:p(c.root,n),"data-label-type":d,"data-is-marrybaby":"marryBaby"===a},l),i||s(Te[d])):null},Le=e=>{var{label:r,bookingId:n,bookingType:l="doctor",locale:s="vi-VN"}=e,d=b(e,["label","bookingId","bookingType","locale"]);const{t:c}=x(),[p,m]=a(!1),u=o((()=>"undefined"!=typeof window?window.location.href:""),[]),g=i((()=>f(void 0,void 0,void 0,(function*(){var e,t,a,o,i,r,d,c,p,u,g,h,v,b,f;const x="doctor"===l?ye.GET_DOCTOR_DETAIL:"hospital"===l?ye.GET_HOSPITAL_DETAIL:"service"===l?ye.GET_SERVICE_DETAIL:"";try{m(!0);const w=yield Z(q(x,{id:n,site:V[s]}),"get");if(1===(null==w?void 0:w._status)){const n="doctor"===l?{id:null===(t=null===(e=null==w?void 0:w._data)||void 0===e?void 0:e.doctor)||void 0===t?void 0:t.id,slug:null===(o=null===(a=null==w?void 0:w._data)||void 0===a?void 0:a.doctor)||void 0===o?void 0:o.slug,localSlug:null===(i=Ee[s])||void 0===i?void 0:i.DOCTOR}:"hospital"===l?{id:null===(d=null===(r=null==w?void 0:w._data)||void 0===r?void 0:r.branch)||void 0===d?void 0:d.id,slug:null===(p=null===(c=null==w?void 0:w._data)||void 0===c?void 0:c.branch)||void 0===p?void 0:p.slug,localSlug:null===(u=Ee[s])||void 0===u?void 0:u.HOSPITAL}:{id:null===(h=null===(g=null==w?void 0:w._data)||void 0===g?void 0:g.service)||void 0===h?void 0:h.id,slug:null===(b=null===(v=null==w?void 0:w._data)||void 0===v?void 0:v.service)||void 0===b?void 0:b.slug,localSlug:null===(f=Ee[s])||void 0===f?void 0:f.SERVICE};window.location.href=`https://${W?"":"discover."}${V[s]}/care/${n.localSlug}/${n.slug}-${n.id}/`}else m(!1)}catch(e){console.log(e),m(!1)}}))),[]);return n&&l?t.createElement(A,Object.assign({dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:u,onClick:g,loading:p},d),r||c("careBooking.bookAnAppointment")):null},Ve=M.div`
|
|
2
|
-
--dropdown-padding: 12px 18px 12px 16px;
|
|
3
|
-
position: relative;
|
|
4
|
-
box-sizing: border-box;
|
|
5
|
-
border: 1px solid ${U.colors.gray200};
|
|
6
|
-
background: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A")
|
|
7
|
-
no-repeat;
|
|
8
|
-
background-position: right 16px center;
|
|
9
|
-
border-radius: ${U.borderRadius};
|
|
10
|
-
|
|
11
|
-
&[data-disabled='true'],
|
|
12
|
-
:disabled {
|
|
13
|
-
background-color: #f2f2f2;
|
|
14
|
-
cursor: not-allowed;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&[data-size='sm'] {
|
|
18
|
-
font-size: 13px;
|
|
19
|
-
line-height: 20px;
|
|
20
|
-
}
|
|
21
|
-
&[data-size='md'] {
|
|
22
|
-
font-size: 14px;
|
|
23
|
-
line-height: 21px;
|
|
24
|
-
}
|
|
25
|
-
&[data-size='lg'] {
|
|
26
|
-
font-size: 16px;
|
|
27
|
-
line-height: 24px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&[data-has-icons='true'] {
|
|
31
|
-
border: none;
|
|
32
|
-
background: ${U.colors.gray100};
|
|
33
|
-
|
|
34
|
-
img,
|
|
35
|
-
svg {
|
|
36
|
-
display: inline-block;
|
|
37
|
-
max-width: 16px;
|
|
38
|
-
margin-right: 6px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
span {
|
|
42
|
-
display: inline-block;
|
|
43
|
-
vertical-align: middle;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&:hover {
|
|
47
|
-
box-shadow: none;
|
|
48
|
-
}
|
|
49
|
-
> div {
|
|
50
|
-
position: relative;
|
|
51
|
-
display: flex;
|
|
52
|
-
width: 100%;
|
|
53
|
-
box-sizing: border-box;
|
|
54
|
-
align-items: center;
|
|
55
|
-
}
|
|
56
|
-
> div::after {
|
|
57
|
-
position: absolute;
|
|
58
|
-
top: 50%;
|
|
59
|
-
right: 12px;
|
|
60
|
-
width: 10px;
|
|
61
|
-
height: 8px;
|
|
62
|
-
background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
|
|
63
|
-
background-repeat: no-repeat;
|
|
64
|
-
content: '';
|
|
65
|
-
transform: translateY(-50%);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&:hover {
|
|
70
|
-
box-shadow: 0 0 2px 2px ${e=>e.shadowColor};
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&[data-is-native='true'] {
|
|
74
|
-
padding: var(--dropdown-padding);
|
|
75
|
-
line-height: 24px;
|
|
76
|
-
|
|
77
|
-
&:focus {
|
|
78
|
-
box-shadow: 0px 0px 2px 2px ${e=>e.shadowColor};
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
`,Pe=M.div`
|
|
82
|
-
padding: var(--dropdown-padding);
|
|
83
|
-
cursor: pointer;
|
|
84
|
-
|
|
85
|
-
&.with-label {
|
|
86
|
-
padding-top: 34px;
|
|
87
|
-
padding-bottom: 12px;
|
|
88
|
-
}
|
|
89
|
-
&[data-dropdown-open] {
|
|
90
|
-
padding: 11px 15px 11px 15px;
|
|
91
|
-
border: 1px solid ${e=>e.color};
|
|
92
|
-
border-radius: ${U.borderRadius};
|
|
93
|
-
box-shadow: 0 0 2px 2px ${e=>e.shadowColor};
|
|
94
|
-
}
|
|
95
|
-
`,Fe=M.ul`
|
|
96
|
-
position: absolute;
|
|
97
|
-
top: 100%;
|
|
98
|
-
/* right: 0; */
|
|
99
|
-
min-width: 100%;
|
|
100
|
-
left: 0;
|
|
101
|
-
display: block;
|
|
102
|
-
margin-top: 4px;
|
|
103
|
-
background: ${U.colors.white};
|
|
104
|
-
border-radius: ${U.borderRadius};
|
|
105
|
-
box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),
|
|
106
|
-
-2px 2px 5px rgba(67, 86, 100, 0.123689);
|
|
107
|
-
cursor: pointer;
|
|
108
|
-
|
|
109
|
-
&[data-has-icons='true'] {
|
|
110
|
-
border: 1px solid ${U.colors.gray200};
|
|
111
|
-
background: white;
|
|
112
|
-
box-shadow: none;
|
|
113
|
-
filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04));
|
|
114
|
-
}
|
|
115
|
-
`,je=M.li`
|
|
116
|
-
display: flex;
|
|
117
|
-
padding: 12px 18px 12px 16px;
|
|
118
|
-
&[data-disabled='true'] {
|
|
119
|
-
cursor: not-allowed;
|
|
120
|
-
color: #bfbfbf;
|
|
121
|
-
& > * {
|
|
122
|
-
pointer-events: none;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
&:hover,
|
|
126
|
-
:active {
|
|
127
|
-
background: ${U.colors.gray100};
|
|
128
|
-
}
|
|
129
|
-
`,Be=M.div`
|
|
130
|
-
max-width: 16px;
|
|
131
|
-
margin-right: 8px;
|
|
132
|
-
`,Oe=M.div`
|
|
133
|
-
position: absolute;
|
|
134
|
-
top: 12px;
|
|
135
|
-
left: 16px;
|
|
136
|
-
pointer-events: none;
|
|
137
|
-
`,Re=({className:e,value:a,options:o,onChange:i=(()=>{}),id:r,placeholderIcon:n,placeholder:l,style:s,size:c="lg",groupedWithLabel:p,disabled:m,dropdownLabelTrackingAttributes:u={},isNativeSelect:g=!1})=>{const h=d(),[v,b]=t.useState(!1),f=()=>!m&&b(!v);if(g){const e="object"==typeof(null==a?void 0:a.value)&&a.value instanceof Date?a.value.toString():null==a?void 0:a.value;return t.createElement(Ve,{color:h.fn.primaryColor(),shadowColor:h.colors[h.primaryColor][2],as:"select","data-is-native":"true",value:e||void 0,disabled:m,onChange:e=>{if("string"==typeof e.target.value){const t=o.find((t=>t.value===e.target.value));t&&i(t)}}},l&&t.createElement("option",{value:l,disabled:!0,selected:!0},l),o.map((e=>t.createElement("option",{key:`${r}-${e.value}`,value:e.value,disabled:!!e.disabled&&e.disabled},e.label))))}return t.createElement(Ve,{color:h.fn.primaryColor(),shadowColor:h.colors[h.primaryColor][2],className:e,"data-dropdown-open":v||void 0,"data-size":c,id:r,"data-has-icons":!!n,style:s,onBlur:()=>b(!1),tabIndex:0,"data-disabled":m},!!p&&t.createElement(Oe,null,p),t.createElement(Pe,Object.assign({color:h.fn.primaryColor(),shadowColor:h.colors[h.primaryColor][2],onClick:f,className:p&&"with-label"},u),n," ",t.createElement("span",null,a&&a.value?a.label:l)),v&&t.createElement(Fe,{onClick:f,"data-has-icons":!!n},o.map((e=>t.createElement(je,{key:`${r}-${e.value}`,"data-selected":a&&a.value===e.value||void 0,onClick:()=>!e.disabled&&!m&&(null==i?void 0:i(e)),"data-disabled":!!e.disabled&&e.disabled},e.icon&&t.createElement(Be,null,e.icon),e.label)))))},Me=r({}),Ie=({children:e,defaultParams:a})=>t.createElement(Me.Provider,{value:{defaultParams:a}},e),Ue=e=>{const{data:{userInfo:t,env:{togetherBasePath:a}}}=n(G),{defaultParams:o}=n(Me)||{},i=null==t?void 0:t.id,r=t&&"number"==typeof t.communities_interacted&&0===t.communities_interacted;return{authActionWrapper:(t,n)=>{const l=Object.assign(Object.assign(Object.assign({},o),e),n);if(!i||r){i||Ae(X),(null==l?void 0:l._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(l._joinCommunityIds).filter(Boolean))))),null==l||delete l._joinCommunityIds),(null==l?void 0:l._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(l._joinTopicIds).filter(Boolean))))),null==l||delete l._joinTopicIds);const e=(null==l?void 0:l._location)||window.location.href;return null==l||delete l._location,window.location.href=Q(e,l,a),null}return t&&t()},params:Object.assign(Object.assign({},o),e)}},De=M.div`
|
|
138
|
-
.link-info-container {
|
|
139
|
-
padding: 0.5rem 1rem;
|
|
140
|
-
background: ${e=>e.color||"#f4faff"};
|
|
141
|
-
}
|
|
142
|
-
.link-image-wrapper {
|
|
143
|
-
position: relative;
|
|
144
|
-
overflow: hidden;
|
|
145
|
-
width: 100%;
|
|
146
|
-
padding-top: min(280px, 56.25%);
|
|
147
|
-
.link-image-blur {
|
|
148
|
-
position: absolute;
|
|
149
|
-
top: 50%;
|
|
150
|
-
left: 50%;
|
|
151
|
-
width: 110%;
|
|
152
|
-
height: 110%;
|
|
153
|
-
/* Add the blur effect */
|
|
154
|
-
-webkit-filter: blur(8px);
|
|
155
|
-
filter: blur(8px);
|
|
156
|
-
object-fit: cover;
|
|
157
|
-
object-position: center;
|
|
158
|
-
opacity: 0.8;
|
|
159
|
-
transform: translate(-50%, -50%);
|
|
160
|
-
}
|
|
161
|
-
.link-image {
|
|
162
|
-
position: absolute;
|
|
163
|
-
top: 0;
|
|
164
|
-
left: 0;
|
|
165
|
-
width: 100%;
|
|
166
|
-
height: 100%;
|
|
167
|
-
object-fit: contain;
|
|
168
|
-
object-position: center;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
a {
|
|
172
|
-
text-decoration: none;
|
|
173
|
-
}
|
|
174
|
-
&[data-is-marrybaby='true'] {
|
|
175
|
-
overflow: hidden;
|
|
176
|
-
border-radius: 1rem;
|
|
177
|
-
.link-info-container {
|
|
178
|
-
padding-bottom: 1rem;
|
|
179
|
-
p {
|
|
180
|
-
color: #2661ad;
|
|
181
|
-
}
|
|
182
|
-
.link-logo {
|
|
183
|
-
max-width: 2rem;
|
|
184
|
-
height: 13px;
|
|
185
|
-
margin-right: 4px;
|
|
186
|
-
object-fit: contain;
|
|
187
|
-
vertical-align: middle;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
.link-image-wrapper {
|
|
191
|
-
padding-top: min(360px, 56.25%);
|
|
192
|
-
.link-image {
|
|
193
|
-
object-fit: cover;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
`,We=r({});var He="vvR-m49";const Ze=({children:e,className:a=""})=>{const{isReplied:o,trackingCategory:i,trackingLabel:r,onLikeClick:l}=n(We);return t.createElement("div",{className:`${He} ${a}`,"data-event-category":i,"data-event-action":o?"Like Comment Click":"Like Post Click","data-event-label":r,onClick:()=>{null==l||l()}},e)},qe=({children:e,className:a=""})=>{const{trackingCategory:o,trackingLabel:i,onShareClick:r}=n(We);return t.createElement("div",{className:`${He} ${a}`,onClick:()=>{null==r||r()},"data-event-category":o,"data-event-action":"Share Icon Click","data-event-label":i},e)},Ge=({children:e,className:a=""})=>{const{isReplied:o,trackingCategory:i,trackingLabel:r,onCommentClick:l}=n(We);return t.createElement("div",{className:`${He} ${a}`,"data-event-category":i,"data-event-action":o?"Reply Comment Click":"Comment Text Click","data-event-label":r,onClick:e=>{e.preventDefault(),e.stopPropagation(),null==l||l()}},e)};var Xe,Qe="UhiT4m5",Ke="oEfeTkV",Ye="OlbikxJ",$e="_9GXHCn3",Je="HCsrR0N",_e="MV3lNuh";!function(e){e[e.post=1]="post",e[e.reply=2]="reply"}(Xe||(Xe={}));const et=e=>{var{type:a,viewCount:o,loveCount:i=0,replyCount:r=0,replyPadding:l,liked:s,isReplied:d,onCommentClick:c,onLikeClick:p,onShareClick:m,className:u,style:g,hideCommentIcon:h,showingMostEngaging:v,isMarryBaby:f,hasShare:w=!0,hasCountLike:k=!0,trackingCategory:A="Together",trackingLabel:N="",children:z}=e,T=b(e,["type","viewCount","loveCount","replyCount","replyPadding","liked","isReplied","onCommentClick","onLikeClick","onShareClick","className","style","hideCommentIcon","showingMostEngaging","isMarryBaby","hasShare","hasCountLike","trackingCategory","trackingLabel","children"]);const{data:{env:{isMarryBaby:S}}}=n(G),L=Boolean(f)?f:S,{t:V}=x();return t.createElement(We.Provider,{value:{liked:s,loveCount:i,trackingCategory:A,trackingLabel:N,isReplied:d,onLikeClick:p,onShareClick:m,onCommentClick:c}},z||t.createElement("div",Object.assign({className:`${Qe} ${u}`,"data-show-most-engaging":v,"data-type":a===Xe.post?"post":"reply","data-reply-padding":a===Xe.reply&&l,"data-is-marrybaby":L,style:g},T),t.createElement("div",{className:Ke},t.createElement("div",{className:Ye},t.createElement(Ze,{className:Je},t.createElement(y,{className:$e,size:"p3",as:"div"},t.createElement(E,{className:"txt-icon",isMarryBaby:L,isSolid:s,color:s?L?U.mbColors.pink:U.colors.red800:"#737373"}),k&&t.createElement("div",{className:_e},i))),w&&t.createElement(qe,{className:Je},t.createElement(y,{size:"p3",className:$e,as:"div"},t.createElement(C.Share,{isMarryBaby:L}))),void 0!==o&&t.createElement(y,{size:"p3",className:$e,as:"div"},t.createElement(C.Eye,{isMarryBaby:L}),t.createElement("div",{className:_e},D(o)))),!h&&t.createElement(Ge,{className:Je},t.createElement(y,{size:"p3",className:$e,as:"div"},d?t.createElement(C.Reply,{className:"txt-icon"}):t.createElement(C.Comment,{className:"txt-icon",isMarryBaby:L}),d?V("cardReactions.reply"):t.createElement("div",{className:_e},V("post.commentCount",{count:r})))))))};et.LikeWrapper=Ze,et.ShareWrapper=qe,et.CommentWrapper=Ge;const tt=c((e=>({wrapper:{display:"flex",flexWrap:"wrap",width:"100%",padding:"0.5rem 0",gap:"0.5rem"},item:{position:"relative",whiteSpace:"nowrap",padding:"5px 12px",background:e.colors.gray[0],borderRadius:"2rem",cursor:"pointer","-webkit-user-drag":"none",userSelect:"none",textDecoration:"none","*":{pointerEvents:"none"},"&:first-child":{marginLeft:0}},text:{}}))),at=e=>{var{topics:o=[],onClick:i,className:r,style:l,trackingCategory:s="Together",locale:d="vi-VN",classNames:c,styles:p,unstyled:m,shortenedNumber:u=3,shortenedStyle:g}=e,h=b(e,["topics","onClick","className","style","trackingCategory","locale","classNames","styles","unstyled","shortenedNumber","shortenedStyle"]);const{t:v}=x(),{classes:f}=tt(void 0,{name:"TagTopic",classNames:c,styles:p,unstyled:m}),{data:{env:{togetherBasePath:w}},action:{sanitizeFunction:E}}=n(G),[C,k]=a(!g);return t.createElement("div",Object.assign({onClick:i,className:`${f.wrapper} ${r}`,style:l},h),(C?o:o.slice(0,u)).map(((e,a)=>{const o=(null==e?void 0:e.dueDateMonth)&&0!==(null==e?void 0:e.dueDateMonth)&&(null==e?void 0:e.dueDateYear)&&0!==(null==e?void 0:e.dueDateYear);return t.createElement("a",{className:f.item,key:a,"data-event-category":s,"data-event-action":"Topic in Post Click","data-event-label":`${K(d)}${w}${e.url}`,href:e.isActive&&!e.isHidden?`${w}${e.url}/`:void 0},t.createElement(y,{size:"p4"},t.createElement("span",{style:Object.assign({},o&&{textTransform:"capitalize"}),dangerouslySetInnerHTML:{__html:o?`${ce(new Date(2020,Number(e.dueDateMonth)-1,1),"MMMM",{locale:P[d]})}${d===F.Vietnam?"/":" "}${null==e?void 0:e.dueDateYear}`:(null==E?void 0:E(e.name))||e.name}})))})),!C&&o.length>u&&t.createElement("a",{className:f.item,href:"#",onClick:e=>{e.preventDefault(),k(!0)}},t.createElement(y,{size:"p4"},"+",v("tagTopic.moreTopics",{number:o.length-u}))))},ot=M.div`
|
|
198
|
-
display: flex;
|
|
199
|
-
align-items: center;
|
|
200
|
-
justify-content: space-between;
|
|
201
|
-
padding: 16px;
|
|
202
|
-
cursor: pointer;
|
|
203
|
-
&[data-color='gray'] {
|
|
204
|
-
background: ${U.colors.neutral50};
|
|
205
|
-
}
|
|
206
|
-
&[data-color='white'] {
|
|
207
|
-
border-bottom: 1px solid #e4e8ec;
|
|
208
|
-
background: ${U.colors.white};
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.popover-menu__btn {
|
|
212
|
-
display: flex;
|
|
213
|
-
min-width: 2rem;
|
|
214
|
-
height: 2rem;
|
|
215
|
-
align-items: center;
|
|
216
|
-
padding: 8px 0 !important;
|
|
217
|
-
border: none;
|
|
218
|
-
margin-left: 0.5rem;
|
|
219
|
-
background: transparent;
|
|
220
|
-
> span {
|
|
221
|
-
display: flex;
|
|
222
|
-
align-items: center;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
&:hover {
|
|
226
|
-
background: transparent !important;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
&.label-pinned {
|
|
231
|
-
border-radius: ${U.borderRadius} 6px 0 0;
|
|
232
|
-
.label-sort-pin-icon {
|
|
233
|
-
width: 16px;
|
|
234
|
-
height: 16px;
|
|
235
|
-
vertical-align: middle;
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
&[data-is-marrybaby='true'] {
|
|
240
|
-
padding: 0.75rem 1rem;
|
|
241
|
-
border-radius: 16px 16px 0px 0px;
|
|
242
|
-
&[data-color='white'] {
|
|
243
|
-
border-bottom: none;
|
|
244
|
-
}
|
|
245
|
-
&[data-color='gray'] {
|
|
246
|
-
background: #f3f3f3;
|
|
247
|
-
}
|
|
248
|
-
.popover-menu__btn {
|
|
249
|
-
width: unset;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
&.label-pinned {
|
|
253
|
-
border-bottom: none;
|
|
254
|
-
background: #fff9eb;
|
|
255
|
-
border-radius: 1rem 1rem 0 0;
|
|
256
|
-
.label-sort-pin-icon {
|
|
257
|
-
margin-right: 8px;
|
|
258
|
-
}
|
|
259
|
-
.label-sort-pin-heading {
|
|
260
|
-
color: #fb8c00;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
&.label-sorting {
|
|
264
|
-
${O.tdUp} {
|
|
265
|
-
padding-bottom: 1.5rem;
|
|
266
|
-
margin-bottom: -0.75rem;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
`,it=({label:e,rightLabel:a,onClick:o,color:i,className:r,style:l})=>{const{data:{env:{isMarryBaby:s}}}=n(G);return t.createElement(ot,{"data-is-marrybaby":s,"data-color":i,onClick:o,className:r,style:l},t.createElement(y,{className:"label-sort-pin-heading",size:s?"p4":"p3",weight:"bold"},e),a)};const rt=M.div`
|
|
271
|
-
position: relative;
|
|
272
|
-
display: content;
|
|
273
|
-
|
|
274
|
-
.popover-menu__btn {
|
|
275
|
-
/* position: relative; */
|
|
276
|
-
> span {
|
|
277
|
-
width: 100%;
|
|
278
|
-
height: 100%;
|
|
279
|
-
> img {
|
|
280
|
-
width: 100%;
|
|
281
|
-
height: 100%;
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.popover-menu__content {
|
|
287
|
-
position: absolute;
|
|
288
|
-
z-index: 10;
|
|
289
|
-
width: 320px;
|
|
290
|
-
padding: 8px;
|
|
291
|
-
border: none;
|
|
292
|
-
background: #fff;
|
|
293
|
-
border-radius: 8px;
|
|
294
|
-
box-shadow: 3px 3px 20px rgba(0, 0, 0, 0.1);
|
|
295
|
-
|
|
296
|
-
&::before {
|
|
297
|
-
position: absolute;
|
|
298
|
-
width: 16px;
|
|
299
|
-
height: 8px;
|
|
300
|
-
background: #fff;
|
|
301
|
-
content: '';
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
&.--position {
|
|
305
|
-
&-top {
|
|
306
|
-
bottom: calc(100% + 8px);
|
|
307
|
-
|
|
308
|
-
&.--align {
|
|
309
|
-
&-start {
|
|
310
|
-
left: 0;
|
|
311
|
-
|
|
312
|
-
&::before {
|
|
313
|
-
top: 100%;
|
|
314
|
-
left: 16px;
|
|
315
|
-
clip-path: polygon(0 0, 50% 100%, 100% 0);
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
&-end {
|
|
320
|
-
left: 100%;
|
|
321
|
-
transform: translateX(calc(-100% + 1rem));
|
|
322
|
-
|
|
323
|
-
&::before {
|
|
324
|
-
top: 100%;
|
|
325
|
-
right: 16px;
|
|
326
|
-
clip-path: polygon(0 0, 50% 100%, 100% 0);
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
&-right {
|
|
333
|
-
left: calc(100% + 8px);
|
|
334
|
-
|
|
335
|
-
&.--align {
|
|
336
|
-
&-start {
|
|
337
|
-
top: 0;
|
|
338
|
-
|
|
339
|
-
&::before {
|
|
340
|
-
top: 16px;
|
|
341
|
-
left: 0;
|
|
342
|
-
width: 8px;
|
|
343
|
-
height: 16px;
|
|
344
|
-
clip-path: polygon(0 50%, 100% 0%, 100% 100%);
|
|
345
|
-
transform: translateX(-100%);
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
&-end {
|
|
350
|
-
top: 100%;
|
|
351
|
-
transform: translateX(calc(-100% + 1rem));
|
|
352
|
-
|
|
353
|
-
&::before {
|
|
354
|
-
bottom: 16px;
|
|
355
|
-
left: 0;
|
|
356
|
-
width: 8px;
|
|
357
|
-
height: 16px;
|
|
358
|
-
clip-path: polygon(0 50%, 100% 0%, 100% 100%);
|
|
359
|
-
transform: translateX(-100%);
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
&-bottom {
|
|
366
|
-
top: calc(100% + 8px);
|
|
367
|
-
|
|
368
|
-
&.--align {
|
|
369
|
-
&-start {
|
|
370
|
-
left: 0;
|
|
371
|
-
|
|
372
|
-
&::before {
|
|
373
|
-
bottom: 100%;
|
|
374
|
-
left: 16px;
|
|
375
|
-
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
&-end {
|
|
380
|
-
left: 100%;
|
|
381
|
-
transform: translateX(calc(-100% + 1rem));
|
|
382
|
-
|
|
383
|
-
&::before {
|
|
384
|
-
right: 16px;
|
|
385
|
-
bottom: 100%;
|
|
386
|
-
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
&-left {
|
|
393
|
-
left: -8px;
|
|
394
|
-
transform: translateX(-100%);
|
|
395
|
-
|
|
396
|
-
&.--align {
|
|
397
|
-
&-start {
|
|
398
|
-
top: 0;
|
|
399
|
-
|
|
400
|
-
&::before {
|
|
401
|
-
top: 16px;
|
|
402
|
-
left: 100%;
|
|
403
|
-
width: 8px;
|
|
404
|
-
height: 16px;
|
|
405
|
-
clip-path: polygon(0 0%, 100% 50%, 0% 100%);
|
|
406
|
-
transform: translateX(0);
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
&-end {
|
|
411
|
-
bottom: 0;
|
|
412
|
-
|
|
413
|
-
&::before {
|
|
414
|
-
bottom: 16px;
|
|
415
|
-
left: 100%;
|
|
416
|
-
width: 8px;
|
|
417
|
-
height: 16px;
|
|
418
|
-
clip-path: polygon(0 0%, 100% 50%, 0% 100%);
|
|
419
|
-
transform: translateX(0);
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
&[data-is-marrybaby='true'] {
|
|
428
|
-
.popover-menu__content {
|
|
429
|
-
padding: 0;
|
|
430
|
-
border-radius: 12px;
|
|
431
|
-
/* &::before {
|
|
432
|
-
display: none;
|
|
433
|
-
} */
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
`,nt=M.div`
|
|
437
|
-
display: flex;
|
|
438
|
-
/* max-height: 300px; */
|
|
439
|
-
flex-direction: column;
|
|
440
|
-
cursor: default;
|
|
441
|
-
|
|
442
|
-
.__header {
|
|
443
|
-
position: relative;
|
|
444
|
-
display: flex;
|
|
445
|
-
align-items: center;
|
|
446
|
-
justify-content: center;
|
|
447
|
-
padding: 1rem 0;
|
|
448
|
-
margin-bottom: 8px;
|
|
449
|
-
|
|
450
|
-
.__back-btn {
|
|
451
|
-
position: absolute;
|
|
452
|
-
top: 50%;
|
|
453
|
-
left: 8px;
|
|
454
|
-
width: 16px;
|
|
455
|
-
height: 16px;
|
|
456
|
-
cursor: pointer;
|
|
457
|
-
transform: translateY(-50%);
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
.tree-text-description {
|
|
462
|
-
padding-right: 8px;
|
|
463
|
-
padding-left: 8px;
|
|
464
|
-
margin-top: -8px;
|
|
465
|
-
margin-bottom: 8px;
|
|
466
|
-
font-size: 14px;
|
|
467
|
-
font-weight: 400;
|
|
468
|
-
line-height: 22px;
|
|
469
|
-
text-align: left;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
.__content {
|
|
473
|
-
overflow: auto;
|
|
474
|
-
flex: 1;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
.__list {
|
|
478
|
-
.__item {
|
|
479
|
-
position: relative;
|
|
480
|
-
&.bold-item {
|
|
481
|
-
font-weight: 700;
|
|
482
|
-
}
|
|
483
|
-
&:last-child {
|
|
484
|
-
.__btn {
|
|
485
|
-
margin-bottom: 0;
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
.__btn {
|
|
490
|
-
position: relative;
|
|
491
|
-
display: flex;
|
|
492
|
-
width: 100%;
|
|
493
|
-
height: 40px;
|
|
494
|
-
align-items: center;
|
|
495
|
-
padding: 0 1rem;
|
|
496
|
-
border: none;
|
|
497
|
-
margin-bottom: 8px;
|
|
498
|
-
color: ${U.colors.gray800};
|
|
499
|
-
cursor: pointer;
|
|
500
|
-
text-align: left;
|
|
501
|
-
transition: background 0.3s;
|
|
502
|
-
|
|
503
|
-
/* for better gtm tracking result */
|
|
504
|
-
* {
|
|
505
|
-
pointer-events: none;
|
|
506
|
-
}
|
|
507
|
-
&.--checked {
|
|
508
|
-
color: ${U.colors.gray500};
|
|
509
|
-
pointer-events: none;
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
&:hover {
|
|
513
|
-
background: ${U.colors.gray100};
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
.__icon {
|
|
517
|
-
width: 16px;
|
|
518
|
-
height: 16px;
|
|
519
|
-
margin-right: 0.4rem;
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
& > span {
|
|
523
|
-
position: relative;
|
|
524
|
-
|
|
525
|
-
& > img {
|
|
526
|
-
width: 16px;
|
|
527
|
-
height: 16px;
|
|
528
|
-
margin-right: 0.4rem;
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
.__toggle {
|
|
534
|
-
position: absolute;
|
|
535
|
-
top: 50%;
|
|
536
|
-
right: 16px;
|
|
537
|
-
width: 16px;
|
|
538
|
-
height: 16px;
|
|
539
|
-
pointer-events: none;
|
|
540
|
-
transform: translateY(-50%);
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
&[data-is-marrybaby='true'] {
|
|
545
|
-
.__header {
|
|
546
|
-
padding: 1rem;
|
|
547
|
-
}
|
|
548
|
-
.tree-text-description {
|
|
549
|
-
padding: 0 1rem;
|
|
550
|
-
}
|
|
551
|
-
.__list {
|
|
552
|
-
.__item {
|
|
553
|
-
&:first-child {
|
|
554
|
-
.__btn {
|
|
555
|
-
border-top-left-radius: 12px;
|
|
556
|
-
border-top-right-radius: 12px;
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
&:last-child {
|
|
560
|
-
.__btn {
|
|
561
|
-
border-bottom-left-radius: 12px;
|
|
562
|
-
border-bottom-right-radius: 12px;
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
.__btn {
|
|
566
|
-
height: unset;
|
|
567
|
-
padding: 1rem;
|
|
568
|
-
margin-bottom: 0;
|
|
569
|
-
&:hover {
|
|
570
|
-
background: ${U.mbColors.lightPink};
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
`,lt=({className:e,style:o,toggleButtonContent:i,position:r="bottom",align:d="end",children:c,buttonProps:p})=>{const{data:{env:{isMarryBaby:m}}}=n(G),[u,g]=a(!1),h=l(null),v=l(u);return s((()=>{var e;v.current=u,u&&(null===(e=h.current)||void 0===e||e.focus())}),[u]),s((()=>{const e=e=>{var t;!(null===(t=h.current)||void 0===t?void 0:t.contains(e.target))&&v.current&&g(!1)};return window.addEventListener("click",e,{passive:!0}),()=>{window.removeEventListener("click",e)}}),[]),t.createElement(rt,{"data-is-marrybaby":m,className:e,style:o},t.createElement(pe,Object.assign({theme:m?"marryBaby":"helloSites",className:"popover-menu__btn",size:"md",color:"transparent",onClick:()=>g((e=>!e))},p),i),u?t.createElement("div",{ref:h,className:`popover-menu__content --position-${r} --align-${d}`,tabIndex:0,onClick:e=>e.stopPropagation()},"function"==typeof c?c({setShow:g}):c):null)};const st=e=>{var{data:a}=e,o=b(e,["data"]);return t.createElement(lt,Object.assign({},o),(({setShow:e})=>t.createElement(dt,{data:a,setShow:e})))},dt=({data:e,setShow:i})=>{var r;const[n,l]=a(""),s=o((()=>e&&((e,t)=>{const a=t.split(".");let o=e;return a.forEach((e=>{var t,a;e&&o&&"list"===(null==o?void 0:o.type)&&(o=null===(a=null===(t=null==o?void 0:o.list)||void 0===t?void 0:t[Number(e)])||void 0===a?void 0:a.subTree)})),o})(e,n)),[e,n]);if(!e)return null;if(!s)return null;return t.createElement(nt,null,s.isShowheader?t.createElement("div",{className:"__header"},n?t.createElement("img",{className:"__back-btn",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='M15 18L9 12L15 6' stroke='%23262626' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",onClick:()=>l((e=>e.split(".").slice(0,-1).join("."))),loading:"lazy"}):null,s.title?t.createElement(Y,{className:"__title",tag:"h6"},s.title):null):null,s.description?t.createElement(y,{className:"tree-text-description",color:U.colors.gray600,size:"p3",weight:"regular"},s.description):null,t.createElement("div",{className:"__content"},"jsx"===s.type?null===(r=null==s?void 0:s.jsxRenderer)||void 0===r?void 0:r.call(s,i):null,"list"===s.type?t.createElement("ul",{className:"__list"},Array.isArray(s.list)?s.list.map(((e,a)=>t.createElement("li",{key:a,style:e.style,className:`__item ${e.className}`}," ",t.createElement("div",{className:"__btn "+(e.selected?"--checked":""),onClick:()=>((e,{subTree:t,onClick:a=(()=>null)})=>{a&&a(),t?l((t=>t.split(".").concat(String(e)).join("."))):i&&i(!1)})(a,e),"data-event-category":e.dataEventCategory,"data-event-action":e.dataEventAction,"data-event-label":e.dataEventLabel},e.icon&&t.createElement("img",{className:"__icon",src:e.icon,loading:"lazy"}),t.createElement("span",null,e.label)),e.subTree?t.createElement("img",{className:"__toggle",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='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"}):null,e.selected?t.createElement("img",{className:"__toggle",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='M13.3334 4L6.00002 11.3333L2.66669 8' stroke='%238C8C8C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"}):null))):null):null))};var ct;!function(e){e.latest="latest",e.oldest="oldest",e.popular="popular"}(ct||(ct={}));const pt=({onChange:e,className:a,style:o,leftLabel:i,rightLabel:r,color:l,value:s,choices:d})=>{const{data:{env:{isMarryBaby:c}}}=n(G);return t.createElement(it,{label:i,rightLabel:t.createElement(st,{position:"bottom",align:"end",data:{isShowheader:!1,type:"list",list:d.map((t=>({label:t.label,onClick:()=>e&&e(String(t.value)),selected:t.value===s,className:"bold-item"})))},toggleButtonContent:t.createElement("div",{style:{display:"flex"}},t.createElement(y,{style:{display:"flex",alignItems:"center",fontWeight:"normal",marginRight:12},size:"p4"},r),t.createElement("img",{src:c?"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='M8 14L12 18L16 14' stroke='%233E3F58' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3cpath d='M16 10L12 6L8 10' stroke='%233E3F58' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e %3c/svg%3e":"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='M4.49992 7H11.4998C11.6352 7 11.7525 6.94506 11.8514 6.83509C11.9502 6.72515 11.9999 6.59496 11.9999 6.44449C11.9999 6.29402 11.9503 6.16389 11.8514 6.0538L8.35141 2.16491C8.25252 2.05509 8.13538 2 7.99988 2C7.86437 2 7.74723 2.05509 7.64826 2.16491L4.1483 6.0538C4.04932 6.16377 3.99988 6.29402 3.99988 6.44449C3.99988 6.59493 4.04932 6.72515 4.1483 6.83509C4.24738 6.94506 4.36452 7 4.49992 7Z' fill='%238C8C8C'/%3e%3cpath d='M11.4998 9H4.49992C4.36441 9 4.24727 9.05497 4.1483 9.16482C4.04932 9.2748 3.99988 9.40496 3.99988 9.55543C3.99988 9.7059 4.04932 9.83616 4.1483 9.94607L7.64826 13.835C7.74734 13.9449 7.86448 14 7.99988 14C8.13527 14 8.25252 13.9449 8.35141 13.835L11.8514 9.94604C11.9502 9.83616 11.9999 9.7059 11.9999 9.5554C11.9999 9.40496 11.9503 9.2748 11.8514 9.16479C11.7525 9.05485 11.6352 9 11.4998 9Z' fill='%238C8C8C'/%3e%3c/svg%3e",style:{width:16,height:16,alignSelf:"center"},loading:"lazy"}))}),color:"gray",className:a,style:o})},mt=e=>{var{size:a=15}=e,o=b(e,["size"]);return t.createElement("svg",Object.assign({width:a,height:a,viewBox:"0 0 15 15",fill:"none"},o),t.createElement("path",{d:"M7.43701 14C11.0614 14 13.9995 11.0619 13.9995 7.4375C13.9995 3.81313 11.0614 0.875 7.43701 0.875C3.81264 0.875 0.874512 3.81313 0.874512 7.4375C0.874512 11.0619 3.81264 14 7.43701 14Z",fill:"white",stroke:"#E4E8EC",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M8.53125 6.34375V4.15625H6.34375V6.34375H4.15625V8.53125H6.34375V10.7188H8.53125V8.53125H10.7188V6.34375H8.53125Z",fill:"#FF5331"}))},ut=e=>{var{size:a,color:o}=e,i=b(e,["size","color"]);return t.createElement("svg",Object.assign({width:a,height:a,viewBox:"0 0 16 16",fill:"none"},i),t.createElement("path",{d:"M7.29998 8.71005L6.24868 7.64851C6.14527 7.54509 6.02647 7.49338 5.89228 7.49338C5.75811 7.49338 5.63931 7.54509 5.53588 7.64851C5.43247 7.75192 5.38012 7.87179 5.37883 8.00811C5.37756 8.14444 5.42649 8.26217 5.52563 8.36131L6.8782 9.71386C6.99871 9.83437 7.13931 9.89463 7.29998 9.89463C7.46066 9.89463 7.60126 9.83437 7.72177 9.71386L10.4846 6.95105C10.588 6.84764 10.6397 6.72884 10.6397 6.59465C10.6397 6.46047 10.588 6.34167 10.4846 6.23825C10.3812 6.13484 10.2613 6.0842 10.125 6.08633C9.98866 6.08846 9.87093 6.1391 9.77178 6.23825L7.29998 8.71005ZM7.99998 14.2703H7.84293C7.79379 14.2703 7.74913 14.2592 7.70897 14.2369C6.34743 13.7857 5.22222 12.9235 4.33333 11.6504C3.44444 10.3773 3 8.96046 3 7.39978V4.39723C3 4.1451 3.07308 3.91754 3.21923 3.71455C3.36539 3.51155 3.55342 3.36432 3.78333 3.27288L7.5782 1.85621C7.72093 1.80494 7.86153 1.7793 7.99998 1.7793C8.13844 1.7793 8.27903 1.80494 8.42177 1.85621L12.2166 3.27288C12.4465 3.36432 12.6346 3.51155 12.7807 3.71455C12.9269 3.91754 13 4.1451 13 4.39723V7.39978C13 8.96046 12.5555 10.3773 11.6666 11.6504C10.7777 12.9235 9.65253 13.7857 8.291 14.2369C8.23972 14.2592 8.14272 14.2703 7.99998 14.2703Z",fill:o}))};ut.defaultProps={size:24,color:U.colors.gray600,activeColor:U.colors.primaryBase,isActive:!1};var gt="dZWeHns",ht="tMiOKib",vt="uDcqD-2",bt="pDlsows",ft="m-HVXw1";const xt=({children:e,className:a=""})=>t.createElement("div",{className:`${ht} ${a}`},e),wt=({children:e,className:a=""})=>t.createElement("div",{className:`${vt} ${a}`},e);var yt="sTU4T4I",Et="tCql9Je",Ct="_3j7uYhH",kt="PHABgoT";const At=({avatarProps:e,title:a,subTitle:o,children:i,className:r="",style:n,onAvatarClick:l,avatarIcon:s,dataEventCategory:d,dataEventAction:c,dataEventLabel:p})=>t.createElement("div",{className:`${yt} ${r}`,style:n},t.createElement("div",{className:Ct,onClick:l,"data-event-category":d,"data-event-action":c,"data-event-label":p},t.createElement(ue,Object.assign({},e)),s&&t.createElement("div",{className:kt},s)),t.createElement("div",{className:`${Et} ${r}`,style:{minHeight:`${(null==e?void 0:e.size)||40}px`}},i||t.createElement(t.Fragment,null,a&&t.createElement(xt,null,a),o&&t.createElement(wt,null,o))));At.MainText=xt,At.SubText=wt,At.SubDivider=({className:e=""})=>t.createElement("span",{className:`${ft} ${e}`}),At.Row=({children:e,className:a=""})=>t.createElement("div",{className:`${gt} ${a} row`},e),At.ColLeft=({children:e,className:a=""})=>t.createElement("div",{className:`${a} col-left`},e),At.ColRight=({children:e,className:a=""})=>t.createElement("div",{className:`${a} col-right`},e),At.SubTextRow=e=>{var{children:a,className:o=""}=e,i=b(e,["children","className"]);return t.createElement("div",Object.assign({className:`${bt} ${o}`},i),a)};var Nt=c((()=>({root:{},authorBadge:{background:"yellow"}})));const zt=M.div`
|
|
577
|
-
position: fixed;
|
|
578
|
-
left: 50%;
|
|
579
|
-
width: 343px;
|
|
580
|
-
background-color: ${U.colors.white};
|
|
581
|
-
border-radius: ${U.borderRadius};
|
|
582
|
-
box-shadow: 0px 0px 4px ${U.colors.gray200};
|
|
583
|
-
transform: translate(-50%, -50%);
|
|
584
|
-
transition: all 0.5s ease-in-out;
|
|
585
|
-
|
|
586
|
-
${O.tdUp} {
|
|
587
|
-
width: 750px;
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
&[data-animation='true'] {
|
|
591
|
-
transition: all 0.5s ease-in-out;
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
&[data-open='true'] {
|
|
595
|
-
z-index: 400;
|
|
596
|
-
top: 50%;
|
|
597
|
-
opacity: 1;
|
|
598
|
-
visibility: visible;
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
&[data-open='false'] {
|
|
602
|
-
top: -50%;
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
.popup-content {
|
|
606
|
-
${O.mbDown} {
|
|
607
|
-
display: block;
|
|
608
|
-
}
|
|
609
|
-
display: flex;
|
|
610
|
-
position: relative;
|
|
611
|
-
z-index: 111;
|
|
612
|
-
height: 100%;
|
|
613
|
-
.button-see-more {
|
|
614
|
-
margin: 32px 0;
|
|
615
|
-
padding: 0;
|
|
616
|
-
> * {
|
|
617
|
-
display: inline-block;
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
.close-button {
|
|
621
|
-
position: absolute;
|
|
622
|
-
z-index: 100;
|
|
623
|
-
top: 10px;
|
|
624
|
-
right: 10px;
|
|
625
|
-
cursor: pointer;
|
|
626
|
-
width: unset;
|
|
627
|
-
height: unset;
|
|
628
|
-
img {
|
|
629
|
-
width: 100%;
|
|
630
|
-
height: 100%;
|
|
631
|
-
border-radius: 50%;
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
.main-info {
|
|
637
|
-
padding-bottom: 32px;
|
|
638
|
-
background-color: ${U.colors.primary50};
|
|
639
|
-
border-radius: ${U.borderRadius};
|
|
640
|
-
.btn-booking {
|
|
641
|
-
display: flex;
|
|
642
|
-
margin: 12px auto;
|
|
643
|
-
}
|
|
644
|
-
.avatar-title {
|
|
645
|
-
position: relative;
|
|
646
|
-
width: 100%;
|
|
647
|
-
padding-top: 46px;
|
|
648
|
-
text-align: center;
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
`,Tt=M.div`
|
|
652
|
-
position: fixed;
|
|
653
|
-
z-index: 110;
|
|
654
|
-
top: 0;
|
|
655
|
-
left: 0;
|
|
656
|
-
width: 100%;
|
|
657
|
-
height: 100%;
|
|
658
|
-
align-items: center;
|
|
659
|
-
background: rgba(38, 38, 38, 0.3);
|
|
660
|
-
|
|
661
|
-
&[data-open='false'] {
|
|
662
|
-
display: none;
|
|
663
|
-
}
|
|
664
|
-
`,St=M.div`
|
|
665
|
-
.image-container {
|
|
666
|
-
.badge-avatar {
|
|
667
|
-
position: absolute;
|
|
668
|
-
right: 0;
|
|
669
|
-
bottom: 0;
|
|
670
|
-
top: 0;
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
display: flex;
|
|
674
|
-
justify-content: center;
|
|
675
|
-
padding-bottom: 15px;
|
|
676
|
-
text-align: center;
|
|
677
|
-
.profile-image {
|
|
678
|
-
width: 100px;
|
|
679
|
-
min-width: 100px;
|
|
680
|
-
height: 100px;
|
|
681
|
-
min-height: 100px;
|
|
682
|
-
border-radius: 50%;
|
|
683
|
-
object-fit: cover;
|
|
684
|
-
}
|
|
685
|
-
.badge-avatar {
|
|
686
|
-
width: 24px;
|
|
687
|
-
height: 24px;
|
|
688
|
-
}
|
|
689
|
-
`,Lt=M.div`
|
|
690
|
-
position: relative;
|
|
691
|
-
z-index: 9;
|
|
692
|
-
.specialty {
|
|
693
|
-
display: flex;
|
|
694
|
-
flex-wrap: wrap;
|
|
695
|
-
justify-content: center;
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
padding: 0px 16px;
|
|
699
|
-
text-align: center;
|
|
700
|
-
.specialty {
|
|
701
|
-
justify-content: center;
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
.experience {
|
|
705
|
-
padding: 16px 0px 32px;
|
|
706
|
-
text-align: left;
|
|
707
|
-
.btn-wrapper {
|
|
708
|
-
margin-top: 24px;
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
p {
|
|
712
|
-
max-width: 100%;
|
|
713
|
-
-webkit-line-clamp: 4;
|
|
714
|
-
-webkit-box-orient: vertical;
|
|
715
|
-
text-overflow: ellipsis;
|
|
716
|
-
overflow: hidden;
|
|
717
|
-
}
|
|
718
|
-
`,Vt=M.ul`
|
|
719
|
-
padding-left: 18px;
|
|
720
|
-
li {
|
|
721
|
-
list-style-type: disc;
|
|
722
|
-
}
|
|
723
|
-
`;var Pt="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='M18 6L6 18' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6 6L18 18' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",Ft="data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9 16.9998C13.4183 16.9998 17 13.418 17 8.99976C17 4.58148 13.4183 0.999756 9 0.999756C4.58172 0.999756 1 4.58148 1 8.99976C1 13.418 4.58172 16.9998 9 16.9998Z' fill='white' stroke='%23E4E8EC' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M10.3333 7.66679V5.00012H7.66667V7.66679H5V10.3335H7.66667V13.0001H10.3333V10.3335H13V7.66679H10.3333Z' fill='%23FF5331'/%3e%3c/svg%3e";const jt=M.div`
|
|
724
|
-
display: flex;
|
|
725
|
-
align-items: center;
|
|
726
|
-
justify-content: center;
|
|
727
|
-
padding: 1em;
|
|
728
|
-
button {
|
|
729
|
-
position: relative;
|
|
730
|
-
}
|
|
731
|
-
`,Bt=I`
|
|
732
|
-
0% {
|
|
733
|
-
transform: rotate(0deg);
|
|
734
|
-
}
|
|
735
|
-
100% {
|
|
736
|
-
transform: rotate(360deg);
|
|
737
|
-
}
|
|
738
|
-
`;M.div`
|
|
739
|
-
display: flex;
|
|
740
|
-
width: fit-content;
|
|
741
|
-
width: -moz-fit-content;
|
|
742
|
-
flex-direction: column;
|
|
743
|
-
align-items: center;
|
|
744
|
-
justify-content: center;
|
|
745
|
-
padding: 1rem 2rem;
|
|
746
|
-
background: white;
|
|
747
|
-
border-radius: ${U.borderRadius};
|
|
748
|
-
box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),
|
|
749
|
-
-2px 2px 5px rgba(67, 86, 100, 0.123689);
|
|
750
|
-
.loading-spinner {
|
|
751
|
-
width: 24px;
|
|
752
|
-
height: 24px;
|
|
753
|
-
margin-bottom: 0.5rem;
|
|
754
|
-
animation: ${Bt} 1.2s linear infinite;
|
|
755
|
-
}
|
|
756
|
-
&[data-is-marrybaby='true'] {
|
|
757
|
-
box-shadow: none;
|
|
758
|
-
}
|
|
759
|
-
`;const Ot=({className:e,size:a="md"})=>{const{t:o}=x();return t.createElement(jt,{className:e},t.createElement(pe,{size:a,color:"transparent",isLoading:!0},o("loading")))},Rt=({isOpen:e=!0,onClose:o,enableAnimation:i=!0,doctorId:r,locale:n,isMobile:l,overwriteProfileProps:d,avatarFallback:c=j.getAssetPath("avatar.jpg"),trackingCategory:p="Together"})=>{var m,u,g;const{t:h}=x(),[v,b]=a(null),[f,w]=a(!1);s((()=>{if(e&&r&&String(null==v?void 0:v.id)!==String(r)){w(!0);try{b(null),Z(q($.GET_DOCTOR_INFO,{doctorId:r,website_url:J[n]}),"get").then((e=>{b(Object.assign(Object.assign({},null==e?void 0:e._data.doctor),d))}))}catch(e){console.error(e)}w(!1)}}),[e,r,null==v?void 0:v.id]);const E=(null==v?void 0:v.experiences)||[],C=((null==v?void 0:v.specialties)||[]).map((e=>(null==e?void 0:e.name)||e)).join(" • "),k=E.map((e=>{try{return JSON.parse(e.description)}catch(t){return e.description}})).filter((e=>e.content));return t.createElement(t.Fragment,null,t.createElement(zt,{"data-open":e,"data-animation":i,onClick:e=>e.stopPropagation()},f||!v?t.createElement(Ot,null):t.createElement("div",{className:"popup-content"},t.createElement("div",{className:"close-button",onClick:o},t.createElement("img",{src:Pt,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),t.createElement("div",{className:"main-info"},t.createElement("div",{className:"border-banner"}),t.createElement("div",{className:"avatar-title"},t.createElement(St,null,t.createElement("div",{className:"image-container"},t.createElement("div",{style:{position:"relative"}},t.createElement(N,{src:null==v?void 0:v.avatar,backupSrc:c,className:"profile-image",alt:"avatar"}),t.createElement("img",{className:"badge-avatar",src:Ft,alt:"badge",loading:"lazy"})))),t.createElement(Lt,null,t.createElement(y,{size:"s3",weight:"semiBold",className:"full-name"},null==v?void 0:v.name),t.createElement("div",{className:"specialty"},C&&t.createElement(t.Fragment,null,t.createElement(y,{size:"p4",color:U.colors.gray800},C," • ")),t.createElement("a",{href:_({id:null===(m=null==v?void 0:v.organization)||void 0===m?void 0:m.id,name:null===(u=null==v?void 0:v.organization)||void 0===u?void 0:u.name,slug:null===(g=null==v?void 0:v.organization)||void 0===g?void 0:g.slug,locale:n}),className:"organisation",target:"_blank",rel:"noreferrer"},t.createElement(y,{size:"p4",className:"organisation",color:U.colors.gray800,style:{textDecoration:"underline"}},null==v?void 0:v.organization.name))))),!l&&t.createElement("div",{className:"btn-wrapper"},t.createElement("a",{href:ee({name:v.name,id:v.id,locale:n})},t.createElement(pe,{color:"primary",size:"md",className:"btn-booking"},h("careBooking.bookAnAppointment"))))),k&&t.createElement(Lt,null,t.createElement("div",{className:"experience"},t.createElement(y,{weight:"bold",size:"s3",color:U.colors.gray800,style:{paddingBottom:16}},h("expert.content.description").toUpperCase()),t.createElement(Vt,null,k.map(((e,a)=>t.createElement("li",{key:a},t.createElement(y,{size:"p2"},(e=>(null==e?void 0:e.year)?`${e.year} ${null==e?void 0:e.content}`:(null==e?void 0:e.content)?e.content:"string"==typeof e?e:"")(e)))))),l?t.createElement("div",{className:"btn-wrapper"},t.createElement("a",{href:ee({name:v.name,id:v.id,locale:n})},t.createElement(pe,{color:"primary",size:"md",className:"btn-booking"},h("careBooking.bookAnAppointment")))):t.createElement("a",{href:ee({name:v.name,id:v.id,locale:n})},t.createElement(y,{size:"s4",color:"#2D87F3",style:{paddingTop:24},"data-event-category":p,"data-event-action":"See Full Doctor Profile","data-event-label":K(n)+ee({name:v.name,id:v.id,locale:n})},h("home.seeExpert"))))))),t.createElement(Tt,{"data-open":e,onClick:e=>{e.stopPropagation(),o()}}))},Mt=M.div`
|
|
760
|
-
position: fixed;
|
|
761
|
-
left: 50%;
|
|
762
|
-
width: 343px;
|
|
763
|
-
background-color: ${U.colors.white};
|
|
764
|
-
border-radius: ${U.borderRadius};
|
|
765
|
-
box-shadow: 0px 0px 4px ${U.colors.gray200};
|
|
766
|
-
transform: translate(-50%, -50%);
|
|
767
|
-
transition: all 0.5s ease-in-out;
|
|
768
|
-
|
|
769
|
-
${O.tdUp} {
|
|
770
|
-
width: 750px;
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
&[data-animation='true'] {
|
|
774
|
-
transition: all 0.5s ease-in-out;
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
&[data-open='true'] {
|
|
778
|
-
z-index: 400;
|
|
779
|
-
top: 50%;
|
|
780
|
-
opacity: 1;
|
|
781
|
-
visibility: visible;
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
&[data-open='false'] {
|
|
785
|
-
top: -50%;
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
.popup-content {
|
|
789
|
-
${O.mbDown} {
|
|
790
|
-
display: block;
|
|
791
|
-
}
|
|
792
|
-
display: flex;
|
|
793
|
-
position: relative;
|
|
794
|
-
z-index: 111;
|
|
795
|
-
height: 100%;
|
|
796
|
-
.button-see-more {
|
|
797
|
-
margin: 32px 0;
|
|
798
|
-
padding: 0;
|
|
799
|
-
> * {
|
|
800
|
-
display: inline-block;
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
.close-button {
|
|
804
|
-
position: absolute;
|
|
805
|
-
z-index: 100;
|
|
806
|
-
top: 10px;
|
|
807
|
-
right: 10px;
|
|
808
|
-
cursor: pointer;
|
|
809
|
-
width: unset;
|
|
810
|
-
height: unset;
|
|
811
|
-
img {
|
|
812
|
-
width: 100%;
|
|
813
|
-
height: 100%;
|
|
814
|
-
border-radius: 50%;
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
.main-info {
|
|
820
|
-
padding-bottom: 32px;
|
|
821
|
-
background-color: ${U.colors.primary50};
|
|
822
|
-
border-radius: ${U.borderRadius};
|
|
823
|
-
|
|
824
|
-
.avatar-title {
|
|
825
|
-
position: relative;
|
|
826
|
-
width: 100%;
|
|
827
|
-
padding-top: 46px;
|
|
828
|
-
text-align: center;
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
`,It=M.div`
|
|
832
|
-
position: fixed;
|
|
833
|
-
z-index: 110;
|
|
834
|
-
top: 0;
|
|
835
|
-
left: 0;
|
|
836
|
-
width: 100%;
|
|
837
|
-
height: 100%;
|
|
838
|
-
align-items: center;
|
|
839
|
-
background: rgba(38, 38, 38, 0.3);
|
|
840
|
-
|
|
841
|
-
&[data-open='false'] {
|
|
842
|
-
display: none;
|
|
843
|
-
}
|
|
844
|
-
`,Ut=M.div`
|
|
845
|
-
.image-container {
|
|
846
|
-
.badge-avatar {
|
|
847
|
-
position: absolute;
|
|
848
|
-
right: 0;
|
|
849
|
-
bottom: 0;
|
|
850
|
-
top: 0;
|
|
851
|
-
}
|
|
852
|
-
}
|
|
853
|
-
display: flex;
|
|
854
|
-
justify-content: center;
|
|
855
|
-
padding-bottom: 15px;
|
|
856
|
-
text-align: center;
|
|
857
|
-
.profile-image {
|
|
858
|
-
width: 100px;
|
|
859
|
-
min-width: 100px;
|
|
860
|
-
height: 100px;
|
|
861
|
-
min-height: 100px;
|
|
862
|
-
border-radius: 50%;
|
|
863
|
-
object-fit: cover;
|
|
864
|
-
}
|
|
865
|
-
.badge-avatar {
|
|
866
|
-
width: 24px;
|
|
867
|
-
height: 24px;
|
|
868
|
-
}
|
|
869
|
-
`,Dt=M.div`
|
|
870
|
-
position: relative;
|
|
871
|
-
z-index: 9;
|
|
872
|
-
.specialty {
|
|
873
|
-
display: flex;
|
|
874
|
-
flex-wrap: wrap;
|
|
875
|
-
justify-content: center;
|
|
876
|
-
}
|
|
877
|
-
|
|
878
|
-
padding: 0px 16px;
|
|
879
|
-
text-align: center;
|
|
880
|
-
.specialty {
|
|
881
|
-
justify-content: center;
|
|
882
|
-
}
|
|
883
|
-
|
|
884
|
-
.experience {
|
|
885
|
-
padding: 16px 0px 32px;
|
|
886
|
-
text-align: left;
|
|
887
|
-
.btn-wrapper {
|
|
888
|
-
margin-top: 24px;
|
|
889
|
-
}
|
|
890
|
-
}
|
|
891
|
-
p {
|
|
892
|
-
max-width: 100%;
|
|
893
|
-
-webkit-line-clamp: 4;
|
|
894
|
-
-webkit-box-orient: vertical;
|
|
895
|
-
text-overflow: ellipsis;
|
|
896
|
-
overflow: hidden;
|
|
897
|
-
}
|
|
898
|
-
`,Wt=M.div`
|
|
899
|
-
display: flex;
|
|
900
|
-
margin-top: 8px;
|
|
901
|
-
|
|
902
|
-
.bullet-point {
|
|
903
|
-
width: 24px;
|
|
904
|
-
height: 24px;
|
|
905
|
-
}
|
|
906
|
-
`;var Ht="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3e%3cpath fill='%2345A4FF' d='M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12Z'/%3e%3cpath fill='%232D87F3' d='M24 12a12.1 12.1 0 0 0-.128-1.758l-5.077-5.077L5.041 18.958l4.858 4.858c.682.12 1.384.184 2.1.184 6.628 0 12-5.373 12-12Z'/%3e%3cpath fill='white' d='M9.014 17.824 5.04 18.959l1.135-3.973 2.368.47.47 2.368Z'/%3e%3cpath fill='%23F7F9FC' d='M8.544 15.456 5.041 18.96l3.972-1.135-.469-2.368Z'/%3e%3cpath fill='%23E4E8EC' d='M6.467 18.552 5.45 17.533 5.04 18.96l1.426-.407Z'/%3e%3cpath fill='%23D2D6DC' d='m5.957 18.043-.916.916 1.426-.407-.51-.509Z'/%3e%3cpath fill='%23FFD658' d='m15.828 5.331 2.837 2.837-9.651 9.652-2.838-2.837 9.652-9.652Z'/%3e%3cpath fill='%23FFC326' d='m7.594 16.404 9.651-9.651 1.419 1.418-9.652 9.652-1.418-1.419Z'/%3e%3cpath fill='%23FF5331' d='m18.312 8.525-2.837-2.838 1.123-1.123c.44-.44 1.154-.44 1.595 0l1.243 1.243c.44.44.44 1.154 0 1.594l-1.124 1.124Z'/%3e%3cpath fill='%23F44D2C' d='m18.816 5.186-1.921 1.92 1.418 1.419 1.124-1.124c.44-.44.44-1.154 0-1.594l-.622-.621Z'/%3e%3c/svg%3e";const Zt={author:Ht,edtior:Ht,expert:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='12' cy='12' r='12' fill='%23FFCB37'/%3e%3ccircle cx='12' cy='12' r='10.5' fill='%23FE921D'/%3e%3cpath d='M11.443 5.13654C11.6446 4.63466 12.355 4.63466 12.5566 5.13654L13.9931 8.71375C14.0789 8.92747 14.2795 9.0732 14.5093 9.08878L18.3553 9.34957C18.8949 9.38615 19.1145 10.0619 18.6994 10.4086L15.7412 12.8802C15.5645 13.0279 15.4878 13.2637 15.544 13.4871L16.4845 17.2254C16.6164 17.7499 16.0417 18.1676 15.5836 17.88L12.3188 15.8303C12.1238 15.7079 11.8758 15.7079 11.6808 15.8303L8.41599 17.88C7.95794 18.1676 7.38314 17.7499 7.51509 17.2254L8.45556 13.4871C8.51175 13.2637 8.43513 13.0279 8.25839 12.8802L5.30017 10.4086C4.88514 10.0619 5.10469 9.38615 5.64429 9.34957L9.49031 9.08878C9.7201 9.0732 9.92068 8.92747 10.0065 8.71375L11.443 5.13654Z' fill='white'/%3e%3c/svg%3e","fact-check":"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 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16Z' fill='%2300C076'/%3e%3cpath d='M11.9456 5.46631L6.66562 10.2663L4.26562 8.08449' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",medical:Ft},qt=({trackingCategory:e="Together",locale:o,isOpen:i=!0,onClose:r,enableAnimation:n=!0,expertId:l,overwriteProfileProps:d,avatarFallback:c=j.getAssetPath("avatar.jpg")})=>{const{t:p}=x(),[m,u]=a(null),[g,h]=a(!1);return s((()=>{if(i&&l&&String(null==m?void 0:m.user_id)!==String(l)){h(!0);try{u(null),Z(te(ae.GET_EXPERT_BY_ID,{id:l}),"get").then((e=>{u(Object.assign(Object.assign({},null==e?void 0:e.data),d))}))}catch(e){console.error(e)}h(!1)}}),[i,l,null==m?void 0:m.user_id]),t.createElement(t.Fragment,null,t.createElement(Mt,{"data-open":i,"data-animation":n,onClick:e=>e.stopPropagation()},g||!m?t.createElement(Ot,null):t.createElement("div",{className:"popup-content"},t.createElement("div",{className:"close-button",onClick:r},t.createElement("img",{src:Pt,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),t.createElement("div",{className:"main-info"},t.createElement("div",{className:"border-banner"}),t.createElement("div",{className:"avatar-title"},t.createElement(Ut,null,t.createElement("div",{className:"image-container"},t.createElement("div",{style:{position:"relative"}},t.createElement(N,{src:null==m?void 0:m.avatar,className:"profile-image",alt:"avatar",backupSrc:c}),t.createElement("img",{className:"badge-avatar",src:Zt[null==m?void 0:m.role],alt:"badge",loading:"lazy"})))),t.createElement(Dt,null,t.createElement(y,{size:"s3",className:"full-name",weight:"semiBold"},null==m?void 0:m.display_name),t.createElement("div",null,t.createElement(y,{size:"p4",color:U.colors.gray800},null==m?void 0:m.specialty," • "),t.createElement("a",{href:null==m?void 0:m.organisation_url,className:"organisation",target:"_blank",rel:"noreferrer"},t.createElement(y,{size:"p4",className:"organisation",color:U.colors.gray800,style:{textDecoration:"underline"}},null==m?void 0:m.organisation)))))),t.createElement(Dt,null,t.createElement("div",{className:"experience"},t.createElement(y,{weight:"bold",size:"p4",color:U.colors.gray800,style:{paddingBottom:16}},p("expert.content.description").toUpperCase()),t.createElement("div",{className:"list-items"},!!(null==m?void 0:m.experiences)&&m.experiences.filter((e=>!(!e||!e.title&&!e.organization))).slice(0,3).map(((e,a)=>t.createElement(Wt,{key:a},t.createElement("img",{className:"bullet-point",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%3ccircle cx='12' cy='12' r='2' fill='%232D87F3'/%3e%3c/svg%3e",alt:"point",loading:"lazy"}),t.createElement("div",{className:"text-contain"},t.createElement(Y,{tag:"h6",color:U.colors.gray800},null==e?void 0:e.title),t.createElement(y,{size:"p2",color:U.colors.gray500},null==e?void 0:e.organization)))))),t.createElement("a",{href:null==m?void 0:m.profile_url,style:{display:"inline-block",paddingTop:24}},t.createElement(y,{as:"span",size:"s4",color:"#2D87F3","data-event-category":e,"data-event-action":"See Full Doctor Profile","data-event-label":K(o)+(null==m?void 0:m.profile_url)},p("home.seeExpert"))))))),t.createElement(It,{"data-open":i,onClick:e=>{e.stopPropagation(),r()}}))},Gt=M.div`
|
|
907
|
-
position: fixed;
|
|
908
|
-
left: 50%;
|
|
909
|
-
width: 343px;
|
|
910
|
-
background-color: ${U.colors.white};
|
|
911
|
-
border-radius: ${U.borderRadius};
|
|
912
|
-
box-shadow: 0px 0px 4px ${U.colors.gray200};
|
|
913
|
-
transform: translate(-50%, -50%);
|
|
914
|
-
transition: all 0.5s ease-in-out;
|
|
915
|
-
|
|
916
|
-
${O.tdUp} {
|
|
917
|
-
width: 750px;
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
&[data-animation='true'] {
|
|
921
|
-
transition: all 0.5s ease-in-out;
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
&[data-open='true'] {
|
|
925
|
-
z-index: 400;
|
|
926
|
-
top: 50%;
|
|
927
|
-
opacity: 1;
|
|
928
|
-
visibility: visible;
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
&[data-open='false'] {
|
|
932
|
-
top: -50%;
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
.popup-content {
|
|
936
|
-
${O.mbDown} {
|
|
937
|
-
display: block;
|
|
938
|
-
}
|
|
939
|
-
display: flex;
|
|
940
|
-
position: relative;
|
|
941
|
-
z-index: 111;
|
|
942
|
-
height: 100%;
|
|
943
|
-
.button-see-more {
|
|
944
|
-
margin: 32px 0;
|
|
945
|
-
padding: 0;
|
|
946
|
-
> * {
|
|
947
|
-
display: inline-block;
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
.close-button {
|
|
951
|
-
position: absolute;
|
|
952
|
-
z-index: 100;
|
|
953
|
-
top: 10px;
|
|
954
|
-
right: 10px;
|
|
955
|
-
cursor: pointer;
|
|
956
|
-
width: unset;
|
|
957
|
-
height: unset;
|
|
958
|
-
img {
|
|
959
|
-
width: 100%;
|
|
960
|
-
height: 100%;
|
|
961
|
-
border-radius: 50%;
|
|
962
|
-
}
|
|
963
|
-
}
|
|
964
|
-
}
|
|
965
|
-
|
|
966
|
-
.main-info {
|
|
967
|
-
padding-bottom: 32px;
|
|
968
|
-
background-color: ${U.colors.primary50};
|
|
969
|
-
border-radius: ${U.borderRadius};
|
|
970
|
-
.btn-booking {
|
|
971
|
-
display: flex;
|
|
972
|
-
margin: 12px auto;
|
|
973
|
-
}
|
|
974
|
-
.avatar-title {
|
|
975
|
-
position: relative;
|
|
976
|
-
width: 100%;
|
|
977
|
-
padding-top: 46px;
|
|
978
|
-
text-align: center;
|
|
979
|
-
}
|
|
980
|
-
}
|
|
981
|
-
`,Xt=M.div`
|
|
982
|
-
position: fixed;
|
|
983
|
-
z-index: 110;
|
|
984
|
-
top: 0;
|
|
985
|
-
left: 0;
|
|
986
|
-
width: 100%;
|
|
987
|
-
height: 100%;
|
|
988
|
-
align-items: center;
|
|
989
|
-
background: rgba(38, 38, 38, 0.3);
|
|
990
|
-
|
|
991
|
-
&[data-open='false'] {
|
|
992
|
-
display: none;
|
|
993
|
-
}
|
|
994
|
-
`,Qt=M.div`
|
|
995
|
-
.image-container {
|
|
996
|
-
.badge-avatar {
|
|
997
|
-
position: absolute;
|
|
998
|
-
right: 0;
|
|
999
|
-
bottom: 0;
|
|
1000
|
-
top: 0;
|
|
1001
|
-
}
|
|
1002
|
-
}
|
|
1003
|
-
display: flex;
|
|
1004
|
-
justify-content: center;
|
|
1005
|
-
padding-bottom: 15px;
|
|
1006
|
-
text-align: center;
|
|
1007
|
-
.profile-image {
|
|
1008
|
-
width: 100px;
|
|
1009
|
-
min-width: 100px;
|
|
1010
|
-
height: 100px;
|
|
1011
|
-
min-height: 100px;
|
|
1012
|
-
border-radius: 50%;
|
|
1013
|
-
object-fit: cover;
|
|
1014
|
-
}
|
|
1015
|
-
.badge-avatar {
|
|
1016
|
-
width: 24px;
|
|
1017
|
-
height: 24px;
|
|
1018
|
-
}
|
|
1019
|
-
`,Kt=M.div`
|
|
1020
|
-
position: relative;
|
|
1021
|
-
z-index: 9;
|
|
1022
|
-
.specialty {
|
|
1023
|
-
display: block;
|
|
1024
|
-
min-width: 240px;
|
|
1025
|
-
}
|
|
1026
|
-
|
|
1027
|
-
padding: 0px 16px;
|
|
1028
|
-
text-align: center;
|
|
1029
|
-
.specialty {
|
|
1030
|
-
justify-content: center;
|
|
1031
|
-
}
|
|
1032
|
-
|
|
1033
|
-
.experience {
|
|
1034
|
-
padding: 16px 0px 32px;
|
|
1035
|
-
text-align: left;
|
|
1036
|
-
.btn-wrapper {
|
|
1037
|
-
margin-top: 24px;
|
|
1038
|
-
}
|
|
1039
|
-
}
|
|
1040
|
-
p {
|
|
1041
|
-
max-width: 100%;
|
|
1042
|
-
}
|
|
1043
|
-
`,Yt=({isOpen:e=!0,onClose:i,enableAnimation:r=!0,hospitalId:n,locale:l,isMobile:d,overwriteProfileProps:c,avatarFallback:p=j.getAssetPath("avatar.jpg"),trackingCategory:m="Together"})=>{const{t:u}=x(),[g,h]=a(null),[v,b]=a(!1);s((()=>{if(e&&n&&String(null==g?void 0:g.id)!==String(n)){b(!0);try{h(null),Z(q($.GET_HOSPITAL_INFO,{hospital_branch_id:n,website_url:J[l]}),"get").then((e=>{h(Object.assign(Object.assign({},null==e?void 0:e._data.branch),c))}))}catch(e){console.error(e)}b(!1)}}),[e,n,null==g?void 0:g.id]);const f=(null==g?void 0:g.specialties)||[],w=o((()=>f.map((e=>e.name))),[f]);return t.createElement(t.Fragment,null,t.createElement(Gt,{"data-open":e,"data-animation":r,onClick:e=>e.stopPropagation()},v||!g?t.createElement(Ot,null):t.createElement("div",{className:"popup-content"},t.createElement("div",{className:"close-button",onClick:i},t.createElement("img",{src:Pt,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),t.createElement("div",{className:"main-info"},t.createElement("div",{className:"border-banner"}),t.createElement("div",{className:"avatar-title"},t.createElement(Qt,null,t.createElement("div",{className:"image-container"},t.createElement("div",{style:{position:"relative"}},t.createElement(N,{src:null==g?void 0:g.logo,className:"profile-image",alt:"avatar",backupSrc:p}),t.createElement("img",{className:"badge-avatar",src:Ft,alt:"badge",loading:"lazy"})))),t.createElement(Kt,null,t.createElement(y,{size:"s3",weight:"semiBold",className:"full-name"},null==g?void 0:g.name),t.createElement("div",{className:"specialty"},f&&t.createElement(y,{size:"p4",color:U.colors.gray800},w.join(" • "),"•"),t.createElement("a",{href:_({id:g.id,name:g.name,slug:g.slug,locale:l}),className:"organisation",target:"_blank",rel:"noreferrer"},t.createElement(y,{size:"p4",className:"organisation",color:U.colors.gray800,style:{textDecoration:"underline"}},null==g?void 0:g.name))))),!d&&t.createElement("a",{href:_({id:g.id,name:g.name,slug:g.slug,locale:l})},t.createElement("div",{className:"btn-wrapper"},t.createElement(pe,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment"))))),t.createElement(Kt,null,t.createElement("div",{className:"experience"},t.createElement(y,{weight:"bold",size:"s3",color:U.colors.gray800,style:{paddingBottom:16}},u("hospital.content.description").toUpperCase()),t.createElement(y,{size:"p2",color:U.colors.gray500},g.about),d?t.createElement("a",{href:_({id:g.id,name:g.name,slug:g.slug,locale:l})},t.createElement("div",{className:"btn-wrapper"},t.createElement(pe,{color:"primary",size:"md",className:"btn-booking"},u("careBooking.bookAnAppointment")))):t.createElement("a",{href:_({id:g.id,name:g.name,slug:g.slug,locale:l})},t.createElement(y,{size:"s4",color:"#2D87F3",as:"span","data-event-category":m,"data-event-action":"See Full Hospital Profile","data-event-label":K(l)+_({id:g.id,name:g.name,slug:g.slug,locale:l})},u("home.seeHospital"))))))),t.createElement(Xt,{"data-open":e,onClick:e=>{e.stopPropagation(),i()}}))};var $t="_2UKyiK1",Jt="E5ga-tI",_t="_8Y2nWXX",ea="d0T7kSP";const ta=({open:e,onClose:a,children:o,profileModalProps:i})=>{const{t:r}=x();return t.createElement(ke,Object.assign({className:$t,opened:e,onClose:a,overlayOpacity:.2,overflow:"inside",styles:{inner:{padding:0,justifyContent:"flex-end"},modal:{height:"100%",borderRadius:0},body:{padding:"24px",maxHeight:"100%"},content:{maxHeight:"100%",height:"100%",borderRadius:0}},title:"Profile"},i),t.createElement("div",{className:Jt},t.createElement("div",{className:_t},r("profilePanel.modal.heading")),t.createElement("div",{className:ea,onClick:a},t.createElement(ze,null))),o)};B.extend(we);const aa=r({}),oa=e=>{const{className:o="",community:i,name:r,username:l,url:d,avatar:c,role:g,title:h,userType:v="user",expertId:b,specialty:f,organisation:w,isMarryBaby:y,doctorId:E,hospitalId:C,hasQuickBooking:k,handleMakeAppointment:A,communityTrackingAttr:N,isAnonymous:T,showDetailPopup:S,subLine:L,authActionWrapper:P,profileProps:F,profileModalProps:B,extendEle:O,avatarProps:M,hideInfo:I,timeText:D,onCloseFromPost:W,avatarIcon:H,badgeIconSize:Z,hideBackground:q,children:X,styles:Q,dataEventCategory:K,dataEventAction:Y,dataEventLabel:$}=e,{data:{locale:J,router:_,env:{isMarryBaby:ee,togetherBasePath:te}}}=n(G),{isMobile:ae}=z(),{t:oe}=x(),{classes:ie}=Nt(void 0,{name:"CardAuthor",styles:Q}),re="boolean"==typeof y?y:ee,ne=re?"marryBaby":"helloSites",le=T?oe("cardPost.anonymous"):r||l||"",se=T?j.getAssetPath("avatar.jpg"):c,de=T?void 0:g,[ce,pe]=a(!1),{asPath:me}=_||{},ue=`https://${V[J]}${me}`,ge=()=>{if(T||"chatbot"===v)return!1;S?ve(!0):d&&(window.location.href=d)};s((()=>{R(ce)}),[ce]);const[he,ve]=a(!1),be="expert"===(null==e?void 0:e.role),fe=Boolean(E||C),xe=["expert"===de&&w&&t.createElement("span",null,w),"expert"===de&&f&&t.createElement("span",null,f),!("expert"===de&&f&&w)&&(null==i?void 0:i.name)&&t.createElement("a",Object.assign({href:(null==i?void 0:i.slug)&&i.isActive&&!i.isHidden?`${te}/${null==i?void 0:i.slug}/`:void 0,className:"author-community-name"},N),`${null==i?void 0:i.name}`),D&&t.createElement("span",null,D)].filter(Boolean),[we,ye]=a(null);return s((()=>{he&&!we&&Promise.resolve().then((function(){return mi})).then((e=>{ye((()=>e.ProfileDetail))}))}),[he]),t.createElement(aa.Provider,{value:{handleMakeAppointment:A,doctorId:E,hospitalId:C,currentUrl:ue}},t.createElement(ta,{open:he,onClose:()=>ve(!1),profileModalProps:B},we&&t.createElement(we,Object.assign({currentPageUrl:$,authActionWrapper:P,onCloseFromPost:()=>{ve(!1),null==W||W()}},F,{authorProps:Object.assign({userId:null==e?void 0:e.userId,avatar:se,name:null==e?void 0:e.name,role:null==e?void 0:e.role,title:null==e?void 0:e.title,doctorId:E,hospitalId:C,hasQuickBooking:k},null==F?void 0:F.authorProps)}))),"expert"===de&&b?t.createElement(qt,{isOpen:ce,onClose:()=>pe(!1),expertId:b}):null,"expert"===de&&E?t.createElement(Rt,{isOpen:ce,onClose:()=>pe(!1),doctorId:E,locale:J}):null,"expert"===de&&C?t.createElement(Yt,{isOpen:ce,onClose:()=>pe(!1),hospitalId:C,locale:J}):null,t.createElement("div",{className:`hhg-card-author ${ie.root} ${o} ${be?"expert-author":""}`,"data-background":!q&&be,"data-is-marrybaby":re},t.createElement(At,{dataEventCategory:K,dataEventAction:Y,dataEventLabel:$,onAvatarClick:ge,avatarProps:Object.assign(Object.assign({avatar:T?j.getAssetPath(re?"anomyous-avatar-1.svg":"anomyous-avatar.svg"):se,username:le},M),{style:{cursor:T||!d&&!S?"default":"pointer"}}),avatarIcon:H||be&&t.createElement(mt,{size:Z||15})},X?t.createElement("div",{onClick:ge},X):!I&&t.createElement(At.Row,null,t.createElement(At.ColLeft,null,t.createElement(p,{align:"center",onClick:ge},t.createElement(At.MainText,{onClick:ge},le,"chatbot"===v?t.createElement(t.Fragment,null," ",t.createElement(ut,{color:U.colors.primaryBase,size:16,style:{display:"inline-block",transform:"translate(0, 2px)"}})):de&&t.createElement(Se,{className:ie.authorBadge,siteType:ne,role:de,title:h,style:{verticalAlign:"bottom"}}))),L||t.createElement(At.SubTextRow,{style:k?{position:"relative"}:{}},xe.map(((e,a)=>t.createElement(t.Fragment,null,0!==a&&t.createElement(At.SubDivider,null),t.createElement(At.SubText,null,e)))),k&&fe&&t.createElement(m,{sx:{marginTop:u(5)}},t.createElement(Le,{bookingId:E||C,bookingType:E?"doctor":C?"hospital":void 0,size:ae?"xs":"sm"})))))),O&&O))};oa.MainText=At.MainText,oa.SubText=At.SubText,oa.SubTextRow=At.SubTextRow,oa.SubDivider=At.SubDivider;const ia=M.div`
|
|
1044
|
-
position: relative;
|
|
1045
|
-
display: flex;
|
|
1046
|
-
height: 100%;
|
|
1047
|
-
flex-direction: column;
|
|
1048
|
-
padding: 16px 24px;
|
|
1049
|
-
|
|
1050
|
-
.input-group-container {
|
|
1051
|
-
flex: 1;
|
|
1052
|
-
padding-right: 2px;
|
|
1053
|
-
padding-left: 2px;
|
|
1054
|
-
margin-bottom: 0.5rem;
|
|
1055
|
-
-ms-overflow-style: none; /* IE and Edge */
|
|
1056
|
-
overflow-y: auto;
|
|
1057
|
-
scrollbar-width: none; /* Firefox */
|
|
1058
|
-
&::-webkit-scrollbar {
|
|
1059
|
-
display: none;
|
|
1060
|
-
}
|
|
1061
|
-
}
|
|
1062
|
-
|
|
1063
|
-
.input-group {
|
|
1064
|
-
:not(:last-child) {
|
|
1065
|
-
margin-bottom: 0.6rem;
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
|
-
input:focus,
|
|
1069
|
-
textarea:focus,
|
|
1070
|
-
[contenteditable='true'] {
|
|
1071
|
-
outline: none;
|
|
1072
|
-
}
|
|
1073
|
-
|
|
1074
|
-
label {
|
|
1075
|
-
margin-bottom: 5px;
|
|
1076
|
-
color: ${U.colors.gray600};
|
|
1077
|
-
/* font-family: 'Open Sans', sans-serif; */
|
|
1078
|
-
font-size: 13px;
|
|
1079
|
-
font-weight: bold;
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
.input-group-label {
|
|
1083
|
-
margin-bottom: 5px;
|
|
1084
|
-
color: ${U.colors.gray600};
|
|
1085
|
-
/* font-family: 'Open Sans', sans-serif; */
|
|
1086
|
-
font-size: 13px;
|
|
1087
|
-
font-weight: bold;
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
|
-
.input-notification {
|
|
1091
|
-
display: flex;
|
|
1092
|
-
|
|
1093
|
-
& > img {
|
|
1094
|
-
width: 16px;
|
|
1095
|
-
height: 16px;
|
|
1096
|
-
margin-top: 1.5px;
|
|
1097
|
-
margin-right: 8px;
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
.tag-list {
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1104
|
-
|
|
1105
|
-
.warning {
|
|
1106
|
-
margin-top: 16px;
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
.submit-btn {
|
|
1110
|
-
width: 100%;
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
.switch-label {
|
|
1114
|
-
display: flex;
|
|
1115
|
-
align-items: center;
|
|
1116
|
-
}
|
|
1117
|
-
|
|
1118
|
-
.swich-input-group {
|
|
1119
|
-
padding: 12px 16px;
|
|
1120
|
-
border-radius: 8px;
|
|
1121
|
-
background: ${U.colors.neutral50};
|
|
1122
|
-
|
|
1123
|
-
&.askdoctor-switch {
|
|
1124
|
-
background: ${U.colors.primary50};
|
|
1125
|
-
&.mb-color {
|
|
1126
|
-
background: ${U.mbColors.tonePink};
|
|
1127
|
-
}
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
.mantine-Switch-labelWrapper {
|
|
1131
|
-
flex-grow: 1;
|
|
1132
|
-
}
|
|
1133
|
-
.mantine-Checkbox-body {
|
|
1134
|
-
display: flex;
|
|
1135
|
-
width: 100%;
|
|
1136
|
-
align-items: center;
|
|
1137
|
-
justify-content: space-between;
|
|
1138
|
-
}
|
|
1139
|
-
.mantine-Switch-track {
|
|
1140
|
-
margin-bottom: 0;
|
|
1141
|
-
}
|
|
1142
|
-
.label-txt {
|
|
1143
|
-
font-weight: normal;
|
|
1144
|
-
font-size: 14px;
|
|
1145
|
-
color: ${U.colors.gray800};
|
|
1146
|
-
margin-left: 10px;
|
|
1147
|
-
}
|
|
1148
|
-
}
|
|
1149
|
-
`,ra=M.div`
|
|
1150
|
-
display: flex;
|
|
1151
|
-
width: 100%;
|
|
1152
|
-
align-items: center;
|
|
1153
|
-
justify-content: space-between;
|
|
1154
|
-
padding: 12px 16px;
|
|
1155
|
-
border-radius: 8px;
|
|
1156
|
-
background: ${U.colors.primary50};
|
|
1157
|
-
|
|
1158
|
-
&[data-is-marry-baby='true'] {
|
|
1159
|
-
background: ${U.mbColors.tonePink};
|
|
1160
|
-
}
|
|
1161
|
-
.switch-label {
|
|
1162
|
-
display: flex;
|
|
1163
|
-
align-items: center;
|
|
1164
|
-
gap: 12px;
|
|
1165
|
-
}
|
|
1166
|
-
margin-bottom: 12px;
|
|
1167
|
-
`,na=M.div`
|
|
1168
|
-
margin-bottom: 12px;
|
|
1169
|
-
color: ${U.colors.red700};
|
|
1170
|
-
svg {
|
|
1171
|
-
margin-right: 5px;
|
|
1172
|
-
}
|
|
1173
|
-
svg,
|
|
1174
|
-
span {
|
|
1175
|
-
vertical-align: middle;
|
|
1176
|
-
}
|
|
1177
|
-
`,la=/<mocka ([^>]*)data-url="true"[^<>]*>(.*?)<\/mocka>/gim,sa=/((?:=")|(?:data-url="true">)|)(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))/gim,da=/\[a\+href="([^<"]+)"(?:\+text=\"([^<"]+)")?\]/gim,ca=/<mention [^>]*data-id="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,pa=/<mention [^>]*data-id="([^<"]+)" [^\>]*data-name="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,ma=/\[mention\+id="([^<"]+)"([^\]]*)\]/gim,ua=/^(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,ga=/^((https?:\/\/)?(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,ha=/<a [^>]*href="([^>"]+)"[^>]*>([^<]+)<\/a>/gim,va=/<mocka [^\>]*data-bad-word="[^\"]*" [^\>]*data-error="true"[^\>]*>(.*?)<\/mocka>/gim,ba=({url:e,text:t,method:a})=>{const o=t.indexOf(t.trimStart()),i=t.trimEnd().length,r=t.substring(0,o),n=t.substring(o,i),l=t.substring(i);return"edit"===a?`${r}<mocka data-href="${e}" data-url="true">${n}</mocka>${l}`:"display"===a&&(e.startsWith("http://")||e.startsWith("https://"))?`${r}<a href="${e}" target="_blank">${n}</a>${l}`:t},fa=(e,t)=>e.replace(da,((e,a,o)=>ba({text:o||a,url:a,method:t}))).replace(ha,((e,a,o)=>ba({text:o||a,url:a,method:t}))),xa=(e,t=[])=>e.replace(ma,((e,a,o)=>{const i=t.find((e=>String(e.id)===a));if(!i){if(!o)return"";let e="";return o.replace(/\+name="([^<"]+)"/i,((t,a)=>(e=a,t))),`<mention data-id="${a}" data-name="${e}">${e}</mention>`}return`<mention data-id="${a}" data-name="${i.name}">${i.name}</mention>`})),wa=e=>{const t=[];return e.replace(/(\&)+/g,"&").replace(sa,((e,a,o)=>('="'!==a&&'data-url="true">'!==a&&t.push(o),e))),t},ya=(e,t)=>{const a=[];return e.replace(ca,((e,t)=>(a.push(t),e))).replace(ma,((e,t)=>(a.push(t),e))),t?a:Array.from(new Set(a)).slice(0,30)},Ea=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Ca=e=>e.replace(va,"$1"),ka=(e,t=(e=>e))=>((e,t=(e=>e))=>{var a;return t(null===(a=e.replace(/(\ )+/g," ").replace(/(\&)+/g,"&"))||void 0===a?void 0:a.replace(/(\u200c|‌)+/g,"").replace(sa,((e,t,a)=>'="'!==t&&'data-url="true">'!==t?`<a href="${a}" target="_blank">${a}</a>`:e)).replace(la,((e,t,a)=>{var o;const i=null===(o=t.match(/data-href="([^"]*)"/im))||void 0===o?void 0:o[1];return i?`<a href="${i}" target="_blank">${a}</a>`:`<a href="${a}" target="_blank">${a}</a>`})))})((e=>e.replace(ca,((e,t,a)=>`[mention+id="${t}"+name="${a}"]`)))(Ca(e)),t),Aa=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn"],Na=e=>e.match(ga)?e.startsWith("https://")||e.startsWith("http://")?e:`https://${e}`:"",za=(e,t)=>{const a=t.filter(Boolean);if(e&&a.length>0){return Ca(e).replace(new RegExp(`\\b(${a.map((e=>Ea(e))).join("|")})\\b`,"gi"),((e,t)=>{const a=document.createElement("mocka");return a.setAttribute("data-bad-word",t),a.setAttribute("data-error","true"),a.innerText=t,`${a.outerHTML}`}))}return e},Ta=e=>{var t;if(!e.includes("youtu"))return"";return(null===(t=/(.*?)(^|\/|v=)([a-z0-9_-]{11})(.*)?/gim.exec(e))||void 0===t?void 0:t[3])||""},Sa=(e,t,a)=>"string"==typeof e?Promise.resolve(e):f(void 0,void 0,void 0,(function*(){var o;const i=new FormData;if(e.type.startsWith("image/gif"))i.append("image",e);else{const t=yield import("browser-image-compression"),a=yield t.default(e,{maxSizeMB:.4,maxWidthOrHeight:1536,useWebWorker:!0});i.append("image",a)}const r=a?ne:le,n=yield r(oe(a?ie.COMMENT.IMAGE_UPLOAD:re.COMMENT.IMAGE_UPLOAD,{_locale:t}),"POST",{data:i});return(null===(o=null==n?void 0:n.data)||void 0===o?void 0:o.image)||""})),La=M.div`
|
|
1178
|
-
input:focus,
|
|
1179
|
-
textarea:focus,
|
|
1180
|
-
[contenteditable='true'] {
|
|
1181
|
-
outline: none;
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
|
-
.textarea-control {
|
|
1185
|
-
position: relative;
|
|
1186
|
-
border: 1px solid ${U.colors.gray200};
|
|
1187
|
-
border-radius: ${U.borderRadius};
|
|
1188
|
-
&.--focus {
|
|
1189
|
-
border-color: ${U.colors.primaryBase};
|
|
1190
|
-
box-shadow: 0px 0px 2px 2px ${U.colors.primary200};
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
.textarea-wrapper {
|
|
1194
|
-
width: 100%;
|
|
1195
|
-
height: 200px;
|
|
1196
|
-
}
|
|
1197
|
-
|
|
1198
|
-
.control-tool {
|
|
1199
|
-
position: absolute;
|
|
1200
|
-
bottom: 0;
|
|
1201
|
-
left: 0;
|
|
1202
|
-
display: flex;
|
|
1203
|
-
width: calc(100% - 2rem);
|
|
1204
|
-
height: 40px;
|
|
1205
|
-
align-items: center;
|
|
1206
|
-
justify-content: flex-end;
|
|
1207
|
-
border-top: 1px solid ${U.colors.gray200};
|
|
1208
|
-
margin: 0 1rem;
|
|
1209
|
-
|
|
1210
|
-
.tool-button {
|
|
1211
|
-
display: flex;
|
|
1212
|
-
width: 2rem;
|
|
1213
|
-
height: 2rem;
|
|
1214
|
-
align-items: center;
|
|
1215
|
-
justify-content: center;
|
|
1216
|
-
background: transparent;
|
|
1217
|
-
cursor: pointer;
|
|
1218
|
-
}
|
|
1219
|
-
.image-icon {
|
|
1220
|
-
vertical-align: middle;
|
|
1221
|
-
}
|
|
1222
|
-
}
|
|
1223
|
-
}
|
|
1224
|
-
|
|
1225
|
-
.link-preview-wrapper {
|
|
1226
|
-
position: relative;
|
|
1227
|
-
.icon-close {
|
|
1228
|
-
position: absolute;
|
|
1229
|
-
top: 5px;
|
|
1230
|
-
right: 5px;
|
|
1231
|
-
width: 24px;
|
|
1232
|
-
height: 24px;
|
|
1233
|
-
cursor: pointer;
|
|
1234
|
-
}
|
|
1235
|
-
}
|
|
1236
|
-
|
|
1237
|
-
.image-gallery {
|
|
1238
|
-
margin-bottom: 1rem;
|
|
1239
|
-
|
|
1240
|
-
.image-item {
|
|
1241
|
-
position: relative;
|
|
1242
|
-
overflow: hidden;
|
|
1243
|
-
width: 100%;
|
|
1244
|
-
height: 0;
|
|
1245
|
-
padding-top: 67%;
|
|
1246
|
-
margin-top: 1rem;
|
|
1247
|
-
border-radius: ${U.borderRadius};
|
|
1248
|
-
|
|
1249
|
-
& > img {
|
|
1250
|
-
position: absolute;
|
|
1251
|
-
top: 0;
|
|
1252
|
-
left: 0;
|
|
1253
|
-
width: 100%;
|
|
1254
|
-
height: 100%;
|
|
1255
|
-
object-fit: cover;
|
|
1256
|
-
}
|
|
1257
|
-
|
|
1258
|
-
.close-btn {
|
|
1259
|
-
position: absolute;
|
|
1260
|
-
top: 8px;
|
|
1261
|
-
right: 8px;
|
|
1262
|
-
left: unset;
|
|
1263
|
-
width: 24px;
|
|
1264
|
-
height: 24px;
|
|
1265
|
-
cursor: pointer;
|
|
1266
|
-
}
|
|
1267
|
-
}
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
|
-
.description-label {
|
|
1271
|
-
margin-bottom: 5px;
|
|
1272
|
-
color: ${U.colors.gray600};
|
|
1273
|
-
/* font-family: 'Open Sans', sans-serif; */
|
|
1274
|
-
font-size: 13px;
|
|
1275
|
-
font-weight: bold;
|
|
1276
|
-
}
|
|
1277
|
-
|
|
1278
|
-
.count-string {
|
|
1279
|
-
margin-top: 5px;
|
|
1280
|
-
color: ${U.colors.gray500};
|
|
1281
|
-
font-size: 11px;
|
|
1282
|
-
text-align: right;
|
|
1283
|
-
}
|
|
1284
|
-
|
|
1285
|
-
.input-notification {
|
|
1286
|
-
display: flex;
|
|
1287
|
-
|
|
1288
|
-
& > img {
|
|
1289
|
-
width: 16px;
|
|
1290
|
-
height: 16px;
|
|
1291
|
-
margin-top: 1.5px;
|
|
1292
|
-
margin-right: 8px;
|
|
1293
|
-
}
|
|
1294
|
-
}
|
|
1295
|
-
`,Va=M.div`
|
|
1296
|
-
height: 100%;
|
|
1297
|
-
position: relative;
|
|
1298
|
-
width: 100%;
|
|
1299
|
-
display: flex;
|
|
1300
|
-
flex-direction: column;
|
|
1301
|
-
.ql-toolbar.ql-snow {
|
|
1302
|
-
top: 0;
|
|
1303
|
-
width: 100%;
|
|
1304
|
-
position: sticky;
|
|
1305
|
-
z-index: 3;
|
|
1306
|
-
border: none;
|
|
1307
|
-
border-bottom: 1px solid #ccc;
|
|
1308
|
-
background: white;
|
|
1309
|
-
.ql-formats {
|
|
1310
|
-
display: inline-flex;
|
|
1311
|
-
align-items: center;
|
|
1312
|
-
margin-right: 0.5rem;
|
|
1313
|
-
.link-tool-wrapper {
|
|
1314
|
-
.popover-menu__content {
|
|
1315
|
-
padding: 0.5rem;
|
|
1316
|
-
transform: translateX(calc(-50% - 1rem));
|
|
1317
|
-
max-width: calc(100vw - 4rem);
|
|
1318
|
-
::before {
|
|
1319
|
-
right: calc(50% - 8px);
|
|
1320
|
-
}
|
|
1321
|
-
.link-tool-popover {
|
|
1322
|
-
input {
|
|
1323
|
-
padding-left: 1rem;
|
|
1324
|
-
}
|
|
1325
|
-
.link-input-url {
|
|
1326
|
-
margin-bottom: 0.5rem;
|
|
1327
|
-
}
|
|
1328
|
-
.link-input-text {
|
|
1329
|
-
margin-bottom: 0.5rem;
|
|
1330
|
-
}
|
|
1331
|
-
label {
|
|
1332
|
-
display: inline-block;
|
|
1333
|
-
margin-bottom: 0.2rem;
|
|
1334
|
-
}
|
|
1335
|
-
.link-input-button-wrapper {
|
|
1336
|
-
&[data-is-marrybaby='true'] {
|
|
1337
|
-
.link-input-button {
|
|
1338
|
-
border: solid 2px ${U.mbColors.pink};
|
|
1339
|
-
background-color: ${U.mbColors.pink};
|
|
1340
|
-
&:hover:not(:disabled) {
|
|
1341
|
-
border: solid 2px ${U.mbColors.pink};
|
|
1342
|
-
background-color: ${U.colors.white};
|
|
1343
|
-
color: ${U.mbColors.pink};
|
|
1344
|
-
}
|
|
1345
|
-
}
|
|
1346
|
-
}
|
|
1347
|
-
}
|
|
1348
|
-
.link-input-button {
|
|
1349
|
-
width: auto;
|
|
1350
|
-
height: auto;
|
|
1351
|
-
padding: 0.4rem 1rem;
|
|
1352
|
-
background-color: ${U.colors.primaryBase};
|
|
1353
|
-
|
|
1354
|
-
&:disabled {
|
|
1355
|
-
border-color: #bfbfbf;
|
|
1356
|
-
background-color: #bfbfbf;
|
|
1357
|
-
color: #fff;
|
|
1358
|
-
cursor: not-allowed;
|
|
1359
|
-
}
|
|
1360
|
-
&:hover:not(:disabled) {
|
|
1361
|
-
background-color: ${U.colors.primaryHover};
|
|
1362
|
-
}
|
|
1363
|
-
}
|
|
1364
|
-
.error-text {
|
|
1365
|
-
padding: 0;
|
|
1366
|
-
margin-bottom: 0.5rem;
|
|
1367
|
-
font-weight: 600;
|
|
1368
|
-
color: ${U.colors.red700};
|
|
1369
|
-
}
|
|
1370
|
-
}
|
|
1371
|
-
}
|
|
1372
|
-
}
|
|
1373
|
-
}
|
|
1374
|
-
@media (max-width: 450px) {
|
|
1375
|
-
position: relative;
|
|
1376
|
-
.ql-formats {
|
|
1377
|
-
.link-tool-wrapper {
|
|
1378
|
-
position: unset;
|
|
1379
|
-
.popover-menu__content {
|
|
1380
|
-
left: 0;
|
|
1381
|
-
transform: unset;
|
|
1382
|
-
max-width: 100%;
|
|
1383
|
-
}
|
|
1384
|
-
}
|
|
1385
|
-
}
|
|
1386
|
-
}
|
|
1387
|
-
}
|
|
1388
|
-
.quill {
|
|
1389
|
-
flex: 1;
|
|
1390
|
-
overflow-y: hidden;
|
|
1391
|
-
.ql-container {
|
|
1392
|
-
display: inline-block;
|
|
1393
|
-
width: 100%;
|
|
1394
|
-
min-height: 100%;
|
|
1395
|
-
/* padding: 14px 16px; */
|
|
1396
|
-
border: none;
|
|
1397
|
-
border-radius: ${U.borderRadius};
|
|
1398
|
-
color: ${U.colors.gray800};
|
|
1399
|
-
font-size: 1rem;
|
|
1400
|
-
line-height: 1.5;
|
|
1401
|
-
resize: none;
|
|
1402
|
-
white-space: break-spaces;
|
|
1403
|
-
.ql-editor {
|
|
1404
|
-
word-break: break-word;
|
|
1405
|
-
overflow-wrap: break-word;
|
|
1406
|
-
/* -ms-overflow-style: none;
|
|
1407
|
-
scrollbar-width: none;
|
|
1408
|
-
&::-webkit-scrollbar {
|
|
1409
|
-
display: none;
|
|
1410
|
-
} */
|
|
1411
|
-
}
|
|
1412
|
-
mocka {
|
|
1413
|
-
padding: 2px 6px;
|
|
1414
|
-
border-radius: 1rem;
|
|
1415
|
-
&[data-url='true'] {
|
|
1416
|
-
/* background-color: #eeeeff; */
|
|
1417
|
-
font-style: italic;
|
|
1418
|
-
color: #1890ff;
|
|
1419
|
-
cursor: pointer;
|
|
1420
|
-
outline: none;
|
|
1421
|
-
text-decoration: underline;
|
|
1422
|
-
}
|
|
1423
|
-
&[data-error='true'] {
|
|
1424
|
-
background-color: #ffeeee;
|
|
1425
|
-
color: red;
|
|
1426
|
-
text-decoration: underline;
|
|
1427
|
-
font-style: bold;
|
|
1428
|
-
}
|
|
1429
|
-
}
|
|
1430
|
-
mention {
|
|
1431
|
-
padding: 2px 6px;
|
|
1432
|
-
border-radius: 1rem;
|
|
1433
|
-
background-color: #eeeeff;
|
|
1434
|
-
color: #1890ff;
|
|
1435
|
-
cursor: pointer;
|
|
1436
|
-
outline: none;
|
|
1437
|
-
text-decoration: none;
|
|
1438
|
-
}
|
|
1439
|
-
ol,
|
|
1440
|
-
ul {
|
|
1441
|
-
padding-left: 1rem;
|
|
1442
|
-
}
|
|
1443
|
-
}
|
|
1444
|
-
}
|
|
1445
|
-
.mention-search-container {
|
|
1446
|
-
position: absolute;
|
|
1447
|
-
background: white;
|
|
1448
|
-
border-radius: ${U.borderRadius};
|
|
1449
|
-
filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04))
|
|
1450
|
-
drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.04))
|
|
1451
|
-
drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));
|
|
1452
|
-
overflow-y: scroll;
|
|
1453
|
-
z-index: 99;
|
|
1454
|
-
::-webkit-scrollbar {
|
|
1455
|
-
-webkit-appearance: none;
|
|
1456
|
-
}
|
|
1457
|
-
::-webkit-scrollbar:vertical {
|
|
1458
|
-
width: 14px;
|
|
1459
|
-
}
|
|
1460
|
-
::-webkit-scrollbar-thumb {
|
|
1461
|
-
border-radius: ${U.borderRadius};
|
|
1462
|
-
background-color: #d9d9d9;
|
|
1463
|
-
@supports (background-clip: padding-box) {
|
|
1464
|
-
border: 3px solid rgba(0, 0, 0, 0);
|
|
1465
|
-
background-clip: padding-box;
|
|
1466
|
-
}
|
|
1467
|
-
@supports not (background-clip: padding-box) {
|
|
1468
|
-
border: 3px solid white;
|
|
1469
|
-
}
|
|
1470
|
-
}
|
|
1471
|
-
::-webkit-scrollbar-track {
|
|
1472
|
-
background-color: #fff;
|
|
1473
|
-
border-radius: 0 6px 6px 0;
|
|
1474
|
-
border-left: 1px solid #f2f2f2;
|
|
1475
|
-
}
|
|
1476
|
-
.mention-search-item {
|
|
1477
|
-
cursor: pointer;
|
|
1478
|
-
padding: 12px 1rem;
|
|
1479
|
-
display: flex;
|
|
1480
|
-
align-items: center;
|
|
1481
|
-
&.item-selected {
|
|
1482
|
-
background-color: ${U.colors.gray100};
|
|
1483
|
-
}
|
|
1484
|
-
.search-avatar {
|
|
1485
|
-
width: 40px;
|
|
1486
|
-
height: 40px;
|
|
1487
|
-
font-size: 20px;
|
|
1488
|
-
margin-right: 20px;
|
|
1489
|
-
}
|
|
1490
|
-
}
|
|
1491
|
-
}
|
|
1492
|
-
`;let Pa=null;function Fa(e){var t,a;let o=-1;if(void 0!==window.getSelection){const i=window.getSelection();if((null==i?void 0:i.rangeCount)&&(null==i?void 0:i.rangeCount)>0){const i=null===(t=window.getSelection())||void 0===t?void 0:t.getRangeAt(0);if(i){const t=i.cloneRange();t.selectNodeContents(e),t.setEnd(i.endContainer,i.endOffset),o=ja(t.cloneContents().childNodes,o);const r=null===(a=i.endContainer.parentElement)||void 0===a?void 0:a.closest("mocka"),n=i.endContainer.nodeValue||i.endContainer.outerHTML;r&&(null==n?void 0:n.length)&&(o=o-i.endOffset+(r.outerHTML.length-(null==r?void 0:r.outerHTML.lastIndexOf(n))))}}}return o}function ja(e,t){return e.forEach(((a,o)=>{const i=o+1===e.length;if(a.nodeType===Node.ELEMENT_NODE){const e=a.outerHTML;if(!i)return void(t+=e.length);t+=e.indexOf(">")+1,t=ja(a.childNodes,t)}else a.nodeType===Node.TEXT_NODE&&(t+=(a.nodeValue||"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").length)})),t}f(void 0,void 0,void 0,(function*(){if("undefined"==typeof window)return;const e=yield import("react-quill");Pa=e.default;const t=e.Quill||Pa.Quill;t.register("modules/preserveWhiteSpace",class{constructor(e,t){this.quill=e,this.options=t,e.container.style.whiteSpace="pre-line"}});const a=t.import("blots/inline");class o extends a{static create(e){if(!e)return super.create(!1);const t=super.create(e);return o.setNodeConfigurations(t,e),t}static formats(e){return!(!e.innerText||!(e.getAttribute("data-href")||e.getAttribute("data-url")||e.getAttribute("data-error")||e.getAttribute("data-bad-word")))&&{"data-bad-word":e.getAttribute("data-bad-word"),"data-error":e.getAttribute("data-error"),"data-href":e.getAttribute("data-href"),"data-url":e.getAttribute("data-url"),"data-text":e.innerText||e.getAttribute("data-href")}}static setNodeConfigurations(e,t){var a,o;t&&(null===(o=null===(a=null==t?void 0:t["data-text"])||void 0===a?void 0:a.replace(/(\ )+/g," "))||void 0===o?void 0:o.replace(/(\u200c|‌)+/g,""))&&(t["data-bad-word"]&&e.setAttribute("data-bad-word",t["data-bad-word"]),t["data-href"]&&e.setAttribute("data-href",t["data-href"]),t["data-error"]&&e.setAttribute("data-error",t["data-error"]),t["data-url"]&&e.setAttribute("data-url",t["data-url"]))}}o.blotName="mocka1",o.tagName="mocka",t.register(o);class i extends a{static create(e){if(!e)return super.create(!1);const t=super.create(e);return i.setNodeConfigurations(t,e),t}static formats(e){return!(!e.getAttribute("data-name")||!e.getAttribute("data-id"))&&{"data-name":e.getAttribute("data-name"),"data-id":e.getAttribute("data-id")}}static setNodeConfigurations(e,t){var a,o;t&&t["data-id"]&&(null===(o=null===(a=null==t?void 0:t["data-name"])||void 0===a?void 0:a.replace(/(\ )+/g," "))||void 0===o?void 0:o.replace(/(\u200c|‌)+/g,""))&&(t["data-id"]&&e.setAttribute("data-id",t["data-id"]),t["data-name"]&&e.setAttribute("data-name",t["data-name"]))}}i.blotName="mention",i.tagName="mention",t.register(i)}));const Ba=(e,t)=>{var a;const{formatUrl:o,bannedWords:i=[]}=t||{},r=e.replace(/<font [^\>]*>(.+)<\/font>/gim,((e,t)=>t.replace(/<u[^\>]*>(.+)<\/u>/gim,"$1"))).replace(pa,((e,t,a,o)=>{if(o!==a){const e=a.split(" "),i=e.findIndex(((t,a)=>{const i=e.slice(0,a+1).join(" ");return!o.startsWith(i)}));if(0===i)return`@${o}`;{const a=(i<0?e:e.slice(0,i)).join(" "),r=o.slice(a.length).trim();return console.log(i,a,r),`<mention data-id="${t}" data-name="${a}">${a}</mention> ${r} `}}return e}));if(!o)return{value:za(r,i)};let n=(e=>e.replace(va,((e,t)=>{const a=document.createElement("div");a.innerHTML=e;const o=a.firstChild;return(null==o?void 0:o.innerText)!==(null==o?void 0:o.getAttribute("data-bad-word"))?t:e})))((e=>{var t,a;return null===(a=null===(t=e.replace(/(\ )+/g," "))||void 0===t?void 0:t.replace(/(\u200c|‌)+/g,""))||void 0===a?void 0:a.replace(la,((e,t,a)=>{var o;const i=null===(o=t.match(/data-href="([^"]*)"/im))||void 0===o?void 0:o[1];return!i||i===a||a.match(ua)?a:i?`<a href="${i}">${a}</a>`:`<a href="${a}">${a}</a>`})).replace(sa,((e,t,a)=>{if('="'!==t&&'data-url="true">'!==t){const e=a.toLowerCase(),t=`${e.startsWith("http")?"":" https://"}${e}`;return ba({text:t,url:t,method:"edit"})}return e})).replace(ha,((e,t,a)=>ba({text:a||t,url:t,method:"edit"})))})(r));const l=(e=>{var t;return[...wa(e),...(null===(t=e.match(la))||void 0===t?void 0:t.map((e=>{var t,a;const o=null===(t=e.match(/data-href="([^"]*)"/im))||void 0===t?void 0:t[1],i=null===(a=e.match(/>(.*?)<\/mocka>/im))||void 0===a?void 0:a[1];return o||i})))||[]].filter((e=>!!e))})(r);if(l){const e=[];let t="";return l.forEach((t=>{if(t)try{const a=new URL(t);Aa.some((e=>a.origin.endsWith(e)))||e.push(t)}catch(a){e.push(t)}})),e.length>0&&(n=n.replace(new RegExp(`data-url="true">(${e.map(Ea).join("|")})<`,"gi"),'data-error="true" data-url="true">$1<').replace(new RegExp(`data-href="(${e.map(Ea).join("|")})" data-url="true">`,"gi"),'data-href="$1" data-error="true" data-url="true">')),t=null===(a=l.filter((t=>-1===e.indexOf(t))))||void 0===a?void 0:a[0],{invalidUrls:e,previewUrl:t,value:za(n,i)}}return{value:za(n,i)}},Oa=({html:e,onChange:o,className:r,style:d,onImagePickerClick:c,bannedWords:p=[],onInvalidUrlsChange:m,onPreviewUrlChange:u,setEditorRef:g,isReplying:h})=>{var v,b,x,E;const C=l([]);C.current=p;const[k,A]=a([]),[N,z]=a(null),{data:{locale:T}}=n(G),S=(null==p?void 0:p.join(","))||"";s((()=>{var e,t;const a=null===(t=null===(e=R.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root.innerHTML;P(a)}),[S]);const L=e=>{N&&N.url===e||(z({url:e,isFetching:!0}),Z(oe(re.FETCH_PREVIEW,{_locale:T}),"POST",{data:{link:e}}).then((t=>{var a,o,i,r;z({title:null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.title,description:null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.description,image:(null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.image)||(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.logo),url:e})})).catch((()=>{z(null)})))},V=l(L);V.current=L;const P=i(Ce((e=>{if(e){const t=Ba(e,{bannedWords:C.current,formatUrl:!0}),{invalidUrls:a,previewUrl:i,value:r}=t;a&&A(a),i?V.current(i):z(null),r!==e&&(null==o||o(r))}}),500),[]);s((()=>{m&&m(k)}),[k]),s((()=>{u&&((null==N?void 0:N.url)?u({title:N.title||"",url:N.url||"",image:N.image||"",description:N.description||""}):u(null))}),[N]);const F=l(c);F.current=c;const j=w(),B=l({toolbar:{handlers:{image:()=>{var e;return null===(e=F.current)||void 0===e?void 0:e.call(F)},link:()=>!1},container:"#toolbar-"+j},preserveWhiteSpace:!0}),O=l(-1),R=l(null);g&&(null===(b=null===(v=R.current)||void 0===v?void 0:v.getEditor())||void 0===b?void 0:b.root)&&g(null===(E=null===(x=R.current)||void 0===x?void 0:x.getEditor())||void 0===E?void 0:E.root);const M=()=>{var e,t,a,o,i,r,n,l;if(null===(t=null===(e=R.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root){const e=Fa(null===(o=null===(a=R.current)||void 0===a?void 0:a.getEditor())||void 0===o?void 0:o.root),t=null===(r=null===(i=R.current)||void 0===i?void 0:i.getEditor())||void 0===r?void 0:r.root.innerHTML;if(e>=0&&e<t.length){if(ya(t,!0).length<30-(h?1:0)){const e=function(e){var t,a;let o=null;if(void 0!==window.getSelection){const i=window.getSelection();if((null==i?void 0:i.rangeCount)&&(null==i?void 0:i.rangeCount)>0){const i=null===(t=window.getSelection())||void 0===t?void 0:t.getRangeAt(0);if(i){const t=i.cloneRange();t.selectNodeContents(e),t.setEnd(i.endContainer,i.endOffset);const r=(t.endContainer.nodeValue||"").substring(0,i.endOffset),n=r.lastIndexOf("@");if(n+1<r.length&&(0===n||" @"===r.slice(n-1,n+1))){const e=null===(a=r.slice(n+1))||void 0===a?void 0:a.trim();if(e){t.setStart(i.endContainer,n);const a=t.cloneRange();a.setStart(a.endContainer,n),o={name:e,rect:t.getBoundingClientRect(),replaceRange:a}}}}}}return o}(null===(l=null===(n=R.current)||void 0===n?void 0:n.getEditor())||void 0===l?void 0:l.root);e?(H(e.name,e.rect),K.current=e.replaceRange):(K.current=null,H("",null))}else K.current=null,H("",null);O.current=e}}else U([])},[I,U]=a([]),[D,W]=a({top:0,left:0}),H=i(Ce(((e,t,a)=>f(void 0,void 0,void 0,(function*(){var o,i,r,n;if(!e||!DOMRect)return U([]);const l=yield((null===(o=Ne(X))||void 0===o?void 0:o.length)||0)>0?le(oe(re.SEARCH_USER,{_locale:T,name:e}),"get"):ne(oe(ie.SEARCH_USER,{_locale:T,name:e}),"get");J(0),U(null===(r=null===(i=null==l?void 0:l.data)||void 0===i?void 0:i.users)||void 0===r?void 0:r.filter((e=>!(null==a?void 0:a.includes(String(e.id))))));const s=t,d=null===(n=Q.current)||void 0===n?void 0:n.getBoundingClientRect();if(s&&d){const e=343,t=256,a={top:s.bottom-d.top,width:"min(343px, 100%)",maxHeight:t};d.width-(s.left-d.left)<e?a.right=0:a.left=s.left-d.left,W(a)}}))),500),[]),q=(e,t)=>{var a,o,i;if(K.current){K.current.deleteContents();const r=document.createElement("mention");r.setAttribute("data-id",e),r.setAttribute("data-name",t),r.innerText=t;const n=document.createTextNode(" ");K.current.insertNode(n),K.current.insertNode(r);(null===(o=null===(a=R.current)||void 0===a?void 0:a.getEditor())||void 0===o?void 0:o.root).focus();const l=null===(i=window.getSelection())||void 0===i?void 0:i.getRangeAt(0);null==l||l.setStart(K.current.endContainer,K.current.endOffset),null==l||l.setEnd(K.current.endContainer,K.current.endOffset)}U([])},Q=l(null),K=l(null),Y=l(null),[$,J]=a(0);return s((()=>{if(Y.current){const e=Y.current,t=e.children.item($);if(t){const a=e.getBoundingClientRect(),o=t.getBoundingClientRect();t.offsetTop<e.scrollTop?e.scrollTop=t.offsetTop:t.offsetTop+o.height>e.scrollTop+a.height&&(e.scrollTop=t.offsetTop-a.height+o.height)}}}),[$]),s((()=>{const e=function(e){var t;(null===(t=Q.current)||void 0===t?void 0:t.contains(e.target))||U([])};return window.addEventListener("click",e,{passive:!0}),()=>{window.removeEventListener("click",e)}}),[]),t.createElement(Va,{ref:Q,className:r,style:d,onKeyDownCapture:e=>{if(null==I?void 0:I.length){let t=!1;if("ArrowDown"===e.key)t=!0,J((e=>e+1>=I.length?0:e+1));else if("Escape"===e.key)t=!0,J(0),U([]);else if("ArrowUp"===e.key)t=!0,J((e=>e-1<0?I.length-1:e-1));else if("Enter"===e.key||"Tab"===e.key){const e=I[$];e&&(t=!0,q(e.id,e.name))}if(t)return e.preventDefault(),!1}}},t.createElement(Ra,{id:j,onAddLink:(e,t)=>{var a,i;const r=O.current+1,n=null===(i=null===(a=R.current)||void 0===a?void 0:a.getEditor())||void 0===i?void 0:i.root.innerHTML,l=((null==n?void 0:n.substring(0,r))||"")+`<mocka data-href="${t}" data-url="true">${e}</mocka> `+((null==n?void 0:n.substring(r))||"");null==o||o(l),P(l)}}),Pa&&t.createElement(Pa,{ref:R,theme:"snow",value:e,onChange:e=>{null==o||o(e),P(e),M()},onChangeSelection:()=>{M()},modules:B.current,formats:["mocka1","mention","id","key","bold","italic","underline","list","bullet"]}),!!(null==I?void 0:I.length)&&t.createElement("div",{ref:Y,className:"mention-search-container",style:D},I.map(((e,a)=>t.createElement("div",{className:"mention-search-item "+($===a?"item-selected":""),key:e.id,onClick:t=>{t.preventDefault(),t.stopPropagation(),q(e.id,e.name)},onMouseEnter:()=>{J(a)}},t.createElement(ue,{className:"search-avatar",username:e.name,avatar:e.avatar}),t.createElement("div",null,t.createElement(y,{size:"p2"},e.name),t.createElement(y,{size:"p4",color:"#595959"},"@",e.username)))))))},Ra=({onAddLink:e,id:a})=>t.createElement("div",{id:"toolbar-"+a,onClick:e=>{e.preventDefault(),e.stopPropagation()}},t.createElement("span",{className:"ql-formats"},t.createElement("button",{className:"ql-bold",type:"button"}),t.createElement("button",{className:"ql-italic",type:"button"}),t.createElement("button",{className:"ql-underline",type:"button"})),t.createElement("span",{className:"ql-formats"},t.createElement("button",{className:"ql-list",value:"ordered",type:"button"}),t.createElement("button",{className:"ql-list",value:"bullet",type:"button"})),t.createElement("span",{className:"ql-formats"},t.createElement("button",{className:"ql-image",type:"button"}),e&&t.createElement(lt,{className:"link-tool-wrapper",toggleButtonContent:t.createElement("img",{className:"link-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='M9.54545 16H7.09091C6.55368 16 6.02172 15.8965 5.52539 15.6955C5.02905 15.4945 4.57808 15.1999 4.1982 14.8284C3.43101 14.0783 3 13.0609 3 12C3 10.9391 3.43101 9.92172 4.1982 9.17157C4.96539 8.42143 6.00593 8 7.09091 8H9.54545M13.9256 8H16.9091C17.4463 8 17.9783 8.10346 18.4746 8.30448C18.9709 8.5055 19.4219 8.80014 19.8018 9.17157C20.1817 9.54301 20.483 9.98396 20.6886 10.4693C20.8942 10.9546 21 11.4747 21 12C21 12.5253 20.8942 13.0454 20.6886 13.5307C20.483 14.016 20.1817 14.457 19.8018 14.8284C19.4219 15.1999 18.9709 15.4945 18.4746 15.6955C17.9783 15.8965 17.4463 16 16.9091 16H13.9256' stroke='%23737373' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M9 12H15' stroke='%23737373' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",loading:"lazy"}),buttonProps:{size:"md",color:"transparent"},align:"end"},(({setShow:a})=>t.createElement(Ia,{onAddUrl:e,setShow:a}))))),Ma=["notification.limitUrlDomain","notification.urlWrongFormat"],Ia=({onAddUrl:e,setShow:o})=>{const{data:{env:{isMarryBaby:i}}}=n(G),{t:r}=x(),[l,s]=a(""),[d,c]=a(""),[p,m]=a(-1),u=l.trim()&&d.trim()&&p<0;return t.createElement("div",{className:"link-tool-popover"},t.createElement(me,{name:"url",value:l,size:"md",label:"URL",placeholder:r("placeholder.enterUrlHere"),type:"text",className:"link-input-url",onChange:e=>{s(e),(e=>{const t=Na(e.trim());try{const e=new URL(t);return e.protocol.startsWith("http")?Aa.some((t=>e.origin.endsWith("/"+t)||e.origin.endsWith("."+t)))?(m(-1),!0):(m(0),!1):(m(1),!1)}catch(e){return m(1),!1}})(e)}}),p>=0&&t.createElement(y,{size:"c2",className:"error-text"},r(Ma[p])),t.createElement(me,{name:"text",value:d,size:"md",label:r("createPost.urlText"),placeholder:r("placeholder.enterUrlTextHere"),type:"text",className:"link-input-text",onChange:e=>c(e)}),t.createElement("div",{"data-is-marrybaby":i,className:"link-input-button-wrapper"},t.createElement(pe,{theme:i?"marryBaby":"helloSites",size:"sm",color:"primary",className:"link-input-button",onClick:()=>{u&&(e(d.trim(),Na(l.trim())),o&&o(!1))},isDisabled:!u},r("insert"))))},Ua=M.div`
|
|
1493
|
-
input:focus,
|
|
1494
|
-
textarea:focus,
|
|
1495
|
-
[contenteditable='true'] {
|
|
1496
|
-
outline: none;
|
|
1497
|
-
}
|
|
1498
|
-
|
|
1499
|
-
.title-input {
|
|
1500
|
-
overflow: hidden;
|
|
1501
|
-
width: 100%;
|
|
1502
|
-
padding: 12px 16px;
|
|
1503
|
-
border: solid 1px #d9d9d9;
|
|
1504
|
-
border-radius: ${U.borderRadius};
|
|
1505
|
-
font-size: 16px;
|
|
1506
|
-
line-height: 1.2;
|
|
1507
|
-
white-space: nowrap;
|
|
1508
|
-
:focus {
|
|
1509
|
-
border-color: ${U.colors.primaryBase};
|
|
1510
|
-
box-shadow: 0px 0px 2px 2px ${U.colors.primary200};
|
|
1511
|
-
}
|
|
1512
|
-
br {
|
|
1513
|
-
display: none;
|
|
1514
|
-
}
|
|
1515
|
-
* {
|
|
1516
|
-
display: inline;
|
|
1517
|
-
white-space: nowrap;
|
|
1518
|
-
}
|
|
1519
|
-
mocka {
|
|
1520
|
-
padding: 2px 6px;
|
|
1521
|
-
border-radius: 1rem;
|
|
1522
|
-
&[data-error='true'] {
|
|
1523
|
-
background-color: #ffeeee;
|
|
1524
|
-
color: red;
|
|
1525
|
-
text-decoration: underline;
|
|
1526
|
-
font-style: bold;
|
|
1527
|
-
}
|
|
1528
|
-
}
|
|
1529
|
-
ol,
|
|
1530
|
-
ul {
|
|
1531
|
-
padding-left: 1rem;
|
|
1532
|
-
}
|
|
1533
|
-
}
|
|
1534
|
-
|
|
1535
|
-
label {
|
|
1536
|
-
display: block;
|
|
1537
|
-
margin-bottom: 5px;
|
|
1538
|
-
color: ${U.colors.gray600};
|
|
1539
|
-
font-size: 13px;
|
|
1540
|
-
font-weight: bold;
|
|
1541
|
-
}
|
|
1542
|
-
|
|
1543
|
-
.count-string {
|
|
1544
|
-
margin-top: 5px;
|
|
1545
|
-
color: ${U.colors.gray500};
|
|
1546
|
-
font-size: 11px;
|
|
1547
|
-
text-align: right;
|
|
1548
|
-
}
|
|
1549
|
-
`,Da=M.div`
|
|
1550
|
-
display: flex;
|
|
1551
|
-
width: 100%;
|
|
1552
|
-
flex-wrap: wrap;
|
|
1553
|
-
margin-top: 1rem;
|
|
1554
|
-
|
|
1555
|
-
.tag-item {
|
|
1556
|
-
min-height: 32px;
|
|
1557
|
-
padding: 5px 12px;
|
|
1558
|
-
border: 1px solid ${U.colors.neutral100};
|
|
1559
|
-
margin-right: 1rem;
|
|
1560
|
-
margin-bottom: 8px;
|
|
1561
|
-
border-radius: 1rem;
|
|
1562
|
-
color: ${U.colors.gray800};
|
|
1563
|
-
cursor: pointer;
|
|
1564
|
-
font-size: 13px;
|
|
1565
|
-
line-height: 22px;
|
|
1566
|
-
transition: all 0.2s;
|
|
1567
|
-
|
|
1568
|
-
&.--active {
|
|
1569
|
-
border-color: ${U.colors.primary50};
|
|
1570
|
-
background: ${U.colors.primary50};
|
|
1571
|
-
color: ${U.colors.primaryBase};
|
|
1572
|
-
}
|
|
1573
|
-
&[data-disabled='true'] {
|
|
1574
|
-
background: ${U.colors.gray100};
|
|
1575
|
-
color: ${U.colors.gray800};
|
|
1576
|
-
}
|
|
1577
|
-
}
|
|
1578
|
-
.topic-spinner {
|
|
1579
|
-
margin-right: auto;
|
|
1580
|
-
margin-left: auto;
|
|
1581
|
-
& > button {
|
|
1582
|
-
width: 24px;
|
|
1583
|
-
height: 24px;
|
|
1584
|
-
}
|
|
1585
|
-
}
|
|
1586
|
-
&[data-is-marrybaby='true'] {
|
|
1587
|
-
.tag-item {
|
|
1588
|
-
border-color: transparent;
|
|
1589
|
-
background: #f3f3f3;
|
|
1590
|
-
color: #3e3f58;
|
|
1591
|
-
&.--active {
|
|
1592
|
-
border-color: #b6cdff;
|
|
1593
|
-
background: #e0e9fb;
|
|
1594
|
-
color: #3e3f58;
|
|
1595
|
-
}
|
|
1596
|
-
}
|
|
1597
|
-
}
|
|
1598
|
-
`,Wa=M.div`
|
|
1599
|
-
[data-type='confirm'] {
|
|
1600
|
-
width: min(360px, 100%);
|
|
1601
|
-
height: auto;
|
|
1602
|
-
&[data-open='false'] {
|
|
1603
|
-
top: calc(-100% - 500px);
|
|
1604
|
-
}
|
|
1605
|
-
}
|
|
1606
|
-
z-index: 600;
|
|
1607
|
-
|
|
1608
|
-
.header {
|
|
1609
|
-
display: none !important;
|
|
1610
|
-
}
|
|
1611
|
-
|
|
1612
|
-
.confirm-dialog {
|
|
1613
|
-
position: relative;
|
|
1614
|
-
overflow: auto;
|
|
1615
|
-
width: 100%;
|
|
1616
|
-
padding-top: 44px;
|
|
1617
|
-
background: #fff;
|
|
1618
|
-
border-radius: ${U.borderRadius};
|
|
1619
|
-
|
|
1620
|
-
.confirm-content {
|
|
1621
|
-
display: flex;
|
|
1622
|
-
flex-direction: column;
|
|
1623
|
-
align-items: center;
|
|
1624
|
-
padding: 0 16px 16px;
|
|
1625
|
-
text-align: center;
|
|
1626
|
-
|
|
1627
|
-
.title {
|
|
1628
|
-
margin-bottom: 8px;
|
|
1629
|
-
font-size: 24px;
|
|
1630
|
-
line-height: 32px;
|
|
1631
|
-
word-break: break-word;
|
|
1632
|
-
overflow-wrap: break-word;
|
|
1633
|
-
}
|
|
1634
|
-
|
|
1635
|
-
.desc {
|
|
1636
|
-
margin-bottom: 24px;
|
|
1637
|
-
color: ${U.colors.gray500};
|
|
1638
|
-
font-size: 18px;
|
|
1639
|
-
line-height: 24px;
|
|
1640
|
-
text-align: center;
|
|
1641
|
-
word-break: break-word;
|
|
1642
|
-
overflow-wrap: break-word;
|
|
1643
|
-
}
|
|
1644
|
-
|
|
1645
|
-
.btn-group {
|
|
1646
|
-
display: flex;
|
|
1647
|
-
flex-wrap: wrap;
|
|
1648
|
-
align-items: center;
|
|
1649
|
-
justify-content: center;
|
|
1650
|
-
|
|
1651
|
-
button {
|
|
1652
|
-
margin: 0 4px 0.5rem;
|
|
1653
|
-
}
|
|
1654
|
-
}
|
|
1655
|
-
}
|
|
1656
|
-
}
|
|
1657
|
-
.thumbnail-container {
|
|
1658
|
-
width: 80px;
|
|
1659
|
-
height: 80px;
|
|
1660
|
-
margin-bottom: 32px;
|
|
1661
|
-
.thumbnail {
|
|
1662
|
-
width: 100%;
|
|
1663
|
-
height: 100%;
|
|
1664
|
-
}
|
|
1665
|
-
&.is-icon {
|
|
1666
|
-
display: flex;
|
|
1667
|
-
align-items: center;
|
|
1668
|
-
justify-content: center;
|
|
1669
|
-
background: #e0e9fc;
|
|
1670
|
-
border-radius: 1rem;
|
|
1671
|
-
.thumbnail {
|
|
1672
|
-
width: 40px;
|
|
1673
|
-
height: 40px;
|
|
1674
|
-
}
|
|
1675
|
-
}
|
|
1676
|
-
}
|
|
1677
|
-
&[data-is-marrybaby='true'] {
|
|
1678
|
-
.popup-frame {
|
|
1679
|
-
> div:first-child {
|
|
1680
|
-
overflow: hidden;
|
|
1681
|
-
border-radius: 1rem;
|
|
1682
|
-
&[data-open='true'] {
|
|
1683
|
-
${O.mbDown} {
|
|
1684
|
-
top: 100%;
|
|
1685
|
-
transform: translate(-50%, -100%);
|
|
1686
|
-
max-width: unset;
|
|
1687
|
-
width: 100%;
|
|
1688
|
-
background: unset;
|
|
1689
|
-
overflow: unset;
|
|
1690
|
-
}
|
|
1691
|
-
}
|
|
1692
|
-
}
|
|
1693
|
-
.popup-content {
|
|
1694
|
-
.close-button {
|
|
1695
|
-
${O.mbDown} {
|
|
1696
|
-
display: none;
|
|
1697
|
-
}
|
|
1698
|
-
}
|
|
1699
|
-
.confirm-dialog {
|
|
1700
|
-
${O.mbDown} {
|
|
1701
|
-
background: unset;
|
|
1702
|
-
position: relative;
|
|
1703
|
-
overflow-x: hidden;
|
|
1704
|
-
&::before {
|
|
1705
|
-
content: '';
|
|
1706
|
-
width: 200%;
|
|
1707
|
-
background: #fff;
|
|
1708
|
-
position: absolute;
|
|
1709
|
-
left: 50%;
|
|
1710
|
-
top: 0;
|
|
1711
|
-
transform: translateX(-50%);
|
|
1712
|
-
z-index: -1;
|
|
1713
|
-
height: 100%;
|
|
1714
|
-
border-top-left-radius: 100%;
|
|
1715
|
-
border-top-right-radius: 100%;
|
|
1716
|
-
}
|
|
1717
|
-
}
|
|
1718
|
-
.confirm-content {
|
|
1719
|
-
padding: 0 40px 40px;
|
|
1720
|
-
${O.mbDown} {
|
|
1721
|
-
padding-left: 1.5rem;
|
|
1722
|
-
padding-right: 1.5rem;
|
|
1723
|
-
}
|
|
1724
|
-
.btn-group {
|
|
1725
|
-
width: 100%;
|
|
1726
|
-
justify-content: space-between;
|
|
1727
|
-
button {
|
|
1728
|
-
flex: 1;
|
|
1729
|
-
margin: 0;
|
|
1730
|
-
&:first-child {
|
|
1731
|
-
margin-right: 0.5rem;
|
|
1732
|
-
}
|
|
1733
|
-
}
|
|
1734
|
-
}
|
|
1735
|
-
}
|
|
1736
|
-
}
|
|
1737
|
-
}
|
|
1738
|
-
.thumbnail-container {
|
|
1739
|
-
${O.mbDown} {
|
|
1740
|
-
display: none;
|
|
1741
|
-
}
|
|
1742
|
-
&.is-icon {
|
|
1743
|
-
background: #ffeaf1;
|
|
1744
|
-
border-radius: 24px;
|
|
1745
|
-
}
|
|
1746
|
-
&.is-mobile {
|
|
1747
|
-
position: absolute;
|
|
1748
|
-
top: 0;
|
|
1749
|
-
left: 50%;
|
|
1750
|
-
display: none;
|
|
1751
|
-
width: 48px;
|
|
1752
|
-
height: 48px;
|
|
1753
|
-
transform: translate(-50%, -50%);
|
|
1754
|
-
&.is-icon {
|
|
1755
|
-
border-radius: 1rem;
|
|
1756
|
-
.thumbnail {
|
|
1757
|
-
width: 24px;
|
|
1758
|
-
height: 24px;
|
|
1759
|
-
}
|
|
1760
|
-
}
|
|
1761
|
-
${O.mbDown} {
|
|
1762
|
-
display: flex;
|
|
1763
|
-
}
|
|
1764
|
-
}
|
|
1765
|
-
}
|
|
1766
|
-
}
|
|
1767
|
-
}
|
|
1768
|
-
`,Ha=e=>{var{size:a,color:o,isExpand:i,useCurrentColor:r,isActive:n,activeColor:l}=e,s=b(e,["size","color","isExpand","useCurrentColor","isActive","activeColor"]);const d=r?"currentColor":n?l:o,c=Object.assign({width:a,height:a},s);return i?t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none"},c),t.createElement("path",{d:"M15.1801 4C14.6212 4 14.3418 4.67561 14.7373 5.07108L16.0864 6.42229L6.42229 16.0864L5.07108 14.7373C4.67561 14.3418 4 14.6212 4 15.1801V19.3718C4 19.7187 4.28026 20 4.62617 20H8.81987C9.37881 20 9.6582 19.3244 9.26272 18.9289L7.91357 17.5777L17.5777 7.91357L18.9289 9.26272C19.3244 9.6582 20 9.37881 20 8.81987V4.62617C20 4.28026 19.7187 4 19.3718 4H15.1801Z",fill:d})):t.createElement("svg",Object.assign({width:a,height:a,viewBox:"0 0 14 14",fill:d},s),t.createElement("path",{d:"M9.64991 0.333008C9.18412 0.333008 8.9513 0.896013 9.28086 1.22558L10.4052 2.35159L2.35171 10.405L1.2257 9.28074C0.896135 8.95118 0.33313 9.184 0.33313 9.64979V13.1428C0.33313 13.432 0.566681 13.6663 0.854939 13.6663H4.34969C4.81547 13.6663 5.04829 13.1033 4.71873 12.7738L3.59444 11.6478L11.6479 3.59432L12.7739 4.71861C13.1035 5.04817 13.6665 4.81535 13.6665 4.34957V0.854817C13.6665 0.566559 13.4321 0.333008 13.1429 0.333008H9.64991Z"}))};Ha.defaultProps={size:24,color:U.colors.gray600,activeColor:U.colors.primaryBase};const Za=M.div`
|
|
1769
|
-
[data-type='confirm'] {
|
|
1770
|
-
max-width: 468px;
|
|
1771
|
-
/* height: 486px; */
|
|
1772
|
-
padding: 0;
|
|
1773
|
-
|
|
1774
|
-
.popup-content {
|
|
1775
|
-
display: flex;
|
|
1776
|
-
flex-direction: column;
|
|
1777
|
-
padding: 0;
|
|
1778
|
-
|
|
1779
|
-
.close-button {
|
|
1780
|
-
top: 16px;
|
|
1781
|
-
right: 16px;
|
|
1782
|
-
width: 24px;
|
|
1783
|
-
height: 24px;
|
|
1784
|
-
z-index: 5;
|
|
1785
|
-
}
|
|
1786
|
-
|
|
1787
|
-
.header {
|
|
1788
|
-
display: flex;
|
|
1789
|
-
height: 56px;
|
|
1790
|
-
align-items: center;
|
|
1791
|
-
padding: 16px 56px 16px 32px;
|
|
1792
|
-
border-bottom: 1px solid ${U.colors.neutral100};
|
|
1793
|
-
font-weight: 900;
|
|
1794
|
-
width: 100%;
|
|
1795
|
-
justify-content: space-between;
|
|
1796
|
-
}
|
|
1797
|
-
|
|
1798
|
-
.content {
|
|
1799
|
-
overflow: auto;
|
|
1800
|
-
flex: 1;
|
|
1801
|
-
.topic-list-wrapper {
|
|
1802
|
-
padding: 1rem;
|
|
1803
|
-
}
|
|
1804
|
-
}
|
|
1805
|
-
}
|
|
1806
|
-
}
|
|
1807
|
-
|
|
1808
|
-
> div&[data-open='true'] {
|
|
1809
|
-
z-index: 250;
|
|
1810
|
-
&:last-child {
|
|
1811
|
-
z-index: 200;
|
|
1812
|
-
}
|
|
1813
|
-
}
|
|
1814
|
-
|
|
1815
|
-
${e=>e.isExpand&&"\n & > div[data-open] {\n width: 100%;\n height: 100%;\n max-width: none;\n max-height: none;\n }\n "}
|
|
1816
|
-
|
|
1817
|
-
${e=>e.hasFullscreen&&"\n & > div[data-open] {\n transition: all 0.5s ease-in-out, width 0s, height 0s;\n }\n "}
|
|
1818
|
-
`,qa=M.div`
|
|
1819
|
-
cursor: pointer;
|
|
1820
|
-
display: flex;
|
|
1821
|
-
align-items: center;
|
|
1822
|
-
`;var Ga="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='M18 6L6 18' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6 6L18 18' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const Xa=({className:e,style:o,closeIcon:i,heading:r="",children:n,isOpen:l=!1,hasFullscreen:s=!1,onClose:d=(()=>null)})=>{const[c,p]=a(!1);return t.createElement(Za,{className:e,style:o,isExpand:c,hasFullscreen:s},t.createElement(ge,{type:"confirm",onClose:d,isOpen:l,closeIcon:i||t.createElement("img",{src:Ga,loading:"lazy"}),enableAnimation:!s},t.createElement("div",{className:"header"},t.createElement(Y,{tag:"h5"},r),s&&t.createElement(qa,{onClick:()=>p(!c)},t.createElement(Ha,{size:14,isExpand:c}))),t.createElement("div",{className:"content"},"function"==typeof n?n(c):n)))},Qa=M.div`
|
|
1823
|
-
padding: 1rem;
|
|
1824
|
-
border-top: 1px solid #f2f2f2;
|
|
1825
|
-
&[data-is-reply='true'] {
|
|
1826
|
-
padding-right: 0;
|
|
1827
|
-
padding-left: 0;
|
|
1828
|
-
border-top: 1px solid #e4e8ec;
|
|
1829
|
-
margin-right: 1rem;
|
|
1830
|
-
margin-left: 1rem;
|
|
1831
|
-
}
|
|
1832
|
-
.error-text {
|
|
1833
|
-
padding: 1rem;
|
|
1834
|
-
color: ${U.colors.red700};
|
|
1835
|
-
}
|
|
1836
|
-
.reply-to-container {
|
|
1837
|
-
display: flex;
|
|
1838
|
-
justify-content: space-between;
|
|
1839
|
-
padding-bottom: 0.75rem;
|
|
1840
|
-
margin-top: -0.25rem;
|
|
1841
|
-
.icon-close-comment {
|
|
1842
|
-
width: 16px;
|
|
1843
|
-
height: 16px;
|
|
1844
|
-
cursor: pointer;
|
|
1845
|
-
}
|
|
1846
|
-
a {
|
|
1847
|
-
text-decoration: none;
|
|
1848
|
-
}
|
|
1849
|
-
}
|
|
1850
|
-
.input-container {
|
|
1851
|
-
display: flex;
|
|
1852
|
-
align-items: center;
|
|
1853
|
-
.avatar-wrapper {
|
|
1854
|
-
display: flex;
|
|
1855
|
-
flex-shrink: 0;
|
|
1856
|
-
align-items: center;
|
|
1857
|
-
margin-right: 0.5rem;
|
|
1858
|
-
&.avatar-wrapper-reply {
|
|
1859
|
-
width: 32px;
|
|
1860
|
-
height: 32px;
|
|
1861
|
-
.avatar {
|
|
1862
|
-
width: 32px;
|
|
1863
|
-
height: 32px;
|
|
1864
|
-
}
|
|
1865
|
-
}
|
|
1866
|
-
}
|
|
1867
|
-
.input-wrapper {
|
|
1868
|
-
margin-right: 0.5rem;
|
|
1869
|
-
&[data-has-error] {
|
|
1870
|
-
.as-input {
|
|
1871
|
-
border-color: ${U.colors.red700};
|
|
1872
|
-
}
|
|
1873
|
-
}
|
|
1874
|
-
|
|
1875
|
-
.as-input {
|
|
1876
|
-
.textarea {
|
|
1877
|
-
width: 100%;
|
|
1878
|
-
max-height: 225px;
|
|
1879
|
-
min-height: 75px;
|
|
1880
|
-
.ql-toolbar {
|
|
1881
|
-
padding: 0;
|
|
1882
|
-
}
|
|
1883
|
-
.ql-editor {
|
|
1884
|
-
padding-left: 0;
|
|
1885
|
-
padding-right: 0;
|
|
1886
|
-
}
|
|
1887
|
-
.quill {
|
|
1888
|
-
height: 0;
|
|
1889
|
-
}
|
|
1890
|
-
}
|
|
1891
|
-
width: 100%;
|
|
1892
|
-
padding: 12px 16px;
|
|
1893
|
-
border: solid 1px ${U.colors.gray200};
|
|
1894
|
-
border-radius: ${U.borderRadius};
|
|
1895
|
-
|
|
1896
|
-
&:active,
|
|
1897
|
-
&:focus {
|
|
1898
|
-
border-color: ${U.colors.primaryBase};
|
|
1899
|
-
box-shadow: 0px 0px 2px 2px ${U.colors.primary200};
|
|
1900
|
-
}
|
|
1901
|
-
|
|
1902
|
-
&:disabled {
|
|
1903
|
-
background-color: ${U.colors.gray100};
|
|
1904
|
-
cursor: not-allowed;
|
|
1905
|
-
}
|
|
1906
|
-
|
|
1907
|
-
span {
|
|
1908
|
-
&[data-error='true'] {
|
|
1909
|
-
color: red;
|
|
1910
|
-
text-decoration: underline;
|
|
1911
|
-
}
|
|
1912
|
-
}
|
|
1913
|
-
}
|
|
1914
|
-
|
|
1915
|
-
&[data-has-action-icon] {
|
|
1916
|
-
.as-input {
|
|
1917
|
-
padding: 12px 48px 12px 16px;
|
|
1918
|
-
}
|
|
1919
|
-
}
|
|
1920
|
-
&[data-has-display-icon] {
|
|
1921
|
-
.as-input {
|
|
1922
|
-
padding: 12px 16px 12px 48px;
|
|
1923
|
-
}
|
|
1924
|
-
}
|
|
1925
|
-
|
|
1926
|
-
&[data-has-action-icon][data-has-display-icon] {
|
|
1927
|
-
.as-input {
|
|
1928
|
-
padding: 12px 48px;
|
|
1929
|
-
}
|
|
1930
|
-
}
|
|
1931
|
-
|
|
1932
|
-
&[data-size='lg'] {
|
|
1933
|
-
.as-input {
|
|
1934
|
-
font-size: 16px;
|
|
1935
|
-
font-weight: ${U.sizes.fwRegular};
|
|
1936
|
-
${O.mbDown} {
|
|
1937
|
-
font-size: 22px;
|
|
1938
|
-
line-height: 1.2;
|
|
1939
|
-
}
|
|
1940
|
-
|
|
1941
|
-
${O.mbUp} {
|
|
1942
|
-
font-size: 26px;
|
|
1943
|
-
line-height: 1.2;
|
|
1944
|
-
}
|
|
1945
|
-
}
|
|
1946
|
-
}
|
|
1947
|
-
&[data-size='md'] {
|
|
1948
|
-
.as-input {
|
|
1949
|
-
font-weight: ${U.sizes.fwRegular};
|
|
1950
|
-
line-height: 22px;
|
|
1951
|
-
${O.mbDown} {
|
|
1952
|
-
font-size: 14px;
|
|
1953
|
-
line-height: 1.2;
|
|
1954
|
-
}
|
|
1955
|
-
|
|
1956
|
-
${O.mbUp} {
|
|
1957
|
-
font-size: 16px;
|
|
1958
|
-
line-height: 1.2;
|
|
1959
|
-
}
|
|
1960
|
-
}
|
|
1961
|
-
}
|
|
1962
|
-
&[data-size='sm'] {
|
|
1963
|
-
.as-input {
|
|
1964
|
-
font-weight: ${U.sizes.fwRegular};
|
|
1965
|
-
line-height: 20px;
|
|
1966
|
-
${O.mbDown} {
|
|
1967
|
-
font-size: 13px;
|
|
1968
|
-
line-height: 1.5;
|
|
1969
|
-
}
|
|
1970
|
-
|
|
1971
|
-
${O.mbUp} {
|
|
1972
|
-
font-size: 13px;
|
|
1973
|
-
line-height: 1.5;
|
|
1974
|
-
}
|
|
1975
|
-
}
|
|
1976
|
-
}
|
|
1977
|
-
}
|
|
1978
|
-
.images-input-label {
|
|
1979
|
-
height: 100%;
|
|
1980
|
-
cursor: pointer;
|
|
1981
|
-
.icon-images-input {
|
|
1982
|
-
width: 24px;
|
|
1983
|
-
height: 24px;
|
|
1984
|
-
vertical-align: middle;
|
|
1985
|
-
}
|
|
1986
|
-
}
|
|
1987
|
-
.send-button {
|
|
1988
|
-
display: flex;
|
|
1989
|
-
width: 40px;
|
|
1990
|
-
height: 40px;
|
|
1991
|
-
flex-shrink: 0;
|
|
1992
|
-
align-items: center;
|
|
1993
|
-
justify-content: center;
|
|
1994
|
-
padding: 0;
|
|
1995
|
-
border: none;
|
|
1996
|
-
&.send-button-post {
|
|
1997
|
-
background: ${U.colors.neutral100};
|
|
1998
|
-
border-radius: 50%;
|
|
1999
|
-
}
|
|
2000
|
-
.icon-enter {
|
|
2001
|
-
width: 20px;
|
|
2002
|
-
height: 20px;
|
|
2003
|
-
vertical-align: middle;
|
|
2004
|
-
}
|
|
2005
|
-
&[data-is-loading='true'] {
|
|
2006
|
-
> div {
|
|
2007
|
-
display: flex;
|
|
2008
|
-
align-items: center;
|
|
2009
|
-
justify-content: center;
|
|
2010
|
-
}
|
|
2011
|
-
}
|
|
2012
|
-
}
|
|
2013
|
-
}
|
|
2014
|
-
.preview-images-container {
|
|
2015
|
-
margin-top: 1rem;
|
|
2016
|
-
.image-src-wrapper {
|
|
2017
|
-
position: relative;
|
|
2018
|
-
width: 100%;
|
|
2019
|
-
padding-top: 66.67%;
|
|
2020
|
-
&:not(:last-child) {
|
|
2021
|
-
margin-bottom: 1rem;
|
|
2022
|
-
}
|
|
2023
|
-
.preview-image {
|
|
2024
|
-
position: absolute;
|
|
2025
|
-
top: 0;
|
|
2026
|
-
left: 0;
|
|
2027
|
-
width: 100%;
|
|
2028
|
-
height: 100%;
|
|
2029
|
-
object-fit: cover;
|
|
2030
|
-
}
|
|
2031
|
-
.icon-close-circle {
|
|
2032
|
-
position: absolute;
|
|
2033
|
-
top: 10px;
|
|
2034
|
-
right: 10px;
|
|
2035
|
-
width: 20px;
|
|
2036
|
-
height: 20px;
|
|
2037
|
-
cursor: pointer;
|
|
2038
|
-
}
|
|
2039
|
-
}
|
|
2040
|
-
}
|
|
2041
|
-
`,Ka=r({}),Ya=M.a`
|
|
2042
|
-
* {
|
|
2043
|
-
pointer-events: none;
|
|
2044
|
-
}
|
|
2045
|
-
`,$a=M.div`
|
|
2046
|
-
padding: 1rem;
|
|
2047
|
-
.share__social {
|
|
2048
|
-
display: flex;
|
|
2049
|
-
width: 100%;
|
|
2050
|
-
align-items: center;
|
|
2051
|
-
justify-content: center;
|
|
2052
|
-
|
|
2053
|
-
& > ${Ya} {
|
|
2054
|
-
margin: 0 7px;
|
|
2055
|
-
|
|
2056
|
-
& > img {
|
|
2057
|
-
width: 32px;
|
|
2058
|
-
height: 32px;
|
|
2059
|
-
}
|
|
2060
|
-
.__label {
|
|
2061
|
-
display: none;
|
|
2062
|
-
}
|
|
2063
|
-
}
|
|
2064
|
-
}
|
|
2065
|
-
|
|
2066
|
-
.share__copy-link {
|
|
2067
|
-
position: relative;
|
|
2068
|
-
padding: 1rem 0.5rem 0;
|
|
2069
|
-
|
|
2070
|
-
margin-top: 16px;
|
|
2071
|
-
&::before {
|
|
2072
|
-
position: absolute;
|
|
2073
|
-
top: 0;
|
|
2074
|
-
left: 0;
|
|
2075
|
-
width: calc(100% + 2rem);
|
|
2076
|
-
border-top: 1px solid ${U.colors.neutral100};
|
|
2077
|
-
margin-left: -1rem;
|
|
2078
|
-
content: '';
|
|
2079
|
-
}
|
|
2080
|
-
.__label {
|
|
2081
|
-
margin-bottom: 8px;
|
|
2082
|
-
font-size: 11px;
|
|
2083
|
-
font-weight: 400;
|
|
2084
|
-
line-height: 17px;
|
|
2085
|
-
text-align: left;
|
|
2086
|
-
}
|
|
2087
|
-
|
|
2088
|
-
.__input-group {
|
|
2089
|
-
position: relative;
|
|
2090
|
-
overflow: hidden;
|
|
2091
|
-
width: 100%;
|
|
2092
|
-
height: 40px;
|
|
2093
|
-
border: 1px solid ${U.colors.gray200};
|
|
2094
|
-
background: #fff;
|
|
2095
|
-
border-radius: ${U.borderRadius};
|
|
2096
|
-
|
|
2097
|
-
& > input {
|
|
2098
|
-
width: 100%;
|
|
2099
|
-
height: 100%;
|
|
2100
|
-
padding: 0 16px;
|
|
2101
|
-
border: none;
|
|
2102
|
-
background: transparent;
|
|
2103
|
-
color: ${U.colors.gray800};
|
|
2104
|
-
|
|
2105
|
-
&:focus {
|
|
2106
|
-
outline: none;
|
|
2107
|
-
}
|
|
2108
|
-
}
|
|
2109
|
-
|
|
2110
|
-
.__copy {
|
|
2111
|
-
position: absolute;
|
|
2112
|
-
top: 0;
|
|
2113
|
-
right: 0;
|
|
2114
|
-
width: 71px;
|
|
2115
|
-
height: 100%;
|
|
2116
|
-
padding-left: 12px;
|
|
2117
|
-
background: linear-gradient(
|
|
2118
|
-
90deg,
|
|
2119
|
-
rgba(255, 255, 255, 0.1) 0%,
|
|
2120
|
-
#fff 17%,
|
|
2121
|
-
#fff 100%
|
|
2122
|
-
);
|
|
2123
|
-
color: ${U.colors.primaryBase};
|
|
2124
|
-
cursor: pointer;
|
|
2125
|
-
font-size: 14px;
|
|
2126
|
-
font-weight: 400;
|
|
2127
|
-
}
|
|
2128
|
-
}
|
|
2129
|
-
}
|
|
2130
|
-
|
|
2131
|
-
&[data-is-marrybaby='true'] {
|
|
2132
|
-
${O.mbDown} {
|
|
2133
|
-
padding: 0.5rem;
|
|
2134
|
-
}
|
|
2135
|
-
.share__social {
|
|
2136
|
-
justify-content: space-between;
|
|
2137
|
-
& > a {
|
|
2138
|
-
display: flex;
|
|
2139
|
-
flex-direction: column;
|
|
2140
|
-
align-items: center;
|
|
2141
|
-
justify-content: center;
|
|
2142
|
-
text-align: center;
|
|
2143
|
-
${O.mbDown} {
|
|
2144
|
-
margin: 0;
|
|
2145
|
-
}
|
|
2146
|
-
& > img {
|
|
2147
|
-
margin-bottom: 0.8rem;
|
|
2148
|
-
}
|
|
2149
|
-
.__label {
|
|
2150
|
-
display: initial;
|
|
2151
|
-
}
|
|
2152
|
-
}
|
|
2153
|
-
}
|
|
2154
|
-
.share__copy-link {
|
|
2155
|
-
padding: 0;
|
|
2156
|
-
&::before {
|
|
2157
|
-
display: none;
|
|
2158
|
-
}
|
|
2159
|
-
.__label {
|
|
2160
|
-
display: none;
|
|
2161
|
-
}
|
|
2162
|
-
.__input-group {
|
|
2163
|
-
height: unset;
|
|
2164
|
-
background-color: rgb(243, 243, 243);
|
|
2165
|
-
border-radius: 16px;
|
|
2166
|
-
& > input {
|
|
2167
|
-
padding: 1rem;
|
|
2168
|
-
}
|
|
2169
|
-
.__copy {
|
|
2170
|
-
background: linear-gradient(
|
|
2171
|
-
90deg,
|
|
2172
|
-
rgba(255, 255, 255, 0.1) 0%,
|
|
2173
|
-
#f3f3f3 17%,
|
|
2174
|
-
#f3f3f3 100%
|
|
2175
|
-
);
|
|
2176
|
-
}
|
|
2177
|
-
}
|
|
2178
|
-
}
|
|
2179
|
-
}
|
|
2180
|
-
`;const Ja=({className:e,trackingCategory:o="Together",style:i,shareUrl:r,title:d})=>{const{action:{pushNotifications:c},data:{env:{isMarryBaby:p}}}=n(G),{t:m}=x(),u=l(null),[g,h]=a(!1),v=()=>{if(!(null==u?void 0:u.current))return;const e=document.createElement("textarea");e.value=u.current.value,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),u.current.focus(),h(!0),c({title:"",message:m("share.linkCopied"),type:"success"})};s((()=>{v(),navigator.share&&navigator.share({title:d||"Read This Post",url:r}).then((()=>{c({title:"",message:m("share.linkShared"),type:"success"})})).catch(console.error)}),[]);const b=((e,t)=>t?[{icon:"data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M35 9.58333V30.4167C35 32.9417 32.9417 35 30.4167 35H25.8333V23.3333H28.85C29.275 23.3333 29.6333 23.0167 29.6833 22.6L29.9917 20.1C30.025 19.8667 29.95 19.625 29.7917 19.45C29.6333 19.2667 29.4083 19.1667 29.1667 19.1667H25.8333V16.25C25.8333 15.3333 26.5833 14.5833 27.5 14.5833H29.1667C29.625 14.5833 30 14.2083 30 13.75V10.9333C30 10.5083 29.6667 10.15 29.2417 10.1083C29.1917 10.1 28.0167 10 26.525 10C22.8583 10 20.8333 12.1833 20.8333 16.1417V19.1667H17.5C17.0417 19.1667 16.6667 19.5417 16.6667 20V22.5C16.6667 22.9583 17.0417 23.3333 17.5 23.3333H20.8333V35H9.58333C7.05833 35 5 32.9417 5 30.4167V9.58333C5 7.05833 7.05833 5 9.58333 5H30.4167C32.9417 5 35 7.05833 35 9.58333Z' fill='url(%23paint0_linear)'/%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='20' y1='5' x2='20' y2='35' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%234DABF7'/%3e%3cstop offset='1' stop-color='%232668DA'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",name:"Facebook",href:`https://www.facebook.com/sharer.php?u=${e}`},{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAACXBIW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CqVxhWQ2CLY3W8OEq7abmowzFZBloz2/sowzrEagIoL+oZe0dGAYnY2ENc+Ug3QZeyIGcPsornQ4ODg4ODg4ODg4ODg4ODmfzfz5w/2ZW/n9aAAAAAElFTkSuQmCC",name:"Zalo",href:`https://sp.zalo.me/share?href=${e}`},{icon:"data:image/svg+xml,%3csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M35 30.8333C35 33.135 33.1342 35 30.8333 35H9.16667C6.865 35 5 33.135 5 30.8333V9.16667C5 6.865 6.865 5 9.16667 5H30.8333C33.1342 5 35 6.865 35 9.16667V30.8333Z' fill='%2303A9F4'/%3e%3cpath d='M30 14.2667C29.265 14.5925 28.3342 14.8983 27.5 15C28.3483 14.4967 29.6942 13.4483 30 12.5C29.2075 12.9658 27.7742 13.4633 26.8392 13.6433C26.0925 12.8517 25.0275 12.5 23.8475 12.5C21.5808 12.5 20 14.4208 20 16.6667V18.3333C16.6667 18.3333 13.4167 15.7942 11.3942 13.3333C11.0383 13.9342 10.8383 14.6375 10.8383 15.3808C10.8383 16.8967 12.2308 18.435 13.3333 19.1667C12.6608 19.1458 11.3875 18.6325 10.8333 18.3333C10.8333 18.3467 10.8333 18.3633 10.8333 18.3808C10.8333 20.3533 12.2175 21.6925 14.0933 22.0658C13.7508 22.16 13.3333 22.5 11.7267 22.5C12.2483 24.1125 14.8708 24.965 16.6667 25C15.2617 26.0892 12.7567 26.6667 10.8333 26.6667C10.5008 26.6667 10.3208 26.685 10 26.6475C11.815 27.7975 14.35 28.3333 16.6667 28.3333C24.2142 28.3333 28.3333 22.5683 28.3333 17.1917C28.3333 17.015 28.3275 16.4233 28.3183 16.25C29.125 15.6817 29.4517 15.0867 30 14.2667Z' fill='white'/%3e%3c/svg%3e",name:"Twitter",href:`https://twitter.com/intent/tweet?url=${e}`},{icon:"data:image/svg+xml,%3csvg width='41' height='40' viewBox='0 0 41 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M35.5 30.8333C35.5 33.135 33.635 35 31.3333 35H9.66667C7.36583 35 5.5 33.135 5.5 30.8333V9.16667C5.5 6.865 7.36583 5 9.66667 5H31.3333C33.635 5 35.5 6.865 35.5 9.16667V30.8333Z' fill='%230078D4'/%3e%3cpath opacity='0.05' d='M25.4993 30.8327V22.4168C25.4993 21.0093 24.8168 20.1685 23.6727 20.1685C22.9935 20.1685 22.4943 20.551 22.1902 21.3052C22.176 21.3585 22.156 21.576 22.1643 22.2335L22.166 30.8327H16.3327V14.9993H22.166V15.8835C23.0177 15.296 24.0618 14.9993 25.281 14.9993C29.0702 14.9993 31.3318 17.5768 31.3318 21.8943L31.3327 30.8327H25.4993ZM9.66602 30.8327V14.9993H12.5468C10.8777 14.9993 9.66602 13.7727 9.66602 12.0818C9.66602 10.3927 10.8977 9.16602 12.5943 9.16602C14.271 9.16602 15.4652 10.3585 15.4993 12.0652C15.4993 13.7685 14.2668 14.9993 12.5702 14.9993H15.4993V30.8327H9.66602Z' fill='black'/%3e%3cpath opacity='0.07' d='M25.9173 30.4173V22.4182C25.9173 20.774 25.0582 19.7532 23.674 19.7532C22.5948 19.7532 22.0615 20.5132 21.8048 21.1507C21.7365 21.3165 21.7457 21.9748 21.749 22.2557L21.7507 30.4173H16.7507V15.4173H21.7507V16.7823C22.4132 16.0965 23.4798 15.4173 25.2823 15.4173C28.8098 15.4173 30.9165 17.839 30.9165 21.8957L30.9173 30.4173H25.9173ZM10.084 30.4173V15.4173H15.084V30.4173H10.084ZM12.5482 14.584C11.1207 14.584 10.084 13.5323 10.084 12.0832C10.084 10.6348 11.1407 9.58398 12.5957 9.58398C14.0323 9.58398 15.0548 10.6082 15.084 12.0748C15.084 13.5323 14.0273 14.584 12.5715 14.584H12.5482Z' fill='black'/%3e%3cpath d='M10.5 15.8333H14.6667V30H10.5V15.8333ZM12.5708 14.1667H12.5475C11.3042 14.1667 10.5 13.24 10.5 12.0825C10.5 10.9 11.3292 10 12.595 10C13.8625 10 14.6433 10.9 14.6667 12.0825C14.6667 13.2392 13.8625 14.1667 12.5708 14.1667ZM30.5 30H26.3333V22.4175C26.3333 20.5858 25.3125 19.3358 23.6733 19.3358C22.4225 19.3358 21.7458 20.1792 21.4175 20.9942C21.2975 21.2858 21.3333 22.0925 21.3333 22.5V30H17.1667V15.8333H21.3333V18.0133C21.9342 17.0833 22.875 15.8333 25.2817 15.8333C28.2633 15.8333 30.4992 17.7083 30.4992 21.895L30.5 30Z' fill='white'/%3e%3c/svg%3e",name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${e}`},{icon:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='none'%3e%3cpath fill='url(%23a)' d='M36.667 19.584c0 8.975-7.458 16.25-16.666 16.25a16.97 16.97 0 0 1-3.987-.47 1.68 1.68 0 0 0-1.15.12l-3.647 1.825a1.417 1.417 0 0 1-2.05-1.267v-3.355c0-.479-.214-.925-.567-1.249-3.245-2.966-5.266-7.179-5.266-11.854 0-8.975 7.458-16.25 16.667-16.25 9.208 0 16.666 7.275 16.666 16.25Z'/%3e%3cpath fill='black' d='M29.16 14.41c-.357 0-.703.118-1 .343l-4.745 3.512a.594.594 0 0 1-.363.125.565.565 0 0 1-.341-.113l-3.31-2.492a3.821 3.821 0 0 0-2.298-.765c-1.313 0-2.52.66-3.23 1.764l-1.009 1.575-3.433 5.58a1.633 1.633 0 0 0-.06 1.678c.299.545.862.883 1.47.883.357 0 .703-.118 1-.342l4.746-3.513a.594.594 0 0 1 .362-.125c.125 0 .243.04.342.114l3.31 2.491a3.819 3.819 0 0 0 2.297.765c1.314 0 2.521-.659 3.23-1.763l1.01-1.576 3.433-5.58a1.633 1.633 0 0 0 .059-1.678 1.682 1.682 0 0 0-1.47-.883Z' opacity='.05'/%3e%3cpath fill='black' d='M29.161 14.826c-.266 0-.525.09-.75.258L23.665 18.6c-.18.136-.39.207-.61.207a.98.98 0 0 1-.591-.197l-3.311-2.492a3.405 3.405 0 0 0-2.048-.68c-1.17 0-2.246.587-2.879 1.572l-1.008 1.575-3.43 5.574c-.247.387-.266.86-.048 1.259.222.405.656.667 1.104.667.266 0 .525-.09.75-.259l4.747-3.515c.18-.136.39-.206.61-.206a.98.98 0 0 1 .592.196l3.31 2.493c.6.446 1.307.68 2.048.68 1.171 0 2.247-.587 2.88-1.572l1.008-1.576 3.429-5.573c.247-.387.267-.86.048-1.26a1.281 1.281 0 0 0-1.104-.666Z' opacity='.07'/%3e%3cpath fill='white' d='m28.663 15.417-4.75 3.516c-.509.384-1.2.384-1.7.009L18.9 16.449a3.004 3.004 0 0 0-4.325.784l-1.008 1.575-3.425 5.566c-.5.784.458 1.675 1.2 1.117l4.75-3.517a1.412 1.412 0 0 1 1.7-.008l3.311 2.492a3.004 3.004 0 0 0 4.325-.783l1.009-1.575 3.425-5.567c.5-.783-.459-1.675-1.2-1.116Z'/%3e%3cdefs%3e%3cradialGradient id='a' cx='0' cy='0' r='1' gradientTransform='translate(9.24 35.816) scale(39.6767)' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%231292FF'/%3e%3cstop offset='.079' stop-color='%232982FF'/%3e%3cstop offset='.23' stop-color='%234E69FF'/%3e%3cstop offset='.351' stop-color='%236559FF'/%3e%3cstop offset='.428' stop-color='%236D53FF'/%3e%3cstop offset='.754' stop-color='%23DF47AA'/%3e%3cstop offset='.946' stop-color='%23FF6257'/%3e%3c/radialGradient%3e%3c/defs%3e%3c/svg%3e",name:"Messenger",href:`https://www.facebook.com/sharer.php?u=${e}`}]:[{icon:"data:image/svg+xml,%3csvg width='33' height='32' viewBox='0 0 33 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M30.7336 6.21933e-10H2.2536C1.28305 0.00703318 0.499975 0.795821 0.5 1.7664V30.2464C0.507033 31.217 1.29582 32 2.2664 32H17.5944V19.6256H13.4344V14.7808H17.5944V11.216C17.5944 7.0848 20.1192 4.832 23.8056 4.832C25.0498 4.8267 26.2933 4.8908 27.5304 5.024V9.344H24.9896C22.9832 9.344 22.5928 10.304 22.5928 11.696V14.7808H27.38L26.74 19.6256H22.58V32H30.7336C31.7092 32 32.5 31.2092 32.5 30.2336V1.7536C32.493 0.783047 31.7042 -2.54822e-05 30.7336 6.21933e-10Z' fill='%233B5998'/%3e%3c/svg%3e",name:"Facebook",href:`https://www.facebook.com/sharer.php?u=${e}`},{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKoAAACqCAMAAAAKqCSwAAAC/VBMVEUAAAD////3+fwAcrIAgMcAcrH//v7+//8AcbEAf8b9/v37/P0BcbAAfsT9/f36/P38/f4Af8UDcrEBfMD//v/5+/0CcbDz+foAcrAAfcb2+/wFcrABfcP9/f73/P0BfMIAfsMHca/y+Pvr9fgEcq/5+/wBc7Hg8PUFc7H6/f74+/sAc7T1+vvv+PoIc7ACcrAQda/2+vzM4+0Kc68Lcq37/v3m8vfi7/UAd7oAdbYHca39///v9/loqs0QdrAWd68Ae74Ber0Adrj6/fu01OQEf8UifrMKdLEMdK/x+Prt9vjp8/fe7fMFfsMAeLsPc64CcK3I4Ot7s9EBe8AcerD4/f3f7/Xc7PMTe7UUd7AAebwXebEHcq7x+vzt9/rY6/TR5u+51+apzOCDttJ/tNFdn8UTg8MMgcM1irs6i7kmgLQJbqnz+vzB3eqJutQeh8JLlL5Ckb0zhrbh8fbW6fHU5/DF3+ujzOKpzuGmzOGeyN2cxtxlpMdhosdYncPr9vnj8fbL4ey83Oq82eeRv9eFuNR6sc5yrcxVmsIthrgsg7UOcqvl8fa11uan0OWsz+KWwtmOvdZ8stBwqspOl8EJfsFFkr8yir0/jrsZfLUffLIaerEDbqzl9PjP5e/N5O6s0+d7vOGiyt+kyd2YxdtUo892rs1pp8kYhcTn9PjZ6vGy0uOHuNJlqMxpqss8lsogicRRlr84jbxCjroFdLImfrH0+/zA2+iv0eKYw9pkrNRvrM0IgcZBkb8ogrYgf7YMdrIcd60Vdaz8///S6fK52OmQw9+Au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UK/d/7x4S01WCpU060TgqwZF/VvrcfHoKE1WasYaoILUGrAa0FmvaXKhOl5t8MOboGcNMysqBDANZddbp3W93QK978UW5uRQpUGj1a1rWi+MoMTRfg3HW3C8ArAOv7veuvX3tdP3AYlH4stNjJzV8hFNoUb8ehtLo3+3VR/pSH5plJG+iks80l9wZnSwJOggsBxjiQUUKC2toV9xiOvi/A/lszrbhFX1MAAAAABJRU5ErkJggg==",name:"Zalo",href:`https://sp.zalo.me/share?href=${e}`},{icon:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='33' height='32' fill='none'%3e%3crect width='32' height='32' x='.5' fill='%231FA1F3' rx='4'/%3e%3cpath fill='white' fill-rule='evenodd' d='m16.23 13.235.04.634-.673-.077c-2.455-.298-4.6-1.308-6.42-3.004l-.89-.842-.23.622c-.486 1.385-.175 2.848.836 3.832.54.544.418.621-.512.298-.324-.104-.607-.181-.634-.143-.095.091.229 1.27.485 1.735.35.648 1.066 1.282 1.848 1.657l.66.298-.781.013c-.756 0-.783.013-.702.285.27.841 1.335 1.735 2.523 2.123l.836.272-.729.414a7.893 7.893 0 0 1-3.614.958c-.607.013-1.106.065-1.106.104 0 .13 1.645.854 2.603 1.14 2.873.84 6.285.478 8.848-.959 1.82-1.023 3.641-3.055 4.491-5.023.459-1.049.917-2.965.917-3.884 0-.596.04-.673.796-1.385.445-.415.863-.868.944-.997.135-.246.122-.246-.566-.026-1.147.388-1.309.337-.742-.246.418-.414.917-1.165.917-1.385 0-.04-.202.026-.432.142-.242.13-.782.324-1.187.44l-.728.22-.66-.427c-.365-.233-.877-.492-1.147-.57-.688-.18-1.74-.155-2.36.052-1.687.583-2.752 2.085-2.63 3.729Z' clip-rule='evenodd'/%3e%3c/svg%3e",name:"Twitter",href:`https://twitter.com/intent/tweet?url=${e}`},{icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAACqCAMAAADlak+OAAAC+lBMVEUAAAAqtkD3+fz5+fn////8/P39/v4ptT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Z3oHLTZ5QvAtm7bK7X0XtdgY3C2QtSArHYJ/FuTojMpCeHkWoowC6aOpEQd1k0aKqKGwQqPGJFZ43EZ63xgmtNhBmrxPqhMqjgyFU+oAVlxxfolx72B8lymZbVH42pT0TTFrJ+2BDIfF81EqA07k2aBxVBDZD3qC55VUaoV9c6gqmgFkWWTrFhQqj29kmIWYY0LFX1qKkgaTs8ULNcioawQqCADZ2/SbSqiCOM5AlzFHI/0iirNq9woI6Vy7c7AbBqXpBhqSKy7cIJ1JhLP1U47gws7UMr5yFUsZofbnUwhXYkQmPxgcKnBGYUVgRBJaPVHYzCLLundLX783PuYhokEgZ4PoD4No4ycDx05uEm2bCjNKvBasipIEgFeB5XhJSElV9odu7qp2UMaJuvjo9VWztKdieQUKHJGqCiuUwuFAvBeDOp/z9oHRcuyisVhXz8f9SZgBjc1u6SIGl6uL+v1cVXTkJO2bqPN0NyGdG64Di8Aa5p2AlKUE1uabcaqAe+Cmfq4h+STYYg0EgSlnJ62dMibZEHipWA7iVXjg/Qe92XA2Dc4ERSEuC4vJUaBl5pdN1r9sM7o+4jBwvBzOJGW4kZwuqHAi240h84K3y6OdAsohgui0w1FvVfuoH0f5/X+tAEwTh/dNCkjugP2/rze//XJzff5urKCQnMA/a/uDE4ACGEgyAV8Swryew1YwKUGC7D2AxEuiZxfN9NAliXvHTMCvN+qHbcOUsy4MqmHxSObrLd+AjSKHdhm5HHl7IwLhFtsoQ8vL2hYYXXUNLfrUcPWVQqQMMOW6mr1xVKTCwMhDbLDQurisJiQ4+n94C90WdwggZwrgVw2TryTCBeOIzQaUWMojTiOKyyELW4k5ShuO+IgzsBNp97FeC7xv4vxBUzFmCaxFDSrAAAAAElFTkSuQmCC",name:"WhatsApp",href:`https://wa.me/?text=${e}`},{icon:"data:image/svg+xml,%3csvg width='33' height='32' viewBox='0 0 33 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect x='0.5' width='32' height='32' rx='4' fill='%230077B5'/%3e%3cpath fill-rule='evenodd' clip-rule='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'/%3e%3c/svg%3e",name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${e}`}])(r||"",p);return t.createElement($a,{"data-is-marrybaby":p,className:e,style:i},t.createElement("div",{className:"share__social"},b.map(((e,a)=>t.createElement(Ya,{key:a,"data-event-category":o,"data-event-action":`Social Share - ${e.name}`,"data-event-label":r,href:e.href,target:"_blank",rel:"noreferrer"},t.createElement(N,{alt:`share to ${e}`,src:e.icon}),t.createElement(y,{className:"__label",size:"label2",weight:"regular"},e.name))))),t.createElement("div",{className:"share__copy-link"},t.createElement(y,{className:"__label",color:U.colors.gray500,size:"p4",weight:"regular"},m("orCopyLink")),t.createElement("div",{className:"__input-group"},t.createElement("input",{ref:u,type:"text",value:r,readOnly:!0,onFocus:e=>e.target.select()}),t.createElement("button",{className:"__copy",onClick:()=>v()},p?t.createElement(N,{alt:"copy share link",src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' xmlns:v='https://vecta.io/nano'%3e%3cg fill='%233e3f58'%3e%3cpath d='M19.726 8.537l-.632.151.632-.151zm0 4.65l-.632-.151.632.151zm-9.097-8.918l.146.633-.146-.633zm4.744 0l-.146.633.146-.633zm1.303 11.983a.65.65 0 1 0 .649 1.126l-.649-1.126zM6.041 7.23a.65.65 0 0 0 1.182.541L6.041 7.23zm13.053 1.459c.342 1.43.342 2.918 0 4.348l1.264.303c.39-1.629.39-3.324 0-4.953l-1.264.303zm-8.32-3.786a9.94 9.94 0 0 1 4.452 0l.291-1.267a11.24 11.24 0 0 0-5.035 0l.291 1.267zm4.452 0c1.925.443 3.419 1.913 3.867 3.786l1.264-.303c-.566-2.363-2.445-4.199-4.84-4.75l-.291 1.267zm2.099 12.476c1.505-.868 2.62-2.314 3.033-4.04l-1.264-.303c-.327 1.368-1.213 2.521-2.418 3.217l.649 1.126zM10.482 3.636c-1.988.457-3.62 1.799-4.442 3.594l1.182.541c.652-1.425 1.954-2.501 3.551-2.868l-.291-1.267z'/%3e%3cpath d='M3.274 16.187l-.632.151.632-.151zm0-4.65l-.632-.151.632.151zm13.451 0l-.632.151.632-.151zm0 4.65l.632.151-.632-.151zm-4.354 4.268l-.146-.633.146.633zm-4.744 0l-.146.634.146-.634zm0-13.186l.146.633-.146-.633zm4.744 0l-.146.633.146-.633zm-8.465 8.767c-.342-1.43-.342-2.918 0-4.348l-1.264-.303c-.39 1.629-.39 3.324 0 4.953l1.264-.303zm12.187-4.348c.342 1.43.342 2.918 0 4.348l1.264.303c.39-1.629.39-3.324 0-4.953l-1.264.303zm-3.867 8.133a9.94 9.94 0 0 1-4.452 0l-.291 1.267a11.24 11.24 0 0 0 5.035 0l-.291-1.267zM7.774 7.903a9.94 9.94 0 0 1 4.452 0l.291-1.267a11.24 11.24 0 0 0-5.035 0l.291 1.267zm0 11.919c-1.925-.443-3.419-1.913-3.867-3.786l-1.264.303c.565 2.363 2.445 4.199 4.84 4.75l.291-1.267zm4.744 1.267c2.395-.551 4.275-2.387 4.84-4.75l-1.264-.303c-.448 1.872-1.942 3.343-3.867 3.786l.291 1.267zm-.291-13.186c1.925.443 3.419 1.913 3.867 3.785l1.264-.303c-.566-2.363-2.445-4.199-4.84-4.75l-.291 1.267zM7.482 6.636c-2.395.551-4.275 2.387-4.84 4.75l1.264.303c.448-1.872 1.942-3.343 3.867-3.785l-.291-1.267zM12.268 21l.083-2.523c.079-.573.221-.867.433-1.075l-.91-.928c-.499.489-.712 1.104-.811 1.827-.096.702-.095 1.596-.095 2.699h1.3zm4.205-5.409c-1.126 0-2.035-.001-2.748.093-.731.096-1.354.303-1.85.79l.91.928c.214-.21.519-.352 1.11-.43.609-.08 1.416-.082 2.579-.082v-1.3z'/%3e%3c/g%3e%3cpath d='M7 11h3m-3 3h5' stroke='%233e3f58' stroke-width='1.3' stroke-linecap='round'/%3e%3c/svg%3e"}):m(g?"copied":"copy")))))},_a=({trackingCategory:e,className:o,style:i,url:r,avatar:l,text:d,onClose:c})=>{const{data:{env:{isMarryBaby:p}}}=n(G),{t:m}=x(),[u,h]=a(!1);return s((()=>(R(!0),setTimeout((()=>h(!0)),0),()=>R(!1))),[]),t.createElement(g,null,t.createElement(eo,{"data-is-marrybaby":p,className:o,style:i},t.createElement(Xa,{className:"share-popup",isOpen:u,onClose:c,heading:m("bottomBar.share")},p?t.createElement(y,{className:"share-mb-text",size:"sm"},m("article.shareOn")):t.createElement("div",{className:"custom-share__header"},l&&t.createElement("div",{className:"custom-share__header-image"},t.createElement("img",{src:l,loading:"lazy"})),t.createElement("div",{className:"custom-share__header-info"},t.createElement(Y,{tag:"h4"},d),t.createElement(y,{className:"desc",size:"md"},r))),u&&t.createElement(Ja,{trackingCategory:e,shareUrl:r||("undefined"!=typeof window?window.location.href:""),title:d}))))},eo=M.div`
|
|
2181
|
-
.share-popup {
|
|
2182
|
-
> div:first-child {
|
|
2183
|
-
height: unset;
|
|
2184
|
-
}
|
|
2185
|
-
.close-button {
|
|
2186
|
-
display: none;
|
|
2187
|
-
}
|
|
2188
|
-
.popup-content .header {
|
|
2189
|
-
display: none;
|
|
2190
|
-
}
|
|
2191
|
-
}
|
|
2192
|
-
.custom-share__header {
|
|
2193
|
-
display: flex;
|
|
2194
|
-
flex-wrap: no-wrap;
|
|
2195
|
-
align-items: center;
|
|
2196
|
-
padding: 1rem;
|
|
2197
|
-
border-bottom: 1px solid ${U.colors.neutral100};
|
|
2198
|
-
margin-bottom: 16px;
|
|
2199
|
-
|
|
2200
|
-
.custom-share__header-image {
|
|
2201
|
-
width: 38px;
|
|
2202
|
-
height: 38px;
|
|
2203
|
-
flex-shrink: 0;
|
|
2204
|
-
& > img {
|
|
2205
|
-
width: 100%;
|
|
2206
|
-
height: 100%;
|
|
2207
|
-
object-fit: cover;
|
|
2208
|
-
object-position: center;
|
|
2209
|
-
}
|
|
2210
|
-
}
|
|
2211
|
-
|
|
2212
|
-
.custom-share__header-info {
|
|
2213
|
-
flex: 1;
|
|
2214
|
-
padding: 0 8px;
|
|
2215
|
-
word-break: break-word;
|
|
2216
|
-
|
|
2217
|
-
[data-tag='h4'] {
|
|
2218
|
-
margin-bottom: 8px;
|
|
2219
|
-
font-size: 14px;
|
|
2220
|
-
font-weight: bold;
|
|
2221
|
-
line-height: 14px;
|
|
2222
|
-
}
|
|
2223
|
-
|
|
2224
|
-
[data-size='md'] {
|
|
2225
|
-
color: #a5a5a5;
|
|
2226
|
-
font-size: 14px;
|
|
2227
|
-
line-height: 14px;
|
|
2228
|
-
}
|
|
2229
|
-
}
|
|
2230
|
-
}
|
|
2231
|
-
|
|
2232
|
-
&[data-is-marrybaby='true'] {
|
|
2233
|
-
.share-popup {
|
|
2234
|
-
> div:first-child {
|
|
2235
|
-
overflow: hidden;
|
|
2236
|
-
border-radius: 1rem;
|
|
2237
|
-
&[data-open='true'] {
|
|
2238
|
-
${O.mbDown} {
|
|
2239
|
-
max-width: unset;
|
|
2240
|
-
width: 100%;
|
|
2241
|
-
top: 100%;
|
|
2242
|
-
transform: translate(-50%, -100%);
|
|
2243
|
-
border-bottom-left-radius: 0;
|
|
2244
|
-
border-bottom-right-radius: 0;
|
|
2245
|
-
}
|
|
2246
|
-
}
|
|
2247
|
-
}
|
|
2248
|
-
.close-button {
|
|
2249
|
-
display: block;
|
|
2250
|
-
}
|
|
2251
|
-
.popup-content {
|
|
2252
|
-
.header {
|
|
2253
|
-
display: block;
|
|
2254
|
-
padding: 1rem;
|
|
2255
|
-
background-color: rgb(243, 243, 243);
|
|
2256
|
-
}
|
|
2257
|
-
.content {
|
|
2258
|
-
padding-bottom: 1rem;
|
|
2259
|
-
}
|
|
2260
|
-
}
|
|
2261
|
-
.share-mb-text {
|
|
2262
|
-
margin: 1rem 1rem 0.5rem;
|
|
2263
|
-
}
|
|
2264
|
-
}
|
|
2265
|
-
}
|
|
2266
|
-
`,to=M.div`
|
|
2267
|
-
padding: 0 8px;
|
|
2268
|
-
margin-top: 18px;
|
|
2269
|
-
|
|
2270
|
-
.report-list {
|
|
2271
|
-
margin-bottom: 18px;
|
|
2272
|
-
|
|
2273
|
-
.report-item {
|
|
2274
|
-
display: flex;
|
|
2275
|
-
align-items: center;
|
|
2276
|
-
margin-bottom: 10px;
|
|
2277
|
-
font-weight: 600;
|
|
2278
|
-
|
|
2279
|
-
& > img {
|
|
2280
|
-
width: 12px;
|
|
2281
|
-
height: 12px;
|
|
2282
|
-
margin-right: 8px;
|
|
2283
|
-
}
|
|
2284
|
-
|
|
2285
|
-
.__label {
|
|
2286
|
-
font-size: 14px;
|
|
2287
|
-
}
|
|
2288
|
-
}
|
|
2289
|
-
}
|
|
2290
|
-
|
|
2291
|
-
.report-submit {
|
|
2292
|
-
width: 100%;
|
|
2293
|
-
}
|
|
2294
|
-
&[data-is-marrybaby='true'] {
|
|
2295
|
-
padding: 0 1rem 1rem;
|
|
2296
|
-
}
|
|
2297
|
-
`,ao=M.div`
|
|
2298
|
-
padding: 0.5rem 1rem 1rem;
|
|
2299
|
-
line-height: 1.5;
|
|
2300
|
-
word-break: break-word;
|
|
2301
|
-
.post-content-replying {
|
|
2302
|
-
margin-right: 5px;
|
|
2303
|
-
cursor: pointer;
|
|
2304
|
-
display: inline-block;
|
|
2305
|
-
&.tag-only {
|
|
2306
|
-
margin-right: 0;
|
|
2307
|
-
}
|
|
2308
|
-
}
|
|
2309
|
-
.post-content {
|
|
2310
|
-
display: inline;
|
|
2311
|
-
white-space: pre-wrap;
|
|
2312
|
-
/* > *:first-child, */
|
|
2313
|
-
> mention:first-child ~ * {
|
|
2314
|
-
&:not(ul),
|
|
2315
|
-
&:not(ol) {
|
|
2316
|
-
display: inline-block;
|
|
2317
|
-
}
|
|
2318
|
-
}
|
|
2319
|
-
> mention:first-child {
|
|
2320
|
-
margin-right: 5px;
|
|
2321
|
-
}
|
|
2322
|
-
&.has-see-more {
|
|
2323
|
-
*:last-child {
|
|
2324
|
-
&:not(ul),
|
|
2325
|
-
&:not(ol) {
|
|
2326
|
-
display: inline;
|
|
2327
|
-
}
|
|
2328
|
-
}
|
|
2329
|
-
}
|
|
2330
|
-
img {
|
|
2331
|
-
width: 100%;
|
|
2332
|
-
height: unset;
|
|
2333
|
-
}
|
|
2334
|
-
ul,
|
|
2335
|
-
ol {
|
|
2336
|
-
list-style-position: inside;
|
|
2337
|
-
padding-left: 1rem;
|
|
2338
|
-
display: block;
|
|
2339
|
-
}
|
|
2340
|
-
ol {
|
|
2341
|
-
list-style-type: decimal;
|
|
2342
|
-
}
|
|
2343
|
-
ul {
|
|
2344
|
-
list-style-type: disc;
|
|
2345
|
-
}
|
|
2346
|
-
mention {
|
|
2347
|
-
color: ${e=>e.mentionColor||"#1890ff"};
|
|
2348
|
-
padding-right: 4px;
|
|
2349
|
-
:hover {
|
|
2350
|
-
text-decoration: underline;
|
|
2351
|
-
}
|
|
2352
|
-
}
|
|
2353
|
-
}
|
|
2354
|
-
`;var oo=c((e=>({root:{mention:{color:e.fn.primaryColor()},a:{"&,&:visited,&:focus":{color:e.fn.primaryColor()}},".create-post-link":{display:"inline",color:e.fn.primaryColor(),cursor:"pointer"}}})));const io=e=>{var{trackingCategory:i,url:r,className:d,style:c,replyingTo:p,mentionedUser:m,description:u,disableShortenContent:g,mentions:v=[],maxChars:f=1e3,hideShowAllBtn:w,styles:y,onClickCreatePostLink:E}=e,C=b(e,["trackingCategory","url","className","style","replyingTo","mentionedUser","description","disableShortenContent","mentions","maxChars","hideShowAllBtn","styles","onClickCreatePostLink"]);const{classes:k,theme:A}=oo(void 0,{name:"PostContent",styles:y}),[N,z]=a(!1),{t:T}=x(),{authActionWrapper:S}=Ue(),[L,V]=a(!1),P=xa(fa(u||"","display"),v),{action:{sanitizeFunction:F}}=n(G),j=o((()=>{const e=F(P||"");if(g||N)return{showContent:e,hasSeeMore:!1};const t=e.slice(0,f),a=f-27*((t.match(/<\/div>/g)||[]).length-1),o=(t||"").slice(0,a<40?40:a),i=F(o.replace(/(<|<\/)( +|[a-zA-Z]*)$/gi,"")),r=i.length<e.length-10;return{showContent:r?i:e,hasSeeMore:r}}),[g,N,P]),B=(null==m?void 0:m.name)||p,O="expert"===(null==m?void 0:m.role)&&!!(null==m?void 0:m.partnerId),R=l(null),M=e=>{e.preventDefault(),null==E||E()};return s((()=>{var e;return null===(e=null==R?void 0:R.current)||void 0===e||e.querySelectorAll("[data-create-post]").forEach((e=>{e.addEventListener("click",M,{passive:!0})})),()=>{var e;null===(e=null==R?void 0:R.current)||void 0===e||e.querySelectorAll("[data-create-post]").forEach((e=>{e.removeEventListener("click",M,!1)}))}}),[g,N,P]),t.createElement(t.Fragment,null,O&&t.createElement(qt,{isOpen:L,onClose:()=>V(!1),expertId:String(null==m?void 0:m.partnerId)}),t.createElement(ao,Object.assign({ref:R,className:`${k.root} ${d} no-replace-click`,style:c,mentionColor:A.fn.primaryColor()},C),B&&t.createElement(h,{onClick:()=>O&&V(!0),className:"post-content-replying"},"@",B),(null==u?void 0:u.startsWith("[mention+id="))&&t.createElement("span",{className:"post-content-replying tag-only",style:{color:A.fn.primaryColor()}},"@"),t.createElement("span",{dangerouslySetInnerHTML:{__html:j.showContent},className:"post-content "+(j.hasSeeMore?"has-see-more":"")}),j.hasSeeMore&&!N&&t.createElement("span",null,"... ",!w&&t.createElement(h,Object.assign({onClick:e=>{e.preventDefault(),e.stopPropagation(),S((()=>z(!0)))},className:"see-more-text"},i?{"data-event-category":i,"data-event-action":"See More Post Click","data-event-label":r}:{}),T("post.seeMore")))))},ro=M.div`
|
|
2355
|
-
padding: 14px 16px 14px 17px;
|
|
2356
|
-
background: ${e=>e.bgColor};
|
|
2357
|
-
border-left: 3px solid ${e=>e.highlight};
|
|
2358
|
-
|
|
2359
|
-
${O.mbUp} {
|
|
2360
|
-
padding: 12px 12px 12px 17px;
|
|
2361
|
-
}
|
|
2362
|
-
`,no=M.div`
|
|
2363
|
-
display: flex;
|
|
2364
|
-
`,lo=M.div`
|
|
2365
|
-
font-size: 12px;
|
|
2366
|
-
line-height: 18px;
|
|
2367
|
-
|
|
2368
|
-
&[data-has-icon='true'] {
|
|
2369
|
-
margin-left: 10px;
|
|
2370
|
-
}
|
|
2371
|
-
`,so=M.div`
|
|
2372
|
-
flex-shrink: 0;
|
|
2373
|
-
`,co=M.div`
|
|
2374
|
-
display: grid;
|
|
2375
|
-
grid-gap: 3px;
|
|
2376
|
-
grid-template-columns: 1fr 1fr;
|
|
2377
|
-
grid-template-rows: auto;
|
|
2378
|
-
|
|
2379
|
-
.img-wrapper {
|
|
2380
|
-
position: relative;
|
|
2381
|
-
overflow: hidden;
|
|
2382
|
-
width: 100%;
|
|
2383
|
-
padding-top: 56.25%;
|
|
2384
|
-
grid-column: auto;
|
|
2385
|
-
|
|
2386
|
-
& > img {
|
|
2387
|
-
cursor: zoom-in;
|
|
2388
|
-
}
|
|
2389
|
-
|
|
2390
|
-
.img-preview-blur {
|
|
2391
|
-
position: absolute;
|
|
2392
|
-
top: 50%;
|
|
2393
|
-
left: 50%;
|
|
2394
|
-
width: 110%;
|
|
2395
|
-
height: 110%;
|
|
2396
|
-
/* Add the blur effect */
|
|
2397
|
-
-webkit-filter: blur(8px);
|
|
2398
|
-
filter: blur(8px);
|
|
2399
|
-
object-fit: cover;
|
|
2400
|
-
object-position: center;
|
|
2401
|
-
opacity: 0.8;
|
|
2402
|
-
transform: translate(-50%, -50%);
|
|
2403
|
-
}
|
|
2404
|
-
.img-preview {
|
|
2405
|
-
position: absolute;
|
|
2406
|
-
top: 0;
|
|
2407
|
-
left: 0;
|
|
2408
|
-
width: 100%;
|
|
2409
|
-
height: 100%;
|
|
2410
|
-
object-fit: contain;
|
|
2411
|
-
object-position: center;
|
|
2412
|
-
}
|
|
2413
|
-
.img-more-overlay {
|
|
2414
|
-
position: absolute;
|
|
2415
|
-
top: 0;
|
|
2416
|
-
left: 0;
|
|
2417
|
-
display: flex;
|
|
2418
|
-
width: 100%;
|
|
2419
|
-
height: 100%;
|
|
2420
|
-
align-items: center;
|
|
2421
|
-
justify-content: center;
|
|
2422
|
-
background: rgba(0, 0, 0, 0.5);
|
|
2423
|
-
z-index: 4;
|
|
2424
|
-
}
|
|
2425
|
-
}
|
|
2426
|
-
&[data-image-count='1'] {
|
|
2427
|
-
.img-wrapper {
|
|
2428
|
-
/* padding-top: 100%; */
|
|
2429
|
-
grid-column: 1/3;
|
|
2430
|
-
}
|
|
2431
|
-
}
|
|
2432
|
-
&[data-image-count='2'] {
|
|
2433
|
-
.img-wrapper {
|
|
2434
|
-
/* padding-top: 100%; */
|
|
2435
|
-
}
|
|
2436
|
-
}
|
|
2437
|
-
&[data-image-count='3'] {
|
|
2438
|
-
.img-wrapper {
|
|
2439
|
-
&:first-child {
|
|
2440
|
-
grid-column: 1/3;
|
|
2441
|
-
}
|
|
2442
|
-
}
|
|
2443
|
-
}
|
|
2444
|
-
&[data-image-count='4'] {
|
|
2445
|
-
.img-wrapper {
|
|
2446
|
-
/* padding-top: 100%; */
|
|
2447
|
-
}
|
|
2448
|
-
}
|
|
2449
|
-
&[data-image-count='5'] {
|
|
2450
|
-
grid-template-columns: repeat(6, 1fr);
|
|
2451
|
-
.img-wrapper {
|
|
2452
|
-
/* padding-top: 100%; */
|
|
2453
|
-
grid-column: auto/ span 2;
|
|
2454
|
-
|
|
2455
|
-
&:first-child {
|
|
2456
|
-
padding-top: 56.25%;
|
|
2457
|
-
grid-column: 1/4;
|
|
2458
|
-
}
|
|
2459
|
-
&:nth-child(2) {
|
|
2460
|
-
padding-top: 56.25%;
|
|
2461
|
-
grid-column: 4/7;
|
|
2462
|
-
}
|
|
2463
|
-
}
|
|
2464
|
-
}
|
|
2465
|
-
|
|
2466
|
-
&[data-is-marrybaby='true'] {
|
|
2467
|
-
grid-gap: 8px;
|
|
2468
|
-
.img-wrapper {
|
|
2469
|
-
padding-top: 66.66%;
|
|
2470
|
-
border-radius: 1rem;
|
|
2471
|
-
.img-preview {
|
|
2472
|
-
object-fit: cover;
|
|
2473
|
-
}
|
|
2474
|
-
}
|
|
2475
|
-
&[data-image-count='3'] {
|
|
2476
|
-
grid-template-columns: 1fr 1fr 1fr;
|
|
2477
|
-
.img-wrapper {
|
|
2478
|
-
&:first-child {
|
|
2479
|
-
padding-top: 100%;
|
|
2480
|
-
grid-column: 1/3;
|
|
2481
|
-
grid-row: 1/3;
|
|
2482
|
-
}
|
|
2483
|
-
}
|
|
2484
|
-
}
|
|
2485
|
-
}
|
|
2486
|
-
`,po=M.div`
|
|
2487
|
-
position: fixed;
|
|
2488
|
-
z-index: 999;
|
|
2489
|
-
top: 0;
|
|
2490
|
-
left: 0;
|
|
2491
|
-
display: flex;
|
|
2492
|
-
overflow: hidden;
|
|
2493
|
-
width: 100vw;
|
|
2494
|
-
height: 100vh;
|
|
2495
|
-
flex-direction: column;
|
|
2496
|
-
background: white;
|
|
2497
|
-
opacity: 0;
|
|
2498
|
-
pointer-events: none;
|
|
2499
|
-
transition: opacity 0.2s linear;
|
|
2500
|
-
&[data-open='true'] {
|
|
2501
|
-
opacity: 1;
|
|
2502
|
-
pointer-events: auto;
|
|
2503
|
-
}
|
|
2504
|
-
.top-bar {
|
|
2505
|
-
position: relative;
|
|
2506
|
-
padding: 20px 40px;
|
|
2507
|
-
.icon-arrow-left {
|
|
2508
|
-
position: absolute;
|
|
2509
|
-
top: 50%;
|
|
2510
|
-
left: 20px;
|
|
2511
|
-
height: 24px;
|
|
2512
|
-
width: 24px;
|
|
2513
|
-
cursor: pointer;
|
|
2514
|
-
transform: translateY(-50%);
|
|
2515
|
-
}
|
|
2516
|
-
}
|
|
2517
|
-
.container {
|
|
2518
|
-
flex: 1;
|
|
2519
|
-
overflow-y: auto;
|
|
2520
|
-
.img-preview {
|
|
2521
|
-
width: 100%;
|
|
2522
|
-
min-width: 100%;
|
|
2523
|
-
margin-bottom: 0.5rem;
|
|
2524
|
-
cursor: pointer;
|
|
2525
|
-
max-height: 100%;
|
|
2526
|
-
object-fit: cover;
|
|
2527
|
-
}
|
|
2528
|
-
}
|
|
2529
|
-
`,mo=M((e=>{var{icon:a,bgColor:o=U.colors.yellow50,highlightColor:i=U.colors.yellow800,message:r}=e,n=b(e,["icon","bgColor","highlightColor","message"]);return t.createElement(ro,Object.assign({bgColor:o,highlight:i},n),t.createElement(no,null,a&&t.createElement(so,null,a),t.createElement(lo,{"data-has-icon":Boolean(a)},r)))}))`
|
|
2530
|
-
margin-bottom: 16px;
|
|
2531
|
-
`,uo=M.div`
|
|
2532
|
-
position: fixed;
|
|
2533
|
-
z-index: 999;
|
|
2534
|
-
top: 0;
|
|
2535
|
-
left: 0;
|
|
2536
|
-
display: flex;
|
|
2537
|
-
width: 100%;
|
|
2538
|
-
height: 100%;
|
|
2539
|
-
flex-direction: column;
|
|
2540
|
-
background: black;
|
|
2541
|
-
opacity: 0;
|
|
2542
|
-
pointer-events: none;
|
|
2543
|
-
transition: opacity 0.2s linear;
|
|
2544
|
-
&[data-open='true'] {
|
|
2545
|
-
opacity: 1;
|
|
2546
|
-
pointer-events: auto;
|
|
2547
|
-
}
|
|
2548
|
-
`,go=M.div`
|
|
2549
|
-
padding: 1rem;
|
|
2550
|
-
background: white;
|
|
2551
|
-
.icon-close {
|
|
2552
|
-
width: 26px;
|
|
2553
|
-
height: 26px;
|
|
2554
|
-
cursor: pointer;
|
|
2555
|
-
}
|
|
2556
|
-
`,ho=M.div`
|
|
2557
|
-
position: relative;
|
|
2558
|
-
flex: 1;
|
|
2559
|
-
overflow: hidden;
|
|
2560
|
-
> img {
|
|
2561
|
-
height: 100%;
|
|
2562
|
-
width: 100%;
|
|
2563
|
-
object-fit: contain;
|
|
2564
|
-
object-position: center;
|
|
2565
|
-
}
|
|
2566
|
-
`,vo=M.div`
|
|
2567
|
-
--inner-padding: max(16px, 20%);
|
|
2568
|
-
height: 100%;
|
|
2569
|
-
position: absolute;
|
|
2570
|
-
left: 0;
|
|
2571
|
-
padding: 8px;
|
|
2572
|
-
padding-right: var(--inner-padding);
|
|
2573
|
-
display: flex;
|
|
2574
|
-
align-items: center;
|
|
2575
|
-
top: 0;
|
|
2576
|
-
cursor: pointer;
|
|
2577
|
-
&[data-right] {
|
|
2578
|
-
padding-right: 8px;
|
|
2579
|
-
padding-left: var(--inner-padding);
|
|
2580
|
-
left: unset;
|
|
2581
|
-
right: 0;
|
|
2582
|
-
}
|
|
2583
|
-
&[data-disabled='true'] {
|
|
2584
|
-
cursor: not-allowed;
|
|
2585
|
-
}
|
|
2586
|
-
`,bo=M.div`
|
|
2587
|
-
border-radius: 50%;
|
|
2588
|
-
background: rgba(0, 0, 0, 0.3);
|
|
2589
|
-
display: flex;
|
|
2590
|
-
align-items: center;
|
|
2591
|
-
justify-content: center;
|
|
2592
|
-
padding: 4px;
|
|
2593
|
-
> img {
|
|
2594
|
-
width: 16px;
|
|
2595
|
-
height: 16px;
|
|
2596
|
-
&[data-disabled='true'] {
|
|
2597
|
-
opacity: 0.5;
|
|
2598
|
-
}
|
|
2599
|
-
}
|
|
2600
|
-
${O.tdUp} {
|
|
2601
|
-
padding: 8px;
|
|
2602
|
-
> img {
|
|
2603
|
-
width: 30px;
|
|
2604
|
-
height: 30px;
|
|
2605
|
-
}
|
|
2606
|
-
}
|
|
2607
|
-
`,fo="hhgcomp-sensitivemask-inner",xo=se(M.div`
|
|
2608
|
-
position: absolute;
|
|
2609
|
-
top: 0;
|
|
2610
|
-
right: 0;
|
|
2611
|
-
left: 0;
|
|
2612
|
-
bottom: 0;
|
|
2613
|
-
background: rgba(0, 0, 0, 0.4);
|
|
2614
|
-
color: white;
|
|
2615
|
-
display: flex;
|
|
2616
|
-
align-items: center;
|
|
2617
|
-
justify-content: center;
|
|
2618
|
-
cursor: pointer;
|
|
2619
|
-
`,fo),wo=M.div``,yo=M.div`
|
|
2620
|
-
position: absolute;
|
|
2621
|
-
bottom: 0;
|
|
2622
|
-
left: 0;
|
|
2623
|
-
width: 100%;
|
|
2624
|
-
height: 100%;
|
|
2625
|
-
z-index: 3;
|
|
2626
|
-
background: white;
|
|
2627
|
-
cursor: pointer;
|
|
2628
|
-
|
|
2629
|
-
&,
|
|
2630
|
-
* {
|
|
2631
|
-
// transition: all 300ms;
|
|
2632
|
-
transform-origin: bottom left;
|
|
2633
|
-
}
|
|
2634
|
-
|
|
2635
|
-
img {
|
|
2636
|
-
transition: none;
|
|
2637
|
-
}
|
|
2638
|
-
.img-preview {
|
|
2639
|
-
width: 100%;
|
|
2640
|
-
}
|
|
2641
|
-
&[data-is-blurred='true'] {
|
|
2642
|
-
.img-preview {
|
|
2643
|
-
/* Add the blur effect */
|
|
2644
|
-
-webkit-filter: blur(24px);
|
|
2645
|
-
filter: blur(24px);
|
|
2646
|
-
}
|
|
2647
|
-
}
|
|
2648
|
-
|
|
2649
|
-
&[data-is-blurred='false'] {
|
|
2650
|
-
background: transparent;
|
|
2651
|
-
cursor: zoom-in;
|
|
2652
|
-
|
|
2653
|
-
.${fo} {
|
|
2654
|
-
top: auto;
|
|
2655
|
-
right: auto;
|
|
2656
|
-
left: 8px;
|
|
2657
|
-
bottom: 8px;
|
|
2658
|
-
background: rgba(0, 0, 0, 0);
|
|
2659
|
-
align-items: flex-end;
|
|
2660
|
-
justify-content: flex-start;
|
|
2661
|
-
}
|
|
2662
|
-
}
|
|
2663
|
-
`,Eo=M.div`
|
|
2664
|
-
.link-info-container {
|
|
2665
|
-
padding: 0.5rem 1rem;
|
|
2666
|
-
background: ${e=>e.color||"#f4faff"};
|
|
2667
|
-
}
|
|
2668
|
-
.link-image-wrapper {
|
|
2669
|
-
position: relative;
|
|
2670
|
-
overflow: hidden;
|
|
2671
|
-
width: 100%;
|
|
2672
|
-
padding-top: 56.25%;
|
|
2673
|
-
&.fetching {
|
|
2674
|
-
background: lightgray;
|
|
2675
|
-
}
|
|
2676
|
-
.loading-spinner {
|
|
2677
|
-
position: absolute;
|
|
2678
|
-
top: 50%;
|
|
2679
|
-
left: 50%;
|
|
2680
|
-
transform: translate(-50%, -50%);
|
|
2681
|
-
}
|
|
2682
|
-
.link-image {
|
|
2683
|
-
position: absolute;
|
|
2684
|
-
top: 0;
|
|
2685
|
-
left: 0;
|
|
2686
|
-
width: 100%;
|
|
2687
|
-
height: 100%;
|
|
2688
|
-
object-fit: cover;
|
|
2689
|
-
object-position: center;
|
|
2690
|
-
}
|
|
2691
|
-
}
|
|
2692
|
-
a {
|
|
2693
|
-
text-decoration: none;
|
|
2694
|
-
}
|
|
2695
|
-
&[data-is-marrybaby='true'] {
|
|
2696
|
-
overflow: hidden;
|
|
2697
|
-
border-radius: 1rem;
|
|
2698
|
-
}
|
|
2699
|
-
`;var Co="PD6nRZX";const ko=({className:e,size:a="md"})=>{const{t:o}=x();return t.createElement("div",{className:`${Co} ${e}`},t.createElement(pe,{size:a,color:"transparent",isLoading:!0},o("loading")))},Ao=r({});var No="l5fL1xL",zo="L-aGKo7";const To=({children:e,className:a=""})=>t.createElement("div",{className:`${No} ${a}`},e),So=({children:e,className:a=""})=>t.createElement("div",{className:`${zo} ${a}`},e);var Lo="eaR8ATZ",Vo="xM-7K0a",Po="DZmf3s7";const Fo=({src:e,defaultSrc:a=j.getAssetPath("logo/logomark.png"),ratio:o=1,size:i=80,radius:r=8,alt:n,className:l=""})=>t.createElement("div",{className:l},t.createElement("div",{className:Po,style:{width:`${i}px`,height:i*o+"px",borderRadius:`${r}px`}},t.createElement(N,{src:e,backupSrc:a,alt:n}))),jo=({category:e,title:a,src:o,children:i,className:r=""})=>t.createElement("div",{className:`${Lo} ${r}`},t.createElement(Fo,{src:o}),t.createElement("div",{className:Vo},i||t.createElement("div",null,e&&t.createElement(To,null,e),a&&t.createElement(So,null,a))));jo.CategoryText=To,jo.Title=So;const Bo=({featureImage:e,postTitle:a,author:o,categories:i,isReview:r,className:n=""})=>{var l;const s=r?"Medically reviewed by Jobelle Ann Dela Cruz Bigalbal, MD":"Written by Jobelle Ann Dela Cruz Bigalbal, MD";return t.createElement(jo,{src:e,className:n},t.createElement(t.Fragment,null,t.createElement(jo.CategoryText,null,null===(l=null==i?void 0:i[0])||void 0===l?void 0:l.name),t.createElement(jo.Title,null,a),t.createElement(At,{avatarProps:Object.assign(Object.assign({},o),{size:32}),subTitle:t.createElement(t.Fragment,null,s,t.createElement(At.SubDivider,null),"Dec 12, 2022")})))};var Oo={container:"SFSgnOz",header:"Tf3aoVa",heading:"TOt4QXl",headingIcon:"_5XYN1KT",accBodyGroup:"yE-tZRj",accBodyGroupItem:"LXiGuGT",accBodyGroupDesc:"r4rx-6v",subTitle:"XrHh8-C",subIcon:"c5-Yecd",group:"UBj6nWr",groupBody:"_2vptVBd",articleCardLink:"ZPDAwiR",relatedList:"_6wJn-NR",socialItem:"_21XDdFv",mbChevronWrapper:"LSyr3Zo"};const Ro=({className:e=""})=>{var a,o,i,r,l;const{t:s}=x(),{info:d,isMarryBaby:c,currentPageUrl:m}=n(Ao),u=null==d?void 0:d.data,g=[{type:"linkedin",icon:j.getAssetPath("linkedin.svg"),url:null===(a=null==d?void 0:d.contact)||void 0===a?void 0:a.linkedin,eventAction:"Doctor Profile - Linkedin"},{type:"instagram",icon:j.getAssetPath("instagram.svg"),url:null===(o=null==d?void 0:d.contact)||void 0===o?void 0:o.instagram,eventAction:"Doctor Profile - Instagram"},{type:"facebook",icon:j.getAssetPath("facebook.svg"),url:null===(i=null==d?void 0:d.contact)||void 0===i?void 0:i.facebook,eventAction:"Doctor Profile - Facebook"},{type:"youtube",icon:j.getAssetPath("youtube.svg"),url:null===(r=null==d?void 0:d.contact)||void 0===r?void 0:r.youtube,eventAction:"Doctor Profile - Youtube"},{type:"tiktok",icon:j.getAssetPath("tiktok.svg"),url:null===(l=null==d?void 0:d.contact)||void 0===l?void 0:l.tiktok,eventAction:"Doctor Profile - TikTok"}],h=[...((null==d?void 0:d.experiences)||[]).length>0?[{key:"experience",heading:s("profilePanel.experience"),iconSrc:j.getAssetPath(c?"award-doc-mb.svg":"award-doc.svg"),eventAction:"Doctor Experience Click",panel:t.createElement("div",{className:Oo.accBodyGroup},null==d?void 0:d.experiences.map(((e,a)=>t.createElement("div",{className:Oo.accBodyGroupItem,key:String(a)},t.createElement("div",{className:Oo.accBodyGroupTitle},e.title),t.createElement("div",{className:Oo.accBodyGroupDesc},t.createElement("p",null,e.organization),t.createElement("p",null,e.duration))))))}]:[],...((null==d?void 0:d.educations)||[]).length>0?[{key:"education",heading:s("profilePanel.education"),iconSrc:j.getAssetPath(c?"book-mb.svg":"book.svg"),eventAction:"Doctor Degree Click",panel:t.createElement("div",{className:Oo.accBodyGroup},null==d?void 0:d.educations.map(((e,a)=>t.createElement("div",{className:Oo.accBodyGroupItem,key:String(a)},t.createElement("div",{className:Oo.accBodyGroupTitle},e.schoolName),t.createElement("div",{className:Oo.accBodyGroupDesc},t.createElement("p",null,e.study),t.createElement("p",null,e.completedYear))))))}]:[],...((null==d?void 0:d.awards)||[]).length>0?[{key:"awards",heading:s("profilePanel.awards"),iconSrc:j.getAssetPath(c?"award-mb.svg":"award.svg"),eventAction:"Doctor Award Click",panel:t.createElement("div",{className:Oo.accBodyGroup},null==d?void 0:d.awards.map(((e,a)=>t.createElement("div",{className:Oo.accBodyGroupTitle,key:a},e.title))))}]:[]],b=(null==d?void 0:d.relatedPosts)||[],f=g.filter((e=>e.url));return t.createElement("div",{className:`${Oo.container} ${e}`,"data-is-marrybaby":c},h.length>0&&t.createElement(v,{defaultValue:h[0].key,chevron:c?t.createElement("div",{className:Oo.mbChevronWrapper},t.createElement(k,{size:12,color:U.mbColors.midGray})):t.createElement(k,{color:U.colors.gray400}),styles:{chevron:{"&[data-rotate]":{".minus-path":{display:"block"},".plus-path":{display:"none"}}},content:{display:"flex",flexDirection:"column",gap:"16px",padding:"0"},item:{border:0},control:{paddingLeft:0,"&:hover":{background:"transparent"},"*":{pointerEvents:"none"}}}},h.map((e=>t.createElement(v.Item,{key:e.key,value:e.key},t.createElement(v.Control,{"data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":m},t.createElement("div",{className:Oo.header},t.createElement("div",{className:Oo.headingIcon},t.createElement("img",{src:e.iconSrc,loading:"lazy"})),t.createElement("div",{className:Oo.heading},e.heading))),t.createElement(v.Panel,null,e.panel))))),b.length>0&&t.createElement("div",{className:Oo.group},t.createElement("div",{className:Oo.subTitle},t.createElement("img",{className:Oo.subIcon,src:j.getAssetPath(c?"mb-logo.svg":"logo/circle-solid.svg"),loading:"lazy"}),s("profilePanel.publishedArticles")),t.createElement("div",{className:`${Oo.relatedList}`},null==d?void 0:d.relatedPosts.map((e=>t.createElement("a",{key:String(e.id),href:`${window.location.origin}${null==e?void 0:e.permalink}`,className:Oo.articleCardLink},t.createElement(Bo,Object.assign({className:"article-card"},Object.assign(Object.assign({},e),!e.author&&{author:{displayName:null==u?void 0:u.name,avatar:null==u?void 0:u.avatar}}),{isReview:!0}))))))),f.length>0&&t.createElement("div",{className:Oo.group},t.createElement("div",{className:Oo.subTitle},t.createElement("img",{className:Oo.subIcon,src:j.getAssetPath(c?"social-mb.svg":"social.svg"),loading:"lazy"}),s("profilePanel.socialLinks")),t.createElement("div",{className:Oo.groupBody},t.createElement(p,null,g.map(((e,a)=>e.url&&t.createElement("div",{className:Oo.socialItem,key:a},t.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},t.createElement("img",{src:e.icon,loading:"lazy",width:"32px","data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":m})))))))))};var Mo={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};const Io=({post:e,className:a=""})=>{var o,i,r,l,s,d,c,p;const{t:m}=x(),{data:{userInfo:u,env:{togetherBasePath:g}}}=n(G),{authActionWrapper:h,authorProps:v,currentPageUrl:b}=n(Ao),f=`${window.location.origin}${g}/${null===(o=null==e?void 0:e.community)||void 0===o?void 0:o.slug}/${null==e?void 0:e.slug}/`;return t.createElement("div",{className:`${Mo.container} ${a}`},t.createElement("div",{className:Mo.header},t.createElement("div",{className:Mo.question},m("profilePanel.question")," ",t.createElement(T,{className:Mo.questionTitle,href:"#",onClick:()=>{(null==u?void 0:u.id)||null==h||h((()=>window.location.href=f))}},"#",null==e?void 0:e.title)),t.createElement("div",{className:Mo.community},null===(i=null==e?void 0:e.community)||void 0===i?void 0:i.name," - ",null==e?void 0:e.createdTime)),t.createElement("div",{className:Mo.questionCard},t.createElement(oa,Object.assign({className:"card-author"},v,{role:"user",avatarIcon:t.createElement(mt,null),subLine:t.createElement(oa.SubTextRow,null,t.createElement(oa.SubText,null,null===(s=null===(l=null===(r=null==e?void 0:e.expertAnswer)||void 0===r?void 0:r.answer)||void 0===l?void 0:l[0])||void 0===s?void 0:s.createdTime))})),t.createElement(io,{className:"post-content-wrapper",description:(null===(p=null===(c=null===(d=null==e?void 0:e.expertAnswer)||void 0===d?void 0:d.answer)||void 0===c?void 0:c[0])||void 0===p?void 0:p.content)||"",mentions:null==e?void 0:e.mentions,"data-testid":"Content of the Post"})),t.createElement(A,{variant:"secondary","data-event-category":"Together","data-event-action":"Doctor Reply Click","data-event-label":b,size:"md",onClick:()=>{(null==u?void 0:u.id)?window.location.href=f:null==h||h((()=>window.location.href=f))}},m("profilePanel.anserwing.viewFull")))};var Uo="MrdoES3",Do="_8fd7YMs",Wo="DomiQfw",Ho="-b2qnfL";const Zo=({message:e,buttonTxt:a,imgSrc:o,onBtnClick:i})=>{const{siteType:r,isMarryBaby:l}=n(Ao);return t.createElement("div",{className:Do},t.createElement("div",{className:Wo},t.createElement("img",{src:o||j.getAssetPath(l?"comments-mb.svg":"comments.svg"),loading:"lazy"})),e&&t.createElement("div",{className:Ho},e),a&&t.createElement(pe,{size:"md",theme:r,color:"secondary",onClick:i},a))},qo=({id:e})=>{const{t:o}=x(),{data:{locale:i}}=n(G),{authorProps:r}=n(Ao),[l,d]=a(null),[c,p]=a(!1);return s((()=>{e&&f(void 0,void 0,void 0,(function*(){var t;p(!0);const a=yield Z(oe(re.USER.LIST_ANSWERS,{_locale:i,id:e}),"GET"),o=((null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.replies)||[]).map(he);d(o),p(!1)}))}),[]),t.createElement("div",{className:Uo},c?t.createElement(ko,null):null!==l&&(l.length>0?l.map((e=>t.createElement(Io,{className:"post-card",key:e.id,post:e}))):t.createElement(Zo,{message:o("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)})})))};var Go="toEutn7",Xo="drdisHs";const Qo=e=>{var a,o,i,r,{post:l}=e,s=b(e,["post"]);const{data:{env:{togetherBasePath:d}}}=n(G);return t.createElement(t.Fragment,null,t.createElement("div",Object.assign({},s,{className:`${Go} ${(null==s?void 0:s.className)||""}`}),t.createElement(oa,{className:"card-author",avatar:null===(a=null==l?void 0:l.author)||void 0===a?void 0:a.avatar,name:(null===(o=null==l?void 0:l.author)||void 0===o?void 0:o.name)||(null===(i=null==l?void 0:l.author)||void 0===i?void 0:i.username),isAnonymous:Boolean(null==l?void 0:l.isAnonymous),subLine:t.createElement(oa.SubTextRow,null,t.createElement(oa.SubText,null,null==l?void 0:l.createdTime))}),t.createElement(T,{href:`${window.location.origin}${d}/${null===(r=null==l?void 0:l.community)||void 0===r?void 0:r.slug}/${null==l?void 0:l.slug}/`,className:Xo,rel:"noreferrer"},null==l?void 0:l.title)))};var Ko={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",panel:"dKAgnS8",chevron:"L2Q9T6m",container:"h-pSmhX"};const Yo=()=>{var e,o;const{t:i}=x(),{data:{locale:r,userInfo:l}}=n(G),{onSkipQuestion:d,countValues:c,setCountValues:p}=n(Ao),[m,u]=a(),[g,h]=a([]),[b,w]=a(!1),y=null==l?void 0:l.id;s((()=>{y&&f(void 0,void 0,void 0,(function*(){var e;w(!0);const t=yield le(oe(re.USER.LIST_QUESTION_NEED_REPLY,{_locale:r}),"GET"),a=[],o=Object.create({});((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.communities)||[]).filter((e=>((null==e?void 0:e.question)||[]).length>0)).map((e=>{o[e.id]=e.question.map(he),delete e.question,a.push(ve(e))})),h(a),u(o),w(!1)}))}),[]);const E=({id:e,communityId:t})=>{if(e&&t&&m){const a=Object.assign(Object.assign({},m),{[t]:[...((null==m?void 0:m[t])||[]).filter((t=>t.id!==e))]});let o=0;Object.keys(a).map((e=>o+=a[e].length||0)),u(a),p(Object.assign(Object.assign({},c),{total_question:o})),null==d||d(o)}};return t.createElement("div",{className:Ko.container},b?t.createElement(ko,null):(null==c?void 0:c.total_question)>0?g.length>0&&t.createElement(v,{className:Ko.accordion,defaultValue:String((null===(o=g[null===(e=Object.keys(g))||void 0===e?void 0:e[0]])||void 0===o?void 0:o.id)||""),styles:e=>({control:{padding:"16px",border:`1px solid ${e.colors.neutral[1]}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${e.colors.neutral[1]}`,borderTop:0,borderBottom:0},label:{padding:0},item:{marginBottom:"16px"}}),chevron:t.createElement("div",{className:Ko.chevron},t.createElement(S,{color:U.colors.gray600,size:20}))},g.map((e=>{const a=m&&(null==m?void 0:m[e.id])||[];return a.length>0&&t.createElement(v.Item,{key:e.id,value:String(e.id)},t.createElement(v.Control,null,t.createElement("div",{className:Ko.header},t.createElement("div",{className:Ko.headingIcon},t.createElement("img",{src:e.thumbnail,loading:"lazy"})),t.createElement("div",{className:Ko.heading},e.name))),t.createElement(v.Panel,null,t.createElement("div",{className:Ko.body},a.map((e=>t.createElement(Qo,{className:"question-card",key:e.id,post:e,onSkip:E}))))))}))):t.createElement(Zo,{message:i("profilePanel.emptyCareMess.content"),imgSrc:j.getAssetPath("questions.svg")}))};var $o="GA-zc-O",Jo="A18McWD",_o="IB049vj",ei="_8I--vEV";const ti=({post:e,className:a=""})=>{var o;const{data:{userInfo:i,env:{togetherBasePath:r}}}=n(G),{t:l}=x(),s=d(),{authActionWrapper:c,authorProps:p}=n(Ao),m=`${window.location.origin}${r}/${null===(o=null==e?void 0:e.community)||void 0===o?void 0:o.slug}/${null==e?void 0:e.slug}/`;return t.createElement("div",{className:`${$o} ${a}`},t.createElement("div",{className:_o},t.createElement("a",{"data-event-category":"Together","data-event-action":"Click Post","data-event-label":m,className:ei,href:m,onClick:e=>{(null==i?void 0:i.id)||(e.preventDefault(),null==c||c((()=>window.location.href=m)))}}),t.createElement(At,{className:"card-author",avatarProps:{avatar:null==p?void 0:p.avatar,size:32}},t.createElement(oa.MainText,{className:Jo},null==e?void 0:e.title),t.createElement(oa.SubTextRow,null,t.createElement(oa.SubText,null,null==e?void 0:e.createdTime))),t.createElement(io,{className:"post-content-wrapper",description:null==e?void 0:e.description,mentions:null==e?void 0:e.mentions,maxChars:200,"data-testid":"Content of the Post",hideShowAllBtn:!0}),t.createElement(y,{size:"p3",color:s.fn.primaryColor()},l("post.seeMore"))))};var ai="TSMHoEM";const oi=()=>{const{t:e}=x(),{data:{locale:o}}=n(G),{authorId:i,authorProps:r,isAuthorLogin:l,onCloseFromPost:d}=n(Ao),[c,p]=a(null),[m,u]=a(!1);return s((()=>{i&&f(void 0,void 0,void 0,(function*(){var e;u(!0);const t=yield Z(oe(re.USER.LIST_POST,{_locale:o,id:i,isAnonymous:0}),"GET"),a=((null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.posts)||[]).map(he);p(a),u(!1)}))}),[i]),t.createElement("div",{className:ai},m?t.createElement(ko,null):null!==c&&(c.length>0?c.map((e=>t.createElement(ti,{className:"post-card",key:e.id,post:e}))):t.createElement(Zo,{message:e("profilePanel.emptyPostMess.content",{name:(null==r?void 0:r.name)||(null==r?void 0:r.username)||""}),buttonTxt:l&&e("profilePanel.createPost"),onBtnClick:()=>{null==d||d()}})))};var ii="_4Vekw96",ri="DIJdGcB",ni="aQSt4-Q";const li=e=>e?{title:null==e?void 0:e.title,organization:null==e?void 0:e.organization,duration:e.duration}:{},si=e=>e?{completedYear:null==e?void 0:e.completed_year,schoolName:e.school_name,study:e.study}:{};var di,ci;!function(e){e[e.About=0]="About",e[e.Care=1]="Care",e[e.Answer=2]="Answer",e[e.Posts=3]="Posts"}(di||(di={})),function(e){e[e.Expert=0]="Expert",e[e.User=1]="User"}(ci||(ci={}));const pi=e=>{var o,{authorProps:i,selectedTab:r,authActionWrapper:l,onSkipQuestion:d,onCloseFromPost:c,hideQuestionTab:p,hideAnswerTab:m,showSkipQuestionTag:u,rolesToShowQuestionsTab:g=["expert"],currentPageUrl:h}=e,v=b(e,["authorProps","selectedTab","authActionWrapper","onSkipQuestion","onCloseFromPost","hideQuestionTab","hideAnswerTab","showSkipQuestionTag","rolesToShowQuestionsTab","currentPageUrl"]);const{data:{locale:w,userInfo:y,env:{isMarryBaby:E}}}=n(G),{t:C}=x(),k=null==i?void 0:i.role,A=null==y?void 0:y.role,N=String(null==i?void 0:i.userId),[z,T]=a(),[S,V]=a(!1),[P,F]=a(),j=(null==y?void 0:y._togetherUserId)===(null==i?void 0:i.userId),O=[...-1!==g.indexOf(k)?[{value:di.About,text:C("profilePanel.tabs.highlight"),content:t.createElement(Ro,{id:N,info:P}),dataEventCategory:"Together",dataEventAction:"Doctor Profile Click",dataEventLabel:h}]:[],{value:di.Posts,text:C("profilePanel.tabs.posts"),content:t.createElement(oi,null),hasCountResult:!0,keyOfCountApi:"post",keyOfResult:"total_post"},...p||-1===g.indexOf(A)||(null==y?void 0:y._togetherUserId)!==(null==i?void 0:i.userId)?[]:[{value:di.Care,text:`${C("profilePanel.tabs.care")}`,content:t.createElement(Yo,null),hasCountResult:!0,keyOfCountApi:"question",keyOfResult:"total_question",dataEventCategory:"Together",dataEventAction:"Doctor Questions Click",dataEventLabel:h}],...m||-1===g.indexOf(k)?[]:[{value:di.Answer,text:`${C("profilePanel.tabs.expertAnswer")}`,content:t.createElement(qo,{id:N}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply",dataEventCategory:"Together",dataEventAction:"Doctor Reply Tab Click",dataEventLabel:h}]],[R,M]=a(null),[I,U]=a(null),D={value:String(I),dataList:R,onTabChange:e=>U(Number(e))},W=null==O?void 0:O.filter((e=>null==e?void 0:e.hasCountResult));s((()=>{f(void 0,void 0,void 0,(function*(){var e,t,a,o,i,n,l,s,d,c;V(!0);const p=yield Promise.all([Z(oe(re.USER.DETAIL,{_locale:w,id:N}),"GET"),...W.map((e=>Z(oe(re.USER.COUNT_TABS,{_locale:w,id:N,[e.keyOfCountApi]:1}),"GET")))]),[m]=p,u={data:null==m?void 0:m.data,experiences:((null===(t=null===(e=null==m?void 0:m.data)||void 0===e?void 0:e.fields)||void 0===t?void 0:t.experiences)||[]).map(li),relatedPosts:((null===(a=null==m?void 0:m.data)||void 0===a?void 0:a.related_post)||[]).map((e=>be(e.post))),educations:((null===(i=null===(o=null==m?void 0:m.data)||void 0===o?void 0:o.fields)||void 0===i?void 0:i.educations)||[]).map(si),awards:(null===(l=null===(n=null==m?void 0:m.data)||void 0===n?void 0:n.fields)||void 0===l?void 0:l.awards_accreditations)||[],contact:(null===(d=null===(s=null==m?void 0:m.data)||void 0===s?void 0:s.fields)||void 0===d?void 0:d.contact)||{}};1===(null==m?void 0:m.status)&&F(u);const g=(null==u?void 0:u.relatedPosts)||[],h=Object.keys(u.contact).map((e=>{var t;return""!==(null===(t=null==u?void 0:u.contact)||void 0===t?void 0:t[e])})),v=[...(null==u?void 0:u.experiences)||[],...(null==u?void 0:u.educations)||[],...(null==u?void 0:u.awards)||[]],b=g.length>0||h.length>0||v.length>0,f={},x=W.map(((e,t)=>{var a,o,i;const r=(null===(i=null===(o=null===(a=p[t+1])||void 0===a?void 0:a.data)||void 0===o?void 0:o.counting)||void 0===i?void 0:i[e.keyOfResult])||0;return r>0?(f[e.keyOfResult]=r,e):-1!==[di.Care,di.Posts].indexOf(e.value)?e:void 0})).filter(Boolean).map((e=>e.value)),y=O.map((e=>{const t=Object.assign(Object.assign({},e),{text:e.text+(e.keyOfResult?` (${(null==f?void 0:f[e.keyOfResult])||"0"})`:"")});return t.hasCountResult?-1!==x.indexOf(t.value)?t:void 0:t.value===di.About?b&&t:t})).filter(Boolean);M(y),U(r||(null===(c=null==y?void 0:y[0])||void 0===c?void 0:c.value)),T(f),V(!1)}))}),[]);const H=null==P?void 0:P.data;return t.createElement(Ao.Provider,{value:{isMarryBaby:E,siteType:E?"marryBaby":"helloSites",authorId:String((null==i?void 0:i.userId)||""),authActionWrapper:l,onSkipQuestion:d,info:P,authorProps:i,onCloseFromPost:c,countValues:z,setCountValues:T,isAuthorLogin:j,showSkipQuestionTag:u,currentPageUrl:h}},t.createElement("div",Object.assign({},v,{className:`${ii} ${(null==v?void 0:v.className)||""}`,"data-is-marrybaby":E}),S?t.createElement(ko,null):t.createElement(t.Fragment,null,t.createElement(oa,Object.assign({},i,{className:"card-author",showDetailPopup:!1,subLine:"expert"===(null==i?void 0:i.role)?(null==H?void 0:H.specialty)&&(null==H?void 0:H.organisation)&&t.createElement(oa.SubTextRow,null,(null==H?void 0:H.specialty)&&t.createElement(t.Fragment,null,t.createElement(oa.SubText,null,null==H?void 0:H.specialty),t.createElement(oa.SubDivider,null)),t.createElement(oa.SubText,null,null==H?void 0:H.organisation)):(null==H?void 0:H.created_at)&&t.createElement(oa.SubTextRow,null,t.createElement(oa.SubText,null,C("profilePanel.joined")," ",B(null==H?void 0:H.created_at).toNow(!0)))})),"expert"===k&&t.createElement("div",{className:ri,dangerouslySetInnerHTML:{__html:null===(o=null==P?void 0:P.data)||void 0===o?void 0:o.description}}),null!==R&&null!==I&&(R.length>0?t.createElement("div",{className:ni},t.createElement(L,Object.assign({},D))):t.createElement(Zo,{message:C("profilePanel.emptyPostMess.content",{text:(null==i?void 0:i.name)||(null==i?void 0:i.username)||""})})))))};var mi=Object.freeze({__proto__:null,get TabName(){return di},get UserType(){return ci},TabDataInit:{experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail:pi});const ui=M.div`
|
|
2700
|
-
position: relative;
|
|
2701
|
-
margin-bottom: 24px;
|
|
2702
|
-
background: white;
|
|
2703
|
-
border-radius: ${U.borderRadius};
|
|
2704
|
-
|
|
2705
|
-
a {
|
|
2706
|
-
text-decoration: none;
|
|
2707
|
-
}
|
|
2708
|
-
|
|
2709
|
-
${O.mbDown} {
|
|
2710
|
-
margin-bottom: 8px;
|
|
2711
|
-
}
|
|
2712
|
-
&.flat-top {
|
|
2713
|
-
border-top-left-radius: 0;
|
|
2714
|
-
border-top-right-radius: 0;
|
|
2715
|
-
}
|
|
2716
|
-
|
|
2717
|
-
.post-pin {
|
|
2718
|
-
padding: 0.5rem 1rem;
|
|
2719
|
-
border-radius: ${U.borderRadius} 6px 0 0;
|
|
2720
|
-
}
|
|
2721
|
-
.post-author {
|
|
2722
|
-
display: flex;
|
|
2723
|
-
align-items: center;
|
|
2724
|
-
justify-content: space-between;
|
|
2725
|
-
&.comment {
|
|
2726
|
-
padding-right: 2.6rem;
|
|
2727
|
-
}
|
|
2728
|
-
.author-avatar-wrapper {
|
|
2729
|
-
width: 40px;
|
|
2730
|
-
height: 40px;
|
|
2731
|
-
font-size: 20px;
|
|
2732
|
-
${O.mbDown} {
|
|
2733
|
-
width: 32px;
|
|
2734
|
-
height: 32px;
|
|
2735
|
-
font-size: 16px;
|
|
2736
|
-
}
|
|
2737
|
-
}
|
|
2738
|
-
}
|
|
2739
|
-
.post-content-link-wrapper {
|
|
2740
|
-
color: inherit;
|
|
2741
|
-
cursor: pointer;
|
|
2742
|
-
.post-content-title {
|
|
2743
|
-
padding: 1rem 1rem 0;
|
|
2744
|
-
word-break: break-word;
|
|
2745
|
-
}
|
|
2746
|
-
}
|
|
2747
|
-
.social-preview-wrapper.has-image {
|
|
2748
|
-
margin-bottom: 5px;
|
|
2749
|
-
}
|
|
2750
|
-
.social-preview-wrapper,
|
|
2751
|
-
.image-preview-wrapper,
|
|
2752
|
-
.link-preview-wrapper {
|
|
2753
|
-
width: 100%;
|
|
2754
|
-
&[data-is-reply='true'] {
|
|
2755
|
-
padding-right: 1rem;
|
|
2756
|
-
padding-left: 1rem;
|
|
2757
|
-
}
|
|
2758
|
-
}
|
|
2759
|
-
.post-topics {
|
|
2760
|
-
padding: 0 1rem;
|
|
2761
|
-
}
|
|
2762
|
-
|
|
2763
|
-
.post-reaction {
|
|
2764
|
-
background: none;
|
|
2765
|
-
border-radius: 0 0 6px 6px;
|
|
2766
|
-
&.hide-top-border {
|
|
2767
|
-
::before {
|
|
2768
|
-
display: none;
|
|
2769
|
-
}
|
|
2770
|
-
}
|
|
2771
|
-
}
|
|
2772
|
-
.most-engaging-wrapper {
|
|
2773
|
-
padding: 1rem;
|
|
2774
|
-
cursor: pointer;
|
|
2775
|
-
.author-avatar-wrapper {
|
|
2776
|
-
width: 2rem;
|
|
2777
|
-
height: 2rem;
|
|
2778
|
-
font-size: 1rem;
|
|
2779
|
-
}
|
|
2780
|
-
.see-more-comments {
|
|
2781
|
-
width: 100%;
|
|
2782
|
-
padding: 12px 0 0;
|
|
2783
|
-
text-align: unset;
|
|
2784
|
-
}
|
|
2785
|
-
}
|
|
2786
|
-
&[data-most-engaging='true'] {
|
|
2787
|
-
border: none;
|
|
2788
|
-
${O.mbDown} {
|
|
2789
|
-
margin: 1rem;
|
|
2790
|
-
border: 1px solid #e4e8ec;
|
|
2791
|
-
}
|
|
2792
|
-
}
|
|
2793
|
-
.top-divider {
|
|
2794
|
-
border-color: #e4e8ec;
|
|
2795
|
-
}
|
|
2796
|
-
.popover {
|
|
2797
|
-
.popover-menu__btn {
|
|
2798
|
-
display: flex;
|
|
2799
|
-
width: 1.5rem;
|
|
2800
|
-
height: 1rem;
|
|
2801
|
-
align-items: center;
|
|
2802
|
-
justify-content: center;
|
|
2803
|
-
padding: 0;
|
|
2804
|
-
background: transparent;
|
|
2805
|
-
|
|
2806
|
-
&:hover {
|
|
2807
|
-
background-color: transparent;
|
|
2808
|
-
}
|
|
2809
|
-
}
|
|
2810
|
-
.popover-menu__content {
|
|
2811
|
-
&.--position-bottom {
|
|
2812
|
-
&.--align-end {
|
|
2813
|
-
&::before {
|
|
2814
|
-
right: 12.5px;
|
|
2815
|
-
}
|
|
2816
|
-
}
|
|
2817
|
-
}
|
|
2818
|
-
}
|
|
2819
|
-
}
|
|
2820
|
-
|
|
2821
|
-
&[data-is-marrybaby='true'] {
|
|
2822
|
-
border: 1px solid #f3f3f3;
|
|
2823
|
-
border-radius: 1rem;
|
|
2824
|
-
/* shadow */
|
|
2825
|
-
|
|
2826
|
-
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.08);
|
|
2827
|
-
.image-preview-wrapper,
|
|
2828
|
-
.link-preview-wrapper {
|
|
2829
|
-
padding-right: 1rem;
|
|
2830
|
-
padding-left: 1rem;
|
|
2831
|
-
}
|
|
2832
|
-
.popover {
|
|
2833
|
-
.popover-menu__btn {
|
|
2834
|
-
width: 24px;
|
|
2835
|
-
height: 24px;
|
|
2836
|
-
${O.mbDown} {
|
|
2837
|
-
width: 18px;
|
|
2838
|
-
height: 18px;
|
|
2839
|
-
}
|
|
2840
|
-
}
|
|
2841
|
-
.popover-menu__content {
|
|
2842
|
-
&.--position-bottom {
|
|
2843
|
-
&.--align-end {
|
|
2844
|
-
&::before {
|
|
2845
|
-
right: 1rem;
|
|
2846
|
-
}
|
|
2847
|
-
width: 350px;
|
|
2848
|
-
${O.mbDown} {
|
|
2849
|
-
max-width: calc(320px - 2rem);
|
|
2850
|
-
}
|
|
2851
|
-
}
|
|
2852
|
-
}
|
|
2853
|
-
}
|
|
2854
|
-
}
|
|
2855
|
-
.most-engaging-wrapper {
|
|
2856
|
-
position: relative;
|
|
2857
|
-
padding: 0;
|
|
2858
|
-
&::before {
|
|
2859
|
-
position: absolute;
|
|
2860
|
-
z-index: 5;
|
|
2861
|
-
top: 0;
|
|
2862
|
-
left: 50%;
|
|
2863
|
-
width: calc(100% - 2rem);
|
|
2864
|
-
height: 1px;
|
|
2865
|
-
background: #f3f3f3;
|
|
2866
|
-
content: ' ';
|
|
2867
|
-
transform: translateX(-50%);
|
|
2868
|
-
}
|
|
2869
|
-
}
|
|
2870
|
-
${O.mbDown} {
|
|
2871
|
-
margin-bottom: 12px;
|
|
2872
|
-
}
|
|
2873
|
-
}
|
|
2874
|
-
`,gi=M.div`
|
|
2875
|
-
.add-link {
|
|
2876
|
-
color: ${U.colors.primaryBase};
|
|
2877
|
-
}
|
|
2878
|
-
`,hi=M.div`
|
|
2879
|
-
margin: 16px 0;
|
|
2880
|
-
background: ${U.colors.yellow50};
|
|
2881
|
-
padding: 5px 10px;
|
|
2882
|
-
border-radius: 2px;
|
|
2883
|
-
|
|
2884
|
-
.icon {
|
|
2885
|
-
display: inline-block;
|
|
2886
|
-
vertical-align: middle;
|
|
2887
|
-
margin-right: 6px;
|
|
2888
|
-
}
|
|
2889
|
-
`,vi=M.div`
|
|
2890
|
-
display: flex;
|
|
2891
|
-
align-items: center;
|
|
2892
|
-
gap: 8px;
|
|
2893
|
-
`,bi=M.div`
|
|
2894
|
-
padding: 8px 16px;
|
|
2895
|
-
`,fi=M.div`
|
|
2896
|
-
margin-bottom: 12px;
|
|
2897
|
-
width: 100%;
|
|
2898
|
-
`,xi=M.div``,wi=M.div`
|
|
2899
|
-
margin-bottom: 16px;
|
|
2900
|
-
`,yi=M.div`
|
|
2901
|
-
display: flex;
|
|
2902
|
-
flex-wrap: wrap;
|
|
2903
|
-
row-gap: 16px;
|
|
2904
|
-
${O.tdUp} {
|
|
2905
|
-
align-items: center;
|
|
2906
|
-
column-gap: 24px;
|
|
2907
|
-
}
|
|
2908
|
-
`,Ei=M.a`
|
|
2909
|
-
display: flex;
|
|
2910
|
-
align-items: center;
|
|
2911
|
-
gap: 16px;
|
|
2912
|
-
${O.mbDown} {
|
|
2913
|
-
width: 100%;
|
|
2914
|
-
justify-content: space-between;
|
|
2915
|
-
}
|
|
2916
|
-
`,Ci=M.div`
|
|
2917
|
-
display: flex;
|
|
2918
|
-
align-items: center;
|
|
2919
|
-
gap: 16px;
|
|
2920
|
-
`,ki=M.div`
|
|
2921
|
-
border-radius: ${U.borderRadius};
|
|
2922
|
-
overflow: hidden;
|
|
2923
|
-
width: 48px;
|
|
2924
|
-
height: 48px;
|
|
2925
|
-
img {
|
|
2926
|
-
object-fit: cover;
|
|
2927
|
-
width: 100%;
|
|
2928
|
-
height: 100%;
|
|
2929
|
-
}
|
|
2930
|
-
`,Ai=({categories:e})=>{const{t:a}=x(),{data:{locale:o,env:{isMarryBaby:i}}}=n(G),r=xe(o,i);return t.createElement(xi,null,t.createElement(wi,null,t.createElement(Y,{tag:"h6",as:"h5"},a("cardReply.recommentCategories.heading"))),t.createElement(yi,null,e.map((e=>t.createElement(Ei,{href:r+e.permalink,key:String(e.termId),target:"_blank"},t.createElement(Ci,null,t.createElement(ki,null,t.createElement("img",{src:e.featureImage||j.getAssetPath(i?"mb-logo.svg":"/logo/logomark.png"),alt:e.displayName,loading:"lazy"})),t.createElement(y,{size:"s3",weight:"bold"},e.displayName)),t.createElement(C.ArrowRight,{size:20,color:U.colors.gray400}))))))},Ni=M.a`
|
|
2931
|
-
padding: 12px 0;
|
|
2932
|
-
display: flex;
|
|
2933
|
-
flex-direction: column;
|
|
2934
|
-
gap: 8px;
|
|
2935
|
-
border-top: 1px solid ${U.colors.neutral100};
|
|
2936
|
-
text-decoration: none;
|
|
2937
|
-
|
|
2938
|
-
&:first-child {
|
|
2939
|
-
border-top: 0;
|
|
2940
|
-
}
|
|
2941
|
-
`,zi=({postTitle:e,articleReviewed:a,modifiedTime:o,href:i})=>{const{t:r}=x(),n=(()=>{const{expert:e,editor:t,is_author:o}=a;if(e){const t={name:e.display_name,role:"expert",avatar:e.avatar};return o?Object.assign({title:r("articleAuthor.title.written-by")},t):"expert"===e.role?Object.assign({title:r("articleAuthor.title.expert")},t):Object.assign({title:r("articleAuthor.title.medical")},t)}if(t)return{title:r("articleAuthor.title.fact-check"),name:t.display_name,avatar:t.avatar}})();return t.createElement(Ni,{href:i,title:e,target:"_blank"},t.createElement(y,{size:"s3",as:"h5",weight:"bold"},e),t.createElement("div",null,t.createElement(oa,{avatar:null==n?void 0:n.avatar,avatarProps:{size:32},name:null==n?void 0:n.name,role:null==n?void 0:n.role,hideBackground:!0},t.createElement(oa.SubTextRow,null,t.createElement(oa.SubText,null,null==n?void 0:n.title," ",t.createElement("span",{style:{color:U.colors.gray800}},null==n?void 0:n.name)),t.createElement(oa.SubDivider,null),t.createElement(oa.SubText,null,o)))))};var Ti="F4mmgSy",Si="A7QrQ7A";const Li=e=>{var{listUrl:o,categorySlug:i,editMode:r,onListChange:n,isMarryBaby:l}=e,d=b(e,["listUrl","categorySlug","editMode","onListChange","isMarryBaby"]);const{t:c}=x(),[p,m]=a(o||[]),[u,g]=a([]),[h,w]=a([]),[E,k]=a(!1);s((()=>{f(void 0,void 0,void 0,(function*(){k(!0);const e=p.map((e=>{const t=new URL(e),a=String(t.pathname).split("/").filter((e=>""!=e));return{isMarrySite:-1!==t.origin.search("marrybaby.vn"),path:a[a.length-1],href:e}})),t=[...e.map((e=>Z(e.isMarrySite?de(ae.GET_PREVIEW_ARTICLE,{fullSlug:e.path},!0):te(ae.GET_PREVIEW_ARTICLE,{fullSlug:e.path},!0),"GET")))],a=yield Promise.all(t);g(a.map(((t,a)=>{var o,i;return(null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.post)&&Object.assign(Object.assign({},be(null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.post)),{href:e[a].href})})).filter(Boolean)),k(!1)}))}),[]),s((()=>{0===(null==u?void 0:u.length)&&i&&f(void 0,void 0,void 0,(function*(){var e;const t=yield Z(l?de(ae.GET_CATEGORY_OR_ARTICLE_DETAIL,{fullSlug:i},!0):te(ae.GET_CATEGORY_OR_ARTICLE_DETAIL,{fullSlug:i},!0),"GET");(null==t?void 0:t.data)&&w([fe(null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.category)])}))}),[u]);return s((()=>{null==n||n(p)}),[p]),t.createElement("div",Object.assign({},d),!r&&t.createElement(hi,null,t.createElement("img",{className:"icon",src:j.getAssetPath("warning.svg"),alt:"warning",style:{marginBottom:"3px",width:"18px"},loading:"lazy"}),t.createElement(y,{size:"s3",as:"span",dangerouslySetInnerHTML:{__html:c("cardReply.disclaimer")}})),E?t.createElement(Ot,null):u.length>0||r?t.createElement(gi,null,t.createElement(v,{defaultValue:"accordion",styles:{control:{border:`1px solid ${U.colors.neutral100}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${U.colors.neutral100}`,borderTop:0,borderBottom:0},item:{marginBottom:"16px"}},chevron:t.createElement("div",{className:Si},t.createElement(S,{color:U.colors.gray600,size:20}))},t.createElement(v.Item,{value:"accordion"},t.createElement(v.Control,null,t.createElement("div",{className:Ti},t.createElement(Y,{as:"h4",tag:"h6"},c("cardReply.source")))),t.createElement(v.Panel,null,t.createElement(bi,null,(u||[]).map(((e,a)=>t.createElement(vi,{key:String(a)},"object"==typeof e?t.createElement(zi,Object.assign({},e)):t.createElement(fi,null,t.createElement(me,{style:{width:"100%"},name:"source-list",value:e||"",size:"sm",onChange:e=>{m((t=>{const o=[...t];return o[a]=e,o})),g((t=>{const o=[...t];return o[a]=e,o}))}})),r&&t.createElement(pe,{size:"md",color:"transparent",icon:t.createElement(C.Trash,null),onClick:()=>(e=>{m((t=>{const a=[...t];return a.splice(e,1),a})),g((t=>{const a=[...t];return a.splice(e,1),a}))})(a)})))),r&&t.createElement(pe,{className:"add-link",color:"transparent",size:"md",icon:t.createElement(C.Plus,{color:U.colors.primaryBase,size:18}),onClick:()=>{m((e=>[...e,""])),g((e=>[...e,""]))}},"Add source")))))):t.createElement(Ai,{categories:h}))},Vi=M.div`
|
|
2942
|
-
position: relative;
|
|
2943
|
-
margin-bottom: 0;
|
|
2944
|
-
background: white;
|
|
2945
|
-
border-radius: ${U.borderRadius};
|
|
2946
|
-
|
|
2947
|
-
.verify-tag {
|
|
2948
|
-
margin-top: 12px;
|
|
2949
|
-
}
|
|
2950
|
-
|
|
2951
|
-
.post-author {
|
|
2952
|
-
&.with-popover {
|
|
2953
|
-
padding-right: 2.6rem;
|
|
2954
|
-
}
|
|
2955
|
-
.author-avatar-wrapper {
|
|
2956
|
-
width: 40px;
|
|
2957
|
-
height: 40px;
|
|
2958
|
-
font-size: 20px;
|
|
2959
|
-
${O.mbDown} {
|
|
2960
|
-
width: 32px;
|
|
2961
|
-
height: 32px;
|
|
2962
|
-
font-size: 16px;
|
|
2963
|
-
}
|
|
2964
|
-
}
|
|
2965
|
-
}
|
|
2966
|
-
.image-preview-wrapper,
|
|
2967
|
-
.link-preview-wrapper {
|
|
2968
|
-
width: 100%;
|
|
2969
|
-
&[data-is-reply='true'] {
|
|
2970
|
-
padding-right: 1rem;
|
|
2971
|
-
padding-left: 1rem;
|
|
2972
|
-
}
|
|
2973
|
-
}
|
|
2974
|
-
.post-reaction {
|
|
2975
|
-
background: none;
|
|
2976
|
-
border-radius: 0 0 6px 6px;
|
|
2977
|
-
}
|
|
2978
|
-
&[data-is-reply='true'] {
|
|
2979
|
-
> .post-author .author-avatar-wrapper {
|
|
2980
|
-
width: 20px;
|
|
2981
|
-
height: 20px;
|
|
2982
|
-
font-size: 10px;
|
|
2983
|
-
}
|
|
2984
|
-
}
|
|
2985
|
-
&[data-is-reply='false'] {
|
|
2986
|
-
border: 1px solid #e4e8ec;
|
|
2987
|
-
}
|
|
2988
|
-
.expert-wrapper {
|
|
2989
|
-
width: 100%;
|
|
2990
|
-
}
|
|
2991
|
-
&[data-has-booking='true'] {
|
|
2992
|
-
display: grid;
|
|
2993
|
-
.post-author {
|
|
2994
|
-
background-color: ${U.colors.primary50};
|
|
2995
|
-
}
|
|
2996
|
-
.btn-wrapper {
|
|
2997
|
-
padding: 0 16px;
|
|
2998
|
-
.btn-booking {
|
|
2999
|
-
width: 100%;
|
|
3000
|
-
margin: 12px 0;
|
|
3001
|
-
}
|
|
3002
|
-
}
|
|
3003
|
-
}
|
|
3004
|
-
|
|
3005
|
-
.comment-reply-wrapper {
|
|
3006
|
-
padding: 0 1rem;
|
|
3007
|
-
.more-cmt {
|
|
3008
|
-
.chevron-right {
|
|
3009
|
-
height: 1rem;
|
|
3010
|
-
width: 1rem;
|
|
3011
|
-
vertical-align: middle;
|
|
3012
|
-
}
|
|
3013
|
-
}
|
|
3014
|
-
}
|
|
3015
|
-
.top-divider {
|
|
3016
|
-
border-color: #e4e8ec;
|
|
3017
|
-
}
|
|
3018
|
-
.popover {
|
|
3019
|
-
position: absolute;
|
|
3020
|
-
top: 1.5rem;
|
|
3021
|
-
right: 1rem;
|
|
3022
|
-
.popover-menu__btn {
|
|
3023
|
-
display: flex;
|
|
3024
|
-
width: 1rem;
|
|
3025
|
-
height: 1rem;
|
|
3026
|
-
align-items: center;
|
|
3027
|
-
justify-content: center;
|
|
3028
|
-
padding: 0;
|
|
3029
|
-
background: transparent;
|
|
3030
|
-
|
|
3031
|
-
&:hover {
|
|
3032
|
-
background-color: transparent;
|
|
3033
|
-
}
|
|
3034
|
-
|
|
3035
|
-
.popover-menu__content {
|
|
3036
|
-
&.--position-bottom {
|
|
3037
|
-
&.--align-end {
|
|
3038
|
-
&::before {
|
|
3039
|
-
right: 12.5px;
|
|
3040
|
-
}
|
|
3041
|
-
}
|
|
3042
|
-
}
|
|
3043
|
-
}
|
|
3044
|
-
}
|
|
3045
|
-
}
|
|
3046
|
-
|
|
3047
|
-
&[data-is-marrybaby='true'] {
|
|
3048
|
-
&[data-is-reply='false'] {
|
|
3049
|
-
border: none;
|
|
3050
|
-
}
|
|
3051
|
-
.image-preview-wrapper,
|
|
3052
|
-
.link-preview-wrapper {
|
|
3053
|
-
padding-right: 1rem;
|
|
3054
|
-
padding-left: 1rem;
|
|
3055
|
-
}
|
|
3056
|
-
.popover {
|
|
3057
|
-
.popover-menu__btn {
|
|
3058
|
-
width: 24px;
|
|
3059
|
-
height: 24px;
|
|
3060
|
-
}
|
|
3061
|
-
}
|
|
3062
|
-
|
|
3063
|
-
margin-left: 56px;
|
|
3064
|
-
${O.mbDown} {
|
|
3065
|
-
margin-left: 40px;
|
|
3066
|
-
}
|
|
3067
|
-
> .post-author {
|
|
3068
|
-
margin-left: -56px;
|
|
3069
|
-
${O.mbDown} {
|
|
3070
|
-
margin-left: -40px;
|
|
3071
|
-
}
|
|
3072
|
-
.author-info {
|
|
3073
|
-
align-items: center;
|
|
3074
|
-
display: flex;
|
|
3075
|
-
align-items: center;
|
|
3076
|
-
.author-info-top {
|
|
3077
|
-
width: 100%;
|
|
3078
|
-
}
|
|
3079
|
-
.author-info-text-wrapper {
|
|
3080
|
-
justify-content: space-between;
|
|
3081
|
-
}
|
|
3082
|
-
}
|
|
3083
|
-
.author-avatar-wrapper {
|
|
3084
|
-
width: 40px;
|
|
3085
|
-
height: 40px;
|
|
3086
|
-
font-size: 20px;
|
|
3087
|
-
${O.mbDown} {
|
|
3088
|
-
width: 24px;
|
|
3089
|
-
height: 24px;
|
|
3090
|
-
font-size: 12px;
|
|
3091
|
-
}
|
|
3092
|
-
}
|
|
3093
|
-
}
|
|
3094
|
-
&[data-is-reply] {
|
|
3095
|
-
> .post-author {
|
|
3096
|
-
.author-avatar-wrapper {
|
|
3097
|
-
width: 40px;
|
|
3098
|
-
height: 40px;
|
|
3099
|
-
font-size: 20px;
|
|
3100
|
-
${O.mbDown} {
|
|
3101
|
-
width: 24px;
|
|
3102
|
-
height: 24px;
|
|
3103
|
-
font-size: 12px;
|
|
3104
|
-
}
|
|
3105
|
-
}
|
|
3106
|
-
}
|
|
3107
|
-
}
|
|
3108
|
-
|
|
3109
|
-
.comment-reply-wrapper {
|
|
3110
|
-
padding-right: 0;
|
|
3111
|
-
padding-left: 0;
|
|
3112
|
-
}
|
|
3113
|
-
.post-reaction {
|
|
3114
|
-
&::after {
|
|
3115
|
-
position: absolute;
|
|
3116
|
-
bottom: 0;
|
|
3117
|
-
left: 50%;
|
|
3118
|
-
width: calc(100% - 2rem);
|
|
3119
|
-
height: 1px;
|
|
3120
|
-
background: #f3f3f3;
|
|
3121
|
-
content: ' ';
|
|
3122
|
-
transform: translateX(-50%);
|
|
3123
|
-
}
|
|
3124
|
-
}
|
|
3125
|
-
.post-content-wrapper {
|
|
3126
|
-
padding-top: 0;
|
|
3127
|
-
padding-bottom: 0;
|
|
3128
|
-
${O.mbDown} {
|
|
3129
|
-
padding-left: 0.5rem;
|
|
3130
|
-
}
|
|
3131
|
-
}
|
|
3132
|
-
|
|
3133
|
-
${O.mbDown} {
|
|
3134
|
-
margin-bottom: 12px;
|
|
3135
|
-
}
|
|
3136
|
-
}
|
|
3137
|
-
`,Pi=M(Li)`
|
|
3138
|
-
margin-top: 12px;
|
|
3139
|
-
padding: 0.5rem 1rem 1rem;
|
|
3140
|
-
`;export{wo as $,Se as A,Le as B,et as C,Re as D,xa as E,fa as F,ia as G,na as H,ra as I,Wa as J,Qa as K,it as L,Ka as M,to as N,po as O,qt as P,uo as Q,Oa as R,_a as S,Me as T,go as U,Ga as V,ho as W,vo as X,bo as Y,yo as Z,xo as _,Ie as a,mo as a0,co as a1,Ta as a2,Eo as a3,st as a4,Vi as a5,Pi as a6,Xe as a7,ui as a8,at as b,pt as c,oa as d,Rt as e,Yt as f,Xa as g,Ja as h,io as i,ta as j,pi as k,di as l,lt as m,Li as n,ze as o,De as p,ya as q,Ca as r,ka as s,Sa as t,Ue as u,La as v,Ot as w,za as x,Ua as y,Da as z};
|