eservices.immigration.gov.lk
Open in
urlscan Pro
119.235.9.139
Public Scan
URL:
https://eservices.immigration.gov.lk/emb/eEmbarkation/main.e4a3f06006c928dd.js
Submission: On September 03 via manual from RU — Scanned from DE
Submission: On September 03 via manual from RU — Scanned from DE
Form analysis
0 forms found in the DOMText Content
"use strict";(self.webpackChunkE_Embarkation=self.webpackChunkE_Embarkation||[]).push([[179],{7191:(A,K,s)=>{var D=s(2313),e=s(7587),C=s(845),d=s(3075),N=s(7376),w=s(5315),y=s(1424),U=s(4036),E=s(9603),P=s(1208),pe=s(7010),ue=s(6360),J=s(5652),ce=s(7658),L=s(9114),me=s(3725),h=s(3223),_=s(9783),O=s(2687),m=s(9808),g=s(1062),V=s(8811);function ge(i,r){if(1&i&&(e.TgZ(0,"div",18),e.TgZ(1,"div",19),e._UZ(2,"fa-icon",20),e.TgZ(3,"h5",21),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.qZA(),e.qZA()),2&i){const t=e.oxw();e.xp6(2),e.Q6J("icon",t.infoIcon),e.xp6(2),e.hij(" ",e.lcZ(5,2,"msg.hdError")," ")}}function he(i,r){if(1&i&&(e.TgZ(0,"div",18),e.TgZ(1,"div",19),e._UZ(2,"fa-icon",22),e.TgZ(3,"h5",23),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.qZA(),e.qZA()),2&i){const t=e.oxw();e.xp6(2),e.Q6J("icon",t.successIcon),e.xp6(2),e.hij(" ",e.lcZ(5,2,"msg.hdSuccess")," ")}}function _e(i,r){if(1&i&&(e.TgZ(0,"div",18),e.TgZ(1,"div",19),e._UZ(2,"fa-icon",24),e.TgZ(3,"h5",25),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.qZA(),e.qZA()),2&i){const t=e.oxw();e.xp6(2),e.Q6J("icon",t.infoIcon),e.xp6(2),e.hij(" ",e.lcZ(5,2,"msg.hdInformation")," ")}}function fe(i,r){if(1&i&&(e.TgZ(0,"div",18),e.TgZ(1,"div",19),e._UZ(2,"fa-icon",26),e.TgZ(3,"h5",27),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.qZA(),e.qZA()),2&i){const t=e.oxw();e.xp6(2),e.Q6J("icon",t.faExclamationTriangle),e.xp6(2),e.hij(" ",e.lcZ(5,2,"msg.hdWarning")," ")}}function be(i,r){if(1&i&&(e.TgZ(0,"div",18),e.TgZ(1,"div",19),e._UZ(2,"fa-icon",28),e.TgZ(3,"h5",25),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.qZA(),e.qZA()),2&i){const t=e.oxw();e.xp6(2),e.Q6J("icon",t.faQuestionCircle),e.xp6(2),e.hij(" ",e.lcZ(5,2,"msg.hdConfirmation")," ")}}const I=function(){return{width:"30vw"}},q=function(){return{"960px":"60vw","640px":"80vw"}},Te=function(){return{width:"35vw"}};let b=(()=>{class i{constructor(t,n,a,o,l){this.messageService=t,this.confirmationService=n,this.router=a,this.location=o,this.translate=l,this.printProgress=!1,this.userName="",this.infoIcon=O.sqG,this.successIcon=O.f8k,this.faExclamationCircle=O.RLE,this.faExclamationTriangle=O.eHv,this.faQuestionCircle=O.Fuz}ngOnInit(){}addMessage(t){this.messageService.clear(),this.messageService.add(t)}onConfirm(){this.messageService.clear()}addToast(t){this.messageService.add(t)}onReject(){this.messageService.clear()}confirm(t){this.confirmationService.confirm(t)}close(){this.confirmationService.close()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(_.ez),e.Y36(_.YP),e.Y36(h.F0),e.Y36(m.Ye),e.Y36(g.sK))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-common-message"]],features:[e._Bn([_.ez])],decls:44,vars:37,consts:[["key","okDialog",1,"alert_header",3,"breakpoints"],["cd1",""],["pTemplate","header"],[1,"notification-footer"],[1,"formCard__row"],[1,"formCard__item"],["type","button","pButton","",1,"p-button-danger","w-full",3,"label","click"],["key","success",1,"alert_header",3,"breakpoints"],["cd2",""],["type","button","pButton","","label","Continue",1,"p-button-success","w-full",3,"click"],["key","info","styleClass","infoMsg",1,"alert_header",3,"breakpoints"],["cd3",""],["type","button","pButton","",1,"w-full",3,"label","click"],["key","warning","styleClass","warningMsg",1,"alert_header",3,"breakpoints"],["cd4",""],["type","button","pButton","",1,"p-button-warning","w-full",2,"color","white",3,"label","click"],["key","confirmation","styleClass","confirMsg",1,"alert_header",3,"breakpoints"],["cd5",""],[1,"formContainer"],[1,"align-items-center","justify-content-center"],[1,"py-3",2,"font-size","4rem !important","color","#BB342F",3,"icon"],[1,"erroricon",2,"font-size","1.5rem !important"],[1,"p-3",2,"font-size","4rem !important","color","#23AB5C",3,"icon"],[1,"successicon",2,"font-size","1.5rem !important"],[1,"px-4","py-3",2,"font-size","4rem !important","color","#0061BE",3,"icon"],[1,"infoicon",2,"font-size","1.5rem !important"],[1,"py-3",2,"font-size","4rem !important","color","#FFA630",3,"icon"],[1,"warnicon",2,"font-size","1.5rem !important"],[1,"py-3","px-6",2,"font-size","4rem !important","color","#0061BE",3,"icon"]],template:function(t,n){if(1&t){const a=e.EpF();e.TgZ(0,"p-confirmDialog",0,1),e.YNc(2,ge,6,4,"ng-template",2),e.TgZ(3,"p-footer"),e.TgZ(4,"div",3),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"button",6),e.NdJ("click",function(){return e.CHM(a),e.MAs(1).accept()}),e.ALo(8,"translate"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"p-confirmDialog",7,8),e.YNc(11,he,6,4,"ng-template",2),e.TgZ(12,"p-footer"),e.TgZ(13,"div",3),e.TgZ(14,"div",4),e.TgZ(15,"div",5),e.TgZ(16,"button",9),e.NdJ("click",function(){return e.CHM(a),e.MAs(10).accept()}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"p-confirmDialog",10,11),e.YNc(19,_e,6,4,"ng-template",2),e.TgZ(20,"p-footer"),e.TgZ(21,"div",3),e.TgZ(22,"div",4),e.TgZ(23,"div",5),e.TgZ(24,"button",12),e.NdJ("click",function(){return e.CHM(a),e.MAs(18).accept()}),e.ALo(25,"translate"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"p-confirmDialog",13,14),e.YNc(28,fe,6,4,"ng-template",2),e.TgZ(29,"p-footer"),e.TgZ(30,"div",3),e.TgZ(31,"div",4),e.TgZ(32,"div",5),e.TgZ(33,"button",15),e.NdJ("click",function(){return e.CHM(a),e.MAs(27).accept()}),e.ALo(34,"translate"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(35,"p-confirmDialog",16,17),e.YNc(37,be,6,4,"ng-template",2),e.TgZ(38,"p-footer"),e.TgZ(39,"div",3),e.TgZ(40,"div",4),e.TgZ(41,"div",5),e.TgZ(42,"button",12),e.NdJ("click",function(){return e.CHM(a),e.MAs(36).accept()}),e.ALo(43,"translate"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}2&t&&(e.Akn(e.DdM(27,I)),e.Q6J("breakpoints",e.DdM(28,q)),e.xp6(7),e.s9C("label",e.lcZ(8,19,"msg.btnOk")),e.xp6(2),e.Akn(e.DdM(29,I)),e.Q6J("breakpoints",e.DdM(30,q)),e.xp6(8),e.Akn(e.DdM(31,Te)),e.Q6J("breakpoints",e.DdM(32,q)),e.xp6(7),e.s9C("label",e.lcZ(25,21,"msg.btnOk")),e.xp6(2),e.Akn(e.DdM(33,I)),e.Q6J("breakpoints",e.DdM(34,q)),e.xp6(7),e.s9C("label",e.lcZ(34,23,"msg.btnOk")),e.xp6(2),e.Akn(e.DdM(35,I)),e.Q6J("breakpoints",e.DdM(36,q)),e.xp6(7),e.s9C("label",e.lcZ(43,25,"msg.btnOk")))},directives:[L.Q,_.jx,V.BN,_.$_,C.Hq],pipes:[g.X$],styles:["[_nghost-%COMP%] > .ui-toast[_ngcontent-%COMP%] .ui-toast-message[_ngcontent-%COMP%]{background-color:#fff!important;border:0 none;width:350px;height:auto;border-radius:5px;font-family:roboto}i[_ngcontent-%COMP%]{font-size:53px!important;margin-bottom:10px;margin-top:16px}.successicon[_ngcontent-%COMP%]{color:#23ab5c}.ui-button[_ngcontent-%COMP%]{width:80px!important;margin-bottom:6px}.successHeader[_ngcontent-%COMP%]{text-transform:uppercase;font-weight:700;color:#23ab5c}.infoicon[_ngcontent-%COMP%]{color:#0061be}.infoHeader[_ngcontent-%COMP%]{text-transform:uppercase;font-weight:700;color:#0061be}.erroricon[_ngcontent-%COMP%]{color:#bb342f}.errorHeader[_ngcontent-%COMP%]{text-transform:uppercase;font-weight:700;color:#bb342f}.warningHeader[_ngcontent-%COMP%]{text-transform:uppercase;font-weight:700;color:#ffa630}.warnicon[_ngcontent-%COMP%]{color:#ffa630}.conficon[_ngcontent-%COMP%]{color:#000}[_nghost-%COMP%] .p-confirm-dialog .p-dialog-content{padding-top:8px!important}"]}),i})();var Ze=s(1135);let G=(()=>{class i{constructor(){this.subject=new Ze.X(!1),this.requestCount=0}spinnerObservable(){return this.subject.asObservable()}addSpinner(){this.requestCount++,0!=this.requestCount&&this.subject.next(!0)}removeSpinner(){this.requestCount--,0==this.requestCount&&this.subject.next(!1)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var W=s(6198);function ve(i,r){1&i&&(e.TgZ(0,"div",1),e._UZ(1,"p-progressSpinner"),e.qZA())}let $=(()=>{class i{constructor(t,n,a){this.translate=t,this.route=n,this.spinnerService=a,this.title="Digital Arrival & Departure Portal",this.applicationEnabled=!1,this.langauges=[],this.serviceFeeProcess="",this.reloadRequired="N",this.showSpinner=!1,t.setDefaultLang("en")}ngOnInit(){this.spinnerSub=this.spinnerService.spinnerObservable().subscribe(t=>{setTimeout(()=>{this.showSpinner=t})}),this.langauges=[{code:"en",description:"English"},{code:"si",description:"Sinhala"},{code:"ta",description:"Tamil"}],this.selectedLang={code:"en",description:"English"},this.reloadRequired=this.route.snapshot.paramMap.get("reload"),"Y"===this.reloadRequired&&(this.applicationEnabled=!1,this.inquiryEnabled=!1)}ngOnDestroy(){this.spinnerSub&&this.spinnerSub.unsubscribe()}onLanguageSelect(t){t&&this.translate.setDefaultLang(t)}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(g.sK),e.Y36(h.gz),e.Y36(G))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-root"]],viewQuery:function(t,n){if(1&t&&e.Gf(b,5),2&t){let a;e.iGM(a=e.CRH())&&(n.confirmationService=a.first)}},features:[e._Bn([_.YP])],decls:2,vars:1,consts:[["class","fullscreen-progress-spinner",4,"ngIf"],[1,"fullscreen-progress-spinner"]],template:function(t,n){1&t&&(e.YNc(0,ve,2,0,"div",0),e._UZ(1,"router-outlet")),2&t&&e.Q6J("ngIf",n.showSpinner)},directives:[m.O5,W.G,h.lC],styles:["header[_ngcontent-%COMP%]{background-color:#fff}"]}),i})();var R=s(4128);class F{}var T=s(520);let x=(()=>{class i{constructor(){this.buildNo="",this.apiBaseUrl=""}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Q=(()=>{class i{constructor(t,n){this.httpClient=t,this.env=n}getAllCountries(){return this.httpClient.get(this.env.apiBaseUrl+"reference/getAllCountries")}getAllDistricts(){return this.httpClient.get(this.env.apiBaseUrl+"reference/getAllDistricts")}getAllNationalities(){return this.httpClient.get(this.env.apiBaseUrl+"reference/getAllNationalities")}getAirPorts(){return this.httpClient.get(this.env.apiBaseUrl+"reference/getAirPorts")}getSeaPorts(){return this.httpClient.get(this.env.apiBaseUrl+"reference/getSeaPorts")}getPurposeList(){return this.httpClient.get(this.env.apiBaseUrl+"reference/getPurposeList")}getAirLocalPorts(){return this.httpClient.get(this.env.apiBaseUrl+"reference/getAirLocalPorts")}getSeaLocalPorts(){return this.httpClient.get(this.env.apiBaseUrl+"reference/getSeaLocalPorts")}}return i.\u0275fac=function(t){return new(t||i)(e.LFG(T.eN),e.LFG(x))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),B=(()=>{class i{constructor(t,n){this.httpClient=t,this.env=n}validateOTP(t){return this.httpClient.post(this.env.apiBaseUrl+"webapp/validateOTP/",t)}generateOTP(t,n){return this.httpClient.get(this.env.apiBaseUrl+"webapp/generateOTP/"+t+"/"+n)}getEtaDetails(t){return this.httpClient.post(this.env.apiBaseUrl+"webapp/getEtaDetails/",t)}getPassportDetails(t){return this.httpClient.post(this.env.apiBaseUrl+"webapp/getPassportDetails/",t)}getVisaEtaDetails(t){return this.httpClient.post(this.env.apiBaseUrl+"webapp/getVisaEtaDetails/",t)}saveEmbarkation(t){return this.httpClient.post(this.env.apiBaseUrl+"webapp/saveEmbarkation/",t)}saveDisembarkation(t){return this.httpClient.post(this.env.apiBaseUrl+"webapp/saveDisembarkation/",t)}getPassportPhoto(t){return this.httpClient.post(this.env.apiBaseUrl+"webapp/getPassportPhoto/",t)}}return i.\u0275fac=function(t){return new(t||i)(e.LFG(T.eN),e.LFG(x))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var X=s(4119),ee=s(3407);function Ce(i,r){if(1&i&&(e.TgZ(0,"div",68),e.TgZ(1,"div",69),e.TgZ(2,"div",70),e.TgZ(3,"label"),e._uU(4),e.ALo(5,"translate"),e.TgZ(6,"span"),e._uU(7),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&i){const t=e.oxw();e.xp6(4),e.hij("",e.lcZ(5,2,"arrivalCard.eta")," "),e.xp6(3),e.Oqu(t.disembarkationDTO.etaNo)}}function Ae(i,r){1&i&&(e.TgZ(0,"p",72),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"arrivalCard.flightno")," ",e.lcZ(3,4,"common.required"),""))}function De(i,r){1&i&&(e.TgZ(0,"p",72),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"common.invalid")," ",e.lcZ(3,4,"arrivalCard.flightno"),""))}function Oe(i,r){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,Ae,4,6,"p",71),e.YNc(2,De,4,6,"p",71),e.qZA()),2&i){e.oxw();const t=e.MAs(44);e.xp6(1),e.Q6J("ngIf",null==t.errors?null:t.errors.required),e.xp6(1),e.Q6J("ngIf",t.invalid)}}function qe(i,r){1&i&&(e.TgZ(0,"p",72),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"arrivalCard.name")," ",e.lcZ(3,4,"common.required"),""))}function xe(i,r){1&i&&(e.TgZ(0,"p",72),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"common.invalid")," ",e.lcZ(3,4,"arrivalCard.name"),""))}function ke(i,r){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,qe,4,6,"p",71),e.YNc(2,xe,4,6,"p",71),e.qZA()),2&i){e.oxw();const t=e.MAs(74);e.xp6(1),e.Q6J("ngIf",null==t.errors?null:t.errors.required),e.xp6(1),e.Q6J("ngIf",t.invalid)}}const c=function(i){return{"ng-invalid ng-dirty ng-untouched":i}};function Me(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",73),e.TgZ(1,"p-radioButton",74),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().disembarkationDTO.gender=a}),e.qZA(),e.TgZ(2,"label",75),e._uU(3),e.qZA(),e.qZA()}if(2&i){const t=r.$implicit,n=e.oxw();e.xp6(1),e.Q6J("inputId",t.value)("value",t.value)("ngModel",n.disembarkationDTO.gender)("disabled",n.disableAllFileds)("ngClass",e.VKq(7,c,n.disembarkationDTO.genderRequired)),e.xp6(1),e.Q6J("for",t.value),e.xp6(1),e.Oqu(t.label)}}function Ne(i,r){1&i&&(e.TgZ(0,"p",72),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"departureCard.parentpassport")," ",e.lcZ(3,4,"common.required"),""))}function we(i,r){1&i&&(e.TgZ(0,"p",72),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"common.invalid")," ",e.lcZ(3,4,"departureCard.parentpassport"),""))}function ye(i,r){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,Ne,4,6,"p",71),e.YNc(2,we,4,6,"p",71),e.qZA()),2&i){e.oxw();const t=e.MAs(5);e.xp6(1),e.Q6J("ngIf",null==t.errors?null:t.errors.required),e.xp6(1),e.Q6J("ngIf",t.invalid)}}function Ue(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",29),e.TgZ(1,"label",30),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"input",76,77),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().disembarkationDTO.guardianPassportNo=a}),e.qZA(),e.YNc(6,ye,3,2,"div",34),e.qZA()}if(2&i){const t=e.MAs(5),n=e.oxw();e.xp6(2),e.hij("8. ",e.lcZ(3,4,"departureCard.parentpassport")," "),e.xp6(2),e.Q6J("disabled",n.disableAllFileds)("ngModel",n.disembarkationDTO.guardianPassportNo),e.xp6(2),e.Q6J("ngIf",t.invalid&&(t.dirty||t.touched))}}function Ie(i,r){1&i&&(e.TgZ(0,"label",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij("9. ",e.lcZ(2,1,"arrivalCard.email"),""))}function Se(i,r){1&i&&(e.TgZ(0,"label",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij("8. ",e.lcZ(2,1,"arrivalCard.email"),""))}function Ee(i,r){1&i&&(e.TgZ(0,"p",72),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"common.invalid")," ",e.lcZ(3,4,"arrivalCard.email"),""))}function Pe(i,r){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,Ee,4,6,"p",71),e.qZA()),2&i){e.oxw();const t=e.MAs(96);e.xp6(1),e.Q6J("ngIf",t.invalid)}}function Je(i,r){1&i&&(e.TgZ(0,"label",30),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",31),e._uU(4," *"),e.qZA(),e.qZA()),2&i&&(e.xp6(1),e.hij("10. ",e.lcZ(2,1,"arrivalCard.placelk"),""))}function Le(i,r){1&i&&(e.TgZ(0,"label",30),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",31),e._uU(4," *"),e.qZA(),e.qZA()),2&i&&(e.xp6(1),e.hij("9. ",e.lcZ(2,1,"arrivalCard.placelk"),""))}function Re(i,r){1&i&&(e.TgZ(0,"p",72),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"arrivalCard.placelk")," ",e.lcZ(3,4,"common.required"),""))}function Fe(i,r){1&i&&(e.TgZ(0,"p",72),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"common.invalid")," ",e.lcZ(3,4,"arrivalCard.placelk"),""))}function Qe(i,r){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,Re,4,6,"p",71),e.YNc(2,Fe,4,6,"p",71),e.qZA()),2&i){e.oxw();const t=e.MAs(102);e.xp6(1),e.Q6J("ngIf",null==t.errors?null:t.errors.required),e.xp6(1),e.Q6J("ngIf",t.invalid)}}function Be(i,r){1&i&&(e.TgZ(0,"label",30),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",31),e._uU(4," *"),e.qZA(),e.qZA()),2&i&&(e.xp6(1),e.hij("11. ",e.lcZ(2,1,"arrivalCard.purposeofvisit"),""))}function Ye(i,r){1&i&&(e.TgZ(0,"label",30),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",31),e._uU(4," *"),e.qZA(),e.qZA()),2&i&&(e.xp6(1),e.hij("10. ",e.lcZ(2,1,"arrivalCard.purposeofvisit"),""))}function He(i,r){1&i&&(e.TgZ(0,"label",30),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",31),e._uU(4," *"),e.qZA(),e.qZA()),2&i&&(e.xp6(1),e.hij("12. ",e.lcZ(2,1,"arrivalCard.otherpurpose"),""))}function je(i,r){1&i&&(e.TgZ(0,"label",30),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",31),e._uU(4," *"),e.qZA(),e.qZA()),2&i&&(e.xp6(1),e.hij("11. ",e.lcZ(2,1,"arrivalCard.otherpurpose"),""))}function ze(i,r){1&i&&(e.TgZ(0,"p",72),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"arrivalCard.otherpurpose")," ",e.lcZ(3,4,"common.required"),""))}function Ke(i,r){1&i&&(e.TgZ(0,"p",72),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"common.invalid")," ",e.lcZ(3,4,"arrivalCard.otherpurpose"),""))}function Ve(i,r){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,ze,4,6,"p",71),e.YNc(2,Ke,4,6,"p",71),e.qZA()),2&i){e.oxw();const t=e.MAs(4);e.xp6(1),e.Q6J("ngIf",null==t.errors?null:t.errors.required),e.xp6(1),e.Q6J("ngIf",t.invalid)}}function Ge(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",29),e.YNc(1,He,5,3,"label",44),e.YNc(2,je,5,3,"label",44),e.TgZ(3,"input",78,79),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().disembarkationDTO.purposeDescription=a}),e.qZA(),e.YNc(5,Ve,3,2,"div",34),e.qZA()}if(2&i){const t=e.MAs(4),n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.enableGuardianPassportNo),e.xp6(1),e.Q6J("ngIf",!n.enableGuardianPassportNo),e.xp6(1),e.Q6J("ngModel",n.disembarkationDTO.purposeDescription)("ngClass",e.VKq(6,c,n.disembarkationDTO.purposeDescriptionRequired))("disabled",n.disableAllFileds),e.xp6(2),e.Q6J("ngIf",t.invalid&&(t.dirty||t.touched))}}function We(i,r){1&i&&(e.TgZ(0,"label",30),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",31),e._uU(4,"*"),e.qZA(),e.qZA()),2&i&&(e.xp6(1),e.hij("11. ",e.lcZ(2,1,"arrivalCard.modeofEntry")," "))}function $e(i,r){1&i&&(e.TgZ(0,"label",30),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",31),e._uU(4,"*"),e.qZA(),e.qZA()),2&i&&(e.xp6(1),e.hij("12. ",e.lcZ(2,1,"arrivalCard.modeofEntry")," "))}function Xe(i,r){1&i&&(e.TgZ(0,"label",30),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",31),e._uU(4,"*"),e.qZA(),e.qZA()),2&i&&(e.xp6(1),e.hij("12. ",e.lcZ(2,1,"arrivalCard.modeofEntry")," "))}function et(i,r){1&i&&(e.TgZ(0,"label",30),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",31),e._uU(4,"*"),e.qZA(),e.qZA()),2&i&&(e.xp6(1),e.hij("13. ",e.lcZ(2,1,"arrivalCard.modeofEntry")," "))}function tt(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",73),e.TgZ(1,"p-radioButton",80),e.NdJ("onClick",function(){return e.CHM(t),e.oxw().onClickModeArrival()})("ngModelChange",function(a){return e.CHM(t),e.oxw().disembarkationDTO.modeOfEntry=a}),e.qZA(),e.TgZ(2,"label",75),e._uU(3),e.qZA(),e.qZA()}if(2&i){const t=r.$implicit,n=e.oxw();e.xp6(1),e.Q6J("inputId",t.value)("value",t.value)("disabled",n.disableAllFileds)("ngClass",e.VKq(7,c,n.disembarkationDTO.modeOfEntryRequired))("ngModel",n.disembarkationDTO.modeOfEntry),e.xp6(1),e.Q6J("for",t.value),e.xp6(1),e.Oqu(t.label)}}function it(i,r){1&i&&(e.TgZ(0,"label",30),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",31),e._uU(4,"*"),e.qZA(),e.qZA()),2&i&&(e.xp6(1),e.hij("12. ",e.lcZ(2,1,"arrivalCard.firstportofembarkation")," "))}function nt(i,r){1&i&&(e.TgZ(0,"label",30),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",31),e._uU(4,"*"),e.qZA(),e.qZA()),2&i&&(e.xp6(1),e.hij("13. ",e.lcZ(2,1,"arrivalCard.firstportofembarkation")," "))}function at(i,r){1&i&&(e.TgZ(0,"label",30),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",31),e._uU(4,"*"),e.qZA(),e.qZA()),2&i&&(e.xp6(1),e.hij("13. ",e.lcZ(2,1,"arrivalCard.firstportofembarkation")," "))}function rt(i,r){1&i&&(e.TgZ(0,"label",30),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",31),e._uU(4,"*"),e.qZA(),e.qZA()),2&i&&(e.xp6(1),e.hij("14. ",e.lcZ(2,1,"arrivalCard.firstportofembarkation")," "))}const Z=function(){return{width:"100%"}};function ot(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"p-dropdown",82),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).disembarkationDTO.firstPortOfEmbarkation=a}),e.qZA()}if(2&i){const t=e.oxw(2);e.Akn(e.DdM(9,Z)),e.Q6J("options",t.airportsList)("virtualScroll",!0)("disabled",t.disableAllFileds)("ngClass",e.VKq(10,c,t.disembarkationDTO.firstPortOfEmbarkationRequired))("ngModel",t.disembarkationDTO.firstPortOfEmbarkation)("showClear",!0)("filter",!0)}}function st(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"p-dropdown",82),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).disembarkationDTO.firstPortOfEmbarkation=a}),e.qZA()}if(2&i){const t=e.oxw(2);e.Akn(e.DdM(9,Z)),e.Q6J("options",t.seaportsList)("virtualScroll",!0)("disabled",t.disableAllFileds)("ngClass",e.VKq(10,c,t.disembarkationDTO.firstPortOfEmbarkationRequired))("ngModel",t.disembarkationDTO.firstPortOfEmbarkation)("showClear",!0)("filter",!0)}}function lt(i,r){if(1&i&&(e.TgZ(0,"div",29),e.YNc(1,it,5,3,"label",44),e.YNc(2,nt,5,3,"label",44),e.YNc(3,at,5,3,"label",44),e.YNc(4,rt,5,3,"label",44),e.YNc(5,ot,1,12,"p-dropdown",81),e.YNc(6,st,1,12,"p-dropdown",81),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf","009"!=t.disembarkationDTO.purposeCode&&!t.enableGuardianPassportNo),e.xp6(1),e.Q6J("ngIf","009"!=t.disembarkationDTO.purposeCode&&t.enableGuardianPassportNo),e.xp6(1),e.Q6J("ngIf","009"==t.disembarkationDTO.purposeCode&&!t.enableGuardianPassportNo),e.xp6(1),e.Q6J("ngIf","009"==t.disembarkationDTO.purposeCode&&t.enableGuardianPassportNo),e.xp6(1),e.Q6J("ngIf","A"==t.disembarkationDTO.modeOfEntry),e.xp6(1),e.Q6J("ngIf","S"==t.disembarkationDTO.modeOfEntry)}}function dt(i,r){1&i&&(e.TgZ(0,"p",72),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"arrivalCard.firstportofembarkation")," ",e.lcZ(3,4,"common.required"),""))}function pt(i,r){1&i&&(e.TgZ(0,"p",72),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"common.invalid")," ",e.lcZ(3,4,"arrivalCard.firstportofembarkation"),""))}function ut(i,r){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,dt,4,6,"p",71),e.YNc(2,pt,4,6,"p",71),e.qZA()),2&i){e.oxw();const t=e.MAs(7);e.xp6(1),e.Q6J("ngIf",null==t.errors?null:t.errors.required),e.xp6(1),e.Q6J("ngIf",t.invalid)}}function ct(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",29),e.TgZ(1,"label",30),e._uU(2),e.ALo(3,"translate"),e.TgZ(4,"span",31),e._uU(5," *"),e.qZA(),e.qZA(),e.TgZ(6,"input",78,83),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().disembarkationDTO.firstPortOfEmbDesc=a}),e.qZA(),e.YNc(8,ut,3,2,"div",34),e.qZA()}if(2&i){const t=e.MAs(7),n=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,5,"arrivalCard.firstportofembarkation"),""),e.xp6(4),e.Q6J("ngModel",n.disembarkationDTO.firstPortOfEmbDesc)("ngClass",e.VKq(7,c,n.disembarkationDTO.firstPortOfEmbDescRequired))("disabled",n.disableAllFileds),e.xp6(2),e.Q6J("ngIf",t.invalid&&(t.dirty||t.touched))}}function mt(i,r){1&i&&(e.TgZ(0,"label",30),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",31),e._uU(4,"*"),e.qZA(),e.qZA()),2&i&&(e.xp6(1),e.hij("13. ",e.lcZ(2,1,"arrivalCard.firstportofDisembarkation")," "))}function gt(i,r){1&i&&(e.TgZ(0,"label",30),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",31),e._uU(4,"*"),e.qZA(),e.qZA()),2&i&&(e.xp6(1),e.hij("14. ",e.lcZ(2,1,"arrivalCard.firstportofDisembarkation")," "))}function ht(i,r){1&i&&(e.TgZ(0,"label",30),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",31),e._uU(4,"*"),e.qZA(),e.qZA()),2&i&&(e.xp6(1),e.hij("14. ",e.lcZ(2,1,"arrivalCard.firstportofDisembarkation")," "))}function _t(i,r){1&i&&(e.TgZ(0,"label",30),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",31),e._uU(4,"*"),e.qZA(),e.qZA()),2&i&&(e.xp6(1),e.hij("15. ",e.lcZ(2,1,"arrivalCard.firstportofDisembarkation")," "))}function ft(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"p-dropdown",85),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).disembarkationDTO.portOfEntry=a}),e.qZA()}if(2&i){const t=e.oxw(2);e.Akn(e.DdM(9,Z)),e.Q6J("options",t.airLocalportsList)("virtualScroll",!0)("ngClass",e.VKq(10,c,t.disembarkationDTO.portOfEntryRequired))("disabled",t.disableAllFileds)("ngModel",t.disembarkationDTO.portOfEntry)("showClear",!0)("filter",!0)}}function bt(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"p-dropdown",85),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).disembarkationDTO.portOfEntry=a}),e.qZA()}if(2&i){const t=e.oxw(2);e.Akn(e.DdM(9,Z)),e.Q6J("options",t.seaLocalportsList)("virtualScroll",!0)("ngClass",e.VKq(10,c,t.disembarkationDTO.portOfEntryRequired))("disabled",t.disableAllFileds)("ngModel",t.disembarkationDTO.portOfEntry)("showClear",!0)("filter",!0)}}function Tt(i,r){if(1&i&&(e.TgZ(0,"div",29),e.YNc(1,mt,5,3,"label",44),e.YNc(2,gt,5,3,"label",44),e.YNc(3,ht,5,3,"label",44),e.YNc(4,_t,5,3,"label",44),e.YNc(5,ft,1,12,"p-dropdown",84),e.YNc(6,bt,1,12,"p-dropdown",84),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngIf","009"!=t.disembarkationDTO.purposeCode&&!t.enableGuardianPassportNo),e.xp6(1),e.Q6J("ngIf","009"!=t.disembarkationDTO.purposeCode&&t.enableGuardianPassportNo),e.xp6(1),e.Q6J("ngIf","009"==t.disembarkationDTO.purposeCode&&!t.enableGuardianPassportNo),e.xp6(1),e.Q6J("ngIf","009"==t.disembarkationDTO.purposeCode&&t.enableGuardianPassportNo),e.xp6(1),e.Q6J("ngIf","A"==t.disembarkationDTO.modeOfEntry),e.xp6(1),e.Q6J("ngIf","S"==t.disembarkationDTO.modeOfEntry)}}function Zt(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",86),e.TgZ(1,"div",87),e.TgZ(2,"div",20),e.TgZ(3,"p-checkbox",88),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().approvedInfomation=a}),e.qZA(),e.TgZ(4,"label"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.xp6(3),e.Q6J("ngModel",t.approvedInfomation)("ngClass",e.VKq(6,c,t.enableRequiredCheckbox))("binary",!0),e.xp6(2),e.Oqu(e.lcZ(6,4,"arrivalCard.declarenote"))}}const te=function(){return{"margin-right":"12px"}};function vt(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",68),e._UZ(1,"div",89),e.TgZ(2,"div",90),e.TgZ(3,"p-button",91),e.NdJ("onClick",function(){return e.CHM(t),e.oxw().submitArrivalCard()}),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"p-button",92),e.NdJ("onClick",function(){return e.CHM(t),e.oxw().cancelSubmit()}),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.xp6(3),e.s9C("label",e.lcZ(4,5,"common.submitandconfirm")),e.Q6J("disabled",t.disableSubmitButtons),e.xp6(2),e.s9C("label",e.lcZ(6,7,"common.edit")),e.Q6J("disabled",t.disableSubmitButtons)("ngStyle",e.DdM(9,te))}}function Ct(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",93),e._UZ(1,"div",89),e.TgZ(2,"div",90),e.TgZ(3,"p-button",91),e.NdJ("onClick",function(){return e.CHM(t),e.oxw().checkArrivalCard()}),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"p-button",94),e.NdJ("onClick",function(){return e.CHM(t),e.oxw().clearCard()}),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA()}if(2&i){e.oxw();const t=e.MAs(44),n=e.MAs(74),a=e.MAs(96),o=e.MAs(102);e.xp6(3),e.s9C("label",e.lcZ(4,4,"common.continue")),e.Q6J("disabled",t.invalid||n.invalid||a.invalid||o.invalid),e.xp6(2),e.s9C("label",e.lcZ(6,6,"common.clear")),e.Q6J("ngStyle",e.DdM(8,te))}}const At=function(){return{width:"40vw"}},Dt=function(){return{"960px":"75vw","640px":"100vw"}};let Ot=(()=>{class i{constructor(t,n,a,o,l){this.router=t,this.translate=n,this.httpReferenceService=a,this.route=o,this.applicationService=l,this.disembarkationDTO=new F,this.disableAllFileds=!1,this.enableSubmitRow=!1,this.enableContinueRow=!0,this.displayInstructionModal=!1,this.passportNumberPattern="^[A-Za-z0-9]*$",this.emailAddressPattern="/^w+([.-]?w+)*@w+([.-]?w+)*(.w{2,3})+$/",this.approvedInfomation=!1,this.enableRequiredCheckbox=!1,this.enableGuardianPassportNo=!1,this.currentDate=new Date,this.disableSubmitButtons=!1,this.threeDays=new Date,this.birthDate=new Date}ngOnInit(){this.threeDays.setDate(this.threeDays.getDate()+7),this.birthDate.setDate(this.birthDate.getDate()-43830),setTimeout(()=>{this.route.params.subscribe(t=>{null!=t.eta&&(this.disembarkationDTO=JSON.parse(t.eta)),this.source=t.type.trim().toUpperCase()})}),this.modeOfExitList=[{label:"Air",value:"A"},{label:"Sea",value:"S"}],this.genderList=[{label:"Male",value:"M"},{label:"Female",value:"F"},{label:"Other",value:"O"}],this.requestMultipleData().subscribe(t=>{this.nationalityList=t[0],this.airportsList=t[1],this.seaportsList=t[2],this.purposeList=t[3],this.airLocalportsList=t[4],this.seaLocalportsList=t[5]})}requestMultipleData(){let t=this.httpReferenceService.getAllNationalities(),n=this.httpReferenceService.getAirPorts(),a=this.httpReferenceService.getSeaPorts(),o=this.httpReferenceService.getPurposeList(),l=this.httpReferenceService.getAirLocalPorts(),u=this.httpReferenceService.getSeaLocalPorts();return(0,R.D)([t,n,a,o,l,u])}onLanguageSelect(t){t&&this.translate.setDefaultLang(t)}validateBeforeSave(){this.disembarkationDTO.flightNoShipNameRequired=null==this.disembarkationDTO.flightNoShipName||null==this.disembarkationDTO.flightNoShipName||""==this.disembarkationDTO.flightNoShipName.trim(),this.disembarkationDTO.passportNoRequired=null==this.disembarkationDTO.passportNo||null==this.disembarkationDTO.passportNo||""==this.disembarkationDTO.passportNo.trim(),this.disembarkationDTO.nationalityRequired=null==this.disembarkationDTO.nationality||null==this.disembarkationDTO.nationality||""==this.disembarkationDTO.nationality.trim(),this.disembarkationDTO.genderRequired=null==this.disembarkationDTO.gender||null==this.disembarkationDTO.gender||""==this.disembarkationDTO.gender.trim(),this.disembarkationDTO.nameWithInitialsRequired=null==this.disembarkationDTO.nameWithInitials||null==this.disembarkationDTO.nameWithInitials||""==this.disembarkationDTO.nameWithInitials.trim(),this.disembarkationDTO.addressInSLRequired=null==this.disembarkationDTO.addressInSL||null==this.disembarkationDTO.addressInSL||""==this.disembarkationDTO.addressInSL.trim(),null!=this.disembarkationDTO.purposeCode&&null!=this.disembarkationDTO.purposeCode&&""!=this.disembarkationDTO.purposeCode.trim()?(this.disembarkationDTO.purposeCodeRequired=!1,"009"==this.disembarkationDTO.purposeCode?(this.disembarkationDTO.purposeDescriptionRequired=!0,this.disembarkationDTO.purposeDescriptionRequired=null==this.disembarkationDTO.purposeDescription||null==this.disembarkationDTO.purposeDescription||""==this.disembarkationDTO.purposeDescription.trim()):this.disembarkationDTO.purposeDescriptionRequired=!1):this.disembarkationDTO.purposeCodeRequired=!0,this.disembarkationDTO.dateOfEntryRequired=null==this.disembarkationDTO.dateOfEntry||null==this.disembarkationDTO.dateOfEntry,this.disembarkationDTO.dateOfBirthRequired=null==this.disembarkationDTO.dateOfBirth||null==this.disembarkationDTO.dateOfBirth,this.disembarkationDTO.modeOfEntryRequired=null==this.disembarkationDTO.modeOfEntry||null==this.disembarkationDTO.modeOfEntry||""==this.disembarkationDTO.modeOfEntry.trim(),null!=this.disembarkationDTO.firstPortOfEmbarkation&&null!=this.disembarkationDTO.firstPortOfEmbarkation&&""!=this.disembarkationDTO.firstPortOfEmbarkation.trim()?(this.disembarkationDTO.firstPortOfEmbarkationRequired=!1,"OTH_A"==this.disembarkationDTO.firstPortOfEmbarkation||"OTH_S"==this.disembarkationDTO.firstPortOfEmbarkation?(this.disembarkationDTO.firstPortOfEmbDescRequired=!0,this.disembarkationDTO.firstPortOfEmbDescRequired=null==this.disembarkationDTO.firstPortOfEmbDesc||null==this.disembarkationDTO.firstPortOfEmbDesc||""==this.disembarkationDTO.firstPortOfEmbDesc.trim()):this.disembarkationDTO.firstPortOfEmbDescRequired=!1):this.disembarkationDTO.firstPortOfEmbarkationRequired=!0,this.disembarkationDTO.portOfEntryRequired=null==this.disembarkationDTO.portOfEntry||null==this.disembarkationDTO.portOfEntry||""==this.disembarkationDTO.portOfEntry.trim()}checkArrivalCard(){this.validateBeforeSave(),this.mandatoryMissing=!1,this.disembarkationDTO.flightNoShipNameRequired||this.disembarkationDTO.passportNoRequired||this.disembarkationDTO.nationalityRequired||this.disembarkationDTO.genderRequired||this.disembarkationDTO.nameWithInitialsRequired||this.disembarkationDTO.addressInSLRequired||this.disembarkationDTO.firstPortOfEmbarkationRequired||this.disembarkationDTO.firstPortOfEmbDescRequired||this.disembarkationDTO.dateOfBirthRequired||this.disembarkationDTO.purposeCodeRequired||this.disembarkationDTO.purposeDescriptionRequired||this.disembarkationDTO.dateOfEntryRequired||this.disembarkationDTO.modeOfEntryRequired||this.disembarkationDTO.portOfEntryRequired?(this.mandatoryMissing=!0,this.confirmationService.confirm({message:this.translate.instant("Please fill all mandatory fields."),header:"",key:"warning"})):(this.disableAllFileds=!0,this.enableContinueRow=!1,this.enableSubmitRow=!0,this.confirmationService.confirm({message:this.translate.instant("Please confirm the details before you submit."),header:"",key:"info"}))}clearCard(){this.disembarkationDTO=new F,this.router.navigate(["/home-page"])}setPurposeDescription(){this.purposeList.forEach(t=>{this.disembarkationDTO.purposeCode==t.code&&"009"!=t.code&&(this.disembarkationDTO.purposeDescription=t.description)})}setPortDescription(){"A"==this.disembarkationDTO.modeOfEntry&&this.airportsList.forEach(t=>{this.disembarkationDTO.firstPortOfEmbarkation==t.code&&"OTH_A"!=t.code&&(this.disembarkationDTO.firstPortOfEmbDesc=t.description)}),"S"==this.disembarkationDTO.modeOfEntry&&this.seaportsList.forEach(t=>{this.disembarkationDTO.firstPortOfEmbarkation==t.code&&"OTH_S"!=t.code&&(this.disembarkationDTO.firstPortOfEmbDesc=t.description)})}submitArrivalCard(){this.approvedInfomation&&!this.mandatoryMissing?(this.enableRequiredCheckbox=!1,this.disembarkationDTO.source=this.source,this.setPurposeDescription(),this.setPortDescription(),this.applicationService.saveDisembarkation(this.disembarkationDTO).subscribe({next:t=>{this.confirmationService.confirm(0==t.code?{message:this.translate.instant("messagesArrival.savesuccessmessage"),header:"",key:"success",accept:()=>this.router.navigate(["/home-page"])}:{message:this.translate.instant("messagesArrival.saveerrormessage"),header:"Error",key:"okDialog"})},error:t=>{}})):(this.enableRequiredCheckbox=!0,this.confirmationService.confirm({message:this.translate.instant("Please accept that the information given above is correct and true."),header:"",key:"info"}))}cancelSubmit(){this.disableAllFileds=!1,this.enableSubmitRow=!1,this.enableContinueRow=!0,this.disembarkationDTO.flightNoShipNameRequired=!0,this.disembarkationDTO.passportNoRequired=!0,this.disembarkationDTO.nationalityRequired=!0,this.disembarkationDTO.nameWithInitialsRequired=!0,this.disembarkationDTO.addressInSLRequired=!0,this.disembarkationDTO.firstPortOfEmbarkationRequired=!0,this.disembarkationDTO.firstPortOfEmbDescRequired=!0,this.disembarkationDTO.purposeCodeRequired=!0,this.disembarkationDTO.purposeDescriptionRequired=!0,this.disembarkationDTO.portOfEntryRequired=!0,this.disembarkationDTO.modeOfEntryRequired=!0,this.disembarkationDTO.emailAddressRequired=!0,this.disembarkationDTO.guardianPassportNoRequired=!0,this.disembarkationDTO.genderRequired=!0,this.disembarkationDTO.dateOfEntryRequired=!0,this.disembarkationDTO.dateOfBirthRequired=!0}showInstruction(){this.displayInstructionModal=!0}onDateOfBirthChange(){let t=Math.abs(Date.now()-this.disembarkationDTO.dateOfBirth.getTime());this.enableGuardianPassportNo=Math.floor(t/864e5/365.25)<16}onClickModeArrival(){this.disembarkationDTO.portOfEntry=void 0,this.disembarkationDTO.firstPortOfEmbarkation=void 0}naviageToHome(){this.router.navigate(["/home-page"])}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(h.F0),e.Y36(g.sK),e.Y36(Q),e.Y36(h.gz),e.Y36(B))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-arrival-card"]],viewQuery:function(t,n){if(1&t&&e.Gf(b,5),2&t){let a;e.iGM(a=e.CRH())&&(n.confirmationService=a.first)}},decls:186,vars:125,consts:[[1,"formBody"],[1,"page-nav"],[1,"page-nav--slip"],[1,"page-nav--main"],[1,""],[1,"flex-sl-container","flex-sl-align-items--center","item-cage"],[1,"flex-sl-item","arrival-flight-icon"],["src","assets/img/arrival_flight_icon.png"],[1,"flex-sl-container","flex-sl-item","heading-txt"],["translate","",1,"id-sl"],["translate","",1,"form-sub-heading"],[1,"flex-sl-item"],[1,"flex","m-3"],["type","button",1,"button-language__start",3,"click"],["type","button",1,"button-language",2,"height","46px",3,"click"],["type","button",1,"button-language__end",3,"click"],["type","button","tooltipPosition","bottom","pTooltip","Home",1,"button-sign-in","home-icon-btn",3,"click"],[1,"pi","pi-home","home-icon"],[1,"form-body-background"],[1,"q-warning","mt-3"],[1,"flex","align-items-center","p-3"],[1,"pi","pi-info-circle","iil-txt-error"],["translate","",1,"ml-3","iil-txt-error"],["class","grid",4,"ngIf"],[1,"grid","pl-3","m-0"],[1,"col-12","md:col-8","pl-0","pr-3","mt-2","mb-2"],[1,"arrival-card-form"],[1,"arrivalContainer"],[1,"grid","p-fluid"],[1,"field","col-12","md:col-6"],[1,"iil-txt-small"],[1,"iil-txt-error","ml-0"],["autofocus","","type","text","oninput","this.value = this.value.toUpperCase()","pattern","^[A-Za-z0-9 -]*$","required","true","maxlength","50","minlength","3","pInputText","","placeholder","e.g. UL121",1,"inputfield","w-full",3,"disabled","ngClass","ngModel","ngModelChange"],["flightNoShipName","ngModel"],[4,"ngIf"],["dateFormat","dd-mm-yy","inputId","basic",3,"ngModel","minDate","maxDate","showIcon","disabled","ngClass","ngModelChange"],["type","text","oninput","this.value = this.value.toUpperCase()","maxlength","10","minlength","6","pInputText","",1,"inputfield","w-full",3,"ngModel","disabled","ngClass","ngModelChange"],["filterMatchMode","startsWith","placeholder","Select an Option","optionLabel","description","optionValue","code",3,"ngModel","virtualScroll","ngClass","disabled","options","showClear","filter","ngModelChange"],["type","text","oninput","this.value = this.value.toUpperCase()","maxlength","50","minlength","3","pattern","^[A-Za-z .-]*$","required","true","pInputText","",1,"inputfield","w-full",3,"ngClass","disabled","ngModel","ngModelChange"],["nameWithInitials","ngModel"],[2,"display","flex"],["class","field-checkbox","style","margin-right: 5px;",4,"ngFor","ngForOf"],["dateFormat","dd-mm-yy","inputId","basic",3,"ngModel","maxDate","minDate","showIcon","disabled","ngClass","ngModelChange","onSelect"],["class","field col-12 md:col-6",4,"ngIf"],["class","iil-txt-small",4,"ngIf"],["type","email","maxlength","100","pattern","^[A-Za-z0-9@.!#$%&'*+/=?^_`{|}~-]*$","minlength","5","pInputText","",1,"inputfield","w-full",3,"disabled","ngModel","ngModelChange"],["emailAddress","ngModel"],["rows","3","cols","30","pInputTextarea","","pattern","^[A-Za-z0-9 .,/-]*$","required","true","minlength","3","maxlength","200","oninput","this.value = this.value.toUpperCase()",3,"ngModel","disabled","ngClass","ngModelChange"],["addressInSL","ngModel"],["filterMatchMode","startsWith","placeholder","Select an Option","optionLabel","description","optionValue","code",3,"options","virtualScroll","ngModel","disabled","ngClass","showClear","filter","ngModelChange"],["class","full-width",4,"ngIf"],[1,"col-12","md:col-12","lg:col-12"],["class","grid pb-2",4,"ngIf"],[1,"col-12","md:col-4","pl-0","pr-3","mt-2","mb-2"],[1,"arrival-card-instructions-container"],["translate","",1,"form-sub-heading","mb-3"],["translate",""],[1,"pi","pi-check-circle","info-check-circle-icon"],[1,"iil-txt-small",2,"color","red","margin","0px 5px 0px 5px"],[1,"instructions-vector"],["src","assets/img/instructions_icon.png",2,"height","100%","width","100%"],[1,"footer-txt"],[1,"shadow-line-bottom"],["header","Instructions",3,"closeOnEscape","visible","modal","breakpoints","baseZIndex","draggable","resizable","visibleChange"],[1,"formContainer"],[1,"card"],[1,"pi","pi-check-circle"],[2,"color","red","margin","0px 5px 0px 5px"],[1,"grid"],[1,"col-12","md:col-12","lg:col-12",2,"padding","30px 30px 0px 30px"],[1,"float-left",2,"color","red"],["class","iil-txt-error",4,"ngIf"],[1,"iil-txt-error"],[1,"field-checkbox",2,"margin-right","5px"],["name","category",3,"inputId","value","ngModel","disabled","ngClass","ngModelChange"],[3,"for"],["type","text","maxlength","10","minlength","6","pattern","^[A-Za-z0-9]*$","oninput","this.value = this.value.toUpperCase()","pInputText","",1,"inputfield","w-full",3,"disabled","ngModel","ngModelChange"],["guardianPassportNo","ngModel"],["type","text","maxlength","100","minlength","3","pattern","^[A-Za-z0-9 .-]*$","required","true","oninput","this.value = this.value.toUpperCase()","pInputText","",1,"inputfield","w-full",3,"ngModel","ngClass","disabled","ngModelChange"],["purposeDescription","ngModel"],["name","category",3,"inputId","value","disabled","ngClass","ngModel","onClick","ngModelChange"],["filterMatchMode","startsWith","placeholder","Select an Option","optionLabel","description","optionValue","code",3,"style","options","virtualScroll","disabled","ngClass","ngModel","showClear","filter","ngModelChange",4,"ngIf"],["filterMatchMode","startsWith","placeholder","Select an Option","optionLabel","description","optionValue","code",3,"options","virtualScroll","disabled","ngClass","ngModel","showClear","filter","ngModelChange"],["firstPortOfEmbDesc","ngModel"],["filterMatchMode","startsWith","placeholder","Select an Option","optionLabel","description","optionValue","code",3,"style","options","virtualScroll","ngClass","disabled","ngModel","showClear","filter","ngModelChange",4,"ngIf"],["filterMatchMode","startsWith","placeholder","Select an Option","optionLabel","description","optionValue","code",3,"options","virtualScroll","ngClass","disabled","ngModel","showClear","filter","ngModelChange"],[1,"full-width"],[1,"q-agreement","mt-3","col-12","md:col-12"],["inputId","binary",1,"mr-2",3,"ngModel","ngClass","binary","ngModelChange"],[1,"col-12","md:col-6","lg:col-5"],[1,"col-12","md:col-6","lg:col-7","pr-5","pb-3"],[1,"float-right",3,"disabled","label","onClick"],[1,"float-right",3,"label","disabled","ngStyle","onClick"],[1,"grid","pb-2"],[1,"float-right",3,"label","ngStyle","onClick"]],template:function(t,n){if(1&t&&(e._UZ(0,"app-common-message"),e.TgZ(1,"div",0),e.TgZ(2,"div",1),e._UZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"div",6),e._UZ(8,"img",7),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"h1",9),e._uU(11,"home.arrivalApp"),e.qZA(),e.TgZ(12,"div",10),e._uU(13,"home.lblArrivalTipForm"),e.qZA(),e.qZA(),e.TgZ(14,"div",11),e.TgZ(15,"div",12),e.TgZ(16,"button",13),e.NdJ("click",function(){return n.onLanguageSelect("en")}),e._uU(17,"English"),e.qZA(),e.TgZ(18,"button",14),e.NdJ("click",function(){return n.onLanguageSelect("si")}),e._uU(19,"\u0dc3\u0dd2\u0d82\u0dc4\u0dbd"),e.qZA(),e.TgZ(20,"button",15),e.NdJ("click",function(){return n.onLanguageSelect("ta")}),e._uU(21,"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd"),e.qZA(),e.TgZ(22,"button",16),e.NdJ("click",function(){return n.naviageToHome()}),e._UZ(23,"i",17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(24,"div",18),e._UZ(25,"div",2),e.TgZ(26,"div",19),e.TgZ(27,"div",20),e._UZ(28,"i",21),e.TgZ(29,"label",22),e._uU(30,"arrivalCard.legalNotice"),e.qZA(),e.qZA(),e.qZA(),e.YNc(31,Ce,8,4,"div",23),e.TgZ(32,"div",24),e.TgZ(33,"div",25),e.TgZ(34,"div",26),e.TgZ(35,"div",27),e.TgZ(36,"div",28),e.TgZ(37,"div",29),e.TgZ(38,"label",30),e._uU(39),e.ALo(40,"translate"),e.TgZ(41,"span",31),e._uU(42," *"),e.qZA(),e.qZA(),e.TgZ(43,"input",32,33),e.NdJ("ngModelChange",function(o){return n.disembarkationDTO.flightNoShipName=o}),e.qZA(),e.YNc(45,Oe,3,2,"div",34),e.qZA(),e.TgZ(46,"div",29),e.TgZ(47,"label",30),e._uU(48),e.ALo(49,"translate"),e.TgZ(50,"span",31),e._uU(51,"*"),e.qZA(),e.qZA(),e.TgZ(52,"p-calendar",35),e.NdJ("ngModelChange",function(o){return n.disembarkationDTO.dateOfEntry=o}),e.qZA(),e.qZA(),e.TgZ(53,"div",29),e.TgZ(54,"label",30),e._uU(55),e.ALo(56,"translate"),e.TgZ(57,"span",31),e._uU(58," *"),e.qZA(),e.qZA(),e.TgZ(59,"input",36),e.NdJ("ngModelChange",function(o){return n.disembarkationDTO.passportNo=o}),e.qZA(),e.qZA(),e.TgZ(60,"div",29),e.TgZ(61,"label",30),e._uU(62),e.ALo(63,"translate"),e.TgZ(64,"span",31),e._uU(65," *"),e.qZA(),e.qZA(),e.TgZ(66,"p-dropdown",37),e.NdJ("ngModelChange",function(o){return n.disembarkationDTO.nationality=o}),e.qZA(),e.qZA(),e.TgZ(67,"div",29),e.TgZ(68,"label",30),e._uU(69),e.ALo(70,"translate"),e.TgZ(71,"span",31),e._uU(72," *"),e.qZA(),e.qZA(),e.TgZ(73,"input",38,39),e.NdJ("ngModelChange",function(o){return n.disembarkationDTO.nameWithInitials=o}),e.qZA(),e.YNc(75,ke,3,2,"div",34),e.qZA(),e.TgZ(76,"div",29),e.TgZ(77,"label",30),e._uU(78),e.ALo(79,"translate"),e.TgZ(80,"span",31),e._uU(81," *"),e.qZA(),e.qZA(),e.TgZ(82,"div",40),e.YNc(83,Me,4,9,"div",41),e.qZA(),e.qZA(),e.TgZ(84,"div",29),e.TgZ(85,"label",30),e._uU(86),e.ALo(87,"translate"),e.TgZ(88,"span",31),e._uU(89,"*"),e.qZA(),e.qZA(),e.TgZ(90,"p-calendar",42),e.NdJ("ngModelChange",function(o){return n.disembarkationDTO.dateOfBirth=o})("onSelect",function(){return n.onDateOfBirthChange()}),e.qZA(),e.qZA(),e.YNc(91,Ue,7,6,"div",43),e.TgZ(92,"div",29),e.YNc(93,Ie,3,3,"label",44),e.YNc(94,Se,3,3,"label",44),e.TgZ(95,"input",45,46),e.NdJ("ngModelChange",function(o){return n.disembarkationDTO.emailAddress=o}),e.qZA(),e.YNc(97,Pe,2,1,"div",34),e.qZA(),e.TgZ(98,"div",29),e.YNc(99,Je,5,3,"label",44),e.YNc(100,Le,5,3,"label",44),e.TgZ(101,"textarea",47,48),e.NdJ("ngModelChange",function(o){return n.disembarkationDTO.addressInSL=o}),e.qZA(),e.YNc(103,Qe,3,2,"div",34),e.qZA(),e.TgZ(104,"div",29),e.YNc(105,Be,5,3,"label",44),e.YNc(106,Ye,5,3,"label",44),e.TgZ(107,"p-dropdown",49),e.NdJ("ngModelChange",function(o){return n.disembarkationDTO.purposeCode=o}),e.qZA(),e.qZA(),e.YNc(108,Ge,6,8,"div",43),e.TgZ(109,"div",29),e.YNc(110,We,5,3,"label",44),e.YNc(111,$e,5,3,"label",44),e.YNc(112,Xe,5,3,"label",44),e.YNc(113,et,5,3,"label",44),e.TgZ(114,"div",40),e.YNc(115,tt,4,9,"div",41),e.qZA(),e.qZA(),e.YNc(116,lt,7,6,"div",43),e.YNc(117,ct,9,9,"div",43),e.YNc(118,Tt,7,6,"div",43),e.YNc(119,Zt,7,8,"div",50),e.qZA(),e.qZA(),e.TgZ(120,"div"),e.TgZ(121,"div",51),e.YNc(122,vt,7,10,"div",23),e.YNc(123,Ct,7,9,"div",52),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(124,"div",53),e.TgZ(125,"div",54),e.TgZ(126,"div",55),e._uU(127,"arrivalCardInstructions.header"),e.qZA(),e.TgZ(128,"p",56),e._UZ(129,"i",57),e.TgZ(130,"span",58),e._uU(131,"*"),e.qZA(),e._uU(132,"arrivalCardInstructions.lineOne "),e.qZA(),e._UZ(133,"p-divider"),e.TgZ(134,"p",56),e._UZ(135,"i",57),e._uU(136,"arrivalCardInstructions.lineTwo"),e.qZA(),e._UZ(137,"p-divider"),e.TgZ(138,"p",56),e._UZ(139,"i",57),e._uU(140,"arrivalCardInstructions.lineThree"),e.qZA(),e._UZ(141,"p-divider"),e.TgZ(142,"p",56),e._UZ(143,"i",57),e._uU(144," arrivalCardInstructions.lineFour"),e.qZA(),e._UZ(145,"p-divider"),e.TgZ(146,"p",56),e._UZ(147,"i",57),e._uU(148," arrivalCardInstructions.lineFive"),e.qZA(),e._UZ(149,"p-divider"),e.TgZ(150,"div",59),e._UZ(151,"img",60),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(152,"footer"),e.TgZ(153,"div",61),e._uU(154),e.ALo(155,"translate"),e.qZA(),e._UZ(156,"div",62),e.qZA(),e.TgZ(157,"p-dialog",63),e.NdJ("visibleChange",function(o){return n.displayInstructionModal=o}),e._UZ(158,"p-divider"),e.TgZ(159,"div",64),e.TgZ(160,"div",65),e.TgZ(161,"p"),e._UZ(162,"i",66),e.TgZ(163,"span",67),e._uU(164,"*"),e.qZA(),e._uU(165," fields are mandatory."),e.qZA(),e._UZ(166,"p-divider"),e.TgZ(167,"p"),e._UZ(168,"i",66),e._uU(169," A separate card should be filled for each child travelling on parent's passport."),e.qZA(),e._UZ(170,"p-divider"),e.TgZ(171,"p"),e._UZ(172,"i",66),e._uU(173," Your passport must be valid for next six months."),e.qZA(),e._UZ(174,"p-divider"),e.TgZ(175,"p"),e._UZ(176,"i",66),e._uU(177," Any extension for visa should be obtained from Department of Immigration and Emigrationin Battaramulla."),e.qZA(),e._UZ(178,"p-divider"),e.TgZ(179,"p"),e._UZ(180,"i",66),e._uU(181," Strictly adhere to the purpose of visit indicated."),e.qZA(),e._UZ(182,"p-divider"),e.TgZ(183,"p"),e._UZ(184,"i",66),e._uU(185," This is a legal document. False declaration can lead to penalties including confiscation of goods,fines, prosecution, imprisonment and removal from SriLanka."),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t){const a=e.MAs(44),o=e.MAs(74),l=e.MAs(96),u=e.MAs(102);e.xp6(31),e.Q6J("ngIf",n.disembarkationDTO.etaNo),e.xp6(8),e.hij("1. ",e.lcZ(40,88,"arrivalCard.flightno")," "),e.xp6(4),e.Q6J("disabled",n.disableAllFileds)("ngClass",e.VKq(104,c,n.disembarkationDTO.flightNoShipNameRequired))("ngModel",n.disembarkationDTO.flightNoShipName),e.xp6(2),e.Q6J("ngIf",a.invalid&&(a.dirty||a.touched)),e.xp6(3),e.hij("2. ",e.lcZ(49,90,"arrivalCard.dateofArrival")," "),e.xp6(4),e.Q6J("ngModel",n.disembarkationDTO.dateOfEntry)("minDate",n.currentDate)("maxDate",n.threeDays)("showIcon",!0)("disabled",n.disableAllFileds)("ngClass",e.VKq(106,c,n.disembarkationDTO.dateOfEntryRequired)),e.xp6(3),e.hij("3. ",e.lcZ(56,92,"arrivalCard.passportno"),""),e.xp6(4),e.Q6J("ngModel",n.disembarkationDTO.passportNo)("disabled",n.disableAllFileds||n.disembarkationDTO.passportNo)("ngClass",e.VKq(108,c,n.disembarkationDTO.passportNoRequired)),e.xp6(3),e.hij("4. ",e.lcZ(63,94,"arrivalCard.nationality"),""),e.xp6(4),e.Akn(e.DdM(110,Z)),e.Q6J("ngModel",n.disembarkationDTO.nationality)("virtualScroll",!0)("ngClass",e.VKq(111,c,n.disembarkationDTO.nationalityRequired))("disabled",n.disableAllFileds)("options",n.nationalityList)("showClear",!0)("filter",!0),e.xp6(3),e.hij("5. ",e.lcZ(70,96,"arrivalCard.name"),""),e.xp6(4),e.Q6J("ngClass",e.VKq(113,c,n.disembarkationDTO.nameWithInitialsRequired))("disabled",n.disableAllFileds)("ngModel",n.disembarkationDTO.nameWithInitials),e.xp6(2),e.Q6J("ngIf",o.invalid&&(o.dirty||o.touched)),e.xp6(3),e.hij("6. ",e.lcZ(79,98,"arrivalCard.gender"),""),e.xp6(5),e.Q6J("ngForOf",n.genderList),e.xp6(3),e.hij("7. ",e.lcZ(87,100,"arrivalCard.dob")," "),e.xp6(4),e.Q6J("ngModel",n.disembarkationDTO.dateOfBirth)("maxDate",n.currentDate)("minDate",n.birthDate)("showIcon",!0)("disabled",n.disableAllFileds)("ngClass",e.VKq(115,c,n.disembarkationDTO.dateOfBirthRequired)),e.xp6(1),e.Q6J("ngIf",n.enableGuardianPassportNo),e.xp6(2),e.Q6J("ngIf",n.enableGuardianPassportNo),e.xp6(1),e.Q6J("ngIf",!n.enableGuardianPassportNo),e.xp6(1),e.Q6J("disabled",n.disableAllFileds)("ngModel",n.disembarkationDTO.emailAddress),e.xp6(2),e.Q6J("ngIf",l.invalid&&(l.dirty||l.touched)),e.xp6(2),e.Q6J("ngIf",n.enableGuardianPassportNo),e.xp6(1),e.Q6J("ngIf",!n.enableGuardianPassportNo),e.xp6(1),e.Akn(e.DdM(117,Z)),e.Q6J("ngModel",n.disembarkationDTO.addressInSL)("disabled",n.disableAllFileds)("ngClass",e.VKq(118,c,n.disembarkationDTO.addressInSLRequired)),e.xp6(2),e.Q6J("ngIf",u.invalid&&(u.dirty||u.touched)),e.xp6(2),e.Q6J("ngIf",n.enableGuardianPassportNo),e.xp6(1),e.Q6J("ngIf",!n.enableGuardianPassportNo),e.xp6(1),e.Akn(e.DdM(120,Z)),e.Q6J("options",n.purposeList)("virtualScroll",!0)("ngModel",n.disembarkationDTO.purposeCode)("disabled",n.disableAllFileds)("ngClass",e.VKq(121,c,n.disembarkationDTO.purposeCodeRequired))("showClear",!0)("filter",!0),e.xp6(1),e.Q6J("ngIf","009"==n.disembarkationDTO.purposeCode),e.xp6(2),e.Q6J("ngIf","009"!=n.disembarkationDTO.purposeCode&&!n.enableGuardianPassportNo),e.xp6(1),e.Q6J("ngIf","009"!=n.disembarkationDTO.purposeCode&&n.enableGuardianPassportNo),e.xp6(1),e.Q6J("ngIf","009"==n.disembarkationDTO.purposeCode&&!n.enableGuardianPassportNo),e.xp6(1),e.Q6J("ngIf","009"==n.disembarkationDTO.purposeCode&&n.enableGuardianPassportNo),e.xp6(2),e.Q6J("ngForOf",n.modeOfExitList),e.xp6(1),e.Q6J("ngIf",n.disembarkationDTO.modeOfEntry),e.xp6(1),e.Q6J("ngIf","OTH_A"==n.disembarkationDTO.firstPortOfEmbarkation||"OTH_S"==n.disembarkationDTO.firstPortOfEmbarkation),e.xp6(1),e.Q6J("ngIf",n.disembarkationDTO.modeOfEntry),e.xp6(1),e.Q6J("ngIf",n.enableSubmitRow),e.xp6(3),e.Q6J("ngIf",n.enableSubmitRow),e.xp6(1),e.Q6J("ngIf",n.enableContinueRow),e.xp6(31),e.Oqu(e.lcZ(155,102,"home.footer")),e.xp6(3),e.Akn(e.DdM(123,At)),e.Q6J("closeOnEscape",!1)("visible",n.displayInstructionModal)("modal",!0)("breakpoints",e.DdM(124,Dt))("baseZIndex",1e4)("draggable",!1)("resizable",!1)}},directives:[b,g.Pi,X.u,m.O5,d.Fj,d.c5,d.Q7,d.nD,d.wO,y.o,m.mk,d.JJ,d.On,J.f,U.Lt,m.sg,E.EU,ee.g,P.XZ,C.zx,m.PC,N.i,w.V],pipes:[g.X$],styles:[".button-instruction[_ngcontent-%COMP%]{width:46px;height:46px;background:#F8FAFF;border:1px solid #D7E6FC;border-radius:10px}.number-list[_ngcontent-%COMP%]{margin-right:5px}.field[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.form-body-background[_ngcontent-%COMP%]{background-color:#fafafb}.arrival-flight-icon[_ngcontent-%COMP%]{margin-left:1rem}.form-sub-heading[_ngcontent-%COMP%]{align-self:center!important;color:#0061be;font-weight:600}.home-icon-btn[_ngcontent-%COMP%]{margin-left:1rem}.arrival-card-form[_ngcontent-%COMP%], .arrival-card-instructions-container[_ngcontent-%COMP%]{background:#FFFFFF;box-shadow:0 0 1px #4950570a,0 2px 4px #49505729;border-radius:4px}.arrivalContainer[_ngcontent-%COMP%]{padding:2rem 2rem 1rem}.arrival-card-instructions-container[_ngcontent-%COMP%]{padding:2rem}.info-check-circle-icon[_ngcontent-%COMP%]{color:#eb3073;font-weight:700!important;margin-right:.5rem}.full-width[_ngcontent-%COMP%]{width:100%}"]}),i})();class Y{}function qt(i,r){if(1&i&&(e.TgZ(0,"div",77),e._UZ(1,"img",78),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("src",t.passportImage,e.LSH)}}function xt(i,r){1&i&&(e.TgZ(0,"p",80),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"departureCard.flightno")," ",e.lcZ(3,4,"common.required"),""))}function kt(i,r){1&i&&(e.TgZ(0,"p",80),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"common.invalid")," ",e.lcZ(3,4,"departureCard.flightno"),""))}function Mt(i,r){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,xt,4,6,"p",79),e.YNc(2,kt,4,6,"p",79),e.qZA()),2&i){e.oxw();const t=e.MAs(46);e.xp6(1),e.Q6J("ngIf",null==t.errors?null:t.errors.required),e.xp6(1),e.Q6J("ngIf",t.invalid)}}function Nt(i,r){1&i&&(e.TgZ(0,"p",80),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"departureCard.namewithinitials")," ",e.lcZ(3,4,"common.required"),""))}function wt(i,r){1&i&&(e.TgZ(0,"p",80),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"common.invalid")," ",e.lcZ(3,4,"departureCard.namewithinitials"),""))}function yt(i,r){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,Nt,4,6,"p",79),e.YNc(2,wt,4,6,"p",79),e.qZA()),2&i){e.oxw();const t=e.MAs(69);e.xp6(1),e.Q6J("ngIf",null==t.errors?null:t.errors.required),e.xp6(1),e.Q6J("ngIf",t.invalid)}}const p=function(i){return{"ng-invalid ng-dirty ng-untouched":i}};function Ut(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",81),e.TgZ(1,"p-radioButton",82),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().embarkationDTO.gender=a}),e.qZA(),e.TgZ(2,"label",83),e._uU(3),e.qZA(),e.qZA()}if(2&i){const t=r.$implicit,n=e.oxw();e.xp6(1),e.Q6J("inputId",t.value)("value",t.value)("disabled",n.disableAllFileds)("ngClass",e.VKq(7,p,n.embarkationDTO.genderRequired))("ngModel",n.embarkationDTO.gender),e.xp6(1),e.Q6J("for",t.value),e.xp6(1),e.Oqu(t.label)}}function It(i,r){1&i&&(e.TgZ(0,"p",80),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"departureCard.address1")," ",e.lcZ(3,4,"common.required"),""))}function St(i,r){1&i&&(e.TgZ(0,"p",80),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"common.invalid")," ",e.lcZ(3,4,"departureCard.address1"),""))}function Et(i,r){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,It,4,6,"p",79),e.YNc(2,St,4,6,"p",79),e.qZA()),2&i){e.oxw();const t=e.MAs(93);e.xp6(1),e.Q6J("ngIf",null==t.errors?null:t.errors.required),e.xp6(1),e.Q6J("ngIf",t.invalid)}}function Pt(i,r){1&i&&(e.TgZ(0,"p",80),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"departureCard.address2")," ",e.lcZ(3,4,"common.required"),""))}function Jt(i,r){1&i&&(e.TgZ(0,"p",80),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"common.invalid")," ",e.lcZ(3,4,"departureCard.address2"),""))}function Lt(i,r){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,Pt,4,6,"p",79),e.YNc(2,Jt,4,6,"p",79),e.qZA()),2&i){e.oxw();const t=e.MAs(102);e.xp6(1),e.Q6J("ngIf",null==t.errors?null:t.errors.required),e.xp6(1),e.Q6J("ngIf",t.invalid)}}function Rt(i,r){1&i&&(e.TgZ(0,"p",80),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"departureCard.city")," ",e.lcZ(3,4,"common.required"),""))}function Ft(i,r){1&i&&(e.TgZ(0,"p",80),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"common.invalid")," ",e.lcZ(3,4,"departureCard.city"),""))}function Qt(i,r){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,Rt,4,6,"p",79),e.YNc(2,Ft,4,6,"p",79),e.qZA()),2&i){e.oxw();const t=e.MAs(111);e.xp6(1),e.Q6J("ngIf",null==t.errors?null:t.errors.required),e.xp6(1),e.Q6J("ngIf",t.invalid)}}function Bt(i,r){1&i&&(e.TgZ(0,"p",80),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"departureCard.job")," ",e.lcZ(3,4,"common.required"),""))}function Yt(i,r){1&i&&(e.TgZ(0,"p",80),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"common.invalid")," ",e.lcZ(3,4,"departureCard.job"),""))}function Ht(i,r){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,Bt,4,6,"p",79),e.YNc(2,Yt,4,6,"p",79),e.qZA()),2&i){e.oxw();const t=e.MAs(7);e.xp6(1),e.Q6J("ngIf",null==t.errors?null:t.errors.required),e.xp6(1),e.Q6J("ngIf",t.invalid)}}function jt(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",31),e.TgZ(1,"label",32),e._uU(2),e.ALo(3,"translate"),e.TgZ(4,"span",33),e._uU(5,"*"),e.qZA(),e.qZA(),e.TgZ(6,"input",84,85),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().embarkationDTO.occupation=a}),e.qZA(),e.YNc(8,Ht,3,2,"div",36),e.qZA()}if(2&i){const t=e.MAs(7),n=e.oxw();e.xp6(2),e.hij("11. ",e.lcZ(3,5,"departureCard.job")," "),e.xp6(4),e.Q6J("ngModel",n.embarkationDTO.occupation)("ngClass",e.VKq(7,p,n.embarkationDTO.occupationRequired))("disabled",n.disableAllFileds),e.xp6(2),e.Q6J("ngIf",t.invalid&&(t.dirty||t.touched))}}function zt(i,r){1&i&&(e.TgZ(0,"p",80),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"departureCard.parentpassport")," ",e.lcZ(3,4,"common.required"),""))}function Kt(i,r){1&i&&(e.TgZ(0,"p",80),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"common.invalid")," ",e.lcZ(3,4,"departureCard.parentpassport"),""))}function Vt(i,r){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,zt,4,6,"p",79),e.YNc(2,Kt,4,6,"p",79),e.qZA()),2&i){e.oxw();const t=e.MAs(5);e.xp6(1),e.Q6J("ngIf",null==t.errors?null:t.errors.required),e.xp6(1),e.Q6J("ngIf",t.invalid)}}function Gt(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",31),e.TgZ(1,"label",32),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"input",86,87),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().embarkationDTO.guardianPassportNo=a}),e.qZA(),e.YNc(6,Vt,3,2,"div",36),e.qZA()}if(2&i){const t=e.MAs(5),n=e.oxw();e.xp6(2),e.hij("11. ",e.lcZ(3,4,"departureCard.parentpassport"),""),e.xp6(2),e.Q6J("disabled",n.disableAllFileds)("ngModel",n.embarkationDTO.guardianPassportNo),e.xp6(2),e.Q6J("ngIf",t.invalid&&(t.dirty||t.touched))}}function Wt(i,r){1&i&&(e.TgZ(0,"p",80),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"common.invalid")," ",e.lcZ(3,4,"departureCard.email"),""))}function $t(i,r){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,Wt,4,6,"p",79),e.qZA()),2&i){e.oxw();const t=e.MAs(127);e.xp6(1),e.Q6J("ngIf",t.invalid)}}function Xt(i,r){1&i&&(e.TgZ(0,"span",33),e._uU(1,"*"),e.qZA())}function ei(i,r){1&i&&(e.TgZ(0,"p",80),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"common.invalid")," ",e.lcZ(3,4,"departureCard.mobileno"),""))}function ti(i,r){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,ei,4,6,"p",79),e.qZA()),2&i){e.oxw();const t=e.MAs(135);e.xp6(1),e.Q6J("ngIf",t.invalid)}}function ii(i,r){1&i&&(e.TgZ(0,"p",80),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"departureCard.other")," ",e.lcZ(3,4,"common.required"),""))}function ni(i,r){1&i&&(e.TgZ(0,"p",80),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"common.invalid")," ",e.lcZ(3,4,"departureCard.other"),""))}function ai(i,r){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,ii,4,6,"p",79),e.YNc(2,ni,4,6,"p",79),e.qZA()),2&i){e.oxw();const t=e.MAs(7);e.xp6(1),e.Q6J("ngIf",null==t.errors?null:t.errors.required),e.xp6(1),e.Q6J("ngIf",t.invalid)}}function ri(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",31),e.TgZ(1,"label",32),e._uU(2),e.ALo(3,"translate"),e.TgZ(4,"span",33),e._uU(5," *"),e.qZA(),e.qZA(),e.TgZ(6,"input",88,89),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().embarkationDTO.purposeDescription=a}),e.qZA(),e.YNc(8,ai,3,2,"div",36),e.qZA()}if(2&i){const t=e.MAs(7),n=e.oxw();e.xp6(2),e.hij("",e.lcZ(3,5,"departureCard.other")," "),e.xp6(4),e.Q6J("ngModel",n.embarkationDTO.purposeDescription)("ngClass",e.VKq(7,p,n.embarkationDTO.purposeDescriptionRequired))("disabled",n.disableAllFileds),e.xp6(2),e.Q6J("ngIf",t.invalid&&(t.dirty||t.touched))}}function oi(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",81),e.TgZ(1,"p-radioButton",82),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().embarkationDTO.travelPattern=a}),e.qZA(),e.TgZ(2,"label",83),e._uU(3),e.qZA(),e.qZA()}if(2&i){const t=r.$implicit,n=e.oxw();e.xp6(1),e.Q6J("inputId",t.value)("value",t.value)("disabled",n.disableAllFileds)("ngClass",e.VKq(7,p,n.embarkationDTO.travelPatternRequired))("ngModel",n.embarkationDTO.travelPattern),e.xp6(1),e.Q6J("for",t.value),e.xp6(1),e.Oqu(t.label)}}function si(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",81),e.TgZ(1,"p-radioButton",90),e.NdJ("onClick",function(){return e.CHM(t),e.oxw().onClickModeArrival()})("ngModelChange",function(a){return e.CHM(t),e.oxw().embarkationDTO.modeOfExit=a}),e.qZA(),e.TgZ(2,"label",83),e._uU(3),e.qZA(),e.qZA()}if(2&i){const t=r.$implicit,n=e.oxw();e.xp6(1),e.Q6J("inputId",t.value)("value",t.value)("disabled",n.disableAllFileds)("ngClass",e.VKq(7,p,n.embarkationDTO.modeOfExitRequired))("ngModel",n.embarkationDTO.modeOfExit),e.xp6(1),e.Q6J("for",t.value),e.xp6(1),e.Oqu(t.label)}}const v=function(){return{width:"100%"}};function li(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"p-dropdown",48),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).embarkationDTO.portOfExit=a}),e.qZA()}if(2&i){const t=e.oxw(2);e.Akn(e.DdM(9,v)),e.Q6J("options",t.airLocalportsList)("virtualScroll",!0)("ngClass",e.VKq(10,p,t.embarkationDTO.portOfExitRequired))("disabled",t.disableAllFileds)("ngModel",t.embarkationDTO.portOfExit)("showClear",!0)("filter",!0)}}function di(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"p-dropdown",48),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).embarkationDTO.portOfExit=a}),e.qZA()}if(2&i){const t=e.oxw(2);e.Akn(e.DdM(9,v)),e.Q6J("options",t.seaLocalportsList)("virtualScroll",!0)("ngClass",e.VKq(10,p,t.embarkationDTO.portOfExitRequired))("disabled",t.disableAllFileds)("ngModel",t.embarkationDTO.portOfExit)("showClear",!0)("filter",!0)}}function pi(i,r){if(1&i&&(e.TgZ(0,"div",31),e.TgZ(1,"label",32),e._uU(2),e.ALo(3,"translate"),e.TgZ(4,"span",33),e._uU(5,"*"),e.qZA(),e.qZA(),e.YNc(6,li,1,12,"p-dropdown",91),e.YNc(7,di,1,12,"p-dropdown",91),e.qZA()),2&i){const t=e.oxw();e.xp6(2),e.hij("19. ",e.lcZ(3,3,"departureCard.portofexit")," "),e.xp6(4),e.Q6J("ngIf","A"==t.embarkationDTO.modeOfExit),e.xp6(1),e.Q6J("ngIf","S"==t.embarkationDTO.modeOfExit)}}function ui(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"p-dropdown",93),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).embarkationDTO.portOfFinalDestination=a}),e.qZA()}if(2&i){const t=e.oxw(2);e.Akn(e.DdM(9,v)),e.Q6J("options",t.airportsList)("virtualScroll",!0)("disabled",t.disableAllFileds)("ngClass",e.VKq(10,p,t.embarkationDTO.portOfFinalDestinationRequired))("ngModel",t.embarkationDTO.portOfFinalDestination)("showClear",!0)("filter",!0)}}function ci(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"p-dropdown",93),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).embarkationDTO.portOfFinalDestination=a}),e.qZA()}if(2&i){const t=e.oxw(2);e.Akn(e.DdM(9,v)),e.Q6J("options",t.seaportsList)("virtualScroll",!0)("disabled",t.disableAllFileds)("ngClass",e.VKq(10,p,t.embarkationDTO.portOfFinalDestinationRequired))("ngModel",t.embarkationDTO.portOfFinalDestination)("showClear",!0)("filter",!0)}}function mi(i,r){if(1&i&&(e.TgZ(0,"div",31),e.TgZ(1,"label",32),e._uU(2),e.ALo(3,"translate"),e.TgZ(4,"span",33),e._uU(5,"*"),e.qZA(),e.qZA(),e.YNc(6,ui,1,12,"p-dropdown",92),e.YNc(7,ci,1,12,"p-dropdown",92),e.qZA()),2&i){const t=e.oxw();e.xp6(2),e.hij("20. ",e.lcZ(3,3,"departureCard.portoffinaldestination")," "),e.xp6(4),e.Q6J("ngIf","A"==t.embarkationDTO.modeOfExit),e.xp6(1),e.Q6J("ngIf","S"==t.embarkationDTO.modeOfExit)}}function gi(i,r){1&i&&(e.TgZ(0,"p",80),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"departureCard.portoffinaldestination")," ",e.lcZ(3,4,"common.required"),""))}function hi(i,r){1&i&&(e.TgZ(0,"p",80),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&i&&(e.xp6(1),e.AsE("",e.lcZ(2,2,"common.invalid")," ",e.lcZ(3,4,"departureCard.portoffinaldestination"),""))}function _i(i,r){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,gi,4,6,"p",79),e.YNc(2,hi,4,6,"p",79),e.qZA()),2&i){e.oxw();const t=e.MAs(7);e.xp6(1),e.Q6J("ngIf",null==t.errors?null:t.errors.required),e.xp6(1),e.Q6J("ngIf",t.invalid)}}function fi(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",31),e.TgZ(1,"label",32),e._uU(2),e.ALo(3,"translate"),e.TgZ(4,"span",33),e._uU(5," *"),e.qZA(),e.qZA(),e.TgZ(6,"input",88,94),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().embarkationDTO.portOfFinalDestiDesc=a}),e.qZA(),e.YNc(8,_i,3,2,"div",36),e.qZA()}if(2&i){const t=e.MAs(7),n=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,5,"departureCard.portoffinaldestination"),""),e.xp6(4),e.Q6J("ngModel",n.embarkationDTO.portOfFinalDestiDesc)("ngClass",e.VKq(7,p,n.embarkationDTO.portOfFinalDestiDescRequired))("disabled",n.disableAllFileds),e.xp6(2),e.Q6J("ngIf",t.invalid&&(t.dirty||t.touched))}}function bi(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",95),e.TgZ(1,"div",96),e.TgZ(2,"div",20),e.TgZ(3,"p-checkbox",97),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().approvedInfomation=a}),e.qZA(),e.TgZ(4,"label",62),e._uU(5,"I hereby declare that the information given above is correct and true."),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.xp6(3),e.Q6J("ngModel",t.approvedInfomation)("ngClass",e.VKq(3,p,t.enableRequiredCheckbox))("binary",!0)}}const ie=function(){return{"margin-right":"12px"}};function Ti(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",27),e._UZ(1,"div",98),e.TgZ(2,"div",99),e.TgZ(3,"p-button",100),e.NdJ("onClick",function(){return e.CHM(t),e.oxw().submitDepartureCard()}),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"p-button",101),e.NdJ("onClick",function(){return e.CHM(t),e.oxw().cancelSubmit()}),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=e.oxw();e.xp6(3),e.s9C("label",e.lcZ(4,5,"common.submitandconfirm")),e.Q6J("disabled",t.disableSubmitButtons),e.xp6(2),e.s9C("label",e.lcZ(6,7,"common.edit")),e.Q6J("disabled",t.disableSubmitButtons)("ngStyle",e.DdM(9,ie))}}function Zi(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",102),e._UZ(1,"div",98),e.TgZ(2,"div",99),e.TgZ(3,"p-button",100),e.NdJ("onClick",function(){return e.CHM(t),e.oxw().checkDepartureCard()}),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"p-button",103),e.NdJ("onClick",function(){return e.CHM(t),e.oxw().clearDepartureCard()}),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA()}if(2&i){e.oxw();const t=e.MAs(46),n=e.MAs(69),a=e.MAs(93),o=e.MAs(102),l=e.MAs(111),u=e.MAs(127),f=e.MAs(135);e.xp6(3),e.s9C("label",e.lcZ(4,4,"common.continue")),e.Q6J("disabled",t.invalid||n.invalid||a.invalid||o.invalid||l.invalid||u.invalid||f.invalid),e.xp6(2),e.s9C("label",e.lcZ(6,6,"common.clear")),e.Q6J("ngStyle",e.DdM(8,ie))}}const ne=function(){return{width:"40vw"}},ae=function(){return{"960px":"75vw","640px":"100vw"}};let vi=(()=>{class i{constructor(t,n,a,o,l,u){this.sanitizer=t,this.router=n,this.translate=a,this.httpReferenceService=o,this.route=l,this.applicationService=u,this.currentDate=new Date,this.embarkationDTO=new Y,this.hideOccupation=!1,this.disableAllFileds=!1,this.enableSubmitRow=!1,this.enableContinueRow=!0,this.displayInstructionModal=!1,this.displayImageModal=!1,this.enableGuardianPassportNo=!1,this.passportNumberPattern="^[A-Za-z0-9]*$",this.contactNumberPattern="^\\d{10}$",this.emailAddressPattern="w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*",this.approvedInfomation=!1,this.enableRequiredCheckbox=!1,this.enableKioshPath=!1,this.disableSubmitButtons=!1,this.threeDays=new Date,this.birthDate=new Date}ngOnInit(){this.threeDays.setDate(this.threeDays.getDate()+7),this.birthDate.setDate(this.birthDate.getDate()-43830),setTimeout(()=>{this.route.params.subscribe(t=>{var n;null!=t.passport&&(this.PASSPORT_NO=t.passport.trim(),this.MOBILE_NO=null===(n=sessionStorage.getItem("mobile_no"))||void 0===n?void 0:n.toString(),this.getPassportDetails()),"k"==t.type?this.enableKioshPath=!0:"w"==t.type&&(this.enableKioshPath=!1),this.source=t.type.trim().toUpperCase()})}),this.genderList=[{label:"Male",value:"M"},{label:"Female",value:"F"},{label:"Other",value:"O"}],this.modeOfExitList=[{label:"Air",value:"A"},{label:"Sea",value:"S"}],this.travelPatternList=[{label:"Individual",value:"I"},{label:"Family",value:"F"},{label:"Group",value:"G"}],this.requestMultipleData().subscribe(t=>{this.countryList=t[0],this.districtList=t[1],this.airportsList=t[2],this.seaportsList=t[3],this.purposeList=t[4],this.airLocalportsList=t[5],this.seaLocalportsList=t[6]})}onLanguageSelect(t){t&&this.translate.setDefaultLang(t)}validateDate(t){var n=t.getFullYear(),a=t.getMonth()+1,o=t.getDate();return(o<10?"0"+o:o)+"/"+(a<10?"0"+a:a)+"/"+n}getPassportDetails(){let t=new Y;t.passportNo=this.PASSPORT_NO,t.mobileNumber=this.MOBILE_NO,this.embarkationDTO=t}requestMultipleData(){let t=this.httpReferenceService.getAllCountries(),n=this.httpReferenceService.getAllDistricts(),a=this.httpReferenceService.getAirPorts(),o=this.httpReferenceService.getSeaPorts(),l=this.httpReferenceService.getPurposeList(),u=this.httpReferenceService.getAirLocalPorts(),f=this.httpReferenceService.getSeaLocalPorts();return(0,R.D)([t,n,a,o,l,u,f])}validateBeforeSave(){this.embarkationDTO.flightNoShipNameRequired=null==this.embarkationDTO.flightNoShipName||null==this.embarkationDTO.flightNoShipName||""==this.embarkationDTO.flightNoShipName.trim(),this.embarkationDTO.passportNoRequired=null==this.embarkationDTO.passportNo||null==this.embarkationDTO.passportNo||""==this.embarkationDTO.passportNo.trim(),this.embarkationDTO.nameWithInitialsRequired=null==this.embarkationDTO.nameWithInitials||null==this.embarkationDTO.nameWithInitials||""==this.embarkationDTO.nameWithInitials.trim(),this.embarkationDTO.genderRequired=null==this.embarkationDTO.gender||null==this.embarkationDTO.gender||""==this.embarkationDTO.gender.trim(),this.embarkationDTO.dateOfBirthRequired=null==this.embarkationDTO.dateOfBirth||null==this.embarkationDTO.dateOfBirth,this.embarkationDTO.addressOneRequired=null==this.embarkationDTO.addressOne||null==this.embarkationDTO.addressOne||""==this.embarkationDTO.addressOne.trim(),this.embarkationDTO.addressTwoRequired=null==this.embarkationDTO.addressTwo||null==this.embarkationDTO.addressTwo||""==this.embarkationDTO.addressTwo.trim(),this.embarkationDTO.cityRequired=null==this.embarkationDTO.city||null==this.embarkationDTO.city||""==this.embarkationDTO.city.trim(),this.embarkationDTO.dateOfExitRequired=null==this.embarkationDTO.dateOfExit||null==this.embarkationDTO.dateOfExit,this.embarkationDTO.districtRequired=null==this.embarkationDTO.district||null==this.embarkationDTO.district||""==this.embarkationDTO.district.trim(),this.embarkationDTO.countryOfTravelRequired=null==this.embarkationDTO.countryOfTravel||null==this.embarkationDTO.countryOfTravel||""==this.embarkationDTO.countryOfTravel.trim(),null!=this.embarkationDTO.purposeCode&&null!=this.embarkationDTO.purposeCode&&""!=this.embarkationDTO.purposeCode.trim()?(this.embarkationDTO.purposeCodeRequired=!1,"009"==this.embarkationDTO.purposeCode?(this.embarkationDTO.purposeDescriptionRequired=!0,this.embarkationDTO.purposeDescriptionRequired=null==this.embarkationDTO.purposeDescription||null==this.embarkationDTO.purposeDescription||""==this.embarkationDTO.purposeDescription.trim()):this.embarkationDTO.purposeDescriptionRequired=!1):this.embarkationDTO.purposeCodeRequired=!0,this.embarkationDTO.travelPatternRequired=null==this.embarkationDTO.travelPattern||null==this.embarkationDTO.travelPattern||""==this.embarkationDTO.travelPattern.trim(),this.embarkationDTO.portOfExitRequired=null==this.embarkationDTO.portOfExit||null==this.embarkationDTO.portOfExit||""==this.embarkationDTO.portOfExit.trim(),this.embarkationDTO.modeOfExitRequired=null==this.embarkationDTO.modeOfExit||null==this.embarkationDTO.modeOfExit||""==this.embarkationDTO.modeOfExit.trim(),null!=this.embarkationDTO.portOfFinalDestination&&null!=this.embarkationDTO.portOfFinalDestination&&""!=this.embarkationDTO.portOfFinalDestination.trim()?(this.embarkationDTO.portOfFinalDestinationRequired=!1,"OTH_A"==this.embarkationDTO.portOfFinalDestination||"OTH_S"==this.embarkationDTO.portOfFinalDestination?(this.embarkationDTO.portOfFinalDestiDescRequired=!0,this.embarkationDTO.portOfFinalDestiDescRequired=null==this.embarkationDTO.portOfFinalDestiDesc||null==this.embarkationDTO.portOfFinalDestiDesc||""==this.embarkationDTO.portOfFinalDestiDesc.trim()):this.embarkationDTO.portOfFinalDestiDescRequired=!1):this.embarkationDTO.portOfFinalDestinationRequired=!0,this.embarkationDTO.occupationRequired=!this.hideOccupation&&(null==this.embarkationDTO.occupation||null==this.embarkationDTO.occupation||""==this.embarkationDTO.occupation.trim())}checkDepartureCard(){this.validateBeforeSave(),this.mandatoryMissing=!1,this.embarkationDTO.flightNoShipNameRequired||this.embarkationDTO.passportNoRequired||this.embarkationDTO.nameWithInitialsRequired||this.embarkationDTO.genderRequired||this.embarkationDTO.dateOfBirthRequired||this.embarkationDTO.addressOneRequired||this.embarkationDTO.addressTwoRequired||this.embarkationDTO.cityRequired||this.embarkationDTO.occupationRequired||this.embarkationDTO.dateOfExitRequired||this.embarkationDTO.countryOfTravelRequired||this.embarkationDTO.purposeCodeRequired||this.embarkationDTO.purposeDescriptionRequired||this.embarkationDTO.travelPatternRequired||this.embarkationDTO.portOfExitRequired||this.embarkationDTO.modeOfExitRequired||this.embarkationDTO.portOfFinalDestinationRequired||this.embarkationDTO.portOfFinalDestiDescRequired||this.embarkationDTO.districtRequired?(this.mandatoryMissing=!0,this.confirmationService.confirm({message:this.translate.instant("Please fill all mandatory fields."),header:"",key:"warning"})):(this.disableAllFileds=!0,this.enableContinueRow=!1,this.enableSubmitRow=!0,this.confirmationService.confirm({message:this.translate.instant("Please confirm the details before you submit."),header:"",key:"info"}))}clearDepartureCard(){this.embarkationDTO=new Y,this.embarkationDTO.passportNo=this.PASSPORT_NO,this.embarkationDTO.mobileNumber=this.MOBILE_NO,this.hideOccupation=!1,this.enableGuardianPassportNo=!1,this.router.navigate(this.enableKioshPath?["/home-page/kiosk"]:["/home-page"])}setPurposeDescription(){this.purposeList.forEach(t=>{this.embarkationDTO.purposeCode==t.code&&"009"!=t.code&&(this.embarkationDTO.purposeDescription=t.description)})}setPortDescription(){"A"==this.embarkationDTO.modeOfExit&&this.airportsList.forEach(t=>{this.embarkationDTO.portOfFinalDestination==t.code&&"OTH_A"!=t.code&&(this.embarkationDTO.portOfFinalDestiDesc=t.description)}),"S"==this.embarkationDTO.modeOfExit&&this.seaportsList.forEach(t=>{this.embarkationDTO.portOfFinalDestination==t.code&&"OTH_S"!=t.code&&(this.embarkationDTO.portOfFinalDestiDesc=t.description)})}submitDepartureCard(){this.approvedInfomation&&!this.mandatoryMissing?(this.enableRequiredCheckbox=!1,this.setPurposeDescription(),this.setPortDescription(),this.embarkationDTO.source=this.source,this.embarkationDTO.passportPhoto=null,this.applicationService.saveEmbarkation(this.embarkationDTO).subscribe({next:t=>{this.confirmationService.confirm(0==t.code?{message:this.translate.instant("messagesDeparture.savesuccessmessage"),header:"",key:"success",accept:()=>this.router.navigate(this.enableKioshPath?["/home-page/kiosk"]:["/home-page"])}:{message:this.translate.instant("messagesDeparture.saveerrormessage"),header:"Error",key:"okDialog"})},error:t=>{}})):(this.enableRequiredCheckbox=!0,this.confirmationService.confirm({message:this.translate.instant("Please accept that the information given above is correct and true."),header:"",key:"info"}))}cancelSubmit(){this.disableAllFileds=!1,this.enableContinueRow=!0,this.enableSubmitRow=!1,this.embarkationDTO.flightNoShipNameRequired=!0,this.embarkationDTO.passportNoRequired=!0,this.embarkationDTO.nameWithInitialsRequired=!0,this.embarkationDTO.genderRequired=!0,this.embarkationDTO.dateOfBirthRequired=!0,this.embarkationDTO.addressOneRequired=!0,this.embarkationDTO.addressTwoRequired=!0,this.embarkationDTO.cityRequired=!0,this.embarkationDTO.districtRequired=!0,this.embarkationDTO.occupationRequired=!0,this.embarkationDTO.dateOfExitRequired=!0,this.embarkationDTO.countryOfTravelRequired=!0,this.embarkationDTO.purposeCodeRequired=!0,this.embarkationDTO.purposeDescriptionRequired=!0,this.embarkationDTO.travelPatternRequired=!0,this.embarkationDTO.portOfExitRequired=!0,this.embarkationDTO.modeOfExitRequired=!0,this.embarkationDTO.portOfFinalDestinationRequired=!0,this.embarkationDTO.portOfFinalDestiDescRequired=!0,this.embarkationDTO.expectedDateOfReturnRequired=!0,this.embarkationDTO.mobileNumberRequired=!0,this.embarkationDTO.emailAddressRequired=!0,this.embarkationDTO.sourceRequired=!0,this.embarkationDTO.referenceNoRequired=!0,this.embarkationDTO.createdDateAndTimeRequired=!0,this.embarkationDTO.guardianPassportNoRequired=!0}onDateOfBirthChange(){let t=Math.abs(Date.now()-this.embarkationDTO.dateOfBirth.getTime());Math.floor(t/864e5/365.25)<16?(this.hideOccupation=!0,this.enableGuardianPassportNo=!0):(this.hideOccupation=!1,this.enableGuardianPassportNo=!1)}showInstruction(){this.displayInstructionModal=!0}showImage(){this.displayImageModal=!0}onClickModeArrival(){this.embarkationDTO.portOfExit=void 0,this.embarkationDTO.portOfFinalDestination=void 0}naviageToHome(){this.router.navigate(this.enableKioshPath?["/home-page/kiosk"]:["/home-page"])}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(D.H7),e.Y36(h.F0),e.Y36(g.sK),e.Y36(Q),e.Y36(h.gz),e.Y36(B))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-departure-card"]],viewQuery:function(t,n){if(1&t&&e.Gf(b,5),2&t){let a;e.iGM(a=e.CRH())&&(n.confirmationService=a.first)}},decls:240,vars:189,consts:[[1,"formBody"],[1,"page-nav"],[1,"page-nav--slip"],[1,"page-nav--main"],[1,""],[1,"flex-sl-container","flex-sl-align-items--center","item-cage"],[1,"flex-sl-item","departure-flight-icon"],["src","assets/img/departure_flight_icon.png"],[1,"flex-sl-container","flex-sl-item","heading-txt"],["translate","",1,"id-sl"],["translate","",1,"form-sub-heading"],[1,"flex-sl-item"],[1,"flex","m-3"],["type","button",1,"button-language__start",3,"click"],["type","button",1,"button-language",2,"height","46px",3,"click"],["type","button",1,"button-language__end",3,"click"],["type","button","tooltipPosition","bottom","pTooltip","Home",1,"button-sign-in","home-icon-btn",3,"click"],[1,"pi","pi-home","home-icon"],[1,"form-body-background"],[1,"q-warning","mt-3"],[1,"flex","align-items-center","p-3"],[1,"pi","pi-info-circle","iil-txt-error"],["translate","",1,"ml-3","iil-txt-error"],[1,"grid","pl-3","m-0"],[1,"col-12","md:col-8","pl-0","pr-3","mt-2","mb-2"],[1,"departure-card-form"],[1,"departureContainer"],[1,"grid"],[1,"col-12","md:col-12","lg:col-12"],["class","float-right",4,"ngIf"],[1,"grid","p-fluid"],[1,"field","col-12","md:col-6"],[1,"iil-txt-small"],[1,"iil-txt-error","ml-0"],["autofocus","","type","text","pattern","^[A-Za-z0-9 -]*$","required","true","maxlength","50","minlength","3","oninput","this.value = this.value.toUpperCase()","pInputText","","placeholder","e.g. UL121",1,"inputfield","w-full",3,"disabled","ngModel","ngClass","ngModelChange"],["flightNoShipName","ngModel"],[4,"ngIf"],["dateFormat","dd-mm-yy","inputId","basic",3,"ngModel","minDate","maxDate","disabled","showIcon","ngClass","ngModelChange"],["type","text","maxlength","10","minlength","8","oninput","this.value = this.value.toUpperCase()","pInputText","",1,"inputfield","w-full",3,"disabled","ngModel","ngClass","ngModelChange"],["type","text","maxlength","50","minlength","3","pattern","^[A-Za-z .-]*$","required","true","oninput","this.value = this.value.toUpperCase()","pInputText","",1,"inputfield","w-full",3,"disabled","ngModel","ngClass","ngModelChange"],["nameWithInitials","ngModel"],[2,"display","flex"],["class","field-checkbox","style","margin-right: 5px;",4,"ngFor","ngForOf"],["dateFormat","dd-mm-yy","inputId","basic",3,"ngModel","maxDate","minDate","disabled","showIcon","ngClass","ngModelChange","onSelect"],["type","text","minlength","3","maxlength","100","pattern","^[A-Za-z0-9 .,/-]*$","required","true","oninput","this.value = this.value.toUpperCase()","pInputText","",1,"inputfield","w-full",3,"disabled","ngClass","ngModel","ngModelChange"],["addressOne","ngModel"],["addressTwo","ngModel"],["city","ngModel"],["filterMatchMode","startsWith","placeholder","Select an Option","optionLabel","description","optionValue","code",3,"options","virtualScroll","ngClass","disabled","ngModel","showClear","filter","ngModelChange"],["class","field col-12 md:col-6",4,"ngIf"],["type","email","maxlength","100","minlength","5","pattern","^[A-Za-z0-9@.!#$%&'*+/=?^_`{|}~-]*$","pInputText","",1,"inputfield","w-full",3,"disabled","ngModel","ngModelChange"],["emailAddress","ngModel"],["class","iil-txt-error ml-0",4,"ngIf"],["type","text","maxlength","10","minlength","10","oninput","this.value = this.value.toUpperCase()","pInputText","",1,"inputfield","w-full",3,"pattern","disabled","ngModel","ngModelChange"],["mobileNumber","ngModel"],["dateFormat","dd-mm-yy","inputId","basic",3,"ngModel","showIcon","minDate","disabled","ngModelChange"],["class","full-width",4,"ngIf"],["class","grid",4,"ngIf"],["class","grid pb-2",4,"ngIf"],[1,"col-12","md:col-4","pl-0","pr-3","mt-2","mb-2"],[1,"departure-card-instructions-container"],["translate","",1,"form-sub-heading","mb-3"],["translate",""],[1,"pi","pi-check-circle","info-check-circle-icon"],[1,"iil-txt-small",2,"color","red","margin","0px 5px 0px 5px"],[1,"instructions-vector"],["src","assets/img/instructions_icon.png",2,"height","100%","width","100%"],[1,"footer-txt"],[1,"shadow-line-bottom"],["header","Instructions",3,"closeOnEscape","visible","modal","breakpoints","baseZIndex","draggable","resizable","visibleChange"],[1,"formContainer"],[1,"card"],[1,"pi","pi-check-circle"],[2,"color","red","margin","0px 5px 0px 5px"],["header","Passenger Photograph",3,"closeOnEscape","visible","modal","breakpoints","baseZIndex","draggable","resizable","visibleChange"],[1,"card",2,"text-align","center"],[3,"src"],[1,"float-right"],[2,"width","100px",3,"src"],["class","iil-txt-error",4,"ngIf"],[1,"iil-txt-error"],[1,"field-checkbox",2,"margin-right","5px"],["name","category",3,"inputId","value","disabled","ngClass","ngModel","ngModelChange"],[3,"for"],["type","text","minlength","3","maxlength","100","pattern","^[A-Za-z0-9 .,/-]*$","required","true","oninput","this.value = this.value.toUpperCase()","pInputText","",1,"inputfield","w-full",3,"ngModel","ngClass","disabled","ngModelChange"],["occupation","ngModel"],["type","text","maxlength","10","minlength","6","pattern","^[A-Za-z0-9]*$","oninput","this.value = this.value.toUpperCase()","pInputText","",1,"inputfield","w-full",3,"disabled","ngModel","ngModelChange"],["guardianPassportNo","ngModel"],["type","text","maxlength","100","minlength","3","pattern","^[A-Za-z0-9 .-]*$","required","true","oninput","this.value = this.value.toUpperCase()","pInputText","",1,"inputfield","w-full",3,"ngModel","ngClass","disabled","ngModelChange"],["purposeDescription","ngModel"],["name","category",3,"inputId","value","disabled","ngClass","ngModel","onClick","ngModelChange"],["filterMatchMode","startsWith","placeholder","Select an Option","optionLabel","description","optionValue","code",3,"style","options","virtualScroll","ngClass","disabled","ngModel","showClear","filter","ngModelChange",4,"ngIf"],["filterMatchMode","startsWith","placeholder","Select an Option","optionLabel","description","optionValue","code",3,"style","options","virtualScroll","disabled","ngClass","ngModel","showClear","filter","ngModelChange",4,"ngIf"],["filterMatchMode","startsWith","placeholder","Select an Option","optionLabel","description","optionValue","code",3,"options","virtualScroll","disabled","ngClass","ngModel","showClear","filter","ngModelChange"],["portOfFinalDestiDesc","ngModel"],[1,"full-width"],[1,"q-agreement","mt-3","col-12","md:col-12"],["inputId","binary",1,"mr-2",3,"ngModel","ngClass","binary","ngModelChange"],[1,"col-12","md:col-6","lg:col-5"],[1,"col-12","md:col-6","lg:col-7","pr-5","pb-3"],[1,"float-right",3,"disabled","label","onClick"],[1,"float-right",3,"label","disabled","ngStyle","onClick"],[1,"grid","pb-2"],[1,"float-right",3,"label","ngStyle","onClick"]],template:function(t,n){if(1&t&&(e._UZ(0,"app-common-message"),e.TgZ(1,"body",0),e.TgZ(2,"div",1),e._UZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"div",6),e._UZ(8,"img",7),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"h1",9),e._uU(11,"home.departureApp"),e.qZA(),e.TgZ(12,"div",10),e._uU(13,"home.lblDepartureTipForm"),e.qZA(),e.qZA(),e.TgZ(14,"div",11),e.TgZ(15,"div",12),e.TgZ(16,"button",13),e.NdJ("click",function(){return n.onLanguageSelect("en")}),e._uU(17,"English"),e.qZA(),e.TgZ(18,"button",14),e.NdJ("click",function(){return n.onLanguageSelect("si")}),e._uU(19,"\u0dc3\u0dd2\u0d82\u0dc4\u0dbd"),e.qZA(),e.TgZ(20,"button",15),e.NdJ("click",function(){return n.onLanguageSelect("ta")}),e._uU(21,"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd"),e.qZA(),e.TgZ(22,"button",16),e.NdJ("click",function(){return n.naviageToHome()}),e._UZ(23,"i",17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(24,"div",18),e._UZ(25,"div",2),e.TgZ(26,"div",19),e.TgZ(27,"div",20),e._UZ(28,"i",21),e.TgZ(29,"label",22),e._uU(30,"departureCard.legalNotice"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"div",23),e.TgZ(32,"div",24),e.TgZ(33,"div",25),e.TgZ(34,"div",26),e.TgZ(35,"div",27),e.TgZ(36,"div",28),e.YNc(37,qt,2,1,"div",29),e.qZA(),e.qZA(),e.TgZ(38,"div",30),e.TgZ(39,"div",31),e.TgZ(40,"label",32),e._uU(41),e.ALo(42,"translate"),e.TgZ(43,"span",33),e._uU(44," *"),e.qZA(),e.qZA(),e.TgZ(45,"input",34,35),e.NdJ("ngModelChange",function(o){return n.embarkationDTO.flightNoShipName=o}),e.qZA(),e.YNc(47,Mt,3,2,"div",36),e.qZA(),e.TgZ(48,"div",31),e.TgZ(49,"label",32),e._uU(50),e.ALo(51,"translate"),e.TgZ(52,"span",33),e._uU(53,"*"),e.qZA(),e.qZA(),e.TgZ(54,"p-calendar",37),e.NdJ("ngModelChange",function(o){return n.embarkationDTO.dateOfExit=o}),e.qZA(),e.qZA(),e.TgZ(55,"div",31),e.TgZ(56,"label",32),e._uU(57),e.ALo(58,"translate"),e.TgZ(59,"span",33),e._uU(60,"*"),e.qZA(),e.qZA(),e.TgZ(61,"input",38),e.NdJ("ngModelChange",function(o){return n.embarkationDTO.passportNo=o}),e.qZA(),e.qZA(),e.TgZ(62,"div",31),e.TgZ(63,"label",32),e._uU(64),e.ALo(65,"translate"),e.TgZ(66,"span",33),e._uU(67," *"),e.qZA(),e.qZA(),e.TgZ(68,"input",39,40),e.NdJ("ngModelChange",function(o){return n.embarkationDTO.nameWithInitials=o}),e.qZA(),e.YNc(70,yt,3,2,"div",36),e.qZA(),e.TgZ(71,"div",31),e.TgZ(72,"label",32),e._uU(73),e.ALo(74,"translate"),e.TgZ(75,"span",33),e._uU(76," *"),e.qZA(),e.qZA(),e.TgZ(77,"div",41),e.YNc(78,Ut,4,9,"div",42),e.qZA(),e.qZA(),e.TgZ(79,"div",31),e.TgZ(80,"label",32),e._uU(81),e.ALo(82,"translate"),e.TgZ(83,"span",33),e._uU(84,"*"),e.qZA(),e.qZA(),e.TgZ(85,"p-calendar",43),e.NdJ("ngModelChange",function(o){return n.embarkationDTO.dateOfBirth=o})("onSelect",function(){return n.onDateOfBirthChange()}),e.qZA(),e.qZA(),e.TgZ(86,"div",31),e.TgZ(87,"label",32),e._uU(88),e.ALo(89,"translate"),e.TgZ(90,"span",33),e._uU(91,"*"),e.qZA(),e.qZA(),e.TgZ(92,"input",44,45),e.NdJ("ngModelChange",function(o){return n.embarkationDTO.addressOne=o}),e.qZA(),e.YNc(94,Et,3,2,"div",36),e.qZA(),e.TgZ(95,"div",31),e.TgZ(96,"label",32),e._uU(97),e.ALo(98,"translate"),e.TgZ(99,"span",33),e._uU(100,"*"),e.qZA(),e.qZA(),e.TgZ(101,"input",44,46),e.NdJ("ngModelChange",function(o){return n.embarkationDTO.addressTwo=o}),e.qZA(),e.YNc(103,Lt,3,2,"div",36),e.qZA(),e.TgZ(104,"div",31),e.TgZ(105,"label",32),e._uU(106),e.ALo(107,"translate"),e.TgZ(108,"span",33),e._uU(109," *"),e.qZA(),e.qZA(),e.TgZ(110,"input",44,47),e.NdJ("ngModelChange",function(o){return n.embarkationDTO.city=o}),e.qZA(),e.YNc(112,Qt,3,2,"div",36),e.qZA(),e.TgZ(113,"div",31),e.TgZ(114,"label",32),e._uU(115),e.ALo(116,"translate"),e.TgZ(117,"span",33),e._uU(118,"*"),e.qZA(),e.qZA(),e.TgZ(119,"p-dropdown",48),e.NdJ("ngModelChange",function(o){return n.embarkationDTO.district=o}),e.qZA(),e.qZA(),e.YNc(120,jt,9,9,"div",49),e.YNc(121,Gt,7,6,"div",49),e.TgZ(122,"div",31),e.TgZ(123,"label",32),e._uU(124),e.ALo(125,"translate"),e.qZA(),e.TgZ(126,"input",50,51),e.NdJ("ngModelChange",function(o){return n.embarkationDTO.emailAddress=o}),e.qZA(),e.YNc(128,$t,2,1,"div",36),e.qZA(),e.TgZ(129,"div",31),e.TgZ(130,"label",32),e._uU(131),e.ALo(132,"translate"),e.YNc(133,Xt,2,0,"span",52),e.qZA(),e.TgZ(134,"input",53,54),e.NdJ("ngModelChange",function(o){return n.embarkationDTO.mobileNumber=o}),e.qZA(),e.YNc(136,ti,2,1,"div",36),e.qZA(),e.TgZ(137,"div",31),e.TgZ(138,"label",32),e._uU(139),e.ALo(140,"translate"),e.TgZ(141,"span",33),e._uU(142,"*"),e.qZA(),e.qZA(),e.TgZ(143,"p-dropdown",48),e.NdJ("ngModelChange",function(o){return n.embarkationDTO.countryOfTravel=o}),e.qZA(),e.qZA(),e.TgZ(144,"div",31),e.TgZ(145,"label",32),e._uU(146),e.ALo(147,"translate"),e.TgZ(148,"span",33),e._uU(149,"*"),e.qZA(),e.qZA(),e.TgZ(150,"p-dropdown",48),e.NdJ("ngModelChange",function(o){return n.embarkationDTO.purposeCode=o}),e.qZA(),e.qZA(),e.YNc(151,ri,9,9,"div",49),e.TgZ(152,"div",31),e.TgZ(153,"label",32),e._uU(154),e.ALo(155,"translate"),e.TgZ(156,"span",33),e._uU(157,"*"),e.qZA(),e.qZA(),e.TgZ(158,"div",41),e.YNc(159,oi,4,9,"div",42),e.qZA(),e.qZA(),e.TgZ(160,"div",31),e.TgZ(161,"label",32),e._uU(162),e.ALo(163,"translate"),e.qZA(),e.TgZ(164,"p-calendar",55),e.NdJ("ngModelChange",function(o){return n.embarkationDTO.expectedDateOfReturn=o}),e.qZA(),e.qZA(),e.TgZ(165,"div",31),e.TgZ(166,"label",32),e._uU(167),e.ALo(168,"translate"),e.TgZ(169,"span",33),e._uU(170,"*"),e.qZA(),e.qZA(),e.TgZ(171,"div",41),e.YNc(172,si,4,9,"div",42),e.qZA(),e.qZA(),e.YNc(173,pi,8,5,"div",49),e.YNc(174,mi,8,5,"div",49),e.YNc(175,fi,9,9,"div",49),e.YNc(176,bi,6,5,"div",56),e.qZA(),e.qZA(),e.TgZ(177,"div"),e.TgZ(178,"div",28),e.YNc(179,Ti,7,10,"div",57),e.YNc(180,Zi,7,9,"div",58),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(181,"div",59),e.TgZ(182,"div",60),e.TgZ(183,"div",61),e._uU(184,"departureCardInstructions.header"),e.qZA(),e.TgZ(185,"p",62),e._UZ(186,"i",63),e.TgZ(187,"span",64),e._uU(188,"*"),e.qZA(),e._uU(189," departureCardInstructions.lineOne"),e.qZA(),e._UZ(190,"p-divider"),e.TgZ(191,"p",62),e._UZ(192,"i",63),e._uU(193,"departureCardInstructions.lineTwo"),e.qZA(),e._UZ(194,"p-divider"),e.TgZ(195,"p",62),e._UZ(196,"i",63),e._uU(197,"departureCardInstructions.lineThree"),e.qZA(),e._UZ(198,"p-divider"),e.TgZ(199,"p",62),e._UZ(200,"i",63),e._uU(201," departureCardInstructions.lineFour"),e.qZA(),e._UZ(202,"p-divider"),e.TgZ(203,"div",65),e._UZ(204,"img",66),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(205,"footer"),e.TgZ(206,"div",67),e._uU(207),e.ALo(208,"translate"),e.qZA(),e._UZ(209,"div",68),e.qZA(),e.qZA(),e.TgZ(210,"p-dialog",69),e.NdJ("visibleChange",function(o){return n.displayInstructionModal=o}),e._UZ(211,"p-divider"),e.TgZ(212,"div",70),e.TgZ(213,"div",71),e.TgZ(214,"p",62),e._UZ(215,"i",72),e.TgZ(216,"span",73),e._uU(217,"*"),e.qZA(),e._uU(218," fields are mandatory."),e.qZA(),e._UZ(219,"p-divider"),e.TgZ(220,"p"),e._UZ(221,"i",72),e._uU(222," A separate card should be filled for each child travelling on parent's passport."),e.qZA(),e._UZ(223,"p-divider"),e.TgZ(224,"p"),e._UZ(225,"i",72),e._uU(226," Your passport must be valid for next six months."),e.qZA(),e._UZ(227,"p-divider"),e.TgZ(228,"p"),e._UZ(229,"i",72),e._uU(230," Children born overseas to Sri Lankan parents must be registed under Section 5 of Sub Section 2 of Citizenship Act with Department of Immigration and Emigration in Battaramulla"),e.qZA(),e._UZ(231,"p-divider"),e.TgZ(232,"p"),e._UZ(233,"i",72),e._uU(234," This is a legal document. False declaration can lead to penalties including confiscation of goods,fines, prosecution, imprisonment."),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(235,"p-dialog",74),e.NdJ("visibleChange",function(o){return n.displayImageModal=o}),e._UZ(236,"p-divider"),e.TgZ(237,"div",70),e.TgZ(238,"div",75),e._UZ(239,"img",76),e.qZA(),e.qZA(),e.qZA()),2&t){const a=e.MAs(46),o=e.MAs(69),l=e.MAs(93),u=e.MAs(102),f=e.MAs(111),M=e.MAs(127),z=e.MAs(135);e.xp6(37),e.Q6J("ngIf",n.enableKioshPath),e.xp6(4),e.hij("1. ",e.lcZ(42,124,"departureCard.flightno"),""),e.xp6(4),e.Q6J("disabled",n.disableAllFileds)("ngModel",n.embarkationDTO.flightNoShipName)("ngClass",e.VKq(160,p,n.embarkationDTO.flightNoShipNameRequired)),e.xp6(2),e.Q6J("ngIf",a.invalid&&(a.dirty||a.touched)),e.xp6(3),e.hij("2. ",e.lcZ(51,126,"departureCard.dateofdeparture")," "),e.xp6(4),e.Q6J("ngModel",n.embarkationDTO.dateOfExit)("minDate",n.currentDate)("maxDate",n.threeDays)("disabled",n.disableAllFileds)("showIcon",!0)("ngClass",e.VKq(162,p,n.embarkationDTO.dateOfExitRequired)),e.xp6(3),e.hij("3. ",e.lcZ(58,128,"departureCard.passportno"),""),e.xp6(4),e.Q6J("disabled",n.embarkationDTO.passportNo)("ngModel",n.embarkationDTO.passportNo)("ngClass",e.VKq(164,p,n.embarkationDTO.passportNoRequired)),e.xp6(3),e.hij("4. ",e.lcZ(65,130,"departureCard.namewithinitials"),""),e.xp6(4),e.Q6J("disabled",n.disableAllFileds)("ngModel",n.embarkationDTO.nameWithInitials)("ngClass",e.VKq(166,p,n.embarkationDTO.nameWithInitialsRequired)),e.xp6(2),e.Q6J("ngIf",o.invalid&&(o.dirty||o.touched)),e.xp6(3),e.hij("5. ",e.lcZ(74,132,"departureCard.gender"),""),e.xp6(5),e.Q6J("ngForOf",n.genderList),e.xp6(3),e.hij("6. ",e.lcZ(82,134,"departureCard.dob")," "),e.xp6(4),e.Q6J("ngModel",n.embarkationDTO.dateOfBirth)("maxDate",n.currentDate)("minDate",n.birthDate)("disabled",n.disableAllFileds)("showIcon",!0)("ngClass",e.VKq(168,p,n.embarkationDTO.dateOfBirthRequired)),e.xp6(3),e.hij("7. ",e.lcZ(89,136,"departureCard.address1")," "),e.xp6(4),e.Q6J("disabled",n.disableAllFileds)("ngClass",e.VKq(170,p,n.embarkationDTO.addressOneRequired))("ngModel",n.embarkationDTO.addressOne),e.xp6(2),e.Q6J("ngIf",l.invalid&&(l.dirty||l.touched)),e.xp6(3),e.hij("8. ",e.lcZ(98,138,"departureCard.address2")," "),e.xp6(4),e.Q6J("disabled",n.disableAllFileds)("ngClass",e.VKq(172,p,n.embarkationDTO.addressTwoRequired))("ngModel",n.embarkationDTO.addressTwo),e.xp6(2),e.Q6J("ngIf",u.invalid&&(u.dirty||u.touched)),e.xp6(3),e.hij("9. ",e.lcZ(107,140,"departureCard.city"),""),e.xp6(4),e.Q6J("disabled",n.disableAllFileds)("ngClass",e.VKq(174,p,n.embarkationDTO.cityRequired))("ngModel",n.embarkationDTO.city),e.xp6(2),e.Q6J("ngIf",f.invalid&&(f.dirty||f.touched)),e.xp6(3),e.hij("10. ",e.lcZ(116,142,"departureCard.district")," "),e.xp6(4),e.Akn(e.DdM(176,v)),e.Q6J("options",n.districtList)("virtualScroll",!0)("ngClass",e.VKq(177,p,n.embarkationDTO.districtRequired))("disabled",n.disableAllFileds)("ngModel",n.embarkationDTO.district)("showClear",!0)("filter",!0),e.xp6(1),e.Q6J("ngIf",!n.hideOccupation),e.xp6(1),e.Q6J("ngIf",n.enableGuardianPassportNo),e.xp6(3),e.hij("12. ",e.lcZ(125,144,"departureCard.email")," "),e.xp6(2),e.Q6J("disabled",n.disableAllFileds)("ngModel",n.embarkationDTO.emailAddress),e.xp6(2),e.Q6J("ngIf",M.invalid&&(M.dirty||M.touched)),e.xp6(3),e.hij("13. ",e.lcZ(132,146,"departureCard.mobileno")," "),e.xp6(2),e.Q6J("ngIf",!n.enableKioshPath),e.xp6(1),e.Q6J("pattern",n.contactNumberPattern)("disabled",n.disableAllFileds||n.embarkationDTO.mobileNumber)("ngModel",n.embarkationDTO.mobileNumber),e.xp6(2),e.Q6J("ngIf",z.invalid&&(z.dirty||z.touched)),e.xp6(3),e.hij("14. ",e.lcZ(140,148,"departureCard.countryoftravel")," "),e.xp6(4),e.Akn(e.DdM(179,v)),e.Q6J("options",n.countryList)("virtualScroll",!0)("ngClass",e.VKq(180,p,n.embarkationDTO.countryOfTravelRequired))("disabled",n.disableAllFileds)("ngModel",n.embarkationDTO.countryOfTravel)("showClear",!0)("filter",!0),e.xp6(3),e.hij("15. ",e.lcZ(147,150,"departureCard.purposeofvisit")," "),e.xp6(4),e.Akn(e.DdM(182,v)),e.Q6J("options",n.purposeList)("virtualScroll",!0)("ngClass",e.VKq(183,p,n.embarkationDTO.purposeCodeRequired))("disabled",n.disableAllFileds)("ngModel",n.embarkationDTO.purposeCode)("showClear",!0)("filter",!0),e.xp6(1),e.Q6J("ngIf","009"==n.embarkationDTO.purposeCode),e.xp6(3),e.hij("16. ",e.lcZ(155,152,"departureCard.travelwith")," "),e.xp6(5),e.Q6J("ngForOf",n.travelPatternList),e.xp6(3),e.hij("17. ",e.lcZ(163,154,"departureCard.expecteddate")," "),e.xp6(2),e.Q6J("ngModel",n.embarkationDTO.expectedDateOfReturn)("showIcon",!0)("minDate",n.currentDate)("disabled",n.disableAllFileds),e.xp6(3),e.hij("18. ",e.lcZ(168,156,"departureCard.modeofexit")," "),e.xp6(5),e.Q6J("ngForOf",n.modeOfExitList),e.xp6(1),e.Q6J("ngIf",n.embarkationDTO.modeOfExit),e.xp6(1),e.Q6J("ngIf",n.embarkationDTO.modeOfExit),e.xp6(1),e.Q6J("ngIf","OTH_A"==n.embarkationDTO.portOfFinalDestination||"OTH_S"==n.embarkationDTO.portOfFinalDestination),e.xp6(1),e.Q6J("ngIf",n.enableSubmitRow),e.xp6(3),e.Q6J("ngIf",n.enableSubmitRow),e.xp6(1),e.Q6J("ngIf",n.enableContinueRow),e.xp6(27),e.Oqu(e.lcZ(208,158,"home.footer")),e.xp6(3),e.Akn(e.DdM(185,ne)),e.Q6J("closeOnEscape",!1)("visible",n.displayInstructionModal)("modal",!0)("breakpoints",e.DdM(186,ae))("baseZIndex",1e4)("draggable",!1)("resizable",!1),e.xp6(25),e.Akn(e.DdM(187,ne)),e.Q6J("closeOnEscape",!1)("visible",n.displayImageModal)("modal",!0)("breakpoints",e.DdM(188,ae))("baseZIndex",1e4)("draggable",!1)("resizable",!1),e.xp6(4),e.Q6J("src",n.passportImage,e.LSH)}},directives:[b,g.Pi,X.u,m.O5,d.Fj,d.c5,d.Q7,d.nD,d.wO,y.o,d.JJ,d.On,m.mk,J.f,m.sg,E.EU,U.Lt,P.XZ,C.zx,m.PC,N.i,w.V],pipes:[g.X$],styles:[".button-instruction[_ngcontent-%COMP%]{width:46px;height:46px;background:#F8FAFF;border:1px solid #D7E6FC;border-radius:10px}.departureContainer[_ngcontent-%COMP%]{padding:2rem 2rem 1rem}.form-sub-heading[_ngcontent-%COMP%]{align-self:center!important;color:#0061be;font-weight:600}.departure-flight-icon[_ngcontent-%COMP%], .home-icon-btn[_ngcontent-%COMP%]{margin-left:1rem}.home-icon[_ngcontent-%COMP%]{color:#0061be}.form-body-background[_ngcontent-%COMP%]{background-color:#fafafb}.departure-card-form[_ngcontent-%COMP%], .departure-card-instructions-container[_ngcontent-%COMP%]{background:#FFFFFF;box-shadow:0 0 1px #4950570a,0 2px 4px #49505729;border-radius:4px}.departure-card-instructions-container[_ngcontent-%COMP%]{padding:2rem}.field[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.full-width[_ngcontent-%COMP%]{width:100%}.info-check-circle-icon[_ngcontent-%COMP%]{color:#eb3073;font-weight:700!important;margin-right:.5rem}"]}),i})();class H{constructor(){this.code="",this.description="",this.name="",this.type=""}}class Ci{}class Ai{constructor(){this.countryCode="",this.agencyCode="",this.locationCode="",this.applicationStatus="",this.travelDocumentNo="",this.nmprNo="",this.embassyRefNo="",this.nicNo="",this.surname="",this.otherNames="",this.permanentAddress="",this.district=new H,this.birthCertificateNo="",this.birthDistrict=new H,this.placeofBirth="",this.gender=new H,this.profession="",this.dualCitizenship="",this.dualCitizenshipNo="",this.contactNo="",this.email="",this.foreignNationality="",this.foreignPassportNo="",this.fatherGuardianNICTD="",this.motherGuardianNICTD="",this.submittedDate=new Date,this.submittedBy="",this.noofApplicants=0,this.category="",this.serviceType="",this.acknowledgementNo="",this.validationRef="",this.firstTD="N",this.tdOwnership="",this.tdOwnerRelationship="",this.sriLankan="N",this.dualCITHolder="N",this.bornOutsideSL="N",this.alterTD="N",this.changeProfession="N",this.changeNIC="N",this.changeNameDoBBP="N",this.recentlyIssuedTD="N",this.documents=[],this.courierDetail=new Ci,this.locationDesc="",this.mainApplicant="",this.groupReferenceNo="",this.completedAppCount=0,this.paymentStatus="",this.applicantAcknowledged=!1,this.fetchEditable=!1,this.deliveryType="",this.appType=""}asObservable(){throw new Error("Method not implemented.")}}const Di_SmsConstants_OTP_SENT="OTP_SENT";class Oi{constructor(){this.mobileNo="",this.otp="",this.agencyName="",this.token=""}}function qi(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",19),e.NdJ("click",function(){return e.CHM(t),e.oxw().btnDepartureClicked()}),e.TgZ(1,"div",64),e._UZ(2,"div",65),e.qZA(),e.TgZ(3,"div"),e.TgZ(4,"div",22),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div",23),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.qZA(),e.qZA()}2&i&&(e.xp6(5),e.Oqu(e.lcZ(6,2,"home.departureApp")),e.xp6(3),e.Oqu(e.lcZ(9,4,"home.lblDepartureTip")))}function xi(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",19),e.NdJ("click",function(){return e.CHM(t),e.oxw().btnDepartureClicked()}),e.TgZ(1,"div",64),e._UZ(2,"div",65),e.qZA(),e.TgZ(3,"div"),e.TgZ(4,"div",22),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div",23),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.qZA(),e.qZA()}2&i&&(e.xp6(5),e.Oqu(e.lcZ(6,2,"home.departureApp")),e.xp6(3),e.Oqu(e.lcZ(9,4,"home.lblDepartureTip")))}function ki(i,r){1&i&&(e.TgZ(0,"small",66),e._uU(1,"Invalid Mobile Number"),e.qZA())}function Mi(i,r){1&i&&(e.TgZ(0,"small",67),e._uU(1,"\xa0"),e.qZA())}function Ni(i,r){1&i&&e._UZ(0,"p-divider")}function wi(i,r){1&i&&(e.TgZ(0,"small",66),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"otp.otperror")))}const k=function(i){return{"ng-invalid ng-dirty":i}};function yi(i,r){if(1&i){const t=e.EpF();e.TgZ(0,"div",36),e.TgZ(1,"div",37),e.TgZ(2,"div",38),e.TgZ(3,"div",18),e.TgZ(4,"label",39),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",40),e.TgZ(8,"div",18),e.TgZ(9,"div",41),e.TgZ(10,"label",42),e._uU(11,"OTP "),e.TgZ(12,"span",43),e._uU(13,"*"),e._UZ(14,"i",44),e.qZA(),e.qZA(),e.TgZ(15,"input",68,69),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().enteredOTP=a}),e.qZA(),e.YNc(17,wi,3,3,"small",47),e.qZA(),e.qZA(),e.TgZ(18,"div",18),e.TgZ(19,"div",41),e.TgZ(20,"p-button",48),e.NdJ("onClick",function(){return e.CHM(t),e.oxw().confirmOTP()}),e.ALo(21,"translate"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&i){const t=e.MAs(16),n=e.oxw();e.xp6(5),e.Oqu(e.lcZ(6,7,"home.otpText")),e.xp6(10),e.Q6J("ngModel",n.enteredOTP)("pattern",n.numberPattern)("ngClass",e.VKq(11,k,t.errors)),e.xp6(2),e.Q6J("ngIf",t.errors),e.xp6(3),e.s9C("label",e.lcZ(21,9,"otp.confirm")),e.Q6J("disabled",!n.enteredOTP||null!==t.errors)}}function Ui(i,r){1&i&&(e.TgZ(0,"small",66),e._uU(1,"Invalid Passport Number"),e.qZA())}function Ii(i,r){1&i&&(e.TgZ(0,"small",66),e._uU(1,"Invalid Passport Number"),e.qZA())}const re=function(){return{width:"50vw"}},oe=function(){return{width:"35vw"}},Si=function(i){return{filter:i}},j=function(){return{"960px":"75vw","640px":"100vw"}},se=function(){return{width:"40vw"}},Ei=function(){return{width:"100%"}};let le=(()=>{class i{constructor(t,n,a,o,l,u,f,M){this.applicationService=t,this.httpReferenceService=n,this.router=a,this.primengConfig=o,this.translate=l,this.datepipe=u,this.route=f,this.env=M,this.instructions="",this.application=new Ai,this.otp="",this.showOtp=!1,this.title="E-Embarkation",this.email="",this.emailPattern="[A-Za-z0-9._%-]+@[A-Za-z0-9._%-]+\\.[a-z]{2,3}",this.numberPattern="^(0|[1-9][0-9]*)$",this.contactNumberPattern="^\\d{10}$",this.generatedOTP="",this.enteredOTP="",this.isOTPsent=!1,this.inquiry=!1,this.appointment=!1,this.payment=!1,this.langauges=[],this.registerVisible=!1,this.year=(new Date).getFullYear(),this.etaNumberPattern="^[A-Za-z0-9]*$",this.passportNumberPattern="^[A-Za-z0-9]*$",this.localPassportNumberPattern="[NDOE][LC0-9]+",this.enableKioskPath=!1,this.blurBackground=!1,this.PASSPORT_NO_ETA=null,this.NATIONALITY_CODE_ETA=null,this.nationalityRequired=!1,this.height="90vh",this.displayDlgInstructions=!1,this.disableMobileNo=!1}ngOnInit(){setTimeout(()=>{this.route.params.subscribe(t=>{this.enableKioskPath="kiosk"==t.kiosk})}),sessionStorage.removeItem("mobile_no"),this.langauges=[{code:"en",description:"English"},{code:"si",description:"\u0dc3\u0dd2\u0d82\u0dc4\u0dbd"},{code:"ta",description:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd"}],this.selectedLang={code:"en",description:"English"},this.primengConfig.ripple=!0,this.requestMultipleData().subscribe(t=>{this.nationalityList=t[0]}),this.onLanguageSelect("en")}requestMultipleData(){let t=this.httpReferenceService.getAllNationalities();return(0,R.D)([t])}reload(){this.reset(),window.location.reload()}onLanguageSelect(t){t&&this.translate.setDefaultLang(t)}btnDepartureClicked(){this.enableKioskPath?this.enableKioskPath&&(this.displayPassportNumberModel=!0):this.displayOTPModel=!0,this.reset()}displayDepartureForm(){}dlgOtpHideClicked(){this.inquiry=!1,this.appointment=!1,this.payment=!1}sendOTP(t){this.generatedOTP="",this.isOTPsent=!1,this.email&&this.applicationService.generateOTP(this.email,Di_SmsConstants_OTP_SENT).subscribe({next:a=>{sessionStorage.setItem("mobile_no",this.email);let o=a;if(0===o.code)this.generatedOTP=o.description,this.isOTPsent=!0,this.disableMobileNo=!0,this.confirmationService.confirm({message:this.translate.instant("homeTs.msgOSSTYM"),header:"Success",key:"success"});else if(5===o.code){let l="";l=this.translate.instant(this.inquiry?"homeTs.msgPCAENTC":"homeTs.msgPROECNBC"),this.confirmationService.confirm({message:l,header:"Infomation",key:"notRegistered",accept:()=>{this.showRegister()}}),this.reset(!0)}else if(6===o.code)this.confirmationService.confirm({message:this.translate.instant("homeTs.msgCode6"),header:"Error",key:"okDialog"}),this.displayOTPModel=!1,this.reset();else if(66===o.code)this.confirmationService.confirm({message:this.translate.instant("payment.msgCode66"),header:"Error",key:"okDialog"}),this.displayOTPModel=!1,this.reset();else if(4===o.code){let l=this.translate.instant("homeTs.msgGOTP1")+o.description+this.translate.instant("homeTs.msgGOTP2");this.confirmationService.confirm({message:l,header:"Allocated Limit Reached",key:"info"}),this.reset()}else(2===o.code||9===o.code)&&(this.confirmationService.confirm({message:this.translate.instant("homeTs.msgCode2"),header:"Error",key:"okDialog"}),this.reset())},error:a=>{}})}confirmOTP(){if(this.enteredOTP){let t=new Oi;t.mobileNo=this.email,t.otp=this.enteredOTP,this.applicationService.validateOTP(t).subscribe({next:n=>{0===n.code?(this.displayOTPModel=!1,this.displayPassportNumberModel=!0):this.confirmationService.confirm(6===n.code?{message:n.description,header:"Error",key:"okDialog"}:7===n.code?{message:this.translate.instant("payment.msgExp"),header:"Error",key:"okDialog"}:66===n.code?{message:this.translate.instant("payment.msgCode66"),header:"Error",key:"okDialog"}:{message:this.translate.instant("homeTs.msgIOTP"),header:"Error",key:"okDialog"})},error:n=>{console.error("status code =>",n.error.statusCode),console.error("status => ",n.error.status)}})}}btnArrivalClicked(){this.displayETANumberModel=!0,this.reset()}displayArrivalForm(){}reset(t){this.enteredOTP="",t||(this.email=""),this.isOTPsent=!1,this.registerVisible=!1,this.etaNumber="",this.passportNumber="",this.disableMobileNo=!1}closeRegister(){this.confirmationService.close()}showRegister(){this.registerVisible=!0}navigateToCard(t){if("D"==t)this.router.navigateByUrl(this.enableKioskPath?"departure-card-component/"+this.passportNumber+"/k":"departure-card-component/"+this.passportNumber+"/w",{skipLocationChange:!0,replaceUrl:!1});else if("P"==t){let n=new F;n.passportNo=this.PASSPORT_NO_ETA,n.nationality=this.NATIONALITY_CODE_ETA,this.router.navigateByUrl(this.enableKioskPath?"arrival-card-component/"+JSON.stringify(n)+"/k":"arrival-card-component/"+JSON.stringify(n)+"/w",{skipLocationChange:!0,replaceUrl:!1})}}onShowDialog(){this.blurBackground=!0}onHideDialog(){this.blurBackground=!1}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(B),e.Y36(Q),e.Y36(h.F0),e.Y36(_.b4),e.Y36(g.sK),e.Y36(m.uU),e.Y36(h.gz),e.Y36(x))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-home"]],viewQuery:function(t,n){if(1&t&&e.Gf(b,5),2&t){let a;e.iGM(a=e.CRH())&&(n.confirmationService=a.first)}},features:[e._Bn([_.YP])],decls:147,vars:129,consts:[["rejectButtonStyleClass","p-button-text",3,"baseZIndex"],["key","notRegistered","rejectButtonStyleClass","p-button-outlined","acceptLabel","Register","rejectLabel","Retry",3,"baseZIndex","acceptIcon","closable","rejectIcon"],[1,"float-right"],["type","button","pButton","","label","Retry",1,"p-button-outlined","mr-3",3,"click"],["type","button","pButton","","label","Register",3,"click"],["key","reloadDialog","acceptLabel","OK","rejectButtonStyleClass","p-button-text",3,"baseZIndex","acceptIcon","rejectVisible"],["type","button","pButton","","label","Ok",3,"click"],[1,"landingBody"],[1,"grid","landingGrid",3,"ngStyle"],[1,"col-12","md:col-12","lg:col-6"],[1,"page-nav--slip--home"],[1,"leftSideContainer"],[1,"formCard__item--flex","box"],["src","assets/img/SLG.png","height","90","alt","correct"],[1,"headerText"],[1,"iil-txt-xlarge","headerText__title"],["src","assets/img/immigration-logo.png","height","90","alt","correct"],[1,"leftContainerContent"],[1,"formCard__item"],[1,"tab-card","formCard__item--flex","passport",3,"click"],[1,"icon2"],[1,"arrival_img"],[1,"title"],[1,"description"],["class","tab-card formCard__item--flex passport",3,"click",4,"ngIf"],[1,"footerHolder"],[1,"iil-txt-subheader1"],[1,"page-nav--slipBtm"],[1,"col-12","md:col-12","lg:col-6","cloumn-2"],[1,"image-grid__item"],[1,"grid-item"],[1,"grid-item__image",2,"background-image","url(assets/img/image.png)"],[1,"grid-item__hover"],[1,"grid-item__name"],[1,"main-txt"],[3,"closeOnEscape","header","visible","modal","breakpoints","baseZIndex","draggable","resizable","visibleChange","onHide","onShow"],[1,"formContainer"],[1,""],[1,"formCard__row"],[1,"iil-txt-notify","iil-txt-header1"],[1,"formCard__row",2,"align-items","flex-end"],[1,"field"],["translate",""],[1,"iil-txt-error","ml-0"],[1,"pi","pi-question-circle","iil-txt-notify","ml-1"],["autofocus","","type","text","maxlength","10","minlength","10","placeholder","e.g. 071XXXXXXX","pInputText","",1,"inputfield","w-full",3,"disabled","ngModel","pattern","ngClass","ngModelChange"],["useremail","ngModel"],["class","iil-txt-error",4,"ngIf"],[3,"label","disabled","onClick"],["class","iil-txt-white",4,"ngIf"],[1,"q-notification","mt-3"],[1,"flex","align-items-center","p-3"],[1,"pi","pi-info-circle","iil-txt-notify"],["translate","",1,"ml-3","iil-txt-notify"],[4,"ngIf"],["class","formContainer",4,"ngIf"],["autofocus","","type","text","maxlength","10","minlength","6","oninput","this.value = this.value.toUpperCase()","placeholder","e.g. N1234567","pInputText","",1,"inputfield","w-full",3,"ngModel","pattern","ngClass","ngModelChange"],["passportnumbereta","ngModel"],["filterMatchMode","startsWith","appendTo","body","placeholder","Select your Nationality","optionLabel","description","optionValue","code",3,"ngModel","virtualScroll","itemSize","ngClass","options","showClear","filter","ngModelChange"],[1,"float-right",3,"disabled","label","onClick"],[3,"closeOnEscape","header","visible","modal","breakpoints","baseZIndex","draggable","resizable","onHide","onShow","visibleChange"],["autofocus","","type","text","maxlength","10","minlength","8","oninput","this.value = this.value.toUpperCase()","placeholder","e.g. N1234567","pInputText","",1,"inputfield","w-full",3,"ngModel","pattern","ngClass","ngModelChange"],["passportnumber","ngModel"],[1,"float-right",3,"label","disabled","onClick"],[1,"icon"],[1,"departure_img"],[1,"iil-txt-error"],[1,"iil-txt-white"],["autofocus","","type","text","maxlength","6","placeholder","OTP","pInputText","",1,"inputfield","w-full",3,"ngModel","pattern","ngClass","ngModelChange"],["sentotp","ngModel"]],template:function(t,n){if(1&t&&(e._UZ(0,"p-confirmDialog",0),e._UZ(1,"app-common-message"),e.TgZ(2,"p-confirmDialog",1),e.TgZ(3,"p-footer"),e.TgZ(4,"div",2),e.TgZ(5,"button",3),e.NdJ("click",function(){return n.closeRegister()}),e.qZA(),e.TgZ(6,"button",4),e.NdJ("click",function(){return n.showRegister()}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"p-confirmDialog",5),e.TgZ(8,"p-footer"),e.TgZ(9,"button",6),e.NdJ("click",function(){return n.reload()}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",7),e.TgZ(11,"div",8),e.TgZ(12,"div",9),e._UZ(13,"div",10),e.TgZ(14,"div",11),e.TgZ(15,"div",12),e._UZ(16,"img",13),e.TgZ(17,"div",14),e.TgZ(18,"div",15),e._uU(19,"\u0d86\u0d9c\u0db8\u0db1 \u0dc4\u0dcf \u0dc0\u0dd2\u0d9c\u0db8\u0db1 \u0daf\u0dd9\u0db4\u0dcf\u0dbb\u0dca\u0dad\u0db8\u0dda\u0db1\u0dca\u0dad\u0dd4\u0dc0"),e.qZA(),e.TgZ(20,"div",15),e._uU(21,"\u0b95\u0bc1\u0b9f\u0bbf\u0bb5\u0bb0\u0bb5\u0bc1 \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd \u0b95\u0bc1\u0b9f\u0bbf\u0baf\u0b95\u0bb2\u0bcd\u0bb5\u0bc1 \u0ba4\u0bbf\u0ba3\u0bc8\u0b95\u0bcd\u0b95\u0bf1\u0bae\u0bcd"),e.qZA(),e.TgZ(22,"div",15),e._uU(23,"Department of Immigration & Emigration"),e.qZA(),e.qZA(),e._UZ(24,"img",16),e.qZA(),e.TgZ(25,"div",17),e.TgZ(26,"div",18),e.TgZ(27,"div",18),e.TgZ(28,"div",19),e.NdJ("click",function(){return n.btnArrivalClicked()}),e.TgZ(29,"div",20),e._UZ(30,"div",21),e.qZA(),e.TgZ(31,"div"),e.TgZ(32,"div",22),e._uU(33),e.ALo(34,"translate"),e.qZA(),e.TgZ(35,"div",23),e._uU(36),e.ALo(37,"translate"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(38,qi,10,6,"div",24),e.YNc(39,xi,10,6,"div",24),e.qZA(),e.qZA(),e.qZA(),e.TgZ(40,"div",25),e.TgZ(41,"div",26),e._uU(42,"Copyright \xa9 "),e.TgZ(43,"span"),e._uU(44),e.qZA(),e._uU(45," Department of Immigration & Emigration"),e.qZA(),e._UZ(46,"div",27),e.qZA(),e.qZA(),e.TgZ(47,"div",28),e.TgZ(48,"div",29),e.TgZ(49,"div",30),e._UZ(50,"div",31),e._UZ(51,"div",32),e.TgZ(52,"div",33),e.TgZ(53,"div",34),e._uU(54),e.ALo(55,"translate"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(56,"p-dialog",35),e.NdJ("visibleChange",function(o){return n.displayOTPModel=o})("onHide",function(){return n.onHideDialog()})("onShow",function(){return n.onShowDialog()})("onHide",function(){return n.dlgOtpHideClicked()}),e.ALo(57,"translate"),e._UZ(58,"p-divider"),e.TgZ(59,"div",36),e.TgZ(60,"div",37),e.TgZ(61,"div",38),e.TgZ(62,"div",18),e.TgZ(63,"label",39),e._uU(64),e.ALo(65,"translate"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(66,"div",40),e.TgZ(67,"div",18),e.TgZ(68,"div",41),e.TgZ(69,"label",42),e._uU(70,"Mobile Number "),e.TgZ(71,"span",43),e._uU(72,"*"),e._UZ(73,"i",44),e.qZA(),e.qZA(),e.TgZ(74,"input",45,46),e.NdJ("ngModelChange",function(o){return n.email=o}),e.qZA(),e.YNc(76,ki,2,0,"small",47),e.qZA(),e.qZA(),e.TgZ(77,"div",18),e.TgZ(78,"div",41),e.TgZ(79,"p-button",48),e.NdJ("onClick",function(){return n.sendOTP(n.inquiry)}),e.ALo(80,"translate"),e.qZA(),e.TgZ(81,"div"),e.YNc(82,Mi,2,0,"small",49),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(83,"div",50),e.TgZ(84,"div",51),e._UZ(85,"i",52),e.TgZ(86,"label",53),e._uU(87,"otp.otpinstruction"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(88,Ni,1,0,"p-divider",54),e.YNc(89,yi,22,13,"div",55),e.qZA(),e.TgZ(90,"p-dialog",35),e.NdJ("visibleChange",function(o){return n.displayETANumberModel=o})("onHide",function(){return n.onHideDialog()})("onShow",function(){return n.onShowDialog()}),e.ALo(91,"translate"),e._UZ(92,"p-divider"),e.TgZ(93,"div",36),e.TgZ(94,"div",37),e.TgZ(95,"div",38),e.TgZ(96,"div",18),e.TgZ(97,"label",39),e._uU(98),e.ALo(99,"translate"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(100,"div",40),e.TgZ(101,"div",18),e.TgZ(102,"div",41),e.TgZ(103,"label",42),e._uU(104,"Passport No. "),e.TgZ(105,"span",43),e._uU(106,"*"),e._UZ(107,"i",44),e.qZA(),e.qZA(),e.TgZ(108,"input",56,57),e.NdJ("ngModelChange",function(o){return n.PASSPORT_NO_ETA=o}),e.qZA(),e.YNc(110,Ui,2,0,"small",47),e.qZA(),e.qZA(),e.qZA(),e.TgZ(111,"div",40),e.TgZ(112,"div",18),e.TgZ(113,"div",41),e.TgZ(114,"label",42),e._uU(115,"Nationality "),e.TgZ(116,"span",43),e._uU(117,"*"),e._UZ(118,"i",44),e.qZA(),e.qZA(),e.TgZ(119,"p-dropdown",58),e.NdJ("ngModelChange",function(o){return n.NATIONALITY_CODE_ETA=o}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(120,"p-footer"),e.TgZ(121,"p-button",59),e.NdJ("onClick",function(){return n.navigateToCard("P")}),e.ALo(122,"translate"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(123,"p-dialog",60),e.NdJ("onHide",function(){return n.onHideDialog()})("onShow",function(){return n.onShowDialog()})("visibleChange",function(o){return n.displayPassportNumberModel=o}),e.ALo(124,"translate"),e._UZ(125,"p-divider"),e.TgZ(126,"div",36),e.TgZ(127,"div",37),e.TgZ(128,"div",38),e.TgZ(129,"div",18),e.TgZ(130,"label",39),e._uU(131),e.ALo(132,"translate"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(133,"div",40),e.TgZ(134,"div",18),e.TgZ(135,"div",41),e.TgZ(136,"label",42),e._uU(137,"Passport Number "),e.TgZ(138,"span",43),e._uU(139,"*"),e._UZ(140,"i",44),e.qZA(),e.qZA(),e.TgZ(141,"input",61,62),e.NdJ("ngModelChange",function(o){return n.passportNumber=o}),e.qZA(),e.YNc(143,Ii,2,0,"small",47),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(144,"p-footer"),e.TgZ(145,"p-button",63),e.NdJ("onClick",function(){return n.navigateToCard("D")}),e.ALo(146,"translate"),e.qZA(),e.qZA(),e.qZA()),2&t){const a=e.MAs(75),o=e.MAs(109),l=e.MAs(142);e.Akn(e.DdM(109,re)),e.Q6J("baseZIndex",1e4),e.xp6(2),e.Akn(e.DdM(110,oe)),e.Q6J("baseZIndex",1e4)("acceptIcon","")("closable",!1)("rejectIcon",""),e.xp6(5),e.Akn(e.DdM(111,oe)),e.Q6J("baseZIndex",1e4)("acceptIcon","")("rejectVisible",!1),e.xp6(4),e.Q6J("ngStyle",e.VKq(112,Si,n.blurBackground?"blur(3px)":"none")),e.xp6(22),e.Oqu(e.lcZ(34,85,"home.arrivalApp")),e.xp6(3),e.Oqu(e.lcZ(37,87,"home.lblArrivalTip")),e.xp6(2),e.Q6J("ngIf",!n.enableKioskPath),e.xp6(1),e.Q6J("ngIf",n.enableKioskPath),e.xp6(5),e.Oqu(n.year),e.xp6(10),e.Oqu(e.lcZ(55,89,"home.middleText")),e.xp6(2),e.Akn(e.DdM(114,re)),e.Q6J("closeOnEscape",!1)("header",e.lcZ(57,91,"home.departureApp"))("visible",n.displayOTPModel)("modal",!0)("breakpoints",e.DdM(115,j))("baseZIndex",1e4)("draggable",!1)("resizable",!1),e.xp6(8),e.hij(" ",e.lcZ(65,93,"otp.phonenoentrylable")," "),e.xp6(10),e.Q6J("disabled",n.disableMobileNo)("ngModel",n.email)("pattern",n.contactNumberPattern)("ngClass",e.VKq(116,k,a.errors)),e.xp6(2),e.Q6J("ngIf",a.errors),e.xp6(3),e.s9C("label",e.lcZ(80,95,"otp.send")),e.Q6J("disabled",!n.email||null!==a.errors||n.disableMobileNo),e.xp6(3),e.Q6J("ngIf",a.errors),e.xp6(6),e.Q6J("ngIf",n.isOTPsent),e.xp6(1),e.Q6J("ngIf",n.isOTPsent),e.xp6(1),e.Akn(e.DdM(118,se)),e.Q6J("closeOnEscape",!1)("header",e.lcZ(91,97,"arrivaletadialog.heading"))("visible",n.displayETANumberModel)("modal",!0)("breakpoints",e.DdM(119,j))("baseZIndex",1e4)("draggable",!1)("resizable",!1),e.xp6(8),e.hij(" ",e.lcZ(99,99,"arrivaletadialog.etaNoLabel")," "),e.xp6(10),e.Q6J("ngModel",n.PASSPORT_NO_ETA)("pattern",n.passportNumberPattern)("ngClass",e.VKq(120,k,o.errors)),e.xp6(2),e.Q6J("ngIf",o.errors),e.xp6(9),e.Akn(e.DdM(122,Ei)),e.Q6J("ngModel",n.NATIONALITY_CODE_ETA)("virtualScroll",!0)("itemSize",2)("ngClass",e.VKq(123,k,n.nationalityRequired))("options",n.nationalityList)("showClear",!0)("filter",!0),e.xp6(2),e.s9C("label",e.lcZ(122,101,"common.continue")),e.Q6J("disabled",!n.NATIONALITY_CODE_ETA||!n.PASSPORT_NO_ETA||null!=o.errors),e.xp6(2),e.Akn(e.DdM(125,se)),e.Q6J("closeOnEscape",!1)("header",e.lcZ(124,103,"departurepassportdialog.heading"))("visible",n.displayPassportNumberModel)("modal",!0)("breakpoints",e.DdM(126,j))("baseZIndex",1e4)("draggable",!1)("resizable",!1),e.xp6(8),e.hij(" ",e.lcZ(132,105,"departurepassportdialog.passportNoLabel")," "),e.xp6(10),e.Q6J("ngModel",n.passportNumber)("pattern",n.localPassportNumberPattern)("ngClass",e.VKq(127,k,l.errors)),e.xp6(2),e.Q6J("ngIf",l.errors),e.xp6(2),e.s9C("label",e.lcZ(146,107,"common.continue")),e.Q6J("disabled",!n.passportNumber||null!==l.errors)}},directives:[L.Q,b,_.$_,C.Hq,m.PC,m.O5,w.V,N.i,g.Pi,d.Fj,d.nD,d.wO,y.o,d.JJ,d.On,d.c5,m.mk,C.zx,U.Lt],pipes:[g.X$],styles:[".background-image{background-image:url(/assets/img/passport1.png);background-size:cover;background-repeat:no-repeat;min-height:100vh}@keyframes swipe_anime{0%{right:-140px}to{right:-10px}}.limit_banner{height:auto;background:#0061BE;box-shadow:0 4px 4px #0000003b;border-radius:8px 0 0 8px;width:170px;position:fixed;top:100px;right:-10px;padding:12px;z-index:9999;animation:swipe_anime;animation-duration:1s;animation-fill-mode:forwards}.custom-line-height{line-height:26px}.limit_banner .iil-txt-header2{font-size:30px!important;color:#0765b4}.limit_banner .empty_txt{font-size:18px!important;font-weight:700;color:#fff}header{background:rgba(0,0,0,.33);box-shadow:0 4px 4px #00000040}.button-language{width:82px;height:46px;background:#F8FAFF;border:1px solid #D7E6FC}.button-language__start{width:82px;height:46px;background:#F8FAFF;border:1px solid #D7E6FC;border-radius:4px 0 0 4px}.button-language__end{width:82px;height:46px;background:#F8FAFF;border:1px solid #D7E6FC;border-radius:0 4px 4px 0}.button-sign-in{width:46px;height:46px;background:#F8FAFF;border:1px solid #D7E6FC;border-radius:4px}.button-language:focus{background-color:#0061be;color:#fff}.button-language__start:focus{background-color:#0061be;color:#fff}.button-language__end:focus{background-color:#0061be;color:#fff}.home-icon-btn:hover{background-color:#efbe12;color:#fff;cursor:pointer}.btn-group-1{display:flex;align-items:flex-end}.btn-group-2{display:flex;align-items:center;justify-content:center;height:80vh}.btn-group-3{display:flex;flex-wrap:wrap;background:rgba(255,255,255,.35);align-items:center;justify-content:center;width:100%}.main-btn{display:flex;margin:30px;background:#FFFFFF;border:1px solid #516FDC;border-radius:8px;width:180px;height:180px;align-items:center;justify-content:center}.main-btn:hover{background-color:#0765b4;color:#fff;text-decoration:none;cursor:pointer}@media screen and (max-width: 960px){.btn-group-2{margin-top:25%;margin-bottom:25%}.main-btn{margin:20px}}.ui-panel-title{margin:auto;display:flex;align-items:center}.brightness{background-color:#fff;display:inline-block}.brightness img:hover{opacity:.5}.instruction-list li{font-size:16px;margin-bottom:8px}.instruction-list>li::marker{font-size:14px;font-weight:700}.p-buttonset{display:flex;width:25vw;justify-content:space-between}.p-buttonset .p-button:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0;height:50px}.p-buttonset .p-button:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0;height:50px;margin-left:10px}.p-selectbutton .p-button.p-highlight{background:#1eec0d;border-color:#ef3504;color:#fff}.p-buttonset .p-button{border-right:1px solid #ced4da!important}button .p-button-label{font-weight:700}.insrilanka .p-buttonset{display:flex;width:18vw;justify-content:space-between}.basisbutton .p-buttonset{display:flex;width:22vw;justify-content:space-between}.bornSriLanka .p-buttonset,.hasCitizenship .p-buttonset{display:flex;width:8vw;justify-content:space-between}.dialog-without-b-padding .p-dialog-content{padding-bottom:0}.button-limit-width.p-button{width:140px}.disable-scroll .ui-dialog-content{overflow:hidden!important}\n"],encapsulation:2}),i})(),S=(()=>{class i{constructor(t){this.router=t}isAuthenticated(){return!0}canActivate(){return!!this.isAuthenticated()||(this.router.navigate(["/"]),!1)}}return i.\u0275fac=function(t){return new(t||i)(e.LFG(h.F0))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Pi=[{path:"",redirectTo:"/home-page",pathMatch:"full"},{path:"home-page",component:le,canActivate:[S]},{path:"home-page/:kiosk",component:le,canActivate:[S]},{path:"arrival-card-component/:eta/:type",component:Ot,canActivate:[S]},{path:"departure-card-component/:passport/:type",component:vi,canActivate:[S]},{path:"webapp/:reload",component:$}];let Ji=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[h.Bz.forRoot(Pi,{useHash:!0})],h.Bz]}),i})();const Li={provide:x,useFactory:()=>{const i=new x,t=(window||{}).__env||{};for(const n in t)t.hasOwnProperty(n)&&(i[n]=window.__env[n]);return i},deps:[]};var Ri=s(40),Fi=s(2266),Qi=s(4297),Bi=s(8850),Yi=s(9857),Hi=s(5787),ji=s(5050),zi=s(6526),Ki=s(9142),Vi=s(8505),Gi=s(5226),de=s.n(Gi);let Wi=(()=>{class i{constructor(t,n){this.spinnerService=t,this.router=n}intercept(t,n){return t=t.clone({setHeaders:{Authorization:"Basic "+btoa("admin1:secret1")}}),this.spinnerService.addSpinner(),n.handle(t).pipe((0,Vi.b)({next:a=>{a instanceof T.Zn&&this.spinnerService.removeSpinner()},error:a=>{401==a.status&&de().fire({title:"UnAuthorized Access",text:"You are Not Authorized to Access this Service",icon:"warning",showCancelButton:!1,confirmButtonText:"Ok",cancelButtonText:"No",allowOutsideClick:!1,allowEnterKey:!1}).then(o=>{(o.value||o.dismiss===de().DismissReason.cancel)&&(sessionStorage.removeItem("ext_sl_pp_token"),this.router.navigateByUrl("/"))}),this.spinnerService.removeSpinner()}}))}}return i.\u0275fac=function(t){return new(t||i)(e.LFG(G),e.LFG(h.F0))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac}),i})();var $i=s(8092),Xi=s(242),en=s(5174),tn=s(405),nn=s(7773),an=s(1571),rn=s(7102);let on=(()=>{class i{intercept(t,n){const a=t.clone({headers:t.headers.set("Cache-Control","no-cache").set("Pragma","no-cache").set("Expires","Sat, 01 Jan 2000 00:00:00 GMT")});return n.handle(a)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac}),i})(),sn=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.oAB({type:i,bootstrap:[$]}),i.\u0275inj=e.cJS({providers:[m.uU,Li,{provide:T.TP,useClass:Wi,multi:!0},{provide:T.TP,useClass:on,multi:!0}],imports:[[D.b2,Ji,y.j,E.cc,C.hJ,P.nD,d.u5,d.UX,N.x,w.S,zi.q4,pe.L$,ue.PW,U.kW,T.JF,J._8,ce.w,me.LU,ji.U$,Fi.F,ee.A,Bi.$,Hi.T,Ki.W,Qi.d,L.D,g.aw.forRoot({loader:{provide:g.Zw,useFactory:ln,deps:[T.eN]}}),Yi.kT,W.L,$i.q,Xi.Iu,en.N,tn.k,nn.EV,V.uH,an.b,rn.Qy]]}),i})();function ln(i){return new Ri.w(i,"./assets/i18n/",".json")}(0,e.G48)(),D.q6().bootstrapModule(sn).catch(i=>console.error(i))}},A=>{A.O(0,[736],()=>A(A.s=7191)),A.O()}]);