(self.webpackChunkhhgHealthCareV1=self.webpackChunkhhgHealthCareV1||[]).push([[4909],{63343:function(n,e,t){"use strict";t.d(e,{Q7:function(){return S}});var i=t(52766),o=t(73884),r=t.n(o),a=t(94858),l=t(86566),c=t(48085),s=t(50736),d=Object.defineProperty,u=Object.defineProperties,p=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,m=(n,e,t)=>e in n?d(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,v=(n,e)=>{for(var t in e||(e={}))h.call(e,t)&&m(n,t,e[t]);if(f)for(var t of f(e))g.call(e,t)&&m(n,t,e[t]);return n};function b(n,e,t){return"undefined"!==typeof n?n in t.headings.sizes?t.headings.sizes[n].fontSize:(0,c.D)(n):t.headings.sizes[e].fontSize}function w(n,e,t){return"undefined"!==typeof n&&n in t.headings.sizes?t.headings.sizes[n].lineHeight:t.headings.sizes[e].lineHeight}var A=(0,s.r)(((n,{element:e,weight:t,inline:i},{size:o})=>{return{root:(r=v({},n.fn.fontStyles()),a={fontFamily:n.headings.fontFamily,fontWeight:t||n.headings.sizes[e].fontWeight||n.headings.fontWeight,fontSize:b(o,e,n),lineHeight:i?1:w(o,e,n),margin:0},u(r,p(a)))};var r,a})),y=t(25793),x=Object.defineProperty,C=Object.getOwnPropertySymbols,M=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,Y=(n,e,t)=>e in n?x(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;const I={order:1},E=(0,o.forwardRef)(((n,e)=>{const t=(0,l.a1)("Title",I,n),{className:i,order:o,children:a,unstyled:c,size:s,weight:d,inline:u,variant:p}=t,f=((n,e)=>{var t={};for(var i in n)M.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(null!=n&&C)for(var i of C(n))e.indexOf(i)<0&&k.call(n,i)&&(t[i]=n[i]);return t})(t,["className","order","children","unstyled","size","weight","inline","variant"]),{classes:h,cx:g}=A({element:`h${o}`,weight:d,inline:u},{name:"Title",unstyled:c,variant:p,size:s});return[1,2,3,4,5,6].includes(o)?r().createElement(y.E,((n,e)=>{for(var t in e||(e={}))M.call(e,t)&&Y(n,t,e[t]);if(C)for(var t of C(e))k.call(e,t)&&Y(n,t,e[t]);return n})({variant:p,component:`h${o}`,ref:e,className:g(h.root,i)},f),a):null}));E.displayName="@mantine/core/Title";var D=t(99312);t(11851),t(52056),t(74353);var N="MON6sfi",P="pS-tJD7",F="s3tJ9-5",B="fNsZr1b",O="uuxV74v",z="YohjTDU";function S(n){const{icon:e,title:t,description:o,button:l,buttonProps:c,style:s,className:d}=n,u=c||{},{size:p="lg",variant:f="outline"}=u,h=(0,i._)(u,["size","variant"]),g=e;return r().createElement("div",{className:(0,a.A)("result",N,d),style:s},g&&r().createElement("div",{className:(0,a.A)("resultIconContainer",P)},r().createElement(g,{className:(0,a.A)("resultIcon",F)})),r().createElement(E,{order:3,size:"h3",className:(0,a.A)("resultTitle",B)},t),r().createElement(y.E,{className:(0,a.A)("resultDescription",O)},o),l&&r().createElement(D.$,Object.assign({},h,{size:p,variant:f,className:(0,a.A)("resultButton",z,h.className)}),l))}},1657:function(n,e,t){"use strict";var i=t(73884),o=t.n(i),r=t(81383),a=function(n,e){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(null!=n&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(n);o{var{size:e,color:t=r.fT}=n,i=a(n,["size","color"]);const l=(0,r.D5)(e);return o().createElement("svg",Object.assign({width:l,height:l,viewBox:"0 0 24 24",fill:"none"},i),o().createElement("path",{fill:t,d:"M12.946 12 8.873 7.928a.73.73 0 0 1-.212-.522.7.7 0 0 1 .212-.531.72.72 0 0 1 .527-.218q.31 0 .527.218l4.494 4.494a.83.83 0 0 1 .256.633.829.829 0 0 1-.256.633l-4.494 4.493a.73.73 0 0 1-.522.213.7.7 0 0 1-.532-.213.72.72 0 0 1-.217-.526q0-.31.217-.527z"}))}},278:function(n,e,t){"use strict";var i=t(73884),o=t.n(i),r=t(81383),a=function(n,e){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(null!=n&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(n);o{var{size:e,color:t=r.fT}=n,i=a(n,["size","color"]);const l=(0,r.D5)(e);return o().createElement("svg",Object.assign({width:l,height:l,viewBox:"0 0 24 24",fill:"none"},i),o().createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.972 10.873a6.901 6.901 0 1 1 13.803 0 6.901 6.901 0 0 1-13.803 0M10.873 2a8.873 8.873 0 1 0 5.539 15.806l3.905 3.906a.986.986 0 0 0 1.394-1.395l-3.905-3.905A8.873 8.873 0 0 0 10.873 2",fill:t}))}},81383:function(n,e,t){"use strict";t.d(e,{D5:function(){return c},NP:function(){return r},fT:function(){return o}});var i=t(73884);const o="#595959",r="#2d87f3",a={normal:24,sm:20,xs:18,sxs:16},l=a.normal,c=n=>(0,i.useMemo)((()=>(n=>"number"===typeof n?n:a[n]||n||l)(n)),[n])},50624:function(n,e,t){"use strict";t.d(e,{B:function(){return S}});var i=t(73884),o=t.n(i),r=t(86566),a=t(85618);const[l,c]=(0,a.F)("List component was not found in tree");var s=t(50736),d=t(61718),u=t(9103),p=(0,s.r)(((n,{spacing:e,center:t})=>({itemWrapper:{ref:(0,d.k)("itemWrapper"),display:"inline-flex",flexDirection:"column",whiteSpace:"normal"},item:{whiteSpace:"nowrap",lineHeight:t?1:n.lineHeight,"&:not(:first-of-type)":{marginTop:(0,u.Y)({size:e,sizes:n.spacing})},"&[data-with-icon]":{listStyle:"none",[`& .${(0,d.k)("itemWrapper")}`]:{display:"inline-flex",alignItems:t?"center":"flex-start",flexDirection:"row"}}},itemIcon:{display:"inline-block",verticalAlign:"middle",marginRight:n.spacing.sm}}))),f=t(36814),h=Object.defineProperty,g=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,b=(n,e,t)=>e in n?h(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;const w={},A=(0,i.forwardRef)(((n,e)=>{const t=(0,r.a1)("ListItem",w,n),{className:i,children:a,icon:l}=t,s=((n,e)=>{var t={};for(var i in n)m.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(null!=n&&g)for(var i of g(n))e.indexOf(i)<0&&v.call(n,i)&&(t[i]=n[i]);return t})(t,["className","children","icon"]),{icon:d,spacing:u,center:h,listStyleType:A,size:y,withPadding:x,classNames:C,styles:M,unstyled:k,variant:Y}=c(),I=l||d,{classes:E,cx:D}=p({withPadding:x,listStyleType:A,center:h,spacing:u},{classNames:C,styles:M,unstyled:k,name:"List",variant:Y,size:y});return o().createElement(f.a,((n,e)=>{for(var t in e||(e={}))m.call(e,t)&&b(n,t,e[t]);if(g)for(var t of g(e))v.call(e,t)&&b(n,t,e[t]);return n})({component:"li",className:D(E.item,i),"data-with-icon":!!I||void 0,ref:e},s),o().createElement("div",{className:E.itemWrapper},I&&o().createElement("span",{className:E.itemIcon},I),o().createElement("span",null,a)))}));A.displayName="@mantine/core/ListItem";var y=Object.defineProperty,x=Object.defineProperties,C=Object.getOwnPropertyDescriptors,M=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,I=(n,e,t)=>e in n?y(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,E=(n,e)=>{for(var t in e||(e={}))k.call(e,t)&&I(n,t,e[t]);if(M)for(var t of M(e))Y.call(e,t)&&I(n,t,e[t]);return n},D=(0,s.r)(((n,{withPadding:e,listStyleType:t},{size:i})=>{return{root:(o=E({},n.fn.fontStyles()),r={listStyleType:t,color:"dark"===n.colorScheme?n.colors.dark[0]:n.black,fontSize:(0,u.Y)({size:i,sizes:n.fontSizes}),lineHeight:n.lineHeight,margin:0,paddingLeft:e?n.spacing.xl:0,listStylePosition:"inside"},x(o,C(r)))};var o,r})),N=Object.defineProperty,P=Object.getOwnPropertySymbols,F=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,O=(n,e,t)=>e in n?N(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;const z={type:"unordered",size:"md",spacing:0},S=(0,i.forwardRef)(((n,e)=>{const t=(0,r.a1)("List",z,n),{children:i,type:a,size:c,listStyleType:s,withPadding:d,center:u,spacing:p,icon:h,className:g,styles:m,classNames:v,unstyled:b,variant:w}=t,A=((n,e)=>{var t={};for(var i in n)F.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(null!=n&&P)for(var i of P(n))e.indexOf(i)<0&&B.call(n,i)&&(t[i]=n[i]);return t})(t,["children","type","size","listStyleType","withPadding","center","spacing","icon","className","styles","classNames","unstyled","variant"]),{classes:y,cx:x}=D({withPadding:d,listStyleType:s,center:u,spacing:p},{classNames:v,styles:m,name:"List",unstyled:b,size:c,variant:w});return o().createElement(l,{value:{spacing:p,center:u,icon:h,listStyleType:s,size:c,withPadding:d,classNames:v,styles:m,unstyled:b,variant:w}},o().createElement(f.a,((n,e)=>{for(var t in e||(e={}))F.call(e,t)&&O(n,t,e[t]);if(P)for(var t of P(e))B.call(e,t)&&O(n,t,e[t]);return n})({component:"unordered"===a?"ul":"ol",className:x(y.root,g),ref:e},A),i))}));S.Item=A,S.displayName="@mantine/core/List"},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)===c.vne.RANGE&&H.maxPrice&&w.append("services[".concat(j,"][price_to]"),H.maxPrice.toString()))}}catch(R){O=!0,z=R}finally{try{B||null==T.return||T.return()}finally{if(O)throw z}}return F.length&&w.append("services_delete_ids",F.join(",")),null===(d=n.experiences)||void 0===d||d.forEach(u("experience",w)),null===(f=n.education)||void 0===f||f.forEach(u("education",w)),null===(h=n.awards)||void 0===h||h.forEach(u("awards",w)),null===(g=n.publication)||void 0===g||g.forEach(p("publication",w)),null===(m=n.memberships)||void 0===m||m.forEach(p("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,l=!1,c=void 0;try{for(var s,d=Object.entries(i.fields)[Symbol.iterator]();!(r=(s=d.next()).done);r=!0){var u=(0,a.A)(s.value,2),p=u[0],f=u[1];"id"!==p&&!t.includes(p)&&f&&e.append("".concat(n,"[").concat(o,"][").concat(p,"]"),f.toString())}}catch(h){l=!0,c=h}finally{try{r||null==d.return||d.return()}finally{if(l)throw c}}}}function p(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return function(i,o){var r=!0,l=!1,c=void 0;try{for(var s,d=Object.entries(i)[Symbol.iterator]();!(r=(s=d.next()).done);r=!0){var u=(0,a.A)(s.value,2),p=u[0],f=u[1];"id"!==p&&!t.includes(p)&&f&&e.append("".concat(n,"[").concat(o,"][").concat(p,"]"),f.toString())}}catch(h){l=!0,c=h}finally{try{r||null==d.return||d.return()}finally{if(l)throw c}}}}function f(n,e){var t,i,r,a,l,s,d,u,p,f,h,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===(l=n.branch)||void 0===l?void 0:l.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===c.jc_.BOTH||n.provideCare===c.jc_.ADULTS),children:Boolean(n.provideCare===c.jc_.BOTH||n.provideCare===c.jc_.CHILDREN)},atAGlance:n.glance,additionalServices:n.services?n.services.map((function(n){return{saved:!0,toRemove:!1,id:n.id,description:n.description,name:n.name,priceType:n.price_type,price:n.price?Math.round(Number(n.price)):void 0,maxPrice:n.price_to||0}})):[],experiences:(null===(u=n.experience)||void 0===u?void 0:u.map((function(n,e){return{id:e,saved:!0,fields:n}})))||[],education:(null===(p=n.education)||void 0===p?void 0:p.map((function(n,e){return{id:e,saved:!0,fields:n}})))||[],awards:(null===(f=n.awards)||void 0===f?void 0:f.map((function(n,e){return{id:e,saved:!0,fields:n}})))||[],publication:(null===(h=n.publication)||void 0===h?void 0:h.map((function(n,e){return(0,o.A)({id:e},n)})))||[],memberships:(null===(g=n.memberships)||void 0===g?void 0:g.map((function(n,e){return(0,o.A)({id:e},n)})))||[],languages:(null===(m=n.languages)||void 0===m?void 0:m.map((function(n,e){return{id:e,name:n}})))||[],faq:(null===(v=n.faqs)||void 0===v?void 0:v.map((function(n){return(0,o.A)({saved:!0},n)})))||[],contract:null===(b=n.contract)||void 0===b?void 0:b.toString(),tierDesc:n.tier?{label:n.tier.description,value:n.tier.id}:null,tierLever:n.tier?{label:n.tier.level,value:n.tier.level}:null,academyDesc:n.academy?{label:n.academy.description,value:n.academy.id}:null,academyLever:n.academy?{label:n.academy.level,value:n.academy.level}:null,client:n.client?{label:n.client.label,value:n.client.value}:null};if(n.avatar&&(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 y=!0,x=!1,C=void 0;try{for(var M,k=n.experiences[Symbol.iterator]();!(y=(M=k.next()).done);y=!0){var Y=M.value;try{var I=JSON.parse(Y.description),E=I.content,D=I.year;(E||D)&&(A.experiencesLegacy+="".concat(E,": ").concat(D,"\n"))}catch(N){}}}catch(P){x=!0,C=P}finally{try{y||null==k.return||k.return()}finally{if(x)throw C}}}return A}function h(n){var e,t,i,o,r,a;return{id:+new Date,doctorId:Date.now().toString(),gender:Number(n.doctorGender),name:n.doctorName,provideCare:n.provideCareFor.adults&&n.provideCareFor.children?c.jc_.BOTH:n.provideCareFor.adults?c.jc_.ADULTS:c.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(c.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:c.XQv.ACTIVE,promotion:!1,client:null,vouchers:[],doctorWebsite:""}}function g(n){var e={},t=!0,i=!1,o=void 0;try{for(var r,l=Object.entries(n)[Symbol.iterator]();!(t=(r=l.next()).done);t=!0){var c=(0,a.A)(r.value,2),s=c[0],d=c[1];e[s]=d||""}}catch(u){i=!0,o=u}finally{try{t||null==l.return||l.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,l.A)(null===n||void 0===n?void 0:n.birthday,c.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(64564),a=t(76013),l=t(36259);e.A=function(n){var e=n.roles,t=n.children,c=(0,o.useContext)(l.B).state,s=c.loading,d=c.userInfo,u=(0,o.useMemo)((function(){return Boolean(e&&(null===d||void 0===d?void 0:d.role)&&e.includes(null===d||void 0===d?void 0:d.role))}),[null===d||void 0===d?void 0:d.role]);return s||!s&&!(null===d||void 0===d?void 0:d.id)?(0,i.Y)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh"},children:(0,i.Y)(r.L,{})}):u?(0,i.Y)(i.FK,{children:t}):(0,i.Y)(a.JC,{})}},63328:function(n,e,t){"use strict";t.d(e,{TO:function(){return g},fd:function(){return p},q3:function(){return u},wO:function(){return h},x0:function(){return f},xF:function(){return m}});var i=t(24537),o=t(27317);function r(){var n=(0,i.A)(["\n font-weight: 700;\n color: ",";\n font-size: 12px;\n"]);return r=function(){return n},n}function a(){var n=(0,i.A)(["\n display: flex;\n flex-direction: column;\n gap: 8px;\n"]);return a=function(){return n},n}function l(){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 l=function(){return n},n}function c(){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 c=function(){return n},n}function s(){var n=(0,i.A)(["\n display: flex;\n flex-direction: column;\n gap: 16px;\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n display: flex;\n gap: 16px;\n justify-content: flex-end;\n margin-top: 16px;\n"]);return d=function(){return n},n}var u=o.Ay.label.withConfig({componentId:"sc-a445b49e-0"})(r(),(function(n){return n.theme.colors.gray600})),p=o.Ay.div.withConfig({componentId:"sc-a445b49e-1"})(a()),f=o.Ay.div.withConfig({componentId:"sc-a445b49e-2"})(l(),(function(n){return n.theme.colors.red700})),h=o.Ay.div.withConfig({componentId:"sc-a445b49e-3"})(c(),(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 y}});var i=t(2445),o=t(32876),r=t.n(o),a=t(24537),l=t(27317);function c(){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 c=function(){return n},n}function s(){var n=(0,a.A)(["\n display: flex;\n align-items: center;\n"]);return s=function(){return n},n}function d(){var n=(0,a.A)(["\n width: 1px;\n height: 20px;\n background-color: ",";\n margin: 0 10px 0 15px;\n"]);return d=function(){return n},n}function u(){var n=(0,a.A)(["\n width: 32px;\n height: 32px;\n flex: 0 0 32px;\n background-color: ",";\n cursor: pointer;\n align-items: center;\n justify-content: center;\n display: flex;\n border-radius: 50%;\n"]);return u=function(){return n},n}var p,f=l.Ay.div.withConfig({componentId:"sc-dc56748f-0"})(c(),(function(n){return n.theme.colors.blue50}),(function(n){return n.theme.colors.primaryBase})),h=l.Ay.div.withConfig({componentId:"sc-dc56748f-1"})(s()),g=l.Ay.div.withConfig({componentId:"sc-dc56748f-2"})(d(),(function(n){return n.theme.colors.neutral100})),m=l.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 p(n){var e=n.name,t=n.options,r=n.label,s=n.labelLayout,d=void 0===s?"inline":s,p=n.className,f=n.direction,h=void 0===f?"horizontal":f;return(0,i.Y)(l.xI,{name:e,render:function(n){var e,l=n.field,s=l.onChange,f=l.value,g=l.name;return(0,i.FD)(u,{className:a()(p,{"title-block":"block"===d}),children:[r&&(0,i.Y)(c.q3,{children:r}),(0,i.Y)(o.R,{id:"radio-group-".concat(g),type:"circle",size:"small",direction:h,className:"form-radio-group",onChange:s,value:(null===(e=t.find((function(n){return n.value===String(f)})))||void 0===e?void 0:e.value)||"",options:t})]})}})}},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),l=t.n(a),c=t(24537);function s(){var n=(0,c.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,c=n.wrapperSize,s=n.iconSize,u=void 0===s?24:s,p=n.wrapperStyle,f=n.iconStyle,h=n.svgIcon,g=n.wrapperProps;return(0,r.Y)(d,(0,o.A)((0,i.A)({className:t,onClick:a,style:(0,i.A)({},c&&{"--wrapper-size":c},u&&{"--icon-size":u},h&&(0,i.A)({},h.fill&&{"--icon-fill-color":h.fill},h.stroke&&{"--icon-stroke-color":h.stroke}),p),"data-clickable":!!a,"data-svg-custom-stroke":!!(null===h||void 0===h?void 0:h.stroke),"data-svg-custom-fill":!!(null===h||void 0===h?void 0:h.fill)},g),{children:l().cloneElement(e,{style:f})}))}},95456:function(n,e,t){"use strict";t.d(e,{Y:function(){return c}});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),l=t.n(a),c=function(n){return(0,o.Y)(l(),(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),l=t(73419),c=t(32876),s=t.n(c);e.A=function(n){var e=n.children,t=n.linkProps,c=(0,r.A)(n,["children","linkProps"]);return(0,l.$)().isNewNextRouter?(0,a.Y)(s(),(0,o.A)((0,i.A)({},c,t),{children:(0,a.Y)(a.FK,{children:e})})):(0,a.Y)(s(),(0,o.A)((0,i.A)({},c),{children:(0,a.Y)("a",(0,o.A)((0,i.A)({},t),{children:e}))}))}},74834:function(n,e,t){"use strict";t.d(e,{A:function(){return h}});var i=t(2445),o=t(73884),r=t(34555),a=t(73419),l=t(6442),c=t(58065),s=t(24537);function d(){var n=(0,s.A)(["\n border-radius: 4px;\n background: ",";\n width: fit-content;\n display: flex;\n gap: 4px;\n padding: 5px 12px 5px 8px;\n font-size: 14px;\n font-weight: 400;\n line-height: 22px;\n color: ",";\n pointer-events: initial;\n\n svg {\n margin-top: 5px;\n flex: 0 0 14px;\n path {\n fill: ",";\n }\n }\n"]);return d=function(){return n},n}var u=t(27317).Ay.div.withConfig({componentId:"sc-3d08c06-0"})(d(),(function(n){return n.bgColor}),(function(n){return n.iconColor}),(function(n){return n.iconColor})),p=t(40959),f=t(46529),h=function(n){var e=n.title,t=n.showTooltip,s=void 0===t||t,d=n.bgColor,h=void 0===d?"#FFF8E2":d,g=n.iconColor,m=void 0===g?"#FC7419":g,v=n.className,b=function(n){return(0,i.Y)("span",{children:n})},w=(0,l.A)().formatMessage,A=(0,a.$)().locale,y=void 0===A?"vi-VN":A,x=p.Xq3[y],C=(0,o.useMemo)((function(){return(null===x||void 0===x?void 0:x.email)&&(null===x||void 0===x?void 0:x.hotline)?(0,i.Y)(c.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===x||void 0===x?void 0:x.hotline)||"",email:(null===x||void 0===x?void 0:x.email)||""}}):(null===x||void 0===x?void 0:x.email)&&!(null===x||void 0===x?void 0:x.hotline)?(0,i.Y)(c.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===x||void 0===x?void 0:x.email}}):""}),[x]),M=(0,o.useMemo)((function(){return{tooltip:{maxWidth:"268px",whiteSpace:"initial",padding:"8px",display:C&&s?"initial":"none",p:{fontSize:"12px",fontWeight:"400",lineHeight:"18px"},span:{color:"#2D87F3",textDecoration:"underline"}}}}),[C,s]);return(0,i.Y)(r.m,{label:C,styles:M,withArrow:!0,children:(0,i.Y)("div",{className:v,children:(0,i.FD)(u,{className:"flex items-start",bgColor:h,iconColor:m,children:[(0,i.Y)(f.A,{className:"mr-[0px]"}),e||w({id:"admin.voucher.applicable",defaultMessage:"Voucher applicable"})]})})})}},39749:function(n,e,t){"use strict";t.d(e,{y:function(){return h}});var i=t(24537),o=t(2445),r=t(73884),a=t(19599),l=t(27317),c=t(87809),s=t(23662),d=t(8758);function u(){var n=(0,i.A)([""]);return u=function(){return n},n}var p=l.Ay.div.withConfig({componentId:"sc-d3209884-0"})(u()),f=function(n){return n?{type:n.type,content:n.content||n.message||""}:void 0},h=function(n){var e=n.className,t=n.alert,i=n.dismissTime,l=void 0===i?3e3:i,u=(0,r.useState)(f(t)),h=u[0],g=u[1];(0,r.useEffect)((function(){g(f(t))}),[t]),(0,r.useEffect)((function(){var n=setInterval((function(){(null===h||void 0===h?void 0:h.content)&&h.content.length>0&&m()}),l);return function(){clearInterval(n)}}),[null===h||void 0===h?void 0:h.content,l]);var m=function(){g(void 0)};return(0,o.Y)(p,{className:e,children:(null===h||void 0===h?void 0:h.content)&&(0,o.Y)(a.A,{closeIcon:(0,o.Y)(d.A,{onClick:function(){return m()}}),contentIcon:"success"===h.type?(0,o.Y)(c.A,{}):(0,o.Y)(s.A,{}),text:h.content,type:"success"===h.type?"success":"danger"})})}},76948:function(n,e,t){"use strict";t.d(e,{u:function(){return a}});var i=t(2445),o=t(10905),r=t(4796),a=function(n){var e=n.content,t=n.isOpen;return(0,i.Y)(o.N,{initial:!1,children:t&&(0,i.Y)(r.IU,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},children:(0,i.Y)(r.xv,{color:"var(--gray600)",size:"p2",children:e})})})}},4796:function(n,e,t){"use strict";t.d(e,{IU:function(){return w},PZ:function(){return g},dX:function(){return b},uB:function(){return v},w9:function(){return m},xv:function(){return A}});var i=t(24537),o=t(15159),r=t(1050),a=t(66031),l=t(27317);function c(){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 c=function(){return n},n}function s(){var n=(0,i.A)(["\n ","\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)([""]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n --border-style: 1px solid var(--neutral100);\n padding: 16px 0;\n border-bottom: var(--border-style);\n display: flex;\n justify-content: space-between;\n align-items: center;\n cursor: pointer;\n background-color: white;\n text-align: left;\n line-height: 1.5;\n &:focus-visible {\n outline: 1px solid var(--gray600);\n }\n\n "," {\n > :first-child {\n flex: 6;\n }\n\n > :last-child {\n flex: 1;\n display: flex;\n justify-content: end;\n }\n }\n"]);return u=function(){return n},n}function p(){var n=(0,i.A)(["\n font-weight: var(--fwSemiBold);\n"]);return p=function(){return n},n}function f(){var n=(0,i.A)(["\n color: var(--gray600);\n overflow: hidden;\n"]);return f=function(){return n},n}function h(){var n=(0,i.A)(["\n white-space: pre-line;\n margin-bottom: 24px;\n margin-top: 16px;\n"]);return h=function(){return n},n}var g=l.Ay.section.withConfig({componentId:"sc-105c083f-0"})(s(),(function(n){return n.disableVerticalPadding&&(0,l.AH)(c())})),m=l.Ay.div.withConfig({componentId:"sc-105c083f-1"})(d()),v=l.Ay.button.withConfig({componentId:"sc-105c083f-2"})(u(),o.M.mbDown),b=(0,l.Ay)(r.T).withConfig({componentId:"sc-105c083f-3"})(p()),w=(0,l.Ay)(a.m.div).withConfig({componentId:"sc-105c083f-4"})(f()),A=(0,l.Ay)(r.T).withConfig({componentId:"sc-105c083f-5"})(h())},54421:function(n,e,t){"use strict";t.d(e,{n:function(){return d}});var i=t(2445),o=t(73884),r=t(76948),a=t(10905),l=t(66031),c=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)(l.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,l=n.disableVerticalPadding,d=void 0!==l&&l,u=(0,o.useState)(-1),p=u[0],f=u[1],h=function(n){return f(n===p?-1:n)};return(0,i.Y)(s.PZ,{className:t,style:a,disableVerticalPadding:d,children:e&&e.length>0&&e.map((function(n,e){return(0,i.FD)(s.w9,{"aria-expanded":e===p,"aria-controls":"accordion-button-".concat(e+1),role:"region",children:[(0,i.FD)(s.uB,{onMouseDown:function(){return h(e)},onKeyDown:function(n){return function(n,e){"Enter"!==n.key&&" "!==n.key||h(e)}(n,e)},id:"accordion-button-".concat(e+1),children:[(0,i.Y)(s.dX,{size:"s2",children:n.title}),(0,i.Y)("div",{children:(0,i.Y)(c,{isOpen:e===p})})]}),(0,i.Y)(r.u,{isOpen:e===p,content:n.content})]},n.title+e)}))})}},98480:function(n,e,t){"use strict";t.d(e,{CL:function(){return s},D9:function(){return d},Vj:function(){return u}});var i=t(24537),o=t(15159),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 l(){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 l=function(){return n},n}function c(){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 c=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"})(l(),(function(n){return n.theme.colors.blue600})),u=r.Ay.ul.withConfig({componentId:"sc-689f868d-2"})(c(),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.neutral100}))},53956:function(n,e,t){"use strict";t.d(e,{AY:function(){return g},E6:function(){return h},kc:function(){return f}});var i=t(24537),o=t(40959),r=t(27317);function a(){var n=(0,i.A)(["\n 0% {\n opacity: 1;\n transform: translate(-50%, 0);\n }\n 99% {\n opacity: 0;\n transform: translate(-50%, 100%);\n }\n 100% {\n opacity: 0;\n visibility: hidden;\n transform: translate(-50%, 100%);\n }\n"]);return a=function(){return n},n}function l(){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 l=function(){return n},n}function c(){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 c=function(){return n},n}function s(){var n=(0,i.A)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n border: 1px solid ",";\n background: ",";\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n /* background: ","; */\n width: 100%;\n padding: 2px 5px;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 5px;\n img {\n height: 12px;\n }\n"]);return d=function(){return n},n}var u=(0,r.i7)(a()),p=(0,r.i7)(l()),f=r.Ay.div.withConfig({componentId:"sc-882e60dd-0"})(c(),o.Mue.adBlock,u,p),h=r.Ay.div.withConfig({componentId:"sc-882e60dd-1"})(s(),(function(n){return n.theme.colors.neutral50}),(function(n){return n.theme.colors.neutral50})),g=r.Ay.div.withConfig({componentId:"sc-882e60dd-2"})(d(),(function(n){return n.theme.colors.neutral50}))},20607:function(n,e,t){"use strict";t.d(e,{z:function(){return f}});var i=t(2445),o=t(73884),r=t(1050),a=t(35291),l=t(10297),c=t(6442),s=t(53956),d=t(70931),u=function(n){if(n){window.googletag=window.googletag||{cmd:[]};var e=window.googletag;e.cmd.push((function(){e.destroySlots([n])}))}},p=(0,o.forwardRef)((function(n,e){var t=n.className,p=n.adUnitPath,f=n.size,h=n.divId,g=n.pos,m=n.sizeMapping,v=n.isHidden,b=n.hideIfHasSubot,w=n.refreshInterval,A=n.customTargetings,y=n.style,x=n.adDefaultSize,C=(0,l.useRouter)().locale,M=(0,c.A)().formatMessage,k=d.Uq.includes(C),Y=(0,o.useRef)(null),I=(0,o.useRef)(null),E=(0,o.useRef)(null),D=(0,o.useRef)(!1),N=function(){u(I.current),I.current=function(n){var e=n.adUnitPath,t=n.size,i=n.divId,o=n.pos,r=n.sizeMapping,a=n.hideIfHasSubot,l=n.customTargetings;if(document.getElementById(i)){window.googletag=window.googletag||{cmd:[]};var c=window.googletag;c.cmd.push((function(){var n,s=null===(n=c.defineSlot(e,t,i))||void 0===n?void 0:n.setTargeting("Pos",o);try{l&&Object.keys(l).forEach((function(n){n&&(null===s||void 0===s||s.setTargeting(n,l[n]))}))}catch(d){console.error(d)}if(s)return null===s||void 0===s||s.addService(c.pubads()),r&&s.defineSizeMapping(r),a&&document.getElementById("subot--container")&&s.setTargeting("chatbot",!0),c.pubads(),c.enableServices(),c.display(i),s}))}}({adUnitPath:p,size:f,divId:h,pos:g,sizeMapping:m,hideIfHasSubot:b,customTargetings:A}),w&&(null!==E.current&&clearInterval(E.current),E.current=window.setInterval((function(){window.googletag=window.googletag||{cmd:[]};var n=window.googletag;n.cmd.push((function(){I.current&&n.pubads().refresh([I.current])}))}),1e3*w))},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));D.current=!0}),1e3+Math.floor(1e3*Math.random())),function(){I.current&&u(I.current),E.current&&clearInterval(E.current)}}),[]),(0,o.useEffect)((function(){var n;!v&&k&&D.current&&(null===(n=P.current)||void 0===n||n.call(P))}),[]),k?(0,i.FD)(s.E6,{ref:Y,className:t,style:y,children:[(0,i.FD)(s.AY,{children:[(0,i.Y)("img",{src:"/care/svg/adsIcon.svg"}),(0,i.Y)(r.T,{size:"p4",color:a.w.colors.gray600,children:M({id:"footer.advertising",defaultMessage:"Advertising"})})]}),(0,i.Y)("div",{style:{minWidth:x?"".concat(x[0],"px"):"100%",minHeight:x?"".concat(x[1],"px"):"100%"},children:(0,i.Y)("div",{ref:e,id:h})})]}):null})),f=(0,o.memo)(p,(function(n,e){return n.adUnitPath===e.adUnitPath&&n.divId===e.divId&&n.style===e.style}))},70931:function(n,e,t){"use strict";t.d(e,{Uq:function(){return p},oq:function(){return u}});var i,o=t(38971),r=t(2763),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),l="Mobile",c="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?l:c);var p=a[e]+u;return r?"/".concat(d,"/").concat(p,"/").concat(r):o?"/".concat(d,"/").concat(p,"/").concat(p,"_Care/").concat(o):"/".concat(d,"/").concat(p,"/ad")},p=[r.L.Vietnam]},12681:function(n,e,t){"use strict";t.d(e,{D$:function(){return g},IM:function(){return m},af:function(){return v},b7:function(){return h},rf:function(){return p},tu:function(){return f}});var i=t(24537),o=t(15159),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 l(){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 l=function(){return n},n}function c(){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 c=function(){return n},n}function s(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n\n > * {\n margin-right: 16px;\n\n "," {\n &:last-child {\n margin-right: 0;\n }\n }\n }\n\n .telemedicine-toggle {\n & > label {\n gap: 10px;\n flex-direction: row-reverse;\n\n span {\n padding: 0;\n }\n }\n }\n\n .new-branch-btn {\n white-space: nowrap;\n border: none;\n }\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n\n color: ",";\n cursor: pointer;\n\n > :first-child {\n margin-right: 4px;\n }\n & {\n .edit {\n margin-top: 4px;\n font-size: 12px;\n font-weight: 600;\n line-height: 18px;\n }\n }\n"]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n max-width: 300px;\n min-width: 150px;\n\n input {\n height: 40px;\n background-color: ",";\n }\n\n "," {\n max-width: 225px;\n }\n\n "," {\n position: absolute;\n left: 100px;\n right: 50px;\n max-width: 100%;\n opacity: 0;\n visibility: hidden; \n transition: all 0.3s ease;\n margin-right: 0;\n\n .appointment & {\n right: 35px;\n }\n\n ","\n"]);return u=function(){return n},n}var p=r.Ay.div.withConfig({componentId:"sc-66ebac93-0"})(a(),(function(n){return n.theme.colors.neutral200})),f=(0,r.Ay)(p).withConfig({componentId:"sc-66ebac93-1"})(l(),(function(n){return n.theme.colors.neutral200}),(function(n){return n.theme.colors.white}),o.M.mbDown,p,(function(n){return n.theme.colors.neutral150})),h=r.Ay.figure.withConfig({componentId:"sc-66ebac93-2"})(c()),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(67628),l=t(32485),c=t.n(l),s=t(88491),d=t(10297),u=t(6442),p=t(36259),f=t(48403),h=t(12681),g=t(40568),m=t(62862),v=t(43184),b=t(24537),w=t(15159),A=t(27317);function y(){var n=(0,b.A)(["\n position: relative;\n\n &.hide-select-search {\n pointer-events: none;\n svg {\n visibility: hidden;\n }\n }\n"]);return y=function(){return n},n}function x(){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 x=function(){return n},n}function C(){var n=(0,b.A)(["\n position: absolute;\n z-index: 110;\n top: 100%;\n right: 0;\n left: 0;\n display: block;\n min-width: 262px;\n background: ",";\n border-radius: 6px;\n box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),\n -2px 2px 5px rgba(67, 86, 100, 0.123689);\n cursor: pointer;\n\n "," {\n box-shadow: 0px 10px 16px rgb(0, 0, 0, 0.04), 0px 2px 8px rgb(0, 0, 0, 0.04),\n 0px 0px 1px rgb(0, 0, 0, 0.04);\n }\n"]);return C=function(){return n},n}function M(){var n=(0,b.A)(["\n padding: 8px;\n background: ",";\n input {\n height: 40px;\n background: ",";\n }\n input::placeholder {\n color: ",";\n font-size: 14px;\n }\n"]);return M=function(){return n},n}function k(){var n=(0,b.A)(["\n min-width: 262px;\n max-height: 300px;\n padding: 8px;\n overflow-y: auto;\n"]);return k=function(){return n},n}function Y(){var n=(0,b.A)(["\n display: flex;\n padding: 12px 18px 12px 16px;\n font-size: 16px;\n font-weight: 400;\n &:hover,\n :active {\n background: ",";\n }\n"]);return Y=function(){return n},n}var I,E=A.Ay.div.withConfig({componentId:"sc-d4262f1d-0"})(y()),D=A.Ay.div.withConfig({componentId:"sc-d4262f1d-1"})(x(),(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"})(Y(),(function(n){return n.theme.colors.gray100})),O=t(88576),z=t(47770),S=function(n){var e=n.className,t=n.style,l=n.title,c=n.placeholder,s=n.options,d=n.onChange,u=n.onSearchChange,p=n.hasSearch,f=void 0===p||p,h=n.isLoading,b=(0,o.useState)(""),w=b[0],A=b[1],y=(0,g.A)(r().useState(!1),2),x=y[0],C=y[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)(E,{className:e,style:t,ref:M,children:[(0,i.FD)(D,{onClick:function(){return C(!x)},children:[(0,i.Y)("div",{children:l}),s.length>0&&(0,i.Y)(O.A,{})]}),x&&s.length>0&&(0,i.FD)(N,{children:[f&&(0,i.Y)(P,{children:(0,i.Y)(a.I,{size:"sm",displayIcon:(0,i.Y)(z.A,{}),name:"",value:w,placeholder:c,onChange:function(n){A(n),u&&u(n)},autoComplete:"off"})}),(0,i.FD)(F,{children:[!h&&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))})),!h&&0===k.length&&(0,i.Y)("div",{className:"text-c",children:(0,i.Y)(v.Sv,{})}),h&&(0,i.Y)("div",{className:"text-c",children:(0,i.FD)(v.vv,{width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,i.Y)("mask",{id:"a",fill:"#fff",children:(0,i.Y)("path",{d:"M12 0A12 12 0 11.19 9.88l3.9.7A8.03 8.03 0 1012 3.98V0z"})}),(0,i.Y)("path",{d:"M12 0A12 12 0 11.19 9.88l3.9.7A8.03 8.03 0 1012 3.98V0z",stroke:"#2D87F3",strokeWidth:"8",mask:"url(#a)"})]})})]})]})]})},T=t(69831),L=t(65004),j=t(40959),H=t(8758);function R(){return R=Object.assign?Object.assign.bind():function(n){for(var e=1;e div > h5 {\n color: ",";\n }\n\n "," {\n position: fixed;\n z-index: 11;\n top: 0;\n box-shadow: 0px 0px 8px rgba(40, 74, 117, 0.08);\n width: calc(100vw - var(--side-menu-width));\n }\n\n "," {\n width: 100%;\n top: 64px;\n align-items: center;\n border-bottom: 1px solid\n ",";\n\n &:not(.has-search) {\n height: 56px;\n }\n }\n\n "," {\n padding: 10px 16px;\n\n &.has-search {\n height: 160px;\n }\n }\n"]);return l=function(){return n},n}function c(){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 c=function(){return n},n}function s(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n padding-right: 32px;\n\n & > :not(:first-child) {\n margin-left: 24px;\n }\n\n & {\n .alert {\n position: absolute;\n top: 84px;\n right: 0;\n overflow: hidden;\n width: 25vw;\n }\n }\n\n "," {\n padding-right: 0;\n margin-left: auto;\n\n & > :not(:first-child) {\n margin-left: 16px;\n }\n }\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n background-color: white;\n position: relative;\n\n "," {\n display: unset;\n width: 100%;\n }\n\n "," {\n width: 100%;\n justify-content: space-between;\n }\n\n & > :not(:first-child) {\n margin-left: 24px;\n }\n"]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n max-height: 24px;\n"]);return u=function(){return n},n}function p(){var n=(0,i.A)(["\n position: relative;\n width: auto;\n padding-right: 32px;\n padding-left: 32px;\n background-image: url('","/bgSvg/calendar.svg'),\n url('","/svg/chevron-down.svg');\n background-position: 0px center, right center;\n background-repeat: no-repeat;\n background-size: 15px 15px;\n font-weight: ",";\n"]);return p=function(){return n},n}function f(){var n=(0,i.A)(["\n position: relative;\n & svg {\n cursor: pointer;\n }\n"]);return f=function(){return n},n}function h(){var n=(0,i.A)(["\n position: absolute;\n top: 100%;\n right: 0;\n min-width: 200px;\n border: 1px solid ",";\n margin: 8px 0;\n background: white;\n border-radius: 6px;\n filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04));\n\n li {\n display: flex;\n align-items: center;\n padding: 12px 18px;\n cursor: pointer;\n white-space: nowrap;\n &:hover {\n background: #f2f2f2;\n }\n & {\n a {\n color: ",";\n text-decoration: none;\n }\n }\n & {\n svg {\n margin-right: 12px;\n }\n }\n }\n"]);return h=function(){return n},n}function g(){var n=(0,i.A)(["\n display: flex;\n "," {\n display: unset;\n }\n input {\n width: 100%;\n height: 40px;\n }\n & {\n .dropdown {\n min-width: 250px;\n margin-right: 8px;\n font-size: 14px;\n\n "," {\n margin-right: 0;\n }\n\n input::placeholder {\n color: ",";\n }\n }\n\n .hospital {\n "," {\n padding-bottom: 8px;\n }\n }\n }\n"]);return g=function(){return n},n}var m=a.Ay.header.withConfig({componentId:"sc-29f61629-0"})(l(),(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"})(c(),(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()),y=a.Ay.button.withConfig({componentId:"sc-29f61629-5"})(p(),r.JpE,r.JpE,(function(n){return n.theme.sizes.fwSemiBold})),x=a.Ay.div.withConfig({componentId:"sc-29f61629-6"})(f()),C=a.Ay.div.withConfig({componentId:"sc-29f61629-7"})(h(),(function(n){return n.theme.colors.neutral200}),(function(n){return n.theme.colors.gray800})),M=a.Ay.div.withConfig({componentId:"sc-29f61629-8"})(g(),o.M.mbDown,o.M.mbDown,(function(n){return n.theme.colors.gray800}),o.M.mbDown)},77298:function(n,e,t){"use strict";t.r(e),t.d(e,{AdminNavigation:function(){return C}});var i=t(53513),o=t(63538),r=t(2445),a=t(73884),l=t(47236),c=t(35291),s=t(53735),d=t(32485),u=t.n(d),p=t(24572),f=t(45638),h=t(88542),g=t(88491),m=t(73419),v=t(53286),b=t(6442),w=t(36259),A=t(12577),y=t(1971),x=function(n){var e=(0,b.A)().formatMessage;return(0,r.Y)(y.zX,{onClick:n.onClick,children:e({id:"admin.home.filter.today",defaultMessage:"Today"})})},C=function(n){var e=n.header,t=n.className,d=n.notificationBadgeNumber,C=n.isDateFilter,M=void 0!==C&&C,k=n.hasHospitalSearch,Y=n.alert,I=n.adminNavigationRightAdditionalRightComponent,E=n.rightDropdownSearchComponent,D=n.hospitalId,N=n.branchId,P=n.handleChangeHospitalOption,F=n.handleChangeBranchOption,B=(0,b.A)().formatMessage,O=(0,a.useContext)(w.B).state.userInfo,z=(0,g.d)().isMobileOrTablet,S=(0,m.$)().locale,T=(0,h.o)(),L=T.hospitalId,j=T.branchId,H=T.replaceInvalidHospitalIdAndBranchId,R=T.setHospitalIdAndBranchId;(0,a.useEffect)((function(){H()}),[]);var _=(0,r.FD)(y.dB,{children:[(0,r.Y)(f.i,{id:"hospital-dropdown",className:"dropdown hospital",placeholder:B({id:"admin.users.allHospitals",defaultMessage:"All hospitals"}),value:null!==D&&void 0!==D?D:L,disabled:!!D,handleChange:function(n){var e;e=n,P?P(e):((0,v.handleChangeHospitalOption)(e,L),R((function(n){return(0,o.A)((0,i.A)({},n),{hospitalId:e.value})})))}}),(0,r.Y)(p.U,{id:"branch-dropdown",className:"dropdown branch",placeholder: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),R((function(n){return(0,o.A)((0,i.A)({},n),{branchId:e.value})})))},hospitalId:null!==D&&void 0!==D?D:L,roleUser:null===O||void 0===O?void 0:O.role,disabled:!!D||!!N||!L})]});return(0,r.FD)(y.rf,{className:u()(t,{"has-search":k}),children:[(0,r.FD)(y._H,{children:[(0,r.Y)(l.H,{tag:"h5",color:c.w.colors.secondaryDark,className:"font-capital",children:e||""}),k&&_,E,M&&(0,r.Y)(y.lF,{children:(0,r.Y)(s.D,{placeholder:"placeholder",displayDateFormat:"dd-MM-yyyy",pickedDate:new Date,customInput:x,onChange:function(){},locale:S})})]}),!z&&(0,r.Y)(A.A,{alert:Y,notificationBadgeNumber:d,additionalComponent:I})]})}},39900:function(n,e,t){"use strict";t.d(e,{R:function(){return kn}});var i=t(858),o=t(83776),r=t(2445),a=t(73884),l=t(28532),c=t(1050),s=t(74029),d=t(98678),u=t(59850),p=t(84091),f=t(6442),h=t(36259),g=t(20105),m=t(24537),v=t(15159),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 y(){var n=(0,m.A)(["\n background-color: ",";\n padding: 5px 8px;\n border-radius: 34px;\n display: flex;\n gap: 8px;\n align-items: center;\n margin-top: 4px;\n"]);return y=function(){return n},n}var x=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"})(y(),(function(n){return n.theme.colors.blue50})),k=t(95872),Y=t(49785),I=t(68289),E=t(40959),D=t(1135);function N(){var n=(0,f.A)(),e=n.formatMessage,t=n.locale,i=[{label:e({id:"newDoctor.male",defaultMessage:"Male"}),value:String(E.YT8.MALE)},{label:e({id:"newDoctor.female",defaultMessage:"Female"}),value:String(E.YT8.FEMALE)}],o=Object.keys(E.ynE).map((function(n){return{label:e({id:"booking.subPatient.relationship.".concat(E.ynE[Number(n)||D.pE.OTHER]),defaultMessage:(0,I.Zr)(E.ynE[Number(n)])}),value:n}})),r=[{label:e({id:"booking.subPatient.confirmation.onlyMe",defaultMessage:"Only me"}),value:String(D.WA.MASTER)},{label:e({id:"booking.subPatient.confirmation.both",defaultMessage:"Both"}),value:String(D.WA.BOTH)},{label:e({id:"booking.subPatient.confirmation.patient",defaultMessage:"Patient"}),value:String(D.WA.CONTACT)}],l={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:l}}),[t])}var P=(0,a.forwardRef)((function(n,e){var t=n.formType,i=N().translations,o=(0,Y.xW)(),l=o.reset,c=o.formState.isSubmitting;return(0,a.useImperativeHandle)(e,(function(){return{reset:function(){l()}}})),(0,r.Y)(k.B,{size:"sm",isBlock:!0,className:"addButton",disabled:c,children:"add"===t?i.addNewPatient:i.saveChanges})})),F=t(35291),B=t(74952),O=t(67628),z=t(53735),S=t(32485),T=t.n(S),L=t(66298),j=t(62862),H=t(21336);function R(){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 R=function(){return n},n}function _(){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 _=function(){return n},n}function V(){var n=(0,m.A)(["\n display: inline-block;\n margin-bottom: 4px;\n color: ",";\n font-weight: ",";\n"]);return V=function(){return n},n}function Q(){var n=(0,m.A)(["\n color: ",";\n font-weight: ",";\n"]);return Q=function(){return n},n}var U=b.Ay.div.withConfig({componentId:"sc-de8b215c-0"})(R()),G=b.Ay.button.withConfig({componentId:"sc-de8b215c-1"})(_(),(function(n){return n.theme.colors.gray200}),(function(n){return n.theme.colors.red700})),W=(b.Ay.label.withConfig({componentId:"sc-de8b215c-2"})(V(),(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 J(n){var e=n.name,t=n.label,i=n.required,o=void 0!==i&&i,l=(0,a.useRef)(null),s=(0,a.useState)(!1),d=s[0],u=s[1],p=(0,f.A)().formatMessage;return(0,j.j)(l,(function(){u(!1)})),(0,r.Y)(Y.xI,{rules:{validate:function(n){return!o||!!n}},name:e,render:function(n){var i=n.field,a=i.onChange,s=i.value,f=n.fieldState.error;return(0,r.FD)(U,{ref:l,children:[t&&(0,r.Y)(O.L,{size:"label2",htmlFor:e,className:"datePickerLabel",children:t}),(0,r.FD)(G,{type:"button",className:T()({error:!!f}),onClick:function(){return u(!d)},children:[(0,r.Y)(c.T,{size:"s4",color:s?F.w.colors.gray800:F.w.colors.gray400,children:s?(0,L.A)(s,E.AI5):E.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)(z.D,{onChange:function(n){a(n),u(!1)},className:"datePicker",disabledDays:{after:new Date},isStatic:!0,alignRight:!0,UnHideOnClickOutside:!0}),f&&(0,r.Y)(c.T,{size:"label2",color:F.w.colors.red700,children:"string"===typeof o?o:p({id:"common.error.requiredField",defaultMessage:"This field is required"})})]})}})}var q=t(53513),K=t(63538),Z=t(28681);function X(){var n=(0,m.A)(["\n margin-bottom: 18px;\n\n & > ul {\n z-index: 10;\n }\n"]);return X=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)(Z.D).withConfig({componentId:"sc-a07f320c-0"})(X()),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,l=n.required,c=void 0!==l&&l,s=n.disabled,d=void 0!==s&&s,u=(0,f.A)().formatMessage,p=(0,Y.xW)(),h=p.register,g=p.control,m=p.formState.errors,v=h(e,{validate:c?{required:function(n){return!!n}}:void 0});return(0,r.Y)(Y.xI,{name:e,control:g,render:function(n){var l=n.field;return(0,r.FD)(en,{className:i,"data-is-error":!!m[e],"data-has-value":!!l.value,children:[o&&(0,r.Y)(O.L,{size:"label2",htmlFor:e,className:"formDropdownLabel",children:o}),(0,r.Y)(nn,(0,K.A)((0,q.A)({},v),{onChange:function(n){return l.onChange(n.value)},value:a.find((function(n){return n.value===l.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(37376),an=t(63328);function ln(){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 ln=function(){return n},n}function cn(){var n=(0,m.A)(["\n display: inline-block;\n position: relative;\n"]);return cn=function(){return n},n}var sn=b.Ay.div.withConfig({componentId:"sc-5e9a2405-0"})(ln(),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"})(cn()),un=function(n){var e=n.onFileSelected,t=n.fileAcceptType,i=n.multiple,o=n.className,l=n.withElement,c=n.value,s=n.isRemoveButtonDisabled,d=void 0===s||s,u=(0,f.A)().formatMessage,p=(0,a.useRef)(null),h=function(){var n;null===(n=p.current)||void 0===n||n.click()};return(0,r.FD)(sn,{className:o,children:[(0,r.FD)(dn,{onClick:h,children:[l,(0,r.Y)("input",{ref:p,accept:t,multiple:i,type:"file",value:c,style:{display:"none"},onChange:function(n){e(n.target.files)}})]}),(0,r.Y)(k.B,{size:"sm",type:"button",color:"tertiary",onClick:h,children:u({id:"common.photo.changePhoto",defaultMessage:"Change Photo"})}),(0,r.Y)(k.B,{size:"sm",type:"button",color:"tertiary",className:"remove-btn",onClick:function(){e(null)},disabled:d,children:u({id:"common.photo.removePhoto",defaultMessage:"Remove Photo"})})]})},pn=t(16282);function fn(n){var e=n.name,t=n.size,i=n.required,o=void 0!==i&&i,l=(0,a.useState)(""),c=l[0],d=l[1],u=(0,pn.y)().errorMessages;return(0,r.Y)(Y.xI,{name:e,rules:{validate:function(n){return!(o&&!n&&!c)||("string"===typeof o?o:u.requiredField)}},render:function(n){var e=n.field,i=e.onChange,o=e.value,a=n.fieldState.error,l=(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:!!c,withElement:(0,r.Y)(rn.A,{width:t||void 0,height:t||void 0,avatarImg:(0,r.Y)("img",{src:c||("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":!!l}),type:"rounded"})}),l&&(0,r.Y)(an.x0,{children:l})]})}})}var hn=t(33067);function gn(){var n=(0,m.A)(["\n width: 100%;\n height: 100%;\n position: relative;\n\n .title {\n max-width: 100%;\n background-color: ",";\n color: ",";\n position: absolute;\n z-index: 1070;\n display: block;\n width: max-content;\n left: 50%;\n transform: translate(-50%, -50%);\n padding: 5px;\n font-size: 12px;\n border-radius: 4px;\n top: -35%;\n visibility: hidden;\n }\n\n .arrow {\n width: 10px;\n height: 10px;\n position: absolute;\n background-color: ",";\n transform: rotate(45deg) translate(-50%, 5px);\n left: 50%;\n }\n\n &:hover {\n .title {\n visibility: visible;\n }\n }\n"]);return gn=function(){return n},n}var mn,vn=b.Ay.div.withConfig({componentId:"sc-8fe8dad-0"})(gn(),(function(n){return n.theme.colors.gray500}),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray500})),bn=function(n){var e=n.title,t=n.children;return(0,r.FD)(vn,{children:[t,(0,r.FD)("div",{className:"title",children:[(0,r.Y)("div",{children:e}),(0,r.Y)("div",{className:"arrow"})]})]})};function wn(){return wn=Object.assign?Object.assign.bind():function(n){for(var e=1;e=19&&(0,r.FD)(r.FK,{children:[(0,r.Y)(hn.J,{className:"notifyTo",name:"notifyTo",options:o,label:e.sendConfirmation}),a("notifyTo")!==D.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:E.YT8.MALE.toString(),notifyTo:D.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,y=function(n){C({message:n||M({id:"error.anErrorOccurred",defaultMessage:"An error occurred!"}),type:"danger"})},C=(0,a.useContext)(h.B).pushNotifications,M=(0,f.A)().formatMessage,k=N().translations,Y=(0,a.useRef)(null),I=function(){var n=(0,i.A)((function(n){var e,t,i,r,a,l,c,f;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),e="add"===m?u.R.CREATE_PATIENT_INFO:u.R.UPDATE_PATIENT_INFO,t="edit"===m?{id:b.id}:{},i=(0,d.jz)(n),"edit"===m&&i.append("_method","PUT"),[4,(0,p.T7)((0,p.er)(e,t),"POST",{data:i})];case 1:return(r=o.sent())&&-1!==(null===r||void 0===r?void 0:r._status)?1===(null===r||void 0===r?void 0:r._status)&&(C({message:(null===r||void 0===r?void 0:r._messages)?null===r||void 0===r?void 0:r._messages[0]:M("add"===m?{id:"admin.booking.createSuccessfully",defaultMessage:"Create successfully"}:{id:"admin.booking.updateSuccessfully",defaultMessage:"Update successfully"}),type:"success"}),A((0,s.nz)(null===(l=r._data)||void 0===l?void 0:l.contact)),"add"===m&&(null===(c=Y.current)||void 0===c||c.reset()),w()):y((null===r||void 0===r||null===(a=r._messages)||void 0===a?void 0:a[0])||""),[3,3];case 2:return f=o.sent(),console.log("".concat(m," sub patient error"),f),y(),[3,3];case 3:return[2]}}))}));return function(e){return n.apply(this,arguments)}}();return(0,r.Y)(x,{children:(0,r.Y)(l.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:I,defaultValues:b,children:[(0,r.Y)(c.T,{size:"s3",type:"semiBold",className:"form-heading",children:"add"===m?k.addNewProfile:k.editProfile}),(0,r.Y)(xn,{}),(0,r.Y)(P,{formType:m,ref:Y})]})})})}},39372:function(n,e,t){"use strict";t.d(e,{KW:function(){return u},cx:function(){return p},tp:function(){return d}});var i=t(24537),o=t(15159),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 l(){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 l=function(){return n},n}function c(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n gap: 4px;\n"]);return c=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"})(l(),(function(n){return n.theme.colors.neutral50})),u=r.Ay.div.withConfig({componentId:"sc-7aacbf61-2"})(c()),p=r.Ay.div.withConfig({componentId:"sc-7aacbf61-3"})(s())},96608:function(n,e,t){"use strict";t.d(e,{v:function(){return E}});var i=t(2445),o=t(73884),r=t(47236),a=t(1050),l=t(35291),c=t(74029),s=t(84091),d=t(19475),u=t(40959),p=t(6442),f=t(24537),h=t(15159),g=t(27317),m=t(3184);function v(){var n=(0,f.A)(["\n "," {\n position: absolute;\n top: 0;\n right: 0;\n justify-content: flex-end;\n }\n "," {\n margin: 4px 0;\n }\n"]);return v=function(){return n},n}function b(){var n=(0,f.A)(["\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n margin-top: 8px;\n"]);return b=function(){return n},n}function w(){var n=(0,f.A)(["\n position: relative;\n display: flex;\n flex-direction: column;\n margin-top: 24px;\n padding-bottom: 24px;\n border-bottom: 1px solid\n ",";\n\n "," {\n padding: 16px 0;\n margin-top: 0;\n }\n"]);return w=function(){return n},n}function A(){var n=(0,f.A)(["\n display: flex;\n gap: 16px;\n justify-content: space-between;\n\n "," {\n flex-direction: column;\n gap: 30px;\n }\n\n .profileImage {\n overflow: hidden;\n width: 96px;\n height: 96px;\n\n ",' {\n width: 64px;\n height: 64px;\n }\n\n img {\n border-radius: 50%;\n object-fit: cover;\n }\n\n .imagePlaceholder {\n position: absolute;\n\n // please don\'t judge me, this is really "important" (in order to override inline styles)\n width: 96px !important;\n height: 96px !important;\n }\n }\n\n .doctorInfoHeader {\n flex: 1;\n }\n']);return A=function(){return n},n}function y(){var n=(0,f.A)(["\n display: flex;\n gap: 16px;\n\n "," {\n order: 1;\n }\n"]);return y=function(){return n},n}var x=(0,g.Ay)(m.k).withConfig({componentId:"sc-fc51186f-0"})(v(),h.M.mbUp,h.M.mbDown),C=g.Ay.div.withConfig({componentId:"sc-fc51186f-1"})(b()),M=g.Ay.div.withConfig({componentId:"sc-fc51186f-2"})(w(),(function(n){return n.theme.colors.neutral100}),h.M.mbDown),k=g.Ay.div.withConfig({componentId:"sc-fc51186f-3"})(A(),h.M.mbDown,h.M.mbDown),Y=g.Ay.div.withConfig({componentId:"sc-fc51186f-4"})(y(),h.M.mbDown),I=t(95456),E=function(n){var e,t=n.className,f=n.doctorInfo,h=n.isMobile,g=(0,p.A)().formatMessage,m=f.name,v=f.avatar,b=f.provideCare,w=f.specialties,A=f.validOutpatient,y=f.validTelemedicine,E=f.isGLP1,D=f.isWeightLoss,N=!!(null===(e=f.organization)||void 0===e?void 0:e.publish_reviews),P=(0,o.useMemo)((function(){return w.map((function(n){return n.name}))}),[w]),F=(0,s.Zo)(f),B=h?64:96,O=function(n){return{forChildren:n===u.jc_.CHILDREN||n===u.jc_.BOTH,forAdult:n===u.jc_.ADULTS||n===u.jc_.BOTH}}(b),z=O.forAdult,S=O.forChildren;return(0,i.Y)(M,{className:t,children:(0,i.Y)(k,{children:(0,i.FD)(Y,{children:[(0,i.Y)("div",{className:"profileImage",children:(0,i.Y)(I.Y,{layout:"responsive",src:(0,c.wW)(v,"".concat(u.JpE,"/images/avatar.jpg")),width:B,height:B,quality:100,objectFit:"cover"})}),(0,i.FD)("div",{className:"doctorInfoHeader",children:[(0,i.Y)(r.H,{tag:"h4",as:"h1",children:m}),(0,i.Y)(a.T,{size:h?"s3":"s4",color:l.w.colors.gray600,className:"mt-[6px] sp-mt-4",children:P.join(", ")}),N&&(0,i.Y)(x,{ratingPoint:f.rating,ratingScale:u.Efn,reviewCounting:f.totalReviews,reviewsUrl:"".concat(F,"/reviews")}),(0,i.FD)(C,{children:[A&&(0,i.Y)(d.vw,{type:"blue",children:g({id:"doctorInfoComponent.booking",defaultMessage:"Booking"})}),y&&(0,i.Y)(d.vw,{type:"warning",children:g({id:"bookingPage.telemedicine",defaultMessage:"Telemedicine"})}),E&&(0,i.Y)(d.vw,{type:"green",children:g({id:"doctorInfoComponent.glp1",defaultMessage:"GLP-1"})}),D&&(0,i.Y)(d.vw,{type:"purple",children:g({id:"doctorInfoComponent.medicalWeightLoss",defaultMessage:"Medical Weight Loss"})}),S&&(0,i.Y)(d.vw,{children:g({id:"forChildren",defaultMessage:"For Children"})}),z&&(0,i.Y)(d.vw,{children:g({id:"forAdults",defaultMessage:"For Adults"})})]})]})]})})})}},1247:function(n,e,t){"use strict";t.d(e,{_:function(){return b}});var i=t(53513),o=t(63538),r=t(2445),a=t(73884),l=t(1050),c=t(27516),s=t(73419),d=t(32876),u=t.n(d),p=t(6442),f=t(36259),h=t(16100),g=t.n(h),m=t(31015),v=t(40959),b=function(n){var e=n.trackingHospitalProps,t=n.organizationLogo,d=n.hospitalName,h=n.goHospitalPage,b=n.isDisplayDistance,w=n.distance,A=n.doctorWebsite,y=n.handleMakeAppointment,x=n.address,C=n.hospitalURL,M=n.isMobile,k=void 0!==M&&M,Y=n.isDoctorUnavailable,I=void 0!==Y&&Y,E=n.isUnvalidBooking,D=void 0!==E&&E,N=(0,s.$)(),P=N.locale,F=N.asPath,B=(0,a.useContext)(f.B).state.isLoggedIn,O=(0,p.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:h})),(0,r.FD)(m.sb,{children:[(0,r.Y)(l.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:h,children:x}))})}),b&&(0,r.FD)(m.aD,{children:[(0,r.Y)("svg",(0,o.A)((0,i.A)({width:"4",height:"4"},e),{onClick:h,children:(0,r.Y)("circle",{cx:"2",cy:"2",r:"2",fill:"#BFBFBF"})})),(0,r.Y)("span",{children:(0,r.Y)("a",(0,o.A)((0,i.A)({},e),{onClick:h,children:Number(w)>=0?Math.round(10*((parseFloat("".concat(w))||0)+1e-5))/10+" km":""}))})]})]})]}),I||D?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:O({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:y,dataEventCategory:"Care",dataEventAction:"Doctor Appointment Click",dataEventLabel:"https://".concat(c.y[P]).concat(v.JpE).concat(F),children:O({id:"doctorInfoComponent.makeanappointment",defaultMessage:"Make an Appointment"})})]}))}},31015:function(n,e,t){"use strict";t.d(e,{Bm:function(){return E},FD:function(){return C},Hb:function(){return I},NF:function(){return P},Q1:function(){return D},UQ:function(){return O},aD:function(){return B},sb:function(){return F},tM:function(){return N},vz:function(){return M},yW:function(){return k},zI:function(){return Y}});var i=t(24537),o=t(15159),r=t(26142),a=t(27317),l=t(71584),c=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 p(){var n=(0,i.A)(["\n "," {\n width: 100% !important;\n }\n"]);return p=function(){return n},n}function f(){var n=(0,i.A)(["\n width: 80px;\n height: 80px;\n border-radius: 50%;\n cursor: pointer;\n object-fit: cover;\n object-position: center;\n"]);return f=function(){return n},n}function h(){var n=(0,i.A)(["\n margin-top: 8px;\n"]);return h=function(){return n},n}function g(){var n=(0,i.A)(["\n width: 40px;\n height: 40px;\n flex-shrink: 0;\n border-radius: 50%;\n border: 1px solid ",";\n"]);return g=function(){return n},n}function m(){var n=(0,i.A)(["\n position: absolute;\n right: 16px;\n justify-content: flex-end;\n"]);return m=function(){return n},n}function v(){var n=(0,i.A)(["\n display: flex;\n gap: 16px;\n &[data-is-mobile='true'] {\n flex-direction: column;\n gap: 12px;\n }\n"]);return v=function(){return n},n}function b(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n\n svg {\n vertical-align: middle;\n }\n\n span {\n color: $gray-500;\n }\n"]);return b=function(){return n},n}function 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 y(){var n=(0,i.A)(["\n flex-shrink: 0;\n font-weight: 400;\n font-size: 12px;\n line-height: 18px;\n color: ",";\n svg {\n margin: 6px;\n }\n"]);return y=function(){return n},n}function x(){var n=(0,i.A)(["\n font-weight: 400;\n font-size: 12px;\n line-height: 18px;\n color: ",";\n"]);return x=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"})(p(),o.M.mbDown),k=a.Ay.img.withConfig({componentId:"sc-26339569-3"})(f()),Y=(0,a.Ay)(l.S).withConfig({componentId:"sc-26339569-4"})(h()),I=(0,a.Ay)(s.Y).withConfig({componentId:"sc-26339569-5"})(g(),(function(n){return n.theme.colors.neutral100})),E=(0,a.Ay)(c.k).withConfig({componentId:"sc-26339569-6"})(m()),D=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"})(y(),(function(n){return n.theme.colors.gray600})),O=a.Ay.p.withConfig({componentId:"sc-26339569-12"})(x(),(function(n){return n.theme.colors.gray600}))},89238:function(n,e,t){"use strict";t.d(e,{w:function(){return I}});var i=t(53513),o=t(63538),r=t(2445),a=t(73884),l=t(1050),c=t(95872),s=t(27516),d=t(74029),u=t(84091),p=t(32485),f=t.n(p),h=t(19475),g=t(17271),m=t.n(g),v=t(73419),b=t(40959),w=t(32876),A=t.n(w),y=t(6442),x=t(1247),C=t(16100),M=t.n(C),k=t(31015),Y=t(74834),I=function(n){var e,t,p=n.doctorInfo,g=n.hospitalInfo,w=n.orderedListIndex,C=n.gps,I=n.className,E=n.isFeaturedDoctor,D=n.isMobile,N=p.name,P=p.price,F=p.priceTo,B=p.priceType,O=p.avatar,z=p.provideCare,S=p.specialties,T=p.organization,L=p.validOutpatient,j=p.validTelemedicine,H=p.rating,R=p.totalReviews,_=p.bookingUrl,V=p.gender,Q=p.status,U=p.promotion,G=p.isGLP1,W=p.isWeightLoss,J=(0,v.$)(),q=J.locale,K=g.name,Z=g.address,X=g.latitude,$=g.longitude,nn=(0,y.A)().formatMessage,en=C&&C.lat&&C.lng&&X&&$?m()({lat:X,lon:$},{lat:C.lat,lon:C.lng},{exact:!1,unit:"km"}):null,tn=(null===(e=p.hospital)||void 0===e?void 0:e.websiteUrl)||"",on=!L&&!j,rn=Q===b.XQv.INACTIVE,an="zh-TW"===q?tn:(0,u.Zo)(p)+"/",ln=Boolean(p.doctorWebsite),cn="zh-TW"===q&&_?_:an,sn={"data-event-category":"Care","data-event-action":"Doctor Click ".concat(w+1),"data-event-label":"https://".concat(s.y[q]).concat(an)},dn="zh-TW"===q?tn:(0,u.eP)(g),un={"data-event-category":"Care","data-event-action":"Hospital Click ".concat(w+1),"data-event-label":"zh-TW"===q?tn:"https://".concat(s.y[q]).concat(dn,"/")},pn=!!(null===(t=p.organization)||void 0===t?void 0:t.publish_reviews),fn=function(){J.push(cn)},hn=(0,a.useMemo)((function(){return S.map((function(n){return(null===n||void 0===n?void 0:n.name)||n})).join(", ")}),[S]),gn=(0,a.useMemo)((function(){return(null===p||void 0===p?void 0:p.isSiloam)||0===Number(P)}),[null===p||void 0===p?void 0:p.isSiloam,P]),mn=null!==en,vn=(0,a.useMemo)((function(){return O===d.k_&&"zh-TW"===q?V===b.YT8.FEMALE?"".concat(b.JpE,"/images/femaleAvatar.svg"):"".concat(b.JpE,"/images/maleAvatar.svg"):O||d.k_}),[q]);return(0,r.FD)("div",{className:f()(M().mDoctorInfo,I),style:{padding:E?"16px 16px 16px 16px":"16px 16px 0 16px"},children:[pn&&(0,r.Y)(k.Bm,{ratingPoint:H,ratingScale:b.Efn,reviewCounting:R,reviewsUrl:"".concat(an,"reviews")}),(0,r.FD)("div",{className:f()(M().doctorInfoWrapper),children:[(0,r.Y)("div",{className:f()(M().doctorHeader),children:(0,r.FD)(k.Q1,{"data-is-mobile":D,className:"zh-TW"===q?"disable-click":"",children:[(0,r.Y)(A(),{href:an,children:(0,r.Y)("a",{href:an,children:(0,r.Y)(k.yW,(0,o.A)((0,i.A)({src:vn},sn),{loading:"lazy"}))})}),(0,r.FD)("div",{className:f()(M().doctorInfoHeader),children:[(0,r.Y)(A(),{href:an,children:(0,r.Y)("a",(0,o.A)((0,i.A)({},sn),{children:(0,r.Y)(l.T,{size:"md",type:"semiBold",children:N})}))}),(0,r.Y)(A(),{href:an,children:(0,r.Y)("a",(0,o.A)((0,i.A)({},sn),{children:(0,r.Y)(l.T,{className:f()(M().doctorDescription),size:"p4",children:hn})}))}),(0,r.FD)("div",{className:M().tags,children:[!rn&&!on&&(0,r.FD)(r.FK,{children:[L&&(0,r.Y)(A(),{href:cn,children:(0,r.Y)("a",(0,o.A)((0,i.A)({},sn),{target:ln?"_blank":"_target",children:(0,r.Y)(h.vw,{className:M().doctorTag,type:"blue",children:nn({id:"doctorInfoComponent.booking",defaultMessage:"Booking"})})}))}),j&&(0,r.Y)(A(),{href:an,children:(0,r.Y)("a",(0,o.A)((0,i.A)({},sn),{children:(0,r.Y)(h.vw,{className:M().doctorTag,type:"warning",children:nn({id:"bookingPage.telemedicine",defaultMessage:"Telemedicine"})})}))})]}),G&&(0,r.Y)(A(),{href:an,children:(0,r.Y)("a",(0,o.A)((0,i.A)({},sn),{children:(0,r.Y)(h.vw,{className:M().doctorTag,type:"green",children:nn({id:"doctorInfoComponent.glp1",defaultMessage:"GLP-1"})})}))}),W&&(0,r.Y)(A(),{href:an,children:(0,r.Y)("a",(0,o.A)((0,i.A)({},sn),{children:(0,r.Y)(h.vw,{className:M().doctorTag,type:"purple",children:nn({id:"doctorInfoComponent.medicalWeightLoss",defaultMessage:"Medical Weight Loss"})})}))}),(z===b.jc_.CHILDREN||z===b.jc_.BOTH)&&(0,r.Y)(A(),{href:an,children:(0,r.Y)("a",(0,o.A)((0,i.A)({},sn),{children:(0,r.Y)(h.vw,{className:M().doctorTag,children:nn({id:"forChildren",defaultMessage:"For Children"})})}))}),(z===b.jc_.ADULTS||z===b.jc_.BOTH)&&(0,r.Y)(A(),{href:an,children:(0,r.Y)("a",(0,o.A)((0,i.A)({},sn),{children:(0,r.Y)(h.vw,{className:M().doctorTag,children:nn({id:"forAdults",defaultMessage:"For Adults"})})}))})]}),!gn&&(0,r.Y)("div",{className:f()(M().pricing,M().isDesktop),children:(0,r.Y)(A(),{href:an,children:(0,r.Y)("a",(0,o.A)((0,i.A)({},sn),{children:(0,r.Y)(k.zI,{priceType:B,price:P,priceTo:F})}))})}),U&&(0,r.Y)(Y.A,{})]})]})}),E?(0,r.Y)(c.B,{size:"md",color:"secondary",isBlock:!0,className:f()(M().viewDetailsBtn),onClick:fn,children:nn({id:"admin.guide.viewDetails",defaultMessage:"View details"})}):(0,r.Y)(x._,{trackingHospitalProps:un,organizationLogo:(null===T||void 0===T?void 0:T.logo)||(null===g||void 0===g?void 0:g.logo),hospitalName:K,goHospitalPage:function(){J.push(dn)},isDisplayDistance:mn,distance:en,handleMakeAppointment:fn,address:Z,hospitalURL:dn,isMobile:D,isDoctorUnavailable:rn,isUnvalidBooking:on,doctorWebsite:p.doctorWebsite})]})]})}},43184:function(n,e,t){"use strict";t.d(e,{U1:function(){return x},Sv:function(){return y},vv:function(){return A}});var i=t(40568),o=t(24537),r=t(2445),a=t(73884),l=t.n(a),c=t(98223),s=t(62862),d=t(27317),u=t(41172);function p(){var n=(0,o.A)(["\n position: relative;\n border: 1px solid ",";\n background-position: right 16px center;\n border-radius: 6px;\n\n ","\n\n &[data-has-icons='true'] {\n border: none;\n\n img,\n svg {\n display: inline-block;\n max-width: 16px;\n margin-right: 6px;\n }\n\n span {\n display: inline-block;\n vertical-align: middle;\n }\n\n &:hover {\n box-shadow: none;\n }\n > div {\n position: relative;\n display: flex;\n width: 100%;\n box-sizing: border-box;\n align-items: center;\n }\n > div::after {\n position: absolute;\n top: 50%;\n right: 24px;\n width: 10px;\n height: 8px;\n background-image: url(\"data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A\");\n background-repeat: no-repeat;\n content: '';\n transform: translateY(-50%);\n }\n }\n\n &[data-has-icons='true'][data-has-edit-icon='true'] {\n & > div {\n &::after {\n background-image: url('/care/svg/edit-16-gray.svg');\n width: 16px;\n height: 16px;\n }\n input {\n cursor: pointer;\n }\n }\n }\n\n &:hover {\n box-shadow: 0 0 2px 2px ",";\n }\n &[data-has-error] {\n > div::after {\n position: absolute;\n right: 24px;\n width: 10px;\n height: 8px;\n background-image: none;\n background-repeat: no-repeat;\n content: '';\n }\n }\n"]);return p=function(){return n},n}function f(){var n=(0,o.A)(["\n cursor: pointer;\n &[data-dropdown-open] {\n padding: 11px 15px 11px 15px;\n border: 1px solid ",";\n border-radius: 6px;\n box-shadow: 0 0 2px 2px ",";\n }\n & {\n input {\n font-size: 14px;\n }\n }\n & {\n .input-search {\n input {\n padding-right: 40px;\n font-size: 14px;\n white-space: nowrap;\n }\n }\n }\n &[data-has-error] {\n input {\n border-color: ",";\n }\n }\n"]);return f=function(){return n},n}function h(){var n=(0,o.A)(["\n position: absolute;\n z-index: 110;\n top: 100%;\n right: 0;\n left: 0;\n display: block;\n max-height: 300px;\n margin-top: 4px;\n background: ",";\n border-radius: 6px;\n box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),\n -2px 2px 5px rgba(67, 86, 100, 0.123689);\n cursor: pointer;\n overflow-y: auto;\n\n &[data-has-icons='true'] {\n border: 1px solid ",";\n background: white;\n box-shadow: none;\n filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04));\n }\n & {\n .none {\n display: flex;\n min-height: 30px;\n align-items: center;\n justify-content: center;\n }\n }\n"]);return h=function(){return n},n}var g=d.Ay.div.withConfig({componentId:"sc-680deca3-0"})(p(),(function(n){return n.theme.colors.gray200}),(function(n){return n.disabled&&!n.hasEdit&&"\n pointer-events: none;\n "}),(function(n){return n.theme.colors.blue200})),m=d.Ay.div.withConfig({componentId:"sc-680deca3-1"})(f(),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.blue200}),(function(n){return n.theme.colors.red700}));d.Ay.ul.withConfig({componentId:"sc-680deca3-2"})(h(),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray200}));function v(){var n=(0,o.A)(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"]);return v=function(){return n},n}function b(){var n=(0,o.A)(["\n animation: "," 1.2s linear infinite;\n"]);return b=function(){return n},n}var w=(0,d.i7)(v()),A=d.Ay.svg.withConfig({componentId:"sc-b5260283-0"})(b(),w);function y(n){var e=n.className,t=n.width,i=void 0===t?"1em":t,o=n.color,a=void 0===o?"currentColor":o;return(0,r.Y)("svg",{width:i,height:i,className:e,viewBox:"0 0 24 24",children:(0,r.FD)("g",{children:[(0,r.Y)("path",{fill:a,d:"M 21.5 22 L 2.5 22 C 1.121094 22 0 20.878906 0 19.5 L 0 12.5 C 0 12.429688 0.015625 12.359375 0.0429688 12.296875 L 4.011719 3.476562 C 4.417969 2.578125 5.3125 2 6.292969 2 L 17.707031 2 C 18.6875 2 19.582031 2.578125 19.988281 3.476562 L 23.957031 12.296875 C 23.984375 12.359375 24 12.429688 24 12.5 L 24 19.5 C 24 20.878906 22.878906 22 21.5 22 Z M 1 12.605469 L 1 19.5 C 1 20.328125 1.671875 21 2.5 21 L 21.5 21 C 22.328125 21 23 20.328125 23 19.5 L 23 12.605469 L 19.074219 3.882812 C 18.832031 3.347656 18.296875 3 17.707031 3 L 6.292969 3 C 5.703125 3 5.167969 3.347656 4.925781 3.886719 Z M 1 12.605469 "}),(0,r.Y)("path",{fill:a,d:"M 16.808594 17 L 7.191406 17 C 6.570312 17 6.007812 16.609375 5.789062 16.027344 L 4.773438 13.324219 C 4.703125 13.128906 4.515625 13 4.308594 13 L 0.75 13 C 0.472656 13 0.25 12.777344 0.25 12.5 C 0.25 12.222656 0.472656 12 0.75 12 L 4.308594 12 C 4.929688 12 5.492188 12.390625 5.710938 12.972656 L 6.726562 15.675781 C 6.796875 15.871094 6.984375 16 7.191406 16 L 16.804688 16 C 17.015625 16 17.203125 15.871094 17.273438 15.675781 L 18.285156 12.972656 C 18.507812 12.390625 19.070312 12 19.691406 12 L 23.5 12 C 23.777344 12 24 12.222656 24 12.5 C 24 12.777344 23.777344 13 23.5 13 L 19.691406 13 C 19.484375 13 19.296875 13.128906 19.226562 13.324219 L 18.210938 16.027344 C 17.992188 16.609375 17.429688 17 16.808594 17 Z M 16.808594 17 "})]})})}var x=l().forwardRef((function(n,e){var t,o=n.className,d=n.style,p=n.id,f=n.placeholder,h=n.placeholderIcon,v=n.onChange,b=n.value,w=n.options,A=n.isLoading,y=n.onBlur,x=n.onFocus,C=n.errorMessage,M=n.hasFilterOption,k=void 0===M||M,Y=n.hasFilterValueFromOptions,I=void 0===Y||Y,E=n.disabled,D=n.onKeyPress,N=n.customPlaceHolder,P=n.useInnerHTML,F=void 0!==P&&P,B=n.onChangeField,O=n.hasEditIcon,z=void 0!==O&&O,S=n.onEdit,T=(0,a.useState)(""),L=T[0],j=T[1],H=(0,i.A)(l().useState(!1),2),R=H[0],_=H[1],V=(0,a.useState)(null!==(t=null===b||void 0===b?void 0:b.value)&&void 0!==t?t:""),Q=V[0],U=V[1],G=(0,a.useRef)(null),W=(0,a.useRef)(null);(0,s.j)(W,(function(){_(!1)}));var J=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&&I?w.filter((function(n){return n.value!==b.value})):w,q=b?w.find((function(n){return String(n.value)===String(b.value)})):null;return(0,r.Y)(g,{className:o,"data-dropdown-open":R,id:p,"data-has-icons":!0,"data-has-edit-icon":z,ref:G,style:d,tabIndex:0,"data-has-error":C&&C.length>0||void 0,disabled:E,hasEdit:z,onClick:function(){S&&S()},children:(0,r.FD)(m,{ref:W,children:[(0,r.Y)(c.a,{ref:e,name:"dropdown-input-".concat(p),autoFocus:!1,displayIcon:h,size:"sm",onChange:function(n){void 0===B?(v(null,n),j(n)):(B(n),j(n))},placeholder:f,value:q?q.label:b&&b.value?b.label:L,autoComplete:"off",className:"input-search",onBlur:function(n){var e;(e=n).relatedTarget&&e.relatedTarget.id===p||(j(""),y&&y())},onFocus:x,isDisabled:E,errorMessage:R?"":C,onKeyDown:D,onClick:function(){return _(!0)}}),!E&&R&&(0,r.Y)(u.qw,{options:J,isLoading:A,hasIcons:!0,onChange:function(n,e){_(!1),console.log("on handleSelectOption: ",n),v(n,e)},setSearch:j,scrollToOption:Q,setScrollToOption:U,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(1050),l=t(27317);function c(){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 c=function(){return n},n}function s(){var n=(0,i.A)(["\n display: flex;\n padding: 12px 18px 12px 16px;\n &:hover,\n :active {\n background: ",";\n }\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n max-width: 16px;\n margin-right: 8px;\n"]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n color: ",";\n font-weight: ",";\n"]);return u=function(){return n},n}var p=l.Ay.ul.withConfig({componentId:"sc-93bfd79c-0"})(c(),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray200})),f=l.Ay.li.withConfig({componentId:"sc-93bfd79c-1"})(s(),(function(n){return n.theme.colors.gray100})),h=l.Ay.div.withConfig({componentId:"sc-93bfd79c-2"})(d());l.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,l.i7)(g()),b=l.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,l=n.onChange,c=n.setSearch,s=n.scrollToOption,d=n.setScrollToOption,u=n.customPlaceHolder,g=n.useInnerHTML,m=void 0!==g&&g,v=(0,r.useRef)(null);return(0,r.useEffect)((function(){if(v.current&&s){var n,t,i=e.findIndex((function(n){return n.value===s}));if(-1!==i)v.current.scroll({top:(null===(n=v.current)||void 0===n?void 0:n.children[i].getBoundingClientRect().top)-(null===(t=v.current)||void 0===t?void 0:t.getBoundingClientRect().top)})}}),[s]),(0,o.FD)(p,{className:"dropdown-option","data-has-icons":i,ref:v,children:[t&&(0,o.Y)("div",{className:"none",children:(0,o.FD)(b,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,o.Y)("mask",{id:"a",fill:"#fff",children:(0,o.Y)("path",{d:"M12 0A12 12 0 11.19 9.88l3.9.7A8.03 8.03 0 1012 3.98V0z"})}),(0,o.Y)("path",{d:"M12 0A12 12 0 11.19 9.88l3.9.7A8.03 8.03 0 1012 3.98V0z",stroke:"#2D87F3",strokeWidth:"8",mask:"url(#a)"})]})}),!t&&0===e.length&&(0,o.Y)("div",{className:"none",children:u||(0,o.Y)(a.T,{size:"sm",children:(0,o.Y)(w,{})})}),!t&&e.length>0&&e.map((function(n,e){return(0,o.Y)(f,{onClick:function(){l(n,n.value),d(n.value),c(""),console.log("on select item: ",n)},children:m?(0,o.Y)("div",{dangerouslySetInnerHTML:{__html:n.label}}):(0,o.FD)(o.FK,{children:[n.icon&&(0,o.Y)(h,{children:n.icon}),n.label]})},"".concat(e,"-").concat(n.value))}))]})}},45105:function(n,e,t){"use strict";t.d(e,{r:function(){return A}});var i=t(53513),o=t(63538),r=t(2445),a=t(73884),l=t(32485),c=t.n(l),s=t(24537),d=t(27317);function u(){var n=(0,s.A)(["\n position: relative;\n display: flex;\n justify-content: center;\n cursor: pointer;\n &.disabled {\n cursor: not-allowed;\n opacity: 0.5;\n pointer-events: none;\n }\n"]);return u=function(){return n},n}function p(){var n=(0,s.A)(["\n display: flex;\n width: fit-content;\n justify-content: center;\n align-items: center;\n background-color: rgba(0, 0, 0, 0);\n transition: background-color 200ms;\n border-radius: 4px;\n\n &:hover {\n background-color: ",";\n }\n"]);return p=function(){return n},n}function f(){var n=(0,s.A)(["\n position: absolute;\n z-index: ",";\n top: 100%;\n right: 0;\n overflow: hidden;\n min-width: 185px;\n width: max-content;\n border: 1px solid ",";\n margin: 8px 0;\n background: white;\n border-radius: 6px;\n filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04));\n\n &[data-position='right'] {\n left: 0;\n }\n &[data-position='left'] {\n right: 0;\n }\n &[data-position='center'] {\n left: 50%;\n transform: translateX(-50%);\n }\n\n > li {\n display: flex;\n align-items: center;\n padding: 12px 18px;\n cursor: pointer;\n width: 100%;\n &.disabled {\n cursor: not-allowed;\n opacity: 0.5;\n pointer-events: none;\n }\n\n svg {\n display: inline-block;\n margin-right: 8px;\n }\n\n &:hover {\n background: #f2f2f2;\n }\n }\n"]);return f=function(){return n},n}var h,g=d.Ay.div.withConfig({componentId:"sc-56c5d382-0"})(u()),m=d.Ay.div.withConfig({componentId:"sc-56c5d382-1"})(p(),(function(n){return n.theme.colors.neutral50})),v=d.Ay.ul.withConfig({componentId:"sc-56c5d382-2"})(f(),(function(n){return n.theme.zIndexes.zIndex100}),(function(n){return n.theme.colors.neutral200}));function b(){return b=Object.assign?Object.assign.bind():function(n){for(var e=1;e div {\n position: relative;\n display: flex;\n width: 100%;\n box-sizing: border-box;\n align-items: center;\n }\n > div::after {\n position: absolute;\n top: 50%;\n right: 16px;\n width: 10px;\n height: 8px;\n background-image: url(\"data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A\");\n background-repeat: no-repeat;\n content: '';\n transform: translateY(-50%);\n }\n }\n\n // Prevent double borders\n & > div {\n border: none;\n }\n"]);return p=function(){return n},n}function f(){var n=(0,d.A)(["\n display: flex;\n border: 1px solid ",";\n border-radius: 6px;\n cursor: pointer;\n\n &[data-dropdown-open] {\n padding: 11px 15px 11px 15px;\n border: 1px solid ",";\n border-radius: 6px;\n box-shadow: 0 0 2px 2px ",";\n }\n & {\n input {\n padding: 4px;\n font-size: 14px;\n }\n }\n &[data-has-error='true'] {\n border-color: red;\n }\n"]);return f=function(){return n},n}function h(){var n=(0,d.A)(["\n display: flex;\n flex-wrap: wrap;\n padding: 10px;\n gap: 8px;\n margin-right: 26px;\n"]);return h=function(){return n},n}function g(){var n=(0,d.A)(["\n display: flex;\n height: 28px;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n padding: 0 8px;\n background: ",";\n border-radius: 24px;\n\n .close-icon {\n height: 18px;\n width: 16px;\n }\n"]);return g=function(){return n},n}function m(){var n=(0,d.A)(["\n width: 100%;\n height: 100%;\n flex: 1 1 0%;\n input {\n width: 100%;\n }\n"]);return m=function(){return n},n}function v(){var n=(0,d.A)(["\n position: absolute;\n z-index: 110;\n top: 100%;\n right: 0;\n left: 0;\n display: block;\n max-height: 300px;\n margin-top: 4px;\n background: ",";\n border-radius: 6px;\n box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),\n -2px 2px 5px rgba(67, 86, 100, 0.123689);\n cursor: pointer;\n overflow-y: scroll;\n\n &[data-has-icons='true'] {\n border: 1px solid ",";\n background: white;\n box-shadow: none;\n filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04));\n }\n & {\n .none {\n display: flex;\n min-height: 30px;\n align-items: center;\n justify-content: center;\n }\n }\n\n &.dropdown-option__disabled {\n & > li {\n opacity: 0.5;\n cursor: not-allowed;\n background-color: ",";\n }\n }\n"]);return v=function(){return n},n}function b(){var n=(0,d.A)(["\n display: flex;\n padding: 12px 18px 12px 16px;\n &:hover,\n :active {\n background: ",";\n }\n"]);return b=function(){return n},n}function 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 y=u.Ay.div.withConfig({componentId:"sc-8d9589f1-0"})(p(),(function(n){return n.theme.colors.gray200}),(function(n){return n.theme.colors.blue200}),(function(n){return n.theme.colors.primaryBase})),x=u.Ay.div.withConfig({componentId:"sc-8d9589f1-1"})(f(),(function(n){return n.theme.colors.gray200}),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.blue200})),C=u.Ay.div.withConfig({componentId:"sc-8d9589f1-2"})(h()),M=u.Ay.div.withConfig({componentId:"sc-8d9589f1-3"})(g(),(function(n){return n.theme.colors.blue50})),k=u.Ay.div.withConfig({componentId:"sc-8d9589f1-4"})(m()),Y=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})),I=u.Ay.li.withConfig({componentId:"sc-8d9589f1-6"})(b(),(function(n){return n.theme.colors.gray100})),E=u.Ay.div.withConfig({componentId:"sc-8d9589f1-7"})(w()),D=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,p=n.value,f=n.options,h=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],O=F[1],z=(0,o.useState)(!1),S=z[0],T=z[1],L=(0,o.useState)(f),j=L[0],H=L[1],R=(0,o.useState)(!1),_=R[0],V=R[1],Q=function(){return V(!_)},U=(0,o.useRef)(null),G=(0,o.useState)([]),W=G[0],J=G[1];(0,o.useEffect)((function(){H(f)}),[f]),(0,o.useEffect)((function(){if(h){h&&J(h);var n=null===h||void 0===h?void 0:h.map((function(n){return String(n.value)})),e=f.filter((function(e){return!(null===n||void 0===n?void 0:n.includes(String(e.value)))}));H(e)}}),[h,f]),(0,c.j)(U,(function(){V(!1)}));var q=function(n){var e=W.filter((function(e){return e.value!==n.value}));J(e),u(e),H(j.concat(n))};return(0,o.useEffect)((function(){b(B)}),[B]),(0,i.FD)(y,{className:l()(e,{focused:S}),"data-dropdown-open":_||void 0,id:a,"data-has-icons":!0,ref:U,onBlur:function(n){return e=n,T(!1),void(e.relatedTarget&&e.relatedTarget.id===a||O(""));var e},onFocus:function(){return T(!0)},style:t,tabIndex:0,children:[(0,i.Y)(x,{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 q(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,V(!0),void O(e);var e},placeholder:d,value:p&&p.value?p.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])),O(""),P&&P(t)}}}else"Backspace"===n.key&&""===n.currentTarget.value&&(n.preventDefault(),q(W[W.length-1]))},style:{width:W.length?void 0:250}})})]})}),g&&g.length>0&&(0,i.Y)(D,{className:"errorLabel",children:g}),_&&(0,i.FD)(Y,{onClick:Q,className:l()("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)(I,{"data-selected":p&&p.value===n.value||void 0,onClick:function(){m||(O(""),function(n){var e=j.filter((function(e){return e.value!==n.value})),t=W.concat(n);J(t),u(t),H(e)}(n))},children:[n.icon&&(0,i.Y)(E,{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),l=t(49785);function c(){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 c=function(){return n},n}var s=t(27317).Ay.form.withConfig({componentId:"sc-aaeb766f-0"})(c(),(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,c=n.mode,d=void 0===c?"onSubmit":c,u=n.onSubmit,p=n.beforeSubmitValidation,f=n.style,h=(0,l.mN)({defaultValues:r,mode:d});return(0,a.Y)(l.Op,(0,o.A)((0,i.A)({},h),{children:(0,a.Y)(s,{name:e,onSubmit:h.handleSubmit((function(n){if(p&&!p(n,h.setError))return!1;u(n)})),style:f,children:t})}))}},16282:function(n,e,t){"use strict";t.d(e,{y:function(){return a}});var i=t(73884),o=t(10297),r=t(6442);function a(){var n=(0,r.A)().formatMessage,e=(0,o.useRouter)().locale;return(0,i.useMemo)((function(){return{titles:{faq:n({id:"footer.faqs",defaultMessage:"FAQ"})},labels:{from:n({id:"form.label.from",defaultMessage:"From"}),to:n({id:"form.label.to",defaultMessage:"To"}),present:n({id:"common.date.present",defaultMessage:"Present"}),URL:n({id:"admin.form.url",defaultMessage:"URL"}),enterURL:n({id:"admin.form.enterUrl",defaultMessage:"Enter URL"}),insert:n({id:"common.insert",defaultMessage:"Insert"}),addQuestion:n({id:"form.faq.addQuestion",defaultMessage:"Add Question"}),editQuestion:n({id:"form.faq.editQuestion",defaultMessage:"Edit Question"}),question:n({id:"common.question",defaultMessage:"Question"}),answer:n({id:"common.answer",defaultMessage:"Answer"})},buttons:{save:n({id:"form.button.save",defaultMessage:"Save"}),cancel:n({id:"form.button.cancel",defaultMessage:"Cancel"}),remove:n({id:"form.button.remove",defaultMessage:"Remove"}),askQuestion:n({id:"hospital.branch.askQuestion",defaultMessage:"Ask Question"}),preview:n({id:"form.button.preview",defaultMessage:"Preview"}),edit:n({id:"form.button.edit",defaultMessage:"Edit"})},errorMessages:{invalidFormat:n({id:"form.error.format",defaultMessage:"Invalid format"}),requiredField:n({id:"common.error.requiredField",defaultMessage:"This field is required"}),minItems:function(e){return n({id:"common.error.minItems",defaultMessage:"Please select a minimum of {number} items"},{number:e})},maxItems:function(e){return n({id:"common.error.maxItems",defaultMessage:"Please select a maximum of {number} items"},{number:e})}}}}),[e])}},48403:function(n,e,t){"use strict";t.d(e,{nD:function(){return mo.n},Fg:function(){return ci},Cv:function(){return oo},cW:function(){return be.AdminNavigation},oR:function(){return St},K3:function(){return go},rk:function(){return Ei},By:function(){return pe},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 Ji},jD:function(){return ki},KL:function(){return Po},dK:function(){return g},LR:function(){return M.L},Al:function(){return Cn},Vw:function(){return Uo},al:function(){return on.a},Vs:function(){return en}});var i=t(2445),o=t(73884),r=t(32485),a=t.n(r),l=t(13169),c=t.n(l),s=function(n){var e=n.name,t=n.value,r=n.errorMessage,l=n.actionIcon,s=n.displayIcon,d=n.onActionClick,u=n.label,p=n.placeholder,f=n.className,h=n.onChange,g=n.onKeyPress,m=n.isDisabled,v=n.onFocus,b=n.onBlur,w=n.shouldInputFocus,A=n.type,y=n.children,x=n.isAutoComplete,C=n.isReadOnly,M=n.isLabelActivateInput,k=n.dataEventCategory,Y=n.dataEventAction,I=n.dataEventLabel,E=(0,o.useRef)(null);return(0,o.useEffect)((function(){w?(E.current&&E.current.focus(),v&&v()):E.current&&E.current.blur()}),[w]),(0,i.FD)("div",{className:a()(c().mInput,f),"data-has-action-icon":!!l||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:c().inputLabel,children:u}),(0,i.Y)("input",{id:e,readOnly:C||!1,autoComplete:x||"off",placeholder:p,onChange:h,onKeyPress:function(n){return g&&g(n)},type:A||"text",value:t,disabled:m,onFocus:v,autoFocus:w||void 0,ref:E,"data-event-category":k,"data-event-action":Y,"data-event-label":I}),s&&(0,i.Y)(s,{className:c().displayIcon,onClick:d}),l&&(0,i.Y)("div",{onMouseDown:function(n){n.preventDefault(),null===d||void 0===d||d()},tabIndex:0,children:(0,i.Y)(l,{className:c().actionIcon})}),r&&r.length>0&&(0,i.Y)("label",{className:c().errorLabel,children:r}),y]})},d=t(81539),u=t(38629),p=t(69576),f=t(26869),h=t.n(f),g=function(n){var e=n.className,t=n.pagesAmount,r=n.currentPage,l=n.onChange,c=(0,d.A)(Array(t)).map((function(n,e){return e+1})),s=(0,o.useState)(r),f=s[0],g=s[1],m=t-1,v=function(n){n<=t&&n>0&&(g(n),l(n))};return(0,o.useEffect)((function(){g(r)}),[r]),(0,i.FD)("div",{className:a()(h().pagination,e),children:[(0,i.Y)("div",{className:a()(h().arrow,h().paginationBlock),onClick:function(){return v(f-1)},"data-last-page":1===f||void 0,children:(0,i.Y)(u.A,{})}),c.slice(f<=3?0:f-3,f<=3?5:f+2).map((function(n){return(0,i.Y)("li",{className:a()(h().paginationBlock),"data-page-active":n===f||void 0,onClick:function(){return v(n)},children:n},"pagination+".concat(n))})),(0,i.Y)("div",{className:a()(h().arrow,h().paginationBlock),onClick:function(){return v(f+1)},"data-last-page":f===m+1||void 0,children:(0,i.Y)(p.A,{})})]})},m=t(24537),v=t(27317);function b(){var n=(0,m.A)(["\n --dropdown-padding-top: 12px;\n --dropdown-padding-right: 44px;\n --dropdown-padding-bottom: 12px;\n --dropdown-padding-left: 18px;\n --dropdown-padding: var(--dropdown-padding-top) var(--dropdown-padding-right)\n var(--dropdown-padding-bottom) var(--dropdown-padding-left);\n\n position: relative;\n box-sizing: border-box;\n border: 1px solid ",";\n background: $white url('../../../public/bgSvg/arrow-down.svg') no-repeat;\n background-position: right 16px center;\n border-radius: 6px;\n\n &[data-dropdown-open] .dropdownName {\n padding: var(--dropdown-padding);\n // border: 1px solid $primary-base;\n border-radius: 6px;\n box-shadow: 0 0 2px 2px ",";\n }\n\n &[data-dropdown-open] {\n z-index: $zIndex-overlay;\n }\n\n &:hover {\n box-shadow: 0 0 2px 2px ",";\n }\n"]);return b=function(){return n},n}function 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 y(){var n=(0,m.A)(["\n padding: var(--dropdown-padding-top) var(--dropdown-padding-right)\n var(--dropdown-padding-bottom) var(--dropdown-padding-left);\n\n &:hover,\n :active {\n background: ",";\n }\n"]);return y=function(){return n},n}function x(){var n=(0,m.A)(["\n display: flex;\n justify-content: center;\n align-items: center;\n"]);return x=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"})(y(),(function(n){return n.theme.colors.gray100})),v.Ay.div.withConfig({componentId:"sc-b466dd23-4"})(x());var C,M=t(78754),k=t(95456);function Y(){return Y=Object.assign?Object.assign.bind():function(n){for(var e=1;e input[type='radio'] {\n margin: 0;\n }\n }\n"]);return Sn=function(){return n},n}function Tn(){var n=(0,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 Rn(){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 Rn=function(){return n},n}v.Ay.div.withConfig({componentId:"sc-33ec5b80-0"})(zn(),(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"})(Rn(),H.M.mbDown),t(41450),t(21336),t(68289),t(1135),t(86204),t(1032),t(39372),t(89902),t(58665),t(90206);function _n(){var n=(0,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 _n=function(){return n},n}var Vn,Qn,Un,Gn,Wn,Jn,qn,Kn,Zn,Xn,$n,ne,ee,te,ie,oe,re,ae,le,ce,se,de,ue=v.Ay.div.withConfig({componentId:"sc-9afb6850-0"})(_n(),H.M.tdUp,H.M.tdUp),pe=function(n){var e,t=n.className,o=n.onClick,r=n.title,a=n.isLoading,l=n.isDisabled,c=void 0!==l&&l,s=n.isTelemedicine,d=n.isStickyBtn,u=void 0!==d&&d,p=n.isBlock,f=void 0!==p&&p,h=(0,P.$)(),g=h.locale,m=h.asPath;return e=void 0!==s?s?"Telemedicine - Booking Confirm Click":"Outpatient - Booking Confirm Click":"Booking Confirm Click",(0,i.Y)(ue,{className:t,"data-is-sticky":u,children:(0,i.Y)(G.B,{isLoading:a,color:"primary",size:"md",onClick:o,dataEventCategory:"Care",dataEventAction:e,dataEventLabel:"https://".concat(N.y[g]).concat(V.JpE).concat(m),isDisabled:c,isBlock:f,children:r})})},fe=t(72936),he=t.n(fe);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 Oe(){var n=(0,m.A)(["\n margin-top: 18px;\n margin-bottom: 12px;\n"]);return Oe=function(){return n},n}function ze(){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 ze=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()),Re=(v.Ay.div.withConfig({componentId:"sc-46e68f6c-3"})(Be()),v.Ay.div.withConfig({componentId:"sc-46e68f6c-4"})(Oe())),_e=v.Ay.div.withConfig({componentId:"sc-46e68f6c-5"})(ze()),Ve=v.Ay.div.withConfig({componentId:"sc-46e68f6c-6"})(Se()),Qe=t(44523),Ue=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 Rt(){var n=(0,m.A)(["\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: space-between;\n"]);return Rt=function(){return n},n}function _t(){var n=(0,m.A)(["\n margin-top: 12px;\n"]);return _t=function(){return n},n}function Vt(){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 Vt=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 Ut(){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 Ut=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"})(Rt()),v.Ay.div.withConfig({componentId:"sc-73b76268-3"})(_t()),v.Ay.div.withConfig({componentId:"sc-73b76268-4"})(Vt(),(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"})(Ut()),v.Ay.div.withConfig({componentId:"sc-73b76268-7"})(Gt()),v.Ay.div.withConfig({componentId:"sc-73b76268-8"})(Wt());function Jt(){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 Jt=function(){return n},n}function qt(){var n=(0,m.A)(["\n //padding-left: 14px;\n"]);return qt=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 Zt(){var n=(0,m.A)(["\n display: flex;\n width: 100%;\n"]);return Zt=function(){return n},n}function Xt(){var n=(0,m.A)(["\n position: absolute;\n right: 0;\n display: flex;\n align-items: center;\n cursor: pointer;\n"]);return Xt=function(){return n},n}v.Ay.div.withConfig({componentId:"sc-b35b16ee-0"})(Jt()),v.Ay.div.withConfig({componentId:"sc-b35b16ee-1"})(qt()),v.Ay.div.withConfig({componentId:"sc-b35b16ee-2"})(Kt()),v.Ay.div.withConfig({componentId:"sc-b35b16ee-3"})(Zt()),v.Ay.div.withConfig({componentId:"sc-b35b16ee-4"})(Xt()),t(58462);var $t,ni=t(19599),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 pi(){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 pi=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"})(pi()),t(84461);var fi=t(858),hi=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),yi=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),xi=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,l=n.errorValidate,c=(0,vn.A)().formatMessage,s=(0,o.useState)(["","","","",""]),u=s[0],p=s[1],f=(0,o.useState)(["","","","",""]),h=f[0],g=f[1];(0,o.useEffect)((function(){if(null===a||void 0===a?void 0:a.length){var n=(0,d.A)(u);a.forEach((function(e,t){return n[t]=e})),p(n)}}),[a]);var m=function(){var n=(0,fi.A)((function(n){var e,t,i,o,a,l;return(0,hi.__generator)(this,(function(c){switch(c.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,c.label=1;case 1:return oV.qdA?[3,3]:[4,v(t.files[o])]:[3,4];case 2:if(a=c.sent(),-1===(l=i.findIndex((function(n){return""===n}))))return[2];i[l]=a,c.label=3;case 3:return o++,[3,1];case 4:return p(i),r&&r(i),n.target.value="",[2]}}))}));return function(e){return n.apply(this,arguments)}}(),v=function(n){return new Promise((function(e){var t,i=new FileReader;i.readAsDataURL(n),i.onload=function(){t=i.result,e(t)}}))},b=function(){var n=(0,fi.A)((function(n,e){var t,i,o,a,l,c;return(0,hi.__generator)(this,(function(s){switch(s.label){case 0:return i=n.target,(null===(t=i.files)||void 0===t?void 0:t.length)?i.files[0].size>V.qdA?((o=(0,d.A)(h))[e]="File size too large",g(o),[2]):((a=(0,d.A)(h))[e]="",g(a),l=(0,d.A)(u),[4,v(i.files[0])]):[2];case 1:return c=s.sent(),l[e]=c,p(l),r&&r(l),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":l,children:n?(0,i.FD)(i.FK,{children:[(0,i.Y)("div",{onClick:function(){return function(n){var e=(0,d.A)(u);e[n]="",p(e),r&&r(e)}(e)},className:"icon",children:(0,i.Y)(Mi.A,{})}),(0,i.Y)("img",{src:n,className:"full"})]}):(0,i.Y)(i.FK,{children:(0,i.FD)("div",{className:"image-uploader",children:[(0,i.Y)("input",{id:"file-input-".concat(e),type:"file",onChange:function(n){b(n,e)}}),(0,i.Y)("label",{htmlFor:"file-input-".concat(e),className:"label",children:(0,i.Y)("img",{src:"".concat(V.JpE,"/svg/imageholder.svg"),className:"small"})})]})})},"img-".concat(e))}))}),(0,i.Y)(xi,{children:h.map((function(n,e){return(0,i.Y)("div",{className:"error",style:{width:"100%"},children:n?(0,i.Y)(i.FK,{children:(0,i.Y)("div",{children:n})}):(0,i.Y)(i.FK,{children:(0,i.Y)("div",{children:""})})},"error-".concat(e))}))}),(0,i.FD)(yi,{children:[(0,i.FD)("div",{className:"choose-file",children:[(0,i.Y)("label",{htmlFor:"file_input_id",children:c({id:"newBranch.chooseFiles",defaultMessage:"Choose files"})}),(0,i.Y)("input",{type:"file",multiple:!0,id:"file_input_id",onChange:function(n){m(n)}})]}),(0,i.FD)("div",{className:"clear-all",onClick:function(){p(["","","","",""]),g(["","","","",""]),r&&r(["","","","",""])},children:[(0,i.Y)(Ci.A,{}),(0,i.Y)(D.T,{size:"p4",color:U.w.colors.gray800,children:c({id:"newBranch.clearAll",defaultMessage:"Clear all"})})]})]}),(0,i.Y)(D.T,{size:"p4",color:U.w.colors.gray500,children:c({id:"newBranch.uploadBanner.guide",defaultMessage:"Desktop size 1200x380px, mobile size 633x380px (Size could be bigger but need to ensure the ratio). Image size < 200Kb.The image should not contain the branch\u2019s phone#, email, website. The image need to have the logo of Hellobacsi & the partner."})})]})};function Yi(){var n=(0,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 Yi=function(){return n},n}var Ii=v.Ay.div.withConfig({componentId:"sc-f178071e-0"})(Yi(),(function(n){return n.theme.colors.blue50}),(function(n){return n.theme.colors.blue600}),(function(n){return n.theme.sizes.fwBold})),Ei=function(n){var e=n.amount;return(0,i.Y)(Ii,{children:(0,i.Y)("div",{children:e&&(0,i.Y)("span",{children:e})})})};function Di(){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 Di=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,Oi,zi,Si,Ti;v.Ay.article.withConfig({componentId:"sc-cfeed39b-0"})(Di(),(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:h})})]})}},82118:function(n,e,t){"use strict";t.d(e,{A:function(){return Dn}});var i=t(858),o=t(81539),r=t(83776),a=t(2445),l=t(73884),c=t(1050),s=t(64564),d=t(19599),u=t(95872),p=t(59850),f=t(84091),h=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 y(){var n=(0,b.A)(["\n display: flex;\n gap: 10px;\n\n &.align-center {\n align-items: center;\n }\n\n .right-zone {\n flex: 0 0 30px;\n text-align: right;\n\n &.processing {\n svg {\n pointer-events: none;\n }\n }\n\n svg {\n cursor: pointer;\n }\n }\n\n .left-zone {\n flex: 1;\n }\n"]);return y=function(){return n},n}function x(){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 x=function(){return n},n}function C(){var n=(0,b.A)(["\n font-size: 12px;\n line-height: 18px;\n color: ",";\n"]);return C=function(){return n},n}var M,k,Y=w.Ay.div.withConfig({componentId:"sc-843e4d83-0"})(A(),(function(n){return n.theme.colors.blue50}),(function(n){return n.theme.colors.red50}),(function(n){return n.theme.colors.blue50})),I=w.Ay.div.withConfig({componentId:"sc-843e4d83-1"})(y()),E=w.Ay.div.withConfig({componentId:"sc-843e4d83-2"})(x(),(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.colors.red800}),(function(n){return n.theme.colors.gray800})),D=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 _=function(){return n},n}function V(){var n=(0,b.A)(["\n font-size: 14px;\n line-height: 22px;\n letter-spacing: -0.2px;\n color: ",";\n margin-bottom: 20px;\n"]);return V=function(){return n},n}function 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 U(){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 U=function(){return n},n}function G(){var n=(0,b.A)(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 24px;\n"]);return G=function(){return n},n}function W(){var n=(0,b.A)(["\n line-height: 22px;\n font-size: 14px;\n display: flex;\n align-items: center;\n letter-spacing: -0.2px;\n color: ",";\n display: flex;\n gap: 10px;\n align-items: center;\n cursor: pointer;\n"]);return W=function(){return n},n}function J(){var n=(0,b.A)(["\n text-align: center;\n max-width: 320px;\n"]);return J=function(){return n},n}function q(){var n=(0,b.A)(["\n line-height: 22px;\n font-size: 14px;\n text-align: center;\n letter-spacing: -0.2px;\n color: ",";\n\n .btn-browse {\n color: ",";\n cursor: pointer;\n text-decoration: underline;\n }\n"]);return q=function(){return n},n}function 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 Z(){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 Z=function(){return n},n}var X,$=w.Ay.div.withConfig({componentId:"sc-4825eb13-0"})(j()),nn=w.Ay.div.withConfig({componentId:"sc-4825eb13-1"})(H(),(function(n){return n.theme.colors.white})),en=w.Ay.div.withConfig({componentId:"sc-4825eb13-2"})(R()),tn=w.Ay.div.withConfig({componentId:"sc-4825eb13-3"})(_(),(function(n){return n.theme.colors.white})),on=w.Ay.div.withConfig({componentId:"sc-4825eb13-4"})(V(),(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"})(U()),ln=w.Ay.div.withConfig({componentId:"sc-4825eb13-7"})(G()),cn=w.Ay.div.withConfig({componentId:"sc-4825eb13-8"})(W(),(function(n){return n.theme.colors.blue600})),sn=w.Ay.div.withConfig({componentId:"sc-4825eb13-9"})(J()),dn=w.Ay.div.withConfig({componentId:"sc-4825eb13-10"})(q(),(function(n){return n.theme.colors.gray600}),(function(n){return n.theme.colors.blue600})),un=w.Ay.div.withConfig({componentId:"sc-4825eb13-11"})(K()),pn=w.Ay.div.withConfig({componentId:"sc-4825eb13-12"})(Z(),(function(n){return n.theme.colors.blue600})),fn=t(40568),hn=t(3959),gn=function(n,e,t){return new Promise((function(i){var r=new FileReader;r.readAsText(n,"UTF-8"),r.onloadend=function(r){var a="",l=[],c=[];try{var s=(r.target||{}).result;s||(a="File is not valid!");var d=hn.LF(s,{type:"binary"}),u=(0,fn.A)(d.SheetNames,1)[0],p=d.Sheets[u],f=hn.Wp.sheet_to_json(p,{raw:!0,header:1});f.length&&(c=(0,o.A)(f[0].map((function(n){return n.toLowerCase().replace(/[\r\n]/gm,"").trim().split(" ").join("_")}))),f.forEach((function(n,e){0!==e&&l.push(n)}))),0===l.length&&(a="No data to import"),console.log("rows data: ",f),console.log("headerValid: ",e),console.log("headerKeys: ",c),(l.length>t||c.length!==e.length)&&(a="Wrong file format");var h=c.every((function(n,t){return e[t]!==n&&(console.log("** Error column: ",n),console.log("** Error index column: ",t+1)),e[t]===n})),g=l.every((function(n,t){return Array.isArray(n)&&n.length>e.length&&(console.log("** Error row: ",n),console.log("** Error index row: ",t+1)),Array.isArray(n)&&n.length<=e.length}));(!h||!g&&l.length)&&(a="Wrong file format")}catch(m){a="Cannot read this file"}i({file:n,error:a,header:c,data:l})},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]),Vn=(0,l.useMemo)((function(){return"success"===F||Pn&&0===(null===Pn||void 0===Pn?void 0:Pn.failed)}),[F,Pn]),Qn=(0,l.useMemo)((function(){return Pn?Pn.failed+Pn.success:J.length}),[J,Pn]),Un=(0,l.useMemo)((function(){return Pn?Pn.failed:wn.length}),[wn,Pn]);return(0,l.useEffect)((function(){var n=setInterval((0,i.A)((function(){var e,t,i,o;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:return Yn&&"processing"===F?(t={country_id:zn,hash:Yn},[4,(0,f.W3)((0,f.er)(p.R.GET_ADMIN_IMPORT_STATUS,t),"GET")]):[3,2];case 1:return(i=r.sent())&&-1!==i._status||clearInterval(n),o=null===(e=i._data)||void 0===e?void 0:e["upload-process"],V(o.percent),"processing"!==o.status&&"processed"!==o.status&&(clearInterval(n),B(o.status),Fn(o),G(!1)),"import_success"===o.status&&Y({message:k({id:"admin.import.dragAndDrop.label",defaultMessage:"".concat(o.success," the records are saved successfully.")},{records:o.success}),type:"success"}),[3,3];case 2:clearInterval(n),r.label=3;case 3:return[2]}}))})),3e3);return function(){clearInterval(n)}}),[Yn,F]),w?(0,a.Y)($,{children:(0,a.FD)(nn,{children:[(0,a.FD)(en,{children:[(0,a.Y)(c.T,{type:"bold",size:"base",children:M}),(0,a.Y)("div",{className:"close",onClick:function(){return n=!!F,Hn(),e&&e(),void(n&&I.reload());var n},children:(0,a.Y)(kn.A,{})})]}),(0,a.FD)(tn,{children:[(0,a.Y)(on,{children:k({id:"admin.importDataPopup.description",defaultMessage:"Please upload {recordNumber} records only for one time import. If your file is more than {recordNumber} records please split to multiple files and import multiple times."},{recordNumber:C})}),(0,a.FD)(rn,{children:[!D&&(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)(In,{}),(0,a.Y)(dn,{children:k({id:"admin.import.dragAndDrop",defaultMessage:"Drag and drop to upload data file (*.csv) or browse file from your computer"})})]})})]}),D&&(0,a.FD)(un,{children:[(0,a.Y)(L,{fileName:null===j||void 0===j?void 0:j.name,size:null===j||void 0===j?void 0:j.size,percent:_,status:z||F,statusImport:F,onRemove:Hn}),"processing"===F&&(0,a.Y)(s.L,{className:"loading-import"})]})]}),(0,a.FD)("div",{className:"wrapper-message",children:["success"===z&&(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"===z&&(0,a.Y)(d.A,{closeIcon:(0,a.Y)(a.FK,{}),contentIcon:(0,a.Y)(Mn.A,{}),text:k({id:"admin.import.masterData.wrongFormat",defaultMessage:"Wrong file format"}),type:"danger"}),_n&&(0,a.Y)(d.A,{contentIcon:(0,a.Y)(En.A,{}),closeIcon:(0,a.Y)(pn,{children:k({id:"admin.download.import.list",defaultMessage:"Download the list"})}),text:k({id:"admin.import.masterData.status",defaultMessage:"".concat(Un,"/").concat(Qn," records can not be loaded")},{recordsError:Un,recordsTotal:Qn}),type:"warning",onClose:function(){if(!Pn){var n=(0,o.A)(wn);return n.unshift(["Line"].concat((0,o.A)(Z),["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))}}),Vn&&(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)(ln,{children:[(0,a.FD)(cn,{onClick:function(){A&&(0,v.nQ)(A)},children:[(0,a.Y)(xn,{}),k({id:"common.download.template",defaultMessage:"Download template"})]}),(0,a.Y)(u.B,{size:"md",onClick:Rn,isLoading:U,disabled:"success"!==z&&"processing"!==F,children:k("success"!==z&&"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 x}});var i=t(2445),o=(t(73884),t(1050)),r=t(95872),a=t(6442),l=t(24537),c=t(27317);function s(){var n=(0,l.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,l.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,l.A)(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding: 16px 24px;\n"]);return u=function(){return n},n}function p(){var n=(0,l.A)(["\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n padding: 0 24px;\n background: ",";\n\n & {\n .heading {\n margin-top: 24px;\n }\n }\n"]);return p=function(){return n},n}function f(){var n=(0,l.A)(["\n font-size: 14px;\n line-height: 22px;\n letter-spacing: -0.2px;\n color: ",";\n"]);return f=function(){return n},n}function h(){var n=(0,l.A)(["\n display: flex;\n justify-content: flex-end;\n align-items: center;\n padding: 15px 24px 24px;\n gap: 15px;\n"]);return h=function(){return n},n}var g=c.Ay.div.withConfig({componentId:"sc-d2f87818-0"})(s()),m=c.Ay.div.withConfig({componentId:"sc-d2f87818-1"})(d(),(function(n){return n.theme.colors.white})),v=c.Ay.div.withConfig({componentId:"sc-d2f87818-2"})(u()),b=c.Ay.div.withConfig({componentId:"sc-d2f87818-3"})(p(),(function(n){return n.theme.colors.white})),w=c.Ay.div.withConfig({componentId:"sc-d2f87818-4"})(f(),(function(n){return n.theme.colors.gray600})),A=c.Ay.div.withConfig({componentId:"sc-d2f87818-5"})(h()),y=t(8758),x=function(n){var e=n.open,t=void 0!==e&&e,l=n.message,c=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:c,children:(0,i.Y)(y.A,{})})]}),(0,i.Y)(b,{children:(0,i.Y)(w,{children:l})}),(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,l,c;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===(l=e.loyalty)||void 0===l?void 0:l.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===(c=e.loyalty)||void 0===c?void 0:c.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(1050),a=t(6442),l=t(58065),c=t(24537),s=t(95872),d=t(27317);function u(){var n=(0,c.A)(["\n bottom: 0;\n top: 0;\n position: absolute;\n z-index: 99;\n left: 0;\n display: flex;\n width: 100%;\n height: var(--app-height);\n justify-content: flex-end;\n"]);return u=function(){return n},n}function p(){var n=(0,c.A)(["\n position: absolute;\n left: 50%;\n top: 50%;\n width: 95%;\n transform: translate(-50%, -50%);\n margin-right: 0;\n background: ",";\n box-shadow: -16px 16px 32px rgba(67, 86, 100, 0.165947);\n border-radius: 8px;\n"]);return p=function(){return n},n}function f(){var n=(0,c.A)(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n padding: 16px;\n gap: 10px;\n\n .title {\n display: flex;\n align-items: center;\n gap: 10px;\n }\n\n .close {\n cursor: pointer;\n }\n"]);return f=function(){return n},n}function h(){var n=(0,c.A)(["\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n padding: 0 16px;\n background: ",";\n\n & {\n .heading {\n margin-top: 24px;\n }\n }\n"]);return h=function(){return n},n}function g(){var n=(0,c.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,c.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,c.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()),y=d.Ay.div.withConfig({componentId:"sc-b9693b02-1"})(p(),(function(n){return n.theme.colors.white})),x=d.Ay.div.withConfig({componentId:"sc-b9693b02-2"})(f()),C=d.Ay.div.withConfig({componentId:"sc-b9693b02-3"})(h(),(function(n){return n.theme.colors.white})),M=d.Ay.div.withConfig({componentId:"sc-b9693b02-4"})(g(),(function(n){return n.theme.colors.gray600}),(function(n){return n.theme.colors.blue600})),k=d.Ay.div.withConfig({componentId:"sc-b9693b02-5"})(m(),(function(n){return n.theme.colors.neutral200})),Y=(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})),I=t(8758);function E(){return E=Object.assign?Object.assign.bind():function(n){for(var e=1;eUser Profile in order to receive all the booking confirmation email. Thank you!",tagName:"p",values:{span:function(n){return(0,i.Y)("span",{onClick:d,children:n})}}})})}),(0,i.FD)(k,{children:[(0,i.Y)(Y,{size:"sm",type:"button",onClick:o,children:s({id:"bookingCard.continueBooking",defaultMessage:"Continue Booking"})}),(0,i.Y)(Y,{size:"sm",type:"button",className:"btn-user-profile",onClick:d,children:s({id:"bookingCard.goToUserProfile",defaultMessage:"Go to User Profile"})})]})]})}):null}},71584:function(n,e,t){"use strict";t.d(e,{S:function(){return b}});var i=t(38971),o=t(2445),r=t(1050),a=t(35291),l=t(14677),c=t(84091),s=t(10297),d=t(6442),u=t(58065),p=t(24537),f=t(15159);function h(){var n=(0,p.A)(["\n display: flex;\n align-items: center;\n margin-top: 4px;\n gap: 8px;\n flex-wrap: wrap;\n\n &[data-is-has-promotion='true'] {\n .servicePrice {\n color: ",";\n text-decoration: line-through;\n }\n }\n\n .price-wrapper {\n svg {\n flex: 0 0 16px;\n margin-top: 3px;\n\n "," {\n margin-top: 0;\n }\n }\n .price {\n color: ",";\n }\n }\n"]);return h=function(){return n},n}var g=t(27317).Ay.div.withConfig({componentId:"sc-b7b31f9f-0"})(h(),(function(n){return n.theme.colors.gray800}),f.M.mbDown,(function(n){return n.theme.colors.green700})),m=t(40959),v=t(22657),b=function(n){var e,t=n.price,p=n.priceType,f=n.priceTo,h=n.promotion,b=n.className,w=n.frisoCampaign,A=n.originalPrice,y=(0,d.A)().formatMessage,x=(0,s.useRouter)().locale,C=(e={},(0,i.A)(e,m.vne.FIXED,y({id:"admin.doctor.servicePrice.fixed",defaultMessage:"Fixed Price"})),(0,i.A)(e,m.vne.STARTING,y({id:"admin.doctor.servicePrice.start",defaultMessage:"Starting from"})),(0,i.A)(e,m.vne.RANGE,y({id:"admin.doctor.servicePrice.range",defaultMessage:"Range"})),e),M=function(n,e){return p===m.vne.RANGE&&e?"".concat((0,c.UN)(n,x),"\n "," - ").concat((0,c.UN)(e,x)):"".concat((0,c.UN)(n,x))};return(0,o.FD)(g,{className:b,"data-is-has-promotion":!!h,children:[(0,o.FD)(l.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,f||"")})},price:M(t,f||"")}}):C[p]})]}),!w&&(0,o.Y)(r.T,{size:"p4",color:A?a.w.colors.red700:a.w.colors.green700,className:"servicePrice !font-semibold !text-[18px]",children:M(t,f||"")}),A&&(0,o.Y)(r.T,{size:"p4",color:a.w.colors.gray600,className:"servicePrice !text-[14px] !line-through",children:(0,c.UN)(A,x)}),!!h&&(0,o.Y)(r.T,{size:"p4",color:a.w.colors.green700,children:M(Number(t)*(1-h/100),Number(f)*(1-h/100)||"")})]})}},51743:function(n,e,t){"use strict";t.d(e,{z:function(){return p}});var i=t(2445),o=t(24537),r=t(27317);function a(){var n=(0,o.A)(["\n border-radius: 100px;\n position: relative;\n height: 4px;\n overflow: hidden;\n"]);return a=function(){return n},n}function l(){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 l=function(){return n},n}function c(){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 c=function(){return n},n}var s=r.Ay.div.withConfig({componentId:"sc-3d6d901d-0"})(a()),d=r.Ay.div.withConfig({componentId:"sc-3d6d901d-1"})(l()),u=r.Ay.div.withConfig({componentId:"sc-3d6d901d-2"})(c(),(function(n){return n.theme.colors.blue600}),(function(n){return n.theme.colors.red800})),p=function(n){var e=n.percent,t=n.className,o=n.status;return(0,i.FD)(s,{className:t,children:[(0,i.Y)(d,{className:o}),(0,i.Y)(u,{style:{width:"".concat(e,"%")},className:o})]})}},3184:function(n,e,t){"use strict";t.d(e,{k:function(){return m}});var i=t(2445),o=t(32876),r=t.n(o),a=t(6442),l=t(24537),c=t(27317);function s(){var n=(0,l.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,l.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,l.A)(["\n color: ",";\n font-size: 14px;\n font-weight: 400;\n line-height: 22px;\n cursor: pointer;\n text-decoration: underline !important;\n"]);return u=function(){return n},n}var p=c.Ay.div.withConfig({componentId:"sc-78a33fb6-0"})(s()),f=c.Ay.div.withConfig({componentId:"sc-78a33fb6-1"})(d(),(function(n){return n.theme.colors.neutral50})),h=c.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,l=n.className,c=n.reviewsUrl,s=(0,a.A)().formatMessage,d=null===e||void 0===e?void 0:e.toFixed(1),u=t?"".concat(d,"/").concat(t):d;return(0,i.FD)(p,{className:l,children:[!!e&&(0,i.FD)(f,{children:[(0,i.Y)(g.A,{}),(0,i.Y)("p",{children:"".concat(u)})]}),!!o&&(0,i.Y)(r(),{href:c||"#",children:(0,i.Y)(h,{children:s({id:"common.reviewCount",defaultMessage:"{reviewCount} reviews"},{reviewCount:o})})})]})}},54238:function(n,e,t){"use strict";t.d(e,{a:function(){return H}});var i=t(2445),o=t(73884),r=t(1050),a=t(47236),l=t(35291),c=t(27516),s=t(84091),d=t(76672),u=t(88491),p=t(73419),f=t(40959),h=t(32876),g=t.n(h),m=t(6442),v=t(24537),b=t(27317),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 y=768,x=function(){for(var n=arguments.length,e=new Array(n),t=0;t p:first-child {\n margin-bottom: 8px;\n }\n\n .Location {\n > * {\n display: inline-block;\n vertical-align: middle;\n }\n\n svg {\n margin: 6px;\n\n &:first-child {\n margin-left: 0px;\n }\n }\n\n span {\n color: $gray-500;\n }\n }\n\n .directionButton {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: left;\n }\n"]);return Y=function(){return n},n}function I(){var n=(0,v.A)(["\n display: flex;\n width: 100%;\n flex-direction: column;\n align-items: flex-start;\n justify-content: flex-start;\n"]);return I=function(){return n},n}function E(){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 E=function(){return n},n}function D(){var n=(0,v.A)(["\n flex-direction: column;\n align-items: flex-start;\n "]);return D=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"})(Y());var F,B=b.Ay.div.withConfig({componentId:"sc-4acc0154-3"})(I()),O=b.Ay.div.withConfig({componentId:"sc-4acc0154-4"})(E(),(function(n){return n.theme.colors.gray600})),z=b.Ay.div.withConfig({componentId:"sc-4acc0154-5"})(N(),x(D())),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 c=function(){return n},n}var s=t(27317).Ay.div.withConfig({componentId:"sc-1f86ba63-0"})(c(),(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,l=n.role,c=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:c,children:(0,i.Y)(o.T,{className:null===(e=u[l])||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[l])||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),l=t(59850),c=t(84091),s=t(38221),d=t.n(s),u=t(6442),p=t(24537);function f(){var n=(0,p.A)(["\n b {\n font-weight: bold;\n }\n"]);return f=function(){return n},n}var h=t(27317).Ay.section.withConfig({componentId:"sc-3b95409e-0"})(f()),g=t(43184),m=function(n){var e=n.onSelectArticle,t=n.isInputDisabled,s=void 0!==t&&t,p=n.selectedArticles,f=(0,a.useState)(""),m=f[0],v=f[1],b=(0,a.useState)([]),w=b[0],A=b[1],y=(0,a.useState)(!1),x=y[0],C=y[1],M=(0,a.useCallback)((0,i.A)((function(){var n;return(0,o.__generator)(this,(function(e){switch(e.label){case 0:return C(!0),[4,(0,c.px)((0,c.pZ)(l.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 Y=(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]),I=(0,a.useMemo)((function(){return m.length>2?"No Results":"Search for an article"}),[m]),E=(0,u.A)().formatMessage;return(0,r.Y)(h,{children:(0,r.Y)(g.U1,{id:"search-article",onChange:function(n,t){n&&e(n),t&&v(String(t))},options:Y.filter((function(n){return!(null===p||void 0===p?void 0:p.find((function(e){return e.value===n.value})))})),placeholder:E({id:"admin.articlePicker.placeholder",defaultMessage:"Search for articles"}),isLoading:x,disabled:s,customPlaceHolder:I,useInnerHTML:!0})})}},68289:function(n,e,t){"use strict";t.d(e,{E4:function(){return f},UL:function(){return p},XD:function(){return h},Zr:function(){return d},og:function(){return u},wY:function(){return s}});var i=t(74029),o=t(59850),r=t(66298),a=t(1806),l=t(45351),c=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,c.vwd,{locale:l.tV[e]}))},p=function(n,e){try{return(0,a.A)(n.workingDay).getTime()-(0,a.A)(e.workingDay).getTime()}catch(t){return 0}},f=function(n,e){var t=[];return"doctor"===n||"doctorTele"===n?t=(0,i.GE)(e._data.schedules):"service"===n&&(t=(0,i.kT)(e._data.schedules)),t},h=function(n,e,t){for(var i=0,o=new Date(n);o<=e;o.setDate(o.getDate()+1))t(o,i),i++}},33700:function(n,e,t){"use strict";t.d(e,{b:function(){return I}});var i=t(2445),o=t(73884),r=t(53735),a=t(1050),l=t(35291),c=t(37376),s=t(32485),d=t.n(s),u=t(48403),p=t(6442),f=t(48260),h=t(24632);function g(){var n=(0,p.A)().formatMessage;return(0,i.FD)(f.Rl,{children:[(0,i.Y)(h.A,{width:120,height:120}),(0,i.Y)(a.T,{size:"p2",className:"mt-[16px] text-c",children:n({id:"admin.emptyData",defaultMessage:"Empty data"})})]})}var m=t(24537),v=t(27317);function b(){var n=(0,m.A)(["\n width: 100%;\n & .row {\n border-bottom: 1px solid\n ",";\n cursor: pointer;\n }\n & .row[data-is-active] {\n background-color: ",";\n }\n & .body[data-is-hoverable] {\n > tr:hover {\n background-color: ","70; // reduce color alpha\n }\n }\n\n & td,\n th {\n padding: 8px;\n }\n & th:nth-child(1),\n td:nth-child(1) {\n padding-left: 24px;\n }\n thead {\n th {\n vertical-align: top;\n .has-sort {\n gap: 5px;\n display: flex;\n cursor: pointer;\n }\n }\n }\n"]);return b=function(){return n},n}function 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 y(){var n=(0,m.A)(["\n font-size: 13px;\n background: white;\n position: relative;\n z-index: 1;\n border-top: 1px solid ",";\n & > tr {\n border-bottom-color: ",";\n }\n"]);return y=function(){return n},n}var x=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"})(y(),(function(n){return n.theme.colors.neutral100}),(function(n){return n.theme.colors.neutral100})),Y=t(88576),I=function(n){var e=n.data,t=n.headings,s=n.className,p=n.hasOrderColumn,f=n.moreOptions,h=n.sortParmas,m=n.onRowClicked,v=n.onClickSort,b=n.hasOptions,w=void 0===b||b,A=n.isShowEmpty,y=n.id,I=(0,o.useState)(void 0),E=I[0],D=I[1],N=function(n){D(n),null===m||void 0===m||m(n)};return(0,i.FD)(x,{className:s,id:y?"table-".concat(y):void 0,children:[(0,i.FD)(r.c.Table,{verticalPadding:"16px",children:[(0,i.FD)(k,{isSticky:!1,children:[p&&(0,i.Y)(r.c.Cell,{isTableHead:!0,children:"No."}),t.map((function(n,e){return(0,i.Y)(r.c.Cell,{isTableHead:!0,style:{paddingTop:15,paddingBottom:15},className:"object"===typeof n?n.className:void 0,textAlign:"object"===typeof n?n.textAlign:void 0,children:(0,i.FD)("div",{className:"".concat("object"===typeof n&&(null===n||void 0===n?void 0:n.sort)?"has-sort":""),onClick:function(){"object"===typeof n&&(null===n||void 0===n?void 0:n.sort)&&function(n){var e="";"asc"===(null===h||void 0===h?void 0:h.sort)&&(e="desc"),"desc"===(null===h||void 0===h?void 0:h.sort)&&(e="asc"),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)(Y.A,{})]})},e)})),w&&(0,i.Y)(r.c.Cell,{isTableHead:!0,children:""})]}),(0,i.Y)(r.c.Body,{isHoverable:!0,className:"body",children:e&&e.map((function(n,e){return(0,i.FD)(r.c.Row,{rowId:n[0].value,onRowClicked:function(n){N&&N(n)},isActive:n[0].value===E||void 0,className:d()("row",[y&&"table-".concat(y,"-row-").concat(e+1)]),children:[p&&(0,i.Y)(r.c.Cell,{children:(0,i.Y)(a.T,{size:"md",type:"bold",style:{fontSize:"14px",fontWeight:400},color:l.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)(c.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:l.w.colors.gray500,style:{fontSize:"14px"},children:e.value.caption})]})]}),("string"===e.type||"number"===e.type)&&(0,i.Y)(a.T,{size:"base",color:l.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:l.w.colors.gray500,style:{fontSize:"14px"},children:e.value.text})]}),"options"===e.type&&(0,i.Y)("div",{onClick:function(n){n.stopPropagation()},children:(0,i.Y)(u.rI,{data:e.value.map((function(e){return{name:e.name,icon:e.icon,isDisabled:e.isDisabled,action:function(){(null===e||void 0===e?void 0:e.action)&&e.action(n[0].value,n[t].metaData)}}}))})}),w&&"key"===e.type&&(0,i.Y)("div",{onClick:function(n){n.stopPropagation()},children:(0,i.Y)(u.rI,{data:("function"===typeof f?f(n[t].metaData||n[t].value):f).map((function(i){return{id:i.id,name:i.name,icon:i.icon,isDisabled:i.isDisabled,action:function(){!i.isDisabled&&i.action&&i.action(e.value,n[t].metaData)}}}))})})]},t)}))]},e)}))})]}),A&&(0,i.Y)(g,{})]})}},24572:function(n,e,t){"use strict";t.d(e,{U:function(){return b}});var i=t(858),o=t(53513),r=t(83776),a=t(2445),l=t(73884),c=t(34555),s=t(74029),d=t(59850),u=t(84091),p=t(43184),f=t(73419),h=t(24537);function g(){var n=(0,h.A)(["\n width: 100%;\n margin-right: 5px;\n"]);return g=function(){return n},n}var m=t(27317).Ay.div.withConfig({componentId:"sc-adfcd035-0"})(g()),v={value:"",label:""},b=function(n){var e=n.id,t=n.hospitalId,h=n.style,g=n.className,b=n.value,w=n.placeholder,A=n.errorMessage,y=n.disabled,x=n.params,C=n.handleChange,M=(0,f.$)(),k=(0,l.useState)([]),Y=k[0],I=k[1],E=(0,l.useState)(null),D=E[0],N=E[1],P=(0,l.useState)(!1),F=P[0],B=P[1],O=(0,l.useState)(!1),z=O[0],S=O[1],T=(0,l.useMemo)((function(){return{tooltip:{display:"block"}}}),[]);return(0,l.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||""},x)),"GET")];case 1:return(n=i.sent())&&1===(null===n||void 0===n?void 0:n._status)&&(null===n||void 0===n?void 0:n._data)&&(e=n._data.branches.map((function(n){return{value:n.id.toString(),label:n.name}})),I(e)),[2]}}))}));return function(){return n.apply(this,arguments)}}();t&&n()}),[t]),(0,l.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)(c.m,{label:null===D||void 0===D?void 0:D.label,styles:T,opened:!!D&&z&&!F,children:(0,a.Y)(m,{onMouseOver:function(){S(!0)},onMouseOut:function(){S(!1)},children:(0,a.Y)(p.U1,{style:h,className:g,id:e,placeholder:w||"All branches",value:null!==D&&void 0!==D?D:void 0,onChange:function(n){S(!1),B(!1),n?(N(n),C(n)):(null===D||void 0===D?void 0:D.value)&&C(v)},onFocus:function(){B(!0)},onBlur:function(){B(!1)},options:Y,errorMessage:A,hasFilterValueFromOptions:!1,disabled:y})})})}},45638:function(n,e,t){"use strict";t.d(e,{i:function(){return y}});var i=t(858),o=t(53513),r=t(83776),a=t(2445),l=t(73884),c=t(34555),s=t(74029),d=t(59850),u=t(84091),p=t(43184),f=t(88542),h=t(73419),g=t(40959),m=t(2543),v=t(24537);function b(){var n=(0,v.A)(["\n width: 100%;\n margin-right: 5px;\n"]);return b=function(){return n},n}var w=t(27317).Ay.div.withConfig({componentId:"sc-b504765d-0"})(b()),A={value:"",label:""},y=function(n){var e=n.style,t=n.className,v=n.id,b=n.value,y=n.placeholder,x=n.errorMessage,C=n.disabled,M=n.params,k=n.inorgeSiloam,Y=void 0!==k&&k,I=n.handleChange,E=(0,h.$)(),D=(0,h.$)().locale,N=void 0===D?"vi-VN":D,P=g.EmC[N].id,F=(0,l.useState)([]),B=F[0],O=F[1],z=(0,l.useState)(null),S=z[0],T=z[1],L=(0,l.useState)(!1),j=L[0],H=L[1],R=(0,l.useState)(!1),_=R[0],V=R[1],Q=(0,f.o)().navigationDropdownControl,U=(0,l.useState)(!1),G=U[0],W=U[1],J=function(){var n=(0,i.A)((function(n){var e,t,i,a;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:return W(!0),[4,(0,u.W3)((0,u.er)(d.R.GET_ADMIN_ORGANIZATION,(0,o.A)({keyword:n||"",countryId: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!Y||!n.isSiloam})),O(a.map((function(n){return{value:n.id.toString(),label:n.name}})))):t&&5===t._status&&E.push("/admin/login"),W(!1),[2]}}))}));return function(e){return n.apply(this,arguments)}}(),q=(0,l.useCallback)((0,m.debounce)((function(n){return J(n)}),300),[]),K=(0,l.useMemo)((function(){return{tooltip:{display:"block"}}}),[]);return(0,l.useEffect)((function(){J()}),[Q]),(0,l.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&&E.push("/admin/login"),[2]}}))}));return function(e){return n.apply(this,arguments)}}();b&&"string"===typeof b&&n(b)}),[b]),(0,a.Y)(c.m,{label:null===S||void 0===S?void 0:S.label,styles:K,opened:!!S&&_&&!j,children:(0,a.Y)(w,{onMouseOver:function(){V(!0)},onMouseOut:function(){V(!1)},children:(0,a.Y)(p.U1,{style:e,className:t,id:v,placeholder:y||"",value:null!==S&&void 0!==S?S:void 0,onChange:function(n,e){var t,i;T(n),V(!1),H(!1),console.log("DropdownSearch selected"),t=n,i=e,console.log("option: ",t),console.log("value: ",S),t?(q(""),t.value===(null===S||void 0===S?void 0:S.value)&&t.label===(null===S||void 0===S?void 0:S.label)||(I(t),localStorage.setItem("admin/selectedHospital",JSON.stringify(t)))):(((null===S||void 0===S?void 0:S.value)||(null===S||void 0===S?void 0:S.label))&&I(A),q(i))},onFocus:function(){H(!0)},onBlur:function(){H(!1)},options:B,isLoading:G,errorMessage:x,hasFilterOption:!1,disabled:C})})})}},39608:function(n,e,t){"use strict";t.d(e,{w:function(){return _}});var i,o,r=t(2445),a=t(35291),l=t(40141),c=t(1050),s=t(95872),d=t(2624),u=t(27516),p=t(9060),f=t(40959),h=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 R=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),_=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,y=n.bigLinks,C=n.hellohealthLinks,M=n.type,k=void 0===M?"main":M,I=n.logoType,E=void 0===I?"hellohealth":I,D=n.isMobile,P=n.flagLinks,F=(0,T.A)().formatMessage,B=(0,h.useRouter)().locale,z=void 0===B?"vi-VN":B,L=32,j=32;return D&&(L=24,j=24),(0,r.Y)(R,{className:e,style:"mini"===k?{backgroundColor:a.w.colors.neutral50}:{},"next-page-hide":!0,children:(0,r.Y)(p.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)(l.L,{className:"footer-logo",type:E,isLightLogo:!0}),(0,r.FD)("div",{className:"columns",children:[(0,r.FD)("div",{className:"newsletter",children:[(0,r.Y)(c.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)(c.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)(x,{})}),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)(Y,{})}),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)(O,{})}),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:y.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[z]).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)(c.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[z]).concat(n.link),className:"link",href:n.link,children:(0,r.Y)(c.T,{size:"sm",type:"regular",children:n.title})},n.title)}))]}),(0,r.FD)("div",{className:"mHalf",children:[(0,r.Y)(c.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)(c.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)(c.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(f.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[z],"/"),children:(0,r.Y)("img",{src:"".concat(f.JpE,"/images/dmca.png"),alt:"DMCA Icon"})}),b&&(0,r.Y)(c.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)(c.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[z]).concat(n.link),children:(0,r.Y)(c.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)(c.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)(c.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)(c.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)(x,{})}),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)(Y,{})}),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)(O,{})})]})]})})]})})})})})}},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),l=t(47236),c=t(35291),s=t(1050),d=t(27516),u=t(84091),p=t(24431),f=t(35094),h=t(73419),g=t(32876),m=t.n(g),v=t(6442),b=t(12495),w=t.n(b),A=t(13034),y=t(10297),x=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,y.useRouter)().push,a=e.length>0;return(0,r.FD)(x.rO,{style:t,children:[(0,r.Y)(C.h,{iconSize:16,svgIcon:{fill:c.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:c.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)(x.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:c.w.colors.gray600,children:i({id:"hospitalSearchCard.notAvailableBookingAtHospital",defaultMessage:"Not available for booking"})})]})},Y=t(89252),I=function(n){var e=n.distance;return n.isDisplayDistance?(0,r.Y)(r.FK,{children:Number(e)>=0&&(0,r.FD)(r.FK,{children:[(0,r.Y)("div",{className:"location-separator",children:(0,r.Y)("svg",{width:"4",height:"4",children:(0,r.Y)("circle",{cx:"2",cy:"2",r:"2",fill:"#BFBFBF"})})}),(0,r.Y)(s.T,{size:"p3",color:c.w.colors.gray500,children:"".concat((0,Y.m8)(e)," km")})]})}):null},E=t(89394),D=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"===c?"See Hospital Click":"Book Appointment Click";return(0,o.Y)(A.SK,(0,f.A)((0,p.A)({size:"md",color:"primary",onClick:function(n){null===n||void 0===n||n.stopPropagation(),t(e)},className:"button",dataEventCategory:"Care",dataEventAction:i,dataEventLabel:O},n),{children:d("hospital"===c?{id:"hospitalCard.button.view",defaultMessage:"View Hospital"}:{id:"hospitalCard.bookService",defaultMessage:"Book Service"})}))}()]})})},Y=t(47760),I=t(95456),E=t(1247),D=function(n){var e=n.type,t=n.hospitalInfo,i=n.gps,p=n.phone,f=n.orderedListIndex,h=n.onHospitalClick,g=n.onMainActionClick,m=n.onPhoneClick,v=n.children,b=n.onGlobalCardClick,w=n.customRenderHospitalUrl,x=n.goHospitalPage,C=n.hospitalURL,M=n.hospitalStatus,D=(0,c.d)().isMobile,N=(0,s.c)(),P=(0,r.useMemo)((function(){return i&&(0,y.Yf)(i.lat,i.lng,null===t||void 0===t?void 0:t.latitude,null===t||void 0===t?void 0:t.longitude)}),[t,i]),F=(0,d.$)().locale,B=w||(0,l.eP)(t),O="https://".concat(a.y[F]).concat(B),z=["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":D&&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,y.ZH)(e)," Click ").concat(f+1),"data-event-label":O,onClick:function(n){n.stopPropagation(),h(t)},children:(0,o.Y)(I.Y,{layout:"responsive",src:t.logo||"".concat(u.JpE,"/images/avatar.jpg"),width:64,height:64,quality:100,objectFit:"contain"})}),(0,o.FD)(A.fp,{children:[(0,o.Y)(Y.J,{hospitalInfo:t,gps:i,orderedListIndex:f,type:e,customRenderHospitalUrl:w}),!D&&v]})]})}),D&&v]}),"service"===e&&(0,o.Y)(E._,{organizationLogo:t.logo,hospitalName:t.name,goHospitalPage:x,isDisplayDistance:z,distance:P,handleMakeAppointment:function(){return h(t)},address:t.address,hospitalURL:C,trackingHospitalProps:{"data-event-category":"Care","data-event-action":"Hospital Click ".concat(f+1),"data-event-label":"https://".concat(a.y[F]).concat(u.JpE).concat((0,l.eP)(t))}}),"hospital"===e&&(0,o.Y)(k,{hospitalInfo:t,phone:p,type:e,hospitalStatus:M,onMainActionClick:g,onPhoneClick:m})]})}},51524:function(n,e,t){"use strict";t.d(e,{$5:function(){return H},Ao:function(){return R},Bm:function(){return S},FD:function(){return T},SK:function(){return z},d4:function(){return P},eO:function(){return j},fp:function(){return D},fs:function(){return E},mS:function(){return N},ns:function(){return B},rO:function(){return _},sb:function(){return L},xC:function(){return F},xY:function(){return O},xr:function(){return V},yO:function(){return I}});var i=t(24537),o=t(15159),r=t(95872),a=t(27317),l=t(3184);function c(){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 c=function(){return n},n}function s(){var n=(0,i.A)(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding-bottom: 16px;\n\n &[data-bottom-border='true'] {\n border-bottom: 1px dashed #e4e8ec;\n }\n\n gap: 16px;\n\n .hospital-image-wrapper {\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: start;\n gap: 16px;\n\n "," {\n flex-direction: column;\n }\n }\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n display: flex;\n flex-direction: column;\n align-items: start;\n justify-content: left;\n gap: 16px;\n\n .buttons {\n svg {\n min-width: 16px;\n margin: 4px 6px 6px 0;\n }\n a {\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n justify-content: left;\n }\n }\n\n .hospital-name a {\n color: inherit;\n }\n"]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n\n margin: 8px 0;\n\n > :last-child {\n flex-shrink: 0;\n }\n\n .location-pin {\n display: flex;\n min-width: 16px;\n align-items: center;\n margin: 0 6px 0 0;\n }\n\n .location-separator {\n display: flex;\n align-items: center;\n margin: 6px;\n }\n\n span {\n color: $gray-500;\n }\n\n .hospital-location {\n display: -webkit-box;\n overflow: hidden;\n width: calc(100% - 22px);\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n word-break: break-all;\n }\n"]);return u=function(){return n},n}function p(){var n=(0,i.A)(["\n display: flex;\n width: 100%;\n flex-direction: row;\n align-items: center;\n justify-content: left;\n gap: 16px;\n"]);return p=function(){return n},n}function f(){var n=(0,i.A)(["\n display: flex;\n height: 100%;\n flex-direction: column;\n align-items: left;\n justify-content: space-between;\n\n "," {\n justify-content: flex-start;\n align-items: flex-start;\n padding-top: 8px;\n min-width: 100%;\n height: 100%;\n }\n\n .btn-phone-number {\n border: none;\n cursor: copy;\n margin: auto;\n }\n\n .view {\n display: flex;\n width: 100%;\n flex-direction: row;\n align-items: left;\n margin-top: 8px;\n\n > :first-child {\n width: 100%;\n margin-right: 8px;\n }\n }\n\n .hospitalCard__callButton {\n display: flex;\n min-width: var(--button-size);\n max-width: var(--button-size);\n height: var(--button-size);\n align-items: center;\n justify-content: center;\n border: 2px solid ",";\n background: ",";\n border-radius: calc(var(--button-size) / 2);\n --button-size: 40px;\n .callTrigger {\n pointer-events: none;\n }\n }\n"]);return f=function(){return n},n}function h(){var n=(0,i.A)(["\n margin-top: 8px;\n margin-right: 16px;\n "," {\n padding: 16px 0 0 0;\n }\n\n .description {\n white-space: pre-line;\n }\n\n .see-more-button[data-color='ghost'][data-size='sm'] {\n padding-left: 0;\n padding-bottom: 0;\n text-align: left;\n }\n\n .content-description {\n color: ",";\n }\n\n &[data-is-collapsed='true'] {\n p {\n display: -webkit-box;\n overflow: hidden;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n }\n }\n"]);return h=function(){return n},n}function g(){var n=(0,i.A)(["\n .svgTrigger {\n pointer-events: none;\n }\n button[data-color='tertiary'][data-size='md'] {\n padding: 9px 15px;\n\n > span {\n white-space: nowrap;\n display: -webkit-box;\n overflow: hidden;\n -webkit-line-clamp: 1;\n }\n }\n"]);return g=function(){return n},n}function m(){var n=(0,i.A)(["\n span {\n white-space: nowrap;\n }\n"]);return m=function(){return n},n}function v(){var n=(0,i.A)(["\n display: -webkit-box;\n overflow: hidden;\n width: 100%;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n word-break: break-all;\n"]);return v=function(){return n},n}function b(){var n=(0,i.A)(["\n "," {\n margin-top: 8px;\n }\n "," {\n gap: 6px;\n margin: 8px 0;\n }\n"]);return b=function(){return n},n}function 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 y(){var n=(0,i.A)(["\n border-radius: 50%;\n border: 1px solid #f7f9fc;\n object-position: center;\n"]);return y=function(){return n},n}function x(){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 x=function(){return n},n}function C(){var n=(0,i.A)(["\n display: flex;\n gap: 16px;\n margin-left: auto;\n\n "," {\n gap: 8px;\n width: 100%;\n flex-direction: column-reverse;\n > * {\n width: 100%;\n }\n }\n\n "," {\n }\n"]);return C=function(){return n},n}function M(){var n=(0,i.A)(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]);return M=function(){return n},n}function k(){var n=(0,i.A)(["\n display: flex;\n gap: 8px;\n"]);return k=function(){return n},n}function Y(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n\n p {\n cursor: pointer;\n color: ",";\n\n &:hover {\n text-decoration: underline;\n }\n }\n\n .separator {\n background-color: ",";\n width: 1px;\n height: 12px;\n margin-right: 8px;\n }\n"]);return Y=function(){return n},n}var I=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-0"})(c()),E=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-1"})(s(),o.M.mbDown),D=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"})(p()),F=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-5"})(f(),o.M.mbDown,(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.white})),B=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-6"})(h(),o.M.mbDown,(function(n){return n.theme.colors.gray500})),O=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-7"})(g()),z=(0,a.Ay)(r.B).withConfig({componentId:"sc-4b85d5f3-8"})(m()),S=(a.Ay.span.withConfig({componentId:"sc-4b85d5f3-9"})(v()),(0,a.Ay)(l.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"})(y()),a.Ay.div.withConfig({componentId:"sc-4b85d5f3-14"})(x())),H=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-15"})(C(),o.M.mbDown,o.M.mbUp),R=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-16"})(M()),_=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-17"})(k()),V=a.Ay.div.withConfig({componentId:"sc-4b85d5f3-18"})(Y(),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.gray200}))},89252:function(n,e,t){"use strict";t.d(e,{Yf:function(){return a},ZH:function(){return r},ch:function(){return c},m8:function(){return l}});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"})},l=function(n){return Math.round(10*((parseFloat("".concat(n))||0)+1e-5))/10},c=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 Yn},g8:function(){return oe},rI:function(){return Sn},iv:function(){return En.i},T5:function(){return In.T},JC:function(){return f}});t(39608);var i=t(73884),o=t(59850),r=t(84091),a=t(32485),l=t.n(a),c=(t(48403),t(22699),t(62862)),s=t(73419),d=t(40959),u=(t(12215),t(36259));t(14662),t(10297),t(95456),t(98797);var p=t(2445),f=function(){return(0,p.Y)("p",{children:"You don't have permission to access this page. Please contact Po!"})},h=t(858),g=t(38971),m=t(24537),v=t(83776),b=t(91954),w=t.n(b),A=t(1050),y=t(35291),x=t(53735),C=t(47236),M=t(95872),k=t(27516),Y=t(83725),I=t(74029),E=t(19475),D=t(21447),N=t(68519),P=t(66298),F=t(1806),B=t(4736),O=t(94334),z=t(2543),S=t(58638),T=t(72946),L=t(7350),j=t.n(L),H=t(6442),R=t(91266),_=t(27317),V=t(45351),Q=t(55550),U=t(68289),G=t(2966),W=t.n(G),J=t(15159),q=t(69831);function K(){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 K=function(){return n},n}function Z(){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 Z=function(){return n},n}function X(){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 X=function(){return n},n}function $(){var n=(0,m.A)(["\n position: absolute;\n background-color: ",";\n padding: 2px 4px;\n border-radius: 2px;\n right: 16px;\n top: 6px;\n"]);return $=function(){return n},n}function nn(){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 nn=function(){return n},n}function en(){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 en=function(){return n},n}function tn(){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 tn=function(){return n},n}function on(){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 on=function(){return n},n}var rn=_.Ay.button.withConfig({componentId:"sc-88a93553-0"})(K(),(function(n){return n.theme.colors.neutral100}),(function(n){return n.theme.colors.white})),an=(0,_.Ay)(q.Sp).withConfig({componentId:"sc-88a93553-1"})(Z(),(function(n){return n.theme.colors.neutral100})),ln=_.Ay.div.withConfig({componentId:"sc-88a93553-2"})(X()),cn=_.Ay.div.withConfig({componentId:"sc-88a93553-3"})($(),(function(n){return n.theme.colors.green500})),sn=_.Ay.div.withConfig({componentId:"sc-88a93553-4"})(nn(),(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.colors.blue600})),dn=_.Ay.div.withConfig({componentId:"sc-88a93553-5"})(en(),J.M.mbDown,J.M.mbDown,J.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}),J.M.tdDown,J.M.mbDown),un=_.Ay.div.withConfig({componentId:"sc-88a93553-6"})(tn(),(function(n){return n.theme.colors.blue50}),J.M.mbDown,J.M.mbDown,J.M.mbDown,(function(n){return n.theme.colors.gray800})),pn=_.Ay.div.withConfig({componentId:"sc-88a93553-7"})(on(),(function(n){return n.stickyElHeight||0})),fn=t(21336),hn=t(20607),gn=t(40224),mn=t(47055),vn=t(40630),bn=t(71584),wn=t(57656),An=t(80783),yn=t(79951),xn=t(71082),Cn=t(38431);function Mn(){var n=(0,m.A)(["\n body { \n .woot-widget-bubble.woot-widget--expanded {\n bottom: 24px;\n } \n }\n"]);return Mn=function(){return n},n}var kn=(0,_.DU)(Mn()),Yn=function(n){var e,t=n.className,a=n.serviceInfo,f=n.doctorInfo,m=n.schedules,b=n.isLoading,L=n.chosenDate,_=n.firstDayHasSlot,G=n.isMobile,J=n.isStickyBtn,q=n.rangeDaysPicked,K=n.type,Z=n.isTeleMedicine,X=void 0!==Z&&Z,$=n.price,nn=n.originalPrice,en=n.priceType,tn=n.priceTo,on=n.validTelemedicine,Mn=n.validOutpatient,Yn=n.description,In=n.doctorId,En=n.serviceId,Dn=n.frisoCampaign,Nn=void 0!==Dn&&Dn,Pn=n.bufferTime,Fn=void 0===Pn?0:Pn,Bn=n.isSiloam,On=void 0!==Bn&&Bn,zn=n.address,Sn=n.adUnitPath,Tn=n.showAdMid,Ln=n.showAdTop,jn=n.vouchers,Hn=n.isValidTanganil,Rn=void 0!==Hn&&Hn,_n=n.onSelectedTimeCallback,Vn=n.onChangeChosenDate,Qn=n.onContinueBooking,Un=n.onChangePicker,Gn=n.setTeleMedicine,Wn=function(n){setTimeout((function(){requestAnimationFrame((function(){var e=ot.current;if(e){var t,i;if(G&&n)null===$n||void 0===$n||null===(t=$n.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)},Jn=(0,B.useAppContext)().state,qn=(0,i.useContext)(u.B).pushNotifications,Kn=(0,S.I)({id:"booking-scroll-top-trigger",heightHeader:G?0:65}).isTopSticky,Zn=(0,O.m)({serviceInfo:a,doctorInfo:f}),Xn=(0,T.o)().isValidOnboarding,$n=(0,i.useRef)(null),ne=(0,i.useRef)(null),ee=(0,i.useRef)(null),te=(0,i.useState)(!1),ie=te[0],oe=te[1],re=(0,i.useState)(void 0),ae=re[0],le=re[1],ce=(0,H.A)().formatMessage,se=(0,s.$)(),de=se.locale,ue=se.asPath,pe=(0,i.useState)(!1),fe=pe[0],he=pe[1],ge=(0,i.useState)(0),me=ge[0],ve=ge[1],be=(0,i.useState)(!0),we=be[0],Ae=be[1],ye=(0,i.useState)(!1),xe=ye[0],Ce=ye[1],Me=(0,i.useState)(!1),ke=Me[0],Ye=Me[1],Ie=(0,i.useState)(!1),Ee=Ie[0],De=Ie[1],Ne=(0,i.useState)(!1),Pe=Ne[0],Fe=Ne[1],Be=(0,i.useState)(!1),Oe=Be[0],ze=Be[1],Se=(0,i.useState)(!1),Te=Se[0],Le=Se[1],je=(0,i.useState)(!1),He=je[0],Re=je[1],_e=(0,i.useState)([]),Ve=_e[0],Qe=_e[1],Ue=(0,i.useState)([]),Ge=Ue[0],We=Ue[1],Je=(0,i.useState)([]),qe=Je[0],Ke=Je[1],Ze=(0,i.useState)([]),Xe=Ze[0],$e=Ze[1],nt=(0,i.useState)(0),et=nt[0],tt=nt[1],it=(0,i.useRef)(0),ot=(0,i.useRef)(null),rt=(0,i.useRef)(null),at=(0,i.useRef)(null),lt=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],l="vertical"===e?"scrollTop":"scrollLeft",c="vertical"===e?"scrollHeight":"scrollWidth",s="vertical"===e?"clientHeight":"clientWidth";return(0,i.useEffect)((function(){var e,i=function(){n.current&&(0===n.current[l]?a("start"):n.current[l]+n.current[s]===n.current[c]?a("end"):a("mid"))},o=(0,z.throttle)(i,t);return null===(e=n.current)||void 0===e||e.addEventListener("scroll",o),i(),function(){var e;null===(e=n.current)||void 0===e||e.removeEventListener("scroll",o)}}),[n.current]),{scrollPosition:r,scrollable:n.current?n.current[c]>n.current[s]:null}}(ot,"horizontal"),ct=lt.scrollPosition,st=lt.scrollable,dt=(0,mn.A)(),ut=dt.message,pt=dt.updateMessage,ft=(0,i.useMemo)((function(){return"doctor"===K?X?"Telemedicine - Continue Booking Click":"Outpatient - Continue Booking Click":"Continue Booking Click"}),[K,X]),ht=function(n,e){return!(0,D.A)(n)||(0,N.A)(new Date("".concat((0,P.A)(n,"yyyy/MM/dd")," ").concat(e)))-(0,N.A)(new Date)>=0},gt=(0,P.A)(new Date,"y-M-dd");(0,c.j)($n,(function(){oe(!1)}));(0,i.useEffect)((function(){!function(){var n,e,t;Ce(!0);var i=(0,P.A)(L,"yyyy-MM-dd"),o=(0,I.wW)(null===(n=m.find((function(n){return n.workingDay===i})))||void 0===n?void 0:n.workingTimes.morning,[]),r=(0,I.wW)(null===(e=m.find((function(n){return n.workingDay===i})))||void 0===e?void 0:e.workingTimes.afternoon,[]),a=(0,I.wW)(null===(t=m.find((function(n){return n.workingDay===i})))||void 0===t?void 0:t.workingTimes.evening,[]);Qe(o),We(r),Ke(a),o.length>0?($e(o),ve(0)):r.length>0?($e(r),ve(1)):a.length>0?($e(a),ve(2)):($e(o),ve(0)),he(!1),Ce(!1)}(),Wn(He)}),[L,m,G,He]);var mt=function(n){var e=n.workingTimes;return(0,I.wW)(e.morning,[]).filter((function(e){return ht(new Date(n.workingDay),e.started)})).length+(0,I.wW)(e.afternoon,[]).filter((function(e){return ht(new Date(n.workingDay),e.started)})).length+(0,I.wW)(e.evening,[]).filter((function(e){return ht(new Date(n.workingDay),e.started)})).length},vt=function(n){if(!n)return!1;var e=new Date("".concat((0,P.A)(L,"yyyy/MM/dd")," ").concat(n.started)),t=new Date,i=d.PcP*Fn;return!(e.getTime()<=t.getTime()+i)},bt=(0,i.useMemo)((function(){var n;return!!Jn.userInfo&&(null===(n=Jn.userInfo.email)||void 0===n?void 0:n.includes("@facebook.com"))}),[Jn.userInfo]),wt=(0,i.useMemo)((function(){return!!Rn||!On&&Number($)>0}),[On,$,Rn]),At=(0,i.useMemo)((function(){var n=(0,P.A)(L,"yyyy-MM-dd");return(null===_||void 0===_?void 0:_.getTime())===(0,F.A)(n).getTime()}),[L,_]),yt=(0,i.useMemo)((function(){return m.length?new Date(m[m.length-1].workingDay):new Date}),[m]),xt=(0,i.useMemo)((function(){var n;return Kn&&ne?(null===(n=ne.current)||void 0===n?void 0:n.clientHeight)||0:80}),[Kn,ne]),Ct=(0,i.useCallback)(j()((function(n,e,t,i,o){(Math.abs(t-n.clientX)<50||G)&&(i(new Date(e.workingDay)),o(void 0))}),500),[]),Mt=function(n){var e=n.smallSpacing,t=n.type;return(0,p.FD)("div",{className:l()(W().noResults,e?W().noResultsSmall:void 0),"data-is-part-of-day":"partOfDay"===t,children:[(0,p.Y)(An.A,{}),(0,p.Y)(A.T,{size:"sm",color:y.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"})})]})},kt=m.length<1&&!b,Yt=function(){var n=(0,h.A)((function(){var n,e,t,i,a,l,c,s;return(0,v.__generator)(this,(function(u){switch(u.label){case 0:return vt(ae)?(Le(!0),!Jn.isLoggedIn&&Nn?(t=(0,r.sT)("".concat(d.JpE).concat(ue),"care_onboarding"),d.dXu?Y.u.getState().triggerCareEmailPhoneVerify({source:"care_onboarding"}):window.location.href=t,[2]):ae?[3,1]:(he(!1),Le(!1),G&&(null===(i=ot.current)||void 0===i||i.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})),[3,4])):("ms-MY"===de&&G&&(null===(n=rt.current)||void 0===n||n.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})),Kn&&("ms-MY"===de&&G?null===(e=rt.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}):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===ae||void 0===ae?void 0:ae.started}),type:"danger"}),[2]);case 1:return X&&Nn?(a="?doctorId=".concat(In,"&date=").concat((0,P.A)(L,d.cuM),"&scheduleId=").concat(ae.schedule_id,"&telemedicine=").concat(X||""),l="".concat(ue).concat(a),d.dXu?Jn.isLoggedIn&&Xn?[4,(0,r.T7)((0,r.er)(o.R.GET_FRISO_VALIDATION,{booking_type:"doctor",doctor_id:In||""}),"GET")]:(Y.u.getState().triggerCareEmailPhoneVerify({returnUrl:"".concat(d.JpE).concat(l),source:"care_onboarding"}),Le(!1),[2]):(c=(0,r.sT)("".concat(d.JpE).concat(l),"care_onboarding"),window.location.href=c,[2])):[3,3];case 2:return s=u.sent(),pt(s._data),De(!0),ze(s._data.valid),Le(!1),[3,4];case 3:Le(!1),Qn&&Qn(ae),u.label=4;case 4:return[2]}}))}));return function(){return n.apply(this,arguments)}}(),It=function(){De(!1)},Et=function(){Kn&&window.scrollTo({top:0,left:0,behavior:"smooth"}),_&&(Vn(_),le(void 0),Ae(!0),G&&Re(!0))},Dt=function(n){ot.current&&(ot.current.scrollLeft+=n)};(0,i.useEffect)((function(){!Mn&&on&&Gn&&Gn(!0)}),[]);var Nt=[];Mn&&Nt.push({name:ce({id:"doctorDetailPage.appointment.outpatient",defaultMessage:"Outpatient Appointment"})}),on&&Nt.push({name:ce({id:"doctorDetailPage.appointment.telemedicine",defaultMessage:"Telemedicine Appointment"})});var Pt;return(0,i.useEffect)((function(){m&&m.length&&Ae(0!==mt(m[0]))}),[m]),(0,i.useEffect)((function(){if(!G&&ot.current){var n,e,t=!1,i=ot.current;null===i||void 0===i||i.addEventListener("mousedown",(function(o){it.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)}}))}}),[ot.current]),(0,i.useEffect)((function(){_n&&_n(ae)}),[ae]),(0,i.useEffect)((function(){if(_&&!(0,D.A)(new Date(_))){var n=m.find((function(n){return(0,F.A)(n.workingDay).getTime()===_.getTime()}));n&&(Vn(new Date(_)),le(void 0),Ae(0!==mt(n)))}}),[_,m]),(0,i.useEffect)((function(){var n=document.querySelector(".woot-widget--expanded");if(n&&ee)if(Kn&&J&&G){var e,t=null===ee||void 0===ee||null===(e=ee.current)||void 0===e?void 0:e.clientHeight;n&&t&&(n.style.bottom="".concat(t+10,"px"))}else n.style.bottom="24px"}),[Kn,J,G,ee]),(0,i.useEffect)((function(){if(Kn&&at.current){var n=at.current;tt(n.clientHeight)}else tt(0)}),[Kn]),(0,p.FD)(p.FK,{children:[Kn&&(J&&G||!G)&&(0,p.Y)(w(),{id:"ed9cee0153834757",dynamic:[et],children:"body>#__next>footer{padding-bottom:".concat(et,"px}")}),(0,p.Y)(dn,{style:{zIndex:20},ref:rt,children:(0,p.FD)(un,{children:[(0,p.FD)("div",{className:"booking-info-header",children:[(0,p.FD)("div",{className:"mb-[8px]",children:[(0,p.Y)("h3",{className:W().bookingHeading,children:ce({id:"hospital.bookAnAppointment",defaultMessage:"Book an appointment"})}),Yn&&(0,p.Y)(A.T,{size:"p4",color:y.w.colors.gray800,className:"description-price",children:(0,p.Y)("div",{dangerouslySetInnerHTML:{__html:Yn}})})]}),zn&&(0,p.FD)("div",{className:"booking-info-row",children:[(0,p.Y)(Cn.A,{style:{marginTop:"3px"}}),(0,p.Y)("div",{className:"booking-info-row-text",children:zn})]})]}),(0,p.FD)("div",{className:l()(W().oBookingCard,t),children:["doctor"===K&&(0,p.FD)(p.FK,{children:[on&&(0,p.Y)(cn,{children:(0,p.Y)(A.T,{size:"n1",type:"bold",color:"white",children:ce({id:"doctorDetailPage.appointment.new",defaultMessage:"New"})})}),2===Nt.length?(0,p.Y)(ln,{children:(0,p.Y)(x.T,{className:"doctor-tabs",initialTab:0,tabContent:Nt,style:{paddingLeft:0},onChange:function(n){Un(new Date),Gn&&Gn(!!n),le(void 0),ot.current&&(ot.current.scrollLeft=0),Pe&&Fe(!1)}})}):(0,p.Y)(C.H,{tag:"h5",className:"my-[8px]",children:null!==(Pt=null===Nt||void 0===Nt||null===(e=Nt[0])||void 0===e?void 0:e.name)&&void 0!==Pt?Pt:ce({id:"doctorDetailPage.appointment.outpatient",defaultMessage:"Outpatient Appointment"})})]}),(0,p.FD)("div",{className:W().cardInner,"data-is-shown-picker":ie,children:[(0,p.FD)(an,{ref:$n,children:[(0,p.Y)(rn,{className:l()({show:ie}),onClick:function(){return oe(!ie)},children:q.length>0&&"".concat((0,U.og)(q[0],de)," - ").concat((0,U.og)(q[1],de))}),ie&&(0,p.Y)(x.D,{onChange:function(n){var e=(0,P.A)(n,"yyyy-MM-dd"),t=m.find((function(n){return(0,F.A)(n.workingDay).getTime()===(0,F.A)(e).getTime()}));t&&(Vn(new Date(t.workingDay)),le(void 0),Ae(0!==mt(t)),oe(!1))},className:"selectable",customInput:function(){return null},disabledDays:{before:new Date,after:yt},pickedDate:L,modifiers:{start:L,end:L},locale:de,isStatic:!0,alignRight:!1,UnHideOnClickOutside:!0})]}),(0,p.FD)(sn,{className:"".concat(At?"has-nearest":""),children:[At&&(0,p.Y)("div",{className:"nearest-text",children:ce({id:"bookingCard.nearestAvaliable",defaultMessage:"Nearest availabilities"})}),(0,p.Y)("div",{className:"today-btn",onClick:function(){m&&m.length&&(Vn(new Date(m[0].workingDay)),le(void 0),Ae(0!==mt(m[0])))},children:ce({id:"admin.home.filter.today",defaultMessage:"Today"})})]}),kt?Mt({smallSpacing:!1,type:"all"}):(0,p.FD)(p.FK,{children:[(0,p.Y)("div",{className:W().dateWrapper,children:(0,p.FD)("div",{className:l()(W().dateBlocks),ref:ot,id:"dateBlocksGroup",children:[!G&&st&&(0,p.Y)("button",{onClick:function(){return Dt(-282)},className:W().scrollButton,"aria-label":"Scroll back","aria-disabled":"start"===ct,children:(0,p.Y)(fn.h,{iconSize:16,svgIcon:{stroke:"start"!==ct?y.w.colors.gray600:y.w.colors.gray200},children:(0,p.Y)(yn.A,{})})}),xe?(0,p.Y)(p.FK,{children:(0,p.Y)(E.xA,{columns:3,columnsDesktop:3,gap:"8px",children:Array(3).fill(null).map((function(n,e){return(0,p.Y)(R.A,{width:86,height:68},e)}))})}):m.map((function(n){return n&&(0,p.FD)("div",{onClick:function(e){Ct(e,n,it.current,Vn,le),Wn(),Ae(0!==mt(n)),ve(0),Re(!1)},className:l()(W().dateBlock),"data-is-day-active":n.workingDay===(0,P.A)(L,d.cuM)||void 0,"data-is-telemedicine":X,role:"button",tabIndex:0,children:[(0,p.Y)(A.T,{size:"n1",color:y.w.colors.gray600,children:gt.toString()===n.workingDay?ce({id:"admin.home.filter.today",defaultMessage:"Today"}):(0,P.A)((0,F.A)(n.workingDay)," E ",{locale:V.tV[de]})}),(0,p.Y)(A.T,{size:"p3",type:"bold",children:(0,P.A)((0,F.A)(n.workingDay),"d/L",{locale:V.tV[de]})}),(0,p.Y)("span",{"data-has-availability":!!n.workingTimes,children:(0,p.Y)(A.T,{size:"n1",className:0===mt(n)?W().noSlot:W().available,children:mt(n)+" "+"".concat(ce({id:"bookingCard.slots",defaultMessage:"slots"}))})})]},n.workingDay)})),!G&&st&&(0,p.Y)("button",{onClick:function(){return Dt(282)},className:l()(W().scrollButton,W().next),"aria-label":"Scroll forward","aria-disabled":"end"===ct,children:(0,p.Y)(fn.h,{iconSize:16,svgIcon:{stroke:"end"!==ct?y.w.colors.gray600:y.w.colors.gray200},children:(0,p.Y)(xn.A,{})})})]})}),(0,p.Y)("div",{className:l()(W().times),children:function(){var n=!!(null===Ve||void 0===Ve?void 0:Ve.length),e=!!(null===Ge||void 0===Ge?void 0:Ge.length),t=!!(null===qe||void 0===qe?void 0:qe.length);if(!b&&!n&&!e&&!t)return Mt({smallSpacing:!0,type:"day"});var i=l()(W().timeframes),o=l()(W().time,(0,g.A)({},W().timeError,!fe||void 0));return(0,p.FD)(p.FK,{children:[(0,p.Y)(ln,{children:(0,p.Y)(x.T,{className:"doctor-tabs",initialTab:me,tabContent:[{name:"".concat(ce({id:"bookingCard.morning",defaultMessage:"Morning"})," ").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.afternoon",defaultMessage:"Afternoon"})," ").concat((null===Ge||void 0===Ge?void 0:Ge.length)?"(".concat(null===Ge||void 0===Ge?void 0:Ge.length,")"):"")},{name:"".concat(ce({id:"bookingCard.evening",defaultMessage:"Evening"})," ").concat((null===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:$e(Ve),ve(0);break;case 1:$e(Ge),ve(1);break;case 2:$e(qe),ve(2)}},style:{paddingLeft:0}})}),(0,p.Y)("div",{className:i,"data-is-no-slot":!b&&!Xe.length,role:"group",children:b?Array(6).fill(null).map((function(n,e){return(0,p.Y)(R.A,{height:36},e)})):Xe.length?null===Xe||void 0===Xe?void 0:Xe.map((function(n,e){return(0,p.FD)("div",{className:o,onClick:function(){vt(n)?(le(n),he(!0),ae||Pe||!bt||(Ye(!0),Fe(!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":ae===n||void 0,"data-is-telemedicine":X,"aria-pressed":ae===n||void 0,role:"button",tabIndex:0,onKeyPress:function(e){return function(n,e){"Enter"===n&&(le(e),he(!0))}(e.key,n)},children:[n.started," - ",n.ended]},e)})):Mt({smallSpacing:!1,type:"partOfDay"})})]})}()})]})]}),("ms-MY"!==de||"ms-MY"===de&&!G)&&(0,p.FD)("div",{className:l()(W().buttonWrapper),children:[J&&(0,p.Y)(kn,{}),(0,p.Y)(Q.A,{vouchers:jn,allowPaymentMethods:Zn}),wt&&(0,p.Y)(bn.S,{price:$,priceType:en,priceTo:tn,originalPrice:nn,frisoCampaign:Nn,className:"mb-[8px] !mt-[0px]"}),Xe.length?we?(0,p.Y)(M.B,{size:"md",color:"primary",className:l()(W().button,"button-continue-booking"),onClick:Yt,dataEventCategory:"Care",dataEventAction:ft,dataEventLabel:"https://".concat(k.y[de]).concat(d.JpE).concat(ue),isLoading:Te,children:ce({id:"bookingCard.continueBooking",defaultMessage:"Continue Booking"})}):(0,p.Y)(M.B,{size:"md",color:"primary",className:l()(W().button,"button-continue-booking"),onClick:Et,dataEventCategory:"Care",dataEventAction:"Soonest Available Schedule Click",dataEventLabel:"https://".concat(k.y[de]).concat(d.JpE).concat(ue),children:ce({id:"bookingCard.seeNearest",defaultMessage:"See nearest availabilities"})}):(0,p.Y)(R.A,{width:"100%",height:40})]}),(0,p.Y)(vn.A,{open:ke,onContinueBooking:function(){Ye(!1)},handleOnClose:function(){return Ye(!1)}}),(0,p.Y)(gn.A,{open:Ee,message:ut,handleOnClose:It,handleOnOk:function(){Oe&&ae?Qn&&Qn(ae):It()}})]}),(0,p.Y)("div",{id:"booking-scroll-top-trigger",style:{height:"1px",width:"100%"}})]})}),(0,p.Y)(dn,{ref:at,className:"sticky-booking-card flex-[1] ".concat("ms-MY"===de&&G||Kn?"sticky-booking-card-show":""),children:(0,p.FD)(pn,{stickyElHeight:xt,children:[(0,p.FD)(un,{className:"".concat("ms-MY"===de&&G||Kn&&(J&&G||!G)?"sticky-booking-show":"sticky-booking-hide"," "),ref:ne,children:[(0,p.Y)("div",{className:"booking-info-header",children:(0,p.Y)("div",{className:"mb-[8px]",children:(0,p.Y)("h3",{className:W().bookingHeading,children:ce({id:"hospital.bookAnAppointment",defaultMessage:"Book an appointment"})})})}),(0,p.FD)("div",{className:l()(W().oBookingCard,t),ref:ee,children:[(0,p.Y)(Q.A,{vouchers:jn,allowPaymentMethods:Zn,className:"!mb-[8px]"}),(0,p.FD)("div",{children:[wt&&(0,p.Y)(bn.S,{price:$,priceType:en,priceTo:tn,frisoCampaign:Nn,originalPrice:nn,className:"mb-[8px] !mt-[0px]"}),Xe.length?we?(0,p.Y)(M.B,{size:"md",color:"primary",className:l()(W().button,"button-continue-booking !w-[100%] !m-[0px]"),onClick:Yt,dataEventCategory:"Care",dataEventAction:ft,dataEventLabel:"https://".concat(k.y[de]).concat(d.JpE).concat(ue),isLoading:Te,children:ce({id:"bookingCard.continueBooking",defaultMessage:"Continue Booking"})}):(0,p.Y)(M.B,{size:"md",color:"primary",className:l()(W().button,"button-continue-booking !w-[100%] !m-[0px]"),onClick:Et,dataEventCategory:"Care",dataEventAction:"Soonest Available Schedule Click",dataEventLabel:"https://".concat(k.y[de]).concat(d.JpE).concat(ue),children:ce({id:"bookingCard.seeNearest",defaultMessage:"See nearest availabilities"})}):(0,p.Y)(R.A,{width:"100%",height:40})]})]})]}),!G&&(0,p.FD)(p.FK,{children:[Ln&&(0,p.Y)(wn.U7,{className:"!mt-[0px] !mb-[0px]",style:{flex:2.5,marginBottom:24},children:(0,p.Y)(hn.z,{className:"ad-container sticky-booking-card-ad-desktop",adUnitPath:Sn||"",size:[[300,250],[300,600]],divId:"ad-service-desktop-top-banner",pos:["TopBanner"],adDefaultSize:[300,250],style:{position:Kn?"sticky":"initial"},customTargetings:{Service_ID:En?[En]:"",Doctor_ID:In?[In]:""}})}),Tn&&(0,p.Y)(wn.U7,{children:(0,p.Y)(hn.z,{className:"ad-container sticky-booking-card-ad-desktop",adUnitPath:Sn||"",size:[300,250],divId:"ad-service-desktop-mid-banner1",pos:["MidBanner1"],adDefaultSize:[300,250],style:{position:Kn?"sticky":"initial"},customTargetings:{Service_ID:En?[En]:"",Doctor_ID:In?[In]:""}})})]})]})})]})},In=t(10699),En=t(45638);function Dn(){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 Dn=function(){return n},n}function Nn(){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 Nn=function(){return n},n}function Pn(){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 Pn=function(){return n},n}function Fn(){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 Fn=function(){return n},n}_.Ay.article.withConfig({componentId:"sc-dda43ea1-0"})(Dn()),_.Ay.div.withConfig({componentId:"sc-dda43ea1-1"})(Nn()),_.Ay.figure.withConfig({componentId:"sc-dda43ea1-2"})(Pn(),(function(n){return n.theme.colors.neutral100})),_.Ay.footer.withConfig({componentId:"sc-dda43ea1-3"})(Fn());var Bn=t(50749),On=t(34763),zn=t.n(On),Sn=function(n){var e,t=n.className,i=n.isShowing,o=n.onClose,r=n.onAccept,a=n.onDeny,c=n.title,s=n.caption,d=n.closeIcon,u=n.isLoading,f=n.acceptButtonTitle,h=n.denyButtonTittle,m=n.errorMessages,v=n.switchCTA,b=n.justifyContent,w=void 0===b?"between":b,x=n.buttonsProps,k=n.hideGroupBtn,Y=void 0!==k&&k,I=n.isHeaderText,E=void 0===I||I;return(0,p.Y)(Bn.M,{type:"confirm",isOpen:i,onClose:o,className:t,closeIcon:d,children:(0,p.FD)("div",{className:zn().contentPopup,children:[E&&(0,p.Y)(C.H,{tag:"h4",className:zn().content,children:c||"Are you sure to delete this patients info"}),(0,p.Y)(A.T,{size:"base",className:zn().content,color:y.w.colors.red500,children:null===m||void 0===m?void 0:m.content}),(0,p.Y)(A.T,{size:"base",className:zn().content,children:s||"We cannot restore it after it has been already declared"}),!Y&&(0,p.FD)("div",{className:l()(zn().buttonRow,(e={},(0,g.A)(e,zn().buttonRowCenter,"center"===w),(0,g.A)(e,zn().buttonRowBetween,"between"===w),(0,g.A)(e,zn().reverseButton,null===x||void 0===x?void 0:x.reverseButton),(0,g.A)(e,zn().buttonFillWidth,null===x||void 0===x?void 0:x.buttonFillWidth),e)),children:[(0,p.Y)(M.B,{isLoading:u,color:v?"secondary":"primary",size:(null===x||void 0===x?void 0:x.buttonSize)||"sm",onClick:r,children:f||"Yes, Delete"}),(0,p.Y)(M.B,{isDisabled:!v&&u,isLoading:!!v&&u,color:v?"primary":"secondary",size:(null===x||void 0===x?void 0:x.buttonSize)||"sm",onClick:a,children:h||"No, keep it"})]})]})})},Tn=(t(19956),t(53513)),Ln=t(63538),jn=t(98223),Hn=t(79540),Rn=t(73827),_n=t(41145);function Vn(n,e){var t=e.limit,o=void 0===t?10:t,r=e.delay,a=void 0===r?300:r,l=(0,i.useState)(1),c=l[0],s=l[1],d=(0,i.useState)(!1),u=d[0],p=d[1],f=n.length;(0,i.useEffect)((function(){s(1)}),[n]);var h=n.slice(0,o*c);return{total:f,data:h,currentPage:c,handleMore:function(){p(!0),setTimeout((function(){s((function(n){return n+1})),p(!1)}),a)},isMore:h.length div {\n padding: 8px;\n padding-right: 36px;\n } */\n }\n\n > div {\n display: flex;\n }\n\n .upload-dropdown {\n width: 150px;\n margin-right: 4px;\n cursor: pointer;\n\n ul {\n z-index: 9;\n }\n }\n\n "," {\n .dropdown-menu {\n [class*='StyledKebab'] {\n justify-content: flex-end;\n }\n }\n }\n"]);return c=function(){return n},n}function s(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n\n > * {\n margin-right: 16px;\n\n "," {\n &:last-child {\n margin-right: 0;\n }\n }\n }\n .input-search {\n input {\n min-width: 180px;\n height: 40px;\n }\n }\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n table :is(td:first-child, th:first-child) {\n width: 40%;\n }\n\n table :is(td:nth-child(2), th:nth-child(2)) {\n width: 10%;\n }\n\n table :is(td:nth-child(3), th:nth-child(3)) {\n width: 15%;\n }\n\n table :is(td:nth-child(4), th:nth-child(4)) {\n width: 10%;\n }\n\n table :is(td:nth-child(5), th:nth-child(5)) {\n width: 10%;\n }\n\n table :is(td:nth-child(6), th:nth-child(6)) {\n width: 10%;\n }\n\n table :is(td:nth-child(7), th:nth-child(7)) {\n width: 5%;\n }\n"]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n\n img {\n margin-right: 16px;\n }\n"]);return u=function(){return n},n}function p(){var n=(0,i.A)([""]);return p=function(){return n},n}function f(){var n=(0,i.A)(["\n display: flex;\n\n &[class] thead > tr > th {\n top: 64px;\n }\n"]);return f=function(){return n},n}function h(){var n=(0,i.A)(["\n display: flex;\n justify-content: flex-end;\n padding: 16px;\n\n "," {\n padding: 24px;\n justify-content: center;\n }\n\n "," {\n padding-left: 16px;\n padding-right: 16px;\n }\n"]);return h=function(){return n},n}function g(){var n=(0,i.A)(["\n display: flex;\n min-height: 50%;\n\n &.disabled-edit {\n .setting-panel,\n .setting-schedule {\n opacity: 0.5;\n pointer-events: none;\n }\n }\n\n "," {\n flex-wrap: wrap;\n }\n"]);return g=function(){return n},n}function m(){var n=(0,i.A)(["\n width: 30%;\n max-width: 400px;\n padding: 24px;\n border-right: 1px solid\n ",";\n "," {\n padding: 24px;\n width: 40%;\n }\n "," {\n width: 100%;\n border-right: none;\n padding: 24px 16px;\n max-width: 100%;\n }\n .title {\n margin-top: 12px;\n margin-bottom: 10px;\n color: ",";\n font-size: 14px;\n line-height: 22px;\n }\n label {\n font-size: 14px;\n }\n .range-selection {\n margin-top: 8px;\n input {\n margin-top: 8px;\n }\n label {\n margin-top: 5px;\n }\n\n & > div {\n width: 100%;\n margin-right: 0;\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n }\n .heading {\n margin-top: 40px;\n }\n .time-selection {\n label {\n //margin-right: 36px;\n }\n }\n"]);return m=function(){return n},n}function v(){var n=(0,i.A)(["\n position: relative;\n\n .selectable {\n position: absolute;\n z-index: 1;\n left: 0;\n top: 100%;\n }\n .selectable\n .DayPicker-Day--selected:not(.DayPicker-Day--start):not(.DayPicker-Day--end):not(.DayPicker-Day--outside) {\n background-color: "," !important;\n color: #4a90e2;\n }\n .selectable .DayPicker-Day {\n border-radius: 0 !important;\n }\n .selectable .DayPicker-Day--start {\n border-bottom-left-radius: 50% !important;\n border-top-left-radius: 50% !important;\n }\n .selectable .DayPicker-Day--end {\n border-bottom-right-radius: 50% !important;\n border-top-right-radius: 50% !important;\n }\n"]);return v=function(){return n},n}function b(){var n=(0,i.A)(["\n max-width: 340px;\n margin-top: 8px;\n"]);return b=function(){return n},n}function 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 y(){var n=(0,i.A)(["\n display: flex;\n justify-content: space-between;\n"]);return y=function(){return n},n}function x(){var n=(0,i.A)([""]);return x=function(){return n},n}function C(){var n=(0,i.A)(["\n display: flex;\n margin-bottom: 10px;\n div {\n display: flex;\n margin-left: 16px;\n }\n"]);return C=function(){return n},n}function M(){var n=(0,i.A)(["\n padding: 24px;\n\n .title {\n flex-basis: 20%;\n flex-grow: 0;\n flex-shrink: 0;\n color: ",";\n font-size: 14px;\n font-weight: 600;\n\n "," {\n margin-left: 6px;\n }\n\n "," {\n flex-basis: 33.33%;\n }\n }\n .content {\n color: ",";\n font-size: 14px;\n font-weight: 400;\n line-height: 22px;\n\n "," {\n padding-left: 5px;\n }\n }\n"]);return M=function(){return n},n}function k(){var n=(0,i.A)(["\n height: 40px;\n svg {\n width: 18px;\n height: 18px;\n }\n padding: 0 16px 0 12px;\n"]);return k=function(){return n},n}function Y(){var n=(0,i.A)(["\n height: 40px;\n border-radius: 4px;\n\n &.filter-btn {\n background-color: #e3f2ff;\n border: none;\n color: ",";\n\n svg path {\n fill: "," !important;\n }\n }\n"]);return Y=function(){return n},n}var I=a.Ay.div.withConfig({componentId:"sc-77ff1a20-0"})(l(),(function(n){return n.theme.colors.gray500})),E=a.Ay.div.withConfig({componentId:"sc-77ff1a20-1"})(c(),o.M.tdDown,(function(n){return n.theme.colors.neutral150}),o.M.tdOnly,o.M.mbDown,o.M.mbDown),D=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"})(p()),a.Ay.div.withConfig({componentId:"sc-77ff1a20-6"})(f()),a.Ay.div.withConfig({componentId:"sc-77ff1a20-7"})(h(),o.M.tdDown,o.M.mbDown)),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})),O=(0,a.Ay)(B).withConfig({componentId:"sc-77ff1a20-11"})(b()),z=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"})(y()),L=a.Ay.div.withConfig({componentId:"sc-77ff1a20-15"})(x()),j=(a.Ay.div.withConfig({componentId:"sc-77ff1a20-16"})(C()),a.Ay.div.withConfig({componentId:"sc-77ff1a20-17"})(M(),(function(n){return n.theme.colors.gray800}),o.M.tdUp,o.M.mbDown,(function(n){return n.theme.colors.gray800}),o.M.tdDown)),H=(0,a.Ay)(r.B).withConfig({componentId:"sc-77ff1a20-18"})(k()),R=(0,a.Ay)(r.B).withConfig({componentId:"sc-77ff1a20-19"})(Y(),(function(n){return n.theme.colors.blue600}),(function(n){return n.theme.colors.blue600}))},48260:function(n,e,t){"use strict";t.d(e,{$I:function(){return A},EH:function(){return Y},G1:function(){return k},Rl:function(){return N},_H:function(){return I},a4:function(){return x},f$:function(){return D},ft:function(){return E},gD:function(){return y},lC:function(){return P},n8:function(){return C},rL:function(){return M}});var i=t(24537),o=t(15159),r=t(27317);function a(){var n=(0,i.A)(["\n display: flex;\n"]);return a=function(){return n},n}function l(){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 l=function(){return n},n}function c(){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 c=function(){return n},n}function s(){var n=(0,i.A)(["\n margin-left: auto;\n svg {\n display: block;\n }\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n position: relative;\n min-width: 650px;\n grid-column-end: 10;\n grid-column-start: 4;\n\n "," {\n min-width: 0;\n grid-column-end: 13;\n grid-column-start: 1;\n }\n"]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n padding-left: 8px;\n grid-column-end: 3;\n grid-column-start: 1;\n\n "," {\n padding-left: 0;\n padding-bottom: 24px;\n grid-column-end: 13;\n }\n\n "," {\n padding-bottom: 32px;\n }\n\n .branch-avatar-selector {\n > div {\n position: relative;\n margin-top: 5px;\n }\n\n & {\n .branch-avatar {\n img {\n width: 136px;\n height: 136px;\n display: block;\n background-color: rgba(0, 0, 0, 0.05);\n }\n "," {\n border-radius: 50%;\n }\n\n "," {\n img {\n width: 64px;\n height: 64px;\n }\n }\n }\n }\n > div > div :not(:first-child) {\n position: absolute;\n right: 4px;\n bottom: -4px;\n width: 40px;\n height: 40px;\n border: 4px solid #ffffff;\n background-color: #2d87f3;\n\n "," {\n right: 0;\n bottom: 0;\n width: 20px;\n height: 20px;\n border-width: 2px;\n --icon-wrapper-size: 16px;\n }\n }\n }\n & .error {\n margin-top: 5px;\n color: ",";\n font-size: 12px;\n font-weight: ",";\n }\n .heading {\n margin-bottom: 16px;\n display: flex;\n align-items: center;\n gap: 8px;\n }\n"]);return u=function(){return n},n}function p(){var n=(0,i.A)(["\n display: grid;\n width: 100%;\n padding: 16px;\n margin-top: 24px;\n grid-template-columns: repeat(12, 1fr);\n\n "," {\n max-width: 650px;\n margin-left: auto;\n margin-right: auto;\n }\n"]);return p=function(){return n},n}function f(){var n=(0,i.A)(["\n position: fixed;\n z-index: 9;\n top: 0;\n display: flex;\n width: calc(100vw - var(--side-menu-width));\n height: 64px;\n justify-content: space-between;\n padding: 0px 24px;\n background: ",";\n box-shadow: 0px 0px 8px rgba(40, 74, 117, 0.08);\n\n "," {\n width: 100%;\n box-shadow: none;\n background-color: ",";\n border-bottom: 1px solid\n ",";\n }\n\n "," {\n position: relative;\n & + .spacing-mobile {\n margin-top: 64px;\n }\n }\n\n "," {\n position: relative;\n padding: 0px 16px;\n height: 56px;\n & + .spacing-mobile {\n margin-top: 16px;\n }\n }\n\n & > div > h5 {\n color: ",";\n }\n .alert {\n position: absolute;\n top: 72px;\n right: 0;\n width: fit-content;\n min-width: 400px;\n }\n"]);return f=function(){return n},n}function h(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n\n & > :not(:first-child) {\n margin-left: 24px;\n }\n"]);return h=function(){return n},n}function g(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n padding-right: 24px;\n .btn_cancel {\n margin-right: 8px;\n }\n "," {\n padding-right: 0;\n }\n\n button[type='button'] + button[type='button'] {\n margin-right: 12px;\n }\n\n "," {\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n padding: 13px 16px;\n align-items: stretch;\n justify-content: space-between;\n background-color: ",";\n border-top: 1px solid\n ",";\n\n & > button {\n width: 48%;\n }\n }\n"]);return g=function(){return n},n}function m(){var n=(0,i.A)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n"]);return m=function(){return n},n}function v(){var n=(0,i.A)(["\n padding: 80px 0;\n margin-left: auto;\n margin-right: auto;\n"]);return v=function(){return n},n}function b(){var n=(0,i.A)(["\n text-align: center;\n\n .group-btn {\n display: flex;\n gap: 12px;\n\n .btn {\n flex: 1;\n }\n }\n"]);return b=function(){return n},n}function 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"})(l(),(function(n){return n.theme.colors.blue50}),(function(n){return n.theme.colors.primaryBase}),o.M.tdUp,o.M.tdDown),y=r.Ay.img.withConfig({componentId:"sc-5a2a03ba-2"})(c()),x=r.Ay.div.withConfig({componentId:"sc-5a2a03ba-3"})(s()),C=r.Ay.div.withConfig({componentId:"sc-5a2a03ba-4"})(d(),o.M.tdDown),M=r.Ay.div.withConfig({componentId:"sc-5a2a03ba-5"})(u(),o.M.tdDown,o.M.mbDown,o.M.tdDown,o.M.mbDown,o.M.mbDown,(function(n){return n.theme.colors.red700}),(function(n){return n.theme.sizes.fwRegular})),k=r.Ay.div.withConfig({componentId:"sc-5a2a03ba-6"})(p(),o.M.tdOnly),Y=r.Ay.div.withConfig({componentId:"sc-5a2a03ba-7"})(f(),(function(n){return n.theme.colors.white}),o.M.tdDown,(function(n){return n.theme.colors.neutral150}),(function(n){return n.theme.colors.neutral100}),o.M.tdOnly,o.M.mbDown,(function(n){return n.theme.colors.gray800})),I=r.Ay.div.withConfig({componentId:"sc-5a2a03ba-8"})(h()),E=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})),D=r.Ay.div.withConfig({componentId:"sc-5a2a03ba-10"})(m()),N=(0,r.Ay)(D).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 f}});var i=t(24537),o=t(27317);function r(){var n=(0,i.A)(["\n display: flex;\n width: 90%;\n margin: 8px;\n & {\n .dropdown {\n width: 100%;\n height: 45px;\n margin-bottom: 2px;\n margin-left: 8px;\n color: ",";\n font-size: 14px;\n & div {\n overflow: hidden;\n white-space: pre;\n }\n }\n input::placeholder {\n color: ",";\n font-size: 14px;\n }\n .role {\n width: 80%;\n }\n }\n"]);return r=function(){return n},n}function a(){var n=(0,i.A)(["\n .table-caption {\n word-break: break-all;\n }\n\n .branchs-cell-wrapper {\n .branch-item {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 400px;\n }\n }\n"]);return a=function(){return n},n}function l(){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 l=function(){return n},n}function c(){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 c=function(){return n},n}function s(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n\n & > :not(:first-child) {\n margin-left: 24px;\n }\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n display: flex;\n align-items: center;\n padding-right: 24px;\n"]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n display: flex;\n justify-content: flex-end;\n padding: 16px 0;\n"]);return u=function(){return n},n}function p(){var n=(0,i.A)(["\n font-weight: bold;\n"]);return p=function(){return n},n}o.Ay.div.withConfig({componentId:"sc-787870c9-0"})(r(),(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.colors.gray800}));var f=o.Ay.div.withConfig({componentId:"sc-787870c9-1"})(a());o.Ay.div.withConfig({componentId:"sc-787870c9-2"})(l()),o.Ay.div.withConfig({componentId:"sc-787870c9-3"})(c(),(function(n){return n.theme.colors.white}),(function(n){return n.theme.colors.gray800})),o.Ay.div.withConfig({componentId:"sc-787870c9-4"})(s()),o.Ay.div.withConfig({componentId:"sc-787870c9-5"})(d()),o.Ay.div.withConfig({componentId:"sc-787870c9-6"})(u()),o.Ay.b.withConfig({componentId:"sc-787870c9-7"})(p())},32822:function(n,e,t){"use strict";t.d(e,{q:function(){return d}});var i=t(2445),o=t(88491),r=t(40959),a=t(10297),l=t(6442),c=t(1633),s=t(28171),d=function(n){var e=n.slotInfo,t=n.serviceInfo,d=n.doctorInfo,u=n.breadCrumbs,p=n.initialIsLoading,f=n.isTelemedicine,h=n.widgetOrganizationInfo,g=n.footerInfo,m=n.isPackage,v=(0,l.A)().formatMessage,b=(0,a.useRouter)().locale,w=void 0===b?"vi-VN":b,A=(0,o.d)().isMobile;return(0,i.Y)(i.FK,{children:h?(0,i.Y)(c.fc,{widgetOrganizationInfo:h,slotInfo:e,serviceInfo:t,doctorInfo:d,initialIsLoading:p,isTelemedicine:f,isPackage:m}):(0,i.Y)(s.K,{title:v({id:"page.title.booking",defaultMessage:"Booking"}),description:v({id:"home.seoDescription",defaultMessage:"Care"}),image:r.ElQ[w].HOMEPAGE_IMAGE,isSearchBarDisplay:!1,SEOData:{isIndexable:!0,hasNoAmp:!0},isMobile:A,footerInfo:g,children:(0,i.Y)(c.fc,{slotInfo:e,serviceInfo:t,doctorInfo:d,breadCrumbs:u,initialIsLoading:p,isTelemedicine:f,isPackage:m})})})}},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 y},fZ:function(){return v}});var i=t(24537),o=t(15159),r=t(48403),a=t(27317);function l(){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 l=function(){return n},n}function c(){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 c=function(){return n},n}function s(){var n=(0,i.A)(["\n "," {\n display: flex;\n position: relative;\n align-items: flex-start;\n gap: 32px;\n\n & > div:first-child {\n flex: 2 2;\n }\n & > div:last-child {\n flex: 1 1;\n }\n }\n\n "," {\n padding: 0 20px;\n }\n\n "," {\n padding: 0;\n }\n\n .survey-question {\n margin: 16px 0;\n "," {\n margin: 24px 0;\n }\n }\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n padding: 16px;\n border: 1px solid ",";\n border-radius: 6px;\n background: ",";\n\n .wrapper-form {\n display: flex;\n gap: 16px;\n margin-bottom: 12px;\n padding-left: 28px;\n\n "," {\n flex-direction: column;\n gap: 10px;\n }\n\n .input-item {\n flex: 0 0 calc(50% - 8px);\n\n "," {\n flex: 0 0 100%;\n }\n }\n\n .input-address {\n flex: 1;\n }\n\n label {\n color: ",";\n font-size: 14px;\n font-weight: 600;\n line-height: 22px;\n display: block;\n\n "," {\n font-size: 12px;\n line-height: 18px;\n }\n }\n\n input {\n padding: 8px 16px;\n line-height: 24px;\n color: ",";\n font-size: 16px;\n font-weight: 400;\n\n &::placeholder {\n color: ",";\n }\n\n "," {\n padding: 7px 12px;\n line-height: 22px;\n font-size: 14px;\n }\n }\n }\n\n .checkbox-field {\n margin-bottom: 15px;\n padding-left: 28px;\n label {\n max-width: initial;\n display: flex;\n gap: 8px;\n\n p {\n color: ",";\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n order: 1;\n\n "," {\n font-size: 14px;\n line-height: 22px;\n }\n }\n }\n }\n\n .type-opt {\n margin-bottom: 10px;\n\n .radio-btn {\n margin-top: 16px;\n\n label {\n font-size: 14px;\n line-height: 22px;\n width: 100% !important;\n }\n }\n }\n .radio-btn {\n label {\n width: 100% !important;\n }\n }\n\n .reason-text-area {\n margin-top: 12px;\n border-radius: 4px;\n border: 1px solid ",";\n padding: 12px;\n height: 120px;\n background-color: white;\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n color: ",";\n\n "," {\n height: 80px;\n font-size: 14px;\n line-height: 22px;\n }\n\n &[data-is-error='true'] {\n border: 1px solid ",";\n }\n }\n"]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n position: fixed;\n inset: 0;\n width: 100%;\n height: 100vh;\n z-index: 9999999;\n background: #f4f4f4;\n padding-bottom: ","px;\n\n .loading {\n height: 100vh;\n }\n"]);return u=function(){return n},n}function p(){var n=(0,i.A)(["\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n height: 114px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n justify-content: center;\n align-items: center;\n background: #f4f4f4;\n "," {\n background: #f3f6fa;\n }\n"]);return p=function(){return n},n}function f(){var n=(0,i.A)(["\n border-radius: 4px;\n padding: 8px 12px;\n display: flex;\n background-color: ",";\n border: 1px solid ",";\n align-items: center;\n margin-bottom: 24px;\n flex: 2 2;\n order: 0;\n\n "," {\n order: 1;\n }\n\n & > svg {\n min-width: 24px;\n margin-right: 12px;\n }\n\n & > p {\n font-size: 14px;\n line-height: 18px;\n flex: 1;\n\n "," {\n font-size: 12px;\n }\n }\n\n & > button {\n padding: 0;\n\n svg {\n margin: 0;\n }\n }\n"]);return f=function(){return n},n}function h(){var n=(0,i.A)(["\n margin-bottom: 24px;\n\n &:last-child {\n margin-bottom: 0;\n }\n"]);return h=function(){return n},n}function g(){var n=(0,i.A)(["\n color: ",";\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 22px;\n margin-left: 28px;\n margin-top: 2px;\n"]);return g=function(){return n},n}function 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"})(l(),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"})(c(),o.M.tdUp,(function(n){return n.theme.colors.primaryBase}),o.M.tdDown),b=(a.Ay.div.withConfig({componentId:"sc-be880827-2"})(s(),o.M.tdUp,o.M.tdDown,o.M.mbDown,o.M.tdUp),a.Ay.div.withConfig({componentId:"sc-be880827-3"})(d(),(function(n){return n.theme.colors.neutral100}),(function(n){return n.theme.colors.neutral150}),o.M.tdDown,o.M.tdDown,(function(n){return n.theme.colors.gray600}),o.M.tdDown,(function(n){return n.theme.colors.gray800}),(function(n){return n.theme.colors.gray400}),o.M.tdDown,(function(n){return n.theme.colors.gray800}),o.M.tdDown,(function(n){return n.theme.colors.neutral100}),(function(n){return n.theme.colors.gray800}),o.M.tdDown,(function(n){return n.theme.colors.red700})),a.Ay.div.withConfig({componentId:"sc-be880827-4"})(u(),(function(n){return n.buttonVisible?114:0}))),w=a.Ay.div.withConfig({componentId:"sc-be880827-5"})(p(),o.M.mbDown),A=a.Ay.div.withConfig({componentId:"sc-be880827-6"})(f(),(function(n){return n.theme.colors.yellow50}),(function(n){return n.theme.colors.yellow100}),o.M.mbDown,o.M.mbDown),y=(a.Ay.div.withConfig({componentId:"sc-be880827-7"})(h()),a.Ay.div.withConfig({componentId:"sc-be880827-8"})(g(),(function(n){return n.theme.colors.gray600})),a.Ay.div.withConfig({componentId:"sc-be880827-9"})(m(),o.M.mbDown,o.M.mbDown))},1633:function(n,e,t){"use strict";t.d(e,{_v:function(){return Ut},fc:function(){return Jt},MC:function(){return Wt},wx:function(){return Gt}});var i=t(858),o=t(53513),r=t(63538),a=t(81539),l=t(83776),c=t(2445),s=t(73884),d=t(64564),u=t(1050),p=t(95872),f=t(14669),h=t(27516),g=t(2763),m=t(74029),v=t(59850),b=t(84091),w=t(4736),A=t(73419),y=t(6442),x=function(n){var e;if(!n)return[];var t=null===(e=null===n||void 0===n?void 0:n._data)||void 0===e?void 0:e.payment_methods;if(Array.isArray(t))return t;var i=null===n||void 0===n?void 0:n.data,o=Array.isArray(i)?i:(null===i||void 0===i?void 0:i.items)||[];return Array.isArray(o)?o.map((function(n){return function(n){var e=null===n||void 0===n?void 0:n.description,t=null===n||void 0===n?void 0:n.sub_payment_methods,i=null===n||void 0===n?void 0:n.sub_payment_method,o=Array.isArray(t)?t:Array.isArray(i)?i:[];return{id:Number((null===n||void 0===n?void 0:n.id)||0),name:String((null===n||void 0===n?void 0:n.name)||(null===n||void 0===n?void 0:n.provider)||""),provider:String((null===n||void 0===n?void 0:n.provider)||""),title:String((null===n||void 0===n?void 0:n.title)||""),logo:"string"===typeof(null===n||void 0===n?void 0:n.logo)&&n.logo.trim().length>0?n.logo:void 0,display_label:String((null===n||void 0===n?void 0:n.display_label)||""),description:"string"===typeof e||e&&"object"===typeof e?e:"",payment_via:null===n||void 0===n?void 0:n.payment_via,payment_type:null===n||void 0===n?void 0:n.payment_type,is_active:"boolean"!==typeof(null===n||void 0===n?void 0:n.is_active)||n.is_active,sub_payment_methods:o}}(n)})):[]},C=t(88491),M=t(58638),k=t(40959),Y=t(58156),I=t.n(Y),E=t(80264),D=t(36259),N=t(82920),P=t(66298),F=t(10297),B=t(45351),O=t(35291),z=t(47236),S=t(53735),T=t(89394),L=t(91266),j=t(25108),H=t(20680),R=t(27112),_=t(19599),V=t(98678),Q=t(28532),U=t(91877),G=t(41450),W=function(n){var e=n.isOpen,t=void 0!==e&&e,i=n.name,o=n.onConfirm,r=n.onClose,a=(0,y.A)().formatMessage;return(0,c.Y)(Q.P,{type:"confirm",isOpen:t,closeIcon:(0,c.Y)("img",{src:"".concat(k.JpE,"/svg/close.svg"),style:{width:24,height:24},alt:"close-icon"}),onClose:r,children:(0,c.FD)(U.lC,{children:[(0,c.Y)(G.A,{className:"mt-[16px]"}),(0,c.Y)(z.H,{tag:"h3",className:"mt-[10px] mb-[8px]",children:a({id:"booking.subPatient.removeMember",defaultMessage:"Remove member"})}),(0,c.Y)(u.T,{color:O.w.colors.gray600,size:"sm",children:(0,c.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,c.FD)("div",{className:"group-btn mt-[32px]",children:[(0,c.Y)(p.B,{size:"lg",color:"secondary",className:"btn",onClick:o,children:a({id:"admin.removeUnavailableConfirmPopup.button.remove",defaultMessage:"Yes, remove"})}),(0,c.Y)(p.B,{size:"lg",className:"btn",onClick:r,children:a({id:"admin.removeUnavailableConfirmPopup.button.keep",defaultMessage:"No, keep it"})})]})]})})},J=t(21336),q=t(39900),K=t(68289),Z=t(1135),X=t(86204),$=t(1032),nn=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"})},p=e.id,f=e.avatar,h=e.birthday,g=e.gender,w=e.name,A=e.relation,x=(0,y.A)().formatMessage,C=(0,F.useRouter)().locale,M=(0,s.useContext)(D.B).pushNotifications,Y=(0,s.useState)(!1),I=Y[0],E=Y[1],N=(0,s.useState)(!1),P=N[0],B=N[1],z=function(){var n=(0,i.A)((function(){var n,t,i;return(0,l.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,(0,b.T7)((0,b.er)(v.R.DELETE_PATIENT_INFO,{id:p}),"DELETE")];case 1:return(n=o.sent())&&-1!==(null===n||void 0===n?void 0:n._status)?1===(null===n||void 0===n?void 0:n._status)&&(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,c.FD)(U.un,{"data-is-chosen":t,children:[(0,c.FD)(U.kL,{children:[(0,c.Y)(_.R,{label:"",type:"circle",name:"subpatient-checkbox",value:p.toString(),onChange:o,checked:t}),(0,c.FD)(U.xv,{children:[(0,c.Y)(U.dl,{src:f||m.k_,alt:"Avatar of ".concat(w),className:"avatar",onClick:o}),(0,c.FD)(U.JR,{onClick:o,children:[(0,c.Y)(u.T,{size:"s3",type:"semiBold",children:w}),(0,c.Y)("div",{className:"row-info",children:(0,c.Y)(u.T,{size:"p4",color:O.w.colors.gray600,children:x({id:"booking.subPatient.relationship.".concat(k.ynE[A||Z.pE.OTHER]),defaultMessage:(0,K.Zr)(k.ynE[A])})})}),(0,c.FD)("div",{className:"row-info",children:[(0,c.Y)(u.T,{size:"p4",color:O.w.colors.gray600,children:x({id:k.S91[g]||"gender.other",defaultMessage:"Other"})}),(0,c.Y)(u.T,{size:"p4",color:O.w.colors.gray600,children:h.toLocaleDateString(C)})]})]}),(0,c.FD)(U.rj,{children:[(0,c.Y)("button",{className:"button",children:(0,c.Y)(J.h,{iconSize:20,svgIcon:{fill:O.w.colors.gray400},onClick:function(){return E(!0)},children:(0,c.Y)(X.A,{})})}),(0,c.Y)("div",{className:"button",children:(0,c.Y)(J.h,{iconSize:20,svgIcon:{stroke:O.w.colors.gray400},onClick:function(){return B(!0)},children:(0,c.Y)($.A,{})})})]})]})]}),(0,c.Y)(q.R,{isOpen:I,formType:"edit",defaultValues:(0,V.Do)(e),onClose:function(){return E(!1)},onAddOrEditFamilyProfile:r}),(0,c.Y)(W,{name:e.name,isOpen:P,onClose:function(){return B(!1)},onConfirm:function(){z(),B(!1)}})]})},en=t(2624),tn=t(19475),on=t(24537),rn=t(27317);function an(){var n=(0,on.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 an=function(){return n},n}function ln(){var n=(0,on.A)(["\n display: flex;\n flex-direction: column;\n gap: 16px;\n"]);return ln=function(){return n},n}var cn=rn.Ay.div.withConfig({componentId:"sc-6d3ceb0d-0"})(an(),(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})),sn=rn.Ay.div.withConfig({componentId:"sc-6d3ceb0d-1"})(ln()),dn=function(n){var e=n.setTypePatient,t=n.typePatient,i=n.reason,a=n.typeOfPatient,l=n.bookingPatientInfo,s=n.errorMessage,d=n.setBookingPatientInfo,p=n.handleCheckSameProfile,f=n.setErrorMessage,m=n.setReason,v=(0,y.A)().formatMessage,b=(0,A.$)(),w=b.locale,x=b.asPath,C=function(n){var e=Object.keys(s).reduce((function(e,t){return t!==n&&(e[t]=s[t]),e}),{});f(e)};return(0,c.FD)(sn,{children:[(0,c.Y)(z.H,{tag:"h6",color:O.w.colors.secondaryBase,className:"heading-title",children:v({id:"booking.survey",defaultMessage:"Survey question"})}),(0,c.FD)(cn,{children:[(0,c.FD)("div",{className:"type-opt",children:[(0,c.FD)(u.T,{size:"s4",type:"semiBold",children:["1."," ",v({id:"booking.question.typePatient",defaultMessage:"Have you visited this facility before?"})]}),(0,c.Y)(S.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(h.y[w]).concat(k.JpE).concat(x)})]}),(0,c.FD)("div",{className:"wrapper-form",children:[(0,c.FD)("div",{children:[(0,c.Y)(en.I,{placeholder:v({id:w===g.L.Malaysia?"booking.question.whatsapp.placeholder":"booking.question.zalo.title",defaultMessage:w===g.L.Malaysia?"Whatsapp":"Zalo"}),name:"zalo",label:v({id:w===g.L.Malaysia?"booking.question.whatsapp.title":"booking.question.zalo.title",defaultMessage:w===g.L.Malaysia?"Whatsapp":"Zalo"}),size:"lg",value:null===l||void 0===l?void 0:l.phone,disabled:w===g.L.Malaysia?null===l||void 0===l?void 0:l.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,c.Y)("div",{className:"checkbox-field",children:(0,c.Y)(tn.Sc,{label:v({id:"booking.question.sameProfile.title",defaultMessage:"Same to the phone number in user profile"}),name:"checkbox",id:"check-same-profile",onChange:function(n){p(n)},checked:null===l||void 0===l?void 0:l.isSameProfile})})]}),w===g.L.Malaysia?(0,c.Y)(c.FK,{children:(0,c.FD)("div",{children:[(0,c.Y)(en.I,{placeholder:v({id:"booking.question.idPassport.placeholder",defaultMessage:"ID/Passport number"}),name:"idPassport",label:v({id:"booking.question.idPassport.title",defaultMessage:"ID/Passport number"}),size:"lg",value:(null===l||void 0===l?void 0:l.idPassport)||"",className:"input-item",onChange:function(n){C("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,c.Y)(u.T,{size:"n1",color:O.w.colors.red700,className:"errorLabel",children:null===s||void 0===s?void 0:s.idPassport})]})}):(0,c.Y)(en.I,{placeholder:v({id:"booking.question.addresso.title",defaultMessage:"Address"}),name:"address",label:v({id:"booking.question.addresso.title",defaultMessage:"Address"}),size:"lg",value:null===l||void 0===l?void 0:l.address,className:"input-item",onChange:function(n){d((function(e){return(0,r.A)((0,o.A)({},e),{address:n})}))}})]}),w!==g.L.Malaysia&&(0,c.FD)("div",{className:"survey-reason",children:[(0,c.FD)(u.T,{size:"s4",type:"semiBold",children:["2."," ",v({id:"booking.question.reason.title",defaultMessage:"What is the reason for your visit?"})]}),(0,c.Y)("textarea",{className:"reason-text-area",value:i,placeholder:v({id:"booking.question.reason.placeholder",defaultMessage:"Enter your reason..."}),onChange:function(n){C("reason"),m(n.target.value)},"data-is-error":!!s.reason,"data-event-category":"Care","data-event-action":"Booking Reason Click","data-event-label":"https://".concat(h.y[w]).concat(k.JpE).concat(x)},"reason"),(null===s||void 0===s?void 0:s.reason)&&(0,c.Y)(u.T,{size:"n1",color:O.w.colors.red700,className:"errorLabel",children:null===s||void 0===s?void 0:s.reason})]})]})]})},un=t(39372),pn=t(89902),fn=t(58665),hn=t(90206),gn=function(n){var e=n.patientInfo,t=n.familyInfo,i=n.bookingPatientFor,o=n.chosenSubPatientIndex,r=n.setTypePatient,l=n.typePatient,d=n.reason,f=n.typeOfPatient,h=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,Y=n.setErrorMessage,I=n.setReason,E=(0,y.A)().formatMessage,D=(0,A.$)().locale,N=(0,s.useState)(!1),P=N[0],F=N[1],B=[{label:E({id:"booking.patientType.myself",defaultMessage:"Myself"}),value:k.mCf.USER}].concat((0,a.A)(T.GK.includes(D)?[]:[{label:E({id:"booking.patientType.another",defaultMessage:"Another Patient"}),value:k.mCf.FAMILY}]));return(0,c.FD)(j.tJ,{children:[(0,c.Y)(z.H,{tag:"h6",color:O.w.colors.secondaryBase,className:"heading-title",children:E({id:"booking.target.patient.patientInfo",defaultMessage:"Patient's info"})}),(0,c.Y)("div",{children:E({id:"booking.target.patient.title",defaultMessage:"You're booking for"})}),(0,c.Y)(S.R,{id:"booking-patient-type",type:"circle",size:"small",direction:"horizontal",className:"radio-btn",options:B,value:i,onChange:function(n){return b(n)}}),e?i===k.mCf.USER&&e?(0,c.Y)(R.A,{patientInfo:e}):i===k.mCf.FAMILY&&t?(0,c.Y)(un.tp,{children:t.length>0?(0,c.FD)(c.FK,{children:[t.map((function(n,e){return(0,c.Y)(nn,{information:n,isChosen:e===o,onClick:function(){return w(e)},onEditFamilyProfile:C,onDeleteFamilyProfile:M},n.id)})),t.lengthNumber(p)}),[p,f]),on=(0,s.useMemo)((function(){return T===k.vne.RANGE&&!Y}),[Y,T]),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,bn.j)(nn,(function(){X(!1)}));return(0,c.FD)(j.tJ,{className:"booking-summary--block ".concat(R),children:[(0,c.Y)(z.H,{tag:"h6",color:"#284A75",className:"heading-title",children:J({id:"booking.target.ticket.title",defaultMessage:"Your Appointment"})}),(0,c.FD)(Dn,{children:[(0,c.FD)(Nn,{className:H&&Y?"items-start":"",children:[(0,c.Y)("div",{className:"avatar bg-img-500",children:(0,c.Y)("img",{src:(0,m.wW)(e,"".concat(k.JpE,"/images/avatar.jpg")),alt:"Avatar"})}),(0,c.FD)("div",{children:[(0,c.Y)(u.T,{size:"p1",className:"name pr-[16px]",type:"semiBold",children:t}),H&&(0,c.Y)(u.T,{size:"xs",className:"specialties pr-[16px]",type:"regular",color:"#595959",children:H}),Y&&(0,c.Y)(Sn.A,{type:"telemedicine",showLabel:!0})]})]}),N&&(0,c.Y)(wn.A,{}),(0,c.FD)(Pn,{children:[(0,c.Y)(u.T,{size:"p4",className:"lable-info",children:J({id:"common.priceAndLocation.label",defaultMessage:"Price & location"})}),(0,c.FD)(Fn,{children:[V&&_&&(0,c.FD)(Bn,{children:[(0,c.Y)("div",{className:"logo",children:(0,c.Y)(Rn,{})}),(0,c.FD)("div",{className:"content-wrapper",children:[(0,c.FD)("div",{className:"content-label",children:[J({id:"booking.target.timeSlot",defaultMessage:"Schedule"}),": ",V]}),(0,c.Y)("div",{className:"content-text",children:_})]})]}),(0,c.FD)(Bn,{children:[(0,c.Y)("div",{className:"logo",children:(0,c.Y)(Vn.A,{})}),(0,c.FD)("div",{className:"content-wrapper",children:[(0,c.Y)("div",{className:"content-label",children:i}),(0,c.FD)("div",{className:"content-text",children:[o,r&&a&&(0,c.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,c.Y)("img",{src:"".concat(k.JpE,"/svg/directions.svg"),alt:"Get direction"}),(0,c.Y)("span",{className:"direction-map-title",children:J({id:"hospital.directions",defaultMessage:"Direction"})})]})]})]})]}),!E&&(0,c.FD)(Bn,{children:[(0,c.Y)("div",{className:"logo",children:(0,c.Y)(Qn.A,{})}),(0,c.FD)("div",{className:"content-wrapper",children:[(0,c.Y)("div",{className:"content-label",children:J({id:"admin.services.price",defaultMessage:"Price"})}),(0,c.FD)("div",{className:"content-price",children:[(0,c.FD)("div",{className:"flex flex-wrap gap-[8px]",children:[(0,c.FD)("div",{className:"content-price-new-price",children:[(0,c.Y)("span",{className:"price",children:p?(0,b.UN)(p,q):""}),on&&(0,c.FD)(c.FK,{children:[(0,c.Y)("span",{children:"-"}),(0,c.Y)("span",{className:"price",children:g?(0,b.UN)(g,q):""})]})]}),tn&&(0,c.FD)("div",{className:"content-price-old-price",children:[(0,c.Y)("span",{className:"old-price",children:f?(0,b.UN)(f,q):""}),on&&(0,c.FD)(c.FK,{children:[(0,c.Y)("span",{className:"old-price-dash",children:"-"}),(0,c.Y)("span",{className:"old-price",children:h?(0,b.UN)(h,q):""})]})]})]}),(0,c.Y)("div",{className:"flex gap-[8px]",children:v.map((function(n,e){return 0===n.amount?null:(0,c.Y)(vn.m,{label:(0,c.FD)(zn,{children:[(0,c.FD)("div",{className:"flex gap-[4px] flex-col",children:[d&&(0,c.FD)("div",{className:"content-info",children:[(0,c.Y)("div",{className:"content-info-title",children:J({id:"price.at.clinic.text",defaultMessage:"Price at the clinic"})}),(0,c.Y)("div",{className:"content-info-text",children:d?(0,b.UN)(d,q):""})]}),(0,c.FD)("div",{className:"content-info",children:[(0,c.Y)("div",{className:"content-info-title",children:J({id:"price.sell.text",defaultMessage:"Price sell"})}),(0,c.FD)("div",{className:"content-info-text",children:[l?(0,b.UN)(l,q):"",on&&h&&(0,c.FD)(c.FK,{children:["\xa0","-","\xa0",(0,b.UN)(h,q)]})]})]}),(0,c.FD)("div",{className:"content-info",children:[(0,c.Y)("div",{className:"content-info-title",children:J({id:"voucher.internal.text",defaultMessage:"Voucher HelloBacsi"})}),(0,c.FD)("div",{className:"content-info-text content-info-price-discount",children:[on&&l&&p&&"Percent"===(null===Q||void 0===Q?void 0:Q.reward)&&(0,c.FD)(c.FK,{children:["-",(0,b.UN)(Number(l)-Number(p),q),"\xa0\xa0","-","\xa0"]}),"-",n.amount?(0,b.UN)(n.amount,q):""]})]})]}),(0,c.Y)("div",{className:"h-[1px] w-[100%] bg-[#E4E8EC]"}),(0,c.FD)("div",{className:"content-info",children:[(0,c.Y)("div",{className:"content-info-title",children:J({id:"total.price.sell.text",defaultMessage:"Total paid"})}),(0,c.FD)("div",{className:"content-info-text content-info-price-discount",children:[p?(0,b.UN)(p,q):"",on&&g&&(0,c.FD)(c.FK,{children:["\xa0","-","\xa0",(0,b.UN)(g,q)]})]})]})]}),styles:rn,withArrow:!0,opened:Z,children:(0,c.FD)("span",{className:"tag-discount",onClick:function(){return X((function(n){return!n}))},ref:nn,children:[(0,c.Y)(ne,{}),n.name,(0,c.Y)(Ln.A,{className:"arrow-icon"})]},e)},e)}))})]}),!B&&(0,c.FD)(On,{children:[(0,c.FD)("div",{className:"apply-voucher-wrapper ".concat((null===L||void 0===L?void 0:L.voucher)?"has-error-voucher":""),children:[(0,c.Y)(en.I,{placeholder:J({id:"doctor.detail.addVoucher",defaultMessage:"Add voucher"}),name:"voucher",label:"",size:"md",className:"apply-voucher-input",value:S,disabled:C,icon:A?C?(0,c.Y)(Tn.A,{}):(null===L||void 0===L?void 0:L.voucher)?(0,c.Y)(_n.A,{onClick:function(){return W&&W()}}):null:null,error:(null===L||void 0===L?void 0:L.voucher)?null===L||void 0===L?void 0:L.voucher:"",onChange:function(n){U&&U(n)}}),C?(0,c.Y)(mn.B,{onClick:function(){return W&&W()},leftIcon:(0,c.Y)($.A,{}),color:"#E3F2FF",className:"remove-voucher-btn",children:J({id:"admin.booking.removeCode",defaultMessage:"Remove code"})}):(0,c.Y)(mn.B,{onClick:function(){return G&&G()},children:J({id:"admin.booking.apply",defaultMessage:"Apply"})})]}),(0,c.Y)("div",{className:"error-message-voucher",children:null===L||void 0===L?void 0:L.voucher})]})]})]})]})]})]})]})},te=t(40568),ie=t(77480);function oe(){return oe=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)},ge=t(58065),me=new Set([k.JZw.VNPAY,k.JZw.MOMO,k.JZw.ATM_MOMO,k.JZw.VISA_MOMO,k.JZw.OY,k.JZw.IPAY88]),ve={cod:k.JZw.COD,cash:k.JZw.COD,vnpay:k.JZw.VNPAY,vn_pay:k.JZw.VNPAY,momo:k.JZw.MOMO,0:k.JZw.MOMO,atm_momo:k.JZw.ATM_MOMO,1:k.JZw.ATM_MOMO,visa_momo:k.JZw.VISA_MOMO,2:k.JZw.VISA_MOMO,oy:k.JZw.OY,ipay88:k.JZw.IPAY88,ipay:k.JZw.IPAY88},be=function(n){return null===n||void 0===n?"":String(n).trim().toLowerCase()},we=function(n){if(void 0===n||null===n)return null;if("boolean"===typeof n)return n;if("number"===typeof n)return 0!==n;if("string"===typeof n){var e=be(n);if(["1","true","yes","active","enabled","available"].includes(e))return!0;if(["0","false","no","inactive","disabled","unavailable"].includes(e))return!1}return null},Ae=function(n){var e=[n.is_active,n.enabled,n.is_enabled,n.isEnabled,n.available,n.is_available,n.isAvailable,n.status].map(we).filter((function(n){return null!==n}));return 0===e.length||e.every(Boolean)},ye=function(n,e){var t=ve[be(n)];return t||(ve[be(e)]||null)},xe=function(n){var e,t=be(null===n||void 0===n?void 0:n.provider),i=null!==(e=n.payment_via)&&void 0!==e?e:n.paymentVia,o=null!=i?String(i):null;if("momo"===t&&null!==o){var r,a=null!==(r=ve[o])&&void 0!==r?r:ve[0];return a&&me.has(a)?a:null}var l=ye(null===n||void 0===n?void 0:n.name,null===n||void 0===n?void 0:n.provider);return l&&me.has(l)?l:null},Ce=function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!n)return t;if(n.display_label)return n.display_label;if(n.title)return n.title;var i=n.description;if("string"===typeof i)return i||t;if(i&&"object"===typeof i){var o=i;return o[e]||o["en-US"]||o["ms-MY"]||t}return t},Me=function(n){return n.trim().toLowerCase().replace(/[^a-z0-9]+/g," ").replace(/\s+/g," ")},ke={MAYBANK2U:"maybank2u",MAYBANK2UEWALLET:"maybank2u",MBB0227:"maybank2u",CIMBCLICKS:"cimb",CIB0228:"cimb",RHB:"rhb",RHBBANK:"rhb",RHB0218:"rhb",PUBLICBANK:"publicbank",PBB0233:"publicbank",HONGLEONG:"hongleong",HONGLEONGBANK:"hongleong",HLB0224:"hongleong",AMBANK:"ambank",AMB0212:"ambank",UOB:"uob",UOB0226:"uob",BANKRAKYAT:"bankrakyat",BKRM0602:"bankrakyat",HSBC:"hsbc",HSBC0223:"hsbc",BSN:"bsn",BSMN0601:"bsn"},Ye=function(n,e){var t=n.trim(),i=t.toLowerCase();if(Object.values(ke).includes(i))return i;var o=ke[t.toUpperCase().replace(/[^A-Z0-9]/g,"")];if(o)return o;var r=Me(e||"");return r.includes("maybank")?"maybank2u":r.includes("cimb")?"cimb":r.includes("rhb")?"rhb":r.includes("public bank")?"publicbank":r.includes("hong leong")?"hongleong":r.includes("ambank")?"ambank":r.includes("uob")?"uob":r.includes("bank rakyat")?"bankrakyat":r.includes("hsbc")?"hsbc":r.includes("bank simpanan nasional")?"bsn":t},Ie=[{priority:0,matchers:["touch n go","touch n go ewallet","tng"]},{priority:1,matchers:["shopeepay","spay","spaylater"]},{priority:2,matchers:["credit debit card","credit card","debit card","card"]},{priority:3,matchers:["online banking","fpx","bank transfer"]}],Ee=function(n){var e=Me(n),t=!0,i=!1,o=void 0;try{for(var r,a=Ie[Symbol.iterator]();!(t=(r=a.next()).done);t=!0){var l=r.value;if(l.matchers.some((function(n){return e.includes(Me(n))})))return l.priority}}catch(c){i=!0,o=c}finally{try{t||null==a.return||a.return()}finally{if(i)throw o}}return Number.MAX_SAFE_INTEGER},De=function(n,e,t){var i=n.filter((function(n){return ye(null===n||void 0===n?void 0:n.name,null===n||void 0===n?void 0:n.provider)===k.JZw.IPAY88&&Ae(n)})).map((function(n,i){var o=void 0!==n.payment_via&&null!==n.payment_via?String(n.payment_via):void 0!==n.paymentVia&&null!==n.paymentVia?String(n.paymentVia):null;return{index:i,optionValue:o?"".concat(k.JZw.IPAY88,":").concat(o):k.JZw.IPAY88,label:n.title||Ce(n,e,t),paymentVia:o,logo:"string"===typeof n.logo&&n.logo.trim().length>0?n.logo:void 0}})).filter((function(n){return!!n.label}));if(!i.length)return[{optionValue:k.JZw.IPAY88,label:t,paymentVia:null}];var a=new Map;return i.forEach((function(n){a.has(n.optionValue)||a.set(n.optionValue,(0,r.A)((0,o.A)({},n),{priority:Ee(n.label)}))})),Array.from(a.values()).sort((function(n,e){return n.priority-e.priority||n.index-e.index})).map((function(n){return{optionValue:n.optionValue,label:n.label,paymentVia:n.paymentVia,logo:n.logo}}))},Ne=t(33364),Pe=t(46529),Fe=function(){return(0,c.FD)(ie.OJ,{children:[(0,c.Y)("div",{className:"content-info",children:(0,c.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,c.FD)("div",{className:"content-info",children:[(0,c.Y)("div",{className:"content-info-title",children:"Ch\u01b0\u01a1ng tr\xecnh \u01b0u \u0111\xe3i"}),(0,c.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,c.FD)("div",{className:"content-info",children:[(0,c.Y)("div",{className:"content-info-title",children:"\u0110i\u1ec1u ki\u1ec7n s\u1eed d\u1ee5ng"}),(0,c.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,c.FD)("div",{className:"content-info",children:[(0,c.Y)("div",{className:"content-info-title",children:"H\u1ea1n s\u1eed d\u1ee5ng"}),(0,c.Y)("div",{className:"content-info-text",children:"15/04/2024 - 31/05/2024"})]})]})},Be=function(){return(0,c.FD)(ie.OJ,{children:[(0,c.Y)("div",{className:"content-info",children:(0,c.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,c.FD)("div",{className:"content-info",children:[(0,c.Y)("div",{className:"content-info-title",children:"Ch\u01b0\u01a1ng tr\xecnh \u01b0u \u0111\xe3i"}),(0,c.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,c.FD)("div",{className:"content-info",children:[(0,c.Y)("div",{className:"content-info-title",children:"\u0110i\u1ec1u ki\u1ec7n s\u1eed d\u1ee5ng"}),(0,c.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,c.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,c.FD)("div",{className:"content-info",children:[(0,c.Y)("div",{className:"content-info-title",children:"H\u1ea1n s\u1eed d\u1ee5ng"}),(0,c.Y)("div",{className:"content-info-text",children:"12/04/2024 - 30/06/2024"})]})]})},Oe=function(n){var e=n.content,t=n.bgColor,i=n.iconColor,o=n.labelTootip,r=n.className,a=(0,s.useState)(!1),l=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,c.FD)(ie.ty,{className:r,bgColor:t,iconColor:i,children:[(0,c.Y)(Pe.A,{}),e,(0,c.Y)(vn.m,{label:o,styles:u,withArrow:!0,opened:l,children:(0,c.Y)("div",{onMouseOver:function(){d(!0)},onMouseOut:function(){d(!1)},className:"flex",children:(0,c.Y)(Ne.A,{onClick:function(n){n.stopPropagation(),n.preventDefault(),d(!0)}})})})]})},ze=t(24360);function Se(){return Se=Object.assign?Object.assign.bind():function(n){for(var e=1;e0)return(0,c.Y)(se.I,{src:n,alt:e||"Payment option logo",width:24,height:24,className:"w-full h-full object-contain"});if("vnpay"===String(i||"").toLowerCase())return(0,c.Y)(Ct,{});var o=void 0!==t?Number(t):NaN;return 1===o?(0,c.Y)(je,{}):2===o?(0,c.Y)(dt,{}):(0,c.Y)(Xe,{})};return(0,c.FD)(ie.ZU,{className:"payment-option-wrapper payment-option-wrapper-online ".concat(f?"payment-option-wrapper-active":""),children:[(0,c.FD)(ie.u$,{className:"payment-header-online",children:[(0,c.Y)("div",{className:"payment-logo",children:(0,c.Y)(tt,{})}),(0,c.FD)("div",{className:"payment-title-wrapper",children:[(0,c.Y)("div",{className:"payment-title",children:v({id:"payment.online.label",defaultMessage:"Online payment"})}),t.includes("CARE_VOUCHER")&&(0,c.FD)(ie.An,{background:"#e3f2ff",children:[(0,c.Y)("span",{className:"wrapper-icon-voucher",children:(0,c.Y)(Pe.A,{})}),(0,c.FD)("span",{children:["Hello B\xe1c S\u0129 gi\u1ea3m ngay"," ",(0,c.Y)("span",{className:"price-voucher",children:"100.000 \u0111"})," khi thanh to\xe1n online."," "]}),(0,c.Y)(kt,{})]})]})]}),(0,c.FD)(ie.ob,{children:[d.includes(k.JZw.IPAY88)&&D.map((function(n){var e,t,i=(null===N||void 0===N?void 0:N.optionValue)===n.optionValue&&n.paymentVia===String(k.R2U.ONLINE_BANKING)&&!!F.length&&!!B;return(0,c.FD)(s.Fragment,{children:[(0,c.Y)(ie.iF,{children:(0,c.FD)(ie.Uy,{className:"option-payment",onClick:function(){return e=n.optionValue,t=n.paymentVia||void 0,h&&h(k.JZw.IPAY88,{optionValue:e,paymentVia:t}),void(t===String(k.R2U.ONLINE_BANKING)&&Y(!0));var e,t},children:[(0,c.Y)("div",{className:"payment-logo",children:(e=n.logo,t=n.label,e?(0,c.Y)(se.I,{src:e,alt:t||"IPAY88 option logo",width:24,height:24,className:"w-full h-full object-contain"}):(0,c.Y)(at,{}))}),(0,c.Y)(en.R,{value:n.optionValue,label:n.label,"data-control":"radio",labelPosition:"left",className:"payment-option-radio"})]})}),i&&(0,c.Y)(ie.iF,{children:(0,c.FD)(ue.a,{className:"option-extend-info bg-neutral50 rounded-xl flex items-center gap-2 flex-col lg:flex-row p-3 lg:p-4",children:[(0,c.FD)(ue.a,{className:"flex gap-3 items-center flex-1 min-w-full w-full md:min-w-0 text-gray900 text-[13px] leading-5 tracking-[-0.3px] font-medium",children:[!!B.logo&&(0,c.Y)("img",{src:B.logo,className:"w-8 h-6"}),(0,c.Y)("p",{className:"m-0 flex-1 min-w-0",children:B.title})]}),(0,c.Y)(pe.c,{color:"rgba(0,0,0,0.1)",className:"border-[rgba(0,0,0,0.1)] border-[0.7px] w-full lg:hidden"}),(0,c.FD)(en.b,{onClick:function(){return Y(!0)},className:"flex items-center text-primary600 !text-[13px] !leading-5 tracking-[-0.3px] cursor-pointer",children:[v({id:"vaccination.payment.change_method",defaultMessage:"Change method"}),(0,c.Y)(de.A,{size:"1em",color:"currentColor"})]})]})})]},n.optionValue)})),O.map((function(n,e){var i,o=n.paymentMethodKey===k.JZw.MOMO&&(void 0===n.paymentVia||"0"===String(n.paymentVia))&&t.length>0,r="vnpay"===String(n.item.provider||"").toLowerCase();return(0,c.FD)(ie.iF,{onClick:function(){return void 0!==n.paymentVia?null===h||void 0===h?void 0:h(n.paymentMethodKey,{optionValue:n.optionValue,paymentVia:n.paymentVia}):E(n.paymentMethodKey)},children:[(0,c.FD)(ie.Uy,{className:"option-payment",children:[(0,c.Y)("div",{className:"payment-logo",children:z(n.item.logo,n.item.title,null!==(i=n.item.payment_via)&&void 0!==i?i:n.item.paymentVia,n.item.provider)}),(0,c.Y)(en.R,{value:n.optionValue,label:(0,c.FD)(c.FK,{children:[(0,c.Y)("div",{children:n.item.title}),r&&t.includes(k.JZw.VNPAY)?(0,c.FD)(ie.An,{background:"#FAE9E8",className:"vnpay-tag",children:[(0,c.Y)("span",{className:"wrapper-icon-voucher",children:(0,c.Y)(Pe.A,{})}),(0,c.FD)("span",{children:["Nh\u1eadp"," ",(0,c.Y)("span",{className:"price-voucher",children:k.ex2.DEFAULT})," ","gi\u1ea3m \u0111\u1ebfn ",(0,c.Y)("span",{className:"price-voucher",children:"100.000 \u0111"})," ","khi thanh to\xe1n t\u1ea1i c\u1ed5ng VNPAY"]}),(0,c.FD)("span",{className:"copy-voucher-button",onClick:function(n){n.preventDefault(),I(k.ex2.DEFAULT)},children:[(0,c.Y)(He.A,{}),v({id:"vnpay.voucher.copy",defaultMessage:"Copy code"})]})]}):o&&!A?(0,c.FD)("div",{className:"flex gap-[4px] flex-wrap",children:[t.includes(k.T8A.MOMO100K)&&(0,c.Y)(Oe,{bgColor:"#FDF1F6",iconColor:"#A50064",labelTootip:(0,c.Y)(Fe,{}),content:(0,c.Y)(ge.A,{id:"booking.discount.amount.text",defaultMessage:"Extra discount gift cards {amount}",tagName:"p",values:{span:m,amount:"100.000 \u0111"}})}),t.includes(k.T8A.MOMO300K)&&(0,c.Y)(Oe,{bgColor:"#FDF1F6",iconColor:"#A50064",labelTootip:(0,c.Y)(Be,{}),content:(0,c.Y)(ge.A,{id:"booking.discount.amount.text1",defaultMessage:"C\u01a1 h\u1ed9i nh\u1eadn qu\xe0 tr\u1ecb gi\xe1 {amount}",tagName:"p",values:{span:m,amount:"300.000 \u0111"}})})]}):null]}),"data-control":"radio",labelPosition:"left",className:"payment-option-radio"})]}),o&&A&&(0,c.FD)("div",{className:"flex gap-[4px] flex-wrap",children:[t.includes(k.T8A.MOMO100K)&&(0,c.Y)(Oe,{bgColor:"#FDF1F6",iconColor:"#A50064",labelTootip:(0,c.Y)(Fe,{}),content:(0,c.Y)(ge.A,{id:"booking.discount.amount.text",defaultMessage:"Extra discount gift cards {amount}",tagName:"p",values:{span:m,amount:"100.000 \u0111"}})}),t.includes(k.T8A.MOMO300K)&&(0,c.Y)(Oe,{bgColor:"#FDF1F6",iconColor:"#A50064",labelTootip:(0,c.Y)(Be,{}),content:(0,c.Y)(ge.A,{id:"booking.discount.amount.text1",defaultMessage:"C\u01a1 h\u1ed9i nh\u1eadn qu\xe0 tr\u1ecb gi\xe1 {amount}",tagName:"p",values:{span:m,amount:"300.000 \u0111"}})})]})]},"gateway-".concat(e,"-").concat(n.optionValue))})),d.includes(k.JZw.OY)&&(0,c.Y)(ie.iF,{onClick:function(){return E(k.JZw.OY)},children:(0,c.FD)(ie.Uy,{className:"option-payment",children:[(0,c.Y)("div",{className:"payment-logo",children:(0,c.Y)(Xe,{})}),(0,c.Y)(en.R,{value:k.JZw.OY,label:"Payment with OY","data-control":"radio",labelPosition:"left",className:"payment-option-radio"})]})})]}),(0,c.Y)(ze.R,{open:M,onOpen:function(n){return Y(n)},options:F,value:p||"",itemRender:function(n){return(0,c.FD)(ue.a,{className:"flex gap-3 items-center flex-1 min-w-full w-full md:min-w-0 text-gray900 text-[13px] leading-5 tracking-[-0.3px] font-medium",children:[!!n.logo&&(0,c.Y)("img",{src:String(n.logo),className:"w-8 h-6"}),(0,c.Y)("p",{className:"m-0 flex-1 min-w-0",children:n.label})]})},onChange:function(n){Y(!1),null===g||void 0===g||g("".concat(n))}})]})},It=function(n){var e=n.selectedPayment,t=n.selectedPaymentOption,i=n.selectedIpay88SubPaymentMethodCode,o=n.isLoading,r=void 0!==o&&o,a=n.errorMessage,l=n.methodVouchers,d=void 0===l?[]:l,u=n.paymentMethods,p=void 0===u?[]:u,f=n.locale,g=n.allowPaymentMethods,m=n.hideDescriptionMethods,v=void 0===m?[]:m,b=n.reservationBooking,w=void 0!==b&&b,x=n.disablePaymentBtn,M=void 0!==x&&x,Y=n.handleChangePaymentMethod,I=n.handleChangeIpay88SubPaymentMethod,E=n.handleClickConfirmBooking,D=(0,y.A)().formatMessage,N=(0,C.d)().isMobile,P=(0,A.$)(),F=P.asPath,B=P.locale||f||"vi-VN",S=(0,s.useMemo)((function(){return w?D({id:"reservation.bookingCard.proceedConfirm",defaultMessage:"Complete your reservation"}):e&&e===k.JZw.COD?D({id:"bookingCard.proceedConfirm",defaultMessage:"Proceed to Confirm"}):D({id:"bookingCard.proceedPayment",defaultMessage:"Proceed to Payment"})}),[e,w]),T=(0,s.useMemo)((function(){return!(g.length<1)&&g.some((function(n){return k.lE6.includes(n)}))}),[g]);return g.length<1||"id-ID"===B?(0,c.Y)(ie.wL,{className:"text-right",children:(0,c.Y)(mn.B,{className:"".concat(N?"w-[100%]":""),onClick:E,loading:r,"data-event-category":"Care","data-event-action":"Payment Click","data-event-label":"https://".concat(h.y[B]).concat(k.JpE).concat(F),children:S})}):(0,c.FD)(j.tJ,{children:[(0,c.Y)(z.H,{tag:"h6",color:O.w.colors.secondaryBase,className:"heading-title",children:D({id:"booking.paymentMethod",defaultMessage:"Payment method"})}),(0,c.FD)(en.R.Group,{withAsterisk:!0,className:"group-radio-payment-method ".concat((null===a||void 0===a?void 0:a.paymentMethod)?"has-error":""),size:"sm",value:t||String(e),onChange:function(n){if(n){if(n.startsWith("".concat(k.JZw.IPAY88,":"))){var e=n.split(":")[1]||"";return void Y(k.JZw.IPAY88,{optionValue:n,paymentVia:e})}var t=(0,te.A)(n.split(":"),2),i=t[0],o=t[1];if(void 0!==o&&k.lE6.includes(i))return void Y(i,{optionValue:n,paymentVia:o});Y(n,{optionValue:n})}},children:[T&&(0,c.Y)(Yt,{methodVouchers:d,paymentMethods:p,locale:B,allowPaymentMethods:g,selectedPaymentOption:t,selectedIpay88SubPaymentMethodCode:i,isActive:!!e&&k.lE6.includes(e),onClickChangeOption:function(n,e){n&&Y(n,e)},onChangeIpay88SubPaymentMethod:I}),g.includes(k.JZw.COD)&&(0,c.Y)(ce,{isActive:e===k.JZw.COD,hideDescription:v.includes(k.JZw.COD),onClickChangeOption:function(n){n&&Y(n,{optionValue:n})}})]}),(null===a||void 0===a?void 0:a.paymentMethod)&&(0,c.Y)(ie.f,{children:D({id:"required.paymentMethod.message",defaultMessage:"Please select a payment method to continue"})}),(0,c.Y)(ie.wL,{className:"text-right",children:(0,c.Y)(mn.B,{className:"".concat(N?"w-[100%]":""),onClick:E,loading:r,"data-event-category":"Care","data-event-action":"Payment Click","data-event-label":"https://".concat(h.y[B]).concat(k.JpE).concat(F),disabled:M,children:S})})]})},Et=function(n){var e,t,o=n.familyInfo,r=n.patientInfo,d=n.doctorInfo,u=n.paymentMethods,p=n.serviceInfo,f=n.chosenSubPatientIndex,h=n.bookingPatientFor,g=n.isTelemedicine,w=n.selectedPayment,A=n.selectedPaymentOption,x=n.selectedIpay88SubPaymentMethodCode,M=n.isLoading,Y=n.typePatient,I=n.reason,E=n.bookingPatientInfo,D=n.allowPaymentMethods,O=n.errorMessage,z=n.slotInfo,S=n.reservationBooking,T=void 0!==S&&S,L=n.isValidTanganil,H=void 0!==L&&L,R=n.setBookingPatientInfo,_=n.handleCheckSameProfile,V=n.setTypePatient,Q=n.setErrorMessage,U=n.setReason,G=n.setChosenSubPatientIndex,W=n.setBookingPatientFor,J=n.onAddFamilyProfile,q=n.onEditFamilyProfile,K=n.onDeleteFamilyProfile,Z=n.onChangePaymentMethod,X=n.onChangeIpay88SubPaymentMethod,$=n.handleClickConfirmButton,nn=n.setVoucherInfor,en=n.voucherInfor,tn=(0,F.useRouter)(),on=(0,y.A)().formatMessage,rn=(0,C.d)().isMobile,an=tn.locale,ln=(0,s.useState)(""),cn=ln[0],sn=ln[1],dn=(0,s.useState)(!1),un=dn[0],pn=dn[1],fn=(0,s.useState)(!1),hn=fn[0],mn=fn[1],vn=(0,s.useState)({}),bn=vn[0],wn=vn[1],An=(0,s.useState)([k.JZw.VNPAY]),yn=An[0],xn=An[1],Cn=p?null===p||void 0===p?void 0:p.price:g?null===d||void 0===d?void 0:d.telemedicineFee:null===d||void 0===d?void 0:d.price,Mn=p?null===p||void 0===p?void 0:p.priceTo:g?"":null===d||void 0===d?void 0:d.priceTo,kn=[{label:on({id:"booking.question.newPatient",defaultMessage:"New Patient"}),value:"new"},{label:on({id:"booking.question.existingPatient",defaultMessage:"Existing Patient"}),value:"existing"}],Yn=(0,m.wW)(z,{}),In=Yn.slot,En=Yn.date,Dn=En&&(0,N.A)(En,k.cuM,new Date),Nn=Dn&&(0,P.A)(Dn,k.ith,{locale:B.tV[an]}),Pn="".concat(null===In||void 0===In||null===(e=In.started)||void 0===e?void 0:e.substring(0,5)," - ").concat(null===In||void 0===In||null===(t=In.ended)||void 0===t?void 0:t.substring(0,5)),Fn=(0,s.useMemo)((function(){var n,e,t,i,o,r,a,l;return p?{name:(0,m.wW)(null===p||void 0===p?void 0:p.name,""),logo:(0,m.wW)(null===p||void 0===p?void 0:p.logoService,""),subName:(0,m.wW)(null===p||void 0===p||null===(n=p.hospitalBranch)||void 0===n?void 0:n.name,""),address:(0,m.wW)(null===p||void 0===p||null===(e=p.hospitalBranch)||void 0===e?void 0:e.address,""),latitude:(0,m.wW)(null===p||void 0===p||null===(t=p.hospitalBranch)||void 0===t?void 0:t.latitude,""),longitude:(0,m.wW)(null===p||void 0===p||null===(i=p.hospitalBranch)||void 0===i?void 0:i.longitude,"")}:d?{name:(0,m.wW)(null===d||void 0===d?void 0:d.name,""),logo:(0,m.wW)(null===d||void 0===d?void 0:d.avatar,""),subName:(0,m.wW)(null===d||void 0===d||null===(o=d.hospital)||void 0===o?void 0:o.name,""),address:(0,m.wW)(null===d||void 0===d||null===(r=d.hospital)||void 0===r?void 0:r.address,""),latitude:(0,m.wW)(null===d||void 0===d||null===(a=d.hospital)||void 0===a?void 0:a.latitude,""),longitude:(0,m.wW)(null===d||void 0===d||null===(l=d.hospital)||void 0===l?void 0:l.longitude,"")}:{name:"",logo:"",subName:"",address:"",latitude:"",longitude:""}}),[d,p]),Bn=(0,s.useMemo)((function(){if(0===Number(Cn)||!Cn)return"0";if(en){if("Percent"===en.reward){var n=(null===en||void 0===en?void 0:en.reward_percent)||0;return Math.round(Number(Cn)*((100-n)/100))}return"Amount"===en.reward&&Number(Cn)>Number(en.reward_amount)?Number(Cn)-Number(en.reward_amount):0}return Cn}),[en,p,d]),On=(0,s.useMemo)((function(){return H&&d?null===d||void 0===d?void 0:d.originalPrice:p&&(null===p||void 0===p?void 0:p.originalPrice)?null===p||void 0===p?void 0:p.originalPrice:en?Cn:""}),[p,d,en,H]),zn=(0,s.useMemo)((function(){if(0===Number(Mn))return"0";if(en){var n=(null===en||void 0===en?void 0:en.reward_percent)||0;return"Percent"===en.reward?Math.round(Number(Mn)*((100-n)/100)):"Amount"===en.reward&&Number(Mn)>Number(en.reward_amount)?Number(Mn)-Number(en.reward_amount):0}return Mn}),[d,p,en]),Sn=(0,s.useMemo)((function(){return p?p.priceType:null===d||void 0===d?void 0:d.priceType}),[d,p]),Tn=(0,s.useMemo)((function(){if(!en)return[];var n=(null===en||void 0===en?void 0:en.reward_percent)||0;return"Percent"===en.reward?3===Sn?[{amount:Math.round(Number(Mn)*(n/100)),name:en.campaign[0]?en.campaign[0].name:""}]:[{amount:Math.round(Number(Cn)*(n/100)),name:en.campaign[0]?en.campaign[0].name:""}]:"Amount"===en.reward?[{amount:Number((null===en||void 0===en?void 0:en.reward_amount)||0),name:en.campaign[0]?en.campaign[0].name:""}]:[]}),[en,Cn,Mn,Sn]),Ln=(0,s.useMemo)((function(){return d?d.specialties.map((function(n){return"string"===typeof n?n:n.name})).join(", "):""}),[d]),jn=(0,s.useMemo)((function(){return!H&&((null===d||void 0===d?void 0:d.isSiloam)||0===Number(Cn))}),[null===d||void 0===d?void 0:d.isSiloam,Cn,H]),Hn=function(){var n=(0,i.A)((function(){var n,e;return(0,l.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,5,,6]),d?[4,(0,b.T7)((0,b.er)(v.R.GET_VERIFY_DOCTOR_COUPON,{doctorId:(null===d||void 0===d?void 0:d.id)||"",code:cn}),"GET")]:[3,2];case 1:n=t.sent(),t.label=2;case 2:return p?[4,(0,b.px)((0,b.er)(v.R.GET_VERIFY_SERVICE_COUPON,{serviceId:(null===p||void 0===p?void 0:p.id)||"",code:cn}),"GET")]:[3,4];case 3:n=t.sent(),t.label=4;case 4:return mn(!0),n&&1===n._status?(pn(!0),wn({}),nn&&nn(n._data.coupon)):(pn(!1),wn({voucher:on({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)}}(),Rn=function(){pn(!1),sn(""),nn(null),mn(!1),wn({})};(0,s.useEffect)((function(){p&&Number(p.price)>=k.pvq&&xn((function(n){return(0,a.A)(n).concat([k.T8A.MOMO300K])}))}),[p]);var _n=function(){return(0,c.Y)(ee,{logo:Fn.logo,name:Fn.name,subName:Fn.subName,address:Fn.address,latitude:Fn.latitude,longitude:Fn.longitude,price:Cn,originalPrice:(null===p||void 0===p?void 0:p.originalPrice)||"",oldPrice:On||"",newPrice:Bn,newPriceTo:zn,oldPriceTo:Mn,priceType:Sn,specialties:Ln,isTelemedicine:g,bookingDate:Nn,timeSlot:Pn,discounts:Tn,isApplyVoucher:hn,voucherCode:cn,isValidVoucher:un,errors:bn,hidePriceBlock:jn,voucherInfor:en,reservationBooking:T,hideApplyVoucherBlock:H,setVoucherCode:sn,onApplyVoucher:Hn,handleRemoveVoucher:Rn})};return(0,c.Y)(j.AH,{className:"care-booking-container",children:(0,c.FD)(j.Ti,{children:[rn&&_n(),(0,c.Y)("div",{className:"patient-info",children:(0,c.Y)(gn,{setTypePatient:V,typePatient:Y,reason:I,typeOfPatient:kn,bookingPatientInfo:E,setBookingPatientInfo:R,handleCheckSameProfile:_,patientInfo:r,familyInfo:o,chosenSubPatientIndex:f,bookingPatientFor:h,isTelemedicine:g,setBookingPatientFor:W,setChosenSubPatientIndex:G,onAddFamilyProfile:J,onEditFamilyProfile:q,onDeleteFamilyProfile:K,setErrorMessage:Q,setReason:U,errorMessage:O})}),(0,c.FD)("div",{className:"booking-summary",children:[!rn&&_n(),(0,c.Y)(It,{selectedPayment:w,selectedPaymentOption:A,selectedIpay88SubPaymentMethodCode:x,isLoading:M,errorMessage:O,paymentMethods:u,locale:an,methodVouchers:yn,hideDescriptionMethods:[k.JZw.COD],allowPaymentMethods:D,reservationBooking:T,handleChangePaymentMethod:function(n,e){Z(n,e)},handleChangeIpay88SubPaymentMethod:X,handleClickConfirmBooking:function(){$()}})]})]})})},Dt=t(13493),Nt=function(n){var e=n.bookingCustomerInfor,t=n.customerAddress,d=n.patientInfo,u=n.errorMessage,p=n.serviceInfo,f=n.paymentMethods,h=n.selectedPayment,g=n.selectedPaymentOption,m=n.selectedIpay88SubPaymentMethodCode,A=n.isLoading,x=n.allowPaymentMethods,M=n.ignoreAddressBooking,Y=void 0!==M&&M,I=n.reservationBooking,E=void 0!==I&&I,N=n.isHealthcarePackage,P=n.voucherInfor,B=n.setBookingCustomerInfor,O=n.handleChangeAddress,z=n.handleClickConfirmButton,S=n.onChangePaymentMethod,T=n.onChangeIpay88SubPaymentMethod,L=n.setErrorMessage,H=n.setIsLoading,R=n.setVoucherInfor,_=(0,s.useContext)(D.B).state,V=(0,C.d)().isMobile,Q=(0,w.useAppContext)().pushNotifications,U=(0,y.A)().formatMessage,G=(0,F.useRouter)(),W=G.locale,J=G.query.utm_content,q=void 0===J?"":J,K=k.EmC[W].id,Z=(0,s.useState)(""),X=Z[0],$=Z[1],nn=(0,s.useState)(!1),en=nn[0],tn=nn[1],on=(0,s.useState)(!1),rn=on[0],an=on[1],ln=(0,s.useState)(!1),cn=ln[0],sn=ln[1],dn=(0,s.useState)([k.JZw.VNPAY]),un=dn[0],pn=dn[1],fn=k.KVY?k.czo:k.o8Z,hn=(0,s.useMemo)((function(){if(!(null===p||void 0===p?void 0:p.price))return"";if(P){if("Percent"===P.reward){var n=(null===P||void 0===P?void 0:P.reward_percent)||0;return Math.round(Number(null===p||void 0===p?void 0:p.price)*((100-n)/100))}return"Amount"===P.reward&&Number(null===p||void 0===p?void 0:p.price)>Number(P.reward_amount)?Number(null===p||void 0===p?void 0:p.price)-Number(P.reward_amount):0}return Number((null===p||void 0===p?void 0:p.price)||0)}),[p,P]),gn=(0,s.useMemo)((function(){if(!P||!(null===p||void 0===p?void 0:p.price))return[];var n=(null===P||void 0===P?void 0:P.reward_percent)||0;return"Percent"===P.reward?[{amount:Math.round(Number(null===p||void 0===p?void 0:p.price)*(n/100)),name:P.campaign[0]?P.campaign[0].name:""}]:"Amount"===P.reward?[{amount:Number((null===P||void 0===P?void 0:P.reward_amount)||0),name:P.campaign[0]?P.campaign[0].name:""}]:[]}),[P,null===p||void 0===p?void 0:p.price]),mn=(0,s.useMemo)((function(){return(null===p||void 0===p?void 0:p.originalPrice)?null===p||void 0===p?void 0:p.originalPrice:(null===p||void 0===p?void 0:p.price)||""}),[p]),vn=(0,s.useMemo)((function(){return!!(null===p||void 0===p?void 0:p.client)&&((null===p||void 0===p?void 0:p.client.name)===k.u3o.ROCHE&&N)}),[p,N]),bn=(0,s.useMemo)((function(){return!(null===_||void 0===_?void 0:_.isLoggedIn)&&vn}),[vn,_.isLoggedIn]),wn=(0,s.useMemo)((function(){return(null===_||void 0===_?void 0:_.isLoggedIn)&&vn}),[vn,N]),An=function(){tn(!1),$(""),R(null),an(!1);var n=(0,r.A)((0,o.A)({},u),{voucher:""});L(n)},yn=function(){var n=(0,i.A)((function(){var n,e;return(0,l.__generator)(this,(function(t){return n=function(){var n={voucher:X?"":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?(L({}),an(!0),Cn(),[2]):(L(e),[2])}))}));return function(){return n.apply(this,arguments)}}(),xn=function(){var n,e,t,i;return(0,c.Y)(ee,{logo:(null===p||void 0===p?void 0:p.logoService)||"",name:(null===p||void 0===p?void 0:p.name)||"",subName:(null===p||void 0===p||null===(n=p.hospitalBranch)||void 0===n?void 0:n.name)||"",address:(null===p||void 0===p||null===(e=p.hospitalBranch)||void 0===e?void 0:e.address)||"",latitude:(null===p||void 0===p||null===(t=p.hospitalBranch)||void 0===t?void 0:t.latitude)||"",longitude:(null===p||void 0===p||null===(i=p.hospitalBranch)||void 0===i?void 0:i.longitude)||"",price:null===p||void 0===p?void 0:p.price,originalPrice:null===p||void 0===p?void 0:p.originalPrice,oldPrice:mn||"",newPrice:hn||"",discounts:gn,isValidVoucher:en,isApplyVoucher:rn,errors:u,voucherCode:X,reservationBooking:E,voucherInfor:P,setVoucherCode:$,handleRemoveVoucher:An,onApplyVoucher:yn})},Cn=function(){var n=(0,i.A)((function(n){var e,t,i,a,c;return(0,l.__generator)(this,(function(l){switch(l.label){case 0:return(e=new FormData).append("phone",""),e.append("hospital_service",String(null===p||void 0===p?void 0:p.id)),e.append("code",n||X),[4,(0,b.px)((0,b.er)(v.R.POST_VERIFY_ROCHE_VOCHER),"POST",{data:e})];case 1:return(t=l.sent())?(t&&1===t._status?(tn(!0),a=(0,r.A)((0,o.A)({},u),{voucher:""}),L(a),R&&R(t._data.coupon)):(tn(!1),c=(0,r.A)((0,o.A)({},u),{phone:"",voucher:null===t||void 0===t?void 0:t._messages[0]}),L(c)),[2]):(tn(!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"})}),L(i),[2])}}))}));return function(e){return n.apply(this,arguments)}}(),Mn=function(){var n=(0,i.A)((function(){var n;return(0,l.__generator)(this,(function(e){switch(e.label){case 0:return sn(!0),[4,(0,b.px)((0,b.er)(v.R.GET_VERIFY_ROCHE_MOMO_VOUCHER),"GET")];case 1:return(n=e.sent())&&1===n._status&&pn((function(n){return[k.T8A.MOMO100K].concat((0,a.A)(n))})),[2]}}))}));return function(){return n.apply(this,arguments)}}(),kn=function(){var n=(0,i.A)((function(){var n,i,a,c,s,d,u,f,g,m,w,A,y,x,C,M,I,E,D,N,P,F,B,O;return(0,l.__generator)(this,(function(l){switch(l.label){case 0:return n=function(){var n={email:e.email?(0,b.tf)("email",e.email):"",phone:bn?(0,b.Tm)(String(e.phoneNumber),W):"",city:Y?"":(0,b.tf)("city",null===t||void 0===t?void 0:t.city),district:Y?"":(0,b.tf)("district",null===t||void 0===t?void 0:t.district),address:Y?"":(0,b.tf)("address",null===t||void 0===t?void 0:t.address),paymentMethod:h?"":"isRequired.payment"};return{errors:n,isValidForm:Object.values(n).every((function(n){return""===n}))}}(),i=n.errors,n.isValidForm?en&&X?(s=bn?e.phoneNumber:"".concat(null===_||void 0===_||null===(a=_.userInfo)||void 0===a?void 0:a.area_code).concat(null===_||void 0===_||null===(c=_.userInfo)||void 0===c?void 0:c.phone),(d=new FormData).append("phone",s),d.append("hospital_service",String(null===p||void 0===p?void 0:p.id)),d.append("code",X),[4,(0,b.px)((0,b.er)(v.R.POST_VERIFY_ROCHE_VOCHER),"POST",{data:d})]):[3,2]:(L((function(n){return(0,o.A)({},n,i)})),[2]);case 1:if((u=l.sent())&&-1===u._status)return L((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];l.label=2;case 2:return L({}),wn?(z(en?{voucherCode:X}:{}),[3,5]):[3,3];case 3:return H(!0),f=e.phoneNumber.replace(k.ExA[W],"0"),(g=new FormData).append("name",e.fullName),g.append("email",e.email),g.append("phone",String(f)),g.append("country_id",String(K)),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,b.px)((0,b.er)(v.R.POST_ROCHE_PATIENT),"POST",{headers:{accept:"application/json, text/plain, version=2.0.0"},data:g})];case 4:(m=l.sent())&&1===m._status?(B={hospital_service_id:(null===p||void 0===p?void 0:p.id)||"",booking_type:"service",coupon:en?X:"",paymentMethod:h,client:(null===p||void 0===p||null===(w=p.client)||void 0===w?void 0:w.name)||"",package:(null===p||void 0===p?void 0:p.package)||!1},O=(0,r.A)((0,o.A)({},null===(A=m._data)||void 0===A?void 0:A.patient),{address:(null===m||void 0===m||null===(y=m._data)||void 0===y||null===(x=y.shipping)||void 0===x?void 0:x.address)||"",city_id:(null===m||void 0===m||null===(C=m._data)||void 0===C||null===(M=C.shipping)||void 0===M?void 0:M.city_id)||"",district_id:(null===m||void 0===m||null===(I=m._data)||void 0===I||null===(E=I.shipping)||void 0===E?void 0:E.district_id)||"",shipping_id:(null===m||void 0===m||null===(D=m._data)||void 0===D||null===(N=D.shipping)||void 0===N?void 0:N.id)||""}),sessionStorage.setItem(k.RI6,JSON.stringify(O)),sessionStorage.setItem(k.DOc,JSON.stringify(B)),G.push("/booking/verify-otp/?patientId=".concat(null===(P=m._data)||void 0===P||null===(F=P.patient)||void 0===F?void 0:F.id))):Q({message:(null===m||void 0===m?void 0:m._messages)&&(null===m||void 0===m?void 0:m._messages[0]),type:"danger"}),H(!1),l.label=5;case 5:return[2]}}))}));return function(){return n.apply(this,arguments)}}();return(0,s.useEffect)((function(){q&&($(q),Cn(q))}),[q]),(0,s.useEffect)((function(){!cn&&p&&(Number(p.price)>=k.pvq&&pn((function(n){return(0,a.A)(n).concat([k.T8A.MOMO300K])})),Mn())}),[cn,p]),(0,c.Y)(j.AH,{className:"roche-booking-container",children:(0,c.FD)(j.Ti,{children:[V&&xn(),(0,c.Y)("div",{className:"patient-info",children:(0,c.Y)(Dt.A,{bookingCustomerInfor:e,errorMessage:u,customerAddress:t,ignoreAddressBooking:Y,patientInfo:d,addressDirection:"vertical",setBookingCustomerInfor:B,handleChangeAddress:O})}),(0,c.FD)("div",{className:"booking-summary",children:[!V&&xn(),(0,c.Y)(It,{selectedPayment:h,selectedPaymentOption:g,selectedIpay88SubPaymentMethodCode:m,isLoading:A,errorMessage:u,paymentMethods:f,locale:W,allowPaymentMethods:x,methodVouchers:un,reservationBooking:E,disablePaymentBtn:fn.includes(Number((null===p||void 0===p?void 0:p.id)||0)),handleChangePaymentMethod:function(n,e){S(n,e)},handleChangeIpay88SubPaymentMethod:T,handleClickConfirmBooking:kn})]})]})})},Pt=t(45844),Ft=t(72235),Bt=t(76013);function Ot(){return Ot=Object.assign?Object.assign.bind():function(n){for(var e=1;e0?C(i):d({message:u({id:"error.anErrorOccurred",defaultMessage:"An error occurred!"}),type:"danger"}),[2]}}))})),[e,t,o,r,c,d,u]),k=(0,s.useMemo)((function(){return!f&&(!!a||Boolean(e&&r))}),[e,r,a,f,c]);return(0,s.useEffect)((function(){k&&M()}),[k,t,o,e,r,c,M]),{paymentMethods:m,isFetchPaymentMethod:f,fetchPaymentMethods:M}}({doctorInfo:P,serviceInfo:N,slotInfo:Y,isTelemedicine:O,isHealthcarePackage:Boolean($)}),Zn=Kn.paymentMethods,Xn=Kn.isFetchPaymentMethod,$n=(0,s.useState)(null),ne=$n[0],ee=$n[1],te=(0,s.useState)(null),ie=te[0],oe=te[1],re=(0,s.useState)(null),ae=re[0],le=re[1],ce=(0,s.useState)(null),se=ce[0],de=ce[1],ue=(0,s.useState)({fullName:"",email:"",phoneNumber:""}),pe=ue[0],fe=ue[1],he=(0,s.useState)({city:null,district:null,address:""}),ge=he[0],me=he[1],ve=(0,s.useState)({}),be=ve[0],we=ve[1],Ce=(0,s.useMemo)((function(){return null===Y||void 0===Y?void 0:Y.id}),[Y]),Me=(0,s.useMemo)((function(){return!!(null===N||void 0===N?void 0:N.client)&&((null===N||void 0===N?void 0:N.client.name)===k.u3o.ROCHE&&$)}),[N,$]),ke=(0,s.useMemo)((function(){return!(null===H||void 0===H?void 0:H.isLoggedIn)&&Me}),[Me,H.isLoggedIn]),Ye=(0,s.useMemo)((function(){return(null===H||void 0===H?void 0:H.isLoggedIn)&&Me}),[Me,$]),Ie=(0,s.useMemo)((function(){return Me&&ne===k.JZw.COD}),[Me,ne]),Ee=(0,s.useMemo)((function(){return!!N&&(N.reservation&&Me)}),[N,Me]),Ne=(0,s.useMemo)((function(){return!!P&&("telemedicine"===(null===G||void 0===G?void 0:G.utm_campaign)&&O&&!Number(P.telemedicineFee))}),[P,G,O]),Pe=(0,s.useMemo)((function(){return!!N&&(k.KVY?!(!Gt.includes(N.id)&&!Ee)&&k.KVY:11872===N.id||Ee||!1)}),[N,Ee]),Fe=(0,s.useMemo)((function(){if(Ne)return[];if(P){if(O){var n=function(n){var e=new Set;return n.forEach((function(n){if(Ae(n)){var t=xe(n);t&&e.add(t)}})),Array.from(e)}(Zn);return n.length>0?n:W===g.L.Malaysia?[k.JZw.IPAY88]:W===g.L.Indonesia?[k.JZw.OY]:[k.JZw.VNPAY,k.JZw.MOMO,k.JZw.ATM_MOMO,k.JZw.VISA_MOMO]}return[k.JZw.COD]}return S&&W===g.L.Vietnam&&Boolean(null===N||void 0===N?void 0:N.togglePaymentOnline)&&!Ee?[k.JZw.VNPAY,k.JZw.MOMO,k.JZw.ATM_MOMO,k.JZw.VISA_MOMO,k.JZw.COD]:[k.JZw.COD]}),[P,Zn,N,Ee,Ne,W,O,S]);(0,s.useEffect)((function(){if(-1!==Nn){if(Sn>0){var n=setTimeout((function(){return Tn((function(n){return n-1}))}),1e3);return function(){return clearTimeout(n)}}0===Sn&&L()}}),[Nn,Sn]);var Be=function(){var n=(0,i.A)((function(){var n,e;return(0,l.__generator)(this,(function(t){switch(t.label){case 0:return[4,(0,b.T7)((0,b.er)(v.R.GET_PROFILE),"GET")];case 1:return 1!==(null===(n=t.sent())||void 0===n?void 0:n._status)&&R({type:E.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,Pt.W)(V)]}}))}));return function(){return n.apply(this,arguments)}}(),Oe=function(){var n=(0,i.A)((function(n,e,t,i){var o,r,a,c,s,d;return(0,l.__generator)(this,(function(l){switch(l.label){case 0:return gn||S||W===g.L.Malaysia?(delete yn.reason,xn(yn),wn(!0),o=function(){var n=window.location.origin||"";return n.includes("localhost")||n.includes("127.0.0.1")||n.includes("0.0.0.0")?"https://".concat(h.y[W]):n}(),r=(r="".concat(k.JpE).concat(U.replace(Z,""))).replace(X,""),G.bookingId?((a=new URLSearchParams(r)).set("bookingId",n),r=decodeURIComponent(null===a||void 0===a?void 0:a.toString())):r+="&bookingId=".concat(n),c=encodeURIComponent(o+r),s="",s=ne===k.JZw.ATM_MOMO||ne===k.JZw.MOMO||ne===k.JZw.VISA_MOMO?ne:"",[4,(0,b.T7)((0,b.er)(v.R.GET_BOOKING_PAYMENT_PAGE,{bookingId:n,returnUrl:"id-ID"!==W?c:"",payment_type:s,provider:e||"",payment_via:t||"",sub_payment_method_code:i||""}),"POST")]):(xn({reason:_({id:"booking.validate.reasonRequired",defaultMessage:"Please input the reason for your visit."})}),[2]);case 1:return(d=l.sent())?(1===d._status?(wn(!1),W===g.L.Indonesia?(kn(d._data.url),window.scrollTo({top:0,left:0,behavior:"smooth"})):Q.push(d._data.url)):(T(d._messages),wn(!1)),[2]):(T(),wn(!1),[2])}}))}));return function(e,t,i,o){return n.apply(this,arguments)}}(),ze=_n===k.mCf.USER?tn:null===an||void 0===an?void 0:an[Un],Se=function(){var n=(0,i.A)((function(n){var e,t,i,a,c,s,d,u,p,f,h,w,A,y,x,C,M,I,E,D,F,B,L,j,H,R,V,U,G,q,K,Z,X,$,en;return(0,l.__generator)(this,(function(l){switch(l.label){case 0:return i=Le(),a=i.errors,i.isValidForm?(xn({}),wn(!0),c=sn?"existing":pn,!Ye||Pe?[3,2]:((d=new FormData).append("country_id",String(J)),d.append("city_id",(null===ge||void 0===ge?void 0:ge.city)?String(ge.city):""),d.append("district_id",(null===ge||void 0===ge?void 0:ge.district)?String(ge.district):""),d.append("address",(null===ge||void 0===ge?void 0:ge.address)?null===ge||void 0===ge?void 0:ge.address:""),[4,(0,b.T7)((0,b.er)(v.R.POST_SHPPING_BOOKING),"POST",{data:d})])):(xn(a),[2]);case 1:if(1!==(null===(s=l.sent())||void 0===s?void 0:s._status))return nn({message:(null===s||void 0===s?void 0:s._messages[0])||_({id:"error.anErrorOccurred",defaultMessage:"An error occurred!"}),type:"danger"}),wn(!1),[2];l.label=2;case 2:return u=P?(0,m.Y)(P,Y,tn,null===an||void 0===an?void 0:an[Un],_n,O,c,gn):(0,m.JZ)(N,Y,tn,null===an||void 0===an?void 0:an[Un],_n,c,gn,S),p={},f="",h="",Me&&(null===n||void 0===n?void 0:n.voucherCode)?p={coupon:n.voucherCode}:Jn&&(p={coupon:Jn.code}),Ne&&(p={coupon:"TANGANIL"}),ne===k.JZw.ATM_MOMO||ne===k.JZw.MOMO||ne===k.JZw.VISA_MOMO?(f=k.Pcg.MOMO,h=null!==ne&&void 0!==ne?ne:""):f=ne?String(ne):"",w=ae||_e(),A=ne===k.JZw.IPAY88&&w===String(k.R2U.ONLINE_BANKING),y=A?null:function(n,e){var t;if(!e)return null;var i=n.find((function(n){return ye(null===n||void 0===n?void 0:n.name,null===n||void 0===n?void 0:n.provider)===k.JZw.IPAY88&&(void 0!==n.payment_via&&null!==n.payment_via?String(n.payment_via):void 0!==n.paymentVia&&null!==n.paymentVia?String(n.paymentVia):"")===e}));if(!(null===i||void 0===i||null===(t=i.sub_payment_methods)||void 0===t?void 0:t.length))return null;var o=i.sub_payment_methods.find((function(n){return!1!==(null===n||void 0===n?void 0:n.is_active)}));if(!o)return null;var r=o.code||o.bank_code;return r&&String(r).trim().length>0?String(r):void 0!==o.channel_id&&null!==o.channel_id&&String(o.channel_id).trim().length>0?String(o.channel_id):null}(Zn,w),x=se||y,A&&!x?(T([_({id:"vaccination.payment.online_bank_title",defaultMessage:"Select Your Bank"})]),wn(!1),[2]):(C=(0,r.A)((0,o.A)({},u,p),{payment_via:f,payment_type:h,zalo_whatsapp:Bn.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:Me?1:0,source:z?2:Ut}),W===g.L.Malaysia?(C.id_passport=Bn.idPassport,C.address_line=Bn.addressLine,C.city=Bn.city,C.country_code=Bn.country,C.zip_code=Bn.zipCode):C.nik_address=Bn.address,[4,(0,b.T7)((0,b.er)(v.R.POST_CREATE_BOOKING),"POST",{data:C,headers:{Accept:"application/json, text/plain, version=2.0.0"}})]);case 3:return(M=l.sent())?(1===M._status?(null===(I=M._data)||void 0===I||null===(E=I.booking)||void 0===E?void 0:E.payment_via)===k.JZw.COD||(null===(D=M._data)||void 0===D||null===(F=D.booking)||void 0===F?void 0:F.payment_via)===k.JZw.VNPAY&&!Number(null===(B=M._data)||void 0===B||null===(L=B.booking)||void 0===L?void 0:L.price)?z?Q.push("/widget/success/".concat(z.slug,"-").concat(z.id,"?bookingId=").concat(null===(j=M._data)||void 0===j||null===(H=j.booking)||void 0===H?void 0:H.id)):Q.push("/booking/success?bookingId=".concat(null===(R=M._data)||void 0===R||null===(V=R.booking)||void 0===V?void 0:V.id)):($=(null===(U=M._data)||void 0===U||null===(G=U.booking)||void 0===G?void 0:G.payment_via)===k.JZw.IPAY88?w||k.R2U.TOUCH_AND_GO:"",Oe(null===(q=M._data)||void 0===q||null===(K=q.booking)||void 0===K?void 0:K.id,null===(Z=M._data)||void 0===Z||null===(X=Z.booking)||void 0===X?void 0:X.payment_via,$,x||void 0)):(wn(!1),P&&P.isSiloam?(en="",Array.isArray(M._messages)&&(en=M._messages[0]),we({error_booking:en})):T(M._messages)),[2]):(T(),wn(!1),[2])}}))}));return function(e){return n.apply(this,arguments)}}(),Te=function(n){if(!n)return _({id:"booking.question.idPassport.required",defaultMessage:"Please enter your ID/Passport number"});return/^\d{6}-\d{2}-\d{4}$/.test(n)||/^[A-Za-z]\d{8}$/.test(n)?"":_({id:"booking.question.idPassport.invalid",defaultMessage:"Please enter a valid ID/Passport number (Format: XXXXXX-XX-XXXX for ID or A12345678 for Passport)"})},Le=function(){var n=(0,o.A)({reason:gn||S||W===g.L.Malaysia?"":_({id:"booking.validate.reasonRequired",defaultMessage:"Please input the reason for your visit."}),paymentMethod:ne?"":"isRequired.payment"},W===g.L.Malaysia&&{idPassport:Te(Bn.idPassport||"")});return{errors:n,isValidForm:Object.values(n).every((function(n){return""===n}))}},je=function(){var n=(0,i.A)((function(n){var e;return(0,l.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,Se(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)}}(),He=function(n,e){if(ee(n),oe((null===e||void 0===e?void 0:e.optionValue)||n),n!==k.JZw.IPAY88)le(null),de(null);else{var t=(null===e||void 0===e?void 0:e.paymentVia)||_e();le(t);var i=t===String(k.R2U.ONLINE_BANKING);de(i&&(null===e||void 0===e?void 0:e.subPaymentMethodCode)||null)}},Re=function(n){de(n)},_e=function(){return function(n){var e=De(n,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Touch n Go");if(!e.length)return null;var t=e.find((function(n){return null!==n.paymentVia}));return(null===t||void 0===t?void 0:t.paymentVia)||null}(Zn,W||"en-US",_({id:"touch_and_go.label",defaultMessage:"Touch n Go"}))};return(0,s.useEffect)((function(){wn(B)}),[B]),(0,s.useEffect)((function(){var n=function(){var n=(0,i.A)((function(){var n,e;return(0,l.__generator)(this,(function(t){switch(t.label){case 0:return[4,Be()];case 1:return(n=t.sent())?(on(n.patientInfo),ln(n.familyInfo),W===g.L.Malaysia&&(e=function(n){var e=n||{},t=e.bookingFor,i=void 0===t?_n:t,o=e.patientFamilyList,r=void 0===o?an:o,a=e.patientFamilyIndex,l=void 0===a?Un:a;return"family"===i&&Array.isArray(r)&&l>=0&&r[l]||null}({bookingFor:_n,patientFamilyList:n.familyInfo,patientFamilyIndex:Un}),function(n,e){var t=I()(e,"phone")||I()(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,l.__generator)(this,(function(r){switch(r.label){case 0:return i=(0,b.er)(v.R.GET_USER_BOOKING_INFO,{status:k.Ae.DONE,hospitalId:(null===P||void 0===P||null===(n=P.hospital)||void 0===n?void 0:n.id)||""}),i+=_n===k.mCf.FAMILY?"&patient_contact_id=".concat(null===ze||void 0===ze?void 0:ze.id):"&check_master_booked=1",[4,(0,b.T7)(i,"GET",{headers:{accept:"application/json, text/plain, version=2.0.0"}})];case 1:return o=r.sent(),dn((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)}}();H.isLoggedIn&&(n(),e())}),[_n,Un,H.isLoggedIn,W]),(0,s.useEffect)((function(){if(Mn&&Ce){var n=function(){var n=(0,i.A)((function(){var n,e,t,i,o,r,a;return(0,l.__generator)(this,(function(l){switch(l.label){case 0:return[4,(0,b.T7)((0,b.er)(v.R.GET_SCHEDULE_BOOKINGS,{scheduleId:Ce}),"GET")];case 1:if(!(n=l.sent()))return T(),kn(""),[2];if(1===n._status){if((null===(e=n._data)||void 0===e||null===(t=e.booking)||void 0===t?void 0:t.status)===k.Ae.PAYMENT_PENDING)return[2];(null===(i=n._data)||void 0===i||null===(o=i.booking)||void 0===o?void 0:o.status)===k.Ae.UPCOMING?Pn(null===n||void 0===n||null===(r=n._data)||void 0===r||null===(a=r.booking)||void 0===a?void 0:a.id):T(n._messages)}else T(n._messages),kn("");return[2]}}))}));return function(){return n.apply(this,arguments)}}(),e=setInterval(n,2e3);return function(){return clearInterval(e)}}}),[Ce,Mn]),(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"})}),[yn]),(0,s.useEffect)((function(){(0,i.A)((function(){var n,e,t,i,o,r;return(0,l.__generator)(this,(function(a){switch(a.label){case 0:return ke&&G.patientCacheId&&Xn?(n=sessionStorage.getItem(k.RI6),e=sessionStorage.getItem(k.DOc),n&&(t=JSON.parse(n),String(null===t||void 0===t?void 0:t.id)===G.patientCacheId&&(fe({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]/,k.pTf[W].prefix))||""}),me({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)&&(ee(null===o||void 0===o?void 0:o.paymentMethod),oe(null===o||void 0===o?void 0:o.paymentMethod)),o.coupon?[4,(0,b.px)((0,b.er)(v.R.GET_VERIFY_SERVICE_COUPON,{serviceId:(null===N||void 0===N?void 0:N.id)||"",code:o.coupon}),"GET")]:[3,2]):[3,2]):[2];case 1:(r=a.sent())&&1===r._status&&qn(r._data.coupon),a.label=2;case 2:return[2]}}))}))()}),[G.patientCacheId,ke,Xn,Zn]),(0,s.useEffect)((function(){if(ne===k.JZw.IPAY88){var n=ae||_e();!ae&&n?(le(n),oe("".concat(k.JZw.IPAY88,":").concat(n))):n||oe(k.JZw.IPAY88)}}),[ne,ae,se,Zn]),(0,s.useEffect)((function(){if(1===Fe.length){var n=Fe[0];if(n===k.JZw.IPAY88){var e=_e();He(n,{optionValue:e?"".concat(k.JZw.IPAY88,":").concat(e):k.JZw.IPAY88,paymentVia:e||void 0})}else He(n,{optionValue:n})}}),[Fe,Zn]),(0,s.useEffect)((function(){Ne&&He(k.JZw.COD,{optionValue:k.JZw.COD})}),[Ne]),(0,c.FD)(c.FK,{children:[!z&&(0,c.Y)("div",{children:F}),Mn?(0,c.FD)(Ft.Yl,{buttonVisible:-1!==Nn,children:[In&&(0,c.Y)(d.L,{className:"loading"}),(0,c.Y)("iframe",{width:"100%",height:"100%",id:"payment-iframe",src:Mn,title:"OY! Indonesia Payment Link",onLoad:function(){return En(!1)}}),-1!==Nn&&(0,c.FD)(Ft.Lw,{children:[(0,c.Y)(u.T,{size:"xs",children:_({id:"payment.redirection",defaultMessage:"Redirection in {seconds} seconds"},{seconds:Sn})}),(0,c.Y)(p.B,{size:"lg",color:"primary",onClick:L,children:_({id:"payment.viewBookingInfo",defaultMessage:"View booking information"})})]})]}):(0,c.Y)(Ft.fZ,{children:(0,c.FD)(f.C,{children:[(0,c.Y)(Ft.cd,{children:jn&&(0,c.FD)(Ft.HR,{children:[(0,c.Y)(Rt,{}),(0,c.Y)(u.T,{size:"p4",children:_({id:"booking.confirmation.alert",defaultMessage:"Please verify your information and confirm your booking."})}),(0,c.Y)(p.B,{color:"ghost",size:"md",icon:(0,c.Y)(_t.A,{width:16,height:16}),onClick:function(){return Hn(!1)}})]})}),Me?(0,c.Y)(Nt,{errorMessage:yn,customerAddress:ge,patientInfo:tn,bookingCustomerInfor:pe,serviceInfo:N,paymentMethods:Zn,allowPaymentMethods:Fe,selectedPayment:ne,selectedPaymentOption:ie,selectedIpay88SubPaymentMethodCode:se,isLoading:bn,ignoreAddressBooking:Pe,isHealthcarePackage:$,voucherInfor:Jn,reservationBooking:Ee,setBookingCustomerInfor:fe,handleChangeAddress:me,handleClickConfirmButton:je,onChangePaymentMethod:He,onChangeIpay88SubPaymentMethod:Re,setIsLoading:wn,setErrorMessage:xn,setVoucherInfor:qn}):(0,c.FD)(c.FK,{children:[(0,c.Y)(Et,{setTypePatient:fn,typePatient:pn,reason:gn,isLoading:bn,bookingPatientInfo:Bn,setBookingPatientInfo:On,handleCheckSameProfile:function(n){if(n)On((function(e){return(0,r.A)((0,o.A)({},e),{isSameProfile:!n})}));else{var e=tn;"family"===_n&&an&&an.length>0&&an.length>Un&&(e=an[Un]),On((function(t){return(0,r.A)((0,o.A)({},t),{phone:(null===e||void 0===e?void 0:e.phone)||(null===tn||void 0===tn?void 0:tn.phone)||"",isSameProfile:!n})}))}},patientInfo:tn,familyInfo:an,serviceInfo:N,doctorInfo:P,paymentMethods:Zn,chosenSubPatientIndex:Un,bookingPatientFor:_n,isTelemedicine:O,ignoreVoucher:Ie,allowPaymentMethods:Fe,selectedPayment:ne,selectedPaymentOption:ie,selectedIpay88SubPaymentMethodCode:se,errorMessage:yn,voucherInfor:Jn,slotInfo:Y,reservationBooking:Ee,isValidTanganil:Ne,onChangePaymentMethod:He,setBookingPatientFor:Vn,setChosenSubPatientIndex:Gn,onAddFamilyProfile:function(n){if(null!==an){var e=(0,a.A)(an).concat([n]);ln(e),Gn(0),window.scrollTo({top:0,behavior:"smooth"})}},onEditFamilyProfile:function(n){if(an){var e=(0,a.A)(an),t=e.find((function(e){return e.id===n.id}));if(!t)return;var i=e.indexOf(t);e[i]=n,ln(e)}},onDeleteFamilyProfile:function(n){if(an){var e=(0,a.A)(an),t=e.find((function(e){return e.id===n}));if(!t)return;var i=e.indexOf(t);e.splice(i,1),ln(e),i===Un&&Gn(0)}},handleClickConfirmButton:je,setErrorMessage:xn,setReason:mn,setVoucherInfor:qn,onChangeIpay88SubPaymentMethod:Re}),q&&K]}),(0,c.Y)(Bt.rI,{isMobile:!1,isShowing:!!(null===be||void 0===be?void 0:be.error_booking),isLoading:!1,closeIcon:(0,c.Y)("div",{onClick:function(){return we({})},children:(0,c.Y)(_t.A,{})}),buttonsProps:{buttonFillWidth:!0,buttonSize:"md",reverseButton:!0},onClose:function(){we({})},onAccept:function(){we({}),Q.reload()},onDeny:function(){we({})},title:(0,c.FD)("div",{children:[(0,c.Y)(Qt,{}),(0,c.Y)("div",{children:_({id:"error.anErrorSomething",defaultMessage:"There is something wrong..."})})]}),caption:null===be||void 0===be?void 0:be.error_booking,acceptButtonTitle:_({id:"common.reload.title",defaultMessage:"Reload"}),denyButtonTittle:_({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),l=t(47236),c=t(35291),s=t(2624),d=t(88491),u=t(6442),p=t(36259),f=t(25108),h=t(83725),g=t(84091),m=t(73419),v=t(40959),b=t(58065),w=t(85943),A=t(53868),y=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?h.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}})})]})]})},x=t(20680),C=t(27112),M=t(24537),k=t(15159),Y=t(27317);function I(){var n=(0,M.A)(["\n .heading {\n display: flex;\n margin-bottom: 16px;\n gap: 24px;\n "," {\n margin-bottom: 24px;\n }\n "," {\n flex-direction: column;\n gap: 8px;\n }\n\n label {\n font-size: 14px;\n line-height: 22px;\n width: 100% !important;\n }\n\n .heading-title {\n margin: 0;\n }\n }\n\n .noti-profile-roche {\n background: ",";\n padding: 12px;\n }\n"]);return I=function(){return n},n}function E(){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 E=function(){return n},n}var D=Y.Ay.div.withConfig({componentId:"sc-b6da95c8-0"})(I(),k.M.tdUp,k.M.mbDown,(function(n){return n.theme.colors.neutral50})),N=Y.Ay.div.withConfig({componentId:"sc-b6da95c8-1"})(E(),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),O=t(59850);function z(){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 z=function(){return n},n}function S(){var n=(0,M.A)(["\n display: flex;\n gap: 16px;\n\n "," {\n flex-direction: column;\n gap: 12px;\n }\n\n .address-select-field {\n flex: 1;\n }\n\n &.vertical-group-field {\n flex-direction: column;\n gap: 12px;\n }\n"]);return S=function(){return n},n}var T=Y.Ay.div.withConfig({componentId:"sc-a8e2b139-0"})(z(),(function(n){return n.theme.colors.red700}),(function(n){return n.theme.colors.gray400}),(function(n){return n.theme.colors.gray800})),L=Y.Ay.div.withConfig({componentId:"sc-a8e2b139-1"})(S(),k.M.mbDown),j=function(n){var e=n.settingValues,t=n.size,l=n.direction,c=n.errorMessage,d=n.onChangeAddress,p=(0,u.A)().formatMessage,f=(0,a.useState)([]),h=f[0],m=f[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)},y=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)(O.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)}}(),x=(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)(O.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)&&x()}),[null===e||void 0===e?void 0:e.city]),(0,a.useEffect)((function(){y()}),[]),(0,r.FD)(T,{children:[(0,r.FD)(L,{className:"".concat(l,"-group-field"),children:[(0,r.Y)(s.S,{placeholder:p({id:"common.city.label",defaultMessage:"Province/City"}),label:p({id:"common.city.label",defaultMessage:"Province/City"}),data:h,size:t,className:"address-select-field",searchable:!0,onChange:function(n){return A("city",n)},value:null===e||void 0===e?void 0:e.city,error:(null===c||void 0===c?void 0:c.city)?(0,r.Y)("div",{className:"error-message",children:p({id:null===c||void 0===c?void 0:c.city,defaultMessage:"City is required"})}):""}),(0,r.Y)(s.S,{placeholder:p({id:"common.district.label",defaultMessage:"District"}),label:p({id:"common.district.label",defaultMessage:"District"}),data:b,className:"address-select-field",size:t,searchable:!0,onChange:function(n){return A("district",n)},value:null===e||void 0===e?void 0:e.district,error:(null===c||void 0===c?void 0:c.district)?(0,r.Y)("div",{className:"error-message",children:p({id:null===c||void 0===c?void 0:c.district,defaultMessage:"District is required"})}):""})]}),(0,r.Y)(s.I,{placeholder:p({id:"common.detail.address.placeholder",defaultMessage:"S\u1ed1 nh\xe0, t\xean \u0111\u01b0\u1eddng, ph\u01b0\u1eddng x\xe3"}),label:p({id:"common.detail.address.label",defaultMessage:"Detail address"}),size:t,onChange:function(n){return A("address",n)},value:null===e||void 0===e?void 0:e.address,error:(null===c||void 0===c?void 0:c.address)?(0,r.Y)("div",{className:"error-message",children:p({id:null===c||void 0===c?void 0:c.address,defaultMessage:"Address is required"})}):""})]})},H=function(n){var e=n.errorMessage,t=n.bookingCustomerInfor,h=n.customerAddress,g=void 0===h?{city:null,district:null,address:""}:h,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,Y=void 0===k?function(){return null}:k,I=n.setBookingCustomerInfor,E=(0,a.useContext)(p.B).state,P=(0,d.d)().isMobile,F=(0,u.A)().formatMessage,B=E.isLoggedIn;return(0,r.Y)(f.tJ,{children:(0,r.FD)(D,{children:[(0,r.Y)("div",{className:"heading",children:(0,r.Y)(l.H,{tag:"h6",color:c.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)(x.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){I((0,o.A)((0,i.A)({},t),{fullName:n}))},required:!0,style:{minHeight:"auto",width:"auto"},error:(null===e||void 0===e?void 0:e.fullName)?(0,r.Y)("div",{className:"errorLabel",children:(0,r.Y)("p",{className:"errorMessage",children: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){I((0,o.A)((0,i.A)({},t),{email:n}))},required:!0,style:{minHeight:"auto",width:"auto"},error:(null===e||void 0===e?void 0:e.email)?(0,r.Y)("div",{className:"errorLabel",children:(0,r.Y)("p",{className:"errorMessage",children: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){I((0,o.A)((0,i.A)({},t),{phoneNumber:n}))},defaultCountry:"VN","data-control":"tel"}),(null===e||void 0===e?void 0:e.phone)&&(0,r.Y)("div",{className:"errorLabel",children:(0,r.Y)("p",{className:"errorMessage",children: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:Y,settingValues:g,errorMessage:e,direction:w})]})]}),!B&&M&&(0,r.Y)(y,{}),B&&!P&&(0,r.Y)(x.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(15159),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 l(){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 l=function(){return n},n}function c(){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 c=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"})(l(),o.M.tdUp,o.M.tdDown,o.M.mbDown,o.M.tdUp),u=r.Ay.div.withConfig({componentId:"sc-3480f0e0-2"})(c(),(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),l=t(53868);e.A=function(n){var e=n.className,t=(0,o.A)().formatMessage,c=function(){window.location.href="/".concat("https://id.hellobacsi.com/","user/profile")};return(0,i.FD)(a._,{className:e,children:[(0,i.Y)(l.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:c,className:"login-btn",children:n})}}})})]})]})}},91877:function(n,e,t){"use strict";t.d(e,{D2:function(){return y},JR:function(){return D},MT:function(){return k},cd:function(){return M},dl:function(){return E},kL:function(){return I},lC:function(){return P},qU:function(){return A},rj:function(){return N},un:function(){return Y},w2:function(){return x},xv:function(){return F},yL:function(){return C}});var i=t(24537),o=t(15159),r=t(27317);function a(){var n=(0,i.A)([""]);return a=function(){return n},n}function l(){var n=(0,i.A)(["\n border-radius: 8px;\n background: ",";\n padding: 12px;\n"]);return l=function(){return n},n}function c(){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 c=function(){return n},n}function s(){var n=(0,i.A)(["\n display: flex;\n flex-direction: column;\n gap: 2px;\n\n .gender-and-dob {\n display: flex;\n gap: 8px;\n align-items: center;\n\n .dot-divider {\n content: '';\n width: 4px;\n height: 4px;\n border-radius: 50%;\n background: ",";\n }\n }\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding-top: 12px;\n\n "," {\n padding-bottom: 12px;\n }\n"]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n display: flex;\n gap: 12px;\n align-items: center;\n\n .email-text {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n"]);return u=function(){return n},n}function p(){var n=(0,i.A)(["\n flex: 0 0 48px;\n display: flex;\n align-items: center;\n justify-content: center;\n\n svg {\n width: 18px;\n height: 18px;\n }\n"]);return p=function(){return n},n}function f(){var n=(0,i.A)(["\n background-color: white;\n padding: 8px;\n border-radius: 8px;\n border: 1px solid ",";\n\n &[data-is-chosen='true'] {\n border-color: ",";\n }\n"]);return f=function(){return n},n}function h(){var n=(0,i.A)(["\n display: flex;\n gap: 8px;\n "," {\n align-items: center;\n }\n\n div[data-type='circle'] {\n height: fit-content;\n & > input[type='radio'] {\n margin: 0;\n }\n }\n"]);return h=function(){return n},n}function g(){var n=(0,i.A)(["\n object-fit: cover;\n width: 48px;\n height: 48px;\n border-radius: 50%;\n cursor: pointer;\n"]);return g=function(){return n},n}function 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"})(l(),(function(n){return n.theme.colors.neutral50})),y=r.Ay.div.withConfig({componentId:"sc-579dfc5a-2"})(c(),(function(n){return n.theme.colors.gray100})),x=r.Ay.div.withConfig({componentId:"sc-579dfc5a-3"})(s(),(function(n){return n.theme.colors.gray600})),C=r.Ay.div.withConfig({componentId:"sc-579dfc5a-4"})(d(),o.M.mbDown),M=r.Ay.div.withConfig({componentId:"sc-579dfc5a-5"})(u()),k=r.Ay.div.withConfig({componentId:"sc-579dfc5a-6"})(p()),Y=r.Ay.div.withConfig({componentId:"sc-579dfc5a-7"})(f(),(function(n){return n.theme.colors.neutral50}),(function(n){return n.theme.colors.primaryBase})),I=r.Ay.div.withConfig({componentId:"sc-579dfc5a-8"})(h(),o.M.tdUp),E=r.Ay.img.withConfig({componentId:"sc-579dfc5a-9"})(g()),D=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(37376),a=t(35291),l=t(1050),c=t(40959),s=t(10297),d=t(6442),u=t(67722),p=t(91877),f=t(48103),h=t(52412);e.A=function(n){var e=n.patientInfo,t=n.className,g=(0,s.useRouter)().locale,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:c.S91[e.gender]||"gender.other",defaultMessage:"Other"}):""}),[e]);return(0,i.FD)(p.qU,{className:t,children:[(0,i.FD)(p.D2,{children:[(0,i.Y)(r.A,{className:"avatar",type:"rounded",size:"medium",avatarUrl:null===e||void 0===e?void 0:e.avatar,firstLetter:(null===e||void 0===e?void 0:e.name.length)?null===e||void 0===e?void 0:e.name.charAt(0).toUpperCase():"A",backgroundColor:a.w.colors.secondaryBase}),(0,i.FD)(p.w2,{children:[(0,i.Y)(l.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)(l.T,{color:a.w.colors.gray600,size:"p4",children:A}),(0,i.Y)("div",{className:"dot-divider"}),(0,i.Y)(l.T,{color:a.w.colors.gray600,size:"p4",children:w?w.toLocaleDateString(m):""})]})]})]}),(0,i.FD)(p.yL,{children:[(0,i.FD)(p.cd,{children:[(0,i.Y)(p.MT,{children:(0,i.Y)(h.A,{width:16,height:16})}),(0,i.Y)(l.T,{size:"p4",children:b})]}),(0,i.FD)(p.cd,{children:[(0,i.Y)(p.MT,{children:(0,i.Y)(f.A,{width:16,height:16})}),(0,i.Y)(l.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 x},OJ:function(){return I},Uy:function(){return y},ZU:function(){return v},f:function(){return M},iF:function(){return A},ob:function(){return w},ty:function(){return Y},u$:function(){return b},wL:function(){return C}});var i=t(24537),o=t(15159),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 img {\n max-width: 24px;\n max-height: 24px;\n object-fit: contain;\n }\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 l(){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 l=function(){return n},n}function c(){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 c=function(){return n},n}function s(){var n=(0,i.A)(["\n padding: 8px 12px 8px 0;\n cursor: pointer;\n border-bottom: 1px solid\n ",";\n\n "," {\n padding: 8px 8px 8px 0;\n }\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n display: flex;\n gap: 10px;\n"]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n padding: 3px 8px;\n border-radius: 4px;\n background: ",";\n font-size: 12px;\n line-height: 18px;\n font-weight: 400px;\n display: inline-block;\n align-items: center;\n gap: 4px;\n color: ",";\n\n "," {\n padding: 3px 6px 7px 6px;\n }\n\n &.vnpay-tag {\n svg {\n path {\n fill: ",";\n }\n }\n }\n\n .wrapper-icon-voucher {\n padding-left: 18px;\n position: relative;\n\n svg {\n position: absolute;\n left: 0;\n top: 0px;\n }\n }\n\n .price-voucher {\n font-weight: 600;\n color: ",";\n }\n\n .copy-voucher-button {\n color: ",";\n position: relative;\n padding-left: 18px;\n margin-left: 5px;\n cursor: pointer;\n font-weight: 400;\n\n svg {\n position: absolute;\n left: 0;\n top: 0px;\n width: 16px;\n height: 16px;\n path {\n fill: ",";\n }\n }\n }\n"]);return u=function(){return n},n}function p(){var n=(0,i.A)(["\n "," {\n button {\n width: 100%;\n }\n }\n"]);return p=function(){return n},n}function f(){var n=(0,i.A)(["\n color: ",";\n font-size: 13px;\n font-style: normal;\n font-weight: 400;\n line-height: 18px;\n"]);return f=function(){return n},n}function h(){var n=(0,i.A)(["\n border-radius: 3px;\n background: ",";\n padding: 4px 6px;\n color: ",";\n font-size: 12px;\n font-weight: 400;\n line-height: 18px;\n display: inline-block;\n\n .time-left {\n font-size: 14px;\n font-weight: 700;\n line-height: 22px;\n text-transform: uppercase;\n }\n"]);return h=function(){return n},n}function g(){var n=(0,i.A)(["\n display: inline-flex;\n align-items: center;\n background-color: ",";\n padding: 3px 8px;\n gap: 4px;\n border-radius: 4px;\n color: ",";\n font-size: 12px;\n font-weight: 400;\n line-height: 18px;\n\n .amount {\n font-weight: 700;\n }\n\n svg {\n path {\n fill: ",";\n }\n }\n"]);return g=function(){return n},n}function 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-4276563e-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-4276563e-1"})(l(),o.M.mbDown),w=r.Ay.div.withConfig({componentId:"sc-4276563e-2"})(c(),o.M.mbDown,o.M.mbDown),A=r.Ay.div.withConfig({componentId:"sc-4276563e-3"})(s(),(function(n){return n.theme.colors.neutral100}),o.M.mbDown),y=r.Ay.div.withConfig({componentId:"sc-4276563e-4"})(d()),x=r.Ay.div.withConfig({componentId:"sc-4276563e-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-4276563e-6"})(p(),o.M.mbDown),M=r.Ay.div.withConfig({componentId:"sc-4276563e-7"})(f(),(function(n){return n.theme.colors.red700})),k=r.Ay.span.withConfig({componentId:"sc-4276563e-8"})(h(),(function(n){return n.theme.colors.primaryBase}),(function(n){return n.theme.colors.white})),Y=r.Ay.div.withConfig({componentId:"sc-4276563e-9"})(g(),(function(n){return n.bgColor}),(function(n){return n.iconColor}),(function(n){return n.iconColor})),I=r.Ay.div.withConfig({componentId:"sc-4276563e-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 D}});var i=t(2445),o=t(6442),r=t(58065),a=t(24537),l=t(15159),c=t(27317);function s(){var n=(0,a.A)(["\n border-radius: 6px 0px 0px 6px;\n background: ",";\n display: flex;\n padding: 12px;\n flex-direction: column;\n gap: 12px;\n\n &.reservation-comfirn-page {\n border-radius: 6px 6px 6px 6px;\n .reservation-header {\n display: none;\n }\n\n .reservation-info-item {\n padding: 0;\n box-shadow: none;\n background: ",";\n gap: 16px;\n\n .reservation-logo {\n width: 24px;\n flex: 0 0 24px;\n height: 24px;\n background: transparent;\n }\n }\n }\n"]);return s=function(){return n},n}function d(){var n=(0,a.A)(["\n display: flex;\n gap: 8px;\n\n .reservation-title {\n color: ",";\n font-size: 16px;\n font-weight: 600;\n line-height: 24px;\n\n "," {\n font-size: 14px;\n line-height: 22px;\n }\n }\n"]);return d=function(){return n},n}function u(){var n=(0,a.A)(["\n display: flex;\n gap: 8px;\n border-radius: 8px;\n background: ",";\n padding: 12px;\n box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.04),\n 0px 0px 2px 0px rgba(0, 0, 0, 0.06), 0px 0px 1px 0px rgba(0, 0, 0, 0.04);\n\n .reservation-logo {\n border-radius: 64px;\n background: ",";\n width: 40px;\n flex: 0 0 40px;\n height: 40px;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n .reservation-text {\n color: ",";\n font-size: 14px;\n font-weight: 400;\n line-height: 22px;\n\n "," {\n font-size: 12px;\n line-height: 18px;\n }\n\n .text-bold {\n color: ",";\n font-weight: 700;\n }\n }\n"]);return u=function(){return n},n}var p,f,h,g,m,v,b=c.Ay.div.withConfig({componentId:"sc-6ac5bc89-0"})(s(),(function(n){return n.theme.colors.yellow50}),(function(n){return n.theme.colors.yellow50})),w=c.Ay.div.withConfig({componentId:"sc-6ac5bc89-1"})(d(),(function(n){return n.theme.colors.gray800}),l.M.mbDown),A=c.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}),l.M.mbDown,(function(n){return n.theme.colors.gray600})),y=t(73884);function x(){return x=Object.assign?Object.assign.bind():function(n){for(var e=1;eMonday - Friday (10:00 - 17:00) to assist in choosing the appropriate examination & testing time.",tagName:"p",values:{span:function(n){return(0,i.Y)("span",{className:"text-bold",children:n})}}})})]})]})}},45844:function(n,e,t){"use strict";t.d(e,{W:function(){return c}});var i=t(858),o=t(83776),r=t(74029),a=t(59850),l=t(84091),c=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,l.T7)((0,l.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 y},Oe:function(){return A},Oz:function(){return m},U7:function(){return C},Zg:function(){return b},eV:function(){return w},l:function(){return x},sg:function(){return v}});var i=t(24537),o=t(15159),r=t(53735),a=t(1050),l=t(27317);function c(){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 c=function(){return n},n}function s(){var n=(0,i.A)(["\n padding-left: 0;\n margin-bottom: 16px;\n margin-top: 16px;\n width: 100%;\n\n "," {\n margin-bottom: 24px;\n margin-top: 0;\n }\n\n p[data-size='sm'] {\n font-weight: 600;\n font-size: 14px;\n line-height: 22px;\n letter-spacing: -0.2px;\n }\n [data-is-tab-active] {\n cursor: default;\n }\n"]);return s=function(){return n},n}function d(){var n=(0,i.A)(["\n margin-top: 24px;\n &[data-is-booking-unavailable='true'] {\n display: flex;\n }\n\n "," {\n display: flex;\n width: 100%;\n margin-top: 24px;\n }\n\n "," {\n gap: 16px;\n }\n\n "," {\n gap: 32px;\n }\n\n margin-bottom: 100px;\n"]);return d=function(){return n},n}function u(){var n=(0,i.A)(["\n padding-left: 18px;\n li {\n list-style-type: disc;\n }\n"]);return u=function(){return n},n}function p(){var n=(0,i.A)(["\n margin-bottom: 24px;\n & > * {\n margin-top: 24px;\n }\n .working-hours {\n .week-working-time {\n max-width: 450px;\n .working-time {\n display: flex;\n margin-top: 8px;\n justify-content: space-between;\n .date {\n min-width: 100px;\n }\n .time {\n text-align: right;\n }\n }\n }\n }\n .accepted-payments {\n display: flex;\n gap: 16px;\n flex-wrap: wrap;\n }\n"]);return p=function(){return n},n}function f(){var n=(0,i.A)(["\n width: 100%;\n\n "," {\n ","\n }\n"]);return f=function(){return n},n}function h(){var n=(0,i.A)(["\n margin: 16px 0;\n"]);return h=function(){return n},n}function g(){var n=(0,i.A)(["\n max-height: 100%;\n position: relative;\n flex: 1;\n margin: 0.5rem 0;\n .ad-container {\n position: sticky;\n top: 80px;\n }\n"]);return g=function(){return n},n}var m=l.Ay.div.withConfig({componentId:"sc-f6aed7d5-0"})(c(),o.M.mbUp,o.M.mbUp),v=(0,l.Ay)(r.T).withConfig({componentId:"sc-f6aed7d5-1"})(s(),o.M.tdUp),b=l.Ay.div.withConfig({componentId:"sc-f6aed7d5-2"})(d(),o.M.mbUp,o.M.tdOnly,o.M.tdUp),w=l.Ay.ul.withConfig({componentId:"sc-f6aed7d5-3"})(u()),A=l.Ay.div.withConfig({componentId:"sc-f6aed7d5-4"})(p()),y=l.Ay.section.withConfig({componentId:"sc-f6aed7d5-5"})(f(),o.M.tdUp,(function(n){return n.isRightPanelActive&&"max-width: calc(100% - (368px + 32px))"})),x=(0,l.Ay)(a.T).withConfig({componentId:"sc-f6aed7d5-6"})(h()),C=l.Ay.div.withConfig({componentId:"sc-f6aed7d5-7"})(g())},27401:function(n,e,t){"use strict";t.r(e),t.d(e,{MasterDetail:function(){return V}});var i,o,r=t(95586),a=t(38971),l=t(23329),c=t(1078),s=t(2445),d=t(73884),u=t.n(d),p=t(19599),f=t(47236),h=t(1050),g=t(95872),m=t(78979),v=t(84091),b=t(97183),w=t(48403),A=t(5793),y=t(7411),x=t(88491),C=t(73419),M=t(40959),k=t(28636),Y=t.n(k),I=t(87388),E=t.n(I),D=t(58065),N=t(80264),P=t(36259),F=t(39636),B=t(63419),O=t(40141),z=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,z.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)(O.L,{type:"hellocare"}),(0,s.Y)(S.A,{})]}),i&&(0,s.Y)(L.ny,{onClick:function(){return o(!1)}}),(0,s.Y)(L.E5,{"data-opened":i,children:(0,s.Y)(w.oR,{activePage:e,isMenuOpened:i,onCloseMobileMenu:function(n){return o(!n)}})})]})},H=t(8758);function R(){return R=Object.assign?Object.assign.bind():function(n){for(var e=1;e(.*)<\/title>/),i=" - Page ".concat(E," of ").concat(I),o=E&&1!==E&&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,l,c,s,d,u,p="".concat(q,"/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||p||""},"og:image"),(0,a.Y)("meta",{property:"og:image:secure_url",content:(null===(l=v.openGraph)||void 0===l?void 0:l.image)||S||p},"og:image:secure_url"),(0,a.Y)("meta",{property:"og:image:width",content:(null===(c=v.openGraph)||void 0===c?void 0:c.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,E,W,I,A,q]),X="".concat(q,"/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"}),R.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:J}),(0,a.Y)("meta",{name:"ahrefs-site-verification",content:"46e7521a2b89a1013149c4685bbe02a1d36a4732fef98655142b829bc87cba4d"}),!Z&&(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)}),!U&&(0,a.Y)("link",{rel:"canonical",href:"".concat(q).concat(W)}),(0,a.Y)("meta",{name:"description",content:z||(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)||z}),(0,a.Y)("meta",{property:"og:url",content:"".concat(q).concat(W)}),(0,a.Y)("meta",{property:"og:site_name",content:"".concat(q)}),(0,a.Y)("meta",{property:"og:image",content:(null===(c=v.openGraph)||void 0===c?void 0:c.image)||S||X||""}),(0,a.Y)("meta",{property:"og:image:secure_url",content:(null===(s=v.openGraph)||void 0===s?void 0:s.image)||S||X}),(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===(p=v.openGraph)||void 0===p?void 0:p.imageHeight)&&String(null===(f=v.openGraph)||void 0===f?void 0:f.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===(h=v.twitter)||void 0===h?void 0:h.title)||B}),(0,a.Y)("meta",{name:"twitter:description",content:z}),(0,a.Y)("meta",{name:"twitter:image",content:(null===(g=v.twitter)||void 0===g?void 0:g.image)||S})]}),b.EH[J].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(Z)&&Y?Z.filter((function(n){return"canonical"!==n.props.name&&"canonical"!==n.props.rel})):Z,Y&&(0,a.Y)("link",{rel:"canonical",href:Y}),!v.hasNoAmp&&"vi-VN"!==A&&(0,a.Y)("link",{rel:"amphtml",href:"".concat(q).concat(W).concat(K,"?amp=1")}),k?(0,a.Y)("script",{dangerouslySetInnerHTML:{__html:"window.dataLayer = window.dataLayer || []; window.dataLayer.push({'userID': '".concat(k,"'});")}}):null]})},O=t(37639);function z(){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 z=function(){return n},n}var S=(0,k.Ay)(c.N).withConfig({componentId:"sc-a13cf88d-0"})(z()),T=function(n){var e=n.title,t=n.description,r=void 0===t?"":t,w=n.image,y=n.children,k=n.SEOData,I=void 0===k?{}:k,N=n.type,P=void 0===N?"website":N,F=n.isMobile,z=n.footerInfo,T=n.onTopBarAppears,L=n.schemaOrg,j=n.ssrNavMenu,H=n.sitewideBanner,R=(0,m.$)(),_=R.locale,V=R.query,Q=R.asPath,U=R.pathname,G=(0,l.useContext)(M.B),W=G.state,J=void 0===W?{}:W,q=G.dispatch,K=J.isMobileSsr,Z=(0,v.l)().isMobile,X=(0,g.E)(K||!!F,Z),$=(0,l.useState)({}),nn=$[0],en=$[1],tn=b.ElQ[_||"en-PH"].SITE_NAME_FORMATTED,on=[u.L.Vietnam,u.L.Malaysia].includes(_),rn=(0,l.useMemo)((function(){return{enableAppIntroPage:_===u.L.Vietnam,enableProfileFindMyBooking:b.oQ8.includes(_)&&X}}),[_,X]);return(0,l.useEffect)((function(){j||(0,c.g)(_).then(en)}),[_]),(0,l.useEffect)((function(){E&&E.update()}),[Q]),(0,a.FD)(a.FK,{children:[(0,a.Y)(B,{SEOData:(0,i.A)({SEOTitle:e,SEOImage:w,SEODescription:(0,Y.Yp)(r,b.ZCt),siteName:tn,seoType:P},I),seoCustom:!0,locale:_,routerPathname:U,routerQuery:V,nextHead:function(n){var e=n.children;return(0,a.FD)(A(),{children:[(0,a.Y)(D.H,{locale:_,includeFavicons:!1}),e,L&&(0,a.Y)(x(),{type:"application/ld+json",dangerouslySetInnerHTML:{__html:b.KVY?JSON.stringify(L):JSON.stringify(L,null,2)}})]})}}),(0,a.Y)(p.tH,{children:(0,a.Y)(S,{projectType:"care",activeMenuService:"care",isMobile:X,siteType:"helloSites",ssrMenuContent:j||nn,onLogout:function(){q({type:C.Q.LOGOUT,payload:{domain:"."+d.y[_]}})},locale:_,userState:(0,o.A)((0,i.A)({},J),{isMobileSsr:X,userInfo:J.userInfo?J.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)(f.F,{features:h.l,children:y}),(0,a.Y)(O.A,{})]}),z&&(0,a.Y)(p.tH,{children:(0,a.Y)(s.F,{type:"main",siteType:"helloSites",locale:_,basePath:b.JpE,footerInfo:z})})]})}},65004:function(n,e,t){"use strict";t.d(e,{Aj:function(){return y},Av:function(){return w},IM:function(){return M},PH:function(){return k},Py:function(){return A},af:function(){return I},fO:function(){return Y},qg:function(){return x},wL:function(){return C}});var i=t(24537),o=t(15159),r=t(67628),a=t(27317),l=t(90206);function c(){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 c=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 p(){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 p=function(){return n},n}function f(){var n=(0,i.A)(["\n height: 100%;\n overflow-x: clip;\n\n "," {\n overflow-y: auto;\n & > div {\n height: 100%;\n }\n }\n"]);return f=function(){return n},n}function h(){var n=(0,i.A)(["\n display: flex;\n justify-content: space-between;\n margin-bottom: 6px;\n .header {\n margin-top: 4px;\n margin-bottom: 12px;\n color: ",";\n font-size: 14px;\n line-height: 18px;\n }\n\n "," {\n display: inline-flex;\n }\n\n "," {\n margin-bottom: 0;\n }\n\n "," {\n align-items: center;\n }\n"]);return h=function(){return n},n}function g(){var n=(0,i.A)(["\n height: 24px;\n width: 24px;\n cursor: pointer;\n color: red;\n\n "," {\n position: absolute;\n right: 16px;\n }\n\n "," {\n position: fixed;\n width: 48px;\n height: 48px;\n margin-left: 0;\n right: 20px;\n bottom: 40px;\n }\n\n "," {\n margin-left: 0;\n }\n\n &[data-is-add-org='true'] {\n height: 14px;\n width: 14px;\n position: initial;\n }\n"]);return g=function(){return n},n}function m(){var n=(0,i.A)(["\n display: flex;\n .search-input {\n margin-right: 16px;\n width: unset;\n }\n .add-new-btn {\n &[data-color='primary'][data-size='md'] {\n padding: 8px 16px;\n display: flex;\n margin-right: 13px;\n }\n }\n"]);return m=function(){return n},n}function v(){var n=(0,i.A)(["\n display: flex;\n .search-input {\n margin-right: 16px;\n width: unset;\n }\n .add-new-btn {\n &[data-color='primary'][data-size='md'] {\n padding: 8px 16px;\n display: flex;\n margin-right: 13px;\n }\n }\n"]);return v=function(){return n},n}function b(){var n=(0,i.A)(["\n "," {\n position: absolute;\n top: 8px;\n left: 100px;\n right: 16px;\n width: auto;\n max-width: 100%;\n opacity: 0;\n visibility: hidden;\n transition: all 0.3s ease;\n\n &.search-input input {\n width: 100%;\n max-width: 100%;\n }\n\n &.show-mobile {\n opacity: 1;\n left: 52px;\n visibility: visible;\n }\n }\n"]);return b=function(){return n},n}var w=a.Ay.div.withConfig({componentId:"sc-8af53570-0"})(c(),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),y=a.Ay.div.withConfig({componentId:"sc-8af53570-2"})(d(),(function(n){return n.theme.colors.white}),o.M.tdOnly,o.M.mbDown,o.M.tdOnly,o.M.tdDown,o.M.mbDown),x=a.Ay.div.withConfig({componentId:"sc-8af53570-3"})(u(),o.M.tdUp,(function(n){return n.theme.colors.gray200}),o.M.mbDown),C=a.Ay.div.withConfig({componentId:"sc-8af53570-4"})(p(),(function(n){return n.theme.colors.white}),o.M.tdDown,(function(n){return n.$isShowMobile?"\n left: 0 !important;\n ":""})),M=a.Ay.div.withConfig({componentId:"sc-8af53570-5"})(f(),o.M.mbDown),k=a.Ay.div.withConfig({componentId:"sc-8af53570-6"})(h(),(function(n){return n.theme.colors.secondaryDark}),o.M.tdOnly,o.M.tdDown,o.M.mbDown),Y=(0,a.Ay)(l.A).withConfig({componentId:"sc-8af53570-7"})(g(),o.M.tdOnly,o.M.mbDown,o.M.tdOnly),I=(a.Ay.div.withConfig({componentId:"sc-8af53570-8"})(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),l=t(4736),c=t(73419),s=function(){var n,e,t=(0,c.$)(),s=t.replace,d=t.pathname,u=t.query,p=(0,l.useAppContext)().state,f=String(u.hospital_id||""),h=String(u.branch_id||""),g=p.userInfo,m=(null===g||void 0===g?void 0:g.role)||"",v=(0,r.useMemo)((function(){switch(m){case"admin":case"super":return"all";case"facility":return"branch";case"senior_branch":return"senior_branch";default:return"none"}}),[m]),b=(0,r.useState)({hospitalId:f,branchId:h}),w=b[0],A=b[1],y=(0,r.useCallback)((function(){var n,e;if("all"!==v||f||!h)if("senior_branch"!==v){var t,r,l=(null===(n=g.hospital)||void 0===n?void 0:n.id)&&f&&f!==String(g.hospital.id),c=(null===(e=g.branch)||void 0===e?void 0:e.id)&&"none"===v&&h&&h!==String(g.branch.id);if(l||c)s({pathname:d,query:(0,a.Jo)((0,i.A)({},u,l&&{hospitalId:null===(t=g.hospital)||void 0===t?void 0:t.id},c&&{branchId:null===(r=g.branch)||void 0===r?void 0:r.id}))},void 0,{shallow:!0})}else{var p;s({pathname:d,query:(0,a.Jo)((0,o.A)((0,i.A)({},u),{hospital_id:(null===(p=g.hospital)||void 0===p?void 0:p.id)||"",branch_id:""}))})}else s({pathname:d,query:(0,a.Jo)((0,o.A)((0,i.A)({},u),{hospital_id:"",branch_id:""}))})}),[s,d,u,v,f,h,null===g||void 0===g||null===(n=g.hospital)||void 0===n?void 0:n.id,null===g||void 0===g||null===(e=g.branch)||void 0===e?void 0:e.id]),x=(0,r.useMemo)((function(){var n,e,t;return g&&m&&"all"!==v?"branch"===v||"senior_branch"===v?{hospitalId:String((null===(t=g.hospital)||void 0===t?void 0:t.id)||""),branchId:h}:(null===(n=g.hospital)||void 0===n?void 0:n.id)&&(null===(e=g.branch)||void 0===e?void 0:e.id)?{hospitalId:String(g.hospital.id),branchId:String(g.branch.id)}:{hospitalId:"",branchId:""}:{hospitalId:f,branchId:h}}),[f,h,g]);return(0,r.useEffect)((function(){x.hospitalId===w.hospitalId&&x.branchId===w.branchId||A(x)}),[x.hospitalId,x.branchId]),(0,o.A)((0,i.A)({},w),{navigationDropdownControl:v,replaceInvalidHospitalIdAndBranchId:y,setHospitalIdAndBranchId:A})}},4736:function(n,e,t){"use strict";t.r(e),t.d(e,{useAppContext:function(){return r}});var i=t(73884),o=t(36259),r=function(){return(0,i.useContext)(o.B)}},28041:function(n,e,t){"use strict";t.d(e,{f:function(){return r}});var i=t(73884),o=t(88491);function r(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=(0,o.d)().isMobileOrTablet;(0,i.useEffect)((function(){if(t||e)return n?(document.body.style.overflow="hidden",document.body.classList.add("hhc-disabled-scroll")):(document.body.style.overflow="",document.body.classList.remove("hhc-disabled-scroll")),function(){document.body.style.overflow="",document.body.classList.remove("hhc-disabled-scroll")}}),[t,n,e])}},22699:function(n,e,t){"use strict";t.d(e,{A:function(){return w}});var i=t(53513),o=t(63538),r=t(73884),a=t(94886),l=t.n(a),c={response:null,error:null,loading:!0},s="INIT",d="SUCCESS",u="FAIL",p="NOT_CALLED";function f(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case s:return(0,o.A)((0,i.A)({},n),{loading:!0});case d:return{response:e.payload,error:null,loading:!1};case u:return{response:null,error:e.payload,loading:!1};case p:return{response:null,error:null,loading:!1};default:return n}}var h=s,g=d,m=u,v=p,b=l().CancelToken,w=function(n){var e=n.axios,t=void 0===e?l():e,a=n.url,s=n.method,d=void 0===s?"get":s,u=n.options,p=void 0===u?{}:u,w=n.trigger,A=n.customHandler,y=n.delay,x=n.condition,C=void 0===x||x,M=(0,r.useReducer)(f,c),k=M[0],Y=M[1],I=(0,r.useState)(0),E=I[0],D=I[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 Y({type:v});if("undefined"!==typeof N||E){P(null,null),Y({type:h});var n=b.source();return setTimeout((function(){t((0,o.A)((0,i.A)({url:a,method:d},p),{cancelToken:n.token})).then((function(n){P(null,n),Y({type:g,payload:n.data})})).catch((function(n){P(n,null),l().isCancel(n)||Y({type:m,payload:n})}))}),y||0),function(){n.cancel()}}}),[E,N]),(0,o.A)((0,i.A)({},k),{query:function(){D(+new Date)},reFetch:function(){D(+new Date)}})}},24431:function(n,e,t){"use strict";t.d(e,{c:function(){return l}});var i=t(73884),o=t(12215),r=t.n(o),a=t(40959);function l(){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),l=t(12495),c=t.n(l),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]),l=(0,o.useMemo)((function(){return{lower:!0,locale:t}}),[t]);return(0,o.useMemo)((function(){var e,t,o={hospitals:c()(n({id:"booking.search.tab.hospitals",defaultMessage:"Hospitals"}),l)||"hospitals",services:c()(n({id:"booking.search.tab.services",defaultMessage:"Services"}),l)||"services",doctors:c()(n({id:"booking.search.tab.doctors",defaultMessage:"Doctors"}),l)||"doctors",reviews:c()(n({id:"booking.search.tab.review",defaultMessage:"Reviews"}),l)||"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),l=t.n(a);function c(n,e){if(n){var t=n.getBoundingClientRect(),i=window.scrollY||window.pageYOffset||document.documentElement.scrollTop,o=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;e(i>=i+t.top-o)}}function s(n,e,t){if(n){var i=n.getBoundingClientRect(),o=window.scrollY||window.pageYOffset||document.documentElement.scrollTop;t(o>=o+i.top-e)}}function d(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.id,t=void 0===e?"scroll-trigger":e,a=n.defaultIsSticky,s=void 0!==a&&a,d=(0,o.useState)(s),u=d[0],p=d[1],f=(0,r.d)().isMobile;(0,o.useEffect)((function(){var n=document.getElementById(t);if(f&&n){var e=l()((function(){c(n,(function(n){p(!n)}))}),100);return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}}}),[t,f]);var h=(0,o.useMemo)((function(){return(0,i.Y)("div",{id:t})}),[t]);return{isSticky:u,scrollTriggerEl:h}}function u(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.id,t=void 0===e?"scroll-top-trigger":e,r=n.heightHeader,a=void 0===r?65:r,c=n.defaultIsSticky,d=void 0!==c&&c,u=(0,o.useState)(d),p=u[0],f=u[1];(0,o.useEffect)((function(){var n=document.getElementById(t);if(n){var e=l()((function(){s(n,a,(function(n){f(n)}))}),100);return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}}}),[t]);var h=(0,o.useMemo)((function(){return(0,i.Y)("div",{id:t})}),[t]);return{isTopSticky:p,scrollTriggerEl:h}}},72946:function(n,e,t){"use strict";t.d(e,{o:function(){return a}});var i=t(73884),o=t(36259),r=t(40959),a=function(){var n=(0,i.useContext)(o.B).state.userInfo;return r.dXu?{isValidOnboarding:!!((null===n||void 0===n?void 0:n.email)&&!(null===n||void 0===n?void 0:n.email.endsWith("@hhg.com"))&&!(null===n||void 0===n?void 0:n.email.endsWith("@facebook.com"))&&(null===n||void 0===n?void 0:n.phone)&&(null===n||void 0===n?void 0:n.phone_verified_at)&&(null===n||void 0===n?void 0:n.email_verified_at)&&(null===n||void 0===n?void 0:n.name)&&(null===n||void 0===n?void 0:n.birthday)&&"number"===typeof(null===n||void 0===n?void 0:n.gender))}:{isValidOnboarding:!!(n&&(null===n||void 0===n?void 0:n.phone)&&(null===n||void 0===n?void 0:n.phone_verified_at)&&(null===n||void 0===n?void 0:n.name)&&(null===n||void 0===n?void 0:n.birthday)&&"number"===typeof(null===n||void 0===n?void 0:n.gender))}}},89394:function(n,e,t){"use strict";t.d(e,{$z:function(){return a},CM:function(){return c},GK:function(){return s},QA:function(){return r},XQ:function(){return l},iO:function(){return o}});var i=t(2763),o=[i.L.Vietnam],r=[i.L.Vietnam,i.L.Malaysia],a=[i.L.Vietnam,i.L.Malaysia],l=[i.L.PhilippinesEnglish,i.L.PhilippinesTagalog],c=[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 _},default:function(){return U},handleChangeBranchOption:function(){return Q},handleChangeHospitalOption:function(){return V}});var i,o,r=t(858),a=t(53513),l=t(63538),c=t(81539),s=t(83776),d=t(2445),u=t(73884),p=t(19599),f=t(98223),h=t(74029),g=t(59850),m=t(84091),v=t(48403),b=t(76013),w=t(33700),A=t(27401),y=t(88542),x=t(40959),C=t(10297),M=t.n(C),k=t(6442),Y=t(91266),I=t(36259),E=t(72291),D=t(17084),N=t(82118),P=t(67141),F=t(69831),B=t(96161);function O(){return O=Object.assign?Object.assign.bind():function(n){for(var e=1;e0&&xn>1&&(0,d.Y)(F.gw,{children:(0,d.Y)(f.P,{className:"pagination",pagesAmount:xn,currentPage:kn,onChange:function(n){Yn(n)}})})]})]}),(0,d.Y)(b.rI,{isMobile:!1,isShowing:K,isLoading:En,errorMessages:tn,onClose:function(){on({content:""}),Z(!1)},onAccept:function(){Jn()},onDeny:function(){on({content:""}),Z(!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:En,errorMessages:tn,onClose:function(){on({content:""}),dn(!1)},onAccept:function(){qn()},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:pn,templateUrl:jn,headerValid:Hn,onCloseClick:function(){return fn(!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),l=t(73884),c=t(98223),s=t(59850),d=t(84091),u=t(39749),p=t(77298),f=t(13954),h=t(76013),g=t(33700),m=t(27401),v=t(88542),b=t(40959),w=t(10297),A=t(6442),y=t(91266),x=t(36259),C=t(17084),M=t(69831),k=t(75287),Y=t(86204),I=t(70527),E=t(7495),D=function(n){var e=[],t=!0,i=!1,r=void 0;try{for(var l,c=n[Symbol.iterator]();!(t=(l=c.next()).done);t=!0){var s,d,u,p=l.value,h=p.role===b.U$p.SENIOR_BRANCH,g=[{value:p.id,type:"id"},{value:{title:p.name,imgSrc:(null===p||void 0===p?void 0:p.avatar)||"".concat(b.JpE,"/images/avatar.jpg"),caption:p.email},type:"info"},{value:{heading:(null===(s=p.hospital)||void 0===s?void 0:s.name)||"",text:h?(0,a.Y)("div",{className:"branchs-cell-wrapper",children:null===(d=p.branches)||void 0===d?void 0:d.map((function(n,e){return(0,a.Y)("div",{className:"branch-item",children:null===n||void 0===n?void 0:n.name},e)}))}):(0,a.Y)("div",{className:"branchs-cell-wrapper",children:(0,a.Y)("div",{className:"branch-item",children:(null===(u=p.branch)||void 0===u?void 0:u.name)||""})})},type:"two_line",className:"sp-hide td-hide"},{value:(null===p||void 0===p?void 0:p.phone)||"",type:"string",className:"sp-hide"},{value:(0,a.Y)(f.o,{role:p.role}),type:"element",className:"sp-hide"},{value:p.id,type:"key",metaData:p}];e=(0,o.A)(e).concat([g])}}catch(m){i=!0,r=m}finally{try{t||null==c.return||c.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,l.useState)(n),i=t[0],o=t[1];return(0,l.useEffect)((function(){var t=setTimeout((function(){o(n)}),e);return function(){clearTimeout(t)}}),[n,e]),i}e.default=function(n){var e=n.users,t=n.pagination,o=(0,A.A)().formatMessage,f=(0,w.useRouter)(),N=(0,l.useContext)(x.B).state.userInfo,F=(0,l.useRef)(!0),B=f.locale,O=void 0===B?"vi-VN":B,z=b.EmC[O].id,S=(0,v.o)(),T=S.hospitalId,L=S.branchId,j=(0,l.useState)({}),H=j[0],R=j[1],_=(0,l.useState)(D(e)||[]),V=_[0],Q=_[1],U=(0,l.useState)(""),G=U[0],W=U[1],J=P(G),q=(0,l.useState)((null===t||void 0===t?void 0:t.last)||1),K=q[0],Z=q[1],X=(0,l.useState)(1),$=X[0],nn=X[1],en=(0,l.useState)((null===t||void 0===t?void 0:t.total_items)||0),tn=en[0],on=en[1],rn=(0,l.useState)(!1),an=rn[0],ln=rn[1],cn=(0,l.useState)(""),sn=cn[0],dn=cn[1],un=(0,l.useState)(!1),pn=un[0],fn=un[1],hn=(0,l.useState)(""),gn=hn[0],mn=hn[1],vn=(0,l.useState)({content:""}),bn=vn[0],wn=vn[1],An=(0,l.useState)(!1),yn=An[0],xn=An[1],Cn=(0,l.useState)({type:"",content:""}),Mn=Cn[0],kn=Cn[1],Yn=function(){var n=(0,i.A)((function(){var n;return(0,r.__generator)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),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)}}(),In=function(){var n=(0,i.A)((function(){var n,e;return(0,r.__generator)(this,(function(t){switch(t.label){case 0:return ln(!0),[4,(0,d.W3)((0,d.er)(s.R.GET_ADMIN_USER_LIST,{page:$||"",keyword:J||"",roleId:(null===H||void 0===H?void 0:H.value)||"".concat(b.MP.ADMIN,",").concat(b.MP.ORGANIZATION,",").concat(b.MP.BRANCH,",").concat(b.MP.SENIOR_BRANCH),hospitalId:T||"",branchId:L||"",countryId:z}),"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=D(n._data.admins),Z(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&&f.push("/admin/login"),ln(!1),[2]}}))}));return function(){return n.apply(this,arguments)}}();(0,l.useEffect)((function(){F.current?F.current=!1:In()}),[H,J,T,L,$]);var En,Dn=[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?(xn(!0),[4,(0,d.W3)((0,d.er)(s.R.POST_UPDATE_ADMIN,{userId:sn}),"DELETE")]):[2];case 1:return(n=e.sent())||wn({content:"An error occured"}),n&&1===(null===n||void 0===n?void 0:n._status)?(In(),fn(!1)):-1===(null===n||void 0===n?void 0:n._status)?wn({content:(null===n||void 0===n?void 0:n._messages)&&(null===n||void 0===n?void 0:n._messages[0])}):5===(null===n||void 0===n?void 0:n._status)&&f.push("/admin/login"),xn(!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)(I.A,{width:16,height:16}),name:o({id:"admin.user.resetPassword"}),action:function(n,e){mn(e.email)}},{icon:(0,a.Y)(Y.A,{}),name:o({id:"admin.facilities.button.edit",defaultMessage:"Edit"}),action:function(n){f.push("/admin/users/".concat(n))}}]:[];return(null===N||void 0===N?void 0:N.role)===b.U$p.SUPER&&Bn.push({icon:(0,a.Y)(E.A,{}),name:o({id:"admin.guide.delete",defaultMessage:"Delete"}),action:function(n){dn(n),fn(!0)}}),(0,a.FD)(m.MasterDetail,{activePage:"users",title:o({id:"page.title.users",defaultMessage:"Users management"}),children:[(0,a.Y)(u.y,{className:"alert",alert:Mn,dismissTime:1e4}),(0,a.Y)(p.AdminNavigation,{header:o({id:"page.title.users",defaultMessage:"Users management"}),hasHospitalSearch:!0}),(0,a.FD)(M.rf,{children:[(0,a.Y)(C.D,{type:"user",title:Pn,searchValue:G,selectSearchOptions:(En=null===N||void 0===N?void 0:N.role,En===b.U$p.ADMIN||En===b.U$p.SUPER?[Nn.all,Nn.admin,Nn.facility,Nn.senior_branch,Nn.branch]:En===b.U$p.ORGANIZATION?[Nn.all,Nn.facility,Nn.senior_branch,Nn.branch]:En===b.U$p.SENIOR_BRANCH?[Nn.all,Nn.senior_branch,Nn.branch]:[]),setCurrentPage:nn,setSearchValue:W,setSelectedSOption:function(n){R(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)(y.A,{width:"100%",height:50,count:3,style:{marginBottom:12}})}):(0,a.FD)(k.Bs,{children:[(0,a.Y)(g.b,{hasOrderColumn:!1,headings:Dn,data:V,isShowEmpty:!an&&0===(null===V||void 0===V?void 0:V.length),moreOptions:Bn,onRowClicked:function(n){f.push("/admin/users/".concat(n))}}),K>1&&(0,a.Y)(M.gw,{children:(0,a.Y)(c.P,{className:"pagination",pagesAmount:K,currentPage:$,onChange:function(n){nn(n)}})})]})]}),(0,a.Y)(h.rI,{isMobile:!1,isShowing:pn,isLoading:yn,errorMessages:bn,onClose:function(){wn({content:""}),fn(!1)},onAccept:function(){Fn()},onDeny:function(){wn({content:""}),fn(!1)},title:o({id:"admin.delete.title",defaultMessage:"Are you sure to delete this user?"}),caption:o({id:"booking.patientInfo.remove.confirmationPopup.caption",defaultMessage:"We can not restore it after it has been already deleted"}),acceptButtonTitle:o({id:"booking.patientInfo.remove.confirmationPopup.acceptButton.title",defaultMessage:"Yes, delete"}),denyButtonTittle:o({id:"admin.users.noKeepIt",defaultMessage:"No, keep it"})}),(0,a.Y)(h.rI,{isMobile:!1,isShowing:!!gn,isLoading:!1,onClose:function(){mn("")},onAccept:function(){Yn()},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"})})]})}},44155:function(n,e,t){"use strict";t.r(e),t.d(e,{__N_SSP:function(){return w}});var i=t(858),o=t(83776),r=t(2445),a=t(73884),l=t(53735),c=t(83725),s=t(74029),d=t(59850),u=t(84091),p=t(32822),f=t(72946),h=t(10297),g=t(6442),m=t(36259),v=t(3045),b=t(40959),w=!0;e.default=function(n){var e=n.client,t=n.healthCarePackage,w=void 0!==t&&t,A=n.footerInfo,y=(0,a.useContext)(m.B),x=y.state,C=y.pushNotifications,M=(0,f.o)().isValidOnboarding,k=x.userInfo,Y=x.isLoggedIn,I=x.loading,E=(0,g.A)().formatMessage,D=(0,a.useState)(void 0),N=D[0],P=D[1],F=(0,a.useState)(void 0),B=F[0],O=F[1],z=(0,a.useState)(!0),S=z[0],T=z[1],L=(0,a.useState)(!1),j=L[0],H=L[1],R=(0,h.useRouter)().asPath,_=(0,h.useRouter)(),V=_.query,Q=V.vnp_ResponseCode,U=V.vnp_TransactionStatus,G=V.bookingId,W=V.phone,J=V.resultCode,q=!!(null===Q||void 0===Q?void 0:Q.length)||!!J,K=e===b.u3o.ROCHE,Z=(0,a.useMemo)((function(){return!Y&&K&&w}),[K,w,Y]),X="00"===Q&&"00"===U||"0"===J,$=function(){I||_.push((0,u.pN)({slug:"service",id:parseInt(V.serviceId)}))},nn=function(){_.push("/search")},en=function(){var n=(0,i.A)((function(){var n,e,t,i;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:if(!V.serviceId)return[2,nn()];if((!V.date||!V.scheduleId)&&!w)return[2,$()];if(q){if(X&&G)return Z?(sessionStorage.removeItem(b.RI6),sessionStorage.removeItem(b.DOc),_.push("/booking/guest/success?bookingId=".concat(G,"&phone=").concat(W)),[2]):(_.push("/booking/success?bookingId=".concat(G)),[2]);C({message:E({id:"bookingPage.failedPayment",defaultMessage:"Your payment is failed, please try again"}),type:"danger"}),H(!0)}else H(!0);return Z?[4,(0,u.px)((0,u.er)(d.R.GET_SERVICE_DETAIL,{id:V.serviceId}),"GET")]:[3,2];case 1:return e=o.sent(),[3,4];case 2:return[4,(0,u.T7)((0,u.er)(d.R.GET_SERVICE_DETAIL,{id:V.serviceId}),"GET")];case 3:e=o.sent(),o.label=4;case 4:return(n=e)&&1===n._status&&n._data?P((0,s.JG)(n._data.service)):nn(),n._data.service.package?[3,6]:[4,(0,u.T7)((0,u.er)(d.R.GET_HOSPITAL_SERVICE_SCHEDULE,{id:V.serviceId,startDate:V.date,endDate:V.date}),"GET")];case 5:if(!(t=o.sent())||1!==t._status||!t._data)return[2,$()];if(!(i=t._data.schedules&&t._data.schedules.length>0?(0,s._4)(t._data.schedules[0],V.scheduleId):{})||!i.id)return[2,$()];O(i),o.label=6;case 6:return T(!1),[2]}}))}));return function(){return n.apply(this,arguments)}}();return(0,a.useEffect)((function(){"undefined"===typeof k||I||(0,i.A)((function(){return(0,o.__generator)(this,(function(n){return M?(en(),[2]):b.dXu?(c.u.getState().triggerCareEmailPhoneVerify({source:"care_onboarding"}),[2]):[2,window.location.href=(0,u.sT)(window.location.href,"care_onboarding")]}))}))()}),[k,M,I]),(0,a.useEffect)((function(){if(!Z||I){if(!Y&&!I)if(b.dXu)c.u.getState().triggerCareEmailPhoneVerify({source:"care_onboarding"});else{var n=(0,u.sT)("".concat(b.JpE).concat(R),"care_onboarding");window.location.href=n}}else en()}),[Y,I,Z]),j?(0,r.Y)(p.q,{slotInfo:B,serviceInfo:N,initialIsLoading:S,isTelemedicine:!1,footerInfo:A,isPackage:w,breadCrumbs:(0,r.Y)(v.A,{children:(0,r.Y)(l.B,{size:"md",pages:[{label:E({id:"page.title.search",defaultMessage:"Search"}),value:b.JpE},{label:(null===N||void 0===N?void 0:N.name)||"Service",value:N?"".concat(b.JpE).concat((0,u.pN)(N),"/"):""},{label:E({id:"page.title.booking",defaultMessage:"Booking"}),value:w?"".concat(b.JpE,"/booking/service/?serviceId=").concat(null===N||void 0===N?void 0:N.id):"".concat(b.JpE,"/booking/service/?serviceId=").concat(null===N||void 0===N?void 0:N.id,"&date=").concat(V.date,"&scheduleId=").concat(V.scheduleId)}]})})}):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("4909",n),n}),[])).then((function(){return n.X(0,[1570,5008,992,971,5901,1856,7664,8e3,584,9599,9680,968,6597,3725,7465,9314,7300,4604,1145,2359,9185,7352,159,9196,8157,9900,2876,4029,7812,1954,5320,1921,636,8792],(function(){return e=68540,n(n.s=e);var e}))}));_N_E=e}]);