PageSourceSearch

https://youmed.vn/dat-kham/9743.afbfdb61ef5d27c7.js

js youmed.vn collected 2026-09-24 10:05:19 UTC 41,986 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkbooking=self.webpackChunkbooking||[]).push([[9743],{7261:(z,C,i)=>{i.d(C,{M:()=>c});const c={SOC:{SEND_MSG_TRACKING:'{"type":"TRACKING_OTP", "object":"OTP"}'}}},2708:(z,C,i)=>{i.d(C,{G:()=>c});var c=(()=>{return(s=c||(c={})).SENDOTP="SENDOTP",s.VERIFYPATIENTSENDOTP="VERIFYPATIENTSENDOTP",s.CHECKANDSENDLOGIN="CHECKANDSENDLOGIN",s.VERIFYPASSWORD="VERIFYPASSWORD",s.CHECKANDSENDRESETPASSWORD="CHECKANDSENDRESETPASSWORD",s.CREATEREGISTERREQUEST="CREATEREGISTERREQUEST",c;var s})()},6970:(z,C,i)=>{i.d(C,{U:()=>c});var c=(()=>{return(s=c||(c={})).UNKNOWN="UNKNOWN",s.FAILED="FAILED",s.SUCCEEDED="SUCCEEDED",c;var s})()},4382:(z,C,i)=>{i.d(C,{z:()=>n});var c=i(2560),s=i(6774),e=i(635),r=i(9196),u=i(2340);let n=(()=>{const l=class{constructor(){this.http=(0,c.f3M)(s.h),this.antiBotConfig$=this.http.get(`${u.N.apiUrl}/v4/auth/anti-bot/configurations`).pipe((0,e.U)(h=>h.result),(0,r.d)(1))}getAppVersion(){return this.http.get(u.N.apiUrl+"/v1/data/version-checking?codeVersion=0.0.0&app=YOUMED&platform=IOS&status=PUBLISHED&_allow_anonymous=true")}getCaptchaKey(h){return this.antiBotConfig$.pipe((0,e.U)(g=>g.configs.find(x=>x.operation===h)?.key||""))}};let a=l;return l.\u0275fac=function(g){return new(g||l)},l.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),a})()},263:(z,C,i)=>{i.d(C,{e:()=>n});var c=i(8987),s=i(934),e=i(2340),r=i(2560),u=i(6774);let n=(()=>{const l=class extends s.b{constructor(h){super(h,e.N.apiUrl,"v4/auth"),this.http=h}loginWithPassword(h,g,x){return super.postCustomApi("login/password/verify",{phoneNumber:h,password:g},null,null,new c.WM({"Content-Type":"application/json","X-YM-FOO-BAR":x}))}sendOTP(h,g){return super.postCustomApi("otp/send",{phoneNumber:h},null,null,new c.WM({"Content-Type":"application/json","X-YM-FOO-BAR":g}))}checkAndSend(h,g){return super.postCustomApi("login/check-and-send",{phoneNumber:h},null,null,new c.WM({"Content-Type":"application/json","X-YM-FOO-BAR":g}))}checkUserExistResetPassword(h,g){return super.postCustomApi("reset-password/check-and-send",{phoneNumber:h},null,null,new c.WM({"Content-Type":"application/json","X-YM-FOO-BAR":g}))}verifyOtp(h,g){return super.postCustomApi("otp/verify",{sessionInfo:h,otp:g})}verifyOtpCheckAndSend(h,g,x){return super.postCustomApi("login/check-and-send/verify",{sessionInfo:h,otp:g,action:x})}createPassword(h,g,x){return super.postCustomApi("login/password/create",{sessionInfo:h,password:g,retypePassword:x})}resetPassword(h,g,x){return super.postCustomApi("login/password/reset",{sessionInfo:h,password:g,retypePassword:x})}changePassword(h,g,x){return super.postCustomApi("login/password/change",{currentPassword:h,newPassword:g,retypeNewPassword:x})}};let a=l;return l.\u0275fac=function(g){return new(g||l)(r.LFG(u.h))},l.\u0275prov=r.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),a})()},7166:(z,C,i)=>{i.d(C,{u:()=>n});var c=i(8987),s=i(934),e=i(2340),r=i(2560),u=i(6774);let n=(()=>{const l=class extends s.b{constructor(h,g){super(h,e.N.apiUrl,"v4/users"),this.http=h,this.httpCl=g}getInfo(){return super.getCustomApi("info",new c.LE)}checkServiceBookmarkedByEsDocId(h){let g=new c.LE;return super.getCustomApi(`bookmarks/services/check/${h}`,g)}getBookMarkServices(h,g,x){let b=new c.LE;return b=b.append("page",h),b=b.append("size",g),b=b.append("type",x),super.getCustomApi("bookmarks/services",b)}getEnableConfigHospitalV4(h){return super.getCustomApi(`hospitals/${h}/enabled-configs`,new c.LE)}getBannerHospital(h){let g=new c.LE;return g=g.append("appName",h),g=g.append("appVersion","1"),super.getCustomApi("banners",g)}addNewServiceBookMark(h){return super.postCustomApi("bookmarks/services",h)}updateUserInfo(h){return this.patchCustomApi("info",h)}deleteServiceBookMark(h){return super.requestCustomApi("delete","bookmarks/services",h)}};let a=l;return l.\u0275fac=function(g){return new(g||l)(r.LFG(u.h),r.LFG(c.eN))},l.\u0275prov=r.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),a})()},5300:(z,C,i)=>{i.d(C,{g:()=>s});var c=i(6701);class s{static isNullOrZero(r){return!r||0===r.length||1===r.length&&null==r[0]}static deepCopyArray(r){return[...r].map(u=>Object.assign({},u))}static getKeyNameEnum(r,u){return Object.entries(r).find(([n,a])=>a===u)?.[0]}static cleanIsNullOrEmpty(r){let u=[];return r.forEach(n=>{const a=n.trim();!c.m.isNullOrEmpty(a)&&a.length>1&&u.push(n)}),u}}},6701:(z,C,i)=>{i.d(C,{m:()=>c});class c{static isNullOrEmpty(e){return!e||""===e.trim()}static trim(e){return"string"==typeof e?e.split(" ").filter(r=>r).join(" "):e}static trimKeyword(e){return"string"==typeof e?e.trim().split(" ").filter(r=>r).join(" "):(e&&"object"==typeof e&&Object.keys(e).forEach(r=>{e[r]&&(e[r]=this.trim(e[r]))}),e)}static trimObj(e){return Object.keys(e).forEach(r=>{e[r]&&(e[r]=Array.isArray(e[r])?e[r].map(u=>this.trimKeyword(u)).filter(u=>u&&""!==u):this.trimKeyword(e[r]))}),e}static trimInputContentInObject(e){return Object.keys(e).forEach(r=>{e[r]&&(Array.isArray(e[r])?e[r].map(u=>c.trim(u)):e[r]=c.trim(e[r]))}),e}static trimContentInObject(e){return Object.keys(e).forEach(r=>{e[r]&&(e[r]=Array.isArray(e[r])?e[r].map(u=>c.trimKeyword(u)).filter(u=>u&&""!==u):c.trimKeyword(e[r]))}),e}
1static formatFilterDDMMYYY(e){return""===e?"":e.split("/").reverse().join("-")}static isNotHttps(e){return!(!e?.includes("http")||e?.includes("https"))}static removeVietnameseTones(e){return(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.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|\u1ec9|\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(e){const r=e.split(" ");return this.removeVietnameseTones(r[r.length-1].slice(0,2))}static getFullName(e){const r=e.firstName,u=e.lastName;return r&&u?`${r} ${u}`.trim():!r&&u?r.trim():r&&!u?u.trim():""}static formatPhoneNumber(e){if(!e||"string"!=typeof e||0===e.trim().length)return"---";const r=e.replace(/\D/g,"");return 10!==r.length?"---":r.replace(/(\d{4})(\d{3})(\d{3})/,"$1 $2 $3")}}},6033:(z,C,i)=>{function c(){return s=>{let e=!0;const r=s.value;if(r&&""!==r){const u=String(r).match(/(0)+([0-9]{9})|(84)+([0-9]{9})/);e=-1===r.split("").findIndex(a=>!parseInt(a)&&0!==parseInt(a))&&!!u}return e?null:{other:"Vui l\xf2ng nh\u1eadp \u0111\xfang s\u1ed1 \u0111i\u1ec7n tho\u1ea1i!"}}}i.d(C,{b:()=>c})},9743:(z,C,i)=>{i.r(C),i.d(C,{LoginModule:()=>Ot});var c=i(4666),s=i(2508),e=i(8699),r=i(8154),u=i(3302),n=i(4600),a=i(8810),l=i(8284),O=i(4127),h=i(7777),g=i(3650),x=i(9786),b=i(9706),t=i(2560),Z=i(8386);let L=(()=>{const f=class{constructor(o,d,m){this.user=o,this.router=d,this.platformId=m}canActivate(o,d){if((0,c.NF)(this.platformId))return!this.user.getCurrentUser()||(this.router.navigate([""]),!1)}};let y=f;return f.\u0275fac=function(d){return new(d||f)(t.LFG(Z.K),t.LFG(b.F0),t.LFG(t.Lbi))},f.\u0275prov=t.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),y})();var w=i(1670),B=i(9107),F=i(8203),k=i(5300),_=i(6701),p=i(6033),E=i(9742),I=i(8951),P=i(2708),U=i(4382),T=i(2340),V=i(7166),$=i(263),tt=i(2437),et=i(1048),nt=i(2729),it=i(3479),K=i(31),J=i(8343),rt=i(162),st=i(1604),W=i(745),ot=i(2673),at=i(2313),j=i(9238),ct=i(7261),H=i(7374),Q=i(9580),Y=i(6970);class lt{static multipleCheckboxRequireOne(f){let R=!1;for(let o=0;o<f.length;++o)if(f.at(o).value){R=!0;break}return R?null:{error:!0}}}var G=i(2520),ut=i(5684),ht=i(6243),dt=i(2870);function pt(y,f){if(1&y){const R=t.EpF();t.ynx(0),t.TgZ(1,"label",15),t.NdJ("nzCheckedChange",function(d){const v=t.CHM(R).index,D=t.oxw();return t.KtG(D.checkBox[v]=d)}),t.TgZ(2,"span"),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"a",16),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.BQk()}if(2&y){const R=f.index,o=t.oxw();t.xp6(1),t.Q6J("nzChecked",o.checkBox[R])("formControlName",R),t.xp6(2),t.Oqu(t.lcZ(4,4,"auth.register.agree")),t.xp6(3),t.Oqu(t.lcZ(7,6,"auth.register.term"))}}const mt=function(y){return{"bg-gray-300 hover:bg-gray-300 hover:cursor-not-allowed":y}};let gt=(()=>{const f=class extends E.e{get formCheckBox(){return this.form.get("checkBox")}constructor(o,d,m,v,D,A,M,N){super(),this.fb=o,this.authService=d,this.msg=m,this.router=v,this.registerService=D,this.socketClientService=A,this.route=M,this.ref=N,this.appService=(0,t.f3M)(U.z),this.platformId=(0,t.f3M)(t.Lbi),this.env=T.N,this.currentLang=j.ad.VI,this.languages=j.$7,this.sessionInfoByOtpSend="",this.checkBox=[!0],this.isRenCaptCha=!1,this.captchaWidgetId=null,this.initForm()}initForm(){this.form=this.fb.group({phoneNumber:["",s.kI.compose([s.kI.required,(0,p.b)()])],checkBox:this.fb.array(this.checkBox.map(o=>this.fb.control(o)),[s.kI.required,lt.multipleCheckboxRequireOne]),captChaToken:["",s.kI.required]})}ngOnInit(){}ngAfterViewInit(){}addCaptCha(){(0,c.NF)(this.platformId)&&(this.isRenCaptCha||this.appService.getCaptchaKey(P.G.CHECKANDSENDLOGIN).pipe((0,I.R)(this.destroy$)).subscribe(o=>{o?grecaptcha.enterprise.ready(()=>{this.isRenCaptCha=!0,this.captchaWidgetId=grecaptcha.enterprise.render("recaptcha-container-create",{sitekey:o,theme:"light",action:P.G.CHECKANDSENDLOGIN,callback:d=>{d&&(this.form.controls.captChaToken.patchValue(d),this.ref.detectChanges())}})}):this.msg.error("L\u1ed7i c\u1ea5u h\xecnh Captcha t\u1eeb h\u1ec7 th\u1ed1ng.")}))}checkLoginOrSendOTP(o){const{captChaToken:d}=this.form.value;return d?this.authService.checkAndSend(o,d):(0,W.of)(null)}trackingOTP(o,d){let m=this.socketClientService.getWebSocket(`api/v4/websocket/public-channel?phoneNumber=${o}&smsId=${d}`);this.webSocket=m,this.socketClientService.onOpenByMsg(m,ct.M.SOC.SEND_MSG_TRACKING);const v=this;m.onmessage=D=>{v.checkResSocket(D)}}
1checkResSocket(o){let d=JSON.parse(o.data),m="",v="";d?.result?.status===Y.U.SUCCEEDED?(this.msg.success(d?.result?.message??"M\xe3 x\xe1c nh\u1eadn g\u1ed3m 6 s\u1ed1 \u0111\xe3 \u0111\u01b0\u1ee3c g\u1eedi \u0111\u1ebfn s\u1ed1 \u0111i\u1ec7n tho\u1ea1i c\u1ee7a b\u1ea1n. Vui l\xf2ng ki\u1ec3m tra v\xe0 nh\u1eadp m\xe3 x\xe1c nh\u1eadn!"),this.webSocket.close(),this.navigateToRegister()):d?.result?.status===Y.U.FAILED?(v=d?.result?.message,this.webSocket.close()):d?.result?.status===Y.U.UNKNOWN&&(m=d?.result?.message),_.m.isNullOrEmpty(v)&&!_.m.isNullOrEmpty(m)&&d?.result?.phoneNumber?.indexOf("587080907")>0?this.msg.error(m):_.m.isNullOrEmpty(v)}submitPhoneNumber(){var o=this;return(0,w.Z)(function*(){const d=o.form.controls.phoneNumber.value;d?(yield o.checkLoginOrSendOTP(d)).pipe((0,ot.w)(v=>{const D=v?.data?.result?.actionRequired;return v?.data?.error?(o.msg.error(v.data?.error?.message||G.R.general.longMsg),(0,W.of)(void 0)):D===Q.g.VERIFY_OTP?(0,W.of)(v):(D===Q.g.VERIFY_PASSWORD&&o.msg.warning(`S\u1ed1 \u0111i\u1ec7n tho\u1ea1i: ${d} \u0111\xe3 \u0111\u0103ng k\xfd tr\u01b0\u1edbc \u0111\xf3, Vui l\xf2ng \u0111\u0103ng nh\u1eadp!`),(0,W.of)(void 0))}),(0,at.x)(()=>{null!==o.captchaWidgetId&&grecaptcha.enterprise.reset(o.captchaWidgetId),o.form.controls.captChaToken?.patchValue("")})).subscribe(v=>{if(v?.data?.succeeded)return o.sessionInfoByOtpSend=v?.data?.result?.sessionInfo,o.registerService.phoneNumber=d,o.registerService.sessionInfoByOtpSend=o.sessionInfoByOtpSend,o.registerService.smsId=v?.data?.result?.smsId,void o.navigateToRegister();v?.data?.error&&o.msg.error(v.data?.error?.message||G.R.general.longMsg)}):o.msg.error(G.R.register.noPhoneNumber)})()}goTabNotActive(){document.querySelector("div.ant-tabs-tab:not(.ant-tabs-tab-active)")?.click()}navigateToRegister(){const o=this.route.snapshot.queryParams;o.returnUrl?this.router.navigate([H.k.BASE.register],{queryParams:{returnUrl:o.returnUrl,action:o.action}}):this.router.navigate([H.k.BASE.register])}};let y=f;return f.\u0275fac=function(d){return new(d||f)(t.Y36(s.QS),t.Y36($.e),t.Y36(n.dD),t.Y36(b.F0),t.Y36(ut.q),t.Y36(ht.d),t.Y36(b.gz),t.Y36(t.sBO))},f.\u0275cmp=t.Xpm({type:f,selectors:[["app-get-opt"]],features:[t.qOj],decls:28,vars:17,consts:[["nz-form","",1,"flex","flex-col","gap-8",3,"nzLayout","formGroup","ngSubmit"],["nzErrorTip","Xin vui l\xf2ng nh\u1eadp \u0111\xfang s\u1ed1 \u0111i\u1ec7n tho\u1ea1i!"],["for","phoneNumber",1,"block","mb-1","text-sm","font-medium","text-gray-700"],[1,"flex","rounded-md","shadow-sm"],[1,"inline-flex","items-center","px-3","rounded-l-md","border","border-r-0","border-gray-200","bg-gray-50","text-gray-500","text-sm","font-medium"],["width","18","height","18","alt","VN",3,"src"],["formControlName","phoneNumber","nz-input","","placeholder","Nh\u1eadp s\u1ed1 \u0111i\u1ec7n tho\u1ea1i \u0111\u1ec3 ti\u1ebfp t\u1ee5c","inputmode","numeric","pattern","[0-9]*","digitOnly","",1,"form-input","px-3","py-2","focus:ring-primary","focus:border-primary","flex-1","block","w-full","placeholder:text-sm","border","border-gray-200","rounded-none","rounded-r-md",3,"type","maxLength","focus"],[1,"mt-2","text-sm","text-gray-500"],["id","recaptcha-container-create",1,"pt-6"],[1,"text-sm","text-gray-700"],["formArrayName","checkBox"],[4,"ngFor","ngForOf"],["appSingleClick","","nz-button","",1,"w-full","btn-primary",3,"throttleMs","ngClass","disabled","click"],[1,"text-center","text-sm","p-6","border-t","mt-8"],[1,"font-medium","cursor-pointer","text-primary",3,"click"],["nz-checkbox","",3,"nzChecked","formControlName","nzCheckedChange"],["href","#"]],template:function(d,m){1&d&&(t.TgZ(0,"form",0),t.NdJ("ngSubmit",function(){return m.submitPhoneNumber()}),t.TgZ(1,"div")(2,"nz-form-item")(3,"nz-form-control",1)(4,"label",2),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",3)(8,"span",4),t._UZ(9,"img",5),t._uU(10," +84"),t.qZA(),t.TgZ(11,"input",6),t.NdJ("focus",function(){return m.addCaptCha()}),t.qZA()()(),t.TgZ(12,"p",7),t._uU(13),t.ALo(14,"translate"),t.qZA()(),t.TgZ(15,"nz-form-item")(16,"nz-form-control"),t._UZ(17,"div",8),t.qZA()()(),t.TgZ(18,"div",9),t.ynx(19,10),t.YNc(20,pt,8,8,"ng-container",11),t.BQk(),t.qZA(),t.TgZ(21,"div")(22,"button",12),t.NdJ("click",function(){return m.submitPhoneNumber()}),t._uU(23," G\u1eedi OTP "),t.qZA()()(),t.TgZ(24,"div",13),t._uU(25," \u0110\xe3 c\xf3 t\xe0i kho\u1ea3n? "),t.TgZ(26,"span",14),t.NdJ("click",function(){return m.goTabNotActive()}),t._uU(27," \u0110\u0103ng nh\u1eadp "),t.qZA()()),2&d&&(t.Q6J("nzLayout","inline")("formGroup",m.form),t.xp6(5),t.Oqu(t.lcZ(6,11,"auth.phone.p")),t.xp6(4),t.Q6J("src",m.languages.VN.iconUrl,t.LSH),t.xp6(2),t.Q6J("type","text")("maxLength",10),t.xp6(2),t.hij(" ",t.lcZ(14,13,"auth.register.otp")," "),t.xp6(7),t.Q6J("ngForOf",m.formCheckBox.controls),t.xp6(2),t.Q6J("throttleMs",1e3)("ngClass",t.VKq(15,mt,!m.form.valid))("disabled",!m.form.valid))},dependencies:[c.mk,c.sg,s._Y,s.Fj,s.JJ,s.JL,s.c5,s.sg,s.u,s.CE,K.t3,K.SK,u.Lr,u.Nx,u.Fd,r.Ie,dt.L,J.q,e.X$],styles:[".ant-form-item[_ngcontent-%COMP%]{flex-direction:column;margin:0}"]}),y})();const X=function(){return["."]}
1,ft=function(){return{action:"login"}};function vt(y,f){1&y&&(t.TgZ(0,"a",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&y&&(t.Q6J("routerLink",t.DdM(5,X))("queryParams",t.DdM(6,ft)),t.xp6(1),t.hij(" ",t.lcZ(2,3,"auth.signIn.t")," "))}const Ct=function(){return{action:"register"}};function yt(y,f){1&y&&(t.TgZ(0,"a",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&y&&(t.Q6J("routerLink",t.DdM(5,X))("queryParams",t.DdM(6,Ct)),t.xp6(1),t.hij(" ",t.lcZ(2,3,"auth.signUp.t")," "))}const Et=function(){return["/forgot-password"]},bt=function(y){return{returnUrl:y}},kt=function(y){return{"bg-gray-300 hover:bg-gray-300 hover:cursor-not-allowed":y}},q="YM_BV_BASE_PATH",xt=[{path:"",component:(()=>{const f=class extends E.e{get item(){return this.srv}get returnUrlParam(){return this.item.returnUrl?`returnUrl=${this.item.returnUrl}`:""}get hasSlugBv(){return this.globalConfig.hasSlugBV}constructor(o,d,m,v,D,A,M,N,S,_t,At){super(),this.fb=o,this.router=d,this.msg=m,this.userV4Service=v,this.authService=D,this.platform=A,this.route=M,this.srv=N,this.seo=S,this.recaptcha3=_t,this.globalConfig=At,this.env=T.N,this.passwordVisible=!1,this.error="",this.loading=!1,this.activeItemIndex=0,this.windowH=0,this.supportedInputTypes=Array.from((0,B.qK)()).join(", "),this.supportsPassiveEventListeners=(0,B.X1)(),this.supportsScrollBehavior=(0,B.Mq)(),this.appService=(0,t.f3M)(U.z),this.route.snapshot.queryParams?.returnUrl&&(this.item.returnUrl=this.route.snapshot.queryParams.returnUrl),this.addSEO(),this.initForm(),this.stateRoute=this.router.getCurrentNavigation()?.extras?.state}initForm(){this.form=this.fb.group({username:["",s.kI.compose([s.kI.required,(0,p.b)()])],password:["",s.kI.compose([s.kI.required,s.kI.minLength(6)])],accept:!1})}ngOnInit(){this.returnUrl=this.route.snapshot.queryParams.returnUrl||"/",this.initCaptchaDynamic()}initCaptchaDynamic(){this.appService.getCaptchaKey(P.G.VERIFYPASSWORD).pipe((0,I.R)(this.destroy$)).subscribe(o=>{o?this.recaptcha3.init(o):console.error("Captcha key not found for VERIFYPASSWORD")})}ngAfterViewInit(){}login(){var o=this;return(0,w.Z)(function*(){o.form.valid&&(o.loading=!0,o.recaptcha3.getToken({action:P.G.VERIFYPASSWORD}).then(d=>{const{username:m,password:v}=o.form.value;_.m.isNullOrEmpty(d)||o.authService.loginWithPassword(m,v,d).subscribe(D=>{if(o.loading=D.isLoading,!0!==D?.data?.succeeded)return o.error=D?.data?.error?.message,void(o.error&&o.msg.create("error",o.error));const A=new Object;A.expired=+new Date+18e5,A.avatar="assets/tmp/img/avatar.jpg",A.phoneNumber=m,D?.data?.result&&(o.setLocalStorageUser(D?.data?.result,A),localStorage.setItem(F.s.ls.auth,JSON.stringify(A)),o.userV4Service.getInfo().subscribe(M=>{if(M?.data)if(M?.data?.succeeded){const N=M.data.result,S=new Object;if(S.id=N.id,S.name=N.name,S.userName=N.userName,S.email=N.email,S.phone=N.phone,S.photoProfile=N.photoProfile,S.enabled=N.enabled,S.percentInfoCompleted=N.percentInfoCompleted,S.primaryPatientId=N?.primaryPatientId,S.patient=N.patient,localStorage.setItem(F.s.ls.userInfo,JSON.stringify(S)),o.msg.create("success","\u0110\u0103ng nh\u1eadp th\xe0nh c\xf4ng!"),T.N.isShareAuthOrLang)return void o.redirectAndShareAuth(N,A.access_token);o.redirect(N)}else!M?.data?.succeeded&&M?.data?.error.message&&o.msg.error(M?.data?.error.message)}))},D=>{o.loading=!1},()=>{o.loading=!1})}))})()}redirect(o){const d=this.consumeBVBasePath();if(d)this.router.navigateByUrl(d);else{if(this.returnUrl){const m=decodeURIComponent(this.returnUrl);if(m.startsWith("http://")||m.startsWith("https://"))return void(m.startsWith(T.N.url)||m.startsWith("https://youmed.vn")||m.startsWith("https://beta.youmed.vn")||m.startsWith("https://dev.youmed.vn")||m.startsWith("http://localhost")?window.location.href=m:this.router.navigate(["/"]));const v=this.returnUrl?.split("/");if(!k.g.isNullOrZero(v)&&v.length>2)return void this.router.navigateByUrl(v[v.length-3]+"/"+v[v.length-2]);if(this.returnUrl&&this.returnUrl.includes("tiem-chung"))return void this.router.navigateByUrl(decodeURIComponent(this.returnUrl));if(this.returnUrl&&this.returnUrl.includes("xet-nghiem"))return void this.router.navigateByUrl(decodeURIComponent(this.returnUrl));if(this.returnUrl&&this.returnUrl.includes("ai"))return void this.router.navigateByUrl(decodeURIComponent(this.returnUrl));this.router.navigate(["/"])}o.primaryPatientId?this.router.navigate(this.stateRoute?[this.stateRoute.returnUrl]:["/"]):this.router.navigate(["ho-so/tao-moi"],{queryParams:{primary:!0}})}}redirectAndShareAuth(o,d){const m=this.consumeBVBasePath();if(m)return void this.router.navigateByUrl(m);let v="",D=T.N.returnUrlBooking;if(this.item.returnUrl){v=this.item.returnUrl,this.item.returnUrl="";const A=decodeURIComponent(v);A.startsWith("http://")||A.startsWith("https://")?A.startsWith(T.N.url)||A.startsWith("https://youmed.vn")||A.startsWith("https://beta.youmed.vn")||A.startsWith("https://dev.youmed.vn")||A.startsWith("http://localhost")?window.location.href=A:this.router.navigate(["/"]):this.router.navigateByUrl(A)}else this.router.navigate(o.primaryPatientId?["/"]:[`${D}/ho-so/tao-moi`])}setLocalStorageUser(o,d){return d.access_token=o.access_token,d.refresh_token=o.refresh_token,d.expires_in=o.expires_in,d.refresh_expires_in=o.refresh_expires_in,d.token_type=o.token_type,d.session_state=o.session_state,d.scope=o.scope,d.id_token=o.id_token,d}initScrollMobile(){(this.platform.ANDROID||this.platform.IOS)&&window.addEventListener("resize",o=>{document.getElementsByClassName("login-button")[0]?.scrollIntoView({behavior:"smooth",block:"start"})})}goTabNotActive(){document.querySelector("div.ant-tabs-tab:not(.ant-tabs-tab-active)")?.click()}change(o){this.activeItemIndex=o.index}addSEO(o){this.seo.setData({title:"\u0110\u0103ng nh\u1eadp",description:"\u0110\u1eb7t l\u1ecbch kh\xe1m B\u1ec7nh vi\u1ec7n, B\xe1c s\u0129 online qua \u1ee9ng d\u1ee5ng YouMed. H\u1ed7 tr\u1ee3 \u0111\u1eb7t l\u1ecbch h\u1eb9n, l\u1ea5y s\u1ed1 th\u1ee9 t\u1ef1 kh\xe1m nhanh, thanh to\xe1n ti\u1ec7n l\u1ee3i.",canonical:"https://youmed.vn/dat-kham/login",robots:!1})}consumeBVBasePath(){if(!this.platform.isBrowser)return null;try{const o=sessionStorage.getItem(q);return o&&sessionStorage.removeItem(q),o}catch{return null}}};let y=f;return f.\u0275fac=function(d){return new(d||f)(t.Y36(s.QS),t.Y36(b.F0),t.Y36(n.dD),t.Y36(V.u),t.Y36($.e),t.Y36(B.t4),t.Y36(b.gz),t.Y36(tt.Z),t.Y36(et.x),t.Y36(nt.X),t.Y36(it.Q))},f.\u0275cmp=t.Xpm({type:f,selectors:[["app-login"]],features:[t.qOj],decls:48,vars:41,consts:[[3,"nzSpinning"],["appSockJsClient","",1,"md:bg-gray-50"],[1,"max-w-7xl","mx-auto","md:px-6","py-10","lg:py-32","md:grid","md:grid-cols-12"],["hideBySlug","",1,"md:flex","md:col-span-6","lg:col-span-7"],["href","http://youmed.vn/apps","target","_blank"],["width","500","height","500","loading","lazy","src","./assets/img/booking/png/Login.png","alt","\u0110\u1eb7t kh\xe1m",1,"mx-auto"],[3,"ngClass"],["nzCentered","",3,"ngClass","nzAnimated","nzSelectChange"],["nz-tab-link","","class","tab-link","queryParamsHandling","merge",3,"routerLink","queryParams",4,"nzTabLink"],["nz-form","",1,"flex","flex-col","gap-6",3,"nzLayout","formGroup","ngSubmit"],[1,"space-y-4"],["nzErrorTip","Xin vui l\xf2ng nh\u1eadp \u0111\xfang s\u1ed1 \u0111i\u1ec7n tho\u1ea1i!"],["for","address",1,"block","mb-1","text-sm","font-medium","text-gray-700"],["formControlName","username","nz-input","","placeholder","S\u1ed1 \u0111i\u1ec7n tho\u1ea1i","inputmode","numeric","pattern","[0-9]*",1,"form-input","px-3","py-2","focus:ring-primary","focus:border-primary","block","w-full","shadow-sm","placeholder:text-sm","border","border-gray-200","rounded-md",3,"type","maxLength"],["nzErrorTip","Xin vui l\xf2ng nh\u1eadp m\u1eadt kh\u1ea9u \xedt nh\u1ea5t 6 k\xfd t\u1ef1!"],["for","password",1,"block","mb-1","text-sm","font-medium","text-gray-700"],[1,"relative","flex","items-center","mt-1"],["form-input","","formControlName","password","nz-input","","placeholder","Nh\u1eadp m\u1eadt kh\u1ea9u",1,"form-input","px-3","py-2","focus:ring-primary","focus:border-primary","block","w-full","shadow-sm","placeholder:text-sm","border","border-gray-200","rounded-md",3,"type","minlength"],["width","20","height","20",1,"absolute","bottom-1/2","translate-y-1/2","right-2",3,"src","click"],[1,"flex","flex-row","justify-between","items-center","font-medium"],["nz-checkbox",""],[1,"text-sm","text-gray-700"],[1,"curs
1or-pointer","text-sm","text-primary",3,"routerLink","queryParams"],["nz-button","","appSingleClick","",1,"w-full","btn-primary",3,"ngClass","disabled","keyup.enter","click"],[1,"text-center","text-sm","p-6","border-t","mt-8"],[1,"font-medium","cursor-pointer","text-primary",3,"click"],["nz-tab-link","","queryParamsHandling","merge",1,"tab-link",3,"routerLink","queryParams"]],template:function(d,m){1&d&&(t.TgZ(0,"nz-spin",0)(1,"section",1)(2,"div",2)(3,"div",3)(4,"a",4),t._UZ(5,"img",5),t.qZA()(),t.TgZ(6,"div",6)(7,"nz-tabset",7),t.NdJ("nzSelectChange",function(D){return m.change(D)}),t.TgZ(8,"nz-tab"),t.YNc(9,vt,3,7,"a",8),t.TgZ(10,"form",9),t.NdJ("ngSubmit",function(){return m.login()}),t.TgZ(11,"div",10)(12,"nz-form-item")(13,"nz-form-control",11)(14,"label",12),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._UZ(17,"input",13),t.qZA()(),t.TgZ(18,"nz-form-item")(19,"nz-form-control",14)(20,"label",15),t._uU(21),t.ALo(22,"translate"),t.qZA(),t.TgZ(23,"div",16),t._UZ(24,"input",17),t.TgZ(25,"img",18),t.NdJ("click",function(){return m.passwordVisible=!m.passwordVisible}),t.qZA()()()()(),t.TgZ(26,"div",19)(27,"label",20)(28,"span",21),t._uU(29),t.ALo(30,"translate"),t.qZA()(),t.TgZ(31,"a",22),t._uU(32),t.ALo(33,"translate"),t.qZA()(),t.TgZ(34,"nz-form-item")(35,"nz-form-control")(36,"button",23),t.NdJ("keyup.enter",function(){return m.login()})("click",function(){return m.login()}),t._uU(37),t.ALo(38,"translate"),t.qZA()()()(),t.TgZ(39,"div",24),t._uU(40),t.ALo(41,"translate"),t.TgZ(42,"span",25),t.NdJ("click",function(){return m.goTabNotActive()}),t._uU(43),t.ALo(44,"translate"),t.qZA()()(),t.TgZ(45,"nz-tab"),t.YNc(46,yt,3,7,"a",8),t._UZ(47,"app-get-opt"),t.qZA()()()()()()),2&d&&(t.Q6J("nzSpinning",m.loading),t.xp6(6),t.Q6J("ngClass",m.hasSlugBv?"md:col-span-12 lg:col-span-12 md:flex md:items-center md:justify-center":"md:col-span-6 lg:col-span-5"),t.xp6(1),t.Q6J("ngClass",m.hasSlugBv?"bg-white md:rounded-lg p-6 md:ring-1 ring-slate-100 mx-auto w-full max-w-[448px]":"bg-white md:rounded-lg p-6 md:ring-1 ring-slate-100 md:max-w-md mx-auto")("nzAnimated",!1),t.xp6(3),t.Q6J("nzLayout","inline")("formGroup",m.form),t.xp6(5),t.Oqu(t.lcZ(16,22,"auth.phone.p")),t.xp6(2),t.Q6J("type","text")("maxLength",10),t.xp6(4),t.Oqu(t.lcZ(22,24,"auth.password.p")),t.xp6(3),t.Q6J("type",m.passwordVisible?"text":"password")("minlength",6),t.xp6(1),t.s9C("src",m.passwordVisible?"./assets/img/booking/svg/Show.svg":"./assets/img/booking/svg/Hide.svg",t.LSH),t.xp6(4),t.Oqu(t.lcZ(30,26,"auth.rememberPassword")),t.xp6(2),t.Q6J("routerLink",t.DdM(36,Et))("queryParams",t.VKq(37,bt,m.item.returnUrl)),t.xp6(1),t.Oqu(t.lcZ(33,28,"auth.forgetPassword")),t.xp6(4),t.Q6J("ngClass",t.VKq(39,kt,!m.form.valid))("disabled",!m.form.valid),t.xp6(1),t.hij(" ",t.lcZ(38,30,"auth.signIn.t")," "),t.xp6(3),t.hij(" ",t.lcZ(41,32,"auth.newToYouMed")," "),t.xp6(3),t.hij(" ",t.lcZ(44,34,"auth.signupNow")," "))},dependencies:[c.mk,b.rH,s._Y,s.Fj,s.JJ,s.JL,s.wO,s.c5,s.sg,s.u,l.xH,l.xw,l.Ao,l.Fx,K.t3,K.SK,u.Lr,u.Nx,u.Fd,r.Ie,a.W,J.q,rt.a,st.p,gt,e.X$],styles:["[_nghost-%COMP%]  .ant-tabs-nav-list{width:100%;color:hsl(var(--gray-800))}[_nghost-%COMP%]  .ant-tabs-nav-list .tab-link:hover{--tw-text-opacity: 1;color:rgb(25 117 220 / var(--tw-text-opacity, 1))}[_nghost-%COMP%]  .ant-tabs-nav-list .ant-tabs-tab{width:50%;justify-content:center}[_nghost-%COMP%]  .ant-tabs-nav-list .ant-tabs-tab .ant-tabs-tab-btn{font-size:.875rem;line-height:1.25rem;font-weight:500}[_nghost-%COMP%]  .ant-tabs-nav-list .ant-tabs-tab .ant-tabs-tab-btn:hover{--tw-text-opacity: 1;color:rgb(25 117 220 / var(--tw-text-opacity, 1))}[_nghost-%COMP%]  .ant-tabs-nav-list .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn{--tw-text-opacity: 1;color:rgb(25 117 220 / var(--tw-text-opacity, 1))}.ant-form-item[_ngcontent-%COMP%]{margin-right:0}"]}),y})(),canActivate:[L]}];let Dt=(()=>{const f=class{};let y=f;return f.\u0275fac=function(d){return new(d||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[b.Bz.forChild(xt),b.Bz]}),y})(),Ot=(()=>{const f=class{};let y=f;return f.\u0275fac=function(d){return new(d||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[c.ez,Dt,s.UX,l.we,u.U5,r.Wr,a.j,e.aw,x.q,g.A,h.k,n.gR,O.U]}),y})()},2870:(z,C,i)=>{i.d(C,{L:()=>s});var c=i(2560);let s=(()=>{const r=class{constructor(n){this.el=n,this.hasDecimalPoint=!1,this.hasNegativeSign=!1,this.navigationKeys=["Backspace","Delete","Tab","Escape","Enter","Home","End","ArrowLeft","ArrowRight","Clear","Copy","Paste"],this.decimal=!1,this.decimalSeparator=".",this.allowNegatives=!1,this.allowPaste=!0,this.negativeSign="-",this.min=-1/0,this.max=1/0,this.regex=null,this.inputElement=n.nativeElement}ngOnChanges(n){if(n.pattern&&(this.regex=this.pattern?RegExp(this.pattern):null),n.min){const a=Number(this.min);this.min=isNaN(a)?-1/0:a}if(n.max){const a=Number(this.max);this.max=isNaN(a)?1/0:a}}onBeforeInput(n){if(isNaN(Number(n.data))){if(n.data===this.decimalSeparator||n.data===this.negativeSign&&this.allowNegatives)return;n.preventDefault(),n.stopPropagation()}}onKeyDown(n){if(this.navigationKeys.indexOf(n.key)>-1||("a"===n.key||"KeyA"===n.code)&&!0===n.ctrlKey||("c"===n.key||"KeyC"===n.co
1de)&&!0===n.ctrlKey||("v"===n.key||"KeyV"===n.code)&&!0===n.ctrlKey||("x"===n.key||"KeyX"===n.code)&&!0===n.ctrlKey||("a"===n.key||"KeyA"===n.code)&&!0===n.metaKey||("c"===n.key||"KeyC"===n.code)&&!0===n.metaKey||("v"===n.key||"KeyV"===n.code)&&!0===n.metaKey||("x"===n.key||"KeyX"===n.code)&&!0===n.metaKey)return;let a="";if(this.decimal&&n.key===this.decimalSeparator)return a=this.forecastValue(n.key),a.split(this.decimalSeparator).length>2?void n.preventDefault():void(this.hasDecimalPoint=a.indexOf(this.decimalSeparator)>-1);if(n.key===this.negativeSign&&this.allowNegatives)return a=this.forecastValue(n.key),a.charAt(0)!==this.negativeSign||a.split(this.negativeSign).length>2?void n.preventDefault():void(this.hasNegativeSign=a.split(this.negativeSign).length>-1);if(" "===n.key||isNaN(Number(n.key)))return void n.preventDefault();if(a=a||this.forecastValue(n.key),this.regex&&!this.regex.test(a))return void n.preventDefault();const l=Number(a);(l>this.max||l<this.min)&&n.preventDefault()}onPaste(n){if(!0===this.allowPaste){let a="";window.clipboardData?a=window.clipboardData.getData("text"):n.clipboardData&&n.clipboardData.getData&&(a=n.clipboardData.getData("text/plain")),this.pasteData(a),n.preventDefault()}else n.preventDefault(),n.stopPropagation()}onDrop(n){const a=n.dataTransfer?.getData("text")??"";this.inputElement.focus(),this.pasteData(a),n.preventDefault()}pasteData(n){const a=this.sanitizeInput(n);if(!a.includes(this.negativeSign)||!this.hasNegativeSign||this.getSelection().includes(this.negativeSign)){if(!document.execCommand("insertText",!1,a))if(this.inputElement.setRangeText){const{selectionStart:O,selectionEnd:h}=this.inputElement;this.inputElement.setRangeText(a,O??0,h??0,"end"),typeof window.InstallTrigger<"u"&&this.inputElement.dispatchEvent(new Event("input",{cancelable:!0}))}else this.insertAtCursor(this.inputElement,a);this.decimal&&(this.hasDecimalPoint=this.inputElement.value.indexOf(this.decimalSeparator)>-1),this.hasNegativeSign=this.inputElement.value.indexOf(this.negativeSign)>-1}}insertAtCursor(n,a){const l=n.selectionStart??0,O=n.selectionEnd??0;n.value=n.value.substring(0,l)+a+n.value.substring(O,n.value.length);const h=l+a.length;n.focus(),n.setSelectionRange(h,h),this.triggerEvent(n,"input")}triggerEvent(n,a){if("createEvent"in document){const l=document.createEvent("HTMLEvents");l.initEvent(a,!1,!0),n.dispatchEvent(l)}}sanitizeInput(n){let l,a="";l=this.decimal&&this.isValidDecimal(n)?new RegExp(`${this.getNegativeSignRegExp()}[^0-9${this.decimalSeparator}]`,"g"):new RegExp(`${this.getNegativeSignRegExp()}[^0-9]`,"g"),a=n.replace(l,"");const O=this.inputElement.maxLength;if(O>0){const h=O-this.inputElement.value.length+(a.includes(`${this.negativeSign}`)?1:0);a=h>0?a.substring(0,h):""}return a}getNegativeSignRegExp(){return!this.allowNegatives||this.hasNegativeSign&&!this.getSelection().includes(this.negativeSign)?"":`(?!^${this.negativeSign})`}isValidDecimal(n){if(this.hasDecimalPoint){const a=this.getSelection();return a&&a.indexOf(this.decimalSeparator)>-1?n.split(this.decimalSeparator).length<=2:n.indexOf(this.decimalSeparator)<0}return n.split(this.decimalSeparator).length<=2}getSelection(){return this.inputElement.value.substring(this.inputElement.selectionStart??0,this.inputElement.selectionEnd??0)}forecastValue(n){const l=this.inputElement.selectionEnd??0,O=this.inputElement.value;return O.substring(0,this.inputElement.selectionStart??0)+n+O.substring(l)}};let e=r;return r.\u0275fac=function(a){return new(a||r)(c.Y36(c.SBq))},r.\u0275dir=c.lG2({type:r,selectors:[["","digitOnly",""]],hostBindings:function(a,l){1&a&&c.NdJ("beforeinput",function(h){return l.onBeforeInput(h)})("keydown",function(h){return l.onKeyDown(h)})("paste",function(h){return l.onPaste(h)})("drop",function(h){return l.onDrop(h)})},inputs:{decimal:"decimal",decimalSeparator:"decimalSeparator",allowNegatives:"allowNegatives",allowPaste:"allowPaste",negativeSign:"negativeSign",min:"min",max:"max",pattern:"pattern"},features:[c.TTD]}),e})()},7777:(z,C,i)=>{i.d(C,{k:()=>s});var c=i(2560);let s=(()=>{const r=class{};let e=r;return r.\u0275fac=function(a){return new(a||r)},r.\u0275mod=c.oAB({type:r}),r.\u0275inj=c.cJS({}),e})()},8343:(z,C,i)=>{i.d(C,{q:()=>r});var c=i(2560),s=i(3280),e=i(6887);let r=(()=>{const n=class{onMouseEnter(){this.elementRef.nativeElement.disabled=!0,this.elementRef.nativeElement.style.pointerEvents="none",this.throttleMs&&setTimeout(()=>{this.elementRef.nativeElement.disabled=!1,this.elementRef.nativeElement.style.pointerEvents="auto"},this.throttleMs)}constructor(l){this.elementRef=l,this.throttleMs=500,this.singleClick=new c.vpe}ngOnInit(){this.subscription=(0,s.R)(this.elementRef.nativeElement,"click").pipe((0,e.p)(this.throttleMs)).subscribe(l=>{this.elementRef.nativeElement.disabled=!0,this.singleClick.emit(l)})}ngOnDestroy(){this.subscription?.unsubscribe(),this.singleClick.unsubscribe()}};let u=n;return n.\u0275fac=function(O){return new(O||n)(c.Y36(c.SBq))},n.\u0275dir=c.lG2({type:n,selectors:[["","appSingleClick",""]],hostBindings:function(O,h){1&O&&c.NdJ("click",function(){return h.onMouseEnter()})},inputs:{throttleMs:"throttleMs"},outputs:{singleClick:"singleClick"}}),u})()},162:(z,C,i)=>{i.d(C,{a:()=>s});var c=i(2560);let s=(()=>{const r=class{constructor(n,a){this.el=n,this.renderer=a;const l=this.renderer.createElement("script");this.renderer.setAttribute(l,"src","https://cdn.jsdelivr.net/npm/sockjs-client@1/dist/sockjs.min.js"),this.renderer.setAttribute(l,"async",""),this.renderer.appendChild(this.el.nativeElement,l)}};let e=r;return r.\u0275fac=function(a){return new(a||r)(c.Y36(c.SBq),c.Y36(c.Qsj))},r.\u0275dir=c.lG2({type:r,selectors:[["","appSockJsClient",""]]}),e})()},3650:(z,C,i)=>{i.d(C,{A:()=>e});var c=i(4666),s=i(2560);let e=(()=>{const u=class{};let r=u;return u.\u0275fac=function(l){return new(l||u)},u.\u0275mod=s.oAB({type:u}),u.\u0275inj=s.cJS({imports:[c.ez]}),r})()},9786:(z,C,i)=>{i.d(C,{q:()=>e});var c=i(4666),s=i(2560);let e=(()=>{const u=class{};let r=u;return u.\u0275fac=function(l){return new(l||u)},u.\u0275mod=s.oAB({type:u}),u.\u0275inj=s.cJS({imports:[c.ez]}),r})()},2520:(z,C,i)=>{i.d(C,{R:()=>c});const c={general:{sortMsg:"\u0110\xe3 c\xf3 l\u1ed7i x\u1ea3y ra!",longMsg:"\u0110\xe3 c\xf3 l\u1ed7i x\u1ea3y ra, vui l\xf2ng th\u1eed l\u1ea1i sau!"},register:{noPhoneNumber:"Vui l\xf2ng nh\u1eadp s\u1ed1 \u0111i\u1ec7n tho\u1ea1i!"},forgotPass:{noPhoneNumber:"Vui l\xf2ng nh\u1eadp s\u1ed1 \u0111i\u1ec7n tho\u1ea1i!"},otp:{sendFail:"G\u1eedi OTP Th\u1ea5t b\u1ea1i!"}}},2729:(z,C,i)=>{i.d(C,{X:()=>s});var c=i(2560);let s=(()=>{class e{constructor(){this.baseUrl="https://www.google.com/recaptcha/api.js",this.siteKey="",this.isLoaded=!1,window.ngRecaptcha3Loaded=()=>{this.isLoaded=!0},this.scriptId=+new Date}getToken(u){try{return window.grecaptcha.execute(this.siteKey,u)}catch(n){return new Promise((a,l)=>{l(n)})}}init(u){return new Promise((n,a)=>
1{if(this.isLoaded)n("success");else{this.siteKey=u;const l=document.createElement("script");l.innerHTML="",l.src=this.baseUrl+`?render=${this.siteKey}&onload=ngRecaptcha3Loaded`,l.id=`recapthcha-${this.scriptId}`,l.async=!0,l.defer=!0,l.onload=()=>{n("success")},l.onerror=()=>{a("error")},document.head.appendChild(l)}})}destroy(){this.isLoaded=!1;const u=document.getElementById(`recapthcha-${this.scriptId}`);u&&u.remove();const n=document.getElementsByClassName("grecaptcha-badge")[0];n&&n.remove()}}return e.\u0275fac=function(u){return new(u||e)},e.\u0275prov=c.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},8154:(z,C,i)=>{i.d(C,{EZ:()=>L,Ie:()=>w,Wr:()=>F});var c=i(2321),s=i(2560),e=i(2508),r=i(253),u=i(3280),n=i(8951),a=i(4157),l=i(4218),O=i(2867),h=i(4587),g=i(4666);const x=["*"],b=["inputElement"],t=["nz-checkbox",""];let L=(()=>{class k{constructor(){this.nzOnChange=new s.vpe,this.checkboxList=[]}addCheckbox(p){this.checkboxList.push(p)}removeCheckbox(p){this.checkboxList.splice(this.checkboxList.indexOf(p),1)}onChange(){const p=this.checkboxList.filter(E=>E.nzChecked).map(E=>E.nzValue);this.nzOnChange.emit(p)}}return k.\u0275fac=function(p){return new(p||k)},k.\u0275cmp=s.Xpm({type:k,selectors:[["nz-checkbox-wrapper"]],hostAttrs:[1,"ant-checkbox-group"],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],ngContentSelectors:x,decls:1,vars:0,template:function(p,E){1&p&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),k})(),w=(()=>{class k{constructor(p,E,I,P,U,T,V){this.ngZone=p,this.elementRef=E,this.nzCheckboxWrapperComponent=I,this.cdr=P,this.focusMonitor=U,this.directionality=T,this.nzFormStatusService=V,this.dir="ltr",this.destroy$=new r.x,this.isNzDisableFirstChange=!0,this.onChange=()=>{},this.onTouched=()=>{},this.nzCheckedChange=new s.vpe,this.nzValue=null,this.nzAutoFocus=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzChecked=!1,this.nzId=null}innerCheckedChange(p){this.nzDisabled||(this.nzChecked=p,this.onChange(this.nzChecked),this.nzCheckedChange.emit(this.nzChecked),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.onChange())}writeValue(p){this.nzChecked=p,this.cdr.markForCheck()}registerOnChange(p){this.onChange=p}registerOnTouched(p){this.onTouched=p}setDisabledState(p){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||p,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe((0,n.R)(this.destroy$)).subscribe(p=>{p||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.addCheckbox(this),this.directionality.change.pipe((0,n.R)(this.destroy$)).subscribe(p=>{this.dir=p,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,u.R)(this.elementRef.nativeElement,"click").pipe((0,n.R)(this.destroy$)).subscribe(p=>{p.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck()})}),(0,u.R)(this.inputElement.nativeElement,"click").pipe((0,n.R)(this.destroy$)).subscribe(p=>p.stopPropagation())})}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.removeCheckbox(this),this.destroy$.next(),this.destroy$.complete()}}return k.\u0275fac=function(p){return new(p||k)(s.Y36(s.R0b),s.Y36(s.SBq),s.Y36(L,8),s.Y36(s.sBO),s.Y36(l.tE),s.Y36(O.Is,8),s.Y36(h.kH,8))},k.\u0275cmp=s.Xpm({type:k,selectors:[["","nz-checkbox",""]],viewQuery:function(p,E){if(1&p&&s.Gf(b,7),2&p){let I;s.iGM(I=s.CRH())&&(E.inputElement=I.first)}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:6,hostBindings:function(p,E){2&p&&s.ekj("ant-checkbox-wrapper-in-form-item",!!E.nzFormStatusService)("ant-checkbox-wrapper-checked",E.nzChecked)("ant-checkbox-rtl","rtl"===E.dir)},inputs:{nzValue:"nzValue",nzAutoFocus:"nzAutoFocus",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzChecked:"nzChecked",nzId:"nzId"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],features:[s._Bn([{provide:e.JU,useExisting:(0,s.Gpc)(()=>k),multi:!0}])],attrs:t,ngContentSelectors:x,decls:6,vars:11,consts:[[1,"ant-checkbox"],["type","checkbox",1,"ant-checkbox-input",3,"checked","ngModel","disabled","ngModelChange"],["inputElement",""],[1,"ant-checkbox-inner"]],template:function(p,E){1&p&&(s.F$t(),s.TgZ(0,"span",0)(1,"input",1,2),s.NdJ("ngModelChange",function(P){return E.innerCheckedChange(P)}
1),s.qZA(),s._UZ(3,"span",3),s.qZA(),s.TgZ(4,"span"),s.Hsn(5),s.qZA()),2&p&&(s.ekj("ant-checkbox-checked",E.nzChecked&&!E.nzIndeterminate)("ant-checkbox-disabled",E.nzDisabled)("ant-checkbox-indeterminate",E.nzIndeterminate),s.xp6(1),s.Q6J("checked",E.nzChecked)("ngModel",E.nzChecked)("disabled",E.nzDisabled),s.uIk("autofocus",E.nzAutoFocus?"autofocus":null)("id",E.nzId))},dependencies:[e.Wl,e.JJ,e.On],encapsulation:2,changeDetection:0}),(0,c.gn)([(0,a.yF)()],k.prototype,"nzAutoFocus",void 0),(0,c.gn)([(0,a.yF)()],k.prototype,"nzDisabled",void 0),(0,c.gn)([(0,a.yF)()],k.prototype,"nzIndeterminate",void 0),(0,c.gn)([(0,a.yF)()],k.prototype,"nzChecked",void 0),k})(),F=(()=>{class k{}return k.\u0275fac=function(p){return new(p||k)},k.\u0275mod=s.oAB({type:k}),k.\u0275inj=s.cJS({imports:[O.vT,g.ez,e.u5,l.rt]}),k})()}}]);
2//# sourceMappingURL=9743.afbfdb61ef5d27c7.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.