"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4790],{84790:function(e,n,t){t.d(n,{XA:function(){return Ee},uT:function(){return Se},Qn:function(){return _e},wQ:function(){return De}});var o=t(26042),i=t(35944),r=t(15324),a=t(47568),c=t(69396),l=t(29815),d=t(20414),u=t(67294),s=t(61986),v=t(10917),f=t(88266),p=t(41676),h=t(66935),g=t(66087),m=t(87738),b=t(63772),w=t(15374),y=t(9005),k=t(42298),x=t(67090),Z=t(29422),C=t(42699),E=t(3151),T=t(83975),S=t(11163),D={"vi-VN":function(){return Promise.resolve().then(t.bind(t,34215))},"id-ID":function(){return Promise.resolve().then(t.bind(t,72728))},"zh-TW":function(){return Promise.resolve().then(t.bind(t,85673))},"ms-MY":function(){return Promise.resolve().then(t.bind(t,59265))},"en-PH":function(){return Promise.resolve({default:T.Z})}};function _(){var e=(0,S.useRouter)().locale,n=void 0===e?"en-PH":e,t=(0,u.useState)(T.Z),o=t[0],i=t[1];return(0,u.useEffect)((function(){var e;null===(e=D[n])||void 0===e||e.call(D).then((function(e){i(e.default)}))}),[i]),(0,u.useMemo)((function(){return{localize:o.localize,locale:o}}),[o.localize,o])}var I,M=t(69589),B=function(){var e=(0,u.useState)(new Date),n=e[0],t=e[1],o=_(),i=o.localize,r=o.locale,a=(0,u.useMemo)((function(){return(0,x.Z)(n,{weekStartsOn:1,locale:r})}),[n]),c=(0,u.useMemo)((function(){var e=(0,Z.Z)(a,{days:1-M.dy}),n=new Date;return(0,C.Z)(e,n)||(0,E.Z)(e,n)?e:n}),[a]),l=(0,u.useMemo)((function(){return i?"".concat(i.month(n.getMonth(),{width:"wide"})," ").concat(n.getFullYear()):""}),[i,n]);return{date:n,setDate:t,startDate:c,endDate:a,dateMonthValue:l}},L=t(828),P=t(51816),N=t(77349),A=function(){var e=(0,a.Z)((function(e,n,t){return(0,d.__generator)(this,(function(o){return(null===e||void 0===e?void 0:e.id)?[2,(0,w.t9)((0,w.cN)(b.y.GET_DOCTOR_QUICK_BOOKING,{hospitalBranchId:e.id||"",specialtyId:(null===n||void 0===n?void 0:n.id)&&-1!==(null===n||void 0===n?void 0:n.id)?null===n||void 0===n?void 0:n.id:"",keyword:t&&t.length>=3?t:""}),"GET",{headers:{accept:"application/json, text/plain, version=2.0.0"}})]:[2]}))}));return function(n,t,o){return e.apply(this,arguments)}}(),O=function(){var e=(0,a.Z)((function(e,n,t){return(0,d.__generator)(this,(function(o){return[2,(0,w.t9)((0,w.cN)(b.y.GET_DOCTOR_SCHEDULE,{id:String((null===t||void 0===t?void 0:t.value)||(null===t||void 0===t?void 0:t.id)),startDate:Se(e),endDate:Se(n)}),"GET")]}))}));return function(n,t,o){return e.apply(this,arguments)}}(),z=function(){var e=(0,a.Z)((function(e,n){return(0,d.__generator)(this,(function(t){return[2,(0,w.t9)((0,w.cN)(b.y.GET_DOCTOR_SCHEDULE,{id:String((null===n||void 0===n?void 0:n.value)||(null===n||void 0===n?void 0:n.id)),startDate:Se(e)}),"GET")]}))}));return function(n,t){return e.apply(this,arguments)}}(),R=function(){var e=(0,a.Z)((function(e,n,t){return(0,d.__generator)(this,(function(o){return[2,(0,w.t9)((0,w.cN)(b.y.GET_TELEMEDICINE_DOCTOR_SCHEDULE,{id:String((null===t||void 0===t?void 0:t.value)||(null===t||void 0===t?void 0:t.id)),startDate:Se(e),endDate:Se(n)}),"GET")]}))}));return function(n,t,o){return e.apply(this,arguments)}}(),V=function(){var e=(0,a.Z)((function(e,n){return(0,d.__generator)(this,(function(t){return[2,(0,w.t9)((0,w.cN)(b.y.GET_TELEMEDICINE_DOCTOR_SCHEDULE,{id:String((null===n||void 0===n?void 0:n.value)||(null===n||void 0===n?void 0:n.id)),startDate:Se(e)}),"GET")]}))}));return function(n,t){return e.apply(this,arguments)}}(),j=t(86896),H=t(91940),G=function(e){var n=e.name,t=e.price,o=e.priceTo,r=e.priceType,a=e.isDetail,c=e.isShowPrice,l=void 0===c||c,d=(0,j.Z)().formatMessage,f=(0,S.useRouter)().locale,p=void 0===f?"en-PH":f,h=(0,u.useMemo)((function(){return r===M.xf.RANGE?d({id:"admin.doctor.servicePrice.range",defaultMessage:"Range"}):r===M.xf.STARTING?d({id:"admin.doctor.servicePrice.start",defaultMessage:"Starting from"}):d({id:"admin.doctor.servicePrice.fixed",defaultMessage:"Fixed Price"})}),[r]);return(0,i.BX)(H.Tz,{children:[(0,i.tZ)(s.T,{size:"sm",type:"regular",className:a?"option-name":"",children:n}),l&&(0,i.BX)(H.Kk,{children:[(0,i.tZ)("div",{className:"icon-price hospital-card-icon",children:(0,i.tZ)("img",{src:"".concat(M.nB,"/svg/price-green.svg"),alt:"Price"})}),(0,i.BX)("div",{className:"text-price",children:[(0,i.BX)(s.T,{size:"c2",color:v.r.colors.green600,children:[h,"\xa0"]}),(0,i.BX)(s.T,{size:"c2",color:v.r.colors.green600,children:[(0,w.FY)(parseInt(t),p),o&&" - ".concat((0,w.FY)(parseInt(o),p))]})]})]})]})},F=function(e){var n=e.date,t=e.startDate,r=e.endDate,l=e.isReset,s=e.isTeleMedicine,v=e.selectedSpecialty,f=e.selectedHospital,p=e.selectedDoctor,h=e.searchDoctorKeyword,g=(0,u.useState)(!1),m=g[0],b=g[1],w=(0,u.useState)([]),k=w[0],x=w[1],Z=(0,u.useMemo)((function(){return k.map((function(e){return(0,c.Z)((0,o.Z)({},e),{value:e.id,label:(0,i.tZ)(G,{name:e.name,price:e.price,priceTo:e.priceTo||"",priceType:e.priceType,priceUnit:e.priceUnit,isShowPrice:!(null===e||void 0===e?void 0:e.isSiloam)&&Number(e.price)>0}),icon:(0,i.tZ)("img",{src:e.avatar,alt:e.slug})})}))}),[k]),C=(0,u.useMemo)((function(){return k.find((function(e){return e.id===(null===p||void 0===p?void 0:p.value)}))}),[k,p]),E=function(e){var n=e.date,t=e.startDate,i=e.endDate,r=e.isReset,l=e.isTeleMedicine,s=e.selectedDoctor,v=e.selectedSpecialty,f=e.doctorList,p=e.bufferTime,h=void 0===p?0:p,g=(0,u.useState)(!1),m=g[0],b=g[1],w=(0,u.useState)(null),k=w[0],x=w[1],Z=(0,u.useState)(null),C=Z[0],E=Z[1],T=(0,u.useMemo)((function(){return(null===C||void 0===C?void 0:C.length)?(0,y.Z)({start:new Date,end:(0,N.Z)(new Date(C[0].workingDay),1)}).map((function(e){var n,t=Se(e),o=(null===(n=null===C||void 0===C?void 0:C.find((function(e){return e.workingDay===t})))||void 0===n?void 0:n.slots)||0;if(!o||0===o)return e})):[]}),[C]);(0,u.useEffect)((function(){x(null)}),[null===v||void 0===v?void 0:v.id]);var S=(0,u.useCallback)((function(){x(null)}),[]),D=(0,u.useCallback)((function(e){b(e)}),[]),_=(0,u.useMemo)((function(){var e;return null===(e=null===k||void 0===k?void 0:k.find((function(e){return e.workingDay===Se(n)})))||void 0===e?void 0:e.workingTimes}),[k,n]);return(0,u.useEffect)((function(){if(r)x(null);else if(null===s||void 0===s?void 0:s.value){var e=l?[R(t,i,s),V(t,s)]:[O(t,i,s),z(t,s)];!function(){n.apply(this,arguments)}()}else S();function n(){return n=(0,a.Z)((function(){var n,t,i,r,a,l;return(0,d.__generator)(this,(function(d){switch(d.label){case 0:return b(!0),[4,Promise.all(e)];case 1:return t=L.Z.apply(void 0,[d.sent(),2]),i=t[0],(null===(r=t[1])||void 0===r?void 0:r._data)&&E(r._data.schedules?(0,P.IC)(r._data.schedules):null),a=(null===i||void 0===i||null===(n=i._data)||void 0===n?void 0:n.schedules)?(0,P.IC)(i._data.schedules):null,l=a?a.map((function(e){if(!h)return e;var n=e.workingDay,t=e.workingTimes,i={},r=0;return Object.keys(t).forEach((function(e){var o=t[e],a=(null===o||void 0===o?void 0:o.filter((function(e){var t=new Date("".concat(n," ").concat(e.started)),o=new Date,i=M._m*h;return t.getTime()>o.getTime()+i})))||[];i[e]=a,r+=a.length})),(0,c.Z)((0,o.Z)({},e),{slots:r,workingTimes:i})})):null,x(l),b(!1),[2]}}))})),n.apply(this,arguments)}}),[f,s,null===s||void 0===s?void 0:s.value,Se(t),r,l]),{scheduleLoading:m,schedule:k,workingTime:_,disabledDays:T,allSchedule:C,onResetSchedule:S,onScheduleLoading:D}}({date:n,startDate:t,endDate:r,isReset:l,isTeleMedicine:s,selectedDoctor:p,selectedSpecialty:v,doctorList:k,bufferTime:p?s?p.bufferTimeTele:p.bufferTimeOutpatient:0}),T=E.schedule,S=E.scheduleLoading,D=E.workingTime,_=E.disabledDays,I=E.allSchedule,B=E.onResetSchedule;return(0,u.useEffect)((function(){function e(){return e=(0,a.Z)((function(){var e,n,t;return(0,d.__generator)(this,(function(o){switch(o.label){case 0:return b(!0),[4,A(f,v,h)];case 1:return n=o.sent(),t=(null===n||void 0===n||null===(e=n._data)||void 0===e?void 0:e.searches)?n._data.searches.map(P.rO):null,x(t||[]),b(!1),[2]}}))})),e.apply(this,arguments)}l||((null===v||void 0===v?void 0:v.value)||B(),function(){e.apply(this,arguments)}())}),[null===v||void 0===v?void 0:v.id,h.length>=3?h:"",l]),{list:k,loading:m,scheduleLoading:S,options:Z,currentValue:C,notFound:!k.length,disabledDays:_,allSchedule:I,schedule:T,workingTime:D,onResetDoctor:function(){x([])}}},Q=t(96486),X=t.n(Q),U=t(87536),W=t(72164),Y=t(49474),K=t(94184),q=t.n(K);function $(){return $=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},$.apply(this,arguments)}var J,ee=function(e){return u.createElement("svg",$({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),I||(I=u.createElement("path",{d:"M15 18l-6-6 6-6",stroke:"#262626",strokeWidth:1.75,strokeLinecap:"round",strokeLinejoin:"round"})))},ne=function(e){var n=e.children,t=(0,u.useRef)(null),o=(0,u.useState)("left"),r=o[0],a=o[1],c=(0,u.useState)(!1),l=c[0],d=c[1];return(0,u.useEffect)((function(){t.current&&(t.current.scrollWidth<=t.current.clientWidth?l&&d(!1):l||d(!0))}),[t,n]),(0,u.useEffect)((function(){var e,n=function(){t.current&&(0===t.current.scrollLeft?a("left"):t.current.scrollLeft+t.current.clientWidth===t.current.scrollWidth?a("right"):a("mid"))},o=(0,Q.throttle)(n,200);return null===(e=t.current)||void 0===e||e.addEventListener("scroll",o),n(),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("scroll",o)}}),[]),(0,i.BX)(H.V$,{children:[(0,i.tZ)(ee,{className:q()("chevron",{disabled:!l||"left"===r}),onClick:function(){t.current&&t.current.scrollTo({left:t.current.scrollLeft-(t.current.scrollWidth-t.current.clientWidth)/3,behavior:"smooth"})}}),(0,i.tZ)(H.vA,{ref:t,children:n}),(0,i.tZ)(ee,{className:q()("chevron","right",{disabled:!l||"right"===r}),onClick:function(){t.current&&t.current.scrollTo({left:t.current.scrollLeft+(t.current.scrollWidth-t.current.clientWidth)/3,behavior:"smooth"})}})]})},te=t(45341),oe=function(e){var n=e.startDate,t=e.endDate,o=e.schedules,r=e.date,a=e.setDate,c=e.dataEventAction,l=e.dataEventCategory,d=e.dataEventLabel,f=e.isTeleMedicine;if(!o||!o.length)return null;var p=(0,j.Z)().formatMessage,h=(0,u.useState)(Se(r)),g=h[0],m=h[1],b=(0,u.useMemo)((function(){return(0,y.Z)({start:n,end:t}).map((function(e){var n,t=Se(e);return{date:e,day:t,numberOfSlots:(null===(n=o.find((function(e){return e.workingDay===t})))||void 0===n?void 0:n.slots)||0}}))}),[o]);(0,u.useEffect)((function(){m(Se(r))}),[r]),(0,u.useEffect)((function(){var e=b.find((function(e){return e.numberOfSlots>0})),n=[(null===e||void 0===e?void 0:e.date)||new Date,r].sort(Y.Z);a(X().last(n)||new Date),m(Se(X().last(n)||new Date))}),[b]);var w=_().locale;return(0,u.useEffect)((function(){setTimeout((function(){var e=document.querySelector(".elm-scroll-to");if(e){var n=(0,te.RR)(e);window.scrollTo({top:n-65,behavior:"smooth"})}}),1e3)}),[g]),(0,i.tZ)(ne,{children:b.map((function(e){var n=e.date,t=e.day,o=e.numberOfSlots;return(0,i.BX)(H.un,{"data-booking-day":t,"data-active":g===t,onClick:function(){a(n)},"data-event-category":l,"data-event-action":c,"data-event-label":d,className:f?"tele-booking-day-card":"out-patient-booking-day-card",children:[(0,i.tZ)(s.T,{size:"xs",type:"caption",color:v.r.colors.gray600,style:{fontSize:12,whiteSpace:"nowrap"},className:"day",children:(0,k.Z)(n,"EEE",{locale:w})}),(0,i.tZ)(s.T,{size:"md",type:"bold",color:v.r.colors.gray800,style:{fontSize:16,lineHeight:"18px"},children:n.getDate()}),(0,i.tZ)(s.T,{size:"xs",color:o>0?v.r.colors.green600:v.r.colors.gray400,style:{fontSize:12,whiteSpace:"nowrap"},className:"slot-number",children:o>0?o+" "+p({id:"bookingCard.slots",defaultMessage:"slot".concat(o>0?"s":"")}):p({id:"bookingCard.NoSlots",defaultMessage:"No slot"})})]},t)}))})},ie=function(e){var n=e.workingTimes,t=e.scheduleId,o=e.setSchedule,r=e.dataEventAction,a=e.dataEventCategory,c=e.dataEventLabel,l=e.isTeleMedicine;if(!n)return null;var d=(0,j.Z)().formatMessage,s=(0,u.useState)(0),v=s[0],p=s[1],h=(0,u.useState)([]),m=h[0],b=h[1],w=(0,u.useMemo)((function(){var e=[],t=[];return n.morning&&(e.push({name:d({id:"bookingCard.morning",defaultMessage:"Morning"}).concat(" (".concat(n.morning.length,")"))}),t.push("morning")),n.afternoon&&(e.push({name:d({id:"bookingCard.afternoon",defaultMessage:"Afternoon"}).concat(" (".concat(n.afternoon.length,")"))}),t.push("afternoon")),n.evening&&(e.push({name:d({id:"bookingCard.evening",defaultMessage:"Evening"}).concat(" (".concat(n.evening.length,")"))}),t.push("evening")),b(t),e}),[n,d]);return(0,u.useEffect)((function(){o(null)}),[v]),(0,i.BX)(H.As,{children:[(0,i.tZ)(f.T,{className:"booking-time-tabs",tabContent:w,initialTab:v,onChange:p}),(0,i.tZ)(H.rR,{children:(n[m[v]]||[]).map((function(e){return(0,i.tZ)(g.B,{size:"md",color:t===e.schedule_id?"primary":"secondary",onClick:function(n){null===n||void 0===n||n.preventDefault(),o(e)},dataEventAction:r,dataEventCategory:a,dataEventLabel:c,className:l?"tele-booking-time-btn":"out-patient-booking-time-btn",children:"".concat(e.started," - ").concat(e.ended)},e.schedule_id)}))})]})};function re(){return re=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},re.apply(this,arguments)}var ae,ce=function(e){return u.createElement("svg",re({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),J||(J=u.createElement("path",{d:"M12.781 1.332a1.88 1.88 0 00-1.333.552l-.781.781 2.666 2.667.782-.781a1.886 1.886 0 00-1.334-3.219zM9.667 3.665L2 11.332v2.667h2.667l7.666-7.667-2.666-2.667z",fill:"#595959"})))},le=function(e){var n=e.logo,t=e.name,o=e.price,r=e.priceTo,a=e.priceType,c=e.priceUnit,l=e.isShowPrice,d=void 0===l||l,u=e.onEditClick;return(0,i.BX)(H.up,{children:[(0,i.tZ)("img",{src:n||"".concat(M.nB,"/images/service-placeholder.png"),alt:t}),(0,i.tZ)(G,{name:t,price:o,priceTo:r||"",priceType:a,priceUnit:c,isShowPrice:d,isDetail:!0}),(0,i.tZ)(ce,{className:"doctor-edit-icon",onClick:u})]})},de=t(98714),ue=function(e){var n=e.className,t=e.style,r=e.id,a=e.placeholder,l=e.placeholderIcon,d=e.onChange,s=e.value,v=e.options,f=e.dropdownLabelTrackingAttributes,p=e.disabled,h=e.onSearchChange,g=e.useSearchFilter,m=void 0===g||g,b=(0,u.useState)(""),w=b[0],y=b[1],k=(0,L.Z)(u.useState(!1),2),x=k[0],Z=k[1],C=(0,u.useRef)(null);(0,de.O)(C,(function(){Z(!1)}));var E=(0,u.useMemo)((function(){return w&&m?function(e,n){var t="".concat(n).toLowerCase();return e.filter((function(e){return"".concat(e.value).toLowerCase().includes(t)||"".concat(e.label).toLowerCase().includes(t)}))}(v,w):s?v.filter((function(e){return e.value!==s.value})):v}),[w,v,s]);return(0,i.BX)(H.lS,{className:n,"data-dropdown-open":x||void 0,id:r,"data-has-icons":!0,"data-is-open":x,ref:C,style:t,tabIndex:0,children:[(0,i.tZ)(H.Dp,(0,c.Z)((0,o.Z)({onClick:function(e){var n,t;"true"===(null===(n=e.target)||void 0===n||null===(t=n.getAttribute)||void 0===t?void 0:t.call(n,"data-is-open"))&&(y(""),d(null,""),null===h||void 0===h||h("")),!p&&Z(!0)},"data-is-open":x},f),{children:(0,i.tZ)(H.EQ,(0,o.Z)({name:"dropdown-input",autoFocus:!1,displayIcon:l,size:"md",onChange:function(e){d(null,e),y(e),null===h||void 0===h||h(w)},placeholder:a,value:s&&s.value?"".concat(s.label):w,isDisabled:p},f))})),x&&E.length>0&&(0,i.tZ)(H.o1,{onClick:function(e){var n,t;"true"===(null===(n=e.target)||void 0===n||null===(t=n.getAttribute)||void 0===t?void 0:t.call(n,"data-is-open"))&&(y(""),d(null,"")),!p&&Z(!x)},className:"dropdown-option","data-has-icons":!0,children:E.map((function(e){return(0,i.BX)(H.aT,{"data-selected":s&&s.value===e.value||void 0,onClick:function(){!p&&(null===d||void 0===d||d(e,e.value))},children:[e.icon&&(0,i.tZ)(H.xL,{children:e.icon}),(0,i.tZ)("div",{className:"dropdown-label",children:e.label})]},"".concat(r,"-").concat(e.value))}))})]})},se=t(44012),ve=t(8446),fe=function(e){var n=e.type,t=e.translationId,o=void 0===t?"":t,r=e.href,a=void 0===r?"":r,c=e.onClick,l=function(e){e.preventDefault(),null===c||void 0===c||c()},d=function(e){return(0,i.tZ)("a",{href:a,onClick:l,target:"_blank",rel:"noreferrer noopener",children:e})};return(0,i.BX)(i.HY,{children:[n===ve.jE.DEFAULT&&(0,i.tZ)(H.G_,{children:(0,i.tZ)(se.Z,{id:o,defaultMessage:"We could not find any result. Click <a>here</a> to see more",tagName:"p",values:{a:d}})}),n===ve.jE.SEARCH&&(0,i.tZ)(s.T,{size:"xs",className:"no-result",children:(0,i.tZ)(se.Z,{id:"careBooking.noSearchResult",defaultMessage:"No matching result, please try another keyword or <a>see more</a>",tagName:"p",values:{a:d}})})]})},pe=t(41335),he=t(54776),ge=t(69246),me=t(10750),be=function(e){var n,t,x,Z,C,E,T=e.onChangeTab,D=(0,S.useRouter)(),_=D.locale,I=void 0===_?"en-PH":_,L=D.asPath,P=D.push,N=(0,he.Z)(),A=N.message,O=N.updateMessage,z=(0,u.useState)(!1),R=z[0],V=z[1],G=(0,u.useState)(!1),X=G[0],Y=G[1],K=(0,u.useState)(!1),q=K[0],$=K[1],J=(0,u.useState)(void 0),ee=J[0],ne=J[1],te=(0,u.useMemo)((function(){return"https://".concat(r.domainLocales[I]).concat(M.nB).concat(L)}),[I,L]),re=(0,j.Z)().formatMessage,ae=(0,u.useMemo)((function(){return{label:re({id:"booking.allSpecialties",defaultMessage:"All specialties"}),name:re({id:"booking.allSpecialties",defaultMessage:"All specialties"}),value:-1,id:-1}}),[]),ce=(0,u.useContext)(W.I),de=ce.state,se=ce.pushNotifications,be=de.isLoggedIn,we=B(),ye=we.date,ke=we.setDate,xe=we.startDate,Ze=we.endDate,Ce=we.dateMonthValue,Ee=(0,U.Gc)(),Te=Ee.control,De=Ee.watch,_e=Ee.setValue,Ie=Ee.resetField,Me=De("selected_hospital"),Be=De("selected_specialty"),Le=De("selected_doctor"),Pe=De("selected_schedule"),Ne=De("date");(0,u.useEffect)((function(){Ie("selected_specialty"),Ke("")}),[null===Me||void 0===Me?void 0:Me.id]),(0,u.useEffect)((function(){(null===Le||void 0===Le?void 0:Le.id)||Ie("selected_doctor"),Je("")}),[null===Be||void 0===Be?void 0:Be.id,null===Le||void 0===Le?void 0:Le.id]),(0,u.useEffect)((function(){Ie("selected_schedule")}),[null===Le||void 0===Le?void 0:Le.id]),(0,u.useEffect)((function(){_e("date",Se(ye))}),[Pe]);var Ae=(0,u.useState)(!0),Oe=Ae[0],ze=Ae[1],Re=(0,u.useState)(!1),Ve=Re[0],je=Re[1],He=(0,u.useState)(!1),Ge=He[0],Fe=He[1],Qe=(0,u.useState)(!1),Xe=Qe[0],Ue=Qe[1];(0,u.useEffect)((function(){ze(!0),Ie("selected_specialty"),Ie("selected_doctor"),Ie("selected_schedule"),_e("date",Se(new Date)),ze(!1)}),[Oe]);var We=(0,u.useState)(""),Ye=We[0],Ke=We[1],qe=(0,u.useState)(""),$e=qe[0],Je=qe[1],en=(0,u.useMemo)((function(){return(0,Q.debounce)((function(e){return Ke(e)}),300)}),[Q.debounce]),nn=(0,u.useMemo)((function(){return(0,Q.debounce)((function(e){return Je(e)}),300)}),[Q.debounce]),tn=function(e){var n=e.selectedHospital,t=e.searchSpecialtyKeyword,r=e.selectedSpecialty,l=(0,u.useState)(!1),s=l[0],v=l[1],f=(0,u.useState)([]),p=f[0],h=f[1],g=(0,u.useMemo)((function(){return p.map((function(e){return(0,c.Z)((0,o.Z)({},e),{value:e.id,label:e.name,icon:(0,i.tZ)("img",{src:e.thumbnail,alt:e.name,className:"hospital-image"})})}))}),[p]),m=(0,u.useMemo)((function(){return p.find((function(e){return e.value===(null===r||void 0===r?void 0:r.value)}))}),[p,r]);return(0,u.useEffect)((function(){function e(){return e=(0,a.Z)((function(){var e,o,i;return(0,d.__generator)(this,(function(r){switch(r.label){case 0:return v(!0),[4,(0,w.t9)((0,w.cN)(b.y.GET_LIST_SPECIALTIES_BY_HOSPITAL,{hospitalId:null===n||void 0===n?void 0:n.id,keyword:t&&t.length>=3?t:""}),"GET")];case 1:return o=r.sent(),i=null===o||void 0===o||null===(e=o._data)||void 0===e?void 0:e.specialties,Array.isArray(i)&&h(i),v(!1),[2]}}))})),e.apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[null===n||void 0===n?void 0:n.id,t.length>=3?t:""]),{list:p,loading:s,options:g,currentValue:m,notFound:!p.length}}({selectedHospital:Me,searchSpecialtyKeyword:Ye,selectedSpecialty:Be}),on=F({date:ye,startDate:xe,endDate:Ze,isReset:Oe,isTeleMedicine:Ve,selectedSpecialty:Be,selectedHospital:Me,selectedDoctor:Le,searchDoctorKeyword:$e}),rn=(0,u.useState)(!1),an=rn[0],cn=rn[1],ln=(0,u.useState)(!1),dn=ln[0],un=ln[1];(0,u.useEffect)((function(){Oe||((null===Le||void 0===Le?void 0:Le.id)&&!(null===Be||void 0===Be?void 0:Be.id)?(_e("selected_specialty",ae),cn(!0)):cn(!1))}),[null===Le||void 0===Le?void 0:Le.id]),(0,u.useEffect)((function(){dn||an||Oe||(null===Be||void 0===Be?void 0:Be.id)&&on.options.length>0&&(_e("selected_doctor",on.options[0]),un(!1))}),[null===Be||void 0===Be?void 0:Be.id,an,dn,on.options,Oe]),(0,u.useEffect)((function(){var e,n;(null===(e=on.currentValue)||void 0===e?void 0:e.validOutpatient)||je(!0),(null===(n=on.currentValue)||void 0===n?void 0:n.validTelemedicine)||je(!1)}),[null===(n=on.currentValue)||void 0===n?void 0:n.validOutpatient,null===(t=on.currentValue)||void 0===t?void 0:t.validTelemedicine]);var sn=function(){var e,n,t,o,i,r,a,c,l,d="?doctorId=".concat(null===Le||void 0===Le?void 0:Le.id,"&date=").concat(Ne,"&scheduleId=").concat(Pe,"&telemedicine=").concat(Ve||""),u="/booking/doctor/".concat(d);if(be&&(null===(e=de.userInfo)||void 0===e?void 0:e.email)&&!(null===(n=de.userInfo)||void 0===n?void 0:n.email.endsWith("@hhg.com"))&&!(null===(t=de.userInfo)||void 0===t?void 0:t.email.endsWith("@facebook.com"))&&(null===(o=de.userInfo)||void 0===o?void 0:o.phone)&&(null===(i=de.userInfo)||void 0===i?void 0:i.email_verified_at)&&(null===(r=de.userInfo)||void 0===r?void 0:r.phone_verified_at)&&(null===(a=de.userInfo)||void 0===a?void 0:a.name)&&(null===(c=de.userInfo)||void 0===c?void 0:c.birthday)&&"number"===typeof(null===(l=de.userInfo)||void 0===l?void 0:l.gender))P(u);else{var s=(0,w.je)("".concat(M.nB).concat(u),"care_onboarding");M.Ew?m.u.getState().triggerCareEmailPhoneVerify({returnUrl:"".concat(M.nB).concat(u),source:"care_onboarding"}):window.location.href=s}},vn=(0,u.useMemo)((function(){if(on.schedule)return(0,y.Z)({start:xe,end:Ze}).find((function(e){var n,t=Se(e);return((null===(n=on.schedule.find((function(e){return e.workingDay===t})))||void 0===n?void 0:n.slots)||0)>0}))}),[on.schedule]);function fn(){return fn=(0,a.Z)((function(e){var n,t,o,i,r,a,c,l,u,s,v,f;return(0,d.__generator)(this,(function(d){switch(d.label){case 0:return null===e||void 0===e||e.preventDefault(),kn(ee)?(null===(n=on.currentValue)||void 0===n?void 0:n.frisoCampaign)?de.isLoggedIn&&(null===(t=de.userInfo)||void 0===t?void 0:t.email)&&!(null===(o=de.userInfo)||void 0===o?void 0:o.email.endsWith("@hhg.com"))&&!(null===(i=de.userInfo)||void 0===i?void 0:i.email.endsWith("@facebook.com"))&&(null===(r=de.userInfo)||void 0===r?void 0:r.phone)&&(null===(a=de.userInfo)||void 0===a?void 0:a.email_verified_at)&&(null===(c=de.userInfo)||void 0===c?void 0:c.phone_verified_at)&&(null===(l=de.userInfo)||void 0===l?void 0:l.name)&&(null===(u=de.userInfo)||void 0===u?void 0:u.birthday)&&"number"===typeof(null===(s=de.userInfo)||void 0===s?void 0:s.gender)?Ve?($(!0),[4,(0,w.cA)((0,w.cN)(b.y.GET_FRISO_VALIDATION,{booking_type:"doctor",doctor_id:(null===Le||void 0===Le?void 0:Le.id)||""}),"GET")]):[3,2]:(v=(0,w.je)("".concat(M.nB).concat(L),"care_onboarding"),M.Ew?m.u.getState().triggerCareEmailPhoneVerify({source:"care_onboarding"}):window.location.href=v,[2]):[3,3]:(se({message:re({id:"error.invalid.timeSlot",defaultMessage:"The slot is not available. Please select the time greater than {bufferTime}."},{bufferTime:null===ee||void 0===ee?void 0:ee.started}),type:"danger"}),[2]);case 1:return f=d.sent(),O(f._data),V(!0),Y(f._data.valid),$(!1),[2];case 2:return[2];case 3:return sn(),[2]}}))})),fn.apply(this,arguments)}var pn=function(){V(!1)},hn=(0,u.useMemo)((function(){return!on||!on.schedule||on.schedule.length<1}),[on]),gn=(0,u.useMemo)((function(){var e;return!!de.userInfo&&(null===(e=de.userInfo.email)||void 0===e?void 0:e.includes("@facebook.com"))}),[de.userInfo]),mn=(0,u.useMemo)((function(){return Le?Ve?Le.bufferTimeTele||0:Le.bufferTimeOutpatient||0:0}),[Ve,Le]),bn=(0,u.useMemo)((function(){return!!Le&&(!Le.isSiloam&&Number(Le.price)>0)}),[Le]),wn=[];(null===(x=on.currentValue)||void 0===x?void 0:x.validOutpatient)&&wn.push({name:re({id:"doctorDetailPage.appointment.outpatient",defaultMessage:"Outpatient Appointment"})}),(null===(Z=on.currentValue)||void 0===Z?void 0:Z.validTelemedicine)&&wn.push({name:re({id:"doctorDetailPage.appointment.telemedicine",defaultMessage:"Telemedicine Appointment"})});var yn,kn=function(e){if(!e)return!0;var n=new Date("".concat((0,k.Z)(ye,"yyyy/MM/dd")," ").concat(e.started)),t=new Date,o=M._m*mn;return!(n.getTime()<=t.getTime()+o)};return(0,i.tZ)(i.HY,{children:!Oe&&(0,i.BX)(H.PQ,{children:[(0,i.tZ)(U.Qr,{name:"selected_specialty",control:Te,render:function(e){var n=e.field,t=n.onChange,o=n.value;return(0,i.BX)("div",{children:[(0,i.tZ)(s.T,{size:"label2",type:"bold",color:v.r.colors.gray600,className:"mb-[6px]",children:re({id:"careBooking.specialty",defaultMessage:"Specialty"})}),(0,i.tZ)(ue,{dropdownLabelTrackingAttributes:{"data-event-category":"Care","data-event-action":"Doctor Quick Booking - Specialty Click","data-event-label":te},className:"booking-select",id:"select-specialty",options:tn.options,value:o,placeholderIcon:(0,i.tZ)(H.tv,{src:(null===Be||void 0===Be?void 0:Be.thumbnail)||"".concat(M.nB,"/svg/search.svg")}),onChange:function(e){on.onResetDoctor(),t(e),un(!1),Ie("selected_doctor")},onSearchChange:en,placeholder:tn.options.length?re({id:"careBooking.selectSpecialty",defaultMessage:"Select Specialty"}):re({id:"common.noResultFound",defaultMessage:"No result found"}),useSearchFilter:!1}),tn.notFound&&(0,i.tZ)(fe,{type:ve.jE.SEARCH})]})}}),(0,i.tZ)(U.Qr,{name:"selected_doctor",control:Te,render:function(e){var n,t,o,r,a,c=e.field.onChange;return(0,i.BX)(H.To,{className:"elm-scroll-to",children:[(0,i.tZ)(s.T,{size:"label2",type:"bold",color:v.r.colors.gray600,className:"mb-[6px]",children:re({id:"careBooking.doctor",defaultMessage:"Doctor"})}),(0,i.BX)("div",{className:"booking-select",children:[(0,i.tZ)(ue,{dropdownLabelTrackingAttributes:{"data-event-category":"Care","data-event-action":"Doctor Quick Booking - Doctor Click","data-event-label":te},id:"select-doctor",className:(null===Le||void 0===Le?void 0:Le.id)||(null===(n=on.currentValue)||void 0===n?void 0:n.id)?"has-seleted-option":"",options:on.options,placeholderIcon:(0,i.tZ)(H.tv,{src:(null===Le||void 0===Le?void 0:Le.avatar)||"".concat(M.nB,"/svg/search.svg")}),onChange:c,onSearchChange:nn,placeholder:on.notFound&&!$e&&(null===Be||void 0===Be?void 0:Be.id)?re({id:"common.noResultFound",defaultMessage:"No result found"}):re({id:"careBooking.selectDoctor",defaultMessage:"Select Doctor"}),useSearchFilter:!1}),((null===Le||void 0===Le?void 0:Le.id)||(null===(t=on.currentValue)||void 0===t?void 0:t.id))&&(0,i.tZ)(le,{logo:Le.avatar||on.currentValue.avatar,name:Le.name||on.currentValue.name,price:Le.price||on.currentValue.price,priceUnit:(null===Le||void 0===Le?void 0:Le.priceUnit)||(null===on||void 0===on||null===(o=on.currentValue)||void 0===o?void 0:o.priceUnit),priceTo:(null===Le||void 0===Le?void 0:Le.priceTo)||(null===on||void 0===on||null===(r=on.currentValue)||void 0===r?void 0:r.priceTo),priceType:(null===Le||void 0===Le?void 0:Le.priceType)||(null===on||void 0===on||null===(a=on.currentValue)||void 0===a?void 0:a.priceType),isShowPrice:bn,onEditClick:function(){Ie("selected_doctor"),un(!0)}}),on.notFound&&!on.loading&&(null===Be||void 0===Be?void 0:Be.id)&&($e?(0,i.tZ)(fe,{type:ve.jE.SEARCH,onClick:function(){return T(ve._v.DOCTORS)}}):(0,i.tZ)(fe,{type:ve.jE.DEFAULT,translationId:"careBooking.noDoctorLabel",onClick:function(){return T(ve._v.DOCTORS)}}))]})]})}}),!on.notFound&&!on.loading&&(null===Be||void 0===Be?void 0:Be.id)&&(0,i.BX)(i.HY,{children:[(0,i.BX)(H.Hq,{children:[(null===(C=on.currentValue)||void 0===C?void 0:C.validTelemedicine)&&(0,i.tZ)(H.g,{children:(0,i.tZ)(s.T,{size:"n1",type:"bold",color:"white",children:re({id:"doctorDetailPage.appointment.new",defaultMessage:"New"})})}),(0,i.tZ)(f.T,{className:"booking-tabs",initialTab:0,tabContent:wn,style:{paddingLeft:0},onChange:function(e){je(!!e),_e("selected_schedule",""),Xe&&Ue(!1)}}),(0,i.tZ)("div",{className:"booking-description",children:re({id:"doctorDetailPage.appointment.selectTimeslot",defaultMessage:"Please select the timeslot below"})})]}),(0,i.BX)(H.oR,{children:[(0,i.tZ)(s.T,{size:"label2",type:"bold",color:v.r.colors.gray600,className:"mb-[6px]",children:re({id:"careBooking.time",defaultMessage:"Time"})}),(0,i.tZ)(p.D,{className:"booking-date",customInput:function(e){return(0,i.tZ)(h.I,(0,c.Z)((0,o.Z)({type:"text",size:"md",name:"booking-date"},e),{value:Ce,isDisabled:!(null===Le||void 0===Le?void 0:Le.id)||on.notFound,actionIcon:(0,i.tZ)("img",{src:"".concat(M.nB,"/svg/calendar-solid.svg")}),readOnly:!0,trackingAttributes:{dataEventCategory:"Care",dataEventAction:"Doctor Quick Booking - Appointment Click",dataEventLabel:te}}))},disabledDays:(0,l.Z)(null!==(yn=on.disabledDays)&&void 0!==yn?yn:[]).concat([{before:new Date,after:(null===(E=on.allSchedule)||void 0===E?void 0:E.length)?new Date(on.allSchedule[0].workingDay):Ze}]),locale:I,pickedDate:ye,displayDateFormat:M.iZ,onChange:function(e){ke(e)},placeholder:""}),hn&&!on.loading?(0,i.BX)(H.I6,{children:[(0,i.tZ)(me.Z,{}),(0,i.tZ)(s.T,{size:"sm",color:v.r.colors.gray500,children:re({id:"bookingCard.noResults",defaultMessage:"Sorry! Our doctor is quite busy now. Please come back tomorrow or make a booking with another doctor."})})]}):(0,i.BX)(i.HY,{children:[(0,i.tZ)(oe,{startDate:xe,endDate:Ze,schedules:on.schedule,date:ye,setDate:ke,dataEventCategory:"Care",dataEventAction:"Doctor Quick Booking - Appointment Click",dataEventLabel:te,isTeleMedicine:Ve}),(0,i.tZ)(ie,{workingTimes:on.workingTime,scheduleId:Pe,setSchedule:function(e){e&&(kn(e)?(_e("selected_schedule",e.schedule_id),ne(e),(null===e||void 0===e?void 0:e.schedule_id)&&!Xe&&!Pe&&gn&&(Fe(!0),Ue(!0))):se({message:re({id:"error.invalid.timeSlot",defaultMessage:"The slot is not available. Please select the time greater than {bufferTime}."},{bufferTime:e.started}),type:"danger"}))},dataEventCategory:"Care",dataEventAction:"Doctor Quick Booking - Appointment Click",dataEventLabel:te,isTeleMedicine:Ve}),(0,i.tZ)(ge.Z,{className:"doctor-booking-warning",open:Ge,onContinueBooking:function(){Fe(!1)},handleOnClose:function(){return Fe(!1)}})]})]})]}),(0,i.tZ)(H.I,{children:!on.workingTime&&(null===Be||void 0===Be?void 0:Be.id)?(0,i.tZ)(g.B,{color:"primary",size:"lg",onClick:function(){vn&&ke(vn)},dataEventCategory:"Care",dataEventAction:"Doctor Quick Booking - Booking Click",dataEventLabel:te,isLoading:q,children:re({id:"bookingCard.seeNearest",defaultMessage:"See nearest availabilities"})}):(0,i.tZ)(g.B,{color:"primary",size:"lg",onClick:function(e){return fn.apply(this,arguments)},dataEventCategory:"Care",dataEventAction:"Doctor Quick Booking - Booking Click",dataEventLabel:te,isLoading:q,isDisabled:!Boolean((null===Me||void 0===Me?void 0:Me.id)&&((null===Be||void 0===Be?void 0:Be.id)||(null===Be||void 0===Be?void 0:Be.value))&&(null===Le||void 0===Le?void 0:Le.id)&&Pe),children:re({id:"hospital.bookAnAppointment",defaultMessage:"Book an Appointment"})})}),(0,i.tZ)(pe.Z,{open:R,message:A,handleOnClose:pn,handleOnOk:function(){X?sn():pn()}})]})})},we=t(85100),ye=function(e){var n,t=e.activeTab,f=(0,S.useRouter)(),x=f.locale,Z=void 0===x?"en-PH":x,C=f.push,E=f.asPath,T=f.query,D=(0,L.Z)((0,we.A)(),1)[0],_=(0,u.useMemo)((function(){return"https://".concat(r.domainLocales[Z]).concat(M.nB).concat(E)}),[Z,E]),I=(0,u.useContext)(W.I),A=I.state,O=I.pushNotifications,z=A.isLoggedIn,R=(0,j.Z)().formatMessage,V=B(),F=V.date,Q=V.setDate,X=V.startDate,Y=V.endDate,K=V.dateMonthValue,q=(0,U.Gc)(),$=q.control,J=q.watch,ee=q.setValue,ne=q.resetField,te=J("selected_hospital"),re=J("selected_service"),ae=J("date"),ce=J("selected_service_schedule"),de=(0,u.useState)(""),se=de[0],pe=de[1],he=(0,u.useState)(!0),me=he[0],be=he[1],ye=(0,u.useState)(!1),ke=ye[0],xe=ye[1],Ze=(0,u.useState)(!1),Ce=Ze[0],Ee=Ze[1],Te=(0,u.useState)(void 0),De=Te[0],_e=Te[1];(0,u.useEffect)((function(){be(!0),ne("selected_service"),ne("selected_service_schedule"),ee("date",Se(new Date)),be(!1)}),[]),(0,u.useEffect)((function(){ee("date",Se(F))}),[ce,F]);var Ie,Me=function(e,n,t,r,l,s,v,f){var p=(0,u.useState)(!1),h=p[0],g=p[1],m=(0,u.useState)(!1),k=m[0],x=m[1],Z=(0,u.useState)([]),C=Z[0],E=Z[1],T=(0,u.useState)(null),S=T[0],D=T[1],_=(0,u.useState)(null),I=_[0],M=_[1],B=(0,u.useMemo)((function(){return(null===I||void 0===I?void 0:I.length)?(0,y.Z)({start:new Date,end:(0,N.Z)(new Date(I[0].workingDay),1)}).map((function(e){var n,t=Se(e),o=(null===(n=I.find((function(e){return e.workingDay===t})))||void 0===n?void 0:n.slots)||0;if(!o||0===o)return e})):[]}),[I]),A=(0,u.useMemo)((function(){return C.map((function(e){return(0,c.Z)((0,o.Z)({},e),{value:e.id,label:(0,i.tZ)(G,{name:e.name,price:e.price,priceTo:e.priceTo?String(e.priceTo):"",priceType:e.priceType||"",priceUnit:e.priceUnit}),icon:(0,i.tZ)("img",{src:e.logoService,alt:e.name,className:"hospital-image"})})}))}),[C]),O=(0,u.useMemo)((function(){var n;return null===(n=null===S||void 0===S?void 0:S.find((function(n){return n.workingDay===Se(e||new Date)})))||void 0===n?void 0:n.workingTimes}),[S,e]),z=(0,u.useCallback)((0,a.Z)((function(){var e,o,i;return(0,d.__generator)(this,(function(r){switch(r.label){case 0:return(null===s||void 0===s?void 0:s.id)?(x(!0),[4,Promise.all([(0,w.t9)((0,w.cN)(b.y.GET_SERVICE_SCHEDULE,{serviceId:String(null===s||void 0===s?void 0:s.id),startDate:Se(n),endDate:Se(t)}),"GET"),(0,w.t9)((0,w.cN)(b.y.GET_SERVICE_SCHEDULE,{serviceId:String(null===s||void 0===s?void 0:s.id),startDate:Se(n)}),"GET")])]):[3,2];case 1:return e=L.Z.apply(void 0,[r.sent(),2]),o=e[0],(null===(i=e[1])||void 0===i?void 0:i._data)&&M(i._data.schedules?(0,P.vS)(i._data.schedules):null),(null===o||void 0===o?void 0:o._data)&&D(o._data.schedules?(0,P.vS)(o._data.schedules):null),[3,3];case 2:D(null),r.label=3;case 3:return x(!1),[2]}}))})),[null===s||void 0===s?void 0:s.id,n,t]);return(0,u.useEffect)((function(){l||((null===s||void 0===s?void 0:s.id)&&""!==(null===s||void 0===s?void 0:s.id)?z():D([]))}),[null===s||void 0===s?void 0:s.id,Se(n),l]),(0,u.useEffect)((function(){(0,a.Z)((function(){var e;return(0,d.__generator)(this,(function(n){switch(n.label){case 0:return g(!0),[4,(0,w.t9)((0,w.cN)(b.y.GET_SERVICE_QUICK_BOOKING,{hospitalBranchId:f||"",keyword:v&&v.length>=3?v:""}),"GET",{headers:{accept:"application/json, text/plain, version=2.0.0"}}).then((function(e){var n;return((null===e||void 0===e||null===(n=e._data)||void 0===n?void 0:n.searches.filter((function(e){return!e.package})))||[]).map(P.MV)||[]}))];case 1:return e=n.sent(),E(e),g(!1),[2]}}))}))()}),[f,v&&v.length>=3?v:""]),(0,u.useEffect)((function(){D([])}),[null===s||void 0===s?void 0:s.value,r]),{loading:h,scheduleLoading:k,options:A,schedule:S,workingTime:O,disabledDays:B,allSchedule:I}}(F,X,Y,t,me,re,se,te.id),Be=(0,u.useMemo)((function(){var e;return!!A.userInfo&&(null===(e=A.userInfo.email)||void 0===e?void 0:e.includes("@facebook.com"))}),[A.userInfo]),Le=(0,u.useMemo)((function(){return re&&(null===re||void 0===re?void 0:re.bufferTime)||0}),[]),Pe=(0,u.useMemo)((function(){if(Me.schedule)return(0,y.Z)({start:X,end:Y}).find((function(e){var n,t=Se(e);return((null===(n=Me.schedule.find((function(e){return e.workingDay===t})))||void 0===n?void 0:n.slots)||0)>0}))}),[Me.schedule]),Ne=function(e){if(!e)return!0;var n=new Date("".concat((0,k.Z)(F,"yyyy/MM/dd")," ").concat(e.started)),t=new Date,o=M._m*Le;return!(n.getTime()<=t.getTime()+o)};return(0,i.tZ)(i.HY,{children:!me&&(0,i.BX)(H.PQ,{children:[(0,i.tZ)(U.Qr,{name:"selected_service",control:$,render:function(e){var n=e.field.onChange;return(0,i.BX)(H.To,{className:"elm-scroll-to",children:[(0,i.tZ)(s.T,{size:"label2",type:"bold",color:v.r.colors.gray600,className:"mb-[6px]",children:R({id:"careBooking.service",defaultMessage:"Service"})}),(0,i.BX)("div",{className:"booking-select",children:[(0,i.tZ)(ue,{dropdownLabelTrackingAttributes:{"data-event-category":"Care","data-event-action":"Service Quick Booking - Service Click","data-event-label":_},id:"select-service",className:(null===re||void 0===re?void 0:re.id)?"has-seleted-option":"",options:Me.options,placeholderIcon:(0,i.tZ)(H.tv,{src:(null===re||void 0===re?void 0:re.logoService)||"".concat(M.nB,"/svg/search.svg")}),onChange:n,onSearchChange:function(e){return pe(e)},placeholder:R({id:"careBooking.selectService",defaultMessage:"Select Service"}),useSearchFilter:!1}),(null===re||void 0===re?void 0:re.id)&&(0,i.tZ)(le,{logo:re.logoService,name:re.name,price:re.price,priceTo:re.priceTo?String(re.priceTo):"",priceType:re.priceType||"",priceUnit:re.priceUnit,onEditClick:function(){return ne("selected_service")}}),(!Array.isArray(Me.options)||0===Me.options.length)&&(se?(0,i.tZ)(fe,{type:ve.jE.SEARCH}):(0,i.tZ)(fe,{type:ve.jE.DEFAULT,translationId:"careBooking.noHospitalLabel",onClick:function(){var e=(0,c.Z)((0,o.Z)({},T),{tab:D.services});f.replace({pathname:f.pathname,query:e},void 0,{shallow:!0})}}))]})]})}}),(0,i.BX)(H.oR,{children:[(0,i.tZ)(s.T,{size:"label2",type:"bold",color:v.r.colors.gray600,className:"mb-[6px]",children:R({id:"careBooking.time",defaultMessage:"Time"})}),(0,i.tZ)(p.D,{className:"booking-date",customInput:function(e){return(0,i.tZ)(h.I,(0,c.Z)((0,o.Z)({type:"text",size:"md",name:"booking-date"},e),{value:K,isDisabled:!(null===re||void 0===re?void 0:re.id),actionIcon:(0,i.tZ)("img",{src:"".concat(M.nB,"/svg/calendar-solid.svg")}),readOnly:!0,trackingAttributes:{dataEventCategory:"Care",dataEventAction:"Service Quick Booking - Appointment Click",dataEventLabel:_}}))},disabledDays:(0,l.Z)(null!==(Ie=Me.disabledDays)&&void 0!==Ie?Ie:[]).concat([{before:new Date,after:(null===(n=Me.allSchedule)||void 0===n?void 0:n.length)?new Date(Me.allSchedule[0].workingDay):Y}]),locale:Z,pickedDate:F,displayDateFormat:M.iZ,onChange:function(e){Q(e)},placeholder:""}),(0,i.tZ)(oe,{startDate:X,endDate:Y,schedules:Me.schedule,date:F,setDate:Q,dataEventCategory:"Care",dataEventAction:"Service Quick Booking - Appointment Click",dataEventLabel:_,isTeleMedicine:!1}),(0,i.tZ)(ie,{workingTimes:Me.workingTime,scheduleId:ce,setSchedule:function(e){e&&(Ne(e)?(ee("selected_service_schedule",e.schedule_id),_e(e),e.schedule_id&&!Ce&&!ce&&Be&&(xe(!0),Ee(!0))):O({message:R({id:"error.invalid.timeSlot",defaultMessage:"The slot is not available. Please select the time greater than {bufferTime}."},{bufferTime:e.started}),type:"danger"}))},dataEventCategory:"Care",dataEventAction:"Service Quick Booking - Appointment Click",dataEventLabel:_,isTeleMedicine:!1}),(0,i.tZ)(ge.Z,{className:"doctor-booking-warning",open:ke,onContinueBooking:function(){xe(!1)},handleOnClose:function(){return xe(!1)}})]}),(0,i.tZ)(H.I,{children:!Me.workingTime&&(null===re||void 0===re?void 0:re.id)?(0,i.tZ)(g.B,{color:"primary",size:"lg",onClick:function(){Pe&&Q(Pe)},dataEventCategory:"Care",dataEventAction:"Doctor Quick Booking - Booking Click",dataEventLabel:_,children:R({id:"bookingCard.seeNearest",defaultMessage:"See nearest availabilities"})}):(0,i.tZ)(g.B,{color:"primary",size:"lg",dataEventCategory:"Care",dataEventAction:"Service Quick Booking - Booking Click",dataEventLabel:_,isDisabled:!Boolean((null===te||void 0===te?void 0:te.id)&&(null===re||void 0===re?void 0:re.value)&&ce),onClick:function(e){var n,t,o,i,r,a,c,l,d;if(null===e||void 0===e||e.preventDefault(),Ne(De)){var u="?serviceId=".concat(null===re||void 0===re?void 0:re.id,"&date=").concat(ae,"&scheduleId=").concat(ce),s="/booking/service/".concat(u);if(z&&(null===(n=A.userInfo)||void 0===n?void 0:n.email)&&!(null===(t=A.userInfo)||void 0===t?void 0:t.email.endsWith("@hhg.com"))&&!(null===(o=A.userInfo)||void 0===o?void 0:o.email.endsWith("@facebook.com"))&&(null===(i=A.userInfo)||void 0===i?void 0:i.phone)&&(null===(r=A.userInfo)||void 0===r?void 0:r.email_verified_at)&&(null===(a=A.userInfo)||void 0===a?void 0:a.phone_verified_at)&&(null===(c=A.userInfo)||void 0===c?void 0:c.name)&&(null===(l=A.userInfo)||void 0===l?void 0:l.birthday)&&"number"===typeof(null===(d=A.userInfo)||void 0===d?void 0:d.gender))C(s);else{var v=(0,w.je)("".concat(M.nB).concat(s),"care_onboarding");M.Ew?m.u.getState().triggerCareEmailPhoneVerify({returnUrl:"".concat(M.nB).concat(E),source:"care_onboarding"}):window.location.href=v}}else O({message:R({id:"error.invalid.timeSlot",defaultMessage:"The slot is not available. Please select the time greater than {bufferTime}."},{bufferTime:null===De||void 0===De?void 0:De.started}),type:"danger"})},children:R({id:"hospital.bookAnAppointment",defaultMessage:"Book an Appointment"})})})]})})};function ke(){return ke=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ke.apply(this,arguments)}var xe,Ze=function(e){return u.createElement("svg",ke({width:23,height:22,xmlns:"http://www.w3.org/2000/svg"},e),ae||(ae=u.createElement("path",{d:"M11.25 1.832c-1.873 0-3.695.161-4.927.401-.867.168-1.49.92-1.49 1.805v2.377c0 .505.412.917.917.917h11a.918.918 0 00.917-.917V4.066c0-.884-.623-1.636-1.49-1.804-1.235-.24-3.065-.43-4.927-.43zm-.917.917h1.834v.916h.916V5.5h-.916v.916h-1.834V5.5h-.916V3.665h.916V2.75zm-5.213 5.5a9.055 9.055 0 00-.258 1.403c-.05.444-.15 1.626-.143 1.748a2.134 2.134 0 00-.802 1.69c0 1.027.709 1.908 1.661 2.12.992 2.41 2.98 4.955 5.672 4.955 2.693 0 4.68-2.57 5.672-4.984a2.129 2.129 0 001.661-2.091c0-.677-.297-1.293-.802-1.69.008-.122-.09-1.325-.143-1.776a9.186 9.186 0 00-.258-1.375H9.445c1.286 1.876 4.308.755 6.245 1.231.591 1.29.143 3.094.143 3.094l.717.23c.103.032.2.125.2.286 0 .172-.125.322-.344.315l-.744-.115-.258.717c-.892 2.545-2.6 4.325-4.154 4.325-1.554 0-3.262-1.78-4.154-4.325l-.286-.717-.773.115c-.158 0-.287-.143-.287-.315 0-.161.097-.254.2-.287l.717-.229c-.111.133-.466-1.901 0-2.635.834-.577 1.532-.176 2.52-1.69H5.12zm4.125 2.807c-.666 0-1.203.551-1.203 1.232 0 .68.537 1.232 1.203 1.232s1.203-.552 1.203-1.232c0-.68-.537-1.232-1.203-1.232zm4.01 0c-.666 0-1.203.551-1.203 1.232 0 .68.537 1.232 1.203 1.232s1.203-.552 1.203-1.232c0-.68-.537-1.232-1.203-1.232z",fill:"#737373"})))};function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ce.apply(this,arguments)}var Ee,Te=function(e){return u.createElement("svg",Ce({width:23,height:22,viewBox:"0 0 23 22",xmlns:"http://www.w3.org/2000/svg"},e),xe||(xe=u.createElement("path",{d:"M11.25 1.832a9.162 9.162 0 00-7.333 3.667h2.492a7.353 7.353 0 014.841-1.834c1.801 0 3.52.674 4.841 1.834h2.492a9.162 9.162 0 00-7.333-3.667zM3.315 6.415c-.78 2.428-1.232 5.243-1.232 8.25 0 1.927.176 3.778.516 5.5h17.302c.34-1.722.516-3.573.516-5.5 0-3.007-.451-5.822-1.232-8.25H3.315zm7.935 2.75a4.583 4.583 0 110 9.166 4.583 4.583 0 010-9.166zM10.334 11v1.833H8.5v1.833h1.834V16.5h1.833v-1.834H14v-1.833h-1.833v-1.833h-1.833z",fill:"#737373"})))},Se=function(e){var n=e||new Date;return"".concat(n.getFullYear(),"-").concat(String(n.getMonth()+1).padStart(2,"0"),"-").concat(String(n.getDate()).padStart(2,"0"))};!function(e){e[e.DOCTOR=0]="DOCTOR",e[e.SERVICE=1]="SERVICE"}(Ee||(Ee={}));var De=function(e,n,t){return[{name:e({id:"careBooking.doctor",defaultMessage:"Doctor"}),icon:(0,i.tZ)(Ze,{}),textType:"semiBold",textSize:"p4",dataEventCategory:"Care",dataEventAction:"Quick Booking - Doctor Tab Click",dataEventLabel:"https://".concat(r.domainLocales[n]).concat(M.nB).concat(t)},{name:e({id:"careBooking.service",defaultMessage:"Service"}),icon:(0,i.tZ)(Te,{}),textType:"semiBold",textSize:"p4",dataEventCategory:"Care",dataEventAction:"Quick Booking - Service Tab Click",dataEventLabel:"https://".concat(r.domainLocales[n]).concat(M.nB).concat(t)}]};function _e(e,n){switch(e){case Ee.DOCTOR:return(0,i.tZ)(be,(0,o.Z)({},n));case Ee.SERVICE:return(0,i.tZ)(ye,(0,o.Z)({},n));default:return null}}},91940:function(e,n,t){t.d(n,{As:function(){return G},Dp:function(){return q},EQ:function(){return ne},G_:function(){return Q},Hq:function(){return te},I:function(){return z},I6:function(){return ie},Kk:function(){return W},PQ:function(){return Y},To:function(){return A},Tz:function(){return U},V$:function(){return V},aT:function(){return J},g:function(){return oe},g4:function(){return P},lS:function(){return K},o1:function(){return $},oR:function(){return O},rR:function(){return F},t6:function(){return N},tv:function(){return X},un:function(){return H},up:function(){return R},vA:function(){return j},xL:function(){return ee}});var o=t(7297),i=t(70454),r=t(45556),a=t(50066);function c(){var e=(0,o.Z)(["\n  min-width: 360px;\n  max-width: 360px;\n  background-color: ",";\n  border-radius: 6px;\n  padding: 16px;\n  margin-top: 24px;\n\n  .quick-booking-switch {\n    margin-block: 24px;\n    width: 100%;\n    & > li {\n      width: 100%;\n      justify-content: center;\n      &[data-is-tab-active='true'] {\n        svg path {\n          fill: ",";\n        }\n      }\n\n      &[data-is-tab-active='false'] {\n        svg path {\n          fill: ",";\n        }\n      }\n    }\n  }\n\n  .selected-hospital-input input:disabled {\n    background-color: transparent;\n  }\n"]);return c=function(){return e},e}function l(){var e=(0,o.Z)(["\n  position: relative;\n  overflow: auto;\n  height: calc(100vh - 70px);\n  padding: 16px;\n  background-color: ",";\n\n  "," {\n    height: calc(var(--app-height, 100vh) - 70px);\n  }\n\n  ::-webkit-scrollbar {\n    display: none;\n  }\n\n  .quick-booking-switch {\n    margin-bottom: 24px;\n    width: 100%;\n    & > li {\n      width: 100%;\n      justify-content: center;\n      &[data-is-tab-active='true'] {\n        svg path {\n          fill: ",";\n        }\n      }\n\n      &[data-is-tab-active='false'] {\n        svg path {\n          fill: ",";\n        }\n      }\n    }\n  }\n"]);return l=function(){return e},e}function d(){var e=(0,o.Z)(["\n  .booking-select {\n    position: relative;\n    &[data-has-icons='true'] {\n      border: 1px solid ",";\n      &:not([data-disabled='true']) {\n        background-color: ",";\n      }\n    }\n\n    ul {\n      z-index: ",";\n      max-height: 304px;\n      background-color: ",";\n      box-shadow: -4px 4px 8px rgba(67, 86, 100, 0.102956),\n        -8px 8px 16px rgba(67, 86, 100, 0.0780977);\n      overflow-y: scroll;\n      img {\n        object-fit: contain;\n      }\n    }\n    /* span {\n      text-overflow: ellipsis;\n      white-space: nowrap;\n      overflow: hidden;\n      padding-right: 10px;\n    } */\n\n    .has-seleted-option {\n      display: none;\n    }\n  }\n"]);return d=function(){return e},e}function u(){var e=(0,o.Z)(["\n  background-color: ",";\n  position: relative;\n\n  input {\n    background-color: ",";\n    cursor: pointer;\n  }\n\n  .doctor-booking-warning {\n    width: 100%;\n  }\n"]);return u=function(){return e},e}function s(){var e=(0,o.Z)(["\n  button,\n  a {\n    width: 100%;\n  }\n  a {\n    text-decoration: none;\n  }\n"]);return s=function(){return e},e}function v(){var e=(0,o.Z)(["\n  position: relative;\n  padding: 8px 0 24px;\n  font-size: 14px;\n  .no-result {\n    margin-top: 8px;\n\n    a {\n      text-decoration: none;\n    }\n  }\n"]);return v=function(){return e},e}function f(){var e=(0,o.Z)(["\n  position: initial;\n  top: 0;\n  left: 0;\n  display: flex;\n  width: 100%;\n  align-items: center;\n  padding: 8px;\n  background-color: ",";\n  border: 1px solid ",";\n  border-radius: 6px;\n  gap: 8px;\n  > img {\n    width: 32px;\n    height: 32px;\n    border-radius: 50%;\n    object-fit: cover;\n    outline: 1px solid ",";\n  }\n\n  .doctor-edit-icon {\n    align-self: flex-start;\n    margin-left: auto;\n    cursor: pointer;\n    flex: 0 0 16px;\n  }\n  .hospital-card-icon {\n    padding-right: 8px;\n  }\n"]);return f=function(){return e},e}function p(){var e=(0,o.Z)(["\n  display: flex;\n  overflow: hidden;\n  width: 100%;\n  align-items: center;\n  justify-content: space-between;\n  margin-top: 16px;\n\n  .chevron {\n    cursor: pointer;\n\n    path {\n      stroke: "," !important;\n      transition: stroke 0.2s;\n    }\n\n    &.disabled {\n      pointer-events: none;\n      path {\n        stroke: "," !important;\n      }\n    }\n\n    &.right {\n      transform: rotateZ(180deg);\n    }\n  }\n"]);return p=function(){return e},e}function h(){var e=(0,o.Z)(["\n  display: flex;\n  width: calc(100% - 64px);\n  flex-wrap: nowrap;\n  padding: 8px 0px;\n  gap: 8px;\n  overflow-x: scroll;\n\n  ::-webkit-scrollbar {\n    display: none;\n  }\n"]);return h=function(){return e},e}function g(){var e=(0,o.Z)(["\n  display: flex;\n  width: 86px;\n  padding: 5px;\n  height: 68px;\n  flex: 0 0 calc((100% - 24px) / 3);\n  flex-direction: column;\n  align-items: center;\n  justify-content: space-between;\n  border: 1px solid transparent;\n  margin: 0 auto;\n  background: ",";\n  border-radius: 6px;\n  cursor: pointer;\n\n  .day {\n    line-height: 20px;\n  }\n\n  &[data-active='true'] {\n    border-color: ",";\n    background-color: ",";\n  }\n\n  * {\n    pointer-events: none;\n  }\n  p {\n    line-height: 18px;\n  }\n\n  &.tele-booking-day-card {\n    .slot-number {\n      color: ",";\n    }\n\n    &[data-active='true'] {\n      border: 1px solid ",";\n      background: #fff8e2;\n    }\n  }\n"]);return g=function(){return e},e}function m(){var e=(0,o.Z)(["\n  margin-top: 24px;\n\n  .booking-time-tabs {\n    width: 100%;\n    > li {\n      flex: 1;\n      justify-content: center;\n      &[aria-selected='false'] {\n        border-bottom: 3px solid transparent;\n        margin-bottom: -1px;\n      }\n    }\n  }\n"]);return m=function(){return e},e}function b(){var e=(0,o.Z)(["\n  display: grid;\n  margin-top: 24px;\n  grid-gap: 8px;\n  grid-template-columns: repeat(3, 1fr);\n\n  button {\n    padding: 7px 0 !important;\n    &[data-color='secondary'] {\n      padding: 8px 0 !important;\n      border: 1px solid ",";\n      > span {\n        color: ",";\n        font-weight: ",";\n      }\n    }\n\n    &.tele-booking-time-btn {\n      &:hover {\n        background-color: "," !important;\n        border: 1px solid "," !important;\n        > span {\n          color: ",";\n        }\n      }\n      &[data-color='primary'] {\n        background-color: ",";\n        border: 1px solid ",";\n        > span {\n          color: ",";\n        }\n\n        &:hover {\n          background-color: ",";\n          border: 1px solid\n            ",";\n        }\n      }\n    }\n  }\n"]);return b=function(){return e},e}function w(){var e=(0,o.Z)(["\n  width: 100%;\n  overflow: hidden;\n  padding: 16px;\n  .type {\n    &-wrapper {\n      width: 100%;\n      display: flex;\n      justify-content: center;\n      align-items: center;\n      border-radius: 8px;\n      padding: 4px;\n      background-color: ",";\n    }\n    &-button {\n      width: 100%;\n      /* padding: 7px 16px; */\n      max-height: 32px;\n      border-radius: 4px;\n      &.active {\n      }\n    }\n  }\n"]);return w=function(){return e},e}function y(){var e=(0,o.Z)(["\n  padding: 8px 8px 8px 16px;\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 60px;\n  background-color: ",";\n  border-radius: 6px;\n  p {\n    font-size: 14px;\n    font-weight: 400;\n    color: ",";\n    letter-spacing: -0.2px;\n    line-height: 22px;\n  }\n"]);return y=function(){return e},e}function k(){var e=(0,o.Z)(["\n  width: 24px;\n  height: 24px;\n  object-fit: contain;\n"]);return k=function(){return e},e}function x(){var e=(0,o.Z)(["\n  overflow: hidden;\n  .hospital-card-icon {\n    padding-right: 0;\n  }\n  .option-name {\n    overflow: hidden;\n    text-overflow: ellipsis;\n    white-space: nowrap;\n  }\n"]);return x=function(){return e},e}function Z(){var e=(0,o.Z)(["\n  display: flex;\n  flex: 2;\n  align-items: center;\n\n  .icon-price {\n    display: flex;\n    flex-direction: column;\n    justify-content: center;\n    padding-right: 8px;\n    img {\n      width: 16px;\n      height: 16px;\n    }\n  }\n\n  .text-price {\n    display: flex;\n    flex-wrap: wrap;\n  }\n\n  .price {\n    font-weight: 600;\n  }\n"]);return Z=function(){return e},e}function C(){var e=(0,o.Z)(["\n  display: flex;\n  flex-direction: column;\n  gap: 24px;\n  position: relative;\n\n  "," {\n    &[data-has-switch='false'] {\n      margin-top: 24px;\n    }\n  }\n"]);return C=function(){return e},e}function E(){var e=(0,o.Z)(["\n  position: relative;\n  border: 1px solid ",";\n  background-position: right 16px center;\n  border-radius: 6px;\n  background-color: ",";\n\n  &[data-has-icons='true'] {\n    border: none;\n\n    img,\n    svg {\n      display: inline-block;\n      max-width: 16px;\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      z-index: 0;\n      padding: 8px 0px;\n    }\n\n    &[data-is-open='false'] {\n      > div::after {\n        top: 50%;\n        right: 0;\n        width: 52px;\n        height: 36px;\n        background-image: url(\"data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.99968 11.7259L6.81551 8.54171C6.47051 8.19671 5.91051 8.19671 5.56551 8.54171C5.22051 8.88671 5.22051 9.44671 5.56551 9.79171L9.41051 13.6367C9.73635 13.9625 10.2638 13.9625 10.5888 13.6367L14.4338 9.79171C14.7788 9.44671 14.7788 8.88671 14.4338 8.54171C14.0888 8.19671 13.5288 8.19671 13.1838 8.54171L9.99968 11.7259Z' fill='%23595959'/%3E%3C/svg%3E%0A\");\n        background-position: center;\n        background-repeat: no-repeat;\n        content: '';\n        transform: translateY(-50%);\n      }\n    }\n    &[data-is-open='true'] {\n      > div::after {\n        top: 50%;\n        right: 0;\n        width: 52px;\n        height: 36px;\n        background-image: url(\"data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1.66675 10.0001C1.66675 5.39175 5.39175 1.66675 10.0001 1.66675C14.6084 1.66675 18.3334 5.39175 18.3334 10.0001C18.3334 14.6084 14.6084 18.3334 10.0001 18.3334C5.39175 18.3334 1.66675 14.6084 1.66675 10.0001ZM12.4084 13.5834C12.7334 13.9084 13.2584 13.9084 13.5834 13.5834C13.9001 13.2584 13.9001 12.7251 13.5834 12.4084L11.1751 10.0001L13.5834 7.59175C13.9084 7.26675 13.9084 6.74175 13.5834 6.41675C13.2584 6.09175 12.7334 6.09175 12.4084 6.41675L10.0001 8.82508L7.59175 6.41675C7.26675 6.09175 6.74175 6.09175 6.41675 6.41675C6.2607 6.57244 6.17301 6.78382 6.17301 7.00425C6.17301 7.22468 6.2607 7.43606 6.41675 7.59175L8.82508 10.0001L6.41675 12.4084C6.2607 12.5641 6.17301 12.7755 6.17301 12.9959C6.17301 13.2163 6.2607 13.4277 6.41675 13.5834C6.74175 13.9084 7.26675 13.9084 7.59175 13.5834L10.0001 11.1751L12.4084 13.5834Z' fill='%238C8C8C'/%3E%3C/svg%3E%0A\");\n        background-position: center;\n        background-repeat: no-repeat;\n        content: '';\n        transform: translateY(-50%);\n      }\n    }\n\n    &:disabled {\n      > div::after {\n        display: none;\n      }\n    }\n  }\n\n  &:hover {\n    box-shadow: 0 0 2px 2px ",";\n  }\n"]);return E=function(){return e},e}function T(){var e=(0,o.Z)(["\n  cursor: pointer;\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"]);return T=function(){return e},e}function S(){var e=(0,o.Z)(["\n  position: absolute;\n  z-index: 100;\n  top: 100%;\n  right: 0;\n  left: 0;\n  display: block;\n  max-height: 500px;\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  overflow-y: auto;\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"]);return S=function(){return e},e}function D(){var e=(0,o.Z)(["\n  display: flex;\n  width: 100%;\n  align-items: center;\n  justify-content: flex-start;\n  padding: 6px 18px 6px 16px;\n  &:hover,\n  :active {\n    background: ",";\n  }\n  .dropdown-label {\n    line-height: 20px;\n  }\n"]);return D=function(){return e},e}function _(){var e=(0,o.Z)(["\n  width: 24px;\n  height: 24px;\n  flex-shrink: 0;\n  overflow: hidden;\n"]);return _=function(){return e},e}function I(){var e=(0,o.Z)(["\n  input {\n    padding: 12px 36px 12px 48px;\n  }\n\n  &[data-has-display-icon] input {\n    padding: 12px 36px 12px 48px;\n  }\n  .displayIcon {\n    img {\n      width: 24px;\n      max-width: unset;\n      height: 24px;\n    }\n  }\n"]);return I=function(){return e},e}function M(){var e=(0,o.Z)(["\n  position: relative;\n\n  .booking-tabs {\n    width: 100%;\n\n    li {\n      flex: 1;\n      justify-content: center;\n    }\n  }\n\n  .booking-description {\n    color: ",";\n    font-size: 14px;\n    line-height: 22px;\n    margin-top: 20px;\n  }\n"]);return M=function(){return e},e}function B(){var e=(0,o.Z)(["\n  position: absolute;\n  background-color: ",";\n  padding: 2px 4px;\n  border-radius: 2px;\n  right: 0;\n  top: -20px;\n"]);return B=function(){return e},e}function L(){var e=(0,o.Z)(["\n  padding: 20px;\n  svg {\n    display: block;\n    max-width: 84px;\n    margin: 0 auto;\n    margin-bottom: 26px;\n  }\n"]);return L=function(){return e},e}var P=a.ZP.div.withConfig({componentId:"sc-ce33c832-0"})(c(),(function(e){return e.theme.colors.neutral50}),(function(e){return e.theme.colors.primaryActive}),(function(e){return e.theme.colors.gray500})),N=a.ZP.form.withConfig({componentId:"sc-ce33c832-1"})(l(),(function(e){return e.theme.colors.neutral50}),i.M.mbDown,(function(e){return e.theme.colors.primaryActive}),(function(e){return e.theme.colors.gray500})),A=a.ZP.div.withConfig({componentId:"sc-ce33c832-2"})(d(),(function(e){return e.theme.colors.gray200}),(function(e){return e.theme.colors.white}),(function(e){return e.theme.zIndexes.onTop}),(function(e){return e.theme.colors.white})),O=a.ZP.div.withConfig({componentId:"sc-ce33c832-3"})(u(),(function(e){return e.theme.colors.neutral50}),(function(e){return e.theme.colors.white})),z=a.ZP.div.withConfig({componentId:"sc-ce33c832-4"})(s()),R=(a.ZP.div.withConfig({componentId:"sc-ce33c832-5"})(v()),a.ZP.div.withConfig({componentId:"sc-ce33c832-6"})(f(),(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.neutral100}),(function(e){return e.theme.colors.gray100}))),V=a.ZP.div.withConfig({componentId:"sc-ce33c832-7"})(p(),(function(e){return e.theme.colors.gray600}),(function(e){return e.theme.colors.gray300})),j=a.ZP.div.withConfig({componentId:"sc-ce33c832-8"})(h()),H=a.ZP.div.withConfig({componentId:"sc-ce33c832-9"})(g(),(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.primaryBase}),(function(e){return e.theme.colors.blue50}),(function(e){return e.theme.colors.yellow900}),(function(e){return e.theme.colors.yellow900})),G=a.ZP.div.withConfig({componentId:"sc-ce33c832-10"})(m()),F=a.ZP.div.withConfig({componentId:"sc-ce33c832-11"})(b(),(function(e){return e.theme.colors.neutral200}),(function(e){return e.theme.colors.gray800}),(function(e){return e.theme.sizes.fwRegular}),(function(e){return e.theme.colors.yellow900}),(function(e){return e.theme.colors.yellow900}),(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.yellow900}),(function(e){return e.theme.colors.yellow900}),(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.yellow900}),(function(e){return e.theme.colors.yellow900})),Q=(a.ZP.div.withConfig({componentId:"sc-ce33c832-12"})(w(),(function(e){return e.theme.colors.neutral50})),a.ZP.div.withConfig({componentId:"sc-ce33c832-13"})(y(),(function(e){return e.theme.colors.neutral50}),(function(e){return e.theme.colors.gray400}))),X=a.ZP.img.withConfig({componentId:"sc-ce33c832-14"})(k()),U=a.ZP.div.withConfig({componentId:"sc-ce33c832-15"})(x()),W=a.ZP.div.withConfig({componentId:"sc-ce33c832-16"})(Z()),Y=a.ZP.div.withConfig({componentId:"sc-ce33c832-17"})(C(),i.M.mbUp),K=a.ZP.div.withConfig({componentId:"sc-ce33c832-18"})(E(),(function(e){return e.theme.colors.gray200}),(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.blue200})),q=a.ZP.div.withConfig({componentId:"sc-ce33c832-19"})(T(),(function(e){return e.theme.colors.primaryBase}),(function(e){return e.theme.colors.blue200})),$=a.ZP.ul.withConfig({componentId:"sc-ce33c832-20"})(S(),(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.gray200})),J=a.ZP.li.withConfig({componentId:"sc-ce33c832-21"})(D(),(function(e){return e.theme.colors.gray100})),ee=a.ZP.div.withConfig({componentId:"sc-ce33c832-22"})(_()),ne=(0,a.ZP)(r.P).withConfig({componentId:"sc-ce33c832-23"})(I()),te=a.ZP.div.withConfig({componentId:"sc-ce33c832-24"})(M(),(function(e){return e.theme.colors.gray600})),oe=a.ZP.div.withConfig({componentId:"sc-ce33c832-25"})(B(),(function(e){return e.theme.colors.green500})),ie=a.ZP.div.withConfig({componentId:"sc-ce33c832-26"})(L())}}]);