@hhgtech/hhg-components 1.29.340 → 1.29.341-beta-2
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-1a6374f3.js → LastPeriod-9eefea2a.js} +1 -1
- package/build/{MobileBottomNavigationIcon-c5c86978.js → MobileBottomNavigationIcon-a0ffcd8e.js} +3 -3
- package/build/{Spinner-76126de0.js → Spinner-d6bb966b.js} +1 -1
- package/build/{WhatsApp-97f43937.js → WhatsApp-b529958a.js} +1 -1
- package/build/adapters.js +19 -19
- package/build/atoms.js +47 -47
- 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 +91 -91
- package/build/{constants-f300306e.js → constants-7af1ad00.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-5bc451dd.js → core-1d83981c.js} +1 -1
- package/build/{dataTransform-ed8fe670.js → dataTransform-6b597ed3.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-6fed0488.js → editor-35d94fad.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/{LastPeriod-90585413.js → LastPeriod-c74bdd8b.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-858da525.js → MobileBottomNavigationIcon-29e019c8.js} +3 -3
- package/build/esm/{Spinner-be0e4092.js → Spinner-3b1b67e0.js} +1 -1
- package/build/esm/{WhatsApp-78edc199.js → WhatsApp-a6e3103b.js} +1 -1
- package/build/esm/adapters.js +19 -19
- package/build/esm/atoms.js +47 -47
- 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 +91 -91
- package/build/esm/{constants-ecb29762.js → constants-10fac832.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-87c7b461.js → core-4e786b97.js} +1 -1
- package/build/esm/{dataTransform-87d9625e.js → dataTransform-5e753a25.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-d4330cef.js → editor-208df683.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/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 +5 -0
- package/build/esm/i18n-values/hi-IN.js +5 -0
- package/build/esm/i18n-values/id-ID.js +5 -0
- package/build/esm/i18n-values/km-KH.js +5 -0
- package/build/esm/i18n-values/ms-MY.js +5 -0
- package/build/esm/i18n-values/my-MM.js +5 -0
- package/build/esm/i18n-values/th-TH.js +5 -0
- package/build/esm/i18n-values/tl-PH.js +5 -0
- package/build/esm/i18n-values/vi-VN.js +5 -0
- package/build/esm/i18n-values/vi-VN_MB.js +5 -0
- package/build/esm/i18n-values/zh-TW.js +5 -0
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-f5dad8b7.js → index-00d2416f.js} +6 -6
- package/build/esm/{index-839868dd.js → index-0e75b7c4.js} +18 -18
- package/build/esm/{index-f3792616.js → index-1291feef.js} +20 -20
- package/build/esm/{index-d43b616f.js → index-13ac8c47.js} +1 -1
- package/build/esm/{index-7e4b41a6.js → index-180d1faa.js} +3 -3
- package/build/esm/{index-1504c2aa.js → index-19f88c7e.js} +2 -2
- package/build/esm/{index-b10f98a4.js → index-1b06e628.js} +2 -2
- package/build/esm/{index-34be1eba.js → index-1d317a46.js} +3 -3
- package/build/esm/{index-4ce0d02d.js → index-1ec63921.js} +2 -2
- package/build/esm/{index-4e6ef889.js → index-1fdf797b.js} +2 -2
- package/build/esm/{index-e0229c87.js → index-246a053e.js} +1 -1
- package/build/esm/{index-1eae6dad.js → index-24fa332c.js} +18 -18
- package/build/esm/{index-cf3f2487.js → index-2ccbdd1f.js} +2 -2
- package/build/esm/{index-e2e59f48.js → index-2ed7ad8b.js} +2 -2
- package/build/esm/{index-1e9f4237.js → index-3c2d9188.js} +17 -17
- package/build/esm/{index-abc8e5a2.js → index-3e9b48e7.js} +17 -17
- package/build/esm/{index-82f8ee8c.js → index-46fe3ecd.js} +3 -3
- package/build/esm/{index-83808412.js → index-4e80521b.js} +16 -16
- package/build/esm/{index-0f1543d7.js → index-572335b6.js} +10 -10
- package/build/esm/{index-bf299dbd.js → index-61db2247.js} +1 -1
- package/build/esm/{index-019adbaf.js → index-667c32a0.js} +1 -1
- package/build/esm/{index-8effb8bb.js → index-6a731a36.js} +16 -16
- package/build/esm/{index-d7b5a6d0.js → index-6e01d926.js} +13 -13
- package/build/esm/{index-72ce6bda.js → index-6eb890a9.js} +6 -6
- package/build/esm/{index-5ea23630.js → index-6eed8b3d.js} +3 -3
- package/build/esm/{index-123c081a.js → index-70b8d99b.js} +7 -7
- package/build/esm/{index-0b7d8963.js → index-74735e6d.js} +2 -2
- package/build/esm/{index-e5a32d34.js → index-763cdb62.js} +1 -1
- package/build/esm/{index-5ff73b27.js → index-7bb53d5b.js} +16 -16
- package/build/esm/{index-13fce5ac.js → index-7ecbd997.js} +15 -15
- package/build/esm/{index-f52571df.js → index-807b078a.js} +1 -1
- package/build/esm/{index-eb189e33.js → index-80c66805.js} +11 -11
- package/build/esm/{index-936e8df5.js → index-8145fc1a.js} +30 -30
- package/build/esm/{index-00f09cf6.js → index-830617a3.js} +16 -16
- package/build/esm/{index-a62790f3.js → index-865aa557.js} +178 -110
- package/build/esm/{index-1fd8f540.js → index-8a2f5132.js} +24 -24
- package/build/esm/{index-44468b41.js → index-8d1b0ad1.js} +2 -2
- package/build/esm/{index-e82581e5.js → index-946aa38b.js} +3 -3
- package/build/esm/{index-4111dadd.js → index-94d4a4e3.js} +2 -2
- package/build/esm/{index-555a1475.js → index-97aab36e.js} +21 -21
- package/build/esm/{index-ee1def10.js → index-982321d5.js} +6 -6
- package/build/esm/{index-a04fca87.js → index-9899a453.js} +15 -15
- package/build/esm/{index-2632aa93.js → index-9b6f74f8.js} +1 -1
- package/build/esm/{index-91ab046b.js → index-a45bba40.js} +2 -2
- package/build/esm/{index-58761cf6.js → index-ace93f70.js} +18 -18
- package/build/esm/{index-8908050f.js → index-affbfb29.js} +13 -13
- package/build/esm/{index-bd07e913.js → index-b3c118a5.js} +5 -5
- package/build/esm/{index-32e6be45.js → index-bb993df3.js} +2 -2
- package/build/esm/{index-2e63b230.js → index-bbe976f0.js} +13 -13
- package/build/esm/{index-37f903a4.js → index-c01d3a42.js} +32 -32
- package/build/esm/{index-a5b7cee7.js → index-c141fd67.js} +5 -5
- package/build/esm/{index-adc9b0f5.js → index-c1d7b626.js} +1 -1
- package/build/esm/{index-2c1feeb6.js → index-d074bdba.js} +2 -2
- package/build/esm/{index-d66fae79.js → index-d6fe7854.js} +7 -7
- package/build/esm/{index-a3f67580.js → index-ddbc04ab.js} +3 -3
- package/build/esm/{index-4af76041.js → index-e061ea1b.js} +24 -24
- package/build/esm/{index-e236a5ee.js → index-e7e39350.js} +6 -6
- package/build/esm/{index-2337fa14.js → index-e901f471.js} +2 -2
- package/build/esm/{index-03288bcf.js → index-eb498ba6.js} +4 -4
- package/build/esm/{index-7f413fc2.js → index-ebc5d978.js} +1 -1
- package/build/esm/{index-87c1194c.js → index-f2502fa0.js} +13 -13
- package/build/esm/{index-bc14da4f.js → index-f2c42d02.js} +3 -3
- package/build/esm/index.js +113 -113
- package/build/esm/{labelSorting-3e75f9ce.js → labelSorting-8cac5f43.js} +4 -4
- package/build/esm/lead.js +25 -25
- package/build/esm/{logoIcon-f7b17d63.js → logoIcon-25fa5ebd.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-4c7a5a88.js → post-033bf211.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 +48 -36
- package/build/esm/{store-d898de37.js → store-16e2912e.js} +4 -4
- 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-46b6c332.js → surveyThankyouCard-b01c7140.js} +5 -5
- package/build/esm/together/components/molecules/createNewPostContentV2/createPostCommunity/commonCommunity/index.d.ts +3 -3
- package/build/esm/together/components/molecules/createNewPostContentV2/createPostCommunity/index.d.ts +5 -5
- package/build/esm/together/components/molecules/createNewPostContentV2/createPostCommunity/suggestedCommunity/index.d.ts +2 -2
- package/build/esm/together/components/molecules/createNewPostContentV2/index.d.ts +2 -3
- package/build/esm/together/components/molecules/createNewPostContentV2/topicSelectList/index.d.ts +8 -3
- package/build/esm/together/interfaces/types.d.ts +5 -0
- package/build/esm/together.js +53 -53
- 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 -48
- 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-7f9c09b5.js → treePopoverMenu-855a4f52.js} +19 -19
- package/build/esm/{types-f5af3308.js → types-8e78d42b.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-ad0f6153.js → useCategory-411fa688.js} +5 -5
- package/build/esm/{useHealthToolCache-31742124.js → useHealthToolCache-c41be258.js} +1 -1
- package/build/esm/{useMantineLocale-374d7d18.js → useMantineLocale-d3f0ec10.js} +6 -6
- package/build/esm/{usePlacesAutocomplete-765a96ce.js → usePlacesAutocomplete-b3aa6142.js} +1 -1
- package/build/esm/{useScreenSize-77e1ec29.js → useScreenSize-7c7dd78f.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +9 -9
- package/build/esm/{utils-1711bf04.js → utils-61465473.js} +2 -2
- package/build/esm/{utils-062a0cfa.js → utils-c44c3f5b.js} +2 -2
- package/build/esm/{utils-16593d15.js → utils-f8a59939.js} +3 -3
- package/build/esm/vaccination.js +21 -21
- 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.js +13 -13
- package/build/i18n/translationKeys.d.ts +1 -1
- package/build/i18n-values/en-PH.js +5 -0
- package/build/i18n-values/hi-IN.js +5 -0
- package/build/i18n-values/id-ID.js +5 -0
- package/build/i18n-values/km-KH.js +5 -0
- package/build/i18n-values/ms-MY.js +5 -0
- package/build/i18n-values/my-MM.js +5 -0
- package/build/i18n-values/th-TH.js +5 -0
- package/build/i18n-values/tl-PH.js +5 -0
- package/build/i18n-values/vi-VN.js +5 -0
- package/build/i18n-values/vi-VN_MB.js +5 -0
- package/build/i18n-values/zh-TW.js +5 -0
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-679373d9.js → index-027d9cf5.js} +1 -1
- package/build/{index-73e7b24c.js → index-03415644.js} +2 -2
- package/build/{index-e833d31d.js → index-0570b1ef.js} +1 -1
- package/build/{index-16b266f3.js → index-09c30d26.js} +20 -20
- package/build/{index-24dd62ce.js → index-09f6f9ec.js} +3 -3
- package/build/{index-eb0a6dd1.js → index-0f73a330.js} +16 -16
- package/build/{index-f7194690.js → index-1a1eb46d.js} +6 -6
- package/build/{index-62ca9eb9.js → index-1b75104a.js} +13 -13
- package/build/{index-cbf4864b.js → index-1e16a525.js} +5 -5
- package/build/{index-107b2539.js → index-2164695d.js} +2 -2
- package/build/{index-bdba2d3a.js → index-27ab0db5.js} +3 -3
- package/build/{index-d2eeb6ea.js → index-2b92a7f2.js} +11 -11
- package/build/{index-d06471d1.js → index-334d8879.js} +10 -10
- package/build/{index-7806b087.js → index-3aba0ee4.js} +7 -7
- package/build/{index-c578d779.js → index-3af4f0a4.js} +6 -6
- package/build/{index-963b6444.js → index-3b148276.js} +18 -18
- package/build/{index-6acb6793.js → index-3fdce15c.js} +16 -16
- package/build/{index-f25b2fa4.js → index-442f30e6.js} +17 -17
- package/build/{index-9de80aaf.js → index-4471d931.js} +1 -1
- package/build/{index-90ff088b.js → index-4887f1d2.js} +2 -2
- package/build/{index-fd84c125.js → index-4eca23e2.js} +1 -1
- package/build/{index-724294c9.js → index-52ac7db6.js} +3 -3
- package/build/{index-bc2367a8.js → index-5f72166c.js} +1 -1
- package/build/{index-87d420a6.js → index-720362b6.js} +13 -13
- package/build/{index-1d6e363b.js → index-75323ad7.js} +2 -2
- package/build/{index-b670f6a7.js → index-7c12cb71.js} +2 -2
- package/build/{index-3ac0dc17.js → index-7cfb98fc.js} +1 -1
- package/build/{index-2db8fdfd.js → index-85b24adb.js} +17 -17
- package/build/{index-23225bea.js → index-8e1dbca2.js} +24 -24
- package/build/{index-d125712a.js → index-91ce7046.js} +24 -24
- package/build/{index-a3373cf4.js → index-92a81125.js} +30 -30
- package/build/{index-9609f03e.js → index-93d20ef3.js} +3 -3
- package/build/{index-7fcc98e3.js → index-9624a1f5.js} +2 -2
- package/build/{index-6c8d0207.js → index-9d23de66.js} +2 -2
- package/build/{index-448ed4a1.js → index-a0b8b752.js} +21 -21
- package/build/{index-605d1690.js → index-a137f57d.js} +5 -5
- package/build/{index-91fdb86b.js → index-a284492f.js} +16 -16
- package/build/{index-5e2a2480.js → index-a83bc735.js} +1 -1
- package/build/{index-61db4e9f.js → index-a85b6c62.js} +2 -2
- package/build/{index-58ab8d09.js → index-aa53b3b1.js} +2 -2
- package/build/{index-f5509a6e.js → index-adacb710.js} +2 -2
- package/build/{index-877f210f.js → index-b36f7e6a.js} +6 -6
- package/build/{index-2e4b0f2b.js → index-b434a94a.js} +6 -6
- package/build/{index-ffc89258.js → index-bf221387.js} +13 -13
- package/build/{index-6d175c73.js → index-c1e510a4.js} +7 -7
- package/build/{index-0a9e192e.js → index-c4e0ff93.js} +2 -2
- package/build/{index-4e4572d9.js → index-c6246d25.js} +178 -110
- package/build/{index-bfa5c299.js → index-cb55c26a.js} +32 -32
- package/build/{index-c8c3c797.js → index-cc8eab4f.js} +3 -3
- package/build/{index-f5fa9c34.js → index-ce0c12ef.js} +4 -4
- package/build/{index-657e8416.js → index-d6b61fb2.js} +16 -16
- package/build/{index-f4ccfca1.js → index-e138e6ed.js} +2 -2
- package/build/{index-89facf04.js → index-e3ad6c33.js} +15 -15
- package/build/{index-1cd0877e.js → index-e5a8e680.js} +18 -18
- package/build/{index-f34ed5c5.js → index-ed245754.js} +13 -13
- package/build/{index-6c67dbd7.js → index-eee099c9.js} +2 -2
- package/build/{index-08c3c80a.js → index-f0d39dec.js} +3 -3
- package/build/{index-7028be28.js → index-f2304e1f.js} +18 -18
- package/build/{index-a409772d.js → index-f25a2fb7.js} +1 -1
- package/build/{index-2797c1c7.js → index-f365926c.js} +3 -3
- package/build/{index-a73c7607.js → index-f6a80236.js} +1 -1
- package/build/{index-52d58ff1.js → index-f757868e.js} +15 -15
- package/build/index.js +113 -113
- package/build/{labelSorting-55c2f473.js → labelSorting-4377a645.js} +4 -4
- package/build/lead.js +25 -25
- package/build/{logoIcon-c210497d.js → logoIcon-80988ba8.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-9fe1b1ac.js → post-1f928c0b.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 +47 -35
- package/build/{store-4d6b2eef.js → store-61c85bcc.js} +4 -4
- package/build/subot.js +32 -32
- package/build/surveyOrPremiumBanner.js +31 -31
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-9cdac971.js → surveyThankyouCard-1d5838d8.js} +5 -5
- package/build/together/components/molecules/createNewPostContentV2/createPostCommunity/commonCommunity/index.d.ts +3 -3
- package/build/together/components/molecules/createNewPostContentV2/createPostCommunity/index.d.ts +5 -5
- package/build/together/components/molecules/createNewPostContentV2/createPostCommunity/suggestedCommunity/index.d.ts +2 -2
- package/build/together/components/molecules/createNewPostContentV2/index.d.ts +2 -3
- package/build/together/components/molecules/createNewPostContentV2/topicSelectList/index.d.ts +8 -3
- package/build/together/interfaces/types.d.ts +5 -0
- package/build/together.js +53 -53
- package/build/togetherApiUtils.js +4 -4
- package/build/togetherAtoms.js +30 -30
- package/build/togetherComponentGlobalContext.js +4 -4
- package/build/togetherMolecules.js +48 -48
- 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-2f711f7c.js → treePopoverMenu-51a48327.js} +19 -19
- package/build/{types-4536b0a8.js → types-368cc9e4.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-2c791f02.js → useCategory-f43d5734.js} +5 -5
- package/build/{useHealthToolCache-571b4ad1.js → useHealthToolCache-b3f4625c.js} +1 -1
- package/build/{useMantineLocale-a663d23a.js → useMantineLocale-8e0f0db3.js} +6 -6
- package/build/{usePlacesAutocomplete-72c61ff9.js → usePlacesAutocomplete-f514fcd0.js} +1 -1
- package/build/{useScreenSize-649868cb.js → useScreenSize-ccc634ca.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +9 -9
- package/build/{utils-d4f5c7a2.js → utils-2fdb578d.js} +3 -3
- package/build/{utils-72e979f1.js → utils-3dc7a4f2.js} +2 -2
- package/build/{utils-3bf46111.js → utils-9d5c44e7.js} +2 -2
- package/build/vaccination.js +21 -21
- package/package.json +1 -1
- /package/build/{BMI_BOYS.percentile.monthly-eb315095.js → BMI_BOYS.percentile.monthly-02911531.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-69cc3a94.js → BMI_BOYS.percentile.weekly-597e945b.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-8001d98c.js → BMI_BOYS.percentile.yearly-ca7e61f3.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-5181dd2c.js → BMI_BOYS.zscore.monthly-e2770173.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-4e764f75.js → BMI_BOYS.zscore.weekly-b65fb031.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-3f0c8df8.js → BMI_BOYS.zscore.yearly-7d09e7ee.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-e3913ee4.js → BMI_GIRLS.percentile.monthly-913542f8.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-c3f497dc.js → BMI_GIRLS.percentile.weekly-f5055571.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-088c756b.js → BMI_GIRLS.percentile.yearly-0dc6142c.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-02e032c3.js → BMI_GIRLS.zscore.monthly-22c58cb4.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-c196d6fa.js → BMI_GIRLS.zscore.weekly-8face7ac.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-63296930.js → BMI_GIRLS.zscore.yearly-f4af356a.js} +0 -0
- /package/build/{ChevronDown-1ec29fc9.js → ChevronDown-f09d8d57.js} +0 -0
- /package/build/{Close-82e58de8.js → Close-81263912.js} +0 -0
- /package/build/{Google-3b057619.js → Google-9d4c8260.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-a138c344.js → HEAD CIRCUM_BOYS.percentile.monthly-bbe6cac3.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-f95e2775.js → HEAD CIRCUM_BOYS.percentile.weekly-316251f4.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-f310c9eb.js → HEAD CIRCUM_BOYS.percentile.yearly-cb4197ae.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-b1624745.js → HEAD CIRCUM_BOYS.zscore.monthly-4ad81dfb.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-c90ec91e.js → HEAD CIRCUM_BOYS.zscore.weekly-31767820.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-930290d7.js → HEAD CIRCUM_BOYS.zscore.yearly-ad0ec53a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-80fbfe27.js → HEAD CIRCUM_GIRLS.percentile.monthly-f1eb451a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-58da06e2.js → HEAD CIRCUM_GIRLS.percentile.weekly-95e95c4f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-c2529c26.js → HEAD CIRCUM_GIRLS.percentile.yearly-63e41f07.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-74ce7c3b.js → HEAD CIRCUM_GIRLS.zscore.monthly-35c89da5.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-b155babd.js → HEAD CIRCUM_GIRLS.zscore.weekly-202572af.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-7e1a0ad9.js → HEAD CIRCUM_GIRLS.zscore.yearly-85f400e0.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-7e8bdd61.js → HEIGHT_BOYS.percentile.monthly-b43a0e0f.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-9fb83720.js → HEIGHT_BOYS.percentile.weekly-597aee7e.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-f6a791a0.js → HEIGHT_BOYS.percentile.yearly-6f2813e1.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-4e7c9f27.js → HEIGHT_BOYS.zscore.monthly-506f6627.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-5ed0b3b6.js → HEIGHT_BOYS.zscore.weekly-19f1ec85.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-a1e1f16b.js → HEIGHT_BOYS.zscore.yearly-ae5a5cbb.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-8085fb4c.js → HEIGHT_GIRLS.percentile.monthly-9c994ecc.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-5faec400.js → HEIGHT_GIRLS.percentile.weekly-4f2dff00.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-6c0da113.js → HEIGHT_GIRLS.percentile.yearly-debbec37.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-c0880cc0.js → HEIGHT_GIRLS.zscore.monthly-8d6f0970.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-8a4e3801.js → HEIGHT_GIRLS.zscore.weekly-6c2c30b6.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-9f4e388b.js → HEIGHT_GIRLS.zscore.yearly-f65a514b.js} +0 -0
- /package/build/{Locale-75a16190.js → Locale-1e065e34.js} +0 -0
- /package/build/{Visible-1438459a.js → Visible-8685187f.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-3976c0ae.js → WEIGHT_BOYS.percentile.monthly-e7ee06a6.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-62063307.js → WEIGHT_BOYS.percentile.weekly-123009df.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-278ff5b0.js → WEIGHT_BOYS.percentile.yearly-a09ebb9b.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-f4584383.js → WEIGHT_BOYS.zscore.monthly-3e242d32.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-9a7a5c88.js → WEIGHT_BOYS.zscore.weekly-97cc24bc.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-0968b88b.js → WEIGHT_BOYS.zscore.yearly-36566f1c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-30d47d1c.js → WEIGHT_GIRLS.percentile.monthly-fd4c7a74.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-a74ba8d1.js → WEIGHT_GIRLS.percentile.weekly-668b3731.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-ae69e967.js → WEIGHT_GIRLS.percentile.yearly-5d2e1adc.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-f5caa21a.js → WEIGHT_GIRLS.zscore.monthly-624ae9d7.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-246a85c2.js → WEIGHT_GIRLS.zscore.weekly-c058a915.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-13628bd9.js → WEIGHT_GIRLS.zscore.yearly-3bd569b3.js} +0 -0
- /package/build/{animation-87847fc6.js → animation-99bd29ad.js} +0 -0
- /package/build/{constants-bb670df2.js → constants-08bbc729.js} +0 -0
- /package/build/{constants-b2e334f6.js → constants-e08dab3d.js} +0 -0
- /package/build/{constants-9d1ffae7.js → constants-f48bf2f1.js} +0 -0
- /package/build/{dataTransform-1a69af3d.js → dataTransform-e6127b7e.js} +0 -0
- /package/build/{doctor-9e7d5dab.js → doctor-3fbd02e8.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-d97644cf.js → BMI_BOYS.percentile.monthly-cde59a74.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-ddaa4e04.js → BMI_BOYS.percentile.weekly-bf9bedac.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-c265609c.js → BMI_BOYS.percentile.yearly-bfcb4799.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-543553b0.js → BMI_BOYS.zscore.monthly-ce953cda.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-6f92afe4.js → BMI_BOYS.zscore.weekly-9e2ecf80.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-198fba05.js → BMI_BOYS.zscore.yearly-74edb48c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-023545e9.js → BMI_GIRLS.percentile.monthly-084d89b4.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-ca0c3d8a.js → BMI_GIRLS.percentile.weekly-0a610e9b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-c6a57e9f.js → BMI_GIRLS.percentile.yearly-c91889c3.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-f069a265.js → BMI_GIRLS.zscore.monthly-6510f76d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-5c2324fc.js → BMI_GIRLS.zscore.weekly-e8130bee.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-401d41a6.js → BMI_GIRLS.zscore.yearly-48749be4.js} +0 -0
- /package/build/esm/{ChevronDown-66b5c705.js → ChevronDown-7e1d7be3.js} +0 -0
- /package/build/esm/{Close-66729e85.js → Close-eda8cb6b.js} +0 -0
- /package/build/esm/{Google-9896e314.js → Google-12c14ae6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-fa43749e.js → HEAD CIRCUM_BOYS.percentile.monthly-e877078a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-1ef0e3ae.js → HEAD CIRCUM_BOYS.percentile.weekly-4aa35668.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-c0cb0e14.js → HEAD CIRCUM_BOYS.percentile.yearly-b7083b14.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-5645e3d8.js → HEAD CIRCUM_BOYS.zscore.monthly-58e37e42.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-6ad6eedd.js → HEAD CIRCUM_BOYS.zscore.weekly-3fc837d7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-9d1a5064.js → HEAD CIRCUM_BOYS.zscore.yearly-f4ae1f43.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-ac8bf2c5.js → HEAD CIRCUM_GIRLS.percentile.monthly-b7026959.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-bb81c16a.js → HEAD CIRCUM_GIRLS.percentile.weekly-74347545.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-e5f673e5.js → HEAD CIRCUM_GIRLS.percentile.yearly-720df95d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-6be639ea.js → HEAD CIRCUM_GIRLS.zscore.monthly-0d1e58f3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-d60444d8.js → HEAD CIRCUM_GIRLS.zscore.weekly-2dabd4d2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-811fec8c.js → HEAD CIRCUM_GIRLS.zscore.yearly-61207834.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-465e377e.js → HEIGHT_BOYS.percentile.monthly-4d3cf734.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-dcc74cd9.js → HEIGHT_BOYS.percentile.weekly-ab647b2f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-53cf5ade.js → HEIGHT_BOYS.percentile.yearly-10d3af20.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-5452c2c8.js → HEIGHT_BOYS.zscore.monthly-ccfd9a17.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-81451204.js → HEIGHT_BOYS.zscore.weekly-3ed442e3.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-d876531c.js → HEIGHT_BOYS.zscore.yearly-1ddc0ec5.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-9f156ca3.js → HEIGHT_GIRLS.percentile.monthly-0d34da48.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-1edebef6.js → HEIGHT_GIRLS.percentile.weekly-7461c975.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-11108955.js → HEIGHT_GIRLS.percentile.yearly-74138c85.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-8ed6c1a7.js → HEIGHT_GIRLS.zscore.monthly-ba3eb555.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-0aeaa915.js → HEIGHT_GIRLS.zscore.weekly-9c79b8b1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-26b8cb11.js → HEIGHT_GIRLS.zscore.yearly-6e082c06.js} +0 -0
- /package/build/esm/{Locale-14481773.js → Locale-ea6fdb5d.js} +0 -0
- /package/build/esm/{Visible-4027956b.js → Visible-da8c1ddd.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-c586605d.js → WEIGHT_BOYS.percentile.monthly-db00be6d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-b354f6cf.js → WEIGHT_BOYS.percentile.weekly-3a76633f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-25150ce0.js → WEIGHT_BOYS.percentile.yearly-366a6367.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-88527a94.js → WEIGHT_BOYS.zscore.monthly-6df5573b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-666296f3.js → WEIGHT_BOYS.zscore.weekly-55dd9fcc.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-f67d84ec.js → WEIGHT_BOYS.zscore.yearly-6f718b77.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-228e9f48.js → WEIGHT_GIRLS.percentile.monthly-dca1eef7.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-17c3c1fd.js → WEIGHT_GIRLS.percentile.weekly-a6380333.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-8455e1a6.js → WEIGHT_GIRLS.percentile.yearly-2ed67f29.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-ad124ed3.js → WEIGHT_GIRLS.zscore.monthly-ba4f1be0.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-2582d569.js → WEIGHT_GIRLS.zscore.weekly-36cfc8ed.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-94ff115a.js → WEIGHT_GIRLS.zscore.yearly-3aa18fda.js} +0 -0
- /package/build/esm/{animation-4432ef2c.js → animation-277ec211.js} +0 -0
- /package/build/esm/{constants-1446dfa4.js → constants-25de28fa.js} +0 -0
- /package/build/esm/{constants-72a20280.js → constants-358f3638.js} +0 -0
- /package/build/esm/{constants-93e9bca8.js → constants-8489438b.js} +0 -0
- /package/build/esm/{dataTransform-a01b4819.js → dataTransform-d325133c.js} +0 -0
- /package/build/esm/{doctor-e47b59fe.js → doctor-97e9fadc.js} +0 -0
- /package/build/esm/{index-5dd54b2b.js → index-0909c509.js} +0 -0
- /package/build/esm/{index-fc6e19ca.js → index-29e07496.js} +0 -0
- /package/build/esm/{index-c3a2148b.js → index-31826a7c.js} +0 -0
- /package/build/esm/{index-c1586c4b.js → index-43a93c49.js} +0 -0
- /package/build/esm/{index-0cf8b752.js → index-491adeb6.js} +0 -0
- /package/build/esm/{index-0d46a3d6.js → index-74a0b1f7.js} +0 -0
- /package/build/esm/{index-a48b249a.js → index-8dcf9467.js} +0 -0
- /package/build/esm/{index-7bd87b78.js → index-9802cb1c.js} +0 -0
- /package/build/esm/{index-01d9e536.js → index-eb1a6db2.js} +0 -0
- /package/build/esm/{index.styles-79e59f1a.js → index.styles-41f74461.js} +0 -0
- /package/build/esm/{localizeNumberFormat-4bf1b4d7.js → localizeNumberFormat-df38f049.js} +0 -0
- /package/build/esm/{normalizeLink-816f0420.js → normalizeLink-74f0a811.js} +0 -0
- /package/build/esm/{other-dc718449.js → other-04246228.js} +0 -0
- /package/build/esm/{paths-1bc49820.js → paths-aad80498.js} +0 -0
- /package/build/esm/{translationsContext-6aa41d1c.js → translationsContext-3e2e9520.js} +0 -0
- /package/build/esm/{tslib.es6-3bb80a38.js → tslib.es6-74e511e5.js} +0 -0
- /package/build/esm/{types-99dc4540.js → types-b62e3998.js} +0 -0
- /package/build/esm/{useIsInit-97b3cab0.js → useIsInit-752387a1.js} +0 -0
- /package/build/esm/{useOutsideClick-da55119f.js → useOutsideClick-de3022ff.js} +0 -0
- /package/build/esm/{useScrollbarSize-95bbd724.js → useScrollbarSize-a0baa763.js} +0 -0
- /package/build/esm/{useUniqueId-182c5412.js → useUniqueId-46461d21.js} +0 -0
- /package/build/esm/{utils-733c431a.js → utils-86244ba7.js} +0 -0
- /package/build/{index-0df9464b.js → index-0eb20162.js} +0 -0
- /package/build/{index-423bc217.js → index-80a6be79.js} +0 -0
- /package/build/{index-209b7939.js → index-96e4d9d8.js} +0 -0
- /package/build/{index-29b11213.js → index-b9c9b3f6.js} +0 -0
- /package/build/{index-d2f22629.js → index-c4b42bc5.js} +0 -0
- /package/build/{index-ba916406.js → index-cbcae2ca.js} +0 -0
- /package/build/{index-ad869942.js → index-d2aa1303.js} +0 -0
- /package/build/{index-c19f8ad3.js → index-d6c5473c.js} +0 -0
- /package/build/{index-959a5817.js → index-ef3d7e43.js} +0 -0
- /package/build/{index.styles-881b266b.js → index.styles-c8bfc88a.js} +0 -0
- /package/build/{localizeNumberFormat-f8a588fc.js → localizeNumberFormat-8f2bc8be.js} +0 -0
- /package/build/{normalizeLink-f28d8351.js → normalizeLink-512d95f0.js} +0 -0
- /package/build/{other-3b371b3e.js → other-b0296231.js} +0 -0
- /package/build/{paths-5ae03a6a.js → paths-4e0a05d4.js} +0 -0
- /package/build/{translationsContext-cc7e58b5.js → translationsContext-669b2597.js} +0 -0
- /package/build/{tslib.es6-1239a751.js → tslib.es6-09b8177f.js} +0 -0
- /package/build/{types-d7965e5a.js → types-79a33b97.js} +0 -0
- /package/build/{useIsInit-02cfc1e8.js → useIsInit-32fa67bb.js} +0 -0
- /package/build/{useOutsideClick-25c4fe83.js → useOutsideClick-d1bc615f.js} +0 -0
- /package/build/{useScrollbarSize-23b109e5.js → useScrollbarSize-bd3e62e4.js} +0 -0
- /package/build/{useUniqueId-70b095bf.js → useUniqueId-17449f5a.js} +0 -0
- /package/build/{utils-17728d9b.js → utils-226fb693.js} +0 -0
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { a as __awaiter, _ as __rest } from './tslib.es6-
|
|
1
|
+
import { a as __awaiter, _ as __rest } from './tslib.es6-74e511e5.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-8dcf9467.js';
|
|
5
|
+
import { u as useTranslations } from './index-667c32a0.js';
|
|
6
6
|
import innertext from 'innertext';
|
|
7
7
|
import { theme } from './miscTheme.js';
|
|
8
|
-
import { I as Input$1 } from './index-
|
|
8
|
+
import { I as Input$1 } from './index-80c66805.js';
|
|
9
9
|
import { useMantineTheme, Switch, 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-e901f471.js';
|
|
12
|
+
import './index-13ac8c47.js';
|
|
13
|
+
import './index-29e07496.js';
|
|
14
|
+
import './useMantineLocale-d3f0ec10.js';
|
|
15
|
+
import { T as Text } from './index-a45bba40.js';
|
|
16
|
+
import { B as Button } from './index-246a053e.js';
|
|
17
|
+
import './index.styles-41f74461.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, d as IconCloseCircle, g as getDefaultFailNoti, e as getPostFormData, f as editPost, h as createPost } from './index-
|
|
23
|
-
import { T as TogetherComponentGlobalContext, c as callApi, d as getApiPath, p as getCurrentHref, b as callApiWithAuth, q as callApiWithAdminAuth,
|
|
19
|
+
import { M as MediaQueries } from './utils-86244ba7.js';
|
|
20
|
+
import './other-04246228.js';
|
|
21
|
+
import './index-1d317a46.js';
|
|
22
|
+
import { u as useImagePicker, a as PopupFrame, d as IconCloseCircle, g as getDefaultFailNoti, e as getPostFormData, f as editPost, h as createPost } from './index-24fa332c.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-f8a59939.js';
|
|
24
24
|
import styled from '@emotion/styled';
|
|
25
|
-
import { b as formatPost, 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, L as Loading$1 } 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-5e753a25.js';
|
|
26
|
+
import { M as MAX_IMAGE_UPLOADS, B as BEARER_TOKEN_COOKIE } from './constants-358f3638.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-033bf211.js';
|
|
28
|
+
import { C as CardAuthor, L as Loading$1 } from './index-7ecbd997.js';
|
|
29
|
+
import { S as StyledCreatePostDescription$1, R as RichTextEditor$1, I as IconLink } from './editor-208df683.js';
|
|
30
|
+
import { I as Input } from './index-2ccbdd1f.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-74735e6d.js';
|
|
35
|
+
import { C as CardLink } from './index-c141fd67.js';
|
|
36
|
+
import { B as BtnChoice } from './index-9b6f74f8.js';
|
|
37
|
+
import { L as LOCALE } from './Locale-ea6fdb5d.js';
|
|
38
38
|
import * as ReactDOM from 'react-dom';
|
|
39
|
-
import { b as IconArrowLeft } from './index-
|
|
40
|
-
import { B as Button$1 } from './index-
|
|
39
|
+
import { b as IconArrowLeft } from './index-e7e39350.js';
|
|
40
|
+
import { B as Button$1 } from './index-19f88c7e.js';
|
|
41
41
|
import { getCookie } from './miscCookieHelper.js';
|
|
42
|
-
import { a as useUniqueId } from './useUniqueId-
|
|
43
|
-
import { U as UserAvatar } from './index-
|
|
44
|
-
import { P as PopoverMenu } from './index-
|
|
42
|
+
import { a as useUniqueId } from './useUniqueId-46461d21.js';
|
|
43
|
+
import { U as UserAvatar } from './index-2ed7ad8b.js';
|
|
44
|
+
import { P as PopoverMenu } from './index-1b06e628.js';
|
|
45
45
|
import { Close, Check } from '@hhgtech/icons/core';
|
|
46
46
|
|
|
47
47
|
const StyledCreateNewPost$1 = styled.div `
|
|
@@ -1438,10 +1438,18 @@ const StyledTopicSelectList$1 = styled.div `
|
|
|
1438
1438
|
}
|
|
1439
1439
|
`;
|
|
1440
1440
|
|
|
1441
|
-
const TopicSelectList$1 = ({ className, style, topics: topicsProp, communityId, onChange, isLoading, disabled,
|
|
1441
|
+
const TopicSelectList$1 = ({ className, style, topics: topicsProp, communityId, onChange, isLoading, disabled,
|
|
1442
|
+
// forceTopics,
|
|
1443
|
+
selectedTopics: selectedTopicsProp, noFetch, dataEventCategory, dataEventAction, dataEventLabel, }) => {
|
|
1442
1444
|
const { data: { locale, env: { isMarryBaby }, }, } = useContext(TogetherComponentGlobalContext);
|
|
1443
|
-
const [topics, setTopics] = useState
|
|
1444
|
-
|
|
1445
|
+
// const [topics, setTopics] = useState<Topic[]>(
|
|
1446
|
+
// topicsProp ? [...topicsProp] : [],
|
|
1447
|
+
// )
|
|
1448
|
+
const [topics, setTopics] = useState([]);
|
|
1449
|
+
// const [selectedTopics, setSelectedTopics] = useState<Topic[]>(
|
|
1450
|
+
// selectedTopicsProp ? [...selectedTopicsProp] : [],
|
|
1451
|
+
// )
|
|
1452
|
+
const [selectedTopics, setSelectedTopics] = useState([]);
|
|
1445
1453
|
const [isLoadingTopics, setIsLoadingTopics] = useState(false);
|
|
1446
1454
|
const topicsPropRef = useRef(topicsProp);
|
|
1447
1455
|
topicsPropRef.current = topicsProp;
|
|
@@ -1459,7 +1467,19 @@ const TopicSelectList$1 = ({ className, style, topics: topicsProp, communityId,
|
|
|
1459
1467
|
}), 'GET');
|
|
1460
1468
|
const topicRes = (_b = res === null || res === void 0 ? void 0 : res.data) === null || _b === void 0 ? void 0 : _b.topics;
|
|
1461
1469
|
if (Array.isArray(topicRes)) {
|
|
1462
|
-
setTopics(
|
|
1470
|
+
// setTopics(
|
|
1471
|
+
// () =>
|
|
1472
|
+
// topicRes
|
|
1473
|
+
// ?.map<Topic>(formatTopic)
|
|
1474
|
+
// .sort(
|
|
1475
|
+
// (t1: Topic, t2: Topic) => (t1.order || 0) - (t2.order || 0),
|
|
1476
|
+
// ) || [],
|
|
1477
|
+
// )
|
|
1478
|
+
let newTopics = [];
|
|
1479
|
+
topicRes === null || topicRes === void 0 ? void 0 : topicRes.forEach((item) => {
|
|
1480
|
+
newTopics = newTopics.concat(item.discover_category);
|
|
1481
|
+
});
|
|
1482
|
+
setTopics(newTopics);
|
|
1463
1483
|
}
|
|
1464
1484
|
}
|
|
1465
1485
|
catch (e) {
|
|
@@ -1470,42 +1490,54 @@ const TopicSelectList$1 = ({ className, style, topics: topicsProp, communityId,
|
|
|
1470
1490
|
}))();
|
|
1471
1491
|
}
|
|
1472
1492
|
}, [communityId, noFetch]);
|
|
1473
|
-
const topicsPropString = topicsProp
|
|
1474
|
-
const topicsStateString = topics
|
|
1475
|
-
const forceTopicsPropString = forceTopics
|
|
1476
|
-
useEffect(() => {
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1493
|
+
// const topicsPropString = topicsProp?.map((t) => t.id).join('-')
|
|
1494
|
+
// const topicsStateString = topics?.map((t) => t.id).join('-')
|
|
1495
|
+
// const forceTopicsPropString = forceTopics?.map((t) => t.id).join('-')
|
|
1496
|
+
// useEffect(() => {
|
|
1497
|
+
// if (
|
|
1498
|
+
// topicsProp &&
|
|
1499
|
+
// typeof topicsPropString !== 'undefined' &&
|
|
1500
|
+
// topicsPropString !== topicsStateString
|
|
1501
|
+
// ) {
|
|
1502
|
+
// setTopics(topicsProp)
|
|
1503
|
+
// }
|
|
1504
|
+
// }, [topicsProp, topicsPropString, topicsStateString])
|
|
1505
|
+
// const topicsWithoutForced = useMemo(
|
|
1506
|
+
// () =>
|
|
1507
|
+
// topics.filter(
|
|
1508
|
+
// (t) =>
|
|
1509
|
+
// !forceTopics?.some(
|
|
1510
|
+
// (ft) =>
|
|
1511
|
+
// (ft.id && ft.id === t.id) ||
|
|
1512
|
+
// (ft.mappedCategoryId &&
|
|
1513
|
+
// ft.mappedCategoryId === t.mappedCategoryId),
|
|
1514
|
+
// ),
|
|
1515
|
+
// ),
|
|
1516
|
+
// [topicsStateString, forceTopicsPropString],
|
|
1517
|
+
// )
|
|
1486
1518
|
return (React__default.createElement(StyledTopicSelectList$1, { "data-is-marrybaby": isMarryBaby, className: className, style: style },
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
}
|
|
1508
|
-
|
|
1519
|
+
topics.map((topic) => {
|
|
1520
|
+
return (React__default.createElement(TopicItem$1, { key: `${topic.id}-${topic.category_id}`, topic: topic, disabled: disabled, selected: (selectedTopicsProp || selectedTopics).some((t) => (t.id && t.id === topic.id) ||
|
|
1521
|
+
((t === null || t === void 0 ? void 0 : t.category_id) && (t === null || t === void 0 ? void 0 : t.category_id) === topic.category_id)), onClick: () => {
|
|
1522
|
+
const _selected = (selectedTopicsProp || selectedTopics);
|
|
1523
|
+
const foundIndex = _selected.findIndex((_selected) => (_selected.id && _selected.id === topic.id) ||
|
|
1524
|
+
((_selected === null || _selected === void 0 ? void 0 : _selected.category_id) &&
|
|
1525
|
+
(_selected === null || _selected === void 0 ? void 0 : _selected.category_id) === topic.category_id));
|
|
1526
|
+
if (foundIndex !== -1) {
|
|
1527
|
+
_selected.splice(foundIndex, 1);
|
|
1528
|
+
}
|
|
1529
|
+
else {
|
|
1530
|
+
_selected.push(topic);
|
|
1531
|
+
}
|
|
1532
|
+
if (onChange && selectedTopicsProp) {
|
|
1533
|
+
onChange(_selected.slice());
|
|
1534
|
+
}
|
|
1535
|
+
else {
|
|
1536
|
+
onChange && onChange(_selected.slice());
|
|
1537
|
+
setSelectedTopics(_selected.slice());
|
|
1538
|
+
}
|
|
1539
|
+
}, dataEventAction: dataEventAction, dataEventCategory: dataEventCategory, dataEventLabel: dataEventLabel }));
|
|
1540
|
+
}),
|
|
1509
1541
|
(isLoading || isLoadingTopics) && React__default.createElement(Loading$1, { className: "topic-spinner" })));
|
|
1510
1542
|
};
|
|
1511
1543
|
const TopicItem$1 = (_a) => {
|
|
@@ -2434,7 +2466,7 @@ const RichTextEditor = ({ html, onChange, className, style, placeholder, onImage
|
|
|
2434
2466
|
onChange === null || onChange === void 0 ? void 0 : onChange(value);
|
|
2435
2467
|
}
|
|
2436
2468
|
}
|
|
2437
|
-
},
|
|
2469
|
+
}, 200), []);
|
|
2438
2470
|
useEffect(() => {
|
|
2439
2471
|
onInvalidUrlsChange && onInvalidUrlsChange(invalidUrls);
|
|
2440
2472
|
}, [invalidUrls]);
|
|
@@ -3384,9 +3416,11 @@ const applySpecialCharSite = [
|
|
|
3384
3416
|
LOCALE.Malaysia,
|
|
3385
3417
|
LOCALE.Vietnam,
|
|
3386
3418
|
];
|
|
3387
|
-
const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunity, articleId, editPostData, defaultCommunity,
|
|
3419
|
+
const CreateNewPostContentV2 = ({ className, style, onClose, onPostCreatedEdited, forceSelectCommunity, forceSelectTopics, articleId, editPostData, defaultCommunity, communities, userInfo, isMarryBaby = false, }) => {
|
|
3388
3420
|
const isInEditMode = !!(editPostData === null || editPostData === void 0 ? void 0 : editPostData.id);
|
|
3389
|
-
const { data: { locale,
|
|
3421
|
+
const { data: { locale,
|
|
3422
|
+
// env: { togetherBasePath },
|
|
3423
|
+
}, action: { pushNotifications, sanitizeFunction }, } = useContext(TogetherComponentGlobalContext);
|
|
3390
3424
|
const { t } = useTranslations();
|
|
3391
3425
|
const containerRef = useRef(null);
|
|
3392
3426
|
const [isAskDoctor, setIsAskDoctor] = useState(false);
|
|
@@ -3397,7 +3431,7 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
|
|
|
3397
3431
|
label: t('community.choose'),
|
|
3398
3432
|
value: '',
|
|
3399
3433
|
});
|
|
3400
|
-
const [selectedTopics, setSelectedTopics] = useState([]);
|
|
3434
|
+
const [selectedTopics, setSelectedTopics] = useState([...forceSelectTopics] || []);
|
|
3401
3435
|
const [error, setError] = useState({});
|
|
3402
3436
|
const [imageFiles, setImageFiles] = useState([]);
|
|
3403
3437
|
const [bannedWords, setBannedWords] = useState([]);
|
|
@@ -3436,14 +3470,16 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
|
|
|
3436
3470
|
} })),
|
|
3437
3471
|
},
|
|
3438
3472
|
];
|
|
3439
|
-
const currentCommunity = useMemo(() => {
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
}, [communityValue, communitiesList])
|
|
3473
|
+
// const currentCommunity = useMemo(() => {
|
|
3474
|
+
// if (!communityValue.value) return null
|
|
3475
|
+
// const result = communitiesList.find(
|
|
3476
|
+
// (item) => String(item.id) === String(communityValue.value),
|
|
3477
|
+
// )
|
|
3478
|
+
// if (!result) return null
|
|
3479
|
+
// return result
|
|
3480
|
+
// }, [communityValue, communitiesList])
|
|
3481
|
+
const currentCommunity = forceSelectCommunity ||
|
|
3482
|
+
communities.find((c) => `${c.id || ''}-${c.mappedCategoryId || ''}` === communityValue.value);
|
|
3447
3483
|
// HANDLE etra action when OPEN AND CLOSE
|
|
3448
3484
|
useEffect(() => {
|
|
3449
3485
|
if (editPostData) {
|
|
@@ -3454,7 +3490,7 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
|
|
|
3454
3490
|
label: post.community.name,
|
|
3455
3491
|
value: `${post.community.id || ''}-${post.community.mappedCategoryId || ''}`,
|
|
3456
3492
|
});
|
|
3457
|
-
setSelectedTopics(post.topics || [])
|
|
3493
|
+
// setSelectedTopics(post.topics || [])
|
|
3458
3494
|
setImageFiles(post.photos || []);
|
|
3459
3495
|
setIsAskDoctor(!!post.isAskDoctor || false);
|
|
3460
3496
|
}
|
|
@@ -3465,9 +3501,9 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
|
|
|
3465
3501
|
value: `${defaultCommunity.id || ''}-${defaultCommunity.mappedCategoryId || ''}`,
|
|
3466
3502
|
});
|
|
3467
3503
|
}
|
|
3468
|
-
if (defaultTopics) {
|
|
3469
|
-
|
|
3470
|
-
}
|
|
3504
|
+
// if (defaultTopics) {
|
|
3505
|
+
// setSelectedTopics(defaultTopics)
|
|
3506
|
+
// }
|
|
3471
3507
|
}
|
|
3472
3508
|
}, []);
|
|
3473
3509
|
useEffect(() => {
|
|
@@ -3494,7 +3530,8 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
|
|
|
3494
3530
|
]);
|
|
3495
3531
|
const communitiesApi = (_a = resListCommunity === null || resListCommunity === void 0 ? void 0 : resListCommunity.data) === null || _a === void 0 ? void 0 : _a.communities;
|
|
3496
3532
|
if (Array.isArray(communitiesApi) && communitiesApi.length) {
|
|
3497
|
-
|
|
3533
|
+
const resultFormat = communitiesApi.map((item) => formatCommunity(item));
|
|
3534
|
+
setCommunitiesList(resultFormat);
|
|
3498
3535
|
}
|
|
3499
3536
|
const topicRes = (_b = resListTopic === null || resListTopic === void 0 ? void 0 : resListTopic.data) === null || _b === void 0 ? void 0 : _b.topics;
|
|
3500
3537
|
if (Array.isArray(topicRes)) {
|
|
@@ -3506,6 +3543,12 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
|
|
|
3506
3543
|
}
|
|
3507
3544
|
}))();
|
|
3508
3545
|
}, []);
|
|
3546
|
+
const onCreateEditSuccess = (res) => {
|
|
3547
|
+
if (onPostCreatedEdited) {
|
|
3548
|
+
onPostCreatedEdited(formatPost(res), isInEditMode);
|
|
3549
|
+
}
|
|
3550
|
+
onClose && onClose();
|
|
3551
|
+
};
|
|
3509
3552
|
const validationUploadPhoto = (files) => {
|
|
3510
3553
|
const errorMessage = Object.assign({}, error);
|
|
3511
3554
|
if (files && files.length > 10) {
|
|
@@ -3588,22 +3631,20 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
|
|
|
3588
3631
|
console.log(value);
|
|
3589
3632
|
}
|
|
3590
3633
|
};
|
|
3634
|
+
console.log(uncategorizedId);
|
|
3635
|
+
console.log(topicsList);
|
|
3591
3636
|
const submitPost = (uncategorized) => __awaiter(void 0, void 0, void 0, function* () {
|
|
3592
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
|
3637
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
3593
3638
|
const isError = validationPost();
|
|
3594
3639
|
if (isError)
|
|
3595
3640
|
return;
|
|
3596
3641
|
const bodyFormData = yield getPostFormData({
|
|
3597
3642
|
title: titleValue,
|
|
3598
3643
|
description: descriptionValue,
|
|
3599
|
-
communityId:
|
|
3600
|
-
? uncategorizedId
|
|
3601
|
-
: String((currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.id) || ''),
|
|
3644
|
+
communityId: String((currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.id) || ''),
|
|
3602
3645
|
imageFiles,
|
|
3603
3646
|
previewUrl,
|
|
3604
|
-
topicIds:
|
|
3605
|
-
? []
|
|
3606
|
-
: selectedTopics === null || selectedTopics === void 0 ? void 0 : selectedTopics.map((topic) => String(topic.id || '')).filter(Boolean),
|
|
3647
|
+
topicIds: selectedTopics === null || selectedTopics === void 0 ? void 0 : selectedTopics.map((topic) => String(topic.id || '')).filter(Boolean),
|
|
3607
3648
|
locale,
|
|
3608
3649
|
sanitizeFunction,
|
|
3609
3650
|
categoryCommunityId: String((currentCommunity === null || currentCommunity === void 0 ? void 0 : currentCommunity.mappedCategoryId) || ''),
|
|
@@ -3615,6 +3656,7 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
|
|
|
3615
3656
|
if (articleId) {
|
|
3616
3657
|
bodyFormData.append('article_id', articleId);
|
|
3617
3658
|
}
|
|
3659
|
+
console.log(uncategorized);
|
|
3618
3660
|
let res;
|
|
3619
3661
|
if (isInEditMode) {
|
|
3620
3662
|
if (editPostData === null || editPostData === void 0 ? void 0 : editPostData.id) {
|
|
@@ -3629,17 +3671,28 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
|
|
|
3629
3671
|
res = yield createPost({
|
|
3630
3672
|
formData: bodyFormData,
|
|
3631
3673
|
locale,
|
|
3632
|
-
isArticleComment:
|
|
3674
|
+
isArticleComment: true,
|
|
3633
3675
|
});
|
|
3634
3676
|
}
|
|
3635
3677
|
const resData = res === null || res === void 0 ? void 0 : res.data;
|
|
3636
3678
|
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)) {
|
|
3637
|
-
const params = `action=${
|
|
3638
|
-
|
|
3639
|
-
|
|
3679
|
+
// const params = `action=${
|
|
3680
|
+
// editPostData ? 'editPost' : 'createPost'
|
|
3681
|
+
// }&askDoctor=${resData?.is_question ? 'true' : 'false'}`
|
|
3682
|
+
// const postHref = `${getCurrentBaseUrl(locale)}${togetherBasePath}/${
|
|
3683
|
+
// resData?.community?.slug
|
|
3684
|
+
// }/${resData?.slug}/?${params}`
|
|
3685
|
+
// window.location.href = postHref
|
|
3686
|
+
pushNotifications({
|
|
3687
|
+
message: isInEditMode
|
|
3688
|
+
? t('updatePost.popup.success')
|
|
3689
|
+
: t('createPost.popup.success'),
|
|
3690
|
+
type: 'success',
|
|
3691
|
+
});
|
|
3692
|
+
onCreateEditSuccess(resData);
|
|
3640
3693
|
}
|
|
3641
3694
|
else {
|
|
3642
|
-
if (((
|
|
3695
|
+
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') {
|
|
3643
3696
|
pushNotifications({
|
|
3644
3697
|
title: t('notification.post.blocked.title'),
|
|
3645
3698
|
message: t('notification.post.blocked.message'),
|
|
@@ -3649,7 +3702,7 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
|
|
|
3649
3702
|
setBannedWords(res.messages.moderation.words);
|
|
3650
3703
|
}
|
|
3651
3704
|
}
|
|
3652
|
-
else if (((
|
|
3705
|
+
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') {
|
|
3653
3706
|
pushNotifications({
|
|
3654
3707
|
title: t('notification.post.suspect.title'),
|
|
3655
3708
|
message: t('notification.post.suspect.message'),
|
|
@@ -3657,7 +3710,7 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
|
|
|
3657
3710
|
});
|
|
3658
3711
|
onClose && onClose();
|
|
3659
3712
|
}
|
|
3660
|
-
else if ((
|
|
3713
|
+
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')); })) {
|
|
3661
3714
|
pushNotifications({
|
|
3662
3715
|
message: t('notification.suspend.message'),
|
|
3663
3716
|
type: 'danger',
|
|
@@ -3666,7 +3719,7 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
|
|
|
3666
3719
|
}
|
|
3667
3720
|
else {
|
|
3668
3721
|
pushNotifications({
|
|
3669
|
-
message: ((
|
|
3722
|
+
message: ((_j = res === null || res === void 0 ? void 0 : res.messages) === null || _j === void 0 ? void 0 : _j[0]) || t('notification.failure'),
|
|
3670
3723
|
type: 'danger',
|
|
3671
3724
|
});
|
|
3672
3725
|
}
|
|
@@ -3698,13 +3751,20 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
|
|
|
3698
3751
|
}
|
|
3699
3752
|
};
|
|
3700
3753
|
const onSubmitContinuePost = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
3701
|
-
var
|
|
3754
|
+
var _k;
|
|
3702
3755
|
const isError = validationPost();
|
|
3703
3756
|
if (isError) {
|
|
3704
3757
|
const keyElmToScroll = getFirstOrderErroKey(orderErrorFieldKey);
|
|
3705
3758
|
handleScrollToError(keyElmToScroll);
|
|
3706
3759
|
return;
|
|
3707
3760
|
}
|
|
3761
|
+
submitPost();
|
|
3762
|
+
if (stepPost)
|
|
3763
|
+
return;
|
|
3764
|
+
if (isInEditMode) {
|
|
3765
|
+
submitPost();
|
|
3766
|
+
return;
|
|
3767
|
+
}
|
|
3708
3768
|
setStepPost('step_community');
|
|
3709
3769
|
// Current just apply ai suggest community for Vietnam site
|
|
3710
3770
|
if (locale === LOCALE.Vietnam && !isMarryBaby && !isInEditMode) {
|
|
@@ -3736,11 +3796,16 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
|
|
|
3736
3796
|
topic_in: listTopicId.join(),
|
|
3737
3797
|
pageSize: 100,
|
|
3738
3798
|
}), 'GET');
|
|
3739
|
-
const topicsApi = (
|
|
3740
|
-
const topicSuggested = topicsApi
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3799
|
+
const topicsApi = (_k = resTopic === null || resTopic === void 0 ? void 0 : resTopic.data) === null || _k === void 0 ? void 0 : _k.topics;
|
|
3800
|
+
// const topicSuggested = topicsApi
|
|
3801
|
+
// ? topicsApi.map((item) => formatTopic(item))
|
|
3802
|
+
// : ([] as Topic[])
|
|
3803
|
+
let newTopics = [];
|
|
3804
|
+
topicsApi === null || topicsApi === void 0 ? void 0 : topicsApi.forEach((item) => {
|
|
3805
|
+
newTopics = newTopics.concat(item.discover_category);
|
|
3806
|
+
});
|
|
3807
|
+
// setTopics(newTopics)
|
|
3808
|
+
setSelectedTopics(newTopics);
|
|
3744
3809
|
}
|
|
3745
3810
|
}
|
|
3746
3811
|
}
|
|
@@ -3753,7 +3818,6 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
|
|
|
3753
3818
|
}
|
|
3754
3819
|
}
|
|
3755
3820
|
});
|
|
3756
|
-
console.log('topicsList: ', topicsList);
|
|
3757
3821
|
return (React__default.createElement(StyledCreateNewPost, { className: `${className} create-post-popup-frame`, style: style },
|
|
3758
3822
|
React__default.createElement("div", { className: "input-group-container", ref: containerRef },
|
|
3759
3823
|
React__default.createElement(StyledFormGroupInner, null,
|
|
@@ -3827,7 +3891,11 @@ const CreateNewPostContentV2 = ({ className, style, onClose, forceSelectCommunit
|
|
|
3827
3891
|
validationUploadPhoto(data);
|
|
3828
3892
|
} }),
|
|
3829
3893
|
React__default.createElement("div", null,
|
|
3830
|
-
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 },
|
|
3894
|
+
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 },
|
|
3895
|
+
/* {isInEditMode
|
|
3896
|
+
? t('createPost.popup.submit')
|
|
3897
|
+
: t('onboarding.button.continue')} */
|
|
3898
|
+
t('createPost.popup.submit'))))));
|
|
3831
3899
|
};
|
|
3832
3900
|
|
|
3833
3901
|
const StyledTopicSelectList = styled.div `
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { _ as __rest, a as __awaiter } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-74e511e5.js';
|
|
2
2
|
import React__default, { useState, useImperativeHandle, useRef, useEffect, useMemo, Fragment, useCallback, forwardRef, memo } from 'react';
|
|
3
|
-
import { R as Radio } from './index-
|
|
3
|
+
import { R as Radio } from './index-80c66805.js';
|
|
4
4
|
import { Stack, Group, createStyles, getStylesRef, Box } from '@mantine/core';
|
|
5
5
|
import '@mantine/dates';
|
|
6
|
-
import { L as LOCALE_SPECS, F as FAVICONS } from './index-
|
|
7
|
-
import './index-
|
|
8
|
-
import { C as CommonGAssets } from './index-
|
|
9
|
-
import './useMantineLocale-
|
|
10
|
-
import { T as Text } from './index-
|
|
11
|
-
import { B as Button$1 } from './index-
|
|
12
|
-
import './index.styles-
|
|
13
|
-
import './translationsContext-
|
|
6
|
+
import { L as LOCALE_SPECS, F as FAVICONS } from './index-e901f471.js';
|
|
7
|
+
import './index-13ac8c47.js';
|
|
8
|
+
import { C as CommonGAssets } from './index-29e07496.js';
|
|
9
|
+
import './useMantineLocale-d3f0ec10.js';
|
|
10
|
+
import { T as Text } from './index-a45bba40.js';
|
|
11
|
+
import { B as Button$1 } from './index-246a053e.js';
|
|
12
|
+
import './index.styles-41f74461.js';
|
|
13
|
+
import './translationsContext-3e2e9520.js';
|
|
14
14
|
import '@mantine/hooks';
|
|
15
|
-
import { M as MediaQueries } from './utils-
|
|
16
|
-
import './other-
|
|
17
|
-
import './index-
|
|
18
|
-
import { i as isInternalLink } from './index-
|
|
15
|
+
import { M as MediaQueries } from './utils-86244ba7.js';
|
|
16
|
+
import './other-04246228.js';
|
|
17
|
+
import './index-1d317a46.js';
|
|
18
|
+
import { i as isInternalLink } from './index-46fe3ecd.js';
|
|
19
19
|
import styled from '@emotion/styled';
|
|
20
20
|
import { theme } from './miscTheme.js';
|
|
21
|
-
import { C as Checkbox, P as PureInput } from './index-
|
|
22
|
-
import { L as Logo } from './index-
|
|
21
|
+
import { C as Checkbox, P as PureInput } from './index-f2c42d02.js';
|
|
22
|
+
import { L as Logo } from './index-982321d5.js';
|
|
23
23
|
import throttle from 'lodash/throttle';
|
|
24
24
|
import parse from 'html-react-parser';
|
|
25
25
|
import { domainLocales } from './constantsDomainLocales.js';
|
|
26
26
|
import { isProduction } from './constantsIsProduction.js';
|
|
27
27
|
import { isBefore, startOfMonth, addMonths, format, subMonths, getDaysInMonth, isToday, isSameDay, isWithinInterval, isAfter, isPast } from 'date-fns';
|
|
28
|
-
import { a as useOutsideClick } from './useOutsideClick-
|
|
28
|
+
import { a as useOutsideClick } from './useOutsideClick-de3022ff.js';
|
|
29
29
|
import enUS from 'date-fns/locale/en-US';
|
|
30
30
|
import id from 'date-fns/locale/id';
|
|
31
31
|
import vi from 'date-fns/locale/vi';
|
|
32
32
|
import zhTW from 'date-fns/locale/zh-TW';
|
|
33
|
-
import { B as Button } from './index-
|
|
34
|
-
import { u as useScreenSize } from './useScreenSize-
|
|
35
|
-
import { u as useTranslations } from './index-
|
|
36
|
-
import { D as Dropdown } from './index-
|
|
33
|
+
import { B as Button } from './index-19f88c7e.js';
|
|
34
|
+
import { u as useScreenSize } from './useScreenSize-7c7dd78f.js';
|
|
35
|
+
import { u as useTranslations } from './index-667c32a0.js';
|
|
36
|
+
import { D as Dropdown } from './index-8dcf9467.js';
|
|
37
37
|
import { getSocialList } from './miscGetSocialList.js';
|
|
38
|
-
import { I as Input } from './index-
|
|
39
|
-
import { D as Drawer } from './index-
|
|
38
|
+
import { I as Input } from './index-2ccbdd1f.js';
|
|
39
|
+
import { D as Drawer } from './index-946aa38b.js';
|
|
40
40
|
import { v4 } from 'uuid';
|
|
41
|
-
import { L as LOCALE } from './Locale-
|
|
41
|
+
import { L as LOCALE } from './Locale-ea6fdb5d.js';
|
|
42
42
|
import { ArrowRight } from '@hhgtech/icons/arrow';
|
|
43
43
|
import { MultiStar, Question } from '@hhgtech/icons/other';
|
|
44
44
|
import Lottie from 'lottie-light-react';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as __rest } from './tslib.es6-
|
|
1
|
+
import { _ as __rest } from './tslib.es6-74e511e5.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { Modal as Modal$1 } from '@mantine/core';
|
|
4
|
-
import { u as useStyles } from './index.styles-
|
|
4
|
+
import { u as useStyles } from './index.styles-41f74461.js';
|
|
5
5
|
|
|
6
6
|
const Modal = (_a) => {
|
|
7
7
|
var { styles, classNames, transitionProps } = _a, rest = __rest(_a, ["styles", "classNames", "transitionProps"]);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React__default, { useRef, useEffect } from 'react';
|
|
2
2
|
import { Portal } from '@mantine/core';
|
|
3
|
-
import { t as toggleNoScroll } from './utils-
|
|
3
|
+
import { t as toggleNoScroll } from './utils-86244ba7.js';
|
|
4
4
|
import { css } from '@emotion/react';
|
|
5
5
|
import styled from '@emotion/styled';
|
|
6
6
|
import { theme } from './miscTheme.js';
|
|
7
|
-
import { s as slideInUp, e as slideOutDown, b as slideInLeft, f as slideOutLeft, c as slideInRight, g as slideOutRight, a as slideInDown, d as slideOutUp } from './animation-
|
|
8
|
-
import { T as Text } from './index-
|
|
7
|
+
import { s as slideInUp, e as slideOutDown, b as slideInLeft, f as slideOutLeft, c as slideInRight, g as slideOutRight, a as slideInDown, d as slideOutUp } from './animation-277ec211.js';
|
|
8
|
+
import { T as Text } from './index-a45bba40.js';
|
|
9
9
|
|
|
10
10
|
const DURATION = '600ms';
|
|
11
11
|
const generateStyleBasedOnPlacement = (placement, open) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
2
|
-
import { u as useScrollbarSize } from './useScrollbarSize-
|
|
2
|
+
import { u as useScrollbarSize } from './useScrollbarSize-a0baa763.js';
|
|
3
3
|
import { createPortal } from 'react-dom';
|
|
4
4
|
import styled from '@emotion/styled';
|
|
5
|
-
import { M as MediaQueries } from './utils-
|
|
5
|
+
import { M as MediaQueries } from './utils-86244ba7.js';
|
|
6
6
|
import { setDefaultClass } from './miscDefaultClassWrapper.js';
|
|
7
7
|
import { theme } from './miscTheme.js';
|
|
8
8
|
|