1"use strict";(self.webpackChunkbooking=self.webpackChunkbooking||[]).push([[261],{1812:(k,C,c)=>{c.d(C,{n:()=>a});var a=(()=>{return(l=a||(a={})).ALL="ALL",l.AVAILABLE="AVAILABLE",l.USER_BOOKING="USER_BOOKING",l.UNAVAILABLE="UNAVAILABLE",l.FULL="FULL",a;var l})()},9776:(k,C,c)=>{c.d(C,{Y:()=>a});var a=(()=>{return(l=a||(a={})).APP="APP",l.WEB="WEB",l.MINI_APP_MOMO="MINI_APP_MOMO",a;var l})()},9010:(k,C,c)=>{c.d(C,{d:()=>a});var a=(()=>{return(l=a||(a={})).LOCAL="LOCAL",l.INTERNATIONAL="INTERNATIONAL",l.LOCAL_ECOPAY="LOCAL_ECOPAY",l.INTERNATIONAL_ECOPAY="INTERNATIONAL_ECOPAY",l.PAYOO_AT_STORE="PAYOO_AT_STORE",l.MOMO="MOMO",l.QR_CODE="QR_CODE",l.QR_CODE_ECOPAY="QR_CODE_ECOPAY",l.SMS="SMS",l.PAY_AT_SERVICE="PAY_AT_SERVICE",a;var l})()},6372:(k,C,c)=>{c.d(C,{b:()=>a});var a=(()=>{return(l=a||(a={})).UNAVAILABLE="UNAVAILABLE",l.AVAILABLE="AVAILABLE",l.FULL="FULL",a;var l})()},898:(k,C,c)=>{c.d(C,{l:()=>a});var a=(()=>{return(l=a||(a={})).APPOINTMENT="APPOINTMENT",l.BILLING="BILLING",l.PRESCRIPTION="PRESCRIPTION",a;var l})()},9944:(k,C,c)=>{c.d(C,{H:()=>v});var a=c(8987),l=c(934),u=c(2340),g=c(1812),f=c(620),D=c(2560),T=c(6774);let v=(()=>{const m=class extends l.b{constructor(d){super(d,u.N.apiUrl,"v4/appointments"),this.http=d}getEsDocWorkingDates(d){let p=new a.LE,E=d;
1return Object.keys(E).forEach(A=>{E[A]&&(p=p.append(A,E[A]))}),this.getCustomApi("es-doc/working-dates",p)}getTimeSlots(d){return super.getCustomApi("timeslots",f.D.getHttpParams(d))}getAppointmentSpecialties(d,p){return this.getCustomApi("slots/specialities"+(p?"/distinct":""),f.D.getHttpParams(d))}getAppointmentWorkingPlan(d){return super.getCustomApi("working-dates",f.D.getHttpParams(d))}getAppointmentWorkingPlanWithSlotStatus(d){return d.slotStatus||(d.slotStatus=g.n.USER_BOOKING),super.getCustomApi("working-dates-slot-status",f.D.getHttpParams(d))}getAppointmentAreas(d,p){return this.getCustomApi("slots/areas"+(p?"/distinct":""),f.D.getHttpParams(d))}getAppointmentExamType(d,p){return this.getCustomApi("slots/exam-types"+(p?"/distinct":""),f.D.getHttpParams(d))}getAppointmentPatientType(d,p){return this.getCustomApi("slots/patient-types"+(p?"/distinct":""),f.D.getHttpParams(d))}getAppointmentRooms(d,p){return this.getCustomApi("slots/rooms"+(p?"/distinct":""),f.D.getHttpParams(d))}getSlots(d){return super.getCustomApi("slots",f.D.getHttpParams(d))}getAppointmentProviders(d,p){return this.getCustomApi("slots/providers"+(p?"/distinct":""),f.D.getHttpParams(d))}getListBookedUser(d){let p=new a.LE;return Object.keys(d).forEach(E=>{d[E]&&(p=p.append(E,d[E]))}),this.getCustomApi("",p)}getAppointmentTimeSlotsDetail(d,p){let E=new a.LE;return E=E.append("sId",p),this.getCustomApi(`slots/${d}`,E)}getScheduleById(d,p,E,A){let b=new a.LE;return b=b.append("sId",d),b=b.append("orderId",p),b=b.append("page",E??1),b=b.append("size",A??10),this.getCustomApi("",b)}getAppointmentById(d){return this.getCustomApi(d,new a.LE)}};let t=m;return m.\u0275fac=function(p){return new(p||m)(D.LFG(T.h))},m.\u0275prov=D.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),t})()},9348:(k,C,c)=>{c.d(C,{x:()=>D});var a=c(8987),l=c(934),u=c(2340),g=c(2560),f=c(6774);let D=(()=>{const v=class extends l.b{constructor(m){super(m,u.N.apiUrl,"v1/data"),this.http=m}getAppVersion(){return this.httpClient.get(u.N.apiUrl+"version-checking?codeVersion=0.0.0&app=YOUMED&platform=IOS&status=PUBLISHED&_allow_anonymous=true")}getProfileHospitalBySlug(m){let _=new a.LE;return super.getCustomApi(`hospitals/slug/${m}`,_)}getProfileDoctorBySlug(m){let _=new a.LE;return super.getCustomApi(`doctors/slug/${m}`,_)}getProfileBySlug(m,_){let d=new a.LE;return super.getCustomApi(`${m}/slug/${_}`,d)}getClinicById(m){return super.getCustomApi(`clinics/id/${m}`,new a.LE)}getDoctorById(m){return super.getCustomApi(`doctors/id/${m}`,new a.LE)}getHospitalById(m){return super.getCustomApi(`hospitals/id/${m}`,new a.LE)}getServiceByType(m,_){return super.getCustomApi(`${_}s/id/${m}`,new a.LE)}};let T=v;return v.\u0275fac=function(_){return new(_||v)(g.LFG(f.h))},v.\u0275prov=g.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),T})()},2547:(k,C,c)=>{c.d(C,{j:()=>D});var a=c(8987),l=c(934),u=c(2340),g=c(2560),f=c(6774);let D=(()=>{const v=class extends l.b{constructor(m){super(m,u.N.apiUrl,"v4/providers"),this.http=m}getProviderBysId(m){let _=new a.LE;return _=_.append("sId",m),super.getCustomApi("",_)}};let T=v;return v.\u0275fac=function(_){return new(_||v)(g.LFG(f.h))},v.\u0275prov=g.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),T})()},1048:(k,C,c)=>{c.d(C,{x:()=>v});var a=c(1670),l=c(4666),u=c(2340),g=c(2560),f=c(7837),D=c(4497),T=c(9706);let v=(()=>{const m=class{constructor(d,p,E,A,b,L){this.seoSocialShareService=d,this.jsonLdService=p,this.title=E,this.router=A,this.meta=b,this.document=L}setData(d){var p=this;return(0,a.Z)(function*(){let E=p.convertToSeoSocialShareData(d||{});p.title.setTitle(E.title),E.url=E.url.split("?")[0],p.seoSocialShareService.setData(E),p.setSchema(d,d?.type),p.meta.updateTag({name:"robots",content:p.resolveRobotsContent(d?.robots)}),d?.canonical&&p.seoSocialShareService.setCanonicalUrl(d?.canonical),p.meta.updateTag({property:"og:type",content:d?.pagetype||"Website"}),"Profile"==d?.pagetype?(p.meta.updateTag({property:"profile:first_name",content:d?.name?.first_name}),p.meta.updateTag({property:"profile:last_name",content:d?.name?.last_name})):(p.meta.removeTag("property='profile:first_name'"),p.meta.removeTag("property='profile:last_name'"))})()}setSchema(d,p){var E=this;return(0,a.Z)(function*(){let A;const b=E.convertToSeoSocialShareData(d||{}),L=d?.socials?d?.socials.map(F=>F?.url):void 0,B=d?.institutions?d?.institutions?.map(F=>({"@type":"Organization",name:F?.name,url:F?.url})):void 0,S=d?.worksfor?d?.worksfor?.map(F=>({"@type":"MedicalOrganization",name:F?.name})):void 0;let P={name:b.title,image:b.image,url:b.url,description:b.description,honorificPrefix:d.honorificPrefix||void 0,jobTitle:d?.jobTitle||"B\xe1c s\u0129",sameAs:L,publishingPrinciples:"https://youmed.vn/tin-tuc/quy-trinh-bien-tap/",address:{"@type":"PostalAddress",addressLocality:d?.address?.city,addressRegion:d?.address?.city,postalCode:d?.address?.postalcode,streetAddress:d?.address?.street,addressCountry:{"@type":"Country",name:"Vi\u1ec7t Nam"}},knowsAbout:d?.specialties?.map(F=>F?.name),alumniOf:B,award:d?.award?d?.award:void 0,worksFor:S}
1;switch(p){case"Person":A=E.jsonLdService.getObject(p,P),E.jsonLdService.setData(A);break;case"Physician":let F={name:b.title,image:b.image,url:b.url,description:b.description,medicalSpecialty:d?.specialties?.map(M=>M?.name),telephone:19002805,address:{"@type":"PostalAddress",addressLocality:d?.address?.city,addressRegion:d?.address?.city,postalCode:d?.address?.postalcode,streetAddress:d?.address?.street,addressCountry:{"@type":"Country",name:"Vi\u1ec7t Nam"}},availableService:{"@type":"MedicalTherapy",name:d?.subspecialties?.map(M=>M?.name)},hasMap:{"@type":"Map",url:"https://www.google.com/maps/search/?api=1&query="+d?.address?.street+", "+d?.address?.city},photo:d?.photo?d?.photo?.map(M=>({"@type":"CreativeWork",url:M})):void 0},N=E.jsonLdService.getObject(p,F),R=E.jsonLdService.getObject("Person",P);E.jsonLdService.setData([N,R]);break;default:E.removeJsonLd()}})()}removeJsonLd(){const d=this.document.head?.querySelector("script[type='application/ld+json']");d?.parentNode&&d.parentNode.removeChild(d)}resolveRobotsContent(d){return"string"==typeof d?d:!1===d?"noindex, nofollow":"index, follow"}convertToSeoSocialShareData(d){return{...d,title:d.title,image:d.image||"https://cdn.youmed.vn/wp-content/uploads/2022/04/og-image.png",description:d.description,url:u.N.returnUrlBooking+this.router.url,type:d.type||"Website",author:"YouMed"}}};let t=m;return m.\u0275fac=function(p){return new(p||m)(g.LFG(f.JP),g.LFG(f.vD),g.LFG(D.Dx),g.LFG(T.F0),g.LFG(D.h_),g.LFG(l.K0))},m.\u0275prov=g.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),t})()},7166:(k,C,c)=>{c.d(C,{u:()=>D});var a=c(8987),l=c(934),u=c(2340),g=c(2560),f=c(6774);let D=(()=>{const v=class extends l.b{constructor(m,_){super(m,u.N.apiUrl,"v4/users"),this.http=m,this.httpCl=_}getInfo(){return super.getCustomApi("info",new a.LE)}checkServiceBookmarkedByEsDocId(m){let _=new a.LE;return super.getCustomApi(`bookmarks/services/check/${m}`,_)}getBookMarkServices(m,_,d){let p=new a.LE;return p=p.append("page",m),p=p.append("size",_),p=p.append("type",d),super.getCustomApi("bookmarks/services",p)}getEnableConfigHospitalV4(m){return super.getCustomApi(`hospitals/${m}/enabled-configs`,new a.LE)}getBannerHospital(m){let _=new a.LE;return _=_.append("appName",m),_=_.append("appVersion","1"),super.getCustomApi("banners",_)}addNewServiceBookMark(m){return super.postCustomApi("bookmarks/services",m)}updateUserInfo(m){return this.patchCustomApi("info",m)}deleteServiceBookMark(m){return super.requestCustomApi("delete","bookmarks/services",m)}};let T=v;return v.\u0275fac=function(_){return new(_||v)(g.LFG(f.h),g.LFG(a.eN))},v.\u0275prov=g.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),T})()},620:(k,C,c)=>{c.d(C,{D:()=>l});var a=c(8987);class l{static getHttpParams(g){const f=["sId","areaId","specialityId","roomId","providerId","patientTypeId","patientId","date","appointmentSlotId","type","subType","examTypeId","endDate","startDate","slotStatus","page","size","query","status","scheduleType"];let D=new a.LE;const T=g;return Object.keys(T).forEach(t=>{f.find(_=>_===t)&&T[t]&&(D=D.append(t,T[t]))}),D}}},6701:(k,C,c)=>{c.d(C,{m:()=>a});class a{static isNullOrEmpty(u){return!u||""===u.trim()}static trim(u){return"string"==typeof u?u.split(" ").filter(g=>g).join(" "):u}static trimKeyword(u){return"string"==typeof u?u.trim().split(" ").filter(g=>g).join(" "):(u&&"object"==typeof u&&Object.keys(u).forEach(g=>{u[g]&&(u[g]=this.trim(u[g]))}),u)}static trimObj(u){return Object.keys(u).forEach(g=>{u[g]&&(u[g]=Array.isArray(u[g])?u[g].map(f=>this.trimKeyword(f)).filter(f=>f&&""!==f):this.trimKeyword(u[g]))}),u}static trimInputContentInObject(u){return Object.keys(u).forEach(g=>{u[g]&&(Array.isArray(u[g])?u[g].map(f=>a.trim(f)):u[g]=a.trim(u[g]))}),u}static trimContentInObject(u){return Object.keys(u).forEach(g=>{u[g]&&(u[g]=Array.isArray(u[g])?u[g].map(f=>a.trimKeyword(f)).filter(f=>f&&""!==f):a.trimKeyword(u[g]))}),u}static formatFilterDDMMYYY(u){return""===u?"":u.split("/").reverse().join("-")}static isNotHttps(u){return!(!u?.includes("http")||u?.includes("https"))}static removeVietnameseTones(u){return(u=(u=(u=(u=(u=(u=(u=(u=(u=(u=(u=(u=(u=(u=(u=(u=(u=(u=u.replace(/\xe0|\xe1|\u1ea1|\u1ea3|\xe3|\xe2|\u1ea7|\u1ea5|\u1ead|\u1ea9|\u1eab|\u0103|\u1eb1|\u1eaf|\u1eb7|\u1eb3|\u1eb5/g,"a")).replace(/\xe8|\xe9|\u1eb9|\u1ebb|\u1ebd|\xea|\u1ec1|\u1ebf|\u1ec7|\u1ec3|\u1ec5/g,"e")).replace(/\xec|\xed|\u1ecb|\u
11ec9|\u0129/g,"i")).replace(/\xf2|\xf3|\u1ecd|\u1ecf|\xf5|\xf4|\u1ed3|\u1ed1|\u1ed9|\u1ed5|\u1ed7|\u01a1|\u1edd|\u1edb|\u1ee3|\u1edf|\u1ee1/g,"o")).replace(/\xf9|\xfa|\u1ee5|\u1ee7|\u0169|\u01b0|\u1eeb|\u1ee9|\u1ef1|\u1eed|\u1eef/g,"u")).replace(/\u1ef3|\xfd|\u1ef5|\u1ef7|\u1ef9/g,"y")).replace(/\u0111/g,"d")).replace(/\xc0|\xc1|\u1ea0|\u1ea2|\xc3|\xc2|\u1ea6|\u1ea4|\u1eac|\u1ea8|\u1eaa|\u0102|\u1eb0|\u1eae|\u1eb6|\u1eb2|\u1eb4/g,"A")).replace(/\xc8|\xc9|\u1eb8|\u1eba|\u1ebc|\xca|\u1ec0|\u1ebe|\u1ec6|\u1ec2|\u1ec4/g,"E")).replace(/\xcc|\xcd|\u1eca|\u1ec8|\u0128/g,"I")).replace(/\xd2|\xd3|\u1ecc|\u1ece|\xd5|\xd4|\u1ed2|\u1ed0|\u1ed8|\u1ed4|\u1ed6|\u01a0|\u1edc|\u1eda|\u1ee2|\u1ede|\u1ee0/g,"O")).replace(/\xd9|\xda|\u1ee4|\u1ee6|\u0168|\u01af|\u1eea|\u1ee8|\u1ef0|\u1eec|\u1eee/g,"U")).replace(/\u1ef2|\xdd|\u1ef4|\u1ef6|\u1ef8/g,"Y")).replace(/\u0110/g,"D")).replace(/\u0300|\u0301|\u0303|\u0309|\u0323/g,"")).replace(/\u02C6|\u0306|\u031B/g,"")).replace(/ + /g," ")).trim()).replace(/!|@|%|\^|\*|\(|\)|\+|\=|\<|\>|\?|\/|,|\.|\:|\;|\'|\"|\&|\#|\[|\]|~|\$|_|`|-|{|}|\||\\/g," ")}static slicePatientName(u){const g=u.split(" ");return this.removeVietnameseTones(g[g.length-1].slice(0,2))}static getFullName(u){const g=u.firstName,f=u.lastName;return g&&f?`${g} ${f}`.trim():!g&&f?g.trim():g&&!f?f.trim():""}static formatPhoneNumber(u){if(!u||"string"!=typeof u||0===u.trim().length)return"---";const g=u.replace(/\D/g,"");return 10!==g.length?"---":g.replace(/(\d{4})(\d{3})(\d{3})/,"$1 $2 $3")}}},6735:(k,C,c)=>{c.r(C),c.d(C,{DoctorHomeSlugModule:()=>tn});var a=c(4666),l=c(7549),u=c(8699),g=c(1510),f=c(8458),D=c(7865),T=c(2429),v=c(9706),t=c(2560),m=c(5300),_=c(7695),d=c(9742),p=c(3007),E=c(9348),A=c(7166),b=c(8386),L=c(565),B=c(2547),S=c(7669),P=c(1048),F=c(5796),N=c(3147),R=c(9855),M=c(7374),j=c(1812),H=c(6372),Q=c(9437),W=c(9161),$=c(9944),V=c(3085);const h=["scrollContainer"],w=function(e,i,n,r,o,s){return{"border-b-primary bg-blue-50":e,"border-b-green-500 bg-green-50":i,"border-b-4":n,"cursor-not-allowed":r,"cursor-pointer":o,"border-b-red-500":s}},y=function(e,i,n){return{"text-red-500":e,"text-green-500":i,"text-gray-800":n}};function I(e,i){if(1&e){const n=t.EpF();t.ynx(0),t.TgZ(1,"div",23),t.NdJ("click",function(){const s=t.CHM(n).index,x=t.oxw(2);return t.KtG(x.selectWorkingDate(s))}),t.TgZ(2,"p",24),t._uU(3),t.ALo(4,"async"),t.ALo(5,"dateAndSlot"),t.qZA(),t.TgZ(6,"span",25),t._uU(7),t.qZA()(),t.BQk()}if(2&e){const n=i.$implicit,r=i.index,o=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.HTZ(8,w,r===o.currentIndex&&"OFFLINE"===o.type,r===o.currentIndex&&"ONLINE"===o.type,r===o.currentIndex,!0===(null==n?null:n.full),!0!==(null==n?null:n.full),0===n.numOfAvailableTimeSlots)),t.xp6(2),t.hij(" ",t.lcZ(4,4,t.lcZ(5,6,n.workingDate))," "),t.xp6(3),t.Q6J("ngClass",t.kEZ(15,y,n.full,!n.full,r===o.currentIndex)),t.xp6(1),t.Oqu(0===n.numOfAvailableTimeSlots?"\u0110\xe3 \u0111\u1ea7y l\u1ecbch":n.numOfAvailableTimeSlots+" khung gi\u1edd")}}function U(e,i){1&e&&(t.TgZ(0,"div",31),t._UZ(1,"img",32),t.TgZ(2,"p",33),t._uU(3,"Bu\u1ed5i s\xe1ng"),t.qZA(),t._UZ(4,"div",34),t.qZA())}function Y(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",36),t.NdJ("click",function(){t.CHM(n);const o=t.oxw().$implicit,s=t.oxw(4);return t.KtG(s.choseSlots(o))}),t._uU(1),t.qZA()}if(2&e){const n=t.oxw().$implicit,r=t.oxw(4);t.Q6J("ngClass","OFFLINE"===r.type?"hover:bg-primary":"hover:bg-green-500"),t.xp6(1),t.hij(" ",n.timeslot," ")}}function O(e,i){if(1&e&&(t.ynx(0),t.YNc(1,Y,2,2,"button",35),t.BQk()),2&e){const n=i.$implicit,r=t.oxw(4);t.xp6(1),t.Q6J("ngIf",n.slotStatus!==r.SLOT_STATUS.UNAVAILABLE&&n.slotStatus!==r.SLOT_STATUS.FULL)}}function tt(e,i){if(1&e&&(t.TgZ(0,"div",27),t.YNc(1,U,5,0,"div",28),t.TgZ(2,"div",29,30),t.YNc(4,O,2,1,"ng-container",12),t.qZA()()),2&e){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",null==n.appointmentSlots?null:n.appointmentSlots.length),t.xp6(3),t.Q6J("ngForOf",n.appointmentSlots)}}function et(e,i){1&e&&(t.TgZ(0,"div",31),t._UZ(1,"img",38),t.TgZ(2,"p",33),t._uU(3,"Bu\u1ed5i chi\u1ec1u"),t.qZA(),t._UZ(4,"div",34),t.qZA())}function nt(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",36),t.NdJ("click",function(){t.CHM(n);const o=t.oxw().$implicit,s=t.oxw(4);return t.KtG(s.choseSlots(o))}),t._uU(1),t.qZA()}if(2&e){const n=t.oxw().$implicit,r=t.oxw(4);t.Q6J("ngClass","OFFLINE"===r.type?"hover:bg-primary":"hover:bg-green-500"),t.xp6(1),t.hij(" ",n.timeslot," ")}}function it(e,i){if(1&e&&(t.ynx(0),t.YNc(1,nt,2,2,"button",35),t.BQk()),2&e){const n=i.$implicit,r=t.oxw(4);t.xp6(1),t.Q6J("ngIf",n.slotStatus!==r.SLOT_STATUS.UNAVAILABLE&&n.slotStatus!==r.SLOT_STATUS.FULL)}}function ot(e,i){if(1&e&&(t.TgZ(0,"div",27),t.YNc(1,et,5,0,"div",28),t.TgZ(2,"div",29,37),t.YNc(4,it,2,1,"ng-container",12),t.qZA()()),2&e){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",null==n.appointmentSlots?null:n.appointmentSlots.length),t.xp6(3),t.Q6J("ngForOf",n.appointmentSlots)}}function rt(e,i){if(1&e&&(t.ynx(0),t.YNc(1,tt,5,2,"div",26),t.YNc(2,ot,5,2,"div",26),t.BQk()),2&e){const n=i.$implicit;t.xp6(1),t.Q6J("ngIf","MORNING"===n.datePart),t.xp6(1),t.Q6J("ngIf","NOON"===n.datePart)}}function st(e,i){1&e&&(t.TgZ(0,"p",39),t._uU(1," Ng\xe0y hi\u1ec7n t\u1ea1i kh\xf4ng c\xf3 slot vui l\xf2ng th\u1eed l\u1ea1i sau ! "),t.qZA())}function at(e,i){1&e&&(t.TgZ(0,"div",40,41)(2,"span"),t.O4$(),t.TgZ(3,"svg",42),t._UZ(4,"path",43),t.qZA()()())}function lt(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"div",1)(1,"details",2)(2,"summary",3)(3,"h2",4),t._uU(4),t.qZA(),t.TgZ(5,"span",5),t.O4$(),t.TgZ(6,"svg",6),t._UZ(7,"path",7),t.qZA()()(),t.kcU(),t.TgZ(8,"div",8)(9,"div",9)(10,"div",10,11),t.YNc(12,I,8,19,"ng-container",12),t.qZA()(),t.TgZ(13,"button",13),t.NdJ("click",function(){t.CHM(n);const o=t.oxw();return t.KtG(o.scrollLeft())}),t.O4$(),t.TgZ(14,"svg",14),t._UZ(15,"path",15),t.qZA()(),t.kcU(),t.TgZ(16,"button",16),t.NdJ("click",function(){t.CHM(n);const o=t.oxw();return t.KtG(o.scrollRight())}),t.O4$(),t.TgZ(17,"svg",14),t._UZ(18,"path",17),t.qZA()()(),t.kcU(),t.TgZ(19,"div",18)(20,"div",19,20),t.YNc(22,rt,3,2,"ng-container",12),t.YNc(23,st,2,0,"p",21),t.qZA(),t.YNc(24,at,5,0,"div",22),t.qZA()()()}if(2&e){const n=t.oxw();t.Q6J("id","OFFLINE"===n.type?"doctor-booking":"doctor-consultation"),t.xp6(4),t.hij(" ","OF
1FLINE"===n.type?"\u0110\u1eb7t kh\xe1m nhanh":"\u0110\u1eb7t l\u1ecbch t\u01b0 v\u1ea5n online"," "),t.xp6(8),t.Q6J("ngForOf",n.workingDates),t.xp6(10),t.Q6J("ngForOf",n.timeSlots),t.xp6(1),t.Q6J("ngIf",n.showNotFound),t.xp6(1),t.Q6J("ngIf",n.isLoading)}}let z=(()=>{const i=class{constructor(r,o,s,x,Z){this.appointmentService=r,this.srv=o,this.router=s,this.datePipe=x,this.platformId=Z,this.showNotFound=!1,this.isLoading=!1,this.itemsPerPage=5,this.currentIndex=0,this.SLOT_STATUS=H.b,this.currentDate=new Date,this.type="OFFLINE",this.listDates=[_.E.getNextDate(this.currentDate,0),_.E.getNextDate(this.currentDate,60)],this.workingDates=[],this.timeSlots=[],this.isHasWorkingDates=!1}ngOnInit(){(0,a.NF)(this.platformId)&&this.getWorkingDates(this.data)}getWorkingDates(r){const o={esDocId:r.esDocId,esDocType:r.esDocType,startDate:Q.Y.formatISODate(this.listDates[0]),endDate:Q.Y.formatISODate(this.listDates[this.listDates.length-1]),slotStatus:j.n.USER_BOOKING,type:this.type};"ONLINE"===this.type&&(o.subType="BOOK"),this.appointmentService.getEsDocWorkingDates(o).subscribe(s=>{if(this.isLoading=s.isLoading,s.data?.succeeded&&(this.workingDates=s.data.result?.workingDates,this.workingDates.length)){this.isHasWorkingDates=!0;for(let x=0;x<this.workingDates.length;x++)if(!this.workingDates[x].full){this.currentIndex=x,this.getCurrentTimeSlots(r,this.workingDates[x]);break}}})}getCurrentTimeSlots(r,o){this.isLoading=!0,this.showNotFound=!1;let s={};s.sId=this.config?.id??r.id_service_integrated,s.date=o.workingDate,s.type=this.t
1ype,s.slotStatus="ALL",this.appointmentService.getSlots(s).subscribe(x=>{x?.data?.succeeded?(this.isLoading=x.isLoading,this.timeSlots=x.data?.result?.slots||[],this.timeSlots=this.timeSlots?.map(Z=>({datePart:Z.datePart,appointmentSlots:Z.appointmentSlots.filter(J=>"FULL"!==J.slotStatus&&"UNAVAILABLE"!==J.slotStatus)}))):!1===x?.data?.succeeded&&(this.isLoading=!1,this.showNotFound=!0,this.timeSlots=[])},x=>{console.error("An error occurred:",x),this.showNotFound=!0,this.isLoading=!1,this.timeSlots=[]})}scrollLeft(){const r=this.scrollContainer.nativeElement,o=r.offsetWidth,s=r.scrollLeft,x=o/this.workingDates.length,Z=Math.ceil(o/x),K={left:Math.ceil(s/x)*x-x*Z,behavior:"smooth"};r.scrollTo(K)}scrollRight(){const r=this.scrollContainer.nativeElement;r.scrollTo({left:r.scrollLeft+r.offsetWidth,behavior:"smooth"})}selectWorkingDate(r){const o=this.workingDates[r];!0!==o.full&&(this.currentIndex=r,this.getCurrentTimeSlots(this.data,o))}choseSlots(r){if(r.slotStatus!==this.SLOT_STATUS.UNAVAILABLE&&r.slotStatus!==this.SLOT_STATUS.FULL&&r){const o=this.workingDates[this.currentIndex??0];this.srv.type=this.type,this.srv.isEndOfFlow=!0;let s=new Object;s.stepName=R.W.WorkingDateAnSlot,s.label="Th\u1eddi gian kh\xe1m",s.index=0,s.selectedDate=this.datePipe.transform(o.workingDate,"dd-MM-yyyy"),s.selectedSlot=r.timeslot,s.selectedSlotId=r.id,this.srv.form.controls.appointmentSlotId?.setValue(r.id),this.srv.form.controls.appointmentSlotName?.setValue(r.timeslot);const x=this.datePipe.transform(o.workingDate,"dd-MM-yyyy");this.srv.form.controls.dateFormat?.setValue(x),this.srv.form.controls.selectedName?.setValue(x),this.srv.form.controls.date?.setValue(o.workingDate),this.srv.stepData.push(s),this.srv.currentData=s,this.srv.setStep(s),this.srv.addPaymentOfPatient(),this.srv.activeItemIndex=1,this.router.navigate([`bac-si/${this.data.slug}/${M.k.BASE.book}`],{queryParams:{type:this.type}})}}};let e=i;return i.\u0275fac=function(o){return new(o||i)(t.Y36($.H),t.Y36(p.s),t.Y36(v.F0),t.Y36(a.uU),t.Y36(t.Lbi))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-working-date-and-slot-carousel"]],viewQuery:function(o,s){if(1&o&&t.Gf(h,5),2&o){let x;t.iGM(x=t.CRH())&&(s.scrollContainer=x.first)}},inputs:{data:"data",config:"config",type:"type"},standalone:!0,features:[t.jDz],decls:1,vars:1,consts:[["class","bg-white",3,"id",4,"ngIf"],[1,"bg-white",3,"id"],["open","",1,"group","[&_summary::-webkit-details-marker]:hidden"],[1,"flex","items-center","justify-between","cursor-pointer","py-4"],[1,"text-lg","font-semibold","mb-0","pl-4","md:pl-6"],[1,"mx-2","flex-shrink-0","rounded-full","p-1.5","text-white","group-open:text-gray-600","bg-primary","group-open:bg-white"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"h-4","w-4","flex-shrink-0","transition","duration-300","group-open:-rotate-180"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 9l-7 7-7-7"],[1,"relative","px-8","md:px-5"],[1,"h-16","w-full"],[1,"flex","flex-row","overflow-auto","hide-scroll-bar","scroll"],["scrollContainer",""],[4,"ngFor","ngForOf"],["aria-label","scroll left",1,"absolute","bottom-1/2","translate-y-1/2","left-0","bg-white","rounded-full","p-2","text-gray-500","ring-1","ring-gray-200",3,"click"],["_ngcontent-serverApp-c16","","xmlns","http://www.w3.org/2000/svg","width","20","height","20","viewBox","0 0 512 512"],["_ngcontent-serverApp-c16","","fill","none","stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","48","d","M328 112L184 256l144 144"],["aria-label","scroll right",1,"absolute","bottom-1/2","translate-y-1/2","right-0","bg-white","rounded-full","p-2","text-gray-500","ring-1","ring-gray-200",3,"click"],["_ngcontent-serverApp-c16","","fill","none","stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","48","d","M184 112l144 144-144 144"],[1,"relative"],[1,"px-2","pt-2","md:px-4","md:pt-4"],["slot",""],["class","bg-slate-50 p-4 text-center",4,"ngIf"],["class","absolute top-0 left-0 w-full h-full bg-gray-300 opacity-25 z-50 flex justify-center items-center text-primary",4,"ngIf"],[1,"pl-5","pr-5","flex","flex-col","items-center","py-2","whitespace-nowrap","mx-px",3,"ngClass","click"],[1,"font-semibold"],[1,"text-sm",3,"ngClass"],["class","font-medium",4,"ngIf"],[1,"font-medium"],["class","flex items-center",4,"ngIf"],[1,"grid","grid-cols-2","sm:grid-cols-4","lg:grid-cols-6","gap-2","py-3","overflow-x-auto","max-h-52"],["slots_morning",""],[1,"flex","items-center"],["width","20","height","20","loading","lazy","src","./assets/img/booking/svg/sun.svg","alt","Bu\u1ed5i s\xe1ng"],[1,"ml-1","text-sm","pr-1"],[1,"h-px","w-full","bg-slate-200","flex-1"],["aria-label","Slot","class","text-center border rounded-md py-3 tabular-nums transition hover:text-white hover:border-white",3,"ngClass","click",4,"ngIf"],["aria-label","Slot",1,"text-center","border","rounded-md","py-3","tabular-nums","transition","hover:text-white","hover:border-white",3,"ngClass","click"],["slots_noon",""],["width","20","height","20","loading","lazy","src","./assets/img/booking/svg/sun-fog.svg","alt","Bu\u1ed5i chi\u1ec1u"],[1,"bg-slate-50","p-4","text-center"],[1,"absolute","top-0","left-0","w-full","h-full","bg-gray-300","opacity-25","z-50","flex","justify-center","items-center","text-primary"],["loading",""],["viewBox","0 0 1024 1024","focusable","false","fill","currentColor","width","2em","height","2em","data-icon","loading","aria-hidden","true",1,"anticon-spin"],["d","M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"]],template:function(o,s){1&o&&t.YNc(0,lt,25,6,"div",0),2&o&&t.Q6J("ngIf",s.isHasWorkingDates)},dependencies:[a.ez,a.mk,a.sg,a.O5,a.Ov,W.a,D.E,V.M],styles:["#scrollC
1ontainer[_ngcontent-%COMP%]{-webkit-overflow-scrolling:touch}"]}),e})();var ct=c(9238);function ut(e,i){if(1&e&&(t.TgZ(0,"li")(1,"a",4),t._UZ(2,"img",5),t.qZA()()),2&e){const n=i.$implicit;t.xp6(1),t.Q6J("href",null==n?null:n.url,t.LSH),t.xp6(1),t.Q6J("src","./assets/img/booking/svg/"+(null==n?null:n.type)+".svg",t.LSH)("alt",null==n?null:n.type)}}function dt(e,i){if(1&e&&(t.TgZ(0,"div",1)(1,"ul",2),t.YNc(2,ut,3,3,"li",3),t.qZA()()),2&e){const n=t.oxw();t.xp6(2),t.Q6J("ngForOf",n.socials)}}let pt=(()=>{const i=class{constructor(){}ngOnInit(){}};let e=i;return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-doctor-socials"]],inputs:{socials:"socials"},decls:1,vars:1,consts:[["class","mt-2",4,"ngIf"],[1,"mt-2"],[1,"flex","space-x-3"],[4,"ngFor","ngForOf"],["ref","noreferrer noopener","target","_blank",1,"text-gray-600",3,"href"],["width","20","height","20","loading","lazy",3,"src","alt"]],template:function(o,s){1&o&&t.YNc(0,dt,3,1,"div",0),2&o&&t.Q6J("ngIf",s.socials)},dependencies:[a.sg,a.O5]}),e})();
1function gt(e,i){if(1&e&&(t.TgZ(0,"div",22),t._UZ(1,"img",23),t._uU(2),t.qZA()),2&e){const n=t.oxw();t.Q6J("ngClass",null!=n.doctorType[null==n.data?null:n.data.doctor_type]&&n.doctorType[null==n.data?null:n.data.doctor_type].color?null==n.doctorType[null==n.data?null:n.data.doctor_type]?null:n.doctorType[null==n.data?null:n.data.doctor_type].color:"text-primary"),t.xp6(1),t.Q6J("src",null==n.doctorType[null==n.data?null:n.data.doctor_type]?null:n.doctorType[null==n.data?null:n.data.doctor_type].icon,t.LSH)("alt",null==n.doctorType[null==n.data?null:n.data.doctor_type]?null:n.doctorType[null==n.data?null:n.data.doctor_type].title),t.xp6(1),t.hij(" ",null==n.doctorType[null==n.data?null:n.data.doctor_type]?null:n.doctorType[null==n.data?null:n.data.doctor_type].title," ")}}function ht(e,i){if(1&e&&(t.TgZ(0,"div",24)(1,"strong"),t._uU(2),t.qZA(),t._uU(3," n\u0103m kinh nghi\u1ec7m "),t.qZA()),2&e){const n=t.oxw();t.xp6(2),t.Oqu(n.currentYear-(null==n.data?null:n.data.year_start)<1?"D\u01b0\u1edbi 1 ":n.currentYear-(null==n.data?null:n.data.year_start))}}const mt=function(){return["../search"]},ft=function(e){return{specialty:e}};function _t(e,i){if(1&e&&(t.TgZ(0,"h3",25)(1,"a",26),t._uU(2),t.qZA()()),2&e){const n=i.$implicit;t.xp6(1),t.Q6J("routerLink",t.DdM(3,mt))("queryParams",t.VKq(4,ft,null==n?null:n.name)),t.xp6(1),t.hij(" ",null==n?null:n.name," ")}}function Et(e,i){if(1&e&&(t.TgZ(0,"div",27)(1,"h2",12),t._uU(2,"Ch\u1ee9c v\u1ee5"),t.qZA(),t.TgZ(3,"p",28),t._uU(4),t.qZA()()),2&e){const n=t.oxw();t.xp6(4),t.hij(" ",(null==n.data?null:n.data.jobs)||"\u0110ang c\u1eadp nh\u1eadt"," ")}}function vt(e,i){if(1&e&&(t.ynx(0),t.TgZ(1,"p",28),t._uU(2),t.qZA(),t.BQk()),2&e){const n=i.$implicit;t.xp6(2),t.hij(" ",(null==n?null:n.name)||"\u0110ang c\u1eadp nh\u1eadt"," ")}}function xt(e,i){if(1&e&&(t.TgZ(0,"div",29)(1,"h2",12),t._uU(2,"N\u01a1i c\xf4ng t\xe1c"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,vt,3,1,"ng-container",30),t.qZA()()),2&e){const n=t.oxw();t.xp6(4),t.Q6J("ngForOf",null==n.data?null:n.data.workplaces)}}function yt(e,i){if(1&e&&t._UZ(0,"app-doctor-socials",31),2&e){const n=t.oxw();t.Q6J("socials",null==n.data?null:n.data.social_profile)}}function At(e,i){if(1&e&&(t.TgZ(0,"p",32),t._uU(1," Th\u1eddi gian h\u1ee3p t\xe1c: "),t.TgZ(2,"time",33),t._uU(3),t.ALo(4,"date"),t.qZA(),t._uU(5," - "),t.TgZ(6,"time",33),t._uU(7),t.ALo(8,"date"),t.qZA()()),2&e){const n=t.oxw();t.xp6(2),t.s9C("dateTime",null==n.data?null:n.data.cooperate_start),t.xp6(1),t.Oqu(t.xi3(4,4,null==n.data?null:n.data.cooperate_start,"dd/MM/YYYY")),t.xp6(3),t.s9C("dateTime",null==n.data?null:n.data.cooperate_start),t.xp6(1),t.Oqu(t.xi3(8,7,null==n.data?null:n.data.cooperate_end,"dd/MM/YYYY"))}}function bt(e,i){1&e&&(t.O4$(),t.TgZ(0,"svg",34),t._UZ(1,"path",35),t.qZA())}function Ct(e,i){1&e&&(t.O4$(),t.TgZ(0,"svg",34),t._UZ(1,"path",36),t.qZA())}let wt=(()=>{const i=class{constructor(r,o){this.userV4Service=r,this.user=o,this.currentColor="",this.isBookmared=!1,this.currentYear=(new Date).getFullYear(),this.doctorType=ct.i8}ngOnInit(){}onBookmarkChange(){if(this.user.getCurrentUser())if(this.data.bookMark.isBookmared){if(this.data.bookMark?.id){const r=new Object;r.ids=[],r.ids?.push(this.data.bookMark?.id),this.userV4Service.deleteServiceBookMark(r).subscribe(o=>{o?.data?.succeeded&&(this.currentColor="none",this.data.bookMark=new Object)})}}else{const r=new Object;r.esDocId=this.data?.esDocId,r.image=this.data?.avatar_remote,r.name=this.data?.name,r.type=this.data?.type,r.prefix=this.data?.prefix,this.userV4Service.addNewServiceBookMark(r).subscribe(o=>{o?.data?.succeeded&&(this.data.bookMark.isBookmared=!0,this.data.bookMark.id=o?.data?.result.id,this.currentColor="#FACC15")})}else alert("B\u1ea1n c\u1ea7n \u0111\u0103ng nh\u1eadp \u0111\u1ec3 s\u1eed d\u1ee5ng t\xednh n\u0103ng n\xe0y!")}};let e=i;return i.\u0275fac=function(o){return new(o||i)(t.Y36(A.u),t.Y36(b.K))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-info-doctor"]],inputs:{data:"data",config:"config",isOpenService:"isOpenService"},decls:29,vars:14,consts:[["id","bio",1,"bg-white","flex","flex-col","md:flex-row","items-stretch","relative","lg:rounded-t-xl"],[1,"p-4","pb-0","md:p-6","text-center"],[1,"relative","aspect-square","rounded-full","overflow-hidden","mx-auto","w-40","h-40","md:w-44","md:h-44","bg-slate-200"],["priority","","width","180","height","180",1,"object-cover","absolute","
1inset-0",3,"ngSrc","alt"],[1,"flex","flex-col","justify-center","flex-1","p-4","md:pl-0","gap-1"],[1,"text-lg","text-center","md:text-left","md:text-xl"],[1,"md:hidden"],[1,"hidden","md:inline-block"],[1,"flex","items-center","justify-center","md:justify-start","divide-x","mb-2"],["class","font-semibold flex items-center pr-2",3,"ngClass",4,"ngIf"],["class","pl-1",4,"ngIf"],["id","specialties",1,"flex","flex-col","md:flex-row","md:items-end","md:gap-3"],[1,"text-gray-600","text-sm","doctorinfo-label"],[1,"space-x-2"],["class","inline-block",4,"ngFor","ngForOf"],["class","flex flex-col md:flex-row md:items-end md:gap-3",4,"ngIf"],["class","flex flex-col md:flex-row md:gap-3",4,"ngIf"],[3,"socials",4,"ngIf"],["class","text-xs font-medium text-gray-500 mt-2",4,"ngIf"],[1,"absolute","top-2","md:top-4","md:right-4","right-2","flex","items-center","border","px-2","rounded-full","py-1","group",3,"click"],["width","16","viewBox","0 0 512 512",4,"ngIf"],[1,"text-gray-500","text-xs"],[1,"font-semibold","flex","items-center","pr-2",3,"ngClass"],["width","20","height","20",3,"src","alt"],[1,"pl-1"],[1,"inline-block"],["queryParamsHandling","merge",1,"font-medium","text-primary","mr-1",3,"routerLink","queryParams"],[1,"flex","flex-col","md:flex-row","md:items-end","md:gap-3"],[1,"font-medium"],[1,"flex","flex-col","md:flex-row","md:gap-3"],[4,"ngFor","ngForOf"],[3,"socials"],[1,"text-xs","font-medium","text-gray-500","mt-2"],[3,"dateTime"],["width","16","viewBox","0 0 512 512"],["d","M352 48H160a48 48 0 00-48 48v368l144-128 144 128V96a48 48 0 00-48-48z","fill","none","stroke","#64748b","stroke-width","32"],["fill","#fbbf24","d","M416 480L256 357.41 96 480V32h320z"]],template:function(o,s){1&o&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._UZ(3,"img",3),t.qZA()(),t.TgZ(4,"div",4)(5,"h1",5)(6,"span",6),t._uU(7),t.qZA(),t.TgZ(8,"span",7),t._uU(9),t.qZA(),t._uU(10),t.qZA(),t.TgZ(11,"div",8),t.YNc(12,gt,3,4,"div",9),t.YNc(13,ht,4,1,"div",10),t.qZA(),t.TgZ(14,"div",11)(15,"h2",12),t._uU(16,"Chuy\xean khoa"),t.qZA(),t.TgZ(17,"div",13),t.YNc(18,_t,3,6,"h3",14),t.qZA()(),t.YNc(19,Et,5,1,"div",15),t.YNc(20,xt,5,1,"div",16),t.YNc(21,yt,1,1,"app-doctor-socials",17),t.YNc(22,At,9,10,"p",18),t.qZA(),t.TgZ(23,"div")(24,"button",19),t.NdJ("click",function(){return s.onBookmarkChange()}),t.YNc(25,bt,2,0,"svg",20),t.YNc(26,Ct,2,0,"svg",20),t.TgZ(27,"span",21),t._uU(28,"Y\xeau th\xedch"),t.qZA()()()()),2&o&&(t.xp6(3),t.Q6J("ngSrc",null==s.data?null:s.data.avatar_remote)("alt",null==s.data?null:s.data.name),t.xp6(4),t.Oqu(null==s.data?null:s.data.prefix),t.xp6(2),t.hij(" ",null==s.data||null==s.data.doctor_degree?null:s.data.doctor_degree.full_prefix," "),t.xp6(1),t.hij(" ",null==s.data?null:s.data.name," "),t.xp6(2),t.Q6J("ngIf",(null==s.data?null:s.data.doctor_type)&&"OTHER"!==(null==s.data?null:s.data.doctor_type)),t.xp6(1),t.Q6J("ngIf","OLD_EDITOR"!==(null==s.data?null:s.data.doctor_type)&&s.isOpenService&&(null==s.data?null:s.data.year_start)),t.xp6(5),t.Q6J("ngForOf",null==s.data?null:s.data.specialties),t.xp6(1),t.Q6J("ngIf",null==s.data?null:s.data.jobs),t.xp6(1),t.Q6J("ngIf",(null==s.data||null==s.data.workplaces?null:s.data.workplaces.length)>0),t.xp6(1),t.Q6J("ngIf","DOCTOR"!==(null==s.data?null:s.data.doctor_type)&&(null==s.data||null==s.data.social_profile?null:s.data.social_profile.length)>0),t.xp6(1),t.Q6J("ngIf",(null==s.data?null:s.data.cooperate_start)&&"OLD_EDITOR"===(null==s.data?null:s.data.doctor_type)),t.xp6(3),t.Q6J("ngIf",!(null!=s.data.bookMark&&s.data.bookMark.isBookmared)),t.xp6(1),t.Q6J("ngIf",null==s.data.bookMark?null:s.data.bookMark.isBookmared))},dependencies:[a.mk,a.sg,a.O5,v.rH,a.Zd,pt,a.uU],styles:[".doctorinfo-label[_ngcontent-%COMP%]{min-width:85px}"]}),e})();function Tt(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"div")(1,"button",5),t.NdJ("click",function(){t.CHM(n);const o=t.oxw(2);return t.KtG(o.showText())}),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA()()}if(2&e){const n=t.oxw(2);t.xp6(2),t.hij(" ...",n.isReadMore?t.lcZ(3,1,"spec.btn.plus"):t.lcZ(4,3,"spec.bt
1n.sub")," ")}}function Dt(e,i){if(1&e&&(t.TgZ(0,"div",1)(1,"h2",2),t._uU(2,"Gi\u1edbi thi\u1ec7u"),t.qZA(),t._UZ(3,"div",3),t.YNc(4,Tt,5,5,"div",4),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.Q6J("innerHTML",n._intro,t.oJD),t.xp6(1),t.Q6J("ngIf",n.intro.length>1e3)}}let Zt=(()=>{const i=class{get _intro(){return this.isReadMore?this.intro?.slice(0,1e3):this.intro}constructor(){this.isReadMore=!0}ngOnInit(){}showText(){this.isReadMore=!this.isReadMore}};let e=i;return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-intro-doctor"]],inputs:{intro:"intro"},decls:1,vars:1,consts:[["id","about","class","bg-white p-4 md:p-6",4,"ngIf"],["id","about",1,"bg-white","p-4","md:p-6"],[1,"text-lg","font-semibold"],[1,"mt-4","prose","max-w-none",3,"innerHTML"],[4,"ngIf"],[1,"text-sm","font-medium","rounded-full","py-1","text-gray-600","hover:text-primary",3,"click"]],template:function(o,s){1&o&&t.YNc(0,Dt,5,2,"div",0),2&o&&t.Q6J("ngIf",s.intro)},dependencies:[a.O5,u.X$]}),e})();function It(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",2),t.NdJ("click",function(){t.CHM(n);const o=t.oxw();return t.KtG(o.scroll("#articles"))}),t._uU(1," B\xe0i vi\u1ebft "),t.qZA()}}let Ot=(()=>{const i=class{constructor(r){this.platformId=r}ngOnInit(){}scroll(r){(0,a.NF)(this.platformId)&&window.scrollTo({behavior:"smooth",top:document.querySelector(r).getBoundingClientRect().top-document.body.getBoundingClientRect().top-50})}};let e=i;return i.\u0275fac=function(o){return new(o||i)(t.Y36(t.Lbi))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-doctor-topnav"]],inputs:{data:"data"},decls:9,vars:1,consts:[[1,"bg-white","sticky","top-0","z-50","md:hidden"],[1,"flex","flex-nowrap","border-b","border-slate-100","shadow","overflow-x-scroll","items-stretch"],[1,"text-center","py-3","px-4","font-medium","flex-shrink-0",3,"click"],["class","text-center py-3 px-4 font-medium flex-shrink-0",3,"click",4,"ngIf"]],template:function(o,s){1&o&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return s.scroll("#bio")}),t._uU(3," Th\xf4ng tin "),t.qZA(),t.TgZ(4,"button",2),t.NdJ("click",function(){return s.scroll("#about")}),t._uU(5," Gi\u1edbi thi\u1ec7u "),t.qZA(),t.TgZ(6,"button",2),t.NdJ("click",function(){return s.scroll("#services")}),t._uU(7," Chuy\xean kh\xe1m "),t.qZA(),t.YNc(8,It,2,0,"button",3),t.qZA()()),2&o&&(t.xp6(8),t.Q6J("ngIf",null==s.data?null:s.data.news_id))},dependencies:[a.O5]}),e})();const kt=function(){return["./dat-kham"]},Ft=function(){return{type:"ONLINE",start:0}};function Lt(e,i){1&e&&(t.TgZ(0,"a",8),t._uU(1," \u0110\u1eb7t l\u1ecbch t\u01b0 v\u1ea5n "),t.qZA()),2&e&&t.Q6J("routerLink",t.DdM(2,kt))("queryParams",t.DdM(3,Ft))}const Mt=function(){return{start:0}};function Ut(e,i){1&e&&(t.TgZ(0,"a",9),t._uU(1," \u0110\u1eb7t kh\xe1m ngay "),t.qZA()),2&e&&t.Q6J("queryParams",t.DdM(1,Mt))}function Bt(e,i){if(1&e&&(t.TgZ(0,"div",1)(1,"a",2)(2,"span",3),t._uU(3,"H\u1ed7 tr\u1ee3 \u0111\u1eb7t kh\xe1m "),t.qZA(),t.TgZ(4,"span",4),t._uU(5,"1900-2805"),t.qZA()(),t.TgZ(6,"div",5),t.YNc(7,Lt,2,4,"a",6),t.YNc(8,Ut,2,2,"a",7),t.qZA()()),2&e){const n=t.oxw();t.Q6J("ngClass",n.isConsult&&n.isBooking?"flex-col":"md:flex-row"),t.xp6(1),t.Q6J("ngClass",n.isConsult&&n.isBooking?"inline-block":"flex flex-col"),t.xp6(6),t.Q6J("ngIf",n.isConsult),t.xp6(1),t.Q6J("ngIf",n.isBooking)}}let Pt=(()=>{const i=class{constructor(){}ngOnInit(){this.isBooking=this.data?.booking,this.isConsult=this.data?.bookCallEnabled}};let e=i;return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-doctor-footer-nav"]],inputs:{data:"data"},decls:1,vars:1,consts:[["class","sticky flex z-[90] gap-4 bottom-0 bg-white p-2 md:px-6 md:py-4 border-t border-t-slate-100",3,"ngClass",4,"ngIf"],[1,"sticky","flex","z-[90]","gap-4","bottom-0","bg-white","p-2","md:px-6","md:py-4","border-t","border-t-slate-100",3,"ngClass"],["href","tel:19002805",1,"text-xs","md:text-base","justify-center",3,"ngClass"],[1,"mb-0","leading-3"],[1,"font-bold"],[1,"flex","flex-1","gap-2"],["queryParamsHandling","merge","class","flex flex-1 truncate hover:text-white justify-center uppercase px-4 py-3 text-white font-semibold text-sm bg-green-500 rounded-md",3,"routerLink","queryParams",4,"ngIf"],["routerLink","./dat-kham","class","flex flex-1 truncate hover:text-white justify-center uppercase px-4 py-3 text-white font-semibold text-sm bg-primary rounded-md",3,"queryParams",4,"ngIf"],["queryParamsHandling","merge",1,"flex","flex-1","truncate","hover:text-white","justify-center","uppercase","px-4","py-3","text-white","font-semibold","text-sm","bg-green-500","rounded-md",3,"routerLink","queryParams"],["routerLink","./dat-kham",1,"flex","flex-1","truncate","hover:text-white","justify-center","uppercase","px-4","py-3","text-white","font-semibold","text-sm","bg-primary","rounded-md",3,"queryParams"]],template:function(o,s){1&o&&t.YNc(0,Bt,9,4,"div",0),2&o&&t.Q6J("ngIf",s.isConsult||s.isBooking)},dependencies:[a.mk,a.O5,v.rH]}),e})();function St(e,i){if(1&e&&(t.TgZ(0,"p",2),t.O4$(),t.TgZ(1,"svg",3),t._UZ(2,"path",4),t.qZA(),t.kcU(),t.TgZ(3,"span"),t._uU(4,"C\u1eadp nh\u1eadt l\u1ea7n cu\u1ed1i:"),t.qZA(),t.TgZ(5,"time",5),t._uU(6),t.ALo(7,"date"),t.qZA()()),2&e){const n=t.oxw();
1t.xp6(5),t.s9C("dateTime",null==n.data?null:n.data.updated_at),t.xp6(1),t.hij(" ",t.xi3(7,2,null==n.data?null:n.data.updated_at,"dd/MM/yyyy")," ")}}let Nt=(()=>{const i=class{constructor(){}ngOnInit(){}};let e=i;return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-doctor-footer"]],inputs:{data:"data"},decls:2,vars:1,consts:[[1,"px-2","py-4","flex","text-gray-600","text-xs","font-medium","justify-between"],["class","inline-flex items-center space-x-1",4,"ngIf"],[1,"inline-flex","items-center","space-x-1"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","viewBox","0 0 512 512",1,"text-green-500"],["fill","currentColor","d","M479.07 111.36a16 16 0 00-13.15-14.74c-86.5-15.52-122.61-26.74-203.33-63.2a16 16 0 00-13.18 0C168.69 69.88 132.58 81.1 46.08 96.62a16 16 0 00-13.15 14.74c-3.85 61.11 4.36 118.05 24.43 169.24A349.47 349.47 0 00129 393.11c53.47 56.73 110.24 81.37 121.07 85.73a16 16 0 0012 0c10.83-4.36 67.6-29 121.07-85.73a349.47 349.47 0 0071.5-112.51c20.07-51.19 28.28-108.13 24.43-169.24zm-131 75.11l-110.8 128a16 16 0 01-11.41 5.53h-.66a16 16 0 01-11.2-4.57l-49.2-48.2a16 16 0 1122.4-22.86l37 36.29 99.7-115.13a16 16 0 0124.2 20.94z"],[3,"dateTime"]],template:function(o,s){1&o&&(t.TgZ(0,"div",0),t.YNc(1,St,8,5,"p",1),t.qZA()),2&o&&(t.xp6(1),t.Q6J("ngIf",null==s.data?null:s.data.updated_at))},dependencies:[a.O5,a.uU]}),e})();function Rt(e,i){if(1&e&&(t.TgZ(0,"div",1)(1,"h2",2),t._uU(2,"Gi\u1ea3i th\u01b0\u1edfng & C\xe1c c\xf4ng tr\xecnh nghi\xean c\u1ee9u"),t.qZA(),t._UZ(3,"div",3),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.Q6J("innerHTML",n.awards,t.oJD)}}let Yt=(()=>{const i=class{constructor(){}ngOnInit(){}};let e=i;return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-doctor-awards"]],inputs:{awards:"awards"},decls:1,vars:1,consts:[["class","bg-white p-4 md:p-6",4,"ngIf"],[1,"bg-white","p-4","md:p-6"],[1,"text-lg","font-semibold"],[1,"mt-4","prose","max-w-none",3,"innerHTML"]],template:function(o,s){1&o&&t.YNc(0,Rt,4,1,"div",0),2&o&&t.Q6J("ngIf",s.awards)},dependencies:[a.O5]}),e})(),Jt=(()=>{const i=class{constructor(){}ngOnInit(){}};let e=i;return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-doctor-address"]],inputs:{address:"address"},decls:12,vars:2,consts:[["target","_blank","ref","noreferrer noopener",1,"block","relative","overflow-hidden","bg-primary","text-white","hover:text-white","text-base","rounded-2xl","m-4","md:m-6","flex-1","bg-right-bottom",3,"href"],["src","assets/img/booking/map.webp","width","700","height","460","alt","Map",1,"absolute","bottom-0","right-0"],[1,"relative","bg-gradient-to-br","from-blue-700","via-primary","p-6","h-full"],[1,"text-lg","font-semibold","text-white"],[1,"mt-4","flex","flex-col","items-start"],[1,"text-white"],[1,"rounded-full","px-2","py-1","bg-white","text-primary","text-sm","font-semibold","mt-6","flex","items-center"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","viewBox","0 0 512 512",1,"mr-1"],["fill","currentColor","d","M48.17 113.34A32 32 0 0032 141.24V438a32 32 0 0047 28.37c.43-.23.85-.47 1.26-.74l84.14-55.05a8 8 0 003.63-6.72V46.45a8 8 0 00-12.51-6.63zM212.36 39.31A8 8 0 00200 46v357.56a8 8 0 003.63 6.72l96 62.42A8 8 0 00312 466V108.67a8 8 0 00-3.64-6.73zM464.53 46.47a31.64 31.64 0 00-31.5-.88 12.07 12.07 0 00-1.25.74l-84.15 55a8 8 0 00-3.63 6.72v357.46a8 8 0 0012.52 6.63l107.07-73.46a32 32 0 0016.41-28v-296a32.76 32.76 0 00-15.47-28.21z"]],template:function(o,s){1&o&&(t.TgZ(0,"a",0),t._UZ(1,"img",1),t.TgZ(2,"div",2)(3,"h2",3),t._uU(4,"\u0110\u1ecba ch\u1ec9"),t.qZA(),t.TgZ(5,"div",4)(6,"h3",5),t._uU(7),t.qZA(),t.TgZ(8,"div",6),t.O4$(),t.TgZ(9,"svg",7),t._UZ(10,"path",8),t.qZA(),t._uU(11," M\u1edf b\u1ea3n \u0111\u1ed3 "),t.qZA()()()()),2&o&&(t.Q6J("href","https://www.google.com/maps/search/?api=1&query="+s.address,t.LSH),t.xp6(7),t.Oqu(s.address))}}),e})(),Qt=(()=>{const i=class{constructor(){}ngOnInit(){}};let e=i;return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-doctor-content-policy"]],decls:17,vars:0,consts:[[1,"bg-white","p-4","md:p-6","prose","max-w-none"],[1,"text-lg","font-semibold"],[1,"w-8","h-1","bg-primary","rounded-full"],[1,"border-l-4","border-l-primary","bg-blue-50","pl-4","font-serif","rounded-r-lg","p-3","text-lg"],[1,"mb-0"],["href","https://youmed.vn/tin-tuc/doi-ngu-bien-tap-v
1ien/",1,"text-primary","no-underline","border-b","hover:border-b-primary"],["href","https://youmed.vn/tin-tuc/quy-trinh-bien-tap/",1,"text-primary","no-underline","border-b","hover:border-b-primary"]],template:function(o,s){1&o&&(t.TgZ(0,"div",0)(1,"h2",1),t._uU(2,"Bi\xean t\u1eadp vi\xean v\xe0 ch\xednh s\xe1ch n\u1ed9i dung"),t.qZA(),t._UZ(3,"div",2),t.TgZ(4,"p"),t._uU(5," \u0110\u1ed9i ng\u0169 bi\xean t\u1eadp c\u1ee7a YouMed t\u1ea5t c\u1ea3 \u0111\u1ec1u l\xe0 nh\u1eefng d\u01b0\u1ee3c s\u0129, b\xe1c s\u0129, c\xf3 th\u1ec3 n\xf3i l\xe0 c\xe1c chuy\xean gia trong l\u0129nh v\u1ef1c m\xe0 h\u1ecd tham gia. Nh\xf3m bi\xean t\u1eadp c\xf3 vai tr\xf2 h\u1ebft s\u1ee9c quan tr\u1ecdng trong vi\u1ec7c t\u1ea1o ra v\xe0 qu\u1ea3n l\xfd t\u1ea5t c\u1ea3 n\u1ed9i dung tr\xean trang tin t\u1ee9c YouMed. M\u1ed7i ph\u1ea7n n\u1ed9i dung d\xf9 l\xe0 ri\xeang l\u1ebb \u0111\u1ec1u c\xf3 \xedt nh\u1ea5t m\u1ed9t d\u01b0\u1ee3c s\u0129, b\xe1c s\u0129 \u0111\u1ee9ng sau nh\u1eb1m \u0111\u1ea3m b\u1ea3o ph\u1ea7n n\u1ed9i dung \u0111\xf3 \u0111\xe1p \u1ee9ng \u0111\u1ea7y \u0111\u1ee7 c\xe1c y\xeau c\u1ea7u v\u1ec1 tr\xe1ch nhi\u1ec7m, s\u1ef1 ch\xednh x\xe1c, t\xednh h\u1eefu \xedch, s\u1ef1 \u0111\xe1ng tin c\u1eady v\xe0 c\u1eadp nh\u1eadt k\u1ecbp th\u1eddi c\xe1c th\xf4ng tin y khoa m\u1edbi nh\u1ea5t. "),t.qZA(),t.TgZ(6,"p"),t._uU(7," Tr\u1ecdng tr\xe1ch c\u1ee7a \u0111\u1ed9i ng\u0169 c\xe1c bi\xean t\u1eadp vi\xean \u0111\xf3 l\xe0 gi\xfap ng\u01b0\u1eddi \u0111\u1ecdc th\u1ef1c s\u1ef1 hi\u1ec3u r\xf5 \u0111\u01b0\u1ee3c nh\u1eefng g\xec h\u1ecd \u0111ang t\xecm ki\u1ebfm, \u0111\u01a1n gi\u1ea3n h\xf3a c\xe1c thu\u1eadt ng\u1eef chuy\xean m\xf4n, tr\xecnh b\xe0y th\xf4ng tin m\u1ed9t c\xe1ch c\xf4 \u0111\u1ecdng, c\u1ee5 th\u1ec3 v\xe0 r\xf5 r\xe0ng. \u0110\xf3 l\xe0 s\u1ef1 \u0111\xf3ng g\xf3p h\u1eefu \xedch gi\xfap ng\u01b0\u1eddi d\xf9ng c\xf3 th\u1ec3 t\xecm \u0111\u01b0\u1ee3c ngu\u1ed3n th\xf4ng tin tham kh\u1ea3o ch\xednh th\u1ed1ng, tr\xe1nh \u0111\u01b0\u1ee3c r\u1ee7i ro t\u1eeb nh\u1eefng tin t\u1ee9c sai l\u1ec7ch lan truy\u1ec1n tr\xean m\u1ea1ng v\xe0 m\u1ed9t ph\u1ea7n n\xe0o \u0111\xf3 ph\xe1t tri\u1ec3n cho n\u1ec1n Y h\u1ecdc Vi\u1ec7t Nam. "),t.qZA(),t.TgZ(8,"div",3),t._uU(9," Ch\xfang t\xf4i mong mu\u1ed1n m\u1ed7i n\u0103m c\xf3 th\u1ec3 s\u1ebd gi\xfap \u0111\u1ee1 \u0111\u01b0\u1ee3c nhi\u1ec1u ng\u01b0\u1eddi h\u01a1n \u0111\u1ebfn v\u1edbi trang tin t\u1ee9c YouMed v\xe0 t\xecm th\u1ea5y c\xe2u tr\u1ea3 l\u1eddi cho c\xe1c c\xe2u h\u1ecfi v\u1ec1 s\u1ee9c kh\u1ecfe c\u1ee7a h\u1ecd. "),t.qZA(),t.TgZ(10,"p",4),t._uU(11," T\xecm hi\u1ec3u v\u1ec1 "),t.TgZ(12,"a",5),t._uU(13,"\u0110\u1ed9i ng\u0169 bi\xean t\u1eadp vi\xean"),t.qZA(),t._uU(14," v\xe0 "),t.TgZ(15,"a",6),t._uU(16,"Ch\xednh s\xe1ch n\u1ed9i dung YouMed."),t.qZA()()())}}),e})(),jt=(()=>{const i=class{constructor(){}ngOnInit(){}};let e=i;return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-doctor-ethics-policy"]],decls:12,vars:0,consts:[[1,"bg-white","p-4","md:p-6","prose","max-w-none"],[1,"text-lg","font-semibold"],[1,"w-8","h-1","bg-primary","rounded-full"],[1,"border-l-4","border-l-primary","bg-blue-50","pl-4","font-serif","rounded-r-lg","p-3","text-lg"],[1,"mb-0"],["href","https://youmed.vn/tin-tuc/chinh-sach-dao-duc/",1,"text-primary","no-underline","border-b","hover:border-b-primary"]],template:function(o,s){1&o&&(t.TgZ(0,"div",0)(1,"h2",1),t._uU(2,"Ch\xednh s\xe1ch \u0111\u1ea1o \u0111\u1ee9c t\u1eeb YouMed"),t.qZA(),t._UZ(3,"div",2),t.TgZ(4,"p"),t._uU(5," \u0110\u1ed1i v\u1edbi m\u1ed9t trang tin t\u1ee9c chuy\xean v\u1ec1 Y t\u1ebf & S\u1ee9c kh\u1ecfe, ch\xfang t\xf4i hi\u1ec3u r\u1eb1ng s\u1ef1 uy t\xedn v\xe0 danh ti\u1ebfng m\xe0 ch\xfang t\xf4i c\xf3 \u0111\u01b0\u1ee3c ho\xe0n to\xe0n ph\u1ee5 thu\u1ed9c v\xe0o s\u1ef1 t\xedn nhi\u1ec7m c\u1ee7a kh\xf4ng ch\u1ec9 c\xe1c \u0111\u1ecdc gi\u1ea3, m\xe0 c\xf2n \u0111\u1ebfn t\u1eeb c\xe1c d\u01b0\u1ee3c s\u0129, b\xe1c s\u0129 bi\xean t\u1eadp, c\xe1c nh\xe0 nghi\xean c\u1ee9u, h\u1ed9i \u0111\u1ed3ng tham v\u1ea5n, t\u1eeb nh\u1eefng b\u1ec7nh nh\xe2n, \u0111\u1ed1i t\u01b0\u1ee3ng nghi\xean c\u1ee9u v\xe0 c\xe1c c\u01a1 quan qu\u1ea3n l\xfd ch\xednh s\xe1ch y t\u1ebf c\xf4ng. \u0110i\u1ec1u n\xe0y \u0111\xe3 th\xf4i th\xfac Ban l\xe3nh \u0111\u1ea1o YouMed c\u1ea7n kh\u1eb3ng \u0111\u1ecbnh nh\u1eefng nguy\xean t\u1eafc \u0111\u1ea1o \u0111\u1ee9c v\u1ed1n c\xf3 th\xf4ng qua vi\u1ec7c m\xf4 t\u1ea3 m\u1ed9t c\xe1ch r\xf5 r\xe0ng nh\u1ea5t c\xe1c ch\xednh s\xe1ch c\u1ee7a trang tin t\u1ee9c youmed.vn. "),t.qZA(),t.TgZ(6,"div",3),t._uU(7," M\u1ee5c \u0111\xedch nh\u1eb1m \u0111\u1ea3m b\u1ea3o \u0111\u1ed1i x\u1eed c\xf4ng b\u1eb1ng v\xe0 trung th\u1ef1c nh\u1ea5t v\u1edbi t\u1ea5t c\u1ea3 nh\u1eefng ng\u01b0\u1eddi \u0111\xe3 g\xf3p c\xf4ng t\u1ea1o ra nh\u1eefng b\xe0i vi\u1ebft t\xe2m huy\u1ebft, c\xf3 gi\xe1 tr\u1ecb tham v\u1ea5n cao. "),t.qZA(),t.TgZ(8,"p",4),t._uU(9," T\xecm hi\u1ec3u "),t.TgZ(10,"a",5),t._uU(11,"Ch\xednh s\xe1ch \u0111\u1ea1o \u0111\u1ee9c YouMed."),t.qZA()()())}}),e})(),Ht=(()=>{const i=class{constructor(){}ngOnInit(){}};let e=i;return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-doctor-rbm"]],decls:14,vars:0,consts:[[1,"bg-white","p-4","md:p-6","prose","max-w-none"],[1,"text-lg","font-semibold"],[1,"w-8","h-1","bg-primary","rounded-full"],[1,"border-l-4","border-l-primary","bg-blue-50","pl-4","font-serif","rounded-r-lg","p-3","text-lg"],[1,"mb-0"],["href","https://youmed.vn/tin-tuc/hoi-dong-tham-van-y-khoa/",1,"text-primary","no-underline","border-b","hover:border-b-primary"]],template:function(o,s){1&o&&(t.TgZ(0,"div",0)(1,"h2",1),t._uU(2,"H\u1ed9i \u0111\u1ed3ng tham v\u1ea5n y khoa YouMed"),t.qZA(),t._UZ(3,"div",2),t.TgZ(4,"p"),t._uU(5," M\u1eb7c d\xf9 t\u1ea5t c\u1ea3 b\xe0i vi\u1ebft c\u1ee7a ch\xfang t\xf4i \u0111\u01b0\u1ee3c vi\u1ebft b\u1edfi c\xe1c d\u01b0\u1ee3c s\u0129, b\xe1c s\u0129, \u0111\xf3 \u0111\u1ec1u l\xe0 c\xe1c chuy\xean gia trong l\u0129nh v\u1ef1c c\u1ee7a h\u1ecd. Tuy nhi\xean, \u0111\u1ec3 \u0111\u1ea3m b\u1ea3o t\xednh to\xe0n v\u1eb9n v\xe0 tr\xe1nh nh\u1eefng s\u01a1 su\u1ea5t nh\u1ecf nh\u1ea5t c\xf3 th\u1ec3 c\xf3 trong m\u1ed7i b\xe0i vi\u1ebft, c\xe1c th\xe0nh vi\xean trong H\u1ed9i \u0111\u1ed3ng tham v\u1ea5n y khoa c\u1ee7a YouMed s\u1ebd gi\u1eef vai tr\xf2 ki\u1ec3m duy\u1ec7t, \u0111\xe1nh gi\xe1 c\xe1c ph\u1ea7n n\u1ed9i dung d\u1ef1a tr\xean nh\u1eefng nghi\xean c\u1ee9u m\u1edbi nh\u1ea5t, c\xe1c b\u1eb1ng ch\u1ee9ng x\xe1c th\u1ef1c v\xe0 ch\xednh x\xe1c. T\u1eeb \u0111\xf3 \u0111\u1ea3m b\u1ea3o mang t\u1edbi c\xe1c l\u1eddi khuy\xean, th\xf4ng tin h\u1eefu \xedch nh\u1ea5t \u0111\u1ebfn v\u1edbi c\xe1c \u0111\u1ecdc gi\u1ea3. "),t.qZA(),t.TgZ(6,"p"),t._uU(7," Tr\u01b0\u1eddng h\u1ee3p th\xe0nh vi\xean trong H\u1ed9i \u0111\u1ed3ng tham v\u1ea5n \u0111\xe1nh gi\xe1 c\u1ea7n th\u1ef1c hi\u1ec7n nh\u1eefng c\u1ea3i ti\u1ebfn cho b\xe0i vi\u1ebft, nh\u1eefng c\u1ea3i ti\u1ebfn c\u1ea7n thi\u1ebft \u0111\xf3 s\u1ebd \u0111\u01b0\u1ee3c trao \u0111\u1ed5i tr\u1ef1c ti\u1ebfp v\u1edbi \u0111\u1ed9i ng\u0169 c\xe1c d\u01b0\u1ee3c s\u0129, b\xe1c s\u0129 bi\xean t\u1eadp t\u1eeb \u0111\xf3 \u0111\u01b0a ra c\xe1c ch\u1ec9nh s\u1eeda ho\u1eb7c b\u1ed5 sung ph\xf9 h\u1ee3p. "),t.qZA(),t.TgZ(8,"div",3),t._uU(9," \u0110i\u1ec1u n\xe0y nh\u1eb1m \u0111\u1ea3m b\u1ea3o s\u1ef1 ch\xednh x\xe1c c\u1ee7a th\xf4ng tin, y\u1ebfu t\u1ed1 c\u1ef1c k\xec quan tr\u1ecdng \u0111\u1ed1i v\u1edbi m\u1ed9t trang tin t\u1ee9c v\u1ec1 Y t\u1ebf & S\u1ee9c kh\u1ecfe. "),t.qZA(),t.TgZ(10,"p",4),t._uU(11," T\xecm hi\u1ec3u v\u1ec1 "),t.TgZ(12,"a",5),t._uU(13,"H\u1ed9i \u0111\u1ed3ng tham v\u1ea5n y khoa YouMed."),t.qZA()()())}}),e})();var Wt=c(833),q=c(2340),G=c(8987),Vt=c(635),qt=c(4874),Kt=c(3158),$t=c(745),zt=c(934),Gt=c(6774);const Xt={headers:new G.WM({"Content-Type":"application/json"})};let te=(()=>{const i=class extends zt.b{constructor(r){super(r,q.N.url,"tin-tuc/wp-json/app/v2/author/"),this.http=r}getArticles(r,o,s){let x=new G.LE;return x=x.append("page",o),x=x.append("per_page",s),this.http.get(`${q.N.url}/tin-tuc/wp-json/app/v2/author/${r}/posts`,{params:x,headers:Xt.headers}).pipe((0,Vt.U)(Z=>({code:Z?.code,data:Z?.data,message:Z?.message})),(0,qt.O)({code:null,data:null,message:""}),(0,Kt.K)(Z=>(0,$t.of)({code:Z?.code,data:null,message:Z?.message})))}};let e=i;
1return i.\u0275fac=function(o){return new(o||i)(t.LFG(Gt.h))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),e})(),ee=(()=>{const i=class{constructor(){}ngOnInit(){}};let e=i;return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-doctor-articles-holder"]],decls:6,vars:0,consts:[[1,"flex-1","animate-pulse"],[1,"bg-slate-200","h-5","w-2/3","rounded-full"],[1,"body","pt-4","flex","flex-wrap","items-center","justify-between","gap-2"],[1,"bg-slate-200","h-4","rounded-full","w-[100px]"],[1,"bg-slate-200","h-3","w-8","rounded-full"],[1,"animate-pulse","block","relative","rounded-lg","overflow-hidden","border","border-slate-100","fallback-bg","w-24","h-24","p-1"]],template:function(o,s){1&o&&(t.TgZ(0,"div",0),t._UZ(1,"div",1),t.TgZ(2,"div",2),t._UZ(3,"div",3)(4,"div",4),t.qZA()(),t._UZ(5,"div",5))}}),e})(),ne=(()=>{const i=class{constructor(r){this.elementRef=r,this.intersected=new t.vpe}ngOnInit(){const r=new IntersectionObserver(([o])=>{o.isIntersecting&&(this.intersected.emit(),r.disconnect())});r.observe(this.elementRef.nativeElement)}};let e=i;return i.\u0275fac=function(o){return new(o||i)(t.Y36(t.SBq))},i.\u0275dir=t.lG2({type:i,selectors:[["","intersectionObserver",""]],outputs:{intersected:"intersected"}}),e})();const ie=function(){return{rewriteCDN:!0}};function oe(e,i){if(1&e&&(t.TgZ(0,"figure",19),t._UZ(1,"img",20),t.qZA()),2&e){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("src",null==n||null==n.post_image?null:n.post_image.medium,t.LSH)("alt",null==n?null:n.post_title)("loaderParams",t.DdM(3,ie))}}function re(e,i){if(1&e&&(t.TgZ(0,"time",17),t._uU(1),t.ALo(2,"date"),t.qZA()),2&e){const n=t.oxw().$implicit;t.Q6J("datetime",null==n?null:n.post_modified),t.xp6(1),t.hij("C\u1eadp nh\u1eadt: ",t.xi3(2,2,null==n?null:n.post_modified,"dd/MM/yyyy")," ")}}function se(e,i){if(1&e&&(t.TgZ(0,"article",11),t._UZ(1,"a",12),t.YNc(2,oe,2,4,"figure",13),t.TgZ(3,"h3",14),t._uU(4),t.qZA(),t.TgZ(5,"div",15)(6,"div",16),t._uU(7),t.qZA(),t.TgZ(8,"time",17),t._uU(9),t.ALo(10,"date"),t.qZA(),t.YNc(11,re,3,5,"ng-template",null,18,t.W1O),t.qZA()()),2&e){const n=i.$implicit,r=t.oxw(2);t.xp6(1),t.Q6J("href",r.pageUrl+(null==n?null:n.permalink),t.LSH),t.xp6(1),t.Q6J("ngIf",null==n?null:n.post_image),t.xp6(2),t.hij(" ",null==n?null:n.post_title," "),t.xp6(3),t.Oqu(null==n||null==n.reviewed||null==n.reviewed.author?null:n.reviewed.author.name),t.xp6(1),t.Q6J("datetime",null==n?null:n.post_date),t.xp6(1),t.hij("",t.xi3(10,6,null==n?null:n.post_date,"dd/MM/yyyy")," ")}}function ae(e,i){if(1&e&&(t.ynx(0),t.YNc(1,se,13,9,"article",10),t.BQk()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("ngForOf",n.articles.posts)}}function le(e,i){1&e&&t._UZ(0,"app-doctor-articles-holder",22)}const ce=function(){return[]};function ue(e,i){1&e&&t.YNc(0,le,1,0,"app-doctor-articles-holder",21),2&e&&t.Q6J("ngForOf",t.DdM(1,ce).constructor(6))}function de(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",23),t.NdJ("click",function(){t.CHM(n);const o=t.oxw();return t.KtG(o.getPreArticles())}),t.O4$(),t.TgZ(1,"svg",24),t._UZ(2,"path",25),t.qZA()()}}function pe(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",26),t.NdJ("click",function(){t.CHM(n);const o=t.oxw();return t.KtG(o.getMoreArticles())}),t.O4$(),t.TgZ(1,"svg",24),t._UZ(2,"path",27),t.qZA()()}}let ge=(()=>{const i=class{constructor(r,o){this.articlesService=r,this.platformId=o,this.data$=new Wt.y,this.page=0,this.total=void 0,this.per_page=6,this.currentPage=0,this.pageUrl=q.N.url,this.defaultImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAQAAADa613fAAAAaElEQVR42u3PQREAAAwCoNm/9CL496ABuREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREREWkezG8AZQ6nfncAAAAASUVORK5CYII="}ngOnInit(){}getArticles(r,o,s){this.data$=this.articlesService.getArticles(r,o,s),this.data$.subscribe(x=>{x?.data&&(this.articles=x?.data)})}getMoreArticles(){this.articles?.totalpages>1&&this.articles?.page<this.articles?.totalpages&&this.getArticles(this.data?.news_id,this.articles?.page+1,this.per_page)}getPreArticles(){this.articles?.page>1&&this.getArticles(this.data?.news_id,this.articles?.page-1,this.per_page)}loadMoreData(){(0,a.NF)(this.platformId)&&this.data?.news_id&&this.getArticles(this.data?.news_id,1,this.per_page)}};let e=i;return i.\u0275fac=function(o){return new(o||i)(t.Y36(te),t.Y36(t.Lbi))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-doctor-articles"]],inputs:{data:"data"},decls:12,vars:6,consts:[["id","articles",1,"bg-white","p-4","md:p-6"],[1,"text-lg","font-semibold","mb-4"],["intersectionObserver","",1,"w-8","h-1","bg-primary","rounded-full",3,"intersected"],["id","doctor-article",1,"mt-6","grid","grid-cols-2","gap-4"],[4,"ngIf","ngIfElse"],["postHolder",""],[1,"flex","items-center","justify-between","border-t","border-gray-200","bg-white","py-3"],[1,"flex","flex-1","justify-between"],["aria-label","Previous","class","relative mr-auto inline-flex items-center rounded-md border border-gray-300 bg-white px-4 py-1.5 text-sm font-medium text-gray-700 hover:bg-gray-50",3,"click",4,"ngIf"],["aria-label","Next","class","relative ml-auto inline-flex items-center rounded-md border border-gray-300 bg-white px-4 py-1.5 text-sm font-medium text-gray-700 hover:bg-gray-50",3,"click",4,"ngIf"],["class","col-span-2 md:col-span-1 relative py-4 article grid group",4,"ngFor","ngForOf"],[1,"col-span-2","md:col-span-1","relative","py-4","article","grid","group"],["aria-hidden","true","tabindex","-1",1,"absolute","
1inset-0","z-10","cursor-pointer",3,"href"],["class","figure w-28 h-28 block relative rounded-lg overflow-hidden border border-slate-100",4,"ngIf"],[1,"body","m-0","text-lg","font-semibold","leading-22","break-words","group-hover:text-primary","line-clamp-2"],[1,"body","pt-2","flex","flex-wrap","items-center","justify-between"],[1,"text-xs"],[1,"text-xs","opacity-70",3,"datetime"],["datemodified",""],[1,"figure","w-28","h-28","block","relative","rounded-lg","overflow-hidden","border","border-slate-100"],["aria-label","image","fill","","disableOptimizedSrcset","",1,"object-cover","absolute","inset-0","w-full","h-full",3,"src","alt","loaderParams"],["class","col-span-2 md:col-span-1 flex py-4 gap-4",4,"ngFor","ngForOf"],[1,"col-span-2","md:col-span-1","flex","py-4","gap-4"],["aria-label","Previous",1,"relative","mr-auto","inline-flex","items-center","rounded-md","border","border-gray-300","bg-white","px-4","py-1.5","text-sm","font-medium","text-gray-700","hover:bg-gray-50",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","18","height","18","viewBox","0 0 512 512"],["fill","none","stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","48","d","M328 112L184 256l144 144"],["aria-label","Next",1,"relative","ml-auto","inline-flex","items-center","rounded-md","border","border-gray-300","bg-white","px-4","py-1.5","text-sm","font-medium","text-gray-700","hover:bg-gray-50",3,"click"],["fill","none","stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","48","d","M184 112l144 144-144 144"]],template:function(o,s){if(1&o&&(t.TgZ(0,"div",0)(1,"h2",1),t._uU(2),t.qZA(),t.TgZ(3,"div",2),t.NdJ("intersected",function(){return s.loadMoreData()}),t.qZA(),t.TgZ(4,"div",3),t.YNc(5,ae,2,1,"ng-container",4),t.YNc(6,ue,1,2,"ng-template",null,5,t.W1O),t.qZA(),t.TgZ(8,"div",6)(9,"div",7),t.YNc(10,de,3,0,"button",8),t.YNc(11,pe,3,0,"button",9),t.qZA()()()),2&o){const x=t.MAs(7);t.xp6(2),t.AsE(" B\xe0i vi\u1ebft c\u1ee7a ",null==s.data?null:s.data.prefix," ",null==s.data?null:s.data.name," "),t.xp6(3),t.Q6J("ngIf",null==s.articles?null:s.articles.posts)("ngIfElse",x),t.xp6(5),t.Q6J("ngIf",(null==s.articles?null:s.articles.page)>1),t.xp6(1),t.Q6J("ngIf",(null==s.articles?null:s.articles.totalpages)>1&&(null==s.articles?null:s.articles.page)<(null==s.articles?null:s.articles.totalpages))}},dependencies:[a.sg,a.O5,ee,ne,a.uU],styles:["[_nghost-%COMP%] #doctor-article .article{grid-template-columns:1fr 16px auto;grid-template-rows:repeat(6,minmax(0px,auto));grid-column-gap:0;grid-row-gap:0}[_nghost-%COMP%] #doctor-article .figure{grid-row:1 / span 5;grid-column:3/3;padding-top:100%;width:100px;height:100px}[_nghost-%COMP%] #doctor-article .body{grid-column:1 / span 1}"]}),e})();function he(e,i){if(1&e&&(t.TgZ(0,"li",6)(1,"h3",7)(2,"span",8),t.O4$(),t.TgZ(3,"svg",9),t._UZ(4,"path",10)(5,"path",11),t.qZA(),t._uU(6),t.qZA()()()),2&e){const n=i.$implicit;t.xp6(6),t.hij(" ",null==n?null:n.name," ")}}function me(e,i){if(1&e&&(t.TgZ(0,"div",3)(1,"ul",4),t.YNc(2,he,7,1,"li",5),t.qZA()()),2&e){const n=t.oxw();t.xp6(2),t.Q6J("ngForOf",n.subspecialties)}}let fe=(()=>{const i=class{constructor(){}ngOnInit(){}};let e=i;return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-doctor-subspecialties"]],inputs:{subspecialties:"subspecialties"},decls:4,vars:1,consts:[["id","services",1,"bg-white","p-4","md:p-6"],[1,"text-lg","font-semibold"],["class","mt-4",4,"ngIf"],[1,"mt-4"],[1,"grid","grid-cols-1","sm:grid-cols-2"],["class","col-span-1 flex items-center mb-2",4,"ngFor","ngForOf"],[1,"col-span-1","flex","items-center","mb-2"],[1,"text-base"],[1,"flex","items-center","bg-slate-100","hover:bg-primary","hover:text-white","transform","transition","rounded-full","px-2","py-1"],["width","18","height","18","viewBox","0 0 24 24","fill","none",1,"flex-none","mr-1"],["d","M12 22C17.5 22 22 17.5 22 12C22 6.5 17.5 2 12 2C6.5 2 2 6.5 2 12C2 17.5 6.5 22 12 22Z","stroke","currentColor","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M7.75 11.9999L10.58 14.8299L16.25 9.16992","stroke","currentColor","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"]],template:function(o,s){1&o&&(t.TgZ(0,"div",0)(1,"h2",1),t._uU(2,"Chuy\xean kh\xe1m"),t.qZA(),t.YNc(3,me,3,1,"div",2),t.qZA()),2&o&&(t.xp6(3),t.Q6J("ngIf",s.subspecialties&&(null==s.subspecialties?null:s.subspecialties.length)>0))},dependencies:[a.sg,a.O5]}),e})();function _e(e,i){1&e&&t._UZ(0,"li",5),2&e&&t.Q6J("innerHTML",i.$implicit,t.oJD)}function Ee(e,i){if(1&e&&(t.TgZ(0,"div",1)(1,"h2",2),t._uU(2,"Qu\xe1 tr\xecnh \u0111\xe0o t\u1ea1o"),t.qZA(),t.TgZ(3,"div",3)(4,"ul"),t.YNc(5,_e,1,1,"li",4),t.qZA()()()),2&e){const n=t.oxw();
1t.xp6(5),t.Q6J("ngForOf",n.educations)}}let ve=(()=>{const i=class{constructor(){}ngOnInit(){}};let e=i;return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-doctor-edu"]],inputs:{educations:"educations"},decls:1,vars:1,consts:[["class","bg-white p-4 md:p-6",4,"ngIf"],[1,"bg-white","p-4","md:p-6"],[1,"text-lg","font-semibold"],[1,"mt-4","prose","max-w-none"],[3,"innerHTML",4,"ngFor","ngForOf"],[3,"innerHTML"]],template:function(o,s){1&o&&t.YNc(0,Ee,6,1,"div",0),2&o&&t.Q6J("ngIf",null==s.educations?null:s.educations.length)},dependencies:[a.sg,a.O5]}),e})();function xe(e,i){if(1&e&&(t.TgZ(0,"div",1)(1,"h2",2),t._uU(2,"Kinh nghi\u1ec7m"),t.qZA(),t._UZ(3,"div",3),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.Q6J("innerHTML",n.experiences||"\u0110ang c\u1eadp nh\u1eadt",t.oJD)}}let ye=(()=>{const i=class{constructor(){}ngOnInit(){}};let e=i;return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-doctor-exp"]],inputs:{experiences:"experiences"},decls:1,vars:1,consts:[["class","bg-white p-4 md:p-6",4,"ngIf"],[1,"bg-white","p-4","md:p-6"],[1,"text-lg","font-semibold"],[1,"mt-4","prose","max-w-none",3,"innerHTML"]],template:function(o,s){1&o&&t.YNc(0,xe,4,1,"div",0),2&o&&t.Q6J("ngIf",null==s.experiences?null:s.experiences.length)},dependencies:[a.O5]}),e})();function Ae(e,i){if(1&e&&(t.ynx(0),t.TgZ(1,"div")(2,"p",6),t._uU(3),t.qZA(),t.TgZ(4,"p",7),t._uU(5),t.qZA()(),t.BQk()),2&e){const n=i.$implicit;t.xp6(3),t.Oqu(n.name),t.xp6(2),t.hij(" ",null==n?null:n.description," ")}}function be(e,i){if(1&e&&(t.TgZ(0,"div",4),t.YNc(1,Ae,6,2,"ng-container",5),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",null==n.config?null:n.config.promotions)}}function Ce(e,i){if(1&e&&(t.TgZ(0,"div",1)(1,"h2",2),t._uU(2,"Khuy\u1ebfn m\xe3i"),t.qZA(),t.YNc(3,be,2,1,"div",3),t.qZA()),2&e){const n=t.oxw();t.xp6(3),t.Q6J("ngIf",(null==n.config||null==n.config.promotions?null:n.config.promotions.length)>0)}}let we=(()=>{const i=class{constructor(){}ngOnInit(){}};let e=i;return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-doctor-promotion"]],inputs:{config:"config"},decls:1,vars:1,consts:[["id","promotion","class","bg-white p-4 md:p-6",4,"ngIf"],["id","promotion",1,"bg-white","p-4","md:p-6"],[1,"text-lg","font-semibold","text-pink-500"],["class","flex flex-col gap-4",4,"ngIf"],[1,"flex","flex-col","gap-4"],[4,"ngFor","ngForOf"],[1,"text-base","font-medium","text-gray-700"],[1,"prose","max-w-none","flex","items-center","gap-1","flex-wrap"]],template:function(o,s){1&o&&t.YNc(0,Ce,4,1,"div",0),2&o&&t.Q6J("ngIf",null==s.config?null:s.config.promotionEnabled)},dependencies:[a.sg,a.O5]}),e})();function Te(e,i){if(1&e&&(t.TgZ(0,"div",1)(1,"div",2),t.O4$(),t.TgZ(2,"svg",3),t._UZ(3,"path",4),t.qZA(),t.kcU(),t.TgZ(4,"label",5),t._uU(5,"L\u01b0u \xfd"),t.qZA()(),t._UZ(6,"div",6),t.qZA()),2&e){const n=t.oxw();t.xp6(6),t.Q6J("innerHTML",null==n.config?null:n.config.bookingMessage,t.oJD)}}let De=(()=>{const i=class{constructor(){}ngOnInit(){}};let e=i;return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-doctor-booking-note"]],inputs:{config:"config"},decls:1,vars:1,consts:[["class","bg-orange-50 p-4",4,"ngIf"],[1,"bg-orange-50","p-4"],[1,"flex","items-center","text-orange-600"],["width","16","height","16","viewBox","0 0 16 16"],["d","M3.24343 4.33294L3.24379 4.33273L7.19485 2.04737C7.19521 2.04717 7.19557 2.04696 7.19593 2.04675C7.69613 1.76143 8.30593 1.76291 8.79675 2.04625C8.79676 2.04626 8.79677 2.04626 8.79679 2.04627L12.7535 4.331C12.754 4.3313 12.7545 4.3316 12.755 4.33191C13.2495 4.62321 13.5543 5.14695 13.5601 5.72223V10.2799C13.5601 10.8556 13.2545 11.3834 12.7635 11.6669L12.7634 11.6669L8.80537 13.9525C8.80505 13.9527 8.80472 13.9528 8.80439 13.953C8.30417 14.2384 7.6943 14.237 7.20343 13.9536L3.24518 11.6679C2.7506 11.3765 2.44678 10.8468 2.44678 10.2799V5.71992C2.44678 5.1442 2.75236 4.61645 3.24343 4.33294ZM8.827 11.6601L8.83629 11.6508L8.84509 11.6411C8.94153 11.5339 9.01918 11.4128 9.07498 11.2789C9.12963 11.1477 9.16678 10.9958 9.16678 10.8333C9.16678 10.6734 9.13085 10.5238 9.07769 10.3942C9.01646 10.2377 8.93158 10.1215 8.84509 10.0254L8.83629 10.0157L8.827 10.0064C8.50056 9.67993 7.99421 9.57288 7.55779 9.75695C7.40294 9.81808 7.28773 9.90238 7.1923 9.98827L7.18252 9.99707L7.17322 10.0064C6.94754 10.232 6.83344 10.5349 6.83344 10.8333C6.83344 10.9696 6.85425 11.1245 6.91857 11.2789L6.9252 11.2948L6.9329 11.3102C6.98806 11.4205 7.0585 11.5337 7.15513 11.6411L7.17274 11.6606L7.1923 11.6782C7.28839 11.7647 7.40454 11.8496 7.56102 11.9108C7.69066 11.964 7.84029 11.9999 8.00011 11.9999C8.30776 11.9999 8.60311 11.884 8.827 11.6601ZM8.00011 4.16659C7.45064 4.16659 7.00011 4.61711 7.00011 5.16659V8.66659C7.00011 9.21606 7.45064 9.66659 8.00011 9.66659C8.54959 9.66659 9.00011 9.21606 9.00011 8.66659V5.166
159C9.00011 4.61711 8.54959 4.16659 8.00011 4.16659Z","fill","currentColor","stroke","currentColor"],[1,"ml-1","font-medium"],[1,"text-base","text-gray-900",3,"innerHTML"]],template:function(o,s){1&o&&t.YNc(0,Te,7,1,"div",0),2&o&&t.Q6J("ngIf",null==s.config?null:s.config.bookingMessage)},dependencies:[a.O5]}),e})(),Ze=(()=>{const i=class{constructor(){}ngOnInit(){}};let e=i;return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-doctor-placeholder"]],decls:88,vars:0,consts:[[1,"bg-white"],[1,"animate-pulse","flex","flex-col","md:flex-row","items-stretch","relative","lg:rounded-t-xl"],[1,"p-4","pb-0","md:p-6","text-center"],[1,"relative","aspect-square","rounded-full","overflow-hidden","mx-auto","w-40","h-40","md:w-44","md:h-44","fallback-bg"],[1,"flex","flex-col","justify-center","flex-1","p-4","md:pl-0","gap-1"],[1,"h-7","w-2/3","rounded-full","bg-slate-200","mx-auto","md:ml-0"],[1,"h-5","w-20","max-w-full","mt-px","rounded-full","bg-slate-200","mx-auto","md:ml-0"],[1,"flex","flex-col","md:flex-row","md:gap-4","mt-px"],[1,"h-3","my-1","w-32","max-w-full","rounded-full","bg-slate-200"],[1,"h-3","my-1","w-48","max-w-full","mt-1","rounded-full","bg-slate-200"],[1,"flex","gap-4","mt-2"],[1,"w-5","h-5","rounded-full","bg-slate-200"],[1,"flex","p-3","overflow-x-scroll","gap-4","border-b","md:hidden"],[1,"w-20","h-5","rounded-full","bg-slate-200"],[1,"p-4","md:p-6"],[1,"w-20","h-7","rounded-full","bg-slate-200"],[1,"grid","grid-cols-3","gap-4","mt-4"],[1,"h-4","bg-slate-200","rounded-full","col-span-2"],[1,"h-4","bg-slate-200","rounded-full","col-span-1"],[1,"grid","grid-cols-2","gap-4","mt-4"],[1,"h-8","bg-slate-200","rounded-full","col-span-1"],[1,"p-4","md:p-6","grid","grid-cols-1","md:grid-cols-2","gap-4"],[1,"bg-slate-100","col-span-1","flex","flex-col","gap-6","p-6","rounded-2xl"],[1,"bg-slate-200","rounded-full","h-8","w-20"],[1,"bg-slate-200","rounded-full","h-4","w-2/3"],[1,"bg-slate-200","rounded-full","h-4","w-2/3","mt-4"],[1,"bg-slate-200","rounded-full","h-6","w-20"],[1,"col-span-1"],[1,"grid","grid-cols-2","md:grid-cols-4","rounded-xl","gap-2","overflow-hidden","mt-4"],[1,"bg-slate-200","aspect-square","w-full"]],template:function(o,s){1&o&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._UZ(3,"div",3),t.qZA(),t.TgZ(4,"div",4),t._UZ(5,"div",5)(6,"div",6),t.TgZ(7,"div",7),t._UZ(8,"div",8)(9,"div",9),t.qZA(),t.TgZ(10,"div",7),t._UZ(11,"div",8)(12,"div",9),t.qZA(),t.TgZ(13,"div",7),t._UZ(14,"div",8)(15,"div",9),t.qZA(),t.TgZ(16,"div",10),t._UZ(17,"div",11)(18,"div",11)(19,"div",11)(20,"div",11),t.qZA()()(),t.TgZ(21,"div",12),t._UZ(22,"div",13)(23,"div",13)(24,"div",13)(25,"div",13),t.qZA(),t.TgZ(26,"div",14),t._UZ(27,"div",15),t.TgZ(28,"div",16),t._UZ(29,"div",17)(30,"div",18)(31,"div",18)(32,"div",17)(33,"div",18)(34,"div",18)(35,"div",18)(36,"div",17)(37,"div",18)(38,"div",18)(39,"div",18)(40,"div",18)(41,"div",17)(42,"div",18),t.qZA()(),t.TgZ(43,"div",14),t._UZ(44,"div",15),t.TgZ(45,"div",19),t._UZ(46,"div",20)(47,"div",20)(48,"div",20)(49,"div",20)(50,"div",20)(51,"div",20)(52,"div",20)(53,"div",20),t.qZA()(),t.TgZ(54,"div",21)(55,"div",22),t._UZ(56,"div",23),t.TgZ(57,"div"),t._UZ(58,"div",24)(59,"div",25),t.qZA(),t._UZ(60,"div",26),t.qZA(),t.TgZ(61,"div",27),t._UZ(62,"div",23),t.TgZ(63,"div",28),t._UZ(64,"div",29)(65,"div",29)(66,"div",29)(67,"div",29),t.qZA()()(),t.TgZ(68,"div",14),t._UZ(69,"div",15),t.TgZ(70,"div",16),t._UZ(71,"div",17)(72,"div",18)(73,"div",18)(74,"div",17)(75,"div",18)(76,"div",18)(77,"div",18),t.qZA()(),t.TgZ(78,"div",14),t._UZ(79,"div",15),t.TgZ(80,"div",16),t._UZ(81,"div",17)(82,"div",18)(83,"div",18)(84,"div",17)(85,"div",18)(86,"div",18)(87,"div",18),t.qZA()()())}}),e})();const Ie=function(){return{rewriteCDN:!0}};function Oe(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"div",7)(1,"img",8),t.NdJ("click",function(){const o=t.CHM(n),s=o.$implicit,x=o.index,Z=t.oxw(2);return t.KtG(Z.showImage(s,x))}),t.qZA()()}if(2&e){const n=i.$implicit;t.xp6(1),t.Q6J("ngSrc",n)("loaderParams",t.DdM(2,Ie))}}function ke(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"div",9),t.NdJ("click",function(){t.CHM(n);const o=t.oxw(2);
1return t.KtG(o.showImage(o.gallery[3],3))}),t.TgZ(1,"div",10),t._uU(2),t.qZA()()}if(2&e){const n=t.oxw(2);t.xp6(2),t.hij("",(null==n.gallery?null:n.gallery.length)-3,"+")}}function Fe(e,i){if(1&e&&(t.TgZ(0,"div",2)(1,"h2",3),t._uU(2,"H\xecnh \u1ea3nh"),t.qZA(),t.TgZ(3,"div",4),t.YNc(4,Oe,2,3,"div",5),t.YNc(5,ke,3,1,"div",6),t.qZA()()),2&e){const n=t.oxw();t.xp6(4),t.Q6J("ngForOf",n._gallery),t.xp6(1),t.Q6J("ngIf",(null==n.gallery?null:n.gallery.length)&&(null==n.gallery?null:n.gallery.length)>3)}}function Le(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"div",11)(1,"span",12),t.NdJ("click",function(){t.CHM(n);const o=t.oxw();return t.KtG(o.closeViewer())}),t._uU(2,"\xd7"),t.qZA(),t._UZ(3,"img",13),t.TgZ(4,"button",14),t.NdJ("click",function(){t.CHM(n);const o=t.oxw();return t.KtG(o.previousImage())}),t.TgZ(5,"span",15),t.O4$(),t.TgZ(6,"svg",16),t._UZ(7,"path",17),t.qZA()()(),t.kcU(),t.TgZ(8,"button",18),t.NdJ("click",function(){t.CHM(n);const o=t.oxw();return t.KtG(o.nextImage())}),t.TgZ(9,"span",15),t.O4$(),t.TgZ(10,"svg",16),t._UZ(11,"path",19),t.qZA()()()()}if(2&e){const n=t.oxw();t.xp6(3),t.Q6J("src",n.currentImage,t.LSH),t.xp6(1),t.Q6J("disabled",0===n.currentIndex),t.xp6(4),t.Q6J("disabled",n.currentIndex===n.gallery.length-1)}}let Me=(()=>{const i=class{get _gallery(){return this.gallery?.slice(0,3)}constructor(){this.images=[],this.currentIndex=0,this.showViewer=!1}ngOnInit(){this.gallery?.forEach(r=>{this.images.push({src:r,alt:"H\xecnh \u1ea3nh b\xe1c s\u0129"})})}showImage(r,o){this.currentIndex=o,this.currentImage=r,this.showViewer=!0}closeViewer(){this.showViewer=!1}previousImage(){0!==this.currentIndex&&(this.currentIndex--,this.currentImage=this.gallery[this.currentIndex])}nextImage(){this.currentIndex<this.gallery.length-1&&(this.currentIndex++,this.currentImage=this.gallery[this.currentIndex])}};let e=i;return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-gallery-doctor"]],inputs:{gallery:"gallery"},decls:2,vars:2,consts:[["class","bg-white p-4 md:p-6 flex-1",4,"ngIf"],["id","image-viewer","class","fixed z-[91] inset-0 overflow-auto bg-black bg-opacity-90 flex justify-center items-center",4,"ngIf"],[1,"bg-white","p-4","md:p-6","flex-1"],[1,"text-lg","font-semibold"],[1,"mt-4","grid","grid-cols-2","md:grid-cols-4","gap-2","rounded-xl","overflow-hidden"],["class","aspect-square w-full overflow-hidden md:max-h-36 md:h-36 fallback-bg",4,"ngFor","ngForOf"],["class","flex items-center justify-center w-full h-full object-cover cursor-zoom-in bg-slate-200",3,"click",4,"ngIf"],[1,"aspect-square","w-full","overflow-hidden","md:max-h-36","md:h-36","fallback-bg"],["width","140","height","140","alt","img",1,"block","w-full","h-full","object-cover","cursor-zoom-in","bg-slate-200",3,"ngSrc","loaderParams","click"],[1,"flex","items-center","justify-center","w-full","h-full","object-cover","cursor-zoom-in","bg-slate-200",3,"click"],[1,"text-center","text-base"],["id","image-viewer",1,"fixed","z-[91]","inset-0","overflow-auto","bg-black","bg-opacity-90","flex","justify-center","items-center"],[1,"close","z-20",3,"click"],["id","full-image",1,"modal-content",3,"src"],["type","button",1,"absolute","top-0","left-0","z-10","flex","items-center","justify-center","h-full","px-4","cursor-pointer","group","focus:outline-none",3,"disabled","click"],[1,"inline-flex","items-center","justify-center","w-8","h-8","rounded-full","sm:w-10","sm:h-10","bg-white/30","dark:bg-gray-800/30","group-hover:bg-white/50","dark:group-hover:bg-gray-800/60","group-focus:ring-4","group-focus:ring-white","dark:group-focus:ring-gray-800/70","group-focus:outline-none"],["aria-hidden","true","fill","none","stroke","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"w-5","h-5","text-white","sm:w-6","sm:h-6","dark:text-gray-800"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M15 19l-7-7 7-7"],["type","button",1,"absolute","top-0","right-0","z-10","flex","items-center","justify-center","h-full","px-4","cursor-pointer","group","focus:outline-none",3,"disabled","click"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 5l7 7-7 7"]],template:function(o,s){1&o&&(t.YNc(0,Fe,6,2,"div",0),t.YNc(1,Le,12,3,"div",1)),2&o&&(t.Q6J("ngIf",s.gallery&&(null==s.gallery?null:s.gallery.length)>0),t.xp6(1),t.Q6J("ngIf",s.showViewer))},dependencies:[a.sg,a.O5,a.Zd],styles:[".modal-content[_ngcontent-%COMP%]{margin:auto;display:block;width:80%;max-width:700px;animation-name:_ngcontent-%COMP%_zoom;animation-duration:.6s}@keyframes _ngcontent-%COMP%_zoom{0%{transform:scale(0)}to{transform:scale(1)}}#image-viewer[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{position:absolute;top:30px;right:35px;color:#f1f1f1;font-size:40px;font-weight:700;transition:.3s}#image-viewer[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]:hover, #image-viewer[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]:focus{color:#bbb;text-decoration:none;cursor:pointer}@media only screen and (max-width: 700px){.modal-content[_ngcontent-%COMP%]{width:100%}}"]}),e})();function Ue(e,i){if(1&e&&t._UZ(0,"app-doctor-booking-note",14),2&e){const n=t.oxw(2);t.Q6J("config",n.config)}}function Be(e,i){if(1&e&&t._UZ(0,"app-working-date-and-slot-carousel",26),2&e){const n=t.oxw(2);t.Q6J("data",n.data)("config",n.config)}}function Pe(e,i){if(1&e&&t._UZ(0,"app-working-date-and-slot-carousel",27),2&e){const n=t.oxw(2);t.Q6J("data",n.data)("config",n.config)("type","ONLINE")}}function Se(e,i){if(1&e&&t._UZ(0,"app-intro-doctor",28),2&e){const n=t.oxw(2);t.Q6J("intro",null==n.data?null:n.data.intro)}}function Ne(e,i){if(1&e&&t._UZ(0,"app-doctor-subspecialties",29),2&e){const n=t.oxw(2);t.Q6J("subspecialties",null==n.data?null:n.data.subspecialties)}}function Re(e,i){if(1&e&&t._UZ(0,"app-doctor-address",30),2&e){const n=t.oxw(2);t.Q6J("address",n.fullAddress)}}function Ye(e,i){if(1&e&&t._UZ(0,"app-gallery-doctor",31),2&e){const n=t.oxw(2);t.Q6J("gallery",n.data.gallery)}}function Je(e,i){if(1&e&&t._UZ(0,"app-doctor-edu",32),2&e){const n=t.oxw(2);t.Q6J("educations",null==n.data?null:n.data.educations)}}function Qe(e,i){if(1&e&&t._UZ(0,"app-doctor-exp",33),2&e){const n=t.oxw(2);t.Q6J("experiences",null==n.data?null:n.data.experiences)}}function je(e,i){if(1&e&&t._UZ(0,"app-doctor-awards",34),2&e){const n=t.oxw(2);t.Q6J("awards",null==n.data?null:n.data.awards)}}
1function He(e,i){1&e&&t._UZ(0,"app-doctor-content-policy")}function We(e,i){1&e&&t._UZ(0,"app-doctor-rbm")}function Ve(e,i){1&e&&t._UZ(0,"app-doctor-ethics-policy")}function qe(e,i){if(1&e&&t._UZ(0,"app-doctor-articles",10),2&e){const n=t.oxw(2);t.Q6J("data",n.data)}}function Ke(e,i){if(1&e&&(t.ynx(0),t._UZ(1,"app-info-doctor",9)(2,"app-doctor-topnav",10),t.YNc(3,Ue,1,1,"app-doctor-booking-note",11),t.YNc(4,Be,1,2,"app-working-date-and-slot-carousel",12),t.YNc(5,Pe,1,3,"app-working-date-and-slot-carousel",13),t._UZ(6,"app-doctor-promotion",14)(7,"app-doctor-videos",15),t.YNc(8,Se,1,1,"app-intro-doctor",16),t.YNc(9,Ne,1,1,"app-doctor-subspecialties",17),t.TgZ(10,"div",18),t.YNc(11,Re,1,1,"app-doctor-address",19),t.YNc(12,Ye,1,1,"app-gallery-doctor",20),t.qZA(),t.YNc(13,Je,1,1,"app-doctor-edu",21),t.YNc(14,Qe,1,1,"app-doctor-exp",22),t.YNc(15,je,1,1,"app-doctor-awards",23),t.YNc(16,He,1,0,"app-doctor-content-policy",24),t.YNc(17,We,1,0,"app-doctor-rbm",24),t.YNc(18,Ve,1,0,"app-doctor-ethics-policy",24),t.YNc(19,qe,1,1,"app-doctor-articles",25),t._UZ(20,"app-doctor-footer-nav",10)(21,"app-doctor-footer",10),t.BQk()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("data",n.data)("isOpenService",n.isOpenService),t.xp6(1),t.Q6J("data",n.data),t.xp6(1),t.Q6J("ngIf",n.config),t.xp6(1),t.Q6J("ngIf",(null==n.data?null:n.data.booking)&&n.config),t.xp6(1),t.Q6J("ngIf",(null==n.data?null:n.data.bookCallEnabled)&&n.config),t.xp6(1),t.Q6J("config",n.config),t.xp6(1),t.Q6J("videosUrl",null==n.data||null==n.data.social_videos||null==n.data.social_videos[0]?null:n.data.social_videos[0].links),t.xp6(1),t.Q6J("ngIf",null==n.data?null:n.data.intro),t.xp6(1),t.Q6J("ngIf","OLD_EDITOR"!==(null==n.data?null:n.data.doctor_type)&&(null==n.data?null:n.data.subspecialties)&&n.isOpenService),t.xp6(2),t.Q6J("ngIf",n.isHideAddress),t.xp6(1),t.Q6J("ngIf",n.data.gallery),t.xp6(1),t.Q6J("ngIf",null==n.data?null:n.data.educations),t.xp6(1),t.Q6J("ngIf",null==n.data?null:n.data.experiences),t.xp6(1),t.Q6J("ngIf",null==n.data?null:n.data.awards),t.xp6(1),t.Q6J("ngIf","EDITOR"===(null==n.data?null:n.data.doctor_type)),t.xp6(1),t.Q6J("ngIf","RBM"===(null==n.data?null:n.data.doctor_type)),t.xp6(1),t.Q6J("ngIf","EDITOR"===(null==n.data?null:n.data.doctor_type)||"RBM"===(null==n.data?null:n.data.doctor_type)),t.xp6(1),t.Q6J("ngIf",null==n.data?null:n.data.news_id),t.xp6(1),t.Q6J("data",n.data),t.xp6(1),t.Q6J("data",n.data)}}function $e(e,i){1&e&&t._UZ(0,"app-doctor-placeholder")}const ze=[{path:"",component:(()=>{const i=class extends d.e{get item(){return this.srv}constructor(r,o,s,x,Z,J,X,K,en,nn,on){super(),this.srv=r,this.router=o,this.actRouter=s,this.dataV1Service=x,this.userV4Service=Z,this.userService=J,this.paymentService=X,this.providersService=K,this.servicesService=en,this.seo=nn,this.locale=on,this._array=m.g,this.slugDoctor="",this.activeItemIndex=0,this.openLink=!1,this.sId="",this.openLinkContact=!1,this.isOpenService=!1,this.isHideAddress=!1,this.currentDate=new Date,this.listDates=[_.E.getNextDate(this.currentDate,0),_.E.getNextDate(this.currentDate,30)]}ngOnInit(){this.initData()}initData(){this.slugDoctor=this.actRouter.snapshot.params?.slug,this.slugDoctor&&this.getProfileDoctor()}getProfileDoctor(){this.dataV1Service.getProfileDoctorBySlug(this.slugDoctor).subscribe(r=>{r.data?.succeeded&&r.data?.params?.result?(this.data=this.cleanArrayData(r.data?.params?.result),this.fullAddress=this.getFullAddress(this.data,!0),this.isOpenService=this.data?.booking||this.data?.bookCallEnabled||this.data?.instantCallEnabled,this.addSEO(),this.srv.doctorBySlug=r.data?.params?.result,this.srv.sId=r.data?.params?.result?.id,this.data?.id_service_integrated&&this.providersService.getProviderBysId(this.data?.id_service_integrated).subscribe(o=>{if(o.data?.succeeded&&o.data?.result?.providers&&o.data?.result?.providers?.length){const s=o.data?.result?.providers[0];s?.id&&(this.data.providerId=s.id)}}),this.checkServiceBookmarked(),this.getEnableConfig(this.data)):r.data?.succeeded&&!r.data?.params?.result?alert("Th\xf4ng tin B\xe1c s\u0129 kh\xf4ng t\u1ed3n t\u1ea1i, vui l\xf2ng ki\u1ec3m tra l\u1ea1i!"):r.data&&!r.data?.succeeded&&this.router.navigate(["/error/404"])})}checkServiceBookmarked(){if(this.data){if(!this.userService.getCurrentUser())return;this.userV4Service.checkServiceBookmarkedByEsDocId(this.data.id).subscribe(o=>{o?.data?.succeeded&&(this.data.bookMark=o?.data?.result,this.item.bookMark=o?.data?.result)})}}cleanArrayData(r){let o=r;return o?.educations&&o?.educations?.length&&(o.educations=this._array.
1cleanIsNullOrEmpty(o?.educations)),o?.prizes&&o?.prizes?.length&&(o.prizes=this._array.cleanIsNullOrEmpty(o?.prizes)),o}getFullAddress(r,o){(r?.address||r?.ward_obj||r?.district_obj||r?.city_obj)&&(this.isHideAddress=!0);let s="";return o?(r?.address&&(s+=r.address),r?.ward_obj?.name&&(s+=(s?", ":"")+r.ward_obj.name),r?.district_obj?.name&&(s+=(s?", ":"")+r.district_obj.name),r?.city_obj?.name&&(s+=(s?", ":"")+r.city_obj.name)):(r?.address&&(s+=r.address),r?.ward_obj?.name&&(s+=(s&&r.address?", ":"")+r.ward_obj.name),r?.district_obj?.name&&(s+=(s&&(r.address||r.ward_obj?.name)?", ":"")+r.district_obj.name)),s}addSEO(){this.prefix=this.data?.doctor_degree?.full_prefix?this.data?.doctor_degree?.full_prefix:"B\xe1c s\u0129",this.specialties=this.data?.specialties?"Chuy\xean khoa "+this.data?.specialties?.map(r=>" "+r?.name):null,this.title=this.prefix+" "+this.data?.name+(this.specialties?" - "+this.specialties:""),this.description=this.data?.seo_description||this.title+" "+(this.data?.jobs?this.data?.jobs+" ":"")+(this.data?.workplaces?this.data?.workplaces?.map(r=>r?.name):""),this.seo.setData({title:"\u0110\u1eb7t kh\xe1m "+this.title,description:this.description,image:this.data?.avatar_remote+"?aspect_ratio=1:1&width=200",robots:this.data?.robots_index,pagetype:"Profile",name:{first_name:this.data?.last_name,last_name:this.data?.first_name}}),this.seo.setSchema({title:this.prefix+" "+this.data?.name,image:this.data?.avatar_remote,honorificPrefix:this.data?.doctor_degree?.full_prefix,jobTitle:this.data?.job_title,socials:this.data?.social_profile,description:this.description,address:{street:this.getFullAddress(this.data,!1),city:this.data?.city_obj?this.data?.city_obj?.name:"",postalcode:this.data?.postcode?this.data?.postcode:7e5},news_id:this.data?.news_id,institutions:this.data?.institutions,specialties:this.data?.specialties,award:this.data?.awards,worksfor:this.data?.workplaces,subspecialties:this.data?.subspecialties,photo:this.data?.gallery},this.isOpenService?"Physician":"Person")}getEnableConfig(r){this.servicesService.getServiceByEsDosId(r.esDocId,r.esDocType).subscribe(o=>{o?.data?.succeeded&&(this.config=o.data?.result,this.item.config=this.config,this.srv.sId=o.data?.result.id)})}};let e=i;return i.\u0275fac=function(o){return new(o||i)(t.Y36(p.s),t.Y36(v.F0),t.Y36(v.gz),t.Y36(E.x),t.Y36(A.u),t.Y36(b.K),t.Y36(L.t),t.Y36(B.j),t.Y36(S.r),t.Y36(P.x),t.Y36(t.soG))},i.\u0275cmp=t.Xpm({type:i,selectors:[["ng-component"]],features:[t.qOj],decls:17,vars:2,consts:[[1,"bg-slate-100"],["aria-label","breadcrumb",1,"max-w-4xl","mx-auto","block"],["role","list",1,"flex","flex-wrap","space-x-2","p-4"],["routerLink","/"],[1,"text-gray-300"],["routerLink","/bac-si"],[1,"max-w-4xl","mx-auto"],[4,"ngIf","ngIfElse"],["doctorPlaceHolder",""],[3,"data","isOpenService"],[3,"data"],[3,"config",4,"ngIf"],[3,"data","config",4,"ngIf"],[3,"data","config","type",4,"ngIf"],[3,"config"],[3,"videosUrl"],[3,"intro",4,"ngIf"],[3,"subspecialties",4,"ngIf"],[1,"grid","grid-cols-2","bg-white"],["class","flex col-span-2 md:col-span-1",3,"address",4,"ngIf"],["class","flex col-span-2 md:col-span-1",3,"gallery",4,"ngIf"],[3,"educations",4,"ngIf"],[3,"experiences",4,"ngIf"],[3,"awards",4,"ngIf"],[4,"ngIf"],[3,"data",4,"ngIf"],[3,"data","config"],[3,"data","config","type"],[3,"intro"],[3,"subspecialties"],[1,"flex","col-span-2","md:col-span-1",3,"address"],[1,"flex","col-span-2","md:col-span-1",3,"gallery"],[3,"educations"],[3,"experiences"],[3,"awards"]],template:function(o,s){if(1&o&&(t.TgZ(0,"section",0)(1,"nav",1)(2,"ol",2)(3,"li")(4,"a",3),t._uU(5,"Trang ch\u1ee7 "),t.qZA()(),t.TgZ(6,"li")(7,"span",4),t._uU(8,"/"),t.qZA()(),t.TgZ(9,"li")(10,"a",5),t._uU(11,"B\xe1c s\u0129"),t.qZA()()()(),t.TgZ(12,"main",6),t.YNc(13,Ke,22,21,"ng-container",7),t.YNc(14,$e,1,0,"ng-template",null,8,t.W1O),t.qZA()(),t._UZ(16,"app-download-booking")),2&o){const x=t.MAs(15);t.xp6(13),t.Q6J("ngIf",s.data)("ngIfElse",x)}},dependencies:[a.O5,v.rH,F.f,N.y,z,wt,Zt,Ot,Pt,Nt,Yt,Jt,Qt,jt,Ht,ge,fe,ve,ye,we,De,Ze,Me]}),e})()}];let Ge=(()=>{const i=class{};let e=i;return i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[v.Bz.forChild(ze),v.Bz]}),e})();var Xe=c(2422);let tn=(()=>{const i=class{};let e=i;return i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({providers:[a.uU,{provide:a.bZ,useValue:f.A},{provide:a.xQ,useValue:["https://youmed..ymdev.io.vn","https://youmed.vn"]}],imports:[a.ez,Ge,l._N,g.mZ,D.E,T.K,u.aw,Xe.g,z]}),e})()},3147:(k,C,c)=>{c.d(C,{y:()=>m});var a=c(4666),l=c(2560);const u=["reelsContainer"],g=["videoContainer"];function f(_,d){1&_&&(l.ynx(0),l._UZ(1,"div",10,11),l.BQk())}const D=function(_){return{"md:hidden":_}};function T(_,d){if(1&_){const p=l.EpF();l.TgZ(0,"span",12),l.NdJ("click",function(){l.CHM(p);const A=l.oxw(2);return l.KtG(A.scrollToLeft())}),l.O4$(),l.TgZ(1,"svg",13),l._UZ(2,"path",14),l.qZA()()}if(2&_){const p=l.oxw(2);l.Q6J("ngClass",l.VKq(1,D,p.hideArrows))}}function v(_,d){if(1&_){const p=l.EpF();l.TgZ(0,"span",15),l.NdJ("click",function(){l.CHM(p);const A=l.oxw(2);return l.KtG(A.scrollToRight())}),l.O4$(),l.TgZ(1,"svg",13),l._UZ(2,"path",16),l.qZA()()}if(2&_){const p=l.oxw(2);l.Q6J("ngClass",l.VKq(1,D,p.hideArrows))}}function t(_,d){if(1&_&&(l.TgZ(0,"div",1)(1,"div",2)(2,"h2",3),l._uU(3,"Videos"),l.qZA(),l.TgZ(4,"div",4)(5,"div",5,6),l.YNc(7,f,3,0,"ng-container",7),l.qZA(),l.YNc(8,T,3,3,"span",8),l.YNc(9,v,3,3,"span",9),l.qZA()()()),2&_){const p=l.oxw();l.xp6(1),l.Q6J("ngClass",p.videoClass),l.xp6(6),l.Q6J("ngForOf",p.videosUrl)("ngForTrackBy",p.trackByIndex),l.xp6(1),l.Q6J("ngIf",p.videosUrl.length>1),l.xp6(1),l.Q6J("ngIf",p.videosUrl.length>1)}}let m=(()=>{const d=class{set videosUrl(E){this._videosUrl=E??[]}get videosUrl(){return this._videosUrl}constructor(E){this.platformId=E,this._videosUrl=[],this.videoClass="",this.arrowHideLimit=3,this.players=[]}get hideArrows(){return this.videosUrl.length<=this.arrowHideLimit}ngOnInit(){(0,a.NF)(this.platformId)&&this.loadYouTubeAPI().then(()=>{this.initPlayers()})}ngAfterViewInit(){(0,a.NF)(this.platformId)&&window.YT?.Player&&this.initPlayers()}scrollToLeft(){const E=this.reelsContainer?.nativeElement;E?.scrollTo({left:E.scrollLeft-220,behavior:"smooth"})}scrollToRight(){const E=this.reelsContainer?.nativeElement;E?.scrollTo({left:E.scrollLeft+220,behavior:"smooth"})}loadYouTubeAPI(){return new Promise(E=>{if(window.YT?.Player)E();else{const A=document.createElement("script");A.src="https://www.youtube.com/iframe_api",document.body.appendChild(A),window.onYouTubeIframeAPIReady=()=>E()}})}
1initPlayers(){this.players=[],this.videoContainers.forEach((E,A)=>{const b=this.extractVideoId(this.videosUrl[A]),L=new YT.Player(E.nativeElement,{videoId:b,playerVars:{autoplay:0,mute:0,modestbranding:1,playsinline:1,rel:0},events:{onStateChange:B=>{B.data===YT.PlayerState.PLAYING&&this.pauseOtherVideos(A)}}});this.players.push(L)})}pauseOtherVideos(E){this.players.forEach((A,b)=>{b!==E&&A.pauseVideo&&A.pauseVideo()})}extractVideoId(E){const A=E.match(/(?:youtu\.be\/|shorts\/|v=)([\w-]{11})/);return A?A[1]:""}trackByIndex(E){return E}};let _=d;return d.\u0275fac=function(A){return new(A||d)(l.Y36(l.Lbi))},d.\u0275cmp=l.Xpm({type:d,selectors:[["app-doctor-videos"]],viewQuery:function(A,b){if(1&A&&(l.Gf(u,5),l.Gf(g,5)),2&A){let L;l.iGM(L=l.CRH())&&(b.reelsContainer=L.first),l.iGM(L=l.CRH())&&(b.videoContainers=L)}},inputs:{videosUrl:"videosUrl",videoClass:"videoClass",arrowHideLimit:"arrowHideLimit"},decls:1,vars:1,consts:[["id","videos","class","bg-white",4,"ngIf"],["id","videos",1,"bg-white"],[1,"max-w-5xl","mx-auto","p-4","md:p-6",3,"ngClass"],[1,"text-lg","font-semibold"],[1,"mt-4","relative","w-full","overflow-hidden"],[1,"flex","gap-4","overflow-x-auto","scroll-smooth","snap-x",2,"scrollbar-width","none","-ms-overflow-style","none"],["reelsContainer",""],[4,"ngFor","ngForOf","ngForTrackBy"],["class","absolute left-2 top-1/2 -translate-y-1/2 z-20 bg-black/30 hover:bg-black/70 text-white rounded-full p-3 cursor-pointer transition-opacity shadow-md opacity-60 hover:opacity-100 backdrop-blur",3,"ngClass","click",4,"ngIf"],["class","absolute right-2 top-1/2 -translate-y-1/2 z-20 bg-black/30 hover:bg-black/70 text-white rounded-full p-3 cursor-pointer transition-opacity shadow-md opacity-60 hover:opacity-100 backdrop-blur",3,"ngClass","click",4,"ngIf"],[1,"flex-shrink-0","w-[200px]","aspect-[9/16]","rounded-lg","bg-black","overflow-hidden","snap-start"],["videoContainer",""],[1,"absolute","left-2","top-1/2","-translate-y-1/2","z-20","bg-black/30","hover:bg-black/70","text-white","rounded-full","p-3","cursor-pointer","transition-opacity","shadow-md","opacity-60","hover:opacity-100","backdrop-blur",3,"ngClass","click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"h-4","w-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M15 19l-7-7 7-7"],[1,"absolute","right-2","top-1/2","-translate-y-1/2","z-20","bg-black/30","hover:bg-black/70","text-white","rounded-full","p-3","cursor-pointer","transition-opacity","shadow-md","opacity-60","hover:opacity-100","backdrop-blur",3,"ngClass","click"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 5l7 7-7 7"]],template:function(A,b){1&A&&l.YNc(0,t,10,5,"div",0),2&A&&l.Q6J("ngIf",null==b.videosUrl?null:b.videosUrl.length)},dependencies:[a.mk,a.sg,a.O5],changeDetection:0}),_})()},2422:(k,C,c)=>{c.d(C,{g:()=>u});var a=c(4666),l=c(2560);let u=(()=>{const f=class{};let g=f;return f.\u0275fac=function(v){return new(v||f)},f.\u0275mod=l.oAB({type:f}),f.\u0275inj=l.cJS({imports:[a.ez]}),g})()},5796:(k,C,c)=>{c.d(C,{f:()=>D});var a=c(7374),l=c(2560),u=c(3479),g=c(4666);function f(T,v){if(1&T&&(l.TgZ(0,"section",1)(1,"div",2)(2,"div",3)(3,"p",4),l._uU(4," \u0110\u1eb7t l\u1ecbch kh\xe1m B\u1ec7nh vi\u1ec7n, B\xe1c s\u0129 d\u1ec5 d\xe0ng "),l._UZ(5,"br"),l.TgZ(6,"span",5),l._uU(7," T\u1ea3i ngay YouMed "),l.qZA()(),l.TgZ(8,"div",6)(9,"a",7),l._UZ(10,"img",8),l.qZA(),l.TgZ(11,"a",7),l._UZ(12,"img",9),l.qZA()()(),l.TgZ(13,"div",10)(14,"a",11),l._UZ(15,"img",12),l.qZA()()()()),2&T){const t=l.oxw();l.xp6(9),l.s9C("href",t.NAVIGATION.DOWNLOAD.android,l.LSH),l.xp6(2),l.s9C("href",t.NAVIGATION.DOWNLOAD.ios,l.LSH)}}let D=(()=>{const v=class{constructor(m){this.globalConfig=m,this.NAVIGATION=a.k}get hasSlugBv(){return this.globalConfig.hasSlugBV}ngOnInit(){}};let T=v;return v.\u0275fac=function(_){return new(_||v)(l.Y36(u.Q))},v.\u0275cmp=l.Xpm({type:v,selectors:[["app-download-booking"]],decls:1,vars:1,consts:[["id","download","hideBySlug","",4,"ngIf"],["id","download","hideBySlug",""],[1,"bg-white","flex","max-w-4xl","md:mx-auto","p-4","md:p-6","mx-4"],[1,"flex","flex-col","flex-1","justify-center"],[1,"sm:text-base"],[1,"text-lg","font-bold","md:text-2xl"],[1,"mt-4","flex","flex-wrap","gap-2"],["target","_blank",1,"hover:border-slate-300","border","rounded-lg","overflow-hidden",3,"href"],["width","135","height","40","loading","lazy","src","./assets/img/booking/svg/google-play.svg","alt","T\u1ea3i \u1ee9ng d\u1ee5ng YouMed tr\xean Google Play"],["width","120","height","40","loading","lazy","src","./assets/img/booking/svg/apple-store.svg","alt","T\u1ea3i \u1ee9ng d\u1ee5ng YouMed tr\xean Apple Store"],[1,"hidden","sm:block"],["href","https://youmed.page.link/DOWNAPP","target","_blank",1,"block","w-32","h-32","bg-gray-100","rounded-lg","p-2"],["width","112","height","112","loading","lazy","src","./assets/images/qr-download.svg","alt","T\u1ea3i \u1ee9ng d\u1ee5ng YouMed"]],template:function(_,d){1&_&&l.YNc(0,f,16,2,"section",0),2&_&&l.Q6J("ngIf",!1===d.hasSlugBv)},dependencies:[g.O5]}),T})()},9161:(k,C,c)=>{c.d(C,{a:()=>u});var a=c(4666),l=c(2560);let u=(()=>{const f=class{};let g=f;return f.\u0275fac=function(v){return new(v||f)},f.\u0275mod=l.oAB({type:f}),f.\u0275inj=l.cJS({imports:[a.ez]}),g})()},7549:(k,C,c)=>{c.d(C,{_N:()=>W,eJ:()=>Q,pP:()=>V});var a=c(2560),l=c(4437),u=c(6562),g=c(7400),f=c(833),D=c(6067),T=c(629),v=c(7714),t=c(8977),m=c(9337),_=c(2673);let p=(()=>{class h{}
1return h.\u0275fac=function(y){return new(y||h)},h.\u0275prov=a.Yz7({token:h,factory:function(){return function d(h){return h instanceof a.R0b}((0,a.f3M)(a.R0b))?new A:(0,a.f3M)(E)},providedIn:"root"}),h})(),E=(()=>{class h extends p{constructor(y){super(),this.appRef=y,this.isScheduled=!1}schedule(){this.isScheduled||(this.isScheduled=!0,requestAnimationFrame(()=>{this.appRef.tick(),this.isScheduled=!1}))}}return h.\u0275fac=function(y){return new(y||h)(a.LFG(a.z2F))},h.\u0275prov=a.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();class A extends p{schedule(){}}let b=(()=>{class h{constructor(y,I){this.cdRef=y,this.tickScheduler=I}schedule(){this.cdRef.markForCheck(),this.tickScheduler.schedule()}}return h.\u0275fac=function(y){return new(y||h)(a.LFG(a.sBO),a.LFG(p))},h.\u0275prov=a.Yz7({token:h,factory:h.\u0275fac}),h})();function M(h){const w=function B(h){return w=>h[w.type]?.(w)}(h),y=new D.t(1);return{nextPotentialObservable(I){y.next(I)},handlePotentialObservableChanges:()=>y.pipe((0,t.x)(),function j(){return(0,T.z)((0,_.w)(h=>{const w=function S(h){return(0,l.b)(h)?h:function F(h){return function N(h){return!!h&&"object"==typeof h&&!Array.isArray(h)}(h)&&Object.keys(h).length>0&&Object.values(h).every(l.b)}(h)?(0,u.a)(function R(h){return Object.keys(h).reduce((w,y)=>({...w,[y]:h[y].pipe((0,t.x)())}),{})}(h)):function P(h){return"function"==typeof h?.then}(h)?(0,g.D)(h):new f.y(w=>{w.next(h)})}(h);let y=!0,I=!0;return new f.y(U=>{const Y=w.subscribe({next(O){U.next({type:"next",value:O,reset:y,synchronous:I}),y=!1},error(O){U.next({type:"error",error:O,reset:y,synchronous:I}),y=!1},complete(){U.next({type:"complete",reset:y,synchronous:I}),y=!1}});return y&&(U.next({type:"suspense",reset:y,synchronous:!0}),y=!1),I=!1,Y})}))}(),(0,t.x)(H),(0,m.b)(w))}}function H(h,w){return h.type===w.type&&h.reset===w.reset&&("next"===w.type?h.value===w.value:"error"!==w.type||h.error===w.error)}let Q=(()=>{class h{constructor(y,I,U,Y){this.mainTemplateRef=y,this.viewContainerRef=I,this.errorHandler=U,this.renderScheduler=Y,this.isMainViewCreated=!1,this.isSuspenseViewCreated=!1,this.viewContext={$implicit:void 0,ngrxLet:void 0,error:void 0,complete:!1},this.renderEventManager=M({suspense:()=>{this.viewContext.$implicit=void 0,this.viewContext.ngrxLet=void 0,this.viewContext.error=void 0,this.viewContext.complete=!1,this.renderSuspenseView()},next:O=>{this.viewContext.$implicit=O.value,this.viewContext.ngrxLet=O.value,O.reset&&(this.viewContext.error=void 0,this.viewContext.complete=!1),this.renderMainView(O.synchronous)},error:O=>{this.viewContext.error=O.error,O.reset&&(this.viewContext.$implicit=void 0,this.viewContext.ngrxLet=void 0,this.viewContext.complete=!1),this.renderMainView(O.synchronous),this.errorHandler.handleError(O.error)},complete:O=>{this.viewContext.complete=!0,O.reset&&(this.viewContext.$implicit=void 0,this.viewContext.ngrxLet=void 0,this.viewContext.error=void 0),this.renderMainView(O.synchronous)}}),this.subscription=new v.w0}set ngrxLet(y){this.renderEventManager.nextPotentialObservable(y)}static ngTemplateContextGuard(y,I){return!0}ngOnInit(){this.subscription.add(this.renderEventManager.handlePotentialObservableChanges().subscribe())}ngOnDestroy(){this.subscription.unsubscribe()}renderMainView(y){this.isSuspenseViewCreated&&(this.isSuspenseViewCreated=!1,this.viewContainerRef.clear()),this.isMainViewCreated||(this.isMainViewCreated=!0,this.viewContainerRef.createEmbeddedView(this.mainTemplateRef,this.viewContext)),y||this.renderScheduler.schedule()}renderSuspenseView(){this.isMainViewCreated&&(this.isMainViewCreated=!1,this.viewContainerRef.clear()),this.suspenseTemplateRef&&!this.isSuspenseViewCreated&&(this.isSuspenseViewCreated=!0,this.viewContainerRef.createEmbeddedView(this.suspenseTemplateRef))}}return h.\u0275fac=function(y){return new(y||h)(a.Y36(a.Rgc),a.Y36(a.s_b),a.Y36(a.qLn),a.Y36(b))},h.\u0275dir=a.lG2({type:h,selectors:[["","ngrxLet",""]],inputs:{ngrxLet:"ngrxLet",suspenseTemplateRef:["ngrxLetSuspenseTpl","suspenseTemplateRef"]},features:[a._Bn([b])]}),h})(),W=(()=>{class h{}
1return h.\u0275fac=function(y){return new(y||h)},h.\u0275mod=a.oAB({type:h}),h.\u0275inj=a.cJS({}),h})(),V=(()=>{class h{}return h.\u0275fac=function(y){return new(y||h)},h.\u0275mod=a.oAB({type:h}),h.\u0275inj=a.cJS({}),h})()}}]); 2//# sourceMappingURL=261.ea897bdfb38c378a.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.