PageSourceSearch

https://shrisivak-buds.hf.space/_app/immutable/chunks/gfHH1kxe.js

js shrisivak-buds.hf.space collected 2026-10-03 17:23:24 UTC 7,410 bytes, 2 lines download raw bytes

1import{b as r}from"./DKKyCjZm.js";const l=async o=>{let a=null;const n=await fetch(`${r}/auths/admin/details`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}}).then(async t=>{if(!t.ok)throw await t.json();return t.json()}).catch(t=>(a=t.detail,null));if(a)throw a;return n},d=async o=>{let a=null;const n=await fetch(`${r}/auths/admin/config`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}}).then(async t=>{if(!t.ok)throw await t.json();return t.json()}).catch(t=>(a=t.detail,null));if(a)throw a;return n},p=async(o,a)=>{let n=null;const t=await fetch(`${r}/auths/admin/config`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`},body:JSON.stringify(a)}).then(async e=>{if(!e.ok)throw await e.json();return e.json()}).catch(e=>(n=e.detail,null));if(n)throw n;return t},w=async o=>{let a=null;const n=await fetch(`${r}/auths/`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`},credentials:"include"}).then(async t=>{if(!t.ok)throw await t.json();return t.json()}).catch(t=>(a=t.detail,null));if(a)throw a;return n},f=async(o,a)=>{let n=null;const t=await fetch(`${r}/auths/ldap`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({user:o,password:a})}).then(async e=>{if(!e.ok)throw await e.json();return e.json()}).catch(e=>(n=e.detail,null));if(n)throw n;return t},y=async(o="")=>{let a=null;const n=await fetch(`${r}/auths/admin/config/ldap`,{method:"GET",headers:{"Content-Type":"application/json",...o&&{authorization:`Bearer ${o}`}}}).then(async t=>{if(!t.ok)throw await t.json();return t.json()}).catch(t=>(a=t.detail,null));if(a)throw a;return n},j=async(o="",a)=>{let n=null;const t=await fetch(`${r}/auths/admin/config/ldap`,{method:"POST",headers:{"Content-Type":"application/json",...o&&{authorization:`Bearer ${o}`}},body:JSON.stringify({enable_ldap:a})}).then(async e=>{if(!e.ok)throw await e.json();return e.json()}).catch(e=>(n=e.detail,null));if(n)throw n;return t},g=async(o="")=>{let a=null;const n=await fetch(`${r}/auths/admin/config/ldap/server`,{method:"GET",headers:{"Content-Type":"application/json",...o&&{authorization:`Bearer ${o}`}}}).then(async t=>{if(!t.ok)throw await t.json();return t.json()}).catch(t=>(a=t.detail,null));if(a)throw a;return n},m=async(o="",a)=>{let n=null;const t=await fetch(`${r}/auths/admin/config/ldap/server`,{method:"POST",headers:{"Content-Type":"application/json",...o&&{authorization:`Bearer ${o}`}},body:JSON.stringify(a)}).then(async e=>{if(!e.ok)throw await e.json();return e.json()}).catch(e=>(n=e.detail,null));if(n)throw n;return t},T=async o=>{let a=null;const n=await fetch(`${r}/auths/admin/config/oauth`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}}).then(async t=>{if(!t.ok)throw await t.json();return t.json()}).catch(t=>(a=t.detail,null));if(a)throw a;return n},$=async(o,a)=>{let n=null;const t=await fetch(`${r}/auths/admin/config/oauth`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`},body:JSON.stringify(a)}).then(async e=>{if(!e.ok)throw await e.json();return e.json()}).catch(e=>(n=e.detail,null));if(n)throw n;return t},S=async(o,a)=>{let n=null;const t=await fetch(`${r}/auths/signin`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:o,password:a})}).then(async e=>{if(!e.ok)throw await e.json();return e.json()}).catch(e=>(n=e.detail,null));if(n)throw n;return t},C=async(o,a,n,t)=>{let e=null;const i=await fetch(`${r}/auths/signup`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({name:o,email:a,password:n,profile_image_url:t})}).then(async s=>{if(!s.ok)throw await s.json();return s.json()}).catch(s=>(e=s.detail,null));if(e)throw e;return i},O=async()=>{let o=null;const a=await fetch(`${r}/auths/signout`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include"}).then(async n=>{if(!n.ok)throw await n.json();return n.json()}).catch(n=>(o=n.detail,null));if(o)throw o;return sessionStorage.clear(),a},P=o=>{const a=new URL("/auth?state=logout",window.location.origin),n=new URL("/auth",window.location.origin);if(!o)return a.href;const t=new URL(o,window.location.origin);if(t.origin===window.location.origin&&t.pathname==="/auth")return t.searchParams.set("state","logout"),t.href;const e=t.searchParams.get("post_logout_redirect_uri");if(e){const i=new URL(e,window.location.origin);return i.origin===window.location.origin&&i.pathname==="/auth"&&t.searchParams.set("state","logout"),t.href}return t.searchParams.set("post_logout_redirect_uri",n.href),t.searchParams.set("state","logout"),t.href},A=async(o,a,n,t,e="pending",i=null)=>{let s=null;const h=await fetch(`${r}/auths/add`,{method:"POST",headers:{"Content-Type":"application/json",...o&&{authorization:`Bearer ${o}`}},body:JSON.stringify({name:a,email:n,password:t,role:e,...i&&{profile_image_url:i}})}).then(async c=>{if(!c.ok)throw await c.json();return c.json()}).catch(c=>(s=c.detail,null));if(s)throw s;return h},z=async(o,a)=>{let n=null;const t=await fetch(`${r}/auths/update/profile`,{method:"POST",headers:{"Content-Type":"application/json",...o&&{authorization:`Bearer ${o}`}},body:JSON.stringify({...a})}).then(async e=>{if(!e.ok)throw await e.json();return e.json()}).catch(e=>(n=e.detail,Array.isArray(n)&&(n=n.map(i=>i.msg).join("; ")),null));if(n)throw n;return t},B=async(o,a)=>{await fetch(`${r}/auths/update/timezone`,{method:"POST",headers:{"Content-Type":"application/json",...o&&{authorization:`Bearer ${o}`}},body:JSON.stringify({timezone:a})}).catch(n=>{})},k=async(o,a,n)=>{let t=null;const e=await fetch(`${r}/auths/update/password`,{method:"POST",headers:{"Content-Type":"application/json",...o&&{authorization:`Bearer ${o}`}},body:JSON.stringify({password:a,new_password:n})}).then(async i=>{if(!i.ok)throw await i.json();return i.json()}).catch(i=>(t=i.detail,null));if(t)throw t;return e},U=async o=>{let a=null;const n=await fetch(`${r}/auths/api_key`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}}).then(async t=>{if(!t.ok)throw await t.json();return t.json()}).catch(t=>(a=t.detail,null));if(a)throw a;return n.api_key},E=async o=>{let a=null;const n=await fetch(`${r}/auths/api_key`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}}).then(async t=>{if(!t.ok)throw await t.json();return t.json()}).catch(t=>(a=t.detail,null));if(a)throw a;return n.api_key},L=async o=>{let a=null;const n=await fetch(`${r}/auths/api_key`,{method:"DELETE",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}}).then(async t=>{if(!t.ok)throw await t.json();return t.json()}).catch(t=>(a=t.detail,null));if(a)throw a;return n},b=async(o,a)=>{let n=null;const t=await fetch(`${r}/auths/oauth/sessions/${encodeURIComponent(a)}`,{method:"DELETE",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}}).then(async e=>{if(!e.ok)throw await e.json();return e.json()}).catch(e=>(n=e.detail,null));if(n)throw n;return t};export{B as a,C as b,O as c,A as d,P as e,k as f,w as g,E as h,z as i,L as j,U as k,f as l,d as m,p as n,g as o,T as p,y as q,j as r,m as s,$ as t,S as u,l as v,b as w};
2//# sourceMappingURL=gfHH1kxe.js.map

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.