PageSourceSearch

https://di-volio.com/pl/_nuxt/CjK4YeVF.js

js di-volio.com collected 2026-10-05 05:32:13 UTC 4,219 bytes, 1 lines download raw bytes

1import{aR as P,c as n,d as t,Q as C,f as c,N as v,ax as x,r as a,z as y,t as r,aw as j,o as d,a2 as A}from"./CjXW0tVs.js";const D={class:"flex min-h-full flex-col justify-center py-12 sm:px-6 lg:px-8"},N={class:"mt-3 sm:mx-auto sm:w-full sm:max-w-[480px]"},R={class:"bg-white px-6 py-12 shadow sm:rounded-lg sm:px-12"},S={class:"mb-4"},q={class:"relative mt-2"},V=["type"],B={key:0,class:"text-red-500 text-sm mt-1"},M={class:"mb-4"},$={class:"relative mt-2"},z=["type"],E={key:0,class:"text-red-500 text-sm mt-1"},H={key:0,class:"mb-4 text-red-500 text-sm"},O={key:1,class:"mb-4 text-green-500 text-sm"},F={__name:"[token]",setup(T){const f=P(),g=j(),u=a(""),i=a(""),p=a(!1),w=a(!1),o=a({password1:"",password2:"",general:""}),m=a(""),b=f.params.uid,_=f.params.token,h=async()=>{if(o.value={password1:"",password2:"",general:""},m.value="",u.value!==i.value){o.value.password2="Passwords do not match.";return}try{const{data:l,error:e}=await A("/api/auth/password/reset-confirm",{method:"POST",body:{uid:b,token:_,newPassword1:u.value,newPassword2:i.value}},"$DsPqf1hpKq");if(e.value){const s=e.value.data?.data,k=e.value.statusCode;s&&k<500?(s.new_password1&&(o.value.password1=Array.isArray(s.new_password1)?s.new_password1.join(" "):s.new_password1),s.new_password2&&(o.value.password2=Array.isArray(s.new_password2)?s.new_password2.join(" "):s.new_password2),!s.new_password1&&!s.new_password2&&(o.value.general=Object.values(s).flat().join(" "))):o.value.general="An error occurred during password reset confirmation.";return}l.value?.detail?(m.value=l.value.detail,setTimeout(()=>{g.push("/login")},2e3)):o.value.general="Password reset confirmation failed. Please try again."}catch(l){console.error(l),o.value.general="An unexpected error occurred."}};return(l,e)=>(d(),n("div",D,[e[7]||(e[7]=t("div",{class:"sm:mx-auto sm:w-full sm:max-w-md"},[t("h2",{class:"mt-6 text-center text-2xl font-bold tracking-tight text-gray-900"}," Confirm Password Reset "),t("p",{class:"mt-2 text-center text-sm text-gray-600"}," Please enter your new password. ")],-1)),t("div",N,[t("div",R,[t("form",{onSubmit:C(h,["prevent"])},[t("div",S,[e[4]||(e[4]=t("label",{for:"password1",class:"block text-sm font-medium text-gray-900"}," New Password ",-1)),t("div",q,[v(t("input",{"onUpdate:modelValue":e[0]||(e[0]=s=>u.value=s),type:p.value?"text":"password",name:"password1",id:"password1",autocomplete:"new-password",required:"",class:y([["block w-full rounded-md bg-white px-3 py-1.5 text-base text-gray-900 outline outline-1 outline-offset-1 placeholder:text-gray-400 focus:outline-2 focus:outline-primary sm:text-sm",o.value.password1?"border-red-500":"border-gray-300"],"pr-10"])},null,10,V),[[x,u.value]]),t("button",{type:"button",onClick:e[1]||(e[1]=s=>
1p.value=!p.value),class:"absolute inset-y-0 right-0 pr-3 flex items-center text-sm text-gray-600 focus:outline-none"},r(p.value?"Hide":"Show"),1)]),o.value.password1?(d(),n("span",B,r(o.value.password1),1)):c("",!0)]),t("div",M,[e[5]||(e[5]=t("label",{for:"password2",class:"block text-sm font-medium text-gray-900"}," Confirm New Password ",-1)),t("div",$,[v(t("input",{"onUpdate:modelValue":e[2]||(e[2]=s=>i.value=s),type:w.value?"text":"password",name:"password2",id:"password2",autocomplete:"new-password",required:"",class:y([["block w-full rounded-md bg-white px-3 py-1.5 text-base text-gray-900 outline outline-1 outline-offset-1 placeholder:text-gray-400 focus:outline-2 focus:outline-primary sm:text-sm",o.value.password2?"border-red-500":"border-gray-300"],"pr-10"])},null,10,z),[[x,i.value]]),t("button",{type:"button",onClick:e[3]||(e[3]=s=>w.value=!w.value),class:"absolute inset-y-0 right-0 pr-3 flex items-center text-sm text-gray-600 focus:outline-none"},r(w.value?"Hide":"Show"),1)]),o.value.password2?(d(),n("span",E,r(o.value.password2),1)):c("",!0)]),o.value.general?(d(),n("div",H,r(o.value.general),1)):c("",!0),m.value?(d(),n("div",O,r(m.value),1)):c("",!0),e[6]||(e[6]=t("div",{class:"pt-4"},[t("button",{type:"submit",class:"flex w-full justify-center rounded-md bg-primary px-3 py-1.5 text-sm font-semibold text-white shadow-sm focus:outline focus:outline-2 focus:outline-offset-2"}," Reset Password ")],-1))],32)])])]))}};export{F 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.