PageSourceSearch

https://www.nemzetisport.hu/chunk-47K4AMK5.js

js nemzetisport.hu collected 2026-10-02 04:04:09 UTC 15,664 bytes, 1 lines download raw bytes

1import{A as Z,G as Q,H as X,Q as Y,ba as $,j as se,k as le,l as H,wa as ae,xa as ee}from"./chunk-OHMUXT6H.js";import{$c as V,Aa as _,Fa as c,Ga as i,Ha as r,Hb as D,I as M,Ia as d,Ra as v,Sc as z,T as p,Ta as h,U as m,Va as a,_c as oe,a as S,b as k,bd as E,cd as N,dd as G,ef as q,fe as ie,gb as l,gd as I,ge as J,ha as y,he as re,ib as x,ie as ne,ka as s,kd as j,ke as te,l as O,ld as R,pa as u,qa as T,qd as U,sd as K,ub as P,w as F,wb as L,wc as B,xc as A,xe as W,ya as C}from"./chunk-CLF7DWCK.js";var we=()=>({label:"Profilom",url:"/my-nso"}),ge=()=>({label:"Profil be\xE1ll\xEDt\xE1sok m\xF3dos\xEDt\xE1sa"}),Ce=(n,w)=>[n,w];function _e(n,w){if(n&1&&(i(0,"div",27),l(1),r()),n&2){let e=a(2);s(),x(" ",e.error," ")}}function xe(n,w){if(n&1){let e=v();i(0,"form",6),h("ngSubmit",function(){p(e);let t=a();return m(t.editCurrentUser())}),i(1,"h1"),l(2,"Profil"),r(),i(3,"div",7)(4,"kesma-form-control")(5,"label",8),l(6,"E-mail c\xEDm"),r(),d(7,"input",9),r()(),i(8,"div",7)(9,"kesma-form-control")(10,"label",10),l(11,"Felhaszn\xE1l\xF3n\xE9v"),r(),d(12,"input",11),r(),i(13,"small",12),l(14,"A felhaszn\xE1l\xF3n\xE9vnek legal\xE1bb 6 karakterb\u0151l kell \xE1llnia, \xE9s a k\xF6vetkez\u0151ket tartalmazhatja: kis- \xE9s nagybet\u0171, sz\xE1m, k\xF6t\u0151jel, als\xF3von\xE1s."),r()(),i(15,"div",7)(16,"kesma-form-control")(17,"div",13)(18,"label",14),l(19,"Jelsz\xF3 m\xF3dos\xEDt\xE1sa"),r(),d(20,"input",15),i(21,"img",16),h("click",function(){p(e);let t=a();return m(t.showNewPassword=!t.showNewPassword)})("keydown",function(){p(e);let t=a();return m(t.showNewPassword=!t.showNewPassword)}),r()()(),d(22,"nso-password-strength-meter",17),r(),i(23,"div",7)(24,"kesma-form-control")(25,"div",13),d(26,"input",18),i(27,"img",16),h("click",function(){p(e);let t=a();return m(t.showOldPassword=!t.showOldPassword)})("keydown",function(){p(e);let t=a();return m(t.showOldPassword=!t.showOldPassword)}),r()()(),i(28,"small",12),l(29,"Az adatok v\xE1ltoztat\xE1s\xE1hoz biztons\xE1gi okokb\xF3l meg kell adnia a jelenleg haszn\xE1lt jelszav\xE1t."),r()(),i(30,"div",19)(31,"kesma-form-control",20)(32,"label",21),d(33,"input",22),i(34,"span"),l(35,"Feliratkozom az NSO h\xEDrlev\xE9lre"),r()()()(),i(36,"div",23)(37,"span",24),l(38,"Profil t\xF6rl\xE9se"),r(),i(39,"p",25),l(40,"A profil t\xF6rl\xE9s\xE9vel v\xE9glegesen t\xF6rli a kedvenceket \xE9s a profil adatokat."),r(),i(41,"a",26),l(42,"Profil v\xE9gleges t\xF6rl\xE9se"),r()(),C(43,_e,2,1,"div",27),i(44,"div",28)(45,"nso-simple-button",29),l(46),r()(),i(47,"div",30)(48,"button",31),h("click",function(){p(e);let t=a();return m(t.resetUserForm())}),l(49,"M\xE9gsem"),r()()()}if(n&2){let e=a();c("formGroup",e.formGroup),s(20),c("type",e.showNewPassword?"text":"password"),s(),c("src",e.showNewPassword?"/assets/images/icons/icon-no-eye.svg":"/assets/images/icons/icon-eye.svg",y),s(),c("errorLabels",e.errorLabels)("errorsToWatch",e.errorsToWatch)("passwordInput",e.passwordControl),s(4),c("type",e.showOldPassword?"text":"password"),s(),c("src",e.showOldPassword?"/assets/images/icons/icon-no-eye.svg":"/assets/images/icons/icon-eye.svg",y),s(16),_(e.error?43:-1),s(2),c("disabled",e.isLoading)("isSubmit",!0),s(),x(" ",e.isLoading?"K\xE9rem v\xE1rjon...":"V\xC1LTOZTAT\xC1SOK MENT\xC9SE"," ")}}function ve(n,w){if(n&1){let e=v();i(0,"nso-popup",32),h("resultEvent",function(){p(e);let t=a();return m(t.handleSuccessPopupResult())}),l(1," A m\xF3dos\xEDt\xE1s sikeres. Tov\xE1bbi kellemes olvas\xE1st k\xEDv\xE1nunk! "),r()}n&2&&c("acceptButtonLabel","TOV\xC1BB A F\u0150OLDALRA")("showCancelButton",!1)("title","Sikeres adatm\xF3dos\xEDt\xE1s")}var ce=(()=>{class n{constructor(e,o,t,f,g,b){this.seo=e,this.formBuilder=o,this.secureApiService=t,this.cdr=f,this.router=g,this.authService=b,this.showNewPassword=!1,this.showOldPassword=!1,this.showSuccessPopup=!1,this.isLoading=!1,this.error=null,this.errorsToWatch=le,this.errorLabels=se}get user(){return this.authService.currentUser}ngOnInit(){this.initForm(),this.setMetaData()}initForm(){this.userDataCopy=this.user??null,this.formGroup=this.formBuilder.group({email:[{value:this.user?.email,disabled:!0}],username:[this.user?.username??null,[E.required,ie]],newPassword:[null,[E.minLength(6),re,ne]],oldPassword:[null,[E.required,J]],newsletter:[!!this.user?.newsletter]})}
1editCurrentUser(){Object.values(this.formGroup.controls).forEach(e=>{e.markAsTouched(),e.updateValueAndValidity()}),this.formGroup.valid&&(this.error=null,this.isLoading=!0,this.secureApiService.editCurrentUser(this.formGroup.value).pipe(F(e=>{let o=e.error,t=!1;if(o?.form?.errors?.children)for(let[f,g]of Object.entries(o.form.errors.children))f==="userName"&&g.errors&&(this.formGroup.get("username")?.setErrors({usernameInUse:!0}),t=!0),f==="oldPassword"&&g.errors&&(this.formGroup.get("oldPassword")?.setErrors({invalidOldPassword:!0}),t=!0);return t||(this.error="Ismeretlen hiba!"),this.isLoading=!1,this.cdr.detectChanges(),O(()=>"Error")}),M(()=>this.secureApiService.getCurrentUser())).subscribe(e=>{this.authService.currentUserSubject.next(this.authService.mapBackendUserResponseToUser(e)),this.showSuccessPopup=!0,this.cdr.detectChanges()}))}get passwordControl(){return this.formGroup.get("newPassword")}handleSuccessPopupResult(){this.showSuccessPopup=!1,this.router.navigate(["/"])}resetUserForm(){this.formGroup.patchValue(k(S({},this.userDataCopy),{newPassword:null,oldPassword:null})),this.router.navigate(["/","my-nso"])}setMetaData(){let e=W("profil");e&&this.seo.updateCanonicalUrl(e);let o=Z("Profil"),t=k(S({},H),{title:o,ogTitle:o,robots:"noindex, nofollow"});this.seo.setMetaData(t)}static{this.\u0275fac=function(o){return new(o||n)(u(z),u(U),u(Q),u(D),u(B),u(X))}}static{this.\u0275cmp=T({type:n,selectors:[["app-profile"]],decls:6,vars:9,consts:[[1,"profile"],[1,"breadcrumb-wrapper"],[3,"isShowLogout","items"],[1,"wrapper"],[1,"nso-form",3,"formGroup"],[3,"acceptButtonLabel","showCancelButton","title"],[1,"nso-form",3,"ngSubmit","formGroup"],[1,"nso-form-row"],["for","email",1,"nso-form-label"],["formControlName","email","id","email","placeholder","E-mail c\xEDm","type","text",1,"nso-form-input"],["for","username",1,"nso-form-label"],["formControlName","username","id","username","placeholder","Felhaszn\xE1l\xF3n\xE9v ","type","text",1,"nso-form-input"],[1,"nso-form-small"],[1,"nso-form-input-password"],["for","newPassword",1,"nso-form-label"],["formControlName","newPassword","id","newPassword","placeholder","\xDAj jelsz\xF3",1,"nso-form-input",3,"type"],["alt","Jelsz\xF3 megtekint\xE9se",1,"nso-form-input-password-img",3,"click","keydown","src"],[3,"errorLabels","errorsToWatch","passwordInput"],["formControlName","oldPassword","id","oldPassword","placeholder","Jelenlegi jelsz\xF3",1,"nso-form-input",3,"type"],[1,"profile-checkboxes"],[1,"checkbox"],["for","newsletter",1,"nso-form-checkbox"],["formControlName","newsletter","id","newsletter","type","checkbox"],[1,"profile-delete-container"],[1,"profile-delete-container-title"],[1,"profile-delete-container-description"],["routerLink","/profil/torles",1,"profile-delete-container-link"],[1,"nso-form-general-error"],[1,"profile-action"],["round","round",1,"w-100",3,"disabled","isSubmit"],[1,"profile-cancel"],[1,"profile-cancel-link",3,"click"],[3,"resultEvent","acceptButtonLabel","showCancelButton","title"]],template:function(o,t){o&1&&(i(0,"section",0)(1,"div",1),d(2,"nso-breadcrumb",2),r(),i(3,"div",3),C(4,xe,50,12,"form",4),r()(),C(5,ve,2,3,"nso-popup",5)),o&2&&(s(2),c("isShowLogout",!0)("items",L(6,Ce,P(4,we),P(5,ge))),s(2),_(t.formGroup?4:-1),s(),_(t.showSuccessPopup?5:-1))},dependencies:[$,K,I,V,oe,N,G,R,j,q,ae,A,Y,ee],styles:[".profile[_ngcontent-%COMP%]{padding:0 0 100px}@media(max-width:767.98px){.profile[_ngcontent-%COMP%]{padding:15px 15px 50px}}.profile[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%]{padding:30px 0;background-color:var(--kui-white);margin-bottom:100px}@media(max-width:767.98px){.profile[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%]{margin-bottom:15px;border-radius:10px}}.profile[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%]   nso-breadcrumb[_ngcontent-%COMP%]{margin:0 auto;width:1284px;max-width:calc(100% - 30px)}.profile[_ngcontent-%COMP%]   .wrapper[_ngcontent-%COMP%]{width:100%;max-width:630px;border-radius:10px;background-color:var(--kui-white);padding:70px 80px 60px}@media(max-width:767.98px){.profile[_ngcontent-%COMP%]   .wrapper[_ngcontent-%COMP%]{padding:50px 25px 30px}}.profile[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-weight:700;font-size:38px;line-height:42px;font-family:var(--kui-font-condensed);text-transform:uppercase;margin-bottom:60px;text-align:center}.profile-checkboxes[_ngcontent-%COMP%]{margin:40px 0}.profile-cancel[_ngcontent-%COMP%]{font-size:16px;margin-top:20px;text-align:center}.profile-cancel-link[_ngcontent-%COMP%]{font-family:var(--kui-font-primary);color:var(--kui-gray-550);text-decoration:underline;font-size:16px;font-weight:400;line-height:160%}.profile-cancel-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.profile[_ngcontent-%COMP%]   .profile-delete-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:15px;align-items:flex-start;font-family:var(--kui-font-primary);margin-bottom:40px}.profile[_ngcontent-%COMP%]   .profile-delete-container-description[_ngcontent-%COMP%]{color:var(--kui-gray-275)}.profile[_ngcontent-%COMP%]   .profile-delete-container-link[_ngcontent-%COMP%]{color:var(--kui-red-400)}.profile-gray-text[_ngcontent-%COMP%]{font-size:16px;line-height:26px;color:var(--kui-gray-350);margin-bottom:35px;text-align:center}.profile[_ngcontent-%COMP%]   .profile-delete-container-title[_ngcontent-%COMP%], .profile[_ngcontent-%COMP%]   .profile-delete-container-description[_ngcontent-%COMP%], .profile[_ngcontent-%COMP%]   .profile-delete-container-link[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:160%}"],changeDetection:0})}}return n})();var Pe=()=>({label:"Profilom",url:"/my-nso"}),Ee=()=>({label:"Profil t\xF6rl\xE9se"}),be=(n,w)=>[n,w];function Se(n,w){if(n&1&&(i(0,"div",14),l(1),r()),n&2){let e=a(2);s(),x(" ",e.error," ")}}function ke(n,w){if(n&1){let e=v();i(0,"form",6),h("ngSubmit",function(){p(e);let t=a();return m(t.submit())}),d(1,"img",7),i(2,"h1"),l(3,"Profil t\xF6rl\xE9se"),r(),i(4,"div",8),l(5,"A profil t\xF6rl\xE9s\xE9vel v\xE9glegesen t\xF6rli a kedvenceket \xE9s a profil adatokat."),r(),i(6,"div",9)(7,"kesma-form-control")(8,"div",10),d(9,"input",11),i(10,"img",12),h("click",function(){p(e);let t=a();return m(t.showOldPassword=!t.showOldPassword)})("keydown",function(){p(e);let t=a();return m(t.showOldPassword=!t.showOldPassword)}),r()()(),i(11,"small",13),l(12,"Az adatok v\xE1ltoztat\xE1s\xE1hoz biztons\xE1gi okokb\xF3l meg kell adnia a jelenleg haszn\xE1lt jelszav\xE1t."),r()(),C(13,Se,2,1,"div",14),i(14,"div",15)(15,"nso-simple-button",16),l(16),r()(),i(17,"div",17)(18,"a",18),l(19,"M\xE9gsem"),r()()()}if(n&2){let e=a();c("formGroup",e.formGroup),s(9),c("type",e.showOldPassword?"text":"password"),s(),c("src",e.showOldPassword?"/assets/images/icons/icon-no-eye.svg":"/assets/images/icons/icon-eye.svg",y),s(3),_(e.error?13:-1),s(2),c("disabled",e.isLoading)("isSubmit",!0),s(),x(" ",e.isLoading?"K\xE9rem v\xE1rjon...":"PROFIL V\xC9GLEGES T\xD6RL\xC9SE"," ")}}function ye(n,w){if(n&1){let e=v();i(0,"nso-popup",19),h("resultEvent",function(t){p(e);let f=a();return m(f.onConfirmUserDelete(t))}),l(1),r()}if(n&2){let e=a();c("acceptButtonLabel",e.acceptButtonLabel)("cancelButtonLabel",e.cancelButtonLabel)("showAcceptButton",e.showAcceptButton)("showCancelButton",e.showCancelButton)("title",e.popupTitle),s(),x(" ",e.popupText," ")}}var ue=(()=>{class n{constructor(e,o,t,f,g,b){this.seo=e,this.formBuilder=o,this.secureApiService=t,this.cdr=f,this.router=g,this.authService=b,this.showPopup=!1,this.acceptButtonLabel="PROFIL T\xD6RL\xC9SE",this.cancelButtonLabel="M\xC9GSEM",this.popupTitle="Profil t\xF6rl\xE9se",this.popupText="Biztos abban, hogy t\xF6rli NSO profilj\xE1t \xE9s az \xF6sszes szem\xE9lyes adat\xE1t?",this.showAcceptButton=!0,this.showCancelButton=!0,this.showOldPassword=!1,this.isLoading=!1,this.error=null}ngOnInit(){this.initForm(),this.setMetaData()}initForm(){this.formGroup=this.formBuilder.group({oldPassword:[null,[E.required,J]]})}submit(){this.formGroup&&te(this.formGroup),this.formGroup.valid&&(this.showPopup=!0)}onConfirmUserDelete(e){this.acceptButtonLabel="PROFIL T\xD6RL\xC9SE",this.cancelButtonLabel="M\xC9GSEM",this.popupTitle="Profil t\xF6rl\xE9se",this.popupText="Biztos abban, hogy t\xF6rli NSO profilj\xE1t \xE9s az \xF6sszes szem\xE9lyes adat\xE1t?",this.showAcceptButton=!0,this.showCancelButton=!0,this.showPopup=!1,this.formGroup&&te(this.formGroup),!(!this.formGroup.valid||!e)&&(this.error=null,this.isLoading=!0,this.secureApiService.deleteAccount(this.formGroup.value.oldPassword).pipe(F(o=>
1{let t=o.error,f=!1;if(t?.form?.errors?.children)for(let[g,b]of Object.entries(t.form.errors.children))g==="password"&&b.errors&&(this.formGroup.get("oldPassword")?.setErrors({invalidOldPassword:!0}),f=!0);return f||(this.error="Ismeretlen hiba!"),this.isLoading=!1,this.cdr.detectChanges(),O(()=>"Error")}),M(()=>this.authService.invalidate())).subscribe(()=>{this.showSuccesDeletePopup()}))}setMetaData(){let e=W("profil/torles");e&&this.seo.updateCanonicalUrl(e);let o=Z("Profil t\xF6rl\xE9se"),t=k(S({},H),{title:o,ogTitle:o,robots:"noindex, nofollow"});this.seo.setMetaData(t)}showSuccesDeletePopup(){this.popupTitle="SIKERESEN T\xD6R\xD6LTE A PROFILJ\xC1T!",this.popupText="",this.showAcceptButton=!1,this.showCancelButton=!1,this.showPopup=!0,this.cdr.markForCheck(),setTimeout(()=>{this.showPopup=!1,this.router.navigate(["/"])},3e3)}static{this.\u0275fac=function(o){return new(o||n)(u(z),u(U),u(Q),u(D),u(B),u(X))}}static{this.\u0275cmp=T({type:n,selectors:[["app-profile-account-delete"]],decls:6,vars:9,consts:[[1,"profile"],[1,"breadcrumb-wrapper"],[3,"isShowLogout","items"],[1,"wrapper"],[1,"profile-settings-form",3,"formGroup"],[3,"acceptButtonLabel","cancelButtonLabel","showAcceptButton","showCancelButton","title"],[1,"profile-settings-form",3,"ngSubmit","formGroup"],["alt","Profil t\xF6rl\xE9se","src","/assets/images/icons/icon-bin.svg",1,"delete-icon"],[1,"profile-gray-text"],[1,"nso-form-row"],[1,"nso-form-input-password"],["formControlName","oldPassword","id","oldPassword","placeholder","Jelenlegi jelsz\xF3",1,"nso-form-input",3,"type"],["alt","Jelsz\xF3 megtekint\xE9se",1,"nso-form-input-password-img",3,"click","keydown","src"],[1,"nso-form-small"],[1,"nso-form-general-error"],[1,"profile-action"],["round","round",1,"w-100",3,"disabled","isSubmit"],[1,"profile-delete"],["routerLink","/profil",1,"profile-delete-link"],[3,"resultEvent","acceptButtonLabel","cancelButtonLabel","showAcceptButton","showCancelButton","title"]],template:function(o,t){o&1&&(i(0,"section",0)(1,"div",1),d(2,"nso-breadcrumb",2),r(),i(3,"div",3),C(4,ke,20,7,"form",4),r()(),C(5,ye,2,6,"nso-popup",5)),o&2&&(s(2),c("isShowLogout",!0)("items",L(6,be,P(4,Pe),P(5,Ee))),s(2),_(t.formGroup?4:-1),s(),_(t.showPopup?5:-1))},dependencies:[$,K,I,V,N,G,R,j,q,Y,A,ee],styles:[".profile[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{margin-bottom:30px}.profile-delete[_ngcontent-%COMP%]{margin-top:20px;text-align:center}.profile-delete-link[_ngcontent-%COMP%]{font-family:var(--kui-font-primary);color:var(--kui-gray-550);text-decoration:underline;font-size:16px;font-weight:400;line-height:160%}.delete-icon[_ngcontent-%COMP%]{display:block;margin:0 auto 35px}"],changeDetection:0})}}return n})();var qe=[{path:"",component:ce},{path:"torles",component:ue}];export{qe as profileRoutes};

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.