(self.webpackChunkhhgHealthCareV1=self.webpackChunkhhgHealthCareV1||[]).push([[8171,9171],{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(U){z=!0,O=U}finally{try{B||null==T.return||T.return()}finally{if(z)throw O}}return F.length&&w.append("services_delete_ids",F.join(",")),null===(d=n.experiences)||void 0===d||d.forEach(u("experience",w)),null===(p=n.education)||void 0===p||p.forEach(u("education",w)),null===(f=n.awards)||void 0===f||f.forEach(u("awards",w)),null===(g=n.publication)||void 0===g||g.forEach(h("publication",w)),null===(m=n.memberships)||void 0===m||m.forEach(h("memberships",w)),null===(v=n.languages)||void 0===v||v.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),h=u[0],p=u[1];"id"!==h&&!t.includes(h)&&p&&e.append("".concat(n,"[").concat(o,"][").concat(h,"]"),p.toString())}}catch(f){c=!0,l=f}finally{try{r||null==d.return||d.return()}finally{if(c)throw l}}}}function h(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),h=u[0],p=u[1];"id"!==h&&!t.includes(h)&&p&&e.append("".concat(n,"[").concat(o,"][").concat(h,"]"),p.toString())}}catch(f){c=!0,l=f}finally{try{r||null==d.return||d.return()}finally{if(c)throw l}}}}function p(n,e){var t,i,r,a,c,s,d,u,h,p,f,g,m,v,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===(h=n.education)||void 0===h?void 0:h.map((function(n,e){return{id:e,saved:!0,fields:n}})))||[],awards:(null===(p=n.awards)||void 0===p?void 0:p.map((function(n,e){return{id:e,saved:!0,fields:n}})))||[],publication:(null===(f=n.publication)||void 0===f?void 0:f.map((function(n,e){return(0,o.A)({id:e},n)})))||[],memberships:(null===(g=n.memberships)||void 0===g?void 0:g.map((function(n,e){return(0,o.A)({id:e},n)})))||[],languages:(null===(m=n.languages)||void 0===m?void 0:m.map((function(n,e){return{id:e,name:n}})))||[],faq:(null===(v=n.faqs)||void 0===v?void 0:v.map((function(n){return(0,o.A)({saved:!0},n)})))||[],contract:null===(b=n.contract)||void 0===b?void 0:b.toString(),tierDesc:n.tier?{label:n.tier.description,value:n.tier.id}:null,tierLever:n.tier?{label:n.tier.level,value:n.tier.level}:null,academyDesc:n.academy?{label:n.academy.description,value:n.academy.id}:null,academyLever:n.academy?{label:n.academy.level,value:n.academy.level}:null,client:n.client?{label:n.client.label,value:n.client.value}:null};if(n.avatar&&(A.doctorProfilePicture=n.avatar),n.phone&&!e&&(A.phoneNumber=n.phone),n.doctorWebsite&&(A.doctorWebsite=n.doctorWebsite),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 I=M.value;try{var Y=JSON.parse(I.description),D=Y.content,E=Y.year;(D||E)&&(A.experiencesLegacy+="".concat(D,": ").concat(E,"\n"))}catch(N){}}}catch(P){y=!0,C=P}finally{try{x||null==k.return||k.return()}finally{if(y)throw C}}}return A}function f(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:[],doctorWebsite:""}}function g(n){var e={},t=!0,i=!1,o=void 0;try{for(var r,c=Object.entries(n)[Symbol.iterator]();!(t=(r=c.next()).done);t=!0){var l=(0,a.A)(r.value,2),s=l[0],d=l[1];e[s]=d||""}}catch(u){i=!0,o=u}finally{try{t||null==c.return||c.return()}finally{if(i)throw o}}return e}var m=function(n){var e={avatar:n.avatar||"",name:n.name||"",birthday:n.birthday,gender:n.gender.toString(),relation:n.relation.toString(),email:n.email,notifyTo:n.notifyTo.toString(),phone:n.phone?n.phone.toString():""};return n.id&&(e.id=n.id),e},v=function(n){var e=new FormData;return e.append("name",n.name),e.append("birthday",(0,c.A)(null===n||void 0===n?void 0:n.birthday,l.cuM)),e.append("gender",n.gender),e.append("relation",n.relation),e.append("notify_to",n.notifyTo||s.WA.MASTER.toString()),n.phone&&e.append("phone",n.phone),n.avatar&&e.append("avatar",n.avatar),n.notifyTo!==s.WA.MASTER.toString()&&e.append("email",n.email),e}},97183:function(n,e,t){"use strict";var i=t(2445),o=t(73884),r=t(67546),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 h},q3:function(){return u},wO:function(){return f},x0:function(){return p},xF:function(){return m}});var i=t(24537),o=t(27317);function r(){var n=(0,i.A)(["\n font-weight: 700;\n color: ",";\n font-size: 12px;\n"]);return r=function(){return n},n}function a(){var n=(0,i.A)(["\n display: flex;\n flex-direction: column;\n gap: 8px;\n"]);return a=function(){return n},n}function c(){var n=(0,i.A)(["\n color: ",";\n font-size: 13px;\n font-weight: 400;\n line-height: 20px;\n margin-top: -4px;\n"]);return c=function(){return n},n}function l(){var n=(0,i.A)(["\n border: 1px solid ",";\n padding: 16px;\n box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 2px rgba(0, 0, 0, 0.06),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n border-radius: 4px;\n background-color: white;\n h6 {\n padding-bottom: 10px;\n &::after {\n content: '';\n display: block;\n height: 1px;\n background-color: ",";\n margin-top: 10px;\n }\n }\n"]);return l=function(){return n},n}function s(){var n=(0,i.A)(["\n display: flex;\n flex-direction: column;\n gap: 16px;\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n display: flex;\n gap: 16px;\n justify-content: flex-end;\n margin-top: 16px;\n"]);return d=function(){return n},n}var u=o.Ay.label.withConfig({componentId:"sc-a445b49e-0"})(r(),(function(n){return n.theme.colors.gray600})),h=o.Ay.div.withConfig({componentId:"sc-a445b49e-1"})(a()),p=o.Ay.div.withConfig({componentId:"sc-a445b49e-2"})(c(),(function(n){return n.theme.colors.red700})),f=o.Ay.div.withConfig({componentId:"sc-a445b49e-3"})(l(),(function(n){return n.theme.colors.neutral200}),(function(n){return n.theme.colors.neutral100})),g=o.Ay.div.withConfig({componentId:"sc-a445b49e-4"})(s()),m=o.Ay.div.withConfig({componentId:"sc-a445b49e-5"})(d())},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 h,p=c.Ay.div.withConfig({componentId:"sc-dc56748f-0"})(l(),(function(n){return n.theme.colors.blue50}),(function(n){return n.theme.colors.primaryBase})),f=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})),m=c.Ay.a.withConfig({componentId:"sc-dc56748f-3"})(u(),(function(n){return n.theme.colors.white})),v=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 h(n){var e=n.name,t=n.options,r=n.label,s=n.labelLayout,d=void 0===s?"inline":s,h=n.className,p=n.direction,f=void 0===p?"horizontal":p;return(0,i.Y)(c.xI,{name:e,render:function(n){var e,c=n.field,s=c.onChange,p=c.value,g=c.name;return(0,i.FD)(u,{className:a()(h,{"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:f,className:"form-radio-group",onChange:s,value:(null===(e=t.find((function(n){return n.value===String(p)})))||void 0===e?void 0:e.value)||"",options:t})]})}})}},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,h=n.wrapperStyle,p=n.iconStyle,f=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},f&&(0,i.A)({},f.fill&&{"--icon-fill-color":f.fill},f.stroke&&{"--icon-stroke-color":f.stroke}),h),"data-clickable":!!a,"data-svg-custom-stroke":!!(null===f||void 0===f?void 0:f.stroke),"data-svg-custom-fill":!!(null===f||void 0===f?void 0:f.fill)},g),{children:c().cloneElement(e,{style:p})}))}},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))}},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 f}});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})),h=t(40959),p=t(46529),f=function(n){var e=n.title,t=n.showTooltip,s=void 0===t||t,d=n.bgColor,f=void 0===d?"#FFF8E2":d,g=n.iconColor,m=void 0===g?"#FC7419":g,v=n.className,b=function(n){return(0,i.Y)("span",{children:n})},w=(0,c.A)().formatMessage,A=(0,a.$)().locale,x=void 0===A?"vi-VN":A,y=h.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:v,children:(0,i.FD)(u,{className:"flex items-start",bgColor:f,iconColor:m,children:[(0,i.Y)(p.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 f}});var i=t(24537),o=t(2445),r=t(73884),a=t(83551),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 h=c.Ay.div.withConfig({componentId:"sc-d3209884-0"})(u()),p=function(n){return n?{type:n.type,content:n.content||n.message||""}:void 0},f=function(n){var e=n.className,t=n.alert,i=n.dismissTime,c=void 0===i?3e3:i,u=(0,r.useState)(p(t)),f=u[0],g=u[1];(0,r.useEffect)((function(){g(p(t))}),[t]),(0,r.useEffect)((function(){var n=setInterval((function(){(null===f||void 0===f?void 0:f.content)&&f.content.length>0&&m()}),c);return function(){clearInterval(n)}}),[null===f||void 0===f?void 0:f.content,c]);var m=function(){g(void 0)};return(0,o.Y)(h,{className:e,children:(null===f||void 0===f?void 0:f.content)&&(0,o.Y)(a.A,{closeIcon:(0,o.Y)(d.A,{onClick:function(){return m()}}),contentIcon:"success"===f.type?(0,o.Y)(l.A,{}):(0,o.Y)(s.A,{}),text:f.content,type:"success"===f.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 v},w9:function(){return m},xv:function(){return A}});var i=t(24537),o=t(36257),r=t(68470),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 h(){var n=(0,i.A)(["\n font-weight: var(--fwSemiBold);\n"]);return h=function(){return n},n}function p(){var n=(0,i.A)(["\n color: var(--gray600);\n overflow: hidden;\n"]);return p=function(){return n},n}function f(){var n=(0,i.A)(["\n white-space: pre-line;\n margin-bottom: 24px;\n margin-top: 16px;\n"]);return f=function(){return n},n}var g=c.Ay.section.withConfig({componentId:"sc-105c083f-0"})(s(),(function(n){return n.disableVerticalPadding&&(0,c.AH)(l())})),m=c.Ay.div.withConfig({componentId:"sc-105c083f-1"})(d()),v=c.Ay.button.withConfig({componentId:"sc-105c083f-2"})(u(),o.M.mbDown),b=(0,c.Ay)(r.T).withConfig({componentId:"sc-105c083f-3"})(h()),w=(0,c.Ay)(a.m.div).withConfig({componentId:"sc-105c083f-4"})(p()),A=(0,c.Ay)(r.T).withConfig({componentId:"sc-105c083f-5"})(f())},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),h=u[0],p=u[1],f=function(n){return p(n===h?-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===h,"aria-controls":"accordion-button-".concat(e+1),role:"region",children:[(0,i.FD)(s.uB,{onMouseDown:function(){return f(e)},onKeyDown:function(n){return function(n,e){"Enter"!==n.key&&" "!==n.key||f(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===h})})]}),(0,i.Y)(r.u,{isOpen:e===h,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(36257),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 f},kc:function(){return p}});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()),h=(0,r.i7)(c()),p=r.Ay.div.withConfig({componentId:"sc-882e60dd-0"})(l(),o.Mue.adBlock,u,h),f=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 p}});var i=t(2445),o=t(73884),r=t(68470),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])}))}},h=(0,o.forwardRef)((function(n,e){var t=n.className,h=n.adUnitPath,p=n.size,f=n.divId,g=n.pos,m=n.sizeMapping,v=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),I=(0,o.useRef)(null),Y=(0,o.useRef)(null),D=(0,o.useRef)(null),E=(0,o.useRef)(!1),N=function(){u(Y.current),Y.current=function(n){var e=n.adUnitPath,t=n.size,i=n.divId,o=n.pos,r=n.sizeMapping,a=n.hideIfHasSubot,c=n.customTargetings;if(document.getElementById(i)){window.googletag=window.googletag||{cmd:[]};var l=window.googletag;l.cmd.push((function(){var n,s=null===(n=l.defineSlot(e,t,i))||void 0===n?void 0:n.setTargeting("Pos",o);try{c&&Object.keys(c).forEach((function(n){n&&(null===s||void 0===s||s.setTargeting(n,c[n]))}))}catch(d){console.error(d)}if(s)return null===s||void 0===s||s.addService(l.pubads()),r&&s.defineSizeMapping(r),a&&document.getElementById("subot--container")&&s.setTargeting("chatbot",!0),l.pubads(),l.enableServices(),l.display(i),s}))}}({adUnitPath:h,size:p,divId:f,pos:g,sizeMapping:m,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(){Y.current&&n.pubads().refresh([Y.current])}))}),1e3*w))},P=(0,o.useRef)(N);return P.current=N,(0,o.useEffect)((function(){return setTimeout((function(){var n;!v&&k&&(null===(n=P.current)||void 0===n||n.call(P));E.current=!0}),1e3+Math.floor(1e3*Math.random())),function(){Y.current&&u(Y.current),D.current&&clearInterval(D.current)}}),[]),(0,o.useEffect)((function(){var n;!v&&k&&E.current&&(null===(n=P.current)||void 0===n||n.call(P))}),[]),k?(0,i.FD)(s.E6,{ref:I,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:f})})]}):null})),p=(0,o.memo)(h,(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 h},oq:function(){return u}});var i,o=t(38971),r=t(78783),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 h=a[e]+u;return r?"/".concat(d,"/").concat(h,"/").concat(r):o?"/".concat(d,"/").concat(h,"/").concat(h,"_Care/").concat(o):"/".concat(d,"/").concat(h,"/ad")},h=[r.L.Vietnam]},12681:function(n,e,t){"use strict";t.d(e,{D$:function(){return g},IM:function(){return m},af:function(){return v},b7:function(){return f},rf:function(){return h},tu:function(){return p}});var i=t(24537),o=t(36257),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 h=r.Ay.div.withConfig({componentId:"sc-66ebac93-0"})(a(),(function(n){return n.theme.colors.neutral200})),p=(0,r.Ay)(h).withConfig({componentId:"sc-66ebac93-1"})(c(),(function(n){return n.theme.colors.neutral200}),(function(n){return n.theme.colors.white}),o.M.mbDown,h,(function(n){return n.theme.colors.neutral150})),f=r.Ay.figure.withConfig({componentId:"sc-66ebac93-2"})(l()),g=r.Ay.div.withConfig({componentId:"sc-66ebac93-3"})(s(),o.M.tdDown),m=r.Ay.div.withConfig({componentId:"sc-66ebac93-4"})(d(),(function(n){return n.theme.colors.gray600})),v=r.Ay.div.withConfig({componentId:"sc-66ebac93-5"})(u(),(function(n){return n.theme.colors.white}),o.M.tdOnly,o.M.mbDown,(function(n){return n.$isShowMobile&&"\n left: 50px;\n opacity: 1;\n visibility: visible; \n }\n "}))},17084:function(n,e,t){"use strict";t.d(e,{D:function(){return W}});var i=t(2445),o=t(73884),r=t.n(o),a=t(47610),c=t(32485),l=t.n(c),s=t(88491),d=t(10297),u=t(6442),h=t(36259),p=t(48403),f=t(12681),g=t(40568),m=t(62862),v=t(43184),b=t(24537),w=t(36257),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 I(){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 I=function(){return n},n}var Y,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})),N=A.Ay.div.withConfig({componentId:"sc-d4262f1d-2"})(C(),(function(n){return n.theme.colors.white}),w.M.tdDown),P=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})),F=A.Ay.div.withConfig({componentId:"sc-d4262f1d-4"})(k()),B=A.Ay.li.withConfig({componentId:"sc-d4262f1d-5"})(I(),(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,h=n.hasSearch,p=void 0===h||h,f=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,m.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)(N,{children:[p&&(0,i.Y)(P,{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)(F,{children:[!f&&k.length>0&&k.map((function(n,e){return(0,i.Y)(B,{onClick:function(){d(n),C(!1)},children:n.label},"".concat(e,"-").concat(n.value))})),!f&&0===k.length&&(0,i.Y)("div",{className:"text-c",children:(0,i.Y)(v.Sv,{})}),f&&(0,i.Y)("div",{className:"text-c",children:(0,i.FD)(v.vv,{width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,i.Y)("mask",{id:"a",fill:"#fff",children:(0,i.Y)("path",{d:"M12 0A12 12 0 11.19 9.88l3.9.7A8.03 8.03 0 1012 3.98V0z"})}),(0,i.Y)("path",{d:"M12 0A12 12 0 11.19 9.88l3.9.7A8.03 8.03 0 1012 3.98V0z",stroke:"#2D87F3",strokeWidth:"8",mask:"url(#a)"})]})})]})]})]})},T=t(69831),L=t(65004),j=t(40959),H=t(8758);function U(){return U=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 h(){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 h=function(){return n},n}function p(){var n=(0,i.A)(["\n position: relative;\n & svg {\n cursor: pointer;\n }\n"]);return p=function(){return n},n}function f(){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 f=function(){return n},n}function g(){var n=(0,i.A)(["\n display: flex;\n "," {\n display: unset;\n }\n input {\n width: 100%;\n height: 40px;\n }\n & {\n .dropdown {\n min-width: 250px;\n margin-right: 8px;\n font-size: 14px;\n\n "," {\n margin-right: 0;\n }\n\n input::placeholder {\n color: ",";\n }\n }\n\n .hospital {\n "," {\n padding-bottom: 8px;\n }\n }\n }\n"]);return g=function(){return n},n}var m=a.Ay.header.withConfig({componentId:"sc-29f61629-0"})(c(),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray800}),o.M.tdUp,o.M.tdDown,(function(n){return n.theme.colors.neutral100}),o.M.mbDown),v=a.Ay.div.withConfig({componentId:"sc-29f61629-1"})(l(),(function(n){return n.theme.colors.gray200})),b=a.Ay.div.withConfig({componentId:"sc-29f61629-2"})(s(),o.M.tdDown),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"})(h(),r.JpE,r.JpE,(function(n){return n.theme.sizes.fwSemiBold})),y=a.Ay.div.withConfig({componentId:"sc-29f61629-6"})(p()),C=a.Ay.div.withConfig({componentId:"sc-29f61629-7"})(f(),(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(13078),l=t(35291),s=t(72574),d=t(32485),u=t.n(d),h=t(24572),p=t(45638),f=t(88542),g=t(88491),m=t(73419),v=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,I=n.alert,Y=n.adminNavigationRightAdditionalRightComponent,D=n.rightDropdownSearchComponent,E=n.hospitalId,N=n.branchId,P=n.handleChangeHospitalOption,F=n.handleChangeBranchOption,B=(0,b.A)().formatMessage,z=(0,a.useContext)(w.B).state.userInfo,O=(0,g.d)().isMobileOrTablet,S=(0,m.$)().locale,T=(0,f.o)(),L=T.hospitalId,j=T.branchId,H=T.replaceInvalidHospitalIdAndBranchId,U=T.setHospitalIdAndBranchId;(0,a.useEffect)((function(){H()}),[]);var R=(0,r.FD)(x.dB,{children:[(0,r.Y)(p.i,{id:"hospital-dropdown",className:"dropdown hospital",placeholder:B({id:"admin.users.allHospitals",defaultMessage:"All hospitals"}),value:null!==E&&void 0!==E?E:L,disabled:!!E,handleChange:function(n){var e;e=n,P?P(e):((0,v.handleChangeHospitalOption)(e,L),U((function(n){return(0,o.A)((0,i.A)({},n),{hospitalId:e.value})})))}}),(0,r.Y)(h.U,{id:"branch-dropdown",className:"dropdown branch",placeholder:B({id:"admin.users.allBranches",defaultMessage:"All branches"}),value:null!==N&&void 0!==N?N:j,handleChange:function(n){var e;e=n,F?F(e):((0,v.handleChangeBranchOption)(e,L,j),U((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||!!N||!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&&R,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:I,notificationBadgeNumber:d,additionalComponent:Y})]})}},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(79830),l=t(68470),s=t(74029),d=t(98678),u=t(59850),h=t(84091),p=t(6442),f=t(36259),g=t(20105),m=t(24537),v=t(36257),b=t(27317);function w(){var n=(0,m.A)(["\n & > div[data-type='form'] {\n max-height: 90vh;\n background-color: white;\n\n width: 80%;\n\n "," {\n width: 496px;\n }\n\n .patientFormPopup {\n &.popup-content {\n padding: 0;\n }\n\n form {\n height: 100%;\n }\n }\n\n form {\n &[name='add-sub-patient'] {\n height: 100%;\n }\n }\n }\n\n .close-button {\n top: 12px;\n }\n\n .alert {\n position: absolute;\n right: 0;\n width: 400px;\n }\n\n .form-heading {\n border-bottom: 1px solid\n ",";\n padding: 12px 24px;\n margin: 0px -16px;\n }\n\n .addButton {\n margin: 24px 0 -8px;\n }\n"]);return w=function(){return n},n}function A(){var n=(0,m.A)(["\n padding: 16px 8px;\n margin-bottom: -16px;\n display: flex;\n flex-direction: column;\n gap: 12px;\n height: calc(100% - 90px);\n overflow: auto;\n label[data-size='label2'] {\n font-weight: 600;\n font-size: 12px;\n line-height: 18px;\n margin-bottom: 6px;\n color: ",";\n\n &::after {\n content: '*';\n color: ",";\n margin-left: 2px;\n }\n\n & + div {\n margin-top: 6px;\n\n input {\n height: 40px;\n font-size: 14px;\n line-height: 22px;\n &::placeholder {\n color: ",";\n }\n }\n }\n\n & + button {\n margin-top: 6px;\n }\n }\n\n .gender {\n & > label {\n font-weight: 600;\n }\n }\n\n .patient-phone {\n label {\n &::after {\n display: none;\n }\n }\n }\n\n .relation {\n width: 250px;\n "," {\n width: 100%;\n }\n & > div {\n height: 40px;\n margin-bottom: 0;\n & > div {\n padding: 9px 16px;\n display: flex;\n align-items: center;\n\n & > span {\n font-size: 14px;\n line-height: 22px;\n color: ",";\n }\n\n "," {\n width: 100%;\n height: 100%;\n & > span {\n max-height: 100%;\n max-width: 100%;\n }\n }\n }\n\n & > ul[data-has-icons='false'] {\n max-height: 250px;\n overflow: auto;\n & > li {\n height: 40px;\n font-size: 14px;\n line-height: 22px;\n }\n }\n }\n\n &[data-has-value='true'] > div > div > span {\n color: ",";\n }\n }\n\n .notifyTo {\n flex-direction: column;\n gap: 14px;\n align-items: flex-start;\n }\n"]);return A=function(){return n},n}function x(){var n=(0,m.A)(["\n background-color: ",";\n padding: 5px 8px;\n border-radius: 34px;\n display: flex;\n gap: 8px;\n align-items: center;\n margin-top: 4px;\n"]);return x=function(){return n},n}var y=b.Ay.div.withConfig({componentId:"sc-6141c933-0"})(w(),v.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}),v.M.mbDown,(function(n){return n.theme.colors.gray400}),v.M.mbDown,(function(n){return n.theme.colors.gray800})),M=b.Ay.div.withConfig({componentId:"sc-6141c933-2"})(x(),(function(n){return n.theme.colors.blue50})),k=t(69988),I=t(49785),Y=t(68289),D=t(40959),E=t(1135);function N(){var n=(0,p.A)(),e=n.formatMessage,t=n.locale,i=[{label:e({id:"newDoctor.male",defaultMessage:"Male"}),value:String(D.YT8.MALE)},{label:e({id:"newDoctor.female",defaultMessage:"Female"}),value:String(D.YT8.FEMALE)}],o=Object.keys(D.ynE).map((function(n){return{label:e({id:"booking.subPatient.relationship.".concat(D.ynE[Number(n)||E.pE.OTHER]),defaultMessage:(0,Y.Zr)(D.ynE[Number(n)])}),value:n}})),r=[{label:e({id:"booking.subPatient.confirmation.onlyMe",defaultMessage:"Only me"}),value:String(E.WA.MASTER)},{label:e({id:"booking.subPatient.confirmation.both",defaultMessage:"Both"}),value:String(E.WA.BOTH)},{label:e({id:"booking.subPatient.confirmation.patient",defaultMessage:"Patient"}),value:String(E.WA.CONTACT)}],c={addNewProfile:e({id:"booking.subPatient.addNewProfile",defaultMessage:"Add New Profile"}),editProfile:e({id:"booking.subPatient.editProfile",defaultMessage:"Edit Profile"}),errorProfilePhoto:e({id:"error.profilePhotoRequired",defaultMessage:"Profile photo is required"}),errorNameRequired:e({id:"error.nameIsRequired",defaultMessage:"Name is required"}),errorEmailRequired:e({id:"error.emailIsRequired",defaultMessage:"Please enter a valid email"}),patientName:e({id:"booking.subPatient.patientName",defaultMessage:"Patient name"}),enterPatientName:e({id:"booking.subPatient.enterPatientName",defaultMessage:"Enter patient name"}),enterpatientPhone:e({id:"booking.subPatient.enterPatientPhone",defaultMessage:"Enter patient phone"}),dateOfBirth:e({id:"booking.subPatient.dateOfBirth",defaultMessage:"Date of birth"}),requiredBirthday:e({id:"booking.subPatient.requiredBirthday",defaultMessage:"Birthday is required"}),gender:e({id:"newDoctor.gender",defaultMessage:"Gender"}),relationship:e({id:"booking.subPatient.relation",defaultMessage:"Patient\u2019s Relation to You"}),sendConfirmation:e({id:"booking.subPatient.sendConfirmation",defaultMessage:"Send confirmation and reminders of the booking to"}),patientEmail:e({id:"booking.subPatient.patientEmail",defaultMessage:"Patient Email"}),addNewPatient:e({id:"booking.subPatient.addNewPatient",defaultMessage:"Add New Patient"}),saveChanges:e({id:"booking.subPatient.saveChanges",defaultMessage:"Save Changes"}),enterPatientEmail:e({id:"booking.subPatient.enterPatientEmail",defaultMessage:"Enter patient email"}),age:function(n){return e({id:"booking.success.years",defaultMessage:"{age} Yrs"},{age:n})},childProfile:e({id:"booking.subPatient.childProfile",defaultMessage:"Child Profile"}),patientPhone:e({id:"booking.subPatient.patientPhone",defaultMessage:"Patient phone"}),patientPhoneTootip:e({id:"booking.subPatient.enterPatientPhone.tooltip",defaultMessage:"Please input patient's phone (if there is) for the clinic/doctor contact to patient & update the latest information on the booking."})};return(0,a.useMemo)((function(){return{optionsGender:i,optionsRelationship:o,optionsNotify:r,translations:c}}),[t])}var P=(0,a.forwardRef)((function(n,e){var t=n.formType,i=N().translations,o=(0,I.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})})),F=t(35291),B=t(74952),z=t(47610),O=t(72574),S=t(32485),T=t.n(S),L=t(66298),j=t(62862),H=t(21336);function U(){var n=(0,m.A)(["\n position: relative;\n\n .datePicker {\n position: absolute;\n z-index: 99;\n\n .pickerOverlayWrapper {\n max-width: 350px;\n }\n\n input {\n height: 0;\n }\n }\n"]);return U=function(){return n},n}function R(){var n=(0,m.A)(["\n padding: 9px 16px;\n border: 1px solid ",";\n border-radius: 4px;\n width: 100%;\n height: 40px;\n display: flex;\n justify-content: space-between;\n cursor: pointer;\n\n &.error {\n border-color: ",";\n }\n"]);return R=function(){return n},n}function _(){var n=(0,m.A)(["\n display: inline-block;\n margin-bottom: 4px;\n color: ",";\n font-weight: ",";\n"]);return _=function(){return n},n}function Q(){var n=(0,m.A)(["\n color: ",";\n font-weight: ",";\n"]);return Q=function(){return n},n}var V=b.Ay.div.withConfig({componentId:"sc-de8b215c-0"})(U()),G=b.Ay.button.withConfig({componentId:"sc-de8b215c-1"})(R(),(function(n){return n.theme.colors.gray200}),(function(n){return n.theme.colors.red700})),W=(b.Ay.label.withConfig({componentId:"sc-de8b215c-2"})(_(),(function(n){return n.theme.colors.gray600}),(function(n){return n.theme.sizes.fwBold})),b.Ay.label.withConfig({componentId:"sc-de8b215c-3"})(Q(),(function(n){return n.theme.colors.red700}),(function(n){return n.theme.sizes.fwRegular})),t(56791));function q(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],h=(0,p.A)().formatMessage;return(0,j.j)(c,(function(){u(!1)})),(0,r.Y)(I.xI,{rules:{validate:function(n){return!o||!!n}},name:e,render:function(n){var i=n.field,a=i.onChange,s=i.value,p=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:!!p}),onClick:function(){return u(!d)},children:[(0,r.Y)(l.T,{size:"s4",color:s?F.w.colors.gray800:F.w.colors.gray400,children:s?(0,L.A)(s,D.AI5):D.AI5.toUpperCase()}),(0,r.Y)(H.h,{iconSize:20,svgIcon:{fill:F.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}),p&&(0,r.Y)(l.T,{size:"label2",color:F.w.colors.red700,children:"string"===typeof o?o:h({id:"common.error.requiredField",defaultMessage:"This field is required"})})]})}})}var J=t(53513),K=t(63538),X=t(19864);function Z(){var n=(0,m.A)(["\n margin-bottom: 18px;\n\n & > ul {\n z-index: 10;\n }\n"]);return Z=function(){return n},n}function $(){var n=(0,m.A)(["\n position: relative;\n &[data-is-error='true'] {\n & > div {\n border-color: ",";\n }\n }\n .errorLabel {\n font-size: 12px;\n }\n"]);return $=function(){return n},n}var nn=(0,b.Ay)(X.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,p.A)().formatMessage,h=(0,I.xW)(),f=h.register,g=h.control,m=h.formState.errors,v=f(e,{validate:l?{required:function(n){return!!n}}:void 0});return(0,r.Y)(I.xI,{name:e,control:g,render:function(n){var c=n.field;return(0,r.FD)(en,{className:i,"data-is-error":!!m[e],"data-has-value":!!c.value,children:[o&&(0,r.Y)(z.L,{size:"label2",htmlFor:e,className:"formDropdownLabel",children:o}),(0,r.Y)(nn,(0,K.A)((0,J.A)({},v),{onChange:function(n){return c.onChange(n.value)},value:a.find((function(n){return n.value===c.value})),id:e,options:a,disabled:d,placeholder:t||u({id:"admin.booking.pleaseSelectOption",defaultMessage:"Please select an option"})}))]})}})}var on=t(80398),rn=t(61808),an=t(63328);function cn(){var n=(0,m.A)(["\n display: flex;\n gap: 10px;\n align-items: center;\n\n "," {\n flex-direction: column;\n align-items: center;\n button {\n width: 100%;\n }\n }\n\n button {\n height: fit-content;\n padding: 5px 12px;\n }\n\n .remove-btn {\n &:not(:disabled) {\n color: ",";\n border-color: ",";\n\n &:hover {\n background-color: ",";\n border-color: ",";\n }\n }\n }\n\n .remove-btn:disabled:hover {\n background-color: ",";\n }\n"]);return cn=function(){return n},n}function ln(){var n=(0,m.A)(["\n display: inline-block;\n position: relative;\n"]);return ln=function(){return n},n}var sn=b.Ay.div.withConfig({componentId:"sc-5e9a2405-0"})(cn(),v.M.mbDown,(function(n){return n.theme.colors.red600}),(function(n){return n.theme.colors.red600}),(function(n){return n.theme.colors.red100}),(function(n){return n.theme.colors.red600}),(function(n){return n.theme.colors.gray400})),dn=b.Ay.div.withConfig({componentId:"sc-5e9a2405-1"})(ln()),un=function(n){var e=n.onFileSelected,t=n.fileAcceptType,i=n.multiple,o=n.className,c=n.withElement,l=n.value,s=n.isRemoveButtonDisabled,d=void 0===s||s,u=(0,p.A)().formatMessage,h=(0,a.useRef)(null),f=function(){var n;null===(n=h.current)||void 0===n||n.click()};return(0,r.FD)(sn,{className:o,children:[(0,r.FD)(dn,{onClick:f,children:[c,(0,r.Y)("input",{ref:h,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:f,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"})})]})},hn=t(16282);function pn(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,hn.y)().errorMessages;return(0,r.Y)(I.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 fn=t(33067);function gn(){var n=(0,m.A)(["\n width: 100%;\n height: 100%;\n position: relative;\n\n .title {\n max-width: 100%;\n background-color: ",";\n color: ",";\n position: absolute;\n z-index: 1070;\n display: block;\n width: max-content;\n left: 50%;\n transform: translate(-50%, -50%);\n padding: 5px;\n font-size: 12px;\n border-radius: 4px;\n top: -35%;\n visibility: hidden;\n }\n\n .arrow {\n width: 10px;\n height: 10px;\n position: absolute;\n background-color: ",";\n transform: rotate(45deg) translate(-50%, 5px);\n left: 50%;\n }\n\n &:hover {\n .title {\n visibility: visible;\n }\n }\n"]);return gn=function(){return n},n}var mn,vn=b.Ay.div.withConfig({componentId:"sc-8fe8dad-0"})(gn(),(function(n){return n.theme.colors.gray500}),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray500})),bn=function(n){var e=n.title,t=n.children;return(0,r.FD)(vn,{children:[t,(0,r.FD)("div",{className:"title",children:[(0,r.Y)("div",{children:e}),(0,r.Y)("div",{className:"arrow"})]})]})};function 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)(fn.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,m=n.formType,v=n.defaultValues,b=void 0===v?Mn:v,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)(f.B).pushNotifications,M=(0,p.A)().formatMessage,k=N().translations,I=(0,a.useRef)(null),Y=function(){var n=(0,i.A)((function(n){var e,t,i,r,a,c,l,p;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),e="add"===m?u.R.CREATE_PATIENT_INFO:u.R.UPDATE_PATIENT_INFO,t="edit"===m?{id:b.id}:{},i=(0,d.jz)(n),"edit"===m&&i.append("_method","PUT"),[4,(0,h.T7)((0,h.er)(e,t),"POST",{data:i})];case 1:return(r=o.sent())&&-1!==(null===r||void 0===r?void 0:r._status)?1===(null===r||void 0===r?void 0:r._status)&&(C({message:(null===r||void 0===r?void 0:r._messages)?null===r||void 0===r?void 0:r._messages[0]:M("add"===m?{id:"admin.booking.createSuccessfully",defaultMessage:"Create successfully"}:{id:"admin.booking.updateSuccessfully",defaultMessage:"Update successfully"}),type:"success"}),A((0,s.nz)(null===(c=r._data)||void 0===c?void 0:c.contact)),"add"===m&&(null===(l=I.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 p=o.sent(),console.log("".concat(m," sub patient error"),p),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(m,"-sub-patient"),onSubmit:Y,defaultValues:b,children:[(0,r.Y)(l.T,{size:"s3",type:"semiBold",className:"form-heading",children:"add"===m?k.addNewProfile:k.editProfile}),(0,r.Y)(yn,{}),(0,r.Y)(P,{formType:m,ref:I})]})})})}},39372:function(n,e,t){"use strict";t.d(e,{KW:function(){return u},cx:function(){return h},tp:function(){return d}});var i=t(24537),o=t(36257),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()),h=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(13078),a=t(68470),c=t(35291),l=t(74029),s=t(84091),d=t(19475),u=t(40959),h=t(6442),p=t(24537),f=t(36257),g=t(27317),m=t(3184);function v(){var n=(0,p.A)(["\n "," {\n position: absolute;\n top: 0;\n right: 0;\n justify-content: flex-end;\n }\n "," {\n margin: 4px 0;\n }\n"]);return v=function(){return n},n}function b(){var n=(0,p.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,p.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,p.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,p.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)(m.k).withConfig({componentId:"sc-fc51186f-0"})(v(),f.M.mbUp,f.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}),f.M.mbDown),k=g.Ay.div.withConfig({componentId:"sc-fc51186f-3"})(A(),f.M.mbDown,f.M.mbDown),I=g.Ay.div.withConfig({componentId:"sc-fc51186f-4"})(x(),f.M.mbDown),Y=t(95456),D=function(n){var e,t=n.className,p=n.doctorInfo,f=n.isMobile,g=(0,h.A)().formatMessage,m=p.name,v=p.avatar,b=p.provideCare,w=p.specialties,A=p.validOutpatient,x=p.validTelemedicine,D=!!(null===(e=p.organization)||void 0===e?void 0:e.publish_reviews),E=(0,o.useMemo)((function(){return w.map((function(n){return n.name}))}),[w]),N=(0,s.Zo)(p),P=f?64:96,F=function(n){return{forChildren:n===u.jc_.CHILDREN||n===u.jc_.BOTH,forAdult:n===u.jc_.ADULTS||n===u.jc_.BOTH}}(b),B=F.forAdult,z=F.forChildren;return(0,i.Y)(M,{className:t,children:(0,i.Y)(k,{children:(0,i.FD)(I,{children:[(0,i.Y)("div",{className:"profileImage",children:(0,i.Y)(Y.Y,{layout:"responsive",src:(0,l.wW)(v,"".concat(u.JpE,"/images/avatar.jpg")),width:P,height:P,quality:100,objectFit:"cover"})}),(0,i.FD)("div",{className:"doctorInfoHeader",children:[(0,i.Y)(r.H,{tag:"h4",as:"h1",children:m}),(0,i.Y)(a.T,{size:f?"s3":"s4",color:c.w.colors.gray600,className:"mt-[6px] sp-mt-4",children:E.join(", ")}),D&&(0,i.Y)(y,{ratingPoint:p.rating,ratingScale:u.Efn,reviewCounting:p.totalReviews,reviewsUrl:"".concat(N,"/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"})}),B&&(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(68470),l=t(27516),s=t(73419),d=t(32876),u=t.n(d),h=t(6442),p=t(36259),f=t(16100),g=t.n(f),m=t(31015),v=t(40959),b=function(n){var e=n.trackingHospitalProps,t=n.organizationLogo,d=n.hospitalName,f=n.goHospitalPage,b=n.isDisplayDistance,w=n.distance,A=n.doctorWebsite,x=n.handleMakeAppointment,y=n.address,C=n.hospitalURL,M=n.isMobile,k=void 0!==M&&M,I=n.isDoctorUnavailable,Y=void 0!==I&&I,D=n.isUnvalidBooking,E=void 0!==D&&D,N=(0,s.$)(),P=N.locale,F=N.asPath,B=(0,a.useContext)(p.B).state.isLoggedIn,z=(0,h.A)().formatMessage;return(0,r.FD)(m.FD,(0,o.A)((0,i.A)({},e),{"data-is-mobile":k,children:[(0,r.Y)(m.Hb,(0,o.A)((0,i.A)({width:40,height:40,layout:"fixed",objectFit:"contain",src:t||"".concat(v.JpE,"/images/hospital-logo.png")},e),{className:"pointer",onClick:f})),(0,r.FD)(m.sb,{children:[(0,r.Y)(c.T,{size:"p4",type:"semiBold",children:(0,r.Y)(u(),{href:C||"#",children:(0,r.Y)("a",(0,o.A)((0,i.A)({},e),{className:"color-inherit",children:d}))})}),(0,r.FD)(m.tM,{children:[(0,r.Y)(m.NF,{children:(0,r.Y)(m.UQ,{children:(0,r.Y)("a",(0,o.A)((0,i.A)({},e),{onClick:f,children:y}))})}),b&&(0,r.FD)(m.aD,{children:[(0,r.Y)("svg",(0,o.A)((0,i.A)({width:"4",height:"4"},e),{onClick:f,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:f,children:Number(w)>=0?Math.round(10*((parseFloat("".concat(w))||0)+1e-5))/10+" km":""}))})]})]})]}),Y||E?A?(0,r.Y)(m.vz,{component:"a",href:A,target:"_blank",size:"md",color:"primary",className:g().ctaButton,dataEventCategory:"Care",dataEventAction:"Doctor Website Click",dataEventLabel:A,children:z({id:"doctorInfoComponent.visitDoctorWebsite",defaultMessage:"Visit website"})}):null:(0,r.Y)(m.vz,{size:"md",color:"primary",className:g().ctaButton,"data-is-logged-in":B,onClick:x,dataEventCategory:"Care",dataEventAction:"Doctor Appointment Click",dataEventLabel:"https://".concat(l.y[P]).concat(v.JpE).concat(F),children:z({id:"doctorInfoComponent.makeanappointment",defaultMessage:"Make an Appointment"})})]}))}},31015:function(n,e,t){"use strict";t.d(e,{Bm:function(){return D},FD:function(){return C},Hb:function(){return Y},NF:function(){return P},Q1:function(){return E},UQ:function(){return z},aD:function(){return B},sb:function(){return F},tM:function(){return N},vz:function(){return M},yW:function(){return k},zI:function(){return I}});var i=t(24537),o=t(36257),r=t(89103),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 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 u=function(){return n},n}function h(){var n=(0,i.A)(["\n "," {\n width: 100% !important;\n }\n"]);return h=function(){return n},n}function p(){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 p=function(){return n},n}function f(){var n=(0,i.A)(["\n margin-top: 8px;\n"]);return f=function(){return n},n}function g(){var n=(0,i.A)(["\n width: 40px;\n height: 40px;\n flex-shrink: 0;\n border-radius: 50%;\n border: 1px solid ",";\n"]);return g=function(){return n},n}function m(){var n=(0,i.A)(["\n position: absolute;\n right: 16px;\n justify-content: flex-end;\n"]);return m=function(){return n},n}function v(){var n=(0,i.A)(["\n display: flex;\n gap: 16px;\n &[data-is-mobile='true'] {\n flex-direction: column;\n gap: 12px;\n }\n"]);return v=function(){return n},n}function b(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n\n svg {\n vertical-align: middle;\n }\n\n span {\n color: $gray-500;\n }\n"]);return b=function(){return n},n}function 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-26339569-0"})(d());var C=a.Ay.div.withConfig({componentId:"sc-26339569-1"})(u(),(function(n){return n.theme.colors.neutral50})),M=(0,a.Ay)(r.B).withConfig({componentId:"sc-26339569-2"})(h(),o.M.mbDown),k=a.Ay.img.withConfig({componentId:"sc-26339569-3"})(p()),I=(0,a.Ay)(c.S).withConfig({componentId:"sc-26339569-4"})(f()),Y=(0,a.Ay)(s.Y).withConfig({componentId:"sc-26339569-5"})(g(),(function(n){return n.theme.colors.neutral100})),D=(0,a.Ay)(l.k).withConfig({componentId:"sc-26339569-6"})(m()),E=a.Ay.div.withConfig({componentId:"sc-26339569-7"})(v()),N=a.Ay.div.withConfig({componentId:"sc-26339569-8"})(b()),P=a.Ay.div.withConfig({componentId:"sc-26339569-9"})(w()),F=a.Ay.div.withConfig({componentId:"sc-26339569-10"})(A(),o.M.mbUp),B=a.Ay.div.withConfig({componentId:"sc-26339569-11"})(x(),(function(n){return n.theme.colors.gray600})),z=a.Ay.p.withConfig({componentId:"sc-26339569-12"})(y(),(function(n){return n.theme.colors.gray600}))},89238:function(n,e,t){"use strict";t.d(e,{w:function(){return Y}});var i=t(53513),o=t(63538),r=t(2445),a=t(73884),c=t(68470),l=t(69988),s=t(27516),d=t(74029),u=t(84091),h=t(32485),p=t.n(h),f=t(19475),g=t(17271),m=t.n(g),v=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),I=t(74834),Y=function(n){var e,t,h=n.doctorInfo,g=n.hospitalInfo,w=n.orderedListIndex,C=n.gps,Y=n.className,D=n.isFeaturedDoctor,E=n.isMobile,N=h.name,P=h.price,F=h.priceTo,B=h.priceType,z=h.avatar,O=h.provideCare,S=h.specialties,T=h.organization,L=h.validOutpatient,j=h.validTelemedicine,H=h.rating,U=h.totalReviews,R=h.bookingUrl,_=h.gender,Q=h.status,V=h.promotion,G=(0,v.$)(),W=G.locale,q=g.name,J=g.address,K=g.latitude,X=g.longitude,Z=(0,x.A)().formatMessage,$=C&&C.lat&&C.lng&&K&&X?m()({lat:K,lon:X},{lat:C.lat,lon:C.lng},{exact:!1,unit:"km"}):null,nn=(null===(e=h.hospital)||void 0===e?void 0:e.websiteUrl)||"",en=!L&&!j,tn=Q===b.XQv.INACTIVE,on="zh-TW"===W?nn:(0,u.Zo)(h)+"/",rn=Boolean(h.doctorWebsite),an="zh-TW"===W&&R?R:on,cn={"data-event-category":"Care","data-event-action":"Doctor Click ".concat(w+1),"data-event-label":"https://".concat(s.y[W]).concat(on)},ln="zh-TW"===W?nn:(0,u.eP)(g),sn={"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(ln,"/")},dn=!!(null===(t=h.organization)||void 0===t?void 0:t.publish_reviews),un=function(){G.push(an)},hn=(0,a.useMemo)((function(){return S.map((function(n){return(null===n||void 0===n?void 0:n.name)||n})).join(", ")}),[S]),pn=(0,a.useMemo)((function(){return(null===h||void 0===h?void 0:h.isSiloam)||0===Number(P)}),[null===h||void 0===h?void 0:h.isSiloam,P]),fn=null!==$,gn=(0,a.useMemo)((function(){return z===d.k_&&"zh-TW"===W?_===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:p()(M().mDoctorInfo,Y),style:{padding:D?"16px 16px 16px 16px":"16px 16px 0 16px"},children:[dn&&(0,r.Y)(k.Bm,{ratingPoint:H,ratingScale:b.Efn,reviewCounting:U,reviewsUrl:"".concat(on,"reviews")}),(0,r.FD)("div",{className:p()(M().doctorInfoWrapper),children:[(0,r.Y)("div",{className:p()(M().doctorHeader),children:(0,r.FD)(k.Q1,{"data-is-mobile":E,className:"zh-TW"===W?"disable-click":"",children:[(0,r.Y)(A(),{href:on,children:(0,r.Y)("a",{href:on,children:(0,r.Y)(k.yW,(0,o.A)((0,i.A)({src:gn},cn),{loading:"lazy"}))})}),(0,r.FD)("div",{className:p()(M().doctorInfoHeader),children:[(0,r.Y)(A(),{href:on,children:(0,r.Y)("a",(0,o.A)((0,i.A)({},cn),{children:(0,r.Y)(c.T,{size:"md",type:"semiBold",children:N})}))}),(0,r.Y)(A(),{href:on,children:(0,r.Y)("a",(0,o.A)((0,i.A)({},cn),{children:(0,r.Y)(c.T,{className:p()(M().doctorDescription),size:"p4",children:hn})}))}),(0,r.FD)("div",{className:M().tags,children:[!tn&&!en&&(0,r.FD)(r.FK,{children:[L&&(0,r.Y)(A(),{href:an,children:(0,r.Y)("a",(0,o.A)((0,i.A)({},cn),{target:rn?"_blank":"_target",children:(0,r.Y)(f.vw,{className:M().doctorTag,type:"blue",children:Z({id:"doctorInfoComponent.booking",defaultMessage:"Booking"})})}))}),j&&(0,r.Y)(A(),{href:on,children:(0,r.Y)("a",(0,o.A)((0,i.A)({},cn),{children:(0,r.Y)(f.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:on,children:(0,r.Y)("a",(0,o.A)((0,i.A)({},cn),{children:(0,r.Y)(f.vw,{className:M().doctorTag,children:Z({id:"forChildren",defaultMessage:"For Children"})})}))}),(O===b.jc_.ADULTS||O===b.jc_.BOTH)&&(0,r.Y)(A(),{href:on,children:(0,r.Y)("a",(0,o.A)((0,i.A)({},cn),{children:(0,r.Y)(f.vw,{className:M().doctorTag,children:Z({id:"forAdults",defaultMessage:"For Adults"})})}))})]}),!pn&&(0,r.Y)("div",{className:p()(M().pricing,M().isDesktop),children:(0,r.Y)(A(),{href:on,children:(0,r.Y)("a",(0,o.A)((0,i.A)({},cn),{children:(0,r.Y)(k.zI,{priceType:B,price:P,priceTo:F})}))})}),V&&(0,r.Y)(I.A,{})]})]})}),D?(0,r.Y)(l.B,{size:"md",color:"secondary",isBlock:!0,className:p()(M().viewDetailsBtn),onClick:un,children:Z({id:"admin.guide.viewDetails",defaultMessage:"View details"})}):(0,r.Y)(y._,{trackingHospitalProps:sn,organizationLogo:(null===T||void 0===T?void 0:T.logo)||(null===g||void 0===g?void 0:g.logo),hospitalName:q,goHospitalPage:function(){G.push(ln)},isDisplayDistance:fn,distance:$,handleMakeAppointment:un,address:J,hospitalURL:ln,isMobile:E,isDoctorUnavailable:tn,isUnvalidBooking:en,doctorWebsite:h.doctorWebsite})]})]})}},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(50041),s=t(62862),d=t(27317),u=t(41172);function h(){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 h=function(){return n},n}function p(){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 p=function(){return n},n}function f(){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 f=function(){return n},n}var g=d.Ay.div.withConfig({componentId:"sc-680deca3-0"})(h(),(function(n){return n.theme.colors.gray200}),(function(n){return n.disabled&&!n.hasEdit&&"\n pointer-events: none;\n "}),(function(n){return n.theme.colors.blue200})),m=d.Ay.div.withConfig({componentId:"sc-680deca3-1"})(p(),(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"})(f(),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray200}));function v(){var n=(0,o.A)(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"]);return v=function(){return n},n}function b(){var n=(0,o.A)(["\n animation: "," 1.2s linear infinite;\n"]);return b=function(){return n},n}var w=(0,d.i7)(v()),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,h=n.id,p=n.placeholder,f=n.placeholderIcon,v=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,I=n.hasFilterValueFromOptions,Y=void 0===I||I,D=n.disabled,E=n.onKeyPress,N=n.customPlaceHolder,P=n.useInnerHTML,F=void 0!==P&&P,B=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),U=H[0],R=H[1],_=(0,a.useState)(null!==(t=null===b||void 0===b?void 0:b.value)&&void 0!==t?t:""),Q=_[0],V=_[1],G=(0,a.useRef)(null),W=(0,a.useRef)(null);(0,s.j)(W,(function(){R(!1)}));var q=L&&!B?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&&Y?w.filter((function(n){return n.value!==b.value})):w,J=b?w.find((function(n){return String(n.value)===String(b.value)})):null;return(0,r.Y)(g,{className:o,"data-dropdown-open":U,id:h,"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)(m,{ref:W,children:[(0,r.Y)(l.a,{ref:e,name:"dropdown-input-".concat(h),autoFocus:!1,displayIcon:f,size:"sm",onChange:function(n){void 0===B?(v(null,n),j(n)):(B(n),j(n))},placeholder:p,value:J?J.label:b&&b.value?b.label:L,autoComplete:"off",className:"input-search",onBlur:function(n){var e;(e=n).relatedTarget&&e.relatedTarget.id===h||(j(""),x&&x())},onFocus:y,isDisabled:D,errorMessage:U?"":C,onKeyDown:E,onClick:function(){return R(!0)}}),!D&&U&&(0,r.Y)(u.qw,{options:q,isLoading:A,hasIcons:!0,onChange:function(n,e){R(!1),console.log("on handleSelectOption: ",n),v(n,e)},setSearch:j,scrollToOption:Q,setScrollToOption:V,customPlaceHolder:N,useInnerHTML:F})]})})}))},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(68470),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 h=c.Ay.ul.withConfig({componentId:"sc-93bfd79c-0"})(l(),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray200})),p=c.Ay.li.withConfig({componentId:"sc-93bfd79c-1"})(s(),(function(n){return n.theme.colors.gray100})),f=c.Ay.div.withConfig({componentId:"sc-93bfd79c-2"})(d());c.Ay.div.withConfig({componentId:"sc-93bfd79c-3"})(u(),(function(n){return n.theme.colors.red700}),(function(n){return n.theme.sizes.fwRegular}));function g(){var n=(0,i.A)(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"]);return g=function(){return n},n}function m(){var n=(0,i.A)(["\n animation: "," 1.2s linear infinite;\n"]);return m=function(){return n},n}var v=(0,c.i7)(g()),b=c.Ay.svg.withConfig({componentId:"sc-56a2cda-0"})(m(),v);function 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,m=void 0!==g&&g,v=(0,r.useRef)(null);return(0,r.useEffect)((function(){if(v.current&&s){var n,t,i=e.findIndex((function(n){return n.value===s}));if(-1!==i)v.current.scroll({top:(null===(n=v.current)||void 0===n?void 0:n.children[i].getBoundingClientRect().top)-(null===(t=v.current)||void 0===t?void 0:t.getBoundingClientRect().top)})}}),[s]),(0,o.FD)(h,{className:"dropdown-option","data-has-icons":i,ref:v,children:[t&&(0,o.Y)("div",{className:"none",children:(0,o.FD)(b,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,o.Y)("mask",{id:"a",fill:"#fff",children:(0,o.Y)("path",{d:"M12 0A12 12 0 11.19 9.88l3.9.7A8.03 8.03 0 1012 3.98V0z"})}),(0,o.Y)("path",{d:"M12 0A12 12 0 11.19 9.88l3.9.7A8.03 8.03 0 1012 3.98V0z",stroke:"#2D87F3",strokeWidth:"8",mask:"url(#a)"})]})}),!t&&0===e.length&&(0,o.Y)("div",{className:"none",children:u||(0,o.Y)(a.T,{size:"sm",children:(0,o.Y)(w,{})})}),!t&&e.length>0&&e.map((function(n,e){return(0,o.Y)(p,{onClick:function(){c(n,n.value),d(n.value),l(""),console.log("on select item: ",n)},children:m?(0,o.Y)("div",{dangerouslySetInnerHTML:{__html:n.label}}):(0,o.FD)(o.FK,{children:[n.icon&&(0,o.Y)(f,{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 h(){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 h=function(){return n},n}function p(){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 p=function(){return n},n}var f,g=d.Ay.div.withConfig({componentId:"sc-56c5d382-0"})(u()),m=d.Ay.div.withConfig({componentId:"sc-56c5d382-1"})(h(),(function(n){return n.theme.colors.neutral50})),v=d.Ay.ul.withConfig({componentId:"sc-56c5d382-2"})(p(),(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 h=function(){return n},n}function p(){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 p=function(){return n},n}function f(){var n=(0,d.A)(["\n display: flex;\n flex-wrap: wrap;\n padding: 10px;\n gap: 8px;\n margin-right: 26px;\n"]);return f=function(){return n},n}function g(){var n=(0,d.A)(["\n display: flex;\n height: 28px;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n padding: 0 8px;\n background: ",";\n border-radius: 24px;\n\n .close-icon {\n height: 18px;\n width: 16px;\n }\n"]);return g=function(){return n},n}function m(){var n=(0,d.A)(["\n width: 100%;\n height: 100%;\n flex: 1 1 0%;\n input {\n width: 100%;\n }\n"]);return m=function(){return n},n}function v(){var n=(0,d.A)(["\n position: absolute;\n z-index: 110;\n top: 100%;\n right: 0;\n left: 0;\n display: block;\n max-height: 300px;\n margin-top: 4px;\n background: ",";\n border-radius: 6px;\n box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),\n -2px 2px 5px rgba(67, 86, 100, 0.123689);\n cursor: pointer;\n overflow-y: scroll;\n\n &[data-has-icons='true'] {\n border: 1px solid ",";\n background: white;\n box-shadow: none;\n filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04));\n }\n & {\n .none {\n display: flex;\n min-height: 30px;\n align-items: center;\n justify-content: center;\n }\n }\n\n &.dropdown-option__disabled {\n & > li {\n opacity: 0.5;\n cursor: not-allowed;\n background-color: ",";\n }\n }\n"]);return v=function(){return n},n}function b(){var n=(0,d.A)(["\n display: flex;\n padding: 12px 18px 12px 16px;\n &:hover,\n :active {\n background: ",";\n }\n"]);return b=function(){return n},n}function 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"})(h(),(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"})(p(),(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"})(f()),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"})(m()),I=u.Ay.ul.withConfig({componentId:"sc-8d9589f1-5"})(v(),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray200}),(function(n){return n.theme.colors.gray200})),Y=u.Ay.li.withConfig({componentId:"sc-8d9589f1-6"})(b(),(function(n){return n.theme.colors.gray100})),D=u.Ay.div.withConfig({componentId:"sc-8d9589f1-7"})(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})),N=t(11191),P=function(n){var e=n.className,t=n.style,a=n.id,d=n.placeholder,u=n.onChange,h=n.value,p=n.options,f=n.initialOptions,g=n.errorMessage,m=n.disabledOption,v=n.isLoading,b=n.setKeyword,w=n.isAbleToAddNew,A=void 0!==w&&w,P=n.onAddNew,F=(0,o.useState)(""),B=F[0],z=F[1],O=(0,o.useState)(!1),S=O[0],T=O[1],L=(0,o.useState)(p),j=L[0],H=L[1],U=(0,o.useState)(!1),R=U[0],_=U[1],Q=function(){return _(!R)},V=(0,o.useRef)(null),G=(0,o.useState)([]),W=G[0],q=G[1];(0,o.useEffect)((function(){H(p)}),[p]),(0,o.useEffect)((function(){if(f){f&&q(f);var n=null===f||void 0===f?void 0:f.map((function(n){return String(n.value)})),e=p.filter((function(e){return!(null===n||void 0===n?void 0:n.includes(String(e.value)))}));H(e)}}),[f,p]),(0,l.j)(V,(function(){_(!1)}));var J=function(n){var e=W.filter((function(e){return e.value!==n.value}));q(e),u(e),H(j.concat(n))};return(0,o.useEffect)((function(){b(B)}),[B]),(0,i.FD)(x,{className:c()(e,{focused:S}),"data-dropdown-open":R||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:Q,"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 J(n)},children:(0,i.Y)(N.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,_(!0),void z(e);var e},placeholder:d,value:h&&h.value?h.label:B,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(""),P&&P(t)}}}else"Backspace"===n.key&&""===n.currentTarget.value&&(n.preventDefault(),J(W[W.length-1]))},style:{width:W.length?void 0:250}})})]})}),g&&g.length>0&&(0,i.Y)(E,{className:"errorLabel",children:g}),R&&(0,i.FD)(I,{onClick:Q,className:c()("dropdown-option",{"dropdown-option__disabled":m}),children:[v&&(0,i.Y)("div",{className:"none",children:(0,i.FD)(s.vv,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,i.Y)("mask",{id:"a",fill:"#fff",children:(0,i.Y)("path",{d:"M12 0A12 12 0 11.19 9.88l3.9.7A8.03 8.03 0 1012 3.98V0z"})}),(0,i.Y)("path",{d:"M12 0A12 12 0 11.19 9.88l3.9.7A8.03 8.03 0 1012 3.98V0z",stroke:"#2D87F3",strokeWidth:"8",mask:"url(#a)"})]})}),!v&&0===j.length&&(0,i.Y)("div",{className:"none",children:(0,i.Y)(r.T,{size:"sm",children:(0,i.Y)(s.Sv,{})})}),!v&&j.length>0&&j.map((function(n){return(0,i.FD)(Y,{"data-selected":h&&h.value===n.value||void 0,onClick:function(){m||(z(""),function(n){var e=j.filter((function(e){return e.value!==n.value})),t=W.concat(n);q(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,h=n.beforeSubmitValidation,p=n.style,f=(0,c.mN)({defaultValues:r,mode:d});return(0,a.Y)(c.Op,(0,o.A)((0,i.A)({},f),{children:(0,a.Y)(s,{name:e,onSubmit:f.handleSubmit((function(n){if(h&&!h(n,f.setError))return!1;u(n)})),style:p,children:t})}))}},16282:function(n,e,t){"use strict";t.d(e,{y:function(){return a}});var i=t(73884),o=t(10297),r=t(6442);function a(){var n=(0,r.A)().formatMessage,e=(0,o.useRouter)().locale;return(0,i.useMemo)((function(){return{titles:{faq:n({id:"footer.faqs",defaultMessage:"FAQ"})},labels:{from:n({id:"form.label.from",defaultMessage:"From"}),to:n({id:"form.label.to",defaultMessage:"To"}),present:n({id:"common.date.present",defaultMessage:"Present"}),URL:n({id:"admin.form.url",defaultMessage:"URL"}),enterURL:n({id:"admin.form.enterUrl",defaultMessage:"Enter URL"}),insert:n({id:"common.insert",defaultMessage:"Insert"}),addQuestion:n({id:"form.faq.addQuestion",defaultMessage:"Add Question"}),editQuestion:n({id:"form.faq.editQuestion",defaultMessage:"Edit Question"}),question:n({id:"common.question",defaultMessage:"Question"}),answer:n({id:"common.answer",defaultMessage:"Answer"})},buttons:{save:n({id:"form.button.save",defaultMessage:"Save"}),cancel:n({id:"form.button.cancel",defaultMessage:"Cancel"}),remove:n({id:"form.button.remove",defaultMessage:"Remove"}),askQuestion:n({id:"hospital.branch.askQuestion",defaultMessage:"Ask Question"}),preview:n({id:"form.button.preview",defaultMessage:"Preview"}),edit:n({id:"form.button.edit",defaultMessage:"Edit"})},errorMessages:{invalidFormat:n({id:"form.error.format",defaultMessage:"Invalid format"}),requiredField:n({id:"common.error.requiredField",defaultMessage:"This field is required"}),minItems:function(e){return n({id:"common.error.minItems",defaultMessage:"Please select a minimum of {number} items"},{number:e})},maxItems:function(e){return n({id:"common.error.maxItems",defaultMessage:"Please select a maximum of {number} items"},{number:e})}}}}),[e])}},48403:function(n,e,t){"use strict";t.d(e,{nD:function(){return mo.n},Fg:function(){return li},Cv:function(){return oo},cW:function(){return be.AdminNavigation},oR:function(){return St},K3:function(){return go},rk:function(){return Di},By:function(){return he},Il:function(){return ve},vB:function(){return rn.v},h7:function(){return gn},V4:function(){return Q},wu:function(){return tn.w},rI:function(){return Lt.r},pd:function(){return s},eX:function(){return qi},jD:function(){return ki},KL:function(){return Po},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,h=n.placeholder,p=n.className,f=n.onChange,g=n.onKeyPress,m=n.isDisabled,v=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,I=n.dataEventAction,Y=n.dataEventLabel,D=(0,o.useRef)(null);return(0,o.useEffect)((function(){w?(D.current&&D.current.focus(),v&&v()):D.current&&D.current.blur()}),[w]),(0,i.FD)("div",{className:a()(l().mInput,p),"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:h,onChange:f,onKeyPress:function(n){return g&&g(n)},type:A||"text",value:t,disabled:m,onFocus:v,autoFocus:w||void 0,ref:D,"data-event-category":k,"data-event-action":I,"data-event-label":Y}),s&&(0,i.Y)(s,{className:l().displayIcon,onClick:d}),c&&(0,i.Y)("div",{onMouseDown:function(n){n.preventDefault(),null===d||void 0===d||d()},tabIndex:0,children:(0,i.Y)(c,{className:l().actionIcon})}),r&&r.length>0&&(0,i.Y)("label",{className:l().errorLabel,children:r}),x]})},d=t(81539),u=t(38629),h=t(69576),p=t(26869),f=t.n(p),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),p=s[0],g=s[1],m=t-1,v=function(n){n<=t&&n>0&&(g(n),c(n))};return(0,o.useEffect)((function(){g(r)}),[r]),(0,i.FD)("div",{className:a()(f().pagination,e),children:[(0,i.Y)("div",{className:a()(f().arrow,f().paginationBlock),onClick:function(){return v(p-1)},"data-last-page":1===p||void 0,children:(0,i.Y)(u.A,{})}),l.slice(p<=3?0:p-3,p<=3?5:p+2).map((function(n){return(0,i.Y)("li",{className:a()(f().paginationBlock),"data-page-active":n===p||void 0,onClick:function(){return v(n)},children:n},"pagination+".concat(n))})),(0,i.Y)("div",{className:a()(f().arrow,f().paginationBlock),onClick:function(){return v(p+1)},"data-last-page":p===m+1||void 0,children:(0,i.Y)(h.A,{})})]})},m=t(24537),v=t(27317);function b(){var n=(0,m.A)(["\n --dropdown-padding-top: 12px;\n --dropdown-padding-right: 44px;\n --dropdown-padding-bottom: 12px;\n --dropdown-padding-left: 18px;\n --dropdown-padding: var(--dropdown-padding-top) var(--dropdown-padding-right)\n var(--dropdown-padding-bottom) var(--dropdown-padding-left);\n\n position: relative;\n box-sizing: border-box;\n border: 1px solid ",";\n background: $white url('../../../public/bgSvg/arrow-down.svg') no-repeat;\n background-position: right 16px center;\n border-radius: 6px;\n\n &[data-dropdown-open] .dropdownName {\n padding: var(--dropdown-padding);\n // border: 1px solid $primary-base;\n border-radius: 6px;\n box-shadow: 0 0 2px 2px ",";\n }\n\n &[data-dropdown-open] {\n z-index: $zIndex-overlay;\n }\n\n &:hover {\n box-shadow: 0 0 2px 2px ",";\n }\n"]);return b=function(){return n},n}function w(){var n=(0,m.A)(["\n padding: var(--dropdown-padding);\n cursor: pointer;\n"]);return w=function(){return n},n}function A(){var n=(0,m.A)(["\n position: absolute;\n top: 100%;\n right: 0;\n left: 0;\n display: block;\n margin-top: 4px;\n background: $white;\n border-radius: 6px;\n box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),\n -2px 2px 5px rgba(67, 86, 100, 0.123689);\n cursor: pointer;\n"]);return A=function(){return n},n}function x(){var n=(0,m.A)(["\n padding: var(--dropdown-padding-top) var(--dropdown-padding-right)\n var(--dropdown-padding-bottom) var(--dropdown-padding-left);\n\n &:hover,\n :active {\n background: ",";\n }\n"]);return x=function(){return n},n}function y(){var n=(0,m.A)(["\n display: flex;\n justify-content: center;\n align-items: center;\n"]);return y=function(){return n},n}v.Ay.div.withConfig({componentId:"sc-b466dd23-0"})(b(),(function(n){return n.theme.colors.gray200}),(function(n){return n.theme.colors.blue200}),(function(n){return n.theme.colors.blue200})),v.Ay.div.withConfig({componentId:"sc-b466dd23-1"})(w()),v.Ay.ul.withConfig({componentId:"sc-b466dd23-2"})(A()),v.Ay.li.withConfig({componentId:"sc-b466dd23-3"})(x(),(function(n){return n.theme.colors.gray100})),v.Ay.div.withConfig({componentId:"sc-b466dd23-4"})(y());var C,M=t(78754),k=t(95456);function I(){return I=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,m.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,m.A)(["\n display: flex;\n flex-direction: column;\n gap: 2px;\n cursor: pointer;\n\n .row-info {\n display: flex;\n gap: 8px;\n & > * {\n &:not(:first-child) {\n display: flex;\n gap: 8px;\n align-items: center;\n ::before {\n content: '';\n display: flex;\n width: 4px;\n height: 4px;\n border-radius: 50%;\n background-color: ",";\n margin: 0 2px;\n }\n }\n }\n }\n"]);return Ln=function(){return n},n}function jn(){var n=(0,m.A)(["\n margin-left: auto;\n display: flex;\n gap: 4px;\n\n "," {\n position: absolute;\n top: 0;\n right: 0;\n }\n\n .button {\n padding: 4px;\n border-radius: 2px;\n height: 28px;\n cursor: pointer;\n width: fit-content;\n &:hover {\n background: ","70;\n }\n }\n"]);return jn=function(){return n},n}function Hn(){var n=(0,m.A)(["\n text-align: center;\n\n .group-btn {\n display: flex;\n gap: 12px;\n\n .btn {\n flex: 1;\n }\n }\n"]);return Hn=function(){return n},n}function Un(){var n=(0,m.A)(["\n display: flex;\n gap: 8px;\n align-items: center;\n flex: 1;\n\n "," {\n display: block;\n position: relative;\n }\n"]);return Un=function(){return n},n}v.Ay.div.withConfig({componentId:"sc-33ec5b80-0"})(On(),(function(n){return n.theme.colors.neutral50}),(function(n){return n.theme.colors.primaryBase})),v.Ay.div.withConfig({componentId:"sc-33ec5b80-1"})(Sn(),H.M.tdUp),v.Ay.img.withConfig({componentId:"sc-33ec5b80-2"})(Tn()),v.Ay.div.withConfig({componentId:"sc-33ec5b80-3"})(Ln(),(function(n){return n.theme.colors.gray400})),v.Ay.div.withConfig({componentId:"sc-33ec5b80-4"})(jn(),H.M.mbDown,(function(n){return n.theme.colors.blue50})),v.Ay.div.withConfig({componentId:"sc-33ec5b80-5"})(Hn()),v.Ay.div.withConfig({componentId:"sc-33ec5b80-6"})(Un(),H.M.mbDown),t(41450),t(21336),t(68289),t(1135),t(86204),t(1032),t(39372),t(89902),t(58665),t(90206);function Rn(){var n=(0,m.A)(["\n display: flex;\n justify-content: center;\n\n "," {\n justify-content: flex-start;\n }\n\n & > button {\n width: 100%;\n text-align: center;\n text-transform: uppercase;\n\n "," {\n width: auto;\n }\n }\n"]);return Rn=function(){return n},n}var _n,Qn,Vn,Gn,Wn,qn,Jn,Kn,Xn,Zn,$n,ne,ee,te,ie,oe,re,ae,ce,le,se,de,ue=v.Ay.div.withConfig({componentId:"sc-9afb6850-0"})(Rn(),H.M.tdUp,H.M.tdUp),he=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,h=n.isBlock,p=void 0!==h&&h,f=(0,P.$)(),g=f.locale,m=f.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(N.y[g]).concat(_.JpE).concat(m),isDisabled:l,isBlock:p,children:r})})},pe=t(72936),fe=t.n(pe);function ge(){return ge=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 Ne=function(){return n},n}function Pe(){var n=(0,m.A)(["\n padding: 12px 16px;\n margin: 0;\n > div {\n margin: 0;\n }\n & {\n p:first-child {\n color: ",";\n font-weight: 600;\n }\n p:not(:first-child) {\n color: ",";\n font-size: 12px;\n }\n }\n figcaption {\n white-space: unset;\n }\n"]);return Pe=function(){return n},n}function Fe(){var n=(0,m.A)(["\n padding: 20px 16px;\n border-bottom: 1px solid #f1f2f4;\n height: 64px;\n display: flex;\n align-items: center;\n .hamburgerMenu {\n cursor: pointer;\n margin-right: 24px;\n }\n &[data-is-collapsed='true'] {\n padding: 20px 12px;\n display: flex;\n justify-content: center;\n .hamburgerMenu {\n margin-right: 0;\n }\n }\n"]);return Fe=function(){return n},n}function Be(){var n=(0,m.A)(["\n position: absolute;\n left: -16px;\n height: 8px;\n border-bottom: 1px solid #f1f2f4;\n //width: 260px;\n"]);return Be=function(){return n},n}function ze(){var n=(0,m.A)(["\n margin-top: 18px;\n margin-bottom: 12px;\n"]);return ze=function(){return n},n}function Oe(){var n=(0,m.A)(["\n margin-top: 12px;\n &[data-is-collapsed='true'] {\n div {\n padding: 8px;\n background-color: white;\n justify-content: center;\n flex-direction: column;\n &::after {\n background-image: none;\n right: -4px !important;\n }\n div {\n padding: 0;\n display: flex;\n justify-content: center;\n }\n }\n svg {\n margin: 0;\n }\n }\n div {\n background-color: white;\n border-radius: 6px;\n }\n span {\n margin-left: 4px;\n }\n"]);return Oe=function(){return n},n}function Se(){var n=(0,m.A)(["\n padding: 13px 16px 24px;\n flex: 1;\n overflow-y: auto;\n\n &[data-is-collapsed='true'] {\n padding: 13px 12px 24px;\n div:has(.menu-children) {\n .menu-children {\n display: none;\n }\n }\n }\n"]);return Se=function(){return n},n}var Te,Le=v.Ay.div.withConfig({componentId:"sc-46e68f6c-0"})(Ne(),(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})),je=v.Ay.div.withConfig({componentId:"sc-46e68f6c-1"})(Pe(),(function(n){return n.theme.colors.secondaryDark}),(function(n){return n.theme.colors.gray500})),He=v.Ay.div.withConfig({componentId:"sc-46e68f6c-2"})(Fe()),Ue=(v.Ay.div.withConfig({componentId:"sc-46e68f6c-3"})(Be()),v.Ay.div.withConfig({componentId:"sc-46e68f6c-4"})(ze())),Re=v.Ay.div.withConfig({componentId:"sc-46e68f6c-5"})(Oe()),_e=v.Ay.div.withConfig({componentId:"sc-46e68f6c-6"})(Se()),Qe=t(44523),Ve=t(56791);function Ge(){return Ge=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 Ht=function(){return n},n}function Ut(){var n=(0,m.A)(["\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: space-between;\n"]);return Ut=function(){return n},n}function Rt(){var n=(0,m.A)(["\n margin-top: 12px;\n"]);return Rt=function(){return n},n}function _t(){var n=(0,m.A)(["\n margin: 4px 0px;\n color: ",";\n font-size: 14px;\n font-weight: 700;\n line-height: 22px;\n"]);return _t=function(){return n},n}function Qt(){var n=(0,m.A)(["\n margin: 4px 0px;\n color: ",";\n font-size: 14px;\n font-weight: 60px;\n line-height: 22px;\n"]);return Qt=function(){return n},n}function Vt(){var n=(0,m.A)(["\n position: absolute;\n top: 92px;\n right: 0;\n width: 82px;\n height: 164px;\n padding-left: 10px;\n"]);return Vt=function(){return n},n}function Gt(){var n=(0,m.A)(["\n display: flex;\n align-items: center;\n margin-top: 13px;\n img {\n margin-right: 16px;\n }\n"]);return Gt=function(){return n},n}function Wt(){var n=(0,m.A)(["\n & {\n .heading {\n font-size: 14px;\n font-weight: 600;\n line-height: 22px;\n }\n .specialty {\n font-size: 12px;\n line-height: 18px;\n }\n }\n"]);return Wt=function(){return n},n}v.Ay.div.withConfig({componentId:"sc-73b76268-0"})(jt(),(function(n){return n.theme.colors.blue50})),v.Ay.div.withConfig({componentId:"sc-73b76268-1"})(Ht(),(function(n){return n.theme.colors.gray800})),v.Ay.div.withConfig({componentId:"sc-73b76268-2"})(Ut()),v.Ay.div.withConfig({componentId:"sc-73b76268-3"})(Rt()),v.Ay.div.withConfig({componentId:"sc-73b76268-4"})(_t(),(function(n){return n.theme.colors.gray800})),v.Ay.div.withConfig({componentId:"sc-73b76268-5"})(Qt(),(function(n){return n.theme.colors.gray500})),v.Ay.div.withConfig({componentId:"sc-73b76268-6"})(Vt()),v.Ay.div.withConfig({componentId:"sc-73b76268-7"})(Gt()),v.Ay.div.withConfig({componentId:"sc-73b76268-8"})(Wt());function qt(){var n=(0,m.A)(["\n position: relative;\n display: flex;\n width: 100%;\n align-items: center;\n margin-bottom: 24px;\n img {\n margin-right: 16px;\n }\n"]);return qt=function(){return n},n}function Jt(){var n=(0,m.A)(["\n //padding-left: 14px;\n"]);return Jt=function(){return n},n}function Kt(){var n=(0,m.A)(["\n margin-top: 25px;\n .string {\n margin-top: 8px;\n }\n"]);return Kt=function(){return n},n}function Xt(){var n=(0,m.A)(["\n display: flex;\n width: 100%;\n"]);return Xt=function(){return n},n}function Zt(){var n=(0,m.A)(["\n position: absolute;\n right: 0;\n display: flex;\n align-items: center;\n cursor: pointer;\n"]);return Zt=function(){return n},n}v.Ay.div.withConfig({componentId:"sc-b35b16ee-0"})(qt()),v.Ay.div.withConfig({componentId:"sc-b35b16ee-1"})(Jt()),v.Ay.div.withConfig({componentId:"sc-b35b16ee-2"})(Kt()),v.Ay.div.withConfig({componentId:"sc-b35b16ee-3"})(Xt()),v.Ay.div.withConfig({componentId:"sc-b35b16ee-4"})(Zt()),t(58462);var $t,ni=t(83551),ei=t(98480),ti=t(54093),ii=t(96161),oi=t(16351);function ri(){return ri=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 ui=function(){return n},n}function hi(){var n=(0,m.A)(["\n display: flex;\n align-items: center;\n justify-content: space-evenly;\n\n svg {\n cursor: pointer;\n }\n"]);return hi=function(){return n},n}v.Ay.div.withConfig({componentId:"sc-922a83bd-0"})(di()),v.Ay.div.withConfig({componentId:"sc-922a83bd-1"})(ui()),v.Ay.div.withConfig({componentId:"sc-922a83bd-2"})(hi()),t(84461);var pi=t(858),fi=t(83776);function gi(){var n=(0,m.A)(["\n position: relative;\n"]);return gi=function(){return n},n}function mi(){var n=(0,m.A)(["\n display: flex;\n width: 100%;\n height: 100px;\n margin-top: 16px;\n\n "," {\n height: auto;\n flex-wrap: wrap;\n }\n\n .image-wrapper[data-is-error] {\n border: 1px dashed red;\n }\n .image-wrapper {\n position: relative;\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n justify-content: center;\n border: 1px dashed ",";\n border-radius: 4px;\n margin-right: 16px;\n margin-bottom: 16px;\n\n &:last-child {\n margin-right: 0;\n }\n\n .full {\n width: 100%;\n height: 100%;\n border-radius: 4px;\n object-fit: cover;\n object-position: 100% 0;\n }\n .icon {\n position: absolute;\n top: -10px;\n right: -8px;\n width: 20px;\n height: 20px;\n background-color: white;\n border-radius: 50%;\n cursor: pointer;\n text-align: center;\n & svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n .image-uploader {\n width: 100%;\n height: 100%;\n position: relative;\n }\n .image-uploader > input {\n display: none;\n }\n .label {\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n position: absolute;\n cursor: pointer;\n }\n .small {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 30px;\n border-radius: 4px;\n transform: translate(-50%, -50%);\n }\n\n "," {\n width: calc(33.33% - 16px);\n position: relative;\n\n .full,\n .image-uploader {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n .icon {\n z-index: 1;\n }\n &:before {\n content: '';\n display: block;\n padding-top: 100%;\n }\n }\n }\n"]);return mi=function(){return n},n}function vi(){var n=(0,m.A)(["\n display: flex;\n justify-content: flex-end;\n flex-wrap: wrap;\n align-items: center;\n gap: 15px;\n\n label {\n align-self: flex-end;\n margin-bottom: 3px;\n margin-left: 5px;\n color: ",";\n cursor: pointer;\n font-size: 13px;\n text-decoration: underline;\n\n "," {\n align-self: auto;\n white-space: nowrap;\n }\n }\n\n #file_input_id {\n display: none;\n }\n\n .choose-file {\n display: inline-flex;\n\n "," {\n width: 100%;\n justify-content: space-between;\n\n .label-form {\n margin-top: 0;\n }\n }\n }\n .clear-all {\n display: flex;\n align-items: center;\n cursor: pointer;\n svg {\n width: 1.2em;\n align-self: flex-end;\n }\n\n "," {\n right: 0;\n top: -35px;\n position: absolute;\n\n .label-form {\n margin-top: 0;\n }\n }\n }\n"]);return vi=function(){return n},n}function bi(){var n=(0,m.A)(["\n display: flex;\n & {\n .error {\n margin-top: 4px;\n margin-left: 8px;\n color: ",";\n font-size: 12px;\n }\n }\n"]);return bi=function(){return n},n}var wi=v.Ay.div.withConfig({componentId:"sc-42d688a9-0"})(gi()),Ai=v.Ay.div.withConfig({componentId:"sc-42d688a9-1"})(mi(),H.M.mbDown,(function(n){return n.theme.colors.gray200}),H.M.mbDown),xi=v.Ay.div.withConfig({componentId:"sc-42d688a9-2"})(vi(),(function(n){return n.theme.colors.primaryBase}),H.M.mbDown,H.M.mbDown,H.M.mbDown),yi=v.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,vn.A)().formatMessage,s=(0,o.useState)(["","","","",""]),u=s[0],h=s[1],p=(0,o.useState)(["","","","",""]),f=p[0],g=p[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})),h(n)}}),[a]);var m=function(){var n=(0,pi.A)((function(n){var e,t,i,o,a,c;return(0,fi.__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 o_.qdA?[3,3]:[4,v(t.files[o])]:[3,4];case 2:if(a=l.sent(),-1===(c=i.findIndex((function(n){return""===n}))))return[2];i[c]=a,l.label=3;case 3:return o++,[3,1];case 4:return h(i),r&&r(i),n.target.value="",[2]}}))}));return function(e){return n.apply(this,arguments)}}(),v=function(n){return new Promise((function(e){var t,i=new FileReader;i.readAsDataURL(n),i.onload=function(){t=i.result,e(t)}}))},b=function(){var n=(0,pi.A)((function(n,e){var t,i,o,a,c,l;return(0,fi.__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>_.qdA?((o=(0,d.A)(f))[e]="File size too large",g(o),[2]):((a=(0,d.A)(f))[e]="",g(a),c=(0,d.A)(u),[4,v(i.files[0])]):[2];case 1:return l=s.sent(),c[e]=l,h(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]="",h(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(_.JpE,"/svg/imageholder.svg"),className:"small"})})]})})},"img-".concat(e))}))}),(0,i.Y)(yi,{children:f.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){m(n)}})]}),(0,i.FD)("div",{className:"clear-all",onClick:function(){h(["","","","",""]),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 Ii(){var n=(0,m.A)(["\n position: relative;\n\n > div {\n position: relative;\n }\n span {\n left: 70%;\n display: flex;\n width: 36px;\n align-items: center;\n justify-content: center;\n background: ",";\n border-radius: 32px;\n color: ",";\n font-weight: ",";\n }\n"]);return Ii=function(){return n},n}var Yi=v.Ay.div.withConfig({componentId:"sc-f178071e-0"})(Ii(),(function(n){return n.theme.colors.blue50}),(function(n){return n.theme.colors.blue600}),(function(n){return n.theme.sizes.fwBold})),Di=function(n){var e=n.amount;return(0,i.Y)(Yi,{children:(0,i.Y)("div",{children:e&&(0,i.Y)("span",{children:e})})})};function Ei(){var n=(0,m.A)(["\n display: flex;\n flex-direction: column;\n padding: 1rem;\n border: 1px solid ",";\n border-radius: 6px;\n box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 2px rgba(0, 0, 0, 0.06),\n 0px 0px 1px rgba(0, 0, 0, 0.04);\n\n > hr:first-child {\n margin-top: 1rem;\n margin-bottom: 0.5rem;\n }\n\n > hr:last-child {\n margin-top: 0.5rem;\n margin-bottom: 1rem;\n }\n\n button {\n margin-top: 1rem;\n }\n\n "," {\n margin: 16px 0;\n }\n"]);return Ei=function(){return n},n}function Ni(){var n=(0,m.A)(["\n cursor: pointer;\n .price {\n "," {\n width: 100%;\n }\n }\n"]);return Ni=function(){return n},n}function Pi(){var n=(0,m.A)(["\n display: flex;\n align-items: center;\n\n > :is(img, svg, picture, figure) {\n max-width: 2.5rem;\n aspect-ratio: 1/1;\n border-radius: 6px;\n object-fit: contain;\n }\n\n gap: 4px;\n"]);return Pi=function(){return n},n}function Fi(){var n=(0,m.A)(["\n display: -webkit-box;\n overflow: hidden;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;\n"]);return Fi=function(){return n},n}var Bi,zi,Oi,Si,Ti;v.Ay.article.withConfig({componentId:"sc-cfeed39b-0"})(Ei(),(function(n){return n.theme.colors.neutral200}),H.M.mbDown),v.Ay.div.withConfig({componentId:"sc-cfeed39b-1"})(Ni(),H.M.tdUp),v.Ay.header.withConfig({componentId:"sc-cfeed39b-2"})(Pi()),v.Ay.span.withConfig({componentId:"sc-cfeed39b-3"})(Fi());function Li(){return Li=Object.assign?Object.assign.bind():function(n){for(var e=1;e0&&(0,a.Y)("div",{className:"errorLabel",children:(0,a.Y)("p",{className:"errorMessage",children:f})})]})}},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(68470),s=t(67546),d=t(83551),u=t(69988),h=t(59850),p=t(84091),f=t(10297),g=t(6442),m=t(36259),v=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,I=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})),Y=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})),N=t(51743),P=t(11191);function F(){return F=Object.assign?Object.assign.bind():function(n){for(var e=1;e svg {\n flex: 0 0 20px;\n }\n }\n }\n"]);return R=function(){return n},n}function _(){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 _=function(){return n},n}function Q(){var n=(0,b.A)(["\n height: 138px;\n border: 1px solid #e4e8ec;\n border-radius: 4px;\n"]);return Q=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 q(){var n=(0,b.A)(["\n text-align: center;\n max-width: 320px;\n"]);return q=function(){return n},n}function J(){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 J=function(){return n},n}function K(){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 K=function(){return n},n}function X(){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 X=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"})(U()),tn=w.Ay.div.withConfig({componentId:"sc-4825eb13-3"})(R(),(function(n){return n.theme.colors.white})),on=w.Ay.div.withConfig({componentId:"sc-4825eb13-4"})(_(),(function(n){return n.theme.colors.gray600})),rn=w.Ay.div.withConfig({componentId:"sc-4825eb13-5"})(Q()),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"})(q()),dn=w.Ay.div.withConfig({componentId:"sc-4825eb13-10"})(J(),(function(n){return n.theme.colors.gray600}),(function(n){return n.theme.colors.blue600})),un=w.Ay.div.withConfig({componentId:"sc-4825eb13-11"})(K()),hn=w.Ay.div.withConfig({componentId:"sc-4825eb13-12"})(X(),(function(n){return n.theme.colors.blue600})),pn=t(40568),fn=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=fn.LF(s,{type:"binary"}),u=(0,pn.A)(d.SheetNames,1)[0],h=d.Sheets[u],p=fn.Wp.sheet_to_json(h,{raw:!0,header:1});p.length&&(l=(0,o.A)(p[0].map((function(n){return n.toLowerCase().replace(/[\r\n]/gm,"").trim().split(" ").join("_")}))),p.forEach((function(n,e){0!==e&&c.push(n)}))),0===c.length&&(a="No data to import"),console.log("rows data: ",p),console.log("headerValid: ",e),console.log("headerKeys: ",l),(c.length>t||l.length!==e.length)&&(a="Wrong file format");var f=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}));(!f||!g&&c.length)&&(a="Wrong file format")}catch(m){a="Cannot read this file"}i({file:n,error:a,header:l,data:c})},r.onerror=function(){i({file:n,error:"Cannot read this file",header:[],data:[]})}}))},mn=t(40959);function vn(){return vn=Object.assign?Object.assign.bind():function(n){for(var e=1;e0}),[F,Pn]),_n=(0,c.useMemo)((function(){return"success"===F||Pn&&0===(null===Pn||void 0===Pn?void 0:Pn.failed)}),[F,Pn]),Qn=(0,c.useMemo)((function(){return Pn?Pn.failed+Pn.success:q.length}),[q,Pn]),Vn=(0,c.useMemo)((function(){return Pn?Pn.failed:wn.length}),[wn,Pn]);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 In&&"processing"===F?(t={country_id:On,hash:In},[4,(0,p.W3)((0,p.er)(h.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"],_(o.percent),"processing"!==o.status&&"processed"!==o.status&&(clearInterval(n),B(o.status),Fn(o),G(!1)),"import_success"===o.status&&I({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)}}),[In,F]),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=!!F,Hn(),e&&e(),void(n&&Y.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:mn.zv1,onChange:Ln}),(0,a.Y)("label",{htmlFor:"input-file-upload",children:(0,a.FD)(sn,{children:[(0,a.Y)(Yn,{}),(0,a.Y)(dn,{children: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:R,status:O||F,statusImport:F,onRemove:Hn}),"processing"===F&&(0,a.Y)(s.L,{className:"loading-import"})]})]}),(0,a.FD)("div",{className:"wrapper-message",children:["success"===O&&(0,a.Y)(d.A,{closeIcon:(0,a.Y)(a.FK,{}),contentIcon:(0,a.Y)(Cn.A,{}),text: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"}),Rn&&(0,a.Y)(d.A,{contentIcon:(0,a.Y)(Dn.A,{}),closeIcon:(0,a.Y)(hn,{children:k({id:"admin.download.import.list",defaultMessage:"Download the list"})}),text:k({id:"admin.import.masterData.status",defaultMessage:"".concat(Vn,"/").concat(Qn," records can not be loaded")},{recordsError:Vn,recordsTotal:Qn}),type:"warning",onClose:function(){if(!Pn){var n=(0,o.A)(wn);return n.unshift(["Line"].concat((0,o.A)(X),["Message Error","Status import"])),void(0,v.zW)(n,"Error rows import")}Pn.result&&(0,v.nQ)("https://cdn-healthcare.hellohealthgroup.com".concat(Pn.result))}}),_n&&(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,v.nQ)(A)},children:[(0,a.Y)(yn,{}),k({id:"common.download.template",defaultMessage:"Download template"})]}),(0,a.Y)(u.B,{size:"md",onClick:Un,isLoading:V,disabled:"success"!==O&&"processing"!==F,children:k("success"!==O&&"processing"!==F?{id:"admin.upload.upload",defaultMessage:"Upload"}:{id:"admin.import.import",defaultMessage:"Import"})})]})]})}):null}},40224:function(n,e,t){"use strict";t.d(e,{A:function(){return y}});var i=t(2445),o=(t(73884),t(68470)),r=t(69988),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 h(){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 h=function(){return n},n}function p(){var n=(0,c.A)(["\n font-size: 14px;\n line-height: 22px;\n letter-spacing: -0.2px;\n color: ",";\n"]);return p=function(){return n},n}function f(){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 f=function(){return n},n}var g=l.Ay.div.withConfig({componentId:"sc-d2f87818-0"})(s()),m=l.Ay.div.withConfig({componentId:"sc-d2f87818-1"})(d(),(function(n){return n.theme.colors.white})),v=l.Ay.div.withConfig({componentId:"sc-d2f87818-2"})(u()),b=l.Ay.div.withConfig({componentId:"sc-d2f87818-3"})(h(),(function(n){return n.theme.colors.white})),w=l.Ay.div.withConfig({componentId:"sc-d2f87818-4"})(p(),(function(n){return n.theme.colors.gray600})),A=l.Ay.div.withConfig({componentId:"sc-d2f87818-5"})(f()),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)(m,{children:[(0,i.FD)(v,{children:[(0,i.Y)(o.T,{type:"bold",size:"base",children:d({id:"popup.campaign.friso.title",defaultMessage:"Campaign Friso message"})}),(0,i.Y)("div",{className:"close",onClick:l,children:(0,i.Y)(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 N}});var i=t(2445),o=t(73884),r=t(68470),a=t(6442),c=t(58065),l=t(24537),s=t(69988),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 h(){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 h=function(){return n},n}function p(){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 p=function(){return n},n}function f(){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 f=function(){return n},n}function g(){var n=(0,l.A)(["\n font-size: 14px;\n line-height: 22px;\n letter-spacing: -0.2px;\n color: ",";\n\n span {\n cursor: pointer;\n color: ",";\n line-height: 22px;\n text-decoration-line: underline;\n }\n"]);return g=function(){return n},n}function m(){var n=(0,l.A)(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 16px;\n gap: 10px;\n\n button {\n border-radius: 4px;\n border: 1px solid ",";\n padding: 5px 12px;\n }\n"]);return m=function(){return n},n}function v(){var n=(0,l.A)(["\n &[data-color='primary'] {\n border-radius: 4px;\n border: 1px solid ",";\n padding: 5px 12px;\n background-color: ",";\n color: ",";\n font-weight: 600;\n\n &:hover {\n background-color: "," !important;\n }\n\n &.btn-user-profile {\n border: 1px solid ",";\n color: ",";\n }\n }\n"]);return v=function(){return n},n}var b,w,A=d.Ay.div.withConfig({componentId:"sc-b9693b02-0"})(u()),x=d.Ay.div.withConfig({componentId:"sc-b9693b02-1"})(h(),(function(n){return n.theme.colors.white})),y=d.Ay.div.withConfig({componentId:"sc-b9693b02-2"})(p()),C=d.Ay.div.withConfig({componentId:"sc-b9693b02-3"})(f(),(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"})(m(),(function(n){return n.theme.colors.neutral200})),I=(0,d.Ay)(s.B).withConfig({componentId:"sc-b9693b02-6"})(v(),(function(n){return n.theme.colors.neutral200}),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.blue600}),(function(n){return n.theme.colors.blue600})),Y=t(8758);function D(){return D=Object.assign?Object.assign.bind():function(n){for(var e=1;eUser Profile in order to receive all the booking confirmation email. Thank you!",tagName:"p",values:{span:function(n){return(0,i.Y)("span",{onClick:d,children:n})}}})})}),(0,i.FD)(k,{children:[(0,i.Y)(I,{size:"sm",type:"button",onClick:o,children:s({id:"bookingCard.continueBooking",defaultMessage:"Continue Booking"})}),(0,i.Y)(I,{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(68470),a=t(35291),c=t(14677),l=t(84091),s=t(10297),d=t(6442),u=t(58065),h=t(24537),p=t(36257);function f(){var n=(0,h.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 f=function(){return n},n}var g=t(27317).Ay.div.withConfig({componentId:"sc-b7b31f9f-0"})(f(),(function(n){return n.theme.colors.gray800}),p.M.mbDown,(function(n){return n.theme.colors.green700})),m=t(40959),v=t(22657),b=function(n){var e,t=n.price,h=n.priceType,p=n.priceTo,f=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,m.vne.FIXED,x({id:"admin.doctor.servicePrice.fixed",defaultMessage:"Fixed Price"})),(0,i.A)(e,m.vne.STARTING,x({id:"admin.doctor.servicePrice.start",defaultMessage:"Starting from"})),(0,i.A)(e,m.vne.RANGE,x({id:"admin.doctor.servicePrice.range",defaultMessage:"Range"})),e),M=function(n,e){return h===m.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":!!f,children:[(0,o.FD)(c.s,{gap:4,className:"price-wrapper",children:[(0,o.Y)(v.A,{}),(0,o.Y)(r.T,{size:"p4",color:a.w.colors.gray600,children: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,p||"")})},price:M(t,p||"")}}):C[h]})]}),!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,p||"")}),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)}),!!f&&(0,o.Y)(r.T,{size:"p4",color:a.w.colors.green700,children:M(Number(t)*(1-f/100),Number(p)*(1-f/100)||"")})]})}},51743:function(n,e,t){"use strict";t.d(e,{z:function(){return h}});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})),h=function(n){var e=n.percent,t=n.className,o=n.status;return(0,i.FD)(s,{className:t,children:[(0,i.Y)(d,{className:o}),(0,i.Y)(u,{style:{width:"".concat(e,"%")},className:o})]})}},3184:function(n,e,t){"use strict";t.d(e,{k:function(){return m}});var i=t(2445),o=t(32876),r=t.n(o),a=t(6442),c=t(24537),l=t(27317);function s(){var n=(0,c.A)(["\n display: flex;\n height: fit-content;\n align-items: center;\n gap: 2px;\n"]);return s=function(){return n},n}function d(){var n=(0,c.A)(["\n display: flex;\n align-items: center;\n padding: 1px 8px;\n background-color: ",";\n border-radius: 32px;\n gap: 4px;\n p {\n font-size: 14px;\n font-weight: 600;\n line-height: 22px;\n }\n"]);return d=function(){return n},n}function u(){var n=(0,c.A)(["\n color: ",";\n font-size: 14px;\n font-weight: 400;\n line-height: 22px;\n cursor: pointer;\n text-decoration: underline !important;\n"]);return u=function(){return n},n}var h=l.Ay.div.withConfig({componentId:"sc-78a33fb6-0"})(s()),p=l.Ay.div.withConfig({componentId:"sc-78a33fb6-1"})(d(),(function(n){return n.theme.colors.neutral50})),f=l.Ay.a.withConfig({componentId:"sc-78a33fb6-2"})(u(),(function(n){return n.theme.colors.gray600})),g=t(75295),m=function(n){var e=n.ratingPoint,t=n.ratingScale,o=n.reviewCounting,c=n.className,l=n.reviewsUrl,s=(0,a.A)().formatMessage,d=null===e||void 0===e?void 0:e.toFixed(1),u=t?"".concat(d,"/").concat(t):d;return(0,i.FD)(h,{className:c,children:[!!e&&(0,i.FD)(p,{children:[(0,i.Y)(g.A,{}),(0,i.Y)("p",{children:"".concat(u)})]}),!!o&&(0,i.Y)(r(),{href:l||"#",children:(0,i.Y)(f,{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(68470),a=t(13078),c=t(35291),l=t(27516),s=t(84091),d=t(76672),u=t(88491),h=t(73419),p=t(40959),f=t(32876),g=t.n(f),m=t(6442),v=t(24537),b=t(27317),w=t(81539);function A(){var n=(0,v.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 I=function(){return n},n}function Y(){var n=(0,v.A)(["\n display: flex;\n width: 100%;\n flex-direction: column;\n align-items: flex-start;\n justify-content: flex-start;\n"]);return Y=function(){return n},n}function D(){var n=(0,v.A)(["\n margin: 8px 0;\n gap: 26px;\n\n .call {\n width: 55px;\n margin-left: 6px;\n }\n\n .price {\n display: flex;\n align-items: center;\n gap: 8px;\n font-size: 14px;\n line-height: 22px;\n color: ",";\n > svg {\n width: 16px;\n height: 16px;\n }\n }\n\n .booking {\n display: flex;\n width: 100%;\n flex-direction: row;\n align-items: left;\n justify-content: space-between;\n gap: 8px;\n\n .button {\n display: inline-block;\n width: 100%;\n }\n }\n\n .ctaButton {\n padding: 10px 10px;\n }\n\n .phoneButton {\n position: relative;\n display: block;\n background: none;\n color: $gray-800;\n font-size: 16px;\n font-weight: $fw-bold;\n line-height: 24px;\n\n &::before {\n position: absolute;\n top: 50%;\n left: -22px;\n display: inline-block;\n width: 17px;\n height: 18px;\n margin-right: 6px;\n background-image: url(\"data:image/svg+xml,%3Csvg width='17' height='17' viewBox='0 0 17 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M6.73835 10.6191C4.92101 8.66086 4.05558 7.52351 5.65612 6.41801C7.07138 5.44039 7.35193 4.57287 6.02862 2.60429C4.80596 0.785613 4.31309 0.349235 2.83199 1.81058C-0.318838 4.91964 0.617252 8.16021 4.59895 12.4505C8.58064 16.7408 11.848 18.0296 15.3468 15.2957C16.9917 14.0107 16.5955 13.489 14.8602 12.1208C12.9823 10.6397 12.0669 10.823 10.9234 12.0936C9.63051 13.5305 8.55541 12.5771 6.73833 10.6191L6.73835 10.6191Z' fill='%23262626'/%3E%3C/svg%3E%0A\");\n background-repeat: no-repeat;\n content: '';\n transform: translateY(-50%);\n }\n }\n"]);return D=function(){return n},n}function E(){var n=(0,v.A)(["\n flex-direction: column;\n align-items: flex-start;\n "]);return E=function(){return n},n}function N(){var n=(0,v.A)(["\n display: flex;\n width: 100%;\n align-items: center;\n padding-bottom: 8px;\n /* margin-top: 14px; */\n .service-image {\n display: flex;\n margin-right: 16px;\n\n > img {\n border-radius: 6px;\n object-fit: contain;\n }\n }\n\n .service-info {\n display: flex;\n align-items: center;\n\n ","\n .service-tracking {\n cursor: pointer;\n [data-event-category] > * {\n pointer-events: none;\n }\n }\n }\n"]);return N=function(){return n},n}function P(){var n=(0,v.A)(["\n position: absolute;\n top: 16px;\n right: 16px;\n justify-content: flex-end;\n"]);return P=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"})(I());var F,B=b.Ay.div.withConfig({componentId:"sc-4acc0154-3"})(Y()),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"})(N(),y(E())),S=(0,b.Ay)(C.k).withConfig({componentId:"sc-4acc0154-6"})(P()),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 m}});var i=t(858),o=t(83776),r=t(2445),a=t(73884),c=t(59850),l=t(84091),s=t(38221),d=t.n(s),u=t(6442),h=t(24537);function p(){var n=(0,h.A)(["\n b {\n font-weight: bold;\n }\n"]);return p=function(){return n},n}var f=t(27317).Ay.section.withConfig({componentId:"sc-3b95409e-0"})(p()),g=t(43184),m=function(n){var e=n.onSelectArticle,t=n.isInputDisabled,s=void 0!==t&&t,h=n.selectedArticles,p=(0,a.useState)(""),m=p[0],v=p[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:m,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]}}))})),[m]),k=(0,a.useMemo)((function(){return d()(M,500)}),[M]);(0,a.useEffect)((function(){return m.length>2&&k(),function(){k.cancel()}}),[m,k]);var I=(0,a.useMemo)((function(){var n=new RegExp("(".concat(m,")"),"gi");return w.map((function(e){return{label:e.label.replace(n,"$1"),value:e.value}}))}),[w,m]),Y=(0,a.useMemo)((function(){return m.length>2?"No Results":"Search for an article"}),[m]),D=(0,u.A)().formatMessage;return(0,r.Y)(f,{children:(0,r.Y)(g.U1,{id:"search-article",onChange:function(n,t){n&&e(n),t&&v(String(t))},options:I.filter((function(n){return!(null===h||void 0===h?void 0:h.find((function(e){return e.value===n.value})))})),placeholder:D({id:"admin.articlePicker.placeholder",defaultMessage:"Search for articles"}),isLoading:y,disabled:s,customPlaceHolder:Y,useInnerHTML:!0})})}},68289:function(n,e,t){"use strict";t.d(e,{E4:function(){return p},UL:function(){return h},XD:function(){return f},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]}))},h=function(n,e){try{return(0,a.A)(n.workingDay).getTime()-(0,a.A)(e.workingDay).getTime()}catch(t){return 0}},p=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},f=function(n,e,t){for(var i=0,o=new Date(n);o<=e;o.setDate(o.getDate()+1))t(o,i),i++}},33700:function(n,e,t){"use strict";t.d(e,{b:function(){return Y}});var i=t(2445),o=t(73884),r=t(72574),a=t(68470),c=t(35291),l=t(61808),s=t(32485),d=t.n(s),u=t(48403),h=t(6442),p=t(48260),f=t(24632);function g(){var n=(0,h.A)().formatMessage;return(0,i.FD)(p.Rl,{children:[(0,i.Y)(f.A,{width:120,height:120}),(0,i.Y)(a.T,{size:"p2",className:"mt-[16px] text-c",children:n({id:"admin.emptyData",defaultMessage:"Empty data"})})]})}var m=t(24537),v=t(27317);function b(){var n=(0,m.A)(["\n width: 100%;\n & .row {\n border-bottom: 1px solid\n ",";\n cursor: pointer;\n }\n & .row[data-is-active] {\n background-color: ",";\n }\n & .body[data-is-hoverable] {\n > tr:hover {\n background-color: ","70; // reduce color alpha\n }\n }\n\n & td,\n th {\n padding: 8px;\n }\n & th:nth-child(1),\n td:nth-child(1) {\n padding-left: 24px;\n }\n thead {\n th {\n vertical-align: top;\n .has-sort {\n gap: 5px;\n display: flex;\n cursor: pointer;\n }\n }\n }\n"]);return b=function(){return n},n}function w(){var n=(0,m.A)(["\n display: flex;\n align-items: center;\n justify-content: left;\n & > .avatar {\n display: flex;\n & img {\n max-width: 40px;\n max-height: 40px;\n }\n }\n"]);return w=function(){return n},n}function A(){var n=(0,m.A)(["\n padding-left: 16px;\n"]);return A=function(){return n},n}function x(){var n=(0,m.A)(["\n font-size: 13px;\n background: white;\n position: relative;\n z-index: 1;\n border-top: 1px solid ",";\n & > tr {\n border-bottom-color: ",";\n }\n"]);return x=function(){return n},n}var y=v.Ay.div.withConfig({componentId:"sc-bc6c12e4-0"})(b(),(function(n){return n.theme.colors.gray100}),(function(n){return n.theme.colors.blue50}),(function(n){return n.theme.colors.blue50})),C=v.Ay.div.withConfig({componentId:"sc-bc6c12e4-1"})(w()),M=v.Ay.div.withConfig({componentId:"sc-bc6c12e4-2"})(A()),k=(0,v.Ay)(r.c.Head).withConfig({componentId:"sc-bc6c12e4-3"})(x(),(function(n){return n.theme.colors.neutral100}),(function(n){return n.theme.colors.neutral100})),I=t(88576),Y=function(n){var e=n.data,t=n.headings,s=n.className,h=n.hasOrderColumn,p=n.moreOptions,f=n.sortParmas,m=n.onRowClicked,v=n.onClickSort,b=n.hasOptions,w=void 0===b||b,A=n.isShowEmpty,x=n.id,Y=(0,o.useState)(void 0),D=Y[0],E=Y[1],N=function(n){E(n),null===m||void 0===m||m(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:[h&&(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===f||void 0===f?void 0:f.sort)&&(e="desc"),"desc"===(null===f||void 0===f?void 0:f.sort)&&(e="asc"),v&&v({sort_by:n,sort:e})}(n.sortKey||"")},children:["object"===typeof n?n.text:n,"object"===typeof n&&(null===n||void 0===n?void 0:n.sort)&&(0,i.Y)(I.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){N&&N(n)},isActive:n[0].value===D||void 0,className:d()("row",[x&&"table-".concat(x,"-row-").concat(e+1)]),children:[h&&(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 p?p(n[t].metaData||n[t].value):p).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),h=t(43184),p=t(73419),f=t(24537);function g(){var n=(0,f.A)(["\n width: 100%;\n margin-right: 5px;\n"]);return g=function(){return n},n}var m=t(27317).Ay.div.withConfig({componentId:"sc-adfcd035-0"})(g()),v={value:"",label:""},b=function(n){var e=n.id,t=n.hospitalId,f=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,p.$)(),k=(0,c.useState)([]),I=k[0],Y=k[1],D=(0,c.useState)(null),E=D[0],N=D[1],P=(0,c.useState)(!1),F=P[0],B=P[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}})),Y(e)),[2]}}))}));return function(){return n.apply(this,arguments)}}();t&&n()}),[t]),(0,c.useEffect)((function(){var n=function(){var n=(0,i.A)((function(n){var e,t;return(0,r.__generator)(this,(function(i){switch(i.label){case 0:return[4,(0,u.W3)((0,u.er)(d.R.GET_ADMIN_BRANCH_DETAIL,{branchId:n}),"GET")];case 1:return(e=i.sent())&&1===e._status&&(null===e||void 0===e?void 0:e._data)?(t=(0,s.a6)(e._data.branch),N({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):N(null)}),[b]),(0,a.Y)(l.m,{label:null===E||void 0===E?void 0:E.label,styles:T,opened:!!E&&O&&!F,children:(0,a.Y)(m,{onMouseOver:function(){S(!0)},onMouseOut:function(){S(!1)},children:(0,a.Y)(h.U1,{style:f,className:g,id:e,placeholder:w||"All branches",value:null!==E&&void 0!==E?E:void 0,onChange:function(n){S(!1),B(!1),n?(N(n),C(n)):(null===E||void 0===E?void 0:E.value)&&C(v)},onFocus:function(){B(!0)},onBlur:function(){B(!1)},options:I,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),h=t(43184),p=t(88542),f=t(73419),g=t(40959),m=t(2543),v=t(24537);function b(){var n=(0,v.A)(["\n width: 100%;\n margin-right: 5px;\n"]);return b=function(){return n},n}var w=t(27317).Ay.div.withConfig({componentId:"sc-b504765d-0"})(b()),A={value:"",label:""},x=function(n){var e=n.style,t=n.className,v=n.id,b=n.value,x=n.placeholder,y=n.errorMessage,C=n.disabled,M=n.params,k=n.inorgeSiloam,I=void 0!==k&&k,Y=n.handleChange,D=(0,f.$)(),E=(0,f.$)().locale,N=void 0===E?"vi-VN":E,P=g.EmC[N].id,F=(0,c.useState)([]),B=F[0],z=F[1],O=(0,c.useState)(null),S=O[0],T=O[1],L=(0,c.useState)(!1),j=L[0],H=L[1],U=(0,c.useState)(!1),R=U[0],_=U[1],Q=(0,p.o)().navigationDropdownControl,V=(0,c.useState)(!1),G=V[0],W=V[1],q=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:P||""},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!I||!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)}}(),J=(0,c.useCallback)((0,m.debounce)((function(n){return q(n)}),300),[]),K=(0,c.useMemo)((function(){return{tooltip:{display:"block"}}}),[]);return(0,c.useEffect)((function(){q()}),[Q]),(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:K,opened:!!S&&R&&!j,children:(0,a.Y)(w,{onMouseOver:function(){_(!0)},onMouseOut:function(){_(!1)},children:(0,a.Y)(h.U1,{style:e,className:t,id:v,placeholder:x||"",value:null!==S&&void 0!==S?S:void 0,onChange:function(n,e){var t,i;T(n),_(!1),H(!1),console.log("DropdownSearch selected"),t=n,i=e,console.log("option: ",t),console.log("value: ",S),t?(J(""),t.value===(null===S||void 0===S?void 0:S.value)&&t.label===(null===S||void 0===S?void 0:S.label)||(Y(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))&&Y(A),J(i))},onFocus:function(){H(!0)},onBlur:function(){H(!1)},options:B,isLoading:G,errorMessage:y,hasFilterOption:!1,disabled:C})})})}},39608:function(n,e,t){"use strict";t.d(e,{w:function(){return R}});var i,o,r=t(2445),a=t(35291),c=t(43277),l=t(68470),s=t(69988),d=t(87018),u=t(27516),h=t(9060),p=t(40959),f=t(10297),g=t(73884);function m(){return m=Object.assign?Object.assign.bind():function(n){for(var e=1;e 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 H=function(){return n},n}var U=t(27317).Ay.footer.withConfig({componentId:"sc-86b1f07-0"})(H(),j.M.mbDown,j.M.mbDown,(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.neutral500}),j.M.tdUp,j.M.mbDown,(function(n){return n.theme.colors.neutral500}),j.M.tdUp,j.M.tdUp,(function(n){return n.theme.colors.white}),j.M.tdUp,(function(n){return n.theme.colors.white}),(function(n){return n.theme.sizes.fwBold}),j.M.mbDown,(function(n){return n.theme.colors.neutral500}),j.M.mbDown,(function(n){return n.theme.colors.neutral500}),(function(n){return n.theme.colors.white}),(function(n){return n.theme.sizes.fwBold}),j.M.tdUp),R=function(n){var e=n.className,t=n.newsletterText,i=n.facebookLink,o=n.instagramLink,g=n.twitterLink,m=n.linkedinLink,v=n.youtubeLink,b=n.copyrightText,w=n.followusText,A=n.informationLinks,x=n.bigLinks,C=n.hellohealthLinks,M=n.type,k=void 0===M?"main":M,Y=n.logoType,D=void 0===Y?"hellohealth":Y,E=n.isMobile,P=n.flagLinks,F=(0,T.A)().formatMessage,B=(0,f.useRouter)().locale,O=void 0===B?"vi-VN":B,L=32,j=32;return E&&(L=24,j=24),(0,r.Y)(U,{className:e,style:"mini"===k?{backgroundColor:a.w.colors.neutral50}:{},"next-page-hide":!0,children:(0,r.Y)(h.m,{children:(0,r.Y)("div",{className:"inner","data-type":k,"next-page-hide":"",children:"main"===k?(0,r.FD)(r.FK,{children:[(0,r.Y)(c.L,{className:"footer-logo",type:D,isLightLogo:!0}),(0,r.FD)("div",{className:"columns",children:[(0,r.FD)("div",{className:"newsletter",children:[(0,r.Y)(l.T,{size:"p1",type:"bold",children:t}),(0,r.Y)(s.B,{className:"signupButton",color:"primary",size:"lg",children:F({id:"footer.signUp"})}),(0,r.FD)("div",{className:"social",children:[w&&(0,r.Y)(l.T,{size:"sm",type:"regular",children:w}),(0,r.FD)("div",{className:"icons",children:[i&&(0,r.Y)("a",{"data-event-category":"Footer","data-event-action":"Follow us - Facebook","data-content-label":i,href:i,children:(0,r.Y)(y,{})}),o&&(0,r.Y)("a",{"data-event-category":"Footer","data-event-action":"Follow us - Instagram","data-content-label":o,href:o,children:(0,r.Y)(I,{})}),m&&(0,r.Y)("a",{href:m,"data-event-category":"Footer","data-event-action":"Follow us - LinkedIn","data-event-label":m,children:(0,r.Y)(N,{})}),g&&(0,r.Y)("a",{"data-event-category":"Footer","data-event-action":"Follow us - Twitter","data-event-label":g,href:g,children:(0,r.Y)(z,{})}),v&&(0,r.Y)("a",{"data-event-category":"Footer","data-event-action":"Follow us - Youtube","data-event-label":v,href:v,children:(0,r.Y)(S,{})})]}),(0,r.Y)("hr",{className:"hrMobile"})]})]}),(0,r.FD)("div",{children:[(0,r.Y)("div",{className:"biglinks",children:x.map((function(n){return n.link&&(0,r.Y)("a",{"data-event-category":"Footer","data-event-action":n.title,"data-event-label":"https://".concat(u.y[O]).concat(n.link),className:"bigLink",href:n.link,children:n.title},n.title)}))}),(0,r.Y)("hr",{className:"hrMobile"}),(0,r.FD)("div",{className:"mHalf",children:[(0,r.Y)(l.T,{type:"regular",size:"sm",className:"linkTitle",children:F({id:"footer.information"})}),A.map((function(n){return n.link&&(0,r.Y)("a",{"data-event-category":"Footer","data-event-action":n.title,"data-event-label":"https://".concat(u.y[O]).concat(n.link),className:"link",href:n.link,children:(0,r.Y)(l.T,{size:"sm",type:"regular",children:n.title})},n.title)}))]}),(0,r.FD)("div",{className:"mHalf",children:[(0,r.Y)(l.T,{type:"regular",size:"sm",className:"linkTitle",children:F({id:"footer.helloHealth"})}),C.map((function(n){return n.link&&(0,r.Y)("a",{"data-event-category":"Footer","data-event-action":n.title,"data-event-label":n.link,className:"link",href:n.link,children:(0,r.Y)(l.T,{size:"sm",type:"regular",children:n.title})},n.title)}))]}),(0,r.FD)(r.FK,{children:[(0,r.Y)("hr",{className:"hrMobile"}),(0,r.FD)("div",{className:"otherSites",children:[(0,r.Y)(l.T,{type:"regular",size:"sm",className:"linkTitle",children:F({id:"footer.otherSites"})}),(0,r.Y)("div",{className:"flags",children:null===P||void 0===P?void 0:P.map((function(n){return!!n.country&&(0,r.Y)("a",{className:"link",href:n.link,"data-event-category":"Footer","data-event-action":"".concat(p.qH0[n.country]),"data-event-label":n.link,children:(0,r.Y)(d.F,{country:n.country,width:j,height:L,rounded:!0})},"flag-".concat(n.country))}))})]})]})]})]}),(0,r.Y)("hr",{}),(0,r.FD)("div",{className:"copyright","data-is-amp":void 0,children:[(0,r.Y)("a",{href:"https://www.dmca.com/Protection/Status.aspx?ID=752026fa-bb3c-450e-b184-b8051d04e5c4&refurl=https://".concat(u.y[O],"/"),children:(0,r.Y)("img",{src:"".concat(p.JpE,"/images/dmca.png"),alt:"DMCA Icon"})}),b&&(0,r.Y)(l.T,{size:"xs",type:"regular",children:b})]})]}):(0,r.Y)(r.FK,{children:(0,r.FD)("div",{className:"columns",children:[(0,r.FD)("div",{className:"mHalf",children:[(0,r.Y)(l.T,{type:"regular",size:"sm",className:"linkTitle",children:F({id:"footer.information"})}),A.map((function(n){return n.link&&(0,r.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(u.y[O]).concat(n.link),children:(0,r.Y)(l.T,{size:"sm",type:"regular",style:{color:a.w.colors.gray800},children:n.title})},n.title)}))]}),(0,r.FD)("div",{className:"mHalf",children:[(0,r.Y)(l.T,{type:"regular",size:"sm",className:"linkTitle",children:F({id:"footer.helloHealth"})}),C.map((function(n){return n.link&&(0,r.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,r.Y)(l.T,{size:"sm",type:"regular",style:{color:a.w.colors.gray800},children:n.title})},n.title)}))]}),"mini"!==k&&(0,r.Y)("hr",{className:"hrMobile"}),(0,r.Y)("div",{className:"newsletter",children:(0,r.FD)("div",{className:"social",children:[w&&(0,r.Y)(l.T,{size:"sm",type:"regular",style:{color:a.w.colors.neutral500},children:w}),(0,r.FD)("div",{className:"icons",children:[i&&(0,r.Y)("a",{"data-event-category":"Footer","data-event-action":"Follow us - Facebook","data-content-label":i,href:i,children:(0,r.Y)(y,{})}),o&&(0,r.Y)("a",{"data-event-category":"Footer","data-event-action":"Follow us - Instagram","data-content-label":o,href:o,children:(0,r.Y)(I,{})}),m&&(0,r.Y)("a",{"data-event-category":"Footer","data-event-action":"Follow us - LinkedIn","data-content-label":m,href:m,children:(0,r.Y)(N,{})}),g&&(0,r.Y)("a",{"data-event-category":"Footer","data-event-action":"Follow us - Twitter","data-content-label":g,href:g,children:(0,r.Y)(z,{})})]})]})})]})})})})})}},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(13078),l=t(35291),s=t(68470),d=t(27516),u=t(84091),h=t(24431),p=t(35094),f=t(73419),g=t(32876),m=t.n(g),v=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,v.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"})})]})},I=t(89252),Y=function(n){var e=n.distance;return n.isDisplayDistance?(0,r.Y)(r.FK,{children:Number(e)>=0&&(0,r.FD)(r.FK,{children:[(0,r.Y)("div",{className:"location-separator",children:(0,r.Y)("svg",{width:"4",height:"4",children:(0,r.Y)("circle",{cx:"2",cy:"2",r:"2",fill:"#BFBFBF"})})}),(0,r.Y)(s.T,{size:"p3",color:l.w.colors.gray500,children:"".concat((0,I.m8)(e)," km")})]})}):null},D=t(89394),E=t(40959),N=t(1135);function P(){return P=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,p.A)((0,h.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"})}))}()]})})},I=t(47760),Y=t(95456),D=t(1247),E=function(n){var e=n.type,t=n.hospitalInfo,i=n.gps,h=n.phone,p=n.orderedListIndex,f=n.onHospitalClick,g=n.onMainActionClick,m=n.onPhoneClick,v=n.children,b=n.onGlobalCardClick,w=n.customRenderHospitalUrl,y=n.goHospitalPage,C=n.hospitalURL,M=n.hospitalStatus,E=(0,l.d)().isMobile,N=(0,s.c)(),P=(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]),F=(0,d.$)().locale,B=w||(0,c.eP)(t),z="https://".concat(a.y[F]).concat(B),O=["granted","prompt"].includes(N);return(0,o.FD)(A.yO,{onClick:b,children:["service"===e&&v,"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(p+1),"data-event-label":z,onClick:function(n){n.stopPropagation(),f(t)},children:(0,o.Y)(Y.Y,{layout:"responsive",src:t.logo||"".concat(u.JpE,"/images/avatar.jpg"),width:64,height:64,quality:100,objectFit:"contain"})}),(0,o.FD)(A.fp,{children:[(0,o.Y)(I.J,{hospitalInfo:t,gps:i,orderedListIndex:p,type:e,customRenderHospitalUrl:w}),!E&&v]})]})}),E&&v]}),"service"===e&&(0,o.Y)(D._,{organizationLogo:t.logo,hospitalName:t.name,goHospitalPage:y,isDisplayDistance:O,distance:P,handleMakeAppointment:function(){return f(t)},address:t.address,hospitalURL:C,trackingHospitalProps:{"data-event-category":"Care","data-event-action":"Hospital Click ".concat(p+1),"data-event-label":"https://".concat(a.y[F]).concat(u.JpE).concat((0,c.eP)(t))}}),"hospital"===e&&(0,o.Y)(k,{hospitalInfo:t,phone:h,type:e,hospitalStatus:M,onMainActionClick:g,onPhoneClick:m})]})}},51524:function(n,e,t){"use strict";t.d(e,{$5:function(){return H},Ao:function(){return U},Bm:function(){return S},FD:function(){return T},SK:function(){return O},d4:function(){return P},eO:function(){return j},fp:function(){return E},fs:function(){return D},mS:function(){return N},ns:function(){return B},rO:function(){return R},sb:function(){return L},xC:function(){return F},xY:function(){return z},xr:function(){return _},yO:function(){return Y}});var i=t(24537),o=t(36257),r=t(69988),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 h(){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 h=function(){return n},n}function p(){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 p=function(){return n},n}function f(){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 f=function(){return n},n}function g(){var n=(0,i.A)(["\n .svgTrigger {\n pointer-events: none;\n }\n button[data-color='tertiary'][data-size='md'] {\n padding: 9px 15px;\n\n > span {\n white-space: nowrap;\n display: -webkit-box;\n overflow: hidden;\n -webkit-line-clamp: 1;\n }\n }\n"]);return g=function(){return n},n}function m(){var n=(0,i.A)(["\n span {\n white-space: nowrap;\n }\n"]);return m=function(){return n},n}function v(){var n=(0,i.A)(["\n display: -webkit-box;\n overflow: hidden;\n width: 100%;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n word-break: break-all;\n"]);return v=function(){return n},n}function b(){var n=(0,i.A)(["\n "," {\n margin-top: 8px;\n }\n "," {\n gap: 6px;\n margin: 8px 0;\n }\n"]);return b=function(){return n},n}function 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 I(){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 I=function(){return n},n}var Y=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-0"})(l()),D=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-1"})(s(),o.M.mbDown),E=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-2"})(d()),N=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-3"})(u()),P=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-4"})(h()),F=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-5"})(p(),o.M.mbDown,(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.white})),B=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-6"})(f(),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"})(m()),S=(a.Ay.span.withConfig({componentId:"sc-4b85d5f3-9"})(v()),(0,a.Ay)(c.k).withConfig({componentId:"sc-4b85d5f3-10"})(b(),o.M.mbUp,o.M.mbDown)),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),U=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-16"})(M()),R=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-17"})(k()),_=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-18"})(I(),(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 In.i},T5:function(){return kn.T},JC:function(){return p}});t(39608);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 h=t(2445),p=function(){return(0,h.Y)("p",{children:"You don't have permission to access this page. Please contact Po!"})},f=t(858),g=t(38971),m=t(24537),v=t(83776),b=t(68470),w=t(35291),A=t(72574),x=t(13078),y=t(69988),C=t(27516),M=t(57414),k=t(74029),I=t(19475),Y=t(21447),D=t(68519),E=t(66298),N=t(1806),P=t(4736),F=t(94334),B=t(2543),z=t(58638),O=t(72946),S=t(7350),T=t.n(S),L=t(6442),j=t(91266),H=t(27317),U=t(45351),R=t(55550),_=t(68289),Q=t(2966),V=t.n(Q),G=t(36257),W=t(69831);function q(){var n=(0,m.A)(["\n padding: 13px 0px;\n border: 1px solid ",";\n border-radius: 6px;\n width: 100%;\n padding-left: 16px;\n font-weight: normal;\n text-align: start;\n cursor: pointer;\n position: relative;\n z-index: 3;\n background-color: ",";\n\n &::after {\n content: '';\n width: 15px;\n height: 15px;\n background-repeat: no-repeat;\n background-size: 14px;\n background-image: url('/care/bgSvg/arrow-down.svg');\n background-position: center;\n position: absolute;\n right: 15px;\n top: 18px;\n transition: all 0.5s ease;\n transform: rotate(0);\n pointer-events: none;\n }\n\n &.show {\n border-bottom: 0;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n\n &::after {\n transform: rotate(180deg);\n }\n }\n"]);return q=function(){return n},n}function J(){var n=(0,m.A)(["\n div.selectable {\n position: absolute;\n width: 100%;\n border-radius: 6px;\n border: 1px solid ",";\n border-top: 0;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n top: 48px;\n pointer-events: none;\n transition: all 0.5s ease;\n\n &[data-is-static] {\n .pickerOverlayWrapper {\n width: 100%;\n max-width: 100%;\n }\n }\n\n .pickerOverlay {\n margin-top: 0;\n }\n }\n\n .show + div.selectable {\n pointer-events: auto;\n }\n"]);return J=function(){return n},n}function K(){var n=(0,m.A)(["\n width: 100%;\n margin-bottom: 16px;\n\n .doctor-tabs {\n display: flex;\n justify-content: space-between;\n\n li {\n padding: 8px 0;\n width: 50%;\n height: max-content;\n display: flex;\n justify-content: center;\n margin: 0;\n\n & > div {\n text-align: center;\n p {\n white-space: unset;\n }\n }\n }\n }\n"]);return K=function(){return n},n}function X(){var n=(0,m.A)(["\n position: absolute;\n background-color: ",";\n padding: 2px 4px;\n border-radius: 2px;\n right: 16px;\n top: 6px;\n"]);return X=function(){return n},n}function Z(){var n=(0,m.A)(["\n display: flex;\n justify-content: flex-end;\n align-items: center;\n margin-top: 20px;\n\n &.has-nearest {\n justify-content: space-between;\n }\n\n .nearest-text {\n color: ",";\n font-size: 14px;\n font-weight: 600;\n line-height: 22px;\n }\n\n .today-btn {\n color: ",";\n font-size: 14px;\n font-weight: 600;\n line-height: 22px;\n cursor: pointer;\n }\n"]);return Z=function(){return n},n}function $(){var n=(0,m.A)(["\n display: flex;\n flex-direction: column;\n gap: 24px;\n margin-bottom: 24px;\n z-index: 10;\n\n "," {\n margin-bottom: 0;\n }\n\n &.sticky-booking-card-show {\n "," {\n position: fixed;\n top: auto !important;\n bottom: 0;\n bottom: 0;\n right: 16px;\n left: 16px;\n }\n\n .sticky-booking-show {\n margin-bottom: 24px;\n "," {\n background: ",";\n margin-bottom: 0;\n\n .service-name {\n display: none;\n }\n .service-info {\n padding: 8px 16px 16px 16px;\n border-top: 1px solid\n ",";\n background: ",";\n border-radius: 0;\n }\n\n .bookingCard {\n border-top: 1px solid\n ",";\n border-radius: 0;\n }\n }\n }\n }\n "," {\n position: initial;\n\n .ad-container {\n display: none;\n }\n }\n\n "," {\n position: initial;\n\n .ad-container {\n display: none;\n }\n }\n"]);return $=function(){return n},n}function nn(){var n=(0,m.A)(["\n background: ",";\n padding: 12px;\n border-radius: 6px;\n\n &.sticky-booking-hide {\n position: absolute;\n opacity: 0;\n }\n\n &.sticky-booking-show {\n display: block;\n position: sticky;\n z-index: 10;\n\n --fallback: 7rem;\n --distance-from-header: 8px;\n top: calc(\n var(--header-height, var(--fallback)) + var(--distance-from-header)\n );\n\n "," {\n padding: 0;\n }\n }\n\n "," {\n margin-left: -16px;\n margin-right: -16px;\n border-radius: 0;\n }\n\n .description-price {\n ol {\n li {\n list-style-type: decimal;\n }\n }\n\n ul {\n li {\n list-style-type: disc;\n }\n }\n\n strong {\n font-weight: bold;\n }\n em {\n font-style: italic;\n }\n\n ol,\n ul {\n padding-left: 16px;\n strong {\n font-weight: bold;\n }\n em {\n font-style: italic;\n }\n }\n }\n\n .booking-info-header {\n margin-bottom: 16px;\n\n "," {\n display: none;\n }\n .booking-info-row {\n display: flex;\n gap: 8px;\n\n svg {\n flex: 0 0 20px;\n }\n }\n\n .booking-info-row-text {\n color: ",";\n font-size: 14px;\n font-weight: 400;\n line-height: 22px;\n }\n }\n"]);return nn=function(){return n},n}function en(){var n=(0,m.A)(["\n --sticky-el-height: ","px;\n --fallback: 7rem;\n --distance-from-header: 8px;\n\n display: flex;\n flex-direction: column;\n flex: 1;\n position: relative;\n\n .sticky-booking-card-ad-desktop {\n top: calc(\n var(--header-height, var(--fallback)) + var(--distance-from-header)\n );\n }\n\n &:has(.sticky-booking-show) .sticky-booking-card-ad-desktop {\n top: calc(\n var(--header-height, var(--fallback)) + var(--sticky-el-height) +\n var(--distance-from-header) * 2\n );\n }\n"]);return en=function(){return n},n}var tn=H.Ay.button.withConfig({componentId:"sc-88a93553-0"})(q(),(function(n){return n.theme.colors.neutral100}),(function(n){return n.theme.colors.white})),on=(0,H.Ay)(W.Sp).withConfig({componentId:"sc-88a93553-1"})(J(),(function(n){return n.theme.colors.neutral100})),rn=H.Ay.div.withConfig({componentId:"sc-88a93553-2"})(K()),an=H.Ay.div.withConfig({componentId:"sc-88a93553-3"})(X(),(function(n){return n.theme.colors.green500})),cn=H.Ay.div.withConfig({componentId:"sc-88a93553-4"})(Z(),(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.colors.blue600})),ln=H.Ay.div.withConfig({componentId:"sc-88a93553-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-88a93553-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-88a93553-7"})(en(),(function(n){return n.stickyElHeight||0})),un=t(21336),hn=t(20607),pn=t(40224),fn=t(47055),gn=t(40630),mn=t(71584),vn=t(57656),bn=t(80783),wn=t(79951),An=t(71082),xn=t(38431);function yn(){var n=(0,m.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,p=n.doctorInfo,m=n.schedules,S=n.isLoading,H=n.chosenDate,Q=n.firstDayHasSlot,G=n.isMobile,W=n.isStickyBtn,q=n.rangeDaysPicked,J=n.type,K=n.isTeleMedicine,X=void 0!==K&&K,Z=n.price,$=n.originalPrice,nn=n.priceType,en=n.priceTo,yn=n.validTelemedicine,Mn=n.validOutpatient,kn=n.description,In=n.doctorId,Yn=n.serviceId,Dn=n.frisoCampaign,En=void 0!==Dn&&Dn,Nn=n.bufferTime,Pn=void 0===Nn?0:Nn,Fn=n.isSiloam,Bn=void 0!==Fn&&Fn,zn=n.address,On=n.adUnitPath,Sn=n.showAdMid,Tn=n.showAdTop,Ln=n.vouchers,jn=n.isValidTanganil,Hn=void 0!==jn&&jn,Un=n.onSelectedTimeCallback,Rn=n.onChangeChosenDate,_n=n.onContinueBooking,Qn=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,P.useAppContext)().state,qn=(0,i.useContext)(u.B).pushNotifications,Jn=(0,z.I)({id:"booking-scroll-top-trigger",heightHeader:G?0:65}).isTopSticky,Kn=(0,F.m)({serviceInfo:a,doctorInfo:p}),Xn=(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),he=ue[0],pe=ue[1],fe=(0,i.useState)(0),ge=fe[0],me=fe[1],ve=(0,i.useState)(!0),be=ve[0],we=ve[1],Ae=(0,i.useState)(!1),xe=Ae[0],ye=Ae[1],Ce=(0,i.useState)(!1),Me=Ce[0],ke=Ce[1],Ie=(0,i.useState)(!1),Ye=Ie[0],De=Ie[1],Ee=(0,i.useState)(!1),Ne=Ee[0],Pe=Ee[1],Fe=(0,i.useState)(!1),Be=Fe[0],ze=Fe[1],Oe=(0,i.useState)(!1),Se=Oe[0],Te=Oe[1],Le=(0,i.useState)(!1),je=Le[0],He=Le[1],Ue=(0,i.useState)([]),Re=Ue[0],_e=Ue[1],Qe=(0,i.useState)([]),Ve=Qe[0],Ge=Qe[1],We=(0,i.useState)([]),qe=We[0],Je=We[1],Ke=(0,i.useState)([]),Xe=Ke[0],Ze=Ke[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,B.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,fn.A)(),rt=ot.message,at=ot.updateMessage,ct=(0,i.useMemo)((function(){return"doctor"===J?X?"Telemedicine - Continue Booking Click":"Outpatient - Continue Booking Click":"Continue Booking Click"}),[J,X]),lt=function(n,e){return!(0,Y.A)(n)||(0,D.A)(new Date("".concat((0,E.A)(n,"yyyy/MM/dd")," ").concat(e)))-(0,D.A)(new Date)>=0},st=(0,E.A)(new Date,"y-M-dd");(0,l.j)(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=m.find((function(n){return n.workingDay===i})))||void 0===n?void 0:n.workingTimes.morning,[]),r=(0,k.wW)(null===(e=m.find((function(n){return n.workingDay===i})))||void 0===e?void 0:e.workingTimes.afternoon,[]),a=(0,k.wW)(null===(t=m.find((function(n){return n.workingDay===i})))||void 0===t?void 0:t.workingTimes.evening,[]);_e(o),Ge(r),Je(a),o.length>0?(Ze(o),me(0)):r.length>0?(Ze(r),me(1)):a.length>0?(Ze(a),me(2)):(Ze(o),me(0)),pe(!1),ye(!1)}(),Gn(je)}),[H,m,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*Pn;return!(e.getTime()<=t.getTime()+i)},ht=(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]),pt=(0,i.useMemo)((function(){return!!Hn||!Bn&&Number(Z)>0}),[Bn,Z,Hn]),ft=(0,i.useMemo)((function(){var n=(0,E.A)(H,"yyyy-MM-dd");return(null===Q||void 0===Q?void 0:Q.getTime())===(0,N.A)(n).getTime()}),[H,Q]),gt=(0,i.useMemo)((function(){return m.length?new Date(m[m.length-1].workingDay):new Date}),[m]),mt=(0,i.useMemo)((function(){var n;return Jn&&$n?(null===(n=$n.current)||void 0===n?void 0:n.clientHeight)||0:80}),[Jn,$n]),vt=(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,h.FD)("div",{className:c()(V().noResults,e?V().noResultsSmall:void 0),"data-is-part-of-day":"partOfDay"===t,children:[(0,h.Y)(bn.A,{}),(0,h.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=m.length<1&&!S,At=function(){var n=(0,f.A)((function(){var n,e,t,i,a,c;return(0,v.__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]:(pe(!1),Te(!1),G&&(null===(e=nt.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})),[3,4])):(Jn&&window.scrollTo({top:0,left:0,behavior:"smooth"}),qn({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 X&&En?(t="?doctorId=".concat(In,"&date=").concat((0,E.A)(H,d.cuM),"&scheduleId=").concat(re.schedule_id,"&telemedicine=").concat(X||""),i="".concat(de).concat(t),d.dXu?Wn.isLoggedIn&&Xn?[4,(0,r.T7)((0,r.er)(o.R.GET_FRISO_VALIDATION,{booking_type:"doctor",doctor_id:In||""}),"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),_n&&_n(re),l.label=4;case 4:return[2]}}))}));return function(){return n.apply(this,arguments)}}(),xt=function(){De(!1)},yt=function(){Jn&&window.scrollTo({top:0,left:0,behavior:"smooth"}),Q&&(Rn(Q),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(){m&&m.length&&we(0!==dt(m[0]))}),[m]),(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(){Un&&Un(re)}),[re]),(0,i.useEffect)((function(){if(Q&&!(0,Y.A)(new Date(Q))){var n=m.find((function(n){return(0,N.A)(n.workingDay).getTime()===Q.getTime()}));n&&(Rn(new Date(Q)),ae(void 0),we(0!==dt(n)))}}),[Q,m]),(0,i.useEffect)((function(){var n=document.querySelector(".woot-widget--expanded");if(n&&ne)if(Jn&&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"}),[Jn,W,G,ne]),(0,h.FD)(h.FK,{children:[(0,h.Y)(ln,{style:{zIndex:20},children:(0,h.FD)(sn,{children:[(0,h.FD)("div",{className:"booking-info-header",children:[(0,h.FD)("div",{className:"mb-[8px]",children:[(0,h.Y)("h3",{className:V().bookingHeading,children:ce({id:"hospital.bookAnAppointment",defaultMessage:"Book an appointment"})}),kn&&(0,h.Y)(b.T,{size:"p4",color:w.w.colors.gray800,className:"description-price",children:(0,h.Y)("div",{dangerouslySetInnerHTML:{__html:kn}})})]}),zn&&(0,h.FD)("div",{className:"booking-info-row",children:[(0,h.Y)(xn.A,{style:{marginTop:"3px"}}),(0,h.Y)("div",{className:"booking-info-row-text",children:zn})]})]}),(0,h.FD)("div",{className:c()(V().oBookingCard,t),children:["doctor"===J&&(0,h.FD)(h.FK,{children:[yn&&(0,h.Y)(an,{children:(0,h.Y)(b.T,{size:"n1",type:"bold",color:"white",children:ce({id:"doctorDetailPage.appointment.new",defaultMessage:"New"})})}),2===Mt.length?(0,h.Y)(rn,{children:(0,h.Y)(A.T,{className:"doctor-tabs",initialTab:0,tabContent:Mt,style:{paddingLeft:0},onChange:function(n){Qn(new Date),Vn&&Vn(!!n),ae(void 0),nt.current&&(nt.current.scrollLeft=0),Ne&&Pe(!1)}})}):(0,h.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,h.FD)("div",{className:V().cardInner,"data-is-shown-picker":te,children:[(0,h.FD)(on,{ref:Zn,children:[(0,h.Y)(tn,{className:c()({show:te}),onClick:function(){return ie(!te)},children:q.length>0&&"".concat((0,_.og)(q[0],se)," - ").concat((0,_.og)(q[1],se))}),te&&(0,h.Y)(A.D,{onChange:function(n){var e=(0,E.A)(n,"yyyy-MM-dd"),t=m.find((function(n){return(0,N.A)(n.workingDay).getTime()===(0,N.A)(e).getTime()}));t&&(Rn(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,h.FD)(cn,{className:"".concat(ft?"has-nearest":""),children:[ft&&(0,h.Y)("div",{className:"nearest-text",children:ce({id:"bookingCard.nearestAvaliable",defaultMessage:"Nearest availabilities"})}),(0,h.Y)("div",{className:"today-btn",onClick:function(){m&&m.length&&(Rn(new Date(m[0].workingDay)),ae(void 0),we(0!==dt(m[0])))},children:ce({id:"admin.home.filter.today",defaultMessage:"Today"})})]}),wt?bt({smallSpacing:!1,type:"all"}):(0,h.FD)(h.FK,{children:[(0,h.Y)("div",{className:V().dateWrapper,children:(0,h.FD)("div",{className:c()(V().dateBlocks),ref:nt,id:"dateBlocksGroup",children:[!G&&it&&(0,h.Y)("button",{onClick:function(){return Ct(-282)},className:V().scrollButton,"aria-label":"Scroll back","aria-disabled":"start"===tt,children:(0,h.Y)(un.h,{iconSize:16,svgIcon:{stroke:"start"!==tt?w.w.colors.gray600:w.w.colors.gray200},children:(0,h.Y)(wn.A,{})})}),xe?(0,h.Y)(h.FK,{children:(0,h.Y)(I.xA,{columns:3,columnsDesktop:3,gap:"8px",children:Array(3).fill(null).map((function(n,e){return(0,h.Y)(j.A,{width:86,height:68},e)}))})}):m.map((function(n){return n&&(0,h.FD)("div",{onClick:function(e){vt(e,n,$e.current,Rn,ae),Gn(),we(0!==dt(n)),me(0),He(!1)},className:c()(V().dateBlock),"data-is-day-active":n.workingDay===(0,E.A)(H,d.cuM)||void 0,"data-is-telemedicine":X,role:"button",tabIndex:0,children:[(0,h.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,N.A)(n.workingDay)," E ",{locale:U.tV[se]})}),(0,h.Y)(b.T,{size:"p3",type:"bold",children:(0,E.A)((0,N.A)(n.workingDay),"d/L",{locale:U.tV[se]})}),(0,h.Y)("span",{"data-has-availability":!!n.workingTimes,children:(0,h.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,h.Y)("button",{onClick:function(){return Ct(282)},className:c()(V().scrollButton,V().next),"aria-label":"Scroll forward","aria-disabled":"end"===tt,children:(0,h.Y)(un.h,{iconSize:16,svgIcon:{stroke:"end"!==tt?w.w.colors.gray600:w.w.colors.gray200},children:(0,h.Y)(An.A,{})})})]})}),(0,h.Y)("div",{className:c()(V().times),children:function(){var n=!!(null===Re||void 0===Re?void 0:Re.length),e=!!(null===Ve||void 0===Ve?void 0:Ve.length),t=!!(null===qe||void 0===qe?void 0:qe.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,!he||void 0));return(0,h.FD)(h.FK,{children:[(0,h.Y)(rn,{children:(0,h.Y)(A.T,{className:"doctor-tabs",initialTab:ge,tabContent:[{name:"".concat(ce({id:"bookingCard.morning",defaultMessage:"Morning"})," ").concat((null===Re||void 0===Re?void 0:Re.length)?"(".concat(null===Re||void 0===Re?void 0:Re.length,")"):"")},{name:"".concat(ce({id:"bookingCard.afternoon",defaultMessage:"Afternoon"})," ").concat((null===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===qe||void 0===qe?void 0:qe.length)?"(".concat(null===qe||void 0===qe?void 0:qe.length,")"):"")}],onChange:function(n){switch(n){case 0:default:Ze(Re),me(0);break;case 1:Ze(Ve),me(1);break;case 2:Ze(qe),me(2)}},style:{paddingLeft:0}})}),(0,h.Y)("div",{className:i,"data-is-no-slot":!S&&!Xe.length,role:"group",children:S?Array(6).fill(null).map((function(n,e){return(0,h.Y)(j.A,{height:36},e)})):Xe.length?null===Xe||void 0===Xe?void 0:Xe.map((function(n,e){return(0,h.FD)("div",{className:o,onClick:function(){ut(n)?(ae(n),pe(!0),re||Ne||!ht||(ke(!0),Pe(!0))):qn({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":X,"aria-pressed":re===n||void 0,role:"button",tabIndex:0,onKeyPress:function(e){return function(n,e){"Enter"===n&&(ae(e),pe(!0))}(e.key,n)},children:[n.started," - ",n.ended]},e)})):bt({smallSpacing:!1,type:"partOfDay"})})]})}()})]})]}),(0,h.FD)("div",{className:c()(V().buttonWrapper),children:[W&&(0,h.Y)(Cn,{}),(0,h.Y)(R.A,{vouchers:Ln,allowPaymentMethods:Kn}),pt&&(0,h.Y)(mn.S,{price:Z,priceType:nn,priceTo:en,originalPrice:$,frisoCampaign:En,className:"mb-[8px] !mt-[0px]"}),be?(0,h.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,h.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,h.Y)(gn.A,{open:Me,onContinueBooking:function(){ke(!1)},handleOnClose:function(){return ke(!1)}}),(0,h.Y)(pn.A,{open:Ye,message:rt,handleOnClose:xt,handleOnOk:function(){Be&&re?_n&&_n(re):xt()}})]}),(0,h.Y)("div",{id:"booking-scroll-top-trigger",style:{height:"1px",width:"100%"}})]})}),(0,h.Y)(ln,{className:"sticky-booking-card flex-[1] ".concat(Jn?"sticky-booking-card-show":""),children:(0,h.FD)(dn,{stickyElHeight:mt,children:[(0,h.FD)(sn,{className:"".concat(Jn&&(W&&G||!G)?"sticky-booking-show":"sticky-booking-hide"," "),ref:$n,children:[(0,h.Y)("div",{className:"booking-info-header",children:(0,h.Y)("div",{className:"mb-[8px]",children:(0,h.Y)("h3",{className:V().bookingHeading,children:ce({id:"hospital.bookAnAppointment",defaultMessage:"Book an appointment"})})})}),(0,h.FD)("div",{className:c()(V().oBookingCard,t),ref:ne,children:[(0,h.Y)(R.A,{vouchers:Ln,allowPaymentMethods:Kn,className:"!mb-[8px]"}),(0,h.FD)("div",{children:[pt&&(0,h.Y)(mn.S,{price:Z,priceType:nn,priceTo:en,frisoCampaign:En,originalPrice:$,className:"mb-[8px] !mt-[0px]"}),be?(0,h.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,h.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,h.FD)(h.FK,{children:[Tn&&(0,h.Y)(vn.U7,{className:"!mt-[0px] !mb-[0px]",style:{flex:2.5,marginBottom:24},children:(0,h.Y)(hn.z,{className:"ad-container sticky-booking-card-ad-desktop",adUnitPath:On||"",size:[[300,250],[300,600]],divId:"ad-service-desktop-top-banner",pos:["TopBanner"],adDefaultSize:[300,250],style:{position:Jn?"sticky":"initial"},customTargetings:{Service_ID:Yn?[Yn]:"",Doctor_ID:In?[In]:""}})}),Sn&&(0,h.Y)(vn.U7,{children:(0,h.Y)(hn.z,{className:"ad-container sticky-booking-card-ad-desktop",adUnitPath:On||"",size:[300,250],divId:"ad-service-desktop-mid-banner1",pos:["MidBanner1"],adDefaultSize:[300,250],style:{position:Jn?"sticky":"initial"},customTargetings:{Service_ID:Yn?[Yn]:"",Doctor_ID:In?[In]:""}})})]})]})})]})},kn=t(10699),In=t(45638);function Yn(){var n=(0,m.A)(["\n width: 100%;\n padding: 1rem;\n background: white;\n border-radius: 6px;\n box-shadow: 0px 5px 12px rgba(40, 74, 117, 0.08);\n"]);return Yn=function(){return n},n}function Dn(){var n=(0,m.A)(["\n border-width: 1px 0;\n border-style: dashed;\n border-color: #e4e8ec;\n > * > [data-tag='h4'] {\n color: var(--secondaryBase);\n font-size: 11px;\n text-transform: uppercase;\n }\n\n .hospitalCard__services {\n display: grid;\n margin: 8px 0;\n grid-gap: 8px;\n grid-template-columns: 1fr 1fr;\n\n > * {\n font-size: 14px;\n }\n\n > :nth-child(odd) {\n color: var(--gray500);\n }\n\n > :nth-child(even) {\n font-weight: var(--fwSemiBold);\n text-align: end;\n }\n }\n"]);return Dn=function(){return n},n}function En(){var n=(0,m.A)(["\n display: flex;\n padding-bottom: 16px;\n\n .hospitalCard__row {\n display: flex;\n align-items: center;\n }\n\n .icon-center {\n margin: 0 6px;\n }\n\n .icon-start {\n margin-right: 11px;\n }\n\n > img {\n width: 72px;\n height: 72px;\n border: 1px solid ",";\n margin-right: 8px;\n border-radius: 6px;\n object-fit: contain;\n }\n\n > figcaption {\n > * + * {\n margin-top: 8px;\n }\n }\n"]);return En=function(){return n},n}function Nn(){var n=(0,m.A)(["\n --button-size: 40px;\n display: grid;\n margin-top: 16px;\n grid-gap: 12px;\n grid-template-columns: auto var(--button-size);\n\n .hospitalCard__callButton {\n display: flex;\n width: var(--button-size);\n height: var(--button-size);\n align-items: center;\n justify-content: center;\n background: var(--primaryBase);\n border-radius: calc(var(--button-size) / 2);\n }\n\n .hospitalCard__book {\n font-size: 14px;\n }\n"]);return Nn=function(){return n},n}H.Ay.article.withConfig({componentId:"sc-dda43ea1-0"})(Yn()),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"})(Nn());var Pn=t(61767),Fn=t(34763),Bn=t.n(Fn),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,p=n.acceptButtonTitle,f=n.denyButtonTittle,m=n.errorMessages,v=n.switchCTA,A=n.justifyContent,C=void 0===A?"between":A,M=n.buttonsProps,k=n.hideGroupBtn,I=void 0!==k&&k,Y=n.isHeaderText,D=void 0===Y||Y;return(0,h.Y)(Pn.M,{type:"confirm",isOpen:i,onClose:o,className:t,closeIcon:d,children:(0,h.FD)("div",{className:Bn().contentPopup,children:[D&&(0,h.Y)(x.H,{tag:"h4",className:Bn().content,children:l||"Are you sure to delete this patients info"}),(0,h.Y)(b.T,{size:"base",className:Bn().content,color:w.w.colors.red500,children:null===m||void 0===m?void 0:m.content}),(0,h.Y)(b.T,{size:"base",className:Bn().content,children:s||"We cannot restore it after it has been already declared"}),!I&&(0,h.FD)("div",{className:c()(Bn().buttonRow,(e={},(0,g.A)(e,Bn().buttonRowCenter,"center"===C),(0,g.A)(e,Bn().buttonRowBetween,"between"===C),(0,g.A)(e,Bn().reverseButton,null===M||void 0===M?void 0:M.reverseButton),(0,g.A)(e,Bn().buttonFillWidth,null===M||void 0===M?void 0:M.buttonFillWidth),e)),children:[(0,h.Y)(y.B,{isLoading:u,color:v?"secondary":"primary",size:(null===M||void 0===M?void 0:M.buttonSize)||"sm",onClick:r,children:p||"Yes, Delete"}),(0,h.Y)(y.B,{isDisabled:!v&&u,isLoading:!!v&&u,color:v?"primary":"secondary",size:(null===M||void 0===M?void 0:M.buttonSize)||"sm",onClick:a,children:f||"No, keep it"})]})]})})},On=(t(19956),t(53513)),Sn=t(63538),Tn=t(50041),Ln=t(15096),jn=t(73827),Hn=t(41145);function Un(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],h=d[1],p=n.length;(0,i.useEffect)((function(){s(1)}),[n]);var f=n.slice(0,o*l);return{total:p,data:f,currentPage:l,handleMore:function(){h(!0),setTimeout((function(){s((function(n){return n+1})),h(!1)}),a)},isMore:f.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 h(){var n=(0,i.A)([""]);return h=function(){return n},n}function p(){var n=(0,i.A)(["\n display: flex;\n\n &[class] thead > tr > th {\n top: 64px;\n }\n"]);return p=function(){return n},n}function f(){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 f=function(){return n},n}function g(){var n=(0,i.A)(["\n display: flex;\n min-height: 50%;\n\n &.disabled-edit {\n .setting-panel,\n .setting-schedule {\n opacity: 0.5;\n pointer-events: none;\n }\n }\n\n "," {\n flex-wrap: wrap;\n }\n"]);return g=function(){return n},n}function m(){var n=(0,i.A)(["\n width: 30%;\n max-width: 400px;\n padding: 24px;\n border-right: 1px solid\n ",";\n "," {\n padding: 24px;\n width: 40%;\n }\n "," {\n width: 100%;\n border-right: none;\n padding: 24px 16px;\n max-width: 100%;\n }\n .title {\n margin-top: 12px;\n margin-bottom: 10px;\n color: ",";\n font-size: 14px;\n line-height: 22px;\n }\n label {\n font-size: 14px;\n }\n .range-selection {\n margin-top: 8px;\n input {\n margin-top: 8px;\n }\n label {\n margin-top: 5px;\n }\n\n & > div {\n width: 100%;\n margin-right: 0;\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n }\n .heading {\n margin-top: 40px;\n }\n .time-selection {\n label {\n //margin-right: 36px;\n }\n }\n"]);return m=function(){return n},n}function v(){var n=(0,i.A)(["\n position: relative;\n\n .selectable {\n position: absolute;\n z-index: 1;\n left: 0;\n top: 100%;\n }\n .selectable\n .DayPicker-Day--selected:not(.DayPicker-Day--start):not(.DayPicker-Day--end):not(.DayPicker-Day--outside) {\n background-color: "," !important;\n color: #4a90e2;\n }\n .selectable .DayPicker-Day {\n border-radius: 0 !important;\n }\n .selectable .DayPicker-Day--start {\n border-bottom-left-radius: 50% !important;\n border-top-left-radius: 50% !important;\n }\n .selectable .DayPicker-Day--end {\n border-bottom-right-radius: 50% !important;\n border-top-right-radius: 50% !important;\n }\n"]);return v=function(){return n},n}function b(){var n=(0,i.A)(["\n max-width: 340px;\n margin-top: 8px;\n"]);return b=function(){return n},n}function 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 I(){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 I=function(){return n},n}var Y=a.Ay.div.withConfig({componentId:"sc-77ff1a20-0"})(c(),(function(n){return n.theme.colors.gray500})),D=a.Ay.div.withConfig({componentId:"sc-77ff1a20-1"})(l(),o.M.tdDown,(function(n){return n.theme.colors.neutral150}),o.M.tdOnly,o.M.mbDown,o.M.mbDown),E=a.Ay.div.withConfig({componentId:"sc-77ff1a20-2"})(s(),o.M.tdDown),N=(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"})(h()),a.Ay.div.withConfig({componentId:"sc-77ff1a20-6"})(p()),a.Ay.div.withConfig({componentId:"sc-77ff1a20-7"})(f(),o.M.tdDown,o.M.mbDown)),P=a.Ay.div.withConfig({componentId:"sc-77ff1a20-8"})(g(),o.M.mbDown),F=a.Ay.div.withConfig({componentId:"sc-77ff1a20-9"})(m(),(function(n){return n.theme.colors.neutral100}),o.M.tdOnly,o.M.mbDown,(function(n){return n.theme.colors.gray600})),B=a.Ay.div.withConfig({componentId:"sc-77ff1a20-10"})(v(),(function(n){return n.theme.colors.blue50})),z=(0,a.Ay)(B).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()),U=(0,a.Ay)(r.B).withConfig({componentId:"sc-77ff1a20-19"})(I(),(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 I},G1:function(){return k},Rl:function(){return N},_H:function(){return Y},a4:function(){return y},f$:function(){return E},ft:function(){return D},gD:function(){return x},lC:function(){return P},n8:function(){return C},rL:function(){return M}});var i=t(24537),o=t(36257),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 h(){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 h=function(){return n},n}function p(){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 p=function(){return n},n}function f(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n\n & > :not(:first-child) {\n margin-left: 24px;\n }\n"]);return f=function(){return n},n}function g(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n padding-right: 24px;\n .btn_cancel {\n margin-right: 8px;\n }\n "," {\n padding-right: 0;\n }\n\n button[type='button'] + button[type='button'] {\n margin-right: 12px;\n }\n\n "," {\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n padding: 13px 16px;\n align-items: stretch;\n justify-content: space-between;\n background-color: ",";\n border-top: 1px solid\n ",";\n\n & > button {\n width: 48%;\n }\n }\n"]);return g=function(){return n},n}function m(){var n=(0,i.A)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n"]);return m=function(){return n},n}function v(){var n=(0,i.A)(["\n padding: 80px 0;\n margin-left: auto;\n margin-right: auto;\n"]);return v=function(){return n},n}function b(){var n=(0,i.A)(["\n text-align: center;\n\n .group-btn {\n display: flex;\n gap: 12px;\n\n .btn {\n flex: 1;\n }\n }\n"]);return b=function(){return n},n}function 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"})(h(),o.M.tdOnly),I=r.Ay.div.withConfig({componentId:"sc-5a2a03ba-7"})(p(),(function(n){return n.theme.colors.white}),o.M.tdDown,(function(n){return n.theme.colors.neutral150}),(function(n){return n.theme.colors.neutral100}),o.M.tdOnly,o.M.mbDown,(function(n){return n.theme.colors.gray800})),Y=r.Ay.div.withConfig({componentId:"sc-5a2a03ba-8"})(f()),D=r.Ay.div.withConfig({componentId:"sc-5a2a03ba-9"})(g(),o.M.tdDown,o.M.mbDown,(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.neutral100})),E=r.Ay.div.withConfig({componentId:"sc-5a2a03ba-10"})(m()),N=(0,r.Ay)(E).withConfig({componentId:"sc-5a2a03ba-11"})(v()),P=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 p}});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 h(){var n=(0,i.A)(["\n font-weight: bold;\n"]);return h=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 p=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"})(h())},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 v}});var i=t(24537),o=t(36257),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 h(){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 h=function(){return n},n}function p(){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 p=function(){return n},n}function f(){var n=(0,i.A)(["\n margin-bottom: 24px;\n\n &:last-child {\n margin-bottom: 0;\n }\n"]);return f=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 m(){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 m=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 v=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"})(h(),o.M.mbDown),A=a.Ay.div.withConfig({componentId:"sc-be880827-6"})(p(),(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"})(f()),a.Ay.div.withConfig({componentId:"sc-be880827-8"})(g(),(function(n){return n.theme.colors.gray600})),a.Ay.div.withConfig({componentId:"sc-be880827-9"})(m(),o.M.mbDown,o.M.mbDown))},52355:function(n,e,t){"use strict";t.d(e,{_v:function(){return kt},fc:function(){return Dt},MC:function(){return Yt},wx:function(){return It}});var i=t(858),o=t(53513),r=t(63538),a=t(81539),c=t(83776),l=t(2445),s=t(73884),d=t(67546),u=t(68470),h=t(69988),p=t(40503),f=t(78783),g=t(74029),m=t(59850),v=t(84091),b=t(4736),w=t(88491),A=t(73419),x=t(58638),y=t(40959),C=t(58156),M=t.n(C),k=t(6442),I=t(80264),Y=t(36259),D=t(82920),E=t(66298),N=t(10297),P=t(45351),F=t(35291),B=t(13078),z=t(72574),O=t(89394),S=t(91266),T=t(25108),L=t(20680),j=t(27112),H=t(83551),U=t(98678),R=t(79830),_=t(91877),Q=t(41450),V=function(n){var e=n.isOpen,t=void 0!==e&&e,i=n.name,o=n.onConfirm,r=n.onClose,a=(0,k.A)().formatMessage;return(0,l.Y)(R.P,{type:"confirm",isOpen:t,closeIcon:(0,l.Y)("img",{src:"".concat(y.JpE,"/svg/close.svg"),style:{width:24,height:24},alt:"close-icon"}),onClose:r,children:(0,l.FD)(_.lC,{children:[(0,l.Y)(Q.A,{className:"mt-[16px]"}),(0,l.Y)(B.H,{tag:"h3",className:"mt-[10px] mb-[8px]",children:a({id:"booking.subPatient.removeMember",defaultMessage:"Remove member"})}),(0,l.Y)(u.T,{color:F.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)(h.B,{size:"lg",color:"secondary",className:"btn",onClick:o,children:a({id:"admin.removeUnavailableConfirmPopup.button.remove",defaultMessage:"Yes, remove"})}),(0,l.Y)(h.B,{size:"lg",className:"btn",onClick:r,children:a({id:"admin.removeUnavailableConfirmPopup.button.keep",defaultMessage:"No, keep it"})})]})]})})},G=t(21336),W=t(39900),q=t(68289),J=t(1135),K=t(86204),X=t(1032),Z=function(n){var e=n.information,t=n.isChosen,o=n.onClick,r=n.onEditFamilyProfile,a=n.onDeleteFamilyProfile,d=function(n){M({message:n||x({id:"error.anErrorOccurred",defaultMessage:"An error occurred!"}),type:"danger"})},h=e.id,p=e.avatar,f=e.birthday,b=e.gender,w=e.name,A=e.relation,x=(0,k.A)().formatMessage,C=(0,N.useRouter)().locale,M=(0,s.useContext)(Y.B).pushNotifications,I=(0,s.useState)(!1),D=I[0],E=I[1],P=(0,s.useState)(!1),B=P[0],z=P[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)(m.R.DELETE_PATIENT_INFO,{id:h}),"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)&&(M({message:(null===n||void 0===n?void 0:n._messages)?null===n||void 0===n?void 0:n._messages[0]:x({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)(_.un,{"data-is-chosen":t,children:[(0,l.FD)(_.kL,{children:[(0,l.Y)(H.R,{label:"",type:"circle",name:"subpatient-checkbox",value:h.toString(),onChange:o,checked:t}),(0,l.FD)(_.xv,{children:[(0,l.Y)(_.dl,{src:p||g.k_,alt:"Avatar of ".concat(w),className:"avatar",onClick:o}),(0,l.FD)(_.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:F.w.colors.gray600,children:x({id:"booking.subPatient.relationship.".concat(y.ynE[A||J.pE.OTHER]),defaultMessage:(0,q.Zr)(y.ynE[A])})})}),(0,l.FD)("div",{className:"row-info",children:[(0,l.Y)(u.T,{size:"p4",color:F.w.colors.gray600,children:x({id:y.S91[b]||"gender.other",defaultMessage:"Other"})}),(0,l.Y)(u.T,{size:"p4",color:F.w.colors.gray600,children:f.toLocaleDateString(C)})]})]}),(0,l.FD)(_.rj,{children:[(0,l.Y)("button",{className:"button",children:(0,l.Y)(G.h,{iconSize:20,svgIcon:{fill:F.w.colors.gray400},onClick:function(){return E(!0)},children:(0,l.Y)(K.A,{})})}),(0,l.Y)("div",{className:"button",children:(0,l.Y)(G.h,{iconSize:20,svgIcon:{stroke:F.w.colors.gray400},onClick:function(){return z(!0)},children:(0,l.Y)(X.A,{})})})]})]})]}),(0,l.Y)(W.R,{isOpen:D,formType:"edit",defaultValues:(0,U.Do)(e),onClose:function(){return E(!1)},onAddOrEditFamilyProfile:r}),(0,l.Y)(V,{name:e.name,isOpen:B,onClose:function(){return z(!1)},onConfirm:function(){O(),z(!1)}})]})},$=t(27516),nn=t(87018),en=t(19475),tn=t(24537),on=t(27317);function rn(){var n=(0,tn.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 .mantine-Text-root[data-size='s4'] {\n color: ",";\n font-size: 0.875rem;\n line-height: 1.375rem;\n letter-spacing: 0;\n }\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 .input-item {\n min-height: auto;\n width: auto;\n }\n .textField {\n width: 100%;\n\n .mantine-InputWrapper-label {\n .mantine-Text-root[data-size='p3'] {\n color: ",";\n font-weight: 500;\n font-size: 13px;\n line-height: 20px;\n letter-spacing: -0.3px;\n }\n }\n }\n\n .address-row {\n display: flex;\n gap: 16px;\n }\n\n .address-col {\n flex: 1;\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 rn=function(){return n},n}function an(){var n=(0,tn.A)(["\n display: flex;\n flex-direction: column;\n gap: 16px;\n"]);return an=function(){return n},n}var cn=on.Ay.div.withConfig({componentId:"sc-6d3ceb0d-0"})(rn(),(function(n){return n.theme.colors.gray600}),(function(n){return n.theme.colors.gray700}),(function(n){return n.theme.colors.gray200}),(function(n){return n.theme.colors.white})),ln=on.Ay.div.withConfig({componentId:"sc-6d3ceb0d-1"})(an()),sn=function(n){var e=n.setTypePatient,t=n.typePatient,i=n.reason,a=n.typeOfPatient,c=n.bookingPatientInfo,s=n.errorMessage,d=n.setBookingPatientInfo,h=n.handleCheckSameProfile,p=n.setErrorMessage,g=n.setReason,m=(0,k.A)().formatMessage,v=(0,A.$)(),b=v.locale,w=v.asPath,x=function(n){var e=Object.keys(s).reduce((function(e,t){return t!==n&&(e[t]=s[t]),e}),{});p(e)};return(0,l.FD)(ln,{children:[(0,l.Y)(B.H,{tag:"h6",color:F.w.colors.secondaryBase,className:"heading-title",children:m({id:"booking.survey",defaultMessage:"Survey question"})}),(0,l.FD)(cn,{children:[(0,l.FD)("div",{className:"type-opt",children:[(0,l.FD)(u.T,{size:"s4",type:"semiBold",children:["1."," ",m({id:"booking.question.typePatient",defaultMessage:"Have you visited this facility before?"})]}),(0,l.Y)(z.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($.y[b]).concat(y.JpE).concat(w)})]}),(0,l.FD)("div",{className:"wrapper-form",children:[(0,l.FD)("div",{children:[(0,l.Y)(nn.I,{placeholder:m({id:b===f.L.Malaysia?"booking.question.whatsapp.placeholder":"booking.question.zalo.title",defaultMessage:b===f.L.Malaysia?"Whatsapp":"Zalo"}),name:"zalo",label:m({id:b===f.L.Malaysia?"booking.question.whatsapp.title":"booking.question.zalo.title",defaultMessage:b===f.L.Malaysia?"Whatsapp":"Zalo"}),size:"lg",value:null===c||void 0===c?void 0:c.phone,disabled:b===f.L.Malaysia?null===c||void 0===c?void 0:c.isSameProfile:void 0,className:"input-item",onChange:function(n){d((function(e){var t=e.isSameProfile&&!!n&&n===e.phone;return(0,r.A)((0,o.A)({},e),{phone:n,isSameProfile:t})}))}}),(0,l.Y)("div",{className:"checkbox-field",children:(0,l.Y)(en.Sc,{label:m({id:"booking.question.sameProfile.title",defaultMessage:"Same to the phone number in user profile"}),name:"checkbox",id:"check-same-profile",onChange:function(n){h(n)},checked:null===c||void 0===c?void 0:c.isSameProfile})})]}),b===f.L.Malaysia?(0,l.Y)(l.FK,{children:(0,l.FD)("div",{children:[(0,l.Y)(nn.I,{placeholder:m({id:"booking.question.idPassport.placeholder",defaultMessage:"ID/Passport number"}),name:"idPassport",label:m({id:"booking.question.idPassport.title",defaultMessage:"ID/Passport number"}),size:"lg",value:(null===c||void 0===c?void 0:c.idPassport)||"",className:"input-item",onChange:function(n){x("idPassport"),d((function(e){return(0,r.A)((0,o.A)({},e),{idPassport:n})}))},"data-is-error":!!(null===s||void 0===s?void 0:s.idPassport),required:!0}),(null===s||void 0===s?void 0:s.idPassport)&&(0,l.Y)(u.T,{size:"n1",color:F.w.colors.red700,className:"errorLabel",children:null===s||void 0===s?void 0:s.idPassport})]})}):(0,l.Y)(nn.I,{placeholder:m({id:"booking.question.addresso.title",defaultMessage:"Address"}),name:"address",label:m({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})}))}})]}),b!==f.L.Malaysia&&(0,l.FD)("div",{className:"survey-reason",children:[(0,l.FD)(u.T,{size:"s4",type:"semiBold",children:["2."," ",m({id:"booking.question.reason.title",defaultMessage:"What is the reason for your visit?"})]}),(0,l.Y)("textarea",{className:"reason-text-area",value:i,placeholder:m({id:"booking.question.reason.placeholder",defaultMessage:"Enter your reason..."}),onChange:function(n){x("reason"),g(n.target.value)},"data-is-error":!!s.reason,"data-event-category":"Care","data-event-action":"Booking Reason Click","data-event-label":"https://".concat($.y[b]).concat(y.JpE).concat(w)},"reason"),(null===s||void 0===s?void 0:s.reason)&&(0,l.Y)(u.T,{size:"n1",color:F.w.colors.red700,className:"errorLabel",children:null===s||void 0===s?void 0:s.reason})]})]})]})},dn=t(39372),un=t(89902),hn=t(58665),pn=t(90206),fn=function(n){var e=n.patientInfo,t=n.familyInfo,i=n.bookingPatientFor,o=n.chosenSubPatientIndex,r=n.setTypePatient,c=n.typePatient,d=n.reason,p=n.typeOfPatient,f=n.bookingPatientInfo,g=n.errorMessage,m=n.setBookingPatientInfo,v=n.handleCheckSameProfile,b=n.setBookingPatientFor,w=n.setChosenSubPatientIndex,x=n.onAddFamilyProfile,C=n.onEditFamilyProfile,M=n.onDeleteFamilyProfile,I=n.setErrorMessage,Y=n.setReason,D=(0,k.A)().formatMessage,E=(0,A.$)().locale,N=(0,s.useState)(!1),P=N[0],H=N[1],U=[{label:D({id:"booking.patientType.myself",defaultMessage:"Myself"}),value:y.mCf.USER}].concat((0,a.A)(O.GK.includes(E)?[]:[{label:D({id:"booking.patientType.another",defaultMessage:"Another Patient"}),value:y.mCf.FAMILY}]));return(0,l.FD)(T.tJ,{children:[(0,l.Y)(B.H,{tag:"h6",color:F.w.colors.secondaryBase,className:"heading-title",children:D({id:"booking.target.patient.patientInfo",defaultMessage:"Patient's info"})}),(0,l.Y)("div",{children:D({id:"booking.target.patient.title",defaultMessage:"You're booking for"})}),(0,l.Y)(z.R,{id:"booking-patient-type",type:"circle",size:"small",direction:"horizontal",className:"radio-btn",options:U,value:i,onChange:function(n){return b(n)}}),e?i===y.mCf.USER&&e?(0,l.Y)(j.A,{patientInfo:e}):i===y.mCf.FAMILY&&t?(0,l.Y)(dn.tp,{children:t.length>0?(0,l.FD)(l.FK,{children:[t.map((function(n,e){return(0,l.Y)(Z,{information:n,isChosen:e===o,onClick:function(){return w(e)},onEditFamilyProfile:C,onDeleteFamilyProfile:M},n.id)})),t.lengthNumber(h)}),[h,p]),on=(0,s.useMemo)((function(){return L===y.vne.RANGE&&!I}),[I,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,vn.j)(en,(function(){$(!1)}));return(0,l.FD)(T.tJ,{className:"booking-summary--block ".concat(U),children:[(0,l.Y)(B.H,{tag:"h6",color:"#284A75",className:"heading-title",children:q({id:"booking.target.ticket.title",defaultMessage:"Your Appointment"})}),(0,l.FD)(Dn,{children:[(0,l.FD)(En,{className:H&&I?"items-start":"",children:[(0,l.Y)("div",{className:"avatar bg-img-500",children:(0,l.Y)("img",{src:(0,g.wW)(e,"".concat(y.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}),I&&(0,l.Y)(On.A,{type:"telemedicine",showLabel:!0})]})]}),P&&(0,l.Y)(bn.A,{}),(0,l.FD)(Nn,{children:[(0,l.Y)(u.T,{size:"p4",className:"lable-info",children:q({id:"common.priceAndLocation.label",defaultMessage:"Price & location"})}),(0,l.FD)(Pn,{children:[_&&R&&(0,l.FD)(Fn,{children:[(0,l.Y)("div",{className:"logo",children:(0,l.Y)(Hn,{})}),(0,l.FD)("div",{className:"content-wrapper",children:[(0,l.FD)("div",{className:"content-label",children:[q({id:"booking.target.timeSlot",defaultMessage:"Schedule"}),": ",_]}),(0,l.Y)("div",{className:"content-text",children:R})]})]}),(0,l.FD)(Fn,{children:[(0,l.Y)("div",{className:"logo",children:(0,l.Y)(Rn.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(y.JpE,"/svg/directions.svg"),alt:"Get direction"}),(0,l.Y)("span",{className:"direction-map-title",children:q({id:"hospital.directions",defaultMessage:"Direction"})})]})]})]})]}),!D&&(0,l.FD)(Fn,{children:[(0,l.Y)("div",{className:"logo",children:(0,l.Y)(_n.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:h?(0,v.UN)(h,J):""}),on&&(0,l.FD)(l.FK,{children:[(0,l.Y)("span",{children:"-"}),(0,l.Y)("span",{className:"price",children:m?(0,v.UN)(m,J):""})]})]}),tn&&(0,l.FD)("div",{className:"content-price-old-price",children:[(0,l.Y)("span",{className:"old-price",children:p?(0,v.UN)(p,J):""}),on&&(0,l.FD)(l.FK,{children:[(0,l.Y)("span",{className:"old-price-dash",children:"-"}),(0,l.Y)("span",{className:"old-price",children:f?(0,v.UN)(f,J):""})]})]})]}),(0,l.Y)("div",{className:"flex gap-[8px]",children:b.map((function(n,e){return 0===n.amount?null:(0,l.Y)(mn.m,{label:(0,l.FD)(zn,{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,J):""})]}),(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,J):"",on&&f&&(0,l.FD)(l.FK,{children:["\xa0","-","\xa0",(0,v.UN)(f,J)]})]})]}),(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&&h&&"Percent"===(null===Q||void 0===Q?void 0:Q.reward)&&(0,l.FD)(l.FK,{children:["-",(0,v.UN)(Number(c)-Number(h),J),"\xa0\xa0","-","\xa0"]}),"-",n.amount?(0,v.UN)(n.amount,J):""]})]})]}),(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:[h?(0,v.UN)(h,J):"",on&&m&&(0,l.FD)(l.FK,{children:["\xa0","-","\xa0",(0,v.UN)(m,J)]})]})]})]}),styles:rn,withArrow:!0,opened:Z,children:(0,l.FD)("span",{className:"tag-discount",onClick:function(){return $((function(n){return!n}))},ref:en,children:[(0,l.Y)($n,{}),n.name,(0,l.Y)(Tn.A,{className:"arrow-icon"})]},e)},e)}))})]}),!z&&(0,l.FD)(Bn,{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)(nn.I,{placeholder:q({id:"doctor.detail.addVoucher",defaultMessage:"Add voucher"}),name:"voucher",label:"",size:"md",className:"apply-voucher-input",value:S,disabled:C,icon:A?C?(0,l.Y)(Sn.A,{}):(null===j||void 0===j?void 0:j.voucher)?(0,l.Y)(Un.A,{onClick:function(){return W&&W()}}):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)}}),C?(0,l.Y)(gn.B,{onClick:function(){return W&&W()},leftIcon:(0,l.Y)(X.A,{}),color:"#E3F2FF",className:"remove-voucher-btn",children:q({id:"admin.booking.removeCode",defaultMessage:"Remove code"})}):(0,l.Y)(gn.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})]})]})]})]})]})]})]})},ee=t(77480);function te(){return te=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)},de=t(58065),ue=t(33364),he=t(46529),pe=function(){return(0,l.FD)(ee.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"})]})]})},fe=function(){return(0,l.FD)(ee.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"})]})]})},ge=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)(ee.ty,{className:r,bgColor:t,iconColor:i,children:[(0,l.Y)(he.A,{}),e,(0,l.Y)(mn.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)(ue.A,{onClick:function(n){n.stopPropagation(),n.preventDefault(),d(!0)}})})})]})};function me(){return me=Object.assign?Object.assign.bind():function(n){for(var e=1;e0&&!h?(0,l.FD)("div",{className:"flex gap-[4px] flex-wrap",children:[t.includes(y.T8A.MOMO100K)&&(0,l.Y)(ge,{bgColor:"#FDF1F6",iconColor:"#A50064",labelTootip:(0,l.Y)(pe,{}),content:(0,l.Y)(de.A,{id:"booking.discount.amount.text",defaultMessage:"Extra discount gift cards {amount}",tagName:"p",values:{span:s,amount:"100.000 \u0111"}})}),t.includes(y.T8A.MOMO300K)&&(0,l.Y)(ge,{bgColor:"#FDF1F6",iconColor:"#A50064",labelTootip:(0,l.Y)(fe,{}),content:(0,l.Y)(de.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&&h&&(0,l.FD)("div",{className:"flex gap-[4px] flex-wrap",children:[t.includes(y.T8A.MOMO100K)&&(0,l.Y)(ge,{bgColor:"#FDF1F6",iconColor:"#A50064",labelTootip:(0,l.Y)(pe,{}),content:(0,l.Y)(de.A,{id:"booking.discount.amount.text",defaultMessage:"Extra discount gift cards {amount}",tagName:"p",values:{span:s,amount:"100.000 \u0111"}})}),t.includes(y.T8A.MOMO300K)&&(0,l.Y)(ge,{bgColor:"#FDF1F6",iconColor:"#A50064",labelTootip:(0,l.Y)(fe,{}),content:(0,l.Y)(de.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(y.JZw.ATM_MOMO)&&(0,l.Y)(ee.iF,{onClick:function(){return f(y.JZw.ATM_MOMO)},children:(0,l.FD)(ee.Uy,{className:"option-payment",children:[(0,l.Y)("div",{className:"payment-logo",children:(0,l.Y)(we,{})}),(0,l.Y)(nn.R,{value:y.JZw.ATM_MOMO,label:d({id:"atm.momo.label",defaultMessage:"Domestic ATM card"}),"data-control":"radio",labelPosition:"left",className:"payment-option-radio"})]})}),o.includes(y.JZw.VISA_MOMO)&&(0,l.Y)(ee.iF,{onClick:function(){return f(y.JZw.VISA_MOMO)},children:(0,l.FD)(ee.Uy,{className:"option-payment",children:[(0,l.Y)("div",{className:"payment-logo",children:(0,l.Y)(Qe,{})}),(0,l.Y)(nn.R,{value:y.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(y.JZw.OY)&&(0,l.Y)(ee.iF,{onClick:function(){return f(y.JZw.OY)},children:(0,l.FD)(ee.Uy,{className:"option-payment",children:[(0,l.Y)("div",{className:"payment-logo",children:(0,l.Y)(Fe,{})}),(0,l.Y)(nn.R,{value:y.JZw.OY,label:"Payment with OY","data-control":"radio",labelPosition:"left",className:"payment-option-radio"})]})})]})]})},ct=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,h=n.reservationBooking,p=void 0!==h&&h,f=n.disablePaymentBtn,g=void 0!==f&&f,m=n.handleChangePaymentMethod,v=n.handleClickConfirmBooking,b=(0,k.A)().formatMessage,x=(0,w.d)().isMobile,C=(0,A.$)(),M=C.asPath,I=C.locale,Y=(0,s.useMemo)((function(){return p?b({id:"reservation.bookingCard.proceedConfirm",defaultMessage:"Complete your reservation"}):e&&e===y.JZw.COD?b({id:"bookingCard.proceedConfirm",defaultMessage:"Proceed to Confirm"}):b({id:"bookingCard.proceedPayment",defaultMessage:"Proceed to Payment"})}),[e,p]),D=(0,s.useMemo)((function(){return!(c.length<1)&&c.some((function(n){return y.lE6.includes(n)}))}),[c]);return c.length<1||"id-ID"===I?(0,l.Y)(ee.wL,{className:"text-right",children:(0,l.Y)(gn.B,{className:"".concat(x?"w-[100%]":""),onClick:v,loading:i,"data-event-category":"Care","data-event-action":"Payment Click","data-event-label":"https://".concat($.y[I]).concat(y.JpE).concat(M),children:Y})}):(0,l.FD)(T.tJ,{children:[(0,l.Y)(B.H,{tag:"h6",color:F.w.colors.secondaryBase,className:"heading-title",children:b({id:"booking.paymentMethod",defaultMessage:"Payment method"})}),(0,l.FD)(nn.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&&m(n)},children:[D&&(0,l.Y)(at,{methodVouchers:a,allowPaymentMethods:c,isActive:!!e&&y.lE6.includes(e),onClickChangeOption:function(n){n&&m(n)}}),c.includes(y.JZw.COD)&&(0,l.Y)(ae,{isActive:e===y.JZw.COD,hideDescription:u.includes(y.JZw.COD),onClickChangeOption:function(n){n&&m(n)}})]}),(null===o||void 0===o?void 0:o.paymentMethod)&&(0,l.Y)(ee.f,{children:b({id:"required.paymentMethod.message",defaultMessage:"Please select a payment method to continue"})}),(0,l.Y)(ee.wL,{className:"text-right",children:(0,l.Y)(gn.B,{className:"".concat(x?"w-[100%]":""),onClick:v,loading:i,"data-event-category":"Care","data-event-action":"Payment Click","data-event-label":"https://".concat($.y[I]).concat(y.JpE).concat(M),disabled:g,children:Y})})]})},lt=function(n){var e,t,o=n.familyInfo,r=n.patientInfo,d=n.doctorInfo,u=n.serviceInfo,h=n.chosenSubPatientIndex,p=n.bookingPatientFor,f=n.isTelemedicine,b=n.selectedPayment,A=n.isLoading,x=n.typePatient,C=n.reason,M=n.bookingPatientInfo,I=n.allowPaymentMethods,Y=n.errorMessage,F=n.slotInfo,B=n.reservationBooking,z=void 0!==B&&B,O=n.isValidTanganil,S=void 0!==O&&O,L=n.setBookingPatientInfo,j=n.handleCheckSameProfile,H=n.setTypePatient,U=n.setErrorMessage,R=n.setReason,_=n.setChosenSubPatientIndex,Q=n.setBookingPatientFor,V=n.onAddFamilyProfile,G=n.onEditFamilyProfile,W=n.onDeleteFamilyProfile,q=n.onChangePaymentMethod,J=n.handleClickConfirmButton,K=n.setVoucherInfor,X=n.voucherInfor,Z=(0,N.useRouter)(),$=(0,k.A)().formatMessage,nn=(0,w.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),dn=sn[0],un=sn[1],hn=(0,s.useState)({}),pn=hn[0],gn=hn[1],mn=(0,s.useState)([y.JZw.VNPAY]),vn=mn[0],bn=mn[1],wn=u?null===u||void 0===u?void 0:u.price:f?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:f?"":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,g.wW)(F,{}),Cn=yn.slot,Mn=yn.date,kn=Mn&&(0,D.A)(Mn,y.cuM,new Date),In=kn&&(0,E.A)(kn,y.ith,{locale:P.tV[en]}),Yn="".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,g.wW)(null===u||void 0===u?void 0:u.name,""),logo:(0,g.wW)(null===u||void 0===u?void 0:u.logoService,""),subName:(0,g.wW)(null===u||void 0===u||null===(n=u.hospitalBranch)||void 0===n?void 0:n.name,""),address:(0,g.wW)(null===u||void 0===u||null===(e=u.hospitalBranch)||void 0===e?void 0:e.address,""),latitude:(0,g.wW)(null===u||void 0===u||null===(t=u.hospitalBranch)||void 0===t?void 0:t.latitude,""),longitude:(0,g.wW)(null===u||void 0===u||null===(i=u.hospitalBranch)||void 0===i?void 0:i.longitude,"")}:d?{name:(0,g.wW)(null===d||void 0===d?void 0:d.name,""),logo:(0,g.wW)(null===d||void 0===d?void 0:d.avatar,""),subName:(0,g.wW)(null===d||void 0===d||null===(o=d.hospital)||void 0===o?void 0:o.name,""),address:(0,g.wW)(null===d||void 0===d||null===(r=d.hospital)||void 0===r?void 0:r.address,""),latitude:(0,g.wW)(null===d||void 0===d||null===(a=d.hospital)||void 0===a?void 0:a.latitude,""),longitude:(0,g.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(X){if("Percent"===X.reward){var n=(null===X||void 0===X?void 0:X.reward_percent)||0;return Math.round(Number(wn)*((100-n)/100))}return"Amount"===X.reward&&Number(wn)>Number(X.reward_amount)?Number(wn)-Number(X.reward_amount):0}return wn}),[X,u,d]),Nn=(0,s.useMemo)((function(){return S&&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:X?wn:""}),[u,d,X,S]),Pn=(0,s.useMemo)((function(){if(0===Number(An))return"0";if(X){var n=(null===X||void 0===X?void 0:X.reward_percent)||0;return"Percent"===X.reward?Math.round(Number(An)*((100-n)/100)):"Amount"===X.reward&&Number(An)>Number(X.reward_amount)?Number(An)-Number(X.reward_amount):0}return An}),[d,u,X]),Fn=(0,s.useMemo)((function(){return u?u.priceType:null===d||void 0===d?void 0:d.priceType}),[d,u]),Bn=(0,s.useMemo)((function(){if(!X)return[];var n=(null===X||void 0===X?void 0:X.reward_percent)||0;return"Percent"===X.reward?3===Fn?[{amount:Math.round(Number(An)*(n/100)),name:X.campaign[0]?X.campaign[0].name:""}]:[{amount:Math.round(Number(wn)*(n/100)),name:X.campaign[0]?X.campaign[0].name:""}]:"Amount"===X.reward?[{amount:Number((null===X||void 0===X?void 0:X.reward_amount)||0),name:X.campaign[0]?X.campaign[0].name:""}]:[]}),[X,wn,An,Fn]),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!S&&((null===d||void 0===d?void 0:d.isSiloam)||0===Number(wn))}),[null===d||void 0===d?void 0:d.isSiloam,wn,S]),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)(m.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)(m.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 un(!0),n&&1===n._status?(ln(!0),gn({}),K&&K(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(""),K(null),un(!1),gn({})};(0,s.useEffect)((function(){u&&Number(u.price)>=y.pvq&&bn((function(n){return(0,a.A)(n).concat([y.T8A.MOMO300K])}))}),[u]);var Ln=function(){return(0,l.Y)(ne,{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:Nn||"",newPrice:En,newPriceTo:Pn,oldPriceTo:An,priceType:Fn,specialties:zn,isTelemedicine:f,bookingDate:In,timeSlot:Yn,discounts:Bn,isApplyVoucher:dn,voucherCode:on,isValidVoucher:cn,errors:pn,hidePriceBlock:On,voucherInfor:X,reservationBooking:z,hideApplyVoucherBlock:S,setVoucherCode:rn,onApplyVoucher:Sn,handleRemoveVoucher:Tn})};return(0,l.Y)(T.AH,{className:"care-booking-container",children:(0,l.FD)(T.Ti,{children:[nn&&Ln(),(0,l.Y)("div",{className:"patient-info",children:(0,l.Y)(fn,{setTypePatient:H,typePatient:x,reason:C,typeOfPatient:xn,bookingPatientInfo:M,setBookingPatientInfo:L,handleCheckSameProfile:j,patientInfo:r,familyInfo:o,chosenSubPatientIndex:h,bookingPatientFor:p,isTelemedicine:f,setBookingPatientFor:Q,setChosenSubPatientIndex:_,onAddFamilyProfile:V,onEditFamilyProfile:G,onDeleteFamilyProfile:W,setErrorMessage:U,setReason:R,errorMessage:Y})}),(0,l.FD)("div",{className:"booking-summary",children:[!nn&&Ln(),(0,l.Y)(ct,{selectedPayment:b,isLoading:A,errorMessage:Y,methodVouchers:vn,hideDescriptionMethods:[y.JZw.COD],allowPaymentMethods:I,reservationBooking:z,handleChangePaymentMethod:function(n){q(n)},handleClickConfirmBooking:function(){J()}})]})]})})},st=t(13493),dt=function(n){var e=n.bookingCustomerInfor,t=n.customerAddress,d=n.patientInfo,u=n.errorMessage,h=n.serviceInfo,p=n.selectedPayment,f=n.isLoading,g=n.allowPaymentMethods,A=n.ignoreAddressBooking,x=void 0!==A&&A,C=n.reservationBooking,M=void 0!==C&&C,I=n.isHealthcarePackage,D=n.voucherInfor,E=n.setBookingCustomerInfor,P=n.handleChangeAddress,F=n.handleClickConfirmButton,B=n.onChangePaymentMethod,z=n.setErrorMessage,O=n.setIsLoading,S=n.setVoucherInfor,L=(0,s.useContext)(Y.B).state,j=(0,w.d)().isMobile,H=(0,b.useAppContext)().pushNotifications,U=(0,k.A)().formatMessage,R=(0,N.useRouter)(),_=R.locale,Q=R.query.utm_content,V=void 0===Q?"":Q,G=y.EmC[_].id,W=(0,s.useState)(""),q=W[0],J=W[1],K=(0,s.useState)(!1),X=K[0],Z=K[1],$=(0,s.useState)(!1),nn=$[0],en=$[1],tn=(0,s.useState)(!1),on=tn[0],rn=tn[1],an=(0,s.useState)([y.JZw.VNPAY]),cn=an[0],ln=an[1],sn=y.KVY?y.czo:y.o8Z,dn=(0,s.useMemo)((function(){if(!(null===h||void 0===h?void 0:h.price))return"";if(D){if("Percent"===D.reward){var n=(null===D||void 0===D?void 0:D.reward_percent)||0;return Math.round(Number(null===h||void 0===h?void 0:h.price)*((100-n)/100))}return"Amount"===D.reward&&Number(null===h||void 0===h?void 0:h.price)>Number(D.reward_amount)?Number(null===h||void 0===h?void 0:h.price)-Number(D.reward_amount):0}return Number((null===h||void 0===h?void 0:h.price)||0)}),[h,D]),un=(0,s.useMemo)((function(){if(!D||!(null===h||void 0===h?void 0:h.price))return[];var n=(null===D||void 0===D?void 0:D.reward_percent)||0;return"Percent"===D.reward?[{amount:Math.round(Number(null===h||void 0===h?void 0:h.price)*(n/100)),name:D.campaign[0]?D.campaign[0].name:""}]:"Amount"===D.reward?[{amount:Number((null===D||void 0===D?void 0:D.reward_amount)||0),name:D.campaign[0]?D.campaign[0].name:""}]:[]}),[D,null===h||void 0===h?void 0:h.price]),hn=(0,s.useMemo)((function(){return(null===h||void 0===h?void 0:h.originalPrice)?null===h||void 0===h?void 0:h.originalPrice:(null===h||void 0===h?void 0:h.price)||""}),[h]),pn=(0,s.useMemo)((function(){return!!(null===h||void 0===h?void 0:h.client)&&((null===h||void 0===h?void 0:h.client.name)===y.u3o.ROCHE&&I)}),[h,I]),fn=(0,s.useMemo)((function(){return!(null===L||void 0===L?void 0:L.isLoggedIn)&&pn}),[pn,L.isLoggedIn]),gn=(0,s.useMemo)((function(){return(null===L||void 0===L?void 0:L.isLoggedIn)&&pn}),[pn,I]),mn=function(){Z(!1),J(""),S(null),en(!1);var n=(0,r.A)((0,o.A)({},u),{voucher:""});z(n)},vn=function(){var n=(0,i.A)((function(){var n,e;return(0,c.__generator)(this,(function(t){return n=function(){var n={voucher:q?"":U({id:"error.voucherIsRequired",defaultMessage:"Voucher is required"})};return{errors:n,isValidForm:Object.values(n).every((function(n){return""===n}))}}(),e=n.errors,n.isValidForm?(z({}),en(!0),wn(),[2]):(z(e),[2])}))}));return function(){return n.apply(this,arguments)}}(),bn=function(){var n,e,t,i;return(0,l.Y)(ne,{logo:(null===h||void 0===h?void 0:h.logoService)||"",name:(null===h||void 0===h?void 0:h.name)||"",subName:(null===h||void 0===h||null===(n=h.hospitalBranch)||void 0===n?void 0:n.name)||"",address:(null===h||void 0===h||null===(e=h.hospitalBranch)||void 0===e?void 0:e.address)||"",latitude:(null===h||void 0===h||null===(t=h.hospitalBranch)||void 0===t?void 0:t.latitude)||"",longitude:(null===h||void 0===h||null===(i=h.hospitalBranch)||void 0===i?void 0:i.longitude)||"",price:null===h||void 0===h?void 0:h.price,originalPrice:null===h||void 0===h?void 0:h.originalPrice,oldPrice:hn||"",newPrice:dn||"",discounts:un,isValidVoucher:X,isApplyVoucher:nn,errors:u,voucherCode:q,reservationBooking:M,voucherInfor:D,setVoucherCode:J,handleRemoveVoucher:mn,onApplyVoucher:vn})},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===h||void 0===h?void 0:h.id)),e.append("code",n||q),[4,(0,v.px)((0,v.er)(m.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:""}),z(a),S&&S(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]}),z(l)),[2]):(Z(!1),i=(0,r.A)((0,o.A)({},u),{phone:"",voucher:U({id:"doctor.detail.valid.voucher.message",defaultMessage:"Voucher is invalid. Please try another one"})}),z(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)(m.R.GET_VERIFY_ROCHE_MOMO_VOUCHER),"GET")];case 1:return(n=e.sent())&&1===n._status&&ln((function(n){return[y.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,f,g,b,w,A,C,M,k,I,Y,D,E,N,P,B,S,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:fn?(0,v.Tm)(String(e.phoneNumber),_):"",city:x?"":(0,v.tf)("city",null===t||void 0===t?void 0:t.city),district:x?"":(0,v.tf)("district",null===t||void 0===t?void 0:t.district),address:x?"":(0,v.tf)("address",null===t||void 0===t?void 0:t.address),paymentMethod:p?"":"isRequired.payment"};return{errors:n,isValidForm:Object.values(n).every((function(n){return""===n}))}}(),i=n.errors,n.isValidForm?X&&q?(s=fn?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===h||void 0===h?void 0:h.id)),d.append("code",q),[4,(0,v.px)((0,v.er)(m.R.POST_VERIFY_ROCHE_VOCHER),"POST",{data:d})]):[3,2]:(z((function(n){return(0,o.A)({},n,i)})),[2]);case 1:if((u=c.sent())&&-1===u._status)return z((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]:U({id:"doctor.detail.valid.voucher.message",defaultMessage:"Voucher is invalid. Please try another one"})})})),[2];c.label=2;case 2:return z({}),gn?(F(X?{voucherCode:q}:{}),[3,5]):[3,3];case 3:return O(!0),f=e.phoneNumber.replace(y.ExA[_],"0"),(g=new FormData).append("name",e.fullName),g.append("email",e.email),g.append("phone",String(f)),g.append("country_id",String(G)),g.append("city_id",(null===t||void 0===t?void 0:t.city)?String(t.city):""),g.append("district_id",(null===t||void 0===t?void 0:t.district)?String(t.district):""),g.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)(m.R.POST_ROCHE_PATIENT),"POST",{headers:{accept:"application/json, text/plain, version=2.0.0"},data:g})];case 4:(b=c.sent())&&1===b._status?(S={hospital_service_id:(null===h||void 0===h?void 0:h.id)||"",booking_type:"service",coupon:X?q:"",paymentMethod:p,client:(null===h||void 0===h||null===(w=h.client)||void 0===w?void 0:w.name)||"",package:(null===h||void 0===h?void 0:h.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===(C=b._data)||void 0===C||null===(M=C.shipping)||void 0===M?void 0:M.address)||"",city_id:(null===b||void 0===b||null===(k=b._data)||void 0===k||null===(I=k.shipping)||void 0===I?void 0:I.city_id)||"",district_id:(null===b||void 0===b||null===(Y=b._data)||void 0===Y||null===(D=Y.shipping)||void 0===D?void 0:D.district_id)||"",shipping_id:(null===b||void 0===b||null===(E=b._data)||void 0===E||null===(N=E.shipping)||void 0===N?void 0:N.id)||""}),sessionStorage.setItem(y.RI6,JSON.stringify(T)),sessionStorage.setItem(y.DOc,JSON.stringify(S)),R.push("/booking/verify-otp/?patientId=".concat(null===(P=b._data)||void 0===P||null===(B=P.patient)||void 0===B?void 0:B.id))):H({message:(null===b||void 0===b?void 0:b._messages)&&(null===b||void 0===b?void 0:b._messages[0]),type:"danger"}),O(!1),c.label=5;case 5:return[2]}}))}));return function(){return n.apply(this,arguments)}}();return(0,s.useEffect)((function(){V&&(J(V),wn(V))}),[V]),(0,s.useEffect)((function(){!on&&h&&(Number(h.price)>=y.pvq&&ln((function(n){return(0,a.A)(n).concat([y.T8A.MOMO300K])})),An())}),[on,h]),(0,l.Y)(T.AH,{className:"roche-booking-container",children:(0,l.FD)(T.Ti,{children:[j&&bn(),(0,l.Y)("div",{className:"patient-info",children:(0,l.Y)(st.A,{bookingCustomerInfor:e,errorMessage:u,customerAddress:t,ignoreAddressBooking:x,patientInfo:d,addressDirection:"vertical",setBookingCustomerInfor:E,handleChangeAddress:P})}),(0,l.FD)("div",{className:"booking-summary",children:[!j&&bn(),(0,l.Y)(ct,{selectedPayment:p,isLoading:f,errorMessage:u,allowPaymentMethods:g,methodVouchers:cn,reservationBooking:M,disablePaymentBtn:sn.includes(Number((null===h||void 0===h?void 0:h.id)||0)),handleChangePaymentMethod:function(n){B(n)},handleClickConfirmBooking:xn})]})]})})},ut=t(45844),ht=t(72235),pt=t(76013);function ft(){return ft=Object.assign?Object.assign.bind():function(n){for(var e=1;e0){var n=setTimeout((function(){return Ln((function(n){return n-1}))}),1e3);return function(){return clearTimeout(n)}}0===Tn&&S()}}),[Pn,Tn]);var xe=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)(m.R.GET_PROFILE),"GET")];case 1:return 1!==(null===(n=t.sent())||void 0===n?void 0:n._status)&&j({type:I.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,ut.W)(U)]}}))}));return function(){return n.apply(this,arguments)}}(),ye=function(){var n=(0,i.A)((function(n,e,t){var i,o,r,a,l,s;return(0,c.__generator)(this,(function(c){switch(c.label){case 0:return pn||z||V===f.L.Malaysia?(delete wn.reason,An(wn),vn(!0),i=window.location.origin,o=(o="".concat(y.JpE).concat(_.replace(J,""))).replace(K,""),Q.bookingId?((r=new URLSearchParams(o)).set("bookingId",n),o=decodeURIComponent(null===r||void 0===r?void 0:r.toString())):o+="&bookingId=".concat(n),a=encodeURIComponent(i+o),l="",l=ee===y.JZw.ATM_MOMO||ee===y.JZw.MOMO||ee===y.JZw.VISA_MOMO?ee:"",[4,(0,v.T7)((0,v.er)(m.R.GET_BOOKING_PAYMENT_PAGE,{bookingId:n,returnUrl:"id-ID"!==V?a:"",payment_type:l,provider:e||"",payment_via:t||""}),"POST")]):(An({reason:H({id:"booking.validate.reasonRequired",defaultMessage:"Please input the reason for your visit."})}),[2]);case 1:return(s=c.sent())?(1===s._status?(vn(!1),V===f.L.Indonesia?(Cn(s._data.url),window.scrollTo({top:0,left:0,behavior:"smooth"})):R.push(s._data.url)):(O(s._messages),vn(!1)),[2]):(O(),vn(!1),[2])}}))}));return function(e,t,i){return n.apply(this,arguments)}}(),Ce=_n===y.mCf.USER?nn:null===on||void 0===on?void 0:on[Gn],Me=function(){var n=(0,i.A)((function(n){var e,t,i,a,l,s,d,u,h,p,b,w,A,x,M,k,I,Y,N,P,S,T,L,j,U,_,Q,W,q,J,K;return(0,c.__generator)(this,(function(c){switch(c.label){case 0:return i=ke(),a=i.errors,i.isValidForm?(An({}),vn(!0),l=cn?"existing":dn,!ge||we?[3,2]:((d=new FormData).append("country_id",String(G)),d.append("city_id",(null===ce||void 0===ce?void 0:ce.city)?String(ce.city):""),d.append("district_id",(null===ce||void 0===ce?void 0:ce.district)?String(ce.district):""),d.append("address",(null===ce||void 0===ce?void 0:ce.address)?null===ce||void 0===ce?void 0:ce.address:""),[4,(0,v.T7)((0,v.er)(m.R.POST_SHPPING_BOOKING),"POST",{data:d})])):(An(a),[2]);case 1:if(1!==(null===(s=c.sent())||void 0===s?void 0:s._status))return Z({message:(null===s||void 0===s?void 0:s._messages[0])||H({id:"error.anErrorOccurred",defaultMessage:"An error occurred!"}),type:"danger"}),vn(!1),[2];c.label=2;case 2:return u=E?(0,g.Y)(E,C,nn,null===on||void 0===on?void 0:on[Gn],_n,F,l,pn):(0,g.JZ)(D,C,nn,null===on||void 0===on?void 0:on[Gn],_n,l,pn,z),h={},p="",b="",pe&&(null===n||void 0===n?void 0:n.voucherCode)?h={coupon:n.voucherCode}:Jn&&(h={coupon:Jn.code}),be&&(h={coupon:"TANGANIL"}),ee===y.JZw.ATM_MOMO||ee===y.JZw.MOMO||ee===y.JZw.VISA_MOMO?(p=y.Pcg.MOMO,b=null!==ee&&void 0!==ee?ee:""):p=ee?String(ee):"",w=(0,r.A)((0,o.A)({},u,h),{payment_via:p,payment_type:b,zalo_whatsapp:zn.phone,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:pe?1:0,source:B?2:kt}),V===f.L.Malaysia?(w.id_passport=zn.idPassport,w.address_line=zn.addressLine,w.city=zn.city,w.country_code=zn.country,w.zip_code=zn.zipCode):w.nik_address=zn.address,[4,(0,v.T7)((0,v.er)(m.R.POST_CREATE_BOOKING),"POST",{data:w,headers:{Accept:"application/json, text/plain, version=2.0.0"}})];case 3:return(A=c.sent())?(1===A._status?(null===(x=A._data)||void 0===x||null===(M=x.booking)||void 0===M?void 0:M.payment_via)===y.JZw.COD||(null===(k=A._data)||void 0===k||null===(I=k.booking)||void 0===I?void 0:I.payment_via)===y.JZw.VNPAY&&!Number(null===(Y=A._data)||void 0===Y||null===(N=Y.booking)||void 0===N?void 0:N.price)?B?R.push("/widget/success/".concat(B.slug,"-").concat(B.id,"?bookingId=").concat(null===(P=A._data)||void 0===P||null===(S=P.booking)||void 0===S?void 0:S.id)):R.push("/booking/success?bookingId=".concat(null===(T=A._data)||void 0===T||null===(L=T.booking)||void 0===L?void 0:L.id)):(J=(null===(j=A._data)||void 0===j||null===(U=j.booking)||void 0===U?void 0:U.payment_via)===y.JZw.IPAY88?y.R2U.TOUCH_AND_GO:"",ye(null===(_=A._data)||void 0===_||null===(Q=_.booking)||void 0===Q?void 0:Q.id,null===(W=A._data)||void 0===W||null===(q=W.booking)||void 0===q?void 0:q.payment_via,J)):(vn(!1),E&&E.isSiloam?(K="",Array.isArray(A._messages)&&(K=A._messages[0]),ue({error_booking:K})):O(A._messages)),[2]):(O(),vn(!1),[2])}}))}));return function(e){return n.apply(this,arguments)}}(),ke=function(){var n={reason:pn||z||V===f.L.Malaysia?"":H({id:"booking.validate.reasonRequired",defaultMessage:"Please input the reason for your visit."}),paymentMethod:ee?"":"isRequired.payment"};return{errors:n,isValidForm:Object.values(n).every((function(n){return""===n}))}},Ie=function(){var n=(0,i.A)((function(n){var e;return(0,c.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,Me(n)];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),console.log("\ud83d\ude80 ~ handleClickConfirmButton ~ error:",e),[3,3];case 3:return[2]}}))}));return function(e){return n.apply(this,arguments)}}(),Ye=function(){var n=(0,i.A)((function(){var n,e;return(0,c.__generator)(this,(function(t){switch(t.label){case 0:return En(!0),[4,(0,v.px)((0,v.er)(m.R.GET_PAYMENT_METHOD,{doctor_id:(null===E||void 0===E?void 0:E.id)||"",service_id:(null===D||void 0===D?void 0:D.id)||"",schedule_id:(null===C||void 0===C?void 0:C.id)||"",is_telemedicine:F?1:0}),"GET")];case 1:return(n=t.sent())&&1===n._status&&n._data?$n((null===n||void 0===n||null===(e=n._data)||void 0===e?void 0:e.payment_methods)||[]):Z({message:(null===n||void 0===n?void 0:n._messages[0])?null===n||void 0===n?void 0:n._messages[0]:H({id:"error.anErrorOccurred",defaultMessage:"An error occurred!"}),type:"danger"}),[2]}}))}));return function(){return n.apply(this,arguments)}}(),De=function(n){te(n)};return(0,s.useEffect)((function(){vn(P)}),[P]),(0,s.useEffect)((function(){X&&!Dn&&Ye()}),[D,C,Dn,X]),(0,s.useEffect)((function(){var n=function(){var n=(0,i.A)((function(){var n,e;return(0,c.__generator)(this,(function(t){switch(t.label){case 0:return[4,xe()];case 1:return(n=t.sent())?(en(n.patientInfo),rn(n.familyInfo),V===f.L.Malaysia&&(e=function(n){var e=n||{},t=e.bookingFor,i=void 0===t?_n:t,o=e.patientFamilyList,r=void 0===o?on:o,a=e.patientFamilyIndex,c=void 0===a?Gn:a;return"family"===i&&Array.isArray(r)&&c>=0&&r[c]||null}({bookingFor:_n,patientFamilyList:n.familyInfo,patientFamilyIndex:Gn}),function(n,e){var t=M()(e,"phone")||M()(n,"phone")||"";t&&On((function(n){return n.phone&&!n.isSameProfile?n:(0,r.A)((0,o.A)({},n),{phone:t,isSameProfile:!0})}))}(n.patientInfo,e)),[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)(m.R.GET_USER_BOOKING_INFO,{status:y.Ae.DONE,hospitalId:(null===E||void 0===E||null===(n=E.hospital)||void 0===n?void 0:n.id)||""}),i+=_n===y.mCf.FAMILY?"&patient_contact_id=".concat(null===Ce||void 0===Ce?void 0:Ce.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(),ln((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)}}();L.isLoggedIn&&(n(),e())}),[_n,Gn,L.isLoggedIn,V]),(0,s.useEffect)((function(){if(yn&&he){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)(m.R.GET_SCHEDULE_BOOKINGS,{scheduleId:he}),"GET")];case 1:if(!(n=c.sent()))return O(),Cn(""),[2];if(1===n._status){if((null===(e=n._data)||void 0===e||null===(t=e.booking)||void 0===t?void 0:t.status)===y.Ae.PAYMENT_PENDING)return[2];(null===(i=n._data)||void 0===i||null===(o=i.booking)||void 0===o?void 0:o.status)===y.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):O(n._messages)}else O(n._messages),Cn("");return[2]}}))}));return function(){return n.apply(this,arguments)}}(),e=setInterval(n,2e3);return function(){return clearInterval(e)}}}),[he,yn]),(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"})}),[wn]),(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 fe&&Q.patientCacheId&&Dn?(n=sessionStorage.getItem(y.RI6),e=sessionStorage.getItem(y.DOc),n&&(t=JSON.parse(n),String(null===t||void 0===t?void 0:t.id)===Q.patientCacheId&&(re({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]/,y.pTf[V].prefix))||""}),le({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)&&te(null===o||void 0===o?void 0:o.paymentMethod),o.coupon?[4,(0,v.px)((0,v.er)(m.R.GET_VERIFY_SERVICE_COUPON,{serviceId:(null===D||void 0===D?void 0:D.id)||"",code:o.coupon}),"GET")]:[3,2]):[3,2]):[2];case 1:(r=a.sent())&&1===r._status&&Kn(r._data.coupon),a.label=2;case 2:return[2]}}))}))()}),[Q.patientCacheId,fe,Dn,Zn]),(0,s.useEffect)((function(){1===Ae.length&&te(Ae[0])}),[Ae]),(0,s.useEffect)((function(){be&&te(y.JZw.COD)}),[be]),(0,l.FD)(l.FK,{children:[!B&&(0,l.Y)("div",{children:N}),yn?(0,l.FD)(ht.Yl,{buttonVisible:-1!==Pn,children:[kn&&(0,l.Y)(d.L,{className:"loading"}),(0,l.Y)("iframe",{width:"100%",height:"100%",id:"payment-iframe",src:yn,title:"OY! Indonesia Payment Link",onLoad:function(){return In(!1)}}),-1!==Pn&&(0,l.FD)(ht.Lw,{children:[(0,l.Y)(u.T,{size:"xs",children:H({id:"payment.redirection",defaultMessage:"Redirection in {seconds} seconds"},{seconds:Tn})}),(0,l.Y)(h.B,{size:"lg",color:"primary",onClick:S,children:H({id:"payment.viewBookingInfo",defaultMessage:"View booking information"})})]})]}):(0,l.Y)(ht.fZ,{children:(0,l.FD)(p.C,{children:[(0,l.Y)(ht.cd,{children:Hn&&(0,l.FD)(ht.HR,{children:[(0,l.Y)(xt,{}),(0,l.Y)(u.T,{size:"p4",children:H({id:"booking.confirmation.alert",defaultMessage:"Please verify your information and confirm your booking."})}),(0,l.Y)(h.B,{color:"ghost",size:"md",icon:(0,l.Y)(yt.A,{width:16,height:16}),onClick:function(){return Un(!1)}})]})}),pe?(0,l.Y)(dt,{errorMessage:wn,customerAddress:ce,patientInfo:nn,bookingCustomerInfor:oe,serviceInfo:D,paymentMethods:Zn,allowPaymentMethods:Ae,selectedPayment:ee,isLoading:mn,ignoreAddressBooking:we,isHealthcarePackage:X,voucherInfor:Jn,reservationBooking:ve,setBookingCustomerInfor:re,handleChangeAddress:le,handleClickConfirmButton:Ie,onChangePaymentMethod:De,setIsLoading:vn,setErrorMessage:An,setVoucherInfor:Kn}):(0,l.FD)(l.FK,{children:[(0,l.Y)(lt,{setTypePatient:un,typePatient:dn,reason:pn,isLoading:mn,bookingPatientInfo:zn,setBookingPatientInfo:On,handleCheckSameProfile:function(n){if(n)On((function(e){return(0,r.A)((0,o.A)({},e),{isSameProfile:!n})}));else{var e=nn;"family"===_n&&on&&on.length>0&&on.length>Gn&&(e=on[Gn]),On((function(t){return(0,r.A)((0,o.A)({},t),{phone:(null===e||void 0===e?void 0:e.phone)||(null===nn||void 0===nn?void 0:nn.phone)||"",isSameProfile:!n})}))}},patientInfo:nn,familyInfo:on,serviceInfo:D,doctorInfo:E,chosenSubPatientIndex:Gn,bookingPatientFor:_n,isTelemedicine:F,ignoreVoucher:me,allowPaymentMethods:Ae,selectedPayment:ee,errorMessage:wn,voucherInfor:Jn,slotInfo:C,reservationBooking:ve,isValidTanganil:be,onChangePaymentMethod:De,setBookingPatientFor:Qn,setChosenSubPatientIndex:Wn,onAddFamilyProfile:function(n){if(null!==on){var e=(0,a.A)(on).concat([n]);rn(e),Wn(0),window.scrollTo({top:0,behavior:"smooth"})}},onEditFamilyProfile:function(n){if(on){var e=(0,a.A)(on),t=e.find((function(e){return e.id===n.id}));if(!t)return;var i=e.indexOf(t);e[i]=n,rn(e)}},onDeleteFamilyProfile:function(n){if(on){var e=(0,a.A)(on),t=e.find((function(e){return e.id===n}));if(!t)return;var i=e.indexOf(t);e.splice(i,1),rn(e),i===Gn&&Wn(0)}},handleClickConfirmButton:Ie,setErrorMessage:An,setReason:fn,setVoucherInfor:Kn}),W&&q]}),(0,l.Y)(pt.rI,{isMobile:!1,isShowing:!!(null===de||void 0===de?void 0:de.error_booking),isLoading:!1,closeIcon:(0,l.Y)("div",{onClick:function(){return ue({})},children:(0,l.Y)(yt.A,{})}),buttonsProps:{buttonFillWidth:!0,buttonSize:"md",reverseButton:!0},onClose:function(){ue({})},onAccept:function(){ue({}),R.reload()},onDeny:function(){ue({})},title:(0,l.FD)("div",{children:[(0,l.Y)(Mt,{}),(0,l.Y)("div",{children:H({id:"error.anErrorSomething",defaultMessage:"There is something wrong..."})})]}),caption:null===de||void 0===de?void 0:de.error_booking,acceptButtonTitle:H({id:"common.reload.title",defaultMessage:"Reload"}),denyButtonTittle:H({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(13078),l=t(35291),s=t(87018),d=t(88491),u=t(6442),h=t(36259),p=t(25108),f=t(57414),g=t(84091),m=t(73419),v=t(40959),b=t(58065),w=t(85943),A=t(53868),x=function(){var n=(0,u.A)().formatMessage,e=(0,m.$)(),t=e.locale,i=e.asPath,o=function(){var n=(0,g.sT)("".concat(v.JpE).concat(i),"care_onboarding");v.dXu?f.u.getState().triggerCareEmailPhoneVerify({returnUrl:"".concat(v.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:v.ElQ[t].SITE_NAME}})})]})]})},y=t(20680),C=t(27112),M=t(24537),k=t(36257),I=t(27317);function Y(){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 Y=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=I.Ay.div.withConfig({componentId:"sc-b6da95c8-0"})(Y(),k.M.tdUp,k.M.mbDown,(function(n){return n.theme.colors.neutral50})),N=I.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})),P=t(858),F=t(38971),B=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=I.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=I.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,h=(0,u.A)().formatMessage,p=(0,a.useState)([]),f=p[0],m=p[1],v=(0,a.useState)([]),b=v[0],w=v[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,F.A)({},n,t));d&&d(a)},x=function(){var n=(0,P.A)((function(){var n,e,t,i;return(0,B.__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}})),m(i)),[2]}}))}));return function(){return n.apply(this,arguments)}}(),y=(0,a.useCallback)((0,P.A)((function(){var n,t,i,o;return(0,B.__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:h({id:"common.city.label",defaultMessage:"Province/City"}),label:h({id:"common.city.label",defaultMessage:"Province/City"}),data:f,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:h({id:null===l||void 0===l?void 0:l.city,defaultMessage:"City is required"})}):""}),(0,r.Y)(s.S,{placeholder:h({id:"common.district.label",defaultMessage:"District"}),label:h({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:h({id:null===l||void 0===l?void 0:l.district,defaultMessage:"District is required"})}):""})]}),(0,r.Y)(s.I,{placeholder:h({id:"common.detail.address.placeholder",defaultMessage:"S\u1ed1 nh\xe0, t\xean \u0111\u01b0\u1eddng, ph\u01b0\u1eddng x\xe3"}),label:h({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:h({id:null===l||void 0===l?void 0:l.address,defaultMessage:"Address is required"})}):""})]})},H=function(n){var e=n.errorMessage,t=n.bookingCustomerInfor,f=n.customerAddress,g=void 0===f?{city:null,district:null,address:""}:f,m=n.ignoreAddressBooking,v=void 0!==m&&m,b=n.patientInfo,w=n.addressDirection,A=n.showNotiBlock,M=void 0===A||A,k=n.handleChangeAddress,I=void 0===k?function(){return null}:k,Y=n.setBookingCustomerInfor,D=(0,a.useContext)(h.B).state,P=(0,d.d)().isMobile,F=(0,u.A)().formatMessage,B=D.isLoggedIn;return(0,r.Y)(p.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:F({id:"booking.target.customer.title",defaultMessage:"Customer info"})})}),(0,r.FD)(N,{children:[B&&(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}),P&&(0,r.Y)(y.A,{className:"noti-profile-roche"})]}):(0,r.FD)(r.FK,{children:[(0,r.Y)(s.I,{placeholder:F({id:"booking.target.customer.fullName.placeholder",defaultMessage:"Enter your full name"}),name:"fullname",label:F({id:"booking.target.customer.fullName",defaultMessage:"Your full name"}),size:"lg",value:t.fullName,className:"input-item",onChange:function(n){Y((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:F({id:null===e||void 0===e?void 0:e.fullName,defaultMessage:"This field is required"})})}):""}),(0,r.Y)(s.I,{placeholder:F({id:"booking.target.customer.email.placeholder",defaultMessage:"Enter your email"}),name:"email",label:F({id:"booking.target.customer.email",defaultMessage:"Email"}),size:"lg",value:t.email,className:"input-item",onChange:function(n){Y((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:F({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:[F({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:F({id:"booking.target.customer.phoneNumber",defaultMessage:"Phone number"}),id:"phone-input-patient",maxLength:16,onChange:function(n){Y((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:F({id:null===e||void 0===e?void 0:e.phone,defaultMessage:"Phone is required"})})})]})]}),v?null:(0,r.FD)("div",{className:"input-item",children:[(0,r.Y)("label",{className:"detail-address-label",children:F({id:"common.address.shipping",defaultMessage:"Order address"})}),(0,r.Y)(j,{size:"lg",onChangeAddress:I,settingValues:g,errorMessage:e,direction:w})]})]}),!B&&M&&(0,r.Y)(x,{}),B&&!P&&(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(36257),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 Y},lC:function(){return P},qU:function(){return A},rj:function(){return N},un:function(){return I},w2:function(){return y},xv:function(){return F},yL:function(){return C}});var i=t(24537),o=t(36257),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 h(){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 h=function(){return n},n}function p(){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 p=function(){return n},n}function f(){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 f=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 m(){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 m=function(){return n},n}function v(){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 v=function(){return n},n}function b(){var n=(0,i.A)(["\n text-align: center;\n\n .group-btn {\n display: flex;\n gap: 12px;\n\n .btn {\n flex: 1;\n }\n }\n"]);return b=function(){return n},n}function 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"})(h()),I=r.Ay.div.withConfig({componentId:"sc-579dfc5a-7"})(p(),(function(n){return n.theme.colors.neutral50}),(function(n){return n.theme.colors.primaryBase})),Y=r.Ay.div.withConfig({componentId:"sc-579dfc5a-8"})(f(),o.M.tdUp),D=r.Ay.img.withConfig({componentId:"sc-579dfc5a-9"})(g()),E=r.Ay.div.withConfig({componentId:"sc-579dfc5a-10"})(m(),(function(n){return n.theme.colors.gray400})),N=r.Ay.div.withConfig({componentId:"sc-579dfc5a-11"})(v(),o.M.mbDown,(function(n){return n.theme.colors.blue50})),P=r.Ay.div.withConfig({componentId:"sc-579dfc5a-12"})(b()),F=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(61808),a=t(35291),c=t(68470),l=t(40959),s=t(10297),d=t(6442),u=t(67722),h=t(91877),p=t(48103),f=t(52412);e.A=function(n){var e=n.patientInfo,t=n.className,g=(0,s.useRouter)().locale,m=void 0===g?"vi-VN":g,v=(0,d.A)().formatMessage,b=(0,u.fC)((null===e||void 0===e?void 0:e.phone)||"",m),w=(0,o.useMemo)((function(){return e?null===e||void 0===e?void 0:e.birthday:""}),[e]),A=(0,o.useMemo)((function(){return e?v({id:l.S91[e.gender]||"gender.other",defaultMessage:"Other"}):""}),[e]);return(0,i.FD)(h.qU,{className:t,children:[(0,i.FD)(h.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)(h.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(m):""})]})]})]}),(0,i.FD)(h.yL,{children:[(0,i.FD)(h.cd,{children:[(0,i.Y)(h.MT,{children:(0,i.Y)(f.A,{width:16,height:16})}),(0,i.Y)(c.T,{size:"p4",children:b})]}),(0,i.FD)(h.cd,{children:[(0,i.Y)(h.MT,{children:(0,i.Y)(p.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 Y},Uy:function(){return x},ZU:function(){return v},f:function(){return M},iF:function(){return A},ob:function(){return w},ty:function(){return I},u$:function(){return b},wL:function(){return C}});var i=t(24537),o=t(36257),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 h(){var n=(0,i.A)(["\n "," {\n button {\n width: 100%;\n }\n }\n"]);return h=function(){return n},n}function p(){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 p=function(){return n},n}function f(){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 f=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 m(){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 m=function(){return n},n}var v=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"})(h(),o.M.mbDown),M=r.Ay.div.withConfig({componentId:"sc-910d4f52-7"})(p(),(function(n){return n.theme.colors.red700})),k=r.Ay.span.withConfig({componentId:"sc-910d4f52-8"})(f(),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.white})),I=r.Ay.div.withConfig({componentId:"sc-910d4f52-9"})(g(),(function(n){return n.bgColor}),(function(n){return n.iconColor}),(function(n){return n.iconColor})),Y=r.Ay.div.withConfig({componentId:"sc-910d4f52-10"})(m(),(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(36257),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 h,p,f,g,m,v,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})}}})})]})]})}},77317:function(n,e,t){"use strict";t.d(e,{A:function(){return T}});var i=t(2445),o=t(73884),r=t(13078),a=t(35291),c=t(27516),l=t(87018),s=t(89103),d=t(74029),u=t(84091),h=t(88491),p=t(56771),f=t(73419),g=t(6442),m=t(25108),v=t(77480),b=t(4401),w=t(24537),A=t(36257),x=t(27317);function y(){var n=(0,w.A)(["\n display: flex;\n flex-direction: column;\n gap: 16px;\n"]);return y=function(){return n},n}function C(){var n=(0,w.A)(["\n text-decoration: none;\n border-radius: 4px;\n padding: 4px;\n background: ",";\n cursor: pointer;\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 &.active {\n border: 1px solid ",";\n }\n\n .data-info-address {\n color: var(--Gray-Gray-600, #595959);\n font-size: 12px;\n font-weight: 400;\n line-height: 18px;\n\n "," {\n display: none;\n }\n }\n\n .data-info-address-mobile {\n display: none;\n "," {\n display: block;\n padding: 8px;\n }\n }\n"]);return C=function(){return n},n}function M(){var n=(0,w.A)(["\n display: flex;\n gap: 24px;\n border-radius: 4px;\n background: ",";\n position: relative;\n\n "," {\n gap: 12px;\n }\n\n &.selected-item {\n background: ",";\n }\n\n .data-image {\n flex: 0 0 180px;\n height: 120px;\n\n "," {\n flex: 0 0 120px;\n height: 80px;\n }\n }\n\n .data-info {\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 8px;\n justify-content: center;\n padding-right: 24px;\n }\n\n .data-radion-icon {\n position: absolute;\n top: 8px;\n right: 8px;\n }\n\n .data-info-name {\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 M=function(){return n},n}var k,I,Y=x.Ay.div.withConfig({componentId:"sc-d139556a-0"})(y()),D=x.Ay.div.withConfig({componentId:"sc-d139556a-1"})(C(),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.blue200}),A.M.mbDown,A.M.mbDown),E=x.Ay.div.withConfig({componentId:"sc-d139556a-2"})(M(),(function(n){return n.theme.colors.neutral50}),A.M.mbDown,(function(n){return n.theme.colors.blue50}),A.M.mbDown,(function(n){return n.theme.colors.gray800}),A.M.mbDown),N=t(95456),P=t(40959);function F(){return F=Object.assign?Object.assign.bind():function(n){for(var e=1;e0&&(0,i.Y)(l.S,{data:Q,value:String(null===M||void 0===M?void 0:M.id),onChange:V,disabled:1===Q.length}),x.map((function(n){var e=d.k_,t=(0,u.pN)(n),o="https://".concat(c.y[_]).concat(P.JpE,"/").concat(t);return(null===n||void 0===n?void 0:n.images)&&(null===n||void 0===n?void 0:n.images.length)&&(e=n.images[0]),(null===n||void 0===n?void 0:n.image)&&(e=null===n||void 0===n?void 0:n.image),(0,i.FD)(D,{className:(null===k||void 0===k?void 0:k.id)===n.id?"active":"",onClick:function(){return B(n)},as:A?"a":"div",href:o,target:"_blank",children:[(0,i.FD)(E,{className:(null===k||void 0===k?void 0:k.id)===n.id?"selected-item":"",children:[(0,i.Y)("div",{className:"data-image",children:(0,i.Y)(N.Y,{layout:"responsive",src:e,width:180,height:120,quality:100,objectFit:"cover"})}),(0,i.FD)("div",{className:"data-info",children:[(0,i.Y)("div",{className:"data-info-name",children:n.name}),(0,i.Y)("div",{className:"data-info-address",children:G?"Ph\xf2ng kh\xe1m s\u1ebd li\xean h\u1ec7 v\u1edbi b\u1ea1n \u0111\u1ec3 x\xe1c nh\u1eadn \u0111\u1ecba \u0111i\u1ec3m th\u0103m kh\xe1m.":n.hospitalBranch.address})]}),(0,i.Y)("div",{className:"data-radion-icon",children:(null===k||void 0===k?void 0:k.id)===n.id?(0,i.Y)(z,{}):(0,i.Y)(S,{})})]}),(0,i.Y)("div",{className:"data-info-address data-info-address-mobile",children:n.hospitalBranch.address})]},n.id)}))]}),(null===I||void 0===I?void 0:I.service)&&(0,i.Y)(v.f,{children:L({id:"required.selectedService.message",defaultMessage:"Please select a service to continue"})}),!R&&(0,i.FD)(i.FK,{children:[T,(0,i.Y)(v.wL,{className:"text-right",children:(0,i.Y)(s.B,{className:"".concat(U?"w-full":""),onClick:F,"data-event-category":"Care","data-event-action":"Service Connection - Submit Vaccination for ".concat(null===k||void 0===k?void 0:k.name),"data-event-label":j,children:L({id:"admin.appointment.bookingstatusDone",defaultMessage:"Done"})})})]})]})}},4401:function(n,e,t){"use strict";t.d(e,{P:function(){return a}});var i=JSON.parse('[{"orgName":"H\u1ec7 th\u1ed1ng Ti\xeam ch\u1ee7ng Long Ch\xe2u","orgId":3513,"orgUrl":"https://hellobacsi.com/care/to-chuc/he-thong-tiem-chung-long-chau-3513/","orgParam":"lc","clinicId":17310,"clinicUrl":"https://hellobacsi.com/care/benh-vien/trung-tam-tiem-chung-long-chau-dat-lich-hen-truc-tuyen-17310/","serviceId":14899,"serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-4-14899/"},{"orgName":"H\u1ec7 th\u1ed1ng Ti\xeam ch\u1ee7ng Long Ch\xe2u","orgId":3513,"orgUrl":"https://hellobacsi.com/care/to-chuc/he-thong-tiem-chung-long-chau-3513/","orgParam":"lc","clinicId":17310,"clinicUrl":"https://hellobacsi.com/care/benh-vien/trung-tam-tiem-chung-long-chau-dat-lich-hen-truc-tuyen-17310/","serviceId":14901,"serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-9-14901/"},{"orgName":"B\u1ec7nh vi\u1ec7n Qu\u1ed1c t\u1ebf City","orgId":1268,"orgUrl":"https://hellobacsi.com/care/to-chuc/benh-vien-quoc-te-city-1268/","orgParam":"city","clinicId":1530,"clinicUrl":"https://hellobacsi.com/care/benh-vien/benh-vien-quoc-te-city-1530/","serviceId":11788,"serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-4-11788/"},{"orgName":"B\u1ec7nh vi\u1ec7n Qu\u1ed1c t\u1ebf City","orgId":1268,"orgUrl":"https://hellobacsi.com/care/to-chuc/benh-vien-quoc-te-city-1268/","orgParam":"city","clinicId":1530,"clinicUrl":"https://hellobacsi.com/care/benh-vien/benh-vien-quoc-te-city-1530/","serviceId":11789,"serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-9-11789/"},{"orgName":"Ph\xf2ng kh\xe1m \u0110a khoa SIM Med","orgId":1339,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-da-khoa-sim-med-1339/","orgParam":"med","clinicId":1635,"clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-da-khoa-sim-med-1635/","serviceId":4988,"serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-4-4988/"},{"orgName":"Ph\xf2ng kh\xe1m \u0110a khoa SIM Med","orgId":1339,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-da-khoa-sim-med-1339/","orgParam":"med","clinicId":1635,"clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-da-khoa-sim-med-1635/","serviceId":5062,"serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-9-5062/"},{"orgName":"Pho\u0300ng kh\xe1m \u0110a khoa Qu\u1ed1c t\u1ebf Golden Healthcare","orgId":1250,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-da-khoa-quoc-te-golden-healthcare-1250/","orgParam":"ghc","clinicId":1506,"clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-da-khoa-quoc-te-golden-healthcare-1506/","serviceId":11786,"serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-4-11786/"},{"orgName":"Pho\u0300ng kh\xe1m \u0110a khoa Qu\u1ed1c t\u1ebf Golden Healthcare","orgId":1250,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-da-khoa-quoc-te-golden-healthcare-1250/","orgParam":"ghc","clinicId":1506,"clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-da-khoa-quoc-te-golden-healthcare-1506/","serviceId":11787,"serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-9-11787/"},{"orgName":"Ph\xf2ng kh\xe1m B\u1ec7nh vi\u1ec7n \u0110\u1ea1i h\u1ecdc Y D\u01b0\u1ee3c","orgId":1516,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-benh-vien-dai-hoc-y-duoc-1-1516/","orgParam":"yd1","clinicId":1884,"clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-benh-vien-dai-hoc-y-duoc-1-1884/","serviceId":11792,"serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-4-11792/"},{"orgName":"Ph\xf2ng kh\xe1m B\u1ec7nh vi\u1ec7n \u0110\u1ea1i h\u1ecdc Y D\u01b0\u1ee3c","orgId":1516,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-benh-vien-dai-hoc-y-duoc-1-1516/","orgParam":"yd1","clinicId":1884,"clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-benh-vien-dai-hoc-y-duoc-1-1884/","serviceId":11793,"serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-9-11793/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3887","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-dong-den-tan-binh-3887/","serviceId":"11745","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-4-11745/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3887","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-dong-den-tan-binh-3887/","serviceId":"11785","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-9-11785/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3889","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-nguyen-anh-thu-quan-12-3889/","serviceId":"11746","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-4-11746/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3889","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-nguyen-anh-thu-quan-12-3889/","serviceId":"11784","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-9-11784/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3890","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-nguyen-son-tan-phu-3890/","serviceId":"11747","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-4-11747/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3890","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-nguyen-son-tan-phu-3890/","serviceId":"11783","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-9-11783/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3891","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-ly-thuong-kiet-hoc-mon-3891/","serviceId":"11748","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-4-11748/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3891","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-ly-thuong-kiet-hoc-mon-3891/","serviceId":"11782","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-9-11782/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3892","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-huynh-tan-phat-nha-be-3892/","serviceId":"11749","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-4-11749/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3892","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-huynh-tan-phat-nha-be-3892/","serviceId":"11781","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-9-11781/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3953","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-hiep-binh-thu-duc-3953/","serviceId":"11750","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-4-11750/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3953","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-hiep-binh-thu-duc-3953/","serviceId":"11780","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-9-11780/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3954","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-chi-nhanh-pham-van-chieu-go-vap-3954/","serviceId":"11779","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-9-11779/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3955","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-hau-giang-quan-6-3955/","serviceId":"11751","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-4-11751/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3955","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-hau-giang-quan-6-3955/","serviceId":"11778","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-9-11778/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3957","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-le-van-viet-thu-duc-3957/","serviceId":"11752","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-4-11752/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3957","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-le-van-viet-thu-duc-3957/","serviceId":"11776","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-9-11776/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3964","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-chi-nhanh-tan-son-nhi-quan-tan-phu-3964/","serviceId":"11769","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-9-11769/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3965","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-ten-lua-binh-tan-3965/","serviceId":"11758","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-4-11758/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3965","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-ten-lua-binh-tan-3965/","serviceId":"11768","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-9-11768/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3967","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-chi-nhanh-nguyen-van-luong-quan-6-3967/","serviceId":"11767","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-9-11767/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3968","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-hoang-dieu-quan-4-3968/","serviceId":"11759","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-4-11759/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3968","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-hoang-dieu-quan-4-3968/","serviceId":"11766","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-9-11766/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3982","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-tinh-lo-10-binh-tan-3982/","serviceId":"11764","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-4-11764/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3981","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-tang-nhon-phu-quan-9-3981/","serviceId":"11763","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-4-11763/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3980","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-nguyen-oanh-go-vap-3980/","serviceId":"11762","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-4-11762/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3971","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-nguyen-tri-phuong-quan-10-3971/","serviceId":"11761","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-4-11761/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3962","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-bach-dang-quan-binh-thanh-3962/","serviceId":"11757","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-4-11757/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3962","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-bach-dang-quan-binh-thanh-3962/","serviceId":"11771","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-9-11771/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3961","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-dinh-tien-hoang-quan-1-3961/","serviceId":"11756","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-4-11756/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3961","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-dinh-tien-hoang-quan-1-3961/","serviceId":"11772","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-9-11772/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3960","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-binh-chanh-3960/","serviceId":"11755","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-4-11755/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3960","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-binh-chanh-3960/","serviceId":"11773","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-9-11773/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3959","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-hai-thuong-lan-ong-quan-5-3959/","serviceId":"11754","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-4-11754/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3959","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-hai-thuong-lan-ong-quan-5-3959/","serviceId":"11774","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-9-11774/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3958","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-le-van-quoi-binh-tan-3958/","serviceId":"11753","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-4-11753/"},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3958","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-le-van-quoi-binh-tan-3958/","serviceId":"11775","serviceUrl":"https://hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-9-11775/"}]'),o=JSON.parse('[{"orgName":"H\u1ec7 th\u1ed1ng Ti\xeam ch\u1ee7ng Long Ch\xe2u","orgId":3513,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/he-thong-tiem-chung-long-chau-3513/","orgParam":"lc","clinicId":5224,"clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/trung-tam-tiem-chung-fpt-long-chau-chi-nhanh-32-quan-10-5224/","serviceId":14478,"serviceUrl":"https://discover.hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-9-14478/"},{"orgName":"H\u1ec7 th\u1ed1ng Ti\xeam ch\u1ee7ng Long Ch\xe2u","orgId":3513,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/he-thong-tiem-chung-long-chau-3513/","orgParam":"lc","clinicId":5224,"clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/trung-tam-tiem-chung-fpt-long-chau-chi-nhanh-32-quan-10-5224/","serviceId":14479,"serviceUrl":"https://discover.hellobacsi.com/care/dich-vu/tiem-vaccine-hpv-gardasil-4-14479/"},{"orgName":"B\u1ec7nh vi\u1ec7n Qu\u1ed1c t\u1ebf City","orgId":1268,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/benh-vien-quoc-te-city-1268","orgParam":"city","clinicId":1530,"clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/benh-vien-quoc-te-city-1530/","serviceId":14480},{"orgName":"B\u1ec7nh vi\u1ec7n Qu\u1ed1c t\u1ebf City","orgId":1268,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/benh-vien-quoc-te-city-1269","orgParam":"city","clinicId":1530,"clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/benh-vien-quoc-te-city-1530/","serviceId":14481},{"orgName":"Ph\xf2ng kh\xe1m \u0110a khoa SIM Med","orgId":1339,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/phong-kham-da-khoa-sim-med-1339","orgParam":"med","clinicId":1635,"clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/phong-kham-da-khoa-sim-med-1635/","serviceId":14482},{"orgName":"Ph\xf2ng kh\xe1m \u0110a khoa SIM Med","orgId":1339,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/phong-kham-da-khoa-sim-med-1340","orgParam":"med","clinicId":1635,"clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/phong-kham-da-khoa-sim-med-1635/","serviceId":14483},{"orgName":"Pho\u0300ng kh\xe1m \u0110a khoa Qu\u1ed1c t\u1ebf Golden Healthcare","orgId":1250,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/phong-kham-da-khoa-quoc-te-golden-healthcare-1250/","orgParam":"ghc","clinicId":1506,"clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/phong-kham-da-khoa-quoc-te-golden-healthcare-1506/","serviceId":14484},{"orgName":"Pho\u0300ng kh\xe1m \u0110a khoa Qu\u1ed1c t\u1ebf Golden Healthcare","orgId":1250,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/phong-kham-da-khoa-quoc-te-golden-healthcare-1250/","orgParam":"ghc","clinicId":1506,"clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/phong-kham-da-khoa-quoc-te-golden-healthcare-1506/","serviceId":14485},{"orgName":"Ph\xf2ng kh\xe1m B\u1ec7nh vi\u1ec7n \u0110\u1ea1i h\u1ecdc Y D\u01b0\u1ee3c","orgId":1516,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/phong-kham-benh-vien-dai-hoc-y-duoc-1-1516/","orgParam":"yd1","clinicId":1884,"clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/phong-kham-benh-vien-dai-hoc-y-duoc-1-1884/","serviceId":14486},{"orgName":"Ph\xf2ng kh\xe1m B\u1ec7nh vi\u1ec7n \u0110\u1ea1i h\u1ecdc Y D\u01b0\u1ee3c","orgId":1516,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/phong-kham-benh-vien-dai-hoc-y-duoc-1-1516/","orgParam":"yd1","clinicId":1884,"clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/phong-kham-benh-vien-dai-hoc-y-duoc-1-1884/","serviceId":14487},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3887","clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-dong-den-tan-binh-3887/","serviceId":14488},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2596","orgParam":"nd315","clinicId":"3887","clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-dong-den-tan-binh-3887/","serviceId":14489},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2597","orgParam":"nd315","clinicId":"3889","clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-nguyen-anh-thu-quan-12-3889/","serviceId":14490},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2598","orgParam":"nd315","clinicId":"3889","clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-nguyen-anh-thu-quan-12-3889/","serviceId":14491},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2599","orgParam":"nd315","clinicId":"3890","clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-nguyen-son-tan-phu-3890/","serviceId":14492},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2600","orgParam":"nd315","clinicId":"3890","clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-nguyen-son-tan-phu-3890/","serviceId":14493},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2601","orgParam":"nd315","clinicId":"3891","clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-ly-thuong-kiet-hoc-mon-3891/","serviceId":14494},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2602","orgParam":"nd315","clinicId":"3891","clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-ly-thuong-kiet-hoc-mon-3891/","serviceId":14495},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2603","orgParam":"nd315","clinicId":"3892","clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-huynh-tan-phat-nha-be-3892/","serviceId":14496},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2604","orgParam":"nd315","clinicId":"3892","clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-huynh-tan-phat-nha-be-3892/","serviceId":14497},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2605","orgParam":"nd315","clinicId":"3953","clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-hiep-binh-thu-duc-3953/","serviceId":14498},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2606","orgParam":"nd315","clinicId":"3953","clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-hiep-binh-thu-duc-3953/","serviceId":14499},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2607","orgParam":"nd315","clinicId":"3954","clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-chi-nhanh-pham-van-chieu-go-vap-3954/","serviceId":14500},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2607","orgParam":"nd315","clinicId":"3954","clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-chi-nhanh-pham-van-chieu-go-vap-3954/","serviceId":14501},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2608","orgParam":"nd315","clinicId":"3955","clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-hau-giang-quan-6-3955/","serviceId":14502},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2609","orgParam":"nd315","clinicId":"3955","clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-hau-giang-quan-6-3955/","serviceId":14503},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2610","orgParam":"nd315","clinicId":"3957","clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-le-van-viet-thu-duc-3957/","serviceId":14504},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://discover.hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2611","orgParam":"nd315","clinicId":"3957","clinicUrl":"https://discover.hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-le-van-viet-thu-duc-3957/","serviceId":14505},{"orgName":"Ph\xf2ng kh\xe1m Nhi \u0111\u1ed3ng 315","orgId":2595,"orgUrl":"https://hellobacsi.com/care/to-chuc/phong-kham-nhi-dong-315-2595","orgParam":"nd315","clinicId":"3958","clinicUrl":"https://hellobacsi.com/care/benh-vien/phong-kham-nhi-dong-315-va-tiem-chung-chi-nhanh-le-van-quoi-binh-tan-3958/","serviceId":14506}]'),r=t(40959).KVY?i:o,a=r.filter((function(n){return"lc"===n.orgParam})).map((function(n){return Number(n.serviceId)}))},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 m},U7:function(){return C},Zg:function(){return b},eV:function(){return w},l:function(){return y},sg:function(){return v}});var i=t(24537),o=t(36257),r=t(72574),a=t(68470),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 h(){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 h=function(){return n},n}function p(){var n=(0,i.A)(["\n width: 100%;\n\n "," {\n ","\n }\n"]);return p=function(){return n},n}function f(){var n=(0,i.A)(["\n margin: 16px 0;\n"]);return f=function(){return n},n}function g(){var n=(0,i.A)(["\n max-height: 100%;\n position: relative;\n flex: 1;\n margin: 0.5rem 0;\n .ad-container {\n position: sticky;\n top: 80px;\n }\n"]);return g=function(){return n},n}var m=c.Ay.div.withConfig({componentId:"sc-f6aed7d5-0"})(l(),o.M.mbUp,o.M.mbUp),v=(0,c.Ay)(r.T).withConfig({componentId:"sc-f6aed7d5-1"})(s(),o.M.tdUp),b=c.Ay.div.withConfig({componentId:"sc-f6aed7d5-2"})(d(),o.M.mbUp,o.M.tdOnly,o.M.tdUp),w=c.Ay.ul.withConfig({componentId:"sc-f6aed7d5-3"})(u()),A=c.Ay.div.withConfig({componentId:"sc-f6aed7d5-4"})(h()),x=c.Ay.section.withConfig({componentId:"sc-f6aed7d5-5"})(p(),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"})(f()),C=c.Ay.div.withConfig({componentId:"sc-f6aed7d5-7"})(g())},27401:function(n,e,t){"use strict";t.r(e),t.d(e,{MasterDetail:function(){return _}});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),h=t(83551),p=t(13078),f=t(68470),g=t(69988),m=t(78979),v=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),I=t.n(k),Y=t(87388),D=t.n(Y),E=t(58065),N=t(80264),P=t(36259),F=t(39636),B=t(63419),z=t(43277),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 U(){return U=Object.assign?Object.assign.bind():function(n){for(var e=1;e(.*)<\/title>/),i=" - Page ".concat(D," of ").concat(Y),o=D&&1!==D&&t?v.apiMetaData.replace(t[0],t[0].includes("-")?t[0].replace("-",i+" - "):"".concat(t[1].concat(i),"")).replace(''),'')):v.apiMetaData;if(!(n=(0,F.Ay)(o,{trim:!0})).find((function(n){var e,t;return"og:image"===(null===(e=n.props)||void 0===e?void 0:e.property)||"og:image:secure_url"===(null===(t=n.props)||void 0===t?void 0:t.property)}))){var r,c,l,s,d,u,h="".concat(J,"/images/").concat(A,".png");n=(0,N.A)(n).concat([(0,a.Y)("meta",{property:"og:image",content:(null===(r=v.openGraph)||void 0===r?void 0:r.image)||S||h||""},"og:image"),(0,a.Y)("meta",{property:"og:image:secure_url",content:(null===(c=v.openGraph)||void 0===c?void 0:c.image)||S||h},"og:image:secure_url"),(0,a.Y)("meta",{property:"og:image:width",content:(null===(l=v.openGraph)||void 0===l?void 0:l.imageWidth)&&String(null===(s=v.openGraph)||void 0===s?void 0:s.imageWidth)||L&&String(L)||"1200"},"og:image:width"),(0,a.Y)("meta",{property:"og:image:height",content:(null===(d=v.openGraph)||void 0===d?void 0:d.imageHeight)&&String(null===(u=v.openGraph)||void 0===u?void 0:u.imageHeight)||j&&String(j)||"630"},"og:image:height")])}}return n}),[v.apiMetaData,v.openGraph,S,j,L,D,W,Y,A,J]),Z="".concat(J,"/images/").concat(A,".png"),$="th-TH"===A?"https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wdth,wght@62.5..100,100..900&display=swap":"https://fonts.googleapis.com/css2?family=Inter:wght@400..800&display=swap";return(0,a.FD)(C,{children:[(0,a.Y)("link",{rel:"preconnect",href:"https://fonts.gstatic.com"}),(0,a.Y)("link",{rel:"preload",href:$,as:"style"}),(0,a.Y)("link",{rel:"stylesheet",href:$}),(0,a.Y)("link",{rel:"preconnect",href:"https://health-care.hellohealthgroup.com/"}),(0,a.Y)("meta",{charSet:"UTF-8"}),(0,a.Y)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"}),(0,a.Y)("meta",{name:"google",content:"notranslate"}),(0,a.Y)("meta",{name:"robots",content:G}),(0,a.Y)("meta",{property:"fb:app_id",content:"653713035016537"}),U.map((function(n,e){return(0,a.Y)("meta",(0,i.A)({},n),e)})),(0,a.Y)("meta",{name:"theme-color",content:"#2c87f3"}),(0,a.Y)("meta",{name:"page_type",content:"Home"}),(0,a.Y)("meta",{name:"page_platform",content:"WEB"}),(0,a.Y)("meta",{name:"page_language",content:q}),(0,a.Y)("meta",{name:"ahrefs-site-verification",content:"46e7521a2b89a1013149c4685bbe02a1d36a4732fef98655142b829bc87cba4d"}),!X&&(0,a.FD)(a.FK,{children:[(0,a.Y)("title",{children:M?B:B+" - "+(null===(e=b.ElQ[A])||void 0===e?void 0:e.SITE_NAME)}),!V&&(0,a.Y)("link",{rel:"canonical",href:"".concat(J).concat(W)}),(0,a.Y)("meta",{name:"description",content:O||(null===(t=v.openGraph)||void 0===t?void 0:t.description)}),v.schemaData&&(0,a.Y)("script",{type:"application/ld+json",className:"yoast-schema-graph",dangerouslySetInnerHTML:{__html:v.schemaData}}),(0,a.Y)("meta",{property:"og:locale",content:A}),(0,a.Y)("meta",{property:"og:type",content:T||"website"}),(0,a.Y)("meta",{property:"og:title",content:(null===(o=v.openGraph)||void 0===o?void 0:o.title)||B}),(0,a.Y)("meta",{property:"og:description",content:(null===(r=v.openGraph)||void 0===r?void 0:r.description)||O}),(0,a.Y)("meta",{property:"og:url",content:"".concat(J).concat(W)}),(0,a.Y)("meta",{property:"og:site_name",content:"".concat(J)}),(0,a.Y)("meta",{property:"og:image",content:(null===(l=v.openGraph)||void 0===l?void 0:l.image)||S||Z||""}),(0,a.Y)("meta",{property:"og:image:secure_url",content:(null===(s=v.openGraph)||void 0===s?void 0:s.image)||S||Z}),(0,a.Y)("meta",{property:"og:image:width",content:(null===(d=v.openGraph)||void 0===d?void 0:d.imageWidth)&&String(null===(u=v.openGraph)||void 0===u?void 0:u.imageWidth)||L&&String(L)||"1200"}),(0,a.Y)("meta",{property:"og:image:height",content:(null===(h=v.openGraph)||void 0===h?void 0:h.imageHeight)&&String(null===(p=v.openGraph)||void 0===p?void 0:p.imageHeight)||j&&String(j)||"630"}),(0,a.Y)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.Y)("meta",{name:"twitter:title",content:(null===(f=v.twitter)||void 0===f?void 0:f.title)||B}),(0,a.Y)("meta",{name:"twitter:description",content:O}),(0,a.Y)("meta",{name:"twitter:image",content:(null===(g=v.twitter)||void 0===g?void 0:g.image)||S})]}),b.EH[q].map((function(n,e){return"link"===n.type?(0,a.Y)("link",{rel:n.rel,href:n.href,sizes:n.sizes},"favicon-".concat(e)):"meta"===n.type?(0,a.Y)("meta",{name:n.name,content:n.content},e):null})),Array.isArray(X)&&I?X.filter((function(n){return"canonical"!==n.props.name&&"canonical"!==n.props.rel})):X,I&&(0,a.Y)("link",{rel:"canonical",href:I}),!v.hasNoAmp&&"vi-VN"!==A&&(0,a.Y)("link",{rel:"amphtml",href:"".concat(J).concat(W).concat(K,"?amp=1")}),k?(0,a.Y)("script",{dangerouslySetInnerHTML:{__html:"window.dataLayer = window.dataLayer || []; window.dataLayer.push({'userID': '".concat(k,"'});")}}):null]})},z=t(37639);function O(){var n=(0,r.A)(["\n a[data-event-category='Chatbot AI'] {\n button {\n padding-left: 10px;\n padding-right: 12px;\n height: 36px;\n\n .mantine-Button-label {\n font-size: 13px;\n font-weight: 500;\n line-height: 22px;\n color: #111111;\n }\n .mantine-Button-leftIcon {\n margin-right: 2px;\n svg {\n width: 24px;\n height: 24px;\n }\n }\n }\n }\n\n input[name='search-input-menu-servicedesktop'].mantine-Input-input {\n border-color: #e4e8ec;\n border-radius: 12px;\n }\n"]);return O=function(){return n},n}var S=(0,k.Ay)(l.N).withConfig({componentId:"sc-a13cf88d-0"})(O()),T=function(n){var e=n.title,t=n.description,r=void 0===t?"":t,w=n.image,x=n.children,k=n.SEOData,Y=void 0===k?{}:k,N=n.type,P=void 0===N?"website":N,F=n.isMobile,O=n.footerInfo,T=n.onTopBarAppears,L=n.schemaOrg,j=n.ssrNavMenu,H=n.sitewideBanner,U=(0,m.$)(),R=U.locale,_=U.query,Q=U.asPath,V=U.pathname,G=(0,c.useContext)(M.B),W=G.state,q=void 0===W?{}:W,J=G.dispatch,K=q.isMobileSsr,X=(0,v.l)().isMobile,Z=(0,g.E)(K||!!F,X),$=(0,c.useState)({}),nn=$[0],en=$[1],tn=b.ElQ[R||"en-PH"].SITE_NAME_FORMATTED,on=[u.L.Vietnam,u.L.Malaysia].includes(R),rn=(0,c.useMemo)((function(){return{enableAppIntroPage:R===u.L.Vietnam,enableProfileFindMyBooking:b.oQ8.includes(R)&&Z}}),[R,Z]);return(0,c.useEffect)((function(){j||(0,l.g)(R).then(en)}),[R]),(0,c.useEffect)((function(){D&&D.update()}),[Q]),(0,a.FD)(a.FK,{children:[(0,a.Y)(B,{SEOData:(0,i.A)({SEOTitle:e,SEOImage:w,SEODescription:(0,I.Yp)(r,b.ZCt),siteName:tn,seoType:P},Y),seoCustom:!0,locale:R,routerPathname:V,routerQuery:_,nextHead:function(n){var e=n.children;return(0,a.FD)(A(),{children:[(0,a.Y)(E.H,{locale:R,includeFavicons:!1}),e,L&&(0,a.Y)(y(),{type:"application/ld+json",dangerouslySetInnerHTML:{__html:b.KVY?JSON.stringify(L):JSON.stringify(L,null,2)}})]})}}),(0,a.Y)(h.tH,{children:(0,a.Y)(S,{projectType:"care",activeMenuService:"care",isMobile:Z,siteType:"helloSites",ssrMenuContent:j||nn,onLogout:function(){J({type:C.Q.LOGOUT,payload:{domain:"."+d.y[R]}})},locale:R,userState:(0,o.A)((0,i.A)({},q),{isMobileSsr:Z,userInfo:q.userInfo?q.userInfo:void 0}),onTopBarAppears:T,sitewideBannerData:H,sitewideSite:"care",sponsorComponent:void 0,currentUrl:Q,configs:rn,isWinCashBackTheme:on})}),(0,a.FD)("main",{children:[(0,a.Y)(p.F,{features:f.l,children:x}),(0,a.Y)(z.A,{})]}),O&&(0,a.Y)(h.tH,{children:(0,a.Y)(s.F,{type:"main",siteType:"helloSites",locale:R,basePath:b.JpE,footerInfo:O})})]})}},37639:function(n,e,t){"use strict";var i=t(24537),o=t(2445),r=t(73884),a=t(83551),c=t(35291),l=t(48085),s=t(63419),d=t(80264),u=t(36259),h=t(27317),p=t(40959),f=t(8758);function g(){var n=(0,i.A)(["\n &[data-alert-type='danger'] {\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n .mantine-Text-root {\n font-size: ",";\n font-weight: 500;\n line-height: ",";\n letter-spacing: -0.3px;\n }\n }\n"]);return g=function(){return n},n}var m=(0,h.Ay)(a.A).withConfig({componentId:"sc-c6c33622-0"})(g(),c.w.colors.red50,c.w.colors.red200,(0,l.D)(12),(0,l.D)(13),(0,l.D)(20));e.A=function(n){var e=n.className,t=(0,r.useContext)(u.B),i=t.state,a=void 0===i?{}:i,c=t.dispatch,l=a.notifications;return(0,o.Y)(s.cN,{className:e,children:(0,o.Y)("div",{style:{position:"sticky",top:81,width:"100%"},children:l.map((function(n,e){return(0,o.Y)(m,{closeIcon:(0,o.Y)(f.A,{className:"w-4 h-4 mt-[2px]"}),contentIcon:(0,o.Y)("img",{className:"content-icon",src:"".concat(p.JpE,"/svg/").concat(n.type,".svg"),alt:"content-icon"}),text:n.message,type:n.type,className:"alert-noti",onClose:function(){return e=n.id,void c({type:d.Q.CLEAR_NOTIFICATION,payload:{id:e}});var e}},"noti-".concat(e))}))})})}},65004:function(n,e,t){"use strict";t.d(e,{Aj:function(){return x},Av:function(){return w},IM:function(){return M},PH:function(){return k},Py:function(){return A},af:function(){return Y},fO:function(){return I},qg:function(){return y},wL:function(){return C}});var i=t(24537),o=t(36257),r=t(47610),a=t(27317),c=t(90206);function l(){var n=(0,i.A)(["\n width: 100%;\n min-height: calc(100% - 64px);\n max-width: 100vw;\n padding: 0;\n background-color: var(--white);\n overflow-x: hidden;\n\n "," {\n display: block;\n position: relative;\n max-width: 100%;\n }\n\n "," {\n display: flex;\n }\n"]);return l=function(){return n},n}function s(){var n=(0,i.A)(["\n border-right: 1px solid\n ",";\n\n "," {\n width: 100%;\n min-width: 100%;\n max-width: 100%;\n }\n\n "," {\n width: 30%;\n min-width: 200px;\n max-width: 294px;\n }\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n position: sticky;\n z-index: 9;\n top: 0;\n align-items: center;\n\n justify-content: space-between;\n padding: 16px 24px;\n\n .search-input {\n input {\n max-width: 248px;\n height: 40px;\n background-color: ",";\n }\n\n "," {\n width: auto;\n display: inline-flex;\n margin-right: 48px;\n }\n\n "," {\n input {\n max-width: 100%;\n }\n }\n }\n\n "," {\n display: flex;\n }\n\n "," {\n background-color: #fafafa;\n }\n\n "," {\n padding: 16px 16px;\n }\n"]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n "," {\n max-height: 80vh;\n }\n align-items: center;\n padding: 16px;\n padding-top: 0px;\n padding-left: 24px;\n overflow-y: auto;\n & {\n .pagination {\n display: flex;\n justify-content: center;\n margin-top: 5px;\n justify-self: center;\n }\n }\n ::-webkit-scrollbar {\n width: 6px;\n }\n\n ::-webkit-scrollbar-thumb {\n background: ",";\n border-radius: 6px;\n }\n "," {\n padding-left: 16px;\n }\n"]);return u=function(){return n},n}function h(){var n=(0,i.A)(["\n width: 100%;\n background-color: ",";\n\n overflow-x: clip;\n > .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 h=function(){return n},n}function p(){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 p=function(){return n},n}function f(){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 f=function(){return n},n}function g(){var n=(0,i.A)(["\n height: 24px;\n width: 24px;\n cursor: pointer;\n color: red;\n\n "," {\n position: absolute;\n right: 16px;\n }\n\n "," {\n position: fixed;\n width: 48px;\n height: 48px;\n margin-left: 0;\n right: 20px;\n bottom: 40px;\n }\n\n "," {\n margin-left: 0;\n }\n\n &[data-is-add-org='true'] {\n height: 14px;\n width: 14px;\n position: initial;\n }\n"]);return g=function(){return n},n}function m(){var n=(0,i.A)(["\n display: flex;\n .search-input {\n margin-right: 16px;\n width: unset;\n }\n .add-new-btn {\n &[data-color='primary'][data-size='md'] {\n padding: 8px 16px;\n display: flex;\n margin-right: 13px;\n }\n }\n"]);return m=function(){return n},n}function v(){var n=(0,i.A)(["\n display: flex;\n .search-input {\n margin-right: 16px;\n width: unset;\n }\n .add-new-btn {\n &[data-color='primary'][data-size='md'] {\n padding: 8px 16px;\n display: flex;\n margin-right: 13px;\n }\n }\n"]);return v=function(){return n},n}function b(){var n=(0,i.A)(["\n "," {\n position: absolute;\n top: 8px;\n left: 100px;\n right: 16px;\n width: auto;\n max-width: 100%;\n opacity: 0;\n visibility: hidden;\n transition: all 0.3s ease;\n\n &.search-input input {\n width: 100%;\n max-width: 100%;\n }\n\n &.show-mobile {\n opacity: 1;\n left: 52px;\n visibility: visible;\n }\n }\n"]);return b=function(){return n},n}var 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"})(h(),(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"})(p(),o.M.mbDown),k=a.Ay.div.withConfig({componentId:"sc-8af53570-6"})(f(),(function(n){return n.theme.colors.secondaryDark}),o.M.tdOnly,o.M.tdDown,o.M.mbDown),I=(0,a.Ay)(c.A).withConfig({componentId:"sc-8af53570-7"})(g(),o.M.tdOnly,o.M.mbDown,o.M.tdOnly),Y=(a.Ay.div.withConfig({componentId:"sc-8af53570-8"})(m()),a.Ay.div.withConfig({componentId:"sc-8af53570-9"})(v()),(0,a.Ay)(r.I).withConfig({componentId:"sc-8af53570-10"})(b(),o.M.mbDown))},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,h=(0,c.useAppContext)().state,p=String(u.hospital_id||""),f=String(u.branch_id||""),g=h.userInfo,m=(null===g||void 0===g?void 0:g.role)||"",v=(0,r.useMemo)((function(){switch(m){case"admin":case"super":return"all";case"facility":return"branch";case"senior_branch":return"senior_branch";default:return"none"}}),[m]),b=(0,r.useState)({hospitalId:p,branchId:f}),w=b[0],A=b[1],x=(0,r.useCallback)((function(){var n,e;if("all"!==v||p||!f)if("senior_branch"!==v){var t,r,c=(null===(n=g.hospital)||void 0===n?void 0:n.id)&&p&&p!==String(g.hospital.id),l=(null===(e=g.branch)||void 0===e?void 0:e.id)&&"none"===v&&f&&f!==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 h;s({pathname:d,query:(0,a.Jo)((0,o.A)((0,i.A)({},u),{hospital_id:(null===(h=g.hospital)||void 0===h?void 0:h.id)||"",branch_id:""}))})}else s({pathname:d,query:(0,a.Jo)((0,o.A)((0,i.A)({},u),{hospital_id:"",branch_id:""}))})}),[s,d,u,v,p,f,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&&m&&"all"!==v?"branch"===v||"senior_branch"===v?{hospitalId:String((null===(t=g.hospital)||void 0===t?void 0:t.id)||""),branchId:f}:(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:p,branchId:f}}),[p,f,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:v,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)}},56771:function(n,e,t){"use strict";var i=t(73884),o=t(27516),r=t(73419);e.A=function(){var n=(0,r.$)(),e=n.locale,t=n.asPath,a=n.basePath;return(0,i.useMemo)((function(){return"https://".concat(o.y[e]).concat(a).concat(t)}),[])}},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",h="NOT_CALLED";function p(){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 h:return{response:null,error:null,loading:!1};default:return n}}var f=s,g=d,m=u,v=h,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,h=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)(p,l),k=M[0],I=M[1],Y=(0,r.useState)(0),D=Y[0],E=Y[1],N=w;try{N=w?JSON.stringify(w):""}catch(F){}var P=function(n,e){A&&A(n,e)};return(0,r.useEffect)((function(){if(!a||!C)return P(null,{loading:!1}),void I({type:v});if("undefined"!==typeof N||D){P(null,null),I({type:f});var n=b.source();return setTimeout((function(){t((0,o.A)((0,i.A)({url:a,method:d},h),{cancelToken:n.token})).then((function(n){P(null,n),I({type:g,payload:n.data})})).catch((function(n){P(n,null),c().isCancel(n)||I({type:m,payload:n})}))}),x||0),function(){n.cancel()}}}),[D,N]),(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){var i;(null===(i=n.current)||void 0===i?void 0:i.contains(t.target))||e(t)};(0,i.useEffect)((function(){if(null===n||void 0===n?void 0:n.current)return document.addEventListener("click",t,{capture:!0,passive:!0}),function(){document.removeEventListener("click",t,{capture:!0})}}),[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],h=d[1],p=(0,r.d)().isMobile;(0,o.useEffect)((function(){var n=document.getElementById(t);if(p&&n){var e=c()((function(){l(n,(function(n){h(!n)}))}),100);return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}}}),[t,p]);var f=(0,o.useMemo)((function(){return(0,i.Y)("div",{id:t})}),[t]);return{isSticky:u,scrollTriggerEl:f}}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),h=u[0],p=u[1];(0,o.useEffect)((function(){var n=document.getElementById(t);if(n){var e=c()((function(){s(n,a,(function(n){p(n)}))}),100);return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}}}),[t]);var f=(0,o.useMemo)((function(){return(0,i.Y)("div",{id:t})}),[t]);return{isTopSticky:h,scrollTriggerEl:f}}},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},GK:function(){return s},QA:function(){return r},XQ:function(){return c},iO:function(){return o}});var i=t(78783),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],s=[i.L.Malaysia]},53286:function(n,e,t){"use strict";t.r(e),t.d(e,{__N_SSP:function(){return R},default:function(){return V},handleChangeBranchOption:function(){return Q},handleChangeHospitalOption:function(){return _}});var i,o,r=t(858),a=t(53513),c=t(63538),l=t(81539),s=t(83776),d=t(2445),u=t(73884),h=t(83551),p=t(50041),f=t(74029),g=t(59850),m=t(84091),v=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),I=t(91266),Y=t(36259),D=t(72291),E=t(17084),N=t(82118),P=t(67141),F=t(69831),B=t(96161);function z(){return z=Object.assign?Object.assign.bind():function(n){for(var e=1;e0&&yn>1&&(0,d.Y)(F.gw,{children:(0,d.Y)(p.P,{className:"pagination",pagesAmount:yn,currentPage:kn,onChange:function(n){In(n)}})})]})]}),(0,d.Y)(b.rI,{isMobile:!1,isShowing:K,isLoading:Dn,errorMessages:tn,onClose:function(){on({content:""}),X(!1)},onAccept:function(){qn()},onDeny:function(){on({content:""}),X(!1)},title:$&&$.isActive?Bn({id:"admin.popup.doYouWantToDeactiveDoctor",defaultMessage:"Do you want to deactive doctor ?"}):Bn({id:"admin.popup.doYouWantToActiveDoctor",defaultMessage:"Do you want to active doctor ?"}),caption:$&&$.isActive?Bn({id:"admin.popup.ifYouDeactiveDoctor",defaultMessage:"If you deactivate doctor, you will not be able to book your appointment from this doctor."}):Bn({id:"admin.popup.areYouSureToActiveThisDoctor",defaultMessage:"Are you sure to active this doctor?"}),acceptButtonTitle:$&&$.isActive?Bn({id:"admin.popup.yesDeactive",defaultMessage:"Yes, Deactive"}):Bn({id:"admin.popup.yesActive",defaultMessage:"Yes, Active"}),denyButtonTittle:Bn({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(){Jn()},onDeny:function(){on({content:""}),dn(!1)},title:Bn({id:"admin.delete.titleDoctor",defaultMessage:"Are you sure to delete this doctor"}),caption:Bn({id:"booking.patientInfo.remove.confirmationPopup.caption",defaultMessage:"We can not restore it after it has been already deleted"}),acceptButtonTitle:Bn({id:"booking.patientInfo.remove.confirmationPopup.acceptButton.title",defaultMessage:"Yes, delete"}),denyButtonTittle:Bn({id:"admin.users.noKeepIt",defaultMessage:"No, keep it"})}),(0,d.Y)(N.A,{isOpened:hn,templateUrl:jn,headerValid:Hn,onCloseClick:function(){return pn(!1)},onImportClick:Qn,type:"file",maxRecordImport:50,title:Bn({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 N},useDebounce:function(){return P}});var i=t(858),o=t(81539),r=t(83776),a=t(2445),c=t(73884),l=t(50041),s=t(59850),d=t(84091),u=t(39749),h=t(77298),p=t(13954),f=t(76013),g=t(33700),m=t(27401),v=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),I=t(86204),Y=t(70527),D=t(7495),E=function(n){var e=[],t=!0,i=!1,r=void 0;try{for(var c,l=n[Symbol.iterator]();!(t=(c=l.next()).done);t=!0){var s,d,u,h=c.value,f=h.role===b.U$p.SENIOR_BRANCH,g=[{value:h.id,type:"id"},{value:{title:h.name,imgSrc:(null===h||void 0===h?void 0:h.avatar)||"".concat(b.JpE,"/images/avatar.jpg"),caption:h.email},type:"info"},{value:{heading:(null===(s=h.hospital)||void 0===s?void 0:s.name)||"",text:f?(0,a.Y)("div",{className:"branchs-cell-wrapper",children:null===(d=h.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=h.branch)||void 0===u?void 0:u.name)||""})})},type:"two_line",className:"sp-hide td-hide"},{value:(null===h||void 0===h?void 0:h.phone)||"",type:"string",className:"sp-hide"},{value:(0,a.Y)(p.o,{role:h.role}),type:"element",className:"sp-hide"},{value:h.id,type:"key",metaData:h}];e=(0,o.A)(e).concat([g])}}catch(m){i=!0,r=m}finally{try{t||null==l.return||l.return()}finally{if(i)throw r}}return e},N=!0;function P(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,p=(0,w.useRouter)(),N=(0,c.useContext)(y.B).state.userInfo,F=(0,c.useRef)(!0),B=p.locale,z=void 0===B?"vi-VN":B,O=b.EmC[z].id,S=(0,v.o)(),T=S.hospitalId,L=S.branchId,j=(0,c.useState)({}),H=j[0],U=j[1],R=(0,c.useState)(E(e)||[]),_=R[0],Q=R[1],V=(0,c.useState)(""),G=V[0],W=V[1],q=P(G),J=(0,c.useState)((null===t||void 0===t?void 0:t.last)||1),K=J[0],X=J[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),hn=un[0],pn=un[1],fn=(0,c.useState)(""),gn=fn[0],mn=fn[1],vn=(0,c.useState)({content:""}),bn=vn[0],wn=vn[1],An=(0,c.useState)(!1),xn=An[0],yn=An[1],Cn=(0,c.useState)({type:"",content:""}),Mn=Cn[0],kn=Cn[1],In=function(){var n=(0,i.A)((function(){var n;return(0,r.__generator)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),mn(""),[4,(0,d.px)((0,d.er)(s.R.POST_FORGOT_PASSWORD),"POST",{data:{email:gn}})];case 1:return(n=e.sent())&&1===(null===n||void 0===n?void 0:n._status)?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)}}(),Yn=function(){var n=(0,i.A)((function(){var n,e;return(0,r.__generator)(this,(function(t){switch(t.label){case 0:return cn(!0),[4,(0,d.W3)((0,d.er)(s.R.GET_ADMIN_USER_LIST,{page:$||"",keyword:q||"",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),X(null===n||void 0===n?void 0:n._data.pagination.last),Q(e),on(null===n||void 0===n?void 0:n._data.pagination.total_items)):n&&5===n._status&&p.push("/admin/login"),cn(!1),[2]}}))}));return function(){return n.apply(this,arguments)}}();(0,c.useEffect)((function(){F.current?F.current=!1:Yn()}),[H,q,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"}],Nn={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"}},Pn=(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===N||void 0===N?void 0:N.role)?o({id:"admin.users.branchManager",defaultMessage:"Branch Manager"}):o({id:"admin.users.allRoles",defaultMessage:"All roles"})," ").concat(void 0===tn||an?"":"(".concat(tn,")")),Fn=function(){var n=(0,i.A)((function(){var n;return(0,r.__generator)(this,(function(e){switch(e.label){case 0:return sn?(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)?(Yn(),pn(!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)&&p.push("/admin/login"),yn(!1),[2]}}))}));return function(){return n.apply(this,arguments)}}(),Bn=[b.U$p.ADMIN,b.U$p.SUPER,b.U$p.ORGANIZATION].includes((null===N||void 0===N?void 0:N.role)||"")?[{icon:(0,a.Y)(Y.A,{width:16,height:16}),name:o({id:"admin.user.resetPassword"}),action:function(n,e){mn(e.email)}},{icon:(0,a.Y)(I.A,{}),name:o({id:"admin.facilities.button.edit",defaultMessage:"Edit"}),action:function(n){p.push("/admin/users/".concat(n))}}]:[];return(null===N||void 0===N?void 0:N.role)===b.U$p.SUPER&&Bn.push({icon:(0,a.Y)(D.A,{}),name:o({id:"admin.guide.delete",defaultMessage:"Delete"}),action:function(n){dn(n),pn(!0)}}),(0,a.FD)(m.MasterDetail,{activePage:"users",title:o({id:"page.title.users",defaultMessage:"Users management"}),children:[(0,a.Y)(u.y,{className:"alert",alert:Mn,dismissTime:1e4}),(0,a.Y)(h.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:Pn,searchValue:G,selectSearchOptions:(Dn=null===N||void 0===N?void 0:N.role,Dn===b.U$p.ADMIN||Dn===b.U$p.SUPER?[Nn.all,Nn.admin,Nn.facility,Nn.senior_branch,Nn.branch]:Dn===b.U$p.ORGANIZATION?[Nn.all,Nn.facility,Nn.senior_branch,Nn.branch]:Dn===b.U$p.SENIOR_BRANCH?[Nn.all,Nn.senior_branch,Nn.branch]:[]),setCurrentPage:nn,setSearchValue:W,setSelectedSOption:function(n){U(n),nn(1)},selectSearchClassName:"branch"===(null===N||void 0===N?void 0:N.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:_,isShowEmpty:!an&&0===(null===_||void 0===_?void 0:_.length),moreOptions:Bn,onRowClicked:function(n){p.push("/admin/users/".concat(n))}}),K>1&&(0,a.Y)(M.gw,{children:(0,a.Y)(l.P,{className:"pagination",pagesAmount:K,currentPage:$,onChange:function(n){nn(n)}})})]})]}),(0,a.Y)(f.rI,{isMobile:!1,isShowing:hn,isLoading:xn,errorMessages:bn,onClose:function(){wn({content:""}),pn(!1)},onAccept:function(){Fn()},onDeny:function(){wn({content:""}),pn(!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)(f.rI,{isMobile:!1,isShowing:!!gn,isLoading:!1,onClose:function(){mn("")},onAccept:function(){In()},onDeny:function(){mn("")},caption:(0,a.Y)("p",{children:o({id:"admin.user.resetPassword.confilm"},{email:gn})}),title:o({id:"admin.user.resetPassword.receiptLink"}),acceptButtonTitle:o({id:"confirm",defaultMessage:"Confirm"}),denyButtonTittle:o({id:"cancel",defaultMessage:"No"})})]})}},97006:function(n,e,t){"use strict";t.r(e),t.d(e,{__N_SSP:function(){return q},default:function(){return J}});var i=t(24537),o=t(2445),r=t(73884),a=t(36257),c=t(72574),l=t(89103),s=t(57414),d=t(88491),u=t(73419),h=t(6442),p=t(27317),f=t(3045),g=t(76013),m=t(858),v=t(38971),b=t(53513),w=t(63538),A=t(83776),x=t(40503),y=t(87018),C=t(6806),M=t(74029),k=t(59850),I=t(84091),Y=t(4736),D=t(80264),E=t(36259),N=t(52355),P=t(72235),F=t(13493),B=t(25108),z=t(77480),O=t(45844),S=t(77317),T=t(40959),L="lc",j=[],H=["city","lc","ghc","nd315","med","yd1"],U={HAS_VOUCHER:(0,o.FD)(o.FK,{children:["T\xf4i \u0111\u1ed3ng \xfd v\u1edbi c\xe1c\xa0",(0,o.Y)("a",{href:"https://docs.google.com/document/d/1SNuKIXhHBoI3jeKwTzvIAcfj3wY2VNOW/edit",className:"text-primary600",target:"_blank",rel:"noreferrer",children:"\u0111i\u1ec1u kho\u1ea3n s\u1eed d\u1ee5ng"}),"\xa0v\xe0\xa0",(0,o.Y)("a",{href:"/static/chinh-sach-quyen-rieng-tu/",className:"text-primary600",target:"_blank",rel:"noreferrer",children:"ch\xednh s\xe1ch quy\u1ec1n ri\xeang t\u01b0"}),"\xa0c\u1ee7a Hello Bacsi"]}),DEFAULT:(0,o.FD)(o.FK,{children:["T\xf4i \u0111\u1ed3ng \xfd v\u1edbi\xa0",(0,o.Y)("a",{href:"/static/chinh-sach-quyen-rieng-tu/",className:"text-primary600",target:"_blank",rel:"noreferrer",children:"ch\xednh s\xe1ch quy\u1ec1n ri\xeang t\u01b0"}),"\xa0c\u1ee7a Hello Bacsi"]})},R=function(n){var e=n.validCampaign,t=n.serviceList,i=n.showNotiBlock,a=void 0===i||i,c=n.hasHyperlink,s=void 0!==c&&c,p=n.setOpenModal,f=n.branchListByOrgParam,g=(0,r.useContext)(E.B),R=g.state,_=g.dispatch,Q=(0,Y.useAppContext)().pushNotifications,V=(0,h.A)().formatMessage,G=(0,d.d)(),W=G.isMobile,q=G.isMobileOrTablet,J=(0,u.$)(),K=J.locale,X=J.query,Z=R.userInfo,$=T.EmC[K].id,nn=(0,r.useState)({fullName:"",email:"",phoneNumber:""}),en=nn[0],tn=nn[1],on=(0,r.useState)(null),rn=on[0],an=on[1],cn=(0,r.useState)(null),ln=cn[0],sn=cn[1],dn=(0,r.useState)({}),un=dn[0],hn=dn[1],pn=(0,r.useState)(!1),fn=pn[0],gn=pn[1],mn=(0,r.useMemo)((function(){return String(X.org||L)}),[]),vn=(0,r.useState)([]),bn=vn[0],wn=vn[1],An=(0,r.useMemo)((function(){return H.includes(mn)}),[mn]),xn=(0,r.useMemo)((function(){return j.includes(mn)}),[mn]);(0,r.useEffect)((function(){var n=function(){if(!T.kUY)try{var n=atob((0,C.Ri)("hhgCarePathLead")),e=JSON.parse(n);return{email:e.email||"",fullName:e.fullName||"",phoneNumber:e.phone||""}}catch(t){}return{}}();n.phoneNumber||n.email?tn((function(e){return(0,b.A)({},e,n)})):Z&&tn((function(n){return(0,w.A)((0,b.A)({},n),{fullName:Z.name||n.fullName,email:Z.email?Z.email:n.email,phoneNumber:Z.phone?Z.phone:n.phoneNumber})}))}),[null===Z||void 0===Z?void 0:Z.id]);var yn=(0,r.useMemo)((function(){return(f[mn]||f.lc).sort((function(n,e){return n.name.localeCompare(e.name)}))}),[f,mn]),Cn=(0,r.useState)(null===yn||void 0===yn?void 0:yn[0]),Mn=Cn[0],kn=Cn[1],In=(0,r.useMemo)((function(){var n=Mn.id,e=t.filter((function(e){return e.hospitalBranch.id===n}));return xn?e.map((function(n){return(0,w.A)((0,b.A)({},n),{hospitalBranch:(0,w.A)((0,b.A)({},n.hospitalBranch),{address:"Ph\xf2ng kh\xe1m s\u1ebd li\xean h\u1ec7 v\u1edbi b\u1ea1n \u0111\u1ec3 x\xe1c nh\u1eadn \u0111\u1ecba \u0111i\u1ec3m th\u0103m kh\xe1m."})})})):e}),[L,Mn,xn]),Yn=function(){var n=(0,m.A)((function(){var n,e;return(0,A.__generator)(this,(function(t){switch(t.label){case 0:return[4,(0,I.T7)((0,I.er)(k.R.GET_PROFILE),"GET")];case 1:return 1!==(null===(n=t.sent())||void 0===n?void 0:n._status)&&_({type:D.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,O.W)(Z)]}}))}));return function(){return n.apply(this,arguments)}}(),Dn=function(){var n=(0,m.A)((function(){var n,e,t,i,o,r,a,c;return(0,A.__generator)(this,(function(l){switch(l.label){case 0:return e=rn?(0,w.A)((0,b.A)({},rn),{email:rn.email||en.email,phone:rn.phone||en.phoneNumber}):void 0,t=(0,M.JZ)(ln||void 0,void 0,e,void 0,T.mCf.USER,"existing","",!0),i=(0,w.A)((0,b.A)({},t),{payment_via:T.JZw.COD,zalo_whatsapp:"",nik_address:"",coupon:"",shipping_id:"",source:N._v,is_roche:1,is_normal:1,free_registration:0}),xn&&(i.ca=T.qjK.lc),[4,(0,I.T7)((0,I.er)(k.R.POST_CREATE_BOOKING),"POST",{data:i,headers:{Accept:"application/json, text/plain, version=2.0.0"}})];case 1:return(o=l.sent())?(1===o._status&&(null===(n=o._data)||void 0===n?void 0:n.booking)?J.push("/booking/success?bookingId=".concat(null===(r=o._data)||void 0===r||null===(a=r.booking)||void 0===a?void 0:a.id)):(gn(!1),Q({type:"danger",message:(null===(c=o._messages)||void 0===c?void 0:c[0])||V({id:"error.anErrorOccurred",defaultMessage:"An error occurred!"})})),[2]):(Q({type:"danger",message:V({id:"error.anErrorOccurred",defaultMessage:"An error occurred!"})}),gn(!1),[2])}}))}));return function(){return n.apply(this,arguments)}}(),En=function(){var n=(0,m.A)((function(){var n,e,t,i,o,r,a,c,l,s,d;return(0,A.__generator)(this,(function(u){switch(u.label){case 0:return gn(!0),t=en.phoneNumber.replace(T.ExA[K],"0"),(i=new FormData).append("name",en.fullName),i.append("email",en.email),i.append("phone",String(t)),i.append("country_id",String($)),[4,(0,I.px)((0,I.er)(k.R.POST_ROCHE_PATIENT),"POST",{headers:{accept:"application/json, text/plain, version=2.0.0"},data:i})];case 1:return o=u.sent(),r=o&&1===o._status,a=null===(n=o._data)||void 0===n?void 0:n.patient,r&&(null===a||void 0===a?void 0:a.id)?((c=new FormData).append("hospital_service_id",String((null===ln||void 0===ln?void 0:ln.id)||"")),c.append("booking_type","service"),c.append("payment_via",T.JZw.COD),c.append("patient_id",String((null===a||void 0===a?void 0:a.id)||"0")),c.append("shipping_id",String((null===a||void 0===a?void 0:a.shipping_id)||"")),c.append("payment_type",""),c.append("is_roche","1"),c.append("is_normal","1"),c.append("free_registration","0"),xn&&c.append("ca",T.qjK.lc),[4,(0,I.px)((0,I.er)(k.R.POST_BOOKING_ROCHE_SERVICE),"POST",{headers:{accept:"application/json, text/plain, version=2.0.0"},data:c})]):(Q({message:(null===o||void 0===o?void 0:o._messages)&&(null===o||void 0===o?void 0:o._messages[0]),type:"danger"}),gn(!1),[2]);case 2:return l=u.sent(),(null===l||void 0===l?void 0:l._status)&&(null===l||void 0===l||null===(e=l._data)||void 0===e?void 0:e.booking)?[2,J.push("/booking/guest/success/?bookingId=".concat(null===l||void 0===l||null===(s=l._data)||void 0===s||null===(d=s.booking)||void 0===d?void 0:d.id,"&phone=").concat(null===a||void 0===a?void 0:a.phone))]:(Q({message:(null===l||void 0===l?void 0:l._messages)&&(null===l||void 0===l?void 0:l._messages[0])?null===l||void 0===l?void 0:l._messages[0]:V({id:"error.anErrorOccurred",defaultMessage:"An error occurred!"}),type:"danger"}),gn(!1),[2])}}))}));return function(){return n.apply(this,arguments)}}(),Nn=function(){var n=(0,m.A)((function(){var n,t;return(0,A.__generator)(this,(function(i){return e?(n=function(){var n={fullName:(0,I.tf)("name",en.fullName),email:(0,I.tf)("email",en.email),phone:R.isLoggedIn?"":(0,I.Tm)(String(en.phoneNumber),K),service:(0,I.tf)("service",ln?String(ln.id):"")};return xn&&(n.confirm_voucher=bn.includes("confirm_voucher")?"":"common.error.requiredField"),An&&(n.confirm_tnc=bn.includes("confirm_tnc")?"":"common.error.requiredField"),{errors:n,isValidForm:Object.values(n).every((function(n){return""===n}))}}(),t=n.errors,n.isValidForm?(hn({}),R.isLoggedIn?[2,Dn()]:(En(),[2])):(hn((function(n){return(0,b.A)({},n,t)})),[2])):(p(!0),[2])}))}));return function(){return n.apply(this,arguments)}}(),Pn=function(n){return function(){var e=bn.includes(n)?bn.filter((function(e){return e!==n})):bn.concat(n);wn(e),hn((function(t){return(0,w.A)((0,b.A)({},t),(0,v.A)({},n,e.includes(n)?"":"common.error.requiredField"))}))}},Fn=(0,o.FD)(o.FK,{children:[xn&&(0,o.Y)(y.d,{checked:bn.includes("confirm_voucher"),onChange:Pn("confirm_voucher"),label:(0,o.Y)(o.FK,{children:"Voucher kh\xf4ng c\xf3 gi\xe1 tr\u1ecb quy \u0111\u1ed5i th\xe0nh ti\u1ec1n m\u1eb7t. M\u1ed7i voucher ch\u1ec9 \xe1p d\u1ee5ng m\u1ed9t l\u1ea7n cho m\u1ed9t h\xf3a \u0111\u01a1n, \u0111\u1ed3ng th\u1eddi m\u1ed7i s\u1ed1 \u0111i\u1ec7n tho\u1ea1i ch\u1ec9 \u0111\u01b0\u1ee3c ph\xe9p \u0111\u0103ng k\xfd m\u1ed9t l\u1ea7n. Voucher c\xf3 gi\xe1 tr\u1ecb s\u1eed d\u1ee5ng trong 3 ng\xe0y. \xc1p d\u1ee5ng \u0111\u1ebfn h\u1ebft ng\xe0y 31/08/2025."}),classNames:{label:"!pl-2 text-[15px] leading-[24px] text-dark tracking-[-0.3px] flex-1 min-w-0",inner:"mt-[2px] !w-5 !h-5 flex items-center justify-center",input:"!rounded-[50%] !w-4 !h-4",icon:"!w-[50%]"},error:!!(null===un||void 0===un?void 0:un.confirm_voucher)&&(0,o.Y)(z.f,{children:V({id:null===un||void 0===un?void 0:un.confirm_voucher})})}),(0,o.Y)(y.d,{checked:bn.includes("confirm_tnc"),onChange:Pn("confirm_tnc"),label:xn?U.HAS_VOUCHER:U.DEFAULT,classNames:{label:"!pl-2 text-[15px] leading-[24px] text-dark tracking-[-0.3px] flex-1 min-w-0",inner:"mt-[2px] !w-5 !h-5 flex items-center justify-center",input:"!rounded-[50%] !w-4 !h-4",icon:"!w-[50%]"},error:!!(null===un||void 0===un?void 0:un.confirm_tnc)&&(0,o.Y)(z.f,{children:V({id:null===un||void 0===un?void 0:un.confirm_tnc})})})]});return(0,r.useEffect)((function(){In&&In.length&&sn(In[0])}),[In,T.KVY]),(0,r.useEffect)((function(){var n=function(){var n=(0,m.A)((function(){var n;return(0,A.__generator)(this,(function(e){switch(e.label){case 0:return[4,Yn()];case 1:return(n=e.sent())?(an(n.patientInfo),[2]):[2]}}))}));return function(){return n.apply(this,arguments)}}();R.isLoggedIn&&n()}),[R.isLoggedIn]),(0,o.Y)(P.fZ,{children:(0,o.Y)(x.C,{children:(0,o.FD)(B.AH,{className:"roche-booking-container",children:[(0,o.FD)(B.Ti,{className:"two-columns",children:[(0,o.Y)("div",{className:"patient-info",children:(0,o.Y)(F.A,{bookingCustomerInfor:en,errorMessage:un,ignoreAddressBooking:!0,patientInfo:rn,showNotiBlock:a,addressDirection:"vertical",setBookingCustomerInfor:tn})}),(0,o.Y)("div",{className:"booking-summary",children:(0,o.Y)(S.A,{handleConfirmBooking:Nn,handleSelectOption:sn,handleSelectBranch:kn,selectedServive:ln,selectedBranch:Mn,serviceList:In,branchList:yn,hasHyperlink:s,errorMessage:un,footerComponent:An&&Fn})})]}),q&&(0,o.FD)(o.FK,{children:[An&&Fn,(0,o.Y)(z.wL,{className:"text-right mt-[24px]",children:(0,o.Y)(l.B,{className:"".concat(W?"w-[100%]":""),onClick:Nn,loading:fn,children:V({id:"admin.appointment.bookingstatusDone",defaultMessage:"Done"})})})]})]})})})},_=t(28171),Q=t(8758),V=t(51241);function G(){var n=(0,i.A)(["\n svg {\n width: 64px;\n height: 64px;\n }\n\n .title {\n color: ",";\n font-size: 22px;\n font-weight: 700;\n line-height: 32px;\n margin-bottom: 8px;\n }\n\n .description {\n color: ",";\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n margin-bottom: 32px;\n "," {\n margin-bottom: 16px;\n }\n }\n"]);return G=function(){return n},n}var W=p.Ay.div.withConfig({componentId:"sc-c1011be0-0"})(G(),(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.colors.gray600}),a.M.mbDown),q=!0,J=function(n){var e=n.serviceList,t=n.validLongChauCampaign,i=n.footerInfo,a=n.branchListByOrgParam,p=(0,h.A)().formatMessage,m=(0,d.d)().isMobile,v=(0,u.$)().locale,b=(0,r.useState)(!t),w=b[0],A=b[1],x=(0,s.u)(),y=x.source,C=x.setSource;return(0,r.useEffect)((function(){return C("care_onboarding"),function(){C("")}}),[y]),(0,o.FD)(_.K,{title:p({id:"page.title.booking",defaultMessage:"Booking"}),description:p({id:"home.seoDescription",defaultMessage:"Care"}),image:T.ElQ[v].HOMEPAGE_IMAGE,isSearchBarDisplay:!1,SEOData:{isIndexable:!0,hasNoAmp:!0},isMobile:m,footerInfo:i,children:[(0,o.Y)(f.A,{children:(0,o.Y)(c.B,{size:"md",pages:[{label:"\u0110\u1eb7t l\u1ecbch ti\xeam ng\u1eeba Care",value:"".concat(T.JpE,"/dat-lich-tiem-ngua-care/")}]})}),(0,o.Y)(R,{serviceList:e,branchListByOrgParam:a,validCampaign:t,setOpenModal:A}),(0,o.Y)(g.rI,{isMobile:!1,isShowing:w,isLoading:!1,hideGroupBtn:!0,closeIcon:(0,o.Y)("div",{onClick:function(){return A(!1)},children:(0,o.Y)(Q.A,{})}),onClose:function(){A(!1)},onAccept:function(){console.log("onAccept")},onDeny:function(){A(!1)},title:"",justifyContent:"center",isHeaderText:!1,caption:(0,o.FD)(W,{children:[(0,o.Y)(V.A,{}),(0,o.Y)("div",{className:"title",children:p({id:"registration.failed.title",defaultMessage:"Registration failed"})}),(0,o.Y)("div",{className:"description",children:p({id:"registration.failed.message",defaultMessage:"The experience program has run out of registrations. Wish you sympathize!"})}),(0,o.Y)(l.B,{className:"".concat(m?"w-[100%]":""),onClick:function(){return A(!1)},children:p({id:"confirm",defaultMessage:"Confirm"})})]}),acceptButtonTitle:p({id:"admin.users.ok",defaultMessage:"OK"}),denyButtonTittle:p({id:"admin.organization.successfulPopup.close",defaultMessage:"Close"})})]})}},67722:function(n,e,t){"use strict";t.d(e,{$p:function(){return g},AQ:function(){return p},BB:function(){return l},HB:function(){return f},Hg:function(){return v},In:function(){return u},Sh:function(){return d},VG:function(){return b},Yp:function(){return h},fC:function(){return s},t2:function(){return m}});var i=t(40568),o=t(2543),r=t(10159),a=t(6442),c=t(40959),l=function(n){return(n=null===n||void 0===n?void 0:n.replace("_",""))?n.charAt(0).toUpperCase()+n.slice(1):""},s=function(n,e){var t="",i=c.pTf[e].prefix,o=void 0===i?"":i,r=Array.from(n);if(!n)return"";var a=new RegExp("^\\".concat(o),"gi").test(n);return r.forEach((function(n,e){a&&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{if(new URL(n)){var e=r.H8&&r.XF?"_self":"_blank";window.open(n,e)}}catch(t){console.log("\ud83d\ude80 ~ handleDeepLink ~ error:",t)}}function g(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 m(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 g(n)-g(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")}var b=function(n){try{var e=new URL(n).pathname;if(new RegExp("/payment").test(e)){var t=e.replace("/payment","").split("/"),i=t[t.length-1].split("-"),o=i[i.length-1].trim();return Number(o)}return null}catch(r){return console.log("\ud83d\ude80 ~ getIdFromPaymentUrl ~ error:",r),null}}},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("9171",n),n}),[])).then((function(){return n.X(0,[1570,5008,1849,971,151,1800,8e3,343,3551,9680,968,1909,7414,7465,9314,7300,1931,1145,2804,9185,9256,159,2718,6443,2876,4029,7812,5320,636,8792],(function(){return e=86659,n(n.s=e);var e}))}));_N_E=e}]);