PageSourceSearch

https://www.politeianet.gr/assets/UserAliasModalContent.S0iGz_7k.js

js politeianet.gr collected 2026-09-24 09:26:44 UTC 1,475 bytes, 1 lines download raw bytes

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.