@hhgtech/hhg-components 1.19.0-beta-7 → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/build/care.js +1 -1
- package/build/components/molecules/index.d.ts +0 -2
- package/build/components/organisms/navigationLayout/utils.d.ts +0 -2
- package/build/components.js +1 -1
- package/build/cookieHelper-fc4e507c.js +2 -0
- package/build/{cookieHelper-40ab50eb.js.map → cookieHelper-fc4e507c.js.map} +1 -1
- package/build/core.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components/molecules/index.d.ts +0 -2
- package/build/esm/components/organisms/navigationLayout/utils.d.ts +0 -2
- package/build/esm/components.js +1 -1
- package/build/esm/{cookieHelper-caf76f93.js → cookieHelper-42a68fdf.js} +2 -2
- package/build/esm/{cookieHelper-caf76f93.js.map → cookieHelper-42a68fdf.js.map} +1 -1
- package/build/esm/core.js +1 -1
- package/build/esm/{index-0348b56b.js → index-7084e1a2.js} +2 -2
- package/build/esm/{index-0348b56b.js.map → index-7084e1a2.js.map} +1 -1
- package/build/esm/index-7c43a515.js +2 -0
- package/build/esm/index-7c43a515.js.map +1 -0
- package/build/esm/index-f6c281af.js +2 -0
- package/build/esm/index-f6c281af.js.map +1 -0
- package/build/esm/{index-f799fba8.js → index-fb3aea4c.js} +2 -2
- package/build/esm/{index-f799fba8.js.map → index-fb3aea4c.js.map} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-64f8f6e8.js → index.styled-4d602105.js} +2 -2
- package/build/esm/{index.styled-64f8f6e8.js.map → index.styled-4d602105.js.map} +1 -1
- package/build/esm/misc/utils.d.ts +5 -53
- package/build/esm/navigation.js +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{types-5c8ce743.js → types-2d902fee.js} +2 -2
- package/build/esm/{types-5c8ce743.js.map → types-2d902fee.js.map} +1 -1
- package/build/esm/types-91439763.js +2 -0
- package/build/esm/types-91439763.js.map +1 -0
- package/build/esm/useTranslations-f3eec98c.js +2 -0
- package/build/esm/useTranslations-f3eec98c.js.map +1 -0
- package/build/index-205e279e.js +2 -0
- package/build/index-205e279e.js.map +1 -0
- package/build/index-21ad911e.js +2 -0
- package/build/index-21ad911e.js.map +1 -0
- package/build/{index-8b1e9d3e.js → index-b3a14f60.js} +2 -2
- package/build/{index-8b1e9d3e.js.map → index-b3a14f60.js.map} +1 -1
- package/build/{index-eed59e93.js → index-f951cab2.js} +2 -2
- package/build/{index-eed59e93.js.map → index-f951cab2.js.map} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-89837cca.js → index.styled-e5088bb1.js} +2 -2
- package/build/{index.styled-89837cca.js.map → index.styled-e5088bb1.js.map} +1 -1
- package/build/misc/utils.d.ts +5 -53
- package/build/navigation.js +1 -1
- package/build/together.js +1 -1
- package/build/{types-5985800a.js → types-06d1c33e.js} +2 -2
- package/build/{types-5985800a.js.map → types-06d1c33e.js.map} +1 -1
- package/build/types-9b704e38.js +2 -0
- package/build/types-9b704e38.js.map +1 -0
- package/build/useTranslations-41d2f908.js +2 -0
- package/build/useTranslations-41d2f908.js.map +1 -0
- package/package.json +9 -9
- package/.eslintrc.json +0 -53
- package/build/components/molecules/dateRangePicker/calendar/index.d.ts +0 -9
- package/build/components/molecules/dateRangePicker/calendar/index.styled.d.ts +0 -13
- package/build/components/molecules/dateRangePicker/index.d.ts +0 -13
- package/build/components/molecules/dateRangePicker/index.styled.d.ts +0 -2
- package/build/components/molecules/dateRangePicker/types.d.ts +0 -4
- package/build/components/molecules/dateRangePicker/utils.d.ts +0 -2
- package/build/cookieHelper-40ab50eb.js +0 -2
- package/build/esm/components/molecules/dateRangePicker/calendar/index.d.ts +0 -9
- package/build/esm/components/molecules/dateRangePicker/calendar/index.styled.d.ts +0 -13
- package/build/esm/components/molecules/dateRangePicker/index.d.ts +0 -13
- package/build/esm/components/molecules/dateRangePicker/index.styled.d.ts +0 -2
- package/build/esm/components/molecules/dateRangePicker/types.d.ts +0 -4
- package/build/esm/components/molecules/dateRangePicker/utils.d.ts +0 -2
- package/build/esm/index-680f53de.js +0 -2
- package/build/esm/index-680f53de.js.map +0 -1
- package/build/esm/index-dda5ff2a.js +0 -2
- package/build/esm/index-dda5ff2a.js.map +0 -1
- package/build/esm/types-26f12b26.js +0 -2
- package/build/esm/types-26f12b26.js.map +0 -1
- package/build/esm/useOutsideClick-6004483a.js +0 -2
- package/build/esm/useOutsideClick-6004483a.js.map +0 -1
- package/build/esm/useTranslations-0c13f2cb.js +0 -2
- package/build/esm/useTranslations-0c13f2cb.js.map +0 -1
- package/build/index-4fa610b1.js +0 -2
- package/build/index-4fa610b1.js.map +0 -1
- package/build/index-5b032a36.js +0 -2
- package/build/index-5b032a36.js.map +0 -1
- package/build/types-df74aec0.js +0 -2
- package/build/types-df74aec0.js.map +0 -1
- package/build/useOutsideClick-528bfd6c.js +0 -2
- package/build/useOutsideClick-528bfd6c.js.map +0 -1
- package/build/useTranslations-29326df5.js +0 -2
- package/build/useTranslations-29326df5.js.map +0 -1
- package/src/assets/svg/Spotlight.svg +0 -12
- package/src/assets/svg/StarEmptyIcon.tsx +0 -19
- package/src/assets/svg/StarFullIcon.tsx +0 -21
- package/src/assets/svg/StarHalfIcon.tsx +0 -35
- package/src/assets/svg/arrowDoor.svg +0 -9
- package/src/assets/svg/calendar.svg +0 -3
- package/src/assets/svg/calendarArrowLeft.svg +0 -3
- package/src/assets/svg/calendarArrowRight.svg +0 -3
- package/src/assets/svg/check.svg +0 -3
- package/src/assets/svg/chevronDown.svg +0 -3
- package/src/assets/svg/chevronRight.svg +0 -3
- package/src/assets/svg/chevronRightActive.svg +0 -3
- package/src/assets/svg/chevronRightWhite.svg +0 -3
- package/src/assets/svg/chevronUpBlue.svg +0 -3
- package/src/assets/svg/closeLight.svg +0 -4
- package/src/assets/svg/closeWhite.svg +0 -4
- package/src/assets/svg/community.svg +0 -1
- package/src/assets/svg/discover.png +0 -0
- package/src/assets/svg/facebook.svg +0 -4
- package/src/assets/svg/hamburgerMenu.svg +0 -5
- package/src/assets/svg/hamburgerMenuNew.svg +0 -1
- package/src/assets/svg/hamburgerMenuNewWithSearch.svg +0 -1
- package/src/assets/svg/healthTools.png +0 -0
- package/src/assets/svg/helloCare-thumbnail.png +0 -0
- package/src/assets/svg/index.ts +0 -63
- package/src/assets/svg/info-light.svg +0 -5
- package/src/assets/svg/instagram.svg +0 -1
- package/src/assets/svg/linkedin.svg +0 -1
- package/src/assets/svg/lock.png +0 -0
- package/src/assets/svg/login.svg +0 -1
- package/src/assets/svg/sehat-badge.png +0 -0
- package/src/assets/svg/together.png +0 -0
- package/src/assets/svg/youtube.svg +0 -4
- package/src/assets/svg/zalo.png +0 -0
- package/src/cache/core.ts +0 -52
- package/src/cache/index.ts +0 -1
- package/src/care/api/paths.ts +0 -11
- package/src/care/api/utils.ts +0 -32
- package/src/care/components/atoms/icons/index.tsx +0 -170
- package/src/care/components/organisms/bookingSearchBar/constants.ts +0 -9
- package/src/care/components/organisms/bookingSearchBar/index.stories.tsx +0 -127
- package/src/care/components/organisms/bookingSearchBar/index.styled.ts +0 -51
- package/src/care/components/organisms/bookingSearchBar/index.test.tsx +0 -556
- package/src/care/components/organisms/bookingSearchBar/index.tsx +0 -448
- package/src/care/components/organisms/bookingSearchBar/locationResults/index.styled.ts +0 -94
- package/src/care/components/organisms/bookingSearchBar/locationResults/index.tsx +0 -132
- package/src/care/components/organisms/bookingSearchBar/locationResults/liSkeleton.tsx +0 -52
- package/src/care/components/organisms/bookingSearchBar/mobileFakeInput/index.tsx +0 -68
- package/src/care/components/organisms/bookingSearchBar/mobileTopbar/index.stories.tsx +0 -22
- package/src/care/components/organisms/bookingSearchBar/mobileTopbar/index.styled.ts +0 -41
- package/src/care/components/organisms/bookingSearchBar/mobileTopbar/index.tsx +0 -48
- package/src/care/components/organisms/bookingSearchBar/reducer.ts +0 -293
- package/src/care/components/organisms/bookingSearchBar/resultSection/icons.tsx +0 -37
- package/src/care/components/organisms/bookingSearchBar/resultSection/index.stories.tsx +0 -155
- package/src/care/components/organisms/bookingSearchBar/resultSection/index.styled.ts +0 -89
- package/src/care/components/organisms/bookingSearchBar/resultSection/index.tsx +0 -234
- package/src/care/components/organisms/bookingSearchBar/resultSectionItem/index.stories.tsx +0 -55
- package/src/care/components/organisms/bookingSearchBar/resultSectionItem/index.styled.ts +0 -75
- package/src/care/components/organisms/bookingSearchBar/resultSectionItem/index.tsx +0 -86
- package/src/care/components/organisms/bookingSearchBar/searchInputs/index.styled.ts +0 -42
- package/src/care/components/organisms/bookingSearchBar/searchInputs/index.tsx +0 -219
- package/src/care/components/organisms/bookingSearchBar/searchResults/index.stories.tsx +0 -55
- package/src/care/components/organisms/bookingSearchBar/searchResults/index.tsx +0 -62
- package/src/care/components/organisms/bookingSearchBar/searchResults/mockData.ts +0 -169
- package/src/care/components/organisms/bookingSearchBar/searchSubmitIcon/index.tsx +0 -73
- package/src/care/components/organisms/bookingSearchBar/types.ts +0 -12
- package/src/care/components/organisms/bookingSearchBar/useAnimatedPlaceholder.ts +0 -86
- package/src/care/components/organisms/bookingSearchBar/useSearchBarApi.ts +0 -150
- package/src/care/components/organisms/bookingSearchBar/utils/Typewriter.ts +0 -437
- package/src/care/index.ts +0 -6
- package/src/care/interfaces/constants.ts +0 -75
- package/src/care/interfaces/types.ts +0 -258
- package/src/components/atoms/alert/__snapshots__/index.test.tsx.snap +0 -130
- package/src/components/atoms/alert/index.stories.tsx +0 -21
- package/src/components/atoms/alert/index.styled.tsx +0 -44
- package/src/components/atoms/alert/index.test.tsx +0 -28
- package/src/components/atoms/alert/index.tsx +0 -47
- package/src/components/atoms/avatar/index.stories.tsx +0 -49
- package/src/components/atoms/avatar/index.styled.tsx +0 -96
- package/src/components/atoms/avatar/index.tsx +0 -91
- package/src/components/atoms/badge/__snapshots__/index.test.tsx.snap +0 -61
- package/src/components/atoms/badge/index.stories.tsx +0 -71
- package/src/components/atoms/badge/index.styled.tsx +0 -138
- package/src/components/atoms/badge/index.test.tsx +0 -27
- package/src/components/atoms/badge/index.tsx +0 -45
- package/src/components/atoms/borderHeading/index.stories.tsx +0 -38
- package/src/components/atoms/borderHeading/index.styled.tsx +0 -50
- package/src/components/atoms/borderHeading/index.tsx +0 -39
- package/src/components/atoms/button/__snapshots__/index.test.tsx.snap +0 -57
- package/src/components/atoms/button/index.stories.tsx +0 -107
- package/src/components/atoms/button/index.styled.tsx +0 -335
- package/src/components/atoms/button/index.test.tsx +0 -25
- package/src/components/atoms/button/index.tsx +0 -207
- package/src/components/atoms/checkbox/__snapshots__/index.test.tsx.snap +0 -120
- package/src/components/atoms/checkbox/index.stories.tsx +0 -30
- package/src/components/atoms/checkbox/index.styled.tsx +0 -90
- package/src/components/atoms/checkbox/index.test.tsx +0 -31
- package/src/components/atoms/checkbox/index.tsx +0 -48
- package/src/components/atoms/container/index.styled.tsx +0 -16
- package/src/components/atoms/container/index.tsx +0 -21
- package/src/components/atoms/displayWrapper/index.styled.tsx +0 -19
- package/src/components/atoms/displayWrapper/index.tsx +0 -66
- package/src/components/atoms/divider/__snapshots__/index.test.tsx.snap +0 -14
- package/src/components/atoms/divider/index.stories.tsx +0 -19
- package/src/components/atoms/divider/index.styled.tsx +0 -10
- package/src/components/atoms/divider/index.test.tsx +0 -22
- package/src/components/atoms/divider/index.tsx +0 -34
- package/src/components/atoms/fileDropdown/__snapshots__/index.test.tsx.snap +0 -143
- package/src/components/atoms/fileDropdown/index.stories.tsx +0 -41
- package/src/components/atoms/fileDropdown/index.styled.tsx +0 -112
- package/src/components/atoms/fileDropdown/index.test.tsx +0 -46
- package/src/components/atoms/fileDropdown/index.tsx +0 -200
- package/src/components/atoms/flag/__snapshots__/index.test.tsx.snap +0 -59
- package/src/components/atoms/flag/icons/cambodia.tsx +0 -24
- package/src/components/atoms/flag/icons/english.tsx +0 -195
- package/src/components/atoms/flag/icons/india.tsx +0 -24
- package/src/components/atoms/flag/icons/indonesia.tsx +0 -55
- package/src/components/atoms/flag/icons/malaysia.tsx +0 -89
- package/src/components/atoms/flag/icons/myanmar.tsx +0 -105
- package/src/components/atoms/flag/icons/philippines.tsx +0 -24
- package/src/components/atoms/flag/icons/taiwan.tsx +0 -154
- package/src/components/atoms/flag/icons/thailand.tsx +0 -55
- package/src/components/atoms/flag/icons/vietnam.tsx +0 -57
- package/src/components/atoms/flag/index.stories.tsx +0 -30
- package/src/components/atoms/flag/index.styled.tsx +0 -18
- package/src/components/atoms/flag/index.test.tsx +0 -21
- package/src/components/atoms/flag/index.tsx +0 -150
- package/src/components/atoms/grid/__snapshots__/index.test.tsx.snap +0 -38
- package/src/components/atoms/grid/index.stories.tsx +0 -50
- package/src/components/atoms/grid/index.styled.tsx +0 -34
- package/src/components/atoms/grid/index.test.tsx +0 -26
- package/src/components/atoms/grid/index.tsx +0 -61
- package/src/components/atoms/heading/__snapshots__/index.test.tsx.snap +0 -38
- package/src/components/atoms/heading/index.stories.tsx +0 -27
- package/src/components/atoms/heading/index.styled.tsx +0 -108
- package/src/components/atoms/heading/index.test.tsx +0 -23
- package/src/components/atoms/heading/index.tsx +0 -59
- package/src/components/atoms/icons/Ask.tsx +0 -54
- package/src/components/atoms/icons/BarChart.tsx +0 -39
- package/src/components/atoms/icons/Booking.tsx +0 -37
- package/src/components/atoms/icons/Bookmark.tsx +0 -44
- package/src/components/atoms/icons/Community.tsx +0 -46
- package/src/components/atoms/icons/EditSpecial.tsx +0 -30
- package/src/components/atoms/icons/Family.tsx +0 -37
- package/src/components/atoms/icons/Font.tsx +0 -37
- package/src/components/atoms/icons/Heart.tsx +0 -37
- package/src/components/atoms/icons/Home.tsx +0 -54
- package/src/components/atoms/icons/Like.tsx +0 -49
- package/src/components/atoms/icons/MyCommunity.tsx +0 -37
- package/src/components/atoms/icons/PlusSpecial.tsx +0 -30
- package/src/components/atoms/icons/Recalculate.tsx +0 -37
- package/src/components/atoms/icons/Scale.tsx +0 -44
- package/src/components/atoms/icons/Share.tsx +0 -37
- package/src/components/atoms/icons/Stethoscope.tsx +0 -37
- package/src/components/atoms/icons/index.stories.tsx +0 -50
- package/src/components/atoms/icons/index.ts +0 -46
- package/src/components/atoms/index.ts +0 -33
- package/src/components/atoms/input/__snapshots__/index.test.tsx.snap +0 -137
- package/src/components/atoms/input/delete.svg +0 -3
- package/src/components/atoms/input/index.stories.tsx +0 -50
- package/src/components/atoms/input/index.styled.tsx +0 -124
- package/src/components/atoms/input/index.test.tsx +0 -23
- package/src/components/atoms/input/index.tsx +0 -140
- package/src/components/atoms/label/__snapshots__/index.test.tsx.snap +0 -21
- package/src/components/atoms/label/index.stories.tsx +0 -16
- package/src/components/atoms/label/index.test.tsx +0 -25
- package/src/components/atoms/label/index.tsx +0 -37
- package/src/components/atoms/logo/__snapshots__/index.test.tsx.snap +0 -99
- package/src/components/atoms/logo/index.stories.tsx +0 -84
- package/src/components/atoms/logo/index.test.tsx +0 -18
- package/src/components/atoms/logo/index.tsx +0 -1915
- package/src/components/atoms/marryBabyText/index.styled.tsx +0 -86
- package/src/components/atoms/marryBabyText/index.tsx +0 -57
- package/src/components/atoms/pagination/__snapshots__/index.test.tsx.snap +0 -185
- package/src/components/atoms/pagination/index.stories.tsx +0 -92
- package/src/components/atoms/pagination/index.styled.tsx +0 -73
- package/src/components/atoms/pagination/index.test.tsx +0 -26
- package/src/components/atoms/pagination/index.tsx +0 -286
- package/src/components/atoms/progress/index.stories.tsx +0 -55
- package/src/components/atoms/progress/index.styled.tsx +0 -30
- package/src/components/atoms/progress/index.tsx +0 -29
- package/src/components/atoms/pureInput/__snapshots__/index.test.tsx.snap +0 -135
- package/src/components/atoms/pureInput/delete.svg +0 -3
- package/src/components/atoms/pureInput/index.stories.tsx +0 -54
- package/src/components/atoms/pureInput/index.styled.tsx +0 -123
- package/src/components/atoms/pureInput/index.test.tsx +0 -29
- package/src/components/atoms/pureInput/index.tsx +0 -162
- package/src/components/atoms/radio/__snapshots__/index.test.tsx.snap +0 -163
- package/src/components/atoms/radio/index.stories.tsx +0 -48
- package/src/components/atoms/radio/index.styled.tsx +0 -133
- package/src/components/atoms/radio/index.test.tsx +0 -31
- package/src/components/atoms/radio/index.tsx +0 -66
- package/src/components/atoms/rateStars/index.stories.tsx +0 -71
- package/src/components/atoms/rateStars/index.styled.tsx +0 -17
- package/src/components/atoms/rateStars/index.tsx +0 -101
- package/src/components/atoms/shadow/__snapshots__/index.test.tsx.snap +0 -37
- package/src/components/atoms/shadow/index.stories.tsx +0 -55
- package/src/components/atoms/shadow/index.styled.tsx +0 -31
- package/src/components/atoms/shadow/index.test.tsx +0 -25
- package/src/components/atoms/shadow/index.tsx +0 -20
- package/src/components/atoms/slider/__snapshots__/index.test.tsx.snap +0 -172
- package/src/components/atoms/slider/index.stories.tsx +0 -22
- package/src/components/atoms/slider/index.styled.tsx +0 -68
- package/src/components/atoms/slider/index.test.tsx +0 -27
- package/src/components/atoms/slider/index.tsx +0 -140
- package/src/components/atoms/tag/__snapshots__/index.test.tsx.snap +0 -72
- package/src/components/atoms/tag/index.stories.tsx +0 -54
- package/src/components/atoms/tag/index.styled.tsx +0 -184
- package/src/components/atoms/tag/index.test.tsx +0 -23
- package/src/components/atoms/tag/index.tsx +0 -72
- package/src/components/atoms/text/index.stories.tsx +0 -24
- package/src/components/atoms/text/index.styled.tsx +0 -231
- package/src/components/atoms/text/index.tsx +0 -99
- package/src/components/atoms/textArea/index.stories.tsx +0 -30
- package/src/components/atoms/textArea/index.tsx +0 -86
- package/src/components/atoms/textDivider/index.tsx +0 -48
- package/src/components/atoms/toggle/__snapshots__/index.test.tsx.snap +0 -73
- package/src/components/atoms/toggle/index.stories.tsx +0 -38
- package/src/components/atoms/toggle/index.styled.tsx +0 -55
- package/src/components/atoms/toggle/index.test.tsx +0 -27
- package/src/components/atoms/toggle/index.tsx +0 -28
- package/src/components/atoms/underlinedLink/index.stories.tsx +0 -35
- package/src/components/atoms/underlinedLink/index.styled.tsx +0 -66
- package/src/components/atoms/underlinedLink/index.text.tsx +0 -23
- package/src/components/atoms/underlinedLink/index.tsx +0 -30
- package/src/components/atoms/uploader/__snapshots__/index.test.tsx.snap +0 -170
- package/src/components/atoms/uploader/index.stories.tsx +0 -128
- package/src/components/atoms/uploader/index.styled.tsx +0 -53
- package/src/components/atoms/uploader/index.test.tsx +0 -96
- package/src/components/atoms/uploader/index.tsx +0 -107
- package/src/components/index.ts +0 -3
- package/src/components/molecules/ampNextPage/index.tsx +0 -48
- package/src/components/molecules/articleCard/bookmark.png +0 -0
- package/src/components/molecules/articleCard/bookmarked.png +0 -0
- package/src/components/molecules/articleCard/index.stories.tsx +0 -222
- package/src/components/molecules/articleCard/index.styled.tsx +0 -391
- package/src/components/molecules/articleCard/index.tsx +0 -430
- package/src/components/molecules/breadcrumbs/__snapshots__/index.test.tsx.snap +0 -173
- package/src/components/molecules/breadcrumbs/index.stories.tsx +0 -79
- package/src/components/molecules/breadcrumbs/index.styled.tsx +0 -99
- package/src/components/molecules/breadcrumbs/index.test.tsx +0 -45
- package/src/components/molecules/breadcrumbs/index.tsx +0 -141
- package/src/components/molecules/carousel/index.stories.tsx +0 -40
- package/src/components/molecules/carousel/index.styled.tsx +0 -115
- package/src/components/molecules/carousel/index.tsx +0 -178
- package/src/components/molecules/categoryCard/index.stories.tsx +0 -19
- package/src/components/molecules/categoryCard/index.styled.tsx +0 -38
- package/src/components/molecules/categoryCard/index.tsx +0 -51
- package/src/components/molecules/checkboxGroup/__snapshots__/index.test.tsx.snap +0 -214
- package/src/components/molecules/checkboxGroup/index.stories.tsx +0 -118
- package/src/components/molecules/checkboxGroup/index.styled.tsx +0 -27
- package/src/components/molecules/checkboxGroup/index.test.tsx +0 -36
- package/src/components/molecules/checkboxGroup/index.tsx +0 -66
- package/src/components/molecules/cookieAcceptConfirm/__snapshots__/index.test.tsx.snap +0 -152
- package/src/components/molecules/cookieAcceptConfirm/index.stories.tsx +0 -23
- package/src/components/molecules/cookieAcceptConfirm/index.styled.tsx +0 -101
- package/src/components/molecules/cookieAcceptConfirm/index.test.tsx +0 -23
- package/src/components/molecules/cookieAcceptConfirm/index.tsx +0 -78
- package/src/components/molecules/cookieAcceptConfirm/info.svg +0 -3
- package/src/components/molecules/datePicker/__snapshots__/index.test.tsx.snap +0 -377
- package/src/components/molecules/datePicker/index.stories.tsx +0 -55
- package/src/components/molecules/datePicker/index.styled.tsx +0 -374
- package/src/components/molecules/datePicker/index.test.tsx +0 -46
- package/src/components/molecules/datePicker/index.tsx +0 -361
- package/src/components/molecules/dateRangePicker/calendar/index.styled.ts +0 -122
- package/src/components/molecules/dateRangePicker/calendar/index.tsx +0 -247
- package/src/components/molecules/dateRangePicker/index.stories.tsx +0 -45
- package/src/components/molecules/dateRangePicker/index.styled.ts +0 -36
- package/src/components/molecules/dateRangePicker/index.tsx +0 -103
- package/src/components/molecules/dateRangePicker/types.ts +0 -4
- package/src/components/molecules/dateRangePicker/utils.ts +0 -26
- package/src/components/molecules/doctorInfo/index.stories.tsx +0 -20
- package/src/components/molecules/doctorInfo/index.tsx +0 -54
- package/src/components/molecules/dropdown/__snapshots__/index.test.tsx.snap +0 -133
- package/src/components/molecules/dropdown/index.stories.tsx +0 -158
- package/src/components/molecules/dropdown/index.styled.tsx +0 -149
- package/src/components/molecules/dropdown/index.test.tsx +0 -45
- package/src/components/molecules/dropdown/index.tsx +0 -143
- package/src/components/molecules/dropdownSearch/index.stories.tsx +0 -66
- package/src/components/molecules/dropdownSearch/index.styled.tsx +0 -157
- package/src/components/molecules/dropdownSearch/index.tsx +0 -169
- package/src/components/molecules/dropdownSearch/search.svg +0 -4
- package/src/components/molecules/floatButtonGroup/add-period.svg +0 -9
- package/src/components/molecules/floatButtonGroup/index.stories.tsx +0 -72
- package/src/components/molecules/floatButtonGroup/index.styled.tsx +0 -310
- package/src/components/molecules/floatButtonGroup/index.tsx +0 -155
- package/src/components/molecules/iconText/__snapshots__/index.test.tsx.snap +0 -64
- package/src/components/molecules/iconText/index.stories.tsx +0 -22
- package/src/components/molecules/iconText/index.styled.tsx +0 -47
- package/src/components/molecules/iconText/index.test.tsx +0 -31
- package/src/components/molecules/iconText/index.tsx +0 -33
- package/src/components/molecules/index.ts +0 -39
- package/src/components/molecules/languageSwitcher/index.stories.tsx +0 -32
- package/src/components/molecules/languageSwitcher/index.styled.tsx +0 -23
- package/src/components/molecules/languageSwitcher/index.tsx +0 -68
- package/src/components/molecules/languageSwitcher/tooltipSelection/index.styled.tsx +0 -69
- package/src/components/molecules/languageSwitcher/tooltipSelection/index.tsx +0 -84
- package/src/components/molecules/mobileBottomNavigation/MobileBottomNavigationIcon.tsx +0 -51
- package/src/components/molecules/mobileBottomNavigation/index.stories.tsx +0 -173
- package/src/components/molecules/mobileBottomNavigation/index.styled.tsx +0 -150
- package/src/components/molecules/mobileBottomNavigation/index.tsx +0 -41
- package/src/components/molecules/modal/__snapshots__/index.test.tsx.snap +0 -3
- package/src/components/molecules/modal/index.stories.tsx +0 -139
- package/src/components/molecules/modal/index.styled.tsx +0 -146
- package/src/components/molecules/modal/index.test.tsx +0 -26
- package/src/components/molecules/modal/index.tsx +0 -147
- package/src/components/molecules/popup/__snapshots__/index.test.tsx.snap +0 -102
- package/src/components/molecules/popup/index.stories.tsx +0 -21
- package/src/components/molecules/popup/index.styled.tsx +0 -90
- package/src/components/molecules/popup/index.test.tsx +0 -26
- package/src/components/molecules/popup/index.tsx +0 -45
- package/src/components/molecules/progressBar/__snapshots__/index.test.tsx.snap +0 -167
- package/src/components/molecules/progressBar/index.stories.tsx +0 -72
- package/src/components/molecules/progressBar/index.styled.tsx +0 -182
- package/src/components/molecules/progressBar/index.test.tsx +0 -75
- package/src/components/molecules/progressBar/index.tsx +0 -245
- package/src/components/molecules/radioGroup/__snapshots__/index.test.tsx.snap +0 -290
- package/src/components/molecules/radioGroup/index.stories.tsx +0 -131
- package/src/components/molecules/radioGroup/index.styled.tsx +0 -75
- package/src/components/molecules/radioGroup/index.test.tsx +0 -33
- package/src/components/molecules/radioGroup/index.tsx +0 -80
- package/src/components/molecules/scrollList/index.stories.tsx +0 -113
- package/src/components/molecules/scrollList/index.styled.tsx +0 -140
- package/src/components/molecules/scrollList/index.tsx +0 -786
- package/src/components/molecules/seoHead/index.tsx +0 -382
- package/src/components/molecules/sidemenu/__snapshots__/index.test.tsx.snap +0 -273
- package/src/components/molecules/sidemenu/index.stories.tsx +0 -156
- package/src/components/molecules/sidemenu/index.test.tsx +0 -56
- package/src/components/molecules/sidemenu/index.tsx +0 -4
- package/src/components/molecules/sidemenu/menuLink.tsx +0 -78
- package/src/components/molecules/sidemenu/sideHeader.tsx +0 -85
- package/src/components/molecules/sidemenu/sideMenu.tsx +0 -39
- package/src/components/molecules/sidemenu/test.tsx +0 -94
- package/src/components/molecules/sidemenu/userInfo.tsx +0 -44
- package/src/components/molecules/starsRatingBox/index.stories.tsx +0 -121
- package/src/components/molecules/starsRatingBox/index.styled.tsx +0 -23
- package/src/components/molecules/starsRatingBox/index.tsx +0 -83
- package/src/components/molecules/statisticCard/__snapshots__/index.test.tsx.snap +0 -86
- package/src/components/molecules/statisticCard/index.stories.tsx +0 -40
- package/src/components/molecules/statisticCard/index.styled.tsx +0 -47
- package/src/components/molecules/statisticCard/index.test.tsx +0 -44
- package/src/components/molecules/statisticCard/index.tsx +0 -48
- package/src/components/molecules/surveyQuestionCard/__snapshots__/index.test.tsx.snap +0 -743
- package/src/components/molecules/surveyQuestionCard/index.stories.tsx +0 -115
- package/src/components/molecules/surveyQuestionCard/index.styled.tsx +0 -220
- package/src/components/molecules/surveyQuestionCard/index.test.tsx +0 -53
- package/src/components/molecules/surveyQuestionCard/index.tsx +0 -2
- package/src/components/molecules/surveyQuestionCard/surveyQuestionCard.tsx +0 -213
- package/src/components/molecules/surveyQuestionCard/surveyQuestionContent.tsx +0 -200
- package/src/components/molecules/surveyQuestionCard/surveyRadio.tsx +0 -69
- package/src/components/molecules/surveyQuestionCard/surveyThankyouCard.tsx +0 -129
- package/src/components/molecules/table/__snapshots__/index.test.tsx.snap +0 -56
- package/src/components/molecules/table/index.stories.tsx +0 -264
- package/src/components/molecules/table/index.test.tsx +0 -29
- package/src/components/molecules/table/index.tsx +0 -5
- package/src/components/molecules/table/table.tsx +0 -38
- package/src/components/molecules/table/tableBody.tsx +0 -46
- package/src/components/molecules/table/tableCell.tsx +0 -47
- package/src/components/molecules/table/tableHead.tsx +0 -46
- package/src/components/molecules/table/tableRow.tsx +0 -45
- package/src/components/molecules/tabs/__snapshots__/index.test.tsx.snap +0 -104
- package/src/components/molecules/tabs/index.stories.tsx +0 -45
- package/src/components/molecules/tabs/index.styled.tsx +0 -58
- package/src/components/molecules/tabs/index.test.tsx +0 -49
- package/src/components/molecules/tabs/index.tsx +0 -89
- package/src/components/organisms/footer/discoverFooter/index.styled.tsx +0 -286
- package/src/components/organisms/footer/discoverFooter/index.tsx +0 -448
- package/src/components/organisms/footer/index.stories.tsx +0 -207
- package/src/components/organisms/footer/index.tsx +0 -70
- package/src/components/organisms/footer/maryBabyFooter/index.styled.tsx +0 -502
- package/src/components/organisms/footer/maryBabyFooter/index.tsx +0 -393
- package/src/components/organisms/index.ts +0 -31
- package/src/components/organisms/navigationBookingButton/index.styled.tsx +0 -11
- package/src/components/organisms/navigationBookingButton/index.tsx +0 -53
- package/src/components/organisms/navigationLayout/CustomFooter.tsx +0 -154
- package/src/components/organisms/navigationLayout/ampSideBar/index.styled.tsx +0 -151
- package/src/components/organisms/navigationLayout/ampSideBar/index.tsx +0 -276
- package/src/components/organisms/navigationLayout/assets/check.svg +0 -3
- package/src/components/organisms/navigationLayout/assets/chevronDown.svg +0 -3
- package/src/components/organisms/navigationLayout/assets/chevronRightWhite.svg +0 -3
- package/src/components/organisms/navigationLayout/assets/chevronUpBlue.svg +0 -3
- package/src/components/organisms/navigationLayout/assets/closeLight.svg +0 -4
- package/src/components/organisms/navigationLayout/assets/closeWhite.svg +0 -4
- package/src/components/organisms/navigationLayout/assets/hamburgerMenu.svg +0 -5
- package/src/components/organisms/navigationLayout/assets/index.js +0 -19
- package/src/components/organisms/navigationLayout/assets/info-light.svg +0 -5
- package/src/components/organisms/navigationLayout/constants.ts +0 -958
- package/src/components/organisms/navigationLayout/footer/index.styled.tsx +0 -286
- package/src/components/organisms/navigationLayout/footer/index.tsx +0 -449
- package/src/components/organisms/navigationLayout/index.stories.tsx +0 -273
- package/src/components/organisms/navigationLayout/index.styled.tsx +0 -153
- package/src/components/organisms/navigationLayout/index.tsx +0 -1272
- package/src/components/organisms/navigationLayout/languageWrapper.tsx +0 -19
- package/src/components/organisms/navigationLayout/languages/default.ts +0 -63
- package/src/components/organisms/navigationLayout/layout.tsx +0 -406
- package/src/components/organisms/navigationLayout/marryBabyText/index.styled.tsx +0 -86
- package/src/components/organisms/navigationLayout/marryBabyText/index.tsx +0 -57
- package/src/components/organisms/navigationLayout/maryBabyFooter/index.styled.tsx +0 -502
- package/src/components/organisms/navigationLayout/maryBabyFooter/index.tsx +0 -383
- package/src/components/organisms/navigationLayout/menuCareList/categorySkeleton.tsx +0 -25
- package/src/components/organisms/navigationLayout/menuCareList/index.styled.tsx +0 -156
- package/src/components/organisms/navigationLayout/menuCareList/index.tsx +0 -266
- package/src/components/organisms/navigationLayout/menuCategoriesList/categorySkeleton.tsx +0 -25
- package/src/components/organisms/navigationLayout/menuCategoriesList/helloSites.tsx +0 -419
- package/src/components/organisms/navigationLayout/menuCategoriesList/index.styled.tsx +0 -196
- package/src/components/organisms/navigationLayout/menuCategoriesList/index.tsx +0 -92
- package/src/components/organisms/navigationLayout/menuCategoriesList/marryBaby.styled.tsx +0 -151
- package/src/components/organisms/navigationLayout/menuCategoriesList/marryBaby.tsx +0 -409
- package/src/components/organisms/navigationLayout/menuCategoriesList/spotlightsList/index.styled.tsx +0 -147
- package/src/components/organisms/navigationLayout/menuCategoriesList/spotlightsList/index.tsx +0 -141
- package/src/components/organisms/navigationLayout/menuCategoriesList/spotlightsList/spotlightSkeleton.tsx +0 -25
- package/src/components/organisms/navigationLayout/menuCommunitiesList/categorySkeleton.tsx +0 -25
- package/src/components/organisms/navigationLayout/menuCommunitiesList/helloSites.tsx +0 -309
- package/src/components/organisms/navigationLayout/menuCommunitiesList/index.styled.tsx +0 -162
- package/src/components/organisms/navigationLayout/menuCommunitiesList/index.tsx +0 -80
- package/src/components/organisms/navigationLayout/menuCommunitiesList/marryBaby.styled.tsx +0 -119
- package/src/components/organisms/navigationLayout/menuCommunitiesList/marryBaby.tsx +0 -181
- package/src/components/organisms/navigationLayout/menuHealthToolsList/categorySkeleton.tsx +0 -25
- package/src/components/organisms/navigationLayout/menuHealthToolsList/helloSites.tsx +0 -364
- package/src/components/organisms/navigationLayout/menuHealthToolsList/index.styled.tsx +0 -176
- package/src/components/organisms/navigationLayout/menuHealthToolsList/index.tsx +0 -83
- package/src/components/organisms/navigationLayout/menuHealthToolsList/marryBaby.tsx +0 -166
- package/src/components/organisms/navigationLayout/menuHealthToolsList/marrybaby.styled.tsx +0 -118
- package/src/components/organisms/navigationLayout/menuSectionCard/cardSkeleton.tsx +0 -32
- package/src/components/organisms/navigationLayout/menuSectionCard/index.styled.tsx +0 -46
- package/src/components/organisms/navigationLayout/menuSectionCard/index.tsx +0 -52
- package/src/components/organisms/navigationLayout/menuServiceList/categoriesSubList.tsx +0 -121
- package/src/components/organisms/navigationLayout/menuServiceList/communitySubList.tsx +0 -143
- package/src/components/organisms/navigationLayout/menuServiceList/index.styled.tsx +0 -460
- package/src/components/organisms/navigationLayout/menuServiceList/index.tsx +0 -746
- package/src/components/organisms/navigationLayout/menuServiceList/marryBabyMobileMenuSection.tsx +0 -239
- package/src/components/organisms/navigationLayout/navigationBar/ArrowLeftPopupIcon.tsx +0 -21
- package/src/components/organisms/navigationLayout/navigationBar/ClosePopupIcon.tsx +0 -20
- package/src/components/organisms/navigationLayout/navigationBar/HamburgerIcon.tsx +0 -43
- package/src/components/organisms/navigationLayout/navigationBar/NavigationBar.types.ts +0 -99
- package/src/components/organisms/navigationLayout/navigationBar/NavigationBarMobile.tsx +0 -503
- package/src/components/organisms/navigationLayout/navigationBar/SearchIcon.tsx +0 -22
- package/src/components/organisms/navigationLayout/navigationBar/index.styled.tsx +0 -540
- package/src/components/organisms/navigationLayout/navigationBar/index.tsx +0 -798
- package/src/components/organisms/navigationLayout/navigationLogoutPopup/index.styled.tsx +0 -87
- package/src/components/organisms/navigationLayout/navigationLogoutPopup/index.tsx +0 -95
- package/src/components/organisms/navigationLayout/profilePopup/index.tsx +0 -102
- package/src/components/organisms/navigationLayout/profilePopupWrapper/index.styled.tsx +0 -164
- package/src/components/organisms/navigationLayout/profilePopupWrapper/index.tsx +0 -58
- package/src/components/organisms/navigationLayout/siteWide/index.styled.tsx +0 -116
- package/src/components/organisms/navigationLayout/siteWide/index.tsx +0 -162
- package/src/components/organisms/navigationLayout/sponsoredBy/index.styled.tsx +0 -119
- package/src/components/organisms/navigationLayout/sponsoredBy/index.tsx +0 -254
- package/src/components/organisms/navigationLayout/tooltipSelection/index.styled.tsx +0 -66
- package/src/components/organisms/navigationLayout/tooltipSelection/index.tsx +0 -81
- package/src/components/organisms/navigationLayout/types.ts +0 -322
- package/src/components/organisms/navigationLayout/utils.tsx +0 -424
- package/src/components/organisms/navigationLogoutPopup/index.stories.tsx +0 -34
- package/src/components/organisms/navigationLogoutPopup/index.styled.tsx +0 -87
- package/src/components/organisms/navigationLogoutPopup/index.tsx +0 -78
- package/src/components/organisms/navigationProfileButton/index.stories.tsx +0 -51
- package/src/components/organisms/navigationProfileButton/index.styled.tsx +0 -254
- package/src/components/organisms/navigationProfileButton/index.tsx +0 -217
- package/src/components/organisms/navigationProfileButton/popupWrapper.tsx +0 -58
- package/src/components/organisms/navigationProfileButton/profilePopup.tsx +0 -97
- package/src/components/organisms/navigationV2/components/atoms/ArrowLeftPopupIcon.tsx +0 -21
- package/src/components/organisms/navigationV2/components/atoms/ClosePopupIcon.tsx +0 -21
- package/src/components/organisms/navigationV2/components/atoms/HamburgerIcon.tsx +0 -58
- package/src/components/organisms/navigationV2/components/atoms/ItemNav/index.styled.tsx +0 -63
- package/src/components/organisms/navigationV2/components/atoms/ItemNav/index.tsx +0 -71
- package/src/components/organisms/navigationV2/components/atoms/PopupWrapper/btnClosePopup.tsx +0 -30
- package/src/components/organisms/navigationV2/components/atoms/PopupWrapper/index.styled.tsx +0 -62
- package/src/components/organisms/navigationV2/components/atoms/PopupWrapper/index.tsx +0 -45
- package/src/components/organisms/navigationV2/components/atoms/SearchIcon.tsx +0 -22
- package/src/components/organisms/navigationV2/components/atoms/searchInput/index.tsx +0 -45
- package/src/components/organisms/navigationV2/components/molecules/Categories/index.styled.tsx +0 -74
- package/src/components/organisms/navigationV2/components/molecules/Categories/index.tsx +0 -115
- package/src/components/organisms/navigationV2/components/molecules/Spotlights/index.styled.tsx +0 -40
- package/src/components/organisms/navigationV2/components/molecules/Spotlights/index.tsx +0 -60
- package/src/components/organisms/navigationV2/components/molecules/menuCareList/Item/index.styled.tsx +0 -155
- package/src/components/organisms/navigationV2/components/molecules/menuCareList/Item/index.tsx +0 -103
- package/src/components/organisms/navigationV2/components/molecules/menuCareList/careSpotlights.tsx +0 -40
- package/src/components/organisms/navigationV2/components/molecules/menuCareList/index.styled.tsx +0 -29
- package/src/components/organisms/navigationV2/components/molecules/menuCareList/index.tsx +0 -65
- package/src/components/organisms/navigationV2/components/molecules/menuCategoriesList/Item/index.styled.tsx +0 -46
- package/src/components/organisms/navigationV2/components/molecules/menuCategoriesList/Item/index.tsx +0 -50
- package/src/components/organisms/navigationV2/components/molecules/menuCategoriesList/categorySpotlights.tsx +0 -59
- package/src/components/organisms/navigationV2/components/molecules/menuCategoriesList/index.styled.tsx +0 -30
- package/src/components/organisms/navigationV2/components/molecules/menuCategoriesList/index.tsx +0 -64
- package/src/components/organisms/navigationV2/components/molecules/menuCommunitiesList/Item/index.styled.tsx +0 -89
- package/src/components/organisms/navigationV2/components/molecules/menuCommunitiesList/Item/index.tsx +0 -91
- package/src/components/organisms/navigationV2/components/molecules/menuCommunitiesList/communitySpotlights.tsx +0 -49
- package/src/components/organisms/navigationV2/components/molecules/menuCommunitiesList/index.styled.tsx +0 -42
- package/src/components/organisms/navigationV2/components/molecules/menuCommunitiesList/index.tsx +0 -56
- package/src/components/organisms/navigationV2/components/molecules/menuHealthToolsList/Item/index.styled.tsx +0 -104
- package/src/components/organisms/navigationV2/components/molecules/menuHealthToolsList/Item/index.tsx +0 -99
- package/src/components/organisms/navigationV2/components/molecules/menuHealthToolsList/index.styled.tsx +0 -18
- package/src/components/organisms/navigationV2/components/molecules/menuHealthToolsList/index.tsx +0 -65
- package/src/components/organisms/navigationV2/components/molecules/menuHealthToolsList/toolSpotlights.tsx +0 -41
- package/src/components/organisms/navigationV2/components/molecules/menuServiceList/index.styled.tsx +0 -358
- package/src/components/organisms/navigationV2/components/molecules/menuServiceList/index.tsx +0 -88
- package/src/components/organisms/navigationV2/components/molecules/navigationBar/hamburgerMenu.tsx +0 -74
- package/src/components/organisms/navigationV2/components/molecules/navigationBar/index.styled.tsx +0 -214
- package/src/components/organisms/navigationV2/components/molecules/navigationBar/index.tsx +0 -283
- package/src/components/organisms/navigationV2/components/molecules/navigationBar/navigationProfileButtonWithContext.tsx +0 -50
- package/src/components/organisms/navigationV2/components/molecules/spotlightNoData/index.styled.tsx +0 -70
- package/src/components/organisms/navigationV2/components/molecules/spotlightNoData/index.tsx +0 -74
- package/src/components/organisms/navigationV2/constants.ts +0 -277
- package/src/components/organisms/navigationV2/hooks/useHeaderHeight.tsx +0 -84
- package/src/components/organisms/navigationV2/hooks/useInsider.tsx +0 -67
- package/src/components/organisms/navigationV2/hooks/useNavConfig.tsx +0 -99
- package/src/components/organisms/navigationV2/hooks/useNavServices.tsx +0 -73
- package/src/components/organisms/navigationV2/index.stories.tsx +0 -287
- package/src/components/organisms/navigationV2/index.styled.tsx +0 -30
- package/src/components/organisms/navigationV2/index.tsx +0 -320
- package/src/components/organisms/navigationV2/navigationContext.tsx +0 -38
- package/src/components/organisms/navigationV2/types.ts +0 -307
- package/src/components/organisms/navigationV2/utils.tsx +0 -400
- package/src/components/organisms/userProfileNavigation/assets/helloSites/icon-chevronDown.svg +0 -3
- package/src/components/organisms/userProfileNavigation/assets/helloSites/icon-chevronRight.svg +0 -3
- package/src/components/organisms/userProfileNavigation/assets/helloSites/icon-eCom.svg +0 -22
- package/src/components/organisms/userProfileNavigation/assets/helloSites/icon-helpCircle.svg +0 -3
- package/src/components/organisms/userProfileNavigation/assets/helloSites/icon-logOut.svg +0 -3
- package/src/components/organisms/userProfileNavigation/assets/helloSites/icon-myBooking.svg +0 -36
- package/src/components/organisms/userProfileNavigation/assets/helloSites/icon-myCommunity.svg +0 -19
- package/src/components/organisms/userProfileNavigation/assets/helloSites/icon-myFamily.svg +0 -15
- package/src/components/organisms/userProfileNavigation/assets/helloSites/icon-myHealth.svg +0 -13
- package/src/components/organisms/userProfileNavigation/assets/helloSites/icon-mySaved.svg +0 -3
- package/src/components/organisms/userProfileNavigation/assets/helloSites/icon-rank-ambassador.svg +0 -4
- package/src/components/organisms/userProfileNavigation/assets/helloSites/icon-rank-doctor.svg +0 -4
- package/src/components/organisms/userProfileNavigation/assets/helloSites/icon-rank-expert.svg +0 -4
- package/src/components/organisms/userProfileNavigation/assets/helloSites/icon-rank-influencer.svg +0 -4
- package/src/components/organisms/userProfileNavigation/assets/helloSites/icon-rank-member.svg +0 -8
- package/src/components/organisms/userProfileNavigation/assets/helloSites/icon-settingsWheel.svg +0 -3
- package/src/components/organisms/userProfileNavigation/assets/marryBaby/icon-arrowRight.svg +0 -3
- package/src/components/organisms/userProfileNavigation/assets/marryBaby/icon-lock.svg +0 -4
- package/src/components/organisms/userProfileNavigation/assets/marryBaby/icon-logOut.svg +0 -4
- package/src/components/organisms/userProfileNavigation/assets/marryBaby/icon-myCommunity.svg +0 -4
- package/src/components/organisms/userProfileNavigation/assets/marryBaby/icon-myHealth.svg +0 -6
- package/src/components/organisms/userProfileNavigation/assets/marryBaby/icon-mySaved.svg +0 -3
- package/src/components/organisms/userProfileNavigation/assets/marryBaby/icon-rank-ambassador.svg +0 -40
- package/src/components/organisms/userProfileNavigation/assets/marryBaby/icon-rank-doctor.svg +0 -40
- package/src/components/organisms/userProfileNavigation/assets/marryBaby/icon-rank-expert.svg +0 -27
- package/src/components/organisms/userProfileNavigation/assets/marryBaby/icon-rank-influencer.svg +0 -33
- package/src/components/organisms/userProfileNavigation/assets/marryBaby/icon-rank-member.svg +0 -33
- package/src/components/organisms/userProfileNavigation/constants.ts +0 -23
- package/src/components/organisms/userProfileNavigation/index.stories.tsx +0 -79
- package/src/components/organisms/userProfileNavigation/index.styled.ts +0 -60
- package/src/components/organisms/userProfileNavigation/index.tsx +0 -219
- package/src/components/organisms/userProfileNavigation/navHeader/index.styled.ts +0 -76
- package/src/components/organisms/userProfileNavigation/navHeader/index.tsx +0 -68
- package/src/components/organisms/userProfileNavigation/navMenu/index.styled.ts +0 -115
- package/src/components/organisms/userProfileNavigation/navMenu/index.tsx +0 -79
- package/src/components/organisms/userProfileNavigation/navMenu/items.ts +0 -38
- package/src/components/organisms/userProfileNavigation/navigationCard/index.styled.ts +0 -51
- package/src/components/organisms/userProfileNavigation/navigationCard/index.tsx +0 -96
- package/src/components/organisms/userProfileNavigation/types.ts +0 -35
- package/src/components/organisms/userProfileNavigation/userStats/index.styled.ts +0 -110
- package/src/components/organisms/userProfileNavigation/userStats/index.tsx +0 -78
- package/src/core.ts +0 -7
- package/src/docs/releases/getReleases.js +0 -56
- package/src/docs/releases/index.stories.mdx +0 -9
- package/src/ecom/dataFormatter/index.ts +0 -933
- package/src/ecom/dataFormatter/lib/apiTypes.ts +0 -623
- package/src/ecom/dataFormatter/lib/dataTypes.ts +0 -571
- package/src/ecom/dataFormatter/lib/utils.ts +0 -40
- package/src/ecom/index.tsx +0 -5
- package/src/ecom/interfaces/constants.ts +0 -1000
- package/src/ecom/interfaces/types.ts +0 -194
- package/src/hooks/useCSSFocusPopupHelper.ts +0 -32
- package/src/hooks/useDragScroll.ts +0 -55
- package/src/hooks/useDropdownSearch.tsx +0 -52
- package/src/hooks/useFbDataLayer.tsx +0 -49
- package/src/hooks/useGeolocation.ts +0 -86
- package/src/hooks/useGetIsMobile.ts +0 -20
- package/src/hooks/useImagesPicker.ts +0 -56
- package/src/hooks/useIsInit.ts +0 -9
- package/src/hooks/useOutsideClick.ts +0 -20
- package/src/hooks/useScreenSize.ts +0 -35
- package/src/hooks/useScrollbarSize.ts +0 -74
- package/src/hooks/useTranslations.tsx +0 -41
- package/src/i18n/en-PH.json +0 -235
- package/src/i18n/hi-IN.json +0 -235
- package/src/i18n/id-ID.json +0 -235
- package/src/i18n/index.ts +0 -3
- package/src/i18n/km-KH.json +0 -235
- package/src/i18n/ms-MY.json +0 -235
- package/src/i18n/my-MM.json +0 -235
- package/src/i18n/th-TH.json +0 -235
- package/src/i18n/tl-PH.json +0 -235
- package/src/i18n/translations.ts +0 -47
- package/src/i18n/translationsContext.ts +0 -12
- package/src/i18n/translationsProvider.tsx +0 -66
- package/src/i18n/vi-VN.json +0 -242
- package/src/i18n/zh-TW.json +0 -235
- package/src/index.ts +0 -12
- package/src/interfaces/constants.ts +0 -402
- package/src/interfaces/types.ts +0 -85
- package/src/misc/cookieHelper.tsx +0 -31
- package/src/misc/lazyLoad.ts +0 -7
- package/src/misc/mockTheme.tsx +0 -11
- package/src/misc/number.ts +0 -24
- package/src/misc/routing.tsx +0 -45
- package/src/misc/theme.ts +0 -186
- package/src/misc/utils.ts +0 -214
- package/src/test/testTranslationProvider.tsx +0 -14
- package/src/together/api/dataTransform.ts +0 -650
- package/src/together/api/paths.ts +0 -163
- package/src/together/api/utils.ts +0 -399
- package/src/together/assets/images/avatar-default.png +0 -0
- package/src/together/assets/images/icon-whatsapp.png +0 -0
- package/src/together/assets/images/icon-zalo.png +0 -0
- package/src/together/assets/marrybaby/svg/comment.svg +0 -4
- package/src/together/assets/marrybaby/svg/commentSolid.svg +0 -5
- package/src/together/assets/marrybaby/svg/commentWhite.svg +0 -4
- package/src/together/assets/marrybaby/svg/copy.svg +0 -1
- package/src/together/assets/marrybaby/svg/facebook.svg +0 -9
- package/src/together/assets/marrybaby/svg/heart.svg +0 -4
- package/src/together/assets/marrybaby/svg/heartSolid.svg +0 -4
- package/src/together/assets/marrybaby/svg/linkedin.svg +0 -6
- package/src/together/assets/marrybaby/svg/loading.svg +0 -15
- package/src/together/assets/marrybaby/svg/messenger.svg +0 -17
- package/src/together/assets/marrybaby/svg/more.svg +0 -6
- package/src/together/assets/marrybaby/svg/moreSolid.svg +0 -6
- package/src/together/assets/marrybaby/svg/pin.svg +0 -6
- package/src/together/assets/marrybaby/svg/pinOrange.svg +0 -6
- package/src/together/assets/marrybaby/svg/share.svg +0 -5
- package/src/together/assets/marrybaby/svg/share2.svg +0 -5
- package/src/together/assets/marrybaby/svg/sortBy.svg +0 -5
- package/src/together/assets/marrybaby/svg/twitter.svg +0 -4
- package/src/together/assets/marrybaby/svg/zalo.png +0 -0
- package/src/together/assets/svg/bullet-point.svg +0 -3
- package/src/together/assets/svg/chevronRightActive.svg +0 -3
- package/src/together/assets/svg/close-circle-line.svg +0 -5
- package/src/together/assets/svg/closeLight copy.svg +0 -4
- package/src/together/assets/svg/closeLight.svg +0 -4
- package/src/together/assets/svg/delete.svg +0 -13
- package/src/together/assets/svg/icon-alert-circle-primary.svg +0 -5
- package/src/together/assets/svg/icon-alert-circle-warning.svg +0 -5
- package/src/together/assets/svg/icon-alert-circle.svg +0 -5
- package/src/together/assets/svg/icon-arrow-circle-upgrade.svg +0 -3
- package/src/together/assets/svg/icon-arrow-left.svg +0 -4
- package/src/together/assets/svg/icon-arrow-right-circle.svg +0 -5
- package/src/together/assets/svg/icon-bell-off.svg +0 -7
- package/src/together/assets/svg/icon-bell-on.svg +0 -4
- package/src/together/assets/svg/icon-bookmark-fill.svg +0 -3
- package/src/together/assets/svg/icon-bookmark.svg +0 -3
- package/src/together/assets/svg/icon-cancel.svg +0 -13
- package/src/together/assets/svg/icon-check-gray.svg +0 -3
- package/src/together/assets/svg/icon-check-pink.svg +0 -3
- package/src/together/assets/svg/icon-check-success.svg +0 -4
- package/src/together/assets/svg/icon-check.svg +0 -4
- package/src/together/assets/svg/icon-chevron-left-dark.svg +0 -3
- package/src/together/assets/svg/icon-chevron-right-dark.svg +0 -3
- package/src/together/assets/svg/icon-chevron-right-white.svg +0 -3
- package/src/together/assets/svg/icon-chevron-right.svg +0 -3
- package/src/together/assets/svg/icon-close-circle-line.svg +0 -5
- package/src/together/assets/svg/icon-close-circle.svg +0 -5
- package/src/together/assets/svg/icon-close.svg +0 -4
- package/src/together/assets/svg/icon-edit.svg +0 -3
- package/src/together/assets/svg/icon-enter.svg +0 -4
- package/src/together/assets/svg/icon-facebook.svg +0 -3
- package/src/together/assets/svg/icon-heart-empty.svg +0 -3
- package/src/together/assets/svg/icon-heart-fill-red.svg +0 -3
- package/src/together/assets/svg/icon-heart-fill.svg +0 -3
- package/src/together/assets/svg/icon-kebab.svg +0 -5
- package/src/together/assets/svg/icon-link.svg +0 -4
- package/src/together/assets/svg/icon-linkedin.svg +0 -4
- package/src/together/assets/svg/icon-pin-gray.svg +0 -4
- package/src/together/assets/svg/icon-pin-yellow.svg +0 -4
- package/src/together/assets/svg/icon-pin.svg +0 -4
- package/src/together/assets/svg/icon-reply-arrow.svg +0 -3
- package/src/together/assets/svg/icon-reply-circle-empty.svg +0 -3
- package/src/together/assets/svg/icon-reply-circle-fill.svg +0 -3
- package/src/together/assets/svg/icon-share-on-media.svg +0 -7
- package/src/together/assets/svg/icon-sort-arrow.svg +0 -4
- package/src/together/assets/svg/icon-tab-edit-2.svg +0 -4
- package/src/together/assets/svg/icon-tab-edit-primary.svg +0 -4
- package/src/together/assets/svg/icon-trash-bin.svg +0 -6
- package/src/together/assets/svg/icon-twitter.svg +0 -4
- package/src/together/assets/svg/loading.svg +0 -7
- package/src/together/assets/svg/reviewer-author.svg +0 -12
- package/src/together/assets/svg/reviewer-editor.svg +0 -12
- package/src/together/assets/svg/reviewer-expert.svg +0 -5
- package/src/together/assets/svg/reviewer-fact-check.svg +0 -4
- package/src/together/assets/svg/reviewer-medical.svg +0 -4
- package/src/together/components/atoms/cardLink/index.styled.tsx +0 -64
- package/src/together/components/atoms/cardLink/index.tsx +0 -149
- package/src/together/components/atoms/cardReactions/index.styled.tsx +0 -96
- package/src/together/components/atoms/cardReactions/index.tsx +0 -221
- package/src/together/components/atoms/index.tsx +0 -8
- package/src/together/components/atoms/labelSortPin/index.styled.tsx +0 -78
- package/src/together/components/atoms/labelSortPin/index.tsx +0 -50
- package/src/together/components/atoms/labelSortPin/labelPin.tsx +0 -47
- package/src/together/components/atoms/labelSortPin/labelSorting.tsx +0 -127
- package/src/together/components/atoms/loading/index.styled.tsx +0 -42
- package/src/together/components/atoms/loading/index.tsx +0 -25
- package/src/together/components/atoms/loading/loadingCard.tsx +0 -38
- package/src/together/components/atoms/tagTopic/index.styled.tsx +0 -33
- package/src/together/components/atoms/tagTopic/index.tsx +0 -57
- package/src/together/components/atoms/userAvatar/index.styled.tsx +0 -39
- package/src/together/components/atoms/userAvatar/index.tsx +0 -62
- package/src/together/components/molecules/cardAuthor/customMMLocale/formatDistance.ts +0 -112
- package/src/together/components/molecules/cardAuthor/customMMLocale/index.ts +0 -16
- package/src/together/components/molecules/cardAuthor/customMMLocale/types.ts +0 -37
- package/src/together/components/molecules/cardAuthor/index.styled.tsx +0 -164
- package/src/together/components/molecules/cardAuthor/index.tsx +0 -314
- package/src/together/components/molecules/createNewPostContent/index.stories.tsx +0 -114
- package/src/together/components/molecules/createNewPostContent/index.styled.tsx +0 -73
- package/src/together/components/molecules/createNewPostContent/index.tsx +0 -351
- package/src/together/components/molecules/createPostDescription/editor.tsx +0 -915
- package/src/together/components/molecules/createPostDescription/index.styled.tsx +0 -328
- package/src/together/components/molecules/createPostDescription/index.tsx +0 -163
- package/src/together/components/molecules/createPostTitle/index.styled.tsx +0 -62
- package/src/together/components/molecules/createPostTitle/index.tsx +0 -133
- package/src/together/components/molecules/index.tsx +0 -18
- package/src/together/components/molecules/inputCommentBar/index.styled.tsx +0 -227
- package/src/together/components/molecules/inputCommentBar/index.tsx +0 -341
- package/src/together/components/molecules/inputCommentBar/mainInputTriggerContext.tsx +0 -26
- package/src/together/components/molecules/popupDanger/index.styled.tsx +0 -174
- package/src/together/components/molecules/popupDanger/index.tsx +0 -113
- package/src/together/components/molecules/popupDoctor/index.styled.tsx +0 -185
- package/src/together/components/molecules/popupDoctor/index.tsx +0 -271
- package/src/together/components/molecules/popupExpert/index.styled.tsx +0 -175
- package/src/together/components/molecules/popupExpert/index.tsx +0 -216
- package/src/together/components/molecules/popupFrame/index.styled.tsx +0 -76
- package/src/together/components/molecules/popupFrame/index.tsx +0 -43
- package/src/together/components/molecules/popupFrame/popupShare.tsx +0 -178
- package/src/together/components/molecules/popupHospital/index.styled.tsx +0 -173
- package/src/together/components/molecules/popupHospital/index.tsx +0 -249
- package/src/together/components/molecules/postContent/index.styled.tsx +0 -66
- package/src/together/components/molecules/postContent/index.tsx +0 -125
- package/src/together/components/molecules/postImagePreview/imagePreviewPopup.tsx +0 -73
- package/src/together/components/molecules/postImagePreview/index.styled.tsx +0 -154
- package/src/together/components/molecules/postImagePreview/index.tsx +0 -115
- package/src/together/components/molecules/postImagePreview/postSingleImageViewPopup/index.styled.tsx +0 -84
- package/src/together/components/molecules/postImagePreview/postSingleImageViewPopup/index.tsx +0 -83
- package/src/together/components/molecules/shareBox/index.stories.tsx +0 -36
- package/src/together/components/molecules/shareBox/index.styled.tsx +0 -141
- package/src/together/components/molecules/shareBox/index.tsx +0 -188
- package/src/together/components/molecules/socialLinkPreview/index.styled.tsx +0 -39
- package/src/together/components/molecules/socialLinkPreview/index.tsx +0 -206
- package/src/together/components/molecules/submitReportForm/index.styled.tsx +0 -34
- package/src/together/components/molecules/submitReportForm/index.tsx +0 -84
- package/src/together/components/molecules/topicSelectList/index.stories.tsx +0 -93
- package/src/together/components/molecules/topicSelectList/index.styled.tsx +0 -53
- package/src/together/components/molecules/topicSelectList/index.tsx +0 -186
- package/src/together/components/organisms/cardPost/cardPostPopover.tsx +0 -293
- package/src/together/components/organisms/cardPost/index.stories.tsx +0 -212
- package/src/together/components/organisms/cardPost/index.styled.tsx +0 -181
- package/src/together/components/organisms/cardPost/index.tsx +0 -458
- package/src/together/components/organisms/cardReply/cardReplyPopover.tsx +0 -122
- package/src/together/components/organisms/cardReply/index.styled.tsx +0 -199
- package/src/together/components/organisms/cardReply/index.tsx +0 -362
- package/src/together/components/organisms/index.tsx +0 -5
- package/src/together/components/organisms/popoverMenu/index.styled.tsx +0 -313
- package/src/together/components/organisms/popoverMenu/index.tsx +0 -102
- package/src/together/components/organisms/popoverMenu/treePopoverMenu.tsx +0 -156
- package/src/together/hooks/useTogetherAuthRequiredAction.tsx +0 -124
- package/src/together/index.ts +0 -12
- package/src/together/interfaces/constants.ts +0 -306
- package/src/together/interfaces/types.ts +0 -1418
- package/src/together/togetherComponentGlobalContext.tsx +0 -150
- package/src/together/utils/apiActions/comment.tsx +0 -168
- package/src/together/utils/apiActions/community.ts +0 -59
- package/src/together/utils/apiActions/post.ts +0 -234
- package/src/together/utils/apiActions/topic.ts +0 -40
- package/src/together/utils/notification.ts +0 -20
- package/src/together/utils/post.ts +0 -351
- package/tsconfig.json +0 -28
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
export const PATHS = {
|
|
2
|
-
BASE_API_PATH: '/',
|
|
3
|
-
PROFILE: 'profile?website_url={website_url}',
|
|
4
|
-
SEARCH_USER: 'profile/search?website_url={website_url}&name={name}',
|
|
5
|
-
FETCH_PREVIEW: 'fetch/preview?website_url={website_url}',
|
|
6
|
-
FETCH_POST_OR_TOPIC:
|
|
7
|
-
'fetch/{slug}?website_url={website_url}&community_slug={communitySlug}',
|
|
8
|
-
POST: {
|
|
9
|
-
LIST: 'post?website_url={website_url}&slug={slug}&pin={pin}&page={page}&community_id={communityId}&topic_id={topicId}&sort_by={sort}&id={id}',
|
|
10
|
-
DETAIL_BY_ID_OR_SLUG: 'post/{idSlug}?website_url={website_url}',
|
|
11
|
-
CREATE: 'post/create?website_url={website_url}',
|
|
12
|
-
LIKE: 'post/{id}/like?website_url={website_url}',
|
|
13
|
-
DELETE: 'post/{id}/delete?website_url={website_url}',
|
|
14
|
-
REPORT: 'post/{id}/report?website_url={website_url}',
|
|
15
|
-
UPDATE: 'post/{id}/update?website_url={website_url}',
|
|
16
|
-
FOLLOW: 'post/{id}/follow?website_url={website_url}',
|
|
17
|
-
CREATE_ARTICLE_COMMENT: 'article-comment/create?website_url={website_url}',
|
|
18
|
-
},
|
|
19
|
-
COMMENT: {
|
|
20
|
-
LIST: 'comment?website_url={website_url}&post_id={postId}&page={page}&sort_by={sort}&items_per_page={perPage}&_without_reply={withoutReply}',
|
|
21
|
-
CREATE: 'comment/create?website_url={website_url}',
|
|
22
|
-
REPLY: 'comment/reply?website_url={website_url}',
|
|
23
|
-
DELETE: 'comment/{id}/delete?website_url={website_url}',
|
|
24
|
-
LIKE: 'comment/{id}/like?website_url={website_url}',
|
|
25
|
-
UNLIKE: 'comment/{id}/unlike?website_url={website_url}',
|
|
26
|
-
IMAGE_UPLOAD: 'comment/image/upload?website_url={website_url}',
|
|
27
|
-
},
|
|
28
|
-
COMMUNITY: {
|
|
29
|
-
LIST: 'community?website_url={website_url}&page={page}',
|
|
30
|
-
DETAIL_BY_ID_OR_SLUG: 'community/{idSlug}?website_url={website_url}',
|
|
31
|
-
JOIN: 'community/join?website_url={website_url}',
|
|
32
|
-
LEAVE: 'community/leave?website_url={website_url}',
|
|
33
|
-
},
|
|
34
|
-
TOPIC: {
|
|
35
|
-
LIST: 'topic?website_url={website_url}&community_slug={communitySlug}&community_id={communityId}&page={page}',
|
|
36
|
-
DETAIL_BY_ID_OR_SLUG:
|
|
37
|
-
'topic/{idSlug}?website_url={website_url}&community_slug={communitySlug}&community_id={communityId}',
|
|
38
|
-
HEALTH_TOOLS: 'tools?topic_id={topicId}&website_url={website_url}',
|
|
39
|
-
SUBOTS: 'subots?topic_id={topicId}&website_url={website_url}',
|
|
40
|
-
SUGGESTED_POSTS:
|
|
41
|
-
'suggested-posts?topic_id={topicId}&website_url={website_url}&page={page}',
|
|
42
|
-
JOIN: 'topic/join?website_url={website_url}',
|
|
43
|
-
LEAVE: 'topic/leave?website_url={website_url}',
|
|
44
|
-
},
|
|
45
|
-
BOOKMARK: {
|
|
46
|
-
LIST: 'bookmark?user_id={userId}&website_url={website_url}',
|
|
47
|
-
CREATE: 'bookmark/create?website_url={website_url}',
|
|
48
|
-
DELETE: 'bookmark/delete?website_url={website_url}',
|
|
49
|
-
},
|
|
50
|
-
// OLD
|
|
51
|
-
|
|
52
|
-
UPLOAD_IMAGE: 'auth/comment/image/upload?website_url={website_url}',
|
|
53
|
-
}
|
|
54
|
-
export const SUBOT_PATHS = {
|
|
55
|
-
TOGETHER: {
|
|
56
|
-
SURVEY: {
|
|
57
|
-
GET_FIRST_NODE: 'frontend/api/bots/{botId}',
|
|
58
|
-
CHAT_WITH_BOT: 'frontend/api/inline/messages',
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
}
|
|
62
|
-
export const CARE_PATHS = {
|
|
63
|
-
GET_DOCTOR_INFO: 'api/doctors/{doctorId}?site={website_url}',
|
|
64
|
-
GET_HOSPITAL_INFO:
|
|
65
|
-
'api/hospital/branch/{hospital_branch_id}?site={website_url}',
|
|
66
|
-
}
|
|
67
|
-
export const DISCOVER_PATHS = {
|
|
68
|
-
BASE_API_PATH: '/',
|
|
69
|
-
GET_SEARCH_ARTICLES: 'search?s={keyword}&page={page}',
|
|
70
|
-
// GET_TOP_CATEGORIES: 'categories',
|
|
71
|
-
GET_ALL_CATEGORIES: 'categories?type=all',
|
|
72
|
-
GET_HOMEPAGE_POSTS: 'home/trending-post?type={type}',
|
|
73
|
-
GET_HOMEPAGE_LATEST_POSTS: 'articles?page=1&_islatest=1',
|
|
74
|
-
GET_ARTICLE_DETAIL:
|
|
75
|
-
'article/{slug}?skip_ids={skipIds}&_isrelated={isRelated}',
|
|
76
|
-
GET_CATEGORY_DETAIL: 'category/{slug}',
|
|
77
|
-
GET_CATEGORY_OR_ARTICLE_DETAIL: 'fetch/{fullSlug}',
|
|
78
|
-
GET_PREVIEW_ARTICLE: 'fetch/{fullSlug}?preview_nonce={nonce}&preview=true',
|
|
79
|
-
GET_ARTICLE_OF_CATEGORY:
|
|
80
|
-
'articles?category_id={categoryId}&page={currentPage}',
|
|
81
|
-
GET_PAGE_STATIC: 'page/{slug}',
|
|
82
|
-
GET_ALL_HEALTH_TOOLS: 'healthtools',
|
|
83
|
-
GET_ALL_MARRYBABY_HEALTH_TOOLS: 'health-tools',
|
|
84
|
-
GET_HEALTH_TOOLS_BY_CATEGORY: 'healthtools?_hasgroup=1',
|
|
85
|
-
GET_AUTHOR: 'author/{slug}',
|
|
86
|
-
GET_ALL_EXPERTS: 'experts',
|
|
87
|
-
GET_ALL_EXPERTS_PAGING: 'experts?page={page}',
|
|
88
|
-
GET_EXPERT: 'expert/{slug}',
|
|
89
|
-
GET_EXPERT_POST: 'expert/article?page={page}',
|
|
90
|
-
POST_ARTICLE_FEEDBACK: 'article/feedback/{id}',
|
|
91
|
-
GET_AZ_DRUGS: 'category/a-z/{category}',
|
|
92
|
-
GET_HOMEPAGE_MEDICAL_REVIEWED: 'home/medical-reviewed',
|
|
93
|
-
GET_ARTICLES_BY_IDS: 'articles?ids={ids}',
|
|
94
|
-
GET_ARTICLE_OF_CATEGORY_NO_EXPLAINERS:
|
|
95
|
-
'articles?category_id={categoryId}&page={currentPage}&skip_ids={ids}',
|
|
96
|
-
GET_EXPERT_OF_CATEGORY: 'category/expert/?id={id}',
|
|
97
|
-
GET_DUE_DATE_INFO: 'health-tools/due-date-calculator/info',
|
|
98
|
-
GET_DUE_DATE_ALL_WEEKS: 'health-tools/due-date-calculator/all',
|
|
99
|
-
GET_DUE_DATE_SUGGESTED_ARTICLES:
|
|
100
|
-
'health-tools/due-date-calculator/result?from_week={from}&to_week={to}',
|
|
101
|
-
GET_PROFILE: 'user/profile',
|
|
102
|
-
GET_ADMIN_PROFILE: 'GET_ADMIN_PROFILE',
|
|
103
|
-
GET_FEATURE: 'feature',
|
|
104
|
-
POST_NEW_FEATURE: 'feature/update',
|
|
105
|
-
CREATE_BOOKMARK: 'bookmark/create',
|
|
106
|
-
DELETE_BOOKMARK: 'bookmark/delete',
|
|
107
|
-
DELETE_ALL_BOOKMARK: 'bookmark/delete-all',
|
|
108
|
-
GET_ALL_BOOKMARK: 'bookmark',
|
|
109
|
-
SSO_USER_PROFILE: 'user',
|
|
110
|
-
SSO_USER_BOOKMARKS: 'user/bookmarks',
|
|
111
|
-
SSO_USER_PASSWORD: 'user/settings/password',
|
|
112
|
-
SSO_USER_EMAIL: 'user/settings/update-email',
|
|
113
|
-
SSO_CLOSE_ACCOUNT: 'user/settings/close-account',
|
|
114
|
-
SSO_HELP: 'user/settings/help',
|
|
115
|
-
GET_HEALTH_TOOL_OVULATION_INFO: 'health-tools/ovulation-calculator/info',
|
|
116
|
-
GET_HEALTH_TOOL_OVULATION_SUGGESTED_ARTICLES:
|
|
117
|
-
'health-tools/ovulation-calculator/result?method={method}', // method: 1, 2, 3
|
|
118
|
-
GET_HEALTH_TOOL_BMI_INFO: 'health-tools/bmi-calculator/info',
|
|
119
|
-
GET_HEALTH_TOOL_BMI_RESULT:
|
|
120
|
-
'health-tools/bmi-calculator/result?gender={gender}&bmi={bmi}&age={age}',
|
|
121
|
-
GET_HEALTH_TOOL_BMR_INFO: 'health-tools/bmr-calculator/info',
|
|
122
|
-
GET_HEALTH_TOOL_BMR_RESULT:
|
|
123
|
-
'health-tools/bmr-calculator/result?kcals={kcals}&gender={gender}&age={age}',
|
|
124
|
-
GET_HEALTH_TOOL_PWG_INFO: 'health-tools/preweight-gain-calculator/info',
|
|
125
|
-
GET_HEALTH_TOOL_THR_INFO: 'health-tools/target-heart-rate/info',
|
|
126
|
-
POST_UPDATE_LOCATION: 'tracking/geo/',
|
|
127
|
-
// SIDIS
|
|
128
|
-
GET_SIDIS_DUE_DATE: 'frontend/tools/due_date',
|
|
129
|
-
GET_SIDIS_OVULATION: 'frontend/tools/ovulation',
|
|
130
|
-
GET_SIDIS_BMI: 'frontend/tools/bmi',
|
|
131
|
-
GET_SIDIS_BMR: 'frontend/tools/bmr',
|
|
132
|
-
POST_LOGOUT: 'user/logout',
|
|
133
|
-
OVULATION_CREATE_EVENT:
|
|
134
|
-
'ovulation/event?method={method}&day={day}&cycle={cycle}&period={period}&token={token}&user_id={user_id}',
|
|
135
|
-
GET_ALL_SPOTLIGHT: 'spotlights?per_page={perPage}&order_by={orderBy}',
|
|
136
|
-
SSO_UPDATE_FIRST_TIME_BOOKMARK: 'bookmark/update-first-time',
|
|
137
|
-
POST_COMMENT_NOTIFICATION: 'comment/notification',
|
|
138
|
-
GET_ABOUT_US_DATA: 'about',
|
|
139
|
-
POST_LEAD_IMPRESSION: 'campaign/{campaignCode}/impression',
|
|
140
|
-
POST_LEAD_POPUP_EXIT: 'campaign/{campaignCode}/popup_exit',
|
|
141
|
-
POST_LEAD_LEAD: 'campaign/{campaignCode}/lead',
|
|
142
|
-
POST_SSO_VERIFY_TOKEN: 'verify-id-token',
|
|
143
|
-
GET_LANDING_PAGE_FIRST_NODE: 'landing_page/bot',
|
|
144
|
-
GET_LANDING_PAGE_NEXT_NODE: 'landing_page/messages',
|
|
145
|
-
POST_LANDING_PAGE_IMPRESSION: 'landing_page/impressions',
|
|
146
|
-
POST_LANDING_PAGE_CLICK: 'landing_page/clicks',
|
|
147
|
-
FETCH_URL_DATA: 'preview',
|
|
148
|
-
GET_SPOTLIGHT_LANDING: 'spotlight/{slug}',
|
|
149
|
-
GET_FOOTER_INFO: 'footer',
|
|
150
|
-
CHECK_SSO_EMAIL: 'member/check-email',
|
|
151
|
-
|
|
152
|
-
GET_HOMEPAGE_SITEWIDE_BANNER: 'home/sitewide-banner',
|
|
153
|
-
GET_DYNAMIC_FOOTER: 'menu/footer',
|
|
154
|
-
GET_EXPERTS: 'experts?page={page}&number={perPage}&s={search}',
|
|
155
|
-
GET_EXPERT_BY_ID: 'expert/{id}',
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
export const ADMIN_PATHS = {
|
|
159
|
-
SEARCH_USER: 'admin/profile/search?website_url={website_url}&name={name}',
|
|
160
|
-
COMMENT: {
|
|
161
|
-
IMAGE_UPLOAD: 'admin/comment/image/upload?website_url={website_url}',
|
|
162
|
-
},
|
|
163
|
-
}
|
|
@@ -1,399 +0,0 @@
|
|
|
1
|
-
import cookieParser from 'cookie'
|
|
2
|
-
import { getCookie } from 'misc/cookieHelper'
|
|
3
|
-
import slugify from 'slugify'
|
|
4
|
-
import { LocaleType } from 'src/components/organisms/navigationLayout/types'
|
|
5
|
-
import formatString from 'string-format'
|
|
6
|
-
import { GlobalData } from 'together/togetherComponentGlobalContext'
|
|
7
|
-
|
|
8
|
-
import {
|
|
9
|
-
BEARER_ADMIN_TOKEN_COOKIE,
|
|
10
|
-
BEARER_TOKEN_COOKIE,
|
|
11
|
-
LOCALISED_SLUGS,
|
|
12
|
-
} from '../interfaces/constants'
|
|
13
|
-
// import { DISCOVER_PATHS, PATHS } from './paths'
|
|
14
|
-
// let _apolloClient:ApolloClient<NormalizedCacheObject>
|
|
15
|
-
|
|
16
|
-
export const domainLocales = {
|
|
17
|
-
'vi-VN': 'hellobacsi.com',
|
|
18
|
-
'id-ID': 'hellosehat.com',
|
|
19
|
-
'ms-MY': 'hellodoktor.com',
|
|
20
|
-
'km-KH': 'hellokrupet.com',
|
|
21
|
-
'en-PH': 'hellodoctor.com.ph',
|
|
22
|
-
'th-TH': 'hellokhunmor.com',
|
|
23
|
-
'my-MM': 'hellosayarwon.com',
|
|
24
|
-
'zh-TW': 'helloyishi.com.tw',
|
|
25
|
-
'hi-IN': 'helloswasthya.com',
|
|
26
|
-
}
|
|
27
|
-
export const domainLocalesMarryBaby = {
|
|
28
|
-
'vi-VN': 'marrybaby.vn',
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
const locale = (process.env.NEXT_PUBLIC_DEPLOY_LOCALE || 'vi-VN') as LocaleType
|
|
32
|
-
export const getWebsiteUrlApi = (locale: string) => {
|
|
33
|
-
const {
|
|
34
|
-
env: { isMarryBaby },
|
|
35
|
-
} = GlobalData
|
|
36
|
-
return `https://${
|
|
37
|
-
isMarryBaby ? domainLocalesMarryBaby[locale] : domainLocales[locale]
|
|
38
|
-
}`
|
|
39
|
-
}
|
|
40
|
-
const cleanFormatString = (url: string) => {
|
|
41
|
-
const qIndex = url.indexOf('?')
|
|
42
|
-
if (qIndex >= 0) {
|
|
43
|
-
return (
|
|
44
|
-
url.slice(0, qIndex + 1) +
|
|
45
|
-
url
|
|
46
|
-
.slice(qIndex + 1)
|
|
47
|
-
.replace(/[^=&]+=(&|$)/g, '')
|
|
48
|
-
.replace(/&$/, '')
|
|
49
|
-
)
|
|
50
|
-
}
|
|
51
|
-
return url
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export const getCurrentBaseUrl = (locale: string) => {
|
|
55
|
-
const {
|
|
56
|
-
env: { isMarryBaby },
|
|
57
|
-
} = GlobalData
|
|
58
|
-
if (typeof window !== 'undefined') return window.location.origin
|
|
59
|
-
const isStaging = process.env.NEXT_PUBLIC_DEPLOY_ENV === 'staging'
|
|
60
|
-
const isDev = process.env.NEXT_PUBLIC_DEPLOY_ENV === 'development'
|
|
61
|
-
return isDev
|
|
62
|
-
? 'http://localhost:3000'
|
|
63
|
-
: `https://${
|
|
64
|
-
isStaging
|
|
65
|
-
? isMarryBaby
|
|
66
|
-
? 'fe.'
|
|
67
|
-
: 'discover.'
|
|
68
|
-
: isMarryBaby
|
|
69
|
-
? 'www.'
|
|
70
|
-
: ''
|
|
71
|
-
}${domainLocales[locale]}`
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export const getCurrentHref = (
|
|
75
|
-
locale: string,
|
|
76
|
-
basePath: string,
|
|
77
|
-
asPath: string,
|
|
78
|
-
) => {
|
|
79
|
-
if (typeof window !== 'undefined') return window.location.href
|
|
80
|
-
return `${getCurrentBaseUrl(locale)}${basePath}${asPath}`
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export const getApiPath = (
|
|
84
|
-
path: string,
|
|
85
|
-
params?: { [key: string]: string | number },
|
|
86
|
-
query?: { [key: string]: string | number },
|
|
87
|
-
) => {
|
|
88
|
-
let queryString = ''
|
|
89
|
-
if (query) {
|
|
90
|
-
queryString = Object.keys(query)
|
|
91
|
-
.map((key) => key + '=' + query[key])
|
|
92
|
-
.join('&')
|
|
93
|
-
}
|
|
94
|
-
const { togetherBaseApiUrl = '' } = GlobalData?.env || {}
|
|
95
|
-
let formattedPath = formatString(path, {
|
|
96
|
-
...(params?._locale
|
|
97
|
-
? {
|
|
98
|
-
website_url: getWebsiteUrlApi(String(params._locale)),
|
|
99
|
-
}
|
|
100
|
-
: {}),
|
|
101
|
-
...params,
|
|
102
|
-
})
|
|
103
|
-
formattedPath += `${formattedPath.includes('?') ? '&' : '?'}${queryString}`
|
|
104
|
-
return togetherBaseApiUrl + 'api/v1/' + cleanFormatString(formattedPath)
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export const getDiscoverApiPath = (
|
|
108
|
-
path: string,
|
|
109
|
-
params?: { [key: string]: string | number },
|
|
110
|
-
) => {
|
|
111
|
-
const { discoverBaseApiUrl = '' } = GlobalData?.env || {}
|
|
112
|
-
return (
|
|
113
|
-
discoverBaseApiUrl +
|
|
114
|
-
'wp-json/api/' +
|
|
115
|
-
cleanFormatString(
|
|
116
|
-
formatString(path, {
|
|
117
|
-
...params,
|
|
118
|
-
}),
|
|
119
|
-
)
|
|
120
|
-
)
|
|
121
|
-
}
|
|
122
|
-
export const getCarePath = (
|
|
123
|
-
path: string,
|
|
124
|
-
params?: { [key: string]: string | number | undefined },
|
|
125
|
-
) => {
|
|
126
|
-
const { careBaseApiUrl = '' } = GlobalData?.env || {}
|
|
127
|
-
return (
|
|
128
|
-
(careBaseApiUrl || 'https://service-health-care.hellohealthgroup.com/') +
|
|
129
|
-
cleanFormatString(formatString(path, { ...params }))
|
|
130
|
-
)
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
const fixedEncodeURI = (str: string) => {
|
|
134
|
-
return encodeURI(str).replace(/%5B/g, '[').replace(/%5D/g, ']')
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
type ApiOptions = RequestInit & {
|
|
138
|
-
data?: any
|
|
139
|
-
}
|
|
140
|
-
const convertApiOptionsToRequestInit = (opts: ApiOptions): RequestInit => {
|
|
141
|
-
if (opts?.data) {
|
|
142
|
-
if (opts.data instanceof FormData) {
|
|
143
|
-
opts.body = opts.data
|
|
144
|
-
} else if (typeof opts.data === 'object') {
|
|
145
|
-
opts.body = JSON.stringify(opts.data)
|
|
146
|
-
}
|
|
147
|
-
delete opts.data
|
|
148
|
-
}
|
|
149
|
-
return opts
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export const callApi = async (
|
|
153
|
-
url: string,
|
|
154
|
-
method: string,
|
|
155
|
-
options?: ApiOptions,
|
|
156
|
-
skipEncodeURI = false,
|
|
157
|
-
) => {
|
|
158
|
-
try {
|
|
159
|
-
const res = await fetch(skipEncodeURI ? url : fixedEncodeURI(url), {
|
|
160
|
-
method,
|
|
161
|
-
...convertApiOptionsToRequestInit(options),
|
|
162
|
-
}).then((r) => r.json())
|
|
163
|
-
if (res) return res
|
|
164
|
-
} catch (err) {
|
|
165
|
-
console.log(err)
|
|
166
|
-
console.log({
|
|
167
|
-
url,
|
|
168
|
-
status: err?.response?.status,
|
|
169
|
-
statusText: err?.response?.statusText,
|
|
170
|
-
})
|
|
171
|
-
// Sentry.captureException(err)
|
|
172
|
-
return err?.response?.data || null
|
|
173
|
-
}
|
|
174
|
-
return null
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
export const callApiWithOptionalAuth = async (
|
|
178
|
-
urlData:
|
|
179
|
-
| {
|
|
180
|
-
url: string
|
|
181
|
-
backupUrl: string
|
|
182
|
-
}
|
|
183
|
-
| string,
|
|
184
|
-
method = 'GET',
|
|
185
|
-
options?: ApiOptions,
|
|
186
|
-
reqCookie?: string,
|
|
187
|
-
) => {
|
|
188
|
-
try {
|
|
189
|
-
const url = typeof urlData === 'string' ? urlData : urlData.url
|
|
190
|
-
const backupUrl = typeof urlData === 'string' ? urlData : urlData.backupUrl
|
|
191
|
-
const parsedCookie = cookieParser.parse(reqCookie || '')
|
|
192
|
-
const token = parsedCookie[BEARER_TOKEN_COOKIE]
|
|
193
|
-
const cookie = token || getCookie(BEARER_TOKEN_COOKIE)
|
|
194
|
-
if (cookie && cookie.length) {
|
|
195
|
-
try {
|
|
196
|
-
const res = await fetch(url, {
|
|
197
|
-
method,
|
|
198
|
-
...convertApiOptionsToRequestInit(options),
|
|
199
|
-
headers: {
|
|
200
|
-
Authorization: 'Bearer ' + cookie,
|
|
201
|
-
},
|
|
202
|
-
}).then((r) => r.json())
|
|
203
|
-
if (
|
|
204
|
-
res?.messages?.find(
|
|
205
|
-
(m: string) => m?.toLowerCase() === 'Unauthenticated',
|
|
206
|
-
)
|
|
207
|
-
) {
|
|
208
|
-
return callApi(backupUrl || url, method, options)
|
|
209
|
-
}
|
|
210
|
-
if (res) return res
|
|
211
|
-
} catch (err) {
|
|
212
|
-
console.log({
|
|
213
|
-
status: err?.response?.status,
|
|
214
|
-
statusText: err?.response?.statusText,
|
|
215
|
-
})
|
|
216
|
-
// Fallback noauth call
|
|
217
|
-
return callApi(backupUrl || url, method, options)
|
|
218
|
-
}
|
|
219
|
-
} else {
|
|
220
|
-
return callApi(backupUrl || url, method, options)
|
|
221
|
-
}
|
|
222
|
-
} catch (err) {
|
|
223
|
-
console.log({
|
|
224
|
-
status: err?.response?.status,
|
|
225
|
-
statusText: err?.response?.statusText,
|
|
226
|
-
})
|
|
227
|
-
// Sentry.captureException(err)
|
|
228
|
-
return err?.response?.data || null
|
|
229
|
-
}
|
|
230
|
-
return null
|
|
231
|
-
}
|
|
232
|
-
export const callApiWithAuth = async (
|
|
233
|
-
url: string,
|
|
234
|
-
method: string,
|
|
235
|
-
options?: ApiOptions,
|
|
236
|
-
reqCookie?: string,
|
|
237
|
-
) => {
|
|
238
|
-
try {
|
|
239
|
-
const parsedCookie = cookieParser.parse(reqCookie || '')
|
|
240
|
-
const token = parsedCookie[BEARER_TOKEN_COOKIE]
|
|
241
|
-
const cookie = token || getCookie(BEARER_TOKEN_COOKIE)
|
|
242
|
-
if (cookie && cookie.length) {
|
|
243
|
-
const res = await fetch(url, {
|
|
244
|
-
method,
|
|
245
|
-
...convertApiOptionsToRequestInit(options),
|
|
246
|
-
headers: {
|
|
247
|
-
Authorization: 'Bearer ' + cookie,
|
|
248
|
-
},
|
|
249
|
-
}).then((r) => r.json())
|
|
250
|
-
if (res) return res
|
|
251
|
-
}
|
|
252
|
-
} catch (err) {
|
|
253
|
-
// Sentry.captureException(err)
|
|
254
|
-
return null
|
|
255
|
-
}
|
|
256
|
-
return null
|
|
257
|
-
}
|
|
258
|
-
export const callApiWithAdminAuth = async (
|
|
259
|
-
url: string,
|
|
260
|
-
method: string,
|
|
261
|
-
options?: ApiOptions,
|
|
262
|
-
reqCookie?: string,
|
|
263
|
-
) => {
|
|
264
|
-
try {
|
|
265
|
-
const parsedCookie = cookieParser.parse(reqCookie || '')
|
|
266
|
-
const token = parsedCookie[BEARER_ADMIN_TOKEN_COOKIE]
|
|
267
|
-
const cookie = token || getCookie(BEARER_ADMIN_TOKEN_COOKIE)
|
|
268
|
-
if (cookie && cookie.length) {
|
|
269
|
-
const res = await fetch(url, {
|
|
270
|
-
method,
|
|
271
|
-
...convertApiOptionsToRequestInit(options),
|
|
272
|
-
headers: {
|
|
273
|
-
Authorization: 'Bearer ' + cookie,
|
|
274
|
-
},
|
|
275
|
-
}).then((r) => r.json())
|
|
276
|
-
if (res) return res
|
|
277
|
-
}
|
|
278
|
-
} catch (err) {
|
|
279
|
-
// Sentry.captureException(err)
|
|
280
|
-
return null
|
|
281
|
-
}
|
|
282
|
-
return null
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
export function updateQueryStringParameter(
|
|
286
|
-
uri: string,
|
|
287
|
-
key: string,
|
|
288
|
-
value: string,
|
|
289
|
-
) {
|
|
290
|
-
const re = new RegExp('([?&])' + key + '=.*?(&|$)', 'i')
|
|
291
|
-
const separator = uri.indexOf('?') !== -1 ? '&' : '?'
|
|
292
|
-
if (uri.match(re)) {
|
|
293
|
-
return uri.replace(re, '$1' + key + '=' + value + '$2')
|
|
294
|
-
} else {
|
|
295
|
-
return uri + separator + key + '=' + value
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
export const getUrlToSSOWithReturnUrl = (
|
|
300
|
-
url?: string,
|
|
301
|
-
params?: {
|
|
302
|
-
[k: string]: string
|
|
303
|
-
},
|
|
304
|
-
) => {
|
|
305
|
-
const { publicSSO } = GlobalData.env
|
|
306
|
-
|
|
307
|
-
const originalRedirectUrl = url || window.location.href
|
|
308
|
-
// const redirectUrl = new URL(originalRedirectUrl)
|
|
309
|
-
if (params) {
|
|
310
|
-
Object.keys(params).map((k) => {
|
|
311
|
-
updateQueryStringParameter(originalRedirectUrl, k, params[k])
|
|
312
|
-
})
|
|
313
|
-
}
|
|
314
|
-
updateQueryStringParameter(originalRedirectUrl, 'source', 'communities')
|
|
315
|
-
|
|
316
|
-
return publicSSO
|
|
317
|
-
? `${publicSSO}?returnUrl=${encodeURIComponent(
|
|
318
|
-
originalRedirectUrl.toString(),
|
|
319
|
-
)}`
|
|
320
|
-
: originalRedirectUrl
|
|
321
|
-
}
|
|
322
|
-
export const getUrlToSignUp = (
|
|
323
|
-
url?: string,
|
|
324
|
-
params?: {
|
|
325
|
-
[k: string]: string
|
|
326
|
-
},
|
|
327
|
-
togetherBasePath = '/community',
|
|
328
|
-
) => {
|
|
329
|
-
const currentLocation =
|
|
330
|
-
url || (typeof window !== 'undefined' ? window.location.href : '/')
|
|
331
|
-
let origin = typeof window !== 'undefined' ? window.location.origin : ''
|
|
332
|
-
if (!origin) {
|
|
333
|
-
if (url && (url.startsWith('http://') || url.startsWith('https://'))) {
|
|
334
|
-
origin = url.split('/').slice(0, 3).join('/')
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
const onBoardingUrl = `${origin}${togetherBasePath}/on-boarding?return=${encodeURIComponent(
|
|
338
|
-
currentLocation,
|
|
339
|
-
)}`
|
|
340
|
-
return getUrlToSSOWithReturnUrl(onBoardingUrl, params)
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
export const slugifiedNameWithId = (
|
|
344
|
-
name?: string,
|
|
345
|
-
id?: number,
|
|
346
|
-
slug?: string,
|
|
347
|
-
_locale?: LocaleType,
|
|
348
|
-
) => {
|
|
349
|
-
if (slug && id) {
|
|
350
|
-
return `${slug}-${id}`
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
return `${slugify(name || '', {
|
|
354
|
-
lower: true,
|
|
355
|
-
locale: _locale || locale,
|
|
356
|
-
})}-${id}`
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
export const getCareDoctorUrl = ({
|
|
360
|
-
name,
|
|
361
|
-
id,
|
|
362
|
-
locale,
|
|
363
|
-
}: {
|
|
364
|
-
name?: string
|
|
365
|
-
id?: number
|
|
366
|
-
locale: LocaleType
|
|
367
|
-
}) => {
|
|
368
|
-
return `/care/${
|
|
369
|
-
LOCALISED_SLUGS[locale || 'vi-VN']?.DOCTOR
|
|
370
|
-
}/${slugifiedNameWithId(name, id)}`
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
export const getCareHospitalUrl = ({
|
|
374
|
-
name,
|
|
375
|
-
id,
|
|
376
|
-
slug,
|
|
377
|
-
locale,
|
|
378
|
-
}: {
|
|
379
|
-
name?: string
|
|
380
|
-
id?: number
|
|
381
|
-
slug?: string
|
|
382
|
-
locale: LocaleType
|
|
383
|
-
}) => {
|
|
384
|
-
return `/care/${
|
|
385
|
-
LOCALISED_SLUGS[locale || 'vi-VN']?.HOSPITAL
|
|
386
|
-
}/${slugifiedNameWithId(name, id, slug)}`
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
export const getCareHospitalUrlAmp = ({
|
|
390
|
-
slug,
|
|
391
|
-
id,
|
|
392
|
-
locale,
|
|
393
|
-
}: {
|
|
394
|
-
slug?: string
|
|
395
|
-
id?: number
|
|
396
|
-
locale: LocaleType
|
|
397
|
-
}) => {
|
|
398
|
-
return `/care/${LOCALISED_SLUGS[locale || 'vi-VN']?.HOSPITAL}/${slug}-${id}`
|
|
399
|
-
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M8.69628 9.05793H14.7279M8.69628 12.5141H12.5346M13.1107 18.9268H14.1721C17.0589 18.9268 19.5701 16.8499 20.2476 13.9021C20.5841 12.4382 20.5841 10.9113 20.2476 9.44741L20.1588 9.06088C19.5057 6.21958 17.377 4.01204 14.6641 3.36264L14.283 3.27141C12.7712 2.90953 11.2013 2.90953 9.68953 3.27141L9.46648 3.32481C6.65677 3.99738 4.45212 6.28371 3.77571 9.22642C3.40585 10.8355 3.40923 12.5287 3.77909 14.1378C4.46607 17.1265 6.48688 19.6138 9.19777 20.7728L9.31593 20.8233C10.489 21.3249 11.8329 20.7208 12.3142 19.4902C12.4467 19.1515 12.7622 18.9268 13.1107 18.9268Z" stroke="#3E3F58" stroke-width="1.3" stroke-linecap="round"/>
|
|
3
|
-
</svg>
|
|
4
|
-
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M3.77571 9.22642C4.45212 6.28371 6.65677 3.99738 9.46648 3.32481L9.68953 3.27141C11.2013 2.90953 12.7712 2.90953 14.283 3.27141L14.6641 3.36264C17.377 4.01204 19.5057 6.21958 20.1588 9.06088L20.2476 9.44741C20.5841 10.9113 20.5841 12.4382 20.2476 13.9021C19.5701 16.8499 17.0589 18.9268 14.1721 18.9268H13.1107C12.7622 18.9268 12.4467 19.1515 12.3142 19.4902C11.8329 20.7208 10.489 21.3249 9.31593 20.8233L9.19777 20.7728C6.48688 19.6138 4.46607 17.1265 3.77909 14.1378C3.40923 12.5287 3.40585 10.8355 3.77571 9.22642Z" fill="#5EC08F"/>
|
|
3
|
-
<path d="M8.69629 9.05811H14.728M8.69629 12.5143H12.5346" stroke="white" stroke-width="1.3" stroke-linecap="round"/>
|
|
4
|
-
</svg>
|
|
5
|
-
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M8.69628 9.05793H14.7279M8.69628 12.5141H12.5346M13.1107 18.9268H14.1721C17.0589 18.9268 19.5701 16.8499 20.2476 13.9021C20.5841 12.4382 20.5841 10.9113 20.2476 9.44741L20.1588 9.06088C19.5057 6.21958 17.377 4.01204 14.6641 3.36264L14.283 3.27141C12.7712 2.90953 11.2013 2.90953 9.68953 3.27141L9.46648 3.32481C6.65677 3.99738 4.45212 6.28371 3.77571 9.22642C3.40585 10.8355 3.40923 12.5287 3.77909 14.1378C4.46607 17.1265 6.48688 19.6138 9.19777 20.7728L9.31593 20.8233C10.489 21.3249 11.8329 20.7208 12.3142 19.4902C12.4467 19.1515 12.7622 18.9268 13.1107 18.9268Z" stroke="#ffffff" stroke-width="1.3" stroke-linecap="round"/>
|
|
3
|
-
</svg>
|
|
4
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" xmlns:v="https://vecta.io/nano"><g fill="#3e3f58"><path d="M19.726 8.537l-.632.151.632-.151zm0 4.65l-.632-.151.632.151zm-9.097-8.918l.146.633-.146-.633zm4.744 0l-.146.633.146-.633zm1.303 11.983a.65.65 0 1 0 .649 1.126l-.649-1.126zM6.041 7.23a.65.65 0 0 0 1.182.541L6.041 7.23zm13.053 1.459c.342 1.43.342 2.918 0 4.348l1.264.303c.39-1.629.39-3.324 0-4.953l-1.264.303zm-8.32-3.786a9.94 9.94 0 0 1 4.452 0l.291-1.267a11.24 11.24 0 0 0-5.035 0l.291 1.267zm4.452 0c1.925.443 3.419 1.913 3.867 3.786l1.264-.303c-.566-2.363-2.445-4.199-4.84-4.75l-.291 1.267zm2.099 12.476c1.505-.868 2.62-2.314 3.033-4.04l-1.264-.303c-.327 1.368-1.213 2.521-2.418 3.217l.649 1.126zM10.482 3.636c-1.988.457-3.62 1.799-4.442 3.594l1.182.541c.652-1.425 1.954-2.501 3.551-2.868l-.291-1.267z"/><path d="M3.274 16.187l-.632.151.632-.151zm0-4.65l-.632-.151.632.151zm13.451 0l-.632.151.632-.151zm0 4.65l.632.151-.632-.151zm-4.354 4.268l-.146-.633.146.633zm-4.744 0l-.146.634.146-.634zm0-13.186l.146.633-.146-.633zm4.744 0l-.146.633.146-.633zm-8.465 8.767c-.342-1.43-.342-2.918 0-4.348l-1.264-.303c-.39 1.629-.39 3.324 0 4.953l1.264-.303zm12.187-4.348c.342 1.43.342 2.918 0 4.348l1.264.303c.39-1.629.39-3.324 0-4.953l-1.264.303zm-3.867 8.133a9.94 9.94 0 0 1-4.452 0l-.291 1.267a11.24 11.24 0 0 0 5.035 0l-.291-1.267zM7.774 7.903a9.94 9.94 0 0 1 4.452 0l.291-1.267a11.24 11.24 0 0 0-5.035 0l.291 1.267zm0 11.919c-1.925-.443-3.419-1.913-3.867-3.786l-1.264.303c.565 2.363 2.445 4.199 4.84 4.75l.291-1.267zm4.744 1.267c2.395-.551 4.275-2.387 4.84-4.75l-1.264-.303c-.448 1.872-1.942 3.343-3.867 3.786l.291 1.267zm-.291-13.186c1.925.443 3.419 1.913 3.867 3.785l1.264-.303c-.566-2.363-2.445-4.199-4.84-4.75l-.291 1.267zM7.482 6.636c-2.395.551-4.275 2.387-4.84 4.75l1.264.303c.448-1.872 1.942-3.343 3.867-3.785l-.291-1.267zM12.268 21l.083-2.523c.079-.573.221-.867.433-1.075l-.91-.928c-.499.489-.712 1.104-.811 1.827-.096.702-.095 1.596-.095 2.699h1.3zm4.205-5.409c-1.126 0-2.035-.001-2.748.093-.731.096-1.354.303-1.85.79l.91.928c.214-.21.519-.352 1.11-.43.609-.08 1.416-.082 2.579-.082v-1.3z"/></g><path d="M7 11h3m-3 3h5" stroke="#3e3f58" stroke-width="1.3" stroke-linecap="round"/></svg>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M35 9.58333V30.4167C35 32.9417 32.9417 35 30.4167 35H25.8333V23.3333H28.85C29.275 23.3333 29.6333 23.0167 29.6833 22.6L29.9917 20.1C30.025 19.8667 29.95 19.625 29.7917 19.45C29.6333 19.2667 29.4083 19.1667 29.1667 19.1667H25.8333V16.25C25.8333 15.3333 26.5833 14.5833 27.5 14.5833H29.1667C29.625 14.5833 30 14.2083 30 13.75V10.9333C30 10.5083 29.6667 10.15 29.2417 10.1083C29.1917 10.1 28.0167 10 26.525 10C22.8583 10 20.8333 12.1833 20.8333 16.1417V19.1667H17.5C17.0417 19.1667 16.6667 19.5417 16.6667 20V22.5C16.6667 22.9583 17.0417 23.3333 17.5 23.3333H20.8333V35H9.58333C7.05833 35 5 32.9417 5 30.4167V9.58333C5 7.05833 7.05833 5 9.58333 5H30.4167C32.9417 5 35 7.05833 35 9.58333Z" fill="url(#paint0_linear)"/>
|
|
3
|
-
<defs>
|
|
4
|
-
<linearGradient id="paint0_linear" x1="20" y1="5" x2="20" y2="35" gradientUnits="userSpaceOnUse">
|
|
5
|
-
<stop stop-color="#4DABF7"/>
|
|
6
|
-
<stop offset="1" stop-color="#2668DA"/>
|
|
7
|
-
</linearGradient>
|
|
8
|
-
</defs>
|
|
9
|
-
</svg>
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M3.98389 11.6106L9.11798 18.5107C10.5955 20.4964 13.4045 20.4964 14.882 18.5107L20.0161 11.6106C21.328 9.84746 21.328 7.34218 20.0161 5.57906C18.0957 2.9981 13.6571 3.76465 12 6.54855C10.3429 3.76465 5.90428 2.9981 3.9839 5.57906C2.67204 7.34218 2.67203 9.84746 3.98389 11.6106Z" stroke="#3E3F58" stroke-width="1.3" stroke-linecap="round"/>
|
|
3
|
-
</svg>
|
|
4
|
-
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M15.4709 4.0535C14.1978 4.22856 12.9226 4.8312 12 5.80891C11.0774 4.8312 9.8022 4.22856 8.52915 4.0535C6.91335 3.83131 5.1499 4.28425 4.05884 5.73088C2.64706 7.60276 2.64705 10.254 4.05884 12.1258L8.75286 18.3496C10.4125 20.5501 13.5875 20.5501 15.2471 18.3496L19.9412 12.1258C21.3529 10.254 21.3529 7.60276 19.9412 5.73088C18.8501 4.28425 17.0867 3.83131 15.4709 4.0535Z" fill="#E85388"/>
|
|
3
|
-
</svg>
|
|
4
|
-
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg width="41" height="40" viewBox="0 0 41 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M35.5 30.8333C35.5 33.135 33.635 35 31.3333 35H9.66667C7.36583 35 5.5 33.135 5.5 30.8333V9.16667C5.5 6.865 7.36583 5 9.66667 5H31.3333C33.635 5 35.5 6.865 35.5 9.16667V30.8333Z" fill="#0078D4"/>
|
|
3
|
-
<path opacity="0.05" d="M25.4993 30.8327V22.4168C25.4993 21.0093 24.8168 20.1685 23.6727 20.1685C22.9935 20.1685 22.4943 20.551 22.1902 21.3052C22.176 21.3585 22.156 21.576 22.1643 22.2335L22.166 30.8327H16.3327V14.9993H22.166V15.8835C23.0177 15.296 24.0618 14.9993 25.281 14.9993C29.0702 14.9993 31.3318 17.5768 31.3318 21.8943L31.3327 30.8327H25.4993ZM9.66602 30.8327V14.9993H12.5468C10.8777 14.9993 9.66602 13.7727 9.66602 12.0818C9.66602 10.3927 10.8977 9.16602 12.5943 9.16602C14.271 9.16602 15.4652 10.3585 15.4993 12.0652C15.4993 13.7685 14.2668 14.9993 12.5702 14.9993H15.4993V30.8327H9.66602Z" fill="black"/>
|
|
4
|
-
<path opacity="0.07" d="M25.9173 30.4173V22.4182C25.9173 20.774 25.0582 19.7532 23.674 19.7532C22.5948 19.7532 22.0615 20.5132 21.8048 21.1507C21.7365 21.3165 21.7457 21.9748 21.749 22.2557L21.7507 30.4173H16.7507V15.4173H21.7507V16.7823C22.4132 16.0965 23.4798 15.4173 25.2823 15.4173C28.8098 15.4173 30.9165 17.839 30.9165 21.8957L30.9173 30.4173H25.9173ZM10.084 30.4173V15.4173H15.084V30.4173H10.084ZM12.5482 14.584C11.1207 14.584 10.084 13.5323 10.084 12.0832C10.084 10.6348 11.1407 9.58398 12.5957 9.58398C14.0323 9.58398 15.0548 10.6082 15.084 12.0748C15.084 13.5323 14.0273 14.584 12.5715 14.584H12.5482Z" fill="black"/>
|
|
5
|
-
<path d="M10.5 15.8333H14.6667V30H10.5V15.8333ZM12.5708 14.1667H12.5475C11.3042 14.1667 10.5 13.24 10.5 12.0825C10.5 10.9 11.3292 10 12.595 10C13.8625 10 14.6433 10.9 14.6667 12.0825C14.6667 13.2392 13.8625 14.1667 12.5708 14.1667ZM30.5 30H26.3333V22.4175C26.3333 20.5858 25.3125 19.3358 23.6733 19.3358C22.4225 19.3358 21.7458 20.1792 21.4175 20.9942C21.2975 21.2858 21.3333 22.0925 21.3333 22.5V30H17.1667V15.8333H21.3333V18.0133C21.9342 17.0833 22.875 15.8333 25.2817 15.8333C28.2633 15.8333 30.4992 17.7083 30.4992 21.895L30.5 30Z" fill="white"/>
|
|
6
|
-
</svg>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<mask id="mask0" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="25" height="24">
|
|
3
|
-
<path d="M12.5 0C19.1274 0 24.5 5.37258 24.5 12C24.5 18.6274 19.1274 24 12.5 24C5.87258 24 0.5 18.6274 0.5 12C0.5 5.37258 5.87258 0 12.5 0ZM12.5 19.774C16.7935 19.774 20.274 16.2935 20.274 12C20.274 7.70654 16.7935 4.226 12.5 4.226C8.20654 4.226 4.726 7.70654 4.726 12C4.726 16.2935 8.20654 19.774 12.5 19.774Z" fill="#C4C4C4"/>
|
|
4
|
-
</mask>
|
|
5
|
-
<g mask="url(#mask0)">
|
|
6
|
-
<rect x="-1.00781" y="25.5085" width="27.0171" height="27.0171" transform="rotate(-90 -1.00781 25.5085)" fill="url(#paint0_angular)"/>
|
|
7
|
-
<circle cx="22.3913" cy="11.8658" r="2.11" transform="rotate(-90 22.3913 11.8658)" fill="#E9578B"/>
|
|
8
|
-
</g>
|
|
9
|
-
<defs>
|
|
10
|
-
<radialGradient id="paint0_angular" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(12.5008 39.0171) rotate(90.0001) scale(12.4992)">
|
|
11
|
-
<stop stop-color="#E85388"/>
|
|
12
|
-
<stop offset="1" stop-color="#FFEAF1"/>
|
|
13
|
-
</radialGradient>
|
|
14
|
-
</defs>
|
|
15
|
-
</svg>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M36.6673 19.584C36.6673 28.559 29.209 35.834 20.0007 35.834C18.6248 35.834 17.2923 35.6723 16.014 35.364C15.6265 35.2707 15.2215 35.3065 14.8648 35.4848L11.2173 37.309C10.2757 37.7798 9.16732 37.0948 9.16732 36.0415V32.6873C9.16732 32.2082 8.95315 31.7615 8.59982 31.4382C5.35482 28.4715 3.33398 24.259 3.33398 19.584C3.33398 10.609 10.7923 3.33398 20.0007 3.33398C29.209 3.33398 36.6673 10.609 36.6673 19.584Z" fill="url(#paint0_radial)"/>
|
|
3
|
-
<path opacity="0.05" d="M29.16 14.4102C28.8033 14.4102 28.4575 14.5285 28.16 14.7527L23.415 18.2652C23.3041 18.3485 23.1816 18.3902 23.0525 18.3902C22.9275 18.3902 22.81 18.351 22.7108 18.2768L19.4008 15.7852C18.7275 15.2843 17.9341 15.0202 17.1033 15.0202C15.79 15.0202 14.5825 15.6793 13.8733 16.7835L12.8641 18.3593L9.43081 23.9385C9.10414 24.4502 9.07914 25.0818 9.37164 25.6168C9.66998 26.1618 10.2333 26.5002 10.8416 26.5002C11.1983 26.5002 11.5441 26.3818 11.8416 26.1577L16.5866 22.6452C16.6975 22.5618 16.82 22.5202 16.9491 22.5202C17.0741 22.5202 17.1916 22.5593 17.2908 22.6335L20.6008 25.1252C21.275 25.6268 22.0675 25.8902 22.8983 25.8902C24.2116 25.8902 25.4191 25.231 26.1283 24.1268L27.1375 22.551L30.5708 16.9718C30.8975 16.4602 30.9225 15.8285 30.63 15.2935C30.3316 14.7485 29.7683 14.4102 29.16 14.4102Z" fill="black"/>
|
|
4
|
-
<path opacity="0.07" d="M29.161 14.8262C28.8952 14.8262 28.636 14.9153 28.4118 15.0845L23.6643 18.5995C23.4843 18.7353 23.2743 18.8062 23.0543 18.8062C22.8385 18.8062 22.6343 18.7378 22.4627 18.6095L19.1518 16.117C18.5527 15.6712 17.8452 15.4362 17.1043 15.4362C15.9335 15.4362 14.8577 16.0237 14.2252 17.0087L13.2168 18.5845L9.78766 24.1578C9.54016 24.5453 9.52099 25.0187 9.73933 25.417C9.96099 25.822 10.3952 26.0837 10.8435 26.0837C11.1093 26.0837 11.3685 25.9945 11.5927 25.8253L16.3402 22.3103C16.5202 22.1745 16.7302 22.1037 16.9502 22.1037C17.166 22.1037 17.3702 22.172 17.5418 22.3003L20.8527 24.7928C21.4518 25.2387 22.1593 25.4737 22.9002 25.4737C24.071 25.4737 25.1468 24.8862 25.7793 23.9012L26.7877 22.3253L30.2168 16.752C30.4643 16.3645 30.4835 15.8912 30.2652 15.4928C30.0435 15.0878 29.6102 14.8262 29.161 14.8262Z" fill="black"/>
|
|
5
|
-
<path d="M28.6625 15.4168L23.9125 18.9334C23.4042 19.3168 22.7125 19.3168 22.2125 18.9418L18.9008 16.4493C17.5008 15.4076 15.5175 15.7659 14.5758 17.2326L13.5675 18.8076L10.1425 24.3743C9.64248 25.1576 10.6008 26.0493 11.3425 25.4909L16.0925 21.9743C16.6008 21.5909 17.2925 21.5909 17.7925 21.9659L21.1041 24.4584C22.5041 25.5001 24.4875 25.1418 25.4291 23.6751L26.4375 22.1001L29.8625 16.5334C30.3625 15.7501 29.4042 14.8584 28.6625 15.4168Z" fill="white"/>
|
|
6
|
-
<defs>
|
|
7
|
-
<radialGradient id="paint0_radial" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(9.23982 35.8157) scale(39.6767)">
|
|
8
|
-
<stop stop-color="#1292FF"/>
|
|
9
|
-
<stop offset="0.079" stop-color="#2982FF"/>
|
|
10
|
-
<stop offset="0.23" stop-color="#4E69FF"/>
|
|
11
|
-
<stop offset="0.351" stop-color="#6559FF"/>
|
|
12
|
-
<stop offset="0.428" stop-color="#6D53FF"/>
|
|
13
|
-
<stop offset="0.754" stop-color="#DF47AA"/>
|
|
14
|
-
<stop offset="0.946" stop-color="#FF6257"/>
|
|
15
|
-
</radialGradient>
|
|
16
|
-
</defs>
|
|
17
|
-
</svg>
|