PageSourceSearch

https://niagaramodules.com/_nuxt/B4dxwzry.js

js niagaramodules.com collected 2026-10-04 07:51:09 UTC 987 bytes, 1 lines download raw bytes

1import{xr as e,yt as t}from"./Lso9-JEW.js";import{b as n,c as r,p as i,t as a}from"./DoDkwLQP.js";import{t as o}from"./Bj0rKlHu.js";var s=n(`auth`,()=>{let n=o(),s=a(),c=e(null),l=t(()=>!!c.value),u=t(()=>c.value?.role===`admin`),d=t(()=>r(c.value));async function f(){let{user:e}=await n(`/api/auth/me`);c.value=e??null}async function p(e){let t=await s(`users/actor`,{method:`PATCH`,body:{actor:e}});i(t)?c.value=t:await f()}async function m(e,t){c.value=await n(`/api/auth/login`,{method:`POST`,body:{email:e,password:t}})}async function h(e){c.value=await n(`/api/auth/signup`,{method:`POST`,body:e})}async function g(e){await n(`/api/auth/password`,{method:`POST`,body:e})}async function _(e){await n(`/api/auth/password`,{method:`PATCH`,body:e})}async function v(){await n(`/api/auth/logout`,{method:`POST`}),c.value=null}return{user:c,loggedIn:l,isAdmin:u,canChooseActor:d,fetchUser:f,setActor:p,login:m,signup:h,requestPasswordReset:g,changePassword:_,logout:v}});export{s as t};

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.