1import{T as h,H as v}from"./Cg2uaTYr.js";import{_ as b,o,c as i,f as a,x as r,O as c,a as t,Q as x,d as z,e as n,a6 as y,a7 as w,n as E,F as V,P as d,g as u,j as B,a3 as T,ab as C}from"./BdFqHcNj.js";import{_ as S}from"./M97w3aGm.js";const j={name:"ProfileLogin",components:{},mixins:[S],data(){return{crmBaseUrl:C().public.rempCrmUrl,email:"",isEmailError:!1,sent:!1,article:null}},computed:{...u(T,["componentSetup"]),...u(B,["windowWidth"]),getBack(){return(this._.provides[d]||this.$route).query.back||""},getToken(){return(this._.provides[d]||this.$route).query.t||""}},async mounted(){await this.$articleRepository.search({superTagSlugs:["komplex"],parentId:[null]},null,1,50).then(l=>{this.article=l.items[Math.floor(Math.random()*l.items.length)]})},methods:{scroll(){},async login(l){l.preventDefault(),this.isEmailError=!this.email.match(/^[^\s@]+@[^\s@]+\.[^\s@]+$/),!this.isEmailError&&await this.$crmRepository.getEmailToken(this.email).then(e=>{e.status==="ok"&&(this.sent=!0)})}}},L={class:"profile"},M={class:"profile__page"},H={class:"profile__page__img"},P={key:0,class:"profile__page__img__background"},U={class:"profile__page__info"},A={key:0,class:"profile__page__lead"},N={class:"profile__form"},R={key:0},D={class:"profile__form__item"},F={key:1,class:"profile__page__lead"};function q(l,e,I,O,s,m){const f=h,g=v,p=x,k=z;return o(),i(V,null,[a(g,null,{default:r(()=>[a(f,null,{default:r(()=>[...e[2]||(e[2]=[c("Telex: Bejelentkezés",-1)])]),_:1})]),_:1}),t("div",L,[t("div",M,[a(p,{to:"/",class:"profile__page__logo"},{default:r(()=>[...e[3]||(e[3]=[t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 160 51","fill-rule":"evenodd","stroke-linejoin":"round","stroke-miterlimit":"2"},[t("path",{d:"M68.503 42.525V9.939c0-4.677-1.252-5.991-3.759-6.868L82.063.002v42.523c0 4.677 3.243 7.599 3.243 7.599H65.26s3.243-2.922 3.243-7.599zm-51.11-27.033h10.029l-.006-3.109-10.023 3.109zm4.569 29.662c-2.875 0-4.569-1.607-4.569-5.113V0L0 15.488c2.117 0 3.831 1.702 3.831 3.798V39.89c0 8.182 3.831 11.106 10.244 11.106 5.011 0 10.391-3.215 13.929-7.891 0 .006-2.46 2.049-6.043 2.049zm40.947-18.265c.442-9.499-4.717-15.928-14.592-15.928-11.94 0-19.456 9.352-19.456 20.751C28.861 41.794 34.536 51 46.475 51c8.623 0 13.192-4.896 16.435-10.74 0 0-3.33 4.456-9.949 4.456-7.59 0-10.317-6.575-10.54-17.827V25.72c0-6.503.81-13.735 5.601-13.735 4.127 0 4.348 4.86 3.685 13.261l-9.286 1.643H62.91zm58.876 0c.442-9.499-4.717-15.928-14.592-15.928-11.94 0-19.456 9.352-19.456 20.751C87.736 41.794 93.412 51 105.35 51c8.623 0 13.192-4.896 16.435-10.74 0 0-3.33 4.456-9.949 4.456-7.59 0-10.317-6.575-10.54-17.827V25.72c0-6.503.81-13.735 5.601-13.735 4.127 0 4.348 4.86 3.685 13.261l-9.286 1.643h20.489zM160 50.124h-19.456s2.58-2.703.884-5.699l-5.748-9.863s-5.527 10.375-5.527 12.859c0 2.703 1.989 2.703 1.989 2.703h-10.907l14.446-15.562-7.811-13.445c-2.654-4.603-6.339-9.28-6.339-9.28h19.456s-2.58 2.703-.884 5.699l5.306 9.061s4.79-9.571 4.79-12.056c0-2.703-1.989-2.703-1.989-2.703h10.761L145.41 26.597l8.253 14.247c2.652 4.603 6.339 9.28 6.339 9.28z",fill:"#fff","fill-rule":"nonzero"})],-1)])]),_:1}),t("div",H,[s.article?(o(),i("div",P,[a(k,{src:s.article.recommendedBoxImage,type:"cover",alt:s.article.title,loading:"lazy",breakpoint:"",class:"profile__page__img__background__src"},null,8,["src","alt"]),a(p,{to:l.getArticleUrl(s.article),class:"profile__page__img__article"},{default:r(()=>[...e[4]||(e[4]=[c(" â Ugrás a kapcsolódó cikkhez ",-1)])]),_:1},8,["to"])])):n("",!0)]),t("div",U,[e[8]||(e[8]=t("span",{class:"profile__page__title"}," Belépés ",-1)),s.sent?n("",!0):(o(),i("span",A," A fiókba való belépéshez add meg a támogatás elindÃtásához használt e-mail-cÃmedet! A megadott cÃmre elküldjük a bejelentkezéshez szükséges linket. ")),t("div",null,[t("div",N,[s.sent?n("",!0):(o(),i("div",R,[t("form",{id:"login-form",ref:"loginForm",novalidate:"",class:"profile__form--option",onSubmit:e[1]||(e[1]=(..._)=>m.login&&m.login(..._))},[t("div",D,[e[5]||(e[5]=t("label",{for:"email",class:"profile__form__item--txt__label"}," e-mail cÃm ",-1)),y(t("input",{id:"email","onUpdate:modelValue":e[0]||(e[0]=_=>s.email=_),class:E([{subscribe__error:s.isEmailError},"profile__form__item--txt__input"]),name:"email",placeholder:"[email protected]"},null,2),[[w,s.email]])]),e[6]||(e[6]=t("input",{type:"submit",name:"send",value:"Elküldöm",class:"profile__form__action btn"},null,-1))],544)])),s.sent?(o(),i("div",F," Amennyiben benne vagy a rendszerünkben, a megadott emailcÃmre elküldtük a belépési adatokat! ")):n("",!0)]),e[7]||(e[7]=t("span",{class:"profile--widget__details"},null,-1))])])])])],64)}const J=Object.assign(b(j,[["render",q]]),{__name:"ProfileLogin"});export{J as default};
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.