@hhgtech/hhg-components 1.27.84 → 1.27.85
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/care.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./types-1b8d8517.js"),r=require("./constants-3547439e.js");require("./tslib.es6-e3858147.js"),require("react"),require("./useTranslations-3015cbde.js"),require("./translationsContext-25c7e3b7.js"),require("string-format"),require("lodash/debounce"),require("./index-7401804e.js"),require("@mantine/core"),require("./index-65940b27.js"),require("./screenSizeContext-bfc7b209.js"),require("styled-components"),require("lodash/throttle"),require("./theme-ffb5f892.js"),require("dayjs"),require("./index-5feac824.js"),require("date-fns/locale"),require("./Onboarding-1947cbc4.js"),require("./isProduction-631d71b4.js"),require("./gAssets.js"),require("./useUniqueId-907de863.js"),require("./index-63bf80ed.js"),require("react-loading-skeleton"),require("lodash/shuffle"),require("./useOutsideClick-6e89ad42.js"),require("./paths-970687a6.js"),require("./cookieHelper-38fb44af.js"),exports.BookingSearchBar=e.BookingSearchBar,exports.BookingSearchBarV2=e.BookingSearchBarV2,exports.CareTypes=e.types,exports.CareConstants=r.constants;
|
package/build/esm/care.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{B as BookingSearchBar,a as BookingSearchBarV2,t as CareTypes}from"./types-
|
|
1
|
+
export{B as BookingSearchBar,a as BookingSearchBarV2,t as CareTypes}from"./types-4efc31d6.js";export{c as CareConstants}from"./constants-1e2f4da9.js";import"./tslib.es6-aee30ad9.js";import"react";import"./useTranslations-e48b2888.js";import"./translationsContext-6d961fa2.js";import"string-format";import"lodash/debounce";import"./index-29fe41db.js";import"@mantine/core";import"./index-4ad41345.js";import"./screenSizeContext-e31ea396.js";import"styled-components";import"lodash/throttle";import"./theme-9a93dfd1.js";import"dayjs";import"./index-3e6373bb.js";import"date-fns/locale";import"./Onboarding-330e4b35.js";import"./isProduction-4af4f5a0.js";import"./gAssets.js";import"./useUniqueId-dd165054.js";import"./index-3c49ea26.js";import"react-loading-skeleton";import"lodash/shuffle";import"./useOutsideClick-6b04c050.js";import"./paths-406b71bd.js";import"./cookieHelper-9e782dd0.js";
|
package/build/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{i as Types}from"./index-8bd65ef8.js";export{i as Constants}from"./index-3e6373bb.js";export{A as Alert,c as ArticleCard,d as ArticleCardV2,p as BMICardEmbed,t as BMRCardEmbed,q as BabyGrowthCardEmbed,r as BabyPoopEmbed,B as Badge,a as BorderHeading,w as Breadcrumbs,e as CategoryCard,C as Checkbox,f as CheckboxGroup,n as CookieAcceptConfirm,v as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,z as FixedBottomAdBlock,m as FloatButtonGroup,G as Grid,I as IconText,O as OvulationCardEmbed,u as PWGCardEmbed,P as Pagination,g as ProgressBar,R as RateStars,S as ScrollList,o as SeoHead,x as ShareContainer,y as ShareDrawer,i as SideMenu,h as StatisticCard,l as SurveyThankyouCard,s as THRCardEmbed,j as Table,k as Tabs,T as Tag,b as Toggle}from"./fixedBottomAdBlock-692ebffe.js";export{A as Avatar,L as LanguageSwitcher,d as NavigationLogoutPopup,e as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,U as UserProfileNavigation,b as UserProfileNavigationHeader,c as UserProfileNavigationStats,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-63f8c081.js";export{B as Button}from"./index-37ee7df2.js";export{A as AuthorBadge,a as BookingBtn,B as BtnChoice,D as Divider}from"./index-ec81ec8c.js";export{C as CaretDown,D as DefaultComponentGlobalContextData,F as Flag,G as GlobalData,H as Heading,L as LogoIcon,P as PureInput,S as StepRenderer,b as StepRendererContext,T as TextArea,a as TextDivider,d as TogetherComponentGlobalContext,e as TogetherComponentGlobalContextProvider,c as TogetherConstants}from"./utils-5d318c50.js";export{I as Input}from"./index-29fe41db.js";export{C as Container,I as Icon,L as Label}from"./index-4ad41345.js";export{L as Logo}from"./index-a9fd5256.js";export{A as AdBlock,D as DatePicker,c as DoctorInfo,a as Dropdown,M as MobileBottomNavigation,d as MobileBottomNavigationIcon,R as Radio,b as RadioGroup,S as SurveyQuestionCard,T as ToolsBannerCard}from"./index-9fd9846a.js";export{T as Text}from"./index-3c49ea26.js";export{D as Drawer,R as RadioImageGroup}from"./index-a9806cc0.js";export{C as CustomReferenceDot,I as ImageWrap}from"./index-d5229a9b.js";export{P as Popup,d as TogetherDataTransforms}from"./dataTransform-21d116c7.js";export{M as Modal}from"./index-3842a929.js";export{P as PillCarousel}from"./index-64e1c0a9.js";export{A as AddressInput}from"./index-07433a4c.js";export{Footer}from"./footer.js";export{u as useTranslations}from"./useTranslations-e48b2888.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-c976efa8.js";export{u as useFbDataLayer,a as usePrevious,b as useRafState}from"./useRafState-21543976.js";export{u as useHealthToolsCache}from"./useHealthToolCache-2cf3b6ca.js";export{u as useIsInit}from"./useIsInit-b131693a.js";export{i as initSharedOutSideClickListener,a as useOutsideClick,u as useSharedOutsideClick}from"./useOutsideClick-6b04c050.js";export{u as useInitialMount,a as useUniqueId}from"./useUniqueId-dd165054.js";export{g as CardAuthor,C as CardLink,D as CardPost,E as CardPostPopoverMore,b as CardReactions,F as CardReply,G as CardReplyPopover,K as Close,h as CreateNewPostContent,i as CreatePostDescription,j as CreatePostTitle,s as ImagePreviewPopup,I as InputCommentBar,e as LabelPin,d as LabelSortPin,f as LabelSorting,L as Loading,H as PopoverMenu,P as PopupDanger,l as PopupDoctor,k as PopupExpert,o as PopupFrame,m as PopupHospital,r as PostContent,w as PostImagePreview,v as PostSingleImageViewPopup,z as ProfileDetail,y as ProfileDetailModal,q as ShareBox,S as SharePopup,B as SkipQuestionOfExpertBtn,x as SocialLinkPreview,J as SourceList,p as SubmitReportForm,A as TabNameInProfileDetail,c as TagTopic,T as TogetherAuthConfigContext,a as TogetherAuthConfigContextProvider,t as TogetherTypes,n as TopicSelectList,V as VerifiedTag,u as useTogetherAuthRequiredAction}from"./types-55cc5068.js";export{U as UserAvatar}from"./index.styled-4488ade6.js";export{B as BookingSearchBar,a as BookingSearchBarV2,t as CareTypes,C as ChevronDown}from"./types-8afbc621.js";export{c as CareConstants}from"./constants-1e2f4da9.js";export{a as ageGenerate,c as convertLocalizedStringToNumber,l as localizeNumberFormat}from"./localizeNumberFormat-2639c18f.js";export{B as Breakpoints,M as MediaQueries,S as ScreenSizeContext,q as ScreenSizeContextProvider,h as fadeIn,i as formatUrlWithPageParam,j as getBoundariesFromMediaQueryKey,k as getPopupWrapperDom,p as getWindowSizeGroups,l as getWrapperDomWithSelector,m as makeParams,o as safeEncodeURI,a as slideInDown,b as slideInLeft,c as slideInRight,s as slideInUp,e as slideOutDown,f as slideOutLeft,g as slideOutRight,d as slideOutUp,n as startCase,t as toggleNoScroll}from"./screenSizeContext-e31ea396.js";export{d as deleteCookie,g as getCookie,s as setCookie}from"./cookieHelper-9e782dd0.js";import*as Z from"react";import"styled-components";export{M as MBTheme,t as theme}from"./theme-9a93dfd1.js";export{a as abbreviateNumber}from"./number-ca9cfec8.js";export{d as getCareApiDomain,g as getCurrentBaseUrl,a as getCurrentSsoUrl,c as getDiscoverApiDomain,b as getTogetherApiDomain}from"./routing-daf10532.js";export{f as formatHealthTool,g as getDynamicHealthTool,a as getDynamicHealthToolWithCache}from"./getDynamicHealthTool-c324b88e.js";export{g as getSocialList}from"./getSocialList-ed050273.js";export{f as formatPill}from"./dataTransform-dbb710ed.js";export{V as Visible}from"./Visible-c3f66056.js";import"./Onboarding-330e4b35.js";import"date-fns/locale";import"./isProduction-4af4f5a0.js";import"./gAssets.js";import"./tslib.es6-aee30ad9.js";import"@mantine/core";import"innertext";import"@mantine/dates";import"dayjs";import"./translationsContext-6d961fa2.js";import"string-format";import"@mantine/hooks";import"lodash/throttle";import"date-fns";import"lodash/debounce";import"./types-a9711d15.js";import"./index-24e00055.js";import"./index-66a090b1.js";import"react-hook-form";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"uuid";import"./core-b59b52c9.js";import"./normalizeLink-44935789.js";import"./index-fbc1883d.js";import"./paths-406b71bd.js";import"react-keyed-flatten-children";import"@mantine/carousel";import"slugify";import"@hookform/resolvers/yup";import"react-day-picker/DayPickerInput";import"react-dom";import"./index.styled-66d15411.js";import"./utils-9b208f6d.js";import"react-contenteditable";import"dayjs/plugin/relativeTime";import"./index-571e5b86.js";import"react-loading-skeleton";import"lodash/shuffle";const W=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.66797 9.99984C1.66797 5.39984 5.4013 1.6665 10.0013 1.6665C14.6013 1.6665 18.3346 5.39984 18.3346 9.99984C18.3346 14.5998 14.6013 18.3332 10.0013 18.3332C5.4013 18.3332 1.66797 14.5998 1.66797 9.99984ZM4.75147 10.5828L7.74314 13.5745C8.06814 13.8995 8.60147 13.8995 8.91814 13.5745L15.2431 7.24948C15.5681 6.92448 15.5681 6.39948 15.2431 6.07448C14.9181 5.74948 14.3931 5.74948 14.0681 6.07448L8.3348 11.8078L5.92647 9.40781C5.60147 9.08281 5.07647 9.08281 4.75147 9.40781C4.59543 9.56351 4.50773 9.77488 4.50773 9.99531C4.50773 10.2157 4.59543 10.4271 4.75147 10.5828Z"}),Z.createElement("path",{d:"M7.74322 13.5772L4.75155 10.5856C4.59551 10.4299 4.50781 10.2185 4.50781 9.99808C4.50781 9.77765 4.59551 9.56627 4.75155 9.41058C5.07655 9.08558 5.60155 9.08558 5.92655 9.41058L8.33488 11.8106L14.0682 6.07725C14.3932 5.75225 14.9182 5.75225 15.2432 6.07725C15.5682 6.40225 15.5682 6.92725 15.2432 7.25225L8.91822 13.5772C8.60155 13.9022 8.06822 13.9022 7.74322 13.5772Z",fill:"white"})),_=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M10.929 12.0002L14.75 8.17915C15.164 7.76515 15.164 7.09315 14.75 6.67915C14.336 6.26515 13.664 6.26515 13.25 6.67915L8.63605 11.2932C8.24505 11.6842 8.24505 12.3172 8.63605 12.7072L13.25 17.3212C13.664 17.7352 14.336 17.7352 14.75 17.3212C15.164 16.9072 15.164 16.2352 14.75 15.8212L10.929 12.0002Z"})),Q=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M14.071 12.0002L10.25 8.17915C9.83598 7.76515 9.83598 7.09315 10.25 6.67915C10.664 6.26515 11.336 6.26515 11.75 6.67915L16.364 11.2932C16.755 11.6842 16.755 12.3172 16.364 12.7072L11.75 17.3212C11.336 17.7352 10.664 17.7352 10.25 17.3212C9.83598 16.9072 9.83598 16.2352 10.25 15.8212L14.071 12.0002Z"})),X=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M7.80267 6.61943L10.35 9.16676C10.626 9.44276 11.074 9.44276 11.35 9.16676C11.626 8.89076 11.626 8.44276 11.35 8.16676L8.27401 5.09076C8.01334 4.8301 7.59134 4.8301 7.33134 5.09076L4.25534 8.16676C3.97934 8.44276 3.97934 8.89076 4.25534 9.16676C4.53134 9.44276 4.97934 9.44276 5.25534 9.16676L7.80267 6.61943Z"})),Y=e=>Z.createElement("svg",Object.assign({className:"spinner",viewBox:"0 0 50 50",fill:"currentColor",width:"1em",height:"1em"},e),Z.createElement("circle",{className:"path",cx:25,cy:25,r:20,stroke:"currentColor",strokeWidth:5})),$=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M63.9688 40.6414L71.5135 36.8271H71.5214L69.2091 66.2105C69.1295 67.2226 68.8514 68.209 68.3905 69.1135C67.9296 70.018 67.2951 70.8229 66.5231 71.4821C65.7511 72.1414 64.8568 72.6421 63.8913 72.9556C62.9258 73.2692 61.908 73.3894 60.896 73.3095L13.7009 69.5939C12.2428 69.4829 10.8477 68.9538 9.68262 68.0701L37.6513 53.9349L63.9688 40.6414Z",fill:"#91CAFF"}),Z.createElement("path",{d:"M66.5154 30.7156L71.6092 36.5132L64.0645 40.3275L66.5154 30.7156Z",fill:"#2B62CD"}),Z.createElement("path",{d:"M66.03 20.0896L66.0298 20.0896L54.445 17.1371L33.1143 11.7035H33.1064L33.0912 11.6997L27.0869 10.1654L66.03 20.0896ZM66.03 20.0896C66.408 20.1854 66.7633 20.3548 67.0757 20.5882C67.3881 20.8215 67.6514 21.1141 67.8506 21.4493C68.0498 21.7845 68.1809 22.1557 68.2364 22.5417C68.2919 22.9276 68.2708 23.3207 68.1742 23.6985L68.1742 23.6986M66.03 20.0896L68.1742 23.6986M68.1742 23.6986L66.3914 30.6842L66.5125 30.7151M68.1742 23.6986L66.5125 30.7151M66.5125 30.7151L66.3914 30.6842L63.9545 40.241L37.7595 53.4735L16.9721 37.5413M66.5125 30.7151L16.9721 37.5413M16.9721 37.5413L17.075 37.4096L17.0911 37.3889L17.0976 37.3634L21.0735 21.7341L21.0805 21.7254L21.0871 21.6992L23.477 12.3089C23.6715 11.546 24.1611 10.8916 24.838 10.4896C25.515 10.0876 26.3239 9.97102 27.0868 10.1654L16.9721 37.5413Z",fill:"white",stroke:"#E4E8EC",strokeWidth:.25}),Z.createElement("path",{d:"M47.6766 9.2919L54.4861 17.0363L33.1367 11.598L36.9335 8.43973C38.4844 7.1591 40.4726 6.53198 42.4776 6.69102C44.4826 6.85005 46.3471 7.78278 47.6766 9.2919Z",fill:"#2B62CD"}),Z.createElement("path",{d:"M37.7462 53.6208L9.77752 67.756C8.72905 66.9794 7.89559 65.9486 7.3557 64.7608C6.81581 63.5729 6.58726 62.2672 6.6916 60.9666L9.00473 31.5911L16.7963 37.564L37.7462 53.6208Z",fill:"#65B5FF"}),Z.createElement("path",{d:"M20.9577 21.6777L16.9751 37.3332L16.7946 37.5644L9.00391 31.5914L20.9577 21.6777Z",fill:"#2B62CD"}),Z.createElement("path",{d:"M40.797 39.6731C46.1394 41.0733 51.6054 37.8775 53.0056 32.5351C54.4058 27.1927 51.21 21.7268 45.8676 20.3266C40.5252 18.9263 35.0592 22.1221 33.659 27.4645C32.2588 32.8069 35.4546 38.2729 40.797 39.6731Z",fill:"#00CB8A"}),Z.createElement("path",{d:"M42.0398 32.9697C41.6263 32.862 41.238 32.6738 40.8973 32.4158C40.5566 32.1578 40.2701 31.8352 40.0542 31.4663L39.2137 30.0279C39.1039 29.8324 39.0753 29.6016 39.134 29.3852C39.1927 29.1689 39.3341 28.9842 39.5277 28.871C39.7212 28.7579 39.9515 28.7252 40.1689 28.7802C40.3862 28.8352 40.5733 28.9733 40.6898 29.1649L41.5304 30.6033C41.6319 30.7769 41.7666 30.9289 41.9269 31.0504C42.0871 31.172 42.2698 31.2608 42.4643 31.3118C42.6589 31.3628 42.8616 31.375 43.0609 31.3477C43.2602 31.3203 43.4522 31.254 43.6258 31.1525L52.5607 26.5173C52.7613 26.4192 52.9924 26.4034 53.2045 26.4734C53.4166 26.5435 53.5929 26.6937 53.6956 26.892C53.7984 27.0903 53.8195 27.3209 53.7544 27.5346C53.6893 27.7483 53.5432 27.928 53.3473 28.0353L44.4483 32.6486C44.0877 32.8581 43.6894 32.9943 43.2761 33.0494C42.8628 33.1045 42.4427 33.0774 42.0398 32.9697Z",fill:"white"})),ee=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M63.9688 40.6414L71.5135 36.8271H71.5214L69.2091 66.2105C69.1295 67.2226 68.8514 68.209 68.3905 69.1135C67.9296 70.018 67.2951 70.8229 66.5231 71.4821C65.7511 72.1414 64.8568 72.6421 63.8913 72.9556C62.9258 73.2692 61.908 73.3894 60.896 73.3095L13.7009 69.5939C12.2428 69.4829 10.8477 68.9538 9.68262 68.0701L37.6513 53.9349L63.9688 40.6414Z",fill:"#91CAFF"}),Z.createElement("path",{d:"M66.5154 30.7156L71.6092 36.5132L64.0645 40.3275L66.5154 30.7156Z",fill:"#2B62CD"}),Z.createElement("path",{d:"M65.9578 20.3722L65.9583 20.3723C66.2991 20.4587 66.6195 20.6115 66.9012 20.8218C67.1829 21.0322 67.4203 21.2961 67.5999 21.5983C67.7794 21.9005 67.8976 22.2352 67.9477 22.5832C67.9978 22.9312 67.9787 23.2856 67.8916 23.6262L67.8916 23.6264L66.1088 30.612L66.1088 30.6121L63.7046 40.0405L37.7915 53.1306L17.3693 37.4783L17.3803 37.4353L21.3406 21.8671L21.3476 21.8584L21.3698 21.7712L23.7596 12.381C23.7596 12.3809 23.7597 12.3809 23.7597 12.3808C23.9351 11.6929 24.3765 11.1028 24.9869 10.7404C25.5974 10.3779 26.3269 10.2727 27.0149 10.4481L33.019 11.9822L33.0697 11.9952H33.0777L54.3729 17.4197L54.373 17.4197L65.9578 20.3722Z",fill:"white",stroke:"#E4E8EC",strokeWidth:.833333}),Z.createElement("path",{d:"M47.6766 9.2919L54.4861 17.0363L33.1367 11.598L36.9335 8.43973C38.4844 7.1591 40.4726 6.53198 42.4776 6.69102C44.4826 6.85005 46.3471 7.78278 47.6766 9.2919Z",fill:"#2B62CD"}),Z.createElement("path",{d:"M37.7462 53.6208L9.77752 67.756C8.72905 66.9794 7.89559 65.9486 7.3557 64.7608C6.81581 63.5729 6.58726 62.2672 6.6916 60.9666L9.00473 31.5911L16.7963 37.564L37.7462 53.6208Z",fill:"#65B5FF"}),Z.createElement("path",{d:"M20.9577 21.6777L16.9751 37.3332L16.7946 37.5644L9.00391 31.5914L20.9577 21.6777Z",fill:"#2B62CD"}),Z.createElement("path",{d:"M36.2349 37.7184C40.4975 41.2301 46.7998 40.6212 50.3115 36.3586C53.8231 32.0959 53.2143 25.7936 48.9516 22.282C44.689 18.7703 38.3867 19.3792 34.875 23.6418C31.3634 27.9045 31.9722 34.2068 36.2349 37.7184Z",fill:"#FF5331"}),Z.createElement("g",{clipPath:"url(#clip0_1176_26159)"},Z.createElement("path",{d:"M48.4022 27.8621C48.317 27.6306 48.1433 27.4425 47.9195 27.3391C47.6956 27.2357 47.4398 27.2254 47.2084 27.3105L43.1437 28.8064L41.6479 24.7418C41.5597 24.5144 41.3858 24.3308 41.1635 24.2304C40.9413 24.1301 40.6885 24.1211 40.4596 24.2053C40.2308 24.2895 40.0442 24.4602 39.94 24.6807C39.8358 24.9012 39.8224 25.1538 39.9026 25.3841L41.3984 29.4487L37.3338 30.9445C37.2172 30.9851 37.1098 31.0486 37.018 31.1312C36.9262 31.2137 36.8517 31.3137 36.7989 31.4254C36.7462 31.537 36.7162 31.6581 36.7107 31.7815C36.7052 31.9048 36.7243 32.0281 36.767 32.144C36.8096 32.2598 36.8749 32.3661 36.9591 32.4565C37.0432 32.5469 37.1445 32.6196 37.2571 32.6704C37.3697 32.7212 37.4912 32.7491 37.6146 32.7524C37.7381 32.7558 37.861 32.7345 37.9761 32.6898L42.0407 31.194L43.5366 35.2586C43.6247 35.486 43.7987 35.6696 44.021 35.7699C44.2432 35.8703 44.496 35.8793 44.7248 35.7951C44.9537 35.7109 45.1403 35.5401 45.2445 35.3197C45.3487 35.0992 45.3621 34.8466 45.2819 34.6163L43.7861 30.5517L47.8507 29.0559C48.0821 28.9707 48.2702 28.797 48.3736 28.5732C48.477 28.3493 48.4873 28.0935 48.4022 27.8621Z",fill:"white"})),Z.createElement("defs",null,Z.createElement("clipPath",{id:"clip0_1176_26159"},Z.createElement("rect",{width:11.1603,height:11.1603,fill:"white",transform:"translate(39.8672 22.5942) rotate(24.7957)"})))),te=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M14 0H3C1.61929 0 0.5 1.11929 0.5 2.5V13.5C0.5 14.8807 1.61929 16 3 16H14C15.3807 16 16.5 14.8807 16.5 13.5V2.5C16.5 1.11929 15.3807 0 14 0Z",fill:"#1778F2"}),Z.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.657 16V9.7495H12.2845L12.5 7.595H10.657L10.66 6.517C10.66 5.9555 10.71 5.6545 11.4715 5.6545H12.4885V3.5H10.861C8.906 3.5 8.2185 4.545 8.2185 6.302V7.5955H7V9.7495H8.2185V16H10.657Z",fill:"white"})),ae=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M14.6819 8.15547C14.6819 7.57992 14.6353 7.15992 14.5345 6.72437H7.98047V9.32212H11.8275C11.75 9.96769 11.3312 10.9399 10.4004 11.5932L10.3874 11.6802L12.4596 13.29L12.6032 13.3044C13.9217 12.0832 14.6819 10.2866 14.6819 8.15547Z",fill:"#4285F4"}),Z.createElement("path",{d:"M7.98042 15.0001C9.86516 15.0001 11.4474 14.3778 12.6031 13.3045L10.4003 11.5934C9.81089 12.0056 9.01973 12.2934 7.98042 12.2934C6.13445 12.2934 4.5677 11.0723 4.0092 9.38452L3.92733 9.39149L1.77256 11.0637L1.74438 11.1423C2.8923 13.4289 5.2502 15.0001 7.98042 15.0001Z",fill:"#34A853"}),Z.createElement("path",{d:"M4.00915 9.38424C3.86178 8.94869 3.7765 8.48199 3.7765 7.99979C3.7765 7.51754 3.86178 7.05089 4.00139 6.61534L3.99749 6.52258L1.81572 4.82349L1.74434 4.85753C1.27123 5.80644 0.999756 6.87201 0.999756 7.99979C0.999756 9.12757 1.27123 10.1931 1.74434 11.142L4.00915 9.38424Z",fill:"#FBBC05"}),Z.createElement("path",{d:"M7.98042 3.70665C9.2912 3.70665 10.1754 4.27443 10.6796 4.7489L12.6497 2.82C11.4397 1.69223 9.86516 1 7.98042 1C5.2502 1 2.8923 2.5711 1.74438 4.85775L4.00144 6.61556C4.5677 4.92778 6.13445 3.70665 7.98042 3.70665Z",fill:"#EB4335"})),se=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.71 4.54002C2.32 4.15002 2.32 3.52002 2.71 3.13002C3.1 2.74002 3.74 2.74002 4.13 3.13002L20.44 19.46C20.83 19.85 20.83 20.48 20.44 20.87C20.05 21.26 19.42 21.26 19.03 20.87L16.31 18.15C14.97 18.67 13.52 18.97 12 18.97C7 18.97 2.73 15.86 1 11.47C1.77 9.50002 3.06 7.80002 4.68 6.51002L2.71 4.54002ZM17 11.47C17 8.71002 14.76 6.47002 12 6.47002C11.49 6.47002 11 6.57002 10.53 6.71002L8.36 4.54002C9.51 4.17002 10.73 3.97002 12 3.97002C17 3.97002 21.27 7.08002 23 11.46C22.31 13.22 21.21 14.76 19.82 15.99L16.76 12.93C16.9 12.47 17 11.98 17 11.47ZM12 16.47C9.24 16.47 7 14.23 7 11.47C7 10.7 7.18 9.97002 7.49 9.33002L9.06 10.9C9.03 11.08 9 11.27 9 11.47C9 13.13 10.34 14.47 12 14.47C12.2 14.47 12.38 14.44 12.57 14.4L14.14 15.97C13.49 16.29 12.77 16.47 12 16.47ZM14.97 11.14C14.82 9.74002 13.72 8.65002 12.33 8.50002L14.97 11.14Z"})),oe=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("circle",{cx:12.5,cy:12,r:10,stroke:"#DBDFE5",strokeWidth:4}),Z.createElement("mask",{id:"path-2-inside-1_917_29592",fill:"white"},Z.createElement("path",{d:"M12.5 0C14.964 2.93833e-08 17.3683 0.758527 19.3863 2.17253C21.4042 3.58653 22.938 5.58746 23.7791 7.90347C24.6203 10.2195 24.7281 12.7383 24.0879 15.1177C23.4477 17.4971 22.0906 19.6218 20.2009 21.2031C18.3111 22.7843 15.9804 23.7456 13.5254 23.9561C11.0704 24.1667 8.61007 23.6164 6.47869 22.38C4.3473 21.1436 2.64819 19.281 1.6122 17.0454C0.576199 14.8097 0.253539 12.3093 0.688053 9.8839L4.59856 10.5845C4.3079 12.2069 4.52374 13.8795 5.21676 15.375C5.90977 16.8705 7.04637 18.1165 8.47213 18.9435C9.89789 19.7706 11.5437 20.1387 13.1859 19.9979C14.8282 19.857 16.3873 19.214 17.6514 18.1563C18.9155 17.0985 19.8233 15.6772 20.2516 14.0856C20.6798 12.4939 20.6077 10.8089 20.045 9.25969C19.4823 7.71042 18.4563 6.37193 17.1065 5.42605C15.7566 4.48017 14.1483 3.97277 12.5 3.97277L12.5 0Z"})),Z.createElement("path",{d:"M12.5 0C14.964 2.93833e-08 17.3683 0.758527 19.3863 2.17253C21.4042 3.58653 22.938 5.58746 23.7791 7.90347C24.6203 10.2195 24.7281 12.7383 24.0879 15.1177C23.4477 17.4971 22.0906 19.6218 20.2009 21.2031C18.3111 22.7843 15.9804 23.7456 13.5254 23.9561C11.0704 24.1667 8.61007 23.6164 6.47869 22.38C4.3473 21.1436 2.64819 19.281 1.6122 17.0454C0.576199 14.8097 0.253539 12.3093 0.688053 9.8839L4.59856 10.5845C4.3079 12.2069 4.52374 13.8795 5.21676 15.375C5.90977 16.8705 7.04637 18.1165 8.47213 18.9435C9.89789 19.7706 11.5437 20.1387 13.1859 19.9979C14.8282 19.857 16.3873 19.214 17.6514 18.1563C18.9155 17.0985 19.8233 15.6772 20.2516 14.0856C20.6798 12.4939 20.6077 10.8089 20.045 9.25969C19.4823 7.71042 18.4563 6.37193 17.1065 5.42605C15.7566 4.48017 14.1483 3.97277 12.5 3.97277L12.5 0Z",stroke:"#2D87F3",strokeWidth:8,mask:"url(#path-2-inside-1_917_29592)"},Z.createElement("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 12.5 12",to:"360 12.5 12",dur:"2s",repeatCount:"indefinite"})));export{W as CheckCircle,_ as ChevronLeft,Q as ChevronRight,X as ChevronUp,Y as Circle,$ as EmailCheck,ee as EmailFail,te as Facebook,ae as Google,se as InVisible,oe as Spinning};
|
|
1
|
+
export{i as Types}from"./index-8bd65ef8.js";export{i as Constants}from"./index-3e6373bb.js";export{A as Alert,c as ArticleCard,d as ArticleCardV2,p as BMICardEmbed,t as BMRCardEmbed,q as BabyGrowthCardEmbed,r as BabyPoopEmbed,B as Badge,a as BorderHeading,w as Breadcrumbs,e as CategoryCard,C as Checkbox,f as CheckboxGroup,n as CookieAcceptConfirm,v as DateRangePicker,D as DueDateCardEmbed,F as FileDropdown,z as FixedBottomAdBlock,m as FloatButtonGroup,G as Grid,I as IconText,O as OvulationCardEmbed,u as PWGCardEmbed,P as Pagination,g as ProgressBar,R as RateStars,S as ScrollList,o as SeoHead,x as ShareContainer,y as ShareDrawer,i as SideMenu,h as StatisticCard,l as SurveyThankyouCard,s as THRCardEmbed,j as Table,k as Tabs,T as Tag,b as Toggle}from"./fixedBottomAdBlock-692ebffe.js";export{A as Avatar,L as LanguageSwitcher,d as NavigationLogoutPopup,e as NavigationProfileButton,N as NavigationV2,P as ProfilePopup,U as UserProfileNavigation,b as UserProfileNavigationHeader,c as UserProfileNavigationStats,g as getNavMenuContent,a as getNavMenuContentWithCache}from"./index-63f8c081.js";export{B as Button}from"./index-37ee7df2.js";export{A as AuthorBadge,a as BookingBtn,B as BtnChoice,D as Divider}from"./index-ec81ec8c.js";export{C as CaretDown,D as DefaultComponentGlobalContextData,F as Flag,G as GlobalData,H as Heading,L as LogoIcon,P as PureInput,S as StepRenderer,b as StepRendererContext,T as TextArea,a as TextDivider,d as TogetherComponentGlobalContext,e as TogetherComponentGlobalContextProvider,c as TogetherConstants}from"./utils-5d318c50.js";export{I as Input}from"./index-29fe41db.js";export{C as Container,I as Icon,L as Label}from"./index-4ad41345.js";export{L as Logo}from"./index-a9fd5256.js";export{A as AdBlock,D as DatePicker,c as DoctorInfo,a as Dropdown,M as MobileBottomNavigation,d as MobileBottomNavigationIcon,R as Radio,b as RadioGroup,S as SurveyQuestionCard,T as ToolsBannerCard}from"./index-9fd9846a.js";export{T as Text}from"./index-3c49ea26.js";export{D as Drawer,R as RadioImageGroup}from"./index-a9806cc0.js";export{C as CustomReferenceDot,I as ImageWrap}from"./index-d5229a9b.js";export{P as Popup,d as TogetherDataTransforms}from"./dataTransform-21d116c7.js";export{M as Modal}from"./index-3842a929.js";export{P as PillCarousel}from"./index-64e1c0a9.js";export{A as AddressInput}from"./index-07433a4c.js";export{Footer}from"./footer.js";export{u as useTranslations}from"./useTranslations-e48b2888.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-c976efa8.js";export{u as useFbDataLayer,a as usePrevious,b as useRafState}from"./useRafState-21543976.js";export{u as useHealthToolsCache}from"./useHealthToolCache-2cf3b6ca.js";export{u as useIsInit}from"./useIsInit-b131693a.js";export{i as initSharedOutSideClickListener,a as useOutsideClick,u as useSharedOutsideClick}from"./useOutsideClick-6b04c050.js";export{u as useInitialMount,a as useUniqueId}from"./useUniqueId-dd165054.js";export{g as CardAuthor,C as CardLink,D as CardPost,E as CardPostPopoverMore,b as CardReactions,F as CardReply,G as CardReplyPopover,K as Close,h as CreateNewPostContent,i as CreatePostDescription,j as CreatePostTitle,s as ImagePreviewPopup,I as InputCommentBar,e as LabelPin,d as LabelSortPin,f as LabelSorting,L as Loading,H as PopoverMenu,P as PopupDanger,l as PopupDoctor,k as PopupExpert,o as PopupFrame,m as PopupHospital,r as PostContent,w as PostImagePreview,v as PostSingleImageViewPopup,z as ProfileDetail,y as ProfileDetailModal,q as ShareBox,S as SharePopup,B as SkipQuestionOfExpertBtn,x as SocialLinkPreview,J as SourceList,p as SubmitReportForm,A as TabNameInProfileDetail,c as TagTopic,T as TogetherAuthConfigContext,a as TogetherAuthConfigContextProvider,t as TogetherTypes,n as TopicSelectList,V as VerifiedTag,u as useTogetherAuthRequiredAction}from"./types-55cc5068.js";export{U as UserAvatar}from"./index.styled-4488ade6.js";export{B as BookingSearchBar,a as BookingSearchBarV2,t as CareTypes,C as ChevronDown}from"./types-4efc31d6.js";export{c as CareConstants}from"./constants-1e2f4da9.js";export{a as ageGenerate,c as convertLocalizedStringToNumber,l as localizeNumberFormat}from"./localizeNumberFormat-2639c18f.js";export{B as Breakpoints,M as MediaQueries,S as ScreenSizeContext,q as ScreenSizeContextProvider,h as fadeIn,i as formatUrlWithPageParam,j as getBoundariesFromMediaQueryKey,k as getPopupWrapperDom,p as getWindowSizeGroups,l as getWrapperDomWithSelector,m as makeParams,o as safeEncodeURI,a as slideInDown,b as slideInLeft,c as slideInRight,s as slideInUp,e as slideOutDown,f as slideOutLeft,g as slideOutRight,d as slideOutUp,n as startCase,t as toggleNoScroll}from"./screenSizeContext-e31ea396.js";export{d as deleteCookie,g as getCookie,s as setCookie}from"./cookieHelper-9e782dd0.js";import*as Z from"react";import"styled-components";export{M as MBTheme,t as theme}from"./theme-9a93dfd1.js";export{a as abbreviateNumber}from"./number-ca9cfec8.js";export{d as getCareApiDomain,g as getCurrentBaseUrl,a as getCurrentSsoUrl,c as getDiscoverApiDomain,b as getTogetherApiDomain}from"./routing-daf10532.js";export{f as formatHealthTool,g as getDynamicHealthTool,a as getDynamicHealthToolWithCache}from"./getDynamicHealthTool-c324b88e.js";export{g as getSocialList}from"./getSocialList-ed050273.js";export{f as formatPill}from"./dataTransform-dbb710ed.js";export{V as Visible}from"./Visible-c3f66056.js";import"./Onboarding-330e4b35.js";import"date-fns/locale";import"./isProduction-4af4f5a0.js";import"./gAssets.js";import"./tslib.es6-aee30ad9.js";import"@mantine/core";import"innertext";import"@mantine/dates";import"dayjs";import"./translationsContext-6d961fa2.js";import"string-format";import"@mantine/hooks";import"lodash/throttle";import"date-fns";import"lodash/debounce";import"./types-a9711d15.js";import"./index-24e00055.js";import"./index-66a090b1.js";import"react-hook-form";import"date-fns/locale/en-US";import"date-fns/locale/id";import"date-fns/locale/vi";import"date-fns/locale/zh-TW";import"uuid";import"./core-b59b52c9.js";import"./normalizeLink-44935789.js";import"./index-fbc1883d.js";import"./paths-406b71bd.js";import"react-keyed-flatten-children";import"@mantine/carousel";import"slugify";import"@hookform/resolvers/yup";import"react-day-picker/DayPickerInput";import"react-dom";import"./index.styled-66d15411.js";import"./utils-9b208f6d.js";import"react-contenteditable";import"dayjs/plugin/relativeTime";import"./index-571e5b86.js";import"react-loading-skeleton";import"lodash/shuffle";const W=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.66797 9.99984C1.66797 5.39984 5.4013 1.6665 10.0013 1.6665C14.6013 1.6665 18.3346 5.39984 18.3346 9.99984C18.3346 14.5998 14.6013 18.3332 10.0013 18.3332C5.4013 18.3332 1.66797 14.5998 1.66797 9.99984ZM4.75147 10.5828L7.74314 13.5745C8.06814 13.8995 8.60147 13.8995 8.91814 13.5745L15.2431 7.24948C15.5681 6.92448 15.5681 6.39948 15.2431 6.07448C14.9181 5.74948 14.3931 5.74948 14.0681 6.07448L8.3348 11.8078L5.92647 9.40781C5.60147 9.08281 5.07647 9.08281 4.75147 9.40781C4.59543 9.56351 4.50773 9.77488 4.50773 9.99531C4.50773 10.2157 4.59543 10.4271 4.75147 10.5828Z"}),Z.createElement("path",{d:"M7.74322 13.5772L4.75155 10.5856C4.59551 10.4299 4.50781 10.2185 4.50781 9.99808C4.50781 9.77765 4.59551 9.56627 4.75155 9.41058C5.07655 9.08558 5.60155 9.08558 5.92655 9.41058L8.33488 11.8106L14.0682 6.07725C14.3932 5.75225 14.9182 5.75225 15.2432 6.07725C15.5682 6.40225 15.5682 6.92725 15.2432 7.25225L8.91822 13.5772C8.60155 13.9022 8.06822 13.9022 7.74322 13.5772Z",fill:"white"})),_=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M10.929 12.0002L14.75 8.17915C15.164 7.76515 15.164 7.09315 14.75 6.67915C14.336 6.26515 13.664 6.26515 13.25 6.67915L8.63605 11.2932C8.24505 11.6842 8.24505 12.3172 8.63605 12.7072L13.25 17.3212C13.664 17.7352 14.336 17.7352 14.75 17.3212C15.164 16.9072 15.164 16.2352 14.75 15.8212L10.929 12.0002Z"})),Q=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M14.071 12.0002L10.25 8.17915C9.83598 7.76515 9.83598 7.09315 10.25 6.67915C10.664 6.26515 11.336 6.26515 11.75 6.67915L16.364 11.2932C16.755 11.6842 16.755 12.3172 16.364 12.7072L11.75 17.3212C11.336 17.7352 10.664 17.7352 10.25 17.3212C9.83598 16.9072 9.83598 16.2352 10.25 15.8212L14.071 12.0002Z"})),X=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M7.80267 6.61943L10.35 9.16676C10.626 9.44276 11.074 9.44276 11.35 9.16676C11.626 8.89076 11.626 8.44276 11.35 8.16676L8.27401 5.09076C8.01334 4.8301 7.59134 4.8301 7.33134 5.09076L4.25534 8.16676C3.97934 8.44276 3.97934 8.89076 4.25534 9.16676C4.53134 9.44276 4.97934 9.44276 5.25534 9.16676L7.80267 6.61943Z"})),Y=e=>Z.createElement("svg",Object.assign({className:"spinner",viewBox:"0 0 50 50",fill:"currentColor",width:"1em",height:"1em"},e),Z.createElement("circle",{className:"path",cx:25,cy:25,r:20,stroke:"currentColor",strokeWidth:5})),$=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M63.9688 40.6414L71.5135 36.8271H71.5214L69.2091 66.2105C69.1295 67.2226 68.8514 68.209 68.3905 69.1135C67.9296 70.018 67.2951 70.8229 66.5231 71.4821C65.7511 72.1414 64.8568 72.6421 63.8913 72.9556C62.9258 73.2692 61.908 73.3894 60.896 73.3095L13.7009 69.5939C12.2428 69.4829 10.8477 68.9538 9.68262 68.0701L37.6513 53.9349L63.9688 40.6414Z",fill:"#91CAFF"}),Z.createElement("path",{d:"M66.5154 30.7156L71.6092 36.5132L64.0645 40.3275L66.5154 30.7156Z",fill:"#2B62CD"}),Z.createElement("path",{d:"M66.03 20.0896L66.0298 20.0896L54.445 17.1371L33.1143 11.7035H33.1064L33.0912 11.6997L27.0869 10.1654L66.03 20.0896ZM66.03 20.0896C66.408 20.1854 66.7633 20.3548 67.0757 20.5882C67.3881 20.8215 67.6514 21.1141 67.8506 21.4493C68.0498 21.7845 68.1809 22.1557 68.2364 22.5417C68.2919 22.9276 68.2708 23.3207 68.1742 23.6985L68.1742 23.6986M66.03 20.0896L68.1742 23.6986M68.1742 23.6986L66.3914 30.6842L66.5125 30.7151M68.1742 23.6986L66.5125 30.7151M66.5125 30.7151L66.3914 30.6842L63.9545 40.241L37.7595 53.4735L16.9721 37.5413M66.5125 30.7151L16.9721 37.5413M16.9721 37.5413L17.075 37.4096L17.0911 37.3889L17.0976 37.3634L21.0735 21.7341L21.0805 21.7254L21.0871 21.6992L23.477 12.3089C23.6715 11.546 24.1611 10.8916 24.838 10.4896C25.515 10.0876 26.3239 9.97102 27.0868 10.1654L16.9721 37.5413Z",fill:"white",stroke:"#E4E8EC",strokeWidth:.25}),Z.createElement("path",{d:"M47.6766 9.2919L54.4861 17.0363L33.1367 11.598L36.9335 8.43973C38.4844 7.1591 40.4726 6.53198 42.4776 6.69102C44.4826 6.85005 46.3471 7.78278 47.6766 9.2919Z",fill:"#2B62CD"}),Z.createElement("path",{d:"M37.7462 53.6208L9.77752 67.756C8.72905 66.9794 7.89559 65.9486 7.3557 64.7608C6.81581 63.5729 6.58726 62.2672 6.6916 60.9666L9.00473 31.5911L16.7963 37.564L37.7462 53.6208Z",fill:"#65B5FF"}),Z.createElement("path",{d:"M20.9577 21.6777L16.9751 37.3332L16.7946 37.5644L9.00391 31.5914L20.9577 21.6777Z",fill:"#2B62CD"}),Z.createElement("path",{d:"M40.797 39.6731C46.1394 41.0733 51.6054 37.8775 53.0056 32.5351C54.4058 27.1927 51.21 21.7268 45.8676 20.3266C40.5252 18.9263 35.0592 22.1221 33.659 27.4645C32.2588 32.8069 35.4546 38.2729 40.797 39.6731Z",fill:"#00CB8A"}),Z.createElement("path",{d:"M42.0398 32.9697C41.6263 32.862 41.238 32.6738 40.8973 32.4158C40.5566 32.1578 40.2701 31.8352 40.0542 31.4663L39.2137 30.0279C39.1039 29.8324 39.0753 29.6016 39.134 29.3852C39.1927 29.1689 39.3341 28.9842 39.5277 28.871C39.7212 28.7579 39.9515 28.7252 40.1689 28.7802C40.3862 28.8352 40.5733 28.9733 40.6898 29.1649L41.5304 30.6033C41.6319 30.7769 41.7666 30.9289 41.9269 31.0504C42.0871 31.172 42.2698 31.2608 42.4643 31.3118C42.6589 31.3628 42.8616 31.375 43.0609 31.3477C43.2602 31.3203 43.4522 31.254 43.6258 31.1525L52.5607 26.5173C52.7613 26.4192 52.9924 26.4034 53.2045 26.4734C53.4166 26.5435 53.5929 26.6937 53.6956 26.892C53.7984 27.0903 53.8195 27.3209 53.7544 27.5346C53.6893 27.7483 53.5432 27.928 53.3473 28.0353L44.4483 32.6486C44.0877 32.8581 43.6894 32.9943 43.2761 33.0494C42.8628 33.1045 42.4427 33.0774 42.0398 32.9697Z",fill:"white"})),ee=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M63.9688 40.6414L71.5135 36.8271H71.5214L69.2091 66.2105C69.1295 67.2226 68.8514 68.209 68.3905 69.1135C67.9296 70.018 67.2951 70.8229 66.5231 71.4821C65.7511 72.1414 64.8568 72.6421 63.8913 72.9556C62.9258 73.2692 61.908 73.3894 60.896 73.3095L13.7009 69.5939C12.2428 69.4829 10.8477 68.9538 9.68262 68.0701L37.6513 53.9349L63.9688 40.6414Z",fill:"#91CAFF"}),Z.createElement("path",{d:"M66.5154 30.7156L71.6092 36.5132L64.0645 40.3275L66.5154 30.7156Z",fill:"#2B62CD"}),Z.createElement("path",{d:"M65.9578 20.3722L65.9583 20.3723C66.2991 20.4587 66.6195 20.6115 66.9012 20.8218C67.1829 21.0322 67.4203 21.2961 67.5999 21.5983C67.7794 21.9005 67.8976 22.2352 67.9477 22.5832C67.9978 22.9312 67.9787 23.2856 67.8916 23.6262L67.8916 23.6264L66.1088 30.612L66.1088 30.6121L63.7046 40.0405L37.7915 53.1306L17.3693 37.4783L17.3803 37.4353L21.3406 21.8671L21.3476 21.8584L21.3698 21.7712L23.7596 12.381C23.7596 12.3809 23.7597 12.3809 23.7597 12.3808C23.9351 11.6929 24.3765 11.1028 24.9869 10.7404C25.5974 10.3779 26.3269 10.2727 27.0149 10.4481L33.019 11.9822L33.0697 11.9952H33.0777L54.3729 17.4197L54.373 17.4197L65.9578 20.3722Z",fill:"white",stroke:"#E4E8EC",strokeWidth:.833333}),Z.createElement("path",{d:"M47.6766 9.2919L54.4861 17.0363L33.1367 11.598L36.9335 8.43973C38.4844 7.1591 40.4726 6.53198 42.4776 6.69102C44.4826 6.85005 46.3471 7.78278 47.6766 9.2919Z",fill:"#2B62CD"}),Z.createElement("path",{d:"M37.7462 53.6208L9.77752 67.756C8.72905 66.9794 7.89559 65.9486 7.3557 64.7608C6.81581 63.5729 6.58726 62.2672 6.6916 60.9666L9.00473 31.5911L16.7963 37.564L37.7462 53.6208Z",fill:"#65B5FF"}),Z.createElement("path",{d:"M20.9577 21.6777L16.9751 37.3332L16.7946 37.5644L9.00391 31.5914L20.9577 21.6777Z",fill:"#2B62CD"}),Z.createElement("path",{d:"M36.2349 37.7184C40.4975 41.2301 46.7998 40.6212 50.3115 36.3586C53.8231 32.0959 53.2143 25.7936 48.9516 22.282C44.689 18.7703 38.3867 19.3792 34.875 23.6418C31.3634 27.9045 31.9722 34.2068 36.2349 37.7184Z",fill:"#FF5331"}),Z.createElement("g",{clipPath:"url(#clip0_1176_26159)"},Z.createElement("path",{d:"M48.4022 27.8621C48.317 27.6306 48.1433 27.4425 47.9195 27.3391C47.6956 27.2357 47.4398 27.2254 47.2084 27.3105L43.1437 28.8064L41.6479 24.7418C41.5597 24.5144 41.3858 24.3308 41.1635 24.2304C40.9413 24.1301 40.6885 24.1211 40.4596 24.2053C40.2308 24.2895 40.0442 24.4602 39.94 24.6807C39.8358 24.9012 39.8224 25.1538 39.9026 25.3841L41.3984 29.4487L37.3338 30.9445C37.2172 30.9851 37.1098 31.0486 37.018 31.1312C36.9262 31.2137 36.8517 31.3137 36.7989 31.4254C36.7462 31.537 36.7162 31.6581 36.7107 31.7815C36.7052 31.9048 36.7243 32.0281 36.767 32.144C36.8096 32.2598 36.8749 32.3661 36.9591 32.4565C37.0432 32.5469 37.1445 32.6196 37.2571 32.6704C37.3697 32.7212 37.4912 32.7491 37.6146 32.7524C37.7381 32.7558 37.861 32.7345 37.9761 32.6898L42.0407 31.194L43.5366 35.2586C43.6247 35.486 43.7987 35.6696 44.021 35.7699C44.2432 35.8703 44.496 35.8793 44.7248 35.7951C44.9537 35.7109 45.1403 35.5401 45.2445 35.3197C45.3487 35.0992 45.3621 34.8466 45.2819 34.6163L43.7861 30.5517L47.8507 29.0559C48.0821 28.9707 48.2702 28.797 48.3736 28.5732C48.477 28.3493 48.4873 28.0935 48.4022 27.8621Z",fill:"white"})),Z.createElement("defs",null,Z.createElement("clipPath",{id:"clip0_1176_26159"},Z.createElement("rect",{width:11.1603,height:11.1603,fill:"white",transform:"translate(39.8672 22.5942) rotate(24.7957)"})))),te=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M14 0H3C1.61929 0 0.5 1.11929 0.5 2.5V13.5C0.5 14.8807 1.61929 16 3 16H14C15.3807 16 16.5 14.8807 16.5 13.5V2.5C16.5 1.11929 15.3807 0 14 0Z",fill:"#1778F2"}),Z.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.657 16V9.7495H12.2845L12.5 7.595H10.657L10.66 6.517C10.66 5.9555 10.71 5.6545 11.4715 5.6545H12.4885V3.5H10.861C8.906 3.5 8.2185 4.545 8.2185 6.302V7.5955H7V9.7495H8.2185V16H10.657Z",fill:"white"})),ae=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{d:"M14.6819 8.15547C14.6819 7.57992 14.6353 7.15992 14.5345 6.72437H7.98047V9.32212H11.8275C11.75 9.96769 11.3312 10.9399 10.4004 11.5932L10.3874 11.6802L12.4596 13.29L12.6032 13.3044C13.9217 12.0832 14.6819 10.2866 14.6819 8.15547Z",fill:"#4285F4"}),Z.createElement("path",{d:"M7.98042 15.0001C9.86516 15.0001 11.4474 14.3778 12.6031 13.3045L10.4003 11.5934C9.81089 12.0056 9.01973 12.2934 7.98042 12.2934C6.13445 12.2934 4.5677 11.0723 4.0092 9.38452L3.92733 9.39149L1.77256 11.0637L1.74438 11.1423C2.8923 13.4289 5.2502 15.0001 7.98042 15.0001Z",fill:"#34A853"}),Z.createElement("path",{d:"M4.00915 9.38424C3.86178 8.94869 3.7765 8.48199 3.7765 7.99979C3.7765 7.51754 3.86178 7.05089 4.00139 6.61534L3.99749 6.52258L1.81572 4.82349L1.74434 4.85753C1.27123 5.80644 0.999756 6.87201 0.999756 7.99979C0.999756 9.12757 1.27123 10.1931 1.74434 11.142L4.00915 9.38424Z",fill:"#FBBC05"}),Z.createElement("path",{d:"M7.98042 3.70665C9.2912 3.70665 10.1754 4.27443 10.6796 4.7489L12.6497 2.82C11.4397 1.69223 9.86516 1 7.98042 1C5.2502 1 2.8923 2.5711 1.74438 4.85775L4.00144 6.61556C4.5677 4.92778 6.13445 3.70665 7.98042 3.70665Z",fill:"#EB4335"})),se=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.71 4.54002C2.32 4.15002 2.32 3.52002 2.71 3.13002C3.1 2.74002 3.74 2.74002 4.13 3.13002L20.44 19.46C20.83 19.85 20.83 20.48 20.44 20.87C20.05 21.26 19.42 21.26 19.03 20.87L16.31 18.15C14.97 18.67 13.52 18.97 12 18.97C7 18.97 2.73 15.86 1 11.47C1.77 9.50002 3.06 7.80002 4.68 6.51002L2.71 4.54002ZM17 11.47C17 8.71002 14.76 6.47002 12 6.47002C11.49 6.47002 11 6.57002 10.53 6.71002L8.36 4.54002C9.51 4.17002 10.73 3.97002 12 3.97002C17 3.97002 21.27 7.08002 23 11.46C22.31 13.22 21.21 14.76 19.82 15.99L16.76 12.93C16.9 12.47 17 11.98 17 11.47ZM12 16.47C9.24 16.47 7 14.23 7 11.47C7 10.7 7.18 9.97002 7.49 9.33002L9.06 10.9C9.03 11.08 9 11.27 9 11.47C9 13.13 10.34 14.47 12 14.47C12.2 14.47 12.38 14.44 12.57 14.4L14.14 15.97C13.49 16.29 12.77 16.47 12 16.47ZM14.97 11.14C14.82 9.74002 13.72 8.65002 12.33 8.50002L14.97 11.14Z"})),oe=e=>Z.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Z.createElement("circle",{cx:12.5,cy:12,r:10,stroke:"#DBDFE5",strokeWidth:4}),Z.createElement("mask",{id:"path-2-inside-1_917_29592",fill:"white"},Z.createElement("path",{d:"M12.5 0C14.964 2.93833e-08 17.3683 0.758527 19.3863 2.17253C21.4042 3.58653 22.938 5.58746 23.7791 7.90347C24.6203 10.2195 24.7281 12.7383 24.0879 15.1177C23.4477 17.4971 22.0906 19.6218 20.2009 21.2031C18.3111 22.7843 15.9804 23.7456 13.5254 23.9561C11.0704 24.1667 8.61007 23.6164 6.47869 22.38C4.3473 21.1436 2.64819 19.281 1.6122 17.0454C0.576199 14.8097 0.253539 12.3093 0.688053 9.8839L4.59856 10.5845C4.3079 12.2069 4.52374 13.8795 5.21676 15.375C5.90977 16.8705 7.04637 18.1165 8.47213 18.9435C9.89789 19.7706 11.5437 20.1387 13.1859 19.9979C14.8282 19.857 16.3873 19.214 17.6514 18.1563C18.9155 17.0985 19.8233 15.6772 20.2516 14.0856C20.6798 12.4939 20.6077 10.8089 20.045 9.25969C19.4823 7.71042 18.4563 6.37193 17.1065 5.42605C15.7566 4.48017 14.1483 3.97277 12.5 3.97277L12.5 0Z"})),Z.createElement("path",{d:"M12.5 0C14.964 2.93833e-08 17.3683 0.758527 19.3863 2.17253C21.4042 3.58653 22.938 5.58746 23.7791 7.90347C24.6203 10.2195 24.7281 12.7383 24.0879 15.1177C23.4477 17.4971 22.0906 19.6218 20.2009 21.2031C18.3111 22.7843 15.9804 23.7456 13.5254 23.9561C11.0704 24.1667 8.61007 23.6164 6.47869 22.38C4.3473 21.1436 2.64819 19.281 1.6122 17.0454C0.576199 14.8097 0.253539 12.3093 0.688053 9.8839L4.59856 10.5845C4.3079 12.2069 4.52374 13.8795 5.21676 15.375C5.90977 16.8705 7.04637 18.1165 8.47213 18.9435C9.89789 19.7706 11.5437 20.1387 13.1859 19.9979C14.8282 19.857 16.3873 19.214 17.6514 18.1563C18.9155 17.0985 19.8233 15.6772 20.2516 14.0856C20.6798 12.4939 20.6077 10.8089 20.045 9.25969C19.4823 7.71042 18.4563 6.37193 17.1065 5.42605C15.7566 4.48017 14.1483 3.97277 12.5 3.97277L12.5 0Z",stroke:"#2D87F3",strokeWidth:8,mask:"url(#path-2-inside-1_917_29592)"},Z.createElement("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 12.5 12",to:"360 12.5 12",dur:"2s",repeatCount:"indefinite"})));export{W as CheckCircle,_ as ChevronLeft,Q as ChevronRight,X as ChevronUp,Y as Circle,$ as EmailCheck,ee as EmailFail,te as Facebook,ae as Google,se as InVisible,oe as Spinning};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as e}from"./tslib.es6-aee30ad9.js";import*as t from"react";import
|
|
1
|
+
import{a as e}from"./tslib.es6-aee30ad9.js";import*as t from"react";import i,{useState as a,useCallback as o,useMemo as n,useEffect as s,useRef as r,useReducer as l}from"react";import{u as c}from"./useTranslations-e48b2888.js";import d from"lodash/debounce";import{I as p,L as u,a as h}from"./constants-1e2f4da9.js";import{I as g}from"./index-29fe41db.js";import m,{createGlobalStyle as C}from"styled-components";import{T as b}from"./index-3c49ea26.js";import{t as y}from"./theme-9a93dfd1.js";import{M as f}from"./screenSizeContext-e31ea396.js";import v from"react-loading-skeleton";import x from"lodash/shuffle";import{a as w}from"./useOutsideClick-6b04c050.js";import{P as E}from"./paths-406b71bd.js";import{Skeleton as S,Input as L,Divider as k,Tabs as O,Flex as j,Button as I}from"@mantine/core";import{c as F,d as $}from"./index-3e6373bb.js";import{g as M,s as R,d as T}from"./cookieHelper-9e782dd0.js";import{C as P,I as A}from"./index-4ad41345.js";import N from"string-format";const B=e=>t.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{d:"M7.99969 9.38055L5.45236 6.83322C5.17636 6.55722 4.72836 6.55722 4.45236 6.83322C4.17636 7.10922 4.17636 7.55722 4.45236 7.83322L7.52836 10.9092C7.78903 11.1699 8.21103 11.1699 8.47103 10.9092L11.547 7.83322C11.823 7.55722 11.823 7.10922 11.547 6.83322C11.271 6.55722 10.823 6.55722 10.547 6.83322L7.99969 9.38055Z"}));function V(){const[e,t]=a((()=>{if("undefined"==typeof window)return"unset";if(M(F))return"granted";const e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),[i,s]=a((()=>{if("undefined"==typeof window)return null;const e=M(F);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),r=o((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((e=>{const i={lat:""+Math.round(1e7*e.coords.latitude)/1e7,lng:""+Math.round(1e7*e.coords.longitude)/1e7};R(F,JSON.stringify(i),{minutes:15}),s(i),t("granted")}),(()=>{T(F),t("denied")}))}),[]);return n((()=>({geoLocationPermission:e,geoLocationCoordinates:i,requestGeoLocation:r})),[e,i])}const D=m.div``,z=m.div`
|
|
2
2
|
--searchbar-z-index: 305;
|
|
3
3
|
&[data-is-modal='true'] {
|
|
4
4
|
position: fixed;
|
|
@@ -35,7 +35,7 @@ import{a as e}from"./tslib.es6-aee30ad9.js";import*as t from"react";import a,{us
|
|
|
35
35
|
z-index: 2;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
`,Z=({className:e,color:t})=>
|
|
38
|
+
`,Z=({className:e,color:t})=>i.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M18 6L6 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M6 6L18 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),Y=({className:e,color:t})=>i.createElement("svg",{width:"14",height:"20",viewBox:"0 0 14 20",className:e},i.createElement("path",{d:"M7 0C3.134 0 0 3.134 0 7C0 10.966 4.404 16.82 6.226 19.071C6.626 19.565 7.374 19.565 7.774 19.071C9.596 16.82 14 10.966 14 7C14 3.134 10.866 0 7 0ZM7 9.5C5.619 9.5 4.5 8.381 4.5 7C4.5 5.619 5.619 4.5 7 4.5C8.381 4.5 9.5 5.619 9.5 7C9.5 8.381 8.381 9.5 7 9.5Z",fill:t||"currentColor"})),U=({className:e,color:t})=>i.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M11 18C14.866 18 18 14.866 18 11C18 7.13401 14.866 4 11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18Z",stroke:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M20 20L16 16",stroke:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),W=({width:e,height:t})=>i.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"})),Q=m.li`
|
|
39
39
|
display: flex;
|
|
40
40
|
align-items: center;
|
|
41
41
|
gap: 12px;
|
|
@@ -120,17 +120,17 @@ import{a as e}from"./tslib.es6-aee30ad9.js";import*as t from"react";import a,{us
|
|
|
120
120
|
&[data-is-denied='true'] {
|
|
121
121
|
cursor: not-allowed;
|
|
122
122
|
}
|
|
123
|
-
`,te=m((({count:e,className:t})=>
|
|
123
|
+
`,te=m((({count:e,className:t})=>i.createElement(i.Fragment,null,[...Array(e)].map(((e,a)=>i.createElement(Q,{className:t,key:a},i.createElement(v,{count:1,height:32}),i.createElement(v,{count:1,height:24})))))))`
|
|
124
124
|
&:first-child {
|
|
125
125
|
padding-top: 18px;
|
|
126
126
|
}
|
|
127
|
-
`,
|
|
127
|
+
`,ie=({cities:e,isLoading:t,onLocationClick:a,selectedLocation:o})=>{const{t:n,locale:s}=c();return i.createElement(q,{"data-testid":"location-search-results"},i.createElement(J,null,t?i.createElement(te,{count:5}):!e||e.length<1?i.createElement(i.Fragment,null,i.createElement(ee,{"data-is-denied":"true"},i.createElement(b,{size:"sm",color:"#ccc"},n("booking.searchBar.noResults")))):i.createElement(i.Fragment,null,i.createElement(ee,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{var e;a&&a({name:n("booking.searchBar.allLocations"),id:p,slug:null===(e=u[s])||void 0===e?void 0:e.ALL})}},i.createElement(X,{color:y.colors.neutral400}),i.createElement(b,{size:"md"},n("booking.searchBar.allLocations"))),e.map((e=>i.createElement(ee,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),a&&a(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==o?void 0:o.id)===e.id},i.createElement(X,{color:y.colors.neutral400}),i.createElement(b,{size:"md"},e.name)))))))},ae="TYPE_CHARACTER",oe="REMOVE_CHARACTER",ne="REMOVE_ALL",se="REMOVE_LAST_VISIBLE_NODE",re="PAUSE_FOR",le="CHANGE_DELETE_SPEED",ce="CHANGE_DELAY",de="PASTE_STRING",pe=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,ue="TEXT_NODE";class he{constructor(e){this.state={lastFrameTime:null,pauseUntil:null,eventQueue:[],eventLoop:null,eventLoopPaused:!1,reverseCalledEvents:[],calledEvents:[],visibleNodes:[],initialOptions:null},this.options={strings:null,delay:"natural",pauseFor:1500,deleteSpeed:"natural",loop:!1,autoStart:!1,stringSplitter:null,onCreateTextNode:null,onRemoveNode:null},this.start=()=>(this.state.eventLoopPaused=!1,this.runEventLoop(),this),this.pause=()=>(this.state.eventLoopPaused=!0,this),this.stop=()=>(this.state.eventLoop&&(window.cancelAnimationFrame(this.state.eventLoop),this.state.eventLoop=null),this),this.pauseFor=e=>(this.addEventToQueue(re,{ms:e}),this),this.typeOutAllStrings=()=>"string"==typeof this.options.strings?(this.typeString(this.options.strings).pauseFor(this.options.pauseFor),this):(this.options.strings.forEach((e=>{this.typeString(e).pauseFor(this.options.pauseFor).deleteAll(this.options.deleteSpeed)})),this),this.typeString=(e,t=null)=>{if(e){const{stringSplitter:i}=this.options||{},a="function"==typeof i?i(e):e.split("");this.typeCharacters(a,t)}return this},this.pasteString=(e,t=null)=>(e&&this.addEventToQueue(de,{character:e,node:t}),this),this.deleteAll=(e="natural")=>(this.addEventToQueue(ne,{speed:e}),this),this.changeDeleteSpeed=e=>{if(!e)throw new Error("Must provide new delete speed");return this.addEventToQueue(le,{speed:e}),this},this.changeDelay=e=>{if(!e)throw new Error("Must provide new delay");return this.addEventToQueue(ce,{delay:e}),this},this.deleteChars=e=>{if(!e)throw new Error("Must provide amount of characters to delete");for(let t=0;t<e;t++)this.addEventToQueue(oe);return this},this.typeCharacters=(e,t=null)=>{if(!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((e=>{this.addEventToQueue(ae,{character:e,node:t})})),this},this.removeCharacters=e=>{if(!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((()=>{this.addEventToQueue(oe)})),this},this.addEventToQueue=(e,t,i=!1)=>this.addEventToStateProperty(e,t,i,"eventQueue"),this.addReverseCalledEvent=(e,t,i=!1)=>{const{loop:a}=this.options;return a?this.addEventToStateProperty(e,t,i,"reverseCalledEvents"):this},this.addEventToStateProperty=(e,t,i=!1,a)=>{const o={eventName:e,eventArgs:t||{}};return this.state[a]=i?[o,...this.state[a]]:[...this.state[a],o],this},this.runEventLoop=()=>{this.state.lastFrameTime||(this.state.lastFrameTime=Date.now());const e=Date.now(),t=e-this.state.lastFrameTime;if(!this.state.eventQueue.length){if(!this.options.loop)return;this.state.eventQueue=[...this.state.calledEvents],this.state.calledEvents=[],this.options=Object.assign({},this.state.initialOptions)}if(this.state.eventLoop=window.requestAnimationFrame(this.runEventLoop),this.state.eventLoopPaused)return;if(this.state.pauseUntil){if(e<this.state.pauseUntil)return;this.state.pauseUntil=null}const i=[...this.state.eventQueue],a=i.shift();let o=0;if(o=a.eventName===se||a.eventName===oe?"natural"===this.options.deleteSpeed?pe(40,80):this.options.deleteSpeed:"natural"===this.options.delay?pe(120,160):this.options.delay,t<=o)return;const{eventName:n,eventArgs:s}=a;switch(n){case de:case ae:{const{character:e}=s,t=document.createTextNode(e);let i=t;this.options.onCreateTextNode&&"function"==typeof this.options.onCreateTextNode&&(i=this.options.onCreateTextNode(e,t)),this.state.visibleNodes=[...this.state.visibleNodes,{type:ue,character:e,node:i}];break}case oe:i.unshift({eventName:se,eventArgs:{removingCharacterNode:!0}});break;case re:{const{ms:e}=a.eventArgs;this.state.pauseUntil=Date.now()+parseInt(e);break}case ne:{const{visibleNodes:e}=this.state,{speed:t}=s,a=[];t&&a.push({eventName:le,eventArgs:{speed:t,temp:!0}});for(let t=0,i=e.length;t<i;t++)a.push({eventName:se,eventArgs:{removingCharacterNode:!1}});t&&a.push({eventName:le,eventArgs:{speed:this.options.deleteSpeed,temp:!0}}),i.unshift(...a);break}case se:if(this.state.visibleNodes.length){const{node:e,character:t}=this.state.visibleNodes.pop();this.options.onRemoveNode&&"function"==typeof this.options.onRemoveNode&&this.options.onRemoveNode({node:e,character:t}),e&&e.parentNode.removeChild(e)}break;case le:this.options.deleteSpeed=a.eventArgs.speed;break;case ce:this.options.delay=a.eventArgs.delay}this.options.loop&&(a.eventName===se||a.eventArgs&&a.eventArgs.temp||(this.state.calledEvents=[...this.state.calledEvents,a])),this.state.eventQueue=i,this.state.lastFrameTime=e},e&&(this.options=Object.assign(Object.assign({},this.options),e)),this.state.initialOptions=Object.assign({},this.options),this.init()}init(){this.addEventToQueue(ne,null,!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()}}function ge({inputRef:e,wrapperRef:t,disabled:i}){const{t:a,locale:o}=c(),r=n((()=>{if(i)return[];const e=["booking.searchBar.placeholder.hospital","booking.searchBar.placeholder.doctor"];return"zh-TW"!==o&&e.push("booking.searchBar.placeholder.specialty","booking.searchBar.placeholder.service"),x(e).map((e=>a(e)))}),[a,o]);function l(e){const t=p();return t&&(t.placeholder=t.placeholder+e),null}function d(){const e=p();e&&(e.placeholder=e.placeholder.slice(0,-1))}function p(){return e&&e.current?e.current:t&&t.current&&t.current.querySelector("input")||null}s((()=>{if(i)return;const e=p();e&&(e.placeholder="",new he({strings:r,autoStart:!0,loop:!0,delay:32,deleteSpeed:32,pauseFor:1500,onCreateTextNode:l,onRemoveNode:d}))}),[e,t])}const me=m.div`
|
|
128
128
|
user-select: none;
|
|
129
129
|
input {
|
|
130
130
|
pointer-events: none;
|
|
131
131
|
background-color: white;
|
|
132
132
|
}
|
|
133
|
-
`;function Ce({focused:e,value:t="",onClick:
|
|
133
|
+
`;function Ce({focused:e,value:t="",onClick:a,trackingAttributes:o,inputSearchPlaceholder:s}){const{t:l}=c(),d=r(null);ge({wrapperRef:d,disabled:!!s});const p=n((()=>o?{"data-event-category":o.dataEventCategory,"data-event-action":o.dataEventAction,"data-event-label":o.dataEventLabel}:{}),[o]);return i.createElement(me,Object.assign({onClick:()=>a&&a(),ref:d},p),i.createElement(H,{inputClassName:"location"===e?"focused":void 0,name:"booking-search-placeholder",displayIcon:i.createElement(U,{color:y.colors.gray400}),placeholder:l("booking.searchBar.searchInput.placeholder"),value:t,size:"md"}))}const be=m.header`
|
|
134
134
|
display: flex;
|
|
135
135
|
height: 64px;
|
|
136
136
|
align-items: center;
|
|
@@ -158,7 +158,7 @@ import{a as e}from"./tslib.es6-aee30ad9.js";import*as t from"react";import a,{us
|
|
|
158
158
|
`,xe=m(b)`
|
|
159
159
|
color: ${y.colors.secondaryDark};
|
|
160
160
|
text-align: start;
|
|
161
|
-
`,we=({className:e,onLeftClick:t,headingText:
|
|
161
|
+
`,we=({className:e,onLeftClick:t,headingText:a,onRightClick:o,iconLeft:n,textRight:s})=>i.createElement(be,{className:e},i.createElement(fe,{onClick:t},n||i.createElement(Z,{color:y.colors.gray800})),i.createElement(ve,null,i.createElement(xe,{size:"md",type:"bold"},a)),i.createElement(ye,{onClick:o},s&&i.createElement("p",null,s))),Ee={"en-PH":3,"tl-PH":2,"id-ID":3,"vi-VN":2,"zh-TW":0,"ms-MY":2},Se={isMobile:!1,isDebug:!1,navigateTo:null,geoLocationPermission:"unset",geoLocationCoordinates:null,focused:"none",searchLocationKeywords:"",searchKeywords:"",selectedLocation:null,defaultCity:null,initialCities:[],cities:[],searchResults:[],initialSearchResults:[],isLoadingCities:!1,isLoadingSearchResults:!1,isMobileModalOpened:!1,initialSelectedCity:null,autoCompleteDisabled:!1,inputSearchPlaceholder:"",locale:"vi-VN"};var Le;function ke(e){const{selectedLocation:t,searchLocationKeywords:i}=e;return t&&i!==t.name?Object.assign(Object.assign({},e),{searchLocationKeywords:t.name}):e}function Oe(e,t){var i;switch(e.isDebug&&console.log("bookingSearchBar",{action:t,state:e}),t.type){case Le.NavigateTo:return Object.assign(Object.assign({},e),{navigateTo:t.payload,focused:"none",isMobileModalOpened:!1});case Le.ClickOutsideInputLocation:return e.isMobile||"location"!==e.focused?e:ke(Object.assign(Object.assign({},e),{focused:"none"}));case Le.ClickOutsideInputSearch:return e.isMobile||"search"!==e.focused?e:Object.assign(Object.assign({},e),{focused:"none"});case Le.FocusInputLocation:{const t=Object.assign(Object.assign({},e),{focused:"location"});return(null===(i=e.selectedLocation)||void 0===i?void 0:i.id)===h&&(t.searchLocationKeywords=""),t}case Le.FocusInputSearch:const a=Object.assign(Object.assign({},e),{focused:"search"});return e.isMobile?ke(a):a;case Le.ChangeInputLocation:return Object.assign(Object.assign({},e),{searchLocationKeywords:t.payload});case Le.ChangeInputSearch:{const i=t.payload;return Object.assign(Object.assign({},e),{searchKeywords:i,isLoadingSearchResults:i.trim().length>Ee[e.locale]})}case Le.SelectCurrentLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case Le.ClearInputLocation:return Object.assign(Object.assign({},e),{focused:"location",cities:e.initialCities,searchLocationKeywords:""});case Le.ClearInputSearch:return Object.assign(Object.assign({},e),{focused:"search",searchKeywords:""});case Le.SelectLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case Le.SelectSearchResult:return Object.assign(Object.assign({},e),{searchKeywords:t.payload.name,isMobileModalOpened:!1,focused:"none",navigateTo:t.payload.url});case Le.FetchCitiesStart:return Object.assign(Object.assign({},e),{isLoadingCities:!0});case Le.FetchCitiesFinish:return Object.assign(Object.assign({},e),{isLoadingCities:!1});case Le.FetchSearchResultsStart:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!0});case Le.FetchSearchResultsFinish:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!1});case Le.FetchSearchResultsComplete:{const i=Object.assign(Object.assign({},e),{searchResults:t.payload});return 0===e.initialSearchResults.length&&(i.initialSearchResults=t.payload),i}case Le.FetchCitiesByGeoIpComplete:{let{cities:i}=t.payload;const{default:a}=t.payload;i=i.filter((e=>e.id!==a.id)),i.unshift(a),e.initialSelectedCity&&!i.find((t=>t.id===e.initialSelectedCity.id))&&i.unshift(e.initialSelectedCity);const o=Object.assign(Object.assign({},e),{defaultCity:a,initialCities:i,cities:i});return"denied"!==e.geoLocationPermission||e.initialSelectedCity||(o.selectedLocation=a,o.searchLocationKeywords=a.name),o}case Le.FetchCitiesByKeywordComplete:return Object.assign(Object.assign({},e),{cities:t.payload});case Le.DisplayInitialCities:return Object.assign(Object.assign({},e),{cities:e.initialCities});case Le.DisplayInitialSearchResults:return Object.assign(Object.assign({},e),{searchResults:e.initialSearchResults,isLoadingSearchResults:!1});case Le.GrantGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"granted",geoLocationCoordinates:t.payload});case Le.DenyGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"denied",geoLocationCoordinates:null});case Le.OpenMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!0});case Le.CloseMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!1});case Le.UpdateInitialSearchValue:return Object.assign(Object.assign({},e),{searchKeywords:t.payload});case Le.SetInputSearchPlaceholder:return Object.assign(Object.assign({},e),{inputSearchPlaceholder:t.payload});default:return e}}!function(e){e.NavigateTo="navigate to url",e.ClickOutsideInputLocation="click outside input location",e.ClickOutsideInputSearch="click outside input search",e.SelectCurrentLocation="select current location",e.FocusInputLocation="focus input location",e.FocusInputSearch="focus input search",e.ChangeInputLocation="change input location",e.ChangeInputSearch="change input search",e.ClearInputLocation="clear input location",e.ClearInputSearch="clear input search",e.SelectLocation="select location",e.FetchCitiesStart="fetch cities start",e.FetchCitiesFinish="fetch cities finish",e.FetchSearchResultsStart="fetch search results start",e.FetchSearchResultsComplete="fetch search results complete",e.FetchSearchResultsFinish="fetch search results finish",e.FetchCitiesByGeoIpComplete="fetch cities by geo IP finish",e.FetchCitiesByKeywordComplete="fetch cities by keyword finish",e.DisplayInitialCities="display initial cities",e.DisplayInitialSearchResults="display initial search results",e.GrantGeoLocationPermission="grant geolocation permission",e.DenyGeoLocationPermission="deny geolocation permission",e.OpenMobileModal="open mobile modal",e.CloseMobileModal="close mobile modal",e.UpdateInitialSearchValue="update initial search value",e.SelectSearchResult="select search result",e.SetInputSearchPlaceholder="set input search placeholder"}(Le||(Le={}));const je=m.div`
|
|
162
162
|
display: flex;
|
|
163
163
|
gap: 16px;
|
|
164
164
|
${f.mbDown} {
|
|
@@ -182,12 +182,12 @@ import{a as e}from"./tslib.es6-aee30ad9.js";import*as t from"react";import a,{us
|
|
|
182
182
|
flex: 1;
|
|
183
183
|
`,$e=m(Ie)`
|
|
184
184
|
flex: 2;
|
|
185
|
-
`,Me=m((({className:e,color:t})=>
|
|
185
|
+
`,Me=m((({className:e,color:t})=>i.createElement("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("rect",{x:"4",y:"4",width:"16",height:"16",rx:"8",fill:"white"}),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM8.29289 8.29289C8.68342 7.90237 9.31658 7.90237 9.70711 8.29289L12 10.5858L14.2929 8.29289C14.6834 7.90237 15.3166 7.90237 15.7071 8.29289C16.0976 8.68342 16.0976 9.31658 15.7071 9.70711L13.4142 12L15.7071 14.2929C16.0976 14.6834 16.0976 15.3166 15.7071 15.7071C15.3166 16.0976 14.6834 16.0976 14.2929 15.7071L12 13.4142L9.70711 15.7071C9.31658 16.0976 8.68342 16.0976 8.29289 15.7071C7.90237 15.3166 7.90237 14.6834 8.29289 14.2929L10.5858 12L8.29289 9.70711C7.90237 9.31658 7.90237 8.68342 8.29289 8.29289Z",fill:t||"currentColor"}))))`
|
|
186
186
|
display: none;
|
|
187
187
|
&.shown {
|
|
188
188
|
display: block;
|
|
189
189
|
}
|
|
190
|
-
`,Re=()=>
|
|
190
|
+
`,Re=()=>i.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.97887 8.15493C2.97887 5.29627 5.29627 2.97887 8.15493 2.97887C11.0136 2.97887 13.331 5.29627 13.331 8.15493C13.331 11.0136 11.0136 13.331 8.15493 13.331C5.29627 13.331 2.97887 11.0136 2.97887 8.15493ZM8.15493 1.5C4.47951 1.5 1.5 4.47951 1.5 8.15493C1.5 11.8303 4.47951 14.8099 8.15493 14.8099C9.72624 14.8099 11.1704 14.2653 12.3089 13.3546L15.2377 16.2834C15.5265 16.5722 15.9947 16.5722 16.2834 16.2834C16.5722 15.9947 16.5722 15.5265 16.2834 15.2377L13.3546 12.3089C14.2653 11.1704 14.8099 9.72624 14.8099 8.15493C14.8099 4.47951 11.8303 1.5 8.15493 1.5Z",fill:"white"})),Te=m.button`
|
|
191
191
|
min-height: 100%;
|
|
192
192
|
border-radius: 6px;
|
|
193
193
|
background-color: ${({theme:e})=>e.colors.primaryBase};
|
|
@@ -220,7 +220,7 @@ import{a as e}from"./tslib.es6-aee30ad9.js";import*as t from"react";import a,{us
|
|
|
220
220
|
}
|
|
221
221
|
`,Pe=m(b)`
|
|
222
222
|
font-weight: ${({theme:e})=>e.sizes.fwSemiBold};
|
|
223
|
-
`,Ae=({onClick:e})=>{const{t:t}=c(),
|
|
223
|
+
`,Ae=({onClick:e})=>{const{t:t}=c(),a=t("booking.searchBar.searchButton");return i.createElement(Te,{onClick:e,title:a},i.createElement(Re,null),i.createElement(Pe,{size:"s3",color:"white"},a))};function Ne({isMobile:e,state:t,dispatch:a,debouncedFetchCitiesByKeyword:s,debouncedFetchSearchResults:l,focusLocationInput:d,focusSearchInput:p,renderLocationResults:u,renderSearchResults:g,locationTrackingAttributes:m,trackingAttributes:C,onSearch:b,initalSearchValue:f}){const v=r(null),x=r(null),{focused:E,searchLocationKeywords:S,geoLocationPermission:L,selectedLocation:k,searchKeywords:O,inputSearchPlaceholder:j}=t,{t:I}=c();ge({wrapperRef:x,disabled:!!j}),w(v,(()=>{e||a({type:Le.ClickOutsideInputLocation})})),w(x,(()=>{e||a({type:Le.ClickOutsideInputSearch})}));const F=n((()=>"granted"===L&&(null==k?void 0:k.id)===h?y.colors.primaryBase:y.colors.gray400),[L,k]),$=o((function(e){a({type:Le.ChangeInputSearch,payload:e}),"function"!=typeof b&&(e.trim().length>Ee[t.locale]||f?l(e.trim(),t):(l.cancel(),a({type:Le.DisplayInitialSearchResults})))}),[a,t]),M=o((function(e){a({type:Le.ChangeInputLocation,payload:e}),e.trim().length>Ee[t.locale]?s(e.trim()):(s.cancel(),a({type:Le.DisplayInitialCities}))}),[s,a]);return i.createElement(je,null,i.createElement(Fe,{ref:v},i.createElement(H,{inputClassName:"location"===E?"focused":void 0,placeholder:I("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:i.createElement(Y,{className:"location-pin-icon",color:F}),actionIcon:i.createElement(Me,{color:y.colors.gray300,className:""!==S?"shown":""}),onActionClick:function(){a({type:Le.ClearInputLocation}),s.cancel(),d()},value:S,onChange:M,onFocus:()=>a({type:Le.FocusInputLocation}),size:"md",trackingAttributes:m}),!e&&u()),i.createElement($e,{ref:x},i.createElement(H,{placeholder:j||I("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:i.createElement(Me,{color:y.colors.gray300,className:""!==O?"shown":""}),onActionClick:function(){a({type:Le.ClearInputSearch}),l.cancel(),l("",t),p()},value:O,onChange:$,onFocus:()=>a({type:Le.FocusInputSearch}),inputClassName:"search"===E?"focused":void 0,size:"md",trackingAttributes:C,onKeyPress:e=>{t.autoCompleteDisabled&&"Enter"===e.key&&b&&b({cityId:t.selectedLocation.id,keyword:O})},enterKeyHint:t.autoCompleteDisabled?"search":void 0}),!e&&g()),t.autoCompleteDisabled&&!t.isMobile&&i.createElement(Ae,{onClick:()=>{b({cityId:t.selectedLocation.id,keyword:O})}}))}const Be=()=>i.createElement("svg",{width:"14",height:"18",viewBox:"0 0 14 18"},i.createElement("path",{d:"M7.00004 0.666992C5.29757 0.666992 3.64067 0.813476 2.52087 1.03158C1.73311 1.18457 1.16671 1.86816 1.16671 2.6722V4.83366C1.16671 5.29264 1.54106 5.66699 2.00004 5.66699H12C12.459 5.66699 12.8334 5.29264 12.8334 4.83366V2.69824C12.8334 1.89421 12.267 1.21061 11.4792 1.05762C10.3562 0.839518 8.69275 0.666992 7.00004 0.666992ZM6.16671 1.50033H7.83337V2.33366H8.66671V4.00033H7.83337V4.83366H6.16671V4.00033H5.33337V2.33366H6.16671V1.50033ZM1.42712 6.50033C1.3197 6.89421 1.24158 7.32389 1.19275 7.77637C1.14718 8.18001 1.05603 9.25423 1.06254 9.36491C0.603556 9.72624 0.333374 10.2861 0.333374 10.9014C0.333374 11.8356 0.977906 12.6364 1.84379 12.8285C2.74548 15.0192 4.55212 17.3337 7.00004 17.3337C9.44796 17.3337 11.2546 14.9964 12.1563 12.8024C13.0222 12.6136 13.6667 11.8356 13.6667 10.9014C13.6667 10.2861 13.3965 9.72624 12.9375 9.36491C12.9441 9.25423 12.8562 8.16048 12.8073 7.75033C12.7552 7.30436 12.6804 6.89095 12.573 6.50033H5.35942C6.52804 8.20606 9.27543 7.18717 11.0365 7.62012C11.5736 8.79199 11.1667 10.4326 11.1667 10.4326L11.8177 10.641C11.9121 10.6702 12 10.7549 12 10.9014C12 11.0576 11.8861 11.1943 11.6875 11.1878L11.0105 11.0837L10.7761 11.7347C9.96554 14.0492 8.4128 15.667 7.00004 15.667C5.58728 15.667 4.03455 14.0492 3.224 11.7347L2.96358 11.0837L2.26046 11.1878C2.11723 11.1878 2.00004 11.0576 2.00004 10.9014C2.00004 10.7549 2.08793 10.6702 2.18233 10.641L2.83337 10.4326C2.73246 10.5531 2.4102 8.7041 2.83337 8.03678C3.59184 7.5127 4.2266 7.87728 5.12504 6.50033H1.42712ZM5.17712 9.05241C4.57166 9.05241 4.08337 9.55371 4.08337 10.1722C4.08337 10.7907 4.57166 11.292 5.17712 11.292C5.78259 11.292 6.27087 10.7907 6.27087 10.1722C6.27087 9.55371 5.78259 9.05241 5.17712 9.05241ZM8.82296 9.05241C8.21749 9.05241 7.72921 9.55371 7.72921 10.1722C7.72921 10.7907 8.21749 11.292 8.82296 11.292C9.42843 11.292 9.91671 10.7907 9.91671 10.1722C9.91671 9.55371 9.42843 9.05241 8.82296 9.05241Z",fill:"#9AA2AC"})),Ve=()=>i.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},i.createElement("path",{d:"M8.99996 0.666992C6.27535 0.666992 3.85348 1.97884 2.33329 4.00033H4.59892C5.80009 2.94564 7.36259 2.33366 8.99996 2.33366C10.6373 2.33366 12.1998 2.94564 13.401 4.00033H15.6666C14.1464 1.97884 11.7246 0.666992 8.99996 0.666992ZM1.78642 4.83366C1.07678 7.04069 0.666626 9.59928 0.666626 12.3337C0.666626 14.085 0.826131 15.7679 1.13538 17.3337H16.8645C17.1738 15.7679 17.3333 14.085 17.3333 12.3337C17.3333 9.59928 16.9231 7.04069 16.2135 4.83366H1.78642ZM8.99996 7.33366C11.3014 7.33366 13.1666 9.19889 13.1666 11.5003C13.1666 13.8018 11.3014 15.667 8.99996 15.667C6.69853 15.667 4.83329 13.8018 4.83329 11.5003C4.83329 9.19889 6.69853 7.33366 8.99996 7.33366ZM8.16663 9.00033V10.667H6.49996V12.3337H8.16663V14.0003H9.83329V12.3337H11.5V10.667H9.83329V9.00033H8.16663Z",fill:"#9AA2AC"})),De=()=>i.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17"},i.createElement("path",{d:"M8 0.666992L0.5 5.63533V14.8337C0.5 15.7545 1.24583 16.5003 2.16667 16.5003H13.8333C14.7542 16.5003 15.5 15.7545 15.5 14.8337V5.63533L8 0.666992ZM11.3333 10.667H8.83333V13.167H7.16667V10.667H4.66667V9.00033H7.16667V6.50033H8.83333V9.00033H11.3333V10.667Z",fill:"#9AA2AC"})),ze=()=>i.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},i.createElement("path",{d:"M3.83333 0.5C2.94928 0.5 2.10143 0.851189 1.47631 1.47631C0.851189 2.10143 0.5 2.94928 0.5 3.83333C0.5 4.71739 0.851189 5.56523 1.47631 6.19036C2.10143 6.81548 2.94928 7.16667 3.83333 7.16667C4.71739 7.16667 5.56523 6.81548 6.19036 6.19036C6.81548 5.56523 7.16667 4.71739 7.16667 3.83333C7.16667 2.94928 6.81548 2.10143 6.19036 1.47631C5.56523 0.851189 4.71739 0.5 3.83333 0.5V0.5ZM10.5 0.5C9.57917 0.5 8.83333 1.24583 8.83333 2.16667V5.5C8.83333 6.42083 9.57917 7.16667 10.5 7.16667H13.8333C14.7542 7.16667 15.5 6.42083 15.5 5.5V2.16667C15.5 1.24583 14.7542 0.5 13.8333 0.5H10.5ZM3.83333 8.83333C2.94928 8.83333 2.10143 9.18452 1.47631 9.80964C0.851189 10.4348 0.5 11.2826 0.5 12.1667C0.5 13.0507 0.851189 13.8986 1.47631 14.5237C2.10143 15.1488 2.94928 15.5 3.83333 15.5C4.71739 15.5 5.56523 15.1488 6.19036 14.5237C6.81548 13.8986 7.16667 13.0507 7.16667 12.1667C7.16667 11.2826 6.81548 10.4348 6.19036 9.80964C5.56523 9.18452 4.71739 8.83333 3.83333 8.83333V8.83333ZM12.1667 8.83333C11.2826 8.83333 10.4348 9.18452 9.80964 9.80964C9.18452 10.4348 8.83333 11.2826 8.83333 12.1667C8.83333 13.0507 9.18452 13.8986 9.80964 14.5237C10.4348 15.1488 11.2826 15.5 12.1667 15.5C13.0507 15.5 13.8986 15.1488 14.5237 14.5237C15.1488 13.8986 15.5 13.0507 15.5 12.1667C15.5 11.2826 15.1488 10.4348 14.5237 9.80964C13.8986 9.18452 13.0507 8.83333 12.1667 8.83333V8.83333Z",fill:"#9AA2AC"})),Ke=m.header`
|
|
224
224
|
display: flex;
|
|
225
225
|
justify-content: space-between;
|
|
226
226
|
padding: 12px 24px;
|
|
@@ -324,7 +324,7 @@ import{a as e}from"./tslib.es6-aee30ad9.js";import*as t from"react";import a,{us
|
|
|
324
324
|
`,et=m.div`
|
|
325
325
|
display: grid;
|
|
326
326
|
place-items: center;
|
|
327
|
-
`,tt={doctors:({width:e,height:t})=>
|
|
327
|
+
`,tt={doctors:({width:e,height:t})=>i.createElement("svg",{width:e||32,height:t||32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("g",{clipPath:"url(#clip0_14712_400114)"},i.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),i.createElement("path",{d:"M22.065 9.58305C22.1108 9.80952 22.1431 10.0396 22.1614 10.2722C22.3769 13.0522 22.5858 16.1276 22.5727 17.618C22.5306 20.5688 19.708 21.1325 19.4564 21.1769L19.4495 21.5357L19.5228 23.9014C20.8688 23.9341 22.203 24.1759 23.4772 24.6196C24.5264 24.9739 25.4827 25.5591 26.2757 26.332C27.0688 27.105 27.6783 28.0461 28.0594 29.0858L31.9886 39.2068C31.91 39.3048 30.6939 39.6356 29.4888 39.944C30.1695 42.3315 30.4582 44.8142 30.3432 47.2953C30.2991 48.2666 30.1816 49.264 29.7245 50.1211C29.4508 50.6342 29.0319 51.0912 28.5296 51.3753C28.5099 51.4347 28.4864 51.4928 28.4593 51.5495C28.4293 51.6146 28.3908 51.6756 28.3448 51.7307C28.3293 51.7772 28.3232 51.8406 28.3162 51.9135C28.3004 52.0779 28.2799 52.2909 28.1362 52.4685C28.001 52.6373 27.8519 52.7945 27.6905 52.9386C27.6905 52.9386 27.092 52.9667 26.4133 52.9845L26.458 58.4088H5.7492L6.30965 52.9523L5.66093 53.1637C5.07664 53.3528 4.45628 53.4028 3.84925 53.3099C3.24222 53.2169 2.66526 52.9835 2.1643 52.6283C1.61489 52.2388 1.17445 51.715 0.884966 51.1068C0.595484 50.4987 0.46662 49.8266 0.510669 49.1545L0.644528 47.1369L1.41503 38.3366L1.81323 38.4135L-0.914307 37.8437L-0.402886 36.5663C-0.407359 36.5645 -0.411803 36.5627 -0.416214 36.5608C-0.410804 36.56 -0.40538 36.5594 -0.399946 36.5589L2.05995 30.4146C3.00034 28.0825 4.7421 26.1624 6.97187 24.9999C8.56171 24.176 10.3028 23.6861 12.0882 23.5597L11.788 16.5865C11.1882 16.6507 10.0095 16.5266 9.96087 14.954C9.91229 13.3824 11.0457 13.3171 11.6507 13.3961L11.6445 13.2523C11.5785 12.8433 11.5088 12.439 11.4577 12.2132C11.3782 11.8628 11.2611 11.4953 11.1419 11.1207C10.8794 10.2967 10.6061 9.43855 10.697 8.65293C10.697 8.65293 10.6909 8.00438 11.4565 7.24044C11.3707 6.86644 11.3686 6.47786 11.4507 6.10258C11.5366 5.70965 11.7125 5.34199 11.9645 5.02848C12.2165 4.71497 12.5377 4.46414 12.9029 4.29569C13.2682 4.12725 13.6675 4.04577 14.0696 4.05766C14.2277 4.06393 14.3849 4.08493 14.5418 4.10589C14.7932 4.13945 15.0439 4.17294 15.2971 4.14581C15.7708 4.09409 16.177 3.83884 16.5862 3.58167C16.8357 3.42492 17.0863 3.26745 17.354 3.15494C17.9119 2.93744 18.5266 2.91281 19.1002 3.08497C19.6738 3.25713 20.1733 3.61619 20.5192 4.105C20.5943 4.21716 20.6621 4.33678 20.7298 4.45631C20.9035 4.76299 21.077 5.06915 21.373 5.24769C21.5927 5.38236 21.8482 5.42658 22.1057 5.47114C22.2633 5.49842 22.4216 5.52582 22.5728 5.57417C23.0267 5.71015 23.3999 6.0411 23.6319 6.45436C23.6327 6.40753 23.6317 6.36062 23.629 6.31374C23.6502 6.3657 23.6623 6.42092 23.6649 6.47698C23.6661 6.49165 23.667 6.50632 23.6677 6.521C23.8246 6.82609 23.9058 7.17114 23.8885 7.51347C23.8544 7.93447 23.7053 8.33801 23.4574 8.68001C23.2096 9.02201 22.8725 9.28933 22.483 9.45278C22.3469 9.50712 22.2071 9.55061 22.065 9.58305Z",fill:"white"})),i.createElement("defs",null,i.createElement("clipPath",{id:"clip0_14712_400114"},i.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"})))),services:({width:e,height:t})=>i.createElement("svg",{width:e||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),i.createElement("path",{d:"M14.9998 6.66663C12.2752 6.66663 9.85335 7.97848 8.33317 9.99996H10.5988C11.8 8.94527 13.3625 8.33329 14.9998 8.33329C16.6372 8.33329 18.1997 8.94527 19.4009 9.99996H21.6665C20.1463 7.97848 17.7244 6.66663 14.9998 6.66663ZM7.7863 10.8333C7.07666 13.0403 6.6665 15.5989 6.6665 18.3333C6.6665 20.0846 6.82601 21.7675 7.13525 23.3333H22.8644C23.1737 21.7675 23.3332 20.0846 23.3332 18.3333C23.3332 15.5989 22.923 13.0403 22.2134 10.8333H7.7863ZM14.9998 13.3333C17.3013 13.3333 19.1665 15.1985 19.1665 17.5C19.1665 19.8014 17.3013 21.6666 14.9998 21.6666C12.6984 21.6666 10.8332 19.8014 10.8332 17.5C10.8332 15.1985 12.6984 13.3333 14.9998 13.3333ZM14.1665 15V16.6666H12.4998V18.3333H14.1665V20H15.8332V18.3333H17.4998V16.6666H15.8332V15H14.1665Z",fill:"#BFC5CC"}))},it=({type:e,item:t,imageUrl:a,className:o,onClickItem:s})=>{const r=n((()=>{const t=tt[e]||W;return i.createElement(t,{width:32,height:"services"===e?32:24})}),[e]);return i.createElement(We,{onClick:()=>s&&s(t),onKeyDown:e=>{"Enter"!==e.key&&"Space"!==e.key||s&&s(t)},tabIndex:0,role:"button",className:o},i.createElement(Je,null,"hospitals"===e?i.createElement(Xe,{width:"12",height:"16",viewBox:"0 0 12 16"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.75 5.94873C0.75 3.04623 3.0975 0.69873 6 0.69873C8.9025 0.69873 11.25 3.04623 11.25 5.94873C11.25 9.07623 7.935 13.3887 6.5775 15.0312C6.2775 15.3912 5.73 15.3912 5.43 15.0312C4.065 13.3887 0.75 9.07623 0.75 5.94873ZM4.125 5.94873C4.125 6.98373 4.965 7.82373 6 7.82373C7.035 7.82373 7.875 6.98373 7.875 5.94873C7.875 4.91373 7.035 4.07373 6 4.07373C4.965 4.07373 4.125 4.91373 4.125 5.94873Z",fill:"#9AA2AC"})):i.createElement(Qe,{type:e},a?i.createElement("img",{src:a,width:32,height:"services"===e?32:24,loading:"lazy"}):r)),i.createElement(qe,{color:y.colors.gray800,size:"p3"},t.name))},at=({type:e,data:t,state:o,dispatch:s,itemsToShow:r,itemsToShowDesktop:l,isMobile:d,isLoading:p,keyword:h,isNavResultItem:g})=>{const[m,C]=a(!1),{t:f,locale:x}=c(),{selectedLocation:w,searchKeywords:E}=o,S=n((()=>u[x]),[x]),L="ms-MY"===x,k=n((()=>({doctors:{name:f("booking.searchPopup.doctors"),icon:i.createElement(Be,null),slug:S.DOCTOR},services:{name:f("booking.searchPopup.services"),icon:i.createElement(Ve,null),slug:S.SERVICE},hospitals:{name:f("booking.searchPopup.hospitals"),icon:i.createElement(De,null),slug:S.HOSPITAL},specialties:{name:f("booking.searchPopup.specialties"),icon:i.createElement(ze,null),slug:S.SPECIALTIES}})),[e,S]),O=n((()=>k[e].slug),[k]),j=d?r:l;function I(t){let i="";switch(e){case"specialties":i=`/${w.slug}/${k.doctors.slug}/${t.slug}`;break;case"services":i=`/${w.slug}/${O}/${t.slug}`;break;case"doctors":case"hospitals":i=`/${O}/${t.slug}-${t.id}`}i&&s({type:Le.SelectSearchResult,payload:{name:t.name,url:i}})}function F(t){return i.createElement(it,{key:t.id,item:t,type:e,imageUrl:t.logo||t.avatar||t.thumbnail,className:g?"":"not-nav",onClickItem:g&&I})}return i.createElement("section",null,i.createElement(Ke,null,i.createElement(_e,null,k[e].icon,i.createElement(He,null,k[e].name)),(h.trim().length<=Ee[x]||L)&&i.createElement(Ge,{onClick:function(){let t="";switch(e){case"specialties":t=`/${O}`;break;case"services":case"doctors":case"hospitals":t=`/${w.slug}/${O}`}t&&s({type:Le.NavigateTo,payload:t})}},i.createElement(b,{size:"p3",color:y.colors.primaryBase},f("booking.searchPopup.seeAll")))),(p||t&&t.length>0)&&i.createElement(Ze,null,i.createElement(Ye,null,p&&Array(2).fill(void 0).map(((t,a)=>i.createElement(We,{key:e+"loading"+a},i.createElement(Je,null,i.createElement(et,null,i.createElement(v,{height:14,width:"hospitals"===e?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),i.createElement(v,{width:120,height:24})))),!p&&t&&t.length>0&&t.slice(0,j).map(F)),i.createElement(Ye,{isShown:m,isMore:!0},t.slice(j,-1).map(F)),"specialties"===e&&j<t.length&&!p&&i.createElement("button",{onClick:()=>C(!m)},i.createElement(Ue,{size:"p3",color:y.colors.primaryBase},f(m?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==e&&(j<t.length||L)&&!p&&h.trim().length>Ee[x]&&i.createElement("button",{onClick:function(){const{slug:t}=k[e],i=`/${w.slug}/${t}?q=${E}`;s({type:Le.NavigateTo,payload:i})}},i.createElement(Ue,{size:"p3",color:y.colors.primaryBase},f(`booking.searchPopup.searchIn.${e}`,{name:h})))),!p&&0===(null==t?void 0:t.length)&&i.createElement(Ze,null,i.createElement(b,{size:"sm",color:y.colors.gray400},f("booking.searchBar.noResults"))))},ot=m.section`
|
|
328
328
|
background-color: white;
|
|
329
329
|
border-radius: 4px;
|
|
330
330
|
position: absolute;
|
|
@@ -336,7 +336,7 @@ import{a as e}from"./tslib.es6-aee30ad9.js";import*as t from"react";import a,{us
|
|
|
336
336
|
0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),
|
|
337
337
|
0px 0px 1px rgba(0, 0, 0, 0.04);
|
|
338
338
|
}
|
|
339
|
-
`,nt=({data:e,state:t,dispatch:
|
|
339
|
+
`,nt=({data:e,state:t,dispatch:a,isMobile:o,isLoading:n,keyword:s,hideResults:r,isNavResultItem:l})=>i.createElement(ot,null,e&&e.map((e=>r&&r.includes(e.type)?i.createElement(i.Fragment,null):i.createElement(at,{type:e.type,state:t,dispatch:a,itemsToShow:2,itemsToShowDesktop:4,key:e.type,data:e.results,isMobile:o,isLoading:n,keyword:s,isNavResultItem:l})))),st=(e,t,i)=>N(e,Object.assign(Object.assign({},t),{domain:$[i||"en-PH"]}));const rt=({isMobile:t,careApiDomain:g,geoLocationPermission:m,geoLocationCoordinates:C,initialSelectedCity:b,initialSearchValue:y="",careFrontDomain:f="/care",isDebug:v=!1,askForGeolocationPermission:x=!1,gaTrackingSearchBar:w,gaTrackingLocationSearch:S,autoCompleteDisabled:L=!1,inputSearchPlaceholder:k="",isOptionAllLocation:O=!1,hideResults:j=[],isNavResultItem:I=!0,routerPush:F,onGeoLocationPermissionChange:$,onSearch:M,onChangeLocation:R})=>{const{t:T,locale:P}=c(),A=r(null),N=r(null),[B,H]=a(void 0),[Z,Y]=a(!1),{geoLocationPermission:U,geoLocationCoordinates:W,requestGeoLocation:Q}=V(),[q,J]=l(Oe,Se,(e=>Object.assign(Object.assign({},e),{isDebug:v,isMobile:t,geoLocationPermission:m||U||"unset",geoLocationCoordinates:C||W||null,searchKeywords:y,initialSelectedCity:b||null,selectedLocation:b||e.selectedLocation||null,searchLocationKeywords:(null==b?void 0:b.name)||e.searchLocationKeywords,autoCompleteDisabled:L,inputSearchPlaceholder:k,locale:P}))),{navigateTo:X,focused:ee,isLoadingCities:te,cities:ae,searchKeywords:oe,geoLocationPermission:ne,selectedLocation:se,initialSelectedCity:re,defaultCity:le,searchResults:ce,isLoadingSearchResults:de,isMobileModalOpened:pe,inputSearchPlaceholder:ue}=q,{fetchCitiesByLocation:he,fetchCitiesByKeyword:ge,fetchSearchResults:me}=function({dispatch:e,careApiDomain:t,locale:i="vi-VN"}){const a=o((function(a,o={}){const n=`${t}${a}`;return e({type:Le.FetchCitiesStart}),fetch(st(n,o,i),{method:"GET"}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:(console.log("error loading cities",e),Promise.reject(e)))).finally((()=>e({type:Le.FetchCitiesFinish})))}),[i]);return{fetchCitiesByLocation:o((function({coordinates:t}){let o={};const n={};t&&(o={lat:t.lat,lng:t.lng}),"ms-MY"===i&&(n.noPaging=1);const s=[a(E.GET_CITY_BY_IP,Object.assign(Object.assign({},o),n))];return"zh-TW"===i&&s.push(a(E.GET_CITIES_LIST,{noPaging:1})),Promise.all(s).then((([t,i])=>{const a=Object.assign({},t);if(i){const e=a.cities.map((e=>e.id));a.cities=a.cities.concat(i.cities.filter((t=>!e.includes(t.id))))}e({type:Le.FetchCitiesByGeoIpComplete,payload:a})})).catch((e=>console.error("error loading cities by location",e)))}),[i,t,e]),fetchCitiesByKeyword:o((function(t){return a(E.GET_CITIES_LIST,{keyword:t}).then((t=>{e({type:Le.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,t,e]),fetchSearchResults:o((function(a,o){const n=`${t}${E.GET_SEARCH_V2}`;e({type:Le.FetchSearchResultsStart});const{defaultCity:s,selectedLocation:r,geoLocationCoordinates:l}=o;let c="";if(!r||!s)return void e({type:Le.FetchSearchResultsFinish});r.id===h?l||(c=s.id):c=r.id===p?"":r.id;const d=(null==l?void 0:l.lat)||"",u=(null==l?void 0:l.lng)||"";return fetch(st(n,{domain:t,searchType:"global",keyword:a.trim().length>Ee[i]?a.trim():"",city:c===h?"":c,lat:d,lng:u},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>e({type:Le.FetchSearchResultsComplete,payload:t}))).catch((e=>{console.log("error loading search results",{url:n,error:e})})).finally((()=>e({type:Le.FetchSearchResultsFinish})))}),[i,t,e])}}({dispatch:J,locale:P,careApiDomain:g}),be=n((()=>{var e;return{id:h,name:T("booking.searchBar.currentLocation"),slug:null===(e=u[P])||void 0===e?void 0:e.CURRENT}}),[T,P]),ye=n((()=>d(ge,400)),[ge]),fe=n((()=>d(me,400)),[me]);s((()=>{""!==y&&y!==q.searchKeywords&&J({type:Le.UpdateInitialSearchValue,payload:y})}),[y]),s((()=>{x&&(null==se?void 0:se.id)===h&&"unset"===ne&&Q()}),[x,se,ne]),s((()=>{m||ne===U||("granted"===U&&W?J({type:Le.GrantGeoLocationPermission,payload:W}):"denied"===U&&J({type:Le.DenyGeoLocationPermission}))}),[ne,U,W,m]),s((()=>{X&&(F?F(X):window.location.href=`${f}${X}`)}),[X]);const ve=o((function(){J({type:Le.SelectCurrentLocation,payload:be})}),[T,J]);s((()=>{var e;"denied"===ne||re||J({type:Le.SelectLocation,payload:{name:T("booking.searchBar.allLocations"),id:p,slug:null===(e=u[P])||void 0===e?void 0:e.ALL}}),$&&$(ne,q.geoLocationCoordinates),t&&"granted"===ne&&se&&J({type:Le.FocusInputSearch}),he({coordinates:q.geoLocationCoordinates})}),[ne]),s((()=>{se&&le&&me(q.searchKeywords,q)}),[se,le]),s((()=>{k!==ue&&J({type:Le.SetInputSearchPlaceholder,payload:k})}),[k,ue]),s((()=>{pe?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[pe]);const xe=o((function(e){"ms-MY"===P&&Y(!0),J({type:Le.SelectLocation,payload:e}),"ms-MY"!==P&&Ie(),R&&R(e)}),[T,J]);function ke(){"ms-MY"===P&&Y(!0),t&&"granted"!==q.geoLocationPermission?Q():(ve(),"ms-MY"!==P&&Ie())}function je(){var e;A.current&&(null===(e=A.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function Ie(){var e;A.current&&(null===(e=A.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Fe(){J({type:Le.CloseMobileModal})}function $e(){return"location"!==ee?null:i.createElement(ie,{isLoading:te,cities:ae,onLocationClick:xe,onCurrentLocationClick:ke,isLocationLoading:te,geoLocationPermission:ne,selectedLocation:se,isOptionAllLocation:O})}function Me(){return"search"!==ee?null:q.autoCompleteDisabled?t?i.createElement(Ae,{onClick:()=>{M({cityId:q.selectedLocation.id,keyword:oe}),Fe()}}):null:i.createElement(nt,{data:ce,state:q,dispatch:J,isMobile:!1,keyword:oe,isLoading:de,hideResults:j,isNavResultItem:I})}function Re(){return i.createElement(Ne,{isMobile:t,state:q,dispatch:J,debouncedFetchCitiesByKeyword:ye,debouncedFetchSearchResults:fe,focusLocationInput:je,focusSearchInput:Ie,renderLocationResults:$e,renderSearchResults:Me,trackingAttributes:w,locationTrackingAttributes:S,onSearch:M,initalSearchValue:y})}return s((()=>{if(window.visualViewport){const e=e=>{const t=e.target;H(null==t?void 0:t.height)};return window.visualViewport.addEventListener("resize",e,{passive:!0}),()=>{window.visualViewport.removeEventListener("resize",e)}}}),[H]),s((()=>{if(se&&Z&&"ms-MY"===P){const e=`/${se.slug}/hospital`;J({type:Le.NavigateTo,payload:e}),Y(!1)}}),[Z,P,se]),t?i.createElement(i.Fragment,null,i.createElement(G,null),i.createElement(_,{ref:N}),i.createElement(z,{id:"booking-search-bar",ref:A,"data-is-modal":t&&pe,style:{"--mobile-care-searchbar-height":pe&&B?`${B}px`:"100%"}},pe?i.createElement(i.Fragment,null,i.createElement(K,null,i.createElement(we,{headingText:T("booking.searchBar.searchButton"),onLeftClick:Fe}),Re()),$e(),Me()):i.createElement(Ce,{onClick:function(){var t;return e(this,void 0,void 0,(function*(){N.current&&N.current.focus(),J({type:Le.OpenMobileModal}),yield Promise.resolve(),A.current&&(null===(t=A.current.querySelector('input[name="search-location"]'))||void 0===t||t.focus())}))},focused:ee,value:oe,trackingAttributes:w,inputSearchPlaceholder:k}))):i.createElement(D,{id:"booking-search-bar",ref:A},Re())},lt=m.div``,ct=m.div`
|
|
340
340
|
background-color: ${y.colors.neutral50};
|
|
341
341
|
padding-bottom: 1px;
|
|
342
342
|
${f.mbDown} {
|
|
@@ -359,7 +359,7 @@ import{a as e}from"./tslib.es6-aee30ad9.js";import*as t from"react";import a,{us
|
|
|
359
359
|
flex-direction: column;
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
`,pt={"en-PH":3,"tl-PH":2,"id-ID":3,"vi-VN":2,"zh-TW":0,"ms-MY":2},ut={isMobile:!1,isDebug:!1,navigateTo:null,geoLocationPermission:"unset",geoLocationCoordinates:null,focused:"none",focusedSpecialty:"none",searchLocationKeywords:"",searchSpecialtyKeywords:"",searchKeywords:"",selectedLocation:null,selectedSpecialty:null,defaultCity:null,initialCities:[],cities:[],searchResults:{},initialSearchResults:{},isLoadingCities:!1,isLoadingSearchResults:!1,isMobileModalOpened:!1,initialSelectedCity:null,autoCompleteDisabled:!1,inputSearchPlaceholder:"",locale:"vi-VN",allSpecialties:[],popularKeys:[]};var ht;function gt(e){const{selectedLocation:t,searchLocationKeywords:
|
|
362
|
+
`,pt={"en-PH":3,"tl-PH":2,"id-ID":3,"vi-VN":2,"zh-TW":0,"ms-MY":2},ut={isMobile:!1,isDebug:!1,navigateTo:null,geoLocationPermission:"unset",geoLocationCoordinates:null,focused:"none",focusedSpecialty:"none",searchLocationKeywords:"",searchSpecialtyKeywords:"",searchKeywords:"",selectedLocation:null,selectedSpecialty:null,defaultCity:null,initialCities:[],cities:[],searchResults:{},initialSearchResults:{},isLoadingCities:!1,isLoadingSearchResults:!1,isMobileModalOpened:!1,initialSelectedCity:null,autoCompleteDisabled:!1,inputSearchPlaceholder:"",locale:"vi-VN",allSpecialties:[],popularKeys:[]};var ht;function gt(e){const{selectedLocation:t,searchLocationKeywords:i}=e;return t&&i!==t.name?Object.assign(Object.assign({},e),{searchLocationKeywords:t.name}):e}function mt(e,t){var i,a;switch(e.isDebug&&console.log("bookingSearchBar",{action:t,state:e}),t.type){case ht.NavigateTo:return Object.assign(Object.assign({},e),{navigateTo:t.payload,focused:"none",isMobileModalOpened:!1});case ht.ClickOutsideInputLocation:return"location"!==e.focused?e:gt(Object.assign(Object.assign({},e),{focused:"none"}));case ht.ClickOutsideInputSpecialty:return"specialty"!==e.focused?e:gt(Object.assign(Object.assign({},e),{focused:"none"}));case ht.ClickOutsideInputSearch:return"search"!==e.focused?e:Object.assign(Object.assign({},e),{focused:"none"});case ht.ClickOutsideInputSearchSpecialty:return"search"!==e.focusedSpecialty?e:Object.assign(Object.assign({},e),{focusedSpecialty:"none"});case ht.FocusInputLocation:{const t=Object.assign(Object.assign({},e),{focused:"location"});return(null===(i=e.selectedLocation)||void 0===i?void 0:i.id)===h&&(t.searchLocationKeywords=""),t}case ht.FocusInputSpecialty:{const t=Object.assign(Object.assign({},e),{focused:"specialty"});return(null===(a=e.selectedLocation)||void 0===a?void 0:a.id)===h&&(t.searchLocationKeywords=""),t}case ht.FocusInputSearch:const o=Object.assign(Object.assign({},e),{focused:"search"});return e.isMobile?gt(o):o;case ht.FocusInputSearchSpecialty:return Object.assign(Object.assign({},e),{focusedSpecialty:"search"});case ht.ChangeInputLocation:return Object.assign(Object.assign({},e),{searchLocationKeywords:t.payload});case ht.ChangeInputSearch:{const i=t.payload;return Object.assign(Object.assign({},e),{searchKeywords:i,isLoadingSearchResults:i.trim().length>pt[e.locale]})}case ht.SelectCurrentLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case ht.ClearInputLocation:return Object.assign(Object.assign({},e),{focused:"location",cities:e.initialCities,searchLocationKeywords:""});case ht.ClearInputSearch:return Object.assign(Object.assign({},e),{focused:"search",searchKeywords:""});case ht.SelectLocation:return Object.assign(Object.assign({},e),{focused:"none",selectedLocation:t.payload,searchLocationKeywords:t.payload.name});case ht.SelectSpecialty:return Object.assign(Object.assign({},e),{focused:"none",selectedSpecialty:t.payload});case ht.SelectSearchResult:return Object.assign(Object.assign({},e),{searchKeywords:t.payload.name,isMobileModalOpened:!1,focused:"none",navigateTo:t.payload.url});case ht.FetchCitiesStart:return Object.assign(Object.assign({},e),{isLoadingCities:!0});case ht.FetchCitiesFinish:return Object.assign(Object.assign({},e),{isLoadingCities:!1});case ht.FetchSearchResultsStart:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!0});case ht.FetchSearchResultsFinish:return Object.assign(Object.assign({},e),{isLoadingSearchResults:!1});case ht.FetchSearchResultsComplete:return Object.assign(Object.assign({},e),{searchResults:Object.assign(Object.assign({},e.searchResults),{[t.payload.key]:t.payload.searches})});case ht.FetchCitiesByGeoIpComplete:{let{cities:i}=t.payload;const{default:a}=t.payload;i=i.filter((e=>e.id!==a.id)),i.unshift(a),e.initialSelectedCity&&!i.find((t=>t.id===e.initialSelectedCity.id))&&i.unshift(e.initialSelectedCity);const o=Object.assign(Object.assign({},e),{defaultCity:a,initialCities:i,cities:i});return"denied"!==e.geoLocationPermission||e.initialSelectedCity||(o.selectedLocation=a,o.searchLocationKeywords=a.name),o}case ht.FetchCitiesByKeywordComplete:return Object.assign(Object.assign({},e),{cities:t.payload});case ht.DisplayInitialCities:return Object.assign(Object.assign({},e),{cities:e.initialCities});case ht.DisplayInitialSearchResults:return Object.assign(Object.assign({},e),{searchResults:e.initialSearchResults,isLoadingSearchResults:!1});case ht.UpdateInitialSearchResults:return Object.assign(Object.assign({},e),{initialSearchResults:Object.assign(Object.assign({},e.initialSearchResults),{[t.payload.key]:t.payload.searches})});case ht.GrantGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"granted",geoLocationCoordinates:t.payload});case ht.DenyGeoLocationPermission:return Object.assign(Object.assign({},e),{geoLocationPermission:"denied",geoLocationCoordinates:null});case ht.OpenMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!0});case ht.CloseMobileModal:return Object.assign(Object.assign({},e),{isMobileModalOpened:!1});case ht.UpdateInitialSearchValue:return Object.assign(Object.assign({},e),{searchKeywords:t.payload});case ht.SetInputSearchPlaceholder:return Object.assign(Object.assign({},e),{inputSearchPlaceholder:t.payload});case ht.FetchAllSpecialties:return Object.assign(Object.assign({},e),{allSpecialties:t.payload});case ht.FetchPopularKeys:return Object.assign(Object.assign({},e),{popularKeys:t.payload});default:return e}}!function(e){e.NavigateTo="navigate to url",e.ClickOutsideInputLocation="click outside input location",e.ClickOutsideInputSearch="click outside input search",e.ClickOutsideInputSearchSpecialty="click outside input search specialty",e.ClickOutsideInputSpecialty="click outside input specialty",e.SelectCurrentLocation="select current location",e.FocusInputLocation="focus input location",e.FocusInputSearch="focus input search",e.FocusInputSearchSpecialty="focus input search specialty",e.ChangeInputLocation="change input location",e.ChangeInputSearch="change input search",e.ClearInputLocation="clear input location",e.ClearInputSearch="clear input search",e.SelectLocation="select location",e.SelectSpecialty="select specialty",e.FetchCitiesStart="fetch cities start",e.FetchCitiesFinish="fetch cities finish",e.FetchSearchResultsStart="fetch search results start",e.FetchSearchResultsComplete="fetch search results complete",e.FetchSearchResultsFinish="fetch search results finish",e.FetchCitiesByGeoIpComplete="fetch cities by geo IP finish",e.FetchCitiesByKeywordComplete="fetch cities by keyword finish",e.DisplayInitialCities="display initial cities",e.DisplayInitialSearchResults="display initial search results",e.UpdateInitialSearchResults="update initial search results",e.GrantGeoLocationPermission="grant geolocation permission",e.DenyGeoLocationPermission="deny geolocation permission",e.OpenMobileModal="open mobile modal",e.CloseMobileModal="close mobile modal",e.UpdateInitialSearchValue="update initial search value",e.SelectSearchResult="select search result",e.SetInputSearchPlaceholder="set input search placeholder",e.FocusInputSpecialty="focus input specialty",e.FetchAllSpecialties="fetch all specialty",e.FetchPopularKeys="fetch popular key by type"}(ht||(ht={}));const Ct=m.div`
|
|
363
363
|
flex: 1;
|
|
364
364
|
position: relative;
|
|
365
365
|
|
|
@@ -422,6 +422,7 @@ import{a as e}from"./tslib.es6-aee30ad9.js";import*as t from"react";import a,{us
|
|
|
422
422
|
border-radius: 50%;
|
|
423
423
|
|
|
424
424
|
img {
|
|
425
|
+
object-fit: contain;
|
|
425
426
|
width: 100%;
|
|
426
427
|
height: 100%;
|
|
427
428
|
border-radius: 50%;
|
|
@@ -477,7 +478,7 @@ import{a as e}from"./tslib.es6-aee30ad9.js";import*as t from"react";import a,{us
|
|
|
477
478
|
line-height: 22px;
|
|
478
479
|
cursor: pointer;
|
|
479
480
|
}
|
|
480
|
-
`;const wt=({state:e,type:t,results:
|
|
481
|
+
`;const wt=({state:e,type:t,results:a,location:o,isLoading:s,typeInformation:r,dispatch:l})=>{const{t:d}=c(),{selectedLocation:p}=e,u=n((()=>r[t].slug),[r,t]);return i.createElement(yt,null,i.createElement(ft,null,i.createElement("div",{className:"title"},d("booking.searchResult.description",{search_type:r[t].name,search_location:o})),a.length>0&&i.createElement("div",{className:"btn-see-all",onClick:()=>{let i="";("doctor"===t||"hospital"===t)&&e.selectedSpecialty.id>0&&(i=`?specialtyId=${e.selectedSpecialty.id}`);const a=`/${p.slug}/${u}${i}`;a&&l({type:ht.NavigateTo,payload:a})}},d("home.seeAll"))),i.createElement(vt,null,s&&Array(3).fill(void 0).map(((e,a)=>i.createElement(xt,{key:t+"loading"+a,className:2===a?"last-item":""},i.createElement("div",{className:"image-item"},i.createElement(S,{height:48,circle:!0,mb:"xl",animate:!0})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},i.createElement(S,{height:8,mt:10,radius:"xl",animate:!0})),i.createElement("div",{className:"description"},i.createElement("div",{className:"sub-description"},i.createElement(S,{height:8,mt:10,radius:"xl",width:"80%",animate:!0}))))))),!s&&a&&a.length>0&&i.createElement(i.Fragment,null,a.map(((e,o)=>{var n,s;const c=a.length>4&&3===o||a.length<=4&&o===a.length-1;let d="";return"hospital"===t&&(d=(null==e?void 0:e.address)||""),"doctor"===t&&(d=(null===(n=null==e?void 0:e.specialties)||void 0===n?void 0:n.join(", "))||""),"service"===t&&(d=(null===(s=null==e?void 0:e.organization)||void 0===s?void 0:s.name)||""),o>=4?i.createElement(i.Fragment,null):i.createElement(xt,{key:e.id,className:c?"last-item":"",onClick:()=>(e=>{let i="";switch(t){case"service":i=`/${p.slug}/${u}/${e.slug}`;break;case"doctor":case"hospital":i=`/${u}/${e.slug}-${e.id}`}i&&l({type:ht.NavigateTo,payload:i})})(e)},i.createElement("div",{className:"image-item"},i.createElement("img",{src:e.logo||e.avatar,alt:e.name})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},e.name),i.createElement("div",{className:"description"},r[t].icon,i.createElement("div",{className:"sub-description"},d))))}))),!s&&0===(null==a?void 0:a.length)&&i.createElement(b,{size:"sm",color:y.colors.gray400},d("booking.searchBar.noResults"))))},Et=m.div`
|
|
481
482
|
position: relative;
|
|
482
483
|
|
|
483
484
|
${f.mbDown} {
|
|
@@ -558,7 +559,7 @@ import{a as e}from"./tslib.es6-aee30ad9.js";import*as t from"react";import a,{us
|
|
|
558
559
|
`;m(Y)`
|
|
559
560
|
width: 12px;
|
|
560
561
|
height: 18px;
|
|
561
|
-
`;const kt=()=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},a.createElement("path",{d:"M8.98307 14.3333C7.87196 14.3333 6.92752 13.9445 6.14974 13.1667C5.37196 12.3889 4.98307 11.4445 4.98307 10.3333V9.96668C4.08307 9.85557 3.33041 9.45557 2.72507 8.76668C2.1193 8.07779 1.81641 7.26668 1.81641 6.33334V3.10001C1.81641 2.93334 1.87463 2.79157 1.99107 2.67468C2.10796 2.55823 2.24974 2.50001 2.41641 2.50001H3.81641V2.33334C3.81641 2.1889 3.86374 2.06934 3.95841 1.97468C4.05263 1.88045 4.17196 1.83334 4.31641 1.83334C4.46085 1.83334 4.58041 1.88045 4.67507 1.97468C4.7693 2.06934 4.81641 2.1889 4.81641 2.33334V3.66668C4.81641 3.81112 4.7693 3.93045 4.67507 4.02468C4.58041 4.11934 4.46085 4.16668 4.31641 4.16668C4.17196 4.16668 4.05263 4.11934 3.95841 4.02468C3.86374 3.93045 3.81641 3.81112 3.81641 3.66668V3.50001H2.81641V6.33334C2.81641 7.06668 3.07752 7.69445 3.59974 8.21668C4.12196 8.7389 4.74974 9.00001 5.48307 9.00001C6.21641 9.00001 6.84418 8.7389 7.36641 8.21668C7.88863 7.69445 8.14974 7.06668 8.14974 6.33334V3.50001H7.14974V3.66668C7.14974 3.81112 7.10263 3.93045 7.00841 4.02468C6.91374 4.11934 6.79418 4.16668 6.64974 4.16668C6.5053 4.16668 6.38596 4.11934 6.29174 4.02468C6.19707 3.93045 6.14974 3.81112 6.14974 3.66668V2.33334C6.14974 2.1889 6.19707 2.06934 6.29174 1.97468C6.38596 1.88045 6.5053 1.83334 6.64974 1.83334C6.79418 1.83334 6.91374 1.88045 7.00841 1.97468C7.10263 2.06934 7.14974 2.1889 7.14974 2.33334V2.50001H8.54974C8.71641 2.50001 8.85818 2.55823 8.97507 2.67468C9.09152 2.79157 9.14974 2.93334 9.14974 3.10001V6.33334C9.14974 7.26668 8.84707 8.07779 8.24174 8.76668C7.63596 9.45557 6.88307 9.85557 5.98307 9.96668V10.3333C5.98307 11.1667 6.27485 11.8751 6.85841 12.4587C7.44152 13.0418 8.14974 13.3333 8.98307 13.3333C9.81641 13.3333 10.5249 13.0418 11.1084 12.4587C11.6915 11.8751 11.9831 11.1667 11.9831 10.3333V9.25001C11.6386 9.1389 11.3526 8.93601 11.1251 8.64134C10.8971 8.34712 10.7831 8.01112 10.7831 7.63334C10.7831 7.15557 10.9497 6.75001 11.2831 6.41668C11.6164 6.08334 12.0164 5.91668 12.4831 5.91668C12.9609 5.91668 13.3664 6.08334 13.6997 6.41668C14.0331 6.75001 14.1997 7.15557 14.1997 7.63334C14.1997 8.01112 14.086 8.34712 13.8584 8.64134C13.6304 8.93601 13.3386 9.1389 12.9831 9.25001V10.3333C12.9831 11.4445 12.5942 12.3889 11.8164 13.1667C11.0386 13.9445 10.0942 14.3333 8.98307 14.3333ZM12.4831 8.33334C12.6831 8.33334 12.8526 8.26401 12.9917 8.12534C13.1304 7.98623 13.1997 7.82223 13.1997 7.63334C13.1997 7.43334 13.1304 7.26401 12.9917 7.12534C12.8526 6.98623 12.6831 6.91668 12.4831 6.91668C12.2831 6.91668 12.1164 6.98623 11.9831 7.12534C11.8497 7.26401 11.7831 7.43334 11.7831 7.63334C11.7831 7.82223 11.8497 7.98623 11.9831 8.12534C12.1164 8.26401 12.2831 8.33334 12.4831 8.33334Z",fill:"#595959"})),Ot=()=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},a.createElement("path",{d:"M6.86836 9.26489V10.2386C6.86836 10.509 6.96294 10.7389 7.15209 10.9283C7.34124 11.1176 7.57093 11.2122 7.84114 11.2122C8.11135 11.2122 8.34133 11.1176 8.53106 10.9283C8.7208 10.7389 8.81567 10.509 8.81567 10.2386V9.26489H9.78936C10.0598 9.26489 10.2897 9.17031 10.479 8.98116C10.6684 8.79201 10.763 8.56233 10.763 8.29211C10.763 8.0219 10.6684 7.79192 10.479 7.60219C10.2897 7.41245 10.0598 7.31758 9.78936 7.31758H8.81567V6.34389C8.81567 6.07343 8.72109 5.84354 8.53194 5.65422C8.34279 5.4649 8.11311 5.37024 7.84289 5.37024C7.57268 5.37024 7.3427 5.4649 7.15297 5.65422C6.96323 5.84354 6.86836 6.07343 6.86836 6.34389V7.31758H5.89467C5.62421 7.31758 5.39432 7.41216 5.205 7.60131C5.01568 7.79046 4.92102 8.02014 4.92102 8.29036C4.92102 8.56057 5.01568 8.79055 5.205 8.98028C5.39432 9.17002 5.62421 9.26489 5.89467 9.26489H6.86836ZM3.40809 14.1333C3.02086 14.1333 2.68938 13.9954 2.41364 13.7196C2.13788 13.4439 2 13.1124 2 12.7252V6.07426C2 5.85132 2.04987 5.64011 2.14961 5.44063C2.24936 5.24116 2.38723 5.07689 2.56323 4.94782L6.99718 1.61486C7.24323 1.42712 7.52444 1.33325 7.84081 1.33325C8.15718 1.33325 8.43919 1.42712 8.68685 1.61486L13.1208 4.94782C13.2968 5.07689 13.4347 5.24116 13.5344 5.44063C13.6342 5.64011 13.684 5.85132 13.684 6.07426V12.7252C13.684 13.1124 13.5462 13.4439 13.2704 13.7196C12.9947 13.9954 12.6632 14.1333 12.2759 14.1333H3.40809ZM3.40809 12.9649H12.2759C12.3459 12.9649 12.4033 12.9424 12.4482 12.8974C12.4932 12.8525 12.5156 12.7951 12.5156 12.7252V6.07426C12.5156 6.03431 12.5069 5.99811 12.4894 5.96566C12.4719 5.9332 12.4482 5.90449 12.4183 5.87953L7.98433 2.55406C7.94438 2.51911 7.89694 2.50164 7.84202 2.50164C7.78709 2.50164 7.73965 2.51911 7.69971 2.55406L3.26576 5.87953C3.2358 5.90449 3.21209 5.9332 3.1946 5.96566C3.17712 5.99811 3.16839 6.03431 3.16839 6.07426V12.7252C3.16839 12.7951 3.19086 12.8525 3.2358 12.8974C3.28075 12.9424 3.33818 12.9649 3.40809 12.9649Z",fill:"#595959"})),jt=()=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},a.createElement("path",{d:"M7.99984 8.00004C8.3665 8.00004 8.68039 7.86949 8.9415 7.60837C9.20261 7.34726 9.33317 7.03337 9.33317 6.66671C9.33317 6.30004 9.20261 5.98615 8.9415 5.72504C8.68039 5.46393 8.3665 5.33337 7.99984 5.33337C7.63317 5.33337 7.31928 5.46393 7.05817 5.72504C6.79706 5.98615 6.6665 6.30004 6.6665 6.66671C6.6665 7.03337 6.79706 7.34726 7.05817 7.60837C7.31928 7.86949 7.63317 8.00004 7.99984 8.00004ZM7.99984 12.9C9.35539 11.6556 10.3609 10.525 11.0165 9.50837C11.6721 8.49171 11.9998 7.58893 11.9998 6.80004C11.9998 5.58893 11.6137 4.59726 10.8415 3.82504C10.0693 3.05282 9.12206 2.66671 7.99984 2.66671C6.87761 2.66671 5.93039 3.05282 5.15817 3.82504C4.38595 4.59726 3.99984 5.58893 3.99984 6.80004C3.99984 7.58893 4.32761 8.49171 4.98317 9.50837C5.63873 10.525 6.64428 11.6556 7.99984 12.9ZM7.99984 14.4167C7.91095 14.4167 7.82206 14.4 7.73317 14.3667C7.64428 14.3334 7.5665 14.2889 7.49984 14.2334C5.87761 12.8 4.6665 11.4695 3.8665 10.2417C3.0665 9.01393 2.6665 7.86671 2.6665 6.80004C2.6665 5.13337 3.20261 3.8056 4.27484 2.81671C5.34706 1.82782 6.58873 1.33337 7.99984 1.33337C9.41095 1.33337 10.6526 1.82782 11.7248 2.81671C12.7971 3.8056 13.3332 5.13337 13.3332 6.80004C13.3332 7.86671 12.9332 9.01393 12.1332 10.2417C11.3332 11.4695 10.1221 12.8 8.49984 14.2334C8.43317 14.2889 8.35539 14.3334 8.2665 14.3667C8.17761 14.4 8.08873 14.4167 7.99984 14.4167Z",fill:"#8C8C8C"})),It=()=>a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},a.createElement("path",{d:"M3.83333 0.5C2.94928 0.5 2.10143 0.851189 1.47631 1.47631C0.851189 2.10143 0.5 2.94928 0.5 3.83333C0.5 4.71739 0.851189 5.56523 1.47631 6.19036C2.10143 6.81548 2.94928 7.16667 3.83333 7.16667C4.71739 7.16667 5.56523 6.81548 6.19036 6.19036C6.81548 5.56523 7.16667 4.71739 7.16667 3.83333C7.16667 2.94928 6.81548 2.10143 6.19036 1.47631C5.56523 0.851189 4.71739 0.5 3.83333 0.5V0.5ZM10.5 0.5C9.57917 0.5 8.83333 1.24583 8.83333 2.16667V5.5C8.83333 6.42083 9.57917 7.16667 10.5 7.16667H13.8333C14.7542 7.16667 15.5 6.42083 15.5 5.5V2.16667C15.5 1.24583 14.7542 0.5 13.8333 0.5H10.5ZM3.83333 8.83333C2.94928 8.83333 2.10143 9.18452 1.47631 9.80964C0.851189 10.4348 0.5 11.2826 0.5 12.1667C0.5 13.0507 0.851189 13.8986 1.47631 14.5237C2.10143 15.1488 2.94928 15.5 3.83333 15.5C4.71739 15.5 5.56523 15.1488 6.19036 14.5237C6.81548 13.8986 7.16667 13.0507 7.16667 12.1667C7.16667 11.2826 6.81548 10.4348 6.19036 9.80964C5.56523 9.18452 4.71739 8.83333 3.83333 8.83333V8.83333ZM12.1667 8.83333C11.2826 8.83333 10.4348 9.18452 9.80964 9.80964C9.18452 10.4348 8.83333 11.2826 8.83333 12.1667C8.83333 13.0507 9.18452 13.8986 9.80964 14.5237C10.4348 15.1488 11.2826 15.5 12.1667 15.5C13.0507 15.5 13.8986 15.1488 14.5237 14.5237C15.1488 13.8986 15.5 13.0507 15.5 12.1667C15.5 11.2826 15.1488 10.4348 14.5237 9.80964C13.8986 9.18452 13.0507 8.83333 12.1667 8.83333V8.83333Z",fill:"#9AA2AC"})),Ft=({state:e,isMobile:t,debouncedFetchSearchResults:i,selectedLocation:s,onSpecialtyClick:l,dispatch:d})=>{var p;const{t:h,locale:g}=c(),m=r(null),C=n((()=>u[g]),[g]),y=n((()=>({wrapper:{"&:after":{content:'""',width:"1px",height:"20px",backgroundColor:"#E4E8EC",position:"absolute",right:0,top:"13px"}},input:{border:t?"border: 1px solid #d9d9d9":"none",height:t?"40px":"46px !important",paddingRight:"30px","&:focus":{boxShadow:t?"box-shadow: 0px 0px 0px 2px #91caff":"none"}},rightSection:{width:"30px",svg:{fontSize:"20px"}}})),[t]),f=o((function(e){console.log(e)}),[i,d]);return w(m,(()=>{d({type:ht.ClickOutsideInputSpecialty})})),a.createElement(Et,{ref:m},a.createElement(L.Wrapper,null,a.createElement(L,{size:t?"md":"lg",placeholder:h("booking.searchPopup.specialties"),value:(null===(p=null==e?void 0:e.selectedSpecialty)||void 0===p?void 0:p.name)||"",rightSection:a.createElement(B,null),styles:y,onFocus:()=>d({type:ht.FocusInputSpecialty}),onChange:e=>{f(e.target.value)}})),"specialty"===e.focused&&a.createElement(St,null,a.createElement(Lt,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{l&&l({name:h("booking.searchBar.allSpecialties"),id:-1,thumbnail:"",total_doctor:0,slug:C.SPECIALTIES})}},a.createElement("div",{className:"image-item"},a.createElement(It,null)),a.createElement(b,{size:"md"},h("booking.searchBar.allSpecialties"))),e.allSpecialties.map((e=>a.createElement(Lt,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),l&&l(Object.assign(Object.assign({},e),{total_doctor:0}))},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==s?void 0:s.id)===e.id},a.createElement("div",{className:"image-item"},a.createElement("img",{src:e.thumbnail,alt:e.name})),a.createElement(b,{size:"md"},e.name))))))},$t=({state:e,type:t,isMobile:i,isLoading:s,initalSearchValue:l,typeInformation:d,debouncedFetchSearchResults:p,trackingAttributes:u,focusSearchInput:h,onSearch:g,dispatch:m})=>{var C;const{t:b}=c(),y=r(null),f=n((()=>u?{"data-event-category":u.dataEventCategory,"data-event-action":u.dataEventAction,"data-event-label":u.dataEventLabel}:{}),[u]),v=n((()=>"doctor"===t?b("booking.searchBar.placeholder.doctor"):"service"===t?b("booking.searchBar.placeholder.service"):"hospital"===t?b("booking.searchBar.placeholder.hospital"):"specialty"===t?b("booking.searchBar.placeholder.specialty"):""),[t]),x=n((()=>({root:{flex:1}})),[]),E=n((()=>({icon:{left:"165px"},input:{color:"#262626",'&[data-with-icon="true"]':{paddingLeft:"205px",paddingRight:"16px"}},rightSection:{left:0,width:"165px",padding:"1px"}})),[]),S=n((()=>({input:{color:"#262626"}})),[]);w(y,(()=>{m({type:ht.ClickOutsideInputSearch})}));const k=o((function(a){m({type:ht.ChangeInputSearch,payload:a}),"function"!=typeof g&&(a.trim().length>pt[e.locale]||l||0===a.trim().length?p(a.trim(),e,t):(p.cancel(),m({type:ht.DisplayInitialSearchResults})))}),[m,e,t]),O=o((function(e){m({type:ht.SelectSpecialty,payload:e}),h()}),[m]);return a.createElement(Ct,{ref:y},"specialty"===t?a.createElement(L.Wrapper,{styles:x},a.createElement(L,{icon:a.createElement(A.Search,null),size:i?"md":"lg",placeholder:v,styles:S,value:e.searchKeywords,onFocus:()=>m({type:ht.FocusInputSearchSpecialty}),onChange:e=>{k(e.target.value)}})):a.createElement(a.Fragment,null,"service"===t?a.createElement(L.Wrapper,{styles:x},a.createElement(L,{icon:a.createElement(A.Search,null),size:i?"md":"lg",name:"search-results",placeholder:v,onFocus:()=>m({type:ht.FocusInputSearch}),value:e.searchKeywords,onChange:e=>{k(e.target.value)}})):a.createElement(a.Fragment,null,i?a.createElement(a.Fragment,null,a.createElement(Ft,{state:e,isMobile:i,dispatch:m,debouncedFetchSearchResults:p,onSpecialtyClick:O}),a.createElement(L.Wrapper,{styles:x},a.createElement(L,{icon:a.createElement(A.Search,null),size:"md",placeholder:v,value:e.searchKeywords,name:"search-results",onFocus:()=>m({type:ht.FocusInputSearch}),onChange:e=>{k(e.target.value)}}))):a.createElement(L.Wrapper,{styles:x},a.createElement(L,Object.assign({icon:a.createElement(A.Search,null),size:"lg",placeholder:v,styles:E,name:"search-results",autoComplete:"off",value:e.searchKeywords,onChange:e=>{k(e.target.value)},onFocus:()=>m({type:ht.FocusInputSearch})},f,{rightSection:a.createElement(Ft,{state:e,isMobile:i,dispatch:m,debouncedFetchSearchResults:p,onSpecialtyClick:O})})))),"search"===e.focused&&a.createElement(bt,null,a.createElement(wt,{type:t,state:e,results:(null===(C=e.searchResults)||void 0===C?void 0:C[t])||[],location:e.selectedLocation.name,dispatch:m,isLoading:s,typeInformation:d}))))},Mt=m.div`
|
|
562
|
+
`;const kt=()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i.createElement("path",{d:"M8.98307 14.3333C7.87196 14.3333 6.92752 13.9445 6.14974 13.1667C5.37196 12.3889 4.98307 11.4445 4.98307 10.3333V9.96668C4.08307 9.85557 3.33041 9.45557 2.72507 8.76668C2.1193 8.07779 1.81641 7.26668 1.81641 6.33334V3.10001C1.81641 2.93334 1.87463 2.79157 1.99107 2.67468C2.10796 2.55823 2.24974 2.50001 2.41641 2.50001H3.81641V2.33334C3.81641 2.1889 3.86374 2.06934 3.95841 1.97468C4.05263 1.88045 4.17196 1.83334 4.31641 1.83334C4.46085 1.83334 4.58041 1.88045 4.67507 1.97468C4.7693 2.06934 4.81641 2.1889 4.81641 2.33334V3.66668C4.81641 3.81112 4.7693 3.93045 4.67507 4.02468C4.58041 4.11934 4.46085 4.16668 4.31641 4.16668C4.17196 4.16668 4.05263 4.11934 3.95841 4.02468C3.86374 3.93045 3.81641 3.81112 3.81641 3.66668V3.50001H2.81641V6.33334C2.81641 7.06668 3.07752 7.69445 3.59974 8.21668C4.12196 8.7389 4.74974 9.00001 5.48307 9.00001C6.21641 9.00001 6.84418 8.7389 7.36641 8.21668C7.88863 7.69445 8.14974 7.06668 8.14974 6.33334V3.50001H7.14974V3.66668C7.14974 3.81112 7.10263 3.93045 7.00841 4.02468C6.91374 4.11934 6.79418 4.16668 6.64974 4.16668C6.5053 4.16668 6.38596 4.11934 6.29174 4.02468C6.19707 3.93045 6.14974 3.81112 6.14974 3.66668V2.33334C6.14974 2.1889 6.19707 2.06934 6.29174 1.97468C6.38596 1.88045 6.5053 1.83334 6.64974 1.83334C6.79418 1.83334 6.91374 1.88045 7.00841 1.97468C7.10263 2.06934 7.14974 2.1889 7.14974 2.33334V2.50001H8.54974C8.71641 2.50001 8.85818 2.55823 8.97507 2.67468C9.09152 2.79157 9.14974 2.93334 9.14974 3.10001V6.33334C9.14974 7.26668 8.84707 8.07779 8.24174 8.76668C7.63596 9.45557 6.88307 9.85557 5.98307 9.96668V10.3333C5.98307 11.1667 6.27485 11.8751 6.85841 12.4587C7.44152 13.0418 8.14974 13.3333 8.98307 13.3333C9.81641 13.3333 10.5249 13.0418 11.1084 12.4587C11.6915 11.8751 11.9831 11.1667 11.9831 10.3333V9.25001C11.6386 9.1389 11.3526 8.93601 11.1251 8.64134C10.8971 8.34712 10.7831 8.01112 10.7831 7.63334C10.7831 7.15557 10.9497 6.75001 11.2831 6.41668C11.6164 6.08334 12.0164 5.91668 12.4831 5.91668C12.9609 5.91668 13.3664 6.08334 13.6997 6.41668C14.0331 6.75001 14.1997 7.15557 14.1997 7.63334C14.1997 8.01112 14.086 8.34712 13.8584 8.64134C13.6304 8.93601 13.3386 9.1389 12.9831 9.25001V10.3333C12.9831 11.4445 12.5942 12.3889 11.8164 13.1667C11.0386 13.9445 10.0942 14.3333 8.98307 14.3333ZM12.4831 8.33334C12.6831 8.33334 12.8526 8.26401 12.9917 8.12534C13.1304 7.98623 13.1997 7.82223 13.1997 7.63334C13.1997 7.43334 13.1304 7.26401 12.9917 7.12534C12.8526 6.98623 12.6831 6.91668 12.4831 6.91668C12.2831 6.91668 12.1164 6.98623 11.9831 7.12534C11.8497 7.26401 11.7831 7.43334 11.7831 7.63334C11.7831 7.82223 11.8497 7.98623 11.9831 8.12534C12.1164 8.26401 12.2831 8.33334 12.4831 8.33334Z",fill:"#595959"})),Ot=()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i.createElement("path",{d:"M6.86836 9.26489V10.2386C6.86836 10.509 6.96294 10.7389 7.15209 10.9283C7.34124 11.1176 7.57093 11.2122 7.84114 11.2122C8.11135 11.2122 8.34133 11.1176 8.53106 10.9283C8.7208 10.7389 8.81567 10.509 8.81567 10.2386V9.26489H9.78936C10.0598 9.26489 10.2897 9.17031 10.479 8.98116C10.6684 8.79201 10.763 8.56233 10.763 8.29211C10.763 8.0219 10.6684 7.79192 10.479 7.60219C10.2897 7.41245 10.0598 7.31758 9.78936 7.31758H8.81567V6.34389C8.81567 6.07343 8.72109 5.84354 8.53194 5.65422C8.34279 5.4649 8.11311 5.37024 7.84289 5.37024C7.57268 5.37024 7.3427 5.4649 7.15297 5.65422C6.96323 5.84354 6.86836 6.07343 6.86836 6.34389V7.31758H5.89467C5.62421 7.31758 5.39432 7.41216 5.205 7.60131C5.01568 7.79046 4.92102 8.02014 4.92102 8.29036C4.92102 8.56057 5.01568 8.79055 5.205 8.98028C5.39432 9.17002 5.62421 9.26489 5.89467 9.26489H6.86836ZM3.40809 14.1333C3.02086 14.1333 2.68938 13.9954 2.41364 13.7196C2.13788 13.4439 2 13.1124 2 12.7252V6.07426C2 5.85132 2.04987 5.64011 2.14961 5.44063C2.24936 5.24116 2.38723 5.07689 2.56323 4.94782L6.99718 1.61486C7.24323 1.42712 7.52444 1.33325 7.84081 1.33325C8.15718 1.33325 8.43919 1.42712 8.68685 1.61486L13.1208 4.94782C13.2968 5.07689 13.4347 5.24116 13.5344 5.44063C13.6342 5.64011 13.684 5.85132 13.684 6.07426V12.7252C13.684 13.1124 13.5462 13.4439 13.2704 13.7196C12.9947 13.9954 12.6632 14.1333 12.2759 14.1333H3.40809ZM3.40809 12.9649H12.2759C12.3459 12.9649 12.4033 12.9424 12.4482 12.8974C12.4932 12.8525 12.5156 12.7951 12.5156 12.7252V6.07426C12.5156 6.03431 12.5069 5.99811 12.4894 5.96566C12.4719 5.9332 12.4482 5.90449 12.4183 5.87953L7.98433 2.55406C7.94438 2.51911 7.89694 2.50164 7.84202 2.50164C7.78709 2.50164 7.73965 2.51911 7.69971 2.55406L3.26576 5.87953C3.2358 5.90449 3.21209 5.9332 3.1946 5.96566C3.17712 5.99811 3.16839 6.03431 3.16839 6.07426V12.7252C3.16839 12.7951 3.19086 12.8525 3.2358 12.8974C3.28075 12.9424 3.33818 12.9649 3.40809 12.9649Z",fill:"#595959"})),jt=()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},i.createElement("path",{d:"M7.99984 8.00004C8.3665 8.00004 8.68039 7.86949 8.9415 7.60837C9.20261 7.34726 9.33317 7.03337 9.33317 6.66671C9.33317 6.30004 9.20261 5.98615 8.9415 5.72504C8.68039 5.46393 8.3665 5.33337 7.99984 5.33337C7.63317 5.33337 7.31928 5.46393 7.05817 5.72504C6.79706 5.98615 6.6665 6.30004 6.6665 6.66671C6.6665 7.03337 6.79706 7.34726 7.05817 7.60837C7.31928 7.86949 7.63317 8.00004 7.99984 8.00004ZM7.99984 12.9C9.35539 11.6556 10.3609 10.525 11.0165 9.50837C11.6721 8.49171 11.9998 7.58893 11.9998 6.80004C11.9998 5.58893 11.6137 4.59726 10.8415 3.82504C10.0693 3.05282 9.12206 2.66671 7.99984 2.66671C6.87761 2.66671 5.93039 3.05282 5.15817 3.82504C4.38595 4.59726 3.99984 5.58893 3.99984 6.80004C3.99984 7.58893 4.32761 8.49171 4.98317 9.50837C5.63873 10.525 6.64428 11.6556 7.99984 12.9ZM7.99984 14.4167C7.91095 14.4167 7.82206 14.4 7.73317 14.3667C7.64428 14.3334 7.5665 14.2889 7.49984 14.2334C5.87761 12.8 4.6665 11.4695 3.8665 10.2417C3.0665 9.01393 2.6665 7.86671 2.6665 6.80004C2.6665 5.13337 3.20261 3.8056 4.27484 2.81671C5.34706 1.82782 6.58873 1.33337 7.99984 1.33337C9.41095 1.33337 10.6526 1.82782 11.7248 2.81671C12.7971 3.8056 13.3332 5.13337 13.3332 6.80004C13.3332 7.86671 12.9332 9.01393 12.1332 10.2417C11.3332 11.4695 10.1221 12.8 8.49984 14.2334C8.43317 14.2889 8.35539 14.3334 8.2665 14.3667C8.17761 14.4 8.08873 14.4167 7.99984 14.4167Z",fill:"#8C8C8C"})),It=()=>i.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},i.createElement("path",{d:"M3.83333 0.5C2.94928 0.5 2.10143 0.851189 1.47631 1.47631C0.851189 2.10143 0.5 2.94928 0.5 3.83333C0.5 4.71739 0.851189 5.56523 1.47631 6.19036C2.10143 6.81548 2.94928 7.16667 3.83333 7.16667C4.71739 7.16667 5.56523 6.81548 6.19036 6.19036C6.81548 5.56523 7.16667 4.71739 7.16667 3.83333C7.16667 2.94928 6.81548 2.10143 6.19036 1.47631C5.56523 0.851189 4.71739 0.5 3.83333 0.5V0.5ZM10.5 0.5C9.57917 0.5 8.83333 1.24583 8.83333 2.16667V5.5C8.83333 6.42083 9.57917 7.16667 10.5 7.16667H13.8333C14.7542 7.16667 15.5 6.42083 15.5 5.5V2.16667C15.5 1.24583 14.7542 0.5 13.8333 0.5H10.5ZM3.83333 8.83333C2.94928 8.83333 2.10143 9.18452 1.47631 9.80964C0.851189 10.4348 0.5 11.2826 0.5 12.1667C0.5 13.0507 0.851189 13.8986 1.47631 14.5237C2.10143 15.1488 2.94928 15.5 3.83333 15.5C4.71739 15.5 5.56523 15.1488 6.19036 14.5237C6.81548 13.8986 7.16667 13.0507 7.16667 12.1667C7.16667 11.2826 6.81548 10.4348 6.19036 9.80964C5.56523 9.18452 4.71739 8.83333 3.83333 8.83333V8.83333ZM12.1667 8.83333C11.2826 8.83333 10.4348 9.18452 9.80964 9.80964C9.18452 10.4348 8.83333 11.2826 8.83333 12.1667C8.83333 13.0507 9.18452 13.8986 9.80964 14.5237C10.4348 15.1488 11.2826 15.5 12.1667 15.5C13.0507 15.5 13.8986 15.1488 14.5237 14.5237C15.1488 13.8986 15.5 13.0507 15.5 12.1667C15.5 11.2826 15.1488 10.4348 14.5237 9.80964C13.8986 9.18452 13.0507 8.83333 12.1667 8.83333V8.83333Z",fill:"#9AA2AC"})),Ft=({state:e,isMobile:t,debouncedFetchSearchResults:a,selectedLocation:s,onSpecialtyClick:l,dispatch:d})=>{var p;const{t:h,locale:g}=c(),m=r(null),C=n((()=>u[g]),[g]),y=n((()=>({wrapper:{"&:after":{content:'""',width:"1px",height:"20px",backgroundColor:"#E4E8EC",position:"absolute",right:0,top:"13px"}},input:{border:t?"border: 1px solid #d9d9d9":"none",height:t?"40px":"46px !important",paddingRight:"30px","&:focus":{boxShadow:t?"box-shadow: 0px 0px 0px 2px #91caff":"none"}},rightSection:{width:"30px",svg:{fontSize:"20px"}}})),[t]),f=o((function(e){console.log(e)}),[a,d]);return w(m,(()=>{d({type:ht.ClickOutsideInputSpecialty})})),i.createElement(Et,{ref:m},i.createElement(L.Wrapper,null,i.createElement(L,{size:t?"md":"lg",placeholder:h("booking.searchPopup.specialties"),value:(null===(p=null==e?void 0:e.selectedSpecialty)||void 0===p?void 0:p.name)||"",rightSection:i.createElement(B,null),styles:y,onFocus:()=>d({type:ht.FocusInputSpecialty}),onChange:e=>{f(e.target.value)}})),"specialty"===e.focused&&i.createElement(St,null,i.createElement(Lt,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{l&&l({name:h("booking.searchBar.allSpecialties"),id:-1,thumbnail:"",total_doctor:0,slug:C.SPECIALTIES})}},i.createElement("div",{className:"image-item"},i.createElement(It,null)),i.createElement(b,{size:"md"},h("booking.searchBar.allSpecialties"))),e.allSpecialties.map((e=>i.createElement(Lt,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),l&&l(Object.assign(Object.assign({},e),{total_doctor:0}))},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==s?void 0:s.id)===e.id},i.createElement("div",{className:"image-item"},i.createElement("img",{src:e.thumbnail,alt:e.name})),i.createElement(b,{size:"md"},e.name))))))},$t=({state:e,type:t,isMobile:a,isLoading:s,initalSearchValue:l,typeInformation:d,debouncedFetchSearchResults:p,trackingAttributes:u,focusSearchInput:h,onSearch:g,dispatch:m})=>{var C;const{t:b}=c(),y=r(null),f=n((()=>u?{"data-event-category":u.dataEventCategory,"data-event-action":u.dataEventAction,"data-event-label":u.dataEventLabel}:{}),[u]),v=n((()=>"doctor"===t?b("booking.searchBar.placeholder.doctor"):"service"===t?b("booking.searchBar.placeholder.service"):"hospital"===t?b("booking.searchBar.placeholder.hospital"):"specialty"===t?b("booking.searchBar.placeholder.specialty"):""),[t]),x=n((()=>({root:{flex:1}})),[]),E=n((()=>({icon:{left:"165px"},input:{color:"#262626",'&[data-with-icon="true"]':{paddingLeft:"205px",paddingRight:"16px"}},rightSection:{left:0,width:"165px",padding:"1px"}})),[]),S=n((()=>({input:{color:"#262626"}})),[]);w(y,(()=>{m({type:ht.ClickOutsideInputSearch})}));const k=o((function(i){m({type:ht.ChangeInputSearch,payload:i}),"function"!=typeof g&&(i.trim().length>pt[e.locale]||l||0===i.trim().length?p(i.trim(),e,t):(p.cancel(),m({type:ht.DisplayInitialSearchResults})))}),[m,e,t]),O=o((function(e){m({type:ht.SelectSpecialty,payload:e}),h()}),[m]);return i.createElement(Ct,{ref:y},"specialty"===t?i.createElement(L.Wrapper,{styles:x},i.createElement(L,{icon:i.createElement(A.Search,null),size:a?"md":"lg",placeholder:v,styles:S,value:e.searchKeywords,onFocus:()=>m({type:ht.FocusInputSearchSpecialty}),onChange:e=>{k(e.target.value)}})):i.createElement(i.Fragment,null,"service"===t?i.createElement(L.Wrapper,{styles:x},i.createElement(L,{icon:i.createElement(A.Search,null),size:a?"md":"lg",name:"search-results",placeholder:v,onFocus:()=>m({type:ht.FocusInputSearch}),value:e.searchKeywords,onChange:e=>{k(e.target.value)}})):i.createElement(i.Fragment,null,a?i.createElement(i.Fragment,null,i.createElement(Ft,{state:e,isMobile:a,dispatch:m,debouncedFetchSearchResults:p,onSpecialtyClick:O}),i.createElement(L.Wrapper,{styles:x},i.createElement(L,{icon:i.createElement(A.Search,null),size:"md",placeholder:v,value:e.searchKeywords,name:"search-results",onFocus:()=>m({type:ht.FocusInputSearch}),onChange:e=>{k(e.target.value)}}))):i.createElement(L.Wrapper,{styles:x},i.createElement(L,Object.assign({icon:i.createElement(A.Search,null),size:"lg",placeholder:v,styles:E,name:"search-results",autoComplete:"off",value:e.searchKeywords,onChange:e=>{k(e.target.value)},onFocus:()=>m({type:ht.FocusInputSearch})},f,{rightSection:i.createElement(Ft,{state:e,isMobile:a,dispatch:m,debouncedFetchSearchResults:p,onSpecialtyClick:O})})))),"search"===e.focused&&i.createElement(bt,null,i.createElement(wt,{type:t,state:e,results:(null===(C=e.searchResults)||void 0===C?void 0:C[t])||[],location:e.selectedLocation.name,dispatch:m,isLoading:s,typeInformation:d}))))},Mt=m.div`
|
|
562
563
|
position: relative;
|
|
563
564
|
|
|
564
565
|
${f.mbDown} {
|
|
@@ -621,7 +622,7 @@ import{a as e}from"./tslib.es6-aee30ad9.js";import*as t from"react";import a,{us
|
|
|
621
622
|
`,Pt=m(Y)`
|
|
622
623
|
width: 12px;
|
|
623
624
|
height: 18px;
|
|
624
|
-
`,At=({state:e,isMobile:t,debouncedFetchCitiesByKeyword:
|
|
625
|
+
`,At=({state:e,isMobile:t,debouncedFetchCitiesByKeyword:a,selectedLocation:s,trackingAttributes:l,onLocationClick:d,dispatch:h})=>{const{t:g,locale:m}=c(),C=r(null),f=n((()=>l?{"data-event-category":l.dataEventCategory,"data-event-action":l.dataEventAction,"data-event-label":l.dataEventLabel}:{}),[l]),v=o((function(t){h({type:ht.ChangeInputLocation,payload:t}),t.trim().length>pt[e.locale]?a(t.trim()):(a.cancel(),h({type:ht.DisplayInitialCities}))}),[a,h]);return w(C,(()=>{h({type:ht.ClickOutsideInputLocation})})),i.createElement(Mt,{ref:C},i.createElement(L.Wrapper,null,i.createElement(L,Object.assign({size:t?"md":"lg",placeholder:"Search location",value:e.searchLocationKeywords,onFocus:()=>h({type:ht.FocusInputLocation}),onChange:e=>{v(e.target.value)}},f))),"location"===e.focused&&i.createElement(Rt,null,i.createElement(Tt,{key:"all-location",role:"button",tabIndex:0,onClick:()=>{var e;d&&d({name:g("booking.searchBar.allLocations"),id:p,slug:null===(e=u[m])||void 0===e?void 0:e.ALL})}},i.createElement(Pt,{color:y.colors.neutral400}),i.createElement(b,{size:"md"},g("booking.searchBar.allLocations"))),e.cities.map((e=>i.createElement(Tt,{key:e.id,onClick:t=>{t.nativeEvent.stopImmediatePropagation(),d&&d(e)},role:"button",tabIndex:0,"aria-label":`Select ${e.name} as location`,isSelected:(null==s?void 0:s.id)===e.id},i.createElement(Pt,{color:y.colors.neutral400}),i.createElement(b,{size:"md"},e.name))))))},Nt=m.div`
|
|
625
626
|
display: flex;
|
|
626
627
|
flex-wrap: wrap;
|
|
627
628
|
row-gap: 8px;
|
|
@@ -704,7 +705,7 @@ import{a as e}from"./tslib.es6-aee30ad9.js";import*as t from"react";import a,{us
|
|
|
704
705
|
text-align: center;
|
|
705
706
|
}
|
|
706
707
|
}
|
|
707
|
-
`,zt=({state:e,isMobile:t,specialties:
|
|
708
|
+
`,zt=({state:e,isMobile:t,specialties:a,isLoading:o,dispatch:s})=>{const{t:r,locale:l}=c(),{selectedLocation:d}=e,p=n((()=>u[l]),[l]);return i.createElement(i.Fragment,null,!t&&i.createElement(Vt,{color:"#E4E8EC"}),i.createElement(Nt,null,a.length>0&&!o&&i.createElement(i.Fragment,null,a.map(((e,t)=>t>=15?i.createElement(i.Fragment,null):i.createElement(Bt,{key:e.id,onClick:()=>(e=>{const t=`/${d.slug}/${p.DOCTOR}/${e}`;s({type:ht.NavigateTo,payload:t})})(e.slug)},i.createElement("div",{className:"image-item"},i.createElement("img",{src:e.thumbnail,alt:e.name})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},e.name)))))),0===a.length&&!o&&i.createElement(b,{size:"sm",color:y.colors.gray400},r("booking.searchBar.noResults")),o&&Array(6).fill(void 0).map(((e,t)=>i.createElement(Bt,{key:"loading"+t},i.createElement("div",{className:"image-item"},i.createElement(S,{height:40,animate:!0})),i.createElement("div",{className:"infor"},i.createElement("div",{className:"title"},i.createElement(S,{height:20,radius:"sm",animate:!0}))))))),a.length>15&&i.createElement(Dt,null,i.createElement("div",{className:"show-more",onClick:()=>{const e=`/${p.SPECIALTIES}`;s({type:ht.NavigateTo,payload:e})}},r("home.seeAll"))))},Kt=m.div`
|
|
708
709
|
display: flex;
|
|
709
710
|
gap: 5px;
|
|
710
711
|
margin-top: 16px;
|
|
@@ -751,8 +752,8 @@ import{a as e}from"./tslib.es6-aee30ad9.js";import*as t from"react";import a,{us
|
|
|
751
752
|
border: 1px solid ${y.colors.white};
|
|
752
753
|
margin-bottom: 5px;
|
|
753
754
|
margin-right: 7px;
|
|
754
|
-
`,Gt=({state:e,type:t,typeInformation:
|
|
755
|
+
`,Gt=({state:e,type:t,typeInformation:a,dispatch:o})=>{const{t:s}=c(),{selectedLocation:r}=e,l=n((()=>a[t].slug),[a,t]);return i.createElement(Kt,null,i.createElement(Ht,null,s("booking.searchBar.popularKey")),e.popularKeys.map((e=>i.createElement(_t,{key:e.id,onClick:()=>{var t;(t=e).url&&o({type:ht.NavigateTo,payload:t.url})}},e.keyword))),i.createElement(_t,{className:"view-all",onClick:()=>{const e=`/${r.slug}/${l}`;e&&o({type:ht.NavigateTo,payload:e})}},s("booking.searchBar.viewAll")))},Zt=m.div`
|
|
755
756
|
background: rgba(255, 255, 255, 0.64);
|
|
756
757
|
backdrop-filter: blur(12px);
|
|
757
758
|
border-bottom: 1px solid ${y.colors.neutral100};
|
|
758
|
-
`,Yt=({currentTab:e,isMobile:t,setCurrentTab:
|
|
759
|
+
`,Yt=({currentTab:e,isMobile:t,setCurrentTab:a})=>{const{t:o}=c(),s=n((()=>({root:{overflowY:t?"hidden":"initial",overflowX:t?"auto":"initial"},tabsList:{background:"rgba(255, 255, 255, 0)",borderBottom:"none",flexWrap:"nowrap",".mantine-Tabs-tab":{"&:last-child":{"&:after":{display:"none"}}}},tab:{padding:t?"12px 16px 12px 16px":"15px 40px 15px 40px",borderTop:"2px solid transparent",borderBottom:"none",margin:0,borderRadius:0,position:"relative",width:"auto",'&[data-active="true"]':{borderColor:"#2d87f3",backgroundColor:"#ffffff","&:after":{display:"none"},"&:before":{content:'""',width:"100%",height:"1px",position:"absolute",backgroundColor:"#ffffff",bottom:"-1px"}},"&:hover":{borderColor:"#2d87f3",backgroundColor:"#ffffff","&:before":{content:'""',width:"100%",height:"1px",position:"absolute",backgroundColor:"#ffffff",bottom:"-1px"}},"&:after":{content:'""',width:"1px",height:"24px",backgroundColor:"#E4E8EC",position:"absolute",right:"-1px"}},tabLabel:{color:"#595959",fontSize:t?"14px":"16px",fontWeight:600,lineHeight:t?"22px":"24px"}})),[t]);return i.createElement(Zt,{className:"booking-search-tab"},i.createElement(P,null,i.createElement(O,{value:e,onTabChange:e=>{a(e)},styles:s},i.createElement(O.List,null,i.createElement(O.Tab,{value:"hospital"},o("booking.searchPopup.hospitals")),i.createElement(O.Tab,{value:"doctor"},o("booking.searchPopup.doctors")),i.createElement(O.Tab,{value:"service"},o("booking.searchPopup.services")),i.createElement(O.Tab,{value:"specialty"},o("booking.searchPopup.specialties"))))))};var Ut;!function(e){e.doctor="doctor",e.service="hospital_service",e.hospital="hospital_branch"}(Ut||(Ut={}));const Wt=({isMobile:e,careApiDomain:t,geoLocationPermission:g,geoLocationCoordinates:m,initialSelectedCity:C,initialSearchValue:b="",initTypeSearch:y="hospital",initSpecialty:f,careFrontDomain:v="/care",isDebug:x=!1,gaTrackingSearchBar:S,gaTrackingLocationSearch:L,autoCompleteDisabled:k=!1,inputSearchPlaceholder:O="",routerPush:F,onGeoLocationPermissionChange:$,onChangeLocation:M})=>{const{locale:R,t:T}=c(),P=r(null),A=r(null),[N,B]=a(y),{geoLocationPermission:D,geoLocationCoordinates:z}=V(),[K,_]=l(mt,ut,(t=>Object.assign(Object.assign({},t),{isDebug:x,isMobile:e,geoLocationPermission:g||D||"unset",geoLocationCoordinates:m||z||null,searchKeywords:b,initialSelectedCity:C||null,selectedLocation:C||t.selectedLocation||null,searchLocationKeywords:(null==C?void 0:C.name)||t.searchLocationKeywords,autoCompleteDisabled:k,inputSearchPlaceholder:O,locale:R}))),{navigateTo:H,focusedSpecialty:G,searchKeywords:Z,geoLocationPermission:Y,selectedLocation:U,selectedSpecialty:W,initialSelectedCity:Q,searchResults:q,isLoadingSearchResults:J}=K,{fetchCitiesByLocation:X,fetchCitiesByKeyword:ee,fetchSearchResults:te,fetchAllSpecialties:ie,fetchPopularKeys:ae}=function({dispatch:e,careApiDomain:t,locale:i="vi-VN"}){const a=o((function(a,o={}){const n=`${t}${a}`;return e({type:ht.FetchCitiesStart}),fetch(st(n,o,i),{method:"GET"}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:(console.log("error loading cities",e),Promise.reject(e)))).finally((()=>e({type:ht.FetchCitiesFinish})))}),[i]);return{fetchCitiesByLocation:o((function({coordinates:t}){let o={};const n={};t&&(o={lat:t.lat,lng:t.lng}),"ms-MY"===i&&(n.noPaging=1);const s=[a(E.GET_CITY_BY_IP,Object.assign(Object.assign({},o),n))];return"zh-TW"===i&&s.push(a(E.GET_CITIES_LIST,{noPaging:1})),Promise.all(s).then((([t,i])=>{const a=Object.assign({},t);if(i){const e=a.cities.map((e=>e.id));a.cities=a.cities.concat(i.cities.filter((t=>!e.includes(t.id))))}e({type:ht.FetchCitiesByGeoIpComplete,payload:a})})).catch((e=>console.error("error loading cities by location",e)))}),[i,t,e]),fetchCitiesByKeyword:o((function(t){return a(E.GET_CITIES_LIST,{keyword:t}).then((t=>{e({type:ht.FetchCitiesByKeywordComplete,payload:t.cities})})).catch((e=>console.error("error loading cities by keyword",e)))}),[i,t,e]),fetchSearchResults:o((function(a,o,n,s){const r="specialty"===n?`${t}${E.GET_SEARCH_SPECIALTY}`:`${t}${E.GET_SEARCH_V2}`;e({type:ht.FetchSearchResultsStart});const{selectedLocation:l,geoLocationCoordinates:c,selectedSpecialty:d}=o;let u="";if(!l)return void e({type:ht.FetchSearchResultsFinish});u=l.id===p?"":l.id;const g=(null==c?void 0:c.lat)||"",m=(null==c?void 0:c.lng)||"",C=(null==d?void 0:d.id)>0?null==d?void 0:d.id:"";return fetch(st(r,{domain:t,searchType:n||"global",keyword:a.trim().length>pt[i]?a.trim():"",city:u===h?"":u,lat:g,lng:m,specialty_id:C},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>{e({type:ht.FetchSearchResultsComplete,payload:{key:n,searches:t.searches||t.specialties||[]}}),s&&e({type:ht.UpdateInitialSearchResults,payload:{key:n,searches:t.searches||t.specialties||[]}})})).catch((e=>{console.log("error loading search results",{url:r,error:e})})).finally((()=>e({type:ht.FetchSearchResultsFinish})))}),[i,t,e]),fetchAllSpecialties:o((function(){const a=`${t}${E.GET_SEARCH_SPECIALTY}`;return fetch(st(a,{domain:t,searchType:""},i),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>{e({type:ht.FetchAllSpecialties,payload:t.specialties||[]})})).catch((e=>{console.log("error loading search results",{url:a,error:e})}))}),[i,t,e]),fetchPopularKeys:o((function(a){const o=`${t}${E.GET_SEARCH_POPULAR_KEY}`;return fetch(st(o,{domain:t,searchType:Ut[a],sort_by:"display_order",sort_order:"asc"},i)).then((e=>e.json())).then((e=>1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e))).then((t=>{e({type:ht.FetchPopularKeys,payload:t.popular_searches||[]})})).catch((e=>{console.log("error loading search results",{url:o,error:e})}))}),[i,t,e])}}({dispatch:_,locale:R,careApiDomain:t}),oe=n((()=>u[R]),[R]),ne=n((()=>({doctor:{name:T("booking.searchPopup.doctors"),icon:i.createElement(kt,null),slug:oe.DOCTOR},service:{name:T("booking.searchPopup.services"),icon:i.createElement(Ot,null),slug:oe.SERVICE},hospital:{name:T("booking.searchPopup.hospitals"),icon:i.createElement(jt,null),slug:oe.HOSPITAL},specialty:{name:T("booking.searchPopup.specialties"),icon:i.createElement(It,null),slug:oe.SPECIALTIES}})),[N]),se=n((()=>d(ee,400)),[ee]),re=n((()=>d(te,400)),[te]),le=o((function(e){_({type:ht.SelectLocation,payload:e}),ce(),M&&M(e)}),[T,_]);function ce(){var e;P.current&&(null===(e=P.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}return w(A,(()=>{_({type:ht.ClickOutsideInputSearchSpecialty})})),s((()=>{var t;"denied"===Y||Q||_({type:ht.SelectLocation,payload:{name:T("booking.searchBar.allLocations"),id:p,slug:null===(t=u[R])||void 0===t?void 0:t.ALL}}),$&&$(Y,K.geoLocationCoordinates),e&&"granted"===Y&&U&&_({type:ht.FocusInputSearch}),X({coordinates:K.geoLocationCoordinates})}),[Y]),s((()=>{const e=f||{name:T("booking.searchBar.allSpecialties"),id:-1,thumbnail:"",total_doctor:0,slug:oe.SPECIALTIES};K.selectedSpecialty||_({type:ht.SelectSpecialty,payload:e})}),[f,K.selectedSpecialty]),s((()=>{ie()}),[]),s((()=>{ae(N)}),[N]),s((()=>{H&&(F?F(H):window.location.href=`${v}${H}`)}),[H]),s((()=>{te(K.searchKeywords,K,N,!0)}),[U,W,N]),i.createElement(lt,{ref:P},i.createElement(Yt,{currentTab:N,setCurrentTab:B,isMobile:e}),i.createElement(ct,{className:"booking-search-container"},i.createElement(dt,null,i.createElement("div",{ref:A},i.createElement(j,{gap:"12px",justify:"space-between",align:"center",direction:e?"column":"row",className:"flex-search-input"},"specialty"!==N&&i.createElement(At,{state:K,isMobile:e,dispatch:_,debouncedFetchCitiesByKeyword:se,selectedLocation:U,onLocationClick:le,trackingAttributes:L}),i.createElement($t,{type:N,isMobile:e,state:K,dispatch:_,debouncedFetchSearchResults:re,initalSearchValue:b,focusSearchInput:ce,typeInformation:ne,trackingAttributes:S,isLoading:J}),i.createElement(I,{size:e?"md":"lg",fullWidth:e,onClick:function(){let e="";const{slug:t}=ne[N];let i="";("doctor"===N||"hospital"===N)&&K.selectedSpecialty.id>0&&(i=`&specialtyId=${K.selectedSpecialty.id}`),e="specialty"===N?`/${t}?q=${Z}${i}`:`/${U.slug}/${t}?q=${Z}${i}`,e&&_({type:ht.NavigateTo,payload:e})},styles:{root:{height:e?"40px":"48px"}}},T("booking.searchBar.searchButton"))),"specialty"!==N&&K.popularKeys.length>0&&i.createElement(Gt,{type:N,state:K,typeInformation:ne,dispatch:_}),"specialty"===N&&"search"===G&&i.createElement(zt,{state:K,isMobile:e,dispatch:_,specialties:(null==q?void 0:q.specialty)||[],isLoading:J})))))};var Qt;!function(e){e[e.SPECIALTY=1]="SPECIALTY",e[e.DOCTOR=2]="DOCTOR",e[e.CLINIC=3]="CLINIC",e[e.SERVICE=4]="SERVICE"}(Qt||(Qt={}));var qt=Object.freeze({__proto__:null,get RedirectType(){return Qt}});export{rt as B,B as C,Wt as a,qt as t};
|
package/build/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-131fea3b.js"),t=require("./index-5feac824.js"),r=require("./fixedBottomAdBlock-75c7ca65.js"),o=require("./index-e0902713.js"),i=require("./index-c7cf5ecd.js"),a=require("./index-0ebeef41.js"),s=require("./utils-ff2a1a55.js"),n=require("./index-7401804e.js"),p=require("./index-65940b27.js"),l=require("./index-d9f43caf.js"),C=require("./index-6f2b65e6.js"),d=require("./index-63bf80ed.js"),u=require("./index-27447ad0.js"),x=require("./index-2cc93ac4.js"),c=require("./dataTransform-a3f95e37.js"),m=require("./index-b21fc79a.js"),g=require("./index-1d498ba4.js"),h=require("./index-23c21c88.js"),L=require("./footer.js"),f=require("./useTranslations-3015cbde.js"),b=require("./useScrollbarSize-5f20b6f3.js"),v=require("./useRafState-a261aadc.js"),P=require("./useHealthToolCache-1f4f6283.js"),w=require("./useIsInit-8a416f00.js"),S=require("./useOutsideClick-6e89ad42.js"),E=require("./useUniqueId-907de863.js"),B=require("./types-7a577054.js"),q=require("./index.styled-8472f5a4.js"),D=require("./types-c095c1e7.js"),T=require("./constants-3547439e.js"),M=require("./localizeNumberFormat-435f83c8.js"),j=require("./screenSizeContext-bfc7b209.js"),k=require("./cookieHelper-38fb44af.js"),I=require("react");require("styled-components");var y=require("./theme-ffb5f892.js"),A=require("./number-1b818576.js"),R=require("./routing-305109c7.js"),O=require("./getDynamicHealthTool-0f17ff3a.js"),F=require("./getSocialList-5277daa8.js"),H=require("./dataTransform-42ca28ea.js"),N=require("./Visible-cc97c728.js");function Z(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}require("./Onboarding-1947cbc4.js"),require("date-fns/locale"),require("./isProduction-631d71b4.js"),require("./gAssets.js"),require("./tslib.es6-e3858147.js"),require("@mantine/core"),require("innertext"),require("@mantine/dates"),require("dayjs"),require("./translationsContext-25c7e3b7.js"),require("string-format"),require("@mantine/hooks"),require("lodash/throttle"),require("date-fns"),require("lodash/debounce"),require("./types-5ec9b9cb.js"),require("./index-c2e7cb23.js"),require("./index-5ebcdb15.js"),require("react-hook-form"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("uuid"),require("./core-900c141a.js"),require("./normalizeLink-f8778b37.js"),require("./index-c88284da.js"),require("./paths-970687a6.js"),require("react-keyed-flatten-children"),require("@mantine/carousel"),require("slugify"),require("@hookform/resolvers/yup"),require("react-day-picker/DayPickerInput"),require("react-dom"),require("./index.styled-82a900b4.js"),require("./utils-105f4213.js"),require("react-contenteditable"),require("dayjs/plugin/relativeTime"),require("./index-a364b8a2.js"),require("react-loading-skeleton"),require("lodash/shuffle");var G=Z(I);exports.Types=e.index,exports.Constants=t.index,exports.Alert=r.Alert,exports.ArticleCard=r.ArticleCard,exports.ArticleCardV2=r.ArticleCard$1,exports.BMICardEmbed=r.BMICardEmbed,exports.BMRCardEmbed=r.BMRCardEmbed,exports.BabyGrowthCardEmbed=r.BabyGrowthCardEmbed,exports.BabyPoopEmbed=r.BabyPoopEmbed,exports.Badge=r.Badge,exports.BorderHeading=r.BorderHeading,exports.Breadcrumbs=r.Breadcrumbs,exports.CategoryCard=r.CategoryCard,exports.Checkbox=r.Checkbox,exports.CheckboxGroup=r.CheckboxGroup,exports.CookieAcceptConfirm=r.CookieAcceptConfirm,exports.DateRangePicker=r.DateRangePicker,exports.DueDateCardEmbed=r.DueDateCardEmbed,exports.FileDropdown=r.FileDropdown,exports.FixedBottomAdBlock=r.FixedBottomAdBlock,exports.FloatButtonGroup=r.FloatButtonGroup,exports.Grid=r.Grid,exports.IconText=r.IconText,exports.OvulationCardEmbed=r.OvulationCardEmbed,exports.PWGCardEmbed=r.PWGCardEmbed,exports.Pagination=r.Pagination,exports.ProgressBar=r.ProgressBar,exports.RateStars=r.RateStars,exports.ScrollList=r.ScrollList,exports.SeoHead=r.SeoHead,exports.ShareContainer=r.ShareContainer,exports.ShareDrawer=r.ShareDrawer,exports.SideMenu=r.index,exports.StatisticCard=r.StatisticCard,exports.SurveyThankyouCard=r.SurveyThankyouCard,exports.THRCardEmbed=r.THRCardEmbed,exports.Table=r.index$1,exports.Tabs=r.Tabs,exports.Tag=r.Tag,exports.Toggle=r.Toggle,exports.Avatar=o.Avatar,exports.LanguageSwitcher=o.LanguageSwitcher,exports.NavigationLogoutPopup=o.NavigationLogoutPopup,exports.NavigationProfileButton=o.NavigationProfileButton,exports.NavigationV2=o.NavigationV2,exports.ProfilePopup=o.ProfilePopup,exports.UserProfileNavigation=o.UserProfileNavigation,exports.UserProfileNavigationHeader=o.NavHeader,exports.UserProfileNavigationStats=o.UserStats,exports.getNavMenuContent=o.getNavMenuContent,exports.getNavMenuContentWithCache=o.getNavMenuContentWithCache,exports.Button=i.Button,exports.AuthorBadge=a.AuthorBadge,exports.BookingBtn=a.BookingBtn,exports.BtnChoice=a.BtnChoice,exports.Divider=a.Divider,exports.CaretDown=s.CaretDown,exports.DefaultComponentGlobalContextData=s.DefaultComponentGlobalContextData,exports.Flag=s.Flag,Object.defineProperty(exports,"GlobalData",{enumerable:!0,get:function(){return s.GlobalData}}),exports.Heading=s.Heading,exports.LogoIcon=s.LogoIcon,exports.PureInput=s.PureInput,exports.StepRenderer=s.StepRenderer,exports.StepRendererContext=s.StepRendererContext,exports.TextArea=s.TextArea,exports.TextDivider=s.TextDivider,exports.TogetherComponentGlobalContext=s.TogetherComponentGlobalContext,exports.TogetherComponentGlobalContextProvider=s.TogetherComponentGlobalContextProvider,exports.TogetherConstants=s.constants,exports.Input=n.Input,exports.Container=p.Container,exports.Icon=p.Icon,exports.Label=p.Label,exports.Logo=l.Logo,exports.AdBlock=C.AdBlock,exports.DatePicker=C.DatePicker,exports.DoctorInfo=C.DoctorInfo,exports.Dropdown=C.Dropdown,exports.MobileBottomNavigation=C.MobileBottomNavigation,exports.MobileBottomNavigationIcon=C.MobileBottomNavigationIcon,exports.Radio=C.Radio,exports.RadioGroup=C.RadioGroup,exports.SurveyQuestionCard=C.SurveyQuestionCard,exports.ToolsBannerCard=C.ToolsBannerCard,exports.Text=d.Text,exports.Drawer=u.Drawer,exports.RadioImageGroup=u.RadioImageGroup,exports.CustomReferenceDot=x.CustomReferenceDot,exports.ImageWrap=x.ImageWrap,exports.Popup=c.Popup,exports.TogetherDataTransforms=c.dataTransform,exports.Modal=m.Modal,exports.PillCarousel=g.PillCarousel,exports.AddressInput=h.AddressInput,exports.Footer=L.Footer,exports.useTranslations=f.useTranslations,exports.MEASURE_ELEMENT_CLASS=b.MEASURE_ELEMENT_CLASS,exports.useScrollbarSize=b.useScrollbarSize,exports.useFbDataLayer=v.useFbDataLayer,exports.usePrevious=v.usePrevious,exports.useRafState=v.useRafState,exports.useHealthToolsCache=P.useHealthToolsCache,exports.useIsInit=w.useIsInit,exports.initSharedOutSideClickListener=S.initSharedOutSideClickListener,exports.useOutsideClick=S.useOutsideClick,exports.useSharedOutsideClick=S.useSharedOutsideClick,exports.useInitialMount=E.useInitialMount,exports.useUniqueId=E.useUniqueId,exports.CardAuthor=B.CardAuthor,exports.CardLink=B.CardLink,exports.CardPost=B.CardPost,exports.CardPostPopoverMore=B.CardPostPopoverMore,exports.CardReactions=B.CardReactions,exports.CardReply=B.CardReply,exports.CardReplyPopover=B.CardReplyPopover,exports.Close=B.Close,exports.CreateNewPostContent=B.CreateNewPostContent,exports.CreatePostDescription=B.CreatePostDescription,exports.CreatePostTitle=B.CreatePostTitle,exports.ImagePreviewPopup=B.ImagePreviewPopup,exports.InputCommentBar=B.InputCommentBar,exports.LabelPin=B.LabelPin,exports.LabelSortPin=B.LabelSortPin,exports.LabelSorting=B.LabelSorting,exports.Loading=B.Loading,exports.PopoverMenu=B.PopoverMenu,exports.PopupDanger=B.PopupDanger,exports.PopupDoctor=B.PopupDoctor,exports.PopupExpert=B.PopupExpert,exports.PopupFrame=B.PopupFrame,exports.PopupHospital=B.PopupHospital,exports.PostContent=B.PostContent,exports.PostImagePreview=B.PostImagePreview,exports.PostSingleImageViewPopup=B.PostSingleImageViewPopup,exports.ProfileDetail=B.ProfileDetail,exports.ProfileDetailModal=B.ProfileDetailModal,exports.ShareBox=B.ShareBox,exports.SharePopup=B.SharePopup,exports.SkipQuestionOfExpertBtn=B.SkipQuestionOfExpertBtn,exports.SocialLinkPreview=B.SocialLinkPreview,exports.SourceList=B.SourceList,exports.SubmitReportForm=B.SubmitReportForm,Object.defineProperty(exports,"TabNameInProfileDetail",{enumerable:!0,get:function(){return B.TabName}}),exports.TagTopic=B.TagTopic,exports.TogetherAuthConfigContext=B.TogetherAuthConfigContext,exports.TogetherAuthConfigContextProvider=B.TogetherAuthConfigContextProvider,exports.TogetherTypes=B.types,exports.TopicSelectList=B.TopicSelectList,exports.VerifiedTag=B.VerifiedTag,exports.useTogetherAuthRequiredAction=B.useTogetherAuthRequiredAction,exports.UserAvatar=q.UserAvatar,exports.BookingSearchBar=D.BookingSearchBar,exports.BookingSearchBarV2=D.BookingSearchBarV2,exports.CareTypes=D.types,exports.ChevronDown=D.ChevronDown,exports.CareConstants=T.constants,exports.ageGenerate=M.ageGenerate,exports.convertLocalizedStringToNumber=M.convertLocalizedStringToNumber,exports.localizeNumberFormat=M.localizeNumberFormat,exports.Breakpoints=j.Breakpoints,exports.MediaQueries=j.MediaQueries,exports.ScreenSizeContext=j.ScreenSizeContext,exports.ScreenSizeContextProvider=j.ScreenSizeContextProvider,exports.fadeIn=j.fadeIn,exports.formatUrlWithPageParam=j.formatUrlWithPageParam,exports.getBoundariesFromMediaQueryKey=j.getBoundariesFromMediaQueryKey,exports.getPopupWrapperDom=j.getPopupWrapperDom,exports.getWindowSizeGroups=j.getWindowSizeGroups,exports.getWrapperDomWithSelector=j.getWrapperDomWithSelector,exports.makeParams=j.makeParams,exports.safeEncodeURI=j.safeEncodeURI,exports.slideInDown=j.slideInDown,exports.slideInLeft=j.slideInLeft,exports.slideInRight=j.slideInRight,exports.slideInUp=j.slideInUp,exports.slideOutDown=j.slideOutDown,exports.slideOutLeft=j.slideOutLeft,exports.slideOutRight=j.slideOutRight,exports.slideOutUp=j.slideOutUp,exports.startCase=j.startCase,exports.toggleNoScroll=j.toggleNoScroll,exports.deleteCookie=k.deleteCookie,exports.getCookie=k.getCookie,exports.setCookie=k.setCookie,exports.MBTheme=y.MBTheme,exports.theme=y.theme,exports.abbreviateNumber=A.abbreviateNumber,exports.getCareApiDomain=R.getCareApiDomain,exports.getCurrentBaseUrl=R.getCurrentBaseUrl,exports.getCurrentSsoUrl=R.getCurrentSsoUrl,exports.getDiscoverApiDomain=R.getDiscoverApiDomain,exports.getTogetherApiDomain=R.getTogetherApiDomain,exports.formatHealthTool=O.formatHealthTool,exports.getDynamicHealthTool=O.getDynamicHealthTool,exports.getDynamicHealthToolWithCache=O.getDynamicHealthToolWithCache,exports.getSocialList=F.getSocialList,exports.formatPill=H.formatPill,exports.Visible=N.Visible,exports.CheckCircle=e=>G.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.66797 9.99984C1.66797 5.39984 5.4013 1.6665 10.0013 1.6665C14.6013 1.6665 18.3346 5.39984 18.3346 9.99984C18.3346 14.5998 14.6013 18.3332 10.0013 18.3332C5.4013 18.3332 1.66797 14.5998 1.66797 9.99984ZM4.75147 10.5828L7.74314 13.5745C8.06814 13.8995 8.60147 13.8995 8.91814 13.5745L15.2431 7.24948C15.5681 6.92448 15.5681 6.39948 15.2431 6.07448C14.9181 5.74948 14.3931 5.74948 14.0681 6.07448L8.3348 11.8078L5.92647 9.40781C5.60147 9.08281 5.07647 9.08281 4.75147 9.40781C4.59543 9.56351 4.50773 9.77488 4.50773 9.99531C4.50773 10.2157 4.59543 10.4271 4.75147 10.5828Z"}),G.createElement("path",{d:"M7.74322 13.5772L4.75155 10.5856C4.59551 10.4299 4.50781 10.2185 4.50781 9.99808C4.50781 9.77765 4.59551 9.56627 4.75155 9.41058C5.07655 9.08558 5.60155 9.08558 5.92655 9.41058L8.33488 11.8106L14.0682 6.07725C14.3932 5.75225 14.9182 5.75225 15.2432 6.07725C15.5682 6.40225 15.5682 6.92725 15.2432 7.25225L8.91822 13.5772C8.60155 13.9022 8.06822 13.9022 7.74322 13.5772Z",fill:"white"})),exports.ChevronLeft=e=>G.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),G.createElement("path",{d:"M10.929 12.0002L14.75 8.17915C15.164 7.76515 15.164 7.09315 14.75 6.67915C14.336 6.26515 13.664 6.26515 13.25 6.67915L8.63605 11.2932C8.24505 11.6842 8.24505 12.3172 8.63605 12.7072L13.25 17.3212C13.664 17.7352 14.336 17.7352 14.75 17.3212C15.164 16.9072 15.164 16.2352 14.75 15.8212L10.929 12.0002Z"})),exports.ChevronRight=e=>G.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),G.createElement("path",{d:"M14.071 12.0002L10.25 8.17915C9.83598 7.76515 9.83598 7.09315 10.25 6.67915C10.664 6.26515 11.336 6.26515 11.75 6.67915L16.364 11.2932C16.755 11.6842 16.755 12.3172 16.364 12.7072L11.75 17.3212C11.336 17.7352 10.664 17.7352 10.25 17.3212C9.83598 16.9072 9.83598 16.2352 10.25 15.8212L14.071 12.0002Z"})),exports.ChevronUp=e=>G.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),G.createElement("path",{d:"M7.80267 6.61943L10.35 9.16676C10.626 9.44276 11.074 9.44276 11.35 9.16676C11.626 8.89076 11.626 8.44276 11.35 8.16676L8.27401 5.09076C8.01334 4.8301 7.59134 4.8301 7.33134 5.09076L4.25534 8.16676C3.97934 8.44276 3.97934 8.89076 4.25534 9.16676C4.53134 9.44276 4.97934 9.44276 5.25534 9.16676L7.80267 6.61943Z"})),exports.Circle=e=>G.createElement("svg",Object.assign({className:"spinner",viewBox:"0 0 50 50",fill:"currentColor",width:"1em",height:"1em"},e),G.createElement("circle",{className:"path",cx:25,cy:25,r:20,stroke:"currentColor",strokeWidth:5})),exports.EmailCheck=e=>G.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),G.createElement("path",{d:"M63.9688 40.6414L71.5135 36.8271H71.5214L69.2091 66.2105C69.1295 67.2226 68.8514 68.209 68.3905 69.1135C67.9296 70.018 67.2951 70.8229 66.5231 71.4821C65.7511 72.1414 64.8568 72.6421 63.8913 72.9556C62.9258 73.2692 61.908 73.3894 60.896 73.3095L13.7009 69.5939C12.2428 69.4829 10.8477 68.9538 9.68262 68.0701L37.6513 53.9349L63.9688 40.6414Z",fill:"#91CAFF"}),G.createElement("path",{d:"M66.5154 30.7156L71.6092 36.5132L64.0645 40.3275L66.5154 30.7156Z",fill:"#2B62CD"}),G.createElement("path",{d:"M66.03 20.0896L66.0298 20.0896L54.445 17.1371L33.1143 11.7035H33.1064L33.0912 11.6997L27.0869 10.1654L66.03 20.0896ZM66.03 20.0896C66.408 20.1854 66.7633 20.3548 67.0757 20.5882C67.3881 20.8215 67.6514 21.1141 67.8506 21.4493C68.0498 21.7845 68.1809 22.1557 68.2364 22.5417C68.2919 22.9276 68.2708 23.3207 68.1742 23.6985L68.1742 23.6986M66.03 20.0896L68.1742 23.6986M68.1742 23.6986L66.3914 30.6842L66.5125 30.7151M68.1742 23.6986L66.5125 30.7151M66.5125 30.7151L66.3914 30.6842L63.9545 40.241L37.7595 53.4735L16.9721 37.5413M66.5125 30.7151L16.9721 37.5413M16.9721 37.5413L17.075 37.4096L17.0911 37.3889L17.0976 37.3634L21.0735 21.7341L21.0805 21.7254L21.0871 21.6992L23.477 12.3089C23.6715 11.546 24.1611 10.8916 24.838 10.4896C25.515 10.0876 26.3239 9.97102 27.0868 10.1654L16.9721 37.5413Z",fill:"white",stroke:"#E4E8EC",strokeWidth:.25}),G.createElement("path",{d:"M47.6766 9.2919L54.4861 17.0363L33.1367 11.598L36.9335 8.43973C38.4844 7.1591 40.4726 6.53198 42.4776 6.69102C44.4826 6.85005 46.3471 7.78278 47.6766 9.2919Z",fill:"#2B62CD"}),G.createElement("path",{d:"M37.7462 53.6208L9.77752 67.756C8.72905 66.9794 7.89559 65.9486 7.3557 64.7608C6.81581 63.5729 6.58726 62.2672 6.6916 60.9666L9.00473 31.5911L16.7963 37.564L37.7462 53.6208Z",fill:"#65B5FF"}),G.createElement("path",{d:"M20.9577 21.6777L16.9751 37.3332L16.7946 37.5644L9.00391 31.5914L20.9577 21.6777Z",fill:"#2B62CD"}),G.createElement("path",{d:"M40.797 39.6731C46.1394 41.0733 51.6054 37.8775 53.0056 32.5351C54.4058 27.1927 51.21 21.7268 45.8676 20.3266C40.5252 18.9263 35.0592 22.1221 33.659 27.4645C32.2588 32.8069 35.4546 38.2729 40.797 39.6731Z",fill:"#00CB8A"}),G.createElement("path",{d:"M42.0398 32.9697C41.6263 32.862 41.238 32.6738 40.8973 32.4158C40.5566 32.1578 40.2701 31.8352 40.0542 31.4663L39.2137 30.0279C39.1039 29.8324 39.0753 29.6016 39.134 29.3852C39.1927 29.1689 39.3341 28.9842 39.5277 28.871C39.7212 28.7579 39.9515 28.7252 40.1689 28.7802C40.3862 28.8352 40.5733 28.9733 40.6898 29.1649L41.5304 30.6033C41.6319 30.7769 41.7666 30.9289 41.9269 31.0504C42.0871 31.172 42.2698 31.2608 42.4643 31.3118C42.6589 31.3628 42.8616 31.375 43.0609 31.3477C43.2602 31.3203 43.4522 31.254 43.6258 31.1525L52.5607 26.5173C52.7613 26.4192 52.9924 26.4034 53.2045 26.4734C53.4166 26.5435 53.5929 26.6937 53.6956 26.892C53.7984 27.0903 53.8195 27.3209 53.7544 27.5346C53.6893 27.7483 53.5432 27.928 53.3473 28.0353L44.4483 32.6486C44.0877 32.8581 43.6894 32.9943 43.2761 33.0494C42.8628 33.1045 42.4427 33.0774 42.0398 32.9697Z",fill:"white"})),exports.EmailFail=e=>G.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),G.createElement("path",{d:"M63.9688 40.6414L71.5135 36.8271H71.5214L69.2091 66.2105C69.1295 67.2226 68.8514 68.209 68.3905 69.1135C67.9296 70.018 67.2951 70.8229 66.5231 71.4821C65.7511 72.1414 64.8568 72.6421 63.8913 72.9556C62.9258 73.2692 61.908 73.3894 60.896 73.3095L13.7009 69.5939C12.2428 69.4829 10.8477 68.9538 9.68262 68.0701L37.6513 53.9349L63.9688 40.6414Z",fill:"#91CAFF"}),G.createElement("path",{d:"M66.5154 30.7156L71.6092 36.5132L64.0645 40.3275L66.5154 30.7156Z",fill:"#2B62CD"}),G.createElement("path",{d:"M65.9578 20.3722L65.9583 20.3723C66.2991 20.4587 66.6195 20.6115 66.9012 20.8218C67.1829 21.0322 67.4203 21.2961 67.5999 21.5983C67.7794 21.9005 67.8976 22.2352 67.9477 22.5832C67.9978 22.9312 67.9787 23.2856 67.8916 23.6262L67.8916 23.6264L66.1088 30.612L66.1088 30.6121L63.7046 40.0405L37.7915 53.1306L17.3693 37.4783L17.3803 37.4353L21.3406 21.8671L21.3476 21.8584L21.3698 21.7712L23.7596 12.381C23.7596 12.3809 23.7597 12.3809 23.7597 12.3808C23.9351 11.6929 24.3765 11.1028 24.9869 10.7404C25.5974 10.3779 26.3269 10.2727 27.0149 10.4481L33.019 11.9822L33.0697 11.9952H33.0777L54.3729 17.4197L54.373 17.4197L65.9578 20.3722Z",fill:"white",stroke:"#E4E8EC",strokeWidth:.833333}),G.createElement("path",{d:"M47.6766 9.2919L54.4861 17.0363L33.1367 11.598L36.9335 8.43973C38.4844 7.1591 40.4726 6.53198 42.4776 6.69102C44.4826 6.85005 46.3471 7.78278 47.6766 9.2919Z",fill:"#2B62CD"}),G.createElement("path",{d:"M37.7462 53.6208L9.77752 67.756C8.72905 66.9794 7.89559 65.9486 7.3557 64.7608C6.81581 63.5729 6.58726 62.2672 6.6916 60.9666L9.00473 31.5911L16.7963 37.564L37.7462 53.6208Z",fill:"#65B5FF"}),G.createElement("path",{d:"M20.9577 21.6777L16.9751 37.3332L16.7946 37.5644L9.00391 31.5914L20.9577 21.6777Z",fill:"#2B62CD"}),G.createElement("path",{d:"M36.2349 37.7184C40.4975 41.2301 46.7998 40.6212 50.3115 36.3586C53.8231 32.0959 53.2143 25.7936 48.9516 22.282C44.689 18.7703 38.3867 19.3792 34.875 23.6418C31.3634 27.9045 31.9722 34.2068 36.2349 37.7184Z",fill:"#FF5331"}),G.createElement("g",{clipPath:"url(#clip0_1176_26159)"},G.createElement("path",{d:"M48.4022 27.8621C48.317 27.6306 48.1433 27.4425 47.9195 27.3391C47.6956 27.2357 47.4398 27.2254 47.2084 27.3105L43.1437 28.8064L41.6479 24.7418C41.5597 24.5144 41.3858 24.3308 41.1635 24.2304C40.9413 24.1301 40.6885 24.1211 40.4596 24.2053C40.2308 24.2895 40.0442 24.4602 39.94 24.6807C39.8358 24.9012 39.8224 25.1538 39.9026 25.3841L41.3984 29.4487L37.3338 30.9445C37.2172 30.9851 37.1098 31.0486 37.018 31.1312C36.9262 31.2137 36.8517 31.3137 36.7989 31.4254C36.7462 31.537 36.7162 31.6581 36.7107 31.7815C36.7052 31.9048 36.7243 32.0281 36.767 32.144C36.8096 32.2598 36.8749 32.3661 36.9591 32.4565C37.0432 32.5469 37.1445 32.6196 37.2571 32.6704C37.3697 32.7212 37.4912 32.7491 37.6146 32.7524C37.7381 32.7558 37.861 32.7345 37.9761 32.6898L42.0407 31.194L43.5366 35.2586C43.6247 35.486 43.7987 35.6696 44.021 35.7699C44.2432 35.8703 44.496 35.8793 44.7248 35.7951C44.9537 35.7109 45.1403 35.5401 45.2445 35.3197C45.3487 35.0992 45.3621 34.8466 45.2819 34.6163L43.7861 30.5517L47.8507 29.0559C48.0821 28.9707 48.2702 28.797 48.3736 28.5732C48.477 28.3493 48.4873 28.0935 48.4022 27.8621Z",fill:"white"})),G.createElement("defs",null,G.createElement("clipPath",{id:"clip0_1176_26159"},G.createElement("rect",{width:11.1603,height:11.1603,fill:"white",transform:"translate(39.8672 22.5942) rotate(24.7957)"})))),exports.Facebook=e=>G.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),G.createElement("path",{d:"M14 0H3C1.61929 0 0.5 1.11929 0.5 2.5V13.5C0.5 14.8807 1.61929 16 3 16H14C15.3807 16 16.5 14.8807 16.5 13.5V2.5C16.5 1.11929 15.3807 0 14 0Z",fill:"#1778F2"}),G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.657 16V9.7495H12.2845L12.5 7.595H10.657L10.66 6.517C10.66 5.9555 10.71 5.6545 11.4715 5.6545H12.4885V3.5H10.861C8.906 3.5 8.2185 4.545 8.2185 6.302V7.5955H7V9.7495H8.2185V16H10.657Z",fill:"white"})),exports.Google=e=>G.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),G.createElement("path",{d:"M14.6819 8.15547C14.6819 7.57992 14.6353 7.15992 14.5345 6.72437H7.98047V9.32212H11.8275C11.75 9.96769 11.3312 10.9399 10.4004 11.5932L10.3874 11.6802L12.4596 13.29L12.6032 13.3044C13.9217 12.0832 14.6819 10.2866 14.6819 8.15547Z",fill:"#4285F4"}),G.createElement("path",{d:"M7.98042 15.0001C9.86516 15.0001 11.4474 14.3778 12.6031 13.3045L10.4003 11.5934C9.81089 12.0056 9.01973 12.2934 7.98042 12.2934C6.13445 12.2934 4.5677 11.0723 4.0092 9.38452L3.92733 9.39149L1.77256 11.0637L1.74438 11.1423C2.8923 13.4289 5.2502 15.0001 7.98042 15.0001Z",fill:"#34A853"}),G.createElement("path",{d:"M4.00915 9.38424C3.86178 8.94869 3.7765 8.48199 3.7765 7.99979C3.7765 7.51754 3.86178 7.05089 4.00139 6.61534L3.99749 6.52258L1.81572 4.82349L1.74434 4.85753C1.27123 5.80644 0.999756 6.87201 0.999756 7.99979C0.999756 9.12757 1.27123 10.1931 1.74434 11.142L4.00915 9.38424Z",fill:"#FBBC05"}),G.createElement("path",{d:"M7.98042 3.70665C9.2912 3.70665 10.1754 4.27443 10.6796 4.7489L12.6497 2.82C11.4397 1.69223 9.86516 1 7.98042 1C5.2502 1 2.8923 2.5711 1.74438 4.85775L4.00144 6.61556C4.5677 4.92778 6.13445 3.70665 7.98042 3.70665Z",fill:"#EB4335"})),exports.InVisible=e=>G.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.71 4.54002C2.32 4.15002 2.32 3.52002 2.71 3.13002C3.1 2.74002 3.74 2.74002 4.13 3.13002L20.44 19.46C20.83 19.85 20.83 20.48 20.44 20.87C20.05 21.26 19.42 21.26 19.03 20.87L16.31 18.15C14.97 18.67 13.52 18.97 12 18.97C7 18.97 2.73 15.86 1 11.47C1.77 9.50002 3.06 7.80002 4.68 6.51002L2.71 4.54002ZM17 11.47C17 8.71002 14.76 6.47002 12 6.47002C11.49 6.47002 11 6.57002 10.53 6.71002L8.36 4.54002C9.51 4.17002 10.73 3.97002 12 3.97002C17 3.97002 21.27 7.08002 23 11.46C22.31 13.22 21.21 14.76 19.82 15.99L16.76 12.93C16.9 12.47 17 11.98 17 11.47ZM12 16.47C9.24 16.47 7 14.23 7 11.47C7 10.7 7.18 9.97002 7.49 9.33002L9.06 10.9C9.03 11.08 9 11.27 9 11.47C9 13.13 10.34 14.47 12 14.47C12.2 14.47 12.38 14.44 12.57 14.4L14.14 15.97C13.49 16.29 12.77 16.47 12 16.47ZM14.97 11.14C14.82 9.74002 13.72 8.65002 12.33 8.50002L14.97 11.14Z"})),exports.Spinning=e=>G.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),G.createElement("circle",{cx:12.5,cy:12,r:10,stroke:"#DBDFE5",strokeWidth:4}),G.createElement("mask",{id:"path-2-inside-1_917_29592",fill:"white"},G.createElement("path",{d:"M12.5 0C14.964 2.93833e-08 17.3683 0.758527 19.3863 2.17253C21.4042 3.58653 22.938 5.58746 23.7791 7.90347C24.6203 10.2195 24.7281 12.7383 24.0879 15.1177C23.4477 17.4971 22.0906 19.6218 20.2009 21.2031C18.3111 22.7843 15.9804 23.7456 13.5254 23.9561C11.0704 24.1667 8.61007 23.6164 6.47869 22.38C4.3473 21.1436 2.64819 19.281 1.6122 17.0454C0.576199 14.8097 0.253539 12.3093 0.688053 9.8839L4.59856 10.5845C4.3079 12.2069 4.52374 13.8795 5.21676 15.375C5.90977 16.8705 7.04637 18.1165 8.47213 18.9435C9.89789 19.7706 11.5437 20.1387 13.1859 19.9979C14.8282 19.857 16.3873 19.214 17.6514 18.1563C18.9155 17.0985 19.8233 15.6772 20.2516 14.0856C20.6798 12.4939 20.6077 10.8089 20.045 9.25969C19.4823 7.71042 18.4563 6.37193 17.1065 5.42605C15.7566 4.48017 14.1483 3.97277 12.5 3.97277L12.5 0Z"})),G.createElement("path",{d:"M12.5 0C14.964 2.93833e-08 17.3683 0.758527 19.3863 2.17253C21.4042 3.58653 22.938 5.58746 23.7791 7.90347C24.6203 10.2195 24.7281 12.7383 24.0879 15.1177C23.4477 17.4971 22.0906 19.6218 20.2009 21.2031C18.3111 22.7843 15.9804 23.7456 13.5254 23.9561C11.0704 24.1667 8.61007 23.6164 6.47869 22.38C4.3473 21.1436 2.64819 19.281 1.6122 17.0454C0.576199 14.8097 0.253539 12.3093 0.688053 9.8839L4.59856 10.5845C4.3079 12.2069 4.52374 13.8795 5.21676 15.375C5.90977 16.8705 7.04637 18.1165 8.47213 18.9435C9.89789 19.7706 11.5437 20.1387 13.1859 19.9979C14.8282 19.857 16.3873 19.214 17.6514 18.1563C18.9155 17.0985 19.8233 15.6772 20.2516 14.0856C20.6798 12.4939 20.6077 10.8089 20.045 9.25969C19.4823 7.71042 18.4563 6.37193 17.1065 5.42605C15.7566 4.48017 14.1483 3.97277 12.5 3.97277L12.5 0Z",stroke:"#2D87F3",strokeWidth:8,mask:"url(#path-2-inside-1_917_29592)"},G.createElement("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 12.5 12",to:"360 12.5 12",dur:"2s",repeatCount:"indefinite"})));
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./index-131fea3b.js"),t=require("./index-5feac824.js"),r=require("./fixedBottomAdBlock-75c7ca65.js"),o=require("./index-e0902713.js"),i=require("./index-c7cf5ecd.js"),a=require("./index-0ebeef41.js"),s=require("./utils-ff2a1a55.js"),n=require("./index-7401804e.js"),p=require("./index-65940b27.js"),l=require("./index-d9f43caf.js"),C=require("./index-6f2b65e6.js"),d=require("./index-63bf80ed.js"),u=require("./index-27447ad0.js"),x=require("./index-2cc93ac4.js"),c=require("./dataTransform-a3f95e37.js"),m=require("./index-b21fc79a.js"),g=require("./index-1d498ba4.js"),h=require("./index-23c21c88.js"),L=require("./footer.js"),f=require("./useTranslations-3015cbde.js"),b=require("./useScrollbarSize-5f20b6f3.js"),v=require("./useRafState-a261aadc.js"),P=require("./useHealthToolCache-1f4f6283.js"),w=require("./useIsInit-8a416f00.js"),S=require("./useOutsideClick-6e89ad42.js"),E=require("./useUniqueId-907de863.js"),B=require("./types-7a577054.js"),q=require("./index.styled-8472f5a4.js"),D=require("./types-1b8d8517.js"),T=require("./constants-3547439e.js"),M=require("./localizeNumberFormat-435f83c8.js"),j=require("./screenSizeContext-bfc7b209.js"),k=require("./cookieHelper-38fb44af.js"),I=require("react");require("styled-components");var y=require("./theme-ffb5f892.js"),A=require("./number-1b818576.js"),R=require("./routing-305109c7.js"),O=require("./getDynamicHealthTool-0f17ff3a.js"),F=require("./getSocialList-5277daa8.js"),H=require("./dataTransform-42ca28ea.js"),N=require("./Visible-cc97c728.js");function Z(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}require("./Onboarding-1947cbc4.js"),require("date-fns/locale"),require("./isProduction-631d71b4.js"),require("./gAssets.js"),require("./tslib.es6-e3858147.js"),require("@mantine/core"),require("innertext"),require("@mantine/dates"),require("dayjs"),require("./translationsContext-25c7e3b7.js"),require("string-format"),require("@mantine/hooks"),require("lodash/throttle"),require("date-fns"),require("lodash/debounce"),require("./types-5ec9b9cb.js"),require("./index-c2e7cb23.js"),require("./index-5ebcdb15.js"),require("react-hook-form"),require("date-fns/locale/en-US"),require("date-fns/locale/id"),require("date-fns/locale/vi"),require("date-fns/locale/zh-TW"),require("uuid"),require("./core-900c141a.js"),require("./normalizeLink-f8778b37.js"),require("./index-c88284da.js"),require("./paths-970687a6.js"),require("react-keyed-flatten-children"),require("@mantine/carousel"),require("slugify"),require("@hookform/resolvers/yup"),require("react-day-picker/DayPickerInput"),require("react-dom"),require("./index.styled-82a900b4.js"),require("./utils-105f4213.js"),require("react-contenteditable"),require("dayjs/plugin/relativeTime"),require("./index-a364b8a2.js"),require("react-loading-skeleton"),require("lodash/shuffle");var G=Z(I);exports.Types=e.index,exports.Constants=t.index,exports.Alert=r.Alert,exports.ArticleCard=r.ArticleCard,exports.ArticleCardV2=r.ArticleCard$1,exports.BMICardEmbed=r.BMICardEmbed,exports.BMRCardEmbed=r.BMRCardEmbed,exports.BabyGrowthCardEmbed=r.BabyGrowthCardEmbed,exports.BabyPoopEmbed=r.BabyPoopEmbed,exports.Badge=r.Badge,exports.BorderHeading=r.BorderHeading,exports.Breadcrumbs=r.Breadcrumbs,exports.CategoryCard=r.CategoryCard,exports.Checkbox=r.Checkbox,exports.CheckboxGroup=r.CheckboxGroup,exports.CookieAcceptConfirm=r.CookieAcceptConfirm,exports.DateRangePicker=r.DateRangePicker,exports.DueDateCardEmbed=r.DueDateCardEmbed,exports.FileDropdown=r.FileDropdown,exports.FixedBottomAdBlock=r.FixedBottomAdBlock,exports.FloatButtonGroup=r.FloatButtonGroup,exports.Grid=r.Grid,exports.IconText=r.IconText,exports.OvulationCardEmbed=r.OvulationCardEmbed,exports.PWGCardEmbed=r.PWGCardEmbed,exports.Pagination=r.Pagination,exports.ProgressBar=r.ProgressBar,exports.RateStars=r.RateStars,exports.ScrollList=r.ScrollList,exports.SeoHead=r.SeoHead,exports.ShareContainer=r.ShareContainer,exports.ShareDrawer=r.ShareDrawer,exports.SideMenu=r.index,exports.StatisticCard=r.StatisticCard,exports.SurveyThankyouCard=r.SurveyThankyouCard,exports.THRCardEmbed=r.THRCardEmbed,exports.Table=r.index$1,exports.Tabs=r.Tabs,exports.Tag=r.Tag,exports.Toggle=r.Toggle,exports.Avatar=o.Avatar,exports.LanguageSwitcher=o.LanguageSwitcher,exports.NavigationLogoutPopup=o.NavigationLogoutPopup,exports.NavigationProfileButton=o.NavigationProfileButton,exports.NavigationV2=o.NavigationV2,exports.ProfilePopup=o.ProfilePopup,exports.UserProfileNavigation=o.UserProfileNavigation,exports.UserProfileNavigationHeader=o.NavHeader,exports.UserProfileNavigationStats=o.UserStats,exports.getNavMenuContent=o.getNavMenuContent,exports.getNavMenuContentWithCache=o.getNavMenuContentWithCache,exports.Button=i.Button,exports.AuthorBadge=a.AuthorBadge,exports.BookingBtn=a.BookingBtn,exports.BtnChoice=a.BtnChoice,exports.Divider=a.Divider,exports.CaretDown=s.CaretDown,exports.DefaultComponentGlobalContextData=s.DefaultComponentGlobalContextData,exports.Flag=s.Flag,Object.defineProperty(exports,"GlobalData",{enumerable:!0,get:function(){return s.GlobalData}}),exports.Heading=s.Heading,exports.LogoIcon=s.LogoIcon,exports.PureInput=s.PureInput,exports.StepRenderer=s.StepRenderer,exports.StepRendererContext=s.StepRendererContext,exports.TextArea=s.TextArea,exports.TextDivider=s.TextDivider,exports.TogetherComponentGlobalContext=s.TogetherComponentGlobalContext,exports.TogetherComponentGlobalContextProvider=s.TogetherComponentGlobalContextProvider,exports.TogetherConstants=s.constants,exports.Input=n.Input,exports.Container=p.Container,exports.Icon=p.Icon,exports.Label=p.Label,exports.Logo=l.Logo,exports.AdBlock=C.AdBlock,exports.DatePicker=C.DatePicker,exports.DoctorInfo=C.DoctorInfo,exports.Dropdown=C.Dropdown,exports.MobileBottomNavigation=C.MobileBottomNavigation,exports.MobileBottomNavigationIcon=C.MobileBottomNavigationIcon,exports.Radio=C.Radio,exports.RadioGroup=C.RadioGroup,exports.SurveyQuestionCard=C.SurveyQuestionCard,exports.ToolsBannerCard=C.ToolsBannerCard,exports.Text=d.Text,exports.Drawer=u.Drawer,exports.RadioImageGroup=u.RadioImageGroup,exports.CustomReferenceDot=x.CustomReferenceDot,exports.ImageWrap=x.ImageWrap,exports.Popup=c.Popup,exports.TogetherDataTransforms=c.dataTransform,exports.Modal=m.Modal,exports.PillCarousel=g.PillCarousel,exports.AddressInput=h.AddressInput,exports.Footer=L.Footer,exports.useTranslations=f.useTranslations,exports.MEASURE_ELEMENT_CLASS=b.MEASURE_ELEMENT_CLASS,exports.useScrollbarSize=b.useScrollbarSize,exports.useFbDataLayer=v.useFbDataLayer,exports.usePrevious=v.usePrevious,exports.useRafState=v.useRafState,exports.useHealthToolsCache=P.useHealthToolsCache,exports.useIsInit=w.useIsInit,exports.initSharedOutSideClickListener=S.initSharedOutSideClickListener,exports.useOutsideClick=S.useOutsideClick,exports.useSharedOutsideClick=S.useSharedOutsideClick,exports.useInitialMount=E.useInitialMount,exports.useUniqueId=E.useUniqueId,exports.CardAuthor=B.CardAuthor,exports.CardLink=B.CardLink,exports.CardPost=B.CardPost,exports.CardPostPopoverMore=B.CardPostPopoverMore,exports.CardReactions=B.CardReactions,exports.CardReply=B.CardReply,exports.CardReplyPopover=B.CardReplyPopover,exports.Close=B.Close,exports.CreateNewPostContent=B.CreateNewPostContent,exports.CreatePostDescription=B.CreatePostDescription,exports.CreatePostTitle=B.CreatePostTitle,exports.ImagePreviewPopup=B.ImagePreviewPopup,exports.InputCommentBar=B.InputCommentBar,exports.LabelPin=B.LabelPin,exports.LabelSortPin=B.LabelSortPin,exports.LabelSorting=B.LabelSorting,exports.Loading=B.Loading,exports.PopoverMenu=B.PopoverMenu,exports.PopupDanger=B.PopupDanger,exports.PopupDoctor=B.PopupDoctor,exports.PopupExpert=B.PopupExpert,exports.PopupFrame=B.PopupFrame,exports.PopupHospital=B.PopupHospital,exports.PostContent=B.PostContent,exports.PostImagePreview=B.PostImagePreview,exports.PostSingleImageViewPopup=B.PostSingleImageViewPopup,exports.ProfileDetail=B.ProfileDetail,exports.ProfileDetailModal=B.ProfileDetailModal,exports.ShareBox=B.ShareBox,exports.SharePopup=B.SharePopup,exports.SkipQuestionOfExpertBtn=B.SkipQuestionOfExpertBtn,exports.SocialLinkPreview=B.SocialLinkPreview,exports.SourceList=B.SourceList,exports.SubmitReportForm=B.SubmitReportForm,Object.defineProperty(exports,"TabNameInProfileDetail",{enumerable:!0,get:function(){return B.TabName}}),exports.TagTopic=B.TagTopic,exports.TogetherAuthConfigContext=B.TogetherAuthConfigContext,exports.TogetherAuthConfigContextProvider=B.TogetherAuthConfigContextProvider,exports.TogetherTypes=B.types,exports.TopicSelectList=B.TopicSelectList,exports.VerifiedTag=B.VerifiedTag,exports.useTogetherAuthRequiredAction=B.useTogetherAuthRequiredAction,exports.UserAvatar=q.UserAvatar,exports.BookingSearchBar=D.BookingSearchBar,exports.BookingSearchBarV2=D.BookingSearchBarV2,exports.CareTypes=D.types,exports.ChevronDown=D.ChevronDown,exports.CareConstants=T.constants,exports.ageGenerate=M.ageGenerate,exports.convertLocalizedStringToNumber=M.convertLocalizedStringToNumber,exports.localizeNumberFormat=M.localizeNumberFormat,exports.Breakpoints=j.Breakpoints,exports.MediaQueries=j.MediaQueries,exports.ScreenSizeContext=j.ScreenSizeContext,exports.ScreenSizeContextProvider=j.ScreenSizeContextProvider,exports.fadeIn=j.fadeIn,exports.formatUrlWithPageParam=j.formatUrlWithPageParam,exports.getBoundariesFromMediaQueryKey=j.getBoundariesFromMediaQueryKey,exports.getPopupWrapperDom=j.getPopupWrapperDom,exports.getWindowSizeGroups=j.getWindowSizeGroups,exports.getWrapperDomWithSelector=j.getWrapperDomWithSelector,exports.makeParams=j.makeParams,exports.safeEncodeURI=j.safeEncodeURI,exports.slideInDown=j.slideInDown,exports.slideInLeft=j.slideInLeft,exports.slideInRight=j.slideInRight,exports.slideInUp=j.slideInUp,exports.slideOutDown=j.slideOutDown,exports.slideOutLeft=j.slideOutLeft,exports.slideOutRight=j.slideOutRight,exports.slideOutUp=j.slideOutUp,exports.startCase=j.startCase,exports.toggleNoScroll=j.toggleNoScroll,exports.deleteCookie=k.deleteCookie,exports.getCookie=k.getCookie,exports.setCookie=k.setCookie,exports.MBTheme=y.MBTheme,exports.theme=y.theme,exports.abbreviateNumber=A.abbreviateNumber,exports.getCareApiDomain=R.getCareApiDomain,exports.getCurrentBaseUrl=R.getCurrentBaseUrl,exports.getCurrentSsoUrl=R.getCurrentSsoUrl,exports.getDiscoverApiDomain=R.getDiscoverApiDomain,exports.getTogetherApiDomain=R.getTogetherApiDomain,exports.formatHealthTool=O.formatHealthTool,exports.getDynamicHealthTool=O.getDynamicHealthTool,exports.getDynamicHealthToolWithCache=O.getDynamicHealthToolWithCache,exports.getSocialList=F.getSocialList,exports.formatPill=H.formatPill,exports.Visible=N.Visible,exports.CheckCircle=e=>G.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.66797 9.99984C1.66797 5.39984 5.4013 1.6665 10.0013 1.6665C14.6013 1.6665 18.3346 5.39984 18.3346 9.99984C18.3346 14.5998 14.6013 18.3332 10.0013 18.3332C5.4013 18.3332 1.66797 14.5998 1.66797 9.99984ZM4.75147 10.5828L7.74314 13.5745C8.06814 13.8995 8.60147 13.8995 8.91814 13.5745L15.2431 7.24948C15.5681 6.92448 15.5681 6.39948 15.2431 6.07448C14.9181 5.74948 14.3931 5.74948 14.0681 6.07448L8.3348 11.8078L5.92647 9.40781C5.60147 9.08281 5.07647 9.08281 4.75147 9.40781C4.59543 9.56351 4.50773 9.77488 4.50773 9.99531C4.50773 10.2157 4.59543 10.4271 4.75147 10.5828Z"}),G.createElement("path",{d:"M7.74322 13.5772L4.75155 10.5856C4.59551 10.4299 4.50781 10.2185 4.50781 9.99808C4.50781 9.77765 4.59551 9.56627 4.75155 9.41058C5.07655 9.08558 5.60155 9.08558 5.92655 9.41058L8.33488 11.8106L14.0682 6.07725C14.3932 5.75225 14.9182 5.75225 15.2432 6.07725C15.5682 6.40225 15.5682 6.92725 15.2432 7.25225L8.91822 13.5772C8.60155 13.9022 8.06822 13.9022 7.74322 13.5772Z",fill:"white"})),exports.ChevronLeft=e=>G.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),G.createElement("path",{d:"M10.929 12.0002L14.75 8.17915C15.164 7.76515 15.164 7.09315 14.75 6.67915C14.336 6.26515 13.664 6.26515 13.25 6.67915L8.63605 11.2932C8.24505 11.6842 8.24505 12.3172 8.63605 12.7072L13.25 17.3212C13.664 17.7352 14.336 17.7352 14.75 17.3212C15.164 16.9072 15.164 16.2352 14.75 15.8212L10.929 12.0002Z"})),exports.ChevronRight=e=>G.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),G.createElement("path",{d:"M14.071 12.0002L10.25 8.17915C9.83598 7.76515 9.83598 7.09315 10.25 6.67915C10.664 6.26515 11.336 6.26515 11.75 6.67915L16.364 11.2932C16.755 11.6842 16.755 12.3172 16.364 12.7072L11.75 17.3212C11.336 17.7352 10.664 17.7352 10.25 17.3212C9.83598 16.9072 9.83598 16.2352 10.25 15.8212L14.071 12.0002Z"})),exports.ChevronUp=e=>G.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),G.createElement("path",{d:"M7.80267 6.61943L10.35 9.16676C10.626 9.44276 11.074 9.44276 11.35 9.16676C11.626 8.89076 11.626 8.44276 11.35 8.16676L8.27401 5.09076C8.01334 4.8301 7.59134 4.8301 7.33134 5.09076L4.25534 8.16676C3.97934 8.44276 3.97934 8.89076 4.25534 9.16676C4.53134 9.44276 4.97934 9.44276 5.25534 9.16676L7.80267 6.61943Z"})),exports.Circle=e=>G.createElement("svg",Object.assign({className:"spinner",viewBox:"0 0 50 50",fill:"currentColor",width:"1em",height:"1em"},e),G.createElement("circle",{className:"path",cx:25,cy:25,r:20,stroke:"currentColor",strokeWidth:5})),exports.EmailCheck=e=>G.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),G.createElement("path",{d:"M63.9688 40.6414L71.5135 36.8271H71.5214L69.2091 66.2105C69.1295 67.2226 68.8514 68.209 68.3905 69.1135C67.9296 70.018 67.2951 70.8229 66.5231 71.4821C65.7511 72.1414 64.8568 72.6421 63.8913 72.9556C62.9258 73.2692 61.908 73.3894 60.896 73.3095L13.7009 69.5939C12.2428 69.4829 10.8477 68.9538 9.68262 68.0701L37.6513 53.9349L63.9688 40.6414Z",fill:"#91CAFF"}),G.createElement("path",{d:"M66.5154 30.7156L71.6092 36.5132L64.0645 40.3275L66.5154 30.7156Z",fill:"#2B62CD"}),G.createElement("path",{d:"M66.03 20.0896L66.0298 20.0896L54.445 17.1371L33.1143 11.7035H33.1064L33.0912 11.6997L27.0869 10.1654L66.03 20.0896ZM66.03 20.0896C66.408 20.1854 66.7633 20.3548 67.0757 20.5882C67.3881 20.8215 67.6514 21.1141 67.8506 21.4493C68.0498 21.7845 68.1809 22.1557 68.2364 22.5417C68.2919 22.9276 68.2708 23.3207 68.1742 23.6985L68.1742 23.6986M66.03 20.0896L68.1742 23.6986M68.1742 23.6986L66.3914 30.6842L66.5125 30.7151M68.1742 23.6986L66.5125 30.7151M66.5125 30.7151L66.3914 30.6842L63.9545 40.241L37.7595 53.4735L16.9721 37.5413M66.5125 30.7151L16.9721 37.5413M16.9721 37.5413L17.075 37.4096L17.0911 37.3889L17.0976 37.3634L21.0735 21.7341L21.0805 21.7254L21.0871 21.6992L23.477 12.3089C23.6715 11.546 24.1611 10.8916 24.838 10.4896C25.515 10.0876 26.3239 9.97102 27.0868 10.1654L16.9721 37.5413Z",fill:"white",stroke:"#E4E8EC",strokeWidth:.25}),G.createElement("path",{d:"M47.6766 9.2919L54.4861 17.0363L33.1367 11.598L36.9335 8.43973C38.4844 7.1591 40.4726 6.53198 42.4776 6.69102C44.4826 6.85005 46.3471 7.78278 47.6766 9.2919Z",fill:"#2B62CD"}),G.createElement("path",{d:"M37.7462 53.6208L9.77752 67.756C8.72905 66.9794 7.89559 65.9486 7.3557 64.7608C6.81581 63.5729 6.58726 62.2672 6.6916 60.9666L9.00473 31.5911L16.7963 37.564L37.7462 53.6208Z",fill:"#65B5FF"}),G.createElement("path",{d:"M20.9577 21.6777L16.9751 37.3332L16.7946 37.5644L9.00391 31.5914L20.9577 21.6777Z",fill:"#2B62CD"}),G.createElement("path",{d:"M40.797 39.6731C46.1394 41.0733 51.6054 37.8775 53.0056 32.5351C54.4058 27.1927 51.21 21.7268 45.8676 20.3266C40.5252 18.9263 35.0592 22.1221 33.659 27.4645C32.2588 32.8069 35.4546 38.2729 40.797 39.6731Z",fill:"#00CB8A"}),G.createElement("path",{d:"M42.0398 32.9697C41.6263 32.862 41.238 32.6738 40.8973 32.4158C40.5566 32.1578 40.2701 31.8352 40.0542 31.4663L39.2137 30.0279C39.1039 29.8324 39.0753 29.6016 39.134 29.3852C39.1927 29.1689 39.3341 28.9842 39.5277 28.871C39.7212 28.7579 39.9515 28.7252 40.1689 28.7802C40.3862 28.8352 40.5733 28.9733 40.6898 29.1649L41.5304 30.6033C41.6319 30.7769 41.7666 30.9289 41.9269 31.0504C42.0871 31.172 42.2698 31.2608 42.4643 31.3118C42.6589 31.3628 42.8616 31.375 43.0609 31.3477C43.2602 31.3203 43.4522 31.254 43.6258 31.1525L52.5607 26.5173C52.7613 26.4192 52.9924 26.4034 53.2045 26.4734C53.4166 26.5435 53.5929 26.6937 53.6956 26.892C53.7984 27.0903 53.8195 27.3209 53.7544 27.5346C53.6893 27.7483 53.5432 27.928 53.3473 28.0353L44.4483 32.6486C44.0877 32.8581 43.6894 32.9943 43.2761 33.0494C42.8628 33.1045 42.4427 33.0774 42.0398 32.9697Z",fill:"white"})),exports.EmailFail=e=>G.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),G.createElement("path",{d:"M63.9688 40.6414L71.5135 36.8271H71.5214L69.2091 66.2105C69.1295 67.2226 68.8514 68.209 68.3905 69.1135C67.9296 70.018 67.2951 70.8229 66.5231 71.4821C65.7511 72.1414 64.8568 72.6421 63.8913 72.9556C62.9258 73.2692 61.908 73.3894 60.896 73.3095L13.7009 69.5939C12.2428 69.4829 10.8477 68.9538 9.68262 68.0701L37.6513 53.9349L63.9688 40.6414Z",fill:"#91CAFF"}),G.createElement("path",{d:"M66.5154 30.7156L71.6092 36.5132L64.0645 40.3275L66.5154 30.7156Z",fill:"#2B62CD"}),G.createElement("path",{d:"M65.9578 20.3722L65.9583 20.3723C66.2991 20.4587 66.6195 20.6115 66.9012 20.8218C67.1829 21.0322 67.4203 21.2961 67.5999 21.5983C67.7794 21.9005 67.8976 22.2352 67.9477 22.5832C67.9978 22.9312 67.9787 23.2856 67.8916 23.6262L67.8916 23.6264L66.1088 30.612L66.1088 30.6121L63.7046 40.0405L37.7915 53.1306L17.3693 37.4783L17.3803 37.4353L21.3406 21.8671L21.3476 21.8584L21.3698 21.7712L23.7596 12.381C23.7596 12.3809 23.7597 12.3809 23.7597 12.3808C23.9351 11.6929 24.3765 11.1028 24.9869 10.7404C25.5974 10.3779 26.3269 10.2727 27.0149 10.4481L33.019 11.9822L33.0697 11.9952H33.0777L54.3729 17.4197L54.373 17.4197L65.9578 20.3722Z",fill:"white",stroke:"#E4E8EC",strokeWidth:.833333}),G.createElement("path",{d:"M47.6766 9.2919L54.4861 17.0363L33.1367 11.598L36.9335 8.43973C38.4844 7.1591 40.4726 6.53198 42.4776 6.69102C44.4826 6.85005 46.3471 7.78278 47.6766 9.2919Z",fill:"#2B62CD"}),G.createElement("path",{d:"M37.7462 53.6208L9.77752 67.756C8.72905 66.9794 7.89559 65.9486 7.3557 64.7608C6.81581 63.5729 6.58726 62.2672 6.6916 60.9666L9.00473 31.5911L16.7963 37.564L37.7462 53.6208Z",fill:"#65B5FF"}),G.createElement("path",{d:"M20.9577 21.6777L16.9751 37.3332L16.7946 37.5644L9.00391 31.5914L20.9577 21.6777Z",fill:"#2B62CD"}),G.createElement("path",{d:"M36.2349 37.7184C40.4975 41.2301 46.7998 40.6212 50.3115 36.3586C53.8231 32.0959 53.2143 25.7936 48.9516 22.282C44.689 18.7703 38.3867 19.3792 34.875 23.6418C31.3634 27.9045 31.9722 34.2068 36.2349 37.7184Z",fill:"#FF5331"}),G.createElement("g",{clipPath:"url(#clip0_1176_26159)"},G.createElement("path",{d:"M48.4022 27.8621C48.317 27.6306 48.1433 27.4425 47.9195 27.3391C47.6956 27.2357 47.4398 27.2254 47.2084 27.3105L43.1437 28.8064L41.6479 24.7418C41.5597 24.5144 41.3858 24.3308 41.1635 24.2304C40.9413 24.1301 40.6885 24.1211 40.4596 24.2053C40.2308 24.2895 40.0442 24.4602 39.94 24.6807C39.8358 24.9012 39.8224 25.1538 39.9026 25.3841L41.3984 29.4487L37.3338 30.9445C37.2172 30.9851 37.1098 31.0486 37.018 31.1312C36.9262 31.2137 36.8517 31.3137 36.7989 31.4254C36.7462 31.537 36.7162 31.6581 36.7107 31.7815C36.7052 31.9048 36.7243 32.0281 36.767 32.144C36.8096 32.2598 36.8749 32.3661 36.9591 32.4565C37.0432 32.5469 37.1445 32.6196 37.2571 32.6704C37.3697 32.7212 37.4912 32.7491 37.6146 32.7524C37.7381 32.7558 37.861 32.7345 37.9761 32.6898L42.0407 31.194L43.5366 35.2586C43.6247 35.486 43.7987 35.6696 44.021 35.7699C44.2432 35.8703 44.496 35.8793 44.7248 35.7951C44.9537 35.7109 45.1403 35.5401 45.2445 35.3197C45.3487 35.0992 45.3621 34.8466 45.2819 34.6163L43.7861 30.5517L47.8507 29.0559C48.0821 28.9707 48.2702 28.797 48.3736 28.5732C48.477 28.3493 48.4873 28.0935 48.4022 27.8621Z",fill:"white"})),G.createElement("defs",null,G.createElement("clipPath",{id:"clip0_1176_26159"},G.createElement("rect",{width:11.1603,height:11.1603,fill:"white",transform:"translate(39.8672 22.5942) rotate(24.7957)"})))),exports.Facebook=e=>G.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),G.createElement("path",{d:"M14 0H3C1.61929 0 0.5 1.11929 0.5 2.5V13.5C0.5 14.8807 1.61929 16 3 16H14C15.3807 16 16.5 14.8807 16.5 13.5V2.5C16.5 1.11929 15.3807 0 14 0Z",fill:"#1778F2"}),G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.657 16V9.7495H12.2845L12.5 7.595H10.657L10.66 6.517C10.66 5.9555 10.71 5.6545 11.4715 5.6545H12.4885V3.5H10.861C8.906 3.5 8.2185 4.545 8.2185 6.302V7.5955H7V9.7495H8.2185V16H10.657Z",fill:"white"})),exports.Google=e=>G.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),G.createElement("path",{d:"M14.6819 8.15547C14.6819 7.57992 14.6353 7.15992 14.5345 6.72437H7.98047V9.32212H11.8275C11.75 9.96769 11.3312 10.9399 10.4004 11.5932L10.3874 11.6802L12.4596 13.29L12.6032 13.3044C13.9217 12.0832 14.6819 10.2866 14.6819 8.15547Z",fill:"#4285F4"}),G.createElement("path",{d:"M7.98042 15.0001C9.86516 15.0001 11.4474 14.3778 12.6031 13.3045L10.4003 11.5934C9.81089 12.0056 9.01973 12.2934 7.98042 12.2934C6.13445 12.2934 4.5677 11.0723 4.0092 9.38452L3.92733 9.39149L1.77256 11.0637L1.74438 11.1423C2.8923 13.4289 5.2502 15.0001 7.98042 15.0001Z",fill:"#34A853"}),G.createElement("path",{d:"M4.00915 9.38424C3.86178 8.94869 3.7765 8.48199 3.7765 7.99979C3.7765 7.51754 3.86178 7.05089 4.00139 6.61534L3.99749 6.52258L1.81572 4.82349L1.74434 4.85753C1.27123 5.80644 0.999756 6.87201 0.999756 7.99979C0.999756 9.12757 1.27123 10.1931 1.74434 11.142L4.00915 9.38424Z",fill:"#FBBC05"}),G.createElement("path",{d:"M7.98042 3.70665C9.2912 3.70665 10.1754 4.27443 10.6796 4.7489L12.6497 2.82C11.4397 1.69223 9.86516 1 7.98042 1C5.2502 1 2.8923 2.5711 1.74438 4.85775L4.00144 6.61556C4.5677 4.92778 6.13445 3.70665 7.98042 3.70665Z",fill:"#EB4335"})),exports.InVisible=e=>G.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.71 4.54002C2.32 4.15002 2.32 3.52002 2.71 3.13002C3.1 2.74002 3.74 2.74002 4.13 3.13002L20.44 19.46C20.83 19.85 20.83 20.48 20.44 20.87C20.05 21.26 19.42 21.26 19.03 20.87L16.31 18.15C14.97 18.67 13.52 18.97 12 18.97C7 18.97 2.73 15.86 1 11.47C1.77 9.50002 3.06 7.80002 4.68 6.51002L2.71 4.54002ZM17 11.47C17 8.71002 14.76 6.47002 12 6.47002C11.49 6.47002 11 6.57002 10.53 6.71002L8.36 4.54002C9.51 4.17002 10.73 3.97002 12 3.97002C17 3.97002 21.27 7.08002 23 11.46C22.31 13.22 21.21 14.76 19.82 15.99L16.76 12.93C16.9 12.47 17 11.98 17 11.47ZM12 16.47C9.24 16.47 7 14.23 7 11.47C7 10.7 7.18 9.97002 7.49 9.33002L9.06 10.9C9.03 11.08 9 11.27 9 11.47C9 13.13 10.34 14.47 12 14.47C12.2 14.47 12.38 14.44 12.57 14.4L14.14 15.97C13.49 16.29 12.77 16.47 12 16.47ZM14.97 11.14C14.82 9.74002 13.72 8.65002 12.33 8.50002L14.97 11.14Z"})),exports.Spinning=e=>G.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),G.createElement("circle",{cx:12.5,cy:12,r:10,stroke:"#DBDFE5",strokeWidth:4}),G.createElement("mask",{id:"path-2-inside-1_917_29592",fill:"white"},G.createElement("path",{d:"M12.5 0C14.964 2.93833e-08 17.3683 0.758527 19.3863 2.17253C21.4042 3.58653 22.938 5.58746 23.7791 7.90347C24.6203 10.2195 24.7281 12.7383 24.0879 15.1177C23.4477 17.4971 22.0906 19.6218 20.2009 21.2031C18.3111 22.7843 15.9804 23.7456 13.5254 23.9561C11.0704 24.1667 8.61007 23.6164 6.47869 22.38C4.3473 21.1436 2.64819 19.281 1.6122 17.0454C0.576199 14.8097 0.253539 12.3093 0.688053 9.8839L4.59856 10.5845C4.3079 12.2069 4.52374 13.8795 5.21676 15.375C5.90977 16.8705 7.04637 18.1165 8.47213 18.9435C9.89789 19.7706 11.5437 20.1387 13.1859 19.9979C14.8282 19.857 16.3873 19.214 17.6514 18.1563C18.9155 17.0985 19.8233 15.6772 20.2516 14.0856C20.6798 12.4939 20.6077 10.8089 20.045 9.25969C19.4823 7.71042 18.4563 6.37193 17.1065 5.42605C15.7566 4.48017 14.1483 3.97277 12.5 3.97277L12.5 0Z"})),G.createElement("path",{d:"M12.5 0C14.964 2.93833e-08 17.3683 0.758527 19.3863 2.17253C21.4042 3.58653 22.938 5.58746 23.7791 7.90347C24.6203 10.2195 24.7281 12.7383 24.0879 15.1177C23.4477 17.4971 22.0906 19.6218 20.2009 21.2031C18.3111 22.7843 15.9804 23.7456 13.5254 23.9561C11.0704 24.1667 8.61007 23.6164 6.47869 22.38C4.3473 21.1436 2.64819 19.281 1.6122 17.0454C0.576199 14.8097 0.253539 12.3093 0.688053 9.8839L4.59856 10.5845C4.3079 12.2069 4.52374 13.8795 5.21676 15.375C5.90977 16.8705 7.04637 18.1165 8.47213 18.9435C9.89789 19.7706 11.5437 20.1387 13.1859 19.9979C14.8282 19.857 16.3873 19.214 17.6514 18.1563C18.9155 17.0985 19.8233 15.6772 20.2516 14.0856C20.6798 12.4939 20.6077 10.8089 20.045 9.25969C19.4823 7.71042 18.4563 6.37193 17.1065 5.42605C15.7566 4.48017 14.1483 3.97277 12.5 3.97277L12.5 0Z",stroke:"#2D87F3",strokeWidth:8,mask:"url(#path-2-inside-1_917_29592)"},G.createElement("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 12.5 12",to:"360 12.5 12",dur:"2s",repeatCount:"indefinite"})));
|