1import{a1 as x,a5 as k,m as $,r as c,o as C,e as p,j as m,n as u,g as e,t as l,B as f,k as g,aA as h,l as P,c as N,f as d,Z as B}from"./8EhAlHkq.js";import{_ as j}from"./2kONHoet.js";const R=B(j),A={class:"flex min-h-full"},S={key:0,class:"container mx-auto"},U={class:"flex justify-center px-6 my-12"},V={class:"w-full xl:w-3/4 lg:w-11/12 flex"},D={class:"w-full lg:w-1/2 bg-white p-5 rounded-lg lg:rounded-l-none"},Y={class:"px-8 mb-4 text-center"},z={class:"pt-4 mb-2 text-2xl"},E={class:"mb-4 text-sm text-gray-700"},M={key:0,class:"flex justify-center"},T={class:"px-8 pt-6 pb-8 mb-4 bg-white rounded"},q={class:"mb-4"},F={class:"block mb-2 text-sm font-bold text-gray-700",for:"email"},G=["type","placeholder"],L={class:"mb-4"},O={class:"block mb-2 text-sm font-bold text-gray-700",for:"email"},Z=["type","placeholder"],H={class:"mb-6 text-center"},I={class:"text-center"},J={class:"text-center"},X={__name:"setPassword",setup(K){const i=x(),v=k(),{goPath:w}=$(),_=N(),b=c("password"),r=c({password:"",retype_password:""}),n=c({title:"",status:""});C(()=>{i.value&&i.value.id&&(window.location.href="/")});const y=()=>{console.log("u");let t=r.value,s=v.query.u;P({url:`${_.public.apiBase}/register/resetPassword`,method:"post",data:{...t,uCode:s}}).then(o=>o).then(o=>{var a;console.log("res",o),((a=o==null?void 0:o.data)==null?void 0:a.success)==!0?n.value.status="success":n.value.status="fail"}).catch(o=>{n.value.status="fail",console.log("Error:"+o)})};return(t,s)=>{const o=R;return d(),p("div",A,[!u(i)||!u(i).id?(d(),p("div",S,[e("div",U,[e("div",V,[s[6]||(s[6]=e("div",{class:"w-full h-auto bg-gray-400 hidden lg:block lg:w-1/2 bg-cover rounded-l-lg",style:{"background-image":"url('/image/password-forgot.jpeg')"}},null,-1)),e("div",D,[e("div",Y,[e("h3",z,l(t.$t("Set New Password")),1),e("p",E,l(t.$t("Åimdi Åifreni tanımla ve giriÅ yap.")),1)]),n.value.status?(d(),p("div",M,[n.value.status=="fail"?(d(),f(o,{key:0,variant:"primary",color:"red",size:"md",label:"There is a problem. Your password email could not be changed."})):n.value.status=="success"?(d(),f(o,{key:1,variant:"primary",color:"green",size:"md",label:"Yes! Your password has been changed."})):m("",!0)])):m("",!0),e("form",T,[e("div",q,[e("label",F,l(t.$t("New Password")),1),g(e("input",{class:"w-full px-3 py-2 text-sm leading-tight text-gray-700 border rounded shadow appearance-none focus:outline-none focus:shadow-outline",type:b.value,"onUpdate:modelValue":s[0]||(s[0]=a=>r.value.password=a),placeholder:t.$t("New Password")},null,8,G),[[h,r.value.password]])]),e("div",L,[e("label",O,l(t.$t("Re-enter New Password Correction")),1),g(e("input",{class:"w-full px-3 py-2 text-sm leading-tight text-gray-700 border rounded shadow appearance-none focus:outline-none focus:shadow-outline",id:"password",type:b.value,"onUpdate:modelValue":s[1]||(s[1]=a=>r.value.retype_password=a),placeholder:t.$t("Re-enter New Password Correction")},null,8,Z),[[h,r.value.retype_password]])]),e("div",H,[e("button",{class:"w-full px-4 py-2 font-bold text-white bg-red-500 rounded-full hover:bg-red-700 focus:outline-none focus:shadow-outline",type:"button",onClick:s[2]||(s[2]=a=>y())},l(t.$t("Reset Password")),1)]),s[5]||(s[5]=e("hr",{class:"mb-6 border-t"},null,-1)),e("div",I,[e("a",{class:"inline-block text-sm cursor-pointer text-blue-500 align-baseline hover:text-blue-800",onClick:s[3]||(s[3]=a=>u(w)("/user/signUp",a))},l(t.$t("Create an Account!")),1)]),e("div",J,[e("a",{class:"inline-block text-sm cursor-pointer text-blue-500 align-baseline hover:text-blue-800",onClick:s[4]||(s[4]=a=>u(w)("/user/login",a))},l(t.$t("Already have an account?"))+" "+l(t.$t("Login"))+"! ",1)])])])])])])):m("",!0)])}}};export{X 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.