PageSourceSearch

https://tipiq.ai/assets/ChangePassword-uMGRVJOR.js

js tipiq.ai collected 2026-10-05 15:55:37 UTC 3,616 bytes, 1 lines download raw bytes

1import{_ as $,z as C,x as V,r as P,B,c as l,b as c,d as s,t as a,f as N,g as D,k as g,p as M,h as f,v as u,C as w,G as h}from"./match-social-B2KluVCJ.js";import{a as q}from"./app-n3cm-tQU.js";const U={class:"auth-container"},A={class:"auth-card"},S={class:"auth-header"},T={key:0,class:"success-message"},z={key:0,class:"error-message"},E={class:"form-group"},G={for:"currentPassword"},I=["type","placeholder"],R={class:"form-group"},j={for:"newPassword"},F=["type","placeholder"],H={class:"form-group"},J={for:"confirmPassword"},K=["type","placeholder"],L={class:"form-actions"},O=["disabled"],Q={key:0,class:"spinner"},W={__name:"ChangePassword",setup(X){const p=q(),{changePassword:v,loading:i,error:r,isAuthenticated:_}=C(),o=V({currentPassword:"",newPassword:"",confirmPassword:""}),n=P(!1),m=P(!1),b=async()=>{if(r.value=null,o.newPassword!==o.confirmPassword){r.value="New passwords do not match";return}if(o.newPassword.length<6||o.newPassword.length>100){r.value="Password must be between 6 and 100 characters";return}if(o.newPassword===o.currentPassword){r.value="New password must be different from current password";return}try{await v(o.currentPassword,o.newPassword),m.value=!0}catch(e){console.error("Change password error:",e)}},y=()=>{p.back()};return _.value||p.push("/login"),(e,t)=>{const k=B("router-link");return c(),l("div",U,[s("div",A,[s("div",S,[s("h1",null,a(e.$t("auth.changePassword.title")),1),s("p",null,a(e.$t("auth.changePassword.subtitle")),1)]),m.value?(c(),l("div",T,[t[4]||(t[4]=s("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[s("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),s("polyline",{points:"22 4 12 14.01 9 11.01"})],-1)),s("h3",null,a(e.$t("auth.changePassword.successTitle")),1),s("p",null,a(e.$t("auth.changePassword.successMessage")),1),N(k,{to:"/",class:"btn btn-primary"},{default:D(()=>[g(a(e.$t("common.home")),1)]),_:1})])):(c(),l("form",{key:1,onSubmit:M(b,["prevent"]),class:"auth-form"},[u(r)?(c(),l("div",z,a(u(r)),1)):f("",!0),s("div",E,[s("label",G,a(e.$t("auth.changePassword.currentPassword")),1),w(s("input",{id:"currentPassword","onUpdate:modelValue":t[0]||(t[0]=d=>o.currentPassword=d),type:n.value?"text":"password",placeholder:e.$t("auth.changePassword.currentPasswordPlaceholder"),required:"",autocomplete:"current-password"},null,8,I),[[h,o.currentPassword]]),s("button",{type:"button",class:"toggle-password",onClick:t[1]||(t[1]=d=>n.value=!n.value)},a(n.value?"👁️":"👁️‍🗨️"),1)]),s("div",R,[s("label",j,a(e.$t("auth.changePassword.newPassword")),1),w(s("input",{id:"newPassword","onUpdate:modelValue":t[2]||(t[2]=d=>o.newPassword=d),type:n.value?"text":"password",placeholder:e.$t("auth.changePassword.newPasswordPlaceholder"),required:"",minlength:"6",autocomplete:"new-password"},null,8,F),[[h,o.newPassword]])]),s("div",H,[s("label",J,a(e.$t("auth.changePassword.confirmPassword")),1),w(s("input",{id:"confirmPassword","onUpdate:modelValue":t[3]||(t[3]=d=>o.confirmPassword=d),type:n.value?"text":"password",placeholder:e.$t("auth.changePassword.confirmPasswordPlaceholder"),required:"",autocomplete:"new-password"},null,8,K),[[h,o.confirmPassword]])]),s("div",L,[s("button",{type:"button",onClick:y,class:"btn btn-secondary"},a(e.$t("common.cancel")),1),s("button",{type:"submit",class:"btn btn-primary",disabled:u(i)},[u(i)?(c(),l("span",Q)):f("",!0),g(" "+a(u(i)?e.$t("auth.changePassword.changing"):e.$t("auth.changePassword.changeButton")),1)],8,O)])],32))])])}}},x=$(W,[["__scopeId","data-v-3988b260"]]);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.