PageSourceSearch

https://naiya.ng/chunk-FBRKJQ3T.js

js naiya.ng collected 2026-10-02 14:29:42 UTC 18,745 bytes, 1 lines download raw bytes

1import{a as q}from"./chunk-PATAVDAA.js";import{a as Y}from"./chunk-I2JWM6AQ.js";import{a as N}from"./chunk-K5NUBVNZ.js";import{a as A}from"./chunk-37OBSATO.js";import{a as R}from"./chunk-GBQR2T6G.js";import{a as Q,b as I,e as U,g as d,h as G}from"./chunk-2T7IE5N5.js";import{a as F}from"./chunk-RTT7LG64.js";import{a as L}from"./chunk-SIY4TAKR.js";import"./chunk-3GMDOKA4.js";import"./chunk-CFXMN67B.js";import{a as E}from"./chunk-4JM4SJ7J.js";import{a as C}from"./chunk-TKGY6PYJ.js";import{c as k,f as S,g as z}from"./chunk-NOMRVDJJ.js";import"./chunk-MMLU7Y2O.js";import{q as y}from"./chunk-XI2WLH56.js";import{$a as w,F as M,L as P,Lb as p,Mb as n,Nb as t,Ob as c,Z as g,Zb as _,ab as s,ea as O,eb as m,fa as x,fb as u,mc as e,oa as f,pb as v,xa as b}from"./chunk-5P65DMBE.js";var it=(()=>{class h{constructor(){this.authentication=g(L),this.appState=g(A),this.router=g(S),this.notification=g(E),this.profileService=g(N),this.activatedRoute=g(k),this.authenticationBusinessService=g(Y),this.signupModel=f({name:"",email:"",password:"",number:""}),this.signupForm=Q(this.signupModel,o=>{d(o.name,{message:"Your name is required"}),d(o.email,{message:"Your email address is required"}),U(o.email,{message:"Invalid email address"}),d(o.password,{message:"Your password is required"}),d(o.number,{message:"Your number is required"})}),this.passwordVisible=f(!1),this.isLoading=f(!1),this.baseURL=C.baseURL,this.googleClientId=C.googleClientId,b(()=>{this.authentication.accessToken()&&this.router.navigate(["/"]).then()}),w(()=>{this.getGoogleCodeAndLogin()})}ngOnInit(){}submitSignupForm(){this.signupForm().invalid()&&(this.signupModel().name||this.notification.blank("Invalid details","Your name is required"),this.signupModel().number||this.notification.blank("Invalid details","Your number is required"),this.signupModel().email||this.notification.blank("Invalid details","Your email address is required"),this.signupModel().password||this.notification.blank("Invalid details","Your password is required")),I(this.signupForm,async()=>(this.isLoading.set(!0),new Promise(o=>{this.authentication.signUpService(this.signupModel()).subscribe({next:i=>{this.authentication.setTokens(i.data.access_token,i.data.refresh_token),this.profileService.getUsers().pipe(M(1),P(2)).subscribe(a=>{this.appState.setUserData(a)}),this.router.navigate(["/"]).then(),this.notification.success("Sign Up Successful",""),this.isLoading.set(!1),o()},error:i=>{i.error?.message?this.notification.error(i.error.message,"Signup Error"):this.notification.error("An error occurred",""),this.isLoading.set(!1),o()}})})))}gotoGoogleAuthPage(){let o=window.location.pathname+window.location.search+window.location.hash,i=btoa(o),l=`${C.websiteURL.replace(/\/$/,"")}/login`,r=`https://accounts.google.com/o/oauth2/v2/auth?client_id=${this.googleClientId}&redirect_uri=${encodeURIComponent(l)}&response_type=code&scope=openid%20email%20profile&access_type=offline&prompt=select_account&state=${encodeURIComponent(i)}`;window.location.href=r}getGoogleCodeAndLogin(){this.activatedRoute.queryParams.subscribe(o=>{let i=o.code,a=o.state,l;if(a)try{let r=atob(a);r&&r.startsWith("/")&&(l=r)}catch{}i&&this.authentication.continueWithGoogle(i).subscribe(r=>{this.authenticationBusinessService.postLoginActivities(r,l).then(()=>{this.isLoading.set(!1)})})})}static{this.\u0275fac=function(i){return new(i||h)}}static{this.\u0275cmp=v({type:h,selectors:[["app-signup"]],decls:65,vars:6,consts:[[1,"auth-page-container"],[1,"auth-main"],[1,"auth-glass-card"],[1,"auth-marketing-panel"],[1,"marketing-title"],[1,"marketing-text"],[1,"marketing-badges"],[1,"material-symbols-outlined","icon-badge"],[1,"marketing-download"],[1,"download-label"],["href","https://play.google.com/store/apps/details?id=com.naiya.naiya_mobile_app&hl=en","target","_blank",1,"play-store-link"],["ngSrc","assets/logo/google-play-image.png","alt","Get it on Google Play","width","135","height","40","priority",""],[1,"auth-form-panel"],[1,"form-title"],[1,"form-subtitle"],[1,"social-login-container"],[1,"btn-social-google",3,"click"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"google-svg"],["d","M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z","fill","#4285F4"],["d","M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z","fill","#34A853"],["d","M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z","fill","#FBBC0
15"],["d","M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z","fill","#EA4335"],[1,"auth-divider"],[1,"divider-line"],[1,"divider-text"],[1,"auth-form",3,"submit"],[1,"form-group"],["for","name",1,"form-label"],["size","large","type","text","id","name","placeholder","John Doe",1,"auth-input",3,"formField"],["for","email",1,"form-label"],["size","large","type","email","id","email","placeholder","[email protected]",1,"auth-input",3,"formField"],["for","number",1,"form-label"],["size","large","id","number","placeholder","080XXXXXXXX",1,"auth-input",3,"formField"],["for","password",1,"form-label"],["type","password","size","large","id","password","placeholder","\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",1,"auth-input-group",3,"formField"],["type","primary","nativeType","submit","size","large",1,"btn-auth-submit",3,"block","loading"],[1,"material-symbols-outlined","btn-arrow"],[1,"auth-footer-text"],["routerLink","/login",1,"auth-link-highlight"]],template:function(i,a){i&1&&(n(0,"div",0)(1,"main",1)(2,"div",2)(3,"div",3)(4,"h1",4),e(5,"Start Selling and Buying Today"),t(),n(6,"p",5),e(7,"Create an account to list your products, find amazing deals, and connect with thousands of active buyers and sellers in Nigeria."),t(),n(8,"div",6)(9,"span",7),e(10,"storefront"),t(),n(11,"span",7),e(12,"devices"),t(),n(13,"span",7),e(14,"checkroom"),t()(),n(15,"div",8)(16,"p",9),e(17,"Get the App"),t(),n(18,"a",10),c(19,"img",11),t()()(),n(20,"div",12)(21,"h2",13),e(22,"Create Account"),t(),n(23,"p",14),e(24,"Get started with your free account"),t(),n(25,"div",15)(26,"button",16),_("click",function(){return a.gotoGoogleAuthPage()}),O(),n(27,"svg",17),c(28,"path",18)(29,"path",19)(30,"path",20)(31,"path",21),t(),x(),n(32,"span"),e(33,"Continue with Google"),t()()(),n(34,"div",22),c(35,"div",23),n(36,"span",24),e(37,"or email"),t(),c(38,"div",23),t(),n(39,"form",25),_("submit",function(r){return a.submitSignupForm(),r.preventDefault()}),n(40,"div",26)(41,"label",27),e(42,"FullName"),t(),c(43,"app-input",28),m(),t(),n(44,"div",26)(45,"label",29),e(46,"Email Address"),t(),c(47,"app-input",30),m(),t(),n(48,"div",26)(49,"label",31),e(50,"Phone Number"),t(),c(51,"app-phone-number",32),m(),t(),n(52,"div",26)(53,"label",33),e(54,"Password"),t(),c(55,"app-input",34),m(),t(),n(56,"app-button",35)(57,"span"),e(58,"Sign Up"),t(),n(59,"span",36),e(60,"arrow_forward"),t()()(),n(61,"p",37),e(62," Already have an account? "),n(63,"a",38),e(64,"Sign In"),t()()()()()()),i&2&&(s(43),p("formField",a.signupForm.name),u(),s(4),p("formField",a.signupForm.email),u(),s(4),p("formField",a.signupForm.number),u(),s(4),p("formField",a.signupForm.password),u(),s(),p("block",!0)("loading",a.isLoading()))},dependencies:[z,G,F,R,q,y],styles:["[_nghost-%COMP%]{display:block;margin-inline:-40px;margin-top:-30px}@media(max-width:500px){[_nghost-%COMP%]{margin-inline:-10px;margin-top:0}}.auth-page-container[_ngcontent-%COMP%]{min-height:100vh;width:100%;display:flex;flex-direction:column;position:relative;overflow:hidden;box-sizing:border-box;font-family:Quicksand,sans-serif}.auth-page-container[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{box-sizing:border-box}.auth-page-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .auth-page-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%], .auth-page-container[_ngcontent-%COMP%]   select[_ngcontent-%COMP%], .auth-page-container[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{font-family:Quicksand,sans-serif}.auth-page-container[_ngcontent-%COMP%]   .auth-header[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;width:100%;z-index:50;display:flex;justify-content:space-between;align-items:center;padding:1.5rem 2rem;max-width:1280px;margin:0 auto}.auth-page-container[_ngcontent-%COMP%]   .auth-header[_ngcontent-%COMP%]   .brand-logo[_ngcontent-%COMP%]{font-family:Quicksand,sans-serif;font-size:24px;font-weight:700;color:#f90047;cursor:pointer;letter-spacing:-.5px;-webkit-user-select:none;user-select:none}.auth-page-container[_ngcontent-%COMP%]   .auth-main[_ngcontent-%COMP%]{flex-grow:1;display:flex;align-items:center;justify-content:center;position:relative;z-index:10;padding:6.5rem 1.5rem 4.5rem}.auth-page-container[_ngcontent-%COMP%]   .auth-glass-card[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.08);border-radius:16px;width:100%;max-width:960px;display:flex;overflow:hidden;min-height:560px;transition:all .3s ease}@media(max-width:768px){.auth-page-container[_ngcontent-%COMP%]   .auth-glass-card[_ngcontent-%COMP%]{flex-direction:column;max-width:440px;min-height:auto}}.auth-page-container[_ngcontent-%COMP%]   .auth-marketing-panel[_ngcontent-%COMP%]{width:50%;border-right:1px solid rgba(0,0,0,.08);padding:3.5rem 3rem;display:flex;flex-direction:column;justify-content:center}@media(max-width:768px){.auth-page-container[_ngcontent-%COMP%]   .auth-marketing-panel[_ngcontent-%COMP%]{display:none}}.auth-page-container[_ngcontent-%COMP%]   .auth-marketing-panel[_ngcontent-%COMP%]   .marketing-title[_ngcontent-%COMP%]{font-family:Quicksand,sans-serif;font-size:28px;font-weight:700;line-height:1.35;color:#1b1c1c;margin:0 0 1.25rem}.auth-page-container[_ngcontent-%COMP%]   .auth-marketing-panel[_ngcontent-%COMP%]   .marketing-text[_ngcontent-%COMP%]{font-family:Quicksand,sans-serif;font-size:15px;line-height:1.6;color:#5f5e5e;margin:0 0 2.25rem}.auth-page-container[_ngcontent-%COMP%]   .auth-marketing-panel[_ngcontent-%COMP%]   .marketing-badges[_ngcontent-%COMP%]{display:flex;gap:1.25rem}.auth-page-container[_ngcontent-%COMP%]   .auth-marketing-panel[_ngcontent-%COMP%]   .marketing-badges[_ngcontent-%COMP%]   .icon-badge[_ngcontent-%COMP%]{font-size:22px;color:#f90047;padding:.75rem;border-radius:50%;width:46px;height:46px;
1display:flex;align-items:center;justify-content:center;transition:all .3s cubic-bezier(.16,1,.3,1);border:1px solid rgba(249,0,71,.08)}.auth-page-container[_ngcontent-%COMP%]   .auth-marketing-panel[_ngcontent-%COMP%]   .marketing-badges[_ngcontent-%COMP%]   .icon-badge[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 6px 16px -4px #f9004726}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]{width:50%;padding:3.5rem;display:flex;flex-direction:column;justify-content:center}@media(max-width:768px){.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]{width:100%;padding:3rem 2rem}}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .form-title[_ngcontent-%COMP%]{font-family:Quicksand,sans-serif;font-size:24px;font-weight:700;color:#1b1c1c;margin:0 0 .25rem;letter-spacing:-.3px}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .form-subtitle[_ngcontent-%COMP%]{font-family:Quicksand,sans-serif;font-size:14px;color:#5f5e5e;margin:0 0 2rem}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .social-login-container[_ngcontent-%COMP%]{margin-bottom:1.5rem}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .social-login-container[_ngcontent-%COMP%]   .btn-social-google[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:center;gap:12px;padding:.75rem 1rem;border:1.5px solid rgba(0,0,0,.08);border-radius:8px;background:transparent;cursor:pointer;font-family:Quicksand,sans-serif;font-size:14px;font-weight:600;color:#1c1b1b;transition:all .2s cubic-bezier(.16,1,.3,1)}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .social-login-container[_ngcontent-%COMP%]   .btn-social-google[_ngcontent-%COMP%]:hover{border-color:#f9004733;box-shadow:0 4px 12px #00000008;transform:translateY(-.5px)}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .social-login-container[_ngcontent-%COMP%]   .btn-social-google[_ngcontent-%COMP%]   .google-svg[_ngcontent-%COMP%]{width:18px;height:18px}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-divider[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;margin-bottom:1.75rem}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-divider[_ngcontent-%COMP%]   .divider-line[_ngcontent-%COMP%]{flex-grow:1;height:1px;background:#00000014}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-divider[_ngcontent-%COMP%]   .divider-text[_ngcontent-%COMP%]{font-family:Quicksand,sans-serif;font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:.05em;color:#5f5e5e}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.25rem}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.4rem;width:100%}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .form-label-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .form-label[_ngcontent-%COMP%]{font-family:Quicksand,sans-serif;font-weight:600;font-size:13px;color:#1b1c1c}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .auth-input[_ngcontent-%COMP%], .auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .auth-input-group[_ngcontent-%COMP%]{width:100%!important}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .auth-input[_ngcontent-%COMP%]   .pwd-toggle-icon[_ngcontent-%COMP%], .auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .auth-input-group[_ngcontent-%COMP%]   .pwd-toggle-icon[_ngcontent-%COMP%]{cursor:pointer;color:#5f5e5e;font-size:16px;transition:color .2s}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .auth-input[_ngcontent-%COMP%]   .pwd-toggle-icon[_ngcontent-%COMP%]:hover, .auth-
1page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .auth-input-group[_ngcontent-%COMP%]   .pwd-toggle-icon[_ngcontent-%COMP%]:hover{color:#f90047}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .auth-error-msg[_ngcontent-%COMP%]{font-family:Quicksand,sans-serif;font-size:12px;color:#ba1a1a;margin-top:.15rem;display:inline-block}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-form[_ngcontent-%COMP%]   .btn-auth-submit[_ngcontent-%COMP%]{margin-top:.5rem;width:100%!important}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-form[_ngcontent-%COMP%]   .btn-auth-submit[_ngcontent-%COMP%]   .btn-arrow[_ngcontent-%COMP%]{font-size:18px;line-height:1}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-footer-text[_ngcontent-%COMP%]{text-align:center;font-family:Quicksand,sans-serif;font-size:14px;color:#5f5e5e;margin:1.75rem 0 0}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-footer-text[_ngcontent-%COMP%]   .auth-link-highlight[_ngcontent-%COMP%]{color:#f90047;font-weight:600;text-decoration:none;transition:color .2s}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-footer-text[_ngcontent-%COMP%]   .auth-link-highlight[_ngcontent-%COMP%]:hover{color:#d6003b;text-decoration:underline}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-link-sm[_ngcontent-%COMP%]{font-family:Quicksand,sans-serif;font-size:12px;color:#f90047;font-weight:500;text-decoration:none;transition:color .2s}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-link-sm[_ngcontent-%COMP%]:hover{color:#d6003b;text-decoration:underline}.auth-page-container[_ngcontent-%COMP%]   .auth-footer[_ngcontent-%COMP%]{width:100%;max-width:1280px;margin:auto auto 0;padding:2rem;display:flex;justify-content:space-between;align-items:center;border-top:1px solid rgba(0,0,0,.05);position:relative;z-index:10;flex-wrap:wrap;gap:1rem}@media(max-width:768px){.auth-page-container[_ngcontent-%COMP%]   .auth-footer[_ngcontent-%COMP%]{flex-direction:column;text-align:center;padding:1.5rem}}.auth-page-container[_ngcontent-%COMP%]   .auth-footer[_ngcontent-%COMP%]   .footer-logo[_ngcontent-%COMP%]{font-family:Quicksand,sans-serif;font-weight:700;font-size:18px;color:#5f5e5e;letter-spacing:-.3px}.auth-page-container[_ngcontent-%COMP%]   .auth-footer[_ngcontent-%COMP%]   .footer-links[_ngcontent-%COMP%]{display:flex;gap:1.5rem}@media(max-width:480px){.auth-page-container[_ngcontent-%COMP%]   .auth-footer[_ngcontent-%COMP%]   .footer-links[_ngcontent-%COMP%]{flex-direction:column;gap:.75rem}}.auth-page-container[_ngcontent-%COMP%]   .auth-footer[_ngcontent-%COMP%]   .footer-links[_ngcontent-%COMP%]   .footer-link[_ngcontent-%COMP%]{font-family:Quicksand,sans-serif;font-size:13px;color:#5f5e5e;text-decoration:none;transition:color .2s}.auth-page-container[_ngcontent-%COMP%]   .auth-footer[_ngcontent-%COMP%]   .footer-links[_ngcontent-%COMP%]   .footer-link[_ngcontent-%COMP%]:hover{color:#f90047;text-decoration:underline}.auth-page-container[_ngcontent-%COMP%]   .auth-footer[_ngcontent-%COMP%]   .footer-copyright[_ngcontent-%COMP%]{font-family:Quicksand,sans-serif;font-size:12px;color:#8c8c8c}"]})}}return h})();export{it as SignupComponent};

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.