(self.webpackChunkhhgHealthCareV1=self.webpackChunkhhgHealthCareV1||[]).push([[4909,7311],{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&&w.append("services[".concat(j,"][id]"),H.id.toString()),Number(H.priceType)===l.vne.RANGE&&H.maxPrice&&w.append("services[".concat(j,"][price_to]"),H.maxPrice.toString()))}}catch(R){z=!0,O=R}finally{try{P||null==T.return||T.return()}finally{if(z)throw O}}return B.length&&w.append("services_delete_ids",B.join(",")),null===(d=n.experiences)||void 0===d||d.forEach(u("experience",w)),null===(f=n.education)||void 0===f||f.forEach(u("education",w)),null===(h=n.awards)||void 0===h||h.forEach(u("awards",w)),null===(g=n.publication)||void 0===g||g.forEach(p("publication",w)),null===(v=n.memberships)||void 0===v||v.forEach(p("memberships",w)),null===(m=n.languages)||void 0===m||m.forEach((function(n){w.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",w)),w}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,v,m,b,w,A={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===(v=n.languages)||void 0===v?void 0:v.map((function(n,e){return{id:e,name:n}})))||[],faq:(null===(m=n.faqs)||void 0===m?void 0:m.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&&(A.doctorProfilePicture=n.avatar),n.phone&&!e&&(A.phoneNumber=n.phone),null===(w=n.experiences)||void 0===w?void 0:w.length){A.experiencesLegacy="";var x=!0,y=!1,C=void 0;try{for(var M,k=n.experiences[Symbol.iterator]();!(x=(M=k.next()).done);x=!0){var Y=M.value;try{var I=JSON.parse(Y.description),D=I.content,E=I.year;(D||E)&&(A.experiencesLegacy+="".concat(D,": ").concat(E,"\n"))}catch(F){}}}catch(N){y=!0,C=N}finally{try{x||null==k.return||k.return()}finally{if(y)throw C}}}return A}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 v=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},m=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}},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 v}});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()),v=o.Ay.div.withConfig({componentId:"sc-a445b49e-5"})(d())},3045:function(n,e,t){"use strict";t.d(e,{A:function(){return x}});var i=t(2445),o=t(32876),r=t.n(o),a=t(24537),c=t(27317);function l(){var n=(0,a.A)(["\n display: flex;\n min-height: 40px;\n align-items: center;\n background: ",";\n overflow-x: auto;\n\n [data-last='true'] > a {\n color: ",";\n }\n"]);return l=function(){return n},n}function s(){var n=(0,a.A)(["\n display: flex;\n align-items: center;\n"]);return s=function(){return n},n}function d(){var n=(0,a.A)(["\n width: 1px;\n height: 20px;\n background-color: ",";\n margin: 0 10px 0 15px;\n"]);return d=function(){return n},n}function u(){var n=(0,a.A)(["\n width: 32px;\n height: 32px;\n flex: 0 0 32px;\n background-color: ",";\n cursor: pointer;\n align-items: center;\n justify-content: center;\n display: flex;\n border-radius: 50%;\n"]);return u=function(){return n},n}var p,f=c.Ay.div.withConfig({componentId:"sc-dc56748f-0"})(l(),(function(n){return n.theme.colors.blue50}),(function(n){return n.theme.colors.primaryBase})),h=c.Ay.div.withConfig({componentId:"sc-dc56748f-1"})(s()),g=c.Ay.div.withConfig({componentId:"sc-dc56748f-2"})(d(),(function(n){return n.theme.colors.neutral100})),v=c.Ay.a.withConfig({componentId:"sc-dc56748f-3"})(u(),(function(n){return n.theme.colors.white})),m=t(19475),b=t(73884);function w(){return w=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))}},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,v=void 0===g?"#FC7419":g,m=n.className,b=function(n){return(0,i.Y)("span",{children:n})},w=(0,c.A)().formatMessage,A=(0,a.$)().locale,x=void 0===A?"vi-VN":A,y=p.Xq3[x],C=(0,o.useMemo)((function(){return(null===y||void 0===y?void 0:y.email)&&(null===y||void 0===y?void 0:y.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===y||void 0===y?void 0:y.hotline)||"",email:(null===y||void 0===y?void 0:y.email)||""}}):(null===y||void 0===y?void 0:y.email)&&!(null===y||void 0===y?void 0:y.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===y||void 0===y?void 0:y.email}}):""}),[y]),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:m,children:(0,i.FD)(u,{className:"flex items-start",bgColor:h,iconColor:v,children:[(0,i.Y)(f.A,{className:"mr-[0px]"}),e||w({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&&v()}),c);return function(){clearInterval(n)}}),[null===h||void 0===h?void 0:h.content,c]);var v=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 v()}}),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 w},PZ:function(){return g},dX:function(){return b},uB:function(){return m},w9:function(){return v},xv:function(){return A}});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())})),v=c.Ay.div.withConfig({componentId:"sc-105c083f-1"})(d()),m=c.Ay.button.withConfig({componentId:"sc-105c083f-2"})(u(),o.M.mbDown),b=(0,c.Ay)(r.T).withConfig({componentId:"sc-105c083f-3"})(p()),w=(0,c.Ay)(a.m.div).withConfig({componentId:"sc-105c083f-4"})(f()),A=(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,v=n.sizeMapping,m=n.isHidden,b=n.hideIfHasSubot,w=n.refreshInterval,A=n.customTargetings,x=n.style,y=n.adDefaultSize,C=(0,c.useRouter)().locale,M=(0,l.A)().formatMessage,k=d.Uq.includes(C),Y=(0,o.useRef)(null),I=(0,o.useRef)(null),D=(0,o.useRef)(null),E=(0,o.useRef)(!1),F=function(){u(I.current),I.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:v,hideIfHasSubot:b,customTargetings:A}),w&&(null!==D.current&&clearInterval(D.current),D.current=window.setInterval((function(){window.googletag=window.googletag||{cmd:[]};var n=window.googletag;n.cmd.push((function(){I.current&&n.pubads().refresh([I.current])}))}),1e3*w))},N=(0,o.useRef)(F);return N.current=F,(0,o.useEffect)((function(){return setTimeout((function(){var n;!m&&k&&(null===(n=N.current)||void 0===n||n.call(N));E.current=!0}),1e3+Math.floor(1e3*Math.random())),function(){I.current&&u(I.current),D.current&&clearInterval(D.current)}}),[]),(0,o.useEffect)((function(){var n;!m&&k&&E.current&&(null===(n=N.current)||void 0===n||n.call(N))}),[]),k?(0,i.FD)(s.E6,{ref:Y,className:t,style:x,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:y?"".concat(y[0],"px"):"100%",minHeight:y?"".concat(y[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 v},af:function(){return m},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),v=r.Ay.div.withConfig({componentId:"sc-66ebac93-4"})(d(),(function(n){return n.theme.colors.gray600})),m=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 W}});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),v=t(62862),m=t(43184),b=t(24537),w=t(4766),A=t(27317);function x(){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 x=function(){return n},n}function y(){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 y=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 k(){var n=(0,b.A)(["\n min-width: 262px;\n max-height: 300px;\n padding: 8px;\n overflow-y: auto;\n"]);return k=function(){return n},n}function Y(){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 Y=function(){return n},n}var I,D=A.Ay.div.withConfig({componentId:"sc-d4262f1d-0"})(x()),E=A.Ay.div.withConfig({componentId:"sc-d4262f1d-1"})(y(),(function(n){return n.theme.colors.secondaryDark})),F=A.Ay.div.withConfig({componentId:"sc-d4262f1d-2"})(C(),(function(n){return n.theme.colors.white}),w.M.tdDown),N=A.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})),B=A.Ay.div.withConfig({componentId:"sc-d4262f1d-4"})(k()),P=A.Ay.li.withConfig({componentId:"sc-d4262f1d-5"})(Y(),(function(n){return n.theme.colors.gray100})),z=t(88576),O=t(47770),S=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)(""),w=b[0],A=b[1],x=(0,g.A)(r().useState(!1),2),y=x[0],C=x[1],M=(0,o.useRef)(null);(0,v.j)(M,(function(){return C(!1)}));var k=w?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,w):s;return(0,i.FD)(D,{className:e,style:t,ref:M,children:[(0,i.FD)(E,{onClick:function(){return C(!y)},children:[(0,i.Y)("div",{children:c}),s.length>0&&(0,i.Y)(z.A,{})]}),y&&s.length>0&&(0,i.FD)(F,{children:[f&&(0,i.Y)(N,{children:(0,i.Y)(a.I,{size:"sm",displayIcon:(0,i.Y)(O.A,{}),name:"",value:w,placeholder:l,onChange:function(n){A(n),u&&u(n)},autoComplete:"off"})}),(0,i.FD)(B,{children:[!h&&k.length>0&&k.map((function(n,e){return(0,i.Y)(P,{onClick:function(){d(n),C(!1)},children:n.label},"".concat(e,"-").concat(n.value))})),!h&&0===k.length&&(0,i.Y)("div",{className:"text-c",children:(0,i.Y)(m.Sv,{})}),h&&(0,i.Y)("div",{className:"text-c",children:(0,i.FD)(m.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)"})]})})]})]})]})},T=t(69831),L=t(65004),j=t(40959),H=t(8758);function R(){return R=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 v=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),m=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),w=a.Ay.div.withConfig({componentId:"sc-29f61629-3"})(d(),o.M.mbDown,o.M.tdOnly),A=a.Ay.div.withConfig({componentId:"sc-29f61629-4"})(u()),x=a.Ay.button.withConfig({componentId:"sc-29f61629-5"})(p(),r.JpE,r.JpE,(function(n){return n.theme.sizes.fwSemiBold})),y=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),v=t(73419),m=t(53286),b=t(6442),w=t(36259),A=t(12577),x=t(1971),y=function(n){var e=(0,b.A)().formatMessage;return(0,r.Y)(x.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,k=n.hasHospitalSearch,Y=n.alert,I=n.adminNavigationRightAdditionalRightComponent,D=n.rightDropdownSearchComponent,E=n.hospitalId,F=n.branchId,N=n.handleChangeHospitalOption,B=n.handleChangeBranchOption,P=(0,b.A)().formatMessage,z=(0,a.useContext)(w.B).state.userInfo,O=(0,g.d)().isMobileOrTablet,S=(0,v.$)().locale,T=(0,h.o)(),L=T.hospitalId,j=T.branchId,H=T.replaceInvalidHospitalIdAndBranchId,R=T.setHospitalIdAndBranchId;(0,a.useEffect)((function(){H()}),[]);var _=(0,r.FD)(x.dB,{children:[(0,r.Y)(f.i,{id:"hospital-dropdown",className:"dropdown hospital",placeholder:P({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,m.handleChangeHospitalOption)(e,L),R((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:P({id:"admin.users.allBranches",defaultMessage:"All branches"}),value:null!==F&&void 0!==F?F:j,handleChange:function(n){var e;e=n,B?B(e):((0,m.handleChangeBranchOption)(e,L,j),R((function(n){return(0,o.A)((0,i.A)({},n),{branchId:e.value})})))},hospitalId:null!==E&&void 0!==E?E:L,roleUser:null===z||void 0===z?void 0:z.role,disabled:!!E||!!F||!L})]});return(0,r.FD)(x.rf,{className:u()(t,{"has-search":k}),children:[(0,r.FD)(x._H,{children:[(0,r.Y)(c.H,{tag:"h5",color:l.w.colors.secondaryDark,className:"font-capital",children:e||""}),k&&_,D,M&&(0,r.Y)(x.lF,{children:(0,r.Y)(s.D,{placeholder:"placeholder",displayDateFormat:"dd-MM-yyyy",pickedDate:new Date,customInput:y,onChange:function(){},locale:S})})]}),!O&&(0,r.Y)(A.A,{alert:Y,notificationBadgeNumber:d,additionalComponent:I})]})}},39900:function(n,e,t){"use strict";t.d(e,{R:function(){return kn}});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),v=t(24537),m=t(4766),b=t(27317);function w(){var n=(0,v.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 w=function(){return n},n}function A(){var n=(0,v.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 A=function(){return n},n}function x(){var n=(0,v.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 x=function(){return n},n}var y=b.Ay.div.withConfig({componentId:"sc-6141c933-0"})(w(),m.M.mbUp,(function(n){return n.theme.colors.neutral100})),C=b.Ay.div.withConfig({componentId:"sc-6141c933-1"})(A(),(function(n){return n.theme.colors.gray600}),(function(n){return n.theme.colors.red600}),(function(n){return n.theme.colors.gray400}),m.M.mbDown,(function(n){return n.theme.colors.gray400}),m.M.mbDown,(function(n){return n.theme.colors.gray800})),M=b.Ay.div.withConfig({componentId:"sc-6141c933-2"})(x(),(function(n){return n.theme.colors.blue50})),k=t(50126),Y=t(49785),I=t(68289),D=t(40959),E=t(1135);function F(){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,I.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=F().translations,o=(0,Y.xW)(),c=o.reset,l=o.formState.isSubmitting;return(0,a.useImperativeHandle)(e,(function(){return{reset:function(){c()}}})),(0,r.Y)(k.B,{size:"sm",isBlock:!0,className:"addButton",disabled:l,children:"add"===t?i.addNewPatient:i.saveChanges})})),B=t(35291),P=t(74952),z=t(630),O=t(35084),S=t(32485),T=t.n(S),L=t(66298),j=t(62862),H=t(21336);function R(){var n=(0,v.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 R=function(){return n},n}function _(){var n=(0,v.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 _=function(){return n},n}function Q(){var n=(0,v.A)(["\n display: inline-block;\n margin-bottom: 4px;\n color: ",";\n font-weight: ",";\n"]);return Q=function(){return n},n}function U(){var n=(0,v.A)(["\n color: ",";\n font-weight: ",";\n"]);return U=function(){return n},n}var V=b.Ay.div.withConfig({componentId:"sc-de8b215c-0"})(R()),G=b.Ay.button.withConfig({componentId:"sc-de8b215c-1"})(_(),(function(n){return n.theme.colors.gray200}),(function(n){return n.theme.colors.red700})),W=(b.Ay.label.withConfig({componentId:"sc-de8b215c-2"})(Q(),(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,j.j)(c,(function(){u(!1)})),(0,r.Y)(Y.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)(V,{ref:c,children:[t&&(0,r.Y)(z.L,{size:"label2",htmlFor:e,className:"datePickerLabel",children:t}),(0,r.FD)(G,{type:"button",className:T()({error:!!f}),onClick:function(){return u(!d)},children:[(0,r.Y)(l.T,{size:"s4",color:s?B.w.colors.gray800:B.w.colors.gray400,children:s?(0,L.A)(s,D.AI5):D.AI5.toUpperCase()}),(0,r.Y)(H.h,{iconSize:20,svgIcon:{fill:B.w.colors.gray400},onClick:function(){return null},children:(0,r.Y)(W.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:B.w.colors.red700,children:"string"===typeof o?o:p({id:"common.error.requiredField",defaultMessage:"This field is required"})})]})}})}var q=t(53513),X=t(63538),K=t(64411);function Z(){var n=(0,v.A)(["\n margin-bottom: 18px;\n\n & > ul {\n z-index: 10;\n }\n"]);return Z=function(){return n},n}function $(){var n=(0,v.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 $=function(){return n},n}var nn=(0,b.Ay)(K.D).withConfig({componentId:"sc-a07f320c-0"})(Z()),en=b.Ay.div.withConfig({componentId:"sc-a07f320c-1"})($(),(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,Y.xW)(),h=p.register,g=p.control,v=p.formState.errors,m=h(e,{validate:l?{required:function(n){return!!n}}:void 0});return(0,r.Y)(Y.xI,{name:e,control:g,render:function(n){var c=n.field;return(0,r.FD)(en,{className:i,"data-is-error":!!v[e],"data-has-value":!!c.value,children:[o&&(0,r.Y)(z.L,{size:"label2",htmlFor:e,className:"formDropdownLabel",children:o}),(0,r.Y)(nn,(0,X.A)((0,q.A)({},m),{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,v.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,v.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(),m.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)(k.B,{size:"sm",type:"button",color:"tertiary",onClick:h,children:u({id:"common.photo.changePhoto",defaultMessage:"Change Photo"})}),(0,r.Y)(k.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)(Y.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:T()("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,v.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 vn,mn=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)(mn,{children:[t,(0,r.FD)("div",{className:"title",children:[(0,r.Y)("div",{children:e}),(0,r.Y)("div",{className:"arrow"})]})]})};function wn(){return wn=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:""},kn=function(n){var e=n.isOpen,t=void 0!==e&&e,v=n.formType,m=n.defaultValues,b=void 0===m?Mn:m,w=n.onClose,A=n.onAddOrEditFamilyProfile,x=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,k=F().translations,Y=(0,a.useRef)(null),I=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"===v?u.R.CREATE_PATIENT_INFO:u.R.UPDATE_PATIENT_INFO,t="edit"===v?{id:b.id}:{},i=(0,d.jz)(n),"edit"===v&&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"===v?{id:"admin.booking.createSuccessfully",defaultMessage:"Create successfully"}:{id:"admin.booking.updateSuccessfully",defaultMessage:"Update successfully"}),type:"success"}),A((0,s.nz)(null===(c=r._data)||void 0===c?void 0:c.contact)),"add"===v&&(null===(l=Y.current)||void 0===l||l.reset()),w()):x((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(v," sub patient error"),f),x(),[3,3];case 3:return[2]}}))}));return function(e){return n.apply(this,arguments)}}();return(0,r.Y)(y,{children:(0,r.Y)(c.P,{type:"form",isOpen:t,onClose:w,closeIcon:(0,r.Y)(Cn.A,{}),className:"patientFormPopup",children:(0,r.FD)(g.l,{name:"".concat(v,"-sub-patient"),onSubmit:I,defaultValues:b,children:[(0,r.Y)(l.T,{size:"s3",type:"semiBold",className:"form-heading",children:"add"===v?k.addNewProfile:k.editProfile}),(0,r.Y)(yn,{}),(0,r.Y)(N,{formType:v,ref:Y})]})})})}},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),v=t(3184);function m(){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 m=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 w(){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 w=function(){return n},n}function A(){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 A=function(){return n},n}function x(){var n=(0,f.A)(["\n display: flex;\n gap: 16px;\n\n "," {\n order: 1;\n }\n"]);return x=function(){return n},n}var y=(0,g.Ay)(v.k).withConfig({componentId:"sc-fc51186f-0"})(m(),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"})(w(),(function(n){return n.theme.colors.neutral100}),h.M.mbDown),k=g.Ay.div.withConfig({componentId:"sc-fc51186f-3"})(A(),h.M.mbDown,h.M.mbDown),Y=g.Ay.div.withConfig({componentId:"sc-fc51186f-4"})(x(),h.M.mbDown),I=t(95456),D=function(n){var e,t=n.className,f=n.doctorInfo,h=n.isMobile,g=(0,p.A)().formatMessage,v=f.name,m=f.avatar,b=f.provideCare,w=f.specialties,A=f.validOutpatient,x=f.validTelemedicine,D=!!(null===(e=f.organization)||void 0===e?void 0:e.publish_reviews),E=(0,o.useMemo)((function(){return w.map((function(n){return n.name}))}),[w]),F=(0,s.Zo)(f),N=h?64:96,B=function(n){return{forChildren:n===u.jc_.CHILDREN||n===u.jc_.BOTH,forAdult:n===u.jc_.ADULTS||n===u.jc_.BOTH}}(b),P=B.forAdult,z=B.forChildren;return(0,i.Y)(M,{className:t,children:(0,i.Y)(k,{children:(0,i.FD)(Y,{children:[(0,i.Y)("div",{className:"profileImage",children:(0,i.Y)(I.Y,{layout:"responsive",src:(0,l.wW)(m,"".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:v}),(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)(y,{ratingPoint:f.rating,ratingScale:u.Efn,reviewCounting:f.totalReviews,reviewsUrl:"".concat(F,"/reviews")}),(0,i.FD)(C,{children:[A&&(0,i.Y)(d.vw,{type:"blue",children:g({id:"doctorInfoComponent.booking",defaultMessage:"Booking"})}),x&&(0,i.Y)(d.vw,{type:"warning",children:g({id:"bookingPage.telemedicine",defaultMessage:"Telemedicine"})}),z&&(0,i.Y)(d.vw,{children:g({id:"forChildren",defaultMessage:"For Children"})}),P&&(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),v=t(31015),m=t(40959),b=function(n){var e=n.trackingHospitalProps,t=n.organizationLogo,d=n.hospitalName,h=n.goHospitalPage,b=n.isDisplayDistance,w=n.distance,A=n.handleMakeAppointment,x=n.address,y=n.hospitalURL,C=n.isMobile,M=void 0!==C&&C,k=n.isDoctorUnavailable,Y=void 0!==k&&k,I=(0,s.$)(),D=I.locale,E=I.asPath,F=(0,a.useContext)(f.B).state.isLoggedIn,N=(0,p.A)().formatMessage;return(0,r.FD)(v.FD,(0,o.A)((0,i.A)({},e),{"data-is-mobile":M,children:[(0,r.Y)(v.Hb,(0,o.A)((0,i.A)({width:40,height:40,layout:"fixed",objectFit:"contain",src:t||"".concat(m.JpE,"/images/hospital-logo.png")},e),{className:"pointer",onClick:h})),(0,r.FD)(v.sb,{children:[(0,r.Y)(c.T,{size:"p4",type:"semiBold",children:(0,r.Y)(u(),{href:y||"#",children:(0,r.Y)("a",(0,o.A)((0,i.A)({},e),{className:"color-inherit",children:d}))})}),(0,r.FD)(v.tM,{children:[(0,r.Y)(v.NF,{children:(0,r.Y)(v.UQ,{children:(0,r.Y)("a",(0,o.A)((0,i.A)({},e),{onClick:h,children:x}))})}),b&&(0,r.FD)(v.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(w)>=0?Math.round(10*((parseFloat("".concat(w))||0)+1e-5))/10+" km":""}))})]})]})]}),!Y&&(0,r.Y)(v.vz,{size:"md",color:"primary",isBlock:!0,className:g().ctaButton,"data-is-logged-in":F,onClick:A,dataEventCategory:"Care",dataEventAction:"Doctor Appointment Click",dataEventLabel:"https://".concat(l.y[D]).concat(m.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 I},NF:function(){return N},Q1:function(){return E},UQ:function(){return z},aD:function(){return P},sb:function(){return B},tM:function(){return F},vz:function(){return C},yW:function(){return k},zI:function(){return Y}});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 v(){var n=(0,i.A)(["\n position: absolute;\n right: 16px;\n justify-content: flex-end;\n"]);return v=function(){return n},n}function m(){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 m=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 w(){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 w=function(){return n},n}function A(){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 A=function(){return n},n}function x(){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 x=function(){return n},n}function y(){var n=(0,i.A)(["\n font-weight: 400;\n font-size: 12px;\n line-height: 18px;\n color: ",";\n"]);return y=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})),k=a.Ay.img.withConfig({componentId:"sc-d2f34187-3"})(f()),Y=(0,a.Ay)(c.S).withConfig({componentId:"sc-d2f34187-4"})(h()),I=(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"})(v()),E=a.Ay.div.withConfig({componentId:"sc-d2f34187-7"})(m()),F=a.Ay.div.withConfig({componentId:"sc-d2f34187-8"})(b()),N=a.Ay.div.withConfig({componentId:"sc-d2f34187-9"})(w()),B=a.Ay.div.withConfig({componentId:"sc-d2f34187-10"})(A(),r.M.mbUp),P=a.Ay.div.withConfig({componentId:"sc-d2f34187-11"})(x(),(function(n){return n.theme.colors.gray600})),z=a.Ay.p.withConfig({componentId:"sc-d2f34187-12"})(y(),(function(n){return n.theme.colors.gray600}))},89238:function(n,e,t){"use strict";t.d(e,{w:function(){return I}});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),v=t.n(g),m=t(73419),b=t(40959),w=t(32876),A=t.n(w),x=t(6442),y=t(1247),C=t(16100),M=t.n(C),k=t(31015),Y=t(74834),I=function(n){var e,t,p=n.doctorInfo,g=n.hospitalInfo,w=n.orderedListIndex,C=n.gps,I=n.className,D=n.isFeaturedDoctor,E=n.isMobile,F=p.name,N=p.price,B=p.priceTo,P=p.priceType,z=p.avatar,O=p.provideCare,S=p.specialties,T=p.organization,L=p.validOutpatient,j=p.validTelemedicine,H=p.rating,R=p.totalReviews,_=p.bookingUrl,Q=p.gender,U=p.status,V=p.promotion,G=(0,m.$)(),W=G.locale,J=g.name,q=g.address,X=g.latitude,K=g.longitude,Z=(0,x.A)().formatMessage,$=C&&C.lat&&C.lng&&X&&K?v()({lat:X,lon:K},{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&&!j,tn="zh-TW"===W?nn:(0,u.Zo)(p)+"/",on={"data-event-category":"Care","data-event-action":"Doctor Click ".concat(w+1),"data-event-label":"https://".concat(s.y[W]).concat(tn)},rn="zh-TW"===W?nn:(0,u.eP)(g),an={"data-event-category":"Care","data-event-action":"Hospital Click ".concat(w+1),"data-event-label":"zh-TW"===W?nn:"https://".concat(s.y[W]).concat(rn,"/")},cn=!!(null===(t=p.organization)||void 0===t?void 0:t.publish_reviews),ln=function(){"zh-TW"===W&&_?G.push(_):G.push(tn)},sn=(0,a.useMemo)((function(){return S.map((function(n){return(null===n||void 0===n?void 0:n.name)||n})).join(", ")}),[S]),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!==$,pn=(0,a.useMemo)((function(){return z===d.k_&&"zh-TW"===W?Q===b.YT8.FEMALE?"".concat(b.JpE,"/images/femaleAvatar.svg"):"".concat(b.JpE,"/images/maleAvatar.svg"):z||d.k_}),[W]);return(0,r.FD)("div",{className:f()(M().mDoctorInfo,I),style:{padding:D?"16px 16px 16px 16px":"16px 16px 0 16px"},children:[cn&&(0,r.Y)(k.Bm,{ratingPoint:H,ratingScale:b.Efn,reviewCounting:R,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)(k.Q1,{"data-is-mobile":E,className:"zh-TW"===W?"disable-click":"",children:[(0,r.Y)(A(),{href:tn,children:(0,r.Y)("a",{children:(0,r.Y)(k.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)(A(),{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:F})}))}),(0,r.Y)(A(),{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)(A(),{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:Z({id:"common.notAvailable",defaultMessage:"Not available"})})}))}):(0,r.FD)(r.FK,{children:[L&&(0,r.Y)(A(),{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:Z({id:"doctorInfoComponent.booking",defaultMessage:"Booking"})})}))}),j&&(0,r.Y)(A(),{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:Z({id:"bookingPage.telemedicine",defaultMessage:"Telemedicine"})})}))})]}),(O===b.jc_.CHILDREN||O===b.jc_.BOTH)&&(0,r.Y)(A(),{href:tn,children:(0,r.Y)("a",(0,o.A)((0,i.A)({},on),{children:(0,r.Y)(h.vw,{className:M().doctorTag,children:Z({id:"forChildren",defaultMessage:"For Children"})})}))}),(O===b.jc_.ADULTS||O===b.jc_.BOTH)&&(0,r.Y)(A(),{href:tn,children:(0,r.Y)("a",(0,o.A)((0,i.A)({},on),{children:(0,r.Y)(h.vw,{className:M().doctorTag,children:Z({id:"forAdults",defaultMessage:"For Adults"})})}))})]}),!dn&&(0,r.Y)("div",{className:f()(M().pricing,M().isDesktop),children:(0,r.Y)(A(),{href:tn,children:(0,r.Y)("a",(0,o.A)((0,i.A)({},on),{children:(0,r.Y)(k.zI,{priceType:P,price:N,priceTo:B})}))})}),V&&(0,r.Y)(Y.A,{})]})]})}),D?(0,r.Y)(l.B,{size:"md",color:"secondary",isBlock:!0,className:f()(M().viewDetailsBtn),onClick:ln,children:Z({id:"admin.guide.viewDetails",defaultMessage:"View details"})}):(0,r.Y)(y._,{trackingHospitalProps:an,organizationLogo:(null===T||void 0===T?void 0:T.logo)||(null===g||void 0===g?void 0:g.logo),hospitalName:J,goHospitalPage:function(){G.push(rn)},isDisplayDistance:un,distance:$,handleMakeAppointment:ln,address:q,hospitalURL:rn,isMobile:E,isDoctorUnavailable:en})]})]})}},43184:function(n,e,t){"use strict";t.d(e,{U1:function(){return y},Sv:function(){return x},vv:function(){return A}});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})),v=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 m(){var n=(0,o.A)(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"]);return m=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 w=(0,d.i7)(m()),A=d.Ay.svg.withConfig({componentId:"sc-b5260283-0"})(b(),w);function x(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 y=c().forwardRef((function(n,e){var t,o=n.className,d=n.style,p=n.id,f=n.placeholder,h=n.placeholderIcon,m=n.onChange,b=n.value,w=n.options,A=n.isLoading,x=n.onBlur,y=n.onFocus,C=n.errorMessage,M=n.hasFilterOption,k=void 0===M||M,Y=n.hasFilterValueFromOptions,I=void 0===Y||Y,D=n.disabled,E=n.onKeyPress,F=n.customPlaceHolder,N=n.useInnerHTML,B=void 0!==N&&N,P=n.onChangeField,z=n.hasEditIcon,O=void 0!==z&&z,S=n.onEdit,T=(0,a.useState)(""),L=T[0],j=T[1],H=(0,i.A)(c().useState(!1),2),R=H[0],_=H[1],Q=(0,a.useState)(null!==(t=null===b||void 0===b?void 0:b.value)&&void 0!==t?t:""),U=Q[0],V=Q[1],G=(0,a.useRef)(null),W=(0,a.useRef)(null);(0,s.j)(W,(function(){_(!1)}));var J=L&&!P?k?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)}))}(w,L):w:b&&I?w.filter((function(n){return n.value!==b.value})):w,q=b?w.find((function(n){return String(n.value)===String(b.value)})):null;return(0,r.Y)(g,{className:o,"data-dropdown-open":R,id:p,"data-has-icons":!0,"data-has-edit-icon":O,ref:G,style:d,tabIndex:0,"data-has-error":C&&C.length>0||void 0,disabled:D,hasEdit:O,onClick:function(){S&&S()},children:(0,r.FD)(v,{ref:W,children:[(0,r.Y)(l.a,{ref:e,name:"dropdown-input-".concat(p),autoFocus:!1,displayIcon:h,size:"sm",onChange:function(n){void 0===P?(m(null,n),j(n)):(P(n),j(n))},placeholder:f,value:q?q.label:b&&b.value?b.label:L,autoComplete:"off",className:"input-search",onBlur:function(n){var e;(e=n).relatedTarget&&e.relatedTarget.id===p||(j(""),x&&x())},onFocus:y,isDisabled:D,errorMessage:R?"":C,onKeyDown:E,onClick:function(){return _(!0)}}),!D&&R&&(0,r.Y)(u.qw,{options:J,isLoading:A,hasIcons:!0,onChange:function(n,e){_(!1),console.log("on handleSelectOption: ",n),m(n,e)},setSearch:j,scrollToOption:U,setScrollToOption:V,customPlaceHolder:F,useInnerHTML:B})]})})}))},41172:function(n,e,t){"use strict";t.d(e,{qw:function(){return A},Sv:function(){return w},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 v(){var n=(0,i.A)(["\n animation: "," 1.2s linear infinite;\n"]);return v=function(){return n},n}var m=(0,c.i7)(g()),b=c.Ay.svg.withConfig({componentId:"sc-56a2cda-0"})(v(),m);function w(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 A=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,v=void 0!==g&&g,m=(0,r.useRef)(null);return(0,r.useEffect)((function(){if(m.current&&s){var n,t,i=e.findIndex((function(n){return n.value===s}));if(-1!==i)m.current.scroll({top:(null===(n=m.current)||void 0===n?void 0:n.children[i].getBoundingClientRect().top)-(null===(t=m.current)||void 0===t?void 0:t.getBoundingClientRect().top)})}}),[s]),(0,o.FD)(p,{className:"dropdown-option","data-has-icons":i,ref:m,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)(w,{})})}),!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:v?(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 A}});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()),v=d.Ay.div.withConfig({componentId:"sc-56c5d382-1"})(p(),(function(n){return n.theme.colors.neutral50})),m=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 v(){var n=(0,d.A)(["\n width: 100%;\n height: 100%;\n flex: 1 1 0%;\n input {\n width: 100%;\n }\n"]);return v=function(){return n},n}function m(){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 m=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 w(){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 w=function(){return n},n}function A(){var n=(0,d.A)(["\n color: ",";\n font-weight: ",";\n"]);return A=function(){return n},n}var x=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})),y=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})),k=u.Ay.div.withConfig({componentId:"sc-8d9589f1-4"})(v()),Y=u.Ay.ul.withConfig({componentId:"sc-8d9589f1-5"})(m(),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray200}),(function(n){return n.theme.colors.gray200})),I=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"})(w()),E=u.Ay.label.withConfig({componentId:"sc-8d9589f1-8"})(A(),(function(n){return n.theme.colors.red700}),(function(n){return n.theme.sizes.fwRegular})),F=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,v=n.disabledOption,m=n.isLoading,b=n.setKeyword,w=n.isAbleToAddNew,A=void 0!==w&&w,N=n.onAddNew,B=(0,o.useState)(""),P=B[0],z=B[1],O=(0,o.useState)(!1),S=O[0],T=O[1],L=(0,o.useState)(f),j=L[0],H=L[1],R=(0,o.useState)(!1),_=R[0],Q=R[1],U=function(){return Q(!_)},V=(0,o.useRef)(null),G=(0,o.useState)([]),W=G[0],J=G[1];(0,o.useEffect)((function(){H(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)))}));H(e)}}),[h,f]),(0,l.j)(V,(function(){Q(!1)}));var q=function(n){var e=W.filter((function(e){return e.value!==n.value}));J(e),u(e),H(j.concat(n))};return(0,o.useEffect)((function(){b(P)}),[P]),(0,i.FD)(x,{className:c()(e,{focused:S}),"data-dropdown-open":_||void 0,id:a,"data-has-icons":!0,ref:V,onBlur:function(n){return e=n,T(!1),void(e.relatedTarget&&e.relatedTarget.id===a||z(""));var e},onFocus:function(){return T(!0)},style:t,tabIndex:0,children:[(0,i.Y)(y,{onClick:U,"data-has-error":g&&g.length>0,children:(0,i.FD)(C,{children:[W.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 q(n)},children:(0,i.Y)(F.A,{className:"no-margin"})})]},"".concat(e,"-").concat(n.value,"-tag"))})),(0,i.Y)(k,{children:(0,i.Y)("input",{type:"text",onChange:function(n){return e=n.target.value,Q(!0),void z(e);var e},placeholder:d,value:p&&p.value?p.label:P,onKeyDown:function(n){if("Enter"===n.key){if(n.preventDefault(),A){var e=n.currentTarget.value;if(e){var t={value:-Date.now(),label:e};u(W.concat([t])),z(""),N&&N(t)}}}else"Backspace"===n.key&&""===n.currentTarget.value&&(n.preventDefault(),q(W[W.length-1]))},style:{width:W.length?void 0:250}})})]})}),g&&g.length>0&&(0,i.Y)(E,{className:"errorLabel",children:g}),_&&(0,i.FD)(Y,{onClick:U,className:c()("dropdown-option",{"dropdown-option__disabled":v}),children:[m&&(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)"})]})}),!m&&0===j.length&&(0,i.Y)("div",{className:"none",children:(0,i.Y)(r.T,{size:"sm",children:(0,i.Y)(s.Sv,{})})}),!m&&j.length>0&&j.map((function(n){return(0,i.FD)(I,{"data-selected":p&&p.value===n.value||void 0,onClick:function(){v||(z(""),function(n){var e=j.filter((function(e){return e.value!==n.value})),t=W.concat(n);J(t),u(t),H(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 vo.n},Fg:function(){return di},Cv:function(){return oo},cW:function(){return Ae.AdminNavigation},oR:function(){return Lt},K3:function(){return go},rk:function(){return Di},By:function(){return pe},Il:function(){return we},vB:function(){return rn.v},h7:function(){return gn},V4:function(){return U},wu:function(){return tn.w},rI:function(){return Ht.r},pd:function(){return s},eX:function(){return Ji},jD:function(){return ki},KL:function(){return No},dK:function(){return g},LR:function(){return M.L},Al:function(){return Cn},Vw:function(){return Vo},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,v=n.isDisabled,m=n.onFocus,b=n.onBlur,w=n.shouldInputFocus,A=n.type,x=n.children,y=n.isAutoComplete,C=n.isReadOnly,M=n.isLabelActivateInput,k=n.dataEventCategory,Y=n.dataEventAction,I=n.dataEventLabel,D=(0,o.useRef)(null);return(0,o.useEffect)((function(){w?(D.current&&D.current.focus(),m&&m()):D.current&&D.current.blur()}),[w]),(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:y||"off",placeholder:p,onChange:h,onKeyPress:function(n){return g&&g(n)},type:A||"text",value:t,disabled:v,onFocus:m,autoFocus:w||void 0,ref:D,"data-event-category":k,"data-event-action":Y,"data-event-label":I}),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}),x]})},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],v=t-1,m=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 m(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 m(n)},children:n},"pagination+".concat(n))})),(0,i.Y)("div",{className:a()(h().arrow,h().paginationBlock),onClick:function(){return m(f+1)},"data-last-page":f===v+1||void 0,children:(0,i.Y)(p.A,{})})]})},v=t(24537),m=t(27317);function b(){var n=(0,v.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 w(){var n=(0,v.A)(["\n padding: var(--dropdown-padding);\n cursor: pointer;\n"]);return w=function(){return n},n}function A(){var n=(0,v.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 A=function(){return n},n}function x(){var n=(0,v.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 x=function(){return n},n}function y(){var n=(0,v.A)(["\n display: flex;\n justify-content: center;\n align-items: center;\n"]);return y=function(){return n},n}m.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})),m.Ay.div.withConfig({componentId:"sc-b466dd23-1"})(w()),m.Ay.ul.withConfig({componentId:"sc-b466dd23-2"})(A()),m.Ay.li.withConfig({componentId:"sc-b466dd23-3"})(x(),(function(n){return n.theme.colors.gray100})),m.Ay.div.withConfig({componentId:"sc-b466dd23-4"})(y());var C,M=t(78754),k=t(95456);function Y(){return Y=Object.assign?Object.assign.bind():function(n){for(var e=1;e input[type='radio'] {\n margin: 0;\n }\n }\n"]);return Sn=function(){return n},n}function Tn(){var n=(0,v.A)(["\n object-fit: cover;\n width: 48px;\n height: 48px;\n border-radius: 50%;\n cursor: pointer;\n"]);return Tn=function(){return n},n}function Ln(){var n=(0,v.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 jn(){var n=(0,v.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 jn=function(){return n},n}function Hn(){var n=(0,v.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 Hn=function(){return n},n}function Rn(){var n=(0,v.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 Rn=function(){return n},n}m.Ay.div.withConfig({componentId:"sc-33ec5b80-0"})(On(),(function(n){return n.theme.colors.neutral50}),(function(n){return n.theme.colors.primaryBase})),m.Ay.div.withConfig({componentId:"sc-33ec5b80-1"})(Sn(),H.M.tdUp),m.Ay.img.withConfig({componentId:"sc-33ec5b80-2"})(Tn()),m.Ay.div.withConfig({componentId:"sc-33ec5b80-3"})(Ln(),(function(n){return n.theme.colors.gray400})),m.Ay.div.withConfig({componentId:"sc-33ec5b80-4"})(jn(),H.M.mbDown,(function(n){return n.theme.colors.blue50})),m.Ay.div.withConfig({componentId:"sc-33ec5b80-5"})(Hn()),m.Ay.div.withConfig({componentId:"sc-33ec5b80-6"})(Rn(),H.M.mbDown),t(41450),t(21336),t(68289),t(1135),t(86204),t(1032),t(39372),t(89902),t(58665),t(90206);function _n(){var n=(0,v.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 _n=function(){return n},n}var Qn,Un,Vn,Gn,Wn,Jn,qn,Xn,Kn,Zn,$n,ne,ee,te,ie,oe,re,ae,ce,le,se,de,ue=m.Ay.div.withConfig({componentId:"sc-9afb6850-0"})(_n(),H.M.tdUp,H.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,v=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)(G.B,{isLoading:a,color:"primary",size:"md",onClick:o,dataEventCategory:"Care",dataEventAction:e,dataEventLabel:"https://".concat(F.y[g]).concat(Q.JpE).concat(v),isDisabled:l,isBlock:f,children:r})})},fe=t(858),he=t(83776),ge=t(72936),ve=t.n(ge);function me(){return me=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 Be=function(){return n},n}function Pe(){var n=(0,v.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 Pe=function(){return n},n}function ze(){var n=(0,v.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 ze=function(){return n},n}function Oe(){var n=(0,v.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 Se(){var n=(0,v.A)(["\n margin-top: 18px;\n margin-bottom: 12px;\n"]);return Se=function(){return n},n}function Te(){var n=(0,v.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 Te=function(){return n},n}function Le(){var n=(0,v.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 je,He=m.Ay.div.withConfig({componentId:"sc-46e68f6c-0"})(Be(),(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})),Re=m.Ay.div.withConfig({componentId:"sc-46e68f6c-1"})(Pe(),(function(n){return n.theme.colors.secondaryDark}),(function(n){return n.theme.colors.gray500})),_e=m.Ay.div.withConfig({componentId:"sc-46e68f6c-2"})(ze()),Qe=(m.Ay.div.withConfig({componentId:"sc-46e68f6c-3"})(Oe()),m.Ay.div.withConfig({componentId:"sc-46e68f6c-4"})(Se())),Ue=m.Ay.div.withConfig({componentId:"sc-46e68f6c-5"})(Te()),Ve=m.Ay.div.withConfig({componentId:"sc-46e68f6c-6"})(Le()),Ge=t(44523),We=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 _t=function(){return n},n}function Qt(){var n=(0,v.A)(["\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: space-between;\n"]);return Qt=function(){return n},n}function Ut(){var n=(0,v.A)(["\n margin-top: 12px;\n"]);return Ut=function(){return n},n}function Vt(){var n=(0,v.A)(["\n margin: 4px 0px;\n color: ",";\n font-size: 14px;\n font-weight: 700;\n line-height: 22px;\n"]);return Vt=function(){return n},n}function Gt(){var n=(0,v.A)(["\n margin: 4px 0px;\n color: ",";\n font-size: 14px;\n font-weight: 60px;\n line-height: 22px;\n"]);return Gt=function(){return n},n}function Wt(){var n=(0,v.A)(["\n position: absolute;\n top: 92px;\n right: 0;\n width: 82px;\n height: 164px;\n padding-left: 10px;\n"]);return Wt=function(){return n},n}function Jt(){var n=(0,v.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 qt(){var n=(0,v.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 qt=function(){return n},n}m.Ay.div.withConfig({componentId:"sc-73b76268-0"})(Rt(),(function(n){return n.theme.colors.blue50})),m.Ay.div.withConfig({componentId:"sc-73b76268-1"})(_t(),(function(n){return n.theme.colors.gray800})),m.Ay.div.withConfig({componentId:"sc-73b76268-2"})(Qt()),m.Ay.div.withConfig({componentId:"sc-73b76268-3"})(Ut()),m.Ay.div.withConfig({componentId:"sc-73b76268-4"})(Vt(),(function(n){return n.theme.colors.gray800})),m.Ay.div.withConfig({componentId:"sc-73b76268-5"})(Gt(),(function(n){return n.theme.colors.gray500})),m.Ay.div.withConfig({componentId:"sc-73b76268-6"})(Wt()),m.Ay.div.withConfig({componentId:"sc-73b76268-7"})(Jt()),m.Ay.div.withConfig({componentId:"sc-73b76268-8"})(qt());function Xt(){var n=(0,v.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 Xt=function(){return n},n}function Kt(){var n=(0,v.A)(["\n //padding-left: 14px;\n"]);return Kt=function(){return n},n}function Zt(){var n=(0,v.A)(["\n margin-top: 25px;\n .string {\n margin-top: 8px;\n }\n"]);return Zt=function(){return n},n}function $t(){var n=(0,v.A)(["\n display: flex;\n width: 100%;\n"]);return $t=function(){return n},n}function ni(){var n=(0,v.A)(["\n position: absolute;\n right: 0;\n display: flex;\n align-items: center;\n cursor: pointer;\n"]);return ni=function(){return n},n}m.Ay.div.withConfig({componentId:"sc-b35b16ee-0"})(Xt()),m.Ay.div.withConfig({componentId:"sc-b35b16ee-1"})(Kt()),m.Ay.div.withConfig({componentId:"sc-b35b16ee-2"})(Zt()),m.Ay.div.withConfig({componentId:"sc-b35b16ee-3"})($t()),m.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,v.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}m.Ay.div.withConfig({componentId:"sc-922a83bd-0"})(pi()),m.Ay.div.withConfig({componentId:"sc-922a83bd-1"})(fi()),m.Ay.div.withConfig({componentId:"sc-922a83bd-2"})(hi()),t(84461);function gi(){var n=(0,v.A)(["\n position: relative;\n"]);return gi=function(){return n},n}function vi(){var n=(0,v.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 vi=function(){return n},n}function mi(){var n=(0,v.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 mi=function(){return n},n}function bi(){var n=(0,v.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 wi=m.Ay.div.withConfig({componentId:"sc-42d688a9-0"})(gi()),Ai=m.Ay.div.withConfig({componentId:"sc-42d688a9-1"})(vi(),H.M.mbDown,(function(n){return n.theme.colors.gray200}),H.M.mbDown),xi=m.Ay.div.withConfig({componentId:"sc-42d688a9-2"})(mi(),(function(n){return n.theme.colors.primaryBase}),H.M.mbDown,H.M.mbDown,H.M.mbDown),yi=m.Ay.div.withConfig({componentId:"sc-42d688a9-3"})(bi(),(function(n){return n.theme.colors.red700})),Ci=t(8758),Mi=t(11191),ki=function(n){var e=n.style,t=n.className,r=n.handleChange,a=n.options,c=n.errorValidate,l=(0,mn.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 v=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 oQ.qdA?[3,3]:[4,m(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)}}(),m=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>Q.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,m(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)(wi,{children:[(0,i.Y)(Ai,{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(Q.JpE,"/svg/imageholder.svg"),className:"small"})})]})})},"img-".concat(e))}))}),(0,i.Y)(yi,{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)(xi,{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){v(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:V.w.colors.gray800,children:l({id:"newBranch.clearAll",defaultMessage:"Clear all"})})]})]}),(0,i.Y)(E.T,{size:"p4",color:V.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 Yi(){var n=(0,v.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 Yi=function(){return n},n}var Ii=m.Ay.div.withConfig({componentId:"sc-f178071e-0"})(Yi(),(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)(Ii,{children:(0,i.Y)("div",{children:e&&(0,i.Y)("span",{children:e})})})};function Ei(){var n=(0,v.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 Fi(){var n=(0,v.A)(["\n cursor: pointer;\n .price {\n "," {\n width: 100%;\n }\n }\n"]);return Fi=function(){return n},n}function Ni(){var n=(0,v.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 Bi(){var n=(0,v.A)(["\n display: -webkit-box;\n overflow: hidden;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;\n"]);return Bi=function(){return n},n}var Pi,zi,Oi,Si,Ti;m.Ay.article.withConfig({componentId:"sc-cfeed39b-0"})(Ei(),(function(n){return n.theme.colors.neutral200}),H.M.mbDown),m.Ay.div.withConfig({componentId:"sc-cfeed39b-1"})(Fi(),H.M.tdUp),m.Ay.header.withConfig({componentId:"sc-cfeed39b-2"})(Ni()),m.Ay.span.withConfig({componentId:"sc-cfeed39b-3"})(Bi());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),v=t(36259),m=t(21571),b=t(24537),w=t(27317);function A(){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 A=function(){return n},n}function x(){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 x=function(){return n},n}function y(){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 y=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,Y=w.Ay.div.withConfig({componentId:"sc-843e4d83-0"})(A(),(function(n){return n.theme.colors.blue50}),(function(n){return n.theme.colors.red50}),(function(n){return n.theme.colors.blue50})),I=w.Ay.div.withConfig({componentId:"sc-843e4d83-1"})(x()),D=w.Ay.div.withConfig({componentId:"sc-843e4d83-2"})(y(),(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.colors.red800}),(function(n){return n.theme.colors.gray800})),E=w.Ay.div.withConfig({componentId:"sc-843e4d83-3"})(C(),(function(n){return n.theme.colors.gray600})),F=t(51743),N=t(11191);function B(){return B=Object.assign?Object.assign.bind():function(n){for(var e=1;e svg {\n flex: 0 0 20px;\n }\n }\n }\n"]);return _=function(){return n},n}function Q(){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 Q=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 V(){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 V=function(){return n},n}function G(){var n=(0,b.A)(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 24px;\n"]);return G=function(){return n},n}function W(){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 W=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 q(){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 q=function(){return n},n}function X(){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 X=function(){return n},n}function K(){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 K=function(){return n},n}var Z,$=w.Ay.div.withConfig({componentId:"sc-4825eb13-0"})(j()),nn=w.Ay.div.withConfig({componentId:"sc-4825eb13-1"})(H(),(function(n){return n.theme.colors.white})),en=w.Ay.div.withConfig({componentId:"sc-4825eb13-2"})(R()),tn=w.Ay.div.withConfig({componentId:"sc-4825eb13-3"})(_(),(function(n){return n.theme.colors.white})),on=w.Ay.div.withConfig({componentId:"sc-4825eb13-4"})(Q(),(function(n){return n.theme.colors.gray600})),rn=w.Ay.div.withConfig({componentId:"sc-4825eb13-5"})(U()),an=w.Ay.form.withConfig({componentId:"sc-4825eb13-6"})(V()),cn=w.Ay.div.withConfig({componentId:"sc-4825eb13-7"})(G()),ln=w.Ay.div.withConfig({componentId:"sc-4825eb13-8"})(W(),(function(n){return n.theme.colors.blue600})),sn=w.Ay.div.withConfig({componentId:"sc-4825eb13-9"})(J()),dn=w.Ay.div.withConfig({componentId:"sc-4825eb13-10"})(q(),(function(n){return n.theme.colors.gray600}),(function(n){return n.theme.colors.blue600})),un=w.Ay.div.withConfig({componentId:"sc-4825eb13-11"})(X()),pn=w.Ay.div.withConfig({componentId:"sc-4825eb13-12"})(K(),(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(v){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:[]})}}))},vn=t(40959);function mn(){return mn=Object.assign?Object.assign.bind():function(n){for(var e=1;e0}),[B,Nn]),Qn=(0,c.useMemo)((function(){return"success"===B||Nn&&0===(null===Nn||void 0===Nn?void 0:Nn.failed)}),[B,Nn]),Un=(0,c.useMemo)((function(){return Nn?Nn.failed+Nn.success:J.length}),[J,Nn]),Vn=(0,c.useMemo)((function(){return Nn?Nn.failed:wn.length}),[wn,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 Yn&&"processing"===B?(t={country_id:On,hash:Yn},[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"],Q(o.percent),"processing"!==o.status&&"processed"!==o.status&&(clearInterval(n),P(o.status),Bn(o),G(!1)),"import_success"===o.status&&Y({message:k({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)}}),[Yn,B]),w?(0,a.Y)($,{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=!!B,Hn(),e&&e(),void(n&&I.reload());var n},children:(0,a.Y)(kn.A,{})})]}),(0,a.FD)(tn,{children:[(0,a.Y)(on,{children:k({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:Tn,onDragEnter:Tn,onDrop:Tn,children:[(0,a.Y)("input",{type:"file",id:"input-file-upload",multiple:!1,accept:vn.zv1,onChange:Ln}),(0,a.Y)("label",{htmlFor:"input-file-upload",children:(0,a.FD)(sn,{children:[(0,a.Y)(In,{}),(0,a.Y)(dn,{children:k({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===j||void 0===j?void 0:j.name,size:null===j||void 0===j?void 0:j.size,percent:_,status:O||B,statusImport:B,onRemove:Hn}),"processing"===B&&(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:k({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:k({id:"admin.import.masterData.wrongFormat",defaultMessage:"Wrong file format"}),type:"danger"}),_n&&(0,a.Y)(d.A,{contentIcon:(0,a.Y)(Dn.A,{}),closeIcon:(0,a.Y)(pn,{children:k({id:"admin.download.import.list",defaultMessage:"Download the list"})}),text:k({id:"admin.import.masterData.status",defaultMessage:"".concat(Vn,"/").concat(Un," records can not be loaded")},{recordsError:Vn,recordsTotal:Un}),type:"warning",onClose:function(){if(!Nn){var n=(0,o.A)(wn);return n.unshift(["Line"].concat((0,o.A)(K),["Message Error","Status import"])),void(0,m.zW)(n,"Error rows import")}Nn.result&&(0,m.nQ)("https://cdn-healthcare.hellohealthgroup.com".concat(Nn.result))}}),Qn&&(0,a.Y)(d.A,{closeIcon:(0,a.Y)(a.FK,{}),contentIcon:(0,a.Y)(Cn.A,{}),text:k({id:"admin.import.message.success",defaultMessage:"File is imported successfully."}),type:"success"})]})]}),(0,a.FD)(cn,{children:[(0,a.FD)(ln,{onClick:function(){A&&(0,m.nQ)(A)},children:[(0,a.Y)(yn,{}),k({id:"common.download.template",defaultMessage:"Download template"})]}),(0,a.Y)(u.B,{size:"md",onClick:Rn,isLoading:V,disabled:"success"!==O&&"processing"!==B,children:k("success"!==O&&"processing"!==B?{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 y}});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()),v=l.Ay.div.withConfig({componentId:"sc-d2f87818-1"})(d(),(function(n){return n.theme.colors.white})),m=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})),w=l.Ay.div.withConfig({componentId:"sc-d2f87818-4"})(f(),(function(n){return n.theme.colors.gray600})),A=l.Ay.div.withConfig({componentId:"sc-d2f87818-5"})(h()),x=t(8758),y=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)(v,{children:[(0,i.FD)(m,{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)(x.A,{})})]}),(0,i.Y)(b,{children:(0,i.Y)(w,{children:c})}),(0,i.Y)(A,{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 F}});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 v(){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 v=function(){return n},n}function m(){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 m=function(){return n},n}var b,w,A=d.Ay.div.withConfig({componentId:"sc-b9693b02-0"})(u()),x=d.Ay.div.withConfig({componentId:"sc-b9693b02-1"})(p(),(function(n){return n.theme.colors.white})),y=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})),k=d.Ay.div.withConfig({componentId:"sc-b9693b02-5"})(v(),(function(n){return n.theme.colors.neutral200})),Y=(0,d.Ay)(s.B).withConfig({componentId:"sc-b9693b02-6"})(m(),(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})),I=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)(k,{children:[(0,i.Y)(Y,{size:"sm",type:"button",onClick:o,children:s({id:"bookingCard.continueBooking",defaultMessage:"Continue Booking"})}),(0,i.Y)(Y,{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})),v=t(40959),m=t(22657),b=function(n){var e,t=n.price,p=n.priceType,f=n.priceTo,h=n.promotion,b=n.className,w=n.frisoCampaign,A=n.originalPrice,x=(0,d.A)().formatMessage,y=(0,s.useRouter)().locale,C=(e={},(0,i.A)(e,v.vne.FIXED,x({id:"admin.doctor.servicePrice.fixed",defaultMessage:"Fixed Price"})),(0,i.A)(e,v.vne.STARTING,x({id:"admin.doctor.servicePrice.start",defaultMessage:"Starting from"})),(0,i.A)(e,v.vne.RANGE,x({id:"admin.doctor.servicePrice.range",defaultMessage:"Range"})),e),M=function(n,e){return p===v.vne.RANGE&&e?"".concat((0,l.UN)(n,y),"\n "," - ").concat((0,l.UN)(e,y)):"".concat((0,l.UN)(n,y))};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)(m.A,{}),(0,o.Y)(r.T,{size:"p4",color:a.w.colors.gray600,children:w?(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]})]}),!w&&(0,o.Y)(r.T,{size:"p4",color:A?a.w.colors.red700:a.w.colors.green700,className:"servicePrice !font-semibold !text-[18px]",children:M(t,f||"")}),A&&(0,o.Y)(r.T,{size:"p4",color:a.w.colors.gray600,className:"servicePrice !text-[14px] !line-through",children:(0,l.UN)(A,y)}),!!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 v}});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),v=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 H}});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),v=t(6442),m=t(24537),b=t(27317),w=t(81539);function A(){var n=(0,m.A)(["\n @media (min-width: ","px) {\n ",";\n }\n "]);return A=function(){return n},n}var x=768,y=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 Y=function(){return n},n}function I(){var n=(0,m.A)(["\n display: flex;\n width: 100%;\n flex-direction: column;\n align-items: flex-start;\n justify-content: flex-start;\n"]);return I=function(){return n},n}function D(){var n=(0,m.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,m.A)(["\n flex-direction: column;\n align-items: flex-start;\n "]);return E=function(){return n},n}function F(){var n=(0,m.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 F=function(){return n},n}function N(){var n=(0,m.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"})(k()),b.Ay.div.withConfig({componentId:"sc-4acc0154-2"})(Y());var B,P=b.Ay.div.withConfig({componentId:"sc-4acc0154-3"})(I()),z=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"})(F(),y(E())),S=(0,b.Ay)(C.k).withConfig({componentId:"sc-4acc0154-6"})(N()),T=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 v}});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),v=function(n){var e=n.onSelectArticle,t=n.isInputDisabled,s=void 0!==t&&t,p=n.selectedArticles,f=(0,a.useState)(""),v=f[0],m=f[1],b=(0,a.useState)([]),w=b[0],A=b[1],x=(0,a.useState)(!1),y=x[0],C=x[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:v,page:1,perPage:30}),"GET")];case 1:return(null===(n=e.sent())||void 0===n?void 0:n.data)&&(A(n.data.posts.map((function(n){return{label:n.post_title,value:n.ID}}))),C(!1)),[2]}}))})),[v]),k=(0,a.useMemo)((function(){return d()(M,500)}),[M]);(0,a.useEffect)((function(){return v.length>2&&k(),function(){k.cancel()}}),[v,k]);var Y=(0,a.useMemo)((function(){var n=new RegExp("(".concat(v,")"),"gi");return w.map((function(e){return{label:e.label.replace(n,"$1"),value:e.value}}))}),[w,v]),I=(0,a.useMemo)((function(){return v.length>2?"No Results":"Search for an article"}),[v]),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&&m(String(t))},options:Y.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:y,disabled:s,customPlaceHolder:I,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 I}});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 v=t(24537),m=t(27317);function b(){var n=(0,v.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 w(){var n=(0,v.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 w=function(){return n},n}function A(){var n=(0,v.A)(["\n padding-left: 16px;\n"]);return A=function(){return n},n}function x(){var n=(0,v.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 x=function(){return n},n}var y=m.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=m.Ay.div.withConfig({componentId:"sc-bc6c12e4-1"})(w()),M=m.Ay.div.withConfig({componentId:"sc-bc6c12e4-2"})(A()),k=(0,m.Ay)(r.c.Head).withConfig({componentId:"sc-bc6c12e4-3"})(x(),(function(n){return n.theme.colors.neutral100}),(function(n){return n.theme.colors.neutral100})),Y=t(88576),I=function(n){var e=n.data,t=n.headings,s=n.className,p=n.hasOrderColumn,f=n.moreOptions,h=n.sortParmas,v=n.onRowClicked,m=n.onClickSort,b=n.hasOptions,w=void 0===b||b,A=n.isShowEmpty,x=n.id,I=(0,o.useState)(void 0),D=I[0],E=I[1],F=function(n){E(n),null===v||void 0===v||v(n)};return(0,i.FD)(y,{className:s,id:x?"table-".concat(x):void 0,children:[(0,i.FD)(r.c.Table,{verticalPadding:"16px",children:[(0,i.FD)(k,{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"),m&&m({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)(Y.A,{})]})},e)})),w&&(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){F&&F(n)},isActive:n[0].value===D||void 0,className:d()("row",[x&&"table-".concat(x,"-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)}}}))})}),w&&"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)}))})]}),A&&(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 v=t(27317).Ay.div.withConfig({componentId:"sc-adfcd035-0"})(g()),m={value:"",label:""},b=function(n){var e=n.id,t=n.hospitalId,h=n.style,g=n.className,b=n.value,w=n.placeholder,A=n.errorMessage,x=n.disabled,y=n.params,C=n.handleChange,M=(0,f.$)(),k=(0,c.useState)([]),Y=k[0],I=k[1],D=(0,c.useState)(null),E=D[0],F=D[1],N=(0,c.useState)(!1),B=N[0],P=N[1],z=(0,c.useState)(!1),O=z[0],S=z[1],T=(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||""},y)),"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}})),I(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),F({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):F(null)}),[b]),(0,a.Y)(l.m,{label:null===E||void 0===E?void 0:E.label,styles:T,opened:!!E&&O&&!B,children:(0,a.Y)(v,{onMouseOver:function(){S(!0)},onMouseOut:function(){S(!1)},children:(0,a.Y)(p.U1,{style:h,className:g,id:e,placeholder:w||"All branches",value:null!==E&&void 0!==E?E:void 0,onChange:function(n){S(!1),P(!1),n?(F(n),C(n)):(null===E||void 0===E?void 0:E.value)&&C(m)},onFocus:function(){P(!0)},onBlur:function(){P(!1)},options:Y,errorMessage:A,hasFilterValueFromOptions:!1,disabled:x})})})}},45638:function(n,e,t){"use strict";t.d(e,{i:function(){return x}});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),v=t(2543),m=t(24537);function b(){var n=(0,m.A)(["\n width: 100%;\n margin-right: 5px;\n"]);return b=function(){return n},n}var w=t(27317).Ay.div.withConfig({componentId:"sc-b504765d-0"})(b()),A={value:"",label:""},x=function(n){var e=n.style,t=n.className,m=n.id,b=n.value,x=n.placeholder,y=n.errorMessage,C=n.disabled,M=n.params,k=n.inorgeSiloam,Y=void 0!==k&&k,I=n.handleChange,D=(0,h.$)(),E=(0,h.$)().locale,F=void 0===E?"vi-VN":E,N=g.EmC[F].id,B=(0,c.useState)([]),P=B[0],z=B[1],O=(0,c.useState)(null),S=O[0],T=O[1],L=(0,c.useState)(!1),j=L[0],H=L[1],R=(0,c.useState)(!1),_=R[0],Q=R[1],U=(0,f.o)().navigationDropdownControl,V=(0,c.useState)(!1),G=V[0],W=V[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 W(!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!Y||!n.isSiloam})),z(a.map((function(n){return{value:n.id.toString(),label:n.name}})))):t&&5===t._status&&D.push("/admin/login"),W(!1),[2]}}))}));return function(e){return n.apply(this,arguments)}}(),q=(0,c.useCallback)((0,v.debounce)((function(n){return J(n)}),300),[]),X=(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),T({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===S||void 0===S?void 0:S.label,styles:X,opened:!!S&&_&&!j,children:(0,a.Y)(w,{onMouseOver:function(){Q(!0)},onMouseOut:function(){Q(!1)},children:(0,a.Y)(p.U1,{style:e,className:t,id:m,placeholder:x||"",value:null!==S&&void 0!==S?S:void 0,onChange:function(n,e){var t,i;T(n),Q(!1),H(!1),console.log("DropdownSearch selected"),t=n,i=e,console.log("option: ",t),console.log("value: ",S),t?(q(""),t.value===(null===S||void 0===S?void 0:S.value)&&t.label===(null===S||void 0===S?void 0:S.label)||(I(t),localStorage.setItem("admin/selectedHospital",JSON.stringify(t)))):(((null===S||void 0===S?void 0:S.value)||(null===S||void 0===S?void 0:S.label))&&I(A),q(i))},onFocus:function(){H(!0)},onBlur:function(){H(!1)},options:P,isLoading:G,errorMessage:y,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 A}});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),v=t(43323),m=t(67601),b=t(6442),w=t(73855),A=function(n){var e=n.className,t=n.newsletterText,A=n.facebookLink,x=n.instagramLink,y=n.twitterLink,C=n.linkedinLink,M=n.youtubeLink,k=n.copyrightText,Y=n.followusText,I=n.informationLinks,D=n.bigLinks,E=n.hellohealthLinks,F=n.type,N=void 0===F?"main":F,B=n.logoType,P=void 0===B?"hellohealth":B,z=n.isMobile,O=n.flagLinks,S=(0,b.A)().formatMessage,T=(0,p.useRouter)().locale,L=void 0===T?"vi-VN":T,j=32,H=32;return z&&(j=24,H=24),(0,i.Y)(w.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:P,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:S({id:"footer.signUp"})}),(0,i.FD)("div",{className:"social",children:[Y&&(0,i.Y)(a.T,{size:"sm",type:"regular",children:Y}),(0,i.FD)("div",{className:"icons",children:[A&&(0,i.Y)("a",{"data-event-category":"Footer","data-event-action":"Follow us - Facebook","data-content-label":A,href:A,children:(0,i.Y)(f.A,{})}),x&&(0,i.Y)("a",{"data-event-category":"Footer","data-event-action":"Follow us - Instagram","data-content-label":x,href:x,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,{})}),y&&(0,i.Y)("a",{"data-event-category":"Footer","data-event-action":"Follow us - Twitter","data-event-label":y,href:y,children:(0,i.Y)(v.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)(m.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:S({id:"footer.information"})}),I.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:S({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:S({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:H,height:j,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"})}),k&&(0,i.Y)(a.T,{size:"xs",type:"regular",children:k})]})]}):(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:S({id:"footer.information"})}),I.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:S({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:[Y&&(0,i.Y)(a.T,{size:"sm",type:"regular",style:{color:o.w.colors.neutral500},children:Y}),(0,i.FD)("div",{className:"icons",children:[A&&(0,i.Y)("a",{"data-event-category":"Footer","data-event-action":"Follow us - Facebook","data-content-label":A,href:A,children:(0,i.Y)(f.A,{})}),x&&(0,i.Y)("a",{"data-event-category":"Footer","data-event-action":"Follow us - Instagram","data-content-label":x,href:x,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,{})}),y&&(0,i.Y)("a",{"data-event-category":"Footer","data-event-action":"Follow us - Twitter","data-content-label":y,href:y,children:(0,i.Y)(v.A,{})})]})]})})]})})})})})}},47760:function(n,e,t){"use strict";t.d(e,{J:function(){return S}});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),v=t.n(g),m=t(6442),b=t(12495),w=t.n(b),A=t(13034),x=t(10297),y=t(51524),C=t(21336),M=t(93708),k=function(n){var e=n.availableBookings,t=n.style,i=(0,m.A)().formatMessage,o=(0,x.useRouter)().push,a=e.length>0;return(0,r.FD)(y.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)(y.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"})})]})},Y=t(89252),I=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,Y.m8)(e)," km")})]})}):null},D=t(89394),E=t(40959),F=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)(A.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:z},n),{children:d("hospital"===l?{id:"hospitalCard.button.view",defaultMessage:"View Hospital"}:{id:"hospitalCard.bookService",defaultMessage:"Book Service"})}))}()]})})},Y=t(47760),I=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,v=n.onPhoneClick,m=n.children,b=n.onGlobalCardClick,w=n.customRenderHospitalUrl,y=n.goHospitalPage,C=n.hospitalURL,M=n.hospitalStatus,E=(0,l.d)().isMobile,F=(0,s.c)(),N=(0,r.useMemo)((function(){return i&&(0,x.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]),B=(0,d.$)().locale,P=w||(0,c.eP)(t),z="https://".concat(a.y[B]).concat(P),O=["granted","prompt"].includes(F);return(0,o.FD)(A.yO,{onClick:b,children:["service"===e&&m,"hospital"===e&&(0,o.FD)(o.FK,{children:[(0,o.Y)(A.fs,{"data-bottom-border":E&&t.about,children:(0,o.FD)("div",{className:"hospital-image-wrapper",children:[(0,o.Y)(A.eO,{"data-event-category":"Care","data-event-action":"".concat((0,x.ZH)(e)," Click ").concat(f+1),"data-event-label":z,onClick:function(n){n.stopPropagation(),h(t)},children:(0,o.Y)(I.Y,{layout:"responsive",src:t.logo||"".concat(u.JpE,"/images/avatar.jpg"),width:64,height:64,quality:100,objectFit:"contain"})}),(0,o.FD)(A.fp,{children:[(0,o.Y)(Y.J,{hospitalInfo:t,gps:i,orderedListIndex:f,type:e,customRenderHospitalUrl:w}),!E&&m]})]})}),E&&m]}),"service"===e&&(0,o.Y)(D._,{organizationLogo:t.logo,hospitalName:t.name,goHospitalPage:y,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[B]).concat(u.JpE).concat((0,c.eP)(t))}}),"hospital"===e&&(0,o.Y)(k,{hospitalInfo:t,phone:p,type:e,hospitalStatus:M,onMainActionClick:g,onPhoneClick:v})]})}},51524:function(n,e,t){"use strict";t.d(e,{$5:function(){return H},Ao:function(){return R},Bm:function(){return S},FD:function(){return T},SK:function(){return O},d4:function(){return N},eO:function(){return j},fp:function(){return E},fs:function(){return D},mS:function(){return F},ns:function(){return P},rO:function(){return _},sb:function(){return L},xC:function(){return B},xY:function(){return z},xr:function(){return Q},yO:function(){return I}});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 v(){var n=(0,i.A)(["\n span {\n white-space: nowrap;\n }\n"]);return v=function(){return n},n}function m(){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 m=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 w(){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 w=function(){return n},n}function A(){var n=(0,i.A)(["\n "," {\n max-width: 420px;\n }\n a {\n color: inherit;\n text-decoration: none;\n }\n"]);return A=function(){return n},n}function x(){var n=(0,i.A)(["\n border-radius: 50%;\n border: 1px solid #f7f9fc;\n object-position: center;\n"]);return x=function(){return n},n}function y(){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 y=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 k(){var n=(0,i.A)(["\n display: flex;\n gap: 8px;\n"]);return k=function(){return n},n}function Y(){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 Y=function(){return n},n}var I=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()),F=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-3"})(u()),N=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-4"})(p()),B=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})),P=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-6"})(h(),o.M.mbDown,(function(n){return n.theme.colors.gray500})),z=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-7"})(g()),O=(0,a.Ay)(r.B).withConfig({componentId:"sc-4b85d5f3-8"})(v()),S=(a.Ay.span.withConfig({componentId:"sc-4b85d5f3-9"})(m()),(0,a.Ay)(c.k).withConfig({componentId:"sc-4b85d5f3-10"})(b(),o.M.mbUp,o.M.mbDown)),T=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-11"})(w(),(function(n){return n.theme.colors.neutral50}),o.M.mbUp),L=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-12"})(A(),o.M.mbUp),j=(a.Ay.img.withConfig({componentId:"sc-4b85d5f3-13"})(x()),a.Ay.div.withConfig({componentId:"sc-4b85d5f3-14"})(y())),H=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-15"})(C(),o.M.mbDown,o.M.mbUp),R=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-16"})(M()),_=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-17"})(k()),Q=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-18"})(Y(),(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 zn},iv:function(){return Yn.i},T5:function(){return kn.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),v=t(24537),m=t(83776),b=t(66079),w=t(35291),A=t(35084),x=t(44835),y=t(50126),C=t(27516),M=t(21171),k=t(74029),Y=t(19475),I=t(21447),D=t(68519),E=t(66298),F=t(1806),N=t(4736),B=t(94334),P=t(2543),z=t(58638),O=t(72946),S=t(7350),T=t.n(S),L=t(6442),j=t(91266),H=t(27317),R=t(45351),_=t(55550),Q=t(68289),U=t(2966),V=t.n(U),G=t(4766),W=t(69831);function J(){var n=(0,v.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 q(){var n=(0,v.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 q=function(){return n},n}function X(){var n=(0,v.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 X=function(){return n},n}function K(){var n=(0,v.A)(["\n position: absolute;\n background-color: ",";\n padding: 2px 4px;\n border-radius: 2px;\n right: 16px;\n top: 6px;\n"]);return K=function(){return n},n}function Z(){var n=(0,v.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 Z=function(){return n},n}function $(){var n=(0,v.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 $=function(){return n},n}function nn(){var n=(0,v.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,v.A)(["\n display: flex;\n flex-direction: column;\n flex: 1;\n position: relative;\n"]);return en=function(){return n},n}var tn=H.Ay.button.withConfig({componentId:"sc-1c7d1da7-0"})(J(),(function(n){return n.theme.colors.neutral100}),(function(n){return n.theme.colors.white})),on=(0,H.Ay)(W.Sp).withConfig({componentId:"sc-1c7d1da7-1"})(q(),(function(n){return n.theme.colors.neutral100})),rn=H.Ay.div.withConfig({componentId:"sc-1c7d1da7-2"})(X()),an=H.Ay.div.withConfig({componentId:"sc-1c7d1da7-3"})(K(),(function(n){return n.theme.colors.green500})),cn=H.Ay.div.withConfig({componentId:"sc-1c7d1da7-4"})(Z(),(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.colors.blue600})),ln=H.Ay.div.withConfig({componentId:"sc-1c7d1da7-5"})($(),G.M.mbDown,G.M.mbDown,G.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}),G.M.tdDown,G.M.mbDown),sn=H.Ay.div.withConfig({componentId:"sc-1c7d1da7-6"})(nn(),(function(n){return n.theme.colors.blue50}),G.M.mbDown,G.M.mbDown,G.M.mbDown,(function(n){return n.theme.colors.gray800})),dn=H.Ay.div.withConfig({componentId:"sc-1c7d1da7-7"})(en()),un=t(21336),pn=t(20607),fn=t(40224),hn=t(47055),gn=t(40630),vn=t(71584),mn=t(57656),bn=t(80783),wn=t(79951),An=t(71082),xn=t(38431);function yn(){var n=(0,v.A)(["\n body { \n .woot-widget-bubble.woot-widget--expanded {\n bottom: 24px;\n } \n }\n"]);return yn=function(){return n},n}var Cn=(0,H.DU)(yn()),Mn=function(n){var e,t=n.className,a=n.serviceInfo,f=n.doctorInfo,v=n.schedules,S=n.isLoading,H=n.chosenDate,U=n.firstDayHasSlot,G=n.isMobile,W=n.isStickyBtn,J=n.rangeDaysPicked,q=n.type,X=n.isTeleMedicine,K=void 0!==X&&X,Z=n.price,$=n.originalPrice,nn=n.priceType,en=n.priceTo,yn=n.validTelemedicine,Mn=n.validOutpatient,kn=n.description,Yn=n.doctorId,In=n.serviceId,Dn=n.frisoCampaign,En=void 0!==Dn&&Dn,Fn=n.bufferTime,Nn=void 0===Fn?0:Fn,Bn=n.isSiloam,Pn=void 0!==Bn&&Bn,zn=n.address,On=n.adUnitPath,Sn=n.showAdMid,Tn=n.showAdTop,Ln=n.vouchers,jn=n.isValidTanganil,Hn=void 0!==jn&&jn,Rn=n.onSelectedTimeCallback,_n=n.onChangeChosenDate,Qn=n.onContinueBooking,Un=n.onChangePicker,Vn=n.setTeleMedicine,Gn=function(n){setTimeout((function(){requestAnimationFrame((function(){var e=nt.current;if(e){var t,i;if(G&&n)null===Zn||void 0===Zn||null===(t=Zn.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"})}),G&&n?700:0)}}))}),200)},Wn=(0,N.useAppContext)().state,Jn=(0,i.useContext)(u.B).pushNotifications,qn=(0,z.I)({id:"booking-scroll-top-trigger",heightHeader:G?0:65}).isTopSticky,Xn=(0,B.m)({serviceInfo:a,doctorInfo:f}),Kn=(0,O.o)().isValidOnboarding,Zn=(0,i.useRef)(null),$n=(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],ve=he[1],me=(0,i.useState)(!0),be=me[0],we=me[1],Ae=(0,i.useState)(!1),xe=Ae[0],ye=Ae[1],Ce=(0,i.useState)(!1),Me=Ce[0],ke=Ce[1],Ye=(0,i.useState)(!1),Ie=Ye[0],De=Ye[1],Ee=(0,i.useState)(!1),Fe=Ee[0],Ne=Ee[1],Be=(0,i.useState)(!1),Pe=Be[0],ze=Be[1],Oe=(0,i.useState)(!1),Se=Oe[0],Te=Oe[1],Le=(0,i.useState)(!1),je=Le[0],He=Le[1],Re=(0,i.useState)([]),_e=Re[0],Qe=Re[1],Ue=(0,i.useState)([]),Ve=Ue[0],Ge=Ue[1],We=(0,i.useState)([]),Je=We[0],qe=We[1],Xe=(0,i.useState)([]),Ke=Xe[0],Ze=Xe[1],$e=(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,P.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"===q?K?"Telemedicine - Continue Booking Click":"Outpatient - Continue Booking Click":"Continue Booking Click"}),[q,K]),lt=function(n,e){return!(0,I.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)(Zn,(function(){ie(!1)}));(0,i.useEffect)((function(){!function(){var n,e,t;ye(!0);var i=(0,E.A)(H,"yyyy-MM-dd"),o=(0,k.wW)(null===(n=v.find((function(n){return n.workingDay===i})))||void 0===n?void 0:n.workingTimes.morning,[]),r=(0,k.wW)(null===(e=v.find((function(n){return n.workingDay===i})))||void 0===e?void 0:e.workingTimes.afternoon,[]),a=(0,k.wW)(null===(t=v.find((function(n){return n.workingDay===i})))||void 0===t?void 0:t.workingTimes.evening,[]);Qe(o),Ge(r),qe(a),o.length>0?(Ze(o),ve(0)):r.length>0?(Ze(r),ve(1)):a.length>0?(Ze(a),ve(2)):(Ze(o),ve(0)),fe(!1),ye(!1)}(),Gn(je)}),[H,v,G,je]);var dt=function(n){var e=n.workingTimes;return(0,k.wW)(e.morning,[]).filter((function(e){return lt(new Date(n.workingDay),e.started)})).length+(0,k.wW)(e.afternoon,[]).filter((function(e){return lt(new Date(n.workingDay),e.started)})).length+(0,k.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)(H,"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!!Wn.userInfo&&(null===(n=Wn.userInfo.email)||void 0===n?void 0:n.includes("@facebook.com"))}),[Wn.userInfo]),ft=(0,i.useMemo)((function(){return!!Hn||!Pn&&Number(Z)>0}),[Pn,Z,Hn]),ht=(0,i.useMemo)((function(){var n=(0,E.A)(H,"yyyy-MM-dd");return(null===U||void 0===U?void 0:U.getTime())===(0,F.A)(n).getTime()}),[H,U]),gt=(0,i.useMemo)((function(){return v.length?new Date(v[v.length-1].workingDay):new Date}),[v]),vt=(0,i.useMemo)((function(){var n;return qn&&$n?(null===(n=$n.current)||void 0===n?void 0:n.clientHeight)||0:80}),[qn,$n]),mt=(0,i.useCallback)(T()((function(n,e,t,i,o){(Math.abs(t-n.clientX)<50||G)&&(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()(V().noResults,e?V().noResultsSmall:void 0),"data-is-part-of-day":"partOfDay"===t,children:[(0,p.Y)(bn.A,{}),(0,p.Y)(b.T,{size:"sm",color:w.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"})})]})},wt=v.length<1&&!S,At=function(){var n=(0,h.A)((function(){var n,e,t,i,a,c;return(0,m.__generator)(this,(function(l){switch(l.label){case 0:return ut(re)?(Te(!0),!Wn.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),Te(!1),G&&(null===(e=nt.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})),[3,4])):(qn&&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 K&&En?(t="?doctorId=".concat(Yn,"&date=").concat((0,E.A)(H,d.cuM),"&scheduleId=").concat(re.schedule_id,"&telemedicine=").concat(K||""),i="".concat(de).concat(t),d.dXu?Wn.isLoggedIn&&Kn?[4,(0,r.T7)((0,r.er)(o.R.GET_FRISO_VALIDATION,{booking_type:"doctor",doctor_id:Yn||""}),"GET")]:(M.u.getState().triggerCareEmailPhoneVerify({returnUrl:"".concat(d.JpE).concat(i),source:"care_onboarding"}),Te(!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),ze(c._data.valid),Te(!1),[3,4];case 3:Te(!1),Qn&&Qn(re),l.label=4;case 4:return[2]}}))}));return function(){return n.apply(this,arguments)}}(),xt=function(){De(!1)},yt=function(){qn&&window.scrollTo({top:0,left:0,behavior:"smooth"}),U&&(_n(U),ae(void 0),we(!0),G&&He(!0))},Ct=function(n){nt.current&&(nt.current.scrollLeft+=n)};(0,i.useEffect)((function(){!Mn&&yn&&Vn&&Vn(!0)}),[]);var Mt=[];Mn&&Mt.push({name:ce({id:"doctorDetailPage.appointment.outpatient",defaultMessage:"Outpatient Appointment"})}),yn&&Mt.push({name:ce({id:"doctorDetailPage.appointment.telemedicine",defaultMessage:"Telemedicine Appointment"})});var kt;return(0,i.useEffect)((function(){v&&v.length&&we(0!==dt(v[0]))}),[v]),(0,i.useEffect)((function(){if(!G&&nt.current){var n,e,t=!1,i=nt.current;null===i||void 0===i||i.addEventListener("mousedown",(function(o){$e.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(){Rn&&Rn(re)}),[re]),(0,i.useEffect)((function(){if(U&&!(0,I.A)(new Date(U))){var n=v.find((function(n){return(0,F.A)(n.workingDay).getTime()===U.getTime()}));n&&(_n(new Date(U)),ae(void 0),we(0!==dt(n)))}}),[U,v]),(0,i.useEffect)((function(){var n=document.querySelector(".woot-widget--expanded");if(n&&ne)if(qn&&W&&G){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"}),[qn,W,G,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:V().bookingHeading,children:ce({id:"hospital.bookAnAppointment",defaultMessage:"Book an appointment"})}),kn&&(0,p.Y)(b.T,{size:"p4",color:w.w.colors.gray800,className:"description-price",children:(0,p.Y)("div",{dangerouslySetInnerHTML:{__html:kn}})})]}),zn&&(0,p.FD)("div",{className:"booking-info-row",children:[(0,p.Y)(xn.A,{style:{marginTop:"3px"}}),(0,p.Y)("div",{className:"booking-info-row-text",children:zn})]})]}),(0,p.FD)("div",{className:c()(V().oBookingCard,t),children:["doctor"===q&&(0,p.FD)(p.FK,{children:[yn&&(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)(A.T,{className:"doctor-tabs",initialTab:0,tabContent:Mt,style:{paddingLeft:0},onChange:function(n){Un(new Date),Vn&&Vn(!!n),ae(void 0),nt.current&&(nt.current.scrollLeft=0),Fe&&Ne(!1)}})}):(0,p.Y)(x.H,{tag:"h5",className:"my-[8px]",children:null!==(kt=null===Mt||void 0===Mt||null===(e=Mt[0])||void 0===e?void 0:e.name)&&void 0!==kt?kt:ce({id:"doctorDetailPage.appointment.outpatient",defaultMessage:"Outpatient Appointment"})})]}),(0,p.FD)("div",{className:V().cardInner,"data-is-shown-picker":te,children:[(0,p.FD)(on,{ref:Zn,children:[(0,p.Y)(tn,{className:c()({show:te}),onClick:function(){return ie(!te)},children:J.length>0&&"".concat((0,Q.og)(J[0],se)," - ").concat((0,Q.og)(J[1],se))}),te&&(0,p.Y)(A.D,{onChange:function(n){var e=(0,E.A)(n,"yyyy-MM-dd"),t=v.find((function(n){return(0,F.A)(n.workingDay).getTime()===(0,F.A)(e).getTime()}));t&&(_n(new Date(t.workingDay)),ae(void 0),we(0!==dt(t)),ie(!1))},className:"selectable",customInput:function(){return null},disabledDays:{before:new Date,after:gt},pickedDate:H,modifiers:{start:H,end:H},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(){v&&v.length&&(_n(new Date(v[0].workingDay)),ae(void 0),we(0!==dt(v[0])))},children:ce({id:"admin.home.filter.today",defaultMessage:"Today"})})]}),wt?bt({smallSpacing:!1,type:"all"}):(0,p.FD)(p.FK,{children:[(0,p.Y)("div",{className:V().dateWrapper,children:(0,p.FD)("div",{className:c()(V().dateBlocks),ref:nt,id:"dateBlocksGroup",children:[!G&&it&&(0,p.Y)("button",{onClick:function(){return Ct(-282)},className:V().scrollButton,"aria-label":"Scroll back","aria-disabled":"start"===tt,children:(0,p.Y)(un.h,{iconSize:16,svgIcon:{stroke:"start"!==tt?w.w.colors.gray600:w.w.colors.gray200},children:(0,p.Y)(wn.A,{})})}),xe?(0,p.Y)(p.FK,{children:(0,p.Y)(Y.xA,{columns:3,columnsDesktop:3,gap:"8px",children:Array(3).fill(null).map((function(n,e){return(0,p.Y)(j.A,{width:86,height:68},e)}))})}):v.map((function(n){return n&&(0,p.FD)("div",{onClick:function(e){mt(e,n,$e.current,_n,ae),Gn(),we(0!==dt(n)),ve(0),He(!1)},className:c()(V().dateBlock),"data-is-day-active":n.workingDay===(0,E.A)(H,d.cuM)||void 0,"data-is-telemedicine":K,role:"button",tabIndex:0,children:[(0,p.Y)(b.T,{size:"n1",color:w.w.colors.gray600,children:st.toString()===n.workingDay?ce({id:"admin.home.filter.today",defaultMessage:"Today"}):(0,E.A)((0,F.A)(n.workingDay)," E ",{locale:R.tV[se]})}),(0,p.Y)(b.T,{size:"p3",type:"bold",children:(0,E.A)((0,F.A)(n.workingDay),"d/L",{locale:R.tV[se]})}),(0,p.Y)("span",{"data-has-availability":!!n.workingTimes,children:(0,p.Y)(b.T,{size:"n1",className:0===dt(n)?V().noSlot:V().available,children:dt(n)+" "+"".concat(ce({id:"bookingCard.slots",defaultMessage:"slots"}))})})]},n.workingDay)})),!G&&it&&(0,p.Y)("button",{onClick:function(){return Ct(282)},className:c()(V().scrollButton,V().next),"aria-label":"Scroll forward","aria-disabled":"end"===tt,children:(0,p.Y)(un.h,{iconSize:16,svgIcon:{stroke:"end"!==tt?w.w.colors.gray600:w.w.colors.gray200},children:(0,p.Y)(An.A,{})})})]})}),(0,p.Y)("div",{className:c()(V().times),children:function(){var n=!!(null===_e||void 0===_e?void 0:_e.length),e=!!(null===Ve||void 0===Ve?void 0:Ve.length),t=!!(null===Je||void 0===Je?void 0:Je.length);if(!S&&!n&&!e&&!t)return bt({smallSpacing:!0,type:"day"});var i=c()(V().timeframes),o=c()(V().time,(0,g.A)({},V().timeError,!pe||void 0));return(0,p.FD)(p.FK,{children:[(0,p.Y)(rn,{children:(0,p.Y)(A.T,{className:"doctor-tabs",initialTab:ge,tabContent:[{name:"".concat(ce({id:"bookingCard.morning",defaultMessage:"Morning"})," ").concat((null===_e||void 0===_e?void 0:_e.length)?"(".concat(null===_e||void 0===_e?void 0:_e.length,")"):"")},{name:"".concat(ce({id:"bookingCard.afternoon",defaultMessage:"Afternoon"})," ").concat((null===Ve||void 0===Ve?void 0:Ve.length)?"(".concat(null===Ve||void 0===Ve?void 0:Ve.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:Ze(_e),ve(0);break;case 1:Ze(Ve),ve(1);break;case 2:Ze(Je),ve(2)}},style:{paddingLeft:0}})}),(0,p.Y)("div",{className:i,"data-is-no-slot":!S&&!Ke.length,role:"group",children:S?Array(6).fill(null).map((function(n,e){return(0,p.Y)(j.A,{height:36},e)})):Ke.length?null===Ke||void 0===Ke?void 0:Ke.map((function(n,e){return(0,p.FD)("div",{className:o,onClick:function(){ut(n)?(ae(n),fe(!0),re||Fe||!pt||(ke(!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":K,"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()(V().buttonWrapper),children:[W&&(0,p.Y)(Cn,{}),(0,p.Y)(_.A,{vouchers:Ln,allowPaymentMethods:Xn}),ft&&(0,p.Y)(vn.S,{price:Z,priceType:nn,priceTo:en,originalPrice:$,frisoCampaign:En,className:"mb-[8px] !mt-[0px]"}),be?(0,p.Y)(y.B,{size:"md",color:"primary",className:c()(V().button,"button-continue-booking"),onClick:At,dataEventCategory:"Care",dataEventAction:ct,dataEventLabel:"https://".concat(C.y[se]).concat(d.JpE).concat(de),isLoading:Se,children:ce({id:"bookingCard.continueBooking",defaultMessage:"Continue Booking"})}):(0,p.Y)(y.B,{size:"md",color:"primary",className:c()(V().button,"button-continue-booking"),onClick:yt,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(){ke(!1)},handleOnClose:function(){return ke(!1)}}),(0,p.Y)(fn.A,{open:Ie,message:rt,handleOnClose:xt,handleOnOk:function(){Pe&&re?Qn&&Qn(re):xt()}})]}),(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(qn?"sticky-booking-card-show":""),children:(0,p.FD)(dn,{children:[(0,p.FD)(sn,{className:"".concat(qn&&(W&&G||!G)?"sticky-booking-show":"sticky-booking-hide"," "),ref:$n,children:[(0,p.Y)("div",{className:"booking-info-header",children:(0,p.Y)("div",{className:"mb-[8px]",children:(0,p.Y)("h3",{className:V().bookingHeading,children:ce({id:"hospital.bookAnAppointment",defaultMessage:"Book an appointment"})})})}),(0,p.FD)("div",{className:c()(V().oBookingCard,t),ref:ne,children:[(0,p.Y)(_.A,{vouchers:Ln,allowPaymentMethods:Xn,className:"!mb-[8px]"}),(0,p.FD)("div",{children:[ft&&(0,p.Y)(vn.S,{price:Z,priceType:nn,priceTo:en,frisoCampaign:En,originalPrice:$,className:"mb-[8px] !mt-[0px]"}),be?(0,p.Y)(y.B,{size:"md",color:"primary",className:c()(V().button,"button-continue-booking !w-[100%] !m-[0px]"),onClick:At,dataEventCategory:"Care",dataEventAction:ct,dataEventLabel:"https://".concat(C.y[se]).concat(d.JpE).concat(de),isLoading:Se,children:ce({id:"bookingCard.continueBooking",defaultMessage:"Continue Booking"})}):(0,p.Y)(y.B,{size:"md",color:"primary",className:c()(V().button,"button-continue-booking !w-[100%] !m-[0px]"),onClick:yt,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"})})]})]})]}),!G&&(0,p.FD)(p.FK,{children:[Tn&&(0,p.Y)(mn.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:vt+92,position:qn?"sticky":"initial"},customTargetings:{Service_ID:In?[In]:"",Doctor_ID:Yn?[Yn]:""}})}),Sn&&(0,p.Y)(mn.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:vt+92,position:qn?"sticky":"initial"},customTargetings:{Service_ID:In?[In]:"",Doctor_ID:Yn?[Yn]:""}})})]})]})})]})},kn=t(10699),Yn=t(45638);function In(){var n=(0,v.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 In=function(){return n},n}function Dn(){var n=(0,v.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,v.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 Fn(){var n=(0,v.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 Fn=function(){return n},n}H.Ay.article.withConfig({componentId:"sc-dda43ea1-0"})(In()),H.Ay.div.withConfig({componentId:"sc-dda43ea1-1"})(Dn()),H.Ay.figure.withConfig({componentId:"sc-dda43ea1-2"})(En(),(function(n){return n.theme.colors.neutral100})),H.Ay.footer.withConfig({componentId:"sc-dda43ea1-3"})(Fn());var Nn=t(6049),Bn=t(34763),Pn=t.n(Bn),zn=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,v=n.errorMessages,m=n.switchCTA,A=n.justifyContent,C=void 0===A?"between":A,M=n.buttonsProps,k=n.hideGroupBtn,Y=void 0!==k&&k,I=n.isHeaderText,D=void 0===I||I;return(0,p.Y)(Nn.M,{type:"confirm",isOpen:i,onClose:o,className:t,closeIcon:d,children:(0,p.FD)("div",{className:Pn().contentPopup,children:[D&&(0,p.Y)(x.H,{tag:"h4",className:Pn().content,children:l||"Are you sure to delete this patients info"}),(0,p.Y)(b.T,{size:"base",className:Pn().content,color:w.w.colors.red500,children:null===v||void 0===v?void 0:v.content}),(0,p.Y)(b.T,{size:"base",className:Pn().content,children:s||"We cannot restore it after it has been already declared"}),!Y&&(0,p.FD)("div",{className:c()(Pn().buttonRow,(e={},(0,g.A)(e,Pn().buttonRowCenter,"center"===C),(0,g.A)(e,Pn().buttonRowBetween,"between"===C),(0,g.A)(e,Pn().reverseButton,null===M||void 0===M?void 0:M.reverseButton),(0,g.A)(e,Pn().buttonFillWidth,null===M||void 0===M?void 0:M.buttonFillWidth),e)),children:[(0,p.Y)(y.B,{isLoading:u,color:m?"secondary":"primary",size:(null===M||void 0===M?void 0:M.buttonSize)||"sm",onClick:r,children:f||"Yes, Delete"}),(0,p.Y)(y.B,{isDisabled:!m&&u,isLoading:!!m&&u,color:m?"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)),Sn=t(63538),Tn=t(92151),Ln=t(74121),jn=t(73827),Hn=t(41145);function Rn(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 v(){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 v=function(){return n},n}function m(){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 m=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 w(){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 w=function(){return n},n}function A(){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 A=function(){return n},n}function x(){var n=(0,i.A)(["\n display: flex;\n justify-content: space-between;\n"]);return x=function(){return n},n}function y(){var n=(0,i.A)([""]);return y=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 k(){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 k=function(){return n},n}function Y(){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 Y=function(){return n},n}var I=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),F=(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),B=a.Ay.div.withConfig({componentId:"sc-77ff1a20-9"})(v(),(function(n){return n.theme.colors.neutral100}),o.M.tdOnly,o.M.mbDown,(function(n){return n.theme.colors.gray600})),P=a.Ay.div.withConfig({componentId:"sc-77ff1a20-10"})(m(),(function(n){return n.theme.colors.blue50})),z=(0,a.Ay)(P).withConfig({componentId:"sc-77ff1a20-11"})(b()),O=a.Ay.div.withConfig({componentId:"sc-77ff1a20-12"})(w(),o.M.mbDown,(function(n){return n.theme.colors.neutral150}),(function(n){return n.theme.colors.gray600})),S=a.Ay.div.withConfig({componentId:"sc-77ff1a20-13"})(A(),o.M.mbDown),T=a.Ay.div.withConfig({componentId:"sc-77ff1a20-14"})(x()),L=a.Ay.div.withConfig({componentId:"sc-77ff1a20-15"})(y()),j=(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)),H=(0,a.Ay)(r.B).withConfig({componentId:"sc-77ff1a20-18"})(k()),R=(0,a.Ay)(r.B).withConfig({componentId:"sc-77ff1a20-19"})(Y(),(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 A},EH:function(){return Y},G1:function(){return k},Rl:function(){return F},_H:function(){return I},a4:function(){return y},f$:function(){return E},ft:function(){return D},gD:function(){return x},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 v(){var n=(0,i.A)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n"]);return v=function(){return n},n}function m(){var n=(0,i.A)(["\n padding: 80px 0;\n margin-left: auto;\n margin-right: auto;\n"]);return m=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 w(){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 w=function(){return n},n}r.Ay.div.withConfig({componentId:"sc-5a2a03ba-0"})(a());var A=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),x=r.Ay.img.withConfig({componentId:"sc-5a2a03ba-2"})(l()),y=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})),k=r.Ay.div.withConfig({componentId:"sc-5a2a03ba-6"})(p(),o.M.tdOnly),Y=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})),I=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"})(v()),F=(0,r.Ay)(E).withConfig({componentId:"sc-5a2a03ba-11"})(m()),N=r.Ay.div.withConfig({componentId:"sc-5a2a03ba-12"})(b());r.Ay.div.withConfig({componentId:"sc-5a2a03ba-13"})(w(),(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())},32822:function(n,e,t){"use strict";t.d(e,{q:function(){return d}});var i=t(2445),o=t(88491),r=t(40959),a=t(10297),c=t(6442),l=t(27387),s=t(33721),d=function(n){var e=n.slotInfo,t=n.serviceInfo,d=n.doctorInfo,u=n.breadCrumbs,p=n.initialIsLoading,f=n.isTelemedicine,h=n.widgetOrganizationInfo,g=n.footerInfo,v=n.isPackage,m=(0,c.A)().formatMessage,b=(0,a.useRouter)().locale,w=void 0===b?"vi-VN":b,A=(0,o.d)().isMobile;return(0,i.Y)(i.FK,{children:h?(0,i.Y)(l.fc,{widgetOrganizationInfo:h,slotInfo:e,serviceInfo:t,doctorInfo:d,initialIsLoading:p,isTelemedicine:f,isPackage:v}):(0,i.Y)(s.K,{title:m({id:"page.title.booking",defaultMessage:"Booking"}),description:m({id:"home.seoDescription",defaultMessage:"Care"}),image:r.ElQ[w].HOMEPAGE_IMAGE,isSearchBarDisplay:!1,SEOData:{isIndexable:!0,hasNoAmp:!0},isMobile:A,footerInfo:g,children:(0,i.Y)(l.fc,{slotInfo:e,serviceInfo:t,doctorInfo:d,breadCrumbs:u,initialIsLoading:p,isTelemedicine:f,isPackage:v})})})}},72235:function(n,e,t){"use strict";t.d(e,{HR:function(){return A},Lw:function(){return w},Yl:function(){return b},cd:function(){return x},fZ:function(){return m}});var i=t(24537),o=t(4766),r=t(48403),a=t(27317);function c(){var n=(0,i.A)(["\n "," {\n justify-content: flex-end;\n }\n "," {\n &[data-is-sticky='true'] {\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n padding: 8px 16px;\n z-index: 2;\n background-color: ",";\n border-top: 1px solid\n ",";\n }\n }\n"]);return c=function(){return n},n}function l(){var n=(0,i.A)(["\n padding-top: 24px;\n padding-bottom: 16px;\n\n .heading-title {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 16px;\n\n "," {\n margin-bottom: 24px;\n }\n\n &::before {\n content: '';\n display: block;\n width: 2px;\n height: 15px;\n background-color: ",";\n flex-shrink: 0;\n }\n }\n\n .booking-summary {\n "," {\n margin-bottom: 16px;\n }\n }\n\n .roche-booking-container {\n .heading-title {\n margin-bottom: 0;\n }\n }\n"]);return l=function(){return n},n}function s(){var n=(0,i.A)(["\n "," {\n display: flex;\n position: relative;\n align-items: flex-start;\n gap: 32px;\n\n & > div:first-child {\n flex: 2 2;\n }\n & > div:last-child {\n flex: 1 1;\n }\n }\n\n "," {\n padding: 0 20px;\n }\n\n "," {\n padding: 0;\n }\n\n .survey-question {\n margin: 16px 0;\n "," {\n margin: 24px 0;\n }\n }\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n padding: 16px;\n border: 1px solid ",";\n border-radius: 6px;\n background: ",";\n\n .wrapper-form {\n display: flex;\n gap: 16px;\n margin-bottom: 12px;\n padding-left: 28px;\n\n "," {\n flex-direction: column;\n gap: 10px;\n }\n\n .input-item {\n flex: 0 0 calc(50% - 8px);\n\n "," {\n flex: 0 0 100%;\n }\n }\n\n .input-address {\n flex: 1;\n }\n\n label {\n color: ",";\n font-size: 14px;\n font-weight: 600;\n line-height: 22px;\n display: block;\n\n "," {\n font-size: 12px;\n line-height: 18px;\n }\n }\n\n input {\n padding: 8px 16px;\n line-height: 24px;\n color: ",";\n font-size: 16px;\n font-weight: 400;\n\n &::placeholder {\n color: ",";\n }\n\n "," {\n padding: 7px 12px;\n line-height: 22px;\n font-size: 14px;\n }\n }\n }\n\n .checkbox-field {\n margin-bottom: 15px;\n padding-left: 28px;\n label {\n max-width: initial;\n display: flex;\n gap: 8px;\n\n p {\n color: ",";\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n order: 1;\n\n "," {\n font-size: 14px;\n line-height: 22px;\n }\n }\n }\n }\n\n .type-opt {\n margin-bottom: 10px;\n\n .radio-btn {\n margin-top: 16px;\n\n label {\n font-size: 14px;\n line-height: 22px;\n width: 100% !important;\n }\n }\n }\n .radio-btn {\n label {\n width: 100% !important;\n }\n }\n\n .reason-text-area {\n margin-top: 12px;\n border-radius: 4px;\n border: 1px solid ",";\n padding: 12px;\n height: 120px;\n background-color: white;\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n color: ",";\n\n "," {\n height: 80px;\n font-size: 14px;\n line-height: 22px;\n }\n\n &[data-is-error='true'] {\n border: 1px solid ",";\n }\n }\n"]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n position: fixed;\n inset: 0;\n width: 100%;\n height: 100vh;\n z-index: 9999999;\n background: #f4f4f4;\n padding-bottom: ","px;\n\n .loading {\n height: 100vh;\n }\n"]);return u=function(){return n},n}function p(){var n=(0,i.A)(["\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n height: 114px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n justify-content: center;\n align-items: center;\n background: #f4f4f4;\n "," {\n background: #f3f6fa;\n }\n"]);return p=function(){return n},n}function f(){var n=(0,i.A)(["\n border-radius: 4px;\n padding: 8px 12px;\n display: flex;\n background-color: ",";\n border: 1px solid ",";\n align-items: center;\n margin-bottom: 24px;\n flex: 2 2;\n order: 0;\n\n "," {\n order: 1;\n }\n\n & > svg {\n min-width: 24px;\n margin-right: 12px;\n }\n\n & > p {\n font-size: 14px;\n line-height: 18px;\n flex: 1;\n\n "," {\n font-size: 12px;\n }\n }\n\n & > button {\n padding: 0;\n\n svg {\n margin: 0;\n }\n }\n"]);return f=function(){return n},n}function h(){var n=(0,i.A)(["\n margin-bottom: 24px;\n\n &:last-child {\n margin-bottom: 0;\n }\n"]);return h=function(){return n},n}function g(){var n=(0,i.A)(["\n color: ",";\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 22px;\n margin-left: 28px;\n margin-top: 2px;\n"]);return g=function(){return n},n}function v(){var n=(0,i.A)(["\n display: flex;\n gap: 32px;\n\n "," {\n flex-direction: column;\n gap: 14px;\n }\n\n .client-sponsored-pre-booking {\n flex: 1 1;\n justify-content: flex-end;\n margin-bottom: 24px;\n "," {\n justify-content: flex-start;\n }\n }\n"]);return v=function(){return n},n}(0,a.Ay)(r.By).withConfig({componentId:"sc-be880827-0"})(c(),o.M.tdUp,o.M.mbDown,(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.neutral100}));var m=a.Ay.div.withConfig({componentId:"sc-be880827-1"})(l(),o.M.tdUp,(function(n){return n.theme.colors.primaryBase}),o.M.tdDown),b=(a.Ay.div.withConfig({componentId:"sc-be880827-2"})(s(),o.M.tdUp,o.M.tdDown,o.M.mbDown,o.M.tdUp),a.Ay.div.withConfig({componentId:"sc-be880827-3"})(d(),(function(n){return n.theme.colors.neutral100}),(function(n){return n.theme.colors.neutral150}),o.M.tdDown,o.M.tdDown,(function(n){return n.theme.colors.gray600}),o.M.tdDown,(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.colors.gray400}),o.M.tdDown,(function(n){return n.theme.colors.gray800}),o.M.tdDown,(function(n){return n.theme.colors.neutral100}),(function(n){return n.theme.colors.gray800}),o.M.tdDown,(function(n){return n.theme.colors.red700})),a.Ay.div.withConfig({componentId:"sc-be880827-4"})(u(),(function(n){return n.buttonVisible?114:0}))),w=a.Ay.div.withConfig({componentId:"sc-be880827-5"})(p(),o.M.mbDown),A=a.Ay.div.withConfig({componentId:"sc-be880827-6"})(f(),(function(n){return n.theme.colors.yellow50}),(function(n){return n.theme.colors.yellow100}),o.M.mbDown,o.M.mbDown),x=(a.Ay.div.withConfig({componentId:"sc-be880827-7"})(h()),a.Ay.div.withConfig({componentId:"sc-be880827-8"})(g(),(function(n){return n.theme.colors.gray600})),a.Ay.div.withConfig({componentId:"sc-be880827-9"})(v(),o.M.mbDown,o.M.mbDown))},27387:function(n,e,t){"use strict";t.d(e,{_v:function(){return mt},fc:function(){return At},MC:function(){return wt},wx:function(){return bt}});var i=t(858),o=t(53513),r=t(63538),a=t(81539),c=t(83776),l=t(2445),s=t(73884),d=t(85340),u=t(66079),p=t(50126),f=t(87835),h=t(74029),g=t(59850),v=t(84091),m=t(4736),b=t(88491),w=t(73419),A=t(58638),x=t(40959),y=t(6442),C=t(80264),M=t(36259),k=t(82920),Y=t(66298),I=t(10297),D=t(45351),E=t(35291),F=t(44835),N=t(35084),B=t(91266),P=t(25108),z=t(20680),O=t(27112),S=t(62532),T=t(98678),L=t(69931),j=t(91877),H=t(41450),R=function(n){var e=n.isOpen,t=void 0!==e&&e,i=n.name,o=n.onConfirm,r=n.onClose,a=(0,y.A)().formatMessage;return(0,l.Y)(L.P,{type:"confirm",isOpen:t,closeIcon:(0,l.Y)("img",{src:"".concat(x.JpE,"/svg/close.svg"),style:{width:24,height:24},alt:"close-icon"}),onClose:r,children:(0,l.FD)(j.lC,{children:[(0,l.Y)(H.A,{className:"mt-[16px]"}),(0,l.Y)(F.H,{tag:"h3",className:"mt-[10px] mb-[8px]",children:a({id:"booking.subPatient.removeMember",defaultMessage:"Remove member"})}),(0,l.Y)(u.T,{color:E.w.colors.gray600,size:"sm",children:(0,l.Y)("span",{dangerouslySetInnerHTML:{__html:a({id:"booking.subPatient.removeMember.description",defaultMessage:"Are you sure you want to remove {name} Profile from your family?"},{name:''.concat(i,"")})}})}),(0,l.FD)("div",{className:"group-btn mt-[32px]",children:[(0,l.Y)(p.B,{size:"lg",color:"secondary",className:"btn",onClick:o,children:a({id:"admin.removeUnavailableConfirmPopup.button.remove",defaultMessage:"Yes, remove"})}),(0,l.Y)(p.B,{size:"lg",className:"btn",onClick:r,children:a({id:"admin.removeUnavailableConfirmPopup.button.keep",defaultMessage:"No, keep it"})})]})]})})},_=t(21336),Q=t(39900),U=t(68289),V=t(1135),G=t(86204),W=t(1032),J=function(n){var e=n.information,t=n.isChosen,o=n.onClick,r=n.onEditFamilyProfile,a=n.onDeleteFamilyProfile,d=function(n){Y({message:n||C({id:"error.anErrorOccurred",defaultMessage:"An error occurred!"}),type:"danger"})},p=e.id,f=e.avatar,m=e.birthday,b=e.gender,w=e.name,A=e.relation,C=(0,y.A)().formatMessage,k=(0,I.useRouter)().locale,Y=(0,s.useContext)(M.B).pushNotifications,D=(0,s.useState)(!1),F=D[0],N=D[1],B=(0,s.useState)(!1),P=B[0],z=B[1],O=function(){var n=(0,i.A)((function(){var n,t,i;return(0,c.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,(0,v.T7)((0,v.er)(g.R.DELETE_PATIENT_INFO,{id:p}),"DELETE")];case 1:return(n=o.sent())&&-1!==(null===n||void 0===n?void 0:n._status)?1===(null===n||void 0===n?void 0:n._status)&&(Y({message:(null===n||void 0===n?void 0:n._messages)?null===n||void 0===n?void 0:n._messages[0]:C({id:"admin.import.attention.successful",defaultMessage:"Successful!"}),type:"success"}),a(e.id)):d((null===n||void 0===n||null===(t=n._messages)||void 0===t?void 0:t[0])||""),[3,3];case 2:return i=o.sent(),console.error("delete patient: ",i),d(),[3,3];case 3:return[2]}}))}));return function(){return n.apply(this,arguments)}}();return(0,l.FD)(j.un,{"data-is-chosen":t,children:[(0,l.FD)(j.kL,{children:[(0,l.Y)(S.R,{label:"",type:"circle",name:"subpatient-checkbox",value:p.toString(),onChange:o,checked:t}),(0,l.FD)(j.xv,{children:[(0,l.Y)(j.dl,{src:f||h.k_,alt:"Avatar of ".concat(w),className:"avatar",onClick:o}),(0,l.FD)(j.JR,{onClick:o,children:[(0,l.Y)(u.T,{size:"s3",type:"semiBold",children:w}),(0,l.Y)("div",{className:"row-info",children:(0,l.Y)(u.T,{size:"p4",color:E.w.colors.gray600,children:C({id:"booking.subPatient.relationship.".concat(x.ynE[A||V.pE.OTHER]),defaultMessage:(0,U.Zr)(x.ynE[A])})})}),(0,l.FD)("div",{className:"row-info",children:[(0,l.Y)(u.T,{size:"p4",color:E.w.colors.gray600,children:C({id:x.S91[b]||"gender.other",defaultMessage:"Other"})}),(0,l.Y)(u.T,{size:"p4",color:E.w.colors.gray600,children:m.toLocaleDateString(k)})]})]}),(0,l.FD)(j.rj,{children:[(0,l.Y)("button",{className:"button",children:(0,l.Y)(_.h,{iconSize:20,svgIcon:{fill:E.w.colors.gray400},onClick:function(){return N(!0)},children:(0,l.Y)(G.A,{})})}),(0,l.Y)("div",{className:"button",children:(0,l.Y)(_.h,{iconSize:20,svgIcon:{stroke:E.w.colors.gray400},onClick:function(){return z(!0)},children:(0,l.Y)(W.A,{})})})]})]})]}),(0,l.Y)(Q.R,{isOpen:F,formType:"edit",defaultValues:(0,T.Do)(e),onClose:function(){return N(!1)},onAddOrEditFamilyProfile:r}),(0,l.Y)(R,{name:e.name,isOpen:P,onClose:function(){return z(!1)},onConfirm:function(){O(),z(!1)}})]})},q=t(27516),X=t(80084),K=t(19475),Z=t(24537),$=t(27317);function nn(){var n=(0,Z.A)(["\n display: flex;\n flex-direction: column;\n gap: 16px;\n\n .wrapper-form,\n .type-opt {\n display: flex;\n flex-direction: column;\n gap: 16px;\n }\n\n .checkbox-field {\n margin-top: 8px;\n label {\n max-width: initial;\n display: flex;\n gap: 8px;\n width: 100%;\n\n p {\n order: 1;\n }\n }\n }\n\n .survey-reason {\n display: flex;\n flex-direction: column;\n gap: 8px;\n .reason-text-area {\n border-radius: 4px;\n border: 1px solid ",";\n background: ",";\n padding: 12px;\n resize: none;\n height: 120px;\n }\n }\n"]);return nn=function(){return n},n}function en(){var n=(0,Z.A)(["\n display: flex;\n flex-direction: column;\n gap: 16px;\n"]);return en=function(){return n},n}var tn=$.Ay.div.withConfig({componentId:"sc-6a9afa58-0"})(nn(),(function(n){return n.theme.colors.gray200}),(function(n){return n.theme.colors.white})),on=$.Ay.div.withConfig({componentId:"sc-6a9afa58-1"})(en()),rn=function(n){var e=n.setTypePatient,t=n.typePatient,i=n.reason,a=n.typeOfPatient,c=n.bookingPatientInfo,s=n.errorMessage,d=n.setBookingPatientInfo,p=n.handleCheckSameProfile,f=n.setErrorMessage,h=n.setReason,g=(0,y.A)().formatMessage,v=(0,w.$)(),m=v.locale,b=v.asPath;return(0,l.FD)(on,{children:[(0,l.Y)(F.H,{tag:"h6",color:E.w.colors.secondaryBase,className:"heading-title",children:g({id:"booking.survey",defaultMessage:"Survey question"})}),(0,l.FD)(tn,{children:[(0,l.FD)("div",{className:"type-opt",children:[(0,l.FD)(u.T,{size:"s4",type:"semiBold",children:["1."," ",g({id:"booking.question.typePatient",defaultMessage:"Have you visited this facility before?"})]}),(0,l.Y)(N.R,{id:"time-selection",type:"circle",size:"small",direction:"horizontal",className:"radio-btn",onChange:e,value:t,options:a,dataEventCategory:"Care",dataEventAction:"Patient Type Click",dataEventLabel:"https://".concat(q.y[m]).concat(x.JpE).concat(b)})]}),(0,l.FD)("div",{className:"wrapper-form",children:[(0,l.FD)("div",{children:[(0,l.Y)(X.I,{placeholder:g({id:"booking.question.zalo.title",defaultMessage:"Zalo"}),name:"zalo",label:g({id:"booking.question.zalo.title",defaultMessage:"Zalo"}),size:"lg",value:null===c||void 0===c?void 0:c.phone,className:"input-item",onChange:function(n){d((function(e){return(0,r.A)((0,o.A)({},e),{phone:n})}))},style:{minHeight:"auto",width:"auto"}}),(0,l.Y)("div",{className:"checkbox-field",children:(0,l.Y)(K.Sc,{label:g({id:"booking.question.sameProfile.title",defaultMessage:"Same to the phone number in user profile"}),name:"checkbox",id:"check-same-profile",onChange:function(n){p(n)},checked:null===c||void 0===c?void 0:c.isSameProfile})})]}),(0,l.Y)(X.I,{placeholder:g({id:"booking.question.addresso.title",defaultMessage:"Address"}),name:"address",label:g({id:"booking.question.addresso.title",defaultMessage:"Address"}),size:"lg",value:null===c||void 0===c?void 0:c.address,className:"input-item",onChange:function(n){d((function(e){return(0,r.A)((0,o.A)({},e),{address:n})}))},style:{minHeight:"auto",width:"auto"}})]}),(0,l.FD)("div",{className:"survey-reason",children:[(0,l.FD)(u.T,{size:"s4",type:"semiBold",children:["2."," ",g({id:"booking.question.reason.title",defaultMessage:"What is the reason for your visit?"})]}),(0,l.Y)("textarea",{className:"reason-text-area",value:i,placeholder:g({id:"booking.question.reason.placeholder",defaultMessage:"Enter your reason..."}),onChange:function(n){delete s.reason,f(s),h(n.target.value)},"data-is-error":!!s.reason,"data-event-category":"Care","data-event-action":"Booking Reason Click","data-event-label":"https://".concat(q.y[m]).concat(x.JpE).concat(b)},"reason"),(null===s||void 0===s?void 0:s.reason)&&(0,l.Y)(u.T,{size:"n1",color:E.w.colors.red700,className:"errorLabel",children:null===s||void 0===s?void 0:s.reason})]})]})]})},an=t(39372),cn=t(89902),ln=t(58665),sn=t(90206),dn=function(n){var e=n.patientInfo,t=n.familyInfo,i=n.bookingPatientFor,o=n.chosenSubPatientIndex,r=n.setTypePatient,a=n.typePatient,c=n.reason,d=n.typeOfPatient,f=n.bookingPatientInfo,h=n.errorMessage,g=n.setBookingPatientInfo,v=n.handleCheckSameProfile,m=n.setBookingPatientFor,b=n.setChosenSubPatientIndex,w=n.onAddFamilyProfile,A=n.onEditFamilyProfile,C=n.onDeleteFamilyProfile,M=n.setErrorMessage,k=n.setReason,Y=(0,y.A)().formatMessage,I=(0,s.useState)(!1),D=I[0],S=I[1],T=[{label:Y({id:"booking.patientType.myself",defaultMessage:"Myself"}),value:x.mCf.USER},{label:Y({id:"booking.patientType.another",defaultMessage:"Another Patient"}),value:x.mCf.FAMILY}];return(0,l.FD)(P.tJ,{children:[(0,l.Y)(F.H,{tag:"h6",color:E.w.colors.secondaryBase,className:"heading-title",children:Y({id:"booking.target.patient.patientInfo",defaultMessage:"Patient's info"})}),(0,l.Y)("div",{children:Y({id:"booking.target.patient.title",defaultMessage:"You're booking for"})}),(0,l.Y)(N.R,{id:"booking-patient-type",type:"circle",size:"small",direction:"horizontal",className:"radio-btn",options:T,value:i,onChange:function(n){return m(n)}}),e?i===x.mCf.USER&&e?(0,l.Y)(O.A,{patientInfo:e}):i===x.mCf.FAMILY&&t?(0,l.Y)(an.tp,{children:t.length>0?(0,l.FD)(l.FK,{children:[t.map((function(n,e){return(0,l.Y)(J,{information:n,isChosen:e===o,onClick:function(){return b(e)},onEditFamilyProfile:A,onDeleteFamilyProfile:C},n.id)})),t.lengthNumber(p)}),[p,f]),on=(0,s.useMemo)((function(){return L===x.vne.RANGE&&!Y}),[Y,L]),rn=(0,s.useMemo)((function(){return{tooltip:{minWidth:"280px",padding:"12px",whiteSpace:"initial",backgroundColor:"#fff",borderRadius:"8px",boxShadow:"0px 10px 16px 0px rgba(0, 0, 0, 0.04), 0px 2px 8px 0px rgba(0, 0, 0, 0.04), 0px 0px 1px 0px rgba(0, 0, 0, 0.04)",p:{fontSize:"12px",fontWeight:"400",lineHeight:"18px"},span:{color:"#2D87F3",textDecoration:"underline"}}}}),[]);(0,fn.j)(en,(function(){nn(!1)}));return(0,l.FD)(P.tJ,{className:"booking-summary--block ".concat(R),children:[(0,l.Y)(F.H,{tag:"h6",color:"#284A75",className:"heading-title",children:q({id:"booking.target.ticket.title",defaultMessage:"Your Appointment"})}),(0,l.FD)(Mn,{children:[(0,l.FD)(kn,{className:H&&Y?"items-start":"",children:[(0,l.Y)("div",{className:"avatar bg-img-500",children:(0,l.Y)("img",{src:(0,h.wW)(e,"".concat(x.JpE,"/images/avatar.jpg")),alt:"Avatar"})}),(0,l.FD)("div",{children:[(0,l.Y)(u.T,{size:"p1",className:"name pr-[16px]",type:"semiBold",children:t}),H&&(0,l.Y)(u.T,{size:"xs",className:"specialties pr-[16px]",type:"regular",color:"#595959",children:H}),Y&&(0,l.Y)(Nn.A,{type:"telemedicine",showLabel:!0})]})]}),B&&(0,l.Y)(hn.A,{}),(0,l.FD)(Yn,{children:[(0,l.Y)(u.T,{size:"p4",className:"lable-info",children:q({id:"common.priceAndLocation.label",defaultMessage:"Price & location"})}),(0,l.FD)(In,{children:[Q&&_&&(0,l.FD)(Dn,{children:[(0,l.Y)("div",{className:"logo",children:(0,l.Y)(Sn,{})}),(0,l.FD)("div",{className:"content-wrapper",children:[(0,l.FD)("div",{className:"content-label",children:[q({id:"booking.target.timeSlot",defaultMessage:"Schedule"}),": ",Q]}),(0,l.Y)("div",{className:"content-text",children:_})]})]}),(0,l.FD)(Dn,{children:[(0,l.Y)("div",{className:"logo",children:(0,l.Y)(Ln.A,{})}),(0,l.FD)("div",{className:"content-wrapper",children:[(0,l.Y)("div",{className:"content-label",children:i}),(0,l.FD)("div",{className:"content-text",children:[o,r&&a&&(0,l.FD)("a",{className:"direction-map",href:"https://www.google.com/maps/dir/?api=1&destination=".concat(r,",").concat(a),target:"_blank",rel:"noreferrer",children:[(0,l.Y)("img",{src:"".concat(x.JpE,"/svg/directions.svg"),alt:"Get direction"}),(0,l.Y)("span",{className:"direction-map-title",children:q({id:"hospital.directions",defaultMessage:"Direction"})})]})]})]})]}),!E&&(0,l.FD)(Dn,{children:[(0,l.Y)("div",{className:"logo",children:(0,l.Y)(jn.A,{})}),(0,l.FD)("div",{className:"content-wrapper",children:[(0,l.Y)("div",{className:"content-label",children:q({id:"admin.services.price",defaultMessage:"Price"})}),(0,l.FD)("div",{className:"content-price",children:[(0,l.FD)("div",{className:"flex flex-wrap gap-[8px]",children:[(0,l.FD)("div",{className:"content-price-new-price",children:[(0,l.Y)("span",{className:"price",children:p?(0,v.UN)(p,K):""}),on&&(0,l.FD)(l.FK,{children:[(0,l.Y)("span",{children:"-"}),(0,l.Y)("span",{className:"price",children:m?(0,v.UN)(m,K):""})]})]}),tn&&(0,l.FD)("div",{className:"content-price-old-price",children:[(0,l.Y)("span",{className:"old-price",children:f?(0,v.UN)(f,K):""}),on&&(0,l.FD)(l.FK,{children:[(0,l.Y)("span",{className:"old-price-dash",children:"-"}),(0,l.Y)("span",{className:"old-price",children:g?(0,v.UN)(g,K):""})]})]})]}),(0,l.Y)("div",{className:"flex gap-[8px]",children:b.map((function(n,e){return 0===n.amount?null:(0,l.Y)(pn.m,{label:(0,l.FD)(Fn,{children:[(0,l.FD)("div",{className:"flex gap-[4px] flex-col",children:[d&&(0,l.FD)("div",{className:"content-info",children:[(0,l.Y)("div",{className:"content-info-title",children:q({id:"price.at.clinic.text",defaultMessage:"Price at the clinic"})}),(0,l.Y)("div",{className:"content-info-text",children:d?(0,v.UN)(d,K):""})]}),(0,l.FD)("div",{className:"content-info",children:[(0,l.Y)("div",{className:"content-info-title",children:q({id:"price.sell.text",defaultMessage:"Price sell"})}),(0,l.FD)("div",{className:"content-info-text",children:[c?(0,v.UN)(c,K):"",on&&g&&(0,l.FD)(l.FK,{children:["\xa0","-","\xa0",(0,v.UN)(g,K)]})]})]}),(0,l.FD)("div",{className:"content-info",children:[(0,l.Y)("div",{className:"content-info-title",children:q({id:"voucher.internal.text",defaultMessage:"Voucher HelloBacsi"})}),(0,l.FD)("div",{className:"content-info-text content-info-price-discount",children:[on&&c&&p&&"Percent"===(null===U||void 0===U?void 0:U.reward)&&(0,l.FD)(l.FK,{children:["-",(0,v.UN)(Number(c)-Number(p),K),"\xa0\xa0","-","\xa0"]}),"-",n.amount?(0,v.UN)(n.amount,K):""]})]})]}),(0,l.Y)("div",{className:"h-[1px] w-[100%] bg-[#E4E8EC]"}),(0,l.FD)("div",{className:"content-info",children:[(0,l.Y)("div",{className:"content-info-title",children:q({id:"total.price.sell.text",defaultMessage:"Total paid"})}),(0,l.FD)("div",{className:"content-info-text content-info-price-discount",children:[p?(0,v.UN)(p,K):"",on&&m&&(0,l.FD)(l.FK,{children:["\xa0","-","\xa0",(0,v.UN)(m,K)]})]})]})]}),styles:rn,withArrow:!0,opened:$,children:(0,l.FD)("span",{className:"tag-discount",onClick:function(){return nn((function(n){return!n}))},ref:en,children:[(0,l.Y)(qn,{}),n.name,(0,l.Y)(Pn.A,{className:"arrow-icon"})]},e)},e)}))})]}),!O&&(0,l.FD)(En,{children:[(0,l.FD)("div",{className:"apply-voucher-wrapper ".concat((null===j||void 0===j?void 0:j.voucher)?"has-error-voucher":""),children:[(0,l.Y)(X.I,{placeholder:q({id:"doctor.detail.addVoucher",defaultMessage:"Add voucher"}),name:"voucher",label:"",size:"md",className:"apply-voucher-input",value:T,disabled:M,icon:A?M?(0,l.Y)(Bn.A,{}):(null===j||void 0===j?void 0:j.voucher)?(0,l.Y)(Tn.A,{onClick:function(){return J&&J()}}):null:null,error:(null===j||void 0===j?void 0:j.voucher)?null===j||void 0===j?void 0:j.voucher:"",onChange:function(n){V&&V(n)}}),M?(0,l.Y)(un.B,{onClick:function(){return J&&J()},leftIcon:(0,l.Y)(W.A,{}),color:"#E3F2FF",className:"remove-voucher-btn",children:q({id:"admin.booking.removeCode",defaultMessage:"Remove code"})}):(0,l.Y)(un.B,{onClick:function(){return G&&G()},children:q({id:"admin.booking.apply",defaultMessage:"Apply"})})]}),(0,l.Y)("div",{className:"error-message-voucher",children:null===j||void 0===j?void 0:j.voucher})]})]})]})]})]})]})]})},Kn=t(77480);function Zn(){return Zn=Object.assign?Object.assign.bind():function(n){for(var e=1;e0?a(n):(a(0),clearInterval(t.current))}),1e3),function(){return clearInterval(t.current)}}),[i]),function(n,e){var t=Math.floor(n/864e5),i=Math.floor(n%864e5/36e5);return e||(i+=24*t),[t,i,Math.floor(n%36e5/6e4),Math.floor(n%6e4/1e3)]}(r,e)},ae=t(58065),ce=t(33364),le=t(46529),se=function(){return(0,l.FD)(Kn.OJ,{children:[(0,l.Y)("div",{className:"content-info",children:(0,l.Y)("div",{className:"content-info-title text-center",children:"\ud83d\udd25\ud83d\udd25\ud83d\udd25 GI\u1ea2M NGAY 100K KHI THANH TO\xc1N MOMO \ud83d\udd25\ud83d\udd25\ud83d\udd25"})}),(0,l.FD)("div",{className:"content-info",children:[(0,l.Y)("div",{className:"content-info-title",children:"Ch\u01b0\u01a1ng tr\xecnh \u01b0u \u0111\xe3i"}),(0,l.Y)("div",{className:"content-info-text",children:"Gi\u1ea3m ngay 100k khi thanh to\xe1n qua v\xed \u0111i\u1ec7n t\u1eed Momo (Kh\xf4ng gi\u1edbi h\u1ea1n s\u1ed1 l\u1ea7n thanh to\xe1n)."})]}),(0,l.FD)("div",{className:"content-info",children:[(0,l.Y)("div",{className:"content-info-title",children:"\u0110i\u1ec1u ki\u1ec7n s\u1eed d\u1ee5ng"}),(0,l.Y)("div",{className:"content-info-text",children:'\xc1p d\u1ee5ng cho t\u1ea5t kh\xe1ch h\xe0ng \u0111\u1eb7t mua "B\u1ed9 x\xe9t nghi\u1ec7m HPV DNA v\u1edbi que t\u1ef1 l\u1ea5y m\u1eabu t\u1ea1i nh\xe0" ho\u1eb7c \u0111\u1eb7t "G\xf3i kh\xe1m Ph\u1ee5 khoa + X\xe9t nghi\u1ec7m HPV DNA" tr\xean n\u1ec1n t\u1ea3ng Hello Bacsi.'})]}),(0,l.FD)("div",{className:"content-info",children:[(0,l.Y)("div",{className:"content-info-title",children:"H\u1ea1n s\u1eed d\u1ee5ng"}),(0,l.Y)("div",{className:"content-info-text",children:"15/04/2024 - 31/05/2024"})]})]})},de=function(){return(0,l.FD)(Kn.OJ,{children:[(0,l.Y)("div",{className:"content-info",children:(0,l.Y)("div",{className:"content-info-title text-center",children:"\ud83d\udd25\ud83d\udd25\ud83d\udd25 MUA H\xc0NG HELLOBACSI - NH\u1eacN QU\xc0 M\xca LI \ud83d\udd25\ud83d\udd25\ud83d\udd25"})}),(0,l.FD)("div",{className:"content-info",children:[(0,l.Y)("div",{className:"content-info-title",children:"Ch\u01b0\u01a1ng tr\xecnh \u01b0u \u0111\xe3i"}),(0,l.Y)("div",{className:"content-info-text",children:"Kh\xe1ch h\xe0ng \u0111\u1eb7t l\u1ecbch h\u1eb9n kh\xe1m qua n\u1ec1n t\u1ea3ng ho\u1eb7c mua s\u1ea3n ph\u1ea9m t\u1ea1i C\u1eeda h\xe0ng tr\u1ef1c tuy\u1ebfn Hello Bacsi (v\u1edbi \u0111\u01a1n t\u1eeb 100K) => Nh\u1eadn ngay G\xf3i combo \u0103n u\u1ed1ng, mua s\u1eafm tr\u1ecb gi\xe1 300.000\u0111 tr\xean Momo."})]}),(0,l.FD)("div",{className:"content-info",children:[(0,l.Y)("div",{className:"content-info-title",children:"\u0110i\u1ec1u ki\u1ec7n s\u1eed d\u1ee5ng"}),(0,l.FD)("div",{className:"content-info-text",children:["- M\u1ed7i kh\xe1ch h\xe0ng ch\u1ec9 nh\u1eadn \u0111\u01b0\u1ee3c 1 combo trong su\u1ed1t th\u1eddi gian di\u1ec5n ra ch\u01b0\u01a1ng tr\xecnh.",(0,l.Y)("br",{}),"- \xc1p d\u1ee5ng khi THANH TO\xc1N TR\u1ef0C TUY\u1ebeN qua Momo (bao g\u1ed3m c\u1ea3 g\xf3i d\u1ecbch v\u1ee5 s\u1ee9c kh\u1ecfe v\xe0 mua s\u1ea3n ph\u1ea9m t\u1ea1i c\u1eeda h\xe0ng tr\u1ef1c tuy\u1ebfn Hello Bacsi)."]})]}),(0,l.FD)("div",{className:"content-info",children:[(0,l.Y)("div",{className:"content-info-title",children:"H\u1ea1n s\u1eed d\u1ee5ng"}),(0,l.Y)("div",{className:"content-info-text",children:"12/04/2024 - 30/06/2024"})]})]})},ue=function(n){var e=n.content,t=n.bgColor,i=n.iconColor,o=n.labelTootip,r=n.className,a=(0,s.useState)(!1),c=a[0],d=a[1],u=(0,s.useMemo)((function(){return{tooltip:{width:"240px",padding:"12px",whiteSpace:"initial",backgroundColor:"#fff",borderRadius:"8px",boxShadow:"0px 8px 40px 0px rgba(0, 0, 0, 0.10)",p:{fontSize:"12px",fontWeight:"400",lineHeight:"18px"},span:{color:"#2D87F3",textDecoration:"underline"}}}}),[]);return(0,l.FD)(Kn.ty,{className:r,bgColor:t,iconColor:i,children:[(0,l.Y)(le.A,{}),e,(0,l.Y)(pn.m,{label:o,styles:u,withArrow:!0,opened:c,children:(0,l.Y)("div",{onMouseOver:function(){d(!0)},onMouseOut:function(){d(!1)},className:"flex",children:(0,l.Y)(ce.A,{onClick:function(n){n.stopPropagation(),n.preventDefault(),d(!0)}})})})]})};function pe(){return pe=Object.assign?Object.assign.bind():function(n){for(var e=1;e0&&!p?(0,l.FD)("div",{className:"flex gap-[4px] flex-wrap",children:[t.includes(x.T8A.MOMO100K)&&(0,l.Y)(ue,{bgColor:"#FDF1F6",iconColor:"#A50064",labelTootip:(0,l.Y)(se,{}),content:(0,l.Y)(ae.A,{id:"booking.discount.amount.text",defaultMessage:"Extra discount gift cards {amount}",tagName:"p",values:{span:s,amount:"100.000 \u0111"}})}),t.includes(x.T8A.MOMO300K)&&(0,l.Y)(ue,{bgColor:"#FDF1F6",iconColor:"#A50064",labelTootip:(0,l.Y)(de,{}),content:(0,l.Y)(ae.A,{id:"booking.discount.amount.text1",defaultMessage:"C\u01a1 h\u1ed9i nh\u1eadn qu\xe0 tr\u1ecb gi\xe1 {amount}",tagName:"p",values:{span:s,amount:"300.000 \u0111"}})})]}):""]}),"data-control":"radio",labelPosition:"left",className:"payment-option-radio"})]}),t.length>0&&p&&(0,l.FD)("div",{className:"flex gap-[4px] flex-wrap",children:[t.includes(x.T8A.MOMO100K)&&(0,l.Y)(ue,{bgColor:"#FDF1F6",iconColor:"#A50064",labelTootip:(0,l.Y)(se,{}),content:(0,l.Y)(ae.A,{id:"booking.discount.amount.text",defaultMessage:"Extra discount gift cards {amount}",tagName:"p",values:{span:s,amount:"100.000 \u0111"}})}),t.includes(x.T8A.MOMO300K)&&(0,l.Y)(ue,{bgColor:"#FDF1F6",iconColor:"#A50064",labelTootip:(0,l.Y)(de,{}),content:(0,l.Y)(ae.A,{id:"booking.discount.amount.text1",defaultMessage:"C\u01a1 h\u1ed9i nh\u1eadn qu\xe0 tr\u1ecb gi\xe1 {amount}",tagName:"p",values:{span:s,amount:"300.000 \u0111"}})})]})]}),o.includes(x.JZw.ATM_MOMO)&&(0,l.Y)(Kn.iF,{onClick:function(){return h(x.JZw.ATM_MOMO)},children:(0,l.FD)(Kn.Uy,{className:"option-payment",children:[(0,l.Y)("div",{className:"payment-logo",children:(0,l.Y)(ge,{})}),(0,l.Y)(X.R,{value:x.JZw.ATM_MOMO,label:d({id:"atm.momo.label",defaultMessage:"Domestic ATM card"}),"data-control":"radio",labelPosition:"left",className:"payment-option-radio"})]})}),o.includes(x.JZw.VISA_MOMO)&&(0,l.Y)(Kn.iF,{onClick:function(){return h(x.JZw.VISA_MOMO)},children:(0,l.FD)(Kn.Uy,{className:"option-payment",children:[(0,l.Y)("div",{className:"payment-logo",children:(0,l.Y)(Se,{})}),(0,l.Y)(X.R,{value:x.JZw.VISA_MOMO,label:d({id:"visa.momo.label",defaultMessage:"VISA/Master/JCB card"}),"data-control":"radio",labelPosition:"left",className:"payment-option-radio"})]})}),o.includes(x.JZw.OY)&&(0,l.Y)(Kn.iF,{onClick:function(){return h(x.JZw.OY)},children:(0,l.FD)(Kn.Uy,{className:"option-payment",children:[(0,l.Y)("div",{className:"payment-logo",children:(0,l.Y)(De,{})}),(0,l.Y)(X.R,{value:x.JZw.OY,label:"Payment with OY","data-control":"radio",labelPosition:"left",className:"payment-option-radio"})]})})]})]})},$e=function(n){var e=n.selectedPayment,t=n.isLoading,i=void 0!==t&&t,o=n.errorMessage,r=n.methodVouchers,a=void 0===r?[]:r,c=n.allowPaymentMethods,d=n.hideDescriptionMethods,u=void 0===d?[]:d,p=n.reservationBooking,f=void 0!==p&&p,h=n.disablePaymentBtn,g=void 0!==h&&h,v=n.handleChangePaymentMethod,m=n.handleClickConfirmBooking,A=(0,y.A)().formatMessage,C=(0,b.d)().isMobile,M=(0,w.$)(),k=M.asPath,Y=M.locale,I=(0,s.useMemo)((function(){return f?A({id:"reservation.bookingCard.proceedConfirm",defaultMessage:"Complete your reservation"}):e&&e===x.JZw.COD?A({id:"bookingCard.proceedConfirm",defaultMessage:"Proceed to Confirm"}):A({id:"bookingCard.proceedPayment",defaultMessage:"Proceed to Payment"})}),[e,f]),D=(0,s.useMemo)((function(){return!(c.length<1)&&c.some((function(n){return x.lE6.includes(n)}))}),[c]);return c.length<1||"id-ID"===Y?(0,l.Y)(Kn.wL,{className:"text-right",children:(0,l.Y)(un.B,{className:"".concat(C?"w-[100%]":""),onClick:m,loading:i,"data-event-category":"Care","data-event-action":"Payment Click","data-event-label":"https://".concat(q.y[Y]).concat(x.JpE).concat(k),children:I})}):(0,l.FD)(P.tJ,{children:[(0,l.Y)(F.H,{tag:"h6",color:E.w.colors.secondaryBase,className:"heading-title",children:A({id:"booking.paymentMethod",defaultMessage:"Payment method"})}),(0,l.FD)(X.R.Group,{withAsterisk:!0,className:"group-radio-payment-method ".concat((null===o||void 0===o?void 0:o.paymentMethod)?"has-error":""),size:"sm",value:String(e),onChange:function(n){n&&v(n)},children:[D&&(0,l.Y)(Ze,{methodVouchers:a,allowPaymentMethods:c,isActive:!!e&&x.lE6.includes(e),onClickChangeOption:function(n){n&&v(n)}}),c.includes(x.JZw.COD)&&(0,l.Y)(te,{isActive:e===x.JZw.COD,hideDescription:u.includes(x.JZw.COD),onClickChangeOption:function(n){n&&v(n)}})]}),(null===o||void 0===o?void 0:o.paymentMethod)&&(0,l.Y)(Kn.f,{children:A({id:"required.paymentMethod.message",defaultMessage:"Please select a payment method to continue"})}),(0,l.Y)(Kn.wL,{className:"text-right",children:(0,l.Y)(un.B,{className:"".concat(C?"w-[100%]":""),onClick:m,loading:i,"data-event-category":"Care","data-event-action":"Payment Click","data-event-label":"https://".concat(q.y[Y]).concat(x.JpE).concat(k),disabled:g,children:I})})]})},nt=function(n){var e,t,o=n.familyInfo,r=n.patientInfo,d=n.doctorInfo,u=n.serviceInfo,p=n.chosenSubPatientIndex,f=n.bookingPatientFor,m=n.isTelemedicine,w=n.selectedPayment,A=n.isLoading,C=n.typePatient,M=n.reason,E=n.bookingPatientInfo,F=n.allowPaymentMethods,N=n.errorMessage,B=n.slotInfo,z=n.reservationBooking,O=void 0!==z&&z,S=n.isValidTanganil,T=void 0!==S&&S,L=n.setBookingPatientInfo,j=n.handleCheckSameProfile,H=n.setTypePatient,R=n.setErrorMessage,_=n.setReason,Q=n.setChosenSubPatientIndex,U=n.setBookingPatientFor,V=n.onAddFamilyProfile,G=n.onEditFamilyProfile,W=n.onDeleteFamilyProfile,J=n.onChangePaymentMethod,q=n.handleClickConfirmButton,X=n.setVoucherInfor,K=n.voucherInfor,Z=(0,I.useRouter)(),$=(0,y.A)().formatMessage,nn=(0,b.d)().isMobile,en=Z.locale,tn=(0,s.useState)(""),on=tn[0],rn=tn[1],an=(0,s.useState)(!1),cn=an[0],ln=an[1],sn=(0,s.useState)(!1),un=sn[0],pn=sn[1],fn=(0,s.useState)({}),hn=fn[0],gn=fn[1],vn=(0,s.useState)([x.JZw.VNPAY]),mn=vn[0],bn=vn[1],wn=u?null===u||void 0===u?void 0:u.price:m?null===d||void 0===d?void 0:d.telemedicineFee:null===d||void 0===d?void 0:d.price,An=u?null===u||void 0===u?void 0:u.priceTo:m?"":null===d||void 0===d?void 0:d.priceTo,xn=[{label:$({id:"booking.question.newPatient",defaultMessage:"New Patient"}),value:"new"},{label:$({id:"booking.question.existingPatient",defaultMessage:"Existing Patient"}),value:"existing"}],yn=(0,h.wW)(B,{}),Cn=yn.slot,Mn=yn.date,kn=Mn&&(0,k.A)(Mn,x.cuM,new Date),Yn=kn&&(0,Y.A)(kn,x.ith,{locale:D.tV[en]}),In="".concat(null===Cn||void 0===Cn||null===(e=Cn.started)||void 0===e?void 0:e.substring(0,5)," - ").concat(null===Cn||void 0===Cn||null===(t=Cn.ended)||void 0===t?void 0:t.substring(0,5)),Dn=(0,s.useMemo)((function(){var n,e,t,i,o,r,a,c;return u?{name:(0,h.wW)(null===u||void 0===u?void 0:u.name,""),logo:(0,h.wW)(null===u||void 0===u?void 0:u.logoService,""),subName:(0,h.wW)(null===u||void 0===u||null===(n=u.hospitalBranch)||void 0===n?void 0:n.name,""),address:(0,h.wW)(null===u||void 0===u||null===(e=u.hospitalBranch)||void 0===e?void 0:e.address,""),latitude:(0,h.wW)(null===u||void 0===u||null===(t=u.hospitalBranch)||void 0===t?void 0:t.latitude,""),longitude:(0,h.wW)(null===u||void 0===u||null===(i=u.hospitalBranch)||void 0===i?void 0:i.longitude,"")}:d?{name:(0,h.wW)(null===d||void 0===d?void 0:d.name,""),logo:(0,h.wW)(null===d||void 0===d?void 0:d.avatar,""),subName:(0,h.wW)(null===d||void 0===d||null===(o=d.hospital)||void 0===o?void 0:o.name,""),address:(0,h.wW)(null===d||void 0===d||null===(r=d.hospital)||void 0===r?void 0:r.address,""),latitude:(0,h.wW)(null===d||void 0===d||null===(a=d.hospital)||void 0===a?void 0:a.latitude,""),longitude:(0,h.wW)(null===d||void 0===d||null===(c=d.hospital)||void 0===c?void 0:c.longitude,"")}:{name:"",logo:"",subName:"",address:"",latitude:"",longitude:""}}),[d,u]),En=(0,s.useMemo)((function(){if(0===Number(wn)||!wn)return"0";if(K){if("Percent"===K.reward){var n=(null===K||void 0===K?void 0:K.reward_percent)||0;return Math.round(Number(wn)*((100-n)/100))}return"Amount"===K.reward&&Number(wn)>Number(K.reward_amount)?Number(wn)-Number(K.reward_amount):0}return wn}),[K,u,d]),Fn=(0,s.useMemo)((function(){return T&&d?null===d||void 0===d?void 0:d.originalPrice:u&&(null===u||void 0===u?void 0:u.originalPrice)?null===u||void 0===u?void 0:u.originalPrice:K?wn:""}),[u,d,K,T]),Nn=(0,s.useMemo)((function(){if(0===Number(An))return"0";if(K){var n=(null===K||void 0===K?void 0:K.reward_percent)||0;return"Percent"===K.reward?Math.round(Number(An)*((100-n)/100)):"Amount"===K.reward&&Number(An)>Number(K.reward_amount)?Number(An)-Number(K.reward_amount):0}return An}),[d,u,K]),Bn=(0,s.useMemo)((function(){return u?u.priceType:null===d||void 0===d?void 0:d.priceType}),[d,u]),Pn=(0,s.useMemo)((function(){if(!K)return[];var n=(null===K||void 0===K?void 0:K.reward_percent)||0;return"Percent"===K.reward?3===Bn?[{amount:Math.round(Number(An)*(n/100)),name:K.campaign[0]?K.campaign[0].name:""}]:[{amount:Math.round(Number(wn)*(n/100)),name:K.campaign[0]?K.campaign[0].name:""}]:"Amount"===K.reward?[{amount:Number((null===K||void 0===K?void 0:K.reward_amount)||0),name:K.campaign[0]?K.campaign[0].name:""}]:[]}),[K,wn,An,Bn]),zn=(0,s.useMemo)((function(){return d?d.specialties.map((function(n){return"string"===typeof n?n:n.name})).join(", "):""}),[d]),On=(0,s.useMemo)((function(){return!T&&((null===d||void 0===d?void 0:d.isSiloam)||0===Number(wn))}),[null===d||void 0===d?void 0:d.isSiloam,wn,T]),Sn=function(){var n=(0,i.A)((function(){var n,e;return(0,c.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,5,,6]),d?[4,(0,v.T7)((0,v.er)(g.R.GET_VERIFY_DOCTOR_COUPON,{doctorId:(null===d||void 0===d?void 0:d.id)||"",code:on}),"GET")]:[3,2];case 1:n=t.sent(),t.label=2;case 2:return u?[4,(0,v.px)((0,v.er)(g.R.GET_VERIFY_SERVICE_COUPON,{serviceId:(null===u||void 0===u?void 0:u.id)||"",code:on}),"GET")]:[3,4];case 3:n=t.sent(),t.label=4;case 4:return pn(!0),n&&1===n._status?(ln(!0),gn({}),X&&X(n._data.coupon)):(ln(!1),gn({voucher:$({id:"doctor.detail.valid.voucher.message",defaultMessage:"Voucher is invalid. Please try another one"})})),[3,6];case 5:return e=t.sent(),console.log(e),[3,6];case 6:return[2]}}))}));return function(){return n.apply(this,arguments)}}(),Tn=function(){ln(!1),rn(""),X(null),pn(!1),gn({})};(0,s.useEffect)((function(){u&&Number(u.price)>=x.pvq&&bn((function(n){return(0,a.A)(n).concat([x.T8A.MOMO300K])}))}),[u]);var Ln=function(){return(0,l.Y)(Xn,{logo:Dn.logo,name:Dn.name,subName:Dn.subName,address:Dn.address,latitude:Dn.latitude,longitude:Dn.longitude,price:wn,originalPrice:(null===u||void 0===u?void 0:u.originalPrice)||"",oldPrice:Fn||"",newPrice:En,newPriceTo:Nn,oldPriceTo:An,priceType:Bn,specialties:zn,isTelemedicine:m,bookingDate:Yn,timeSlot:In,discounts:Pn,isApplyVoucher:un,voucherCode:on,isValidVoucher:cn,errors:hn,hidePriceBlock:On,voucherInfor:K,reservationBooking:O,hideApplyVoucherBlock:T,setVoucherCode:rn,onApplyVoucher:Sn,handleRemoveVoucher:Tn})};return(0,l.Y)(P.AH,{className:"care-booking-container",children:(0,l.FD)(P.Ti,{children:[nn&&Ln(),(0,l.Y)("div",{className:"patient-info",children:(0,l.Y)(dn,{setTypePatient:H,typePatient:C,reason:M,typeOfPatient:xn,bookingPatientInfo:E,setBookingPatientInfo:L,handleCheckSameProfile:j,patientInfo:r,familyInfo:o,chosenSubPatientIndex:p,bookingPatientFor:f,isTelemedicine:m,setBookingPatientFor:U,setChosenSubPatientIndex:Q,onAddFamilyProfile:V,onEditFamilyProfile:G,onDeleteFamilyProfile:W,setErrorMessage:R,setReason:_,errorMessage:N})}),(0,l.FD)("div",{className:"booking-summary",children:[!nn&&Ln(),(0,l.Y)($e,{selectedPayment:w,isLoading:A,errorMessage:N,methodVouchers:mn,hideDescriptionMethods:[x.JZw.COD],allowPaymentMethods:F,reservationBooking:O,handleChangePaymentMethod:function(n){J(n)},handleClickConfirmBooking:function(){q()}})]})]})})},et=t(13493),tt=function(n){var e=n.bookingCustomerInfor,t=n.customerAddress,d=n.patientInfo,u=n.errorMessage,p=n.serviceInfo,f=n.selectedPayment,h=n.isLoading,w=n.allowPaymentMethods,A=n.ignoreAddressBooking,C=void 0!==A&&A,k=n.reservationBooking,Y=void 0!==k&&k,D=n.isHealthcarePackage,E=n.voucherInfor,F=n.setBookingCustomerInfor,N=n.handleChangeAddress,B=n.handleClickConfirmButton,z=n.onChangePaymentMethod,O=n.setErrorMessage,S=n.setIsLoading,T=n.setVoucherInfor,L=(0,s.useContext)(M.B).state,j=(0,b.d)().isMobile,H=(0,m.useAppContext)().pushNotifications,R=(0,y.A)().formatMessage,_=(0,I.useRouter)(),Q=_.locale,U=_.query.utm_content,V=void 0===U?"":U,G=x.EmC[Q].id,W=(0,s.useState)(""),J=W[0],q=W[1],X=(0,s.useState)(!1),K=X[0],Z=X[1],$=(0,s.useState)(!1),nn=$[0],en=$[1],tn=(0,s.useState)(!1),on=tn[0],rn=tn[1],an=(0,s.useState)([x.JZw.VNPAY]),cn=an[0],ln=an[1],sn=x.KVY?x.czo:x.o8Z,dn=(0,s.useMemo)((function(){if(!(null===p||void 0===p?void 0:p.price))return"";if(E){if("Percent"===E.reward){var n=(null===E||void 0===E?void 0:E.reward_percent)||0;return Math.round(Number(null===p||void 0===p?void 0:p.price)*((100-n)/100))}return"Amount"===E.reward&&Number(null===p||void 0===p?void 0:p.price)>Number(E.reward_amount)?Number(null===p||void 0===p?void 0:p.price)-Number(E.reward_amount):0}return Number((null===p||void 0===p?void 0:p.price)||0)}),[p,E]),un=(0,s.useMemo)((function(){if(!E||!(null===p||void 0===p?void 0:p.price))return[];var n=(null===E||void 0===E?void 0:E.reward_percent)||0;return"Percent"===E.reward?[{amount:Math.round(Number(null===p||void 0===p?void 0:p.price)*(n/100)),name:E.campaign[0]?E.campaign[0].name:""}]:"Amount"===E.reward?[{amount:Number((null===E||void 0===E?void 0:E.reward_amount)||0),name:E.campaign[0]?E.campaign[0].name:""}]:[]}),[E,null===p||void 0===p?void 0:p.price]),pn=(0,s.useMemo)((function(){return(null===p||void 0===p?void 0:p.originalPrice)?null===p||void 0===p?void 0:p.originalPrice:(null===p||void 0===p?void 0:p.price)||""}),[p]),fn=(0,s.useMemo)((function(){return!!(null===p||void 0===p?void 0:p.client)&&((null===p||void 0===p?void 0:p.client.name)===x.u3o.ROCHE&&D)}),[p,D]),hn=(0,s.useMemo)((function(){return!(null===L||void 0===L?void 0:L.isLoggedIn)&&fn}),[fn,L.isLoggedIn]),gn=(0,s.useMemo)((function(){return(null===L||void 0===L?void 0:L.isLoggedIn)&&fn}),[fn,D]),vn=function(){Z(!1),q(""),T(null),en(!1);var n=(0,r.A)((0,o.A)({},u),{voucher:""});O(n)},mn=function(){var n=(0,i.A)((function(){var n,e;return(0,c.__generator)(this,(function(t){return n=function(){var n={voucher:J?"":R({id:"error.voucherIsRequired",defaultMessage:"Voucher is required"})};return{errors:n,isValidForm:Object.values(n).every((function(n){return""===n}))}}(),e=n.errors,n.isValidForm?(O({}),en(!0),wn(),[2]):(O(e),[2])}))}));return function(){return n.apply(this,arguments)}}(),bn=function(){var n,e,t,i;return(0,l.Y)(Xn,{logo:(null===p||void 0===p?void 0:p.logoService)||"",name:(null===p||void 0===p?void 0:p.name)||"",subName:(null===p||void 0===p||null===(n=p.hospitalBranch)||void 0===n?void 0:n.name)||"",address:(null===p||void 0===p||null===(e=p.hospitalBranch)||void 0===e?void 0:e.address)||"",latitude:(null===p||void 0===p||null===(t=p.hospitalBranch)||void 0===t?void 0:t.latitude)||"",longitude:(null===p||void 0===p||null===(i=p.hospitalBranch)||void 0===i?void 0:i.longitude)||"",price:null===p||void 0===p?void 0:p.price,originalPrice:null===p||void 0===p?void 0:p.originalPrice,oldPrice:pn||"",newPrice:dn||"",discounts:un,isValidVoucher:K,isApplyVoucher:nn,errors:u,voucherCode:J,reservationBooking:Y,voucherInfor:E,setVoucherCode:q,handleRemoveVoucher:vn,onApplyVoucher:mn})},wn=function(){var n=(0,i.A)((function(n){var e,t,i,a,l;return(0,c.__generator)(this,(function(c){switch(c.label){case 0:return(e=new FormData).append("phone",""),e.append("hospital_service",String(null===p||void 0===p?void 0:p.id)),e.append("code",n||J),[4,(0,v.px)((0,v.er)(g.R.POST_VERIFY_ROCHE_VOCHER),"POST",{data:e})];case 1:return(t=c.sent())?(t&&1===t._status?(Z(!0),a=(0,r.A)((0,o.A)({},u),{voucher:""}),O(a),T&&T(t._data.coupon)):(Z(!1),l=(0,r.A)((0,o.A)({},u),{phone:"",voucher:null===t||void 0===t?void 0:t._messages[0]}),O(l)),[2]):(Z(!1),i=(0,r.A)((0,o.A)({},u),{phone:"",voucher:R({id:"doctor.detail.valid.voucher.message",defaultMessage:"Voucher is invalid. Please try another one"})}),O(i),[2])}}))}));return function(e){return n.apply(this,arguments)}}(),An=function(){var n=(0,i.A)((function(){var n;return(0,c.__generator)(this,(function(e){switch(e.label){case 0:return rn(!0),[4,(0,v.px)((0,v.er)(g.R.GET_VERIFY_ROCHE_MOMO_VOUCHER),"GET")];case 1:return(n=e.sent())&&1===n._status&&ln((function(n){return[x.T8A.MOMO100K].concat((0,a.A)(n))})),[2]}}))}));return function(){return n.apply(this,arguments)}}(),xn=function(){var n=(0,i.A)((function(){var n,i,a,l,s,d,u,h,m,b,w,A,y,M,k,Y,I,D,E,F,N,P,z,T;return(0,c.__generator)(this,(function(c){switch(c.label){case 0:return n=function(){var n={email:e.email?(0,v.tf)("email",e.email):"",phone:hn?(0,v.Tm)(String(e.phoneNumber),Q):"",city:C?"":(0,v.tf)("city",null===t||void 0===t?void 0:t.city),district:C?"":(0,v.tf)("district",null===t||void 0===t?void 0:t.district),address:C?"":(0,v.tf)("address",null===t||void 0===t?void 0:t.address),paymentMethod:f?"":"isRequired.payment"};return{errors:n,isValidForm:Object.values(n).every((function(n){return""===n}))}}(),i=n.errors,n.isValidForm?K&&J?(s=hn?e.phoneNumber:"".concat(null===L||void 0===L||null===(a=L.userInfo)||void 0===a?void 0:a.area_code).concat(null===L||void 0===L||null===(l=L.userInfo)||void 0===l?void 0:l.phone),(d=new FormData).append("phone",s),d.append("hospital_service",String(null===p||void 0===p?void 0:p.id)),d.append("code",J),[4,(0,v.px)((0,v.er)(g.R.POST_VERIFY_ROCHE_VOCHER),"POST",{data:d})]):[3,2]:(O((function(n){return(0,o.A)({},n,i)})),[2]);case 1:if((u=c.sent())&&-1===u._status)return O((function(n){return(0,r.A)((0,o.A)({},n),{voucher:(null===u||void 0===u?void 0:u._messages)?null===u||void 0===u?void 0:u._messages[0]:R({id:"doctor.detail.valid.voucher.message",defaultMessage:"Voucher is invalid. Please try another one"})})})),[2];c.label=2;case 2:return O({}),gn?(B(K?{voucherCode:J}:{}),[3,5]):[3,3];case 3:return S(!0),h=e.phoneNumber.replace(x.ExA[Q],"0"),(m=new FormData).append("name",e.fullName),m.append("email",e.email),m.append("phone",String(h)),m.append("country_id",String(G)),m.append("city_id",(null===t||void 0===t?void 0:t.city)?String(t.city):""),m.append("district_id",(null===t||void 0===t?void 0:t.district)?String(t.district):""),m.append("address",(null===t||void 0===t?void 0:t.address)?null===t||void 0===t?void 0:t.address:""),[4,(0,v.px)((0,v.er)(g.R.POST_ROCHE_PATIENT),"POST",{headers:{accept:"application/json, text/plain, version=2.0.0"},data:m})];case 4:(b=c.sent())&&1===b._status?(z={hospital_service_id:(null===p||void 0===p?void 0:p.id)||"",booking_type:"service",coupon:K?J:"",paymentMethod:f,client:(null===p||void 0===p||null===(w=p.client)||void 0===w?void 0:w.name)||"",package:(null===p||void 0===p?void 0:p.package)||!1},T=(0,r.A)((0,o.A)({},null===(A=b._data)||void 0===A?void 0:A.patient),{address:(null===b||void 0===b||null===(y=b._data)||void 0===y||null===(M=y.shipping)||void 0===M?void 0:M.address)||"",city_id:(null===b||void 0===b||null===(k=b._data)||void 0===k||null===(Y=k.shipping)||void 0===Y?void 0:Y.city_id)||"",district_id:(null===b||void 0===b||null===(I=b._data)||void 0===I||null===(D=I.shipping)||void 0===D?void 0:D.district_id)||"",shipping_id:(null===b||void 0===b||null===(E=b._data)||void 0===E||null===(F=E.shipping)||void 0===F?void 0:F.id)||""}),sessionStorage.setItem(x.RI6,JSON.stringify(T)),sessionStorage.setItem(x.DOc,JSON.stringify(z)),_.push("/booking/verify-otp/?patientId=".concat(null===(N=b._data)||void 0===N||null===(P=N.patient)||void 0===P?void 0:P.id))):H({message:(null===b||void 0===b?void 0:b._messages)&&(null===b||void 0===b?void 0:b._messages[0]),type:"danger"}),S(!1),c.label=5;case 5:return[2]}}))}));return function(){return n.apply(this,arguments)}}();return(0,s.useEffect)((function(){V&&(q(V),wn(V))}),[V]),(0,s.useEffect)((function(){!on&&p&&(Number(p.price)>=x.pvq&&ln((function(n){return(0,a.A)(n).concat([x.T8A.MOMO300K])})),An())}),[on,p]),(0,l.Y)(P.AH,{className:"roche-booking-container",children:(0,l.FD)(P.Ti,{children:[j&&bn(),(0,l.Y)("div",{className:"patient-info",children:(0,l.Y)(et.A,{bookingCustomerInfor:e,errorMessage:u,customerAddress:t,ignoreAddressBooking:C,patientInfo:d,addressDirection:"vertical",setBookingCustomerInfor:F,handleChangeAddress:N})}),(0,l.FD)("div",{className:"booking-summary",children:[!j&&bn(),(0,l.Y)($e,{selectedPayment:f,isLoading:h,errorMessage:u,allowPaymentMethods:w,methodVouchers:cn,reservationBooking:Y,disablePaymentBtn:sn.includes(Number((null===p||void 0===p?void 0:p.id)||0)),handleChangePaymentMethod:function(n){z(n)},handleClickConfirmBooking:xn})]})]})})},it=t(45844),ot=t(72235),rt=t(76013);function at(){return at=Object.assign?Object.assign.bind():function(n){for(var e=1;e0){var n=setTimeout((function(){return Sn((function(n){return n-1}))}),1e3);return function(){return clearTimeout(n)}}0===On&&z()}}),[En,On]);var we=function(){var n=(0,i.A)((function(){var n,e;return(0,c.__generator)(this,(function(t){switch(t.label){case 0:return[4,(0,v.T7)((0,v.er)(g.R.GET_PROFILE),"GET")];case 1:return 1!==(null===(n=t.sent())||void 0===n?void 0:n._status)&&T({type:C.Q.PUSH_NOTIFICATION,payload:{type:"danger",message:(null===n||void 0===n||null===(e=n._messages)||void 0===e?void 0:e[0])||""}}),[2,(0,it.W)(j)]}}))}));return function(){return n.apply(this,arguments)}}(),Ae=function(){var n=(0,i.A)((function(n,e){var t,i,o,r,a,l;return(0,c.__generator)(this,(function(c){switch(c.label){case 0:return un||B?(delete mn.reason,bn(mn),gn(!0),t=window.location.origin,i=(i="".concat(x.JpE).concat(R.replace(W,""))).replace(J,""),_.bookingId?((o=new URLSearchParams(i)).set("bookingId",n),i=decodeURIComponent(null===o||void 0===o?void 0:o.toString())):i+="&bookingId=".concat(n),r=encodeURIComponent(t+i),a="",a=$n===x.JZw.ATM_MOMO||$n===x.JZw.MOMO||$n===x.JZw.VISA_MOMO?$n:"",[4,(0,v.T7)((0,v.er)(g.R.GET_BOOKING_PAYMENT_PAGE,{bookingId:n,returnUrl:"id-ID"!==Q?r:"",payment_type:a,provider:e||""}),"POST")]):(bn({reason:L({id:"booking.validate.reasonRequired",defaultMessage:"Please input the reason for your visit."})}),[2]);case 1:return(l=c.sent())?(1===l._status?(gn(!1),"id-ID"===Q?(xn(l._data.url),window.scrollTo({top:0,left:0,behavior:"smooth"})):H.push(l._data.url)):(P(l._messages),gn(!1)),[2]):(P(),gn(!1),[2])}}))}));return function(e,t){return n.apply(this,arguments)}}(),xe=Rn===x.mCf.USER?Z:null===en||void 0===en?void 0:en[Un],ye=function(){var n=(0,i.A)((function(n){var e,t,i,a,l,s,d,u,p,f,m,b,w,A,y,C,M,D,E,z,O,S,T,j,R,_,Q;return(0,c.__generator)(this,(function(c){switch(c.label){case 0:return i=Ce(),a=i.errors,i.isValidForm?(bn({}),gn(!0),l=rn?"existing":ln,!fe||me?[3,2]:((d=new FormData).append("country_id",String(U)),d.append("city_id",(null===re||void 0===re?void 0:re.city)?String(re.city):""),d.append("district_id",(null===re||void 0===re?void 0:re.district)?String(re.district):""),d.append("address",(null===re||void 0===re?void 0:re.address)?null===re||void 0===re?void 0:re.address:""),[4,(0,v.T7)((0,v.er)(g.R.POST_SHPPING_BOOKING),"POST",{data:d})])):(bn(a),[2]);case 1:if(1!==(null===(s=c.sent())||void 0===s?void 0:s._status))return X({message:(null===s||void 0===s?void 0:s._messages[0])||L({id:"error.anErrorOccurred",defaultMessage:"An error occurred!"}),type:"danger"}),gn(!1),[2];c.label=2;case 2:return u=I?(0,h.Y)(I,k,Z,null===en||void 0===en?void 0:en[Un],Rn,F,l,un):(0,h.JZ)(Y,k,Z,null===en||void 0===en?void 0:en[Un],Rn,l,un,B),p={},f="",m="",ue&&(null===n||void 0===n?void 0:n.voucherCode)?p={coupon:n.voucherCode}:Wn&&(p={coupon:Wn.code}),ve&&(p={coupon:"TANGANIL"}),$n===x.JZw.ATM_MOMO||$n===x.JZw.MOMO||$n===x.JZw.VISA_MOMO?(f=x.Pcg.MOMO,m=$n):f=$n||"",[4,(0,v.T7)((0,v.er)(g.R.POST_CREATE_BOOKING),"POST",{data:(0,r.A)((0,o.A)({},u,p),{payment_via:f,payment_type:m,zalo_whatsapp:Bn.phone,nik_address:Bn.address,shipping_id:(null===s||void 0===s||null===(e=s._data)||void 0===e||null===(t=e.shipping)||void 0===t?void 0:t.id)||"",is_roche:ue?1:0,source:N?2:mt}),headers:{Accept:"application/json, text/plain, version=2.0.0"}})];case 3:return(b=c.sent())?(1===b._status?(null===(w=b._data)||void 0===w||null===(A=w.booking)||void 0===A?void 0:A.payment_via)===x.JZw.COD||(null===(y=b._data)||void 0===y||null===(C=y.booking)||void 0===C?void 0:C.payment_via)===x.JZw.VNPAY&&!Number(null===(M=b._data)||void 0===M||null===(D=M.booking)||void 0===D?void 0:D.price)?N?H.push("/widget/success/".concat(N.slug,"-").concat(N.id,"?bookingId=").concat(null===(E=b._data)||void 0===E||null===(z=E.booking)||void 0===z?void 0:z.id)):H.push("/booking/success?bookingId=".concat(null===(O=b._data)||void 0===O||null===(S=O.booking)||void 0===S?void 0:S.id)):Ae(null===(T=b._data)||void 0===T||null===(j=T.booking)||void 0===j?void 0:j.id,null===(R=b._data)||void 0===R||null===(_=R.booking)||void 0===_?void 0:_.payment_via):(gn(!1),I&&I.isSiloam?(Q="",Array.isArray(b._messages)&&(Q=b._messages[0]),se({error_booking:Q})):P(b._messages)),[2]):(P(),gn(!1),[2])}}))}));return function(e){return n.apply(this,arguments)}}(),Ce=function(){var n={reason:un||B?"":L({id:"booking.validate.reasonRequired",defaultMessage:"Please input the reason for your visit."}),paymentMethod:$n?"":"isRequired.payment"};return{errors:n,isValidForm:Object.values(n).every((function(n){return""===n}))}},Me=function(){var n=(0,i.A)((function(n){return(0,c.__generator)(this,(function(e){return ye(n),[2]}))}));return function(e){return n.apply(this,arguments)}}(),ke=function(){var n=(0,i.A)((function(){var n,e;return(0,c.__generator)(this,(function(t){switch(t.label){case 0:return In(!0),[4,(0,v.px)((0,v.er)(g.R.GET_PAYMENT_METHOD,{doctor_id:(null===I||void 0===I?void 0:I.id)||"",service_id:(null===Y||void 0===Y?void 0:Y.id)||"",schedule_id:(null===k||void 0===k?void 0:k.id)||"",is_telemedicine:F?1:0}),"GET")];case 1:return(n=t.sent())&&1===n._status&&n._data?Kn((null===n||void 0===n||null===(e=n._data)||void 0===e?void 0:e.payment_methods)||[]):X({message:(null===n||void 0===n?void 0:n._messages[0])?null===n||void 0===n?void 0:n._messages[0]:L({id:"error.anErrorOccurred",defaultMessage:"An error occurred!"}),type:"danger"}),[2]}}))}));return function(){return n.apply(this,arguments)}}(),Ye=function(n){ne(n)};return(0,s.useEffect)((function(){gn(E)}),[E]),(0,s.useEffect)((function(){q&&!Yn&&ke()}),[Y,k,Yn,q]),(0,s.useEffect)((function(){var n=function(){var n=(0,i.A)((function(){var n;return(0,c.__generator)(this,(function(e){switch(e.label){case 0:return[4,we()];case 1:return(n=e.sent())?($(n.patientInfo),tn(n.familyInfo),[2]):[2]}}))}));return function(){return n.apply(this,arguments)}}(),e=function(){var n=(0,i.A)((function(){var n,e,t,i,o;return(0,c.__generator)(this,(function(r){switch(r.label){case 0:return i=(0,v.er)(g.R.GET_USER_BOOKING_INFO,{status:x.Ae.DONE,hospitalId:(null===I||void 0===I||null===(n=I.hospital)||void 0===n?void 0:n.id)||""}),i+=Rn===x.mCf.FAMILY?"&patient_contact_id=".concat(null===xe||void 0===xe?void 0:xe.id):"&check_master_booked=1",[4,(0,v.T7)(i,"GET",{headers:{accept:"application/json, text/plain, version=2.0.0"}})];case 1:return o=r.sent(),an((null===o||void 0===o||null===(e=o._data)||void 0===e||null===(t=e.pagination)||void 0===t?void 0:t.total_items)>0),[2]}}))}));return function(){return n.apply(this,arguments)}}();S.isLoggedIn&&(n(),e())}),[Rn,Un,S.isLoggedIn]),(0,s.useEffect)((function(){if(An&&de){var n=function(){var n=(0,i.A)((function(){var n,e,t,i,o,r,a;return(0,c.__generator)(this,(function(c){switch(c.label){case 0:return[4,(0,v.T7)((0,v.er)(g.R.GET_SCHEDULE_BOOKINGS,{scheduleId:de}),"GET")];case 1:if(!(n=c.sent()))return P(),xn(""),[2];if(1===n._status){if((null===(e=n._data)||void 0===e||null===(t=e.booking)||void 0===t?void 0:t.status)===x.Ae.PAYMENT_PENDING)return[2];(null===(i=n._data)||void 0===i||null===(o=i.booking)||void 0===o?void 0:o.status)===x.Ae.UPCOMING?Fn(null===n||void 0===n||null===(r=n._data)||void 0===r||null===(a=r.booking)||void 0===a?void 0:a.id):P(n._messages)}else P(n._messages),xn("");return[2]}}))}));return function(){return n.apply(this,arguments)}}(),e=setInterval(n,2e3);return function(){return clearInterval(e)}}}),[de,An]),(0,s.useEffect)((function(){var n,e;null===(n=document.getElementsByClassName("errorLabel"))||void 0===n||null===(e=n[0])||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})}),[mn]),(0,s.useEffect)((function(){(0,i.A)((function(){var n,e,t,i,o,r;return(0,c.__generator)(this,(function(a){switch(a.label){case 0:return pe&&_.patientCacheId&&Yn?(n=sessionStorage.getItem(x.RI6),e=sessionStorage.getItem(x.DOc),n&&(t=JSON.parse(n),String(null===t||void 0===t?void 0:t.id)===_.patientCacheId&&(ie({fullName:(null===t||void 0===t?void 0:t.name)||"",email:(null===t||void 0===t?void 0:t.email)||"",phoneNumber:(null===t||void 0===t||null===(i=t.phone)||void 0===i?void 0:i.replace(/^[0]/,x.pTf[Q].prefix))||""}),ae({city:(null===t||void 0===t?void 0:t.city_id)||"",district:(null===t||void 0===t?void 0:t.district_id)||"",address:(null===t||void 0===t?void 0:t.address)||""}))),e?((null===(o=JSON.parse(e))||void 0===o?void 0:o.paymentMethod)&&ne(null===o||void 0===o?void 0:o.paymentMethod),o.coupon?[4,(0,v.px)((0,v.er)(g.R.GET_VERIFY_SERVICE_COUPON,{serviceId:(null===Y||void 0===Y?void 0:Y.id)||"",code:o.coupon}),"GET")]:[3,2]):[3,2]):[2];case 1:(r=a.sent())&&1===r._status&&Jn(r._data.coupon),a.label=2;case 2:return[2]}}))}))()}),[_.patientCacheId,pe,Yn,Xn]),(0,s.useEffect)((function(){1===be.length&&ne(be[0])}),[be]),(0,s.useEffect)((function(){ve&&ne(x.JZw.COD)}),[ve]),(0,l.FD)(l.FK,{children:[!N&&(0,l.Y)("div",{children:D}),An?(0,l.FD)(ot.Yl,{buttonVisible:-1!==En,children:[Cn&&(0,l.Y)(d.L,{className:"loading"}),(0,l.Y)("iframe",{width:"100%",height:"100%",id:"payment-iframe",src:An,title:"OY! Indonesia Payment Link",onLoad:function(){return Mn(!1)}}),-1!==En&&(0,l.FD)(ot.Lw,{children:[(0,l.Y)(u.T,{size:"xs",children:L({id:"payment.redirection",defaultMessage:"Redirection in {seconds} seconds"},{seconds:On})}),(0,l.Y)(p.B,{size:"lg",color:"primary",onClick:z,children:L({id:"payment.viewBookingInfo",defaultMessage:"View booking information"})})]})]}):(0,l.Y)(ot.fZ,{children:(0,l.FD)(f.C,{children:[(0,l.Y)(ot.cd,{children:Ln&&(0,l.FD)(ot.HR,{children:[(0,l.Y)(ft,{}),(0,l.Y)(u.T,{size:"p4",children:L({id:"booking.confirmation.alert",defaultMessage:"Please verify your information and confirm your booking."})}),(0,l.Y)(p.B,{color:"ghost",size:"md",icon:(0,l.Y)(ht.A,{width:16,height:16}),onClick:function(){return jn(!1)}})]})}),ue?(0,l.Y)(tt,{errorMessage:mn,customerAddress:re,patientInfo:Z,bookingCustomerInfor:te,serviceInfo:Y,paymentMethods:Xn,allowPaymentMethods:be,selectedPayment:$n,isLoading:hn,ignoreAddressBooking:me,isHealthcarePackage:q,voucherInfor:Wn,reservationBooking:ge,setBookingCustomerInfor:ie,handleChangeAddress:ae,handleClickConfirmButton:Me,onChangePaymentMethod:Ye,setIsLoading:gn,setErrorMessage:bn,setVoucherInfor:Jn}):(0,l.FD)(l.FK,{children:[(0,l.Y)(nt,{setTypePatient:sn,typePatient:ln,reason:un,isLoading:hn,bookingPatientInfo:Bn,setBookingPatientInfo:Pn,handleCheckSameProfile:function(n){if(n)Pn((function(e){return(0,r.A)((0,o.A)({},e),{isSameProfile:!n})}));else{var e=Z;"family"===Rn&&en&&en.length>0&&en.length>Un&&(e=en[Un]),Pn((function(t){return(0,r.A)((0,o.A)({},t),{phone:(null===e||void 0===e?void 0:e.phone)||(null===Z||void 0===Z?void 0:Z.phone)||"",isSameProfile:!n})}))}},patientInfo:Z,familyInfo:en,serviceInfo:Y,doctorInfo:I,chosenSubPatientIndex:Un,bookingPatientFor:Rn,isTelemedicine:F,ignoreVoucher:he,allowPaymentMethods:be,selectedPayment:$n,errorMessage:mn,voucherInfor:Wn,slotInfo:k,reservationBooking:ge,isValidTanganil:ve,onChangePaymentMethod:Ye,setBookingPatientFor:_n,setChosenSubPatientIndex:Vn,onAddFamilyProfile:function(n){if(null!==en){var e=(0,a.A)(en).concat([n]);tn(e),Vn(0),window.scrollTo({top:0,behavior:"smooth"})}},onEditFamilyProfile:function(n){if(en){var e=(0,a.A)(en),t=e.find((function(e){return e.id===n.id}));if(!t)return;var i=e.indexOf(t);e[i]=n,tn(e)}},onDeleteFamilyProfile:function(n){if(en){var e=(0,a.A)(en),t=e.find((function(e){return e.id===n}));if(!t)return;var i=e.indexOf(t);e.splice(i,1),tn(e),i===Un&&Vn(0)}},handleClickConfirmButton:Me,setErrorMessage:bn,setReason:pn,setVoucherInfor:Jn}),V&&G]}),(0,l.Y)(rt.rI,{isMobile:!1,isShowing:!!(null===le||void 0===le?void 0:le.error_booking),isLoading:!1,closeIcon:(0,l.Y)("div",{onClick:function(){return se({})},children:(0,l.Y)(ht.A,{})}),buttonsProps:{buttonFillWidth:!0,buttonSize:"md",reverseButton:!0},onClose:function(){se({})},onAccept:function(){se({}),H.reload()},onDeny:function(){se({})},title:(0,l.FD)("div",{children:[(0,l.Y)(vt,{}),(0,l.Y)("div",{children:L({id:"error.anErrorSomething",defaultMessage:"There is something wrong..."})})]}),caption:null===le||void 0===le?void 0:le.error_booking,acceptButtonTitle:L({id:"common.reload.title",defaultMessage:"Reload"}),denyButtonTittle:L({id:"admin.organization.successfulPopup.close",defaultMessage:"Close"})})]})})]})}},13493:function(n,e,t){"use strict";t.d(e,{A:function(){return H}});var i=t(53513),o=t(63538),r=t(2445),a=t(73884),c=t(44835),l=t(35291),s=t(80084),d=t(88491),u=t(6442),p=t(36259),f=t(25108),h=t(21171),g=t(84091),v=t(73419),m=t(40959),b=t(58065),w=t(85943),A=t(53868),x=function(){var n=(0,u.A)().formatMessage,e=(0,v.$)(),t=e.locale,i=e.asPath,o=function(){var n=(0,g.sT)("".concat(m.JpE).concat(i),"care_onboarding");m.dXu?h.u.getState().triggerCareEmailPhoneVerify({returnUrl:"".concat(m.JpE).concat(i),source:"care_onboarding"}):window.location.href=n};return(0,r.FD)(w._,{children:[(0,r.Y)(A.A,{}),(0,r.FD)("div",{children:[(0,r.Y)("div",{className:"notification-description notification-description--color",children:n({id:"booking.target.customer.notification.description",defaultMessage:"Customer information is secure and used for service support purposes."})}),(0,r.Y)("div",{className:"notification-description",children:(0,r.Y)(b.A,{id:"booking.target.customer.notification",defaultMessage:"If you already have an account at {domain}, please log in to continue shopping.",tagName:"p",values:{span:function(n){return(0,r.Y)("span",{className:"login-btn",onClick:o,children:n})},domain:m.ElQ[t].SITE_NAME}})})]})]})},y=t(20680),C=t(27112),M=t(24537),k=t(4766),Y=t(27317);function I(){var n=(0,M.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\n .noti-profile-roche {\n background: ",";\n padding: 12px;\n }\n"]);return I=function(){return n},n}function D(){var n=(0,M.A)(["\n display: flex;\n flex-direction: column;\n gap: 12px;\n margin-bottom: 24px;\n\n "," {\n margin-bottom: 16px;\n }\n\n .input-item {\n label {\n font-size: 14px;\n font-weight: 600;\n line-height: 22px;\n color: ",";\n }\n .detail-address-label {\n font-size: 16px;\n line-height: 24px;\n display: block;\n margin-bottom: 8px;\n margin-top: 12px;\n\n "," {\n font-size: 14px;\n line-height: 22px;\n }\n }\n .errorLabel {\n font-weight: 400;\n font-size: 13px;\n margin-top: 5px;\n color: ",";\n }\n input {\n line-height: 24px;\n font-size: 16px;\n }\n\n .phone-input-patient {\n input {\n padding: 11px 16px;\n\n &:hover {\n border-color: ",";\n box-shadow: none;\n }\n &:focus {\n border-color: ",";\n box-shadow: 0px 0px 2px 2px\n ",";\n }\n }\n\n &:focus-within {\n .PhoneInputCountry {\n border-color: ",";\n }\n }\n\n .PhoneInputCountrySelect {\n pointer-events: none;\n }\n\n &.has-error {\n .PhoneInputCountry {\n border-color: ",";\n }\n input {\n border-color: ",";\n }\n }\n }\n\n .input-item-required {\n margin-left: 2px;\n color: ",";\n }\n\n .phone-input-container {\n height: 48px;\n }\n\n .phone-input {\n &.has-error {\n .react-tel-input {\n border: 1px solid ",";\n }\n }\n }\n }\n"]);return D=function(){return n},n}var E=Y.Ay.div.withConfig({componentId:"sc-b6da95c8-0"})(I(),k.M.tdUp,k.M.mbDown,(function(n){return n.theme.colors.neutral50})),F=Y.Ay.div.withConfig({componentId:"sc-b6da95c8-1"})(D(),k.M.mbDown,(function(n){return n.theme.colors.gray600}),k.M.mbDown,(function(n){return n.theme.colors.red700}),(function(n){return n.theme.colors.gray200}),(function(n){return n.theme.colors.blue600}),(function(n){return n.theme.colors.blue50}),(function(n){return n.theme.colors.blue600}),(function(n){return n.theme.colors.red700}),(function(n){return n.theme.colors.red700}),(function(n){return n.theme.colors.red900}),(function(n){return n.theme.colors.red700})),N=t(858),B=t(38971),P=t(83776),z=t(59850);function O(){var n=(0,M.A)(["\n display: flex;\n flex-direction: column;\n gap: 12px;\n\n .error-message {\n font-weight: 400;\n font-size: 13px;\n margin-top: 5px;\n color: ",";\n }\n\n .mantine-Input-input {\n padding: 12px 16px;\n &::placeholder {\n color: ",";\n }\n &[data-invalid] {\n color: ",";\n }\n }\n"]);return O=function(){return n},n}function S(){var n=(0,M.A)(["\n display: flex;\n gap: 16px;\n\n "," {\n flex-direction: column;\n gap: 12px;\n }\n\n .address-select-field {\n flex: 1;\n }\n\n &.vertical-group-field {\n flex-direction: column;\n gap: 12px;\n }\n"]);return S=function(){return n},n}var T=Y.Ay.div.withConfig({componentId:"sc-a8e2b139-0"})(O(),(function(n){return n.theme.colors.red700}),(function(n){return n.theme.colors.gray400}),(function(n){return n.theme.colors.gray800})),L=Y.Ay.div.withConfig({componentId:"sc-a8e2b139-1"})(S(),k.M.mbDown),j=function(n){var e=n.settingValues,t=n.size,c=n.direction,l=n.errorMessage,d=n.onChangeAddress,p=(0,u.A)().formatMessage,f=(0,a.useState)([]),h=f[0],v=f[1],m=(0,a.useState)([]),b=m[0],w=m[1],A=function(n,t){var r={};"city"===n&&(r.district=null,r.address=""),"district"===n&&(r.address="");var a=(0,o.A)((0,i.A)({},e,r),(0,B.A)({},n,t));d&&d(a)},x=function(){var n=(0,N.A)((function(){var n,e,t,i;return(0,P.__generator)(this,(function(o){switch(o.label){case 0:return[4,(0,g.px)((0,g.er)(z.R.GET_CITIES_LIST,{nopaging:1}),"GET")];case 1:return(null===(e=o.sent())||void 0===e?void 0:e._data)&&(null===e||void 0===e||null===(n=e._data)||void 0===n?void 0:n.cities)&&(i=null===e||void 0===e||null===(t=e._data)||void 0===t?void 0:t.cities.map((function(n){return{label:n.name,value:n.id}})),v(i)),[2]}}))}));return function(){return n.apply(this,arguments)}}(),y=(0,a.useCallback)((0,N.A)((function(){var n,t,i,o;return(0,P.__generator)(this,(function(r){switch(r.label){case 0:return(null===e||void 0===e?void 0:e.city)?[4,(0,g.px)((0,g.er)(z.R.GET_CITY_DISTRICTS,{cityId:null===e||void 0===e?void 0:e.city}),"GET")]:[2];case 1:return(null===(t=r.sent())||void 0===t?void 0:t._data)&&(null===t||void 0===t||null===(n=t._data)||void 0===n?void 0:n.districts)&&(o=null===t||void 0===t||null===(i=t._data)||void 0===i?void 0:i.districts.map((function(n){return{label:n.name,value:n.id}})),w(o)),[2]}}))})),[null===e||void 0===e?void 0:e.city]);return(0,a.useEffect)((function(){(null===e||void 0===e?void 0:e.city)&&y()}),[null===e||void 0===e?void 0:e.city]),(0,a.useEffect)((function(){x()}),[]),(0,r.FD)(T,{children:[(0,r.FD)(L,{className:"".concat(c,"-group-field"),children:[(0,r.Y)(s.S,{placeholder:p({id:"common.city.label",defaultMessage:"Province/City"}),label:p({id:"common.city.label",defaultMessage:"Province/City"}),data:h,size:t,className:"address-select-field",searchable:!0,onChange:function(n){return A("city",n)},value:null===e||void 0===e?void 0:e.city,error:(null===l||void 0===l?void 0:l.city)?(0,r.Y)("div",{className:"error-message",children:p({id:null===l||void 0===l?void 0:l.city,defaultMessage:"City is required"})}):""}),(0,r.Y)(s.S,{placeholder:p({id:"common.district.label",defaultMessage:"District"}),label:p({id:"common.district.label",defaultMessage:"District"}),data:b,className:"address-select-field",size:t,searchable:!0,onChange:function(n){return A("district",n)},value:null===e||void 0===e?void 0:e.district,error:(null===l||void 0===l?void 0:l.district)?(0,r.Y)("div",{className:"error-message",children:p({id:null===l||void 0===l?void 0:l.district,defaultMessage:"District is required"})}):""})]}),(0,r.Y)(s.I,{placeholder:p({id:"common.detail.address.placeholder",defaultMessage:"S\u1ed1 nh\xe0, t\xean \u0111\u01b0\u1eddng, ph\u01b0\u1eddng x\xe3"}),label:p({id:"common.detail.address.label",defaultMessage:"Detail address"}),size:t,onChange:function(n){return A("address",n)},value:null===e||void 0===e?void 0:e.address,error:(null===l||void 0===l?void 0:l.address)?(0,r.Y)("div",{className:"error-message",children:p({id:null===l||void 0===l?void 0:l.address,defaultMessage:"Address is required"})}):""})]})},H=function(n){var e=n.errorMessage,t=n.bookingCustomerInfor,h=n.customerAddress,g=void 0===h?{city:null,district:null,address:""}:h,v=n.ignoreAddressBooking,m=void 0!==v&&v,b=n.patientInfo,w=n.addressDirection,A=n.showNotiBlock,M=void 0===A||A,k=n.handleChangeAddress,Y=void 0===k?function(){return null}:k,I=n.setBookingCustomerInfor,D=(0,a.useContext)(p.B).state,N=(0,d.d)().isMobile,B=(0,u.A)().formatMessage,P=D.isLoggedIn;return(0,r.Y)(f.tJ,{children:(0,r.FD)(E,{children:[(0,r.Y)("div",{className:"heading",children:(0,r.Y)(c.H,{tag:"h6",color:l.w.colors.secondaryBase,className:"heading-title",children:B({id:"booking.target.customer.title",defaultMessage:"Customer info"})})}),(0,r.FD)(F,{children:[P&&(null===b||void 0===b?void 0:b.phone)&&(null===b||void 0===b?void 0:b.name)&&(null===b||void 0===b?void 0:b.email)?(0,r.FD)("div",{children:[(0,r.Y)(C.A,{patientInfo:b}),N&&(0,r.Y)(y.A,{className:"noti-profile-roche"})]}):(0,r.FD)(r.FK,{children:[(0,r.Y)(s.I,{placeholder:B({id:"booking.target.customer.fullName.placeholder",defaultMessage:"Enter your full name"}),name:"fullname",label:B({id:"booking.target.customer.fullName",defaultMessage:"Your full name"}),size:"lg",value:t.fullName,className:"input-item",onChange:function(n){I((0,o.A)((0,i.A)({},t),{fullName:n}))},required:!0,style:{minHeight:"auto",width:"auto"},error:(null===e||void 0===e?void 0:e.fullName)?(0,r.Y)("div",{className:"errorLabel",children:(0,r.Y)("p",{className:"errorMessage",children:B({id:null===e||void 0===e?void 0:e.fullName,defaultMessage:"This field is required"})})}):""}),(0,r.Y)(s.I,{placeholder:B({id:"booking.target.customer.email.placeholder",defaultMessage:"Enter your email"}),name:"email",label:B({id:"booking.target.customer.email",defaultMessage:"Email"}),size:"lg",value:t.email,className:"input-item",onChange:function(n){I((0,o.A)((0,i.A)({},t),{email:n}))},required:!0,style:{minHeight:"auto",width:"auto"},error:(null===e||void 0===e?void 0:e.email)?(0,r.Y)("div",{className:"errorLabel",children:(0,r.Y)("p",{className:"errorMessage",children:B({id:null===e||void 0===e?void 0:e.email,defaultMessage:"Email is required"})})}):""}),(0,r.FD)("div",{className:"input-item",children:[(0,r.FD)("label",{children:[B({id:"booking.target.customer.phoneNumber",defaultMessage:"Phone number"}),(0,r.Y)("span",{className:"input-item-required",children:"*"})]}),(0,r.Y)(s.P,{spellCheck:!1,className:"phone-input-patient ".concat((null===e||void 0===e?void 0:e.phone)?"has-error":""),type:"tel",value:t.phoneNumber,countryCallingCodeEditable:!0,countries:["VN"],placeholder:B({id:"booking.target.customer.phoneNumber",defaultMessage:"Phone number"}),id:"phone-input-patient",maxLength:16,onChange:function(n){I((0,o.A)((0,i.A)({},t),{phoneNumber:n}))},defaultCountry:"VN","data-control":"tel"}),(null===e||void 0===e?void 0:e.phone)&&(0,r.Y)("div",{className:"errorLabel",children:(0,r.Y)("p",{className:"errorMessage",children:B({id:null===e||void 0===e?void 0:e.phone,defaultMessage:"Phone is required"})})})]})]}),m?null:(0,r.FD)("div",{className:"input-item",children:[(0,r.Y)("label",{className:"detail-address-label",children:B({id:"common.address.shipping",defaultMessage:"Order address"})}),(0,r.Y)(j,{size:"lg",onChangeAddress:Y,settingValues:g,errorMessage:e,direction:w})]})]}),!P&&M&&(0,r.Y)(x,{}),P&&!N&&(0,r.Y)(y.A,{className:"noti-profile-roche"})]})})}},25108:function(n,e,t){"use strict";t.d(e,{AH:function(){return s},Ti:function(){return d},tJ:function(){return u}});var i=t(24537),o=t(4766),r=t(27317);function a(){var n=(0,i.A)(["\n &.roche-booking-container {\n .two-columns {\n "," {\n display: flex;\n flex-direction: column;\n gap: 24px;\n\n .patient-info {\n order: 1;\n }\n\n .booking-summary {\n order: 0;\n }\n }\n }\n }\n"]);return a=function(){return n},n}function c(){var n=(0,i.A)(["\n "," {\n display: flex;\n position: relative;\n align-items: flex-start;\n gap: 24px;\n\n .patient-info {\n flex: 0 0 370px;\n }\n .booking-summary {\n flex: 1;\n }\n }\n\n "," {\n padding: 0 20px;\n }\n\n "," {\n padding: 0;\n display: flex;\n flex-direction: column;\n gap: 24px;\n }\n\n .survey-question {\n margin: 16px 0;\n "," {\n margin: 24px 0;\n }\n }\n\n .booking-summary {\n display: flex;\n flex-direction: column;\n gap: 24px;\n\n .booking-summary--block {\n padding-right: 0;\n }\n }\n"]);return c=function(){return n},n}function l(){var n=(0,i.A)(["\n padding: 24px;\n border-radius: 16px;\n border: 1px solid #f7f9fc;\n display: flex;\n flex-direction: column;\n gap: 16px;\n box-shadow: 0px 0px 1px 0px #0000000a, 0px 0px 2px 0px #0000000f,\n 0px 4px 8px 0px #0000000a;\n\n &.has-error {\n border: 1px solid ",";\n }\n\n "," {\n box-shadow: none;\n padding: 0;\n border: none;\n }\n\n .group-radio-payment-method {\n display: flex;\n gap: 12px;\n flex-direction: column;\n\n &.has-error {\n .payment-option-wrapper {\n border: 1px solid ",";\n }\n }\n }\n\n .heading-title {\n margin-bottom: 0px !important;\n }\n"]);return l=function(){return n},n}var s=r.Ay.div.withConfig({componentId:"sc-3480f0e0-0"})(a(),o.M.tdDown),d=r.Ay.div.withConfig({componentId:"sc-3480f0e0-1"})(c(),o.M.tdUp,o.M.tdDown,o.M.mbDown,o.M.tdUp),u=r.Ay.div.withConfig({componentId:"sc-3480f0e0-2"})(l(),(function(n){return n.theme.colors.red700}),o.M.mbDown,(function(n){return n.theme.colors.red700}))},85943:function(n,e,t){"use strict";t.d(e,{_:function(){return r}});var i=t(24537);function o(){var n=(0,i.A)(["\n display: flex;\n padding: 8px;\n border-radius: 4px;\n background: ",";\n border-radius: 4px;\n gap: 6px;\n\n svg {\n flex: 0 0 16px;\n margin-top: 2px;\n }\n\n .notification-description {\n font-size: 12px;\n font-weight: 400;\n line-height: 18px;\n color: ",";\n\n .login-btn {\n color: ",";\n cursor: pointer;\n }\n }\n\n .notification-description--color {\n color: ",";\n font-weight: 600;\n }\n"]);return o=function(){return n},n}var r=t(27317).Ay.div.withConfig({componentId:"sc-331dd618-0"})(o(),(function(n){return n.theme.colors.neutral50}),(function(n){return n.theme.colors.gray600}),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.gray800}))},20680:function(n,e,t){"use strict";var i=t(2445),o=t(6442),r=t(58065),a=t(85943),c=t(53868);e.A=function(n){var e=n.className,t=(0,o.A)().formatMessage,l=function(){window.location.href="/".concat("https://id.hellobacsi.com/","user/profile")};return(0,i.FD)(a._,{className:e,children:[(0,i.Y)(c.A,{}),(0,i.FD)("div",{children:[(0,i.Y)("div",{className:"notification-description notification-description--color",children:t({id:"booking.target.customer.notification.description",defaultMessage:"Customer information is secure and used for service support purposes."})}),(0,i.Y)("div",{className:"notification-description",children:(0,i.Y)(r.A,{id:"booking.target.patient.condition",defaultMessage:"If your Phone number / Name / Date of birth is not correct, please update it in your User profile; if your email is not correct, please register for a new account. You can place the booking after updating the information.",tagName:"p",values:{span:function(n){return(0,i.Y)("span",{onClick:l,className:"login-btn",children:n})}}})})]})]})}},91877:function(n,e,t){"use strict";t.d(e,{D2:function(){return x},JR:function(){return E},MT:function(){return k},cd:function(){return M},dl:function(){return D},kL:function(){return I},lC:function(){return N},qU:function(){return A},rj:function(){return F},un:function(){return Y},w2:function(){return y},xv:function(){return B},yL:function(){return C}});var i=t(24537),o=t(4766),r=t(27317);function a(){var n=(0,i.A)([""]);return a=function(){return n},n}function c(){var n=(0,i.A)(["\n border-radius: 8px;\n background: ",";\n padding: 12px;\n"]);return c=function(){return n},n}function l(){var n=(0,i.A)(["\n display: flex;\n gap: 12px;\n border-bottom: 1px solid ",";\n padding-bottom: 12px;\n .avatar {\n width: 48px;\n height: 48px;\n\n img {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n object-fit: cover;\n border-radius: 100%;\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: 2px;\n\n .gender-and-dob {\n display: flex;\n gap: 8px;\n align-items: center;\n\n .dot-divider {\n content: '';\n width: 4px;\n height: 4px;\n border-radius: 50%;\n background: ",";\n }\n }\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding-top: 12px;\n\n "," {\n padding-bottom: 12px;\n }\n"]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n display: flex;\n gap: 12px;\n align-items: center;\n\n .email-text {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n"]);return u=function(){return n},n}function p(){var n=(0,i.A)(["\n flex: 0 0 48px;\n display: flex;\n align-items: center;\n justify-content: center;\n\n svg {\n width: 18px;\n height: 18px;\n }\n"]);return p=function(){return n},n}function f(){var n=(0,i.A)(["\n background-color: white;\n padding: 8px;\n border-radius: 8px;\n border: 1px solid ",";\n\n &[data-is-chosen='true'] {\n border-color: ",";\n }\n"]);return f=function(){return n},n}function h(){var n=(0,i.A)(["\n display: flex;\n gap: 8px;\n "," {\n align-items: center;\n }\n\n div[data-type='circle'] {\n height: fit-content;\n & > input[type='radio'] {\n margin: 0;\n }\n }\n"]);return h=function(){return n},n}function g(){var n=(0,i.A)(["\n object-fit: cover;\n width: 48px;\n height: 48px;\n border-radius: 50%;\n cursor: pointer;\n"]);return g=function(){return n},n}function v(){var n=(0,i.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 v=function(){return n},n}function m(){var n=(0,i.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 m=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 w(){var n=(0,i.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 w=function(){return n},n}r.Ay.div.withConfig({componentId:"sc-579dfc5a-0"})(a());var A=r.Ay.div.withConfig({componentId:"sc-579dfc5a-1"})(c(),(function(n){return n.theme.colors.neutral50})),x=r.Ay.div.withConfig({componentId:"sc-579dfc5a-2"})(l(),(function(n){return n.theme.colors.gray100})),y=r.Ay.div.withConfig({componentId:"sc-579dfc5a-3"})(s(),(function(n){return n.theme.colors.gray600})),C=r.Ay.div.withConfig({componentId:"sc-579dfc5a-4"})(d(),o.M.mbDown),M=r.Ay.div.withConfig({componentId:"sc-579dfc5a-5"})(u()),k=r.Ay.div.withConfig({componentId:"sc-579dfc5a-6"})(p()),Y=r.Ay.div.withConfig({componentId:"sc-579dfc5a-7"})(f(),(function(n){return n.theme.colors.neutral50}),(function(n){return n.theme.colors.primaryBase})),I=r.Ay.div.withConfig({componentId:"sc-579dfc5a-8"})(h(),o.M.tdUp),D=r.Ay.img.withConfig({componentId:"sc-579dfc5a-9"})(g()),E=r.Ay.div.withConfig({componentId:"sc-579dfc5a-10"})(v(),(function(n){return n.theme.colors.gray400})),F=r.Ay.div.withConfig({componentId:"sc-579dfc5a-11"})(m(),o.M.mbDown,(function(n){return n.theme.colors.blue50})),N=r.Ay.div.withConfig({componentId:"sc-579dfc5a-12"})(b()),B=r.Ay.div.withConfig({componentId:"sc-579dfc5a-13"})(w(),o.M.mbDown)},27112:function(n,e,t){"use strict";var i=t(2445),o=t(73884),r=t(75423),a=t(35291),c=t(66079),l=t(40959),s=t(10297),d=t(6442),u=t(67722),p=t(91877),f=t(48103),h=t(52412);e.A=function(n){var e=n.patientInfo,t=n.className,g=(0,s.useRouter)().locale,v=void 0===g?"vi-VN":g,m=(0,d.A)().formatMessage,b=(0,u.fC)((null===e||void 0===e?void 0:e.phone)||"",v),w=(0,o.useMemo)((function(){return e?null===e||void 0===e?void 0:e.birthday:""}),[e]),A=(0,o.useMemo)((function(){return e?m({id:l.S91[e.gender]||"gender.other",defaultMessage:"Other"}):""}),[e]);return(0,i.FD)(p.qU,{className:t,children:[(0,i.FD)(p.D2,{children:[(0,i.Y)(r.A,{className:"avatar",type:"rounded",size:"medium",avatarUrl:null===e||void 0===e?void 0:e.avatar,firstLetter:(null===e||void 0===e?void 0:e.name.length)?null===e||void 0===e?void 0:e.name.charAt(0).toUpperCase():"A",backgroundColor:a.w.colors.secondaryBase}),(0,i.FD)(p.w2,{children:[(0,i.Y)(c.T,{size:"s3",type:"semiBold",children:null===e||void 0===e?void 0:e.name}),(0,i.FD)("div",{className:"gender-and-dob",children:[(0,i.Y)(c.T,{color:a.w.colors.gray600,size:"p4",children:A}),(0,i.Y)("div",{className:"dot-divider"}),(0,i.Y)(c.T,{color:a.w.colors.gray600,size:"p4",children:w?w.toLocaleDateString(v):""})]})]})]}),(0,i.FD)(p.yL,{children:[(0,i.FD)(p.cd,{children:[(0,i.Y)(p.MT,{children:(0,i.Y)(h.A,{width:16,height:16})}),(0,i.Y)(c.T,{size:"p4",children:b})]}),(0,i.FD)(p.cd,{children:[(0,i.Y)(p.MT,{children:(0,i.Y)(f.A,{width:16,height:16})}),(0,i.Y)(c.T,{size:"p4",className:"email-text",children:null===e||void 0===e?void 0:e.email})]})]})]})}},77480:function(n,e,t){"use strict";t.d(e,{$p:function(){return k},An:function(){return y},OJ:function(){return I},Uy:function(){return x},ZU:function(){return m},f:function(){return M},iF:function(){return A},ob:function(){return w},ty:function(){return Y},u$:function(){return b},wL:function(){return C}});var i=t(24537),o=t(4766),r=t(27317);function a(){var n=(0,i.A)(["\n padding: 12px;\n border-radius: 8px;\n border: 1px solid ",";\n background-color: ",";\n\n &.payment-option-wrapper-cod {\n cursor: pointer;\n }\n\n &.payment-option-wrapper-active {\n border: 1px solid ",";\n background-color: ",";\n }\n\n "," {\n padding: 8px;\n }\n\n &.payment-option-wrapper-online {\n padding: 12px 0 12px 12px;\n\n "," {\n padding: 8px 0 8px 8px;\n }\n }\n\n .mantine-Radio-label {\n line-height: 22px;\n font-weight: 600;\n font-size: 14px;\n }\n\n .option-extend-info {\n margin-left: 32px;\n margin-top: 6px;\n\n "," {\n margin-left: 0;\n }\n }\n\n ul.option-extend-info--text {\n list-style: initial;\n padding-left: 20px;\n\n li {\n list-style: initial;\n }\n }\n\n .option-extend-info--text {\n font-size: 12px;\n font-weight: 400;\n line-height: 18px;\n color: ",";\n }\n\n .payment-logo {\n width: 48px;\n height: 48px;\n flex: 0 0 48px;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n .payment-title-wrapper {\n display: flex;\n flex-direction: column;\n }\n\n .payment-title {\n font-size: 16px;\n line-height: 24px;\n font-weight: 600;\n align-items: center;\n display: flex;\n flex: 1;\n }\n\n .payment-option-radio {\n flex: 1;\n display: flex;\n align-items: center;\n\n .mantine-Radio-body {\n justify-content: space-between;\n flex: 1;\n\n .mantine-Radio-label {\n font-size: 16px;\n line-height: 24px;\n font-weight: 600;\n\n "," {\n font-size: 14px;\n }\n }\n\n .mantine-Radio-inner {\n align-self: center;\n\n "," {\n align-self: flex-start;\n }\n }\n }\n }\n"]);return a=function(){return n},n}function c(){var n=(0,i.A)(["\n display: flex;\n gap: 10px;\n\n &.payment-header-online {\n padding-right: 12px;\n\n "," {\n padding-right: 8px;\n }\n }\n"]);return c=function(){return n},n}function l(){var n=(0,i.A)(["\n padding-left: 58px;\n\n &.payment-cod-content {\n "," {\n padding-left: 0;\n }\n }\n\n .option-payment {\n &:last-child {\n border-bottom: none;\n }\n }\n\n .payment-option-radio {\n .mantine-Radio-body {\n .mantine-Radio-label {\n font-size: 16px;\n line-height: 26px;\n font-weight: 400;\n\n "," {\n font-size: 14px;\n }\n }\n }\n }\n"]);return l=function(){return n},n}function s(){var n=(0,i.A)(["\n padding: 8px 12px 8px 0;\n cursor: pointer;\n border-bottom: 1px solid\n ",";\n\n "," {\n padding: 8px 8px 8px 0;\n }\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n display: flex;\n gap: 10px;\n"]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n padding: 3px 8px;\n border-radius: 4px;\n background: ",";\n font-size: 12px;\n line-height: 18px;\n font-weight: 400px;\n display: inline-block;\n align-items: center;\n gap: 4px;\n color: ",";\n\n "," {\n padding: 3px 6px 7px 6px;\n }\n\n &.vnpay-tag {\n svg {\n path {\n fill: ",";\n }\n }\n }\n\n .wrapper-icon-voucher {\n padding-left: 18px;\n position: relative;\n\n svg {\n position: absolute;\n left: 0;\n top: 0px;\n }\n }\n\n .price-voucher {\n font-weight: 600;\n color: ",";\n }\n\n .copy-voucher-button {\n color: ",";\n position: relative;\n padding-left: 18px;\n margin-left: 5px;\n cursor: pointer;\n font-weight: 400;\n\n svg {\n position: absolute;\n left: 0;\n top: 0px;\n width: 16px;\n height: 16px;\n path {\n fill: ",";\n }\n }\n }\n"]);return u=function(){return n},n}function p(){var n=(0,i.A)(["\n "," {\n button {\n width: 100%;\n }\n }\n"]);return p=function(){return n},n}function f(){var n=(0,i.A)(["\n color: ",";\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n line-height: 18px;\n"]);return f=function(){return n},n}function h(){var n=(0,i.A)(["\n border-radius: 3px;\n background: ",";\n padding: 4px 6px;\n color: ",";\n font-size: 12px;\n font-weight: 400;\n line-height: 18px;\n display: inline-block;\n\n .time-left {\n font-size: 14px;\n font-weight: 700;\n line-height: 22px;\n text-transform: uppercase;\n }\n"]);return h=function(){return n},n}function g(){var n=(0,i.A)(["\n display: inline-flex;\n align-items: center;\n background-color: ",";\n padding: 3px 8px;\n gap: 4px;\n border-radius: 4px;\n color: ",";\n font-size: 12px;\n font-weight: 400;\n line-height: 18px;\n\n .amount {\n font-weight: 700;\n }\n\n svg {\n path {\n fill: ",";\n }\n }\n"]);return g=function(){return n},n}function v(){var n=(0,i.A)(["\n display: flex;\n flex-direction: column;\n gap: 8px;\n\n .content-info {\n .content-info-title {\n color: ",";\n font-size: 12px;\n font-weight: 600;\n line-height: 18px;\n }\n\n .content-info-text {\n color: ",";\n font-size: 12px;\n font-weight: 400;\n line-height: 18px;\n }\n }\n"]);return v=function(){return n},n}var m=r.Ay.div.withConfig({componentId:"sc-910d4f52-0"})(a(),(function(n){return n.theme.colors.neutral100}),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.neutral50}),o.M.mbDown,o.M.mbDown,o.M.mbDown,(function(n){return n.theme.colors.gray600}),o.M.mbDown,o.M.mbDown),b=r.Ay.div.withConfig({componentId:"sc-910d4f52-1"})(c(),o.M.mbDown),w=r.Ay.div.withConfig({componentId:"sc-910d4f52-2"})(l(),o.M.mbDown,o.M.mbDown),A=r.Ay.div.withConfig({componentId:"sc-910d4f52-3"})(s(),(function(n){return n.theme.colors.neutral100}),o.M.mbDown),x=r.Ay.div.withConfig({componentId:"sc-910d4f52-4"})(d()),y=r.Ay.div.withConfig({componentId:"sc-910d4f52-5"})(u(),(function(n){return n.background}),(function(n){return n.theme.colors.gray600}),o.M.mbDown,(function(n){return n.theme.colors.red700}),(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.colors.red700}),(function(n){return n.theme.colors.red700})),C=r.Ay.div.withConfig({componentId:"sc-910d4f52-6"})(p(),o.M.mbDown),M=r.Ay.div.withConfig({componentId:"sc-910d4f52-7"})(f(),(function(n){return n.theme.colors.red700})),k=r.Ay.span.withConfig({componentId:"sc-910d4f52-8"})(h(),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.white})),Y=r.Ay.div.withConfig({componentId:"sc-910d4f52-9"})(g(),(function(n){return n.bgColor}),(function(n){return n.iconColor}),(function(n){return n.iconColor})),I=r.Ay.div.withConfig({componentId:"sc-910d4f52-10"})(v(),(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.colors.gray600}))},1506:function(n,e,t){"use strict";t.d(e,{A:function(){return E}});var i=t(2445),o=t(6442),r=t(58065),a=t(24537),c=t(4766),l=t(27317);function s(){var n=(0,a.A)(["\n border-radius: 6px 0px 0px 6px;\n background: ",";\n display: flex;\n padding: 12px;\n flex-direction: column;\n gap: 12px;\n\n &.reservation-comfirn-page {\n border-radius: 6px 6px 6px 6px;\n .reservation-header {\n display: none;\n }\n\n .reservation-info-item {\n padding: 0;\n box-shadow: none;\n background: ",";\n gap: 16px;\n\n .reservation-logo {\n width: 24px;\n flex: 0 0 24px;\n height: 24px;\n background: transparent;\n }\n }\n }\n"]);return s=function(){return n},n}function d(){var n=(0,a.A)(["\n display: flex;\n gap: 8px;\n\n .reservation-title {\n color: ",";\n font-size: 16px;\n font-weight: 600;\n line-height: 24px;\n\n "," {\n font-size: 14px;\n line-height: 22px;\n }\n }\n"]);return d=function(){return n},n}function u(){var n=(0,a.A)(["\n display: flex;\n gap: 8px;\n border-radius: 8px;\n background: ",";\n padding: 12px;\n box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.04),\n 0px 0px 2px 0px rgba(0, 0, 0, 0.06), 0px 0px 1px 0px rgba(0, 0, 0, 0.04);\n\n .reservation-logo {\n border-radius: 64px;\n background: ",";\n width: 40px;\n flex: 0 0 40px;\n height: 40px;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n .reservation-text {\n color: ",";\n font-size: 14px;\n font-weight: 400;\n line-height: 22px;\n\n "," {\n font-size: 12px;\n line-height: 18px;\n }\n\n .text-bold {\n color: ",";\n font-weight: 700;\n }\n }\n"]);return u=function(){return n},n}var p,f,h,g,v,m,b=l.Ay.div.withConfig({componentId:"sc-6ac5bc89-0"})(s(),(function(n){return n.theme.colors.yellow50}),(function(n){return n.theme.colors.yellow50})),w=l.Ay.div.withConfig({componentId:"sc-6ac5bc89-1"})(d(),(function(n){return n.theme.colors.gray800}),c.M.mbDown),A=l.Ay.div.withConfig({componentId:"sc-6ac5bc89-2"})(u(),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.blue50}),(function(n){return n.theme.colors.gray600}),c.M.mbDown,(function(n){return n.theme.colors.gray600})),x=t(73884);function y(){return y=Object.assign?Object.assign.bind():function(n){for(var e=1;eMonday - Friday (10:00 - 17:00) to assist in choosing the appropriate examination & testing time.",tagName:"p",values:{span:function(n){return(0,i.Y)("span",{className:"text-bold",children:n})}}})})]})]})}},45844:function(n,e,t){"use strict";t.d(e,{W:function(){return l}});var i=t(858),o=t(83776),r=t(74029),a=t(59850),c=t(84091),l=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,c.T7)((0,c.er)(a.R.GET_PATIENTS_LIST),"GET")];case 1:return 1===(null===(e=o.sent())||void 0===e?void 0:e._status)&&(null===e||void 0===e?void 0:e._data)?(t=(0,r.nz)(e._data.patient||n),i=(e._data.contacts||[]).map(r.nz),[2,{patientInfo:t,familyInfo:i}]):[2,null]}}))}));return function(e){return n.apply(this,arguments)}}()},57656:function(n,e,t){"use strict";t.d(e,{EQ:function(){return x},Oe:function(){return A},Oz:function(){return v},U7:function(){return C},Zg:function(){return b},eV:function(){return w},l:function(){return y},sg:function(){return m}});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 v=c.Ay.div.withConfig({componentId:"sc-f6aed7d5-0"})(l(),o.M.mbUp,o.M.mbUp),m=(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),w=c.Ay.ul.withConfig({componentId:"sc-f6aed7d5-3"})(u()),A=c.Ay.div.withConfig({componentId:"sc-f6aed7d5-4"})(p()),x=c.Ay.section.withConfig({componentId:"sc-f6aed7d5-5"})(f(),o.M.tdUp,(function(n){return n.isRightPanelActive&&"max-width: calc(100% - (368px + 32px))"})),y=(0,c.Ay)(a.T).withConfig({componentId:"sc-f6aed7d5-6"})(h()),C=c.Ay.div.withConfig({componentId:"sc-f6aed7d5-7"})(g())},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 v},t1:function(){return m}});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()),v=r.Ay.div.withConfig({componentId:"sc-306f8cfa-4"})(d()),m=(0,r.DU)(u())},27401:function(n,e,t){"use strict";t.r(e),t.d(e,{MasterDetail:function(){return Q}});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),v=t(78979),m=t(84091),b=t(97183),w=t(48403),A=t(5793),x=t(7411),y=t(88491),C=t(73419),M=t(40959),k=t(28636),Y=t.n(k),I=t(87388),D=t.n(I),E=t(58065),F=t(80264),N=t(36259),B=t(39636),P=t(63419),z=t(40927),O=t(28041),S=t(12577),T=t(78414),L=t(51539),j=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)(T.v,{animated:i,className:"hamburger",onClick:function(){return o(!0)}}),(0,s.Y)(z.L,{type:"hellocare"}),(0,s.Y)(S.A,{})]}),i&&(0,s.Y)(L.ny,{onClick:function(){return o(!1)}}),(0,s.Y)(L.E5,{"data-opened":i,children:(0,s.Y)(w.oR,{activePage:e,isMenuOpened:i,onCloseMobileMenu:function(n){return o(!n)}})})]})},H=t(8758);function R(){return R=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 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 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 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 w=a.Ay.div.withConfig({componentId:"sc-8af53570-0"})(l(),o.M.mbDown,o.M.tdUp),A=a.Ay.div.withConfig({componentId:"sc-8af53570-1"})(s(),(function(n){return n.theme.colors.neutral100}),o.M.mbDown,o.M.tdUp),x=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),y=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),k=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),Y=(0,a.Ay)(c.A).withConfig({componentId:"sc-8af53570-7"})(g(),o.M.tdOnly,o.M.mbDown,o.M.tdOnly),I=(a.Ay.div.withConfig({componentId:"sc-8af53570-8"})(v()),a.Ay.div.withConfig({componentId:"sc-8af53570-9"})(m()),(0,a.Ay)(r.I).withConfig({componentId:"sc-8af53570-10"})(b(),o.M.mbDown))},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,v=(null===g||void 0===g?void 0:g.role)||"",m=(0,r.useMemo)((function(){switch(v){case"admin":case"super":return"all";case"facility":return"branch";case"senior_branch":return"senior_branch";default:return"none"}}),[v]),b=(0,r.useState)({hospitalId:f,branchId:h}),w=b[0],A=b[1],x=(0,r.useCallback)((function(){var n,e;if("all"!==m||f||!h)if("senior_branch"!==m){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"===m&&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,m,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]),y=(0,r.useMemo)((function(){var n,e,t;return g&&v&&"all"!==m?"branch"===m||"senior_branch"===m?{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(){y.hospitalId===w.hospitalId&&y.branchId===w.branchId||A(y)}),[y.hospitalId,y.branchId]),(0,o.A)((0,i.A)({},w),{navigationDropdownControl:m,replaceInvalidHospitalIdAndBranchId:x,setHospitalIdAndBranchId:A})}},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 w}});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,v=u,m=p,b=c().CancelToken,w=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,w=n.trigger,A=n.customHandler,x=n.delay,y=n.condition,C=void 0===y||y,M=(0,r.useReducer)(f,l),k=M[0],Y=M[1],I=(0,r.useState)(0),D=I[0],E=I[1],F=w;try{F=w?JSON.stringify(w):""}catch(B){}var N=function(n,e){A&&A(n,e)};return(0,r.useEffect)((function(){if(!a||!C)return N(null,{loading:!1}),void Y({type:m});if("undefined"!==typeof F||D){N(null,null),Y({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),Y({type:g,payload:n.data})})).catch((function(n){N(n,null),c().isCancel(n)||Y({type:v,payload:n})}))}),x||0),function(){n.cancel()}}}),[D,F]),(0,o.A)((0,i.A)({},k),{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}}},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 _},default:function(){return V},handleChangeBranchOption:function(){return U},handleChangeHospitalOption:function(){return Q}});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),v=t(84091),m=t(48403),b=t(76013),w=t(33700),A=t(27401),x=t(88542),y=t(40959),C=t(10297),M=t.n(C),k=t(6442),Y=t(91266),I=t(36259),D=t(72291),E=t(17084),F=t(82118),N=t(67141),B=t(69831),P=t(96161);function z(){return z=Object.assign?Object.assign.bind():function(n){for(var e=1;e0&&yn>1&&(0,d.Y)(B.gw,{children:(0,d.Y)(f.P,{className:"pagination",pagesAmount:yn,currentPage:kn,onChange:function(n){Yn(n)}})})]})]}),(0,d.Y)(b.rI,{isMobile:!1,isShowing:X,isLoading:Dn,errorMessages:tn,onClose:function(){on({content:""}),K(!1)},onAccept:function(){Jn()},onDeny:function(){on({content:""}),K(!1)},title:$&&$.isActive?Pn({id:"admin.popup.doYouWantToDeactiveDoctor",defaultMessage:"Do you want to deactive doctor ?"}):Pn({id:"admin.popup.doYouWantToActiveDoctor",defaultMessage:"Do you want to active doctor ?"}),caption:$&&$.isActive?Pn({id:"admin.popup.ifYouDeactiveDoctor",defaultMessage:"If you deactivate doctor, you will not be able to book your appointment from this doctor."}):Pn({id:"admin.popup.areYouSureToActiveThisDoctor",defaultMessage:"Are you sure to active this doctor?"}),acceptButtonTitle:$&&$.isActive?Pn({id:"admin.popup.yesDeactive",defaultMessage:"Yes, Deactive"}):Pn({id:"admin.popup.yesActive",defaultMessage:"Yes, Active"}),denyButtonTittle:Pn({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(){qn()},onDeny:function(){on({content:""}),dn(!1)},title:Pn({id:"admin.delete.titleDoctor",defaultMessage:"Are you sure to delete this doctor"}),caption:Pn({id:"booking.patientInfo.remove.confirmationPopup.caption",defaultMessage:"We can not restore it after it has been already deleted"}),acceptButtonTitle:Pn({id:"booking.patientInfo.remove.confirmationPopup.acceptButton.title",defaultMessage:"Yes, delete"}),denyButtonTittle:Pn({id:"admin.users.noKeepIt",defaultMessage:"No, keep it"})}),(0,d.Y)(F.A,{isOpened:pn,templateUrl:jn,headerValid:Hn,onCloseClick:function(){return fn(!1)},onImportClick:Un,type:"file",maxRecordImport:50,title:Pn({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 F},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),v=t(27401),m=t(88542),b=t(40959),w=t(10297),A=t(6442),x=t(91266),y=t(36259),C=t(17084),M=t(69831),k=t(75287),Y=t(86204),I=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(v){i=!0,r=v}finally{try{t||null==l.return||l.return()}finally{if(i)throw r}}return e},F=!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,A.A)().formatMessage,f=(0,w.useRouter)(),F=(0,c.useContext)(y.B).state.userInfo,B=(0,c.useRef)(!0),P=f.locale,z=void 0===P?"vi-VN":P,O=b.EmC[z].id,S=(0,m.o)(),T=S.hospitalId,L=S.branchId,j=(0,c.useState)({}),H=j[0],R=j[1],_=(0,c.useState)(E(e)||[]),Q=_[0],U=_[1],V=(0,c.useState)(""),G=V[0],W=V[1],J=N(G),q=(0,c.useState)((null===t||void 0===t?void 0:t.last)||1),X=q[0],K=q[1],Z=(0,c.useState)(1),$=Z[0],nn=Z[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],vn=hn[1],mn=(0,c.useState)({content:""}),bn=mn[0],wn=mn[1],An=(0,c.useState)(!1),xn=An[0],yn=An[1],Cn=(0,c.useState)({type:"",content:""}),Mn=Cn[0],kn=Cn[1],Yn=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]),vn(""),[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)?kn({type:"success",content:(null===n||void 0===n?void 0:n._messages)&&(null===n||void 0===n?void 0:n._messages[0])}):kn({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(),kn({type:"danger",content:o({id:"404.description"})}),[3,3];case 3:return[2]}}))}));return function(){return n.apply(this,arguments)}}(),In=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:$||"",keyword:J||"",roleId:(null===H||void 0===H?void 0:H.value)||"".concat(b.MP.ADMIN,",").concat(b.MP.ORGANIZATION,",").concat(b.MP.BRANCH,",").concat(b.MP.SENIOR_BRANCH),hospitalId:T||"",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),K(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(){B.current?B.current=!1:In()}),[H,J,T,L,$]);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"}],Fn={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===H||void 0===H?void 0:H.label)?"".concat(null===H||void 0===H?void 0:H.label," ").concat(void 0===tn||an?"":"(".concat(tn,")")):"".concat("branch"===(null===F||void 0===F?void 0:F.role)?o({id:"admin.users.branchManager",defaultMessage:"Branch Manager"}):o({id:"admin.users.allRoles",defaultMessage:"All roles"})," ").concat(void 0===tn||an?"":"(".concat(tn,")")),Bn=function(){var n=(0,i.A)((function(){var n;return(0,r.__generator)(this,(function(e){switch(e.label){case 0:return sn?(yn(!0),[4,(0,d.W3)((0,d.er)(s.R.POST_UPDATE_ADMIN,{userId:sn}),"DELETE")]):[2];case 1:return(n=e.sent())||wn({content:"An error occured"}),n&&1===(null===n||void 0===n?void 0:n._status)?(In(),fn(!1)):-1===(null===n||void 0===n?void 0:n._status)?wn({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"),yn(!1),[2]}}))}));return function(){return n.apply(this,arguments)}}(),Pn=[b.U$p.ADMIN,b.U$p.SUPER,b.U$p.ORGANIZATION].includes((null===F||void 0===F?void 0:F.role)||"")?[{icon:(0,a.Y)(I.A,{width:16,height:16}),name:o({id:"admin.user.resetPassword"}),action:function(n,e){vn(e.email)}},{icon:(0,a.Y)(Y.A,{}),name:o({id:"admin.facilities.button.edit",defaultMessage:"Edit"}),action:function(n){f.push("/admin/users/".concat(n))}}]:[];return(null===F||void 0===F?void 0:F.role)===b.U$p.SUPER&&Pn.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)(v.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:G,selectSearchOptions:(Dn=null===F||void 0===F?void 0:F.role,Dn===b.U$p.ADMIN||Dn===b.U$p.SUPER?[Fn.all,Fn.admin,Fn.facility,Fn.senior_branch,Fn.branch]:Dn===b.U$p.ORGANIZATION?[Fn.all,Fn.facility,Fn.senior_branch,Fn.branch]:Dn===b.U$p.SENIOR_BRANCH?[Fn.all,Fn.senior_branch,Fn.branch]:[]),setCurrentPage:nn,setSearchValue:W,setSelectedSOption:function(n){R(n),nn(1)},selectSearchClassName:"branch"===(null===F||void 0===F?void 0:F.role)?"disabled":""}),an?(0,a.Y)("div",{style:{display:"flex",flexDirection:"column",marginLeft:8},children:(0,a.Y)(x.A,{width:"100%",height:50,count:3,style:{marginBottom:12}})}):(0,a.FD)(k.Bs,{children:[(0,a.Y)(g.b,{hasOrderColumn:!1,headings:En,data:Q,isShowEmpty:!an&&0===(null===Q||void 0===Q?void 0:Q.length),moreOptions:Pn,onRowClicked:function(n){f.push("/admin/users/".concat(n))}}),X>1&&(0,a.Y)(M.gw,{children:(0,a.Y)(l.P,{className:"pagination",pagesAmount:X,currentPage:$,onChange:function(n){nn(n)}})})]})]}),(0,a.Y)(h.rI,{isMobile:!1,isShowing:pn,isLoading:xn,errorMessages:bn,onClose:function(){wn({content:""}),fn(!1)},onAccept:function(){Bn()},onDeny:function(){wn({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(){vn("")},onAccept:function(){Yn()},onDeny:function(){vn("")},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"})})]})}},44155:function(n,e,t){"use strict";t.r(e),t.d(e,{__N_SSP:function(){return w}});var i=t(858),o=t(83776),r=t(2445),a=t(73884),c=t(35084),l=t(21171),s=t(74029),d=t(59850),u=t(84091),p=t(32822),f=t(72946),h=t(10297),g=t(6442),v=t(36259),m=t(3045),b=t(40959),w=!0;e.default=function(n){var e=n.client,t=n.healthCarePackage,w=void 0!==t&&t,A=n.footerInfo,x=(0,a.useContext)(v.B),y=x.state,C=x.pushNotifications,M=(0,f.o)().isValidOnboarding,k=y.userInfo,Y=y.isLoggedIn,I=y.loading,D=(0,g.A)().formatMessage,E=(0,a.useState)(void 0),F=E[0],N=E[1],B=(0,a.useState)(void 0),P=B[0],z=B[1],O=(0,a.useState)(!0),S=O[0],T=O[1],L=(0,a.useState)(!1),j=L[0],H=L[1],R=(0,h.useRouter)().asPath,_=(0,h.useRouter)(),Q=_.query,U=Q.vnp_ResponseCode,V=Q.vnp_TransactionStatus,G=Q.bookingId,W=Q.phone,J=Q.resultCode,q=!!(null===U||void 0===U?void 0:U.length)||!!J,X=e===b.u3o.ROCHE,K=(0,a.useMemo)((function(){return!Y&&X&&w}),[X,w,Y]),Z="00"===U&&"00"===V||"0"===J,$=function(){I||_.push((0,u.pN)({slug:"service",id:parseInt(Q.serviceId)}))},nn=function(){_.push("/search")},en=function(){var n=(0,i.A)((function(){var n,e,t,i;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:if(!Q.serviceId)return[2,nn()];if((!Q.date||!Q.scheduleId)&&!w)return[2,$()];if(q){if(Z&&G)return K?(sessionStorage.removeItem(b.RI6),sessionStorage.removeItem(b.DOc),_.push("/booking/guest/success?bookingId=".concat(G,"&phone=").concat(W)),[2]):(_.push("/booking/success?bookingId=".concat(G)),[2]);C({message:D({id:"bookingPage.failedPayment",defaultMessage:"Your payment is failed, please try again"}),type:"danger"}),H(!0)}else H(!0);return K?[4,(0,u.px)((0,u.er)(d.R.GET_SERVICE_DETAIL,{id:Q.serviceId}),"GET")]:[3,2];case 1:return e=o.sent(),[3,4];case 2:return[4,(0,u.T7)((0,u.er)(d.R.GET_SERVICE_DETAIL,{id:Q.serviceId}),"GET")];case 3:e=o.sent(),o.label=4;case 4:return(n=e)&&1===n._status&&n._data?N((0,s.JG)(n._data.service)):nn(),n._data.service.package?[3,6]:[4,(0,u.T7)((0,u.er)(d.R.GET_HOSPITAL_SERVICE_SCHEDULE,{id:Q.serviceId,startDate:Q.date,endDate:Q.date}),"GET")];case 5:if(!(t=o.sent())||1!==t._status||!t._data)return[2,$()];if(!(i=t._data.schedules&&t._data.schedules.length>0?(0,s._4)(t._data.schedules[0],Q.scheduleId):{})||!i.id)return[2,$()];z(i),o.label=6;case 6:return T(!1),[2]}}))}));return function(){return n.apply(this,arguments)}}();return(0,a.useEffect)((function(){"undefined"===typeof k||I||(0,i.A)((function(){return(0,o.__generator)(this,(function(n){return M?(en(),[2]):b.dXu?(l.u.getState().triggerCareEmailPhoneVerify({source:"care_onboarding"}),[2]):[2,window.location.href=(0,u.sT)(window.location.href,"care_onboarding")]}))}))()}),[k,M,I]),(0,a.useEffect)((function(){if(!K||I){if(!Y&&!I)if(b.dXu)l.u.getState().triggerCareEmailPhoneVerify({source:"care_onboarding"});else{var n=(0,u.sT)("".concat(b.JpE).concat(R),"care_onboarding");window.location.href=n}}else en()}),[Y,I,K]),j?(0,r.Y)(p.q,{slotInfo:P,serviceInfo:F,initialIsLoading:S,isTelemedicine:!1,footerInfo:A,isPackage:w,breadCrumbs:(0,r.Y)(m.A,{children:(0,r.Y)(c.B,{size:"md",pages:[{label:D({id:"page.title.search",defaultMessage:"Search"}),value:b.JpE},{label:(null===F||void 0===F?void 0:F.name)||"Service",value:F?"".concat(b.JpE).concat((0,u.pN)(F),"/"):""},{label:D({id:"page.title.booking",defaultMessage:"Booking"}),value:w?"".concat(b.JpE,"/booking/service/?serviceId=").concat(null===F||void 0===F?void 0:F.id):"".concat(b.JpE,"/booking/service/?serviceId=").concat(null===F||void 0===F?void 0:F.id,"&date=").concat(Q.date,"&scheduleId=").concat(Q.scheduleId)}]})})}):null}},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 v},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 v(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 m},Yq:function(){return b},tV:function(){return g},vq:function(){return A},wB:function(){return v}});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},v=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},m=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},w={"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"}},A=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=w[h.HgX],u=d.timeFormat,p=d.dateFormat,f=d.dateYearFormat,v=(0,r.A)(o,u,{locale:s}),m=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(m):"".concat(m," - ").concat(v)}},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()}},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("4909",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,2876,4029,1051,7812,636,8792],(function(){return e=68540,n(n.s=e);var e}))}));_N_E=e}]);