(window.webpackJsonp=window.webpackJsonp||[]).push([[34],{"/bYn":function(n,l,t){"use strict";t.d(l,"a",(function(){return o}));var e=t("0JMs"),i=t("sDGj");class o{constructor(n,l){this.elRef=n,this.control=l}onInputChange(n){const l=Number(this.inputName.maxLength);let t;t=this.inputName.inputDefault?Object(e.p)(n.target.value):this.inputName.stockType?Object(e.r)(n.target.value.replace(i.e,"")):Object(e.p)(n.target.value.replace(i.d,"")),this.inputName.isLowerCaseValid||(t=this.filterUppercaseCharacters(t)),t=t.replace(/ +/g," "),t=t.length>l?t.substring(0,l):t,this.elRef.nativeElement.value=t,this.control.control.setValue(t)}onPaste(n){n.preventDefault();const l=n.clipboardData.getData("text/plain");let t;t=this.inputName.inputDefault?Object(e.p)(l):this.inputName.stockType?Object(e.r)(l.replace(i.e,"")):Object(e.p)(l.replace(i.d,"")),this.inputName.isLowerCaseValid||(t=this.filterUppercaseCharacters(t)),t=t.replace(/ +/g," "),document.execCommand("insertText",!1,t)}filterUppercaseCharacters(n){let l=n.replace(i.d,"");l=n.toUpperCase();const t=l.length;return" "===l.substring(l.length-2,t)&&(l=l.substring(0,t-1)),l}}},Iab2:function(n,l,t){var e,i;void 0===(i="function"==typeof(e=function(){"use strict";function l(n,l,t){var e=new XMLHttpRequest;e.open("GET",n),e.responseType="blob",e.onload=function(){a(e.response,l,t)},e.onerror=function(){console.error("could not download file")},e.send()}function t(n){var l=new XMLHttpRequest;l.open("HEAD",n,!1);try{l.send()}catch(n){}return 200<=l.status&&299>=l.status}function e(n){try{n.dispatchEvent(new MouseEvent("click"))}catch(l){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),n.dispatchEvent(t)}}var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,o=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(n,o,a){var u=i.URL||i.webkitURL,r=document.createElement("a");r.download=o=o||n.name||"download",r.rel="noopener","string"==typeof n?(r.href=n,r.origin===location.origin?e(r):t(r.href)?l(n,o,a):e(r,r.target="_blank")):(r.href=u.createObjectURL(n),setTimeout((function(){u.revokeObjectURL(r.href)}),4e4),setTimeout((function(){e(r)}),0))}:"msSaveOrOpenBlob"in navigator?function(n,i,o){if(i=i||n.name||"download","string"!=typeof n)navigator.msSaveOrOpenBlob(function(n,l){return void 0===l?l={autoBom:!1}:"object"!=typeof l&&(console.warn("Deprecated: Expected third argument to be a object"),l={autoBom:!l}),l.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type)?new Blob(["\ufeff",n],{type:n.type}):n}(n,o),i);else if(t(n))l(n,i,o);else{var a=document.createElement("a");a.href=n,a.target="_blank",setTimeout((function(){e(a)}))}}:function(n,t,e,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof n)return l(n,t,e);var u="application/octet-stream"===n.type,r=/constructor/i.test(i.HTMLElement)||i.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||u&&r||o)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var n=c.result;n=s?n:n.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=n:location=n,a=null},c.readAsDataURL(n)}else{var d=i.URL||i.webkitURL,p=d.createObjectURL(n);a?a.location=p:location.href=p,a=null,setTimeout((function(){d.revokeObjectURL(p)}),4e4)}});i.saveAs=a.saveAs=a,n.exports=a})?e.apply(l,[]):e)||(n.exports=i)},"O/40":function(n,l,t){"use strict";t.r(l);var e=t("8Y7J");class i{}var o=t("t68o"),a=t("zbXB"),u=t("pMnS"),r=t("TSSN"),s=t("SVse"),c=t("Xwc5"),d=t("Fo8p"),p=t("wd/R"),m=t("XpjX");class b{constructor(n,l){this.commonService=n,this.router=l,this.documents=[]}ngOnInit(){this.commonService.setPageTitle("menu.home.abroad"),this.commonService.showBreadcrumb(!0),this.commonService.callApi({method:d.a.GET,url:c.a.ABROAD_GET_LIST_DOCUMENT,success:n=>{this.documents=n.Documents}})}createAbroad(){this.router.navigate(["/main/abroad/create"])}editAbroad(n){this.router.navigate(["/main/abroad/edit"],{state:{id:n}})}convertUpdatedTime(n){return p.unix(Number(n.createdDate)/1e3).format(m.u.DATE)}}var g=t("oUVn"),h=t("iInd"),f=e.pb({encapsulation:0,styles:[[".abroad-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:space-between}.abroad-body[_ngcontent-%COMP%]{max-width:388px;width:calc(50% - 12px);height:136px;border-radius:5px;background:#fff;margin-bottom:24px}.abroad-creating[_ngcontent-%COMP%]{display:flex;flex-flow:column;align-items:center;justify-content:center}.abroad-name[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.abroad-image[_ngcontent-%COMP%]{border:2px solid #e2d8ef;border-radius:50%;padding:7px;margin-bottom:8px}.abroad-add[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#42236a}.abroad-add[_ngcontent-%COMP%]:hover, .abroad-image[_ngcontent-%COMP%]:hover{cursor:pointer}.abroad-detail[_ngcontent-%COMP%]{padding:16px;display:flex;flex-direction:column;justify-content:space-between}.abroad-created-name[_ngcontent-%COMP%], .abroad-id[_ngcontent-%COMP%]{font-size:14px}.abroad-action[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.abroad-button[_ngcontent-%COMP%]{display:flex;align-items:center;color:#ff9800}@media screen and (max-width:575px){.abroad-body[_ngcontent-%COMP%]{max-width:100%;width:100%}}@media screen and (max-width:767px){.abroad-body[_ngcontent-%COMP%]{max-width:100%;width:100%}}"]],data:{}});function C(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,13,"div",[["class","abroad-body abroad-detail"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,2,"div",[["class","abroad-header"]],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,1,"div",[["class","abroad-created-date"]],null,null,null,null,null)),(n()(),e.Lb(3,null,["",""])),(n()(),e.rb(4,0,null,null,9,"div",[["class","abroad-footer"]],null,null,null,null,null)),(n()(),e.rb(5,0,null,null,1,"div",[["class","abroad-name"]],null,null,null,null,null)),(n()(),e.Lb(6,null,["",""])),(n()(),e.rb(7,0,null,null,6,"div",[["class","abroad-action"]],null,null,null,null,null)),(n()(),e.rb(8,0,null,null,1,"span",[["class","abroad-id"]],null,null,null,null,null)),(n()(),e.Lb(9,null,["",""])),(n()(),e.rb(10,0,null,null,3,"span",[["class","abroad-button text-link"]],null,[[null,"click"]],(function(n,l,t){var e=!0;return"click"===l&&(e=!1!==n.component.editAbroad(n.context.$implicit.id)&&e),e}),null,null)),(n()(),e.Lb(11,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(13,0,null,null,0,"img",[["src","assets/icons/right.svg"]],null,null,null,null,null))],null,(function(n,l){n(l,3,0,l.component.convertUpdatedTime(l.context.$implicit)),n(l,6,0,l.context.$implicit.fullName),n(l,9,0,l.context.$implicit.passportNumber),n(l,11,0,e.Mb(l,11,0,e.Db(l,12).transform("general.btn_edit")))}))}function v(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,7,"div",[["class","abroad-container"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,4,"div",[["class","abroad-body abroad-creating"]],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,0,"img",[["class","abroad-image"],["src","assets/icons/icons-add.svg"]],null,[[null,"click"]],(function(n,l,t){var e=!0;return"click"===l&&(e=!1!==n.component.createAbroad()&&e),e}),null,null)),(n()(),e.rb(3,0,null,null,2,"div",[["class","abroad-add"]],null,[[null,"click"]],(function(n,l,t){var e=!0;return"click"===l&&(e=!1!==n.component.createAbroad()&&e),e}),null,null)),(n()(),e.Lb(4,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.gb(16777216,null,null,1,null,C)),e.qb(7,278528,null,0,s.m,[e.N,e.K,e.q],{ngForOf:[0,"ngForOf"]},null)],(function(n,l){n(l,7,0,l.component.documents)}),(function(n,l){n(l,4,0,e.Mb(l,4,0,e.Db(l,5).transform("abroad.home.title")))}))}function D(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,1,"app-abroad",[],null,null,null,v,f)),e.qb(1,114688,null,0,b,[g.a,h.m],null,null)],(function(n,l){n(l,1,0)}),null)}var F=e.nb("app-abroad",b,D,{},{},[]),y=t("6spI"),_=t("dOKT"),k=t("s7LF"),P=t("sDGj"),x=t("0JMs");class w{constructor(n,l){this.elRef=n,this.controls=l,this.appInputRelationship=10}onInputChanged(n){let l=1===n.target.value.length?n.target.value.trim():n.target.value;l=l.replace(P.d,""),l=Object(x.s)(l),l=Object(x.q)(l),l=l.replace(/ +/g," "),l=l.length>this.appInputRelationship?l.substring(0,this.appInputRelationship):l,l=" "===l?"":l,l=" "!==l&&" "===l[0]?l.substring(1,l.length):l,this.elRef.nativeElement.value=l,this.controls.control.setValue(l)}}var M=t("aJGe"),O=t("VgyV");class I{constructor(){}ngOnInit(){}}var G=e.pb({encapsulation:0,styles:[[".abroad-error[_ngcontent-%COMP%]{text-align:center;font-size:13px;color:#ff3b30;margin-bottom:16px}.abroad-img[_ngcontent-%COMP%]{width:15px}"]],data:{}});function T(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,3,"div",[["class","abroad-error"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,0,"img",[["class","abroad-img"],["src","/assets/icons/ic_warning.svg"]],null,null,null,null,null)),e.Cb(null,0)],null,null)}var N=t("/bYn");class S{constructor(n,l){this.elRef=n,this.controls=l,this.MAX=8}onInputChanged(n){let l=n.target.value;if(1===l.length)l=l.replace(P.g,"").toUpperCase();else{l=l.replace(P.h,"");let n=l.slice(0,1),t=l.slice(1,l.length);t=t.replace(P.i,""),l=n.toUpperCase()+t}l=l.length>this.MAX?l.substring(0,this.MAX):l,this.elRef.nativeElement.value=l,this.controls.control.setValue(l)}onPaste(n){n.preventDefault();let l=n.clipboardData.getData("text/plain");const t=/[A-Za-z]/g;let e="",i="",o=!1;l=l.replace(/[^A-Za-z0-9]/g,"");for(let u=0;u10&&(l=l.substring(0,10));const e=l.split("/");if(3===e.length)e[0]=e[0].length>2?e[0].substring(0,2):e[0],e[1]=e[1].length>2?e[1].substring(0,2):e[1],e[2]=e[2].length>4?e[2].substring(0,4):e[2],l=e[0]+"/"+e[1]+"/"+e[2];else if(2===e.length)if("deleteContentBackward"===n.inputType){const n=this.abroadUtil.oldDateTime.split("/"),e=l.split("/");l=3!==n.length||2!==e.length||t?l:this.abroadUtil.oldDateTime}else e[0]=e[0].length>2?e[0].substring(0,2):e[0],e[1]=e[1].length>2?e[1].substring(0,2):e[1],l=e[0]+"/"+e[1]+(2===e[1].length?"/":"");else if(""!==l&&1===e.length)if("deleteContentBackward"===n.inputType){const n=this.abroadUtil.oldDateTime.split("/"),e=l.split("/");l=2!==n.length||1!==e.length||t?l:this.abroadUtil.oldDateTime}else e[0]=e[0].length>2?e[0].substring(0,2):e[0],l=e[0]+(2===e[0].length?"/":"");l="/"===l||"//"===l?"":l,this.elRef.nativeElement.value=l,this.control.control.setValue(l)}}class E{constructor(n,l){this.commonService=n,this.translateService=l,this.isEditAbroadValid=!1,this.isEditPayEndTermValid=!1,this.listKeys=["paymentFeeFile","admissionFile","passportSenderFile","registrationBookFile","passportFile","visaFile"]}saveDocument(n,l,t){let e="";n.controls.payReceiver.value&&(e="Chuyen Khoan Hoc Phi"),n.controls.livingReceiver.value&&(e="Chuyen Khoan Sinh Hoat Phi"),n.controls.payReceiver.value&&n.controls.livingReceiver.value&&(e="Chuyen Khoan Hoc Phi Va Sinh Hoat Phi");const i={purposeTransfer:e,personalRelations:"Khac"!==this.translateService.get(n.controls.relationship.value).value?n.controls.relationship.value:n.controls.detailRelationship.value,fullName:n.controls.name.value.trim(),passportNumber:n.controls.passport.value.trim(),issuedDate:n.controls.passportDate.value,expiredDate:n.controls.expiredPassportDate.value,issuedBy:n.controls.placePassportIssuance.value.trim(),visaEffectiveDate:n.controls.visaDate.value,visaExpiredDate:n.controls.expiredVisaDate.value,visaIssuedBy:n.controls.placeVisaIssuance.value.trim(),schoolName:n.controls.paySchoolName.value.trim(),endTerm:n.controls.payEndTerm.value?n.controls.payEndTerm.value:this.createEndTerm(),sectionTuitionFee:{receiver:n.controls.payReceiver.value.trim(),receivingBank:n.controls.payReceivingBank.value.trim(),receivingBankAddress:n.controls.payReceivingBankAddress.value.trim(),creditorAccountNumber:(n.controls.payCreditorAccountNumber.value?n.controls.payCreditorAccountNumber.value:n.controls.livingCreditorAccountNumber.value).replace(/\s/g,""),intermediaryBank:n.controls.payIntermediaryBank.value.trim(),intermediaryBankAddress:n.controls.payIntermediaryBankAddress.value.trim()},sectionLivingExpenses:{receiver:n.controls.livingReceiver.value.trim(),receivingBank:n.controls.livingReceivingBank.value.trim(),receivingBankAddress:n.controls.livingReceivingBankAddress.value.trim(),creditorAccountNumber:(n.controls.livingCreditorAccountNumber.value?n.controls.livingCreditorAccountNumber.value:n.controls.payCreditorAccountNumber.value).replace(/\s/g,""),intermediaryBank:n.controls.livingIntermediaryBank.value.trim(),intermediaryBankAddress:n.controls.livingIntermediaryBankAddress.value.trim()},paymentFeeFileId:n.controls.paymentFeeFile.value,admissionFileId:n.controls.admissionFile.value,passportSenderFileId:n.controls.passportSenderFile.value,registrationBookFileId:n.controls.registrationBookFile.value,visaFileId:n.controls.visaFile.value,passportFileId:n.controls.passportFile.value};l.LIVING_FEE||(i.sectionLivingExpenses={receiver:"",receivingBank:"",receivingBankAddress:"",creditorAccountNumber:(n.controls.livingCreditorAccountNumber.value?n.controls.livingCreditorAccountNumber.value:n.controls.payCreditorAccountNumber.value).replace(/\s/g,""),intermediaryBank:"",intermediaryBankAddress:""},i.registrationBookFileId="",i.visaFileId=""),l.PAYMENT_FEE||(i.sectionTuitionFee={receiver:"",receivingBank:"",receivingBankAddress:"",creditorAccountNumber:(n.controls.payCreditorAccountNumber.value?n.controls.payCreditorAccountNumber.value:n.controls.livingCreditorAccountNumber.value).replace(/\s/g,""),intermediaryBank:"",intermediaryBankAddress:""},i.paymentFeeFileId=""),n.controls.id.value&&(i.id=n.controls.id.value),console.log(i),this.commonService.callApi({method:"post",url:c.a.ABROAD_SAVE_DOCUMENT,data:i,success:n=>{t(n)}})}createEndTerm(){return p().add(36,"months").format("DD/MM/YYYY")}getTypeByFileName(n){const l=n.split(".");switch(l[l.length-1].toLowerCase()){case"jpg":return"image/jpg";case"jpeg":return"image/jpeg";case"png":return"image/png";case"pdf":return"application/pdf";default:return"image/jpg"}}clearData(n){for(let l=0;l{n?this.validateDatetime(n)?this.validateDatetimeType(n):(this.setInvalidToFG("abroad.info-common.datetime_error_DH004"),this.setDatetimeStatusFG(!1,n)):(this.setValidToFG(),this.setDatetimeStatusFG(!1,n),this.validateFormGroup.emit())})}validateDatetime(n){let l=!1;if(10===n.length){const t=n.split("/");l=p(t[1]+"-"+t[0]+"-"+t[2],"MM-DD-YYYY").isValid()}return l}isFormGroupValid(){return 0===this.abroadForms.controls.datetime.value.length||this.validateDatetime(this.abroadForms.controls.datetime.value)}detectSpecialCharacter(n){"/"===n.key?n.preventDefault():"Backspace"===n.key&&(this.abroadUtil.oldDateTime=this.abroadForms.controls.datetime.value)}setDatetimeStatusFG(n,l){switch(this.type){case this.abroadTypes.startPassport:this.infoCommonFormGroup.controls.isPassportDateValid.setValue(n),this.infoCommonFormGroup.controls.passportDate.setValue(l);break;case this.abroadTypes.endPassport:this.infoCommonFormGroup.controls.isExpiredPassportDateValid.setValue(n),this.infoCommonFormGroup.controls.expiredPassportDate.setValue(l);break;case this.abroadTypes.startVisa:this.infoCommonFormGroup.controls.isVisaDateValid.setValue(n),this.infoCommonFormGroup.controls.visaDate.setValue(l);break;case this.abroadTypes.endVisa:this.infoCommonFormGroup.controls.isExpiredVisaDateValid.setValue(n),this.infoCommonFormGroup.controls.expiredVisaDate.setValue(l);break;case this.abroadTypes.endTerm:this.infoCommonFormGroup.controls.isPayEndTermValid.setValue(n),this.infoCommonFormGroup.controls.payEndTerm.setValue(l)}}validateDatetimeType(n){switch(this.type){case this.abroadTypes.endTerm:this.validateByExpiredSchoolDate(n);break;case this.abroadTypes.startPassport:this.validateByPassportIssuance(n),this.validateDatetime(this.infoCommonFormGroup.controls.passportDate.value)&&this.validateFormGroup.emit();break;case this.abroadTypes.endPassport:this.validateByExpiredPassport(n),this.validateDatetime(this.infoCommonFormGroup.controls.expiredPassportDate.value)&&this.validateFormGroup.emit();break;case this.abroadTypes.startVisa:this.validateByVisaInssuance(n),this.validateDatetime(this.infoCommonFormGroup.controls.visaDate.value)&&this.validateFormGroup.emit();break;case this.abroadTypes.endVisa:this.validateByExpiredVisa(n),this.validateDatetime(this.infoCommonFormGroup.controls.expiredVisaDate.value)&&this.validateFormGroup.emit()}}validateByExpiredSchoolDate(n){const l=p().startOf("day"),t=p().add(120,"months"),e=p(n,m.u.DATE);e.diff(t)>0||e.diff(l)<0?(this.errorMsg="abroad.info-common.datetime_error_DH013",this.setDatetimeStatusFG(!1,n),this.isShowMsgValid=!0):(this.setDatetimeStatusFG(!0,n),this.isShowMsgValid=!1)}validateByPassportIssuance(n){const l=n||"",t=p().format(m.u.DATE),e=p().subtract(10,"years").format(m.u.DATE);this.compareDateTime(l,t)?(this.setInvalidToFG("abroad.info-common.datetime_error_DH005"),this.setDatetimeStatusFG(!1,n)):this.compareDateTime(e,l)?(this.setInvalidToFG("abroad.info-common.datetime_error_DH006"),this.setDatetimeStatusFG(!1,n)):(this.setValidToFG(),this.setDatetimeStatusFG(!0,n))}validateByExpiredPassport(n){const l=n||"",t=p().format(m.u.DATE),e=this.validateDatetime(this.infoCommonFormGroup.controls.passportDate.value)?p(this.infoCommonFormGroup.controls.passportDate.value,m.u.DATE).add(30,"years").format(m.u.DATE):"",i=p().add(30,"years").format(m.u.DATE),o=this.validateDatetime(this.infoCommonFormGroup.controls.passportDate.value)?this.infoCommonFormGroup.controls.passportDate.value:"";this.compareDateTime(t,l)?(this.setInvalidToFG("abroad.info-common.datetime_error_DH007"),this.setDatetimeStatusFG(!1,n)):this.compareDateTime(l,i)||""!==e&&this.compareDateTime(l,e)?(this.setInvalidToFG("abroad.info-common.datetime_error_DH008"),this.setDatetimeStatusFG(!1,n)):this.compareDateTime(o,l)?(this.setInvalidToFG("abroad.info-common.datetime_error_DH017"),this.setDatetimeStatusFG(!1,n)):(this.setValidToFG(),this.setDatetimeStatusFG(!0,n))}validateByVisaInssuance(n){const l=n||"",t=this.validateDatetime(this.infoCommonFormGroup.controls.passportDate.value)?this.infoCommonFormGroup.controls.passportDate.value:"",e=this.validateDatetime(this.infoCommonFormGroup.controls.expiredPassportDate.value)?this.infoCommonFormGroup.controls.expiredPassportDate.value:"";""!==t&&this.compareDateTime(t,l)?(this.setInvalidToFG("abroad.info-common.datetime_error_DH009"),this.setDatetimeStatusFG(!1,n)):""!==e&&this.compareDateTime(l,e)?(this.setInvalidToFG("abroad.info-common.datetime_error_DH010"),this.setDatetimeStatusFG(!1,n)):(this.setValidToFG(),this.setDatetimeStatusFG(!0,n))}validateByExpiredVisa(n){const l=n||"",t=p().format(m.u.DATE),e=this.validateDatetime(this.infoCommonFormGroup.controls.passportDate.value)?this.infoCommonFormGroup.controls.passportDate.value:"",i=this.validateDatetime(this.infoCommonFormGroup.controls.expiredPassportDate.value)?this.infoCommonFormGroup.controls.expiredPassportDate.value:"",o=this.validateDatetime(this.infoCommonFormGroup.controls.visaDate.value)?this.infoCommonFormGroup.controls.visaDate.value:"";this.compareDateTime(t,l)?(this.setInvalidToFG("abroad.info-common.datetime_error_DH018"),this.setDatetimeStatusFG(!1,n)):""!==e&&this.compareDateTime(e,l)?(this.setInvalidToFG("abroad.info-common.datetime_error_DH011"),this.setDatetimeStatusFG(!1,n)):""!==i&&this.compareDateTime(l,i)?(this.setInvalidToFG("abroad.info-common.datetime_error_DH012"),this.setDatetimeStatusFG(!1,n)):""!==o&&this.compareDateTime(o,l)?(this.setInvalidToFG("abroad.info-common.datetime_error_DH016"),this.setDatetimeStatusFG(!1,n)):(this.setValidToFG(),this.setDatetimeStatusFG(!0,n))}compareDateTime(n,l){const t=n.split("/"),e=l.split("/");return Number(t[2])>Number(e[2])||Number(t[2])===Number(e[2])&&Number(t[1])>Number(e[1])||Number(t[2])===Number(e[2])&&Number(t[1])===Number(e[1])&&Number(t[0])>Number(e[0])}}var q=e.pb({encapsulation:0,styles:[[".datetime-container[_ngcontent-%COMP%]{height:45px;width:100%;border-radius:5px;border:1px solid #e2d8ee;background-color:#fcfcfc;display:flex;padding:12px}.datetime-input[_ngcontent-%COMP%]{outline:0;margin:0;border:0;width:100%;background-color:#fcfcfc}.datetime-error[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin-top:16px}.datetime-message[_ngcontent-%COMP%]{color:#ff3b30;font-size:13px}.datetime-image[_ngcontent-%COMP%]{width:15px}input[_ngcontent-%COMP%]{font-weight:500;padding:0}input[_ngcontent-%COMP%]::-webkit-input-placeholder{font-weight:400}input[_ngcontent-%COMP%]::-moz-placeholder{font-weight:400}input[_ngcontent-%COMP%]::-ms-input-placeholder{font-weight:400}input[_ngcontent-%COMP%]::placeholder{font-weight:400}"]],data:{}});function L(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,4,"div",[["class","datetime-error"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,0,"img",[["class","datetime-image"],["src","assets/icons/icons-error.svg"]],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,2,"span",[["class","datetime-message"]],null,null,null,null,null)),(n()(),e.Lb(3,null,["",""])),e.Fb(131072,r.i,[r.j,e.h])],null,(function(n,l){var t=l.component;n(l,3,0,e.Mb(l,3,0,e.Db(l,4).transform(t.errorMsg)))}))}function j(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,12,"div",[["class","datetime-container"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],(function(n,l,t){var i=!0;return"submit"===l&&(i=!1!==e.Db(n,1).onSubmit(t)&&i),"reset"===l&&(i=!1!==e.Db(n,1).onReset()&&i),i}),null,null)),e.qb(1,540672,null,0,k.i,[[8,null],[8,null]],{form:[0,"form"]},null),e.Ib(2048,null,k.c,null,[k.i]),e.qb(3,16384,null,0,k.q,[[4,k.c]],null,null),(n()(),e.rb(4,0,null,null,8,"input",[["appDatetime",""],["class","datetime-input"],["formControlName","datetime"],["maxlength","10"],["onPaste","return false"],["placeholder","dd/mm/yyyy"],["type","text"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"keydown"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(n,l,t){var i=!0,o=n.component;return"input"===l&&(i=!1!==e.Db(n,5)._handleInput(t.target.value)&&i),"blur"===l&&(i=!1!==e.Db(n,5).onTouched()&&i),"compositionstart"===l&&(i=!1!==e.Db(n,5)._compositionStart()&&i),"compositionend"===l&&(i=!1!==e.Db(n,5)._compositionEnd(t.target.value)&&i),"input"===l&&(i=!1!==e.Db(n,12).onDatetimeChanged(t)&&i),"keydown"===l&&(i=!1!==o.detectSpecialCharacter(t)&&i),i}),null,null)),e.qb(5,16384,null,0,k.d,[e.C,e.k,[2,k.a]],null,null),e.qb(6,540672,null,0,k.k,[],{maxlength:[0,"maxlength"]},null),e.Ib(1024,null,k.m,(function(n){return[n]}),[k.k]),e.Ib(1024,null,k.n,(function(n){return[n]}),[k.d]),e.qb(9,671744,null,0,k.h,[[3,k.c],[6,k.m],[8,null],[6,k.n],[2,k.z]],{name:[0,"name"]},null),e.Ib(2048,null,k.o,null,[k.h]),e.qb(11,16384,null,0,k.p,[[4,k.o]],null,null),e.qb(12,16384,null,0,V,[e.k,k.o,E],null,null),(n()(),e.gb(16777216,null,null,1,null,L)),e.qb(14,16384,null,0,s.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null)],(function(n,l){var t=l.component;n(l,1,0,t.abroadForms),n(l,6,0,"10"),n(l,9,0,"datetime"),n(l,14,0,t.isShowMsgValid)}),(function(n,l){n(l,0,0,e.Db(l,3).ngClassUntouched,e.Db(l,3).ngClassTouched,e.Db(l,3).ngClassPristine,e.Db(l,3).ngClassDirty,e.Db(l,3).ngClassValid,e.Db(l,3).ngClassInvalid,e.Db(l,3).ngClassPending),n(l,4,0,e.Db(l,6).maxlength?e.Db(l,6).maxlength:null,e.Db(l,11).ngClassUntouched,e.Db(l,11).ngClassTouched,e.Db(l,11).ngClassPristine,e.Db(l,11).ngClassDirty,e.Db(l,11).ngClassValid,e.Db(l,11).ngClassInvalid,e.Db(l,11).ngClassPending)}))}class R{constructor(n,l){this.elFef=n,this.controls=l}onInputChanged(n){let l=n.target.value;const t=Number(this.appBlockSpecialChar);l=l.replace(P.a,""),l=Object(x.s)(l),l=Object(x.q)(l),l=l.replace(/ +/g," "),l=l.length>t?l.substring(0,t):l,l=l.replace(/(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/g,""),l=" "===l?"":l,l=" "!==l&&" "===l[0]?l.substring(1,l.length):l,this.elFef.nativeElement.value=l,this.controls.control.setValue(l)}}class U{constructor(n,l){this.translateService=n,this.abroadUtil=l,this.nextClick=new e.m,this.backClick=new e.m,this.abroadTypes=m.c,this.isShowPassportErrorValid=!1}ngOnInit(){this.subscribeFG()}ngAfterViewChecked(){if(this.abroadUtil.isEditAbroadValid){this.abroadUtil.isEditAbroadValid=!1;const n=this.infoCommonFG.controls.passportDate.value;this.passport.validateDatetime(n)&&this.passport.validateByVisaInssuance(n),this.handleValidateFormGroup(null)}}subscribeFG(){this.infoCommonFG.controls.passport.valueChanges.pipe(Object(B.a)()).subscribe(n=>{this.isShowPassportErrorValid=this.showPassportError(n)})}isDisabledEvent(){return!1}handleValidateFormGroup(n){const l=this.infoCommonFG.controls.expiredPassportDate.value,t=this.infoCommonFG.controls.visaDate.value,e=this.infoCommonFG.controls.expiredVisaDate.value;this.expiredPassport.validateDatetime(l)&&this.expiredPassport.validateByExpiredPassport(l),this.visa.validateDatetime(t)&&this.visa.validateByVisaInssuance(t),this.expiredVisa.validateDatetime(e)&&this.expiredVisa.validateByExpiredVisa(e)}nextPage(){if(!this.isDisabledEvent()){const n={relationship:this.translateService.get(this.infoCommonFG.controls.relationship.value).value,detailRelationship:this.infoCommonFG.controls.detailRelationship.value,name:this.infoCommonFG.controls.name.value,passport:this.infoCommonFG.controls.passport.value,passportDate:this.infoCommonFG.controls.passportDate.value};console.log(n),this.nextClick.emit()}}handleEditEvent(n){}backMainPage(){this.backClick.emit()}checkFormValid(){return!(!this.infoCommonFG.controls.name.value||!this.infoCommonFG.controls.name.value.trim()||!this.infoCommonFG.controls.passport.value||!this.infoCommonFG.controls.passport.value.trim()||this.isShowPassportErrorValid||!this.validatePassport(this.infoCommonFG.controls.passport.value.trim())||"Khac"===this.infoCommonFG.controls.relationship.value&&!this.infoCommonFG.controls.detailRelationship.value||!this.infoCommonFG.controls.expiredPassportDate.value||!this.infoCommonFG.controls.isExpiredPassportDateValid.value||!this.infoCommonFG.controls.passportDate.value||!this.infoCommonFG.controls.isPassportDateValid.value||!this.infoCommonFG.controls.placePassportIssuance.value||!this.infoCommonFG.controls.placePassportIssuance.value.trim()||!this.infoCommonFG.controls.visaDate.value||!this.infoCommonFG.controls.isVisaDateValid.value||!this.infoCommonFG.controls.expiredVisaDate.value||!this.infoCommonFG.controls.isExpiredVisaDateValid.value||!this.infoCommonFG.controls.placeVisaIssuance.value||!this.infoCommonFG.controls.placeVisaIssuance.value.trim())}validatePassport(n){return n&&8===n.length}showPassportError(n){let l=!1;if(0!==n.length&&8!==n.length)l=!0;else if(0!==n.length){const t=n[0],e=n.substring(1,n.length);(t.match(P.g)||e.match(P.b))&&(l=!0)}return l}}var K=e.pb({encapsulation:0,styles:[[".info-common-input[_ngcontent-%COMP%]{height:45px;border-radius:5px;border:1px solid #e2d8ee;background-color:#fcfcfc;width:100%;outline:0;padding:12px}.info-common-magrin-bottom[_ngcontent-%COMP%]{margin-bottom:16px}.info-common-double-input[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:16px}.info-common-first-input[_ngcontent-%COMP%], .info-common-last-input[_ngcontent-%COMP%]{width:50%}.info-common-first-input[_ngcontent-%COMP%]{margin-right:16px}.info-common-title[_ngcontent-%COMP%]{margin-bottom:8px}.info-common-button[_ngcontent-%COMP%]{margin:0 20px;padding-top:8px;display:flex;justify-content:space-around}input[_ngcontent-%COMP%]{font-weight:500}input[_ngcontent-%COMP%]::-webkit-input-placeholder{font-weight:400}input[_ngcontent-%COMP%]::-moz-placeholder{font-weight:400}input[_ngcontent-%COMP%]::-ms-input-placeholder{font-weight:400}input[_ngcontent-%COMP%]::placeholder{font-weight:400}@media only screen and (max-width:575px){.info-common-button[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column-reverse;margin-left:0;margin-top:24px}.info-common-button[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]{width:100%;margin:0}.info-common-button[_ngcontent-%COMP%] .btn-secondary[_ngcontent-%COMP%]{width:100%;margin-left:0;margin-top:16px}}"]],data:{}});function z(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,3,"app-abroad-error",[],null,null,null,T,G)),e.qb(1,114688,null,0,I,[],null,null),(n()(),e.Lb(2,0,[" "," "])),e.Fb(131072,r.i,[r.j,e.h])],(function(n,l){n(l,1,0)}),(function(n,l){n(l,2,0,e.Mb(l,2,0,e.Db(l,3).transform("abroad.info-common.passport_error")))}))}function Y(n){return e.Nb(0,[e.Jb(671088640,1,{passport:0}),e.Jb(671088640,2,{expiredPassport:0}),e.Jb(671088640,3,{visa:0}),e.Jb(671088640,4,{expiredVisa:0}),(n()(),e.rb(4,0,null,null,83,"div",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],(function(n,l,t){var i=!0;return"submit"===l&&(i=!1!==e.Db(n,5).onSubmit(t)&&i),"reset"===l&&(i=!1!==e.Db(n,5).onReset()&&i),i}),null,null)),e.qb(5,540672,null,0,k.i,[[8,null],[8,null]],{form:[0,"form"]},null),e.Ib(2048,null,k.c,null,[k.i]),e.qb(7,16384,null,0,k.q,[[4,k.c]],null,null),(n()(),e.rb(8,0,null,null,8,"input",[["class","info-common-input info-common-magrin-bottom"],["formControlName","name"],["type","text"]],[[8,"placeholder",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"paste"]],(function(n,l,t){var i=!0;return"input"===l&&(i=!1!==e.Db(n,9)._handleInput(t.target.value)&&i),"blur"===l&&(i=!1!==e.Db(n,9).onTouched()&&i),"compositionstart"===l&&(i=!1!==e.Db(n,9)._compositionStart()&&i),"compositionend"===l&&(i=!1!==e.Db(n,9)._compositionEnd(t.target.value)&&i),"input"===l&&(i=!1!==e.Db(n,14).onInputChange(t)&&i),"paste"===l&&(i=!1!==e.Db(n,14).onPaste(t)&&i),i}),null,null)),e.qb(9,16384,null,0,k.d,[e.C,e.k,[2,k.a]],null,null),e.Ib(1024,null,k.n,(function(n){return[n]}),[k.d]),e.qb(11,671744,null,0,k.h,[[3,k.c],[8,null],[8,null],[6,k.n],[2,k.z]],{name:[0,"name"]},null),e.Ib(2048,null,k.o,null,[k.h]),e.qb(13,16384,null,0,k.p,[[4,k.o]],null,null),e.qb(14,16384,null,0,N.a,[e.k,k.o],{inputName:[0,"inputName"]},null),e.Gb(15,{isLowerCaseValid:0,maxLength:1}),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(17,0,null,null,7,"input",[["appInputPassport",""],["class","info-common-input info-common-magrin-bottom"],["formControlName","passport"],["type","text"]],[[8,"placeholder",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"paste"]],(function(n,l,t){var i=!0;return"input"===l&&(i=!1!==e.Db(n,18)._handleInput(t.target.value)&&i),"blur"===l&&(i=!1!==e.Db(n,18).onTouched()&&i),"compositionstart"===l&&(i=!1!==e.Db(n,18)._compositionStart()&&i),"compositionend"===l&&(i=!1!==e.Db(n,18)._compositionEnd(t.target.value)&&i),"input"===l&&(i=!1!==e.Db(n,23).onInputChanged(t)&&i),"paste"===l&&(i=!1!==e.Db(n,23).onPaste(t)&&i),i}),null,null)),e.qb(18,16384,null,0,k.d,[e.C,e.k,[2,k.a]],null,null),e.Ib(1024,null,k.n,(function(n){return[n]}),[k.d]),e.qb(20,671744,null,0,k.h,[[3,k.c],[8,null],[8,null],[6,k.n],[2,k.z]],{name:[0,"name"]},null),e.Ib(2048,null,k.o,null,[k.h]),e.qb(22,16384,null,0,k.p,[[4,k.o]],null,null),e.qb(23,16384,null,0,S,[e.k,k.o],null,null),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.gb(16777216,null,null,1,null,z)),e.qb(26,16384,null,0,s.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.rb(27,0,null,null,12,"div",[["class","info-common-double-input"]],null,null,null,null,null)),(n()(),e.rb(28,0,null,null,5,"div",[["class","info-common-first-input"]],null,null,null,null,null)),(n()(),e.rb(29,0,null,null,2,"div",[["class","info-common-title"]],null,null,null,null,null)),(n()(),e.Lb(30,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(32,0,null,null,1,"app-abroad-datetime",[],null,[[null,"validateFormGroup"]],(function(n,l,t){var e=!0;return"validateFormGroup"===l&&(e=!1!==n.component.handleValidateFormGroup(t)&&e),e}),j,q)),e.qb(33,638976,[[1,4],["passport",4]],0,A,[k.e,E],{type:[0,"type"],infoCommonFormGroup:[1,"infoCommonFormGroup"]},{validateFormGroup:"validateFormGroup"}),(n()(),e.rb(34,0,null,null,5,"div",[["class","info-common-last-input"]],null,null,null,null,null)),(n()(),e.rb(35,0,null,null,2,"div",[["class","info-common-title"]],null,null,null,null,null)),(n()(),e.Lb(36,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(38,0,null,null,1,"app-abroad-datetime",[],null,[[null,"validateFormGroup"]],(function(n,l,t){var e=!0;return"validateFormGroup"===l&&(e=!1!==n.component.handleValidateFormGroup(t)&&e),e}),j,q)),e.qb(39,638976,[[2,4],["expiredPassport",4]],0,A,[k.e,E],{type:[0,"type"],infoCommonFormGroup:[1,"infoCommonFormGroup"]},{validateFormGroup:"validateFormGroup"}),(n()(),e.rb(40,0,null,null,13,"div",[["class","info-common-single-input info-common-magrin-bottom"]],null,null,null,null,null)),(n()(),e.rb(41,0,null,null,2,"div",[["class","info-common-title"]],null,null,null,null,null)),(n()(),e.Lb(42,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(44,0,null,null,9,"input",[["appBlockSpecialChar","250"],["class","info-common-input info-common-margin-bottom"],["formControlName","placePassportIssuance"],["maxlength","250"],["type","text"]],[[8,"placeholder",0],[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(n,l,t){var i=!0;return"input"===l&&(i=!1!==e.Db(n,45)._handleInput(t.target.value)&&i),"blur"===l&&(i=!1!==e.Db(n,45).onTouched()&&i),"compositionstart"===l&&(i=!1!==e.Db(n,45)._compositionStart()&&i),"compositionend"===l&&(i=!1!==e.Db(n,45)._compositionEnd(t.target.value)&&i),"input"===l&&(i=!1!==e.Db(n,52).onInputChanged(t)&&i),i}),null,null)),e.qb(45,16384,null,0,k.d,[e.C,e.k,[2,k.a]],null,null),e.qb(46,540672,null,0,k.k,[],{maxlength:[0,"maxlength"]},null),e.Ib(1024,null,k.m,(function(n){return[n]}),[k.k]),e.Ib(1024,null,k.n,(function(n){return[n]}),[k.d]),e.qb(49,671744,null,0,k.h,[[3,k.c],[6,k.m],[8,null],[6,k.n],[2,k.z]],{name:[0,"name"]},null),e.Ib(2048,null,k.o,null,[k.h]),e.qb(51,16384,null,0,k.p,[[4,k.o]],null,null),e.qb(52,16384,null,0,R,[e.k,k.o],{appBlockSpecialChar:[0,"appBlockSpecialChar"]},null),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(54,0,null,null,12,"div",[["class","info-common-double-input"]],null,null,null,null,null)),(n()(),e.rb(55,0,null,null,5,"div",[["class","info-common-first-input"]],null,null,null,null,null)),(n()(),e.rb(56,0,null,null,2,"div",[["class","info-common-title"]],null,null,null,null,null)),(n()(),e.Lb(57,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(59,0,null,null,1,"app-abroad-datetime",[],null,[[null,"validateFormGroup"]],(function(n,l,t){var e=!0;return"validateFormGroup"===l&&(e=!1!==n.component.handleValidateFormGroup(t)&&e),e}),j,q)),e.qb(60,638976,[[3,4],["visa",4]],0,A,[k.e,E],{type:[0,"type"],infoCommonFormGroup:[1,"infoCommonFormGroup"]},{validateFormGroup:"validateFormGroup"}),(n()(),e.rb(61,0,null,null,5,"div",[["class","info-common-last-input"]],null,null,null,null,null)),(n()(),e.rb(62,0,null,null,2,"div",[["class","info-common-title"]],null,null,null,null,null)),(n()(),e.Lb(63,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(65,0,null,null,1,"app-abroad-datetime",[],null,[[null,"validateFormGroup"],[null,"handleEditEvent"]],(function(n,l,t){var e=!0,i=n.component;return"validateFormGroup"===l&&(e=!1!==i.handleValidateFormGroup(t)&&e),"handleEditEvent"===l&&(e=!1!==i.handleEditEvent(t)&&e),e}),j,q)),e.qb(66,638976,[[4,4],["expiredVisa",4]],0,A,[k.e,E],{type:[0,"type"],infoCommonFormGroup:[1,"infoCommonFormGroup"]},{validateFormGroup:"validateFormGroup",handleEditEvent:"handleEditEvent"}),(n()(),e.rb(67,0,null,null,13,"div",[["class","info-common-single-input info-common-magrin-bottom"]],null,null,null,null,null)),(n()(),e.rb(68,0,null,null,2,"div",[["class","info-common-title"]],null,null,null,null,null)),(n()(),e.Lb(69,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(71,0,null,null,9,"input",[["appBlockSpecialChar","250"],["class","info-common-input info-common-margin-bottom"],["formControlName","placeVisaIssuance"],["maxlength","250"],["type","text"]],[[8,"placeholder",0],[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(n,l,t){var i=!0;return"input"===l&&(i=!1!==e.Db(n,72)._handleInput(t.target.value)&&i),"blur"===l&&(i=!1!==e.Db(n,72).onTouched()&&i),"compositionstart"===l&&(i=!1!==e.Db(n,72)._compositionStart()&&i),"compositionend"===l&&(i=!1!==e.Db(n,72)._compositionEnd(t.target.value)&&i),"input"===l&&(i=!1!==e.Db(n,79).onInputChanged(t)&&i),i}),null,null)),e.qb(72,16384,null,0,k.d,[e.C,e.k,[2,k.a]],null,null),e.qb(73,540672,null,0,k.k,[],{maxlength:[0,"maxlength"]},null),e.Ib(1024,null,k.m,(function(n){return[n]}),[k.k]),e.Ib(1024,null,k.n,(function(n){return[n]}),[k.d]),e.qb(76,671744,null,0,k.h,[[3,k.c],[6,k.m],[8,null],[6,k.n],[2,k.z]],{name:[0,"name"]},null),e.Ib(2048,null,k.o,null,[k.h]),e.qb(78,16384,null,0,k.p,[[4,k.o]],null,null),e.qb(79,16384,null,0,R,[e.k,k.o],{appBlockSpecialChar:[0,"appBlockSpecialChar"]},null),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(81,0,null,null,6,"div",[["class","info-common-button"]],null,null,null,null,null)),(n()(),e.rb(82,0,null,null,2,"button",[["class","btn btn-secondary"]],null,[[null,"click"]],(function(n,l,t){var e=!0;return"click"===l&&(e=!1!==n.component.backMainPage()&&e),e}),null,null)),(n()(),e.Lb(83,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(85,0,null,null,2,"button",[["class","btn btn-primary"]],[[1,"disabled",0]],[[null,"click"]],(function(n,l,t){var e=!0;return"click"===l&&(e=!1!==n.component.nextPage()&&e),e}),null,null)),(n()(),e.Lb(86,null,["",""])),e.Fb(131072,r.i,[r.j,e.h])],(function(n,l){var t=l.component;n(l,5,0,t.infoCommonFG),n(l,11,0,"name");var e=n(l,15,0,!1,250);n(l,14,0,e),n(l,20,0,"passport"),n(l,26,0,t.isShowPassportErrorValid),n(l,33,0,t.abroadTypes.startPassport,t.infoCommonFG),n(l,39,0,t.abroadTypes.endPassport,t.infoCommonFG),n(l,46,0,"250"),n(l,49,0,"placePassportIssuance"),n(l,52,0,"250"),n(l,60,0,t.abroadTypes.startVisa,t.infoCommonFG),n(l,66,0,t.abroadTypes.endVisa,t.infoCommonFG),n(l,73,0,"250"),n(l,76,0,"placeVisaIssuance"),n(l,79,0,"250")}),(function(n,l){var t=l.component;n(l,4,0,e.Db(l,7).ngClassUntouched,e.Db(l,7).ngClassTouched,e.Db(l,7).ngClassPristine,e.Db(l,7).ngClassDirty,e.Db(l,7).ngClassValid,e.Db(l,7).ngClassInvalid,e.Db(l,7).ngClassPending),n(l,8,0,e.vb(1,"",e.Mb(l,8,0,e.Db(l,16).transform("abroad.info-common.name")),""),e.Db(l,13).ngClassUntouched,e.Db(l,13).ngClassTouched,e.Db(l,13).ngClassPristine,e.Db(l,13).ngClassDirty,e.Db(l,13).ngClassValid,e.Db(l,13).ngClassInvalid,e.Db(l,13).ngClassPending),n(l,17,0,e.vb(1,"",e.Mb(l,17,0,e.Db(l,24).transform("abroad.info-common.enter_passport")),""),e.Db(l,22).ngClassUntouched,e.Db(l,22).ngClassTouched,e.Db(l,22).ngClassPristine,e.Db(l,22).ngClassDirty,e.Db(l,22).ngClassValid,e.Db(l,22).ngClassInvalid,e.Db(l,22).ngClassPending),n(l,30,0,e.Mb(l,30,0,e.Db(l,31).transform("abroad.info-common.start_passport"))),n(l,36,0,e.Mb(l,36,0,e.Db(l,37).transform("abroad.info-common.end_passport"))),n(l,42,0,e.Mb(l,42,0,e.Db(l,43).transform("abroad.info-common.passport_place"))),n(l,44,0,e.vb(1,"",e.Mb(l,44,0,e.Db(l,53).transform("abroad.info-common.passport_placeholder")),""),e.Db(l,46).maxlength?e.Db(l,46).maxlength:null,e.Db(l,51).ngClassUntouched,e.Db(l,51).ngClassTouched,e.Db(l,51).ngClassPristine,e.Db(l,51).ngClassDirty,e.Db(l,51).ngClassValid,e.Db(l,51).ngClassInvalid,e.Db(l,51).ngClassPending),n(l,57,0,e.Mb(l,57,0,e.Db(l,58).transform("abroad.info-common.start_date_visa"))),n(l,63,0,e.Mb(l,63,0,e.Db(l,64).transform("abroad.info-common.end_date_visa"))),n(l,69,0,e.Mb(l,69,0,e.Db(l,70).transform("abroad.info-common.visa_place"))),n(l,71,0,e.vb(1,"",e.Mb(l,71,0,e.Db(l,80).transform("abroad.info-common.visa_placeholder")),""),e.Db(l,73).maxlength?e.Db(l,73).maxlength:null,e.Db(l,78).ngClassUntouched,e.Db(l,78).ngClassTouched,e.Db(l,78).ngClassPristine,e.Db(l,78).ngClassDirty,e.Db(l,78).ngClassValid,e.Db(l,78).ngClassInvalid,e.Db(l,78).ngClassPending),n(l,83,0,e.Mb(l,83,0,e.Db(l,84).transform("general.btn_cancel"))),n(l,85,0,t.checkFormValid()?null:"disabled"),n(l,86,0,e.Mb(l,86,0,e.Db(l,87).transform("general.btn_next")))}))}class H{constructor(){this.backClick=new e.m,this.nextClick=new e.m}ngOnInit(){}onChoose(n){this.documentType[n]=!this.documentType[n]}onBackClick(){this.backClick.emit()}onNextClick(){this.nextClick.emit()}}var J=e.pb({encapsulation:0,styles:[[".document-type-select[_ngcontent-%COMP%]{width:100%}.document-type-select[_ngcontent-%COMP%] .header-section[_ngcontent-%COMP%]{width:100%;text-align:center}.document-type-select[_ngcontent-%COMP%] .header-section[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:block;font-weight:700;font-size:20px;word-wrap:break-word}.document-type-select[_ngcontent-%COMP%] .header-section[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{display:block;font-weight:14px;word-wrap:break-word}.document-type-select[_ngcontent-%COMP%] .selection[_ngcontent-%COMP%]{margin-top:24px;display:flex;width:100%;flex-direction:column;font-weight:500;border-radius:5px;background-color:#fff}.document-type-select[_ngcontent-%COMP%] .selection[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{width:100%;height:53px;padding-left:16px;padding-right:16px;padding-top:14px;display:flex;border-radius:5px;justify-content:space-between;background-color:#fff;cursor:pointer}.document-type-select[_ngcontent-%COMP%] .selection[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:24px;height:24px}.document-type-select[_ngcontent-%COMP%] .selection[_ngcontent-%COMP%] .line[_ngcontent-%COMP%]{width:100%;height:1.01px;background-color:#f2f4f6}.document-type-select[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{margin-top:24px}.document-type-select[_ngcontent-%COMP%] .action[_ngcontent-%COMP%] .btn-secondary[_ngcontent-%COMP%]{width:200px;font-weight:500;height:48px;margin-left:calc(50% - 208px)}.document-type-select[_ngcontent-%COMP%] .action[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]{width:200px;font-weight:500;height:48px;margin-left:16px}@media screen and (max-width:575px){.document-type-select[_ngcontent-%COMP%]{width:100%!important}.document-type-select[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{margin-top:24px;display:flex;flex-direction:column-reverse}.document-type-select[_ngcontent-%COMP%] .action[_ngcontent-%COMP%] .btn-secondary[_ngcontent-%COMP%]{width:100%;height:48px;margin-left:0;margin-top:16px}.document-type-select[_ngcontent-%COMP%] .action[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]{width:100%;height:48px;margin-left:0}}.disabled[_ngcontent-%COMP%]{color:#e2d8ee;font-weight:400}"]],data:{}});function X(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,0,"img",[["class","icon"],["src","assets/icons/ic_active.svg"]],null,null,null,null,null))],null,null)}function $(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,0,"img",[["class","icon"],["src","assets/icons/ic_inactive.svg"]],null,null,null,null,null))],null,null)}function W(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,0,"img",[["class","icon"],["src","assets/icons/ic_active.svg"]],null,null,null,null,null))],null,null)}function Z(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,0,"img",[["class","icon"],["src","assets/icons/ic_inactive.svg"]],null,null,null,null,null))],null,null)}function Q(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,32,"div",[["class","document-type-select"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,6,"div",[["class","header-section"]],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,2,"span",[["class","title"]],null,null,null,null,null)),(n()(),e.Lb(3,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(5,0,null,null,2,"span",[["class","subtitle"]],null,null,null,null,null)),(n()(),e.Lb(6,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(8,0,null,null,17,"div",[["class","selection"]],null,null,null,null,null)),(n()(),e.rb(9,0,null,null,7,"div",[["class","item"]],[[2,"disabled",null]],[[null,"click"]],(function(n,l,t){var e=!0;return"click"===l&&(e=!1!==n.component.onChoose("PAYMENT_FEE")&&e),e}),null,null)),(n()(),e.rb(10,0,null,null,2,"span",[["class","text-content"]],null,null,null,null,null)),(n()(),e.Lb(11,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.gb(16777216,null,null,1,null,X)),e.qb(14,16384,null,0,s.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,$)),e.qb(16,16384,null,0,s.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.rb(17,0,null,null,0,"div",[["class","line"]],null,null,null,null,null)),(n()(),e.rb(18,0,null,null,7,"div",[["class","item"]],[[2,"disabled",null]],[[null,"click"]],(function(n,l,t){var e=!0;return"click"===l&&(e=!1!==n.component.onChoose("LIVING_FEE")&&e),e}),null,null)),(n()(),e.rb(19,0,null,null,2,"span",[["class","text-content"]],null,null,null,null,null)),(n()(),e.Lb(20,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.gb(16777216,null,null,1,null,W)),e.qb(23,16384,null,0,s.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,Z)),e.qb(25,16384,null,0,s.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.rb(26,0,null,null,6,"div",[["class","action"]],null,null,null,null,null)),(n()(),e.rb(27,0,null,null,2,"button",[["class","btn-common btn-secondary"]],null,[[null,"click"]],(function(n,l,t){var e=!0;return"click"===l&&(e=!1!==n.component.onBackClick()&&e),e}),null,null)),(n()(),e.Lb(28,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(30,0,null,null,2,"button",[["class","btn-common btn-primary"]],[[1,"disabled",0]],[[null,"click"]],(function(n,l,t){var e=!0;return"click"===l&&(e=!1!==n.component.onNextClick()&&e),e}),null,null)),(n()(),e.Lb(31,null,["",""])),e.Fb(131072,r.i,[r.j,e.h])],(function(n,l){var t=l.component;n(l,14,0,t.documentType.PAYMENT_FEE),n(l,16,0,!t.documentType.PAYMENT_FEE),n(l,23,0,t.documentType.LIVING_FEE),n(l,25,0,!t.documentType.LIVING_FEE)}),(function(n,l){var t=l.component;n(l,3,0,e.Mb(l,3,0,e.Db(l,4).transform("abroad.type_select.title"))),n(l,6,0,e.Mb(l,6,0,e.Db(l,7).transform("abroad.type_select.subtitle"))),n(l,9,0,!t.documentType.PAYMENT_FEE),n(l,11,0,e.Mb(l,11,0,e.Db(l,12).transform("abroad.type_select.payment_fee"))),n(l,18,0,!t.documentType.LIVING_FEE),n(l,20,0,e.Mb(l,20,0,e.Db(l,21).transform("abroad.type_select.living_fee"))),n(l,28,0,e.Mb(l,28,0,e.Db(l,29).transform("general.btn_back"))),n(l,30,0,t.documentType.PAYMENT_FEE||t.documentType.LIVING_FEE?null:"disabled"),n(l,31,0,e.Mb(l,31,0,e.Db(l,32).transform("general.btn_next")))}))}class nn{constructor(n,l){this.elFef=n,this.controls=l}onInputChanged(n){let l=n.target.value;const t=Number(this.appInputBankName);l=Object(x.s)(l),l=Object(x.q)(l),l=l.replace(P.l,""),l=l.replace(/ +/g," "),l=l.length>t?l.substring(0,t):l,l=" "===l?"":l,l=" "!==l&&" "===l[0]?l.substring(1,l.length):l,this.elFef.nativeElement.value=l,this.controls.control.setValue(l)}}var ln=t("TETI");class tn{constructor(n){this.abroadUtil=n,this.backClick=new e.m,this.nextClick=new e.m,this.abroadTypes=m.c,this.accountNumberPipe=new ln.a}ngOnInit(){}ngAfterViewChecked(){if(this.abroadUtil.isEditPayEndTermValid){this.abroadUtil.isEditPayEndTermValid=!1;const n=this.infoCommonFG.controls.payEndTerm.value;this.payEndTerm.validateDatetime(n)?this.payEndTerm.validateByExpiredSchoolDate(n):""!==n&&(this.payEndTerm.setInvalidToFG("abroad.info-common.datetime_error_DH004"),this.payEndTerm.setDatetimeStatusFG(!1,n))}}onBackClick(){this.backClick.emit()}onNextClick(){this.nextClick.emit()}onPaste(n){this.formatAccountNumber()}handlePressAction(n){this.formatAccountNumber()}formatAccountNumber(){let n=this.infoCommonFG.controls.payCreditorAccountNumber.value;console.log(n),n&&(n=n.replace(/\s/g,"")),n&&(n=n.replace(P.h,"")),n&&n.length>100&&(n=n.substring(0,100)),this.infoCommonFG.controls.payCreditorAccountNumber.setValue(this.accountNumberPipe.transform(n))}checkFormValid(){return!!(this.infoCommonFG.controls.paySchoolName.value&&this.infoCommonFG.controls.paySchoolName.value.trim()&&this.infoCommonFG.controls.payEndTerm.value&&this.infoCommonFG.controls.isPayEndTermValid.value&&this.infoCommonFG.controls.payReceiver.value&&this.infoCommonFG.controls.payReceiver.value.trim()&&this.infoCommonFG.controls.payCreditorAccountNumber.value&&this.infoCommonFG.controls.payCreditorAccountNumber.value.trim()&&this.infoCommonFG.controls.payReceivingBank.value&&this.infoCommonFG.controls.payReceivingBank.value.trim()&&this.infoCommonFG.controls.payReceivingBankAddress.value&&this.infoCommonFG.controls.payReceivingBankAddress.value.trim()&&this.infoCommonFG.controls.payIntermediaryBank.value&&this.infoCommonFG.controls.payIntermediaryBank.value.trim()&&this.infoCommonFG.controls.payIntermediaryBankAddress.value&&this.infoCommonFG.controls.payIntermediaryBankAddress.value.trim())}}var en=e.pb({encapsulation:0,styles:[[".payment-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:496px}.payment-info[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{width:100%;text-align:center}.payment-info[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:block;font-size:20px;font-weight:700;word-wrap:break-word}.payment-info[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{display:block;word-wrap:break-word;margin-top:8px}.payment-info[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{margin-top:24px}.payment-info[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .small-title[_ngcontent-%COMP%]{text-align:left;margin-bottom:8px}.payment-info[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .common-input[_ngcontent-%COMP%]{height:45px;border-radius:5px;border:1px solid #e2d8ee;background-color:#fcfcfc;width:100%;outline:0;padding:12px}.payment-info[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{margin-top:8px}.payment-info[_ngcontent-%COMP%] .action[_ngcontent-%COMP%] .btn-secondary[_ngcontent-%COMP%]{width:200px;font-weight:500;height:48px;margin-left:calc(50% - 208px)}.payment-info[_ngcontent-%COMP%] .action[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]{width:200px;font-weight:500;height:48px;margin-left:16px}@media screen and (max-width:575px){.payment-info[_ngcontent-%COMP%]{width:100%!important}.payment-info[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{margin-top:8px;display:flex;flex-direction:column-reverse}.payment-info[_ngcontent-%COMP%] .action[_ngcontent-%COMP%] .btn-secondary[_ngcontent-%COMP%]{width:100%;height:48px;margin-left:0;margin-top:24px}.payment-info[_ngcontent-%COMP%] .action[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]{width:100%;height:48px;margin-left:0}}.margin-bottom[_ngcontent-%COMP%]{margin-bottom:16px}input[_ngcontent-%COMP%]{font-weight:500}input[_ngcontent-%COMP%]::-webkit-input-placeholder{font-weight:400}input[_ngcontent-%COMP%]::-moz-placeholder{font-weight:400}input[_ngcontent-%COMP%]::-ms-input-placeholder{font-weight:400}input[_ngcontent-%COMP%]::placeholder{font-weight:400}"]],data:{}});function on(n){return e.Nb(0,[e.Jb(671088640,1,{payEndTerm:0}),(n()(),e.rb(1,0,null,null,93,"div",[["class","payment-info"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],(function(n,l,t){var i=!0;return"submit"===l&&(i=!1!==e.Db(n,2).onSubmit(t)&&i),"reset"===l&&(i=!1!==e.Db(n,2).onReset()&&i),i}),null,null)),e.qb(2,540672,null,0,k.i,[[8,null],[8,null]],{form:[0,"form"]},null),e.Ib(2048,null,k.c,null,[k.i]),e.qb(4,16384,null,0,k.q,[[4,k.c]],null,null),(n()(),e.rb(5,0,null,null,6,"div",[["class","header"]],null,null,null,null,null)),(n()(),e.rb(6,0,null,null,2,"span",[["class","title"]],null,null,null,null,null)),(n()(),e.Lb(7,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(9,0,null,null,2,"span",[["class","subtitle"]],null,null,null,null,null)),(n()(),e.Lb(10,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(12,0,null,null,75,"div",[["class","info"]],null,null,null,null,null)),(n()(),e.rb(13,0,null,null,3,"div",[["class","small-title"]],null,null,null,null,null)),(n()(),e.rb(14,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(15,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(17,0,null,null,9,"input",[["appInputBankName","250"],["class","common-input margin-bottom"],["formControlName","paySchoolName"],["maxlength","250"],["type","text"]],[[8,"placeholder",0],[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(n,l,t){var i=!0;return"input"===l&&(i=!1!==e.Db(n,18)._handleInput(t.target.value)&&i),"blur"===l&&(i=!1!==e.Db(n,18).onTouched()&&i),"compositionstart"===l&&(i=!1!==e.Db(n,18)._compositionStart()&&i),"compositionend"===l&&(i=!1!==e.Db(n,18)._compositionEnd(t.target.value)&&i),"input"===l&&(i=!1!==e.Db(n,25).onInputChanged(t)&&i),i}),null,null)),e.qb(18,16384,null,0,k.d,[e.C,e.k,[2,k.a]],null,null),e.qb(19,540672,null,0,k.k,[],{maxlength:[0,"maxlength"]},null),e.Ib(1024,null,k.m,(function(n){return[n]}),[k.k]),e.Ib(1024,null,k.n,(function(n){return[n]}),[k.d]),e.qb(22,671744,null,0,k.h,[[3,k.c],[6,k.m],[8,null],[6,k.n],[2,k.z]],{name:[0,"name"]},null),e.Ib(2048,null,k.o,null,[k.h]),e.qb(24,16384,null,0,k.p,[[4,k.o]],null,null),e.qb(25,16384,null,0,nn,[e.k,k.o],{appInputBankName:[0,"appInputBankName"]},null),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(27,0,null,null,3,"div",[["class","small-title"]],null,null,null,null,null)),(n()(),e.rb(28,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(29,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(31,0,null,null,2,"div",[["class","info-common-last-input margin-bottom"]],null,null,null,null,null)),(n()(),e.rb(32,0,null,null,1,"app-abroad-datetime",[],null,null,null,j,q)),e.qb(33,638976,[[1,4],["payEndTerm",4]],0,A,[k.e,E],{type:[0,"type"],infoCommonFormGroup:[1,"infoCommonFormGroup"]},null),(n()(),e.rb(34,0,null,null,3,"div",[["class","small-title"]],null,null,null,null,null)),(n()(),e.rb(35,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(36,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(38,0,null,null,9,"input",[["appBlockSpecialChar","250"],["class","common-input margin-bottom"],["formControlName","payReceiver"],["type","text"]],[[8,"placeholder",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"paste"]],(function(n,l,t){var i=!0;return"input"===l&&(i=!1!==e.Db(n,39)._handleInput(t.target.value)&&i),"blur"===l&&(i=!1!==e.Db(n,39).onTouched()&&i),"compositionstart"===l&&(i=!1!==e.Db(n,39)._compositionStart()&&i),"compositionend"===l&&(i=!1!==e.Db(n,39)._compositionEnd(t.target.value)&&i),"input"===l&&(i=!1!==e.Db(n,44).onInputChange(t)&&i),"paste"===l&&(i=!1!==e.Db(n,44).onPaste(t)&&i),"input"===l&&(i=!1!==e.Db(n,46).onInputChanged(t)&&i),i}),null,null)),e.qb(39,16384,null,0,k.d,[e.C,e.k,[2,k.a]],null,null),e.Ib(1024,null,k.n,(function(n){return[n]}),[k.d]),e.qb(41,671744,null,0,k.h,[[3,k.c],[8,null],[8,null],[6,k.n],[2,k.z]],{name:[0,"name"]},null),e.Ib(2048,null,k.o,null,[k.h]),e.qb(43,16384,null,0,k.p,[[4,k.o]],null,null),e.qb(44,16384,null,0,N.a,[e.k,k.o],{inputName:[0,"inputName"]},null),e.Gb(45,{isLowerCaseValid:0,maxLength:1}),e.qb(46,16384,null,0,R,[e.k,k.o],{appBlockSpecialChar:[0,"appBlockSpecialChar"]},null),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(48,0,null,null,7,"input",[["appBlockSpecialChar","124"],["class","common-input margin-bottom"],["formControlName","payCreditorAccountNumber"],["type","text"]],[[8,"placeholder",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"paste"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(n,l,t){var i=!0,o=n.component;return"input"===l&&(i=!1!==e.Db(n,49)._handleInput(t.target.value)&&i),"blur"===l&&(i=!1!==e.Db(n,49).onTouched()&&i),"compositionstart"===l&&(i=!1!==e.Db(n,49)._compositionStart()&&i),"compositionend"===l&&(i=!1!==e.Db(n,49)._compositionEnd(t.target.value)&&i),"input"===l&&(i=!1!==e.Db(n,54).onInputChanged(t)&&i),"input"===l&&(i=!1!==o.handlePressAction(t)&&i),"paste"===l&&(i=!1!==o.onPaste(t)&&i),i}),null,null)),e.qb(49,16384,null,0,k.d,[e.C,e.k,[2,k.a]],null,null),e.Ib(1024,null,k.n,(function(n){return[n]}),[k.d]),e.qb(51,671744,null,0,k.h,[[3,k.c],[8,null],[8,null],[6,k.n],[2,k.z]],{name:[0,"name"]},null),e.Ib(2048,null,k.o,null,[k.h]),e.qb(53,16384,null,0,k.p,[[4,k.o]],null,null),e.qb(54,16384,null,0,R,[e.k,k.o],{appBlockSpecialChar:[0,"appBlockSpecialChar"]},null),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(56,0,null,null,7,"input",[["appInputBankName","250"],["class","common-input margin-bottom"],["formControlName","payReceivingBank"],["type","text"]],[[8,"placeholder",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(n,l,t){var i=!0;return"input"===l&&(i=!1!==e.Db(n,57)._handleInput(t.target.value)&&i),"blur"===l&&(i=!1!==e.Db(n,57).onTouched()&&i),"compositionstart"===l&&(i=!1!==e.Db(n,57)._compositionStart()&&i),"compositionend"===l&&(i=!1!==e.Db(n,57)._compositionEnd(t.target.value)&&i),"input"===l&&(i=!1!==e.Db(n,62).onInputChanged(t)&&i),i}),null,null)),e.qb(57,16384,null,0,k.d,[e.C,e.k,[2,k.a]],null,null),e.Ib(1024,null,k.n,(function(n){return[n]}),[k.d]),e.qb(59,671744,null,0,k.h,[[3,k.c],[8,null],[8,null],[6,k.n],[2,k.z]],{name:[0,"name"]},null),e.Ib(2048,null,k.o,null,[k.h]),e.qb(61,16384,null,0,k.p,[[4,k.o]],null,null),e.qb(62,16384,null,0,nn,[e.k,k.o],{appInputBankName:[0,"appInputBankName"]},null),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(64,0,null,null,7,"input",[["appBlockSpecialChar","250"],["class","common-input margin-bottom"],["formControlName","payReceivingBankAddress"],["type","text"]],[[8,"placeholder",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(n,l,t){var i=!0;return"input"===l&&(i=!1!==e.Db(n,65)._handleInput(t.target.value)&&i),"blur"===l&&(i=!1!==e.Db(n,65).onTouched()&&i),"compositionstart"===l&&(i=!1!==e.Db(n,65)._compositionStart()&&i),"compositionend"===l&&(i=!1!==e.Db(n,65)._compositionEnd(t.target.value)&&i),"input"===l&&(i=!1!==e.Db(n,70).onInputChanged(t)&&i),i}),null,null)),e.qb(65,16384,null,0,k.d,[e.C,e.k,[2,k.a]],null,null),e.Ib(1024,null,k.n,(function(n){return[n]}),[k.d]),e.qb(67,671744,null,0,k.h,[[3,k.c],[8,null],[8,null],[6,k.n],[2,k.z]],{name:[0,"name"]},null),e.Ib(2048,null,k.o,null,[k.h]),e.qb(69,16384,null,0,k.p,[[4,k.o]],null,null),e.qb(70,16384,null,0,R,[e.k,k.o],{appBlockSpecialChar:[0,"appBlockSpecialChar"]},null),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(72,0,null,null,7,"input",[["appInputBankName","250"],["class","common-input margin-bottom"],["formControlName","payIntermediaryBank"],["type","text"]],[[8,"placeholder",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(n,l,t){var i=!0;return"input"===l&&(i=!1!==e.Db(n,73)._handleInput(t.target.value)&&i),"blur"===l&&(i=!1!==e.Db(n,73).onTouched()&&i),"compositionstart"===l&&(i=!1!==e.Db(n,73)._compositionStart()&&i),"compositionend"===l&&(i=!1!==e.Db(n,73)._compositionEnd(t.target.value)&&i),"input"===l&&(i=!1!==e.Db(n,78).onInputChanged(t)&&i),i}),null,null)),e.qb(73,16384,null,0,k.d,[e.C,e.k,[2,k.a]],null,null),e.Ib(1024,null,k.n,(function(n){return[n]}),[k.d]),e.qb(75,671744,null,0,k.h,[[3,k.c],[8,null],[8,null],[6,k.n],[2,k.z]],{name:[0,"name"]},null),e.Ib(2048,null,k.o,null,[k.h]),e.qb(77,16384,null,0,k.p,[[4,k.o]],null,null),e.qb(78,16384,null,0,nn,[e.k,k.o],{appInputBankName:[0,"appInputBankName"]},null),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(80,0,null,null,7,"input",[["appBlockSpecialChar","250"],["class","common-input margin-bottom"],["formControlName","payIntermediaryBankAddress"],["type","text"]],[[8,"placeholder",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(n,l,t){var i=!0;return"input"===l&&(i=!1!==e.Db(n,81)._handleInput(t.target.value)&&i),"blur"===l&&(i=!1!==e.Db(n,81).onTouched()&&i),"compositionstart"===l&&(i=!1!==e.Db(n,81)._compositionStart()&&i),"compositionend"===l&&(i=!1!==e.Db(n,81)._compositionEnd(t.target.value)&&i),"input"===l&&(i=!1!==e.Db(n,86).onInputChanged(t)&&i),i}),null,null)),e.qb(81,16384,null,0,k.d,[e.C,e.k,[2,k.a]],null,null),e.Ib(1024,null,k.n,(function(n){return[n]}),[k.d]),e.qb(83,671744,null,0,k.h,[[3,k.c],[8,null],[8,null],[6,k.n],[2,k.z]],{name:[0,"name"]},null),e.Ib(2048,null,k.o,null,[k.h]),e.qb(85,16384,null,0,k.p,[[4,k.o]],null,null),e.qb(86,16384,null,0,R,[e.k,k.o],{appBlockSpecialChar:[0,"appBlockSpecialChar"]},null),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(88,0,null,null,6,"div",[["class","action"]],null,null,null,null,null)),(n()(),e.rb(89,0,null,null,2,"button",[["class","btn-common btn-secondary"]],null,[[null,"click"]],(function(n,l,t){var e=!0;return"click"===l&&(e=!1!==n.component.onBackClick()&&e),e}),null,null)),(n()(),e.Lb(90,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(92,0,null,null,2,"button",[["class","btn-common btn-primary"]],[[1,"disabled",0]],[[null,"click"]],(function(n,l,t){var e=!0;return"click"===l&&(e=!1!==n.component.onNextClick()&&e),e}),null,null)),(n()(),e.Lb(93,null,["",""])),e.Fb(131072,r.i,[r.j,e.h])],(function(n,l){var t=l.component;n(l,2,0,t.infoCommonFG),n(l,19,0,"250"),n(l,22,0,"paySchoolName"),n(l,25,0,"250"),n(l,33,0,t.abroadTypes.endTerm,t.infoCommonFG),n(l,41,0,"payReceiver");var e=n(l,45,0,!1,250);n(l,44,0,e),n(l,46,0,"250"),n(l,51,0,"payCreditorAccountNumber"),n(l,54,0,"124"),n(l,59,0,"payReceivingBank"),n(l,62,0,"250"),n(l,67,0,"payReceivingBankAddress"),n(l,70,0,"250"),n(l,75,0,"payIntermediaryBank"),n(l,78,0,"250"),n(l,83,0,"payIntermediaryBankAddress"),n(l,86,0,"250")}),(function(n,l){var t=l.component;n(l,1,0,e.Db(l,4).ngClassUntouched,e.Db(l,4).ngClassTouched,e.Db(l,4).ngClassPristine,e.Db(l,4).ngClassDirty,e.Db(l,4).ngClassValid,e.Db(l,4).ngClassInvalid,e.Db(l,4).ngClassPending),n(l,7,0,e.Mb(l,7,0,e.Db(l,8).transform("abroad.payment_info.title_1"))),n(l,10,0,e.Mb(l,10,0,e.Db(l,11).transform("abroad.payment_info.title_2"))),n(l,15,0,e.Mb(l,15,0,e.Db(l,16).transform("abroad.payment_info.school_name"))),n(l,17,0,e.vb(1,"",e.Mb(l,17,0,e.Db(l,26).transform("abroad.payment_info.school_name")),""),e.Db(l,19).maxlength?e.Db(l,19).maxlength:null,e.Db(l,24).ngClassUntouched,e.Db(l,24).ngClassTouched,e.Db(l,24).ngClassPristine,e.Db(l,24).ngClassDirty,e.Db(l,24).ngClassValid,e.Db(l,24).ngClassInvalid,e.Db(l,24).ngClassPending),n(l,29,0,e.Mb(l,29,0,e.Db(l,30).transform("abroad.payment_info.end_term"))),n(l,36,0,e.Mb(l,36,0,e.Db(l,37).transform("abroad.payment_info.receive_info"))),n(l,38,0,e.vb(1,"",e.Mb(l,38,0,e.Db(l,47).transform("abroad.payment_info.placeholder_1")),""),e.Db(l,43).ngClassUntouched,e.Db(l,43).ngClassTouched,e.Db(l,43).ngClassPristine,e.Db(l,43).ngClassDirty,e.Db(l,43).ngClassValid,e.Db(l,43).ngClassInvalid,e.Db(l,43).ngClassPending),n(l,48,0,e.vb(1,"",e.Mb(l,48,0,e.Db(l,55).transform("abroad.payment_info.placeholder_2")),""),e.Db(l,53).ngClassUntouched,e.Db(l,53).ngClassTouched,e.Db(l,53).ngClassPristine,e.Db(l,53).ngClassDirty,e.Db(l,53).ngClassValid,e.Db(l,53).ngClassInvalid,e.Db(l,53).ngClassPending),n(l,56,0,e.vb(1,"",e.Mb(l,56,0,e.Db(l,63).transform("abroad.payment_info.placeholder_3")),""),e.Db(l,61).ngClassUntouched,e.Db(l,61).ngClassTouched,e.Db(l,61).ngClassPristine,e.Db(l,61).ngClassDirty,e.Db(l,61).ngClassValid,e.Db(l,61).ngClassInvalid,e.Db(l,61).ngClassPending),n(l,64,0,e.vb(1,"",e.Mb(l,64,0,e.Db(l,71).transform("abroad.payment_info.placeholder_4")),""),e.Db(l,69).ngClassUntouched,e.Db(l,69).ngClassTouched,e.Db(l,69).ngClassPristine,e.Db(l,69).ngClassDirty,e.Db(l,69).ngClassValid,e.Db(l,69).ngClassInvalid,e.Db(l,69).ngClassPending),n(l,72,0,e.vb(1,"",e.Mb(l,72,0,e.Db(l,79).transform("abroad.payment_info.placeholder_5")),""),e.Db(l,77).ngClassUntouched,e.Db(l,77).ngClassTouched,e.Db(l,77).ngClassPristine,e.Db(l,77).ngClassDirty,e.Db(l,77).ngClassValid,e.Db(l,77).ngClassInvalid,e.Db(l,77).ngClassPending),n(l,80,0,e.vb(1,"",e.Mb(l,80,0,e.Db(l,87).transform("abroad.payment_info.placeholder_6")),""),e.Db(l,85).ngClassUntouched,e.Db(l,85).ngClassTouched,e.Db(l,85).ngClassPristine,e.Db(l,85).ngClassDirty,e.Db(l,85).ngClassValid,e.Db(l,85).ngClassInvalid,e.Db(l,85).ngClassPending),n(l,90,0,e.Mb(l,90,0,e.Db(l,91).transform("general.btn_back"))),n(l,92,0,t.checkFormValid()?null:"disabled"),n(l,93,0,e.Mb(l,93,0,e.Db(l,94).transform("general.btn_next")))}))}class an{constructor(){this.accountNumberPipe=new ln.a,this.backClick=new e.m,this.nextClick=new e.m}ngOnInit(){}checkFormValidate(){}onBackClick(){this.backClick.emit()}onNextClick(){this.nextClick.emit()}onPaste(n){this.formatAccountNumber()}handlePressAction(n){this.formatAccountNumber()}formatAccountNumber(){let n=this.infoCommonFG.controls.livingCreditorAccountNumber.value;n&&(n=n.replace(/\s/g,"")),n&&(n=n.replace(P.h,"")),n&&n.length>100&&(n=n.substring(0,100)),this.infoCommonFG.controls.livingCreditorAccountNumber.setValue(this.accountNumberPipe.transform(n))}checkFormValid(){return!!(this.infoCommonFG.controls.livingReceiver.value&&this.infoCommonFG.controls.livingReceiver.value.trim()&&this.infoCommonFG.controls.livingCreditorAccountNumber.value&&this.infoCommonFG.controls.livingCreditorAccountNumber.value.trim()&&this.infoCommonFG.controls.livingReceivingBank.value&&this.infoCommonFG.controls.livingReceivingBank.value.trim()&&this.infoCommonFG.controls.livingReceivingBankAddress.value&&this.infoCommonFG.controls.livingReceivingBankAddress.value.trim()&&this.infoCommonFG.controls.livingIntermediaryBank.value&&this.infoCommonFG.controls.livingIntermediaryBank.value.trim()&&this.infoCommonFG.controls.livingIntermediaryBankAddress.value&&this.infoCommonFG.controls.livingIntermediaryBankAddress.value.trim())}}var un=e.pb({encapsulation:0,styles:[[".living-info[_ngcontent-%COMP%] .header-section[_ngcontent-%COMP%]{width:100%;text-align:center}.living-info[_ngcontent-%COMP%] .header-section[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:block;font-weight:700;font-size:20px;word-wrap:break-word}.living-info[_ngcontent-%COMP%] .header-section[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{display:block;font-weight:14px;word-wrap:break-word;margin-bottom:24px}.living-info[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .common-input[_ngcontent-%COMP%]{height:45px;border-radius:5px;border:1px solid #e2d8ee;background-color:#fcfcfc;width:100%;outline:0;padding:12px}.living-info[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{margin-top:24px}.living-info[_ngcontent-%COMP%] .action[_ngcontent-%COMP%] .btn-secondary[_ngcontent-%COMP%]{width:200px;font-weight:500;height:48px;margin-left:calc(50% - 208px)}.living-info[_ngcontent-%COMP%] .action[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]{width:200px;font-weight:500;height:48px;margin-left:16px}.margin-bottom[_ngcontent-%COMP%]{margin-bottom:16px}input[_ngcontent-%COMP%]{font-weight:500}input[_ngcontent-%COMP%]::-webkit-input-placeholder{font-weight:400}input[_ngcontent-%COMP%]::-moz-placeholder{font-weight:400}input[_ngcontent-%COMP%]::-ms-input-placeholder{font-weight:400}input[_ngcontent-%COMP%]::placeholder{font-weight:400}@media screen and (max-width:575px){.action[_ngcontent-%COMP%]{width:100%;margin-top:24px;display:flex;flex-direction:column-reverse}.action[_ngcontent-%COMP%] .btn-secondary[_ngcontent-%COMP%]{margin-top:16px;margin-left:0!important;width:100%!important}.action[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]{width:100%!important;margin-left:0!important}}"]],data:{}});function rn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,68,"div",[["class","living-info"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],(function(n,l,t){var i=!0;return"submit"===l&&(i=!1!==e.Db(n,1).onSubmit(t)&&i),"reset"===l&&(i=!1!==e.Db(n,1).onReset()&&i),i}),null,null)),e.qb(1,540672,null,0,k.i,[[8,null],[8,null]],{form:[0,"form"]},null),e.Ib(2048,null,k.c,null,[k.i]),e.qb(3,16384,null,0,k.q,[[4,k.c]],null,null),(n()(),e.rb(4,0,null,null,6,"div",[["class","header-section"]],null,null,null,null,null)),(n()(),e.rb(5,0,null,null,2,"span",[["class","title"]],null,null,null,null,null)),(n()(),e.Lb(6,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(8,0,null,null,2,"span",[["class","subtitle"]],null,null,null,null,null)),(n()(),e.Lb(9,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(11,0,null,null,50,"div",[["class","info"]],null,null,null,null,null)),(n()(),e.rb(12,0,null,null,9,"input",[["appBlockSpecialChar","250"],["class","common-input margin-bottom"],["formControlName","livingReceiver"],["type","text"]],[[8,"placeholder",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"paste"]],(function(n,l,t){var i=!0;return"input"===l&&(i=!1!==e.Db(n,13)._handleInput(t.target.value)&&i),"blur"===l&&(i=!1!==e.Db(n,13).onTouched()&&i),"compositionstart"===l&&(i=!1!==e.Db(n,13)._compositionStart()&&i),"compositionend"===l&&(i=!1!==e.Db(n,13)._compositionEnd(t.target.value)&&i),"input"===l&&(i=!1!==e.Db(n,18).onInputChange(t)&&i),"paste"===l&&(i=!1!==e.Db(n,18).onPaste(t)&&i),"input"===l&&(i=!1!==e.Db(n,20).onInputChanged(t)&&i),i}),null,null)),e.qb(13,16384,null,0,k.d,[e.C,e.k,[2,k.a]],null,null),e.Ib(1024,null,k.n,(function(n){return[n]}),[k.d]),e.qb(15,671744,null,0,k.h,[[3,k.c],[8,null],[8,null],[6,k.n],[2,k.z]],{name:[0,"name"]},null),e.Ib(2048,null,k.o,null,[k.h]),e.qb(17,16384,null,0,k.p,[[4,k.o]],null,null),e.qb(18,16384,null,0,N.a,[e.k,k.o],{inputName:[0,"inputName"]},null),e.Gb(19,{isLowerCaseValid:0,maxLength:1}),e.qb(20,16384,null,0,R,[e.k,k.o],{appBlockSpecialChar:[0,"appBlockSpecialChar"]},null),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(22,0,null,null,7,"input",[["appBlockSpecialChar","124"],["class","common-input margin-bottom"],["formControlName","livingCreditorAccountNumber"],["type","text"]],[[8,"placeholder",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"paste"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(n,l,t){var i=!0,o=n.component;return"input"===l&&(i=!1!==e.Db(n,23)._handleInput(t.target.value)&&i),"blur"===l&&(i=!1!==e.Db(n,23).onTouched()&&i),"compositionstart"===l&&(i=!1!==e.Db(n,23)._compositionStart()&&i),"compositionend"===l&&(i=!1!==e.Db(n,23)._compositionEnd(t.target.value)&&i),"input"===l&&(i=!1!==e.Db(n,28).onInputChanged(t)&&i),"input"===l&&(i=!1!==o.handlePressAction(t)&&i),"paste"===l&&(i=!1!==o.onPaste(t)&&i),i}),null,null)),e.qb(23,16384,null,0,k.d,[e.C,e.k,[2,k.a]],null,null),e.Ib(1024,null,k.n,(function(n){return[n]}),[k.d]),e.qb(25,671744,null,0,k.h,[[3,k.c],[8,null],[8,null],[6,k.n],[2,k.z]],{name:[0,"name"]},null),e.Ib(2048,null,k.o,null,[k.h]),e.qb(27,16384,null,0,k.p,[[4,k.o]],null,null),e.qb(28,16384,null,0,R,[e.k,k.o],{appBlockSpecialChar:[0,"appBlockSpecialChar"]},null),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(30,0,null,null,7,"input",[["appInputBankName","250"],["class","common-input margin-bottom"],["formControlName","livingReceivingBank"],["type","text"]],[[8,"placeholder",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(n,l,t){var i=!0;return"input"===l&&(i=!1!==e.Db(n,31)._handleInput(t.target.value)&&i),"blur"===l&&(i=!1!==e.Db(n,31).onTouched()&&i),"compositionstart"===l&&(i=!1!==e.Db(n,31)._compositionStart()&&i),"compositionend"===l&&(i=!1!==e.Db(n,31)._compositionEnd(t.target.value)&&i),"input"===l&&(i=!1!==e.Db(n,36).onInputChanged(t)&&i),i}),null,null)),e.qb(31,16384,null,0,k.d,[e.C,e.k,[2,k.a]],null,null),e.Ib(1024,null,k.n,(function(n){return[n]}),[k.d]),e.qb(33,671744,null,0,k.h,[[3,k.c],[8,null],[8,null],[6,k.n],[2,k.z]],{name:[0,"name"]},null),e.Ib(2048,null,k.o,null,[k.h]),e.qb(35,16384,null,0,k.p,[[4,k.o]],null,null),e.qb(36,16384,null,0,nn,[e.k,k.o],{appInputBankName:[0,"appInputBankName"]},null),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(38,0,null,null,7,"input",[["appBlockSpecialChar","250"],["class","common-input margin-bottom"],["formControlName","livingReceivingBankAddress"],["type","text"]],[[8,"placeholder",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(n,l,t){var i=!0;return"input"===l&&(i=!1!==e.Db(n,39)._handleInput(t.target.value)&&i),"blur"===l&&(i=!1!==e.Db(n,39).onTouched()&&i),"compositionstart"===l&&(i=!1!==e.Db(n,39)._compositionStart()&&i),"compositionend"===l&&(i=!1!==e.Db(n,39)._compositionEnd(t.target.value)&&i),"input"===l&&(i=!1!==e.Db(n,44).onInputChanged(t)&&i),i}),null,null)),e.qb(39,16384,null,0,k.d,[e.C,e.k,[2,k.a]],null,null),e.Ib(1024,null,k.n,(function(n){return[n]}),[k.d]),e.qb(41,671744,null,0,k.h,[[3,k.c],[8,null],[8,null],[6,k.n],[2,k.z]],{name:[0,"name"]},null),e.Ib(2048,null,k.o,null,[k.h]),e.qb(43,16384,null,0,k.p,[[4,k.o]],null,null),e.qb(44,16384,null,0,R,[e.k,k.o],{appBlockSpecialChar:[0,"appBlockSpecialChar"]},null),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(46,0,null,null,7,"input",[["appInputBankName","250"],["class","common-input margin-bottom"],["formControlName","livingIntermediaryBank"],["type","text"]],[[8,"placeholder",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(n,l,t){var i=!0;return"input"===l&&(i=!1!==e.Db(n,47)._handleInput(t.target.value)&&i),"blur"===l&&(i=!1!==e.Db(n,47).onTouched()&&i),"compositionstart"===l&&(i=!1!==e.Db(n,47)._compositionStart()&&i),"compositionend"===l&&(i=!1!==e.Db(n,47)._compositionEnd(t.target.value)&&i),"input"===l&&(i=!1!==e.Db(n,52).onInputChanged(t)&&i),i}),null,null)),e.qb(47,16384,null,0,k.d,[e.C,e.k,[2,k.a]],null,null),e.Ib(1024,null,k.n,(function(n){return[n]}),[k.d]),e.qb(49,671744,null,0,k.h,[[3,k.c],[8,null],[8,null],[6,k.n],[2,k.z]],{name:[0,"name"]},null),e.Ib(2048,null,k.o,null,[k.h]),e.qb(51,16384,null,0,k.p,[[4,k.o]],null,null),e.qb(52,16384,null,0,nn,[e.k,k.o],{appInputBankName:[0,"appInputBankName"]},null),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(54,0,null,null,7,"input",[["appBlockSpecialChar","250"],["class","common-input margin-bottom"],["formControlName","livingIntermediaryBankAddress"],["type","text"]],[[8,"placeholder",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(n,l,t){var i=!0;return"input"===l&&(i=!1!==e.Db(n,55)._handleInput(t.target.value)&&i),"blur"===l&&(i=!1!==e.Db(n,55).onTouched()&&i),"compositionstart"===l&&(i=!1!==e.Db(n,55)._compositionStart()&&i),"compositionend"===l&&(i=!1!==e.Db(n,55)._compositionEnd(t.target.value)&&i),"input"===l&&(i=!1!==e.Db(n,60).onInputChanged(t)&&i),i}),null,null)),e.qb(55,16384,null,0,k.d,[e.C,e.k,[2,k.a]],null,null),e.Ib(1024,null,k.n,(function(n){return[n]}),[k.d]),e.qb(57,671744,null,0,k.h,[[3,k.c],[8,null],[8,null],[6,k.n],[2,k.z]],{name:[0,"name"]},null),e.Ib(2048,null,k.o,null,[k.h]),e.qb(59,16384,null,0,k.p,[[4,k.o]],null,null),e.qb(60,16384,null,0,R,[e.k,k.o],{appBlockSpecialChar:[0,"appBlockSpecialChar"]},null),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(62,0,null,null,6,"div",[["class","action"]],null,null,null,null,null)),(n()(),e.rb(63,0,null,null,2,"button",[["class","btn-common btn-secondary"]],null,[[null,"click"]],(function(n,l,t){var e=!0;return"click"===l&&(e=!1!==n.component.onBackClick()&&e),e}),null,null)),(n()(),e.Lb(64,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(66,0,null,null,2,"button",[["class","btn-common btn-primary"]],[[1,"disabled",0]],[[null,"click"]],(function(n,l,t){var e=!0;return"click"===l&&(e=!1!==n.component.onNextClick()&&e),e}),null,null)),(n()(),e.Lb(67,null,["",""])),e.Fb(131072,r.i,[r.j,e.h])],(function(n,l){n(l,1,0,l.component.infoCommonFG),n(l,15,0,"livingReceiver");var t=n(l,19,0,!1,250);n(l,18,0,t),n(l,20,0,"250"),n(l,25,0,"livingCreditorAccountNumber"),n(l,28,0,"124"),n(l,33,0,"livingReceivingBank"),n(l,36,0,"250"),n(l,41,0,"livingReceivingBankAddress"),n(l,44,0,"250"),n(l,49,0,"livingIntermediaryBank"),n(l,52,0,"250"),n(l,57,0,"livingIntermediaryBankAddress"),n(l,60,0,"250")}),(function(n,l){var t=l.component;n(l,0,0,e.Db(l,3).ngClassUntouched,e.Db(l,3).ngClassTouched,e.Db(l,3).ngClassPristine,e.Db(l,3).ngClassDirty,e.Db(l,3).ngClassValid,e.Db(l,3).ngClassInvalid,e.Db(l,3).ngClassPending),n(l,6,0,e.Mb(l,6,0,e.Db(l,7).transform("abroad.living_info.title"))),n(l,9,0,e.Mb(l,9,0,e.Db(l,10).transform("abroad.living_info.subtitle"))),n(l,12,0,e.vb(1,"",e.Mb(l,12,0,e.Db(l,21).transform("abroad.living_info.placeholder_1")),""),e.Db(l,17).ngClassUntouched,e.Db(l,17).ngClassTouched,e.Db(l,17).ngClassPristine,e.Db(l,17).ngClassDirty,e.Db(l,17).ngClassValid,e.Db(l,17).ngClassInvalid,e.Db(l,17).ngClassPending),n(l,22,0,e.vb(1,"",e.Mb(l,22,0,e.Db(l,29).transform("abroad.living_info.placeholder_2")),""),e.Db(l,27).ngClassUntouched,e.Db(l,27).ngClassTouched,e.Db(l,27).ngClassPristine,e.Db(l,27).ngClassDirty,e.Db(l,27).ngClassValid,e.Db(l,27).ngClassInvalid,e.Db(l,27).ngClassPending),n(l,30,0,e.vb(1,"",e.Mb(l,30,0,e.Db(l,37).transform("abroad.living_info.placeholder_3")),""),e.Db(l,35).ngClassUntouched,e.Db(l,35).ngClassTouched,e.Db(l,35).ngClassPristine,e.Db(l,35).ngClassDirty,e.Db(l,35).ngClassValid,e.Db(l,35).ngClassInvalid,e.Db(l,35).ngClassPending),n(l,38,0,e.vb(1,"",e.Mb(l,38,0,e.Db(l,45).transform("abroad.living_info.placeholder_4")),""),e.Db(l,43).ngClassUntouched,e.Db(l,43).ngClassTouched,e.Db(l,43).ngClassPristine,e.Db(l,43).ngClassDirty,e.Db(l,43).ngClassValid,e.Db(l,43).ngClassInvalid,e.Db(l,43).ngClassPending),n(l,46,0,e.vb(1,"",e.Mb(l,46,0,e.Db(l,53).transform("abroad.living_info.placeholder_5")),""),e.Db(l,51).ngClassUntouched,e.Db(l,51).ngClassTouched,e.Db(l,51).ngClassPristine,e.Db(l,51).ngClassDirty,e.Db(l,51).ngClassValid,e.Db(l,51).ngClassInvalid,e.Db(l,51).ngClassPending),n(l,54,0,e.vb(1,"",e.Mb(l,54,0,e.Db(l,61).transform("abroad.living_info.placeholder_6")),""),e.Db(l,59).ngClassUntouched,e.Db(l,59).ngClassTouched,e.Db(l,59).ngClassPristine,e.Db(l,59).ngClassDirty,e.Db(l,59).ngClassValid,e.Db(l,59).ngClassInvalid,e.Db(l,59).ngClassPending),n(l,64,0,e.Mb(l,64,0,e.Db(l,65).transform("general.btn_back"))),n(l,66,0,t.checkFormValid()?null:"disabled"),n(l,67,0,e.Mb(l,67,0,e.Db(l,68).transform("general.btn_next")))}))}var sn=t("Iab2");const cn=["89504e47","ffd8ffe0","ffd8ffe1","ffd8ffe2","ffd8ffe3","ffd8ffe8"],dn=["25504446"];class pn{constructor(n,l,t,e){this.translateService=n,this.commonService=l,this.langService=t,this.abroadUtil=e,this.enablePopup=!0,this.key="",this.mapTypeToText={PAYMENT_FEE:"abroad.upload.item_1",ADMISSION:"abroad.upload.item_2",SENDER_PASSPORT:"abroad.upload.item_3",REGISTRATION_BOOK:"abroad.upload.item_4",VISA:"abroad.upload.item_5",PASSPORT:"abroad.upload.item_6"},this.uploadTitle="",this.acceptedType="image/jpeg,image/png,application/pdf",this.maxFileSize=2097152,this.errorDisplay=""}ngOnInit(){}ngOnChanges(n){if(n.key&&(this.uploadTitle=this.mapTypeToText[n.key.currentValue]),n.infoCommonFG)switch(this.file={},this.file.size=1,this.key){case"PAYMENT_FEE":this.file.name=n.infoCommonFG.currentValue.controls.paymentFeeFileName.value,this.fileId=n.infoCommonFG.currentValue.controls.paymentFeeFile.value;break;case"ADMISSION":this.file.name=n.infoCommonFG.currentValue.controls.admissionFileName.value,this.fileId=n.infoCommonFG.currentValue.controls.admissionFile.value;break;case"SENDER_PASSPORT":this.file.name=n.infoCommonFG.currentValue.controls.passportSenderFileName.value,this.fileId=n.infoCommonFG.currentValue.controls.passportSenderFile.value;break;case"REGISTRATION_BOOK":this.file.name=n.infoCommonFG.currentValue.controls.registrationBookFileName.value,this.fileId=n.infoCommonFG.currentValue.controls.registrationBookFile.value;break;case"PASSPORT":this.file.name=n.infoCommonFG.currentValue.controls.passportFileName.value,this.fileId=n.infoCommonFG.currentValue.controls.passportFile.value;break;case"VISA":this.file.name=n.infoCommonFG.currentValue.controls.visaFileName.value,this.fileId=n.infoCommonFG.currentValue.controls.visaFile.value}}onDragOver(n){n.preventDefault()}onDragLeave(n){n.stopPropagation(),n.preventDefault(),this.activeDrag&&(this.activeDrag=!1)}onDrop(n){n.preventDefault(),this.enableEnlargePopup=!1,this.enablePopup=!1,this.file=n.dataTransfer.files[0],this.checkValidFile()}onChange(n){this.enableEnlargePopup=!1,this.enableEnlargePopup=!1,this.file=n.target.files[0],this.checkValidFile()}onGlobalDragOver(n){n.preventDefault(),this.enableEnlargePopup=!0,this.enablePopup=!0}deleteSingleFile(){switch(this.file=null,this.inputFileValue.nativeElement.value="",this.key){case"PAYMENT_FEE":this.infoCommonFG.controls.paymentFeeFile.setValue(""),this.infoCommonFG.controls.paymentFeeFileName.setValue("");break;case"ADMISSION":this.infoCommonFG.controls.admissionFile.setValue(""),this.infoCommonFG.controls.admissionFileName.setValue("");break;case"SENDER_PASSPORT":this.infoCommonFG.controls.passportSenderFile.setValue(""),this.infoCommonFG.controls.passportSenderFileName.setValue("");break;case"REGISTRATION_BOOK":this.infoCommonFG.controls.registrationBookFile.setValue(""),this.infoCommonFG.controls.registrationBookFileName.setValue("");break;case"VISA":this.infoCommonFG.controls.visaFile.setValue(""),this.infoCommonFG.controls.visaFileName.setValue("");break;case"PASSPORT":this.infoCommonFG.controls.passportFile.setValue(""),this.infoCommonFG.controls.passportFileName.setValue("")}this.fileId=""}checkValidFile(){this.checkFileType(this.file)}checkFileSize(){return this.file.size>this.maxFileSize?(this.errorDisplay=this.translateService.instant("abroad.error.file_1"),this.setFile("000"),!1):(this.errorDisplay="",!0)}checkFileType(n){let l=n.type,t=n,e=new FileReader;e.onloadend=n=>{let t=new Uint8Array(n.target.result).subarray(0,4),e="";for(let l=0;l{this.fileId=n.id,this.setFile(n.id),this.commonService.showProgres(!1)},error:n=>{this.commonService.showProgres(!1),this.commonService.showGlobalError(n&&n.error&&n.error.errorMessage&&n.error.messages.vn?{description:"vi"===this.langService.getLang()?n.error.errorMessage.messages.vn:n.error.errorMessage.messages.en}:{})}})}setFile(n){switch(this.fileId=n,this.key){case"PAYMENT_FEE":this.infoCommonFG.controls.paymentFeeFile.setValue(n),this.infoCommonFG.controls.paymentFeeFileName.setValue(this.file.name);break;case"ADMISSION":this.infoCommonFG.controls.admissionFile.setValue(n),this.infoCommonFG.controls.admissionFileName.setValue(this.file.name);break;case"SENDER_PASSPORT":this.infoCommonFG.controls.passportSenderFile.setValue(n),this.infoCommonFG.controls.passportSenderFileName.setValue(this.file.name);break;case"REGISTRATION_BOOK":this.infoCommonFG.controls.registrationBookFile.setValue(n),this.infoCommonFG.controls.registrationBookFileName.setValue(this.file.name);break;case"VISA":this.infoCommonFG.controls.visaFile.setValue(n),this.infoCommonFG.controls.visaFileName.setValue(this.file.name);break;case"PASSPORT":this.infoCommonFG.controls.passportFile.setValue(n),this.infoCommonFG.controls.passportFileName.setValue(this.file.name)}}downloadFileClick(){this.fileId&&"000"!==this.fileId&&this.commonService.downloadFileWithCredential({url:c.a.ABROAD_DOWNLOAD_FILE+"?id="+this.fileId}).subscribe(n=>{const l=this.file.name,t=new Blob([n],{type:this.abroadUtil.getTypeByFileName(this.file.name)});Object(sn.saveAs)(t,l)})}}var mn=t("WmRU"),bn=e.pb({encapsulation:0,styles:[[".multi-file-upload[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-width:496px}.multi-file-upload[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:14px}.multi-file-upload[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%] .header-left[_ngcontent-%COMP%]{text-align:left;font-weight:500;width:calc(100% - 70px)}.multi-file-upload[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%] .header-right[_ngcontent-%COMP%]{color:#ff9800;width:70px;cursor:pointer}.multi-file-upload[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%] .header-right[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:10px;height:10px;margin-bottom:2px;margin-right:5px}.multi-file-upload[_ngcontent-%COMP%] .upload-header[_ngcontent-%COMP%] .header-right[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{cursor:pointer}.multi-file-upload[_ngcontent-%COMP%] .upload-document-container[_ngcontent-%COMP%] .upload-title[_ngcontent-%COMP%]{font-weight:500}.multi-file-upload[_ngcontent-%COMP%] .upload-document-container[_ngcontent-%COMP%] .upload-icon[_ngcontent-%COMP%]{width:60px;height:60px;margin:22px 0}.multi-file-upload[_ngcontent-%COMP%] .upload-document-container[_ngcontent-%COMP%] .select-file-button[_ngcontent-%COMP%]{color:#ff9800;margin:0;cursor:pointer;text-decoration:underline}.multi-file-upload[_ngcontent-%COMP%] .upload-document-container[_ngcontent-%COMP%] .upload-document-wrap[_ngcontent-%COMP%]{background:left top/25px 1px repeat-x,left bottom/25px 1px repeat-x,left top/1px 25px repeat-y,right top/1px 25px repeat-y #fff;width:100%;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:all .5s ease 0s;-webkit-transition:.5s;-moz-transition:.5s;-o-transition:.5s;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;background-image:linear-gradient(to right,#ad8ad8 50%,transparent 50%),linear-gradient(to right,#ad8ad8 50%,transparent 50%),linear-gradient(to bottom,#ad8ad8 50%,transparent 50%),linear-gradient(to bottom,#ad8ad8 50%,transparent 50%)}.multi-file-upload[_ngcontent-%COMP%] .upload-document-container[_ngcontent-%COMP%] .upload-document-wrap.drag-class[_ngcontent-%COMP%]{background-color:#eee;background-image:linear-gradient(to right,#ad8ad8 50%,transparent 50%),linear-gradient(to right,#ad8ad8 50%,transparent 50%),linear-gradient(to bottom,#ad8ad8 50%,transparent 50%),linear-gradient(to bottom,#ad8ad8 50%,transparent 50%);background-position:left top,left bottom,left top,right top;background-repeat:repeat-x,repeat-x,repeat-y,repeat-y;background-size:25px 1px,25px 1px,1px 25px,1px 25px}.multi-file-upload[_ngcontent-%COMP%] .upload-document-container[_ngcontent-%COMP%] .upload-document-wrap.drag-class[_ngcontent-%COMP%] .upload-inner[_ngcontent-%COMP%]{opacity:.6}.multi-file-upload[_ngcontent-%COMP%] .upload-document-container[_ngcontent-%COMP%] .upload-document-wrap[_ngcontent-%COMP%] .has-file[_ngcontent-%COMP%]{padding-bottom:16px}.multi-file-upload[_ngcontent-%COMP%] .upload-document-container[_ngcontent-%COMP%] .upload-document-wrap[_ngcontent-%COMP%] .upload-inner[_ngcontent-%COMP%]{display:flex;width:100%;flex-direction:column;align-items:center;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;justify-content:center;transition:all .5s ease 0s;-webkit-transition:.5s;-moz-transition:.5s;-o-transition:.5s}.multi-file-upload[_ngcontent-%COMP%] .upload-document-container[_ngcontent-%COMP%] .upload-document-wrap[_ngcontent-%COMP%] .upload-inner[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%]{width:100%;padding-left:24px;padding-right:24px;margin-top:16px;display:flex;justify-content:space-between}.multi-file-upload[_ngcontent-%COMP%] .upload-document-container[_ngcontent-%COMP%] .upload-document-wrap[_ngcontent-%COMP%] .upload-inner[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .left-file-content[_ngcontent-%COMP%]{width:420;display:flex;justify-content:space-between;text-align:left}.multi-file-upload[_ngcontent-%COMP%] .upload-document-container[_ngcontent-%COMP%] .upload-document-wrap[_ngcontent-%COMP%] .upload-inner[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .left-file-content[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-bottom:2px;margin-right:10px;height:24px;width:20px}.multi-file-upload[_ngcontent-%COMP%] .upload-document-container[_ngcontent-%COMP%] .upload-document-wrap[_ngcontent-%COMP%] .upload-inner[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .left-file-content[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-align:left;width:395px;word-wrap:break-word}.multi-file-upload[_ngcontent-%COMP%] .upload-document-container[_ngcontent-%COMP%] .upload-document-wrap[_ngcontent-%COMP%] .upload-inner[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .cursor-style[_ngcontent-%COMP%]{cursor:pointer}.multi-file-upload[_ngcontent-%COMP%] .upload-document-container[_ngcontent-%COMP%] .upload-document-wrap[_ngcontent-%COMP%] .upload-inner[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .right-delete[_ngcontent-%COMP%]{width:18px;height:18px;cursor:pointer}.multi-file-upload[_ngcontent-%COMP%] .upload-document-container[_ngcontent-%COMP%] .upload-document-wrap[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.multi-file-upload[_ngcontent-%COMP%] .upload-document-container[_ngcontent-%COMP%] .upload-document-wrap[_ngcontent-%COMP%] .delete-file-button[_ngcontent-%COMP%]{color:#f09f78;cursor:pointer}.multi-file-upload[_ngcontent-%COMP%] .upload-document-container[_ngcontent-%COMP%] .upload-document-wrap[_ngcontent-%COMP%] .delete-file-button[_ngcontent-%COMP%]:hover{color:#7b35bb}.multi-file-upload[_ngcontent-%COMP%] .upload-document-container[_ngcontent-%COMP%] .upload-document-enlarge-popup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;-webkit-animation:.5s showPopup;animation:.5s showPopup}@-webkit-keyframes showPopup{from{opacity:0}to{opacity:1}}@keyframes showPopup{from{opacity:0}to{opacity:1}}.multi-file-upload[_ngcontent-%COMP%] .upload-document-container[_ngcontent-%COMP%] .upload-document-enlarge-popup-overlay[_ngcontent-%COMP%]{background:rgba(0,0,0,.75);width:100%;height:100%;position:absolute;cursor:pointer}.multi-file-upload[_ngcontent-%COMP%] .upload-document-container[_ngcontent-%COMP%] .upload-document-enlarge-popup[_ngcontent-%COMP%] .upload-document-enlarge-popup-content[_ngcontent-%COMP%]{width:88%;height:86%;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:all .5s ease 0s;-webkit-transition:.5s;-moz-transition:.5s;-o-transition:.5s;background-color:#fff;background-image:linear-gradient(to right,#ad8ad8 50%,transparent 50%),linear-gradient(to right,#ad8ad8 50%,transparent 50%),linear-gradient(to bottom,#ad8ad8 50%,transparent 50%),linear-gradient(to bottom,#ad8ad8 50%,transparent 50%);background-position:left top,left bottom,left top,right top;background-repeat:repeat-x,repeat-x,repeat-y,repeat-y;background-size:25px 1px,25px 1px,1px 25px,1px 25px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;z-index:99}.multi-file-upload[_ngcontent-%COMP%] .upload-document-container[_ngcontent-%COMP%] .upload-document-enlarge-popup[_ngcontent-%COMP%] .upload-document-enlarge-popup-content.drag-class[_ngcontent-%COMP%]{background-color:#eee;background-image:linear-gradient(to right,#ad8ad8 50%,transparent 50%),linear-gradient(to right,#ad8ad8 50%,transparent 50%),linear-gradient(to bottom,#ad8ad8 50%,transparent 50%),linear-gradient(to bottom,#ad8ad8 50%,transparent 50%);background-position:left top,left bottom,left top,right top;background-repeat:repeat-x,repeat-x,repeat-y,repeat-y;background-size:25px 1px,25px 1px,1px 25px,1px 25px}.multi-file-upload[_ngcontent-%COMP%] .mail-error-message[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;text-align:center;color:red;margin-top:16px;font-size:13px;font-weight:400}.multi-file-upload[_ngcontent-%COMP%] .image-edit-update-wrap[_ngcontent-%COMP%] .image-edit-update-inner[_ngcontent-%COMP%]{position:relative;display:inline-block;height:100%;min-width:100%;background-color:#fff}.multi-file-upload[_ngcontent-%COMP%] .image-edit-update-wrap[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:100%;width:100%;max-width:100%}@media screen and (max-width:575px){.multi-file-upload[_ngcontent-%COMP%]{max-width:100%}.file-item[_ngcontent-%COMP%]{width:100%;padding-left:16px!important;padding-right:16px!important}.file-item[_ngcontent-%COMP%] .left-file-content[_ngcontent-%COMP%]{width:calc(100% - 35px)!important}.file-item[_ngcontent-%COMP%] .left-file-content[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:calc(100% - 25px)!important}}"]],data:{}});function gn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,6,"div",[["class","file-item"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,3,"div",[["class","left-file-content"]],[[2,"cursor-style",null]],[[null,"click"]],(function(n,l,t){var e=!0;return"click"===l&&(e=!1!==n.component.downloadFileClick()&&e),e}),null,null)),(n()(),e.rb(2,0,null,null,0,"img",[["src","assets/icons/ic_uploaded_file.svg"]],null,null,null,null,null)),(n()(),e.rb(3,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),e.Lb(4,null,["",""])),(n()(),e.rb(5,0,null,null,1,"div",[["class","right-delete"]],null,null,null,null,null)),(n()(),e.rb(6,0,null,null,0,"img",[["src","assets/icons/ic_delele_red.svg"],["style","width: 18px; height: 18px;"]],null,[[null,"click"]],(function(n,l,t){var e=!0;return"click"===l&&(e=!1!==n.component.deleteSingleFile()&&e),e}),null,null))],null,(function(n,l){var t=l.component;n(l,1,0,t.fileId&&"000"!=t.fileId),n(l,4,0,t.file.name)}))}function hn(n){return e.Nb(0,[(n()(),e.gb(0,null,null,0))],null,null)}function fn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,3,"div",[["class","mail-error-message"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,0,"img",[["src","assets/icons/ic_warning.svg"]],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,1,"span",[["style","margin-top: 1px; margin-left:3px;"]],null,null,null,null,null)),(n()(),e.Lb(3,null,["",""]))],null,(function(n,l){n(l,3,0,l.component.errorDisplay)}))}function Cn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,13,"div",[["class","upload-document-enlarge-popup"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,0,"div",[["class","upload-document-enlarge-popup-overlay"]],null,[[null,"click"],[null,"drop"]],(function(n,l,t){var e=!0;return"click"===l&&(e=0!=(n.component.enableEnlargePopup=!1)&&e),"drop"===l&&(e=!1!==t.preventDefault()&&e),e}),null,null)),(n()(),e.rb(2,0,null,null,11,"div",[["class","upload-document-enlarge-popup-content"]],[[2,"drag-class",null]],[[null,"dragover"],[null,"drop"],[null,"dragleave"]],(function(n,l,t){var e=!0,i=n.component;return"dragover"===l&&(e=!1!==i.onDragOver(t)&&e),"drop"===l&&(e=!1!==i.onDrop(t)&&e),"dragleave"===l&&(e=!1!==i.onDragLeave(t)&&e),e}),null,null)),(n()(),e.rb(3,0,null,null,2,"div",[["class","upload-title"]],null,null,null,null,null)),(n()(),e.Lb(4,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(6,0,null,null,0,"img",[["class","upload-icon"],["src","assets/icons/ic_file_upload_inactive.svg"]],null,null,null,null,null)),(n()(),e.rb(7,0,null,null,6,"div",[["class","upload-description"]],null,null,null,null,null)),(n()(),e.rb(8,0,null,null,2,"label",[["class","select-file-button"]],[[8,"htmlFor",0]],null,null,null,null)),(n()(),e.Lb(9,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(11,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(12,null,["\xa0",""])),e.Fb(131072,r.i,[r.j,e.h])],null,(function(n,l){var t=l.component;n(l,2,0,t.activeDrag),n(l,4,0,e.Mb(l,4,0,e.Db(l,5).transform("abroad.common.modal_text"))),n(l,8,0,e.vb(1,"myFile",t.index,"")),n(l,9,0,e.Mb(l,9,0,e.Db(l,10).transform("transfer.batch.select_file"))),n(l,12,0,e.Mb(l,12,0,e.Db(l,13).transform("transfer.batch.or_drag_file")))}))}function vn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,2,null,null,null,null,null,null,null)),(n()(),e.gb(16777216,null,null,1,null,Cn)),e.qb(2,16384,null,0,s.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(0,null,null,0))],(function(n,l){n(l,2,0,l.component.enableEnlargePopup)}),null)}function Dn(n){return e.Nb(0,[(n()(),e.rb(0,0,[[1,0],["inputFile",1]],null,0,"input",[["accept",".pdf, application/pdf, .png, .jpg, .jpeg, .PNG, .JPG, .JPEG"],["type","file"]],[[8,"id",0],[8,"name",0]],[[null,"change"]],(function(n,l,t){var e=!0;return"change"===l&&(e=!1!==n.component.onChange(t)&&e),e}),null,null))],null,(function(n,l){var t=l.component;n(l,0,0,e.vb(1,"myFile",t.index,""),e.vb(1,"myFile",t.index,""))}))}function Fn(n){return e.Nb(0,[e.Jb(671088640,1,{inputFileValue:0}),(n()(),e.rb(1,0,null,null,22,"div",[["class","multi-file-upload"]],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,20,null,null,null,null,null,null,null)),(n()(),e.rb(3,0,null,null,8,"div",[["class","upload-header"]],null,null,null,null,null)),(n()(),e.rb(4,0,null,null,2,"div",[["class","header-left"]],null,null,null,null,null)),(n()(),e.Lb(5,null,[" ",". "," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(7,0,null,null,4,"div",[["class","header-right"]],null,null,null,null,null)),(n()(),e.rb(8,0,null,null,0,"img",[["src","assets/icons/ic_upload.svg"]],null,null,null,null,null)),(n()(),e.rb(9,0,null,null,2,"label",[],[[8,"htmlFor",0]],null,null,null,null)),(n()(),e.Lb(10,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(12,0,null,null,10,"div",[["class","upload-document-container"]],null,null,null,null,null)),(n()(),e.rb(13,0,null,null,5,"div",[["class","upload-document-wrap"]],[[2,"drag-class",null]],[[null,"dragover"],[null,"drop"],[null,"dragleave"]],(function(n,l,t){var e=!0,i=n.component;return"dragover"===l&&(e=!1!==i.onDragOver(t)&&e),"drop"===l&&(e=!1!==i.onDrop(t)&&e),"dragleave"===l&&(e=!1!==i.onDragLeave(t)&&e),e}),null,null)),(n()(),e.rb(14,0,null,null,4,"div",[["class","upload-inner"]],[[2,"has-file",null]],null,null,null,null)),(n()(),e.gb(16777216,null,null,1,null,gn)),e.qb(16,16384,null,0,s.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,hn)),e.qb(18,540672,null,0,s.u,[e.N],{ngTemplateOutlet:[0,"ngTemplateOutlet"]},null),(n()(),e.gb(16777216,null,null,1,null,fn)),e.qb(20,16384,null,0,s.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,vn)),e.qb(22,16384,null,0,s.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(0,[["browseFile",2]],null,0,null,Dn))],(function(n,l){var t=l.component;n(l,16,0,t.fileId),n(l,18,0,e.Db(l,23)),n(l,20,0,t.fileId&&t.errorDisplay),n(l,22,0,t.enablePopup)}),(function(n,l){var t=l.component;n(l,5,0,t.index,e.Mb(l,5,1,e.Db(l,6).transform(t.uploadTitle))),n(l,9,0,e.vb(1,"myFile",t.index,"")),n(l,10,0,e.Mb(l,10,0,e.Db(l,11).transform("abroad.upload.upload"))),n(l,13,0,t.activeDrag&&!t.enablePopup),n(l,14,0,t.fileId)}))}class yn{constructor(){this.documentType={},this.type="CREATE",this.nextClick=new e.m,this.backClick=new e.m,this.selectedFiles={},this.selectedFileId={},this.arrayKeyImportantFile=[],this.isFileValid=!1,this.listError={},this.mapKeyAndFileIdProperty={PAYMENT_FEE:"paymentFeeFile",ADMISSION:"admissionFile",SENDER_PASSPORT:"passportSenderFile",REGISTRATION_BOOK:"registrationBookFile",VISA:"visaFile",PASSPORT:"passportFile"}}ngOnInit(){}ngOnChanges(n){n.documentType&&(n.documentType.currentValue.PAYMENT_FEE&&(this.arrayKeyImportantFile=["",m.a.PAYMENT_FEE,m.a.ADMISSION,m.a.SENDER_PASSPORT,m.a.PASSPORT]),n.documentType.currentValue.LIVING_FEE&&(this.arrayKeyImportantFile=["",m.a.ADMISSION,m.a.SENDER_PASSPORT,m.a.REGISTRATION_BOOK,m.a.VISA,m.a.PASSPORT]),n.documentType.currentValue.LIVING_FEE&&n.documentType.currentValue.PAYMENT_FEE&&(this.arrayKeyImportantFile=["",m.a.PAYMENT_FEE,m.a.ADMISSION,m.a.SENDER_PASSPORT,m.a.REGISTRATION_BOOK,m.a.VISA,m.a.PASSPORT]))}onFileChange(n){this.selectedFiles[n.key]=n.file,this.selectedFileId[n.key]=n.fileId,this.listError[n.key]=n.error}checkFileValid(){if(!this.infoCommonFG)return!1;for(let n=1;n{}),this.nextClick.emit()}onBackClick(){this.backClick.emit()}}var _n=e.pb({encapsulation:0,styles:[[".document-prove-transaction[_ngcontent-%COMP%]{width:496px;display:flex;flex-direction:column;text-align:center}.document-prove-transaction[_ngcontent-%COMP%] .head-title[_ngcontent-%COMP%]{font-size:20px;font-weight:700;display:block}.document-prove-transaction[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{margin-top:8px;font-size:14px;font-weight:400;display:block}.document-prove-transaction[_ngcontent-%COMP%] .item-row-file[_ngcontent-%COMP%]{margin-top:8px}.document-prove-transaction[_ngcontent-%COMP%] .action-section[_ngcontent-%COMP%]{margin-top:24px;display:flex}.document-prove-transaction[_ngcontent-%COMP%] .action-section[_ngcontent-%COMP%] .btn-default[_ngcontent-%COMP%]{height:48px;width:200px}.document-prove-transaction[_ngcontent-%COMP%] .action-section[_ngcontent-%COMP%] .btn-secondary[_ngcontent-%COMP%]{margin-left:calc(50% - 212px)}.document-prove-transaction[_ngcontent-%COMP%] .action-section[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]{margin-left:24px}@media screen and (max-width:575px){.document-prove-transaction[_ngcontent-%COMP%]{width:100%}.action-section[_ngcontent-%COMP%]{margin-top:24px;display:flex;flex-direction:column-reverse}.action-section[_ngcontent-%COMP%] .btn-default[_ngcontent-%COMP%]{height:48px;width:100%!important}.action-section[_ngcontent-%COMP%] .btn-secondary[_ngcontent-%COMP%]{margin-left:0!important;margin-top:16px}.action-section[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]{margin-left:0!important}}button[_ngcontent-%COMP%]{font-weight:500}"]],data:{}});function kn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,1,"app-multiple-file-upload",[],null,[[null,"dragover"]],(function(n,l,t){var i=!0;return"dragover"===l&&(i=!1!==e.Db(n,1).onGlobalDragOver(t)&&i),i}),Fn,bn)),e.qb(1,638976,null,0,pn,[r.j,g.a,mn.a,E],{key:[0,"key"],index:[1,"index"],infoCommonFG:[2,"infoCommonFG"]},null)],(function(n,l){var t=l.component;n(l,1,0,l.parent.context.$implicit,e.vb(1,"",l.parent.context.index,""),t.infoCommonFG)}),null)}function Pn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,2,"div",[["class","item-row-file"]],null,null,null,null,null)),(n()(),e.gb(16777216,null,null,1,null,kn)),e.qb(2,16384,null,0,s.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null)],(function(n,l){n(l,2,0,l.context.index>0)}),null)}function xn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,15,"div",[["class","document-prove-transaction"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,2,"span",[["class","head-title"]],null,null,null,null,null)),(n()(),e.Lb(2,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(4,0,null,null,2,"span",[["class","sub-title"]],null,null,null,null,null)),(n()(),e.Lb(5,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.gb(16777216,null,null,1,null,Pn)),e.qb(8,278528,null,0,s.m,[e.N,e.K,e.q],{ngForOf:[0,"ngForOf"]},null),(n()(),e.rb(9,0,null,null,6,"div",[["class","action-section"]],null,null,null,null,null)),(n()(),e.rb(10,0,null,null,2,"button",[["class","btn-default btn-secondary"]],null,[[null,"click"]],(function(n,l,t){var e=!0;return"click"===l&&(e=!1!==n.component.onBackClick()&&e),e}),null,null)),(n()(),e.Lb(11,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(13,0,null,null,2,"button",[["class","btn-default btn-primary"]],[[1,"disabled",0]],[[null,"click"]],(function(n,l,t){var e=!0;return"click"===l&&(e=!1!==n.component.onNextClick()&&e),e}),null,null)),(n()(),e.Lb(14,null,["",""])),e.Fb(131072,r.i,[r.j,e.h])],(function(n,l){n(l,8,0,l.component.arrayKeyImportantFile)}),(function(n,l){var t=l.component;n(l,2,0,e.Mb(l,2,0,e.Db(l,3).transform("abroad.upload.title_prove"))),n(l,5,0,e.Mb(l,5,0,e.Db(l,6).transform("abroad.upload.sub_title_prove"))),n(l,11,0,e.Mb(l,11,0,e.Db(l,12).transform("general.btn_back"))),n(l,13,0,t.checkFileValid()?null:"disabled"),n(l,14,0,e.Mb(l,14,0,e.Db(l,15).transform("CREATE"==t.type?"abroad.upload.save_document":"abroad.upload.update_document")))}))}var wn=t("+Gek"),Mn=t("mj0y");class On{constructor(n,l,t){this.translateService=n,this.router=l,this.commonService=t,this.type="CREATE",this.success=!1,this.tryAgainClick=new e.m}ngOnInit(){this.commonService.showBreadcrumb(!1),window.scrollTo({top:0,behavior:"smooth"})}ngOnChanges(n){}getTitle(n,l){return this.translateService.instant("CREATE"===n?l?"abroad.common.create_success":"abroad.common.create_failed":l?"abroad.common.edit_success":"abroad.common.edit_failed")}onDoneClick(){this.router.navigate(["/main/abroad"])}onTryAgainClick(){this.tryAgainClick.emit()}onHomeClick(){this.router.navigate(["/main"])}}var In=e.pb({encapsulation:0,styles:[[".abroad-result[_ngcontent-%COMP%]{margin-top:24px}.abroad-result[_ngcontent-%COMP%] .success-section[_ngcontent-%COMP%]{display:flex;justify-content:center}.abroad-result[_ngcontent-%COMP%] .success-section[_ngcontent-%COMP%] .btn-success[_ngcontent-%COMP%]{width:344px;height:48px;margin-top:16px;font-weight:500}.abroad-result[_ngcontent-%COMP%] .failed-section[_ngcontent-%COMP%]{margin-top:16px}.abroad-result[_ngcontent-%COMP%] .failed-section[_ngcontent-%COMP%] .btn-common[_ngcontent-%COMP%]{width:200px;font-weight:500;height:48px;margin-left:calc(50% - 208px)}.abroad-result[_ngcontent-%COMP%] .failed-section[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]{margin-left:20px}@media screen and (max-width:575px){.abroad-result[_ngcontent-%COMP%]{margin-top:24px}.abroad-result[_ngcontent-%COMP%] .success-section[_ngcontent-%COMP%] .btn-success[_ngcontent-%COMP%]{width:100%;height:48px;margin-top:24px}.abroad-result[_ngcontent-%COMP%] .failed-section[_ngcontent-%COMP%]{margin-top:24px;display:flex;flex-direction:column-reverse}.abroad-result[_ngcontent-%COMP%] .failed-section[_ngcontent-%COMP%] .btn-common[_ngcontent-%COMP%]{width:100%;height:48px}.abroad-result[_ngcontent-%COMP%] .failed-section[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]{margin-left:0!important}.abroad-result[_ngcontent-%COMP%] .failed-section[_ngcontent-%COMP%] .btn-secondary[_ngcontent-%COMP%]{margin-top:24px;margin-left:0!important}}"]],data:{}});function Gn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,3,"div",[["class","success-section"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,2,"button",[["class","btn-success btn-primary"]],null,[[null,"click"]],(function(n,l,t){var e=!0;return"click"===l&&(e=!1!==n.component.onDoneClick()&&e),e}),null,null)),(n()(),e.Lb(2,null,["",""])),e.Fb(131072,r.i,[r.j,e.h])],null,(function(n,l){n(l,2,0,e.Mb(l,2,0,e.Db(l,3).transform("general.btn_done")))}))}function Tn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,6,"div",[["class","failed-section"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,2,"button",[["class","btn-common btn-secondary"]],null,[[null,"click"]],(function(n,l,t){var e=!0;return"click"===l&&(e=!1!==n.component.onTryAgainClick()&&e),e}),null,null)),(n()(),e.Lb(2,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(4,0,null,null,2,"button",[["class","btn-common btn-primary"]],null,[[null,"click"]],(function(n,l,t){var e=!0;return"click"===l&&(e=!1!==n.component.onHomeClick()&&e),e}),null,null)),(n()(),e.Lb(5,null,["",""])),e.Fb(131072,r.i,[r.j,e.h])],null,(function(n,l){n(l,2,0,e.Mb(l,2,0,e.Db(l,3).transform("general.btn_retry"))),n(l,5,0,e.Mb(l,5,0,e.Db(l,6).transform("general.btn_home")))}))}function Nn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,7,"div",[["class","abroad-result"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,2,"action-result",[["class","success-item"]],null,null,null,wn.b,wn.a)),e.qb(2,638976,null,0,Mn.a,[],{title:[0,"title"],content:[1,"content"],success:[2,"success"]},null),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.gb(16777216,null,null,1,null,Gn)),e.qb(5,16384,null,0,s.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,Tn)),e.qb(7,16384,null,0,s.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null)],(function(n,l){var t=l.component;n(l,2,0,e.vb(1,"",t.getTitle(t.type,t.success),""),e.vb(1,"",e.Mb(l,2,1,e.Db(l,3).transform(t.success?"":"txt_common_error-1")),""),t.success),n(l,5,0,t.success),n(l,7,0,!t.success)}),null)}class Sn{constructor(n,l,t,e,i){this.formBuilder=n,this.langService=l,this.commonService=t,this.abroadUtil=e,this.router=i,this.success=!0,this.currentStep=m.b.infoCommon,this.steps=m.b,this.documentType={PAYMENT_FEE:!0,LIVING_FEE:!1},this.definedValue="Khac",this.relationships=m.w}ngOnInit(){this.abroadCreatingFormGroup=this.formBuilder.group({id:new k.f("",k.w.required),relationship:new k.f("BoMe",k.w.required),detailRelationship:new k.f(""),name:new k.f("",k.w.required),passport:new k.f("",k.w.required),passportDate:new k.f("",k.w.required),expiredPassportDate:new k.f("",k.w.required),placePassportIssuance:new k.f("",k.w.required),visaDate:new k.f("",k.w.required),expiredVisaDate:new k.f("",k.w.required),placeVisaIssuance:new k.f("",k.w.required),isPassportDateValid:new k.f(!1),isExpiredPassportDateValid:new k.f(!1),isVisaDateValid:new k.f(!1),isExpiredVisaDateValid:new k.f(!1),paySchoolName:new k.f("",k.w.required),payEndTerm:new k.f("",k.w.required),isPayEndTermValid:new k.f(!1),payReceiver:new k.f("",k.w.required),payCreditorAccountNumber:new k.f("",k.w.required),payReceivingBank:new k.f("",k.w.required),payReceivingBankAddress:new k.f("",k.w.required),payIntermediaryBank:new k.f("",k.w.required),payIntermediaryBankAddress:new k.f("",k.w.required),livingReceiver:new k.f("",k.w.required),livingCreditorAccountNumber:new k.f("",k.w.required),livingReceivingBank:new k.f("",k.w.required),livingReceivingBankAddress:new k.f("",k.w.required),livingIntermediaryBank:new k.f("",k.w.required),livingIntermediaryBankAddress:new k.f("",k.w.required),paymentFeeFile:new k.f(""),paymentFeeFileName:new k.f(""),admissionFile:new k.f(""),admissionFileName:new k.f(""),passportSenderFile:new k.f(""),passportSenderFileName:new k.f(""),registrationBookFile:new k.f(""),registrationBookFileName:new k.f(""),passportFile:new k.f(""),passportFileName:new k.f(""),visaFile:new k.f(""),visaFileName:new k.f("")}),this.abroadCreatingFormGroup.controls.payCreditorAccountNumber.valueChanges.pipe(Object(B.a)()).subscribe(n=>{}),this.commonService.setPageTitle("abroad.breadcrumb.create"),this.commonService.showBreadcrumb(!0),this.subscribeFormGroup(),this.abroadUtil.isEditAbroadValid=!1}isShowInput(){let n=!1;return this.abroadCreatingFormGroup.controls.relationship&&this.abroadCreatingFormGroup.controls.relationship.value===this.definedValue&&(n=!0),n}subscribeFormGroup(){this.abroadCreatingFormGroup.controls.relationship.valueChanges.pipe(Object(B.a)()).subscribe(n=>{})}handleNextPage(){switch(this.currentStep){case this.steps.infoCommon:this.currentStep=this.steps.documentType;break;case this.steps.documentType:this.documentType.PAYMENT_FEE?(this.abroadUtil.isEditPayEndTermValid=!0,this.currentStep=this.steps.paymentFee):this.currentStep=this.steps.livingFee;break;case this.steps.paymentFee:this.currentStep=this.documentType.LIVING_FEE?this.steps.livingFee:this.steps.fileUpload;break;case this.steps.livingFee:this.currentStep=this.steps.fileUpload;break;case this.steps.fileUpload:this.currentStep=this.steps.result}window.scrollTo({top:0,behavior:"smooth"})}handleBackPage(){switch(this.currentStep){case this.steps.infoCommon:this.router.navigate(["/main/abroad"]);break;case this.steps.documentType:this.currentStep=this.steps.infoCommon;break;case this.steps.paymentFee:this.currentStep=this.steps.documentType;break;case this.steps.livingFee:this.currentStep=this.documentType.PAYMENT_FEE?this.steps.paymentFee:this.steps.documentType;break;case this.steps.fileUpload:this.abroadUtil.clearData(this.abroadCreatingFormGroup),this.currentStep=this.documentType.LIVING_FEE?this.steps.livingFee:this.steps.paymentFee}window.scrollTo({top:0,behavior:"smooth"})}onSaveDocument(){this.abroadUtil.saveDocument(this.abroadCreatingFormGroup,this.documentType,n=>{this.success=!0,this.currentStep=this.steps.result})}onClickTryAgain(){this.currentStep=this.steps.infoCommon}}var Vn=e.pb({encapsulation:0,styles:[[".creating-container[_ngcontent-%COMP%]{width:496px;margin:auto}.creating-header[_ngcontent-%COMP%]{font-weight:700;color:#42236a;font-size:20px;text-align:center;margin-bottom:8px}.creating-info[_ngcontent-%COMP%]{color:#42236a;text-align:center;font-size:14px;margin-bottom:26px}.creating-magrin-bottom[_ngcontent-%COMP%]{margin-bottom:16px}.creating-input[_ngcontent-%COMP%]{height:45px;border-radius:5px;border:1px solid #e6e9ee;background-color:#fcfcfc;width:100%;outline:0;padding:12px}input[_ngcontent-%COMP%]{font-weight:500}input[_ngcontent-%COMP%]::-webkit-input-placeholder{font-weight:400}input[_ngcontent-%COMP%]::-moz-placeholder{font-weight:400}input[_ngcontent-%COMP%]::-ms-input-placeholder{font-weight:400}input[_ngcontent-%COMP%]::placeholder{font-weight:400}@media only screen and (max-width:575px){.creating-container[_ngcontent-%COMP%]{width:100%}}"]],data:{}});function En(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,4,"select-option",[],null,null,null,y.b,y.a)),e.qb(1,114688,[[1,4]],0,_.a,[],{value:[0,"value"],name:[1,"name"]},null),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.Lb(3,0,[" "," "])),e.Fb(131072,r.i,[r.j,e.h])],(function(n,l){n(l,1,0,l.context.$implicit.value,e.vb(1,"",e.Mb(l,1,1,e.Db(l,2).transform(l.context.$implicit.display)),""))}),(function(n,l){n(l,3,0,e.Mb(l,3,0,e.Db(l,4).transform(l.context.$implicit.display)))}))}function Bn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,9,"input",[["class","creating-input creating-magrin-bottom"],["formControlName","detailRelationship"],["maxlength","50"],["type","text"]],[[8,"placeholder",0],[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(n,l,t){var i=!0;return"input"===l&&(i=!1!==e.Db(n,1)._handleInput(t.target.value)&&i),"blur"===l&&(i=!1!==e.Db(n,1).onTouched()&&i),"compositionstart"===l&&(i=!1!==e.Db(n,1)._compositionStart()&&i),"compositionend"===l&&(i=!1!==e.Db(n,1)._compositionEnd(t.target.value)&&i),"input"===l&&(i=!1!==e.Db(n,8).onInputChanged(t)&&i),i}),null,null)),e.qb(1,16384,null,0,k.d,[e.C,e.k,[2,k.a]],null,null),e.qb(2,540672,null,0,k.k,[],{maxlength:[0,"maxlength"]},null),e.Ib(1024,null,k.m,(function(n){return[n]}),[k.k]),e.Ib(1024,null,k.n,(function(n){return[n]}),[k.d]),e.qb(5,671744,null,0,k.h,[[3,k.c],[6,k.m],[8,null],[6,k.n],[2,k.z]],{name:[0,"name"]},null),e.Ib(2048,null,k.o,null,[k.h]),e.qb(7,16384,null,0,k.p,[[4,k.o]],null,null),e.qb(8,16384,null,0,w,[e.k,k.o],{appInputRelationship:[0,"appInputRelationship"]},null),e.Fb(131072,r.i,[r.j,e.h])],(function(n,l){n(l,2,0,"50"),n(l,5,0,"detailRelationship"),n(l,8,0,50)}),(function(n,l){n(l,0,0,e.vb(1,"",e.Mb(l,0,0,e.Db(l,9).transform("abroad.info-common.relationship")),""),e.Db(l,2).maxlength?e.Db(l,2).maxlength:null,e.Db(l,7).ngClassUntouched,e.Db(l,7).ngClassTouched,e.Db(l,7).ngClassPristine,e.Db(l,7).ngClassDirty,e.Db(l,7).ngClassValid,e.Db(l,7).ngClassInvalid,e.Db(l,7).ngClassPending)}))}function An(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,23,"div",[["class","creating-container"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],(function(n,l,t){var i=!0;return"submit"===l&&(i=!1!==e.Db(n,1).onSubmit(t)&&i),"reset"===l&&(i=!1!==e.Db(n,1).onReset()&&i),i}),null,null)),e.qb(1,540672,null,0,k.i,[[8,null],[8,null]],{form:[0,"form"]},null),e.Ib(2048,null,k.c,null,[k.i]),e.qb(3,16384,null,0,k.q,[[4,k.c]],null,null),(n()(),e.rb(4,0,null,null,2,"div",[["class","creating-header"]],null,null,null,null,null)),(n()(),e.Lb(5,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(7,0,null,null,2,"div",[["class","creating-info"]],null,null,null,null,null)),(n()(),e.Lb(8,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(10,0,null,null,9,"div",[["class","creating-magrin-bottom"]],null,null,null,null,null)),(n()(),e.rb(11,0,null,null,8,"select-container",[["formControlName","relationship"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[["document","click"]],(function(n,l,t){var i=!0;return"document:click"===l&&(i=!1!==e.Db(n,15).withoutClickComponent(t)&&i),i}),M.b,M.a)),e.qb(12,671744,null,0,k.h,[[3,k.c],[8,null],[8,null],[8,null],[2,k.z]],{name:[0,"name"]},null),e.Ib(2048,null,k.o,null,[k.h]),e.qb(14,16384,null,0,k.p,[[4,k.o]],null,null),e.qb(15,6012928,null,1,O.a,[[6,k.o],e.h,e.k],{placeholder:[0,"placeholder"]},null),e.Jb(603979776,1,{items:1}),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.gb(16777216,null,null,1,null,En)),e.qb(19,278528,null,0,s.m,[e.N,e.K,e.q],{ngForOf:[0,"ngForOf"]},null),(n()(),e.gb(16777216,null,null,1,null,Bn)),e.qb(21,16384,null,0,s.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.rb(22,0,null,null,1,"app-abroad-info-common",[],null,[[null,"nextClick"],[null,"backClick"]],(function(n,l,t){var e=!0,i=n.component;return"nextClick"===l&&(e=!1!==i.handleNextPage()&&e),"backClick"===l&&(e=!1!==i.handleBackPage()&&e),e}),Y,K)),e.qb(23,8503296,null,0,U,[r.j,E],{infoCommonFG:[0,"infoCommonFG"]},{nextClick:"nextClick",backClick:"backClick"})],(function(n,l){var t=l.component;n(l,1,0,t.abroadCreatingFormGroup),n(l,12,0,"relationship"),n(l,15,0,e.vb(1,"",e.Mb(l,15,0,e.Db(l,17).transform("abroad.info-common.relationship_placeholder")),"")),n(l,19,0,t.relationships),n(l,21,0,t.isShowInput()),n(l,23,0,t.abroadCreatingFormGroup)}),(function(n,l){n(l,0,0,e.Db(l,3).ngClassUntouched,e.Db(l,3).ngClassTouched,e.Db(l,3).ngClassPristine,e.Db(l,3).ngClassDirty,e.Db(l,3).ngClassValid,e.Db(l,3).ngClassInvalid,e.Db(l,3).ngClassPending),n(l,5,0,e.Mb(l,5,0,e.Db(l,6).transform("abroad.creating.header"))),n(l,8,0,e.Mb(l,8,0,e.Db(l,9).transform("abroad.creating.info"))),n(l,11,0,e.Db(l,14).ngClassUntouched,e.Db(l,14).ngClassTouched,e.Db(l,14).ngClassPristine,e.Db(l,14).ngClassDirty,e.Db(l,14).ngClassValid,e.Db(l,14).ngClassInvalid,e.Db(l,14).ngClassPending)}))}function qn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,5,"div",[["class","creating-container"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],(function(n,l,t){var i=!0;return"submit"===l&&(i=!1!==e.Db(n,1).onSubmit(t)&&i),"reset"===l&&(i=!1!==e.Db(n,1).onReset()&&i),i}),null,null)),e.qb(1,540672,null,0,k.i,[[8,null],[8,null]],{form:[0,"form"]},null),e.Ib(2048,null,k.c,null,[k.i]),e.qb(3,16384,null,0,k.q,[[4,k.c]],null,null),(n()(),e.rb(4,0,null,null,1,"app-document-type-select",[],null,[[null,"backClick"],[null,"nextClick"]],(function(n,l,t){var e=!0,i=n.component;return"backClick"===l&&(e=!1!==i.handleBackPage()&&e),"nextClick"===l&&(e=!1!==i.handleNextPage()&&e),e}),Q,J)),e.qb(5,114688,null,0,H,[],{documentType:[0,"documentType"]},{backClick:"backClick",nextClick:"nextClick"})],(function(n,l){var t=l.component;n(l,1,0,t.abroadCreatingFormGroup),n(l,5,0,t.documentType)}),(function(n,l){n(l,0,0,e.Db(l,3).ngClassUntouched,e.Db(l,3).ngClassTouched,e.Db(l,3).ngClassPristine,e.Db(l,3).ngClassDirty,e.Db(l,3).ngClassValid,e.Db(l,3).ngClassInvalid,e.Db(l,3).ngClassPending)}))}function Ln(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,5,"div",[["class","creating-container"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],(function(n,l,t){var i=!0;return"submit"===l&&(i=!1!==e.Db(n,1).onSubmit(t)&&i),"reset"===l&&(i=!1!==e.Db(n,1).onReset()&&i),i}),null,null)),e.qb(1,540672,null,0,k.i,[[8,null],[8,null]],{form:[0,"form"]},null),e.Ib(2048,null,k.c,null,[k.i]),e.qb(3,16384,null,0,k.q,[[4,k.c]],null,null),(n()(),e.rb(4,0,null,null,1,"app-payment-info",[],null,[[null,"backClick"],[null,"nextClick"]],(function(n,l,t){var e=!0,i=n.component;return"backClick"===l&&(e=!1!==i.handleBackPage()&&e),"nextClick"===l&&(e=!1!==i.handleNextPage()&&e),e}),on,en)),e.qb(5,8503296,null,0,tn,[E],{infoCommonFG:[0,"infoCommonFG"]},{backClick:"backClick",nextClick:"nextClick"})],(function(n,l){var t=l.component;n(l,1,0,t.abroadCreatingFormGroup),n(l,5,0,t.abroadCreatingFormGroup)}),(function(n,l){n(l,0,0,e.Db(l,3).ngClassUntouched,e.Db(l,3).ngClassTouched,e.Db(l,3).ngClassPristine,e.Db(l,3).ngClassDirty,e.Db(l,3).ngClassValid,e.Db(l,3).ngClassInvalid,e.Db(l,3).ngClassPending)}))}function jn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,5,"div",[["class","creating-container"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],(function(n,l,t){var i=!0;return"submit"===l&&(i=!1!==e.Db(n,1).onSubmit(t)&&i),"reset"===l&&(i=!1!==e.Db(n,1).onReset()&&i),i}),null,null)),e.qb(1,540672,null,0,k.i,[[8,null],[8,null]],{form:[0,"form"]},null),e.Ib(2048,null,k.c,null,[k.i]),e.qb(3,16384,null,0,k.q,[[4,k.c]],null,null),(n()(),e.rb(4,0,null,null,1,"app-living-info",[],null,[[null,"backClick"],[null,"nextClick"]],(function(n,l,t){var e=!0,i=n.component;return"backClick"===l&&(e=!1!==i.handleBackPage()&&e),"nextClick"===l&&(e=!1!==i.handleNextPage()&&e),e}),rn,un)),e.qb(5,114688,null,0,an,[],{infoCommonFG:[0,"infoCommonFG"]},{backClick:"backClick",nextClick:"nextClick"})],(function(n,l){var t=l.component;n(l,1,0,t.abroadCreatingFormGroup),n(l,5,0,t.abroadCreatingFormGroup)}),(function(n,l){n(l,0,0,e.Db(l,3).ngClassUntouched,e.Db(l,3).ngClassTouched,e.Db(l,3).ngClassPristine,e.Db(l,3).ngClassDirty,e.Db(l,3).ngClassValid,e.Db(l,3).ngClassInvalid,e.Db(l,3).ngClassPending)}))}function Rn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,5,"div",[["class","creating-container"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],(function(n,l,t){var i=!0;return"submit"===l&&(i=!1!==e.Db(n,1).onSubmit(t)&&i),"reset"===l&&(i=!1!==e.Db(n,1).onReset()&&i),i}),null,null)),e.qb(1,540672,null,0,k.i,[[8,null],[8,null]],{form:[0,"form"]},null),e.Ib(2048,null,k.c,null,[k.i]),e.qb(3,16384,null,0,k.q,[[4,k.c]],null,null),(n()(),e.rb(4,0,null,null,1,"app-document-prove-transaction",[["type","CREATE"]],null,[[null,"backClick"],[null,"nextClick"]],(function(n,l,t){var e=!0,i=n.component;return"backClick"===l&&(e=!1!==i.handleBackPage()&&e),"nextClick"===l&&(e=!1!==i.onSaveDocument()&&e),e}),xn,_n)),e.qb(5,638976,null,0,yn,[],{documentType:[0,"documentType"],infoCommonFG:[1,"infoCommonFG"],type:[2,"type"]},{nextClick:"nextClick",backClick:"backClick"})],(function(n,l){var t=l.component;n(l,1,0,t.abroadCreatingFormGroup),n(l,5,0,t.documentType,t.abroadCreatingFormGroup,"CREATE")}),(function(n,l){n(l,0,0,e.Db(l,3).ngClassUntouched,e.Db(l,3).ngClassTouched,e.Db(l,3).ngClassPristine,e.Db(l,3).ngClassDirty,e.Db(l,3).ngClassValid,e.Db(l,3).ngClassInvalid,e.Db(l,3).ngClassPending)}))}function Un(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,5,"div",[["class","creating-container"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],(function(n,l,t){var i=!0;return"submit"===l&&(i=!1!==e.Db(n,1).onSubmit(t)&&i),"reset"===l&&(i=!1!==e.Db(n,1).onReset()&&i),i}),null,null)),e.qb(1,540672,null,0,k.i,[[8,null],[8,null]],{form:[0,"form"]},null),e.Ib(2048,null,k.c,null,[k.i]),e.qb(3,16384,null,0,k.q,[[4,k.c]],null,null),(n()(),e.rb(4,0,null,null,1,"app-abroad-result",[["type","CREATE"]],null,[[null,"tryAgainClick"]],(function(n,l,t){var e=!0;return"tryAgainClick"===l&&(e=!1!==n.component.onClickTryAgain()&&e),e}),Nn,In)),e.qb(5,638976,null,0,On,[r.j,h.m,g.a],{type:[0,"type"],success:[1,"success"]},{tryAgainClick:"tryAgainClick"})],(function(n,l){var t=l.component;n(l,1,0,t.abroadCreatingFormGroup),n(l,5,0,"CREATE",t.success)}),(function(n,l){n(l,0,0,e.Db(l,3).ngClassUntouched,e.Db(l,3).ngClassTouched,e.Db(l,3).ngClassPristine,e.Db(l,3).ngClassDirty,e.Db(l,3).ngClassValid,e.Db(l,3).ngClassInvalid,e.Db(l,3).ngClassPending)}))}function Kn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,13,"div",[],null,null,null,null,null)),e.qb(1,16384,null,0,s.r,[],{ngSwitch:[0,"ngSwitch"]},null),(n()(),e.gb(16777216,null,null,1,null,An)),e.qb(3,278528,null,0,s.s,[e.N,e.K,s.r],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),e.gb(16777216,null,null,1,null,qn)),e.qb(5,278528,null,0,s.s,[e.N,e.K,s.r],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),e.gb(16777216,null,null,1,null,Ln)),e.qb(7,278528,null,0,s.s,[e.N,e.K,s.r],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),e.gb(16777216,null,null,1,null,jn)),e.qb(9,278528,null,0,s.s,[e.N,e.K,s.r],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),e.gb(16777216,null,null,1,null,Rn)),e.qb(11,278528,null,0,s.s,[e.N,e.K,s.r],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),e.gb(16777216,null,null,1,null,Un)),e.qb(13,278528,null,0,s.s,[e.N,e.K,s.r],{ngSwitchCase:[0,"ngSwitchCase"]},null)],(function(n,l){var t=l.component;n(l,1,0,t.currentStep),n(l,3,0,t.steps.infoCommon),n(l,5,0,t.steps.documentType),n(l,7,0,t.steps.paymentFee),n(l,9,0,t.steps.livingFee),n(l,11,0,t.steps.fileUpload),n(l,13,0,t.steps.result)}),null)}function zn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,1,"app-abroad-creating",[],null,null,null,Kn,Vn)),e.qb(1,114688,null,0,Sn,[k.e,mn.a,g.a,E,h.m],null,null)],(function(n,l){n(l,1,0)}),null)}var Yn=e.nb("app-abroad-creating",Sn,zn,{},{},[]);class Hn{constructor(n,l,t){this.commonService=n,this.translateService=l,this.abroadUtil=t,this.document={},this.documentDetail={sectionTuitionFee:{},sectionLivingExpenses:{}},this.backClick=new e.m,this.nextClick=new e.m,this.listFileKeys=[],this.mapFileIdAndText={paymentFeeFile:"abroad.upload.item_1",admissionFile:"abroad.upload.item_22",passportSenderFile:"abroad.upload.item_3",registrationBookFile:"abroad.upload.item_42",visaFile:"abroad.upload.item_5",passportFile:"abroad.upload.item_62"}}ngOnInit(){}ngOnChanges(n){n.documentDetail&&(n.documentDetail.currentValue.sectionTuitionFee.receiver&&(this.listFileKeys=["","paymentFeeFile","admissionFile","passportSenderFile","passportFile"]),n.documentDetail.currentValue.sectionLivingExpenses.receiver&&(this.listFileKeys=["","admissionFile","passportSenderFile","registrationBookFile","visaFile","passportFile"]),n.documentDetail.currentValue.sectionTuitionFee.receiver&&n.documentDetail.currentValue.sectionLivingExpenses.receiver&&(this.listFileKeys=["","paymentFeeFile","admissionFile","passportSenderFile","registrationBookFile","visaFile","passportFile"]))}onFileDownloadClick(n){this.commonService.downloadFileWithCredential({url:c.a.ABROAD_DOWNLOAD_FILE+"?id="+this.documentDetail[n].id}).subscribe(l=>{const t=this.documentDetail[n].fileName,e=new Blob([l],{type:this.abroadUtil.getTypeByFileName(t)});Object(sn.saveAs)(e,t)})}onBackClick(){this.backClick.emit()}onNextClick(){this.nextClick.emit()}getRelationship(n){switch(n){case"BoMe":return this.translateService.instant("abroad.info-common.relationship_1");case"BoMeNuoi":return this.translateService.instant("abroad.info-common.relationship_2");case"AnhChiEm":return this.translateService.instant("abroad.info-common.relationship_3");default:return n}}}var Jn=e.pb({encapsulation:0,styles:[[".abroad-profile-overview[_ngcontent-%COMP%]{display:flex;width:496px;flex-direction:column}.abroad-profile-overview[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;justify-content:center;text-align:center;font-size:20px;font-weight:700;margin-bottom:8px}.abroad-profile-overview[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{font-weight:500;font-size:14px;color:#ad8ad8;margin-top:24px}.abroad-profile-overview[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:16px}.abroad-profile-overview[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .left-item[_ngcontent-%COMP%]{max-width:45%}.abroad-profile-overview[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .right-item[_ngcontent-%COMP%]{text-align:right;word-wrap:break-word;width:50%}.abroad-profile-overview[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .right-item[_ngcontent-%COMP%] .value-text[_ngcontent-%COMP%]{width:50%;font-weight:500;font-size:16px}.abroad-profile-overview[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .download-item[_ngcontent-%COMP%]{color:#ff9800;cursor:pointer}.abroad-profile-overview[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .download-item[_ngcontent-%COMP%] .download-icon[_ngcontent-%COMP%]{width:12px;height:12px;margin-bottom:5px}.abroad-profile-overview[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{margin-top:24px}.abroad-profile-overview[_ngcontent-%COMP%] .action[_ngcontent-%COMP%] .btn-secondary[_ngcontent-%COMP%]{width:200px;height:48px;font-weight:500;margin-left:calc(50% - 212px)}.abroad-profile-overview[_ngcontent-%COMP%] .action[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]{width:200px;height:48px;font-weight:500;margin-left:24px}@media screen and (max-width:575px){.abroad-profile-overview[_ngcontent-%COMP%]{width:100%!important}.left-item-download[_ngcontent-%COMP%]{max-width:calc(100% - 90px)}.left-item-download[_ngcontent-%COMP%] .title-download[_ngcontent-%COMP%]{width:100%;word-wrap:break-word}.action[_ngcontent-%COMP%]{margin-top:24px;width:100%;display:flex;flex-direction:column-reverse}.action[_ngcontent-%COMP%] .btn-secondary[_ngcontent-%COMP%]{width:100%!important;height:48px;font-weight:500;margin-left:0!important;margin-top:16px}.action[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]{width:100%!important;height:48px;font-weight:500;margin-left:0!important}}"]],data:{}});function Xn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,69,"div",[["class","tuition-fee-wrap"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,3,"div",[["class","subtitle"]],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(3,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(5,0,null,null,7,"div",[["class","item"]],null,null,null,null,null)),(n()(),e.rb(6,0,null,null,3,"div",[["class","left-item"]],null,null,null,null,null)),(n()(),e.rb(7,0,null,null,2,"span",[["class","title-text"]],null,null,null,null,null)),(n()(),e.Lb(8,null,[" "," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(10,0,null,null,2,"div",[["class","right-item"]],null,null,null,null,null)),(n()(),e.rb(11,0,null,null,1,"span",[["class","value-text"]],null,null,null,null,null)),(n()(),e.Lb(12,null,[" "," "])),(n()(),e.rb(13,0,null,null,7,"div",[["class","item"]],null,null,null,null,null)),(n()(),e.rb(14,0,null,null,3,"div",[["class","left-item"]],null,null,null,null,null)),(n()(),e.rb(15,0,null,null,2,"span",[["class","title-text"]],null,null,null,null,null)),(n()(),e.Lb(16,null,[" "," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(18,0,null,null,2,"div",[["class","right-item"]],null,null,null,null,null)),(n()(),e.rb(19,0,null,null,1,"span",[["class","value-text"]],null,null,null,null,null)),(n()(),e.Lb(20,null,[" "," "])),(n()(),e.rb(21,0,null,null,7,"div",[["class","item"]],null,null,null,null,null)),(n()(),e.rb(22,0,null,null,3,"div",[["class","left-item"]],null,null,null,null,null)),(n()(),e.rb(23,0,null,null,2,"span",[["class","title-text"]],null,null,null,null,null)),(n()(),e.Lb(24,null,[" "," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(26,0,null,null,2,"div",[["class","right-item"]],null,null,null,null,null)),(n()(),e.rb(27,0,null,null,1,"span",[["class","value-text"]],null,null,null,null,null)),(n()(),e.Lb(28,null,[" "," "])),(n()(),e.rb(29,0,null,null,8,"div",[["class","item"]],null,null,null,null,null)),(n()(),e.rb(30,0,null,null,3,"div",[["class","left-item"]],null,null,null,null,null)),(n()(),e.rb(31,0,null,null,2,"span",[["class","title-text"]],null,null,null,null,null)),(n()(),e.Lb(32,null,[" "," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(34,0,null,null,3,"div",[["class","right-item"]],null,null,null,null,null)),(n()(),e.rb(35,0,null,null,2,"span",[["class","value-text"]],null,null,null,null,null)),(n()(),e.Lb(36,null,[" "," "])),e.Hb(37,1),(n()(),e.rb(38,0,null,null,7,"div",[["class","item"]],null,null,null,null,null)),(n()(),e.rb(39,0,null,null,3,"div",[["class","left-item"]],null,null,null,null,null)),(n()(),e.rb(40,0,null,null,2,"span",[["class","title-text"]],null,null,null,null,null)),(n()(),e.Lb(41,null,[" "," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(43,0,null,null,2,"div",[["class","right-item"]],null,null,null,null,null)),(n()(),e.rb(44,0,null,null,1,"span",[["class","value-text"]],null,null,null,null,null)),(n()(),e.Lb(45,null,[" "," "])),(n()(),e.rb(46,0,null,null,7,"div",[["class","item"]],null,null,null,null,null)),(n()(),e.rb(47,0,null,null,3,"div",[["class","left-item"]],null,null,null,null,null)),(n()(),e.rb(48,0,null,null,2,"span",[["class","title-text"]],null,null,null,null,null)),(n()(),e.Lb(49,null,[" "," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(51,0,null,null,2,"div",[["class","right-item"]],null,null,null,null,null)),(n()(),e.rb(52,0,null,null,1,"span",[["class","value-text"]],null,null,null,null,null)),(n()(),e.Lb(53,null,[" "," "])),(n()(),e.rb(54,0,null,null,7,"div",[["class","item"]],null,null,null,null,null)),(n()(),e.rb(55,0,null,null,3,"div",[["class","left-item"]],null,null,null,null,null)),(n()(),e.rb(56,0,null,null,2,"span",[["class","title-text"]],null,null,null,null,null)),(n()(),e.Lb(57,null,[" "," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(59,0,null,null,2,"div",[["class","right-item"]],null,null,null,null,null)),(n()(),e.rb(60,0,null,null,1,"span",[["class","value-text"]],null,null,null,null,null)),(n()(),e.Lb(61,null,[" "," "])),(n()(),e.rb(62,0,null,null,7,"div",[["class","item"]],null,null,null,null,null)),(n()(),e.rb(63,0,null,null,3,"div",[["class","left-item"]],null,null,null,null,null)),(n()(),e.rb(64,0,null,null,2,"span",[["class","title-text"]],null,null,null,null,null)),(n()(),e.Lb(65,null,[" "," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(67,0,null,null,2,"div",[["class","right-item"]],null,null,null,null,null)),(n()(),e.rb(68,0,null,null,1,"span",[["class","value-text"]],null,null,null,null,null)),(n()(),e.Lb(69,null,[" "," "]))],null,(function(n,l){var t=l.component;n(l,3,0,e.Mb(l,3,0,e.Db(l,4).transform("abroad.common.tuition_transfer_fee_info"))),n(l,8,0,e.Mb(l,8,0,e.Db(l,9).transform("abroad.common.school_name"))),n(l,12,0,t.documentDetail.schoolName),n(l,16,0,e.Mb(l,16,0,e.Db(l,17).transform("abroad.common.school_end_date"))),n(l,20,0,t.documentDetail.endTerm),n(l,24,0,e.Mb(l,24,0,e.Db(l,25).transform("abroad.common.recipient_name"))),n(l,28,0,t.documentDetail.sectionTuitionFee.receiver),n(l,32,0,e.Mb(l,32,0,e.Db(l,33).transform("abroad.common.recipient_account_number")));var i=e.Mb(l,36,0,n(l,37,0,e.Db(l.parent,0),t.documentDetail.sectionTuitionFee.creditorAccountNumber));n(l,36,0,i),n(l,41,0,e.Mb(l,41,0,e.Db(l,42).transform("abroad.common.recipient_bank_name"))),n(l,45,0,t.documentDetail.sectionTuitionFee.receivingBank),n(l,49,0,e.Mb(l,49,0,e.Db(l,50).transform("abroad.common.recipient_bank_code"))),n(l,53,0,t.documentDetail.sectionTuitionFee.receivingBankAddress),n(l,57,0,e.Mb(l,57,0,e.Db(l,58).transform("abroad.common.intermediary_bank"))),n(l,61,0,t.documentDetail.sectionTuitionFee.intermediaryBank),n(l,65,0,e.Mb(l,65,0,e.Db(l,66).transform("abroad.common.intermediary_bank_code"))),n(l,69,0,t.documentDetail.sectionTuitionFee.intermediaryBankAddress)}))}function $n(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,53,"div",[["class","living-fee-wrap"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,3,"div",[["class","subtitle"]],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(3,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(5,0,null,null,7,"div",[["class","item"]],null,null,null,null,null)),(n()(),e.rb(6,0,null,null,3,"div",[["class","left-item"]],null,null,null,null,null)),(n()(),e.rb(7,0,null,null,2,"span",[["class","title-text"]],null,null,null,null,null)),(n()(),e.Lb(8,null,[" "," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(10,0,null,null,2,"div",[["class","right-item"]],null,null,null,null,null)),(n()(),e.rb(11,0,null,null,1,"span",[["class","value-text"]],null,null,null,null,null)),(n()(),e.Lb(12,null,[" "," "])),(n()(),e.rb(13,0,null,null,8,"div",[["class","item"]],null,null,null,null,null)),(n()(),e.rb(14,0,null,null,3,"div",[["class","left-item"]],null,null,null,null,null)),(n()(),e.rb(15,0,null,null,2,"span",[["class","title-text"]],null,null,null,null,null)),(n()(),e.Lb(16,null,[" "," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(18,0,null,null,3,"div",[["class","right-item"]],null,null,null,null,null)),(n()(),e.rb(19,0,null,null,2,"span",[["class","value-text"]],null,null,null,null,null)),(n()(),e.Lb(20,null,[" "," "])),e.Hb(21,1),(n()(),e.rb(22,0,null,null,7,"div",[["class","item"]],null,null,null,null,null)),(n()(),e.rb(23,0,null,null,3,"div",[["class","left-item"]],null,null,null,null,null)),(n()(),e.rb(24,0,null,null,2,"span",[["class","title-text"]],null,null,null,null,null)),(n()(),e.Lb(25,null,[" "," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(27,0,null,null,2,"div",[["class","right-item"]],null,null,null,null,null)),(n()(),e.rb(28,0,null,null,1,"span",[["class","value-text"]],null,null,null,null,null)),(n()(),e.Lb(29,null,[" "," "])),(n()(),e.rb(30,0,null,null,7,"div",[["class","item"]],null,null,null,null,null)),(n()(),e.rb(31,0,null,null,3,"div",[["class","left-item"]],null,null,null,null,null)),(n()(),e.rb(32,0,null,null,2,"span",[["class","title-text"]],null,null,null,null,null)),(n()(),e.Lb(33,null,[" "," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(35,0,null,null,2,"div",[["class","right-item"]],null,null,null,null,null)),(n()(),e.rb(36,0,null,null,1,"span",[["class","value-text"]],null,null,null,null,null)),(n()(),e.Lb(37,null,[" "," "])),(n()(),e.rb(38,0,null,null,7,"div",[["class","item"]],null,null,null,null,null)),(n()(),e.rb(39,0,null,null,3,"div",[["class","left-item"]],null,null,null,null,null)),(n()(),e.rb(40,0,null,null,2,"span",[["class","title-text"]],null,null,null,null,null)),(n()(),e.Lb(41,null,[" "," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(43,0,null,null,2,"div",[["class","right-item"]],null,null,null,null,null)),(n()(),e.rb(44,0,null,null,1,"span",[["class","value-text"]],null,null,null,null,null)),(n()(),e.Lb(45,null,[" "," "])),(n()(),e.rb(46,0,null,null,7,"div",[["class","item"]],null,null,null,null,null)),(n()(),e.rb(47,0,null,null,3,"div",[["class","left-item"]],null,null,null,null,null)),(n()(),e.rb(48,0,null,null,2,"span",[["class","title-text"]],null,null,null,null,null)),(n()(),e.Lb(49,null,[" "," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(51,0,null,null,2,"div",[["class","right-item"]],null,null,null,null,null)),(n()(),e.rb(52,0,null,null,1,"span",[["class","value-text"]],null,null,null,null,null)),(n()(),e.Lb(53,null,[" "," "]))],null,(function(n,l){var t=l.component;n(l,3,0,e.Mb(l,3,0,e.Db(l,4).transform("abroad.common.living_fee_info"))),n(l,8,0,e.Mb(l,8,0,e.Db(l,9).transform("abroad.common.recipient_name"))),n(l,12,0,t.documentDetail.sectionLivingExpenses.receiver),n(l,16,0,e.Mb(l,16,0,e.Db(l,17).transform("abroad.common.recipient_account_number")));var i=e.Mb(l,20,0,n(l,21,0,e.Db(l.parent,0),t.documentDetail.sectionLivingExpenses.creditorAccountNumber));n(l,20,0,i),n(l,25,0,e.Mb(l,25,0,e.Db(l,26).transform("abroad.common.recipient_bank_name"))),n(l,29,0,t.documentDetail.sectionLivingExpenses.receivingBank),n(l,33,0,e.Mb(l,33,0,e.Db(l,34).transform("abroad.common.recipient_bank_code"))),n(l,37,0,t.documentDetail.sectionLivingExpenses.receivingBankAddress),n(l,41,0,e.Mb(l,41,0,e.Db(l,42).transform("abroad.common.intermediary_bank"))),n(l,45,0,t.documentDetail.sectionLivingExpenses.intermediaryBank),n(l,49,0,e.Mb(l,49,0,e.Db(l,50).transform("abroad.common.intermediary_bank_code"))),n(l,53,0,t.documentDetail.sectionLivingExpenses.intermediaryBankAddress)}))}function Wn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,9,"div",[["class","item"]],null,null,null,null,null)),(n()(),e.rb(1,0,null,null,3,"div",[["class","left-item-download"]],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,2,"span",[["class","title-text title-download"]],null,null,null,null,null)),(n()(),e.Lb(3,null,[" ",""," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(5,0,null,null,4,"div",[["class","download-item"]],null,[[null,"click"]],(function(n,l,t){var e=!0;return"click"===l&&(e=!1!==n.component.onFileDownloadClick(n.parent.context.$implicit)&&e),e}),null,null)),(n()(),e.rb(6,0,null,null,0,"img",[["class","download-icon"],["src","assets/icons/Icons_DownLoad.svg"]],null,null,null,null,null)),(n()(),e.rb(7,0,null,null,2,"span",[["style","margin-left: 10px;"]],null,null,null,null,null)),(n()(),e.Lb(8,null,["",""])),e.Fb(131072,r.i,[r.j,e.h])],null,(function(n,l){var t=l.component;n(l,3,0,l.parent.context.index+". ",e.Mb(l,3,1,e.Db(l,4).transform(t.mapFileIdAndText[l.parent.context.$implicit]))),n(l,8,0,e.Mb(l,8,0,e.Db(l,9).transform("abroad.upload.download")))}))}function Zn(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,2,"div",[["style","width: 100%"]],null,null,null,null,null)),(n()(),e.gb(16777216,null,null,1,null,Wn)),e.qb(2,16384,null,0,s.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null)],(function(n,l){n(l,2,0,l.context.index>0)}),null)}function Qn(n){return e.Nb(0,[e.Fb(0,ln.a,[]),(n()(),e.rb(1,0,null,null,97,"div",[["class","abroad-profile-overview"]],null,null,null,null,null)),(n()(),e.rb(2,0,null,null,3,"div",[["class","title"]],null,null,null,null,null)),(n()(),e.rb(3,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(4,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(6,0,null,null,3,"div",[["class","subtitle"]],null,null,null,null,null)),(n()(),e.rb(7,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(8,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(10,0,null,null,7,"div",[["class","item"]],null,null,null,null,null)),(n()(),e.rb(11,0,null,null,3,"div",[["class","left-item"]],null,null,null,null,null)),(n()(),e.rb(12,0,null,null,2,"span",[["class","title-text"]],null,null,null,null,null)),(n()(),e.Lb(13,null,[" "," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(15,0,null,null,2,"div",[["class","right-item"]],null,null,null,null,null)),(n()(),e.rb(16,0,null,null,1,"span",[["class","value-text"]],null,null,null,null,null)),(n()(),e.Lb(17,null,[" "," "])),(n()(),e.rb(18,0,null,null,7,"div",[["class","item"]],null,null,null,null,null)),(n()(),e.rb(19,0,null,null,3,"div",[["class","left-item"]],null,null,null,null,null)),(n()(),e.rb(20,0,null,null,2,"span",[["class","title-text"]],null,null,null,null,null)),(n()(),e.Lb(21,null,[" "," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(23,0,null,null,2,"div",[["class","right-item"]],null,null,null,null,null)),(n()(),e.rb(24,0,null,null,1,"span",[["class","value-text"]],null,null,null,null,null)),(n()(),e.Lb(25,null,[" "," "])),(n()(),e.rb(26,0,null,null,7,"div",[["class","item"]],null,null,null,null,null)),(n()(),e.rb(27,0,null,null,3,"div",[["class","left-item"]],null,null,null,null,null)),(n()(),e.rb(28,0,null,null,2,"span",[["class","title-text"]],null,null,null,null,null)),(n()(),e.Lb(29,null,[" "," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(31,0,null,null,2,"div",[["class","right-item"]],null,null,null,null,null)),(n()(),e.rb(32,0,null,null,1,"span",[["class","value-text"]],null,null,null,null,null)),(n()(),e.Lb(33,null,[" "," "])),(n()(),e.rb(34,0,null,null,7,"div",[["class","item"]],null,null,null,null,null)),(n()(),e.rb(35,0,null,null,3,"div",[["class","left-item"]],null,null,null,null,null)),(n()(),e.rb(36,0,null,null,2,"span",[["class","title-text"]],null,null,null,null,null)),(n()(),e.Lb(37,null,[" "," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(39,0,null,null,2,"div",[["class","right-item"]],null,null,null,null,null)),(n()(),e.rb(40,0,null,null,1,"span",[["class","value-text"]],null,null,null,null,null)),(n()(),e.Lb(41,null,[" "," "])),(n()(),e.rb(42,0,null,null,7,"div",[["class","item"]],null,null,null,null,null)),(n()(),e.rb(43,0,null,null,3,"div",[["class","left-item"]],null,null,null,null,null)),(n()(),e.rb(44,0,null,null,2,"span",[["class","title-text"]],null,null,null,null,null)),(n()(),e.Lb(45,null,[" "," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(47,0,null,null,2,"div",[["class","right-item"]],null,null,null,null,null)),(n()(),e.rb(48,0,null,null,1,"span",[["class","value-text"]],null,null,null,null,null)),(n()(),e.Lb(49,null,[" "," "])),(n()(),e.rb(50,0,null,null,7,"div",[["class","item"]],null,null,null,null,null)),(n()(),e.rb(51,0,null,null,3,"div",[["class","left-item"]],null,null,null,null,null)),(n()(),e.rb(52,0,null,null,2,"span",[["class","title-text"]],null,null,null,null,null)),(n()(),e.Lb(53,null,[" "," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(55,0,null,null,2,"div",[["class","right-item"]],null,null,null,null,null)),(n()(),e.rb(56,0,null,null,1,"span",[["class","value-text"]],null,null,null,null,null)),(n()(),e.Lb(57,null,[" "," "])),(n()(),e.rb(58,0,null,null,7,"div",[["class","item"]],null,null,null,null,null)),(n()(),e.rb(59,0,null,null,3,"div",[["class","left-item"]],null,null,null,null,null)),(n()(),e.rb(60,0,null,null,2,"span",[["class","title-text"]],null,null,null,null,null)),(n()(),e.Lb(61,null,[" "," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(63,0,null,null,2,"div",[["class","right-item"]],null,null,null,null,null)),(n()(),e.rb(64,0,null,null,1,"span",[["class","value-text"]],null,null,null,null,null)),(n()(),e.Lb(65,null,[" "," "])),(n()(),e.rb(66,0,null,null,7,"div",[["class","item"]],null,null,null,null,null)),(n()(),e.rb(67,0,null,null,3,"div",[["class","left-item"]],null,null,null,null,null)),(n()(),e.rb(68,0,null,null,2,"span",[["class","title-text"]],null,null,null,null,null)),(n()(),e.Lb(69,null,[" "," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(71,0,null,null,2,"div",[["class","right-item"]],null,null,null,null,null)),(n()(),e.rb(72,0,null,null,1,"span",[["class","value-text"]],null,null,null,null,null)),(n()(),e.Lb(73,null,[" "," "])),(n()(),e.rb(74,0,null,null,7,"div",[["class","item"]],null,null,null,null,null)),(n()(),e.rb(75,0,null,null,3,"div",[["class","left-item"]],null,null,null,null,null)),(n()(),e.rb(76,0,null,null,2,"span",[["class","title-text"]],null,null,null,null,null)),(n()(),e.Lb(77,null,[" "," "])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(79,0,null,null,2,"div",[["class","right-item"]],null,null,null,null,null)),(n()(),e.rb(80,0,null,null,1,"span",[["class","value-text"]],null,null,null,null,null)),(n()(),e.Lb(81,null,[" "," "])),(n()(),e.gb(16777216,null,null,1,null,Xn)),e.qb(83,16384,null,0,s.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.gb(16777216,null,null,1,null,$n)),e.qb(85,16384,null,0,s.n,[e.N,e.K],{ngIf:[0,"ngIf"]},null),(n()(),e.rb(86,0,null,null,3,"div",[["class","subtitle"]],null,null,null,null,null)),(n()(),e.rb(87,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),e.Lb(88,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.gb(16777216,null,null,1,null,Zn)),e.qb(91,278528,null,0,s.m,[e.N,e.K,e.q],{ngForOf:[0,"ngForOf"]},null),(n()(),e.rb(92,0,null,null,6,"div",[["class","action"]],null,null,null,null,null)),(n()(),e.rb(93,0,null,null,2,"button",[["class","btn-secondary"]],null,[[null,"click"]],(function(n,l,t){var e=!0;return"click"===l&&(e=!1!==n.component.onBackClick()&&e),e}),null,null)),(n()(),e.Lb(94,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(96,0,null,null,2,"button",[["class","btn-primary"]],null,[[null,"click"]],(function(n,l,t){var e=!0;return"click"===l&&(e=!1!==n.component.onNextClick()&&e),e}),null,null)),(n()(),e.Lb(97,null,["",""])),e.Fb(131072,r.i,[r.j,e.h])],(function(n,l){var t=l.component;n(l,83,0,t.documentDetail.sectionTuitionFee.receiver),n(l,85,0,t.documentDetail.sectionLivingExpenses.receiver),n(l,91,0,t.listFileKeys)}),(function(n,l){var t=l.component;n(l,4,0,e.Mb(l,4,0,e.Db(l,5).transform("abroad.common.oversea_profile_info"))),n(l,8,0,e.Mb(l,8,0,e.Db(l,9).transform("abroad.common.oversea_student_info"))),n(l,13,0,e.Mb(l,13,0,e.Db(l,14).transform("abroad.common.personal_relationship"))),n(l,17,0,t.getRelationship(t.documentDetail.personalRelations)),n(l,21,0,e.Mb(l,21,0,e.Db(l,22).transform("abroad.common.oversea_student_name"))),n(l,25,0,t.documentDetail.fullName),n(l,29,0,e.Mb(l,29,0,e.Db(l,30).transform("abroad.common.passport"))),n(l,33,0,t.documentDetail.passportNumber),n(l,37,0,e.Mb(l,37,0,e.Db(l,38).transform("abroad.common.passport_start_date"))),n(l,41,0,t.documentDetail.issuedDate),n(l,45,0,e.Mb(l,45,0,e.Db(l,46).transform("abroad.common.passport_expire_date"))),n(l,49,0,t.documentDetail.expiredDate),n(l,53,0,e.Mb(l,53,0,e.Db(l,54).transform("abroad.common.passport_address_provide"))),n(l,57,0,t.documentDetail.issuedBy),n(l,61,0,e.Mb(l,61,0,e.Db(l,62).transform("abroad.common.visa_validity_from_date"))),n(l,65,0,t.documentDetail.visaEffectiveDate),n(l,69,0,e.Mb(l,69,0,e.Db(l,70).transform("abroad.common.visa_validity_to_date"))),n(l,73,0,t.documentDetail.visaExpiredDate),n(l,77,0,e.Mb(l,77,0,e.Db(l,78).transform("abroad.common.visa_address_provide"))),n(l,81,0,t.documentDetail.visaIssuedBy),n(l,88,0,e.Mb(l,88,0,e.Db(l,89).transform("abroad.common.uploaded_profile"))),n(l,94,0,e.Mb(l,94,0,e.Db(l,95).transform("general.btn_back"))),n(l,97,0,e.Mb(l,97,0,e.Db(l,98).transform("general.btn_edit")))}))}class nl{constructor(n,l,t,e,i,o,a){this.formBuilder=n,this.langService=l,this.commonService=t,this.translateService=e,this.abroadUtil=i,this.route=o,this.router=a,this.document={},this.documentDetail={sectionTuitionFee:{},sectionLivingExpenses:{}},this.editingDocumentId="",this.success=!0,this.currentStep=m.b.overview,this.steps=m.b,this.documentType={PAYMENT_FEE:!1,LIVING_FEE:!1},this.accountNumberPipe=new ln.a,this.definedValue="Khac",this.relationships=m.w}ngOnInit(){this.editingDocumentId=history.state.id,this.getDocument(),this.abroadCreatingFormGroup=this.formBuilder.group({id:new k.f("",k.w.required),relationship:new k.f("",k.w.required),detailRelationship:new k.f(""),name:new k.f("",k.w.required),passport:new k.f("",k.w.required),passportDate:new k.f("",k.w.required),expiredPassportDate:new k.f("",k.w.required),placePassportIssuance:new k.f("",k.w.required),visaDate:new k.f("",k.w.required),expiredVisaDate:new k.f("",k.w.required),placeVisaIssuance:new k.f("",k.w.required),isPassportDateValid:new k.f(!0),isExpiredPassportDateValid:new k.f(!0),isVisaDateValid:new k.f(!0),isExpiredVisaDateValid:new k.f(!0),paySchoolName:new k.f("",k.w.required),payEndTerm:new k.f("",k.w.required),isPayEndTermValid:new k.f(!1),payReceiver:new k.f("",k.w.required),payCreditorAccountNumber:new k.f("",k.w.required),payReceivingBank:new k.f("",k.w.required),payReceivingBankAddress:new k.f("",k.w.required),payIntermediaryBank:new k.f("",k.w.required),payIntermediaryBankAddress:new k.f("",k.w.required),livingReceiver:new k.f("",k.w.required),livingCreditorAccountNumber:new k.f("",k.w.required),livingReceivingBank:new k.f("",k.w.required),livingReceivingBankAddress:new k.f("",k.w.required),livingIntermediaryBank:new k.f("",k.w.required),livingIntermediaryBankAddress:new k.f("",k.w.required),paymentFeeFile:new k.f(""),paymentFeeFileName:new k.f(""),admissionFile:new k.f(""),admissionFileName:new k.f(""),passportSenderFile:new k.f(""),passportSenderFileName:new k.f(""),registrationBookFile:new k.f(""),registrationBookFileName:new k.f(""),passportFile:new k.f(""),passportFileName:new k.f(""),visaFile:new k.f(""),visaFileName:new k.f("")}),this.commonService.setPageTitle("abroad.breadcrumb.edit"),this.commonService.showBreadcrumb(!0),this.subscribeFormGroup()}subscribeFormGroup(){this.abroadCreatingFormGroup.controls.relationship.valueChanges.pipe(Object(B.a)()).subscribe(n=>{n!==this.definedValue&&this.abroadCreatingFormGroup.controls.detailRelationship.setValue("")})}handleNextPage(){switch(this.currentStep){case this.steps.overview:this.abroadUtil.isEditAbroadValid=!0,this.currentStep=this.steps.infoCommon,this.setFormValue();break;case this.steps.infoCommon:this.currentStep=this.steps.documentType;break;case this.steps.documentType:this.documentType.PAYMENT_FEE?(this.abroadUtil.isEditPayEndTermValid=!0,this.currentStep=this.steps.paymentFee):this.currentStep=this.steps.livingFee;break;case this.steps.paymentFee:this.currentStep=this.documentType.LIVING_FEE?this.steps.livingFee:this.steps.fileUpload;break;case this.steps.livingFee:this.currentStep=this.steps.fileUpload;break;case this.steps.fileUpload:this.currentStep=this.steps.result}window.scrollTo({top:0,behavior:"smooth"})}handleBackPage(){switch(this.currentStep){case this.steps.overview:this.router.navigate(["/main/abroad"]);break;case this.steps.infoCommon:this.setFormValue(),this.currentStep=this.steps.overview;break;case this.steps.documentType:this.currentStep=this.steps.infoCommon;break;case this.steps.paymentFee:this.currentStep=this.steps.documentType;break;case this.steps.livingFee:this.currentStep=this.documentType.PAYMENT_FEE?this.steps.paymentFee:this.steps.documentType;break;case this.steps.fileUpload:this.abroadUtil.clearData(this.abroadCreatingFormGroup),this.currentStep=this.documentType.LIVING_FEE?this.steps.livingFee:this.steps.paymentFee}window.scrollTo({top:0,behavior:"smooth"})}onSaveDocument(){this.abroadUtil.saveDocument(this.abroadCreatingFormGroup,this.documentType,n=>{this.success=!0,this.currentStep=this.steps.result})}isShowInput(){let n=!1;return this.abroadCreatingFormGroup.controls.relationship&&this.abroadCreatingFormGroup.controls.relationship.value===this.definedValue&&(n=!0),n}getDocument(){this.commonService.callApi({method:"get",url:c.a.ABROAD_GET_DOCUMENT_BY_ID+"?id="+this.editingDocumentId,success:n=>{this.documentDetail=n,this.setFormValue()}})}setFormValue(){this.documentType.PAYMENT_FEE=!!this.documentDetail.sectionTuitionFee.receiver,this.documentType.LIVING_FEE=!!this.documentDetail.sectionLivingExpenses.receiver,this.abroadCreatingFormGroup.controls.relationship.setValue(this.documentDetail.personalRelations),this.abroadCreatingFormGroup.controls.detailRelationship.setValue(this.documentDetail.personalRelations),"BoMe"!==this.documentDetail.personalRelations&&"BoMeNuoi"!==this.documentDetail.personalRelations&&"AnhChiEm"!==this.documentDetail.personalRelations&&(this.abroadCreatingFormGroup.controls.relationship.setValue("Khac"),this.abroadCreatingFormGroup.controls.detailRelationship.setValue(this.documentDetail.personalRelations)),this.abroadCreatingFormGroup.controls.id.setValue(this.documentDetail.id),this.abroadCreatingFormGroup.controls.name.setValue(this.documentDetail.fullName),this.abroadCreatingFormGroup.controls.passport.setValue(this.documentDetail.passportNumber),this.abroadCreatingFormGroup.controls.passportDate.setValue(this.documentDetail.issuedDate),this.abroadCreatingFormGroup.controls.expiredPassportDate.setValue(this.documentDetail.expiredDate),this.abroadCreatingFormGroup.controls.placePassportIssuance.setValue(this.documentDetail.issuedBy),this.abroadCreatingFormGroup.controls.visaDate.setValue(this.documentDetail.visaEffectiveDate),this.abroadCreatingFormGroup.controls.expiredVisaDate.setValue(this.documentDetail.visaExpiredDate),this.abroadCreatingFormGroup.controls.placeVisaIssuance.setValue(this.documentDetail.visaIssuedBy),this.abroadCreatingFormGroup.controls.isPassportDateValid.setValue(!0),this.abroadCreatingFormGroup.controls.isExpiredPassportDateValid.setValue(!0),this.abroadCreatingFormGroup.controls.isVisaDateValid.setValue(!0),this.abroadCreatingFormGroup.controls.isExpiredVisaDateValid.setValue(!0),this.abroadCreatingFormGroup.controls.paySchoolName.setValue(this.documentDetail.schoolName),this.abroadCreatingFormGroup.controls.payEndTerm.setValue(this.documentDetail.endTerm),this.abroadCreatingFormGroup.controls.isPayEndTermValid.setValue(!0),this.abroadCreatingFormGroup.controls.payReceiver.setValue(this.documentDetail.sectionTuitionFee.receiver),this.abroadCreatingFormGroup.controls.payCreditorAccountNumber.setValue(this.accountNumberPipe.transform(this.documentDetail.sectionTuitionFee.creditorAccountNumber)),this.abroadCreatingFormGroup.controls.payReceivingBank.setValue(this.documentDetail.sectionTuitionFee.receivingBank),this.abroadCreatingFormGroup.controls.payReceivingBankAddress.setValue(this.documentDetail.sectionTuitionFee.receivingBankAddress),this.abroadCreatingFormGroup.controls.payIntermediaryBank.setValue(this.documentDetail.sectionTuitionFee.intermediaryBank),this.abroadCreatingFormGroup.controls.payIntermediaryBankAddress.setValue(this.documentDetail.sectionTuitionFee.intermediaryBankAddress),this.abroadCreatingFormGroup.controls.livingReceiver.setValue(this.documentDetail.sectionLivingExpenses.receiver),this.abroadCreatingFormGroup.controls.livingCreditorAccountNumber.setValue(this.accountNumberPipe.transform(this.documentDetail.sectionLivingExpenses.creditorAccountNumber)),this.abroadCreatingFormGroup.controls.livingReceivingBank.setValue(this.documentDetail.sectionLivingExpenses.receivingBank),this.abroadCreatingFormGroup.controls.livingReceivingBankAddress.setValue(this.documentDetail.sectionLivingExpenses.receivingBankAddress),this.abroadCreatingFormGroup.controls.livingIntermediaryBank.setValue(this.documentDetail.sectionLivingExpenses.intermediaryBank),this.abroadCreatingFormGroup.controls.livingIntermediaryBankAddress.setValue(this.documentDetail.sectionLivingExpenses.intermediaryBankAddress),this.documentType.LIVING_FEE||(this.abroadCreatingFormGroup.controls.livingReceiver.setValue(""),this.abroadCreatingFormGroup.controls.livingCreditorAccountNumber.setValue(""),this.abroadCreatingFormGroup.controls.livingReceivingBank.setValue(""),this.abroadCreatingFormGroup.controls.livingReceivingBankAddress.setValue(""),this.abroadCreatingFormGroup.controls.livingIntermediaryBank.setValue(""),this.abroadCreatingFormGroup.controls.livingIntermediaryBankAddress.setValue("")),this.documentType.PAYMENT_FEE||(this.abroadCreatingFormGroup.controls.paySchoolName.setValue(""),this.abroadCreatingFormGroup.controls.payEndTerm.setValue(""),this.abroadCreatingFormGroup.controls.payReceiver.setValue(""),this.abroadCreatingFormGroup.controls.payCreditorAccountNumber.setValue(""),this.abroadCreatingFormGroup.controls.payReceivingBank.setValue(""),this.abroadCreatingFormGroup.controls.payReceivingBankAddress.setValue(""),this.abroadCreatingFormGroup.controls.payIntermediaryBank.setValue(""),this.abroadCreatingFormGroup.controls.payIntermediaryBankAddress.setValue("")),this.documentDetail.paymentFeeFile&&(this.abroadCreatingFormGroup.controls.paymentFeeFile.setValue(this.documentDetail.paymentFeeFile.id),this.abroadCreatingFormGroup.controls.paymentFeeFileName.setValue(this.documentDetail.paymentFeeFile.fileName)),this.documentDetail.admissionFile&&(this.abroadCreatingFormGroup.controls.admissionFile.setValue(this.documentDetail.admissionFile.id),this.abroadCreatingFormGroup.controls.admissionFileName.setValue(this.documentDetail.admissionFile.fileName)),this.documentDetail.passportSenderFile&&(this.abroadCreatingFormGroup.controls.passportSenderFile.setValue(this.documentDetail.passportSenderFile.id),this.abroadCreatingFormGroup.controls.passportSenderFileName.setValue(this.documentDetail.passportSenderFile.fileName)),this.documentDetail.registrationBookFile&&(this.abroadCreatingFormGroup.controls.registrationBookFile.setValue(this.documentDetail.registrationBookFile.id),this.abroadCreatingFormGroup.controls.registrationBookFileName.setValue(this.documentDetail.registrationBookFile.fileName)),this.documentDetail.passportFile&&(this.abroadCreatingFormGroup.controls.passportFile.setValue(this.documentDetail.passportFile.id),this.abroadCreatingFormGroup.controls.passportFileName.setValue(this.documentDetail.passportFile.fileName)),this.documentDetail.visaFile&&(this.abroadCreatingFormGroup.controls.visaFile.setValue(this.documentDetail.visaFile.id),this.abroadCreatingFormGroup.controls.visaFileName.setValue(this.documentDetail.visaFile.fileName))}onClickTryAgain(){this.currentStep=this.steps.overview}}var ll=e.pb({encapsulation:0,styles:[[".creating-container[_ngcontent-%COMP%]{width:496px;margin:auto}.creating-header[_ngcontent-%COMP%]{font-weight:700;color:#42236a;font-size:20px;text-align:center;margin-bottom:8px}.creating-info[_ngcontent-%COMP%]{color:#42236a;text-align:center;font-size:14px;margin-bottom:26px}.creating-magrin-bottom[_ngcontent-%COMP%]{margin-bottom:16px}.creating-input[_ngcontent-%COMP%]{height:45px;border-radius:5px;border:1px solid #e6e9ee;background-color:#fcfcfc;width:100%;outline:0;padding:12px}@media only screen and (max-width:575px){.creating-container[_ngcontent-%COMP%]{width:100%}}"]],data:{}});function tl(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,11,"div",[["class","creating-container"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],(function(n,l,t){var i=!0;return"submit"===l&&(i=!1!==e.Db(n,1).onSubmit(t)&&i),"reset"===l&&(i=!1!==e.Db(n,1).onReset()&&i),i}),null,null)),e.qb(1,540672,null,0,k.i,[[8,null],[8,null]],{form:[0,"form"]},null),e.Ib(2048,null,k.c,null,[k.i]),e.qb(3,16384,null,0,k.q,[[4,k.c]],null,null),(n()(),e.rb(4,0,null,null,2,"div",[["class","creating-header"]],null,null,null,null,null)),(n()(),e.Lb(5,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(7,0,null,null,2,"div",[["class","creating-info"]],null,null,null,null,null)),(n()(),e.Lb(8,null,["",""])),e.Fb(131072,r.i,[r.j,e.h]),(n()(),e.rb(10,0,null,null,1,"app-abroad-info-common",[],null,[[null,"nextClick"],[null,"backClick"]],(function(n,l,t){var e=!0,i=n.component;return"nextClick"===l&&(e=!1!==i.handleNextPage()&&e),"backClick"===l&&(e=!1!==i.handleBackPage()&&e),e}),Y,K)),e.qb(11,8503296,null,0,U,[r.j,E],{infoCommonFG:[0,"infoCommonFG"]},{nextClick:"nextClick",backClick:"backClick"})],(function(n,l){var t=l.component;n(l,1,0,t.abroadCreatingFormGroup),n(l,11,0,t.abroadCreatingFormGroup)}),(function(n,l){n(l,0,0,e.Db(l,3).ngClassUntouched,e.Db(l,3).ngClassTouched,e.Db(l,3).ngClassPristine,e.Db(l,3).ngClassDirty,e.Db(l,3).ngClassValid,e.Db(l,3).ngClassInvalid,e.Db(l,3).ngClassPending),n(l,5,0,e.Mb(l,5,0,e.Db(l,6).transform("abroad.creating.header"))),n(l,8,0,e.Mb(l,8,0,e.Db(l,9).transform("abroad.creating.info")))}))}function el(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,5,"div",[["class","creating-container"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],(function(n,l,t){var i=!0;return"submit"===l&&(i=!1!==e.Db(n,1).onSubmit(t)&&i),"reset"===l&&(i=!1!==e.Db(n,1).onReset()&&i),i}),null,null)),e.qb(1,540672,null,0,k.i,[[8,null],[8,null]],{form:[0,"form"]},null),e.Ib(2048,null,k.c,null,[k.i]),e.qb(3,16384,null,0,k.q,[[4,k.c]],null,null),(n()(),e.rb(4,0,null,null,1,"app-abroad-profile-overview",[],null,[[null,"backClick"],[null,"nextClick"]],(function(n,l,t){var e=!0,i=n.component;return"backClick"===l&&(e=!1!==i.handleBackPage()&&e),"nextClick"===l&&(e=!1!==i.handleNextPage()&&e),e}),Qn,Jn)),e.qb(5,638976,null,0,Hn,[g.a,r.j,E],{document:[0,"document"],documentDetail:[1,"documentDetail"]},{backClick:"backClick",nextClick:"nextClick"})],(function(n,l){var t=l.component;n(l,1,0,t.abroadCreatingFormGroup),n(l,5,0,t.document,t.documentDetail)}),(function(n,l){n(l,0,0,e.Db(l,3).ngClassUntouched,e.Db(l,3).ngClassTouched,e.Db(l,3).ngClassPristine,e.Db(l,3).ngClassDirty,e.Db(l,3).ngClassValid,e.Db(l,3).ngClassInvalid,e.Db(l,3).ngClassPending)}))}function il(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,5,"div",[["class","creating-container"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],(function(n,l,t){var i=!0;return"submit"===l&&(i=!1!==e.Db(n,1).onSubmit(t)&&i),"reset"===l&&(i=!1!==e.Db(n,1).onReset()&&i),i}),null,null)),e.qb(1,540672,null,0,k.i,[[8,null],[8,null]],{form:[0,"form"]},null),e.Ib(2048,null,k.c,null,[k.i]),e.qb(3,16384,null,0,k.q,[[4,k.c]],null,null),(n()(),e.rb(4,0,null,null,1,"app-payment-info",[],null,[[null,"backClick"],[null,"nextClick"]],(function(n,l,t){var e=!0,i=n.component;return"backClick"===l&&(e=!1!==i.handleBackPage()&&e),"nextClick"===l&&(e=!1!==i.handleNextPage()&&e),e}),on,en)),e.qb(5,8503296,null,0,tn,[E],{infoCommonFG:[0,"infoCommonFG"]},{backClick:"backClick",nextClick:"nextClick"})],(function(n,l){var t=l.component;n(l,1,0,t.abroadCreatingFormGroup),n(l,5,0,t.abroadCreatingFormGroup)}),(function(n,l){n(l,0,0,e.Db(l,3).ngClassUntouched,e.Db(l,3).ngClassTouched,e.Db(l,3).ngClassPristine,e.Db(l,3).ngClassDirty,e.Db(l,3).ngClassValid,e.Db(l,3).ngClassInvalid,e.Db(l,3).ngClassPending)}))}function ol(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,5,"div",[["class","creating-container"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],(function(n,l,t){var i=!0;return"submit"===l&&(i=!1!==e.Db(n,1).onSubmit(t)&&i),"reset"===l&&(i=!1!==e.Db(n,1).onReset()&&i),i}),null,null)),e.qb(1,540672,null,0,k.i,[[8,null],[8,null]],{form:[0,"form"]},null),e.Ib(2048,null,k.c,null,[k.i]),e.qb(3,16384,null,0,k.q,[[4,k.c]],null,null),(n()(),e.rb(4,0,null,null,1,"app-document-type-select",[],null,[[null,"backClick"],[null,"nextClick"]],(function(n,l,t){var e=!0,i=n.component;return"backClick"===l&&(e=!1!==i.handleBackPage()&&e),"nextClick"===l&&(e=!1!==i.handleNextPage()&&e),e}),Q,J)),e.qb(5,114688,null,0,H,[],{documentType:[0,"documentType"]},{backClick:"backClick",nextClick:"nextClick"})],(function(n,l){var t=l.component;n(l,1,0,t.abroadCreatingFormGroup),n(l,5,0,t.documentType)}),(function(n,l){n(l,0,0,e.Db(l,3).ngClassUntouched,e.Db(l,3).ngClassTouched,e.Db(l,3).ngClassPristine,e.Db(l,3).ngClassDirty,e.Db(l,3).ngClassValid,e.Db(l,3).ngClassInvalid,e.Db(l,3).ngClassPending)}))}function al(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,5,"div",[["class","creating-container"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],(function(n,l,t){var i=!0;return"submit"===l&&(i=!1!==e.Db(n,1).onSubmit(t)&&i),"reset"===l&&(i=!1!==e.Db(n,1).onReset()&&i),i}),null,null)),e.qb(1,540672,null,0,k.i,[[8,null],[8,null]],{form:[0,"form"]},null),e.Ib(2048,null,k.c,null,[k.i]),e.qb(3,16384,null,0,k.q,[[4,k.c]],null,null),(n()(),e.rb(4,0,null,null,1,"app-living-info",[],null,[[null,"backClick"],[null,"nextClick"]],(function(n,l,t){var e=!0,i=n.component;return"backClick"===l&&(e=!1!==i.handleBackPage()&&e),"nextClick"===l&&(e=!1!==i.handleNextPage()&&e),e}),rn,un)),e.qb(5,114688,null,0,an,[],{infoCommonFG:[0,"infoCommonFG"]},{backClick:"backClick",nextClick:"nextClick"})],(function(n,l){var t=l.component;n(l,1,0,t.abroadCreatingFormGroup),n(l,5,0,t.abroadCreatingFormGroup)}),(function(n,l){n(l,0,0,e.Db(l,3).ngClassUntouched,e.Db(l,3).ngClassTouched,e.Db(l,3).ngClassPristine,e.Db(l,3).ngClassDirty,e.Db(l,3).ngClassValid,e.Db(l,3).ngClassInvalid,e.Db(l,3).ngClassPending)}))}function ul(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,5,"div",[["class","creating-container"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],(function(n,l,t){var i=!0;return"submit"===l&&(i=!1!==e.Db(n,1).onSubmit(t)&&i),"reset"===l&&(i=!1!==e.Db(n,1).onReset()&&i),i}),null,null)),e.qb(1,540672,null,0,k.i,[[8,null],[8,null]],{form:[0,"form"]},null),e.Ib(2048,null,k.c,null,[k.i]),e.qb(3,16384,null,0,k.q,[[4,k.c]],null,null),(n()(),e.rb(4,0,null,null,1,"app-document-prove-transaction",[["type","UPDATE"]],null,[[null,"backClick"],[null,"nextClick"]],(function(n,l,t){var e=!0,i=n.component;return"backClick"===l&&(e=!1!==i.handleBackPage()&&e),"nextClick"===l&&(e=!1!==i.onSaveDocument()&&e),e}),xn,_n)),e.qb(5,638976,null,0,yn,[],{documentType:[0,"documentType"],infoCommonFG:[1,"infoCommonFG"],type:[2,"type"]},{nextClick:"nextClick",backClick:"backClick"})],(function(n,l){var t=l.component;n(l,1,0,t.abroadCreatingFormGroup),n(l,5,0,t.documentType,t.abroadCreatingFormGroup,"UPDATE")}),(function(n,l){n(l,0,0,e.Db(l,3).ngClassUntouched,e.Db(l,3).ngClassTouched,e.Db(l,3).ngClassPristine,e.Db(l,3).ngClassDirty,e.Db(l,3).ngClassValid,e.Db(l,3).ngClassInvalid,e.Db(l,3).ngClassPending)}))}function rl(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,5,"div",[["class","creating-container"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],(function(n,l,t){var i=!0;return"submit"===l&&(i=!1!==e.Db(n,1).onSubmit(t)&&i),"reset"===l&&(i=!1!==e.Db(n,1).onReset()&&i),i}),null,null)),e.qb(1,540672,null,0,k.i,[[8,null],[8,null]],{form:[0,"form"]},null),e.Ib(2048,null,k.c,null,[k.i]),e.qb(3,16384,null,0,k.q,[[4,k.c]],null,null),(n()(),e.rb(4,0,null,null,1,"app-abroad-result",[["type","UPDATE"]],null,[[null,"tryAgainClick"]],(function(n,l,t){var e=!0;return"tryAgainClick"===l&&(e=!1!==n.component.onClickTryAgain()&&e),e}),Nn,In)),e.qb(5,638976,null,0,On,[r.j,h.m,g.a],{type:[0,"type"],success:[1,"success"]},{tryAgainClick:"tryAgainClick"})],(function(n,l){var t=l.component;n(l,1,0,t.abroadCreatingFormGroup),n(l,5,0,"UPDATE",t.success)}),(function(n,l){n(l,0,0,e.Db(l,3).ngClassUntouched,e.Db(l,3).ngClassTouched,e.Db(l,3).ngClassPristine,e.Db(l,3).ngClassDirty,e.Db(l,3).ngClassValid,e.Db(l,3).ngClassInvalid,e.Db(l,3).ngClassPending)}))}function sl(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,15,"div",[],null,null,null,null,null)),e.qb(1,16384,null,0,s.r,[],{ngSwitch:[0,"ngSwitch"]},null),(n()(),e.gb(16777216,null,null,1,null,tl)),e.qb(3,278528,null,0,s.s,[e.N,e.K,s.r],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),e.gb(16777216,null,null,1,null,el)),e.qb(5,278528,null,0,s.s,[e.N,e.K,s.r],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),e.gb(16777216,null,null,1,null,il)),e.qb(7,278528,null,0,s.s,[e.N,e.K,s.r],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),e.gb(16777216,null,null,1,null,ol)),e.qb(9,278528,null,0,s.s,[e.N,e.K,s.r],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),e.gb(16777216,null,null,1,null,al)),e.qb(11,278528,null,0,s.s,[e.N,e.K,s.r],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),e.gb(16777216,null,null,1,null,ul)),e.qb(13,278528,null,0,s.s,[e.N,e.K,s.r],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),e.gb(16777216,null,null,1,null,rl)),e.qb(15,278528,null,0,s.s,[e.N,e.K,s.r],{ngSwitchCase:[0,"ngSwitchCase"]},null)],(function(n,l){var t=l.component;n(l,1,0,t.currentStep),n(l,3,0,t.steps.infoCommon),n(l,5,0,t.steps.overview),n(l,7,0,t.steps.paymentFee),n(l,9,0,t.steps.documentType),n(l,11,0,t.steps.livingFee),n(l,13,0,t.steps.fileUpload),n(l,15,0,t.steps.result)}),null)}function cl(n){return e.Nb(0,[(n()(),e.rb(0,0,null,null,1,"app-abroad-editing",[],null,null,null,sl,ll)),e.qb(1,114688,null,0,nl,[k.e,mn.a,g.a,r.j,E,h.a,h.m],null,null)],(function(n,l){n(l,1,0)}),null)}var dl=e.nb("app-abroad-editing",nl,cl,{},{},[]),pl=t("QQfA"),ml=t("IP0z"),bl=t("s6ns"),gl=t("POq0"),hl=t("821u"),fl=t("Xd0L"),Cl=t("/HVE"),vl=t("tE3g"),Dl=t("IheW"),Fl=t("cUpR"),yl=t("Fwaw"),_l=t("zMNK"),kl=t("hOhj"),Pl=t("5GAg"),xl=t("HsOI"),wl=t("oapL"),Ml=t("ZwOa"),Ol=t("LSHg"),Il=t("PCNd");class Gl{}t.d(l,"AbroadModuleNgFactory",(function(){return Tl}));var Tl=e.ob(i,[],(function(n){return e.Ab([e.Bb(512,e.j,e.Z,[[8,[o.a,a.b,a.a,u.a,F,Yn,dl]],[3,e.j],e.v]),e.Bb(4608,s.p,s.o,[e.s,[2,s.G]]),e.Bb(4608,k.y,k.y,[]),e.Bb(4608,pl.a,pl.a,[pl.g,pl.c,e.j,pl.f,pl.d,e.p,e.x,s.d,ml.b,[2,s.i]]),e.Bb(5120,pl.h,pl.i,[pl.a]),e.Bb(5120,bl.b,bl.c,[pl.a]),e.Bb(135680,bl.d,bl.d,[pl.a,e.p,[2,s.i],[2,bl.a],bl.b,[3,bl.d],pl.c]),e.Bb(4608,gl.b,gl.b,[]),e.Bb(4608,hl.i,hl.i,[]),e.Bb(5120,hl.a,hl.b,[pl.a]),e.Bb(4608,fl.b,fl.b,[]),e.Bb(4608,fl.a,fl.l,[[2,fl.e],Cl.a]),e.Bb(4608,k.e,k.e,[]),e.Bb(5120,r.f,vl.b,[Dl.c]),e.Bb(4608,r.c,r.e,[]),e.Bb(4608,r.h,r.d,[]),e.Bb(4608,r.b,r.a,[]),e.Bb(4608,r.j,r.j,[r.k,r.f,r.c,r.h,r.b,r.l,r.m]),e.Bb(4608,E,E,[g.a,r.j]),e.Bb(1073742336,s.b,s.b,[]),e.Bb(1073742336,k.x,k.x,[]),e.Bb(1073742336,k.j,k.j,[]),e.Bb(1073742336,ml.a,ml.a,[]),e.Bb(1073742336,fl.h,fl.h,[[2,fl.c],[2,Fl.f]]),e.Bb(1073742336,Cl.b,Cl.b,[]),e.Bb(1073742336,fl.k,fl.k,[]),e.Bb(1073742336,yl.c,yl.c,[]),e.Bb(1073742336,_l.f,_l.f,[]),e.Bb(1073742336,kl.b,kl.b,[]),e.Bb(1073742336,pl.e,pl.e,[]),e.Bb(1073742336,bl.g,bl.g,[]),e.Bb(1073742336,gl.c,gl.c,[]),e.Bb(1073742336,Pl.a,Pl.a,[]),e.Bb(1073742336,hl.j,hl.j,[]),e.Bb(1073742336,xl.b,xl.b,[]),e.Bb(1073742336,wl.b,wl.b,[]),e.Bb(1073742336,Ml.b,Ml.b,[]),e.Bb(1073742336,fl.m,fl.m,[]),e.Bb(1073742336,fl.i,fl.i,[]),e.Bb(1073742336,r.g,r.g,[]),e.Bb(1073742336,k.v,k.v,[]),e.Bb(1073742336,Ol.a,Ol.a,[]),e.Bb(1073742336,Il.a,Il.a,[]),e.Bb(1073742336,h.q,h.q,[[2,h.v],[2,h.m]]),e.Bb(1073742336,Gl,Gl,[]),e.Bb(1073742336,vl.a,vl.a,[]),e.Bb(1073742336,i,i,[]),e.Bb(256,fl.d,fl.f,[]),e.Bb(1024,h.k,(function(){return[[{path:"",pathMatch:"full",component:b},{path:"create",component:Sn},{path:"edit",component:nl}]]}),[]),e.Bb(256,r.m,void 0,[]),e.Bb(256,r.l,void 0,[])])}))}}]);