PageSourceSearch

https://www.meeplay.io/_nuxt/CB2s7RHH.js

js meeplay.io collected 2026-10-01 14:21:20 UTC 1,444 bytes, 1 lines download raw bytes

1import{ak as i,b as o}from"./BYyWBVjg.js";function m(){return globalThis.$fetch}function z(){const t=i("auth-user",()=>null),u=i("auth-ready",()=>!1);async function r(){const e=m();try{const a=await e("/api/auth/me");t.value=a.user}catch{t.value=null}u.value=!0}async function c(e,a){const n=await $fetch("/api/auth/login",{method:"POST",body:{username:e,password:a}});return await r(),n}async function l(e,a){const n=await $fetch("/api/auth/social",{method:"POST",body:{provider:e,token:a}});return await r(),n}async function h(e,a,n){const s=await $fetch("/api/auth/register",{method:"POST",body:{email:e,password:a,lang:n}});return s.ok&&await r(),s}async function g(e,a){return await $fetch("/api/auth/forgot",{method:"POST",body:{email:e,lang:a}})}async function f(){await $fetch("/api/auth/logout",{method:"POST"}).catch(()=>{}),t.value=null}const y=o(()=>!!t.value),d=o(()=>(t.value?.organizerManagers?.length||0)>0||(t.value?.organizersICanCreateMeeplays?.length||0)>0),p=o(()=>t.value?.player?.nick||t.value?.player?.name||t.value?.username||"jugador"),v=o(()=>{const e=new Map;return(t.value?.organizerManagers||[]).forEach(a=>a.organizer&&e.set(a.organizer.uuid,a.organizer)),(t.value?.organizersICanCreateMeeplays||[]).forEach(a=>a&&e.set(a.uuid,a)),[...e.values()]});return{user:t,ready:u,fetchMe:r,login:c,loginSocial:l,register:h,forgotPassword:g,logout:f,isLoggedIn:y,isOrganizer:d,displayName:p,myOrganizers:v}}export{z 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.