@hhgtech/hhg-components 1.29.396 → 1.29.397-beta-1
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/{InputDate-87c0ebb8.js → InputDate-5331c552.js} +17 -7
- package/build/{LastPeriod-fea79cc1.js → LastPeriod-64176202.js} +1 -1
- package/build/{MobileBottomNavigationIcon-6033022a.js → MobileBottomNavigationIcon-1277136e.js} +3 -3
- package/build/{Spinner-6fc329d5.js → Spinner-65a7a5d8.js} +1 -1
- package/build/{WhatsApp-c66b98f0.js → WhatsApp-008ac3cb.js} +1 -1
- package/build/adapters.js +19 -19
- package/build/atoms.js +48 -48
- 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/atoms/drawerComponent/index.d.ts +7 -0
- package/build/components.js +97 -97
- package/build/{constants-5aaf7ea1.js → constants-b3d74044.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-adb66af1.js → core-48737d3c.js} +1 -1
- package/build/{dataTransform-f81e2533.js → dataTransform-fd6f52e7.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-16ae9ec5.js → editor-b8de4697.js} +11 -11
- 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/{InputDate-95582cb9.js → InputDate-c206ae02.js} +17 -7
- package/build/esm/{LastPeriod-6bd7ad93.js → LastPeriod-6759bed7.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-b87f8b35.js → MobileBottomNavigationIcon-e3386b67.js} +3 -3
- package/build/esm/{Spinner-a9620d7f.js → Spinner-f0747302.js} +1 -1
- package/build/esm/{WhatsApp-9e19b7fb.js → WhatsApp-8f647b91.js} +1 -1
- package/build/esm/adapters.js +19 -19
- package/build/esm/atoms.js +48 -48
- 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/atoms/drawerComponent/index.d.ts +7 -0
- package/build/esm/components.js +97 -97
- package/build/esm/{constants-a5b1bd3d.js → constants-5554e8fb.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-b54de4ea.js → core-a98d7b49.js} +1 -1
- package/build/esm/{dataTransform-192c6c28.js → dataTransform-c15abb49.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-c3bfd985.js → editor-d97a9993.js} +11 -11
- 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/footer.js +21 -21
- package/build/esm/gAssets.js +2 -2
- package/build/esm/{healthTools-4f489b7e.js → healthTools-5c570da4.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +18 -18
- package/build/esm/healthToolsForm.js +33 -33
- package/build/esm/hooks.js +13 -13
- package/build/esm/i18n/translationKeys.d.ts +1 -1
- package/build/esm/i18n-values/en-PH.js +2 -1
- package/build/esm/i18n-values/hi-IN.js +2 -1
- package/build/esm/i18n-values/id-ID.js +4 -3
- package/build/esm/i18n-values/km-KH.js +2 -1
- package/build/esm/i18n-values/ms-MY.js +2 -1
- package/build/esm/i18n-values/my-MM.js +4 -3
- package/build/esm/i18n-values/th-TH.js +4 -3
- package/build/esm/i18n-values/tl-PH.js +2 -1
- package/build/esm/i18n-values/vi-VN.js +2 -1
- package/build/esm/i18n-values/vi-VN_MB.js +2 -1
- package/build/esm/i18n-values/zh-CN.js +2 -1
- package/build/esm/i18n-values/zh-TW.js +2 -1
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-df117190.js → index-0e477708.js} +2 -2
- package/build/esm/{index-47f3dddb.js → index-1474a156.js} +17 -17
- package/build/esm/{index-5f64e4d5.js → index-1500f21b.js} +2 -2
- package/build/esm/{index-cb56f721.js → index-179a99bd.js} +6 -6
- package/build/esm/{index-376d494b.js → index-21ea161d.js} +15 -15
- package/build/esm/{index-2b657776.js → index-2a74af5d.js} +18 -18
- package/build/esm/{index-aacbc3ef.js → index-2ba53293.js} +3 -3
- package/build/esm/{index-fb95233f.js → index-2cc44301.js} +13 -13
- package/build/esm/{index-608aa404.js → index-3122cd80.js} +10 -10
- package/build/esm/{index-670e69cb.js → index-43b60610.js} +2 -2
- package/build/esm/{index-f122e041.js → index-44f0ae43.js} +17 -17
- package/build/esm/{index-3851a867.js → index-45a645d6.js} +1 -1
- package/build/esm/{index-496904b6.js → index-470e09a9.js} +25 -25
- package/build/esm/{index-4f901e4d.js → index-489b566e.js} +1 -1
- package/build/esm/{index-f5c1e2c9.js → index-493cae6d.js} +6 -6
- package/build/esm/{index-3076c7d5.js → index-4e04114c.js} +2 -2
- package/build/esm/{index-2bad4106.js → index-4e253706.js} +17 -17
- package/build/esm/{index-ec1bb54b.js → index-4fb76de9.js} +1 -1
- package/build/esm/{index-8bb32149.js → index-58ed29a1.js} +2 -2
- package/build/esm/{index-140dcfdc.js → index-591da165.js} +21 -21
- package/build/esm/{index-f7ac6a0a.js → index-5a1b18fe.js} +11 -11
- package/build/esm/{index-d34c5e3d.js → index-5e6a0609.js} +4 -4
- package/build/esm/{index-1f219095.js → index-6a67cfd9.js} +2 -2
- package/build/esm/{index-3b1aa0b8.js → index-6e0b2ec9.js} +3 -3
- package/build/esm/{index-f89a38f9.js → index-7442158d.js} +24 -24
- package/build/esm/{index-c3285710.js → index-77e3dacb.js} +2 -2
- package/build/esm/{index-c3f0d9a6.js → index-7cbb50a6.js} +3 -3
- package/build/esm/{index-9c40bee4.js → index-7e5b02e9.js} +7 -7
- package/build/esm/{index-11c03693.js → index-84d86b55.js} +13 -13
- package/build/esm/{index-c23bc927.js → index-8910c1d7.js} +6 -6
- package/build/esm/{index-d39d14e2.js → index-8afffc50.js} +2 -2
- package/build/esm/{index-b951a466.js → index-9154a4b5.js} +2 -2
- package/build/esm/{index-f8c6adf5.js → index-91c967e5.js} +4 -4
- package/build/esm/{index-33433fc2.js → index-97b65eb1.js} +8 -8
- package/build/esm/{index-45101bb7.js → index-9878428a.js} +17 -17
- package/build/esm/{index-e0d52f7d.js → index-9b5a1b01.js} +5 -5
- package/build/esm/{index-ba156e99.js → index-9c8a599d.js} +2 -2
- package/build/esm/{index-a03cc137.js → index-9f25a4c6.js} +2 -2
- package/build/esm/{index-5f7999af.js → index-a8e8c83d.js} +3 -3
- package/build/esm/{index-bf6ed587.js → index-ab464f29.js} +2 -2
- package/build/esm/{index-119711b9.js → index-b0374861.js} +2 -2
- package/build/esm/{index-5aebff86.js → index-b05b6e2a.js} +16 -16
- package/build/esm/{index-bcfaa0e6.js → index-b28c7e2d.js} +31 -31
- package/build/esm/{index-169105b8.js → index-ba1ec29e.js} +6 -6
- package/build/esm/{index-ed2b3f2f.js → index-bd0c1846.js} +1 -1
- package/build/esm/{index-a9f213a6.js → index-be5ba37e.js} +1 -1
- package/build/esm/{index-59bd98a3.js → index-c0e68669.js} +6 -6
- package/build/esm/{index-02a71e66.js → index-c2fca24a.js} +31 -31
- package/build/esm/{index-2f78ddf9.js → index-ceb1e14f.js} +5 -5
- package/build/esm/{index-33750331.js → index-d1b079a0.js} +1 -1
- package/build/esm/{index-46ad822c.js → index-d1ee3ee2.js} +1 -1
- package/build/esm/{index-c60ec065.js → index-d1f457f8.js} +3 -3
- package/build/esm/{index-d17b8e2c.js → index-da880edd.js} +16 -16
- package/build/esm/{index-b0f23553.js → index-db09a34c.js} +7 -7
- package/build/esm/{index-b3bde8eb.js → index-dbb8cb62.js} +13 -13
- package/build/esm/{index-3e5d8e7a.js → index-dd669103.js} +13 -13
- package/build/esm/{index-03e245b2.js → index-ddcdd8f2.js} +18 -18
- package/build/esm/{index-912e5964.js → index-e09f7e4a.js} +231 -147
- package/build/esm/{index-8d285723.js → index-e319f244.js} +1 -1
- package/build/esm/{index-c539556e.js → index-e92ffe7c.js} +16 -16
- package/build/esm/{index-adbe75fa.js → index-ec0741a1.js} +1 -1
- package/build/esm/{index-d75c3fb7.js → index-f7a5f7fa.js} +22 -22
- package/build/esm/{index-f437bfc4.js → index-fa857263.js} +16 -16
- package/build/esm/{index-2892eb0a.js → index-faacee56.js} +3 -3
- package/build/esm/{index-4ae1a48c.js → index-fb1047f7.js} +2 -2
- package/build/esm/index.js +118 -118
- package/build/esm/{labelSorting-71895de3.js → labelSorting-5e39cf19.js} +4 -4
- package/build/esm/lead/LeadGen.helpers.d.ts +14 -14
- package/build/esm/lead/LeadGen.type.d.ts +19 -0
- package/build/esm/lead/LeadGenForm/LeadGenEmpty.d.ts +8 -0
- package/build/esm/lead/LeadGenForm/LeadGenForm.helpers.d.ts +1 -1
- package/build/esm/lead/LeadGenLightBoxB/LeadGenLightBoxB.styled.d.ts +262 -0
- package/build/esm/lead/components/context.d.ts +3 -2
- package/build/esm/lead/components/index.d.ts +3 -2
- package/build/esm/lead/icons/NoData.d.ts +3 -0
- package/build/esm/lead/icons/index.d.ts +5 -0
- package/build/esm/lead/layouts/lightbox/index.d.ts +8 -4
- package/build/esm/lead/leadGenContext.d.ts +7 -0
- package/build/esm/lead/newLeadPopup.d.ts +5 -3
- package/build/esm/lead/services/index.d.ts +2 -1
- package/build/esm/lead/utils/formatFormData.d.ts +1 -0
- package/build/esm/lead/utils/formatTrackingData.d.ts +14 -0
- package/build/esm/lead.css +1 -1
- package/build/esm/lead.js +738 -275
- package/build/esm/{logoIcon-5b62cfe4.js → logoIcon-cadbecbe.js} +2 -2
- package/build/esm/mantine.js +25 -25
- package/build/esm/misc.js +17 -17
- 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 +74 -74
- package/build/esm/moleculesArticleCard.js +6 -6
- package/build/esm/moleculesArticleCardV2.js +16 -16
- package/build/esm/navigation.js +46 -46
- 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 +50 -50
- package/build/esm/{post-0526421c.js → post-d791db36.js} +2 -2
- 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/api/featureFlag.d.ts +2 -1
- package/build/esm/ssoV2.js +52 -40
- package/build/esm/{store-99ea3c78.js → store-e4f706d3.js} +3 -3
- package/build/esm/subot.js +36 -36
- package/build/esm/surveyOrPremiumBanner.js +33 -33
- package/build/esm/surveyQuestionCard.js +10 -10
- package/build/esm/{surveyThankyouCard-d85babb0.js → surveyThankyouCard-5dad0d9f.js} +5 -5
- package/build/esm/together/components/molecules/createNewPostContentV2/index.styled.d.ts +7 -0
- package/build/esm/together/utils/index.d.ts +1 -0
- package/build/esm/together.js +56 -56
- 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 +51 -51
- package/build/esm/togetherMoleculesCardAuthor.js +28 -28
- package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
- package/build/esm/togetherMoleculesProfileDetail.js +39 -39
- package/build/esm/togetherOrganisms.js +50 -50
- package/build/esm/togetherRichTextEditor.js +17 -17
- package/build/esm/togetherShareBox.js +10 -10
- package/build/esm/{translationsProvider-81221859.js → translationsProvider-758b393c.js} +1 -1
- package/build/esm/{treePopoverMenu-01379a96.js → treePopoverMenu-a7be6fa9.js} +19 -19
- package/build/esm/{types-106c6788.js → types-09234d12.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-0dcc4c18.js → useCategory-439c36ec.js} +5 -5
- package/build/esm/{useHealthToolCache-3040ff0e.js → useHealthToolCache-ff826646.js} +1 -1
- package/build/esm/{useMantineLocale-a938a312.js → useMantineLocale-4f58a092.js} +6 -6
- package/build/esm/{usePlacesAutocomplete-b70b7ce0.js → usePlacesAutocomplete-3ac7fb5b.js} +1 -1
- package/build/esm/{useScreenSize-fb33da04.js → useScreenSize-4a774778.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +10 -10
- package/build/esm/{utils-1628a5f4.js → utils-237e606e.js} +2 -2
- package/build/esm/{utils-8307e0f2.js → utils-4185ec0e.js} +5 -5
- package/build/esm/{utils-58628779.js → utils-9c7b9df3.js} +3 -3
- package/build/esm/{utils-b033a48d.js → utils-a009879a.js} +2 -2
- package/build/esm/vaccination.js +21 -21
- package/build/footer.js +21 -21
- package/build/gAssets.js +2 -2
- package/build/{healthTools-ef3f356e.js → healthTools-573b7c4e.js} +1 -1
- package/build/healthToolsCardWrapper.js +18 -18
- package/build/healthToolsForm.js +33 -33
- package/build/hooks.js +13 -13
- package/build/i18n/translationKeys.d.ts +1 -1
- package/build/i18n-values/en-PH.js +2 -1
- package/build/i18n-values/hi-IN.js +2 -1
- package/build/i18n-values/id-ID.js +4 -3
- package/build/i18n-values/km-KH.js +2 -1
- package/build/i18n-values/ms-MY.js +2 -1
- package/build/i18n-values/my-MM.js +4 -3
- package/build/i18n-values/th-TH.js +4 -3
- package/build/i18n-values/tl-PH.js +2 -1
- package/build/i18n-values/vi-VN.js +2 -1
- package/build/i18n-values/vi-VN_MB.js +2 -1
- package/build/i18n-values/zh-CN.js +2 -1
- package/build/i18n-values/zh-TW.js +2 -1
- package/build/i18n.js +2 -2
- package/build/i18nV2.js +1 -1
- package/build/{index-6eed2bd0.js → index-0301c8c1.js} +6 -6
- package/build/{index-680ab921.js → index-0a89a6c5.js} +25 -25
- package/build/{index-452f1eb5.js → index-0ae1731a.js} +1 -1
- package/build/{index-421eca75.js → index-0b74c3a7.js} +1 -1
- package/build/{index-d9e7c442.js → index-0b79d267.js} +7 -7
- package/build/{index-32de8260.js → index-0be303cf.js} +16 -16
- package/build/{index-3e936ef5.js → index-10dc0a81.js} +2 -2
- package/build/{index-db8fadeb.js → index-14f9daee.js} +3 -3
- package/build/{index-de153206.js → index-15acc379.js} +3 -3
- package/build/{index-4c660f74.js → index-16078611.js} +1 -1
- package/build/{index-c32c7d30.js → index-1df6d6f1.js} +15 -15
- package/build/{index-559e5501.js → index-2ee722e4.js} +3 -3
- package/build/{index-41864bfb.js → index-328a6f00.js} +2 -2
- package/build/{index-a8d0cfdb.js → index-3a1c1349.js} +2 -2
- package/build/{index-75a9eb0b.js → index-4220f03e.js} +31 -31
- package/build/{index-67083665.js → index-42832d74.js} +4 -4
- package/build/{index-32ff35c0.js → index-510cd5d8.js} +17 -17
- package/build/{index-594452e3.js → index-52c688e0.js} +2 -2
- package/build/{index-f3df9d5a.js → index-53cea17c.js} +2 -2
- package/build/{index-489453d0.js → index-5c04d82c.js} +1 -1
- package/build/{index-643c6e04.js → index-5c5b0d7a.js} +1 -1
- package/build/{index-7d75fcfc.js → index-6609c397.js} +13 -13
- package/build/{index-02dab628.js → index-6e7e3c83.js} +1 -1
- package/build/{index-46a9a7d0.js → index-6e976e69.js} +3 -3
- package/build/{index-afc8b11a.js → index-7135ab38.js} +17 -17
- package/build/{index-d60f043e.js → index-73c50e6a.js} +31 -31
- package/build/{index-e8b11e75.js → index-7578a98b.js} +6 -6
- package/build/{index-6ee435b6.js → index-7a0b4e4c.js} +17 -17
- package/build/{index-c6008b7f.js → index-7c181401.js} +13 -13
- package/build/{index-4371c483.js → index-7d99e425.js} +10 -10
- package/build/{index-9f32ab48.js → index-86d2e33e.js} +16 -16
- package/build/{index-5f147d35.js → index-894de8e5.js} +22 -22
- package/build/{index-35d14d51.js → index-8c5a772d.js} +2 -2
- package/build/{index-d75ddba4.js → index-8e2028b1.js} +5 -5
- package/build/{index-55f0a158.js → index-929827df.js} +16 -16
- package/build/{index-4eadb6ba.js → index-9302a2ba.js} +17 -17
- package/build/{index-4108e3bd.js → index-9373d295.js} +7 -7
- package/build/{index-61953c36.js → index-95b9acb2.js} +2 -2
- package/build/{index-4969f8b1.js → index-960c740f.js} +18 -18
- package/build/{index-4c7f641f.js → index-9affc8c8.js} +13 -13
- package/build/{index-f7e54e43.js → index-a00370d2.js} +6 -6
- package/build/{index-02559d27.js → index-a4054d6f.js} +2 -2
- package/build/{index-a7b14ca9.js → index-bb7eb3ba.js} +8 -8
- package/build/{index-7e08e497.js → index-bf9d1bd1.js} +5 -5
- package/build/{index-c9f1f650.js → index-c0df48e7.js} +2 -2
- package/build/{index-e9a7b940.js → index-c0e89bf1.js} +13 -13
- package/build/{index-31054a1b.js → index-c784e708.js} +24 -24
- package/build/{index-073c424b.js → index-c91511d7.js} +1 -1
- package/build/{index-2dc187b5.js → index-cb970cf4.js} +1 -1
- package/build/{index-0c5952a5.js → index-cdc87700.js} +2 -2
- package/build/{index-55a8b4bd.js → index-de075e9f.js} +2 -2
- package/build/{index-a44a04cc.js → index-deea70cf.js} +6 -6
- package/build/{index-3e9a3e81.js → index-e4ecee0e.js} +2 -2
- package/build/{index-d139926a.js → index-e611fdb0.js} +2 -2
- package/build/{index-155eb40c.js → index-e70edd5b.js} +3 -3
- package/build/{index-112ee36d.js → index-e897fc1f.js} +3 -3
- package/build/{index-daac6272.js → index-e91c793a.js} +230 -146
- package/build/{index-47f90fa7.js → index-eae4ff4f.js} +21 -21
- package/build/{index-2ad920e4.js → index-ec9686cc.js} +4 -4
- package/build/{index-789b8839.js → index-efec23d7.js} +18 -18
- package/build/{index-c65f351d.js → index-f371d961.js} +1 -1
- package/build/{index-0579b04b.js → index-f3fbda04.js} +2 -2
- package/build/{index-0d40fbb1.js → index-f49d538c.js} +6 -6
- package/build/{index-010e7c77.js → index-f86566d5.js} +11 -11
- package/build/{index-d79537c0.js → index-ffed6397.js} +16 -16
- package/build/index.js +118 -118
- package/build/{labelSorting-fdf79870.js → labelSorting-55531d4b.js} +4 -4
- package/build/lead/LeadGen.helpers.d.ts +14 -14
- package/build/lead/LeadGen.type.d.ts +19 -0
- package/build/lead/LeadGenForm/LeadGenEmpty.d.ts +8 -0
- package/build/lead/LeadGenForm/LeadGenForm.helpers.d.ts +1 -1
- package/build/lead/LeadGenLightBoxB/LeadGenLightBoxB.styled.d.ts +262 -0
- package/build/lead/components/context.d.ts +3 -2
- package/build/lead/components/index.d.ts +3 -2
- package/build/lead/icons/NoData.d.ts +3 -0
- package/build/lead/icons/index.d.ts +5 -0
- package/build/lead/layouts/lightbox/index.d.ts +8 -4
- package/build/lead/leadGenContext.d.ts +7 -0
- package/build/lead/newLeadPopup.d.ts +5 -3
- package/build/lead/services/index.d.ts +2 -1
- package/build/lead/utils/formatFormData.d.ts +1 -0
- package/build/lead/utils/formatTrackingData.d.ts +14 -0
- package/build/lead.css +1 -1
- package/build/lead.js +738 -275
- package/build/{logoIcon-4722afa4.js → logoIcon-22144be3.js} +2 -2
- package/build/mantine.js +22 -22
- package/build/misc.js +17 -17
- 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 +74 -74
- package/build/moleculesArticleCard.js +6 -6
- package/build/moleculesArticleCardV2.js +16 -16
- package/build/navigation.js +46 -46
- package/build/navigationLogoutPopup.js +9 -9
- package/build/navigationProfileButton.js +23 -23
- package/build/onboardingV2.js +28 -28
- package/build/organisms.js +50 -50
- package/build/{post-0950ef7f.js → post-b38dfffb.js} +2 -2
- package/build/profileNavigation.js +19 -19
- package/build/progressBar.js +1 -1
- package/build/pwg.js +22 -22
- package/build/ssoV2/api/featureFlag.d.ts +2 -1
- package/build/ssoV2.js +50 -38
- package/build/{store-b11d784b.js → store-19113253.js} +3 -3
- package/build/subot.js +35 -35
- package/build/surveyOrPremiumBanner.js +33 -33
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-2b36d7a8.js → surveyThankyouCard-2aabad24.js} +5 -5
- package/build/together/components/molecules/createNewPostContentV2/index.styled.d.ts +7 -0
- package/build/together/utils/index.d.ts +1 -0
- package/build/together.js +56 -56
- package/build/togetherApiUtils.js +4 -4
- package/build/togetherAtoms.js +30 -30
- package/build/togetherComponentGlobalContext.js +4 -4
- package/build/togetherMolecules.js +51 -51
- package/build/togetherMoleculesCardAuthor.js +28 -28
- package/build/togetherMoleculesPostImagePreview.js +11 -11
- package/build/togetherMoleculesProfileDetail.js +39 -39
- package/build/togetherOrganisms.js +50 -50
- package/build/togetherRichTextEditor.js +17 -17
- package/build/togetherShareBox.js +10 -10
- package/build/{translationsProvider-90d21e5c.js → translationsProvider-219524af.js} +1 -1
- package/build/{treePopoverMenu-b79c47b2.js → treePopoverMenu-495600da.js} +19 -19
- package/build/{types-7acb1092.js → types-297843f7.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-7e682543.js → useCategory-6077013c.js} +5 -5
- package/build/{useHealthToolCache-ea23d86b.js → useHealthToolCache-127e942c.js} +1 -1
- package/build/{useMantineLocale-ec184683.js → useMantineLocale-8b5328da.js} +6 -6
- package/build/{usePlacesAutocomplete-b1cef70f.js → usePlacesAutocomplete-c4096401.js} +1 -1
- package/build/{useScreenSize-03555d45.js → useScreenSize-1e356362.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +10 -10
- package/build/{utils-406b2205.js → utils-2d5c2270.js} +5 -5
- package/build/{utils-ebffddc8.js → utils-5316edfa.js} +3 -3
- package/build/{utils-2d61d335.js → utils-6b741a52.js} +2 -2
- package/build/{utils-bd12e381.js → utils-ea7ed7d8.js} +2 -2
- package/build/vaccination.js +21 -21
- package/package.json +1 -1
- /package/build/{BMI_BOYS.percentile.monthly-8c9db15a.js → BMI_BOYS.percentile.monthly-8c87dbb9.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-a689769b.js → BMI_BOYS.percentile.weekly-a95e009a.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-e1ebccf8.js → BMI_BOYS.percentile.yearly-06d1b212.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-7e63d878.js → BMI_BOYS.zscore.monthly-c7dfdddb.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-07720b7b.js → BMI_BOYS.zscore.weekly-88adf7d3.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-f7db7131.js → BMI_BOYS.zscore.yearly-c1aa3e51.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-201cb258.js → BMI_GIRLS.percentile.monthly-cd4bd461.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-0ece140c.js → BMI_GIRLS.percentile.weekly-16c5f35a.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-468fe324.js → BMI_GIRLS.percentile.yearly-03800789.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-cf26ac1d.js → BMI_GIRLS.zscore.monthly-e93abe06.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-7b93dc72.js → BMI_GIRLS.zscore.weekly-9625ac78.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-f874af51.js → BMI_GIRLS.zscore.yearly-561f33b4.js} +0 -0
- /package/build/{ChevronDown-bff6582f.js → ChevronDown-e4dd2c7b.js} +0 -0
- /package/build/{Close-539a8ab1.js → Close-bcd0f86d.js} +0 -0
- /package/build/{Google-550c0f4d.js → Google-b5b22431.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-5a4e8b87.js → HEAD CIRCUM_BOYS.percentile.monthly-2c6ced17.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-1f55d2ba.js → HEAD CIRCUM_BOYS.percentile.weekly-95f8b51d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-e1ef2dc7.js → HEAD CIRCUM_BOYS.percentile.yearly-554a0464.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-165874ce.js → HEAD CIRCUM_BOYS.zscore.monthly-ed29d930.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-9cc6d575.js → HEAD CIRCUM_BOYS.zscore.weekly-e5c9d342.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-90ed27d1.js → HEAD CIRCUM_BOYS.zscore.yearly-defc072e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-875f0106.js → HEAD CIRCUM_GIRLS.percentile.monthly-030f9924.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-647840ea.js → HEAD CIRCUM_GIRLS.percentile.weekly-b373d1ea.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-17885f9f.js → HEAD CIRCUM_GIRLS.percentile.yearly-d902e37e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-fcc741aa.js → HEAD CIRCUM_GIRLS.zscore.monthly-03076a18.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-d8557fdd.js → HEAD CIRCUM_GIRLS.zscore.weekly-9a112900.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-cda06d21.js → HEAD CIRCUM_GIRLS.zscore.yearly-2f398dda.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-23de96e5.js → HEIGHT_BOYS.percentile.monthly-03a52d0e.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-d7fdaee3.js → HEIGHT_BOYS.percentile.weekly-7562b29e.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-539c0d26.js → HEIGHT_BOYS.percentile.yearly-be8f3d6d.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-ec859f90.js → HEIGHT_BOYS.zscore.monthly-3054fee2.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-d73df3e0.js → HEIGHT_BOYS.zscore.weekly-4e228a18.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-13c44198.js → HEIGHT_BOYS.zscore.yearly-f52b208d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-846127be.js → HEIGHT_GIRLS.percentile.monthly-3e9bf11f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-7103bf04.js → HEIGHT_GIRLS.percentile.weekly-c3259328.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-ba7949c5.js → HEIGHT_GIRLS.percentile.yearly-1fda6433.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-2b71db1d.js → HEIGHT_GIRLS.zscore.monthly-e5594055.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-ff81a4fc.js → HEIGHT_GIRLS.zscore.weekly-ae91bcb2.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-c29cf18e.js → HEIGHT_GIRLS.zscore.yearly-7ebba771.js} +0 -0
- /package/build/{Locale-7978c9cc.js → Locale-764d0fe0.js} +0 -0
- /package/build/{Visible-516f027e.js → Visible-8f3abc2a.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-88977b50.js → WEIGHT_BOYS.percentile.monthly-742e3b01.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-98331f0b.js → WEIGHT_BOYS.percentile.weekly-a189ae12.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-e7945da5.js → WEIGHT_BOYS.percentile.yearly-ccf99262.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-c04658e6.js → WEIGHT_BOYS.zscore.monthly-26ec10b2.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-98b9b101.js → WEIGHT_BOYS.zscore.weekly-ae8b99e9.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-a220a344.js → WEIGHT_BOYS.zscore.yearly-ecc51a68.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-051c5ec2.js → WEIGHT_GIRLS.percentile.monthly-958728a2.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-f58b6b99.js → WEIGHT_GIRLS.percentile.weekly-be5ac197.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-4b5240ec.js → WEIGHT_GIRLS.percentile.yearly-b7493047.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-e01b1eac.js → WEIGHT_GIRLS.zscore.monthly-e507cc87.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-a708b96b.js → WEIGHT_GIRLS.zscore.weekly-558e4c47.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-6ed95997.js → WEIGHT_GIRLS.zscore.yearly-c509cc17.js} +0 -0
- /package/build/{animation-6a6f59d2.js → animation-b6d63455.js} +0 -0
- /package/build/{constants-709311e0.js → constants-08c8503c.js} +0 -0
- /package/build/{constants-6502967a.js → constants-1def5869.js} +0 -0
- /package/build/{constants-11de5f84.js → constants-aa94cfb3.js} +0 -0
- /package/build/{dataTransform-c89de3b2.js → dataTransform-3a47799a.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-2d868e0c.js → BMI_BOYS.percentile.monthly-f2b0325e.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-ac1b69d6.js → BMI_BOYS.percentile.weekly-875d1828.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-602fbd5f.js → BMI_BOYS.percentile.yearly-de9ef920.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-7893698e.js → BMI_BOYS.zscore.monthly-f930cc1f.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-c46ff024.js → BMI_BOYS.zscore.weekly-7ec4145d.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-232bcb49.js → BMI_BOYS.zscore.yearly-43d7922a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-e3867d77.js → BMI_GIRLS.percentile.monthly-a45d89ae.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-e632c7b9.js → BMI_GIRLS.percentile.weekly-ad981320.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-5c5b660b.js → BMI_GIRLS.percentile.yearly-43bcf39e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-cffd34cd.js → BMI_GIRLS.zscore.monthly-2ed18934.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-1419f794.js → BMI_GIRLS.zscore.weekly-e2abe780.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-bd701532.js → BMI_GIRLS.zscore.yearly-b8703f79.js} +0 -0
- /package/build/esm/{ChevronDown-3b3c3b11.js → ChevronDown-9d4502b8.js} +0 -0
- /package/build/esm/{Close-c214dfa7.js → Close-cdcf7f34.js} +0 -0
- /package/build/esm/{Google-afd75689.js → Google-f1ba73bb.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-bae7c034.js → HEAD CIRCUM_BOYS.percentile.monthly-c3ac7f15.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-55e5bf84.js → HEAD CIRCUM_BOYS.percentile.weekly-8f341e02.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-f2bdc060.js → HEAD CIRCUM_BOYS.percentile.yearly-474d437f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-77f983fe.js → HEAD CIRCUM_BOYS.zscore.monthly-7536cea6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-811b1a1b.js → HEAD CIRCUM_BOYS.zscore.weekly-e8dcd6e7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-6fed0fd8.js → HEAD CIRCUM_BOYS.zscore.yearly-19e81e31.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-0c53afce.js → HEAD CIRCUM_GIRLS.percentile.monthly-cd4951df.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-9e9e04f5.js → HEAD CIRCUM_GIRLS.percentile.weekly-57269718.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-ee3dd4ff.js → HEAD CIRCUM_GIRLS.percentile.yearly-50e398a3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-bf037d95.js → HEAD CIRCUM_GIRLS.zscore.monthly-c52954fd.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-3cfe94a6.js → HEAD CIRCUM_GIRLS.zscore.weekly-4b2e158a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-229833dd.js → HEAD CIRCUM_GIRLS.zscore.yearly-e27bb59b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-deb1db57.js → HEIGHT_BOYS.percentile.monthly-61e22fac.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-0f0eb34e.js → HEIGHT_BOYS.percentile.weekly-222868de.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-af19ac11.js → HEIGHT_BOYS.percentile.yearly-42934db4.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-c77f2195.js → HEIGHT_BOYS.zscore.monthly-b7ccce93.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-ea779b14.js → HEIGHT_BOYS.zscore.weekly-f07f0785.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-60bfb51f.js → HEIGHT_BOYS.zscore.yearly-d5116dc8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-9f813296.js → HEIGHT_GIRLS.percentile.monthly-08751df2.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-31a888f2.js → HEIGHT_GIRLS.percentile.weekly-4bd8e4e8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-f5b633ab.js → HEIGHT_GIRLS.percentile.yearly-d62cbdf7.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-84fbd8ad.js → HEIGHT_GIRLS.zscore.monthly-36ca108f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-8563c02b.js → HEIGHT_GIRLS.zscore.weekly-b251e8bf.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-d508d9c2.js → HEIGHT_GIRLS.zscore.yearly-b95dc445.js} +0 -0
- /package/build/esm/{Locale-ce7c9574.js → Locale-2f050a8d.js} +0 -0
- /package/build/esm/{Visible-2b74bc97.js → Visible-4f1c6c65.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-bcab94ad.js → WEIGHT_BOYS.percentile.monthly-958090ba.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-edc41c40.js → WEIGHT_BOYS.percentile.weekly-5def56a5.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-1484930e.js → WEIGHT_BOYS.percentile.yearly-9a065853.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-9db45a44.js → WEIGHT_BOYS.zscore.monthly-22619dee.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-1a71c413.js → WEIGHT_BOYS.zscore.weekly-c07832d3.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-c2bc9e67.js → WEIGHT_BOYS.zscore.yearly-8988e7f1.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-2e1c85e0.js → WEIGHT_GIRLS.percentile.monthly-fe1b2278.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-74360200.js → WEIGHT_GIRLS.percentile.weekly-e1de02ea.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-f34f0558.js → WEIGHT_GIRLS.percentile.yearly-57a685e8.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-059ac703.js → WEIGHT_GIRLS.zscore.monthly-05c7452e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-e1fb2fd8.js → WEIGHT_GIRLS.zscore.weekly-2436f9ee.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-77eb5efd.js → WEIGHT_GIRLS.zscore.yearly-41f599b0.js} +0 -0
- /package/build/esm/{animation-27d62e38.js → animation-d183eff6.js} +0 -0
- /package/build/esm/{constants-224a9c9d.js → constants-1c442ee9.js} +0 -0
- /package/build/esm/{constants-3cb473c5.js → constants-1ce7a0c8.js} +0 -0
- /package/build/esm/{constants-ca7208a4.js → constants-dd5c7e21.js} +0 -0
- /package/build/esm/{dataTransform-7141f77c.js → dataTransform-43dd3ad8.js} +0 -0
- /package/build/esm/{index-2e9997c5.js → index-1888a823.js} +0 -0
- /package/build/esm/{index-243017fd.js → index-67ade6b4.js} +0 -0
- /package/build/esm/{index-16a5ad99.js → index-6c4db0e7.js} +0 -0
- /package/build/esm/{index-6ef9420b.js → index-86beec3b.js} +0 -0
- /package/build/esm/{index-6f28b547.js → index-a4e33581.js} +0 -0
- /package/build/esm/{index-8ca926b3.js → index-b8bab345.js} +0 -0
- /package/build/esm/{index-e31e78b8.js → index-b98a4ccb.js} +0 -0
- /package/build/esm/{index-725acd8e.js → index-ebfab7bd.js} +0 -0
- /package/build/esm/{index.styles-d2bdab8c.js → index.styles-84a7085d.js} +0 -0
- /package/build/esm/lead/layouts/{ emptyIcon.d.ts → emptyIcon.d.ts} +0 -0
- /package/build/esm/{localizeNumberFormat-7fbc5ef2.js → localizeNumberFormat-39c041df.js} +0 -0
- /package/build/esm/{normalizeLink-2e955111.js → normalizeLink-c69706f9.js} +0 -0
- /package/build/esm/{number-2c21651a.js → number-9e1e33b6.js} +0 -0
- /package/build/esm/{other-9f3029ec.js → other-b55c2cac.js} +0 -0
- /package/build/esm/{paths-badc1b3b.js → paths-8049aab1.js} +0 -0
- /package/build/esm/{translationsContext-8059f988.js → translationsContext-8bed8935.js} +0 -0
- /package/build/esm/{tslib.es6-920542f4.js → tslib.es6-11765615.js} +0 -0
- /package/build/esm/{types-d19dcc16.js → types-487284bc.js} +0 -0
- /package/build/esm/{useIsInit-80a86f68.js → useIsInit-98fef9f5.js} +0 -0
- /package/build/esm/{useOutsideClick-ee68528a.js → useOutsideClick-06ae1afa.js} +0 -0
- /package/build/esm/{useScrollbarSize-a550eea1.js → useScrollbarSize-3dc0c03a.js} +0 -0
- /package/build/esm/{useUniqueId-c8370483.js → useUniqueId-4ecc826a.js} +0 -0
- /package/build/esm/{utils-2369b642.js → utils-860b86e8.js} +0 -0
- /package/build/{index-6f22b55e.js → index-1aa847ab.js} +0 -0
- /package/build/{index-c895266c.js → index-24c4277b.js} +0 -0
- /package/build/{index-a200e69c.js → index-625743b3.js} +0 -0
- /package/build/{index-6d1e1360.js → index-7d894a46.js} +0 -0
- /package/build/{index-8223092b.js → index-8d730e72.js} +0 -0
- /package/build/{index-55b1bfa8.js → index-a072750b.js} +0 -0
- /package/build/{index-1f64a5dc.js → index-d3461fe7.js} +0 -0
- /package/build/{index-6625747d.js → index-eb89eb77.js} +0 -0
- /package/build/{index.styles-e555d060.js → index.styles-f9408092.js} +0 -0
- /package/build/lead/layouts/{ emptyIcon.d.ts → emptyIcon.d.ts} +0 -0
- /package/build/{localizeNumberFormat-cbba4877.js → localizeNumberFormat-d03061a6.js} +0 -0
- /package/build/{normalizeLink-4008bb97.js → normalizeLink-8aa84155.js} +0 -0
- /package/build/{number-2bb6487c.js → number-d3ca8272.js} +0 -0
- /package/build/{other-3d614c90.js → other-8f691b82.js} +0 -0
- /package/build/{paths-e0e4a30a.js → paths-b04efd22.js} +0 -0
- /package/build/{translationsContext-ae3c7cbc.js → translationsContext-a3e31b9e.js} +0 -0
- /package/build/{tslib.es6-bd4b6f69.js → tslib.es6-ecad3526.js} +0 -0
- /package/build/{types-160c4161.js → types-c43067bb.js} +0 -0
- /package/build/{useIsInit-6ed13d1d.js → useIsInit-a9d121eb.js} +0 -0
- /package/build/{useOutsideClick-0864ce66.js → useOutsideClick-20154526.js} +0 -0
- /package/build/{useScrollbarSize-7c9c913d.js → useScrollbarSize-95baac26.js} +0 -0
- /package/build/{useUniqueId-3ad4fe36.js → useUniqueId-42fb6d03.js} +0 -0
- /package/build/{utils-e56bcd6e.js → utils-f619e399.js} +0 -0
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { a as __awaiter, _ as __rest } from './tslib.es6-
|
|
1
|
+
import { a as __awaiter, _ as __rest } from './tslib.es6-11765615.js';
|
|
2
2
|
import React__default, { useState, useRef, useEffect, useCallback, useContext, useMemo } from 'react';
|
|
3
3
|
import { Info, Ask } from '@hhgtech/icons/other';
|
|
4
|
-
import { D as Dropdown } from './index-
|
|
5
|
-
import { u as useTranslations } from './index-
|
|
4
|
+
import { D as Dropdown } from './index-b98a4ccb.js';
|
|
5
|
+
import { u as useTranslations } from './index-be5ba37e.js';
|
|
6
6
|
import innertext from 'innertext';
|
|
7
7
|
import { theme } from './miscTheme.js';
|
|
8
|
-
import { I as Input$1 } from './index-
|
|
9
|
-
import { useMantineTheme,
|
|
8
|
+
import { I as Input$1 } from './index-5a1b18fe.js';
|
|
9
|
+
import { useMantineTheme, SegmentedControl, Popover } from '@mantine/core';
|
|
10
10
|
import '@mantine/dates';
|
|
11
|
-
import './index-
|
|
12
|
-
import './index-
|
|
13
|
-
import './index-
|
|
14
|
-
import './useMantineLocale-
|
|
15
|
-
import { T as Text } from './index-
|
|
16
|
-
import { B as Button } from './index-
|
|
17
|
-
import './index.styles-
|
|
11
|
+
import './index-4e04114c.js';
|
|
12
|
+
import './index-bd0c1846.js';
|
|
13
|
+
import './index-6c4db0e7.js';
|
|
14
|
+
import './useMantineLocale-4f58a092.js';
|
|
15
|
+
import { T as Text } from './index-9c8a599d.js';
|
|
16
|
+
import { B as Button } from './index-45a645d6.js';
|
|
17
|
+
import './index.styles-84a7085d.js';
|
|
18
18
|
import '@mantine/hooks';
|
|
19
|
-
import { M as MediaQueries } from './utils-
|
|
20
|
-
import './other-
|
|
21
|
-
import './index-
|
|
22
|
-
import { u as useImagePicker, a as PopupFrame, c as IconCloseCircle, g as getDefaultFailNoti, d as getPostFormData, e as editPost, f as createPost } from './index-
|
|
23
|
-
import { T as TogetherComponentGlobalContext, c as callApi, d as getApiPath, p as getCurrentHref, b as callApiWithAuth, q as callApiWithAdminAuth, r as getChatbotAiApiPath } from './utils-
|
|
19
|
+
import { M as MediaQueries } from './utils-860b86e8.js';
|
|
20
|
+
import './other-b55c2cac.js';
|
|
21
|
+
import './index-6e0b2ec9.js';
|
|
22
|
+
import { u as useImagePicker, a as PopupFrame, c as IconCloseCircle, g as getDefaultFailNoti, d as getPostFormData, e as editPost, f as createPost } from './index-44f0ae43.js';
|
|
23
|
+
import { T as TogetherComponentGlobalContext, c as callApi, d as getApiPath, p as getCurrentHref, b as callApiWithAuth, q as callApiWithAdminAuth, r as getChatbotAiApiPath } from './utils-9c7b9df3.js';
|
|
24
24
|
import styled from '@emotion/styled';
|
|
25
|
-
import { b as formatPost, a as formatCommunity, c as formatTopic } from './dataTransform-
|
|
26
|
-
import { M as MAX_IMAGE_UPLOADS, B as BEARER_TOKEN_COOKIE } from './constants-
|
|
27
|
-
import { h as highlightBadWords, f as fixMalformedMention, r as removeFontFormat, a as removeEdittedBannedWord, w as wrapAnchorAroundUrls, g as getUrlsFromEditorString, A as ALLOW_DOMAIN_URL, e as escapeRegExp, d as decodeMention, b as decodePostUrl, c as reformatUrl, i as getMentionIdsFromString, L as LIMIT_MENTION } from './post-
|
|
28
|
-
import { C as CardAuthor } from './index-
|
|
29
|
-
import { S as StyledCreatePostDescription$1, R as RichTextEditor$1, I as IconLink } from './editor-
|
|
30
|
-
import { I as Input } from './index-
|
|
25
|
+
import { b as formatPost, a as formatCommunity, c as formatTopic } from './dataTransform-c15abb49.js';
|
|
26
|
+
import { M as MAX_IMAGE_UPLOADS, B as BEARER_TOKEN_COOKIE } from './constants-dd5c7e21.js';
|
|
27
|
+
import { h as highlightBadWords, f as fixMalformedMention, r as removeFontFormat, a as removeEdittedBannedWord, w as wrapAnchorAroundUrls, g as getUrlsFromEditorString, A as ALLOW_DOMAIN_URL, e as escapeRegExp, d as decodeMention, b as decodePostUrl, c as reformatUrl, i as getMentionIdsFromString, L as LIMIT_MENTION } from './post-d791db36.js';
|
|
28
|
+
import { C as CardAuthor } from './index-b05b6e2a.js';
|
|
29
|
+
import { S as StyledCreatePostDescription$1, R as RichTextEditor$1, I as IconLink } from './editor-d97a9993.js';
|
|
30
|
+
import { I as Input } from './index-b0374861.js';
|
|
31
31
|
import debounce from 'lodash/debounce';
|
|
32
32
|
import ContentEditable from 'react-contenteditable';
|
|
33
33
|
import { PATHS, ADMIN_PATHS } from './togetherApiPaths.js';
|
|
34
|
-
import { L as Loading } from './index-
|
|
35
|
-
import { C as CardLink } from './index-
|
|
36
|
-
import { B as BtnChoice } from './index-
|
|
37
|
-
import { L as LOCALE } from './Locale-
|
|
34
|
+
import { L as Loading } from './index-77e3dacb.js';
|
|
35
|
+
import { C as CardLink } from './index-ceb1e14f.js';
|
|
36
|
+
import { B as BtnChoice } from './index-4fb76de9.js';
|
|
37
|
+
import { L as LOCALE } from './Locale-2f050a8d.js';
|
|
38
38
|
import * as ReactDOM from 'react-dom';
|
|
39
|
-
import { L as Loading$1 } from './index-
|
|
40
|
-
import { b as IconArrowLeft } from './index-
|
|
41
|
-
import { B as Button$1 } from './index-
|
|
39
|
+
import { L as Loading$1 } from './index-43b60610.js';
|
|
40
|
+
import { b as IconArrowLeft } from './index-8910c1d7.js';
|
|
41
|
+
import { B as Button$1 } from './index-ab464f29.js';
|
|
42
42
|
import { getCookie } from './miscCookieHelper.js';
|
|
43
|
-
import { a as useUniqueId } from './useUniqueId-
|
|
44
|
-
import { U as UserAvatar } from './index-
|
|
45
|
-
import { P as PopoverMenu } from './index-
|
|
43
|
+
import { a as useUniqueId } from './useUniqueId-4ecc826a.js';
|
|
44
|
+
import { U as UserAvatar } from './index-1500f21b.js';
|
|
45
|
+
import { P as PopoverMenu } from './index-6a67cfd9.js';
|
|
46
46
|
import { Close, Check } from '@hhgtech/icons/core';
|
|
47
47
|
|
|
48
48
|
const StyledCreateNewPost$1 = styled.div `
|
|
@@ -1358,6 +1358,11 @@ const CreateNewPostContent = ({ className, style, onPostCreatedEdited, onClose,
|
|
|
1358
1358
|
}), disabled: !isReadyToSubmit, loading: isSubmitting }, t('createPost.popup.submit'))))));
|
|
1359
1359
|
};
|
|
1360
1360
|
|
|
1361
|
+
function toBoolean(str) {
|
|
1362
|
+
const strFormat = str.toLowerCase();
|
|
1363
|
+
return strFormat === 'true' || strFormat === '1' || strFormat === 'yes';
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1361
1366
|
const StyleContainer$2 = styled.div ``;
|
|
1362
1367
|
const StyleContentWrapper$1 = styled.div `
|
|
1363
1368
|
display: flex;
|
|
@@ -3025,8 +3030,7 @@ const StyledIsQuestion = styled.div `
|
|
|
3025
3030
|
width: 100%;
|
|
3026
3031
|
align-items: center;
|
|
3027
3032
|
justify-content: space-between;
|
|
3028
|
-
|
|
3029
|
-
border-radius: 0 0 8px 8px;
|
|
3033
|
+
border-radius: 8px;
|
|
3030
3034
|
background: ${theme.colors.neutral50};
|
|
3031
3035
|
gap: 12px;
|
|
3032
3036
|
|
|
@@ -3221,10 +3225,13 @@ const StyleSessionRow = styled.div `
|
|
|
3221
3225
|
}
|
|
3222
3226
|
`;
|
|
3223
3227
|
const StyledIsQuestionWrapper = styled.div `
|
|
3224
|
-
padding:
|
|
3225
|
-
border: 1px solid ${theme.colors.gray200};
|
|
3228
|
+
padding: 10px 16px;
|
|
3226
3229
|
border-top: none;
|
|
3227
|
-
border-radius:
|
|
3230
|
+
border-radius: 12px;
|
|
3231
|
+
background: ${theme.colors.neutral50};
|
|
3232
|
+
display: flex;
|
|
3233
|
+
flex-direction: column;
|
|
3234
|
+
gap: 8px;
|
|
3228
3235
|
&.has-error {
|
|
3229
3236
|
border: 1px solid ${theme.colors.red600};
|
|
3230
3237
|
}
|
|
@@ -3254,6 +3261,85 @@ const StyleActionFooter = styled.div `
|
|
|
3254
3261
|
.input-group {
|
|
3255
3262
|
margin-bottom: 0 !important;
|
|
3256
3263
|
}
|
|
3264
|
+
`;
|
|
3265
|
+
const StyledQuestionWrapperContainer = styled.div `
|
|
3266
|
+
padding: 8px 8px;
|
|
3267
|
+
border: 1px solid ${theme.colors.gray200};
|
|
3268
|
+
border-top: none;
|
|
3269
|
+
border-radius: 0 0 8px 8px;
|
|
3270
|
+
&.has-error {
|
|
3271
|
+
border: 1px solid ${theme.colors.red600};
|
|
3272
|
+
}
|
|
3273
|
+
&.error-description {
|
|
3274
|
+
border: 1px solid ${theme.colors.red600};
|
|
3275
|
+
border-top: none;
|
|
3276
|
+
}
|
|
3277
|
+
.error-choice-question {
|
|
3278
|
+
color: ${theme.colors.red600};
|
|
3279
|
+
font-size: 12px;
|
|
3280
|
+
font-weight: 400;
|
|
3281
|
+
line-height: 22px;
|
|
3282
|
+
letter-spacing: -0.2px;
|
|
3283
|
+
}
|
|
3284
|
+
`;
|
|
3285
|
+
const StyleSwitchButton = styled(SegmentedControl) `
|
|
3286
|
+
gap: 8px;
|
|
3287
|
+
&.mantine-SegmentedControl-root {
|
|
3288
|
+
background-color: transparent;
|
|
3289
|
+
padding: 0px;
|
|
3290
|
+
}
|
|
3291
|
+
.mantine-SegmentedControl-indicator {
|
|
3292
|
+
display: none;
|
|
3293
|
+
}
|
|
3294
|
+
.mantine-SegmentedControl-label {
|
|
3295
|
+
margin-bottom: 0px !important;
|
|
3296
|
+
display: flex;
|
|
3297
|
+
padding: 5px 12px;
|
|
3298
|
+
justify-content: center;
|
|
3299
|
+
align-items: center;
|
|
3300
|
+
gap: 8px;
|
|
3301
|
+
height: 32px;
|
|
3302
|
+
border: 1px solid ${theme.colors.neutral100};
|
|
3303
|
+
}
|
|
3304
|
+
|
|
3305
|
+
.mantine-SegmentedControl-control {
|
|
3306
|
+
color: ${theme.colors.gray800};
|
|
3307
|
+
font-size: 14px;
|
|
3308
|
+
font-style: normal;
|
|
3309
|
+
font-weight: 600;
|
|
3310
|
+
line-height: 22px;
|
|
3311
|
+
border-radius: 8px;
|
|
3312
|
+
background: ${theme.colors.white};
|
|
3313
|
+
border-width: 0 !important;
|
|
3314
|
+
}
|
|
3315
|
+
|
|
3316
|
+
.mantine-SegmentedControl-controlActive {
|
|
3317
|
+
border-radius: 8px;
|
|
3318
|
+
background: ${theme.colors.blue50};
|
|
3319
|
+
|
|
3320
|
+
.mantine-SegmentedControl-label {
|
|
3321
|
+
color: ${theme.colors.primaryBase};
|
|
3322
|
+
border: 1px solid ${theme.colors.blue50};
|
|
3323
|
+
}
|
|
3324
|
+
}
|
|
3325
|
+
|
|
3326
|
+
&.segmented-marry-baby {
|
|
3327
|
+
.mantine-SegmentedControl-control {
|
|
3328
|
+
border-radius: 16px;
|
|
3329
|
+
}
|
|
3330
|
+
.mantine-SegmentedControl-label {
|
|
3331
|
+
border-radius: 16px;
|
|
3332
|
+
}
|
|
3333
|
+
.mantine-SegmentedControl-controlActive {
|
|
3334
|
+
border-radius: 16px;
|
|
3335
|
+
background: ${theme.colors.pink500};
|
|
3336
|
+
|
|
3337
|
+
.mantine-SegmentedControl-label {
|
|
3338
|
+
color: ${theme.colors.white};
|
|
3339
|
+
border: 1px solid ${theme.colors.pink500};
|
|
3340
|
+
}
|
|
3341
|
+
}
|
|
3342
|
+
}
|
|
3257
3343
|
`;
|
|
3258
3344
|
|
|
3259
3345
|
const CreatePostPhotos = ({ imageFiles: imageFilesInit, setImageFiles, }) => {
|
|
@@ -3424,12 +3510,10 @@ const applySpecialCharSite = [
|
|
|
3424
3510
|
];
|
|
3425
3511
|
const CreateNewPostContentV2 = ({ className, style, onClose, onPostCreatedEdited, forceSelectCommunity, forceSelectTopics, articleId, editPostData, defaultCommunity, communities, userInfo, isMarryBaby = false, }) => {
|
|
3426
3512
|
const isInEditMode = !!(editPostData === null || editPostData === void 0 ? void 0 : editPostData.id);
|
|
3427
|
-
const { data: { locale,
|
|
3428
|
-
// env: { togetherBasePath },
|
|
3429
|
-
}, action: { pushNotifications, sanitizeFunction }, } = useContext(TogetherComponentGlobalContext);
|
|
3513
|
+
const { data: { locale }, action: { pushNotifications, sanitizeFunction }, } = useContext(TogetherComponentGlobalContext);
|
|
3430
3514
|
const { t } = useTranslations();
|
|
3431
3515
|
const containerRef = useRef(null);
|
|
3432
|
-
const [isAskDoctor, setIsAskDoctor] = useState(
|
|
3516
|
+
const [isAskDoctor, setIsAskDoctor] = useState('');
|
|
3433
3517
|
const [specialCharErr, setspecialCharErr] = useState(false);
|
|
3434
3518
|
const [titleValue, setTitleValue] = useState('');
|
|
3435
3519
|
const [descriptionValue, setDescriptionValue] = useState('');
|
|
@@ -3454,6 +3538,7 @@ const CreateNewPostContentV2 = ({ className, style, onClose, onPostCreatedEdited
|
|
|
3454
3538
|
const [stepPost, setStepPost] = useState('step_info');
|
|
3455
3539
|
const [isLoadingSuggest, setIsLoadingSuggest] = useState(false);
|
|
3456
3540
|
const [uncategorizedId, setUncategorizedId] = useState('');
|
|
3541
|
+
const [isLoadingSubmit, setIsLoadingSubmit] = useState(false);
|
|
3457
3542
|
const postActionType = [
|
|
3458
3543
|
{
|
|
3459
3544
|
label: t('cardPost.public'),
|
|
@@ -3476,18 +3561,11 @@ const CreateNewPostContentV2 = ({ className, style, onClose, onPostCreatedEdited
|
|
|
3476
3561
|
} })),
|
|
3477
3562
|
},
|
|
3478
3563
|
];
|
|
3479
|
-
// const currentCommunity = useMemo(() => {
|
|
3480
|
-
// if (!communityValue.value) return null
|
|
3481
|
-
// const result = communitiesList.find(
|
|
3482
|
-
// (item) => String(item.id) === String(communityValue.value),
|
|
3483
|
-
// )
|
|
3484
|
-
// if (!result) return null
|
|
3485
|
-
// return result
|
|
3486
|
-
// }, [communityValue, communitiesList])
|
|
3487
3564
|
const currentCommunity = forceSelectCommunity ||
|
|
3488
3565
|
communities.find((c) => `${c.id || ''}-${c.mappedCategoryId || ''}` === communityValue.value);
|
|
3489
3566
|
// HANDLE etra action when OPEN AND CLOSE
|
|
3490
3567
|
useEffect(() => {
|
|
3568
|
+
var _a;
|
|
3491
3569
|
if (editPostData) {
|
|
3492
3570
|
const post = editPostData;
|
|
3493
3571
|
setTitleValue(post.title || '');
|
|
@@ -3496,9 +3574,8 @@ const CreateNewPostContentV2 = ({ className, style, onClose, onPostCreatedEdited
|
|
|
3496
3574
|
label: post.community.name,
|
|
3497
3575
|
value: `${post.community.id || ''}-${post.community.mappedCategoryId || ''}`,
|
|
3498
3576
|
});
|
|
3499
|
-
// setSelectedTopics(post.topics || [])
|
|
3500
3577
|
setImageFiles(post.photos || []);
|
|
3501
|
-
setIsAskDoctor(!!post.isAskDoctor || false);
|
|
3578
|
+
setIsAskDoctor(((_a = (!!post.isAskDoctor)) === null || _a === void 0 ? void 0 : _a.toString()) || 'false');
|
|
3502
3579
|
}
|
|
3503
3580
|
else {
|
|
3504
3581
|
if (defaultCommunity) {
|
|
@@ -3507,9 +3584,6 @@ const CreateNewPostContentV2 = ({ className, style, onClose, onPostCreatedEdited
|
|
|
3507
3584
|
value: `${defaultCommunity.id || ''}-${defaultCommunity.mappedCategoryId || ''}`,
|
|
3508
3585
|
});
|
|
3509
3586
|
}
|
|
3510
|
-
// if (defaultTopics) {
|
|
3511
|
-
// setSelectedTopics(defaultTopics)
|
|
3512
|
-
// }
|
|
3513
3587
|
}
|
|
3514
3588
|
}, []);
|
|
3515
3589
|
useEffect(() => {
|
|
@@ -3593,6 +3667,10 @@ const CreateNewPostContentV2 = ({ className, style, onClose, onPostCreatedEdited
|
|
|
3593
3667
|
});
|
|
3594
3668
|
hasError = true;
|
|
3595
3669
|
}
|
|
3670
|
+
if (!isAskDoctor) {
|
|
3671
|
+
errorMessage.askDoctor = t('createPost.message.askDoctor');
|
|
3672
|
+
hasError = true;
|
|
3673
|
+
}
|
|
3596
3674
|
if (imageFiles && imageFiles.length > 10) {
|
|
3597
3675
|
errorMessage.photos = t('createPost.message.photoMaxium');
|
|
3598
3676
|
hasError = true;
|
|
@@ -3633,94 +3711,92 @@ const CreateNewPostContentV2 = ({ className, style, onClose, onPostCreatedEdited
|
|
|
3633
3711
|
console.log(topicsList);
|
|
3634
3712
|
const submitPost = (uncategorized) => __awaiter(void 0, void 0, void 0, function* () {
|
|
3635
3713
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
description: descriptionValue,
|
|
3642
|
-
communityId: String((currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.id) || ''),
|
|
3643
|
-
imageFiles,
|
|
3644
|
-
previewUrl,
|
|
3645
|
-
topicIds: selectedTopics === null || selectedTopics === void 0 ? void 0 : selectedTopics.map((topic) => String(topic.id || '')).filter(Boolean),
|
|
3646
|
-
locale,
|
|
3647
|
-
sanitizeFunction,
|
|
3648
|
-
categoryCommunityId: String((currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.mappedCategoryId) || ''),
|
|
3649
|
-
categoryTopicIds: selectedTopics === null || selectedTopics === void 0 ? void 0 : selectedTopics.map((topic) => String((topic === null || topic === void 0 ? void 0 : topic.mappedCategoryId) || '')).filter(Boolean),
|
|
3650
|
-
isAnonymous: (postActionValue === null || postActionValue === void 0 ? void 0 : postActionValue.value) === 'anonymous' ? 1 : 0,
|
|
3651
|
-
isAskDoctor: isAskDoctor ? 1 : 0,
|
|
3652
|
-
introUrl: '',
|
|
3653
|
-
});
|
|
3654
|
-
if (articleId) {
|
|
3655
|
-
bodyFormData.append('article_id', articleId);
|
|
3656
|
-
}
|
|
3657
|
-
console.log(uncategorized);
|
|
3658
|
-
let res;
|
|
3659
|
-
if (isInEditMode) {
|
|
3660
|
-
if (editPostData === null || editPostData === void 0 ? void 0 : editPostData.id) {
|
|
3661
|
-
res = yield editPost({
|
|
3662
|
-
id: editPostData.id,
|
|
3663
|
-
formData: bodyFormData,
|
|
3664
|
-
locale,
|
|
3665
|
-
});
|
|
3714
|
+
if (!isLoadingSubmit) {
|
|
3715
|
+
setIsLoadingSubmit(true);
|
|
3716
|
+
const isError = validationPost();
|
|
3717
|
+
if (isError) {
|
|
3718
|
+
return setIsLoadingSubmit(false);
|
|
3666
3719
|
}
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3720
|
+
const bodyFormData = yield getPostFormData({
|
|
3721
|
+
title: titleValue,
|
|
3722
|
+
description: descriptionValue,
|
|
3723
|
+
communityId: String((currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.id) || ''),
|
|
3724
|
+
imageFiles,
|
|
3725
|
+
previewUrl,
|
|
3726
|
+
topicIds: selectedTopics === null || selectedTopics === void 0 ? void 0 : selectedTopics.map((topic) => String(topic.id || '')).filter(Boolean),
|
|
3671
3727
|
locale,
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
// editPostData ? 'editPost' : 'createPost'
|
|
3679
|
-
// }&askDoctor=${resData?.is_question ? 'true' : 'false'}`
|
|
3680
|
-
// const postHref = `${getCurrentBaseUrl(locale)}${togetherBasePath}/${
|
|
3681
|
-
// resData?.community?.slug
|
|
3682
|
-
// }/${resData?.slug}/?${params}`
|
|
3683
|
-
// window.location.href = postHref
|
|
3684
|
-
pushNotifications({
|
|
3685
|
-
message: isInEditMode
|
|
3686
|
-
? t('updatePost.popup.success')
|
|
3687
|
-
: t('createPost.popup.success'),
|
|
3688
|
-
type: 'success',
|
|
3728
|
+
sanitizeFunction,
|
|
3729
|
+
categoryCommunityId: String((currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.mappedCategoryId) || ''),
|
|
3730
|
+
categoryTopicIds: selectedTopics === null || selectedTopics === void 0 ? void 0 : selectedTopics.map((topic) => String((topic === null || topic === void 0 ? void 0 : topic.mappedCategoryId) || '')).filter(Boolean),
|
|
3731
|
+
isAnonymous: (postActionValue === null || postActionValue === void 0 ? void 0 : postActionValue.value) === 'anonymous' ? 1 : 0,
|
|
3732
|
+
isAskDoctor: toBoolean(isAskDoctor) ? 1 : 0,
|
|
3733
|
+
introUrl: '',
|
|
3689
3734
|
});
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3735
|
+
if (articleId) {
|
|
3736
|
+
bodyFormData.append('article_id', articleId);
|
|
3737
|
+
}
|
|
3738
|
+
console.log(uncategorized);
|
|
3739
|
+
let res;
|
|
3740
|
+
if (isInEditMode) {
|
|
3741
|
+
if (editPostData === null || editPostData === void 0 ? void 0 : editPostData.id) {
|
|
3742
|
+
res = yield editPost({
|
|
3743
|
+
id: editPostData.id,
|
|
3744
|
+
formData: bodyFormData,
|
|
3745
|
+
locale,
|
|
3746
|
+
});
|
|
3701
3747
|
}
|
|
3702
3748
|
}
|
|
3703
|
-
else
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3749
|
+
else {
|
|
3750
|
+
res = yield createPost({
|
|
3751
|
+
formData: bodyFormData,
|
|
3752
|
+
locale,
|
|
3753
|
+
isArticleComment: true,
|
|
3708
3754
|
});
|
|
3709
|
-
onClose && onClose();
|
|
3710
3755
|
}
|
|
3711
|
-
|
|
3756
|
+
const resData = res === null || res === void 0 ? void 0 : res.data;
|
|
3757
|
+
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)) {
|
|
3712
3758
|
pushNotifications({
|
|
3713
|
-
message:
|
|
3714
|
-
|
|
3759
|
+
message: isInEditMode
|
|
3760
|
+
? t('updatePost.popup.success')
|
|
3761
|
+
: t('createPost.popup.success'),
|
|
3762
|
+
type: 'success',
|
|
3715
3763
|
});
|
|
3716
|
-
|
|
3764
|
+
onCreateEditSuccess(resData);
|
|
3717
3765
|
}
|
|
3718
3766
|
else {
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3767
|
+
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') {
|
|
3768
|
+
pushNotifications({
|
|
3769
|
+
title: t('notification.post.blocked.title'),
|
|
3770
|
+
message: t('notification.post.blocked.message'),
|
|
3771
|
+
type: 'danger',
|
|
3772
|
+
});
|
|
3773
|
+
if (res.messages.moderation.words) {
|
|
3774
|
+
setBannedWords(res.messages.moderation.words);
|
|
3775
|
+
}
|
|
3776
|
+
}
|
|
3777
|
+
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') {
|
|
3778
|
+
pushNotifications({
|
|
3779
|
+
title: t('notification.post.suspect.title'),
|
|
3780
|
+
message: t('notification.post.suspect.message'),
|
|
3781
|
+
type: 'warning',
|
|
3782
|
+
});
|
|
3783
|
+
onClose && onClose();
|
|
3784
|
+
}
|
|
3785
|
+
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')); })) {
|
|
3786
|
+
pushNotifications({
|
|
3787
|
+
message: t('notification.suspend.message'),
|
|
3788
|
+
type: 'danger',
|
|
3789
|
+
});
|
|
3790
|
+
onClose && onClose();
|
|
3791
|
+
}
|
|
3792
|
+
else {
|
|
3793
|
+
pushNotifications({
|
|
3794
|
+
message: ((_j = res === null || res === void 0 ? void 0 : res.messages) === null || _j === void 0 ? void 0 : _j[0]) || t('notification.failure'),
|
|
3795
|
+
type: 'danger',
|
|
3796
|
+
});
|
|
3797
|
+
}
|
|
3723
3798
|
}
|
|
3799
|
+
setIsLoadingSubmit(false);
|
|
3724
3800
|
}
|
|
3725
3801
|
});
|
|
3726
3802
|
const getFirstOrderErroKey = (orderKey) => {
|
|
@@ -3757,6 +3833,7 @@ const CreateNewPostContentV2 = ({ className, style, onClose, onPostCreatedEdited
|
|
|
3757
3833
|
return;
|
|
3758
3834
|
}
|
|
3759
3835
|
submitPost();
|
|
3836
|
+
// TODO: Current hard to keep AI suggest community
|
|
3760
3837
|
if (stepPost)
|
|
3761
3838
|
return;
|
|
3762
3839
|
if (isInEditMode) {
|
|
@@ -3857,28 +3934,39 @@ const CreateNewPostContentV2 = ({ className, style, onClose, onPostCreatedEdited
|
|
|
3857
3934
|
zIndex: 10,
|
|
3858
3935
|
width: 'calc(100% + 20px)',
|
|
3859
3936
|
} })))),
|
|
3860
|
-
React__default.createElement(CreatePostTitle, { className: "input-group", bannedWords: bannedWords, value: titleValue, error: error, placeholder: isAskDoctor
|
|
3937
|
+
React__default.createElement(CreatePostTitle, { className: "input-group", bannedWords: bannedWords, value: titleValue, error: error, placeholder: toBoolean(isAskDoctor)
|
|
3861
3938
|
? t('createPost.post.askDoctor.title')
|
|
3862
3939
|
: t('createPost.post.title'), onChange: setTitleValue }),
|
|
3863
3940
|
specialCharErr && (React__default.createElement(StyledError, null,
|
|
3864
3941
|
React__default.createElement(Info, { isSolid: true, color: theme.colors.red700, size: 14 }),
|
|
3865
3942
|
React__default.createElement(Text, { size: "p3", as: "span", color: theme.colors.red700 }, t('createPost.popup.specialCharErr')))),
|
|
3866
3943
|
React__default.createElement("div", { className: "input-group" },
|
|
3867
|
-
React__default.createElement(CreatePostDescription, { bannedWords: bannedWords, value: descriptionValue, placeholder: isAskDoctor
|
|
3944
|
+
React__default.createElement(CreatePostDescription, { bannedWords: bannedWords, value: descriptionValue, placeholder: toBoolean(isAskDoctor)
|
|
3868
3945
|
? t('createPost.post.askDoctor.description')
|
|
3869
3946
|
: t('createPost.post.description'), onChange: (v) => {
|
|
3870
3947
|
setDescriptionValue(v);
|
|
3871
3948
|
removeKeyError('description');
|
|
3872
3949
|
}, onPreviewUrlChange: setPreviewUrl, onInvalidUrlsChange: setInvalidUrls, onImageFilesChange: setImageFiles, imageFiles: imageFiles, className: `${error && (error === null || error === void 0 ? void 0 : error.description) ? 'error-description' : ''}`, footerEditor: React__default.createElement(React__default.Fragment, null,
|
|
3873
|
-
React__default.createElement(
|
|
3874
|
-
React__default.createElement(
|
|
3875
|
-
React__default.createElement(
|
|
3876
|
-
React__default.createElement(
|
|
3877
|
-
|
|
3878
|
-
React__default.createElement("div", { className: "
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3950
|
+
React__default.createElement(StyledQuestionWrapperContainer, { className: error && (error === null || error === void 0 ? void 0 : error.description) ? 'error-description' : '' },
|
|
3951
|
+
React__default.createElement(StyledIsQuestionWrapper, null,
|
|
3952
|
+
React__default.createElement(StyledIsQuestion, { color: theme.colors.primaryBase },
|
|
3953
|
+
React__default.createElement("div", { className: "switch-label" },
|
|
3954
|
+
React__default.createElement(Ask, { isMarryBaby: isMarryBaby, size: isMarryBaby ? 32 : 24, color: theme.colors.primaryBase, className: "label-icon" }),
|
|
3955
|
+
React__default.createElement("div", { className: "wrapper-text" },
|
|
3956
|
+
React__default.createElement("div", { className: "label-txt" }, t('createPost.askDoctor.description')))),
|
|
3957
|
+
React__default.createElement(StyleSwitchButton, { value: isAskDoctor, onChange: (val) => {
|
|
3958
|
+
setIsAskDoctor(val);
|
|
3959
|
+
}, className: isMarryBaby ? 'segmented-marry-baby' : '', data: [
|
|
3960
|
+
{
|
|
3961
|
+
label: t('switchBtn.yes'),
|
|
3962
|
+
value: 'true',
|
|
3963
|
+
},
|
|
3964
|
+
{
|
|
3965
|
+
label: t('switchBtn.no'),
|
|
3966
|
+
value: 'false',
|
|
3967
|
+
},
|
|
3968
|
+
] })),
|
|
3969
|
+
error && (error === null || error === void 0 ? void 0 : error.askDoctor) && (React__default.createElement("div", { className: "error-choice-question" }, error.askDoctor)))),
|
|
3882
3970
|
error && (error === null || error === void 0 ? void 0 : error.description) && (React__default.createElement(StyledError, { style: { margin: '4px 0 0' } },
|
|
3883
3971
|
React__default.createElement(Text, { size: "p5", as: "span", color: theme.colors.red600 }, error.description)))) })),
|
|
3884
3972
|
stepPost === 'step_community' && (React__default.createElement(CreatePostCommunity, { communitiesList: communitiesList, currentCommunity: currentCommunity, selectedTopics: selectedTopics, communityValue: communityValue, defaultCommunity: forceSelectCommunity, error: error, isFullscreen: false, isMarryBaby: isMarryBaby, isInEditMode: isInEditMode, isLoadingSuggest: isLoadingSuggest, setSelectedTopics: setSelectedTopics, setCommunityValue: setCommunityValue, removeKeyError: removeKeyError, setStepPost: setStepPost, onSubmitPost: submitPost })),
|
|
@@ -3889,11 +3977,7 @@ const CreateNewPostContentV2 = ({ className, style, onClose, onPostCreatedEdited
|
|
|
3889
3977
|
validationUploadPhoto(data);
|
|
3890
3978
|
} }),
|
|
3891
3979
|
React__default.createElement("div", { className: "action-wrapper" },
|
|
3892
|
-
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: onSubmitContinuePost, loading: isLoadingSuggest, disabled: isLoadingSuggest },
|
|
3893
|
-
/* {isInEditMode
|
|
3894
|
-
? t('createPost.popup.submit')
|
|
3895
|
-
: t('onboarding.button.continue')} */
|
|
3896
|
-
t('createPost.popup.submit'))))));
|
|
3980
|
+
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: onSubmitContinuePost, loading: isLoadingSuggest || isLoadingSubmit, disabled: isLoadingSuggest || isLoadingSubmit }, t('createPost.popup.submit'))))));
|
|
3897
3981
|
};
|
|
3898
3982
|
|
|
3899
3983
|
const StyledTopicSelectList = styled.div `
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useState, useEffect } from 'react';
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import { theme } from './miscTheme.js';
|
|
4
|
-
import { I as ImageWrap } from './useScreenSize-
|
|
4
|
+
import { I as ImageWrap } from './useScreenSize-4a774778.js';
|
|
5
5
|
|
|
6
6
|
const StyledAvatar = styled.div `
|
|
7
7
|
background-color: var(--background-color, transparent);
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { _ as __rest } from './tslib.es6-
|
|
1
|
+
import { _ as __rest } from './tslib.es6-11765615.js';
|
|
2
2
|
import React__default, { createContext, useContext } from 'react';
|
|
3
3
|
import { useMantineTheme } from '@mantine/core';
|
|
4
4
|
import { useForm, isNotEmpty } from '@mantine/form';
|
|
5
|
-
import './index-
|
|
6
|
-
import { D as DatePicker } from './index-
|
|
7
|
-
import './index-
|
|
8
|
-
import './index-
|
|
9
|
-
import './index.styles-
|
|
10
|
-
import { u as useTranslations } from './index-
|
|
5
|
+
import './index-5a1b18fe.js';
|
|
6
|
+
import { D as DatePicker } from './index-493cae6d.js';
|
|
7
|
+
import './index-9c8a599d.js';
|
|
8
|
+
import './index-45a645d6.js';
|
|
9
|
+
import './index.styles-84a7085d.js';
|
|
10
|
+
import { u as useTranslations } from './index-be5ba37e.js';
|
|
11
11
|
import '@mantine/hooks';
|
|
12
|
-
import './useMantineLocale-
|
|
13
|
-
import './index-
|
|
14
|
-
import './index-
|
|
15
|
-
import './utils-
|
|
16
|
-
import './index-
|
|
17
|
-
import './other-
|
|
18
|
-
import './index-
|
|
19
|
-
import { H as HealthToolFormWrapper } from './index-
|
|
20
|
-
import { G as GenderOptionControl } from './index-
|
|
12
|
+
import './useMantineLocale-4f58a092.js';
|
|
13
|
+
import './index-bd0c1846.js';
|
|
14
|
+
import './index-6c4db0e7.js';
|
|
15
|
+
import './utils-860b86e8.js';
|
|
16
|
+
import './index-4e04114c.js';
|
|
17
|
+
import './other-b55c2cac.js';
|
|
18
|
+
import './index-6e0b2ec9.js';
|
|
19
|
+
import { H as HealthToolFormWrapper } from './index-91c967e5.js';
|
|
20
|
+
import { G as GenderOptionControl } from './index-84d86b55.js';
|
|
21
21
|
import { CalendarMB } from '@hhgtech/icons/other';
|
|
22
22
|
|
|
23
23
|
const BabyVaccineFormContext = createContext({});
|