PageSourceSearch

https://advisable.gr/assets/ResetPassword-CmC_ossx.js

js advisable.gr collected 2026-10-04 08:02:09 UTC 1,732 bytes, 1 lines download raw bytes

1import{j as s}from"./query-BamwHzT0.js";import{f as e,r as a}from"./vendor-3peoyrCT.js";import{H as r}from"./Header-BnZISnbL.js";import{F as t}from"./Footer-Ca-KkemG.js";import{u as o,C as i,B as m,s as n,d as p}from"./index-B5xl-dFI.js";import{I as d}from"./input-BZv2Nn_E.js";import{L as l}from"./label-D2uoCyBT.js";import"./useCurrentLanguage-BVij6Lv0.js";import"./i18n-Br0Pir8U.js";import"./serviceGroups-BW2Eu3W3.js";import"./ui-Ynw2_sQC.js";import"./supabase-DECnxFuj.js";import"./map-pin-U3H3ZVMp.js";function u(){const{currentLanguage:u}=o(),c="el"===u,j=e(),[x,h]=a.useState(""),[f,g]=a.useState(null),w="undefined"!=typeof window&&window.location.hash.includes("type=recovery");return s.jsxs(s.Fragment,{children:[s.jsx(r,{}),s.jsx("main",{className:"min-h-screen bg-background px-4 pb-20 pt-36",children:s.jsxs(i,{className:"mx-auto max-w-md p-8",children:[s.jsx("h1",{className:"text-2xl font-bold",children:c?"Νέος κωδικός":"New password"}),!w&&s.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:c?"Ανοιξε αυτή τη σελίδα από το email επαναφοράς.":"Open this page from the reset email."}),s.jsxs("form",{onSubmit:async function(s){s.preventDefault();const{error:e}=await n.auth.updateUser({password:x});e?g(e.message):j(p("/academy/account"))},className:"mt-6 space-y-4",children:[s.jsxs("div",{children:[s.jsx(l,{htmlFor:"p",children:c?"Κωδικός":"Password"}),s.jsx(d,{id:"p",type:"password",minLength:8,required:!0,value:x,onChange:s=>h(s.target.value)})]}),f&&s.jsx("p",{className:"text-sm text-destructive",children:f}),s.jsx(m,{type:"submit",className:"w-full",children:c?"Αποθήκευση":"Save"})]})]})}),s.jsx(t,{})]})}export{u 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.