@hhgtech/hhg-components 1.29.255 → 1.29.257
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/{LastPeriod-647877c3.js → LastPeriod-cced7ae6.js} +1 -1
- package/build/{MobileBottomNavigationIcon-c72c94b1.js → MobileBottomNavigationIcon-e6ca8167.js} +3 -3
- package/build/{Spinner-2ef57315.js → Spinner-f6c19e1f.js} +1 -1
- package/build/{WhatsApp-83a20850.js → WhatsApp-e4c8a092.js} +1 -1
- package/build/adapters.js +19 -19
- package/build/atoms.js +46 -46
- package/build/babyGrowth.js +83 -83
- package/build/cache.js +2 -2
- package/build/care.js +17 -17
- package/build/careBookingSearchBar.js +14 -14
- package/build/careBookingSearchBarV2.js +15 -15
- package/build/components.js +90 -90
- package/build/{constants-1cc36328.js → constants-8e0a9aa3.js} +1 -1
- package/build/constants.js +3 -3
- package/build/constantsDomainLocales.js +1 -1
- package/build/constantsRiskScreener.js +2 -2
- package/build/constantsSite.js +2 -2
- package/build/{core-8ca9bc0c.js → core-9917ee29.js} +1 -1
- package/build/{dataTransform-0d78fcff.js → dataTransform-5b86a813.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-4442a163.js → editor-24076d3e.js} +30 -19
- package/build/embeddedHeathToolCards_babyGrowth.js +23 -23
- package/build/embeddedHeathToolCards_babyPoop.js +19 -19
- package/build/embeddedHeathToolCards_babyVaccine.js +22 -22
- package/build/embeddedHeathToolCards_bmi_bmi.js +25 -25
- package/build/embeddedHeathToolCards_bmrBmr.js +25 -25
- package/build/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
- package/build/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
- package/build/embeddedHeathToolCards_pwg_pwg.js +26 -26
- package/build/embeddedHeathToolCards_targetHeartRate.js +27 -27
- package/build/esm/{LastPeriod-3db09d18.js → LastPeriod-d7ebf57f.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-ffb0633f.js → MobileBottomNavigationIcon-752df463.js} +3 -3
- package/build/esm/{Spinner-a3e64cf2.js → Spinner-447201c3.js} +1 -1
- package/build/esm/{WhatsApp-f8ec28ce.js → WhatsApp-e91ad7a7.js} +1 -1
- package/build/esm/adapters.js +19 -19
- package/build/esm/atoms.js +46 -46
- package/build/esm/babyGrowth.js +83 -83
- package/build/esm/cache.js +2 -2
- package/build/esm/care.js +17 -17
- package/build/esm/careBookingSearchBar.js +14 -14
- package/build/esm/careBookingSearchBarV2.js +15 -15
- package/build/esm/components.js +90 -90
- package/build/esm/{constants-e9677ee3.js → constants-80e52705.js} +1 -1
- package/build/esm/constants.js +3 -3
- package/build/esm/constantsDomainLocales.js +1 -1
- package/build/esm/constantsRiskScreener.js +2 -2
- package/build/esm/constantsSite.js +2 -2
- package/build/esm/{core-27cd7727.js → core-e2994679.js} +1 -1
- package/build/esm/{dataTransform-a19ddc8d.js → dataTransform-f63769fa.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-d7addd70.js → editor-01735174.js} +30 -19
- package/build/esm/embeddedHeathToolCards_babyGrowth.js +23 -23
- package/build/esm/embeddedHeathToolCards_babyPoop.js +19 -19
- package/build/esm/embeddedHeathToolCards_babyVaccine.js +22 -22
- package/build/esm/embeddedHeathToolCards_bmi_bmi.js +25 -25
- package/build/esm/embeddedHeathToolCards_bmrBmr.js +25 -25
- package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
- package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
- package/build/esm/embeddedHeathToolCards_pwg_pwg.js +26 -26
- package/build/esm/embeddedHeathToolCards_targetHeartRate.js +27 -27
- package/build/esm/{fixedBottomAdBlock-15e7537b.js → fixedBottomAdBlock-080bfd59.js} +23 -23
- package/build/esm/footer.js +21 -21
- package/build/esm/gAssets.js +2 -2
- package/build/esm/healthToolsCardWrapper.js +18 -18
- package/build/esm/healthToolsForm.js +33 -33
- package/build/esm/hooks/usePreview.d.ts +16 -0
- package/build/esm/hooks.js +13 -13
- package/build/esm/i18n/translationKeys.d.ts +1 -1
- package/build/esm/i18n-values/en-PH.js +14 -0
- package/build/esm/i18n-values/hi-IN.js +14 -0
- package/build/esm/i18n-values/id-ID.js +14 -0
- package/build/esm/i18n-values/km-KH.js +15 -1
- package/build/esm/i18n-values/ms-MY.js +14 -0
- package/build/esm/i18n-values/my-MM.js +14 -0
- package/build/esm/i18n-values/th-TH.js +14 -0
- package/build/esm/i18n-values/tl-PH.js +14 -0
- package/build/esm/i18n-values/vi-VN.js +16 -1
- package/build/esm/i18n-values/vi-VN_MB.js +16 -1
- package/build/esm/i18n-values/zh-TW.js +17 -2
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-35872353.js → index-023e14a5.js} +1 -1
- package/build/esm/{index-ef8af124.js → index-0924abd2.js} +1 -1
- package/build/esm/{index-e014aa13.js → index-0b9e0529.js} +2 -2
- package/build/esm/{index-17c2ddd0.js → index-11a9bf00.js} +15 -15
- package/build/esm/{index-56ddfba6.js → index-12af5b47.js} +21 -21
- package/build/esm/{index-e06b730e.js → index-1387e1de.js} +15 -15
- package/build/esm/{index-47b7b478.js → index-176b1755.js} +10 -10
- package/build/esm/{index-f4d04773.js → index-1892a9d1.js} +3 -3
- package/build/esm/{index-9c37d508.js → index-1afb7406.js} +1 -1
- package/build/esm/{index-434e586a.js → index-1b2aa557.js} +2 -2
- package/build/esm/{index-daaf5d70.js → index-24e4e854.js} +3 -3
- package/build/esm/{index-6a3c2aae.js → index-35746b73.js} +5 -5
- package/build/esm/{index-f245a430.js → index-378ce8d5.js} +1 -1
- package/build/esm/{index-6b1e8f6c.js → index-3a813e19.js} +2 -2
- package/build/esm/{index-48ebe2e7.js → index-46b8e58b.js} +30 -30
- package/build/esm/{index-bcfb1c9e.js → index-46fa2099.js} +24 -24
- package/build/esm/{index-1d8c2957.js → index-4f4c1ea9.js} +2 -2
- package/build/esm/{index-839346be.js → index-4f6087ac.js} +2 -2
- package/build/esm/{index-244707e4.js → index-51da6241.js} +7 -7
- package/build/esm/{index-5182fa9d.js → index-52038b72.js} +4 -4
- package/build/esm/{index-cbb715a1.js → index-60caa8d9.js} +13 -13
- package/build/esm/{index-2f0b80a1.js → index-61d38c57.js} +2 -2
- package/build/esm/{index-9c1e9fee.js → index-68bc9cb8.js} +13 -13
- package/build/esm/{index-2e565b13.js → index-7430706d.js} +1 -1
- package/build/esm/{index-ea3c14eb.js → index-7535033c.js} +1 -1
- package/build/esm/{index-8bbc889d.js → index-7b711eb0.js} +16 -16
- package/build/esm/{index-1ae4801b.js → index-7e1b9aab.js} +6 -6
- package/build/esm/{index-2a523664.js → index-7f084e96.js} +3 -3
- package/build/esm/{index-4eb0527a.js → index-84286d9e.js} +16 -16
- package/build/esm/{index-9ed4be6b.js → index-88cc335f.js} +3 -3
- package/build/esm/{index-ae0c384e.js → index-89f861b2.js} +12 -12
- package/build/esm/{index-4eb6c756.js → index-8c0177c7.js} +17 -17
- package/build/esm/{index-6c944fe8.js → index-8e93fd7d.js} +2 -2
- package/build/esm/{index-7c38f120.js → index-8f4080b6.js} +6 -6
- package/build/esm/{index-03ff44b3.js → index-924ffa5f.js} +13 -13
- package/build/esm/{index-f2b11138.js → index-92ac8a44.js} +146 -146
- package/build/esm/{index-f6ef9854.js → index-9c698b33.js} +3 -3
- package/build/esm/{index-f0bf0eed.js → index-9edfd1f5.js} +5 -5
- package/build/esm/{index-3fddc4d8.js → index-ac1e8d5b.js} +1 -1
- package/build/esm/{index-aef27e71.js → index-adbd5a1a.js} +32 -32
- package/build/esm/{index-c96910dd.js → index-ae457f71.js} +17 -17
- package/build/esm/{index-36c08add.js → index-b74971fb.js} +190 -117
- package/build/esm/{index-09649328.js → index-bbcecb07.js} +1 -1
- package/build/esm/{index-47452bf8.js → index-bf220293.js} +3 -3
- package/build/esm/{index-76ce4ed7.js → index-c2af6ffc.js} +1 -1
- package/build/esm/{index-b26e51ec.js → index-c62e286b.js} +16 -16
- package/build/esm/{index-1880f8a3.js → index-c7bd804f.js} +2 -2
- package/build/esm/{index-2eb679bb.js → index-cfec5d75.js} +2 -2
- package/build/esm/{index-f3c6f5f7.js → index-d4b7acdf.js} +7 -7
- package/build/esm/{index-4132d697.js → index-d5721dcb.js} +6 -6
- package/build/esm/index-d5be2978.js +1578 -0
- package/build/esm/{index-a064b97a.js → index-d63df1ed.js} +1 -1
- package/build/esm/{index-862f8eaf.js → index-dd829b66.js} +18 -18
- package/build/esm/{index-65da8c34.js → index-e0165d07.js} +2 -2
- package/build/esm/{index-79b55d37.js → index-e05cce33.js} +2 -2
- package/build/esm/{index-7acc7acc.js → index-e0b58347.js} +13 -13
- package/build/esm/{index-131e2b6b.js → index-e45acd0c.js} +6 -6
- package/build/esm/{index-494fb244.js → index-ea9ae9dc.js} +2 -2
- package/build/esm/{index-1185b1e5.js → index-efc77867.js} +17 -17
- package/build/esm/{index-f7368d5b.js → index-f169c6de.js} +16 -16
- package/build/esm/{index-36dea16b.js → index-f2cd8699.js} +3 -3
- package/build/esm/index.js +112 -112
- package/build/esm/{index.styles-08e39b53.js → index.styles-15ce859c.js} +1 -1
- package/build/esm/interfaces/types/index.d.ts +1 -1
- package/build/esm/{labelSorting-ec1bf6da.js → labelSorting-11972ce5.js} +4 -4
- package/build/esm/lead.js +24 -24
- package/build/esm/{logoIcon-15b6e029.js → logoIcon-4cb83b01.js} +2 -2
- package/build/esm/mantine.js +25 -25
- package/build/esm/misc.js +16 -16
- package/build/esm/miscGetDynamicHealthTool.js +4 -4
- package/build/esm/miscGetSocialList.js +8 -8
- package/build/esm/miscScreenSizeContext.js +1 -1
- package/build/esm/mobileBottomNavigation.js +5 -5
- package/build/esm/mobileBottomNavigationIcon.js +5 -5
- package/build/esm/molecules.js +69 -69
- package/build/esm/moleculesArticleCard.js +6 -6
- package/build/esm/moleculesArticleCardV2.js +16 -16
- package/build/esm/navigation.js +40 -40
- package/build/esm/navigationLogoutPopup.js +9 -9
- package/build/esm/navigationProfileButton.js +23 -23
- package/build/esm/onboardingV2.js +29 -29
- package/build/esm/organisms.js +44 -44
- package/build/esm/{post-5d0b96db.js → post-4bdeecde.js} +3 -3
- package/build/esm/profileNavigation.js +19 -19
- package/build/esm/progressBar.js +1 -1
- package/build/esm/pwg.js +22 -22
- package/build/esm/ssoV2.js +26 -26
- package/build/esm/{store-2c4a73fd.js → store-b478aeb2.js} +3 -3
- package/build/esm/subot.js +33 -33
- package/build/esm/surveyOrPremiumBanner.js +31 -31
- package/build/esm/surveyQuestionCard.js +10 -10
- package/build/esm/{surveyThankyouCard-ceeeaf75.js → surveyThankyouCard-b8c8a12d.js} +5 -5
- package/build/esm/together/assets/icons/Ask.d.ts +7 -0
- package/build/esm/together/components/molecules/createNewPostContent/index.d.ts +6 -2
- package/build/esm/together/components/molecules/createNewPostContent/index.styled.d.ts +4 -0
- package/build/esm/together/components/molecules/createNewPostContent/type.d.ts +4 -0
- package/build/esm/together/components/molecules/createPostCommunity/index.d.ts +25 -0
- package/build/esm/together/components/molecules/createPostCommunity/index.styled.d.ts +9 -0
- package/build/esm/together/components/molecules/createPostCommunity/index.styles.d.ts +12 -0
- package/build/esm/together/components/molecules/createPostDescription/index.d.ts +2 -1
- package/build/esm/together/components/molecules/createPostPhotos/index.d.ts +7 -0
- package/build/esm/together/components/molecules/createPostVideo/index.d.ts +8 -0
- package/build/esm/together/components/molecules/createPostVideo/socialLinkPopup/index.d.ts +12 -0
- package/build/esm/together/components/molecules/createPostVideo/socialLinkPopup/index.styled.d.ts +15 -0
- package/build/esm/together/components/molecules/postPhotosReview/index.d.ts +8 -0
- package/build/esm/together/components/molecules/postPhotosReview/index.styled.d.ts +5 -0
- package/build/esm/together/components/molecules/postPhotosReview/index.styles.d.ts +12 -0
- package/build/esm/together/components/molecules/postVideoReview/index.d.ts +10 -0
- package/build/esm/together/components/molecules/postVideoReview/index.styled.d.ts +5 -0
- package/build/esm/together/components/molecules/postVideoReview/index.styles.d.ts +12 -0
- package/build/esm/together/components/organisms/cardPost/cardPostPopover.d.ts +1 -1
- package/build/esm/together.js +53 -52
- package/build/esm/togetherApiUtils.js +4 -4
- package/build/esm/togetherAtoms.js +30 -30
- package/build/esm/togetherComponentGlobalContext.js +4 -4
- package/build/esm/togetherMolecules.js +48 -47
- package/build/esm/togetherMoleculesCardAuthor.js +27 -27
- package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
- package/build/esm/togetherMoleculesProfileDetail.js +37 -37
- package/build/esm/togetherOrganisms.js +47 -47
- package/build/esm/togetherRichTextEditor.js +17 -17
- package/build/esm/togetherShareBox.js +10 -10
- package/build/esm/{treePopoverMenu-b1f48071.js → treePopoverMenu-9100bba2.js} +18 -18
- package/build/esm/{types-e3de1646.js → types-46e3d0a7.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-ab47c91e.js → useCategory-57f930bb.js} +5 -5
- package/build/esm/{useHealthToolCache-2ec381e3.js → useHealthToolCache-b288c86a.js} +1 -1
- package/build/esm/{useMantineLocale-6d8b743c.js → useMantineLocale-96512e71.js} +5 -5
- package/build/esm/{usePlacesAutocomplete-b883fb59.js → usePlacesAutocomplete-8d46f82b.js} +1 -1
- package/build/esm/useTogetherAuthRequiredAction.js +9 -9
- package/build/esm/{utils-5a12e69e.js → utils-01c2ac83.js} +4 -4
- package/build/esm/{utils-f8b3581f.js → utils-3786ea8d.js} +2 -2
- package/build/esm/{utils-23094e0e.js → utils-5c0260b6.js} +2 -2
- package/build/esm/vaccination.js +21 -21
- package/build/{fixedBottomAdBlock-245489f3.js → fixedBottomAdBlock-a9f91d42.js} +23 -23
- package/build/footer.js +21 -21
- package/build/gAssets.js +2 -2
- package/build/healthToolsCardWrapper.js +18 -18
- package/build/healthToolsForm.js +33 -33
- package/build/hooks/usePreview.d.ts +16 -0
- package/build/hooks.js +13 -13
- package/build/i18n/translationKeys.d.ts +1 -1
- package/build/i18n-values/en-PH.js +14 -0
- package/build/i18n-values/hi-IN.js +14 -0
- package/build/i18n-values/id-ID.js +14 -0
- package/build/i18n-values/km-KH.js +15 -1
- package/build/i18n-values/ms-MY.js +14 -0
- package/build/i18n-values/my-MM.js +14 -0
- package/build/i18n-values/th-TH.js +14 -0
- package/build/i18n-values/tl-PH.js +14 -0
- package/build/i18n-values/vi-VN.js +16 -1
- package/build/i18n-values/vi-VN_MB.js +16 -1
- package/build/i18n-values/zh-TW.js +17 -2
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-e929edea.js → index-001c16f3.js} +1 -1
- package/build/{index-0732378e.js → index-048f3b44.js} +2 -2
- package/build/{index-06775ce7.js → index-05692d24.js} +15 -15
- package/build/{index-f6c1b74e.js → index-06870b5e.js} +6 -6
- package/build/{index-46f868a5.js → index-0a5a1b01.js} +2 -2
- package/build/{index-a3cbebe1.js → index-0f04fc87.js} +2 -2
- package/build/{index-138cbcd6.js → index-1f44306e.js} +5 -5
- package/build/{index-ca06b50c.js → index-2865c943.js} +5 -5
- package/build/{index-b72f9bff.js → index-29c9db23.js} +18 -18
- package/build/{index-82080e24.js → index-2d4a31d1.js} +2 -2
- package/build/{index-c7a827cb.js → index-32978398.js} +6 -6
- package/build/{index-b7d15577.js → index-38415838.js} +21 -21
- package/build/{index-17122bdb.js → index-4507208c.js} +24 -24
- package/build/{index-299140fb.js → index-4751e786.js} +1 -1
- package/build/{index-b7c7906c.js → index-482be234.js} +7 -7
- package/build/{index-8ecc4b05.js → index-4a29f013.js} +2 -2
- package/build/{index-bfe67266.js → index-4bacf357.js} +2 -2
- package/build/{index-195b7b4c.js → index-4fcc98dd.js} +2 -2
- package/build/{index-644c08bb.js → index-51d2ca96.js} +1 -1
- package/build/{index-4dfbfe3c.js → index-538d14e8.js} +16 -16
- package/build/{index-4f0dd547.js → index-538fdb6c.js} +16 -16
- package/build/index-55ca8405.js +1592 -0
- package/build/{index-664f2b18.js → index-5710ccd2.js} +1 -1
- package/build/{index-69132b09.js → index-5bf98a3d.js} +17 -17
- package/build/{index-c5042444.js → index-5e5c8266.js} +1 -1
- package/build/{index-274b902f.js → index-6095d808.js} +17 -17
- package/build/{index-3cb6d701.js → index-6163d416.js} +12 -12
- package/build/{index-ce282721.js → index-6a6b03cd.js} +13 -13
- package/build/{index-b02ac86d.js → index-6acf01b0.js} +32 -32
- package/build/{index-9bcf2f6e.js → index-6c20d3d8.js} +30 -30
- package/build/{index-ee186536.js → index-7204cc38.js} +16 -16
- package/build/{index-875a6c7e.js → index-72615a0b.js} +3 -3
- package/build/{index-a1f8763b.js → index-77be7245.js} +17 -17
- package/build/{index-63c15184.js → index-7f340c95.js} +13 -13
- package/build/{index-a2263587.js → index-86a4b373.js} +3 -3
- package/build/{index-9519a5fd.js → index-9d45a28a.js} +3 -3
- package/build/{index-8fdebfd3.js → index-a07d57da.js} +1 -1
- package/build/{index-a03b58f0.js → index-a108dd1a.js} +2 -2
- package/build/{index-a12e742e.js → index-a6423cc9.js} +1 -1
- package/build/{index-2696743a.js → index-a66fb661.js} +3 -3
- package/build/{index-f3236d5a.js → index-bebff3fe.js} +7 -7
- package/build/{index-118bcd6b.js → index-bf4e59f8.js} +16 -16
- package/build/{index-ab8e6171.js → index-cc2f235e.js} +13 -13
- package/build/{index-fbd6df2e.js → index-cf6083e0.js} +146 -146
- package/build/{index-6968f65d.js → index-d24b7607.js} +4 -4
- package/build/{index-15b83521.js → index-d2589ce9.js} +1 -1
- package/build/{index-6335af8c.js → index-d4b5a53a.js} +2 -2
- package/build/{index-b7324289.js → index-d675bac3.js} +2 -2
- package/build/{index-adf15e38.js → index-dc127258.js} +1 -1
- package/build/{index-b37ae53d.js → index-ddaaa630.js} +1 -1
- package/build/{index-934d23cd.js → index-e1c57e47.js} +13 -13
- package/build/{index-85abf965.js → index-e347a515.js} +3 -3
- package/build/{index-17494419.js → index-e54701fa.js} +3 -3
- package/build/{index-2522a49d.js → index-e8a6e5b1.js} +190 -117
- package/build/{index-ad540dfe.js → index-e942ce94.js} +3 -3
- package/build/{index-a14e421b.js → index-f30d7935.js} +2 -2
- package/build/{index-04e2ac6e.js → index-f5be0d5b.js} +10 -10
- package/build/{index-6c60c508.js → index-f98fbacb.js} +6 -6
- package/build/{index-78754361.js → index-fb458d2a.js} +2 -2
- package/build/{index-1f1435d9.js → index-fc4cd44a.js} +6 -6
- package/build/{index-4a4120eb.js → index-fe8f488b.js} +15 -15
- package/build/index.js +112 -112
- package/build/{index.styles-5731896a.js → index.styles-6a6bfae9.js} +1 -1
- package/build/interfaces/types/index.d.ts +1 -1
- package/build/{labelSorting-1eb76308.js → labelSorting-cce89186.js} +4 -4
- package/build/lead.js +24 -24
- package/build/{logoIcon-b499558c.js → logoIcon-03b96846.js} +2 -2
- package/build/mantine.js +22 -22
- package/build/misc.js +16 -16
- package/build/miscGetDynamicHealthTool.js +4 -4
- package/build/miscGetSocialList.js +8 -8
- package/build/miscScreenSizeContext.js +1 -1
- package/build/mobileBottomNavigation.js +5 -5
- package/build/mobileBottomNavigationIcon.js +5 -5
- package/build/molecules.js +69 -69
- package/build/moleculesArticleCard.js +6 -6
- package/build/moleculesArticleCardV2.js +16 -16
- package/build/navigation.js +40 -40
- package/build/navigationLogoutPopup.js +9 -9
- package/build/navigationProfileButton.js +23 -23
- package/build/onboardingV2.js +28 -28
- package/build/organisms.js +44 -44
- package/build/{post-a74ba975.js → post-8e39f08c.js} +2 -2
- package/build/profileNavigation.js +19 -19
- package/build/progressBar.js +1 -1
- package/build/pwg.js +22 -22
- package/build/ssoV2.js +25 -25
- package/build/{store-df580b27.js → store-6c70e440.js} +3 -3
- package/build/subot.js +32 -32
- package/build/surveyOrPremiumBanner.js +31 -31
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-b602fa84.js → surveyThankyouCard-aa6087ea.js} +5 -5
- package/build/together/assets/icons/Ask.d.ts +7 -0
- package/build/together/components/molecules/createNewPostContent/index.d.ts +6 -2
- package/build/together/components/molecules/createNewPostContent/index.styled.d.ts +4 -0
- package/build/together/components/molecules/createNewPostContent/type.d.ts +4 -0
- package/build/together/components/molecules/createPostCommunity/index.d.ts +25 -0
- package/build/together/components/molecules/createPostCommunity/index.styled.d.ts +9 -0
- package/build/together/components/molecules/createPostCommunity/index.styles.d.ts +12 -0
- package/build/together/components/molecules/createPostDescription/index.d.ts +2 -1
- package/build/together/components/molecules/createPostPhotos/index.d.ts +7 -0
- package/build/together/components/molecules/createPostVideo/index.d.ts +8 -0
- package/build/together/components/molecules/createPostVideo/socialLinkPopup/index.d.ts +12 -0
- package/build/together/components/molecules/createPostVideo/socialLinkPopup/index.styled.d.ts +15 -0
- package/build/together/components/molecules/postPhotosReview/index.d.ts +8 -0
- package/build/together/components/molecules/postPhotosReview/index.styled.d.ts +5 -0
- package/build/together/components/molecules/postPhotosReview/index.styles.d.ts +12 -0
- package/build/together/components/molecules/postVideoReview/index.d.ts +10 -0
- package/build/together/components/molecules/postVideoReview/index.styled.d.ts +5 -0
- package/build/together/components/molecules/postVideoReview/index.styles.d.ts +12 -0
- package/build/together/components/organisms/cardPost/cardPostPopover.d.ts +1 -1
- package/build/together.js +53 -52
- package/build/togetherApiUtils.js +4 -4
- package/build/togetherAtoms.js +30 -30
- package/build/togetherComponentGlobalContext.js +4 -4
- package/build/togetherMolecules.js +48 -47
- package/build/togetherMoleculesCardAuthor.js +27 -27
- package/build/togetherMoleculesPostImagePreview.js +11 -11
- package/build/togetherMoleculesProfileDetail.js +37 -37
- package/build/togetherOrganisms.js +47 -47
- package/build/togetherRichTextEditor.js +17 -17
- package/build/togetherShareBox.js +10 -10
- package/build/{treePopoverMenu-4135e5cb.js → treePopoverMenu-c0bf689c.js} +18 -18
- package/build/{types-ee77bf59.js → types-2f8ee628.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-2173d365.js → useCategory-8d9a0e06.js} +5 -5
- package/build/{useHealthToolCache-8fd7bf92.js → useHealthToolCache-0a3bfe0f.js} +1 -1
- package/build/{useMantineLocale-234052de.js → useMantineLocale-fd4a8d94.js} +5 -5
- package/build/{usePlacesAutocomplete-0f7477ef.js → usePlacesAutocomplete-511227cc.js} +1 -1
- package/build/useTogetherAuthRequiredAction.js +9 -9
- package/build/{utils-93342687.js → utils-0a1343a8.js} +2 -2
- package/build/{utils-b072c91b.js → utils-a644087f.js} +3 -3
- package/build/{utils-61af8020.js → utils-ff95b95e.js} +2 -2
- package/build/vaccination.js +21 -21
- package/package.json +1 -1
- package/build/esm/index-fad75d62.js +0 -913
- package/build/index-6da374f3.js +0 -927
- /package/build/{BMI_BOYS.percentile.monthly-c09efa33.js → BMI_BOYS.percentile.monthly-54bee4f9.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-ef50b0f6.js → BMI_BOYS.percentile.weekly-26cbc55d.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-9c8d197d.js → BMI_BOYS.percentile.yearly-cc7e66e9.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-411cf7a2.js → BMI_BOYS.zscore.monthly-1af56e4d.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-8581710c.js → BMI_BOYS.zscore.weekly-7ebf95cf.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-a6c82356.js → BMI_BOYS.zscore.yearly-7e21fbe6.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-59c005a9.js → BMI_GIRLS.percentile.monthly-10d4a777.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-a68142d1.js → BMI_GIRLS.percentile.weekly-14599c39.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-e052180a.js → BMI_GIRLS.percentile.yearly-1059ee32.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-9cef049d.js → BMI_GIRLS.zscore.monthly-5a381a83.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-bbf4adf5.js → BMI_GIRLS.zscore.weekly-5b9af99c.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-d5bf9d4e.js → BMI_GIRLS.zscore.yearly-0c3b7bc8.js} +0 -0
- /package/build/{ChevronDown-fbafaed7.js → ChevronDown-631abac5.js} +0 -0
- /package/build/{Close-f39f0374.js → Close-4ccb725b.js} +0 -0
- /package/build/{Google-8d688c1d.js → Google-a3912181.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-f27ca68e.js → HEAD CIRCUM_BOYS.percentile.monthly-1efc4af9.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-07391ddb.js → HEAD CIRCUM_BOYS.percentile.weekly-59329e79.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-13f534e1.js → HEAD CIRCUM_BOYS.percentile.yearly-3b5ea097.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-e2ebe212.js → HEAD CIRCUM_BOYS.zscore.monthly-f7753005.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-f413f37c.js → HEAD CIRCUM_BOYS.zscore.weekly-bc996b94.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-4d96f947.js → HEAD CIRCUM_BOYS.zscore.yearly-38178d70.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-2fd46b6f.js → HEAD CIRCUM_GIRLS.percentile.monthly-be05b10f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-6eb33338.js → HEAD CIRCUM_GIRLS.percentile.weekly-5bc8286a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-0462deb7.js → HEAD CIRCUM_GIRLS.percentile.yearly-79ea368e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-76d6f310.js → HEAD CIRCUM_GIRLS.zscore.monthly-3e39e602.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-9fb77076.js → HEAD CIRCUM_GIRLS.zscore.weekly-52643232.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-6a05f1a7.js → HEAD CIRCUM_GIRLS.zscore.yearly-71cab9b7.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-065f56b9.js → HEIGHT_BOYS.percentile.monthly-debb4f9b.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-500ea40a.js → HEIGHT_BOYS.percentile.weekly-dee8eef5.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-e3a69d7d.js → HEIGHT_BOYS.percentile.yearly-b3ee6be8.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-b00ecfa5.js → HEIGHT_BOYS.zscore.monthly-f8719e1a.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-f5633da4.js → HEIGHT_BOYS.zscore.weekly-2d4cff5f.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-4f6423de.js → HEIGHT_BOYS.zscore.yearly-1deda9fa.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-46f228f1.js → HEIGHT_GIRLS.percentile.monthly-dee8df0c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-a4c00d92.js → HEIGHT_GIRLS.percentile.weekly-7d0f1bc3.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-84eaa7c1.js → HEIGHT_GIRLS.percentile.yearly-109db985.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-24df323c.js → HEIGHT_GIRLS.zscore.monthly-13f1500c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-463192bb.js → HEIGHT_GIRLS.zscore.weekly-7f69edd8.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-ddba7973.js → HEIGHT_GIRLS.zscore.yearly-9d9352fe.js} +0 -0
- /package/build/{Locale-7729f820.js → Locale-96dc68da.js} +0 -0
- /package/build/{Visible-d59d1865.js → Visible-28f93c50.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-2b40cb5a.js → WEIGHT_BOYS.percentile.monthly-03d60931.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-c5eb3a0a.js → WEIGHT_BOYS.percentile.weekly-a44c3932.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-36d11a43.js → WEIGHT_BOYS.percentile.yearly-6aa6081c.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-817857ec.js → WEIGHT_BOYS.zscore.monthly-957480c9.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-046b4d60.js → WEIGHT_BOYS.zscore.weekly-3a6b2f0f.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-8b824bb6.js → WEIGHT_BOYS.zscore.yearly-09cbaee2.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-3ba15cd9.js → WEIGHT_GIRLS.percentile.monthly-118f0a6a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-ba07938a.js → WEIGHT_GIRLS.percentile.weekly-50be2769.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-7a3bc369.js → WEIGHT_GIRLS.percentile.yearly-4dd5d3a4.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-026bf8ff.js → WEIGHT_GIRLS.zscore.monthly-497bf0d2.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-b3761c45.js → WEIGHT_GIRLS.zscore.weekly-2790c8b4.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-241642df.js → WEIGHT_GIRLS.zscore.yearly-8e3b346c.js} +0 -0
- /package/build/{animation-eea33b50.js → animation-a97af0b4.js} +0 -0
- /package/build/{constants-23150110.js → constants-62ae24f3.js} +0 -0
- /package/build/{constants-2a9ec4cd.js → constants-6e362bc4.js} +0 -0
- /package/build/{constants-e05edfd4.js → constants-e79299ac.js} +0 -0
- /package/build/{dataTransform-377a8abc.js → dataTransform-051ae298.js} +0 -0
- /package/build/{doctor-1e66ff11.js → doctor-82a60589.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-c33d5a51.js → BMI_BOYS.percentile.monthly-29d68e5a.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-2142f77b.js → BMI_BOYS.percentile.weekly-66d70c3d.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-6159ffb5.js → BMI_BOYS.percentile.yearly-754b8542.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-ada09181.js → BMI_BOYS.zscore.monthly-46822c5a.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-edc422ed.js → BMI_BOYS.zscore.weekly-e65f52d1.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-ae47e229.js → BMI_BOYS.zscore.yearly-f97fc005.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-37f28356.js → BMI_GIRLS.percentile.monthly-4a4da13c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-13e3215d.js → BMI_GIRLS.percentile.weekly-56bd8d32.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-6f7f31e6.js → BMI_GIRLS.percentile.yearly-432ccba5.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-eb7c31da.js → BMI_GIRLS.zscore.monthly-0ba81df9.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-13003bd8.js → BMI_GIRLS.zscore.weekly-f24fd86d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-619f74e2.js → BMI_GIRLS.zscore.yearly-ae49734c.js} +0 -0
- /package/build/esm/{ChevronDown-366f4c97.js → ChevronDown-4419a5d2.js} +0 -0
- /package/build/esm/{Close-6c262379.js → Close-253133ee.js} +0 -0
- /package/build/esm/{Google-002b53ae.js → Google-6cda4e80.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-3b62bf9a.js → HEAD CIRCUM_BOYS.percentile.monthly-a8b5c5e0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-d4738364.js → HEAD CIRCUM_BOYS.percentile.weekly-9bcdcdc2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-af36b0e0.js → HEAD CIRCUM_BOYS.percentile.yearly-4cb5776b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-1bae9d8f.js → HEAD CIRCUM_BOYS.zscore.monthly-a8bd9d83.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-73984bb0.js → HEAD CIRCUM_BOYS.zscore.weekly-167ff364.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-b4aac2ba.js → HEAD CIRCUM_BOYS.zscore.yearly-722bbf2a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-a144d28e.js → HEAD CIRCUM_GIRLS.percentile.monthly-a6fcfd45.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-af2964c5.js → HEAD CIRCUM_GIRLS.percentile.weekly-da5e1813.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-f6ddce97.js → HEAD CIRCUM_GIRLS.percentile.yearly-0c19a1e5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-69eaaad1.js → HEAD CIRCUM_GIRLS.zscore.monthly-1b92fd77.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-a7bceb85.js → HEAD CIRCUM_GIRLS.zscore.weekly-50bf84ad.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-46951905.js → HEAD CIRCUM_GIRLS.zscore.yearly-8084415d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-69b2d8bb.js → HEIGHT_BOYS.percentile.monthly-d3dcc98c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-15458540.js → HEIGHT_BOYS.percentile.weekly-90c36ad5.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-757eaf11.js → HEIGHT_BOYS.percentile.yearly-091b70cb.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-571040c1.js → HEIGHT_BOYS.zscore.monthly-c5a2eed6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-5e49391a.js → HEIGHT_BOYS.zscore.weekly-ff3636fd.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-b9fbd523.js → HEIGHT_BOYS.zscore.yearly-05363add.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-739c2a3d.js → HEIGHT_GIRLS.percentile.monthly-0865eab8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-a03af2e0.js → HEIGHT_GIRLS.percentile.weekly-bd32ce56.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-f0e03ef9.js → HEIGHT_GIRLS.percentile.yearly-53538217.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-8857382a.js → HEIGHT_GIRLS.zscore.monthly-808b7194.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-3bd4ab5f.js → HEIGHT_GIRLS.zscore.weekly-6cdc4e26.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-22a4334c.js → HEIGHT_GIRLS.zscore.yearly-21913e97.js} +0 -0
- /package/build/esm/{Locale-bb619c10.js → Locale-5495def8.js} +0 -0
- /package/build/esm/{Visible-f6f456d9.js → Visible-3209ee02.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-170c241a.js → WEIGHT_BOYS.percentile.monthly-780b1e5b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-77bed609.js → WEIGHT_BOYS.percentile.weekly-fc48f5ae.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-96a88255.js → WEIGHT_BOYS.percentile.yearly-3e58951c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-423f6fb4.js → WEIGHT_BOYS.zscore.monthly-5141c10f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-d0e58b42.js → WEIGHT_BOYS.zscore.weekly-6cb6efcd.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-8e8396c0.js → WEIGHT_BOYS.zscore.yearly-0e4cab50.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-98149138.js → WEIGHT_GIRLS.percentile.monthly-74b5256a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-fb6c3e90.js → WEIGHT_GIRLS.percentile.weekly-a51da84f.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-dfc9fe50.js → WEIGHT_GIRLS.percentile.yearly-f8594155.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-89c1f8a6.js → WEIGHT_GIRLS.zscore.monthly-1a75f8dc.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-2b2db79a.js → WEIGHT_GIRLS.zscore.weekly-1af7c305.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-25bc1891.js → WEIGHT_GIRLS.zscore.yearly-49908c8b.js} +0 -0
- /package/build/esm/{animation-b4b8edac.js → animation-9473ee26.js} +0 -0
- /package/build/esm/{constants-8e018757.js → constants-5f2dbe09.js} +0 -0
- /package/build/esm/{constants-abbe915a.js → constants-db3306e9.js} +0 -0
- /package/build/esm/{constants-cb5a7fd0.js → constants-fa4bebfd.js} +0 -0
- /package/build/esm/{dataTransform-581f339a.js → dataTransform-16405f88.js} +0 -0
- /package/build/esm/{doctor-c6cb7f68.js → doctor-0f4475ed.js} +0 -0
- /package/build/esm/{index-988d51c5.js → index-01cdc8aa.js} +0 -0
- /package/build/esm/{index-7be97cef.js → index-28662829.js} +0 -0
- /package/build/esm/{index-e42ffb21.js → index-336d80fc.js} +0 -0
- /package/build/esm/{index-29d81893.js → index-3a321f9c.js} +0 -0
- /package/build/esm/{index-ebfe74f0.js → index-47069a63.js} +0 -0
- /package/build/esm/{index-b617f14d.js → index-5fa98fe4.js} +0 -0
- /package/build/esm/{index-e942c2ea.js → index-6a95d83e.js} +0 -0
- /package/build/esm/{index-0cfc4fb4.js → index-d125f8cf.js} +0 -0
- /package/build/esm/{index-0a379e78.js → index-d8e00a78.js} +0 -0
- /package/build/esm/{localizeNumberFormat-d7d000f5.js → localizeNumberFormat-ff3c5bd2.js} +0 -0
- /package/build/esm/{normalizeLink-30ad82cf.js → normalizeLink-511be84c.js} +0 -0
- /package/build/esm/{other-3575130c.js → other-b2d18cf9.js} +0 -0
- /package/build/esm/{paths-b73fd913.js → paths-c71da839.js} +0 -0
- /package/build/esm/{translationsContext-1cd2e30a.js → translationsContext-91a20f7f.js} +0 -0
- /package/build/esm/{tslib.es6-52958ee8.js → tslib.es6-2e543b13.js} +0 -0
- /package/build/esm/{types-0df2293f.js → types-1df224fd.js} +0 -0
- /package/build/esm/{useIsInit-ab5fe172.js → useIsInit-768209be.js} +0 -0
- /package/build/esm/{useOutsideClick-d6e790bc.js → useOutsideClick-01c19ae6.js} +0 -0
- /package/build/esm/{useScrollbarSize-04abc36a.js → useScrollbarSize-1b1014bd.js} +0 -0
- /package/build/esm/{useUniqueId-550be503.js → useUniqueId-772dfaa1.js} +0 -0
- /package/build/esm/{utils-da43426c.js → utils-cbd22536.js} +0 -0
- /package/build/{index-31448e57.js → index-5cc64a69.js} +0 -0
- /package/build/{index-f720a8e7.js → index-821ff45d.js} +0 -0
- /package/build/{index-33986637.js → index-a78e43f5.js} +0 -0
- /package/build/{index-57b22ff5.js → index-a8fe595c.js} +0 -0
- /package/build/{index-0a95712f.js → index-b5256d64.js} +0 -0
- /package/build/{index-943be1e0.js → index-e1b256c0.js} +0 -0
- /package/build/{index-152b5d6d.js → index-e82aa39d.js} +0 -0
- /package/build/{index-bdcc04ee.js → index-f27b6a50.js} +0 -0
- /package/build/{index-be852417.js → index-f889bd32.js} +0 -0
- /package/build/{localizeNumberFormat-29cc719b.js → localizeNumberFormat-1a04cfd4.js} +0 -0
- /package/build/{normalizeLink-4d1d066d.js → normalizeLink-4fa661a6.js} +0 -0
- /package/build/{other-a38f566b.js → other-f85ced39.js} +0 -0
- /package/build/{paths-a1512163.js → paths-9631a764.js} +0 -0
- /package/build/{translationsContext-4dc20069.js → translationsContext-fe406087.js} +0 -0
- /package/build/{tslib.es6-e8964004.js → tslib.es6-73bc9f1c.js} +0 -0
- /package/build/{types-9ea371d5.js → types-b76a8fbd.js} +0 -0
- /package/build/{useIsInit-accb74ec.js → useIsInit-975ab48f.js} +0 -0
- /package/build/{useOutsideClick-b892ea47.js → useOutsideClick-b690477a.js} +0 -0
- /package/build/{useScrollbarSize-e3d9da0b.js → useScrollbarSize-a4cb3884.js} +0 -0
- /package/build/{useUniqueId-707f278a.js → useUniqueId-aa92b3fb.js} +0 -0
- /package/build/{utils-2f182098.js → utils-429b8e78.js} +0 -0
|
@@ -1,913 +0,0 @@
|
|
|
1
|
-
import { a as __awaiter, _ as __rest } from './tslib.es6-52958ee8.js';
|
|
2
|
-
import React__default, { useState, useRef, useEffect, useCallback, useContext, useMemo } from 'react';
|
|
3
|
-
import { Info, Ask } from '@hhgtech/icons/other';
|
|
4
|
-
import { Checkbox, useMantineTheme, Popover } from '@mantine/core';
|
|
5
|
-
import { D as Dropdown } from './index-7be97cef.js';
|
|
6
|
-
import { u as useTranslations } from './index-a064b97a.js';
|
|
7
|
-
import innertext from 'innertext';
|
|
8
|
-
import { theme } from './miscTheme.js';
|
|
9
|
-
import './index-ae0c384e.js';
|
|
10
|
-
import '@mantine/dates';
|
|
11
|
-
import './index-79b55d37.js';
|
|
12
|
-
import './index-3fddc4d8.js';
|
|
13
|
-
import { C as CommonGAssets } from './index-988d51c5.js';
|
|
14
|
-
import './useMantineLocale-6d8b743c.js';
|
|
15
|
-
import { T as Text } from './index-e014aa13.js';
|
|
16
|
-
import { B as Button } from './index-76ce4ed7.js';
|
|
17
|
-
import './index.styles-08e39b53.js';
|
|
18
|
-
import '@mantine/hooks';
|
|
19
|
-
import { M as MediaQueries } from './utils-da43426c.js';
|
|
20
|
-
import './other-3575130c.js';
|
|
21
|
-
import './index-f6ef9854.js';
|
|
22
|
-
import { T as TogetherComponentGlobalContext, c as callApi, d as getApiPath, b as callApiWithAuth } from './utils-5a12e69e.js';
|
|
23
|
-
import { u as useImagePicker, d as IconCloseCircle, g as getDefaultFailNoti, e as getPostFormData, f as editPost, h as createPost } from './index-f2b11138.js';
|
|
24
|
-
import styled from '@emotion/styled';
|
|
25
|
-
import { B as BtnChoice } from './index-ef8af124.js';
|
|
26
|
-
import { c as formatTopic, b as formatPost } from './dataTransform-a19ddc8d.js';
|
|
27
|
-
import { M as MAX_IMAGE_UPLOADS } from './constants-abbe915a.js';
|
|
28
|
-
import { h as highlightBadWords, d as decodeMention, a as decodePostUrl } from './post-5d0b96db.js';
|
|
29
|
-
import { S as StyledCreatePostDescription, R as RichTextEditor } from './editor-d7addd70.js';
|
|
30
|
-
import { C as CardLink } from './index-f0bf0eed.js';
|
|
31
|
-
import { L as Loading } from './index-4eb0527a.js';
|
|
32
|
-
import { I as Input } from './index-1880f8a3.js';
|
|
33
|
-
import debounce from 'lodash/debounce';
|
|
34
|
-
import ContentEditable from 'react-contenteditable';
|
|
35
|
-
import { PATHS } from './togetherApiPaths.js';
|
|
36
|
-
import { Close, Check } from '@hhgtech/icons/core';
|
|
37
|
-
|
|
38
|
-
const StyledCreateNewPost = styled.div `
|
|
39
|
-
position: relative;
|
|
40
|
-
display: flex;
|
|
41
|
-
height: 100%;
|
|
42
|
-
flex-direction: column;
|
|
43
|
-
padding: 16px 24px;
|
|
44
|
-
|
|
45
|
-
.input-group-container {
|
|
46
|
-
flex: 1;
|
|
47
|
-
padding-right: 2px;
|
|
48
|
-
padding-left: 2px;
|
|
49
|
-
margin-bottom: 0.5rem;
|
|
50
|
-
-ms-overflow-style: none; /* IE and Edge */
|
|
51
|
-
overflow-y: auto;
|
|
52
|
-
scrollbar-width: none; /* Firefox */
|
|
53
|
-
&::-webkit-scrollbar {
|
|
54
|
-
display: none;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.input-group {
|
|
59
|
-
:not(:last-child) {
|
|
60
|
-
margin-bottom: 0.6rem;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
input:focus,
|
|
64
|
-
textarea:focus,
|
|
65
|
-
[contenteditable='true'] {
|
|
66
|
-
outline: none;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
label {
|
|
70
|
-
margin-bottom: 5px;
|
|
71
|
-
color: ${theme.colors.gray600};
|
|
72
|
-
/* font-family: 'Open Sans', sans-serif; */
|
|
73
|
-
font-size: 13px;
|
|
74
|
-
font-weight: bold;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.input-group-label {
|
|
78
|
-
margin-bottom: 5px;
|
|
79
|
-
color: ${theme.colors.gray600};
|
|
80
|
-
/* font-family: 'Open Sans', sans-serif; */
|
|
81
|
-
font-size: 13px;
|
|
82
|
-
font-weight: bold;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.input-notification {
|
|
86
|
-
display: flex;
|
|
87
|
-
|
|
88
|
-
& > img {
|
|
89
|
-
width: 16px;
|
|
90
|
-
height: 16px;
|
|
91
|
-
margin-top: 1.5px;
|
|
92
|
-
margin-right: 8px;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.tag-list {
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.warning {
|
|
101
|
-
margin-top: 16px;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.submit-btn {
|
|
105
|
-
width: 100%;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.switch-label {
|
|
109
|
-
display: flex;
|
|
110
|
-
align-items: center;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.swich-input-group {
|
|
114
|
-
padding: 12px 16px;
|
|
115
|
-
border-radius: 8px;
|
|
116
|
-
background: ${theme.colors.neutral50};
|
|
117
|
-
|
|
118
|
-
&.askdoctor-switch {
|
|
119
|
-
background: ${theme.colors.primary50};
|
|
120
|
-
&.mb-color {
|
|
121
|
-
background: ${theme.mbColors.tonePink};
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.mantine-Switch-labelWrapper {
|
|
126
|
-
flex-grow: 1;
|
|
127
|
-
}
|
|
128
|
-
.mantine-Checkbox-body {
|
|
129
|
-
display: flex;
|
|
130
|
-
width: 100%;
|
|
131
|
-
align-items: center;
|
|
132
|
-
justify-content: space-between;
|
|
133
|
-
}
|
|
134
|
-
.mantine-Switch-track {
|
|
135
|
-
margin-bottom: 0;
|
|
136
|
-
}
|
|
137
|
-
.label-txt {
|
|
138
|
-
font-weight: normal;
|
|
139
|
-
font-size: 14px;
|
|
140
|
-
color: ${theme.colors.gray800};
|
|
141
|
-
margin-left: 10px;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
`;
|
|
145
|
-
const StyledIsQuestion = styled.div `
|
|
146
|
-
display: flex;
|
|
147
|
-
width: 100%;
|
|
148
|
-
align-items: center;
|
|
149
|
-
justify-content: space-between;
|
|
150
|
-
padding: 12px 16px;
|
|
151
|
-
border-radius: 8px;
|
|
152
|
-
background: ${theme.colors.primary50};
|
|
153
|
-
|
|
154
|
-
&[data-is-marry-baby='true'] {
|
|
155
|
-
background: ${theme.mbColors.tonePink};
|
|
156
|
-
}
|
|
157
|
-
.switch-label {
|
|
158
|
-
display: flex;
|
|
159
|
-
align-items: center;
|
|
160
|
-
gap: 12px;
|
|
161
|
-
}
|
|
162
|
-
margin-bottom: 12px;
|
|
163
|
-
`;
|
|
164
|
-
const StyledError = styled.div `
|
|
165
|
-
margin-bottom: 12px;
|
|
166
|
-
color: ${theme.colors.red700};
|
|
167
|
-
svg {
|
|
168
|
-
margin-right: 5px;
|
|
169
|
-
}
|
|
170
|
-
svg,
|
|
171
|
-
span {
|
|
172
|
-
vertical-align: middle;
|
|
173
|
-
}
|
|
174
|
-
`;
|
|
175
|
-
styled.div `
|
|
176
|
-
// max-width: 680px;
|
|
177
|
-
// margin: 0 auto;
|
|
178
|
-
// padding: 0 24px;
|
|
179
|
-
|
|
180
|
-
${MediaQueries.mbDown} {
|
|
181
|
-
padding: 0 16px;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.swich-input-group {
|
|
185
|
-
padding: 12px 16px;
|
|
186
|
-
border-radius: 8px;
|
|
187
|
-
background: ${theme.colors.neutral50};
|
|
188
|
-
|
|
189
|
-
&.askdoctor-switch {
|
|
190
|
-
background: ${theme.colors.blue50};
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.switch-label {
|
|
194
|
-
display: flex;
|
|
195
|
-
align-items: center;
|
|
196
|
-
}
|
|
197
|
-
.mantine-Switch-labelWrapper {
|
|
198
|
-
flex-grow: 1;
|
|
199
|
-
}
|
|
200
|
-
.mantine-Checkbox-body {
|
|
201
|
-
display: flex;
|
|
202
|
-
width: 100%;
|
|
203
|
-
align-items: center;
|
|
204
|
-
justify-content: space-between;
|
|
205
|
-
}
|
|
206
|
-
.mantine-Switch-track {
|
|
207
|
-
margin-bottom: 0;
|
|
208
|
-
}
|
|
209
|
-
.label-txt {
|
|
210
|
-
font-weight: normal;
|
|
211
|
-
font-size: 14px;
|
|
212
|
-
color: ${theme.colors.gray800};
|
|
213
|
-
margin-left: 14px;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
`;
|
|
217
|
-
styled.div `
|
|
218
|
-
display: flex;
|
|
219
|
-
gap: 12px;
|
|
220
|
-
.avatar {
|
|
221
|
-
width: 40px;
|
|
222
|
-
height: 40px;
|
|
223
|
-
border-radius: 100%;
|
|
224
|
-
|
|
225
|
-
img {
|
|
226
|
-
border-radius: 100%;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.author-avatar {
|
|
230
|
-
.col-left {
|
|
231
|
-
display: none;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.post-action-form {
|
|
237
|
-
display: flex;
|
|
238
|
-
flex-direction: column;
|
|
239
|
-
gap: 4px;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
.post-action-by {
|
|
243
|
-
color: ${theme.colors.gray800};
|
|
244
|
-
font-size: 16px;
|
|
245
|
-
font-weight: 600;
|
|
246
|
-
line-height: 24px;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
.post-action-result {
|
|
250
|
-
display: flex;
|
|
251
|
-
position: relative;
|
|
252
|
-
&:after {
|
|
253
|
-
content: '';
|
|
254
|
-
display: inline-block;
|
|
255
|
-
width: 5px;
|
|
256
|
-
height: 5px;
|
|
257
|
-
background-color: ${theme.colors.error};
|
|
258
|
-
border-radius: 100%;
|
|
259
|
-
position: absolute;
|
|
260
|
-
right: 7px;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
.dropdown-post-action {
|
|
265
|
-
background: ${theme.colors.white} !important;
|
|
266
|
-
border-radius: 2px;
|
|
267
|
-
border: 1px solid ${theme.colors.neutral200} !important;
|
|
268
|
-
|
|
269
|
-
> div {
|
|
270
|
-
padding: 3px 8px;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
span {
|
|
274
|
-
flex: 1;
|
|
275
|
-
color: ${theme.colors.gray600};
|
|
276
|
-
font-size: 12px;
|
|
277
|
-
font-weight: 600;
|
|
278
|
-
line-height: 18px;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
ul {
|
|
282
|
-
width: 130px;
|
|
283
|
-
li {
|
|
284
|
-
img {
|
|
285
|
-
flex: 0 0 16px;
|
|
286
|
-
width: 16px;
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
`;
|
|
292
|
-
|
|
293
|
-
var img$1 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='17' fill='none'%3e%3cpath fill='%232D87F3' d='M8 14.5a6 6 0 1 0 0-12 6 6 0 0 0 0 12'/%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 5.5v3M8 11.5h.007'/%3e%3c/svg%3e";
|
|
294
|
-
var IconAlertCirclePrimary = img$1;
|
|
295
|
-
|
|
296
|
-
var img = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='17' fill='none'%3e%3cpath fill='%23FE921D' d='M8 14.5a6 6 0 1 0 0-12 6 6 0 0 0 0 12'/%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 5.5v3M8 11.5h.007'/%3e%3c/svg%3e";
|
|
297
|
-
var IconAlertCircleWarning = img;
|
|
298
|
-
|
|
299
|
-
const CreatePostDescription = ({ className, style, bannedWords = [], value, onChange, onPreviewUrlChange, onInvalidUrlsChange, onImageFilesChange, imageFiles: imageFilesProp, isReplying, }) => {
|
|
300
|
-
const { t } = useTranslations();
|
|
301
|
-
const [previewUrl, setPreviewUrl] = useState(null);
|
|
302
|
-
const imagePicker = useRef(null);
|
|
303
|
-
const { onSelectImages, onRemoveImage, imageSrcs,
|
|
304
|
-
// imageFiles,
|
|
305
|
-
} = useImagePicker(imageFilesProp, onImageFilesChange);
|
|
306
|
-
useEffect(() => {
|
|
307
|
-
if (onPreviewUrlChange) {
|
|
308
|
-
if (previewUrl === null || previewUrl === void 0 ? void 0 : previewUrl.url)
|
|
309
|
-
onPreviewUrlChange({
|
|
310
|
-
title: previewUrl.title || '',
|
|
311
|
-
url: previewUrl.url || '',
|
|
312
|
-
image: previewUrl.image || '',
|
|
313
|
-
description: previewUrl.description || '',
|
|
314
|
-
});
|
|
315
|
-
else
|
|
316
|
-
onPreviewUrlChange(null);
|
|
317
|
-
}
|
|
318
|
-
}, [previewUrl]);
|
|
319
|
-
return (React__default.createElement(StyledCreatePostDescription, { className: className, style: style },
|
|
320
|
-
React__default.createElement(Text, { size: "p4", className: "description-label" }, t('createPost.popup.description')),
|
|
321
|
-
React__default.createElement("div", { className: `textarea-control` },
|
|
322
|
-
React__default.createElement("div", { className: "textarea-wrapper" },
|
|
323
|
-
React__default.createElement(RichTextEditor, { html: value || '', onChange: onChange, bannedWords: bannedWords, onImagePickerClick: () => { var _a; return (_a = imagePicker.current) === null || _a === void 0 ? void 0 : _a.click(); }, onPreviewUrlChange: setPreviewUrl, onInvalidUrlsChange: onInvalidUrlsChange, isReplying: isReplying }))),
|
|
324
|
-
React__default.createElement(Text, { size: "p4", className: "count-string" },
|
|
325
|
-
t('character'),
|
|
326
|
-
": ",
|
|
327
|
-
innertext(value || '').length),
|
|
328
|
-
(!imageSrcs || imageSrcs.length === 0) && previewUrl && (React__default.createElement("div", { className: "link-preview-wrapper" }, previewUrl.isFetching ? (React__default.createElement(Loading, null)) : (React__default.createElement(React__default.Fragment, null,
|
|
329
|
-
React__default.createElement(CardLink, { title: previewUrl.title, url: previewUrl.url || '#', image: previewUrl.image, noRefetch: true }),
|
|
330
|
-
React__default.createElement("img", { src: IconCloseCircle, className: "icon-close", onClick: () => setPreviewUrl(null), loading: "lazy" }))))),
|
|
331
|
-
React__default.createElement("input", { ref: imagePicker, type: "file", accept: "image/png, image/gif, image/jpeg", multiple: true, style: { display: 'none' }, onChange: onSelectImages }),
|
|
332
|
-
imageSrcs.length > MAX_IMAGE_UPLOADS ? (React__default.createElement("div", { className: "input-notification" },
|
|
333
|
-
React__default.createElement("img", { src: IconAlertCircleWarning, loading: "lazy" }),
|
|
334
|
-
React__default.createElement(Text, { size: "p4", color: theme.colors.alertWarning }, t(`createPost.popup.warningImage`)))) : null,
|
|
335
|
-
imageSrcs.length > 0 && (React__default.createElement("div", { className: "image-gallery" }, imageSrcs.map((src, i) => (React__default.createElement("div", { key: i, className: "image-item" },
|
|
336
|
-
React__default.createElement("img", { src: src, loading: "lazy" }),
|
|
337
|
-
React__default.createElement("img", { className: "close-btn", src: IconCloseCircle, onClick: () => onRemoveImage(i), loading: "lazy" }))))))));
|
|
338
|
-
};
|
|
339
|
-
|
|
340
|
-
const StyledCreatePostTitle = styled.div `
|
|
341
|
-
input:focus,
|
|
342
|
-
textarea:focus,
|
|
343
|
-
[contenteditable='true'] {
|
|
344
|
-
outline: none;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
.title-input {
|
|
348
|
-
overflow: hidden;
|
|
349
|
-
width: 100%;
|
|
350
|
-
padding: 12px 16px;
|
|
351
|
-
border: solid 1px #d9d9d9;
|
|
352
|
-
border-radius: ${theme.borderRadius};
|
|
353
|
-
font-size: 16px;
|
|
354
|
-
line-height: 1.2;
|
|
355
|
-
white-space: nowrap;
|
|
356
|
-
:focus {
|
|
357
|
-
border-color: ${theme.colors.primaryBase};
|
|
358
|
-
box-shadow: 0px 0px 2px 2px ${theme.colors.primary200};
|
|
359
|
-
}
|
|
360
|
-
br {
|
|
361
|
-
display: none;
|
|
362
|
-
}
|
|
363
|
-
* {
|
|
364
|
-
display: inline;
|
|
365
|
-
white-space: nowrap;
|
|
366
|
-
}
|
|
367
|
-
mocka {
|
|
368
|
-
padding: 2px 6px;
|
|
369
|
-
border-radius: 1rem;
|
|
370
|
-
&[data-error='true'] {
|
|
371
|
-
background-color: #ffeeee;
|
|
372
|
-
color: red;
|
|
373
|
-
text-decoration: underline;
|
|
374
|
-
font-style: bold;
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
ol,
|
|
378
|
-
ul {
|
|
379
|
-
padding-left: 1rem;
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
label {
|
|
384
|
-
display: block;
|
|
385
|
-
margin-bottom: 5px;
|
|
386
|
-
color: ${theme.colors.gray600};
|
|
387
|
-
font-size: 13px;
|
|
388
|
-
font-weight: bold;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
.count-string {
|
|
392
|
-
margin-top: 5px;
|
|
393
|
-
color: ${theme.colors.gray500};
|
|
394
|
-
font-size: 11px;
|
|
395
|
-
text-align: right;
|
|
396
|
-
}
|
|
397
|
-
`;
|
|
398
|
-
|
|
399
|
-
const TITLE_LIMIT = 120;
|
|
400
|
-
const inputModify = (value, opts) => {
|
|
401
|
-
if (!opts)
|
|
402
|
-
return value;
|
|
403
|
-
const { limit, bannedWords = [] } = opts;
|
|
404
|
-
const shorten = typeof limit === 'number' && limit >= 0 ? value.substring(0, limit) : value;
|
|
405
|
-
const processedValue = highlightBadWords(shorten, bannedWords);
|
|
406
|
-
return processedValue;
|
|
407
|
-
};
|
|
408
|
-
const CreatePostTitle = ({ className, style, bannedWords = [], value, onChange, }) => {
|
|
409
|
-
var _a;
|
|
410
|
-
const { t } = useTranslations();
|
|
411
|
-
const [titleValue, setTitleValue] = useState('');
|
|
412
|
-
const titleRef = useRef(null);
|
|
413
|
-
useEffect(() => {
|
|
414
|
-
if (titleRef.current) {
|
|
415
|
-
const pasteHandler = (e) => {
|
|
416
|
-
var _a;
|
|
417
|
-
e.preventDefault();
|
|
418
|
-
const text = (_a = e.clipboardData) === null || _a === void 0 ? void 0 : _a.getData('text/plain');
|
|
419
|
-
document.execCommand('insertHTML', false, text);
|
|
420
|
-
};
|
|
421
|
-
const contentDiv = titleRef.current;
|
|
422
|
-
contentDiv.addEventListener('paste', pasteHandler, {
|
|
423
|
-
passive: true,
|
|
424
|
-
});
|
|
425
|
-
return () => contentDiv.removeEventListener('paste', pasteHandler);
|
|
426
|
-
}
|
|
427
|
-
}, [titleRef]);
|
|
428
|
-
const bannedString = (bannedWords === null || bannedWords === void 0 ? void 0 : bannedWords.join(',')) || '';
|
|
429
|
-
useEffect(() => {
|
|
430
|
-
var _a;
|
|
431
|
-
if (bannedString) {
|
|
432
|
-
const titleText = (_a = titleRef.current) === null || _a === void 0 ? void 0 : _a.innerText;
|
|
433
|
-
if (titleText) {
|
|
434
|
-
const titleValueWithBanned = highlightBadWords(titleText, bannedWords);
|
|
435
|
-
if (titleValueWithBanned !== titleText) {
|
|
436
|
-
onChange && onChange(titleValueWithBanned);
|
|
437
|
-
setTitleValue(titleValueWithBanned);
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
}, [bannedString]);
|
|
442
|
-
const debounceInputModify = useCallback(debounce(() => {
|
|
443
|
-
if (titleRef.current) {
|
|
444
|
-
const shortenString = inputModify(titleRef.current.innerText, {
|
|
445
|
-
limit: TITLE_LIMIT,
|
|
446
|
-
bannedWords,
|
|
447
|
-
});
|
|
448
|
-
onChange && onChange(shortenString);
|
|
449
|
-
setTitleValue(shortenString);
|
|
450
|
-
}
|
|
451
|
-
}, 300), []);
|
|
452
|
-
useEffect(() => {
|
|
453
|
-
setTimeout(() => {
|
|
454
|
-
var _a;
|
|
455
|
-
(_a = titleRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
456
|
-
}, 500);
|
|
457
|
-
}, []);
|
|
458
|
-
return (React__default.createElement(StyledCreatePostTitle, { className: className, style: style },
|
|
459
|
-
React__default.createElement(Input, { name: "title", value: value || titleValue, size: "md", label: t('createPost.title'), CustomInput: React__default.createElement(ContentEditable, { innerRef: titleRef, html: value || titleValue, onChange: () => {
|
|
460
|
-
if (titleRef.current &&
|
|
461
|
-
titleRef.current.innerText !== (value || titleValue)) {
|
|
462
|
-
const initialValue = inputModify(titleRef.current.innerText, {
|
|
463
|
-
bannedWords,
|
|
464
|
-
});
|
|
465
|
-
onChange && onChange(initialValue);
|
|
466
|
-
setTitleValue(initialValue);
|
|
467
|
-
debounceInputModify();
|
|
468
|
-
}
|
|
469
|
-
}, className: "title-input" }) }),
|
|
470
|
-
React__default.createElement(Text, { size: "p4", className: "count-string" }, t('createPost.popup.wordCount', {
|
|
471
|
-
count: ((_a = titleRef.current) === null || _a === void 0 ? void 0 : _a.innerText.length) || 0,
|
|
472
|
-
max: TITLE_LIMIT,
|
|
473
|
-
}))));
|
|
474
|
-
};
|
|
475
|
-
|
|
476
|
-
const StyledTopicSelectList = styled.div `
|
|
477
|
-
display: flex;
|
|
478
|
-
width: 100%;
|
|
479
|
-
flex-wrap: wrap;
|
|
480
|
-
margin-top: 1rem;
|
|
481
|
-
|
|
482
|
-
.tag-item {
|
|
483
|
-
min-height: 32px;
|
|
484
|
-
padding: 5px 12px;
|
|
485
|
-
border: 1px solid ${theme.colors.neutral100};
|
|
486
|
-
margin-right: 1rem;
|
|
487
|
-
margin-bottom: 8px;
|
|
488
|
-
border-radius: 1rem;
|
|
489
|
-
color: ${theme.colors.gray800};
|
|
490
|
-
cursor: pointer;
|
|
491
|
-
font-size: 13px;
|
|
492
|
-
line-height: 22px;
|
|
493
|
-
transition: all 0.2s;
|
|
494
|
-
|
|
495
|
-
&.--active {
|
|
496
|
-
border-color: ${theme.colors.primary50};
|
|
497
|
-
background: ${theme.colors.primary50};
|
|
498
|
-
color: ${theme.colors.primaryBase};
|
|
499
|
-
}
|
|
500
|
-
&[data-disabled='true'] {
|
|
501
|
-
background: ${theme.colors.gray100};
|
|
502
|
-
color: ${theme.colors.gray800};
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
.topic-spinner {
|
|
506
|
-
margin-right: auto;
|
|
507
|
-
margin-left: auto;
|
|
508
|
-
& > button {
|
|
509
|
-
width: 24px;
|
|
510
|
-
height: 24px;
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
&[data-is-marrybaby='true'] {
|
|
514
|
-
.tag-item {
|
|
515
|
-
border-color: transparent;
|
|
516
|
-
background: #f3f3f3;
|
|
517
|
-
color: #3e3f58;
|
|
518
|
-
&.--active {
|
|
519
|
-
border-color: #b6cdff;
|
|
520
|
-
background: #e0e9fb;
|
|
521
|
-
color: #3e3f58;
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
`;
|
|
526
|
-
|
|
527
|
-
const TopicSelectList = ({ className, style, topics: topicsProp, communityId, onChange, isLoading, disabled, forceTopics, selectedTopics: selectedTopicsProp, noFetch, dataEventCategory, dataEventAction, dataEventLabel, }) => {
|
|
528
|
-
const { data: { locale, env: { isMarryBaby }, }, } = useContext(TogetherComponentGlobalContext);
|
|
529
|
-
const [topics, setTopics] = useState(topicsProp ? [...topicsProp] : []);
|
|
530
|
-
const [selectedTopics, setSelectedTopics] = useState(selectedTopicsProp ? [...selectedTopicsProp] : []);
|
|
531
|
-
const [isLoadingTopics, setIsLoadingTopics] = useState(false);
|
|
532
|
-
const topicsPropRef = useRef(topicsProp);
|
|
533
|
-
topicsPropRef.current = topicsProp;
|
|
534
|
-
useEffect(() => {
|
|
535
|
-
var _a;
|
|
536
|
-
if (communityId && !noFetch && !((_a = topicsPropRef.current) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
537
|
-
setTopics([]);
|
|
538
|
-
setIsLoadingTopics(true);
|
|
539
|
-
(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
540
|
-
var _b;
|
|
541
|
-
try {
|
|
542
|
-
const res = yield callApi(getApiPath(PATHS.TOPIC.LIST, {
|
|
543
|
-
communityId: communityId,
|
|
544
|
-
_locale: locale,
|
|
545
|
-
}), 'GET');
|
|
546
|
-
const topicRes = (_b = res === null || res === void 0 ? void 0 : res.data) === null || _b === void 0 ? void 0 : _b.topics;
|
|
547
|
-
if (Array.isArray(topicRes)) {
|
|
548
|
-
setTopics(() => (topicRes === null || topicRes === void 0 ? void 0 : topicRes.map(formatTopic).sort((t1, t2) => (t1.order || 0) - (t2.order || 0))) || []);
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
catch (e) {
|
|
552
|
-
console.log(e);
|
|
553
|
-
setIsLoadingTopics(false);
|
|
554
|
-
}
|
|
555
|
-
setIsLoadingTopics(false);
|
|
556
|
-
}))();
|
|
557
|
-
}
|
|
558
|
-
}, [communityId, noFetch]);
|
|
559
|
-
const topicsPropString = topicsProp === null || topicsProp === void 0 ? void 0 : topicsProp.map((t) => t.id).join('-');
|
|
560
|
-
const topicsStateString = topics === null || topics === void 0 ? void 0 : topics.map((t) => t.id).join('-');
|
|
561
|
-
const forceTopicsPropString = forceTopics === null || forceTopics === void 0 ? void 0 : forceTopics.map((t) => t.id).join('-');
|
|
562
|
-
useEffect(() => {
|
|
563
|
-
if (topicsProp &&
|
|
564
|
-
typeof topicsPropString !== 'undefined' &&
|
|
565
|
-
topicsPropString !== topicsStateString) {
|
|
566
|
-
setTopics(topicsProp);
|
|
567
|
-
}
|
|
568
|
-
}, [topicsProp, topicsPropString, topicsStateString]);
|
|
569
|
-
const topicsWithoutForced = useMemo(() => topics.filter((t) => !(forceTopics === null || forceTopics === void 0 ? void 0 : forceTopics.some((ft) => (ft.id && ft.id === t.id) ||
|
|
570
|
-
(ft.mappedCategoryId &&
|
|
571
|
-
ft.mappedCategoryId === t.mappedCategoryId)))), [topicsStateString, forceTopicsPropString]);
|
|
572
|
-
return (React__default.createElement(StyledTopicSelectList, { "data-is-marrybaby": isMarryBaby, className: className, style: style },
|
|
573
|
-
forceTopics.map((topic) => (React__default.createElement(TopicItem, { key: `${topic.id}-${topic.mappedCategoryId}`, topic: topic, disabled: true, selected: true, dataEventAction: dataEventAction, dataEventCategory: dataEventCategory, dataEventLabel: dataEventLabel }))),
|
|
574
|
-
topicsWithoutForced.map((topic) => (React__default.createElement(TopicItem, { key: `${topic.id}-${topic.mappedCategoryId}`, topic: topic, disabled: disabled, selected: (selectedTopicsProp || selectedTopics).some((t) => (t.id && t.id === topic.id) ||
|
|
575
|
-
(t.mappedCategoryId &&
|
|
576
|
-
t.mappedCategoryId === topic.mappedCategoryId)), onClick: () => {
|
|
577
|
-
const _selected = selectedTopicsProp || selectedTopics;
|
|
578
|
-
const foundIndex = _selected.findIndex((_selected) => (_selected.id && _selected.id === topic.id) ||
|
|
579
|
-
(_selected.mappedCategoryId &&
|
|
580
|
-
_selected.mappedCategoryId === topic.mappedCategoryId));
|
|
581
|
-
if (foundIndex !== -1) {
|
|
582
|
-
_selected.splice(foundIndex, 1);
|
|
583
|
-
}
|
|
584
|
-
else {
|
|
585
|
-
_selected.push(topic);
|
|
586
|
-
}
|
|
587
|
-
if (onChange && selectedTopicsProp) {
|
|
588
|
-
onChange(_selected.slice());
|
|
589
|
-
}
|
|
590
|
-
else {
|
|
591
|
-
onChange && onChange(_selected.slice());
|
|
592
|
-
setSelectedTopics(_selected.slice());
|
|
593
|
-
}
|
|
594
|
-
}, dataEventAction: dataEventAction, dataEventCategory: dataEventCategory, dataEventLabel: dataEventLabel }))),
|
|
595
|
-
(isLoading || isLoadingTopics) && React__default.createElement(Loading, { className: "topic-spinner" })));
|
|
596
|
-
};
|
|
597
|
-
const TopicItem = (_a) => {
|
|
598
|
-
var { topic, disabled, selected, onClick } = _a, rest = __rest(_a, ["topic", "disabled", "selected", "onClick"]);
|
|
599
|
-
return (React__default.createElement("div", Object.assign({ className: 'tag-item' + (selected ? ' --active' : ''), "data-disabled": disabled, onClick: !disabled ? onClick : undefined }, rest), topic.name));
|
|
600
|
-
};
|
|
601
|
-
|
|
602
|
-
const CreateNewPostContent = ({ className, style, onPostCreatedEdited, onClose, communities = [], forceSelectCommunity, forceSelectTopics, articleId, optionalTopic, editPostData, defaultCommunity, defaultTopics, noFetchTopic, hideTopicList, selectAskDoctor, showAskDoctorOptions, currentPageUrl, }) => {
|
|
603
|
-
const isInEditMode = !!(editPostData === null || editPostData === void 0 ? void 0 : editPostData.id);
|
|
604
|
-
const { data: { locale, env: { isMarryBaby }, }, action: { pushNotifications, sanitizeFunction }, } = useContext(TogetherComponentGlobalContext);
|
|
605
|
-
const { t } = useTranslations();
|
|
606
|
-
const [isAnonymous, setIsAnonymous] = useState(false);
|
|
607
|
-
const [isAskDoctor, setIsAskDoctor] = useState(selectAskDoctor);
|
|
608
|
-
const [showAskDoctorRequired, setShowAskDoctorRequired] = useState(false);
|
|
609
|
-
const [specialCharErr, setspecialCharErr] = useState(false);
|
|
610
|
-
const [isSubmitting, setIsSubmitting] = useState(false);
|
|
611
|
-
const [titleValue, setTitleValue] = useState('');
|
|
612
|
-
const [descriptionValue, setDescriptionValue] = useState('');
|
|
613
|
-
const [communityValue, setCommunityValue] = useState(forceSelectCommunity
|
|
614
|
-
? {
|
|
615
|
-
label: forceSelectCommunity.name,
|
|
616
|
-
value: `${forceSelectCommunity.id || ''}-${forceSelectCommunity.mappedCategoryId || ''}`,
|
|
617
|
-
}
|
|
618
|
-
: {
|
|
619
|
-
label: t('community.choose'),
|
|
620
|
-
value: '',
|
|
621
|
-
});
|
|
622
|
-
const [selectedTopics, setSelectedTopics] = useState([...forceSelectTopics] || []);
|
|
623
|
-
const [imageFiles, setImageFiles] = useState([]);
|
|
624
|
-
const [bannedWords, setBannedWords] = useState([]);
|
|
625
|
-
const currentCommunity = forceSelectCommunity ||
|
|
626
|
-
communities.find((c) => `${c.id || ''}-${c.mappedCategoryId || ''}` === communityValue.value);
|
|
627
|
-
const communitiesList = forceSelectCommunity
|
|
628
|
-
? [forceSelectCommunity]
|
|
629
|
-
: communities
|
|
630
|
-
.filter((c) => c.isActive)
|
|
631
|
-
.sort((a, b) => {
|
|
632
|
-
if (a.name > b.name)
|
|
633
|
-
return 1;
|
|
634
|
-
if (a.name < b.name)
|
|
635
|
-
return -1;
|
|
636
|
-
return 0;
|
|
637
|
-
});
|
|
638
|
-
const [previewUrl, setPreviewUrl] = useState(null);
|
|
639
|
-
const [invalidUrls, setInvalidUrls] = useState([]);
|
|
640
|
-
const isReadyToSubmit = titleValue &&
|
|
641
|
-
!specialCharErr &&
|
|
642
|
-
innertext(descriptionValue) &&
|
|
643
|
-
(optionalTopic || (!optionalTopic && selectedTopics.length > 0)) &&
|
|
644
|
-
currentCommunity &&
|
|
645
|
-
(!imageFiles || imageFiles.length <= MAX_IMAGE_UPLOADS) &&
|
|
646
|
-
!(invalidUrls === null || invalidUrls === void 0 ? void 0 : invalidUrls.length) &&
|
|
647
|
-
!isSubmitting;
|
|
648
|
-
// HANDLE etra action when OPEN AND CLOSE
|
|
649
|
-
useEffect(() => {
|
|
650
|
-
if (editPostData) {
|
|
651
|
-
const post = editPostData;
|
|
652
|
-
setTitleValue(post.title || '');
|
|
653
|
-
setDescriptionValue(decodeMention(decodePostUrl(post.description || '', 'edit'), post.mentions));
|
|
654
|
-
setCommunityValue({
|
|
655
|
-
label: post.community.name,
|
|
656
|
-
value: `${post.community.id || ''}-${post.community.mappedCategoryId || ''}`,
|
|
657
|
-
});
|
|
658
|
-
setSelectedTopics(post.topics || []);
|
|
659
|
-
setImageFiles(post.photos || []);
|
|
660
|
-
setIsAnonymous(!!post.isAnonymous || false);
|
|
661
|
-
setIsAskDoctor(!!post.isAskDoctor || false);
|
|
662
|
-
}
|
|
663
|
-
else {
|
|
664
|
-
if (defaultCommunity) {
|
|
665
|
-
setCommunityValue({
|
|
666
|
-
label: defaultCommunity.name,
|
|
667
|
-
value: `${defaultCommunity.id || ''}-${defaultCommunity.mappedCategoryId || ''}`,
|
|
668
|
-
});
|
|
669
|
-
}
|
|
670
|
-
if (defaultTopics) {
|
|
671
|
-
setSelectedTopics(defaultTopics);
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
}, []);
|
|
675
|
-
useEffect(() => {
|
|
676
|
-
setspecialCharErr(titleValue !== '' && !/[a-zA-Z]/.test(titleValue));
|
|
677
|
-
}, [titleValue]);
|
|
678
|
-
const onCreateEditSuccess = (res) => {
|
|
679
|
-
if (onPostCreatedEdited) {
|
|
680
|
-
onPostCreatedEdited(formatPost(res), isInEditMode);
|
|
681
|
-
}
|
|
682
|
-
onClose && onClose();
|
|
683
|
-
};
|
|
684
|
-
const submitPost = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
685
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
686
|
-
if (showAskDoctorOptions && typeof isAskDoctor === 'undefined') {
|
|
687
|
-
setShowAskDoctorRequired(true);
|
|
688
|
-
return false;
|
|
689
|
-
}
|
|
690
|
-
const bodyFormData = yield getPostFormData({
|
|
691
|
-
title: titleValue,
|
|
692
|
-
description: descriptionValue,
|
|
693
|
-
communityId: String((currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.id) || ''),
|
|
694
|
-
imageFiles,
|
|
695
|
-
previewUrl,
|
|
696
|
-
topicIds: selectedTopics === null || selectedTopics === void 0 ? void 0 : selectedTopics.map((topic) => String(topic.id || '')).filter(Boolean),
|
|
697
|
-
locale,
|
|
698
|
-
sanitizeFunction,
|
|
699
|
-
categoryCommunityId: String((currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.mappedCategoryId) || ''),
|
|
700
|
-
categoryTopicIds: selectedTopics === null || selectedTopics === void 0 ? void 0 : selectedTopics.map((topic) => String(topic.mappedCategoryId || '')).filter(Boolean),
|
|
701
|
-
isAnonymous: isAnonymous ? 1 : 0,
|
|
702
|
-
isAskDoctor: isAskDoctor ? 1 : 0,
|
|
703
|
-
});
|
|
704
|
-
if (articleId) {
|
|
705
|
-
bodyFormData.append('article_id', articleId);
|
|
706
|
-
}
|
|
707
|
-
let res;
|
|
708
|
-
if (isInEditMode) {
|
|
709
|
-
if (editPostData === null || editPostData === void 0 ? void 0 : editPostData.id) {
|
|
710
|
-
res = yield editPost({
|
|
711
|
-
id: editPostData.id,
|
|
712
|
-
formData: bodyFormData,
|
|
713
|
-
locale,
|
|
714
|
-
});
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
else {
|
|
718
|
-
res = yield createPost({
|
|
719
|
-
formData: bodyFormData,
|
|
720
|
-
locale,
|
|
721
|
-
isArticleComment: !(currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.id) && !!(currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.mappedCategoryId),
|
|
722
|
-
});
|
|
723
|
-
}
|
|
724
|
-
const resData = res === null || res === void 0 ? void 0 : res.data;
|
|
725
|
-
if ((resData === null || resData === void 0 ? void 0 : resData.id) && !((_b = (_a = res === null || res === void 0 ? void 0 : res.messages) === null || _a === void 0 ? void 0 : _a.moderation) === null || _b === void 0 ? void 0 : _b.type)) {
|
|
726
|
-
pushNotifications({
|
|
727
|
-
message: t('createPost.popup.success'),
|
|
728
|
-
type: 'success',
|
|
729
|
-
});
|
|
730
|
-
onCreateEditSuccess(resData);
|
|
731
|
-
}
|
|
732
|
-
else {
|
|
733
|
-
if (((_d = (_c = res === null || res === void 0 ? void 0 : res.messages) === null || _c === void 0 ? void 0 : _c.moderation) === null || _d === void 0 ? void 0 : _d.type) === 'banned') {
|
|
734
|
-
pushNotifications({
|
|
735
|
-
title: t('notification.post.blocked.title'),
|
|
736
|
-
message: t('notification.post.blocked.message'),
|
|
737
|
-
type: 'danger',
|
|
738
|
-
});
|
|
739
|
-
if (res.messages.moderation.words) {
|
|
740
|
-
setBannedWords(res.messages.moderation.words);
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
else if (((_f = (_e = res === null || res === void 0 ? void 0 : res.messages) === null || _e === void 0 ? void 0 : _e.moderation) === null || _f === void 0 ? void 0 : _f.type) === 'suspect') {
|
|
744
|
-
pushNotifications({
|
|
745
|
-
title: t('notification.post.suspect.title'),
|
|
746
|
-
message: t('notification.post.suspect.message'),
|
|
747
|
-
type: 'warning',
|
|
748
|
-
});
|
|
749
|
-
onClose && onClose();
|
|
750
|
-
}
|
|
751
|
-
else if ((_h = (_g = res === null || res === void 0 ? void 0 : res.messages) === null || _g === void 0 ? void 0 : _g.find) === null || _h === void 0 ? void 0 : _h.call(_g, (m) => { var _a; return !!((_a = m === null || m === void 0 ? void 0 : m.includes) === null || _a === void 0 ? void 0 : _a.call(m, 'suspend')); })) {
|
|
752
|
-
pushNotifications({
|
|
753
|
-
message: t('notification.suspend.message'),
|
|
754
|
-
type: 'danger',
|
|
755
|
-
});
|
|
756
|
-
onClose && onClose();
|
|
757
|
-
}
|
|
758
|
-
else {
|
|
759
|
-
pushNotifications({
|
|
760
|
-
message: ((_j = res === null || res === void 0 ? void 0 : res.messages) === null || _j === void 0 ? void 0 : _j[0]) || t('notification.failure'),
|
|
761
|
-
type: 'danger',
|
|
762
|
-
});
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
});
|
|
766
|
-
return (React__default.createElement(StyledCreateNewPost, { className: className, style: style },
|
|
767
|
-
React__default.createElement("div", { className: "input-group-container" },
|
|
768
|
-
React__default.createElement(CreatePostTitle, { className: "input-group", bannedWords: bannedWords, value: titleValue, onChange: setTitleValue }),
|
|
769
|
-
specialCharErr && (React__default.createElement(StyledError, null,
|
|
770
|
-
React__default.createElement(Info, { isSolid: true, color: theme.colors.red700, size: 14 }),
|
|
771
|
-
React__default.createElement(Text, { size: "p3", as: "span", color: theme.colors.red700 }, t('createPost.popup.specialCharErr')))),
|
|
772
|
-
React__default.createElement(CreatePostDescription, { className: "input-group", bannedWords: bannedWords, value: descriptionValue, onChange: setDescriptionValue, onPreviewUrlChange: setPreviewUrl, onInvalidUrlsChange: setInvalidUrls, onImageFilesChange: setImageFiles, imageFiles: imageFiles }),
|
|
773
|
-
showAskDoctorOptions && (React__default.createElement(StyledIsQuestion, { "data-is-marry-baby": isMarryBaby },
|
|
774
|
-
React__default.createElement("div", { className: "switch-label" },
|
|
775
|
-
React__default.createElement(Ask, { isMarryBaby: isMarryBaby, size: isMarryBaby ? 32 : 24, color: theme.colors.primaryBase, className: "label-icon" }),
|
|
776
|
-
React__default.createElement("span", { className: "label-txt" }, t('createPost.askDoctor'))),
|
|
777
|
-
React__default.createElement(BtnChoice, { value: isAskDoctor, choices: [
|
|
778
|
-
{
|
|
779
|
-
label: t('createPost.askDoctorChoice.yes'),
|
|
780
|
-
value: true,
|
|
781
|
-
dataEventCategory: 'Together',
|
|
782
|
-
dataEventAction: 'Write Post Click - Ask Doctor',
|
|
783
|
-
dataEventLabel: currentPageUrl,
|
|
784
|
-
},
|
|
785
|
-
{
|
|
786
|
-
label: t('createPost.askDoctorChoice.no'),
|
|
787
|
-
value: false,
|
|
788
|
-
},
|
|
789
|
-
], onChange: (v) => {
|
|
790
|
-
if (typeof v === 'boolean') {
|
|
791
|
-
setShowAskDoctorRequired(false);
|
|
792
|
-
setIsAskDoctor(v);
|
|
793
|
-
}
|
|
794
|
-
} }))),
|
|
795
|
-
showAskDoctorRequired && (React__default.createElement(StyledError, null,
|
|
796
|
-
React__default.createElement(Info, { isSolid: true, color: theme.colors.red700, size: 14 }),
|
|
797
|
-
React__default.createElement(Text, { size: "p3", as: "span", color: theme.colors.red700 }, t('createPost.message.askDoctorRequire')))),
|
|
798
|
-
React__default.createElement("div", { className: "input-group" },
|
|
799
|
-
React__default.createElement(Text, { size: "p4", className: "input-group-label" }, t('admin.community')),
|
|
800
|
-
React__default.createElement(Dropdown, { options: (communitiesList === null || communitiesList === void 0 ? void 0 : communitiesList.map((c) => ({
|
|
801
|
-
label: c.name,
|
|
802
|
-
value: `${c.id || ''}-${c.mappedCategoryId || ''}`,
|
|
803
|
-
}))) || [], id: "community-picker", placeholder: t('community.choose'), value: communityValue, dropdownLabelTrackingAttributes: {
|
|
804
|
-
'data-event-category': 'Together',
|
|
805
|
-
'data-event-action': 'Write Post Click - Choose Community/Topic',
|
|
806
|
-
'data-event-label': currentPageUrl,
|
|
807
|
-
}, onChange: (option) => {
|
|
808
|
-
setCommunityValue({
|
|
809
|
-
label: option.label,
|
|
810
|
-
value: String(option.value),
|
|
811
|
-
});
|
|
812
|
-
setSelectedTopics([]);
|
|
813
|
-
}, disabled: !!forceSelectCommunity }),
|
|
814
|
-
React__default.createElement(Text, { size: "sm", className: "warning", color: theme.colors.gray400 },
|
|
815
|
-
"* ",
|
|
816
|
-
t('commentPopup.warning.newPost'))),
|
|
817
|
-
!hideTopicList && (React__default.createElement("div", { className: "input-group" },
|
|
818
|
-
React__default.createElement(Text, { size: "p4", className: "input-group-label" }, t('tab.topic')),
|
|
819
|
-
React__default.createElement("div", { className: "input-notification" },
|
|
820
|
-
React__default.createElement("img", { src: currentCommunity
|
|
821
|
-
? IconAlertCirclePrimary
|
|
822
|
-
: IconAlertCircleWarning, loading: "lazy" }),
|
|
823
|
-
React__default.createElement(Text, { size: "base", color: theme.colors.gray500 }, t(currentCommunity
|
|
824
|
-
? 'createPost.popup.primary'
|
|
825
|
-
: 'createPost.popup.warning'))),
|
|
826
|
-
currentCommunity && (React__default.createElement(TopicSelectList, { className: "tag-list", communityId: currentCommunity.id, forceTopics: forceSelectTopics, onChange: setSelectedTopics, selectedTopics: selectedTopics, noFetch: noFetchTopic, dataEventCategory: "Together", dataEventAction: "Write Post Click - Choose Community/Topic", dataEventLabel: currentPageUrl }))))),
|
|
827
|
-
React__default.createElement("div", { className: "form-action" },
|
|
828
|
-
React__default.createElement("div", { className: "input-group" },
|
|
829
|
-
React__default.createElement(Checkbox, { className: "swich-input-group", labelPosition: "left", name: "PostAnonymous", checked: isAnonymous, color: isMarryBaby ? 'pink' : undefined, "data-event-category": "Together", "data-event-action": "Write Post Click - Incognito", "data-event-label": currentPageUrl, label: React__default.createElement("div", { className: "switch-label" },
|
|
830
|
-
React__default.createElement("img", { className: "label-icon", src: CommonGAssets.getAssetPath('anomyous-avatar.svg'), alt: "anomyous avatar", style: { marginRight: '10px', width: '24px' }, loading: "lazy" }),
|
|
831
|
-
React__default.createElement("span", { className: "label-txt" }, t('createPost.postAnonymous'))), value: "Post Anonymous", onChange: (event) => setIsAnonymous(event.currentTarget.checked), styles: {
|
|
832
|
-
body: {
|
|
833
|
-
display: 'flex',
|
|
834
|
-
width: '100%',
|
|
835
|
-
justifyContent: 'space-between',
|
|
836
|
-
alignItems: 'center',
|
|
837
|
-
},
|
|
838
|
-
label: {
|
|
839
|
-
display: 'flex',
|
|
840
|
-
alignItems: 'center',
|
|
841
|
-
},
|
|
842
|
-
} })),
|
|
843
|
-
React__default.createElement("div", { className: "input-group" },
|
|
844
|
-
React__default.createElement(Button, { className: "submit-btn pointer-event-child-none", size: "lg", "data-event-category": "Ask Doctor", "data-event-action": "Submit Question", "data-event-label": window.location.href, onClick: () => __awaiter(void 0, void 0, void 0, function* () {
|
|
845
|
-
if (isReadyToSubmit && !isSubmitting) {
|
|
846
|
-
setIsSubmitting(true);
|
|
847
|
-
try {
|
|
848
|
-
yield submitPost();
|
|
849
|
-
}
|
|
850
|
-
catch (e) {
|
|
851
|
-
console.error(e);
|
|
852
|
-
pushNotifications(getDefaultFailNoti(t));
|
|
853
|
-
}
|
|
854
|
-
setIsSubmitting(false);
|
|
855
|
-
}
|
|
856
|
-
}), disabled: !isReadyToSubmit, loading: isSubmitting }, t('createPost.popup.submit'))))));
|
|
857
|
-
};
|
|
858
|
-
|
|
859
|
-
var styles = {"skipBtn":"KsWg8i6","alertHeading":"_9tS0EUN","alertDesc":"kyyRKlb","alertAction":"-Uqqka-"};
|
|
860
|
-
|
|
861
|
-
const SkipQuestionOfExpertBtn = (_a) => {
|
|
862
|
-
var { post, onSkip, btnText, currentPageUrl } = _a, rest = __rest(_a, ["post", "onSkip", "btnText", "currentPageUrl"]);
|
|
863
|
-
const { t } = useTranslations();
|
|
864
|
-
const { data: { locale }, action: { pushNotifications }, } = useContext(TogetherComponentGlobalContext);
|
|
865
|
-
const [showAlert, setShowAlert] = useState(false);
|
|
866
|
-
const [loading, setLoading] = useState(false);
|
|
867
|
-
const _theme = useMantineTheme();
|
|
868
|
-
const handleSkip = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
869
|
-
var _b;
|
|
870
|
-
setLoading(true);
|
|
871
|
-
const res = yield callApiWithAuth(getApiPath(PATHS.USER.SKIP_QUESTION, {
|
|
872
|
-
_locale: locale,
|
|
873
|
-
id: post === null || post === void 0 ? void 0 : post.id,
|
|
874
|
-
}), 'PUT');
|
|
875
|
-
if ((res === null || res === void 0 ? void 0 : res.status) === 1) {
|
|
876
|
-
onSkip === null || onSkip === void 0 ? void 0 : onSkip({ id: (post === null || post === void 0 ? void 0 : post.id) || '', communityId: ((_b = post === null || post === void 0 ? void 0 : post.community) === null || _b === void 0 ? void 0 : _b.id) || '' });
|
|
877
|
-
setShowAlert(false);
|
|
878
|
-
pushNotifications({
|
|
879
|
-
title: '',
|
|
880
|
-
message: 'Skip success',
|
|
881
|
-
type: 'success',
|
|
882
|
-
});
|
|
883
|
-
}
|
|
884
|
-
else {
|
|
885
|
-
pushNotifications({
|
|
886
|
-
title: '',
|
|
887
|
-
message: res === null || res === void 0 ? void 0 : res.messages,
|
|
888
|
-
type: 'danger',
|
|
889
|
-
});
|
|
890
|
-
}
|
|
891
|
-
setLoading(false);
|
|
892
|
-
}), []);
|
|
893
|
-
return (React__default.createElement(Popover, { width: 327, withArrow: true, shadow: "md", opened: showAlert },
|
|
894
|
-
React__default.createElement(Popover.Target, null,
|
|
895
|
-
React__default.createElement("div", Object.assign({ className: `${styles.skipBtn} ${(rest === null || rest === void 0 ? void 0 : rest.className) || ''}`, onClick: () => setShowAlert(true) }, rest), btnText || t('profilePanel.questionNotClear'))),
|
|
896
|
-
React__default.createElement(Popover.Dropdown, null,
|
|
897
|
-
React__default.createElement("div", null,
|
|
898
|
-
React__default.createElement("div", { className: styles.alertHeading }, t('profilePanel.skipQuestion.heading')),
|
|
899
|
-
React__default.createElement("div", { className: styles.alertDesc }, t('profilePanel.skipQuestion.content')),
|
|
900
|
-
React__default.createElement("div", { className: styles.alertAction },
|
|
901
|
-
React__default.createElement(Button, { size: "md", variant: "secondary", leftIcon: React__default.createElement(Close, { color: _theme.fn.primaryColor(), size: 24 }), onClick: () => setShowAlert(false), styles: () => ({
|
|
902
|
-
leftIcon: {
|
|
903
|
-
marginRight: 0,
|
|
904
|
-
},
|
|
905
|
-
}) }),
|
|
906
|
-
React__default.createElement(Button, { variant: "primary", size: "md", leftIcon: React__default.createElement(Check, { color: 'white', size: 24 }), onClick: handleSkip, loading: loading, "data-event-category": "Together", "data-event-action": "Unclear Question Click", "data-event-label": currentPageUrl, styles: () => ({
|
|
907
|
-
leftIcon: {
|
|
908
|
-
marginRight: 0,
|
|
909
|
-
},
|
|
910
|
-
}) }))))));
|
|
911
|
-
};
|
|
912
|
-
|
|
913
|
-
export { CreateNewPostContent as C, SkipQuestionOfExpertBtn as S, TopicSelectList as T, CreatePostDescription as a, CreatePostTitle as b };
|