(self.webpackChunkhhgHealthCareV1=self.webpackChunkhhgHealthCareV1||[]).push([[1051,3332,7311,7812],{89902:function(n,e,t){"use strict";var i,o,r=t(73884);function a(){return a=Object.assign?Object.assign.bind():function(n){for(var e=1;e0&&x.append("services[".concat(P,"][id]"),j.id.toString()),Number(j.priceType)===l.vne.RANGE&&j.maxPrice&&x.append("services[".concat(P,"][price_to]"),j.maxPrice.toString()))}}catch(H){S=!0,O=H}finally{try{z||null==B.return||B.return()}finally{if(S)throw O}}return F.length&&x.append("services_delete_ids",F.join(",")),null===(d=n.experiences)||void 0===d||d.forEach(u("experience",x)),null===(f=n.education)||void 0===f||f.forEach(u("education",x)),null===(h=n.awards)||void 0===h||h.forEach(u("awards",x)),null===(g=n.publication)||void 0===g||g.forEach(p("publication",x)),null===(m=n.memberships)||void 0===m||m.forEach(p("memberships",x)),null===(v=n.languages)||void 0===v||v.forEach((function(n){x.append("languages[]",n.name||"")})),null===(b=n.faq)||void 0===b||b.map((function(n){n.saved,n.previousValue;var e=(0,r.A)(n,["saved","previousValue"]);return{fields:(0,o.A)({},e)}})).forEach(u("faqs",x)),x}function u(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return function(i,o){var r=!0,c=!1,l=void 0;try{for(var s,d=Object.entries(i.fields)[Symbol.iterator]();!(r=(s=d.next()).done);r=!0){var u=(0,a.A)(s.value,2),p=u[0],f=u[1];"id"!==p&&!t.includes(p)&&f&&e.append("".concat(n,"[").concat(o,"][").concat(p,"]"),f.toString())}}catch(h){c=!0,l=h}finally{try{r||null==d.return||d.return()}finally{if(c)throw l}}}}function p(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return function(i,o){var r=!0,c=!1,l=void 0;try{for(var s,d=Object.entries(i)[Symbol.iterator]();!(r=(s=d.next()).done);r=!0){var u=(0,a.A)(s.value,2),p=u[0],f=u[1];"id"!==p&&!t.includes(p)&&f&&e.append("".concat(n,"[").concat(o,"][").concat(p,"]"),f.toString())}}catch(h){c=!0,l=h}finally{try{r||null==d.return||d.return()}finally{if(c)throw l}}}}function f(n,e){var t,i,r,a,c,s,d,u,p,f,h,g,m,v,b,x,w={isPreview:!1,doctorName:n.name,doctorEmail:e?"":n.email?n.email:"",notifyOtherEmail:!!n.emailNotification,emailNotification:e?"":n.emailNotification,doctorGender:null===(t=n.gender)||void 0===t?void 0:t.toString(),about:n.description,hospital:e?void 0:{label:(null===(i=n.hospital)||void 0===i?void 0:i.name)||"",value:Number((null===(r=n.hospital)||void 0===r?void 0:r.id)||0)},branch:e?void 0:{label:(null===(a=n.branch)||void 0===a?void 0:a.name)||"",value:Number((null===(c=n.branch)||void 0===c?void 0:c.id)||0)},specialties:(null===(s=n.specialties)||void 0===s?void 0:s.map((function(n){return{value:n.id,label:n.name}})))||[],areaOfExpertise:(null===(d=n.expertise)||void 0===d?void 0:d.map((function(n){return{value:n.id,label:n.name}})))||[],provideCareFor:{adults:Boolean(n.provideCare===l.jc_.BOTH||n.provideCare===l.jc_.ADULTS),children:Boolean(n.provideCare===l.jc_.BOTH||n.provideCare===l.jc_.CHILDREN)},atAGlance:n.glance,additionalServices:n.services?n.services.map((function(n){return{saved:!0,toRemove:!1,id:n.id,description:n.description,name:n.name,priceType:n.price_type,price:n.price?Math.round(Number(n.price)):void 0,maxPrice:n.price_to||0}})):[],experiences:(null===(u=n.experience)||void 0===u?void 0:u.map((function(n,e){return{id:e,saved:!0,fields:n}})))||[],education:(null===(p=n.education)||void 0===p?void 0:p.map((function(n,e){return{id:e,saved:!0,fields:n}})))||[],awards:(null===(f=n.awards)||void 0===f?void 0:f.map((function(n,e){return{id:e,saved:!0,fields:n}})))||[],publication:(null===(h=n.publication)||void 0===h?void 0:h.map((function(n,e){return(0,o.A)({id:e},n)})))||[],memberships:(null===(g=n.memberships)||void 0===g?void 0:g.map((function(n,e){return(0,o.A)({id:e},n)})))||[],languages:(null===(m=n.languages)||void 0===m?void 0:m.map((function(n,e){return{id:e,name:n}})))||[],faq:(null===(v=n.faqs)||void 0===v?void 0:v.map((function(n){return(0,o.A)({saved:!0},n)})))||[],contract:null===(b=n.contract)||void 0===b?void 0:b.toString(),tierDesc:n.tier?{label:n.tier.description,value:n.tier.id}:null,tierLever:n.tier?{label:n.tier.level,value:n.tier.level}:null,academyDesc:n.academy?{label:n.academy.description,value:n.academy.id}:null,academyLever:n.academy?{label:n.academy.level,value:n.academy.level}:null,client:n.client?{label:n.client.label,value:n.client.value}:null};if(n.avatar&&(w.doctorProfilePicture=n.avatar),n.phone&&!e&&(w.phoneNumber=n.phone),null===(x=n.experiences)||void 0===x?void 0:x.length){w.experiencesLegacy="";var y=!0,A=!1,C=void 0;try{for(var M,_=n.experiences[Symbol.iterator]();!(y=(M=_.next()).done);y=!0){var k=M.value;try{var Y=JSON.parse(k.description),D=Y.content,E=Y.year;(D||E)&&(w.experiencesLegacy+="".concat(D,": ").concat(E,"\n"))}catch(I){}}}catch(N){A=!0,C=N}finally{try{y||null==_.return||_.return()}finally{if(A)throw C}}}return w}function h(n){var e,t,i,o,r,a;return{id:+new Date,doctorId:Date.now().toString(),gender:Number(n.doctorGender),name:n.doctorName,provideCare:n.provideCareFor.adults&&n.provideCareFor.children?l.jc_.BOTH:n.provideCareFor.adults?l.jc_.ADULTS:l.jc_.CHILDREN,phone:n.phoneNumber||"",glance:n.atAGlance||"",specialties:n.specialties.map((function(n){return{id:Number(n.value),name:n.label}})),expertise:n.areaOfExpertise.map((function(n){return{id:Number(n.value),name:n.label}})),avatar:"".concat(l.JpE,"/images/avatar.jpg"),bookingUrl:"https://google.com",cityName:"HCMC",description:n.about,education:(null===(e=n.education)||void 0===e?void 0:e.map((function(n){return g(n.fields)})))||[],experience:(null===(t=n.experiences)||void 0===t?void 0:t.map((function(n){return g(n.fields)})))||[],experiences:[],languages:(null===(i=n.languages)||void 0===i?void 0:i.map((function(n){return n.name||""})))||[],memberships:(null===(o=n.memberships)||void 0===o?void 0:o.map((function(n){return g(n)})))||[],outpatientDescription:"",telemedicineDescription:"",price:"",priceDescription:"",priceType:0,publication:(null===(r=n.publication)||void 0===r?void 0:r.map((function(n){return g(n)})))||[],awards:(null===(a=n.awards)||void 0===a?void 0:a.map((function(n){return g(n.fields)})))||[],rating:0,slug:"doc",organization:null,telemedicineFee:0,totalReviews:0,validOutpatient:!1,validTelemedicine:!1,services:n.additionalServices.map((function(n){return{id:n.id,description:n.description,name:n.name,price_type:n.priceType,price:n.price||0,price_to:n.maxPrice}})),faqs:n.faq.map((function(n){return{question:n.question,answer:n.answer}})),status:l.XQv.ACTIVE,promotion:!1,client:null,vouchers:[]}}function g(n){var e={},t=!0,i=!1,o=void 0;try{for(var r,c=Object.entries(n)[Symbol.iterator]();!(t=(r=c.next()).done);t=!0){var l=(0,a.A)(r.value,2),s=l[0],d=l[1];e[s]=d||""}}catch(u){i=!0,o=u}finally{try{t||null==c.return||c.return()}finally{if(i)throw o}}return e}var m=function(n){var e={avatar:n.avatar||"",name:n.name||"",birthday:n.birthday,gender:n.gender.toString(),relation:n.relation.toString(),email:n.email,notifyTo:n.notifyTo.toString(),phone:n.phone?n.phone.toString():""};return n.id&&(e.id=n.id),e},v=function(n){var e=new FormData;return e.append("name",n.name),e.append("birthday",(0,c.A)(null===n||void 0===n?void 0:n.birthday,l.cuM)),e.append("gender",n.gender),e.append("relation",n.relation),e.append("notify_to",n.notifyTo||s.WA.MASTER.toString()),n.phone&&e.append("phone",n.phone),n.avatar&&e.append("avatar",n.avatar),n.notifyTo!==s.WA.MASTER.toString()&&e.append("email",n.email),e}},3365:function(n,e,t){"use strict";t.d(e,{Np:function(){return h},UM:function(){return v},V2:function(){return c},VH:function(){return s},jF:function(){return m},lc:function(){return k},oU:function(){return y},vq:function(){return w},wd:function(){return p},xt:function(){return _}});var i=t(40568),o=t(81539),r=t(40959),a=r.ElQ[r.HgX],c=a.DOMAIN,l=a.SITE_NAME,s=r.y1A[r.HgX],d=["Facebook","Instagram"],u="".concat(c,"/"),p="".concat(c).concat(r.JpE,"/"),f=(0,i.A)(r.HgX.split("-"),2),h=f[0],g=f[1],m={"en-PH":"Republic of the Philippines","vi-VN":"Vi\u1ec7t Nam","id-ID":"Republik Indonesia","zh-TW":"\u4e2d\u83ef\u6c11\u570b","ms-MY":"Malaysia","th-TH":"Thailand"},v={"en-PH":"PHP","vi-VN":"VND","id-ID":"IDR","zh-TW":"TWD","ms-MY":"MYR","th-TH":"THB"},b="https://hellobacsi.com/images/country-thumbnails/".concat(g,".png"),x="".concat(c,"/#organization"),w="".concat(c,"/#website");function y(n,e){return{"@context":"https://schema.org","@graph":[A(e),{"@id":w,"@type":"WebSite",name:l,publisher:{"@id":x},url:u}].concat((0,o.A)(n))}}function A(n){return{"@type":"Organization","@id":x,sameAs:C(n),name:l,url:u,image:{"@id":"".concat(c,"/#logo")},logo:{"@type":"ImageObject","@id":"https://hellobacsi.com/#logo",url:b,caption:l}}}function C(n){var e,t;return(null===n||void 0===n||null===(e=n.social)||void 0===e||null===(t=e.socials)||void 0===t?void 0:t.filter((function(n){return d.includes(n.name)})).map((function(n){return n.url})))||[]}function M(n,e){return{"@type":"ListItem",item:{"@id":n.url,"@type":n.isItemPage?"ItemPage":"WebPage",name:n.name,url:n.url},position:e+2}}function _(n,e,t,i){return{"@id":"".concat(n,"/#breadcrumb"),"@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",item:{"@id":p,"@type":"WebPage",name:i({id:e}),url:p},position:1}].concat((0,o.A)(t.map(M)))}}function k(n){return{"@type":"FAQPage",mainEntity:n.map((function(n){return{"@type":"Question",name:n.question,acceptedAnswer:{"@type":"Answer",text:n.answer}}}))}}},97183:function(n,e,t){"use strict";var i=t(2445),o=t(73884),r=t(85340),a=t(76013),c=t(36259);e.A=function(n){var e=n.roles,t=n.children,l=(0,o.useContext)(c.B).state,s=l.loading,d=l.userInfo,u=(0,o.useMemo)((function(){return Boolean(e&&(null===d||void 0===d?void 0:d.role)&&e.includes(null===d||void 0===d?void 0:d.role))}),[null===d||void 0===d?void 0:d.role]);return s||!s&&!(null===d||void 0===d?void 0:d.id)?(0,i.Y)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh"},children:(0,i.Y)(r.L,{})}):u?(0,i.Y)(i.FK,{children:t}):(0,i.Y)(a.JC,{})}},63328:function(n,e,t){"use strict";t.d(e,{TO:function(){return g},fd:function(){return p},q3:function(){return u},wO:function(){return h},x0:function(){return f},xF:function(){return m}});var i=t(24537),o=t(27317);function r(){var n=(0,i.A)(["\n font-weight: 700;\n color: ",";\n font-size: 12px;\n"]);return r=function(){return n},n}function a(){var n=(0,i.A)(["\n display: flex;\n flex-direction: column;\n gap: 8px;\n"]);return a=function(){return n},n}function c(){var n=(0,i.A)(["\n color: ",";\n font-size: 13px;\n font-weight: 400;\n line-height: 20px;\n margin-top: -4px;\n"]);return c=function(){return n},n}function l(){var n=(0,i.A)(["\n border: 1px solid ",";\n padding: 16px;\n box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 2px rgba(0, 0, 0, 0.06),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n border-radius: 4px;\n background-color: white;\n h6 {\n padding-bottom: 10px;\n &::after {\n content: '';\n display: block;\n height: 1px;\n background-color: ",";\n margin-top: 10px;\n }\n }\n"]);return l=function(){return n},n}function s(){var n=(0,i.A)(["\n display: flex;\n flex-direction: column;\n gap: 16px;\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n display: flex;\n gap: 16px;\n justify-content: flex-end;\n margin-top: 16px;\n"]);return d=function(){return n},n}var u=o.Ay.label.withConfig({componentId:"sc-a445b49e-0"})(r(),(function(n){return n.theme.colors.gray600})),p=o.Ay.div.withConfig({componentId:"sc-a445b49e-1"})(a()),f=o.Ay.div.withConfig({componentId:"sc-a445b49e-2"})(c(),(function(n){return n.theme.colors.red700})),h=o.Ay.div.withConfig({componentId:"sc-a445b49e-3"})(l(),(function(n){return n.theme.colors.neutral200}),(function(n){return n.theme.colors.neutral100})),g=o.Ay.div.withConfig({componentId:"sc-a445b49e-4"})(s()),m=o.Ay.div.withConfig({componentId:"sc-a445b49e-5"})(d())},77251:function(n,e,t){"use strict";t.d(e,{Y:function(){return u}});var i=t(2445),o=t(73884),r=t(24537);function a(){var n=(0,r.A)(["\n width: 100%;\n padding: 0;\n\n & {\n input[type='checkbox'] {\n display: none;\n }\n label {\n position: relative;\n display: block;\n padding: 14px;\n border: 1px solid;\n border-radius: 6px;\n color: ",";\n cursor: pointer;\n & {\n svg {\n position: absolute;\n top: 2px;\n right: 3px;\n visibility: hidden;\n }\n }\n }\n\n label:after {\n position: absolute;\n top: -1px;\n right: 0px;\n display: inline-flex;\n content: '';\n line-height: 0px;\n transition-duration: 0.2s;\n border-color: ","\n "," transparent\n transparent;\n border-radius: 0px 6px 0px 0px;\n border-style: solid;\n width: 0;\n height: 0;\n border-width: 0;\n }\n\n input[type='checkbox']:checked + label {\n position: relative;\n border-color: ",";\n & {\n svg {\n z-index: 1;\n visibility: visible;\n }\n }\n }\n\n input[type='checkbox']:checked + label:after {\n border-width: 12px;\n }\n }\n"]);return a=function(){return n},n}var c,l=t(27317).Ay.div.withConfig({componentId:"sc-e6e70e10-0"})(a(),(function(n){return n.theme.colors.gray100}),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.primaryBase}));function s(){return s=Object.assign?Object.assign.bind():function(n){for(var e=1;e label {\n flex-basis: 100%;\n }\n }\n"]);return d=function(){return n},n}var u=t(27317).Ay.div.withConfig({componentId:"sc-a96afd79-0"})(d(),(function(n){return n.theme.colors.gray800}));function p(n){var e=n.name,t=n.options,r=n.label,s=n.labelLayout,d=void 0===s?"inline":s,p=n.className,f=n.direction,h=void 0===f?"horizontal":f;return(0,i.Y)(c.xI,{name:e,render:function(n){var e,c=n.field,s=c.onChange,f=c.value,g=c.name;return(0,i.FD)(u,{className:a()(p,{"title-block":"block"===d}),children:[r&&(0,i.Y)(l.q3,{children:r}),(0,i.Y)(o.R,{id:"radio-group-".concat(g),type:"circle",size:"small",direction:h,className:"form-radio-group",onChange:s,value:(null===(e=t.find((function(n){return n.value===String(f)})))||void 0===e?void 0:e.value)||"",options:t})]})}})}},6203:function(n,e,t){"use strict";t.d(e,{A:function(){return p}});var i=t(2445),o=(t(73884),t(32485)),r=t.n(o),a=t(32876),c=t.n(a),l=t(38629),s=t(69576),d=t(53697),u=t.n(d),p=function(n){var e=n.size,t=n.iconPosition,o=n.isDisabled,a=n.className,d=n.href,p=n.children,f=n.dataEventCategory,h=n.dataEventAction,g=n.dataEventLabel;return(0,i.Y)(c(),{href:d,children:(0,i.Y)("a",{style:{textDecoration:"none"},"data-event-category":f,"data-event-action":h,"data-event-label":g,children:(0,i.FD)("div",{className:r()(u().aIconLink,a),"data-size":e,"data-disabled":o||void 0,children:["left"===t&&(0,i.Y)(l.A,{className:u().arrowLeft}),p,"right"===t&&(0,i.Y)(s.A,{className:u().arrowRight})]})})})}},21336:function(n,e,t){"use strict";t.d(e,{h:function(){return u}});var i=t(53513),o=t(63538),r=t(2445),a=t(73884),c=t.n(a),l=t(24537);function s(){var n=(0,l.A)(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-grow: 0;\n flex-shrink: 0;\n\n width: calc(var(--wrapper-size, var(--icon-size)) * 1px);\n height: calc(var(--wrapper-size, var(--icon-size)) * 1px);\n\n &[data-clickable='true'] {\n cursor: pointer;\n }\n\n > * {\n width: calc(var(--icon-size) * 1px);\n height: calc(var(--icon-size) * 1px);\n }\n\n &[data-svg-custom-stroke='true'] > svg * {\n stroke: var(--icon-stroke-color);\n }\n &[data-svg-custom-fill='true'] > svg * {\n fill: var(--icon-fill-color);\n }\n"]);return s=function(){return n},n}var d=t(27317).Ay.div.withConfig({componentId:"sc-3ee6186-0"})(s()),u=function(n){var e=n.children,t=n.className,a=n.onClick,l=n.wrapperSize,s=n.iconSize,u=void 0===s?24:s,p=n.wrapperStyle,f=n.iconStyle,h=n.svgIcon,g=n.wrapperProps;return(0,r.Y)(d,(0,o.A)((0,i.A)({className:t,onClick:a,style:(0,i.A)({},l&&{"--wrapper-size":l},u&&{"--icon-size":u},h&&(0,i.A)({},h.fill&&{"--icon-fill-color":h.fill},h.stroke&&{"--icon-stroke-color":h.stroke}),p),"data-clickable":!!a,"data-svg-custom-stroke":!!(null===h||void 0===h?void 0:h.stroke),"data-svg-custom-fill":!!(null===h||void 0===h?void 0:h.fill)},g),{children:c().cloneElement(e,{style:f})}))}},95456:function(n,e,t){"use strict";t.d(e,{Y:function(){return l}});var i=t(53513),o=t(2445);t(73884);function r(n){var e=n.src,t=n.width,i=n.quality;return e.includes("?")?"".concat(e,"&w=").concat(t,"&q=").concat(i||75):"".concat(e,"?w=").concat(t,"&q=").concat(i||75)}var a=t(57812),c=t.n(a),l=function(n){return(0,o.Y)(c(),(0,i.A)({objectFit:"cover",loader:r},n))}},19475:function(n,e,t){"use strict";t.d(e,{Sc:function(){return p},b1:function(){return R},mc:function(){return z.m},cG:function(){return M},xA:function(){return B},cK:function(){return J},AX:function(){return i.A},hf:function(){return F},R2:function(){return L.R},Ap:function(){return y},vw:function(){return E}});var i=t(6203),o=t(2445),r=t(73884),a=t.n(r),c=t(66079),l=t(32485),s=t.n(l),d=t(40409),u=t.n(d),p=function(n){var e=n.label,t=n.name,i=n.id,r=n.checked,a=void 0!==r&&r,l=n.className,d=n.isDisabled,p=void 0!==d&&d,f=n.onChange,h=n.dataEventCategory,g=n.dataEventAction,m=n.dataEventLabel;return(0,o.Y)("div",{className:s()(u().aCheckbox,l),"data-disabled":p||void 0,children:(0,o.FD)("label",{htmlFor:i,children:[(0,o.Y)(c.T,{size:"p4",children:e}),(0,o.Y)("input",{type:"checkbox",id:i,checked:a,name:t,onChange:function(){return f&&f(!!a)},"data-event-category":h,"data-event-action":g,"data-event-label":m})]})})},f=t(53513),h=t(63538),g=t(81539),m=t(60124),v=t(22437),b=t.n(v);function x(n){var e=n.index;return(0,o.Y)("div",{className:b().dot,"data-label":e})}function w(n){var e=n.index;return(0,o.Y)("div",{className:b().dot,"data-label":e})}var y=function(n){var e=n.step,t=n.min,i=n.max,c=n.value,l=n.onFinalChange,d=n.onChange,u=n.className,p=n.isMobile,v=void 0!==p&&p,y=n.isSingleSlider,A=void 0!==y&&y,C=["#DBDFE5","#2D87F3","#DBDFE5"],M=a().useRef(),_=(0,r.useState)(c),k=_[0],Y=_[1];(0,r.useEffect)((function(){Y(c)}),[c[0],c[1]]);return(0,o.Y)("div",{className:s()(b().aSlider,u),children:(0,o.Y)(m.Range,{ref:M,values:A?[k[1]]:k[0]>=t&&k[1]<=i?k:[t,i],onChange:function(n){Y(A?[0].concat((0,g.A)(n)):n),null===d||void 0===d||d(n)},onFinalChange:function(n){l(A?[0].concat((0,g.A)(n)):n)},renderThumb:function(n){var e=n.props,t=n.index;return(0,o.Y)("div",(0,h.A)((0,f.A)({},e),{className:b().thumb,children:A?(0,o.Y)(w,{index:t,isMobile:v}):(0,o.Y)(x,{index:t,isMobile:v})}))},renderTrack:function(n){var e=n.props,r=n.children,a={background:(0,m.getTrackBackground)({values:k,colors:C,min:t,max:i})};return(0,o.Y)("div",{className:b().trackContainer,onMouseDown:e.onMouseDown,onTouchStart:e.onTouchStart,style:(0,f.A)({},e.style),children:(0,o.Y)("div",{className:b().track,ref:e.ref,style:a,children:r})})},step:e,min:t,max:i})})},A=t(45567),C=t.n(A),M=function(n){var e=n.type,t=n.className;return(0,o.Y)("hr",{className:s()(C().aDivider,t),"data-dashed":e||void 0})},_=t(24537),k=t(27317);function Y(){var n=(0,_.A)(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 2px 8px;\n background: ",";\n border: 1px solid ",";\n height: fit-content;\n border-radius: 24px;\n\n p {\n color: ",";\n }\n\n &[data-tag-type='warning'] {\n background: ",";\n border: 1px solid ",";\n p {\n color: ",";\n }\n }\n\n &[data-tag-type='danger'] {\n background: ",";\n border: 1px solid ",";\n p {\n color: ",";\n }\n }\n\n &[data-tag-type='success'] {\n background: ",";\n border: 1px solid ",";\n p {\n color: ",";\n }\n }\n\n &[data-tag-type='unavailable'] {\n border: 1px solid ",";\n p {\n color: ",";\n }\n }\n\n &[data-tag-type='blue'] {\n background: ",";\n border: 1px solid ",";\n p {\n color: ",";\n }\n }\n"]);return Y=function(){return n},n}var D=k.Ay.div.withConfig({componentId:"sc-a879b3ec-0"})(Y(),(function(n){return n.theme.colors.neutral50}),(function(n){return n.theme.colors.neutral50}),(function(n){return n.theme.colors.gray600}),(function(n){return n.theme.colors.yellow50}),(function(n){return n.theme.colors.yellow800}),(function(n){return n.theme.colors.yellow800}),(function(n){return n.theme.colors.red50}),(function(n){return n.theme.colors.red800}),(function(n){return n.theme.colors.red800}),(function(n){return n.theme.colors.green50}),(function(n){return n.theme.colors.green700}),(function(n){return n.theme.colors.green700}),(function(n){return n.theme.colors.neutral200}),(function(n){return n.theme.colors.neutral600}),(function(n){return n.theme.colors.blue50}),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.primaryBase})),E=function(n){var e=n.type,t=n.className,i=n.children;return(0,o.Y)(D,{className:t,"data-tag-type":e||void 0,children:(0,o.Y)(c.T,{size:"p4",children:i})})},I=t(83608),N=t.n(I),F=function(n){var e=n.className,t=n.icon,i=n.text,r=n.textSize,a=void 0===r?"md":r;return(0,o.FD)("div",{className:s()(N().aIconText,e),children:[(0,o.Y)("div",{className:N().icon,children:t}),(0,o.Y)(c.T,{size:a,children:i})]})},z=t(9060),S=t(38971),O=t(27178),T=t.n(O),B=function(n){var e,t=n.className,i=n.columns,r=n.columnsDesktop,a=n.gridTemplateColumns,c=n.gridTemplateColumnsDesktop,l=n.gap,d=n.children,u=n.justifyChildren,p=n.alignItems,h=n.isList,g=n.style,m=(0,f.A)((e={},(0,S.A)(e,"--columns",i),(0,S.A)(e,"--columns-desktop",r),(0,S.A)(e,"--gap",l||void 0),(0,S.A)(e,"--justify-children",u||void 0),(0,S.A)(e,"--grid-template-columns",a||void 0),(0,S.A)(e,"--grid-template-columns-desktop",c||void 0),(0,S.A)(e,"--align-items",p||void 0),e),g),v=h?"ul":"div";return(0,o.Y)(v,{className:s()(T().aGrid,t),style:m,"data-has-grid-columns":a||void 0,"data-has-align-items":p||void 0,children:d})},L=t(15028),P=t(77251);function j(){var n=(0,_.A)(["\n & {\n margin-bottom: 25px;\n label img {\n width: 100%;\n height: 50px;\n object-fit: contain;\n transform-origin: 50% 50%;\n transition-duration: 0.2s;\n }\n .text-label {\n position: absolute;\n bottom: -30px;\n left: 0;\n white-space: nowrap;\n font-size: 12px;\n }\n }\n"]);return j=function(){return n},n}var H=(0,k.Ay)(P.Y).withConfig({componentId:"sc-d5fd3c7-0"})(j()),R=function(n){var e=n.label,t=n.value,i=n.name,r=n.checked,a=n.img,l=n.onChange;return(0,o.FD)(H,{name:i,value:t,checked:r,onChange:l,children:[(0,o.Y)("img",{src:a}),(0,o.Y)(c.T,{size:"p3",className:"text-label",children:e})]})},V=t(44835);function U(){var n=(0,_.A)(["\n display: flex;\n align-items: center;\n gap: 8px;\n"]);return U=function(){return n},n}function G(){var n=(0,_.A)(["\n font-weight: var(--fwBold);\n"]);return G=function(){return n},n}var W=k.Ay.div.withConfig({componentId:"sc-1e42327d-0"})(U()),q=(0,k.Ay)(V.H).withConfig({componentId:"sc-1e42327d-1"})(G()),J=function(n){var e=n.icon,t=n.title,i=n.className,r=n.style;return(0,o.FD)(W,{className:i,style:r,children:[e,(0,o.Y)(q,{tag:"h6",color:"var(--secondaryDark)",children:t})]})}},15028:function(n,e,t){"use strict";t.d(e,{R:function(){return p}});var i=t(2445),o=(t(73884),t(66079)),r=t(35291),a=t(24537),c=t(27317);function l(){var n=(0,a.A)(["\n margin-top: 8px;\n > .text {\n font-weight: 600;\n }\n"]);return l=function(){return n},n}function s(){var n=(0,a.A)(["\n text-decoration: none;\n\n &:hover {\n text-decoration: underline;\n }\n"]);return s=function(){return n},n}var d=c.Ay.div.withConfig({componentId:"sc-10744006-0"})(l()),u=c.Ay.a.withConfig({componentId:"sc-10744006-1"})(s()),p=function(n){var e=n.description,t=n.value,a=n.urlLink,c=n.className;return(0,i.FD)(d,{className:c,children:[(0,i.Y)("div",{children:(0,i.Y)(o.T,{size:"base",color:r.w.colors.gray500,style:{fontSize:"14px"},children:e})}),(0,i.Y)("div",{children:a?(0,i.Y)(u,{href:a,target:"_blank",children:(0,i.Y)(o.T,{size:"base",color:r.w.colors.gray800,style:{fontSize:"14px"},className:"text",children:t})}):(0,i.Y)(o.T,{size:"base",color:r.w.colors.gray800,style:{fontSize:"14px"},className:"text",children:t})})]})}},44523:function(n,e,t){"use strict";var i=t(53513),o=t(63538),r=t(53455),a=t(2445),c=t(73419),l=t(32876),s=t.n(l);e.A=function(n){var e=n.children,t=n.linkProps,l=(0,r.A)(n,["children","linkProps"]);return(0,c.$)().isNewNextRouter?(0,a.Y)(s(),(0,o.A)((0,i.A)({},l,t),{children:(0,a.Y)(a.FK,{children:e})})):(0,a.Y)(s(),(0,o.A)((0,i.A)({},l),{children:(0,a.Y)("a",(0,o.A)((0,i.A)({},t),{children:e}))}))}},74834:function(n,e,t){"use strict";t.d(e,{A:function(){return h}});var i=t(2445),o=t(73884),r=t(34555),a=t(73419),c=t(6442),l=t(58065),s=t(24537);function d(){var n=(0,s.A)(["\n border-radius: 4px;\n background: ",";\n width: fit-content;\n display: flex;\n gap: 4px;\n padding: 5px 12px 5px 8px;\n font-size: 14px;\n font-weight: 400;\n line-height: 22px;\n color: ",";\n pointer-events: initial;\n\n svg {\n margin-top: 5px;\n flex: 0 0 14px;\n path {\n fill: ",";\n }\n }\n"]);return d=function(){return n},n}var u=t(27317).Ay.div.withConfig({componentId:"sc-3d08c06-0"})(d(),(function(n){return n.bgColor}),(function(n){return n.iconColor}),(function(n){return n.iconColor})),p=t(40959),f=t(46529),h=function(n){var e=n.title,t=n.showTooltip,s=void 0===t||t,d=n.bgColor,h=void 0===d?"#FFF8E2":d,g=n.iconColor,m=void 0===g?"#FC7419":g,v=n.className,b=function(n){return(0,i.Y)("span",{children:n})},x=(0,c.A)().formatMessage,w=(0,a.$)().locale,y=void 0===w?"vi-VN":w,A=p.Xq3[y],C=(0,o.useMemo)((function(){return(null===A||void 0===A?void 0:A.email)&&(null===A||void 0===A?void 0:A.hotline)?(0,i.Y)(l.A,{id:"admin.voucher.applicable.fullContact",defaultMessage:"Vui l\xf2ng li\xean h\u1ec7 hotline {hotline} ho\u1eb7c email {email} \u0111\u1ec3 nh\u1eadn ngay voucher \u01b0u \u0111\xe3i.",tagName:"p",values:{span:b,hotline:(null===A||void 0===A?void 0:A.hotline)||"",email:(null===A||void 0===A?void 0:A.email)||""}}):(null===A||void 0===A?void 0:A.email)&&!(null===A||void 0===A?void 0:A.hotline)?(0,i.Y)(l.A,{id:"admin.voucher.applicable.emailContact",defaultMessage:"Vui l\xf2ng li\xean h\u1ec7 email {email} \u0111\u1ec3 nh\u1eadn ngay voucher \u01b0u \u0111\xe3i.",tagName:"p",values:{email:null===A||void 0===A?void 0:A.email}}):""}),[A]),M=(0,o.useMemo)((function(){return{tooltip:{maxWidth:"268px",whiteSpace:"initial",padding:"8px",display:C&&s?"initial":"none",p:{fontSize:"12px",fontWeight:"400",lineHeight:"18px"},span:{color:"#2D87F3",textDecoration:"underline"}}}}),[C,s]);return(0,i.Y)(r.m,{label:C,styles:M,withArrow:!0,children:(0,i.Y)("div",{className:v,children:(0,i.FD)(u,{className:"flex items-start",bgColor:h,iconColor:m,children:[(0,i.Y)(f.A,{className:"mr-[0px]"}),e||x({id:"admin.voucher.applicable",defaultMessage:"Voucher applicable"})]})})})}},39749:function(n,e,t){"use strict";t.d(e,{y:function(){return h}});var i=t(24537),o=t(2445),r=t(73884),a=t(62532),c=t(27317),l=t(87809),s=t(23662),d=t(8758);function u(){var n=(0,i.A)([""]);return u=function(){return n},n}var p=c.Ay.div.withConfig({componentId:"sc-d3209884-0"})(u()),f=function(n){return n?{type:n.type,content:n.content||n.message||""}:void 0},h=function(n){var e=n.className,t=n.alert,i=n.dismissTime,c=void 0===i?3e3:i,u=(0,r.useState)(f(t)),h=u[0],g=u[1];(0,r.useEffect)((function(){g(f(t))}),[t]),(0,r.useEffect)((function(){var n=setInterval((function(){(null===h||void 0===h?void 0:h.content)&&h.content.length>0&&m()}),c);return function(){clearInterval(n)}}),[null===h||void 0===h?void 0:h.content,c]);var m=function(){g(void 0)};return(0,o.Y)(p,{className:e,children:(null===h||void 0===h?void 0:h.content)&&(0,o.Y)(a.A,{closeIcon:(0,o.Y)(d.A,{onClick:function(){return m()}}),contentIcon:"success"===h.type?(0,o.Y)(l.A,{}):(0,o.Y)(s.A,{}),text:h.content,type:"success"===h.type?"success":"danger"})})}},76948:function(n,e,t){"use strict";t.d(e,{u:function(){return a}});var i=t(2445),o=t(10905),r=t(4796),a=function(n){var e=n.content,t=n.isOpen;return(0,i.Y)(o.N,{initial:!1,children:t&&(0,i.Y)(r.IU,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},children:(0,i.Y)(r.xv,{color:"var(--gray600)",size:"p2",children:e})})})}},4796:function(n,e,t){"use strict";t.d(e,{IU:function(){return x},PZ:function(){return g},dX:function(){return b},uB:function(){return v},w9:function(){return m},xv:function(){return w}});var i=t(24537),o=t(4766),r=t(66079),a=t(66031),c=t(27317);function l(){var n=(0,i.A)(["\n > div {\n &:first-child > button {\n padding-top: 0;\n }\n &:last-child > button {\n padding-bottom: 0;\n }\n }\n "]);return l=function(){return n},n}function s(){var n=(0,i.A)(["\n ","\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)([""]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n --border-style: 1px solid var(--neutral100);\n padding: 16px 0;\n border-bottom: var(--border-style);\n display: flex;\n justify-content: space-between;\n align-items: center;\n cursor: pointer;\n background-color: white;\n text-align: left;\n line-height: 1.5;\n &:focus-visible {\n outline: 1px solid var(--gray600);\n }\n\n "," {\n > :first-child {\n flex: 6;\n }\n\n > :last-child {\n flex: 1;\n display: flex;\n justify-content: end;\n }\n }\n"]);return u=function(){return n},n}function p(){var n=(0,i.A)(["\n font-weight: var(--fwSemiBold);\n"]);return p=function(){return n},n}function f(){var n=(0,i.A)(["\n color: var(--gray600);\n overflow: hidden;\n"]);return f=function(){return n},n}function h(){var n=(0,i.A)(["\n white-space: pre-line;\n margin-bottom: 24px;\n margin-top: 16px;\n"]);return h=function(){return n},n}var g=c.Ay.section.withConfig({componentId:"sc-105c083f-0"})(s(),(function(n){return n.disableVerticalPadding&&(0,c.AH)(l())})),m=c.Ay.div.withConfig({componentId:"sc-105c083f-1"})(d()),v=c.Ay.button.withConfig({componentId:"sc-105c083f-2"})(u(),o.M.mbDown),b=(0,c.Ay)(r.T).withConfig({componentId:"sc-105c083f-3"})(p()),x=(0,c.Ay)(a.m.div).withConfig({componentId:"sc-105c083f-4"})(f()),w=(0,c.Ay)(r.T).withConfig({componentId:"sc-105c083f-5"})(h())},54421:function(n,e,t){"use strict";t.d(e,{n:function(){return d}});var i=t(2445),o=t(73884),r=t(76948),a=t(10905),c=t(66031),l=function(n){var e=n.isOpen;return(0,i.FD)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.Y)("path",{d:"M13 8H1C0.45 8 0 7.55 0 7C0 6.45 0.45 6 1 6H13C13.55 6 14 6.45 14 7C14 7.55 13.55 8 13 8Z",fill:"#595959",id:"open-horizontal"}),(0,i.Y)(a.N,{children:!e&&(0,i.Y)(c.m.path,{initial:{rotate:"90deg"},animate:{rotate:"180deg"},exit:{rotate:"90deg"},transition:{duration:.3,bounce:0},d:"M6 13L6 1C6 0.45 6.45 -6.77527e-08 7 -4.37114e-08C7.55 -1.96701e-08 8 0.45 8 1L8 13C8 13.55 7.55 14 7 14C6.45 14 6 13.55 6 13Z",fill:"#595959",id:"open-vertical"})})]})},s=t(4796),d=function(n){var e=n.content,t=n.className,a=n.style,c=n.disableVerticalPadding,d=void 0!==c&&c,u=(0,o.useState)(-1),p=u[0],f=u[1],h=function(n){return f(n===p?-1:n)};return(0,i.Y)(s.PZ,{className:t,style:a,disableVerticalPadding:d,children:e&&e.length>0&&e.map((function(n,e){return(0,i.FD)(s.w9,{"aria-expanded":e===p,"aria-controls":"accordion-button-".concat(e+1),role:"region",children:[(0,i.FD)(s.uB,{onMouseDown:function(){return h(e)},onKeyDown:function(n){return function(n,e){"Enter"!==n.key&&" "!==n.key||h(e)}(n,e)},id:"accordion-button-".concat(e+1),children:[(0,i.Y)(s.dX,{size:"s2",children:n.title}),(0,i.Y)("div",{children:(0,i.Y)(l,{isOpen:e===p})})]}),(0,i.Y)(r.u,{isOpen:e===p,content:n.content})]},n.title+e)}))})}},98480:function(n,e,t){"use strict";t.d(e,{CL:function(){return s},D9:function(){return d},Vj:function(){return u}});var i=t(24537),o=t(4766),r=t(27317);function a(){var n=(0,i.A)(["\n width: 100%;\n align-items: center;\n justify-content: space-between;\n padding: 2px 24px 0 24px;\n border-bottom: 1px solid var(--neutral100);\n background: var(--white);\n\n "," {\n position: sticky;\n z-index: 8;\n top: 64px;\n }\n\n "," {\n width: 100%;\n }\n\n "," {\n padding-top: 24px;\n }\n\n &:not([data-has-action-bar]) {\n display: flex;\n }\n\n &[data-is-sticky] {\n position: sticky;\n top: 0;\n }\n\n .actionNavigation__left {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n "," {\n width: 100%;\n }\n .tabs {\n "," {\n display: flex;\n overflow-x: auto;\n scroll-snap-type: x mandatory;\n\n & > li {\n scroll-snap-align: start;\n }\n }\n p {\n font-size: 14px;\n font-weight: 600;\n }\n }\n }\n\n .actionNavigation__action-buttons {\n display: flex;\n\n .actionNavigation__action {\n color: var(--gray800);\n font-weight: 400;\n &:hover {\n color: var(--gray600);\n }\n }\n }\n\n ul {\n margin-top: 4px;\n margin-bottom: -1px;\n }\n\n button + button {\n margin-left: 4px;\n }\n"]);return a=function(){return n},n}function c(){var n=(0,i.A)(["\n display: flex;\n width: 100%;\n justify-content: space-between;\n margin: 1rem 0;\n\n > div {\n display: flex;\n\n > div {\n margin-right: 1.5rem;\n }\n }\n\n .back-btn {\n display: flex;\n align-items: center;\n cursor: pointer;\n width: fit-content;\n }\n\n .back-text {\n margin-top: -2px;\n margin-left: 10px;\n }\n\n .duplicate-btn {\n svg {\n path {\n fill: ",";\n }\n }\n }\n"]);return c=function(){return n},n}function l(){var n=(0,i.A)(["\n margin: 0;\n display: flex;\n\n button {\n color: ",";\n }\n .button-icon svg {\n width: auto;\n height: auto;\n }\n\n & > li {\n padding-left: 25px;\n padding-right: 25px;\n position: relative;\n\n &:after {\n content: '';\n width: 1px;\n display: block;\n right: 0;\n top: 2px;\n height: 20px;\n position: absolute;\n background-color: ",";\n }\n\n &:last-child {\n padding-right: 15px;\n\n &:after {\n content: none;\n }\n }\n }\n"]);return l=function(){return n},n}var s=r.Ay.header.withConfig({componentId:"sc-689f868d-0"})(a(),o.M.tdUp,o.M.mbDown,o.M.tdDown,o.M.mbDown,o.M.mbDown),d=r.Ay.div.withConfig({componentId:"sc-689f868d-1"})(c(),(function(n){return n.theme.colors.blue600})),u=r.Ay.ul.withConfig({componentId:"sc-689f868d-2"})(l(),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.neutral100}))},53956:function(n,e,t){"use strict";t.d(e,{AY:function(){return g},E6:function(){return h},kc:function(){return f}});var i=t(24537),o=t(40959),r=t(27317);function a(){var n=(0,i.A)(["\n 0% {\n opacity: 1;\n transform: translate(-50%, 0);\n }\n 99% {\n opacity: 0;\n transform: translate(-50%, 100%);\n }\n 100% {\n opacity: 0;\n visibility: hidden;\n transform: translate(-50%, 100%);\n }\n"]);return a=function(){return n},n}function c(){var n=(0,i.A)(["\n 0% {\n opacity: 0;\n transform: translate(-50%, 100%);\n }\n 100% {\n opacity: 1;\n transform: translate(-50%, 0);\n }\n"]);return c=function(){return n},n}function l(){var n=(0,i.A)(["\n position: fixed;\n z-index: ",";\n bottom: 0;\n left: 50%;\n width: fit-content;\n max-width: 100%;\n background: none;\n transform: translateX(-50%);\n .close-sticky-button {\n position: absolute;\n display: flex;\n width: 16px;\n height: 16px;\n align-items: center;\n justify-content: center;\n background: #bfbfbf;\n border-radius: 50%;\n color: white;\n\n cursor: pointer;\n font-size: 12px;\n line-height: 12px;\n transform: translate(50%, -50%);\n top: 0;\n right: 0;\n }\n &[data-hide='true'] {\n animation: "," 0.4s ease-in-out forwards;\n }\n &[data-hide='false'] {\n animation: "," 0.2s ease-in-out forwards;\n }\n"]);return l=function(){return n},n}function s(){var n=(0,i.A)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n border: 1px solid ",";\n background: ",";\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n /* background: ","; */\n width: 100%;\n padding: 2px 5px;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 5px;\n img {\n height: 12px;\n }\n"]);return d=function(){return n},n}var u=(0,r.i7)(a()),p=(0,r.i7)(c()),f=r.Ay.div.withConfig({componentId:"sc-882e60dd-0"})(l(),o.Mue.adBlock,u,p),h=r.Ay.div.withConfig({componentId:"sc-882e60dd-1"})(s(),(function(n){return n.theme.colors.neutral50}),(function(n){return n.theme.colors.neutral50})),g=r.Ay.div.withConfig({componentId:"sc-882e60dd-2"})(d(),(function(n){return n.theme.colors.neutral50}))},20607:function(n,e,t){"use strict";t.d(e,{z:function(){return f}});var i=t(2445),o=t(73884),r=t(66079),a=t(35291),c=t(10297),l=t(6442),s=t(53956),d=t(70931),u=function(n){if(n){window.googletag=window.googletag||{cmd:[]};var e=window.googletag;e.cmd.push((function(){e.destroySlots([n])}))}},p=(0,o.forwardRef)((function(n,e){var t=n.className,p=n.adUnitPath,f=n.size,h=n.divId,g=n.pos,m=n.sizeMapping,v=n.isHidden,b=n.hideIfHasSubot,x=n.refreshInterval,w=n.customTargetings,y=n.style,A=n.adDefaultSize,C=(0,c.useRouter)().locale,M=(0,l.A)().formatMessage,_=d.Uq.includes(C),k=(0,o.useRef)(null),Y=(0,o.useRef)(null),D=(0,o.useRef)(null),E=(0,o.useRef)(!1),I=function(){u(Y.current),Y.current=function(n){var e=n.adUnitPath,t=n.size,i=n.divId,o=n.pos,r=n.sizeMapping,a=n.hideIfHasSubot,c=n.customTargetings;if(document.getElementById(i)){window.googletag=window.googletag||{cmd:[]};var l=window.googletag;l.cmd.push((function(){var n,s=null===(n=l.defineSlot(e,t,i))||void 0===n?void 0:n.setTargeting("Pos",o);try{c&&Object.keys(c).forEach((function(n){n&&(null===s||void 0===s||s.setTargeting(n,c[n]))}))}catch(d){console.error(d)}if(s)return null===s||void 0===s||s.addService(l.pubads()),r&&s.defineSizeMapping(r),a&&document.getElementById("subot--container")&&s.setTargeting("chatbot",!0),l.pubads(),l.enableServices(),l.display(i),s}))}}({adUnitPath:p,size:f,divId:h,pos:g,sizeMapping:m,hideIfHasSubot:b,customTargetings:w}),x&&(null!==D.current&&clearInterval(D.current),D.current=window.setInterval((function(){window.googletag=window.googletag||{cmd:[]};var n=window.googletag;n.cmd.push((function(){Y.current&&n.pubads().refresh([Y.current])}))}),1e3*x))},N=(0,o.useRef)(I);return N.current=I,(0,o.useEffect)((function(){return setTimeout((function(){var n;!v&&_&&(null===(n=N.current)||void 0===n||n.call(N));E.current=!0}),1e3+Math.floor(1e3*Math.random())),function(){Y.current&&u(Y.current),D.current&&clearInterval(D.current)}}),[]),(0,o.useEffect)((function(){var n;!v&&_&&E.current&&(null===(n=N.current)||void 0===n||n.call(N))}),[]),_?(0,i.FD)(s.E6,{ref:k,className:t,style:y,children:[(0,i.FD)(s.AY,{children:[(0,i.Y)("img",{src:"/care/svg/adsIcon.svg"}),(0,i.Y)(r.T,{size:"p4",color:a.w.colors.gray600,children:M({id:"footer.advertising",defaultMessage:"Advertising"})})]}),(0,i.Y)("div",{style:{minWidth:A?"".concat(A[0],"px"):"100%",minHeight:A?"".concat(A[1],"px"):"100%"},children:(0,i.Y)("div",{ref:e,id:h})})]}):null})),f=(0,o.memo)(p,(function(n,e){return n.adUnitPath===e.adUnitPath&&n.divId===e.divId&&n.style===e.style}))},70931:function(n,e,t){"use strict";t.d(e,{Uq:function(){return p},oq:function(){return u}});var i,o=t(38971),r=t(50345),a=(i={},(0,o.A)(i,r.L.Vietnam,"HelloBacsi"),(0,o.A)(i,r.L.Indonesia,"HelloSehat"),(0,o.A)(i,r.L.Malaysia,"HelloDoktor"),(0,o.A)(i,r.L.Cambodia,"HelloKrupet"),(0,o.A)(i,r.L.PhilippinesEnglish,"HelloDoctorPH"),(0,o.A)(i,r.L.Thailand,"HelloKhunmor"),(0,o.A)(i,r.L.Myanmar,"HelloSayarwon"),(0,o.A)(i,r.L.Taiwan,"HelloYishi"),(0,o.A)(i,r.L.India,"HelloSwasthya"),(0,o.A)(i,r.L.PhilippinesTagalog,"HelloDoctorPH"),(0,o.A)(i,r.L.Singapore,"Hello JianKang"),i),c="Mobile",l="Desktop",s="AMP",d=21682272649,u=function(n){var e=n.locale,t=n.isMobile,i=n.isAmp,o=n.contentAdTag,r=n.forceTag,u=s;i||(u=t?c:l);var p=a[e]+u;return r?"/".concat(d,"/").concat(p,"/").concat(r):o?"/".concat(d,"/").concat(p,"/").concat(p,"_Care/").concat(o):"/".concat(d,"/").concat(p,"/ad")},p=[r.L.Vietnam]},12681:function(n,e,t){"use strict";t.d(e,{D$:function(){return g},IM:function(){return m},af:function(){return v},b7:function(){return h},rf:function(){return p},tu:function(){return f}});var i=t(24537),o=t(4766),r=t(27317);function a(){var n=(0,i.A)(["\n position: relative;\n display: flex;\n width: 100%;\n align-items: flex-start;\n justify-content: space-between;\n padding: 24px;\n gap: 15px;\n border-bottom: 1px solid\n ",";\n"]);return a=function(){return n},n}function c(){var n=(0,i.A)(["\n z-index: 2;\n padding: 19px 24px;\n\n border-bottom: 1px solid\n ",";\n background-color: ",";\n\n "," {\n top: 0;\n position: sticky;\n }\n\n & + "," {\n background-color: ",";\n }\n"]);return c=function(){return n},n}function l(){var n=(0,i.A)(["\n display: flex;\n\n > img,\n picture {\n width: 40px;\n height: 40px;\n margin-right: 1rem;\n border-radius: 6px;\n object-fit: cover;\n }\n\n > figcaption {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n & {\n .title {\n font-size: 16px;\n font-weight: 600;\n line-height: 24px;\n }\n }\n\n .facility-name {\n display: flex;\n gap: 8px;\n\n svg {\n margin-left: 10px;\n cursor: pointer;\n }\n }\n\n .create-page {\n display: flex;\n align-items: center;\n gap: 4px;\n cursor: pointer;\n }\n }\n"]);return l=function(){return n},n}function s(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n\n > * {\n margin-right: 16px;\n\n "," {\n &:last-child {\n margin-right: 0;\n }\n }\n }\n\n .telemedicine-toggle {\n & > label {\n gap: 10px;\n flex-direction: row-reverse;\n\n span {\n padding: 0;\n }\n }\n }\n\n .new-branch-btn {\n white-space: nowrap;\n border: none;\n }\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n\n color: ",";\n cursor: pointer;\n\n > :first-child {\n margin-right: 4px;\n }\n & {\n .edit {\n margin-top: 4px;\n font-size: 12px;\n font-weight: 600;\n line-height: 18px;\n }\n }\n"]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n max-width: 300px;\n min-width: 150px;\n\n input {\n height: 40px;\n background-color: ",";\n }\n\n "," {\n max-width: 225px;\n }\n\n "," {\n position: absolute;\n left: 100px;\n right: 50px;\n max-width: 100%;\n opacity: 0;\n visibility: hidden; \n transition: all 0.3s ease;\n margin-right: 0;\n\n .appointment & {\n right: 35px;\n }\n\n ","\n"]);return u=function(){return n},n}var p=r.Ay.div.withConfig({componentId:"sc-66ebac93-0"})(a(),(function(n){return n.theme.colors.neutral200})),f=(0,r.Ay)(p).withConfig({componentId:"sc-66ebac93-1"})(c(),(function(n){return n.theme.colors.neutral200}),(function(n){return n.theme.colors.white}),o.M.mbDown,p,(function(n){return n.theme.colors.neutral150})),h=r.Ay.figure.withConfig({componentId:"sc-66ebac93-2"})(l()),g=r.Ay.div.withConfig({componentId:"sc-66ebac93-3"})(s(),o.M.tdDown),m=r.Ay.div.withConfig({componentId:"sc-66ebac93-4"})(d(),(function(n){return n.theme.colors.gray600})),v=r.Ay.div.withConfig({componentId:"sc-66ebac93-5"})(u(),(function(n){return n.theme.colors.white}),o.M.tdOnly,o.M.mbDown,(function(n){return n.$isShowMobile&&"\n left: 50px;\n opacity: 1;\n visibility: visible; \n }\n "}))},17084:function(n,e,t){"use strict";t.d(e,{D:function(){return q}});var i=t(2445),o=t(73884),r=t.n(o),a=t(630),c=t(32485),l=t.n(c),s=t(88491),d=t(10297),u=t(6442),p=t(36259),f=t(48403),h=t(12681),g=t(40568),m=t(62862),v=t(43184),b=t(24537),x=t(4766),w=t(27317);function y(){var n=(0,b.A)(["\n position: relative;\n\n &.hide-select-search {\n pointer-events: none;\n svg {\n visibility: hidden;\n }\n }\n"]);return y=function(){return n},n}function A(){var n=(0,b.A)(["\n display: flex;\n width: 100%;\n margin-bottom: 0;\n cursor: pointer;\n div {\n color: ",";\n font-size: 16px;\n font-weight: bold;\n }\n svg {\n margin-top: 4px;\n margin-left: 28px;\n }\n"]);return A=function(){return n},n}function C(){var n=(0,b.A)(["\n position: absolute;\n z-index: 110;\n top: 100%;\n right: 0;\n left: 0;\n display: block;\n min-width: 262px;\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 "," {\n box-shadow: 0px 10px 16px rgb(0, 0, 0, 0.04), 0px 2px 8px rgb(0, 0, 0, 0.04),\n 0px 0px 1px rgb(0, 0, 0, 0.04);\n }\n"]);return C=function(){return n},n}function M(){var n=(0,b.A)(["\n padding: 8px;\n background: ",";\n input {\n height: 40px;\n background: ",";\n }\n input::placeholder {\n color: ",";\n font-size: 14px;\n }\n"]);return M=function(){return n},n}function _(){var n=(0,b.A)(["\n min-width: 262px;\n max-height: 300px;\n padding: 8px;\n overflow-y: auto;\n"]);return _=function(){return n},n}function k(){var n=(0,b.A)(["\n display: flex;\n padding: 12px 18px 12px 16px;\n font-size: 16px;\n font-weight: 400;\n &:hover,\n :active {\n background: ",";\n }\n"]);return k=function(){return n},n}var Y,D=w.Ay.div.withConfig({componentId:"sc-d4262f1d-0"})(y()),E=w.Ay.div.withConfig({componentId:"sc-d4262f1d-1"})(A(),(function(n){return n.theme.colors.secondaryDark})),I=w.Ay.div.withConfig({componentId:"sc-d4262f1d-2"})(C(),(function(n){return n.theme.colors.white}),x.M.tdDown),N=w.Ay.div.withConfig({componentId:"sc-d4262f1d-3"})(M(),(function(n){return n.theme.colors.gray100}),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray400})),F=w.Ay.div.withConfig({componentId:"sc-d4262f1d-4"})(_()),z=w.Ay.li.withConfig({componentId:"sc-d4262f1d-5"})(k(),(function(n){return n.theme.colors.gray100})),S=t(88576),O=t(47770),T=function(n){var e=n.className,t=n.style,c=n.title,l=n.placeholder,s=n.options,d=n.onChange,u=n.onSearchChange,p=n.hasSearch,f=void 0===p||p,h=n.isLoading,b=(0,o.useState)(""),x=b[0],w=b[1],y=(0,g.A)(r().useState(!1),2),A=y[0],C=y[1],M=(0,o.useRef)(null);(0,m.j)(M,(function(){return C(!1)}));var _=x?function(n,e){var t="".concat(e).toLowerCase();return n.filter((function(n){return"".concat(n.value).toLowerCase().includes(t)||n.label.toLowerCase().includes(t)}))}(s,x):s;return(0,i.FD)(D,{className:e,style:t,ref:M,children:[(0,i.FD)(E,{onClick:function(){return C(!A)},children:[(0,i.Y)("div",{children:c}),s.length>0&&(0,i.Y)(S.A,{})]}),A&&s.length>0&&(0,i.FD)(I,{children:[f&&(0,i.Y)(N,{children:(0,i.Y)(a.I,{size:"sm",displayIcon:(0,i.Y)(O.A,{}),name:"",value:x,placeholder:l,onChange:function(n){w(n),u&&u(n)},autoComplete:"off"})}),(0,i.FD)(F,{children:[!h&&_.length>0&&_.map((function(n,e){return(0,i.Y)(z,{onClick:function(){d(n),C(!1)},children:n.label},"".concat(e,"-").concat(n.value))})),!h&&0===_.length&&(0,i.Y)("div",{className:"text-c",children:(0,i.Y)(v.Sv,{})}),h&&(0,i.Y)("div",{className:"text-c",children:(0,i.FD)(v.vv,{width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,i.Y)("mask",{id:"a",fill:"#fff",children:(0,i.Y)("path",{d:"M12 0A12 12 0 11.19 9.88l3.9.7A8.03 8.03 0 1012 3.98V0z"})}),(0,i.Y)("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)"})]})})]})]})]})},B=t(69831),L=t(65004),P=t(40959),j=t(8758);function H(){return H=Object.assign?Object.assign.bind():function(n){for(var e=1;e div > h5 {\n color: ",";\n }\n\n "," {\n position: fixed;\n z-index: 11;\n top: 0;\n box-shadow: 0px 0px 8px rgba(40, 74, 117, 0.08);\n width: calc(100vw - var(--side-menu-width));\n }\n\n "," {\n width: 100%;\n top: 64px;\n align-items: center;\n border-bottom: 1px solid\n ",";\n\n &:not(.has-search) {\n height: 56px;\n }\n }\n\n "," {\n padding: 10px 16px;\n\n &.has-search {\n height: 160px;\n }\n }\n"]);return c=function(){return n},n}function l(){var n=(0,i.A)(["\n & > div[data-has-icons='true'] > div {\n padding-right: 32px;\n }\n\n & > div[data-has-icons='true'] {\n min-width: 240px;\n border: 1px solid ",";\n }\n\n & > div > div {\n padding-top: 0;\n padding-bottom: 0;\n }\n"]);return l=function(){return n},n}function s(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n padding-right: 32px;\n\n & > :not(:first-child) {\n margin-left: 24px;\n }\n\n & {\n .alert {\n position: absolute;\n top: 84px;\n right: 0;\n overflow: hidden;\n width: 25vw;\n }\n }\n\n "," {\n padding-right: 0;\n margin-left: auto;\n\n & > :not(:first-child) {\n margin-left: 16px;\n }\n }\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n background-color: white;\n position: relative;\n\n "," {\n display: unset;\n width: 100%;\n }\n\n "," {\n width: 100%;\n justify-content: space-between;\n }\n\n & > :not(:first-child) {\n margin-left: 24px;\n }\n"]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n max-height: 24px;\n"]);return u=function(){return n},n}function p(){var n=(0,i.A)(["\n position: relative;\n width: auto;\n padding-right: 32px;\n padding-left: 32px;\n background-image: url('","/bgSvg/calendar.svg'),\n url('","/svg/chevron-down.svg');\n background-position: 0px center, right center;\n background-repeat: no-repeat;\n background-size: 15px 15px;\n font-weight: ",";\n"]);return p=function(){return n},n}function f(){var n=(0,i.A)(["\n position: relative;\n & svg {\n cursor: pointer;\n }\n"]);return f=function(){return n},n}function h(){var n=(0,i.A)(["\n position: absolute;\n top: 100%;\n right: 0;\n min-width: 200px;\n border: 1px solid ",";\n margin: 8px 0;\n background: white;\n border-radius: 6px;\n filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04));\n\n li {\n display: flex;\n align-items: center;\n padding: 12px 18px;\n cursor: pointer;\n white-space: nowrap;\n &:hover {\n background: #f2f2f2;\n }\n & {\n a {\n color: ",";\n text-decoration: none;\n }\n }\n & {\n svg {\n margin-right: 12px;\n }\n }\n }\n"]);return h=function(){return n},n}function g(){var n=(0,i.A)(["\n display: flex;\n "," {\n display: unset;\n }\n input {\n width: 100%;\n height: 40px;\n }\n & {\n .dropdown {\n min-width: 250px;\n margin-right: 8px;\n font-size: 14px;\n\n "," {\n margin-right: 0;\n }\n\n input::placeholder {\n color: ",";\n }\n }\n\n .hospital {\n "," {\n padding-bottom: 8px;\n }\n }\n }\n"]);return g=function(){return n},n}var m=a.Ay.header.withConfig({componentId:"sc-29f61629-0"})(c(),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray800}),o.M.tdUp,o.M.tdDown,(function(n){return n.theme.colors.neutral100}),o.M.mbDown),v=a.Ay.div.withConfig({componentId:"sc-29f61629-1"})(l(),(function(n){return n.theme.colors.gray200})),b=a.Ay.div.withConfig({componentId:"sc-29f61629-2"})(s(),o.M.tdDown),x=a.Ay.div.withConfig({componentId:"sc-29f61629-3"})(d(),o.M.mbDown,o.M.tdOnly),w=a.Ay.div.withConfig({componentId:"sc-29f61629-4"})(u()),y=a.Ay.button.withConfig({componentId:"sc-29f61629-5"})(p(),r.JpE,r.JpE,(function(n){return n.theme.sizes.fwSemiBold})),A=a.Ay.div.withConfig({componentId:"sc-29f61629-6"})(f()),C=a.Ay.div.withConfig({componentId:"sc-29f61629-7"})(h(),(function(n){return n.theme.colors.neutral200}),(function(n){return n.theme.colors.gray800})),M=a.Ay.div.withConfig({componentId:"sc-29f61629-8"})(g(),o.M.mbDown,o.M.mbDown,(function(n){return n.theme.colors.gray800}),o.M.mbDown)},77298:function(n,e,t){"use strict";t.r(e),t.d(e,{AdminNavigation:function(){return C}});var i=t(53513),o=t(63538),r=t(2445),a=t(73884),c=t(44835),l=t(35291),s=t(35084),d=t(32485),u=t.n(d),p=t(24572),f=t(45638),h=t(88542),g=t(88491),m=t(73419),v=t(53286),b=t(6442),x=t(36259),w=t(12577),y=t(1971),A=function(n){var e=(0,b.A)().formatMessage;return(0,r.Y)(y.zX,{onClick:n.onClick,children:e({id:"admin.home.filter.today",defaultMessage:"Today"})})},C=function(n){var e=n.header,t=n.className,d=n.notificationBadgeNumber,C=n.isDateFilter,M=void 0!==C&&C,_=n.hasHospitalSearch,k=n.alert,Y=n.adminNavigationRightAdditionalRightComponent,D=n.rightDropdownSearchComponent,E=n.hospitalId,I=n.branchId,N=n.handleChangeHospitalOption,F=n.handleChangeBranchOption,z=(0,b.A)().formatMessage,S=(0,a.useContext)(x.B).state.userInfo,O=(0,g.d)().isMobileOrTablet,T=(0,m.$)().locale,B=(0,h.o)(),L=B.hospitalId,P=B.branchId,j=B.replaceInvalidHospitalIdAndBranchId,H=B.setHospitalIdAndBranchId;(0,a.useEffect)((function(){j()}),[]);var R=(0,r.FD)(y.dB,{children:[(0,r.Y)(f.i,{id:"hospital-dropdown",className:"dropdown hospital",placeholder:z({id:"admin.users.allHospitals",defaultMessage:"All hospitals"}),value:null!==E&&void 0!==E?E:L,disabled:!!E,handleChange:function(n){var e;e=n,N?N(e):((0,v.handleChangeHospitalOption)(e,L),H((function(n){return(0,o.A)((0,i.A)({},n),{hospitalId:e.value})})))}}),(0,r.Y)(p.U,{id:"branch-dropdown",className:"dropdown branch",placeholder:z({id:"admin.users.allBranches",defaultMessage:"All branches"}),value:null!==I&&void 0!==I?I:P,handleChange:function(n){var e;e=n,F?F(e):((0,v.handleChangeBranchOption)(e,L,P),H((function(n){return(0,o.A)((0,i.A)({},n),{branchId:e.value})})))},hospitalId:null!==E&&void 0!==E?E:L,roleUser:null===S||void 0===S?void 0:S.role,disabled:!!E||!!I||!L})]});return(0,r.FD)(y.rf,{className:u()(t,{"has-search":_}),children:[(0,r.FD)(y._H,{children:[(0,r.Y)(c.H,{tag:"h5",color:l.w.colors.secondaryDark,className:"font-capital",children:e||""}),_&&R,D,M&&(0,r.Y)(y.lF,{children:(0,r.Y)(s.D,{placeholder:"placeholder",displayDateFormat:"dd-MM-yyyy",pickedDate:new Date,customInput:A,onChange:function(){},locale:T})})]}),!O&&(0,r.Y)(w.A,{alert:k,notificationBadgeNumber:d,additionalComponent:Y})]})}},39900:function(n,e,t){"use strict";t.d(e,{R:function(){return _n}});var i=t(858),o=t(83776),r=t(2445),a=t(73884),c=t(69931),l=t(66079),s=t(74029),d=t(98678),u=t(59850),p=t(84091),f=t(6442),h=t(36259),g=t(20105),m=t(24537),v=t(4766),b=t(27317);function x(){var n=(0,m.A)(["\n & > div[data-type='form'] {\n max-height: 90vh;\n background-color: white;\n\n width: 80%;\n\n "," {\n width: 496px;\n }\n\n .patientFormPopup {\n &.popup-content {\n padding: 0;\n }\n\n form {\n height: 100%;\n }\n }\n\n form {\n &[name='add-sub-patient'] {\n height: 100%;\n }\n }\n }\n\n .close-button {\n top: 12px;\n }\n\n .alert {\n position: absolute;\n right: 0;\n width: 400px;\n }\n\n .form-heading {\n border-bottom: 1px solid\n ",";\n padding: 12px 24px;\n margin: 0px -16px;\n }\n\n .addButton {\n margin: 24px 0 -8px;\n }\n"]);return x=function(){return n},n}function w(){var n=(0,m.A)(["\n padding: 16px 8px;\n margin-bottom: -16px;\n display: flex;\n flex-direction: column;\n gap: 12px;\n height: calc(100% - 90px);\n overflow: auto;\n label[data-size='label2'] {\n font-weight: 600;\n font-size: 12px;\n line-height: 18px;\n margin-bottom: 6px;\n color: ",";\n\n &::after {\n content: '*';\n color: ",";\n margin-left: 2px;\n }\n\n & + div {\n margin-top: 6px;\n\n input {\n height: 40px;\n font-size: 14px;\n line-height: 22px;\n &::placeholder {\n color: ",";\n }\n }\n }\n\n & + button {\n margin-top: 6px;\n }\n }\n\n .gender {\n & > label {\n font-weight: 600;\n }\n }\n\n .patient-phone {\n label {\n &::after {\n display: none;\n }\n }\n }\n\n .relation {\n width: 250px;\n "," {\n width: 100%;\n }\n & > div {\n height: 40px;\n margin-bottom: 0;\n & > div {\n padding: 9px 16px;\n display: flex;\n align-items: center;\n\n & > span {\n font-size: 14px;\n line-height: 22px;\n color: ",";\n }\n\n "," {\n width: 100%;\n height: 100%;\n & > span {\n max-height: 100%;\n max-width: 100%;\n }\n }\n }\n\n & > ul[data-has-icons='false'] {\n max-height: 250px;\n overflow: auto;\n & > li {\n height: 40px;\n font-size: 14px;\n line-height: 22px;\n }\n }\n }\n\n &[data-has-value='true'] > div > div > span {\n color: ",";\n }\n }\n\n .notifyTo {\n flex-direction: column;\n gap: 14px;\n align-items: flex-start;\n }\n"]);return w=function(){return n},n}function y(){var n=(0,m.A)(["\n background-color: ",";\n padding: 5px 8px;\n border-radius: 34px;\n display: flex;\n gap: 8px;\n align-items: center;\n margin-top: 4px;\n"]);return y=function(){return n},n}var A=b.Ay.div.withConfig({componentId:"sc-6141c933-0"})(x(),v.M.mbUp,(function(n){return n.theme.colors.neutral100})),C=b.Ay.div.withConfig({componentId:"sc-6141c933-1"})(w(),(function(n){return n.theme.colors.gray600}),(function(n){return n.theme.colors.red600}),(function(n){return n.theme.colors.gray400}),v.M.mbDown,(function(n){return n.theme.colors.gray400}),v.M.mbDown,(function(n){return n.theme.colors.gray800})),M=b.Ay.div.withConfig({componentId:"sc-6141c933-2"})(y(),(function(n){return n.theme.colors.blue50})),_=t(50126),k=t(49785),Y=t(68289),D=t(40959),E=t(1135);function I(){var n=(0,f.A)(),e=n.formatMessage,t=n.locale,i=[{label:e({id:"newDoctor.male",defaultMessage:"Male"}),value:String(D.YT8.MALE)},{label:e({id:"newDoctor.female",defaultMessage:"Female"}),value:String(D.YT8.FEMALE)}],o=Object.keys(D.ynE).map((function(n){return{label:e({id:"booking.subPatient.relationship.".concat(D.ynE[Number(n)||E.pE.OTHER]),defaultMessage:(0,Y.Zr)(D.ynE[Number(n)])}),value:n}})),r=[{label:e({id:"booking.subPatient.confirmation.onlyMe",defaultMessage:"Only me"}),value:String(E.WA.MASTER)},{label:e({id:"booking.subPatient.confirmation.both",defaultMessage:"Both"}),value:String(E.WA.BOTH)},{label:e({id:"booking.subPatient.confirmation.patient",defaultMessage:"Patient"}),value:String(E.WA.CONTACT)}],c={addNewProfile:e({id:"booking.subPatient.addNewProfile",defaultMessage:"Add New Profile"}),editProfile:e({id:"booking.subPatient.editProfile",defaultMessage:"Edit Profile"}),errorProfilePhoto:e({id:"error.profilePhotoRequired",defaultMessage:"Profile photo is required"}),errorNameRequired:e({id:"error.nameIsRequired",defaultMessage:"Name is required"}),errorEmailRequired:e({id:"error.emailIsRequired",defaultMessage:"Please enter a valid email"}),patientName:e({id:"booking.subPatient.patientName",defaultMessage:"Patient name"}),enterPatientName:e({id:"booking.subPatient.enterPatientName",defaultMessage:"Enter patient name"}),enterpatientPhone:e({id:"booking.subPatient.enterPatientPhone",defaultMessage:"Enter patient phone"}),dateOfBirth:e({id:"booking.subPatient.dateOfBirth",defaultMessage:"Date of birth"}),requiredBirthday:e({id:"booking.subPatient.requiredBirthday",defaultMessage:"Birthday is required"}),gender:e({id:"newDoctor.gender",defaultMessage:"Gender"}),relationship:e({id:"booking.subPatient.relation",defaultMessage:"Patient\u2019s Relation to You"}),sendConfirmation:e({id:"booking.subPatient.sendConfirmation",defaultMessage:"Send confirmation and reminders of the booking to"}),patientEmail:e({id:"booking.subPatient.patientEmail",defaultMessage:"Patient Email"}),addNewPatient:e({id:"booking.subPatient.addNewPatient",defaultMessage:"Add New Patient"}),saveChanges:e({id:"booking.subPatient.saveChanges",defaultMessage:"Save Changes"}),enterPatientEmail:e({id:"booking.subPatient.enterPatientEmail",defaultMessage:"Enter patient email"}),age:function(n){return e({id:"booking.success.years",defaultMessage:"{age} Yrs"},{age:n})},childProfile:e({id:"booking.subPatient.childProfile",defaultMessage:"Child Profile"}),patientPhone:e({id:"booking.subPatient.patientPhone",defaultMessage:"Patient phone"}),patientPhoneTootip:e({id:"booking.subPatient.enterPatientPhone.tooltip",defaultMessage:"Please input patient's phone (if there is) for the clinic/doctor contact to patient & update the latest information on the booking."})};return(0,a.useMemo)((function(){return{optionsGender:i,optionsRelationship:o,optionsNotify:r,translations:c}}),[t])}var N=(0,a.forwardRef)((function(n,e){var t=n.formType,i=I().translations,o=(0,k.xW)(),c=o.reset,l=o.formState.isSubmitting;return(0,a.useImperativeHandle)(e,(function(){return{reset:function(){c()}}})),(0,r.Y)(_.B,{size:"sm",isBlock:!0,className:"addButton",disabled:l,children:"add"===t?i.addNewPatient:i.saveChanges})})),F=t(35291),z=t(74952),S=t(630),O=t(35084),T=t(32485),B=t.n(T),L=t(66298),P=t(62862),j=t(21336);function H(){var n=(0,m.A)(["\n position: relative;\n\n .datePicker {\n position: absolute;\n z-index: 99;\n\n .pickerOverlayWrapper {\n max-width: 350px;\n }\n\n input {\n height: 0;\n }\n }\n"]);return H=function(){return n},n}function R(){var n=(0,m.A)(["\n padding: 9px 16px;\n border: 1px solid ",";\n border-radius: 4px;\n width: 100%;\n height: 40px;\n display: flex;\n justify-content: space-between;\n cursor: pointer;\n\n &.error {\n border-color: ",";\n }\n"]);return R=function(){return n},n}function V(){var n=(0,m.A)(["\n display: inline-block;\n margin-bottom: 4px;\n color: ",";\n font-weight: ",";\n"]);return V=function(){return n},n}function U(){var n=(0,m.A)(["\n color: ",";\n font-weight: ",";\n"]);return U=function(){return n},n}var G=b.Ay.div.withConfig({componentId:"sc-de8b215c-0"})(H()),W=b.Ay.button.withConfig({componentId:"sc-de8b215c-1"})(R(),(function(n){return n.theme.colors.gray200}),(function(n){return n.theme.colors.red700})),q=(b.Ay.label.withConfig({componentId:"sc-de8b215c-2"})(V(),(function(n){return n.theme.colors.gray600}),(function(n){return n.theme.sizes.fwBold})),b.Ay.label.withConfig({componentId:"sc-de8b215c-3"})(U(),(function(n){return n.theme.colors.red700}),(function(n){return n.theme.sizes.fwRegular})),t(56791));function J(n){var e=n.name,t=n.label,i=n.required,o=void 0!==i&&i,c=(0,a.useRef)(null),s=(0,a.useState)(!1),d=s[0],u=s[1],p=(0,f.A)().formatMessage;return(0,P.j)(c,(function(){u(!1)})),(0,r.Y)(k.xI,{rules:{validate:function(n){return!o||!!n}},name:e,render:function(n){var i=n.field,a=i.onChange,s=i.value,f=n.fieldState.error;return(0,r.FD)(G,{ref:c,children:[t&&(0,r.Y)(S.L,{size:"label2",htmlFor:e,className:"datePickerLabel",children:t}),(0,r.FD)(W,{type:"button",className:B()({error:!!f}),onClick:function(){return u(!d)},children:[(0,r.Y)(l.T,{size:"s4",color:s?F.w.colors.gray800:F.w.colors.gray400,children:s?(0,L.A)(s,D.AI5):D.AI5.toUpperCase()}),(0,r.Y)(j.h,{iconSize:20,svgIcon:{fill:F.w.colors.gray400},onClick:function(){return null},children:(0,r.Y)(q.A,{})})]}),d&&(0,r.Y)(O.D,{onChange:function(n){a(n),u(!1)},className:"datePicker",disabledDays:{after:new Date},isStatic:!0,alignRight:!0,UnHideOnClickOutside:!0}),f&&(0,r.Y)(l.T,{size:"label2",color:F.w.colors.red700,children:"string"===typeof o?o:p({id:"common.error.requiredField",defaultMessage:"This field is required"})})]})}})}var K=t(53513),Z=t(63538),$=t(64411);function Q(){var n=(0,m.A)(["\n margin-bottom: 18px;\n\n & > ul {\n z-index: 10;\n }\n"]);return Q=function(){return n},n}function X(){var n=(0,m.A)(["\n position: relative;\n &[data-is-error='true'] {\n & > div {\n border-color: ",";\n }\n }\n .errorLabel {\n font-size: 12px;\n }\n"]);return X=function(){return n},n}var nn=(0,b.Ay)($.D).withConfig({componentId:"sc-a07f320c-0"})(Q()),en=b.Ay.div.withConfig({componentId:"sc-a07f320c-1"})(X(),(function(n){return n.theme.colors.red700}));function tn(n){var e=n.name,t=n.placeholder,i=n.className,o=n.label,a=n.options,c=n.required,l=void 0!==c&&c,s=n.disabled,d=void 0!==s&&s,u=(0,f.A)().formatMessage,p=(0,k.xW)(),h=p.register,g=p.control,m=p.formState.errors,v=h(e,{validate:l?{required:function(n){return!!n}}:void 0});return(0,r.Y)(k.xI,{name:e,control:g,render:function(n){var c=n.field;return(0,r.FD)(en,{className:i,"data-is-error":!!m[e],"data-has-value":!!c.value,children:[o&&(0,r.Y)(S.L,{size:"label2",htmlFor:e,className:"formDropdownLabel",children:o}),(0,r.Y)(nn,(0,Z.A)((0,K.A)({},v),{onChange:function(n){return c.onChange(n.value)},value:a.find((function(n){return n.value===c.value})),id:e,options:a,disabled:d,placeholder:t||u({id:"admin.booking.pleaseSelectOption",defaultMessage:"Please select an option"})}))]})}})}var on=t(80398),rn=t(75423),an=t(63328);function cn(){var n=(0,m.A)(["\n display: flex;\n gap: 10px;\n align-items: center;\n\n "," {\n flex-direction: column;\n align-items: center;\n button {\n width: 100%;\n }\n }\n\n button {\n height: fit-content;\n padding: 5px 12px;\n }\n\n .remove-btn {\n &:not(:disabled) {\n color: ",";\n border-color: ",";\n\n &:hover {\n background-color: ",";\n border-color: ",";\n }\n }\n }\n\n .remove-btn:disabled:hover {\n background-color: ",";\n }\n"]);return cn=function(){return n},n}function ln(){var n=(0,m.A)(["\n display: inline-block;\n position: relative;\n"]);return ln=function(){return n},n}var sn=b.Ay.div.withConfig({componentId:"sc-5e9a2405-0"})(cn(),v.M.mbDown,(function(n){return n.theme.colors.red600}),(function(n){return n.theme.colors.red600}),(function(n){return n.theme.colors.red100}),(function(n){return n.theme.colors.red600}),(function(n){return n.theme.colors.gray400})),dn=b.Ay.div.withConfig({componentId:"sc-5e9a2405-1"})(ln()),un=function(n){var e=n.onFileSelected,t=n.fileAcceptType,i=n.multiple,o=n.className,c=n.withElement,l=n.value,s=n.isRemoveButtonDisabled,d=void 0===s||s,u=(0,f.A)().formatMessage,p=(0,a.useRef)(null),h=function(){var n;null===(n=p.current)||void 0===n||n.click()};return(0,r.FD)(sn,{className:o,children:[(0,r.FD)(dn,{onClick:h,children:[c,(0,r.Y)("input",{ref:p,accept:t,multiple:i,type:"file",value:l,style:{display:"none"},onChange:function(n){e(n.target.files)}})]}),(0,r.Y)(_.B,{size:"sm",type:"button",color:"tertiary",onClick:h,children:u({id:"common.photo.changePhoto",defaultMessage:"Change Photo"})}),(0,r.Y)(_.B,{size:"sm",type:"button",color:"tertiary",className:"remove-btn",onClick:function(){e(null)},disabled:d,children:u({id:"common.photo.removePhoto",defaultMessage:"Remove Photo"})})]})},pn=t(16282);function fn(n){var e=n.name,t=n.size,i=n.required,o=void 0!==i&&i,c=(0,a.useState)(""),l=c[0],d=c[1],u=(0,pn.y)().errorMessages;return(0,r.Y)(k.xI,{name:e,rules:{validate:function(n){return!(o&&!n&&!l)||("string"===typeof o?o:u.requiredField)}},render:function(n){var e=n.field,i=e.onChange,o=e.value,a=n.fieldState.error,c=(null===a||void 0===a?void 0:a.message)||"";return(0,r.FD)(r.FK,{children:[(0,r.Y)(un,{onFileSelected:function(n){if(!n||!n[0])return d(""),void i(null);var e=new FileReader;e.readAsDataURL(n[0]),e.onload=function(){d(e.result),i(n[0])}},isRemoveButtonDisabled:!!l,withElement:(0,r.Y)(rn.A,{width:t||void 0,height:t||void 0,avatarImg:(0,r.Y)("img",{src:l||("string"===typeof o&&o?o:s.k_),width:t||void 0,height:t||void 0,className:"fit-contain"}),className:B()("form-profile-picture-avatar",{"has-error":!!c}),type:"rounded"})}),c&&(0,r.Y)(an.x0,{children:c})]})}})}var hn=t(33067);function gn(){var n=(0,m.A)(["\n width: 100%;\n height: 100%;\n position: relative;\n\n .title {\n max-width: 100%;\n background-color: ",";\n color: ",";\n position: absolute;\n z-index: 1070;\n display: block;\n width: max-content;\n left: 50%;\n transform: translate(-50%, -50%);\n padding: 5px;\n font-size: 12px;\n border-radius: 4px;\n top: -35%;\n visibility: hidden;\n }\n\n .arrow {\n width: 10px;\n height: 10px;\n position: absolute;\n background-color: ",";\n transform: rotate(45deg) translate(-50%, 5px);\n left: 50%;\n }\n\n &:hover {\n .title {\n visibility: visible;\n }\n }\n"]);return gn=function(){return n},n}var mn,vn=b.Ay.div.withConfig({componentId:"sc-8fe8dad-0"})(gn(),(function(n){return n.theme.colors.gray500}),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray500})),bn=function(n){var e=n.title,t=n.children;return(0,r.FD)(vn,{children:[t,(0,r.FD)("div",{className:"title",children:[(0,r.Y)("div",{children:e}),(0,r.Y)("div",{className:"arrow"})]})]})};function xn(){return xn=Object.assign?Object.assign.bind():function(n){for(var e=1;e=19&&(0,r.FD)(r.FK,{children:[(0,r.Y)(hn.J,{className:"notifyTo",name:"notifyTo",options:o,label:e.sendConfirmation}),a("notifyTo")!==E.WA.MASTER.toString()&&(0,r.Y)(on.Z,{name:"email",label:e.patientEmail,placeholder:e.enterPatientEmail,required:e.errorEmailRequired})]})]})},Cn=t(8758),Mn={avatar:"",name:"",birthday:null,gender:D.YT8.MALE.toString(),notifyTo:E.WA.MASTER.toString(),relation:"",email:""},_n=function(n){var e=n.isOpen,t=void 0!==e&&e,m=n.formType,v=n.defaultValues,b=void 0===v?Mn:v,x=n.onClose,w=n.onAddOrEditFamilyProfile,y=function(n){C({message:n||M({id:"error.anErrorOccurred",defaultMessage:"An error occurred!"}),type:"danger"})},C=(0,a.useContext)(h.B).pushNotifications,M=(0,f.A)().formatMessage,_=I().translations,k=(0,a.useRef)(null),Y=function(){var n=(0,i.A)((function(n){var e,t,i,r,a,c,l,f;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),e="add"===m?u.R.CREATE_PATIENT_INFO:u.R.UPDATE_PATIENT_INFO,t="edit"===m?{id:b.id}:{},i=(0,d.jz)(n),"edit"===m&&i.append("_method","PUT"),[4,(0,p.T7)((0,p.er)(e,t),"POST",{data:i})];case 1:return(r=o.sent())&&-1!==(null===r||void 0===r?void 0:r._status)?1===(null===r||void 0===r?void 0:r._status)&&(C({message:(null===r||void 0===r?void 0:r._messages)?null===r||void 0===r?void 0:r._messages[0]:M("add"===m?{id:"admin.booking.createSuccessfully",defaultMessage:"Create successfully"}:{id:"admin.booking.updateSuccessfully",defaultMessage:"Update successfully"}),type:"success"}),w((0,s.nz)(null===(c=r._data)||void 0===c?void 0:c.contact)),"add"===m&&(null===(l=k.current)||void 0===l||l.reset()),x()):y((null===r||void 0===r||null===(a=r._messages)||void 0===a?void 0:a[0])||""),[3,3];case 2:return f=o.sent(),console.log("".concat(m," sub patient error"),f),y(),[3,3];case 3:return[2]}}))}));return function(e){return n.apply(this,arguments)}}();return(0,r.Y)(A,{children:(0,r.Y)(c.P,{type:"form",isOpen:t,onClose:x,closeIcon:(0,r.Y)(Cn.A,{}),className:"patientFormPopup",children:(0,r.FD)(g.l,{name:"".concat(m,"-sub-patient"),onSubmit:Y,defaultValues:b,children:[(0,r.Y)(l.T,{size:"s3",type:"semiBold",className:"form-heading",children:"add"===m?_.addNewProfile:_.editProfile}),(0,r.Y)(An,{}),(0,r.Y)(N,{formType:m,ref:k})]})})})}},39372:function(n,e,t){"use strict";t.d(e,{KW:function(){return u},cx:function(){return p},tp:function(){return d}});var i=t(24537),o=t(4766),r=t(27317);function a(){var n=(0,i.A)(["\n .heading {\n display: flex;\n margin-bottom: 16px;\n gap: 24px;\n "," {\n margin-bottom: 24px;\n }\n "," {\n flex-direction: column;\n gap: 8px;\n }\n\n label {\n font-size: 14px;\n line-height: 22px;\n width: 100% !important;\n }\n\n .heading-title {\n margin: 0;\n }\n }\n"]);return a=function(){return n},n}function c(){var n=(0,i.A)(["\n background-color: ",";\n padding: 16px;\n display: flex;\n flex-direction: column;\n gap: 12px;\n border-radius: 8px;\n\n & > .add-button {\n width: fit-content;\n padding: 5px 16px;\n font-weight: 600;\n font-size: 14px;\n line-height: 22px;\n\n svg {\n width: 18px;\n height: 18px;\n }\n }\n"]);return c=function(){return n},n}function l(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n gap: 4px;\n"]);return l=function(){return n},n}function s(){var n=(0,i.A)(["\n padding: 8px;\n display: flex;\n gap: 16px;\n flex-direction: column;\n align-items: center;\n\n .add-button {\n font-weight: 600;\n font-size: 14px;\n line-height: 22px;\n\n svg {\n width: 18px;\n height: 18px;\n }\n }\n"]);return s=function(){return n},n}r.Ay.div.withConfig({componentId:"sc-7aacbf61-0"})(a(),o.M.tdUp,o.M.mbDown);var d=r.Ay.div.withConfig({componentId:"sc-7aacbf61-1"})(c(),(function(n){return n.theme.colors.neutral50})),u=r.Ay.div.withConfig({componentId:"sc-7aacbf61-2"})(l()),p=r.Ay.div.withConfig({componentId:"sc-7aacbf61-3"})(s())},96608:function(n,e,t){"use strict";t.d(e,{v:function(){return D}});var i=t(2445),o=t(73884),r=t(44835),a=t(66079),c=t(35291),l=t(74029),s=t(84091),d=t(19475),u=t(40959),p=t(6442),f=t(24537),h=t(4766),g=t(27317),m=t(3184);function v(){var n=(0,f.A)(["\n "," {\n position: absolute;\n top: 0;\n right: 0;\n justify-content: flex-end;\n }\n "," {\n margin: 4px 0;\n }\n"]);return v=function(){return n},n}function b(){var n=(0,f.A)(["\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n margin-top: 8px;\n"]);return b=function(){return n},n}function x(){var n=(0,f.A)(["\n position: relative;\n display: flex;\n flex-direction: column;\n margin-top: 24px;\n padding-bottom: 24px;\n border-bottom: 1px solid\n ",";\n\n "," {\n padding: 16px 0;\n margin-top: 0;\n }\n"]);return x=function(){return n},n}function w(){var n=(0,f.A)(["\n display: flex;\n gap: 16px;\n justify-content: space-between;\n\n "," {\n flex-direction: column;\n gap: 30px;\n }\n\n .profileImage {\n overflow: hidden;\n width: 96px;\n height: 96px;\n\n ",' {\n width: 64px;\n height: 64px;\n }\n\n img {\n border-radius: 50%;\n object-fit: cover;\n }\n\n .imagePlaceholder {\n position: absolute;\n\n // please don\'t judge me, this is really "important" (in order to override inline styles)\n width: 96px !important;\n height: 96px !important;\n }\n }\n\n .doctorInfoHeader {\n flex: 1;\n }\n']);return w=function(){return n},n}function y(){var n=(0,f.A)(["\n display: flex;\n gap: 16px;\n\n "," {\n order: 1;\n }\n"]);return y=function(){return n},n}var A=(0,g.Ay)(m.k).withConfig({componentId:"sc-fc51186f-0"})(v(),h.M.mbUp,h.M.mbDown),C=g.Ay.div.withConfig({componentId:"sc-fc51186f-1"})(b()),M=g.Ay.div.withConfig({componentId:"sc-fc51186f-2"})(x(),(function(n){return n.theme.colors.neutral100}),h.M.mbDown),_=g.Ay.div.withConfig({componentId:"sc-fc51186f-3"})(w(),h.M.mbDown,h.M.mbDown),k=g.Ay.div.withConfig({componentId:"sc-fc51186f-4"})(y(),h.M.mbDown),Y=t(95456),D=function(n){var e,t=n.className,f=n.doctorInfo,h=n.isMobile,g=(0,p.A)().formatMessage,m=f.name,v=f.avatar,b=f.provideCare,x=f.specialties,w=f.validOutpatient,y=f.validTelemedicine,D=!!(null===(e=f.organization)||void 0===e?void 0:e.publish_reviews),E=(0,o.useMemo)((function(){return x.map((function(n){return n.name}))}),[x]),I=(0,s.Zo)(f),N=h?64:96,F=function(n){return{forChildren:n===u.jc_.CHILDREN||n===u.jc_.BOTH,forAdult:n===u.jc_.ADULTS||n===u.jc_.BOTH}}(b),z=F.forAdult,S=F.forChildren;return(0,i.Y)(M,{className:t,children:(0,i.Y)(_,{children:(0,i.FD)(k,{children:[(0,i.Y)("div",{className:"profileImage",children:(0,i.Y)(Y.Y,{layout:"responsive",src:(0,l.wW)(v,"".concat(u.JpE,"/images/avatar.jpg")),width:N,height:N,quality:100,objectFit:"cover"})}),(0,i.FD)("div",{className:"doctorInfoHeader",children:[(0,i.Y)(r.H,{tag:"h4",as:"h1",children:m}),(0,i.Y)(a.T,{size:h?"s3":"s4",color:c.w.colors.gray600,className:"mt-[6px] sp-mt-4",children:E.join(", ")}),D&&(0,i.Y)(A,{ratingPoint:f.rating,ratingScale:u.Efn,reviewCounting:f.totalReviews,reviewsUrl:"".concat(I,"/reviews")}),(0,i.FD)(C,{children:[w&&(0,i.Y)(d.vw,{type:"blue",children:g({id:"doctorInfoComponent.booking",defaultMessage:"Booking"})}),y&&(0,i.Y)(d.vw,{type:"warning",children:g({id:"bookingPage.telemedicine",defaultMessage:"Telemedicine"})}),S&&(0,i.Y)(d.vw,{children:g({id:"forChildren",defaultMessage:"For Children"})}),z&&(0,i.Y)(d.vw,{children:g({id:"forAdults",defaultMessage:"For Adults"})})]})]})]})})})}},1247:function(n,e,t){"use strict";t.d(e,{_:function(){return b}});var i=t(53513),o=t(63538),r=t(2445),a=t(73884),c=t(66079),l=t(27516),s=t(73419),d=t(32876),u=t.n(d),p=t(6442),f=t(36259),h=t(16100),g=t.n(h),m=t(31015),v=t(40959),b=function(n){var e=n.trackingHospitalProps,t=n.organizationLogo,d=n.hospitalName,h=n.goHospitalPage,b=n.isDisplayDistance,x=n.distance,w=n.handleMakeAppointment,y=n.address,A=n.hospitalURL,C=n.isMobile,M=void 0!==C&&C,_=n.isDoctorUnavailable,k=void 0!==_&&_,Y=(0,s.$)(),D=Y.locale,E=Y.asPath,I=(0,a.useContext)(f.B).state.isLoggedIn,N=(0,p.A)().formatMessage;return(0,r.FD)(m.FD,(0,o.A)((0,i.A)({},e),{"data-is-mobile":M,children:[(0,r.Y)(m.Hb,(0,o.A)((0,i.A)({width:40,height:40,layout:"fixed",objectFit:"contain",src:t||"".concat(v.JpE,"/images/hospital-logo.png")},e),{className:"pointer",onClick:h})),(0,r.FD)(m.sb,{children:[(0,r.Y)(c.T,{size:"p4",type:"semiBold",children:(0,r.Y)(u(),{href:A||"#",children:(0,r.Y)("a",(0,o.A)((0,i.A)({},e),{className:"color-inherit",children:d}))})}),(0,r.FD)(m.tM,{children:[(0,r.Y)(m.NF,{children:(0,r.Y)(m.UQ,{children:(0,r.Y)("a",(0,o.A)((0,i.A)({},e),{onClick:h,children:y}))})}),b&&(0,r.FD)(m.aD,{children:[(0,r.Y)("svg",(0,o.A)((0,i.A)({width:"4",height:"4"},e),{onClick:h,children:(0,r.Y)("circle",{cx:"2",cy:"2",r:"2",fill:"#BFBFBF"})})),(0,r.Y)("span",{children:(0,r.Y)("a",(0,o.A)((0,i.A)({},e),{onClick:h,children:Number(x)>=0?Math.round(10*((parseFloat("".concat(x))||0)+1e-5))/10+" km":""}))})]})]})]}),!k&&(0,r.Y)(m.vz,{size:"md",color:"primary",isBlock:!0,className:g().ctaButton,"data-is-logged-in":I,onClick:w,dataEventCategory:"Care",dataEventAction:"Doctor Appointment Click",dataEventLabel:"https://".concat(l.y[D]).concat(v.JpE).concat(E),children:N({id:"doctorInfoComponent.makeanappointment",defaultMessage:"Make an Appointment"})})]}))}},31015:function(n,e,t){"use strict";t.d(e,{Bm:function(){return D},FD:function(){return M},Hb:function(){return Y},NF:function(){return N},Q1:function(){return E},UQ:function(){return S},aD:function(){return z},sb:function(){return F},tM:function(){return I},vz:function(){return C},yW:function(){return _},zI:function(){return k}});var i=t(24537),o=t(50126),r=t(4766),a=t(27317),c=t(71584),l=t(3184),s=t(95456);function d(){var n=(0,i.A)(["\n width: 100%;\n"]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n width: fit-content;\n // height: fit-content;\n align-self: center;\n white-space: nowrap;\n &[data-color='primary'][data-size='md'] {\n width: fit-content;\n font-size: 14px;\n font-weight: 700;\n line-height: 22px;\n text-transform: capitalize;\n "," {\n width: 100%;\n }\n }\n"]);return u=function(){return n},n}function p(){var n=(0,i.A)(["\n display: flex;\n width: calc(100% + 32px);\n padding: 12px 16px;\n margin-top: 16px;\n margin-left: -16px;\n background-color: ",";\n gap: 8px;\n > :first-child {\n flex-shrink: 0;\n }\n &[data-is-mobile='true'] {\n flex-wrap: wrap;\n > :nth-child(2) {\n width: calc(100% - 50px);\n }\n }\n"]);return p=function(){return n},n}function f(){var n=(0,i.A)(["\n width: 80px;\n height: 80px;\n border-radius: 50%;\n cursor: pointer;\n object-fit: cover;\n object-position: center;\n"]);return f=function(){return n},n}function h(){var n=(0,i.A)(["\n margin-top: 8px;\n"]);return h=function(){return n},n}function g(){var n=(0,i.A)(["\n width: 40px;\n height: 40px;\n flex-shrink: 0;\n border-radius: 50%;\n border: 1px solid ",";\n"]);return g=function(){return n},n}function m(){var n=(0,i.A)(["\n position: absolute;\n right: 16px;\n justify-content: flex-end;\n"]);return m=function(){return n},n}function v(){var n=(0,i.A)(["\n display: flex;\n gap: 16px;\n &[data-is-mobile='true'] {\n flex-direction: column;\n gap: 12px;\n }\n"]);return v=function(){return n},n}function b(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n\n svg {\n vertical-align: middle;\n }\n\n span {\n color: $gray-500;\n }\n"]);return b=function(){return n},n}function x(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n gap: 6px;\n p {\n display: -webkit-box;\n overflow: hidden;\n width: 100%;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n word-break: break-all;\n }\n"]);return x=function(){return n},n}function w(){var n=(0,i.A)(["\n "," {\n width: 100%;\n align-content: center;\n grid-template-areas:\n 'title direction'\n 'title direction'\n 'location direction';\n grid-template-columns: 1fr 1fr;\n > *:nth-child(1) {\n grid-area: title;\n }\n\n > *:nth-child(2) {\n grid-area: location;\n }\n\n > *:nth-child(3) {\n display: flex;\n align-self: center;\n justify-content: flex-end;\n grid-area: direction;\n }\n }\n"]);return w=function(){return n},n}function y(){var n=(0,i.A)(["\n flex-shrink: 0;\n font-weight: 400;\n font-size: 12px;\n line-height: 18px;\n color: ",";\n svg {\n margin: 6px;\n }\n"]);return y=function(){return n},n}function A(){var n=(0,i.A)(["\n font-weight: 400;\n font-size: 12px;\n line-height: 18px;\n color: ",";\n"]);return A=function(){return n},n}a.Ay.div.withConfig({componentId:"sc-d2f34187-0"})(d());var C=(0,a.Ay)(o.B).withConfig({componentId:"sc-d2f34187-1"})(u(),r.M.mbDown),M=a.Ay.div.withConfig({componentId:"sc-d2f34187-2"})(p(),(function(n){return n.theme.colors.neutral50})),_=a.Ay.img.withConfig({componentId:"sc-d2f34187-3"})(f()),k=(0,a.Ay)(c.S).withConfig({componentId:"sc-d2f34187-4"})(h()),Y=(0,a.Ay)(s.Y).withConfig({componentId:"sc-d2f34187-5"})(g(),(function(n){return n.theme.colors.neutral100})),D=(0,a.Ay)(l.k).withConfig({componentId:"sc-d2f34187-6"})(m()),E=a.Ay.div.withConfig({componentId:"sc-d2f34187-7"})(v()),I=a.Ay.div.withConfig({componentId:"sc-d2f34187-8"})(b()),N=a.Ay.div.withConfig({componentId:"sc-d2f34187-9"})(x()),F=a.Ay.div.withConfig({componentId:"sc-d2f34187-10"})(w(),r.M.mbUp),z=a.Ay.div.withConfig({componentId:"sc-d2f34187-11"})(y(),(function(n){return n.theme.colors.gray600})),S=a.Ay.p.withConfig({componentId:"sc-d2f34187-12"})(A(),(function(n){return n.theme.colors.gray600}))},89238:function(n,e,t){"use strict";t.d(e,{w:function(){return Y}});var i=t(53513),o=t(63538),r=t(2445),a=t(73884),c=t(66079),l=t(50126),s=t(27516),d=t(74029),u=t(84091),p=t(32485),f=t.n(p),h=t(19475),g=t(17271),m=t.n(g),v=t(73419),b=t(40959),x=t(32876),w=t.n(x),y=t(6442),A=t(1247),C=t(16100),M=t.n(C),_=t(31015),k=t(74834),Y=function(n){var e,t,p=n.doctorInfo,g=n.hospitalInfo,x=n.orderedListIndex,C=n.gps,Y=n.className,D=n.isFeaturedDoctor,E=n.isMobile,I=p.name,N=p.price,F=p.priceTo,z=p.priceType,S=p.avatar,O=p.provideCare,T=p.specialties,B=p.organization,L=p.validOutpatient,P=p.validTelemedicine,j=p.rating,H=p.totalReviews,R=p.bookingUrl,V=p.gender,U=p.status,G=p.promotion,W=(0,v.$)(),q=W.locale,J=g.name,K=g.address,Z=g.latitude,$=g.longitude,Q=(0,y.A)().formatMessage,X=C&&C.lat&&C.lng&&Z&&$?m()({lat:Z,lon:$},{lat:C.lat,lon:C.lng},{exact:!1,unit:"km"}):null,nn=(null===(e=p.hospital)||void 0===e?void 0:e.websiteUrl)||"",en=U===b.XQv.INACTIVE||!L&&!P,tn="zh-TW"===q?nn:(0,u.Zo)(p)+"/",on={"data-event-category":"Care","data-event-action":"Doctor Click ".concat(x+1),"data-event-label":"https://".concat(s.y[q]).concat(tn)},rn="zh-TW"===q?nn:(0,u.eP)(g),an={"data-event-category":"Care","data-event-action":"Hospital Click ".concat(x+1),"data-event-label":"zh-TW"===q?nn:"https://".concat(s.y[q]).concat(rn,"/")},cn=!!(null===(t=p.organization)||void 0===t?void 0:t.publish_reviews),ln=function(){"zh-TW"===q&&R?W.push(R):W.push(tn)},sn=(0,a.useMemo)((function(){return T.map((function(n){return(null===n||void 0===n?void 0:n.name)||n})).join(", ")}),[T]),dn=(0,a.useMemo)((function(){return(null===p||void 0===p?void 0:p.isSiloam)||0===Number(N)}),[null===p||void 0===p?void 0:p.isSiloam,N]),un=null!==X,pn=(0,a.useMemo)((function(){return S===d.k_&&"zh-TW"===q?V===b.YT8.FEMALE?"".concat(b.JpE,"/images/femaleAvatar.svg"):"".concat(b.JpE,"/images/maleAvatar.svg"):S||d.k_}),[q]);return(0,r.FD)("div",{className:f()(M().mDoctorInfo,Y),style:{padding:D?"16px 16px 16px 16px":"16px 16px 0 16px"},children:[cn&&(0,r.Y)(_.Bm,{ratingPoint:j,ratingScale:b.Efn,reviewCounting:H,reviewsUrl:"".concat(tn,"reviews")}),(0,r.FD)("div",{className:f()(M().doctorInfoWrapper),children:[(0,r.Y)("div",{className:f()(M().doctorHeader),children:(0,r.FD)(_.Q1,{"data-is-mobile":E,className:"zh-TW"===q?"disable-click":"",children:[(0,r.Y)(w(),{href:tn,children:(0,r.Y)("a",{children:(0,r.Y)(_.yW,(0,o.A)((0,i.A)({src:pn},on),{onClick:ln,loading:"lazy"}))})}),(0,r.FD)("div",{className:f()(M().doctorInfoHeader),children:[(0,r.Y)(w(),{href:tn,children:(0,r.Y)("a",(0,o.A)((0,i.A)({},on),{children:(0,r.Y)(c.T,{size:"md",type:"semiBold",children:I})}))}),(0,r.Y)(w(),{href:tn,children:(0,r.Y)("a",(0,o.A)((0,i.A)({},on),{children:(0,r.Y)(c.T,{className:f()(M().doctorDescription),size:"p4",children:sn})}))}),(0,r.FD)("div",{className:M().tags,children:[en?(0,r.Y)(w(),{href:tn,children:(0,r.Y)("a",(0,o.A)((0,i.A)({},on),{children:(0,r.Y)(h.vw,{className:M().doctorTag,type:"unavailable",children:Q({id:"common.notAvailable",defaultMessage:"Not available"})})}))}):(0,r.FD)(r.FK,{children:[L&&(0,r.Y)(w(),{href:tn,children:(0,r.Y)("a",(0,o.A)((0,i.A)({},on),{children:(0,r.Y)(h.vw,{className:M().doctorTag,type:"blue",children:Q({id:"doctorInfoComponent.booking",defaultMessage:"Booking"})})}))}),P&&(0,r.Y)(w(),{href:tn,children:(0,r.Y)("a",(0,o.A)((0,i.A)({},on),{children:(0,r.Y)(h.vw,{className:M().doctorTag,type:"warning",children:Q({id:"bookingPage.telemedicine",defaultMessage:"Telemedicine"})})}))})]}),(O===b.jc_.CHILDREN||O===b.jc_.BOTH)&&(0,r.Y)(w(),{href:tn,children:(0,r.Y)("a",(0,o.A)((0,i.A)({},on),{children:(0,r.Y)(h.vw,{className:M().doctorTag,children:Q({id:"forChildren",defaultMessage:"For Children"})})}))}),(O===b.jc_.ADULTS||O===b.jc_.BOTH)&&(0,r.Y)(w(),{href:tn,children:(0,r.Y)("a",(0,o.A)((0,i.A)({},on),{children:(0,r.Y)(h.vw,{className:M().doctorTag,children:Q({id:"forAdults",defaultMessage:"For Adults"})})}))})]}),!dn&&(0,r.Y)("div",{className:f()(M().pricing,M().isDesktop),children:(0,r.Y)(w(),{href:tn,children:(0,r.Y)("a",(0,o.A)((0,i.A)({},on),{children:(0,r.Y)(_.zI,{priceType:z,price:N,priceTo:F})}))})}),G&&(0,r.Y)(k.A,{})]})]})}),D?(0,r.Y)(l.B,{size:"md",color:"secondary",isBlock:!0,className:f()(M().viewDetailsBtn),onClick:ln,children:Q({id:"admin.guide.viewDetails",defaultMessage:"View details"})}):(0,r.Y)(A._,{trackingHospitalProps:an,organizationLogo:(null===B||void 0===B?void 0:B.logo)||(null===g||void 0===g?void 0:g.logo),hospitalName:J,goHospitalPage:function(){W.push(rn)},isDisplayDistance:un,distance:X,handleMakeAppointment:ln,address:K,hospitalURL:rn,isMobile:E,isDoctorUnavailable:en})]})]})}},43184:function(n,e,t){"use strict";t.d(e,{U1:function(){return A},Sv:function(){return y},vv:function(){return w}});var i=t(40568),o=t(24537),r=t(2445),a=t(73884),c=t.n(a),l=t(92151),s=t(62862),d=t(27317),u=t(41172);function p(){var n=(0,o.A)(["\n position: relative;\n border: 1px solid ",";\n background-position: right 16px center;\n border-radius: 6px;\n\n ","\n\n &[data-has-icons='true'] {\n border: none;\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: 24px;\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 &[data-has-icons='true'][data-has-edit-icon='true'] {\n & > div {\n &::after {\n background-image: url('/care/svg/edit-16-gray.svg');\n width: 16px;\n height: 16px;\n }\n input {\n cursor: pointer;\n }\n }\n }\n\n &:hover {\n box-shadow: 0 0 2px 2px ",";\n }\n &[data-has-error] {\n > div::after {\n position: absolute;\n right: 24px;\n width: 10px;\n height: 8px;\n background-image: none;\n background-repeat: no-repeat;\n content: '';\n }\n }\n"]);return p=function(){return n},n}function f(){var n=(0,o.A)(["\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 & {\n input {\n font-size: 14px;\n }\n }\n & {\n .input-search {\n input {\n padding-right: 40px;\n font-size: 14px;\n white-space: nowrap;\n }\n }\n }\n &[data-has-error] {\n input {\n border-color: ",";\n }\n }\n"]);return f=function(){return n},n}function h(){var n=(0,o.A)(["\n position: absolute;\n z-index: 110;\n top: 100%;\n right: 0;\n left: 0;\n display: block;\n max-height: 300px;\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 & {\n .none {\n display: flex;\n min-height: 30px;\n align-items: center;\n justify-content: center;\n }\n }\n"]);return h=function(){return n},n}var g=d.Ay.div.withConfig({componentId:"sc-680deca3-0"})(p(),(function(n){return n.theme.colors.gray200}),(function(n){return n.disabled&&!n.hasEdit&&"\n pointer-events: none;\n "}),(function(n){return n.theme.colors.blue200})),m=d.Ay.div.withConfig({componentId:"sc-680deca3-1"})(f(),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.blue200}),(function(n){return n.theme.colors.red700}));d.Ay.ul.withConfig({componentId:"sc-680deca3-2"})(h(),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray200}));function v(){var n=(0,o.A)(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"]);return v=function(){return n},n}function b(){var n=(0,o.A)(["\n animation: "," 1.2s linear infinite;\n"]);return b=function(){return n},n}var x=(0,d.i7)(v()),w=d.Ay.svg.withConfig({componentId:"sc-b5260283-0"})(b(),x);function y(n){var e=n.className,t=n.width,i=void 0===t?"1em":t,o=n.color,a=void 0===o?"currentColor":o;return(0,r.Y)("svg",{width:i,height:i,className:e,viewBox:"0 0 24 24",children:(0,r.FD)("g",{children:[(0,r.Y)("path",{fill:a,d:"M 21.5 22 L 2.5 22 C 1.121094 22 0 20.878906 0 19.5 L 0 12.5 C 0 12.429688 0.015625 12.359375 0.0429688 12.296875 L 4.011719 3.476562 C 4.417969 2.578125 5.3125 2 6.292969 2 L 17.707031 2 C 18.6875 2 19.582031 2.578125 19.988281 3.476562 L 23.957031 12.296875 C 23.984375 12.359375 24 12.429688 24 12.5 L 24 19.5 C 24 20.878906 22.878906 22 21.5 22 Z M 1 12.605469 L 1 19.5 C 1 20.328125 1.671875 21 2.5 21 L 21.5 21 C 22.328125 21 23 20.328125 23 19.5 L 23 12.605469 L 19.074219 3.882812 C 18.832031 3.347656 18.296875 3 17.707031 3 L 6.292969 3 C 5.703125 3 5.167969 3.347656 4.925781 3.886719 Z M 1 12.605469 "}),(0,r.Y)("path",{fill:a,d:"M 16.808594 17 L 7.191406 17 C 6.570312 17 6.007812 16.609375 5.789062 16.027344 L 4.773438 13.324219 C 4.703125 13.128906 4.515625 13 4.308594 13 L 0.75 13 C 0.472656 13 0.25 12.777344 0.25 12.5 C 0.25 12.222656 0.472656 12 0.75 12 L 4.308594 12 C 4.929688 12 5.492188 12.390625 5.710938 12.972656 L 6.726562 15.675781 C 6.796875 15.871094 6.984375 16 7.191406 16 L 16.804688 16 C 17.015625 16 17.203125 15.871094 17.273438 15.675781 L 18.285156 12.972656 C 18.507812 12.390625 19.070312 12 19.691406 12 L 23.5 12 C 23.777344 12 24 12.222656 24 12.5 C 24 12.777344 23.777344 13 23.5 13 L 19.691406 13 C 19.484375 13 19.296875 13.128906 19.226562 13.324219 L 18.210938 16.027344 C 17.992188 16.609375 17.429688 17 16.808594 17 Z M 16.808594 17 "})]})})}var A=c().forwardRef((function(n,e){var t,o=n.className,d=n.style,p=n.id,f=n.placeholder,h=n.placeholderIcon,v=n.onChange,b=n.value,x=n.options,w=n.isLoading,y=n.onBlur,A=n.onFocus,C=n.errorMessage,M=n.hasFilterOption,_=void 0===M||M,k=n.hasFilterValueFromOptions,Y=void 0===k||k,D=n.disabled,E=n.onKeyPress,I=n.customPlaceHolder,N=n.useInnerHTML,F=void 0!==N&&N,z=n.onChangeField,S=n.hasEditIcon,O=void 0!==S&&S,T=n.onEdit,B=(0,a.useState)(""),L=B[0],P=B[1],j=(0,i.A)(c().useState(!1),2),H=j[0],R=j[1],V=(0,a.useState)(null!==(t=null===b||void 0===b?void 0:b.value)&&void 0!==t?t:""),U=V[0],G=V[1],W=(0,a.useRef)(null),q=(0,a.useRef)(null);(0,s.j)(q,(function(){R(!1)}));var J=L&&!z?_?function(n,e){var t="".concat(e).toLowerCase();return n.filter((function(n){return"".concat(n.value).toLowerCase().includes(t)||n.label.toLowerCase().includes(t)}))}(x,L):x:b&&Y?x.filter((function(n){return n.value!==b.value})):x,K=b?x.find((function(n){return String(n.value)===String(b.value)})):null;return(0,r.Y)(g,{className:o,"data-dropdown-open":H,id:p,"data-has-icons":!0,"data-has-edit-icon":O,ref:W,style:d,tabIndex:0,"data-has-error":C&&C.length>0||void 0,disabled:D,hasEdit:O,onClick:function(){T&&T()},children:(0,r.FD)(m,{ref:q,children:[(0,r.Y)(l.a,{ref:e,name:"dropdown-input-".concat(p),autoFocus:!1,displayIcon:h,size:"sm",onChange:function(n){void 0===z?(v(null,n),P(n)):(z(n),P(n))},placeholder:f,value:K?K.label:b&&b.value?b.label:L,autoComplete:"off",className:"input-search",onBlur:function(n){var e;(e=n).relatedTarget&&e.relatedTarget.id===p||(P(""),y&&y())},onFocus:A,isDisabled:D,errorMessage:H?"":C,onKeyDown:E,onClick:function(){return R(!0)}}),!D&&H&&(0,r.Y)(u.qw,{options:J,isLoading:w,hasIcons:!0,onChange:function(n,e){R(!1),console.log("on handleSelectOption: ",n),v(n,e)},setSearch:P,scrollToOption:U,setScrollToOption:G,customPlaceHolder:I,useInnerHTML:F})]})})}))},41172:function(n,e,t){"use strict";t.d(e,{qw:function(){return w},Sv:function(){return x},vv:function(){return b}});var i=t(24537),o=t(2445),r=t(73884),a=t(66079),c=t(27317);function l(){var n=(0,i.A)(["\n position: absolute;\n z-index: 110;\n top: 100%;\n right: 0;\n left: 0;\n display: block;\n max-height: 300px;\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 & {\n .none {\n display: flex;\n min-height: 30px;\n align-items: center;\n justify-content: center;\n }\n }\n"]);return l=function(){return n},n}function s(){var n=(0,i.A)(["\n display: flex;\n padding: 12px 18px 12px 16px;\n &:hover,\n :active {\n background: ",";\n }\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n max-width: 16px;\n margin-right: 8px;\n"]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n color: ",";\n font-weight: ",";\n"]);return u=function(){return n},n}var p=c.Ay.ul.withConfig({componentId:"sc-93bfd79c-0"})(l(),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray200})),f=c.Ay.li.withConfig({componentId:"sc-93bfd79c-1"})(s(),(function(n){return n.theme.colors.gray100})),h=c.Ay.div.withConfig({componentId:"sc-93bfd79c-2"})(d());c.Ay.div.withConfig({componentId:"sc-93bfd79c-3"})(u(),(function(n){return n.theme.colors.red700}),(function(n){return n.theme.sizes.fwRegular}));function g(){var n=(0,i.A)(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"]);return g=function(){return n},n}function m(){var n=(0,i.A)(["\n animation: "," 1.2s linear infinite;\n"]);return m=function(){return n},n}var v=(0,c.i7)(g()),b=c.Ay.svg.withConfig({componentId:"sc-56a2cda-0"})(m(),v);function x(n){var e=n.className,t=n.width,i=void 0===t?"1em":t,r=n.color,a=void 0===r?"currentColor":r;return(0,o.Y)("svg",{width:i,height:i,className:e,viewBox:"0 0 24 24",children:(0,o.FD)("g",{children:[(0,o.Y)("path",{fill:a,d:"M 21.5 22 L 2.5 22 C 1.121094 22 0 20.878906 0 19.5 L 0 12.5 C 0 12.429688 0.015625 12.359375 0.0429688 12.296875 L 4.011719 3.476562 C 4.417969 2.578125 5.3125 2 6.292969 2 L 17.707031 2 C 18.6875 2 19.582031 2.578125 19.988281 3.476562 L 23.957031 12.296875 C 23.984375 12.359375 24 12.429688 24 12.5 L 24 19.5 C 24 20.878906 22.878906 22 21.5 22 Z M 1 12.605469 L 1 19.5 C 1 20.328125 1.671875 21 2.5 21 L 21.5 21 C 22.328125 21 23 20.328125 23 19.5 L 23 12.605469 L 19.074219 3.882812 C 18.832031 3.347656 18.296875 3 17.707031 3 L 6.292969 3 C 5.703125 3 5.167969 3.347656 4.925781 3.886719 Z M 1 12.605469 "}),(0,o.Y)("path",{fill:a,d:"M 16.808594 17 L 7.191406 17 C 6.570312 17 6.007812 16.609375 5.789062 16.027344 L 4.773438 13.324219 C 4.703125 13.128906 4.515625 13 4.308594 13 L 0.75 13 C 0.472656 13 0.25 12.777344 0.25 12.5 C 0.25 12.222656 0.472656 12 0.75 12 L 4.308594 12 C 4.929688 12 5.492188 12.390625 5.710938 12.972656 L 6.726562 15.675781 C 6.796875 15.871094 6.984375 16 7.191406 16 L 16.804688 16 C 17.015625 16 17.203125 15.871094 17.273438 15.675781 L 18.285156 12.972656 C 18.507812 12.390625 19.070312 12 19.691406 12 L 23.5 12 C 23.777344 12 24 12.222656 24 12.5 C 24 12.777344 23.777344 13 23.5 13 L 19.691406 13 C 19.484375 13 19.296875 13.128906 19.226562 13.324219 L 18.210938 16.027344 C 17.992188 16.609375 17.429688 17 16.808594 17 Z M 16.808594 17 "})]})})}var w=function(n){var e=n.options,t=n.isLoading,i=n.hasIcons,c=n.onChange,l=n.setSearch,s=n.scrollToOption,d=n.setScrollToOption,u=n.customPlaceHolder,g=n.useInnerHTML,m=void 0!==g&&g,v=(0,r.useRef)(null);return(0,r.useEffect)((function(){if(v.current&&s){var n,t,i=e.findIndex((function(n){return n.value===s}));if(-1!==i)v.current.scroll({top:(null===(n=v.current)||void 0===n?void 0:n.children[i].getBoundingClientRect().top)-(null===(t=v.current)||void 0===t?void 0:t.getBoundingClientRect().top)})}}),[s]),(0,o.FD)(p,{className:"dropdown-option","data-has-icons":i,ref:v,children:[t&&(0,o.Y)("div",{className:"none",children:(0,o.FD)(b,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,o.Y)("mask",{id:"a",fill:"#fff",children:(0,o.Y)("path",{d:"M12 0A12 12 0 11.19 9.88l3.9.7A8.03 8.03 0 1012 3.98V0z"})}),(0,o.Y)("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)"})]})}),!t&&0===e.length&&(0,o.Y)("div",{className:"none",children:u||(0,o.Y)(a.T,{size:"sm",children:(0,o.Y)(x,{})})}),!t&&e.length>0&&e.map((function(n,e){return(0,o.Y)(f,{onClick:function(){c(n,n.value),d(n.value),l(""),console.log("on select item: ",n)},children:m?(0,o.Y)("div",{dangerouslySetInnerHTML:{__html:n.label}}):(0,o.FD)(o.FK,{children:[n.icon&&(0,o.Y)(h,{children:n.icon}),n.label]})},"".concat(e,"-").concat(n.value))}))]})}},45105:function(n,e,t){"use strict";t.d(e,{r:function(){return w}});var i=t(53513),o=t(63538),r=t(2445),a=t(73884),c=t(32485),l=t.n(c),s=t(24537),d=t(27317);function u(){var n=(0,s.A)(["\n position: relative;\n display: flex;\n justify-content: center;\n cursor: pointer;\n &.disabled {\n cursor: not-allowed;\n opacity: 0.5;\n pointer-events: none;\n }\n"]);return u=function(){return n},n}function p(){var n=(0,s.A)(["\n display: flex;\n width: fit-content;\n justify-content: center;\n align-items: center;\n background-color: rgba(0, 0, 0, 0);\n transition: background-color 200ms;\n border-radius: 4px;\n\n &:hover {\n background-color: ",";\n }\n"]);return p=function(){return n},n}function f(){var n=(0,s.A)(["\n position: absolute;\n z-index: ",";\n top: 100%;\n right: 0;\n overflow: hidden;\n min-width: 185px;\n width: max-content;\n border: 1px solid ",";\n margin: 8px 0;\n background: white;\n border-radius: 6px;\n filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04));\n\n &[data-position='right'] {\n left: 0;\n }\n &[data-position='left'] {\n right: 0;\n }\n &[data-position='center'] {\n left: 50%;\n transform: translateX(-50%);\n }\n\n > li {\n display: flex;\n align-items: center;\n padding: 12px 18px;\n cursor: pointer;\n width: 100%;\n &.disabled {\n cursor: not-allowed;\n opacity: 0.5;\n pointer-events: none;\n }\n\n svg {\n display: inline-block;\n margin-right: 8px;\n }\n\n &:hover {\n background: #f2f2f2;\n }\n }\n"]);return f=function(){return n},n}var h,g=d.Ay.div.withConfig({componentId:"sc-56c5d382-0"})(u()),m=d.Ay.div.withConfig({componentId:"sc-56c5d382-1"})(p(),(function(n){return n.theme.colors.neutral50})),v=d.Ay.ul.withConfig({componentId:"sc-56c5d382-2"})(f(),(function(n){return n.theme.zIndexes.zIndex100}),(function(n){return n.theme.colors.neutral200}));function b(){return b=Object.assign?Object.assign.bind():function(n){for(var e=1;e 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: 16px;\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 // Prevent double borders\n & > div {\n border: none;\n }\n"]);return p=function(){return n},n}function f(){var n=(0,d.A)(["\n display: flex;\n border: 1px solid ",";\n border-radius: 6px;\n cursor: pointer;\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 input {\n padding: 4px;\n font-size: 14px;\n }\n }\n &[data-has-error='true'] {\n border-color: red;\n }\n"]);return f=function(){return n},n}function h(){var n=(0,d.A)(["\n display: flex;\n flex-wrap: wrap;\n padding: 10px;\n gap: 8px;\n margin-right: 26px;\n"]);return h=function(){return n},n}function g(){var n=(0,d.A)(["\n display: flex;\n height: 28px;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n padding: 0 8px;\n background: ",";\n border-radius: 24px;\n\n .close-icon {\n height: 18px;\n width: 16px;\n }\n"]);return g=function(){return n},n}function m(){var n=(0,d.A)(["\n width: 100%;\n height: 100%;\n flex: 1 1 0%;\n input {\n width: 100%;\n }\n"]);return m=function(){return n},n}function v(){var n=(0,d.A)(["\n position: absolute;\n z-index: 110;\n top: 100%;\n right: 0;\n left: 0;\n display: block;\n max-height: 300px;\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: scroll;\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 .none {\n display: flex;\n min-height: 30px;\n align-items: center;\n justify-content: center;\n }\n }\n\n &.dropdown-option__disabled {\n & > li {\n opacity: 0.5;\n cursor: not-allowed;\n background-color: ",";\n }\n }\n"]);return v=function(){return n},n}function b(){var n=(0,d.A)(["\n display: flex;\n padding: 12px 18px 12px 16px;\n &:hover,\n :active {\n background: ",";\n }\n"]);return b=function(){return n},n}function x(){var n=(0,d.A)(["\n height: 40px;\n cursor: pointer;\n img {\n width: 100%;\n height: 100%;\n margin-left: 8px;\n }\n"]);return x=function(){return n},n}function w(){var n=(0,d.A)(["\n color: ",";\n font-weight: ",";\n"]);return w=function(){return n},n}var y=u.Ay.div.withConfig({componentId:"sc-8d9589f1-0"})(p(),(function(n){return n.theme.colors.gray200}),(function(n){return n.theme.colors.blue200}),(function(n){return n.theme.colors.primaryBase})),A=u.Ay.div.withConfig({componentId:"sc-8d9589f1-1"})(f(),(function(n){return n.theme.colors.gray200}),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.blue200})),C=u.Ay.div.withConfig({componentId:"sc-8d9589f1-2"})(h()),M=u.Ay.div.withConfig({componentId:"sc-8d9589f1-3"})(g(),(function(n){return n.theme.colors.blue50})),_=u.Ay.div.withConfig({componentId:"sc-8d9589f1-4"})(m()),k=u.Ay.ul.withConfig({componentId:"sc-8d9589f1-5"})(v(),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray200}),(function(n){return n.theme.colors.gray200})),Y=u.Ay.li.withConfig({componentId:"sc-8d9589f1-6"})(b(),(function(n){return n.theme.colors.gray100})),D=u.Ay.div.withConfig({componentId:"sc-8d9589f1-7"})(x()),E=u.Ay.label.withConfig({componentId:"sc-8d9589f1-8"})(w(),(function(n){return n.theme.colors.red700}),(function(n){return n.theme.sizes.fwRegular})),I=t(11191),N=function(n){var e=n.className,t=n.style,a=n.id,d=n.placeholder,u=n.onChange,p=n.value,f=n.options,h=n.initialOptions,g=n.errorMessage,m=n.disabledOption,v=n.isLoading,b=n.setKeyword,x=n.isAbleToAddNew,w=void 0!==x&&x,N=n.onAddNew,F=(0,o.useState)(""),z=F[0],S=F[1],O=(0,o.useState)(!1),T=O[0],B=O[1],L=(0,o.useState)(f),P=L[0],j=L[1],H=(0,o.useState)(!1),R=H[0],V=H[1],U=function(){return V(!R)},G=(0,o.useRef)(null),W=(0,o.useState)([]),q=W[0],J=W[1];(0,o.useEffect)((function(){j(f)}),[f]),(0,o.useEffect)((function(){if(h){h&&J(h);var n=null===h||void 0===h?void 0:h.map((function(n){return String(n.value)})),e=f.filter((function(e){return!(null===n||void 0===n?void 0:n.includes(String(e.value)))}));j(e)}}),[h,f]),(0,l.j)(G,(function(){V(!1)}));var K=function(n){var e=q.filter((function(e){return e.value!==n.value}));J(e),u(e),j(P.concat(n))};return(0,o.useEffect)((function(){b(z)}),[z]),(0,i.FD)(y,{className:c()(e,{focused:T}),"data-dropdown-open":R||void 0,id:a,"data-has-icons":!0,ref:G,onBlur:function(n){return e=n,B(!1),void(e.relatedTarget&&e.relatedTarget.id===a||S(""));var e},onFocus:function(){return B(!0)},style:t,tabIndex:0,children:[(0,i.Y)(A,{onClick:U,"data-has-error":g&&g.length>0,children:(0,i.FD)(C,{children:[q.map((function(n,e){return(0,i.FD)(M,{children:[(0,i.Y)(r.T,{size:"p4",children:n.label}),(0,i.Y)("div",{className:"close-icon",onClick:function(){return K(n)},children:(0,i.Y)(I.A,{className:"no-margin"})})]},"".concat(e,"-").concat(n.value,"-tag"))})),(0,i.Y)(_,{children:(0,i.Y)("input",{type:"text",onChange:function(n){return e=n.target.value,V(!0),void S(e);var e},placeholder:d,value:p&&p.value?p.label:z,onKeyDown:function(n){if("Enter"===n.key){if(n.preventDefault(),w){var e=n.currentTarget.value;if(e){var t={value:-Date.now(),label:e};u(q.concat([t])),S(""),N&&N(t)}}}else"Backspace"===n.key&&""===n.currentTarget.value&&(n.preventDefault(),K(q[q.length-1]))},style:{width:q.length?void 0:250}})})]})}),g&&g.length>0&&(0,i.Y)(E,{className:"errorLabel",children:g}),R&&(0,i.FD)(k,{onClick:U,className:c()("dropdown-option",{"dropdown-option__disabled":m}),children:[v&&(0,i.Y)("div",{className:"none",children:(0,i.FD)(s.vv,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,i.Y)("mask",{id:"a",fill:"#fff",children:(0,i.Y)("path",{d:"M12 0A12 12 0 11.19 9.88l3.9.7A8.03 8.03 0 1012 3.98V0z"})}),(0,i.Y)("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)"})]})}),!v&&0===P.length&&(0,i.Y)("div",{className:"none",children:(0,i.Y)(r.T,{size:"sm",children:(0,i.Y)(s.Sv,{})})}),!v&&P.length>0&&P.map((function(n){return(0,i.FD)(Y,{"data-selected":p&&p.value===n.value||void 0,onClick:function(){m||(S(""),function(n){var e=P.filter((function(e){return e.value!==n.value})),t=q.concat(n);J(t),u(t),j(e)}(n))},children:[n.icon&&(0,i.Y)(D,{children:n.icon}),n.label]},"".concat(a,"-").concat(n.label))}))]})]})}},20105:function(n,e,t){"use strict";t.d(e,{l:function(){return d}});var i=t(53513),o=t(63538),r=t(24537),a=t(2445),c=t(49785);function l(){var n=(0,r.A)(["\n [data-color='ghost']:disabled {\n background-color: transparent;\n p {\n color: ",";\n }\n svg path {\n stroke: ",";\n }\n }\n"]);return l=function(){return n},n}var s=t(27317).Ay.form.withConfig({componentId:"sc-aaeb766f-0"})(l(),(function(n){return n.theme.colors.gray400}),(function(n){return n.theme.colors.gray400}));function d(n){var e=n.name,t=n.children,r=n.defaultValues,l=n.mode,d=void 0===l?"onSubmit":l,u=n.onSubmit,p=n.beforeSubmitValidation,f=n.style,h=(0,c.mN)({defaultValues:r,mode:d});return(0,a.Y)(c.Op,(0,o.A)((0,i.A)({},h),{children:(0,a.Y)(s,{name:e,onSubmit:h.handleSubmit((function(n){if(p&&!p(n,h.setError))return!1;u(n)})),style:f,children:t})}))}},16282:function(n,e,t){"use strict";t.d(e,{y:function(){return a}});var i=t(73884),o=t(10297),r=t(6442);function a(){var n=(0,r.A)().formatMessage,e=(0,o.useRouter)().locale;return(0,i.useMemo)((function(){return{titles:{faq:n({id:"footer.faqs",defaultMessage:"FAQ"})},labels:{from:n({id:"form.label.from",defaultMessage:"From"}),to:n({id:"form.label.to",defaultMessage:"To"}),present:n({id:"common.date.present",defaultMessage:"Present"}),URL:n({id:"admin.form.url",defaultMessage:"URL"}),enterURL:n({id:"admin.form.enterUrl",defaultMessage:"Enter URL"}),insert:n({id:"common.insert",defaultMessage:"Insert"}),addQuestion:n({id:"form.faq.addQuestion",defaultMessage:"Add Question"}),editQuestion:n({id:"form.faq.editQuestion",defaultMessage:"Edit Question"}),question:n({id:"common.question",defaultMessage:"Question"}),answer:n({id:"common.answer",defaultMessage:"Answer"})},buttons:{save:n({id:"form.button.save",defaultMessage:"Save"}),cancel:n({id:"form.button.cancel",defaultMessage:"Cancel"}),remove:n({id:"form.button.remove",defaultMessage:"Remove"}),askQuestion:n({id:"hospital.branch.askQuestion",defaultMessage:"Ask Question"}),preview:n({id:"form.button.preview",defaultMessage:"Preview"}),edit:n({id:"form.button.edit",defaultMessage:"Edit"})},errorMessages:{invalidFormat:n({id:"form.error.format",defaultMessage:"Invalid format"}),requiredField:n({id:"common.error.requiredField",defaultMessage:"This field is required"}),minItems:function(e){return n({id:"common.error.minItems",defaultMessage:"Please select a minimum of {number} items"},{number:e})},maxItems:function(e){return n({id:"common.error.maxItems",defaultMessage:"Please select a maximum of {number} items"},{number:e})}}}}),[e])}},48403:function(n,e,t){"use strict";t.d(e,{nD:function(){return mo.n},Fg:function(){return di},Cv:function(){return oo},cW:function(){return we.AdminNavigation},oR:function(){return Lt},K3:function(){return go},rk:function(){return Di},By:function(){return pe},Il:function(){return xe},vB:function(){return rn.v},h7:function(){return gn},V4:function(){return U},wu:function(){return tn.w},rI:function(){return jt.r},pd:function(){return s},eX:function(){return Ji},jD:function(){return _i},KL:function(){return No},dK:function(){return g},LR:function(){return M.L},Al:function(){return Cn},Vw:function(){return Go},al:function(){return on.a},Vs:function(){return en}});var i=t(2445),o=t(73884),r=t(32485),a=t.n(r),c=t(13169),l=t.n(c),s=function(n){var e=n.name,t=n.value,r=n.errorMessage,c=n.actionIcon,s=n.displayIcon,d=n.onActionClick,u=n.label,p=n.placeholder,f=n.className,h=n.onChange,g=n.onKeyPress,m=n.isDisabled,v=n.onFocus,b=n.onBlur,x=n.shouldInputFocus,w=n.type,y=n.children,A=n.isAutoComplete,C=n.isReadOnly,M=n.isLabelActivateInput,_=n.dataEventCategory,k=n.dataEventAction,Y=n.dataEventLabel,D=(0,o.useRef)(null);return(0,o.useEffect)((function(){x?(D.current&&D.current.focus(),v&&v()):D.current&&D.current.blur()}),[x]),(0,i.FD)("div",{className:a()(l().mInput,f),"data-has-action-icon":!!c||void 0,"data-has-display-icon":!!s||void 0,"data-has-error":r&&r.length>0||void 0,onBlur:b,children:[u&&(0,i.Y)("label",{htmlFor:M?e:void 0,className:l().inputLabel,children:u}),(0,i.Y)("input",{id:e,readOnly:C||!1,autoComplete:A||"off",placeholder:p,onChange:h,onKeyPress:function(n){return g&&g(n)},type:w||"text",value:t,disabled:m,onFocus:v,autoFocus:x||void 0,ref:D,"data-event-category":_,"data-event-action":k,"data-event-label":Y}),s&&(0,i.Y)(s,{className:l().displayIcon,onClick:d}),c&&(0,i.Y)("div",{onMouseDown:function(n){n.preventDefault(),null===d||void 0===d||d()},tabIndex:0,children:(0,i.Y)(c,{className:l().actionIcon})}),r&&r.length>0&&(0,i.Y)("label",{className:l().errorLabel,children:r}),y]})},d=t(81539),u=t(38629),p=t(69576),f=t(26869),h=t.n(f),g=function(n){var e=n.className,t=n.pagesAmount,r=n.currentPage,c=n.onChange,l=(0,d.A)(Array(t)).map((function(n,e){return e+1})),s=(0,o.useState)(r),f=s[0],g=s[1],m=t-1,v=function(n){n<=t&&n>0&&(g(n),c(n))};return(0,o.useEffect)((function(){g(r)}),[r]),(0,i.FD)("div",{className:a()(h().pagination,e),children:[(0,i.Y)("div",{className:a()(h().arrow,h().paginationBlock),onClick:function(){return v(f-1)},"data-last-page":1===f||void 0,children:(0,i.Y)(u.A,{})}),l.slice(f<=3?0:f-3,f<=3?5:f+2).map((function(n){return(0,i.Y)("li",{className:a()(h().paginationBlock),"data-page-active":n===f||void 0,onClick:function(){return v(n)},children:n},"pagination+".concat(n))})),(0,i.Y)("div",{className:a()(h().arrow,h().paginationBlock),onClick:function(){return v(f+1)},"data-last-page":f===m+1||void 0,children:(0,i.Y)(p.A,{})})]})},m=t(24537),v=t(27317);function b(){var n=(0,m.A)(["\n --dropdown-padding-top: 12px;\n --dropdown-padding-right: 44px;\n --dropdown-padding-bottom: 12px;\n --dropdown-padding-left: 18px;\n --dropdown-padding: var(--dropdown-padding-top) var(--dropdown-padding-right)\n var(--dropdown-padding-bottom) var(--dropdown-padding-left);\n\n position: relative;\n box-sizing: border-box;\n border: 1px solid ",";\n background: $white url('../../../public/bgSvg/arrow-down.svg') no-repeat;\n background-position: right 16px center;\n border-radius: 6px;\n\n &[data-dropdown-open] .dropdownName {\n padding: var(--dropdown-padding);\n // border: 1px solid $primary-base;\n border-radius: 6px;\n box-shadow: 0 0 2px 2px ",";\n }\n\n &[data-dropdown-open] {\n z-index: $zIndex-overlay;\n }\n\n &:hover {\n box-shadow: 0 0 2px 2px ",";\n }\n"]);return b=function(){return n},n}function x(){var n=(0,m.A)(["\n padding: var(--dropdown-padding);\n cursor: pointer;\n"]);return x=function(){return n},n}function w(){var n=(0,m.A)(["\n position: absolute;\n top: 100%;\n right: 0;\n left: 0;\n display: block;\n margin-top: 4px;\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 cursor: pointer;\n"]);return w=function(){return n},n}function y(){var n=(0,m.A)(["\n padding: var(--dropdown-padding-top) var(--dropdown-padding-right)\n var(--dropdown-padding-bottom) var(--dropdown-padding-left);\n\n &:hover,\n :active {\n background: ",";\n }\n"]);return y=function(){return n},n}function A(){var n=(0,m.A)(["\n display: flex;\n justify-content: center;\n align-items: center;\n"]);return A=function(){return n},n}v.Ay.div.withConfig({componentId:"sc-b466dd23-0"})(b(),(function(n){return n.theme.colors.gray200}),(function(n){return n.theme.colors.blue200}),(function(n){return n.theme.colors.blue200})),v.Ay.div.withConfig({componentId:"sc-b466dd23-1"})(x()),v.Ay.ul.withConfig({componentId:"sc-b466dd23-2"})(w()),v.Ay.li.withConfig({componentId:"sc-b466dd23-3"})(y(),(function(n){return n.theme.colors.gray100})),v.Ay.div.withConfig({componentId:"sc-b466dd23-4"})(A());var C,M=t(78754),_=t(95456);function k(){return k=Object.assign?Object.assign.bind():function(n){for(var e=1;e input[type='radio'] {\n margin: 0;\n }\n }\n"]);return Tn=function(){return n},n}function Bn(){var n=(0,m.A)(["\n object-fit: cover;\n width: 48px;\n height: 48px;\n border-radius: 50%;\n cursor: pointer;\n"]);return Bn=function(){return n},n}function Ln(){var n=(0,m.A)(["\n display: flex;\n flex-direction: column;\n gap: 2px;\n cursor: pointer;\n\n .row-info {\n display: flex;\n gap: 8px;\n & > * {\n &:not(:first-child) {\n display: flex;\n gap: 8px;\n align-items: center;\n ::before {\n content: '';\n display: flex;\n width: 4px;\n height: 4px;\n border-radius: 50%;\n background-color: ",";\n margin: 0 2px;\n }\n }\n }\n }\n"]);return Ln=function(){return n},n}function Pn(){var n=(0,m.A)(["\n margin-left: auto;\n display: flex;\n gap: 4px;\n\n "," {\n position: absolute;\n top: 0;\n right: 0;\n }\n\n .button {\n padding: 4px;\n border-radius: 2px;\n height: 28px;\n cursor: pointer;\n width: fit-content;\n &:hover {\n background: ","70;\n }\n }\n"]);return Pn=function(){return n},n}function jn(){var n=(0,m.A)(["\n text-align: center;\n\n .group-btn {\n display: flex;\n gap: 12px;\n\n .btn {\n flex: 1;\n }\n }\n"]);return jn=function(){return n},n}function Hn(){var n=(0,m.A)(["\n display: flex;\n gap: 8px;\n align-items: center;\n flex: 1;\n\n "," {\n display: block;\n position: relative;\n }\n"]);return Hn=function(){return n},n}v.Ay.div.withConfig({componentId:"sc-33ec5b80-0"})(On(),(function(n){return n.theme.colors.neutral50}),(function(n){return n.theme.colors.primaryBase})),v.Ay.div.withConfig({componentId:"sc-33ec5b80-1"})(Tn(),j.M.tdUp),v.Ay.img.withConfig({componentId:"sc-33ec5b80-2"})(Bn()),v.Ay.div.withConfig({componentId:"sc-33ec5b80-3"})(Ln(),(function(n){return n.theme.colors.gray400})),v.Ay.div.withConfig({componentId:"sc-33ec5b80-4"})(Pn(),j.M.mbDown,(function(n){return n.theme.colors.blue50})),v.Ay.div.withConfig({componentId:"sc-33ec5b80-5"})(jn()),v.Ay.div.withConfig({componentId:"sc-33ec5b80-6"})(Hn(),j.M.mbDown),t(41450),t(21336),t(68289),t(1135),t(86204),t(1032),t(39372),t(89902),t(58665),t(90206);function Rn(){var n=(0,m.A)(["\n display: flex;\n justify-content: center;\n\n "," {\n justify-content: flex-start;\n }\n\n & > button {\n width: 100%;\n text-align: center;\n text-transform: uppercase;\n\n "," {\n width: auto;\n }\n }\n"]);return Rn=function(){return n},n}var Vn,Un,Gn,Wn,qn,Jn,Kn,Zn,$n,Qn,Xn,ne,ee,te,ie,oe,re,ae,ce,le,se,de,ue=v.Ay.div.withConfig({componentId:"sc-9afb6850-0"})(Rn(),j.M.tdUp,j.M.tdUp),pe=function(n){var e,t=n.className,o=n.onClick,r=n.title,a=n.isLoading,c=n.isDisabled,l=void 0!==c&&c,s=n.isTelemedicine,d=n.isStickyBtn,u=void 0!==d&&d,p=n.isBlock,f=void 0!==p&&p,h=(0,N.$)(),g=h.locale,m=h.asPath;return e=void 0!==s?s?"Telemedicine - Booking Confirm Click":"Outpatient - Booking Confirm Click":"Booking Confirm Click",(0,i.Y)(ue,{className:t,"data-is-sticky":u,children:(0,i.Y)(W.B,{isLoading:a,color:"primary",size:"md",onClick:o,dataEventCategory:"Care",dataEventAction:e,dataEventLabel:"https://".concat(I.y[g]).concat(V.JpE).concat(m),isDisabled:l,isBlock:f,children:r})})},fe=t(858),he=t(83776),ge=t(72936),me=t.n(ge);function ve(){return ve=Object.assign?Object.assign.bind():function(n){for(var e=1;e div,\n & > a > div {\n margin-bottom: 0;\n position: relative;\n & > p[data-size='xs'] {\n color: ",";\n font-weight: 400;\n margin-left: 24px;\n flex: 1;\n justify-content: space-between;\n display: flex;\n align-items: center;\n }\n }\n & > div[data-is-link-collapsed],\n & > a > div[data-is-link-collapsed] {\n width: 40px;\n justify-content: center;\n padding: 8px;\n margin: 4px auto;\n }\n & > div[data-is-link-active='true'],\n & > a > div[data-is-link-active='true'],\n &:hover > div,\n &:hover > a > div {\n background-color: transparent;\n svg path {\n fill: ",";\n }\n p {\n color: ",";\n }\n }\n & > a {\n text-decoration: none;\n }\n\n .arrow {\n position: absolute;\n right: 10px;\n top: 11px;\n path {\n fill: none !important;\n }\n }\n\n .menu-children {\n border-radius: 8px;\n .menu-item {\n width: 100%;\n transition: 0.25s linear all;\n &.active,\n &.active:hover {\n background-color: ",";\n border-radius: 6px;\n }\n\n &:hover {\n // background-color: ",";\n background-color: transparent;\n border-radius: 6px;\n a {\n color: ",";\n }\n }\n }\n a {\n padding: 8px;\n display: flex;\n width: 100%;\n color: ",";\n font-weight: 400;\n font-size: 13px;\n line-height: 20px;\n letter-spacing: -0.3px;\n text-decoration: none;\n padding-left: 54px;\n }\n }\n > a {\n > div {\n padding: 8px !important;\n p {\n font-size: 15px;\n line-height: 24px;\n letter-spacing: -0.3px;\n }\n }\n }\n > div {\n &:has(:not(.menu-children)) {\n padding: 8px !important;\n font-size: 15px;\n p {\n font-size: 15px;\n line-height: 24px;\n letter-spacing: -0.3px;\n }\n }\n &.menu-children {\n padding: 0 !important;\n }\n }\n\n > div > svg,\n > a > div > svg {\n width: 24px;\n height: 24px;\n color: ",";\n }\n\n > div:has(.menu_item--new_tag) > p,\n > a:has(.menu_item--new_tag) > div > p {\n display: flex;\n gap: 8px;\n align-items: center;\n justify-content: flex-start;\n }\n"]);return Fe=function(){return n},n}function ze(){var n=(0,m.A)(["\n padding: 12px 16px;\n margin: 0;\n > div {\n margin: 0;\n }\n & {\n p:first-child {\n color: ",";\n font-weight: 600;\n }\n p:not(:first-child) {\n color: ",";\n font-size: 12px;\n }\n }\n figcaption {\n white-space: unset;\n }\n"]);return ze=function(){return n},n}function Se(){var n=(0,m.A)(["\n padding: 20px 16px;\n border-bottom: 1px solid #f1f2f4;\n height: 64px;\n display: flex;\n align-items: center;\n .hamburgerMenu {\n cursor: pointer;\n margin-right: 24px;\n }\n &[data-is-collapsed='true'] {\n padding: 20px 12px;\n display: flex;\n justify-content: center;\n .hamburgerMenu {\n margin-right: 0;\n }\n }\n"]);return Se=function(){return n},n}function Oe(){var n=(0,m.A)(["\n position: absolute;\n left: -16px;\n height: 8px;\n border-bottom: 1px solid #f1f2f4;\n //width: 260px;\n"]);return Oe=function(){return n},n}function Te(){var n=(0,m.A)(["\n margin-top: 18px;\n margin-bottom: 12px;\n"]);return Te=function(){return n},n}function Be(){var n=(0,m.A)(["\n margin-top: 12px;\n &[data-is-collapsed='true'] {\n div {\n padding: 8px;\n background-color: white;\n justify-content: center;\n flex-direction: column;\n &::after {\n background-image: none;\n right: -4px !important;\n }\n div {\n padding: 0;\n display: flex;\n justify-content: center;\n }\n }\n svg {\n margin: 0;\n }\n }\n div {\n background-color: white;\n border-radius: 6px;\n }\n span {\n margin-left: 4px;\n }\n"]);return Be=function(){return n},n}function Le(){var n=(0,m.A)(["\n padding: 13px 16px 24px;\n flex: 1;\n overflow-y: auto;\n\n &[data-is-collapsed='true'] {\n padding: 13px 12px 24px;\n div:has(.menu-children) {\n .menu-children {\n display: none;\n }\n }\n }\n"]);return Le=function(){return n},n}var Pe,je=v.Ay.div.withConfig({componentId:"sc-46e68f6c-0"})(Fe(),(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.blue50}),(function(n){return n.theme.colors.blue50}),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.secondaryDark}),(function(n){return n.theme.colors.neutral800})),He=v.Ay.div.withConfig({componentId:"sc-46e68f6c-1"})(ze(),(function(n){return n.theme.colors.secondaryDark}),(function(n){return n.theme.colors.gray500})),Re=v.Ay.div.withConfig({componentId:"sc-46e68f6c-2"})(Se()),Ve=(v.Ay.div.withConfig({componentId:"sc-46e68f6c-3"})(Oe()),v.Ay.div.withConfig({componentId:"sc-46e68f6c-4"})(Te())),Ue=v.Ay.div.withConfig({componentId:"sc-46e68f6c-5"})(Be()),Ge=v.Ay.div.withConfig({componentId:"sc-46e68f6c-6"})(Le()),We=t(44523),qe=t(56791);function Je(){return Je=Object.assign?Object.assign.bind():function(n){for(var e=1;e :after {\n width: 2px;\n height: 12px;\n background-color: ",";\n }\n"]);return Rt=function(){return n},n}function Vt(){var n=(0,m.A)(["\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: space-between;\n"]);return Vt=function(){return n},n}function Ut(){var n=(0,m.A)(["\n margin-top: 12px;\n"]);return Ut=function(){return n},n}function Gt(){var n=(0,m.A)(["\n margin: 4px 0px;\n color: ",";\n font-size: 14px;\n font-weight: 700;\n line-height: 22px;\n"]);return Gt=function(){return n},n}function Wt(){var n=(0,m.A)(["\n margin: 4px 0px;\n color: ",";\n font-size: 14px;\n font-weight: 60px;\n line-height: 22px;\n"]);return Wt=function(){return n},n}function qt(){var n=(0,m.A)(["\n position: absolute;\n top: 92px;\n right: 0;\n width: 82px;\n height: 164px;\n padding-left: 10px;\n"]);return qt=function(){return n},n}function Jt(){var n=(0,m.A)(["\n display: flex;\n align-items: center;\n margin-top: 13px;\n img {\n margin-right: 16px;\n }\n"]);return Jt=function(){return n},n}function Kt(){var n=(0,m.A)(["\n & {\n .heading {\n font-size: 14px;\n font-weight: 600;\n line-height: 22px;\n }\n .specialty {\n font-size: 12px;\n line-height: 18px;\n }\n }\n"]);return Kt=function(){return n},n}v.Ay.div.withConfig({componentId:"sc-73b76268-0"})(Ht(),(function(n){return n.theme.colors.blue50})),v.Ay.div.withConfig({componentId:"sc-73b76268-1"})(Rt(),(function(n){return n.theme.colors.gray800})),v.Ay.div.withConfig({componentId:"sc-73b76268-2"})(Vt()),v.Ay.div.withConfig({componentId:"sc-73b76268-3"})(Ut()),v.Ay.div.withConfig({componentId:"sc-73b76268-4"})(Gt(),(function(n){return n.theme.colors.gray800})),v.Ay.div.withConfig({componentId:"sc-73b76268-5"})(Wt(),(function(n){return n.theme.colors.gray500})),v.Ay.div.withConfig({componentId:"sc-73b76268-6"})(qt()),v.Ay.div.withConfig({componentId:"sc-73b76268-7"})(Jt()),v.Ay.div.withConfig({componentId:"sc-73b76268-8"})(Kt());function Zt(){var n=(0,m.A)(["\n position: relative;\n display: flex;\n width: 100%;\n align-items: center;\n margin-bottom: 24px;\n img {\n margin-right: 16px;\n }\n"]);return Zt=function(){return n},n}function $t(){var n=(0,m.A)(["\n //padding-left: 14px;\n"]);return $t=function(){return n},n}function Qt(){var n=(0,m.A)(["\n margin-top: 25px;\n .string {\n margin-top: 8px;\n }\n"]);return Qt=function(){return n},n}function Xt(){var n=(0,m.A)(["\n display: flex;\n width: 100%;\n"]);return Xt=function(){return n},n}function ni(){var n=(0,m.A)(["\n position: absolute;\n right: 0;\n display: flex;\n align-items: center;\n cursor: pointer;\n"]);return ni=function(){return n},n}v.Ay.div.withConfig({componentId:"sc-b35b16ee-0"})(Zt()),v.Ay.div.withConfig({componentId:"sc-b35b16ee-1"})($t()),v.Ay.div.withConfig({componentId:"sc-b35b16ee-2"})(Qt()),v.Ay.div.withConfig({componentId:"sc-b35b16ee-3"})(Xt()),v.Ay.div.withConfig({componentId:"sc-b35b16ee-4"})(ni()),t(58462);var ei,ti=t(62532),ii=t(98480),oi=t(54093),ri=t(96161),ai=t(16351);function ci(){return ci=Object.assign?Object.assign.bind():function(n){for(var e=1;e p {\n width: 10%;\n text-align: center;\n }\n\n > div {\n width: 45%;\n }\n }\n"]);return fi=function(){return n},n}function hi(){var n=(0,m.A)(["\n display: flex;\n align-items: center;\n justify-content: space-evenly;\n\n svg {\n cursor: pointer;\n }\n"]);return hi=function(){return n},n}v.Ay.div.withConfig({componentId:"sc-922a83bd-0"})(pi()),v.Ay.div.withConfig({componentId:"sc-922a83bd-1"})(fi()),v.Ay.div.withConfig({componentId:"sc-922a83bd-2"})(hi()),t(84461);function gi(){var n=(0,m.A)(["\n position: relative;\n"]);return gi=function(){return n},n}function mi(){var n=(0,m.A)(["\n display: flex;\n width: 100%;\n height: 100px;\n margin-top: 16px;\n\n "," {\n height: auto;\n flex-wrap: wrap;\n }\n\n .image-wrapper[data-is-error] {\n border: 1px dashed red;\n }\n .image-wrapper {\n position: relative;\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n justify-content: center;\n border: 1px dashed ",";\n border-radius: 4px;\n margin-right: 16px;\n margin-bottom: 16px;\n\n &:last-child {\n margin-right: 0;\n }\n\n .full {\n width: 100%;\n height: 100%;\n border-radius: 4px;\n object-fit: cover;\n object-position: 100% 0;\n }\n .icon {\n position: absolute;\n top: -10px;\n right: -8px;\n width: 20px;\n height: 20px;\n background-color: white;\n border-radius: 50%;\n cursor: pointer;\n text-align: center;\n & svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n .image-uploader {\n width: 100%;\n height: 100%;\n position: relative;\n }\n .image-uploader > input {\n display: none;\n }\n .label {\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n position: absolute;\n cursor: pointer;\n }\n .small {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 30px;\n border-radius: 4px;\n transform: translate(-50%, -50%);\n }\n\n "," {\n width: calc(33.33% - 16px);\n position: relative;\n\n .full,\n .image-uploader {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n .icon {\n z-index: 1;\n }\n &:before {\n content: '';\n display: block;\n padding-top: 100%;\n }\n }\n }\n"]);return mi=function(){return n},n}function vi(){var n=(0,m.A)(["\n display: flex;\n justify-content: flex-end;\n flex-wrap: wrap;\n align-items: center;\n gap: 15px;\n\n label {\n align-self: flex-end;\n margin-bottom: 3px;\n margin-left: 5px;\n color: ",";\n cursor: pointer;\n font-size: 13px;\n text-decoration: underline;\n\n "," {\n align-self: auto;\n white-space: nowrap;\n }\n }\n\n #file_input_id {\n display: none;\n }\n\n .choose-file {\n display: inline-flex;\n\n "," {\n width: 100%;\n justify-content: space-between;\n\n .label-form {\n margin-top: 0;\n }\n }\n }\n .clear-all {\n display: flex;\n align-items: center;\n cursor: pointer;\n svg {\n width: 1.2em;\n align-self: flex-end;\n }\n\n "," {\n right: 0;\n top: -35px;\n position: absolute;\n\n .label-form {\n margin-top: 0;\n }\n }\n }\n"]);return vi=function(){return n},n}function bi(){var n=(0,m.A)(["\n display: flex;\n & {\n .error {\n margin-top: 4px;\n margin-left: 8px;\n color: ",";\n font-size: 12px;\n }\n }\n"]);return bi=function(){return n},n}var xi=v.Ay.div.withConfig({componentId:"sc-42d688a9-0"})(gi()),wi=v.Ay.div.withConfig({componentId:"sc-42d688a9-1"})(mi(),j.M.mbDown,(function(n){return n.theme.colors.gray200}),j.M.mbDown),yi=v.Ay.div.withConfig({componentId:"sc-42d688a9-2"})(vi(),(function(n){return n.theme.colors.primaryBase}),j.M.mbDown,j.M.mbDown,j.M.mbDown),Ai=v.Ay.div.withConfig({componentId:"sc-42d688a9-3"})(bi(),(function(n){return n.theme.colors.red700})),Ci=t(8758),Mi=t(11191),_i=function(n){var e=n.style,t=n.className,r=n.handleChange,a=n.options,c=n.errorValidate,l=(0,vn.A)().formatMessage,s=(0,o.useState)(["","","","",""]),u=s[0],p=s[1],f=(0,o.useState)(["","","","",""]),h=f[0],g=f[1];(0,o.useEffect)((function(){if(null===a||void 0===a?void 0:a.length){var n=(0,d.A)(u);a.forEach((function(e,t){return n[t]=e})),p(n)}}),[a]);var m=function(){var n=(0,fe.A)((function(n){var e,t,i,o,a,c;return(0,he.__generator)(this,(function(l){switch(l.label){case 0:if(t=n.target,!(null===(e=t.files)||void 0===e?void 0:e.length))return[2];i=(0,d.A)(u),o=0,l.label=1;case 1:return oV.qdA?[3,3]:[4,v(t.files[o])]:[3,4];case 2:if(a=l.sent(),-1===(c=i.findIndex((function(n){return""===n}))))return[2];i[c]=a,l.label=3;case 3:return o++,[3,1];case 4:return p(i),r&&r(i),n.target.value="",[2]}}))}));return function(e){return n.apply(this,arguments)}}(),v=function(n){return new Promise((function(e){var t,i=new FileReader;i.readAsDataURL(n),i.onload=function(){t=i.result,e(t)}}))},b=function(){var n=(0,fe.A)((function(n,e){var t,i,o,a,c,l;return(0,he.__generator)(this,(function(s){switch(s.label){case 0:return i=n.target,(null===(t=i.files)||void 0===t?void 0:t.length)?i.files[0].size>V.qdA?((o=(0,d.A)(h))[e]="File size too large",g(o),[2]):((a=(0,d.A)(h))[e]="",g(a),c=(0,d.A)(u),[4,v(i.files[0])]):[2];case 1:return l=s.sent(),c[e]=l,p(c),r&&r(c),n.target.value="",[2]}}))}));return function(e,t){return n.apply(this,arguments)}}();return(0,i.FD)(xi,{children:[(0,i.Y)(wi,{style:e,className:t,children:u.map((function(n,e){return(0,i.Y)("div",{className:"image-wrapper","data-is-error":c,children:n?(0,i.FD)(i.FK,{children:[(0,i.Y)("div",{onClick:function(){return function(n){var e=(0,d.A)(u);e[n]="",p(e),r&&r(e)}(e)},className:"icon",children:(0,i.Y)(Mi.A,{})}),(0,i.Y)("img",{src:n,className:"full"})]}):(0,i.Y)(i.FK,{children:(0,i.FD)("div",{className:"image-uploader",children:[(0,i.Y)("input",{id:"file-input-".concat(e),type:"file",onChange:function(n){b(n,e)}}),(0,i.Y)("label",{htmlFor:"file-input-".concat(e),className:"label",children:(0,i.Y)("img",{src:"".concat(V.JpE,"/svg/imageholder.svg"),className:"small"})})]})})},"img-".concat(e))}))}),(0,i.Y)(Ai,{children:h.map((function(n,e){return(0,i.Y)("div",{className:"error",style:{width:"100%"},children:n?(0,i.Y)(i.FK,{children:(0,i.Y)("div",{children:n})}):(0,i.Y)(i.FK,{children:(0,i.Y)("div",{children:""})})},"error-".concat(e))}))}),(0,i.FD)(yi,{children:[(0,i.FD)("div",{className:"choose-file",children:[(0,i.Y)("label",{htmlFor:"file_input_id",children:l({id:"newBranch.chooseFiles",defaultMessage:"Choose files"})}),(0,i.Y)("input",{type:"file",multiple:!0,id:"file_input_id",onChange:function(n){m(n)}})]}),(0,i.FD)("div",{className:"clear-all",onClick:function(){p(["","","","",""]),g(["","","","",""]),r&&r(["","","","",""])},children:[(0,i.Y)(Ci.A,{}),(0,i.Y)(E.T,{size:"p4",color:G.w.colors.gray800,children:l({id:"newBranch.clearAll",defaultMessage:"Clear all"})})]})]}),(0,i.Y)(E.T,{size:"p4",color:G.w.colors.gray500,children:l({id:"newBranch.uploadBanner.guide",defaultMessage:"Desktop size 1200x380px, mobile size 633x380px (Size could be bigger but need to ensure the ratio). Image size < 200Kb.The image should not contain the branch\u2019s phone#, email, website. The image need to have the logo of Hellobacsi & the partner."})})]})};function ki(){var n=(0,m.A)(["\n position: relative;\n\n > div {\n position: relative;\n }\n span {\n left: 70%;\n display: flex;\n width: 36px;\n align-items: center;\n justify-content: center;\n background: ",";\n border-radius: 32px;\n color: ",";\n font-weight: ",";\n }\n"]);return ki=function(){return n},n}var Yi=v.Ay.div.withConfig({componentId:"sc-f178071e-0"})(ki(),(function(n){return n.theme.colors.blue50}),(function(n){return n.theme.colors.blue600}),(function(n){return n.theme.sizes.fwBold})),Di=function(n){var e=n.amount;return(0,i.Y)(Yi,{children:(0,i.Y)("div",{children:e&&(0,i.Y)("span",{children:e})})})};function Ei(){var n=(0,m.A)(["\n display: flex;\n flex-direction: column;\n padding: 1rem;\n border: 1px solid ",";\n border-radius: 6px;\n box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 2px rgba(0, 0, 0, 0.06),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n\n > hr:first-child {\n margin-top: 1rem;\n margin-bottom: 0.5rem;\n }\n\n > hr:last-child {\n margin-top: 0.5rem;\n margin-bottom: 1rem;\n }\n\n button {\n margin-top: 1rem;\n }\n\n "," {\n margin: 16px 0;\n }\n"]);return Ei=function(){return n},n}function Ii(){var n=(0,m.A)(["\n cursor: pointer;\n .price {\n "," {\n width: 100%;\n }\n }\n"]);return Ii=function(){return n},n}function Ni(){var n=(0,m.A)(["\n display: flex;\n align-items: center;\n\n > :is(img, svg, picture, figure) {\n max-width: 2.5rem;\n aspect-ratio: 1/1;\n border-radius: 6px;\n object-fit: contain;\n }\n\n gap: 4px;\n"]);return Ni=function(){return n},n}function Fi(){var n=(0,m.A)(["\n display: -webkit-box;\n overflow: hidden;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;\n"]);return Fi=function(){return n},n}var zi,Si,Oi,Ti,Bi;v.Ay.article.withConfig({componentId:"sc-cfeed39b-0"})(Ei(),(function(n){return n.theme.colors.neutral200}),j.M.mbDown),v.Ay.div.withConfig({componentId:"sc-cfeed39b-1"})(Ii(),j.M.tdUp),v.Ay.header.withConfig({componentId:"sc-cfeed39b-2"})(Ni()),v.Ay.span.withConfig({componentId:"sc-cfeed39b-3"})(Fi());function Li(){return Li=Object.assign?Object.assign.bind():function(n){for(var e=1;e0&&(0,a.Y)("div",{className:"errorLabel",children:(0,a.Y)("p",{className:"errorMessage",children:h})})]})}},82118:function(n,e,t){"use strict";t.d(e,{A:function(){return En}});var i=t(858),o=t(81539),r=t(83776),a=t(2445),c=t(73884),l=t(66079),s=t(85340),d=t(62532),u=t(50126),p=t(59850),f=t(84091),h=t(10297),g=t(6442),m=t(36259),v=t(21571),b=t(24537),x=t(27317);function w(){var n=(0,b.A)(["\n display: flex;\n gap: 10px;\n width: 100%;\n .wrapper-icon {\n width: 24px;\n height: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n background-color: ",";\n\n &.danger {\n background-color: ",";\n }\n\n &.success,\n &.warning,\n &.processing {\n background-color: ",";\n }\n }\n\n .wrapper-progress {\n flex: 1;\n }\n"]);return w=function(){return n},n}function y(){var n=(0,b.A)(["\n display: flex;\n gap: 10px;\n\n &.align-center {\n align-items: center;\n }\n\n .right-zone {\n flex: 0 0 30px;\n text-align: right;\n\n &.processing {\n svg {\n pointer-events: none;\n }\n }\n\n svg {\n cursor: pointer;\n }\n }\n\n .left-zone {\n flex: 1;\n }\n"]);return y=function(){return n},n}function A(){var n=(0,b.A)(["\n font-weight: 400;\n font-size: 14px;\n line-height: 22px;\n letter-spacing: -0.2px;\n color: ",";\n\n &.danger {\n color: ",";\n }\n\n &.success,\n &.warning {\n color: ",";\n }\n"]);return A=function(){return n},n}function C(){var n=(0,b.A)(["\n font-size: 12px;\n line-height: 18px;\n color: ",";\n"]);return C=function(){return n},n}var M,_,k=x.Ay.div.withConfig({componentId:"sc-843e4d83-0"})(w(),(function(n){return n.theme.colors.blue50}),(function(n){return n.theme.colors.red50}),(function(n){return n.theme.colors.blue50})),Y=x.Ay.div.withConfig({componentId:"sc-843e4d83-1"})(y()),D=x.Ay.div.withConfig({componentId:"sc-843e4d83-2"})(A(),(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.colors.red800}),(function(n){return n.theme.colors.gray800})),E=x.Ay.div.withConfig({componentId:"sc-843e4d83-3"})(C(),(function(n){return n.theme.colors.gray600})),I=t(51743),N=t(11191);function F(){return F=Object.assign?Object.assign.bind():function(n){for(var e=1;e svg {\n flex: 0 0 20px;\n }\n }\n }\n"]);return R=function(){return n},n}function V(){var n=(0,b.A)(["\n font-size: 14px;\n line-height: 22px;\n letter-spacing: -0.2px;\n color: ",";\n margin-bottom: 20px;\n"]);return V=function(){return n},n}function U(){var n=(0,b.A)(["\n height: 138px;\n border: 1px solid #e4e8ec;\n border-radius: 4px;\n"]);return U=function(){return n},n}function G(){var n=(0,b.A)(["\n height: 100%;\n width: 100%;\n\n #input-file-upload {\n display: none;\n }\n\n label {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n cursor: pointer;\n }\n"]);return G=function(){return n},n}function W(){var n=(0,b.A)(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 24px;\n"]);return W=function(){return n},n}function q(){var n=(0,b.A)(["\n line-height: 22px;\n font-size: 14px;\n display: flex;\n align-items: center;\n letter-spacing: -0.2px;\n color: ",";\n display: flex;\n gap: 10px;\n align-items: center;\n cursor: pointer;\n"]);return q=function(){return n},n}function J(){var n=(0,b.A)(["\n text-align: center;\n max-width: 320px;\n"]);return J=function(){return n},n}function K(){var n=(0,b.A)(["\n line-height: 22px;\n font-size: 14px;\n text-align: center;\n letter-spacing: -0.2px;\n color: ",";\n\n .btn-browse {\n color: ",";\n cursor: pointer;\n text-decoration: underline;\n }\n"]);return K=function(){return n},n}function Z(){var n=(0,b.A)(["\n padding: 15px;\n align-items: center;\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n\n .loading-import {\n padding: 0;\n }\n"]);return Z=function(){return n},n}function $(){var n=(0,b.A)(["\n font-size: 14px;\n line-height: 22px;\n cursor: pointer;\n text-align: right;\n letter-spacing: -0.2px;\n color: ",";\n"]);return $=function(){return n},n}var Q,X=x.Ay.div.withConfig({componentId:"sc-4825eb13-0"})(P()),nn=x.Ay.div.withConfig({componentId:"sc-4825eb13-1"})(j(),(function(n){return n.theme.colors.white})),en=x.Ay.div.withConfig({componentId:"sc-4825eb13-2"})(H()),tn=x.Ay.div.withConfig({componentId:"sc-4825eb13-3"})(R(),(function(n){return n.theme.colors.white})),on=x.Ay.div.withConfig({componentId:"sc-4825eb13-4"})(V(),(function(n){return n.theme.colors.gray600})),rn=x.Ay.div.withConfig({componentId:"sc-4825eb13-5"})(U()),an=x.Ay.form.withConfig({componentId:"sc-4825eb13-6"})(G()),cn=x.Ay.div.withConfig({componentId:"sc-4825eb13-7"})(W()),ln=x.Ay.div.withConfig({componentId:"sc-4825eb13-8"})(q(),(function(n){return n.theme.colors.blue600})),sn=x.Ay.div.withConfig({componentId:"sc-4825eb13-9"})(J()),dn=x.Ay.div.withConfig({componentId:"sc-4825eb13-10"})(K(),(function(n){return n.theme.colors.gray600}),(function(n){return n.theme.colors.blue600})),un=x.Ay.div.withConfig({componentId:"sc-4825eb13-11"})(Z()),pn=x.Ay.div.withConfig({componentId:"sc-4825eb13-12"})($(),(function(n){return n.theme.colors.blue600})),fn=t(40568),hn=t(3959),gn=function(n,e,t){return new Promise((function(i){var r=new FileReader;r.readAsText(n,"UTF-8"),r.onloadend=function(r){var a="",c=[],l=[];try{var s=(r.target||{}).result;s||(a="File is not valid!");var d=hn.LF(s,{type:"binary"}),u=(0,fn.A)(d.SheetNames,1)[0],p=d.Sheets[u],f=hn.Wp.sheet_to_json(p,{raw:!0,header:1});f.length&&(l=(0,o.A)(f[0].map((function(n){return n.toLowerCase().replace(/[\r\n]/gm,"").trim().split(" ").join("_")}))),f.forEach((function(n,e){0!==e&&c.push(n)}))),0===c.length&&(a="No data to import"),console.log("rows data: ",f),console.log("headerValid: ",e),console.log("headerKeys: ",l),(c.length>t||l.length!==e.length)&&(a="Wrong file format");var h=l.every((function(n,t){return e[t]!==n&&(console.log("** Error column: ",n),console.log("** Error index column: ",t+1)),e[t]===n})),g=c.every((function(n,t){return Array.isArray(n)&&n.length>e.length&&(console.log("** Error row: ",n),console.log("** Error index row: ",t+1)),Array.isArray(n)&&n.length<=e.length}));(!h||!g&&c.length)&&(a="Wrong file format")}catch(m){a="Cannot read this file"}i({file:n,error:a,header:l,data:c})},r.onerror=function(){i({file:n,error:"Cannot read this file",header:[],data:[]})}}))},mn=t(40959);function vn(){return vn=Object.assign?Object.assign.bind():function(n){for(var e=1;e0}),[F,Nn]),Vn=(0,c.useMemo)((function(){return"success"===F||Nn&&0===(null===Nn||void 0===Nn?void 0:Nn.failed)}),[F,Nn]),Un=(0,c.useMemo)((function(){return Nn?Nn.failed+Nn.success:J.length}),[J,Nn]),Gn=(0,c.useMemo)((function(){return Nn?Nn.failed:xn.length}),[xn,Nn]);return(0,c.useEffect)((function(){var n=setInterval((0,i.A)((function(){var e,t,i,o;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:return kn&&"processing"===F?(t={country_id:On,hash:kn},[4,(0,f.W3)((0,f.er)(p.R.GET_ADMIN_IMPORT_STATUS,t),"GET")]):[3,2];case 1:return(i=r.sent())&&-1!==i._status||clearInterval(n),o=null===(e=i._data)||void 0===e?void 0:e["upload-process"],V(o.percent),"processing"!==o.status&&"processed"!==o.status&&(clearInterval(n),z(o.status),Fn(o),W(!1)),"import_success"===o.status&&k({message:_({id:"admin.import.dragAndDrop.label",defaultMessage:"".concat(o.success," the records are saved successfully.")},{records:o.success}),type:"success"}),[3,3];case 2:clearInterval(n),r.label=3;case 3:return[2]}}))})),3e3);return function(){clearInterval(n)}}),[kn,F]),x?(0,a.Y)(X,{children:(0,a.FD)(nn,{children:[(0,a.FD)(en,{children:[(0,a.Y)(l.T,{type:"bold",size:"base",children:M}),(0,a.Y)("div",{className:"close",onClick:function(){return n=!!F,jn(),e&&e(),void(n&&Y.reload());var n},children:(0,a.Y)(_n.A,{})})]}),(0,a.FD)(tn,{children:[(0,a.Y)(on,{children:_({id:"admin.importDataPopup.description",defaultMessage:"Please upload {recordNumber} records only for one time import. If your file is more than {recordNumber} records please split to multiple files and import multiple times."},{recordNumber:C})}),(0,a.FD)(rn,{children:[!E&&(0,a.FD)(an,{onDragOver:Bn,onDragEnter:Bn,onDrop:Bn,children:[(0,a.Y)("input",{type:"file",id:"input-file-upload",multiple:!1,accept:mn.zv1,onChange:Ln}),(0,a.Y)("label",{htmlFor:"input-file-upload",children:(0,a.FD)(sn,{children:[(0,a.Y)(Yn,{}),(0,a.Y)(dn,{children:_({id:"admin.import.dragAndDrop",defaultMessage:"Drag and drop to upload data file (*.csv) or browse file from your computer"})})]})})]}),E&&(0,a.FD)(un,{children:[(0,a.Y)(L,{fileName:null===P||void 0===P?void 0:P.name,size:null===P||void 0===P?void 0:P.size,percent:R,status:O||F,statusImport:F,onRemove:jn}),"processing"===F&&(0,a.Y)(s.L,{className:"loading-import"})]})]}),(0,a.FD)("div",{className:"wrapper-message",children:["success"===O&&(0,a.Y)(d.A,{closeIcon:(0,a.Y)(a.FK,{}),contentIcon:(0,a.Y)(Cn.A,{}),text:_({id:"admin.import.masterData.success",defaultMessage:"File is uploaded successfully. Please hit button Import below to continue the process."}),type:"success"}),"danger"===O&&(0,a.Y)(d.A,{closeIcon:(0,a.Y)(a.FK,{}),contentIcon:(0,a.Y)(Mn.A,{}),text:_({id:"admin.import.masterData.wrongFormat",defaultMessage:"Wrong file format"}),type:"danger"}),Rn&&(0,a.Y)(d.A,{contentIcon:(0,a.Y)(Dn.A,{}),closeIcon:(0,a.Y)(pn,{children:_({id:"admin.download.import.list",defaultMessage:"Download the list"})}),text:_({id:"admin.import.masterData.status",defaultMessage:"".concat(Gn,"/").concat(Un," records can not be loaded")},{recordsError:Gn,recordsTotal:Un}),type:"warning",onClose:function(){if(!Nn){var n=(0,o.A)(xn);return n.unshift(["Line"].concat((0,o.A)($),["Message Error","Status import"])),void(0,v.zW)(n,"Error rows import")}Nn.result&&(0,v.nQ)("https://cdn-healthcare.hellohealthgroup.com".concat(Nn.result))}}),Vn&&(0,a.Y)(d.A,{closeIcon:(0,a.Y)(a.FK,{}),contentIcon:(0,a.Y)(Cn.A,{}),text:_({id:"admin.import.message.success",defaultMessage:"File is imported successfully."}),type:"success"})]})]}),(0,a.FD)(cn,{children:[(0,a.FD)(ln,{onClick:function(){w&&(0,v.nQ)(w)},children:[(0,a.Y)(An,{}),_({id:"common.download.template",defaultMessage:"Download template"})]}),(0,a.Y)(u.B,{size:"md",onClick:Hn,isLoading:G,disabled:"success"!==O&&"processing"!==F,children:_("success"!==O&&"processing"!==F?{id:"admin.upload.upload",defaultMessage:"Upload"}:{id:"admin.import.import",defaultMessage:"Import"})})]})]})}):null}},40224:function(n,e,t){"use strict";t.d(e,{A:function(){return A}});var i=t(2445),o=(t(73884),t(66079)),r=t(50126),a=t(6442),c=t(24537),l=t(27317);function s(){var n=(0,c.A)(["\n position: fixed;\n z-index: 500;\n top: 0;\n left: 0;\n display: flex;\n width: 100%;\n height: var(--app-height);\n justify-content: flex-end;\n background: rgba(38, 38, 38, 0.3);\n"]);return s=function(){return n},n}function d(){var n=(0,c.A)(["\n position: absolute;\n left: 50%;\n top: 50%;\n width: 500px;\n transform: translate(-50%, -50%);\n margin-right: 0;\n background: ",";\n box-shadow: -16px 16px 32px rgba(67, 86, 100, 0.165947);\n border-radius: 8px;\n\n @media (max-width: 768px) {\n width: 90%;\n max-width: 500px;\n }\n\n .close {\n position: absolute;\n top: 12px;\n right: 16px;\n cursor: pointer;\n }\n"]);return d=function(){return n},n}function u(){var n=(0,c.A)(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding: 16px 24px;\n"]);return u=function(){return n},n}function p(){var n=(0,c.A)(["\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n padding: 0 24px;\n background: ",";\n\n & {\n .heading {\n margin-top: 24px;\n }\n }\n"]);return p=function(){return n},n}function f(){var n=(0,c.A)(["\n font-size: 14px;\n line-height: 22px;\n letter-spacing: -0.2px;\n color: ",";\n"]);return f=function(){return n},n}function h(){var n=(0,c.A)(["\n display: flex;\n justify-content: flex-end;\n align-items: center;\n padding: 15px 24px 24px;\n gap: 15px;\n"]);return h=function(){return n},n}var g=l.Ay.div.withConfig({componentId:"sc-d2f87818-0"})(s()),m=l.Ay.div.withConfig({componentId:"sc-d2f87818-1"})(d(),(function(n){return n.theme.colors.white})),v=l.Ay.div.withConfig({componentId:"sc-d2f87818-2"})(u()),b=l.Ay.div.withConfig({componentId:"sc-d2f87818-3"})(p(),(function(n){return n.theme.colors.white})),x=l.Ay.div.withConfig({componentId:"sc-d2f87818-4"})(f(),(function(n){return n.theme.colors.gray600})),w=l.Ay.div.withConfig({componentId:"sc-d2f87818-5"})(h()),y=t(8758),A=function(n){var e=n.open,t=void 0!==e&&e,c=n.message,l=n.handleOnClose,s=n.handleOnOk,d=(0,a.A)().formatMessage;return t?(0,i.Y)(g,{children:(0,i.FD)(m,{children:[(0,i.FD)(v,{children:[(0,i.Y)(o.T,{type:"bold",size:"base",children:d({id:"popup.campaign.friso.title",defaultMessage:"Campaign Friso message"})}),(0,i.Y)("div",{className:"close",onClick:l,children:(0,i.Y)(y.A,{})})]}),(0,i.Y)(b,{children:(0,i.Y)(x,{children:c})}),(0,i.Y)(w,{children:(0,i.Y)(r.B,{size:"md",type:"button",color:"primary",onClick:function(){return s&&s()},children:d({id:"admin.users.ok",defaultMessage:"OK"})})})]})}):null}},47055:function(n,e,t){"use strict";var i=t(73884),o=t(6442);e.A=function(){var n=(0,o.A)().formatMessage,e=(0,i.useState)(""),t=e[0],r=e[1];return{message:t,updateMessage:function(e){var t,i="";if(e.valid)return i=n({id:"message.campaign.friso.valid",defaultMessage:"Your phone number is eligible to join the campaign Friso, please note that the expired date is {expired_date}. Hit OK to continue your booking."},{expired_date:(null===(t=e.loyalty)||void 0===t?void 0:t.expired_date)||""}),void r(i);switch(e.invalidreason){case 1:var o,a,c,l;if(null===(o=e.loyalty)||void 0===o?void 0:o.completed)i=n({id:"message.campaign.friso.invalid.reason1.completed",defaultMessage:"Sorry, your phone number is expired in the campaign Friso. Expired date is {expired_date}. In addition, this phone number has also been used for appointment scheduling {booking_datetime}. Please contact to Customer Service - phone number 02871096118 for more information."},{expired_date:(null===(a=e.loyalty)||void 0===a?void 0:a.expired_date)||"",booking_datetime:(null===(c=e.loyalty)||void 0===c?void 0:c.booking_datetime)||""});else i=n({id:"message.campaign.friso.invalid.reason1.incompleted",defaultMessage:"Sorry, your phone number is expired in the campaign Friso. Expired date is {expired_date}. Please contact to Customer Service - phone number 02871096118 for more information."},{expired_date:(null===(l=e.loyalty)||void 0===l?void 0:l.expired_date)||""});break;case 2:i=n({id:"message.campaign.friso.invalid.reason2",defaultMessage:"Sorry, your phone number is already used in the booking & cancel booking for 03 times. Please contact to Customer Service - phone number 02871096118 for more information."});break;case 3:var s;i=n({id:"message.campaign.friso.invalid.reason3",defaultMessage:"Sorry, your phone number is already used in a booking with the doctor (booking status = upcoming). Booking date/time is {booking_datetime}. Please contact to Customer Service - phone number 02871096118 for more information."},{booking_datetime:(null===(s=e.loyalty)||void 0===s?void 0:s.booking_datetime)||""});break;case 4:var d;i=n({id:"message.campaign.friso.invalid.reason4",defaultMessage:"Sorry, your phone number is already used in a booking with the doctor (booking status = completed). Booking date/time is {booking_datetime}. Please contact to Customer Service - phone number 02871096118."},{booking_datetime:(null===(d=e.loyalty)||void 0===d?void 0:d.booking_datetime)||""});break;case 5:i=n({id:"message.campaign.friso.invalid.reason5",defaultMessage:"Sorry, your phone number is not eligible in the campaign Friso. You can try to log-out & log-in by another phone# or please contact to Customer Service - phone number 02871096118 for more information."});break;default:i=""}r(i)}}}},40630:function(n,e,t){"use strict";t.d(e,{A:function(){return I}});var i=t(2445),o=t(73884),r=t(66079),a=t(6442),c=t(58065),l=t(24537),s=t(50126),d=t(27317);function u(){var n=(0,l.A)(["\n bottom: 0;\n top: 0;\n position: absolute;\n z-index: 99;\n left: 0;\n display: flex;\n width: 100%;\n height: var(--app-height);\n justify-content: flex-end;\n"]);return u=function(){return n},n}function p(){var n=(0,l.A)(["\n position: absolute;\n left: 50%;\n top: 50%;\n width: 95%;\n transform: translate(-50%, -50%);\n margin-right: 0;\n background: ",";\n box-shadow: -16px 16px 32px rgba(67, 86, 100, 0.165947);\n border-radius: 8px;\n"]);return p=function(){return n},n}function f(){var n=(0,l.A)(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n padding: 16px;\n gap: 10px;\n\n .title {\n display: flex;\n align-items: center;\n gap: 10px;\n }\n\n .close {\n cursor: pointer;\n }\n"]);return f=function(){return n},n}function h(){var n=(0,l.A)(["\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n padding: 0 16px;\n background: ",";\n\n & {\n .heading {\n margin-top: 24px;\n }\n }\n"]);return h=function(){return n},n}function g(){var n=(0,l.A)(["\n font-size: 14px;\n line-height: 22px;\n letter-spacing: -0.2px;\n color: ",";\n\n span {\n cursor: pointer;\n color: ",";\n line-height: 22px;\n text-decoration-line: underline;\n }\n"]);return g=function(){return n},n}function m(){var n=(0,l.A)(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 16px;\n gap: 10px;\n\n button {\n border-radius: 4px;\n border: 1px solid ",";\n padding: 5px 12px;\n }\n"]);return m=function(){return n},n}function v(){var n=(0,l.A)(["\n &[data-color='primary'] {\n border-radius: 4px;\n border: 1px solid ",";\n padding: 5px 12px;\n background-color: ",";\n color: ",";\n font-weight: 600;\n\n &:hover {\n background-color: "," !important;\n }\n\n &.btn-user-profile {\n border: 1px solid ",";\n color: ",";\n }\n }\n"]);return v=function(){return n},n}var b,x,w=d.Ay.div.withConfig({componentId:"sc-b9693b02-0"})(u()),y=d.Ay.div.withConfig({componentId:"sc-b9693b02-1"})(p(),(function(n){return n.theme.colors.white})),A=d.Ay.div.withConfig({componentId:"sc-b9693b02-2"})(f()),C=d.Ay.div.withConfig({componentId:"sc-b9693b02-3"})(h(),(function(n){return n.theme.colors.white})),M=d.Ay.div.withConfig({componentId:"sc-b9693b02-4"})(g(),(function(n){return n.theme.colors.gray600}),(function(n){return n.theme.colors.blue600})),_=d.Ay.div.withConfig({componentId:"sc-b9693b02-5"})(m(),(function(n){return n.theme.colors.neutral200})),k=(0,d.Ay)(s.B).withConfig({componentId:"sc-b9693b02-6"})(v(),(function(n){return n.theme.colors.neutral200}),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.blue600}),(function(n){return n.theme.colors.blue600})),Y=t(8758);function D(){return D=Object.assign?Object.assign.bind():function(n){for(var e=1;eUser Profile in order to receive all the booking confirmation email. Thank you!",tagName:"p",values:{span:function(n){return(0,i.Y)("span",{onClick:d,children:n})}}})})}),(0,i.FD)(_,{children:[(0,i.Y)(k,{size:"sm",type:"button",onClick:o,children:s({id:"bookingCard.continueBooking",defaultMessage:"Continue Booking"})}),(0,i.Y)(k,{size:"sm",type:"button",className:"btn-user-profile",onClick:d,children:s({id:"bookingCard.goToUserProfile",defaultMessage:"Go to User Profile"})})]})]})}):null}},71584:function(n,e,t){"use strict";t.d(e,{S:function(){return b}});var i=t(38971),o=t(2445),r=t(66079),a=t(35291),c=t(14677),l=t(84091),s=t(10297),d=t(6442),u=t(58065),p=t(24537),f=t(4766);function h(){var n=(0,p.A)(["\n display: flex;\n align-items: center;\n margin-top: 4px;\n gap: 8px;\n flex-wrap: wrap;\n\n &[data-is-has-promotion='true'] {\n .servicePrice {\n color: ",";\n text-decoration: line-through;\n }\n }\n\n .price-wrapper {\n svg {\n flex: 0 0 16px;\n margin-top: 3px;\n\n "," {\n margin-top: 0;\n }\n }\n .price {\n color: ",";\n }\n }\n"]);return h=function(){return n},n}var g=t(27317).Ay.div.withConfig({componentId:"sc-b7b31f9f-0"})(h(),(function(n){return n.theme.colors.gray800}),f.M.mbDown,(function(n){return n.theme.colors.green700})),m=t(40959),v=t(22657),b=function(n){var e,t=n.price,p=n.priceType,f=n.priceTo,h=n.promotion,b=n.className,x=n.frisoCampaign,w=n.originalPrice,y=(0,d.A)().formatMessage,A=(0,s.useRouter)().locale,C=(e={},(0,i.A)(e,m.vne.FIXED,y({id:"admin.doctor.servicePrice.fixed",defaultMessage:"Fixed Price"})),(0,i.A)(e,m.vne.STARTING,y({id:"admin.doctor.servicePrice.start",defaultMessage:"Starting from"})),(0,i.A)(e,m.vne.RANGE,y({id:"admin.doctor.servicePrice.range",defaultMessage:"Range"})),e),M=function(n,e){return p===m.vne.RANGE&&e?"".concat((0,l.UN)(n,A),"\n "," - ").concat((0,l.UN)(e,A)):"".concat((0,l.UN)(n,A))};return(0,o.FD)(g,{className:b,"data-is-has-promotion":!!h,children:[(0,o.FD)(c.s,{gap:4,className:"price-wrapper",children:[(0,o.Y)(v.A,{}),(0,o.Y)(r.T,{size:"p4",color:a.w.colors.gray600,children:x?(0,o.Y)(u.A,{id:"admin.doctor.serviceFirsoPrice.fixed",defaultMessage:"Fixed Price {price}",tagName:"p",values:{span:function(){return(0,o.Y)("span",{className:"price",children:M(t,f||"")})},price:M(t,f||"")}}):C[p]})]}),!x&&(0,o.Y)(r.T,{size:"p4",color:w?a.w.colors.red700:a.w.colors.green700,className:"servicePrice !font-semibold !text-[18px]",children:M(t,f||"")}),w&&(0,o.Y)(r.T,{size:"p4",color:a.w.colors.gray600,className:"servicePrice !text-[14px] !line-through",children:(0,l.UN)(w,A)}),!!h&&(0,o.Y)(r.T,{size:"p4",color:a.w.colors.green700,children:M(Number(t)*(1-h/100),Number(f)*(1-h/100)||"")})]})}},51743:function(n,e,t){"use strict";t.d(e,{z:function(){return p}});var i=t(2445),o=t(24537),r=t(27317);function a(){var n=(0,o.A)(["\n border-radius: 100px;\n position: relative;\n height: 4px;\n overflow: hidden;\n"]);return a=function(){return n},n}function c(){var n=(0,o.A)(["\n width: 100%;\n height: 100%;\n background: #ffb521;\n opacity: 0.15;\n\n &.wraning,\n &.success,\n &.danger,\n &.processing {\n background: #e4e8ec;\n opacity: 1;\n }\n"]);return c=function(){return n},n}function l(){var n=(0,o.A)(["\n position: absolute;\n top: 0;\n left: 0;\n background: #ffb521;\n height: 100%;\n border-radius: 100px;\n\n &.wraning {\n background: #ffb521;\n }\n\n &.success,\n &.processing,\n &.import_success {\n background: ",";\n }\n\n &.danger {\n background: ",";\n }\n"]);return l=function(){return n},n}var s=r.Ay.div.withConfig({componentId:"sc-3d6d901d-0"})(a()),d=r.Ay.div.withConfig({componentId:"sc-3d6d901d-1"})(c()),u=r.Ay.div.withConfig({componentId:"sc-3d6d901d-2"})(l(),(function(n){return n.theme.colors.blue600}),(function(n){return n.theme.colors.red800})),p=function(n){var e=n.percent,t=n.className,o=n.status;return(0,i.FD)(s,{className:t,children:[(0,i.Y)(d,{className:o}),(0,i.Y)(u,{style:{width:"".concat(e,"%")},className:o})]})}},3184:function(n,e,t){"use strict";t.d(e,{k:function(){return m}});var i=t(2445),o=t(32876),r=t.n(o),a=t(6442),c=t(24537),l=t(27317);function s(){var n=(0,c.A)(["\n display: flex;\n height: fit-content;\n align-items: center;\n gap: 2px;\n"]);return s=function(){return n},n}function d(){var n=(0,c.A)(["\n display: flex;\n align-items: center;\n padding: 1px 8px;\n background-color: ",";\n border-radius: 32px;\n gap: 4px;\n p {\n font-size: 14px;\n font-weight: 600;\n line-height: 22px;\n }\n"]);return d=function(){return n},n}function u(){var n=(0,c.A)(["\n color: ",";\n font-size: 14px;\n font-weight: 400;\n line-height: 22px;\n cursor: pointer;\n text-decoration: underline !important;\n"]);return u=function(){return n},n}var p=l.Ay.div.withConfig({componentId:"sc-78a33fb6-0"})(s()),f=l.Ay.div.withConfig({componentId:"sc-78a33fb6-1"})(d(),(function(n){return n.theme.colors.neutral50})),h=l.Ay.a.withConfig({componentId:"sc-78a33fb6-2"})(u(),(function(n){return n.theme.colors.gray600})),g=t(75295),m=function(n){var e=n.ratingPoint,t=n.ratingScale,o=n.reviewCounting,c=n.className,l=n.reviewsUrl,s=(0,a.A)().formatMessage,d=null===e||void 0===e?void 0:e.toFixed(1),u=t?"".concat(d,"/").concat(t):d;return(0,i.FD)(p,{className:c,children:[!!e&&(0,i.FD)(f,{children:[(0,i.Y)(g.A,{}),(0,i.Y)("p",{children:"".concat(u)})]}),!!o&&(0,i.Y)(r(),{href:l||"#",children:(0,i.Y)(h,{children:s({id:"common.reviewCount",defaultMessage:"{reviewCount} reviews"},{reviewCount:o})})})]})}},54238:function(n,e,t){"use strict";t.d(e,{a:function(){return j}});var i=t(2445),o=t(73884),r=t(66079),a=t(44835),c=t(35291),l=t(27516),s=t(84091),d=t(76672),u=t(88491),p=t(73419),f=t(40959),h=t(32876),g=t.n(h),m=t(6442),v=t(24537),b=t(27317),x=t(81539);function w(){var n=(0,v.A)(["\n @media (min-width: ","px) {\n ",";\n }\n "]);return w=function(){return n},n}var y=768,A=function(){for(var n=arguments.length,e=new Array(n),t=0;t p:first-child {\n margin-bottom: 8px;\n }\n\n .Location {\n > * {\n display: inline-block;\n vertical-align: middle;\n }\n\n svg {\n margin: 6px;\n\n &:first-child {\n margin-left: 0px;\n }\n }\n\n span {\n color: $gray-500;\n }\n }\n\n .directionButton {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: left;\n }\n"]);return k=function(){return n},n}function Y(){var n=(0,v.A)(["\n display: flex;\n width: 100%;\n flex-direction: column;\n align-items: flex-start;\n justify-content: flex-start;\n"]);return Y=function(){return n},n}function D(){var n=(0,v.A)(["\n margin: 8px 0;\n gap: 26px;\n\n .call {\n width: 55px;\n margin-left: 6px;\n }\n\n .price {\n display: flex;\n align-items: center;\n gap: 8px;\n font-size: 14px;\n line-height: 22px;\n color: ",";\n > svg {\n width: 16px;\n height: 16px;\n }\n }\n\n .booking {\n display: flex;\n width: 100%;\n flex-direction: row;\n align-items: left;\n justify-content: space-between;\n gap: 8px;\n\n .button {\n display: inline-block;\n width: 100%;\n }\n }\n\n .ctaButton {\n padding: 10px 10px;\n }\n\n .phoneButton {\n position: relative;\n display: block;\n background: none;\n color: $gray-800;\n font-size: 16px;\n font-weight: $fw-bold;\n line-height: 24px;\n\n &::before {\n position: absolute;\n top: 50%;\n left: -22px;\n display: inline-block;\n width: 17px;\n height: 18px;\n margin-right: 6px;\n background-image: url(\"data:image/svg+xml,%3Csvg width='17' height='17' viewBox='0 0 17 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M6.73835 10.6191C4.92101 8.66086 4.05558 7.52351 5.65612 6.41801C7.07138 5.44039 7.35193 4.57287 6.02862 2.60429C4.80596 0.785613 4.31309 0.349235 2.83199 1.81058C-0.318838 4.91964 0.617252 8.16021 4.59895 12.4505C8.58064 16.7408 11.848 18.0296 15.3468 15.2957C16.9917 14.0107 16.5955 13.489 14.8602 12.1208C12.9823 10.6397 12.0669 10.823 10.9234 12.0936C9.63051 13.5305 8.55541 12.5771 6.73833 10.6191L6.73835 10.6191Z' fill='%23262626'/%3E%3C/svg%3E%0A\");\n background-repeat: no-repeat;\n content: '';\n transform: translateY(-50%);\n }\n }\n"]);return D=function(){return n},n}function E(){var n=(0,v.A)(["\n flex-direction: column;\n align-items: flex-start;\n "]);return E=function(){return n},n}function I(){var n=(0,v.A)(["\n display: flex;\n width: 100%;\n align-items: center;\n padding-bottom: 8px;\n /* margin-top: 14px; */\n .service-image {\n display: flex;\n margin-right: 16px;\n\n > img {\n border-radius: 6px;\n object-fit: contain;\n }\n }\n\n .service-info {\n display: flex;\n align-items: center;\n\n ","\n .service-tracking {\n cursor: pointer;\n [data-event-category] > * {\n pointer-events: none;\n }\n }\n }\n"]);return I=function(){return n},n}function N(){var n=(0,v.A)(["\n position: absolute;\n top: 16px;\n right: 16px;\n justify-content: flex-end;\n"]);return N=function(){return n},n}b.Ay.div.withConfig({componentId:"sc-4acc0154-0"})(M()),b.Ay.div.withConfig({componentId:"sc-4acc0154-1"})(_()),b.Ay.div.withConfig({componentId:"sc-4acc0154-2"})(k());var F,z=b.Ay.div.withConfig({componentId:"sc-4acc0154-3"})(Y()),S=b.Ay.div.withConfig({componentId:"sc-4acc0154-4"})(D(),(function(n){return n.theme.colors.gray600})),O=b.Ay.div.withConfig({componentId:"sc-4acc0154-5"})(I(),A(E())),T=(0,b.Ay)(C.k).withConfig({componentId:"sc-4acc0154-6"})(N()),B=t(74834);function L(){return L=Object.assign?Object.assign.bind():function(n){for(var e=1;e .red {\n width: fit-content;\n background-color: ",";\n }\n & > .yellow {\n width: fit-content;\n background-color: ",";\n }\n & > .green {\n width: fit-content;\n background-color: ",";\n }\n & > .blue {\n width: fit-content;\n background-color: ",";\n }\n & > .purple {\n width: fit-content;\n background-color: ",";\n }\n"]);return l=function(){return n},n}var s=t(27317).Ay.div.withConfig({componentId:"sc-1f86ba63-0"})(l(),(function(n){return n.theme.colors.red100}),(function(n){return n.theme.colors.yellow100}),(function(n){return n.theme.colors.green100}),(function(n){return n.theme.colors.blue100}),(function(n){return n.theme.colors.violet50})),d=function(n){var e,t,c=n.role,l=n.className,d=(0,a.A)().formatMessage,u={admin:{title:d({id:"admin.users.hhgAdmin",defaultMessage:"HHG Admin"}),color:"red"},super:{title:d({id:"admin.users.hhgSuper",defaultMessage:"HHG Super Admin"}),color:"red"},facility:{title:d({id:"admin.users.organizationManager",defaultMessage:"Organization Manager"}),color:"yellow"},branch:{title:d({id:"admin.users.branchManager",defaultMessage:"Branch Manager"}),color:"green"},doctor:{title:d({id:"admin.doctors.doctor",defaultMessage:"Doctor"}),color:"blue"},senior_branch:{title:d({id:"admin.users.seniorBranchManager",defaultMessage:"Senior Branch Manager"}),color:"purple"}};return(0,i.Y)(s,{className:l,children:(0,i.Y)(o.T,{className:null===(e=u[c])||void 0===e?void 0:e.color,isSquared:!0,children:(0,i.Y)("span",{style:{color:r.w.colors.gray800,fontSize:"14px"},children:null===(t=u[c])||void 0===t?void 0:t.title})})})}},19956:function(n,e,t){"use strict";t.d(e,{U:function(){return m}});var i=t(858),o=t(83776),r=t(2445),a=t(73884),c=t(59850),l=t(84091),s=t(38221),d=t.n(s),u=t(6442),p=t(24537);function f(){var n=(0,p.A)(["\n b {\n font-weight: bold;\n }\n"]);return f=function(){return n},n}var h=t(27317).Ay.section.withConfig({componentId:"sc-3b95409e-0"})(f()),g=t(43184),m=function(n){var e=n.onSelectArticle,t=n.isInputDisabled,s=void 0!==t&&t,p=n.selectedArticles,f=(0,a.useState)(""),m=f[0],v=f[1],b=(0,a.useState)([]),x=b[0],w=b[1],y=(0,a.useState)(!1),A=y[0],C=y[1],M=(0,a.useCallback)((0,i.A)((function(){var n;return(0,o.__generator)(this,(function(e){switch(e.label){case 0:return C(!0),[4,(0,l.px)((0,l.pZ)(c.R.GET_DISCOVER_ARTICLE_SEARCH,{keyword:m,page:1,perPage:30}),"GET")];case 1:return(null===(n=e.sent())||void 0===n?void 0:n.data)&&(w(n.data.posts.map((function(n){return{label:n.post_title,value:n.ID}}))),C(!1)),[2]}}))})),[m]),_=(0,a.useMemo)((function(){return d()(M,500)}),[M]);(0,a.useEffect)((function(){return m.length>2&&_(),function(){_.cancel()}}),[m,_]);var k=(0,a.useMemo)((function(){var n=new RegExp("(".concat(m,")"),"gi");return x.map((function(e){return{label:e.label.replace(n,"$1"),value:e.value}}))}),[x,m]),Y=(0,a.useMemo)((function(){return m.length>2?"No Results":"Search for an article"}),[m]),D=(0,u.A)().formatMessage;return(0,r.Y)(h,{children:(0,r.Y)(g.U1,{id:"search-article",onChange:function(n,t){n&&e(n),t&&v(String(t))},options:k.filter((function(n){return!(null===p||void 0===p?void 0:p.find((function(e){return e.value===n.value})))})),placeholder:D({id:"admin.articlePicker.placeholder",defaultMessage:"Search for articles"}),isLoading:A,disabled:s,customPlaceHolder:Y,useInnerHTML:!0})})}},68289:function(n,e,t){"use strict";t.d(e,{E4:function(){return f},UL:function(){return p},XD:function(){return h},Zr:function(){return d},og:function(){return u},wY:function(){return s}});var i=t(74029),o=t(59850),r=t(66298),a=t(1806),c=t(45351),l=t(40959),s={doctorTele:o.R.GET_TELEMEDICINE_DOCTOR_SCHEDULE,doctor:o.R.GET_DOCTOR_SCHEDULE,service:o.R.GET_HOSPITAL_SERVICE_SCHEDULE},d=function(n){return n?n.charAt(0).toUpperCase()+n.slice(1):""},u=function(n,e){return d((0,r.A)(n,l.vwd,{locale:c.tV[e]}))},p=function(n,e){try{return(0,a.A)(n.workingDay).getTime()-(0,a.A)(e.workingDay).getTime()}catch(t){return 0}},f=function(n,e){var t=[];return"doctor"===n||"doctorTele"===n?t=(0,i.GE)(e._data.schedules):"service"===n&&(t=(0,i.kT)(e._data.schedules)),t},h=function(n,e,t){for(var i=0,o=new Date(n);o<=e;o.setDate(o.getDate()+1))t(o,i),i++}},33700:function(n,e,t){"use strict";t.d(e,{b:function(){return Y}});var i=t(2445),o=t(73884),r=t(35084),a=t(66079),c=t(35291),l=t(75423),s=t(32485),d=t.n(s),u=t(48403),p=t(6442),f=t(48260),h=t(24632);function g(){var n=(0,p.A)().formatMessage;return(0,i.FD)(f.Rl,{children:[(0,i.Y)(h.A,{width:120,height:120}),(0,i.Y)(a.T,{size:"p2",className:"mt-[16px] text-c",children:n({id:"admin.emptyData",defaultMessage:"Empty data"})})]})}var m=t(24537),v=t(27317);function b(){var n=(0,m.A)(["\n width: 100%;\n & .row {\n border-bottom: 1px solid\n ",";\n cursor: pointer;\n }\n & .row[data-is-active] {\n background-color: ",";\n }\n & .body[data-is-hoverable] {\n > tr:hover {\n background-color: ","70; // reduce color alpha\n }\n }\n\n & td,\n th {\n padding: 8px;\n }\n & th:nth-child(1),\n td:nth-child(1) {\n padding-left: 24px;\n }\n thead {\n th {\n vertical-align: top;\n .has-sort {\n gap: 5px;\n display: flex;\n cursor: pointer;\n }\n }\n }\n"]);return b=function(){return n},n}function x(){var n=(0,m.A)(["\n display: flex;\n align-items: center;\n justify-content: left;\n & > .avatar {\n display: flex;\n & img {\n max-width: 40px;\n max-height: 40px;\n }\n }\n"]);return x=function(){return n},n}function w(){var n=(0,m.A)(["\n padding-left: 16px;\n"]);return w=function(){return n},n}function y(){var n=(0,m.A)(["\n font-size: 13px;\n background: white;\n position: relative;\n z-index: 1;\n border-top: 1px solid ",";\n & > tr {\n border-bottom-color: ",";\n }\n"]);return y=function(){return n},n}var A=v.Ay.div.withConfig({componentId:"sc-bc6c12e4-0"})(b(),(function(n){return n.theme.colors.gray100}),(function(n){return n.theme.colors.blue50}),(function(n){return n.theme.colors.blue50})),C=v.Ay.div.withConfig({componentId:"sc-bc6c12e4-1"})(x()),M=v.Ay.div.withConfig({componentId:"sc-bc6c12e4-2"})(w()),_=(0,v.Ay)(r.c.Head).withConfig({componentId:"sc-bc6c12e4-3"})(y(),(function(n){return n.theme.colors.neutral100}),(function(n){return n.theme.colors.neutral100})),k=t(88576),Y=function(n){var e=n.data,t=n.headings,s=n.className,p=n.hasOrderColumn,f=n.moreOptions,h=n.sortParmas,m=n.onRowClicked,v=n.onClickSort,b=n.hasOptions,x=void 0===b||b,w=n.isShowEmpty,y=n.id,Y=(0,o.useState)(void 0),D=Y[0],E=Y[1],I=function(n){E(n),null===m||void 0===m||m(n)};return(0,i.FD)(A,{className:s,id:y?"table-".concat(y):void 0,children:[(0,i.FD)(r.c.Table,{verticalPadding:"16px",children:[(0,i.FD)(_,{isSticky:!1,children:[p&&(0,i.Y)(r.c.Cell,{isTableHead:!0,children:"No."}),t.map((function(n,e){return(0,i.Y)(r.c.Cell,{isTableHead:!0,style:{paddingTop:15,paddingBottom:15},className:"object"===typeof n?n.className:void 0,textAlign:"object"===typeof n?n.textAlign:void 0,children:(0,i.FD)("div",{className:"".concat("object"===typeof n&&(null===n||void 0===n?void 0:n.sort)?"has-sort":""),onClick:function(){"object"===typeof n&&(null===n||void 0===n?void 0:n.sort)&&function(n){var e="";"asc"===(null===h||void 0===h?void 0:h.sort)&&(e="desc"),"desc"===(null===h||void 0===h?void 0:h.sort)&&(e="asc"),v&&v({sort_by:n,sort:e})}(n.sortKey||"")},children:["object"===typeof n?n.text:n,"object"===typeof n&&(null===n||void 0===n?void 0:n.sort)&&(0,i.Y)(k.A,{})]})},e)})),x&&(0,i.Y)(r.c.Cell,{isTableHead:!0,children:""})]}),(0,i.Y)(r.c.Body,{isHoverable:!0,className:"body",children:e&&e.map((function(n,e){return(0,i.FD)(r.c.Row,{rowId:n[0].value,onRowClicked:function(n){I&&I(n)},isActive:n[0].value===D||void 0,className:d()("row",[y&&"table-".concat(y,"-row-").concat(e+1)]),children:[p&&(0,i.Y)(r.c.Cell,{children:(0,i.Y)(a.T,{size:"md",type:"bold",style:{fontSize:"14px",fontWeight:400},color:c.w.colors.gray800,children:"".concat(e+1," .")})}),n&&n.map((function(e,t){return"id"!==e.type&&(0,i.FD)(r.c.Cell,{className:e.className,textAlign:"object"===typeof e?e.textAlign:void 0,children:["info"===e.type&&(0,i.FD)(C,{children:[(0,i.Y)(l.A,{avatarImg:(0,i.Y)("img",{src:e.value.imgSrc,width:40,height:40,className:"fit-contain bg-img-500"}),type:"rounded",className:"avatar"}),(0,i.FD)(M,{children:[(0,i.Y)(a.T,{size:"md",type:"bold",className:"w-break-word",style:{fontSize:"14px",fontWeight:600},children:e.value.title}),e.value.caption&&(0,i.Y)(a.T,{size:"base",color:c.w.colors.gray500,style:{fontSize:"14px"},children:e.value.caption})]})]}),("string"===e.type||"number"===e.type)&&(0,i.Y)(a.T,{size:"base",color:c.w.colors.gray500,style:{fontSize:"14px"},children:(0,i.Y)(i.FK,{children:e.value})}),"element"===e.type&&(0,i.Y)("div",{onClick:function(n){e.hasAction&&n.stopPropagation()},children:(0,i.Y)(i.FK,{children:e.value})}),"two_line"===e.type&&(0,i.FD)("div",{children:[(0,i.Y)(a.T,{size:"md",style:{fontSize:"14px"},children:e.value.heading}),(0,i.Y)(a.T,{size:"base",color:c.w.colors.gray500,style:{fontSize:"14px"},children:e.value.text})]}),"options"===e.type&&(0,i.Y)("div",{onClick:function(n){n.stopPropagation()},children:(0,i.Y)(u.rI,{data:e.value.map((function(e){return{name:e.name,icon:e.icon,isDisabled:e.isDisabled,action:function(){(null===e||void 0===e?void 0:e.action)&&e.action(n[0].value,n[t].metaData)}}}))})}),x&&"key"===e.type&&(0,i.Y)("div",{onClick:function(n){n.stopPropagation()},children:(0,i.Y)(u.rI,{data:("function"===typeof f?f(n[t].metaData||n[t].value):f).map((function(i){return{id:i.id,name:i.name,icon:i.icon,isDisabled:i.isDisabled,action:function(){!i.isDisabled&&i.action&&i.action(e.value,n[t].metaData)}}}))})})]},t)}))]},e)}))})]}),w&&(0,i.Y)(g,{})]})}},24572:function(n,e,t){"use strict";t.d(e,{U:function(){return b}});var i=t(858),o=t(53513),r=t(83776),a=t(2445),c=t(73884),l=t(34555),s=t(74029),d=t(59850),u=t(84091),p=t(43184),f=t(73419),h=t(24537);function g(){var n=(0,h.A)(["\n width: 100%;\n margin-right: 5px;\n"]);return g=function(){return n},n}var m=t(27317).Ay.div.withConfig({componentId:"sc-adfcd035-0"})(g()),v={value:"",label:""},b=function(n){var e=n.id,t=n.hospitalId,h=n.style,g=n.className,b=n.value,x=n.placeholder,w=n.errorMessage,y=n.disabled,A=n.params,C=n.handleChange,M=(0,f.$)(),_=(0,c.useState)([]),k=_[0],Y=_[1],D=(0,c.useState)(null),E=D[0],I=D[1],N=(0,c.useState)(!1),F=N[0],z=N[1],S=(0,c.useState)(!1),O=S[0],T=S[1],B=(0,c.useMemo)((function(){return{tooltip:{display:"block"}}}),[]);return(0,c.useEffect)((function(){var n=function(){var n=(0,i.A)((function(){var n,e;return(0,r.__generator)(this,(function(i){switch(i.label){case 0:return[4,(0,u.W3)((0,u.er)(d.R.GET_BRANCH_HOSPITAL,(0,o.A)({hospitalId:t||""},A)),"GET")];case 1:return(n=i.sent())&&1===(null===n||void 0===n?void 0:n._status)&&(null===n||void 0===n?void 0:n._data)&&(e=n._data.branches.map((function(n){return{value:n.id.toString(),label:n.name}})),Y(e)),[2]}}))}));return function(){return n.apply(this,arguments)}}();t&&n()}),[t]),(0,c.useEffect)((function(){var n=function(){var n=(0,i.A)((function(n){var e,t;return(0,r.__generator)(this,(function(i){switch(i.label){case 0:return[4,(0,u.W3)((0,u.er)(d.R.GET_ADMIN_BRANCH_DETAIL,{branchId:n}),"GET")];case 1:return(e=i.sent())&&1===e._status&&(null===e||void 0===e?void 0:e._data)?(t=(0,s.a6)(e._data.branch),I({label:t.name,value:t.id})):e&&5===e._status&&M.push("/admin/login"),[2]}}))}));return function(e){return n.apply(this,arguments)}}();b&&"string"===typeof b?n(b):I(null)}),[b]),(0,a.Y)(l.m,{label:null===E||void 0===E?void 0:E.label,styles:B,opened:!!E&&O&&!F,children:(0,a.Y)(m,{onMouseOver:function(){T(!0)},onMouseOut:function(){T(!1)},children:(0,a.Y)(p.U1,{style:h,className:g,id:e,placeholder:x||"All branches",value:null!==E&&void 0!==E?E:void 0,onChange:function(n){T(!1),z(!1),n?(I(n),C(n)):(null===E||void 0===E?void 0:E.value)&&C(v)},onFocus:function(){z(!0)},onBlur:function(){z(!1)},options:k,errorMessage:w,hasFilterValueFromOptions:!1,disabled:y})})})}},45638:function(n,e,t){"use strict";t.d(e,{i:function(){return y}});var i=t(858),o=t(53513),r=t(83776),a=t(2445),c=t(73884),l=t(34555),s=t(74029),d=t(59850),u=t(84091),p=t(43184),f=t(88542),h=t(73419),g=t(40959),m=t(2543),v=t(24537);function b(){var n=(0,v.A)(["\n width: 100%;\n margin-right: 5px;\n"]);return b=function(){return n},n}var x=t(27317).Ay.div.withConfig({componentId:"sc-b504765d-0"})(b()),w={value:"",label:""},y=function(n){var e=n.style,t=n.className,v=n.id,b=n.value,y=n.placeholder,A=n.errorMessage,C=n.disabled,M=n.params,_=n.inorgeSiloam,k=void 0!==_&&_,Y=n.handleChange,D=(0,h.$)(),E=(0,h.$)().locale,I=void 0===E?"vi-VN":E,N=g.EmC[I].id,F=(0,c.useState)([]),z=F[0],S=F[1],O=(0,c.useState)(null),T=O[0],B=O[1],L=(0,c.useState)(!1),P=L[0],j=L[1],H=(0,c.useState)(!1),R=H[0],V=H[1],U=(0,f.o)().navigationDropdownControl,G=(0,c.useState)(!1),W=G[0],q=G[1],J=function(){var n=(0,i.A)((function(n){var e,t,i,a;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:return q(!0),[4,(0,u.W3)((0,u.er)(d.R.GET_ADMIN_ORGANIZATION,(0,o.A)({keyword:n||"",countryId:N||""},M)),"GET")];case 1:return t=r.sent(),i=null===t||void 0===t||null===(e=t._data)||void 0===e?void 0:e.hospitals,t&&1===t._status&&i?(a=i.map(s.P5).filter((function(n){return!k||!n.isSiloam})),S(a.map((function(n){return{value:n.id.toString(),label:n.name}})))):t&&5===t._status&&D.push("/admin/login"),q(!1),[2]}}))}));return function(e){return n.apply(this,arguments)}}(),K=(0,c.useCallback)((0,m.debounce)((function(n){return J(n)}),300),[]),Z=(0,c.useMemo)((function(){return{tooltip:{display:"block"}}}),[]);return(0,c.useEffect)((function(){J()}),[U]),(0,c.useEffect)((function(){var n=function(){var n=(0,i.A)((function(n){var e,t,i,o;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:return[4,(0,u.W3)((0,u.er)(d.R.GET_ADMIN_HOSPITAL_DETAIL,{hospitalId:n}),"GET")];case 1:return t=r.sent(),i=null===t||void 0===t||null===(e=t._data)||void 0===e?void 0:e.hospital,t&&1===t._status&&(null===t||void 0===t?void 0:t._data)?(o=(0,s.P5)(i),B({label:o.name,value:o.id})):t&&5===t._status&&D.push("/admin/login"),[2]}}))}));return function(e){return n.apply(this,arguments)}}();b&&"string"===typeof b&&n(b)}),[b]),(0,a.Y)(l.m,{label:null===T||void 0===T?void 0:T.label,styles:Z,opened:!!T&&R&&!P,children:(0,a.Y)(x,{onMouseOver:function(){V(!0)},onMouseOut:function(){V(!1)},children:(0,a.Y)(p.U1,{style:e,className:t,id:v,placeholder:y||"",value:null!==T&&void 0!==T?T:void 0,onChange:function(n,e){var t,i;B(n),V(!1),j(!1),console.log("DropdownSearch selected"),t=n,i=e,console.log("option: ",t),console.log("value: ",T),t?(K(""),t.value===(null===T||void 0===T?void 0:T.value)&&t.label===(null===T||void 0===T?void 0:T.label)||(Y(t),localStorage.setItem("admin/selectedHospital",JSON.stringify(t)))):(((null===T||void 0===T?void 0:T.value)||(null===T||void 0===T?void 0:T.label))&&Y(w),K(i))},onFocus:function(){j(!0)},onBlur:function(){j(!1)},options:z,isLoading:W,errorMessage:A,hasFilterOption:!1,disabled:C})})})}},73855:function(n,e,t){"use strict";t.d(e,{T:function(){return a}});var i=t(24537),o=t(4766);function r(){var n=(0,i.A)(["\n background: #1b3250;\n\n .inner {\n padding: 64px 24px;\n "," {\n padding: 64px 0;\n }\n margin: 0 auto;\n //max-width: 1168px;\n\n &[data-type='mini'] {\n padding: 0;\n }\n }\n\n .footer-logo {\n max-width: 132px;\n margin-bottom: 24px;\n }\n\n .social {\n margin-top: 24px;\n\n "," {\n margin-top: 32px;\n }\n\n p {\n color: ",";\n }\n }\n\n .icons {\n margin-top: 12px;\n margin-bottom: 20px;\n > a:not(:last-child) {\n margin-right: 16px;\n }\n }\n\n .newsletter {\n > p {\n color: ",";\n\n font-size: 14px;\n line-height: 22px;\n\n "," {\n max-width: 380px;\n font-size: 19px;\n line-height: 28.5px;\n }\n }\n }\n\n hr {\n height: 1px;\n border: none;\n margin: 16px 0 16px 0;\n "," {\n margin-top: 0px;\n }\n background: ",";\n opacity: 0.1;\n outline: none;\n }\n\n .hrMobile {\n "," {\n display: none;\n }\n }\n\n .copyright {\n padding-top: 8px;\n\n "," {\n display: flex;\n flex-direction: row-reverse;\n align-items: center;\n justify-content: space-between;\n }\n\n p {\n color: ",";\n }\n\n img {\n max-width: 100px;\n margin-bottom: 16px;\n\n "," {\n margin-bottom: 0px;\n }\n }\n\n &[data-is-amp='true'] {\n img {\n margin-bottom: 0;\n }\n }\n }\n\n .biglinks {\n margin-bottom: 12px;\n }\n\n .bigLink {\n display: block;\n color: ",";\n font-size: 19px;\n font-weight: ",";\n text-decoration: none;\n\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n\n "," {\n display: inline-block;\n width: 50%;\n font-size: 16px;\n }\n }\n\n .mHalf {\n display: inline-block;\n width: 50%;\n padding-right: 24px;\n margin-bottom: 24px;\n vertical-align: top;\n\n p {\n margin-bottom: 12px;\n color: ",";\n }\n\n "," {\n margin-bottom: 8px;\n }\n }\n\n .otherSites {\n p {\n margin-bottom: 12px;\n color: ",";\n }\n\n .flags {\n display: flex;\n margin-bottom: 8px;\n\n div {\n margin-right: 10px;\n }\n }\n }\n\n .link {\n display: block;\n text-decoration: none;\n\n p {\n color: ",";\n font-weight: ",";\n }\n\n &:not(:last-child) {\n margin-bottom: 12px;\n }\n }\n\n .columns {\n "," {\n display: flex;\n flex-direction: row;\n width: 100%;\n\n > div:nth-child(1) {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n flex-basis: 40%;\n }\n\n > div:nth-child(2) {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n flex-basis: 60%;\n\n > div:nth-child(1) {\n flex-basis: 45%;\n }\n\n > div {\n flex-basis: 27.5%;\n }\n\n > div:last-child() {\n flex-basis: 0;\n }\n }\n }\n }\n\n .signupButton {\n display: none;\n border: none;\n margin-top: 16px;\n outline: none;\n text-transform: uppercase;\n }\n"]);return r=function(){return n},n}var a=t(27317).Ay.footer.withConfig({componentId:"sc-86b1f07-0"})(r(),o.M.mbDown,o.M.mbDown,(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.neutral500}),o.M.tdUp,o.M.mbDown,(function(n){return n.theme.colors.neutral500}),o.M.tdUp,o.M.tdUp,(function(n){return n.theme.colors.white}),o.M.tdUp,(function(n){return n.theme.colors.white}),(function(n){return n.theme.sizes.fwBold}),o.M.mbDown,(function(n){return n.theme.colors.neutral500}),o.M.mbDown,(function(n){return n.theme.colors.neutral500}),(function(n){return n.theme.colors.white}),(function(n){return n.theme.sizes.fwBold}),o.M.tdUp)},73166:function(n,e,t){"use strict";t.d(e,{w:function(){return w}});var i=t(2445),o=t(35291),r=t(40927),a=t(66079),c=t(50126),l=t(80084),s=t(27516),d=t(9060),u=t(40959),p=t(10297),f=t(37470),h=t(16362),g=t(81548),m=t(43323),v=t(67601),b=t(6442),x=t(73855),w=function(n){var e=n.className,t=n.newsletterText,w=n.facebookLink,y=n.instagramLink,A=n.twitterLink,C=n.linkedinLink,M=n.youtubeLink,_=n.copyrightText,k=n.followusText,Y=n.informationLinks,D=n.bigLinks,E=n.hellohealthLinks,I=n.type,N=void 0===I?"main":I,F=n.logoType,z=void 0===F?"hellohealth":F,S=n.isMobile,O=n.flagLinks,T=(0,b.A)().formatMessage,B=(0,p.useRouter)().locale,L=void 0===B?"vi-VN":B,P=32,j=32;return S&&(P=24,j=24),(0,i.Y)(x.T,{className:e,style:"mini"===N?{backgroundColor:o.w.colors.neutral50}:{},"next-page-hide":!0,children:(0,i.Y)(d.m,{children:(0,i.Y)("div",{className:"inner","data-type":N,"next-page-hide":"",children:"main"===N?(0,i.FD)(i.FK,{children:[(0,i.Y)(r.L,{className:"footer-logo",type:z,isLightLogo:!0}),(0,i.FD)("div",{className:"columns",children:[(0,i.FD)("div",{className:"newsletter",children:[(0,i.Y)(a.T,{size:"p1",type:"bold",children:t}),(0,i.Y)(c.B,{className:"signupButton",color:"primary",size:"lg",children:T({id:"footer.signUp"})}),(0,i.FD)("div",{className:"social",children:[k&&(0,i.Y)(a.T,{size:"sm",type:"regular",children:k}),(0,i.FD)("div",{className:"icons",children:[w&&(0,i.Y)("a",{"data-event-category":"Footer","data-event-action":"Follow us - Facebook","data-content-label":w,href:w,children:(0,i.Y)(f.A,{})}),y&&(0,i.Y)("a",{"data-event-category":"Footer","data-event-action":"Follow us - Instagram","data-content-label":y,href:y,children:(0,i.Y)(h.A,{})}),C&&(0,i.Y)("a",{href:C,"data-event-category":"Footer","data-event-action":"Follow us - LinkedIn","data-event-label":C,children:(0,i.Y)(g.A,{})}),A&&(0,i.Y)("a",{"data-event-category":"Footer","data-event-action":"Follow us - Twitter","data-event-label":A,href:A,children:(0,i.Y)(m.A,{})}),M&&(0,i.Y)("a",{"data-event-category":"Footer","data-event-action":"Follow us - Youtube","data-event-label":M,href:M,children:(0,i.Y)(v.A,{})})]}),(0,i.Y)("hr",{className:"hrMobile"})]})]}),(0,i.FD)("div",{children:[(0,i.Y)("div",{className:"biglinks",children:D.map((function(n){return n.link&&(0,i.Y)("a",{"data-event-category":"Footer","data-event-action":n.title,"data-event-label":"https://".concat(s.y[L]).concat(n.link),className:"bigLink",href:n.link,children:n.title},n.title)}))}),(0,i.Y)("hr",{className:"hrMobile"}),(0,i.FD)("div",{className:"mHalf",children:[(0,i.Y)(a.T,{type:"regular",size:"sm",className:"linkTitle",children:T({id:"footer.information"})}),Y.map((function(n){return n.link&&(0,i.Y)("a",{"data-event-category":"Footer","data-event-action":n.title,"data-event-label":"https://".concat(s.y[L]).concat(n.link),className:"link",href:n.link,children:(0,i.Y)(a.T,{size:"sm",type:"regular",children:n.title})},n.title)}))]}),(0,i.FD)("div",{className:"mHalf",children:[(0,i.Y)(a.T,{type:"regular",size:"sm",className:"linkTitle",children:T({id:"footer.helloHealth"})}),E.map((function(n){return n.link&&(0,i.Y)("a",{"data-event-category":"Footer","data-event-action":n.title,"data-event-label":n.link,className:"link",href:n.link,children:(0,i.Y)(a.T,{size:"sm",type:"regular",children:n.title})},n.title)}))]}),(0,i.FD)(i.FK,{children:[(0,i.Y)("hr",{className:"hrMobile"}),(0,i.FD)("div",{className:"otherSites",children:[(0,i.Y)(a.T,{type:"regular",size:"sm",className:"linkTitle",children:T({id:"footer.otherSites"})}),(0,i.Y)("div",{className:"flags",children:null===O||void 0===O?void 0:O.map((function(n){return!!n.country&&(0,i.Y)("a",{className:"link",href:n.link,"data-event-category":"Footer","data-event-action":"".concat(u.qH0[n.country]),"data-event-label":n.link,children:(0,i.Y)(l.F,{country:n.country,width:j,height:P,rounded:!0})},"flag-".concat(n.country))}))})]})]})]})]}),(0,i.Y)("hr",{}),(0,i.FD)("div",{className:"copyright","data-is-amp":void 0,children:[(0,i.Y)("a",{href:"https://www.dmca.com/Protection/Status.aspx?ID=752026fa-bb3c-450e-b184-b8051d04e5c4&refurl=https://".concat(s.y[L],"/"),children:(0,i.Y)("img",{src:"".concat(u.JpE,"/images/dmca.png"),alt:"DMCA Icon"})}),_&&(0,i.Y)(a.T,{size:"xs",type:"regular",children:_})]})]}):(0,i.Y)(i.FK,{children:(0,i.FD)("div",{className:"columns",children:[(0,i.FD)("div",{className:"mHalf",children:[(0,i.Y)(a.T,{type:"regular",size:"sm",className:"linkTitle",children:T({id:"footer.information"})}),Y.map((function(n){return n.link&&(0,i.Y)("a",{className:"link",href:n.link,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":n.title,"data-content-id":"https://".concat(s.y[L]).concat(n.link),children:(0,i.Y)(a.T,{size:"sm",type:"regular",style:{color:o.w.colors.gray800},children:n.title})},n.title)}))]}),(0,i.FD)("div",{className:"mHalf",children:[(0,i.Y)(a.T,{type:"regular",size:"sm",className:"linkTitle",children:T({id:"footer.helloHealth"})}),E.map((function(n){return n.link&&(0,i.Y)("a",{className:"link",href:n.link,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":n.title,"data-content-id":n.link,children:(0,i.Y)(a.T,{size:"sm",type:"regular",style:{color:o.w.colors.gray800},children:n.title})},n.title)}))]}),"mini"!==N&&(0,i.Y)("hr",{className:"hrMobile"}),(0,i.Y)("div",{className:"newsletter",children:(0,i.FD)("div",{className:"social",children:[k&&(0,i.Y)(a.T,{size:"sm",type:"regular",style:{color:o.w.colors.neutral500},children:k}),(0,i.FD)("div",{className:"icons",children:[w&&(0,i.Y)("a",{"data-event-category":"Footer","data-event-action":"Follow us - Facebook","data-content-label":w,href:w,children:(0,i.Y)(f.A,{})}),y&&(0,i.Y)("a",{"data-event-category":"Footer","data-event-action":"Follow us - Instagram","data-content-label":y,href:y,children:(0,i.Y)(h.A,{})}),C&&(0,i.Y)("a",{"data-event-category":"Footer","data-event-action":"Follow us - LinkedIn","data-content-label":C,href:C,children:(0,i.Y)(g.A,{})}),A&&(0,i.Y)("a",{"data-event-category":"Footer","data-event-action":"Follow us - Twitter","data-content-label":A,href:A,children:(0,i.Y)(m.A,{})})]})]})})]})})})})})}},47760:function(n,e,t){"use strict";t.d(e,{J:function(){return T}});var i,o=t(40568),r=t(2445),a=t(73884),c=t(44835),l=t(35291),s=t(66079),d=t(27516),u=t(84091),p=t(24431),f=t(35094),h=t(73419),g=t(32876),m=t.n(g),v=t(6442),b=t(12495),x=t.n(b),w=t(13034),y=t(10297),A=t(51524),C=t(21336),M=t(93708),_=function(n){var e=n.availableBookings,t=n.style,i=(0,v.A)().formatMessage,o=(0,y.useRouter)().push,a=e.length>0;return(0,r.FD)(A.rO,{style:t,children:[(0,r.Y)(C.h,{iconSize:16,svgIcon:{fill:l.w.colors.gray400},className:"mt-[4px]",children:(0,r.Y)(M.A,{})}),a?(0,r.FD)("div",{className:"flex-[1]",children:[(0,r.Y)(s.T,{size:"p3",color:l.w.colors.gray600,children:i({id:"hospitalSearchCard.availableBookingAtHospital",defaultMessage:"Available for booking"}).concat(":")}),(0,r.Y)("div",{className:"flex gap-[8px]",children:e.map((function(n,e){var t=n.title,i=n.href;return(0,r.FD)(A.xr,{children:[0!==e&&(0,r.Y)("div",{className:"separator"}),(0,r.Y)("div",{onClick:function(){o(i)},children:(0,r.Y)(s.T,{size:"p3",children:t})})]},e)}))})]}):(0,r.Y)(s.T,{size:"p3",color:l.w.colors.gray600,children:i({id:"hospitalSearchCard.notAvailableBookingAtHospital",defaultMessage:"Not available for booking"})})]})},k=t(89252),Y=function(n){var e=n.distance;return n.isDisplayDistance?(0,r.Y)(r.FK,{children:Number(e)>=0&&(0,r.FD)(r.FK,{children:[(0,r.Y)("div",{className:"location-separator",children:(0,r.Y)("svg",{width:"4",height:"4",children:(0,r.Y)("circle",{cx:"2",cy:"2",r:"2",fill:"#BFBFBF"})})}),(0,r.Y)(s.T,{size:"p3",color:l.w.colors.gray500,children:"".concat((0,k.m8)(e)," km")})]})}):null},D=t(89394),E=t(40959),I=t(1135);function N(){return N=Object.assign?Object.assign.bind():function(n){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},i="hospital"===l?"See Hospital Click":"Book Appointment Click";return(0,o.Y)(w.SK,(0,f.A)((0,p.A)({size:"md",color:"primary",onClick:function(n){null===n||void 0===n||n.stopPropagation(),t(e)},className:"button",dataEventCategory:"Care",dataEventAction:i,dataEventLabel:S},n),{children:d("hospital"===l?{id:"hospitalCard.button.view",defaultMessage:"View Hospital"}:{id:"hospitalCard.bookService",defaultMessage:"Book Service"})}))}()]})})},k=t(47760),Y=t(95456),D=t(1247),E=function(n){var e=n.type,t=n.hospitalInfo,i=n.gps,p=n.phone,f=n.orderedListIndex,h=n.onHospitalClick,g=n.onMainActionClick,m=n.onPhoneClick,v=n.children,b=n.onGlobalCardClick,x=n.customRenderHospitalUrl,A=n.goHospitalPage,C=n.hospitalURL,M=n.hospitalStatus,E=(0,l.d)().isMobile,I=(0,s.c)(),N=(0,r.useMemo)((function(){return i&&(0,y.Yf)(i.lat,i.lng,null===t||void 0===t?void 0:t.latitude,null===t||void 0===t?void 0:t.longitude)}),[t,i]),F=(0,d.$)().locale,z=x||(0,c.eP)(t),S="https://".concat(a.y[F]).concat(z),O=["granted","prompt"].includes(I);return(0,o.FD)(w.yO,{onClick:b,children:["service"===e&&v,"hospital"===e&&(0,o.FD)(o.FK,{children:[(0,o.Y)(w.fs,{"data-bottom-border":E&&t.about,children:(0,o.FD)("div",{className:"hospital-image-wrapper",children:[(0,o.Y)(w.eO,{"data-event-category":"Care","data-event-action":"".concat((0,y.ZH)(e)," Click ").concat(f+1),"data-event-label":S,onClick:function(n){n.stopPropagation(),h(t)},children:(0,o.Y)(Y.Y,{layout:"responsive",src:t.logo||"".concat(u.JpE,"/images/avatar.jpg"),width:64,height:64,quality:100,objectFit:"contain"})}),(0,o.FD)(w.fp,{children:[(0,o.Y)(k.J,{hospitalInfo:t,gps:i,orderedListIndex:f,type:e,customRenderHospitalUrl:x}),!E&&v]})]})}),E&&v]}),"service"===e&&(0,o.Y)(D._,{organizationLogo:t.logo,hospitalName:t.name,goHospitalPage:A,isDisplayDistance:O,distance:N,handleMakeAppointment:function(){return h(t)},address:t.address,hospitalURL:C,trackingHospitalProps:{"data-event-category":"Care","data-event-action":"Hospital Click ".concat(f+1),"data-event-label":"https://".concat(a.y[F]).concat(u.JpE).concat((0,c.eP)(t))}}),"hospital"===e&&(0,o.Y)(_,{hospitalInfo:t,phone:p,type:e,hospitalStatus:M,onMainActionClick:g,onPhoneClick:m})]})}},51524:function(n,e,t){"use strict";t.d(e,{$5:function(){return j},Ao:function(){return H},Bm:function(){return T},FD:function(){return B},SK:function(){return O},d4:function(){return N},eO:function(){return P},fp:function(){return E},fs:function(){return D},mS:function(){return I},ns:function(){return z},rO:function(){return R},sb:function(){return L},xC:function(){return F},xY:function(){return S},xr:function(){return V},yO:function(){return Y}});var i=t(24537),o=t(4766),r=t(50126),a=t(27317),c=t(3184);function l(){var n=(0,i.A)(["\n position: relative;\n overflow: hidden;\n width: 100%;\n box-sizing: border-box;\n padding: 16px 16px 0 16px;\n\n border: 1px solid #e4e8ec;\n border-radius: 6px;\n\n box-shadow: 0px 5px 12px rgba(44, 74, 117, 0.08);\n text-decoration: none;\n\n a {\n text-decoration: none;\n }\n\n &:not(:last-child) {\n margin-bottom: 24px;\n }\n"]);return l=function(){return n},n}function s(){var n=(0,i.A)(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding-bottom: 16px;\n\n &[data-bottom-border='true'] {\n border-bottom: 1px dashed #e4e8ec;\n }\n\n gap: 16px;\n\n .hospital-image-wrapper {\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: start;\n gap: 16px;\n\n "," {\n flex-direction: column;\n }\n }\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n display: flex;\n flex-direction: column;\n align-items: start;\n justify-content: left;\n gap: 16px;\n\n .buttons {\n svg {\n min-width: 16px;\n margin: 4px 6px 6px 0;\n }\n a {\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n justify-content: left;\n }\n }\n\n .hospital-name a {\n color: inherit;\n }\n"]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n\n margin: 8px 0;\n\n > :last-child {\n flex-shrink: 0;\n }\n\n .location-pin {\n display: flex;\n min-width: 16px;\n align-items: center;\n margin: 0 6px 0 0;\n }\n\n .location-separator {\n display: flex;\n align-items: center;\n margin: 6px;\n }\n\n span {\n color: $gray-500;\n }\n\n .hospital-location {\n display: -webkit-box;\n overflow: hidden;\n width: calc(100% - 22px);\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n word-break: break-all;\n }\n"]);return u=function(){return n},n}function p(){var n=(0,i.A)(["\n display: flex;\n width: 100%;\n flex-direction: row;\n align-items: center;\n justify-content: left;\n gap: 16px;\n"]);return p=function(){return n},n}function f(){var n=(0,i.A)(["\n display: flex;\n height: 100%;\n flex-direction: column;\n align-items: left;\n justify-content: space-between;\n\n "," {\n justify-content: flex-start;\n align-items: flex-start;\n padding-top: 8px;\n min-width: 100%;\n height: 100%;\n }\n\n .btn-phone-number {\n border: none;\n cursor: copy;\n margin: auto;\n }\n\n .view {\n display: flex;\n width: 100%;\n flex-direction: row;\n align-items: left;\n margin-top: 8px;\n\n > :first-child {\n width: 100%;\n margin-right: 8px;\n }\n }\n\n .hospitalCard__callButton {\n display: flex;\n min-width: var(--button-size);\n max-width: var(--button-size);\n height: var(--button-size);\n align-items: center;\n justify-content: center;\n border: 2px solid ",";\n background: ",";\n border-radius: calc(var(--button-size) / 2);\n --button-size: 40px;\n .callTrigger {\n pointer-events: none;\n }\n }\n"]);return f=function(){return n},n}function h(){var n=(0,i.A)(["\n margin-top: 8px;\n margin-right: 16px;\n "," {\n padding: 16px 0 0 0;\n }\n\n .description {\n white-space: pre-line;\n }\n\n .see-more-button[data-color='ghost'][data-size='sm'] {\n padding-left: 0;\n padding-bottom: 0;\n text-align: left;\n }\n\n .content-description {\n color: ",";\n }\n\n &[data-is-collapsed='true'] {\n p {\n display: -webkit-box;\n overflow: hidden;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n }\n }\n"]);return h=function(){return n},n}function g(){var n=(0,i.A)(["\n .svgTrigger {\n pointer-events: none;\n }\n button[data-color='tertiary'][data-size='md'] {\n padding: 9px 15px;\n\n > span {\n white-space: nowrap;\n display: -webkit-box;\n overflow: hidden;\n -webkit-line-clamp: 1;\n }\n }\n"]);return g=function(){return n},n}function m(){var n=(0,i.A)(["\n span {\n white-space: nowrap;\n }\n"]);return m=function(){return n},n}function v(){var n=(0,i.A)(["\n display: -webkit-box;\n overflow: hidden;\n width: 100%;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n word-break: break-all;\n"]);return v=function(){return n},n}function b(){var n=(0,i.A)(["\n "," {\n margin-top: 8px;\n }\n "," {\n gap: 6px;\n margin: 8px 0;\n }\n"]);return b=function(){return n},n}function x(){var n=(0,i.A)(["\n width: calc(100% + 32px);\n margin-left: -16px;\n display: flex;\n align-items: center;\n padding: 8px 16px;\n gap: 16px;\n &[data-has-background-color='true'] {\n background-color: ",";\n }\n "," {\n justify-content: space-between;\n }\n"]);return x=function(){return n},n}function w(){var n=(0,i.A)(["\n "," {\n max-width: 420px;\n }\n a {\n color: inherit;\n text-decoration: none;\n }\n"]);return w=function(){return n},n}function y(){var n=(0,i.A)(["\n border-radius: 50%;\n border: 1px solid #f7f9fc;\n object-position: center;\n"]);return y=function(){return n},n}function A(){var n=(0,i.A)(["\n width: 64px;\n height: 64px;\n border-radius: 100%;\n cursor: pointer;\n flex: 0 0 64px;\n\n img {\n border-radius: 100%;\n border: 1px solid #f7f9fc !important;\n }\n"]);return A=function(){return n},n}function C(){var n=(0,i.A)(["\n display: flex;\n gap: 16px;\n margin-left: auto;\n\n "," {\n gap: 8px;\n width: 100%;\n flex-direction: column-reverse;\n > * {\n width: 100%;\n }\n }\n\n "," {\n }\n"]);return C=function(){return n},n}function M(){var n=(0,i.A)(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]);return M=function(){return n},n}function _(){var n=(0,i.A)(["\n display: flex;\n gap: 8px;\n"]);return _=function(){return n},n}function k(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n\n p {\n cursor: pointer;\n color: ",";\n\n &:hover {\n text-decoration: underline;\n }\n }\n\n .separator {\n background-color: ",";\n width: 1px;\n height: 12px;\n margin-right: 8px;\n }\n"]);return k=function(){return n},n}var Y=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-0"})(l()),D=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-1"})(s(),o.M.mbDown),E=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-2"})(d()),I=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-3"})(u()),N=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-4"})(p()),F=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-5"})(f(),o.M.mbDown,(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.white})),z=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-6"})(h(),o.M.mbDown,(function(n){return n.theme.colors.gray500})),S=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-7"})(g()),O=(0,a.Ay)(r.B).withConfig({componentId:"sc-4b85d5f3-8"})(m()),T=(a.Ay.span.withConfig({componentId:"sc-4b85d5f3-9"})(v()),(0,a.Ay)(c.k).withConfig({componentId:"sc-4b85d5f3-10"})(b(),o.M.mbUp,o.M.mbDown)),B=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-11"})(x(),(function(n){return n.theme.colors.neutral50}),o.M.mbUp),L=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-12"})(w(),o.M.mbUp),P=(a.Ay.img.withConfig({componentId:"sc-4b85d5f3-13"})(y()),a.Ay.div.withConfig({componentId:"sc-4b85d5f3-14"})(A())),j=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-15"})(C(),o.M.mbDown,o.M.mbUp),H=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-16"})(M()),R=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-17"})(_()),V=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-18"})(k(),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.gray200}))},89252:function(n,e,t){"use strict";t.d(e,{Yf:function(){return a},ZH:function(){return r},ch:function(){return l},m8:function(){return c}});var i=t(17271),o=t.n(i),r=function(n){return"string"!==typeof n?n:n.charAt(0).toUpperCase()+n.slice(1)},a=function(n,e,t,i){if(n&&e&&t&&i)return o()({lat:t,lon:i},{lat:n,lon:e},{exact:!0,unit:"km"})},c=function(n){return Math.round(10*((parseFloat("".concat(n))||0)+1e-5))/10},l=function(n){return"".concat((null===n||void 0===n?void 0:n.slice(0,5))||"","***")}},76013:function(n,e,t){"use strict";t.d(e,{Ym:function(){return Mn},g8:function(){return te},rI:function(){return Sn},iv:function(){return kn.i},T5:function(){return _n.T},JC:function(){return f}});t(73166);var i=t(73884),o=t(59850),r=t(84091),a=t(32485),c=t.n(a),l=(t(48403),t(22699),t(62862)),s=t(73419),d=t(40959),u=(t(12215),t(36259));t(14662),t(10297),t(95456),t(98797);var p=t(2445),f=function(){return(0,p.Y)("p",{children:"You don't have permission to access this page. Please contact Po!"})},h=t(858),g=t(38971),m=t(24537),v=t(83776),b=t(66079),x=t(35291),w=t(35084),y=t(44835),A=t(50126),C=t(27516),M=t(21171),_=t(74029),k=t(19475),Y=t(21447),D=t(68519),E=t(66298),I=t(1806),N=t(4736),F=t(94334),z=t(2543),S=t(58638),O=t(72946),T=t(7350),B=t.n(T),L=t(6442),P=t(91266),j=t(27317),H=t(45351),R=t(55550),V=t(68289),U=t(2966),G=t.n(U),W=t(4766),q=t(69831);function J(){var n=(0,m.A)(["\n padding: 13px 0px;\n border: 1px solid ",";\n border-radius: 6px;\n width: 100%;\n padding-left: 16px;\n font-weight: normal;\n text-align: start;\n cursor: pointer;\n position: relative;\n z-index: 3;\n background-color: ",";\n\n &::after {\n content: '';\n width: 15px;\n height: 15px;\n background-repeat: no-repeat;\n background-size: 14px;\n background-image: url('/care/bgSvg/arrow-down.svg');\n background-position: center;\n position: absolute;\n right: 15px;\n top: 18px;\n transition: all 0.5s ease;\n transform: rotate(0);\n pointer-events: none;\n }\n\n &.show {\n border-bottom: 0;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n\n &::after {\n transform: rotate(180deg);\n }\n }\n"]);return J=function(){return n},n}function K(){var n=(0,m.A)(["\n div.selectable {\n position: absolute;\n width: 100%;\n border-radius: 6px;\n border: 1px solid ",";\n border-top: 0;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n top: 48px;\n pointer-events: none;\n transition: all 0.5s ease;\n\n &[data-is-static] {\n .pickerOverlayWrapper {\n width: 100%;\n max-width: 100%;\n }\n }\n\n .pickerOverlay {\n margin-top: 0;\n }\n }\n\n .show + div.selectable {\n pointer-events: auto;\n }\n"]);return K=function(){return n},n}function Z(){var n=(0,m.A)(["\n width: 100%;\n margin-bottom: 16px;\n\n .doctor-tabs {\n display: flex;\n justify-content: space-between;\n\n li {\n padding: 8px 0;\n width: 50%;\n height: max-content;\n display: flex;\n justify-content: center;\n margin: 0;\n\n & > div {\n text-align: center;\n p {\n white-space: unset;\n }\n }\n }\n }\n"]);return Z=function(){return n},n}function $(){var n=(0,m.A)(["\n position: absolute;\n background-color: ",";\n padding: 2px 4px;\n border-radius: 2px;\n right: 16px;\n top: 6px;\n"]);return $=function(){return n},n}function Q(){var n=(0,m.A)(["\n display: flex;\n justify-content: flex-end;\n align-items: center;\n margin-top: 20px;\n\n &.has-nearest {\n justify-content: space-between;\n }\n\n .nearest-text {\n color: ",";\n font-size: 14px;\n font-weight: 600;\n line-height: 22px;\n }\n\n .today-btn {\n color: ",";\n font-size: 14px;\n font-weight: 600;\n line-height: 22px;\n cursor: pointer;\n }\n"]);return Q=function(){return n},n}function X(){var n=(0,m.A)(["\n display: flex;\n flex-direction: column;\n gap: 24px;\n margin-bottom: 24px;\n z-index: 10;\n\n "," {\n margin-bottom: 0;\n }\n\n &.sticky-booking-card-show {\n "," {\n position: fixed;\n top: auto !important;\n bottom: 0;\n bottom: 0;\n right: 16px;\n left: 16px;\n }\n\n .sticky-booking-show {\n margin-bottom: 24px;\n "," {\n background: ",";\n margin-bottom: 0;\n\n .service-name {\n display: none;\n }\n .service-info {\n padding: 8px 16px 16px 16px;\n border-top: 1px solid\n ",";\n background: ",";\n border-radius: 0;\n }\n\n .bookingCard {\n border-top: 1px solid\n ",";\n border-radius: 0;\n }\n }\n }\n }\n "," {\n position: initial;\n\n .ad-container {\n display: none;\n }\n }\n\n "," {\n position: initial;\n\n .ad-container {\n display: none;\n }\n }\n"]);return X=function(){return n},n}function nn(){var n=(0,m.A)(["\n background: ",";\n padding: 12px;\n border-radius: 6px;\n\n &.sticky-booking-hide {\n position: absolute;\n opacity: 0;\n }\n\n &.sticky-booking-show {\n display: block;\n position: sticky;\n top: 68px !important;\n z-index: 10;\n\n "," {\n padding: 0;\n }\n }\n\n "," {\n margin-left: -16px;\n margin-right: -16px;\n border-radius: 0;\n }\n\n .description-price {\n ol {\n li {\n list-style-type: decimal;\n }\n }\n\n ul {\n li {\n list-style-type: disc;\n }\n }\n\n strong {\n font-weight: bold;\n }\n em {\n font-style: italic;\n }\n\n ol,\n ul {\n padding-left: 16px;\n strong {\n font-weight: bold;\n }\n em {\n font-style: italic;\n }\n }\n }\n\n .booking-info-header {\n margin-bottom: 16px;\n\n "," {\n display: none;\n }\n .booking-info-row {\n display: flex;\n gap: 8px;\n\n svg {\n flex: 0 0 20px;\n }\n }\n\n .booking-info-row-text {\n color: ",";\n font-size: 14px;\n font-weight: 400;\n line-height: 22px;\n }\n }\n"]);return nn=function(){return n},n}function en(){var n=(0,m.A)(["\n display: flex;\n flex-direction: column;\n flex: 1;\n position: relative;\n"]);return en=function(){return n},n}var tn=j.Ay.button.withConfig({componentId:"sc-1c7d1da7-0"})(J(),(function(n){return n.theme.colors.neutral100}),(function(n){return n.theme.colors.white})),on=(0,j.Ay)(q.Sp).withConfig({componentId:"sc-1c7d1da7-1"})(K(),(function(n){return n.theme.colors.neutral100})),rn=j.Ay.div.withConfig({componentId:"sc-1c7d1da7-2"})(Z()),an=j.Ay.div.withConfig({componentId:"sc-1c7d1da7-3"})($(),(function(n){return n.theme.colors.green500})),cn=j.Ay.div.withConfig({componentId:"sc-1c7d1da7-4"})(Q(),(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.colors.blue600})),ln=j.Ay.div.withConfig({componentId:"sc-1c7d1da7-5"})(X(),W.M.mbDown,W.M.mbDown,W.M.mbDown,(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.neutral100}),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.neutral100}),W.M.tdDown,W.M.mbDown),sn=j.Ay.div.withConfig({componentId:"sc-1c7d1da7-6"})(nn(),(function(n){return n.theme.colors.blue50}),W.M.mbDown,W.M.mbDown,W.M.mbDown,(function(n){return n.theme.colors.gray800})),dn=j.Ay.div.withConfig({componentId:"sc-1c7d1da7-7"})(en()),un=t(21336),pn=t(20607),fn=t(40224),hn=t(47055),gn=t(40630),mn=t(71584),vn=t(57656),bn=t(80783),xn=t(79951),wn=t(71082),yn=t(38431);function An(){var n=(0,m.A)(["\n body { \n .woot-widget-bubble.woot-widget--expanded {\n bottom: 24px;\n } \n }\n"]);return An=function(){return n},n}var Cn=(0,j.DU)(An()),Mn=function(n){var e,t=n.className,a=n.serviceInfo,f=n.doctorInfo,m=n.schedules,T=n.isLoading,j=n.chosenDate,U=n.firstDayHasSlot,W=n.isMobile,q=n.isStickyBtn,J=n.rangeDaysPicked,K=n.type,Z=n.isTeleMedicine,$=void 0!==Z&&Z,Q=n.price,X=n.originalPrice,nn=n.priceType,en=n.priceTo,An=n.validTelemedicine,Mn=n.validOutpatient,_n=n.description,kn=n.doctorId,Yn=n.serviceId,Dn=n.frisoCampaign,En=void 0!==Dn&&Dn,In=n.bufferTime,Nn=void 0===In?0:In,Fn=n.isSiloam,zn=void 0!==Fn&&Fn,Sn=n.address,On=n.adUnitPath,Tn=n.showAdMid,Bn=n.showAdTop,Ln=n.vouchers,Pn=n.isValidTanganil,jn=void 0!==Pn&&Pn,Hn=n.onSelectedTimeCallback,Rn=n.onChangeChosenDate,Vn=n.onContinueBooking,Un=n.onChangePicker,Gn=n.setTeleMedicine,Wn=function(n){setTimeout((function(){requestAnimationFrame((function(){var e=nt.current;if(e){var t,i;if(W&&n)null===Qn||void 0===Qn||null===(t=Qn.current)||void 0===t||null===(i=t.scrollIntoView)||void 0===i||i.call(t,{behavior:"smooth",block:"nearest",inline:"center"});setTimeout((function(){var n,t=e.querySelector('[data-is-day-active="true"]');null===t||void 0===t||null===(n=t.scrollIntoView)||void 0===n||n.call(t,{behavior:"smooth",block:"nearest",inline:"center"})}),W&&n?700:0)}}))}),200)},qn=(0,N.useAppContext)().state,Jn=(0,i.useContext)(u.B).pushNotifications,Kn=(0,S.I)({id:"booking-scroll-top-trigger",heightHeader:W?0:65}).isTopSticky,Zn=(0,F.m)({serviceInfo:a,doctorInfo:f}),$n=(0,O.o)().isValidOnboarding,Qn=(0,i.useRef)(null),Xn=(0,i.useRef)(null),ne=(0,i.useRef)(null),ee=(0,i.useState)(!1),te=ee[0],ie=ee[1],oe=(0,i.useState)(void 0),re=oe[0],ae=oe[1],ce=(0,L.A)().formatMessage,le=(0,s.$)(),se=le.locale,de=le.asPath,ue=(0,i.useState)(!1),pe=ue[0],fe=ue[1],he=(0,i.useState)(0),ge=he[0],me=he[1],ve=(0,i.useState)(!0),be=ve[0],xe=ve[1],we=(0,i.useState)(!1),ye=we[0],Ae=we[1],Ce=(0,i.useState)(!1),Me=Ce[0],_e=Ce[1],ke=(0,i.useState)(!1),Ye=ke[0],De=ke[1],Ee=(0,i.useState)(!1),Ie=Ee[0],Ne=Ee[1],Fe=(0,i.useState)(!1),ze=Fe[0],Se=Fe[1],Oe=(0,i.useState)(!1),Te=Oe[0],Be=Oe[1],Le=(0,i.useState)(!1),Pe=Le[0],je=Le[1],He=(0,i.useState)([]),Re=He[0],Ve=He[1],Ue=(0,i.useState)([]),Ge=Ue[0],We=Ue[1],qe=(0,i.useState)([]),Je=qe[0],Ke=qe[1],Ze=(0,i.useState)([]),$e=Ze[0],Qe=Ze[1],Xe=(0,i.useRef)(0),nt=(0,i.useRef)(null),et=function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=(0,i.useState)("start"),r=o[0],a=o[1],c="vertical"===e?"scrollTop":"scrollLeft",l="vertical"===e?"scrollHeight":"scrollWidth",s="vertical"===e?"clientHeight":"clientWidth";return(0,i.useEffect)((function(){var e,i=function(){n.current&&(0===n.current[c]?a("start"):n.current[c]+n.current[s]===n.current[l]?a("end"):a("mid"))},o=(0,z.throttle)(i,t);return null===(e=n.current)||void 0===e||e.addEventListener("scroll",o),i(),function(){var e;null===(e=n.current)||void 0===e||e.removeEventListener("scroll",o)}}),[n.current]),{scrollPosition:r,scrollable:n.current?n.current[l]>n.current[s]:null}}(nt,"horizontal"),tt=et.scrollPosition,it=et.scrollable,ot=(0,hn.A)(),rt=ot.message,at=ot.updateMessage,ct=(0,i.useMemo)((function(){return"doctor"===K?$?"Telemedicine - Continue Booking Click":"Outpatient - Continue Booking Click":"Continue Booking Click"}),[K,$]),lt=function(n,e){return!(0,Y.A)(n)||(0,D.A)(new Date("".concat((0,E.A)(n,"yyyy/MM/dd")," ").concat(e)))-(0,D.A)(new Date)>=0},st=(0,E.A)(new Date,"y-M-dd");(0,l.j)(Qn,(function(){ie(!1)}));(0,i.useEffect)((function(){!function(){var n,e,t;Ae(!0);var i=(0,E.A)(j,"yyyy-MM-dd"),o=(0,_.wW)(null===(n=m.find((function(n){return n.workingDay===i})))||void 0===n?void 0:n.workingTimes.morning,[]),r=(0,_.wW)(null===(e=m.find((function(n){return n.workingDay===i})))||void 0===e?void 0:e.workingTimes.afternoon,[]),a=(0,_.wW)(null===(t=m.find((function(n){return n.workingDay===i})))||void 0===t?void 0:t.workingTimes.evening,[]);Ve(o),We(r),Ke(a),o.length>0?(Qe(o),me(0)):r.length>0?(Qe(r),me(1)):a.length>0?(Qe(a),me(2)):(Qe(o),me(0)),fe(!1),Ae(!1)}(),Wn(Pe)}),[j,m,W,Pe]);var dt=function(n){var e=n.workingTimes;return(0,_.wW)(e.morning,[]).filter((function(e){return lt(new Date(n.workingDay),e.started)})).length+(0,_.wW)(e.afternoon,[]).filter((function(e){return lt(new Date(n.workingDay),e.started)})).length+(0,_.wW)(e.evening,[]).filter((function(e){return lt(new Date(n.workingDay),e.started)})).length},ut=function(n){if(!n)return!1;var e=new Date("".concat((0,E.A)(j,"yyyy/MM/dd")," ").concat(n.started)),t=new Date,i=d.PcP*Nn;return!(e.getTime()<=t.getTime()+i)},pt=(0,i.useMemo)((function(){var n;return!!qn.userInfo&&(null===(n=qn.userInfo.email)||void 0===n?void 0:n.includes("@facebook.com"))}),[qn.userInfo]),ft=(0,i.useMemo)((function(){return!!jn||!zn&&Number(Q)>0}),[zn,Q,jn]),ht=(0,i.useMemo)((function(){var n=(0,E.A)(j,"yyyy-MM-dd");return(null===U||void 0===U?void 0:U.getTime())===(0,I.A)(n).getTime()}),[j,U]),gt=(0,i.useMemo)((function(){return m.length?new Date(m[m.length-1].workingDay):new Date}),[m]),mt=(0,i.useMemo)((function(){var n;return Kn&&Xn?(null===(n=Xn.current)||void 0===n?void 0:n.clientHeight)||0:80}),[Kn,Xn]),vt=(0,i.useCallback)(B()((function(n,e,t,i,o){(Math.abs(t-n.clientX)<50||W)&&(i(new Date(e.workingDay)),o(void 0))}),500),[]),bt=function(n){var e=n.smallSpacing,t=n.type;return(0,p.FD)("div",{className:c()(G().noResults,e?G().noResultsSmall:void 0),"data-is-part-of-day":"partOfDay"===t,children:[(0,p.Y)(bn.A,{}),(0,p.Y)(b.T,{size:"sm",color:x.w.colors.gray500,children:ce("partOfDay"===t?{id:"bookingCard.chooseAnotherTime",defaultMessage:"Choose another Time of the Day"}:{id:"bookingCard.slot.noResults",defaultMessage:"There is no available booking slot this day"})})]})},xt=m.length<1&&!T,wt=function(){var n=(0,h.A)((function(){var n,e,t,i,a,c;return(0,v.__generator)(this,(function(l){switch(l.label){case 0:return ut(re)?(Be(!0),!qn.isLoggedIn&&En?(n=(0,r.sT)("".concat(d.JpE).concat(de),"care_onboarding"),d.dXu?M.u.getState().triggerCareEmailPhoneVerify({source:"care_onboarding"}):window.location.href=n,[2]):re?[3,1]:(fe(!1),Be(!1),W&&(null===(e=nt.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})),[3,4])):(Kn&&window.scrollTo({top:0,left:0,behavior:"smooth"}),Jn({message:ce({id:"error.invalid.timeSlot",defaultMessage:"The slot is not available. Please select the time greater than {bufferTime}."},{bufferTime:null===re||void 0===re?void 0:re.started}),type:"danger"}),[2]);case 1:return $&&En?(t="?doctorId=".concat(kn,"&date=").concat((0,E.A)(j,d.cuM),"&scheduleId=").concat(re.schedule_id,"&telemedicine=").concat($||""),i="".concat(de).concat(t),d.dXu?qn.isLoggedIn&&$n?[4,(0,r.T7)((0,r.er)(o.R.GET_FRISO_VALIDATION,{booking_type:"doctor",doctor_id:kn||""}),"GET")]:(M.u.getState().triggerCareEmailPhoneVerify({returnUrl:"".concat(d.JpE).concat(i),source:"care_onboarding"}),Be(!1),[2]):(a=(0,r.sT)("".concat(d.JpE).concat(i),"care_onboarding"),window.location.href=a,[2])):[3,3];case 2:return c=l.sent(),at(c._data),De(!0),Se(c._data.valid),Be(!1),[3,4];case 3:Be(!1),Vn&&Vn(re),l.label=4;case 4:return[2]}}))}));return function(){return n.apply(this,arguments)}}(),yt=function(){De(!1)},At=function(){Kn&&window.scrollTo({top:0,left:0,behavior:"smooth"}),U&&(Rn(U),ae(void 0),xe(!0),W&&je(!0))},Ct=function(n){nt.current&&(nt.current.scrollLeft+=n)};(0,i.useEffect)((function(){!Mn&&An&&Gn&&Gn(!0)}),[]);var Mt=[];Mn&&Mt.push({name:ce({id:"doctorDetailPage.appointment.outpatient",defaultMessage:"Outpatient Appointment"})}),An&&Mt.push({name:ce({id:"doctorDetailPage.appointment.telemedicine",defaultMessage:"Telemedicine Appointment"})});var _t;return(0,i.useEffect)((function(){m&&m.length&&xe(0!==dt(m[0]))}),[m]),(0,i.useEffect)((function(){if(!W&&nt.current){var n,e,t=!1,i=nt.current;null===i||void 0===i||i.addEventListener("mousedown",(function(o){Xe.current=o.clientX,t=!0,n=o.pageX-i.offsetLeft,e=i.scrollLeft})),window.addEventListener("mouseup",(function(){t=!1})),null===i||void 0===i||i.addEventListener("mousemove",(function(o){if(t){o.preventDefault();var r=o.pageX-i.offsetLeft-n;Math.abs(r)>100&&(i.scrollLeft=e-r)}}))}}),[nt.current]),(0,i.useEffect)((function(){Hn&&Hn(re)}),[re]),(0,i.useEffect)((function(){if(U&&!(0,Y.A)(new Date(U))){var n=m.find((function(n){return(0,I.A)(n.workingDay).getTime()===U.getTime()}));n&&(Rn(new Date(U)),ae(void 0),xe(0!==dt(n)))}}),[U,m]),(0,i.useEffect)((function(){var n=document.querySelector(".woot-widget--expanded");if(n&&ne)if(Kn&&q&&W){var e,t=null===ne||void 0===ne||null===(e=ne.current)||void 0===e?void 0:e.clientHeight;n&&t&&(n.style.bottom="".concat(t+10,"px"))}else n.style.bottom="24px"}),[Kn,q,W,ne]),(0,p.FD)(p.FK,{children:[(0,p.Y)(ln,{style:{zIndex:20},children:(0,p.FD)(sn,{children:[(0,p.FD)("div",{className:"booking-info-header",children:[(0,p.FD)("div",{className:"mb-[8px]",children:[(0,p.Y)("h3",{className:G().bookingHeading,children:ce({id:"hospital.bookAnAppointment",defaultMessage:"Book an appointment"})}),_n&&(0,p.Y)(b.T,{size:"p4",color:x.w.colors.gray800,className:"description-price",children:(0,p.Y)("div",{dangerouslySetInnerHTML:{__html:_n}})})]}),Sn&&(0,p.FD)("div",{className:"booking-info-row",children:[(0,p.Y)(yn.A,{style:{marginTop:"3px"}}),(0,p.Y)("div",{className:"booking-info-row-text",children:Sn})]})]}),(0,p.FD)("div",{className:c()(G().oBookingCard,t),children:["doctor"===K&&(0,p.FD)(p.FK,{children:[An&&(0,p.Y)(an,{children:(0,p.Y)(b.T,{size:"n1",type:"bold",color:"white",children:ce({id:"doctorDetailPage.appointment.new",defaultMessage:"New"})})}),2===Mt.length?(0,p.Y)(rn,{children:(0,p.Y)(w.T,{className:"doctor-tabs",initialTab:0,tabContent:Mt,style:{paddingLeft:0},onChange:function(n){Un(new Date),Gn&&Gn(!!n),ae(void 0),nt.current&&(nt.current.scrollLeft=0),Ie&&Ne(!1)}})}):(0,p.Y)(y.H,{tag:"h5",className:"my-[8px]",children:null!==(_t=null===Mt||void 0===Mt||null===(e=Mt[0])||void 0===e?void 0:e.name)&&void 0!==_t?_t:ce({id:"doctorDetailPage.appointment.outpatient",defaultMessage:"Outpatient Appointment"})})]}),(0,p.FD)("div",{className:G().cardInner,"data-is-shown-picker":te,children:[(0,p.FD)(on,{ref:Qn,children:[(0,p.Y)(tn,{className:c()({show:te}),onClick:function(){return ie(!te)},children:J.length>0&&"".concat((0,V.og)(J[0],se)," - ").concat((0,V.og)(J[1],se))}),te&&(0,p.Y)(w.D,{onChange:function(n){var e=(0,E.A)(n,"yyyy-MM-dd"),t=m.find((function(n){return(0,I.A)(n.workingDay).getTime()===(0,I.A)(e).getTime()}));t&&(Rn(new Date(t.workingDay)),ae(void 0),xe(0!==dt(t)),ie(!1))},className:"selectable",customInput:function(){return null},disabledDays:{before:new Date,after:gt},pickedDate:j,modifiers:{start:j,end:j},locale:se,isStatic:!0,alignRight:!1,UnHideOnClickOutside:!0})]}),(0,p.FD)(cn,{className:"".concat(ht?"has-nearest":""),children:[ht&&(0,p.Y)("div",{className:"nearest-text",children:ce({id:"bookingCard.nearestAvaliable",defaultMessage:"Nearest availabilities"})}),(0,p.Y)("div",{className:"today-btn",onClick:function(){m&&m.length&&(Rn(new Date(m[0].workingDay)),ae(void 0),xe(0!==dt(m[0])))},children:ce({id:"admin.home.filter.today",defaultMessage:"Today"})})]}),xt?bt({smallSpacing:!1,type:"all"}):(0,p.FD)(p.FK,{children:[(0,p.Y)("div",{className:G().dateWrapper,children:(0,p.FD)("div",{className:c()(G().dateBlocks),ref:nt,id:"dateBlocksGroup",children:[!W&&it&&(0,p.Y)("button",{onClick:function(){return Ct(-282)},className:G().scrollButton,"aria-label":"Scroll back","aria-disabled":"start"===tt,children:(0,p.Y)(un.h,{iconSize:16,svgIcon:{stroke:"start"!==tt?x.w.colors.gray600:x.w.colors.gray200},children:(0,p.Y)(xn.A,{})})}),ye?(0,p.Y)(p.FK,{children:(0,p.Y)(k.xA,{columns:3,columnsDesktop:3,gap:"8px",children:Array(3).fill(null).map((function(n,e){return(0,p.Y)(P.A,{width:86,height:68},e)}))})}):m.map((function(n){return n&&(0,p.FD)("div",{onClick:function(e){vt(e,n,Xe.current,Rn,ae),Wn(),xe(0!==dt(n)),me(0),je(!1)},className:c()(G().dateBlock),"data-is-day-active":n.workingDay===(0,E.A)(j,d.cuM)||void 0,"data-is-telemedicine":$,role:"button",tabIndex:0,children:[(0,p.Y)(b.T,{size:"n1",color:x.w.colors.gray600,children:st.toString()===n.workingDay?ce({id:"admin.home.filter.today",defaultMessage:"Today"}):(0,E.A)((0,I.A)(n.workingDay)," E ",{locale:H.tV[se]})}),(0,p.Y)(b.T,{size:"p3",type:"bold",children:(0,E.A)((0,I.A)(n.workingDay),"d/L",{locale:H.tV[se]})}),(0,p.Y)("span",{"data-has-availability":!!n.workingTimes,children:(0,p.Y)(b.T,{size:"n1",className:0===dt(n)?G().noSlot:G().available,children:dt(n)+" "+"".concat(ce({id:"bookingCard.slots",defaultMessage:"slots"}))})})]},n.workingDay)})),!W&&it&&(0,p.Y)("button",{onClick:function(){return Ct(282)},className:c()(G().scrollButton,G().next),"aria-label":"Scroll forward","aria-disabled":"end"===tt,children:(0,p.Y)(un.h,{iconSize:16,svgIcon:{stroke:"end"!==tt?x.w.colors.gray600:x.w.colors.gray200},children:(0,p.Y)(wn.A,{})})})]})}),(0,p.Y)("div",{className:c()(G().times),children:function(){var n=!!(null===Re||void 0===Re?void 0:Re.length),e=!!(null===Ge||void 0===Ge?void 0:Ge.length),t=!!(null===Je||void 0===Je?void 0:Je.length);if(!T&&!n&&!e&&!t)return bt({smallSpacing:!0,type:"day"});var i=c()(G().timeframes),o=c()(G().time,(0,g.A)({},G().timeError,!pe||void 0));return(0,p.FD)(p.FK,{children:[(0,p.Y)(rn,{children:(0,p.Y)(w.T,{className:"doctor-tabs",initialTab:ge,tabContent:[{name:"".concat(ce({id:"bookingCard.morning",defaultMessage:"Morning"})," ").concat((null===Re||void 0===Re?void 0:Re.length)?"(".concat(null===Re||void 0===Re?void 0:Re.length,")"):"")},{name:"".concat(ce({id:"bookingCard.afternoon",defaultMessage:"Afternoon"})," ").concat((null===Ge||void 0===Ge?void 0:Ge.length)?"(".concat(null===Ge||void 0===Ge?void 0:Ge.length,")"):"")},{name:"".concat(ce({id:"bookingCard.evening",defaultMessage:"Evening"})," ").concat((null===Je||void 0===Je?void 0:Je.length)?"(".concat(null===Je||void 0===Je?void 0:Je.length,")"):"")}],onChange:function(n){switch(n){case 0:default:Qe(Re),me(0);break;case 1:Qe(Ge),me(1);break;case 2:Qe(Je),me(2)}},style:{paddingLeft:0}})}),(0,p.Y)("div",{className:i,"data-is-no-slot":!T&&!$e.length,role:"group",children:T?Array(6).fill(null).map((function(n,e){return(0,p.Y)(P.A,{height:36},e)})):$e.length?null===$e||void 0===$e?void 0:$e.map((function(n,e){return(0,p.FD)("div",{className:o,onClick:function(){ut(n)?(ae(n),fe(!0),re||Ie||!pt||(_e(!0),Ne(!0))):Jn({message:ce({id:"error.invalid.timeSlot",defaultMessage:"The slot is not available. Please select the time greater than {bufferTime}."},{bufferTime:n.started}),type:"danger"})},"data-is-time-active":re===n||void 0,"data-is-telemedicine":$,"aria-pressed":re===n||void 0,role:"button",tabIndex:0,onKeyPress:function(e){return function(n,e){"Enter"===n&&(ae(e),fe(!0))}(e.key,n)},children:[n.started," - ",n.ended]},e)})):bt({smallSpacing:!1,type:"partOfDay"})})]})}()})]})]}),(0,p.FD)("div",{className:c()(G().buttonWrapper),children:[q&&(0,p.Y)(Cn,{}),(0,p.Y)(R.A,{vouchers:Ln,allowPaymentMethods:Zn}),ft&&(0,p.Y)(mn.S,{price:Q,priceType:nn,priceTo:en,originalPrice:X,frisoCampaign:En,className:"mb-[8px] !mt-[0px]"}),be?(0,p.Y)(A.B,{size:"md",color:"primary",className:c()(G().button,"button-continue-booking"),onClick:wt,dataEventCategory:"Care",dataEventAction:ct,dataEventLabel:"https://".concat(C.y[se]).concat(d.JpE).concat(de),isLoading:Te,children:ce({id:"bookingCard.continueBooking",defaultMessage:"Continue Booking"})}):(0,p.Y)(A.B,{size:"md",color:"primary",className:c()(G().button,"button-continue-booking"),onClick:At,dataEventCategory:"Care",dataEventAction:"Soonest Available Schedule Click",dataEventLabel:"https://".concat(C.y[se]).concat(d.JpE).concat(de),children:ce({id:"bookingCard.seeNearest",defaultMessage:"See nearest availabilities"})})]}),(0,p.Y)(gn.A,{open:Me,onContinueBooking:function(){_e(!1)},handleOnClose:function(){return _e(!1)}}),(0,p.Y)(fn.A,{open:Ye,message:rt,handleOnClose:yt,handleOnOk:function(){ze&&re?Vn&&Vn(re):yt()}})]}),(0,p.Y)("div",{id:"booking-scroll-top-trigger",style:{height:"1px",width:"100%"}})]})}),(0,p.Y)(ln,{className:"sticky-booking-card flex-[1] ".concat(Kn?"sticky-booking-card-show":""),children:(0,p.FD)(dn,{children:[(0,p.FD)(sn,{className:"".concat(Kn&&(q&&W||!W)?"sticky-booking-show":"sticky-booking-hide"," "),ref:Xn,children:[(0,p.Y)("div",{className:"booking-info-header",children:(0,p.Y)("div",{className:"mb-[8px]",children:(0,p.Y)("h3",{className:G().bookingHeading,children:ce({id:"hospital.bookAnAppointment",defaultMessage:"Book an appointment"})})})}),(0,p.FD)("div",{className:c()(G().oBookingCard,t),ref:ne,children:[(0,p.Y)(R.A,{vouchers:Ln,allowPaymentMethods:Zn,className:"!mb-[8px]"}),(0,p.FD)("div",{children:[ft&&(0,p.Y)(mn.S,{price:Q,priceType:nn,priceTo:en,frisoCampaign:En,originalPrice:X,className:"mb-[8px] !mt-[0px]"}),be?(0,p.Y)(A.B,{size:"md",color:"primary",className:c()(G().button,"button-continue-booking !w-[100%] !m-[0px]"),onClick:wt,dataEventCategory:"Care",dataEventAction:ct,dataEventLabel:"https://".concat(C.y[se]).concat(d.JpE).concat(de),isLoading:Te,children:ce({id:"bookingCard.continueBooking",defaultMessage:"Continue Booking"})}):(0,p.Y)(A.B,{size:"md",color:"primary",className:c()(G().button,"button-continue-booking !w-[100%] !m-[0px]"),onClick:At,dataEventCategory:"Care",dataEventAction:"Soonest Available Schedule Click",dataEventLabel:"https://".concat(C.y[se]).concat(d.JpE).concat(de),children:ce({id:"bookingCard.seeNearest",defaultMessage:"See nearest availabilities"})})]})]})]}),!W&&(0,p.FD)(p.FK,{children:[Bn&&(0,p.Y)(vn.U7,{className:"!mt-[0px] !mb-[0px]",style:{flex:2.5,marginBottom:24},children:(0,p.Y)(pn.z,{className:"ad-container",adUnitPath:On||"",size:[[300,250],[300,600]],divId:"ad-service-desktop-top-banner",pos:["TopBanner"],adDefaultSize:[300,250],style:{top:mt+92,position:Kn?"sticky":"initial"},customTargetings:{Service_ID:Yn?[Yn]:"",Doctor_ID:kn?[kn]:""}})}),Tn&&(0,p.Y)(vn.U7,{children:(0,p.Y)(pn.z,{className:"ad-container",adUnitPath:On||"",size:[300,250],divId:"ad-service-desktop-mid-banner1",pos:["MidBanner1"],adDefaultSize:[300,250],style:{top:mt+92,position:Kn?"sticky":"initial"},customTargetings:{Service_ID:Yn?[Yn]:"",Doctor_ID:kn?[kn]:""}})})]})]})})]})},_n=t(10699),kn=t(45638);function Yn(){var n=(0,m.A)(["\n width: 100%;\n padding: 1rem;\n background: white;\n border-radius: 6px;\n box-shadow: 0px 5px 12px rgba(40, 74, 117, 0.08);\n"]);return Yn=function(){return n},n}function Dn(){var n=(0,m.A)(["\n border-width: 1px 0;\n border-style: dashed;\n border-color: #e4e8ec;\n > * > [data-tag='h4'] {\n color: var(--secondaryBase);\n font-size: 11px;\n text-transform: uppercase;\n }\n\n .hospitalCard__services {\n display: grid;\n margin: 8px 0;\n grid-gap: 8px;\n grid-template-columns: 1fr 1fr;\n\n > * {\n font-size: 14px;\n }\n\n > :nth-child(odd) {\n color: var(--gray500);\n }\n\n > :nth-child(even) {\n font-weight: var(--fwSemiBold);\n text-align: end;\n }\n }\n"]);return Dn=function(){return n},n}function En(){var n=(0,m.A)(["\n display: flex;\n padding-bottom: 16px;\n\n .hospitalCard__row {\n display: flex;\n align-items: center;\n }\n\n .icon-center {\n margin: 0 6px;\n }\n\n .icon-start {\n margin-right: 11px;\n }\n\n > img {\n width: 72px;\n height: 72px;\n border: 1px solid ",";\n margin-right: 8px;\n border-radius: 6px;\n object-fit: contain;\n }\n\n > figcaption {\n > * + * {\n margin-top: 8px;\n }\n }\n"]);return En=function(){return n},n}function In(){var n=(0,m.A)(["\n --button-size: 40px;\n display: grid;\n margin-top: 16px;\n grid-gap: 12px;\n grid-template-columns: auto var(--button-size);\n\n .hospitalCard__callButton {\n display: flex;\n width: var(--button-size);\n height: var(--button-size);\n align-items: center;\n justify-content: center;\n background: var(--primaryBase);\n border-radius: calc(var(--button-size) / 2);\n }\n\n .hospitalCard__book {\n font-size: 14px;\n }\n"]);return In=function(){return n},n}j.Ay.article.withConfig({componentId:"sc-dda43ea1-0"})(Yn()),j.Ay.div.withConfig({componentId:"sc-dda43ea1-1"})(Dn()),j.Ay.figure.withConfig({componentId:"sc-dda43ea1-2"})(En(),(function(n){return n.theme.colors.neutral100})),j.Ay.footer.withConfig({componentId:"sc-dda43ea1-3"})(In());var Nn=t(6049),Fn=t(34763),zn=t.n(Fn),Sn=function(n){var e,t=n.className,i=n.isShowing,o=n.onClose,r=n.onAccept,a=n.onDeny,l=n.title,s=n.caption,d=n.closeIcon,u=n.isLoading,f=n.acceptButtonTitle,h=n.denyButtonTittle,m=n.errorMessages,v=n.switchCTA,w=n.justifyContent,C=void 0===w?"between":w,M=n.buttonsProps,_=n.hideGroupBtn,k=void 0!==_&&_,Y=n.isHeaderText,D=void 0===Y||Y;return(0,p.Y)(Nn.M,{type:"confirm",isOpen:i,onClose:o,className:t,closeIcon:d,children:(0,p.FD)("div",{className:zn().contentPopup,children:[D&&(0,p.Y)(y.H,{tag:"h4",className:zn().content,children:l||"Are you sure to delete this patients info"}),(0,p.Y)(b.T,{size:"base",className:zn().content,color:x.w.colors.red500,children:null===m||void 0===m?void 0:m.content}),(0,p.Y)(b.T,{size:"base",className:zn().content,children:s||"We cannot restore it after it has been already declared"}),!k&&(0,p.FD)("div",{className:c()(zn().buttonRow,(e={},(0,g.A)(e,zn().buttonRowCenter,"center"===C),(0,g.A)(e,zn().buttonRowBetween,"between"===C),(0,g.A)(e,zn().reverseButton,null===M||void 0===M?void 0:M.reverseButton),(0,g.A)(e,zn().buttonFillWidth,null===M||void 0===M?void 0:M.buttonFillWidth),e)),children:[(0,p.Y)(A.B,{isLoading:u,color:v?"secondary":"primary",size:(null===M||void 0===M?void 0:M.buttonSize)||"sm",onClick:r,children:f||"Yes, Delete"}),(0,p.Y)(A.B,{isDisabled:!v&&u,isLoading:!!v&&u,color:v?"primary":"secondary",size:(null===M||void 0===M?void 0:M.buttonSize)||"sm",onClick:a,children:h||"No, keep it"})]})]})})},On=(t(19956),t(53513)),Tn=t(63538),Bn=t(92151),Ln=t(74121),Pn=t(73827),jn=t(41145);function Hn(n,e){var t=e.limit,o=void 0===t?10:t,r=e.delay,a=void 0===r?300:r,c=(0,i.useState)(1),l=c[0],s=c[1],d=(0,i.useState)(!1),u=d[0],p=d[1],f=n.length;(0,i.useEffect)((function(){s(1)}),[n]);var h=n.slice(0,o*l);return{total:f,data:h,currentPage:l,handleMore:function(){p(!0),setTimeout((function(){s((function(n){return n+1})),p(!1)}),a)},isMore:h.length div {\n padding: 8px;\n padding-right: 36px;\n } */\n }\n\n > div {\n display: flex;\n }\n\n .upload-dropdown {\n width: 150px;\n margin-right: 4px;\n cursor: pointer;\n\n ul {\n z-index: 9;\n }\n }\n\n "," {\n .dropdown-menu {\n [class*='StyledKebab'] {\n justify-content: flex-end;\n }\n }\n }\n"]);return l=function(){return n},n}function s(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n\n > * {\n margin-right: 16px;\n\n "," {\n &:last-child {\n margin-right: 0;\n }\n }\n }\n .input-search {\n input {\n min-width: 180px;\n height: 40px;\n }\n }\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n table :is(td:first-child, th:first-child) {\n width: 40%;\n }\n\n table :is(td:nth-child(2), th:nth-child(2)) {\n width: 10%;\n }\n\n table :is(td:nth-child(3), th:nth-child(3)) {\n width: 15%;\n }\n\n table :is(td:nth-child(4), th:nth-child(4)) {\n width: 10%;\n }\n\n table :is(td:nth-child(5), th:nth-child(5)) {\n width: 10%;\n }\n\n table :is(td:nth-child(6), th:nth-child(6)) {\n width: 10%;\n }\n\n table :is(td:nth-child(7), th:nth-child(7)) {\n width: 5%;\n }\n"]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n\n img {\n margin-right: 16px;\n }\n"]);return u=function(){return n},n}function p(){var n=(0,i.A)([""]);return p=function(){return n},n}function f(){var n=(0,i.A)(["\n display: flex;\n\n &[class] thead > tr > th {\n top: 64px;\n }\n"]);return f=function(){return n},n}function h(){var n=(0,i.A)(["\n display: flex;\n justify-content: flex-end;\n padding: 16px;\n\n "," {\n padding: 24px;\n justify-content: center;\n }\n\n "," {\n padding-left: 16px;\n padding-right: 16px;\n }\n"]);return h=function(){return n},n}function g(){var n=(0,i.A)(["\n display: flex;\n min-height: 50%;\n\n &.disabled-edit {\n .setting-panel,\n .setting-schedule {\n opacity: 0.5;\n pointer-events: none;\n }\n }\n\n "," {\n flex-wrap: wrap;\n }\n"]);return g=function(){return n},n}function m(){var n=(0,i.A)(["\n width: 30%;\n max-width: 400px;\n padding: 24px;\n border-right: 1px solid\n ",";\n "," {\n padding: 24px;\n width: 40%;\n }\n "," {\n width: 100%;\n border-right: none;\n padding: 24px 16px;\n max-width: 100%;\n }\n .title {\n margin-top: 12px;\n margin-bottom: 10px;\n color: ",";\n font-size: 14px;\n line-height: 22px;\n }\n label {\n font-size: 14px;\n }\n .range-selection {\n margin-top: 8px;\n input {\n margin-top: 8px;\n }\n label {\n margin-top: 5px;\n }\n\n & > div {\n width: 100%;\n margin-right: 0;\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n }\n .heading {\n margin-top: 40px;\n }\n .time-selection {\n label {\n //margin-right: 36px;\n }\n }\n"]);return m=function(){return n},n}function v(){var n=(0,i.A)(["\n position: relative;\n\n .selectable {\n position: absolute;\n z-index: 1;\n left: 0;\n top: 100%;\n }\n .selectable\n .DayPicker-Day--selected:not(.DayPicker-Day--start):not(.DayPicker-Day--end):not(.DayPicker-Day--outside) {\n background-color: "," !important;\n color: #4a90e2;\n }\n .selectable .DayPicker-Day {\n border-radius: 0 !important;\n }\n .selectable .DayPicker-Day--start {\n border-bottom-left-radius: 50% !important;\n border-top-left-radius: 50% !important;\n }\n .selectable .DayPicker-Day--end {\n border-bottom-right-radius: 50% !important;\n border-top-right-radius: 50% !important;\n }\n"]);return v=function(){return n},n}function b(){var n=(0,i.A)(["\n max-width: 340px;\n margin-top: 8px;\n"]);return b=function(){return n},n}function x(){var n=(0,i.A)(["\n padding: 24px;\n flex: 1;\n "," {\n width: 100%;\n padding: 24px 16px;\n }\n .toggle-value {\n margin-top: 6px;\n margin-left: 10px;\n font-size: 14px;\n font-weight: 600;\n }\n .disabled {\n background-color: ",";\n }\n .active {\n background-color: #f7f9fc;\n }\n .title {\n margin-top: 8px;\n margin-bottom: 16px;\n color: ",";\n font-size: 14px;\n line-height: 22px;\n }\n"]);return x=function(){return n},n}function w(){var n=(0,i.A)(["\n width: 60%;\n margin: 40px auto;\n "," {\n width: 100%;\n padding-left: 16px;\n padding-right: 16px;\n }\n .btn_link {\n display: flex;\n cursor: pointer;\n svg {\n margin-right: 8px;\n }\n .link {\n font-size: 14px;\n }\n }\n .small_title {\n margin-top: 8px;\n font-size: 12px;\n }\n"]);return w=function(){return n},n}function y(){var n=(0,i.A)(["\n display: flex;\n justify-content: space-between;\n"]);return y=function(){return n},n}function A(){var n=(0,i.A)([""]);return A=function(){return n},n}function C(){var n=(0,i.A)(["\n display: flex;\n margin-bottom: 10px;\n div {\n display: flex;\n margin-left: 16px;\n }\n"]);return C=function(){return n},n}function M(){var n=(0,i.A)(["\n padding: 24px;\n\n .title {\n flex-basis: 20%;\n flex-grow: 0;\n flex-shrink: 0;\n color: ",";\n font-size: 14px;\n font-weight: 600;\n\n "," {\n margin-left: 6px;\n }\n\n "," {\n flex-basis: 33.33%;\n }\n }\n .content {\n color: ",";\n font-size: 14px;\n font-weight: 400;\n line-height: 22px;\n\n "," {\n padding-left: 5px;\n }\n }\n"]);return M=function(){return n},n}function _(){var n=(0,i.A)(["\n height: 40px;\n svg {\n width: 18px;\n height: 18px;\n }\n padding: 0 16px 0 12px;\n"]);return _=function(){return n},n}function k(){var n=(0,i.A)(["\n height: 40px;\n border-radius: 4px;\n\n &.filter-btn {\n background-color: #e3f2ff;\n border: none;\n color: ",";\n\n svg path {\n fill: "," !important;\n }\n }\n"]);return k=function(){return n},n}var Y=a.Ay.div.withConfig({componentId:"sc-77ff1a20-0"})(c(),(function(n){return n.theme.colors.gray500})),D=a.Ay.div.withConfig({componentId:"sc-77ff1a20-1"})(l(),o.M.tdDown,(function(n){return n.theme.colors.neutral150}),o.M.tdOnly,o.M.mbDown,o.M.mbDown),E=a.Ay.div.withConfig({componentId:"sc-77ff1a20-2"})(s(),o.M.tdDown),I=(a.Ay.div.withConfig({componentId:"sc-77ff1a20-3"})(d()),a.Ay.div.withConfig({componentId:"sc-77ff1a20-4"})(u()),a.Ay.div.withConfig({componentId:"sc-77ff1a20-5"})(p()),a.Ay.div.withConfig({componentId:"sc-77ff1a20-6"})(f()),a.Ay.div.withConfig({componentId:"sc-77ff1a20-7"})(h(),o.M.tdDown,o.M.mbDown)),N=a.Ay.div.withConfig({componentId:"sc-77ff1a20-8"})(g(),o.M.mbDown),F=a.Ay.div.withConfig({componentId:"sc-77ff1a20-9"})(m(),(function(n){return n.theme.colors.neutral100}),o.M.tdOnly,o.M.mbDown,(function(n){return n.theme.colors.gray600})),z=a.Ay.div.withConfig({componentId:"sc-77ff1a20-10"})(v(),(function(n){return n.theme.colors.blue50})),S=(0,a.Ay)(z).withConfig({componentId:"sc-77ff1a20-11"})(b()),O=a.Ay.div.withConfig({componentId:"sc-77ff1a20-12"})(x(),o.M.mbDown,(function(n){return n.theme.colors.neutral150}),(function(n){return n.theme.colors.gray600})),T=a.Ay.div.withConfig({componentId:"sc-77ff1a20-13"})(w(),o.M.mbDown),B=a.Ay.div.withConfig({componentId:"sc-77ff1a20-14"})(y()),L=a.Ay.div.withConfig({componentId:"sc-77ff1a20-15"})(A()),P=(a.Ay.div.withConfig({componentId:"sc-77ff1a20-16"})(C()),a.Ay.div.withConfig({componentId:"sc-77ff1a20-17"})(M(),(function(n){return n.theme.colors.gray800}),o.M.tdUp,o.M.mbDown,(function(n){return n.theme.colors.gray800}),o.M.tdDown)),j=(0,a.Ay)(r.B).withConfig({componentId:"sc-77ff1a20-18"})(_()),H=(0,a.Ay)(r.B).withConfig({componentId:"sc-77ff1a20-19"})(k(),(function(n){return n.theme.colors.blue600}),(function(n){return n.theme.colors.blue600}))},48260:function(n,e,t){"use strict";t.d(e,{$I:function(){return w},EH:function(){return k},G1:function(){return _},Rl:function(){return I},_H:function(){return Y},a4:function(){return A},f$:function(){return E},ft:function(){return D},gD:function(){return y},lC:function(){return N},n8:function(){return C},rL:function(){return M}});var i=t(24537),o=t(4766),r=t(27317);function a(){var n=(0,i.A)(["\n display: flex;\n"]);return a=function(){return n},n}function c(){var n=(0,i.A)(["\n display: flex;\n min-height: 40px;\n align-items: center;\n width: 100%;\n padding: 8px 16px;\n margin-bottom: 8px;\n border-radius: 6px;\n\n cursor: pointer;\n\n &[data-is-active='true'] {\n background-color: ",";\n > p {\n color: ",";\n }\n }\n\n .organization-name {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n "," {\n max-width: 248px;\n }\n\n "," {\n max-width: 100%;\n padding-left: 0;\n padding-right: 0;\n }\n"]);return c=function(){return n},n}function l(){var n=(0,i.A)(["\n width: 40px;\n min-width: 40px;\n height: 40px;\n display: inline-block;\n margin-right: 16px;\n border-radius: 50%;\n"]);return l=function(){return n},n}function s(){var n=(0,i.A)(["\n margin-left: auto;\n svg {\n display: block;\n }\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n position: relative;\n min-width: 650px;\n grid-column-end: 10;\n grid-column-start: 4;\n\n "," {\n min-width: 0;\n grid-column-end: 13;\n grid-column-start: 1;\n }\n"]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n padding-left: 8px;\n grid-column-end: 3;\n grid-column-start: 1;\n\n "," {\n padding-left: 0;\n padding-bottom: 24px;\n grid-column-end: 13;\n }\n\n "," {\n padding-bottom: 32px;\n }\n\n .branch-avatar-selector {\n > div {\n position: relative;\n margin-top: 5px;\n }\n\n & {\n .branch-avatar {\n img {\n width: 136px;\n height: 136px;\n display: block;\n background-color: rgba(0, 0, 0, 0.05);\n }\n "," {\n border-radius: 50%;\n }\n\n "," {\n img {\n width: 64px;\n height: 64px;\n }\n }\n }\n }\n > div > div :not(:first-child) {\n position: absolute;\n right: 4px;\n bottom: -4px;\n width: 40px;\n height: 40px;\n border: 4px solid #ffffff;\n background-color: #2d87f3;\n\n "," {\n right: 0;\n bottom: 0;\n width: 20px;\n height: 20px;\n border-width: 2px;\n --icon-wrapper-size: 16px;\n }\n }\n }\n & .error {\n margin-top: 5px;\n color: ",";\n font-size: 12px;\n font-weight: ",";\n }\n .heading {\n margin-bottom: 16px;\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"]);return u=function(){return n},n}function p(){var n=(0,i.A)(["\n display: grid;\n width: 100%;\n padding: 16px;\n margin-top: 24px;\n grid-template-columns: repeat(12, 1fr);\n\n "," {\n max-width: 650px;\n margin-left: auto;\n margin-right: auto;\n }\n"]);return p=function(){return n},n}function f(){var n=(0,i.A)(["\n position: fixed;\n z-index: 9;\n top: 0;\n display: flex;\n width: calc(100vw - var(--side-menu-width));\n height: 64px;\n justify-content: space-between;\n padding: 0px 24px;\n background: ",";\n box-shadow: 0px 0px 8px rgba(40, 74, 117, 0.08);\n\n "," {\n width: 100%;\n box-shadow: none;\n background-color: ",";\n border-bottom: 1px solid\n ",";\n }\n\n "," {\n position: relative;\n & + .spacing-mobile {\n margin-top: 64px;\n }\n }\n\n "," {\n position: relative;\n padding: 0px 16px;\n height: 56px;\n & + .spacing-mobile {\n margin-top: 16px;\n }\n }\n\n & > div > h5 {\n color: ",";\n }\n .alert {\n position: absolute;\n top: 72px;\n right: 0;\n width: fit-content;\n min-width: 400px;\n }\n"]);return f=function(){return n},n}function h(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n\n & > :not(:first-child) {\n margin-left: 24px;\n }\n"]);return h=function(){return n},n}function g(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n padding-right: 24px;\n .btn_cancel {\n margin-right: 8px;\n }\n "," {\n padding-right: 0;\n }\n\n button[type='button'] + button[type='button'] {\n margin-right: 12px;\n }\n\n "," {\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n padding: 13px 16px;\n align-items: stretch;\n justify-content: space-between;\n background-color: ",";\n border-top: 1px solid\n ",";\n\n & > button {\n width: 48%;\n }\n }\n"]);return g=function(){return n},n}function m(){var n=(0,i.A)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n"]);return m=function(){return n},n}function v(){var n=(0,i.A)(["\n padding: 80px 0;\n margin-left: auto;\n margin-right: auto;\n"]);return v=function(){return n},n}function b(){var n=(0,i.A)(["\n text-align: center;\n\n .group-btn {\n display: flex;\n gap: 12px;\n\n .btn {\n flex: 1;\n }\n }\n"]);return b=function(){return n},n}function x(){var n=(0,i.A)(["\n background-color: ",";\n border: 1px solid ",";\n color: ",";\n font-size: 14px;\n line-height: 22px;\n padding: 9px 24px;\n border-radius: 6px;\n cursor: pointer;\n font-weight: 700;\n"]);return x=function(){return n},n}r.Ay.div.withConfig({componentId:"sc-5a2a03ba-0"})(a());var w=r.Ay.div.withConfig({componentId:"sc-5a2a03ba-1"})(c(),(function(n){return n.theme.colors.blue50}),(function(n){return n.theme.colors.primaryBase}),o.M.tdUp,o.M.tdDown),y=r.Ay.img.withConfig({componentId:"sc-5a2a03ba-2"})(l()),A=r.Ay.div.withConfig({componentId:"sc-5a2a03ba-3"})(s()),C=r.Ay.div.withConfig({componentId:"sc-5a2a03ba-4"})(d(),o.M.tdDown),M=r.Ay.div.withConfig({componentId:"sc-5a2a03ba-5"})(u(),o.M.tdDown,o.M.mbDown,o.M.tdDown,o.M.mbDown,o.M.mbDown,(function(n){return n.theme.colors.red700}),(function(n){return n.theme.sizes.fwRegular})),_=r.Ay.div.withConfig({componentId:"sc-5a2a03ba-6"})(p(),o.M.tdOnly),k=r.Ay.div.withConfig({componentId:"sc-5a2a03ba-7"})(f(),(function(n){return n.theme.colors.white}),o.M.tdDown,(function(n){return n.theme.colors.neutral150}),(function(n){return n.theme.colors.neutral100}),o.M.tdOnly,o.M.mbDown,(function(n){return n.theme.colors.gray800})),Y=r.Ay.div.withConfig({componentId:"sc-5a2a03ba-8"})(h()),D=r.Ay.div.withConfig({componentId:"sc-5a2a03ba-9"})(g(),o.M.tdDown,o.M.mbDown,(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.neutral100})),E=r.Ay.div.withConfig({componentId:"sc-5a2a03ba-10"})(m()),I=(0,r.Ay)(E).withConfig({componentId:"sc-5a2a03ba-11"})(v()),N=r.Ay.div.withConfig({componentId:"sc-5a2a03ba-12"})(b());r.Ay.div.withConfig({componentId:"sc-5a2a03ba-13"})(x(),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.white}))},75287:function(n,e,t){"use strict";t.d(e,{Bs:function(){return f}});var i=t(24537),o=t(27317);function r(){var n=(0,i.A)(["\n display: flex;\n width: 90%;\n margin: 8px;\n & {\n .dropdown {\n width: 100%;\n height: 45px;\n margin-bottom: 2px;\n margin-left: 8px;\n color: ",";\n font-size: 14px;\n & div {\n overflow: hidden;\n white-space: pre;\n }\n }\n input::placeholder {\n color: ",";\n font-size: 14px;\n }\n .role {\n width: 80%;\n }\n }\n"]);return r=function(){return n},n}function a(){var n=(0,i.A)(["\n .table-caption {\n word-break: break-all;\n }\n\n .branchs-cell-wrapper {\n .branch-item {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 400px;\n }\n }\n"]);return a=function(){return n},n}function c(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n\n > * {\n margin-right: 16px;\n }\n .input-search {\n input {\n min-width: 180px;\n height: 40px;\n }\n }\n"]);return c=function(){return n},n}function l(){var n=(0,i.A)(["\n position: fixed;\n z-index: 9;\n top: 0;\n display: flex;\n width: calc(100vw - var(--side-menu-width));\n height: 64px;\n justify-content: space-between;\n padding: 0px 24px;\n background: ",";\n box-shadow: 0px 0px 8px rgba(40, 74, 117, 0.08);\n & > div > h5 {\n color: ",";\n }\n & {\n .alert {\n position: absolute;\n top: 72px;\n right: 0;\n width: fit-content;\n min-width: 400px;\n }\n }\n"]);return l=function(){return n},n}function s(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n\n & > :not(:first-child) {\n margin-left: 24px;\n }\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n padding-right: 24px;\n"]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n display: flex;\n justify-content: flex-end;\n padding: 16px 0;\n"]);return u=function(){return n},n}function p(){var n=(0,i.A)(["\n font-weight: bold;\n"]);return p=function(){return n},n}o.Ay.div.withConfig({componentId:"sc-787870c9-0"})(r(),(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.colors.gray800}));var f=o.Ay.div.withConfig({componentId:"sc-787870c9-1"})(a());o.Ay.div.withConfig({componentId:"sc-787870c9-2"})(c()),o.Ay.div.withConfig({componentId:"sc-787870c9-3"})(l(),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray800})),o.Ay.div.withConfig({componentId:"sc-787870c9-4"})(s()),o.Ay.div.withConfig({componentId:"sc-787870c9-5"})(d()),o.Ay.div.withConfig({componentId:"sc-787870c9-6"})(u()),o.Ay.b.withConfig({componentId:"sc-787870c9-7"})(p())},57656:function(n,e,t){"use strict";t.d(e,{EQ:function(){return y},Oe:function(){return w},Oz:function(){return m},U7:function(){return C},Zg:function(){return b},eV:function(){return x},l:function(){return A},sg:function(){return v}});var i=t(24537),o=t(4766),r=t(35084),a=t(66079),c=t(27317);function l(){var n=(0,i.A)(["\n position: relative;\n\n .bookingDesktop {\n display: flex;\n flex-direction: column;\n "," {\n min-width: 368px;\n max-width: 368px;\n }\n\n &[data-is-loading] {\n justify-self: start;\n }\n\n &[data-has-ad='false'] {\n > div:first-child {\n position: sticky;\n top: 5rem;\n right: 0;\n }\n }\n }\n\n .bookingCard {\n width: 100%;\n background-color: white;\n padding: 12px;\n\n "," {\n position: sticky;\n }\n }\n"]);return l=function(){return n},n}function s(){var n=(0,i.A)(["\n padding-left: 0;\n margin-bottom: 16px;\n margin-top: 16px;\n width: 100%;\n\n "," {\n margin-bottom: 24px;\n margin-top: 0;\n }\n\n p[data-size='sm'] {\n font-weight: 600;\n font-size: 14px;\n line-height: 22px;\n letter-spacing: -0.2px;\n }\n [data-is-tab-active] {\n cursor: default;\n }\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n margin-top: 24px;\n &[data-is-booking-unavailable='true'] {\n display: flex;\n }\n\n "," {\n display: flex;\n width: 100%;\n margin-top: 24px;\n }\n\n "," {\n gap: 16px;\n }\n\n "," {\n gap: 32px;\n }\n\n margin-bottom: 100px;\n"]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n padding-left: 18px;\n li {\n list-style-type: disc;\n }\n"]);return u=function(){return n},n}function p(){var n=(0,i.A)(["\n margin-bottom: 24px;\n & > * {\n margin-top: 24px;\n }\n .working-hours {\n .week-working-time {\n max-width: 450px;\n .working-time {\n display: flex;\n margin-top: 8px;\n justify-content: space-between;\n .date {\n min-width: 100px;\n }\n .time {\n text-align: right;\n }\n }\n }\n }\n .accepted-payments {\n display: flex;\n gap: 16px;\n flex-wrap: wrap;\n }\n"]);return p=function(){return n},n}function f(){var n=(0,i.A)(["\n width: 100%;\n\n "," {\n ","\n }\n"]);return f=function(){return n},n}function h(){var n=(0,i.A)(["\n margin: 16px 0;\n"]);return h=function(){return n},n}function g(){var n=(0,i.A)(["\n max-height: 100%;\n position: relative;\n flex: 1;\n margin: 0.5rem 0;\n .ad-container {\n position: sticky;\n top: 80px;\n }\n"]);return g=function(){return n},n}var m=c.Ay.div.withConfig({componentId:"sc-f6aed7d5-0"})(l(),o.M.mbUp,o.M.mbUp),v=(0,c.Ay)(r.T).withConfig({componentId:"sc-f6aed7d5-1"})(s(),o.M.tdUp),b=c.Ay.div.withConfig({componentId:"sc-f6aed7d5-2"})(d(),o.M.mbUp,o.M.tdOnly,o.M.tdUp),x=c.Ay.ul.withConfig({componentId:"sc-f6aed7d5-3"})(u()),w=c.Ay.div.withConfig({componentId:"sc-f6aed7d5-4"})(p()),y=c.Ay.section.withConfig({componentId:"sc-f6aed7d5-5"})(f(),o.M.tdUp,(function(n){return n.isRightPanelActive&&"max-width: calc(100% - (368px + 32px))"})),A=(0,c.Ay)(a.T).withConfig({componentId:"sc-f6aed7d5-6"})(h()),C=c.Ay.div.withConfig({componentId:"sc-f6aed7d5-7"})(g())},15596:function(n,e,t){"use strict";t.d(e,{eL:function(){return m},k6:function(){return g},m9:function(){return v},sY:function(){return h}});var i=t(24537),o=t(4766),r=t(27317);function a(){var n=(0,i.A)(["\n display: block;\n\n .hero-intro {\n margin: 8px 0;\n "," {\n margin: 16px 0;\n }\n }\n .search-bar-mobile {\n border-radius: 0px 0px 4px 4px;\n background: ",";\n box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.04),\n 0px 0px 2px 0px rgba(0, 0, 0, 0.06), 0px 4px 8px 0px rgba(0, 0, 0, 0.04);\n padding: 16px;\n }\n"]);return a=function(){return n},n}function c(){var n=(0,i.A)(["\n position: relative;\n background: ",";\n\n display: flex;\n min-height: 520px;\n justify-content: flex-start;\n\n "," {\n min-height: 422px;\n }\n\n .find-your-doctor {\n position: relative;\n align-items: center;\n height: 100%;\n > div > div {\n padding-top: 0;\n }\n\n .hero-content {\n padding: 114px 0;\n\n "," {\n padding: 48px 0;\n }\n "," {\n padding: 60px 0;\n }\n }\n\n .hero-image {\n align-self: end;\n padding-bottom: 64px;\n }\n }\n"]);return c=function(){return n},n}function l(){var n=(0,i.A)(["\n position: absolute;\n display: flex;\n z-index: 0;\n top: 0;\n left: 0;\n background: #bcdeff;\n width: 100%;\n\n overflow-x: hidden;\n\n "," {\n height: 466px;\n\n > div:first-child {\n height: 100%;\n }\n }\n\n "," {\n height: 520px;\n }\n\n > div {\n position: static !important;\n padding-top: 0;\n }\n\n .hero-image {\n z-index: 0;\n height: 100%;\n object-position: center bottom;\n "," {\n width: 500px;\n height: 466px;\n }\n }\n"]);return l=function(){return n},n}function s(){var n=(0,i.A)(["\n margin-top: -57px;\n\n "," {\n .booking-search-container {\n padding: 0 16px 40px;\n }\n }\n\n "," {\n margin-top: -48px;\n }\n\n .booking-search-content {\n border-radius: 0 0 16px 16px;\n }\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n height: 144px;\n box-shadow: 0px 5px 12px rgb(40 74 117 / 8%);\n border-radius: 6px;\n position: relative;\n top: -72px;\n z-index: 109;\n background: white;\n\n .search-box {\n padding: 50px;\n }\n"]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n "," {\n margin-top: -72px;\n }\n\n .specialties-title {\n text-align: center;\n margin: 32px 0;\n "," {\n justify-content: space-between;\n }\n }\n\n .specialty {\n position: relative;\n z-index: 2;\n }\n\n .see-more-btn {\n display: flex;\n justify-content: center;\n margin-top: 30px;\n font-weight: 700;\n pointer-events: none;\n }\n"]);return u=function(){return n},n}function p(){var n=(0,i.A)(["\n .not-found-grid {\n margin: 64px auto 64px auto;\n\n "," {\n display: flex;\n flex-direction: row-reverse;\n align-items: center;\n justify-content: space-between;\n margin: 128px auto 128px auto;\n }\n\n button {\n margin-top: 16px;\n }\n }\n\n a {\n text-decoration: none;\n }\n\n div {\n h2 {\n margin-bottom: 16px;\n "," {\n margin-top: 16px;\n }\n }\n p {\n max-width: 400px;\n }\n }\n"]);return p=function(){return n},n}function f(){var n=(0,i.A)(["\n display: flex;\n "," {\n gap: 32px;\n margin: 0 138px;\n padding-top: 60px;\n }\n "," {\n gap: 16px;\n padding: 40px 16px;\n flex-wrap: wrap;\n }\n border-top: 1px solid ",";\n"]);return f=function(){return n},n}var h=r.Ay.div.withConfig({componentId:"sc-4596d171-0"})(a(),o.M.tdUp,(function(n){return n.theme.colors.white})),g=(r.Ay.section.withConfig({componentId:"sc-4596d171-1"})(c(),(function(n){return n.theme.colors.blue100}),o.M.mbDown,o.M.mbDown,o.M.tdOnly),r.Ay.div.withConfig({componentId:"sc-4596d171-2"})(l(),o.M.tdDown,o.M.tdUp,o.M.tdDown),r.Ay.div.withConfig({componentId:"sc-4596d171-3"})(s(),o.M.mbDown,o.M.tdDown)),m=(r.Ay.div.withConfig({componentId:"sc-4596d171-4"})(d()),r.Ay.section.withConfig({componentId:"sc-4596d171-5"})(u(),o.M.tdUp,o.M.tdUp)),v=r.Ay.div.withConfig({componentId:"sc-4596d171-6"})(p(),o.M.tdUp,o.M.tdDown);r.Ay.section.withConfig({componentId:"sc-4596d171-7"})(f(),o.M.tdUp,o.M.tdDown,(function(n){return n.theme.colors.neutral100}))},39636:function(n,e,t){"use strict";t.d(e,{H:function(){return a}});var i=t(2445),o=t(27516),r=t(40959),a=function(n){var e=n.locale,t=n.includeFavicons,a=void 0===t||t;return(0,i.FD)(i.FK,{children:[(0,i.Y)("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(0,i.Y)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:""}),(0,i.Y)("link",{href:"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap",rel:"stylesheet"}),a&&(r.EH[e]||[]).map((function(n,t){return"link"===n.type?(0,i.Y)("link",{rel:n.rel,href:"https://".concat(o.y[e]).concat(n.href),sizes:n.sizes},"favicon-".concat(t)):"meta"===n.type?(0,i.Y)("meta",{name:n.name,content:n.content},t):null}))]})}},63419:function(n,e,t){"use strict";t.d(e,{By:function(){return f},IU:function(){return p},_E:function(){return g},cN:function(){return h},df:function(){return m},t1:function(){return v}});var i=t(24537),o=t(4766),r=t(27317);function a(){var n=(0,i.A)(["\n --side-menu-width: 240px;\n "," {\n display: flex;\n }\n"]);return a=function(){return n},n}function c(){var n=(0,i.A)(["\n [data-is-link-active] > svg {\n //filter: brightness(10);\n }\n"]);return c=function(){return n},n}function l(){var n=(0,i.A)(["\n position: fixed;\n height: auto;\n top: 81px;\n right: 0px;\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n z-index: 999;\n\n "," {\n top: 0;\n }\n\n .alert-noti {\n overflow: hidden;\n min-width: 360px;\n max-width: 600px;\n margin-bottom: 4px;\n align-items: flex-start;\n display: flex;\n\n .icon-title {\n + p {\n line-height: 22px;\n font-size: 14px;\n }\n }\n\n "," {\n min-width: 100%;\n }\n }\n"]);return l=function(){return n},n}function s(){var n=(0,i.A)(["\n width: 100%;\n padding-top: 64px;\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n height: 100vh;\n width: 100%;\n align-items: center;\n justify-content: center;\n display: flex;\n .error-container {\n width: 488px;\n padding: 0 16px;\n max-width: 100%;\n text-align: center;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n display: flex;\n }\n"]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n #main-content > main {\n padding-top: 0;\n }\n"]);return u=function(){return n},n}var p=r.Ay.div.withConfig({componentId:"sc-306f8cfa-0"})(a(),o.M.tdUp),f=r.Ay.aside.withConfig({componentId:"sc-306f8cfa-1"})(c()),h=r.Ay.div.withConfig({componentId:"sc-306f8cfa-2"})(l(),o.M.mbDown,o.M.mbDown),g=r.Ay.main.withConfig({componentId:"sc-306f8cfa-3"})(s()),m=r.Ay.div.withConfig({componentId:"sc-306f8cfa-4"})(d()),v=(0,r.DU)(u())},27401:function(n,e,t){"use strict";t.r(e),t.d(e,{MasterDetail:function(){return V}});var i,o,r=t(95586),a=t(38971),c=t(23329),l=t(1078),s=t(2445),d=t(73884),u=t.n(d),p=t(62532),f=t(44835),h=t(66079),g=t(50126),m=t(78979),v=t(84091),b=t(97183),x=t(48403),w=t(5793),y=t(7411),A=t(88491),C=t(73419),M=t(40959),_=t(28636),k=t.n(_),Y=t(87388),D=t.n(Y),E=t(58065),I=t(80264),N=t(36259),F=t(39636),z=t(63419),S=t(40927),O=t(28041),T=t(12577),B=t(78414),L=t(51539),P=function(n){var e=n.activePage,t=(0,d.useState)(!1),i=t[0],o=t[1];return(0,O.f)(i),(0,s.FD)(s.FK,{children:[(0,s.FD)(L.hT,{children:[(0,s.Y)(B.v,{animated:i,className:"hamburger",onClick:function(){return o(!0)}}),(0,s.Y)(S.L,{type:"hellocare"}),(0,s.Y)(T.A,{})]}),i&&(0,s.Y)(L.ny,{onClick:function(){return o(!1)}}),(0,s.Y)(L.E5,{"data-opened":i,children:(0,s.Y)(x.oR,{activePage:e,isMenuOpened:i,onCloseMobileMenu:function(n){return o(!n)}})})]})},j=t(8758);function H(){return H=Object.assign?Object.assign.bind():function(n){for(var e=1;e .right-view-appears {\n animation-duration: 0.2s;\n animation-name: leftAppears;\n }\n\n "," {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 100%;\n right: auto;\n z-index: 12;\n transition: left 0.3s ease;\n }\n\n ","\n"]);return p=function(){return n},n}function f(){var n=(0,i.A)(["\n height: 100%;\n overflow-x: clip;\n\n "," {\n overflow-y: auto;\n & > div {\n height: 100%;\n }\n }\n"]);return f=function(){return n},n}function h(){var n=(0,i.A)(["\n display: flex;\n justify-content: space-between;\n margin-bottom: 6px;\n .header {\n margin-top: 4px;\n margin-bottom: 12px;\n color: ",";\n font-size: 14px;\n line-height: 18px;\n }\n\n "," {\n display: inline-flex;\n }\n\n "," {\n margin-bottom: 0;\n }\n\n "," {\n align-items: center;\n }\n"]);return h=function(){return n},n}function g(){var n=(0,i.A)(["\n height: 24px;\n width: 24px;\n cursor: pointer;\n color: red;\n\n "," {\n position: absolute;\n right: 16px;\n }\n\n "," {\n position: fixed;\n width: 48px;\n height: 48px;\n margin-left: 0;\n right: 20px;\n bottom: 40px;\n }\n\n "," {\n margin-left: 0;\n }\n\n &[data-is-add-org='true'] {\n height: 14px;\n width: 14px;\n position: initial;\n }\n"]);return g=function(){return n},n}function m(){var n=(0,i.A)(["\n display: flex;\n .search-input {\n margin-right: 16px;\n width: unset;\n }\n .add-new-btn {\n &[data-color='primary'][data-size='md'] {\n padding: 8px 16px;\n display: flex;\n margin-right: 13px;\n }\n }\n"]);return m=function(){return n},n}function v(){var n=(0,i.A)(["\n display: flex;\n .search-input {\n margin-right: 16px;\n width: unset;\n }\n .add-new-btn {\n &[data-color='primary'][data-size='md'] {\n padding: 8px 16px;\n display: flex;\n margin-right: 13px;\n }\n }\n"]);return v=function(){return n},n}function b(){var n=(0,i.A)(["\n "," {\n position: absolute;\n top: 8px;\n left: 100px;\n right: 16px;\n width: auto;\n max-width: 100%;\n opacity: 0;\n visibility: hidden;\n transition: all 0.3s ease;\n\n &.search-input input {\n width: 100%;\n max-width: 100%;\n }\n\n &.show-mobile {\n opacity: 1;\n left: 52px;\n visibility: visible;\n }\n }\n"]);return b=function(){return n},n}var x=a.Ay.div.withConfig({componentId:"sc-8af53570-0"})(l(),o.M.mbDown,o.M.tdUp),w=a.Ay.div.withConfig({componentId:"sc-8af53570-1"})(s(),(function(n){return n.theme.colors.neutral100}),o.M.mbDown,o.M.tdUp),y=a.Ay.div.withConfig({componentId:"sc-8af53570-2"})(d(),(function(n){return n.theme.colors.white}),o.M.tdOnly,o.M.mbDown,o.M.tdOnly,o.M.tdDown,o.M.mbDown),A=a.Ay.div.withConfig({componentId:"sc-8af53570-3"})(u(),o.M.tdUp,(function(n){return n.theme.colors.gray200}),o.M.mbDown),C=a.Ay.div.withConfig({componentId:"sc-8af53570-4"})(p(),(function(n){return n.theme.colors.white}),o.M.tdDown,(function(n){return n.$isShowMobile?"\n left: 0 !important;\n ":""})),M=a.Ay.div.withConfig({componentId:"sc-8af53570-5"})(f(),o.M.mbDown),_=a.Ay.div.withConfig({componentId:"sc-8af53570-6"})(h(),(function(n){return n.theme.colors.secondaryDark}),o.M.tdOnly,o.M.tdDown,o.M.mbDown),k=(0,a.Ay)(c.A).withConfig({componentId:"sc-8af53570-7"})(g(),o.M.tdOnly,o.M.mbDown,o.M.tdOnly),Y=(a.Ay.div.withConfig({componentId:"sc-8af53570-8"})(m()),a.Ay.div.withConfig({componentId:"sc-8af53570-9"})(v()),(0,a.Ay)(r.I).withConfig({componentId:"sc-8af53570-10"})(b(),o.M.mbDown))},7367:function(n,e,t){"use strict";t.d(e,{C9:function(){return o},jz:function(){return r},rl:function(){return a}});var i=t(50345),o=[i.L.Malaysia,i.L.PhilippinesEnglish,i.L.PhilippinesTagalog],r=[i.L.Vietnam,i.L.Indonesia,i.L.Malaysia,i.L.PhilippinesEnglish,i.L.PhilippinesTagalog,i.L.Thailand],a=[i.L.PhilippinesEnglish,i.L.PhilippinesTagalog]},88542:function(n,e,t){"use strict";t.d(e,{o:function(){return s}});var i=t(53513),o=t(63538),r=t(73884),a=t(84091),c=t(4736),l=t(73419),s=function(){var n,e,t=(0,l.$)(),s=t.replace,d=t.pathname,u=t.query,p=(0,c.useAppContext)().state,f=String(u.hospital_id||""),h=String(u.branch_id||""),g=p.userInfo,m=(null===g||void 0===g?void 0:g.role)||"",v=(0,r.useMemo)((function(){switch(m){case"admin":case"super":return"all";case"facility":return"branch";case"senior_branch":return"senior_branch";default:return"none"}}),[m]),b=(0,r.useState)({hospitalId:f,branchId:h}),x=b[0],w=b[1],y=(0,r.useCallback)((function(){var n,e;if("all"!==v||f||!h)if("senior_branch"!==v){var t,r,c=(null===(n=g.hospital)||void 0===n?void 0:n.id)&&f&&f!==String(g.hospital.id),l=(null===(e=g.branch)||void 0===e?void 0:e.id)&&"none"===v&&h&&h!==String(g.branch.id);if(c||l)s({pathname:d,query:(0,a.Jo)((0,i.A)({},u,c&&{hospitalId:null===(t=g.hospital)||void 0===t?void 0:t.id},l&&{branchId:null===(r=g.branch)||void 0===r?void 0:r.id}))},void 0,{shallow:!0})}else{var p;s({pathname:d,query:(0,a.Jo)((0,o.A)((0,i.A)({},u),{hospital_id:(null===(p=g.hospital)||void 0===p?void 0:p.id)||"",branch_id:""}))})}else s({pathname:d,query:(0,a.Jo)((0,o.A)((0,i.A)({},u),{hospital_id:"",branch_id:""}))})}),[s,d,u,v,f,h,null===g||void 0===g||null===(n=g.hospital)||void 0===n?void 0:n.id,null===g||void 0===g||null===(e=g.branch)||void 0===e?void 0:e.id]),A=(0,r.useMemo)((function(){var n,e,t;return g&&m&&"all"!==v?"branch"===v||"senior_branch"===v?{hospitalId:String((null===(t=g.hospital)||void 0===t?void 0:t.id)||""),branchId:h}:(null===(n=g.hospital)||void 0===n?void 0:n.id)&&(null===(e=g.branch)||void 0===e?void 0:e.id)?{hospitalId:String(g.hospital.id),branchId:String(g.branch.id)}:{hospitalId:"",branchId:""}:{hospitalId:f,branchId:h}}),[f,h,g]);return(0,r.useEffect)((function(){A.hospitalId===x.hospitalId&&A.branchId===x.branchId||w(A)}),[A.hospitalId,A.branchId]),(0,o.A)((0,i.A)({},x),{navigationDropdownControl:v,replaceInvalidHospitalIdAndBranchId:y,setHospitalIdAndBranchId:w})}},4736:function(n,e,t){"use strict";t.r(e),t.d(e,{useAppContext:function(){return r}});var i=t(73884),o=t(36259),r=function(){return(0,i.useContext)(o.B)}},28041:function(n,e,t){"use strict";t.d(e,{f:function(){return r}});var i=t(73884),o=t(88491);function r(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=(0,o.d)().isMobileOrTablet;(0,i.useEffect)((function(){if(t||e)return n?(document.body.style.overflow="hidden",document.body.classList.add("hhc-disabled-scroll")):(document.body.style.overflow="",document.body.classList.remove("hhc-disabled-scroll")),function(){document.body.style.overflow="",document.body.classList.remove("hhc-disabled-scroll")}}),[t,n,e])}},22699:function(n,e,t){"use strict";t.d(e,{A:function(){return x}});var i=t(53513),o=t(63538),r=t(73884),a=t(94886),c=t.n(a),l={response:null,error:null,loading:!0},s="INIT",d="SUCCESS",u="FAIL",p="NOT_CALLED";function f(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case s:return(0,o.A)((0,i.A)({},n),{loading:!0});case d:return{response:e.payload,error:null,loading:!1};case u:return{response:null,error:e.payload,loading:!1};case p:return{response:null,error:null,loading:!1};default:return n}}var h=s,g=d,m=u,v=p,b=c().CancelToken,x=function(n){var e=n.axios,t=void 0===e?c():e,a=n.url,s=n.method,d=void 0===s?"get":s,u=n.options,p=void 0===u?{}:u,x=n.trigger,w=n.customHandler,y=n.delay,A=n.condition,C=void 0===A||A,M=(0,r.useReducer)(f,l),_=M[0],k=M[1],Y=(0,r.useState)(0),D=Y[0],E=Y[1],I=x;try{I=x?JSON.stringify(x):""}catch(F){}var N=function(n,e){w&&w(n,e)};return(0,r.useEffect)((function(){if(!a||!C)return N(null,{loading:!1}),void k({type:v});if("undefined"!==typeof I||D){N(null,null),k({type:h});var n=b.source();return setTimeout((function(){t((0,o.A)((0,i.A)({url:a,method:d},p),{cancelToken:n.token})).then((function(n){N(null,n),k({type:g,payload:n.data})})).catch((function(n){N(n,null),c().isCancel(n)||k({type:m,payload:n})}))}),y||0),function(){n.cancel()}}}),[D,I]),(0,o.A)((0,i.A)({},_),{query:function(){E(+new Date)},reFetch:function(){E(+new Date)}})}},24431:function(n,e,t){"use strict";t.d(e,{c:function(){return c}});var i=t(73884),o=t(12215),r=t.n(o),a=t(40959);function c(){var n=(0,i.useState)(""),e=n[0],t=n[1];return(0,i.useEffect)((function(){if(r().get(a.OK8))try{var n=JSON.parse(r().get(a.OK8)||JSON.stringify(""));if(n.lat&&n.lng)return void t("granted")}catch(i){r().remove(a.OK8)}var e;navigator.permissions?navigator.permissions.query({name:"geolocation"}).then((function(n){t(n.state),n.onchange=function(){return t(n.state)}})):(t("prompt"),null===(e=navigator.geolocation)||void 0===e||e.getCurrentPosition((function(){t("granted")}),(function(){t("denied")})))}),[]),e}},35094:function(n,e,t){"use strict";t.d(e,{Q:function(){return d}});var i=t(38971),o=t(73884),r=t(87246),a=t(6442),c=t(12495),l=t.n(c),s=t(1135);function d(){var n=(0,a.A)().formatMessage,e=(0,r.useRouter)().locale,t=(0,o.useMemo)((function(){return(null===e||void 0===e?void 0:e.split("-")[0])||"en"}),[e]),c=(0,o.useMemo)((function(){return{lower:!0,locale:t}}),[t]);return(0,o.useMemo)((function(){var e,t,o={hospitals:l()(n({id:"booking.search.tab.hospitals",defaultMessage:"Hospitals"}),c)||"hospitals",services:l()(n({id:"booking.search.tab.services",defaultMessage:"Services"}),c)||"services",doctors:l()(n({id:"booking.search.tab.doctors",defaultMessage:"Doctors"}),c)||"doctors",reviews:l()(n({id:"booking.search.tab.review",defaultMessage:"Reviews"}),c)||"reviews"};return[o,(e={},(0,i.A)(e,o.hospitals,s.uN.GENERAL_INFO),(0,i.A)(e,o.services,s.uN.SERVICES),(0,i.A)(e,o.doctors,s.uN.DOCTORS),(0,i.A)(e,o.reviews,s.uN.REVIEWS),e),(t={},(0,i.A)(t,String(s.uN.GENERAL_INFO),o.hospitals),(0,i.A)(t,String(s.uN.SERVICES),o.services),(0,i.A)(t,String(s.uN.DOCTORS),o.doctors),(0,i.A)(t,String(s.uN.REVIEWS),o.reviews),t)]}),[])}},62862:function(n,e,t){"use strict";t.d(e,{j:function(){return o}});var i=t(73884),o=function(n,e){var t=function(t){n.current&&!n.current.contains(t.target)&&e(t.target)};(0,i.useEffect)((function(){return document.addEventListener("click",t),function(){document.removeEventListener("click",t)}}))}},94334:function(n,e,t){"use strict";t.d(e,{m:function(){return a}});var i=t(73884),o=t(73419),r=t(40959),a=function(n){var e=n.serviceInfo,t=n.doctorInfo,a=(0,o.$)().locale;return(0,i.useMemo)((function(){return t?t.validTelemedicine?"id-ID"===a?[r.JZw.OY]:[r.JZw.VNPAY,r.JZw.MOMO,r.JZw.ATM_MOMO,r.JZw.VISA_MOMO]:[r.JZw.COD]:e&&e.package&&"vi-VN"===a&&Boolean(null===e||void 0===e?void 0:e.togglePaymentOnline)&&!e.reservation?[r.JZw.VNPAY,r.JZw.MOMO,r.JZw.ATM_MOMO,r.JZw.VISA_MOMO,r.JZw.COD]:[r.JZw.COD]}),[e,t])}},58638:function(n,e,t){"use strict";t.d(e,{b:function(){return d},I:function(){return u}});var i=t(2445),o=t(73884),r=t(88491),a=t(7350),c=t.n(a);function l(n,e){if(n){var t=n.getBoundingClientRect(),i=window.scrollY||window.pageYOffset||document.documentElement.scrollTop,o=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;e(i>=i+t.top-o)}}function s(n,e,t){if(n){var i=n.getBoundingClientRect(),o=window.scrollY||window.pageYOffset||document.documentElement.scrollTop;t(o>=o+i.top-e)}}function d(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.id,t=void 0===e?"scroll-trigger":e,a=n.defaultIsSticky,s=void 0!==a&&a,d=(0,o.useState)(s),u=d[0],p=d[1],f=(0,r.d)().isMobile;(0,o.useEffect)((function(){var n=document.getElementById(t);if(f&&n){var e=c()((function(){l(n,(function(n){p(!n)}))}),100);return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}}}),[t,f]);var h=(0,o.useMemo)((function(){return(0,i.Y)("div",{id:t})}),[t]);return{isSticky:u,scrollTriggerEl:h}}function u(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.id,t=void 0===e?"scroll-top-trigger":e,r=n.heightHeader,a=void 0===r?65:r,l=n.defaultIsSticky,d=void 0!==l&&l,u=(0,o.useState)(d),p=u[0],f=u[1];(0,o.useEffect)((function(){var n=document.getElementById(t);if(n){var e=c()((function(){s(n,a,(function(n){f(n)}))}),100);return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}}}),[t]);var h=(0,o.useMemo)((function(){return(0,i.Y)("div",{id:t})}),[t]);return{isTopSticky:p,scrollTriggerEl:h}}},35507:function(n,e,t){"use strict";t.d(e,{n:function(){return d}});var i=t(73884),o=t(4736),r=t(10297),a=t(40959),c="https://app.chatwoot.com",l="chatwoot-script",s=window;function d(n,e){var t,d=(0,r.useRouter)().locale,p=(0,o.useAppContext)().state,f=(0,i.useState)(!1),h=f[0],g=f[1];(0,i.useEffect)((function(){if("vi-VN"===d){var t=s.$chatwoot;return t?(t.toggleBubbleVisibility("show"),g(!0)):(s.chatwootSettings={locale:"vi",type:"expanded_bubble",launcherTitle:e},new Promise((function(n,e){var t,i=document.getElementsByTagName("script")[0],o=document.createElement("script");o.id=l,o.src=c+"/packs/js/sdk.js",o.defer=!0,o.async=!0,null===i||void 0===i||null===(t=i.parentNode)||void 0===t||t.insertBefore(o,i),o.onload=n,o.onerror=e})).then((function(){s.chatwootSDK.run({websiteToken:n||a.Z6P.DEFAULT,baseUrl:c,locale:"vi"})})).catch(console.log),window.addEventListener("chatwoot:ready",(function(){g(!0)}))),function(){var n;null===(n=s.$chatwoot)||void 0===n||n.toggleBubbleVisibility("hide")}}}),[]),(0,i.useEffect)((function(){if(h){var n,e=document.querySelector(".woot-widget--expanded"),t=document.querySelector(".woot--close");e&&(e.setAttribute("data-event-category","Care"),e.setAttribute("data-event-label",window.location.href),e.setAttribute("data-event-action","Open Chat")),t&&(t.setAttribute("data-event-category","Care"),t.setAttribute("data-event-label",window.location.href),t.setAttribute("data-event-action","Close Chat")),p.userInfo&&(null===(n=p.userInfo)||void 0===n?void 0:n.username)&&s.$chatwoot.setUser(p.userInfo.username,{email:p.userInfo.email,name:p.userInfo.name,phone_number:p.userInfo.phone})}}),[h,null===(t=p.userInfo)||void 0===t?void 0:t.username]),(0,i.useEffect)((function(){h&&setTimeout(u,1e3)}),[h])}function u(){var n=document.querySelector("button[data-event-action*=Booking]")||document.querySelector('button[data-event-action="Soonest Available Schedule Click"]');n&&new IntersectionObserver((function(n){var e=document.querySelector(".woot-widget-bubble");e&&(n[0]&&n[0].isIntersecting?e.classList.add("collapsed"):e.classList.remove("collapsed"))})).observe(n)}},72946:function(n,e,t){"use strict";t.d(e,{o:function(){return a}});var i=t(73884),o=t(36259),r=t(40959),a=function(){var n=(0,i.useContext)(o.B).state.userInfo;return r.dXu?{isValidOnboarding:!!((null===n||void 0===n?void 0:n.email)&&!(null===n||void 0===n?void 0:n.email.endsWith("@hhg.com"))&&!(null===n||void 0===n?void 0:n.email.endsWith("@facebook.com"))&&(null===n||void 0===n?void 0:n.phone)&&(null===n||void 0===n?void 0:n.phone_verified_at)&&(null===n||void 0===n?void 0:n.email_verified_at)&&(null===n||void 0===n?void 0:n.name)&&(null===n||void 0===n?void 0:n.birthday)&&"number"===typeof(null===n||void 0===n?void 0:n.gender))}:{isValidOnboarding:!!(n&&(null===n||void 0===n?void 0:n.phone)&&(null===n||void 0===n?void 0:n.phone_verified_at)&&(null===n||void 0===n?void 0:n.name)&&(null===n||void 0===n?void 0:n.birthday)&&"number"===typeof(null===n||void 0===n?void 0:n.gender))}}},89394:function(n,e,t){"use strict";t.d(e,{$z:function(){return a},CM:function(){return l},QA:function(){return r},XQ:function(){return c},iO:function(){return o}});var i=t(50345),o=[i.L.Vietnam],r=[i.L.Vietnam,i.L.Malaysia],a=[i.L.Vietnam,i.L.Malaysia],c=[i.L.PhilippinesEnglish,i.L.PhilippinesTagalog],l=[i.L.PhilippinesEnglish,i.L.PhilippinesTagalog]},53286:function(n,e,t){"use strict";t.r(e),t.d(e,{__N_SSP:function(){return R},default:function(){return G},handleChangeBranchOption:function(){return U},handleChangeHospitalOption:function(){return V}});var i,o,r=t(858),a=t(53513),c=t(63538),l=t(81539),s=t(83776),d=t(2445),u=t(73884),p=t(62532),f=t(92151),h=t(74029),g=t(59850),m=t(84091),v=t(48403),b=t(76013),x=t(33700),w=t(27401),y=t(88542),A=t(40959),C=t(10297),M=t.n(C),_=t(6442),k=t(91266),Y=t(36259),D=t(72291),E=t(17084),I=t(82118),N=t(67141),F=t(69831),z=t(96161);function S(){return S=Object.assign?Object.assign.bind():function(n){for(var e=1;e0&&An>1&&(0,d.Y)(F.gw,{children:(0,d.Y)(f.P,{className:"pagination",pagesAmount:An,currentPage:_n,onChange:function(n){kn(n)}})})]})]}),(0,d.Y)(b.rI,{isMobile:!1,isShowing:Z,isLoading:Dn,errorMessages:tn,onClose:function(){on({content:""}),$(!1)},onAccept:function(){Jn()},onDeny:function(){on({content:""}),$(!1)},title:X&&X.isActive?zn({id:"admin.popup.doYouWantToDeactiveDoctor",defaultMessage:"Do you want to deactive doctor ?"}):zn({id:"admin.popup.doYouWantToActiveDoctor",defaultMessage:"Do you want to active doctor ?"}),caption:X&&X.isActive?zn({id:"admin.popup.ifYouDeactiveDoctor",defaultMessage:"If you deactivate doctor, you will not be able to book your appointment from this doctor."}):zn({id:"admin.popup.areYouSureToActiveThisDoctor",defaultMessage:"Are you sure to active this doctor?"}),acceptButtonTitle:X&&X.isActive?zn({id:"admin.popup.yesDeactive",defaultMessage:"Yes, Deactive"}):zn({id:"admin.popup.yesActive",defaultMessage:"Yes, Active"}),denyButtonTittle:zn({id:"admin.users.noKeepIt",defaultMessage:"No, keep it"})}),(0,d.Y)(b.rI,{isMobile:!1,isShowing:sn,isLoading:Dn,errorMessages:tn,onClose:function(){on({content:""}),dn(!1)},onAccept:function(){Kn()},onDeny:function(){on({content:""}),dn(!1)},title:zn({id:"admin.delete.titleDoctor",defaultMessage:"Are you sure to delete this doctor"}),caption:zn({id:"booking.patientInfo.remove.confirmationPopup.caption",defaultMessage:"We can not restore it after it has been already deleted"}),acceptButtonTitle:zn({id:"booking.patientInfo.remove.confirmationPopup.acceptButton.title",defaultMessage:"Yes, delete"}),denyButtonTittle:zn({id:"admin.users.noKeepIt",defaultMessage:"No, keep it"})}),(0,d.Y)(I.A,{isOpened:pn,templateUrl:Pn,headerValid:jn,onCloseClick:function(){return fn(!1)},onImportClick:Un,type:"file",maxRecordImport:50,title:zn({id:"admin.import.title",defaultMessage:"Import CSV file"})})]})})}},72291:function(n,e,t){"use strict";t.r(e),t.d(e,{__N_SSP:function(){return I},useDebounce:function(){return N}});var i=t(858),o=t(81539),r=t(83776),a=t(2445),c=t(73884),l=t(92151),s=t(59850),d=t(84091),u=t(39749),p=t(77298),f=t(13954),h=t(76013),g=t(33700),m=t(27401),v=t(88542),b=t(40959),x=t(10297),w=t(6442),y=t(91266),A=t(36259),C=t(17084),M=t(69831),_=t(75287),k=t(86204),Y=t(70527),D=t(7495),E=function(n){var e=[],t=!0,i=!1,r=void 0;try{for(var c,l=n[Symbol.iterator]();!(t=(c=l.next()).done);t=!0){var s,d,u,p=c.value,h=p.role===b.U$p.SENIOR_BRANCH,g=[{value:p.id,type:"id"},{value:{title:p.name,imgSrc:(null===p||void 0===p?void 0:p.avatar)||"".concat(b.JpE,"/images/avatar.jpg"),caption:p.email},type:"info"},{value:{heading:(null===(s=p.hospital)||void 0===s?void 0:s.name)||"",text:h?(0,a.Y)("div",{className:"branchs-cell-wrapper",children:null===(d=p.branches)||void 0===d?void 0:d.map((function(n,e){return(0,a.Y)("div",{className:"branch-item",children:null===n||void 0===n?void 0:n.name},e)}))}):(0,a.Y)("div",{className:"branchs-cell-wrapper",children:(0,a.Y)("div",{className:"branch-item",children:(null===(u=p.branch)||void 0===u?void 0:u.name)||""})})},type:"two_line",className:"sp-hide td-hide"},{value:(null===p||void 0===p?void 0:p.phone)||"",type:"string",className:"sp-hide"},{value:(0,a.Y)(f.o,{role:p.role}),type:"element",className:"sp-hide"},{value:p.id,type:"key",metaData:p}];e=(0,o.A)(e).concat([g])}}catch(m){i=!0,r=m}finally{try{t||null==l.return||l.return()}finally{if(i)throw r}}return e},I=!0;function N(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,t=(0,c.useState)(n),i=t[0],o=t[1];return(0,c.useEffect)((function(){var t=setTimeout((function(){o(n)}),e);return function(){clearTimeout(t)}}),[n,e]),i}e.default=function(n){var e=n.users,t=n.pagination,o=(0,w.A)().formatMessage,f=(0,x.useRouter)(),I=(0,c.useContext)(A.B).state.userInfo,F=(0,c.useRef)(!0),z=f.locale,S=void 0===z?"vi-VN":z,O=b.EmC[S].id,T=(0,v.o)(),B=T.hospitalId,L=T.branchId,P=(0,c.useState)({}),j=P[0],H=P[1],R=(0,c.useState)(E(e)||[]),V=R[0],U=R[1],G=(0,c.useState)(""),W=G[0],q=G[1],J=N(W),K=(0,c.useState)((null===t||void 0===t?void 0:t.last)||1),Z=K[0],$=K[1],Q=(0,c.useState)(1),X=Q[0],nn=Q[1],en=(0,c.useState)((null===t||void 0===t?void 0:t.total_items)||0),tn=en[0],on=en[1],rn=(0,c.useState)(!1),an=rn[0],cn=rn[1],ln=(0,c.useState)(""),sn=ln[0],dn=ln[1],un=(0,c.useState)(!1),pn=un[0],fn=un[1],hn=(0,c.useState)(""),gn=hn[0],mn=hn[1],vn=(0,c.useState)({content:""}),bn=vn[0],xn=vn[1],wn=(0,c.useState)(!1),yn=wn[0],An=wn[1],Cn=(0,c.useState)({type:"",content:""}),Mn=Cn[0],_n=Cn[1],kn=function(){var n=(0,i.A)((function(){var n;return(0,r.__generator)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),mn(""),[4,(0,d.px)((0,d.er)(s.R.POST_FORGOT_PASSWORD),"POST",{data:{email:gn}})];case 1:return(n=e.sent())&&1===(null===n||void 0===n?void 0:n._status)?_n({type:"success",content:(null===n||void 0===n?void 0:n._messages)&&(null===n||void 0===n?void 0:n._messages[0])}):_n({type:"danger",content:(null===n||void 0===n?void 0:n._messages)&&(null===n||void 0===n?void 0:n._messages[0])||o({id:"404.description"})}),[3,3];case 2:return e.sent(),_n({type:"danger",content:o({id:"404.description"})}),[3,3];case 3:return[2]}}))}));return function(){return n.apply(this,arguments)}}(),Yn=function(){var n=(0,i.A)((function(){var n,e;return(0,r.__generator)(this,(function(t){switch(t.label){case 0:return cn(!0),[4,(0,d.W3)((0,d.er)(s.R.GET_ADMIN_USER_LIST,{page:X||"",keyword:J||"",roleId:(null===j||void 0===j?void 0:j.value)||"".concat(b.MP.ADMIN,",").concat(b.MP.ORGANIZATION,",").concat(b.MP.BRANCH,",").concat(b.MP.SENIOR_BRANCH),hospitalId:B||"",branchId:L||"",countryId:O}),"GET",{headers:{accept:"application/json, text/plain, version=2.0.0"}})];case 1:return(n=t.sent())&&1===n._status&&(null===n||void 0===n?void 0:n._data)?(e=E(n._data.admins),$(null===n||void 0===n?void 0:n._data.pagination.last),U(e),on(null===n||void 0===n?void 0:n._data.pagination.total_items)):n&&5===n._status&&f.push("/admin/login"),cn(!1),[2]}}))}));return function(){return n.apply(this,arguments)}}();(0,c.useEffect)((function(){F.current?F.current=!1:Yn()}),[j,J,B,L,X]);var Dn,En=[o({id:"admin.users.userInfo",defaultMessage:"User info"}),{text:o({id:"admin.users.hospital",defaultMessage:"Hospital"}),className:"sp-hide td-hide"},{text:o({id:"admin.users.phoneNumber",defaultMessage:"Phone Number"}),className:"sp-hide"},{text:o({id:"admin.users.role",defaultMessage:"Role"}),className:"sp-hide"}],In={all:{label:o({id:"admin.users.allRoles",defaultMessage:"All Roles"}),value:""},admin:{label:o({id:"admin.users.hhgAdmin",defaultMessage:"HHG Admin"}),value:"1"},facility:{label:o({id:"admin.users.organizationManager",defaultMessage:"Organization Manager"}),value:"2"},senior_branch:{label:o({id:"admin.users.seniorBranchManager",defaultMessage:"Senior Branch Manager"}),value:"6"},branch:{label:o({id:"admin.users.branchManager",defaultMessage:"Branch Manager"}),value:"3"}},Nn=(null===j||void 0===j?void 0:j.label)?"".concat(null===j||void 0===j?void 0:j.label," ").concat(void 0===tn||an?"":"(".concat(tn,")")):"".concat("branch"===(null===I||void 0===I?void 0:I.role)?o({id:"admin.users.branchManager",defaultMessage:"Branch Manager"}):o({id:"admin.users.allRoles",defaultMessage:"All roles"})," ").concat(void 0===tn||an?"":"(".concat(tn,")")),Fn=function(){var n=(0,i.A)((function(){var n;return(0,r.__generator)(this,(function(e){switch(e.label){case 0:return sn?(An(!0),[4,(0,d.W3)((0,d.er)(s.R.POST_UPDATE_ADMIN,{userId:sn}),"DELETE")]):[2];case 1:return(n=e.sent())||xn({content:"An error occured"}),n&&1===(null===n||void 0===n?void 0:n._status)?(Yn(),fn(!1)):-1===(null===n||void 0===n?void 0:n._status)?xn({content:(null===n||void 0===n?void 0:n._messages)&&(null===n||void 0===n?void 0:n._messages[0])}):5===(null===n||void 0===n?void 0:n._status)&&f.push("/admin/login"),An(!1),[2]}}))}));return function(){return n.apply(this,arguments)}}(),zn=[b.U$p.ADMIN,b.U$p.SUPER,b.U$p.ORGANIZATION].includes((null===I||void 0===I?void 0:I.role)||"")?[{icon:(0,a.Y)(Y.A,{width:16,height:16}),name:o({id:"admin.user.resetPassword"}),action:function(n,e){mn(e.email)}},{icon:(0,a.Y)(k.A,{}),name:o({id:"admin.facilities.button.edit",defaultMessage:"Edit"}),action:function(n){f.push("/admin/users/".concat(n))}}]:[];return(null===I||void 0===I?void 0:I.role)===b.U$p.SUPER&&zn.push({icon:(0,a.Y)(D.A,{}),name:o({id:"admin.guide.delete",defaultMessage:"Delete"}),action:function(n){dn(n),fn(!0)}}),(0,a.FD)(m.MasterDetail,{activePage:"users",title:o({id:"page.title.users",defaultMessage:"Users management"}),children:[(0,a.Y)(u.y,{className:"alert",alert:Mn,dismissTime:1e4}),(0,a.Y)(p.AdminNavigation,{header:o({id:"page.title.users",defaultMessage:"Users management"}),hasHospitalSearch:!0}),(0,a.FD)(M.rf,{children:[(0,a.Y)(C.D,{type:"user",title:Nn,searchValue:W,selectSearchOptions:(Dn=null===I||void 0===I?void 0:I.role,Dn===b.U$p.ADMIN||Dn===b.U$p.SUPER?[In.all,In.admin,In.facility,In.senior_branch,In.branch]:Dn===b.U$p.ORGANIZATION?[In.all,In.facility,In.senior_branch,In.branch]:Dn===b.U$p.SENIOR_BRANCH?[In.all,In.senior_branch,In.branch]:[]),setCurrentPage:nn,setSearchValue:q,setSelectedSOption:function(n){H(n),nn(1)},selectSearchClassName:"branch"===(null===I||void 0===I?void 0:I.role)?"disabled":""}),an?(0,a.Y)("div",{style:{display:"flex",flexDirection:"column",marginLeft:8},children:(0,a.Y)(y.A,{width:"100%",height:50,count:3,style:{marginBottom:12}})}):(0,a.FD)(_.Bs,{children:[(0,a.Y)(g.b,{hasOrderColumn:!1,headings:En,data:V,isShowEmpty:!an&&0===(null===V||void 0===V?void 0:V.length),moreOptions:zn,onRowClicked:function(n){f.push("/admin/users/".concat(n))}}),Z>1&&(0,a.Y)(M.gw,{children:(0,a.Y)(l.P,{className:"pagination",pagesAmount:Z,currentPage:X,onChange:function(n){nn(n)}})})]})]}),(0,a.Y)(h.rI,{isMobile:!1,isShowing:pn,isLoading:yn,errorMessages:bn,onClose:function(){xn({content:""}),fn(!1)},onAccept:function(){Fn()},onDeny:function(){xn({content:""}),fn(!1)},title:o({id:"admin.delete.title",defaultMessage:"Are you sure to delete this user?"}),caption:o({id:"booking.patientInfo.remove.confirmationPopup.caption",defaultMessage:"We can not restore it after it has been already deleted"}),acceptButtonTitle:o({id:"booking.patientInfo.remove.confirmationPopup.acceptButton.title",defaultMessage:"Yes, delete"}),denyButtonTittle:o({id:"admin.users.noKeepIt",defaultMessage:"No, keep it"})}),(0,a.Y)(h.rI,{isMobile:!1,isShowing:!!gn,isLoading:!1,onClose:function(){mn("")},onAccept:function(){kn()},onDeny:function(){mn("")},caption:(0,a.Y)("p",{children:o({id:"admin.user.resetPassword.confilm"},{email:gn})}),title:o({id:"admin.user.resetPassword.receiptLink"}),acceptButtonTitle:o({id:"confirm",defaultMessage:"Confirm"}),denyButtonTittle:o({id:"cancel",defaultMessage:"No"})})]})}},53811:function(n,e,t){"use strict";t.r(e),t.d(e,{__N_SSP:function(){return qi},default:function(){return Ji}});var i=t(858),o=t(83776),r=t(2445),a=t(7367),c=t(73884),l=t(21768),s=t(44835),d=t(27516),u=t(3365),p=t(40959);function f(n){var e=n.footerInfo,t=n.f;return(0,u.oU)([{"@type":"MedicalWebPage","@id":"".concat(u.wd,"#MedicalWebPage"),url:u.wd,contentLocation:{"@type":"Country",name:u.jF[p.HgX]},about:t({id:"homePage.heroHeading"}),inLanguage:u.Np,name:t({id:"page.title.home"}),description:t({id:"home.seoDescription"}),isPartOf:{"@id":u.vq}}],e)}var h=t(59850),g=t(84091),m=t(19475),v=t(48403),b=t(33721),x=t(88491),w=t(73419),y=t(35507),A=t(12215),C=t.n(A),M=t(6442),_=t(36259),k=t(52785),Y=t(15596),D=t(35291),E=t(66079),I=t(32876),N=t.n(I),F=t(24537),z=t(4766),S=t(27317);function O(){var n=(0,F.A)(["\n background: ",";\n border-radius: 6px;\n padding: 40px;\n flex: 1;\n position: relative;\n "," {\n padding: 24px;\n }\n .background {\n .bg-circle {\n position: absolute;\n right: 0;\n top: 0;\n z-index: 0;\n }\n .bg-icon {\n position: absolute;\n right: 30px;\n top: 30px;\n z-index: 0;\n }\n }\n .content {\n position: relative;\n z-index: 2;\n }\n .heading {\n margin-top: 12px;\n }\n"]);return O=function(){return n},n}function T(){var n=(0,F.A)(["\n "," {\n display: flex;\n flex-wrap: wrap;\n .service {\n width: 50%;\n }\n }\n margin-top: 24px;\n\n .service {\n text-decoration: none;\n p {\n margin-bottom: 12px;\n width: fit-content;\n &:hover {\n cursor: pointer;\n text-decoration: underline;\n color: ",";\n }\n }\n }\n"]);return T=function(){return n},n}function B(){var n=(0,F.A)(["\n .container {\n display: flex;\n gap: 32px;\n "," {\n flex-direction: column;\n gap: 24px;\n }\n }\n"]);return B=function(){return n},n}var L=S.Ay.div.withConfig({componentId:"sc-6ea52bca-0"})(O(),(function(n){return n.theme.colors.neutral50}),z.M.tdDown),P=S.Ay.div.withConfig({componentId:"sc-6ea52bca-1"})(T(),z.M.tdUp,(function(n){return n.theme.colors.primaryBase})),j=S.Ay.section.withConfig({componentId:"sc-6ea52bca-2"})(B(),z.M.mbDown),H=function(n){var e=n.list,t=n.type,i=(0,M.A)().formatMessage,o=(0,w.$)().locale,a=void 0===o?"vi-VN":o,c=(0,x.d)().isMobileOrTablet?e.slice(0,4):e.slice(0,10);return(0,r.FD)(L,{children:[(0,r.FD)("div",{className:"background",children:[(0,r.Y)("img",{src:"".concat(p.JpE,"/images/careByCity.svg"),alt:"Background",className:"bg-circle"}),(0,r.Y)("img",{src:"".concat(p.JpE,"/images/").concat("DOCTOR"===t?"doctorBgIcon":"hospitalBgIcon",".svg"),alt:"Background",className:"bg-icon"})]}),(0,r.FD)("div",{className:"content",children:[(0,r.Y)(s.H,{tag:"h5",color:D.w.colors.secondaryDark,className:"heading",children:i("DOCTOR"===t?{id:"homePage.doctorsByCity",defaultMessage:"Doctors by City"}:{id:"homePage.hospitalsByCity",defaultMessage:"Hospitals by City"})}),(0,r.Y)(P,{children:c.map((function(n,e){return(0,r.Y)("div",{className:"service",children:(0,r.Y)(N(),{href:(0,g.U7)({citySlug:n.slug,type:t,locale:a}),children:(0,r.Y)("a",{className:"text-decor-none d-block","data-event-category":"Care","data-event-action":"DOCTOR"===t?"Doctor by Cities Click":"Hospital by Cities Click","data-event-label":"https://".concat(d.y[a]).concat(p.JpE).concat((0,g.U7)({citySlug:n.slug,type:t,locale:a})),children:(0,r.Y)(E.T,{size:"p3",color:D.w.colors.gray600,children:i("DOCTOR"===t?{id:"homePage.doctorsInCity",defaultMessage:"Doctors in {city}"}:{id:"homePage.hospitalsInCity",defaultMessage:"Hospitals in {city}"},{city:n.name})})})})},e)}))})]})]})},R=function(n){var e=n.listCities;return(0,r.Y)(r.FK,{children:e.length>0&&(0,r.Y)(j,{className:"py-[80px] mb-py-[48px]",children:(0,r.FD)(m.mc,{className:"container",children:[(0,r.Y)(H,{list:e,type:"HOSPITAL"}),(0,r.Y)(H,{list:e,type:"DOCTOR"})]})})})},V=t(76020);function U(){var n=(0,F.A)(["\n overflow: hidden;\n aspect-ratio: 9 / 2;\n "," {\n aspect-ratio: 5/3;\n }\n\n .mantine-Carousel-indicators {\n .mantine-Carousel-indicator {\n background: ",";\n opacity: 1;\n &[data-active='true'] {\n background: ",";\n border: 1px solid ",";\n }\n }\n }\n"]);return U=function(){return n},n}function G(){var n=(0,F.A)(["\n text-align: center;\n"]);return G=function(){return n},n}function W(){var n=(0,F.A)([""]);return W=function(){return n},n}function q(){var n=(0,F.A)(["\n aspect-ratio: 9/2;\n -webkit-user-drag: none;\n position: relative;\n .bg-image {\n z-index: -1;\n }\n\n "," {\n aspect-ratio: 5/3;\n }\n .banner-container {\n height: 100%;\n display: flex;\n align-items: center;\n padding-bottom: 56px;\n\n "," {\n padding-left: 16px;\n padding-right: 16px;\n }\n\n "," {\n padding-bottom: 48px;\n }\n }\n"]);return q=function(){return n},n}function J(){var n=(0,F.A)(["\n width: 50%;\n\n "," {\n width: 65%;\n }\n "," {\n width: 100%;\n }\n .heading-text {\n color: ",";\n font-size: 40px;\n font-weight: 700;\n line-height: 52px;\n "," {\n font-size: 26px;\n line-height: 34px;\n margin-bottom: 0;\n }\n }\n .description {\n color: ",";\n font-size: 18px;\n font-style: normal;\n line-height: 28px;\n margin-top: 15px;\n\n "," {\n display: none;\n }\n\n "," {\n display: none;\n }\n }\n"]);return J=function(){return n},n}function K(){var n=(0,F.A)(["\n user-drag: none;\n -webkit-user-drag: none;\n text-decoration: none;\n"]);return K=function(){return n},n}var Z,$=S.Ay.section.withConfig({componentId:"sc-b7f17501-0"})(U(),z.M.mbDown,(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.blue600}),(function(n){return n.theme.colors.blue600})),Q=(S.Ay.div.withConfig({componentId:"sc-b7f17501-1"})(G()),S.Ay.div.withConfig({componentId:"sc-b7f17501-2"})(W()),S.Ay.div.withConfig({componentId:"sc-b7f17501-3"})(q(),z.M.mbDown,z.M.tdDown,z.M.mbDown)),X=S.Ay.div.withConfig({componentId:"sc-b7f17501-4"})(J(),z.M.pcDown,z.M.mbDown,(function(n){return n.theme.colors.gray800}),z.M.mbDown,(function(n){return n.theme.colors.gray600}),z.M.tdDown,z.M.mbDown),nn=S.Ay.a.withConfig({componentId:"sc-b7f17501-5"})(K()),en=t(95456);function tn(){return tn=Object.assign?Object.assign.bind():function(n){for(var e=1;e1}),[h,e]),b=(0,c.useMemo)((function(){return e&&e.length>1}),[e]);return(0,c.useEffect)((function(){var n=function(){var n=document.body.clientWidth;s(n>=1170?(n-1170)/2+16:0)};return window.addEventListener("resize",n),n(),function(){window.removeEventListener("resize",n)}}),[]),(0,c.useEffect)((function(){var n=setInterval((function(){null===u||void 0===u||u.scrollNext()}),1e4);return function(){clearInterval(n)}}),[e,i,u]),(0,r.Y)($,{children:(0,r.Y)(V.F,{maw:"100%",draggable:!0,loop:!0,initialSlide:0,skipSnaps:!0,withControls:v,styles:m,withIndicators:b,getEmblaApi:p,nextControlIcon:(0,r.Y)(rn,{}),previousControlIcon:(0,r.Y)(cn,{}),onSlideChange:function(n){o(n)},children:e.map((function(n,e){return(0,r.Y)(V.F.Slide,{children:(0,r.Y)(ln,{banner:n,isLazy:0!==e},n.id)},n.id)}))})})},dn=t(74029),un=t(10297),pn=t.n(un);function fn(){var n=(0,F.A)(["\n background: ",";\n\n .homepage-content {\n .heading {\n color: ",";\n font-size: 22px;\n font-weight: 700;\n line-height: 32px;\n margin: 0;\n\n "," {\n font-size: 18px;\n line-height: 26px;\n }\n }\n "," {\n padding: 0 16px;\n }\n }\n\n .mantine-Carousel-indicators {\n .mantine-Carousel-indicator {\n background: ",";\n opacity: 1;\n &[data-active='true'] {\n background: ",";\n border: 0.5px solid ",";\n }\n }\n }\n"]);return fn=function(){return n},n}function hn(){var n=(0,F.A)(["\n display: flex;\n gap: 24px;\n padding: 40px 0;\n border-bottom: 1px solid\n ",";\n\n .left-zone {\n flex: 0 0 calc(40% - 12px);\n max-width: calc(40% - 12px);\n\n "," {\n flex: 0 0 100%;\n max-width: 100%;\n }\n }\n\n "," {\n flex-direction: column;\n }\n\n .carousel-container {\n border-radius: 12px;\n background-color: ",";\n padding: 56px;\n flex: 0 0 calc(60% - 12px);\n max-width: calc(60% - 12px);\n\n "," {\n flex: 0 0 100%;\n max-width: 100%;\n padding: 16px;\n }\n }\n"]);return hn=function(){return n},n}function gn(){var n=(0,F.A)(["\n padding-bottom: 80px;\n\n "," {\n padding-bottom: 40px;\n }\n\n .wrapper-avatar {\n display: flex;\n gap: 16px;\n }\n\n .avatar {\n width: 48px;\n height: 48px;\n\n img {\n width: 100%;\n height: 100%;\n border-radius: 100%;\n object-fit: cover;\n }\n }\n\n .name {\n color: ",";\n font-size: 16px;\n font-weight: 600;\n line-height: 24px;\n\n "," {\n font-size: 14px;\n }\n }\n\n .address {\n color: ",";\n font-size: 14px;\n font-weight: 400;\n line-height: 22px;\n }\n\n .feedback {\n line-height: 28px;\n }\n"]);return gn=function(){return n},n}function mn(){var n=(0,F.A)(["\n display: flex;\n flex-direction: column;\n gap: 16px;\n\n "," {\n gap: 8px;\n }\n"]);return mn=function(){return n},n}function vn(){var n=(0,F.A)(["\n color: ",";\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n line-height: 24px;\n gap: 16px;\n align-items: center;\n display: flex;\n\n "," {\n font-size: 14px;\n }\n"]);return vn=function(){return n},n}function bn(){var n=(0,F.A)(["\n display: flex;\n gap: 10px;\n margin-bottom: 16px;\n\n svg {\n flex: 0 0 24px;\n margin-top: 4px;\n }\n"]);return bn=function(){return n},n}var xn,wn,yn=S.Ay.section.withConfig({componentId:"sc-56571aee-0"})(fn(),(function(n){return n.theme.colors.neutral50}),(function(n){return n.theme.colors.gray800}),z.M.mbDown,z.M.mbDown,(function(n){return n.theme.colors.neutral100}),(function(n){return n.theme.colors.blue600}),(function(n){return n.theme.colors.white})),An=S.Ay.div.withConfig({componentId:"sc-56571aee-1"})(hn(),(function(n){return n.theme.colors.neutral100}),z.M.mbDown,z.M.mbDown,(function(n){return n.theme.colors.white}),z.M.mbDown),Cn=S.Ay.div.withConfig({componentId:"sc-56571aee-2"})(gn(),z.M.mbDown,(function(n){return n.theme.colors.gray800}),z.M.mbDown,(function(n){return n.theme.colors.gray600})),Mn=S.Ay.ul.withConfig({componentId:"sc-56571aee-3"})(mn(),z.M.mbDown),_n=S.Ay.li.withConfig({componentId:"sc-56571aee-4"})(vn(),(function(n){return n.theme.colors.gray600}),z.M.mbDown),kn=S.Ay.div.withConfig({componentId:"sc-56571aee-5"})(bn()),Yn={description:"Ng\u01b0\u1eddi d\xf9ng ngh\u0129 g\xec v\u1ec1 n\u1ec1n t\u1ea3ng \u0111\u1eb7t l\u1ecbch Hello Bacsi? N\u1ec1n t\u1ea3ng h\u1ed7 tr\u1ee3 b\u1ec7nh nh\xe2n k\u1ebft n\u1ed1i tr\u1ef1c ti\u1ebfp v\u1edbi c\xe1c b\xe1c s\u0129, b\u1ec7nh vi\u1ec7n v\xe0 ph\xf2ng kh\xe1m d\xf9 b\u1ea1n \u0111ang \u1edf b\u1ea5t k\u1ef3 \u0111\xe2u.",subDescriptions:["\u0110\u1eb7t l\u1ecbch nhanh ch\xf3ng","Ch\u1ee7 \u0111\u1ed9ng th\u1eddi gian","D\u1ec5 d\xe0ng k\u1ebft n\u1ed1i v\u1edbi b\xe1c s\u0129"],feedbacks:[{id:1,message:"M\xecnh \u0111\u1eb7t g\xf3i kh\xe1m t\u1ed5ng qu\xe1t xin vi\u1ec7c tr\xean Hello Bacsi. Khi t\u1edbi b\u1ec7nh vi\u1ec7n c\xf3 b\u1ea1n nh\xe2n vi\xean x\xe1c nh\u1eadn l\u1ecbch h\u1eb9n r\u1ed3i v\xe0o kh\xe1m lu\xf4n, kh\xe1 l\xe0 ti\u1ec7n l\u1ee3i.",user:"Jang Tr\u1ea7n",address:"H\u1ed3 Ch\xed Minh",avatar:"https://cdn-healthcare.hellohealthgroup.com/2023/10/TranLinhGiang-photo.JPG"},{id:2,message:"B\xe9 ch\u01b0\u1edbng \u0103n b\u1ea5t th\u01b0\u1eddng n\xean m\xecnh t\xecm b\xe1c s\u0129 dinh d\u01b0\u1ee1ng kh\xe1m cho b\xe9. \u0110\u1eb7t xong th\xec c\xf3 b\u1ea1n g\u1ecdi \u0111i\u1ec7n x\xe1c nh\u1eadn l\u1ecbch h\u1eb9n ngay l\xe0m m\xecnh c\u0169ng y\xean t\xe2m khi \u0111\u1ebfn ph\xf2ng kh\xe1m.",user:"Minh Qu\xe2n",address:"H\u1ed3 Ch\xed Minh",avatar:"https://cdn-healthcare.hellohealthgroup.com/2024/05/399910572_2255382887988893_7638162135008804004_n.jpg"},{id:3,message:"B\u1ed1 m\u1eb9 l\u1edbn tu\u1ed5i, ch\xe2n y\u1ebfu n\xean m\xecnh c\u0169ng ng\u1ea1i \u0111\u01b0a \u0111i kh\xe1m xa. L\xean Hello Bacsi th\xec ki\u1ebfm \u0111\u01b0\u1ee3c ph\xf2ng kh\xe1m g\u1ea7n nh\xe0 n\xean \u0111\u1eb7t lu\xf4n, \u0111\u1ebfn ch\u1ec9 vi\u1ec7c x\xe1c nh\u1eadn th\xf4ng tin r\u1ed3i v\xe0o kh\xe1m, kh\xf4ng ph\u1ea3i ch\u1edd qu\xe1 l\xe2u.",user:"Kim Thu\u1eadn",address:"H\xe0 N\u1ed9i",avatar:"https://cdn-healthcare.hellohealthgroup.com/2024/05/351468920_660337602799142_5522556505484125412_n.jpg"},{id:4,message:"M\xecnh \u0111\u1eb7t l\u1ecbch kh\xe1m thai \u0111\u1ecbnh k\u1ef3 v\u1edbi BS. Th\u1ee7y tr\xean Hello Bacsi. B\xe1c chu \u0111\xe1o, t\u1eadn t\xe2m, \u0111\u01b0\u1ee3c nhi\u1ec1u ch\u1ecb \u0111\u1ed3ng nghi\u1ec7p gi\u1edbi thi\u1ec7u l\u1ea1i. \u0110\u1ebfn gi\u1edd b\xe9 nh\xe0 c\u0169ng \u0111\u01b0\u1ee3c g\u1ea7n 1 th\xe1ng r\u1ed3i, tr\u1ed9m v\xeda m\u1eb9 tr\xf2n con vu\xf4ng, r\u1ea5t c\u1ea3m \u01a1n b\xe1c.",user:"Th\xfay Ph\u1ea1m",address:"H\u1ed3 Ch\xed Minh",avatar:"https://cdn-healthcare.hellohealthgroup.com/2024/05/425537255_7947957171886506_160633297562532715_n.jpg"},{id:5,message:"G\u1ea7n \u0111\xe2y m\xecnh \u0111au b\u1ee5ng kinh b\u1ea5t th\u01b0\u1eddng n\xean quy\u1ebft \u0111\u1ecbnh \u0111\u1eb7t g\xf3i kh\xe1m ph\u1ee5 khoa t\u1ed5ng qu\xe1t tr\xean n\u1ec1n t\u1ea3ng, c\xf3 \u01b0u \u0111\xe3i n\xean chi ph\xed c\u0169ng kh\xf4ng qu\xe1 m\u1eafc. Quy tr\xecnh \u0111\u01a1n gi\u1ea3n v\xec m\xecnh \u0111\xe3 thanh to\xe1n tr\u01b0\u1edbc. M\xecnh c\u1ea3m gi\xe1c an t\xe2m khi \u0111\u1eb7t l\u1ecbch kh\xe1m nh\u1eefng v\u1ea5n \u0111\u1ec1 s\u1ee9c kh\u1ecfe ph\u1ee5 n\u1eef nh\u01b0 v\u1eady.",user:"Ng\u1ecdc Tr\xe2n",address:"H\xe0 N\u1ed9i",avatar:"https://cdn-healthcare.hellohealthgroup.com/2024/05/z5371814262802_a24738efc77b669c6324fb90fc875224.jpg"}]},Dn={description:"Keuntungan booking melalui Hello Sehat",subDescriptions:["Pemesanan cepat","Fleksibel mengatur waktu","Terhubung dengan dokter secara mudah"],feedbacks:[{id:1,message:"Platform Hello Sehat membantu terhubung langsung dengan dokter, rumah sakit, dan klinik di mana pun kami berada.",user:"Nuraini Maulidiana",address:"Tangerang",avatar:"https://cdn-healthcare.hellohealthgroup.com/2023/10/Aini.jpg"},{id:2,message:"Staf admin memberikan bantuan dan informasi soal proses booking. Rumah sakit/klinik juga menawarkan pilihan untuk memenuhi kebutuhan pemeriksaan.",user:"Vitto Radityo",address:"Jakarta",avatar:"https://cdn-healthcare.hellohealthgroup.com/2023/10/Vitto.jpg"},{id:3,message:"Dokter bekerja profesional dan berdedikasi dalam memberikan nasihat, sekaligus jawab pertanyaan dengan detail.",user:"Candra Arifiyanto",address:"Depok",avatar:"https://cdn-healthcare.hellohealthgroup.com/2023/10/Candra.jpg"},{id:4,message:"Dokter memberikan penjelasan jelas mengenai kondisi medis dan memberikan anjuran yang tepat. Pilihan waktu booking beragam, cocok untuk berbagai keadaan.",user:"Janett Christina",address:"Jakarta",avatar:"https://cdn-healthcare.hellohealthgroup.com/2023/10/Janett.jpg"},{id:5,message:"Dokter memberikan konsultasi secara baik dan proses pemesanan juga lancar berkat dukungan costumer service.",user:"Satrio Cahyadi",address:"Jakarta",avatar:"https://cdn-healthcare.hellohealthgroup.com/2023/10/Satrio.jpg"}]},En=t(87809),In=t(79951),Nn=t(71082);function Fn(){return Fn=Object.assign?Object.assign.bind():function(n){for(var e=1;e0&&(0,r.FD)("div",{className:"course-item",children:[(0,r.Y)(Re.A,{}),(0,r.FD)("div",{className:"course-item-text",children:[(0,r.Y)("span",{className:"text-[#00B16A] font-semibold",children:(0,g.UN)(e.price,i)}),"\xa0\xa0",e.original_price&&(0,r.Y)("span",{className:"text-[#8c8c8c] font-semibold line-through",children:(0,g.UN)(e.original_price,i)})]})]}),(0,r.FD)("div",{className:"course-item",children:[(0,r.Y)(He.A,{}),(0,r.Y)("div",{className:"course-item-text",children:e.hospitalName})]}),(0,r.FD)("div",{className:"course-item",children:[(0,r.Y)(je,{}),(0,r.Y)("div",{className:"course-item-text",children:e.city})]})]})]}),(0,r.Y)(de.B,{type:"button",size:"md",variant:"tertiary",color:"secondary",className:"btn-booking",children:t({id:"booking.buyNow.title",defaultMessage:"Buy now"})})]}),l&&(0,r.FD)("div",{className:"rating-block",children:[(0,r.Y)(Ve.A,{}),(0,r.FD)("div",{className:"rating",children:[l,"/5"]})]})]})}))},qe=function(n){var e,t,a=n.topCourses,l=(0,M.A)().formatMessage,u=(0,w.$)(),f=u.locale,v=(0,x.d)(),b=v.isMobile,y=v.isMobileOrTablet,A=(0,c.useState)("all"),C=A[0],_=A[1],k=(0,c.useState)((null===a||void 0===a?void 0:a.servicesList)||[]),Y=k[0],E=k[1],I={"data-event-category":"Special Courses","data-event-action":"See More","data-event-label":"https://".concat(d.y[f]).concat(p.JpE,"/").concat(null===(e=p.y1A[f])||void 0===e?void 0:e.CURRENT,"/").concat(null===(t=p.y1A[f])||void 0===t?void 0:t.SERVICE,"?course=1")},N={"data-event-category":"Special Courses","data-event-action":"Select Location","data-event-label":"https://".concat(d.y[f]).concat(p.JpE)},F=(0,c.useMemo)((function(){return Y.length?Y[0].services:[]}),[Y]),z=(0,c.useMemo)((function(){return{container:{gap:"16px"},controls:{height:40,padding:0,top:"calc(50% - 20px)",left:"-50px",right:"-50px","&:hover":{left:"-56px",right:"-56px"}},control:{opacity:1,border:0,boxShadow:"none",color:"#595959",fontSize:"16px",width:28,height:28,backgroundColor:"#fff",fill:"#fff",filter:"drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04)) drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0px 16px 24px rgba(0, 0, 0, 0.06))","&:hover":{width:40,height:40},"&[data-inactive]":{opacity:"0",cursor:"default"}},indicator:{width:8,height:8,backgroundColor:"#E4E8EC"}}}),[y]),S=function(){var n=(0,i.A)((function(n){var e,t,i;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return[4,(0,g.px)((0,g.er)(h.R.GET_HOMEPAGE_TOP_COURSE,{cityId:"all"===n?"":n}),"GET")];case 1:return 1===(e=o.sent())._status&&(null===e||void 0===e?void 0:e._data.top_services)&&((i=(0,dn.sz)(null===e||void 0===e||null===(t=e._data)||void 0===t?void 0:t.top_services))&&(null===i||void 0===i?void 0:i.servicesList)?E(i.servicesList):E([])),[2]}}))}));return function(e){return n.apply(this,arguments)}}();return(0,r.Y)(De,{children:(0,r.FD)(m.mc,{className:"top-course-container",children:[(0,r.FD)(Ee,{children:[(0,r.FD)(ze,{children:[(0,r.Y)(Ge,{}),(0,r.Y)(s.H,{tag:"h3",color:D.w.colors.green800,className:"heading",children:l({id:"special.course.title",defaultMessage:"Special course"})})]}),(0,r.FD)(Se,{children:[(0,r.Y)(ge,(0,Bn.A)((0,Tn.A)({placeholder:l({id:"common.city.label",defaultMessage:"Province/City"}),data:[],className:"address-select-field",home_type:"services",moreParmas:{is_course:1},searchable:!0,value:String(C)},N),{onChange:function(n){_(n),S(String(n))}})),(0,r.FD)(Fe,(0,Bn.A)((0,Tn.A)({onClick:function(){var n,e,t="/".concat(null===(n=p.y1A[f])||void 0===n?void 0:n.CURRENT,"/").concat(null===(e=p.y1A[f])||void 0===e?void 0:e.SERVICE,"?course=1");u.push(t)}},I),{children:[l({id:"landing.viewAll",defaultMessage:"View all"}),(0,r.Y)(Te.A,{})]}))]})]}),(0,r.Y)(Ie,{children:(0,r.Y)(Ln.a,{draggable:!0,dragFree:!0,initialSlide:0,skipSnaps:!0,align:"start",withControls:!y,styles:z,slidesToScroll:b?1:4,nextControlIcon:(0,r.Y)(Nn.A,{}),previousControlIcon:(0,r.Y)(In.A,{}),withIndicators:!1,children:F.map((function(n,e){return(0,r.Y)(Oe,{className:0===e?"first-wrapper-column-course":"",children:(0,r.Y)(We,{course:n},e)},"top-course-column-".concat(e))}))})})]})})};function Je(){var n=(0,F.A)(["\n padding: 0;\n background: ",";\n padding: 40px 0;\n\n .top-hospital-container {\n padding: 0 16px;\n "," {\n padding: 0;\n }\n .heading {\n color: ",";\n font-size: 22px;\n font-weight: 700;\n line-height: 32px;\n margin: 0;\n\n "," {\n font-size: 18px;\n line-height: 26px;\n }\n }\n }\n\n "," {\n padding: 24px 0;\n }\n .heading {\n color: ",";\n font-size: 32px;\n font-weight: 700;\n line-height: 42px;\n margin: 10px 0;\n\n "," {\n font-size: 20px;\n line-height: 26px;\n }\n }\n"]);return Je=function(){return n},n}function Ke(){var n=(0,F.A)(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 24px;\n\n "," {\n padding: 0 16px;\n flex-direction: column;\n align-items: flex-start;\n gap: 16px;\n margin-bottom: 16px;\n }\n"]);return Ke=function(){return n},n}function Ze(){var n=(0,F.A)(["\n .container {\n gap: 16px;\n margin-bottom: 26px;\n "," {\n margin-bottom: 0;\n }\n .section {\n width: 272px;\n .grid-layout {\n grid-column-gap: 16px;\n grid-row-gap: 16px;\n\n .item-grid {\n width: 272px;\n }\n }\n }\n }\n\n "," {\n "," {\n margin-top: 0;\n }\n .container {\n .section {\n .grid-layout {\n grid-column-gap: 12px;\n padding-right: 12px;\n\n "," {\n grid-column-gap: 0;\n padding-right: 0;\n }\n }\n }\n }\n }\n\n .bullet-nav {\n "," {\n bottom: -56px;\n }\n\n "," {\n bottom: -40px;\n }\n }\n"]);return Ze=function(){return n},n}function $e(){var n=(0,F.A)(["\n display: flex;\n flex-wrap: wrap;\n gap: 16px;\n\n .infinite-scroll-component {\n display: flex;\n flex-wrap: wrap;\n gap: 16px;\n }\n\n "," {\n margin: 0 16px;\n gap: 12px;\n }\n\n .hospital-wrapper-item {\n margin: 0;\n height: 290px;\n padding: 16px;\n\n "," {\n width: 100%;\n padding: 32px 12px 12px 12px;\n }\n\n .hospital-info {\n background-color: ",";\n padding: 0;\n height: auto;\n }\n }\n"]);return $e=function(){return n},n}function Qe(){var n=(0,F.A)(["\n &:hover {\n .hospital-wrapper-item {\n border: 1px solid ",";\n box-shadow: 0px 8px 40px 0px rgba(0, 0, 0, 0.1);\n\n .hospital-info {\n background: ",";\n\n .btn-booking {\n background: ",";\n border: 1px solid\n ",";\n color: ",";\n }\n }\n }\n }\n\n &.link-hospital-ms-my {\n .hospital-wrapper-item-ms-my {\n "," {\n gap: 8px;\n }\n .hospital-info {\n background: ",";\n }\n }\n\n "," {\n width: 100%;\n }\n }\n"]);return Qe=function(){return n},n}function Xe(){var n=(0,F.A)(["\n border-radius: 12px;\n border: 1px solid ",";\n background: ",";\n transition: all 0.3s ease;\n display: flex;\n flex-direction: column;\n height: 336px;\n width: 272px;\n padding: 16px 8px 8px 8px;\n gap: 16px;\n cursor: pointer;\n margin-left: 16px;\n position: relative;\n\n .logo {\n height: 64px;\n display: flex;\n justify-content: center;\n position: relative;\n img {\n height: 100%;\n cursor: pointer;\n }\n }\n\n .hospital-name {\n color: ",";\n font-size: 16px;\n font-weight: 600;\n line-height: 24px;\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n cursor: pointer;\n text-align: center;\n flex: 1;\n\n &.hospital-name-two-line {\n -webkit-line-clamp: 2;\n flex: none;\n }\n }\n\n .hospital-info {\n border-radius: 8px;\n background: ",";\n padding: 8px;\n height: 144px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n justify-content: space-between;\n }\n\n .hospital-address-wrapper {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n\n .hospital-address {\n gap: 5px;\n display: flex;\n\n svg {\n flex: 0 0 16px;\n }\n\n .address {\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n font-size: 12px;\n font-weight: 400;\n line-height: 18px;\n color: ",";\n\n &.address-two-line {\n -webkit-line-clamp: 2;\n }\n }\n }\n\n .hospital-rating {\n position: absolute;\n top: 8px;\n right: 8px;\n padding: 3px 8px 3px 4px;\n display: flex;\n gap: 2px;\n align-items: center;\n display: none;\n\n .rating {\n color: ",";\n font-size: 12px;\n font-weight: 600;\n line-height: 18px;\n }\n }\n\n .btn-booking {\n width: 100%;\n border-radius: 8px;\n color: ",";\n font-weight: 600;\n\n &:hover {\n border-color: "," !important;\n }\n }\n"]);return Xe=function(){return n},n}function nt(){var n=(0,F.A)(["\n color: ",";\n font-size: 14px;\n font-weight: 600;\n line-height: 24px;\n cursor: pointer;\n gap: 10px;\n display: flex;\n align-items: center;\n"]);return nt=function(){return n},n}function et(){var n=(0,F.A)(["\n display: flex;\n align-items: center;\n gap: 10px;\n"]);return et=function(){return n},n}function tt(){var n=(0,F.A)(["\n display: flex;\n align-items: center;\n gap: 24px;\n justify-content: space-between;\n\n .address-select-field {\n "," {\n flex: 1;\n }\n }\n\n "," {\n width: 100%;\n }\n"]);return tt=function(){return n},n}function it(){var n=(0,F.A)(["\n display: flex;\n flex-direction: column;\n gap: 16px;\n\n &.first-wrapper-column-hospital {\n .hospital-wrapper-item {\n "," {\n margin-left: 0;\n }\n }\n }\n"]);return it=function(){return n},n}function ot(){var n=(0,F.A)(["\n padding-top: 24px;\n width: 340px;\n margin: 0 auto;\n"]);return ot=function(){return n},n}var rt=S.Ay.section.withConfig({componentId:"sc-570a4ecb-0"})(Je(),(function(n){return n.theme.colors.neutral50}),z.M.mbDown,(function(n){return n.theme.colors.gray800}),z.M.mbDown,z.M.mbDown,(function(n){return n.theme.colors.gray800}),z.M.mbDown),at=S.Ay.div.withConfig({componentId:"sc-570a4ecb-1"})(Ke(),z.M.mbDown),ct=S.Ay.div.withConfig({componentId:"sc-570a4ecb-2"})(Ze(),z.M.mbDown,z.M.tdDown,z.M.mbDown,z.M.mbDown,z.M.tdUp,z.M.tdDown),lt=S.Ay.div.withConfig({componentId:"sc-570a4ecb-3"})($e(),z.M.mbDown,z.M.mbDown,(function(n){return n.theme.colors.white})),st=S.Ay.a.withConfig({componentId:"sc-570a4ecb-4"})(Qe(),(function(n){return n.theme.colors.blue200}),(function(n){return n.theme.colors.blue50}),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.white}),z.M.mbDown,(function(n){return n.theme.colors.white}),z.M.mbDown),dt=S.Ay.div.withConfig({componentId:"sc-570a4ecb-5"})(Xe(),(function(n){return n.theme.colors.neutral100}),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.colors.neutral50}),(function(n){return n.theme.colors.gray600}),(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.colors.blue700})),ut=S.Ay.div.withConfig({componentId:"sc-570a4ecb-6"})(nt(),(function(n){return n.theme.colors.blue600})),pt=S.Ay.div.withConfig({componentId:"sc-570a4ecb-7"})(et()),ft=S.Ay.div.withConfig({componentId:"sc-570a4ecb-8"})(tt(),z.M.mbDown,z.M.mbDown),ht=S.Ay.div.withConfig({componentId:"sc-570a4ecb-9"})(it(),z.M.mbUp),gt=S.Ay.div.withConfig({componentId:"sc-570a4ecb-10"})(ot());function mt(){var n=(0,F.A)(["\n padding: 40px 0;\n background-color: ",";\n\n "," {\n padding: 24px 0;\n }\n\n .top-doctor-container {\n padding: 0 16px;\n "," {\n padding: 0;\n }\n .heading {\n color: ",";\n font-size: 22px;\n font-weight: 700;\n line-height: 32px;\n margin: 0;\n\n "," {\n font-size: 18px;\n line-height: 26px;\n }\n }\n }\n\n .description {\n color: ",";\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n margin: 0 auto;\n width: 60%;\n\n "," {\n flex: 1;\n font-size: 14px;\n line-height: 22px;\n width: 100%;\n }\n }\n\n .mantine-Carousel-indicators {\n .mantine-Carousel-indicator {\n &[data-active='true'] {\n background: ",";\n }\n }\n }\n\n .mantine-Carousel-viewport {\n overflow: hidden;\n }\n"]);return mt=function(){return n},n}function vt(){var n=(0,F.A)(["\n text-align: center;\n"]);return vt=function(){return n},n}function bt(){var n=(0,F.A)(["\n margin-top: 10px;\n .container {\n margin-bottom: 26px;\n "," {\n margin-bottom: 0;\n }\n .section {\n padding: 16px;\n .grid-layout {\n grid-column-gap: 15px;\n grid-row-gap: 15px;\n }\n }\n }\n\n "," {\n "," {\n margin-top: 0;\n }\n .container {\n .section {\n .grid-layout {\n grid-column-gap: 12px;\n padding-right: 12px;\n\n "," {\n grid-column-gap: 0;\n padding-right: 0;\n }\n }\n }\n }\n }\n\n .bullet-nav {\n "," {\n bottom: -56px;\n }\n\n "," {\n bottom: -40px;\n }\n }\n"]);return bt=function(){return n},n}function xt(){var n=(0,F.A)(["\n border-radius: 12px;\n background: ",";\n border: 1px solid ",";\n transition: all 0.3s ease;\n justify-content: space-between;\n display: flex;\n flex-direction: column;\n position: relative;\n gap: 16px;\n padding: 16px 8px 8px;\n cursor: pointer;\n\n .logo {\n width: 100%;\n display: flex;\n justify-content: center;\n border-radius: 100%;\n }\n\n .doctor-main-info {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n flex: 1;\n\n .doctor-name {\n color: ",";\n text-align: center;\n font-size: 16px;\n font-weight: 600;\n line-height: 24px;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n overflow: hidden;\n text-overflow: ellipsis;\n line-clamp: 2;\n -webkit-box-orient: vertical;\n }\n\n .doctor-specialty {\n color: ",";\n text-align: center;\n font-size: 12px;\n font-weight: 400;\n line-height: 18px;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n line-clamp: 1;\n -webkit-box-orient: vertical;\n }\n }\n\n .doctor-info {\n border-radius: 8px;\n background: ",";\n padding: 8px;\n max-height: 128px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n justify-content: space-between;\n }\n\n .doctor-info-wrapper {\n display: flex;\n flex-direction: column;\n gap: 4px;\n\n .doctor-item {\n gap: 8px;\n display: flex;\n\n &:last-child {\n margin-bottom: 0;\n }\n\n &-text {\n color: ",";\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 18px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n &--twoLine {\n display: -webkit-box;\n -webkit-line-clamp: 2;\n overflow: hidden;\n text-overflow: ellipsis;\n line-clamp: 2;\n -webkit-box-orient: vertical;\n white-space: initial;\n }\n }\n\n svg {\n flex: 0 0 16px;\n }\n }\n }\n\n .doctor-rating {\n position: absolute;\n top: 8px;\n right: 8px;\n padding: 3px 8px 3px 4px;\n display: flex;\n gap: 2px;\n align-items: center;\n\n .rating {\n color: ",";\n font-size: 12px;\n font-weight: 600;\n line-height: 18px;\n }\n }\n\n .infor {\n position: relative;\n flex: 1;\n .doctor-name {\n color: ",";\n font-size: 18px;\n font-style: normal;\n font-weight: 600;\n line-height: 28px;\n margin-bottom: 5px;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n overflow: hidden;\n text-overflow: ellipsis;\n line-clamp: 2;\n -webkit-box-orient: vertical;\n cursor: pointer;\n\n "," {\n font-size: 16px;\n line-height: 24px;\n }\n }\n\n .doctor-item {\n gap: 5px;\n display: flex;\n margin-bottom: 5px;\n padding-left: 4px;\n\n &:last-child {\n margin-bottom: 0;\n }\n\n &-text {\n color: ",";\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 22px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n &--twoLine {\n display: -webkit-box;\n -webkit-line-clamp: 2;\n overflow: hidden;\n text-overflow: ellipsis;\n line-clamp: 2;\n -webkit-box-orient: vertical;\n white-space: initial;\n }\n }\n\n svg {\n margin-top: 2px;\n flex: 0 0 16px;\n }\n }\n }\n\n .btn-booking {\n width: 100%;\n border-radius: 8px;\n color: ",";\n font-weight: 600;\n\n &:hover {\n border-color: "," !important;\n }\n }\n"]);return xt=function(){return n},n}function wt(){var n=(0,F.A)(["\n width: 64px;\n height: 64px;\n border-radius: 100%;\n cursor: pointer;\n"]);return wt=function(){return n},n}function yt(){var n=(0,F.A)(["\n display: flex;\n flex-direction: column;\n gap: 16px;\n\n "," {\n gap: 12px;\n\n &.top-doctor-column-0 {\n margin-left: 16px;\n }\n }\n"]);return yt=function(){return n},n}function At(){var n=(0,F.A)(["\n &:hover {\n .doctor-wrapper-item {\n border: 1px solid ",";\n box-shadow: 0px 8px 40px 0px rgba(0, 0, 0, 0.1);\n\n .doctor-info {\n background: ",";\n\n .btn-booking {\n background: ",";\n border: 1px solid\n ",";\n color: ",";\n }\n }\n }\n }\n"]);return At=function(){return n},n}var Ct,Mt,_t=S.Ay.section.withConfig({componentId:"sc-ca5b7151-0"})(mt(),(function(n){return n.theme.colors.blue50}),z.M.mbDown,z.M.mbDown,(function(n){return n.theme.colors.gray800}),z.M.mbDown,(function(n){return n.theme.colors.gray600}),z.M.mbDown,(function(n){return n.theme.colors.blue600})),kt=(S.Ay.div.withConfig({componentId:"sc-ca5b7151-1"})(vt()),S.Ay.div.withConfig({componentId:"sc-ca5b7151-2"})(bt(),z.M.mbDown,z.M.tdDown,z.M.mbDown,z.M.mbDown,z.M.tdUp,z.M.tdDown)),Yt=S.Ay.div.withConfig({componentId:"sc-ca5b7151-3"})(xt(),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.colors.gray600}),(function(n){return n.theme.colors.neutral50}),(function(n){return n.theme.colors.gray600}),(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.colors.gray800}),z.M.tdDown,(function(n){return n.theme.colors.gray600}),(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.colors.blue700})),Dt=(0,S.Ay)(en.Y).withConfig({componentId:"sc-ca5b7151-4"})(wt()),Et=S.Ay.div.withConfig({componentId:"sc-ca5b7151-5"})(yt(),z.M.mbDown),It=S.Ay.a.withConfig({componentId:"sc-ca5b7151-6"})(At(),(function(n){return n.theme.colors.blue200}),(function(n){return n.theme.colors.blue50}),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.white})),Nt=t(67141),Ft=function(n){var e,t=n.doctor,i=(n.existVoucher,(0,M.A)().formatMessage),o=(0,x.d)().isMobile,a=(0,w.$)().locale,l={"data-event-category":"Care","data-event-action":"Top Doctor Booking Click","data-event-label":"https://".concat(d.y[a]).concat(p.JpE,"/").concat(null===(e=p.y1A[a||"vi-VN"])||void 0===e?void 0:e.DOCTOR,"/").concat(t.slug,"-").concat(t.id)},s=(0,c.useMemo)((function(){return t.specialties.length?t.specialties.map((function(n){return n.name})).join(", "):""}),[t.specialties]),u=(0,c.useMemo)((function(){var n;return"/care/".concat(null===(n=p.y1A[a||"vi-VN"])||void 0===n?void 0:n.DOCTOR,"/").concat(t.slug,"-").concat(t.id)}),[t]),f=(0,c.useMemo)((function(){var n;return t.rating&&Number(t.rating)&&(null===t||void 0===t||null===(n=t.organization)||void 0===n?void 0:n.publish_reviews)?t.rating:""}),[t.rating,t.organization]);return(0,r.Y)(It,(0,Bn.A)((0,Tn.A)({className:"no-underline",href:u},l),{children:(0,r.FD)(Yt,{className:o?"doctor-wrapper-item min-w-[272px] w-[272px] ".concat("h-[326px]"):"doctor-wrapper-item min-w-[272px] w-[272px] ".concat("h-[346px]"),children:[(0,r.Y)("div",{className:"logo",children:(0,r.Y)(Dt,{src:t.avatar,loading:"lazy",width:64,height:64,quality:100,objectFit:"contain"})}),(0,r.FD)("div",{className:"doctor-main-info",children:[(0,r.Y)("div",{className:"doctor-name",children:t.name}),(0,r.Y)("div",{className:"doctor-specialty",children:s}),(0,r.FD)("div",{className:"flex gap-[4px] justify-center",children:[t.valid_outpatient&&(0,r.Y)(Nt.A,{type:"outpatient",showLabel:!0}),t.valid_telemedicine&&(0,r.Y)(Nt.A,{type:"telemedicine",showLabel:!0})]})]}),(0,r.FD)("div",{className:"doctor-info",children:[(0,r.FD)("div",{className:"doctor-info-wrapper",children:[(0,r.FD)("div",{className:"doctor-item",children:[(0,r.Y)(He.A,{}),(0,r.Y)("div",{className:"doctor-item-text doctor-item-text--twoLine",children:t.hospitalBranch})]}),(0,r.FD)("div",{className:"doctor-item",children:[(0,r.Y)(je,{}),(0,r.Y)("div",{className:"doctor-item-text",children:t.city})]})]}),(0,r.Y)(de.B,{type:"button",color:"primary",variant:"tertiary",size:"md",className:"btn-booking",children:i({id:"booking.doctor.label",defaultMessage:"Book Doctor"})})]}),f&&(0,r.FD)("div",{className:"doctor-rating",children:[(0,r.Y)(Ve.A,{}),(0,r.FD)("div",{className:"rating",children:[f,"/5"]})]})]})}))},zt=function(n){var e,t,a,l=n.topDoctors,d=(0,M.A)().formatMessage,u=(0,x.d)(),f=u.isMobile,v=u.isMobileOrTablet,b=(0,w.$)(),y=b.locale,A=(0,c.useState)(0),C=A[0],_=A[1],k=(0,c.useState)("all"),Y=k[0],E=k[1],I=(0,c.useState)({row_1:(null===l||void 0===l||null===(e=l.doctorList)||void 0===e?void 0:e.row_1)||[],row_2:(null===l||void 0===l||null===(t=l.doctorList)||void 0===t?void 0:t.row_2)||[]}),N=I[0],F=I[1],z=(0,c.useMemo)((function(){return{controls:{height:40,padding:0,top:"calc(50% - 20px)",left:"-50px",right:"-50px","&:hover":{left:"-56px",right:"-56px"}},container:{gap:f?"12px":"16px"},control:{opacity:1,border:0,boxShadow:"none",color:"#595959",fontSize:"16px",width:28,height:28,backgroundColor:"#fff",fill:"#fff",filter:"drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04)) drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0px 16px 24px rgba(0, 0, 0, 0.06))","&:hover":{width:40,height:40},"&[data-inactive]":{opacity:"0",cursor:"default"}}}}),[f,C]),S=(0,c.useMemo)((function(){return N?N.row_1:[]}),[N]),O=(0,c.useMemo)((function(){return N?N.row_2:[]}),[N]),T=(0,c.useMemo)((function(){return N?S.length>O.length?S:O:[]}),[N,S,O]),B=(0,c.useMemo)((function(){return S.some((function(n){return!!n.promotion}))}),[S]),L=(0,c.useMemo)((function(){return O.some((function(n){return!!n.promotion}))}),[O]),P=function(){var n=(0,i.A)((function(n){var e,t;return(0,o.__generator)(this,(function(i){switch(i.label){case 0:return[4,(0,g.px)((0,g.er)(h.R.GET_HOMEPAGE_TOP_DOCTOR,{cityId:"all"===n?"":n}),"GET")];case 1:return(e=i.sent())&&1===e._status&&(null===e||void 0===e?void 0:e._data)&&(null===e||void 0===e?void 0:e._data.top_doctors)&&(null===(t=(0,dn.si)(null===e||void 0===e?void 0:e._data.top_doctors))||void 0===t?void 0:t.doctorList)&&F(null===t||void 0===t?void 0:t.doctorList),[2]}}))}));return function(e){return n.apply(this,arguments)}}();return(0,c.useEffect)((function(){var n=function(){var n=document.body.clientWidth;_(n>=1170?(n-1170)/2:0)};return window.addEventListener("resize",n),n(),function(){window.removeEventListener("resize",n)}}),[]),(0,r.Y)(_t,{children:(0,r.FD)(m.mc,{className:"top-doctor-container",children:[(0,r.FD)(at,{className:"mb-[24px]",children:[(0,r.FD)(pt,{children:[(0,r.Y)(zn,{}),(0,r.Y)(s.H,{tag:"h3",color:D.w.colors.secondaryDark,className:"heading",children:null===(a=l.info)||void 0===a?void 0:a.title})]}),(0,r.FD)(ft,{children:[(0,r.Y)(ge,{placeholder:d({id:"common.city.label",defaultMessage:"Province/City"}),data:[],className:"address-select-field",home_type:"doctors",searchable:!0,value:String(Y),onChange:function(n){E(n),P(String(n))}}),(0,r.FD)(ut,{onClick:function(){var n,e,t="/".concat(null===(n=p.y1A[y])||void 0===n?void 0:n.CURRENT,"/").concat(null===(e=p.y1A[y])||void 0===e?void 0:e.DOCTOR);b.push(t)},children:[d({id:"landing.viewAll",defaultMessage:"View all"}),(0,r.Y)(Te.A,{})]})]})]}),(0,r.Y)(kt,{children:(0,r.Y)(Ln.a,{draggable:!0,dragFree:!0,initialSlide:0,skipSnaps:!0,align:"start",withControls:!v,styles:z,slidesToScroll:f?1:4,nextControlIcon:(0,r.Y)(Nn.A,{}),previousControlIcon:(0,r.Y)(In.A,{}),withIndicators:!1,children:T.map((function(n,e){return(0,r.FD)(Et,{className:"top-doctor-column-".concat(e),children:[S.length>0?S[e]?(0,r.Y)(Ft,{doctor:S[e],existVoucher:B}):(0,r.Y)("div",{className:"min-w-[272px] w-[272px] ".concat(f?"h-[326px]":"h-[346px]")}):null,O.length>0?O[e]?(0,r.Y)(Ft,{doctor:O[e],existVoucher:L}):(0,r.Y)("div",{className:"min-w-[272px] w-[272px] ".concat(f?"h-[326px]":"h-[346px]")}):null]},"top-doctor-column-".concat(e))}))})})]})})},St=t(38431);function Ot(){return Ot=Object.assign?Object.assign.bind():function(n){for(var e=1;e=8){var n=C.length;return n%2?parseInt((n/2).toString(),10)+1:n/2}return C.length>=4?4:C.length}),[C]),E=(0,c.useMemo)((function(){return 0!==C.length&&Y?C.slice(0,Y):[]}),[C,Y]),I=(0,c.useMemo)((function(){return 0!==C.length&&Y?C.slice(Y,C.length):[]}),[C,Y]),N=function(){var n=(0,i.A)((function(n){var e;return(0,o.__generator)(this,(function(t){switch(t.label){case 0:return[4,(0,g.px)((0,g.er)(h.R.GET_TOP_HOSPITAL_HOMEPAGE,{cityId:"all"===n?"":n}),"GET")];case 1:return(e=t.sent())&&1===e._status&&(null===e||void 0===e?void 0:e._data)&&((null===e||void 0===e?void 0:e._data["top-hospitals"].length)?_(null===e||void 0===e?void 0:e._data["top-hospitals"][0].hospital_branches):_([])),[2]}}))}));return function(e){return n.apply(this,arguments)}}();return(0,r.Y)(rt,{children:(0,r.FD)(m.mc,{className:"top-hospital-container",children:[(0,r.FD)(at,{children:[(0,r.FD)(pt,{children:[(0,r.Y)(Tt,{}),(0,r.Y)(s.H,{tag:"h3",color:D.w.colors.secondaryDark,className:"heading",children:e.title})]}),(0,r.FD)(ft,{children:[(0,r.Y)(ge,{placeholder:t({id:"common.city.label",defaultMessage:"Province/City"}),data:[],className:"address-select-field",home_type:"hospital",searchable:!0,value:String(b),onChange:function(n){y(n),N(String(n))}}),(0,r.FD)(ut,{onClick:function(){var n,e,t="/".concat(null===(n=p.y1A[l])||void 0===n?void 0:n.CURRENT,"/").concat(null===(e=p.y1A[l])||void 0===e?void 0:e.HOSPITAL);a.push(t)},children:[t({id:"landing.viewAll",defaultMessage:"View all"}),(0,r.Y)(Te.A,{})]})]})]}),(0,r.Y)(ct,{children:(0,r.Y)(Ln.a,{draggable:!0,dragFree:!0,initialSlide:0,skipSnaps:!0,align:"start",withControls:!f,styles:k,slidesToScroll:u?1:4,nextControlIcon:(0,r.Y)(Nn.A,{}),previousControlIcon:(0,r.Y)(In.A,{}),withIndicators:!1,children:(0,pe.A)(Array(Y)).map((function(n,e){return(0,r.FD)(ht,{className:0===e?"first-wrapper-column-hospital":"",children:[E.length>0&&E[e]?(0,r.Y)(Bt,{hospital:E[e]},E[e].id):null,I.length>0&&I[e]?(0,r.Y)(Bt,{hospital:I[e]},I[e].id):null]},"top-hospital-column-".concat(e))}))})})]})})},Pt=t(85340),jt=t(92151),Ht=t(67310),Rt=function(n){var e,t,i,o=n.hospital,a=(0,M.A)().formatMessage,l=(0,w.$)().locale,s={"data-event-category":"Care","data-event-action":"Top Hospital Booking Click","data-event-label":"https://".concat(d.y[l]).concat(p.JpE,"/").concat(null===(e=p.y1A[l])||void 0===e?void 0:e.HOSPITAL,"/").concat(o.slug,"-").concat(o.id)},u=(0,c.useMemo)((function(){var n;return"/care/".concat(null===(n=p.y1A[l||"vi-VN"])||void 0===n?void 0:n.HOSPITAL,"/").concat(o.slug,"-").concat(o.id,"/")}),[o]);return(0,r.Y)(st,(0,Bn.A)((0,Tn.A)({className:"no-underline link-hospital-ms-my",href:u},s),{children:(0,r.FD)(dt,{className:"hospital-wrapper-item hospital-wrapper-item-ms-my",children:[(0,r.Y)("div",{className:"logo",children:(0,r.Y)(en.Y,{height:64,layout:"fill",loading:"lazy",objectFit:"contain",src:o.logo,alt:o.name,quality:100,sizes:"260px"})}),(0,r.Y)("div",{className:"hospital-name hospital-name-two-line",children:o.name}),(0,r.FD)("div",{className:"hospital-info flex-[1]",children:[(0,r.FD)("div",{className:"hospital-address-wrapper",children:[(null===o||void 0===o?void 0:o.address)&&(0,r.FD)("div",{className:"hospital-address",children:[(0,r.Y)(St.A,{}),(0,r.Y)("div",{className:"address address-two-line",children:o.address})]}),(null===o||void 0===o||null===(t=o.city)||void 0===t?void 0:t.name)&&(0,r.FD)("div",{className:"hospital-address",children:[(0,r.Y)(je,{}),(0,r.Y)("div",{className:"address",children:null===o||void 0===o||null===(i=o.city)||void 0===i?void 0:i.name})]})]}),(0,r.Y)(de.B,{type:"button",size:"md",variant:"tertiary",color:"secondary",className:"btn-booking",children:a({id:"topHospital.booking.hospital",defaultMessage:"Book hospital"})})]})]})}))},Vt=function(n){var e,t,a,l,d,u=n.resultHospital,p=(0,M.A)().formatMessage,f=(0,x.d)(),v=f.isMobile,b=f.isMobileOrTablet,w=(0,c.useState)("all"),y=w[0],A=w[1],C=(0,c.useState)((null===u||void 0===u||null===(e=u._data)||void 0===e?void 0:e.searches)||[]),_=C[0],k=C[1],Y=(0,c.useState)((null===u||void 0===u||null===(t=u._data)||void 0===t||null===(a=t.pagination)||void 0===a?void 0:a.last)||1),E=Y[0],I=Y[1],N=(0,c.useState)(1),F=N[0],z=N[1],S=(0,c.useState)((null===u||void 0===u||null===(l=u._data)||void 0===l||null===(d=l.pagination)||void 0===d?void 0:d.items_per_page)||20),O=S[0],T=S[1],B=(0,c.useState)(!0),L=B[0],P=B[1],j=function(){var n=(0,i.A)((function(n){return(0,o.__generator)(this,(function(e){return z(n),H({page:n}),[2]}))}));return function(e){return n.apply(this,arguments)}}(),H=(0,c.useCallback)(function(){var n=(0,i.A)((function(n){var e,t,i;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return[4,(0,g.px)((0,g.er)(h.R.GET_ORGANIZATION_HOSPITAL_LIST,(0,Tn.A)({page:F,city_id:"all"===y?"":y,show_districts:1},n)),"GET",{headers:{accept:"application/json, text/plain, version=2.0.0"}})];case 1:return 1===(e=o.sent())._status&&(k(e._data.searches||[]),I((null===(t=e._data)||void 0===t||null===(i=t.pagination)||void 0===i?void 0:i.last)||1)),[2]}}))}));return function(e){return n.apply(this,arguments)}}(),[F,y]),R=function(){var n=(0,i.A)((function(){return(0,o.__generator)(this,(function(n){return setTimeout((0,i.A)((function(){var n,e,t,i,r,a,c;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return[4,(0,g.px)((0,g.er)(h.R.GET_ORGANIZATION_HOSPITAL_LIST,{page:F,per_page:O+20,city_id:"all"===y?"":y,show_districts:1}),"GET",{headers:{accept:"application/json, text/plain, version=2.0.0"}})];case 1:return 1===(n=o.sent())._status&&(k(n._data.searches||[]),I((null===(e=n._data)||void 0===e||null===(t=e.pagination)||void 0===t?void 0:t.last)||1),T((function(n){return n+20})),(null===(i=n._data)||void 0===i||null===(r=i.pagination)||void 0===r?void 0:r.last)>(null===(a=n._data)||void 0===a||null===(c=a.pagination)||void 0===c?void 0:c.current)?P(!0):P(!1)),[2]}}))})),1e3),[2]}))}));return function(){return n.apply(this,arguments)}}(),V=(0,c.useMemo)((function(){var n,e;return(null===u||void 0===u||null===(n=u._data)||void 0===n?void 0:n.cities)&&(null===u||void 0===u||null===(e=u._data)||void 0===e?void 0:e.cities.length)?null===u||void 0===u?void 0:u._data.cities.map((function(n){return{label:n.name,value:String(n.id)}})):[]}),[null===u||void 0===u?void 0:u._data.cities]);return(0,c.useEffect)((function(){H()}),[]),(0,r.Y)(rt,{children:(0,r.FD)(m.mc,{className:"top-hospital-container",children:[(0,r.FD)(at,{children:[(0,r.FD)(pt,{children:[(0,r.Y)(Tt,{}),(0,r.Y)(s.H,{tag:"h3",color:D.w.colors.secondaryDark,className:"heading",children:p({id:"homepage.topHospital.and.clinic",defaultMessage:"Top Hospital & Clinic"})})]}),(0,r.Y)(ft,{children:(0,r.Y)(ge,{placeholder:p({id:"common.city.label",defaultMessage:"Province/City"}),data:[],className:"address-select-field",home_type:"hospital",searchable:!0,value:String(y),initOptions:V,onChange:function(n){A(n),z(1),H({page:1,city_id:"all"===n?"":n})}})})]}),(0,r.Y)(lt,{children:v?(0,r.Y)(Ht.A,{dataLength:_.length,next:R,hasMore:L,loader:(0,r.Y)("div",{className:"flex justify-center w-[100%]",children:(0,r.Y)(Pt.L,{hideText:!1,className:"flex-col"})}),children:_.map((function(n){return(0,r.Y)(Rt,{hospital:n},n.id)}))}):(0,r.Y)(r.FK,{children:_.map((function(n){return(0,r.Y)(Rt,{hospital:n},n.id)}))})}),!b&&E>1&&(0,r.Y)(gt,{children:(0,r.Y)(jt.P,{className:"pagination",pagesAmount:E,currentPage:F,onChange:j})})]})})},Ut=t(74121),Gt=t(94334),Wt=t(45105);function qt(){var n=(0,F.A)([""]);return qt=function(){return n},n}function Jt(){var n=(0,F.A)(["\n .btn-booking {\n width: 100%;\n border-radius: 8px;\n color: ",";\n font-weight: 600;\n\n &:hover {\n border-color: ",";\n }\n }\n"]);return Jt=function(){return n},n}function Kt(){var n=(0,F.A)(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 24px;\n\n "," {\n flex-direction: column;\n gap: 16px;\n align-items: flex-start;\n margin-bottom: 16px;\n padding: 0 16px;\n }\n"]);return Kt=function(){return n},n}function Zt(){var n=(0,F.A)(["\n background-color: ",";\n padding: 40px 0;\n "," {\n padding: 24px 0;\n }\n .heading {\n color: ",";\n font-size: 22px;\n font-weight: 700;\n line-height: 32px;\n margin: 0;\n\n "," {\n font-size: 18px;\n line-height: 26px;\n }\n }\n\n .top-service-container {\n "," {\n padding: 0;\n }\n }\n"]);return Zt=function(){return n},n}function $t(){var n=(0,F.A)(["\n margin-bottom: 24px;\n position: relative;\n padding-right: 38px;\n "," {\n padding: 0 16px;\n margin-bottom: 16px;\n padding-right: 54px;\n }\n"]);return $t=function(){return n},n}function Qt(){var n=(0,F.A)(["\n display: flex;\n gap: 8px;\n align-items: center;\n width: fit-content;\n\n .category-item {\n border-radius: 60px;\n border: 1px solid ",";\n background: ",";\n padding: 7px 12px;\n cursor: pointer;\n white-space: nowrap;\n color: ",";\n font-size: 14px;\n font-weight: 400;\n line-height: 22px;\n\n .mantine-Text-root {\n color: ",";\n }\n\n &.active,\n &:hover {\n color: ",";\n background: ",";\n border: 1px solid ",";\n\n .mantine-Text-root {\n color: ",";\n }\n }\n }\n"]);return Qt=function(){return n},n}function Xt(){var n=(0,F.A)(["\n border-radius: 12px;\n border: 1px solid ",";\n background: ",";\n cursor: pointer;\n position: relative;\n\n &.top-service-column-0 {\n "," {\n margin-left: 16px;\n }\n }\n\n &:hover {\n border: 1px solid ",";\n box-shadow: 0px 8px 40px 0px rgba(0, 0, 0, 0.1);\n\n .btn-booking {\n background: ",";\n border: 1px solid ",";\n color: ",";\n }\n }\n\n .service-name {\n font-size: 16px;\n line-height: 24px;\n display: -webkit-box;\n -webkit-line-clamp: 3;\n overflow: hidden;\n text-overflow: ellipsis;\n line-clamp: 3;\n -webkit-box-orient: vertical;\n }\n\n .service-text {\n font-size: 12px;\n line-height: 18px;\n }\n\n .rating-block {\n position: absolute;\n top: 8px;\n right: 8px;\n padding: 3px 8px 3px 4px;\n display: flex;\n gap: 2px;\n align-items: center;\n background-color: ",";\n border-radius: 12px;\n\n .rating {\n color: ",";\n font-size: 12px;\n font-weight: 600;\n line-height: 18px;\n }\n }\n"]);return Xt=function(){return n},n}function ni(){var n=(0,F.A)(["\n width: 80px;\n height: 38px;\n flex-shrink: 0;\n background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #fff 100%);\n position: absolute;\n z-index: 10;\n top: 0;\n\n "," {\n width: 60px;\n }\n\n &.direction-right {\n right: 0;\n "," {\n right: 16px;\n }\n }\n\n &.direction-left {\n left: 0;\n transform: rotate(180deg);\n "," {\n left: 16px;\n }\n }\n"]);return ni=function(){return n},n}function ei(){var n=(0,F.A)(["\n position: absolute;\n z-index: 12;\n right: 0;\n top: 0;\n width: 36px;\n height: 36px;\n border-radius: 100%;\n cursor: pointer;\n background: ",";\n box-shadow: 0px 16px 24px 0px rgba(0, 0, 0, 0.06),\n 0px 2px 8px 0px rgba(0, 0, 0, 0.04), 0px 0px 1px 0px rgba(0, 0, 0, 0.04);\n\n "," {\n right: 16px;\n }\n\n .dropdown-menu-category {\n height: 100%;\n\n .dropdown-container {\n margin-top: 4px;\n margin-bottom: 0;\n width: 343px;\n max-height: 389px;\n padding: 4px;\n border-radius: 12px;\n border: 1px solid ",";\n background: ",";\n box-shadow: 0px 8px 40px 0px rgba(0, 0, 0, 0.1);\n overflow-y: auto;\n }\n\n .dropdown-item {\n border-radius: 4px 4px 4px 4px;\n height: 40px;\n padding: 8px 16px;\n color: ",";\n font-size: 14px;\n font-weight: 400;\n line-height: 22px;\n\n &:hover,\n &.selected {\n background: ",";\n }\n }\n\n .dropdown-kebad {\n width: 100%;\n height: 100%;\n border-radius: 100%;\n background: ",";\n }\n }\n"]);return ei=function(){return n},n}function ti(){var n=(0,F.A)(["\n overflow-x: auto;\n &::-webkit-scrollbar {\n display: none;\n }\n"]);return ti=function(){return n},n}function ii(){var n=(0,F.A)(["\n color: ",";\n font-size: 14px;\n font-weight: 600;\n line-height: 24px;\n cursor: pointer;\n gap: 10px;\n display: flex;\n align-items: center;\n white-space: nowrap;\n"]);return ii=function(){return n},n}var oi,ri=S.Ay.div.withConfig({componentId:"sc-ea140589-0"})(qt()),ai=S.Ay.div.withConfig({componentId:"sc-ea140589-1"})(Jt(),(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.colors.primaryBase})),ci=S.Ay.div.withConfig({componentId:"sc-ea140589-2"})(Kt(),z.M.mbDown),li=S.Ay.div.withConfig({componentId:"sc-ea140589-3"})(Zt(),(function(n){return n.theme.colors.white}),z.M.mbDown,(function(n){return n.theme.colors.gray800}),z.M.mbDown,z.M.mbDown),si=S.Ay.div.withConfig({componentId:"sc-ea140589-4"})($t(),z.M.mbDown),di=S.Ay.ul.withConfig({componentId:"sc-ea140589-5"})(Qt(),(function(n){return n.theme.colors.neutral100}),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray600}),(function(n){return n.theme.colors.gray600}),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.blue50}),(function(n){return n.theme.colors.blue50}),(function(n){return n.theme.colors.primaryBase})),ui=S.Ay.a.withConfig({componentId:"sc-ea140589-6"})(Xt(),(function(n){return n.theme.colors.neutral100}),(function(n){return n.theme.colors.white}),z.M.mbDown,(function(n){return n.theme.colors.blue200}),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray800})),pi=(S.Ay.div.withConfig({componentId:"sc-ea140589-7"})(ni(),z.M.mbDown,z.M.mbDown,z.M.mbDown),S.Ay.div.withConfig({componentId:"sc-ea140589-8"})(ei(),(function(n){return n.theme.colors.white}),z.M.mbDown,(function(n){return n.theme.colors.gray100}),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.colors.gray100}),(function(n){return n.theme.colors.white}))),fi=S.Ay.div.withConfig({componentId:"sc-ea140589-9"})(ti()),hi=S.Ay.div.withConfig({componentId:"sc-ea140589-10"})(ii(),(function(n){return n.theme.colors.blue600})),gi=t(55550);function mi(){return mi=Object.assign?Object.assign.bind():function(n){for(var e=1;e0&&(0,r.FD)(Ut.T,{size:"c2",color:"#595959",className:"flex items-start gap-x-[8px] flex-wrap service-text",children:[(0,r.Y)(Re.A,{}),f,":"," ",(0,r.FD)("span",{className:"text-[#00B16A] font-semibold",children:[(0,g.UN)(e.price,o),e.price_to?" - ".concat((0,g.UN)(e.price_to,o)):""]}),e.original_price&&(0,r.Y)("span",{className:"text-[#8c8c8c] font-semibold line-through",children:(0,g.UN)(e.original_price,o)})]}),(0,r.FD)(Ut.T,{size:"c2",color:"#595959",className:"flex items-start gap-x-[8px] service-text",children:[(0,r.Y)(He.A,{className:"flex-[0_0_17px]"}),e.hospitalName]}),(0,r.FD)(Ut.T,{size:"c2",color:"#595959",className:"flex items-start gap-x-[8px] service-text",children:[(0,r.Y)(je,{className:"flex-[0_0_17px]"}),e.city]})]}),(0,r.Y)(ai,{children:(0,r.Y)(de.B,{type:"button",color:"primary",size:"md",className:"btn-booking",variant:"tertiary",children:i({id:"booking.service.title",defaultMessage:"Book Service"})})})]}),u&&(0,r.FD)("div",{className:"rating-block",children:[(0,r.Y)(Ve.A,{}),(0,r.FD)("div",{className:"rating",children:[u,"/5"]})]})]}))},Yi=function(n){var e=n.topServices,t=null===e||void 0===e?void 0:e.info,a=(0,M.A)().formatMessage,l=(0,w.$)().locale,d=(0,x.d)(),u=d.isMobile,f=d.isMobileOrTablet,v=(0,c.useRef)(null),b=(0,c.useRef)(null),y=(0,c.useState)("all"),A=y[0],C=y[1],_=(0,c.useState)((null===e||void 0===e?void 0:e.servicesList)||[]),k=_[0],Y=_[1],E=(0,c.useState)(k[0].categories.id),I=E[0],N=E[1],F=(0,c.useState)(!1),z=F[0],S=F[1],O=(0,c.useState)(!1),T=O[0],B=O[1],L=(0,c.useState)(!1),P=L[0],j=L[1],H=(0,c.useCallback)((function(){var n,e,t="/".concat(null===(n=p.y1A[l])||void 0===n?void 0:n.CURRENT,"/").concat(null===(e=p.y1A[l])||void 0===e?void 0:e.SERVICE);pn().push(t)}),[]),R=function(){var n=(0,i.A)((function(n){var e,t,i;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return[4,(0,g.px)((0,g.er)(h.R.GET_HOMEPAGE_TOP_SERVICE,{cityId:"all"===n?"":n}),"GET")];case 1:return(e=o.sent())&&1===e._status&&(null===e||void 0===e?void 0:e._data)&&(null===e||void 0===e?void 0:e._data.top_services)&&((i=(0,dn.sz)(null===e||void 0===e||null===(t=e._data)||void 0===t?void 0:t.top_services))&&i.servicesList?(Y(i.servicesList),N(i.servicesList[0].categories.id)):Y([])),[2]}}))}));return function(e){return n.apply(this,arguments)}}(),V=(0,c.useMemo)((function(){return k.map((function(n){return n.categories}))}),[k]),U=function(n,e){var t=v.current;if(n&&t){var i=n.offsetLeft+n.offsetWidth/2-t.offsetWidth/2,o=V.findIndex((function(n){return n.id===e}));o&&o==V.length-1?B(!1):B(!0),i>0?(v.current.scrollTo({left:i,behavior:"smooth"}),S(!0)):(v.current.scrollTo({left:0,behavior:"smooth"}),S(!1))}},G=(0,c.useMemo)((function(){var n=k.find((function(n){return n.categories.id===I}));return n?n.services.sort((function(n,e){return n.position-e.position})):[]}),[k,I]),W=(0,c.useMemo)((function(){return{container:{gap:"16px"},controls:{height:40,padding:0,top:"calc(50% - 20px)",left:"-50px",right:"-50px","&:hover":{left:"-56px",right:"-56px"}},control:{opacity:1,border:0,boxShadow:"none",color:"#595959",fontSize:"16px",width:28,height:28,backgroundColor:"#fff",fill:"fff",filter:"drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04)) drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0px 16px 24px rgba(0, 0, 0, 0.06))","&:hover":{width:40,height:40},"&[data-inactive]":{opacity:"0",cursor:"default"}}}}),[u]),q=(0,c.useMemo)((function(){return V.map((function(n){return{id:String(n.id),name:n.name,action:function(){N(n.id);var e=document.getElementById("top-service-category-".concat(n.id));e&&U(e,n.id)}}}))}),[V]);return(0,c.useEffect)((function(){P||(B(!1),S(!1))}),[P,v,I]),(0,c.useEffect)((function(){var n=function(){var n=v.current,e=b.current;if(n&&e)if(n.offsetWidth>=e.offsetWidth)j(!1);else if(j(!0),I){var t=document.getElementById("top-service-category-".concat(I));t&&U(t,I)}};return window.addEventListener("resize",n),n(),function(){window.removeEventListener("resize",n)}}),[v,b,V,I]),t?(0,r.Y)(li,{children:(0,r.FD)(m.mc,{className:"top-service-container",children:[(0,r.FD)(ci,{children:[(0,r.FD)(pt,{children:[(0,r.Y)(_i,{}),(0,r.Y)(s.H,{tag:"h2",color:D.w.colors.secondaryDark,className:"heading",children:t.title})]}),(0,r.FD)(ft,{children:[(0,r.Y)(ge,{placeholder:a({id:"common.city.label",defaultMessage:"Province/City"}),data:[],className:"address-select-field",home_type:"services",value:String(A),onChange:function(n){C(n),R(String(n))},searchable:!0}),(0,r.FD)(hi,{onClick:H,children:[a({id:"landing.viewAll",defaultMessage:"View all"}),(0,r.Y)(Te.A,{})]})]})]}),(0,r.FD)(si,{className:"flex justify-between items-start",children:[z&&false,(0,r.Y)(fi,{ref:v,children:(0,r.Y)(di,{ref:b,children:V.map((function(n){var e=n.id===I;return(0,r.Y)("li",{id:"top-service-category-".concat(n.id),className:"category-item ".concat(e?"active":""),onClick:function(e){var t=e.target;N(n.id),U(t,n.id)},children:n.name},"top-service-category-".concat(n.id))}))})}),P&&(0,r.Y)(pi,{children:(0,r.Y)(Wt.r,{data:q,button:(0,r.Y)(Ci,{}),removeBtn:(0,r.Y)(xi,{}),selected:String(I),className:"dropdown-menu-category"})}),T&&false]}),(0,r.Y)(ri,{children:(0,r.Y)(Ln.a,{dragFree:!1,draggable:!0,align:"start",skipSnaps:!0,withControls:!f,initialSlide:0,nextControlIcon:(0,r.Y)(Nn.A,{}),previousControlIcon:(0,r.Y)(In.A,{}),styles:W,slidesToScroll:u?1:4,children:G.map((function(n,e){return(0,r.Y)(ki,{service:n,className:"top-service-column-".concat(e)},"".concat(I,"-").concat(n.id,"-").concat(n.position))}))})})]})}):null},Di=t(39693);function Ei(){var n=(0,F.A)(["\n padding: 0;\n padding: 40px 0;\n background-color: #192e4a;\n\n .top-course-container {\n padding: 0 16px;\n "," {\n padding: 0;\n }\n .heading {\n color: ",";\n font-size: 22px;\n font-weight: 700;\n line-height: 32px;\n margin: 0;\n\n "," {\n font-size: 18px;\n line-height: 26px;\n }\n }\n }\n\n "," {\n padding: 24px 0;\n }\n .heading {\n color: ",";\n font-size: 32px;\n font-weight: 700;\n line-height: 42px;\n margin: 10px 0;\n\n "," {\n font-size: 20px;\n line-height: 26px;\n }\n }\n"]);return Ei=function(){return n},n}function Ii(){var n=(0,F.A)(["\n display: flex;\n gap: 12px;\n flex-direction: column;\n max-width: 742px;\n margin: 0 auto;\n margin-bottom: 24px;\n\n "," {\n padding: 0 16px;\n gap: 16px;\n }\n\n .header-title {\n color: ",";\n text-align: center;\n font-size: 22px;\n font-weight: 700;\n line-height: 32px;\n }\n\n .header-description {\n color: ",";\n text-align: center;\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n\n "," {\n font-size: 14px;\n }\n }\n"]);return Ii=function(){return n},n}function Ni(){var n=(0,F.A)(["\n display: flex;\n gap: 24px;\n\n "," {\n flex-direction: column;\n gap: 16px;\n }\n"]);return Ni=function(){return n},n}function Fi(){var n=(0,F.A)(["\n flex: 1;\n height: 418px;\n border-radius: 16px;\n background: #000;\n\n &.container-video-fix-one {\n flex: 0 0 744px;\n\n "," {\n flex: 1;\n }\n }\n\n .link-image-wrapper {\n border-radius: 16px;\n }\n\n "," {\n flex: 0 0 211px;\n border-radius: 0;\n .link-image-wrapper {\n border-radius: 0;\n }\n }\n"]);return Fi=function(){return n},n}function zi(){var n=(0,F.A)(["\n max-height: 100%;\n border-radius: 16px;\n border: 1px solid rgba(255, 255, 255, 0.05);\n background: rgba(0, 0, 0, 0.1);\n backdrop-filter: blur(50px);\n overflow-y: auto;\n\n "," {\n display: flex;\n gap: 8px;\n border: none;\n background-color: transparent;\n border-radius: 0;\n }\n"]);return zi=function(){return n},n}function Si(){var n=(0,F.A)(["\n display: flex;\n padding: 8px 16px;\n align-items: center;\n gap: 12px;\n cursor: pointer;\n\n &.first-video-item {\n "," {\n margin-left: 16px;\n }\n }\n\n "," {\n flex-direction: column;\n gap: 8px;\n width: 160px;\n height: 164px;\n padding: 0;\n flex: 0 0 160px;\n }\n\n &:hover,\n &.video-item-active {\n background: rgba(0, 0, 0, 0.15);\n\n "," {\n background: transparent;\n }\n }\n\n &.video-item-active {\n .video-description {\n "," {\n color: ",";\n }\n }\n }\n\n .video-image {\n flex: 0 0 129px;\n width: 129px;\n height: 72px;\n border-radius: 8px;\n\n "," {\n flex: 0 0 90px;\n width: 100%;\n }\n\n img {\n border-radius: 8px;\n\n "," {\n border-radius: 4px;\n }\n }\n }\n\n .video-description {\n overflow: hidden;\n color: ",";\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n font-size: 14px;\n font-weight: 600;\n line-height: 22px;\n\n "," {\n -webkit-line-clamp: 3;\n }\n }\n"]);return Si=function(){return n},n}function Oi(){var n=(0,F.A)(["\n flex: 0 0 362px;\n max-height: 418px;\n "," {\n padding: 0 0;\n flex: 1;\n overflow-x: auto;\n }\n"]);return Oi=function(){return n},n}function Ti(){var n=(0,F.A)(["\n background: #000;\n height: 418px;\n border-radius: 16px;\n\n &.skeleton-video-fix-one {\n width: 744px;\n }\n "," {\n height: 211px;\n }\n"]);return Ti=function(){return n},n}var Bi=S.Ay.section.withConfig({componentId:"sc-a08317c3-0"})(Ei(),z.M.mbDown,(function(n){return n.theme.colors.green800}),z.M.mbDown,z.M.mbDown,(function(n){return n.theme.colors.green800}),z.M.mbDown),Li=S.Ay.div.withConfig({componentId:"sc-a08317c3-1"})(Ii(),z.M.mbDown,(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.white}),z.M.mbDown),Pi=S.Ay.div.withConfig({componentId:"sc-a08317c3-2"})(Ni(),z.M.mbDown),ji=S.Ay.div.withConfig({componentId:"sc-a08317c3-3"})(Fi(),z.M.mbDown,z.M.mbDown),Hi=S.Ay.div.withConfig({componentId:"sc-a08317c3-4"})(zi(),z.M.mbDown),Ri=S.Ay.div.withConfig({componentId:"sc-a08317c3-5"})(Si(),z.M.mbDown,z.M.mbDown,z.M.mbDown,z.M.mbDown,(function(n){return n.theme.colors.primaryBase}),z.M.mbDown,z.M.mbDown,(function(n){return n.theme.colors.white}),z.M.mbDown),Vi=S.Ay.div.withConfig({componentId:"sc-a08317c3-6"})(Oi(),z.M.mbDown),Ui=S.Ay.div.withConfig({componentId:"sc-a08317c3-7"})(Ti(),z.M.mbDown),Gi=function(n){var e,t,a=n.topVideos,l=(0,un.useRouter)().locale,s=(0,x.d)().isMobile,d=(0,c.useState)(null),u=d[0],f=d[1],v=(0,c.useState)(!1),b=v[0],w=v[1],y=(0,c.useState)([]),A=y[0],C=y[1],M=(0,c.useState)(!1),_=M[0],k=M[1],Y=(null===a||void 0===a?void 0:a.videos)&&1===(null===a||void 0===a?void 0:a.videos.length),D=(null===a||void 0===a?void 0:a.videos)&&(null===a||void 0===a?void 0:a.videos.length)>1;return(0,c.useEffect)((function(){(0,i.A)((function(){var n,e,t,i;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return(null===a||void 0===a?void 0:a.videos)&&(null===a||void 0===a?void 0:a.videos.length)?(e=p.ElQ[l].DOMAIN,[4,Promise.all(null===a||void 0===a||null===(n=a.videos)||void 0===n?void 0:n.map((function(n){var t=n.url;return fetch((0,g.aq)(h.R.FETCH_PREVIEW,{website_url:e}),{method:"POST",body:JSON.stringify({link:t}),headers:{"Content-Type":"application/json"}}).then((function(n){return n.json()})).catch((function(){return null}))})))]):[3,2];case 1:t=o.sent(),i=null===a||void 0===a?void 0:a.videos.map((function(n,e){var i,o,r=t[e];return r&&1===r.status?(0,Bn.A)((0,Tn.A)({},n),{title:(null===r||void 0===r||null===(i=r.data)||void 0===i?void 0:i.title)||"",thumbnail:(null===r||void 0===r||null===(o=r.data)||void 0===o?void 0:o.image)||""}):n})),C(i),f(i[0]),o.label=2;case 2:return[2]}}))}))()}),[null===a||void 0===a?void 0:a.videos]),(0,c.useEffect)((function(){u&&!_&&k(!0)}),[_,u]),(0,r.Y)(Bi,{children:(0,r.FD)(m.mc,{className:"top-course-container",children:[(0,r.FD)(Li,{children:[(0,r.Y)("div",{className:"header-title",children:null===a||void 0===a||null===(e=a.info)||void 0===e?void 0:e.title}),(0,r.Y)("div",{className:"header-description",children:null===a||void 0===a||null===(t=a.info)||void 0===t?void 0:t.description})]}),(0,r.FD)(Pi,{className:Y?"justify-center":"",children:[(0,r.Y)(ji,{className:Y?"container-video-fix-one":"",children:_?(0,r.Y)(Di.S,{url:(null===u||void 0===u?void 0:u.url)||"",autoPlay:b,baseUrl:p.JJ}):(0,r.Y)(Ui,{className:Y?"skeleton-video-fix-one":""})}),D&&(0,r.Y)(Vi,{children:(0,r.Y)(Hi,{children:A.map((function(n,e){return(0,r.FD)(Ri,{className:"".concat((null===u||void 0===u?void 0:u.id)===n.id?"video-item-active":""," ").concat(0===e?"first-video-item":""),onClick:function(){return function(n){f(n),w(!0)}(n)},children:[(0,r.Y)("div",{className:"video-image",children:(0,r.Y)(en.Y,{layout:"responsive",src:(null===n||void 0===n?void 0:n.thumbnail)||"",width:s?160:129,height:s?90:72,quality:100,objectFit:"contain"})}),(0,r.Y)("div",{className:"video-description",children:n.title})]},n.id)}))})})]})]})})},Wi=t(89394),qi=!0,Ji=function(n){var e,t,u,A,D,E,I,N,F,z,S,O,T,B,L=n.specialties,P=n.canonicalUrl,j=n.seoSetting,H=n.listBanners,V=n.topHospitals,U=n.topServices,G=n.topCourses,W=n.topDoctors,q=n.topPromotion,J=n.topVideos,K=n.listCities,Z=n.searchResultHospital,$=n.footerInfo,Q=n.navMenuContent,X=n.sitewideBanner,nn=(0,M.A)().formatMessage,en=(0,c.useContext)(_.B).ability,tn=(0,w.$)(),on=tn.asPath,rn=tn.locale,an=(0,c.useState)(void 0),cn=an[0],ln=an[1],dn=!a.jz.includes(rn),un=(0,x.d)().isMobile,pn=(0,c.useState)(),fn=pn[0],hn=pn[1],gn=en.can(k.aG.read,k.OV.hospitalBlock);(0,y.n)();var mn=(0,c.useMemo)((function(){return a.C9.includes(rn)?["doctor","service"]:[]}),[rn]);(0,c.useEffect)((function(){var n=C().get("geoLocation"),e=C().get("userGeoLocationCoordinates"),t={lat:"",lng:""};if(n)try{var i=JSON.parse(n),o=i.lat,r=i.lng;t.lat=o,t.lng=r}catch(s){}if(e)try{var a=JSON.parse(e),c=a.lat,l=a.lng;t.lat=c,t.lng=l}catch(d){}hn(t)}),[on]),(0,c.useEffect)((function(){function n(){return(n=(0,i.A)((function(){var n,e;return(0,o.__generator)(this,(function(t){switch(t.label){case 0:return fn?(n=(0,g.er)(h.R.GET_CITY_BY_IP),fn.lat&&fn.lng&&(n=(0,g.er)(h.R.GET_CITY_GEO,{latitude:fn.lat,longitude:fn.lng})),[4,(0,g.px)(n,"GET")]):[2];case 1:return e=t.sent(),ln((null===e||void 0===e?void 0:e._data)||{}),[2]}}))}))).apply(this,arguments)}!function(){n.apply(this,arguments)}()}),[null===fn||void 0===fn?void 0:fn.lat,null===fn||void 0===fn?void 0:fn.lng]);var vn=L.length,bn={dataEventCategory:"Care",dataEventAction:"Search Click",dataEventLabel:"https://".concat(d.y[rn]).concat(p.JpE).concat(on)};return(0,r.Y)(b.K,{title:j.title,schemaOrg:f({footerInfo:$,f:nn}),description:j.description,image:p.ElQ[rn].HOMEPAGE_IMAGE,isSearchBarDisplay:!1,SEOData:{isIndexable:!0,hasNoAmp:!0,canonicalUrl:null===P||void 0===P?void 0:P.toLowerCase()},isMobile:un,footerInfo:$,ssrNavMenu:Q,sitewideBanner:X,children:(0,r.FD)(Y.sY,{children:[H.length>0&&(0,r.Y)(sn,{listBanners:H}),(0,r.Y)(Y.k6,{children:(0,r.Y)(l.n,{isMobile:un,careApiDomain:"https://health-care.hellohealthgroup.com/",routerPush:tn.push,geoLocationCoordinates:fn,geoLocationPermission:fn&&fn.lat&&fn.lng?"granted":"unset",gaTrackingSearchBar:bn,autoCompleteDisabled:"zh-TW"===rn,hideTabBookingSearch:mn,hideSpecialtyTab:Wi.XQ.includes(rn)})}),gn&&(0,r.Y)(Vt,{resultHospital:Z}),dn&&(0,r.Y)(Y.eL,{className:"py-[80px] mb-py-[48px]",children:(0,r.FD)(m.mc,{children:[(0,r.Y)("div",{className:"specialties-title",children:(0,r.Y)(s.H,{tag:"h2",color:"#1B3250",children:nn({id:"homePage.heroExplore",defaultMessage:"Explore top specialties on FindCare"})})}),(0,r.Y)(v.V4,{columns:un?2:4,columnsDesktop:vn<6?vn:6,specialties:L,gap:"12px",gapDesktop:"32px",isMobile:un,defaultCity:null===cn||void 0===cn?void 0:cn.default,isHasGeoLocation:Boolean(fn&&fn.lat&&fn.lng),className:"specialty"}),(0,r.Y)(m.AX,{size:"sm",href:"/".concat(null===(e=p.y1A[rn])||void 0===e?void 0:e.SPECIALTIES),iconPosition:"right",className:"see-more-btn",dataEventCategory:"Care",dataEventAction:"See All Specialties Click",dataEventLabel:"https://".concat(d.y[rn]).concat(p.JpE,"/").concat(null===(t=p.y1A[rn])||void 0===t?void 0:t.SPECIALTIES),children:nn({id:"homePage.seeMoreSpecialties",defaultMessage:"See More Specialties"})})]})}),(null===q||void 0===q||null===(u=q.info)||void 0===u?void 0:u.meta_value.title)&&((null===q||void 0===q?void 0:q.promotion_list.length)||0)>0&&(0,r.Y)(se,{topPromotion:q}),V&&V.hospital_branches.length>0&&(0,r.Y)(Lt,{topHospitals:V}),(null===(A=W.info)||void 0===A?void 0:A.title)&&((null===W||void 0===W||null===(D=W.doctorList)||void 0===D?void 0:D.row_1)&&(null===W||void 0===W||null===(E=W.doctorList)||void 0===E?void 0:E.row_1.length)>0||(null===W||void 0===W||null===(I=W.doctorList)||void 0===I?void 0:I.row_2)&&(null===W||void 0===W||null===(N=W.doctorList)||void 0===N?void 0:N.row_2.length)>0)&&(0,r.Y)(zt,{topDoctors:W}),(null===(F=U.info)||void 0===F?void 0:F.title)&&((null===U||void 0===U||null===(z=U.servicesList)||void 0===z?void 0:z.length)||0)>0&&(0,r.Y)(Yi,{topServices:U}),(null===(S=G.info)||void 0===S?void 0:S.title)&&((null===G||void 0===G||null===(O=G.servicesList)||void 0===O?void 0:O.length)||0)>0&&(0,r.Y)(qe,{topCourses:G}),(null===J||void 0===J||null===(T=J.info)||void 0===T?void 0:T.title)&&((null===J||void 0===J||null===(B=J.videos)||void 0===B?void 0:B.length)||0)>0&&(0,r.Y)(Gi,{topVideos:J}),("vi-VN"===rn||"id-ID"===rn)&&(0,r.Y)(On,{}),dn&&K.length>0&&(0,r.Y)(R,{listCities:K})]})})}},67722:function(n,e,t){"use strict";t.d(e,{$p:function(){return h},AQ:function(){return p},BB:function(){return c},HB:function(){return f},Hg:function(){return m},In:function(){return d},Sh:function(){return s},Yp:function(){return u},fC:function(){return l},t2:function(){return g}});var i=t(40568),o=t(2543),r=t(6442),a=t(40959),c=function(n){return(n=null===n||void 0===n?void 0:n.replace("_",""))?n.charAt(0).toUpperCase()+n.slice(1):""},l=function(n,e){var t="",i=a.pTf[e].prefix,o=void 0===i?"":i,r=Array.from(n);if(!n)return"";var c=new RegExp("^\\".concat(o),"gi").test(n);return r.forEach((function(n,e){c&&ee?n.substring(0,e):n},p=function(n){return n?{years:parseInt("".concat(n/365)),months:parseInt("".concat(n/30)),weeks:parseInt("".concat(n/7))}:{years:0,months:0,weeks:0}};function f(n){if(n)try{new URL(n)&&window.open(n,"_blank")}catch(e){console.log("\ud83d\ude80 ~ handleDeepLink ~ error:",e)}}function h(n){if("no_age"===n||!n)return 0;var e=(0,i.A)(n.split("-"),2),t=e[0];return"month"!==e[1]?0:Number(t)}function g(n){if(!(0,o.isArray)(n)||0===n.length)return{comboMapByDisplayName:new Map,sortedList:[]};var e=function(n){var e=new Map,t=!0,i=!1,o=void 0;try{for(var r,a=n[Symbol.iterator]();!(t=(r=a.next()).done);t=!0){var c=r.value,l=c.age;l||(l="no_age");var s=e.get(l);s||e.set(l,s=[]),s.push(c)}}catch(d){i=!0,o=d}finally{try{t||null==a.return||a.return()}finally{if(i)throw o}}return e}(n),t=function(n){var e=new Map;return n.forEach((function(n,t){var i=new Map;n.forEach((function(n){var e=n.display_name;e||(e="no_name");var t=i.get(e);t||i.set(e,t=[]),t.push(n)})),e.set(t,Object.fromEntries(i))})),e}(e),i=Array.from(e.keys()).sort((function(n,e){return h(n)-h(e)}));return{resultData:Object.fromEntries(t),sortedList:i}}function m(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return n.toString().padStart(e,"0")}},45351:function(n,e,t){"use strict";t.d(e,{Vd:function(){return v},Yq:function(){return b},tV:function(){return g},vq:function(){return w},wB:function(){return m}});var i=t(50345),o=t(92998),r=t(66298),a=t(1806),c=t(40063),l=t(71368),s=t(29718),d=t(13864),u=t(74809),p=t(52847),f=t(80543),h=t(40959),g={"vi-VN":l.default,"en-PH":s.A,"id-ID":d.default,"zh-TW":u.default,"ms-MY":p.default,"th-TH":f.A},m=function(n,e){if(!n)return[];if(!e)return[n];for(var t=[],i=n;i<=e;)t.push(new Date(i)),i=(0,o.A)(i,1);return t},v=function(n){var e=new Date(n.date),t=new Date(n.date),i=n.started.split(":"),o=n.ended.split(":"),r=i[0],a=i[1],c=o[0],l=o[1];return{startDate:new Date(e.setHours(Number(r),Number(a))),endDate:new Date(t.setHours(Number(c),Number(l)))}},b=function(n){return n?(0,r.A)(n,h.AI5):h.$47},x={"vi-VN":{timeFormat:"HH:mm",dateFormat:"dd MMMM",dateYearFormat:"dd MMMM, yyyy"},"en-PH":{timeFormat:"HH:mm",dateFormat:"MMMM dd",dateYearFormat:"MMMM dd, yyyy"},"id-ID":{timeFormat:"HH:mm",dateFormat:"dd MMMM",dateYearFormat:"dd MMMM, yyyy"},"zh-TW":{timeFormat:"HH:mm",dateFormat:"MMMM dd",dateYearFormat:"yyyy MMMM dd"},"ms-MY":{timeFormat:"HH:mm",dateFormat:"dd MMMM",dateYearFormat:"dd MMMM, yyyy"},"th-TH":{timeFormat:"HH:mm",dateFormat:"dd MMMM",dateYearFormat:"dd MMMM, yyyy"}},w=function(n,e){var t=new Date,o=(0,a.A)(n),l=(0,c.A)(t,o);if(l<0)return"";var s=g[h.HgX],d=x[h.HgX],u=d.timeFormat,p=d.dateFormat,f=d.dateYearFormat,m=(0,r.A)(o,u,{locale:s}),v=0===l?e({id:"common.date.today",defaultMessage:"Today"}):1===l?e({id:"common.date.yesterday",defaultMessage:"Yesterday"}):l<=7?e({id:"common.date.lastDays",defaultMessage:"Last {{day}}s"},{day:l}):o.getFullYear()===t.getFullYear()?(0,r.A)(o,p,{locale:s}):(0,r.A)(o,f,{locale:s});return h.HgX===i.L.Vietnam?"".concat(v):"".concat(v," - ").concat(m)}},21571:function(n,e,t){"use strict";t.d(e,{nQ:function(){return o},zW:function(){return i}});var i=function(n,e){var t=document.createElement("a"),i="data:text/csv;charset=utf-8,";n.forEach((function(n){i+=n.join(",")+"\n"})),t.href=encodeURI(i),t.target="_blank",t.download=e||"download",t.click(),t.remove()},o=function(n,e){var t=document.createElement("a");t.download=e||"",t.href=n,t.target="_blank",t.click(),t.remove()}},40409:function(n){n.exports={aCheckbox:"checkbox_aCheckbox__9nW80"}},45567:function(n){n.exports={aDivider:"divider_aDivider__nLpfi"}},27178:function(n){n.exports={aGrid:"grid_aGrid__3_UDm"}},53697:function(n){n.exports={aIconLink:"iconLink_aIconLink__UknMY",arrowLeft:"iconLink_arrowLeft__XS64S",arrowRight:"iconLink_arrowRight__ZUM17"}},83608:function(n){n.exports={aIconText:"iconText_aIconText__xPK2q"}},22437:function(n){n.exports={aSlider:"slider_aSlider__b4J9l",dot:"slider_dot__xMmI7",thumb:"slider_thumb__H69W6",trackContainer:"slider_trackContainer__XrRZx",track:"slider_track__lRCZP",labels:"slider_labels__V6gjJ",sliderInputGroup:"slider_sliderInputGroup__BdUMr",priceDelimiter:"slider_priceDelimiter__m_X46",sliderInputWrapper:"slider_sliderInputWrapper__D4TVd",sliderInput:"slider_sliderInput__PSaLH"}},72936:function(n){n.exports={mConfirmMessage:"bookingSuccessBlock_mConfirmMessage__poEoj",mConfirmMessageText:"bookingSuccessBlock_mConfirmMessageText__FREhE",confirmedMessageLink:"bookingSuccessBlock_confirmedMessageLink__3DHSd",buttonGroup:"bookingSuccessBlock_buttonGroup__3qudM",button:"bookingSuccessBlock_button__z1CCT"}},2569:function(n){n.exports={mCardServiceDetail:"cardServiceDetail_mCardServiceDetail__QP4D9",serviceHeader:"cardServiceDetail_serviceHeader__UY2H9",serviceHeaderInfo:"cardServiceDetail_serviceHeaderInfo__GJcYk",profileImage:"cardServiceDetail_profileImage__p93nx",doctorInfoheader:"cardServiceDetail_doctorInfoheader__W7wsX",doctorHeader:"cardServiceDetail_doctorHeader__HBHTc",hospital:"cardServiceDetail_hospital__e8FiX",action:"cardServiceDetail_action__jqDmR",actionPC:"cardServiceDetail_actionPC__upYiU",wrapperInfor:"cardServiceDetail_wrapperInfor__X1TGd",pricing:"cardServiceDetail_pricing__ceEiL",cta:"cardServiceDetail_cta__tVkrB",appointmentcta:"cardServiceDetail_appointmentcta__E4R7_",call:"cardServiceDetail_call__KvWvv",ctaDesktop:"cardServiceDetail_ctaDesktop__rie1k",HospitalInfo:"cardServiceDetail_HospitalInfo__bWmkk",doctorTag:"cardServiceDetail_doctorTag__IYgID"}},15451:function(n){n.exports={mCardSpecialty:"cardSpecialty_mCardSpecialty__d4XwN",cardSpecialty:"cardSpecialty_cardSpecialty__aiKy1",cardTrigger:"cardSpecialty_cardTrigger___1lxa",CardSkeleton:"cardSpecialty_CardSkeleton__CM7fc"}},16100:function(n){n.exports={mDoctorInfo:"doctorInfo_mDoctorInfo__9z_ou",infoLeftSide:"doctorInfo_infoLeftSide__ryhHR",imageCenter:"doctorInfo_imageCenter__HhD_T",doctorInfoWrapper:"doctorInfo_doctorInfoWrapper__DZJmR",viewDetailsBtn:"doctorInfo_viewDetailsBtn__ErOQ0",doctorHeader:"doctorInfo_doctorHeader__INC5Z",hospital:"doctorInfo_hospital___BafV",isDesktop:"doctorInfo_isDesktop__XNwGY",tags:"doctorInfo_tags__ZFplj",tag:"doctorInfo_tag__QCqoc",Divider:"doctorInfo_Divider__p_0XJ",Location:"doctorInfo_Location__p5veo",directions:"doctorInfo_directions__XQOFR",pricing:"doctorInfo_pricing__hGSxo",cta:"doctorInfo_cta__kSTb4",appointmentcta:"doctorInfo_appointmentcta__szWB6",call:"doctorInfo_call__Z5Y4n",isMobile:"doctorInfo_isMobile__Idm9o",ctaDesktop:"doctorInfo_ctaDesktop__fwtc_",btnCallNow:"doctorInfo_btnCallNow__60Ene",ctaButton:"doctorInfo_ctaButton__HzRgX",phoneNumberBtn:"doctorInfo_phoneNumberBtn__Vhmid",phoneButton:"doctorInfo_phoneButton__ntqZm",HospitalInfo:"doctorInfo_HospitalInfo__sh6VT",doctorInfoHeader:"doctorInfo_doctorInfoHeader__duhDZ",doctorTag:"doctorInfo_doctorTag__tS_ZL"}},13169:function(n){n.exports={mInput:"input_mInput___udXS",inputLabel:"input_inputLabel__6sIrl",errorLabel:"input_errorLabel___5nb0",actionIcon:"input_actionIcon__o63Xv",displayIcon:"input_displayIcon__Y__l9"}},26869:function(n){n.exports={pagination:"pagination_pagination__lwytb",arrow:"pagination_arrow__nrpSW",paginationBlock:"pagination_paginationBlock__C3wxr"}},9674:function(n){n.exports={mPriceHeading:"priceHeading_mPriceHeading__pQs_x"}},2966:function(n){n.exports={noResults:"bookingCard_noResults__LIlDw",noResultsSmall:"bookingCard_noResultsSmall__MxKqG",oBookingCard:"bookingCard_oBookingCard__81OlG",dateWrapper:"bookingCard_dateWrapper__WdO6p",dateBlocks:"bookingCard_dateBlocks__6NNTF",scrollButton:"bookingCard_scrollButton__3frpj",next:"bookingCard_next__S2HLb",heading:"bookingCard_heading__5GA6e",dateBlock:"bookingCard_dateBlock__jFN6o",noSlot:"bookingCard_noSlot__odM__",available:"bookingCard_available__HX7lZ",disable:"bookingCard_disable__hiyeo",day:"bookingCard_day__EAC3X",slots:"bookingCard_slots__UyYpJ",timeframe:"bookingCard_timeframe__yYvFH",buttonWrapper:"bookingCard_buttonWrapper__JElZ8",button:"bookingCard_button__C1AuR",cardInner:"bookingCard_cardInner__XuAUm",times:"bookingCard_times__BhcrY",timeframes:"bookingCard_timeframes__bncJQ",time:"bookingCard_time__J0MaE",loading:"bookingCard_loading__68BdM",top:"bookingCard_top__oFgDi",bookingHeading:"bookingCard_bookingHeading__inFGp"}},34763:function(n){n.exports={confirmationButtonGroup:"confirmPopup_confirmationButtonGroup__0XGdg",buttonRow:"confirmPopup_buttonRow__gVieY",buttonRowBetween:"confirmPopup_buttonRowBetween__Z6vYW",buttonRowCenter:"confirmPopup_buttonRowCenter__17cty",reverseButton:"confirmPopup_reverseButton__OXB4k",buttonFillWidth:"confirmPopup_buttonFillWidth__0QdVu",deletePatientInfoButton:"confirmPopup_deletePatientInfoButton__k30hH",contentPopup:"confirmPopup_contentPopup__GZBhI",confirmationPopupContainer:"confirmPopup_confirmationPopupContainer__mzkl0",confirmationPopup:"confirmPopup_confirmationPopup__6L2_5"}},32023:function(n){n.exports={oMap:"map_oMap__Bt8q5",card:"map_card__nf25A",map:"map_map__dKKTO",hospitalTitle:"map_hospitalTitle__zHTdR",hospital__moreInfo:"map_hospital__moreInfo__OppWS",dots:"map_dots__xuk1o",infoList:"map_infoList__hrWDi",directions:"map_directions__aytFE",directionsNo:"map_directionsNo__fZII8",phoneButton:"map_phoneButton__1ZYaW"}},83686:function(){},32383:function(){}},function(n){var e=Promise.all([n.f.consumes||function(n,e){},n.f.remotes||function(n,e){}].reduce((function(n,e){return e("3332",n),n}),[])).then((function(){return n.X(0,[5008,5374,1570,971,8015,8e3,4117,2532,9680,8887,2571,8652,968,1171,7333,7300,1145,9185,1523,2946,4340,2060,1768,3244,2876,4029,636,8792],(function(){return e=92022,n(n.s=e);var e}))}));_N_E=e}]);