1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1480],{61480:(W,k,l)=>{l.r(k),l.d(k,{SignInPageModule:()=>Q});var S=l(96814),p=l(60095),u=l(50029),_=l(28349),v=l(15861),x=l(21450),s=l(15),w=l(47394),U=l(9949),y=l(2644),C=l(92726),P=l(56346),Z=l(89608),t=l(92029),L=l(48429),A=l(8081),T=l(62848),M=l(32333);function O(n,g){1&n&&(t.TgZ(0,"p",18),t._uU(1,"Email is required!"),t.qZA())}function R(n,g){1&n&&(t.TgZ(0,"p",18),t._uU(1,"Please enter valid email!"),t.qZA())}function N(n,g){1&n&&(t.TgZ(0,"p",18),t._uU(1,"Password is required."),t.qZA())}function J(n,g){1&n&&(t.TgZ(0,"p",18),t._uU(1,"Password should be min 6 chars long."),t.qZA())}function Y(n,g){1&n&&(t.TgZ(0,"span",19),t._uU(1,"Login"),t.qZA())}function B(n,g){1&n&&t._UZ(0,"ion-spinner",20)}function E(n,g){1&n&&(t.TgZ(0,"div",21),t._UZ(1,"div",22),t.TgZ(2,"h6"),t._uU(3,"Or Continue with"),t.qZA(),t._UZ(4,"div",23),t.qZA())}function z(n,g){if(1&n){const b=t.EpF();t.TgZ(0,"div",24)(1,"div",25),t.NdJ("click",function(){t.CHM(b);const o=t.oxw();return t.KtG(o.google())}),t._UZ(2,"ion-icon",26),t.qZA(),t.TgZ(3,"div",27),t.NdJ("click",function(){t.CHM(b);const o=t.oxw();return t.KtG(o.appleignIn())}),t._UZ(4,"ion-icon",28),t.qZA()()}}const D=[{path:"",component:(()=>{var n;class g{constructor(e,o,r,i,c,f,h,a,I){this.auth=e,this.firestore=o,this.alertCtrl=r,this.formBuilder=i,this.dataService=c,this.menuCtrl=f,this.platform=h,this.authService=a,this.router=I,this.isSubmitted=!1,this.isLogin=!1,this.db=(0,s.ad)(),this.subscription=new w.w0,this.usersList=[],this.checkList=[],this.block=!1,this.social_login=!1,this.photoURL=[],this.authForm=this.formBuilder.group({email:["",[p.kI.required,p.kI.pattern("[a-z0-9._%+-]+@[a-z0-9.-]+.[a-z]{2,3}$")]],password:["",[p.kI.required,p.kI.minLength(6)]]}),this.dataService.getUsers().subscribe(d=>{this.usersList=[],d.forEach(m=>{this.usersList.push(m)})}),(0,x.n$)("capacitor")||P.e.initialize({clientId:"751207227026-eunobb6imltbb4ru2g0jbqgpcpe516er.apps.googleusercontent.com",scopes:["profile","email"],grantOfflineAccess:!0}),this.dataService.getUsers().subscribe(d=>{this.usersList=[],d.forEach(m=>{this.usersList.push(m)})}),this.dataService.getSettingId("SETS").subscribe(d=>{this.social_login=d.social_login})}ngOnInit(){}login(){var e=this;return(0,v.Z)(function*(){if(e.isSubmitted=!0,!e.authForm.valid)return console.log("Enter required field"),!1;e.isLogin=!0;try{yield e.authService.login(e.authForm.value.email,e.authForm.value.password).then(function(){var o=(0,v.Z)(function*(r){const i=r.user;e.block=!1;const c=(0,s.JU)(e.db,"users",i.uid);let h=(yield(0,s.QT)(c)).data();e.block=h.block,0==e.block?(localStorage.setItem("uid",i.uid),localStorage.setItem("DatingAuth","true"),yield(0,s.r7)(c,{fcm_token:localStorage.getItem("fcm")?localStorage.getItem("fcm"):""}),e.router.navigateByUrl("/dating",{replaceUrl:!0})):(e.authService.logout(),alert("Your Account is block, contact admin for help"))});return function(r){return o.apply(this,arguments)}}())}catch{e.isLogin=!1,e.displayAlertMessage("Either we couldn't find your user or there was a problem with the password")}})()}get errorControl(){return this.authForm.controls}goBack(){this.router.navigate(["/welcome"])}google(){var e=this;return(0,v.Z)(function*(){if(e.user=yield P.e.signIn(),console.log("user:",e.user),e.checkList=e.usersList.filter(o=>o.email==e.user.email),e.checkList.length>0){e.block=!1;const o=(0,s.JU)(e.db,"users",e.user.id);let i=(yield(0,s.QT)(o)).data();e.block=i.block,e.dob=i.dob,e.gender=i.gender,e.sexuality=i.sexuality,e.genotype=i.genotype,e.lookingfor=i.lookingfor,e.location=i.location,e.photoURL=i.photoURL,0==e.block?e.dob?e.gender?e.sexuality?e.genotype?e.lookingfor?e.location?0==e.photoURL.length?e.router.navigate(["/upload-photos"]):(localStorage.setItem("uid",e.user.id),yield(0,s.r7)(o,{fcm_token:localStorage.getItem("fcm")?localStorage.getItem("fcm"):""}),localStorage.setItem("DatingAuth","true"),e.router.navigateByUrl("/dating",{replaceUrl:!0})):e.router.navigate(["/location"]):e.router.navigate(["/looking-for"]):e.router.navigate(["/genotype"]):e.router.navigate(["/sexuality"]):e.router.navigate(["/gender"]):e.router.navigate(["/birth"]):(e.authService.logout(),alert("Your Account is block, contact admin for help"))}else{const o=(0,s.JU)(e.db,"users",e.user.id);(0,s.pl)(o,{email:e.user.email,displayName:e.user.name,photoURL:[],expireDate:"",subscriptionId:"",publisher:!1,block:!1,auth:"google",verify:!1,blockers:[],views:[],about:"",unseen:[],transactions:[],massage:[],type:"user",wallet:0,joined:Date.now(),match:[],fcm_token:localStorage.getItem("fcm")?localStorage.getItem("fcm"):"",dob:"",gender:"",sexuality:"",genotype:"",lookingfor:"",Iam:"",interest:[],location:"",latitude:0,longitude:0,likes:[],age:0,educationId:[],gift:[],zodiac:"",eventBookmark:[],communicateId:"",languageId:"",queen:"No",Ilikes:[],showDob:!0,showGender:!0,showSexuality:!0,showGenotype:!0,showLookingFor:!0,showInterest:!0,showLocation:!0,showLife:!0,showAge:!0,showEmail
1:!0,online:!0,country:"",note_match:!1,note_like:!1,note_message:!1,note_comment:!1,note_gift:!1,ethnics:"",bodyType:"",marital:"",occupation:"",weight:"",height:"",salary:""}),localStorage.setItem("uid",e.user.id),localStorage.setItem("DatingAuth","true"),e.router.navigateByUrl("/agree",{replaceUrl:!0})}})()}appleignIn(){"web"===C.dV.getPlatform()?this.singInWithAppleWeb():this.signInWithApple()}phoneIn(){this.router.navigate(["/phone"])}singInWithAppleWeb(){var e=this;const o=new y.O4("apple.com");(0,y.rh)(this.auth,o).then(function(){var r=(0,v.Z)(function*(i){console.log(i.user);let c=i.user;if(e.checkList=e.usersList.filter(f=>f.email==c.email),e.checkList.length>0){e.block=!1;const f=(0,s.JU)(e.db,"users",c.uid);let a=(yield(0,s.QT)(f)).data();e.block=a.block,e.dob=a.dob,e.gender=a.gender,e.sexuality=a.sexuality,e.genotype=a.genotype,e.lookingfor=a.lookingfor,e.location=a.location,e.photoURL=a.photoURL,0==e.block?e.dob?e.gender?e.sexuality?e.genotype?e.lookingfor?e.location?0==e.photoURL.length?e.router.navigate(["/upload-photos"]):(localStorage.setItem("uid",c.uid),yield(0,s.r7)(f,{fcm_token:localStorage.getItem("fcm")?localStorage.getItem("fcm"):""}),localStorage.setItem("DatingAuth","true"),e.router.navigateByUrl("/dating",{replaceUrl:!0})):e.router.navigate(["/location"]):e.router.navigate(["/looking-for"]):e.router.navigate(["/genotype"]):e.router.navigate(["/sexuality"]):e.router.navigate(["/gender"]):e.router.navigate(["/birth"]):(e.authService.logout(),alert("Your Account is block, contact admin for help"))}else e.setAccount(c.uid,c.email,c.displayName)});return function(i){return r.apply(this,arguments)}}()).catch(r=>{console.log("WEB ERROR: ",r)})}signInWithApple(){var e=this;return(0,v.Z)(function*(){const o=yield Z.N.signInWithApple({skipNativeAuth:!0}),i=new y.O4("apple.com").credential({idToken:o.credential?.idToken,rawNonce:o.credential?.nonce});(0,y.sB)((0,y.v0)(),i).then(function(){var c=(0,v.Z)(function*(f){console.log(f.user);let h=f.user;if(e.checkList=e.usersList.filter(a=>a.email==h.email),e.checkList.length>0){e.block=!1;const a=(0,s.JU)(e.db,"users",h.uid);let d=(yield(0,s.QT)(a)).data();e.block=d.block,e.dob=d.dob,e.gender=d.gender,e.sexuality=d.sexuality,e.genotype=d.genotype,e.lookingfor=d.lookingfor,e.location=d.location,e.photoURL=d.photoURL,0==e.block?e.dob?e.gender?e.sexuality?e.genotype?e.lookingfor?e.location?0==e.photoURL.length?e.router.navigate(["/upload-photos"]):(localStorage.setItem("uid",e.user.id),yield(0,s.r7)(a,{fcm_token:localStorage.getItem("fcm")?localStorage.getItem("fcm"):""}),localStorage.setItem("DatingAuth","true"),e.router.navigateByUrl("/dating",{replaceUrl:!0})):e.router.navigate(["/location"]):e.router.navigate(["/looking-for"]):e.router.navigate(["/genotype"]):e.router.navigate(["/sexuality"]):e.router.navigate(["/gender"]):e.router.navigate(["/birth"]):(e.authService.logout(),alert("Your Account is block, contact admin for help"))}else e.setAccount(h.uid,h.email,h.displayName)});return function(f){return c.apply(this,arguments)}}()).catch(c=>{console.log("NATIVE ERROR: ",c)})})()}singInWithAppleNative(){var e=this;U.s.authorize({clientId:"io.sendoofyeventmobile.app",redirectURI:"https://sendoofy-dating-660fc.firebaseapp.com/__/auth/handler",scopes:"email name",state:"12345",nonce:"nonce"}).then(function(){var r=(0,v.Z)(function*(i){const f=new y.O4("apple.com").credential({idToken:i.response.identityToken});let a=(yield(0,y.sB)(e.auth,f)).user;if(e.checkList=e.usersList.filter(I=>I.email==a.email),e.checkList.length>0){e.block=!1;const I=(0,s.JU)(e.db,"users",a.uid);let m=(yield(0,s.QT)(I)).data();e.block=m.block,e.dob=m.dob,e.gender=m.gender,e.sexuality=m.sexuality,e.genotype=m.genotype,e.lookingfor=m.lookingfor,e.location=m.location,e.photoURL=m.photoURL,0==e.block?e.dob?e.gender?e.sexuality?e.genotype?e.lookingfor?e.location?0==e.photoURL.length?e.router.navigate(["/upload-photos"]):(localStorage.setItem("uid",e.user.id),yield(0,s.r7)(I,{fcm_token:localStorage.getItem("fcm")?localStorage.getItem("fcm"):""}),localStorage.setItem("DatingAuth","true"),e.router.navigateByUrl("/dating",{replaceUrl:!0})):e.router.navigate(["/location"]):e.router.navigate(["/looking-for"]):e.router.navigate(["/genotype"]):e.router.navigate(["/sexuality"]):e.router.navigate(["/gender"]):e.router.navigate(["/birth"]):(e.authService.logout(),alert("Your Account is block, contact admin for help"))}else e.setAccount(a.uid,a.email,a.displayName)});return function(i){return r.apply(this,arguments)}}()).catch(r=>{console.log("NATIVE ERROR: ",r)})}setAccount(e,o,r){var i=this;return(0,v.Z)(function*(){const c=yield(0,s.JU)(i.db,"users",e);(0,s.pl)(c,{email:o,displayName:r||"Name",photoURL:[],expireDate:"",subscriptionId:"",publisher:!1,block:!1,about:"",auth:"apple",verify:!1,blockers:[],views:[],unseen:[],transactions:[],type:"user",wallet:0,joined:Date.now(),fcm_token:localStorage.getItem("fcm")?localStorage.getItem("fcm"):"",dob:"",gender:"",sexuality:"",queen:"No",genotype:"",match:[],lookingfor:"",educationId:"",zodiac:"",communicateId:"",massage:[],gift:[],languageId:[],interest:[],location:"",eventBookmark:[],latitude:0,longitude:0,likes:[],Iam:"",age:0,Ilikes:[],showDob:!0,showGender:!0,showSexuality:!0,showGenotype:!0,showLookingFor:!0,showLife:!0,showInterest:!0,showLocation:!0,showAge:!0,showEmail
1:!0,online:!0,country:"",note_match:!1,note_like:!1,note_message:!1,note_comment:!1,note_gift:!1,ethnics:"",bodyType:"",marital:"",occupation:"",weight:"",height:"",salary:""}),localStorage.setItem("uid",e),localStorage.setItem("DatingAuth","true"),i.router.navigateByUrl("/agree",{replaceUrl:!0})})()}ionViewWillLeave(){this.subscription.unsubscribe()}goForgot(){this.router.navigate(["/forgot-password"])}ionViewDidEnter(){this.subscription=this.platform.backButton.subscribeWithPriority(9999,()=>{})}displayAlertMessage(e){var o=this;return(0,v.Z)(function*(){const r=yield o.alertCtrl.create({message:e,buttons:[{text:"Ok",role:"cancel"}]});yield r.present(),yield r.onDidDismiss()})()}}return(n=g).\u0275fac=function(e){return new(e||n)(t.Y36(L.gx),t.Y36(A.gg),t.Y36(u.Br),t.Y36(p.qu),t.Y36(T.D),t.Y36(u._q),t.Y36(u.t4),t.Y36(M.e),t.Y36(_.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-sign-in"]],decls:28,vars:9,consts:[[1,"ion-padding"],["vertical","top","horizontal","start",2,"margin-top","50px"],["size","small",3,"click"],["name","chevron-back-outline","color","light"],["novalidate","",3,"formGroup","ngSubmit"],[1,"slide-in"],["size","12"],["size","12",1,"input_div"],["type","email","formControlName","email","mode","md","label","Email","shape","round","label-placement","floating","fill","outline","placeholder","Enter Email"],["class","error",4,"ngIf"],["type","password","formControlName","password","mode","md","label","Password","shape","round","label-placement","floating","fill","outline","placeholder","Enter Password"],[1,"button_div"],["color","primary","shape","round","type","submit",1,"btn"],["style","text-transform: none;",4,"ngIf"],["mode","md","color","light",4,"ngIf"],[3,"click"],["class","line_social slide-in",4,"ngIf"],["class","social_button slide-in",4,"ngIf"],[1,"error"],[2,"text-transform","none"],["mode","md","color","light"],[1,"line_social","slide-in"],[1,"left"],[1,"right"],[1,"social_button","slide-in"],[1,"circle-gmail",3,"click"],["name","logo-google"],[1,"circle-apple",3,"click"],["name","logo-apple"]],template:function(e,o){1&e&&(t.TgZ(0,"ion-content",0)(1,"ion-fab",1)(2,"ion-fab-button",2),t.NdJ("click",function(){return o.goBack()}),t._UZ(3,"ion-icon",3),t.qZA()(),t.TgZ(4,"form",4),t.NdJ("ngSubmit",function(){return o.login()}),t.TgZ(5,"ion-grid",5)(6,"ion-row")(7,"ion-col",6)(8,"h1"),t._uU(9,"Login to continue"),t.qZA()(),t.TgZ(10,"ion-col",7),t._UZ(11,"ion-input",8),t.YNc(12,O,2,0,"p",9),t.YNc(13,R,2,0,"p",9),t.qZA(),t.TgZ(14,"ion-col",7),t._UZ(15,"ion-input",10),t.YNc(16,N,2,0,"p",9),t.YNc(17,J,2,0,"p",9),t.qZA(),t.TgZ(18,"ion-col",6)(19,"div",11)(20,"ion-button",12),t.YNc(21,Y,2,0,"span",13),t.YNc(22,B,1,0,"ion-spinner",14),t.qZA(),t.TgZ(23,"div",15),t.NdJ("click",function(){return o.goForgot()}),t.TgZ(24,"p"),t._uU(25,"Forgot Password"),t.qZA()()()()()()(),t.YNc(26,E,5,0,"div",16),t.YNc(27,z,5,0,"div",17),t.qZA()),2&e&&(t.xp6(4),t.Q6J("formGroup",o.authForm),t.xp6(8),t.Q6J("ngIf",o.isSubmitted&&(null==o.errorControl.email.errors?null:o.errorControl.email.errors.required)),t.xp6(1),t.Q6J("ngIf",o.isSubmitted&&(null==o.errorControl.email.errors?null:o.errorControl.email.errors.pattern)),t.xp6(3),t.Q6J("ngIf",o.isSubmitted&&(null==o.errorControl.password.errors?null:o.errorControl.password.errors.required)),t.xp6(1),t.Q6J("ngIf",o.isSubmitted&&(null==o.errorControl.password.errors?null:o.errorControl.password.errors.minlength)),t.xp6(4),t.Q6J("ngIf",!o.isLogin),t.xp6(1),t.Q6J("ngIf",o.isLogin),t.xp6(4),t.Q6J("ngIf",o.social_login),t.xp6(1),t.Q6J("ngIf",o.social_login))},dependencies:[S.O5,p._Y,p.JJ,p.JL,u.YG,u.wI,u.W2,u.IJ,u.W4,u.jY,u.gu,u.pK,u.Nd,u.PQ,u.j9,p.sg,p.u],styles:["ion-grid[_ngcontent-%COMP%]{margin-top:150px;transform:translate(-100%);-webkit-transform:translateX(-100%)}.slide-in[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_slide-in .5s forwards;-webkit-animation:_ngcontent-%COMP%_slide-in .5s forwards}.slide-out[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_slide-out .5s forwards;-webkit-animation:_ngcontent-%COMP%_slide-out .5s forwards}@keyframes _ngcontent-%COMP%_slide-in{to{transform:translate(0)}}@keyframes _ngcontent-%COMP%_slide-out{0%{transform:translate(0)}to{transform:translate(-100%)}}h1[_ngcontent-%COMP%]{align-items:start;padding-left:35px;padding-bottom:10px;font-weight:600}.input_div[_ngcontent-%COMP%]{margin:0 auto!important;padding-left:15px;padding-right:15px}.button_div[_ngcontent-%COMP%]{align-items:center;justify-content:center;text-align:center;padding-left:15px;padding-right:15px}.button_div[_ngcontent-%COMP%] .button.btn[_ngcontent-%COMP%]{height:60px;width:100%;margin-bottom:25px;margin-top:25px}.button_div[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--ion-color-primary)}.button_div[_ngcontent-%COMP%] .terms[_ngcontent-%COMP%]{text-decoration:underline;color:#fff}.line_social[_ngcontent-%COMP%]{margin-top:40px;
1display:flex;align-items:center;flex-direction:row;text-align:center;transform:translate(-100%);-webkit-transform:translateX(-100%)}.line_social[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{width:50%;height:2px;margin-left:30px;background:var(--ion-color-primary)}.line_social[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{width:100%;align-items:center;font-size:16px}.line_social[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{margin-right:30px;width:50%;height:2px;background:var(--ion-color-primary)}.social_button[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;margin-top:30px;transform:translate(-100%);-webkit-transform:translateX(-100%)}.social_button[_ngcontent-%COMP%] .circle-facebook[_ngcontent-%COMP%]{width:55px;height:55px;border-radius:50%;background-color:#7a0176;display:flex;justify-content:center;align-items:center;font-size:1.8em;color:#fff}.social_button[_ngcontent-%COMP%] .circle-gmail[_ngcontent-%COMP%]{width:55px;height:55px;border-radius:50%;background-color:red;display:flex;justify-content:center;align-items:center;font-size:1.8em;color:#fff}.social_button[_ngcontent-%COMP%] .circle-apple[_ngcontent-%COMP%]{width:55px;height:55px;border-radius:50%;background-color:#000;display:flex;justify-content:center;align-items:center;font-size:1.8em;color:#fff}"]}),g})()}];let F=(()=>{var n;class g{}return(n=g).\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[_.Bz.forChild(D),_.Bz]}),g})(),Q=(()=>{var n;class g{}return(n=g).\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[S.ez,p.u5,u.Pc,p.UX,F]}),g})()}}]);
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.