1"use strict";(self.webpackChunkweb_frontend=self.webpackChunkweb_frontend||[]).push([[562],{73562:(e,t,n)=>{n.r(t),n.d(t,{ChangePersonalDataContainer:()=>P});var i=n(44781),a=n(47313),o=n(85554);i.ZP.div.withConfig({componentId:"sc-19neaa1-0"})(["display:flex;flex-direction:column;width:100%;color:white;padding:33px 0 0 0;animation:initProfileTab 300ms forwards ease-in;@keyframes initProfileTab{from{opacity:0;}to{opacity:1;}}"]),i.ZP.span.withConfig({componentId:"sc-19neaa1-1"})(["font-weight:400;font-size:10px;line-height:12.5px;"]),i.ZP.span.withConfig({componentId:"sc-19neaa1-2"})(["font-weight:300;font-size:16px;line-height:20px;margin-top:4px;"]),i.ZP.span.withConfig({componentId:"sc-19neaa1-3"})(["cursor:pointer;font-weight:500;line-height:20px;font-size:16px;color:",";transition:color 300ms;"],(e=>e.isOpen?"white":e.theme.tv2Red));const r=i.ZP.button.withConfig({componentId:"sc-19neaa1-4"})(["outline:none;border:0;background:transparent;color:",";cursor:pointer;font-weight:500;font-size:16px;display:flex;justify-content:space-between;align-items:center;width:120px;margin:30px auto;"],(e=>e.theme.primaryFillColor)),s=(i.ZP.span.withConfig({componentId:"sc-19neaa1-5"})(["color:white;font-weight:500;font-size:14px;margin-bottom:10px;"]),i.ZP.span.withConfig({componentId:"sc-19neaa1-6"})(["color:white;font-weight:700;font-size:24px;line-height:32px;text-align:center;margin-bottom:30px;"]));i.ZP.div.withConfig({componentId:"sc-19neaa1-7"})(["width:100%;background-color:#333552;padding:16px;border-radius:8px;display:flex;align-items:flex-start;flex-direction:column;margin-bottom:8px;"]),i.ZP.span.withConfig({componentId:"sc-19neaa1-8"})(["color:#e3c455;font-size:16px;font-weight:600;line-height:24px;"]),i.ZP.div.withConfig({componentId:"sc-19neaa1-9"})(["visibility:",";opacity:",";transition:all 200ms;color:red;font-weight:500;font-size:14px;margin-top:5px;height:21px;"],(e=>e.isVisible?"visible":"hidden"),(e=>e.isVisible?1:0));var l=n(6857),d=n(96289),c=n(93971),g=n(7985),m=n(97267),p=n(58467),h=n(38008),x=n(94644),f=n(79854),u=n(84068),w=n(87993),b=n(14910),y=n(94684),v=n(35381),C=n(99643),k=n(46181),E=n(38603),Z=n(45123),S=n(23271),j=n(23848),z=n(81774),I=n(46417);const P=e=>{(0,v.v)({key:f.Zy,reducer:f.I6}),(0,v.h)({key:f.Zy,saga:C.i_});const t=(0,a.useContext)(g.Z),n=(0,o.I0)(),i=(0,p.s0)(),w=(0,o.v9)(x.dy),b=(0,o.v9)(k.h1),P=(0,o.v9)(k.TK),K=(0,a.useRef)(),R=(0,a.useRef)(),T=(0,a.useRef)(),[J,O]=(0,a.useState)({email:w.email,firstName:w.firstName,city:w.city}),[V,H]=(0,a.useState)(),[Y,_]=(0,a.useState)(),[B,W]=(0,a.useState)(),[$,q]=(0,a.useState)(),G=e=>{O((t=>({...t,[e.target.name]:e.target.value})))},Q=()=>J.city&&m.a.includes(J.city)?"":"K\xe9rj\xfck, add meg, hol \xe9lsz \xe9letvitelszer\u0171en!",X=()=>{n(f.Nw.resetAllStates())};(0,a.useEffect)((()=>{b&&(n(f.Nw.resetAllStates()),i("/profil"))}),[b]);const ee=()=>!(Q()||ie()||te()||ne()||!V);(0,a.useEffect)((()=>{w&&(H(w.gender),_((0,y.x)(w.birthDate,"y")),W((0,y.x)(w.birthDate,"m")),q((0,y.x)(w.birthDate,"d")))}),[w]);const te=()=>J.email?J.email.length<80&&!RegExp(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/).exec(J.email)?"E-mail c\xedm hib\xe1s!":"":"E-mail c\xedm megad\xe1sa k\xf6telez\u0151!",ne=()=>J.firstName?"":"K\xe9rj\xfck, add meg, hogyan sz\xf3l\xedthatunk!",ie=()=>{if(Y&&B&&$){const e=new Date("".concat(Y,"-").concat(B,"-").concat($)),t=(new Date).getFullYear()-e.getFullYear();return w.isZero&&t<18?"18 \xe9ves kor alatt nem enged\xe9lyezett a regisztr\xe1ci\xf3!":t<16?"16 \xe9ves kor alatt nem enged\xe9lyezett a regisztr\xe1ci\xf3!":""}return"K\xe9rj\xfck, add meg, mikor sz\xfclett\xe9l!"};return(0,I.jsxs)(L,{children:[P&&(0,I.jsx)(Z.Z,{children:(0,I.jsxs)(N,{children:[(0,I.jsx)(z.ZA,{onClick:X,children:(0,I.jsx)(E.a,{})}),(0,I.jsx)(j.Z,{children:"Hiba"}),(0,I.jsx)(S.Z,{children:"emailAlreadyInUse"===P?"Ez az e-mail c\xedm m\xe1r haszn\xe1latban van!":"Adatok ment\xe9se sikertelen! K\xe9rj\xfck, pr\xf3b\xe1ld \xfajra k\xe9s\u0151bb!"}),(0,I.jsx)(u.Z,{onClick:X,margin:"50px auto 50px",coloredBackgroun
1d:!0,children:"OK"})]})}),(0,I.jsx)(M,{children:(0,I.jsxs)(U,{onSubmit:e=>{if(e.preventDefault(),!ee())return console.error("Form is not valid"),!1;const t={...w,firstName:J.firstName,email:J.email,city:J.city,gender:V,birthDate:new Date("".concat(Y,"-").concat(B,"-").concat($)).toISOString()};JSON.stringify(w)!==JSON.stringify(t)?n(f.Nw.saveUser(t)):console.error("User data did not change, not saving")},children:[(0,I.jsx)(s,{children:"Szem\xe9lyes adatok m\xf3dos\xedt\xe1sa"}),(0,I.jsxs)(I.Fragment,{children:["EMAIL"===w.socialProvider&&(0,I.jsx)(l.Z,{placeholder:"E-mail",id:"email",name:"email",type:"email",ariaInvalid:"false",label:"E-mail",value:J.email,errorMessage:te(),isError:!!te(),onChange:G,ref:K}),(0,I.jsx)(l.Z,{placeholder:"Keresztn\xe9v",id:"firstName",name:"firstName",type:"text",ariaInvalid:"false",label:"Keresztn\xe9v",errorMessage:ne(),isError:!!ne(),value:J.firstName,onChange:G,ref:R}),(0,I.jsx)(l.Z,{placeholder:"",label:"Telep\xfcl\xe9s",type:"text",id:"city",name:"city",errorMessage:Q(),isError:!!Q(),ariaInvalid:Q()?"true":"false",onChange:G,value:J.city,ref:T,autoCompleteOptions:m.a}),(0,I.jsx)(c.Z,{defaultValue:w.gender,onChange:e=>H(e),radios:[{labelText:"F\xe9rfi",value:"MALE",name:"gender",id:"MALE"},{labelText:"N\u0151",value:"FEMALE",name:"gender",id:"FEMALE"}]}),(0,I.jsxs)(D,{children:[(0,I.jsx)(d.Z,{selectableItems:(0,h.pr)(),onChange:e=>{_(e),B&&W(""),$&&q("")},selectedValue:Y}),(0,I.jsx)(d.Z,{selectableItems:(0,h.Pg)(Y?+Y:(new Date).getFullYear()),onChange:e=>{W(e),$&&q("")},selectedValue:B,disabled:!Y}),(0,I.jsx)(d.Z,{selectableItems:(0,h.xN)(B?+B-1:1,Y?+Y:2e3),onChange:e=>q(e),selectedValue:$,disabled:!B}),ie()&&(0,I.jsx)(A,{children:ie()})]})]}),(0,I.jsx)(F,{children:(0,I.jsx)(u.Z,{margin:"auto",coloredBackground:!0,dynamicWidth:!0,smallFont:!!t.isMobileView||void 0,disabled:!ee(),children:"Szem\xe9lyes adatok m\xf3dos\xedt\xe1sa"})}),(0,I.jsx)(r,{onClick:()=>i(-1),children:"M\xe9gse"})]})})]})},N=i.ZP.div.withConfig({componentId:"sc-gly29b-0"})(["width:966px;height:325px;background:#1a1c1f;box-shadow:0px 24px 40px rgba(0,0,0,0.5);border-radius:10px;display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;"]),F=i.ZP.div.withConfig({componentId:"sc-gly29b-1"})(["margin-top:35px;button{width:90%;}"]),M=i.ZP.div.withConfig({componentId:"sc-gly29b-2"})(["margin:30px auto 0;width:480px;color:white;@media screen and (max-width:","px){margin:1px auto 0;width:280px;}"],w.J.small-1),L=i.ZP.div.withConfig({componentId:"sc-gly29b-3"})(["padding-top:","px;width:100%;min-height:75.7vh;background:",",url(",");background-repeat:no-repeat;background-position:left;background-attachment:fixed;@media screen and (max-width:","px){padding-top:calc(","px + 30px);padding-bottom:66px;-webkit-overflow-scrolling:touch;}@media screen and (min-width:","px) and (max-width:","px){padding-top:calc(","px + 30px);}"],(e=>e.theme.navbarHeightDesktopChannelsClosed),(e=>e.theme.middleFadePrimaryBackground),b,w.J.small-1,(e=>e.theme.navbarHeightMobile),w.J.small,w.J.medium-1,(e=>e.theme.navbarHeightTabletChannelsClosed)),D=i.ZP.div.withConfig({componentId:"sc-gly29b-4"})(["display:flex;flex-wrap:wrap;margin-top:23px;@media screen and (max-width:","px){margin-bottom:40px;}"],w.J.small-1),U=i.ZP.form.withConfig({componentId:"sc-gly29b-5"})(["display:flex;flex-direction:column;width:100%;text-align:left;-webkit-overflow-scrolling:touch;"]),A=i.ZP.div.withConfig({componentId:"sc-gly29b-6"})(["transition:all 200ms;flex-basis:100%;color:red;font-weight:500;font-size:14px;margin-top:5px;height:21px;"])},99643:(e,t,n)=>{n.d(t,{i_:()=>d});var i=n(79854),a=n(15837),o=n(64276),r=n(28784);function*s(e){try{var t;const n=yield(0,o.RE)(r.E.update,e.payload);!0===(null===n||void 0===n||null===(t=n.data)||void 0===t?void 0:t.success)?(yield(0,o.gz)(i.Nw.saveUserSuccess()),yield(0,o.gz)(a.Nw.setUserData(n.data))):yield(0,o.gz)(i.Nw.saveUserForbidden(n.data.message))}catch(n){console.log(n),yield(0,o.gz)(i.Nw.saveUserForbidden(n.message))}}function*l(e){try{(yield(0,o.RE)(r.E.delete))&&(yield(0,o.RE)(r.E.logout))}catch(t){console.log(t)}}function*d(){yield(0,o.Fm)(i.Nw.saveUser.type,s),yield(0,o.Fm)(i.Nw.deleteUser.type,l)}},46181:(e,t,n)=>{n.d(t,{OR:()=>l,TK:()=>d,h1:()=>s,xU:()=>r});var i=n(35323),a=n(79854);const o=e=>e.profileContainer||a.E3,r=((0,i.P1)([o],(e=>e)),(0,i.P1)([o],(e=>e.isLoading))),s=(0,i.P1)([o],(e=>e.onSuccess)),l=(0,i.P1)([o],(e=>e.onError)),d=(0,i.P1)([o],(e=>e.errorMessage))}
1,79854:(e,t,n)=>{n.d(t,{E3:()=>a,I6:()=>s,Nw:()=>r,Zy:()=>l});var i=n(91486);const a={isLoading:!1,onSuccess:!1,onError:!1,errorMessage:""},o=(0,i.o)({name:"profileContainer",initialState:a,reducers:{saveUser(e,t){e.isLoading=!0,e.onSuccess=a.onSuccess,e.onError=a.onError},changePassword(e,t){e.isLoading=!0},saveUserSuccess(e){e.isLoading=!1,e.onSuccess=!0,e.onError=a.onError},saveUserForbidden(e,t){e.isLoading=!1,e.onSuccess=!1,e.onError=!0,e.errorMessage=t.payload},resetAllStates(e){e.isLoading=a.isLoading,e.onSuccess=a.onSuccess,e.onError=a.onError,e.errorMessage=a.errorMessage},resetFlagStates(e){e.isLoading=a.isLoading,e.onSuccess=a.onSuccess,e.onError=a.onError},deleteUser(e){}}}),{actions:r,reducer:s,name:l}=o},94684:(e,t,n)=>{n.d(t,{x:()=>i});const i=(e,t)=>{const n=new Date(e);if(!e)return"";switch(t){case"y":return n.getFullYear().toString();case"m":return(n.getMonth()+1).toString().padStart(2,"0").toString();case"d":return n.getDate().toString().padStart(2,"0").toString();default:return e}}}}]);
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.