@hhgtech/hhg-components 1.26.1 → 1.26.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/babyGrowth.js +2 -2
- package/build/cache.js +1 -1
- package/build/care/components/organisms/bookingSearchBar/index.styled.d.ts +6 -39
- package/build/care/components/organisms/bookingSearchBar/locationResults/index.styled.d.ts +8 -22
- package/build/care/components/organisms/bookingSearchBar/mobileFakeInput/index.d.ts +1 -4
- package/build/care/components/organisms/bookingSearchBar/mobileTopbar/index.styled.d.ts +5 -29
- package/build/care/components/organisms/bookingSearchBar/resultSection/index.styled.d.ts +8 -38
- package/build/care/components/organisms/bookingSearchBar/resultSectionItem/index.styled.d.ts +7 -34
- package/build/care/components/organisms/bookingSearchBar/searchInputs/index.styled.d.ts +6 -28
- package/build/care.js +1 -1
- package/build/components/atoms/alert/index.d.ts +1 -1
- package/build/components/atoms/avatar/index.d.ts +1 -1
- package/build/components/atoms/avatar/index.styled.d.ts +1 -5
- package/build/components/atoms/backdrop/index.styled.d.ts +1 -5
- package/build/components/atoms/badge/index.styled.d.ts +1 -6
- package/build/components/atoms/borderHeading/index.styled.d.ts +1 -6
- package/build/components/atoms/btnChoice/index.styled.d.ts +1 -5
- package/build/components/atoms/checkbox/index.styled.d.ts +1 -6
- package/build/components/atoms/displayWrapper/index.styled.d.ts +2 -6
- package/build/components/atoms/divider/index.d.ts +1 -1
- package/build/components/atoms/divider/index.styled.d.ts +2 -6
- package/build/components/atoms/drawer/helpers.d.ts +1 -1
- package/build/components/atoms/drawer/index.styled.d.ts +5 -15
- package/build/components/atoms/dropdownMB/index.styled.d.ts +2 -4
- package/build/components/atoms/fileDropdown/index.d.ts +1 -1
- package/build/components/atoms/fileDropdown/index.styled.d.ts +5 -22
- package/build/components/atoms/grid/index.styled.d.ts +1 -8
- package/build/components/atoms/heading/index.d.ts +1 -1
- package/build/components/atoms/icons/Plus.d.ts +1 -4
- package/build/components/atoms/input/index.styled.d.ts +6 -22
- package/build/components/atoms/inputMB/index.styled.d.ts +2 -27
- package/build/components/atoms/logo/index.styled.d.ts +2 -9
- package/build/components/atoms/marryBabyText/index.d.ts +1 -1
- package/build/components/atoms/marryBabyText/index.styled.d.ts +5 -9
- package/build/components/atoms/menu/index.styled.d.ts +3 -11
- package/build/components/atoms/newBabyProfileRadio/index.styled.d.ts +1 -6
- package/build/components/atoms/pagination/index.d.ts +1 -1
- package/build/components/atoms/pagination/index.styled.d.ts +3 -14
- package/build/components/atoms/pill/index.styled.d.ts +2 -10
- package/build/components/atoms/progress/index.styled.d.ts +1 -6
- package/build/components/atoms/pureInput/index.styled.d.ts +5 -22
- package/build/components/atoms/radio/index.styled.d.ts +1 -6
- package/build/components/atoms/radioImageGroup/index.styled.d.ts +2 -10
- package/build/components/atoms/rateStars/index.styled.d.ts +1 -5
- package/build/components/atoms/shadow/index.styled.d.ts +1 -5
- package/build/components/atoms/tag/index.styled.d.ts +1 -6
- package/build/components/atoms/toggle/index.styled.d.ts +4 -18
- package/build/components/atoms/underlinedLink/index.styled.d.ts +1 -6
- package/build/components/atoms/uploader/index.styled.d.ts +4 -18
- package/build/components/babyGrowth/babyGrowthChart/index.styled.d.ts +1 -5
- package/build/components/babyGrowth/babyGrowthChooseProfileDrawer/index.styled.d.ts +2 -8
- package/build/components/babyGrowth/babyGrowthForm/index.styled.d.ts +7 -41
- package/build/components/babyGrowth/babyGrowthGender/index.styled.d.ts +2 -7
- package/build/components/babyGrowth/babyGrowthLegend/index.styled.d.ts +2 -9
- package/build/components/babyGrowth/babyGrowthProfileRadio/index.styled.d.ts +1 -6
- package/build/components/babyGrowth/babyGrowthRecord/index.styled.d.ts +1 -5
- package/build/components/babyGrowth/babyGrowthSwitch/index.styled.d.ts +1 -6
- package/build/components/babyGrowth/babyGrowthTooltip/index.styled.d.ts +1 -5
- package/build/components/babyGrowth/childCard/index.styled.d.ts +3 -15
- package/build/components/mantine/accordion/index.styled.d.ts +3 -5
- package/build/components/mantine/aspectRatio/index.styled.d.ts +1 -5
- package/build/components/mantine/breadcrumbs/index.styled.d.ts +1 -5
- package/build/components/mantine/button/index.styled.d.ts +1 -5
- package/build/components/mantine/datepicker/index.styled.d.ts +2 -6
- package/build/components/mantine/modal/index.styled.d.ts +2 -3
- package/build/components/mantine/slider/index.styled.d.ts +2 -14
- package/build/components/mantine/text/index.styled.d.ts +8 -3
- package/build/components/mantine/textArea/index.styled.d.ts +1 -3
- package/build/components/molecules/articleCard/index.d.ts +1 -1
- package/build/components/molecules/bmiForm/index.styled.d.ts +6 -48
- package/build/components/molecules/bmrForm/index.styled.d.ts +5 -43
- package/build/components/molecules/carousel/index.styled.d.ts +3 -14
- package/build/components/molecules/categoryCard/index.d.ts +1 -1
- package/build/components/molecules/categoryCard/index.styled.d.ts +1 -6
- package/build/components/molecules/checkboxGroup/index.styled.d.ts +1 -5
- package/build/components/molecules/cookieAcceptConfirm/index.styled.d.ts +8 -27
- package/build/components/molecules/datePicker/index.styled.d.ts +2 -10
- package/build/components/molecules/dateRangePicker/calendar/index.styled.d.ts +13 -62
- package/build/components/molecules/dateRangePicker/index.styled.d.ts +2 -10
- package/build/components/molecules/dropdown/index.d.ts +1 -1
- package/build/components/molecules/dropdown/index.styled.d.ts +12 -20
- package/build/components/molecules/dropdownSearch/index.styled.d.ts +7 -28
- package/build/components/molecules/dueDateCalculator/index.styled.d.ts +6 -34
- package/build/components/molecules/embeddedHeathToolCards/baby-growth/index.styled.d.ts +4 -12
- package/build/components/molecules/embeddedHeathToolCards/baby-poop/index.styled.d.ts +15 -47
- package/build/components/molecules/embeddedHeathToolCards/index.styled.d.ts +4 -16
- package/build/components/molecules/floatButtonGroup/index.d.ts +1 -1
- package/build/components/molecules/floatButtonGroup/index.styled.d.ts +8 -34
- package/build/components/molecules/iconText/index.styled.d.ts +1 -6
- package/build/components/molecules/languageSwitcher/index.styled.d.ts +1 -6
- package/build/components/molecules/languageSwitcher/tooltipSelection/index.d.ts +1 -1
- package/build/components/molecules/languageSwitcher/tooltipSelection/index.styled.d.ts +5 -22
- package/build/components/molecules/mobileBottomNavigation/index.styled.d.ts +7 -23
- package/build/components/molecules/modal/index.styled.d.ts +4 -18
- package/build/components/molecules/pillCarousel/index.styled.d.ts +3 -24
- package/build/components/molecules/popup/index.styled.d.ts +2 -10
- package/build/components/molecules/progressBar/index.styled.d.ts +12 -50
- package/build/components/molecules/radioGroup/index.styled.d.ts +1 -5
- package/build/components/molecules/radioImageGroupForTool/index.styled.d.ts +2 -10
- package/build/components/molecules/scrollList/index.styled.d.ts +1 -6
- package/build/components/molecules/shareContainer/index.styled.d.ts +1 -6
- package/build/components/molecules/shareDrawer/index.styled.d.ts +1 -6
- package/build/components/molecules/starsRatingBox/index.styled.d.ts +4 -17
- package/build/components/molecules/statisticCard/index.styled.d.ts +4 -18
- package/build/components/molecules/surveyQuestionCard/index.styled.d.ts +4 -22
- package/build/components/molecules/tabs/index.d.ts +1 -1
- package/build/components/molecules/tabs/index.styled.d.ts +4 -18
- package/build/components/molecules/thrForm/index.styled.d.ts +6 -47
- package/build/components/molecules/toolBannerCard/index.styled.d.ts +17 -64
- package/build/components/molecules/weightGainForm/index.styled.d.ts +20 -82
- package/build/components/onboarding/dynamicForm/index.styled.d.ts +1 -5
- package/build/components/onboarding/onboardingForm/index.styled.d.ts +1 -7
- package/build/components/onboarding/onboardingModal/index.styled.d.ts +7 -29
- package/build/components/onboarding/otpForm/index.styled.d.ts +1 -7
- package/build/components/onboarding/personalInfoForm/index.styled.d.ts +1 -5
- package/build/components/organisms/heroBannerHealthTool/index.styled.d.ts +10 -41
- package/build/components/organisms/navigationLogoutPopup/index.styled.d.ts +2 -10
- package/build/components/organisms/navigationProfileButton/index.styled.d.ts +7 -30
- package/build/components/organisms/navigationV2/components/molecules/Categories/index.styled.d.ts +7 -30
- package/build/components/organisms/navigationV2/components/molecules/Spotlights/index.styled.d.ts +3 -14
- package/build/components/organisms/navigationV2/components/molecules/menuCareList/Item/index.styled.d.ts +8 -34
- package/build/components/organisms/navigationV2/components/molecules/menuCareList/index.styled.d.ts +2 -10
- package/build/components/organisms/navigationV2/components/molecules/menuCategoriesList/Item/index.styled.d.ts +3 -14
- package/build/components/organisms/navigationV2/components/molecules/menuCategoriesList/index.styled.d.ts +3 -13
- package/build/components/organisms/navigationV2/components/molecules/menuCommunitiesList/Item/index.styled.d.ts +11 -46
- package/build/components/organisms/navigationV2/components/molecules/menuCommunitiesList/index.styled.d.ts +3 -14
- package/build/components/organisms/navigationV2/components/molecules/menuHealthToolsList/Item/index.styled.d.ts +6 -26
- package/build/components/organisms/navigationV2/components/molecules/menuHealthToolsList/ItemMarryBaby/index.styled.d.ts +8 -34
- package/build/components/organisms/navigationV2/components/molecules/menuHealthToolsList/index.styled.d.ts +2 -9
- package/build/components/organisms/navigationV2/components/molecules/menuServiceList/index.styled.d.ts +23 -82
- package/build/components/organisms/navigationV2/components/molecules/navigationBar/index.styled.d.ts +8 -34
- package/build/components/organisms/navigationV2/components/molecules/spotlightNoData/index.styled.d.ts +5 -22
- package/build/components/organisms/navigationV2/index.styled.d.ts +3 -13
- package/build/components/pregnancyWeightGain/pregnancyWeightGainChart/components/index.styled.d.ts +3 -13
- package/build/components/pregnancyWeightGain/pregnancyWeightGainChart/index.styled.d.ts +1 -5
- package/build/components/ui/onboarding/index.styled.d.ts +3 -11
- package/build/components/vaccination/vaccineCard/index.styled.d.ts +4 -17
- package/build/components/vaccination/vaccineImmunization/index.styled.d.ts +2 -9
- package/build/components/vaccination/vaccineRecordsByAgeGroup/index.styled.d.ts +5 -21
- package/build/components/vaccination/vaccineTimelineBanner/index.styled.d.ts +1 -5
- package/build/components.js +1 -1
- package/build/constants.js +1 -1
- package/build/{core-55389834.js → core-86d1d4b7.js} +1 -1
- package/build/{dataTransform-70b7b942.js → dataTransform-0920fd46.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/babyGrowth.js +2 -2
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-67f774bb.js → core-0382a275.js} +1 -1
- package/build/esm/{dataTransform-afe529c5.js → dataTransform-626806af.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/{getDynamicHealthTool-3255be64.js → getDynamicHealthTool-287582f9.js} +1 -1
- package/build/esm/{getSocialList-1c143418.js → getSocialList-bb91bdcd.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/{index-566d4e11.js → index-086da1d7.js} +1 -1
- package/build/esm/index-1daa59fe.js +1 -0
- package/build/esm/{index-d29a2bc2.js → index-1e7cb8f5.js} +1 -1
- package/build/esm/{index-9b489657.js → index-2255ace2.js} +1 -1
- package/build/esm/{index-7e1f6511.js → index-37f23c7c.js} +1 -1
- package/build/esm/{index-14899cba.js → index-3ce79169.js} +25 -25
- package/build/esm/{index-bc8279aa.js → index-421eca30.js} +1 -1
- package/build/esm/index-4618c8b1.js +1 -0
- package/build/esm/{index-9a5ceed1.js → index-475d9e47.js} +1 -1
- package/build/esm/{index-51c34386.js → index-4f1c858f.js} +1 -1
- package/build/esm/{index-89514194.js → index-523fd7b5.js} +1 -1
- package/build/esm/index-5b1f48f6.js +1 -0
- package/build/esm/index-75654787.js +1 -0
- package/build/esm/{index-a7de3367.js → index-850a6e81.js} +1 -1
- package/build/esm/{index-23461c13.js → index-9828acfd.js} +1 -1
- package/build/esm/index-9aa9ea8a.js +1 -0
- package/build/esm/index-a60e8753.js +1 -0
- package/build/esm/{index-88b7628a.js → index-af9b0189.js} +1 -1
- package/build/esm/{index-5311efac.js → index-ba091eef.js} +1 -1
- package/build/esm/{index-cf3b2063.js → index-d39586cf.js} +4 -4
- package/build/esm/{index-fa88e322.js → index-da768b6d.js} +10 -10
- package/build/esm/{index-7603f5c8.js → index-f50c2ed5.js} +1 -1
- package/build/esm/{index-a78d9888.js → index-fb690d48.js} +6 -6
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-f22d6816.js → index.styled-0d946728.js} +3 -3
- package/build/esm/{index.styled-14d557d6.js → index.styled-2eba1dae.js} +201 -207
- package/build/esm/{index.styled-e63583aa.js → index.styled-557adcc4.js} +62 -77
- package/build/esm/{index.styled-c52c24ef.js → index.styled-65576081.js} +162 -168
- package/build/esm/index.styled-c95d156f.js +50 -0
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboarding.js +1 -1
- package/build/esm/pwg.js +3 -3
- package/build/esm/{routing-512ce598.js → routing-f682d1f9.js} +1 -1
- package/build/esm/{screenSizeContext-ca566cf0.js → screenSizeContext-49f083d0.js} +6 -6
- package/build/esm/together.js +1 -1
- package/build/esm/{translationsProvider-9da1f72d.js → translationsProvider-fd495f30.js} +1 -1
- package/build/esm/{types-fc4a2521.js → types-732ba19a.js} +70 -70
- package/build/esm/{types-cc5fdb3d.js → types-cf2025f5.js} +85 -84
- package/build/esm/types.js +1 -1
- package/build/esm/{useHealthToolCache-7c3e370a.js → useHealthToolCache-363b2f57.js} +1 -1
- package/build/esm/{useRafState-aaa521f7.js → useRafState-03366366.js} +1 -1
- package/build/esm/{useScreenSize-5a05b01d.js → useScreenSize-0364123f.js} +1 -1
- package/build/esm/useTranslations-adbba887.js +1 -0
- package/build/esm/{utils-66624bdf.js → utils-6749cb05.js} +13 -13
- package/build/esm/vaccination.js +41 -41
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/{getDynamicHealthTool-4a8d8ee8.js → getDynamicHealthTool-ec53eb68.js} +1 -1
- package/build/{getSocialList-f416948f.js → getSocialList-401ea10b.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/{index-7870dbf2.js → index-015a02ec.js} +4 -4
- package/build/{index-186ea291.js → index-02703eb3.js} +1 -1
- package/build/{index-beb9b379.js → index-04ef1e33.js} +1 -1
- package/build/index-0a062890.js +1 -0
- package/build/{index-c4aed41e.js → index-1027c9db.js} +1 -1
- package/build/{index-a5c04582.js → index-3498a47f.js} +1 -1
- package/build/index-45f7b954.js +1 -0
- package/build/{index-03c84548.js → index-49b825aa.js} +1 -1
- package/build/index-6111f907.js +1 -0
- package/build/{index-21a94271.js → index-6a3b4fdc.js} +1 -1
- package/build/{index-d1cbce13.js → index-88b6d502.js} +1 -1
- package/build/{index-90f3fe11.js → index-8c5fc7a1.js} +23 -23
- package/build/index-8cd6ee80.js +115 -0
- package/build/{index-aeb07a92.js → index-93da2295.js} +1 -1
- package/build/{index-19bc87f2.js → index-a1c04c08.js} +1 -1
- package/build/{index-2b99cb56.js → index-a68b357b.js} +1 -1
- package/build/{index-d8e712d6.js → index-aaa97035.js} +1 -1
- package/build/{index-c78fad9d.js → index-b57648f2.js} +1 -1
- package/build/{index-6df60e3a.js → index-d8585bf7.js} +1 -1
- package/build/{index-c365b655.js → index-db9780bb.js} +1 -1
- package/build/{index-cfb03666.js → index-e39e1328.js} +1 -1
- package/build/{index-47e524cf.js → index-f0b5a2e9.js} +1 -1
- package/build/{index-6d03f207.js → index-fe395b6a.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-b683af18.js → index.styled-0654a893.js} +1 -1
- package/build/index.styled-0890f205.js +50 -0
- package/build/{index.styled-2b48824e.js → index.styled-10f91006.js} +95 -101
- package/build/{index.styled-013215b0.js → index.styled-24eda00b.js} +216 -222
- package/build/index.styled-81b3744a.js +1249 -0
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc/animation.d.ts +9 -9
- package/build/misc/theme.d.ts +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboarding.js +1 -1
- package/build/pwg.js +2 -2
- package/build/{routing-01f2972b.js → routing-0366e86d.js} +1 -1
- package/build/{screenSizeContext-7024419e.js → screenSizeContext-3871959e.js} +10 -10
- package/build/together/components/atoms/cardLink/index.styled.d.ts +2 -6
- package/build/together/components/atoms/labelSortPin/index.styled.d.ts +1 -6
- package/build/together/components/atoms/loading/index.styled.d.ts +2 -10
- package/build/together/components/atoms/notificationBar/index.styled.d.ts +5 -18
- package/build/together/components/atoms/sensitiveMask/index.styled.d.ts +3 -13
- package/build/together/components/atoms/tagTopic/index.styled.d.ts +1 -5
- package/build/together/components/atoms/userAvatar/index.styled.d.ts +2 -6
- package/build/together/components/molecules/createNewPostContent/index.styled.d.ts +3 -14
- package/build/together/components/molecules/createPostDescription/index.styled.d.ts +2 -10
- package/build/together/components/molecules/createPostTitle/index.styled.d.ts +1 -6
- package/build/together/components/molecules/inputCommentBar/index.styled.d.ts +1 -6
- package/build/together/components/molecules/popupDanger/index.styled.d.ts +1 -6
- package/build/together/components/molecules/popupDoctor/index.styled.d.ts +8 -34
- package/build/together/components/molecules/popupExpert/index.styled.d.ts +7 -30
- package/build/together/components/molecules/popupFrame/index.styled.d.ts +3 -10
- package/build/together/components/molecules/popupFrame/popupShare.d.ts +1 -5
- package/build/together/components/molecules/popupHospital/index.styled.d.ts +7 -30
- package/build/together/components/molecules/postContent/index.styled.d.ts +2 -6
- package/build/together/components/molecules/postImagePreview/index.styled.d.ts +3 -11
- package/build/together/components/molecules/postImagePreview/postSingleImageViewPopup/index.styled.d.ts +5 -21
- package/build/together/components/molecules/shareBox/index.styled.d.ts +2 -9
- package/build/together/components/molecules/socialLinkPreview/index.styled.d.ts +2 -6
- package/build/together/components/molecules/submitReportForm/index.d.ts +1 -1
- package/build/together/components/molecules/submitReportForm/index.styled.d.ts +1 -5
- package/build/together/components/molecules/topicSelectList/index.styled.d.ts +1 -6
- package/build/together/components/organisms/cardPost/index.styled.d.ts +1 -6
- package/build/together/components/organisms/cardReply/index.styled.d.ts +2 -13
- package/build/together/components/organisms/popoverMenu/index.styled.d.ts +2 -10
- package/build/together/components/organisms/sourceList/index.styled.d.ts +5 -21
- package/build/together/components/organisms/sourceList/recommentCategories/index.styled.d.ts +6 -26
- package/build/together/components/organisms/sourceList/sourceItem/index.styled.d.ts +2 -9
- package/build/together.js +1 -1
- package/build/{translationsProvider-6bd6fd86.js → translationsProvider-c7887f2f.js} +1 -1
- package/build/{types-f9b113e4.js → types-86f5ccff.js} +85 -84
- package/build/{types-ccf3d3fe.js → types-d8bce503.js} +70 -70
- package/build/types.js +1 -1
- package/build/useHealthToolCache-d432bccf.js +1 -0
- package/build/{useRafState-50cad379.js → useRafState-040f5417.js} +1 -1
- package/build/{useScreenSize-64a6a465.js → useScreenSize-22d0b73e.js} +1 -1
- package/build/useTranslations-2522e02f.js +1 -0
- package/build/{utils-5293923c.js → utils-4f699937.js} +14 -14
- package/build/vaccination.js +34 -34
- package/package.json +6 -4
- package/build/esm/index-0aba009c.js +0 -1
- package/build/esm/index-3c7f6ffc.js +0 -1
- package/build/esm/index-65ff2e46.js +0 -1
- package/build/esm/index-c3e7ac4e.js +0 -1
- package/build/esm/index-edf4724e.js +0 -1
- package/build/esm/index-ee1505c6.js +0 -1
- package/build/esm/index.styled-caa3a9c9.js +0 -50
- package/build/esm/useTranslations-8dc2d7f1.js +0 -1
- package/build/index-0f3b0cb0.js +0 -1
- package/build/index-87604a48.js +0 -115
- package/build/index-c7c3220f.js +0 -1
- package/build/index-d6eecf53.js +0 -1
- package/build/index.styled-4821c538.js +0 -1264
- package/build/index.styled-83405234.js +0 -50
- package/build/useHealthToolCache-6fcbf0d4.js +0 -1
- package/build/useTranslations-dcd5faaf.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-746896e1.js → BMI_BOYS.percentile.monthly-7cb9f753.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-549c1d33.js → BMI_BOYS.percentile.weekly-41c8c9ae.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-d50e8a21.js → BMI_BOYS.percentile.yearly-1ecbbce1.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-754b03bc.js → BMI_BOYS.zscore.monthly-56a271bb.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-19b01c4b.js → BMI_BOYS.zscore.weekly-8e63d86f.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-cad5ae00.js → BMI_BOYS.zscore.yearly-5b5f737a.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-96a83d9b.js → BMI_GIRLS.percentile.monthly-3bfc69d9.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-32642a7e.js → BMI_GIRLS.percentile.weekly-eb6a0604.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-5ec13e0d.js → BMI_GIRLS.percentile.yearly-c75708c4.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-2f2da50f.js → BMI_GIRLS.zscore.monthly-1afc2414.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-bd13140b.js → BMI_GIRLS.zscore.weekly-626ba416.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-8d180e01.js → BMI_GIRLS.zscore.yearly-d6ad235e.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-d4e262ae.js → HEAD CIRCUM_BOYS.percentile.monthly-92cb6872.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-c3472d46.js → HEAD CIRCUM_BOYS.percentile.weekly-bcf0cbfe.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-a5b8b3d4.js → HEAD CIRCUM_BOYS.percentile.yearly-9435a068.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-a1294242.js → HEAD CIRCUM_BOYS.zscore.monthly-8ed3082a.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-0dfa5861.js → HEAD CIRCUM_BOYS.zscore.weekly-8110c113.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-159842e3.js → HEAD CIRCUM_BOYS.zscore.yearly-46de3f08.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-60fe6d37.js → HEAD CIRCUM_GIRLS.percentile.monthly-64d6851c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-d7a21c52.js → HEAD CIRCUM_GIRLS.percentile.weekly-79716470.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-0cb40c20.js → HEAD CIRCUM_GIRLS.percentile.yearly-3660ac3c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-bd617e3a.js → HEAD CIRCUM_GIRLS.zscore.monthly-5d1f0736.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-0c1bacc1.js → HEAD CIRCUM_GIRLS.zscore.weekly-463164d8.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-53157746.js → HEAD CIRCUM_GIRLS.zscore.yearly-7cc8aa84.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-79277c17.js → HEIGHT_BOYS.percentile.monthly-7cd1be5e.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-919f0291.js → HEIGHT_BOYS.percentile.weekly-62b1b529.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-636e7eba.js → HEIGHT_BOYS.percentile.yearly-260e90cc.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-696ef787.js → HEIGHT_BOYS.zscore.monthly-27b54ac8.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-ff1bc0e5.js → HEIGHT_BOYS.zscore.weekly-f6b53273.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-e66a6289.js → HEIGHT_BOYS.zscore.yearly-f03057a3.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-89ad6e1d.js → HEIGHT_GIRLS.percentile.monthly-0a569d7c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-bd91475c.js → HEIGHT_GIRLS.percentile.weekly-54d586e0.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-ceeb123a.js → HEIGHT_GIRLS.percentile.yearly-bb0205c1.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-541ab88d.js → HEIGHT_GIRLS.zscore.monthly-65504081.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-2ce2be45.js → HEIGHT_GIRLS.zscore.weekly-bf6aeb50.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-73cb3fab.js → HEIGHT_GIRLS.zscore.yearly-204dd7a5.js} +0 -0
- /package/build/{Onboarding-5cc2a17c.js → Onboarding-58ad00eb.js} +0 -0
- /package/build/{Visible-b193472c.js → Visible-53af2df3.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-d4743ffb.js → WEIGHT_BOYS.percentile.monthly-a589fba1.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-94356178.js → WEIGHT_BOYS.percentile.weekly-e285a14b.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-929dea5b.js → WEIGHT_BOYS.percentile.yearly-28abf604.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-9a933ddc.js → WEIGHT_BOYS.zscore.monthly-584bc78f.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-2952a5e8.js → WEIGHT_BOYS.zscore.weekly-53cf64c9.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-24e14384.js → WEIGHT_BOYS.zscore.yearly-756cc8d6.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-780275fd.js → WEIGHT_GIRLS.percentile.monthly-48bbc291.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-cfce9dd3.js → WEIGHT_GIRLS.percentile.weekly-3c198de1.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-0246a7d0.js → WEIGHT_GIRLS.percentile.yearly-6b611efa.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-140a87f3.js → WEIGHT_GIRLS.zscore.monthly-21c2fe41.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-7f012807.js → WEIGHT_GIRLS.zscore.weekly-699784c8.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-862904f4.js → WEIGHT_GIRLS.zscore.yearly-2a8368ee.js} +0 -0
- /package/build/{constants-df00bbe8.js → constants-5fae608d.js} +0 -0
- /package/build/{cookieHelper-ec53b348.js → cookieHelper-6bf570a6.js} +0 -0
- /package/build/{dataTransform-399500cc.js → dataTransform-355fcd93.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-f58464e0.js → BMI_BOYS.percentile.monthly-232e5b13.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-564c74d5.js → BMI_BOYS.percentile.weekly-ea880ece.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-e4724afd.js → BMI_BOYS.percentile.yearly-3c94dee9.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-3b552a68.js → BMI_BOYS.zscore.monthly-c58ec198.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-50b183cf.js → BMI_BOYS.zscore.weekly-9374cdd6.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-bda89b3a.js → BMI_BOYS.zscore.yearly-c9e37597.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-05a7267c.js → BMI_GIRLS.percentile.monthly-3186b214.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-90ac2702.js → BMI_GIRLS.percentile.weekly-838da920.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-a5b378d8.js → BMI_GIRLS.percentile.yearly-e74ec608.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-a4aa4e80.js → BMI_GIRLS.zscore.monthly-99a32139.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-facdb9e2.js → BMI_GIRLS.zscore.weekly-c85a6cb8.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-fe8fa330.js → BMI_GIRLS.zscore.yearly-8d66e4b7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-ba0f562a.js → HEAD CIRCUM_BOYS.percentile.monthly-6cf7f3fc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-27007b44.js → HEAD CIRCUM_BOYS.percentile.weekly-72d3279c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-9abba796.js → HEAD CIRCUM_BOYS.percentile.yearly-c94b8b15.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-0ef54d5f.js → HEAD CIRCUM_BOYS.zscore.monthly-4ae9d853.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-c5ef0930.js → HEAD CIRCUM_BOYS.zscore.weekly-5c451325.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-7f106b4f.js → HEAD CIRCUM_BOYS.zscore.yearly-493c5189.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-19305934.js → HEAD CIRCUM_GIRLS.percentile.monthly-0d81fc58.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-e7f0b580.js → HEAD CIRCUM_GIRLS.percentile.weekly-29b91eaa.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-fe0cf7c6.js → HEAD CIRCUM_GIRLS.percentile.yearly-a3c781f1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-d5a1b65a.js → HEAD CIRCUM_GIRLS.zscore.monthly-d6647713.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-791e9a80.js → HEAD CIRCUM_GIRLS.zscore.weekly-406ec38f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-c8a3a756.js → HEAD CIRCUM_GIRLS.zscore.yearly-0c78aef1.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-4c9f9b31.js → HEIGHT_BOYS.percentile.monthly-84a80839.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-cc35c6c6.js → HEIGHT_BOYS.percentile.weekly-cf815f22.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-4b490d6f.js → HEIGHT_BOYS.percentile.yearly-a02e2825.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-51d299ac.js → HEIGHT_BOYS.zscore.monthly-9f89b705.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-dec5727a.js → HEIGHT_BOYS.zscore.weekly-0e4ffc16.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-2000cee9.js → HEIGHT_BOYS.zscore.yearly-d0edf0bf.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-e8cf171b.js → HEIGHT_GIRLS.percentile.monthly-8e0f943b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-5521e5ce.js → HEIGHT_GIRLS.percentile.weekly-48e6e355.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-c918be57.js → HEIGHT_GIRLS.percentile.yearly-25ec1154.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-dae60fc0.js → HEIGHT_GIRLS.zscore.monthly-adf01e2c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-354de0e9.js → HEIGHT_GIRLS.zscore.weekly-3e010f50.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-50917d4e.js → HEIGHT_GIRLS.zscore.yearly-5cab6436.js} +0 -0
- /package/build/esm/{Onboarding-5d4e7e9a.js → Onboarding-6b46846b.js} +0 -0
- /package/build/esm/{Visible-e6dd1326.js → Visible-496e6c00.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-aa1db45a.js → WEIGHT_BOYS.percentile.monthly-4b0a0c5d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-30327865.js → WEIGHT_BOYS.percentile.weekly-b73fa457.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-d672a7c3.js → WEIGHT_BOYS.percentile.yearly-af56dea8.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-ddee6555.js → WEIGHT_BOYS.zscore.monthly-0266b046.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-d21e1269.js → WEIGHT_BOYS.zscore.weekly-d4945609.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-60b3230b.js → WEIGHT_BOYS.zscore.yearly-6257f07f.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-cb60b265.js → WEIGHT_GIRLS.percentile.monthly-261f3ef4.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-fedcd4ee.js → WEIGHT_GIRLS.percentile.weekly-b5a19344.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-8f6f7c36.js → WEIGHT_GIRLS.percentile.yearly-1c159187.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-77c625da.js → WEIGHT_GIRLS.zscore.monthly-164f4a7d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-fa03edd8.js → WEIGHT_GIRLS.zscore.weekly-7c3d5d08.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-cf2103f8.js → WEIGHT_GIRLS.zscore.yearly-3c193331.js} +0 -0
- /package/build/esm/{constants-4cb2f84a.js → constants-83cc4bf6.js} +0 -0
- /package/build/esm/{cookieHelper-4e6ba518.js → cookieHelper-aa50c7f9.js} +0 -0
- /package/build/esm/{dataTransform-82943ba5.js → dataTransform-42f94530.js} +0 -0
- /package/build/esm/{index-35d849db.js → index-5dded4fd.js} +0 -0
- /package/build/esm/{index-336463f4.js → index-e903b126.js} +0 -0
- /package/build/esm/{isProduction-c71511f1.js → isProduction-1d3cb81e.js} +0 -0
- /package/build/esm/{localizeNumberFormat-0b291ceb.js → localizeNumberFormat-ca1e5259.js} +0 -0
- /package/build/esm/{normalizeLink-2cfad1a9.js → normalizeLink-33964f87.js} +0 -0
- /package/build/esm/{theme-b3528b2a.js → theme-7a380626.js} +0 -0
- /package/build/esm/{translationsContext-b11db32c.js → translationsContext-2ec412e6.js} +0 -0
- /package/build/esm/{tslib.es6-23b16f13.js → tslib.es6-83ef7bb8.js} +0 -0
- /package/build/esm/{types-96c6614a.js → types-889ad8c0.js} +0 -0
- /package/build/esm/{useIsInit-9d185760.js → useIsInit-ee8afdfb.js} +0 -0
- /package/build/esm/{useOutsideClick-29382783.js → useOutsideClick-8c694b17.js} +0 -0
- /package/build/esm/{useScrollbarSize-0042aed8.js → useScrollbarSize-315e8566.js} +0 -0
- /package/build/esm/{useUniqueId-694cc229.js → useUniqueId-290147ee.js} +0 -0
- /package/build/esm/{utils-c64cd3c4.js → utils-eb66ac60.js} +0 -0
- /package/build/{index-7b41fe1c.js → index-26e03973.js} +0 -0
- /package/build/{index-7847235b.js → index-6bf9278b.js} +0 -0
- /package/build/{isProduction-0fdd7dfe.js → isProduction-47032811.js} +0 -0
- /package/build/{localizeNumberFormat-669c1994.js → localizeNumberFormat-a54bdc32.js} +0 -0
- /package/build/{normalizeLink-c6de1786.js → normalizeLink-2306c995.js} +0 -0
- /package/build/{theme-54f4dde4.js → theme-0dfa18d3.js} +0 -0
- /package/build/{translationsContext-06f43813.js → translationsContext-a6a567c2.js} +0 -0
- /package/build/{tslib.es6-d2b93cc7.js → tslib.es6-08c42772.js} +0 -0
- /package/build/{types-0592baab.js → types-a56d559e.js} +0 -0
- /package/build/{useIsInit-2036ba02.js → useIsInit-2e42ae3d.js} +0 -0
- /package/build/{useOutsideClick-8d51030b.js → useOutsideClick-2a78a81a.js} +0 -0
- /package/build/{useScrollbarSize-a5835e05.js → useScrollbarSize-680d0ea0.js} +0 -0
- /package/build/{useUniqueId-bf27367e.js → useUniqueId-4132773f.js} +0 -0
- /package/build/{utils-d555597e.js → utils-05f7fda9.js} +0 -0
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import e from"@emotion/styled";import{_ as t}from"./tslib.es6-23b16f13.js";import o,{useMemo as n}from"react";import{L as i}from"./Onboarding-5d4e7e9a.js";import{CommonGAssets as r}from"./gAssets.js";import{t as a}from"./theme-b3528b2a.js";import{T as s}from"./index-89514194.js";import{C as l}from"./index-7e1f6511.js";const c=e.div`
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
overflow: hidden;
|
|
4
|
-
width: ${e=>e.size}px;
|
|
5
|
-
height: ${e=>e.size}px;
|
|
6
|
-
box-sizing: border-box;
|
|
7
|
-
align-items: center;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
|
|
10
|
-
border: 1px solid #e4e8ec;
|
|
11
|
-
background-color: ${e=>e.backgroundColor||a.colors.white};
|
|
12
|
-
border-radius: ${e=>e.borderRadius||"50%"};
|
|
13
|
-
& > * {
|
|
14
|
-
width: ${e=>e.iconSize}px;
|
|
15
|
-
height: ${e=>e.iconSize}px;
|
|
16
|
-
}
|
|
17
|
-
`,d=e.div`
|
|
18
|
-
display: inline-block;
|
|
19
|
-
height: 108px;
|
|
20
|
-
background-color: ${e=>e.theme.colors.white};
|
|
21
|
-
border-radius: 60px;
|
|
22
|
-
cursor: pointer;
|
|
23
|
-
&.selected-week-pill {
|
|
24
|
-
background-color: ${e=>e.theme.colors.pink100};
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
& > div:first-child {
|
|
28
|
-
margin: 4px 4px 0;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
& > p {
|
|
32
|
-
margin-top: 8px;
|
|
33
|
-
text-align: center;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
& > * {
|
|
37
|
-
pointer-events: none;
|
|
38
|
-
}
|
|
39
|
-
`,p=[i.Myanmar,i.Taiwan],m=e((e=>{var{icon:i,name:l,className:m,locale:g="en-PH",dataEventCategory:b,dataEventAction:x,dataEventLabel:h,onSelect:v}=e,f=t(e,["icon","name","className","locale","dataEventCategory","dataEventAction","dataEventLabel","onSelect"]);const u=n((()=>null==m?void 0:m.includes("selected-week-pill")),[m]);return o.createElement(d,Object.assign({onClick:v,className:m?"week-pill".concat(" non-pointer-event-child ",m):"week-pill non-pointer-event-child","data-event-category":b,"data-event-action":x,"data-event-label":h},f),o.createElement(c,{size:64,iconSize:40,backgroundColor:a.colors.white},o.createElement("img",{src:i||r.getAssetPath("week_default.png"),alt:""})),u?o.createElement(s,Object.assign({type:"semiBold",size:"n1",color:a.colors.gray800},p.includes(g)&&{style:{fontSize:"10px"}}),l):o.createElement(s,Object.assign({size:"n1",color:a.colors.gray600},p.includes(g)&&{style:{fontSize:"10px"}}),l))}))`
|
|
40
|
-
box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.08);
|
|
41
|
-
`,g=e(l.Slide)`
|
|
42
|
-
cursor: pointer;
|
|
43
|
-
> div * {
|
|
44
|
-
pointer-events: none;
|
|
45
|
-
}
|
|
46
|
-
`,b=e(l)`
|
|
47
|
-
.centerred-pill-wrapper {
|
|
48
|
-
padding: 16px 0;
|
|
49
|
-
}
|
|
50
|
-
`;export{b as S,g as a,m as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{useContext as o,useMemo as a}from"react";import{T as r,d as e}from"./translationsContext-b11db32c.js";import t from"string-format";function n(){const{values:n,locale:s}=o(r)||{locale:"en-PH"};return a((()=>({t:(o,a)=>n?n[o]?a?t(n[o]||o,a):n[o]||o:(console.warn(`[useTranslations] Missing translation for key ${o} and locale ${s}`),a?t(e[o]||o,a):e[o]||o):(console.error("[useTranslations] t method called before translation values are loaded"),o),locale:s})),[n,s])}export{n as u};
|
package/build/index-0f3b0cb0.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-d2b93cc7.js"),t=require("react"),l=require("./core-55389834.js"),a=require("./gAssets.js"),n=require("./useUniqueId-bf27367e.js"),i=require("./index.styled-2b48824e.js"),o=require("./index-2b99cb56.js"),r=require("./index-cfb03666.js"),s=require("./normalizeLink-c6de1786.js"),d=require("./routing-01f2972b.js"),u=require("./dataTransform-70b7b942.js"),c=require("./index-03c84548.js"),m=require("./useTranslations-dcd5faaf.js"),h=require("lodash/throttle"),f=require("./utils-d555597e.js"),g=require("./index.styled-4821c538.js"),p=require("./index-186ea291.js"),v=require("./theme-54f4dde4.js"),E=require("./cookieHelper-ec53b348.js"),y=require("@mantine/core");require("./index-90f3fe11.js");var C=require("./index-7870dbf2.js");require("./index.styled-b683af18.js"),require("./index-7b41fe1c.js"),require("./index-87604a48.js"),require("dayjs"),require("./screenSizeContext-7024419e.js"),require("@emotion/react"),require("./isProduction-0fdd7dfe.js"),require("./Onboarding-5cc2a17c.js"),require("./index-d8e712d6.js"),require("@mantine/hooks");var w=require("./constants-df00bbe8.js"),L=require("string-format"),b=require("./index-beb9b379.js"),k=require("./useIsInit-2036ba02.js"),S=require("lodash/debounce");function M(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var A=M(t),P=M(h),x=M(L),N=M(S);const H={xs:28,small:32,medium:40,large:48,xl:64,xxl:80,xxxl:96},T=({type:e="square",size:l,avatarImg:a,avatarUrl:n,firstLetter:i,backgroundColor:o,onClick:r,style:s,className:d,width:u,height:c})=>{const m=l?H[l]:void 0,[h,f]=t.useState(!1);t.useEffect((()=>{if(n){const e=document.createElement("img");e.setAttribute("src",n),e.addEventListener("error",(()=>{f(!0)}))}}),[n,f]);const p=(!n&&!a||h)&&i;return A.default.createElement(g.StyledAvatar,{style:Object.assign(Object.assign({},s),{"--size":m?m+"px":void 0,"--width-prop":u?u+"px":void 0,"--height-prop":c?c+"px":void 0,"--background-color":o}),"data-has-max":!(!u||!c),"data-avatar-type":e,onClick:r,className:d,avatarUrl:n,"data-custom-size":!!l},a,n&&!h&&A.default.createElement("img",{src:n}),p&&i)},_=e=>A.default.createElement("img",Object.assign({src:a.CommonGAssets.getAssetPath("flags/cambodiaRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),B=e=>A.default.createElement("img",Object.assign({src:a.CommonGAssets.getAssetPath("flags/cambodiaSquare.png")},e)),R=e=>A.default.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),A.default.createElement("g",null,A.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},A.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),A.default.createElement("path",{d:"M7.49953 0.327881C5.47199 0.850891 3.69346 1.98591 2.37793 3.53444L7.49953 6.6655V0.327881Z",fill:"#3F51B5"}),A.default.createElement("path",{d:"M2.30273 16.3824C3.62476 17.9749 5.4353 19.1399 7.50034 19.6729V13.2053L2.30273 16.3824Z",fill:"#3F51B5"}),A.default.createElement("path",{d:"M0.328125 12.5C0.334625 12.526 0.341125 12.5515 0.348125 12.5775L0.474128 12.5H0.328125Z",fill:"white"}),A.default.createElement("path",{d:"M17.7871 3.73445C16.4571 2.08391 14.6131 0.872891 12.499 0.327881V6.96651L17.7871 3.73445Z",fill:"#3F51B5"}),A.default.createElement("path",{d:"M12.499 19.6722C14.6506 19.1172 16.5196 17.8707 17.8546 16.1752L12.499 12.9021V19.6722Z",fill:"#3F51B5"}),A.default.createElement("path",{d:"M0.376626 7.31055C0.359125 7.37305 0.344125 7.43705 0.328125 7.50005H0.686632L0.376626 7.31055Z",fill:"white"}),A.default.createElement("path",{d:"M19.8745 8.50006C19.827 8.18506 19.7655 7.87555 19.6895 7.57104L18.1699 8.50006H19.8745Z",fill:"white"}),A.default.createElement("path",{d:"M0.686034 7.50024H0.327527C0.243026 7.82775 0.175524 8.16076 0.124023 8.50026H2.32207L0.686034 7.50024Z",fill:"white"}),A.default.createElement("path",{d:"M19.7197 12.3148C19.7832 12.0473 19.8337 11.7752 19.8752 11.5002H18.3867L19.7197 12.3148Z",fill:"white"}),A.default.createElement("path",{d:"M2.10956 11.5002H0.124023C0.175024 11.8398 0.243026 12.1728 0.327527 12.5003H0.47403L2.10956 11.5002Z",fill:"white"}),A.default.createElement("path",{d:"M8.50002 7.27665V0.124512C8.16051 0.175513 7.82751 0.243514 7.5 0.328016V6.66564L8.50002 7.27665Z",fill:"white"}),A.default.createElement("path",{d:"M11.5 12.2913V19.8759C11.8395 19.8249 12.1725 19.7569 12.5 19.6724V12.9023L11.5 12.2913Z",fill:"white"}),A.default.createElement("path",{d:"M7.5 13.205V19.6721C7.82751 19.7566 8.16051 19.8241 8.50002 19.8756V12.594L7.5 13.205Z",fill:"white"}),A.default.createElement("path",{d:"M11.5925 7.34715L11.7345 7.43415L12.5 6.96614V0.328016C12.1725 0.243514 11.8395 0.176013 11.5 0.124512V7.49865L11.5925 7.34715Z",fill:"white"}),A.default.createElement("path",{d:"M2.32251 8.50002H7.01761L8.50014 7.594V7.277L7.50011 6.66548L2.37852 3.53442C1.95151 4.03743 1.572 4.58144 1.24949 5.16296L5.02507 7.5H2.29701L0.650482 6.47648C0.54748 6.74949 0.455478 7.02699 0.375977 7.3105L0.686483 7.5L2.32251 8.50002Z",fill:"white"}),A.default.createElement("path",{d:"M11.7344 7.43419L13.4784 8.50021H18.171L19.6905 7.57119C19.528 6.92118 19.303 6.29767 19.02 5.70516L16.139 7.50019H13.4109L18.317 4.45013C18.1515 4.20313 17.9735 3.96562 17.7875 3.73462L12.4999 6.96618L11.7344 7.43419Z",fill:"white"}),A.default.createElement("path",{d:"M5.02448 7.50013L1.2494 5.16309C1.0169 5.58259 0.821394 6.0231 0.650391 6.47661L2.29642 7.50013H5.02448Z",fill:"#E53935"}),A.default.createElement("path",{d:"M16.1392 7.50024L19.0207 5.70521C18.8132 5.2702 18.5837 4.84819 18.3177 4.45068L13.4111 7.50024H16.1392Z",fill:"#E53935"}),A.default.createElement("path",{d:"M11.5 11.5002V12.2913L12.5 12.9023L17.8556 16.1758C18.2416 15.6853 18.5836 15.1593 18.8736 14.6008L15.4856 12.5003H18.2136L19.4432 13.2673C19.5507 12.9563 19.6432 12.6393 19.7197 12.3153L18.3871 11.5002H11.5Z",fill:"white"}),A.default.createElement("path",{d:"M13.4785 8.50019L11.7345 7.43417L11.5925 7.34717L11.5 7.49867V8.50019H13.4785Z",fill:"white"}),A.default.createElement("path",{d:"M8.49934 12.5943V11.5002H2.10921L0.473182 12.5003L0.34668 12.5778C0.522683 13.2383 0.762688 13.8713 1.06319 14.4708L4.16375 12.5003H6.89181L1.80071 15.7168C1.95971 15.9448 2.12471 16.1688 2.30172 16.3823L7.49932 13.2053L8.49934 12.5943Z",fill:"white"}),A.default.createElement("path",{d:"M7.01758 8.50026H8.50011V7.59424L7.01758 8.50026Z",fill:"white"}),A.default.createElement("path",{d:"M15.4854 12.5L18.8729 14.6C19.0949 14.173 19.2834 13.727 19.4429 13.2665L18.2134 12.5H15.4854Z",fill:"#E53935"}),A.default.createElement("path",{d:"M4.16501 12.5L1.06445 14.4705C1.28196 14.9045 1.52596 15.3216 1.80197 15.7166L6.89307 12.5H4.16501Z",fill:"#E53935"}),A.default.createElement("path",{d:"M13.4785 8.5H11.5V11.5001H18.3871H19.8757C19.9497 11.0095 20.0002 10.511 20.0002 10C20.0002 9.48902 19.9497 8.99051 19.8757 8.5H18.1711H13.4785Z",fill:"#E53935"}),A.default.createElement("path",{d:"M8.50017 11.5001V8.5H7.01764H2.32255H0.124502C0.050501 8.99051 0 9.48902 0 10C0 10.511 0.050501 11.0095 0.124502 11.5001H2.11004H8.50017Z",fill:"#E53935"}),A.default.createElement("path",{d:"M11.5001 19.8759V12.2912V11.5002V8.50016V7.49865V0.124502C11.0095 0.050501 10.511 0 10 0C9.48902 0 8.99051 0.050501 8.5 0.124502V7.27664V7.59365V8.50016V11.5002V12.5942V19.8759C8.99051 19.9499 9.48902 20.0004 10 20.0004C10.511 20.0004 11.0095 19.9499 11.5001 19.8759Z",fill:"#E53935"}))),O=e=>A.default.createElement("svg",Object.assign({viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),A.default.createElement("g",null,A.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"5",width:"24",height:"16"},A.default.createElement("path",{d:"M1.08301 7.41675C1.08301 6.31218 1.97844 5.41675 3.08301 5.41675H22.9163C24.0209 5.41675 24.9163 6.31218 24.9163 7.41675V18.5834C24.9163 19.688 24.0209 20.5834 22.9163 20.5834H3.08301C1.97844 20.5834 1.08301 19.688 1.08301 18.5834V7.41675Z",fill:"#3F51B5"})),A.default.createElement("path",{d:"M1.08301 5.41675H24.9163V20.5834H1.08301V5.41675Z",fill:"#3F51B5"}),A.default.createElement("path",{d:"M1.08301 7.70041L12.3551 14.5899L14.05 11.8165L3.57901 5.41675H1.08301V7.70041Z",fill:"white"}),A.default.createElement("path",{d:"M24.9165 5.41675H22.9616L12.4912 11.816L14.1855 14.5899L24.9165 8.03083V5.41675Z",fill:"white"}),A.default.createElement("path",{d:"M14.1855 10.9802L12.4912 13.7536L23.6658 20.5834H24.9165V17.5387L14.1855 10.9802Z",fill:"white"}),A.default.createElement("path",{d:"M1.08301 17.8702V20.5834H2.87592L14.05 13.7541L12.3556 10.9802L1.08301 17.8702Z",fill:"white"}),A.default.createElement("path",{d:"M1.08301 10.8333H24.9163V15.1666H1.08301V10.8333Z",fill:"white"}),A.default.createElement("path",{d:"M10.833 5.41675H15.1663V20.5834H10.833V5.41675Z",fill:"white"}),A.default.createElement("path",{d:"M9.32609 10.8334L1.08301 5.79537V7.06504L7.24826 10.8334H9.32609ZM24.0004 5.41675L15.1376 10.8334H17.2149L24.9163 6.12687V5.41675H24.0004ZM17.9191 15.1667L24.9163 19.4432V18.1735L19.9964 15.1667H17.9191ZM8.62192 15.1667L1.08301 19.7742V20.5834H1.83701L10.6992 15.1667H8.62192ZM1.08301 11.9167H24.9163V14.0834H1.08301V11.9167Z",fill:"#E53935"}),A.default.createElement("path",{d:"M11.917 5.41675H14.0837V20.5834H11.917V5.41675Z",fill:"#E53935"}))),I=e=>A.default.createElement("img",Object.assign({src:a.CommonGAssets.getAssetPath("flags/indiaRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),U=e=>A.default.createElement("img",Object.assign({src:a.CommonGAssets.getAssetPath("flags/indiaSquare.png")},e)),$=t=>{var l=e.__rest(t,[]);const a=n.useUniqueId();return A.default.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l),A.default.createElement("mask",{id:a,style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},A.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),A.default.createElement("g",{mask:`url(#${a})`},A.default.createElement("rect",{width:"20",height:"10",fill:"#CE1126"}),A.default.createElement("rect",{y:"10",width:"20",height:"10",fill:"white"})))},G=t=>{var l=e.__rest(t,[]);const a=n.useUniqueId();return A.default.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l),A.default.createElement("g",{clipPath:`url(#${a})`},A.default.createElement("rect",{y:"0.0166016",width:"24",height:"8",fill:"#CE1126"}),A.default.createElement("rect",{y:"8.0166",width:"24",height:"8",fill:"white"})),A.default.createElement("defs",null,A.default.createElement("clipPath",{id:a},A.default.createElement("rect",{width:"24",height:"16",rx:"2",fill:"white"}))))},j=e=>A.default.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),A.default.createElement("g",null,A.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},A.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),A.default.createElement("rect",{y:"1",width:"20",height:"20",fill:"#CC0001"}),A.default.createElement("rect",{y:"16.106",width:"20",height:"1.02041",fill:"white"}),A.default.createElement("rect",{y:"16",width:"20",height:"1.02041",fill:"white"}),A.default.createElement("rect",{y:"18",width:"20",height:"1.02041",fill:"white"}),A.default.createElement("rect",{y:"14.0652",width:"20",height:"1.02041",fill:"white"}),A.default.createElement("rect",{y:"12.0242",width:"20",height:"1.02041",fill:"white"}),A.default.createElement("rect",{y:"9.9834",width:"20",height:"1.02041",fill:"white"}),A.default.createElement("rect",{y:"7.94263",width:"20",height:"1.02041",fill:"white"}),A.default.createElement("rect",{y:"5.90186",width:"20",height:"1.02041",fill:"white"}),A.default.createElement("rect",{y:"3.86084",width:"20",height:"1.02041",fill:"white"}),A.default.createElement("rect",{y:"2",width:"20",height:"1.02041",fill:"white"}),A.default.createElement("rect",{width:"20",height:"1.02041",fill:"white"}),A.default.createElement("rect",{y:"-1",width:"10",height:"12",fill:"#010066"}),A.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.11387 3.86084C2.92711 3.86084 1.96387 5.23232 1.96387 6.92206C1.96387 8.6118 2.92711 9.98329 4.11387 9.98329C4.54263 9.98329 4.94211 9.80406 5.27763 9.4957C5.08225 9.59203 4.87256 9.64471 4.65427 9.64471C3.60193 9.64471 2.74786 8.42866 2.74786 6.93032C2.74786 5.43198 3.60193 4.21594 4.65427 4.21594C4.88682 4.21594 5.10959 4.27527 5.31571 4.38397C4.97256 4.0538 4.5589 3.86084 4.11387 3.86084Z",fill:"#FFCC00"}),A.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.67935 8.51573L6.7737 7.8407L7.04147 9.22221L6.43573 8.06657L6.24676 9.47313L6.0609 8.06576L5.4526 9.2188L5.72343 7.83844L4.81629 8.50957L5.49017 7.42963L4.46387 7.48593L5.40732 6.9203L4.46512 6.35062L5.4913 6.41133L4.81981 5.3285L5.72546 6.00353L5.45769 4.62202L6.06343 5.77766L6.25241 4.37109L6.43827 5.77847L7.04656 4.62543L6.77574 6.00579L7.68287 5.33466L7.00899 6.4146L8.0353 6.3583L7.09184 6.92392L8.03404 7.49361L7.00786 7.43289L7.67935 8.51573Z",fill:"#FFCC00"}))),Z=e=>A.default.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),A.default.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#CC0001"}),A.default.createElement("rect",{y:"12.2712",width:"24",height:"0.777454",fill:"white"}),A.default.createElement("rect",{y:"12.1904",width:"24",height:"0.777454",fill:"white"}),A.default.createElement("rect",{y:"13.7144",width:"24",height:"0.777454",fill:"white"}),A.default.createElement("rect",{y:"10.7161",width:"24",height:"0.777454",fill:"white"}),A.default.createElement("rect",{y:"9.16138",width:"24",height:"0.777454",fill:"white"}),A.default.createElement("rect",{y:"7.60645",width:"24",height:"0.777454",fill:"white"}),A.default.createElement("rect",{y:"6.05127",width:"24",height:"0.777454",fill:"white"}),A.default.createElement("rect",{y:"4.49658",width:"24",height:"0.777454",fill:"white"}),A.default.createElement("rect",{y:"2.94141",width:"24",height:"0.777454",fill:"white"}),A.default.createElement("rect",{y:"1.52393",width:"24",height:"0.777454",fill:"white"}),A.default.createElement("rect",{width:"24",height:"0.777454",fill:"white"}),A.default.createElement("path",{d:"M0 2C0 0.895431 0.895431 0 2 0H12V8.38095H0V2Z",fill:"#010066"}),A.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.93644 1.52393C3.51233 1.52393 2.35645 2.56887 2.35645 3.85629C2.35645 5.14371 3.51233 6.18865 4.93644 6.18865C5.45096 6.18865 5.93034 6.05209 6.33296 5.81716C6.09851 5.89054 5.84688 5.93068 5.58492 5.93068C4.32212 5.93068 3.29724 5.00417 3.29724 3.86258C3.29724 2.72099 4.32212 1.79448 5.58492 1.79448C5.86399 1.79448 6.13132 1.83968 6.37865 1.9225C5.96688 1.67094 5.47049 1.52393 4.93644 1.52393Z",fill:"#FFCC00"}),A.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.216 5.07041L8.12923 4.55611L8.45055 5.60869L7.72366 4.72819L7.49689 5.79987L7.27386 4.72758L6.5439 5.60609L6.86889 4.55439L5.78033 5.06572L6.58899 4.24291L5.35742 4.28581L6.48957 3.85485L5.35893 3.42081L6.59034 3.46707L5.78456 2.64205L6.87133 3.15636L6.55001 2.10378L7.2769 2.98427L7.50367 1.9126L7.7267 2.98488L8.45666 2.10638L8.13166 3.15808L9.22022 2.64674L8.41157 3.46955L9.64314 3.42666L8.51099 3.85761L9.64163 4.29165L8.41022 4.2454L9.216 5.07041Z",fill:"#FFCC00"})),D=e=>A.default.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),A.default.createElement("g",null,A.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},A.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),A.default.createElement("rect",{x:"-4",y:"-1",width:"28",height:"11",fill:"#FECB00"}),A.default.createElement("rect",{x:"-4",y:"10",width:"28",height:"10",fill:"#EA2839"}),A.default.createElement("rect",{x:"-4",y:"6.7041",width:"28",height:"6.47773",fill:"#34B233"}),A.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.56543 10.3272L10.1796 5.15527L11.7938 10.3272H8.56543Z",fill:"white"}),A.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5292 11.2775L7.18336 14.5129L8.91745 9.37991L11.5292 11.2775Z",fill:"white"}),A.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.75181 11.8648L5.33182 8.73143L10.7494 8.79447L9.75181 11.8648Z",fill:"white"}),A.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.6105 8.78962L15.0281 8.72658L10.6081 11.86L9.6105 8.78962Z",fill:"white"}),A.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4424 9.37686L13.1765 14.5098L8.83064 11.2744L11.4424 9.37686Z",fill:"white"}))),V=e=>A.default.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),A.default.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#FECB00"}),A.default.createElement("rect",{y:"8.3811",width:"24",height:"7.61905",rx:"2",fill:"#EA2839"}),A.default.createElement("rect",{y:"5.86987",width:"24",height:"4.93542",fill:"#34B233"}),A.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.7705 8.63046L12.1541 4.68994L13.5377 8.63046H10.7705Z",fill:"white"}),A.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.3108 9.35502L9.58574 11.8201L11.0721 7.90925L13.3108 9.35502Z",fill:"white"}),A.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7874 9.80216L7.99884 7.41482L12.6425 7.46285L11.7874 9.80216Z",fill:"white"}),A.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6667 7.4589L16.3104 7.41087L12.5218 9.79821L11.6667 7.4589Z",fill:"white"}),A.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2361 7.90629L14.7225 11.8171L10.9974 9.35207L13.2361 7.90629Z",fill:"white"})),F=e=>A.default.createElement("img",Object.assign({src:a.CommonGAssets.getAssetPath("flags/philippineRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),z=e=>A.default.createElement("img",Object.assign({src:a.CommonGAssets.getAssetPath("flags/philippineSquare.png")},e)),q=e=>A.default.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),A.default.createElement("g",null,A.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},A.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),A.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#D8D8D8"}),A.default.createElement("g",null,A.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},A.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"white"})),A.default.createElement("rect",{width:"30",height:"20",fill:"#ED1E24"}),A.default.createElement("rect",{width:"15",height:"10",fill:"#2B2F84"}),A.default.createElement("circle",{cx:"7.49791",cy:"4.99913",r:"1.869",fill:"white"}),A.default.createElement("path",{d:"M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z",fill:"white"}),A.default.createElement("path",{d:"M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z",fill:"white"}),A.default.createElement("path",{d:"M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z",fill:"white"}),A.default.createElement("path",{d:"M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z",fill:"white"}),A.default.createElement("path",{d:"M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z",fill:"white"}),A.default.createElement("path",{d:"M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z",fill:"white"}),A.default.createElement("path",{d:"M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z",fill:"white"}),A.default.createElement("path",{d:"M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z",fill:"white"}),A.default.createElement("path",{d:"M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z",fill:"white"}),A.default.createElement("path",{d:"M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z",fill:"white"}),A.default.createElement("path",{d:"M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z",fill:"white"}),A.default.createElement("path",{d:"M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z",fill:"white"})))),W=e=>A.default.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),A.default.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#ED1E24"}),A.default.createElement("path",{d:"M0 2C0 0.89543 0.895431 0 2 0H15V10H0V2Z",fill:"#2B2F84"}),A.default.createElement("circle",{cx:"7.49791",cy:"4.99913",r:"1.869",fill:"white"}),A.default.createElement("path",{d:"M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z",fill:"white"}),A.default.createElement("path",{d:"M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z",fill:"white"}),A.default.createElement("path",{d:"M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z",fill:"white"}),A.default.createElement("path",{d:"M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z",fill:"white"}),A.default.createElement("path",{d:"M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z",fill:"white"}),A.default.createElement("path",{d:"M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z",fill:"white"}),A.default.createElement("path",{d:"M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z",fill:"white"}),A.default.createElement("path",{d:"M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z",fill:"white"}),A.default.createElement("path",{d:"M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z",fill:"white"}),A.default.createElement("path",{d:"M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z",fill:"white"}),A.default.createElement("path",{d:"M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z",fill:"white"}),A.default.createElement("path",{d:"M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z",fill:"white"})),K=e=>A.default.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),A.default.createElement("g",null,A.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},A.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),A.default.createElement("rect",{x:"-4",y:"-0.0166016",width:"28",height:"20",fill:"#ED1C24"}),A.default.createElement("rect",{x:"-4",y:"3.31665",width:"28",height:"13.3333",fill:"white"}),A.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-4 6.65015H24V13.3168H-4V6.65015Z",fill:"#241D4F"}))),Q=e=>A.default.createElement("svg",Object.assign({viewBox:"0 0 24 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),A.default.createElement("rect",{y:"0.983398",width:"24",height:"16",rx:"2",fill:"#ED1C24"}),A.default.createElement("rect",{y:"3.65039",width:"24",height:"10.6667",fill:"white"}),A.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.31689H24V11.6502H0V6.31689Z",fill:"#241D4F"})),Y=e=>A.default.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:Object.assign({borderRadius:"50%"},e.style)},e),A.default.createElement("g",null,A.default.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},A.default.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),A.default.createElement("rect",{x:"-4",y:"-0.0166016",width:"28",height:"20",fill:"#DA251D"}),A.default.createElement("path",{d:"M11.7228 10.8677L14.2819 9.00839L11.1187 9.00839L10.1409 6L9.16316 9.00839L6 9.00839L8.5591 10.8677L7.58184 13.8766L10.1409 12.0168L12.7 13.8766L11.7228 10.8677Z",fill:"#FFEB3B"}))),J=e=>A.default.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),A.default.createElement("g",null,A.default.createElement("clipPath",null,A.default.createElement("rect",{width:"24",height:"16",fill:"white"})),A.default.createElement("path",{d:"M2.01386e-10 2C0 0.895431 0.895431 -7.50368e-10 2 -1.67599e-09L22 -1.84359e-08C23.1046 -1.93615e-08 24 0.895431 24 2L24 14C24 15.1046 23.1046 16 22 16L2 16C0.89543 16 1.52092e-09 15.1046 1.4097e-09 14L2.01386e-10 2Z",fill:"#DA251D"}),A.default.createElement("path",{d:"M13.7823 8.92854L16.6663 6.8332L13.1016 6.8332L11.9997 3.44287L10.8978 6.8332L7.33301 6.8332L10.217 8.92854L9.11567 12.3195L11.9997 10.2235L14.8837 12.3195L13.7823 8.92854Z",fill:"#FFEB3B"})));var X="pfaLGRK";const ee=({country:e,language:t,rounded:l,height:a,width:n,isTesting:i})=>{let o,r;switch(t){case"en":o=A.default.createElement(O,null),r=A.default.createElement(R,null);break;case"vi":o=A.default.createElement(J,null),r=A.default.createElement(Y,null);break;case"id":o=A.default.createElement(G,{isTesting:i}),r=A.default.createElement($,{isTesting:i});break;case"th":o=A.default.createElement(Q,null),r=A.default.createElement(K,null);break;case"km":o=A.default.createElement(B,null),r=A.default.createElement(_,null);break;case"ms":o=A.default.createElement(Z,null),r=A.default.createElement(j,null);break;case"my":o=A.default.createElement(V,null),r=A.default.createElement(D,null);break;case"tl":o=A.default.createElement(z,null),r=A.default.createElement(F,null);break;case"hi":o=A.default.createElement(U,null),r=A.default.createElement(I,null);break;case"zh":o=A.default.createElement(W,null),r=A.default.createElement(q,null)}if(!o&&!r)switch(e){case"VN":o=A.default.createElement(J,null),r=A.default.createElement(Y,null);break;case"ID":o=A.default.createElement(G,{isTesting:i}),r=A.default.createElement($,{isTesting:i});break;case"TH":o=A.default.createElement(Q,null),r=A.default.createElement(K,null);break;case"KH":o=A.default.createElement(B,null),r=A.default.createElement(_,null);break;case"MY":o=A.default.createElement(Z,null),r=A.default.createElement(j,null);break;case"MM":o=A.default.createElement(V,null),r=A.default.createElement(D,null);break;case"PH":o=A.default.createElement(z,null),r=A.default.createElement(F,null);break;case"IN":o=A.default.createElement(U,null),r=A.default.createElement(I,null);break;case"TW":o=A.default.createElement(W,null),r=A.default.createElement(q,null)}return A.default.createElement("div",{className:X,style:{"--width":n||20,"--height":a||20}},l?r:o)},te=({options:e,label:l,labelRenderer:n,selected:r,onChange:s,showSelected:d=!0,style:u={},showIndicator:c=!0})=>{const[m,h]=t.useState(!1);return A.default.createElement(A.default.Fragment,null,A.default.createElement(i.StyledSelectionContainer,null,A.default.createElement(i.StyledSelectionLabel,{onClick:()=>h((e=>!e))},l||(null==n?void 0:n(m))||null,A.default.createElement(i.StyleSelectionPopup,{"data-is-open":m,style:u,"data-show-indicator":c},e.map(((e,t)=>A.default.createElement(i.StyledOption,{key:t,"data-selected":d&&r===e.value,onClick:t=>{r!==e.value&&(s(e.value),h((e=>!e))),t.stopPropagation()}},A.default.createElement(o.Text,{size:"p3"},e.label),d&&r===e.value&&A.default.createElement("img",{src:a.CommonGAssets.getAssetPath("check.svg"),alt:"check",className:"check-icon"}))))))),m&&A.default.createElement(i.StyledPopupBackground,{onClick:()=>h(!1)}))},le=({languageOptions:e,locale:t})=>{var l,a;const n=null==e?void 0:e.find((e=>e.locale===t));return(null==e?void 0:e.length)?A.default.createElement(te,{options:e,selected:n.value,label:A.default.createElement(ae,{locale:t,label:n.label||(null===(a=null===(l=t.split("-"))||void 0===l?void 0:l[0])||void 0===a?void 0:a.toUpperCase())}),onChange:e=>{"undefined"!=typeof window&&(window.location.href=e)},style:{width:100},showSelected:!0,showIndicator:!1}):null},ae=({locale:e,label:t,href:l})=>{var a,n,o;return A.default.createElement(i.StyledLanguageChangeLink,{href:l},A.default.createElement(ee,{country:null===(n=null===(a=null==e?void 0:e.split("-"))||void 0===a?void 0:a[1])||void 0===n?void 0:n.toUpperCase(),width:16,height:16,rounded:!0,language:null===(o=null==e?void 0:e.split("-"))||void 0===o?void 0:o[0]}),A.default.createElement("span",null,t))},ne=({forceDisplay:e,mediaQueryKey:l,children:a,className:n,style:o})=>{const[r,s]=t.useMemo((()=>f.getBoundariesFromMediaQueryKey(l)),[l]);return A.default.createElement(i.StyledDisplayWrapper,{lowerBound:e?0:r,upperBound:e?0:s,className:n,style:o},a)},ie=e=>{const{allowBgScroll:l}=e||{},a=t.useRef();return{containerRef:a,onContainerFocus:()=>{l||(document.documentElement.style.overflow="hidden")},onContainerBlur:()=>{l||(document.documentElement.style.overflow="")},onButtonMouseDown:e=>{a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur(),e.preventDefault())},onClose:()=>{a.current&&(document.activeElement===a.current||a.current.contains(document.activeElement))&&(a.current.blur(),document.activeElement.blur())}}},oe=({type:e="lead",closeIcon:t,isOpen:l=!0,onClose:a,children:n,enableAnimation:o=!0,targetAvatar:r,id:s,className:d})=>A.default.createElement(i.StyledPopup,{"data-open":l,"data-type":e,"data-animation":o,"data-target":r,id:s,className:d},A.default.createElement("div",{className:"popup-content"},!!t&&A.default.createElement("div",{className:"close-button",onClick:a},t),n)),re={myBooking:"booking",mySaved:"saved",myHealth:"health",myFamily:"family",myCommunity:"my-communities",eCom:"shop"};var se="uJQBNNg",de="TfG3dM5",ue="aMtjFNf",ce="cSz2RR-",me="GyFm00F";function he({userInfo:e,onClickMyProfileButton:l,themeName:n="helloSites"}){const{t:i}=m.useTranslations(),o=t.useMemo((()=>{const t=(null==e?void 0:e.name)||(null==e?void 0:e.username);return t&&t.length?t[0].toUpperCase():"A"}),[null==e?void 0:e.username,null==e?void 0:e.name]);return A.default.createElement("div",{className:se,onClick:()=>{l&&l()}},A.default.createElement(T,{className:de,type:"rounded",size:"xl",avatarUrl:null==e?void 0:e.avatar,firstLetter:o,backgroundColor:"marryBaby"===n?v.theme.mbColors.pink:v.theme.colors.secondaryBase}),A.default.createElement("div",{className:ue},A.default.createElement("div",{className:ce},(null==e?void 0:e.name)||(null==e?void 0:e.username)),A.default.createElement("div",{className:me,style:{"--bg-hellosites":`url(${a.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-chevronRight.svg")})`,"--bg-marrybaby":`url(${a.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-arrowRight.svg")})`}},i("userProfile.nav.header.viewProfile"))))}var fe="gn6HmGG",ge="FCx8FEM",pe="zMiRxaE",ve="lZ2Z9MQ",Ee="rwm-agG",ye="qMOscoq";const Ce=({themeName:e,locale:l,onClickItem:n})=>{const[i,o]=t.useState(""),r=t.useMemo((()=>"marryBaby"===e?[{key:"userProfile.nav.menu.password",icon:a.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-lock.svg"),link:"password"},{key:"userProfile.nav.menu.logout",icon:a.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-logOut.svg"),link:"logout"}]:[{key:"userProfile.nav.menu.accountSettings",icon:a.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-settingsWheel.svg"),subMenu:[{key:"userProfile.nav.menu.password",link:"password"},{key:"userProfile.nav.menu.disableAccount",link:"disable-account",disableLocale:["hi-IN"]}]},{key:"userProfile.nav.menu.help",icon:a.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-helpCircle.svg"),link:"help"}]),[e]);function s(e){e.subMenu?o((t=>t?"":e.key)):n&&n(e)}return A.default.createElement("div",{className:fe},r.map((e=>A.default.createElement(we,{key:e.key,item:e,openKey:i,onClickItem:s,locale:l}))))},we=({item:e,openKey:t,onClickItem:l,locale:n})=>{var i;const{t:o}=m.useTranslations();return(null===(i=e.disableLocale)||void 0===i?void 0:i.includes(n))?null:A.default.createElement("div",{className:`${ge} nav-menu-item`,"data-is-open":t===e.key,key:e.key,"data-has-submenu":!!e.subMenu},A.default.createElement("div",{className:pe,onClick:()=>l(e)},e.icon&&A.default.createElement("div",{className:ve,style:{backgroundImage:`url("${e.icon}")`}}),o(e.key),e.subMenu&&A.default.createElement("div",{className:Ee,style:{"--after-bg":`url(${a.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-chevronDown.svg")})`}})),e.subMenu&&A.default.createElement("div",{className:ye},e.subMenu.map((e=>A.default.createElement(we,{key:e.key,item:e,openKey:t,onClickItem:l,locale:n})))))};var Le="-AZt1au",be="IvSIfCI",ke="eahCJov",Se="XIyViFs",Me="_4y-O0w3",Ae="kO8iNgD",Pe="a1d4E10",xe="Tdguxxf",Ne="-mOxsaU",He="yPeDBNZ";const Te={helloSites:{member:()=>a.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-member.svg"),ambassador:()=>a.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-ambassador.svg"),doctor:()=>a.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-doctor.svg"),expert:()=>a.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-expert.svg"),influencer:()=>a.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-rank-influencer.svg")},marryBaby:{member:()=>a.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-member.svg"),ambassador:()=>a.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-ambassador.svg"),doctor:()=>a.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-doctor.svg"),expert:()=>a.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-expert.svg"),influencer:()=>a.CommonGAssets.getAssetPath("userProfileNav/marryBaby/icon-rank-influencer.svg")}},_e=({themeName:e,rank:l="member",numberOfPosts:a=0})=>{const{t:n}=m.useTranslations(),i=t.useMemo((()=>{var t,a;return(null===(a=null===(t=Te[e])||void 0===t?void 0:t[l])||void 0===a?void 0:a.call(t))||""}),[l,e]);return A.default.createElement("div",{className:Me,"data-user-rank":l},A.default.createElement("div",{className:Ae},A.default.createElement("div",{className:Pe},A.default.createElement("div",{className:xe,style:{backgroundImage:`url("${i}")`}}),A.default.createElement("h3",{className:Ne},n(`userProfile.userRank.${l}`)),a>0&&A.default.createElement("p",{className:He},a," ",n("userProfile.nav.header.count.posts")))))},Be=e=>{var t,l,a,n;return e?{termId:e.term_id||null,sponsor:e.sponsor?(n=e.sponsor,n?{title:n.title,logo:n.logo,link:n.link}:{}):null,isSponsored:e.is_sponsored||null,categoryName:e.cat_name||e.name||null,name:e.name||null,iconUrl:e.icon||"",slugName:e.category_nicename||null,description:e.description||null,featureImage:e.thumbnail||e.image||null,displayName:e.name||null,parent:e.parent||null,permalink:e.permalink||null,slug:e.slug||null,childCates:(null===(t=e.child_cates)||void 0===t?void 0:t.map((e=>Be(e))))||[],thumnailColor:e.thumnail_color||["#FFEAF1","#E0E9FB","#FFF9EB","#F2FCF7","#F3F3F3"][5*Math.random()|0],colorFeatureImage:e.color_feature_image||null,imageColor:e.image_color||null,textColor:e.text_color||null,catParent:(null===(l=e.cat_parent)||void 0===l?void 0:l.name)?{name:e.cat_parent.name,permalink:e.cat_parent.permalink}:{},metaTag:e.meta_tag||"",reviewedBy:e.reviewed_by?(a=e.reviewed_by,{postTitle:a.post_title,permalink:a.permalink}):null,reviewedDate:e.reviewed_date||"",faqs:e.faqs?e.faqs.map((e=>(e=>({title:e.title,content:e.content}))(e))):null}:{}},Re=e=>{var t,l;if(!e)return{};const a=null===(t=e.link)||void 0===t?void 0:t.includes("/bot/"),n=null===(l=e.link)||void 0===l?void 0:l.startsWith("/fil/"),i=e.link?e.link.startsWith("http")||a?e.link:n?e.link.replace("/health-tools/","/").replace("/fil/","/fil/health-tools/"):`/health-tools${e.link.replace("/health-tools/","/")}`:void 0;return{icon:e.icon,link:i,subtitle:e.subtitle,title:e.title}},Oe=e=>e?{thumbnail:e.thumbnail,link:null==e?void 0:e.slug,subtitle:e.name,name:e.name,slug:e.slug}:{},Ie=e=>e?{id:e.id,name:e.name,logo:null==e?void 0:e.logo,description:e.about,slug:e.slug}:{},Ue=({type:e,specialtySlug:t,locale:l})=>{var a,n;return`${null===(a=w.LOCALIZED_SLUGS[l])||void 0===a?void 0:a.ALL}/${(null===(n=w.LOCALIZED_SLUGS[l])||void 0===n?void 0:n[e])||"doctor"}/${null!=t?t:""}`},$e=e=>e?{id:e.ID,name:e.name,permalink:e.permalink,image:(null==e?void 0:e.small_banner)||(null==e?void 0:e.image)||"",imageMedium:(null==e?void 0:e.image_medium)||null,imageThumbnail:(null==e?void 0:e.image_thumbnail)||null,startDate:null==e?void 0:e.start_date,endDate:null==e?void 0:e.end_date}:{},Ge=e=>{const t=new Date;if(null==e?void 0:e.startDate){const l=new Date(e.startDate);if(t.getTime()<l.getTime())return!1}if(null==e?void 0:e.endDate){const l=new Date(e.endDate);if(t.getTime()>l.getTime())return!1}return!0},je=({SSO_URL:e,UP_BASEPATH:l="user",themeName:n="helloSites",cardUrls:o=re,enableCare:d,enableTogether:u,enableEcom:c,userInfo:h,togetherApiDomain:f,userPostsNumber:g,onClickNavigationCard:v,onClickMyProfileButton:y,onClickMenuItem:C,onClickLogout:w,isUserProfileNavigatorMenuHidden:L=!1,isMyHealthEnabled:b=!1,locale:k})=>{const{t:S}=m.useTranslations(),[M,P]=t.useState(g||0),N="marryBaby"===n;t.useEffect((()=>{if(h&&void 0===g){const e=E.getCookie("hhg_user_token");e&&fetch(s.normalizeLinkSlash(((e,t,l,a)=>(l||"https://together.hellohealthgroup.com/")+"api/v1/"+x.default(i.TOGETHER_PATHS.GET_USER_POSTS,Object.assign(Object.assign({},a),{websiteUrl:t?"https://marrybaby.vn":`https://${r.domainLocales[e]}`})))(k,N,f)),{headers:{Authorization:`Bearer ${e}`}}).then((e=>e.json())).then((e=>{var t,l,a;1===(null==e?void 0:e.status)&&(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pagination)&&P((null===(a=null===(l=null==e?void 0:e.data)||void 0===l?void 0:l.pagination)||void 0===a?void 0:a.total_items)||0)})).catch((e=>console.error("Error fetching post number",e)))}}),[k,null!==h,g,f,N]);const H=t.useMemo((()=>{let e;return e=N?["myHealth","myCommunity","mySaved"]:["myHealth","mySaved","myBooking","myCommunity","eCom"],e.filter((e=>"myBooking"===e?d:"myCommunity"===e?u:"myHealth"===e?b:"eCom"!==e||c))}),[N,b]),T=t.useMemo((()=>"marryBaby"===n?null:A.default.createElement(p.Button,{color:"tertiary",icon:A.default.createElement("img",{src:a.CommonGAssets.getAssetPath("userProfileNav/helloSites/icon-logOut.svg"),width:15,height:15}),size:"md",onClick:w,className:Se},S("userProfile.nav.menu.logout"))),[n]),_=t=>{window.location.href=s.normalizeLinkSlash(`${e}${l}/${t}`)},B=e=>{const t=o[e];v?v(t):_(t)};return h?A.default.createElement("div",{className:Le,"data-theme":n},A.default.createElement(he,{userInfo:h,themeName:n,onClickMyProfileButton:()=>{y?y():_("profile")}}),A.default.createElement(_e,{themeName:n,rank:"member",numberOfPosts:M}),A.default.createElement("div",{className:be},H.map((e=>A.default.createElement(i.NavigationCard,{className:ke,key:e,themeName:n,type:e,onClick:B})))),!L&&A.default.createElement(A.default.Fragment,null,A.default.createElement(Ce,{themeName:n,locale:k,onClickItem:e=>{"logout"===e.link&&w?w():e.link&&!e.subMenu&&(C?C(e.link):_(e.link))}}),T)):null},Ze=({SSO_URL:e,UP_BASEPATH:t,isOpen:l,targetAvatar:a,userInfo:n,enableCare:i,enableTogether:o,enableEcom:r,closePopup:d,siteType:u="helloSites",dispatchLogout:c,userProfileRouterPush:m,isUserProfileNavigatorMenuHidden:h,isMyHealthEnabled:f=!1,togetherApiDomain:g,locale:p})=>{const v=l=>{m?m(`/${l}`):e&&(window.location.href=s.normalizeLinkSlash(`${e}${t}/${l}`))},E=e=>{v(e),d()};return A.default.createElement(oe,{isOpen:l,type:"profile",enableAnimation:!0,targetAvatar:a,onClose:d},A.default.createElement(je,{SSO_URL:e,UP_BASEPATH:t,themeName:u,userInfo:n,enableCare:i,enableTogether:o,enableEcom:r,onClickLogout:()=>{c&&(c(),d())},onClickMenuItem:E,onClickNavigationCard:E,onClickMyProfileButton:()=>{v("profile"),d()},isUserProfileNavigatorMenuHidden:h,isMyHealthEnabled:f,togetherApiDomain:g,locale:p}))},De=({openLogoutPopup:e,onCloseHandler:l,onLogoutHandler:n,siteType:o="helloSites"})=>{const{t:r}=m.useTranslations();return t.useEffect((()=>{document.body.classList.toggle("noscroll",e)}),[e]),A.default.createElement(y.Portal,null,A.default.createElement(u.Popup,{type:"confirm",isOpen:e,closeIcon:A.default.createElement("img",{src:a.CommonGAssets.getAssetPath("closeLight.svg"),style:{width:24,height:24},alt:"close-icon"}),onClose:l},A.default.createElement(i.StyledPopup$1,null,"helloSites"===o&&A.default.createElement("img",{src:a.CommonGAssets.getAssetPath("arrowDoor.svg"),className:"cancle-img",alt:"close-account"}),A.default.createElement("h2",null,r("helloSites"===o?"logout.popup.ask1":"logout.popup.ask.mb")),A.default.createElement("p",null,r("logout.popup.ask2")),A.default.createElement(i.StyledButtonGroup,{siteType:o},A.default.createElement(p.Button,{className:"logout-button",color:"tertiary",size:"lg",onClick:n},r("logout.popup.button.logout")),A.default.createElement(p.Button,{className:"cancel-button",color:"primary",size:"lg",onClick:l},r("logout.popup.button.cancel"))))))},Ve=({userInfo:l,siteType:n,onLoginClick:r,SSO_URL:d,currentUrl:u,isMinifyLogin:c,enableCare:h,enableTogether:f,enableEcom:g,isUserProfileNavigatorMenuHidden:E,UP_BASEPATH:y,isMyHealthEnabled:C,togetherApiDomain:w,onLogout:L,style:b,userProfileRouterPush:k,isLoading:S,locale:M})=>{const{t:P}=m.useTranslations(),[x,N]=t.useState(!1),H=(null==l?void 0:l.name)||(null==l?void 0:l.username),[_,B]=t.useState(!1);t.useEffect((()=>{B(!0)}),[]);const{containerRef:R,onContainerFocus:O,onContainerBlur:I,onButtonMouseDown:U,onClose:$}=ie();return S?A.default.createElement(p.Button,{size:"sm",color:"transparent",isLoading:!0}):(null==l?void 0:l.id)?A.default.createElement(A.default.Fragment,null,A.default.createElement(i.StyledImageWrapper,{ref:R,style:b,tabIndex:0,onBlur:I,onFocus:O},A.default.createElement("div",{onMouseDown:U},A.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"user-close-icon"},A.default.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})),A.default.createElement(T,{type:"rounded",size:"medium",className:"user-avatar",avatarUrl:null==l?void 0:l.avatar,firstLetter:H&&H.length?H[0].toUpperCase():"A",backgroundColor:"marryBaby"===n?v.theme.mbColors.pink:v.theme.colors.secondaryBase})),A.default.createElement(Ze,{UP_BASEPATH:y,SSO_URL:d,dispatchLogout:()=>{$(),N(!0)},isOpen:!1,isMyHealthEnabled:C,enableCare:h,enableTogether:f,enableEcom:g,closePopup:$,userInfo:l,siteType:n,isUserProfileNavigatorMenuHidden:E,togetherApiDomain:w,userProfileRouterPush:k,locale:M})),A.default.createElement(De,{openLogoutPopup:x,onCloseHandler:()=>{document.body.classList.toggle("noscroll",!1),N(!1)},siteType:n,onLogoutHandler:()=>e.__awaiter(void 0,void 0,void 0,(function*(){N(!1),document.body.classList.toggle("noscroll",!1),yield L()}))})):A.default.createElement(i.StyledLoggedOutAnchor,{style:Object.assign({textDecoration:"none"},b),"data-event-category":"Sign Up","data-event-action":"Button Click","data-event-label":u,href:_?void 0:s.normalizeLinkSlash(`${d}?returnUrl=${u}`),"data-site-type":n},c?A.default.createElement(i.StyledAvatar,{onClick:r},A.default.createElement("img",{src:a.CommonGAssets.getAssetPath("lock.png"),className:"avatar",loading:"lazy",alt:"avatar"})):A.default.createElement(A.default.Fragment,null,"helloSites"===n&&A.default.createElement("img",{className:"mobile-only",src:a.CommonGAssets.getAssetPath("login.svg"),style:{cursor:"pointer",height:24,width:24},onClick:r}),"marryBaby"===n&&A.default.createElement("div",{className:"mobile-only",onClick:r,style:{paddingLeft:16}},A.default.createElement(o.Text,{size:"p3",color:v.theme.mbColors.pink},P("navigation.loginJoin"))),A.default.createElement(p.Button,{className:"login-btn",size:"md",color:"tertiary",onClick:r,icon:A.default.createElement("img",{src:a.CommonGAssets.getAssetPath("login.svg"),width:18,height:18}),theme:n},P("navigation.loginJoin"))))};var Fe="_6gGCHV-",ze="YDzfyQU";const qe=({onCareHeaderClick:e,currentUrl:t,careUrlFe:l,btnName:a})=>e?A.default.createElement(p.Button,{className:Fe,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t,onClick:t=>e(t)},a):A.default.createElement("a",{href:l,className:`${ze} care-button no-replace-click`},A.default.createElement(p.Button,{className:Fe,size:"md",color:"primary",dataEventCategory:"Care",dataEventAction:"Navigation Bar Click",dataEventLabel:t},a));var We="IQdn7tn",Ke="_1jX3mGY",Qe="arD755Y";function Ye({className:e}){return A.default.createElement("div",null,A.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e},A.default.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"})))}function Je({siteType:e,type:t,enableSearch:l,className:n}){return"helloSites"===e?A.default.createElement("div",null,A.default.createElement("img",{"data-list-type":"Header","data-content-type":"Navigation","data-content-topic":"Hamburger",src:l?a.CommonGAssets.getAssetPath("hamburgerMenuNewWithSearch.svg"):a.CommonGAssets.getAssetPath("hamburgerMenuNew.svg"),style:{width:"24px",height:"24px"},alt:t,className:n})):A.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n},A.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.34961 15C3.34961 14.641 3.64062 14.35 3.99961 14.35L13.9996 14.35C14.3586 14.35 14.6496 14.641 14.6496 15C14.6496 15.359 14.3586 15.65 13.9996 15.65L3.99961 15.65C3.64062 15.65 3.34961 15.359 3.34961 15ZM3.34961 8.99999C3.34961 8.64101 3.64062 8.34999 3.99961 8.34999L19.9992 8.34999C20.3582 8.34999 20.6492 8.64101 20.6492 8.99999C20.6492 9.35898 20.3582 9.64999 19.9992 9.64999L3.99961 9.64999C3.64062 9.64999 3.34961 9.35898 3.34961 8.99999Z",fill:"#3E3F58"}))}const Xe=()=>{const{locale:e,configs:{statics:l},siteType:a}=t.useContext(i.NavigationContext),{t:n}=m.useTranslations();return A.default.createElement(g.PureInput,{className:"fake-search-input",name:"search-input-menu-service",size:"md",placeholder:"marryBaby"===a?n("navigation.search.input.placeholder"):n("home.search",{site:r.LOCALE_SPECS[e||"en-PH"]?r.LOCALE_SPECS[e||"en-PH"].SITE_NAME:""}),onChange:()=>{},onKeyDown:e=>"Enter"===e.key&&(window.location.href=`${l.HOME_PAGE_URL}/search/?s=${e.target.value}`),type:"search",onFocus:e=>{e.preventDefault()},displayIcon:A.default.createElement("a",{"data-event-category":"Search Button","data-event-action":"Click"},A.default.createElement(i.SearchIcon,null))})},et=({hrefViewMore:e,titleBtnViewMore:l,UrlFE:n,onClosePopup:o,menuItems:r,headingTitle:s})=>{const{siteType:d}=t.useContext(i.NavigationContext);return A.default.createElement(i.StyledItemGridLeft,null,A.default.createElement(i.StyledHeading,null,A.default.createElement(b.Heading,{tag:"marryBaby"===d?"h5":"h6",as:"h2",fontWeight:"semibold"},s)),null==r?void 0:r.slice(0,6).map(((e,t)=>{const l=(null==e?void 0:e.link)?(null==e?void 0:e.link.startsWith("http"))?null==e?void 0:e.link:`${n}/${null==e?void 0:e.link.split("/").filter(Boolean).join("/")}/`:"/";return A.default.createElement(i.StyledItem,{className:"iconMenu","data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":l,"data-is-heading-category":!1,href:l,"data-theme":d,key:t,onClick:o},A.default.createElement("div",{className:"icon"},A.default.createElement("img",{loading:"lazy",alt:e.name,src:e.thumbnail||"/images/avatar.jpg",style:{width:32,height:32,maxWidth:32,maxHeight:32}})),A.default.createElement("p",null,e.name),A.default.createElement(i.StyledIconNav,null,A.default.createElement("img",{src:a.CommonGAssets.getAssetPath("chevronRight.svg"),style:{width:"16px",height:"16px"}})))})),l&&A.default.createElement(i.StyledViewMore,{"data-theme":d,style:{textDecoration:"none"},href:e,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e},A.default.createElement(i.StyledItemAll,{onClick:o,"data-theme":d,"data-is-heading-category":!1},l,A.default.createElement(i.StyledImageWrapper$1,null,A.default.createElement("img",{className:"svg",src:"marryBaby"===d?a.CommonGAssets.getAssetPath("chevronRightPink.svg"):a.CommonGAssets.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}})))))},tt=({item:e,index:l=0})=>{var n;const{t:o}=m.useTranslations(),{locale:r,configs:{statics:s}}=t.useContext(i.NavigationContext);if(!e)return null;const d=`${s.CARE_URL_FE}/${null===(n=w.LOCALIZED_SLUGS[r])||void 0===n?void 0:n.HOSPITAL}/${e.slug}-${e.id}`;return A.default.createElement(i.StyledItem$1,{key:e.id,href:d,"data-event-category":"Hamburger Navigation","data-event-action":`Care Click ${l+1}`,"data-event-label":d},A.default.createElement("img",{src:a.CommonGAssets.getAssetPath("navCareCardBg.svg"),alt:"",className:"bg-svg",loading:"lazy"}),A.default.createElement(i.StyledImageCard,null,A.default.createElement(i.StyledImageCardInner,null,A.default.createElement("img",{loading:"lazy",alt:e.name,src:e.logo||"/images/avatar.jpg"}))),A.default.createElement(i.StyledContentWrapper,null,A.default.createElement(i.StyledTitle,null,e.name),A.default.createElement(i.StyledDes,null,e.description),A.default.createElement(i.StyledBtnView,null,o("home.seeMore"),A.default.createElement("img",{src:a.CommonGAssets.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"}}))))},lt=({title:e,link:l,description:n,cta:o,icon:r})=>{const{siteType:s}=t.useContext(i.NavigationContext);return A.default.createElement(i.StyledContainerNoPosts,{"data-theme":s},A.default.createElement(i.StyledLeft,null,A.default.createElement("img",{src:"marryBaby"===s?a.CommonGAssets.getAssetPath("navMBSpotlightBgNoData.svg"):a.CommonGAssets.getAssetPath("navSpotlightBgNoData.svg"),alt:"",loading:"lazy",className:"bg-svg"}),A.default.createElement(i.StyledContentLeft,null,r&&A.default.createElement("img",{src:r,width:64,height:64}))),A.default.createElement("div",null,e&&A.default.createElement(i.StyledTitle$1,null,e),n&&A.default.createElement(i.StyledDescription,null,n),o&&A.default.createElement("div",null,A.default.createElement("a",{href:l},A.default.createElement(p.Button,{theme:s,className:"survey-contact-submit",size:"md"},o)))))},at=({title:e,viewMore:l,children:n,link:o,dataEventAction:r=""})=>{const{siteType:s}=t.useContext(i.NavigationContext);return A.default.createElement(i.StyledItemGridRight,null,A.default.createElement(i.StyledHeading$1,null,A.default.createElement(b.Heading,{tag:"marryBaby"===s?"h5":"h6",as:"h2",fontWeight:"semibold"},e),l&&A.default.createElement(i.StyledViewMore$1,{"data-event-category":"Hamburger Navigation","data-event-action":r,"data-event-label":o,href:o,"data-theme":s},l,A.default.createElement("img",{src:"marryBaby"===s?a.CommonGAssets.getAssetPath("chevronRightPink.svg"):a.CommonGAssets.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px"}}))),n)},nt=({spotlights:e=[],hrefViewMore:t})=>{const{t:l}=m.useTranslations();return A.default.createElement(at,{title:l("home.navigator.menu.spotlightHospitals")},0!==e.length?A.default.createElement(i.StyledContainerItems,null,null==e?void 0:e.slice(0,3).map(((e,t)=>A.default.createElement(tt,{key:t,index:t,item:e})))):A.default.createElement(lt,{title:l("home.navigator.menu.care.noDatas.title"),description:l("home.navigator.menu.care.noDatas.description"),link:t,cta:l("home.navigator.menu.care.noDatas.cta"),icon:a.CommonGAssets.getAssetPath("community.svg")}))},it=({item:e,index:t=0})=>e?A.default.createElement(i.StyledItem$2,{key:e.id,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":`Spotlight Click ${t+1}`,"data-event-label":e.link},A.default.createElement(i.StyledImageCard$1,null,A.default.createElement("img",{loading:"lazy",alt:e.title,src:e.banner||"/images/notFound-min-small.jpg"})),A.default.createElement(i.StyledTitle$2,null,e.title)):null,ot=({spotlightsList:e=[],hrefViewMore:l})=>{const{t:n}=m.useTranslations(),{configs:{statics:o}}=t.useContext(i.NavigationContext);return A.default.createElement(at,{title:n("home.navigator.menu.spotlights"),viewMore:n("home.navigator.menu.spotlights.seeAll"),link:l,dataEventAction:"Spotlight See More Click"},0!==e.length?A.default.createElement(i.StyledContainerItems$1,null,null==e?void 0:e.slice(0,4).map(((e,t)=>A.default.createElement(it,{key:t,index:t,item:{id:e.id,link:o.HOME_PAGE_URL+e.permalink,title:e.name,banner:e.image}})))):A.default.createElement(lt,{title:n("home.navigator.menu.category.noDatas.title"),description:n("home.navigator.menu.category.noDatas.description"),link:l,cta:n("home.navigator.menu.category.noDatas.cta"),icon:a.CommonGAssets.getAssetPath("Spotlight.svg")}))},rt=({spotlights:e=[]})=>{const{configs:{statics:l}}=t.useContext(i.NavigationContext),{t:n}=m.useTranslations();return A.default.createElement(at,{title:n("home.navigator.menu.trendingPosts"),viewMore:n("home.navigator.menu.trendingPosts.seeMore"),link:s.normalizeLink(l.TOGETHER_URL_FE),dataEventAction:"Together See More Click"},0!==e.length?A.default.createElement(i.StyledContainerItems$2,null,null==e?void 0:e.slice(0,4).map(((e,t)=>A.default.createElement(i.Item,{index:t,post:e,key:e.id})))):A.default.createElement(lt,{title:n("home.navigator.menu.together.noPosts.title"),description:n("home.navigator.menu.together.noPosts.description"),link:`${l.HOME_PAGE_URL}/community/`,cta:n("home.navigator.menu.together.noPosts.cta"),icon:a.CommonGAssets.getAssetPath("community.svg")}))},st=({item:e,index:l=0})=>{const{t:n}=m.useTranslations(),{configs:{statics:o}}=t.useContext(i.NavigationContext);if(!e)return null;const r=e.link?e.link.startsWith("http")?e.link:`${o.HOME_PAGE_URL}${e.link}`:void 0;return A.default.createElement(i.StyledItem$3,{href:r,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${l+1}`,"data-event-label":r},A.default.createElement("img",{src:a.CommonGAssets.getAssetPath("navToolCardBg.svg"),alt:"",loading:"lazy",className:"bg-svg"}),A.default.createElement(i.StyledContentWrapper$1,null,A.default.createElement(i.StyledTitle$3,null,e.title),A.default.createElement(i.StyledDes$1,null,e.subtitle),A.default.createElement(i.StyledBtnView$1,null,n("home.seeMore"),A.default.createElement("img",{src:a.CommonGAssets.getAssetPath("chevronRightActive.svg"),style:{width:"16px",height:"16px",marginTop:"3px",marginLeft:"5px"}}))),A.default.createElement(i.StyledImageCard$2,null,A.default.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})))},dt=({item:e,index:l=0,color:n})=>{const{t:o}=m.useTranslations(),{configs:{statics:r}}=t.useContext(i.NavigationContext);if(!e)return null;const s=e.link?e.link.startsWith("http")?e.link:`${r.HOME_PAGE_URL}${e.link}`:void 0,d=()=>A.default.createElement(i.StyledImageCard$3,null,A.default.createElement("img",{loading:"lazy",alt:e.title,src:e.icon||"/images/avatar.jpg"})),u=()=>A.default.createElement(i.StyledWrapName,null,A.default.createElement(i.StyledContent,null,A.default.createElement(i.StyledTitle$4,null,e.title),A.default.createElement(i.StyledDes$2,null,e.subtitle)),A.default.createElement(i.StyledBtnView$2,null,A.default.createElement("div",{className:"mobile-only"},o("home.seeMore")),A.default.createElement("img",{src:a.CommonGAssets.getAssetPath("arrowRightGray.svg"),style:{width:"12px",height:"12px",marginTop:"2px",marginLeft:"5px"}})));return A.default.createElement(i.StyledItem$4,{href:s,"data-event-category":"Hamburger Navigation","data-event-action":`Engage Click ${l+1}`,"data-event-label":s,"data-color":n},A.default.createElement("svg",{className:"bg-svg",width:"74",height:"121",viewBox:"0 0 74 121",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A.default.createElement("path",{d:"M58.5713 53.428C40.6466 70.0213 12.9929 71.0875 -7.00506 84.9856C-24.9277 97.4005 -38.3893 120.472 -60.213 120.346C-73.3615 120.271 -84.9289 110.925 -91.9303 99.8138C-101.443 84.7327 -103.994 64.0482 -93.916 49.3276C-81.8133 31.6505 -56.6933 28.1101 -41.7246 12.7895C-35.4351 6.35117 -31.2212 -1.90115 -24.8564 -8.25051C-7.17639 -25.9054 34.9604 -29.7543 56.852 -16.9562C80.9056 -2.89888 77.046 36.3304 58.5713 53.428Z",strokeWidth:"0"})),A.default.createElement("img",{src:a.CommonGAssets.getAssetPath("navMBCardDotBg.svg"),className:"dot-svg",loading:"lazy",alt:""}),A.default.createElement(i.StyledContentWrapper$2,null,A.default.createElement("div",{className:"mobile-only"},d()),A.default.createElement("div",{className:"desktop-only"},u())),A.default.createElement("div",{className:"mobile-only"},u()),A.default.createElement("div",{className:"desktop-only"},d()))},ut=({hrefViewMore:e,spotlightHealthTools:l=[]})=>{const{t:n}=m.useTranslations(),o=["pink","orange","green"],{siteType:r}=t.useContext(i.NavigationContext);return A.default.createElement(at,{title:n("home.navigator.menu.spotlightTools")},0!==l.length&&A.default.createElement(i.StyledContainerItems$3,null,null==l?void 0:l.slice(0,3).map(((e,t)=>"marryBaby"===r?A.default.createElement(dt,{key:t,index:t,item:e,color:o[t]}):A.default.createElement(st,{key:t,index:t,item:e})))),0===l.length&&A.default.createElement(lt,{title:n("home.navigator.menu.healthTools.noDatas.title"),description:n("home.navigator.menu.healthTools.noDatas.description"),link:e,cta:n("home.navigator.menu.healthTools.noDatas.cta"),icon:a.CommonGAssets.getAssetPath("community.svg")}))},ct=({closePopup:e,menuItems:l=[]})=>{var a,n;const{siteType:o,ssrMenuContent:{categories:s,healthTools:d,care:u,together:c},activeMenuService:h,configs:{statics:f,enableSearchBar:g},locale:p}=t.useContext(i.NavigationContext),{t:v}=m.useTranslations();return A.default.createElement(i.StyledMasterMenuContainer,{id:"categories-menu"},g?A.default.createElement(i.StyledServiceListMenuSearchInputWrapper,{"data-theme":o,onClick:()=>{window.location.href=`${f.HOME_PAGE_URL}/search`}},A.default.createElement(Xe,null)):null,A.default.createElement(i.StyledWrapper,null,A.default.createElement(et,{UrlFE:f.HOME_PAGE_URL,titleBtnViewMore:v("home.navigator.menuItem.allCategories"),menuItems:l,headingTitle:v("home.navigator.menuItem.healthCategories"),onClosePopup:e}),"categories"===h&&A.default.createElement(ot,{spotlightsList:(null==s?void 0:s.spotlights)||[],hrefViewMore:`${f.HOME_PAGE_URL}${"tl-PH"===p?"/fil":""}/spotlight/`}),"tools"===h&&A.default.createElement(ut,{spotlightHealthTools:null==d?void 0:d.spotlights,hrefViewMore:`${f.HOME_PAGE_URL}${"tl-PH"===p?"/fil":""}${(null===(a=r.STATIC_PAGES[p])||void 0===a?void 0:a.HEALTH_TOOLS)||""}`}),"care"===h&&A.default.createElement(nt,{spotlights:null==u?void 0:u.spotlights,hrefViewMore:`${f.CARE_URL_FE}/${null===(n=w.LOCALIZED_SLUGS[p])||void 0===n?void 0:n.SPECIALTIES}`}),"together"===h&&A.default.createElement(rt,{spotlights:null==c?void 0:c.spotlights})))},mt=({type:e="home",menuItems:l})=>{const{siteType:a,configs:{enableSearchBar:n}}=t.useContext(i.NavigationContext),{containerRef:o,onContainerFocus:r,onContainerBlur:s,onButtonMouseDown:d,onClose:u}=ie();return A.default.createElement(ne,{mediaQueryKey:"mbDown"},A.default.createElement("header",{className:We},A.default.createElement("div",{className:Ke,ref:o,role:"button",tabIndex:0,onBlur:s,onFocus:r},A.default.createElement("div",{className:Qe,onMouseDown:d,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":"Hamburger Navigation URL"},A.default.createElement(Ye,{className:"mobile-close-icon"}),A.default.createElement(Je,{siteType:a,type:e,enableSearch:n,className:"mobile-hamburger-icon"})),A.default.createElement(ct,{menuItems:l,closePopup:u}))))};var ht="-XmTq5-",ft="V-oxu20";const gt=({item:e,menu:t})=>{const{containerRef:l,onContainerFocus:a,onContainerBlur:n,onButtonMouseDown:i,onClose:o}=ie({allowBgScroll:!0}),r=k.useIsInit();return!e.popupType&&e.link?A.default.createElement("a",{className:"hhgcomp-navigation-itemnav-headeritem "+(r?"":`menu-handler-${e.id}`),tabIndex:0,href:e.link,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},A.default.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,className:ft},e.name)):A.default.createElement("div",{ref:l,className:"hhgcomp-navigation-itemnav-headeritem "+(r?"":`menu-handler-${e.id}`),tabIndex:0,key:e.id,onBlur:n,onFocus:a,"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link},A.default.createElement("div",{"data-event-category":"Hamburger Navigation","data-event-action":"Click","data-event-label":e.link,onMouseDown:i,className:ft},e.name,e.popupType&&A.default.createElement("div",{className:ht},A.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A.default.createElement("path",{d:"M11.5 7.5L9 10L6.5 7.5",stroke:"#202135",strokeWidth:"1.33",strokeLinecap:"round",strokeLinejoin:"round"})))),A.default.isValidElement(t)?A.default.cloneElement(t,{onClose:o}):null)};var pt="eJS8-if",vt="EuQrB-3",Et="_0JtBh8L";const yt=({onClosePopup:e})=>A.default.createElement("div",{className:`${Et} close-btn`,onClick:e},A.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A.default.createElement("path",{d:"M18 6L6 18M18 18L6 6",stroke:"#3E3F58",strokeWidth:"1.3",strokeLinecap:"round"}))),Ct=({onClosePopup:e,isDisplay:t,children:l,isNavMenu:a,hideCloseBtn:n})=>A.default.createElement("div",{className:"hhgcomp-navigation-popupwrapper-menuwrapper top-menu-health-tools","data-is-display":!!t,"data-is-nav-menu":!!a},A.default.createElement(C.Container,null,!n&&A.default.createElement("div",{className:vt},A.default.createElement(yt,{onClosePopup:e})),A.default.createElement(C.Container,{className:pt},l))),wt=({careSpecialties:e=[],isOpen:l,onClose:a,spotlights:n=[]})=>{var o;const{t:r}=m.useTranslations(),{locale:s,configs:{statics:d}}=t.useContext(i.NavigationContext),u=`${d.CARE_URL_FE}/${null===(o=w.LOCALIZED_SLUGS[s])||void 0===o?void 0:o.SPECIALTIES}`;return A.default.createElement(Ct,{onClosePopup:a,isDisplay:l,isNavMenu:!0},A.default.createElement(et,{headingTitle:r("home.navigator.menuItem.specialties"),hrefViewMore:u,UrlFE:d.CARE_URL_FE,onClosePopup:a,titleBtnViewMore:r("home.navigator.menuItem.allSpecialties"),menuItems:(null==e?void 0:e.map((e=>e?{name:String(e.name)||"",link:Ue({type:"DOCTOR",specialtySlug:e.slug,locale:s}),thumbnail:(null==e?void 0:e.thumbnail)||""}:{})))||[]}),A.default.createElement(nt,{spotlights:n,hrefViewMore:u}))},Lt=({categories:e=[],spotlightsList:l=[],onClose:a,isOpen:n})=>{const{t:o}=m.useTranslations(),{locale:r,configs:{statics:s}}=t.useContext(i.NavigationContext);return A.default.createElement(Ct,{onClosePopup:a,isDisplay:n,isNavMenu:!0},A.default.createElement(et,{hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===r?"/fil":""}/categories/`,UrlFE:s.HOME_PAGE_URL,onClosePopup:a,titleBtnViewMore:o("home.navigator.menuItem.allCategories"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.displayName||null,link:(null==e?void 0:e.permalink)||"/",thumbnail:e.iconUrl||null}:{})))||[],headingTitle:o("home.navigator.menuItem.healthCategories")}),A.default.createElement(ot,{spotlightsList:l,hrefViewMore:`${s.HOME_PAGE_URL}${"tl-PH"===r?"/fil":""}/spotlight/`}))},bt=({communities:e=[],onClose:l,isOpen:a,spotlights:n=[]})=>{const{t:o}=m.useTranslations(),{configs:{statics:r}}=t.useContext(i.NavigationContext);return A.default.createElement(Ct,{onClosePopup:l,isDisplay:a,isNavMenu:!0},A.default.createElement(et,{hrefViewMore:s.normalizeLink(r.TOGETHER_URL_FE),UrlFE:s.normalizeLinkSlash(r.TOGETHER_URL_FE),onClosePopup:l,titleBtnViewMore:o("home.navigator.menuItem.allCommunities"),menuItems:(null==e?void 0:e.map((e=>e?{name:e.name||"",link:e.slug||"/",thumbnail:e.thumbnail||""}:{})))||[],headingTitle:o("home.navigator.menuItem.allCommunitiesheadingTitle")}),A.default.createElement(rt,{spotlights:n}))},kt=({locale:e,onClose:l,isOpen:a,spotlightHealthTools:n=[],healthTools:o=[]})=>{var s;const{t:d}=m.useTranslations(),{configs:{statics:u}}=t.useContext(i.NavigationContext),c=`${u.HOME_PAGE_URL}${"tl-PH"===e?"/fil":""}${(null===(s=r.STATIC_PAGES[e])||void 0===s?void 0:s.HEALTH_TOOLS)||""}`;return A.default.createElement(Ct,{onClosePopup:l,isDisplay:a,isNavMenu:!0},A.default.createElement(et,{hrefViewMore:c,UrlFE:u.HOME_PAGE_URL,onClosePopup:l,headingTitle:d("home.navigator.menuItem.healthToolsList"),titleBtnViewMore:d("home.navigator.menuItem.allHealthTools"),menuItems:o.map((e=>({name:e.title,link:e.link?e.link.startsWith("http")?e.link:`${u.HOME_PAGE_URL}${e.link}`:void 0,thumbnail:e.icon})))}),A.default.createElement(ut,{spotlightHealthTools:n,hrefViewMore:c}))},St=({onTopBarAppears:e,type:l="home",languageMenu:n,menuItems:o})=>{var d;const{siteType:u,isMobile:h=!1,locale:f,sitewideBanner:g,sitewideBannerShown:p=!0,sponsorComponent:v,onBookingClick:E,currentUrl:y,onLoginClick:C,configs:{statics:w,enableNavCareBooking:L,enableSearchBar:b,enableNavCare:k,enableProfileMyHealth:S,enableNavTogether:M,enableProfileEcom:x,enableProfileNavigatorMenu:N},userState:{userInfo:H},onLogout:T,userProfileRouterPush:_,isUserLoading:B}=t.useContext(i.NavigationContext),{t:R}=m.useTranslations(),{SSO_URL:O,HOME_PAGE_URL:I}=w,U=!!v,[$,G]=t.useState(!1),j=t.useRef(47),Z=t.useRef(null),D=t.useRef(!1),V="helloSites"===u?null===(d=r.LOCALE_SPECS[f])||void 0===d?void 0:d.LOGO_TYPE:u,F="undefined"!=typeof window,z=t.useCallback(P.default((()=>{if("home"===l&&F){if(!Z.current)return;const e=Z.current.getBoundingClientRect();e.top<=0&&window.scrollY>j.current&&window.scrollY>e.height+20&&!D.current&&(D.current=!0,G(!0)),window.scrollY<j.current&&D.current&&(D.current=!1,G(!1)),window.scrollY>=0&&(j.current=window.scrollY)}}),200),[]);t.useEffect((()=>{null==e||e(!$)}),[$]),t.useEffect((()=>(window.addEventListener("scroll",z,{passive:!0}),()=>{window.removeEventListener("scroll",z)})),[]),t.useEffect((()=>{h&&z()}),[h]);const q=p&&!!g;return A.default.createElement(i.StyledHeaderWrapper,{"data-site-type":u,"data-sponsored":U,"data-sitewide-banner-shown":q,"data-header-type":l,"data-collapsed":$,"data-with-search-input":"popup-sub-level"!==l,"data-is-displayed":!0,id:"site-header",ref:Z},g,A.default.createElement(i.StyledHeader,{"data-site-type":u},A.default.createElement(i.StyledLeftGroup,{"data-site-type":u},A.default.createElement(mt,{menuItems:o,type:l}),A.default.createElement("a",{href:I},A.default.createElement(i.StyledLogoWrapper,null,A.default.createElement(c.Logo,{style:{display:"flex"},type:V,badge:"id-ID"===f&&A.default.createElement("img",{src:a.CommonGAssets.getAssetPath("sehat-badge.png"),width:"56",height:"23"}),dateForSeasonal:new Date,locale:f,key:"undefined"!=typeof window?"client":"server"}))),"marryBaby"===u?A.default.createElement(At,{menuItems:o}):b&&A.default.createElement(Mt,{siteType:u})),A.default.createElement(i.StyledRightGroup,{"data-site-type":u},"marryBaby"===u?b&&A.default.createElement(Mt,{siteType:u}):A.default.createElement(At,{menuItems:o}),A.default.createElement(i.StyledProfileNavGroup,null,L&&A.default.createElement(ne,{mediaQueryKey:"mbUp"},A.default.createElement(qe,{careUrlFe:w.CARE_URL_FE,currentUrl:y,btnName:R("login.booking"),onCareHeaderClick:E})),n,A.default.createElement(Ve,{userInfo:H,siteType:u,onLoginClick:C||(()=>{const e=window.location.href;window.location.href=O?s.normalizeLinkSlash(`${O}?returnUrl=${e}`):e}),SSO_URL:s.normalizeLink(w.SSO_URL),currentUrl:y,onLogout:T,UP_BASEPATH:r.UP_BASEPATH,isMyHealthEnabled:S,enableCare:k,enableTogether:M,enableEcom:x,togetherApiDomain:s.normalizeLink(w.TOGETHER_API),isUserProfileNavigatorMenuHidden:!N,userProfileRouterPush:_,isLoading:B,locale:f})))),v?A.default.isValidElement(v)?A.default.cloneElement(v,{isCollapsed:$,locale:f,isMobile:h}):v:null)},Mt=({siteType:e})=>A.default.createElement(ne,{mediaQueryKey:"mbUp",className:"marryBaby"===e?"marry-baby":""},A.default.createElement(Xe,null)),At=({menuItems:e})=>{const{siteType:l,locale:a,ssrMenuContent:{categories:n,healthTools:o,care:r,together:s}}=t.useContext(i.NavigationContext);return A.default.createElement(ne,{mediaQueryKey:"mbUp",style:{height:"100%"}},A.default.createElement(i.StyledWrapMenuItems,{"data-site-type":l},null==e?void 0:e.map(((e,t)=>A.default.createElement(gt,{key:t,item:e,menu:"categories"===e.popupType?A.default.createElement(Lt,{categories:null==n?void 0:n.items,spotlightsList:null==n?void 0:n.spotlights}):"tools"===e.popupType?A.default.createElement(kt,{locale:a,healthTools:null==o?void 0:o.items,spotlightHealthTools:null==o?void 0:o.spotlights}):"together"===e.popupType?A.default.createElement(bt,{communities:null==s?void 0:s.items,spotlights:null==s?void 0:s.spotlights}):"care"===e.popupType?A.default.createElement(wt,{careSpecialties:null==r?void 0:r.items,spotlights:null==r?void 0:r.spotlights}):null})))))},Pt=e=>{var l,n;const{isMobile:o,locale:d,onTopBarAppears:u,languageOptions:c,sponsorComponent:h,sitewideBanner:f,sitewideBannerShown:g,className:p}=e,v=(()=>{const{t:e}=m.useTranslations(),{siteType:l,locale:n,configs:{enableNavCare:o,enableNavTogether:d,enableNavEcom:u,statics:c}}=t.useContext(i.NavigationContext),h="marryBaby"===l;return t.useMemo((()=>{var t;const l=[{name:e("home.navigator.menuItem.discover"),id:"categories",link:`${c.HOME_PAGE_URL}${"tl-PH"===n?"/fil":""}/categories`,niceName:"",thumbnail:h?a.CommonGAssets.getAssetPath("categories-mb.svg"):a.CommonGAssets.getAssetPath("discover.png"),popupType:"categories"},{name:e("home.navigator.menuItem.healthTools"),id:"tools",link:`${c.HOME_PAGE_URL}${"tl-PH"===n?"/fil":""}${(null===(t=r.STATIC_PAGES[n])||void 0===t?void 0:t.HEALTH_TOOLS)||""}`,thumbnail:h?a.CommonGAssets.getAssetPath("healthtools-mb.svg"):a.CommonGAssets.getAssetPath("healthTools.png"),popupType:"tools"}];return o&&l.push({name:e("home.navigator.menuItem.helloCare"),id:"care",link:s.normalizeLinkSlash(c.HOME_PAGE_URL+"/care"),thumbnail:a.CommonGAssets.getAssetPath("helloCare-thumbnail.png"),popupType:"zh-TW"===n?null:"care"}),d&&l.push({name:e("home.navigator.menuItem.helloTogether"),id:"together",link:s.normalizeLinkSlash(c.TOGETHER_URL_FE+"/"),thumbnail:h?a.CommonGAssets.getAssetPath("community-mb.svg"):a.CommonGAssets.getAssetPath("together.png"),popupType:"together"}),u&&l.push({name:e("home.navigator.menuItem.helloEcom"),id:"ecom",link:s.normalizeLinkSlash(c.HOME_PAGE_URL+"/ecom"),thumbnail:a.CommonGAssets.getAssetPath("helloCare-thumbnail.png"),popupType:"shop"}),l}),[n,o,d,u])})();(()=>{const{isFirstLogin:e,userState:l}=t.useContext(i.NavigationContext),{userInfo:a}=l;t.useEffect((()=>{(null==a?void 0:a.id)&&(e?(null==a?void 0:a.email)&&""!==(null==a?void 0:a.email)?window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,email:null==a?void 0:a.email,gdpr_optin:!0,email_optin:!0,sign_up:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,sign_up:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:(null==a?void 0:a.email)&&""!==(null==a?void 0:a.email)?window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,email:null==a?void 0:a.email,gdpr_optin:!0,email_optin:!0,log_in:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})}:window.insider_object={user:Object.assign({uuid:null==a?void 0:a.id,log_in:!0},(null==a?void 0:a.name)?{name:null==a?void 0:a.name}:{})})}),[])})();const E=g&&!!f,y=!!h,C=!!(null===(n=null===(l=null==h?void 0:h.props)||void 0===l?void 0:l.sponsoredBy)||void 0===n?void 0:n.length),{headerRef:w,defaultHeaderHeight:L,headerHeight:b,headerBottom:k}=(({hasSponsoredBanners:e,isSponsored:l,isShowingSiteWideBanner:a,isMobile:n})=>{const i=t.useRef(null),[o,r]=t.useState(0),[s,d]=t.useState(64),u=t.useCallback(N.default((()=>{var e,t,l,a;const n=(null===(e=i.current)||void 0===e?void 0:e.clientHeight)||(null===(l=null===(t=i.current)||void 0===t?void 0:t.children[0])||void 0===l?void 0:l.clientHeight)||0;window.scrollY<=n+200&&(r(n),d((null===(a=i.current)||void 0===a?void 0:a.getBoundingClientRect().bottom)||o))}),200),[]);t.useEffect((()=>(window.addEventListener("resize",u,{passive:!0}),window.addEventListener("scroll",u,{passive:!0}),u(),()=>{window.removeEventListener("resize",u),window.removeEventListener("scroll",u)})),[]),t.useEffect((()=>{u()}),[n,a,l,e,i.current]);const c=t.useMemo((()=>{let t=n?64:69;return a&&(t+=64),l&&(t+=40,e&&(t+=57)),t}),[n,a,e,l]);return{defaultHeaderHeight:c,headerHeight:o||c,headerBottom:s,headerRef:i}})({isShowingSiteWideBanner:E,isSponsored:y,hasSponsoredBanners:C,isMobile:o});return A.default.createElement(i.StyledContainer,{id:"navigation-v2",style:{"--default-header-height":L+"px","--header-height":`calc(${b}px - var(--amp-site-wide-closed), 64px)`,"--header-bottom":k+"px"},className:p},A.default.createElement("section",{ref:w},A.default.createElement(St,{menuItems:v,type:"home",onTopBarAppears:u,languageMenu:A.default.createElement(le,{languageOptions:c,locale:d})})))},xt=t=>e.__awaiter(void 0,void 0,void 0,(function*(){var e,l,a,n,i,o,c,m,h,f,g,p,v,E,y,C,w,L,b,k,S;const M={},A="vi-VN_MB"===t;try{const P="tl-PH"===t?"lang=fil":"";try{const[r,u,g,p]=yield Promise.all([fetch(s.normalizeLinkSlash(`${d.getDiscoverApiDomain(t)}/wp-json/api/categories${P?"?"+P:""}`)).then((e=>e.json())),fetch(s.normalizeLinkSlash(`${d.getDiscoverApiDomain(t)}/wp-json/api/spotlights?per_page=10${P?"&"+P:""}`)).then((e=>e.json())),fetch(s.normalizeLinkSlash(`${d.getDiscoverApiDomain(t)}/wp-json/api/${A?"health-tools":"healthtools"}${P?"?"+P:""}`)).then((e=>e.json())),fetch(s.normalizeLinkSlash(`${d.getDiscoverApiDomain(t)}/wp-json/api/${A?"health-tools":"healthtools"}/favorites${P?"?"+P:""}`)).then((e=>e.json()))]);M.categories={items:(null===(l=null===(e=null==r?void 0:r.data)||void 0===e?void 0:e.map)||void 0===l?void 0:l.call(e,Be))||[],spotlights:(null===(o=null===(i=null===(n=null===(a=null==u?void 0:u.data)||void 0===a?void 0:a.articles)||void 0===n?void 0:n.map)||void 0===i?void 0:i.call(n,$e))||void 0===o?void 0:o.filter(Ge))||[]},M.healthTools={items:(null===(m=null===(c=null==g?void 0:g.data)||void 0===c?void 0:c.map)||void 0===m?void 0:m.call(c,Re))||[],spotlights:(null===(f=null===(h=null==p?void 0:p.data)||void 0===h?void 0:h.map)||void 0===f?void 0:f.call(h,Re))||[]}}catch(e){}if(A||r.TOGETHER_LOCALES.includes(t))try{const[e,l]=yield Promise.all([fetch(s.normalizeLinkSlash(`${d.getTogetherApiDomain()}/api/v1/community?website_url=https://${r.domainLocales[t]}`)).then((e=>e.json())),fetch(s.normalizeLinkSlash(`${d.getTogetherApiDomain()}/api/v1/options?website_url=https://${r.domainLocales[t]}&meta_key=popular_post`)).then((e=>e.json()))]);M.together={items:(null===(v=null===(p=null===(g=null==e?void 0:e.data)||void 0===g?void 0:g.communities)||void 0===p?void 0:p.map)||void 0===v?void 0:v.call(p,u.formatCommunity))||[],spotlights:(null===(C=null===(y=null===(E=null==l?void 0:l.data)||void 0===E?void 0:E.posts)||void 0===y?void 0:y.map)||void 0===C?void 0:C.call(y,u.formatPost))||[]}}catch(e){}if(r.CARE_LOCALES.includes(t))try{const[e,l]=yield Promise.all([fetch(s.normalizeLinkSlash(d.getCareApiDomain()+`/api/specialties?_ishome=1&site=${r.domainLocales[t]}`)).then((e=>e.json())),fetch(s.normalizeLinkSlash(d.getCareApiDomain()+`/api/search/?site=${r.domainLocales[t]}&type=hospital&order_by=total_doctor`)).then((e=>e.json()))]);M.care={items:(null===(b=null===(L=null===(w=null==e?void 0:e._data)||void 0===w?void 0:w.specialties)||void 0===L?void 0:L.map)||void 0===b?void 0:b.call(L,Oe))||[],spotlights:(null===(S=null===(k=null==l?void 0:l._data.searches)||void 0===k?void 0:k.map)||void 0===S?void 0:S.call(k,Ie))||[]}}catch(e){}}catch(e){console.error(e)}return M}));exports.Avatar=T,exports.Flag=ee,exports.LanguageSwitcher=le,exports.NavHeader=he,exports.NavigationLogoutPopup=De,exports.NavigationProfileButton=Ve,exports.NavigationV2=e=>{const t=Object.assign({siteType:"helloSites",projectType:"discover",locale:"vi-VN",activeMenuService:"categories",ssrMenuContent:{}},e);return A.default.createElement(i.NavigationProvider,Object.assign({},t),A.default.createElement(Pt,Object.assign({},t)))},exports.ProfilePopup=Ze,exports.UserProfileNavigation=je,exports.UserStats=_e,exports.getNavMenuContent=xt,exports.getNavMenuContentWithCache=t=>e.__awaiter(void 0,void 0,void 0,(function*(){return(yield l.getDataWithCache("nav-menu-content",(()=>xt(t||"en-PH")),(e=>{var t,l;return!!(null===(l=null===(t=null==e?void 0:e.categories)||void 0===t?void 0:t.items)||void 0===l?void 0:l.length)})))||{}}));
|
package/build/index-87604a48.js
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-d2b93cc7.js"),t=require("react"),r=require("@mantine/core"),a=require("./gAssets.js"),n=require("@emotion/react"),l=require("@emotion/styled"),o=require("@mantine/dates"),i=require("dayjs");require("./screenSizeContext-7024419e.js");var s=require("./theme-54f4dde4.js"),c=require("./index-cfb03666.js"),d=require("./utils-d555597e.js");require("./isProduction-0fdd7dfe.js");var m=require("./Onboarding-5cc2a17c.js");require("./translationsContext-06f43813.js"),require("string-format");var h=require("@mantine/hooks"),u=require("@mantine/carousel");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function f(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}require("./index-d8e712d6.js");var g=p(t),v=f(t),E=p(l),b=p(i);const z=E.default(o.DatePicker)`
|
|
2
|
-
position: relative;
|
|
3
|
-
${e=>e.fullWidth&&n.css`
|
|
4
|
-
.mantine-DatePicker-dropdown {
|
|
5
|
-
min-width: 100%;
|
|
6
|
-
display: flex;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
align-items: center;
|
|
9
|
-
}
|
|
10
|
-
`}
|
|
11
|
-
`,x=E.default(o.DateRangePicker)`
|
|
12
|
-
position: relative;
|
|
13
|
-
${e=>e.fullWidth&&n.css`
|
|
14
|
-
.mantine-DateRangePicker-dropdown {
|
|
15
|
-
min-width: 100%;
|
|
16
|
-
display: flex;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
align-items: center;
|
|
19
|
-
}
|
|
20
|
-
`}
|
|
21
|
-
`,C=e=>g.default.createElement(z,Object.assign({size:"md",clearable:!1,fullWidth:!0,styles:{rightSection:{pointerEvents:"none",cursor:"default"}},rightSection:g.default.createElement(r.Image,{src:a.CommonGAssets.getAssetPath(e.isMB?"MB-calendar.svg":"OutlineCalendar.svg"),width:16,height:16})},e,{className:`input-control ${(null==e?void 0:e.className)||""}`}));C.Range=e=>g.default.createElement(x,Object.assign({size:"md",clearable:!1,fullWidth:!0,styles:{rightSection:{pointerEvents:"none",cursor:"default"}},rightSection:g.default.createElement(r.Image,{src:a.CommonGAssets.getAssetPath("OutlineCalendar.svg"),width:16,height:16})},e));const y=t=>{var{children:r}=t,a=e.__rest(t,["children"]);return g.default.createElement(Se,Object.assign({size:"p4"},a),r)},w=t=>{var{children:a,showHomeIcon:n=!0}=t,l=e.__rest(t,["children","showHomeIcon"]);return g.default.createElement(r.ScrollArea,Object.assign({offsetScrollbars:!0,scrollbarSize:4},l),g.default.createElement(r.Flex,{gap:12,align:"center"},n&&g.default.createElement(y,{href:"/",target:"_blank",className:"pointer-event-child-none"},g.default.createElement(r.Box,{sx:{borderRadius:"50%",display:"flex",justifyContent:"center",alignItems:"center"},bg:oe.neutral[0],p:4},g.default.createElement(S,{ratio:1,w:20},g.default.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.87435 6.22054L9.54102 1.80322C9.81771 1.62093 10.1823 1.62093 10.459 1.80322L17.1257 6.22054C17.36 6.37679 17.5 6.63721 17.5 6.91716V15.8332C17.5 16.7544 16.7546 17.4998 15.8333 17.4998H4.16667C3.24544 17.4998 2.5 16.7544 2.5 15.8332V6.91716C2.5 6.63721 2.63997 6.37679 2.87435 6.22054ZM6.113 13.0668C5.74633 12.7896 5.74795 12.2577 6.07245 11.9321C6.3975 11.606 6.94373 11.5878 7.33178 11.8356C7.97576 12.2468 9.02795 12.7653 10.2403 12.7653C11.4527 12.7652 12.5048 12.2468 13.1488 11.8356C13.5368 11.5878 14.0831 11.606 14.4081 11.9321C14.7326 12.2577 14.7342 12.7896 14.3676 13.0668C13.1936 13.9542 11.7055 14.4319 10.2403 14.4319C8.77508 14.4319 7.28693 13.9542 6.113 13.0668Z",fill:"#595959"}))))),g.default.createElement(r.Divider,{color:"neutral.1",orientation:"vertical"}),g.default.createElement(r.Breadcrumbs,{separator:g.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g.default.createElement("path",{d:"M8.71527 7.99969L6.16794 5.45236C5.89194 5.17636 5.89194 4.72836 6.16794 4.45236C6.44394 4.17636 6.89194 4.17636 7.16794 4.45236L10.2439 7.52836C10.5046 7.78903 10.5046 8.21103 10.2439 8.47103L7.16794 11.547C6.89194 11.823 6.44394 11.823 6.16794 11.547C5.89194 11.271 5.89194 10.823 6.16794 10.547L8.71527 7.99969Z",fill:"#8C8C8C"}))},a)))};w.Item=y;const j=Object.assign({},{fontSize:{base:[16,16],lg:[18,16],md:[18,16],sm:[16,14],xs:[14,12],s1:[22,18],s2:[18,16],s3:[16,14],s4:[14,12],s5:[12,12],p1:[18,16],p2:[16,16],p3:[16,14],p4:[14,12],c1:[16,14],c2:[14,12],n1:[12,12],label1:[14,14],label2:[12,12]},lineHeight:{base:[24,24],lg:[32,28],md:[32,28],sm:[24,22],xs:[24,18],s1:[32,26],s2:[28,24],s3:[24,24],s4:[22,18],s5:[18,18],p1:[28,28],p2:[24,24],p3:[24,22],p4:[22,18],c1:[24,22],c2:[22,18],n1:[18,18],label1:[22,22],label2:[18,18]},letterSpacing:{lg:[-.2,0],md:[-.2,0],sm:[0,-.2],s1:[-.6,-.6],s2:[-.4,-.2],s3:[0,-.2],s4:[0,-.2],p1:[-.2,-.2],p2:[0,-.2],p3:[0,-.2],p4:[-.2,0],label1:[0,-.2]},fontWeight:{regular:400,semiBold:600,bold:700}});var M=r.createStyles(((e,t)=>{var r,a,n,l,o,i,s,c,d,m;const h=null===(r=j.fontSize[null==t?void 0:t.size])||void 0===r?void 0:r[0],u=null===(a=j.lineHeight[null==t?void 0:t.size])||void 0===a?void 0:a[0],p=null!==(o=null===(l=null===(n=j.letterSpacing)||void 0===n?void 0:n[null==t?void 0:t.size])||void 0===l?void 0:l[0])&&void 0!==o?o:0,f=null===(i=j.fontSize[null==t?void 0:t.size])||void 0===i?void 0:i[1],g=null===(s=j.lineHeight[null==t?void 0:t.size])||void 0===s?void 0:s[1],v=null!==(m=null===(d=null===(c=j.letterSpacing)||void 0===c?void 0:c[null==t?void 0:t.size])||void 0===d?void 0:d[1])&&void 0!==m?m:0;return{root:Object.assign(Object.assign({},(null==t?void 0:t.size)&&{fontWeight:j.fontWeight[t.weight],fontSize:`${h}px`,lineHeight:`${u}px`,letterSpacing:p,[e.fn.smallerThan("sm")]:{fontSize:`${f}px`,lineHeight:`${g}px`,letterSpacing:v}}),{"&[data-event-category] > *":{pointerEvents:"none"}})}}));const O=t=>{var{size:a,color:n=s.theme.colors.gray800,weight:l="regular",as:o="p",styles:i,className:c,dataEventCategory:d,dataEventAction:m,dataEventLabel:h}=t,u=e.__rest(t,["size","color","weight","as","styles","className","dataEventCategory","dataEventAction","dataEventLabel"]);const{classes:p,cx:f}=M({size:a,weight:l},{name:"Text",styles:i});return g.default.createElement(r.Text,Object.assign({className:f(p.root,c),color:n,component:o,"data-event-category":d,"data-event-action":m,"data-event-label":h},u))},k="100ms",H={"&:hover":{border:`1px solid ${s.theme.colors.primaryBase}`}};var A=r.createStyles(((e,t)=>{const{size:r,variant:a,skipHover:n,isError:l,color:o}=t;return{rootCustom:Object.assign(Object.assign(Object.assign(Object.assign({transition:`all ${k} ease-in-out`,"&[data-event-category] > *":{pointerEvents:"none"}},(()=>{switch(r){case"lg":return{height:48,fontWeight:600,fontSize:"16px",lineHeight:"24px"};case"md":return{height:40,fontWeight:600,fontSize:"14px",lineHeight:"22px"};case"sm":return{height:32,fontWeight:600,fontSize:"14px",lineHeight:"22px"}}})()),(()=>{var t,r;switch(a){case"primary":return Object.assign({color:e.white,backgroundColor:e.fn.primaryColor()},!n&&{"&:hover":{backgroundColor:e.colors[e.primaryColor][7]}});case"secondary":return Object.assign({color:e.fn.primaryColor(),backgroundColor:e.white,border:`1px solid ${e.fn.primaryColor()}`},!n&&{"&:hover":{backgroundColor:e.colors[e.primaryColor][0],border:`1px solid ${e.fn.primaryColor()}`}});case"tertiary":return{color:s.theme.colors.gray800,backgroundColor:e.white,border:`1px solid ${s.theme.colors.neutral200}`,"&:hover":Object.assign({},n?{backgroundColor:e.white,border:`1px solid ${s.theme.colors.neutral200}`}:{backgroundColor:s.theme.colors.neutral50,border:`1px solid ${s.theme.colors.neutral50}`})};case"light":{const a=o||e.primaryColor;return{color:null===(r=null===(t=e.colors)||void 0===t?void 0:t[a])||void 0===r?void 0:r[Number(e.primaryShade)],backgroundColor:e.colors[a][0],border:"1px solid transparent","&:hover":Object.assign({},n?{backgroundColor:e.colors[a][0],border:"1px solid transparent"}:{backgroundColor:e.white,border:`1px solid ${e.colors[a][0]}`})}}case"ghost":return Object.assign({color:e.primaryColor,backgroundColor:"transparent",border:"1px solid transparent"},!n&&{"&:hover":{backgroundColor:e.colors[e.primaryColor][0],border:"1px solid transparent"}})}})()),{"&[data-disabled]":{backgroundColor:s.theme.colors.gray100,color:s.theme.colors.gray400}}),l?Object.assign({color:s.theme.colors.red600,backgroundColor:e.white,border:`1px solid ${s.theme.colors.red600}`},!n&&{"&:hover":{backgroundColor:s.theme.colors.red50,border:`1px solid ${s.theme.colors.red600}`}}):{})}}));const S=e=>g.default.createElement(r.AspectRatio,Object.assign({sx:{borderRadius:4,overflow:"hidden"}},e)),L=E.default(r.Textarea)`
|
|
22
|
-
.mantine-Textarea-input {
|
|
23
|
-
padding: 12px 16px;
|
|
24
|
-
background: #ffffff;
|
|
25
|
-
border: 1px solid ${s.theme.colors.gray200};
|
|
26
|
-
border-radius: 4px;
|
|
27
|
-
}
|
|
28
|
-
`,B=E.default(r.Modal)`
|
|
29
|
-
.mantine-Modal-modal {
|
|
30
|
-
padding: 0;
|
|
31
|
-
}
|
|
32
|
-
.mantine-Modal-header {
|
|
33
|
-
border-bottom: 1px solid ${s.theme.colors.neutral100};
|
|
34
|
-
margin-right: 0;
|
|
35
|
-
margin-bottom: 0;
|
|
36
|
-
padding: 16px;
|
|
37
|
-
}
|
|
38
|
-
.mantine-Modal-title {
|
|
39
|
-
width: 100%;
|
|
40
|
-
display: flex;
|
|
41
|
-
align-items: center;
|
|
42
|
-
justify-content: space-between;
|
|
43
|
-
margin-right: 0;
|
|
44
|
-
}
|
|
45
|
-
.mantine-Modal-close {
|
|
46
|
-
cursor: pointer;
|
|
47
|
-
width: 24px;
|
|
48
|
-
height: 24px;
|
|
49
|
-
}
|
|
50
|
-
`,P=E.default(r.Accordion)`
|
|
51
|
-
.mantine-Accordion-control {
|
|
52
|
-
&:hover {
|
|
53
|
-
background-color: transparent;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
.mantine-Accordion-item {
|
|
57
|
-
.mantine-Accordion-chevron {
|
|
58
|
-
> div {
|
|
59
|
-
background-repeat: no-repeat;
|
|
60
|
-
width: 16px;
|
|
61
|
-
height: 16px;
|
|
62
|
-
background-position: center;
|
|
63
|
-
background-image: url(${e=>e.closeChevron||a.CommonGAssets.getAssetPath("plus-icon.svg")});
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
&[data-active='true'] {
|
|
67
|
-
.mantine-Accordion-chevron {
|
|
68
|
-
> div {
|
|
69
|
-
background-image: url(${e=>e.openChevron||a.CommonGAssets.getAssetPath("minus-icon.svg")});
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
.mantine-Accordion-panel {
|
|
75
|
-
border-radius: ${e=>e.theme.borderRadius};
|
|
76
|
-
}
|
|
77
|
-
.mantine-Accordion-content {
|
|
78
|
-
white-space: pre-wrap;
|
|
79
|
-
}
|
|
80
|
-
`,I=t=>{var{children:r}=t,a=e.__rest(t,["children"]);return g.default.createElement(P,Object.assign({chevron:g.default.createElement("div",null),disableChevronRotation:!0,transitionDuration:300},a),r)};I.Control=r.Accordion.Control,I.Item=r.Accordion.Item,I.Panel=r.Accordion.Panel;const _=a.CommonGAssets.getAssetPath("avatar.jpg"),T=r.createEmotionCache({key:"mantine",prepend:!1}),D=a=>{var{value:n,onChange:l}=a,o=e.__rest(a,["value","onChange"]);const[i,s]=t.useState(n),[c]=h.useDebouncedValue(i,300);return t.useEffect((()=>{null==l||l(c)}),[c]),t.useEffect((()=>{s(n)}),[n]),g.default.createElement(r.NumberInput,Object.assign({size:"md",stepHoldDelay:500,stepHoldInterval:e=>Math.max(1e3/Math.pow(e,2),25),onChange:s,hideControls:!0,min:0,formatter:e=>0===Number(e)?e:e||"",removeTrailingZeros:!0,value:i},o))},$=a.CommonGAssets.getAssetPath("EyeVisible.svg"),N=a.CommonGAssets.getAssetPath("EyeHidden.svg"),R=t.forwardRef(((t,a)=>{const{size:n="md",visibilityToggleIcon:l}=t,o=e.__rest(t,["size","visibilityToggleIcon"]),i=l||(({reveal:e,size:t})=>e?g.default.createElement("img",{src:$,width:t}):g.default.createElement("img",{src:N,width:t}));return g.default.createElement(r.PasswordInput,Object.assign({ref:a,size:n,visibilityToggleIcon:i},o,{className:`input-control ${(null==o?void 0:o.className)||""}`}))})),F=t.forwardRef(((a,n)=>{var{value:l,onChange:o,onChangeRaw:i}=a,s=e.__rest(a,["value","onChange","onChangeRaw"]);const[c,d]=t.useState(l||""),[m]=h.useDebouncedValue(c,300);return t.useEffect((()=>{null==o||o(m)}),[m]),t.useEffect((()=>{d(l)}),[l]),g.default.createElement(r.TextInput,Object.assign({ref:n,size:"md",onChange:e=>{null==i||i(e),d(e.currentTarget.value)},value:c},s,{className:`input-control ${(null==s?void 0:s.className)||""}`}))}));F.File=e=>g.default.createElement(r.FileInput,Object.assign({size:"md"},e)),F.Password=R,F.Number=D,F.Wrapper=r.Input.Wrapper;class q extends t.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error("Uncaught error:",e,t)}render(){return this.state.hasError?this.props.fallback||g.default.createElement(g.default.Fragment,null):this.props.children}}const W=t=>{var{slidesToShow:r=1,children:a}=t,n=e.__rest(t,["slidesToShow","children"]);return(Array.isArray(a)?a.length:1)?g.default.createElement(q,null,g.default.createElement(u.Carousel,Object.assign({slideSize:String(Math.floor(1/r*100))+"%",containScroll:"trimSnaps"},n),a)):null};W.Slide=u.Carousel.Slide;const V=e=>g.default.createElement(r.Checkbox,Object.assign({},e));V.Group=r.Checkbox.Group;const G=E.default(r.Slider)`
|
|
81
|
-
${e=>{const t=e.color||e.theme.colors.primaryBase;return`\n .mantine-Slider-bar {\n background-color: ${t};\n }\n .mantine-Slider-thumb {\n border-color: ${t};\n color: ${t};\n }\n `}}
|
|
82
|
-
[data-theme='marryBaby'] & {
|
|
83
|
-
${e=>{const t=e.color||e.theme.mbColors.pink;return`\n .mantine-Slider-bar {\n background-color: ${t};\n }\n .mantine-Slider-thumb {\n border-color: ${t};\n color: ${t};\n }\n `}}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.mantine-Slider-label {
|
|
87
|
-
background-color: transparent;
|
|
88
|
-
color: #000;
|
|
89
|
-
font-size: 14px;
|
|
90
|
-
font-weight: bold;
|
|
91
|
-
}
|
|
92
|
-
`,K=E.default.div`
|
|
93
|
-
display: flex;
|
|
94
|
-
align-items: center;
|
|
95
|
-
.hhg-mantine-slider {
|
|
96
|
-
flex-grow: 1;
|
|
97
|
-
}
|
|
98
|
-
button {
|
|
99
|
-
path:not([stroke]) {
|
|
100
|
-
stroke: ${e=>e.theme.colors.primaryBase};
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
[data-theme='marryBaby'] & {
|
|
104
|
-
button {
|
|
105
|
-
path:not([stroke]) {
|
|
106
|
-
stroke: ${e=>e.theme.mbColors.pink};
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
`,U=t=>{var{styles:a}=t,n=e.__rest(t,["styles"]);return g.default.createElement(r.Radio,Object.assign({size:"sm"},n,{styles:e=>Object.assign(Object.assign({},a),{icon:{color:e.colors[e.primaryColor][e.primaryShade]}})}))};U.Group=r.Radio.Group;const Z={Button:{defaultProps:{size:"md"}}},X={Checkbox:{styles:{input:H}}},Y=[{size:40,lineHeight:"52px",letterSpacing:"-1.2px"},{size:32,lineHeight:"42px",letterSpacing:"-1px"},{size:26,lineHeight:"36px",letterSpacing:"-0.8px"},{size:22,lineHeight:"32px",letterSpacing:"-0.6px"},{size:18,lineHeight:"28px",letterSpacing:"-0.2px"},{size:16,lineHeight:"24px",letterSpacing:0}],Q=[{size:26,lineHeight:"34px",letterSpacing:"-0.9px"},{size:24,lineHeight:"32px",letterSpacing:"-0.8px"},{size:20,lineHeight:"26px",letterSpacing:"-0.7px"},{size:18,lineHeight:"26px",letterSpacing:"-0.6px"},{size:16,lineHeight:"24px",letterSpacing:"-0.2px"},{size:14,lineHeight:"22px",letterSpacing:"-0.2px"}],J=(e=!1)=>Object.fromEntries((e?Q:Y).map(((e,t)=>[`&:is(h${t+1})`,{fontSize:e.size,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing}]))),ee={Title:{styles:{root:Object.assign(Object.assign({fontWeight:j.fontWeight.bold},J()),{[`&${d.MediaQueries.mbDown}`]:Object.assign({},J(!0))})}}},te=e=>({InputWrapper:{styles:{label:{display:"inline-flex",gap:4,marginBottom:"0.25rem",fontWeight:600,fontSize:"14px",lineHeight:"22px",color:s.theme.colors.gray600},description:{fontWeight:400,fontSize:"12px",lineHeight:"18px",color:s.theme.colors.gray600,marginBottom:"0.25rem"},error:{marginTop:"0.25rem"}}},NumberInput:{defaultProps:{decimalSeparator:c.ISO_FORMAT[e].separator}},Input:{styles:(e,t)=>({input:{border:`1px solid ${s.theme.colors.gray200}`,transition:`all ${k} ease-in-out`,"&:not(.mantine-Textarea-input)":Object.assign({},(()=>{switch(t.size){case"lg":return{height:48,fontSize:16,minHeight:"unset",lineHeight:"24px"};case"md":return{height:40,fontSize:14,lineHeight:"22px",minHeight:"unset"};case"sm":return{height:32,fontSize:14,lineHeight:"22px",minHeight:"unset"}}})()),"&:hover":{border:`1px solid ${e.primaryColor}`},"&:focus":{boxShadow:`0px 0px 0px 2px ${e.colors[e.primaryColor][2]}`}},invalid:{border:`1px solid ${s.theme.colors.red600}`,color:"#000"}})}}),re={Radio:{styles:{radio:Object.assign(Object.assign({backgroundColor:"#ffffff"},H),{"&:checked":{backgroundColor:"#ffffff"}})}}},ae={Tabs:{styles:{tabsList:{gap:16,borderBottom:"none",flexWrap:"nowrap"},tab:{padding:0,paddingBottom:8,color:s.theme.colors.gray400,"&:hover":{backgroundColor:"initial",border:"initial"},"&[data-active='true']":{color:s.theme.colors.primaryBase,borderColor:s.theme.colors.primaryBase}}}}},ne={[m.LOCALE.Vietnam]:"vi",[m.LOCALE.Cambodia]:"km",[m.LOCALE.India]:"hi",[m.LOCALE.Indonesia]:"id",[m.LOCALE.Malaysia]:"ms",[m.LOCALE.Thailand]:"th",[m.LOCALE.Taiwan]:"zh-tw",[m.LOCALE.PhilippinesTagalog]:"tl-ph",[m.LOCALE.PhilippinesEnglish]:"en",[m.LOCALE.Myanmar]:"my"},le={[m.LOCALE.Vietnam]:()=>Promise.resolve().then((function(){return f(require("dayjs/locale/vi.js"))})),[m.LOCALE.Cambodia]:()=>Promise.resolve().then((function(){return f(require("dayjs/locale/km.js"))})),[m.LOCALE.India]:()=>Promise.resolve().then((function(){return f(require("dayjs/locale/hi.js"))})),[m.LOCALE.Indonesia]:()=>Promise.resolve().then((function(){return f(require("dayjs/locale/id.js"))})),[m.LOCALE.Malaysia]:()=>Promise.resolve().then((function(){return f(require("dayjs/locale/ms.js"))})),[m.LOCALE.Thailand]:()=>Promise.resolve().then((function(){return f(require("dayjs/locale/th.js"))})),[m.LOCALE.Taiwan]:()=>Promise.resolve().then((function(){return f(require("dayjs/locale/zh-tw.js"))})),[m.LOCALE.PhilippinesTagalog]:()=>Promise.resolve().then((function(){return f(require("dayjs/locale/tl-ph.js"))})),[m.LOCALE.PhilippinesEnglish]:()=>Promise.resolve().then((function(){return f(require("dayjs/locale/en.js"))})),[m.LOCALE.Myanmar]:()=>Promise.resolve().then((function(){return f(require("dayjs/locale/my.js"))}))},oe={hb:["#e3f2ff","#bcdeff","#91caff","#65b5ff","#45a4ff","#2b94ff","#2d87f3","#2c74df","#2b62cd","#2743ad"],mb:["#FFE9F1","#F8CCDC","#F5B4CB","#F29CBA","#EE84AA","#EB6B99","#E85388","#D34C7C","#BE446F","#A93D63"],blue:["#e3f2ff","#bcdeff","#91caff","#65b5ff","#45a4ff","#2b94ff","#2d87f3","#2c74df","#2b62cd","#2743ad"],gray:["#fafafa","#f2f2f2","#d9d9d9","#bfbfbf","#8c8c8c","#737373","#595959","#404040","#262626"],neutral:["#f8f9fc","#e4e8ec","#fafafa","#d2d6dc","#bfc5cc","#adb3bc","#9aa2ac","#87909c","#757f8c","#626d7c"],green:["#e0f8ee","#b3eed5","#7ce2b9","#2ed69e","#00CB8A","#00C076","#00B16A","#009E5C","#008C50","#006C39"],pink:["#fff1f6","#fec7dc","#fec7dc","#fec2cf","#fe9dc2","#fd87b4","#fd72a7","#fc5d9a","#fc488d","#E92D74"],violet:["#F5EDFF","#E7D2F7","#D8B7F0","#CA9CE8","#BB82E1","#AD67D9","#9E4CD1","#9031CA","#8116C2","#63059D"],yellow:["#fff8e2","#ffecb6","#ffe187","#ffd658","#ffc326","#fe921d","#ffb521","#fea21e","#fe921d","#fc7419"],teal:["#e0f7fc","#b1ebf8","#7ddff3","#44d1ec","#00c7e6","#00bee0","#00aecd","#0099b2","#008599","#00626c"],indigol:["#CEDDF0","#ACC5E6","#95B3DA","#85A6CF","#6D91BE","#5F85B5","#4C77AC","#35639C","#284A75","#1B3250"],redViolet:["#F3EAEB","#E8D5D7","#DDC1C4","#D1ACB0","#C5979C","#BA8288","#AF6D74","#A35961","#97444D","#8C2F39"]};var ie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function se(e){var t={exports:{}};return e(t,t.exports),t.exports
|
|
111
|
-
/*!
|
|
112
|
-
Copyright (c) 2018 Jed Watson.
|
|
113
|
-
Licensed under the MIT License (MIT), see
|
|
114
|
-
http://jedwatson.github.io/classnames
|
|
115
|
-
*/}var ce=se((function(e){!function(){var t={}.hasOwnProperty;function r(){for(var e=[],a=0;a<arguments.length;a++){var n=arguments[a];if(n){var l=typeof n;if("string"===l||"number"===l)e.push(n);else if(Array.isArray(n)){if(n.length){var o=r.apply(null,n);o&&e.push(o)}}else if("object"===l){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var i in n)t.call(n,i)&&n[i]&&e.push(i)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r}()}));function de(e,t=6){const r=new Array(t).fill("");if(e){const t=e.toString().split("");r.map(((e,a)=>{t[a]&&(r[a]=t[a]||"")}))}return r}function me(e){return e.join("")}var he="_2iQs0sk",ue="Ia6IojY";const pe=t.forwardRef(((t,r)=>{const{maxLength:a=1,placeholder:n,className:l}=t,o=e.__rest(t,["maxLength","placeholder","className"]);return g.default.createElement("input",Object.assign({maxLength:a,className:ce(ue,"otpInput",l),placeholder:n,type:"number"},o,{ref:r}))})),fe=t.forwardRef(((e,a)=>{const{valueLength:n=6,type:l="number",value:o,defaultValue:i,onChange:s,onBlur:c}=e,d=t.useRef(new Array(n).fill(null)),[m,h]=t.useState(i||o),[u,p]=t.useState(-1),[f,v]=t.useState((()=>de(m,n))),E=t.useCallback((()=>{if(-1===u)return;const e=d.current[u];if(e){e.value="";const t=f;t[u]="",v(t),h((()=>me(t))),null==s||s(me(t))}}),[u,s,f]),b=t.useCallback((()=>{if(0===u)return;const e=d.current[u];e&&e.blur();const t=d.current[u-1];t&&t.focus()}),[u]),z=t.useCallback((()=>{if(u===n-1)return;const e=d.current[u];e&&e.blur();const t=d.current[u+1];t&&t.focus()}),[u,n]),x=t.useCallback((e=>{const t=e.target,r=t.value.toString().slice(0,1),a=d.current.findIndex((e=>e===t));if(-1!==a){const e=f;e[a]=r,v(e),h((()=>me(e))),null==s||s(me(e))}z()}),[z,s,f]),C=t.useCallback((e=>{const t=e.target,r=d.current.findIndex((e=>e===t));"number"===l?t.select():t.setSelectionRange(0,t.value.length,"backward"),-1!==r&&p(r)}),[]),y=t.useCallback((e=>{const t=de(e.clipboardData.getData("text/plain"),n),r=me(t);v(t),h(r),null==s||s(r)}),[s,l,n]),w=t.useCallback((e=>{8===e.keyCode||"Backspace"===e.key?(e.preventDefault(),E(),b()):46===e.keyCode||"Delete"===e.key?(e.preventDefault(),E()):37===e.keyCode||"ArrowLeft"===e.key?(e.preventDefault(),b()):39===e.keyCode||"ArrowRight"===e.key?(e.preventDefault(),z()):32!==e.keyCode&&" "!==e.key&&"Spacebar"!==e.key&&"Space"!==e.key||e.preventDefault()}),[E,z,b]);return t.useImperativeHandle(a,(()=>d.current[0]),[]),t.useEffect((()=>{v((()=>de(o,n))),h(o)}),[n,o]),g.default.createElement(r.Flex,{justify:"center",columnGap:8,className:ce(he,"otpContainer")},f.map(((e,t)=>g.default.createElement(pe,{ref:e=>{d.current[t]=e},key:""+t,value:e,type:l,onChange:x,onFocus:C,onKeyDown:w,onPaste:y,onBlur:c}))))})),ge=e=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",id:"flag-icons-kh",viewBox:"0 0 640 480",width:"1em",height:"1em"},e),v.createElement("path",{fill:"#032ea1",d:"M0 0h640v480H0z"}),v.createElement("path",{fill:"#e00025",d:"M0 120h640v240H0z"}),v.createElement("g",{fill:"#fff",stroke:"#000",transform:"matrix(1.2 0 0 1.2 85.6 -522)"},v.createElement("g",{strokeLinejoin:"bevel"},v.createElement("path",{d:"M139 623.5h113.8v43.8H139z"}),v.createElement("path",{d:"M247 647.6h3.5v16.5H247zm-108-8.1h113.8v5H139zm0-7h113.8v4.6H139z"}),v.createElement("path",{strokeWidth:.9,d:"M139 625.7h113.8v4.3H139z"}),v.createElement("path",{d:"M169 647.6h3.6v16.5H169zm49 0h3.6v16.5H218zm-78 0h3.5v16.5H140zm7 0h3.5v16.5H147zm7.5 0h3.5v16.5h-3.5zm7.5 0h3.5v16.5H162zm62.8 0h3.6v16.5h-3.6zm7.5 0h3.6v16.5h-3.6zm7.5 0h3.6v16.5h-3.6z"}),v.createElement("path",{strokeLinejoin:"miter",d:"M94.5 669.5a9.3 9.3 0 0 0 4.4-5.3H292a9.3 9.3 0 0 0 4.4 5.3z"})),v.createElement("path",{d:"M193 556.8s-.1-4.1 2.3-4.2c2.3 0 2.2 4.2 2.2 4.2zm-12.5 54.5v-5.5c0-2.8-2.8-3-2.8-5 0 0-.4-3 .4-4.4 1.1 4 3 3.3 3 1.6 0-1.4-1-2.8-3.3-6.3-.8-1.1-.3-4.6.7-5.9.4 3 .9 4.5 2.2 4.5.8 0 1.4-.5 1.4-2 0-2-1.3-3-2-4.8a5 5 0 0 1 1.1-5.3c.5 3 .4 4.2 1.7 4.2 2.7-.9 0-4.8-.6-5.8-.6-1.1 1-3.4 1-3.4.8 2.7 1 2.9 2 2.6 1.2-.3 1-2-.4-3.4-.9-1-.8-2.3.2-3.3 1 1.9 2.2 1.8 2.3.6l-.8-4.4H204l-.9 4.3c-.2 1.2 1.4 1.5 2.4-.5 1 1 1.1 2.4.2 3.3-1.4 1.4-1.6 3.1-.4 3.4 1 .3 1.2 0 2-2.6 0 0 1.5 1.5 1 3.4-.6 1-3.3 5-.6 5.8 1.3 0 1.2-1.2 1.7-4.2a5 5 0 0 1 1 5.3c-.6 1.8-2 2.8-2 4.8 0 1.5.7 2 1.5 2 1.3 0 1.8-1.4 2.2-4.5 1 1.3 1.5 4.8.7 6-2.3 3.4-3.4 4.8-3.4 6.2 0 1.7 2 2.4 3-1.6.9 1.4.5 4.4.5 4.4 0 2-2.7 2.2-2.8 5v5.5zm7.2-46-.4-3.1h15.9l-.4 3.1zm1-3.2-.2-2.5H202l-.3 2.5zm2.3-2.6-.3-2.6h9l-.1 2.6zm33 110c-2-.7-5-2.9-5-5v-24.3l2.6-3.4H169l2.5 3.4v24.3c0 2.1-2 4.3-4 5z"}),v.createElement("path",{strokeLinejoin:"bevel",d:"M178.2 647.6h3.6v16.5h-3.6zm30.4 0h3.6v16.5h-3.6z"}),v.createElement("path",{d:"M168 609.2v27.6h54v-27.6a4.2 4.2 0 0 0-2.6 2.8v11.8h-48.7V612s-.6-2-2.8-2.8z"}),v.createElement("path",{d:"M214.6 669.5c-1.8-.7-5.6-2.9-5.6-5v-27.2c.4-1.5 2.4-2.4 3.7-3.4H177c1.7 1 3.6 1.7 4.3 3.4v27.2c0 2.1-3 4.3-4.8 5z"}),v.createElement("path",{d:"M219.4 634.2v-19.6h-4.9v-1.9h-38.8v2h-5v19.5zM207 669.5c-1.8-.7-4.3-2.9-4.3-5v-23.2l1.4-2.1h-17.7l1.5 2v23.3c0 2.1-2.6 4.3-4.3 5z"}),v.createElement("path",{d:"M190.7 639.2h9v30.3h-9z"}),v.createElement("path",{strokeLinejoin:"bevel",d:"M204.4 632.5c0-2 5.8-2.1 8.8-3.8h-36c3 1.7 8.7 1.8 8.7 3.8l1.2 3.9 15 .6z"}),v.createElement("path",{d:"M211.4 611.3c0-4.9.2-6.7 1.7-6.7V620c-3.7 1.4-6.3 6-6.3 6h-23.2s-2.6-4.6-6.3-6v-15.5c1.8 0 1.8 2 1.8 6.7zm1.7-2c0-5.6 4.9-6.2 4.9-6.2v5c-1.9-.1-2.8 1.6-2.8 4 0 2.5 1.5 2.5 1.5 2.5v14.2h-3.6z"}),v.createElement("path",{d:"M177.3 609.3c0-5.6-4.9-6.2-4.9-6.2v5c1.9-.1 2.8 1.6 2.8 4 0 2.5-1.5 2.5-1.5 2.5v14.2h3.6z"}),v.createElement("g",{fill:"none",strokeWidth:.8},v.createElement("path",{d:"M186.8 570.6H204m-19.2 5.4h21m-23 6.5h24.9m-27 7.9h29.5m-30.2 9h30.4"}),v.createElement("path",{strokeWidth:1,d:"M170.8 629h48.6m-33.2 0h18v6.6h-18z"})),v.createElement("path",{d:"M184 614.2c3 3.6 2.6 9.7 2.6 13.3H204c0-3.6-.4-9.7 2.6-13.3zm9.7-41-2.4-1.3v-3.5c1 .3 2 .4 2.2 2 .3-2.3 1-2.1 1.9-3 1 .9 1.5.7 1.9 3 0-1.6 1.2-1.7 2.1-2v3.5l-2.3 1.2z"}),v.createElement("path",{d:"m193.5 578.9-4-2.8V573c1.5.3 3 .5 3.2 2.2.4-2.5 1.3-3.7 2.7-4.7 1.3 1 2.2 2.2 2.7 4.7.1-1.7 1.7-1.9 3-2.2v3.2l-3.9 2.7z"}),v.createElement("path",{d:"m193.2 587.8-4.5-4v-4.7c1.6.4 3.4.6 3.6 3.1.5-3.5 1.5-5.4 3-6.8 1.6 1.4 2.6 3.3 3.2 6.8.2-2.5 2-2.7 3.6-3.1v4.7l-4.6 4zm8.4 5.3-4 5.7h-4.7l-4.1-5.7zm-15.2 9.5c2 1.1 2.8 3.4 3 7.6H201c.2-4.2 1-6.5 3-7.6z"}),v.createElement("path",{strokeLinejoin:"bevel",d:"M204.2 593v-5.6a5.2 5.2 0 0 0-3.8 3.3c0-2-2.5-6.3-5.2-8.5-2.7 2.4-5.3 6.4-5.2 8.4-.5-1.5-1.8-2.7-3.8-3.2v5.7z"}),v.createElement("path",{strokeLinejoin:"bevel",d:"M205 602.6V597c-2.1.6-3.5 1.7-4.1 3.3 0-2-2.7-6.3-5.7-8.5-3 2.5-5.8 6.4-5.7 8.5-.5-1.5-2-2.7-4.1-3.3v5.7z"}),v.createElement("path",{strokeLinejoin:"bevel",d:"M207.4 614.3v-6.6a9.6 9.6 0 0 0-5.1 3.8c0-3.5-4-9-7.1-10.7-3.2 1.8-7.1 7.4-7.1 10.7a9.7 9.7 0 0 0-5.2-3.8v6.6z"}),v.createElement("path",{strokeLinejoin:"bevel",d:"M206 629v-6.8c-2.4.9-3 3.1-3.8 4.7.3-6.9-3.8-14.2-7-16.1-3.2 1.9-7.4 9.4-7 16-.8-1.4-1.5-3.7-3.8-4.6v6.7z"}),v.createElement("path",{d:"M204.4 639.2v-6.8c-2.5.6-2.6 1.5-3.4 3 .3-4.1-2.6-8.8-5.8-10.6-3.2 1.8-6 6.5-5.8 10.6-.8-1.5-.9-2.4-3.4-3v6.8z"}),v.createElement("g",{id:"a"},v.createElement("path",{d:"M99 664.2v-20.4c-.7-2.6-3-5-4.6-5.4v-18l3.7 2 4.3 18.9v23z"}),v.createElement("path",{d:"M99 664.3v-20.5c-.7-2.6-3-5-4.6-5.4v-19.2c2.5 0 3.7 3.2 3.7 3.2l4.3 18.9v22.9z"}),v.createElement("path",{d:"M96.3 669.5c1.7-.7 4.2-2.9 4.2-5v-25.6l-1.2-2H143l-1.7 2v25.6a6 6 0 0 0 3.4 5z"}),v.createElement("path",{d:"M135.8 669.5c-1.7-.7-4.2-2.9-4.2-5v-24.3l3.6-3.4h-29.6l3.6 3.4v24.3c0 2.1-2.5 4.3-4.2 5z"}),v.createElement("path",{d:"M131.7 669.5c-1.7-.7-4.3-2.9-4.3-5v-22l2.4-3.3H111l2.4 3.3v22c0 2.1-2.5 4.3-4.3 5z"}),v.createElement("path",{d:"M116 639.2h8.9v30.4h-9z"}),v.createElement("path",{strokeLinejoin:"bevel",d:"M103.7 647.6h3.6v16.5h-3.6zm30.8 0h3.5v16.5h-3.6zm-33.9-27.8h4.4v17h-4.4zm0-3.2h4.3v3.2h-4.3zm35.6 6.9h6.1v13h-6.1z"}),v.createElement("path",{d:"M104.9 636.6v-29c1.2 0 1.4 4.3 4.2 4.3 1.5 0 1.4-1.8.5-3.2-.7-1.3-1.6-3-.4-6.3.9 2.5 3.1 3.3 2.7 1.8-.7-2.7-2.8-3.2-1.2-7.3.5 3.4 2.7 3.3 2.2 1.3-.6-2.3-1.9-3.3-.3-6.5.9 3.7 2 3.5 2 1.2 0-3.4 0-7 4.2-8.3 0 0 .3-3 1.9-3 1.5 0 1.8 3 1.8 3 4.3 1.3 4.2 5 4.2 8.3 0 2.3 1.1 2.5 2-1.2 1.6 3.2.3 4.2-.3 6.5-.5 2 1.7 2.1 2.2-1.3 1.6 4.1-.5 4.6-1.2 7.3-.4 1.5 1.8.7 2.7-1.8 1.2 3.3.3 5-.4 6.3-.8 1.4-1 3.2.5 3.2 2.8 0 3-4.2 4.2-4.2v28.9zM98 614.7v22.1h2.5v-22.1c-.9-.5-1.7-.5-2.5 0z"}),v.createElement("path",{d:"M98.2 629c3.1 1.6 6.2 3.5 7 7.8h-7zm43.2-6.6v14.4h2v-14.4c-.6-.3-1.5-.4-2 0z"}),v.createElement("path",{d:"M143.4 629c-3.1 1.5-6.2 3.3-7 7.7h7zm-20.6-33.7 1.8-1.5v-2c-.6 0-1 .3-1.5 1a5 5 0 0 0-2.5-3 5 5 0 0 0-2.6 2.9c-.5-.7-.8-.8-1.5-1v2l1.8 1.6z"}),v.createElement("path",{d:"m123.8 600.2.8-1.9v-2.5c-.6 0-1 .3-1.5 1a5 5 0 0 0-2.5-3 5 5 0 0 0-2.6 2.9c-.5-.7-.8-.8-1.5-.9v2.5l.8 1.9z"}),v.createElement("path",{d:"m124 606.8 2.6-3.3v-3.2c-1 0-1.5.5-2.2 1.6-.7-2.3-2-2.7-3.8-3.8-1.9 1-3.2 1.5-3.8 3.7-.8-1.1-1.3-1.4-2.3-1.5v3.2l2.7 3.3z"}),v.createElement("path",{d:"M124.7 613.3s3.2-2.7 3.3-4.2v-3.5c-1.2.1-2.3.4-3.2 1.9-.8-2.9-2-3.7-4.2-5-2.3 1.3-3.5 2.1-4.2 5-1-1.5-2-1.8-3.3-2v3.6a15 15 0 0 0 3.3 4.2z"}),v.createElement("path",{d:"M126 625.3s4.4-4.7 4.5-6.6v-5.4c-1.6.2-3.2 1.3-4.4 3.6-1-4.5-2.6-7.6-5.5-9.8-3 2.2-4.6 5.3-5.6 9.8-1.2-2.3-2.7-3.4-4.3-3.6v5.4c.3 1.9 4.4 6.6 4.4 6.6z"}),v.createElement("path",{d:"M126 632.4s3.7-3.7 4.5-5.3v-5.4c-1.6.2-3.2 1.3-4.4 3.5a14 14 0 0 0-5.5-9.2c-3 2.2-4.6 4.7-5.6 9.2-1.2-2.2-2.7-3.3-4.3-3.5v5.4c1 1.6 4.4 5.3 4.4 5.3z"}),v.createElement("path",{d:"M127.5 636.6c-1-4.7-2-8.2-7.1-11.7-5.2 3.5-6.1 7-7.2 11.7z"}),v.createElement("path",{d:"M130.2 639.2v-6.8c-2.4 1-4.5 2.3-5.3 3.8-.8-3.8-2.5-5.4-4.6-7.7-2.1 2.3-3.5 4-4.4 7.7-.8-1.5-2.9-2.9-5.2-3.8v6.8z"})),v.createElement("use",{xlinkHref:"#a",width:"100%",height:"100%",transform:"matrix(-1 0 0 1 390.7 0)"}),v.createElement("path",{d:"M72.7 694.3H318v12.5H72.7zm-6.5 12.5h258.3v12.5H66.2zm19.4-31.3H305v8.1H85.6z"}),v.createElement("path",{d:"M79.2 683.6h232.4v10.6H79.2zm10.2-14.3h212v6.2h-212z"}),v.createElement("path",{d:"M112.4 669.3h16v50h-16z"}),v.createElement("path",{d:"M116 669.3h8.9v50h-9zm71 0h16v50h-16z"}),v.createElement("path",{d:"M190.7 669.3h9v50h-9zm71.5 0h16v50h-16z"}),v.createElement("path",{d:"M265.7 669.3h9v50h-9z"}),v.createElement("path",{fill:"none",d:"M99 664.2h193M115.8 713h9.2m-9.2-6.3h9.2m-9.2-6.2h9.2m-9.2-6.3h9.2m-9.2-6.2h9.2m-9.2-6.3h9.2m-9.2-6.2h9.2m65.8 37.5h8.6m-8.6-6.3h8.6m-8.6-6.2h8.6m-8.6-6.3h8.6m-8.6-6.2h8.6m-8.6-6.3h8.6m-8.6-6.2h8.6m66.2 37.5h9.2m-9.2-6.3h9.2m-9.2-6.2h9.2m-9.2-6.3h9.2m-9.2-6.2h9.2m-9.2-6.3h9.2m-9.2-6.2h9.2"}))),ve=e=>v.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 8 5",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),v.createElement("path",{d:"M4 5L0.535898 0.5L7.4641 0.5L4 5Z"})),Ee=e=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",id:"flag-icons-in",viewBox:"0 0 640 480",width:"1em",height:"1em"},e),v.createElement("path",{fill:"#f93",d:"M0 0h640v160H0z"}),v.createElement("path",{fill:"#fff",d:"M0 160h640v160H0z"}),v.createElement("path",{fill:"#128807",d:"M0 320h640v160H0z"}),v.createElement("g",{transform:"matrix(3.2 0 0 3.2 320 240)"},v.createElement("circle",{r:20,fill:"#008"}),v.createElement("circle",{r:17.5,fill:"#fff"}),v.createElement("circle",{r:3.5,fill:"#008"}),v.createElement("g",{id:"d"},v.createElement("g",{id:"c"},v.createElement("g",{id:"b"},v.createElement("g",{id:"a",fill:"#008"},v.createElement("circle",{r:.9,transform:"rotate(7.5 -8.8 133.5)"}),v.createElement("path",{d:"M0 17.5.6 7 0 2l-.6 5L0 17.5z"})),v.createElement("use",{xlinkHref:"#a",width:"100%",height:"100%",transform:"rotate(15)"})),v.createElement("use",{xlinkHref:"#b",width:"100%",height:"100%",transform:"rotate(30)"})),v.createElement("use",{xlinkHref:"#c",width:"100%",height:"100%",transform:"rotate(60)"})),v.createElement("use",{xlinkHref:"#d",width:"100%",height:"100%",transform:"rotate(120)"}),v.createElement("use",{xlinkHref:"#d",width:"100%",height:"100%",transform:"rotate(-120)"}))),be=e=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",id:"flag-icons-id",viewBox:"0 0 640 480",width:"1em",height:"1em"},e),v.createElement("g",{fillRule:"evenodd",strokeWidth:"1pt"},v.createElement("path",{fill:"#e70011",d:"M0 0h640v249H0z"}),v.createElement("path",{fill:"#fff",d:"M0 240h640v240H0z"}))),ze=e=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",id:"flag-icons-my",viewBox:"0 0 640 480",width:"1em",height:"1em"},e),v.createElement("path",{fill:"#c00",d:"M0 0h640v480H0z"}),v.createElement("path",{fill:"#fff",d:"M.5 39.9h639v38.4H.5zM.5 118.6h639V157H.5zM.5 197.4h639v38.4H.5z"}),v.createElement("path",{fill:"#006",d:"M0 .5h320v280H0Z"}),v.createElement("path",{fill:"#fc0",d:"m207.5 73.8 6 40.7 23-34-12.4 39.2 35.5-20.8-28.1 30 41-3.2-38.3 14.8 38.3 14.8-41-3.2 28.1 30-35.5-20.8 12.3 39.3-23-34.1-6 40.7-5.9-40.7-23 34 12.4-39.2-35.5 20.8 28-30-41 3.2 38.4-14.8-38.3-14.8 41 3.2-28.1-30 35.5 20.8-12.4-39.3 23 34.1zm-33.3 1.7a71.1 71.1 0 1 0 0 130 80 80 0 1 1 0-130z"}),v.createElement("path",{fill:"#fff",d:"M.5 276.2h639v38.4H.5zM.5 354.4h639v38.4H.5zM0 441.6h639V480H0z"})),xe=e=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",id:"flag-icons-mm",viewBox:"0 0 640 480",width:"1em",height:"1em"},e),v.createElement("path",{fill:"#fecb00",d:"M0 0h640v480H0z"}),v.createElement("path",{fill:"#34b233",d:"M0 160h640v320H0z"}),v.createElement("path",{fill:"#ea2839",d:"M0 320h640v160H0z"}),v.createElement("g",{transform:"translate(320 256.9) scale(176.87999)"},v.createElement("path",{id:"a",fill:"#fff",d:"m0-1 .3 1h-.6z"}),v.createElement("use",{xlinkHref:"#a",width:"100%",height:"100%",transform:"rotate(-144)"}),v.createElement("use",{xlinkHref:"#a",width:"100%",height:"100%",transform:"rotate(-72)"}),v.createElement("use",{xlinkHref:"#a",width:"100%",height:"100%",transform:"rotate(72)"}),v.createElement("use",{xlinkHref:"#a",width:"100%",height:"100%",transform:"rotate(144)"}))),Ce=e=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",id:"flag-icons-ph",viewBox:"0 0 640 480",width:"1em",height:"1em"},e),v.createElement("path",{fill:"#0038a8",d:"M0 0h640v240H0z"}),v.createElement("path",{fill:"#ce1126",d:"M0 240h640v240H0z"}),v.createElement("path",{fill:"#fff",d:"M415.7 240 0 480V0"}),v.createElement("path",{fill:"#fcd116",d:"M26.7 42.4 41 55l16.6-9.2-7.4 17.5 14 13-19-1.6-8.1 17.2-4.3-18.5L14 71l16.3-10zm323.8 172.3.4 19 18 6.3-18 6.2-.4 19-11.5-15.1-18.2 5.5 10.8-15.6-10.8-15.6 18.2 5.5zM37.2 388.1l8 17.2 19-1.6-13.9 13 7.4 17.5-16.6-9.1-14.4 12.4 3.6-18.7L14 409l18.9-2.4zm114.2-249-6.2 6.2 3.1 47-3 .3-5.7-42.9-5.1 5 7.6 38.4a47.5 47.5 0 0 0-17.2 7.1l-21.7-32.4H96l26.4 34.3a48 48 0 0 0-2.4 2l-31.1-35.5h-8.8v8.8l35.4 31-2 2.5-34.3-26.3v7.1l32.5 21.7c-3.4 5.2-5.9 11-7.1 17.2L66.3 223l-5.1 5 42.9 5.7c-.2 1-.3 2.1-.3 3.1l-47-3-6.2 6.2 6.2 6.2 47-3.1.3 3.1-42.9 5.7 5 5 38.4-7.6a47.5 47.5 0 0 0 7.1 17.2l-32.5 21.7v7.2l34.3-26.3a48 48 0 0 0 2 2.4l-35.4 31v8.8H89l31-35.4 2.5 2L96 312.2h7.2l21.7-32.5c5.1 3.4 11 5.9 17.2 7.1l-7.6 38.4 5 5 5.7-42.9c1 .2 2 .3 3.1.3l-3 47 6.1 6.2 6.3-6.2-3.1-47 3-.3 5.7 43 5.1-5.1-7.6-38.4a47.5 47.5 0 0 0 17.2-7.1l21.7 32.5h7.2l-26.4-34.3a48 48 0 0 0 2.4-2l31.1 35.4h8.8v-8.8l-35.4-31 2-2.4 34.3 26.3v-7.2l-32.5-21.7c3.4-5.1 5.9-11 7.1-17.2l38.3 7.6 5.1-5-42.9-5.7c.2-1 .3-2 .3-3.1l47 3 6.2-6.1-6.2-6.2-47 3-.3-3 42.9-5.7-5-5-38.4 7.5a47.5 47.5 0 0 0-7.1-17.2l32.5-21.7v-7.1l-34.3 26.3a48 48 0 0 0-2-2.4l35.4-31v-8.9H214l-31 35.5a48 48 0 0 0-2.5-2l26.4-34.3h-7.2L178 200.2c-5.1-3.4-11-5.9-17.2-7.1l7.6-38.3-5-5-5.7 42.8-3.1-.3 3-47z"})),ye=e=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",id:"flag-icons-tw",viewBox:"0 0 640 480",width:"1em",height:"1em"},e),v.createElement("clipPath",{id:"a"},v.createElement("path",{d:"M0 0h640v480H0z"})),v.createElement("g",{clipPath:"url(#a)"},v.createElement("path",{fill:"red",d:"M0 0h720v480H0z"}),v.createElement("path",{fill:"#000095",d:"M0 0h360v240H0z"}),v.createElement("g",{fill:"#fff"},v.createElement("path",{d:"m154 126.9-2.5 9.6 9.4 2.6-1.8-7.1zm46.9 5.1-1.8 7.1 9.4-2.6-2.5-9.6zm-41.8-24-5.1 5.1 1.9 6.9z"}),v.createElement("path",{d:"m155.9 120-1.9 6.9 5.1 5.1z"}),v.createElement("path",{d:"m154 113.1-6.9 6.9 6.9 6.9 1.9-6.9zm14 27.8 5.1 5.1 6.9-1.9zm18.9 5.1 9.6 2.5 2.6-9.4-7.1 1.8z"}),v.createElement("path",{d:"m192 140.9 7.1-1.8 1.8-7.1zm-31.1-1.8 2.6 9.4 9.6-2.5-5.1-5.1zm19.1 5 6.9 1.9 5.1-5.1z"}),v.createElement("path",{d:"m173.1 146 6.9 6.9 6.9-6.9-6.9-1.9zm-12.2-45.1-9.4 2.6 2.5 9.6 5.1-5.1zm-1.8 31.1 1.8 7.1 7.1 1.8zm45-12 1.9-6.9-5.1-5.1z"}),v.createElement("path",{d:"m168 99.1-7.1 1.8-1.8 7.1zm32.9 8.9-1.8-7.1-7.1-1.8zm5.1 18.9 6.9-6.9-6.9-6.9-1.9 6.9z"}),v.createElement("path",{d:"m200.9 108-8.9-8.9-12-3.2-12 3.2-8.9 8.9-3.2 12 3.2 12 8.9 8.9 12 3.2 12-3.2 8.9-8.9 3.2-12z"}),v.createElement("path",{d:"m200.9 132 5.1-5.1-1.9-6.9zm5.1-18.9 2.5-9.6-9.4-2.6 1.8 7.1zm-6.9-12.2-2.6-9.4-9.6 2.5 5.1 5.1zm-26-6.9-9.6-2.5-2.6 9.4 7.1-1.8zm6.9 1.9-6.9-1.9-5.1 5.1z"}),v.createElement("path",{d:"m186.9 94-6.9-6.9-6.9 6.9 6.9 1.9z"}),v.createElement("path",{d:"m192 99.1-5.1-5.1-6.9 1.9zM173.1 146l-9.6 2.5 4.5 16.6 12-12.2zm-5.1 19.1 12 44.9 12-44.9-12-12.2zm-7.1-26-9.4-2.6-4.4 16.4 16.4-4.4z"}),v.createElement("path",{d:"m147.1 152.9-12 45.1 32.9-32.9-4.5-16.6zm-12-20.9L102 165.1l45.1-12.2 4.4-16.4z"}),v.createElement("path",{d:"m154 126.9-6.9-6.9-12 12 16.4 4.5zm0-13.8-2.5-9.6-16.4 4.5 12 12z"}),v.createElement("path",{d:"M135.1 108 90 120l45.1 12 12-12zm90 24-16.6 4.5 4.4 16.4 45.1 12.2z"}),v.createElement("path",{d:"m199.1 139.1-2.6 9.4 16.4 4.4-4.4-16.4zm-12.2 6.9-6.9 6.9 12 12.2 4.5-16.6zm19.1-19.1 2.5 9.6 16.6-4.5-12.2-12z"}),v.createElement("path",{d:"m192 165.1 33.1 32.9-12.2-45.1-16.4-4.4zm7.1-64.2 9.4 2.6 4.4-16.4-16.4 4.4z"}),v.createElement("path",{d:"M225.1 108 258 75.1l-45.1 12-4.4 16.4zm-12.2-20.9L225.1 42 192 75.1l4.5 16.4zm12.2 44.9 44.9-12-44.9-12-12.2 12z"}),v.createElement("path",{d:"m206 113.1 6.9 6.9 12.2-12-16.6-4.5zm-38-38L135.1 42l12 45.1 16.4 4.4z"}),v.createElement("path",{d:"m160.9 100.9 2.6-9.4-16.4-4.4 4.4 16.4z"}),v.createElement("path",{d:"m147.1 87.1-45.1-12 33.1 32.9 16.4-4.5zm39.8 6.9 9.6-2.5-4.5-16.4-12 12z"}),v.createElement("path",{d:"M192 75.1 180 30l-12 45.1 12 12z"}),v.createElement("path",{d:"m173.1 94 6.9-6.9-12-12-4.5 16.4z"})),v.createElement("circle",{cx:180,cy:120,r:51.1,fill:"#000095"}),v.createElement("circle",{cx:180,cy:120,r:45.1,fill:"#fff"}))),we=e=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",id:"flag-icons-th",viewBox:"0 0 640 480",width:"1em",height:"1em"},e),v.createElement("g",{fillRule:"evenodd"},v.createElement("path",{fill:"#f4f5f8",d:"M0 0h640v480H0z"}),v.createElement("path",{fill:"#2d2a4a",d:"M0 162.5h640v160H0z"}),v.createElement("path",{fill:"#a51931",d:"M0 0h640v82.5H0zm0 400h640v80H0z"}))),je=e=>v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",id:"flag-icons-vn",viewBox:"0 0 640 480",width:"1em",height:"1em"},e),v.createElement("defs",null,v.createElement("clipPath",{id:"a"},v.createElement("path",{fillOpacity:.7,d:"M-85.3 0h682.6v512H-85.3z"}))),v.createElement("g",{fillRule:"evenodd",clipPath:"url(#a)",transform:"translate(80) scale(.9375)"},v.createElement("path",{fill:"#da251d",d:"M-128 0h768v512h-768z"}),v.createElement("path",{fill:"#ff0",d:"M349.6 381 260 314.3l-89 67.3L204 272l-89-67.7 110.1-1 34.2-109.4L294 203l110.1.1-88.5 68.4 33.9 109.6z"}))),Me=Object.values(c.siteOptions).reduce(((e,{phoneCountry:t})=>(e.includes(t)||e.push(t),e)),[]),Oe={PH:Ce,KH:ge,ID:Ee,IN:be,MM:xe,MY:ze,TH:we,TW:ye,VN:je};var ke={phoneInput:"i-9Ibox",error:"YDWHh9b"};const He=t.forwardRef(((r,a)=>{const{isError:n,defaultCountry:l,countries:o=Me,countryCallingCodeEditable:i=!1,defaultValue:s,value:c,onChange:d,className:m}=r,h=e.__rest(r,["isError","defaultCountry","countries","countryCallingCodeEditable","defaultValue","value","onChange","className"]),[u,p]=t.useState(s||c),[v,E]=t.useState(null);return t.useEffect((()=>{p(c)}),[c]),t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){const e=yield Promise.resolve().then((function(){return f(require("react-phone-number-input"))}));E(e)}))}),[]),v?g.default.createElement(v.default,Object.assign({ref:a,value:u,onChange:e=>{p(e),null==d||d(e)},countries:o,defaultCountry:l,countryCallingCodeEditable:i,className:ce(ke.phoneInput,{isError:n,[ke.error]:n},m),flagUrl:void 0,flagComponent:t=>{const{country:r,countryName:a,flagUrl:n}=t,l=e.__rest(t,["country","countryName","flagUrl"]),o=Oe[r],i=r?`(+${v.getCountryCallingCode(r)})`:"";return o?g.default.createElement(g.default.Fragment,null,g.default.createElement(o,Object.assign({title:a},l)),g.default.createElement("span",{className:ce(ke.callingCode,"PhoneInputCountryIconCallingCode")},i)):g.default.createElement(g.default.Fragment,null)},countrySelectProps:{arrowComponent:()=>g.default.createElement("div",{className:ce(ke.arrowSelect,"PhoneInputArrowContainer")},g.default.createElement(ve,null))}},h)):null}));var Ae=r.createStyles(((e,t)=>({root:{color:t.color||("hb"===e.primaryColor?e.colors.hb[6]:e.fn.primaryColor()),"&[data-event-category] > *":{pointerEvents:"none"}}})));const Se=t=>{var{color:r,styles:a,className:n}=t,l=e.__rest(t,["color","styles","className"]);const{classes:o,cx:i}=Ae({color:r},{name:"Anchor",styles:a});return g.default.createElement(O,Object.assign({as:"a",className:i(o.root,n)},l))},Le=t=>{var{children:a}=t,n=e.__rest(t,["children"]);return g.default.createElement(r.Tabs,Object.assign({},n),a)};Le.List=r.Tabs.List,Le.Tab=r.Tabs.Tab,Le.Panel=r.Tabs.Panel,exports.Accordion=I,exports.Anchor=Se,exports.AspectRatio=S,exports.Avatar=t=>{var{withIndicator:a=!1,indicatorConfig:n=null,size:l=56,children:o,styles:i}=t,s=e.__rest(t,["withIndicator","indicatorConfig","size","children","styles"]);const c=()=>g.default.createElement(r.Avatar,Object.assign({size:l,radius:"xl"},s,{imageProps:Object.assign({loading:"lazy"},s.imageProps)}),o||g.default.createElement("img",{loading:"lazy",src:_,width:l}));return a?g.default.createElement(r.Indicator,Object.assign({inline:!0,position:"bottom-end",offset:9},n,{styles:Object.assign({indicator:{backgroundColor:g.default.isValidElement(n.label)&&"transparent",zIndex:1}},i)}),c()):c()},exports.Breadcrumbs=w,exports.Cambodia=ge,exports.CaretDown=ve,exports.Carousel=W,exports.Checkbox=V,exports.DEBOUNCED_TIME=300,exports.DatePicker=C,exports.India=Ee,exports.Indonesia=be,exports.Input=F,exports.MAPPED_LOCALE=ne,exports.Malaysia=ze,exports.Myanmar=xe,exports.NumberInput=D,exports.OTHER_THEME_CONFIG=j,exports.OTP=fe,exports.Phillipines=Ce,exports.Phone=He,exports.Radio=U,exports.StyledModal=B,exports.StyledSlider=G,exports.StyledSliderWrapper=K,exports.StyledTextArea=L,exports.Tabs=Le,exports.Taiwan=ye,exports.Text=O,exports.Thailand=we,exports.Vietnam=je,exports.commonjsGlobal=ie,exports.createCommonjsModule=se,exports.emotionCache=T,exports.getMantineThemeOverride=(e,t="hb")=>({defaultRadius:"hb"===t?4:16,datesLocale:ne[e],dateFormat:c.ISO_FORMAT[e].dateFormat,colors:Object.assign(Object.assign({},oe),s.theme.colors),primaryColor:t,primaryShade:6,fontFamily:e===m.LOCALE.Cambodia?"Battambang,":"Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',\n Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",breakpoints:{xs:d.Breakpoints.BREAK_POINT_SMALL_MOBILE,sm:d.Breakpoints.BREAK_POINT_MOBILE,md:d.Breakpoints.BREAK_POINT_TABLET,lg:d.Breakpoints.BREAK_POINT_PC,xl:d.Breakpoints.BREAK_POINT_LGPC},components:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},te(e)),X),re),Z),ee),ae)}),exports.themeColors=oe,exports.useMantineLocale=r=>{const[a,n]=t.useState(!1);return t.useEffect((()=>{e.__awaiter(void 0,void 0,void 0,(function*(){var e;n(!1),yield null===(e=le[r])||void 0===e?void 0:e.call(le),b.default.locale(ne[r]),n(!0)}))}),[r]),{isLoaded:a}},exports.useStyles=A;
|
package/build/index-c7c3220f.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("react"),t=require("./index.styled-4821c538.js"),a=require("./tslib.es6-d2b93cc7.js"),r=require("./useTranslations-dcd5faaf.js");require("@mantine/core"),require("./gAssets.js");var s=require("./index-87604a48.js");require("dayjs"),require("./screenSizeContext-7024419e.js"),require("@emotion/react"),require("./theme-54f4dde4.js"),require("./index-cfb03666.js"),require("./utils-d555597e.js"),require("./isProduction-0fdd7dfe.js"),require("./Onboarding-5cc2a17c.js");var i=require("./index-c365b655.js");require("./translationsContext-06f43813.js"),require("string-format"),require("./index-d8e712d6.js"),require("@mantine/hooks");var n=require("./index.styled-013215b0.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=d(e);const o={admin:"cardAuthor.admin",moderator:"cardAuthor.moderator",ambassador:"cardAuthor.ambassador",expert:"cardAuthor.expert",sponsor:"cardAuthor.sponsor",guide:"cardAuthor.guide",influencer:"cardAuthor.influencer"};var c="Dudns9-";exports.AuthorBadge=e=>{var{siteType:s,role:i,title:n,styles:d,className:c}=e,u=a.__rest(e,["siteType","role","title","styles","className"]);const{t:m}=r.useTranslations(),y=i?(e=>["admin","moderator","ambassador","expert","sponsor","guide","influencer"].find((t=>t===e)))(i):"",{classes:v,cx:b}=t.useStyles(void 0,{name:"AuthorBadge",styles:d});return y&&o[y]?l.default.createElement("div",Object.assign({className:b(v.root,c),"data-label-type":y,"data-is-marrybaby":"marryBaby"===s},u),n||m(o[y])):null},exports.BtnChoice=({value:t,choices:a,onChange:r})=>{const[s,n]=e.useState(t);return e.useEffect((()=>{n(t)}),[t]),l.default.createElement("div",{className:c},a.map(((e,t)=>l.default.createElement(i.Button,{size:"sm",variant:e.value===s?"primary":"tertiary",key:t,onClick:()=>{n(e.value),null==r||r(e.value)}},e.label||""))))},exports.Divider=({type:e="solid",className:a,style:r})=>l.default.createElement(t.StyledDivider,{style:r,className:a,"data-diver-type":e,dividerType:e}),exports.Tabs=({style:t,initialTab:a,tabContent:r,onChange:i,className:d,dataEventCategory:o,dataEventAction:c,dataEventLabel:u,id:m,styles:y})=>{const{classes:v,cx:b,theme:f}=n.useStyles(void 0,{name:"Tabs",styles:y}),[E,p]=e.useState(a||0);return e.useEffect((()=>{p(a)}),[a]),l.default.createElement("ul",{style:t,className:b(v.root,d),role:"tablist",id:m},r.map(((e,t)=>l.default.createElement("li",{className:`${v.item} ${E===t?"active":""}`,"aria-selected":E===t,role:"tab",onClick:()=>{p(t),i&&i(t)},onKeyDown:e=>{"Enter"===e.key&&(p(t),i&&i(t))},key:t,"data-event-category":e.dataEventCategory||o,"data-event-action":e.dataEventAction||c,"data-event-label":e.dataEventLabel||u,tabIndex:0,"data-testid":e.dataTestid},l.default.createElement("div",{className:v.itemInner},e.icon&&l.default.createElement("div",{className:v.icon},e.icon),l.default.createElement(s.Text,{className:v.label,size:e.textSize||"sm",weight:e.textType||"bold",color:E===t?f.fn.primaryColor():e.textColor||f.colors.gray[4],dataEventCategory:e.dataEventCategory,dataEventAction:e.dataEventAction,dataEventLabel:e.dataEventLabel},e.name))))))};
|