@hhgtech/hhg-components 1.20.47 → 1.20.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/babyGrowth.js +1 -1
- package/build/care.js +1 -1
- package/build/components.js +1 -1
- package/build/core.js +1 -1
- package/build/{core.d.ts → core_deprecated.d.ts} +0 -0
- package/build/esm/babyGrowth.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/core.js +1 -1
- package/build/esm/index-2ddb6156.js +1 -0
- package/build/esm/{index-2b194d05.js → index-51f15383.js} +1 -1
- package/build/esm/{index-e6fb8f13.js → index-64b3897b.js} +1 -1
- package/build/esm/index-8246ac05.js +1 -0
- package/build/esm/index-90e6a2ce.js +1 -0
- package/build/esm/{index-170ecf0b.js → index-a1483862.js} +1 -1
- package/build/esm/index-a6db2914.js +1 -0
- package/build/esm/index-c81481c9.js +1 -0
- package/build/esm/index-e1b813d7.js +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/index.styled-1dea32fa.js +1 -0
- package/build/esm/index.styled-6c829115.js +1 -0
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/navigationLayout_deprecated.js +1 -1
- package/build/esm/screenSizeContext-0c80285d.js +1 -0
- package/build/esm/together.js +1 -1
- package/build/esm/togetherComponentGlobalContext-605bb3c0.js +1 -0
- package/build/esm/types-901d2a74.js +1 -0
- package/build/esm/types-a6db3f6d.js +1 -0
- package/build/hooks/useScreenSize.d.ts +1 -2
- package/build/{index-c7bbd0f2.js → index-169b5d28.js} +1 -1
- package/build/index-3666ed7c.js +1 -0
- package/build/index-39851b41.js +1 -0
- package/build/{index-4f5db552.js → index-4850f2fc.js} +1 -1
- package/build/index-543afb23.js +1 -0
- package/build/{index-93b70710.js → index-65592482.js} +1 -1
- package/build/{index-5dfd2bd9.js → index-6f734da0.js} +1 -1
- package/build/index-9ccb38d9.js +1 -0
- package/build/index-b36b8860.js +1 -0
- package/build/index.js +1 -1
- package/build/index.styled-567ba2ef.js +1 -0
- package/build/index.styled-80b8ddaf.js +1 -0
- package/build/misc/index.d.ts +1 -0
- package/build/misc/screenSizeContext.d.ts +23 -0
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/navigationLayout_deprecated.js +1 -1
- package/build/screenSizeContext-dbfd67e6.js +1 -0
- package/build/together.js +1 -1
- package/build/togetherComponentGlobalContext-9e4b5e1c.js +1 -0
- package/build/types-3147005f.js +1 -0
- package/build/types-afdbdb3b.js +1 -0
- package/package.json +5 -2
- package/build/esm/index-79144a04.js +0 -1
- package/build/esm/index-79b4cb18.js +0 -1
- package/build/esm/index-903d16b5.js +0 -1
- package/build/esm/index-a5f7022a.js +0 -1
- package/build/esm/index-b62d9bf9.js +0 -1
- package/build/esm/index-f712036c.js +0 -1
- package/build/esm/index.styled-628f3a18.js +0 -1
- package/build/esm/index.styled-fad259b1.js +0 -1
- package/build/esm/lazyLoad-f916d705.js +0 -1
- package/build/esm/togetherComponentGlobalContext-5be3f210.js +0 -1
- package/build/esm/types-86198528.js +0 -1
- package/build/esm/types-a7a69858.js +0 -1
- package/build/index-103c59b6.js +0 -1
- package/build/index-193522ec.js +0 -1
- package/build/index-249a996e.js +0 -1
- package/build/index-cd9a6d72.js +0 -1
- package/build/index-e0fbee88.js +0 -1
- package/build/index.styled-5695a100.js +0 -1
- package/build/index.styled-747be23a.js +0 -1
- package/build/lazyLoad-a4ccbfcc.js +0 -1
- package/build/togetherComponentGlobalContext-7313ee94.js +0 -1
- package/build/types-13342b7b.js +0 -1
- package/build/types-574c829c.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e,a as n,_ as t,c as o,d as i}from"./tslib.es6-5532bd7b.js";import r,{useMemo as a,useState as c,useCallback as l,useEffect as s,useRef as u,useReducer as d}from"react";import{I as p,L as h}from"./constants-a0a981fa.js";import{b as g,d as m}from"./constants-3be6f6a9.js";import{g as f,s as C,d as v}from"./cookieHelper-0e8521c3.js";import{u as x}from"./useTranslations-66de60e4.js";import y from"lodash/debounce";import{T as b}from"./index.styled-1dea32fa.js";import{I as w}from"./index-64b3897b.js";import{M as E}from"./screenSizeContext-0c80285d.js";import"react-range";import"react-dom";import"./translationsContext-873337b8.js";import L from"string-format";import"date-fns";import k,{createGlobalStyle as S}from"styled-components";import"./Locale-69030fff.js";import{t as M}from"./theme-a50a1aa5.js";import I from"react-loading-skeleton";import{useId as R}from"react-id-generator";import P from"lodash/shuffle";import{u as F}from"./useOutsideClick-6004483a.js";var z,A,T,N,B,H,V,D,O,K,Z,j,_=k.div(z||(z=e([""],[""]))),G=k.div(A||(A=e(["\n --searchbar-z-index: 305;\n &[data-is-modal='true'] {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n height: var(--mobile-care-searchbar-height, 100%);\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n background-color: white;\n z-index: var(--searchbar-z-index);\n }\n"],["\n --searchbar-z-index: 305;\n &[data-is-modal='true'] {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n height: var(--mobile-care-searchbar-height, 100%);\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n background-color: white;\n z-index: var(--searchbar-z-index);\n }\n"]))),U=k.section(T||(T=e([""],[""]))),Q=k.input(N||(N=e(["\n position: fixed;\n left: -100%;\n top: -100%;\n"],["\n position: fixed;\n left: -100%;\n top: -100%;\n"]))),q=k(w)(B||(B=e(["\n #booking-search-bar & {\n input {\n font-size: 16px;\n }\n }\n"],["\n #booking-search-bar & {\n input {\n font-size: 16px;\n }\n }\n"]))),W=S(H||(H=e(["\n .care-popup-open {\n overflow: hidden;\n position: fixed;\n &::before {\n content: '';\n inset: 0;\n position: absolute;\n background-color: white;\n min-height: 100vh;\n min-width: 100vw;\n z-index: 2;\n }\n }\n"],["\n .care-popup-open {\n overflow: hidden;\n position: fixed;\n &::before {\n content: '';\n inset: 0;\n position: absolute;\n background-color: white;\n min-height: 100vh;\n min-width: 100vw;\n z-index: 2;\n }\n }\n"]))),Y=function(e){var n=e.className,t=e.color;return r.createElement("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M18 6L6 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M6 6L18 18",stroke:t||"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))},J=function(e){var n=e.className,t=e.color;return r.createElement("svg",{width:"14",height:"20",viewBox:"0 0 14 20",className:n},r.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"}))},X=function(e){var n=e.className,t=e.color;return r.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",className:n},r.createElement("path",{d:"M9.99967 6.66658C8.15801 6.66658 6.66634 8.15825 6.66634 9.99992C6.66634 11.8416 8.15801 13.3333 9.99967 13.3333C11.8413 13.3333 13.333 11.8416 13.333 9.99992C13.333 8.15825 11.8413 6.66658 9.99967 6.66658ZM17.4497 9.16658C17.0663 5.69158 14.308 2.93325 10.833 2.54992V1.66659C10.833 1.20825 10.458 0.833252 9.99967 0.833252C9.54134 0.833252 9.16634 1.20825 9.16634 1.66659V2.54992C5.69134 2.93325 2.93301 5.69158 2.54967 9.16658H1.66634C1.20801 9.16658 0.833008 9.54158 0.833008 9.99992C0.833008 10.4583 1.20801 10.8333 1.66634 10.8333H2.54967C2.93301 14.3083 5.69134 17.0666 9.16634 17.4499V18.3333C9.16634 18.7916 9.54134 19.1666 9.99967 19.1666C10.458 19.1666 10.833 18.7916 10.833 18.3333V17.4499C14.308 17.0666 17.0663 14.3083 17.4497 10.8333H18.333C18.7913 10.8333 19.1663 10.4583 19.1663 9.99992C19.1663 9.54158 18.7913 9.16658 18.333 9.16658H17.4497ZM9.99967 15.8333C6.77467 15.8333 4.16634 13.2249 4.16634 9.99992C4.16634 6.77492 6.77467 4.16658 9.99967 4.16658C13.2247 4.16658 15.833 6.77492 15.833 9.99992C15.833 13.2249 13.2247 15.8333 9.99967 15.8333Z",fill:t||"currentColor"}))},$=function(e){var n=e.className,t=e.color;return r.createElement("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.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"}),r.createElement("path",{d:"M20 20L16 16",stroke:t||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))},ee=function(e){var n=e.width,t=e.height;return r.createElement("svg",{width:n||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}))},ne=k.li(V||(V=e(["\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 8px 16px;\n\n > :first-child {\n flex: 1;\n }\n\n > :nth-child(2) {\n flex: 6;\n }\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n"],["\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 8px 16px;\n\n > :first-child {\n flex: 1;\n }\n\n > :nth-child(2) {\n flex: 6;\n }\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n"])),M.colors.neutral100),te=k.div(D||(D=e(["\n display: flex;\n position: absolute;\n top: 48px;\n min-width: 100%;\n box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),\n 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n border-radius: 6px;\n background-color: white;\n z-index: 30;\n\n "," {\n position: relative;\n top: 0;\n box-shadow: initial;\n }\n"],["\n display: flex;\n position: absolute;\n top: 48px;\n min-width: 100%;\n box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),\n 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n border-radius: 6px;\n background-color: white;\n z-index: 30;\n\n "," {\n position: relative;\n top: 0;\n box-shadow: initial;\n }\n"])),E.mbDown),oe=k.ul(O||(O=e(["\n width: 100%;\n max-height: 600px;\n overflow-y: auto;\n"],["\n width: 100%;\n max-height: 600px;\n overflow-y: auto;\n"]))),ie=k(J)(K||(K=e(["\n width: 12px;\n height: 18px;\n"],["\n width: 12px;\n height: 18px;\n"]))),re=k.li(Z||(Z=e(["\n position: relative;\n cursor: pointer;\n padding: 12px 18px;\n display: flex;\n align-items: center;\n gap: 14px;\n overflow: hidden;\n\n ","\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n\n &:not([data-is-denied='true']):hover {\n background-color: ",";\n }\n\n &:last-child:hover {\n border-bottom-right-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n\n &:first-child:hover {\n border-top-right-radius: 6px;\n border-top-left-radius: 6px;\n }\n\n &[data-is-denied='true'] {\n cursor: not-allowed;\n }\n"],["\n position: relative;\n cursor: pointer;\n padding: 12px 18px;\n display: flex;\n align-items: center;\n gap: 14px;\n overflow: hidden;\n\n ","\n\n & + li::before {\n content: '';\n position: absolute;\n left: 18px;\n right: 18px;\n top: 0;\n height: 1px;\n background-color: ",";\n }\n\n &:not([data-is-denied='true']):hover {\n background-color: ",";\n }\n\n &:last-child:hover {\n border-bottom-right-radius: 6px;\n border-bottom-left-radius: 6px;\n }\n\n &:first-child:hover {\n border-top-right-radius: 6px;\n border-top-left-radius: 6px;\n }\n\n &[data-is-denied='true'] {\n cursor: not-allowed;\n }\n"])),(function(e){return e.isSelected&&"\n &::after {\n content: ".concat("url(\"data:image/svg+xml,%3Csvg width='19' height='14' viewBox='0 0 19 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.9803 0.990669C16.7205 0.99841 16.4739 1.10699 16.2928 1.2934L5.99984 11.5864L2.70687 8.2934C2.61473 8.19743 2.50436 8.12081 2.38223 8.06802C2.2601 8.01524 2.12867 7.98735 1.99563 7.986C1.86259 7.98464 1.73061 8.00985 1.60743 8.06014C1.48426 8.11043 1.37235 8.18479 1.27827 8.27887C1.1842 8.37295 1.10983 8.48485 1.05954 8.60803C1.00926 8.73121 0.98405 8.86318 0.985403 8.99622C0.986757 9.12926 1.01464 9.26069 1.06743 9.38282C1.12021 9.50495 1.19684 9.61532 1.29281 9.70747L5.29281 13.7075C5.48035 13.8949 5.73467 14.0002 5.99984 14.0002C6.26501 14.0002 6.51933 13.8949 6.70687 13.7075L17.7069 2.70747C17.8514 2.567 17.9501 2.38616 17.99 2.18864C18.03 1.99112 18.0093 1.78614 17.9308 1.60055C17.8523 1.41497 17.7195 1.25744 17.5499 1.14861C17.3803 1.03978 17.1817 0.984729 16.9803 0.990669Z' fill='%232685F1'/%3E%3C/svg%3E%0A\")",";\n top: 50%;\n right: 18px;\n position: absolute;\n transform: translateY(-50%);\n }\n ")}),M.colors.neutral100,M.colors.neutral50),ae=k((function(e){var t=e.count,o=e.className,i=R(t);return r.createElement(r.Fragment,null,n([],Array(t),!0).map((function(e,n){return r.createElement(ne,{className:o,key:i[n]},r.createElement(I,{count:1,height:32}),r.createElement(I,{count:1,height:24}))})))}))(j||(j=e(["\n &:first-child {\n padding-top: 18px;\n }\n"],["\n &:first-child {\n padding-top: 18px;\n }\n"]))),ce=function(e){var n=e.cities,t=e.isLoading,o=e.onLocationClick,i=e.onCurrentLocationClick,a=e.geoLocationPermission,c=void 0===a?"unset":a,l=e.isLocationLoading,s=e.selectedLocation,u=x().t,d="denied"===c,p=function(){return r.createElement(re,{role:"button",tabIndex:0,onClick:function(e){d||(e.nativeEvent.stopImmediatePropagation(),l||i())},"data-is-denied":d},d?r.createElement(b,{color:"var(--gray600)",size:"md"},"x"):l?r.createElement(I,{height:20,width:20}):r.createElement(X,{color:M.colors.primaryBase}),r.createElement("div",null,d?r.createElement(b,{color:"var(--gray600)",size:"sm",style:{lineHeight:1.5}},u("booking.searchBar.grantLocation")):l?r.createElement(I,{height:20,style:{width:"calc(100% - 16px)"}}):r.createElement(b,{size:"md"},u("booking.searchBar.useCurrentLocation"))))};return r.createElement(te,{"data-testid":"location-search-results"},r.createElement(oe,null,t?r.createElement(ae,{count:5}):!n||n.length<1?r.createElement(r.Fragment,null,p(),r.createElement(re,{"data-is-denied":"true"},r.createElement(b,{size:"sm",color:"#ccc"},u("booking.searchBar.noResults")))):r.createElement(r.Fragment,null,p(),n.map((function(e){return r.createElement(re,{key:e.id,onClick:function(n){n.nativeEvent.stopImmediatePropagation(),o&&o(e)},role:"button",tabIndex:0,"aria-label":"Select ".concat(e.name," as location"),isSelected:(null==s?void 0:s.id)===e.id},r.createElement(ie,{color:M.colors.neutral400}),r.createElement(b,{size:"md"},e.name))})))))},le="TYPE_CHARACTER",se="REMOVE_CHARACTER",ue="REMOVE_ALL",de="REMOVE_LAST_VISIBLE_NODE",pe="PAUSE_FOR",he="CHANGE_DELETE_SPEED",ge="CHANGE_DELAY",me="PASTE_STRING",fe=function(e,n){return Math.floor(Math.random()*(n-e+1))+e},Ce="TEXT_NODE",ve=function(){function e(e){var o=this;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=function(){return o.state.eventLoopPaused=!1,o.runEventLoop(),o},this.pause=function(){return o.state.eventLoopPaused=!0,o},this.stop=function(){return o.state.eventLoop&&(window.cancelAnimationFrame(o.state.eventLoop),o.state.eventLoop=null),o},this.pauseFor=function(e){return o.addEventToQueue(pe,{ms:e}),o},this.typeOutAllStrings=function(){return"string"==typeof o.options.strings?(o.typeString(o.options.strings).pauseFor(o.options.pauseFor),o):(o.options.strings.forEach((function(e){o.typeString(e).pauseFor(o.options.pauseFor).deleteAll(o.options.deleteSpeed)})),o)},this.typeString=function(e,n){if(void 0===n&&(n=null),e){var t=(o.options||{}).stringSplitter,i="function"==typeof t?t(e):e.split("");o.typeCharacters(i,n)}return o},this.pasteString=function(e,n){return void 0===n&&(n=null),e&&o.addEventToQueue(me,{character:e,node:n}),o},this.deleteAll=function(e){return void 0===e&&(e="natural"),o.addEventToQueue(ue,{speed:e}),o},this.changeDeleteSpeed=function(e){if(!e)throw new Error("Must provide new delete speed");return o.addEventToQueue(he,{speed:e}),o},this.changeDelay=function(e){if(!e)throw new Error("Must provide new delay");return o.addEventToQueue(ge,{delay:e}),o},this.deleteChars=function(e){if(!e)throw new Error("Must provide amount of characters to delete");for(var n=0;n<e;n++)o.addEventToQueue(se);return o},this.typeCharacters=function(e,n){if(void 0===n&&(n=null),!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((function(e){o.addEventToQueue(le,{character:e,node:n})})),o},this.removeCharacters=function(e){if(!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((function(){o.addEventToQueue(se)})),o},this.addEventToQueue=function(e,n,t){return void 0===t&&(t=!1),o.addEventToStateProperty(e,n,t,"eventQueue")},this.addReverseCalledEvent=function(e,n,t){return void 0===t&&(t=!1),o.options.loop?o.addEventToStateProperty(e,n,t,"reverseCalledEvents"):o},this.addEventToStateProperty=function(e,t,i,r){void 0===i&&(i=!1);var a={eventName:e,eventArgs:t||{}};return o.state[r]=i?n([a],o.state[r],!0):n(n([],o.state[r],!0),[a],!1),o},this.runEventLoop=function(){o.state.lastFrameTime||(o.state.lastFrameTime=Date.now());var e=Date.now(),i=e-o.state.lastFrameTime;if(!o.state.eventQueue.length){if(!o.options.loop)return;o.state.eventQueue=n([],o.state.calledEvents,!0),o.state.calledEvents=[],o.options=t({},o.state.initialOptions)}if(o.state.eventLoop=window.requestAnimationFrame(o.runEventLoop),!o.state.eventLoopPaused){if(o.state.pauseUntil){if(e<o.state.pauseUntil)return;o.state.pauseUntil=null}var r=n([],o.state.eventQueue,!0),a=r.shift();if(!(i<=(a.eventName===de||a.eventName===se?"natural"===o.options.deleteSpeed?fe(40,80):o.options.deleteSpeed:"natural"===o.options.delay?fe(120,160):o.options.delay))){var c=a.eventName,l=a.eventArgs;switch(c){case me:case le:var s=l.character,u=document.createTextNode(s),d=u;o.options.onCreateTextNode&&"function"==typeof o.options.onCreateTextNode&&(d=o.options.onCreateTextNode(s,u)),o.state.visibleNodes=n(n([],o.state.visibleNodes,!0),[{type:Ce,character:s,node:d}],!1);break;case se:r.unshift({eventName:de,eventArgs:{removingCharacterNode:!0}});break;case pe:var p=a.eventArgs.ms;o.state.pauseUntil=Date.now()+parseInt(p);break;case ue:var h=o.state.visibleNodes,g=l.speed,m=[];g&&m.push({eventName:he,eventArgs:{speed:g,temp:!0}});for(var f=0,C=h.length;f<C;f++)m.push({eventName:de,eventArgs:{removingCharacterNode:!1}});g&&m.push({eventName:he,eventArgs:{speed:o.options.deleteSpeed,temp:!0}}),r.unshift.apply(r,m);break;case de:if(o.state.visibleNodes.length){var v=o.state.visibleNodes.pop(),x=v.node;s=v.character;o.options.onRemoveNode&&"function"==typeof o.options.onRemoveNode&&o.options.onRemoveNode({node:x,character:s}),x&&x.parentNode.removeChild(x)}break;case he:o.options.deleteSpeed=a.eventArgs.speed;break;case ge:o.options.delay=a.eventArgs.delay}o.options.loop&&(a.eventName===de||a.eventArgs&&a.eventArgs.temp||(o.state.calledEvents=n(n([],o.state.calledEvents,!0),[a],!1))),o.state.eventQueue=r,o.state.lastFrameTime=e}}},e&&(this.options=t(t({},this.options),e)),this.state.initialOptions=t({},this.options),this.init()}return e.prototype.init=function(){this.addEventToQueue(ue,null,!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()},e}();function xe(e){var n=e.inputRef,t=e.wrapperRef,o=e.disabled,i=x(),r=i.t,c=i.locale,l=a((function(){if(o)return[];var e=["booking.searchBar.placeholder.hospital","booking.searchBar.placeholder.doctor"];return"zh-TW"!==c&&e.push("booking.searchBar.placeholder.specialty","booking.searchBar.placeholder.service"),P(e).map((function(e){return r(e)}))}),[r,c]);function u(e){var n=p();return n&&(n.placeholder=n.placeholder+e),null}function d(){var e=p();e&&(e.placeholder=e.placeholder.slice(0,-1))}function p(){return n&&n.current?n.current:t&&t.current&&t.current.querySelector("input")||null}s((function(){if(!o){var e=p();e&&(e.placeholder="",new ve({strings:l,autoStart:!0,loop:!0,delay:32,deleteSpeed:32,pauseFor:1500,onCreateTextNode:u,onRemoveNode:d}))}}),[n,t])}var ye,be=k.div(ye||(ye=e(["\n user-select: none;\n input {\n pointer-events: none;\n background-color: white;\n }\n"],["\n user-select: none;\n input {\n pointer-events: none;\n background-color: white;\n }\n"])));function we(e){var n=e.focused,o=e.value,i=void 0===o?"":o,c=e.onClick,l=e.trackingAttributes,s=e.inputSearchPlaceholder,d=x().t,p=u(null);xe({wrapperRef:p,disabled:!!s});var h=a((function(){return l?{"data-event-category":l.dataEventCategory,"data-event-action":l.dataEventAction,"data-event-label":l.dataEventLabel}:{}}),[l]);return r.createElement(be,t({onClick:function(){return c&&c()},ref:p},h),r.createElement(q,{inputClassName:"location"===n?"focused":void 0,name:"booking-search-placeholder",displayIcon:r.createElement($,{color:M.colors.gray400}),placeholder:d("booking.searchBar.searchInput.placeholder"),value:i,size:"md"}))}var Ee,Le,ke,Se,Me,Ie,Re=k.header(Ee||(Ee=e(["\n display: flex;\n height: 64px;\n align-items: center;\n justify-content: space-between;\n margin: 0 auto;\n position: sticky;\n z-index: 99;\n background-color: white;\n top: 0;\n left: 0;\n"],["\n display: flex;\n height: 64px;\n align-items: center;\n justify-content: space-between;\n margin: 0 auto;\n position: sticky;\n z-index: 99;\n background-color: white;\n top: 0;\n left: 0;\n"]))),Pe=k.div(Le||(Le=e(["\n display: inline-flex;\n flex: 1;\n justify-content: flex-end;\n cursor: pointer;\n text-decoration: underline;\n"],["\n display: inline-flex;\n flex: 1;\n justify-content: flex-end;\n cursor: pointer;\n text-decoration: underline;\n"]))),Fe=k.div(ke||(ke=e(["\n display: flex;\n align-items: center;\n margin-left: 16px;\n cursor: pointer;\n"],["\n display: flex;\n align-items: center;\n margin-left: 16px;\n cursor: pointer;\n"]))),ze=k.div(Se||(Se=e(["\n width: 100%;\n margin-left: 24px;\n"],["\n width: 100%;\n margin-left: 24px;\n"]))),Ae=k(b)(Me||(Me=e(["\n color: ",";\n text-align: start;\n"],["\n color: ",";\n text-align: start;\n"])),M.colors.secondaryDark),Te=function(e){var n=e.className,t=e.onLeftClick,o=e.headingText,i=e.onRightClick,a=e.iconLeft,c=e.textRight;return r.createElement(Re,{className:n},r.createElement(Fe,{onClick:t},a||r.createElement(Y,{color:M.colors.gray800})),r.createElement(ze,null,r.createElement(Ae,{size:"md",type:"bold"},o)),r.createElement(Pe,{onClick:i},c&&r.createElement("p",null,c)))},Ne={"en-PH":3,"tl-PH":2,"id-ID":3,"vi-VN":2,"zh-TW":0},Be={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"};function He(e){var n=e.selectedLocation,o=e.searchLocationKeywords;return n&&o!==n.name?t(t({},e),{searchLocationKeywords:n.name}):e}function Ve(e,n){var o;switch(e.isDebug&&console.log("bookingSearchBar",{action:n,state:e}),n.type){case Ie.NavigateTo:return t(t({},e),{navigateTo:n.payload,focused:"none",isMobileModalOpened:!1});case Ie.ClickOutsideInputLocation:return e.isMobile||"location"!==e.focused?e:He(t(t({},e),{focused:"none"}));case Ie.ClickOutsideInputSearch:return e.isMobile||"search"!==e.focused?e:t(t({},e),{focused:"none"});case Ie.FocusInputLocation:var i=t(t({},e),{focused:"location"});return(null===(o=e.selectedLocation)||void 0===o?void 0:o.id)===p&&(i.searchLocationKeywords=""),i;case Ie.FocusInputSearch:var r=t(t({},e),{focused:"search"});return e.isMobile?He(r):r;case Ie.ChangeInputLocation:return t(t({},e),{searchLocationKeywords:n.payload});case Ie.ChangeInputSearch:var a=n.payload;return t(t({},e),{searchKeywords:a,isLoadingSearchResults:a.trim().length>Ne[e.locale]});case Ie.SelectCurrentLocation:return t(t({},e),{focused:"none",selectedLocation:n.payload,searchLocationKeywords:n.payload.name});case Ie.ClearInputLocation:return t(t({},e),{focused:"location",cities:e.initialCities,searchLocationKeywords:""});case Ie.ClearInputSearch:return t(t({},e),{focused:"search",searchKeywords:""});case Ie.SelectLocation:return t(t({},e),{focused:"none",selectedLocation:n.payload,searchLocationKeywords:n.payload.name});case Ie.SelectSearchResult:return t(t({},e),{searchKeywords:n.payload.name,isMobileModalOpened:!1,focused:"none",navigateTo:n.payload.url});case Ie.FetchCitiesStart:return t(t({},e),{isLoadingCities:!0});case Ie.FetchCitiesFinish:return t(t({},e),{isLoadingCities:!1});case Ie.FetchSearchResultsStart:return t(t({},e),{isLoadingSearchResults:!0});case Ie.FetchSearchResultsFinish:return t(t({},e),{isLoadingSearchResults:!1});case Ie.FetchSearchResultsComplete:var c=t(t({},e),{searchResults:n.payload});return 0===e.initialSearchResults.length&&(c.initialSearchResults=n.payload),c;case Ie.FetchCitiesByGeoIpComplete:var l=n.payload.cities,s=n.payload.default;(l=l.filter((function(e){return e.id!==s.id}))).unshift(s),e.initialSelectedCity&&!l.find((function(n){return n.id===e.initialSelectedCity.id}))&&l.unshift(e.initialSelectedCity);var u=t(t({},e),{defaultCity:s,initialCities:l,cities:l});return"denied"!==e.geoLocationPermission||e.initialSelectedCity||(u.selectedLocation=s,u.searchLocationKeywords=s.name),u;case Ie.FetchCitiesByKeywordComplete:return t(t({},e),{cities:n.payload});case Ie.DisplayInitialCities:return t(t({},e),{cities:e.initialCities});case Ie.DisplayInitialSearchResults:return t(t({},e),{searchResults:e.initialSearchResults,isLoadingSearchResults:!1});case Ie.GrantGeoLocationPermission:return t(t({},e),{geoLocationPermission:"granted",geoLocationCoordinates:n.payload});case Ie.DenyGeoLocationPermission:return t(t({},e),{geoLocationPermission:"denied",geoLocationCoordinates:null});case Ie.OpenMobileModal:return t(t({},e),{isMobileModalOpened:!0});case Ie.CloseMobileModal:return t(t({},e),{isMobileModalOpened:!1});case Ie.UpdateInitialSearchValue:return t(t({},e),{searchKeywords:n.payload});case Ie.SetInputSearchPlaceholder:return t(t({},e),{inputSearchPlaceholder:n.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"}(Ie||(Ie={}));var De,Oe,Ke,Ze,je,_e,Ge,Ue=function(){return r.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},r.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"}))},Qe=k.button(De||(De=e(["\n min-height: 100%;\n border-radius: 6px;\n background-color: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 11px;\n cursor: pointer;\n flex: 0.3;\n\n "," {\n --margin: 16px;\n min-height: 44px;\n margin: var(--margin);\n width: calc(100% - var(--margin) * 2);\n position: absolute;\n bottom: 0;\n }\n\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n\n &:focus-visible {\n outline: 1px solid black;\n }\n"],["\n min-height: 100%;\n border-radius: 6px;\n background-color: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 11px;\n cursor: pointer;\n flex: 0.3;\n\n "," {\n --margin: 16px;\n min-height: 44px;\n margin: var(--margin);\n width: calc(100% - var(--margin) * 2);\n position: absolute;\n bottom: 0;\n }\n\n &:hover {\n background-color: ",";\n }\n\n &:active {\n background-color: ",";\n }\n\n &:focus-visible {\n outline: 1px solid black;\n }\n"])),(function(e){return e.theme.colors.primaryBase}),E.mbDown,(function(e){return e.theme.colors.primaryHover}),(function(e){return e.theme.colors.primaryActive})),qe=k(b)(Oe||(Oe=e(["\n font-weight: ",";\n"],["\n font-weight: ",";\n"])),(function(e){return e.theme.sizes.fwSemiBold})),We=function(e){var n=e.onClick,t=(0,x().t)("booking.searchBar.searchButton");return r.createElement(Qe,{onClick:n,title:t},r.createElement(Ue,null),r.createElement(qe,{size:"s3",color:"white"},t))},Ye=k.div(Ke||(Ke=e(["\n display: flex;\n gap: 16px;\n "," {\n flex-direction: column;\n padding: 14px;\n background-color: ",";\n\n input {\n filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.04))\n drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.06))\n drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));\n }\n }\n\n input {\n background-color: white;\n }\n"],["\n display: flex;\n gap: 16px;\n "," {\n flex-direction: column;\n padding: 14px;\n background-color: ",";\n\n input {\n filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.04))\n drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.06))\n drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04));\n }\n }\n\n input {\n background-color: white;\n }\n"])),E.mbDown,M.colors.blue50),Je=k.div(Ze||(Ze=e(["\n position: relative;\n"],["\n position: relative;\n"]))),Xe=k(Je)(je||(je=e(["\n flex: 1;\n"],["\n flex: 1;\n"]))),$e=k(Je)(_e||(_e=e(["\n flex: 2;\n"],["\n flex: 2;\n"]))),en=k((function(e){var n=e.className,t=e.color;return r.createElement("svg",{className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("rect",{x:"4",y:"4",width:"16",height:"16",rx:"8",fill:"white"}),r.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"}))}))(Ge||(Ge=e(["\n display: none;\n &.shown {\n display: block;\n }\n"],["\n display: none;\n &.shown {\n display: block;\n }\n"])));function nn(e){var n=e.isMobile,t=e.state,o=e.dispatch,i=e.debouncedFetchCitiesByKeyword,c=e.debouncedFetchSearchResults,s=e.focusLocationInput,d=e.focusSearchInput,h=e.renderLocationResults,g=e.renderSearchResults,m=e.locationTrackingAttributes,f=e.trackingAttributes,C=e.onSearch,v=e.initalSearchValue,y=u(null),b=u(null),w=t.focused,E=t.searchLocationKeywords,L=t.geoLocationPermission,k=t.selectedLocation,S=t.searchKeywords,I=t.inputSearchPlaceholder,R=x().t;xe({wrapperRef:b,disabled:!!I}),F(y,(function(){o({type:Ie.ClickOutsideInputLocation})})),F(b,(function(){o({type:Ie.ClickOutsideInputSearch})}));var P=a((function(){return"granted"===L&&(null==k?void 0:k.id)===p?M.colors.primaryBase:M.colors.gray400}),[L,k]),z=l((function(e){o({type:Ie.ChangeInputSearch,payload:e}),"function"!=typeof C&&(e.trim().length>Ne[t.locale]||v?c(e.trim(),t):(c.cancel(),o({type:Ie.DisplayInitialSearchResults})))}),[o,t]),A=l((function(e){o({type:Ie.ChangeInputLocation,payload:e}),e.trim().length>Ne[t.locale]?i(e.trim()):(i.cancel(),o({type:Ie.DisplayInitialCities}))}),[i,o]);return r.createElement(Ye,null,r.createElement(Xe,{ref:y},r.createElement(q,{inputClassName:"location"===w?"focused":void 0,placeholder:R("booking.searchBar.locationPlaceholder"),autoComplete:"off",name:"search-location",displayIcon:r.createElement(J,{className:"location-pin-icon",color:P}),actionIcon:r.createElement(en,{color:M.colors.gray300,className:""!==E?"shown":""}),onActionClick:function(){o({type:Ie.ClearInputLocation}),i.cancel(),s()},value:E,onChange:A,onFocus:function(){return o({type:Ie.FocusInputLocation})},size:"md",trackingAttributes:m}),!n&&h()),r.createElement($e,{ref:b},r.createElement(q,{placeholder:I||R("booking.searchBar.searchInput.placeholder"),autoComplete:"off",name:"search-results",actionIcon:r.createElement(en,{color:M.colors.gray300,className:""!==S?"shown":""}),onActionClick:function(){o({type:Ie.ClearInputSearch}),c.cancel(),c("",t),d()},value:S,onChange:z,onFocus:function(){return o({type:Ie.FocusInputSearch})},inputClassName:"search"===w?"focused":void 0,size:"md",trackingAttributes:f,onKeyPress:function(e){t.autoCompleteDisabled&&"Enter"===e.key&&C&&C({cityId:t.selectedLocation.id,keyword:S})},enterKeyHint:t.autoCompleteDisabled?"search":void 0}),!n&&g()),t.autoCompleteDisabled&&!t.isMobile&&r.createElement(We,{onClick:function(){C({cityId:t.selectedLocation.id,keyword:S})}}))}var tn,on,rn,an,cn,ln,sn,un,dn,pn,hn,gn,mn,fn,Cn=k.li(tn||(tn=e(["\n display: flex;\n align-items: center;\n gap: var(--rowGap);\n cursor: pointer;\n"],["\n display: flex;\n align-items: center;\n gap: var(--rowGap);\n cursor: pointer;\n"]))),vn=k.div(on||(on=e(["\n --wrapper-size: var(--graphicSize);\n border-radius: calc(var(--wrapper-size) / 2);\n background-color: var(--neutral50);\n width: var(--wrapper-size);\n height: var(--wrapper-size);\n aspect-ratio: 1/1;\n overflow: hidden;\n\n ","\n\n img {\n width: var(--graphicSize);\n height: var(--graphicSize);\n ","\n }\n\n &:focus-visible {\n outline: 1px solid ",";\n }\n"],["\n --wrapper-size: var(--graphicSize);\n border-radius: calc(var(--wrapper-size) / 2);\n background-color: var(--neutral50);\n width: var(--wrapper-size);\n height: var(--wrapper-size);\n aspect-ratio: 1/1;\n overflow: hidden;\n\n ","\n\n img {\n width: var(--graphicSize);\n height: var(--graphicSize);\n ","\n }\n\n &:focus-visible {\n outline: 1px solid ",";\n }\n"])),(function(e){var n=e.type;return n&&"doctors"===n&&"\n border-radius: calc(var(--graphicSize) / 2);\n "}),(function(e){var n=e.type;return n&&"doctors"===n?"\n\n object-fit: cover; \n ":"\n object-fit: contain;\n "}),M.colors.gray600),xn=k(b)(rn||(rn=e(["\n line-height: 22px;\n letter-spacing: -0.2px;\n\n "," {\n &[data-size='p3'] {\n font-size: 14px;\n }\n }\n"],["\n line-height: 22px;\n letter-spacing: -0.2px;\n\n "," {\n &[data-size='p3'] {\n font-size: 14px;\n }\n }\n"])),E.tdUp),yn=k.figure(an||(an=e(["\n max-width: var(--graphicSize);\n min-width: var(--graphicSize);\n"],["\n max-width: var(--graphicSize);\n min-width: var(--graphicSize);\n"]))),bn=k.svg(cn||(cn=e(["\n margin: 0 auto;\n display: block;\n"],["\n margin: 0 auto;\n display: block;\n"]))),wn=k.div(ln||(ln=e(["\n display: grid;\n place-items: center;\n"],["\n display: grid;\n place-items: center;\n"]))),En={doctors:function(e){var n=e.width,t=e.height;return r.createElement("svg",{width:n||32,height:t||32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{clipPath:"url(#clip0_14712_400114)"},r.createElement("rect",{width:"32",height:"32",rx:"16",fill:"#E4E8EC"}),r.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"})),r.createElement("defs",null,r.createElement("clipPath",{id:"clip0_14712_400114"},r.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"}))))},services:function(e){var n=e.width,t=e.height;return r.createElement("svg",{width:n||30,height:t||30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.createElement("circle",{cx:"15",cy:"15",r:"15",fill:"#F7F9FC"}),r.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"}))}},Ln=function(e){var n=e.type,t=e.item,o=e.imageUrl,i=e.onClickItem,c=a((function(){var e=En[n]||ee;return r.createElement(e,{width:32,height:"services"===n?32:24})}),[n]);return r.createElement(Cn,{onClick:function(){return i&&i(t)},onKeyDown:function(e){"Enter"!==e.key&&"Space"!==e.key||i&&i(t)},tabIndex:0,role:"button"},r.createElement(yn,null,"hospitals"===n?r.createElement(bn,{width:"12",height:"16",viewBox:"0 0 12 16"},r.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"})):r.createElement(vn,{type:n},o?r.createElement("img",{src:o,width:32,height:"services"===n?32:24}):c)),r.createElement(xn,{color:M.colors.gray800,size:"p3"},t.name))},kn=function(){return r.createElement("svg",{width:"14",height:"18",viewBox:"0 0 14 18"},r.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"}))},Sn=function(){return r.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},r.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"}))},Mn=function(){return r.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17"},r.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"}))},In=function(){return r.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16"},r.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"}))},Rn=k.header(sn||(sn=e(["\n display: flex;\n justify-content: space-between;\n padding: 12px 24px;\n background-color: ",";\n box-shadow: inset 0px 1px 0px #e4e8ec;\n"],["\n display: flex;\n justify-content: space-between;\n padding: 12px 24px;\n background-color: ",";\n box-shadow: inset 0px 1px 0px #e4e8ec;\n"])),M.colors.neutral50),Pn=k.div(un||(un=e(["\n display: grid;\n flex: 2;\n align-items: center;\n gap: 16px;\n grid-template-columns: 16px 1fr;\n"],["\n display: grid;\n flex: 2;\n align-items: center;\n gap: 16px;\n grid-template-columns: 16px 1fr;\n"]))),Fn=k.p(dn||(dn=e(["\n color: ",";\n font-size: 14px;\n font-weight: ",";\n letter-spacing: -0.2px;\n line-height: 22px;\n"],["\n color: ",";\n font-size: 14px;\n font-weight: ",";\n letter-spacing: -0.2px;\n line-height: 22px;\n"])),M.colors.neutral800,M.sizes.fwSemiBold),zn=k.button(pn||(pn=e(["\n flex: 1;\n cursor: pointer;\n text-align: end;\n"],["\n flex: 1;\n cursor: pointer;\n text-align: end;\n"]))),An=k.section(hn||(hn=e(["\n padding: 12px 16px;\n --rowGap: 16px;\n --graphicSize: 32px;\n\n "," {\n --rowGap: 8px;\n }\n"],["\n padding: 12px 16px;\n --rowGap: 16px;\n --graphicSize: 32px;\n\n "," {\n --rowGap: 8px;\n }\n"])),E.tdUp),Tn=k.ul(gn||(gn=e(["\n --gap: 16px;\n "," {\n --gap: 8px;\n }\n\n display: grid;\n overflow: hidden;\n gap: var(--gap);\n transition: max-height 0.8s ease-out;\n\n ","\n\n ","\n\n@media (prefers-reduced-motion) {\n transition: none;\n }\n\n "," {\n grid-template-columns: 1fr 1fr;\n } ;\n"],["\n --gap: 16px;\n "," {\n --gap: 8px;\n }\n\n display: grid;\n overflow: hidden;\n gap: var(--gap);\n transition: max-height 0.8s ease-out;\n\n ","\n\n ","\n\n@media (prefers-reduced-motion) {\n transition: none;\n }\n\n "," {\n grid-template-columns: 1fr 1fr;\n } ;\n"])),E.tdUp,(function(e){return e.isMore&&"\n height: auto;\n max-height: 0;\n margin-top: var(--gap);\n "}),(function(e){return e.isShown&&"\n max-height: 600px;\n "}),E.tdUp),Nn=k(b)(mn||(mn=e(["\n margin-top: 12px;\n margin-bottom: 8px;\n cursor: pointer;\n text-align: start;\n text-transform: capitalize;\n"],["\n margin-top: 12px;\n margin-bottom: 8px;\n cursor: pointer;\n text-align: start;\n text-transform: capitalize;\n"]))),Bn=function(e){var n=e.type,t=e.data,o=e.state,i=e.dispatch,l=e.itemsToShow,s=e.itemsToShowDesktop,u=e.isMobile,d=e.isLoading,p=e.keyword,g=c(!1),m=g[0],f=g[1],C=x(),v=C.t,y=C.locale,w=o.selectedLocation,E=o.searchKeywords,L=a((function(){return h[y]}),[y]),k=a((function(){return{doctors:{name:v("booking.searchPopup.doctors"),icon:r.createElement(kn,null),slug:L.DOCTOR},services:{name:v("booking.searchPopup.services"),icon:r.createElement(Sn,null),slug:L.SERVICE},hospitals:{name:v("booking.searchPopup.hospitals"),icon:r.createElement(Mn,null),slug:L.HOSPITAL},specialties:{name:v("booking.searchPopup.specialties"),icon:r.createElement(In,null),slug:L.SPECIALTIES}}}),[n,L]),S=a((function(){return k[n].slug}),[k]),R=u?l:s;function P(e){var t="";switch(n){case"specialties":t="/".concat(w.slug,"/").concat(k.doctors.slug,"/").concat(e.slug);break;case"services":t="/".concat(w.slug,"/").concat(S,"/").concat(e.slug);break;case"doctors":case"hospitals":t="/".concat(S,"/").concat(e.slug,"-").concat(e.id)}t&&i({type:Ie.SelectSearchResult,payload:{name:e.name,url:t}})}function F(e){return r.createElement(Ln,{key:e.id,item:e,type:n,imageUrl:e.logo||e.avatar||e.thumbnail,onClickItem:P})}return r.createElement("section",null,r.createElement(Rn,null,r.createElement(Pn,null,k[n].icon,r.createElement(Fn,null,k[n].name)),p.trim().length<=Ne[y]&&r.createElement(zn,{onClick:function(){var e="";switch(n){case"specialties":e="/".concat(S);break;case"services":case"doctors":case"hospitals":e="/".concat(w.slug,"/").concat(S)}e&&i({type:Ie.NavigateTo,payload:e})}},r.createElement(b,{size:"p3",color:M.colors.primaryBase},v("booking.searchPopup.seeAll")))),(d||t&&t.length>0)&&r.createElement(An,null,r.createElement(Tn,null,d&&Array(2).fill(void 0).map((function(e,t){return r.createElement(Cn,{key:n+"loading"+t},r.createElement(yn,null,r.createElement(wn,null,r.createElement(I,{height:14,width:"hospitals"===n?12:32,style:{maxWidth:"var(--graphicSize)",minHeight:"var(--graphicSize)"}}))),r.createElement(I,{width:120,height:24}))})),!d&&t&&t.length>0&&t.slice(0,R).map(F)),r.createElement(Tn,{isShown:m,isMore:!0},t.slice(R,-1).map(F)),"specialties"===n&&R<t.length&&!d&&r.createElement("button",{onClick:function(){return f(!m)}},r.createElement(Nn,{size:"p3",color:M.colors.primaryBase},v(m?"booking.searchPopup.seeLessSpecialties":"booking.searchPopup.seeMoreSpecialties"))),"specialties"!==n&&R<t.length&&!d&&p.trim().length>Ne[y]&&r.createElement("button",{onClick:function(){var e=k[n].slug,t="/".concat(w.slug,"/").concat(e,"?q=").concat(E);i({type:Ie.NavigateTo,payload:t})}},r.createElement(Nn,{size:"p3",color:M.colors.primaryBase},v("booking.searchPopup.searchIn.".concat(n),{name:p})))),!d&&0===(null==t?void 0:t.length)&&r.createElement(An,null,r.createElement(b,{size:"sm",color:M.colors.gray400},v("booking.searchBar.noResults"))))},Hn=k.section(fn||(fn=e(["\n background-color: white;\n border-radius: 4px;\n position: absolute;\n width: 100%;\n z-index: 30;\n\n "," {\n box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),\n 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n }\n"],["\n background-color: white;\n border-radius: 4px;\n position: absolute;\n width: 100%;\n z-index: 30;\n\n "," {\n box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04),\n 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n }\n"])),E.tdUp),Vn=function(e){var n=e.data,t=e.state,o=e.dispatch,i=e.isMobile,a=e.isLoading,c=e.keyword;return r.createElement(Hn,null,n&&n.map((function(e){return r.createElement(Bn,{type:e.type,state:t,dispatch:o,itemsToShow:2,itemsToShowDesktop:4,key:e.type,data:e.results,isMobile:i,isLoading:a,keyword:c})})))},Dn="api/lists/cities?keyword={keyword}&country_id={countryId}&site={domain}&_nopaging={noPaging}",On="api/v2/search/?site={domain}&type={searchType}&keyword={keyword}&city_id={city}&latitude={lat}&longitude={lng}",Kn="api/geobyip?site={domain}&latitude={lat}&longitude={lng}",Zn=function(e,n,o){return L(e,t(t({},n),{domain:m[o||"en-PH"]}))};var jn,_n=function(e){var n=e.isMobile,m=e.careApiDomain,b=e.geoLocationPermission,w=e.geoLocationCoordinates,E=e.initialSelectedCity,L=e.initialSearchValue,k=void 0===L?"":L,S=e.careFrontDomain,M=void 0===S?"/care":S,I=e.isDebug,R=void 0!==I&&I,P=e.askForGeolocationPermission,F=void 0!==P&&P,z=e.gaTrackingSearchBar,A=e.gaTrackingLocationSearch,T=e.autoCompleteDisabled,N=void 0!==T&&T,B=e.inputSearchPlaceholder,H=void 0===B?"":B,V=e.routerPush,D=e.onGeoLocationPermissionChange,O=e.onSearch,K=e.onChangeLocation,Z=x(),j=Z.t,q=Z.locale,Y=u(null),J=u(null),X=c(void 0),$=X[0],ee=X[1],ne=function(){var e=c((function(){if("undefined"==typeof window)return"unset";if(f(g))return"granted";var e=!location.protocol.includes("https")&&"localhost"!==location.hostname;return!navigator.geolocation||e?"denied":"unset"})),n=e[0],t=e[1],o=c((function(){if("undefined"==typeof window)return null;var e=f(g);if(e)try{return JSON.parse(e)}catch(e){console.log(e)}return null})),i=o[0],r=o[1],s=l((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(e){var n={lat:"".concat(Math.round(1e7*e.coords.latitude)/1e7),lng:"".concat(Math.round(1e7*e.coords.longitude)/1e7)};C(g,JSON.stringify(n),0,15),r(n),t("granted")}),(function(){v(g),t("denied")}))}),[]);return a((function(){return{geoLocationPermission:n,geoLocationCoordinates:i,requestGeoLocation:s}}),[n,i])}(),te=ne.geoLocationPermission,oe=ne.geoLocationCoordinates,ie=ne.requestGeoLocation,re=d(Ve,Be,(function(e){return t(t({},e),{isDebug:R,isMobile:n,geoLocationPermission:b||te||"unset",geoLocationCoordinates:w||oe||null,searchKeywords:k,initialSelectedCity:E||null,selectedLocation:E||e.selectedLocation||null,searchLocationKeywords:(null==E?void 0:E.name)||e.searchLocationKeywords,autoCompleteDisabled:N,inputSearchPlaceholder:H,locale:q})})),ae=re[0],le=re[1],se=ae.navigateTo,ue=ae.focused,de=ae.isLoadingCities,pe=ae.cities,he=ae.searchKeywords,ge=ae.geoLocationPermission,me=ae.selectedLocation,fe=ae.initialSelectedCity,Ce=ae.defaultCity,ve=ae.searchResults,xe=ae.isLoadingSearchResults,ye=ae.isMobileModalOpened,be=ae.inputSearchPlaceholder,Ee=function(e){var n=e.dispatch,o=e.careApiDomain,i=e.locale,r=void 0===i?"vi-VN":i,a=l((function(e,t){void 0===t&&(t={});var i="".concat(o).concat(e);return n({type:Ie.FetchCitiesStart}),fetch(Zn(i,t,r),{method:"GET"}).then((function(e){return e.json()})).then((function(e){return 1===e._status&&e._data?null==e?void 0:e._data:(console.log("error loading cities",e),Promise.reject(e))})).finally((function(){return n({type:Ie.FetchCitiesFinish})}))}),[r]),c=l((function(e){var o=e.coordinates,i={};o&&(i={lat:o.lat,lng:o.lng});var c=[a(Kn,i)];return"zh-TW"===r&&c.push(a(Dn,{noPaging:1})),Promise.all(c).then((function(e){var o=e[0],i=e[1],r=t({},o);if(i){var a=r.cities.map((function(e){return e.id}));r.cities=r.cities.concat(i.cities.filter((function(e){return!a.includes(e.id)})))}n({type:Ie.FetchCitiesByGeoIpComplete,payload:r})})).catch((function(e){return console.error("error loading cities by location",e)}))}),[r,o,n]);return{fetchCitiesByLocation:c,fetchCitiesByKeyword:l((function(e){return a(Dn,{keyword:e}).then((function(e){n({type:Ie.FetchCitiesByKeywordComplete,payload:e.cities})})).catch((function(e){return console.error("error loading cities by keyword",e)}))}),[r,o,n]),fetchSearchResults:l((function(e,t){var i="".concat(o).concat(On);n({type:Ie.FetchSearchResultsStart});var a=t.defaultCity,c=t.selectedLocation,l=t.geoLocationCoordinates,s="";if(c&&a){c.id===p?l||(s=a.id):s=c.id;var u=(null==l?void 0:l.lat)||"",d=(null==l?void 0:l.lng)||"";return fetch(Zn(i,{domain:o,searchType:"global",keyword:e.trim().length>Ne[r]?e.trim():"",city:s===p?"":s,lat:u,lng:d},r),{method:"GET",headers:{accept:"version=2.0.0.0"}}).then((function(e){return e.json()})).then((function(e){return 1===e._status&&e._data?null==e?void 0:e._data:Promise.reject(e)})).then((function(e){return n({type:Ie.FetchSearchResultsComplete,payload:e})})).catch((function(e){console.log("error loading search results",{url:i,error:e})})).finally((function(){return n({type:Ie.FetchSearchResultsFinish})}))}n({type:Ie.FetchSearchResultsFinish})}),[r,o,n])}}({dispatch:le,locale:q,careApiDomain:m}),Le=Ee.fetchCitiesByLocation,ke=Ee.fetchCitiesByKeyword,Se=Ee.fetchSearchResults,Me=a((function(){var e;return{id:p,name:j("booking.searchBar.currentLocation"),slug:null===(e=h[q])||void 0===e?void 0:e.CURRENT}}),[j,q]),Re=a((function(){return y(ke,400)}),[ke]),Pe=a((function(){return y(Se,400)}),[Se]);s((function(){""!==k&&k!==ae.searchKeywords&&le({type:Ie.UpdateInitialSearchValue,payload:k})}),[k]),s((function(){F&&(null==me?void 0:me.id)===p&&"unset"===ge&&ie()}),[F,me,ge]),s((function(){b||ge===te||("granted"===te&&oe?le({type:Ie.GrantGeoLocationPermission,payload:oe}):"denied"===te&&le({type:Ie.DenyGeoLocationPermission}))}),[ge,te,oe,b]),s((function(){se&&(V?V(se):window.location.href="".concat(M).concat(se))}),[se]);var Fe=l((function(){le({type:Ie.SelectCurrentLocation,payload:Me})}),[j,le]);s((function(){"denied"===ge||fe||Fe(),D&&D(ge,ae.geoLocationCoordinates),n&&"granted"===ge&&me&&le({type:Ie.FocusInputSearch}),Le({coordinates:ae.geoLocationCoordinates})}),[ge]),s((function(){me&&Ce&&Se(ae.searchKeywords,ae)}),[me,Ce]),s((function(){H!==be&&le({type:Ie.SetInputSearchPlaceholder,payload:H})}),[H,be]),s((function(){ye?document.body.classList.add("care-popup-open"):document.body.classList.remove("care-popup-open")}),[ye]);var ze=l((function(e){le({type:Ie.SelectLocation,payload:e}),De(),K&&K(e)}),[j,le]);function Ae(){n&&"granted"!==ae.geoLocationPermission?ie():(Fe(),De())}function He(){var e;Y.current&&(null===(e=Y.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus())}function De(){var e;Y.current&&(null===(e=Y.current.querySelector('input[name="search-results"]'))||void 0===e||e.focus())}function Oe(){le({type:Ie.CloseMobileModal})}function Ke(){return"location"!==ue?null:r.createElement(ce,{isLoading:de,cities:pe,onLocationClick:ze,onCurrentLocationClick:Ae,isLocationLoading:de,geoLocationPermission:ge,selectedLocation:me})}function Ze(){return"search"!==ue?null:ae.autoCompleteDisabled?n?r.createElement(We,{onClick:function(){O({cityId:ae.selectedLocation.id,keyword:he}),Oe()}}):null:r.createElement(Vn,{data:ve,state:ae,dispatch:le,isMobile:!1,keyword:he,isLoading:xe})}function je(){return r.createElement(nn,{isMobile:n,state:ae,dispatch:le,debouncedFetchCitiesByKeyword:Re,debouncedFetchSearchResults:Pe,focusLocationInput:He,focusSearchInput:De,renderLocationResults:Ke,renderSearchResults:Ze,trackingAttributes:z,locationTrackingAttributes:A,onSearch:O,initalSearchValue:k})}return s((function(){if(window.visualViewport){var e=function(e){var n=e.target;ee(null==n?void 0:n.height)};return window.visualViewport.addEventListener("resize",e),function(){window.visualViewport.removeEventListener("resize",e)}}}),[ee]),n?r.createElement(r.Fragment,null,r.createElement(W,null),r.createElement(Q,{ref:J}),r.createElement(G,{id:"booking-search-bar",ref:Y,"data-is-modal":n&&ye,style:{"--mobile-care-searchbar-height":ye&&$?"".concat($,"px"):"100%"}},ye?r.createElement(r.Fragment,null,r.createElement(U,null,r.createElement(Te,{headingText:j("booking.searchBar.searchButton"),onLeftClick:Oe}),je()),Ke(),Ze()):r.createElement(we,{onClick:function(){var e;return o(this,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return J.current&&J.current.focus(),le({type:Ie.OpenMobileModal}),[4,Promise.resolve()];case 1:return n.sent(),Y.current&&(null===(e=Y.current.querySelector('input[name="search-location"]'))||void 0===e||e.focus()),[2]}}))}))},focused:ue,value:he,trackingAttributes:z,inputSearchPlaceholder:H}))):r.createElement(_,{id:"booking-search-bar",ref:Y},je())};!function(e){e[e.SPECIALTY=1]="SPECIALTY",e[e.DOCTOR=2]="DOCTOR",e[e.CLINIC=3]="CLINIC",e[e.SERVICE=4]="SERVICE"}(jn||(jn={}));var Gn=Object.freeze({__proto__:null,get RedirectType(){return jn}});export{_n as B,Gn as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var t=require("./tslib.es6-f7929e76.js"),a=require("react"),e=require("./index.styled-
|
|
1
|
+
"use strict";var t=require("./tslib.es6-f7929e76.js"),a=require("react"),e=require("./index.styled-567ba2ef.js");function d(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=d(a);exports.Button=function(a){var d=a.size,r=a.color,o=void 0===r?"primary":r,l=a.theme,i=void 0===l?"helloSites":l,c=a.isDisabled,s=a.isBlock,u=a.title,g=a.className,h=a.onClick,m=a.icon,v=a.children,C=a.isLoading,f=a.loadingText,p=a.dataEventCategory,y=a.dataEventAction,E=a.dataEventLabel,k=a.dataProductChannel,w=a.dataProductSku,b=a.dataProductBrand,P=a.dataProductName,x=a.dataProductPrice,B=a.dataProductCategory,L=a.dataProductPosition,A=a.isAmp,N=a.on,S=a.dataVarsTracking,_=a.type,F=t.__rest(a,["size","color","theme","isDisabled","isBlock","title","className","onClick","icon","children","isLoading","loadingText","dataEventCategory","dataEventAction","dataEventLabel","dataProductChannel","dataProductSku","dataProductBrand","dataProductName","dataProductPrice","dataProductCategory","dataProductPosition","isAmp","on","dataVarsTracking","type"]),z=A?{"data-vars-event-category":p,"data-vars-event-action":y,"data-vars-event-label":E,"data-vars-product-channel":k,"data-vars-product-sku":w,"data-vars-product-brand":b,"data-vars-product-name":P,"data-vars-product-price":x,"data-vars-product-category":B,"data-vars-product-position":L,"data-vars-tracking":S,on:N}:{"data-event-category":p,"data-event-action":y,"data-event-label":E,"data-product-channel":k,"data-product-sku":w,"data-product-brand":b,"data-product-name":P,"data-product-price":x,"data-product-category":B,"data-product-position":L};return n.default.createElement(e.StyledButton,t.__assign({},z,{className:g,"data-size":d,"data-color":o,"data-block":s,"data-has-icon":!!m||void 0,"data-theme":i,disabled:c,onClick:function(t){!C&&!c&&h&&h(t)},title:u,"data-is-loading":C||void 0,buttonHasIcon:!!m,buttonTheme:i,buttonSize:d,buttonColor:o,buttonIsLoading:C,buttonIsBlock:s,type:_},F),C?n.default.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:24}},("secondary"===o||"transparent"===o||"tertiary"===o||"ghost"===o||"danger"===o)&&n.default.createElement(n.default.Fragment,null,n.default.createElement("svg",{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},n.default.createElement("circle",{cx:"12",cy:"12",r:"10",stroke:"#DBDFE5",strokeWidth:"4"})),n.default.createElement(e.StyledLoader,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},n.default.createElement("mask",{id:"a",fill:"#fff"},n.default.createElement("path",{d:"M12 0A12 12 0 11.19 9.88l3.9.7A8.03 8.03 0 1012 3.98V0z"})),n.default.createElement("path",{d:"M12 0A12 12 0 11.19 9.88l3.9.7A8.03 8.03 0 1012 3.98V0z",stroke:"#2D87F3",strokeWidth:"8",mask:"url(#a)"}))),"primary"===o&&n.default.createElement(n.default.Fragment,null,n.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.default.createElement("circle",{cx:"12",cy:"12",r:"10",stroke:"white",strokeWidth:"4"})),n.default.createElement(e.StyledLoader,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},n.default.createElement("mask",{id:"path-1-inside-1",fill:"white"},n.default.createElement("path",{d:"M12 0C14.464 2.93833e-08 16.8683 0.758527 18.8863 2.17253C20.9042 3.58653 22.438 5.58746 23.2791 7.90347C24.1203 10.2195 24.2281 12.7383 23.5879 15.1177C22.9477 17.4971 21.5906 19.6218 19.7009 21.2031C17.8111 22.7843 15.4804 23.7456 13.0254 23.9561C10.5704 24.1667 8.11007 23.6164 5.97869 22.38C3.8473 21.1436 2.14819 19.281 1.1122 17.0454C0.0761991 14.8097 -0.246461 12.3093 0.188053 9.8839L4.09856 10.5845C3.8079 12.2069 4.02374 13.8795 4.71676 15.375C5.40977 16.8705 6.54637 18.1165 7.97213 18.9435C9.39789 19.7706 11.0437 20.1387 12.6859 19.9979C14.3282 19.857 15.8873 19.214 17.1514 18.1563C18.4155 17.0985 19.3233 15.6772 19.7516 14.0856C20.1798 12.4939 20.1077 10.8089 19.545 9.25969C18.9823 7.71042 17.9563 6.37193 16.6065 5.42605C15.2566 4.48017 13.6483 3.97277 12 3.97277L12 0Z"})),n.default.createElement("path",{d:"M12 0C14.464 2.93833e-08 16.8683 0.758527 18.8863 2.17253C20.9042 3.58653 22.438 5.58746 23.2791 7.90347C24.1203 10.2195 24.2281 12.7383 23.5879 15.1177C22.9477 17.4971 21.5906 19.6218 19.7009 21.2031C17.8111 22.7843 15.4804 23.7456 13.0254 23.9561C10.5704 24.1667 8.11007 23.6164 5.97869 22.38C3.8473 21.1436 2.14819 19.281 1.1122 17.0454C0.0761991 14.8097 -0.246461 12.3093 0.188053 9.8839L4.09856 10.5845C3.8079 12.2069 4.02374 13.8795 4.71676 15.375C5.40977 16.8705 6.54637 18.1165 7.97213 18.9435C9.39789 19.7706 11.0437 20.1387 12.6859 19.9979C14.3282 19.857 15.8873 19.214 17.1514 18.1563C18.4155 17.0985 19.3233 15.6772 19.7516 14.0856C20.1798 12.4939 20.1077 10.8089 19.545 9.25969C18.9823 7.71042 17.9563 6.37193 16.6065 5.42605C15.2566 4.48017 13.6483 3.97277 12 3.97277L12 0Z",stroke:"#91CAFF",strokeWidth:"8",mask:"url(#path-1-inside-1)"}))),n.default.createElement("span",null,f)):n.default.createElement("span",null,!C&&n.default.createElement("span",{className:"button-icon"},m)," ",v))},exports.Heading=function(a){var d,r=a.as,o=a.tag,l=a.className,i=a.children,c=a.title,s=a.color,u=a.style,g=a.fontWeight,h=a.dataEventCategory,m=a.dataEventAction,v=a.dataEventLabel,C=r||o;return n.default.createElement(e.StyledHeading,{title:c,style:t.__assign(t.__assign({},s?(d={},d["--custom-heading-color"]=s,d):void 0),u),"data-tag":o,"data-font-weight":g||void 0,"data-event-category":h,"data-event-action":m,"data-event-label":v,as:C,className:l,headingFontWeight:g,headingTag:o},i)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var n=require("./tslib.es6-f7929e76.js"),e=require("styled-components"),t=require("react"),i=require("./togetherComponentGlobalContext-9e4b5e1c.js"),a=require("./index-169b5d28.js"),o=require("./index.styled-567ba2ef.js"),l=require("date-fns"),r=require("date-fns/locale/en-US"),d=require("date-fns/locale/hi"),s=require("date-fns/locale/id"),u=require("date-fns/locale/ms"),p=require("date-fns/locale/th"),c=require("date-fns/locale/vi"),m=require("date-fns/locale/zh-TW"),g=require("./useTranslations-589049a5.js"),f=require("./screenSizeContext-dbfd67e6.js"),h=require("./constants-5675963f.js"),x=require("./theme-696d81a9.js"),v=require("react-id-generator");function b(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var A,w,y,k,C,E,B,_,D,Q,L=b(e),M=b(t),I=b(r),N=b(d),T=b(s),j=b(u),z=b(p),P=b(c),G=b(m),S=L.default.div(A||(A=n.__makeTemplateObject(["\n --dropdown-padding: 12px 18px 12px 16px;\n position: relative;\n box-sizing: border-box;\n border: 1px solid ",";\n background: url(\"data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A\")\n no-repeat;\n background-position: right 16px center;\n border-radius: 6px;\n\n &[data-disabled='true'],\n :disabled {\n background-color: #f2f2f2;\n cursor: not-allowed;\n }\n\n &[data-size='sm'] {\n font-size: 13px;\n line-height: 20px;\n }\n &[data-size='md'] {\n font-size: 14px;\n line-height: 21px;\n }\n &[data-size='lg'] {\n font-size: 16px;\n line-height: 24px;\n }\n\n &[data-has-icons='true'] {\n border: none;\n background: ",";\n\n img,\n svg {\n display: inline-block;\n max-width: 16px;\n margin-right: 6px;\n }\n\n span {\n display: inline-block;\n vertical-align: middle;\n }\n\n &:hover {\n box-shadow: none;\n }\n > div {\n position: relative;\n display: flex;\n width: 100%;\n box-sizing: border-box;\n align-items: center;\n }\n > div::after {\n position: absolute;\n top: 50%;\n right: 12px;\n width: 10px;\n height: 8px;\n background-image: url(\"data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A\");\n background-repeat: no-repeat;\n content: '';\n transform: translateY(-50%);\n }\n }\n\n &:hover {\n box-shadow: 0 0 2px 2px ",";\n }\n\n &[data-is-native='true'] {\n padding: var(--dropdown-padding);\n line-height: 24px;\n\n &:focus {\n box-shadow: 0px 0px 2px 2px\n ",";\n }\n }\n"],["\n --dropdown-padding: 12px 18px 12px 16px;\n position: relative;\n box-sizing: border-box;\n border: 1px solid ",";\n background: url(\"data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A\")\n no-repeat;\n background-position: right 16px center;\n border-radius: 6px;\n\n &[data-disabled='true'],\n :disabled {\n background-color: #f2f2f2;\n cursor: not-allowed;\n }\n\n &[data-size='sm'] {\n font-size: 13px;\n line-height: 20px;\n }\n &[data-size='md'] {\n font-size: 14px;\n line-height: 21px;\n }\n &[data-size='lg'] {\n font-size: 16px;\n line-height: 24px;\n }\n\n &[data-has-icons='true'] {\n border: none;\n background: ",";\n\n img,\n svg {\n display: inline-block;\n max-width: 16px;\n margin-right: 6px;\n }\n\n span {\n display: inline-block;\n vertical-align: middle;\n }\n\n &:hover {\n box-shadow: none;\n }\n > div {\n position: relative;\n display: flex;\n width: 100%;\n box-sizing: border-box;\n align-items: center;\n }\n > div::after {\n position: absolute;\n top: 50%;\n right: 12px;\n width: 10px;\n height: 8px;\n background-image: url(\"data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A\");\n background-repeat: no-repeat;\n content: '';\n transform: translateY(-50%);\n }\n }\n\n &:hover {\n box-shadow: 0 0 2px 2px ",";\n }\n\n &[data-is-native='true'] {\n padding: var(--dropdown-padding);\n line-height: 24px;\n\n &:focus {\n box-shadow: 0px 0px 2px 2px\n ",";\n }\n }\n"])),(function(n){return n.theme.colors.gray200}),(function(n){return n.theme.colors.gray100}),(function(n){return n.theme.colors.blue200}),(function(n){return n.theme.colors.blue200})),O=L.default.div(w||(w=n.__makeTemplateObject(["\n padding: var(--dropdown-padding);\n cursor: pointer;\n\n &.with-label {\n padding-top: 34px;\n padding-bottom: 12px;\n }\n &[data-dropdown-open] {\n padding: 11px 15px 11px 15px;\n border: 1px solid ",";\n border-radius: 6px;\n box-shadow: 0 0 2px 2px ",";\n }\n"],["\n padding: var(--dropdown-padding);\n cursor: pointer;\n\n &.with-label {\n padding-top: 34px;\n padding-bottom: 12px;\n }\n &[data-dropdown-open] {\n padding: 11px 15px 11px 15px;\n border: 1px solid ",";\n border-radius: 6px;\n box-shadow: 0 0 2px 2px ",";\n }\n"])),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.blue200})),F=L.default.ul(y||(y=n.__makeTemplateObject(["\n position: absolute;\n top: 100%;\n right: 0;\n left: 0;\n display: block;\n margin-top: 4px;\n background: ",";\n border-radius: 6px;\n box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),\n -2px 2px 5px rgba(67, 86, 100, 0.123689);\n cursor: pointer;\n\n &[data-has-icons='true'] {\n border: 1px solid ",";\n background: white;\n box-shadow: none;\n filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04));\n }\n"],["\n position: absolute;\n top: 100%;\n right: 0;\n left: 0;\n display: block;\n margin-top: 4px;\n background: ",";\n border-radius: 6px;\n box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),\n -2px 2px 5px rgba(67, 86, 100, 0.123689);\n cursor: pointer;\n\n &[data-has-icons='true'] {\n border: 1px solid ",";\n background: white;\n box-shadow: none;\n filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04));\n }\n"])),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray200})),H=L.default.li(k||(k=n.__makeTemplateObject(["\n display: flex;\n padding: 12px 18px 12px 16px;\n &[data-disabled='true'] {\n cursor: not-allowed;\n color: #bfbfbf;\n & > * {\n pointer-events: none;\n }\n }\n &:hover,\n :active {\n background: ",";\n }\n"],["\n display: flex;\n padding: 12px 18px 12px 16px;\n &[data-disabled='true'] {\n cursor: not-allowed;\n color: #bfbfbf;\n & > * {\n pointer-events: none;\n }\n }\n &:hover,\n :active {\n background: ",";\n }\n"])),(function(n){return n.theme.colors.gray100})),U=L.default.div(C||(C=n.__makeTemplateObject(["\n max-width: 16px;\n margin-right: 8px;\n"],["\n max-width: 16px;\n margin-right: 8px;\n"]))),Z=L.default.div(E||(E=n.__makeTemplateObject(["\n position: absolute;\n top: 12px;\n left: 16px;\n pointer-events: none;\n"],["\n position: absolute;\n top: 12px;\n left: 16px;\n pointer-events: none;\n"]))),Y=function(n){return n?{displayName:n.display_name||null,avatar:n.avatar||null,thumbnailAvatar:n.avatar_thumbnail||null,profileUrl:n.profile_url||null,description:n.description||null,metaTag:n.meta_tag||""}:{}},K=function(n){return n?{id:n.ID||null,name:n.name||null,specialty:n.specialty||null,avatar:n.avatar||null,permalink:n.permalink||null,thumbnailAvatar:n.avatar_thumbnail||null}:{}},q=function(e){var t,i,a,o;return e?{id:e.ID,postName:e.post_name,sponsor:e.sponsor?X(e.sponsor):null,isSponsored:e.is_sponsored||null,postTitle:e.post_title||"",postModified:e.post_modified||"",postDate:e.post_date||"",modifiedTime:e.modified_time||"",permalink:e.permalink||"",featureImage:e.image||null,featureImageMobile:e.image_medium||null,featureImageMobileXs:e.image_thumbnail||null,author:Y(e.author),reviewer:e.reviewed_by&&Y(e.reviewed_by)||null,articleReviewed:(null==e?void 0:e.reviewed)?n.__assign(n.__assign({},null==e?void 0:e.reviewed),{author:W(null===(t=null==e?void 0:e.reviewed)||void 0===t?void 0:t.author),editor:W(null===(i=null==e?void 0:e.reviewed)||void 0===i?void 0:i.editor),expert:W(null===(a=null==e?void 0:e.reviewed)||void 0===a?void 0:a.expert),fact_check:W(null===(o=null==e?void 0:e.reviewed)||void 0===o?void 0:o.fact_check)}):null,category:J(e.category),postContent:e.post_content||null,sections:e.sections||null,categories:(e.categories||[]).map(J),sources:e.sources||null,description:e.description||null,excerpt:e.excerpt||null,expert:K(e.expert),metaTag:e.meta_tag||null}:{}},W=function(e){return void 0!==e&&e?n.__assign(n.__assign({},e),{profile_url:(null==e?void 0:e.slug)?["expert","medical"].includes((null==e?void 0:e.role)||"")?"/expert/".concat(null==e?void 0:e.slug):"/author/".concat(null==e?void 0:e.slug):e.profile_url}):null},X=function(n){return n?{title:n.title,logo:n.logo,link:n.link}:{}},R=function(n){return{postTitle:n.post_title,permalink:n.permalink}},J=function(n){var e,t;return n?{termId:n.term_id||null,sponsor:n.sponsor?X(n.sponsor):null,isSponsored:n.is_sponsored||null,categoryName:n.cat_name||null,name:n.name||null,iconUrl:n.icon||"",slugName:n.category_nicename||null,description:n.description||null,featureImage:n.image||null,displayName:n.name||null,parent:n.parent||null,permalink:n.permalink||null,slug:n.slug||null,childCates:(null===(e=n.child_cates)||void 0===e?void 0:e.map((function(n){return J(n)})))||[],colorFeatureImage:n.color_feature_image||null,imageColor:n.image_color||null,textColor:n.text_color||null,catParent:(null===(t=n.cat_parent)||void 0===t?void 0:t.name)?{name:n.cat_parent.name,permalink:n.cat_parent.permalink}:{},metaTag:n.meta_tag||"",reviewedBy:n.reviewed_by?R(n.reviewed_by):null,reviewedDate:n.reviewed_date||"",faqs:n.faqs?n.faqs.map((function(n){return V(n)})):null}:{}},V=function(n){return{title:n.title,content:n.content}},$=function(n){return n?{icon:n.icon,link:n.link.startsWith("http")?n.link:"/health-tools"+n.link,subtitle:n.subtitle,title:n.title}:{}},nn=function(n){return n?{topicCount:n.topics_count,postCount:n.posts_count,memberCount:n.members_count,thumbnail:n.thumbnail,coverImage:n.cover_image,mobileCoverImage:n.mobile_cover_image,name:n.name,description:n.description,slug:n.slug,id:n.id,joined:n.joined,isActive:null===n.is_active||void 0===n.is_active||Boolean(n.is_active),mappedCategoryId:n.mapped_category_id||0,discoverCategory:n.discover_category?{categoryId:n.discover_category.category_id||0,name:n.discover_category.name||""}:null,isHidden:Boolean(n.is_hidden)}:{}},en=function(n){var e,t,i,a;return n?{id:n.id||0,name:n.name||"",image:n.thumbnail||"",slug:n.slug||"",url:"/"+(null===(e=n.community)||void 0===e?void 0:e.slug)+"/"+(null==n?void 0:n.slug)||"",description:n.description||"",joined:n.joined||!1,postCount:n.count_posts||0,memberCount:n.count_members||0,communityId:String(null===(t=n.community)||void 0===t?void 0:t.id),communitySlug:null===(i=n.community)||void 0===i?void 0:i.slug,communityName:null===(a=n.community)||void 0===a?void 0:a.name,order:n.order||0,isActive:null===n.is_active||void 0===n.is_active||Boolean(n.is_active),mappedCategoryId:n.mapped_category_id||0,discoverCategory:n.discover_category?{categoryId:n.discover_category.category_id||0,name:n.discover_category.name||""}:null,isHidden:Boolean(n.is_hidden)}:{}},tn=function(n){var e,t,i,a,o,l,r,d,s,u,p,c,m,g,f,h,x,v,b,A,w;return n?{id:n.id,topics:(null===(e=n.topics)||void 0===e?void 0:e.map((function(e){var t,i,a,o;return{id:e.id||0,name:e.name||"",slug:e.slug||"",url:"/"+(null===(t=n.community)||void 0===t?void 0:t.slug)+"/"+e.slug,communityId:String(null===(i=n.community)||void 0===i?void 0:i.id),communitySlug:(null===(a=n.community)||void 0===a?void 0:a.slug)||"",communityName:(null===(o=n.community)||void 0===o?void 0:o.name)||"",isHidden:Boolean(e.is_hidden),isActive:!0}})))||[],community:{id:(null===(t=n.community)||void 0===t?void 0:t.id)||0,name:(null===(i=n.community)||void 0===i?void 0:i.name)||"",slug:(null===(a=n.community)||void 0===a?void 0:a.slug)||"",isActive:!0,isHidden:Boolean(null===(o=n.community)||void 0===o?void 0:o.is_hidden)},slug:n.slug||"",author:{id:(null===(l=n.user)||void 0===l?void 0:l.id)||0,username:(null===(r=n.user)||void 0===r?void 0:r.user_name)||"",email:(null===(d=n.user)||void 0===d?void 0:d.email)||"",name:(null===(s=n.user)||void 0===s?void 0:s.name)||"",avatar:(null===(u=n.user)||void 0===u?void 0:u.avatar)||"",role:(null===(p=n.user)||void 0===p?void 0:p.role)?null===(m=null===(c=n.user)||void 0===c?void 0:c.role)||void 0===m?void 0:m.toLowerCase():"",type:(null===(g=n.user)||void 0===g?void 0:g.type)||"",partnerId:(null===(f=n.user)||void 0===f?void 0:f.partner_id)?String(null===(h=n.user)||void 0===h?void 0:h.partner_id):"",title:(null===(x=n.user)||void 0===x?void 0:x.title)||"",doctorId:(null===(v=n.user)||void 0===v?void 0:v.doctor_id)?String(null===(b=n.user)||void 0===b?void 0:b.doctor_id):"",hospitalId:(null===(A=n.user)||void 0===A?void 0:A.hospital_id)?String(null===(w=n.user)||void 0===w?void 0:w.hospital_id):""},previewUrl:{title:n.preview_title||"",url:n.preview_link||"",image:n.preview_image||"",description:n.preview_description||""},createdAt:n.created_at||"",scheduleDateTime:n.schedule_datetime||"",photos:n.images||[],description:n.description||"",commentsCount:n.comments_count||0,likesCount:n.likes_count||0,title:n.name||"",isPin:!!n.is_pin,pinDate:n.pin_date||"",liked:n.liked||!1,bookmarked:Boolean(n.bookmarked)||!1,mentions:n.mentions||[],commented:Boolean(n.commented)||!1,introUrl:n.intro_url||"",bannerImage:n.banner_image||""}:{}},an=function(n){var e,t,i,a,o,l,r,d,s,u,p,c,m,g,f,h,x,v,b,A,w,y,k,C,E,B,_,D,Q,L,M,I;return n?{content:n.content,countLikes:n.likes_count,countReplies:n.replies_count,createdAt:n.created_at,createdTime:n.created_time,id:String(n.id),images:n.image||[],link:n.link||null,replies:n.replies&&n.replies.length>0?n.replies.map(an):[],author:{id:(null===(e=n.user)||void 0===e?void 0:e.id)||0,username:(null===(t=n.user)||void 0===t?void 0:t.user_name)||"",name:(null===(i=n.user)||void 0===i?void 0:i.name)||"",role:(null===(a=n.user)||void 0===a?void 0:a.role)?null===(l=null===(o=n.user)||void 0===o?void 0:o.role)||void 0===l?void 0:l.toLowerCase():"",avatar:(null===(r=n.user)||void 0===r?void 0:r.avatar)||"",type:(null===(d=n.user)||void 0===d?void 0:d.type)||"",email:(null===(s=n.user)||void 0===s?void 0:s.email)||"",partnerId:(null===(u=n.user)||void 0===u?void 0:u.partner_id)?String(null===(p=n.user)||void 0===p?void 0:p.partner_id):"",title:(null===(c=n.user)||void 0===c?void 0:c.title)||"",doctorId:(null===(m=n.user)||void 0===m?void 0:m.doctor_id)?String(null===(g=n.user)||void 0===g?void 0:g.doctor_id):"",hospitalId:(null===(f=n.user)||void 0===f?void 0:f.hospital_id)?String(null===(h=n.user)||void 0===h?void 0:h.hospital_id):""},liked:!!n.liked,mentionedUser:n.mentioned?{id:(null===(x=n.mentioned)||void 0===x?void 0:x.id)||0,username:(null===(v=n.mentioned)||void 0===v?void 0:v.user_name)||"",name:(null===(b=n.mentioned)||void 0===b?void 0:b.name)||"",role:(null===(A=n.mentioned)||void 0===A?void 0:A.role)?null===(y=null===(w=n.mentioned)||void 0===w?void 0:w.role)||void 0===y?void 0:y.toLowerCase():"",avatar:(null===(k=n.mentioned)||void 0===k?void 0:k.avatar)||"",type:(null===(C=n.mentioned)||void 0===C?void 0:C.type)||"",email:(null===(E=n.mentioned)||void 0===E?void 0:E.email)||"",partnerId:(null===(B=n.mentioned)||void 0===B?void 0:B.partner_id)?String(null===(_=n.mentioned)||void 0===_?void 0:_.partner_id):"",doctorId:(null===(D=n.mentioned)||void 0===D?void 0:D.doctor_id)?String(null===(Q=n.mentioned)||void 0===Q?void 0:Q.doctor_id):"",hospitalId:(null===(L=n.mentioned)||void 0===L?void 0:L.hospital_id)?String(null===(M=n.mentioned)||void 0===M?void 0:M.hospital_id):"",title:(null===(I=n.mentioned)||void 0===I?void 0:I.title)||""}:null,mentions:n.mentions||[]}:{}},on=Object.freeze({__proto__:null,formatAuthor:Y,formatArticleExpert:K,formatArticle:q,formatUserProfile:W,formatBMIResult:function(n){var e,t,i,a,o,l,r,d,s;return n&&n.status?{status:null==n?void 0:n.status,comparison:null!==(e=null==n?void 0:n.comparison)&&void 0!==e?e:"",assessmentData:[{tab:"tools.condition",content:null!==(t=null==n?void 0:n.condition)&&void 0!==t?t:""},{tab:"tools.risks",content:null!==(i=null==n?void 0:n.risk)&&void 0!==i?i:""},{tab:"tools.suggestion",content:null!==(a=null==n?void 0:n.suggestion)&&void 0!==a?a:""}],chartData:(null===(o=null==n?void 0:n.chart_data)||void 0===o?void 0:o.length)>0?null==n?void 0:n.chart_data:[],disclaimer:null!==(l=null==n?void 0:n.disclaimer)&&void 0!==l?l:"",illustrator:null!==(r=null==n?void 0:n.illustrator)&&void 0!==r?r:"",faqs:null!==(d=null==n?void 0:n.faqs)&&void 0!==d?d:[],suggestedArticlesLink:null!==(s=null==n?void 0:n.suggested_articles_link)&&void 0!==s?s:""}:{}},formatSponsor:X,formatReviewedCategory:R,formatCategory:J,formatCategoryApi:function(n){return n?{categoryInfo:J(n.data.category)||null,explainersPosts:(n.data.explainers_posts||[]).map(q),subCategories:(n.data.sub_categories||[]).map(J)}:{}},formatFaqsCategory:V,formatHealthTool:$,formatHealthToolTypeCategory:function(n){var e,t;return n?{termId:(null==n?void 0:n.term_id)||0,name:(null==n?void 0:n.name)||"",healthTools:null!==(t=null===(e=null==n?void 0:n.health_tools)||void 0===e?void 0:e.map((function(n){return $(n)})))&&void 0!==t?t:[]}:{}},formatCommunity:nn,formatTopic:en,formatPost:tn,formatPostPagination:function(n){return n?{currentPage:n.current||0,lastPage:n.last||0,total:n.total_items||0}:{}},formatNotification:function(n){var e,t,i;return n?{time:n.created_at,content:n.content,postId:String(n.post_id),fromUser:{name:null===(e=n.from_user)||void 0===e?void 0:e.name,id:null===(t=n.from_user)||void 0===t?void 0:t.id,avatar:null===(i=n.from_user)||void 0===i?void 0:i.avatar},toUserId:String(n.to_user_id),postSlug:n.post_slug||"",communitySlug:n.community_slug||""}:{}},formatSpotlightsList:function(n){return n?n.map((function(n){return{id:n.ID,name:n.name,permalink:n.permalink,image:(null==n?void 0:n.small_banner)||(null==n?void 0:n.image),imageMedium:(null==n?void 0:n.image_medium)||null,imageThumbnail:(null==n?void 0:n.image_thumbnail)||null,startDate:null==n?void 0:n.start_date,endDate:null==n?void 0:n.end_date}})):[]},formatOvulationInfo:function(n){return n?{disclaimer:n.disclaimer,info:n.info||[],reviewedBy:n.reviewed_by?{id:n.reviewed_by.ID,permalink:n.reviewed_by.permalink,name:n.reviewed_by.name,postTitle:n.reviewed_by.post_title}:null,reviewedDate:n.reviewed_date}:{}},formatSuggestedArticle:function(n){return n?{postId:n.post_id||null,categoryId:n.category_id||null,postUrl:n.post_url||null,postReviewed:n.post_reviewed||null,postPageviews:n.post_pageviews||null,postRank:n.post_rank||null,isPin:n.is_pin||null,frequency:n.frequency||null,topic:n.topic||null}:{}},formatTopicHealthTool:function(n){return n?{id:n.tool_id||null,topicFrequency:n.frequency||null,topicId:n.topic_id||null,topicName:n.topic_name||null,isPinned:!!n.is_pin||null,toolLink:n.tool_link||""}:{}},formatComment:an,formatReportedPostToPostDetail:function(n){return n?{name:n.title,description:n.description,images:n.images,likes_count:n.count_likes,comments_count:n.count_comments,topics:[],slug:n.post_slug,id:n.post_id,is_pin:n.is_pin,pin_date:"",post_type:n.post_type,schedule_datetime:n.schedule_datetime,is_active:n.is_active,preview_title:n.preview_title||"",preview_image:n.preview_image||"",preview_description:n.preview_description||"",preview_link:n.preview_link||"",user:n.user,created_at:"",created_time:"",community:{id:n.community_id,name:n.community_name,slug:n.community_slug,description:""}}:{}},formatTopicSubot:function(n){return n?{chatBotId:n.subot_id,isPinned:n.is_pin,topicId:n.topic_id,topicFrequency:n.frequency}:{}},formatSiteWideBanner:function(n,e){return void 0!==n&&n?{content:(null==n?void 0:n.content)||"",icon:(null==n?void 0:n.icon)||"",type:e||"other"}:null},formatPWGContent:function(n){return n?{disclaimer:n.disclaimer,info:n.info||[],reviewedBy:n.reviewed_by?W(n.reviewed_by):null,reviewedDate:n.reviewed_date,metaTag:n.meta_tag}:{}},formatUserProfileUrl:function(n){return void 0!==n&&n?(null==n?void 0:n.turn_off_profile)?"":(null==n?void 0:n.slug)?["expert","medical"].includes((null==n?void 0:n.role)||"")?"/expert/".concat(null==n?void 0:n.slug):"/author/".concat(null==n?void 0:n.slug):(null==n?void 0:n.profile_url)||(null==n?void 0:n.permalink)||"#":""},formatTHRContent:function(n){return n?{disclaimer:n.disclaimer,info:n.info||[],reviewedBy:n.reviewed_by?W(n.reviewed_by):null,reviewedDate:n.reviewed_date,metaTag:n.meta_tag}:{}}}),ln=L.default.div(B||(B=n.__makeTemplateObject(["\n width: 40px;\n height: 40px;\n flex-shrink: 0;\n cursor: pointer;\n font-size: 20px;\n\n img {\n border-radius: 50%;\n }\n\n .avatar {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n\n .avatar-default {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ",";\n border-radius: 50%;\n color: white;\n font-size: 1em;\n font-weight: bold;\n line-height: 1;\n }\n\n &[data-is-marrybaby='true'] {\n .avatar-default {\n background-color: ",";\n }\n }\n"],["\n width: 40px;\n height: 40px;\n flex-shrink: 0;\n cursor: pointer;\n font-size: 20px;\n\n img {\n border-radius: 50%;\n }\n\n .avatar {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n\n .avatar-default {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ",";\n border-radius: 50%;\n color: white;\n font-size: 1em;\n font-weight: bold;\n line-height: 1;\n }\n\n &[data-is-marrybaby='true'] {\n .avatar-default {\n background-color: ",";\n }\n }\n"])),(function(n){return n.theme.colors.secondaryBase}),(function(n){return n.theme.mbColors.pink})),rn=function(n){var e=n.className,a=n.isMarryBaby,o=n.style,l=n.avatar,r=n.username,d=n.isLazy,s=t.useContext(i.TogetherComponentGlobalContext).data.env.isMarryBaby,u="boolean"==typeof a?a:s,p=t.useState(!1),c=p[0],m=p[1];return t.useEffect((function(){var n=new Image;n.onerror=function(){m(!0)},n.src=l}),[]),M.default.createElement(ln,{"data-is-marrybaby":u,className:e,style:o},l&&!c?M.default.createElement("img",{loading:"lazy",src:d?void 0:l,"data-src":d?l:void 0,className:"avatar ".concat(d?"lazy":""),alt:"avatar",onError:function(){m(!0)}}):M.default.createElement("div",{className:"avatar avatar-default"},r&&(null==r?void 0:r.length)>0?r[0].toUpperCase():"A"))},dn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABAAAAAQACAMAAABIw9uxAAAAilBMVEUAAAC/v7+/v7+6urq/v7+/v7+8vLy/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7/AwMC/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7/AwMC/v7/AwMDAwMC/v7+/v7+/v7/AwMC/v7+/v7/AwMC/v7+/v7+/v7+/v7+/v7+LyT2qAAAALXRSTlMA/RME8fkIIw13VeE02tQ7GUKpmumiZV27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t5M6FARgdOgRKiREeiAYQ3J+q43Kfv/X805ABcvtnrXeoTf9ZmaT12vj+4e8lm1c6872H9Ri18V1fjn+A/WYLuIarf4PNZn8ifFurf9CZR5itN8FqMw6RnopQHXWIwOg/X+o0TpGWAkAUKchvuf1H6jVPL7zrwCVmmzjsr8mgKFek+e4qC9AvXZtXLAtQM2Wt3FWowBA5X7GWQ8FqNx9nLGyAwzVu2nja0MBqvcUX1pJgJDB1hIQ5LVr4rOZKyCQwxCf3RcghUlrCBDyWsdHjTMAkMW0NQUMef13BwDy2s3ixMwQACSyiBN3BcjjNU7MC5DHdOYtAMjrOY4tC5DISQf44R8gpPIUR9oCZHITR7oCpPIYB4sCpNJZBYS8FnGwL0AqW3NAkNfcPVDIa3ANBPLq48A9QEhmE++aAiTTmAOCvDoVEPLaiwCQ1yACQF69CAB5bUQASKwRASCvTgSAvPYiAOQ1iACQVy8CQF4bEQASa0QAyKsTASCvvQgAeQ0iAOTViwCQ11t7dlACAAgFUAxsIPwIghf75zPI22psJACELQkAXVsCQNeTANB1JQB0HQkAXSMBIGxJAOjaEgC6ngSArisBoOtIAOiaD+58ZjwSBuPYAAAAAElFTkSuQmCC",sn="data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M18 6L6 18' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M6 6L18 18' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",un="data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9 16.9998C13.4183 16.9998 17 13.418 17 8.99976C17 4.58148 13.4183 0.999756 9 0.999756C4.58172 0.999756 1 4.58148 1 8.99976C1 13.418 4.58172 16.9998 9 16.9998Z' fill='white' stroke='%23E4E8EC' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M10.3333 7.66679V5.00012H7.66667V7.66679H5V10.3335H7.66667V13.0001H10.3333V10.3335H13V7.66679H10.3333Z' fill='%23FF5331'/%3e%3c/svg%3e",pn=L.default.div(_||(_=n.__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 1em;\n button {\n position: relative;\n }\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 1em;\n button {\n position: relative;\n }\n"]))),cn=e.keyframes(D||(D=n.__makeTemplateObject(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"],["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"])));L.default.div(Q||(Q=n.__makeTemplateObject(["\n display: flex;\n width: fit-content;\n width: -moz-fit-content;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 1rem 2rem;\n background: white;\n border-radius: 6px;\n box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),\n -2px 2px 5px rgba(67, 86, 100, 0.123689);\n .loading-spinner {\n width: 24px;\n height: 24px;\n margin-bottom: 0.5rem;\n animation: "," 1.2s linear infinite;\n }\n &[data-is-marrybaby='true'] {\n box-shadow: none;\n }\n"],["\n display: flex;\n width: fit-content;\n width: -moz-fit-content;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 1rem 2rem;\n background: white;\n border-radius: 6px;\n box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),\n -2px 2px 5px rgba(67, 86, 100, 0.123689);\n .loading-spinner {\n width: 24px;\n height: 24px;\n margin-bottom: 0.5rem;\n animation: "," 1.2s linear infinite;\n }\n &[data-is-marrybaby='true'] {\n box-shadow: none;\n }\n"])),cn);var mn=function(n){var e=n.className,t=n.size,i=void 0===t?"md":t,o=g.useTranslations().t;return M.default.createElement(pn,{className:e},M.default.createElement(a.Button,{size:i,color:"transparent",isLoading:!0},o("loading")))},gn=L.default.div(vn||(vn=n.__makeTemplateObject(["\n position: fixed;\n left: 50%;\n width: 343px;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 0px 4px ",";\n transform: translate(-50%, -50%);\n transition: all 0.5s ease-in-out;\n\n "," {\n width: 750px;\n }\n\n &[data-animation='true'] {\n transition: all 0.5s ease-in-out;\n }\n\n &[data-open='true'] {\n z-index: 200;\n top: 50%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n top: -50%;\n }\n\n .popup-content {\n "," {\n display: block;\n }\n display: flex;\n position: relative;\n z-index: 111;\n height: 100%;\n .button-see-more {\n margin: 32px 0;\n padding: 0;\n > * {\n display: inline-block;\n }\n }\n .close-button {\n position: absolute;\n z-index: 100;\n top: 10px;\n right: 10px;\n cursor: pointer;\n width: unset;\n height: unset;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n }\n\n .main-info {\n padding-bottom: 32px;\n background-color: ",";\n border-radius: 6px;\n .btn-booking {\n display: flex;\n margin: 12px auto;\n }\n .avatar-title {\n position: relative;\n width: 100%;\n padding-top: 46px;\n text-align: center;\n }\n }\n"],["\n position: fixed;\n left: 50%;\n width: 343px;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 0px 4px ",";\n transform: translate(-50%, -50%);\n transition: all 0.5s ease-in-out;\n\n "," {\n width: 750px;\n }\n\n &[data-animation='true'] {\n transition: all 0.5s ease-in-out;\n }\n\n &[data-open='true'] {\n z-index: 200;\n top: 50%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n top: -50%;\n }\n\n .popup-content {\n "," {\n display: block;\n }\n display: flex;\n position: relative;\n z-index: 111;\n height: 100%;\n .button-see-more {\n margin: 32px 0;\n padding: 0;\n > * {\n display: inline-block;\n }\n }\n .close-button {\n position: absolute;\n z-index: 100;\n top: 10px;\n right: 10px;\n cursor: pointer;\n width: unset;\n height: unset;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n }\n\n .main-info {\n padding-bottom: 32px;\n background-color: ",";\n border-radius: 6px;\n .btn-booking {\n display: flex;\n margin: 12px auto;\n }\n .avatar-title {\n position: relative;\n width: 100%;\n padding-top: 46px;\n text-align: center;\n }\n }\n"])),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray200}),f.MediaQueries.tdUp,f.MediaQueries.mbDown,(function(n){return n.theme.colors.blue50})),fn=L.default.div(bn||(bn=n.__makeTemplateObject(["\n position: fixed;\n z-index: 110;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n background: rgba(38, 38, 38, 0.3);\n\n &[data-open='false'] {\n display: none;\n }\n"],["\n position: fixed;\n z-index: 110;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n background: rgba(38, 38, 38, 0.3);\n\n &[data-open='false'] {\n display: none;\n }\n"]))),hn=L.default.div(An||(An=n.__makeTemplateObject(["\n .image-container {\n .badge-avatar {\n position: absolute;\n right: 0;\n bottom: 0;\n top: 0;\n }\n }\n display: flex;\n justify-content: center;\n padding-bottom: 15px;\n text-align: center;\n .profile-image {\n width: 100px;\n min-width: 100px;\n height: 100px;\n min-height: 100px;\n border-radius: 50%;\n object-fit: cover;\n }\n .badge-avatar {\n width: 24px;\n height: 24px;\n }\n"],["\n .image-container {\n .badge-avatar {\n position: absolute;\n right: 0;\n bottom: 0;\n top: 0;\n }\n }\n display: flex;\n justify-content: center;\n padding-bottom: 15px;\n text-align: center;\n .profile-image {\n width: 100px;\n min-width: 100px;\n height: 100px;\n min-height: 100px;\n border-radius: 50%;\n object-fit: cover;\n }\n .badge-avatar {\n width: 24px;\n height: 24px;\n }\n"]))),xn=L.default.div(wn||(wn=n.__makeTemplateObject(["\n position: relative;\n z-index: 9;\n .specialty {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n }\n\n padding: 0px 16px;\n text-align: center;\n .specialty {\n justify-content: center;\n }\n\n .experience {\n padding: 16px 0px 32px;\n text-align: left;\n .btn-wrapper {\n margin-top: 24px;\n }\n }\n p {\n max-width: 100%;\n -webkit-line-clamp: 4;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n"],["\n position: relative;\n z-index: 9;\n .specialty {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n }\n\n padding: 0px 16px;\n text-align: center;\n .specialty {\n justify-content: center;\n }\n\n .experience {\n padding: 16px 0px 32px;\n text-align: left;\n .btn-wrapper {\n margin-top: 24px;\n }\n }\n p {\n max-width: 100%;\n -webkit-line-clamp: 4;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n"])));L.default.span(yn||(yn=n.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin: 0 0.4em;\n color: ",";\n"],["\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin: 0 0.4em;\n color: ",";\n"])),(function(n){return n.theme.colors.neutral300})),L.default.div(kn||(kn=n.__makeTemplateObject(["\n display: inline-block;\n width: 3px;\n height: 3px;\n margin: 0;\n background-color: ",";\n border-radius: 50%;\n"],["\n display: inline-block;\n width: 3px;\n height: 3px;\n margin: 0;\n background-color: ",";\n border-radius: 50%;\n"])),(function(n){return n.theme.colors.gray400})),L.default.div(Cn||(Cn=n.__makeTemplateObject(["\n display: flex;\n margin-top: 8px;\n\n .bullet-point {\n width: 24px;\n height: 24px;\n }\n"],["\n display: flex;\n margin-top: 8px;\n\n .bullet-point {\n width: 24px;\n height: 24px;\n }\n"])));var vn,bn,An,wn,yn,kn,Cn,En,Bn=L.default.ul(En||(En=n.__makeTemplateObject(["\n padding-left: 18px;\n li {\n list-style-type: disc;\n }\n"],["\n padding-left: 18px;\n li {\n list-style-type: disc;\n }\n"]))),_n=function(n){var e,l,r,d,s=n.isOpen,u=void 0===s||s,p=n.onClose,c=n.enableAnimation,m=void 0===c||c,f=n.doctorId,h=n.locale,b=n.isMobile,A=g.useTranslations().t,w=t.useState(null),y=w[0],k=w[1],C=t.useState(!1),E=C[0],B=C[1];t.useEffect((function(){if(u&&f&&String(null==y?void 0:y.id)!==String(f)){B(!0);try{k(null),i.callApi(i.getCarePath(i.CARE_PATHS.GET_DOCTOR_INFO,{doctorId:f,website_url:i.domainLocales[h]}),"get").then((function(n){k(null==n?void 0:n._data.doctor)}))}catch(n){console.error(n)}B(!1)}}),[u,f,null==y?void 0:y.id]);var _=(null==y?void 0:y.experiences)||[],D=((null==y?void 0:y.specialties)||[]).map((function(n){return(null==n?void 0:n.name)||n})).join(" • "),Q=_.map((function(n){try{return JSON.parse(n.description)}catch(e){return n.description}})).filter((function(n){return n.content})),L=v.useId(null===(e=null==y?void 0:y.experiences)||void 0===e?void 0:e.length);return M.default.createElement(M.default.Fragment,null,M.default.createElement(gn,{"data-open":u,"data-animation":m,onClick:function(n){return n.stopPropagation()}},E||!y?M.default.createElement(mn,null):M.default.createElement("div",{className:"popup-content"},M.default.createElement("div",{className:"close-button",onClick:p},M.default.createElement("img",{src:sn,style:{width:20,height:20},alt:"close-icon"})),M.default.createElement("div",{className:"main-info"},M.default.createElement("div",{className:"border-banner"}),M.default.createElement("div",{className:"avatar-title"},M.default.createElement(hn,null,M.default.createElement("div",{className:"image-container"},M.default.createElement("div",{style:{position:"relative"}},M.default.createElement("img",{src:(null==y?void 0:y.avatar)?null==y?void 0:y.avatar:dn,className:"profile-image",alt:"avatar"}),M.default.createElement("img",{className:"badge-avatar",src:un,alt:"badge"})))),M.default.createElement(xn,null,M.default.createElement(o.Text,{size:"s3",type:"semiBold",className:"full-name"},null==y?void 0:y.name),M.default.createElement("div",{className:"specialty"},D&&M.default.createElement(M.default.Fragment,null,M.default.createElement(o.Text,{size:"p4",color:x.theme.colors.gray800},D," • ")),M.default.createElement("a",{href:i.getCareHospitalUrl({id:null===(l=null==y?void 0:y.organization)||void 0===l?void 0:l.id,name:null===(r=null==y?void 0:y.organization)||void 0===r?void 0:r.name,slug:null===(d=null==y?void 0:y.organization)||void 0===d?void 0:d.slug,locale:h}),className:"organisation",target:"_blank",rel:"noreferrer"},M.default.createElement(o.Text,{size:"p4",className:"organisation",color:x.theme.colors.gray800,style:{textDecoration:"underline"}},null==y?void 0:y.organization.name))))),!b&&M.default.createElement("div",{className:"btn-wrapper"},M.default.createElement("a",{href:i.getCareDoctorUrl({name:y.name,id:y.id,locale:h})},M.default.createElement(a.Button,{color:"primary",size:"md",className:"btn-booking"},A("careBooking.bookAnAppointment"))))),Q&&M.default.createElement(xn,null,M.default.createElement("div",{className:"experience"},M.default.createElement(o.Text,{type:"bold",size:"s3",color:x.theme.colors.gray800,style:{paddingBottom:16}},A("expert.content.description").toUpperCase()),M.default.createElement(Bn,null,Q.map((function(n,e){return M.default.createElement("li",{key:L[e]},M.default.createElement(o.Text,{size:"p2"},function(n){return(null==n?void 0:n.year)?"".concat(n.year," ").concat(null==n?void 0:n.content):(null==n?void 0:n.content)?n.content:"string"==typeof n?n:""}(n)))}))),b?M.default.createElement("div",{className:"btn-wrapper"},M.default.createElement("a",{href:i.getCareDoctorUrl({name:y.name,id:y.id,locale:h})},M.default.createElement(a.Button,{color:"primary",size:"md",className:"btn-booking"},A("careBooking.bookAnAppointment")))):M.default.createElement("a",{href:i.getCareDoctorUrl({name:y.name,id:y.id,locale:h})},M.default.createElement(o.Text,{size:"s4",color:"#2D87F3",style:{paddingTop:24}},A("home.seeExpert"))))))),M.default.createElement(fn,{"data-open":u,onClick:function(n){n.stopPropagation(),p()}}))},Dn=L.default.div(In||(In=n.__makeTemplateObject(["\n position: fixed;\n left: 50%;\n width: 343px;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 0px 4px ",";\n transform: translate(-50%, -50%);\n transition: all 0.5s ease-in-out;\n\n "," {\n width: 750px;\n }\n\n &[data-animation='true'] {\n transition: all 0.5s ease-in-out;\n }\n\n &[data-open='true'] {\n z-index: 200;\n top: 50%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n top: -50%;\n }\n\n .popup-content {\n "," {\n display: block;\n }\n display: flex;\n position: relative;\n z-index: 111;\n height: 100%;\n .button-see-more {\n margin: 32px 0;\n padding: 0;\n > * {\n display: inline-block;\n }\n }\n .close-button {\n position: absolute;\n z-index: 100;\n top: 10px;\n right: 10px;\n cursor: pointer;\n width: unset;\n height: unset;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n }\n\n .main-info {\n padding-bottom: 32px;\n background-color: ",";\n border-radius: 6px;\n\n .avatar-title {\n position: relative;\n width: 100%;\n padding-top: 46px;\n text-align: center;\n }\n }\n"],["\n position: fixed;\n left: 50%;\n width: 343px;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 0px 4px ",";\n transform: translate(-50%, -50%);\n transition: all 0.5s ease-in-out;\n\n "," {\n width: 750px;\n }\n\n &[data-animation='true'] {\n transition: all 0.5s ease-in-out;\n }\n\n &[data-open='true'] {\n z-index: 200;\n top: 50%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n top: -50%;\n }\n\n .popup-content {\n "," {\n display: block;\n }\n display: flex;\n position: relative;\n z-index: 111;\n height: 100%;\n .button-see-more {\n margin: 32px 0;\n padding: 0;\n > * {\n display: inline-block;\n }\n }\n .close-button {\n position: absolute;\n z-index: 100;\n top: 10px;\n right: 10px;\n cursor: pointer;\n width: unset;\n height: unset;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n }\n\n .main-info {\n padding-bottom: 32px;\n background-color: ",";\n border-radius: 6px;\n\n .avatar-title {\n position: relative;\n width: 100%;\n padding-top: 46px;\n text-align: center;\n }\n }\n"])),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray200}),f.MediaQueries.tdUp,f.MediaQueries.mbDown,(function(n){return n.theme.colors.blue50})),Qn=L.default.div(Nn||(Nn=n.__makeTemplateObject(["\n position: fixed;\n z-index: 110;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n background: rgba(38, 38, 38, 0.3);\n\n &[data-open='false'] {\n display: none;\n }\n"],["\n position: fixed;\n z-index: 110;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n background: rgba(38, 38, 38, 0.3);\n\n &[data-open='false'] {\n display: none;\n }\n"]))),Ln=L.default.div(Tn||(Tn=n.__makeTemplateObject(["\n .image-container {\n .badge-avatar {\n position: absolute;\n right: 0;\n bottom: 0;\n top: 0;\n }\n }\n display: flex;\n justify-content: center;\n padding-bottom: 15px;\n text-align: center;\n .profile-image {\n width: 100px;\n min-width: 100px;\n height: 100px;\n min-height: 100px;\n border-radius: 50%;\n object-fit: cover;\n }\n .badge-avatar {\n width: 24px;\n height: 24px;\n }\n"],["\n .image-container {\n .badge-avatar {\n position: absolute;\n right: 0;\n bottom: 0;\n top: 0;\n }\n }\n display: flex;\n justify-content: center;\n padding-bottom: 15px;\n text-align: center;\n .profile-image {\n width: 100px;\n min-width: 100px;\n height: 100px;\n min-height: 100px;\n border-radius: 50%;\n object-fit: cover;\n }\n .badge-avatar {\n width: 24px;\n height: 24px;\n }\n"]))),Mn=L.default.div(jn||(jn=n.__makeTemplateObject(["\n position: relative;\n z-index: 9;\n .specialty {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n }\n\n padding: 0px 16px;\n text-align: center;\n .specialty {\n justify-content: center;\n }\n\n .experience {\n padding: 16px 0px 32px;\n text-align: left;\n .btn-wrapper {\n margin-top: 24px;\n }\n }\n p {\n max-width: 100%;\n -webkit-line-clamp: 4;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n"],["\n position: relative;\n z-index: 9;\n .specialty {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n }\n\n padding: 0px 16px;\n text-align: center;\n .specialty {\n justify-content: center;\n }\n\n .experience {\n padding: 16px 0px 32px;\n text-align: left;\n .btn-wrapper {\n margin-top: 24px;\n }\n }\n p {\n max-width: 100%;\n -webkit-line-clamp: 4;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n"])));L.default.span(zn||(zn=n.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin: 0 0.4em;\n color: ",";\n"],["\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin: 0 0.4em;\n color: ",";\n"])),(function(n){return n.theme.colors.neutral300})),L.default.div(Pn||(Pn=n.__makeTemplateObject(["\n display: inline-block;\n width: 3px;\n height: 3px;\n margin: 0;\n background-color: ",";\n border-radius: 50%;\n"],["\n display: inline-block;\n width: 3px;\n height: 3px;\n margin: 0;\n background-color: ",";\n border-radius: 50%;\n"])),(function(n){return n.theme.colors.gray400}));var In,Nn,Tn,jn,zn,Pn,Gn,Sn,On,Fn,Hn,Un,Zn,Yn,Kn=L.default.div(Gn||(Gn=n.__makeTemplateObject(["\n display: flex;\n margin-top: 8px;\n\n .bullet-point {\n width: 24px;\n height: 24px;\n }\n"],["\n display: flex;\n margin-top: 8px;\n\n .bullet-point {\n width: 24px;\n height: 24px;\n }\n"]))),qn={author:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z' fill='%2345A4FF'/%3e%3cpath d='M23.9998 11.9995C23.9998 11.4024 23.9561 10.8154 23.8719 10.2417L18.7952 5.16504L5.04102 18.9585L9.89867 23.8162C10.5809 23.9366 11.283 23.9995 11.9998 23.9995C18.6272 23.9995 23.9998 18.6269 23.9998 11.9995Z' fill='%232D87F3'/%3e%3cpath d='M9.01377 17.824L5.04102 18.9591L6.17609 14.9863L8.54445 15.4556L9.01377 17.824Z' fill='white'/%3e%3cpath d='M8.54399 15.4561L5.04102 18.9591L9.01321 17.824L8.54399 15.4561Z' fill='%23F7F9FC'/%3e%3cpath d='M6.46714 18.5518L5.4485 17.5332L5.04102 18.9593L6.46714 18.5518Z' fill='%23E4E8EC'/%3e%3cpath d='M5.95747 18.043L5.04102 18.9595L6.46659 18.5521L5.95747 18.043Z' fill='%23D2D6DC'/%3e%3cpath d='M15.8281 5.33105L18.6654 8.16829L9.01365 17.82L6.17641 14.9828L15.8281 5.33105Z' fill='%23FFD658'/%3e%3cpath d='M7.59375 16.4043L17.2455 6.75259L18.6638 8.17094L9.0121 17.8226L7.59375 16.4043Z' fill='%23FFC326'/%3e%3cpath d='M18.3123 8.52499L15.4746 5.68737L16.5983 4.56359C17.0386 4.12334 17.7524 4.12334 18.1927 4.56359L19.436 5.8069C19.8763 6.24715 19.8763 6.96096 19.436 7.40121L18.3123 8.52499Z' fill='%23FF5331'/%3e%3cpath d='M18.8155 5.18555L16.8945 7.10648L18.3131 8.52497L19.4368 7.40119C19.877 6.96094 19.877 6.24713 19.4368 5.80688L18.8155 5.18555Z' fill='%23F44D2C'/%3e%3c/svg%3e",edtior:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z' fill='%2345A4FF'/%3e%3cpath d='M23.9998 11.9995C23.9998 11.4024 23.9561 10.8154 23.8719 10.2417L18.7952 5.16504L5.04102 18.9585L9.89867 23.8162C10.5809 23.9366 11.283 23.9995 11.9998 23.9995C18.6272 23.9995 23.9998 18.6269 23.9998 11.9995Z' fill='%232D87F3'/%3e%3cpath d='M9.01377 17.824L5.04102 18.9591L6.17609 14.9863L8.54445 15.4556L9.01377 17.824Z' fill='white'/%3e%3cpath d='M8.54399 15.4561L5.04102 18.9591L9.01321 17.824L8.54399 15.4561Z' fill='%23F7F9FC'/%3e%3cpath d='M6.46714 18.5518L5.4485 17.5332L5.04102 18.9593L6.46714 18.5518Z' fill='%23E4E8EC'/%3e%3cpath d='M5.95747 18.043L5.04102 18.9595L6.46659 18.5521L5.95747 18.043Z' fill='%23D2D6DC'/%3e%3cpath d='M15.8281 5.33105L18.6654 8.16829L9.01365 17.82L6.17641 14.9828L15.8281 5.33105Z' fill='%23FFD658'/%3e%3cpath d='M7.59375 16.4043L17.2455 6.75259L18.6638 8.17094L9.0121 17.8226L7.59375 16.4043Z' fill='%23FFC326'/%3e%3cpath d='M18.3123 8.52499L15.4746 5.68737L16.5983 4.56359C17.0386 4.12334 17.7524 4.12334 18.1927 4.56359L19.436 5.8069C19.8763 6.24715 19.8763 6.96096 19.436 7.40121L18.3123 8.52499Z' fill='%23FF5331'/%3e%3cpath d='M18.8155 5.18555L16.8945 7.10648L18.3131 8.52497L19.4368 7.40119C19.877 6.96094 19.877 6.24713 19.4368 5.80688L18.8155 5.18555Z' fill='%23F44D2C'/%3e%3c/svg%3e",expert:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='12' cy='12' r='12' fill='%23FFCB37'/%3e%3ccircle cx='12' cy='12' r='10.5' fill='%23FE921D'/%3e%3cpath d='M11.443 5.13654C11.6446 4.63466 12.355 4.63466 12.5566 5.13654L13.9931 8.71375C14.0789 8.92747 14.2795 9.0732 14.5093 9.08878L18.3553 9.34957C18.8949 9.38615 19.1145 10.0619 18.6994 10.4086L15.7412 12.8802C15.5645 13.0279 15.4878 13.2637 15.544 13.4871L16.4845 17.2254C16.6164 17.7499 16.0417 18.1676 15.5836 17.88L12.3188 15.8303C12.1238 15.7079 11.8758 15.7079 11.6808 15.8303L8.41599 17.88C7.95794 18.1676 7.38314 17.7499 7.51509 17.2254L8.45556 13.4871C8.51175 13.2637 8.43513 13.0279 8.25839 12.8802L5.30017 10.4086C4.88514 10.0619 5.10469 9.38615 5.64429 9.34957L9.49031 9.08878C9.7201 9.0732 9.92068 8.92747 10.0065 8.71375L11.443 5.13654Z' fill='white'/%3e%3c/svg%3e","fact-check":"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16Z' fill='%2300C076'/%3e%3cpath d='M11.9456 5.46631L6.66562 10.2663L4.26562 8.08449' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",medical:un},Wn=function(n){var e=n.isOpen,l=void 0===e||e,r=n.onClose,d=n.enableAnimation,s=void 0===d||d,u=n.expertId,p=g.useTranslations().t,c=t.useState(null),m=c[0],f=c[1],h=t.useState(!1),v=h[0],b=h[1];return t.useEffect((function(){if(l&&u&&String(null==m?void 0:m.user_id)!==String(u)){b(!0);try{f(null),i.callApi(i.getDiscoverApiPath(i.DISCOVER_PATHS.GET_EXPERT_BY_ID,{id:u}),"get").then((function(n){f(null==n?void 0:n.data)}))}catch(n){console.error(n)}b(!1)}}),[l,u,null==m?void 0:m.user_id]),M.default.createElement(M.default.Fragment,null,M.default.createElement(Dn,{"data-open":l,"data-animation":s,onClick:function(n){return n.stopPropagation()}},v||!m?M.default.createElement(mn,null):M.default.createElement("div",{className:"popup-content"},M.default.createElement("div",{className:"close-button",onClick:r},M.default.createElement("img",{src:sn,style:{width:20,height:20},alt:"close-icon"})),M.default.createElement("div",{className:"main-info"},M.default.createElement("div",{className:"border-banner"}),M.default.createElement("div",{className:"avatar-title"},M.default.createElement(Ln,null,M.default.createElement("div",{className:"image-container"},M.default.createElement("div",{style:{position:"relative"}},M.default.createElement("img",{src:(null==m?void 0:m.avatar)?null==m?void 0:m.avatar:dn,className:"profile-image",alt:"avatar"}),M.default.createElement("img",{className:"badge-avatar",src:qn[null==m?void 0:m.role],alt:"badge"})))),M.default.createElement(Mn,null,M.default.createElement(o.Text,{size:"s3",className:"full-name",type:"semiBold"},null==m?void 0:m.display_name),M.default.createElement("div",null,M.default.createElement(o.Text,{size:"p4",color:x.theme.colors.gray800},null==m?void 0:m.specialty," • "),M.default.createElement("a",{href:null==m?void 0:m.organisation_url,className:"organisation",target:"_blank",rel:"noreferrer"},M.default.createElement(o.Text,{size:"p4",className:"organisation",color:x.theme.colors.gray800,style:{textDecoration:"underline"}},null==m?void 0:m.organisation)))))),M.default.createElement(Mn,null,M.default.createElement("div",{className:"experience"},M.default.createElement(o.Text,{type:"bold",size:"p4",color:x.theme.colors.gray800,style:{paddingBottom:16}},p("expert.content.description").toUpperCase()),M.default.createElement("div",{className:"list-items"},!!(null==m?void 0:m.experiences)&&m.experiences.filter((function(n){return!(!n||!n.title&&!n.organization)})).slice(0,3).map((function(n,e){return M.default.createElement(Kn,{key:e},M.default.createElement("img",{className:"bullet-point",src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='12' cy='12' r='2' fill='%232D87F3'/%3e%3c/svg%3e",alt:"point"}),M.default.createElement("div",{className:"text-contain"},M.default.createElement(a.Heading,{tag:"h6",color:x.theme.colors.gray800},null==n?void 0:n.title),M.default.createElement(o.Text,{size:"p2",color:x.theme.colors.gray500},null==n?void 0:n.organization)))}))),M.default.createElement("a",{href:null==m?void 0:m.profile_url},M.default.createElement(o.Text,{size:"s4",color:"#2D87F3",style:{paddingTop:24}},p("home.seeExpert"))))))),M.default.createElement(Qn,{"data-open":l,onClick:function(n){n.stopPropagation(),r()}}))},Xn=L.default.div(Sn||(Sn=n.__makeTemplateObject(["\n position: fixed;\n left: 50%;\n width: 343px;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 0px 4px ",";\n transform: translate(-50%, -50%);\n transition: all 0.5s ease-in-out;\n\n "," {\n width: 750px;\n }\n\n &[data-animation='true'] {\n transition: all 0.5s ease-in-out;\n }\n\n &[data-open='true'] {\n z-index: 200;\n top: 50%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n top: -50%;\n }\n\n .popup-content {\n "," {\n display: block;\n }\n display: flex;\n position: relative;\n z-index: 111;\n height: 100%;\n .button-see-more {\n margin: 32px 0;\n padding: 0;\n > * {\n display: inline-block;\n }\n }\n .close-button {\n position: absolute;\n z-index: 100;\n top: 10px;\n right: 10px;\n cursor: pointer;\n width: unset;\n height: unset;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n }\n\n .main-info {\n padding-bottom: 32px;\n background-color: ",";\n border-radius: 6px;\n .btn-booking {\n display: flex;\n margin: 12px auto;\n }\n .avatar-title {\n position: relative;\n width: 100%;\n padding-top: 46px;\n text-align: center;\n }\n }\n"],["\n position: fixed;\n left: 50%;\n width: 343px;\n background-color: ",";\n border-radius: 6px;\n box-shadow: 0px 0px 4px ",";\n transform: translate(-50%, -50%);\n transition: all 0.5s ease-in-out;\n\n "," {\n width: 750px;\n }\n\n &[data-animation='true'] {\n transition: all 0.5s ease-in-out;\n }\n\n &[data-open='true'] {\n z-index: 200;\n top: 50%;\n opacity: 1;\n visibility: visible;\n }\n\n &[data-open='false'] {\n top: -50%;\n }\n\n .popup-content {\n "," {\n display: block;\n }\n display: flex;\n position: relative;\n z-index: 111;\n height: 100%;\n .button-see-more {\n margin: 32px 0;\n padding: 0;\n > * {\n display: inline-block;\n }\n }\n .close-button {\n position: absolute;\n z-index: 100;\n top: 10px;\n right: 10px;\n cursor: pointer;\n width: unset;\n height: unset;\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n }\n }\n }\n\n .main-info {\n padding-bottom: 32px;\n background-color: ",";\n border-radius: 6px;\n .btn-booking {\n display: flex;\n margin: 12px auto;\n }\n .avatar-title {\n position: relative;\n width: 100%;\n padding-top: 46px;\n text-align: center;\n }\n }\n"])),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray200}),f.MediaQueries.tdUp,f.MediaQueries.mbDown,(function(n){return n.theme.colors.blue50})),Rn=L.default.div(On||(On=n.__makeTemplateObject(["\n position: fixed;\n z-index: 110;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n background: rgba(38, 38, 38, 0.3);\n\n &[data-open='false'] {\n display: none;\n }\n"],["\n position: fixed;\n z-index: 110;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n background: rgba(38, 38, 38, 0.3);\n\n &[data-open='false'] {\n display: none;\n }\n"]))),Jn=L.default.div(Fn||(Fn=n.__makeTemplateObject(["\n .image-container {\n .badge-avatar {\n position: absolute;\n right: 0;\n bottom: 0;\n top: 0;\n }\n }\n display: flex;\n justify-content: center;\n padding-bottom: 15px;\n text-align: center;\n .profile-image {\n width: 100px;\n min-width: 100px;\n height: 100px;\n min-height: 100px;\n border-radius: 50%;\n object-fit: cover;\n }\n .badge-avatar {\n width: 24px;\n height: 24px;\n }\n"],["\n .image-container {\n .badge-avatar {\n position: absolute;\n right: 0;\n bottom: 0;\n top: 0;\n }\n }\n display: flex;\n justify-content: center;\n padding-bottom: 15px;\n text-align: center;\n .profile-image {\n width: 100px;\n min-width: 100px;\n height: 100px;\n min-height: 100px;\n border-radius: 50%;\n object-fit: cover;\n }\n .badge-avatar {\n width: 24px;\n height: 24px;\n }\n"]))),Vn=L.default.div(Hn||(Hn=n.__makeTemplateObject(["\n position: relative;\n z-index: 9;\n .specialty {\n display: block;\n min-width: 240px;\n }\n\n padding: 0px 16px;\n text-align: center;\n .specialty {\n justify-content: center;\n }\n\n .experience {\n padding: 16px 0px 32px;\n text-align: left;\n .btn-wrapper {\n margin-top: 24px;\n }\n }\n p {\n max-width: 100%;\n }\n"],["\n position: relative;\n z-index: 9;\n .specialty {\n display: block;\n min-width: 240px;\n }\n\n padding: 0px 16px;\n text-align: center;\n .specialty {\n justify-content: center;\n }\n\n .experience {\n padding: 16px 0px 32px;\n text-align: left;\n .btn-wrapper {\n margin-top: 24px;\n }\n }\n p {\n max-width: 100%;\n }\n"])));L.default.span(Un||(Un=n.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin: 0 0.4em;\n color: ",";\n"],["\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin: 0 0.4em;\n color: ",";\n"])),(function(n){return n.theme.colors.neutral300})),L.default.div(Zn||(Zn=n.__makeTemplateObject(["\n display: inline-block;\n width: 3px;\n height: 3px;\n margin: 0;\n background-color: ",";\n border-radius: 50%;\n"],["\n display: inline-block;\n width: 3px;\n height: 3px;\n margin: 0;\n background-color: ",";\n border-radius: 50%;\n"])),(function(n){return n.theme.colors.gray400})),L.default.div(Yn||(Yn=n.__makeTemplateObject(["\n display: flex;\n margin-top: 8px;\n\n .bullet-point {\n width: 24px;\n height: 24px;\n }\n"],["\n display: flex;\n margin-top: 8px;\n\n .bullet-point {\n width: 24px;\n height: 24px;\n }\n"])));var $n=function(n){var e=n.isOpen,l=void 0===e||e,r=n.onClose,d=n.enableAnimation,s=void 0===d||d,u=n.hospitalId,p=n.locale,c=n.isMobile,m=g.useTranslations().t,f=t.useState(null),h=f[0],v=f[1],b=t.useState(!1),A=b[0],w=b[1];t.useEffect((function(){if(l&&u&&String(null==h?void 0:h.id)!==String(u)){w(!0);try{v(null),i.callApi(i.getCarePath(i.CARE_PATHS.GET_HOSPITAL_INFO,{hospital_branch_id:u,website_url:i.domainLocales[p]}),"get").then((function(n){v(null==n?void 0:n._data.branch)}))}catch(n){console.error(n)}w(!1)}}),[l,u,null==h?void 0:h.id]);var y=(null==h?void 0:h.specialties)||[],k=t.useMemo((function(){return y.map((function(n){return n.name}))}),[y]);return M.default.createElement(M.default.Fragment,null,M.default.createElement(Xn,{"data-open":l,"data-animation":s,onClick:function(n){return n.stopPropagation()}},A||!h?M.default.createElement(mn,null):M.default.createElement("div",{className:"popup-content"},M.default.createElement("div",{className:"close-button",onClick:r},M.default.createElement("img",{src:sn,style:{width:20,height:20},alt:"close-icon"})),M.default.createElement("div",{className:"main-info"},M.default.createElement("div",{className:"border-banner"}),M.default.createElement("div",{className:"avatar-title"},M.default.createElement(Jn,null,M.default.createElement("div",{className:"image-container"},M.default.createElement("div",{style:{position:"relative"}},M.default.createElement("img",{src:(null==h?void 0:h.logo)?null==h?void 0:h.logo:dn,className:"profile-image",alt:"avatar"}),M.default.createElement("img",{className:"badge-avatar",src:un,alt:"badge"})))),M.default.createElement(Vn,null,M.default.createElement(o.Text,{size:"s3",type:"semiBold",className:"full-name"},null==h?void 0:h.name),M.default.createElement("div",{className:"specialty"},y&&M.default.createElement(o.Text,{size:"p4",color:x.theme.colors.gray800},k.join(" • "),"•"),M.default.createElement("a",{href:i.getCareHospitalUrl({id:h.id,name:h.name,slug:h.slug,locale:p}),className:"organisation",target:"_blank",rel:"noreferrer"},M.default.createElement(o.Text,{size:"p4",className:"organisation",color:x.theme.colors.gray800,style:{textDecoration:"underline"}},null==h?void 0:h.name))))),!c&&M.default.createElement("a",{href:i.getCareHospitalUrl({id:h.id,name:h.name,slug:h.slug,locale:p})},M.default.createElement("div",{className:"btn-wrapper"},M.default.createElement(a.Button,{color:"primary",size:"md",className:"btn-booking"},m("careBooking.bookAnAppointment"))))),M.default.createElement(Vn,null,M.default.createElement("div",{className:"experience"},M.default.createElement(o.Text,{type:"bold",size:"s3",color:x.theme.colors.gray800,style:{paddingBottom:16}},m("hospital.content.description").toUpperCase()),M.default.createElement(o.Text,{size:"p2",color:x.theme.colors.gray500},h.about),c?M.default.createElement("a",{href:i.getCareHospitalUrl({id:h.id,name:h.name,slug:h.slug,locale:p})},M.default.createElement("div",{className:"btn-wrapper"},M.default.createElement(a.Button,{color:"primary",size:"md",className:"btn-booking"},m("careBooking.bookAnAppointment")))):M.default.createElement("a",{href:i.getCareHospitalUrl({id:h.id,name:h.name,slug:h.slug,locale:p})},M.default.createElement(o.Text,{size:"s4",color:"#2D87F3",style:{paddingTop:24}},m("home.seeHospital"))))))),M.default.createElement(Rn,{"data-open":l,onClick:function(n){n.stopPropagation(),r()}}))},ne={lessThanXSeconds:{one:"တစ်စက္ကန့်အောက်",other:"{{count}} စက္ကန့်အောက်"},xSeconds:{one:"တစ်စက္ကန့်",other:"{{count}} စက္ကန့်"},halfAMinute:"မိနစ်ဝက်",lessThanXMinutes:{one:"တစ်မိနစ်အောက်",other:"{{count}} မိနစ်အောက်"},xMinutes:{one:"တစ်မိနစ်",other:"{{count}}နာရီခန့်"},aboutXHours:{one:"တစ်နာရီခန့်",other:"{{count}}နာရီခန့်"},xHours:{one:"တစ်နာရီ",other:"{{count}}နာရီ"},xDays:{one:"တစ်ရက်",other:"{{count}}ရက်"},aboutXWeeks:{one:"တစ်ပတ်ခန့်",other:"{{count}}ပတ်ခန့်"},xWeeks:{one:"တစ်ပတ်",other:"{{count}}ပတ်"},aboutXMonths:{one:"တစ်လခန့်",other:"{{count}} လခန့်"},xMonths:{one:"တစ်လ",other:"{{count}}လ"},aboutXYears:{one:"တစ်နှစ်ခန့်",other:"{{count}}နှစ်"},xYears:{one:"တစ်နှစ်",other:"{{count}}နှစ်"},overXYears:{one:"တစ်နှစ်ကျော်",other:"{{count}}နှစ်ကျော်"},almostXYears:{one:"တစ်နှစ်နီးပါး",other:"{{count}}နှစ်နီးပါး"}},ee={code:"my",formatDistance:function(n,e,t){var i,a=ne[n];return i="string"==typeof a?a:1===e?a.one:a.other.replace("{{count}}",e.toString()),(null==t?void 0:t.addSuffix)?t.comparison&&t.comparison>0?i+"အတွင်း":"လွန်ခဲ့သော "+i:i},options:{weekStartsOn:0,firstWeekContainsDate:1}},te=L.default.div(ie||(ie=n.__makeTemplateObject(["\n display: flex;\n align-items: center;\n padding: 0 1rem;\n a {\n text-decoration: none;\n }\n .button-more {\n display: flex;\n width: 20px;\n height: 20px;\n align-items: center;\n justify-content: center;\n .button-more-icon {\n height: 13px;\n vertical-align: middle;\n }\n }\n .temp-avatar {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ",";\n border-radius: 50%;\n color: white;\n font-weight: bold;\n }\n\n .author-info {\n flex: 1;\n margin-left: 0.5rem;\n .author-info-top {\n display: flex;\n align-items: center;\n cursor: pointer;\n }\n .author-info-text-wrapper {\n display: flex;\n min-width: 0px;\n flex: 1 1 0%;\n align-items: center;\n }\n .author-name {\n overflow: hidden;\n font-weight: 600;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .author-time {\n flex-shrink: 0;\n }\n .author-role {\n height: 1rem;\n flex-shrink: 0;\n padding: 0 0.5rem;\n margin-left: 4px;\n border-radius: 1rem;\n color: white;\n font-size: 8px;\n font-weight: 600;\n line-height: 1rem;\n &[data-label-type='admin'] {\n background: ",";\n }\n &[data-label-type='local admin'] {\n background: ",";\n }\n &[data-label-type='ambassador'] {\n background: ",";\n }\n &[data-label-type='expert'] {\n background: ",";\n }\n &[data-label-type='moderator'] {\n background: ",";\n }\n &[data-label-type='sponsor'] {\n background: ",";\n }\n &[data-label-type='guide'] {\n background: ",";\n }\n &[data-label-type='influencer'] {\n background: ",";\n }\n }\n }\n .author-community {\n .text-container {\n color: ",";\n font-weight: 600;\n font-size: 12px;\n line-height: 20px;\n .time-text {\n font-size: 11px;\n font-weight: normal;\n }\n a {\n color: inherit;\n }\n }\n }\n .expert-wrapper {\n width: 100%;\n }\n &[data-is-booking='true'] {\n display: grid;\n background-color: ",";\n .btn-wrapper {\n padding: 0 16px;\n .btn-booking {\n width: 100%;\n margin: 12px 0;\n }\n }\n }\n &[data-is-marrybaby='true'] {\n align-items: unset;\n .author-info {\n margin-left: 1rem;\n "," {\n margin-left: 0.5rem;\n }\n .author-info-text-wrapper {\n flex-wrap: wrap;\n }\n .author-time {\n margin-left: 0.4rem;\n font-size: 14px;\n }\n }\n .author-community {\n .text-container {\n font-size: 12px;\n line-height: 20px;\n }\n .author-community-name {\n color: ",";\n font-weight: 500;\n }\n }\n }\n"],["\n display: flex;\n align-items: center;\n padding: 0 1rem;\n a {\n text-decoration: none;\n }\n .button-more {\n display: flex;\n width: 20px;\n height: 20px;\n align-items: center;\n justify-content: center;\n .button-more-icon {\n height: 13px;\n vertical-align: middle;\n }\n }\n .temp-avatar {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ",";\n border-radius: 50%;\n color: white;\n font-weight: bold;\n }\n\n .author-info {\n flex: 1;\n margin-left: 0.5rem;\n .author-info-top {\n display: flex;\n align-items: center;\n cursor: pointer;\n }\n .author-info-text-wrapper {\n display: flex;\n min-width: 0px;\n flex: 1 1 0%;\n align-items: center;\n }\n .author-name {\n overflow: hidden;\n font-weight: 600;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .author-time {\n flex-shrink: 0;\n }\n .author-role {\n height: 1rem;\n flex-shrink: 0;\n padding: 0 0.5rem;\n margin-left: 4px;\n border-radius: 1rem;\n color: white;\n font-size: 8px;\n font-weight: 600;\n line-height: 1rem;\n &[data-label-type='admin'] {\n background: ",";\n }\n &[data-label-type='local admin'] {\n background: ",";\n }\n &[data-label-type='ambassador'] {\n background: ",";\n }\n &[data-label-type='expert'] {\n background: ",";\n }\n &[data-label-type='moderator'] {\n background: ",";\n }\n &[data-label-type='sponsor'] {\n background: ",";\n }\n &[data-label-type='guide'] {\n background: ",";\n }\n &[data-label-type='influencer'] {\n background: ",";\n }\n }\n }\n .author-community {\n .text-container {\n color: ",";\n font-weight: 600;\n font-size: 12px;\n line-height: 20px;\n .time-text {\n font-size: 11px;\n font-weight: normal;\n }\n a {\n color: inherit;\n }\n }\n }\n .expert-wrapper {\n width: 100%;\n }\n &[data-is-booking='true'] {\n display: grid;\n background-color: ",";\n .btn-wrapper {\n padding: 0 16px;\n .btn-booking {\n width: 100%;\n margin: 12px 0;\n }\n }\n }\n &[data-is-marrybaby='true'] {\n align-items: unset;\n .author-info {\n margin-left: 1rem;\n "," {\n margin-left: 0.5rem;\n }\n .author-info-text-wrapper {\n flex-wrap: wrap;\n }\n .author-time {\n margin-left: 0.4rem;\n font-size: 14px;\n }\n }\n .author-community {\n .text-container {\n font-size: 12px;\n line-height: 20px;\n }\n .author-community-name {\n color: ",";\n font-weight: 500;\n }\n }\n }\n"])),(function(n){return n.theme.colors.secondaryBase}),(function(n){return n.theme.colors.blue800}),(function(n){return n.theme.colors.blue800}),(function(n){return n.theme.colors.green400}),(function(n){return n.theme.colors.red400}),(function(n){return n.theme.colors.yellow800}),(function(n){return n.theme.colors.teal400}),(function(n){return n.theme.colors.teal400}),(function(n){return n.theme.colors.teal400}),(function(n){return n.theme.colors.gray500}),(function(n){return n.theme.colors.blue50}),f.MediaQueries.mbDown,(function(n){return n.theme.mbColors.cobalt}));L.default.img(ae||(ae=n.__makeTemplateObject(["\n width: 20px;\n height: 20px;\n margin-left: 0.5rem;\n cursor: pointer;\n object-fit: contain;\n"],["\n width: 20px;\n height: 20px;\n margin-left: 0.5rem;\n cursor: pointer;\n object-fit: contain;\n"])));var ie,ae,oe,le=L.default.div(oe||(oe=n.__makeTemplateObject(["\n position: relative;\n .mini-icon {\n position: absolute;\n right: 1.2px;\n bottom: 1.2px;\n }\n"],["\n position: relative;\n .mini-icon {\n position: absolute;\n right: 1.2px;\n bottom: 1.2px;\n }\n"]))),re={admin:"cardAuthor.admin",moderator:"cardAuthor.moderator",ambassador:"cardAuthor.ambassador",expert:"cardAuthor.expert",sponsor:"cardAuthor.sponsor","local-admin":"cardAuthor.localAdmin",guide:"cardAuthor.guide",influencer:"cardAuthor.influencer"},de={"vi-VN":P.default,"id-ID":T.default,"ms-MY":j.default,"km-KH":I.default,"en-PH":I.default,"th-TH":z.default,"my-MM":ee,"zh-TW":G.default,"hi-IN":N.default};exports.CardAuthor=function(n){var e=n.time,r=n.className,d=n.community,s=n.name,u=n.username,p=n.url,c=n.avatar,m=n.miniIcon,x=n.role,v=n.style,b=n.type,A=void 0===b?"post":b,w=n.expertId,y=n.isMarryBaby,k=n.title,C=n.doctorId,E=n.hospitalId,B=n.hasQuickBooking,_=n.handleMakeAppointment,D=t.useContext(i.TogetherComponentGlobalContext).data,Q=D.locale,L=D.router,I=D.env,N=I.isMarryBaby,T=I.togetherBasePath,j="boolean"==typeof y?y:N,z=s||u||"",P=x?function(n){var e=["admin","moderator","ambassador","expert","sponsor","local-admin","guide","influencer"];return e.find((function(e){return e===n}))||e.find((function(e){return n.includes(e)}))||e.find((function(e){return e.includes(n)}))}(x):"",G=g.useTranslations().t,S=e?isNaN(new Date(e).getTime())?null:new Date(e):null,O=S?l.formatDistanceToNow(S,{locale:de[Q]}):e,F=S?l.format(S,"dd/MM/yyyy HH:mm"):e,H=t.useState(!1),U=H[0],Z=H[1],Y=(L||{}).asPath,K="https://".concat(h.domainLocales[Q]).concat(Y),q=function(n){"expert"===x&&(w||C||E)?(n.stopPropagation(),Z(!0)):p&&(window.location.href=p)};return t.useEffect((function(){f.toggleNoScroll(U)}),[U]),M.default.createElement(M.default.Fragment,null,"expert"===x&&w?M.default.createElement(Wn,{isOpen:U,onClose:function(){return Z(!1)},expertId:w}):null,"expert"===x&&C?M.default.createElement(_n,{isOpen:U,onClose:function(){return Z(!1)},doctorId:C,locale:Q}):null,"expert"===x&&E?M.default.createElement($n,{isOpen:U,onClose:function(){return Z(!1)},hospitalId:E,locale:Q}):null,M.default.createElement(te,{"data-is-marrybaby":j,className:r,style:v,"data-is-booking":B},M.default.createElement("div",{style:{display:"flex",width:"100%"}},M.default.createElement("a",null,M.default.createElement(le,{onClick:q},M.default.createElement(rn,{className:"author-avatar-wrapper",username:z,avatar:c}),m?M.default.createElement(i.Avatar,{className:"mini-icon",type:"rounded",avatarImg:M.default.createElement("img",{src:m,style:{width:"12px",height:"12px",objectFit:"cover"},alt:"badge"})}):null)),M.default.createElement("div",{className:"expert-wrapper"},M.default.createElement("div",{className:"author-info"},M.default.createElement("div",{className:"author-info-top"},M.default.createElement("div",{onClick:q,className:"author-info-text-wrapper"},M.default.createElement(o.Text,{className:"author-name",size:"p3"},z),P&&re[P]&&M.default.createElement("div",{className:"author-role","data-label-type":P},k||G(re[P])),j?M.default.createElement(o.Text,{size:"p4",type:"regular",color:"#9495A0",title:F,className:"author-time"},"".concat("post"===A?"• ":"").concat(O)):null),j||"post"===A?null:M.default.createElement(o.Text,{size:"p4",type:"regular",color:"#595959",style:{lineHeight:"20px"},title:F},O)),"post"===A?M.default.createElement("div",{className:"author-community"},M.default.createElement(o.Text,{className:"text-container",size:"p4"},M.default.createElement("a",{href:(null==d?void 0:d.slug)&&d.isActive&&!d.isHidden?"".concat(T,"/").concat(null==d?void 0:d.slug):void 0,className:"author-community-name"},"".concat(j?"/":"").concat(null==d?void 0:d.name)),(j?void 0:O)?" • ":"",M.default.createElement("span",{className:"time-text"},j?void 0:O))):null))),B&&M.default.createElement("div",{className:"btn-wrapper"},M.default.createElement(a.Button,{color:"primary",size:"md",className:"btn-booking",onClick:function(n){null==_||_(C,E),n.stopPropagation()},dataEventCategory:"Care",dataEventAction:"Comment - Quick Booking",dataEventLabel:K},G("careBooking.bookAnAppointment")))))},exports.Loading=mn,exports.PopupDoctor=_n,exports.PopupExpert=Wn,exports.PopupHospital=$n,exports.StyledDropdown=S,exports.StyledDropdownLabel=Z,exports.StyledDropdownList=F,exports.StyledDropdownName=O,exports.StyledDropdownOption=H,exports.StyledIcon=U,exports.UserAvatar=rn,exports.dataTransform=on,exports.formatComment=an,exports.formatCommunity=nn,exports.formatPost=tn,exports.formatTopic=en,exports.locales=de;
|