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

web-interface.assets.b6fe2bb5-6013.f592f24c3c335af674e6.js Maven / Gradle / Ivy

"use strict";(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["b6fe2bb5-6013"],{"5sZKlkP8":(e,t,n)=>{n.d(t,{s:()=>u,Z:()=>d});var r=n("Z7aTuO5B"),a=n("EfCpThZW"),i=n("8pZttqbT"),l=n("Mr++nPjW"),o=a.default.div.withConfig({displayName:"SectionComponent__Header",componentId:"sc-y2eneq-0"})(["display:flex;justify-content:space-between;align-items:flex-start;*:not(:first-child){margin-left:10px;}"]),u=a.default.h2.withConfig({displayName:"SectionComponent__Headline",componentId:"sc-y2eneq-1"})(["margin-bottom:15px;display:inline;"]),s=(0,a.default)(i.Z).withConfig({displayName:"SectionComponent__LoadingSpinner",componentId:"sc-y2eneq-2"})((function(e){var t=e.theme;return(0,a.css)(["margin-left:10px;font-size:",";"],t.fonts.size.h3)})),c=function(e){var t=e.children,n=e.title,a=e.showLoading,i=void 0!==a&&a,c=e.headerActions,d=e.className;return r.createElement(l.X2,{className:"content ".concat(d)},r.createElement(l.JX,{xs:12},r.createElement(o,null,r.createElement(u,null,n,i&&r.createElement(s,{text:"",delay:0})),c),t))};c.defaultProps={className:"",showLoading:!1,headerActions:void 0};const d=c},"1qPKgs3m":(e,t,n)=>{n.d(t,{Z:()=>a});var r=n("EfCpThZW");const a=r.default.div.withConfig({displayName:"SectionGrid",componentId:"sc-1xfwao3-0"})((function(e){var t=e.$columns,n=e.theme;return(0,r.css)(["display:grid;grid-template-columns:",";grid-column-gap:40px;@media (max-width:","){grid-template-columns:1fr;}"],null!=t?t:"1fr 1fr",n.breakpoints.max.md)}))},"7+7NFxdf":(e,t,n)=>{n.d(t,{Z:()=>l});var r=n("Z7aTuO5B"),a=n("5sZKlkP8"),i=n("AdUszsMQ");const l=function(e){var t=e.role,n=t.name,l=t.description;return r.createElement(a.Z,{title:"Profile"},r.createElement(i.mv,{label:"Name",value:n}),r.createElement(i.mv,{label:"Description",value:l}))}},"lIQOKO/x":(e,t,n)=>{n.d(t,{Z:()=>o});var r=n("Z7aTuO5B"),a=n("EeAwn/0x"),i=n("DeVaSktS"),l=n("Mr++nPjW");const o=function(e){var t=e.roleId;return r.createElement(l.Si,null,r.createElement(a.J,{to:i.ZP.SYSTEM.AUTHZROLES.show(t)},r.createElement(l.zx,{bsStyle:"success"},"View Details")),r.createElement(a.J,{to:i.ZP.SYSTEM.AUTHZROLES.edit(t)},r.createElement(l.zx,{bsStyle:"success"},"Edit Role")))}},oyaholW7:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n("BqDoRMwE"),a=n("VHOukFih");const i={load:(0,a.Z)({action:r.p.load,error:function(e,t){return{message:'Loading role with id "'.concat(t,'" failed with status: ').concat(e)}},notFoundRedirect:!0}),delete:(0,a.Z)({action:r.p.delete,success:function(e,t){return{message:'Role "'.concat(t,'" was deleted successfully')}},error:function(e,t,n){return{message:'Deleting role "'.concat(n,'" failed with status: ').concat(e)}}}),addMembers:(0,a.Z)({action:r.p.addMembers,success:function(e,t){return{message:'Users:"'.concat(t.join(", "),'" were assigned successfully')}},error:function(e,t,n){return{message:'Assigning users "'.concat(n.join(", "),'" failed with status: ').concat(e)}}}),removeMember:(0,a.Z)({action:r.p.removeMember,success:function(e,t){return{message:'User "'.concat(t,'" was unassigned successfully')}},error:function(e,t,n){return{message:'Unassign user "'.concat(n,'" failed with status: ').concat(e)}}}),loadUsersForRole:(0,a.Z)({action:r.p.loadUsersForRole,error:function(e,t,n){return{message:'Loading users for role "'.concat(n,'" failed with status: ').concat(e)}}}),loadRolesForUser:(0,a.Z)({action:r.p.loadRolesForUser,error:function(e,t){return{message:'Loading roles for user "'.concat(t,'" failed with status: ').concat(e)}}}),loadRolesPaginated:(0,a.Z)({action:r.p.loadRolesPaginated,error:function(e){return{message:"Loading roles failed with status: ".concat(e)}}})}},"3KQynTtD":(e,t,n)=>{n.d(t,{Z:()=>u});var r=n("VPaD/Np4");function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:r.Map();a(this,e),o(this,"value",void 0),this.value=t}return l(e,[{key:"id",value:function(t){return new e(this.value.set("id",t))}},{key:"username",value:function(t){return new e(this.value.set("username",t))}},{key:"fullName",value:function(t){return new e(this.value.set("fullName",t))}},{key:"email",value:function(t){return new e(this.value.set("email",t))}},{key:"roles",value:function(t){return new e(this.value.set("roles",t))}},{key:"readOnly",value:function(t){return new e(this.value.set("readOnly",t))}},{key:"external",value:function(t){return new e(this.value.set("external",t))}},{key:"sessionActive",value:function(t){return new e(this.value.set("sessionActive",t))}},{key:"clientAddress",value:function(t){return new e(this.value.set("clientAddress",t))}},{key:"lastActivity",value:function(t){return new e(this.value.set("lastActivity",t))}},{key:"enabled",value:function(t){return new e(this.value.set("enabled",t))}},{key:"authServiceId",value:function(t){return new e(this.value.set("authServiceId",t))}},{key:"authServiceUid",value:function(t){return new e(this.value.set("authServiceUid",t))}},{key:"accountStatus",value:function(t){return new e(this.value.set("accountStatus",t))}},{key:"build",value:function(){var e=this.value.toObject(),t=e.id,n=e.username,r=e.fullName,a=e.email,i=e.roles,l=e.readOnly,o=e.external,s=e.sessionActive,c=e.clientAddress,d=e.lastActivity,f=e.enabled,v=e.authServiceId,m=e.authServiceUid,y=e.accountStatus;return new u(t,n,r,a,i,l,o,s,c,d,f,v,m,y)}}]),e}()},"0YLTiITP":(e,t,n)=>{n.r(t),n.d(t,{default:()=>_});var r=n("Z7aTuO5B"),a=n("CfS4XPvw"),i=n("EeAwn/0x"),l=n("oyaholW7"),o=n("AdUszsMQ"),u=n("1qPKgs3m"),s=n("AztyBNMT"),c=n("5sZKlkP8");const d=function(e){var t,n=e.role,a=s.PluginStore.exports("teams"),i=null==a||null===(t=a[0])||void 0===t?void 0:t.RoleTeamsAssignment;return r.createElement(c.Z,{title:"Teams"},i?r.createElement(i,{role:n,readOnly:!0}):r.createElement(o.VL,{featureName:"teams"}))};var f=n("7+7NFxdf");function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],l=!0,o=!1;try{for(n=n.call(e);!(l=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);l=!0);}catch(e){o=!0,a=e}finally{try{l||null==n.return||n.return()}finally{if(o)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n{n.d(t,{p:()=>p});var r=n("JnTtTRmZ"),a=n.n(r),i=n("VPaD/Np4"),l=n("OqsMdpSm"),o=n("rkoyttmq"),u=n("0wQfx7YJ"),s=n("xc00RsLr"),c=n("4sldgQy6");function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:i.Map();d(this,e),m(this,"value",void 0),this.value=t}return v(e,[{key:"id",value:function(t){return new e(this.value.set("id",t))}},{key:"name",value:function(t){return new e(this.value.set("name",t))}},{key:"description",value:function(t){return new e(this.value.set("description",t))}},{key:"permissions",value:function(t){return new e(this.value.set("permissions",t))}},{key:"readOnly",value:function(t){return new e(this.value.set("readOnly",t))}},{key:"build",value:function(){var e=this.value.toObject(),t=e.id,n=e.name,r=e.description,a=e.permissions,i=e.readOnly;return new y(t,n,r,a,i)}}]),e}();const p=(0,s.ei)("AuthzRoles",(function(){return a().createActions({load:{asyncResult:!0},delete:{asyncResult:!0},addMembers:{asyncResult:!0},removeMember:{asyncResult:!0},loadUsersForRole:{asyncResult:!0},loadRolesForUser:{asyncResult:!0},loadRolesPaginated:{asyncResult:!0}})}));var g=n("3KQynTtD");function b(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:[],n=t.map((function(e){return encodeURIComponent(e)}));return e.apply(void 0,b(n)).url};(0,s.dS)("AuthzRoles",(function(){return a().createStore({listenables:[p],load:function(e){var t=(0,u.DC)(E(o.Z.AuthzRolesController.load,[e])),n=(0,l.ZP)("GET",t).then(y.fromJSON);return p.load.promise(n),n},delete:function(e){var t=(0,u.DC)(E(o.Z.AuthzRolesController.delete,[e])),n=(0,l.ZP)("DELETE",t);return p.delete.promise(n),n},addMembers:function(e,t){var n=E(o.Z.AuthzRolesController.addMembers,[e]),r=(0,l.ZP)("PUT",(0,u.DC)(n),t.toArray());return p.addMembers.promise(r),r},removeMember:function(e,t){var n=E(o.Z.AuthzRolesController.removeMember,[e,t]),r=(0,l.ZP)("DELETE",(0,u.DC)(n));return p.removeMember.promise(r),r},loadUsersForRole:function(e,t,n){var r=n.page,a=n.perPage,i=n.query,s=E(o.Z.AuthzRolesController.loadUsersForRole,[e]),d=(0,c.Z)(s,r,a,i),f=(0,l.ZP)("GET",(0,u.DC)(d)).then(A);return p.loadUsersForRole.promise(f),f},loadRolesForUser:function(e,t){var n=t.page,r=t.perPage,a=t.query,i=E(o.Z.AuthzRolesController.loadRolesForUser,[e]),s=(0,c.Z)(i,n,r,a),d=(0,l.ZP)("GET",(0,u.DC)(s)).then(S);return p.loadRolesForUser.promise(d),d},loadRolesPaginated:function(e){var t=e.page,n=e.perPage,r=e.query,a=E(o.Z.AuthzRolesController.list),i=(0,c.Z)(a,t,n,r),s=(0,l.ZP)("GET",(0,u.DC)(i)).then(S);return p.loadRolesPaginated.promise(s),s}})}))}}]);
//# sourceMappingURL=b6fe2bb5-6013.f592f24c3c335af674e6.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy