1import{d as ve}from"./chunk-KGXWFU2L.js";import{a as ye,b as he,c as _e,d as Ee,e as Te,f as Se}from"./chunk-IZLRUGHQ.js";import{b as be}from"./chunk-GAK42UKT.js";import"./chunk-EAXOHZ7I.js";import{a as Ce}from"./chunk-KUGOFQKS.js";import"./chunk-TU36S22R.js";import{a as $}from"./chunk-OMUIVLCA.js";import{a as J}from"./chunk-EDLCLKR5.js";import{$a as q,$b as ae,Ab as W,Bc as G,Cb as O,Dc as L,Ec as F,Fa as r,Ga as a,Ha as d,Hd as j,Ia as I,Ja as x,La as ee,M as U,Ma as R,Mb as H,N,Na as y,P as _,Q as ie,Qc as le,R as b,Ra as oe,S as D,Se as B,Te as Q,Uc as de,W as X,X as Z,Ya as p,Yc as T,Za as l,_a as f,bf as ge,cc as C,ha as ne,he as fe,ja as o,jc as pe,ka as v,kb as E,lb as k,md as Y,o as te,pb as m,qb as s,qd as ue,rb as re,rc as h,rd as z,sa as S,sc as me,uc as se,vc as ce,wa as c,yc as P,zc as w}from"./chunk-4UWS45CU.js";var Ue=e=>({companyName:e}),Ie=(e,g)=>({"text-muted":e,"bg-first bg-opacity-10 text-first":g}),Ne=e=>[e];function De(e,g){if(e&1&&(I(0),d(1,"app-content-management",26),x()),e&2){let n=y();o(),c("contents",n.centerTopContent)}}function qe(e,g){if(e&1&&(I(0),d(1,"app-content-management",26),x()),e&2){let n=y();o(),c("contents",n.contents)}}function We(e,g){if(e&1){let n=ee();r(0,"app-form-login",27),R("onLoggedIn",function(t){X(n);let u=y();return Z(u.loggedUser(t))}),a()}}function Oe(e,g){if(e&1){let n=ee();r(0,"app-form-agency-login",27),R("onLoggedIn",function(t){X(n);let u=y();return Z(u.loggedUser(t))}),a()}}function He(e,g){if(e&1&&(I(0),d(1,"app-content-management",26),x()),e&2){let n=y();o(),c("contents",n.centerBottomContent)}}var xe=(()=>{class e{router;contentService;RoutesEnum=C;activeTabEnum=j;setting;loading=!1;submitted=!1;error="";activeTab;contents=[];centerTopContent=[];centerBottomContent=[];constructor(n,i){this.router=n,this.contentService=i,this.activeTab=j.WebSiteUser,this.setting=L.settings}ngOnInit(){this.getContent()}loggedUser(n){n&&this.router.navigateByUrl(n).then()}getContent(){this.contentService.getContent(F.ALL,B.None,$.Login).subscribe({next:n=>{n?.Items?.forEach(i=>{switch(i.Place){case B.CenterTop:this.centerTopContent.push(i);break;case B.CenterBottom:this.centerBottomContent.push(i);break;default:this.contents.push(i);break}})}})}static \u0275fac=function(i){return new(i||e)(v(P),v(J))};static \u0275cmp=b({type:e,selectors:[["app-login-page"]],decls:49,vars:43,consts:[[4,"ngIf"],[1,"container"],[1,"row","justify-content-center"],[1,"col-md-10"],[1,"my-4"],[1,"fs-30","mb-2"],[1,"fs-18"],[1,"py-5","bg-white","shadow","rounded-10"],[1,"row"],[1,"col-md-6"],[1,"border-end"],[1,"px-5"],[1,"mb-3","fs-24"],[1,"border","rounded-5","text-center","fs-16","mb-4"],[1,"row","g-0"],[1,"col-6","cursor","no-select","border-end",3,"click"],[1,"p-3","fs-16",3,"ngClass"],[1,"col-6","cursor","no-select",3,"click"],[3,"onLoggedIn",4,"ngIf"],[1,"col-md-6","align-self-center","pt-5","pt-md-0"],[1,"text-center","px-5"],[1,"mb-4"],[1,"fs-24"],[1,"fs-14","mb-5","px-5"],[1,"text-nowrap",3,"routerLink"],[1,"btn","btn-outline","border-first","text-first","rounded-5","fs-16","py-2","lh-18","px-3"],[3,"contents"],[3,"onLoggedIn"]],template:function(i,t){i&1&&(S(0,De,2,1,"ng-container",0)(1,qe,2,1,"ng-container",0),r(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"strong"),p(8),m(9,"translate"),a()(),r(10,"div",6),p(11),m(12,"translate"),a()(),r(13,"div",7)(14,"div",8)(15,"div",9)(16,"div",10)(17,"div",11)(18,"div",12)(19,"strong"),p(20),m(21,"translate"),a()(),r(22,"div",13)(23,"div",14)(24,"div",15),R("click",function(){return t.activeTab=t.activeTabEnum.WebSiteUser}),r(25,"div",16),p(26),m(27,"translate"),a()(),r(28,"div",17),R("click",function(){return t.activeTab=t.activeTabEnum.Company}),r(29,"div",16),p(30),m(31,"translate"),a()()()(),S(32,We,1,0,"app-form-login",18)(33,Oe,1,0,"app-form-agency-login",18),a()()(),r(34,"div",19)(35,"div",20)(36,"div",21)(37,"strong",22),p(38),m(39,"translate"),a()(),r(40,"div",23),p(41),m(42,"translate"),a(),r(43,"div")(44,"a",24)(45,"button",25),p(46),m(47,"translate"),a()()()()()()()()()(),S(48,He,2,1,"ng-container",0)),i&2&&(c("ngIf",(t.centerTopContent==null?null:t.centerTopContent.length)>0),o(),c("ngIf",(t.contents==null?null:t.contents.length)>0),o(7),l(re(9,16,"label.loginInTo",E(33,Ue,t.setting.company.name))),o(3),f(" ",s(12,19,"message.enjoy")," "),o(9),l(s(21,21,"label.login")),o(5),c("ngClass",k(35,Ie,t.activeTab!==t.activeTabEnum.WebSiteUser,t.activeTab===t.activeTabEnum.WebSiteUser)),o(),f(" ",s(27,23,"button.user")," "),o(3),c("ngClass",k(38,Ie,t.activeTab!==t.activeTabEnum.Company,t.activeTab===t.activeTabEnum.Company)),o(),f(" ",s(31,25,"button.travelAgency")," "),o(2),c("ngIf",t.activeTab===t.activeTabEnum.WebSiteUser),o(),c("ngIf",t.activeTab===t.activeTabEnum.Company),o(5),l(s(39,27,"label.dontHaveAccount")),o(3),l(s(42,29,"message.ourServiceForYou")),o(3),c("routerLink",E(41,Ne,t.RoutesEnum.AUTHENTICATE_REGISTER)),o(2),l(s(47,31,"button.createAnAccount")),o(2),c("ngIf",(t.centerBottomContent==null?null:t.centerBottomContent.length)>0))},dependencies:[W,O,w,Q,ye,be,h]})}return e})();var Re=(e,g)=>({"text-muted":e,"bg-first bg-opacity-10 text-first":g}),Ye=e=>[e];function ze(e,g){if(e&1&&(I(0),d(1,"app-content-management",25),x()),e&2){let n=y();o(),c("contents",n.centerTopContent)}}function Qe(e,g){if(e&1&&(I(0),d(1,"app-content-management",25),x()),e&2){let n=y();o(),c("contents",n.contents)}}function $e(e,g){e&1&&d(0,"app-form-register")}function Je(e,g){e&1&&d(0,"app-form-agency-register")}function Ke(e,g){if(e&1&&(I(0),d(1,"app-content-management",25),x()),e&2){let n=y();o(),c("contents",n.centerBottomContent)}}var Pe=(()=>{class e{formBuilder;router;repositorySV;contentService;
1dialingCodeList;registerForm;defaultDialCode;formSubmitted=!1;activeTab;activeTabEnum=j;RoutesEnum=C;urlService=ie(ae);loading=!1;submitted=!1;error="";contents=[];centerTopContent=[];centerBottomContent=[];constructor(n,i,t,u){this.formBuilder=n,this.router=i,this.repositorySV=t,this.contentService=u,this.activeTab=j.WebSiteUser}matchValues(n){return i=>i.parent&&i.parent.value&&i.value===i.parent.controls[n].value?null:{isMatching:!1}}ngOnInit(){this.defaultDialCode=fe.find(n=>n.Code.toLowerCase()===L.settings.company.country.code.toLowerCase()),this.dialingCodeList=this.repositorySV.dialCodes().map(n=>({value:n.Code,label:n.Dial_code+" "+n.Name,data:n})),this.registerForm=this.formBuilder.group({CountryDialingCode:[this.defaultDialCode.Code,T.required],Mobile:["",T.required],Email:["",T.required],Confirm_Email:["",[T.required,this.matchValues("Email")]],Firstname:["",[T.required]],Lastname:["",[T.required]],Password:["",[T.required]],Confirm_Password:["",[T.required,this.matchValues("Password")]]}),this.getContent()}registeredUser(n){n&&this.router.navigate([n]).then()}getContent(){this.contentService.getContent(F.ALL,B.None,$.Register).subscribe({next:n=>{n?.Items?.forEach(i=>{switch(i.Place){case B.CenterTop:this.centerTopContent.push(i);break;case B.CenterBottom:this.centerBottomContent.push(i);break;default:this.contents.push(i);break}})}})}static \u0275fac=function(i){return new(i||e)(v(Y),v(P),v(Ce),v(J))};static \u0275cmp=b({type:e,selectors:[["app-register-page"]],decls:47,vars:39,consts:[[4,"ngIf"],[1,"container"],[1,"row","justify-content-center"],[1,"col-md-10"],[1,"my-4"],[1,"fs-30","mb-2"],[1,"fs-18"],[1,"py-5","bg-white","shadow","rounded-10"],[1,"px-5"],[1,"row"],[1,"col-md-6"],[1,"mb-3","fs-24"],[1,"border","rounded-5","text-center","fs-16","mb-4"],[1,"row","g-0"],[1,"col-6","cursor","no-select","border-end",3,"click"],[1,"p-3","fs-16",3,"ngClass"],[1,"col-6","cursor","no-select",3,"click"],[1,"text-end","d-none","d-md-block","mb-4","pb-2"],[1,"mb-1"],[1,"fs-10"],[1,"text-first","ps-3","text-decoration-none",3,"routerLink"],[1,"fs-14"],["id","content",1,"mt-1","d-none","d-md-block"],[1,"w-100","mb-3"],["alt","",1,"img-fluid","rounded-5","w-100",3,"src"],[3,"contents"]],template:function(i,t){i&1&&(S(0,ze,2,1,"ng-container",0)(1,Qe,2,1,"ng-container",0),r(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"strong"),p(8),m(9,"translate"),a()(),r(10,"div",6),p(11),m(12,"translate"),a()(),r(13,"div",7)(14,"div",8)(15,"div",9)(16,"div",10)(17,"div",11)(18,"strong"),p(19),m(20,"translate"),a()(),r(21,"div",12)(22,"div",13)(23,"div",14),R("click",function(){return t.activeTab=t.activeTabEnum.WebSiteUser}),r(24,"div",15),p(25),m(26,"translate"),a()(),r(27,"div",16),R("click",function(){return t.activeTab=t.activeTabEnum.Company}),r(28,"div",15),p(29),m(30,"translate"),a()()()(),S(31,$e,1,0,"app-form-register",0)(32,Je,1,0,"app-form-agency-register",0),a(),r(33,"div",10)(34,"div",17)(35,"div",18)(36,"span",19),p(37),m(38,"translate"),a(),r(39,"a",20)(40,"strong",21),p(41),m(42,"translate"),a()()()(),r(43,"div",22)(44,"div",23),d(45,"img",24),a()()()()()()()()(),S(46,Ke,2,1,"ng-container",0)),i&2&&(c("ngIf",(t.centerTopContent==null?null:t.centerTopContent.length)>0),o(),c("ngIf",(t.contents==null?null:t.contents.length)>0),o(7),l(s(9,17,"message.enjoy")),o(3),f(" ",s(12,19,"message.registerSubtitle")," "),o(8),l(s(20,21,"button.signUp")),o(5),c("ngClass",k(31,Re,t.activeTab!==t.activeTabEnum.WebSiteUser,t.activeTab===t.activeTabEnum.WebSiteUser)),o(),f(" ",s(26,23,"button.user")," "),o(3),c("ngClass",k(34,Re,t.activeTab!==t.activeTabEnum.Company,t.activeTab===t.activeTabEnum.Company)),o(),f(" ",s(30,25,"button.travelAgency")," "),o(2),c("ngIf",t.activeTab===t.activeTabEnum.WebSiteUser),o(),c("ngIf",t.activeTab===t.activeTabEnum.Company),o(5),l(s(38,27,"label.alreadyRegistered")),o(2),c("routerLink",E(37,Ye,t.RoutesEnum.AUTHENTICATE_USER_LOGIN)),o(2),l(s(42,29,"label.login")),o(4),oe("src","",t.urlService.CdnUrl(),"/image/upload/images/pages/signup/image.png",ne),o(),c("ngIf",(t.centerBottomContent==null?null:t.centerBottomContent.length)>0))},dependencies:[W,O,w,Q,he,Te,h]})}return e})();var Xe=e=>[e],we=(()=>{class e{setting;RoutesEnum=C;constructor(){}ngOnInit(){this.setting=L.settings}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=b({type:e,selectors:[["app-recovery-page"]],decls:31,vars:19,consts:[[1,"container"],[1,"row","justify-content-center"],[1,"col-md-10"],[1,"my-4"],[1,"fs-30"],[1,"fs-18"],[1,"py-5","bg-white","shadow","rounded-10","mt-5"],[1,"row"],[1,"col-md-6"],[1,"border-end"],[1,"px-5"],[1,"col-md-6","align-self-center"],[1,"text-center","px-5"],[1,"mb-4"],[1,"fs-24"],[1,"fs-14","mb-5","px-5"],[3,"routerLink"],[1,"btn","btn-outline","border-first","text-first","rounded-5","fs-16","py-2","lh-18","px-5"]],template:function(i,t){i&1&&(r(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"strong"),p(6),m(7,"translate"),a()(),r(8,"div",5),p(9),m(10,"translate"),a()(),r(11,"div",6)(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10),d(16,"app-form-recovery"),a()()(),r(17,"div",11)(18,"div",12)(19,"div",13)(20,"strong",14),p(21),m(22,"translate"),a()(),r(23,"div",15),p(24),m(25,"translate"),a(),r(26,"div",10)(27,"a",16)(28,"button",17),p(29),m(30,"translate"),a()()()()()()()()()()),i&2&&(o(6),q("",s(7,7,"label.recoverAccountTitle")," ",t.setting.company.name,""),o(3),f(" ",s(10,9,"message.enjoy")," "),o(12),l(s(22,11,"label.dontHaveAccount")),o(3),l(s(25,13,"message.ourServiceForYou")),o(3),c("routerLink",E(17,Xe,t.RoutesEnum.AUTHENTICATE_REGISTER)),o(2),l(s(30,15,"button.createAnAccount")))},dependencies:[w,Ee,h]})}return e})();var Ze=e=>[e],Le=(()=>{class e{setting;RoutesEnum=C;constructor(){this.setting=L.settings}ngOnInit(){}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=b({type:e,selectors:[["app-forget-password-page"]],decls:31,vars:19,consts:[[1,"container"],[1,"row","justify-content-center"],[1,"col-md-10"],[1,"my-4"],[1,"fs-30"],[1,"fs-18"],[1,"py-5","bg-white","shadow","rounded-10","mt-5"],[1,"row"],[1,"col-md-6"],[1,"border-end"],[1,"px-5"],[1,"col-md-6","align-self-center"],[1,"text-center","px-5"],[1,"mb-4"],[1,"fs-24"],[1,"fs-14","mb-5","px-5"],[3,"routerLink"],[1,"btn","btn-outline","border-first","text-first","rounded-5","fs-16","py-2","lh-18","px-5"]],template:function(i,t){i&1&&(r(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"strong"),p(6),m(7,"translate"),a()(),r(8,"div",5),p(9),m(10,"translate"),a()(),r(11,"div",6)(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10),d(16,"app-form-forget-password"),a()()(),r(17,"div",11)(18,"div",12)(19,"div",13)(20,"strong",14),p(21),m(22,"translate"),a()(),r(23,"div",15),p(24),m(25,"translate"),a(),r(26,"div",10)(27,"a",16)(28,"button",17),p(29),m(30,"translate"),a()()()()()()()()()()),i&2&&(o(6),q("",s(7,7,"label.recoverAccountTitle")," ",t.setting.company.name,""),o(3),f(" ",s(10,9,"message.enjoy")," "),o(12),l(s(22,11,"label.dontHaveAccount")),o(3),l(s(25,13,"message.ourServiceForYou")),o(3),c("routerLink",E(17,Ze,t.RoutesEnum.AUTHENTICATE_REGISTER)),o(2),l(s(30,15,"button.createAnAccount")))},dependencies:[w,_e,h]})}return e})();var Be=(()=>{class e extends z{currencySV;translatorSV;http;store;recaptchaService;constructor(n,i,t,u,V){super(t,u,n,i,V),this.currencySV=n,this.translatorSV=i,this.http=t,this.store=u,this.recaptchaService=V}verify(n){return this.http.httpPost("Authentication/ConfirmRegistration",this.generateRequestObject(F.ALL,{ConfirmRegistrationToken:n})).pipe(te(i=>i))}static \u0275fac=function(i){return new(i||e)(_(le),_(se),_(de),_(pe),_(ue))};static \u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Ae=(()=>{class e{formBuilder;route;router;verifySV;token;constructor(n,i,t,u){this.formBuilder=n,this.route=i,this.router=t,this.verifySV=u,this.route.queryParams.subscribe(V=>{this.token=V.token})}ngOnInit(){this.verifySV.verify(this.token).subscribe(()=>{this.router.navigate([C.Home]).then()})}static \u0275fac=function(i){return new(i||e)(v(Y),v(ce),v(P),v(Be))};static \u0275cmp=b({type:e,selectors:[["app-verification-page"]],decls:6,vars:3,consts:[[1,"text-center","my-5","d-flex","justify-content-center","gap-1","align-items-center"],[1,"my-3","fs-25"],[1,"icon-loading","loader","text-first"]],template:function(i,t){i&1&&(r(0,"div",0)(1,"div",1)(2,"strong"),p(3),m(4,"translate"),a()(),d(5,"i",2),a()),i&2&&(o(3),f(" ",s(4,1,"message.pleaseWait")," ..."))},dependencies:[h]})}return e})();var ke=(()=>{class e{router;AuthenticateSV;constructor(n,i){this.router=n,this.AuthenticateSV=i}canActivate(n,i){return this.AuthenticateSV.isLoggedIn$()?(this.router.navigate([C.PANEL_INTRO]).then(),!1):!0}static \u0275fac=function(i){return new(i||e)(_(P),_(z))};static \u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Fe=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=D({type:e});static \u0275inj=N({imports:[H,G.forChild([{path:"",canActivate:[ke],resolve:{queryParam:ve},children:[{path:"login",component:xe,title:"Login"},{path:"register",component:Pe,title:"Register"},{path:"forgot-password",component:Le,title:"Recovery"},{path:"recovery",component:we,title:"Recovery"},{path:"verification",component:Ae,title:"Verification"}]}])]})}return e})();var bi=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=D({type:e});static \u0275inj=N({imports:[H,ge,me,G,Fe,Se]})}return e})();export{bi as AuthenticateModule};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.