@hhgtech/hhg-components 1.27.126 → 1.27.128
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/babyGrowth.js +24 -24
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components/atoms/bookingBtn/index.d.ts +1 -1
- package/build/components/molecules/index.d.ts +2 -1
- package/build/components/molecules/surveyOrPremiumBanner/index.d.ts +0 -7
- package/build/components/molecules/surveyOrPremiumBanner/types.d.ts +6 -0
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/core-83f792ed.js +1 -0
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +37 -37
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components/atoms/bookingBtn/index.d.ts +1 -1
- package/build/esm/components/molecules/index.d.ts +2 -1
- package/build/esm/components/molecules/surveyOrPremiumBanner/index.d.ts +0 -7
- package/build/esm/components/molecules/surveyOrPremiumBanner/types.d.ts +6 -0
- package/build/esm/components.js +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-ae0493a1.js → core-748a9fba.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-903967f9.js +1 -0
- package/build/esm/{getSocialList-0b54d208.js → getSocialList-cd0564ce.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-13d1762f.js +1 -0
- package/build/esm/{index-a473ac7f.js → index-2387e156.js} +1 -1
- package/build/esm/index-53595062.js +177 -0
- package/build/esm/index-7a40118a.js +1 -0
- package/build/esm/index-88f0478f.js +1 -0
- package/build/esm/index-8bbbd170.js +3685 -0
- package/build/esm/index-8ca46c54.js +1 -0
- package/build/esm/{index-7c6dec72.js → index-918a3d98.js} +1 -1
- package/build/esm/index-94388ed1.js +1 -0
- package/build/esm/index-98e8de72.js +7 -0
- package/build/esm/{index-8bb25b67.js → index-9d5475ae.js} +1 -1
- package/build/esm/index-9fd3d0fd.js +53 -0
- package/build/esm/index-a53b22e9.js +117 -0
- package/build/esm/index-ac659d4d.js +1 -0
- package/build/esm/index-bb930226.js +112 -0
- package/build/esm/index-bc47f5c6.js +1 -0
- package/build/esm/{index-9ca67c2f.js → index-c18b4d7f.js} +1 -1
- package/build/esm/index-c515f74e.js +1 -0
- package/build/esm/index-cbbf7691.js +1 -0
- package/build/esm/index-cc17ede9.js +1753 -0
- package/build/esm/index-cf9388af.js +50 -0
- package/build/esm/index-d653a832.js +1 -0
- package/build/esm/index-e9411f80.js +113 -0
- package/build/esm/index-f189fc19.js +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/index.styled-040927d4.js +69 -0
- package/build/esm/index.styled-60482e50.js +3213 -0
- package/build/esm/{index.styled-da9cb5a7.js → index.styled-63979fbe.js} +5 -5
- package/build/esm/index.styles-a4ace3a6.js +1007 -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/normalizeLink-7e0037b8.js +1 -0
- package/build/esm/onboarding.js +1 -1
- package/build/esm/onboardingV2.js +30 -30
- package/build/esm/pwg.js +3 -3
- package/build/esm/{normalizeLink-5312bd42.js → routing-95fe5316.js} +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/types-291f6733.js +1 -0
- package/build/esm/{types-85b81ab6.js → types-67d37cc2.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-fc3e8a71.js → useCategory-acbc9c9d.js} +1 -1
- package/build/esm/useHealthToolCache-df31304e.js +1 -0
- package/build/esm/{useRafState-8d9c7b59.js → useRafState-bc3ac5aa.js} +1 -1
- package/build/esm/useTranslations-05837a9e.js +1 -0
- package/build/esm/{utils-9d26d9cd.js → utils-3009cefc.js} +1 -1
- package/build/esm/utils-ccc4a5e9.js +95 -0
- package/build/esm/vaccination.js +42 -42
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-a14277e0.js +1 -0
- package/build/{getSocialList-b7f1c4b7.js → getSocialList-37581c7d.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/index-0a4911a1.js +1753 -0
- package/build/index-0e327af2.js +3685 -0
- package/build/{index-31015f04.js → index-10f7317e.js} +1 -1
- package/build/index-1bc33e43.js +1 -0
- package/build/index-2230d12c.js +1 -0
- package/build/index-2467e265.js +113 -0
- package/build/index-274793c5.js +117 -0
- package/build/index-3047af35.js +7 -0
- package/build/{index-3a1969aa.js → index-3d1655e0.js} +1 -1
- package/build/index-475c1821.js +53 -0
- package/build/index-70f6c589.js +112 -0
- package/build/index-71be9200.js +1 -0
- package/build/index-728a4402.js +50 -0
- package/build/{index-5e09eed8.js → index-740296dd.js} +1 -1
- package/build/index-8fb9f088.js +1 -0
- package/build/{index-26a9cb99.js → index-cc10cf61.js} +1 -1
- package/build/index-d0cbf725.js +1 -0
- package/build/index-e93927bc.js +1 -0
- package/build/index-ea955702.js +1 -0
- package/build/index-edcc06eb.js +1 -0
- package/build/{index-b0035598.js → index-ee44c94e.js} +1 -1
- package/build/index-ef6168ac.js +1 -0
- package/build/index-f7c7879e.js +177 -0
- package/build/index-f997de2b.js +1 -0
- package/build/index.js +1 -1
- package/build/index.styled-a46b79b0.js +3213 -0
- package/build/{index.styled-b0e7f522.js → index.styled-b3aa0666.js} +4 -4
- package/build/index.styled-c6298749.js +69 -0
- package/build/index.styles-d2621c65.js +1007 -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/normalizeLink-6f77aba7.js +1 -0
- package/build/onboarding.js +1 -1
- package/build/onboardingV2.js +16 -16
- package/build/pwg.js +3 -3
- package/build/routing-53fc64a4.js +1 -0
- package/build/together.js +1 -1
- package/build/types-30ee95b9.js +1 -0
- package/build/{types-bf5ebc0d.js → types-32621a06.js} +62 -62
- package/build/types.js +1 -1
- package/build/{useCategory-dc12e7ad.js → useCategory-6e0a71ba.js} +1 -1
- package/build/useHealthToolCache-7bf3a7a8.js +1 -0
- package/build/{useRafState-65133baa.js → useRafState-12d4ce4d.js} +1 -1
- package/build/{useTranslations-28e26c46.js → useTranslations-7420f9ed.js} +1 -1
- package/build/{utils-6cd97d47.js → utils-0ba15ed3.js} +1 -1
- package/build/utils-98636ed9.js +95 -0
- package/build/vaccination.js +12 -12
- package/package.json +1 -1
- package/build/core-610b36a3.js +0 -1
- package/build/esm/fixedBottomAdBlock-0c3a876a.js +0 -1
- package/build/esm/getDynamicHealthTool-1cfa664a.js +0 -1
- package/build/esm/index-0fb0fb54.js +0 -1
- package/build/esm/index-26746e0d.js +0 -53
- package/build/esm/index-37cf5bc5.js +0 -1
- package/build/esm/index-4245202a.js +0 -1
- package/build/esm/index-64309689.js +0 -1
- package/build/esm/index-70f9c219.js +0 -75
- package/build/esm/index-71b4b559.js +0 -1
- package/build/esm/index-8e7bc67e.js +0 -1
- package/build/esm/index-8ff095ca.js +0 -1
- package/build/esm/index-c164eaaa.js +0 -1
- package/build/esm/index-cc8e6df2.js +0 -1
- package/build/esm/index-d82fcf31.js +0 -1
- package/build/esm/index-d842c948.js +0 -6897
- package/build/esm/index-e550d436.js +0 -1
- package/build/esm/index-e99defc3.js +0 -177
- package/build/esm/index-e9c1665b.js +0 -113
- package/build/esm/index-fd4f7b7c.js +0 -1
- package/build/esm/index.styled-134f11d7.js +0 -1869
- package/build/esm/index.styled-2dacbc96.js +0 -50
- package/build/esm/index.styles-79ae3e58.js +0 -1212
- package/build/esm/types-de957b65.js +0 -1
- package/build/esm/useHealthToolCache-eec17a72.js +0 -1
- package/build/esm/useTranslations-b36e2b05.js +0 -1
- package/build/fixedBottomAdBlock-198564d8.js +0 -1
- package/build/getDynamicHealthTool-db234614.js +0 -1
- package/build/index-13b128f5.js +0 -1
- package/build/index-15dd07cd.js +0 -1
- package/build/index-25bddffd.js +0 -1
- package/build/index-28a23b79.js +0 -75
- package/build/index-403c39bc.js +0 -6897
- package/build/index-5ee2331f.js +0 -53
- package/build/index-6982ad7c.js +0 -1
- package/build/index-907ed1f0.js +0 -177
- package/build/index-9cbdd5ae.js +0 -1
- package/build/index-b762a337.js +0 -1
- package/build/index-b7cd787f.js +0 -1
- package/build/index-b81e0346.js +0 -1
- package/build/index-c2889363.js +0 -1
- package/build/index-d0c9c689.js +0 -1
- package/build/index-eba66a63.js +0 -113
- package/build/index-f11be8c1.js +0 -1
- package/build/index.styled-40fd2628.js +0 -50
- package/build/index.styled-e0f2cf2e.js +0 -1869
- package/build/index.styles-0bb23c74.js +0 -1212
- package/build/normalizeLink-e04c6dc0.js +0 -1
- package/build/types-1e4ce1ac.js +0 -1
- package/build/useHealthToolCache-3a65d5b1.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-9ff29d42.js → BMI_BOYS.percentile.monthly-57cc23fd.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-ebda0825.js → BMI_BOYS.percentile.weekly-632d0534.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-28e13f36.js → BMI_BOYS.percentile.yearly-0c76bf5c.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-7593bdc5.js → BMI_BOYS.zscore.monthly-a0fdb7b1.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-d98ef87e.js → BMI_BOYS.zscore.weekly-a106353a.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-715ca0c2.js → BMI_BOYS.zscore.yearly-912d1268.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-2b067ff1.js → BMI_GIRLS.percentile.monthly-d2e097dc.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-db4ef66a.js → BMI_GIRLS.percentile.weekly-7bef746a.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-d4e899a8.js → BMI_GIRLS.percentile.yearly-c1e1433e.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-d7b4961b.js → BMI_GIRLS.zscore.monthly-13eb28ae.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-f58ef7de.js → BMI_GIRLS.zscore.weekly-a1f51b61.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-f4d39504.js → BMI_GIRLS.zscore.yearly-4aedf41f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-96ff8eed.js → HEAD CIRCUM_BOYS.percentile.monthly-65481a0c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-72184e65.js → HEAD CIRCUM_BOYS.percentile.weekly-a306e056.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-8e62f04d.js → HEAD CIRCUM_BOYS.percentile.yearly-03fc0b41.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-eea0d4a5.js → HEAD CIRCUM_BOYS.zscore.monthly-d72461de.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-de97598b.js → HEAD CIRCUM_BOYS.zscore.weekly-e25f3797.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-43c5c322.js → HEAD CIRCUM_BOYS.zscore.yearly-bcae45ff.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-6189c2b4.js → HEAD CIRCUM_GIRLS.percentile.monthly-bc1046a2.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-349469bb.js → HEAD CIRCUM_GIRLS.percentile.weekly-32beb7ff.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-e3d4be7c.js → HEAD CIRCUM_GIRLS.percentile.yearly-ca795d61.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-27d35f01.js → HEAD CIRCUM_GIRLS.zscore.monthly-b0916200.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-aca7529a.js → HEAD CIRCUM_GIRLS.zscore.weekly-c0181a50.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-1f37b076.js → HEAD CIRCUM_GIRLS.zscore.yearly-fbfbd4e1.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-05507ce5.js → HEIGHT_BOYS.percentile.monthly-c816c818.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-e985b9e4.js → HEIGHT_BOYS.percentile.weekly-c2af85a4.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-b2f8b14c.js → HEIGHT_BOYS.percentile.yearly-b3b6d7bc.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-00f9afac.js → HEIGHT_BOYS.zscore.monthly-0b4b3054.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-68fabfee.js → HEIGHT_BOYS.zscore.weekly-c8e7c322.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-83c1a341.js → HEIGHT_BOYS.zscore.yearly-1b149d72.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-26583afe.js → HEIGHT_GIRLS.percentile.monthly-d1e489b5.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-79abeb0b.js → HEIGHT_GIRLS.percentile.weekly-6c53d632.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-64422f8a.js → HEIGHT_GIRLS.percentile.yearly-1697e8f9.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-e275e8ba.js → HEIGHT_GIRLS.zscore.monthly-faffebfc.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-8a153fb1.js → HEIGHT_GIRLS.zscore.weekly-ebab3da8.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-324d4010.js → HEIGHT_GIRLS.zscore.yearly-1739a385.js} +0 -0
- /package/build/{Onboarding-582d83d6.js → Onboarding-2c294647.js} +0 -0
- /package/build/{Visible-42426df1.js → Visible-b13b1c4c.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-e903c56d.js → WEIGHT_BOYS.percentile.monthly-2f2d3368.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-76a0f051.js → WEIGHT_BOYS.percentile.weekly-1a9894f6.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-5cb040b5.js → WEIGHT_BOYS.percentile.yearly-7688ee4f.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-4d132e11.js → WEIGHT_BOYS.zscore.monthly-1236dd8a.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-9b044ce7.js → WEIGHT_BOYS.zscore.weekly-bc0f86f8.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-826dc29e.js → WEIGHT_BOYS.zscore.yearly-a1d6f4be.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-05d2b0bb.js → WEIGHT_GIRLS.percentile.monthly-c2261aa9.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-7fc685d6.js → WEIGHT_GIRLS.percentile.weekly-ed8b09e1.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-1f9b479a.js → WEIGHT_GIRLS.percentile.yearly-e0c0218a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-df3718df.js → WEIGHT_GIRLS.zscore.monthly-5fc066d3.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-e44a65b8.js → WEIGHT_GIRLS.zscore.weekly-112e12e0.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-4bf7736b.js → WEIGHT_GIRLS.zscore.yearly-80b1fbad.js} +0 -0
- /package/build/{constants-158bcf5e.js → constants-8b4bb24f.js} +0 -0
- /package/build/{cookieHelper-f29c6ed7.js → cookieHelper-ad36b15e.js} +0 -0
- /package/build/{dataTransform-f5895b8e.js → dataTransform-f59194a9.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-986bdda0.js → BMI_BOYS.percentile.monthly-aa1786b0.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-5d2101f5.js → BMI_BOYS.percentile.weekly-a6a19e6d.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-055c9f8e.js → BMI_BOYS.percentile.yearly-b2039f17.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-4d137be0.js → BMI_BOYS.zscore.monthly-b0b1d328.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-e993fca7.js → BMI_BOYS.zscore.weekly-bf78fc24.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-0abef77e.js → BMI_BOYS.zscore.yearly-4c2c7d6d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-417d56e3.js → BMI_GIRLS.percentile.monthly-419c9aa9.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-b671cbdb.js → BMI_GIRLS.percentile.weekly-946c9cbe.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-d24e3ba8.js → BMI_GIRLS.percentile.yearly-4a0da388.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-1905b10a.js → BMI_GIRLS.zscore.monthly-d97cb39b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-cd5960a7.js → BMI_GIRLS.zscore.weekly-c1b68adf.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-d28f4da0.js → BMI_GIRLS.zscore.yearly-a6871f52.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-0ebc6a12.js → HEAD CIRCUM_BOYS.percentile.monthly-11f66995.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-7aba7dfa.js → HEAD CIRCUM_BOYS.percentile.weekly-2d46f323.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-18c81a2a.js → HEAD CIRCUM_BOYS.percentile.yearly-85bf421c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-17eab2c2.js → HEAD CIRCUM_BOYS.zscore.monthly-20d70e7e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-152a621b.js → HEAD CIRCUM_BOYS.zscore.weekly-ee2caf94.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-91e40bf5.js → HEAD CIRCUM_BOYS.zscore.yearly-204edc92.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-ae50357d.js → HEAD CIRCUM_GIRLS.percentile.monthly-3e30f44a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-12a057fc.js → HEAD CIRCUM_GIRLS.percentile.weekly-2c4785c6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-c239e130.js → HEAD CIRCUM_GIRLS.percentile.yearly-a5a1ede0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-2c892440.js → HEAD CIRCUM_GIRLS.zscore.monthly-ead918d2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-f6acc52c.js → HEAD CIRCUM_GIRLS.zscore.weekly-71c16457.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-7a310cfd.js → HEAD CIRCUM_GIRLS.zscore.yearly-011b25a5.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-b609f55f.js → HEIGHT_BOYS.percentile.monthly-8bb0c1c9.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-99f13574.js → HEIGHT_BOYS.percentile.weekly-b42f641e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-15cc5e08.js → HEIGHT_BOYS.percentile.yearly-a64ad1ab.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-422542bb.js → HEIGHT_BOYS.zscore.monthly-c599622f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-2bbfc3e9.js → HEIGHT_BOYS.zscore.weekly-0be27c84.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-e56da9d1.js → HEIGHT_BOYS.zscore.yearly-3e179aa0.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-2c9fd265.js → HEIGHT_GIRLS.percentile.monthly-760eb830.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-6e0e4836.js → HEIGHT_GIRLS.percentile.weekly-fdc1d9a9.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-6b910709.js → HEIGHT_GIRLS.percentile.yearly-620a4348.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-5b46cb95.js → HEIGHT_GIRLS.zscore.monthly-d834d9bd.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-ef97e180.js → HEIGHT_GIRLS.zscore.weekly-a6b93a18.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-94652254.js → HEIGHT_GIRLS.zscore.yearly-2c84faf3.js} +0 -0
- /package/build/esm/{Onboarding-559cafd7.js → Onboarding-8b28384b.js} +0 -0
- /package/build/esm/{Visible-5f168723.js → Visible-2734edb1.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-fc3d6d26.js → WEIGHT_BOYS.percentile.monthly-f720d1ea.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-9cd0f6d3.js → WEIGHT_BOYS.percentile.weekly-d6c016bd.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-4fbc5e9f.js → WEIGHT_BOYS.percentile.yearly-7e061999.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-456216e4.js → WEIGHT_BOYS.zscore.monthly-e95f3fcc.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-5c159f76.js → WEIGHT_BOYS.zscore.weekly-6a0c59f7.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-47da0ee1.js → WEIGHT_BOYS.zscore.yearly-aed9a96b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-e8f822e5.js → WEIGHT_GIRLS.percentile.monthly-82dd66db.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-d938b6da.js → WEIGHT_GIRLS.percentile.weekly-8463cb34.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-b9d2fe17.js → WEIGHT_GIRLS.percentile.yearly-792742b2.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-272ae9b5.js → WEIGHT_GIRLS.zscore.monthly-55e03c4d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-3949eaaa.js → WEIGHT_GIRLS.zscore.weekly-fcc2e366.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-3f00a29f.js → WEIGHT_GIRLS.zscore.yearly-4057e6c0.js} +0 -0
- /package/build/esm/{constants-8cd62905.js → constants-91b49401.js} +0 -0
- /package/build/esm/{cookieHelper-7367cf92.js → cookieHelper-ffc88d6d.js} +0 -0
- /package/build/esm/{dataTransform-336e2f64.js → dataTransform-ce680a45.js} +0 -0
- /package/build/esm/{index-32263bce.js → index-c58a569a.js} +0 -0
- /package/build/esm/{isProduction-b505c0ba.js → isProduction-f4dbc2d4.js} +0 -0
- /package/build/esm/{localizeNumberFormat-78516620.js → localizeNumberFormat-adf5537b.js} +0 -0
- /package/build/esm/{number-49b61798.js → number-9efd2432.js} +0 -0
- /package/build/esm/{paths-0b7f6138.js → paths-0d7f7cf7.js} +0 -0
- /package/build/esm/{screenSizeContext-1ec9daa5.js → screenSizeContext-b15d4040.js} +0 -0
- /package/build/esm/{theme-a4d0ce02.js → theme-ef15bf8f.js} +0 -0
- /package/build/esm/{translationsContext-aa98e663.js → translationsContext-cbd16a7a.js} +0 -0
- /package/build/esm/{tslib.es6-45e8b05c.js → tslib.es6-ffda1476.js} +0 -0
- /package/build/esm/{types-45f6a266.js → types-04c6da41.js} +0 -0
- /package/build/esm/{useIsInit-02462125.js → useIsInit-723ea6f5.js} +0 -0
- /package/build/esm/{useOutsideClick-6bbbaf97.js → useOutsideClick-e7e62f33.js} +0 -0
- /package/build/esm/{useScrollbarSize-2d0b9e6a.js → useScrollbarSize-0e377e6b.js} +0 -0
- /package/build/esm/{useUniqueId-60cbe25c.js → useUniqueId-1038f9f9.js} +0 -0
- /package/build/{index-c10de385.js → index-8da7283b.js} +0 -0
- /package/build/{isProduction-fd2103d5.js → isProduction-5aae4b14.js} +0 -0
- /package/build/{localizeNumberFormat-bc7ccd38.js → localizeNumberFormat-7e560d31.js} +0 -0
- /package/build/{number-962a7e7d.js → number-febb1faa.js} +0 -0
- /package/build/{paths-2ff3250b.js → paths-14eca773.js} +0 -0
- /package/build/{screenSizeContext-f737da48.js → screenSizeContext-c251c3ca.js} +0 -0
- /package/build/{theme-8b5f966c.js → theme-9702e4a2.js} +0 -0
- /package/build/{translationsContext-8265082e.js → translationsContext-7f595667.js} +0 -0
- /package/build/{tslib.es6-55de5717.js → tslib.es6-bf581e84.js} +0 -0
- /package/build/{types-9a25101f.js → types-f42385e6.js} +0 -0
- /package/build/{useIsInit-d64fc7d6.js → useIsInit-2c40d9b5.js} +0 -0
- /package/build/{useOutsideClick-71244751.js → useOutsideClick-27ecfa40.js} +0 -0
- /package/build/{useScrollbarSize-10fa4b42.js → useScrollbarSize-01e15c99.js} +0 -0
- /package/build/{useUniqueId-ab4de6cd.js → useUniqueId-5793761d.js} +0 -0
|
@@ -0,0 +1,3213 @@
|
|
|
1
|
+
"use strict";var e=require("react"),t=require("./index.styles-d2621c65.js"),a=require("./index-70f6c589.js"),o=require("@mantine/core"),r=require("./screenSizeContext-c251c3ca.js"),l=require("styled-components"),n=require("./tslib.es6-bf581e84.js"),i=require("./useTranslations-7420f9ed.js"),s=require("./index-10f7317e.js"),d=require("./index-ef6168ac.js"),c=require("./index-3d1655e0.js"),u=require("./index-740296dd.js"),p=require("dayjs"),m=require("./theme-9702e4a2.js"),g=require("./index-ee44c94e.js"),h=require("./isProduction-5aae4b14.js");require("./Onboarding-2c294647.js");var f=require("./gAssets.js"),v=require("./index-274793c5.js");require("@mantine/dates");var b=require("./number-febb1faa.js"),x=require("./index-3047af35.js");require("@mantine/hooks");var w=require("date-fns");require("./translationsContext-7f595667.js"),require("string-format");var y=require("./routing-53fc64a4.js"),C=require("dayjs/plugin/relativeTime"),E=require("./paths-14eca773.js"),k=require("./constants-8b4bb24f.js"),A=require("lodash/debounce");require("./useCategory-6e0a71ba.js");var N=require("./index-8fb9f088.js");require("innertext");var T=require("./cookieHelper-ad36b15e.js"),S=require("./useUniqueId-5793761d.js");function z(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function P(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,o.get?o:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}require("./index-2467e265.js"),require("react-contenteditable"),require("react-dom"),require("./utils-98636ed9.js"),require("./index.styled-c6298749.js"),require("./index-1bc33e43.js");var L=z(e),M=P(e),B=z(l),R=z(p),I=z(C),O=z(A);const j={admin:"cardAuthor.admin",moderator:"cardAuthor.moderator",ambassador:"cardAuthor.ambassador",expert:"cardAuthor.expert",sponsor:"cardAuthor.sponsor",guide:"cardAuthor.guide",influencer:"cardAuthor.influencer"},V=e=>{var{siteType:a,role:o,title:r,styles:l,className:s}=e,d=n.__rest(e,["siteType","role","title","styles","className"]);const{t:c}=i.useTranslations(),u=o?(e=>["admin","moderator","ambassador","expert","sponsor","guide","influencer"].find((t=>t===e)))(o):"",{classes:p,cx:m}=t.useStyles$1(void 0,{name:"AuthorBadge",styles:l});return u&&j[u]?L.default.createElement("div",Object.assign({className:m(p.root,s),"data-label-type":u,"data-is-marrybaby":"marryBaby"===a},d),r||c(j[u])):null};var F="Dudns9-";const D=o=>{var{label:r,bookingId:l,bookingType:s="doctor",locale:d="vi-VN"}=o,c=n.__rest(o,["label","bookingId","bookingType","locale"]);const{t:u}=i.useTranslations(),[p,m]=e.useState(!1),f=e.useMemo((()=>"undefined"!=typeof window?window.location.href:""),[]),v=e.useCallback((()=>n.__awaiter(void 0,void 0,void 0,(function*(){var e,a,o,r,n,i,c,u,p,f,v,b,x,w,y;const C="doctor"===s?E.PATHS.GET_DOCTOR_DETAIL:"hospital"===s?E.PATHS.GET_HOSPITAL_DETAIL:"service"===s?E.PATHS.GET_SERVICE_DETAIL:"";try{m(!0);const E=yield t.callApi(t.getCarePath(C,{id:l,site:g.domainLocales[d]}),"get");if(1===(null==E?void 0:E._status)){const t="doctor"===s?{id:null===(a=null===(e=null==E?void 0:E._data)||void 0===e?void 0:e.doctor)||void 0===a?void 0:a.id,slug:null===(r=null===(o=null==E?void 0:E._data)||void 0===o?void 0:o.doctor)||void 0===r?void 0:r.slug,localSlug:null===(n=k.LOCALIZED_SLUGS[d])||void 0===n?void 0:n.DOCTOR}:"hospital"===s?{id:null===(c=null===(i=null==E?void 0:E._data)||void 0===i?void 0:i.branch)||void 0===c?void 0:c.id,slug:null===(p=null===(u=null==E?void 0:E._data)||void 0===u?void 0:u.branch)||void 0===p?void 0:p.slug,localSlug:null===(f=k.LOCALIZED_SLUGS[d])||void 0===f?void 0:f.HOSPITAL}:{id:null===(b=null===(v=null==E?void 0:E._data)||void 0===v?void 0:v.service)||void 0===b?void 0:b.id,slug:null===(w=null===(x=null==E?void 0:E._data)||void 0===x?void 0:x.service)||void 0===w?void 0:w.slug,localSlug:null===(y=k.LOCALIZED_SLUGS[d])||void 0===y?void 0:y.SERVICE};window.location.href=`https://${h.isProduction?"":"discover."}${g.domainLocales[d]}/care/${t.localSlug}/${t.slug}-${t.id}/`}else m(!1)}catch(e){console.log(e),m(!1)}}))),[]);return l&&s?L.default.createElement(a.Button,Object.assign({dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:f,onClick:v,loading:p},c),r||u("careBooking.bookAnAppointment")):null},U=e=>M.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),M.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"})),q=B.default.div`
|
|
2
|
+
--dropdown-padding: 12px 18px 12px 16px;
|
|
3
|
+
position: relative;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
border: 1px solid ${e=>e.theme.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: ${e=>e.theme.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: ${e=>e.theme.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
|
+
`,H=B.default.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: ${e=>e.theme.borderRadius};
|
|
93
|
+
box-shadow: 0 0 2px 2px ${e=>e.shadowColor};
|
|
94
|
+
}
|
|
95
|
+
`,W=B.default.ul`
|
|
96
|
+
position: absolute;
|
|
97
|
+
top: 100%;
|
|
98
|
+
right: 0;
|
|
99
|
+
left: 0;
|
|
100
|
+
display: block;
|
|
101
|
+
margin-top: 4px;
|
|
102
|
+
background: ${e=>e.theme.colors.white};
|
|
103
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
104
|
+
box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),
|
|
105
|
+
-2px 2px 5px rgba(67, 86, 100, 0.123689);
|
|
106
|
+
cursor: pointer;
|
|
107
|
+
|
|
108
|
+
&[data-has-icons='true'] {
|
|
109
|
+
border: 1px solid ${e=>e.theme.colors.gray200};
|
|
110
|
+
background: white;
|
|
111
|
+
box-shadow: none;
|
|
112
|
+
filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04));
|
|
113
|
+
}
|
|
114
|
+
`,G=B.default.li`
|
|
115
|
+
display: flex;
|
|
116
|
+
padding: 12px 18px 12px 16px;
|
|
117
|
+
&[data-disabled='true'] {
|
|
118
|
+
cursor: not-allowed;
|
|
119
|
+
color: #bfbfbf;
|
|
120
|
+
& > * {
|
|
121
|
+
pointer-events: none;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
&:hover,
|
|
125
|
+
:active {
|
|
126
|
+
background: ${e=>e.theme.colors.gray100};
|
|
127
|
+
}
|
|
128
|
+
`,Z=B.default.div`
|
|
129
|
+
max-width: 16px;
|
|
130
|
+
margin-right: 8px;
|
|
131
|
+
`,Q=B.default.div`
|
|
132
|
+
position: absolute;
|
|
133
|
+
top: 12px;
|
|
134
|
+
left: 16px;
|
|
135
|
+
pointer-events: none;
|
|
136
|
+
`,X=e.createContext({}),_=a=>{const{data:{userInfo:o,env:{togetherBasePath:r}}}=e.useContext(t.TogetherComponentGlobalContext),{defaultParams:l}=e.useContext(X)||{},n=null==o?void 0:o.id,i=o&&"number"==typeof o.communities_interacted&&0===o.communities_interacted;return{authActionWrapper:(e,o)=>{const s=Object.assign(Object.assign(Object.assign({},l),a),o);if(!n||i){n||T.deleteCookie(t.BEARER_TOKEN_COOKIE),(null==s?void 0:s._joinCommunityIds)&&(localStorage.setItem("to_join_community_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_community_ids")||"[]")||[]).concat(s._joinCommunityIds).filter(Boolean))))),null==s||delete s._joinCommunityIds),(null==s?void 0:s._joinTopicIds)&&(localStorage.setItem("to_join_topic_ids",JSON.stringify(Array.from(new Set((JSON.parse(localStorage.getItem("to_join_topic_ids")||"[]")||[]).concat(s._joinTopicIds).filter(Boolean))))),null==s||delete s._joinTopicIds);const e=(null==s?void 0:s._location)||window.location.href;return null==s||delete s._location,window.location.href=t.getUrlToSignUp(e,s,r),null}return e&&e()},params:Object.assign(Object.assign({},l),a)}},K=B.default.div`
|
|
137
|
+
display: flex;
|
|
138
|
+
align-items: center;
|
|
139
|
+
justify-content: center;
|
|
140
|
+
padding: 1em;
|
|
141
|
+
button {
|
|
142
|
+
position: relative;
|
|
143
|
+
}
|
|
144
|
+
`,Y=l.keyframes`
|
|
145
|
+
0% {
|
|
146
|
+
transform: rotate(0deg);
|
|
147
|
+
}
|
|
148
|
+
100% {
|
|
149
|
+
transform: rotate(360deg);
|
|
150
|
+
}
|
|
151
|
+
`;B.default.div`
|
|
152
|
+
display: flex;
|
|
153
|
+
width: fit-content;
|
|
154
|
+
width: -moz-fit-content;
|
|
155
|
+
flex-direction: column;
|
|
156
|
+
align-items: center;
|
|
157
|
+
justify-content: center;
|
|
158
|
+
padding: 1rem 2rem;
|
|
159
|
+
background: white;
|
|
160
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
161
|
+
box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),
|
|
162
|
+
-2px 2px 5px rgba(67, 86, 100, 0.123689);
|
|
163
|
+
.loading-spinner {
|
|
164
|
+
width: 24px;
|
|
165
|
+
height: 24px;
|
|
166
|
+
margin-bottom: 0.5rem;
|
|
167
|
+
animation: ${Y} 1.2s linear infinite;
|
|
168
|
+
}
|
|
169
|
+
&[data-is-marrybaby='true'] {
|
|
170
|
+
box-shadow: none;
|
|
171
|
+
}
|
|
172
|
+
`;const $=({className:e,size:t="md"})=>{const{t:a}=i.useTranslations();return L.default.createElement(K,{className:e},L.default.createElement(s.Button,{size:t,color:"transparent",isLoading:!0},a("loading")))},J=B.default.div`
|
|
173
|
+
.link-info-container {
|
|
174
|
+
padding: 0.5rem 1rem;
|
|
175
|
+
background: ${e=>e.color||"#f4faff"};
|
|
176
|
+
}
|
|
177
|
+
.link-image-wrapper {
|
|
178
|
+
position: relative;
|
|
179
|
+
overflow: hidden;
|
|
180
|
+
width: 100%;
|
|
181
|
+
padding-top: min(280px, 56.25%);
|
|
182
|
+
.link-image-blur {
|
|
183
|
+
position: absolute;
|
|
184
|
+
top: 50%;
|
|
185
|
+
left: 50%;
|
|
186
|
+
width: 110%;
|
|
187
|
+
height: 110%;
|
|
188
|
+
/* Add the blur effect */
|
|
189
|
+
-webkit-filter: blur(8px);
|
|
190
|
+
filter: blur(8px);
|
|
191
|
+
object-fit: cover;
|
|
192
|
+
object-position: center;
|
|
193
|
+
opacity: 0.8;
|
|
194
|
+
transform: translate(-50%, -50%);
|
|
195
|
+
}
|
|
196
|
+
.link-image {
|
|
197
|
+
position: absolute;
|
|
198
|
+
top: 0;
|
|
199
|
+
left: 0;
|
|
200
|
+
width: 100%;
|
|
201
|
+
height: 100%;
|
|
202
|
+
object-fit: contain;
|
|
203
|
+
object-position: center;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
a {
|
|
207
|
+
text-decoration: none;
|
|
208
|
+
}
|
|
209
|
+
&[data-is-marrybaby='true'] {
|
|
210
|
+
overflow: hidden;
|
|
211
|
+
border-radius: 1rem;
|
|
212
|
+
.link-info-container {
|
|
213
|
+
padding-bottom: 1rem;
|
|
214
|
+
p {
|
|
215
|
+
color: #2661ad;
|
|
216
|
+
}
|
|
217
|
+
.link-logo {
|
|
218
|
+
max-width: 2rem;
|
|
219
|
+
height: 13px;
|
|
220
|
+
margin-right: 4px;
|
|
221
|
+
object-fit: contain;
|
|
222
|
+
vertical-align: middle;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
.link-image-wrapper {
|
|
226
|
+
padding-top: min(360px, 56.25%);
|
|
227
|
+
.link-image {
|
|
228
|
+
object-fit: cover;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
`,ee=e.createContext({});var te="vvR-m49";const ae=({children:t,className:a=""})=>{const{isReplied:o,trackingCategory:r,trackingLabel:l,onLikeClick:n}=e.useContext(ee);return L.default.createElement("div",{className:`${te} ${a}`,"data-event-category":r,"data-event-action":o?"Like Comment Click":"Like Post Click","data-event-label":l,onClick:()=>{null==n||n()}},t)},oe=({children:t,className:a=""})=>{const{trackingCategory:o,trackingLabel:r,onShareClick:l}=e.useContext(ee);return L.default.createElement("div",{className:`${te} ${a}`,onClick:()=>{null==l||l()},"data-event-category":o,"data-event-action":"Share Icon Click","data-event-label":r},t)},re=({children:t,className:a=""})=>{const{isReplied:o,trackingCategory:r,trackingLabel:l,onCommentClick:n}=e.useContext(ee);return L.default.createElement("div",{className:`${te} ${a}`,"data-event-category":r,"data-event-action":o?"Reply Comment Click":"Comment Text Click","data-event-label":l,onClick:e=>{e.preventDefault(),e.stopPropagation(),null==n||n()}},t)};var le,ne="UhiT4m5",ie="oEfeTkV",se="OlbikxJ",de="_9GXHCn3",ce="HCsrR0N",ue="MV3lNuh";exports.CardReactionType=void 0,(le=exports.CardReactionType||(exports.CardReactionType={}))[le.post=1]="post",le[le.reply=2]="reply";const pe=o=>{var{type:r,viewCount:l=0,loveCount:s=0,replyCount:c=0,replyPadding:u,liked:p,isReplied:g,onCommentClick:h,onLikeClick:f,onShareClick:v,className:x,style:w,hideCommentIcon:y,showingMostEngaging:C,isMarryBaby:E,hasShare:k=!0,hasCountLike:A=!0,trackingCategory:N="Together",trackingLabel:T="",children:S}=o,z=n.__rest(o,["type","viewCount","loveCount","replyCount","replyPadding","liked","isReplied","onCommentClick","onLikeClick","onShareClick","className","style","hideCommentIcon","showingMostEngaging","isMarryBaby","hasShare","hasCountLike","trackingCategory","trackingLabel","children"]);const{data:{env:{isMarryBaby:P}}}=e.useContext(t.TogetherComponentGlobalContext),M=Boolean(E)?E:P,{t:B}=i.useTranslations();return L.default.createElement(ee.Provider,{value:{liked:p,loveCount:s,trackingCategory:N,trackingLabel:T,isReplied:g,onLikeClick:f,onShareClick:v,onCommentClick:h}},S||L.default.createElement("div",Object.assign({className:`${ne} ${x}`,"data-show-most-engaging":C,"data-type":r===exports.CardReactionType.post?"post":"reply","data-reply-padding":r===exports.CardReactionType.reply&&u,"data-is-marrybaby":M,style:w},z),L.default.createElement("div",{className:ie},L.default.createElement("div",{className:se},L.default.createElement(ae,{className:ce},L.default.createElement(a.Text,{className:de,size:"p3",as:"div"},L.default.createElement(d.Heart,{className:"txt-icon",isMarryBaby:M,isSolid:p,color:p?M?m.theme.mbColors.pink:m.theme.colors.red800:"#737373"}),A&&L.default.createElement("div",{className:ue},s))),k&&L.default.createElement(oe,{className:ce},L.default.createElement(a.Text,{size:"p3",className:de,as:"div"},L.default.createElement(d.Icon.Share,{isMarryBaby:M}))),L.default.createElement(a.Text,{size:"p3",className:de,as:"div"},L.default.createElement(d.Icon.Eye,{isMarryBaby:M}),L.default.createElement("div",{className:ue},b.abbreviateNumber(l)))),!y&&L.default.createElement(re,{className:ce},L.default.createElement(a.Text,{size:"p3",className:de,as:"div"},g?L.default.createElement(d.Icon.Reply,{className:"txt-icon"}):L.default.createElement(d.Icon.Comment,{className:"txt-icon",isMarryBaby:M}),g?B("cardReactions.reply"):L.default.createElement("div",{className:ue},B("post.commentCount",{count:c})))))))};pe.LikeWrapper=ae,pe.ShareWrapper=oe,pe.CommentWrapper=re;const me=o.createStyles((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:{}}))),ge=B.default.div`
|
|
233
|
+
display: flex;
|
|
234
|
+
align-items: center;
|
|
235
|
+
justify-content: space-between;
|
|
236
|
+
padding: 16px;
|
|
237
|
+
cursor: pointer;
|
|
238
|
+
&[data-color='gray'] {
|
|
239
|
+
background: ${e=>e.theme.colors.neutral50};
|
|
240
|
+
}
|
|
241
|
+
&[data-color='white'] {
|
|
242
|
+
border-bottom: 1px solid #e4e8ec;
|
|
243
|
+
background: ${e=>e.theme.colors.white};
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.popover-menu__btn {
|
|
247
|
+
display: flex;
|
|
248
|
+
min-width: 2rem;
|
|
249
|
+
height: 2rem;
|
|
250
|
+
align-items: center;
|
|
251
|
+
padding: 8px 0 !important;
|
|
252
|
+
border: none;
|
|
253
|
+
margin-left: 0.5rem;
|
|
254
|
+
background: transparent;
|
|
255
|
+
> span {
|
|
256
|
+
display: flex;
|
|
257
|
+
align-items: center;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
&:hover {
|
|
261
|
+
background: transparent !important;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
&.label-pinned {
|
|
266
|
+
border-radius: ${e=>e.theme.borderRadius} 6px 0 0;
|
|
267
|
+
.label-sort-pin-icon {
|
|
268
|
+
width: 16px;
|
|
269
|
+
height: 16px;
|
|
270
|
+
vertical-align: middle;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
&[data-is-marrybaby='true'] {
|
|
275
|
+
padding: 0.75rem 1rem;
|
|
276
|
+
border-radius: 16px 16px 0px 0px;
|
|
277
|
+
&[data-color='white'] {
|
|
278
|
+
border-bottom: none;
|
|
279
|
+
}
|
|
280
|
+
&[data-color='gray'] {
|
|
281
|
+
background: #f3f3f3;
|
|
282
|
+
}
|
|
283
|
+
.popover-menu__btn {
|
|
284
|
+
width: unset;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
&.label-pinned {
|
|
288
|
+
border-bottom: none;
|
|
289
|
+
background: #fff9eb;
|
|
290
|
+
border-radius: 1rem 1rem 0 0;
|
|
291
|
+
.label-sort-pin-icon {
|
|
292
|
+
margin-right: 8px;
|
|
293
|
+
}
|
|
294
|
+
.label-sort-pin-heading {
|
|
295
|
+
color: #fb8c00;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
&.label-sorting {
|
|
299
|
+
${r.MediaQueries.tdUp} {
|
|
300
|
+
padding-bottom: 1.5rem;
|
|
301
|
+
margin-bottom: -0.75rem;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
`,he=({label:a,rightLabel:o,onClick:r,color:l,className:n,style:i})=>{const{data:{env:{isMarryBaby:s}}}=e.useContext(t.TogetherComponentGlobalContext);return L.default.createElement(ge,{"data-is-marrybaby":s,"data-color":l,onClick:r,className:n,style:i},L.default.createElement(u.Text,{className:"label-sort-pin-heading",size:s?"p4":"p3",type:"bold"},a),o)};const fe=B.default.div`
|
|
306
|
+
position: relative;
|
|
307
|
+
display: content;
|
|
308
|
+
|
|
309
|
+
.popover-menu__btn {
|
|
310
|
+
/* position: relative; */
|
|
311
|
+
> span {
|
|
312
|
+
width: 100%;
|
|
313
|
+
height: 100%;
|
|
314
|
+
> img {
|
|
315
|
+
width: 100%;
|
|
316
|
+
height: 100%;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.popover-menu__content {
|
|
322
|
+
position: absolute;
|
|
323
|
+
z-index: 10;
|
|
324
|
+
width: 320px;
|
|
325
|
+
padding: 8px;
|
|
326
|
+
border: none;
|
|
327
|
+
background: #fff;
|
|
328
|
+
border-radius: 8px;
|
|
329
|
+
box-shadow: 3px 3px 20px rgba(0, 0, 0, 0.1);
|
|
330
|
+
|
|
331
|
+
&::before {
|
|
332
|
+
position: absolute;
|
|
333
|
+
width: 16px;
|
|
334
|
+
height: 8px;
|
|
335
|
+
background: #fff;
|
|
336
|
+
content: '';
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
&.--position {
|
|
340
|
+
&-top {
|
|
341
|
+
bottom: calc(100% + 8px);
|
|
342
|
+
|
|
343
|
+
&.--align {
|
|
344
|
+
&-start {
|
|
345
|
+
left: 0;
|
|
346
|
+
|
|
347
|
+
&::before {
|
|
348
|
+
top: 100%;
|
|
349
|
+
left: 16px;
|
|
350
|
+
clip-path: polygon(0 0, 50% 100%, 100% 0);
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
&-end {
|
|
355
|
+
left: 100%;
|
|
356
|
+
transform: translateX(calc(-100% + 1rem));
|
|
357
|
+
|
|
358
|
+
&::before {
|
|
359
|
+
top: 100%;
|
|
360
|
+
right: 16px;
|
|
361
|
+
clip-path: polygon(0 0, 50% 100%, 100% 0);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
&-right {
|
|
368
|
+
left: calc(100% + 8px);
|
|
369
|
+
|
|
370
|
+
&.--align {
|
|
371
|
+
&-start {
|
|
372
|
+
top: 0;
|
|
373
|
+
|
|
374
|
+
&::before {
|
|
375
|
+
top: 16px;
|
|
376
|
+
left: 0;
|
|
377
|
+
width: 8px;
|
|
378
|
+
height: 16px;
|
|
379
|
+
clip-path: polygon(0 50%, 100% 0%, 100% 100%);
|
|
380
|
+
transform: translateX(-100%);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
&-end {
|
|
385
|
+
top: 100%;
|
|
386
|
+
transform: translateX(calc(-100% + 1rem));
|
|
387
|
+
|
|
388
|
+
&::before {
|
|
389
|
+
bottom: 16px;
|
|
390
|
+
left: 0;
|
|
391
|
+
width: 8px;
|
|
392
|
+
height: 16px;
|
|
393
|
+
clip-path: polygon(0 50%, 100% 0%, 100% 100%);
|
|
394
|
+
transform: translateX(-100%);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
&-bottom {
|
|
401
|
+
top: calc(100% + 8px);
|
|
402
|
+
|
|
403
|
+
&.--align {
|
|
404
|
+
&-start {
|
|
405
|
+
left: 0;
|
|
406
|
+
|
|
407
|
+
&::before {
|
|
408
|
+
bottom: 100%;
|
|
409
|
+
left: 16px;
|
|
410
|
+
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
&-end {
|
|
415
|
+
left: 100%;
|
|
416
|
+
transform: translateX(calc(-100% + 1rem));
|
|
417
|
+
|
|
418
|
+
&::before {
|
|
419
|
+
right: 16px;
|
|
420
|
+
bottom: 100%;
|
|
421
|
+
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
&-left {
|
|
428
|
+
left: -8px;
|
|
429
|
+
transform: translateX(-100%);
|
|
430
|
+
|
|
431
|
+
&.--align {
|
|
432
|
+
&-start {
|
|
433
|
+
top: 0;
|
|
434
|
+
|
|
435
|
+
&::before {
|
|
436
|
+
top: 16px;
|
|
437
|
+
left: 100%;
|
|
438
|
+
width: 8px;
|
|
439
|
+
height: 16px;
|
|
440
|
+
clip-path: polygon(0 0%, 100% 50%, 0% 100%);
|
|
441
|
+
transform: translateX(0);
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
&-end {
|
|
446
|
+
bottom: 0;
|
|
447
|
+
|
|
448
|
+
&::before {
|
|
449
|
+
bottom: 16px;
|
|
450
|
+
left: 100%;
|
|
451
|
+
width: 8px;
|
|
452
|
+
height: 16px;
|
|
453
|
+
clip-path: polygon(0 0%, 100% 50%, 0% 100%);
|
|
454
|
+
transform: translateX(0);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
&[data-is-marrybaby='true'] {
|
|
463
|
+
.popover-menu__content {
|
|
464
|
+
padding: 0;
|
|
465
|
+
border-radius: 12px;
|
|
466
|
+
/* &::before {
|
|
467
|
+
display: none;
|
|
468
|
+
} */
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
`,ve=B.default.div`
|
|
472
|
+
display: flex;
|
|
473
|
+
/* max-height: 300px; */
|
|
474
|
+
flex-direction: column;
|
|
475
|
+
cursor: default;
|
|
476
|
+
|
|
477
|
+
.__header {
|
|
478
|
+
position: relative;
|
|
479
|
+
display: flex;
|
|
480
|
+
align-items: center;
|
|
481
|
+
justify-content: center;
|
|
482
|
+
padding: 1rem 0;
|
|
483
|
+
margin-bottom: 8px;
|
|
484
|
+
|
|
485
|
+
.__back-btn {
|
|
486
|
+
position: absolute;
|
|
487
|
+
top: 50%;
|
|
488
|
+
left: 8px;
|
|
489
|
+
width: 16px;
|
|
490
|
+
height: 16px;
|
|
491
|
+
cursor: pointer;
|
|
492
|
+
transform: translateY(-50%);
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.tree-text-description {
|
|
497
|
+
padding-right: 8px;
|
|
498
|
+
padding-left: 8px;
|
|
499
|
+
margin-top: -8px;
|
|
500
|
+
margin-bottom: 8px;
|
|
501
|
+
font-size: 14px;
|
|
502
|
+
font-weight: 400;
|
|
503
|
+
line-height: 22px;
|
|
504
|
+
text-align: left;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.__content {
|
|
508
|
+
overflow: auto;
|
|
509
|
+
flex: 1;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.__list {
|
|
513
|
+
.__item {
|
|
514
|
+
position: relative;
|
|
515
|
+
&.bold-item {
|
|
516
|
+
font-weight: 700;
|
|
517
|
+
}
|
|
518
|
+
&:last-child {
|
|
519
|
+
.__btn {
|
|
520
|
+
margin-bottom: 0;
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
.__btn {
|
|
525
|
+
position: relative;
|
|
526
|
+
display: flex;
|
|
527
|
+
width: 100%;
|
|
528
|
+
height: 40px;
|
|
529
|
+
align-items: center;
|
|
530
|
+
padding: 0 1rem;
|
|
531
|
+
border: none;
|
|
532
|
+
margin-bottom: 8px;
|
|
533
|
+
color: ${e=>e.theme.colors.gray800};
|
|
534
|
+
cursor: pointer;
|
|
535
|
+
text-align: left;
|
|
536
|
+
transition: background 0.3s;
|
|
537
|
+
|
|
538
|
+
/* for better gtm tracking result */
|
|
539
|
+
* {
|
|
540
|
+
pointer-events: none;
|
|
541
|
+
}
|
|
542
|
+
&.--checked {
|
|
543
|
+
color: ${e=>e.theme.colors.gray500};
|
|
544
|
+
pointer-events: none;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
&:hover {
|
|
548
|
+
background: ${e=>e.theme.colors.gray100};
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
.__icon {
|
|
552
|
+
width: 16px;
|
|
553
|
+
height: 16px;
|
|
554
|
+
margin-right: 0.4rem;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
& > span {
|
|
558
|
+
position: relative;
|
|
559
|
+
|
|
560
|
+
& > img {
|
|
561
|
+
width: 16px;
|
|
562
|
+
height: 16px;
|
|
563
|
+
margin-right: 0.4rem;
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
.__toggle {
|
|
569
|
+
position: absolute;
|
|
570
|
+
top: 50%;
|
|
571
|
+
right: 16px;
|
|
572
|
+
width: 16px;
|
|
573
|
+
height: 16px;
|
|
574
|
+
pointer-events: none;
|
|
575
|
+
transform: translateY(-50%);
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
&[data-is-marrybaby='true'] {
|
|
580
|
+
.__header {
|
|
581
|
+
padding: 1rem;
|
|
582
|
+
}
|
|
583
|
+
.tree-text-description {
|
|
584
|
+
padding: 0 1rem;
|
|
585
|
+
}
|
|
586
|
+
.__list {
|
|
587
|
+
.__item {
|
|
588
|
+
&:first-child {
|
|
589
|
+
.__btn {
|
|
590
|
+
border-top-left-radius: 12px;
|
|
591
|
+
border-top-right-radius: 12px;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
&:last-child {
|
|
595
|
+
.__btn {
|
|
596
|
+
border-bottom-left-radius: 12px;
|
|
597
|
+
border-bottom-right-radius: 12px;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
.__btn {
|
|
601
|
+
height: unset;
|
|
602
|
+
padding: 1rem;
|
|
603
|
+
margin-bottom: 0;
|
|
604
|
+
&:hover {
|
|
605
|
+
background: ${e=>e.theme.mbColors.lightPink};
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
`,be=({className:a,style:o,toggleButtonContent:r,position:l="bottom",align:n="end",children:i,buttonProps:d})=>{const{data:{env:{isMarryBaby:c}}}=e.useContext(t.TogetherComponentGlobalContext),[u,p]=e.useState(!1),m=e.useRef(null),g=e.useRef(u);return e.useEffect((()=>{var e;g.current=u,u&&(null===(e=m.current)||void 0===e||e.focus())}),[u]),e.useEffect((()=>{const e=e=>{var t;!(null===(t=m.current)||void 0===t?void 0:t.contains(e.target))&&g.current&&p(!1)};return window.addEventListener("click",e,{passive:!0}),()=>{window.removeEventListener("click",e)}}),[]),L.default.createElement(fe,{"data-is-marrybaby":c,className:a,style:o},L.default.createElement(s.Button,Object.assign({theme:c?"marryBaby":"helloSites",className:"popover-menu__btn",size:"md",color:"transparent",onClick:()=>p((e=>!e))},d),r),u?L.default.createElement("div",{ref:m,className:`popover-menu__content --position-${l} --align-${n}`,tabIndex:0,onClick:e=>e.stopPropagation()},"function"==typeof i?i({setShow:p}):i):null)};const xe=e=>{var{data:t}=e,a=n.__rest(e,["data"]);return L.default.createElement(be,Object.assign({},a),(({setShow:e})=>L.default.createElement(we,{data:t,setShow:e})))},we=({data:a,setShow:o})=>{var r;const[l,n]=e.useState(""),i=e.useMemo((()=>a&&((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})(a,l)),[a,l]);if(!a)return null;if(!i)return null;return L.default.createElement(ve,null,i.isShowheader?L.default.createElement("div",{className:"__header"},l?L.default.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:()=>n((e=>e.split(".").slice(0,-1).join("."))),loading:"lazy"}):null,i.title?L.default.createElement(t.Heading,{className:"__title",tag:"h6"},i.title):null):null,i.description?L.default.createElement(u.Text,{className:"tree-text-description",color:m.theme.colors.gray600,size:"p3",type:"regular"},i.description):null,L.default.createElement("div",{className:"__content"},"jsx"===i.type?null===(r=null==i?void 0:i.jsxRenderer)||void 0===r?void 0:r.call(i,o):null,"list"===i.type?L.default.createElement("ul",{className:"__list"},Array.isArray(i.list)?i.list.map(((e,t)=>L.default.createElement("li",{key:t,style:e.style,className:`__item ${e.className}`}," ",L.default.createElement("div",{className:"__btn "+(e.selected?"--checked":""),onClick:()=>((e,{subTree:t,onClick:a=(()=>null)})=>{a&&a(),t?n((t=>t.split(".").concat(String(e)).join("."))):o&&o(!1)})(t,e),"data-event-category":e.dataEventCategory,"data-event-action":e.dataEventAction,"data-event-label":e.dataEventLabel},e.icon&&L.default.createElement("img",{className:"__icon",src:e.icon,loading:"lazy"}),L.default.createElement("span",null,e.label)),e.subTree?L.default.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?L.default.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 ye;!function(e){e.latest="latest",e.oldest="oldest",e.popular="popular"}(ye||(ye={}));const Ce=e=>{var{size:t=15}=e,a=n.__rest(e,["size"]);return L.default.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),L.default.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"}),L.default.createElement("path",{d:"M8.53125 6.34375V4.15625H6.34375V6.34375H4.15625V8.53125H6.34375V10.7188H8.53125V8.53125H10.7188V6.34375H8.53125Z",fill:"#FF5331"}))},Ee=e=>{var{size:t,color:a}=e,o=n.__rest(e,["size","color"]);return L.default.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),L.default.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:a}))};Ee.defaultProps={size:24,color:m.theme.colors.gray600,activeColor:m.theme.colors.primaryBase,isActive:!1};var ke="dZWeHns",Ae="tMiOKib",Ne="uDcqD-2",Te="pDlsows",Se="m-HVXw1";const ze=({children:e,className:t=""})=>L.default.createElement("div",{className:`${Ae} ${t}`},e),Pe=({children:e,className:t=""})=>L.default.createElement("div",{className:`${Ne} ${t}`},e);var Le="sTU4T4I",Me="tCql9Je",Be="_3j7uYhH",Re="PHABgoT";const Ie=({avatarProps:e,title:t,subTitle:a,children:o,className:r="",style:l,onAvatarClick:n,avatarIcon:i,dataEventCategory:s,dataEventAction:d,dataEventLabel:c})=>L.default.createElement("div",{className:`${Le} ${r}`,style:l},L.default.createElement("div",{className:Be,onClick:n,"data-event-category":s,"data-event-action":d,"data-event-label":c},L.default.createElement(v.UserAvatar,Object.assign({},e)),i&&L.default.createElement("div",{className:Re},i)),L.default.createElement("div",{className:`${Me} ${r}`,style:{minHeight:`${(null==e?void 0:e.size)||40}px`}},o||L.default.createElement(L.default.Fragment,null,t&&L.default.createElement(ze,null,t),a&&L.default.createElement(Pe,null,a))));Ie.MainText=ze,Ie.SubText=Pe,Ie.SubDivider=({className:e=""})=>L.default.createElement("span",{className:`${Se} ${e}`}),Ie.Row=({children:e,className:t=""})=>L.default.createElement("div",{className:`${ke} ${t} row`},e),Ie.ColLeft=({children:e,className:t=""})=>L.default.createElement("div",{className:`${t} col-left`},e),Ie.ColRight=({children:e,className:t=""})=>L.default.createElement("div",{className:`${t} col-right`},e),Ie.SubTextRow=e=>{var{children:t,className:a=""}=e,o=n.__rest(e,["children","className"]);return L.default.createElement("div",Object.assign({className:`${Te} ${a}`},o),t)};var Oe=o.createStyles((()=>({root:{},authorBadge:{background:"yellow"}})));const je=B.default.div`
|
|
612
|
+
position: fixed;
|
|
613
|
+
left: 50%;
|
|
614
|
+
width: 343px;
|
|
615
|
+
background-color: ${e=>e.theme.colors.white};
|
|
616
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
617
|
+
box-shadow: 0px 0px 4px ${e=>e.theme.colors.gray200};
|
|
618
|
+
transform: translate(-50%, -50%);
|
|
619
|
+
transition: all 0.5s ease-in-out;
|
|
620
|
+
|
|
621
|
+
${r.MediaQueries.tdUp} {
|
|
622
|
+
width: 750px;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
&[data-animation='true'] {
|
|
626
|
+
transition: all 0.5s ease-in-out;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
&[data-open='true'] {
|
|
630
|
+
z-index: 400;
|
|
631
|
+
top: 50%;
|
|
632
|
+
opacity: 1;
|
|
633
|
+
visibility: visible;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
&[data-open='false'] {
|
|
637
|
+
top: -50%;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
.popup-content {
|
|
641
|
+
${r.MediaQueries.mbDown} {
|
|
642
|
+
display: block;
|
|
643
|
+
}
|
|
644
|
+
display: flex;
|
|
645
|
+
position: relative;
|
|
646
|
+
z-index: 111;
|
|
647
|
+
height: 100%;
|
|
648
|
+
.button-see-more {
|
|
649
|
+
margin: 32px 0;
|
|
650
|
+
padding: 0;
|
|
651
|
+
> * {
|
|
652
|
+
display: inline-block;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
.close-button {
|
|
656
|
+
position: absolute;
|
|
657
|
+
z-index: 100;
|
|
658
|
+
top: 10px;
|
|
659
|
+
right: 10px;
|
|
660
|
+
cursor: pointer;
|
|
661
|
+
width: unset;
|
|
662
|
+
height: unset;
|
|
663
|
+
img {
|
|
664
|
+
width: 100%;
|
|
665
|
+
height: 100%;
|
|
666
|
+
border-radius: 50%;
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
.main-info {
|
|
672
|
+
padding-bottom: 32px;
|
|
673
|
+
background-color: ${e=>e.theme.colors.primary50};
|
|
674
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
675
|
+
.btn-booking {
|
|
676
|
+
display: flex;
|
|
677
|
+
margin: 12px auto;
|
|
678
|
+
}
|
|
679
|
+
.avatar-title {
|
|
680
|
+
position: relative;
|
|
681
|
+
width: 100%;
|
|
682
|
+
padding-top: 46px;
|
|
683
|
+
text-align: center;
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
`,Ve=B.default.div`
|
|
687
|
+
position: fixed;
|
|
688
|
+
z-index: 110;
|
|
689
|
+
top: 0;
|
|
690
|
+
left: 0;
|
|
691
|
+
width: 100%;
|
|
692
|
+
height: 100%;
|
|
693
|
+
align-items: center;
|
|
694
|
+
background: rgba(38, 38, 38, 0.3);
|
|
695
|
+
|
|
696
|
+
&[data-open='false'] {
|
|
697
|
+
display: none;
|
|
698
|
+
}
|
|
699
|
+
`,Fe=B.default.div`
|
|
700
|
+
.image-container {
|
|
701
|
+
.badge-avatar {
|
|
702
|
+
position: absolute;
|
|
703
|
+
right: 0;
|
|
704
|
+
bottom: 0;
|
|
705
|
+
top: 0;
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
display: flex;
|
|
709
|
+
justify-content: center;
|
|
710
|
+
padding-bottom: 15px;
|
|
711
|
+
text-align: center;
|
|
712
|
+
.profile-image {
|
|
713
|
+
width: 100px;
|
|
714
|
+
min-width: 100px;
|
|
715
|
+
height: 100px;
|
|
716
|
+
min-height: 100px;
|
|
717
|
+
border-radius: 50%;
|
|
718
|
+
object-fit: cover;
|
|
719
|
+
}
|
|
720
|
+
.badge-avatar {
|
|
721
|
+
width: 24px;
|
|
722
|
+
height: 24px;
|
|
723
|
+
}
|
|
724
|
+
`,De=B.default.div`
|
|
725
|
+
position: relative;
|
|
726
|
+
z-index: 9;
|
|
727
|
+
.specialty {
|
|
728
|
+
display: flex;
|
|
729
|
+
flex-wrap: wrap;
|
|
730
|
+
justify-content: center;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
padding: 0px 16px;
|
|
734
|
+
text-align: center;
|
|
735
|
+
.specialty {
|
|
736
|
+
justify-content: center;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
.experience {
|
|
740
|
+
padding: 16px 0px 32px;
|
|
741
|
+
text-align: left;
|
|
742
|
+
.btn-wrapper {
|
|
743
|
+
margin-top: 24px;
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
p {
|
|
747
|
+
max-width: 100%;
|
|
748
|
+
-webkit-line-clamp: 4;
|
|
749
|
+
-webkit-box-orient: vertical;
|
|
750
|
+
text-overflow: ellipsis;
|
|
751
|
+
overflow: hidden;
|
|
752
|
+
}
|
|
753
|
+
`;B.default.span`
|
|
754
|
+
display: flex;
|
|
755
|
+
flex-direction: column;
|
|
756
|
+
justify-content: center;
|
|
757
|
+
margin: 0 0.4em;
|
|
758
|
+
color: ${e=>e.theme.colors.neutral300};
|
|
759
|
+
`,B.default.div`
|
|
760
|
+
display: inline-block;
|
|
761
|
+
width: 3px;
|
|
762
|
+
height: 3px;
|
|
763
|
+
margin: 0;
|
|
764
|
+
background-color: ${e=>e.theme.colors.gray400};
|
|
765
|
+
border-radius: 50%;
|
|
766
|
+
`,B.default.div`
|
|
767
|
+
display: flex;
|
|
768
|
+
margin-top: 8px;
|
|
769
|
+
|
|
770
|
+
.bullet-point {
|
|
771
|
+
width: 24px;
|
|
772
|
+
height: 24px;
|
|
773
|
+
}
|
|
774
|
+
`;const Ue=B.default.ul`
|
|
775
|
+
padding-left: 18px;
|
|
776
|
+
li {
|
|
777
|
+
list-style-type: disc;
|
|
778
|
+
}
|
|
779
|
+
`;var qe="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",He="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 We=({isOpen:a=!0,onClose:o,enableAnimation:r=!0,doctorId:l,locale:n,isMobile:d,overwriteProfileProps:c,avatarFallback:p=f.CommonGAssets.getAssetPath("avatar.jpg"),trackingCategory:g="Together"})=>{var h,v,b;const{t:w}=i.useTranslations(),[y,C]=e.useState(null),[E,k]=e.useState(!1);e.useEffect((()=>{if(a&&l&&String(null==y?void 0:y.id)!==String(l)){k(!0);try{C(null),t.callApi(t.getCarePath(t.CARE_PATHS.GET_DOCTOR_INFO,{doctorId:l,website_url:t.domainLocales[n]}),"get").then((e=>{C(Object.assign(Object.assign({},null==e?void 0:e._data.doctor),c))}))}catch(e){console.error(e)}k(!1)}}),[a,l,null==y?void 0:y.id]);const A=(null==y?void 0:y.experiences)||[],N=((null==y?void 0:y.specialties)||[]).map((e=>(null==e?void 0:e.name)||e)).join(" • "),T=A.map((e=>{try{return JSON.parse(e.description)}catch(t){return e.description}})).filter((e=>e.content));return L.default.createElement(L.default.Fragment,null,L.default.createElement(je,{"data-open":a,"data-animation":r,onClick:e=>e.stopPropagation()},E||!y?L.default.createElement($,null):L.default.createElement("div",{className:"popup-content"},L.default.createElement("div",{className:"close-button",onClick:o},L.default.createElement("img",{src:qe,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),L.default.createElement("div",{className:"main-info"},L.default.createElement("div",{className:"border-banner"}),L.default.createElement("div",{className:"avatar-title"},L.default.createElement(Fe,null,L.default.createElement("div",{className:"image-container"},L.default.createElement("div",{style:{position:"relative"}},L.default.createElement(x.ImageWrap,{src:null==y?void 0:y.avatar,backupSrc:p,className:"profile-image",alt:"avatar"}),L.default.createElement("img",{className:"badge-avatar",src:He,alt:"badge",loading:"lazy"})))),L.default.createElement(De,null,L.default.createElement(u.Text,{size:"s3",type:"semiBold",className:"full-name"},null==y?void 0:y.name),L.default.createElement("div",{className:"specialty"},N&&L.default.createElement(L.default.Fragment,null,L.default.createElement(u.Text,{size:"p4",color:m.theme.colors.gray800},N," • ")),L.default.createElement("a",{href:t.getCareHospitalUrl({id:null===(h=null==y?void 0:y.organization)||void 0===h?void 0:h.id,name:null===(v=null==y?void 0:y.organization)||void 0===v?void 0:v.name,slug:null===(b=null==y?void 0:y.organization)||void 0===b?void 0:b.slug,locale:n}),className:"organisation",target:"_blank",rel:"noreferrer"},L.default.createElement(u.Text,{size:"p4",className:"organisation",color:m.theme.colors.gray800,style:{textDecoration:"underline"}},null==y?void 0:y.organization.name))))),!d&&L.default.createElement("div",{className:"btn-wrapper"},L.default.createElement("a",{href:t.getCareDoctorUrl({name:y.name,id:y.id,locale:n})},L.default.createElement(s.Button,{color:"primary",size:"md",className:"btn-booking"},w("careBooking.bookAnAppointment"))))),T&&L.default.createElement(De,null,L.default.createElement("div",{className:"experience"},L.default.createElement(u.Text,{type:"bold",size:"s3",color:m.theme.colors.gray800,style:{paddingBottom:16}},w("expert.content.description").toUpperCase()),L.default.createElement(Ue,null,T.map(((e,t)=>L.default.createElement("li",{key:t},L.default.createElement(u.Text,{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)))))),d?L.default.createElement("div",{className:"btn-wrapper"},L.default.createElement("a",{href:t.getCareDoctorUrl({name:y.name,id:y.id,locale:n})},L.default.createElement(s.Button,{color:"primary",size:"md",className:"btn-booking"},w("careBooking.bookAnAppointment")))):L.default.createElement("a",{href:t.getCareDoctorUrl({name:y.name,id:y.id,locale:n})},L.default.createElement(u.Text,{size:"s4",color:"#2D87F3",style:{paddingTop:24},"data-event-category":g,"data-event-action":"See Full Doctor Profile","data-event-label":t.getCurrentBaseUrl(n)+t.getCareDoctorUrl({name:y.name,id:y.id,locale:n})},w("home.seeExpert"))))))),L.default.createElement(Ve,{"data-open":a,onClick:e=>{e.stopPropagation(),o()}}))},Ge=B.default.div`
|
|
780
|
+
position: fixed;
|
|
781
|
+
left: 50%;
|
|
782
|
+
width: 343px;
|
|
783
|
+
background-color: ${e=>e.theme.colors.white};
|
|
784
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
785
|
+
box-shadow: 0px 0px 4px ${e=>e.theme.colors.gray200};
|
|
786
|
+
transform: translate(-50%, -50%);
|
|
787
|
+
transition: all 0.5s ease-in-out;
|
|
788
|
+
|
|
789
|
+
${r.MediaQueries.tdUp} {
|
|
790
|
+
width: 750px;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
&[data-animation='true'] {
|
|
794
|
+
transition: all 0.5s ease-in-out;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
&[data-open='true'] {
|
|
798
|
+
z-index: 400;
|
|
799
|
+
top: 50%;
|
|
800
|
+
opacity: 1;
|
|
801
|
+
visibility: visible;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
&[data-open='false'] {
|
|
805
|
+
top: -50%;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
.popup-content {
|
|
809
|
+
${r.MediaQueries.mbDown} {
|
|
810
|
+
display: block;
|
|
811
|
+
}
|
|
812
|
+
display: flex;
|
|
813
|
+
position: relative;
|
|
814
|
+
z-index: 111;
|
|
815
|
+
height: 100%;
|
|
816
|
+
.button-see-more {
|
|
817
|
+
margin: 32px 0;
|
|
818
|
+
padding: 0;
|
|
819
|
+
> * {
|
|
820
|
+
display: inline-block;
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
.close-button {
|
|
824
|
+
position: absolute;
|
|
825
|
+
z-index: 100;
|
|
826
|
+
top: 10px;
|
|
827
|
+
right: 10px;
|
|
828
|
+
cursor: pointer;
|
|
829
|
+
width: unset;
|
|
830
|
+
height: unset;
|
|
831
|
+
img {
|
|
832
|
+
width: 100%;
|
|
833
|
+
height: 100%;
|
|
834
|
+
border-radius: 50%;
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
.main-info {
|
|
840
|
+
padding-bottom: 32px;
|
|
841
|
+
background-color: ${e=>e.theme.colors.primary50};
|
|
842
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
843
|
+
|
|
844
|
+
.avatar-title {
|
|
845
|
+
position: relative;
|
|
846
|
+
width: 100%;
|
|
847
|
+
padding-top: 46px;
|
|
848
|
+
text-align: center;
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
`,Ze=B.default.div`
|
|
852
|
+
position: fixed;
|
|
853
|
+
z-index: 110;
|
|
854
|
+
top: 0;
|
|
855
|
+
left: 0;
|
|
856
|
+
width: 100%;
|
|
857
|
+
height: 100%;
|
|
858
|
+
align-items: center;
|
|
859
|
+
background: rgba(38, 38, 38, 0.3);
|
|
860
|
+
|
|
861
|
+
&[data-open='false'] {
|
|
862
|
+
display: none;
|
|
863
|
+
}
|
|
864
|
+
`,Qe=B.default.div`
|
|
865
|
+
.image-container {
|
|
866
|
+
.badge-avatar {
|
|
867
|
+
position: absolute;
|
|
868
|
+
right: 0;
|
|
869
|
+
bottom: 0;
|
|
870
|
+
top: 0;
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
display: flex;
|
|
874
|
+
justify-content: center;
|
|
875
|
+
padding-bottom: 15px;
|
|
876
|
+
text-align: center;
|
|
877
|
+
.profile-image {
|
|
878
|
+
width: 100px;
|
|
879
|
+
min-width: 100px;
|
|
880
|
+
height: 100px;
|
|
881
|
+
min-height: 100px;
|
|
882
|
+
border-radius: 50%;
|
|
883
|
+
object-fit: cover;
|
|
884
|
+
}
|
|
885
|
+
.badge-avatar {
|
|
886
|
+
width: 24px;
|
|
887
|
+
height: 24px;
|
|
888
|
+
}
|
|
889
|
+
`,Xe=B.default.div`
|
|
890
|
+
position: relative;
|
|
891
|
+
z-index: 9;
|
|
892
|
+
.specialty {
|
|
893
|
+
display: flex;
|
|
894
|
+
flex-wrap: wrap;
|
|
895
|
+
justify-content: center;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
padding: 0px 16px;
|
|
899
|
+
text-align: center;
|
|
900
|
+
.specialty {
|
|
901
|
+
justify-content: center;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
.experience {
|
|
905
|
+
padding: 16px 0px 32px;
|
|
906
|
+
text-align: left;
|
|
907
|
+
.btn-wrapper {
|
|
908
|
+
margin-top: 24px;
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
p {
|
|
912
|
+
max-width: 100%;
|
|
913
|
+
-webkit-line-clamp: 4;
|
|
914
|
+
-webkit-box-orient: vertical;
|
|
915
|
+
text-overflow: ellipsis;
|
|
916
|
+
overflow: hidden;
|
|
917
|
+
}
|
|
918
|
+
`;B.default.span`
|
|
919
|
+
display: flex;
|
|
920
|
+
flex-direction: column;
|
|
921
|
+
justify-content: center;
|
|
922
|
+
margin: 0 0.4em;
|
|
923
|
+
color: ${e=>e.theme.colors.neutral300};
|
|
924
|
+
`,B.default.div`
|
|
925
|
+
display: inline-block;
|
|
926
|
+
width: 3px;
|
|
927
|
+
height: 3px;
|
|
928
|
+
margin: 0;
|
|
929
|
+
background-color: ${e=>e.theme.colors.gray400};
|
|
930
|
+
border-radius: 50%;
|
|
931
|
+
`;const _e=B.default.div`
|
|
932
|
+
display: flex;
|
|
933
|
+
margin-top: 8px;
|
|
934
|
+
|
|
935
|
+
.bullet-point {
|
|
936
|
+
width: 24px;
|
|
937
|
+
height: 24px;
|
|
938
|
+
}
|
|
939
|
+
`;var Ke="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 Ye={author:Ke,edtior:Ke,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:He},$e=({trackingCategory:a="Together",locale:o,isOpen:r=!0,onClose:l,enableAnimation:n=!0,expertId:s,overwriteProfileProps:d,avatarFallback:c=f.CommonGAssets.getAssetPath("avatar.jpg")})=>{const{t:p}=i.useTranslations(),[g,h]=e.useState(null),[v,b]=e.useState(!1);return e.useEffect((()=>{if(r&&s&&String(null==g?void 0:g.user_id)!==String(s)){b(!0);try{h(null),t.callApi(t.getDiscoverApiPath(t.DISCOVER_PATHS.GET_EXPERT_BY_ID,{id:s}),"get").then((e=>{h(Object.assign(Object.assign({},null==e?void 0:e.data),d))}))}catch(e){console.error(e)}b(!1)}}),[r,s,null==g?void 0:g.user_id]),L.default.createElement(L.default.Fragment,null,L.default.createElement(Ge,{"data-open":r,"data-animation":n,onClick:e=>e.stopPropagation()},v||!g?L.default.createElement($,null):L.default.createElement("div",{className:"popup-content"},L.default.createElement("div",{className:"close-button",onClick:l},L.default.createElement("img",{src:qe,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),L.default.createElement("div",{className:"main-info"},L.default.createElement("div",{className:"border-banner"}),L.default.createElement("div",{className:"avatar-title"},L.default.createElement(Qe,null,L.default.createElement("div",{className:"image-container"},L.default.createElement("div",{style:{position:"relative"}},L.default.createElement(x.ImageWrap,{src:null==g?void 0:g.avatar,className:"profile-image",alt:"avatar",backupSrc:c}),L.default.createElement("img",{className:"badge-avatar",src:Ye[null==g?void 0:g.role],alt:"badge",loading:"lazy"})))),L.default.createElement(Xe,null,L.default.createElement(u.Text,{size:"s3",className:"full-name",type:"semiBold"},null==g?void 0:g.display_name),L.default.createElement("div",null,L.default.createElement(u.Text,{size:"p4",color:m.theme.colors.gray800},null==g?void 0:g.specialty," • "),L.default.createElement("a",{href:null==g?void 0:g.organisation_url,className:"organisation",target:"_blank",rel:"noreferrer"},L.default.createElement(u.Text,{size:"p4",className:"organisation",color:m.theme.colors.gray800,style:{textDecoration:"underline"}},null==g?void 0:g.organisation)))))),L.default.createElement(Xe,null,L.default.createElement("div",{className:"experience"},L.default.createElement(u.Text,{type:"bold",size:"p4",color:m.theme.colors.gray800,style:{paddingBottom:16}},p("expert.content.description").toUpperCase()),L.default.createElement("div",{className:"list-items"},!!(null==g?void 0:g.experiences)&&g.experiences.filter((e=>!(!e||!e.title&&!e.organization))).slice(0,3).map(((e,a)=>L.default.createElement(_e,{key:a},L.default.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"}),L.default.createElement("div",{className:"text-contain"},L.default.createElement(t.Heading,{tag:"h6",color:m.theme.colors.gray800},null==e?void 0:e.title),L.default.createElement(u.Text,{size:"p2",color:m.theme.colors.gray500},null==e?void 0:e.organization)))))),L.default.createElement("a",{href:null==g?void 0:g.profile_url,style:{display:"inline-block",paddingTop:24}},L.default.createElement(u.Text,{as:"span",size:"s4",color:"#2D87F3","data-event-category":a,"data-event-action":"See Full Doctor Profile","data-event-label":t.getCurrentBaseUrl(o)+(null==g?void 0:g.profile_url)},p("home.seeExpert"))))))),L.default.createElement(Ze,{"data-open":r,onClick:e=>{e.stopPropagation(),l()}}))},Je=B.default.div`
|
|
940
|
+
position: fixed;
|
|
941
|
+
left: 50%;
|
|
942
|
+
width: 343px;
|
|
943
|
+
background-color: ${e=>e.theme.colors.white};
|
|
944
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
945
|
+
box-shadow: 0px 0px 4px ${e=>e.theme.colors.gray200};
|
|
946
|
+
transform: translate(-50%, -50%);
|
|
947
|
+
transition: all 0.5s ease-in-out;
|
|
948
|
+
|
|
949
|
+
${r.MediaQueries.tdUp} {
|
|
950
|
+
width: 750px;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
&[data-animation='true'] {
|
|
954
|
+
transition: all 0.5s ease-in-out;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
&[data-open='true'] {
|
|
958
|
+
z-index: 400;
|
|
959
|
+
top: 50%;
|
|
960
|
+
opacity: 1;
|
|
961
|
+
visibility: visible;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
&[data-open='false'] {
|
|
965
|
+
top: -50%;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
.popup-content {
|
|
969
|
+
${r.MediaQueries.mbDown} {
|
|
970
|
+
display: block;
|
|
971
|
+
}
|
|
972
|
+
display: flex;
|
|
973
|
+
position: relative;
|
|
974
|
+
z-index: 111;
|
|
975
|
+
height: 100%;
|
|
976
|
+
.button-see-more {
|
|
977
|
+
margin: 32px 0;
|
|
978
|
+
padding: 0;
|
|
979
|
+
> * {
|
|
980
|
+
display: inline-block;
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
.close-button {
|
|
984
|
+
position: absolute;
|
|
985
|
+
z-index: 100;
|
|
986
|
+
top: 10px;
|
|
987
|
+
right: 10px;
|
|
988
|
+
cursor: pointer;
|
|
989
|
+
width: unset;
|
|
990
|
+
height: unset;
|
|
991
|
+
img {
|
|
992
|
+
width: 100%;
|
|
993
|
+
height: 100%;
|
|
994
|
+
border-radius: 50%;
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
.main-info {
|
|
1000
|
+
padding-bottom: 32px;
|
|
1001
|
+
background-color: ${e=>e.theme.colors.primary50};
|
|
1002
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
1003
|
+
.btn-booking {
|
|
1004
|
+
display: flex;
|
|
1005
|
+
margin: 12px auto;
|
|
1006
|
+
}
|
|
1007
|
+
.avatar-title {
|
|
1008
|
+
position: relative;
|
|
1009
|
+
width: 100%;
|
|
1010
|
+
padding-top: 46px;
|
|
1011
|
+
text-align: center;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
`,et=B.default.div`
|
|
1015
|
+
position: fixed;
|
|
1016
|
+
z-index: 110;
|
|
1017
|
+
top: 0;
|
|
1018
|
+
left: 0;
|
|
1019
|
+
width: 100%;
|
|
1020
|
+
height: 100%;
|
|
1021
|
+
align-items: center;
|
|
1022
|
+
background: rgba(38, 38, 38, 0.3);
|
|
1023
|
+
|
|
1024
|
+
&[data-open='false'] {
|
|
1025
|
+
display: none;
|
|
1026
|
+
}
|
|
1027
|
+
`,tt=B.default.div`
|
|
1028
|
+
.image-container {
|
|
1029
|
+
.badge-avatar {
|
|
1030
|
+
position: absolute;
|
|
1031
|
+
right: 0;
|
|
1032
|
+
bottom: 0;
|
|
1033
|
+
top: 0;
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
display: flex;
|
|
1037
|
+
justify-content: center;
|
|
1038
|
+
padding-bottom: 15px;
|
|
1039
|
+
text-align: center;
|
|
1040
|
+
.profile-image {
|
|
1041
|
+
width: 100px;
|
|
1042
|
+
min-width: 100px;
|
|
1043
|
+
height: 100px;
|
|
1044
|
+
min-height: 100px;
|
|
1045
|
+
border-radius: 50%;
|
|
1046
|
+
object-fit: cover;
|
|
1047
|
+
}
|
|
1048
|
+
.badge-avatar {
|
|
1049
|
+
width: 24px;
|
|
1050
|
+
height: 24px;
|
|
1051
|
+
}
|
|
1052
|
+
`,at=B.default.div`
|
|
1053
|
+
position: relative;
|
|
1054
|
+
z-index: 9;
|
|
1055
|
+
.specialty {
|
|
1056
|
+
display: block;
|
|
1057
|
+
min-width: 240px;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
padding: 0px 16px;
|
|
1061
|
+
text-align: center;
|
|
1062
|
+
.specialty {
|
|
1063
|
+
justify-content: center;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
.experience {
|
|
1067
|
+
padding: 16px 0px 32px;
|
|
1068
|
+
text-align: left;
|
|
1069
|
+
.btn-wrapper {
|
|
1070
|
+
margin-top: 24px;
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
p {
|
|
1074
|
+
max-width: 100%;
|
|
1075
|
+
}
|
|
1076
|
+
`;B.default.span`
|
|
1077
|
+
display: flex;
|
|
1078
|
+
flex-direction: column;
|
|
1079
|
+
justify-content: center;
|
|
1080
|
+
margin: 0 0.4em;
|
|
1081
|
+
color: ${e=>e.theme.colors.neutral300};
|
|
1082
|
+
`,B.default.div`
|
|
1083
|
+
display: inline-block;
|
|
1084
|
+
width: 3px;
|
|
1085
|
+
height: 3px;
|
|
1086
|
+
margin: 0;
|
|
1087
|
+
background-color: ${e=>e.theme.colors.gray400};
|
|
1088
|
+
border-radius: 50%;
|
|
1089
|
+
`,B.default.div`
|
|
1090
|
+
display: flex;
|
|
1091
|
+
margin-top: 8px;
|
|
1092
|
+
|
|
1093
|
+
.bullet-point {
|
|
1094
|
+
width: 24px;
|
|
1095
|
+
height: 24px;
|
|
1096
|
+
}
|
|
1097
|
+
`;const ot=({isOpen:a=!0,onClose:o,enableAnimation:r=!0,hospitalId:l,locale:n,isMobile:d,overwriteProfileProps:c,avatarFallback:p=f.CommonGAssets.getAssetPath("avatar.jpg"),trackingCategory:g="Together"})=>{const{t:h}=i.useTranslations(),[v,b]=e.useState(null),[w,y]=e.useState(!1);e.useEffect((()=>{if(a&&l&&String(null==v?void 0:v.id)!==String(l)){y(!0);try{b(null),t.callApi(t.getCarePath(t.CARE_PATHS.GET_HOSPITAL_INFO,{hospital_branch_id:l,website_url:t.domainLocales[n]}),"get").then((e=>{b(Object.assign(Object.assign({},null==e?void 0:e._data.branch),c))}))}catch(e){console.error(e)}y(!1)}}),[a,l,null==v?void 0:v.id]);const C=(null==v?void 0:v.specialties)||[],E=e.useMemo((()=>C.map((e=>e.name))),[C]);return L.default.createElement(L.default.Fragment,null,L.default.createElement(Je,{"data-open":a,"data-animation":r,onClick:e=>e.stopPropagation()},w||!v?L.default.createElement($,null):L.default.createElement("div",{className:"popup-content"},L.default.createElement("div",{className:"close-button",onClick:o},L.default.createElement("img",{src:qe,style:{width:20,height:20},alt:"close-icon",loading:"lazy"})),L.default.createElement("div",{className:"main-info"},L.default.createElement("div",{className:"border-banner"}),L.default.createElement("div",{className:"avatar-title"},L.default.createElement(tt,null,L.default.createElement("div",{className:"image-container"},L.default.createElement("div",{style:{position:"relative"}},L.default.createElement(x.ImageWrap,{src:null==v?void 0:v.logo,className:"profile-image",alt:"avatar",backupSrc:p}),L.default.createElement("img",{className:"badge-avatar",src:He,alt:"badge",loading:"lazy"})))),L.default.createElement(at,null,L.default.createElement(u.Text,{size:"s3",type:"semiBold",className:"full-name"},null==v?void 0:v.name),L.default.createElement("div",{className:"specialty"},C&&L.default.createElement(u.Text,{size:"p4",color:m.theme.colors.gray800},E.join(" • "),"•"),L.default.createElement("a",{href:t.getCareHospitalUrl({id:v.id,name:v.name,slug:v.slug,locale:n}),className:"organisation",target:"_blank",rel:"noreferrer"},L.default.createElement(u.Text,{size:"p4",className:"organisation",color:m.theme.colors.gray800,style:{textDecoration:"underline"}},null==v?void 0:v.name))))),!d&&L.default.createElement("a",{href:t.getCareHospitalUrl({id:v.id,name:v.name,slug:v.slug,locale:n})},L.default.createElement("div",{className:"btn-wrapper"},L.default.createElement(s.Button,{color:"primary",size:"md",className:"btn-booking"},h("careBooking.bookAnAppointment"))))),L.default.createElement(at,null,L.default.createElement("div",{className:"experience"},L.default.createElement(u.Text,{type:"bold",size:"s3",color:m.theme.colors.gray800,style:{paddingBottom:16}},h("hospital.content.description").toUpperCase()),L.default.createElement(u.Text,{size:"p2",color:m.theme.colors.gray500},v.about),d?L.default.createElement("a",{href:t.getCareHospitalUrl({id:v.id,name:v.name,slug:v.slug,locale:n})},L.default.createElement("div",{className:"btn-wrapper"},L.default.createElement(s.Button,{color:"primary",size:"md",className:"btn-booking"},h("careBooking.bookAnAppointment")))):L.default.createElement("a",{href:t.getCareHospitalUrl({id:v.id,name:v.name,slug:v.slug,locale:n})},L.default.createElement(u.Text,{size:"s4",color:"#2D87F3",as:"span","data-event-category":g,"data-event-action":"See Full Hospital Profile","data-event-label":t.getCurrentBaseUrl(n)+t.getCareHospitalUrl({id:v.id,name:v.name,slug:v.slug,locale:n})},h("home.seeHospital"))))))),L.default.createElement(et,{"data-open":a,onClick:e=>{e.stopPropagation(),o()}}))};var rt="_2UKyiK1",lt="E5ga-tI",nt="_8Y2nWXX",it="d0T7kSP";const st=({open:e,onClose:t,children:a,profileModalProps:o})=>{const{t:r}=i.useTranslations();return L.default.createElement(N.Modal,Object.assign({className:rt,opened:e,onClose:t,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"},o),L.default.createElement("div",{className:lt},L.default.createElement("div",{className:nt},r("profilePanel.modal.heading")),L.default.createElement("div",{className:it,onClick:t},L.default.createElement(U,null))),a)};R.default.extend(I.default);const dt=e.createContext({}),ct=l=>{const{className:n="",community:s,name:d,username:c,url:u,avatar:p,role:h,title:v,userType:b="user",expertId:x,specialty:w,organisation:y,isMarryBaby:C,doctorId:E,hospitalId:k,hasQuickBooking:A,handleMakeAppointment:N,communityTrackingAttr:T,isAnonymous:S,showDetailPopup:z,subLine:P,authActionWrapper:M,profileProps:B,profileModalProps:R,extendEle:I,avatarProps:O,hideInfo:j,timeText:F,onCloseFromPost:U,avatarIcon:q,badgeIconSize:H,hideBackground:W,children:G,styles:Z,dataEventCategory:Q,dataEventAction:X,dataEventLabel:_}=l,{data:{locale:K,router:Y,env:{isMarryBaby:$,togetherBasePath:J}}}=e.useContext(t.TogetherComponentGlobalContext),{isMobile:ee}=a.useScreenSize(),{t:te}=i.useTranslations(),{classes:ae}=Oe(void 0,{name:"CardAuthor",styles:Z}),oe="boolean"==typeof C?C:$,re=oe?"marryBaby":"helloSites",le=S?te("cardPost.anonymous"):d||c||"",ne=S?f.CommonGAssets.getAssetPath("avatar.jpg"):p,ie=S?void 0:h,[se,de]=e.useState(!1),{asPath:ce}=Y||{},ue=`https://${g.domainLocales[K]}${ce}`,pe=()=>{if(S||"chatbot"===b)return!1;z?ge(!0):u&&(window.location.href=u)};e.useEffect((()=>{r.toggleNoScroll(se)}),[se]);const[me,ge]=e.useState(!1),he="expert"===(null==l?void 0:l.role),fe=Boolean(E||k),ve=["expert"===ie&&y&&L.default.createElement("span",null,y),"expert"===ie&&w&&L.default.createElement("span",null,w),!("expert"===ie&&w&&y)&&(null==s?void 0:s.name)&&L.default.createElement("a",Object.assign({href:(null==s?void 0:s.slug)&&s.isActive&&!s.isHidden?`${J}/${null==s?void 0:s.slug}/`:void 0,className:"author-community-name"},T),`${null==s?void 0:s.name}`),F&&L.default.createElement("span",null,F)].filter(Boolean),[be,xe]=e.useState(null);return e.useEffect((()=>{me&&!be&&Promise.resolve().then((function(){return ho})).then((e=>{xe((()=>e.ProfileDetail))}))}),[me]),L.default.createElement(dt.Provider,{value:{handleMakeAppointment:N,doctorId:E,hospitalId:k,currentUrl:ue}},L.default.createElement(st,{open:me,onClose:()=>ge(!1),profileModalProps:R},be&&L.default.createElement(be,Object.assign({currentPageUrl:_,authActionWrapper:M,onCloseFromPost:()=>{ge(!1),null==U||U()}},B,{authorProps:Object.assign({userId:null==l?void 0:l.userId,avatar:ne,name:null==l?void 0:l.name,role:null==l?void 0:l.role,title:null==l?void 0:l.title,doctorId:E,hospitalId:k,hasQuickBooking:A},null==B?void 0:B.authorProps)}))),"expert"===ie&&x?L.default.createElement($e,{isOpen:se,onClose:()=>de(!1),expertId:x}):null,"expert"===ie&&E?L.default.createElement(We,{isOpen:se,onClose:()=>de(!1),doctorId:E,locale:K}):null,"expert"===ie&&k?L.default.createElement(ot,{isOpen:se,onClose:()=>de(!1),hospitalId:k,locale:K}):null,L.default.createElement("div",{className:`hhg-card-author ${ae.root} ${n} ${he?"expert-author":""}`,"data-background":!W&&he,"data-is-marrybaby":oe},L.default.createElement(Ie,{dataEventCategory:Q,dataEventAction:X,dataEventLabel:_,onAvatarClick:pe,avatarProps:Object.assign(Object.assign({avatar:S?f.CommonGAssets.getAssetPath(oe?"anomyous-avatar-1.svg":"anomyous-avatar.svg"):ne,username:le},O),{style:{cursor:S||!u&&!z?"default":"pointer"}}),avatarIcon:q||he&&L.default.createElement(Ce,{size:H||15})},G?L.default.createElement("div",{onClick:pe},G):!j&&L.default.createElement(Ie.Row,null,L.default.createElement(Ie.ColLeft,null,L.default.createElement(o.Flex,{align:"center",onClick:pe},L.default.createElement(Ie.MainText,{onClick:pe},le,"chatbot"===b?L.default.createElement(L.default.Fragment,null," ",L.default.createElement(Ee,{color:m.theme.colors.primaryBase,size:16,style:{display:"inline-block",transform:"translate(0, 2px)"}})):ie&&L.default.createElement(V,{className:ae.authorBadge,siteType:re,role:ie,title:v,style:{verticalAlign:"bottom"}}))),P||L.default.createElement(Ie.SubTextRow,{style:A?{position:"relative"}:{}},ve.map(((e,t)=>L.default.createElement(L.default.Fragment,null,0!==t&&L.default.createElement(Ie.SubDivider,null),L.default.createElement(Ie.SubText,null,e)))),A&&fe&&L.default.createElement(o.Box,{sx:{marginTop:o.rem(5)}},L.default.createElement(D,{bookingId:E||k,bookingType:E?"doctor":k?"hospital":void 0,size:ee?"xs":"sm"})))))),I&&I))};ct.MainText=Ie.MainText,ct.SubText=Ie.SubText,ct.SubTextRow=Ie.SubTextRow,ct.SubDivider=Ie.SubDivider;const ut=B.default.div`
|
|
1098
|
+
position: relative;
|
|
1099
|
+
display: flex;
|
|
1100
|
+
height: 100%;
|
|
1101
|
+
flex-direction: column;
|
|
1102
|
+
padding: 16px 24px;
|
|
1103
|
+
|
|
1104
|
+
.input-group-container {
|
|
1105
|
+
flex: 1;
|
|
1106
|
+
padding-right: 2px;
|
|
1107
|
+
padding-left: 2px;
|
|
1108
|
+
margin-bottom: 0.5rem;
|
|
1109
|
+
-ms-overflow-style: none; /* IE and Edge */
|
|
1110
|
+
overflow-y: auto;
|
|
1111
|
+
scrollbar-width: none; /* Firefox */
|
|
1112
|
+
&::-webkit-scrollbar {
|
|
1113
|
+
display: none;
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
.input-group {
|
|
1118
|
+
:not(:last-child) {
|
|
1119
|
+
margin-bottom: 0.6rem;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
input:focus,
|
|
1123
|
+
textarea:focus,
|
|
1124
|
+
[contenteditable='true'] {
|
|
1125
|
+
outline: none;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
label {
|
|
1129
|
+
margin-bottom: 5px;
|
|
1130
|
+
color: ${e=>e.theme.colors.gray600};
|
|
1131
|
+
/* font-family: 'Open Sans', sans-serif; */
|
|
1132
|
+
font-size: 13px;
|
|
1133
|
+
font-weight: bold;
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
.input-group-label {
|
|
1137
|
+
margin-bottom: 5px;
|
|
1138
|
+
color: ${e=>e.theme.colors.gray600};
|
|
1139
|
+
/* font-family: 'Open Sans', sans-serif; */
|
|
1140
|
+
font-size: 13px;
|
|
1141
|
+
font-weight: bold;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
.input-notification {
|
|
1145
|
+
display: flex;
|
|
1146
|
+
|
|
1147
|
+
& > img {
|
|
1148
|
+
width: 16px;
|
|
1149
|
+
height: 16px;
|
|
1150
|
+
margin-top: 1.5px;
|
|
1151
|
+
margin-right: 8px;
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
.tag-list {
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
.warning {
|
|
1160
|
+
margin-top: 16px;
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
.submit-btn {
|
|
1164
|
+
width: 100%;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
.switch-label {
|
|
1168
|
+
display: flex;
|
|
1169
|
+
align-items: center;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
.swich-input-group {
|
|
1173
|
+
padding: 12px 16px;
|
|
1174
|
+
border-radius: 8px;
|
|
1175
|
+
background: ${m.theme.colors.neutral50};
|
|
1176
|
+
|
|
1177
|
+
&.askdoctor-switch {
|
|
1178
|
+
background: ${m.theme.colors.primary50};
|
|
1179
|
+
&.mb-color {
|
|
1180
|
+
background: ${m.theme.mbColors.tonePink};
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
|
|
1184
|
+
.mantine-Switch-labelWrapper {
|
|
1185
|
+
flex-grow: 1;
|
|
1186
|
+
}
|
|
1187
|
+
.mantine-Checkbox-body {
|
|
1188
|
+
display: flex;
|
|
1189
|
+
width: 100%;
|
|
1190
|
+
align-items: center;
|
|
1191
|
+
justify-content: space-between;
|
|
1192
|
+
}
|
|
1193
|
+
.mantine-Switch-track {
|
|
1194
|
+
margin-bottom: 0;
|
|
1195
|
+
}
|
|
1196
|
+
.label-txt {
|
|
1197
|
+
font-weight: normal;
|
|
1198
|
+
font-size: 14px;
|
|
1199
|
+
color: ${m.theme.colors.gray800};
|
|
1200
|
+
margin-left: 10px;
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
`,pt=B.default.div`
|
|
1204
|
+
display: flex;
|
|
1205
|
+
width: 100%;
|
|
1206
|
+
align-items: center;
|
|
1207
|
+
justify-content: space-between;
|
|
1208
|
+
padding: 12px 16px;
|
|
1209
|
+
border-radius: 8px;
|
|
1210
|
+
background: ${m.theme.colors.primary50};
|
|
1211
|
+
|
|
1212
|
+
&[data-is-marry-baby='true'] {
|
|
1213
|
+
background: ${m.theme.mbColors.tonePink};
|
|
1214
|
+
}
|
|
1215
|
+
.switch-label {
|
|
1216
|
+
display: flex;
|
|
1217
|
+
align-items: center;
|
|
1218
|
+
gap: 12px;
|
|
1219
|
+
}
|
|
1220
|
+
margin-bottom: 12px;
|
|
1221
|
+
`,mt=B.default.div`
|
|
1222
|
+
margin-bottom: 12px;
|
|
1223
|
+
color: ${m.theme.colors.red700};
|
|
1224
|
+
svg {
|
|
1225
|
+
margin-right: 5px;
|
|
1226
|
+
}
|
|
1227
|
+
svg,
|
|
1228
|
+
span {
|
|
1229
|
+
vertical-align: middle;
|
|
1230
|
+
}
|
|
1231
|
+
`,gt=/<mocka ([^>]*)data-url="true"[^<>]*>(.*?)<\/mocka>/gim,ht=/((?:=")|(?:data-url="true">)|)(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))/gim,ft=/\[a\+href="([^<"]+)"(?:\+text=\"([^<"]+)")?\]/gim,vt=/<mention [^>]*data-id="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,bt=/<mention [^>]*data-id="([^<"]+)" [^\>]*data-name="([^<"]+)"[^>]*>([^<]+)<\/mention>/gim,xt=/\[mention\+id="([^<"]+)"([^\]]*)\]/gim,wt=/^(https?:\/\/(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,yt=/^((https?:\/\/)?(www\.)?(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$]))$/gim,Ct=/<a [^>]*href="([^>"]+)"[^>]*>([^<]+)<\/a>/gim,Et=/<mocka [^\>]*data-bad-word="[^\"]*" [^\>]*data-error="true"[^\>]*>(.*?)<\/mocka>/gim,kt=({url:e,text:t,method:a})=>{const o=t.indexOf(t.trimStart()),r=t.trimEnd().length,l=t.substring(0,o),n=t.substring(o,r),i=t.substring(r);return"edit"===a?`${l}<mocka data-href="${e}" data-url="true">${n}</mocka>${i}`:"display"===a&&(e.startsWith("http://")||e.startsWith("https://"))?`${l}<a href="${e}" target="_blank">${n}</a>${i}`:t},At=(e,t)=>e.replace(ft,((e,a,o)=>kt({text:o||a,url:a,method:t}))).replace(Ct,((e,a,o)=>kt({text:o||a,url:a,method:t}))),Nt=(e,t=[])=>e.replace(xt,((e,a,o)=>{const r=t.find((e=>String(e.id)===a));if(!r){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="${r.name}">${r.name}</mention>`})),Tt=e=>{const t=[];return e.replace(/(\&)+/g,"&").replace(ht,((e,a,o)=>('="'!==a&&'data-url="true">'!==a&&t.push(o),e))),t},St=(e,t)=>{const a=[];return e.replace(vt,((e,t)=>(a.push(t),e))).replace(xt,((e,t)=>(a.push(t),e))),t?a:Array.from(new Set(a)).slice(0,30)},zt=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Pt=e=>e.replace(Et,"$1"),Lt=["hellobacsi.com","hellosehat.com","hellodoktor.com","hellokrupet.com","hellodoctor.com.ph","hellokhunmor.com","hellosayarwon.com","helloyishi.com.tw","helloswasthya.com","marrybaby.vn"],Mt=e=>e.match(yt)?e.startsWith("https://")||e.startsWith("http://")?e:`https://${e}`:"",Bt=(e,t)=>{const a=t.filter(Boolean);if(e&&a.length>0){return Pt(e).replace(new RegExp(`\\b(${a.map((e=>zt(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},Rt=B.default.div`
|
|
1232
|
+
input:focus,
|
|
1233
|
+
textarea:focus,
|
|
1234
|
+
[contenteditable='true'] {
|
|
1235
|
+
outline: none;
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
.textarea-control {
|
|
1239
|
+
position: relative;
|
|
1240
|
+
border: 1px solid ${e=>e.theme.colors.gray200};
|
|
1241
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
1242
|
+
&.--focus {
|
|
1243
|
+
border-color: ${e=>e.theme.colors.primaryBase};
|
|
1244
|
+
box-shadow: 0px 0px 2px 2px
|
|
1245
|
+
${e=>e.theme.colors.primary200};
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
.textarea-wrapper {
|
|
1249
|
+
width: 100%;
|
|
1250
|
+
height: 200px;
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
.control-tool {
|
|
1254
|
+
position: absolute;
|
|
1255
|
+
bottom: 0;
|
|
1256
|
+
left: 0;
|
|
1257
|
+
display: flex;
|
|
1258
|
+
width: calc(100% - 2rem);
|
|
1259
|
+
height: 40px;
|
|
1260
|
+
align-items: center;
|
|
1261
|
+
justify-content: flex-end;
|
|
1262
|
+
border-top: 1px solid ${e=>e.theme.colors.gray200};
|
|
1263
|
+
margin: 0 1rem;
|
|
1264
|
+
|
|
1265
|
+
.tool-button {
|
|
1266
|
+
display: flex;
|
|
1267
|
+
width: 2rem;
|
|
1268
|
+
height: 2rem;
|
|
1269
|
+
align-items: center;
|
|
1270
|
+
justify-content: center;
|
|
1271
|
+
background: transparent;
|
|
1272
|
+
cursor: pointer;
|
|
1273
|
+
}
|
|
1274
|
+
.image-icon {
|
|
1275
|
+
vertical-align: middle;
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
.link-preview-wrapper {
|
|
1281
|
+
position: relative;
|
|
1282
|
+
.icon-close {
|
|
1283
|
+
position: absolute;
|
|
1284
|
+
top: 5px;
|
|
1285
|
+
right: 5px;
|
|
1286
|
+
width: 24px;
|
|
1287
|
+
height: 24px;
|
|
1288
|
+
cursor: pointer;
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
.image-gallery {
|
|
1293
|
+
margin-bottom: 1rem;
|
|
1294
|
+
|
|
1295
|
+
.image-item {
|
|
1296
|
+
position: relative;
|
|
1297
|
+
overflow: hidden;
|
|
1298
|
+
width: 100%;
|
|
1299
|
+
height: 0;
|
|
1300
|
+
padding-top: 67%;
|
|
1301
|
+
margin-top: 1rem;
|
|
1302
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
1303
|
+
|
|
1304
|
+
& > img {
|
|
1305
|
+
position: absolute;
|
|
1306
|
+
top: 0;
|
|
1307
|
+
left: 0;
|
|
1308
|
+
width: 100%;
|
|
1309
|
+
height: 100%;
|
|
1310
|
+
object-fit: cover;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
.close-btn {
|
|
1314
|
+
position: absolute;
|
|
1315
|
+
top: 8px;
|
|
1316
|
+
right: 8px;
|
|
1317
|
+
left: unset;
|
|
1318
|
+
width: 24px;
|
|
1319
|
+
height: 24px;
|
|
1320
|
+
cursor: pointer;
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
.description-label {
|
|
1326
|
+
margin-bottom: 5px;
|
|
1327
|
+
color: ${e=>e.theme.colors.gray600};
|
|
1328
|
+
/* font-family: 'Open Sans', sans-serif; */
|
|
1329
|
+
font-size: 13px;
|
|
1330
|
+
font-weight: bold;
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
.count-string {
|
|
1334
|
+
margin-top: 5px;
|
|
1335
|
+
color: ${e=>e.theme.colors.gray500};
|
|
1336
|
+
font-size: 11px;
|
|
1337
|
+
text-align: right;
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
.input-notification {
|
|
1341
|
+
display: flex;
|
|
1342
|
+
|
|
1343
|
+
& > img {
|
|
1344
|
+
width: 16px;
|
|
1345
|
+
height: 16px;
|
|
1346
|
+
margin-top: 1.5px;
|
|
1347
|
+
margin-right: 8px;
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
`,It=B.default.div`
|
|
1351
|
+
height: 100%;
|
|
1352
|
+
position: relative;
|
|
1353
|
+
width: 100%;
|
|
1354
|
+
display: flex;
|
|
1355
|
+
flex-direction: column;
|
|
1356
|
+
.ql-toolbar.ql-snow {
|
|
1357
|
+
top: 0;
|
|
1358
|
+
width: 100%;
|
|
1359
|
+
position: sticky;
|
|
1360
|
+
z-index: 3;
|
|
1361
|
+
border: none;
|
|
1362
|
+
border-bottom: 1px solid #ccc;
|
|
1363
|
+
background: white;
|
|
1364
|
+
.ql-formats {
|
|
1365
|
+
display: inline-flex;
|
|
1366
|
+
align-items: center;
|
|
1367
|
+
margin-right: 0.5rem;
|
|
1368
|
+
.link-tool-wrapper {
|
|
1369
|
+
.popover-menu__content {
|
|
1370
|
+
padding: 0.5rem;
|
|
1371
|
+
transform: translateX(calc(-50% - 1rem));
|
|
1372
|
+
max-width: calc(100vw - 4rem);
|
|
1373
|
+
::before {
|
|
1374
|
+
right: calc(50% - 8px);
|
|
1375
|
+
}
|
|
1376
|
+
.link-tool-popover {
|
|
1377
|
+
input {
|
|
1378
|
+
padding-left: 1rem;
|
|
1379
|
+
}
|
|
1380
|
+
.link-input-url {
|
|
1381
|
+
margin-bottom: 0.5rem;
|
|
1382
|
+
}
|
|
1383
|
+
.link-input-text {
|
|
1384
|
+
margin-bottom: 0.5rem;
|
|
1385
|
+
}
|
|
1386
|
+
label {
|
|
1387
|
+
display: inline-block;
|
|
1388
|
+
margin-bottom: 0.2rem;
|
|
1389
|
+
}
|
|
1390
|
+
.link-input-button-wrapper {
|
|
1391
|
+
&[data-is-marrybaby='true'] {
|
|
1392
|
+
.link-input-button {
|
|
1393
|
+
border: solid 2px
|
|
1394
|
+
${e=>e.theme.mbColors.pink};
|
|
1395
|
+
background-color: ${e=>e.theme.mbColors.pink};
|
|
1396
|
+
&:hover:not(:disabled) {
|
|
1397
|
+
border: solid 2px
|
|
1398
|
+
${e=>e.theme.mbColors.pink};
|
|
1399
|
+
background-color: ${e=>e.theme.colors.white};
|
|
1400
|
+
color: ${e=>e.theme.mbColors.pink};
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
.link-input-button {
|
|
1406
|
+
width: auto;
|
|
1407
|
+
height: auto;
|
|
1408
|
+
padding: 0.4rem 1rem;
|
|
1409
|
+
background-color: ${e=>e.theme.colors.primaryBase};
|
|
1410
|
+
|
|
1411
|
+
&:disabled {
|
|
1412
|
+
border-color: #bfbfbf;
|
|
1413
|
+
background-color: #bfbfbf;
|
|
1414
|
+
color: #fff;
|
|
1415
|
+
cursor: not-allowed;
|
|
1416
|
+
}
|
|
1417
|
+
&:hover:not(:disabled) {
|
|
1418
|
+
background-color: ${e=>e.theme.colors.primaryHover};
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
.error-text {
|
|
1422
|
+
padding: 0;
|
|
1423
|
+
margin-bottom: 0.5rem;
|
|
1424
|
+
font-weight: 600;
|
|
1425
|
+
color: ${e=>e.theme.colors.red700};
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
@media (max-width: 450px) {
|
|
1432
|
+
position: relative;
|
|
1433
|
+
.ql-formats {
|
|
1434
|
+
.link-tool-wrapper {
|
|
1435
|
+
position: unset;
|
|
1436
|
+
.popover-menu__content {
|
|
1437
|
+
left: 0;
|
|
1438
|
+
transform: unset;
|
|
1439
|
+
max-width: 100%;
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
.quill {
|
|
1446
|
+
flex: 1;
|
|
1447
|
+
overflow-y: hidden;
|
|
1448
|
+
.ql-container {
|
|
1449
|
+
display: inline-block;
|
|
1450
|
+
width: 100%;
|
|
1451
|
+
min-height: 100%;
|
|
1452
|
+
/* padding: 14px 16px; */
|
|
1453
|
+
border: none;
|
|
1454
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
1455
|
+
color: ${e=>e.theme.colors.gray800};
|
|
1456
|
+
font-size: 1rem;
|
|
1457
|
+
line-height: 1.5;
|
|
1458
|
+
resize: none;
|
|
1459
|
+
white-space: break-spaces;
|
|
1460
|
+
.ql-editor {
|
|
1461
|
+
word-break: break-word;
|
|
1462
|
+
overflow-wrap: break-word;
|
|
1463
|
+
/* -ms-overflow-style: none;
|
|
1464
|
+
scrollbar-width: none;
|
|
1465
|
+
&::-webkit-scrollbar {
|
|
1466
|
+
display: none;
|
|
1467
|
+
} */
|
|
1468
|
+
}
|
|
1469
|
+
mocka {
|
|
1470
|
+
padding: 2px 6px;
|
|
1471
|
+
border-radius: 1rem;
|
|
1472
|
+
&[data-url='true'] {
|
|
1473
|
+
/* background-color: #eeeeff; */
|
|
1474
|
+
font-style: italic;
|
|
1475
|
+
color: #1890ff;
|
|
1476
|
+
cursor: pointer;
|
|
1477
|
+
outline: none;
|
|
1478
|
+
text-decoration: underline;
|
|
1479
|
+
}
|
|
1480
|
+
&[data-error='true'] {
|
|
1481
|
+
background-color: #ffeeee;
|
|
1482
|
+
color: red;
|
|
1483
|
+
text-decoration: underline;
|
|
1484
|
+
font-style: bold;
|
|
1485
|
+
}
|
|
1486
|
+
}
|
|
1487
|
+
mention {
|
|
1488
|
+
padding: 2px 6px;
|
|
1489
|
+
border-radius: 1rem;
|
|
1490
|
+
background-color: #eeeeff;
|
|
1491
|
+
color: #1890ff;
|
|
1492
|
+
cursor: pointer;
|
|
1493
|
+
outline: none;
|
|
1494
|
+
text-decoration: none;
|
|
1495
|
+
}
|
|
1496
|
+
ol,
|
|
1497
|
+
ul {
|
|
1498
|
+
padding-left: 1rem;
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
.mention-search-container {
|
|
1503
|
+
position: absolute;
|
|
1504
|
+
background: white;
|
|
1505
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
1506
|
+
filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04))
|
|
1507
|
+
drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.04))
|
|
1508
|
+
drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));
|
|
1509
|
+
overflow-y: scroll;
|
|
1510
|
+
z-index: 99;
|
|
1511
|
+
::-webkit-scrollbar {
|
|
1512
|
+
-webkit-appearance: none;
|
|
1513
|
+
}
|
|
1514
|
+
::-webkit-scrollbar:vertical {
|
|
1515
|
+
width: 14px;
|
|
1516
|
+
}
|
|
1517
|
+
::-webkit-scrollbar-thumb {
|
|
1518
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
1519
|
+
background-color: #d9d9d9;
|
|
1520
|
+
@supports (background-clip: padding-box) {
|
|
1521
|
+
border: 3px solid rgba(0, 0, 0, 0);
|
|
1522
|
+
background-clip: padding-box;
|
|
1523
|
+
}
|
|
1524
|
+
@supports not (background-clip: padding-box) {
|
|
1525
|
+
border: 3px solid white;
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
::-webkit-scrollbar-track {
|
|
1529
|
+
background-color: #fff;
|
|
1530
|
+
border-radius: 0 6px 6px 0;
|
|
1531
|
+
border-left: 1px solid #f2f2f2;
|
|
1532
|
+
}
|
|
1533
|
+
.mention-search-item {
|
|
1534
|
+
cursor: pointer;
|
|
1535
|
+
padding: 12px 1rem;
|
|
1536
|
+
display: flex;
|
|
1537
|
+
align-items: center;
|
|
1538
|
+
&.item-selected {
|
|
1539
|
+
background-color: ${e=>e.theme.colors.gray100};
|
|
1540
|
+
}
|
|
1541
|
+
.search-avatar {
|
|
1542
|
+
width: 40px;
|
|
1543
|
+
height: 40px;
|
|
1544
|
+
font-size: 20px;
|
|
1545
|
+
margin-right: 20px;
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
`;let Ot=null;function jt(e){var t,a;let o=-1;if(void 0!==window.getSelection){const r=window.getSelection();if((null==r?void 0:r.rangeCount)&&(null==r?void 0:r.rangeCount)>0){const r=null===(t=window.getSelection())||void 0===t?void 0:t.getRangeAt(0);if(r){const t=r.cloneRange();t.selectNodeContents(e),t.setEnd(r.endContainer,r.endOffset),o=Vt(t.cloneContents().childNodes,o);const l=null===(a=r.endContainer.parentElement)||void 0===a?void 0:a.closest("mocka"),n=r.endContainer.nodeValue||r.endContainer.outerHTML;l&&(null==n?void 0:n.length)&&(o=o-r.endOffset+(l.outerHTML.length-(null==l?void 0:l.outerHTML.lastIndexOf(n))))}}}return o}function Vt(e,t){return e.forEach(((a,o)=>{const r=o+1===e.length;if(a.nodeType===Node.ELEMENT_NODE){const e=a.outerHTML;if(!r)return void(t+=e.length);t+=e.indexOf(">")+1,t=Vt(a.childNodes,t)}else a.nodeType===Node.TEXT_NODE&&(t+=(a.nodeValue||"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").length)})),t}n.__awaiter(void 0,void 0,void 0,(function*(){if("undefined"==typeof window)return;const e=yield Promise.resolve().then((function(){return P(require("react-quill"))}));Ot=e.default;const t=e.Quill||Ot.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 r extends a{static create(e){if(!e)return super.create(!1);const t=super.create(e);return r.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"]))}}r.blotName="mention",r.tagName="mention",t.register(r)}));const Ft=(e,t)=>{var a;const{formatUrl:o,bannedWords:r=[]}=t||{},l=e.replace(/<font [^\>]*>(.+)<\/font>/gim,((e,t)=>t.replace(/<u[^\>]*>(.+)<\/u>/gim,"$1"))).replace(bt,((e,t,a,o)=>{if(o!==a){const e=a.split(" "),r=e.findIndex(((t,a)=>{const r=e.slice(0,a+1).join(" ");return!o.startsWith(r)}));if(0===r)return`@${o}`;{const a=(r<0?e:e.slice(0,r)).join(" "),l=o.slice(a.length).trim();return console.log(r,a,l),`<mention data-id="${t}" data-name="${a}">${a}</mention> ${l} `}}return e}));if(!o)return{value:Bt(l,r)};let n=(e=>e.replace(Et,((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(gt,((e,t,a)=>{var o;const r=null===(o=t.match(/data-href="([^"]*)"/im))||void 0===o?void 0:o[1];return!r||r===a||a.match(wt)?a:r?`<a href="${r}">${a}</a>`:`<a href="${a}">${a}</a>`})).replace(ht,((e,t,a)=>{if('="'!==t&&'data-url="true">'!==t){const e=a.toLowerCase(),t=`${e.startsWith("http")?"":" https://"}${e}`;return kt({text:t,url:t,method:"edit"})}return e})).replace(Ct,((e,t,a)=>kt({text:a||t,url:t,method:"edit"})))})(l));const i=(e=>{var t;return[...Tt(e),...(null===(t=e.match(gt))||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],r=null===(a=e.match(/>(.*?)<\/mocka>/im))||void 0===a?void 0:a[1];return o||r})))||[]].filter((e=>!!e))})(l);if(i){const e=[];let t="";return i.forEach((t=>{if(t)try{const a=new URL(t);Lt.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(zt).join("|")})<`,"gi"),'data-error="true" data-url="true">$1<').replace(new RegExp(`data-href="(${e.map(zt).join("|")})" data-url="true">`,"gi"),'data-href="$1" data-error="true" data-url="true">')),t=null===(a=i.filter((t=>-1===e.indexOf(t))))||void 0===a?void 0:a[0],{invalidUrls:e,previewUrl:t,value:Bt(n,r)}}return{value:Bt(n,r)}},Dt=({onAddLink:e,id:t})=>L.default.createElement("div",{id:"toolbar-"+t,onClick:e=>{e.preventDefault(),e.stopPropagation()}},L.default.createElement("span",{className:"ql-formats"},L.default.createElement("button",{className:"ql-bold",type:"button"}),L.default.createElement("button",{className:"ql-italic",type:"button"}),L.default.createElement("button",{className:"ql-underline",type:"button"})),L.default.createElement("span",{className:"ql-formats"},L.default.createElement("button",{className:"ql-list",value:"ordered",type:"button"}),L.default.createElement("button",{className:"ql-list",value:"bullet",type:"button"})),L.default.createElement("span",{className:"ql-formats"},L.default.createElement("button",{className:"ql-image",type:"button"}),e&&L.default.createElement(be,{className:"link-tool-wrapper",toggleButtonContent:L.default.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:t})=>L.default.createElement(qt,{onAddUrl:e,setShow:t}))))),Ut=["notification.limitUrlDomain","notification.urlWrongFormat"],qt=({onAddUrl:a,setShow:o})=>{const{data:{env:{isMarryBaby:r}}}=e.useContext(t.TogetherComponentGlobalContext),{t:l}=i.useTranslations(),[n,d]=e.useState(""),[p,m]=e.useState(""),[g,h]=e.useState(-1),f=n.trim()&&p.trim()&&g<0;return L.default.createElement("div",{className:"link-tool-popover"},L.default.createElement(c.Input,{name:"url",value:n,size:"md",label:"URL",placeholder:l("placeholder.enterUrlHere"),type:"text",className:"link-input-url",onChange:e=>{d(e),(e=>{const t=Mt(e.trim());try{const e=new URL(t);return e.protocol.startsWith("http")?Lt.some((t=>e.origin.endsWith("/"+t)||e.origin.endsWith("."+t)))?(h(-1),!0):(h(0),!1):(h(1),!1)}catch(e){return h(1),!1}})(e)}}),g>=0&&L.default.createElement(u.Text,{size:"c2",className:"error-text"},l(Ut[g])),L.default.createElement(c.Input,{name:"text",value:p,size:"md",label:l("createPost.urlText"),placeholder:l("placeholder.enterUrlTextHere"),type:"text",className:"link-input-text",onChange:e=>m(e)}),L.default.createElement("div",{"data-is-marrybaby":r,className:"link-input-button-wrapper"},L.default.createElement(s.Button,{theme:r?"marryBaby":"helloSites",size:"sm",color:"primary",className:"link-input-button",onClick:()=>{f&&(a(p.trim(),Mt(n.trim())),o&&o(!1))},isDisabled:!f},l("insert"))))},Ht=B.default.div`
|
|
1550
|
+
input:focus,
|
|
1551
|
+
textarea:focus,
|
|
1552
|
+
[contenteditable='true'] {
|
|
1553
|
+
outline: none;
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
.title-input {
|
|
1557
|
+
overflow: hidden;
|
|
1558
|
+
width: 100%;
|
|
1559
|
+
padding: 12px 16px;
|
|
1560
|
+
border: solid 1px #d9d9d9;
|
|
1561
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
1562
|
+
font-size: 16px;
|
|
1563
|
+
line-height: 1.2;
|
|
1564
|
+
white-space: nowrap;
|
|
1565
|
+
:focus {
|
|
1566
|
+
border-color: ${e=>e.theme.colors.primaryBase};
|
|
1567
|
+
box-shadow: 0px 0px 2px 2px
|
|
1568
|
+
${e=>e.theme.colors.primary200};
|
|
1569
|
+
}
|
|
1570
|
+
br {
|
|
1571
|
+
display: none;
|
|
1572
|
+
}
|
|
1573
|
+
* {
|
|
1574
|
+
display: inline;
|
|
1575
|
+
white-space: nowrap;
|
|
1576
|
+
}
|
|
1577
|
+
mocka {
|
|
1578
|
+
padding: 2px 6px;
|
|
1579
|
+
border-radius: 1rem;
|
|
1580
|
+
&[data-error='true'] {
|
|
1581
|
+
background-color: #ffeeee;
|
|
1582
|
+
color: red;
|
|
1583
|
+
text-decoration: underline;
|
|
1584
|
+
font-style: bold;
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1587
|
+
ol,
|
|
1588
|
+
ul {
|
|
1589
|
+
padding-left: 1rem;
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
label {
|
|
1594
|
+
display: block;
|
|
1595
|
+
margin-bottom: 5px;
|
|
1596
|
+
color: ${e=>e.theme.colors.gray600};
|
|
1597
|
+
font-size: 13px;
|
|
1598
|
+
font-weight: bold;
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
.count-string {
|
|
1602
|
+
margin-top: 5px;
|
|
1603
|
+
color: ${e=>e.theme.colors.gray500};
|
|
1604
|
+
font-size: 11px;
|
|
1605
|
+
text-align: right;
|
|
1606
|
+
}
|
|
1607
|
+
`,Wt=B.default.div`
|
|
1608
|
+
display: flex;
|
|
1609
|
+
width: 100%;
|
|
1610
|
+
flex-wrap: wrap;
|
|
1611
|
+
margin-top: 1rem;
|
|
1612
|
+
|
|
1613
|
+
.tag-item {
|
|
1614
|
+
min-height: 32px;
|
|
1615
|
+
padding: 5px 12px;
|
|
1616
|
+
border: 1px solid ${e=>e.theme.colors.neutral100};
|
|
1617
|
+
margin-right: 1rem;
|
|
1618
|
+
margin-bottom: 8px;
|
|
1619
|
+
border-radius: 1rem;
|
|
1620
|
+
color: ${e=>e.theme.colors.gray800};
|
|
1621
|
+
cursor: pointer;
|
|
1622
|
+
font-size: 13px;
|
|
1623
|
+
line-height: 22px;
|
|
1624
|
+
transition: all 0.2s;
|
|
1625
|
+
|
|
1626
|
+
&.--active {
|
|
1627
|
+
border-color: ${e=>e.theme.colors.primary50};
|
|
1628
|
+
background: ${e=>e.theme.colors.primary50};
|
|
1629
|
+
color: ${e=>e.theme.colors.primaryBase};
|
|
1630
|
+
}
|
|
1631
|
+
&[data-disabled='true'] {
|
|
1632
|
+
background: ${e=>e.theme.colors.gray100};
|
|
1633
|
+
color: ${e=>e.theme.colors.gray800};
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
.topic-spinner {
|
|
1637
|
+
margin-right: auto;
|
|
1638
|
+
margin-left: auto;
|
|
1639
|
+
& > button {
|
|
1640
|
+
width: 24px;
|
|
1641
|
+
height: 24px;
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
&[data-is-marrybaby='true'] {
|
|
1645
|
+
.tag-item {
|
|
1646
|
+
border-color: transparent;
|
|
1647
|
+
background: #f3f3f3;
|
|
1648
|
+
color: #3e3f58;
|
|
1649
|
+
&.--active {
|
|
1650
|
+
border-color: #b6cdff;
|
|
1651
|
+
background: #e0e9fb;
|
|
1652
|
+
color: #3e3f58;
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
`,Gt=B.default.div`
|
|
1657
|
+
[data-type='confirm'] {
|
|
1658
|
+
width: min(360px, 100%);
|
|
1659
|
+
height: auto;
|
|
1660
|
+
&[data-open='false'] {
|
|
1661
|
+
top: calc(-100% - 500px);
|
|
1662
|
+
}
|
|
1663
|
+
}
|
|
1664
|
+
z-index: 600;
|
|
1665
|
+
|
|
1666
|
+
.header {
|
|
1667
|
+
display: none !important;
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
.confirm-dialog {
|
|
1671
|
+
position: relative;
|
|
1672
|
+
overflow: auto;
|
|
1673
|
+
width: 100%;
|
|
1674
|
+
padding-top: 44px;
|
|
1675
|
+
background: #fff;
|
|
1676
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
1677
|
+
|
|
1678
|
+
.confirm-content {
|
|
1679
|
+
display: flex;
|
|
1680
|
+
flex-direction: column;
|
|
1681
|
+
align-items: center;
|
|
1682
|
+
padding: 0 16px 16px;
|
|
1683
|
+
text-align: center;
|
|
1684
|
+
|
|
1685
|
+
.title {
|
|
1686
|
+
margin-bottom: 8px;
|
|
1687
|
+
font-size: 24px;
|
|
1688
|
+
line-height: 32px;
|
|
1689
|
+
word-break: break-word;
|
|
1690
|
+
overflow-wrap: break-word;
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
.desc {
|
|
1694
|
+
margin-bottom: 24px;
|
|
1695
|
+
color: ${e=>e.theme.colors.gray500};
|
|
1696
|
+
font-size: 18px;
|
|
1697
|
+
line-height: 24px;
|
|
1698
|
+
text-align: center;
|
|
1699
|
+
word-break: break-word;
|
|
1700
|
+
overflow-wrap: break-word;
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
.btn-group {
|
|
1704
|
+
display: flex;
|
|
1705
|
+
flex-wrap: wrap;
|
|
1706
|
+
align-items: center;
|
|
1707
|
+
justify-content: center;
|
|
1708
|
+
|
|
1709
|
+
button {
|
|
1710
|
+
margin: 0 4px 0.5rem;
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1715
|
+
.thumbnail-container {
|
|
1716
|
+
width: 80px;
|
|
1717
|
+
height: 80px;
|
|
1718
|
+
margin-bottom: 32px;
|
|
1719
|
+
.thumbnail {
|
|
1720
|
+
width: 100%;
|
|
1721
|
+
height: 100%;
|
|
1722
|
+
}
|
|
1723
|
+
&.is-icon {
|
|
1724
|
+
display: flex;
|
|
1725
|
+
align-items: center;
|
|
1726
|
+
justify-content: center;
|
|
1727
|
+
background: #e0e9fc;
|
|
1728
|
+
border-radius: 1rem;
|
|
1729
|
+
.thumbnail {
|
|
1730
|
+
width: 40px;
|
|
1731
|
+
height: 40px;
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1735
|
+
&[data-is-marrybaby='true'] {
|
|
1736
|
+
.popup-frame {
|
|
1737
|
+
> div:first-child {
|
|
1738
|
+
overflow: hidden;
|
|
1739
|
+
border-radius: 1rem;
|
|
1740
|
+
&[data-open='true'] {
|
|
1741
|
+
${r.MediaQueries.mbDown} {
|
|
1742
|
+
top: 100%;
|
|
1743
|
+
transform: translate(-50%, -100%);
|
|
1744
|
+
max-width: unset;
|
|
1745
|
+
width: 100%;
|
|
1746
|
+
background: unset;
|
|
1747
|
+
overflow: unset;
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
.popup-content {
|
|
1752
|
+
.close-button {
|
|
1753
|
+
${r.MediaQueries.mbDown} {
|
|
1754
|
+
display: none;
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
.confirm-dialog {
|
|
1758
|
+
${r.MediaQueries.mbDown} {
|
|
1759
|
+
background: unset;
|
|
1760
|
+
position: relative;
|
|
1761
|
+
overflow-x: hidden;
|
|
1762
|
+
&::before {
|
|
1763
|
+
content: '';
|
|
1764
|
+
width: 200%;
|
|
1765
|
+
background: #fff;
|
|
1766
|
+
position: absolute;
|
|
1767
|
+
left: 50%;
|
|
1768
|
+
top: 0;
|
|
1769
|
+
transform: translateX(-50%);
|
|
1770
|
+
z-index: -1;
|
|
1771
|
+
height: 100%;
|
|
1772
|
+
border-top-left-radius: 100%;
|
|
1773
|
+
border-top-right-radius: 100%;
|
|
1774
|
+
}
|
|
1775
|
+
}
|
|
1776
|
+
.confirm-content {
|
|
1777
|
+
padding: 0 40px 40px;
|
|
1778
|
+
${r.MediaQueries.mbDown} {
|
|
1779
|
+
padding-left: 1.5rem;
|
|
1780
|
+
padding-right: 1.5rem;
|
|
1781
|
+
}
|
|
1782
|
+
.btn-group {
|
|
1783
|
+
width: 100%;
|
|
1784
|
+
justify-content: space-between;
|
|
1785
|
+
button {
|
|
1786
|
+
flex: 1;
|
|
1787
|
+
margin: 0;
|
|
1788
|
+
&:first-child {
|
|
1789
|
+
margin-right: 0.5rem;
|
|
1790
|
+
}
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
.thumbnail-container {
|
|
1797
|
+
${r.MediaQueries.mbDown} {
|
|
1798
|
+
display: none;
|
|
1799
|
+
}
|
|
1800
|
+
&.is-icon {
|
|
1801
|
+
background: #ffeaf1;
|
|
1802
|
+
border-radius: 24px;
|
|
1803
|
+
}
|
|
1804
|
+
&.is-mobile {
|
|
1805
|
+
position: absolute;
|
|
1806
|
+
top: 0;
|
|
1807
|
+
left: 50%;
|
|
1808
|
+
display: none;
|
|
1809
|
+
width: 48px;
|
|
1810
|
+
height: 48px;
|
|
1811
|
+
transform: translate(-50%, -50%);
|
|
1812
|
+
&.is-icon {
|
|
1813
|
+
border-radius: 1rem;
|
|
1814
|
+
.thumbnail {
|
|
1815
|
+
width: 24px;
|
|
1816
|
+
height: 24px;
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1819
|
+
${r.MediaQueries.mbDown} {
|
|
1820
|
+
display: flex;
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1823
|
+
}
|
|
1824
|
+
}
|
|
1825
|
+
}
|
|
1826
|
+
`,Zt=e=>{var{size:t,color:a,isExpand:o,useCurrentColor:r,isActive:l,activeColor:i}=e,s=n.__rest(e,["size","color","isExpand","useCurrentColor","isActive","activeColor"]);const d=r?"currentColor":l?i:a,c=Object.assign({width:t,height:t},s);return o?L.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c),L.default.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})):L.default.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 14 14",fill:d,xmlns:"http://www.w3.org/2000/svg"},s),L.default.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"}))};Zt.defaultProps={size:24,color:m.theme.colors.gray600,activeColor:m.theme.colors.primaryBase};const Qt=B.default.div`
|
|
1827
|
+
[data-type='confirm'] {
|
|
1828
|
+
max-width: 468px;
|
|
1829
|
+
/* height: 486px; */
|
|
1830
|
+
padding: 0;
|
|
1831
|
+
|
|
1832
|
+
.popup-content {
|
|
1833
|
+
display: flex;
|
|
1834
|
+
flex-direction: column;
|
|
1835
|
+
padding: 0;
|
|
1836
|
+
|
|
1837
|
+
.close-button {
|
|
1838
|
+
top: 16px;
|
|
1839
|
+
right: 16px;
|
|
1840
|
+
width: 24px;
|
|
1841
|
+
height: 24px;
|
|
1842
|
+
z-index: 5;
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1845
|
+
.header {
|
|
1846
|
+
display: flex;
|
|
1847
|
+
height: 56px;
|
|
1848
|
+
align-items: center;
|
|
1849
|
+
padding: 16px 56px 16px 32px;
|
|
1850
|
+
border-bottom: 1px solid
|
|
1851
|
+
${e=>e.theme.colors.neutral100};
|
|
1852
|
+
font-weight: 900;
|
|
1853
|
+
width: 100%;
|
|
1854
|
+
justify-content: space-between;
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
.content {
|
|
1858
|
+
overflow: auto;
|
|
1859
|
+
flex: 1;
|
|
1860
|
+
.topic-list-wrapper {
|
|
1861
|
+
padding: 1rem;
|
|
1862
|
+
}
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
|
|
1867
|
+
> div&[data-open='true'] {
|
|
1868
|
+
z-index: 250;
|
|
1869
|
+
&:last-child {
|
|
1870
|
+
z-index: 200;
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
${e=>e.isExpand&&l.css`
|
|
1875
|
+
& > div[data-open] {
|
|
1876
|
+
width: 100%;
|
|
1877
|
+
height: 100%;
|
|
1878
|
+
max-width: none;
|
|
1879
|
+
max-height: none;
|
|
1880
|
+
}
|
|
1881
|
+
`}
|
|
1882
|
+
|
|
1883
|
+
${e=>e.hasFullscreen&&l.css`
|
|
1884
|
+
& > div[data-open] {
|
|
1885
|
+
transition: all 0.5s ease-in-out, width 0s, height 0s;
|
|
1886
|
+
}
|
|
1887
|
+
`}
|
|
1888
|
+
`,Xt=B.default.div`
|
|
1889
|
+
cursor: pointer;
|
|
1890
|
+
display: flex;
|
|
1891
|
+
align-items: center;
|
|
1892
|
+
`;var _t="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 Kt=({className:a,style:o,closeIcon:r,heading:l="",children:n,isOpen:i=!1,hasFullscreen:s=!1,onClose:d=(()=>null)})=>{const[c,u]=e.useState(!1);return L.default.createElement(Qt,{className:a,style:o,isExpand:c,hasFullscreen:s},L.default.createElement(v.Popup,{type:"confirm",onClose:d,isOpen:i,closeIcon:r||L.default.createElement("img",{src:_t,loading:"lazy"}),enableAnimation:!s},L.default.createElement("div",{className:"header"},L.default.createElement(t.Heading,{tag:"h5"},l),s&&L.default.createElement(Xt,{onClick:()=>u(!c)},L.default.createElement(Zt,{size:14,isExpand:c}))),L.default.createElement("div",{className:"content"},"function"==typeof n?n(c):n)))},Yt=B.default.div`
|
|
1893
|
+
padding: 1rem;
|
|
1894
|
+
border-top: 1px solid #f2f2f2;
|
|
1895
|
+
&[data-is-reply='true'] {
|
|
1896
|
+
padding-right: 0;
|
|
1897
|
+
padding-left: 0;
|
|
1898
|
+
border-top: 1px solid #e4e8ec;
|
|
1899
|
+
margin-right: 1rem;
|
|
1900
|
+
margin-left: 1rem;
|
|
1901
|
+
}
|
|
1902
|
+
.error-text {
|
|
1903
|
+
padding: 1rem;
|
|
1904
|
+
color: ${e=>e.theme.colors.red700};
|
|
1905
|
+
}
|
|
1906
|
+
.reply-to-container {
|
|
1907
|
+
display: flex;
|
|
1908
|
+
justify-content: space-between;
|
|
1909
|
+
padding-bottom: 0.75rem;
|
|
1910
|
+
margin-top: -0.25rem;
|
|
1911
|
+
.icon-close-comment {
|
|
1912
|
+
width: 16px;
|
|
1913
|
+
height: 16px;
|
|
1914
|
+
cursor: pointer;
|
|
1915
|
+
}
|
|
1916
|
+
a {
|
|
1917
|
+
text-decoration: none;
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
.input-container {
|
|
1921
|
+
display: flex;
|
|
1922
|
+
align-items: center;
|
|
1923
|
+
.avatar-wrapper {
|
|
1924
|
+
display: flex;
|
|
1925
|
+
flex-shrink: 0;
|
|
1926
|
+
align-items: center;
|
|
1927
|
+
margin-right: 0.5rem;
|
|
1928
|
+
&.avatar-wrapper-reply {
|
|
1929
|
+
width: 32px;
|
|
1930
|
+
height: 32px;
|
|
1931
|
+
.avatar {
|
|
1932
|
+
width: 32px;
|
|
1933
|
+
height: 32px;
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
}
|
|
1937
|
+
.input-wrapper {
|
|
1938
|
+
margin-right: 0.5rem;
|
|
1939
|
+
&[data-has-error] {
|
|
1940
|
+
.as-input {
|
|
1941
|
+
border-color: ${e=>e.theme.colors.red700};
|
|
1942
|
+
}
|
|
1943
|
+
}
|
|
1944
|
+
|
|
1945
|
+
.as-input {
|
|
1946
|
+
.textarea {
|
|
1947
|
+
width: 100%;
|
|
1948
|
+
max-height: 225px;
|
|
1949
|
+
min-height: 75px;
|
|
1950
|
+
.ql-toolbar {
|
|
1951
|
+
padding: 0;
|
|
1952
|
+
}
|
|
1953
|
+
.ql-editor {
|
|
1954
|
+
padding-left: 0;
|
|
1955
|
+
padding-right: 0;
|
|
1956
|
+
}
|
|
1957
|
+
.quill {
|
|
1958
|
+
height: 0;
|
|
1959
|
+
}
|
|
1960
|
+
}
|
|
1961
|
+
width: 100%;
|
|
1962
|
+
padding: 12px 16px;
|
|
1963
|
+
border: solid 1px ${e=>e.theme.colors.gray200};
|
|
1964
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
1965
|
+
|
|
1966
|
+
&:active,
|
|
1967
|
+
&:focus {
|
|
1968
|
+
border-color: ${e=>e.theme.colors.primaryBase};
|
|
1969
|
+
box-shadow: 0px 0px 2px 2px
|
|
1970
|
+
${e=>e.theme.colors.primary200};
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
&:disabled {
|
|
1974
|
+
background-color: ${e=>e.theme.colors.gray100};
|
|
1975
|
+
cursor: not-allowed;
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
span {
|
|
1979
|
+
&[data-error='true'] {
|
|
1980
|
+
color: red;
|
|
1981
|
+
text-decoration: underline;
|
|
1982
|
+
}
|
|
1983
|
+
}
|
|
1984
|
+
}
|
|
1985
|
+
|
|
1986
|
+
&[data-has-action-icon] {
|
|
1987
|
+
.as-input {
|
|
1988
|
+
padding: 12px 48px 12px 16px;
|
|
1989
|
+
}
|
|
1990
|
+
}
|
|
1991
|
+
&[data-has-display-icon] {
|
|
1992
|
+
.as-input {
|
|
1993
|
+
padding: 12px 16px 12px 48px;
|
|
1994
|
+
}
|
|
1995
|
+
}
|
|
1996
|
+
|
|
1997
|
+
&[data-has-action-icon][data-has-display-icon] {
|
|
1998
|
+
.as-input {
|
|
1999
|
+
padding: 12px 48px;
|
|
2000
|
+
}
|
|
2001
|
+
}
|
|
2002
|
+
|
|
2003
|
+
&[data-size='lg'] {
|
|
2004
|
+
.as-input {
|
|
2005
|
+
font-size: 16px;
|
|
2006
|
+
font-weight: ${e=>e.theme.sizes.fwRegular};
|
|
2007
|
+
${r.MediaQueries.mbDown} {
|
|
2008
|
+
font-size: 22px;
|
|
2009
|
+
line-height: 1.2;
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
${r.MediaQueries.mbUp} {
|
|
2013
|
+
font-size: 26px;
|
|
2014
|
+
line-height: 1.2;
|
|
2015
|
+
}
|
|
2016
|
+
}
|
|
2017
|
+
}
|
|
2018
|
+
&[data-size='md'] {
|
|
2019
|
+
.as-input {
|
|
2020
|
+
font-weight: ${e=>e.theme.sizes.fwRegular};
|
|
2021
|
+
line-height: 22px;
|
|
2022
|
+
${r.MediaQueries.mbDown} {
|
|
2023
|
+
font-size: 14px;
|
|
2024
|
+
line-height: 1.2;
|
|
2025
|
+
}
|
|
2026
|
+
|
|
2027
|
+
${r.MediaQueries.mbUp} {
|
|
2028
|
+
font-size: 16px;
|
|
2029
|
+
line-height: 1.2;
|
|
2030
|
+
}
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
&[data-size='sm'] {
|
|
2034
|
+
.as-input {
|
|
2035
|
+
font-weight: ${e=>e.theme.sizes.fwRegular};
|
|
2036
|
+
line-height: 20px;
|
|
2037
|
+
${r.MediaQueries.mbDown} {
|
|
2038
|
+
font-size: 13px;
|
|
2039
|
+
line-height: 1.5;
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2042
|
+
${r.MediaQueries.mbUp} {
|
|
2043
|
+
font-size: 13px;
|
|
2044
|
+
line-height: 1.5;
|
|
2045
|
+
}
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2048
|
+
}
|
|
2049
|
+
.images-input-label {
|
|
2050
|
+
height: 100%;
|
|
2051
|
+
cursor: pointer;
|
|
2052
|
+
.icon-images-input {
|
|
2053
|
+
width: 24px;
|
|
2054
|
+
height: 24px;
|
|
2055
|
+
vertical-align: middle;
|
|
2056
|
+
}
|
|
2057
|
+
}
|
|
2058
|
+
.send-button {
|
|
2059
|
+
display: flex;
|
|
2060
|
+
width: 40px;
|
|
2061
|
+
height: 40px;
|
|
2062
|
+
flex-shrink: 0;
|
|
2063
|
+
align-items: center;
|
|
2064
|
+
justify-content: center;
|
|
2065
|
+
padding: 0;
|
|
2066
|
+
border: none;
|
|
2067
|
+
&.send-button-post {
|
|
2068
|
+
background: ${e=>e.theme.colors.neutral100};
|
|
2069
|
+
border-radius: 50%;
|
|
2070
|
+
}
|
|
2071
|
+
.icon-enter {
|
|
2072
|
+
width: 20px;
|
|
2073
|
+
height: 20px;
|
|
2074
|
+
vertical-align: middle;
|
|
2075
|
+
}
|
|
2076
|
+
&[data-is-loading='true'] {
|
|
2077
|
+
> div {
|
|
2078
|
+
display: flex;
|
|
2079
|
+
align-items: center;
|
|
2080
|
+
justify-content: center;
|
|
2081
|
+
}
|
|
2082
|
+
}
|
|
2083
|
+
}
|
|
2084
|
+
}
|
|
2085
|
+
.preview-images-container {
|
|
2086
|
+
margin-top: 1rem;
|
|
2087
|
+
.image-src-wrapper {
|
|
2088
|
+
position: relative;
|
|
2089
|
+
width: 100%;
|
|
2090
|
+
padding-top: 66.67%;
|
|
2091
|
+
&:not(:last-child) {
|
|
2092
|
+
margin-bottom: 1rem;
|
|
2093
|
+
}
|
|
2094
|
+
.preview-image {
|
|
2095
|
+
position: absolute;
|
|
2096
|
+
top: 0;
|
|
2097
|
+
left: 0;
|
|
2098
|
+
width: 100%;
|
|
2099
|
+
height: 100%;
|
|
2100
|
+
object-fit: cover;
|
|
2101
|
+
}
|
|
2102
|
+
.icon-close-circle {
|
|
2103
|
+
position: absolute;
|
|
2104
|
+
top: 10px;
|
|
2105
|
+
right: 10px;
|
|
2106
|
+
width: 20px;
|
|
2107
|
+
height: 20px;
|
|
2108
|
+
cursor: pointer;
|
|
2109
|
+
}
|
|
2110
|
+
}
|
|
2111
|
+
}
|
|
2112
|
+
`,$t=e.createContext({}),Jt=B.default.a`
|
|
2113
|
+
* {
|
|
2114
|
+
pointer-events: none;
|
|
2115
|
+
}
|
|
2116
|
+
`,ea=B.default.div`
|
|
2117
|
+
padding: 1rem;
|
|
2118
|
+
.share__social {
|
|
2119
|
+
display: flex;
|
|
2120
|
+
width: 100%;
|
|
2121
|
+
align-items: center;
|
|
2122
|
+
justify-content: center;
|
|
2123
|
+
|
|
2124
|
+
& > ${Jt} {
|
|
2125
|
+
margin: 0 7px;
|
|
2126
|
+
|
|
2127
|
+
& > img {
|
|
2128
|
+
width: 32px;
|
|
2129
|
+
height: 32px;
|
|
2130
|
+
}
|
|
2131
|
+
.__label {
|
|
2132
|
+
display: none;
|
|
2133
|
+
}
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
.share__copy-link {
|
|
2138
|
+
position: relative;
|
|
2139
|
+
padding: 1rem 0.5rem 0;
|
|
2140
|
+
|
|
2141
|
+
margin-top: 16px;
|
|
2142
|
+
&::before {
|
|
2143
|
+
position: absolute;
|
|
2144
|
+
top: 0;
|
|
2145
|
+
left: 0;
|
|
2146
|
+
width: calc(100% + 2rem);
|
|
2147
|
+
border-top: 1px solid
|
|
2148
|
+
${e=>e.theme.colors.neutral100};
|
|
2149
|
+
margin-left: -1rem;
|
|
2150
|
+
content: '';
|
|
2151
|
+
}
|
|
2152
|
+
.__label {
|
|
2153
|
+
margin-bottom: 8px;
|
|
2154
|
+
font-size: 11px;
|
|
2155
|
+
font-weight: 400;
|
|
2156
|
+
line-height: 17px;
|
|
2157
|
+
text-align: left;
|
|
2158
|
+
}
|
|
2159
|
+
|
|
2160
|
+
.__input-group {
|
|
2161
|
+
position: relative;
|
|
2162
|
+
overflow: hidden;
|
|
2163
|
+
width: 100%;
|
|
2164
|
+
height: 40px;
|
|
2165
|
+
border: 1px solid ${e=>e.theme.colors.gray200};
|
|
2166
|
+
background: #fff;
|
|
2167
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
2168
|
+
|
|
2169
|
+
& > input {
|
|
2170
|
+
width: 100%;
|
|
2171
|
+
height: 100%;
|
|
2172
|
+
padding: 0 16px;
|
|
2173
|
+
border: none;
|
|
2174
|
+
background: transparent;
|
|
2175
|
+
color: ${e=>e.theme.colors.gray800};
|
|
2176
|
+
|
|
2177
|
+
&:focus {
|
|
2178
|
+
outline: none;
|
|
2179
|
+
}
|
|
2180
|
+
}
|
|
2181
|
+
|
|
2182
|
+
.__copy {
|
|
2183
|
+
position: absolute;
|
|
2184
|
+
top: 0;
|
|
2185
|
+
right: 0;
|
|
2186
|
+
width: 71px;
|
|
2187
|
+
height: 100%;
|
|
2188
|
+
padding-left: 12px;
|
|
2189
|
+
background: linear-gradient(
|
|
2190
|
+
90deg,
|
|
2191
|
+
rgba(255, 255, 255, 0.1) 0%,
|
|
2192
|
+
#fff 17%,
|
|
2193
|
+
#fff 100%
|
|
2194
|
+
);
|
|
2195
|
+
color: ${e=>e.theme.colors.primaryBase};
|
|
2196
|
+
cursor: pointer;
|
|
2197
|
+
font-size: 14px;
|
|
2198
|
+
font-weight: 400;
|
|
2199
|
+
}
|
|
2200
|
+
}
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
&[data-is-marrybaby='true'] {
|
|
2204
|
+
${r.MediaQueries.mbDown} {
|
|
2205
|
+
padding: 0.5rem;
|
|
2206
|
+
}
|
|
2207
|
+
.share__social {
|
|
2208
|
+
justify-content: space-between;
|
|
2209
|
+
& > a {
|
|
2210
|
+
display: flex;
|
|
2211
|
+
flex-direction: column;
|
|
2212
|
+
align-items: center;
|
|
2213
|
+
justify-content: center;
|
|
2214
|
+
text-align: center;
|
|
2215
|
+
${r.MediaQueries.mbDown} {
|
|
2216
|
+
margin: 0;
|
|
2217
|
+
}
|
|
2218
|
+
& > img {
|
|
2219
|
+
margin-bottom: 0.8rem;
|
|
2220
|
+
}
|
|
2221
|
+
.__label {
|
|
2222
|
+
display: initial;
|
|
2223
|
+
}
|
|
2224
|
+
}
|
|
2225
|
+
}
|
|
2226
|
+
.share__copy-link {
|
|
2227
|
+
padding: 0;
|
|
2228
|
+
&::before {
|
|
2229
|
+
display: none;
|
|
2230
|
+
}
|
|
2231
|
+
.__label {
|
|
2232
|
+
display: none;
|
|
2233
|
+
}
|
|
2234
|
+
.__input-group {
|
|
2235
|
+
height: unset;
|
|
2236
|
+
background-color: rgb(243, 243, 243);
|
|
2237
|
+
border-radius: 16px;
|
|
2238
|
+
& > input {
|
|
2239
|
+
padding: 1rem;
|
|
2240
|
+
}
|
|
2241
|
+
.__copy {
|
|
2242
|
+
background: linear-gradient(
|
|
2243
|
+
90deg,
|
|
2244
|
+
rgba(255, 255, 255, 0.1) 0%,
|
|
2245
|
+
#f3f3f3 17%,
|
|
2246
|
+
#f3f3f3 100%
|
|
2247
|
+
);
|
|
2248
|
+
}
|
|
2249
|
+
}
|
|
2250
|
+
}
|
|
2251
|
+
}
|
|
2252
|
+
`;const ta=({className:a,trackingCategory:o="Together",style:r,shareUrl:l,title:n})=>{const{action:{pushNotifications:s},data:{env:{isMarryBaby:d}}}=e.useContext(t.TogetherComponentGlobalContext),{t:c}=i.useTranslations(),p=e.useRef(null),[g,h]=e.useState(!1),f=()=>{if(!(null==p?void 0:p.current))return;const e=document.createElement("textarea");e.value=p.current.value,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),p.current.focus(),h(!0),s({title:"",message:c("share.linkCopied"),type:"success"})};e.useEffect((()=>{f(),navigator.share&&navigator.share({title:n||"Read This Post",url:l}).then((()=>{s({title:"",message:c("share.linkShared"),type:"success"})})).catch(console.error)}),[]);const v=((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,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAzTSURBVHgB7Z0JdFTVGce/776ZCQkBElLCksga9kU2FQQRSlGo1AYUKwpuVA91xdZqtVTx1ONyrIpKBesC1AO1WHsiPQcsoIig1oNgEEEMKonsIQkhk2WWd+/X+96YTEK2+2beSJJ5v3Nyst25c9/3v/f7vru8NwAODg4ODg4ODg4ODg4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/XSZWbvNiua/eIQDlB3yrXzSDfCmC0oOIZK8XIlgplm/hPiF3ZU95uetoCZcpKYet+31M5+HTzVv3+9mOvJPiF6MS9UfnpMDg7u4WLcSZKkGvvl/OX9zshSPFemNtzQdFLGxJ8lVWHtoHJARWndSBB5RjQIIbxeUjkvhvZyTjxIHtWpQQ/iDRMxvKgi9t9monzvAmsxwCXAVret8MCli4SPaBrFpdAGSMEtMZVkoRRFDpfeRFsvW7Kowv6Jfu1n89pb2YOyGZZaZq50SMcj/RjgM+/tIWL23eW+UKcsWEgmgbKKI+AozHVlbRIStxwERwYySQFCHi+cDA7u7A7Iva07ShCS4pDGR01mIyt6gMEB0t1mF7nj9odIKNe/wuLshyqi4dbCqs6qMUByw+OZcvlS+5B6widC5FML5HbbgEF9KgHu7gRVkeNqZvAmWkuFhaMtKQzARon6A2omVcoiOlPPjNMZ2dLOPswPFAcOe3fu3zgiCekr9DFHe9WHE/YPmNLD66uA6GCJWFBBSMmTtJSWKB9I4MftJB0xI9yBkD0uQVcjkzqvARKyrnVHiG45kqYEQUk1FEHPrAm33yVctbVzrSUWDAg3IknJBmEW3y5ASReB7W9rP06GLrhgh9SM/nyk9QPxvSBVYck06A2tqzhfJpTZ8+YBHra0FLzU8RmiK1y4dIQBejpG5GltSWdsrypeuZAhEQ2WLcCml8DrMiFoF5XJTUVcYrbAsP+csnkraw4Pdr86N+iE89uE/GhCIZE3hrjQmhnh+h8Q2iW442RsIKlH6PnodI0Npp1C5NjoLW546MgEsVMCoa4xvY/UFuSywtV1QTrOToKzKeI9SyRwJCqVxhWQ2CLY3W8OEq7abmowzFZBloz2/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,i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",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/v4ptT8psj5CxFIqtD8+wlBMy1opsD4tuEKQ1537/Pv9/f76+/opsz9DxVQvukRKyVlGx1ZPzF1Tz2BX0WNJyFgrt0FSzl9FxlU4vkpQzV45v0wxu0X3+fg8wU46wE1Vz2E2vUkzu0dOy1worj1AwlFW0GL2+PcntD01u0j8/v1IyFc9wU9ExlQ7v035+vkvt0MttkIlszz1+PUsskEorDz3/PhFv1cnqTv09/Tt9e/5/Pkr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5AlzFHI/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}`}])(l||"",d);return L.default.createElement(ea,{"data-is-marrybaby":d,className:a,style:r},L.default.createElement("div",{className:"share__social"},v.map(((e,t)=>L.default.createElement(Jt,{key:t,"data-event-category":o,"data-event-action":`Social Share - ${e.name}`,"data-event-label":l,href:e.href,target:"_blank",rel:"noreferrer"},L.default.createElement(x.ImageWrap,{alt:`share to ${e}`,src:e.icon}),L.default.createElement(u.Text,{className:"__label",size:"label2",type:"regular"},e.name))))),L.default.createElement("div",{className:"share__copy-link"},L.default.createElement(u.Text,{className:"__label",color:m.theme.colors.gray500,size:"p4",type:"regular"},c("orCopyLink")),L.default.createElement("div",{className:"__input-group"},L.default.createElement("input",{ref:p,type:"text",value:l,readOnly:!0,onFocus:e=>e.target.select()}),L.default.createElement("button",{className:"__copy",onClick:()=>f()},d?L.default.createElement(x.ImageWrap,{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"}):c(g?"copied":"copy")))))},aa=B.default.div`
|
|
2253
|
+
.share-popup {
|
|
2254
|
+
> div:first-child {
|
|
2255
|
+
height: unset;
|
|
2256
|
+
}
|
|
2257
|
+
.close-button {
|
|
2258
|
+
display: none;
|
|
2259
|
+
}
|
|
2260
|
+
.popup-content .header {
|
|
2261
|
+
display: none;
|
|
2262
|
+
}
|
|
2263
|
+
}
|
|
2264
|
+
.custom-share__header {
|
|
2265
|
+
display: flex;
|
|
2266
|
+
flex-wrap: no-wrap;
|
|
2267
|
+
align-items: center;
|
|
2268
|
+
padding: 1rem;
|
|
2269
|
+
border-bottom: 1px solid
|
|
2270
|
+
${e=>e.theme.colors.neutral100};
|
|
2271
|
+
margin-bottom: 16px;
|
|
2272
|
+
|
|
2273
|
+
.custom-share__header-image {
|
|
2274
|
+
width: 38px;
|
|
2275
|
+
height: 38px;
|
|
2276
|
+
flex-shrink: 0;
|
|
2277
|
+
& > img {
|
|
2278
|
+
width: 100%;
|
|
2279
|
+
height: 100%;
|
|
2280
|
+
object-fit: cover;
|
|
2281
|
+
object-position: center;
|
|
2282
|
+
}
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2285
|
+
.custom-share__header-info {
|
|
2286
|
+
flex: 1;
|
|
2287
|
+
padding: 0 8px;
|
|
2288
|
+
word-break: break-word;
|
|
2289
|
+
|
|
2290
|
+
[data-tag='h4'] {
|
|
2291
|
+
margin-bottom: 8px;
|
|
2292
|
+
font-size: 14px;
|
|
2293
|
+
font-weight: bold;
|
|
2294
|
+
line-height: 14px;
|
|
2295
|
+
}
|
|
2296
|
+
|
|
2297
|
+
[data-size='md'] {
|
|
2298
|
+
color: #a5a5a5;
|
|
2299
|
+
font-size: 14px;
|
|
2300
|
+
line-height: 14px;
|
|
2301
|
+
}
|
|
2302
|
+
}
|
|
2303
|
+
}
|
|
2304
|
+
|
|
2305
|
+
&[data-is-marrybaby='true'] {
|
|
2306
|
+
.share-popup {
|
|
2307
|
+
> div:first-child {
|
|
2308
|
+
overflow: hidden;
|
|
2309
|
+
border-radius: 1rem;
|
|
2310
|
+
&[data-open='true'] {
|
|
2311
|
+
${r.MediaQueries.mbDown} {
|
|
2312
|
+
max-width: unset;
|
|
2313
|
+
width: 100%;
|
|
2314
|
+
top: 100%;
|
|
2315
|
+
transform: translate(-50%, -100%);
|
|
2316
|
+
border-bottom-left-radius: 0;
|
|
2317
|
+
border-bottom-right-radius: 0;
|
|
2318
|
+
}
|
|
2319
|
+
}
|
|
2320
|
+
}
|
|
2321
|
+
.close-button {
|
|
2322
|
+
display: block;
|
|
2323
|
+
}
|
|
2324
|
+
.popup-content {
|
|
2325
|
+
.header {
|
|
2326
|
+
display: block;
|
|
2327
|
+
padding: 1rem;
|
|
2328
|
+
background-color: rgb(243, 243, 243);
|
|
2329
|
+
}
|
|
2330
|
+
.content {
|
|
2331
|
+
padding-bottom: 1rem;
|
|
2332
|
+
}
|
|
2333
|
+
}
|
|
2334
|
+
.share-mb-text {
|
|
2335
|
+
margin: 1rem 1rem 0.5rem;
|
|
2336
|
+
}
|
|
2337
|
+
}
|
|
2338
|
+
}
|
|
2339
|
+
`,oa=B.default.div`
|
|
2340
|
+
padding: 0 8px;
|
|
2341
|
+
margin-top: 18px;
|
|
2342
|
+
|
|
2343
|
+
.report-list {
|
|
2344
|
+
margin-bottom: 18px;
|
|
2345
|
+
|
|
2346
|
+
.report-item {
|
|
2347
|
+
display: flex;
|
|
2348
|
+
align-items: center;
|
|
2349
|
+
margin-bottom: 10px;
|
|
2350
|
+
font-weight: 600;
|
|
2351
|
+
|
|
2352
|
+
& > img {
|
|
2353
|
+
width: 12px;
|
|
2354
|
+
height: 12px;
|
|
2355
|
+
margin-right: 8px;
|
|
2356
|
+
}
|
|
2357
|
+
|
|
2358
|
+
.__label {
|
|
2359
|
+
font-size: 14px;
|
|
2360
|
+
}
|
|
2361
|
+
}
|
|
2362
|
+
}
|
|
2363
|
+
|
|
2364
|
+
.report-submit {
|
|
2365
|
+
width: 100%;
|
|
2366
|
+
}
|
|
2367
|
+
&[data-is-marrybaby='true'] {
|
|
2368
|
+
padding: 0 1rem 1rem;
|
|
2369
|
+
}
|
|
2370
|
+
`,ra=B.default.div`
|
|
2371
|
+
padding: 0.5rem 1rem 1rem;
|
|
2372
|
+
line-height: 1.5;
|
|
2373
|
+
word-break: break-word;
|
|
2374
|
+
.post-content-replying {
|
|
2375
|
+
margin-right: 5px;
|
|
2376
|
+
cursor: pointer;
|
|
2377
|
+
display: inline-block;
|
|
2378
|
+
&.tag-only {
|
|
2379
|
+
margin-right: 0;
|
|
2380
|
+
}
|
|
2381
|
+
}
|
|
2382
|
+
.post-content {
|
|
2383
|
+
display: inline;
|
|
2384
|
+
white-space: pre-wrap;
|
|
2385
|
+
/* > *:first-child, */
|
|
2386
|
+
> mention:first-child ~ * {
|
|
2387
|
+
&:not(ul),
|
|
2388
|
+
&:not(ol) {
|
|
2389
|
+
display: inline-block;
|
|
2390
|
+
}
|
|
2391
|
+
}
|
|
2392
|
+
> mention:first-child {
|
|
2393
|
+
margin-right: 5px;
|
|
2394
|
+
}
|
|
2395
|
+
&.has-see-more {
|
|
2396
|
+
*:last-child {
|
|
2397
|
+
&:not(ul),
|
|
2398
|
+
&:not(ol) {
|
|
2399
|
+
display: inline;
|
|
2400
|
+
}
|
|
2401
|
+
}
|
|
2402
|
+
}
|
|
2403
|
+
img {
|
|
2404
|
+
width: 100%;
|
|
2405
|
+
height: unset;
|
|
2406
|
+
}
|
|
2407
|
+
ul,
|
|
2408
|
+
ol {
|
|
2409
|
+
list-style-position: inside;
|
|
2410
|
+
padding-left: 1rem;
|
|
2411
|
+
display: block;
|
|
2412
|
+
}
|
|
2413
|
+
ol {
|
|
2414
|
+
list-style-type: decimal;
|
|
2415
|
+
}
|
|
2416
|
+
ul {
|
|
2417
|
+
list-style-type: disc;
|
|
2418
|
+
}
|
|
2419
|
+
mention {
|
|
2420
|
+
color: ${e=>e.mentionColor||"#1890ff"};
|
|
2421
|
+
padding-right: 4px;
|
|
2422
|
+
:hover {
|
|
2423
|
+
text-decoration: underline;
|
|
2424
|
+
}
|
|
2425
|
+
}
|
|
2426
|
+
}
|
|
2427
|
+
`;var la=o.createStyles((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 na=a=>{var{trackingCategory:r,url:l,className:s,style:d,replyingTo:c,mentionedUser:u,description:p,disableShortenContent:m,mentions:g=[],maxChars:h=1e3,hideShowAllBtn:f,styles:v,onClickCreatePostLink:b}=a,x=n.__rest(a,["trackingCategory","url","className","style","replyingTo","mentionedUser","description","disableShortenContent","mentions","maxChars","hideShowAllBtn","styles","onClickCreatePostLink"]);const{classes:w,theme:y}=la(void 0,{name:"PostContent",styles:v}),[C,E]=e.useState(!1),{t:k}=i.useTranslations(),{authActionWrapper:A}=_(),[N,T]=e.useState(!1),S=Nt(At(p||"","display"),g),{action:{sanitizeFunction:z}}=e.useContext(t.TogetherComponentGlobalContext),P=e.useMemo((()=>{const e=z(S||"");if(m||C)return{showContent:e,hasSeeMore:!1};const t=e.slice(0,h),a=h-27*((t.match(/<\/div>/g)||[]).length-1),o=(t||"").slice(0,a<40?40:a),r=z(o.replace(/(<|<\/)( +|[a-zA-Z]*)$/gi,"")),l=r.length<e.length-10;return{showContent:l?r:e,hasSeeMore:l}}),[m,C,S]),M=(null==u?void 0:u.name)||c,B="expert"===(null==u?void 0:u.role)&&!!(null==u?void 0:u.partnerId),R=e.useRef(null),I=e=>{e.preventDefault(),null==b||b()};return e.useEffect((()=>{var e;return null===(e=null==R?void 0:R.current)||void 0===e||e.querySelectorAll("[data-create-post]").forEach((e=>{e.addEventListener("click",I,{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",I,!1)}))}}),[m,C,S]),L.default.createElement(L.default.Fragment,null,B&&L.default.createElement($e,{isOpen:N,onClose:()=>T(!1),expertId:String(null==u?void 0:u.partnerId)}),L.default.createElement(ra,Object.assign({ref:R,className:`${w.root} ${s} no-replace-click`,style:d,mentionColor:y.fn.primaryColor()},x),M&&L.default.createElement(o.Anchor,{onClick:()=>B&&T(!0),className:"post-content-replying"},"@",M),(null==p?void 0:p.startsWith("[mention+id="))&&L.default.createElement("span",{className:"post-content-replying tag-only",style:{color:y.fn.primaryColor()}},"@"),L.default.createElement("span",{dangerouslySetInnerHTML:{__html:P.showContent},className:"post-content "+(P.hasSeeMore?"has-see-more":"")}),P.hasSeeMore&&!C&&L.default.createElement("span",null,"... ",!f&&L.default.createElement(o.Anchor,Object.assign({onClick:e=>{e.preventDefault(),e.stopPropagation(),A((()=>E(!0)))},className:"see-more-text"},r?{"data-event-category":r,"data-event-action":"See More Post Click","data-event-label":l}:{}),k("post.seeMore")))))},ia=B.default.div`
|
|
2428
|
+
padding: 14px 16px 14px 17px;
|
|
2429
|
+
background: ${e=>e.bgColor};
|
|
2430
|
+
border-left: 3px solid ${e=>e.highlight};
|
|
2431
|
+
|
|
2432
|
+
${r.MediaQueries.mbUp} {
|
|
2433
|
+
padding: 12px 12px 12px 17px;
|
|
2434
|
+
}
|
|
2435
|
+
`,sa=B.default.div`
|
|
2436
|
+
display: flex;
|
|
2437
|
+
`,da=B.default.div`
|
|
2438
|
+
font-size: 12px;
|
|
2439
|
+
line-height: 18px;
|
|
2440
|
+
|
|
2441
|
+
&[data-has-icon='true'] {
|
|
2442
|
+
margin-left: 10px;
|
|
2443
|
+
}
|
|
2444
|
+
`,ca=B.default.div`
|
|
2445
|
+
flex-shrink: 0;
|
|
2446
|
+
`,ua=B.default.div`
|
|
2447
|
+
display: grid;
|
|
2448
|
+
grid-gap: 3px;
|
|
2449
|
+
grid-template-columns: 1fr 1fr;
|
|
2450
|
+
grid-template-rows: auto;
|
|
2451
|
+
|
|
2452
|
+
.img-wrapper {
|
|
2453
|
+
position: relative;
|
|
2454
|
+
overflow: hidden;
|
|
2455
|
+
width: 100%;
|
|
2456
|
+
padding-top: 56.25%;
|
|
2457
|
+
grid-column: auto;
|
|
2458
|
+
|
|
2459
|
+
& > img {
|
|
2460
|
+
cursor: zoom-in;
|
|
2461
|
+
}
|
|
2462
|
+
|
|
2463
|
+
.img-preview-blur {
|
|
2464
|
+
position: absolute;
|
|
2465
|
+
top: 50%;
|
|
2466
|
+
left: 50%;
|
|
2467
|
+
width: 110%;
|
|
2468
|
+
height: 110%;
|
|
2469
|
+
/* Add the blur effect */
|
|
2470
|
+
-webkit-filter: blur(8px);
|
|
2471
|
+
filter: blur(8px);
|
|
2472
|
+
object-fit: cover;
|
|
2473
|
+
object-position: center;
|
|
2474
|
+
opacity: 0.8;
|
|
2475
|
+
transform: translate(-50%, -50%);
|
|
2476
|
+
}
|
|
2477
|
+
.img-preview {
|
|
2478
|
+
position: absolute;
|
|
2479
|
+
top: 0;
|
|
2480
|
+
left: 0;
|
|
2481
|
+
width: 100%;
|
|
2482
|
+
height: 100%;
|
|
2483
|
+
object-fit: contain;
|
|
2484
|
+
object-position: center;
|
|
2485
|
+
}
|
|
2486
|
+
.img-more-overlay {
|
|
2487
|
+
position: absolute;
|
|
2488
|
+
top: 0;
|
|
2489
|
+
left: 0;
|
|
2490
|
+
display: flex;
|
|
2491
|
+
width: 100%;
|
|
2492
|
+
height: 100%;
|
|
2493
|
+
align-items: center;
|
|
2494
|
+
justify-content: center;
|
|
2495
|
+
background: rgba(0, 0, 0, 0.5);
|
|
2496
|
+
z-index: 4;
|
|
2497
|
+
}
|
|
2498
|
+
}
|
|
2499
|
+
&[data-image-count='1'] {
|
|
2500
|
+
.img-wrapper {
|
|
2501
|
+
/* padding-top: 100%; */
|
|
2502
|
+
grid-column: 1/3;
|
|
2503
|
+
}
|
|
2504
|
+
}
|
|
2505
|
+
&[data-image-count='2'] {
|
|
2506
|
+
.img-wrapper {
|
|
2507
|
+
/* padding-top: 100%; */
|
|
2508
|
+
}
|
|
2509
|
+
}
|
|
2510
|
+
&[data-image-count='3'] {
|
|
2511
|
+
.img-wrapper {
|
|
2512
|
+
&:first-child {
|
|
2513
|
+
grid-column: 1/3;
|
|
2514
|
+
}
|
|
2515
|
+
}
|
|
2516
|
+
}
|
|
2517
|
+
&[data-image-count='4'] {
|
|
2518
|
+
.img-wrapper {
|
|
2519
|
+
/* padding-top: 100%; */
|
|
2520
|
+
}
|
|
2521
|
+
}
|
|
2522
|
+
&[data-image-count='5'] {
|
|
2523
|
+
grid-template-columns: repeat(6, 1fr);
|
|
2524
|
+
.img-wrapper {
|
|
2525
|
+
/* padding-top: 100%; */
|
|
2526
|
+
grid-column: auto/ span 2;
|
|
2527
|
+
|
|
2528
|
+
&:first-child {
|
|
2529
|
+
padding-top: 56.25%;
|
|
2530
|
+
grid-column: 1/4;
|
|
2531
|
+
}
|
|
2532
|
+
&:nth-child(2) {
|
|
2533
|
+
padding-top: 56.25%;
|
|
2534
|
+
grid-column: 4/7;
|
|
2535
|
+
}
|
|
2536
|
+
}
|
|
2537
|
+
}
|
|
2538
|
+
|
|
2539
|
+
&[data-is-marrybaby='true'] {
|
|
2540
|
+
grid-gap: 8px;
|
|
2541
|
+
.img-wrapper {
|
|
2542
|
+
padding-top: 66.66%;
|
|
2543
|
+
border-radius: 1rem;
|
|
2544
|
+
.img-preview {
|
|
2545
|
+
object-fit: cover;
|
|
2546
|
+
}
|
|
2547
|
+
}
|
|
2548
|
+
&[data-image-count='3'] {
|
|
2549
|
+
grid-template-columns: 1fr 1fr 1fr;
|
|
2550
|
+
.img-wrapper {
|
|
2551
|
+
&:first-child {
|
|
2552
|
+
padding-top: 100%;
|
|
2553
|
+
grid-column: 1/3;
|
|
2554
|
+
grid-row: 1/3;
|
|
2555
|
+
}
|
|
2556
|
+
}
|
|
2557
|
+
}
|
|
2558
|
+
}
|
|
2559
|
+
`,pa=B.default.div`
|
|
2560
|
+
position: fixed;
|
|
2561
|
+
z-index: 999;
|
|
2562
|
+
top: 0;
|
|
2563
|
+
left: 0;
|
|
2564
|
+
display: flex;
|
|
2565
|
+
overflow: hidden;
|
|
2566
|
+
width: 100vw;
|
|
2567
|
+
height: 100vh;
|
|
2568
|
+
flex-direction: column;
|
|
2569
|
+
background: white;
|
|
2570
|
+
opacity: 0;
|
|
2571
|
+
pointer-events: none;
|
|
2572
|
+
transition: opacity 0.2s linear;
|
|
2573
|
+
&[data-open='true'] {
|
|
2574
|
+
opacity: 1;
|
|
2575
|
+
pointer-events: auto;
|
|
2576
|
+
}
|
|
2577
|
+
.top-bar {
|
|
2578
|
+
position: relative;
|
|
2579
|
+
padding: 20px 40px;
|
|
2580
|
+
.icon-arrow-left {
|
|
2581
|
+
position: absolute;
|
|
2582
|
+
top: 50%;
|
|
2583
|
+
left: 20px;
|
|
2584
|
+
height: 24px;
|
|
2585
|
+
width: 24px;
|
|
2586
|
+
cursor: pointer;
|
|
2587
|
+
transform: translateY(-50%);
|
|
2588
|
+
}
|
|
2589
|
+
}
|
|
2590
|
+
.container {
|
|
2591
|
+
flex: 1;
|
|
2592
|
+
overflow-y: auto;
|
|
2593
|
+
.img-preview {
|
|
2594
|
+
width: 100%;
|
|
2595
|
+
min-width: 100%;
|
|
2596
|
+
margin-bottom: 0.5rem;
|
|
2597
|
+
cursor: pointer;
|
|
2598
|
+
max-height: 100%;
|
|
2599
|
+
object-fit: cover;
|
|
2600
|
+
}
|
|
2601
|
+
}
|
|
2602
|
+
`,ma=B.default((e=>{var{icon:t,bgColor:a=m.theme.colors.yellow50,highlightColor:o=m.theme.colors.yellow800,message:r}=e,l=n.__rest(e,["icon","bgColor","highlightColor","message"]);return L.default.createElement(ia,Object.assign({bgColor:a,highlight:o},l),L.default.createElement(sa,null,t&&L.default.createElement(ca,null,t),L.default.createElement(da,{"data-has-icon":Boolean(t)},r)))}))`
|
|
2603
|
+
margin-bottom: 16px;
|
|
2604
|
+
`,ga=B.default.div`
|
|
2605
|
+
position: fixed;
|
|
2606
|
+
z-index: 999;
|
|
2607
|
+
top: 0;
|
|
2608
|
+
left: 0;
|
|
2609
|
+
display: flex;
|
|
2610
|
+
width: 100%;
|
|
2611
|
+
height: 100%;
|
|
2612
|
+
flex-direction: column;
|
|
2613
|
+
background: black;
|
|
2614
|
+
opacity: 0;
|
|
2615
|
+
pointer-events: none;
|
|
2616
|
+
transition: opacity 0.2s linear;
|
|
2617
|
+
&[data-open='true'] {
|
|
2618
|
+
opacity: 1;
|
|
2619
|
+
pointer-events: auto;
|
|
2620
|
+
}
|
|
2621
|
+
`,ha=B.default.div`
|
|
2622
|
+
padding: 1rem;
|
|
2623
|
+
background: white;
|
|
2624
|
+
.icon-close {
|
|
2625
|
+
width: 26px;
|
|
2626
|
+
height: 26px;
|
|
2627
|
+
cursor: pointer;
|
|
2628
|
+
}
|
|
2629
|
+
`,fa=B.default.div`
|
|
2630
|
+
position: relative;
|
|
2631
|
+
flex: 1;
|
|
2632
|
+
overflow: hidden;
|
|
2633
|
+
> img {
|
|
2634
|
+
height: 100%;
|
|
2635
|
+
width: 100%;
|
|
2636
|
+
object-fit: contain;
|
|
2637
|
+
object-position: center;
|
|
2638
|
+
}
|
|
2639
|
+
`,va=B.default.div`
|
|
2640
|
+
--inner-padding: max(16px, 20%);
|
|
2641
|
+
height: 100%;
|
|
2642
|
+
position: absolute;
|
|
2643
|
+
left: 0;
|
|
2644
|
+
padding: 8px;
|
|
2645
|
+
padding-right: var(--inner-padding);
|
|
2646
|
+
display: flex;
|
|
2647
|
+
align-items: center;
|
|
2648
|
+
top: 0;
|
|
2649
|
+
cursor: pointer;
|
|
2650
|
+
&[data-right] {
|
|
2651
|
+
padding-right: 8px;
|
|
2652
|
+
padding-left: var(--inner-padding);
|
|
2653
|
+
left: unset;
|
|
2654
|
+
right: 0;
|
|
2655
|
+
}
|
|
2656
|
+
&[data-disabled='true'] {
|
|
2657
|
+
cursor: not-allowed;
|
|
2658
|
+
}
|
|
2659
|
+
`,ba=B.default.div`
|
|
2660
|
+
border-radius: 50%;
|
|
2661
|
+
background: rgba(0, 0, 0, 0.3);
|
|
2662
|
+
display: flex;
|
|
2663
|
+
align-items: center;
|
|
2664
|
+
justify-content: center;
|
|
2665
|
+
padding: 4px;
|
|
2666
|
+
> img {
|
|
2667
|
+
width: 16px;
|
|
2668
|
+
height: 16px;
|
|
2669
|
+
&[data-disabled='true'] {
|
|
2670
|
+
opacity: 0.5;
|
|
2671
|
+
}
|
|
2672
|
+
}
|
|
2673
|
+
${r.MediaQueries.tdUp} {
|
|
2674
|
+
padding: 8px;
|
|
2675
|
+
> img {
|
|
2676
|
+
width: 30px;
|
|
2677
|
+
height: 30px;
|
|
2678
|
+
}
|
|
2679
|
+
}
|
|
2680
|
+
`,xa=B.default.div`
|
|
2681
|
+
position: absolute;
|
|
2682
|
+
top: 0;
|
|
2683
|
+
right: 0;
|
|
2684
|
+
left: 0;
|
|
2685
|
+
bottom: 0;
|
|
2686
|
+
background: rgba(0, 0, 0, 0.4);
|
|
2687
|
+
color: white;
|
|
2688
|
+
display: flex;
|
|
2689
|
+
align-items: center;
|
|
2690
|
+
justify-content: center;
|
|
2691
|
+
cursor: pointer;
|
|
2692
|
+
`,wa="hhgcomp-sensitivemask-inner",ya=t.getDefaultClassWrapper(xa,wa),Ca=B.default.div``,Ea=B.default.div`
|
|
2693
|
+
position: absolute;
|
|
2694
|
+
bottom: 0;
|
|
2695
|
+
left: 0;
|
|
2696
|
+
width: 100%;
|
|
2697
|
+
height: 100%;
|
|
2698
|
+
z-index: 3;
|
|
2699
|
+
background: white;
|
|
2700
|
+
cursor: pointer;
|
|
2701
|
+
|
|
2702
|
+
&,
|
|
2703
|
+
* {
|
|
2704
|
+
// transition: all 300ms;
|
|
2705
|
+
transform-origin: bottom left;
|
|
2706
|
+
}
|
|
2707
|
+
|
|
2708
|
+
img {
|
|
2709
|
+
transition: none;
|
|
2710
|
+
}
|
|
2711
|
+
.img-preview {
|
|
2712
|
+
width: 100%;
|
|
2713
|
+
}
|
|
2714
|
+
&[data-is-blurred='true'] {
|
|
2715
|
+
.img-preview {
|
|
2716
|
+
/* Add the blur effect */
|
|
2717
|
+
-webkit-filter: blur(24px);
|
|
2718
|
+
filter: blur(24px);
|
|
2719
|
+
}
|
|
2720
|
+
}
|
|
2721
|
+
|
|
2722
|
+
&[data-is-blurred='false'] {
|
|
2723
|
+
background: transparent;
|
|
2724
|
+
cursor: zoom-in;
|
|
2725
|
+
|
|
2726
|
+
.${wa} {
|
|
2727
|
+
top: auto;
|
|
2728
|
+
right: auto;
|
|
2729
|
+
left: 8px;
|
|
2730
|
+
bottom: 8px;
|
|
2731
|
+
background: rgba(0, 0, 0, 0);
|
|
2732
|
+
align-items: flex-end;
|
|
2733
|
+
justify-content: flex-start;
|
|
2734
|
+
}
|
|
2735
|
+
}
|
|
2736
|
+
`,ka=B.default.div`
|
|
2737
|
+
.link-info-container {
|
|
2738
|
+
padding: 0.5rem 1rem;
|
|
2739
|
+
background: ${e=>e.color||"#f4faff"};
|
|
2740
|
+
}
|
|
2741
|
+
.link-image-wrapper {
|
|
2742
|
+
position: relative;
|
|
2743
|
+
overflow: hidden;
|
|
2744
|
+
width: 100%;
|
|
2745
|
+
padding-top: 56.25%;
|
|
2746
|
+
&.fetching {
|
|
2747
|
+
background: lightgray;
|
|
2748
|
+
}
|
|
2749
|
+
.loading-spinner {
|
|
2750
|
+
position: absolute;
|
|
2751
|
+
top: 50%;
|
|
2752
|
+
left: 50%;
|
|
2753
|
+
transform: translate(-50%, -50%);
|
|
2754
|
+
}
|
|
2755
|
+
.link-image {
|
|
2756
|
+
position: absolute;
|
|
2757
|
+
top: 0;
|
|
2758
|
+
left: 0;
|
|
2759
|
+
width: 100%;
|
|
2760
|
+
height: 100%;
|
|
2761
|
+
object-fit: cover;
|
|
2762
|
+
object-position: center;
|
|
2763
|
+
}
|
|
2764
|
+
}
|
|
2765
|
+
a {
|
|
2766
|
+
text-decoration: none;
|
|
2767
|
+
}
|
|
2768
|
+
&[data-is-marrybaby='true'] {
|
|
2769
|
+
overflow: hidden;
|
|
2770
|
+
border-radius: 1rem;
|
|
2771
|
+
}
|
|
2772
|
+
`;var Aa="PD6nRZX";const Na=({className:e,size:t="md"})=>{const{t:a}=i.useTranslations();return L.default.createElement("div",{className:`${Aa} ${e}`},L.default.createElement(s.Button,{size:t,color:"transparent",isLoading:!0},a("loading")))},Ta=e.createContext({});var Sa="l5fL1xL",za="L-aGKo7";const Pa=({children:e,className:t=""})=>L.default.createElement("div",{className:`${Sa} ${t}`},e),La=({children:e,className:t=""})=>L.default.createElement("div",{className:`${za} ${t}`},e);var Ma="eaR8ATZ",Ba="xM-7K0a",Ra="DZmf3s7";const Ia=({src:e,defaultSrc:t=f.CommonGAssets.getAssetPath("logo/logomark.png"),ratio:a=1,size:o=80,radius:r=8,alt:l,className:n=""})=>L.default.createElement("div",{className:n},L.default.createElement("div",{className:Ra,style:{width:`${o}px`,height:o*a+"px",borderRadius:`${r}px`}},L.default.createElement(x.ImageWrap,{src:e,backupSrc:t,alt:l}))),Oa=({category:e,title:t,src:a,children:o,className:r=""})=>L.default.createElement("div",{className:`${Ma} ${r}`},L.default.createElement(Ia,{src:a}),L.default.createElement("div",{className:Ba},o||L.default.createElement("div",null,e&&L.default.createElement(Pa,null,e),t&&L.default.createElement(La,null,t))));Oa.CategoryText=Pa,Oa.Title=La;const ja=({featureImage:e,postTitle:t,author:a,categories:o,isReview:r,className:l=""})=>{var n;const i=r?"Medically reviewed by Jobelle Ann Dela Cruz Bigalbal, MD":"Written by Jobelle Ann Dela Cruz Bigalbal, MD";return L.default.createElement(Oa,{src:e,className:l},L.default.createElement(L.default.Fragment,null,L.default.createElement(Oa.CategoryText,null,null===(n=null==o?void 0:o[0])||void 0===n?void 0:n.name),L.default.createElement(Oa.Title,null,t),L.default.createElement(Ie,{avatarProps:Object.assign(Object.assign({},a),{size:32}),subTitle:L.default.createElement(L.default.Fragment,null,i,L.default.createElement(Ie.SubDivider,null),"Dec 12, 2022")})))};var Va={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 Fa=({className:t=""})=>{var a,r,l,n,s;const{t:c}=i.useTranslations(),{info:u,isMarryBaby:p,currentPageUrl:g}=e.useContext(Ta),h=null==u?void 0:u.data,v=[{type:"linkedin",icon:f.CommonGAssets.getAssetPath("linkedin.svg"),url:null===(a=null==u?void 0:u.contact)||void 0===a?void 0:a.linkedin,eventAction:"Doctor Profile - Linkedin"},{type:"instagram",icon:f.CommonGAssets.getAssetPath("instagram.svg"),url:null===(r=null==u?void 0:u.contact)||void 0===r?void 0:r.instagram,eventAction:"Doctor Profile - Instagram"},{type:"facebook",icon:f.CommonGAssets.getAssetPath("facebook.svg"),url:null===(l=null==u?void 0:u.contact)||void 0===l?void 0:l.facebook,eventAction:"Doctor Profile - Facebook"},{type:"youtube",icon:f.CommonGAssets.getAssetPath("youtube.svg"),url:null===(n=null==u?void 0:u.contact)||void 0===n?void 0:n.youtube,eventAction:"Doctor Profile - Youtube"},{type:"tiktok",icon:f.CommonGAssets.getAssetPath("tiktok.svg"),url:null===(s=null==u?void 0:u.contact)||void 0===s?void 0:s.tiktok,eventAction:"Doctor Profile - TikTok"}],b=[...((null==u?void 0:u.experiences)||[]).length>0?[{key:"experience",heading:c("profilePanel.experience"),iconSrc:f.CommonGAssets.getAssetPath(p?"award-doc-mb.svg":"award-doc.svg"),eventAction:"Doctor Experience Click",panel:L.default.createElement("div",{className:Va.accBodyGroup},null==u?void 0:u.experiences.map(((e,t)=>L.default.createElement("div",{className:Va.accBodyGroupItem,key:String(t)},L.default.createElement("div",{className:Va.accBodyGroupTitle},e.title),L.default.createElement("div",{className:Va.accBodyGroupDesc},L.default.createElement("p",null,e.organization),L.default.createElement("p",null,e.duration))))))}]:[],...((null==u?void 0:u.educations)||[]).length>0?[{key:"education",heading:c("profilePanel.education"),iconSrc:f.CommonGAssets.getAssetPath(p?"book-mb.svg":"book.svg"),eventAction:"Doctor Degree Click",panel:L.default.createElement("div",{className:Va.accBodyGroup},null==u?void 0:u.educations.map(((e,t)=>L.default.createElement("div",{className:Va.accBodyGroupItem,key:String(t)},L.default.createElement("div",{className:Va.accBodyGroupTitle},e.schoolName),L.default.createElement("div",{className:Va.accBodyGroupDesc},L.default.createElement("p",null,e.study),L.default.createElement("p",null,e.completedYear))))))}]:[],...((null==u?void 0:u.awards)||[]).length>0?[{key:"awards",heading:c("profilePanel.awards"),iconSrc:f.CommonGAssets.getAssetPath(p?"award-mb.svg":"award.svg"),eventAction:"Doctor Award Click",panel:L.default.createElement("div",{className:Va.accBodyGroup},null==u?void 0:u.awards.map(((e,t)=>L.default.createElement("div",{className:Va.accBodyGroupTitle,key:t},e.title))))}]:[]],x=(null==u?void 0:u.relatedPosts)||[],w=v.filter((e=>e.url));return L.default.createElement("div",{className:`${Va.container} ${t}`,"data-is-marrybaby":p},b.length>0&&L.default.createElement(o.Accordion,{defaultValue:b[0].key,chevron:p?L.default.createElement("div",{className:Va.mbChevronWrapper},L.default.createElement(d.Plus,{size:12,color:m.theme.mbColors.midGray})):L.default.createElement(d.Plus,{color:m.theme.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"}}}},b.map((e=>L.default.createElement(o.Accordion.Item,{key:e.key,value:e.key},L.default.createElement(o.Accordion.Control,{"data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":g},L.default.createElement("div",{className:Va.header},L.default.createElement("div",{className:Va.headingIcon},L.default.createElement("img",{src:e.iconSrc,loading:"lazy"})),L.default.createElement("div",{className:Va.heading},e.heading))),L.default.createElement(o.Accordion.Panel,null,e.panel))))),x.length>0&&L.default.createElement("div",{className:Va.group},L.default.createElement("div",{className:Va.subTitle},L.default.createElement("img",{className:Va.subIcon,src:f.CommonGAssets.getAssetPath(p?"mb-logo.svg":"logo/circle-solid.svg"),loading:"lazy"}),c("profilePanel.publishedArticles")),L.default.createElement("div",{className:`${Va.relatedList}`},null==u?void 0:u.relatedPosts.map((e=>L.default.createElement("a",{key:String(e.id),href:`${window.location.origin}${null==e?void 0:e.permalink}`,className:Va.articleCardLink},L.default.createElement(ja,Object.assign({className:"article-card"},Object.assign(Object.assign({},e),!e.author&&{author:{displayName:null==h?void 0:h.name,avatar:null==h?void 0:h.avatar}}),{isReview:!0}))))))),w.length>0&&L.default.createElement("div",{className:Va.group},L.default.createElement("div",{className:Va.subTitle},L.default.createElement("img",{className:Va.subIcon,src:f.CommonGAssets.getAssetPath(p?"social-mb.svg":"social.svg"),loading:"lazy"}),c("profilePanel.socialLinks")),L.default.createElement("div",{className:Va.groupBody},L.default.createElement(o.Flex,null,v.map(((e,t)=>e.url&&L.default.createElement("div",{className:Va.socialItem,key:t},L.default.createElement("a",{href:e.url,target:"_blank",rel:"noreferrer"},L.default.createElement("img",{src:e.icon,loading:"lazy",width:"32px","data-event-category":"Together","data-event-action":e.eventAction,"data-event-label":g})))))))))};var Da={container:"GYUElSy",question:"_3C6QpT1",questionTitle:"_9M9VYL6",community:"_1RuSyv3",questionCard:"_1IG-eEp"};const Ua=({post:o,className:r=""})=>{var l,n,s,d,c,u,p,m;const{t:g}=i.useTranslations(),{data:{userInfo:h,env:{togetherBasePath:f}}}=e.useContext(t.TogetherComponentGlobalContext),{authActionWrapper:v,authorProps:b,currentPageUrl:x}=e.useContext(Ta),w=`${window.location.origin}${f}/${null===(l=null==o?void 0:o.community)||void 0===l?void 0:l.slug}/${null==o?void 0:o.slug}/`;return L.default.createElement("div",{className:`${Da.container} ${r}`},L.default.createElement("div",{className:Da.header},L.default.createElement("div",{className:Da.question},g("profilePanel.question")," ",L.default.createElement(a.Anchor,{className:Da.questionTitle,href:"#",onClick:()=>{(null==h?void 0:h.id)||null==v||v((()=>window.location.href=w))}},"#",null==o?void 0:o.title)),L.default.createElement("div",{className:Da.community},null===(n=null==o?void 0:o.community)||void 0===n?void 0:n.name," - ",null==o?void 0:o.createdTime)),L.default.createElement("div",{className:Da.questionCard},L.default.createElement(ct,Object.assign({className:"card-author"},b,{role:"user",avatarIcon:L.default.createElement(Ce,null),subLine:L.default.createElement(ct.SubTextRow,null,L.default.createElement(ct.SubText,null,null===(c=null===(d=null===(s=null==o?void 0:o.expertAnswer)||void 0===s?void 0:s.answer)||void 0===d?void 0:d[0])||void 0===c?void 0:c.createdTime))})),L.default.createElement(na,{className:"post-content-wrapper",description:(null===(m=null===(p=null===(u=null==o?void 0:o.expertAnswer)||void 0===u?void 0:u.answer)||void 0===p?void 0:p[0])||void 0===m?void 0:m.content)||"",mentions:null==o?void 0:o.mentions,"data-testid":"Content of the Post"})),L.default.createElement(a.Button,{variant:"secondary","data-event-category":"Together","data-event-action":"Doctor Reply Click","data-event-label":x,size:"md",onClick:()=>{(null==h?void 0:h.id)?window.location.href=w:null==v||v((()=>window.location.href=w))}},g("profilePanel.anserwing.viewFull")))};var qa="MrdoES3",Ha="_8fd7YMs",Wa="DomiQfw",Ga="-b2qnfL";const Za=({message:t,buttonTxt:a,imgSrc:o,onBtnClick:r})=>{const{siteType:l,isMarryBaby:n}=e.useContext(Ta);return L.default.createElement("div",{className:Ha},L.default.createElement("div",{className:Wa},L.default.createElement("img",{src:o||f.CommonGAssets.getAssetPath(n?"comments-mb.svg":"comments.svg"),loading:"lazy"})),t&&L.default.createElement("div",{className:Ga},t),a&&L.default.createElement(s.Button,{size:"md",theme:l,color:"secondary",onClick:r},a))},Qa=({id:a})=>{const{t:o}=i.useTranslations(),{data:{locale:r}}=e.useContext(t.TogetherComponentGlobalContext),{authorProps:l}=e.useContext(Ta),[s,d]=e.useState(null),[c,u]=e.useState(!1);return e.useEffect((()=>{a&&n.__awaiter(void 0,void 0,void 0,(function*(){var e;u(!0);const o=yield t.callApi(t.getApiPath(t.PATHS.USER.LIST_ANSWERS,{_locale:r,id:a}),"GET"),l=((null===(e=null==o?void 0:o.data)||void 0===e?void 0:e.replies)||[]).map(v.formatPost);d(l),u(!1)}))}),[]),L.default.createElement("div",{className:qa},c?L.default.createElement(Na,null):null!==s&&(s.length>0?s.map((e=>L.default.createElement(Ua,{className:"post-card",key:e.id,post:e}))):L.default.createElement(Za,{message:o("profilePanel.emptyPostMess.content",{name:(null==l?void 0:l.name)||(null==l?void 0:l.username)})})))};var Xa="toEutn7",_a="drdisHs";const Ka=o=>{var r,l,i,s,{post:d}=o,c=n.__rest(o,["post"]);const{data:{env:{togetherBasePath:u}}}=e.useContext(t.TogetherComponentGlobalContext);return L.default.createElement(L.default.Fragment,null,L.default.createElement("div",Object.assign({},c,{className:`${Xa} ${(null==c?void 0:c.className)||""}`}),L.default.createElement(ct,{className:"card-author",avatar:null===(r=null==d?void 0:d.author)||void 0===r?void 0:r.avatar,name:(null===(l=null==d?void 0:d.author)||void 0===l?void 0:l.name)||(null===(i=null==d?void 0:d.author)||void 0===i?void 0:i.username),isAnonymous:Boolean(null==d?void 0:d.isAnonymous),subLine:L.default.createElement(ct.SubTextRow,null,L.default.createElement(ct.SubText,null,null==d?void 0:d.createdTime))}),L.default.createElement(a.Anchor,{href:`${window.location.origin}${u}/${null===(s=null==d?void 0:d.community)||void 0===s?void 0:s.slug}/${null==d?void 0:d.slug}/`,className:_a,rel:"noreferrer"},null==d?void 0:d.title)))};var Ya={accordion:"I-uIJ6E",header:"_41WRsj2",heading:"AcOGL93",headingIcon:"JD3dWJN",panel:"dKAgnS8",chevron:"L2Q9T6m",container:"h-pSmhX"};const $a=()=>{var r,l;const{t:s}=i.useTranslations(),{data:{locale:d,userInfo:c}}=e.useContext(t.TogetherComponentGlobalContext),{onSkipQuestion:u,countValues:p,setCountValues:g}=e.useContext(Ta),[h,b]=e.useState(),[x,w]=e.useState([]),[y,C]=e.useState(!1),E=null==c?void 0:c.id;e.useEffect((()=>{E&&n.__awaiter(void 0,void 0,void 0,(function*(){var e;C(!0);const a=yield t.callApiWithAuth(t.getApiPath(t.PATHS.USER.LIST_QUESTION_NEED_REPLY,{_locale:d}),"GET"),o=[],r=Object.create({});((null===(e=null==a?void 0:a.data)||void 0===e?void 0:e.communities)||[]).filter((e=>((null==e?void 0:e.question)||[]).length>0)).map((e=>{r[e.id]=e.question.map(v.formatPost),delete e.question,o.push(v.formatCommunity(e))})),w(o),b(r),C(!1)}))}),[]);const k=({id:e,communityId:t})=>{if(e&&t&&h){const a=Object.assign(Object.assign({},h),{[t]:[...((null==h?void 0:h[t])||[]).filter((t=>t.id!==e))]});let o=0;Object.keys(a).map((e=>o+=a[e].length||0)),b(a),g(Object.assign(Object.assign({},p),{total_question:o})),null==u||u(o)}};return L.default.createElement("div",{className:Ya.container},y?L.default.createElement(Na,null):(null==p?void 0:p.total_question)>0?x.length>0&&L.default.createElement(o.Accordion,{className:Ya.accordion,defaultValue:String((null===(l=x[null===(r=Object.keys(x))||void 0===r?void 0:r[0]])||void 0===l?void 0:l.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:L.default.createElement("div",{className:Ya.chevron},L.default.createElement(a.ArrowDown,{color:m.theme.colors.gray600,size:20}))},x.map((e=>{const t=h&&(null==h?void 0:h[e.id])||[];return t.length>0&&L.default.createElement(o.Accordion.Item,{key:e.id,value:String(e.id)},L.default.createElement(o.Accordion.Control,null,L.default.createElement("div",{className:Ya.header},L.default.createElement("div",{className:Ya.headingIcon},L.default.createElement("img",{src:e.thumbnail,loading:"lazy"})),L.default.createElement("div",{className:Ya.heading},e.name))),L.default.createElement(o.Accordion.Panel,null,L.default.createElement("div",{className:Ya.body},t.map((e=>L.default.createElement(Ka,{className:"question-card",key:e.id,post:e,onSkip:k}))))))}))):L.default.createElement(Za,{message:s("profilePanel.emptyCareMess.content"),imgSrc:f.CommonGAssets.getAssetPath("questions.svg")}))};var Ja="GA-zc-O",eo="A18McWD",to="IB049vj",ao="_8I--vEV";const oo=({post:r,className:l=""})=>{var n;const{data:{userInfo:s,env:{togetherBasePath:d}}}=e.useContext(t.TogetherComponentGlobalContext),{t:c}=i.useTranslations(),u=o.useMantineTheme(),{authActionWrapper:p,authorProps:m}=e.useContext(Ta),g=`${window.location.origin}${d}/${null===(n=null==r?void 0:r.community)||void 0===n?void 0:n.slug}/${null==r?void 0:r.slug}/`;return L.default.createElement("div",{className:`${Ja} ${l}`},L.default.createElement("div",{className:to},L.default.createElement("a",{"data-event-category":"Together","data-event-action":"Click Post","data-event-label":g,className:ao,href:g,onClick:e=>{(null==s?void 0:s.id)||(e.preventDefault(),null==p||p((()=>window.location.href=g)))}}),L.default.createElement(Ie,{className:"card-author",avatarProps:{avatar:null==m?void 0:m.avatar,size:32}},L.default.createElement(ct.MainText,{className:eo},null==r?void 0:r.title),L.default.createElement(ct.SubTextRow,null,L.default.createElement(ct.SubText,null,null==r?void 0:r.createdTime))),L.default.createElement(na,{className:"post-content-wrapper",description:null==r?void 0:r.description,mentions:null==r?void 0:r.mentions,maxChars:200,"data-testid":"Content of the Post",hideShowAllBtn:!0}),L.default.createElement(a.Text,{size:"p3",color:u.fn.primaryColor()},c("post.seeMore"))))};var ro="TSMHoEM";const lo=()=>{const{t:a}=i.useTranslations(),{data:{locale:o}}=e.useContext(t.TogetherComponentGlobalContext),{authorId:r,authorProps:l,isAuthorLogin:s,onCloseFromPost:d}=e.useContext(Ta),[c,u]=e.useState(null),[p,m]=e.useState(!1);return e.useEffect((()=>{r&&n.__awaiter(void 0,void 0,void 0,(function*(){var e;m(!0);const a=yield t.callApi(t.getApiPath(t.PATHS.USER.LIST_POST,{_locale:o,id:r,isAnonymous:0}),"GET"),l=((null===(e=null==a?void 0:a.data)||void 0===e?void 0:e.posts)||[]).map(v.formatPost);u(l),m(!1)}))}),[r]),L.default.createElement("div",{className:ro},p?L.default.createElement(Na,null):null!==c&&(c.length>0?c.map((e=>L.default.createElement(oo,{className:"post-card",key:e.id,post:e}))):L.default.createElement(Za,{message:a("profilePanel.emptyPostMess.content",{name:(null==l?void 0:l.name)||(null==l?void 0:l.username)||""}),buttonTxt:s&&a("profilePanel.createPost"),onBtnClick:()=>{null==d||d()}})))};var no="_4Vekw96",io="DIJdGcB",so="aQSt4-Q";const co=e=>e?{title:null==e?void 0:e.title,organization:null==e?void 0:e.organization,duration:e.duration}:{},uo=e=>e?{completedYear:null==e?void 0:e.completed_year,schoolName:e.school_name,study:e.study}:{};var po,mo;exports.TabName=void 0,(po=exports.TabName||(exports.TabName={}))[po.About=0]="About",po[po.Care=1]="Care",po[po.Answer=2]="Answer",po[po.Posts=3]="Posts",function(e){e[e.Expert=0]="Expert",e[e.User=1]="User"}(mo||(mo={}));const go=o=>{var r,{authorProps:l,selectedTab:s,authActionWrapper:d,onSkipQuestion:c,onCloseFromPost:u,hideQuestionTab:p,hideAnswerTab:m,showSkipQuestionTag:g,rolesToShowQuestionsTab:h=["expert"],currentPageUrl:f}=o,b=n.__rest(o,["authorProps","selectedTab","authActionWrapper","onSkipQuestion","onCloseFromPost","hideQuestionTab","hideAnswerTab","showSkipQuestionTag","rolesToShowQuestionsTab","currentPageUrl"]);const{data:{locale:x,userInfo:w,env:{isMarryBaby:y}}}=e.useContext(t.TogetherComponentGlobalContext),{t:C}=i.useTranslations(),E=null==l?void 0:l.role,k=null==w?void 0:w.role,A=String(null==l?void 0:l.userId),[N,T]=e.useState(),[S,z]=e.useState(!1),[P,M]=e.useState(),B=(null==w?void 0:w._togetherUserId)===(null==l?void 0:l.userId),I=[...-1!==h.indexOf(E)?[{value:exports.TabName.About,text:C("profilePanel.tabs.highlight"),content:L.default.createElement(Fa,{id:A,info:P}),dataEventCategory:"Together",dataEventAction:"Doctor Profile Click",dataEventLabel:f}]:[],{value:exports.TabName.Posts,text:C("profilePanel.tabs.posts"),content:L.default.createElement(lo,null),hasCountResult:!0,keyOfCountApi:"post",keyOfResult:"total_post"},...p||-1===h.indexOf(k)||(null==w?void 0:w._togetherUserId)!==(null==l?void 0:l.userId)?[]:[{value:exports.TabName.Care,text:`${C("profilePanel.tabs.care")}`,content:L.default.createElement($a,null),hasCountResult:!0,keyOfCountApi:"question",keyOfResult:"total_question",dataEventCategory:"Together",dataEventAction:"Doctor Questions Click",dataEventLabel:f}],...m||-1===h.indexOf(E)?[]:[{value:exports.TabName.Answer,text:`${C("profilePanel.tabs.expertAnswer")}`,content:L.default.createElement(Qa,{id:A}),hasCountResult:!0,keyOfCountApi:"reply",keyOfResult:"total_reply",dataEventCategory:"Together",dataEventAction:"Doctor Reply Tab Click",dataEventLabel:f}]],[O,j]=e.useState(null),[V,F]=e.useState(null),D={value:String(V),dataList:O,onTabChange:e=>F(Number(e))},U=null==I?void 0:I.filter((e=>null==e?void 0:e.hasCountResult));e.useEffect((()=>{n.__awaiter(void 0,void 0,void 0,(function*(){var e,a,o,r,l,n,i,d,c,u;z(!0);const p=yield Promise.all([t.callApi(t.getApiPath(t.PATHS.USER.DETAIL,{_locale:x,id:A}),"GET"),...U.map((e=>t.callApi(t.getApiPath(t.PATHS.USER.COUNT_TABS,{_locale:x,id:A,[e.keyOfCountApi]:1}),"GET")))]),[m]=p,g={data:null==m?void 0:m.data,experiences:((null===(a=null===(e=null==m?void 0:m.data)||void 0===e?void 0:e.fields)||void 0===a?void 0:a.experiences)||[]).map(co),relatedPosts:((null===(o=null==m?void 0:m.data)||void 0===o?void 0:o.related_post)||[]).map((e=>v.formatArticle(e.post))),educations:((null===(l=null===(r=null==m?void 0:m.data)||void 0===r?void 0:r.fields)||void 0===l?void 0:l.educations)||[]).map(uo),awards:(null===(i=null===(n=null==m?void 0:m.data)||void 0===n?void 0:n.fields)||void 0===i?void 0:i.awards_accreditations)||[],contact:(null===(c=null===(d=null==m?void 0:m.data)||void 0===d?void 0:d.fields)||void 0===c?void 0:c.contact)||{}};1===(null==m?void 0:m.status)&&M(g);const h=(null==g?void 0:g.relatedPosts)||[],f=Object.keys(g.contact).map((e=>{var t;return""!==(null===(t=null==g?void 0:g.contact)||void 0===t?void 0:t[e])})),b=[...(null==g?void 0:g.experiences)||[],...(null==g?void 0:g.educations)||[],...(null==g?void 0:g.awards)||[]],w=h.length>0||f.length>0||b.length>0,y={},C=U.map(((e,t)=>{var a,o,r;const l=(null===(r=null===(o=null===(a=p[t+1])||void 0===a?void 0:a.data)||void 0===o?void 0:o.counting)||void 0===r?void 0:r[e.keyOfResult])||0;return l>0?(y[e.keyOfResult]=l,e):-1!==[exports.TabName.Care,exports.TabName.Posts].indexOf(e.value)?e:void 0})).filter(Boolean).map((e=>e.value)),E=I.map((e=>{const t=Object.assign(Object.assign({},e),{text:e.text+(e.keyOfResult?` (${(null==y?void 0:y[e.keyOfResult])||"0"})`:"")});return t.hasCountResult?-1!==C.indexOf(t.value)?t:void 0:t.value===exports.TabName.About?w&&t:t})).filter(Boolean);j(E),F(s||(null===(u=null==E?void 0:E[0])||void 0===u?void 0:u.value)),T(y),z(!1)}))}),[]);const q=null==P?void 0:P.data;return L.default.createElement(Ta.Provider,{value:{isMarryBaby:y,siteType:y?"marryBaby":"helloSites",authorId:String((null==l?void 0:l.userId)||""),authActionWrapper:d,onSkipQuestion:c,info:P,authorProps:l,onCloseFromPost:u,countValues:N,setCountValues:T,isAuthorLogin:B,showSkipQuestionTag:g,currentPageUrl:f}},L.default.createElement("div",Object.assign({},b,{className:`${no} ${(null==b?void 0:b.className)||""}`,"data-is-marrybaby":y}),S?L.default.createElement(Na,null):L.default.createElement(L.default.Fragment,null,L.default.createElement(ct,Object.assign({},l,{className:"card-author",showDetailPopup:!1,subLine:"expert"===(null==l?void 0:l.role)?(null==q?void 0:q.specialty)&&(null==q?void 0:q.organisation)&&L.default.createElement(ct.SubTextRow,null,(null==q?void 0:q.specialty)&&L.default.createElement(L.default.Fragment,null,L.default.createElement(ct.SubText,null,null==q?void 0:q.specialty),L.default.createElement(ct.SubDivider,null)),L.default.createElement(ct.SubText,null,null==q?void 0:q.organisation)):(null==q?void 0:q.created_at)&&L.default.createElement(ct.SubTextRow,null,L.default.createElement(ct.SubText,null,C("profilePanel.joined")," ",R.default(null==q?void 0:q.created_at).toNow(!0)))})),"expert"===E&&L.default.createElement("div",{className:io,dangerouslySetInnerHTML:{__html:null===(r=null==P?void 0:P.data)||void 0===r?void 0:r.description}}),null!==O&&null!==V&&(O.length>0?L.default.createElement("div",{className:so},L.default.createElement(a.Tabs,Object.assign({},D))):L.default.createElement(Za,{message:C("profilePanel.emptyPostMess.content",{text:(null==l?void 0:l.name)||(null==l?void 0:l.username)||""})})))))};var ho=Object.freeze({__proto__:null,get TabName(){return exports.TabName},get UserType(){return mo},TabDataInit:{experiences:[],relatedPosts:[],educations:[],awards:[],contact:{},data:{}},ProfileDetail:go});const fo=B.default.div`
|
|
2773
|
+
position: relative;
|
|
2774
|
+
margin-bottom: 24px;
|
|
2775
|
+
background: white;
|
|
2776
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
2777
|
+
|
|
2778
|
+
a {
|
|
2779
|
+
text-decoration: none;
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2782
|
+
${r.MediaQueries.mbDown} {
|
|
2783
|
+
margin-bottom: 8px;
|
|
2784
|
+
}
|
|
2785
|
+
&.flat-top {
|
|
2786
|
+
border-top-left-radius: 0;
|
|
2787
|
+
border-top-right-radius: 0;
|
|
2788
|
+
}
|
|
2789
|
+
|
|
2790
|
+
.post-pin {
|
|
2791
|
+
padding: 0.5rem 1rem;
|
|
2792
|
+
border-radius: ${e=>e.theme.borderRadius} 6px 0 0;
|
|
2793
|
+
}
|
|
2794
|
+
.post-author {
|
|
2795
|
+
display: flex;
|
|
2796
|
+
align-items: center;
|
|
2797
|
+
justify-content: space-between;
|
|
2798
|
+
&.comment {
|
|
2799
|
+
padding-right: 2.6rem;
|
|
2800
|
+
}
|
|
2801
|
+
.author-avatar-wrapper {
|
|
2802
|
+
width: 40px;
|
|
2803
|
+
height: 40px;
|
|
2804
|
+
font-size: 20px;
|
|
2805
|
+
${r.MediaQueries.mbDown} {
|
|
2806
|
+
width: 32px;
|
|
2807
|
+
height: 32px;
|
|
2808
|
+
font-size: 16px;
|
|
2809
|
+
}
|
|
2810
|
+
}
|
|
2811
|
+
}
|
|
2812
|
+
.post-content-link-wrapper {
|
|
2813
|
+
color: inherit;
|
|
2814
|
+
cursor: pointer;
|
|
2815
|
+
.post-content-title {
|
|
2816
|
+
padding: 1rem 1rem 0;
|
|
2817
|
+
word-break: break-word;
|
|
2818
|
+
}
|
|
2819
|
+
}
|
|
2820
|
+
.social-preview-wrapper.has-image {
|
|
2821
|
+
margin-bottom: 5px;
|
|
2822
|
+
}
|
|
2823
|
+
.social-preview-wrapper,
|
|
2824
|
+
.image-preview-wrapper,
|
|
2825
|
+
.link-preview-wrapper {
|
|
2826
|
+
width: 100%;
|
|
2827
|
+
&[data-is-reply='true'] {
|
|
2828
|
+
padding-right: 1rem;
|
|
2829
|
+
padding-left: 1rem;
|
|
2830
|
+
}
|
|
2831
|
+
}
|
|
2832
|
+
.post-topics {
|
|
2833
|
+
padding: 0 1rem;
|
|
2834
|
+
}
|
|
2835
|
+
|
|
2836
|
+
.post-reaction {
|
|
2837
|
+
background: none;
|
|
2838
|
+
border-radius: 0 0 6px 6px;
|
|
2839
|
+
&.hide-top-border {
|
|
2840
|
+
::before {
|
|
2841
|
+
display: none;
|
|
2842
|
+
}
|
|
2843
|
+
}
|
|
2844
|
+
}
|
|
2845
|
+
.most-engaging-wrapper {
|
|
2846
|
+
padding: 1rem;
|
|
2847
|
+
cursor: pointer;
|
|
2848
|
+
.author-avatar-wrapper {
|
|
2849
|
+
width: 2rem;
|
|
2850
|
+
height: 2rem;
|
|
2851
|
+
font-size: 1rem;
|
|
2852
|
+
}
|
|
2853
|
+
.see-more-comments {
|
|
2854
|
+
width: 100%;
|
|
2855
|
+
padding: 12px 0 0;
|
|
2856
|
+
text-align: unset;
|
|
2857
|
+
}
|
|
2858
|
+
}
|
|
2859
|
+
&[data-most-engaging='true'] {
|
|
2860
|
+
border: none;
|
|
2861
|
+
${r.MediaQueries.mbDown} {
|
|
2862
|
+
margin: 1rem;
|
|
2863
|
+
border: 1px solid #e4e8ec;
|
|
2864
|
+
}
|
|
2865
|
+
}
|
|
2866
|
+
.top-divider {
|
|
2867
|
+
border-color: #e4e8ec;
|
|
2868
|
+
}
|
|
2869
|
+
.popover {
|
|
2870
|
+
.popover-menu__btn {
|
|
2871
|
+
display: flex;
|
|
2872
|
+
width: 1.5rem;
|
|
2873
|
+
height: 1rem;
|
|
2874
|
+
align-items: center;
|
|
2875
|
+
justify-content: center;
|
|
2876
|
+
padding: 0;
|
|
2877
|
+
background: transparent;
|
|
2878
|
+
|
|
2879
|
+
&:hover {
|
|
2880
|
+
background-color: transparent;
|
|
2881
|
+
}
|
|
2882
|
+
}
|
|
2883
|
+
.popover-menu__content {
|
|
2884
|
+
&.--position-bottom {
|
|
2885
|
+
&.--align-end {
|
|
2886
|
+
&::before {
|
|
2887
|
+
right: 12.5px;
|
|
2888
|
+
}
|
|
2889
|
+
}
|
|
2890
|
+
}
|
|
2891
|
+
}
|
|
2892
|
+
}
|
|
2893
|
+
|
|
2894
|
+
&[data-is-marrybaby='true'] {
|
|
2895
|
+
border: 1px solid #f3f3f3;
|
|
2896
|
+
border-radius: 1rem;
|
|
2897
|
+
/* shadow */
|
|
2898
|
+
|
|
2899
|
+
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.08);
|
|
2900
|
+
.image-preview-wrapper,
|
|
2901
|
+
.link-preview-wrapper {
|
|
2902
|
+
padding-right: 1rem;
|
|
2903
|
+
padding-left: 1rem;
|
|
2904
|
+
}
|
|
2905
|
+
.popover {
|
|
2906
|
+
.popover-menu__btn {
|
|
2907
|
+
width: 24px;
|
|
2908
|
+
height: 24px;
|
|
2909
|
+
${r.MediaQueries.mbDown} {
|
|
2910
|
+
width: 18px;
|
|
2911
|
+
height: 18px;
|
|
2912
|
+
}
|
|
2913
|
+
}
|
|
2914
|
+
.popover-menu__content {
|
|
2915
|
+
&.--position-bottom {
|
|
2916
|
+
&.--align-end {
|
|
2917
|
+
&::before {
|
|
2918
|
+
right: 1rem;
|
|
2919
|
+
}
|
|
2920
|
+
width: 350px;
|
|
2921
|
+
${r.MediaQueries.mbDown} {
|
|
2922
|
+
max-width: calc(320px - 2rem);
|
|
2923
|
+
}
|
|
2924
|
+
}
|
|
2925
|
+
}
|
|
2926
|
+
}
|
|
2927
|
+
}
|
|
2928
|
+
.most-engaging-wrapper {
|
|
2929
|
+
position: relative;
|
|
2930
|
+
padding: 0;
|
|
2931
|
+
&::before {
|
|
2932
|
+
position: absolute;
|
|
2933
|
+
z-index: 5;
|
|
2934
|
+
top: 0;
|
|
2935
|
+
left: 50%;
|
|
2936
|
+
width: calc(100% - 2rem);
|
|
2937
|
+
height: 1px;
|
|
2938
|
+
background: #f3f3f3;
|
|
2939
|
+
content: ' ';
|
|
2940
|
+
transform: translateX(-50%);
|
|
2941
|
+
}
|
|
2942
|
+
}
|
|
2943
|
+
${r.MediaQueries.mbDown} {
|
|
2944
|
+
margin-bottom: 12px;
|
|
2945
|
+
}
|
|
2946
|
+
}
|
|
2947
|
+
`,vo=B.default.div`
|
|
2948
|
+
.add-link {
|
|
2949
|
+
color: ${m.theme.colors.primaryBase};
|
|
2950
|
+
}
|
|
2951
|
+
`,bo=B.default.div`
|
|
2952
|
+
margin: 16px 0;
|
|
2953
|
+
background: ${m.theme.colors.yellow50};
|
|
2954
|
+
padding: 5px 10px;
|
|
2955
|
+
border-radius: 2px;
|
|
2956
|
+
|
|
2957
|
+
.icon {
|
|
2958
|
+
display: inline-block;
|
|
2959
|
+
vertical-align: middle;
|
|
2960
|
+
margin-right: 6px;
|
|
2961
|
+
}
|
|
2962
|
+
`,xo=B.default.div`
|
|
2963
|
+
display: flex;
|
|
2964
|
+
align-items: center;
|
|
2965
|
+
gap: 8px;
|
|
2966
|
+
`,wo=B.default.div`
|
|
2967
|
+
padding: 8px 16px;
|
|
2968
|
+
`,yo=B.default.div`
|
|
2969
|
+
margin-bottom: 12px;
|
|
2970
|
+
width: 100%;
|
|
2971
|
+
`,Co=B.default.div``,Eo=B.default.div`
|
|
2972
|
+
margin-bottom: 16px;
|
|
2973
|
+
`,ko=B.default.div`
|
|
2974
|
+
display: flex;
|
|
2975
|
+
flex-wrap: wrap;
|
|
2976
|
+
row-gap: 16px;
|
|
2977
|
+
${r.MediaQueries.tdUp} {
|
|
2978
|
+
align-items: center;
|
|
2979
|
+
column-gap: 24px;
|
|
2980
|
+
}
|
|
2981
|
+
`,Ao=B.default.a`
|
|
2982
|
+
display: flex;
|
|
2983
|
+
align-items: center;
|
|
2984
|
+
gap: 16px;
|
|
2985
|
+
${r.MediaQueries.mbDown} {
|
|
2986
|
+
width: 100%;
|
|
2987
|
+
justify-content: space-between;
|
|
2988
|
+
}
|
|
2989
|
+
`,No=B.default.div`
|
|
2990
|
+
display: flex;
|
|
2991
|
+
align-items: center;
|
|
2992
|
+
gap: 16px;
|
|
2993
|
+
`,To=B.default.div`
|
|
2994
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
2995
|
+
overflow: hidden;
|
|
2996
|
+
width: 48px;
|
|
2997
|
+
height: 48px;
|
|
2998
|
+
img {
|
|
2999
|
+
object-fit: cover;
|
|
3000
|
+
width: 100%;
|
|
3001
|
+
height: 100%;
|
|
3002
|
+
}
|
|
3003
|
+
`,So=({categories:a})=>{const{t:o}=i.useTranslations(),{data:{locale:r,env:{isMarryBaby:l}}}=e.useContext(t.TogetherComponentGlobalContext),n=y.getCurrentBaseUrl(r,l);return L.default.createElement(Co,null,L.default.createElement(Eo,null,L.default.createElement(t.Heading,{tag:"h6",as:"h5"},o("cardReply.recommentCategories.heading"))),L.default.createElement(ko,null,a.map((e=>L.default.createElement(Ao,{href:n+e.permalink,key:String(e.termId),target:"_blank"},L.default.createElement(No,null,L.default.createElement(To,null,L.default.createElement("img",{src:e.featureImage||f.CommonGAssets.getAssetPath(l?"mb-logo.svg":"/logo/logomark.png"),alt:e.displayName,loading:"lazy"})),L.default.createElement(u.Text,{size:"s3",type:"bold"},e.displayName)),L.default.createElement(d.Icon.ArrowRight,{size:20,color:m.theme.colors.gray400}))))))},zo=B.default.a`
|
|
3004
|
+
padding: 12px 0;
|
|
3005
|
+
display: flex;
|
|
3006
|
+
flex-direction: column;
|
|
3007
|
+
gap: 8px;
|
|
3008
|
+
border-top: 1px solid ${m.theme.colors.neutral100};
|
|
3009
|
+
text-decoration: none;
|
|
3010
|
+
|
|
3011
|
+
&:first-child {
|
|
3012
|
+
border-top: 0;
|
|
3013
|
+
}
|
|
3014
|
+
`,Po=B.default.div``,Lo=({postTitle:e,articleReviewed:t,modifiedTime:a,href:o})=>{const{t:r}=i.useTranslations(),l=(()=>{const{expert:e,editor:a,is_author:o}=t;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(a)return{title:r("articleAuthor.title.fact-check"),name:a.display_name,avatar:a.avatar}})();return L.default.createElement(zo,{href:o,title:e,target:"_blank"},L.default.createElement(u.Text,{size:"s3",as:"h5",type:"bold"},e),L.default.createElement(Po,null,L.default.createElement(ct,{avatar:null==l?void 0:l.avatar,avatarProps:{size:32},name:null==l?void 0:l.name,role:null==l?void 0:l.role,hideBackground:!0},L.default.createElement(ct.SubTextRow,null,L.default.createElement(ct.SubText,null,null==l?void 0:l.title," ",L.default.createElement("span",{style:{color:m.theme.colors.gray800}},null==l?void 0:l.name)),L.default.createElement(ct.SubDivider,null),L.default.createElement(ct.SubText,null,a)))))};var Mo="F4mmgSy",Bo="A7QrQ7A";const Ro=r=>{var{listUrl:l,categorySlug:p,editMode:g,onListChange:h,isMarryBaby:b}=r,x=n.__rest(r,["listUrl","categorySlug","editMode","onListChange","isMarryBaby"]);const{t:w}=i.useTranslations(),[y,C]=e.useState(l||[]),[E,k]=e.useState([]),[A,N]=e.useState([]),[T,S]=e.useState(!1);e.useEffect((()=>{n.__awaiter(void 0,void 0,void 0,(function*(){S(!0);const e=y.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}})),a=[...e.map((e=>t.callApi(e.isMarrySite?t.getMarryBabyApiPath(t.DISCOVER_PATHS.GET_PREVIEW_ARTICLE,{fullSlug:e.path},!0):t.getDiscoverApiPath(t.DISCOVER_PATHS.GET_PREVIEW_ARTICLE,{fullSlug:e.path},!0),"GET")))],o=yield Promise.all(a);k(o.map(((t,a)=>{var o,r;return(null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.post)&&Object.assign(Object.assign({},v.formatArticle(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.post)),{href:e[a].href})})).filter(Boolean)),S(!1)}))}),[]),e.useEffect((()=>{0===(null==E?void 0:E.length)&&p&&n.__awaiter(void 0,void 0,void 0,(function*(){var e;const a=yield t.callApi(b?t.getMarryBabyApiPath(t.DISCOVER_PATHS.GET_CATEGORY_OR_ARTICLE_DETAIL,{fullSlug:p},!0):t.getDiscoverApiPath(t.DISCOVER_PATHS.GET_CATEGORY_OR_ARTICLE_DETAIL,{fullSlug:p},!0),"GET");(null==a?void 0:a.data)&&N([v.formatCategory(null===(e=null==a?void 0:a.data)||void 0===e?void 0:e.category)])}))}),[E]);return e.useEffect((()=>{null==h||h(y)}),[y]),L.default.createElement("div",Object.assign({},x),!g&&L.default.createElement(bo,null,L.default.createElement("img",{className:"icon",src:f.CommonGAssets.getAssetPath("warning.svg"),alt:"warning",style:{marginBottom:"3px",width:"18px"},loading:"lazy"}),L.default.createElement(u.Text,{size:"s3",as:"span",dangerouslySetInnerHTML:{__html:w("cardReply.disclaimer")}})),T?L.default.createElement($,null):E.length>0||g?L.default.createElement(vo,null,L.default.createElement(o.Accordion,{defaultValue:"accordion",styles:{control:{border:`1px solid ${m.theme.colors.neutral100}`,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,border:`1px solid ${m.theme.colors.neutral100}`,borderTop:0,borderBottom:0},item:{marginBottom:"16px"}},chevron:L.default.createElement("div",{className:Bo},L.default.createElement(a.ArrowDown,{color:m.theme.colors.gray600,size:20}))},L.default.createElement(o.Accordion.Item,{value:"accordion"},L.default.createElement(o.Accordion.Control,null,L.default.createElement("div",{className:Mo},L.default.createElement(t.Heading,{as:"h4",tag:"h6"},w("cardReply.source")))),L.default.createElement(o.Accordion.Panel,null,L.default.createElement(wo,null,(E||[]).map(((e,t)=>L.default.createElement(xo,{key:String(t)},"object"==typeof e?L.default.createElement(Lo,Object.assign({},e)):L.default.createElement(yo,null,L.default.createElement(c.Input,{style:{width:"100%"},name:"source-list",value:e||"",size:"sm",onChange:e=>{C((a=>{const o=[...a];return o[t]=e,o})),k((a=>{const o=[...a];return o[t]=e,o}))}})),g&&L.default.createElement(s.Button,{size:"md",color:"transparent",icon:L.default.createElement(d.Icon.Trash,null),onClick:()=>(e=>{C((t=>{const a=[...t];return a.splice(e,1),a})),k((t=>{const a=[...t];return a.splice(e,1),a}))})(t)})))),g&&L.default.createElement(s.Button,{className:"add-link",color:"transparent",size:"md",icon:L.default.createElement(d.Icon.Plus,{color:m.theme.colors.primaryBase,size:18}),onClick:()=>{C((e=>[...e,""])),k((e=>[...e,""]))}},"Add source")))))):L.default.createElement(So,{categories:A}))},Io=B.default.div`
|
|
3015
|
+
position: relative;
|
|
3016
|
+
margin-bottom: 0;
|
|
3017
|
+
background: white;
|
|
3018
|
+
border-radius: ${e=>e.theme.borderRadius};
|
|
3019
|
+
|
|
3020
|
+
.verify-tag {
|
|
3021
|
+
margin-top: 12px;
|
|
3022
|
+
}
|
|
3023
|
+
|
|
3024
|
+
.post-author {
|
|
3025
|
+
&.with-popover {
|
|
3026
|
+
padding-right: 2.6rem;
|
|
3027
|
+
}
|
|
3028
|
+
.author-avatar-wrapper {
|
|
3029
|
+
width: 40px;
|
|
3030
|
+
height: 40px;
|
|
3031
|
+
font-size: 20px;
|
|
3032
|
+
${r.MediaQueries.mbDown} {
|
|
3033
|
+
width: 32px;
|
|
3034
|
+
height: 32px;
|
|
3035
|
+
font-size: 16px;
|
|
3036
|
+
}
|
|
3037
|
+
}
|
|
3038
|
+
}
|
|
3039
|
+
.image-preview-wrapper,
|
|
3040
|
+
.link-preview-wrapper {
|
|
3041
|
+
width: 100%;
|
|
3042
|
+
&[data-is-reply='true'] {
|
|
3043
|
+
padding-right: 1rem;
|
|
3044
|
+
padding-left: 1rem;
|
|
3045
|
+
}
|
|
3046
|
+
}
|
|
3047
|
+
.post-reaction {
|
|
3048
|
+
background: none;
|
|
3049
|
+
border-radius: 0 0 6px 6px;
|
|
3050
|
+
}
|
|
3051
|
+
&[data-is-reply='true'] {
|
|
3052
|
+
> .post-author .author-avatar-wrapper {
|
|
3053
|
+
width: 20px;
|
|
3054
|
+
height: 20px;
|
|
3055
|
+
font-size: 10px;
|
|
3056
|
+
}
|
|
3057
|
+
}
|
|
3058
|
+
&[data-is-reply='false'] {
|
|
3059
|
+
border: 1px solid #e4e8ec;
|
|
3060
|
+
}
|
|
3061
|
+
.expert-wrapper {
|
|
3062
|
+
width: 100%;
|
|
3063
|
+
}
|
|
3064
|
+
&[data-has-booking='true'] {
|
|
3065
|
+
display: grid;
|
|
3066
|
+
.post-author {
|
|
3067
|
+
background-color: ${e=>e.theme.colors.primary50};
|
|
3068
|
+
}
|
|
3069
|
+
.btn-wrapper {
|
|
3070
|
+
padding: 0 16px;
|
|
3071
|
+
.btn-booking {
|
|
3072
|
+
width: 100%;
|
|
3073
|
+
margin: 12px 0;
|
|
3074
|
+
}
|
|
3075
|
+
}
|
|
3076
|
+
}
|
|
3077
|
+
|
|
3078
|
+
.comment-reply-wrapper {
|
|
3079
|
+
padding: 0 1rem;
|
|
3080
|
+
.more-cmt {
|
|
3081
|
+
.chevron-right {
|
|
3082
|
+
height: 1rem;
|
|
3083
|
+
width: 1rem;
|
|
3084
|
+
vertical-align: middle;
|
|
3085
|
+
}
|
|
3086
|
+
}
|
|
3087
|
+
}
|
|
3088
|
+
.top-divider {
|
|
3089
|
+
border-color: #e4e8ec;
|
|
3090
|
+
}
|
|
3091
|
+
.popover {
|
|
3092
|
+
position: absolute;
|
|
3093
|
+
top: 1.5rem;
|
|
3094
|
+
right: 1rem;
|
|
3095
|
+
.popover-menu__btn {
|
|
3096
|
+
display: flex;
|
|
3097
|
+
width: 1rem;
|
|
3098
|
+
height: 1rem;
|
|
3099
|
+
align-items: center;
|
|
3100
|
+
justify-content: center;
|
|
3101
|
+
padding: 0;
|
|
3102
|
+
background: transparent;
|
|
3103
|
+
|
|
3104
|
+
&:hover {
|
|
3105
|
+
background-color: transparent;
|
|
3106
|
+
}
|
|
3107
|
+
|
|
3108
|
+
.popover-menu__content {
|
|
3109
|
+
&.--position-bottom {
|
|
3110
|
+
&.--align-end {
|
|
3111
|
+
&::before {
|
|
3112
|
+
right: 12.5px;
|
|
3113
|
+
}
|
|
3114
|
+
}
|
|
3115
|
+
}
|
|
3116
|
+
}
|
|
3117
|
+
}
|
|
3118
|
+
}
|
|
3119
|
+
|
|
3120
|
+
&[data-is-marrybaby='true'] {
|
|
3121
|
+
&[data-is-reply='false'] {
|
|
3122
|
+
border: none;
|
|
3123
|
+
}
|
|
3124
|
+
.image-preview-wrapper,
|
|
3125
|
+
.link-preview-wrapper {
|
|
3126
|
+
padding-right: 1rem;
|
|
3127
|
+
padding-left: 1rem;
|
|
3128
|
+
}
|
|
3129
|
+
.popover {
|
|
3130
|
+
.popover-menu__btn {
|
|
3131
|
+
width: 24px;
|
|
3132
|
+
height: 24px;
|
|
3133
|
+
}
|
|
3134
|
+
}
|
|
3135
|
+
|
|
3136
|
+
margin-left: 56px;
|
|
3137
|
+
${r.MediaQueries.mbDown} {
|
|
3138
|
+
margin-left: 40px;
|
|
3139
|
+
}
|
|
3140
|
+
> .post-author {
|
|
3141
|
+
margin-left: -56px;
|
|
3142
|
+
${r.MediaQueries.mbDown} {
|
|
3143
|
+
margin-left: -40px;
|
|
3144
|
+
}
|
|
3145
|
+
.author-info {
|
|
3146
|
+
align-items: center;
|
|
3147
|
+
display: flex;
|
|
3148
|
+
align-items: center;
|
|
3149
|
+
.author-info-top {
|
|
3150
|
+
width: 100%;
|
|
3151
|
+
}
|
|
3152
|
+
.author-info-text-wrapper {
|
|
3153
|
+
justify-content: space-between;
|
|
3154
|
+
}
|
|
3155
|
+
}
|
|
3156
|
+
.author-avatar-wrapper {
|
|
3157
|
+
width: 40px;
|
|
3158
|
+
height: 40px;
|
|
3159
|
+
font-size: 20px;
|
|
3160
|
+
${r.MediaQueries.mbDown} {
|
|
3161
|
+
width: 24px;
|
|
3162
|
+
height: 24px;
|
|
3163
|
+
font-size: 12px;
|
|
3164
|
+
}
|
|
3165
|
+
}
|
|
3166
|
+
}
|
|
3167
|
+
&[data-is-reply] {
|
|
3168
|
+
> .post-author {
|
|
3169
|
+
.author-avatar-wrapper {
|
|
3170
|
+
width: 40px;
|
|
3171
|
+
height: 40px;
|
|
3172
|
+
font-size: 20px;
|
|
3173
|
+
${r.MediaQueries.mbDown} {
|
|
3174
|
+
width: 24px;
|
|
3175
|
+
height: 24px;
|
|
3176
|
+
font-size: 12px;
|
|
3177
|
+
}
|
|
3178
|
+
}
|
|
3179
|
+
}
|
|
3180
|
+
}
|
|
3181
|
+
|
|
3182
|
+
.comment-reply-wrapper {
|
|
3183
|
+
padding-right: 0;
|
|
3184
|
+
padding-left: 0;
|
|
3185
|
+
}
|
|
3186
|
+
.post-reaction {
|
|
3187
|
+
&::after {
|
|
3188
|
+
position: absolute;
|
|
3189
|
+
bottom: 0;
|
|
3190
|
+
left: 50%;
|
|
3191
|
+
width: calc(100% - 2rem);
|
|
3192
|
+
height: 1px;
|
|
3193
|
+
background: #f3f3f3;
|
|
3194
|
+
content: ' ';
|
|
3195
|
+
transform: translateX(-50%);
|
|
3196
|
+
}
|
|
3197
|
+
}
|
|
3198
|
+
.post-content-wrapper {
|
|
3199
|
+
padding-top: 0;
|
|
3200
|
+
padding-bottom: 0;
|
|
3201
|
+
${r.MediaQueries.mbDown} {
|
|
3202
|
+
padding-left: 0.5rem;
|
|
3203
|
+
}
|
|
3204
|
+
}
|
|
3205
|
+
|
|
3206
|
+
${r.MediaQueries.mbDown} {
|
|
3207
|
+
margin-bottom: 12px;
|
|
3208
|
+
}
|
|
3209
|
+
}
|
|
3210
|
+
`,Oo=B.default(Ro)`
|
|
3211
|
+
margin-top: 12px;
|
|
3212
|
+
padding: 0.5rem 1rem 1rem;
|
|
3213
|
+
`;exports.AuthorBadge=V,exports.BookingBtn=D,exports.BtnChoice=({value:t,choices:o,onChange:r})=>{const[l,n]=e.useState(t);return e.useEffect((()=>{n(t)}),[t]),L.default.createElement("div",{className:F},o.map(((e,t)=>L.default.createElement(a.Button,{dataEventCategory:e.dataEventCategory,dataEventAction:e.dataEventAction,dataEventLabel:e.dataEventLabel,size:"sm",variant:e.value===l?"primary":"tertiary",key:t,onClick:()=>{n(e.value),null==r||r(e.value)}},e.label||""))))},exports.CardAuthor=ct,exports.CardReactions=pe,exports.Close=U,exports.Divider=({type:e="solid",className:a,style:o})=>L.default.createElement(t.StyledDivider,{style:o,className:a,"data-diver-type":e,dividerType:e}),exports.Dropdown=({className:e,value:t,options:a,onChange:r=(()=>{}),id:l,placeholderIcon:n,placeholder:i,style:s,size:d="lg",groupedWithLabel:c,disabled:u,dropdownLabelTrackingAttributes:p={},isNativeSelect:m=!1})=>{const g=o.useMantineTheme(),[h,f]=L.default.useState(!1),v=()=>!u&&f(!h);return m?L.default.createElement(q,{color:g.fn.primaryColor(),shadowColor:g.colors[g.primaryColor][2],as:"select","data-is-native":"true",value:(null==t?void 0:t.value)||void 0,disabled:u,onChange:e=>{if("string"==typeof e.target.value){const t=a.find((t=>t.value===e.target.value));t&&r(t)}}},i&&L.default.createElement("option",{value:i,disabled:!0,selected:!0},i),a.map((e=>L.default.createElement("option",{key:`${l}-${e.value}`,value:e.value,disabled:!!e.disabled&&e.disabled},e.label)))):L.default.createElement(q,{color:g.fn.primaryColor(),shadowColor:g.colors[g.primaryColor][2],className:e,"data-dropdown-open":h||void 0,"data-size":d,id:l,"data-has-icons":!!n,style:s,onBlur:()=>f(!1),tabIndex:0,"data-disabled":u},!!c&&L.default.createElement(Q,null,c),L.default.createElement(H,Object.assign({color:g.fn.primaryColor(),shadowColor:g.colors[g.primaryColor][2],onClick:v,className:c&&"with-label"},p),n," ",L.default.createElement("span",null,t&&t.value?t.label:i)),h&&L.default.createElement(W,{onClick:v,"data-has-icons":!!n},a.map((e=>L.default.createElement(G,{key:`${l}-${e.value}`,"data-selected":t&&t.value===e.value||void 0,onClick:()=>!e.disabled&&!u&&(null==r?void 0:r(e)),"data-disabled":!!e.disabled&&e.disabled},e.icon&&L.default.createElement(Z,null,e.icon),e.label)))))},exports.LabelSortPin=he,exports.LabelSorting=({onChange:a,className:o,style:r,leftLabel:l,rightLabel:n,color:i,value:s,choices:d})=>{const{data:{env:{isMarryBaby:c}}}=e.useContext(t.TogetherComponentGlobalContext);return L.default.createElement(he,{label:l,rightLabel:L.default.createElement(xe,{position:"bottom",align:"end",data:{isShowheader:!1,type:"list",list:d.map((e=>({label:e.label,onClick:()=>a&&a(String(e.value)),selected:e.value===s,className:"bold-item"})))},toggleButtonContent:L.default.createElement("div",{style:{display:"flex"}},L.default.createElement(u.Text,{style:{display:"flex",alignItems:"center",fontWeight:"normal",marginRight:12},size:"p4"},n),L.default.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:o,style:r})},exports.Loading=$,exports.MainInputTriggerContext=$t,exports.PopoverMenu=be,exports.PopupDoctor=We,exports.PopupExpert=$e,exports.PopupFrame=Kt,exports.PopupHospital=ot,exports.PostContent=na,exports.ProfileDetail=go,exports.ProfileDetailModal=st,exports.RichTextEditor=({html:a,onChange:o,className:r,style:l,onImagePickerClick:i,bannedWords:s=[],onInvalidUrlsChange:d,onPreviewUrlChange:c,setEditorRef:p,isReplying:m})=>{var g,h,f,b;const x=e.useRef([]);x.current=s;const[w,y]=e.useState([]),[C,E]=e.useState(null),{data:{locale:k}}=e.useContext(t.TogetherComponentGlobalContext),A=(null==s?void 0:s.join(","))||"";e.useEffect((()=>{var e,t;const a=null===(t=null===(e=j.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root.innerHTML;P(a)}),[A]);const N=e=>{C&&C.url===e||(E({url:e,isFetching:!0}),t.callApi(t.getApiPath(t.PATHS.FETCH_PREVIEW,{_locale:k}),"POST",{data:{link:e}}).then((t=>{var a,o,r,l;E({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===(r=null==t?void 0:t.data)||void 0===r?void 0:r.image)||(null===(l=null==t?void 0:t.data)||void 0===l?void 0:l.logo),url:e})})).catch((()=>{E(null)})))},z=e.useRef(N);z.current=N;const P=e.useCallback(O.default((e=>{if(e){const t=Ft(e,{bannedWords:x.current,formatUrl:!0}),{invalidUrls:a,previewUrl:r,value:l}=t;a&&y(a),r?z.current(r):E(null),l!==e&&(null==o||o(l))}}),500),[]);e.useEffect((()=>{d&&d(w)}),[w]),e.useEffect((()=>{c&&((null==C?void 0:C.url)?c({title:C.title||"",url:C.url||"",image:C.image||"",description:C.description||""}):c(null))}),[C]);const M=e.useRef(i);M.current=i;const B=S.useUniqueId(),R=e.useRef({toolbar:{handlers:{image:()=>{var e;return null===(e=M.current)||void 0===e?void 0:e.call(M)},link:()=>!1},container:"#toolbar-"+B},preserveWhiteSpace:!0}),I=e.useRef(-1),j=e.useRef(null);p&&(null===(h=null===(g=j.current)||void 0===g?void 0:g.getEditor())||void 0===h?void 0:h.root)&&p(null===(b=null===(f=j.current)||void 0===f?void 0:f.getEditor())||void 0===b?void 0:b.root);const V=()=>{var e,t,a,o,r,l,n,i;if(null===(t=null===(e=j.current)||void 0===e?void 0:e.getEditor())||void 0===t?void 0:t.root){const e=jt(null===(o=null===(a=j.current)||void 0===a?void 0:a.getEditor())||void 0===o?void 0:o.root),t=null===(l=null===(r=j.current)||void 0===r?void 0:r.getEditor())||void 0===l?void 0:l.root.innerHTML;if(e>=0&&e<t.length){if(St(t,!0).length<30-(m?1:0)){const e=function(e){var t,a;let o=null;if(void 0!==window.getSelection){const r=window.getSelection();if((null==r?void 0:r.rangeCount)&&(null==r?void 0:r.rangeCount)>0){const r=null===(t=window.getSelection())||void 0===t?void 0:t.getRangeAt(0);if(r){const t=r.cloneRange();t.selectNodeContents(e),t.setEnd(r.endContainer,r.endOffset);const l=(t.endContainer.nodeValue||"").substring(0,r.endOffset),n=l.lastIndexOf("@");if(n+1<l.length&&(0===n||" @"===l.slice(n-1,n+1))){const e=null===(a=l.slice(n+1))||void 0===a?void 0:a.trim();if(e){t.setStart(r.endContainer,n);const a=t.cloneRange();a.setStart(a.endContainer,n),o={name:e,rect:t.getBoundingClientRect(),replaceRange:a}}}}}}return o}(null===(i=null===(n=j.current)||void 0===n?void 0:n.getEditor())||void 0===i?void 0:i.root);e?(H(e.name,e.rect),Z.current=e.replaceRange):(Z.current=null,H("",null))}else Z.current=null,H("",null);I.current=e}}else D([])},[F,D]=e.useState([]),[U,q]=e.useState({top:0,left:0}),H=e.useCallback(O.default(((e,a,o)=>n.__awaiter(void 0,void 0,void 0,(function*(){var r,l,n,i;if(!e||!DOMRect)return D([]);const s=yield((null===(r=T.getCookie(t.BEARER_TOKEN_COOKIE))||void 0===r?void 0:r.length)||0)>0?t.callApiWithAuth(t.getApiPath(t.PATHS.SEARCH_USER,{_locale:k,name:e}),"get"):t.callApiWithAdminAuth(t.getApiPath(t.ADMIN_PATHS.SEARCH_USER,{_locale:k,name:e}),"get");_(0),D(null===(n=null===(l=null==s?void 0:s.data)||void 0===l?void 0:l.users)||void 0===n?void 0:n.filter((e=>!(null==o?void 0:o.includes(String(e.id))))));const d=a,c=null===(i=G.current)||void 0===i?void 0:i.getBoundingClientRect();if(d&&c){const e=343,t=256,a={top:d.bottom-c.top,width:"min(343px, 100%)",maxHeight:t};c.width-(d.left-c.left)<e?a.right=0:a.left=d.left-c.left,q(a)}}))),500),[]),W=(e,t)=>{var a,o,r;if(Z.current){Z.current.deleteContents();const l=document.createElement("mention");l.setAttribute("data-id",e),l.setAttribute("data-name",t),l.innerText=t;const n=document.createTextNode(" ");Z.current.insertNode(n),Z.current.insertNode(l);(null===(o=null===(a=j.current)||void 0===a?void 0:a.getEditor())||void 0===o?void 0:o.root).focus();const i=null===(r=window.getSelection())||void 0===r?void 0:r.getRangeAt(0);null==i||i.setStart(Z.current.endContainer,Z.current.endOffset),null==i||i.setEnd(Z.current.endContainer,Z.current.endOffset)}D([])},G=e.useRef(null),Z=e.useRef(null),Q=e.useRef(null),[X,_]=e.useState(0);return e.useEffect((()=>{if(Q.current){const e=Q.current,t=e.children.item(X);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)}}}),[X]),e.useEffect((()=>{const e=function(e){var t;(null===(t=G.current)||void 0===t?void 0:t.contains(e.target))||D([])};return window.addEventListener("click",e,{passive:!0}),()=>{window.removeEventListener("click",e)}}),[]),L.default.createElement(It,{ref:G,className:r,style:l,onKeyDownCapture:e=>{if(null==F?void 0:F.length){let t=!1;if("ArrowDown"===e.key)t=!0,_((e=>e+1>=F.length?0:e+1));else if("Escape"===e.key)t=!0,_(0),D([]);else if("ArrowUp"===e.key)t=!0,_((e=>e-1<0?F.length-1:e-1));else if("Enter"===e.key||"Tab"===e.key){const e=F[X];e&&(t=!0,W(e.id,e.name))}if(t)return e.preventDefault(),!1}}},L.default.createElement(Dt,{id:B,onAddLink:(e,t)=>{var a,r;const l=I.current+1,n=null===(r=null===(a=j.current)||void 0===a?void 0:a.getEditor())||void 0===r?void 0:r.root.innerHTML,i=((null==n?void 0:n.substring(0,l))||"")+`<mocka data-href="${t}" data-url="true">${e}</mocka> `+((null==n?void 0:n.substring(l))||"");null==o||o(i),P(i)}}),Ot&&L.default.createElement(Ot,{ref:j,theme:"snow",value:a,onChange:e=>{null==o||o(e),P(e),V()},onChangeSelection:()=>{V()},modules:R.current,formats:["mocka1","mention","id","key","bold","italic","underline","list","bullet"]}),!!(null==F?void 0:F.length)&&L.default.createElement("div",{ref:Q,className:"mention-search-container",style:U},F.map(((e,t)=>L.default.createElement("div",{className:"mention-search-item "+(X===t?"item-selected":""),key:e.id,onClick:t=>{t.preventDefault(),t.stopPropagation(),W(e.id,e.name)},onMouseEnter:()=>{_(t)}},L.default.createElement(v.UserAvatar,{className:"search-avatar",username:e.name,avatar:e.avatar}),L.default.createElement("div",null,L.default.createElement(u.Text,{size:"p2"},e.name),L.default.createElement(u.Text,{size:"p4",color:"#595959"},"@",e.username)))))))},exports.ShareBox=ta,exports.SharePopup=({trackingCategory:a,className:l,style:n,url:s,avatar:d,text:c,onClose:p})=>{const{data:{env:{isMarryBaby:m}}}=e.useContext(t.TogetherComponentGlobalContext),{t:g}=i.useTranslations(),[h,f]=e.useState(!1);return e.useEffect((()=>(r.toggleNoScroll(!0),setTimeout((()=>f(!0)),0),()=>r.toggleNoScroll(!1))),[]),L.default.createElement(o.Portal,null,L.default.createElement(aa,{"data-is-marrybaby":m,className:l,style:n},L.default.createElement(Kt,{className:"share-popup",isOpen:h,onClose:p,heading:g("bottomBar.share")},m?L.default.createElement(u.Text,{className:"share-mb-text",size:"sm"},g("article.shareOn")):L.default.createElement("div",{className:"custom-share__header"},d&&L.default.createElement("div",{className:"custom-share__header-image"},L.default.createElement("img",{src:d,loading:"lazy"})),L.default.createElement("div",{className:"custom-share__header-info"},L.default.createElement(t.Heading,{tag:"h4"},c),L.default.createElement(u.Text,{className:"desc",size:"md"},s))),h&&L.default.createElement(ta,{trackingCategory:a,shareUrl:s||("undefined"!=typeof window?window.location.href:""),title:c}))))},exports.SourceList=Ro,exports.StyledArrowWrapper=va,exports.StyledCardLink=J,exports.StyledCardPost=Io,exports.StyledCardPost$1=fo,exports.StyledCircleArrow=ba,exports.StyledCreateNewPost=ut,exports.StyledCreatePostDescription=Rt,exports.StyledCreatePostTitle=Ht,exports.StyledError=mt,exports.StyledIcon=Ca,exports.StyledImagePreviewContainer=ga,exports.StyledImagePreviewPopup=pa,exports.StyledImagePreviewTopbar=ha,exports.StyledImagePreviewWrapper=fa,exports.StyledInner=ya,exports.StyledInputCommentBar=Yt,exports.StyledIsQuestion=pt,exports.StyledNotificationBar=ma,exports.StyledPopupDanger=Gt,exports.StyledPostImagePreview=ua,exports.StyledSocialLinkPreview=ka,exports.StyledSourceList=Oo,exports.StyledSubmitReportForm=oa,exports.StyledTopicSelectList=Wt,exports.StyledWrapper=Ea,exports.TagTopic=o=>{var{topics:r=[],onClick:l,className:s,style:d,trackingCategory:c="Together",locale:u="vi-VN",classNames:p,styles:m,unstyled:h,shortenedNumber:f=3,shortenedStyle:v}=o,b=n.__rest(o,["topics","onClick","className","style","trackingCategory","locale","classNames","styles","unstyled","shortenedNumber","shortenedStyle"]);const{t:x}=i.useTranslations(),{classes:y}=me(void 0,{name:"TagTopic",classNames:p,styles:m,unstyled:h}),{data:{env:{togetherBasePath:C}},action:{sanitizeFunction:E}}=e.useContext(t.TogetherComponentGlobalContext),[k,A]=e.useState(!v);return L.default.createElement("div",Object.assign({onClick:l,className:`${y.wrapper} ${s}`,style:d},b),(k?r:r.slice(0,f)).map(((e,o)=>{const r=(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 L.default.createElement("a",{className:y.item,key:o,"data-event-category":c,"data-event-action":"Topic in Post Click","data-event-label":`${t.getCurrentBaseUrl(u)}${C}${e.url}`,href:e.isActive&&!e.isHidden?`${C}${e.url}/`:void 0},L.default.createElement(a.Text,{size:"p4"},L.default.createElement("span",{style:Object.assign({},r&&{textTransform:"capitalize"}),dangerouslySetInnerHTML:{__html:r?`${w.format(new Date(2020,Number(e.dueDateMonth)-1,1),"MMMM",{locale:g.DATE_FNS_LOCALE[u]})}/${null==e?void 0:e.dueDateYear}`:(null==E?void 0:E(e.name))||e.name}})))})),!k&&r.length>f&&L.default.createElement("a",{className:y.item,href:"#",onClick:e=>{e.preventDefault(),A(!0)}},L.default.createElement(a.Text,{size:"p4"},"+",x("tagTopic.moreTopics",{number:r.length-f}))))},exports.TogetherAuthConfigContext=X,exports.TogetherAuthConfigContextProvider=({children:e,defaultParams:t})=>L.default.createElement(X.Provider,{value:{defaultParams:t}},e),exports.TreePopoverMenu=xe,exports.decodeMention=Nt,exports.decodePostUrl=At,exports.encodePostContent=(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(ht,((e,t,a)=>'="'!==t&&'data-url="true">'!==t?`<a href="${a}" target="_blank">${a}</a>`:e)).replace(gt,((e,t,a)=>{var o;const r=null===(o=t.match(/data-href="([^"]*)"/im))||void 0===o?void 0:o[1];return r?`<a href="${r}" target="_blank">${a}</a>`:`<a href="${a}" target="_blank">${a}</a>`})))})((e=>e.replace(vt,((e,t,a)=>`[mention+id="${t}"+name="${a}"]`)))(Pt(e)),t),exports.getMentionIdsFromString=St,exports.highlightBadWords=Bt,exports.img=_t,exports.removeBannedWordWrapper=Pt,exports.uploadAndGetSrc=(e,a,o)=>"string"==typeof e?Promise.resolve(e):n.__awaiter(void 0,void 0,void 0,(function*(){var r;const l=new FormData;if(e.type.startsWith("image/gif"))l.append("image",e);else{const t=yield Promise.resolve().then((function(){return P(require("browser-image-compression"))})),a=yield t.default(e,{maxSizeMB:.4,maxWidthOrHeight:1536,useWebWorker:!0});l.append("image",a)}const n=o?t.callApiWithAdminAuth:t.callApiWithAuth,i=yield n(t.getApiPath(o?t.ADMIN_PATHS.COMMENT.IMAGE_UPLOAD:t.PATHS.COMMENT.IMAGE_UPLOAD,{_locale:a}),"POST",{data:l});return(null===(r=null==i?void 0:i.data)||void 0===r?void 0:r.image)||""})),exports.useTogetherAuthRequiredAction=_,exports.youtubeVidIdGetter=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])||""};
|