1import R from"./BinGLoIm.js";import{y as _,N as F,U as h,be as x,o as c,a as B,b as k,k as l,c as g,aa as E,e as u}from"./B2iMorQV.js";import{m as N}from"./DWjZC8A3.js";import"./Cf7jSfGh.js";import"./B3s3ANdY.js";import"./DtZjOTdc.js";import"./BD8bz-G9.js";import"./DIB8uXYn.js";import"./4y5ao4b1.js";import"./EFea87tx.js";import"./CvG5BqnS.js";import"./jFYhBC76.js";import"./DpIPxl62.js";import"./BOnYfPmV.js";import"./Cf-nq5d4.js";import"./DGSDCIzJ.js";import"./CV33NT5m.js";import"./kZDJMT8o.js";import"./BvYObbML.js";import"./Doa8FrD6.js";import"./BuzpudSi.js";import"./BdGZcNoL.js";import"./vz9Cv1LY.js";import"./DcwxfbIZ.js";import"./EwEgHOG0.js";import"./B-t5NgC7.js";import"./DJUtTMXJ.js";import"./BvGRRfyI.js";const b={class:"w-65 sm:w-95 mx-auto my-40"},ao=_({__name:"recovery",setup(q){const{$ory:f,$session:w}=F(),a=f();w();const y=h(),n=x(),t=u(),m=N(n),{flow:p,returnTo:i}=y.query;typeof p!="string"?a.createBrowserRecoveryFlow({returnTo:i?String(i):"/spaces"}).then(o=>{t.value=o.data,n.replace({query:{flow:o.data.id}})}).catch(m):a.getRecoveryFlow({id:p}).then(o=>{t.value=o.data}).catch(m);const r=u(t);function d(o){r.value=o}return(o,e)=>{const v=R;return c(),B("div",b,[e[2]||(e[2]=k("h1",{class:"leading-none text-4xl"},"Recover your password",-1)),l(r)?(c(),g(v,{key:0,class:"my-5",type:"recovery",flow:l(r),onSuccess:e[0]||(e[0]=s=>r.value=s),onError:e[1]||(e[1]=s=>r.value=s.response.data),onRefresh:d},null,8,["flow"])):E("",!0)])}}});export{ao 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.