1import{A as u,r as m,u as d,j as e,B as c,m as p,n as f}from"./index-KDcLenRU.js";import{u as h}from"./useUpdateProfile.gXYnE-2x.js";import{M as x}from"./Modal.kdVkWAPc.js";import{T as j}from"./TextInput.AndAWOLI.js";import"./useEscapeKey.4T-pTQ7a.js";const N=()=>{const{data:s}=u(),t=h(),[r,n]=m.useState(""),l=d(),i=a=>{if(a.preventDefault(),!c(r))return;let o={...s,UserAlias:r};t.mutate({...o},{onSuccess:()=>{p("Το ÏÏοÏίλ ÏÎ±Ï ÎµÎ½Î·Î¼ÎµÏÏθηκε!"),l.invalidateQueries({queryKey:["profile"]})},onError:y=>f("Î¥ÏήÏξε κάÏοιο ÏÏÏβλημα / Το username ÏοÏ
εÏιλÎξαÏε ÏÏηÏιμοÏοιείÏαι ήδη")})};return!s.eml||s.UserAlias?null:e.jsx(x,{centered:!0,hasCloseButton:!1,className:"user-alias-modal",children:e.jsxs("div",{className:"user-alias-modal-container",children:[e.jsx("div",{className:"heading",children:e.jsx("h2",{children:"Î ÏοÏθήκη Username"})}),e.jsxs("div",{className:"content",children:[e.jsx("p",{children:"Το Username είναι Î¼Î¿Î½Î±Î´Î¹ÎºÏ Î³Î¹Î± κάθε ÏÏήÏÏη και είναι ο ÏÏÏÏÎ¿Ï ÏοÏ
θα εμÏανίζεÏÏε ÏÏÎ¹Ï ÏÏοÏάÏÎµÎ¹Ï ÎºÎ±Î¹ κÏιÏικÎÏ ÏαÏ."}),e.jsxs("form",{onSubmit:i,children:[e.jsx(j,{type:"text",name:"useralias",placeholder:"Username*",value:r,onChange:a=>n(a.target.value),minLength:"5",required:!0}),e.jsx("button",{className:"blue-button",type:"submit",children:"ÎÏοθήκεÏ
Ïη"})]})]})]})})};export{N 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.