PageSourceSearch

https://new.vk-panel.ru/chunk-QWDFB7PE.js

js vk-panel.ru collected 2026-10-02 02:07:56 UTC 11,289 bytes, 1 lines download raw bytes

1import{h as ee}from"./chunk-AZNKJJOA.js";import{a as oe}from"./chunk-HVKJ5GSJ.js";import"./chunk-T7UJ3ZD2.js";import{A as J,D as K,L as U,N as X,P as ie,a as $,b as z,e as G,i as Q,l as Z,n as c,p as W,q as Y,x as H}from"./chunk-WRA4FD3B.js";import"./chunk-4GMZBVGA.js";import{b as re}from"./chunk-D26SGMSW.js";import{a as T}from"./chunk-HUOZTPKW.js";import"./chunk-MWCWNYZC.js";import"./chunk-S6S4XSAE.js";import{c as te}from"./chunk-Z74FJPFR.js";import{d as D,e as V}from"./chunk-INNSHJOD.js";import{a as j}from"./chunk-BBYWTA5D.js";import{gb as q,h as B,hb as L,jb as E,mb as N,r as A,vb as h}from"./chunk-F2DOYJOY.js";import{Bb as k,Dc as R,Ec as O,Fa as v,Fc as P,Ga as w,Jb as I,Jc as u,Qb as b,Yb as m,ic as n,jc as o,kc as f,na as d,oc as M,sa as l,ta as F,uc as x,wb as s,xb as _}from"./chunk-PXR2MR6T.js";import"./chunk-TSRGIXR5.js";var ne=(()=>{class e{constructor(r){this._formBuilder=r,this.confirmPasswordValidator=t=>{if(!t.parent||!t)return null;let i=t.parent.get("password"),a=t.parent.get("passwordConfirm");return!i||!a||a.value===""||i.value===a.value?null:{passwordsNotMatching:!0}}}getForm(){return this._formBuilder.group({name:["",c.required],email:["",[c.required,c.email,c.pattern("^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}$")]],password:["",[c.required,c.minLength(h.amountSymbolsInPassword)]],passwordConfirm:["",[c.required,c.minLength(h.amountSymbolsInPassword),this.confirmPasswordValidator]]})}static{this.\u0275fac=function(t){return new(t||e)(l(U))}}static{this.\u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var ue=(()=>{class e{constructor(){this.httpService=F(te)}getRegisterResponse(r){return this.httpService.postRequest("/registration",r,!1,"\u0412\u044B \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u043B\u0438\u0441\u044C, \u043D\u0430 \u0412\u0430\u0448 \u0435\u043C\u0430\u0439\u043B \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043E \u043F\u0438\u0441\u044C\u043C\u043E \u0441 \u0441\u0441\u044B\u043B\u043A\u043E\u0439 \u0434\u043B\u044F \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438")}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var ae=(()=>{class e{constructor(r,t,i,a,p,C){this.fuseConfigService=r,this.registerForm=t,this.registerApi=i,this.authService=a,this.router=p,this.loginApi=C,this.fuseConfigService.config={layout:{navbar:{hidden:!0},toolbar:{hidden:!0},footer:{hidden:!0},sidepanel:{hidden:!0}}}}requestRegister(r,t){let i=r.getRawValue();delete i.passwordConfirm,this.registerResponse$=this.registerApi.getRegisterResponse(i).subscribe(a=>{t.resetForm()})}requestSocialLogin(r){this.authService.clearTokens(),this.loginSocialResponse$=this.loginApi.getSocialLoginResponse(r).subscribe(t=>{this.isSuccess(t)})}getForm(){let r=this.registerForm.getForm();return this.listenChange$=r.get("password").valueChanges.subscribe(()=>{r.get("passwordConfirm").updateValueAndValidity()}),r}isSuccess(r){this.authService.setJwtToken(r.token),this.authService.setRefreshToken(r.refresh_token),this.router.navigate(["/apps/groups"])}static{this.\u0275fac=function(t){return new(t||e)(l(ee),l(ne),l(ue),l(T),l(D),l(oe))}}static{this.\u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var de=["formDirective"];function fe(e,g){e&1&&(n(0,"mat-error"),u(1," Email \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u043F\u043E\u043B\u0435 "),o())}function ge(e,g){e&1&&(n(0,"mat-error"),u(1," \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430 \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u044B\u0439 \u0435\u043C\u0435\u0439\u043B "),o())}function he(e,g){e&1&&(n(0,"mat-error"),u(1," \u041F\u0430\u0440\u043E\u043B\u044C \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u043F\u043E\u043B\u0435 "),o())}function be(e,g){e&1&&(n(0,"mat-error"),u(1," \u041D\u0435 \u043C\u0435\u043D\u0435\u0435 6 \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432 "),o())}function Ce(e,g){e&1&&(n(0,"mat-error"),u(1," \u041F\u0430\u0440\u043E\u043B\u044C \u043E\u0431\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u043F\u043E\u043B\u0435 "),o())}function ve(e,g){e&1&&(n(0,"mat-error"),u(1," \u041F\u0430\u0440\u043E\u043B\u0438 \u043D\u0435 \u0441\u043E\u0432\u043F\u0430\u0434\u0430\u044E\u0442 "),o())}var we=q("animate",[N("void => *",[E({opacity:0,transform:"translateY(100px)"}),L("300ms ease-out",E({opacity:1,transform:"translateY(0)"}))])]),Ne=(()=>{class e{constructor(r,t){this.registerService=r,this._renderer=t}ngOnInit(){this.registerForm=this.registerService.getForm(),this.clientIdVk=h.clientIdVk,this.oauthCallbackListener=this._renderer.listen("window","OAuthCallback",r=>{if(r.detail.indexOf("state=refresh")===-1){let t=r.detail,i=t.split("&")[0].split("=")[1],a=t.split("&")[2].split("=")[1],p=t&&t.split("&")[3]?t.split("&")[3].split("=")[1]:void 0;this.registerService.requestSocialLogin({access_token:i,user_id:a,email:p!==void 0?p:void 0})}})}onSubmit(){this.registerService.requestRegister(this.registerForm,this.myForm)}ngOnDestroy(){this.oauthCallbackListener&&this.oauthCallbackListener()}signInWithVk(){let i=screen.width/2-430,p=`menubar=no,location=no,resizable=no,scrollbars=no,status=no, width=860, height=500, top=${screen.height/2-500/2}, left=${i}`,C="auth",S=window.location.href.split("/"),se=S[0]+"//"+S[2];
1window.open(`https://oauth.vk.com/authorize?client_id=${this.clientIdVk}&display=page&scope=groups,stats,wall,offline,email,photos,video&redirect_uri=${se}/oauth-callback.html&response_type=token&v=5.103`,C,p)}static{this.\u0275fac=function(t){return new(t||e)(_(ae),_(k))}}static{this.\u0275cmp=I({type:e,selectors:[["register"]],viewQuery:function(t,i){if(t&1&&R(de,5),t&2){let a;O(a=P())&&(i.myForm=a.first)}},decls:54,vars:10,consts:[["formDirective","ngForm"],[1,"flex","w-full","flex-col","items-center","justify-center","overflow-hidden","bg-signin","bg-cover"],[1,"flex","w-96","flex-col","items-center","justify-center","bg-white","p-8","dark:bg-bg-form"],[1,"vk-form","flex","w-full","flex-col","items-center"],[1,"mx-auto","my-8","h-32","w-24"],["alt","logo","height","123","ngSrc","/images/logo/vk-color.svg","priority","100","width","99"],[1,"mb-8","mt-4","text-center","text-2xl"],["novalidate","",1,"w-full",3,"submit","formGroup"],[1,"flex","w-full","flex-col","gap-4"],["appearance","outline"],["formControlName","name","matInput",""],["matSuffix",""],["formControlName","email","matInput",""],["matSuffix","",1,"secondary-text"],[4,"ngIf"],["formControlName","password","matInput","","type","password"],["formControlName","passwordConfirm","matInput","","type","password"],["aria-label","\u0421\u041E\u0417\u0414\u0410\u0422\u042C \u0410\u041A\u041A\u0410\u0423\u041D\u0422","color","accent","mat-raised-button","","type","submit",1,"submit-button","dark:bg-[#353f53]","bg-[#039be5]","dark:disabled:bg-[#4e525e]","disabled:bg-[#e0e0e0]",3,"disabled"],[1,"register","flex","flex-col","items-center","justify-center","font-bold"],[1,"text"],[1,"text-[#039be5]","dark:text-white",3,"routerLink"],[1,"separator"],["mat-raised-button","",1,"vk",3,"click"]],template:function(t,i){if(t&1){let a=M();n(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4),f(4,"img",5),o(),n(5,"div",6),u(6,"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u0430\u043A\u043A\u0430\u0443\u043D\u0442"),o(),n(7,"form",7,0),x("submit",function(){return v(a),w(i.onSubmit())}),n(9,"div",8)(10,"mat-form-field",9)(11,"mat-label"),u(12,"\u0418\u043C\u044F"),o(),f(13,"input",10),n(14,"mat-icon",11),u(15,"account_circle"),o(),n(16,"mat-error"),u(17," \u0418\u043C\u044F \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u043F\u043E\u043B\u0435 "),o()(),n(18,"mat-form-field",9)(19,"mat-label"),u(20,"Email"),o(),f(21,"input",12),n(22,"mat-icon",13),u(23,"mail "),o(),b(24,fe,2,0,"mat-error",14)(25,ge,2,0,"mat-error",14),o(),n(26,"mat-form-field",9)(27,"mat-label"),u(28,"\u041F\u0430\u0440\u043E\u043B\u044C"),o(),f(29,"input",15),n(30,"mat-icon",11),u(31,"vpn_key"),o(),b(32,he,2,0,"mat-error",14)(33,be,2,0,"mat-error",14),o(),n(34,"mat-form-field",9)(35,"mat-label"),u(36,"\u041F\u0430\u0440\u043E\u043B\u044C \u0435\u0449\u0435 \u0440\u0430\u0437"),o(),f(37,"input",16),n(38,"mat-icon",13),u(39,"vpn_key "),o(),b(40,Ce,2,0,"mat-error",14)(41,ve,2,0,"mat-error",14),o()(),n(42,"button",17),u(43," \u0421\u041E\u0417\u0414\u0410\u0422\u042C \u0410\u041A\u041A\u0410\u0423\u041D\u0422 "),o()(),n(44,"div",18)(45,"span",19),u(46,"\u0423\u0436\u0435 \u0435\u0441\u0442\u044C \u0430\u043A\u043A\u0430\u0443\u043D\u0442?"),o(),n(47,"a",20),u(48,"\u0412\u043E\u0439\u0442\u0438"),o()(),n(49,"div",21)(50,"span",19),u(51,"\u0438\u043B\u0438"),o()(),n(52,"button",22),x("click",function(){return v(a),w(i.signInWithVk())}),u(53,"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F \u0447\u0435\u0440\u0435\u0437 VK"),o()()()()}t&2&&(s(2),m("@animate",void 0),s(5),m("formGroup",i.registerForm),s(17),m("ngIf",i.registerForm.get("email").hasError("required")),s(),m("ngIf",i.registerForm.get("email").hasError("pattern")),s(7),m("ngIf",i.registerForm.get("password").hasError("required")),s(),m("ngIf",!i.registerForm.get("password").hasError("required")&&i.registerForm.get("password").hasError("minlength")),s(7),m("ngIf",i.registerForm.get("passwordConfirm").hasError("required")),s(),m("ngIf",!i.registerForm.get("passwordConfirm").hasError("required")&&i.registerForm.get("passwordConfirm").hasError("passwordsNotMatching")),s(),m("disabled",i.registerForm.invali
1d),s(5),m("routerLink","/pages/auth/login"))},dependencies:[X,H,Z,W,Y,J,K,Q,ie,re,$,z,V,B,j,A,G],styles:['.separator[_ngcontent-%COMP%]{position:relative;width:100%;overflow:hidden;padding-top:1rem;padding-bottom:1rem;text-align:center;font-size:15px;font-weight:600;--tw-text-opacity: 1;color:rgb(224 224 224 / var(--tw-text-opacity, 1))}.separator[_ngcontent-%COMP%]:where(.dark,.dark *){color:#ffffff1f}.separator[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{position:relative;display:inline-flex;padding-left:.5rem;padding-right:.5rem}.separator[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]:before, .separator[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]:after{content:"";display:block;width:30px;position:absolute;top:10px;border-top:1px solid}.separator[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]:before{right:100%}.separator[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]:after{left:100%}.submit-button[_ngcontent-%COMP%]{width:220px;margin:16px auto;display:block;color:#fff!important}button[_ngcontent-%COMP%]:disabled{color:#83868f!important}button[_ngcontent-%COMP%]{border-radius:4px!important}button.google[_ngcontent-%COMP%], button.facebook[_ngcontent-%COMP%], button.vk[_ngcontent-%COMP%]{width:192px;text-transform:none;color:#fff;font-size:13px}button.google[_ngcontent-%COMP%]{background-color:#d73d32;margin-bottom:8px}button.vk[_ngcontent-%COMP%]{background-color:#45668e;margin-bottom:8px}button.facebook[_ngcontent-%COMP%]{background-color:#3f5c9a}'],data:{animation:[we]},changeDetection:0})}}return e})();export{Ne as RegisterComponent};

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.