PageSourceSearch

https://www.wiim.immo/_nuxt/BGWHD13h.js

js wiim.immo collected 2026-10-09 23:00:08 UTC 6,547 bytes, 1 lines download raw bytes

1import O from"./BlUlAP2D.js";import{e as D,C as K,x as Q,y as z,U as A,M as G,N as J,D as W,g as X,u as Y,E as Z,c as o,a as t,d as w,t as s,b as n,w as k,q as y,p as r,a0 as ee,o as l,k as g,_ as te,l as E,m as se,K as ae,aH as re}from"./D8644rYh.js";import{_ as oe}from"./Dx_Ou25x.js";import{_ as le}from"./CSS_LEol.js";const ne={class:"min-h-[72vh] flex items-center bg-white dark:bg-ink"},ie={class:"container mx-auto px-4 py-16 max-w-md"},ue={class:"text-center"},de={class:"inline-flex items-center gap-2 uppercase tracking-[0.2em] text-[11px] font-semibold text-primary-600 dark:text-primary-300"},ce={class:"font-display text-3xl md:text-4xl font-bold text-dark dark:text-white mt-3"},me={class:"text-grey-text dark:text-white/60 mt-2"},he={class:"mt-8 bg-white dark:bg-ink-800 border border-gray-200 dark:border-white/10 rounded-2xl p-6 shadow-xl shadow-black/5 dark:shadow-black/40"},pe={key:0,class:"space-y-3","aria-hidden":"true"},ve={key:1,class:"text-center"},fe={class:"mx-auto w-12 h-12 rounded-full bg-primary-50 dark:bg-white/10 flex items-center justify-center"},ye={class:"mt-4 font-display text-xl text-dark dark:text-white"},_e={class:"mt-2 text-sm leading-6 text-grey-text dark:text-white/70"},xe={key:0,role:"alert","aria-live":"assertive",class:"mt-4 text-sm text-danger"},be=["disabled","aria-busy"],we={key:2,role:"status",class:"text-center"},ke={class:"mx-auto w-12 h-12 rounded-full bg-success/15 flex items-center justify-center"},ge={class:"mt-4 text-dark dark:text-white font-medium"},$e={class:"block"},Te={class:"block text-sm font-medium text-dark dark:text-gray-200 mb-1.5"},Ve={class:"block"},qe={class:"block text-sm font-medium text-dark dark:text-gray-200 mb-1.5"},Ce={key:0,class:"mt-1.5 text-xs text-danger"},Se={key:0,role:"alert","aria-live":"assertive",class:"text-danger text-sm"},Me=["disabled"],Pe={key:4,class:"text-center"},Ue={class:"text-dark dark:text-white font-medium"},Ne={class:"mt-1 text-sm text-grey-text dark:text-white/60"},Le=D({__name:"nouveau-mot-de-passe",setup(Ee){const{t:d}=K(),$=Q(),i=z(),H=A(),T=G(),V=J(),u=r(""),c=r(""),v=r(!1),q=r(!1),m=r(""),h=r(!1),_=r(!1),p=r(""),C=r(null),S=y(()=>i.query.token_hash!==void 0||i.query.type!==void 0),M=y(()=>re(i.query.token_hash)),j=y(()=>i.query.type==="recovery"&&!!M.value&&!_.value),B=y(()=>_.value||!S.value&&!!V.value),f=r(!1);let x;W(()=>{if(S.value||V.value){f.value=!0;return}x=setTimeout(()=>{f.value=!0},1500)}),X(()=>{x&&clearTimeout(x)});async function F(){const e=M.value;if(!e||i.query.type!=="recovery"){p.value=d("auth.reset.verifyFailed");return}p.value="",h.value=!0;try{const{error:a}=await T.auth.verifyOtp({token_hash:e,type:"recovery"});if(a)throw a;_.value=!0,f.value=!0,await H.replace({path:i.path,query:{}}).catch(()=>{}),window.location.search&&window.history.replaceState(window.history.state,"",i.path),await ae(),C.value?.querySelector("input")?.focus()}catch{p.value=d("auth.reset.verifyFailed")}finally{h.value=!1}}async function L(){if(m.value="",u.value!==c.value){m.value=d("auth.error.pwMismatch");return}v.value=!0;try{const{error:e}=await T.auth.updateUser({password:u.value});if(e)throw e;q.value=!0}catch{m.value=d("auth.reset.failed")}finally{v.value=!1}}return Y({title:d("auth.reset.headTitle"),meta:[{name:"referrer",content:"no-referrer"}]}),Z({robots:"noindex, nofollow"}),(e,a)=>{const P=O,U=te,N=oe,R=le,I=ee;return l(),o("div",ne,[t("div",ie,[t("div",ue,[t("p",de,[a[2]||(a[2]=t("span",{class:"h-px w-6 bg-primary-500/70"},null,-1)),w(" "+s(e.$t("auth.kicker")),1)]),t("h1",ce,s(e.$t("auth.reset.title")),1),t("p",me,s(e.$t("auth.reset.subtitle")),1)]),t("div",he,[n(I,null,{default:k(()=>[f.value?j.value?(l(),o("div",ve,[t("div",fe,[n(P,{name:"solar:shield-check-linear",class:"h-6 w-6 text-primary-600 dark:text-primary-300"})]),t("h2",ye,s(e.$t("auth.reset.verifyTitle")),1),t("p",_e,s(e.$t("auth.reset.verifyText")),1),p.value?(l(),o("p",xe,s(p.value),1)):g("",!0),t("button",{type:"button",disabled:h.value,"aria-busy":h.value,class:"mt-5 w-full min-h-11 rounded-full bg-primary-600 hover:bg-primary-500 disabled:opacity-60 text-white font-semibold transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400 focus-visible:ring-offset-2",onClick:F},s(h.value?e.$t("auth.reset.verifying"):e.$t("auth.reset.verifyCta")),9,be)])):q.value?(l(),o("div",we,[t("div",ke,[n(P,{name:"solar:check-circle-linear",class:"h-6 w-6 text-success"})]),t("p",ge,s(e.$t("auth.reset.done")),1),n(U,{to:E($)("/espace"),class:"mt-5 inline-flex items-center justify-center px-6 h-11 rounded-full bg-primary-600 hover:bg-primary-500 text-white font-semibold transition"},{default:k(()=>[w(s(e.$t("setup.goSpace"))+" →",1)]),_:1},8,["to"])])):B.value?(l(),o("form",{key:3,ref_key:"passwordForm",ref:C,class:"space-y-4",onSubmit:se(L,["prevent"])},[t("label",$e,[t("span",Te,s(e.$t("auth.reset.newPassword")),1),n(N,{modelValue:u.value,"onUpdate:modelValue":a[0]||(a[0]=b=>u.value=b),tone:"public",pad:"lg",class:"w-full",type:"password",required:"",minlength:"8",maxlength:"72",autocomplete:"new-password",placeholder:"••••••••"},null,8,["modelValue"])]),n(R,{password:u.value},null,8,["password"]),t("label",Ve,[t("span",qe,s(e.$t("auth.confirmPasswordLabel")),1),n(N,{modelValue:c.value,"onUpdate:modelValue":a[1]||(a[1]=b=>c.value=b),tone:"public",pad:"lg",class:"w-full",type:"password",required:"",minlength:"8",maxlength:"72",autocomplete:"new-password",placeholder:"••••••••"},null,8,["modelValue"]),c.value&&u.value!==c.value?(l(),o("p",Ce,s(e.$t("auth.error.pwMismatch")),1)):g("",!0)]),m.value?(l(),o("p",Se,s(m.value),1)):g("",!0),t("button",{type:"submit",disabled:v.value||u.value.length<8,class:"w-full h-11 rounded-full bg-primary-600 hover:bg-primary-500 disabled:opacity-60 text-white font-semibold transition"},s(v.value?"…":e.$t("auth.reset.submit")),9,Me)],544)):(l(),o("div",Pe,[t("p",Ue,s(e.$t("auth.reset.invalidTitle")),1),t("p",Ne,s(e.$t("auth.reset.invalidText")),1),n(U,{to:E($)("/auth/forgot-password"),class:"mt-5 inline-flex items-center justify-center px-6 h-11 rounded-full bg-primary-600 hover:bg-primary-500 text-white font-semibold transition"},{default:k(()=>[w(s(e.$t("auth.reset.retryCta")),1)]),_:1},8,["to"])])):(l(),o("div",pe,[...a[3]||(a[3]=[t("div",{class:"h-10 rounded-lg bg-gray-100 dark:bg-white/5 animate-pulse"},null,-1),t("div",{class:"h-10 rounded-lg bg-gray-100 dark:bg-white/5 animate-pulse"},null,-1)])]))]),_:1})])])])}}});
1export{Le 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.