PageSourceSearch

https://blogalfondo.up.railway.app/ghost/assets/users-C60_hpn6.js

js blogalfondo.up.railway.app collected 2026-10-03 12:11:54 UTC 1,959 bytes, 1 lines download raw bytes

1import{i as e,n as t,s as n,t as r}from"./hooks-DYfTEQLk.js";import{r as i,t as a}from"./update-queries-C4CnvJaW.js";var o=n,s=r({dataType:o,path:`/users/`,defaultSearchParams:{limit:`100`,include:`roles`},defaultNextPageParams:(e,t)=>{if(e.meta?.pagination.next)return{...t,page:e.meta.pagination.next.toString()}},returnData:e=>{let{pages:t}=e,n=t.flatMap(e=>e.users),r=t[t.length-1].meta;return{users:n,meta:r,isEnd:r?r.pagination.pages===r.pagination.page:!0}}}),c=e({dataType:o,path:e=>`/users/slug/${e}/`,defaultSearchParams:{include:`roles`}}),l=t({method:`PUT`,path:e=>`/users/${e.id}/`,body:e=>({users:[e]}),searchParams:()=>({include:`roles`}),updateQueries:{dataType:o,emberUpdateType:`createOrUpdate`,update:i(`users`)}}),u=t({method:`DELETE`,path:e=>`/users/${e}/`,updateQueries:{dataType:o,emberUpdateType:`delete`,update:a(`users`)}}),d=t({method:`PUT`,path:()=>`/users/password/`,body:({newPassword:e,confirmNewPassword:t,userId:n,oldPassword:r})=>({password:[{user_id:n,oldPassword:r||``,newPassword:e,ne2Password:t}]})}),f=t({method:`PUT`,path:()=>`/users/owner/`,body:e=>({owner:[{id:e}]}),updateQueries:{dataType:o,emberUpdateType:`createOrUpdate`,update:i(`users`)}});function p(e){return e.roles.some(e=>e.name===`Owner`)}function m(e){return e.roles.some(e=>e.name===`Administrator`)}function h(e){return e.roles.some(e=>e.name===`Editor`)||e.roles.some(e=>e.name===`Super Editor`)}function g(e){return e.roles.some(e=>e.name===`Super Editor`)}function _(e){return e.roles.some(e=>e.name===`Author`)}function v(e){return e.roles.some(e=>e.name===`Contributor`)}function y(e){return _(e)||v(e)}function b(e){return p(e)||m(e)||h(e)}function x(e){return p(e)||m(e)||g(e)}function S(e){return p(e)||m(e)||h(e)}function C(e){return p(e)||m(e)||h(e)}function w(e){return p(e)||m(e)}function T(e){return p(e)||m(e)}export{d as _,S as a,y as c,p as d,s as f,f as g,c as h,x as i,v as l,l as m,T as n,w as o,u as p,C as r,m as s,b as t,h 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.