All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web-interface.assets.1255d548-5831.f80a057b291c0327f16a.js Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
"use strict";(()=>{(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["1255d548-5831"],{SfPIQIJE:(R,A,n)=>{n.d(A,{Z:()=>f});var e=n("Z7aTuO5B"),m=n("J6y4/h8P"),_=n("uZqmR+ju"),U=n("ty2gyrHp"),P=n("/GOzvPf6"),t=n("NV1/EHMi");const u=(0,m.default)(_.ButtonToolbar)`
  margin-bottom: 10px;
`,d=(0,m.default)(_.Button)(({theme:c})=>(0,m.css)`
  font-family: ${c.fonts.family.navigation};
  font-size: ${c.fonts.size.navigation};

  &&&& {
    color: ${c.colors.variant.darker.default};
    
    &:hover,
    &:focus {
      text-decoration: none;
    }

    > div {
      &:hover,
      &:focus {
        color: ${c.colors.variant.darker.default};
      }
    }

    &:hover {
      ${(0,t.RF)(c)}
    }

    &.active {
      color: ${c.colors.global.textDefault};

      ${(0,t.A7)(c)}

      &:hover,
      &:focus {
        ${(0,t.A7)(c)}
      }
    }
  }
`);d.displayName="Button";const f=({items:c})=>e.createElement(u,null,c.map(({path:O,title:p,permissions:S,exactPathMatch:g})=>O?e.createElement(P.AE,{permissions:S!=null?S:[],key:O},e.createElement(U.J,{to:O,relativeActive:!g},e.createElement(d,{bsStyle:"link"},e.createElement(t.ZP,null,p)))):null))},"1VlHrt00":(R,A,n)=>{n.d(A,{Z:()=>u});var e=n("Z7aTuO5B"),m=n("J6y4/h8P"),_=n("uZqmR+ju");const U=m.default.td`
  max-width: 300px;
`,P=(0,m.default)(_.Label)`
  margin-right: 5px;
  margin-bottom: 5px;
  display: inline-block;
  padding: 4px 6px;
`,u=({roles:d})=>e.createElement(U,null,d.map(E=>e.createElement(P,{key:E,bsStyle:E==="Admin"?"info":"default"},E)).toArray())},"4APrn2Dx":(R,A,n)=>{n.d(A,{Z:()=>t});var e=n("Z7aTuO5B"),m=n("uZqmR+ju"),_=n("/GOzvPf6");const U=e.createElement(m.Popover,{id:"user-search-query-help",title:"Search Syntax Help"},e.createElement("p",null,e.createElement("strong",null,"Available search fields")),e.createElement(m.Table,{condensed:!0},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"Field"),e.createElement("th",null,"Description"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"full_name"),e.createElement("td",null,"The full name of a user")),e.createElement("tr",null,e.createElement("td",null,"username"),e.createElement("td",null,"The users login username.")),e.createElement("tr",null,e.createElement("td",null,"email"),e.createElement("td",null,"The users email.")))),e.createElement("p",null,e.createElement("strong",null,"Examples")),e.createElement("p",null,"Find users with a email containing example.com:",e.createElement("br",null),e.createElement("kbd",null,"email:example.com"),e.createElement("br",null))),t=()=>e.createElement(_.Ox,{trigger:"click",rootClose:!0,placement:"right",overlay:U},e.createElement(m.Button,{bsStyle:"link"},e.createElement(_.JO,{name:"question-circle"})))},WqhT36Vr:(R,A,n)=>{n.d(A,{Z:()=>t});var e=n("Z7aTuO5B"),m=n("d4kzUuQm"),_=n("SfPIQIJE"),U=n("uZqmR+ju");const t=()=>{const u=[{title:"Users Overview",path:m.ZP.SYSTEM.USERS.OVERVIEW,permissions:"users:list"},{title:"Teams Overview",path:m.ZP.getPluginRoute("SYSTEM_TEAMS"),permissions:"teams:list"}];return e.createElement(U.Row,null,e.createElement(_.Z,{items:u}))}},"92lPlKXC":(R,A,n)=>{n.d(A,{Z:()=>g});var e=n("cSDA0Pof"),m=n("lDGobrly");const _=(0,m.Z)({action:e.X.create,success:l=>({message:`User "${l==null?void 0:l.first_name} ${l==null?void 0:l.last_name}" was created successfully`}),error:(l,s)=>({message:`Creating user "${s==null?void 0:s.first_name} ${s==null?void 0:s.last_name}" failed with status: ${l}`})}),U=(0,m.Z)({action:e.X.load,error:(l,s)=>({message:`Loading user with id "${s}" failed with status: ${l}`}),notFoundRedirect:!0}),P=(0,m.Z)({action:e.X.loadByUsername,error:(l,s)=>({message:`Loading user with username "${s}" failed with status: ${l}`}),notFoundRedirect:!0}),t=(0,m.Z)({action:e.X.update,success:(l,s,a)=>({message:`User "${a}" was updated successfully`}),error:(l,s,a,o)=>({message:`Updating user "${o}" failed with status: ${l}`})}),u=(0,m.Z)({action:e.X.delete,success:(l,s)=>({message:`User "${s}" was deleted successfully`}),error:(l,s,a)=>({message:`Deleting user "${a}" failed with status: ${l}`})}),d=(0,m.Z)({action:e.X.changePassword,success:()=>({message:"Password was changed successfully "}),error:(l,s)=>({message:`Changing password for user with id "${s}" failed with status: ${l}`})}),E=(0,m.Z)({action:e.X.createToken,success:(l,s)=>({message:`Token "${s}" created successfully`}),error:(l,s,a)=>({message:`Creating token "${a}" for user with id "${s}" failed with status: ${l}`})}),f=(0,m.Z)({action:e.X.loadTokens,error:(l,s)=>({message:`Loading tokens for user with id "${s}" failed with status: ${l}`})}),c=(0,m.Z)({action:e.X.deleteToken,success:(l,s,a)=>({message:`Token "${a}" deleted successfully`}),error:(l,s,a,o)=>({message:`Deleting token "${o}" for user with id "${s}" failed with status: ${l}`})}),O=(0,m.Z)({action:e.X.loadUsers,error:l=>({message:`Loading users failed with status: ${l}`})}),p=(0,m.Z)({action:e.X.loadUsersPaginated,error:l=>({message:`Loading users failed with status: ${l}`})}),S=(0,m.Z)({action:e.X.setStatus,success:(l,s)=>({message:`User "${l}" was set to ${s}`}),error:(l,s,a)=>({message:`Updating user ("${s}") to ${a} failed with status: ${l}`})}),g={create:_,load:U,loadByUsername:P,update:t,delete:u,changePassword:d,createToken:E,loadTokens:f,deleteToken:c,loadUsers:O,loadUsersPaginated:p,setStatus:S}},"nmSm+aR9":(R,A,n)=>{n.d(A,{Z:()=>_});var e=n("VPaD/Np4"),m=n.n(e);class _{constructor(t,u,d,E,f,c,O,p,S,g,l,s,a,o,v){this._value={id:t,username:u,fullName:d,email:E,roles:f,readOnly:c,external:O,sessionActive:p,clientAddress:S,lastActivity:g,enabled:l,authServiceId:s,authServiceUid:a,authServiceEnabled:o,accountStatus:v}}get id(){return this._value.id}get username(){return this._value.username}get name(){return this._value.username}get fullName(){return this._value.fullName}get description(){return this._value.fullName}get email(){return this._value.email}get roles(){return this._value.roles}get readOnly(){return this._value.readOnly}get external(){return this._value.external}get sessionActive(){return this._value.sessionActive}get clientAddress(){return this._value.clientAddress}get lastActivity(){return this._value.lastActivity}get enabled(){return this._value.enabled}get authServiceId(){return this._value.authServiceId}get authServiceUid(){return this._value.authServiceUid}get authServiceEnabled(){return this._value.authServiceEnabled}get accountStatus(){return this._value.accountStatus}toBuilder(){const{id:t,username:u,fullName:d,email:E,roles:f,readOnly:c,external:O,sessionActive:p,clientAddress:S,lastActivity:g,enabled:l,authServiceId:s,authServiceUid:a,authServiceEnabled:o,accountStatus:v}=this._value;return new U(e.Map({id:t,username:u,fullName:d,email:E,roles:f,readOnly:c,external:O,sessionActive:p,clientAddress:S,lastActivity:g,enabled:l,authServiceId:s,authServiceUid:a,authServiceEnabled:o,accountStatus:v}))}static create(t,u,d,E,f,c,O,p,S,g,l,s,a,o,v){return new _(t,u,d,E,f,c,O,p,S,g,l,s,a,o,v)}toJSON(){const{id:t,username:u,fullName:d,email:E,roles:f,readOnly:c,external:O,sessionActive:p,clientAddress:S,lastActivity:g,enabled:l,authServiceId:s,authServiceUid:a,authServiceEnabled:o,accountStatus:v}=this._value;return{id:t,username:u,full_name:d,email:E,roles:f.toArray(),read_only:c,external_user:O,session_active:p,client_address:S,last_activity:g,enabled:l,auth_service_id:s,auth_service_uid:a,auth_service_enabled:o,account_status:v}}static fromJSON(t){const{id:u,username:d,full_name:E,email:f,roles:c,read_only:O,external_user:p,session_active:S,client_address:g,last_activity:l,enabled:s,auth_service_id:a,auth_service_uid:o,auth_service_enabled:v,account_status:I}=t;return _.create(u,d,E,f,e.Set(c),O!=null?O:!1,p!=null?p:!1,S!=null?S:!1,g,l,s,a,o,v,I)}static builder(){return new U}}class U{constructor(t=e.Map()){this.value=t}id(t){return new U(this.value.set("id",t))}username(t){return new U(this.value.set("username",t))}fullName(t){return new U(this.value.set("fullName",t))}email(t){return new U(this.value.set("email",t))}roles(t){return new U(this.value.set("roles",t))}readOnly(t){return new U(this.value.set("readOnly",t))}external(t){return new U(this.value.set("external",t))}sessionActive(t){return new U(this.value.set("sessionActive",t))}clientAddress(t){return new U(this.value.set("clientAddress",t))}lastActivity(t){return new U(this.value.set("lastActivity",t))}enabled(t){return new U(this.value.set("enabled",t))}authServiceId(t){return new U(this.value.set("authServiceId",t))}authServiceUid(t){return new U(this.value.set("authServiceUid",t))}authServiceEnabled(t){return new U(this.value.set("authServiceEnabled",t))}accountStatus(t){return new U(this.value.set("accountStatus",t))}build(){const{id:t,username:u,fullName:d,email:E,roles:f,readOnly:c,external:O,sessionActive:p,clientAddress:S,lastActivity:g,enabled:l,authServiceId:s,authServiceUid:a,authServiceEnabled:o,accountStatus:v}=this.value.toObject();return new _(t,u,d,E,f,c,O,p,S,g,l,s,a,o,v)}}},"+3+DnmaH":(R,A,n)=>{n.r(A),n.d(A,{default:()=>ce});var e=n("Z7aTuO5B"),m=n("ty2gyrHp"),_=n("d4kzUuQm"),U=n("E+CaPsQD"),P=n("uZqmR+ju"),t=n("/GOzvPf6"),u=n("J6y4/h8P"),d=n("92lPlKXC"),E=n("cSDA0Pof"),f=n("q2j1bVbz"),c=n("rVdVsuGH"),O=n("1VlHrt00"),p=n("MdYBRjRJ"),S=n("8OvTct/Z"),g=n("0t7Ye+61"),l=n("v4GbOr/o");const s=(0,u.default)(P.ButtonToolbar)`
  display: flex;
  justify-content: flex-end;
`,a=({user:{fullName:r,id:i},wrapperComponent:h})=>e.createElement(m.J,{to:_.ZP.SYSTEM.USERS.TOKENS.edit(i)},e.createElement(h,{id:`edit-tokens-${i}`,bsSize:"xs",title:`Edit tokens of user ${r}`},"Edit tokens")),o=({user:r})=>{const i=e.createElement(P.Tooltip,{id:"system-user"},"System users can only be modified in the Graylog configuration file.");return e.createElement(e.Fragment,null,e.createElement(t.Ox,{placement:"left",overlay:i},e.createElement(P.Button,{bsSize:"xs",bsStyle:"info",disabled:!0},"System user")),e.createElement(a,{user:r,wrapperComponent:P.Button}))},v=({user:r,user:{username:i,id:h,fullName:y,accountStatus:w,external:M,readOnly:x}})=>{const T=(0,f.Z)(),C=(0,S.Z)(),{pathname:Z}=(0,g.Z)(),L=()=>{if(w==="enabled"){C(l.A.USERS.USER_DISABLED,{app_pathname:(0,p.av)(Z),app_action_value:"user-item-disable"}),window.confirm(`Do you really want to disable user ${y}? All current sessions will be terminated.`)&&d.Z.setStatus(h,"disabled");return}d.Z.setStatus(h,"enabled"),C(l.A.USERS.USER_ENABLED,{app_pathname:(0,p.av)(Z),app_action_value:"user-item-enable"})},$=()=>{C(l.A.USERS.USER_DELETED,{app_pathname:(0,p.av)(Z),app_action_value:"user-item-delete"}),window.confirm(`Do you really want to delete user ${y}?`)&&d.Z.delete(h,y)},B=!M&&!x&&(T==null?void 0:T.id)!==h;return e.createElement(e.Fragment,null,e.createElement(t.AE,{permissions:[`users:edit:${i}`]},e.createElement(m.J,{to:_.ZP.SYSTEM.USERS.edit(h)},e.createElement(P.Button,{id:`edit-user-${h}`,bsSize:"xs",title:`Edit user ${y}`},"Edit"))),e.createElement(P.DropdownButton,{bsSize:"xs",title:"More actions",pullRight:!0,id:`delete-user-${h}`},e.createElement(a,{user:r,wrapperComponent:P.MenuItem}),e.createElement(t.AE,{permissions:[`users:edit:${i}`]},B&&e.createElement(P.MenuItem,{id:`set-status-user-${h}`,onClick:L,title:`Set new account status for ${y}`},w==="enabled"?"Disable":"Enable"),e.createElement(P.MenuItem,{id:`delete-user-${h}`,bsStyle:"primary",bsSize:"xs",title:`Delete user ${y}`,onClick:$},"Delete"))))},D=({user:r})=>e.createElement("td",null,e.createElement(s,null,r.readOnly?e.createElement(o,{user:r}):e.createElement(v,{user:r}))),b=u.default.div(({theme:r,$active:i})=>(0,u.css)`
  color: ${i?r.colors.variant.success:r.colors.variant.default};
`),J=({active:r,...i})=>e.createElement(b,{$active:r},e.createElement(t.JO,{...i,name:r?"check-circle":"times-circle"})),X=u.default.td`
  width: 35px;
  text-align: right;
  position: relative;
`,H=({lastActivity:r,sessionActive:i,clientAddress:h})=>e.createElement(X,null,e.createElement(t.Ox,{trigger:["hover","focus"],placement:"right",overlay:e.createElement(P.Popover,{id:"session-badge-details",title:i?"Logged in":""},i?e.createElement(e.Fragment,null,e.createElement("div",null,"Last activity: ",r?e.createElement(t.ij,{dateTime:r}):"-"),e.createElement("div",null,"Client address: ",h!=null?h:"-")):"Not logged in"),rootClose:!0},e.createElement(J,{active:i}))),z=u.default.div(({theme:r,$enabled:i})=>(0,u.css)`
  color: ${i?r.colors.variant.success:r.colors.variant.default};
`),j=u.default.td`
  width: 35px;
  text-align: center;
`,G=({accountStatus:r,authServiceEnabled:i})=>e.createElement(j,null,e.createElement(t.Ox,{trigger:["hover","focus"],placement:"right",overlay:e.createElement(P.Popover,{id:"session-badge-details"},`User is ${r}`,i?"":" (authentication service is disabled)"),rootClose:!0},e.createElement(z,{$enabled:i&&r==="enabled"},e.createElement(t.JO,{name:r==="enabled"?"check-circle":"times-circle"})))),Q=({user:r,user:{id:i,clientAddress:h,email:y,fullName:w,lastActivity:M,sessionActive:x,username:T,roles:C,accountStatus:Z,authServiceEnabled:L},isActive:$})=>e.createElement("tr",{key:T,className:$?"active":""},e.createElement(H,{lastActivity:M,sessionActive:x,clientAddress:h}),e.createElement("td",{className:"limited"},e.createElement(m.r,{to:_.ZP.SYSTEM.USERS.show(i)},w)),e.createElement("td",{className:"limited"},T),e.createElement("td",{className:"limited"},y),e.createElement("td",{className:"limited"},h),e.createElement(G,{accountStatus:Z,authServiceEnabled:L}),e.createElement(O.Z,{roles:C}),e.createElement(D,{user:r}));var V=n("4APrn2Dx");const Y=({onSearch:r})=>e.createElement(t.UI,{onSearch:r,wrapperClass:"has-bm",onReset:()=>r(""),queryHelpComponent:e.createElement(V.Z,null),topMargin:0}),k=(0,u.default)(P.Button)`
  cursor: help;
  padding: 0 0 0 2px;
  display: inline-flex;
`,q=({title:r})=>{const i=e.createElement(P.Popover,{id:"client-address-help"},e.createElement("p",null,"The address of the client used to initially establish the session, not necessarily its current address."));return e.createElement("th",null,r,e.createElement(t.Ox,{trigger:"click",rootClose:!0,placement:"top",overlay:i},e.createElement(k,{bsStyle:"link"},e.createElement(t.JO,{name:"question-circle",fixedWidth:!0}))))},ee=({adminUser:r,dataRowFormatter:i,headers:h,headerCellFormatter:y})=>e.createElement(P.Row,{className:"content"},e.createElement(P.Col,{xs:12},e.createElement("h2",null,"System Administrator"),e.createElement("p",{className:"description"},"The system administrator can only be edited in the Graylog configuration file."),e.createElement(t.wQ,{id:"users-overview",className:"table-hover",headers:h,headerCellFormatter:y,sortByKey:"fullName",rows:[r],dataRowFormatter:i,filterKeys:[]}))),W=["","Full name","Username","E-Mail Address","Client Address","Enabled","Role","Actions"],te=u.default.div`
  .data-table {
    overflow-x: visible;
  }
`,se=u.default.div`
  display: flex;
  align-items: center;
`,ne=(0,u.default)(t.$j)(({theme:r})=>(0,u.css)`
  margin-left: 10px;
  font-size: ${r.fonts.size.h3};
`),re=(0,u.default)(t.l9)`
  .pagination {
    margin: 0;
  }
`,N=r=>{switch(r.toLowerCase()){case"client address":return e.createElement(q,{title:r});case"actions":return e.createElement("th",{className:"actions text-right"},r);default:return e.createElement("th",null,r)}},K=(r,i,h)=>{i(!0),d.Z.loadUsersPaginated(r).then(y=>{h(y),i(!1)})},ae=(r,i,h,y)=>E.X.delete.completed.listen(()=>{K(r,i,h),y()}),le=(r,i,h)=>E.X.setStatus.completed.listen(()=>K(r,i,h)),F=r=>i=>{const{id:h}=i;return e.createElement(Q,{user:i,isActive:(r==null?void 0:r.id)===h})},oe=()=>{const{page:r,pageSize:i,resetPage:h}=(0,c.ZP)(),y=(0,f.Z)(),[w,M]=(0,e.useState)(),[x,T]=(0,e.useState)(!1),[C,Z]=(0,e.useState)(""),{list:L,adminUser:$,pagination:{total:B=0}={}}=w||{};if((0,e.useEffect)(()=>K({page:r,perPage:i,query:C},T,M),[r,i,C]),(0,e.useEffect)(()=>ae({page:r,perPage:i,query:C},T,M,h),[r,i,C,h]),(0,e.useEffect)(()=>le({page:r,perPage:i,query:C},T,M),[r,i,C]),!L)return e.createElement(t.$j,null);const ue=me=>{h(),Z(me)},de=e.createElement(Y,{onSearch:ue});return e.createElement(te,null,$&&e.createElement(ee,{adminUser:$,dataRowFormatter:F(y),headerCellFormatter:N,headers:W}),e.createElement(P.Row,{className:"content"},e.createElement(P.Col,{xs:12},e.createElement(se,null,e.createElement("h2",null,"Users"),x&&e.createElement(ne,{text:"",delay:0})),e.createElement("p",{className:"description"},"Found ",B," registered users on the system."),e.createElement(re,{totalItems:B},e.createElement(t.wQ,{id:"users-overview",className:"table-hover",rowClassName:"no-bm",headers:W,headerCellFormatter:N,sortByKey:"fullName",noDataText:e.createElement(t.pJ,null,"No users have been found."),rows:L.toJS(),customFilter:de,dataRowFormatter:F(y),filterKeys:[],filterLabel:"Filter Users"})))))};var ie=n("WqhT36Vr");const ce=()=>e.createElement(t.$4,{title:"Users Overview"},e.createElement(ie.Z,null),e.createElement(t.mr,{title:"Users Overview",actions:e.createElement(m.J,{to:_.ZP.SYSTEM.USERS.CREATE},e.createElement(P.Button,{bsStyle:"success"},"Create user")),documentationLink:{title:"Permissions documentation",path:U.Z.PAGES.USERS_ROLES}},e.createElement("span",null,"Overview of Graylog's registered users.")),e.createElement(oe,null))},cSDA0Pof:(R,A,n)=>{n.d(A,{X:()=>g});var e=n("JnTtTRmZ"),m=n.n(e),_=n("VPaD/Np4"),U=n.n(_),P=n("oCSEoDew"),t=n.n(P),u=n("nmSm+aR9"),d=n("eFxcQyPT"),E=n("U1Iufsob"),f=n("IA3Ku5lS"),c=n("MdYBRjRJ"),O=n("gyRmhZSW"),p=n("vMorKP/N");const S=({url:s="",query:a={}})=>{const o=new(t())(s);return o.query(a),(0,c.DC)(o.resource())},g=(0,f.ei)("core.Users",()=>m().createActions({create:{asyncResult:!0},load:{asyncResult:!0},loadByUsername:{asyncResult:!0},update:{asyncResult:!0},delete:{asyncResult:!0},changePassword:{asyncResult:!0},createToken:{asyncResult:!0},loadTokens:{asyncResult:!0},deleteToken:{asyncResult:!0},loadUsersPaginated:{asyncResult:!0},loadUsers:{asyncResult:!0},setStatus:{asyncResult:!0}})),l=(0,f.dS)("core.Users",()=>m().createStore({listenables:[g],create(s){const a=(0,c.DC)(E.Z.UsersApiController.create().url),o=(0,d.ZP)("POST",a,s);return g.create.promise(o),o},load(s){const a=(0,c.DC)(E.Z.UsersApiController.load(encodeURIComponent(s)).url),o=(0,d.ZP)("GET",a).then(p.Z.fromJSON);return g.load.promise(o),o},loadByUsername(s){const a=(0,c.DC)(E.Z.UsersApiController.loadByUsername(encodeURIComponent(s)).url),o=(0,d.ZP)("GET",a).then(p.Z.fromJSON);return g.loadByUsername.promise(o),o},update(s,a){const o=(0,c.DC)(E.Z.UsersApiController.update(encodeURIComponent(s)).url),v=(0,d.ZP)("PUT",o,a);return g.update.promise(v),v},delete(s){const a=(0,c.DC)(E.Z.UsersApiController.delete(encodeURIComponent(s)).url),o=(0,d.ZP)("DELETE",a);return g.delete.promise(o),o},changePassword(s,a){const o=(0,c.DC)(E.Z.UsersApiController.changePassword(encodeURIComponent(s)).url),v=(0,d.ZP)("PUT",o,a);return g.changePassword.promise(v),v},createToken(s,a){const o=(0,c.DC)(E.Z.UsersApiController.create_token(encodeURIComponent(s),encodeURIComponent(a)).url),v=(0,d.ZP)("POST",o);return g.createToken.promise(v),v},loadTokens(s){const a=(0,c.DC)(E.Z.UsersApiController.list_tokens(encodeURIComponent(s)).url),o=(0,d.ZP)("GET",a).then(v=>v.tokens);return g.loadTokens.promise(o),o},deleteToken(s,a){const o=(0,c.DC)(E.Z.UsersApiController.delete_token(encodeURIComponent(s),encodeURIComponent(a)).url),v=(0,d.ZP)("DELETE",o);return g.deleteToken.promise(v),v},loadUsers(s={}){const a=S({url:E.Z.UsersApiController.list().url,query:s}),o=(0,d.ZP)("GET",a).then(({users:v})=>_.List(v.map(I=>u.Z.fromJSON(I))));return g.loadUsers.promise(o),o},loadUsersPaginated({page:s,perPage:a,query:o}){const v=(0,O.Z)(E.Z.UsersApiController.paginated().url,s,a,o),I=(0,d.ZP)("GET",(0,c.DC)(v)).then(D=>({adminUser:D.context.admin_user?u.Z.fromJSON(D.context.admin_user):void 0,list:_.List(D.users.map(b=>u.Z.fromJSON(b))),pagination:{page:D.page,perPage:D.per_page,query:D.query,count:D.count,total:D.total}}));return g.loadUsersPaginated.promise(I),I},setStatus(s,a){const o=(0,c.DC)(E.Z.UsersApiController.setStatus(s,a).url),v=(0,d.ZP)("PUT",o);return g.setStatus.promise(v),v}}))}}]);})();

//# sourceMappingURL=1255d548-5831.f80a057b291c0327f16a.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy