PageSourceSearch

https://abm.recotap.com/9379.a00bf1a5b804f0c8.js

js recotap.com collected 2026-09-24 15:24:16 UTC 114,142 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkclient_panel=self.webpackChunkclient_panel||[]).push([[9379],{39379:($,S,u)=>{u.r(S),u.d(S,{AuthModule:()=>xo});var r=u(60177),g=u(89417),P=u(21626),p=u(12791),t=u(54438),_=u(91226),f=u(45020),C=u(61594),B=u(48032),k=u.n(B),b=u(24158),l=u(98058),w=u(34058);const h=["popupSwal"];function v(e,c){1&e&&(t.qex(0),t.j41(1,"div",19)(2,"div",20),t.EFF(3," Sorry, looks like there are some errors detected, please try again. "),t.k0s()(),t.bVm())}function T(e,c){1&e&&(t.qex(0),t.j41(1,"div",21)(2,"div",22),t.EFF(3,"Sent password reset. Please check your email"),t.k0s()(),t.bVm())}function M(e,c){1&e&&(t.qex(0),t.j41(1,"span",23),t.EFF(2," Please wait... "),t.nrm(3,"span",24),t.k0s(),t.bVm()),2&e&&(t.R7$(),t.xc7("display","block"))}function A(e,c){1&e&&(t.qex(0),t.j41(1,"span",25),t.EFF(2,"Submit"),t.k0s(),t.bVm())}function Y(e,c){if(1&e&&(t.qex(0),t.j41(1,"div",26)(2,"div",27)(3,"span",28),t.EFF(4),t.k0s()()(),t.bVm()),2&e){const i=t.XpG().message;t.R7$(4),t.JRh(i)}}function V(e,c){if(1&e&&t.DNE(0,Y,5,1,"ng-container",7),2&e){const i=c.control;t.Y8G("ngIf",i.hasError(c.validation)&&(i.dirty||i.touched))}}const D=(e,c,i,o,n)=>({"mb-2":e,"border-semantic-red":c,"border-black":i,"text-semantic-red":o,"text-gray-900":n}),X=e=>({validation:"required",message:"Email is required",control:e}),K=e=>({validation:"maxLength",message:"Email should have maximum 254 symbols",control:e}),q=e=>({validation:"pattern",message:"Enter a valid mail id",control:e});var O=function(e){return e[e.NotSubmitted=0]="NotSubmitted",e[e.HasError=1]="HasError",e[e.NoError=2]="NoError",e}(O||{});let z=(()=>{class e{formBuilder;authService;route;router;domainConfigService;forgotPasswordForm;errorState=O.NotSubmitted;errorStates=O;isLoading$;popupSwal;unsubscribe=[];productId="recotap";get supportEmail(){return this.domainConfigService.getSupportEmail()}withSupportEmail(i){return(i??"").replace("{supportEmail}",this.supportEmail)}constructor(i,o,n,a,s){this.formBuilder=i,this.authService=o,this.route=n,this.router=a,this.domainConfigService=s,this.isLoading$=this.authService.isLoading$,this.productId=this.domainConfigService.getProductId()}ngOnInit(){this.initForm()}get handleFormControl(){return this.forgotPasswordForm.controls}initForm(){this.forgotPasswordForm=this.formBuilder.group({email:["",g.k0.compose([g.k0.required,g.k0.minLength(4),g.k0.maxLength(254),g.k0.pattern(/^(?!.*\.\.)[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,63}$/)])]})}svgIconPath="./assets/media/recotap-assets/icons/like-duotone.svg";svgIconHtml=`<img src="${this.svgIconPath}" width="16" height="16" style="vertical-align:middle;" />`;success="./assets/media/recotap-assets/icons/check-circle-outline-1.svg";error="./assets/media/recotap-assets/icons/information-1-outline.svg";showCustomAlert(i,o="warning",n,a){const m=`\n   \n        <img src="${"success"===o?this.success:this.error}" style="padding-bottom: 20px;"/>\n         ${"success"===o?'<h4 style="padding-bottom:12px;  margin:0px; color:  #141414; font-size: 16px; font-weight: 500;">Verify your Email.</h4  >':""}\n        <p style="font-family: Inter; font-size: 14px; font-style: normal; font-weight: 500; color: #8C8C8C; padding-bottom: 32px; margin:0px">${i}</p>`;k().fire({html:m,icon:void 0,showCancelButton:!1,confirmButtonText:a,customClass:{popup:"p-6 d-flex flex-column justify-content-center align-self-center align-items-center mw-400px",confirmButton:"btn btn-lg btn-primary p-3 pe-4 rounded-pill m-0",cancelButton:"btn btn-lg btn-secondary rounded-pill",actions:"swal2-actions m-0",htmlContainer:"swal2-html-container m-0"},cancelButtonText:"Cancel",heightAuto:!1,preConfirm:()=>Promise.resolve()}).then(d=>{d.isConfirmed&&n&&this.router.navigate([n])})}submit(){if(this.forgotPasswordForm.invalid)return void this.forgotPasswordForm.markAllAsTouched();this.errorState=O.NotSubmitted;const i=this.authService.forgotPassword(this.handleFormControl.email.value).pipe((0,C.$)()).subscribe({next:o=>{console.log(o,"result   +$$$"),this.popupSwal.swalOptions={title:"Verify your Email.",text:b.V.FORGOTPASSWORD,imageUrl:l.T.success,showCancelButton:!1,confirmButtonText:`${l.K.svgIconHtml} Okay`,customClass:{confirmButton:l.K.customClass.confirmButton,cancelButton:l.K.customClass.cancelButton},heightAuto:l.K.heightAuto,reverseButtons:l.K.reverseButtons},this.popupSwal.fire()},error:o=>{console.log(o,"error  -$$$"),o&&o.error&&o.error.customMessage?(this.popupSwal.swalOptions={title:this.withSupportEmail(b.C[o.error.customMessage]),text:"",imageUrl:l.T.error,showCancelButton:!1,confirmButtonText:`${l.K.svgIconHtml} Okay`,customClass:{confirmButton:l.K.customClass.confirmButton,cancelButton:l.K.customClass.cancelButton},heightAuto:l.K.heightAuto,reverseButtons:l.K.reverseButtons},this.popupSwal.fire()):(this.popupSwal.swalOptions={title:"Something went wrong, Please try after sometime.",imageUrl:l.T.error,showCancelButton:!1,confirmButtonText:`${l.K.svgIconHtml} Okay`,customClass:{confirmButton:l.K.customClass.confirmButton,cancelButton:l.K.customClass.cancelButton},heightAuto:l.K.heightAuto,reverseButtons:l.K.reverseButtons},this.popupSwal.fire())}});this.unsubscribe.push(i)}static \u0275fac=function(o){return new(o||e)(t.rXU(g.ok),t.rXU(_.u),t.rXU(p.nX),t.rXU(p.Ix),t.rXU(f.K))};static \u0275cmp=t.VBU({type:e,selectors:[["app-forgot-password-left"]],viewQuery:function(o,n){if(1&o&&t.GBs(h,5),2&o){let a;t.mGM(a=t.lsd())&&(n.popupSwal=a.first)}},decls:33,vars:28,consts:[[1,"d-flex","flex-column","align-items-center","justify-content-between","w-100","h-100"],[1,""],[1,"w-400px"],["novalidate","novalidate","id","kt_login_password_reset_form",1,"form",3,"formGroup","ngSubmit"],[1,"text-center"],[1,"text-dark","fw-bold","mb-3"],[1,"text-gray-500","fs-6","mb-8"],[4,"ngIf"],[1,"fv-row","mb-8"],[1,"form-label","fw-bold","text-gray-900","fs-6","m-0"],["type","email","formControlName","email","placeholder","[email protected]","name","email",1,"form-control","bg-gray-100","rounded-pill","mt-3","px-4","py-2",3,"ngClass"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"row"],[1,"col-md-12"],["type","submit","id","kt_password_reset_submit",1,"btn-solid-primary","py-3","px-4","flex-center","text-nowrap","w-100","rounded-pill"],[1,"mt-6","text-center"],["routerLink","/auth/login",1,"text-semantic-blue","fs-6"],["formError",""],["popupSwal",""],[1,"mb-lg-15","alert","alert-danger"],[1,"alert-text","font-weight-bold"],[1,"mb-10","bg-light-info","p-8","rounded"],[1,"text-info"],[1,"indicator-progress"],[1,"spinner-border","spinner-border-sm","align-middle","ms-2"],[1,"indicator-label"],[1,"fv-plugins-message-container"],[1,"fv-help-block"],["role","alert",1,"text-semantic-red"]],template:function(o,n){if(1&o&&(t.j41(0,"div",0),t.nrm(1,"div",1),t.j41(2,"div",2)(3,"form",3),t.bIt("ngSubmit",function(){return n.submit()}),t.j41(4,"div",4)(5,"h1",5),t.EFF(6,"Forgot Password ?"),t.k0s(),t.j41(7,"div",6),t.EFF(8," Enter your email id to reset your password "),t.k0s()(),t.DNE(9,v,4,0,"ng-container",7)(10,T,4,0,"ng-container",7),t.j41(11,"div",8)(12,"label",9),t.EFF(13,"Email*"),t.k0s(),t.nrm(14,"input",10),t.eu8(15,11)(16,11)(17,11),t.k0s(),t.j41(18,"div",12)(19,"div",13)(20,"button",14),t.DNE(21,M,4,2,"ng-container",7),t.nI1(22,"async"),t.DNE(23,A,3,0,"ng-container",7),t.nI1(24,"async"),t.k0s()()(),t.j41(25,"div",15)(26,"a",16),t.EFF(27," Back to Sign In "),t.k0s()()()(),t.nrm(28,"div",1),t.k0s(),t.DNE(29,V,1,1,"ng-template",null,17,t.C5r),t.nrm(31,"swal",null,18)),2&o){const a=t.sdS(30);let s;t.R7$(3),t.Y8G("formGroup",n.forgotPasswordForm),t.R7$(6),t.Y8G("ngIf",n.errorState===n.errorStates.HasError),t.R7$(),t.Y8G("ngIf",n.errorState===n.errorStates.NoError),t.R7$(4),t.Y8G("ngClass",t.s1E(16,D,(null==(s=n.forgotPasswordForm.get("email"))?null:s.invalid)&&
1((null==(s=n.forgotPasswordForm.get("email"))?null:s.dirty)||(null==(s=n.forgotPasswordForm.get("email"))?null:s.touched)),(null==(s=n.forgotPasswordForm.get("email"))?null:s.invalid)&&((null==(s=n.forgotPasswordForm.get("email"))?null:s.dirty)||(null==(s=n.forgotPasswordForm.get("email"))?null:s.touched)),!(null!=(s=n.forgotPasswordForm.get("email"))&&s.invalid)&&(null==(s=n.forgotPasswordForm.get("email"))?null:s.value),(null==(s=n.forgotPasswordForm.get("email"))?null:s.invalid)&&((null==(s=n.forgotPasswordForm.get("email"))?null:s.dirty)||(null==(s=n.forgotPasswordForm.get("email"))?null:s.touched)),!(null!=(s=n.forgotPasswordForm.get("email"))&&s.invalid)&&(null==(s=n.forgotPasswordForm.get("email"))?null:s.value))),t.R7$(),t.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",t.eq3(22,X,n.forgotPasswordForm.controls.email)),t.R7$(),t.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",t.eq3(24,K,n.forgotPasswordForm.controls.email)),t.R7$(),t.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",t.eq3(26,q,n.forgotPasswordForm.controls.email)),t.R7$(4),t.Y8G("ngIf",t.bMT(22,12,n.isLoading$)),t.R7$(2),t.Y8G("ngIf",!1===t.bMT(24,14,n.isLoading$))}},dependencies:[r.YU,r.bT,r.T3,p.Wk,g.qT,g.me,g.BC,g.cb,g.j4,g.JD,w.b7,r.Jj]})}return e})();function H(e,c){if(1&e&&(t.qex(0),t.j41(1,"div",15),t.nrm(2,"img",16),t.k0s(),t.bVm()),2&e){const i=t.XpG(2);t.R7$(2),t.Y8G("src",i.carouselGif,t.B4B)}}const J=e=>({active:e});function W(e,c){if(1&e&&(t.j41(0,"div",24),t.nrm(1,"img",25),t.j41(2,"h4",26),t.EFF(3),t.k0s()()),2&e){const i=c.$implicit;t.Y8G("ngClass",t.eq3(3,J,0===c.index)),t.R7$(),t.Y8G("src",i.imageUrl,t.B4B),t.R7$(2),t.JRh(i.title)}}function Z(e,c){if(1&e&&(t.j41(0,"div",17)(1,"div",18),t.nrm(2,"button",19)(3,"button",20)(4,"button",21),t.k0s(),t.j41(5,"div",22),t.DNE(6,W,4,5,"div",23),t.k0s()()),2&e){const i=t.XpG(2);t.R7$(6),t.Y8G("ngForOf",i.carouselItems)}}function Q(e,c){1&e&&t.nrm(0,"img",27),2&e&&t.Y8G("src",c.$implicit,t.B4B)}function tt(e,c){if(1&e&&(t.qex(0),t.j41(1,"div",2),t.nrm(2,"img",3)(3,"img",4),t.j41(4,"p",5),t.EFF(5),t.k0s()(),t.j41(6,"div",6),t.DNE(7,H,3,1,"ng-container",7)(8,Z,7,1,"ng-template",null,8,t.C5r),t.k0s(),t.j41(10,"div",9)(11,"div",10)(12,"span",11),t.EFF(13," Trusted by over "),t.j41(14,"span",12),t.EFF(15," 1000+ marketers"),t.k0s(),t.EFF(16," globally "),t.k0s()(),t.j41(17,"div",13),t.DNE(18,Q,1,1,"img",14),t.k0s()(),t.bVm()),2&e){const i=t.sdS(9),o=t.XpG();t.R7$(2),t.Y8G("src",o.loginLogo,t.B4B),t.R7$(),t.Y8G("src",o.loginLogo,t.B4B),t.R7$(2),t.SpI(" ",o.loginRightText," "),t.R7$(2),t.Y8G("ngIf",o.showGif&&o.carouselGif)("ngIfElse",i),t.R7$(11),t.Y8G("ngForOf",o.clients)}}function et(e,c){if(1&e&&(t.qex(0),t.j41(1,"div",28)(2,"div",29),t.nrm(3,"img",30)(4,"img",31),t.j41(5,"p",32),t.EFF(6),t.k0s(),t.j41(7,"p",33),t.EFF(8),t.k0s()(),t.j41(9,"div",34),t.nrm(10,"img",35),t.k0s()(),t.bVm()),2&e){const i=t.XpG();t.R7$(3),t.Y8G("src",i.loginLogo,t.B4B)("ngClass",i.isNativeAdRadarBrand?"w-125px h-40px":"w-200px"),t.R7$(),t.Y8G("src",i.loginLogo,t.B4B)("ngClass",i.isNativeAdRadarBrand?"w-125px h-40px":"w-200px"),t.R7$(2),t.SpI(" Never fly blind. ",i.brandName," sees everything. "),t.R7$(2),t.SpI(" ",i.brandName," is the AI Copilot for B2B teams running LinkedIn Ads. Specialized agents watch your campaigns 24/7 \u2014 flagging waste, predicting fatigue, and telling you exactly what to do next. "),t.R7$(2),t.Y8G("alt",i.brandName+" agents overview")}}let ot=(()=>{class e{domainConfigService;loginLogo="";loginRightText="";carouselGif=void 0;showGif=!1;productId="recotap";brandName="";isNativeAdRadarBrand=!1;constructor(i){this.domainConfigService=i,this.loginLogo=this.domainConfigService.getLoginLogo(),this.loginRightText=this.domainConfigService.getLoginRightText(),this.carouselGif=this.domainConfigService.getCarouselGif(),this.showGif=this.domainConfigService.hasCarouselGif(),this.productId=this.domainConfigService.getProductId(),this.brandName=this.domainConfigService.getBrandName(),this.isNativeAdRadarBrand="adradar"===this.domainConfigService.getTenantId()}carouselItems=[{imageUrl:"assets/media/recotap-assets/icons/singin-1.svg",title:"Unlock Your Ad Insights - Sign In to See Metrics",clientName:"Jacob F",client:"CareerArc"},{imageUrl:"assets/media/recotap-assets/icons/singin-2.svg",title:"Unlock Your Ad Insights - Sign In to See Metrics",clientName:"Shilpi M",client:"Aspire Systems"},{imageUrl:"assets/media/recotap-assets/icons/singin-3.svg",title:"Unlock Your Ad Insights - Sign In to See Metrics",clientName:"Alberto",client:"Agilyx Group"}];clients=["assets/media/auth/darwinbox-logo.svg","assets/media/auth/wns.svg","assets/media/auth/netcore-logo.svg","assets/media/auth/sprinkler-logo.svg","assets/media/auth/allianz-logo.svg"];static \u0275fac=function(o){return new(o||e)(t.rXU(f.K))};static \u0275cmp=t.VBU({type:e,selectors:[["app-forgot-password-right"]],decls:3,vars:2,consts:[[1,"d-flex","flex-column","align-items-center","w-100","h-100"],[4,"ngIf"],[1,"d-flex","flex-column","align-items-center","me-4"],["alt","Logo",1,"w-125px","d-none","d-sm-block",3,"src"],["alt","Logo",1,"w-125px","d-block","d-sm-none",3,"src"],[1,"pt-6","text-gray-900","fw-semibold","fs-5","m-0","p-0"],[1,"bg-transparent","w-450px","rounded-0","border-0"],[4,"ngIf","ngIfElse"],["carouselTemplate",""],[1,"w-450px"],[1,"separator","separator-content","mt-6","mb-8"],[1,"fw-semibold","overflow-hidden","text-gray-500","flex-column-auto","fs-6"],[1,"text-gray-900","fw-bold","fs-6"],[1,"d-flex","justify-content-center","align-items-center","flex-wrap","gap-6"],[3,"src",4,"ngFor","ngForOf"],[1,"d-flex","justify-content-center","align-items-center","pb-8"],["alt","Dashboard Preview",1,"d-none","d-lg-block",2,"width","425px","height","270px","object-fit","contain",3,"src"],["id","kt_carousel_1_carousel","data-bs-ride","carousel",1,"carousel","slide","pb-8"],[1,"carousel-indicators","justify-content-center","mb-0"],["type","button","data-bs-target","#kt_carousel_1_carousel","data-bs-slide-to","0","aria-label","Slide 1","aria-current","true",1,"active","rounded-pill","border-0"],["type","button","data-bs-target","#kt_carousel_1_carousel","data-bs-slide-to","1","aria-label","Slide 2",1,"rounded-pill","border-0","mx-3"],["type","button","data-bs-target","#kt_carousel_1_carousel","data-bs-slide-to","2","aria-label","Slide 3",1,"rounded-pill","border-0"],[1,"carousel-inner","w-100","bg-transparent","p-6","pb-0"],["class","carousel-item",3,"ngClass",4,"ngFor","ngForOf"],[1,"carousel-item",3,"ngClass"],["alt","",1,"d-none","d-lg-block","d-block","w-375px","h-100","object-fit-contain","object-position-center",3,"src"],[1,"d-none","d-lg-block","text-gray-900","text-center","mt-6","m-0","w-100"],[3,"src"],[1,"d-flex","flex-column","justify-content-center","gap-10","align-items-center","w-100","h-100","pt-8","pb-0","login-right-adradar"],[1,"d-flex","flex-column","align-items-center"],["alt","Logo",1,"d-none","d-sm-block",3,"src","ngClass"],["alt","Logo",1,"d-block","d-sm-none",3,"src","ngClass"],[1,"adradar-title","pt-6","text-black","m-0","p-0","text-center",2,"font-weight","600 !important","font-size","36px !important","line-height","38px !important"],[1,"pt-7","fw-400","fs-7","m-0","p-0","text-center","adradar-subtitle",2,"color","#4B5563"],[1,"d-flex","justify-content-center","w-100"],["src","assets/media/recotap-assets/icons/auth-agent-bg.svg",1,"w-100","auth-image-height","login-right-adradar__image",2,"object-fit","contain",3,"alt"]],template:function(o,n){1&o&&(t.j41(0,"div",0),t.DNE(1,tt,19,6,"ng-container",1)(2,et,11,7,"ng-container",1),t.k0s()),2&o&&(t.R
17$(),t.Y8G("ngIf","recotap"===n.productId),t.R7$(),t.Y8G("ngIf","adradar"===n.productId))},dependencies:[r.YU,r.Sq,r.bT],styles:["[_nghost-%COMP%]{display:flex}.carousel-indicators[_ngcontent-%COMP%]   .rounded-pill[_ngcontent-%COMP%]{width:8px;height:8px;background-color:#2f6eed80}.carousel-indicators[_ngcontent-%COMP%]   .active[_ngcontent-%COMP%]{width:24px;height:8px;background-color:#2f6eed80}.login-right-adradar[_ngcontent-%COMP%]{min-height:0}.login-right-adradar__image[_ngcontent-%COMP%]{max-width:475px;max-height:400px;height:auto;object-fit:contain}.login-right-adradar[_ngcontent-%COMP%]   .adradar-title[_ngcontent-%COMP%]{font-size:36px!important;line-height:38px!important}@media (max-width: 1199px),(max-height: 650px){.login-right-adradar[_ngcontent-%COMP%]{gap:1.25rem!important;padding-top:2.5rem!important;padding-left:1.25rem!important;padding-right:1.25rem!important}.login-right-adradar[_ngcontent-%COMP%]   .adradar-title[_ngcontent-%COMP%]{font-size:28px!important;line-height:32px!important}.login-right-adradar__image[_ngcontent-%COMP%]{max-width:420px;max-height:330px}}@media (max-height: 750px){.login-right-adradar[_ngcontent-%COMP%]{justify-content:flex-start!important;gap:1rem!important;padding-top:2rem!important;padding-left:1rem!important;padding-right:1rem!important}.login-right-adradar[_ngcontent-%COMP%]   .adradar-title[_ngcontent-%COMP%]{font-size:26px!important;line-height:30px!important}.login-right-adradar__image[_ngcontent-%COMP%]{max-width:390px!important;max-height:300px!important}}"]})}return e})(),nt=(()=>{class e{authService;router;domainConfigService;authBackgroundImage="";constructor(i,o,n){this.authService=i,this.router=o,this.domainConfigService=n,this.authBackgroundImage=this.domainConfigService.getAuthBackgroundImage(),this.authService.currentUserValue&&this.router.navigate(["/"])}static \u0275fac=function(o){return new(o||e)(t.rXU(_.u),t.rXU(p.Ix),t.rXU(f.K))};static \u0275cmp=t.VBU({type:e,selectors:[["app-forgot-password"]],decls:8,vars:2,consts:[[1,"d-flex","flex-column","flex-root","h-100"],[1,"d-flex","flex-column","flex-lg-row","flex-column-fluid","bg-white"],[1,"w-lg-60","py-10","px-24","order-2","order-lg-1"],[1,"d-flex","flex-column","align-items-center","justify-content-center","h-100"],[1,"h-100","w-100","mw-400px"],[1,"w-lg-40","py-10","order-2","order-lg-1","bg-white","background-image","rounded-3","m-4","position-fixed","top-0","end-0","auth-right-section-height"],[1,"h-100","w-100","mw-450px"]],template:function(o,n){1&o&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.nrm(4,"app-forgot-password-left",4),t.k0s()(),t.j41(5,"div",5)(6,"div",3),t.nrm(7,"app-forgot-password-right",6),t.k0s()()()()),2&o&&(t.R
17$(5),t.xc7("background-image","url("+n.authBackgroundImage+")"))},dependencies:[z,ot],styles:["[_nghost-%COMP%]{width:100%;height:100%}@media (min-width: 992px){[_nghost-%COMP%]   .login-form[_ngcontent-%COMP%]{width:100%;max-width:450px}[_nghost-%COMP%]   .login-form[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}}.background-image[_ngcontent-%COMP%]{background-image:url(auth-background.6d26ed3cd9af8472.svg);background-size:cover;background-position:center;background-repeat:no-repeat}"]})}return e})(),it=(()=>{class e{authService;constructor(i){this.authService=i,this.authService.logout()}ngOnInit(){}static \u0275fac=function(o){return new(o||e)(t.rXU(_.u))};static \u0275cmp=t.VBU({type:e,selectors:[["app-logout"]],decls:2,vars:0,template:function(o,n){1&o&&(t.j41(0,"p"),t.EFF(1,"logout works!"),t.k0s())}})}return e})();var y=u(7673),st=u(88141),rt=u(99437);class L{static MatchPassword(c){const i=c.get("password")?.value,o=c.get("cPassword")?.value;return i!==o?{mismatch:!0}:null}}class at{token;refreshToken;expiresIn;userDetails;setAuth(c){this.token=c.token,this.refreshToken=c.refreshToken,this.expiresIn=c.expiresIn}}class lt extends at{id;_id;userObjectChangeContext;username;password;name;profileImageURL;email;pic;logoUrl;teamLogo;roles=[];clientAccounts=[];selectedTeam={};status;occupation;companyName;phone;address;socialNetworks;selectedClientAccount;firstName;lastName;website;language;timeZone;communication;emailSettings;setUser(c){const i=c;this.id=i.id,this._id=i._id,this.username=i.username||"",this.password=i.password||"",this.email=i.email||"",this.profileImageURL=i.profileImageURL||"./assets/media/avatars/blank.png",this.roles=i.roles||[],this.clientAccounts=i.clientAccounts||[],this.occupation=i.occupation||"",this.companyName=i.companyName||"",this.phone=i.phone||"",this.address=i.address,this.socialNetworks=i.socialNetworks,this.status=i.status}}var I=u(88897),ct=u(70152),gt=u(23294),mt=u(5964),G=u(50534),dt=u(54141);const ut=["popupSwal"];function pt(e,c){1&e&&(t.qex(0),t.nrm(1,"img",28),t.bVm())}function ht(e,c){1&e&&(t.qex(0),t.nrm(1,"img",29),t.bVm())}const ft=e=>({validation:"pattern",message:"Password must be 8-20 characters long.",control:e});function wt(e,c){if(1&e&&(t.j41(0,"li"),t.eu8(1,10),t.k0s()),2&e){const i=t.XpG(),o=t.sdS(62);t.R7$(),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(2,ft,i.registrationForm.controls.password))}}const _t=e=>({validation:"pattern",message:"Include at least one uppercase letter, one lowercase letter one number.",control:e});function bt(e,c){if(1&e&&(t.j41(0,"li"),t.eu8(1,10),t.k0s()),2&e){const i=t.XpG(),o=t.sdS(62);t.R7$(),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(2,_t,i.registrationForm.controls.password))}}const Ct=e=>({validation:"pattern",message:'One special character  (!, @, #, $, %, ^, &, *, (, ), _, +, -, =, {, }, [, ], :, ;,",<,>, , , ., ?, /, \\, |, ~)',control:e});function St(e,c){if(1&e&&(t.j41(0,"li"),t.eu8(1,10),t.k0s()),2&e){const i=t.XpG(),o=t.sdS(62);t.R7$(),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(2,Ct,i.registrationForm.controls.password))}}function kt(e,c){1&e&&(t.qex(0),t.nrm(1,"img",28),t.bVm())}function yt(e,c){1&e&&(t.qex(0),t.nrm(1,"img",29),t.bVm())}function Ft(e,c){1&e&&(t.j41(0,"div",32),t.EFF(1," Password do not match. "),t.k0s())}function Pt(e,c){if(1&e&&(t.qex(0),t.j41(1,"div",30),t.DNE(2,Ft,2,0,"div",31),t.k0s(),t.bVm()),2&e){const i=t.XpG();t.R7$(2),t.Y8G("ngIf",(null==i.registrationForm.controls.cPassword.value?null:i.registrationForm.controls.cPassword.value.length)>0)}}function It(e,c){1&e&&(t.qex(0),t.j41(1,"span",33),t.EFF(2,"Sign Up"),t.k0s(),t.bVm())}function Tt(e,c){1&e&&(t.qex(0),t.j41(1,"span",34),t.EFF(2," Please wait... "),t.nrm(3,"span",35),t.k0s(),t.bVm()),2&e&&(t.R7$(),t.xc7("display","block"))}function Ot(e,c){if(1&e&&(t.qex(0),t.j41(1,"div",30)(2,"div",36)(3,"span",37),t.EFF(4),t.k0s()()(),t.bVm()),2&e){const i=t.XpG().message;t.R7$(4),t.SpI(" ",i," ")}}function Et(e,c){if(1&e&&t.DNE(0,Ot,5,1,"ng-container",14),2&e){const i=c.control;t.Y8G("ngIf",i.hasError(c.validation)&&(i.dirty||i.touched))}}const j=(e,c,i,o)=>({"border-semantic-red":e,"border-black":c,"text-semantic-red":i,"text-gray-900":o}),Bt=e=>({validation:"required",message:"Email is required",control:e}),Rt=e=>({validation:"maxLength",message:"Email should have maximum 254 symbols",control:e}),$t=e=>({validation:"pattern",message:"Enter a valid email id",control:e}),Lt=e=>({validation:"required",message:"Password is required",control:e}),Gt=e=>({validation:"maxLength",message:"Password should have maximum 100 symbols",control:e}),jt=(e,c,i,o,n)=>({"mb-2":e,"border-semantic-red":c,"border-black":i,"text-semantic-red":o,"text-gray-900":n}),Ut=e=>({validation:"required",message:"Confirm Password is required",control:e});let Nt=(()=>{class e{fb;authService;router;route;usersService;domainConfigService;posthogService;registrationForm;isLoading$;returnUrl;isTokenLoading$;unsubscribe=[];popupSwal;signupSubtitle="";termsUrl="";privacyUrl="";brandName="";productId="recotap";
1get supportEmail(){return this.domainConfigService.getSupportEmail()}constructor(i,o,n,a,s,m,d){this.fb=i,this.authService=o,this.router=n,this.route=a,this.usersService=s,this.domainConfigService=m,this.posthogService=d,this.isLoading$=this.authService.isLoading$,this.authService.currentUserValue&&this.router.navigate(["/"]),this.signupSubtitle=this.domainConfigService.getSignupSubtitle(),this.termsUrl=this.domainConfigService.getTermsUrl(),this.privacyUrl=this.domainConfigService.getPrivacyUrl(),this.brandName=this.domainConfigService.getBrandName(),this.productId=this.domainConfigService.getProductId()}ngOnInit(){if(this.initForm(),!this.domainConfigService.isSupportedPlan())return this.registrationForm.disable(),void this.showCustomAlert(`We're unable to process this invalid signup link. Please reach out to our support team at ${this.supportEmail}`,"error","",!0,`${this.svgIconHtml} Okay`);console.log("inside of login left Jitu route",this.route.snapshot.queryParams);const o=this.route.snapshot.queryParams.user_token,n=this.route.snapshot.queryParams.userId,a=this.route.snapshot.queryParams.provider;console.log("userId",n,"provider",a,"token",o),this.authService.setAuthFromLocalStorage({data:{token:o}}),console.log("Token => ",o),o&&n&&"google"===a?(console.log("inside of login left maha 001"),this.initForm(),console.log("inside of login left Jitu route",this.route.snapshot.queryParams),console.log("userId",n),console.log("provider",a),this.usersService.updateUserStatus(n,o).subscribe({next:s=>{console.log("User status updated successfully:",s),this.showCustomAlert("You have successfully joined the team.","success","",!0,"Okay")},error:s=>{console.error("Error updating user status:",s),this.showCustomAlert("Failed to join the team. Please try again.","error","",!0,"Okay")}}),this.returnUrl=this.route.snapshot.queryParams.returnUrl||"/"):o?(console.log("inside of login left maha 002 else if"),this.isTokenLoading$=(0,y.of)(!0),this.authService.getUserByToken().subscribe({next:s=>{if(s){const m=s.data.email;m&&I.Ay.identify(m,{email:m,productid:this.productId}),this.returnUrl=this.authService.getNextActionForUser(),this.router.navigate([this.returnUrl])}this.isTokenLoading$=(0,y.of)(!1)},error:s=>{console.error("Token validation failed:",s),this.isTokenLoading$=(0,y.of)(!1)}})):(console.log("inside of login left maha 002 else"),this.initForm(),this.returnUrl=this.route.snapshot.queryParams.returnUrl||"/")}handleGoogleRedirectLogic(i){i.preventDefault(),this.authService.getGoogleAuthLink().subscribe({next:o=>{console.log("Redirecting to:",o),window.location.href=o},error:o=>{console.error("Error fetching Google auth link",o)}})}get f(){return this.registrationForm.controls}svgIconPath="./assets/media/recotap-assets/icons/like-duotone.svg";svgIconHtml=`<img src="${this.svgIconPath}" width="16" height="16" style="vertical-align:middle;" />`;success="./assets/media/recotap-assets/icons/check-circle-outline-1.svg";error="./assets/media/recotap-assets/icons/information-1-outline.svg";showCustomAlert(i,o="warning",n,a,s){const d=`\n\n            <img src="${"success"===o?this.success:this.error}" style="padding-bottom: 20px;" />\n            ${"success"===o?'<h4 style="padding-bottom:12px;  margin:0px; color:  #141414; font-size: 16px; font-weight: 500;">Verify your Email.</h4  >':""}\n             <p style="font-family: Inter; font-size: ${"success"===o?"14px":"16px"}; font-style: normal; font-weight: 500; color: ${"success"===o?"#8C8C8C":"#141414"}; padding-bottom: 32px; margin:0px">\n        ${i}\n    </p>`;k().fire({html:d,icon:void 0,showCancelButton:!1,confirmButtonText:s,customClass:{popup:"p-6 d-flex flex-column justify-content-center align-self-center align-items-center mw-400px",confirmButton:"btn btn-lg btn-primary p-3 pe-4 rounded-pill m-0",cancelButton:"btn btn-lg btn-secondary rounded-pill",actions:"swal2-actions m-0",htmlContainer:"swal2-html-container m-0 "},cancelButtonText:"Cancel",heightAuto:!1,preConfirm:()=>Promise.resolve()}).then(x=>{x.isConfirmed&&n&&this.router.navigate([n])})}initForm(){this.registrationForm=this.fb.group({email:["",g.k0.compose([g.k0.required,g.k0.minLength(4),g.k0.maxLength(254),g.k0.pattern(/^(?!.*\.\.)[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,63}$/)])],password:["",g.k0.compose([g.k0.required,g.k0.maxLength(100),g.k0.pattern(/^(?=.*\d)(?=.*[A-Z])(?=.*[a-z])(?=.*[^\w\d\s:]
1).{8,}$/)])],cPassword:["",g.k0.compose([g.k0.required,g.k0.maxLength(100),g.k0.pattern(/^(?=.*\d)(?=.*[A-Z])(?=.*[a-z])(?=.*[^\w\d\s:]).{8,}$/)])]},{validator:L.MatchPassword}),[{control:"email",action:"email_filled"},{control:"password",action:"password_filled"}].forEach(({control:o,action:n})=>{const a=this.registrationForm.get(o).valueChanges.pipe((0,ct.B)(800),(0,gt.F)(),(0,mt.p)(()=>this.registrationForm.get(o).valid)).subscribe(()=>{this.posthogService.track("registration","signup",n)});this.unsubscribe.push(a)})}cpasswordVisible=!1;toggleCPasswordVisibility(){this.cpasswordVisible=!this.cpasswordVisible}passwordVisible=!1;togglePasswordVisibility(){this.passwordVisible=!this.passwordVisible}submit(){if(!this.domainConfigService.isSupportedPlan())return void this.showCustomAlert(`We're unable to process this invalid signup link. Please reach out to our support team at ${this.supportEmail}`,"error","",!0,`${this.svgIconHtml} Okay`);if(this.registrationForm.invalid)return void this.registrationForm.markAllAsTouched();this.posthogService.track("registration","signup","form_submitted");const o={};Object.keys(this.f).forEach(d=>{o[d]=this.f[d].value});const n=new lt;n.setUser(o);const a=this.domainConfigService.getDecodedPlan(),s=this.authService.registration(n,a??void 0).pipe((0,st.M)(d=>{200===d.data.status&&I.Ay.identify(this.registrationForm.get("email")?.value,{email:this.registrationForm.get("email")?.value}),this.popupSwal.swalOptions={title:"Verify your Email.",text:b.V.SIGNUP,imageUrl:l.T.success,showCancelButton:!1,confirmButtonText:`${l.K.svgIconHtml} Okay`,customClass:{confirmButton:l.K.customClass.confirmButton,cancelButton:l.K.customClass.cancelButton},heightAuto:l.K.heightAuto,reverseButtons:l.K.reverseButtons},this.popupSwal.fire().then(x=>{x.isConfirmed&&this.router.navigate(["/"])})}),(0,rt.W)(d=>(this.popupSwal.swalOptions={title:b.C[d.error.customMessage],imageUrl:l.T.error,showCancelButton:!1,confirmButtonText:`${l.K.svgIconHtml} Okay`,customClass:{confirmButton:l.K.customClass.confirmButton,cancelButton:l.K.customClass.cancelButton},heightAuto:l.K.heightAuto,reverseButtons:l.K.reverseButtons},this.popupSwal.fire(),(0,y.of)(void 0)))).subscribe(d=>{}),m=this.registrationForm.get("email")?.value;I.Ay.identify(m),this.unsubscribe.push(s)}ngOnDestroy(){this.unsubscribe.forEach(i=>i.unsubscribe())}static \u0275fac=function(o){return new(o||e)(t.rXU(g.ok),t.rXU(_.u),t.rXU(p.Ix),t.rXU(p.nX),t.rXU(G.g),t.rXU(f.K),t.rXU(dt.s))};static \u0275cmp=t.VBU({type:e,selectors:[["app-signup-left"]],viewQuery:function(o,n){if(1&o&&t.GBs(ut,5),2&o){let a;t.mGM(a=t.lsd())&&(n.popupSwal=a.first)}},decls:65,vars:66,consts:[[1,"d-flex","flex-column","align-items-center","justify-content-between","w-100","h-100"],[1,"d-flex","align-items-center","justify-content-between"],[1,"w-400px"],["novalidate","novalidate","id","kt_login_signup_form",1,"form",3,"formGroup","ngSubmit"],[1,"text-center"],[1,"text-dark","fw-bold","mb-3"],[1,"text-gray-500","fw-semibold","fs-7","mb-8"],[1,"fv-row","mb-6"],[1,"form-label","fw-bold","text-dark","fs-6","mb-3"],["type","email","placeholder","Enter Email","name","email","formControlName","email",1,"form-control","bg-gray-100","rounded-pill","px-4","py-2","mb-2",3,"ngClass"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"position-relative","mb-2"],["placeholder","Enter Password","name","password","formControlName","password",1,"form-control","bg-gray-100","rounded-pill","ps-4","pe-9","py-2","mb-2",3,"type","ngClass"],[1,"btn","btn-sm","btn-icon","position-absolute","translate-middle","top-50","end-0","me-n2",3,"click"],[4,"ngIf"],[1,"mt-2",3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"text-semantic-red","m-0"],["data-kt-password-meter","true",1,"fv-row","mb-8"],["placeholder","Enter Confirm Password","name","cPassword","formControlName","cPassword",1,"form-control","bg-gray-100","rounded-pill","ps-4","pe-9","py-2",3,"type","ngClass"],[1,"d-grid"],["type","submit",1,"btn-solid-primary","py-3","px-4","rounded-pill"],[1,"text-gray-500","text-center","fs-6","mt-6"],["routerLink","/auth/login",1,"text-gray-900","fw-bold","fs-6"],[1,"d-flex","text-center","flex-wrap","w-100","pt-6"],[1,"text-gray-500","fs-7"],["target","_blank",1,"text-gray-900","fs-7",3,"href"],["formError",""],["popupSwal",""],["src","assets/media/recotap-assets/icons/eye-slash -duotone.svg","alt","Show Password",1,"custom-icon"],["src","assets/media/recotap-assets/icons/eye-duotone.svg","alt","Hide Password",1,"custom-icon"],[1,"fv-plugins-message-container","m-0"],["class","fv-help-block text-semantic-red",4,"ngIf"],[1,"fv-help-block","text-semantic-red"],[1,"indicator-label"],[1,"indicator-progress"],[1,"spinner-border","spinner-border-sm","align-middle","ms-2"],[1,"fv-help-block"],["role","alert",1,"text-semantic-red"]],template:function(o,n){if(1&o&&(t.j41(0,"div",0),t.nrm(1,"div",1),t.j41(2,"div",2)(3,"form",3),t.bIt("ngSubmit",function(){return n.submit()}),t.j41(4,"div",4)(5,"h1",5),t.EFF(6,"Sign Up"),t.k0s(),t.j41(7,"div",6),t.EFF(8),t.k0s()(),t.j41(9,"div",7)(10,"label",8),t.EFF(11,"Email*"),t.k0s(),t.nrm(12,"input",9),t.eu8(13,10)(14,10)(15,10),t.k0s(),t.j41(16,"div",7)(17,"label",8),t.EFF(18,"Password*"),t.k0s(),t.j41(19,"div",11),t.nrm(20,"input",12),t.j41(21,"span",13),t.bIt("click",function(){return n.togglePasswordVisibility()}),t.DNE(22,pt,2,0,"ng-container",14)(23,ht,2,0,"ng-container",14),t.k0s()(),t.eu8(24,15)(25,10),t.j41(26,"ul",16),t.DNE(27,wt,2,4,"li",14)(28,bt,2,4,"li",14)(29,St,2,4,"li",14),t.k0s()(),t.j41(30,"div",17)(31,"label",8),t.EFF(32,"Confirm Password*"),t.k0s(),t.j41(33,"div",11),t.nrm(34,"input",18),t.j41(35,"span",13),t.bIt("click",function(){return n.toggleCPasswordVisibility()}),t.DNE(36,kt,2,0,"ng-container",14)(37,yt,2,0,"ng-container",14),t.k0s()(),t.eu8(38,10),t.DNE(39,Pt,3,1,"ng-container",14),t.k0s(),t.j41(40,"div",19)(41,"button",20),t.DNE(42,It,3,0,"ng-container",14),t.nI1(43,"async"),t.DNE(44,Tt,4,2,"ng-container",14),t.nI1(45,"async"),t.k0s(),t.j41(46,"div",21),t.EFF(47," Already have an account? "),t.j41(48,"span")(49,"a",22),t.EFF(50,"Sign In"),t.k0s()()()()()(),t.j41(51,"div",23)(52,"span",24),t.EFF(53),t.j41(54,"span")(55,"a",25),t.EFF(56," Terms of Use"),t.k0s()(),t.EFF(57," and confirm that I have read the "),t.j41(58,"span")(59,"a",25),t.EFF(60," Privacy Policy"),t.k0s()()()()(),t.DNE(61,Et,1,1,"ng-template",null,26,t.C5r),t.nrm(63,"swal",null,27)),2&o){const a=t.sdS(62);let s,m,d;t.R7$(3),t.Y8G("formGroup",n.registrationForm),t.R7$(5),t.JRh(n.signupSubtitle),t.R7$(4),t.Y8G("ngClass",t.ziG(38,j,(null==(s=n.registrationForm.get("email"))?null:s.invalid)&&
1((null==(s=n.registrationForm.get("email"))?null:s.dirty)||(null==(s=n.registrationForm.get("email"))?null:s.touched)),!(null!=(s=n.registrationForm.get("email"))&&s.invalid)&&(null==(s=n.registrationForm.get("email"))?null:s.value),(null==(s=n.registrationForm.get("email"))?null:s.invalid)&&((null==(s=n.registrationForm.get("email"))?null:s.dirty)||(null==(s=n.registrationForm.get("email"))?null:s.touched)),!(null!=(s=n.registrationForm.get("email"))&&s.invalid)&&(null==(s=n.registrationForm.get("email"))?null:s.value))),t.R7$(),t.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",t.eq3(43,Bt,n.registrationForm.controls.email)),t.R7$(),t.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",t.eq3(45,Rt,n.registrationForm.controls.email)),t.R7$(),t.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",t.eq3(47,$t,n.registrationForm.controls.email)),t.R7$(5),t.FS9("type",n.passwordVisible?"text":"password"),t.Y8G("ngClass",t.ziG(49,j,(null==(m=n.registrationForm.get("password"))?null:m.invalid)&&((null==(m=n.registrationForm.get("password"))?null:m.dirty)||(null==(m=n.registrationForm.get("password"))?null:m.touched)),!(null!=(m=n.registrationForm.get("password"))&&m.invalid)&&(null==(m=n.registrationForm.get("password"))?null:m.value),(null==(m=n.registrationForm.get("password"))?null:m.invalid)&&((null==(m=n.registrationForm.get("password"))?null:m.dirty)||(null==(m=n.registrationForm.get("password"))?null:m.touched)),!(null!=(m=n.registrationForm.get("password"))&&m.invalid)&&(null==(m=n.registrationForm.get("password"))?null:m.value))),t.R7$(),t.BMQ("aria-label",n.passwordVisible?"Hide password":"Show password"),t.R7$(),t.Y8G("ngIf",!n.passwordVisible),t.R7$(),t.Y8G("ngIf",n.passwordVisible),t.R7$(),t.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",t.eq3(54,Lt,n.registrationForm.controls.password)),t.R7$(),t.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",t.eq3(56,Gt,n.registrationForm.controls.password)),t.R7$(2),t.Y8G("ngIf",null==n.registrationForm.controls.password.errors?null:n.registrationForm.controls.password.errors.pattern),t.R7$(),t.Y8G("ngIf",null==n.registrationForm.controls.password.errors?null:n.registrationForm.controls.password.errors.pattern),t.R7$(),t.Y8G("ngIf",null==n.registrationForm.controls.password.errors?null:n.registrationForm.controls.password.errors.pattern),t.R7$(5),t.FS9("type",n.cpasswordVisible?"text":"password"),t.Y8G("ngClass",t.s1E(58,jt,((null==(d=n.registrationForm.get("cPassword"))?null:d.invalid)||n.registrationForm.hasError("mismatch"))&&((null==(d=n.registrationForm.get("cPassword"))?null:d.dirty)||(null==(d=n.registrationForm.get("cPassword"))?null:d.touched)),((null==(d=n.registrationForm.get("cPassword"))?null:d.invalid)||n.registrationForm.hasError("mismatch"))&&((null==(d=n.registrationForm.get("cPassword"))?null:d.dirty)||(null==(d=n.registrationForm.get("cPassword"))?null:d.touched)),!(null!=(d=n.registrationForm.get("cPassword"))&&d.invalid)&&!n.registrationForm.hasError("mismatch")&&(null==(d=n.registrationForm.get("cPassword"))?null:d.value),((null==(d=n.registrationForm.get("cPassword"))?null:d.invalid)||n.registrationForm.hasError("mismatch"))&&((null==(d=n.registrationForm.get("cPassword"))?null:d.dirty)||(null==(d=n.registrationForm.get("cPassword"))?null:d.touched)),!(null!=(d=n.registrationForm.get("cPassword"))&&d.invalid)&&!n.registrationForm.hasError("mismatch")&&(null==(d=n.registrationForm.get("cPassword"))?null:d.value))),t.R7$(),t.BMQ("aria-label",n.cpasswordVisible?"Hide password":"Show password"),t.R7$(),t.Y8G("ngIf",!n.cpasswordVisible),t.R7$(),t.Y8G("ngIf",n.cpasswordVisible),t.R7$(),t.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",t.eq3(64,Ut,n.registrationForm.controls.cPassword)),t.R7$(),t.Y8G("ngIf",(n.registrationForm.controls.cPassword.dirty||n.registrationForm.controls.cPassword.touched)&&n.registrationForm.hasError("mismatch")),t.R7$(3),t.Y8G("ngIf",!1===t.bMT(43,34,n.isLoading$)),t.R7$(2),t.Y8G("ngIf",t.bMT(45,36,n.isLoading$)),t.R7$(9),t.SpI("By signing up, I agree to the ",n.brandName," "),t.R7$(2),t.Y8G("href",n.termsUrl,t.B4B),t.R7$(4),t.Y8G("href",n.privacyUrl,t.B4B)}},dependencies:[r.YU,r.bT,r.T3,p.Wk,g.qT,g.me,g.BC,g.cb,g.j4,g.JD,w.b7,r.Jj],styles:["[_nghost-%COMP%]{width:100%;height:100%}"]})}return e})();function Mt(e,c){if(1&e&&(t.qex(0),t.j41(1,"div",15),t.nrm(2,"img",16),t.k0s(),t.bVm()),2&e){const i=t.XpG(2);t.R7$(2),t.Y8G("src",i.carouselGif,t.B4B)}}const At=e=>({active:e});function Yt(e,c){if(1&e&&(t.j41(0,"div",20),t.nrm(1,"img",21),t.k0s()),2&e){const i=c.$implicit;t.Y8G("ngClass",t.eq3(2,At,0===c.index)),t.R7$(),t.Y8G("src",i.imageUrl,t.B4B)}}function Vt(e,c){if(1&e&&(t.j41(0,"div",17)(1,"div",18),t.DNE(2,Yt,2,4,"div",19),t.k0s()()),2&e){const i=t.XpG(2);t.R7$(2),t.Y8G("ngForOf",i.carouselItems)}}function Dt(e,c){1&e&&t.nrm(0,"img",22),2&e&&t.Y8G("src",c.$implicit,t.B4B)}function Xt(e,c){if(1&e&&(t.qex(0),t.j41(1,"div",2),t.nrm(2,"img",3)(3,"img",4),t.j41(4,"p",5),t.EFF(5),t.k0s()(),t.j41(6,"div",6),t.DNE(7,Mt,3,1,"ng-container",7)(8,Vt,3,1,"ng-template",null,8,t.C5r),t.k0s(),t.j41(10,"div",9)(11,"div",10)(12,"span",11),t.EFF(13," Trusted by over "),t.j41(14,"span",12),t.EFF(15," 1000+ marketers"),t.k0s(),t.EFF(16," globally "),t.k0s()(),t.j41(17,"div",13),t.DNE(18,Dt,1,1,"img",14),t.k0s()(),t.bVm()),2&e){const i=t.sdS(9),o=t.XpG();t.R7$(2),t.Y8G("src",o.loginLogo,t.B4B),t.R7$(),t.Y8G("src",o.loginLogo,t.B4B),t.R7$(2),t.SpI(" ",o.loginRightText," "),t.R7$(2),t.Y8G("ngIf",o.showGif&&o.carouselGif)("ngIfElse",i),t.R7$(11),t.Y8G("ngForOf",o.clients)}}function Kt(e,c){if(1&e&&(t.qex(0),t.j41(1,"div",23)(2,"div",24),t.nrm(3,"img",25)(4,"img",26),t.j41(5,"p",27),t.EFF(6),t.k0s(),t.j41(7,"p",28),t.EFF(8),t.k0s()(),t.j41(9,"div",29),t.nrm(10,"img",30),t.k0s()(),t.bVm()),2&e){const i=t.XpG();t.R7$(3),t.Y8G("src",i.loginLogo,t.B4B)("ngClass",i.isNativeAdRadarBrand?"w-125px h-40px":"w-200px"),t.R7$(),t.Y8G("src",i.loginLogo,t.B4B)("ngClass",i.isNativeAdRadarBrand?"w-125px h-40px":"w-200px"),t.R7$(2),t.SpI(" Never fly blind. ",i.brandName," sees everything. "),t.R7$(2),t.SpI(" ",i.brandName," is the AI Copilot for B2B teams running LinkedIn Ads. Specialized agents watch your campaigns 24/7 \u2014 flagging waste, predicting fatigue, and telling you exactly what to do next. "),t.R7$(2),t.Y8G("alt",i.brandName+" agents overview")}}let qt=(()=>{class e{domainConfigService;loginLogo="";loginRightText="";carouselGif=void 0;showGif=!1;productId="recotap";brandName="";isNativeAdRadarBrand=!1;constructor(i){this.domainConfigService=i,this.loginLogo=this.domainConfigService.getLoginLogo(),this.loginRightText=this.domainConfigService.getLoginRightText(),this.carouselGif=this.domainConfigService.getCarouselGif(),this.showGif=this.domainConfigService.hasCarouselGif(),this.productId=this.domainConfigService.getProductId(),this.brandName=this.domainConfigService.getBrandName(),this.isNativeAdRadarBrand="adradar"===this.domainConfigService.getTenantId()}clients=["assets/media/auth/darwinbox-logo.svg","assets/media/auth/wns.svg","assets/media/auth/netcore-logo.svg","assets/media/auth/sprinkler-logo.svg","assets/media/auth/allianz-logo.svg"];carouselItems=[{imageUrl:"assets/media/recotap-assets/icons/wrapper.webp"}];static \u0275fac=function(o){return new(o||e)(t.rXU(f.K))};static \u0275cmp=t.VBU({type:e,selectors:[["app-signup-right"]],decls:3,vars:2,consts:[[1,"d-flex","flex-column","align-items-center","w-100","h-100"],[4,"ngIf"],[1,"d-flex","flex-column","align-items-center","me-4"],["alt","Logo",1,"w-125px","d-none","d-sm-block",3,"src"],["alt","Logo",1,"w-125px","d-block","d-sm-none",3,"src"],[1,"pt-6","text-gray-900","fw-semibold","fs-5","m-0","p-0"],[1,"bg-transparent","w-450px","rounded-3","border-0"],[4,"ngIf","ngIfElse"],["carouselTemplate",""],[1,"w-450px"],[1,"separator","separator-content","mt-6","mb-8"],[1,"fw-semibold","overflow-hidden","text-gray-500","flex-column-auto","fs-6"],[1,"text-gray-900","fw-bold","fs-6"],[1,"d-flex","justify-content-center","align-items-center","flex-wrap","gap-6"],[3,"src",4,"ngFor","ngForOf"],[1,"d-flex","justify-content-center","align-items-center"],["alt","Dashboard Preview",1,"d-none","d-lg-block",2,"width","425px","height","270px","object-fit","contain",3,"src"],["id","kt_carousel_1_carousel",1,"carousel","slide"],[1,"carousel-inner","w-100","bg-transparent"],["class","carousel-item",3,"ngClass",4,"ngFor","ngForOf"],[1,"carousel-item",3,"ngClass"],["alt","",1,"d-none","d-lg-block","d-block","text-center","w-450px","object-fit-contain","object-position-center","auth-image-height",3,"src"],[3,"src"],[1,"d-flex","flex-column","justify-content-center","gap-10","align-items-center","w-100","h-100","pt-8","pb-0","login-right-adradar"],[1,"d-flex","flex-column","align-items-center"],["alt","Logo",1,"d-none","d-sm-block",3,"src","ngClass"],["alt","Logo",1,"d-block","d-sm-none",3,"src","ngClass"],[1,"adradar-title","pt-6","text-black","m-0","p-0","text-center",2,"font-weight","600 !important","font-size","36px !important","line-height","38px !important"],[1,"pt-7","fw-400","fs-7","m-0","p-0","text-center","adradar-subtitle",2,"color","#4B5563"],[1,"d-flex","justify-content-center","w-100"],["src","assets/media/recotap-assets/icons/auth-agent-bg.svg",1,"w-100","auth-image-height","login-right-adradar__image",2,"object-fit","contain",3,"alt"]],template:function(o,n){1&o&&(t.j41(0,"div",0),t.DNE(1,Xt,19,6,"ng-container",1)(2,Kt,11,7,"ng-container",1),t.k0s()),2&o&&(t.R
17$(),t.Y8G("ngIf","recotap"===n.productId),t.R7$(),t.Y8G("ngIf","adradar"===n.productId))},dependencies:[r.YU,r.Sq,r.bT],styles:["[_nghost-%COMP%]{display:flex}.carousel-indicators[_ngcontent-%COMP%]   .rounded-pill[_ngcontent-%COMP%]{width:8px;height:8px;background-color:#2f6eed80}.carousel-indicators[_ngcontent-%COMP%]   .active[_ngcontent-%COMP%]{width:24px;height:8px;background-color:#2f6eed80}.login-right-adradar[_ngcontent-%COMP%]{min-height:0}.login-right-adradar__image[_ngcontent-%COMP%]{max-width:475px;max-height:400px;height:auto;object-fit:contain}.login-right-adradar[_ngcontent-%COMP%]   .adradar-title[_ngcontent-%COMP%]{font-size:36px!important;line-height:38px!important}@media (max-width: 1199px),(max-height: 650px){.login-right-adradar[_ngcontent-%COMP%]{gap:1.25rem!important;padding-top:2.5rem!important;padding-left:1.25rem!important;padding-right:1.25rem!important}.login-right-adradar[_ngcontent-%COMP%]   .adradar-title[_ngcontent-%COMP%]{font-size:28px!important;line-height:32px!important}.login-right-adradar__image[_ngcontent-%COMP%]{max-width:420px;max-height:330px}}@media (max-height: 750px){.login-right-adradar[_ngcontent-%COMP%]{justify-content:flex-start!important;gap:1rem!important;padding-top:2rem!important;padding-left:1rem!important;padding-right:1rem!important}.login-right-adradar[_ngcontent-%COMP%]   .adradar-title[_ngcontent-%COMP%]{font-size:26px!important;line-height:30px!important}.login-right-adradar__image[_ngcontent-%COMP%]{max-width:390px!important;max-height:300px!important}}"]})}return e})(),zt=(()=>{class e{domainConfigService;authBackgroundImage="";constructor(i){this.domainConfigService=i,this.authBackgroundImage=this.domainConfigService.getAuthBackgroundImage()}static \u0275fac=function(o){return new(o||e)(t.rXU(f.K))};static \u0275cmp=t.VBU({type:e,selectors:[["app-signup"]],decls:8,vars:2,consts:[[1,"d-flex","flex-column","flex-root","h-100"],[1,"d-flex","flex-column","flex-lg-row","flex-column-fluid","bg-white"],[1,"w-lg-60","py-10","px-24","order-2","order-lg-1"],[1,"d-flex","flex-column","align-items-center","justify-content-center","w-100","h-100"],[1,"h-100","w-100","mw-400px"],[1,"w-lg-40","py-10","order-2","order-lg-1","bg-white","background-image","rounded-3","m-4","position-fixed","top-0","end-0","auth-right-section-height"],[1,"h-100","w-100","mw-450px"]],template:function(o,n){1&o&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.nrm(4,"app-signup-left",4),t.k0s()(),t.j41(5,"div",5)(6,"div",3),t.nrm(7,"app-signup-right",6),t.k0s()()()()),2&o&&(t.R
17$(5),t.xc7("background-image","url("+n.authBackgroundImage+")"))},dependencies:[Nt,qt],styles:["[_nghost-%COMP%]{width:100%;height:100%}@media (min-width: 992px){[_nghost-%COMP%]   .login-form[_ngcontent-%COMP%]{width:100%;max-width:450px}[_nghost-%COMP%]   .login-form[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}}.background-image[_ngcontent-%COMP%]{background-image:url(auth-background.6d26ed3cd9af8472.svg);background-size:cover;background-position:center;background-repeat:no-repeat}"]})}return e})();var R=u(84412),Ht=u(71985),Jt=u(51040);const Wt=["popupSwal"];function Zt(e,c){if(1&e){const i=t.RV6();t.j41(0,"div",30)(1,"div",31)(2,"a",32),t.bIt("click",function(n){t.eBV(i);const a=t.XpG(2);return t.Njj(a.handleGoogleRedirectLogic(n))}),t.nrm(3,"img",33),t.EFF(4,"Sign in with Google"),t.k0s()()()}}function Qt(e,c){1&e&&(t.qex(0),t.nrm(1,"img",34),t.bVm())}function te(e,c){1&e&&(t.qex(0),t.nrm(1,"img",35),t.bVm())}function ee(e,c){1&e&&(t.qex(0),t.j41(1,"span",36),t.EFF(2," Please wait... "),t.nrm(3,"span",37),t.k0s(),t.bVm()),2&e&&(t.R7$(),t.xc7("display","block"))}function oe(e,c){1&e&&(t.j41(0,"span",38),t.EFF(1,"Sign In"),t.k0s())}function ne(e,c){1&e&&(t.j41(0,"div",39)(1,"span")(2,"a",40),t.EFF(3," Login using Single Sign-on"),t.k0s()()())}function ie(e,c){1&e&&(t.j41(0,"div",41),t.EFF(1," Don't have an account? "),t.j41(2,"span")(3,"a",42),t.EFF(4,"Sign Up"),t.k0s()()())}const se=(e,c,i,o,n)=>({"mb-2":e,"border-semantic-red":c,"border-black":i,"text-semantic-red":o,"text-gray-900":n}),re=e=>({validation:"required",message:"Email is required",control:e}),ae=e=>({validation:"maxLength",message:"Email should have maximum 254 symbols",control:e}),le=e=>({validation:"pattern",message:"Enter a valid mail id",control:e}),ce=(e,c,i)=>({"mb-2":e,"border-semantic-red":c,"border-black":i}),ge=e=>({validation:"required",message:"Password is required",control:e}),me=e=>({validation:"maxLength",message:"Password should have maximum 100 symbols",control:e});function de(e,c){if(1&e){const i=t.RV6();t.j41(0,"div",4),t.nrm(1,"div",5),t.j41(2,"div",6)(3,"form",7),t.bIt("ngSubmit",function(){t.eBV(i);const n=t.XpG();return t.Njj(n.submit())}),t.j41(4,"div",8)(5,"h1",9),t.EFF(6,"Sign In"),t.k0s(),t.j41(7,"div",10),t.EFF(8),t.k0s()(),t.DNE(9,Zt,5,0,"div",11),t.j41(10,"div",12)(11,"label",13),t.EFF(12,"Email*"),t.k0s(),t.nrm(13,"input",14),t.eu8(14,15)(15,15)(16,15),t.k0s(),t.j41(17,"div",16)(18,"div",17)(19,"label",18),t.EFF(20,"Password*"),t.k0s(),t.j41(21,"a",19),t.EFF(22," Forgot Password ? "),t.k0s()(),t.j41(23,"div",20),t.nrm(24,"input",21),t.j41(25,"span",22),t.bIt("click",function(){t.eBV(i);const n=t.XpG();return t.Njj(n.togglePasswordVisibility())}),t.DNE(26,Qt,2,0,"ng-container",23)(27,te,2,0,"ng-container",23),t.k0s()(),t.eu8(28,15)(29,15),t.k0s(),t.j41(30,"div",24)(31,"button",25),t.DNE(32,ee,4,2,"ng-container",26),t.nI1(33,"async"),t.nI1(34,"async"),t.DNE(35,oe,2,0,"ng-template",null,27,t.C5r),t.k0s()(),t.DNE(37,ne,4,0,"div",28)(38,ie,5,0,"div",29),t.k0s()(),t.nrm(39,"div",5),t.k0s()}if(2&e){const i=t.sdS(36),o=t.XpG(),n=t.sdS(5);let a,s;t.R7$(3),t.Y8G("formGroup",o.loginForm),t.R7$(5),t.JRh(o.loginSubtitle),t.R7$(),t.Y8G("ngIf","recotap"===o.productId),t.R7$(4),t.Y8G("ngClass",t.s1E(27,se,(null==(a=o.loginForm.get("email"))?null:a.invalid)&&((null==(a=o.loginForm.get("email"))?null:a.dirty)||(null==(a=o.loginForm.get("email"))?null:a.touched)),(null==(a=o.loginForm.get("email"))?null:a.invalid)&&((null==(a=o.loginForm.get("email"))?null:a.dirty)||(null==(a=o.loginForm.get("email"))?null:a.touched)),!(null!=(a=o.loginForm.get("email"))&&a.invalid)&&(null==(a=o.loginForm.get("email"))?null:a.value),(null==(a=o.loginForm.get("email"))?null:a.invalid)&&((null==(a=o.loginForm.get("email"))?null:a.dirty)||(null==(a=o.loginForm.get("email"))?null:a.touched)),!(null!=(a=o.loginForm.get("email"))&&a.invalid)&&(null==(a=o.loginForm.get("email"))?null:a.value))),t.R7$(),t.Y8G("ngTemplateOutlet",n)("ngTemplateOutletContext",t.eq3(33,re,o.loginForm.controls.email)),t.R7$(),t.Y8G("ngTemplateOutlet",n)("ngTemplateOutletContext",t.eq3(35,ae,o.loginForm.controls.email)),t.R7$(),t.Y8G("ngTemplateOutlet",n)("ngTemplateOutletContext",t.eq3(37,le,o.loginForm.controls.email)),t.R7$(8),t.FS9("type",o.passwordVisible?"text":"password"),t.Y8G("ngClass",t.sMw(39,ce,(null==(s=o.loginForm.get("password"))?null:s.invalid)&&
1((null==(s=o.loginForm.get("password"))?null:s.dirty)||(null==(s=o.loginForm.get("password"))?null:s.touched)),(null==(s=o.loginForm.get("password"))?null:s.invalid)&&((null==(s=o.loginForm.get("password"))?null:s.touched)||(null==(s=o.loginForm.get("password"))?null:s.dirty))&&!(null!=(s=o.loginForm.get("password"))&&s.value),null==(s=o.loginForm.get("password"))?null:s.value)),t.R7$(),t.BMQ("aria-label",o.passwordVisible?"Hide password":"Show password"),t.R7$(),t.Y8G("ngIf",!o.passwordVisible),t.R7$(),t.Y8G("ngIf",o.passwordVisible),t.R7$(),t.Y8G("ngTemplateOutlet",n)("ngTemplateOutletContext",t.eq3(43,ge,o.loginForm.controls.password)),t.R7$(),t.Y8G("ngTemplateOutlet",n)("ngTemplateOutletContext",t.eq3(45,me,o.loginForm.controls.password)),t.R7$(3),t.Y8G("ngIf",t.bMT(33,23,o.isLoading$)||t.bMT(34,25,o.isSSOLoading$))("ngIfElse",i),t.R7$(5),t.Y8G("ngIf","recotap"===o.productId),t.R7$(),t.Y8G("ngIf","adradar"===o.productId)}}function ue(e,c){1&e&&(t.j41(0,"div",43)(1,"div",6)(2,"div",8)(3,"span",44),t.EFF(4," Please wait... "),t.nrm(5,"span",37),t.k0s()()()()),2&e&&(t.R7$(3),t.xc7("display","block"))}function pe(e,c){if(1&e&&(t.qex(0),t.j41(1,"div",45)(2,"div",46)(3,"span",47),t.EFF(4),t.k0s()()(),t.bVm()),2&e){const i=t.XpG().message;t.R7$(4),t.SpI(" ",i," ")}}function he(e,c){if(1&e&&t.DNE(0,pe,5,1,"ng-container",23),2&e){const i=c.control;t.Y8G("ngIf",i.hasError(c.validation)&&(i.dirty||i.touched))}}let fe=(()=>{class e{formbuilder;authService;route;router;usersService;domainConfigService;defaultAuth={email:"",password:""};loginForm;hasError;returnUrl;isLoading$;isTokenLoading$;isSSOLoading$;ssoLoadingSubject=new R.t(!1);isTokenExist$=new Ht.c;isTokenExistSubject=new R.t(!1);popupSwal;unsubscribe=[];loginSubtitle="";productId="recotap";get supportEmail(){return this.domainConfigService.getSupportEmail()}withSupportEmail(i){return(i??"").replace("{supportEmail}",this.supportEmail)}constructor(i,o,n,a,s,m){this.formbuilder=i,this.authService=o,this.route=n,this.router=a,this.usersService=s,this.domainConfigService=m,this.isLoading$=this.authService.isLoading$,this.isTokenLoading$=(0,y.of)(!1),this.isSSOLoading$=this.ssoLoadingSubject.asObservable(),this.isTokenExist$=this.isTokenExistSubject.asObservable(),this.authService.currentUserValue&&this.router.navigate(["/"]),this.loginSubtitle=this.domainConfigService.getLoginSubtitle(),this.productId=this.domainConfigService.getProductId()}svgIconPath="./assets/media/recotap-assets/icons/like-duotone.svg";svgIconHtml=`<img src="${this.svgIconPath}" width="16" height="16" style="vertical-align:middle;" />`;success="./assets/media/recotap-assets/icons/check-circle-outline-1.svg";error="./assets/media/recotap-assets/icons/information-1-outline.svg";showCustomAlert(i,o="warning",n,a,s){const m="success"===o?this.success:this.error;let d,x;"Please verify your email by using the verification link sent to your email or reset your password."===i?(d=`\n       \n          <img src="${m}" style="padding-bottom: 20px;" />\n          <h4 style="padding-bottom:12px;  margin:0px; color:  #141414; font-size: 16px; font-weight: 500; ">Your Email is not verified yet.</h4>\n          <p style="font-family: Inter; font-size: 14px; font-style: normal; font-weight: 500; color: #8C8C8C; padding-bottom: 32px; margin:0px">${i}</p>`,x={popup:"p-6 d-flex flex-column justify-content-center align-self-center align-items-center mw-400px",confirmButton:"btn btn-lg btn-primary p-3 pe-4 rounded-pill m-0",cancelButton:"btn btn-lg btn-secondary rounded-pill",actions:"swal2-actions m-0",htmlContainer:"swal2-html-container m-0"}):(d=`\n           <img src="${m}" style="padding-bottom: 20px;" />\n             <p style="font-family: Inter; font-size: 16px; font-style: normal; font-weight: 500; color: #141414; padding-bottom: 32px; margin:0px">${i}</p>`,x={popup:"p-6 d-flex flex-column justify-content-center align-self-center align-items-center mw-400px",confirmButton:"btn btn-lg btn-primary p-3 pe-4 rounded-pill m-0",cancelButton:"btn btn-lg btn-secondary rounded-pill",actions:"swal2-actions m-0",htmlContainer:"swal2-html-container m-0"}),k().fire({html:d,icon:void 0,showCancelButton:!a,confirmButtonText:s,customClass:x,cancelButtonText:"Cancel",heightAuto:!1,preConfirm:()=>Promise.resolve()}).then(Co=>{Co.isConfirmed&&!a&&this.router.navigate([n])})}
1ngOnInit(){const i=this.route.snapshot.queryParams;console.log("Query Params:",i);let o=i.token||i.user_token;this.isTokenExistSubject.next(!!o),console.log("Extracted Token:",o);const n=i.userId,a=i.provider;console.log("userId:",n,"provider:",a,"token:",o),o?(console.log("Token found, storing in localStorage"),this.authService.setAuthFromLocalStorage({data:{token:o}}),o&&n&&"google"===a?(console.log("Handling Google authentication"),this.initForm(),this.usersService.updateUserStatus(n,o).subscribe({next:s=>{console.log("User status updated successfully:",s),this.showCustomAlert("You have successfully joined the team.","success","",!0,"Okay")},error:s=>{console.error("Error updating user status:",s),this.showCustomAlert("Failed to join the team. Please try again.","error","",!0,"Okay")}}),this.returnUrl=i.returnUrl||"/"):(console.log("Handling SSO authentication"),this.ssoLoadingSubject.next(!0),this.authService.getUserByToken().subscribe({next:s=>{if(s){let m={email:s.data?.email,userid:s.data?._id,clientaccountid:"",teamid:""};"active"===s.data?.status&&(m.clientaccountid=s.data?.clientAccounts[0]?.clientAccountId?._id,m.teamid=s.data?.clientAccounts[0]?.teams[0]?.teamId?._id),s.data?.email&&I.Ay.identify(s.data.email,{...m,productid:this.productId}),this.returnUrl=this.authService.getNextActionForUser(),this.router.navigate([this.returnUrl])}this.ssoLoadingSubject.next(!1)},error:s=>{console.error("Token validation failed:",s),this.ssoLoadingSubject.next(!1),this.showCustomAlert("Failed to authenticate with token","error","",!0,"Okay")}}))):(console.log("No token found, initializing login form"),this.initForm(),this.returnUrl=i.returnUrl||"/"),this.route.queryParams.subscribe(s=>{"false"===s.googleSignUp&&this.showUserNotFoundPopup()})}get formControl(){return this.loginForm.controls}initForm(){this.loginForm=this.formbuilder.group({email:["",g.k0.compose([g.k0.required,g.k0.email,g.k0.minLength(4),g.k0.maxLength(254),g.k0.pattern(/^(?!.*\.\.)[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,63}$/)])],password:["",g.k0.compose([g.k0.required])]})}passwordVisible=!1;togglePasswordVisibility(){this.passwordVisible=!this.passwordVisible}handleGoogleRedirectLogic(i){i.preventDefault(),this.authService.getGoogleAuthLink().subscribe({next:o=>{console.log("Redirecting to:",o),window.location.href=o},error:o=>{console.error("Error fetching Google auth link",o)}})}showUserNotFoundPopup(){(0,Jt.b1)(`We can't find that email.please contact our support team at ${this.supportEmail} for assistance.`,"error",null,"Okay",!1,!0,"svgIconHtml",null,"",()=>this.removeGoogleSignUpParam())}removeGoogleSignUpParam(){const i=new URL(window.location.href);i.searchParams.delete("googleSignUp"),this.router.navigateByUrl(i.pathname+i.search)}handleMicrosoftRedirectLogic(i){i.preventDefault(),this.authService.getMicrosoftAuthLink().subscribe({next:o=>{console.log("Redirecting to:",o),window.open(o,"_blank")},error:o=>{console.error("Error fetching Microsoft auth link",o)}})}submit(){if(this.loginForm.invalid)return this.hasError=!0,void this.loginForm.markAllAsTouched();this.hasError=!1;const i=this.authService.login(this.formControl.email.value,this.formControl.password.value).pipe((0,C.$)()).subscribe({next:o=>{if(o){if(o.data){const n=o.data?._id;let a={email:o.data?.email,name:o.data?.name,userid:n,clientaccountid:"",teamid:"",companyname:"",websitedomain:""};"active"===o.data?.status&&(a.clientaccountid=o.data.clientAccounts[0]?.clientAccountId?._id,a.teamid=o.data.clientAccounts[0]?.teams[0]?.teamId?._id,a.companyname=o.data.clientAccounts[0]?.clientAccountId?.companyName,a.websitedomain=o.data.clientAccounts[0]?.clientAccountId?.website),console.log("payload",a),console.log("posthog",o.data?.name,o.data?.email,n,a.clientaccountid,a.teamid),I.Ay.identify(o.data?.email,{...a,productid:this.productId})}this.returnUrl=this.authService.getNextActionForUser(),this.router.navigate([this.returnUrl])}else this.popupSwal.swalOptions={title:"Something went wrong, Please try after sometime",imageUrl:l.T.error,showCancelButton:!1,confirmButtonText:`${l.K.svgIconHtml} Okay`,customClass:{confirmButton:l.K.customClass.confirmButton,cancelButton:l.K.customClass.cancelButton},heightAuto:l.K.heightAuto,reverseButtons:l.K.reverseButtons},this.popupSwal.fire()},error:o=>{if(o&&o.error&&o.error.customMessage){console.log("in login left error",o);let n={title:this.withSupportEmail(b.C[o.error.customMessage]||"Default Error Message"),imageUrl:l.T.error,showCancelButton:!1,confirmButtonText:`${l.K.svgIconHtml} Okay`,customClass:{confirmButton:l.K.customClass.confirmButton,cancelButton:l.K.customClass.cancelButton},heightAuto:l.K.heightAuto,reverseButtons:l.K.reverseButtons};"USER_NOT_VERIFIED"===o.error.customMessage?n={...n,title:"Your Email is not verified yet.",imageUrl:l.T.warning,text:b.C[o.error.customMessage]}:"NO_TEAM_FOUND"===o.error.customMessage?n={...n,title:"The workspace you're part of has been archived. Please contact the workspace Owner for more information.",imageUrl:l.T.error}:"NO_CLIENT_ACCOUNT_FOUND"===o.error.customMessage&&(n={...n,title:"You are not part of any workspace. Please contact the admin for more information.",imageUrl:l.T.error}),this.popupSwal.swalOptions=n,this.popupSwal.fire()}else this.popupSwal.swalOptions={title:"Something went wrong, Please try after sometime",imageUrl:l.T.error,showCancelButton:!1,confirmButtonText:`${l.K.svgIconHtml} Okay`,customClass:{confirmButton:l.K.customClass.confirmButton,cancelButton:l.K.customClass.cancelButton},heightAuto:l.K.heightAuto,reverseButtons:l.K.reverseButtons},this.popupSwal.fire()}});this.unsubscribe.push(i)}ngOnDestroy(){this.unsubscribe.forEach(i=>
1i.unsubscribe())}static \u0275fac=function(o){return new(o||e)(t.rXU(g.ok),t.rXU(_.u),t.rXU(p.nX),t.rXU(p.Ix),t.rXU(G.g),t.rXU(f.K))};static \u0275cmp=t.VBU({type:e,selectors:[["app-login-left"]],viewQuery:function(o,n){if(1&o&&t.GBs(Wt,5),2&o){let a;t.mGM(a=t.lsd())&&(n.popupSwal=a.first)}},decls:8,vars:4,consts:[["class","d-flex flex-column align-items-center justify-content-between w-100 h-100",4,"ngIf","ngIfElse"],["loading",""],["formError",""],["popupSwal",""],[1,"d-flex","flex-column","align-items-center","justify-content-between","w-100","h-100"],[1,""],[1,"w-400px"],["novalidate","novalidate","id","kt_login_signin_form",1,"form",3,"formGroup","ngSubmit"],[1,"text-center"],[1,"text-dark","fw-bold","mb-3"],[1,"text-gray-500","fs-6","mb-8"],["class","row g-4 mb-8",4,"ngIf"],[1,"fv-row","mb-6"],[1,"form-label","fs-6","fw-bold","text-dark","m-0"],["type","email","name","email","placeholder","[email protected]","formControlName","email",1,"form-control","bg-gray-100","rounded-pill","mt-3","px-4","py-2",3,"ngClass"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["data-kt-password-meter","true",1,"fv-row","mb-8"],[1,"d-flex","flex-stack","flex-wrap","gap-3","fs-base","fw-semibold","mb-3"],[1,"form-label","fw-bold","text-dark","fs-6","m-0"],["routerLink","/auth/forgot-password",1,"text-semantic-blue"],[1,"position-relative"],["name","password","placeholder","12abc3@4","formControlName","password",1,"form-control","bg-gray-100","rounded-pill","mt-3","ps-4","pe-9","py-2",3,"type","ngClass"],[1,"btn","btn-sm","btn-icon","position-absolute","translate-middle","top-50","end-0","me-n2",3,"click"],[4,"ngIf"],[1,"d-grid"],["type","submit","id","kt_sign_in_submit",1,"btn-solid-primary","py-3","px-4","rounded-pill"],[4,"ngIf","ngIfElse"],["signInText",""],["class","text-semantic-blue text-center fs-6 my-6",4,"ngIf"],["class","text-gray-700 text-center fs-6 mt-5",4,"ngIf"],[1,"row","g-4","mb-8"],[1,"col-md-12"],[1,"d-flex","align-items-center","flex-wrap","btn-outline-secondary","fw-semibold","p-2","flex-center","text-nowrap","w-100","rounded-pill","text-gray-700","cursor-pointer",3,"click"],["alt","Logo","src","assets/media/svg/brand-logos/google-icon.svg",1,"h-15px","me-2"],["src","assets/media/recotap-assets/icons/eye-slash -duotone.svg","alt","Show Password",1,"custom-icon"],["src","assets/media/recotap-assets/icons/eye-duotone.svg","alt","Hide Password",1,"custom-icon"],[1,"indicator-progress"],[1,"spinner-border","spinner-border-sm","align-middle","ms-2"],[1,"indicator-label"],[1,"text-semantic-blue","text-center","fs-6","my-6"],["routerLink","/auth/single-sign-on",1,"text-semantic-blue","text-center","fs-6","my-6"],[1,"text-gray-700","text-center","fs-6","mt-5"],["routerLink","/auth/signup",1,"text-gray-900","fw-bold"],[1,"d-flex","align-items-center","justify-content-center","w-100","h-100"],[1,"indicator-progress","text-gray-900"],[1,"fv-plugins-message-container"],[1,"fv-help-block"],["role","alert",1,"text-semantic-red"]],template:function(o,n){if(1&o&&(t.DNE(0,de,40,47,"div",0),t.nI1(1,"async"),t.DNE(2,ue,6,2,"ng-template",null,1,t.C5r)(4,he,1,1,"ng-template",null,2,t.C5r),t.nrm(6,"swal",null,3)),2&o){const a=t.sdS(3);t.Y8G("ngIf",!1===t.bMT(1,2,n.isTokenExist$))("ngIfElse",a)}},dependencies:[r.YU,r.bT,r.T3,p.Wk,g.qT,g.me,g.BC,g.cb,g.j4,g.JD,w.b7,r.Jj]})}return e})();var U=u(25122);let we=(()=>{class e{authService;router;domainConfigService;authBackgroundImage="";ngOnInit(){console.log("LoginComponent loaded!")}constructor(i,o,n){this.authService=i,this.router=o,this.domainConfigService=n,this.authBackgroundImage=this.domainConfigService.getAuthBackgroundImage(),this.authService.currentUserValue&&this.router.navigate(["/"])}static \u0275fac=function(o){return new(o||e)(t.rXU(_.u),t.rXU(p.Ix),t.rXU(f.K))};static \u0275cmp=t.VBU({type:e,selectors:[["app-login"]],decls:8,vars:2,consts:[[1,"d-flex","flex-column","flex-root","h-100"],[1,"d-flex","flex-column","flex-lg-row","flex-column-fluid","bg-white"],[1,"w-lg-60","py-10","px-24","order-2","order-lg-1"],[1,"d-flex","flex-column","align-items-center","justify-content-center","h-100"],[1,"h-100","w-100","mw-400px"],[1,"w-lg-40","py-10","order-2","order-lg-1","bg-white","background-image","rounded-3","m-4","position-fixed","top-0","end-0","auth-right-section-height"],[1,"h-100","w-100","mw-450px"]],template:function(o,n){1&o&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.nrm(4,"app-login-left",4),t.k0s()(),t.j41(5,"div",5)(6,"div",3),t.nrm(7,"app-login-right",6),t.k0s()()()()),2&o&&(t.R
17$(5),t.xc7("background-image","url("+n.authBackgroundImage+")"))},dependencies:[fe,U.D],styles:["[_nghost-%COMP%]{width:100%;height:100%}@media (min-width: 992px){[_nghost-%COMP%]   .login-form[_ngcontent-%COMP%]{width:100%;max-width:450px}[_nghost-%COMP%]   .login-form[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}}.background-image[_ngcontent-%COMP%]{background-image:url(/assets/media/auth/auth-background.svg);background-size:cover;background-position:center;background-repeat:no-repeat}"]})}return e})();const ve=["popupSwal"];function _e(e,c){1&e&&(t.qex(0),t.nrm(1,"img",23),t.bVm())}function be(e,c){1&e&&(t.qex(0),t.nrm(1,"img",24),t.bVm())}const xe=e=>({validation:"pattern",message:"Password must be 8-20 characters long.",control:e});function Ce(e,c){if(1&e&&(t.j41(0,"li"),t.eu8(1,13),t.k0s()),2&e){const i=t.XpG(),o=t.sdS(46);t.R7$(),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(2,xe,i.setPasswordForm.controls.password))}}const ke=e=>({validation:"pattern",message:"Include at least one uppercase letter, one lowercase letter one number.",control:e});function ye(e,c){if(1&e&&(t.j41(0,"li"),t.eu8(1,13),t.k0s()),2&e){const i=t.XpG(),o=t.sdS(46);t.R7$(),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(2,ke,i.setPasswordForm.controls.password))}}const Pe=e=>({validation:"pattern",message:'One special character  (!, @, #, $, %, ^, &, *, (, ), _, +, -, =, {, }, [, ], :, ;,",<,>, , , ., ?, /, \\, |, ~)',control:e});function Ie(e,c){if(1&e&&(t.j41(0,"li"),t.eu8(1,13),t.k0s()),2&e){const i=t.XpG(),o=t.sdS(46);t.R7$(),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(2,Pe,i.setPasswordForm.controls.password))}}function Te(e,c){1&e&&(t.qex(0),t.nrm(1,"img",23),t.bVm())}function Oe(e,c){1&e&&(t.qex(0),t.nrm(1,"img",24),t.bVm())}function Ee(e,c){1&e&&(t.j41(0,"div",27),t.EFF(1," Passwords do not match. "),t.k0s())}function Be(e,c){if(1&e&&(t.qex(0),t.j41(1,"div",25),t.DNE(2,Ee,2,0,"div",26),t.k0s(),t.bVm()),2&e){const i=t.XpG();t.R7$(2),t.Y8G("ngIf",(null==i.setPasswordForm.controls.cPassword.value?null:i.setPasswordForm.controls.cPassword.value.length)>0)}}function Re(e,c){1&e&&(t.qex(0),t.j41(1,"span",28),t.EFF(2," Please wait... "),t.nrm(3,"span",29),t.k0s(),t.bVm()),2&e&&(t.R7$(),t.xc7("display","block"))}function $e(e,c){1&e&&(t.qex(0),t.j41(1,"span",30),t.EFF(2,"Submit"),t.k0s(),t.bVm())}function Le(e,c){if(1&e&&(t.qex(0),t.j41(1,"div",25)(2,"div",31)(3,"span",32),t.EFF(4),t.k0s()()(),t.bVm()),2&e){const i=t.XpG().message;t.R7$(4),t.JRh(i)}}function Ge(e,c){if(1&e&&t.DNE(0,Le,5,1,"ng-container",12),2&e){const i=c.control;t.Y8G("ngIf",i.hasError(c.validation)&&(i.dirty||i.touched))}}const N=(e,c,i,o,n)=>({"mb-2":e,"border-semantic-red":c,"border-black":i,"text-semantic-red":o,"text-gray-900":n}),je=e=>({validation:"required",message:"Password is required",control:e}),Ue=e=>({validation:"maxLength",message:"Password should have maximum 100 symbols",control:e}),Ne=e=>({validation:"required",message:"Confirm Password is required",control:e}),Me=e=>({validation:"maxLength",message:"Confirm Password should have maximum 100 symbols",control:e});var F=function(e){return e[e.NotSubmitted=0]="NotSubmitted",e[e.HasError=1]="HasError",e[e.NoError=2]="NoError",e}(F||{});let Ae=(()=>{class e{formbuilder;authService;router;route;domainConfigService;setPasswordForm;errorState=F.NotSubmitted;errorStates=F;isLoading$;verificationToken;popupSwal;unsubscribe=[];productId="recotap";get supportEmail(){return this.domainConfigService.getSupportEmail()}withSupportEmail(i){return(i??"").replace("{supportEmail}",this.supportEmail)}constructor(i,o,n,a,s){this.formbuilder=i,this.authService=o,this.router=n,this.route=a,this.domainConfigService=s,this.isLoading$=this.authService.isLoading$,this.productId=this.domainConfigService.getProductId()}ngOnInit(){this.initForm()}get handleForm(){return this.setPasswordForm.controls}svgIconPath="./assets/media/recotap-assets/icons/like-duotone.svg";svgIconHtml=`<img src="${this.svgIconPath}" width="16" height="16" style="vertical-align:middle;" />`;success="./assets/media/recotap-assets/icons/check-circle-outline-1.svg";error="./assets/media/recotap-assets/icons/information-1-outline.svg";warning="./assets/media/recotap-assets/icons/warning-icon.svg";showCustomAlert(i,o="warning",n,a,s){const d=`\n     <div style="text-align: center;">\n            <img src="${"success"===o?this.success:this.error}" style="padding-bottom: 20px;"/>\n            <p style="font-family: Inter; font-size: 16px; font-style: normal; font-weight: 500; color: #141414 ; padding-bottom: 32px; margin:0px">${i}</p>\n        </div>`;k().fire({html:d,icon:void 0,showCancelButton:!a,confirmButtonText:s,customClass:{popup:"p-6 mw-400px",confirmButton:"btn btn-lg btn-primary py-3 px-4 roun
1ded-pill m-0",cancelButton:"btn btn-lg btn-secondary rounded-pill",actions:"swal2-actions m-0",htmlContainer:"swal2-html-container m-0 "},cancelButtonText:"Cancel",heightAuto:!1,preConfirm:()=>Promise.resolve()}).then(x=>{x.isConfirmed&&n&&this.router.navigate([n])})}initForm(){const i=this.route.queryParams.subscribe(o=>{this.verificationToken=o.verificationToken});this.unsubscribe.push(i),this.setPasswordForm=this.formbuilder.group({password:["",g.k0.compose([g.k0.required,g.k0.maxLength(100),g.k0.pattern(/^(?=.*\d)(?=.*[A-Z])(?=.*[a-z])(?=.*[^\w\d\s:]).{8,}$/)])],cPassword:["",g.k0.compose([g.k0.required,g.k0.maxLength(100),g.k0.pattern(/^(?=.*\d)(?=.*[A-Z])(?=.*[a-z])(?=.*[^\w\d\s:]).{8,}$/)])]},{validator:L.MatchPassword})}passwordVisible=!1;togglePasswordVisibility(){this.passwordVisible=!this.passwordVisible}cpasswordVisible=!1;toggleCPasswordVisibility(){this.cpasswordVisible=!this.cpasswordVisible}submit(){if(this.setPasswordForm.invalid)return void this.setPasswordForm.markAllAsTouched();this.errorState=F.NotSubmitted;const i=this.authService.setPassword(this.handleForm.password.value,this.verificationToken).pipe((0,C.$)()).subscribe({next:o=>{console.log(o,"set -pass"),this.popupSwal.swalOptions={title:b.V.SETPASSWORD,imageUrl:l.T.success,showCancelButton:!1,confirmButtonText:"Sign In",customClass:{confirmButton:l.K.customClass.confirmButtonNoIcon,cancelButton:l.K.customClass.cancelButton},heightAuto:l.K.heightAuto,reverseButtons:l.K.reverseButtons},this.popupSwal.fire().then(n=>{n.isConfirmed&&this.router.navigate(["/"])}),this.errorState=o?F.NoError:F.HasError},error:o=>{this.popupSwal.swalOptions={title:this.withSupportEmail(b.C[o.error.customMessage]),imageUrl:l.T.error,showCancelButton:!1,confirmButtonText:`${l.K.svgIconHtml} Okay`,customClass:{confirmButton:l.K.customClass.confirmButton,cancelButton:l.K.customClass.cancelButton},heightAuto:l.K.heightAuto,reverseButtons:l.K.reverseButtons},this.popupSwal.fire()}});this.unsubscribe.push(i)}ngOnDestroy(){this.unsubscribe.forEach(i=>i.unsubscribe())}static \u0275fac=function(o){return new(o||e)(t.rXU(g.ok),t.rXU(_.u),t.rXU(p.Ix),t.rXU(p.nX),t.rXU(f.K))};static \u0275cmp=t.VBU({type:e,selectors:[["app-set-password-left"]],viewQuery:function(o,n){if(1&o&&t.GBs(ve,5),2&o){let a;t.mGM(a=t.lsd())&&(n.popupSwal=a.first)}},decls:49,vars:49,consts:[[1,"d-flex","flex-column","align-items-center","justify-content-between","w-100","h-100"],[1,""],[1,"w-400px"],["novalidate","novalidate","id","kt_login_password_reset_form",1,"form","w-100",3,"formGroup","ngSubmit"],[1,"mb-10"],[1,"text-dark","fw-bold","mb-3","text-center"],[1,"text-gray-500","fs-6","mb-8"],[1,"fv-row","mb-8"],[1,"form-label","fw-bold","text-dark","fs-6","m-0"],[1,"position-relative","mb-2"],["placeholder","Password","name","password","formControlName","password",1,"form-control","bg-gray-100","rounded-pill","mt-3","ps-4","pe-9","py-2","mb-2",3,"type","ngClass"],[1,"btn","btn-sm","btn-icon","position-absolute","translate-middle","top-50","end-0","me-n2",3,"click"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"text-semantic-red","m-0"],["placeholder","Confirm password","name","cPassword","formControlName","cPassword",1,"form-control","bg-gray-100","rounded-pill","mt-3","ps-4","pe-9","py-2",3,"type","ngClass"],[1,"row"],[1,"col-md-12"],["type","submit","id","kt_password_reset_submit",1,"btn-solid-primary","py-3","px-4","flex-center","text-nowrap","w-100","rounded-pill"],[1,"mt-6","text-center"],["routerLink","/auth/login",1,"text-semantic-blue","fs-6"],["formError",""],["popupSwal",""],["src","assets/media/recotap-assets/icons/eye-slash -duotone.svg","alt","Show Password",1,"custom-icon"],["src","assets/media/recotap-assets/icons/eye-duotone.svg","alt","Hide Password",1,"custom-icon"],[1,"fv-plugins-message-container"],["class","fv-help-block  text-semantic-red",4,"ngIf"],[1,"fv-help-block","text-semantic-red"],[1,"indicator-progress"],[1,"spinner-border","spinner-border-sm","align-middle","ms-2"],[1,"indicator-label"],[1,"fv-help-block"],["role","alert",1,"text-semantic-red"]],template:function(o,n){if(1&o&&(t.j41(0,"div",0),t.nrm(1,"div",1),t.j41(2,"div",2)(3,"form",3),t.bIt("ngSubmit",function(){return n.submit()}),t.j41(4,"div",4)(5,"h1",5),t.EFF(6,"Set your password"),t.k0s(),t.j41(7,"div",6),t.EFF(8," Create a strong secured password to protect your account "),t.k0s()(),t.j41(9,"div",7)(10,"label",8),t.EFF(11,"Password*"),t.k0s(),t.j41(12,"div",9),t.nrm(13,"input",10),t.j41(14,"span",11),t.bIt("click",function(){return n.togglePasswordVisibility()}),t.DNE(15,_e,2,0,"ng-container",12)(16,be,2,0,"ng-container",12),t.k0s()(),t.eu8(1
17,13)(18,13),t.j41(19,"ul",14),t.DNE(20,Ce,2,4,"li",12)(21,ye,2,4,"li",12)(22,Ie,2,4,"li",12),t.k0s()(),t.j41(23,"div",7)(24,"label",8),t.EFF(25,"Confirm Password*"),t.k0s(),t.j41(26,"div",9),t.nrm(27,"input",15),t.j41(28,"span",11),t.bIt("click",function(){return n.toggleCPasswordVisibility()}),t.DNE(29,Te,2,0,"ng-container",12)(30,Oe,2,0,"ng-container",12),t.k0s()(),t.eu8(31,13)(32,13),t.DNE(33,Be,3,1,"ng-container",12),t.k0s(),t.j41(34,"div",16)(35,"div",17)(36,"button",18),t.DNE(37,Re,4,2,"ng-container",12),t.nI1(38,"async"),t.DNE(39,$e,3,0,"ng-container",12),t.nI1(40,"async"),t.k0s()()(),t.j41(41,"div",19)(42,"a",20),t.EFF(43," Back to Sign In "),t.k0s()()()(),t.nrm(44,"div",1),t.k0s(),t.DNE(45,Ge,1,1,"ng-template",null,21,t.C5r),t.nrm(47,"swal",null,22)),2&o){const a=t.sdS(46);let s,m;t.R7$(3),t.Y8G("formGroup",n.setPasswordForm),t.R7$(10),t.FS9("type",n.passwordVisible?"text":"password"),t.Y8G("ngClass",t.s1E(29,N,(null==(s=n.setPasswordForm.get("password"))?null:s.invalid)&&((null==(s=n.setPasswordForm.get("password"))?null:s.dirty)||(null==(s=n.setPasswordForm.get("password"))?null:s.touched)),(null==(s=n.setPasswordForm.get("password"))?null:s.invalid)&&((null==(s=n.setPasswordForm.get("password"))?null:s.dirty)||(null==(s=n.setPasswordForm.get("password"))?null:s.touched)),!(null!=(s=n.setPasswordForm.get("password"))&&s.invalid)&&(null==(s=n.setPasswordForm.get("password"))?null:s.value),(null==(s=n.setPasswordForm.get("password"))?null:s.invalid)&&((null==(s=n.setPasswordForm.get("password"))?null:s.dirty)||(null==(s=n.setPasswordForm.get("password"))?null:s.touched)),!(null!=(s=n.setPasswordForm.get("password"))&&s.invalid)&&(null==(s=n.setPasswordForm.get("password"))?null:s.value))),t.R7$(),t.BMQ("aria-label",n.passwordVisible?"Hide password":"Show password"),t.R7$(),t.Y8G("ngIf",!n.passwordVisible),t.R7$(),t.Y8G("ngIf",n.passwordVisible),t.R7$(),t.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",t.eq3(35,je,n.setPasswordForm.controls.password)),t.R7$(),t.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",t.eq3(37,Ue,n.setPasswordForm.controls.password)),t.R7$(2),t.Y8G("ngIf",null==n.setPasswordForm.controls.password.errors?null:n.setPasswordForm.controls.password.errors.pattern),t.R7$(),t.Y8G("ngIf",null==n.setPasswordForm.controls.password.errors?null:n.setPasswordForm.controls.password.errors.pattern),t.R7$(),t.Y8G("ngIf",null==n.setPasswordForm.controls.password.errors?null:n.setPasswordForm.controls.password.errors.pattern),t.R7$(5),t.FS9("type",n.cpasswordVisible?"text":"password"),t.Y8G("ngClass",t.s1E(39,N,((null==(m=n.setPasswordForm.get("cPassword"))?null:m.invalid)||n.setPasswordForm.hasError("mismatch"))&&((null==(m=n.setPasswordForm.get("cPassword"))?null:m.dirty)||(null==(m=n.setPasswordForm.get("cPassword"))?null:m.touched)),((null==(m=n.setPasswordForm.get("cPassword"))?null:m.invalid)||n.setPasswordForm.hasError("mismatch"))&&((null==(m=n.setPasswordForm.get("cPassword"))?null:m.dirty)||(null==(m=n.setPasswordForm.get("cPassword"))?null:m.touched)),!(null!=(m=n.setPasswordForm.get("cPassword"))&&m.invalid)&&!n.setPasswordForm.hasError("mismatch")&&(null==(m=n.setPasswordForm.get("cPassword"))?null:m.value),((null==(m=n.setPasswordForm.get("cPassword"))?null:m.invalid)||n.setPasswordForm.hasError("mismatch"))&&((null==(m=n.setPasswordForm.get("cPassword"))?null:m.dirty)||(null==(m=n.setPasswordForm.get("cPassword"))?null:m.touched)),!(null!=(m=n.setPasswordForm.get("cPassword"))&&m.invalid)&&!n.setPasswordForm.hasError("mismatch")&&(null==(m=n.setPasswordForm.get("cPassword"))?null:m.value))),t.R7$(),t.BMQ("aria-label",n.cpasswordVisible?"Hide password":"Show password"),t.R7$(),t.Y8G("ngIf",!n.cpasswordVisible),t.R7$(),t.Y8G("ngIf",n.cpasswordVisible),t.R7$(),t.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",t.eq3(45,Ne,n.setPasswordForm.controls.cPassword)),t.R7$(),t.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",t.eq3(47,Me,n.setPasswordForm.controls.cPassword)),t.R7$(),t.Y8G("ngIf",(n.setPasswordForm.controls.cPassword.dirty||n.setPasswordForm.controls.cPassword.touched)&&n.setPasswordForm.hasError("mismatch")),t.R7$(4),t.Y8G("ngIf",t.bMT(38,25,n.isLoading$)),t.R7$(2),t.Y8G("ngIf",!1===t.bMT(40,27,n.isLoading$))}},dependencies:[r.YU,r.bT,r.T3,p.Wk,g.qT,g.me,g.BC,g.cb,g.j4,g.JD,w.b7,r.Jj]})}return e})(),Ye=(()=>{class e{authService;router;domainConfigService;
1authBackgroundImage="";constructor(i,o,n){this.authService=i,this.router=o,this.domainConfigService=n,this.authBackgroundImage=this.domainConfigService.getAuthBackgroundImage(),this.authService.currentUserValue&&this.router.navigate(["/"])}static \u0275fac=function(o){return new(o||e)(t.rXU(_.u),t.rXU(p.Ix),t.rXU(f.K))};static \u0275cmp=t.VBU({type:e,selectors:[["app-set-password"]],decls:8,vars:2,consts:[[1,"d-flex","flex-column","flex-root","h-100"],[1,"d-flex","flex-column","flex-lg-row","flex-column-fluid","bg-white"],[1,"w-lg-60","py-10","px-24","order-2","order-lg-1"],[1,"d-flex","flex-column","align-items-center","justify-content-center","h-100"],[1,"h-100","w-100","mw-400px"],[1,"w-lg-40","py-10","order-2","order-lg-1","bg-white","background-image","rounded-3","m-4","position-fixed","top-0","end-0","auth-right-section-height"],[1,"h-100","w-100","mw-450px"]],template:function(o,n){1&o&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.nrm(4,"app-set-password-left",4),t.k0s()(),t.j41(5,"div",5)(6,"div",3),t.nrm(7,"app-login-right",6),t.k0s()()()()),2&o&&(t.R
17$(5),t.xc7("background-image","url("+n.authBackgroundImage+")"))},dependencies:[U.D,Ae],styles:["[_nghost-%COMP%]{width:100%;height:100%}@media (min-width: 992px){[_nghost-%COMP%]   .login-form[_ngcontent-%COMP%]{width:100%;max-width:450px}[_nghost-%COMP%]   .login-form[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}}.background-image[_ngcontent-%COMP%]{background-image:url(auth-background.6d26ed3cd9af8472.svg);background-size:cover;background-position:center;background-repeat:no-repeat}"]})}return e})();var Ve=u(707);function De(e,c){if(1&e&&t.nrm(0,"img",10),2&e){const i=t.XpG();t.Y8G("src",i.loginLogo,t.B4B)}}function Xe(e,c){if(1&e&&t.nrm(0,"img",11),2&e){const i=t.XpG();t.Y8G("src",i.loginLogo,t.B4B)}}function Ke(e,c){if(1&e&&t.nrm(0,"img",12),2&e){const i=t.XpG();t.Y8G("src",i.loginLogo,t.B4B)("alt",i.brandName)}}function qe(e,c){if(1&e&&t.nrm(0,"img",13),2&e){const i=t.XpG();t.Y8G("src",i.loginLogo,t.B4B)("alt",i.brandName)}}function ze(e,c){if(1&e&&(t.j41(0,"div")(1,"h1",14),t.EFF(2),t.k0s(),t.j41(3,"p"),t.EFF(4),t.k0s()()),2&e){const i=c.ngIf,o=t.XpG();t.R7$(2),t.JRh(o.verifyEmailFuncFulfilled?i.title:"Email Verification..."),t.R7$(2),t.JRh(o.verifyEmailFuncFulfilled?i.message:"Please hold on, verifying your email.")}}let He=(()=>{class e{router;modeService;authService;route;domainConfigService;unsubscribe=[];errorSubject=new R.t({errorBool:!1,title:"",message:""});returnUrl;verifyEmailFuncFulfilled=!1;error$=this.errorSubject.asObservable();isLoading$;loginLogo="";productId="recotap";brandName="";constructor(i,o,n,a,s){this.router=i,this.modeService=o,this.authService=n,this.route=a,this.domainConfigService=s,this.isLoading$=this.authService.isLoading$,this.authService.currentUserValue&&this.router.navigate(["/"]),this.returnUrl=this.route.snapshot.queryParams.returnUrl||"/",this.loginLogo=this.domainConfigService.getLoginLogo(),this.productId=this.domainConfigService.getProductId(),this.brandName=this.domainConfigService.getBrandName()}ngOnInit(){console.log("inside of email verification component Maha");const i=this.route.queryParams.subscribe(n=>{const a=this.authService.emailVerification(n.verificationToken).pipe((0,C.$)()).subscribe({next:s=>{console.log(s," email verification next result"),s&&(this.verifyEmailFuncFulfilled=!0,this.errorSubject.next({errorBool:!1,title:"Email successfully verified",message:"Your email has been successfully verified."}),this.returnUrl=this.authService.getNextActionForUser(),setTimeout(()=>{this.router.navigate([this.returnUrl])},1e3),console.log(this.returnUrl,"this.returnUrl"))},error:s=>(console.log(s,"error  -$$$"),"USER_NOT_FOUND"===s.error.customMessage&&(this.verifyEmailFuncFulfilled=!0,this.errorSubject.next({errorBool:!0,title:"Email Verification Expired",message:"Oops! It seems like your verification link has expired."}),console.log(this.error$,"this.error===")),(0,y.of)(void 0))});this.unsubscribe.push(a)}),o=this.modeService.mode.asObservable().subscribe(n=>{document.body.style.backgroundImage="dark"===n?"url(./assets/media/auth/bg1-dark.jpg)":"url(./assets/media/auth/bg1.jpg)"});this.unsubscribe.push(o,i)}ngOnDestroy(){this.unsubscribe.forEach(i=>i.unsubscribe()),document.body.style.backgroundImage="none"}static \u0275fac=function(o){return new(o||e)(t.rXU(p.Ix),t.rXU(Ve.A),t.rXU(_.u),t.rXU(p.nX),t.rXU(f.K))};static \u0275cmp=t.VBU({type:e,selectors:[["app-email-verification"]],decls:11,vars:7,consts:[[1,"d-flex","flex-column","flex-center","flex-column-fluid"],[1,"d-flex","flex-column","flex-center","text-center","p-10"],[1,"card","card-flush","w-lg-650px","py-5"],[1,"card-body","py-15","py-lg-20"],[1,"mb-20","email-verify-illustration"],["class","mw-100 mh-300px theme-light-show","alt","Recotap",3,"src",4,"ngIf"],["class","mw-100 mh-300px theme-dark-show","alt","Recotap",3,"src",4,"ngIf"],["class","h-40px theme-light-show",3,"src","alt",4,"ngIf"],["class","h-40px theme-dark-show",3,"src","alt",4,"ngIf"],[4,"ngIf"],["alt","Recotap",1,"mw-100","mh-300px","theme-light-show",3,"src"],["alt","Recotap",1,"mw-100","mh-300px","theme-dark-show",3,"src"],[1,"h-40px","theme-light-show",3,"src","alt"],[1,"h-40px","theme-dark-show",3,"src","alt"],[1,"fw-bolder","fs-2hx","text-gray-900","mb-4"]],template:function(o,n){1&o&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),t.DNE(5,De,1,1,"img",5)(6,Xe,1,1,"img",6)(7,Ke,1,2,"img",7)(8,qe,1,2,"img",8),t.k0s(),t.DNE(9,ze,5,2,"div",9),t.nI1(10,"async"),t.k0s()()()()),2&o&&(t.R
17$(5),t.Y8G("ngIf","recotap"===n.productId),t.R7$(),t.Y8G("ngIf","recotap"===n.productId),t.R7$(),t.Y8G("ngIf","adradar"===n.productId),t.R7$(),t.Y8G("ngIf","adradar"===n.productId),t.R7$(),t.Y8G("ngIf",t.bMT(10,5,n.error$)))},dependencies:[r.bT,r.Jj],styles:["@media (max-width: 1199px){.email-verify-illustration[_ngcontent-%COMP%]{padding-left:1.25rem;padding-right:1.25rem}}"]})}return e})();const Je=["popupSwal"];function We(e,c){1&e&&(t.qex(0),t.j41(1,"div",19)(2,"div",20),t.EFF(3," Sorry, looks like there are some errors detected, please try again. "),t.k0s()(),t.bVm())}function Ze(e,c){1&e&&(t.qex(0),t.j41(1,"span",21),t.EFF(2," Please wait... "),t.nrm(3,"span",22),t.k0s(),t.bVm()),2&e&&(t.R7$(),t.xc7("display","block"))}function Qe(e,c){1&e&&(t.qex(0),t.j41(1,"span",23),t.EFF(2,"Submit"),t.k0s(),t.bVm())}function to(e,c){if(1&e&&(t.qex(0),t.j41(1,"div",24)(2,"div",25)(3,"span",26),t.EFF(4),t.k0s()()(),t.bVm()),2&e){const i=t.XpG().message;t.R7$(4),t.JRh(i)}}function eo(e,c){if(1&e&&t.DNE(0,to,5,1,"ng-container",7),2&e){const i=c.control;t.Y8G("ngIf",i.hasError(c.validation)&&(i.dirty||i.touched))}}const oo=(e,c,i,o,n)=>({"mb-2":e,"border-semantic-red":c,"border-black":i,"text-semantic-red":o,"text-gray-900":n}),no=e=>({validation:"required",message:"Email is required",control:e}),io=e=>({validation:"maxLength",message:"Email should have maximum 254 symbols",control:e}),so=e=>({validation:"pattern",message:"Enter a valid work email",control:e});var E=function(e){return e[e.NotSubmitted=0]="NotSubmitted",e[e.HasError=1]="HasError",e[e.NoError=2]="NoError",e}(E||{});let ro=(()=>{class e{formBuilder;authService;route;router;domainConfigService;ssoForm;errorState=E.NotSubmitted;errorStates=E;isLoading$;popupSwal;unsubscribe=[];productId="recotap";get supportEmail(){return this.domainConfigService.getSupportEmail()}withSupportEmail(i){return(i??"").replace("{supportEmail}",this.supportEmail)}constructor(i,o,n,a,s){this.formBuilder=i,this.authService=o,this.route=n,this.router=a,this.domainConfigService=s,this.isLoading$=this.authService.isLoading$,this.productId=this.domainConfigService.getProductId()}ngOnInit(){this.initForm(),this.checkSSOCallback()}checkSSOCallback(){const i=window.location.href;if(console.log("Checking SSO callback URL:",i),i.includes("/auth/sso?")||i.includes("/auth/login?")){const n=new URL(i).searchParams.get("token");if(n){console.log("SSO token received:",n),this.authService.setAuthFromLocalStorage({data:{token:n}});const s=this.authService.getUserByToken().subscribe({next:m=>{m?(console.log("User authenticated successfully:",m),this.router.navigate([this.route.snapshot.queryParams.returnUrl||"/dashboard"])):(console.error("Failed to get user details"),this.showError("Failed to get user details"))},error:m=>{console.error("Error during token validation:",m),this.showError("Failed to authenticate with SSO")}});this.unsubscribe.push(s)}else console.error("No token found in callback URL"),this.showError("No token found in callback")}else console.log("No SSO callback detected in URL")}showError(i){this.popupSwal.swalOptions={title:i,imageUrl:l.T.error,showCancelButton:!1,confirmButtonText:`${l.K.svgIconHtml} Okay`,customClass:{confirmButton:l.K.customClass.confirmButton,cancelButton:l.K.customClass.cancelButton},heightAuto:l.K.heightAuto,reverseButtons:l.K.reverseButtons},this.popupSwal.fire()}get handleFormControl(){return this.ssoForm.controls}initForm(){this.ssoForm=this.formBuilder.group({email:["",g.k0.compose([g.k0.required,g.k0.minLength(4),g.k0.maxLength(254),g.k0.pattern(/^(?!.*\.\.)[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,63}$/)])]})}submit(){if(this.ssoForm.invalid)return void this.ssoForm.markAllAsTouched();this.errorState=E.NotSubmitted;const i=this.authService.getSSOAuthLink(this.handleFormControl.email.value).pipe((0,C.$)()).subscribe({next:o=>{o?.data?.authorizationURL?window.location.href=o.data.authorizationURL:(this.popupSwal.swalOptions={title:"SSO Configuration Error",text:"Unable to initiate SSO. Please contact your administrator.",imageUrl:l.T.error,showCancelButton:!1,confirmButtonText:`${l.K.svgIconHtml} Okay`,customClass:{confirmButton:l.K.customClass.confirmButton,cancelButton:l.K.customClass.cancelButton},heightAuto:l.K.heightAuto,reverseButtons:l.K.reverseButtons},this.popupSwal.fire())},error:o=>{if(o?.error?.customMessage){let n="",a="";switch(o.error.customMessage){case"USER_NOT_FOUND":n="We can't find that email. Sign up if you're a new user.",a=404===o.error.statusCode?"User not found":"";break;case"UNAUTHORIZED":n=`Unauthorized access. Please contact ${this.supportEmail} for further assistance.`,a=403===o.error.statusCode?"Forbidden access":"";break;case"CLIENT_ACCOUNT_NOT_ACTIVE":n="Your client account is not active. Please contact support.",a=403===o.error.statusCode?"Account inactive":"";break;case"CLIENT_ACCOUNT_NOT_FOUND":n="Client account not found. Please contact support.",a=404===o.error.statusCode?"Account not found":"";break;case"THIRD_PARTY_LOGIN_ERROR":n="Looks like this email wasn't registered using Single Sign-On (SSO).",a=403===o.error.statusCode?"Forbidden access":"";break;default:n=o.error.message||"Something went wrong. Please try again later.",a=403===o.error.statusCode?"Forbidden access":404===o.error.statusCode?"Not found":""}this.popupSwal.swalOptions={title:this.withSupportEmail(n),imageUrl:l.T.error,showCancelButton:!1,confirmButtonText:`${l.K.svgIconHtml} Okay`,customClass:{confirmButton:l.K.customClass.confirmButton,cancelButton:l.K.customClass.cancelButton},heightAuto:l.K.heightAuto,reverseButtons:l.K.reverseButtons},this.popupSwal.fire()}else this.popupSwal.swalOptions={title:"Something went wrong. Please try again later.",imageUrl:l.T.error,showCancelButton:!1,confirmButtonText:`${l.K.svgIconHtml} Okay`,customClass:{confirmButton:l.K.customClass.confirmButton,cancelButton:l.K.customClass.cancelButton},heightAuto:l.K.heightAuto,reverseButtons:l.K.reverseButtons},this.popupSwal.fire()}});this.unsubscribe.push(i)}ngOnDestroy(){this.unsubscribe.forEach(i=>
1i.unsubscribe())}static \u0275fac=function(o){return new(o||e)(t.rXU(g.ok),t.rXU(_.u),t.rXU(p.nX),t.rXU(p.Ix),t.rXU(f.K))};static \u0275cmp=t.VBU({type:e,selectors:[["app-single-sign-on-left"]],viewQuery:function(o,n){if(1&o&&t.GBs(Je,5),2&o){let a;t.mGM(a=t.lsd())&&(n.popupSwal=a.first)}},decls:32,vars:27,consts:[[1,"d-flex","flex-column","align-items-center","justify-content-between","w-100","h-100"],[1,""],[1,"w-400px"],["novalidate","novalidate","id","kt_login_password_reset_form",1,"form",3,"formGroup","ngSubmit"],[1,"text-center"],[1,"text-dark","fw-bold","mb-3"],[1,"text-gray-500","fs-6","mb-8"],[4,"ngIf"],[1,"fv-row","mb-8"],[1,"form-label","fw-bold","text-gray-900","fs-6","m-0"],["type","email","formControlName","email","placeholder","[email protected]","name","email",1,"form-control","bg-gray-100","rounded-pill","mt-3","px-4","py-2",3,"ngClass"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"row"],[1,"col-md-12"],["type","submit","id","kt_password_reset_submit",1,"btn-solid-primary","py-3","px-4","flex-center","text-nowrap","w-100","rounded-pill"],[1,"mt-6","text-center"],["routerLink","/auth/login",1,"text-semantic-blue","fs-6"],["formError",""],["popupSwal",""],[1,"mb-lg-15","alert","alert-danger"],[1,"alert-text","font-weight-bold"],[1,"indicator-progress"],[1,"spinner-border","spinner-border-sm","align-middle","ms-2"],[1,"indicator-label"],[1,"fv-plugins-message-container"],[1,"fv-help-block"],["role","alert",1,"text-semantic-red"]],template:function(o,n){if(1&o&&(t.j41(0,"div",0),t.nrm(1,"div",1),t.j41(2,"div",2)(3,"form",3),t.bIt("ngSubmit",function(){return n.submit()}),t.j41(4,"div",4)(5,"h1",5),t.EFF(6,"Login using Single Sign-On"),t.k0s(),t.j41(7,"div",6),t.EFF(8," Enter your email address to continue "),t.k0s()(),t.DNE(9,We,4,0,"ng-container",7),t.j41(10,"div",8)(11,"label",9),t.EFF(12,"Email*"),t.k0s(),t.nrm(13,"input",10),t.eu8(14,11)(15,11)(16,11),t.k0s(),t.j41(17,"div",12)(18,"div",13)(19,"button",14),t.DNE(20,Ze,4,2,"ng-container",7),t.nI1(21,"async"),t.DNE(22,Qe,3,0,"ng-container",7),t.nI1(23,"async"),t.k0s()()(),t.j41(24,"div",15)(25,"a",16),t.EFF(26," Back to Sign In "),t.k0s()()()(),t.nrm(27,"div",1),t.k0s(),t.DNE(28,eo,1,1,"ng-template",null,17,t.C5r),t.nrm(30,"swal",null,18)),2&o){const a=t.sdS(29);let s;t.R7$(3),t.Y8G("formGroup",n.ssoForm),t.R7$(6),t.Y8G("ngIf",n.errorState===n.errorStates.HasError),t.R7$(4),t.Y8G("ngClass",t.s1E(15,oo,(null==(s=n.ssoForm.get("email"))?null:s.invalid)&&((null==(s=n.ssoForm.get("email"))?null:s.dirty)||(null==(s=n.ssoForm.get("email"))?null:s.touched)),(null==(s=n.ssoForm.get("email"))?null:s.invalid)&&((null==(s=n.ssoForm.get("email"))?null:s.dirty)||(null==(s=n.ssoForm.get("email"))?null:s.touched)),!(null!=(s=n.ssoForm.get("email"))&&s.invalid)&&(null==(s=n.ssoForm.get("email"))?null:s.value),(null==(s=n.ssoForm.get("email"))?null:s.invalid)&&((null==(s=n.ssoForm.get("email"))?null:s.dirty)||(null==(s=n.ssoForm.get("email"))?null:s.touched)),!(null!=(s=n.ssoForm.get("email"))&&s.invalid)&&(null==(s=n.ssoForm.get("email"))?null:s.value))),t.R7$(),t.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",t.eq3(21,no,n.ssoForm.controls.email)),t.R7$(),t.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",t.eq3(23,io,n.ssoForm.controls.email)),t.R7$(),t.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",t.eq3(25,so,n.ssoForm.controls.email)),t.R7$(4),t.Y8G("ngIf",t.bMT(21,11,n.isLoading$)),t.R7$(2),t.Y8G("ngIf",!1===t.bMT(23,13,n.isLoading$))}},dependencies:[r.YU,r.bT,r.T3,p.Wk,g.qT,g.me,g.BC,g.cb,g.j4,g.JD,w.b7,r.Jj]})}return e})();function ao(e,c){if(1&e&&(t.qex(0),t.j41(1,"div",15),t.nrm(2,"img",16),t.k0s(),t.bVm()),2&e){const i=t.XpG(2);t.R7$(2),t.Y8G("src",i.carouselGif,t.B4B)}}const lo=e=>({active:e});function co(e,c){if(1&e&&(t.j41(0,"div",24),t.nrm(1,"img",25),t.j41(2,"h4",26),t.EFF(3),t.k0s()()),2&e){const i=c.$implicit;t.Y8G("ngClass",t.eq3(3,lo,0===c.index)),t.R7$(),t.Y8G("src",i.imageUrl,t.B4B),t.R7$(2),t.JRh(i.title)}}function go(e,c){if(1&e&&(t.j41(0,"div",17)(1,"div",18),t.nrm(2,"button",19)(3,"button",20)(4,"button",21),t.k0s(),t.j41(5,"div",22),t.DNE(6,co,4,5,"div",23),t.k0s()()),2&e){const i=t.XpG(2);t.R7$(6),t.Y8G("ngForOf",i.carouselItems)}}function mo(e,c){1&e&&t.nrm(0,"img",27),2&e&&t.Y8G("src",c.$implicit,t.B4B)}
1function uo(e,c){if(1&e&&(t.qex(0),t.j41(1,"div",2),t.nrm(2,"img",3)(3,"img",4),t.j41(4,"p",5),t.EFF(5),t.k0s()(),t.j41(6,"div",6),t.DNE(7,ao,3,1,"ng-container",7)(8,go,7,1,"ng-template",null,8,t.C5r),t.k0s(),t.j41(10,"div",9)(11,"div",10)(12,"span",11),t.EFF(13," Trusted by over "),t.j41(14,"span",12),t.EFF(15," 1000+ marketers"),t.k0s(),t.EFF(16," globally "),t.k0s()(),t.j41(17,"div",13),t.DNE(18,mo,1,1,"img",14),t.k0s()(),t.bVm()),2&e){const i=t.sdS(9),o=t.XpG();t.R7$(2),t.Y8G("src",o.loginLogo,t.B4B),t.R7$(),t.Y8G("src",o.loginLogo,t.B4B),t.R7$(2),t.SpI(" ",o.loginRightText," "),t.R7$(2),t.Y8G("ngIf",o.showGif&&o.carouselGif)("ngIfElse",i),t.R7$(11),t.Y8G("ngForOf",o.clients)}}function po(e,c){if(1&e&&(t.qex(0),t.j41(1,"div",28)(2,"div",29),t.nrm(3,"img",30)(4,"img",31),t.j41(5,"p",32),t.EFF(6),t.k0s(),t.j41(7,"p",33),t.EFF(8),t.k0s()(),t.j41(9,"div",34),t.nrm(10,"img",35),t.k0s()(),t.bVm()),2&e){const i=t.XpG();t.R7$(3),t.Y8G("src",i.loginLogo,t.B4B)("ngClass",i.isNativeAdRadarBrand?"w-125px h-40px":"w-200px"),t.R7$(),t.Y8G("src",i.loginLogo,t.B4B)("ngClass",i.isNativeAdRadarBrand?"w-125px h-40px":"w-200px"),t.R7$(2),t.SpI(" Never fly blind. ",i.brandName," sees everything. "),t.R7$(2),t.SpI(" ",i.brandName," is the AI Copilot for B2B teams running LinkedIn Ads. Specialized agents watch your campaigns 24/7 \u2014 flagging waste, predicting fatigue, and telling you exactly what to do next. "),t.R7$(2),t.Y8G("alt",i.brandName+" agents overview")}}let ho=(()=>{class e{domainConfigService;loginLogo="";loginRightText="";carouselGif=void 0;showGif=!1;productId="recotap";brandName="";isNativeAdRadarBrand=!1;constructor(i){this.domainConfigService=i,this.loginLogo=this.domainConfigService.getLoginLogo(),this.loginRightText=this.domainConfigService.getLoginRightText(),this.carouselGif=this.domainConfigService.getCarouselGif(),this.showGif=this.domainConfigService.hasCarouselGif(),this.productId=this.domainConfigService.getProductId(),this.brandName=this.domainConfigService.getBrandName(),this.isNativeAdRadarBrand="adradar"===this.domainConfigService.getTenantId()}carouselItems=[{imageUrl:"assets/media/recotap-assets/icons/singin-1.svg",title:"Unlock Your Ad Insights - Sign In to See Metrics",clientName:"Jacob F",client:"CareerArc"},{imageUrl:"assets/media/recotap-assets/icons/singin-2.svg",title:"Unlock Your Ad Insights - Sign In to See Metrics",clientName:"Shilpi M",client:"Aspire Systems"},{imageUrl:"assets/media/recotap-assets/icons/singin-3.svg",title:"Unlock Your Ad Insights - Sign In to See Metrics",clientName:"Alberto",client:"Agilyx Group"}];clients=["assets/media/auth/darwinbox-logo.svg","assets/media/auth/wns.svg","assets/media/auth/netcore-logo.svg","assets/media/auth/sprinkler-logo.svg","assets/media/auth/allianz-logo.svg"];static \u0275fac=function(o){return new(o||e)(t.rXU(f.K))};static \u0275cmp=t.VBU({type:e,selectors:[["app-single-sign-on-right"]],decls:3,vars:2,consts:[[1,"d-flex","flex-column","align-items-center","w-100","h-100"],[4,"ngIf"],[1,"d-flex","flex-column","align-items-center","me-4"],["alt","Logo",1,"w-125px","d-none","d-sm-block",3,"src"],["alt","Logo",1,"w-125px","d-block","d-sm-none",3,"src"],[1,"pt-6","text-gray-900","fw-semibold","fs-5","m-0","p-0"],[1,"bg-transparent","w-450px","rounded-0","border-0"],[4,"ngIf","ngIfElse"],["carouselTemplate",""],[1,"w-450px"],[1,"separator","separator-content","mt-6","mb-8"],[1,"fw-semibold","overflow-hidden","text-gray-500","flex-column-auto","fs-6"],[1,"text-gray-900","fw-bold","fs-6"],[1,"d-flex","justify-content-center","align-items-center","flex-wrap","gap-6"],[3,"src",4,"ngFor","ngForOf"],[1,"d-flex","justify-content-center","align-items-center","pb-8"],["alt","Dashboard Preview",1,"d-none","d-lg-block",2,"width","425px","height","270px","object-fit","contain",3,"src"],["id","kt_carousel_1_carousel","data-bs-ride","carousel",1,"carousel","slide","pb-8"],[1,"carousel-indicators","justify-content-center","mb-0"],["type","button","data-bs-target","#kt_carousel_1_carousel","data-bs-slide-to","0","aria-label","Slide 1","aria-current","true",1,"active","rounded-pill","border-0"],["type","button","data-bs-target","#kt_carousel_1_carousel","data-bs-slide-to","1","aria-label","Slide 2",1,"rounded-pill","border-0","mx-3"],["type","button","data-bs-target","#kt_carousel_1_carousel","data-bs-slide-to","2","aria-label","Slide 3",1,"rounded-pill","border-0"],[1,"carousel-inner","w-100","bg-transparent","p-6","pb-0"],["class","carousel-item",3,"ngClass",4,"ngFor","ngForOf"],[1,"carousel-item",3,"ngClass"],["alt","",1,"d-none","d-lg-block","d-block","w-375px","h-100","object-fit-contain","object-position-center",3,"src"],[1,"d-none","d-lg-block","text-gray-900","text-center","mt-6","m-0","w-100"],[3,"src"],[1,"d-flex","flex-column","justify-content-center","gap-10","align-items-center","w-100","h-100","pt-8","pb-0","login-right-adradar"],[1,"d-flex","flex-column","align-items-center"],["alt","Logo",1,"d-none","d-sm-block",3,"src","ngClass"],["alt","Logo",1,"d-block","d-sm-none",3,"src","ngClass"],[1,"adradar-title","pt-6","text-black","m-0","p-0","text-center",2,"font-weight","600 !important","font-size","36px !important","line-height","38px !important"],[1,"pt-7","fw-400","fs-7","m-0","p-0","text-center","adradar-subtitle",2,"color","#4B5563"],[1,"d-flex","justify-content-center","w-100"],["src","assets/media/recotap-assets/icons/auth-agent-bg.svg",1,"w-100","auth-image-height","login-right-adradar__image",2,"object-fit","contain",3,"alt"]],template:function(o,n){1&o&&(t.j41(0,"div",0),t.DNE(1,uo,19,6,"ng-container",1)(2,po,11,7,"ng-container",1),t.k0s()),2&o&&(t.R
17$(),t.Y8G("ngIf","recotap"===n.productId),t.R7$(),t.Y8G("ngIf","adradar"===n.productId))},dependencies:[r.YU,r.Sq,r.bT],styles:["[_nghost-%COMP%]{display:flex}.carousel-indicators[_ngcontent-%COMP%]   .rounded-pill[_ngcontent-%COMP%]{width:8px;height:8px;background-color:#2f6eed80}.carousel-indicators[_ngcontent-%COMP%]   .active[_ngcontent-%COMP%]{width:24px;height:8px;background-color:#2f6eed80}.login-right-adradar[_ngcontent-%COMP%]{min-height:0}.login-right-adradar__image[_ngcontent-%COMP%]{max-width:475px;max-height:400px;height:auto;object-fit:contain}.login-right-adradar[_ngcontent-%COMP%]   .adradar-title[_ngcontent-%COMP%]{font-size:36px!important;line-height:38px!important}@media (max-width: 1199px),(max-height: 650px){.login-right-adradar[_ngcontent-%COMP%]{gap:1.25rem!important;padding-top:2.5rem!important;padding-left:1.25rem!important;padding-right:1.25rem!important}.login-right-adradar[_ngcontent-%COMP%]   .adradar-title[_ngcontent-%COMP%]{font-size:28px!important;line-height:32px!important}.login-right-adradar__image[_ngcontent-%COMP%]{max-width:420px;max-height:330px}}@media (max-height: 750px){.login-right-adradar[_ngcontent-%COMP%]{justify-content:flex-start!important;gap:1rem!important;padding-top:2rem!important;padding-left:1rem!important;padding-right:1rem!important}.login-right-adradar[_ngcontent-%COMP%]   .adradar-title[_ngcontent-%COMP%]{font-size:26px!important;line-height:30px!important}.login-right-adradar__image[_ngcontent-%COMP%]{max-width:390px!important;max-height:300px!important}}"]})}return e})();const wo=[{path:"",children:[{path:"",redirectTo:"login",pathMatch:"full"},{path:"login",component:we,data:{returnUrl:window.location.pathname}},{path:"signup",component:zt},{path:"forgot-password",component:nt},{path:"set-password",component:Ye},{path:"verification",component:He},{path:"logout",component:it},{path:"single-sign-on",component:(()=>{class e{authService;router;domainConfigService;authBackgroundImage="";constructor(i,o,n){this.authService=i,this.router=o,this.domainConfigService=n,this.authBackgroundImage=this.domainConfigService.getAuthBackgroundImage(),this.authService.currentUserValue&&this.router.navigate(["/"])}static \u0275fac=function(o){return new(o||e)(t.rXU(_.u),t.rXU(p.Ix),t.rXU(f.K))};static \u0275cmp=t.VBU({type:e,selectors:[["app-single-sign-on"]],decls:8,vars:2,consts:[[1,"d-flex","flex-column","flex-root","h-100"],[1,"d-flex","flex-column","flex-lg-row","flex-column-fluid","bg-white"],[1,"w-lg-60","py-10","px-24","order-2","order-lg-1"],[1,"d-flex","flex-column","align-items-center","justify-content-center","h-100"],[1,"h-100","w-100","mw-400px"],[1,"w-lg-40","py-10","order-2","order-lg-1","bg-white","background-image","rounded-3","m-4","position-fixed","top-0","end-0","auth-right-section-height"],[1,"h-100","w-100","mw-450px"]],template:function(o,n){1&o&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.nrm(4,"app-single-sign-on-left",4),t.k0s()(),t.j41(5,"div",5)(6,"div",3),t.nrm(7,"app-single-sign-on-right",6),t.k0s()()()()),2&o&&(t.R
17$(5),t.xc7("background-image","url("+n.authBackgroundImage+")"))},dependencies:[ro,ho],styles:["[_nghost-%COMP%]{width:100%;height:100%}@media (min-width: 992px){[_nghost-%COMP%]   .login-form[_ngcontent-%COMP%]{width:100%;max-width:450px}[_nghost-%COMP%]   .login-form[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}}.background-image[_ngcontent-%COMP%]{background-image:url(auth-background.6d26ed3cd9af8472.svg);background-size:cover;background-position:center;background-repeat:no-repeat}"]})}return e})()},{path:"",redirectTo:"login",pathMatch:"full"},{path:"**",redirectTo:"login",pathMatch:"full"}]}];let vo=(()=>{class e{static \u0275fac=function(o){return new(o||e)};static \u0275mod=t.$C({type:e});static \u0275inj=t.G2t({imports:[p.iI.forChild(wo),p.iI]})}return e})();var _o=u(8540),bo=u(72242);let xo=(()=>{class e{static \u0275fac=function(o){return new(o||e)};static \u0275mod=t.$C({type:e});static \u0275inj=t.G2t({imports:[r.MD,_o.E,vo,g.YN,g.X1,P.q1,w.RZ,bo.r]})}return e})()},25122:($,S,u)=>{u.d(S,{D:()=>b});var r=u(54438),g=u(45020),P=u(60177);function p(l,w){if(1&l&&(r.qex(0),r.j41(1,"div",15),r.nrm(2,"img",16),r.k0s(),r.bVm()),2&l){const h=r.XpG(2);r.R7$(2),r.Y8G("src",h.carouselGif,r.B4B)}}const t=l=>({active:l});function _(l,w){if(1&l&&(r.j41(0,"div",24),r.nrm(1,"img",25),r.j41(2,"h4",26),r.EFF(3),r.k0s()()),2&l){const h=w.$implicit;r.Y8G("ngClass",r.eq3(3,t,0===w.index)),r.R7$(),r.Y8G("src",h.imageUrl,r.B4B),r.R7$(2),r.JRh(h.title)}}function f(l,w){if(1&l&&(r.j41(0,"div",17)(1,"div",18),r.nrm(2,"button",19)(3,"button",20)(4,"button",21),r.k0s(),r.j41(5,"div",22),r.DNE(6,_,4,5,"div",23),r.k0s()()),2&l){const h=r.XpG(2);r.R7$(6),r.Y8G("ngForOf",h.carouselItems)}}function C(l,w){1&l&&r.nrm(0,"img",27),2&l&&r.Y8G("src",w.$implicit,r.B4B)}function B(l,w){if(1&l&&(r.qex(0),r.j41(1,"div",2),r.nrm(2,"img",3)(3,"img",4),r.j41(4,"p",5),r.EFF(5),r.k0s()(),r.j41(6,"div",6),r.DNE(7,p,3,1,"ng-container",7)(8,f,7,1,"ng-template",null,8,r.C5r),r.k0s(),r.j41(10,"div",9)(11,"div",10)(12,"span",11),r.EFF(13," Trusted by over "),r.j41(14,"span",12),r.EFF(15," 1000+ marketers"),r.k0s(),r.EFF(16," globally "),r.k0s()(),r.j41(17,"div",13),r.DNE(18,C,1,1,"img",14),r.k0s()(),r.bVm()),2&l){const h=r.sdS(9),v=r.XpG();r.R7$(2),r.Y8G("src",v.loginLogo,r.B4B),r.R7$(),r.Y8G("src",v.loginLogo,r.B4B),r.R7$(2),r.SpI(" ",v.loginRightText," "),r.R7$(2),r.Y8G("ngIf",v.showGif&&v.carouselGif)("ngIfElse",h),r.R7$(11),r.Y8G("ngForOf",v.clients)}}function k(l,w){if(1&l&&(r.qex(0),r.j41(1,"div",28)(2,"div",29),r.nrm(3,"img",30)(4,"img",31),r.j41(5,"p",32),r.EFF(6),r.k0s(),r.j41(7,"p",33),r.EFF(8),r.k0s()(),r.j41(9,"div",34),r.nrm(10,"img",35),r.k0s()(),r.bVm()),2&l){const h=r.XpG();r.R7$(3),r.Y8G("src",h.loginLogo,r.B4B)("ngClass",h.isNativeAdRadarBrand?"w-125px h-40px":"w-200px"),r.R7$(),r.Y8G("src",h.loginLogo,r.B4B)("ngClass",h.isNativeAdRadarBrand?"w-125px h-40px":"w-200px"),r.R7$(2),r.SpI(" Never fly blind. ",h.brandName," sees everything. "),r.R7$(2),r.SpI(" ",h.brandName," is the AI Copilot for B2B teams running LinkedIn Ads. Specialized agents watch your campaigns 24/7 \u2014 flagging waste, predicting fatigue, and telling you exactly what to do next. "),r.R7$(2),r.Y8G("alt",h.brandName+" agents overview")}}let b=(()=>{class l{domainConfigService;loginLogo="";loginRightText="";carouselGif=void 0;showGif=!1;productId="recotap";brandName="";isNativeAdRadarBrand=!1;constructor(h){this.domainConfigService=h,this.loginLogo=this.domainConfigService.getLoginLogo(),this.loginRightText=this.domainConfigService.getLoginRightText(),this.carouselGif=this.domainConfigService.getCarouselGif(),this.showGif=this.domainConfigService.hasCarouselGif(),this.productId=this.domainConfigService.getProductId(),this.brandName=this.domainConfigService.getBrandName(),this.isNativeAdRadarBrand="adradar"===this.domainConfigService.getTenantId()}carouselItems=[{imageUrl:"assets/media/recotap-assets/icons/component-6-1.webp",title:"Run 1:1 & 1:many LinkedIn ABM Campaigns",clientName:"Jacob F",client:"CareerArc"},{imageUrl:"assets/media/recotap-assets/icons/component-6-3.webp",title:"Track Account Progress across Journey Stages",clientName:"Shilpi M",client:"Aspire Systems"},{imageUrl:"assets/media/recotap-assets/icons/component-6-2.webp",title:"In-depth account behaviour dashboard",clientName:"Alberto",client:"Agilyx Group"}];clients=["assets/media/auth/darwinbox-logo.svg","assets/media/auth/wns.svg","assets/media/auth/netcore-logo.svg","assets/media/auth/sprinkler-logo.svg","assets/media/auth/allianz-logo.svg"];static \u0275fac=function(v){return new(v||l)(r.rXU(g.K))};static \u0275cmp=r.VBU({type:l,selectors:[["app-login-right"]],decls:3,vars:2,consts:[[1,"d-flex","flex-column","align-items-center","w-100","h-100"],[4,"ngIf"],[1,"d-flex","flex-column","align-items-center","me-4"],["alt","Logo",1,"w-125px","d-none","d-sm-block",3,"src"],["alt","Logo",1,"w-125px","d-block","d-sm-none",3,"src"],[1,"pt-6","text-gray-900","fw-semibold","fs-5","m-0","p-0"],[1,"bg-transparent","w-450px","rounded-0","border-0"],[4,"ngIf","ngIfElse"],["carouselTemplate",""],[1,"w-450px"],[1,"separator","separator-content","mt-6","mb-8"],[1,"fw-semibold","overflow-hidden","text-gray-500","flex-column-auto","fs-6"],[1,"text-gray-900","fw-bold","fs-6"],[1,"d-flex","justify-content-center","align-items-center","flex-wrap","gap-6"],[3,"src",4,"ngFor","ngForOf"],[1,"d-flex","justify-content-center","align-items-center","pb-8"],["alt","Dashboard Preview",1,"d-none","d-lg-block",2,"width","425px","height","270px","object-fit","contain",3,"src"],["id","kt_carousel_1_carousel","data-bs-ride","carousel",1,"carousel","slide","pb-8"],[1,"carousel-indicators","justify-content-center","mb-0"],["type","button","data-bs-target","#kt_carousel_1_carousel","data-bs-slide-to","0","aria-label","Slide 1","aria-current","true",1,"active","rounded-pill","border-0"],["type","button","data-bs-target","#kt_carousel_1_carousel","data-bs-slide-to","1","aria-label","Slide 2",1,"rounded-pill","border-0","mx-3"],["type","button","data-bs-target","#kt_carousel_1_carousel","data-bs-slide-to","2","aria-label","Slide 3",1,"rounded-pill","border-0"],[1,"carousel-inner","w-100","bg-transparent","p-6","pb-0"],["class","carousel-item",3,"ngClass",4,"ngFor","ngForOf"],[1,"carousel-item",3,"ngClass"],["alt","",1,"d-none","d-lg-block","d-block","w-375px","object-fit-contain","object-position-center","auth-image-height",3,"src"],[1,"d-none","d-lg-block","text-gray-900","text-center","mt-6","m-0","w-100"],[3,"src"],[1,"d-flex","flex-column","justify-content-center","gap-15","align-items-center","w-100","h-100","pt-8","pb-0","login-right-adradar"],[1,"d-flex","flex-column","align-items-center"],["alt","Logo",1,"d-none","d-sm-block",3,"src","ngClass"],["alt","Logo",1,"d-block","d-sm-none",3,"src","ngClass"],[1,"adradar-title","pt-6","text-black","m-0","p-0","text-center",2,"font-weight","600 !important","font-size","36px !important","line-height","38px !important"],[1,"pt-7","fw-400","fs-7","m-0","p-0","text-center","adradar-subtitle",2,"color","#4B5563"],[1,"d-flex","justify-content-center","w-100"],["src","assets/media/recotap-assets/icons/auth-agent-bg.svg",1,"w-100","auth-image-height","login-right-adradar__image",2,"object-fit","contain",3,"alt"]],template:function(v,T){1&v&&(r.j41(0,"div",0),r.DNE(1,B,19,6,"ng-container",1)(2,k,11,7,"ng-container",1),r.k0s()),2&v&&(r.R7$(),r.Y8G("ngIf","recotap"===T.productId),r.R7$(),r.Y8G("ngIf","adradar"===T.productId))},dependencies:[P.YU,P.Sq,P.bT],styles:["[_nghost-%COMP%]{display:flex}[_nghost-%COMP%]   .carousel-indicators[_ngcontent-%COMP%]   .rounded-pill[_ngcontent-%COMP%]{width:8px;height:8px;background-color:#2f6eed80}[_nghost-%COMP%]   .carousel-indicators[_ngcontent-%COMP%]   .active[_ngcontent-%COMP%]{width:24px;height:8px;background-color:#2f6eed80}[_nghost-%COMP%]   .carousel-item[_ngcontent-%COMP%]{display:none;transition:all .5s ease-in!important;position:relative}[_nghost-%COMP%]   .carousel-item-next[_ngcontent-%COMP%], [_nghost-%COMP%]   .carousel-item-prev[_ngcontent-%COMP%], [_nghost-%COMP%]   .carousel-item.active[_ngcontent-%COMP%]{display:block;opacity:1}[_nghost-%COMP%]   .carousel-item-next.carousel-item-left[_ngcontent-%COMP%], [_nghost-%COMP%]   .carousel-item-prev.carousel-item-right[_ngcontent-%COMP%]{opacity:0}
1.login-right-adradar[_ngcontent-%COMP%]{min-height:0}.login-right-adradar__image[_ngcontent-%COMP%]{max-width:475px;max-height:400px;height:auto;object-fit:contain}.login-right-adradar[_ngcontent-%COMP%]   .adradar-title[_ngcontent-%COMP%]{font-size:36px!important;line-height:38px!important}@media (max-width: 1199px),(max-height: 650px){.login-right-adradar[_ngcontent-%COMP%]{gap:1.25rem!important;padding-top:2.5rem!important;padding-left:1.25rem!important;padding-right:1.25rem!important}.login-right-adradar[_ngcontent-%COMP%]   .adradar-title[_ngcontent-%COMP%]{font-size:28px!important;line-height:32px!important}.login-right-adradar__image[_ngcontent-%COMP%]{max-width:420px;max-height:330px}}@media (max-height: 750px){.login-right-adradar[_ngcontent-%COMP%]{justify-content:flex-start!important;gap:1rem!important;padding-top:2rem!important;padding-left:1rem!important;padding-right:1rem!important}.login-right-adradar[_ngcontent-%COMP%]   .adradar-title[_ngcontent-%COMP%]{font-size:26px!important;line-height:30px!important}.login-right-adradar__image[_ngcontent-%COMP%]{max-width:390px!important;max-height:300px!important}}"]})}return l})()},24158:($,S,u)=>{u.d(S,{C:()=>r,V:()=>g});const r={USER_ALREADY_EXISTS:"Sorry, a user with the same email already exists!",USER_NOT_VERIFIED:"Please verify your email by using the verification link sent to your email or reset your password.",USER_NOT_FOUND:"We can't find that email.please contact our support team at {supportEmail} for assistance.",INVALID_PASSWORD:"Incorrect password. Try again.",USER_INACTIVE:"Your access has been deactivated; please contact {supportEmail} for further assistance.",VERIFICATION_CODE_INVALID:"Password Setup link has been expired!",THIRD_PARTY_LOGIN_ERROR:"You have created your account with microsoft or google authentication. Please use microsoft or google to login."},g={LOGIN:"Login successful.",SIGNUP:"We have sent a link to your email. Please click on the link to verify your email.",FORGOTPASSWORD:"We have sent a link to your email. Please click on the link to reset your password.",SETPASSWORD:"Your password has been set successfully.",REGISTRATION:"You have completed registration process."}}}]);

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.