PageSourceSearch

https://beebro.com/app/assets/requests-BUvgS3B_.js

js beebro.com collected 2026-10-02 01:25:17 UTC 4,637 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chatDebug-Dk0BHylu.js","assets/react-B8HINTYZ.js","assets/preload-helper-DNPLdxEY.js"])))=>i.map(i=>d[i]);
2import{t as e}from"./preload-helper-DNPLdxEY.js";import{t}from"./queryOptions-C6eUkPeV.js";import{c as n,d as r,f as i,i as a,l as o,r as s}from"./schemas-yJwYz_QM.js";import{t as c}from"./config-BAVuX3Do.js";import{a as l,i as u,l as d}from"./authToken-CLNeTvwT.js";import{n as f,t as p}from"./client-BP9RQxQS.js";import{t as m}from"./queryKeys-DQZ5qimK.js";var h=o({id:r(),email:r().nullable(),name:r().nullable(),avatar_url:r().nullable().optional(),has_workspace:a().optional(),needs_onboarding:a().optional(),country:r().nullable().optional(),city:r().nullable().optional(),currency:r().nullable().optional(),gender:r().nullable().optional(),age_group:r().nullable().optional(),debug_chat:a().optional()}),g=e=>({id:e.id,email:e.email??null,name:e.name??``,avatarUrl:e.avatar_url??null,hasWorkspace:e.has_workspace??!1,needsOnboarding:e.needs_onboarding??!1,country:e.country??null,city:e.city??null,currency:e.currency??null,gender:e.gender??null,ageGroup:e.age_group??null,debugChat:e.debug_chat??!1}),_=o({type:r(),severity:r().optional(),subject_uuid:r().optional(),subject_name:r().optional(),expires_at:r().optional(),days_left:n().optional(),delete_at:r().optional(),days_until_delete:n().optional(),dismissed_stage:r().nullish()}).passthrough(),v=new Set([`hosting_expiring_soon`,`hosting_pending_delete`,`domain_expiring_soon`,`domain_pending_delete`]);function y(e){return v.has(e.type)?{type:e.type,severity:e.severity===`critical`?`critical`:`warning`,subjectUuid:e.subject_uuid??``,subjectName:e.subject_name??``,expiresAt:e.expires_at,daysLeft:e.days_left,deleteAt:e.delete_at,daysUntilDelete:e.days_until_delete,dismissedStage:e.dismissed_stage===`banner`||e.dismissed_stage===`hidden`?e.dismissed_stage:null}:null}var b=o({access_token:r(),refresh_token:r(),expires_in:n().optional(),is_new:a().optional(),user:h}).transform(e=>({accessToken:e.access_token,refreshToken:e.refresh_token,expiresIn:e.expires_in??null,isNew:e.is_new??!1,user:g(e.user)})),x=o({access_token:r(),refresh_token:r(),expires_in:n().optional()}).transform(e=>({accessToken:e.access_token,refreshToken:e.refresh_token,expiresIn:e.expires_in??null})),S=o({user:h,notices:s(_).optional()}).transform(e=>({user:g(e.user),notices:(e.notices??[]).map(y).filter(e=>e!==null)})),C=o({sessions:s(o({id:r(),device_name:r(),platform:r(),ip:r(),last_seen_at:i([r(),n()]).transform(e=>typeof e==`number`?new Date(e*1e3).toISOString():e),created_at:i([r(),n()]).optional(),is_current:a()}))}),w=o({ok:a()}),T=o({resend_in_seconds:n()}).transform(e=>({resendInSeconds:e.resend_in_seconds}));async function E(e){return p(`/api/auth/send-code`,{method:`POST`,body:JSON.stringify({email:e})},T)}async function D(e,t){let n=await p(`/api/auth/verify`,{method:`POST`,body:JSON.stringify({email:e,code:t,device_id:l()})},b);return await d(n.accessToken,n.refreshToken,n.expiresIn),{user:n.user,isNew:n.isNew}}async function O(e){let t=await p(`/api/auth/google`,{method:`POST`,body:JSON.stringify({id_token:e,device_id:l()})},b);return await d(t.accessToken,t.refreshToken,t.expiresIn),{user:t.user,isNew:t.isNew}}async function k(e,t){let n={id_token:e,device_id:l()};t&&(t.firstName||t.lastName)&&(n.full_name=t);let r=await p(`/api/auth/apple`,{method:`POST`,body:JSON.stringify(n)},b);return await d(r.accessToken,r.refreshToken,r.expiresIn),{user:r.user,isNew:r.isNew}}async function A(){let t=await p(`/api/auth/me`,{},S);return e(()=>import(`./chatDebug-Dk0BHylu.js`).then(e=>e.i).then(e=>e.chatDebugSetServerFlag(t.user.debugChat===!0)),__vite__mapDeps([0,1,2])).catch(()=>{}),t}async function j(){return p(`/api/auth/sessions`,{},C)}async function M(e){return p(`/api/auth/sessions/${e}`,{method:`DELETE`},w)}async function N(e){let t=await f(`/api/auth/refresh`,{method:`POST`,body:JSON.stringify({refresh_token:e})},x);return await d(t.accessToken,t.refreshToken,t.expiresIn),t}async function P(){let e=u();if(e)try{await fetch(`${c}/api/auth/logout`,{method:`POST`,headers:{"Content-Type":`application/json`,"X-Auth-Token":e}})}catch{}}async function F(e){return p(`/api/notices/dismiss`,{method:`POST`,body:JSON.stringify({type:e.type,subject_uuid:e.subjectUuid,stage:e.stage})},o({ok:a().nullish(),stage:r().nullish()}).transform(e=>({ok:e.ok??!1,stage:e.stage===`banner`||e.stage===`hidden`?e.stage:null})))}var I={getAuthSessionsQueryOptions:()=>t({queryKey:m.account.sessions,queryFn:j})};export{A as a,P as c,D as d,j as i,k as l,M as n,N as o,F as r,E as s,I as t,O as u};

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.