PageSourceSearch

https://cookingenie.com/chunk-ABPTBD2S.js

js cookingenie.com collected 2026-10-02 03:19:56 UTC 11,169 bytes, 1 lines download raw bytes

1import{a as Re,b as xe}from"./chunk-JTGHMZKI.js";import{a as Ge,b as ke}from"./chunk-MRO6ITCV.js";import{a as je,b as Ie}from"./chunk-CODPYUNF.js";import{a as Be,b as Pe}from"./chunk-OACBTU2E.js";import{a as Ae,b as Ne}from"./chunk-UWXC2ZYT.js";import{a as Ue,b as Ee}from"./chunk-4K5O4OI6.js";import{b as re,d as ae,j as Ce}from"./chunk-KT5MLUJQ.js";import{a as le,c as ce,d as _e}from"./chunk-CIOB7HLP.js";import{f as se,l as ye}from"./chunk-JQEDZ45J.js";import"./chunk-UJU5ZKCZ.js";import"./chunk-WN7CA6TX.js";import"./chunk-WIQCDB3V.js";import"./chunk-AANEGLNH.js";import"./chunk-E6WXZFXO.js";import{a as ne,c as Se}from"./chunk-EVH3WEQJ.js";import"./chunk-HA3PLRU4.js";import"./chunk-3AC25N5N.js";import{a as oe,b as we}from"./chunk-HJP25U2V.js";import{a as te,c as ie,d as I}from"./chunk-RBRSKFLB.js";import"./chunk-KTCLDFN6.js";import{b as Z,c as ee}from"./chunk-ZRCAB52V.js";import"./chunk-UQ42ZESX.js";import"./chunk-PLFS2RLY.js";import{p as J,x as ge}from"./chunk-STR4QBJQ.js";import"./chunk-S7HHJHKF.js";import{J as q,O as ve,P as z,Q as H,R as Y,a as x,l as k,n as w}from"./chunk-4K3AFB5G.js";import{a as P,b as ue}from"./chunk-LHHIVGKA.js";import"./chunk-POVBCCBO.js";import{d as X,f as K}from"./chunk-NV5A3N3F.js";import{a as Q,b as be}from"./chunk-23HZUKGU.js";import{F as W,c as U,k as fe,w as $,y as M,z as F}from"./chunk-3N74VLA4.js";import"./chunk-EKQ6HCYV.js";import{Ec as l,Fc as _,Gc as L,Qc as R,Rc as G,Vb as f,Xb as g,Xc as j,Zc as B,aa as y,ac as p,bc as n,cc as r,da as he,dc as v,g as N,jb as s,kc as T,na as E,oc as h,qc as b,ua as O,ub as m,va as D,xd as A,zb as V}from"./chunk-WY7D7IPB.js";import{e as C}from"./chunk-2BFPQ72K.js";var Me,me=C(()=>{"use strict";I();Me=[{path:"",loadComponent:()=>import("./chunk-MTYF5EFN.js").then(i=>i.AuthComponent),canActivate:[ie],children:[{path:"",redirectTo:"login",pathMatch:"full"},{path:"login",loadComponent:()=>import("./chunk-2ZUKJK73.js").then(i=>i.LoginComponent),data:{title:"Login to Your CookinGenie Account",metaDescription:"Log in to your CookinGenie account to manage bookings, track orders, and enjoy personalized home-cooking services. Quick and secure access to your dashboard."}},{path:"register",loadComponent:()=>import("./chunk-DD5VPWLL.js").then(i=>i.RegisterComponent),data:{title:"Sign Up & Enjoy Home-cooked Meals - CookinGenie",metaDescription:"Register with CookinGenie to savor delicious, home-cooked meals by professional chefs. Sign up today for convenient and healthy dining at home!"}},{path:"forgot-password",loadComponent:()=>import("./chunk-TTMJD55N.js").then(i=>i.ForgotPasswordComponent),data:{title:"Password Assistance | CookinGenie",metaDescription:"Enter the email id or phone number associated with your CookinGenie account"}},{path:"resetpassword/:id",loadComponent:()=>import("./chunk-OU7Z4CQW.js").then(i=>i.ResetPasswordComponent),data:{title:"Reset Password | CookinGenie",metaDescription:"Reset password associated with your CookinGenie account"}},{path:"verify",loadComponent:()=>import("./chunk-6K53TNTR.js").then(i=>i.OtpVerificationComponent),data:{title:"Verify Confirmation Code | CookinGenie",metaDescription:"Verify Confirmation Code"}},{path:"force-change-password/:id",loadComponent:()=>import("./chunk-OU7Z4CQW.js").then(i=>i.ResetPasswordComponent),data:{title:"Force Change Password | CookinGenie",metaDescription:"Reset password associated with your CookinGenie account"}}]}]});function De(i,c){if(i&1&&(n(0,"div",12),l(1),r()),i&2){let d=b();s(),L(" ",d.expiredOTP," ")}}function Ve(i,c){if(i&1&&(n(0,"span"),l(1,"in "),n(2,"span",23),l(3),r()()),i&2){let d=b();s(3),_(d.display)}}function Te(i,c){if(i&1){let d=T();n(0,"a",24),h("click",function(){O(d);let e=b();return D(e.resendCode())}),l(1," \xA0Now "),r()}}var Oe,St,pe=C(()=>{"use strict";fe();A();W();we();K();ee();I();ve();Y();he();Se();ye();Ce();be();_e();ue();A();ge();W();I();K();Y();ee();Oe=()=>["/"];St=(()=>{let c=class c{constructor(o,e,t,a,u,S,de){this.store$=o,this.router=e,this.authService=t,this.alertService=a,this.localStorageService=u,this.sessionStorageService=S,this.spinnerService=de,this.activatedRoute=E($),this.otpValue="",this.isOtpInvalid=!1,this.phoneNumber="",this.completePhoneNumber="",this.completeEmail="",this.name="",this.deliveredBy="Sent via link",this.ReferralRequest={Name:"",Phone:"",Email:"",ReferralCode:"",DeliveryBy:"",Flag:!0,IsAnonymous:!1},this.expiredOTP="",this.buttonDisabled=!1,this.isLogin=!1,this.loginCodeId="",this.display="02:00",this.isPhoneNum=!1,this.ngUnsubscribe$=new N}ngOnInit(){this.timer(),this.loginCodeId=this.activatedRoute.snapshot.queryParams.id,this.loginCodeId?(this.isLogin=!0,this.completeEmail=JSON.parse(this.localStorageService.getDataWithoutEncrypt("partnerEmail")),this.completeEmail.match(q.email)?this.isPhoneNum=!1:(this.isPhoneNum=!0,this.completePhoneNumber=this.completeEmail,this.completeEmail="")):this.get()}get(){let o=this.localStorageService.getDataWithoutEncrypt("usersignup")||null;if(o){let e=JSON.parse(o||"");this.phoneNumber=e.mobileNumber.substr(e.mobileNumber.length-4),this.completePhoneNumber=e.mobileNumber,this.name=e.name.firstName,this.completeEmail=e.email}else this.router.navigate(["/auth/register"])}
1onOtpInputValueChange(o){o.isValid&&(this.otpValue=o.value)}goBack(){this.isLogin?this.router.navigate(["/auth/login"]):this.router.navigate(["/auth/register"])}onOtpConfirmation(){if(this.expiredOTP="",this.buttonDisabled=!0,!this.otpValue&&this.otpValue.length<4)this.isOtpInvalid=!0,this.buttonDisabled=!1;else{this.isOtpInvalid=!1;let o=JSON.parse(this.localStorageService.getDataWithoutEncrypt("OtpValidate")),e={CodeGeneratedId:this.isLogin?this.loginCodeId:o,ConfirmationCode:this.otpValue};this.authService.validateConfirmationCode(e).pipe(y(this.ngUnsubscribe$)).subscribe({next:t=>{t?.data?t.data.isApproved?this.isLogin?this.onLoggedIn(t.data.otp):this.onSignup():(this.expiredOTP="Your code has been expired. Please resend verification code.",this.buttonDisabled=!0):(this.alertService.error("Invalid verification code."),this.buttonDisabled=!1)},error:()=>{this.alertService.error("Invalid verification code."),this.buttonDisabled=!1}})}}onLoggedIn(o){let e=this.sessionStorageService.getData(k),t=new U().set("username",e).set("password",o).set("roleId",x.Partner).set("client_id",w.client_verification_code).set("grant_type",w.grant_type).set("scope",w.scope).set("client_secret",P.client_secret);this.store$.dispatch(re({params:t.toString(),isLogin:!0})),this.spinnerService.showSpinner(),this.localStorageService.removeData("partnerEmail")}onSignup(){let o=this.localStorageService.getDataWithoutEncrypt("usersignup"),e=JSON.parse(o||""),t={FirstName:e.name.firstName,LastName:e.name.lastName,Email:e.email,PhoneNumber:e.mobileNumber,Password:e.password,RoleId:x.Partner,UserId:oe,IsNew:!0,BusinessName:e.businessName,BusinessType:e.businessType,OtherBusinessTypeName:e.otherBusinessTypeName};this.spinnerService.showSpinner(),this.store$.dispatch(ae({params:t}))}resendCode(){let o={PhoneNumber:this.completePhoneNumber,Email:this.completeEmail,Id:this.isLogin?this.loginCodeId:JSON.parse(this.localStorageService.getDataWithoutEncrypt("OtpValidate")),Name:this.name};this.display="02:00",this.authService.generateConfirmationCode(o).pipe(y(this.ngUnsubscribe$)).subscribe(e=>{e&&(this.alertService.success("Verification code has been sent again, Please check"),this.buttonDisabled=!1,this.otpValue="",this.timer())})}timer(){let e=120,t="0",a=60,u="0",S=setInterval(()=>{e--,a!=0?a--:a=59,a<10?t="0"+a:t=a.toString(),this.display=`${u}${Math.floor(e/60)}:${t}`,e===0&&(clearInterval(S),this.display="")},1e3)}ngOnDestroy(){this.sessionStorageService.removeData(k),this.ngUnsubscribe$.next(!0),this.ngUnsubscribe$.complete()}};c.\u0275fac=function(e){return new(e||c)(m(J),m(M),m(te),m(X),m(z),m(H),m(Z))},c.\u0275cmp=V({type:c,selectors:[["cg-partner-otp"]],features:[R([le()])],decls:32,vars:18,consts:[[1,"authWrapper"],[1,""],[1,"tw-text-center","tw-mb-5"],["href","javascript:void(0);","id","cg-home",1,"tw-inline-block",3,"routerLink"],["src","./assets/images/brand/cookingenie_logo_name.svg","alt","CookinGenie","id","cg-home-img"],[1,"tw-bg-white","tw-p-12","tw-rounded-3xl"],[1,"tw-text-center","tw-mb-10","tw-flex","tw-flex-col","tw-items-center"],["src","./assets/images/illustrations/security-check.jpg","alt","security-check","id","cg-home-img"],["id","verify-account-title",1,"tw-text-gray-900","tw-text-4xl","tw-font-semibold","tw-font-sans","tw-leading-10","tw-mb-2"],["id","verify-account-sub-title",1,"tw-text-stone-500","tw-text-base","tw-font-medium","tw-font-sans","tw-leading-snug"],[1,"tw-font-bold","tw-text-zinc-700"],[1,"tw-mb-5","tw-relative"],["id","error-expired-otp",1,"tw-rounded-lg","tw-px-3","tw-py-3","tw-bg-alert-100","tw-border","tw-border-alert-700","tw-text-alert-500","tw-mb-5","tw-text-sm","tw-text-center"],[1,"tw-mb-8"],[3,"keydown.enter","valueChange","value","isOtpInvalid"],[1,"tw-flex","tw-items-center","tw-gap-4"],["type","submit","id","btn-go-back",3,"click","cgButton","block","disabled"],["type","submit","id","btn-otp-verification",3,"click","cgButton","block","disabled"],["id","resend-otp",1,"tw-flex","tw-items-center","tw-justify-center","tw-text-stone-500","tw-text-sm","tw-font-normal","tw-leading-snug","tw-text-center","tw-mt-5"],[1,"tw-mt-1"],[3,"name"],[1,"tw-ml-1"],["href","javascript:void(0);","id","resend-otp-now",1,"tw-font-semibold","hover:tw-underline"],[1,"tw-font-bold"],["href","javascript:void(0);","id","resend-otp-now",1,"tw-font-semibold","hover:tw-underline",3,"click"]],template:function(e,t){e&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3),v(4,"img",4),r()(),n(5,"div",5)(6,"div",6)(7,"p"),v(8,"img",7),r(),n(9,"h1",8),l(10," Verify your account "),r(),n(11,"p",9),l(12," Enter 4-digits code we sent to "),r(),n(13,"p",10),l(14),j(15,"mask"),r()(),n(16,"div",11),f(17,De,2,1,"div",12),n(18,"div",13)(19,"cg-partner-otp-input",14),h("keydown.enter",function(){return t.onOtpConfirmation()})("valueChange",function(u){return t.onOtpInputValueChange(u)}),r()(),n(20,"div",15)(21,"button",16),h("click",function(){return t.goBack()}),l(22," Go back "),r(),n(23,"button",17),h("click",function(){return t.onOtpConfirmation()}),l(24," Verify "),r()(),n(25,"div",18)(26,"div",19),v(27,"i-icon",20),r(),n(28,"div",21),l(29," Resend verification code "),f(30,Ve,4,1,"span"),f(31,Te,2,0,"a",22),r()()()()()()),e&2&&(s(3),p("routerLink",G(17,Oe)),s(11),_(t.isPhoneNum?B(15,14,t.completePhoneNumber,"(000) 000-0000"):t.completeEmail),s(3),g(t.expiredOTP?17:-1),s(2),p("value",t.otpValue)("isOtpInvalid",t.isOtpInvalid),s(2),p("cgButton","secondary")("block",!0)("disabled",t.buttonDisabled),s(2),p("cgButton","primary")("block",!0)("disabled",t.buttonDisabled),s(4),p("name","clock"),s(3),g(t.display?30:-1),s(),g(t.display?-1:31))},dependencies:[F,ne,se,Q,ce],encapsulation:2});let i=c;return i})()});var Le=C(()=>{me();xe();ke();Ie();Pe();Ne();Ee();pe()});Le();
1export{Re as AuthComponent,Be as ForgotPasswordComponent,Ge as LoginComponent,Ue as OtpVerificationComponent,St as PartnerOtpVerifyComponent,je as RegisterComponent,Ae as ResetPasswordComponent,Me as featuresAuthRoutes};

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.