PageSourceSearch

https://mdtextile.com/_nuxt/Cq9e0wFY.js

js mdtextile.com collected 2026-10-06 19:01:04 UTC 1,752 bytes, 1 lines download raw bytes

1import{_}from"./BnsWMlex.js";import{f as g,u as b,g as v,Z as h,j as y,c as n,a as o,l as s,t as S,m as k,b as d,w as N,z as B,e as C,o as i,d as V,$ as T,x as U}from"./CmOKha68.js";const $={class:"px-4 py-12"},j={class:"mx-auto max-w-md"},z={class:"rounded-lg bg-white p-8 shadow-sm"},A={key:0,class:"mb-6 rounded-md border border-red-200 bg-red-50 p-4 text-sm text-red-700"},D={class:"mt-6 text-center"},M=g({__name:"[token]",setup(E){b({title:"Set a new password",meta:[{name:"robots",content:"noindex, nofollow"},{name:"referrer",content:"no-referrer"}]});const p=v(),{reset:m,loading:l,error:r,clearSession:c}=h();y(()=>c());const u=U(()=>String(p.params.token??"")),e=B({password:"",confirm:""}),w=async()=>{if(r.value=null,e.password.length<12){r.value="Your password must be at least 12 characters.";return}if(e.password!==e.confirm){r.value="The two passwords do not match.";return}try{await m(u.value,e.password,e.confirm),await T("/supplier",{replace:!0})}catch{}};return(F,t)=>{const f=_,x=C;return i(),n("div",$,[o("div",j,[t[3]||(t[3]=o("div",{class:"mb-8 text-center"},[o("h1",{class:"text-3xl font-bold text-gray-900"},"Set a new password"),o("p",{class:"mt-2 text-sm text-gray-600"},"Choose a new password for your supplier login.")],-1)),o("div",z,[s(r)?(i(),n("div",A,S(s(r)),1)):k("",!0),d(f,{password:s(e).password,"onUpdate:password":t[0]||(t[0]=a=>s(e).password=a),confirm:s(e).confirm,"onUpdate:confirm":t[1]||(t[1]=a=>s(e).confirm=a),loading:s(l),"submit-label":"Save new password",onSubmit:w},null,8,["password","confirm","loading"])]),o("div",D,[d(x,{to:"/supplier/login",class:"text-sm text-gray-600 hover:text-gray-900"},{default:N(()=>[...t[2]||(t[2]=[V("← Back to sign in",-1)])]),_:1})])])])}}});export{M 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.